From 0e4a03ccc65aaca143873f16643513a922ace6cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Wed, 6 Jul 2022 12:53:11 +0900 Subject: [PATCH] fix(es/minifier): Don't inline a callable expression if it's used as a reference (#5118) --- .../issues-2xxx/2011/reduced/output/index.js | 4 +- ...ticFunctionOfTheSameName_es5.2.minified.js | 9 +- ...ticFunctionOfTheSameName_es5.2.minified.js | 9 +- ...edFunctionThatShareAName_es5.2.minified.js | 9 +- ...rAndReturnTypeAnnotation_es5.2.minified.js | 20 +- ...nParameterTypeAnnotation_es5.2.minified.js | 16 +- ...esInReturnTypeAnnotation_es5.2.minified.js | 20 +- ...ithSameNameAndCommonRoot_es5.2.minified.js | 13 +- ...meAndDifferentCommonRoot_es5.2.minified.js | 13 +- ...ithSameNameAndCommonRoot_es5.2.minified.js | 13 +- ...dAndNonExportedFunctions_es5.2.minified.js | 5 +- .../commonJSAliasedExport_es5.2.minified.js | 7 +- ...AnnotationAndInitializer_es5.2.minified.js | 8 +- ...ionAndInvalidInitializer_es5.2.minified.js | 16 +- ...everyTypeWithInitializer_es5.2.minified.js | 8 +- ...rtAssignmentMergedModule_es5.2.minified.js | 10 +- .../exportCodeGen_es5.2.minified.js | 14 +- ...mentsMultipleInvalidDecl_es5.2.minified.js | 8 +- .../forStatements_es5.2.minified.js | 8 +- .../ifDoWhileStatements_es5.2.minified.js | 16 +- ...portStatementsInterfaces_es5.2.minified.js | 9 +- .../importStatements_es5.2.minified.js | 6 +- ...ipleVariableDeclarations_es5.2.minified.js | 8 +- ...ithStatementsOfEveryKind_es5.2.minified.js | 8 +- .../neverType_es2015.2.minified.js | 4 +- .../neverType_es5.2.minified.js | 6 +- .../parser536727_es5.2.minified.js | 6 +- .../parserModule1_es5.2.minified.js | 8 +- .../parserRealSource14_es2015.2.minified.js | 8 +- .../parserRealSource14_es5.2.minified.js | 14 +- .../parserRealSource1_es5.2.minified.js | 91 +- .../parserRealSource2_es5.2.minified.js | 8 +- .../parserRealSource5_es5.2.minified.js | 14 +- .../parserRealSource6_es5.2.minified.js | 12 +- .../switchStatements_es5.2.minified.js | 9 +- .../throwStatements_es5.2.minified.js | 8 +- ...FromPropertyAssignment29_es5.2.minified.js | 4 +- ...ntersectionInference1_es2015.2.minified.js | 6 +- .../full/d3-time-format/1/output/index.js | 144 +- .../full/firebase/dist/1/output/index.js | 86 +- .../react-instantsearch/2/output/index.js | 228 +- .../src/compress/optimize/inline.rs | 10 + .../fixture/issues/2044/pass-1/output.js | 1 + .../tests/fixture/issues/2257/full/output.js | 382 +- .../tests/fixture/issues/3256/2/output.js | 5 +- .../fixture/issues/emotion/react/1/output.js | 3 +- .../fixture/issues/firebase-core/1/output.js | 12 +- .../tests/fixture/issues/moment/1/output.js | 8 +- .../fixture/issues/react-countup/1/output.js | 4 +- .../issues/react-instancesearch/004/output.js | 140 +- .../1606726a.10299989c08cb523/output.js | 4 +- .../d6e1aeb5-38a8d7ae57119c23/output.js | 506 +- .../pages/index-cb36c1bf7f830e3c/output.js | 48 +- .../next/chakra/analysis-snapshot.rust-debug | 68466 ++++++++++++++++ .../tests/fixture/next/chakra/input.js | 8394 ++ .../tests/fixture/next/chakra/output.js | 4772 ++ .../fixture/next/chakra/output.mangleOnly.js | 6356 ++ .../8a28b14e.d8fbda268ed281a1/output.js | 72 +- .../fixture/next/react-pdf-renderer/output.js | 2075 +- .../next/styled-components/1/output.js | 42 +- .../2c796e83-0724e2af5f19128a/output.js | 4 +- .../785-e1932cc99ac3bb67/output.js | 2 +- .../pages/index-d4b892cd7cdbfcba/output.js | 2 +- .../tests/projects/output/angular-1.2.5.js | 96 +- .../tests/projects/output/backbone-1.1.0.js | 4 +- .../tests/projects/output/jquery-1.9.1.js | 6 +- .../projects/output/jquery.mobile-1.4.2.js | 25 +- .../tests/projects/output/react-17.0.1.js | 31 +- .../tests/projects/output/react-dom-17.0.2.js | 72 +- scripts/cargo/patch-section.sh | 15 + 70 files changed, 90322 insertions(+), 2148 deletions(-) create mode 100644 crates/swc_ecma_minifier/tests/fixture/next/chakra/analysis-snapshot.rust-debug create mode 100644 crates/swc_ecma_minifier/tests/fixture/next/chakra/input.js create mode 100644 crates/swc_ecma_minifier/tests/fixture/next/chakra/output.js create mode 100644 crates/swc_ecma_minifier/tests/fixture/next/chakra/output.mangleOnly.js create mode 100755 scripts/cargo/patch-section.sh diff --git a/crates/swc/tests/fixture/issues-2xxx/2011/reduced/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2011/reduced/output/index.js index f255811ae94..e006c2594e6 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2011/reduced/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2011/reduced/output/index.js @@ -1,8 +1,8 @@ -var a; +var a, b = function() {}; module.exports = ((a = function() { "use strict"; function a() {} return a.prototype.it = function() { this.bb = new a.MyA(); }, a; -}()).MyA = function() {}, a); +}()).MyA = b, a); diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName_es5.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName_es5.2.minified.js index 293379783bb..a7a28437b24 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName_es5.2.minified.js @@ -6,6 +6,9 @@ var clodule = function() { } return clodule.fn = function(id) {}, clodule; }(); -(clodule || (clodule = {})).fn = function(x, y) { - return x; -}; +!function(clodule) { + var fn = function(x, y) { + return x; + }; + clodule.fn = fn; +}(clodule || (clodule = {})); diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName_es5.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName_es5.2.minified.js index 293379783bb..a7a28437b24 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName_es5.2.minified.js @@ -6,6 +6,9 @@ var clodule = function() { } return clodule.fn = function(id) {}, clodule; }(); -(clodule || (clodule = {})).fn = function(x, y) { - return x; -}; +!function(clodule) { + var fn = function(x, y) { + return x; + }; + clodule.fn = fn; +}(clodule || (clodule = {})); diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName_es5.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName_es5.2.minified.js index 5cc9e10ff70..dd1e73ff126 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName_es5.2.minified.js @@ -11,9 +11,12 @@ var A, Point = function() { }; }, Point; }(); -(Point || (Point = {})).Origin = function() { - return null; -}, function(A) { +!function(Point) { + var Origin = function() { + return null; + }; + Point.Origin = Origin; +}(Point || (Point = {})), function(A) { var Point = function() { "use strict"; function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation_es5.2.minified.js b/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation_es5.2.minified.js index 791c07a7502..b17aad70f45 100644 --- a/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation_es5.2.minified.js @@ -1,19 +1,19 @@ var A; import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A) { - var Point = function() { - "use strict"; - _class_call_check(this, Point); - }; - A.Point = Point; - var Line = function(start, end) { - "use strict"; - _class_call_check(this, Line), this.start = start, this.end = end; - }; - A.Line = Line, A.fromOrigin = function(p) { + var fromOrigin = function(p) { return new Line({ x: 0, y: 0 }, p); + }, Point = function() { + "use strict"; + _class_call_check(this, Point); }; + A.Point = Point; + var Line = function Line(start, end) { + "use strict"; + _class_call_check(this, Line), this.start = start, this.end = end; + }; + A.Line = Line, A.fromOrigin = fromOrigin; }(A || (A = {})); diff --git a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation_es5.2.minified.js b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation_es5.2.minified.js index 0a163a460d0..18337a0cf43 100644 --- a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation_es5.2.minified.js @@ -1,17 +1,17 @@ var A; import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A) { - var Point = function() { - "use strict"; - _class_call_check(this, Point); - }, Line = function(start, end) { - "use strict"; - _class_call_check(this, Line), this.start = start, this.end = end; - }; - A.Line = Line, A.fromOrigin = function(p) { + var fromOrigin = function(p) { return new Line({ x: 0, y: 0 }, p); + }, Point = function() { + "use strict"; + _class_call_check(this, Point); + }, Line = function Line(start, end) { + "use strict"; + _class_call_check(this, Line), this.start = start, this.end = end; }; + A.Line = Line, A.fromOrigin = fromOrigin; }(A || (A = {})); diff --git a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation_es5.2.minified.js b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation_es5.2.minified.js index d33c40f9442..3f92f4d56f6 100644 --- a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation_es5.2.minified.js @@ -1,19 +1,19 @@ var A; import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A) { - var Point = function() { - "use strict"; - _class_call_check(this, Point); - }; - A.Point = Point; - var Line = function(start, end) { - "use strict"; - _class_call_check(this, Line), this.start = start, this.end = end; - }; - A.fromOrigin = function(p) { + var fromOrigin = function(p) { return new Line({ x: 0, y: 0 }, p); + }, Point = function() { + "use strict"; + _class_call_check(this, Point); }; + A.Point = Point; + var Line = function Line(start, end) { + "use strict"; + _class_call_check(this, Line), this.start = start, this.end = end; + }; + A.fromOrigin = fromOrigin; }(A || (A = {})); diff --git a/crates/swc/tests/tsc-references/FunctionAndModuleWithSameNameAndCommonRoot_es5.2.minified.js b/crates/swc/tests/tsc-references/FunctionAndModuleWithSameNameAndCommonRoot_es5.2.minified.js index c4c332fec3d..02e7a03956a 100644 --- a/crates/swc/tests/tsc-references/FunctionAndModuleWithSameNameAndCommonRoot_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/FunctionAndModuleWithSameNameAndCommonRoot_es5.2.minified.js @@ -1,10 +1,13 @@ var A, B; -(A || (A = {})).Point = function() { - return { - x: 0, - y: 0 +!function(A) { + var Point = function() { + return { + x: 0, + y: 0 + }; }; -}, function(A) { + A.Point = Point; +}(A || (A = {})), function(A) { (A.Point || (A.Point = {})).Origin = { x: 0, y: 0 diff --git a/crates/swc/tests/tsc-references/FunctionAndModuleWithSameNameAndDifferentCommonRoot_es5.2.minified.js b/crates/swc/tests/tsc-references/FunctionAndModuleWithSameNameAndDifferentCommonRoot_es5.2.minified.js index 950f570ba00..1dc7205191e 100644 --- a/crates/swc/tests/tsc-references/FunctionAndModuleWithSameNameAndDifferentCommonRoot_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/FunctionAndModuleWithSameNameAndDifferentCommonRoot_es5.2.minified.js @@ -1,10 +1,13 @@ var A, B; -(A || (A = {})).Point = function() { - return { - x: 0, - y: 0 +!function(A) { + var Point = function() { + return { + x: 0, + y: 0 + }; }; -}, function(B) { + A.Point = Point; +}(A || (A = {})), function(B) { (B.Point || (B.Point = {})).Origin = { x: 0, y: 0 diff --git a/crates/swc/tests/tsc-references/ModuleAndFunctionWithSameNameAndCommonRoot_es5.2.minified.js b/crates/swc/tests/tsc-references/ModuleAndFunctionWithSameNameAndCommonRoot_es5.2.minified.js index a9bcdcdf859..deb2c8a4a28 100644 --- a/crates/swc/tests/tsc-references/ModuleAndFunctionWithSameNameAndCommonRoot_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ModuleAndFunctionWithSameNameAndCommonRoot_es5.2.minified.js @@ -4,12 +4,15 @@ var A, B; x: 0, y: 0 }; -}(A || (A = {})), (A || (A = {})).Point = function() { - return { - x: 0, - y: 0 +}(A || (A = {})), function(A) { + var Point = function() { + return { + x: 0, + y: 0 + }; }; -}, function(B) { + A.Point = Point; +}(A || (A = {})), function(B) { var Point = function() { return { x: 0, diff --git a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedFunctions_es5.2.minified.js b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedFunctions_es5.2.minified.js index 69a68a92cc1..2ddb8639be3 100644 --- a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedFunctions_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedFunctions_es5.2.minified.js @@ -1,8 +1,9 @@ var A; !function(A) { - A.fn = function(s) { + var fn = function(s) { return !0; - }, A.fng = function(s) { + }, fng = function(s) { return null; }; + A.fn = fn, A.fng = fng; }(A || (A = {})), A.fn, A.fng, A.fn2, A.fng2; diff --git a/crates/swc/tests/tsc-references/commonJSAliasedExport_es5.2.minified.js b/crates/swc/tests/tsc-references/commonJSAliasedExport_es5.2.minified.js index 8b6dd09dc4d..73a8b065c35 100644 --- a/crates/swc/tests/tsc-references/commonJSAliasedExport_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/commonJSAliasedExport_es5.2.minified.js @@ -1,8 +1,9 @@ +var donkey = function(ast) { + return ast; +}; function funky(declaration) { return !1; } -module.exports = function(ast) { - return ast; -}, module.exports.funky = funky; +module.exports = donkey, module.exports.funky = funky; var funky = require("./commonJSAliasedExport").funky; funky(1); diff --git a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer_es5.2.minified.js b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer_es5.2.minified.js index f03ef752456..04c25556278 100644 --- a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer_es5.2.minified.js @@ -7,11 +7,11 @@ var M, C = function() { _class_call_check(this, D); }; !function(M) { - var A = function() { + var F2 = function(x) { + return x.toString(); + }, A = function() { "use strict"; _class_call_check(this, A); }; - M.A = A, M.F2 = function(x) { - return x.toString(); - }; + M.A = A, M.F2 = F2; }(M || (M = {})), new C(), new C(), new D(), new C(), new M.A(); diff --git a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer_es5.2.minified.js b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer_es5.2.minified.js index 0b14166fdbe..13944e26189 100644 --- a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer_es5.2.minified.js @@ -7,19 +7,19 @@ var M, N, C = function() { _class_call_check(this, D); }; !function(M) { - var A = function() { + var _$F2 = function(x) { + return x.toString(); + }, A = function() { "use strict"; _class_call_check(this, A); }; - M.A = A, M.F2 = function(x) { - return x.toString(); - }; + M.A = A, M.F2 = _$F2; }(M || (M = {})), function(N) { - var A = function() { + var _$F2 = function(x) { + return x.toString(); + }, A = function() { "use strict"; _class_call_check(this, A); }; - N.A = A, N.F2 = function(x) { - return x.toString(); - }; + N.A = A, N.F2 = _$F2; }(N || (N = {})), new D(), new D(), new C(), new C(), new N.A(); diff --git a/crates/swc/tests/tsc-references/everyTypeWithInitializer_es5.2.minified.js b/crates/swc/tests/tsc-references/everyTypeWithInitializer_es5.2.minified.js index 36965f173f6..5eb33fef69c 100644 --- a/crates/swc/tests/tsc-references/everyTypeWithInitializer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/everyTypeWithInitializer_es5.2.minified.js @@ -7,11 +7,11 @@ var M, C = function() { _class_call_check(this, D); }; !function(M) { - var A = function() { + var F2 = function(x) { + return x.toString(); + }, A = function() { "use strict"; _class_call_check(this, A); }; - M.A = A, M.F2 = function(x) { - return x.toString(); - }; + M.A = A, M.F2 = F2; }(M || (M = {})), new C(), new C(), new D(), new M.A(), M.F2; diff --git a/crates/swc/tests/tsc-references/exportAssignmentMergedModule_es5.2.minified.js b/crates/swc/tests/tsc-references/exportAssignmentMergedModule_es5.2.minified.js index d5be3677601..ca67b24d5cb 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentMergedModule_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportAssignmentMergedModule_es5.2.minified.js @@ -1,11 +1,13 @@ !function(Foo) { - Foo.a = function() { + var a = function() { return 5; - }, Foo.b = !0; + }; + Foo.a = a, Foo.b = !0; }(Foo || (Foo = {})), function(Foo) { - Foo.c = function(a) { + var c = function(a) { return a; - }, (Foo.Test || (Foo.Test = {})).answer = 42; + }; + Foo.c = c, (Foo.Test || (Foo.Test = {})).answer = 42; }(Foo || (Foo = {})); var Foo, foo = require("./foo_0"); foo.a(), foo.b && (foo.Test.answer = foo.c(42)), module.exports = Foo; diff --git a/crates/swc/tests/tsc-references/exportCodeGen_es5.2.minified.js b/crates/swc/tests/tsc-references/exportCodeGen_es5.2.minified.js index 7efe89539f3..d15eaba8057 100644 --- a/crates/swc/tests/tsc-references/exportCodeGen_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportCodeGen_es5.2.minified.js @@ -1,10 +1,14 @@ var A, B, C, D, E, F; import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; -(A || (A = {})).x = 12, B || (B = {}), C || (C = {}), (D || (D = {})).yes = function() { - return !0; -}, function(E) { - (Color = E.Color || (E.Color = {}))[Color.Red = 0] = "Red", E.fn = function() {}; - var Color, C = function() { +(A || (A = {})).x = 12, B || (B = {}), C || (C = {}), function(D) { + var yes = function() { + return !0; + }; + D.yes = yes; +}(D || (D = {})), function(E) { + var Color, fn = function() {}; + (Color = E.Color || (E.Color = {}))[Color.Red = 0] = "Red", E.fn = fn; + var C = function() { "use strict"; _class_call_check(this, C); }; diff --git a/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl_es5.2.minified.js b/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl_es5.2.minified.js index 71e36bb4c10..be6c3e6152d 100644 --- a/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl_es5.2.minified.js @@ -17,13 +17,13 @@ var M, C = function() { _class_call_check(this, D); }; for(!function(M) { - var A = function() { + var F2 = function(x) { + return x.toString(); + }, A = function() { "use strict"; _class_call_check(this, A); }; - M.A = A, M.F2 = function(x) { - return x.toString(); - }; + M.A = A, M.F2 = F2; }(M || (M = {}));;); for(;;); for(;;); diff --git a/crates/swc/tests/tsc-references/forStatements_es5.2.minified.js b/crates/swc/tests/tsc-references/forStatements_es5.2.minified.js index 5d3b4d05596..15533fcf8d5 100644 --- a/crates/swc/tests/tsc-references/forStatements_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/forStatements_es5.2.minified.js @@ -7,13 +7,13 @@ var M, C = function() { _class_call_check(this, D); }; for(!function(M) { - var A = function() { + var F2 = function(x) { + return x.toString(); + }, A = function() { "use strict"; _class_call_check(this, A); }; - M.A = A, M.F2 = function(x) { - return x.toString(); - }; + M.A = A, M.F2 = F2; }(M || (M = {}));;); for(;;); for(;;); diff --git a/crates/swc/tests/tsc-references/ifDoWhileStatements_es5.2.minified.js b/crates/swc/tests/tsc-references/ifDoWhileStatements_es5.2.minified.js index 2f4ee977c13..9d798c77557 100644 --- a/crates/swc/tests/tsc-references/ifDoWhileStatements_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ifDoWhileStatements_es5.2.minified.js @@ -17,21 +17,21 @@ var M, N, C = function() { _class_call_check(this, D); }; for(!function(M) { - var A = function() { + var F2 = function(x) { + return x.toString(); + }, A = function() { "use strict"; _class_call_check(this, A); }; - M.A = A, M.F2 = function(x) { - return x.toString(); - }; + M.A = A, M.F2 = F2; }(M || (M = {})), function(N) { - var A = function() { + var F2 = function(x) { + return x.toString(); + }, A = function() { "use strict"; _class_call_check(this, A); }; - N.A = A, N.F2 = function(x) { - return x.toString(); - }; + N.A = A, N.F2 = F2; }(N || (N = {}));;); for(;;); for(;;); diff --git a/crates/swc/tests/tsc-references/importStatementsInterfaces_es5.2.minified.js b/crates/swc/tests/tsc-references/importStatementsInterfaces_es5.2.minified.js index ffda673527d..2ffffd632e8 100644 --- a/crates/swc/tests/tsc-references/importStatementsInterfaces_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importStatementsInterfaces_es5.2.minified.js @@ -1,4 +1,7 @@ var C, D, E; -C || (C = {}), D || (D = {}), (E || (E = {})).xDist = function(x) { - return 0 - x.x; -}; +C || (C = {}), D || (D = {}), function(E) { + var xDist = function(x) { + return 0 - x.x; + }; + E.xDist = xDist; +}(E || (E = {})); diff --git a/crates/swc/tests/tsc-references/importStatements_es5.2.minified.js b/crates/swc/tests/tsc-references/importStatements_es5.2.minified.js index 26ed20ca1d0..509a4e0256f 100644 --- a/crates/swc/tests/tsc-references/importStatements_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importStatements_es5.2.minified.js @@ -7,8 +7,8 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; }; A.Point = Point, A.Origin = new Point(0, 0); }(A || (A = {})), C || (C = {}), D || (D = {}), new A.Point(1, 1), function(E) { - var a = A; - E.xDist = function(x) { + var xDist = function(x) { return a.Origin.x - x.x; - }; + }, a = A; + E.xDist = xDist; }(E || (E = {})); diff --git a/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations_es5.2.minified.js b/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations_es5.2.minified.js index 4e6aa384b1e..e7e16765b54 100644 --- a/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations_es5.2.minified.js @@ -17,11 +17,11 @@ var M, C = function() { _class_call_check(this, D); }; !function(M) { - var A = function() { + var F2 = function(x) { + return x.toString(); + }, A = function() { "use strict"; _class_call_check(this, A); }; - M.A = A, M.F2 = function(x) { - return x.toString(); - }; + M.A = A, M.F2 = F2; }(M || (M = {})), new C(), new D(), new C(), new C2(), new C(), new C2(), new D(), new D(), M.A; diff --git a/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind_es5.2.minified.js b/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind_es5.2.minified.js index 889194bdeeb..682fbc6c493 100644 --- a/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind_es5.2.minified.js @@ -31,7 +31,9 @@ import _create_super from "@swc/helpers/src/_create_super.mjs"; _class_call_check(this, A1); }, (Color1 = Color || (Color = {}))[Color1.Blue = 0] = "Blue", Color1[Color1.Red = 1] = "Red"; }(A || (A = {})), function(Y) { - var A = function() { + var F = function(s) { + return 2; + }, A = function() { "use strict"; _class_call_check(this, A); }; @@ -63,9 +65,7 @@ import _create_super from "@swc/helpers/src/_create_super.mjs"; Y.BB = BB, Y.Module || (Y.Module = {}), A1 = function() { "use strict"; _class_call_check(this, A1); - }, (Color = Y.Color || (Y.Color = {}))[Color.Blue = 0] = "Blue", Color[Color.Red = 1] = "Red", Y.x = 12, Y.F = function(s) { - return 2; - }, Y.array = null, Y.fn = function(s) { + }, (Color = Y.Color || (Y.Color = {}))[Color.Blue = 0] = "Blue", Color[Color.Red = 1] = "Red", Y.x = 12, Y.F = F, Y.array = null, Y.fn = function(s) { return "hello " + s; }, Y.ol = { s: "hello", diff --git a/crates/swc/tests/tsc-references/neverType_es2015.2.minified.js b/crates/swc/tests/tsc-references/neverType_es2015.2.minified.js index e5fceb23e6c..11f7e7b6e43 100644 --- a/crates/swc/tests/tsc-references/neverType_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/neverType_es2015.2.minified.js @@ -9,6 +9,4 @@ function error(message) { cb(); }(()=>{ throw Error(); -}), function(cb) { - cb(); -}(()=>error("Error callback")); +}), error("Error callback"); diff --git a/crates/swc/tests/tsc-references/neverType_es5.2.minified.js b/crates/swc/tests/tsc-references/neverType_es5.2.minified.js index 0d2fe640196..8e5911ac18e 100644 --- a/crates/swc/tests/tsc-references/neverType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/neverType_es5.2.minified.js @@ -30,8 +30,4 @@ var C = function() { cb(); }(function() { throw Error(); -}), function(cb) { - cb(); -}(function() { - return error("Error callback"); -}); +}), error("Error callback"); diff --git a/crates/swc/tests/tsc-references/parser536727_es5.2.minified.js b/crates/swc/tests/tsc-references/parser536727_es5.2.minified.js index 92159810fec..382de0bee5f 100644 --- a/crates/swc/tests/tsc-references/parser536727_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parser536727_es5.2.minified.js @@ -3,9 +3,9 @@ function foo(f) { } var g = function(x) { return x + "blah"; +}, x = function() { + return g; }; foo(g), foo(function() { return g; -}), foo(function() { - return g; -}); +}), foo(x); diff --git a/crates/swc/tests/tsc-references/parserModule1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserModule1_es5.2.minified.js index c5a6469c435..a8eb5a1ca49 100644 --- a/crates/swc/tests/tsc-references/parserModule1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserModule1_es5.2.minified.js @@ -2,10 +2,10 @@ export var CompilerDiagnostics; !function(CompilerDiagnostics) { var Alert = function(output) { diagnosticWriter && diagnosticWriter.Alert(output); - }, debug = CompilerDiagnostics.debug = !1, diagnosticWriter = CompilerDiagnostics.diagnosticWriter = null; - CompilerDiagnostics.analysisPass = 0, CompilerDiagnostics.Alert = Alert, CompilerDiagnostics.debugPrint = function(s) { + }, debugPrint = function(s) { debug && Alert(s); - }, CompilerDiagnostics.assert = function(condition, s) { + }, assert = function(condition, s) { debug && !condition && Alert(s); - }; + }, debug = CompilerDiagnostics.debug = !1, diagnosticWriter = CompilerDiagnostics.diagnosticWriter = null; + CompilerDiagnostics.analysisPass = 0, CompilerDiagnostics.Alert = Alert, CompilerDiagnostics.debugPrint = debugPrint, CompilerDiagnostics.assert = assert; }(CompilerDiagnostics || (CompilerDiagnostics = {})); diff --git a/crates/swc/tests/tsc-references/parserRealSource14_es2015.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource14_es2015.2.minified.js index 5d9568d4d77..94cb62875a4 100644 --- a/crates/swc/tests/tsc-references/parserRealSource14_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource14_es2015.2.minified.js @@ -239,12 +239,12 @@ var TypeScript; var bestOffset = 0, pre = (cur, parent, walker)=>(TypeScript.isValidAstNode(cur) && (cur.minChar <= position && (bestOffset = max(bestOffset, cur.minChar)), (cur.minChar > position || cur.limChar < bestOffset) && (walker.options.goChildren = !1)), cur); return TypeScript.getAstWalkerFactory().walk(script, pre), bestOffset; }, TypeScript1.walkAST = function(ast, callback) { - var path = new AstPath(); - TypeScript.getAstWalkerFactory().walk(ast, function(cur, parent, walker) { + var pre = function(cur, parent, walker) { var path = walker.state; return path.push(cur), callback(path, walker), cur; - }, function(cur, parent, walker) { + }, post = function(cur, parent, walker) { return walker.state.pop(), cur; - }, null, path); + }, path = new AstPath(); + TypeScript.getAstWalkerFactory().walk(ast, pre, post, null, path); }; }(TypeScript || (TypeScript = {})); diff --git a/crates/swc/tests/tsc-references/parserRealSource14_es5.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource14_es5.2.minified.js index fed2ade7f87..2bb108bdbb1 100644 --- a/crates/swc/tests/tsc-references/parserRealSource14_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource14_es5.2.minified.js @@ -5,6 +5,8 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; return null === items || 0 === items.length ? null : items[items.length - 1]; }, max = function(a, b) { return a >= b ? a : b; + }, min = function(a, b) { + return a <= b ? a : b; }, isValidAstNode = function(ast) { return null !== ast && -1 !== ast.minChar && -1 !== ast.limChar; }, getAstPathToPosition = function(script, pos) { @@ -31,17 +33,15 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; }; return TypeScript.getAstWalkerFactory().walk(script, pre), bestOffset; }, walkAST = function(ast, callback) { - var path = new AstPath(); - TypeScript.getAstWalkerFactory().walk(ast, function(cur, parent, walker) { + var pre = function(cur, parent, walker) { var path = walker.state; return path.push(cur), callback(path, walker), cur; - }, function(cur, parent, walker) { + }, post = function(cur, parent, walker) { return walker.state.pop(), cur; - }, null, path); - }; - TypeScript1.lastOf = lastOf, TypeScript1.max = max, TypeScript1.min = function(a, b) { - return a <= b ? a : b; + }, path = new AstPath(); + TypeScript.getAstWalkerFactory().walk(ast, pre, post, null, path); }; + TypeScript1.lastOf = lastOf, TypeScript1.max = max, TypeScript1.min = min; var AstPath = function() { "use strict"; function AstPath() { diff --git a/crates/swc/tests/tsc-references/parserRealSource1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource1_es5.2.minified.js index cdb7df3c886..6452fc32eb4 100644 --- a/crates/swc/tests/tsc-references/parserRealSource1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource1_es5.2.minified.js @@ -1,6 +1,51 @@ var TypeScript; import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(TypeScript) { + var timeFunction = function(logger, funcDescription, func) { + var start = +new Date(), result = func(), end = +new Date(); + return logger.log(funcDescription + " completed in " + (end - start) + " msec"), result; + }, stringToLiteral = function(value, length) { + var result = "", addChar = function(index) { + var ch = value.charCodeAt(index); + switch(ch){ + case 0x09: + result += "\\t"; + break; + case 0x0a: + result += "\\n"; + break; + case 0x0b: + result += "\\v"; + break; + case 0x0c: + result += "\\f"; + break; + case 0x0d: + result += "\\r"; + break; + case 0x22: + result += '\\"'; + break; + case 0x27: + result += "\\'"; + break; + case 0x5c: + result += "\\"; + break; + default: + result += value.charAt(index); + } + }; + if (value.length > length) { + for(var mid = length >> 1, i = 0; i < mid; i++)addChar(i); + result += "(...)"; + for(var i = value.length - mid; i < value.length; i++)addChar(i); + } else { + length = value.length; + for(var i = 0; i < length; i++)addChar(i); + } + return result; + }; !function(CompilerDiagnostics) { var debug = CompilerDiagnostics.debug = !1, diagnosticWriter = CompilerDiagnostics.diagnosticWriter = null; function Alert(output) { @@ -72,49 +117,5 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; this.logContents.push(s); }, BufferedLogger; }(); - TypeScript.BufferedLogger = BufferedLogger, TypeScript.timeFunction = function(logger, funcDescription, func) { - var start = +new Date(), result = func(), end = +new Date(); - return logger.log(funcDescription + " completed in " + (end - start) + " msec"), result; - }, TypeScript.stringToLiteral = function(value, length) { - var result = "", addChar = function(index) { - var ch = value.charCodeAt(index); - switch(ch){ - case 0x09: - result += "\\t"; - break; - case 0x0a: - result += "\\n"; - break; - case 0x0b: - result += "\\v"; - break; - case 0x0c: - result += "\\f"; - break; - case 0x0d: - result += "\\r"; - break; - case 0x22: - result += '\\"'; - break; - case 0x27: - result += "\\'"; - break; - case 0x5c: - result += "\\"; - break; - default: - result += value.charAt(index); - } - }; - if (value.length > length) { - for(var mid = length >> 1, i = 0; i < mid; i++)addChar(i); - result += "(...)"; - for(var i = value.length - mid; i < value.length; i++)addChar(i); - } else { - length = value.length; - for(var i = 0; i < length; i++)addChar(i); - } - return result; - }; + TypeScript.BufferedLogger = BufferedLogger, TypeScript.timeFunction = timeFunction, TypeScript.stringToLiteral = stringToLiteral; }(TypeScript || (TypeScript = {})); diff --git a/crates/swc/tests/tsc-references/parserRealSource2_es5.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource2_es5.2.minified.js index e1e3b9a207f..fc0e85a7b07 100644 --- a/crates/swc/tests/tsc-references/parserRealSource2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource2_es5.2.minified.js @@ -1,11 +1,10 @@ var TypeScript; !function(TypeScript) { - var CodeGenTarget, ModuleGenTarget, ErrorRecoverySet, AllowedElements, Modifiers, ASTFlags, DeclFlags, ModuleFlags, SymbolFlags, VarFlags, FncFlags, SignatureFlags, TypeFlags, TypeRelationshipFlags, CodeGenTarget1, ModuleGenTarget1; - TypeScript.hasFlag = function(val, flag) { + var CodeGenTarget, ModuleGenTarget, ErrorRecoverySet, AllowedElements, Modifiers, ASTFlags, DeclFlags, ModuleFlags, SymbolFlags, VarFlags, FncFlags, SignatureFlags, TypeFlags, TypeRelationshipFlags, CodeGenTarget1, ModuleGenTarget1, hasFlag = function(val, flag) { return (val & flag) != 0; - }, (ErrorRecoverySet = TypeScript.ErrorRecoverySet || (TypeScript.ErrorRecoverySet = {}))[ErrorRecoverySet.None = 0] = "None", ErrorRecoverySet[ErrorRecoverySet.Comma = 1] = "Comma", ErrorRecoverySet[ErrorRecoverySet.SColon = 2] = "SColon", ErrorRecoverySet[ErrorRecoverySet.Asg = 4] = "Asg", ErrorRecoverySet[ErrorRecoverySet.BinOp = 8] = "BinOp", ErrorRecoverySet[ErrorRecoverySet.RBrack = 16] = "RBrack", ErrorRecoverySet[ErrorRecoverySet.RCurly = 32] = "RCurly", ErrorRecoverySet[ErrorRecoverySet.RParen = 64] = "RParen", ErrorRecoverySet[ErrorRecoverySet.Dot = 128] = "Dot", ErrorRecoverySet[ErrorRecoverySet.Colon = 256] = "Colon", ErrorRecoverySet[ErrorRecoverySet.PrimType = 512] = "PrimType", ErrorRecoverySet[ErrorRecoverySet.AddOp = 1024] = "AddOp", ErrorRecoverySet[ErrorRecoverySet.LCurly = 2048] = "LCurly", ErrorRecoverySet[ErrorRecoverySet.PreOp = 4096] = "PreOp", ErrorRecoverySet[ErrorRecoverySet.RegExp = 8192] = "RegExp", ErrorRecoverySet[ErrorRecoverySet.LParen = 16384] = "LParen", ErrorRecoverySet[ErrorRecoverySet.LBrack = 32768] = "LBrack", ErrorRecoverySet[ErrorRecoverySet.Scope = 65536] = "Scope", ErrorRecoverySet[ErrorRecoverySet.In = 131072] = "In", ErrorRecoverySet[ErrorRecoverySet.SCase = 262144] = "SCase", ErrorRecoverySet[ErrorRecoverySet.Else = 524288] = "Else", ErrorRecoverySet[ErrorRecoverySet.Catch = 1048576] = "Catch", ErrorRecoverySet[ErrorRecoverySet.Var = 2097152] = "Var", ErrorRecoverySet[ErrorRecoverySet.Stmt = 4194304] = "Stmt", ErrorRecoverySet[ErrorRecoverySet.While = 8388608] = "While", ErrorRecoverySet[ErrorRecoverySet.ID = 16777216] = "ID", ErrorRecoverySet[ErrorRecoverySet.Prefix = 33554432] = "Prefix", ErrorRecoverySet[ErrorRecoverySet.Literal = 67108864] = "Literal", ErrorRecoverySet[ErrorRecoverySet.RLit = 134217728] = "RLit", ErrorRecoverySet[ErrorRecoverySet.Func = 268435456] = "Func", ErrorRecoverySet[ErrorRecoverySet.EOF = 536870912] = "EOF", ErrorRecoverySet[ErrorRecoverySet.TypeScriptS = 1073741824] = "TypeScriptS", ErrorRecoverySet[ErrorRecoverySet.ExprStart = 520158210] = "ExprStart", ErrorRecoverySet[ErrorRecoverySet.StmtStart = 1608580098] = "StmtStart", ErrorRecoverySet[ErrorRecoverySet.Postfix = 49280] = "Postfix", (AllowedElements = TypeScript.AllowedElements || (TypeScript.AllowedElements = {}))[AllowedElements.None = 0] = "None", AllowedElements[AllowedElements.ModuleDeclarations = 4] = "ModuleDeclarations", AllowedElements[AllowedElements.ClassDeclarations = 8] = "ClassDeclarations", AllowedElements[AllowedElements.InterfaceDeclarations = 16] = "InterfaceDeclarations", AllowedElements[AllowedElements.AmbientDeclarations = 1024] = "AmbientDeclarations", AllowedElements[AllowedElements.Properties = 2048] = "Properties", AllowedElements[AllowedElements.Global = 1052] = "Global", AllowedElements[AllowedElements.QuickParse = 3100] = "QuickParse", (Modifiers = TypeScript.Modifiers || (TypeScript.Modifiers = {}))[Modifiers.None = 0] = "None", Modifiers[Modifiers.Private = 1] = "Private", Modifiers[Modifiers.Public = 2] = "Public", Modifiers[Modifiers.Readonly = 4] = "Readonly", Modifiers[Modifiers.Ambient = 8] = "Ambient", Modifiers[Modifiers.Exported = 16] = "Exported", Modifiers[Modifiers.Getter = 32] = "Getter", Modifiers[Modifiers.Setter = 64] = "Setter", Modifiers[Modifiers.Static = 128] = "Static", (ASTFlags = TypeScript.ASTFlags || (TypeScript.ASTFlags = {}))[ASTFlags.None = 0] = "None", ASTFlags[ASTFlags.ExplicitSemicolon = 1] = "ExplicitSemicolon", ASTFlags[ASTFlags.AutomaticSemicolon = 2] = "AutomaticSemicolon", ASTFlags[ASTFlags.Writeable = 4] = "Writeable", ASTFlags[ASTFlags.Error = 8] = "Error", ASTFlags[ASTFlags.DotLHSPartial = 16] = "DotLHSPartial", ASTFlags[ASTFlags.DotLHS = 32] = "DotLHS", ASTFlags[ASTFlags.IsStatement = 64] = "IsStatement", ASTFlags[ASTFlags.StrictMode = 128] = "StrictMode", ASTFlags[ASTFlags.PossibleOptionalParameter = 256] = "PossibleOptionalParameter", ASTFlags[ASTFlags.ClassBaseConstructorCall = 512] = "ClassBaseConstructorCall", ASTFlags[ASTFlags.OptionalName = 1024] = "OptionalName", ASTFlags[ASTFlags.SkipNextRParen = 2048] = "SkipNextRParen", (DeclFlags = TypeScript.DeclFlags || (TypeScript.DeclFlags = {}))[DeclFlags.None = 0] = "None", DeclFlags[DeclFlags.Exported = 1] = "Exported", DeclFlags[DeclFlags.Private = 2] = "Private", DeclFlags[DeclFlags.Public = 4] = "Public", DeclFlags[DeclFlags.Ambient = 8] = "Ambient", DeclFlags[DeclFlags.Static = 16] = "Static", DeclFlags[DeclFlags.LocalStatic = 32] = "LocalStatic", DeclFlags[DeclFlags.GetAccessor = 64] = "GetAccessor", DeclFlags[DeclFlags.SetAccessor = 128] = "SetAccessor", (ModuleFlags = TypeScript.ModuleFlags || (TypeScript.ModuleFlags = {}))[ModuleFlags.None = 0] = "None", ModuleFlags[ModuleFlags.Exported = 1] = "Exported", ModuleFlags[ModuleFlags.Private = 2] = "Private", ModuleFlags[ModuleFlags.Public = 4] = "Public", ModuleFlags[ModuleFlags.Ambient = 8] = "Ambient", ModuleFlags[ModuleFlags.Static = 16] = "Static", ModuleFlags[ModuleFlags.LocalStatic = 32] = "LocalStatic", ModuleFlags[ModuleFlags.GetAccessor = 64] = "GetAccessor", ModuleFlags[ModuleFlags.SetAccessor = 128] = "SetAccessor", ModuleFlags[ModuleFlags.IsEnum = 256] = "IsEnum", ModuleFlags[ModuleFlags.ShouldEmitModuleDecl = 512] = "ShouldEmitModuleDecl", ModuleFlags[ModuleFlags.IsWholeFile = 1024] = "IsWholeFile", ModuleFlags[ModuleFlags.IsDynamic = 2048] = "IsDynamic", ModuleFlags[ModuleFlags.MustCaptureThis = 4096] = "MustCaptureThis", (SymbolFlags = TypeScript.SymbolFlags || (TypeScript.SymbolFlags = {}))[SymbolFlags.None = 0] = "None", SymbolFlags[SymbolFlags.Exported = 1] = "Exported", SymbolFlags[SymbolFlags.Private = 2] = "Private", SymbolFlags[SymbolFlags.Public = 4] = "Public", SymbolFlags[SymbolFlags.Ambient = 8] = "Ambient", SymbolFlags[SymbolFlags.Static = 16] = "Static", SymbolFlags[SymbolFlags.LocalStatic = 32] = "LocalStatic", SymbolFlags[SymbolFlags.GetAccessor = 64] = "GetAccessor", SymbolFlags[SymbolFlags.SetAccessor = 128] = "SetAccessor", SymbolFlags[SymbolFlags.Property = 256] = "Property", SymbolFlags[SymbolFlags.Readonly = 512] = "Readonly", SymbolFlags[SymbolFlags.ModuleMember = 1024] = "ModuleMember", SymbolFlags[SymbolFlags.InterfaceMember = 2048] = "InterfaceMember", SymbolFlags[SymbolFlags.ClassMember = 4096] = "ClassMember", SymbolFlags[SymbolFlags.BuiltIn = 8192] = "BuiltIn", SymbolFlags[SymbolFlags.TypeSetDuringScopeAssignment = 16384] = "TypeSetDuringScopeAssignment", SymbolFlags[SymbolFlags.Constant = 32768] = "Constant", SymbolFlags[SymbolFlags.Optional = 65536] = "Optional", SymbolFlags[SymbolFlags.RecursivelyReferenced = 131072] = "RecursivelyReferenced", SymbolFlags[SymbolFlags.Bound = 262144] = "Bound", SymbolFlags[SymbolFlags.CompilerGenerated = 524288] = "CompilerGenerated", (VarFlags = TypeScript.VarFlags || (TypeScript.VarFlags = {}))[VarFlags.None = 0] = "None", VarFlags[VarFlags.Exported = 1] = "Exported", VarFlags[VarFlags.Private = 2] = "Private", VarFlags[VarFlags.Public = 4] = "Public", VarFlags[VarFlags.Ambient = 8] = "Ambient", VarFlags[VarFlags.Static = 16] = "Static", VarFlags[VarFlags.LocalStatic = 32] = "LocalStatic", VarFlags[VarFlags.GetAccessor = 64] = "GetAccessor", VarFlags[VarFlags.SetAccessor = 128] = "SetAccessor", VarFlags[VarFlags.AutoInit = 256] = "AutoInit", VarFlags[VarFlags.Property = 512] = "Property", VarFlags[VarFlags.Readonly = 1024] = "Readonly", VarFlags[VarFlags.Class = 2048] = "Class", VarFlags[VarFlags.ClassProperty = 4096] = "ClassProperty", VarFlags[VarFlags.ClassBodyProperty = 8192] = "ClassBodyProperty", VarFlags[VarFlags.ClassConstructorProperty = 16384] = "ClassConstructorProperty", VarFlags[VarFlags.ClassSuperMustBeFirstCallInConstructor = 32768] = "ClassSuperMustBeFirstCallInConstructor", VarFlags[VarFlags.Constant = 65536] = "Constant", VarFlags[VarFlags.MustCaptureThis = 131072] = "MustCaptureThis", (FncFlags = TypeScript.FncFlags || (TypeScript.FncFlags = {}))[FncFlags.None = 0] = "None", FncFlags[FncFlags.Exported = 1] = "Exported", FncFlags[FncFlags.Private = 2] = "Private", FncFlags[FncFlags.Public = 4] = "Public", FncFlags[FncFlags.Ambient = 8] = "Ambient", FncFlags[FncFlags.Static = 16] = "Static", FncFlags[FncFlags.LocalStatic = 32] = "LocalStatic", FncFlags[FncFlags.GetAccessor = 64] = "GetAccessor", FncFlags[FncFlags.SetAccessor = 128] = "SetAccessor", FncFlags[FncFlags.Definition = 256] = "Definition", FncFlags[FncFlags.Signature = 512] = "Signature", FncFlags[FncFlags.Method = 1024] = "Method", FncFlags[FncFlags.HasReturnExpression = 2048] = "HasReturnExpression", FncFlags[FncFlags.CallMember = 4096] = "CallMember", FncFlags[FncFlags.ConstructMember = 8192] = "ConstructMember", FncFlags[FncFlags.HasSelfReference = 16384] = "HasSelfReference", FncFlags[FncFlags.IsFatArrowFunction = 32768] = "IsFatArrowFunction", FncFlags[FncFlags.IndexerMember = 65536] = "IndexerMember", FncFlags[FncFlags.IsFunctionExpression = 131072] = "IsFunctionExpression", FncFlags[FncFlags.ClassMethod = 262144] = "ClassMethod", FncFlags[FncFlags.ClassPropertyMethodExported = 524288] = "ClassPropertyMethodExported", (SignatureFlags = TypeScript.SignatureFlags || (TypeScript.SignatureFlags = {}))[SignatureFlags.None = 0] = "None", SignatureFlags[SignatureFlags.IsIndexer = 1] = "IsIndexer", SignatureFlags[SignatureFlags.IsStringIndexer = 2] = "IsStringIndexer", SignatureFlags[SignatureFlags.IsNumberIndexer = 4] = "IsNumberIndexer", TypeScript.ToDeclFlags = function(fncOrVarOrSymbolOrModuleFlags) { + }, ToDeclFlags = function(fncOrVarOrSymbolOrModuleFlags) { return fncOrVarOrSymbolOrModuleFlags; - }, (TypeFlags = TypeScript.TypeFlags || (TypeScript.TypeFlags = {}))[TypeFlags.None = 0] = "None", TypeFlags[TypeFlags.HasImplementation = 1] = "HasImplementation", TypeFlags[TypeFlags.HasSelfReference = 2] = "HasSelfReference", TypeFlags[TypeFlags.MergeResult = 4] = "MergeResult", TypeFlags[TypeFlags.IsEnum = 8] = "IsEnum", TypeFlags[TypeFlags.BuildingName = 16] = "BuildingName", TypeFlags[TypeFlags.HasBaseType = 32] = "HasBaseType", TypeFlags[TypeFlags.HasBaseTypeOfObject = 64] = "HasBaseTypeOfObject", TypeFlags[TypeFlags.IsClass = 128] = "IsClass", (TypeRelationshipFlags = TypeScript.TypeRelationshipFlags || (TypeScript.TypeRelationshipFlags = {}))[TypeRelationshipFlags.SuccessfulComparison = 0] = "SuccessfulComparison", TypeRelationshipFlags[TypeRelationshipFlags.SourceIsNullTargetIsVoidOrUndefined = 1] = "SourceIsNullTargetIsVoidOrUndefined", TypeRelationshipFlags[TypeRelationshipFlags.RequiredPropertyIsMissing = 2] = "RequiredPropertyIsMissing", TypeRelationshipFlags[TypeRelationshipFlags.IncompatibleSignatures = 4] = "IncompatibleSignatures", TypeRelationshipFlags[TypeRelationshipFlags.SourceSignatureHasTooManyParameters = 3] = "SourceSignatureHasTooManyParameters", TypeRelationshipFlags[TypeRelationshipFlags.IncompatibleReturnTypes = 16] = "IncompatibleReturnTypes", TypeRelationshipFlags[TypeRelationshipFlags.IncompatiblePropertyTypes = 32] = "IncompatiblePropertyTypes", TypeRelationshipFlags[TypeRelationshipFlags.IncompatibleParameterTypes = 64] = "IncompatibleParameterTypes", (CodeGenTarget1 = CodeGenTarget = TypeScript.CodeGenTarget || (TypeScript.CodeGenTarget = {}))[CodeGenTarget1.ES3 = 0] = "ES3", CodeGenTarget1[CodeGenTarget1.ES5 = 1] = "ES5", (ModuleGenTarget1 = ModuleGenTarget = TypeScript.ModuleGenTarget || (TypeScript.ModuleGenTarget = {}))[ModuleGenTarget1.Synchronous = 0] = "Synchronous", ModuleGenTarget1[ModuleGenTarget1.Asynchronous = 1] = "Asynchronous", ModuleGenTarget1[ModuleGenTarget1.Local = 2] = "Local", TypeScript.codeGenTarget = CodeGenTarget.ES3, TypeScript.moduleGenTarget = ModuleGenTarget.Synchronous, TypeScript.optimizeModuleCodeGen = !0, TypeScript.flagsToString = function(e, flags) { + }, flagsToString = function(e, flags) { for(var builder = "", i = 1; i < -2147483648; i <<= 1)if ((flags & i) != 0) { for(var k in e)if (e[k] == i) { builder.length > 0 && (builder += "|"), builder += k; @@ -14,4 +13,5 @@ var TypeScript; } return builder; }; + TypeScript.hasFlag = hasFlag, (ErrorRecoverySet = TypeScript.ErrorRecoverySet || (TypeScript.ErrorRecoverySet = {}))[ErrorRecoverySet.None = 0] = "None", ErrorRecoverySet[ErrorRecoverySet.Comma = 1] = "Comma", ErrorRecoverySet[ErrorRecoverySet.SColon = 2] = "SColon", ErrorRecoverySet[ErrorRecoverySet.Asg = 4] = "Asg", ErrorRecoverySet[ErrorRecoverySet.BinOp = 8] = "BinOp", ErrorRecoverySet[ErrorRecoverySet.RBrack = 16] = "RBrack", ErrorRecoverySet[ErrorRecoverySet.RCurly = 32] = "RCurly", ErrorRecoverySet[ErrorRecoverySet.RParen = 64] = "RParen", ErrorRecoverySet[ErrorRecoverySet.Dot = 128] = "Dot", ErrorRecoverySet[ErrorRecoverySet.Colon = 256] = "Colon", ErrorRecoverySet[ErrorRecoverySet.PrimType = 512] = "PrimType", ErrorRecoverySet[ErrorRecoverySet.AddOp = 1024] = "AddOp", ErrorRecoverySet[ErrorRecoverySet.LCurly = 2048] = "LCurly", ErrorRecoverySet[ErrorRecoverySet.PreOp = 4096] = "PreOp", ErrorRecoverySet[ErrorRecoverySet.RegExp = 8192] = "RegExp", ErrorRecoverySet[ErrorRecoverySet.LParen = 16384] = "LParen", ErrorRecoverySet[ErrorRecoverySet.LBrack = 32768] = "LBrack", ErrorRecoverySet[ErrorRecoverySet.Scope = 65536] = "Scope", ErrorRecoverySet[ErrorRecoverySet.In = 131072] = "In", ErrorRecoverySet[ErrorRecoverySet.SCase = 262144] = "SCase", ErrorRecoverySet[ErrorRecoverySet.Else = 524288] = "Else", ErrorRecoverySet[ErrorRecoverySet.Catch = 1048576] = "Catch", ErrorRecoverySet[ErrorRecoverySet.Var = 2097152] = "Var", ErrorRecoverySet[ErrorRecoverySet.Stmt = 4194304] = "Stmt", ErrorRecoverySet[ErrorRecoverySet.While = 8388608] = "While", ErrorRecoverySet[ErrorRecoverySet.ID = 16777216] = "ID", ErrorRecoverySet[ErrorRecoverySet.Prefix = 33554432] = "Prefix", ErrorRecoverySet[ErrorRecoverySet.Literal = 67108864] = "Literal", ErrorRecoverySet[ErrorRecoverySet.RLit = 134217728] = "RLit", ErrorRecoverySet[ErrorRecoverySet.Func = 268435456] = "Func", ErrorRecoverySet[ErrorRecoverySet.EOF = 536870912] = "EOF", ErrorRecoverySet[ErrorRecoverySet.TypeScriptS = 1073741824] = "TypeScriptS", ErrorRecoverySet[ErrorRecoverySet.ExprStart = 520158210] = "ExprStart", ErrorRecoverySet[ErrorRecoverySet.StmtStart = 1608580098] = "StmtStart", ErrorRecoverySet[ErrorRecoverySet.Postfix = 49280] = "Postfix", (AllowedElements = TypeScript.AllowedElements || (TypeScript.AllowedElements = {}))[AllowedElements.None = 0] = "None", AllowedElements[AllowedElements.ModuleDeclarations = 4] = "ModuleDeclarations", AllowedElements[AllowedElements.ClassDeclarations = 8] = "ClassDeclarations", AllowedElements[AllowedElements.InterfaceDeclarations = 16] = "InterfaceDeclarations", AllowedElements[AllowedElements.AmbientDeclarations = 1024] = "AmbientDeclarations", AllowedElements[AllowedElements.Properties = 2048] = "Properties", AllowedElements[AllowedElements.Global = 1052] = "Global", AllowedElements[AllowedElements.QuickParse = 3100] = "QuickParse", (Modifiers = TypeScript.Modifiers || (TypeScript.Modifiers = {}))[Modifiers.None = 0] = "None", Modifiers[Modifiers.Private = 1] = "Private", Modifiers[Modifiers.Public = 2] = "Public", Modifiers[Modifiers.Readonly = 4] = "Readonly", Modifiers[Modifiers.Ambient = 8] = "Ambient", Modifiers[Modifiers.Exported = 16] = "Exported", Modifiers[Modifiers.Getter = 32] = "Getter", Modifiers[Modifiers.Setter = 64] = "Setter", Modifiers[Modifiers.Static = 128] = "Static", (ASTFlags = TypeScript.ASTFlags || (TypeScript.ASTFlags = {}))[ASTFlags.None = 0] = "None", ASTFlags[ASTFlags.ExplicitSemicolon = 1] = "ExplicitSemicolon", ASTFlags[ASTFlags.AutomaticSemicolon = 2] = "AutomaticSemicolon", ASTFlags[ASTFlags.Writeable = 4] = "Writeable", ASTFlags[ASTFlags.Error = 8] = "Error", ASTFlags[ASTFlags.DotLHSPartial = 16] = "DotLHSPartial", ASTFlags[ASTFlags.DotLHS = 32] = "DotLHS", ASTFlags[ASTFlags.IsStatement = 64] = "IsStatement", ASTFlags[ASTFlags.StrictMode = 128] = "StrictMode", ASTFlags[ASTFlags.PossibleOptionalParameter = 256] = "PossibleOptionalParameter", ASTFlags[ASTFlags.ClassBaseConstructorCall = 512] = "ClassBaseConstructorCall", ASTFlags[ASTFlags.OptionalName = 1024] = "OptionalName", ASTFlags[ASTFlags.SkipNextRParen = 2048] = "SkipNextRParen", (DeclFlags = TypeScript.DeclFlags || (TypeScript.DeclFlags = {}))[DeclFlags.None = 0] = "None", DeclFlags[DeclFlags.Exported = 1] = "Exported", DeclFlags[DeclFlags.Private = 2] = "Private", DeclFlags[DeclFlags.Public = 4] = "Public", DeclFlags[DeclFlags.Ambient = 8] = "Ambient", DeclFlags[DeclFlags.Static = 16] = "Static", DeclFlags[DeclFlags.LocalStatic = 32] = "LocalStatic", DeclFlags[DeclFlags.GetAccessor = 64] = "GetAccessor", DeclFlags[DeclFlags.SetAccessor = 128] = "SetAccessor", (ModuleFlags = TypeScript.ModuleFlags || (TypeScript.ModuleFlags = {}))[ModuleFlags.None = 0] = "None", ModuleFlags[ModuleFlags.Exported = 1] = "Exported", ModuleFlags[ModuleFlags.Private = 2] = "Private", ModuleFlags[ModuleFlags.Public = 4] = "Public", ModuleFlags[ModuleFlags.Ambient = 8] = "Ambient", ModuleFlags[ModuleFlags.Static = 16] = "Static", ModuleFlags[ModuleFlags.LocalStatic = 32] = "LocalStatic", ModuleFlags[ModuleFlags.GetAccessor = 64] = "GetAccessor", ModuleFlags[ModuleFlags.SetAccessor = 128] = "SetAccessor", ModuleFlags[ModuleFlags.IsEnum = 256] = "IsEnum", ModuleFlags[ModuleFlags.ShouldEmitModuleDecl = 512] = "ShouldEmitModuleDecl", ModuleFlags[ModuleFlags.IsWholeFile = 1024] = "IsWholeFile", ModuleFlags[ModuleFlags.IsDynamic = 2048] = "IsDynamic", ModuleFlags[ModuleFlags.MustCaptureThis = 4096] = "MustCaptureThis", (SymbolFlags = TypeScript.SymbolFlags || (TypeScript.SymbolFlags = {}))[SymbolFlags.None = 0] = "None", SymbolFlags[SymbolFlags.Exported = 1] = "Exported", SymbolFlags[SymbolFlags.Private = 2] = "Private", SymbolFlags[SymbolFlags.Public = 4] = "Public", SymbolFlags[SymbolFlags.Ambient = 8] = "Ambient", SymbolFlags[SymbolFlags.Static = 16] = "Static", SymbolFlags[SymbolFlags.LocalStatic = 32] = "LocalStatic", SymbolFlags[SymbolFlags.GetAccessor = 64] = "GetAccessor", SymbolFlags[SymbolFlags.SetAccessor = 128] = "SetAccessor", SymbolFlags[SymbolFlags.Property = 256] = "Property", SymbolFlags[SymbolFlags.Readonly = 512] = "Readonly", SymbolFlags[SymbolFlags.ModuleMember = 1024] = "ModuleMember", SymbolFlags[SymbolFlags.InterfaceMember = 2048] = "InterfaceMember", SymbolFlags[SymbolFlags.ClassMember = 4096] = "ClassMember", SymbolFlags[SymbolFlags.BuiltIn = 8192] = "BuiltIn", SymbolFlags[SymbolFlags.TypeSetDuringScopeAssignment = 16384] = "TypeSetDuringScopeAssignment", SymbolFlags[SymbolFlags.Constant = 32768] = "Constant", SymbolFlags[SymbolFlags.Optional = 65536] = "Optional", SymbolFlags[SymbolFlags.RecursivelyReferenced = 131072] = "RecursivelyReferenced", SymbolFlags[SymbolFlags.Bound = 262144] = "Bound", SymbolFlags[SymbolFlags.CompilerGenerated = 524288] = "CompilerGenerated", (VarFlags = TypeScript.VarFlags || (TypeScript.VarFlags = {}))[VarFlags.None = 0] = "None", VarFlags[VarFlags.Exported = 1] = "Exported", VarFlags[VarFlags.Private = 2] = "Private", VarFlags[VarFlags.Public = 4] = "Public", VarFlags[VarFlags.Ambient = 8] = "Ambient", VarFlags[VarFlags.Static = 16] = "Static", VarFlags[VarFlags.LocalStatic = 32] = "LocalStatic", VarFlags[VarFlags.GetAccessor = 64] = "GetAccessor", VarFlags[VarFlags.SetAccessor = 128] = "SetAccessor", VarFlags[VarFlags.AutoInit = 256] = "AutoInit", VarFlags[VarFlags.Property = 512] = "Property", VarFlags[VarFlags.Readonly = 1024] = "Readonly", VarFlags[VarFlags.Class = 2048] = "Class", VarFlags[VarFlags.ClassProperty = 4096] = "ClassProperty", VarFlags[VarFlags.ClassBodyProperty = 8192] = "ClassBodyProperty", VarFlags[VarFlags.ClassConstructorProperty = 16384] = "ClassConstructorProperty", VarFlags[VarFlags.ClassSuperMustBeFirstCallInConstructor = 32768] = "ClassSuperMustBeFirstCallInConstructor", VarFlags[VarFlags.Constant = 65536] = "Constant", VarFlags[VarFlags.MustCaptureThis = 131072] = "MustCaptureThis", (FncFlags = TypeScript.FncFlags || (TypeScript.FncFlags = {}))[FncFlags.None = 0] = "None", FncFlags[FncFlags.Exported = 1] = "Exported", FncFlags[FncFlags.Private = 2] = "Private", FncFlags[FncFlags.Public = 4] = "Public", FncFlags[FncFlags.Ambient = 8] = "Ambient", FncFlags[FncFlags.Static = 16] = "Static", FncFlags[FncFlags.LocalStatic = 32] = "LocalStatic", FncFlags[FncFlags.GetAccessor = 64] = "GetAccessor", FncFlags[FncFlags.SetAccessor = 128] = "SetAccessor", FncFlags[FncFlags.Definition = 256] = "Definition", FncFlags[FncFlags.Signature = 512] = "Signature", FncFlags[FncFlags.Method = 1024] = "Method", FncFlags[FncFlags.HasReturnExpression = 2048] = "HasReturnExpression", FncFlags[FncFlags.CallMember = 4096] = "CallMember", FncFlags[FncFlags.ConstructMember = 8192] = "ConstructMember", FncFlags[FncFlags.HasSelfReference = 16384] = "HasSelfReference", FncFlags[FncFlags.IsFatArrowFunction = 32768] = "IsFatArrowFunction", FncFlags[FncFlags.IndexerMember = 65536] = "IndexerMember", FncFlags[FncFlags.IsFunctionExpression = 131072] = "IsFunctionExpression", FncFlags[FncFlags.ClassMethod = 262144] = "ClassMethod", FncFlags[FncFlags.ClassPropertyMethodExported = 524288] = "ClassPropertyMethodExported", (SignatureFlags = TypeScript.SignatureFlags || (TypeScript.SignatureFlags = {}))[SignatureFlags.None = 0] = "None", SignatureFlags[SignatureFlags.IsIndexer = 1] = "IsIndexer", SignatureFlags[SignatureFlags.IsStringIndexer = 2] = "IsStringIndexer", SignatureFlags[SignatureFlags.IsNumberIndexer = 4] = "IsNumberIndexer", TypeScript.ToDeclFlags = ToDeclFlags, (TypeFlags = TypeScript.TypeFlags || (TypeScript.TypeFlags = {}))[TypeFlags.None = 0] = "None", TypeFlags[TypeFlags.HasImplementation = 1] = "HasImplementation", TypeFlags[TypeFlags.HasSelfReference = 2] = "HasSelfReference", TypeFlags[TypeFlags.MergeResult = 4] = "MergeResult", TypeFlags[TypeFlags.IsEnum = 8] = "IsEnum", TypeFlags[TypeFlags.BuildingName = 16] = "BuildingName", TypeFlags[TypeFlags.HasBaseType = 32] = "HasBaseType", TypeFlags[TypeFlags.HasBaseTypeOfObject = 64] = "HasBaseTypeOfObject", TypeFlags[TypeFlags.IsClass = 128] = "IsClass", (TypeRelationshipFlags = TypeScript.TypeRelationshipFlags || (TypeScript.TypeRelationshipFlags = {}))[TypeRelationshipFlags.SuccessfulComparison = 0] = "SuccessfulComparison", TypeRelationshipFlags[TypeRelationshipFlags.SourceIsNullTargetIsVoidOrUndefined = 1] = "SourceIsNullTargetIsVoidOrUndefined", TypeRelationshipFlags[TypeRelationshipFlags.RequiredPropertyIsMissing = 2] = "RequiredPropertyIsMissing", TypeRelationshipFlags[TypeRelationshipFlags.IncompatibleSignatures = 4] = "IncompatibleSignatures", TypeRelationshipFlags[TypeRelationshipFlags.SourceSignatureHasTooManyParameters = 3] = "SourceSignatureHasTooManyParameters", TypeRelationshipFlags[TypeRelationshipFlags.IncompatibleReturnTypes = 16] = "IncompatibleReturnTypes", TypeRelationshipFlags[TypeRelationshipFlags.IncompatiblePropertyTypes = 32] = "IncompatiblePropertyTypes", TypeRelationshipFlags[TypeRelationshipFlags.IncompatibleParameterTypes = 64] = "IncompatibleParameterTypes", (CodeGenTarget1 = CodeGenTarget = TypeScript.CodeGenTarget || (TypeScript.CodeGenTarget = {}))[CodeGenTarget1.ES3 = 0] = "ES3", CodeGenTarget1[CodeGenTarget1.ES5 = 1] = "ES5", (ModuleGenTarget1 = ModuleGenTarget = TypeScript.ModuleGenTarget || (TypeScript.ModuleGenTarget = {}))[ModuleGenTarget1.Synchronous = 0] = "Synchronous", ModuleGenTarget1[ModuleGenTarget1.Asynchronous = 1] = "Asynchronous", ModuleGenTarget1[ModuleGenTarget1.Local = 2] = "Local", TypeScript.codeGenTarget = CodeGenTarget.ES3, TypeScript.moduleGenTarget = ModuleGenTarget.Synchronous, TypeScript.optimizeModuleCodeGen = !0, TypeScript.flagsToString = flagsToString; }(TypeScript || (TypeScript = {})); diff --git a/crates/swc/tests/tsc-references/parserRealSource5_es5.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource5_es5.2.minified.js index 8d62b1f9ceb..672b27b4dc2 100644 --- a/crates/swc/tests/tsc-references/parserRealSource5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource5_es5.2.minified.js @@ -1,7 +1,12 @@ var TypeScript; import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(TypeScript) { - var PrintContext = function() { + var prePrintAST = function(ast, parent, walker) { + var pc = walker.state; + return ast.print(pc), pc.increaseIndent(), ast; + }, postPrintAST = function(ast, parent, walker) { + return walker.state.decreaseIndent(), ast; + }, PrintContext = function() { "use strict"; function PrintContext(outfile, parser) { _class_call_check(this, PrintContext), this.outfile = outfile, this.parser = parser, this.builder = "", this.indent1 = " ", this.indentStrings = [], this.indentAmt = 0; @@ -26,10 +31,5 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; this.builder += s, this.outfile.WriteLine(this.builder), this.builder = ""; }, PrintContext; }(); - TypeScript.PrintContext = PrintContext, TypeScript.prePrintAST = function(ast, parent, walker) { - var pc = walker.state; - return ast.print(pc), pc.increaseIndent(), ast; - }, TypeScript.postPrintAST = function(ast, parent, walker) { - return walker.state.decreaseIndent(), ast; - }; + TypeScript.PrintContext = PrintContext, TypeScript.prePrintAST = prePrintAST, TypeScript.postPrintAST = postPrintAST; }(TypeScript || (TypeScript = {})); diff --git a/crates/swc/tests/tsc-references/parserRealSource6_es5.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource6_es5.2.minified.js index 0929d7a2362..809bb1a0663 100644 --- a/crates/swc/tests/tsc-references/parserRealSource6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource6_es5.2.minified.js @@ -4,6 +4,11 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var preFindMemberScope = function(ast, parent, walker) { var memScope = walker.state; return hasFlag(ast.flags, memScope.matchFlag) && (memScope.pos < 0 || memScope.pos == ast.limChar) && (memScope.ast = ast, null == ast.type && memScope.pos >= 0 && memScope.flow.inScopeTypeCheck(ast, memScope.scope), memScope.type = ast.type, memScope.options.stopWalk()), ast; + }, pushTypeCollectionScope = function(container, valueMembers, ambientValueMembers, enclosedTypes, ambientEnclosedTypes, context, thisType, classType, moduleDecl) { + var builder = new SymbolScopeBuilder(valueMembers, ambientValueMembers, enclosedTypes, ambientEnclosedTypes, null, container), chain = new ScopeChain(container, context.scopeChain, builder); + chain.thisType = thisType, chain.classType = classType, chain.moduleDecl = moduleDecl, context.scopeChain = chain; + }, popTypeCollectionScope = function(context) { + context.scopeChain = context.scopeChain.previous; }, preFindEnclosingScope = function(ast, parent, walker) { var context = walker.state, minChar = ast.minChar, limChar = ast.limChar; if (ast.nodeType == NodeType.Script && context.pos > limChar && (limChar = context.pos), minChar <= context.pos && limChar >= context.pos) { @@ -85,10 +90,5 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; return this.scriptFragment; }, EnclosingScopeContext; }(); - TypeScript1.EnclosingScopeContext = EnclosingScopeContext, TypeScript1.preFindMemberScope = preFindMemberScope, TypeScript1.pushTypeCollectionScope = function(container, valueMembers, ambientValueMembers, enclosedTypes, ambientEnclosedTypes, context, thisType, classType, moduleDecl) { - var builder = new SymbolScopeBuilder(valueMembers, ambientValueMembers, enclosedTypes, ambientEnclosedTypes, null, container), chain = new ScopeChain(container, context.scopeChain, builder); - chain.thisType = thisType, chain.classType = classType, chain.moduleDecl = moduleDecl, context.scopeChain = chain; - }, TypeScript1.popTypeCollectionScope = function(context) { - context.scopeChain = context.scopeChain.previous; - }, TypeScript1.preFindEnclosingScope = preFindEnclosingScope, TypeScript1.findEnclosingScopeAt = findEnclosingScopeAt; + TypeScript1.EnclosingScopeContext = EnclosingScopeContext, TypeScript1.preFindMemberScope = preFindMemberScope, TypeScript1.pushTypeCollectionScope = pushTypeCollectionScope, TypeScript1.popTypeCollectionScope = popTypeCollectionScope, TypeScript1.preFindEnclosingScope = preFindEnclosingScope, TypeScript1.findEnclosingScopeAt = findEnclosingScopeAt; }(TypeScript || (TypeScript = {})); diff --git a/crates/swc/tests/tsc-references/switchStatements_es5.2.minified.js b/crates/swc/tests/tsc-references/switchStatements_es5.2.minified.js index 07bd253ae92..f7cb1469109 100644 --- a/crates/swc/tests/tsc-references/switchStatements_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/switchStatements_es5.2.minified.js @@ -2,9 +2,12 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import _inherits from "@swc/helpers/src/_inherits.mjs"; import _type_of from "@swc/helpers/src/_type_of.mjs"; import _create_super from "@swc/helpers/src/_create_super.mjs"; -(M || (M = {})).fn = function(x) { - return ""; -}, void 0 === x || _type_of(x), void 0 === M || _type_of(M), M.fn(1); +!function(M) { + var fn = function(x) { + return ""; + }; + M.fn = fn; +}(M || (M = {})), void 0 === x || _type_of(x), void 0 === M || _type_of(M), M.fn(1); var M, x, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/throwStatements_es5.2.minified.js b/crates/swc/tests/tsc-references/throwStatements_es5.2.minified.js index 07e1650d826..b41f2a36d79 100644 --- a/crates/swc/tests/tsc-references/throwStatements_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/throwStatements_es5.2.minified.js @@ -8,11 +8,11 @@ var M, C = function() { _class_call_check(this, D); }; throw !function(M) { - var A = function() { + var F2 = function(x) { + return x.toString(); + }, A = function() { "use strict"; _class_call_check(this, A); }; - M.A = A, M.F2 = function(x) { - return x.toString(); - }; + M.A = A, M.F2 = F2; }(M || (M = {})), 9.9; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment29_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment29_es5.2.minified.js index d0c7aeb77c8..ef308449b03 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment29_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment29_es5.2.minified.js @@ -29,10 +29,10 @@ ExpandoArrow.prop = 2, ExpandoArrow.m = function(n) { }; return nested.total = n + 1000000, nested; }).also = -1, ExpandoMerge.p1 = 111, (ExpandoMerge || (ExpandoMerge = {})).p2 = 222, (ExpandoMerge || (ExpandoMerge = {})).p3 = 333, ExpandoMerge.p1, ExpandoMerge.p2, ExpandoMerge.p3, ExpandoMerge(1), function(Ns) { - var ExpandoNamespace = function() {}; - ExpandoNamespace.p6 = 42, Ns.foo = function() { + var ExpandoNamespace = function() {}, foo = function() { return ExpandoNamespace; }; + ExpandoNamespace.p6 = 42, Ns.foo = foo; }(Ns || (Ns = {})); var ExpandoExpr2 = function(n) { return n.toString(); diff --git a/crates/swc/tests/tsc-references/unionAndIntersectionInference1_es2015.2.minified.js b/crates/swc/tests/tsc-references/unionAndIntersectionInference1_es2015.2.minified.js index d80f3851408..e79463914ba 100644 --- a/crates/swc/tests/tsc-references/unionAndIntersectionInference1_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/unionAndIntersectionInference1_es2015.2.minified.js @@ -1,6 +1,8 @@ var y = void 0; !function(something, haveValue, haveY) { return something === y ? haveY(y) : haveValue(something); -}(Math.random() > 0.5 ? 'hey!' : void 0, (text)=>'string', (y)=>'other one'), null.toUpperCase(), pigify(mbp).oinks, pigify(mbp).walks, f1('a'), f2('a', 'b'), Object.assign(()=>{}, { - func () {} +}(Math.random() > 0.5 ? 'hey!' : void 0, (text)=>'string', (y)=>'other one'), null.toUpperCase(), pigify(mbp).oinks, pigify(mbp).walks, f1('a'), f2('a', 'b'); +const func = ()=>{}; +Object.assign(()=>{}, { + func }); diff --git a/crates/swc/tests/vercel/full/d3-time-format/1/output/index.js b/crates/swc/tests/vercel/full/d3-time-format/1/output/index.js index ac4b43e18b4..feb819cd067 100644 --- a/crates/swc/tests/vercel/full/d3-time-format/1/output/index.js +++ b/crates/swc/tests/vercel/full/d3-time-format/1/output/index.js @@ -48,23 +48,60 @@ export default function o(c) { for(var e, f, g = 0, h = b.length, i = c.length; g < h;){ if (d >= i) return -1; if (37 === (e = b.charCodeAt(g++))) { - if (!(f = aQ[(e = b.charAt(g++)) in p ? b.charAt(g++) : e]) || (d = f(a, c, d)) < 0) return -1; + if (!(f = a8[(e = b.charAt(g++)) in p ? b.charAt(g++) : e]) || (d = f(a, c, d)) < 0) return -1; } else if (e != c.charCodeAt(d++)) return -1; } return d; - }, j = c.dateTime, k = c.date, o = c.time, q = c.periods, r = c.days, s = c.shortDays, t = c.months, u = c.shortMonths, aa = v(q), au = w(q), aG = v(r), aH = w(r), aI = v(s), aJ = w(s), aK = v(t), aL = w(t), aM = v(u), aN = w(u), aO = { - a: function(a) { - return s[a.getDay()]; - }, - A: function(a) { - return r[a.getDay()]; - }, - b: function(a) { - return u[a.getMonth()]; - }, - B: function(a) { - return t[a.getMonth()]; - }, + }, j = function(a, b, c) { + var d = aY.exec(b.slice(c)); + return d ? (a.p = aZ.get(d[0].toLowerCase()), c + d[0].length) : -1; + }, k = function(a, b, c) { + var d = a0.exec(b.slice(c)); + return d ? (a.w = a1.get(d[0].toLowerCase()), c + d[0].length) : -1; + }, o = function(a, b, c) { + var d = a$.exec(b.slice(c)); + return d ? (a.w = a_.get(d[0].toLowerCase()), c + d[0].length) : -1; + }, q = function(a, b, c) { + var d = a4.exec(b.slice(c)); + return d ? (a.m = a5.get(d[0].toLowerCase()), c + d[0].length) : -1; + }, r = function(a, b, c) { + var d = a2.exec(b.slice(c)); + return d ? (a.m = a3.get(d[0].toLowerCase()), c + d[0].length) : -1; + }, s = function(a, b, c) { + return h(a, aQ, b, c); + }, t = function(a, b, c) { + return h(a, aR, b, c); + }, u = function(a, b, c) { + return h(a, aS, b, c); + }, aa = function(a) { + return aV[a.getDay()]; + }, au = function(a) { + return aU[a.getDay()]; + }, aG = function(a) { + return aX[a.getMonth()]; + }, aH = function(a) { + return aW[a.getMonth()]; + }, aI = function(a) { + return aT[+(a.getHours() >= 12)]; + }, aJ = function(a) { + return 1 + ~~(a.getMonth() / 3); + }, aK = function(a) { + return aV[a.getUTCDay()]; + }, aL = function(a) { + return aU[a.getUTCDay()]; + }, aM = function(a) { + return aX[a.getUTCMonth()]; + }, aN = function(a) { + return aW[a.getUTCMonth()]; + }, aO = function(a) { + return aT[+(a.getUTCHours() >= 12)]; + }, aP = function(a) { + return 1 + ~~(a.getUTCMonth() / 3); + }, aQ = c.dateTime, aR = c.date, aS = c.time, aT = c.periods, aU = c.days, aV = c.shortDays, aW = c.months, aX = c.shortMonths, aY = v(aT), aZ = w(aT), a$ = v(aU), a_ = w(aU), a0 = v(aV), a1 = w(aV), a2 = v(aW), a3 = w(aW), a4 = v(aX), a5 = w(aX), a6 = { + a: aa, + A: au, + b: aG, + B: aH, c: null, d: R, e: R, @@ -77,12 +114,8 @@ export default function o(c) { L: V, m: X, M: Y, - p: function(a) { - return q[+(a.getHours() >= 12)]; - }, - q: function(a) { - return 1 + ~~(a.getMonth() / 3); - }, + p: aI, + q: aJ, Q: aE, s: aF, S: Z, @@ -97,19 +130,11 @@ export default function o(c) { Y: ag, Z: ai, "%": aD - }, aP = { - a: function(a) { - return s[a.getUTCDay()]; - }, - A: function(a) { - return r[a.getUTCDay()]; - }, - b: function(a) { - return u[a.getUTCMonth()]; - }, - B: function(a) { - return t[a.getUTCMonth()]; - }, + }, a7 = { + a: aK, + A: aL, + b: aM, + B: aN, c: null, d: aj, e: aj, @@ -122,12 +147,8 @@ export default function o(c) { L: an, m: ap, M: aq, - p: function(a) { - return q[+(a.getUTCHours() >= 12)]; - }, - q: function(a) { - return 1 + ~~(a.getUTCMonth() / 3); - }, + p: aO, + q: aP, Q: aE, s: aF, S: ar, @@ -142,26 +163,12 @@ export default function o(c) { Y: aA, Z: aC, "%": aD - }, aQ = { - a: function(a, b, c) { - var d = aI.exec(b.slice(c)); - return d ? (a.w = aJ.get(d[0].toLowerCase()), c + d[0].length) : -1; - }, - A: function(a, b, c) { - var d = aG.exec(b.slice(c)); - return d ? (a.w = aH.get(d[0].toLowerCase()), c + d[0].length) : -1; - }, - b: function(a, b, c) { - var d = aM.exec(b.slice(c)); - return d ? (a.m = aN.get(d[0].toLowerCase()), c + d[0].length) : -1; - }, - B: function(a, b, c) { - var d = aK.exec(b.slice(c)); - return d ? (a.m = aL.get(d[0].toLowerCase()), c + d[0].length) : -1; - }, - c: function(a, b, c) { - return h(a, j, b, c); - }, + }, a8 = { + a: k, + A: o, + b: q, + B: r, + c: s, d: H, e: H, f: N, @@ -173,10 +180,7 @@ export default function o(c) { L: M, m: G, M: K, - p: function(a, b, c) { - var d = aa.exec(b.slice(c)); - return d ? (a.p = au.get(d[0].toLowerCase()), c + d[0].length) : -1; - }, + p: j, q: F, Q: P, s: Q, @@ -186,20 +190,16 @@ export default function o(c) { V: A, w: x, W: B, - x: function(a, b, c) { - return h(a, k, b, c); - }, - X: function(a, b, c) { - return h(a, o, b, c); - }, + x: t, + X: u, y: D, Y: C, Z: E, "%": O }; - return aO.x = e(k, aO), aO.X = e(o, aO), aO.c = e(j, aO), aP.x = e(k, aP), aP.X = e(o, aP), aP.c = e(j, aP), { + return a6.x = e(aR, a6), a6.X = e(aS, a6), a6.c = e(aQ, a6), a7.x = e(aR, a7), a7.X = e(aS, a7), a7.c = e(aQ, a7), { format: function(a) { - var b = e(a += "", aO); + var b = e(a += "", a6); return b.toString = function() { return a; }, b; @@ -211,7 +211,7 @@ export default function o(c) { }, b; }, utcFormat: function(a) { - var b = e(a += "", aP); + var b = e(a += "", a7); return b.toString = function() { return a; }, b; diff --git a/crates/swc/tests/vercel/full/firebase/dist/1/output/index.js b/crates/swc/tests/vercel/full/firebase/dist/1/output/index.js index 50b4d9a6a60..f81fef5c79b 100644 --- a/crates/swc/tests/vercel/full/firebase/dist/1/output/index.js +++ b/crates/swc/tests/vercel/full/firebase/dist/1/output/index.js @@ -69,67 +69,67 @@ var a, b = require("@firebase/util"), c = require("tslib"), d = require("@fireba }, a; }(), i = ((a = {})["no-app"] = "No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()", a["invalid-app-argument"] = "firebase.{$appName}() takes either no argument or a Firebase App instance.", a), j = new b.ErrorFactory("app-compat", "Firebase", i); function k() { - var a, d, e, f, i = (a = h, d = function(a) { - if (a = a || g._DEFAULT_ENTRY_NAME, !b.contains(e, a)) throw j.create("no-app", { + var a, d, e, f, i, l, m, n, o = function(a) { + b.deepExtend(p, a); + }, p = (a = h, d = function(a) { + delete m[a]; + }, e = function(a) { + if (a = a || g._DEFAULT_ENTRY_NAME, !b.contains(m, a)) throw j.create("no-app", { appName: a }); - return e[a]; - }, e = {}, (f = { + return m[a]; + }, f = function() { + return Object.keys(m).map(function(a) { + return m[a]; + }); + }, i = function(c) { + var d = c.name, f = d.replace("-compat", ""); + if (g._registerComponent(c) && "PUBLIC" === c.type) { + var h = function(a) { + if (void 0 === a && (a = e()), "function" != typeof a[f]) throw j.create("invalid-app-argument", { + appName: d + }); + return a[f](); + }; + void 0 !== c.serviceProps && b.deepExtend(h, c.serviceProps), n[f] = h, a.prototype[f] = function() { + for(var a = [], b = 0; b < arguments.length; b++)a[b] = arguments[b]; + return this._getService.bind(this, d).apply(this, c.multipleInstances ? a : []); + }; + } + return "PUBLIC" === c.type ? n[f] : null; + }, l = function(a, b) { + return "serverAuth" === b ? null : b; + }, m = {}, (n = { __esModule: !0, initializeApp: function(c, d) { void 0 === d && (d = {}); - var h = g.initializeApp(c, d); - if (b.contains(e, h.name)) return e[h.name]; - var i = new a(h, f); - return e[h.name] = i, i; + var e = g.initializeApp(c, d); + if (b.contains(m, e.name)) return m[e.name]; + var f = new a(e, n); + return m[e.name] = f, f; }, - app: d, + app: e, registerVersion: g.registerVersion, setLogLevel: g.setLogLevel, onLog: g.onLog, apps: null, SDK_VERSION: g.SDK_VERSION, INTERNAL: { - registerComponent: function(c) { - var e = c.name, h = e.replace("-compat", ""); - if (g._registerComponent(c) && "PUBLIC" === c.type) { - var i = function(a) { - if (void 0 === a && (a = d()), "function" != typeof a[h]) throw j.create("invalid-app-argument", { - appName: e - }); - return a[h](); - }; - void 0 !== c.serviceProps && b.deepExtend(i, c.serviceProps), f[h] = i, a.prototype[h] = function() { - for(var a = [], b = 0; b < arguments.length; b++)a[b] = arguments[b]; - return this._getService.bind(this, e).apply(this, c.multipleInstances ? a : []); - }; - } - return "PUBLIC" === c.type ? f[h] : null; - }, - removeApp: function(a) { - delete e[a]; - }, - useAsService: function(a, b) { - return "serverAuth" === b ? null : b; - }, + registerComponent: i, + removeApp: d, + useAsService: l, modularAPIs: g } - }).default = f, Object.defineProperty(f, "apps", { - get: function() { - return Object.keys(e).map(function(a) { - return e[a]; - }); - } - }), d.App = a, f); - return i.INTERNAL = c.__assign(c.__assign({}, i.INTERNAL), { + }).default = n, Object.defineProperty(n, "apps", { + get: f + }), e.App = a, n); + return p.INTERNAL = c.__assign(c.__assign({}, p.INTERNAL), { createFirebaseNamespace: k, - extendNamespace: function(a) { - b.deepExtend(i, a); - }, + extendNamespace: o, createSubscribe: b.createSubscribe, ErrorFactory: b.ErrorFactory, deepExtend: b.deepExtend - }), i; + }), p; } var l = k(), m = new f.Logger("@firebase/app-compat"); if (b.isBrowser() && void 0 !== self.firebase) { diff --git a/crates/swc/tests/vercel/full/react-instantsearch/2/output/index.js b/crates/swc/tests/vercel/full/react-instantsearch/2/output/index.js index f37cd052f5f..1819c32ad2b 100644 --- a/crates/swc/tests/vercel/full/react-instantsearch/2/output/index.js +++ b/crates/swc/tests/vercel/full/react-instantsearch/2/output/index.js @@ -28,27 +28,33 @@ var m = function(a) { return c && !d ? -1 : !c && d ? 1 : 0; }; export default function r(i) { - var j = i.indexName, k = i.initialState, r = i.searchClient, t = i.resultsState, u = i.stalledSearchDelay, v = function(a) { - return K.getWidgets().filter(function(a) { + var j = i.indexName, k = i.initialState, r = i.searchClient, t = i.resultsState, u = i.stalledSearchDelay, v = function() { + R = !0; + }, w = function(a) { + l(a), M.setClient(a), A(); + }, x = function() { + M.clearCache(), A(); + }, y = function(a) { + return U.getWidgets().filter(function(a) { return Boolean(a.getMetadata); }).map(function(b) { return b.getMetadata(a); }); - }, w = function() { - var d = K.getWidgets().filter(function(a) { + }, z = function() { + var d = U.getWidgets().filter(function(a) { return Boolean(a.getSearchParameters); }).filter(function(a) { return !m(a) && !o(a); }).reduce(function(a, b) { return b.getSearchParameters(a); - }, J), e = K.getWidgets().filter(function(a) { + }, T), e = U.getWidgets().filter(function(a) { return Boolean(a.getSearchParameters); }).filter(function(a) { var b = m(a) && n(a, j), c = o(a) && p(a, j); return b || c; }).sort(q).reduce(function(a, b) { return b.getSearchParameters(a); - }, d), f = K.getWidgets().filter(function(a) { + }, d), f = U.getWidgets().filter(function(a) { return Boolean(a.getSearchParameters); }).filter(function(a) { var b = m(a) && !n(a, j), c = o(a) && !p(a, j); @@ -68,49 +74,61 @@ export default function r(i) { mainParameters: e, derivedParameters: g }; - }, x = function() { - if (!H) { - var a = w(C.state), b = a.mainParameters, c = a.derivedParameters; - C.derivedHelpers.slice().forEach(function(a) { + }, A = function() { + if (!R) { + var a = z(M.state), b = a.mainParameters, c = a.derivedParameters; + M.derivedHelpers.slice().forEach(function(a) { a.detach(); }), c.forEach(function(a) { - var b = a.indexId, c = a.parameters, d = C.derive(function() { + var b = a.indexId, c = a.parameters, d = M.derive(function() { return c; }); - d.on("result", y({ + d.on("result", B({ indexId: b - })).on("error", z); - }), C.setState(b), C.search(); + })).on("error", C); + }), M.setState(b), M.search(); } - }, y = function(e) { + }, B = function(e) { var f = e.indexId; return function(e) { - var g = L.getState(), h = !C.derivedHelpers.length, i = g.results ? g.results : {}; + var g = V.getState(), h = !M.derivedHelpers.length, i = g.results ? g.results : {}; i = !h && i.getFacetByName ? {} : i, i = h ? e.results : c(b({}, i), a({}, f, e.results)); - var j = L.getState(), k = j.isSearchStalled; - C.hasPendingRequests() || (clearTimeout(I), I = null, k = !1), j.resultsFacetValues; + var j = V.getState(), k = j.isSearchStalled; + M.hasPendingRequests() || (clearTimeout(S), S = null, k = !1), j.resultsFacetValues; var l = d(j, [ "resultsFacetValues" ]); - L.setState(c(b({}, l), { + V.setState(c(b({}, l), { results: i, isSearchStalled: k, searching: !1, error: null })); }; - }, z = function(a) { - var e = a.error, f = L.getState(), g = f.isSearchStalled; - C.hasPendingRequests() || (clearTimeout(I), g = !1), f.resultsFacetValues; + }, C = function(a) { + var e = a.error, f = V.getState(), g = f.isSearchStalled; + M.hasPendingRequests() || (clearTimeout(S), g = !1), f.resultsFacetValues; var h = d(f, [ "resultsFacetValues" ]); - L.setState(c(b({}, h), { + V.setState(c(b({}, h), { isSearchStalled: g, error: e, searching: !1 })); - }, A = function(d, e) { + }, D = function() { + if (!S) { + var a; + S = setTimeout(function() { + var a = V.getState(), e = (a.resultsFacetValues, d(a, [ + "resultsFacetValues" + ])); + V.setState(c(b({}, e), { + isSearchStalled: !0 + })); + }, u); + } + }, E = function(d, e) { if (d.transporter) { d.transporter.responsesCache.set({ method: "search", @@ -146,7 +164,7 @@ export default function r(i) { return a.concat(b.rawResults); }, []) }))); - }, B = function(d, e) { + }, F = function(d, e) { if (d.transporter) { d.transporter.responsesCache.set({ method: "search", @@ -174,29 +192,58 @@ export default function r(i) { d.cache = c(b({}, d.cache), a({}, f, JSON.stringify({ results: e.rawResults }))); - }, C = f(r, j, b({}, h)); - l(r), C.on("search", function() { - if (!I) { - var a; - I = setTimeout(function() { - var a = L.getState(), e = (a.resultsFacetValues, d(a, [ - "resultsFacetValues" - ])); - L.setState(c(b({}, e), { - isSearchStalled: !0 - })); - }, u); - } - }).on("result", y({ - indexId: j - })).on("error", z); - var D, E, F, G, H = !1, I = null, J = C.state, K = g(function() { - var a = v(L.getState().widgets); - L.setState(c(b({}, L.getState()), { + }, G = function() { + var a = y(V.getState().widgets); + V.setState(c(b({}, V.getState()), { metadata: a, searching: !0 - })), x(); - }); + })), A(); + }, H = function(a) { + var b = V.getState().widgets; + return U.getWidgets().filter(function(a) { + return Boolean(a.transitionState); + }).reduce(function(a, c) { + return c.transitionState(b, a); + }, a); + }, I = function(a) { + var d = y(a); + V.setState(c(b({}, V.getState()), { + widgets: a, + metadata: d, + searching: !0 + })), A(); + }, J = function(d) { + var e = d.facetName, f = d.query, g = d.maxFacetHits; + V.setState(c(b({}, V.getState()), { + searchingForFacetValues: !0 + })), M.searchForFacetValues(e, f, Math.max(1, Math.min(void 0 === g ? 10 : g, 100))).then(function(d) { + var g; + V.setState(c(b({}, V.getState()), { + error: null, + searchingForFacetValues: !1, + resultsFacetValues: c(b({}, V.getState().resultsFacetValues), (a(g = {}, e, d.facetHits), a(g, "query", f), g)) + })); + }, function(a) { + V.setState(c(b({}, V.getState()), { + searchingForFacetValues: !1, + error: a + })); + }).catch(function(a) { + setTimeout(function() { + throw a; + }); + }); + }, K = function(a) { + T = T.setIndex(a); + }, L = function() { + return V.getState().metadata.reduce(function(a, b) { + return void 0 !== b.id ? a.concat(b.id) : a; + }, []); + }, M = f(r, j, b({}, h)); + l(r), M.on("search", D).on("result", B({ + indexId: j + })).on("error", C); + var N, O, P, Q, R = !1, S = null, T = M.state, U = g(G); !function(a, d) { if (d && (a.transporter && !a._cacheHydrated || a._useCache && "function" == typeof a.addAlgoliaAgent)) { if (a.transporter && !a._cacheHydrated) { @@ -232,96 +279,49 @@ export default function r(i) { }; } if (Array.isArray(d.results)) { - A(a, d.results); + E(a, d.results); return; } - B(a, d); + F(a, d); } }(r, t); - var L = (F = E = { + var V = (P = O = { widgets: void 0 === k ? {} : k, metadata: s(t), - results: (D = t) ? Array.isArray(D.results) ? D.results.reduce(function(d, e) { + results: (N = t) ? Array.isArray(N.results) ? N.results.reduce(function(d, e) { return c(b({}, d), a({}, e._internalIndexId, new f.SearchResults(new f.SearchParameters(e.state), e.rawResults))); - }, {}) : new f.SearchResults(new f.SearchParameters(D.state), D.rawResults) : null, + }, {}) : new f.SearchResults(new f.SearchParameters(N.state), N.rawResults) : null, error: null, searching: !1, isSearchStalled: !0, searchingForFacetValues: !1 - }, G = [], { + }, Q = [], { getState: function() { - return F; + return P; }, setState: function(a) { - F = a, G.forEach(function(a) { + P = a, Q.forEach(function(a) { return a(); }); }, subscribe: function(a) { - return G.push(a), function() { - G.splice(G.indexOf(a), 1); + return Q.push(a), function() { + Q.splice(Q.indexOf(a), 1); }; } }); return { - store: L, - widgetsManager: K, - getWidgetsIds: function() { - return L.getState().metadata.reduce(function(a, b) { - return void 0 !== b.id ? a.concat(b.id) : a; - }, []); - }, - getSearchParameters: w, - onSearchForFacetValues: function(d) { - var e = d.facetName, f = d.query, g = d.maxFacetHits; - L.setState(c(b({}, L.getState()), { - searchingForFacetValues: !0 - })), C.searchForFacetValues(e, f, Math.max(1, Math.min(void 0 === g ? 10 : g, 100))).then(function(d) { - var g; - L.setState(c(b({}, L.getState()), { - error: null, - searchingForFacetValues: !1, - resultsFacetValues: c(b({}, L.getState().resultsFacetValues), (a(g = {}, e, d.facetHits), a(g, "query", f), g)) - })); - }, function(a) { - L.setState(c(b({}, L.getState()), { - searchingForFacetValues: !1, - error: a - })); - }).catch(function(a) { - setTimeout(function() { - throw a; - }); - }); - }, - onExternalStateUpdate: function(a) { - var d = v(a); - L.setState(c(b({}, L.getState()), { - widgets: a, - metadata: d, - searching: !0 - })), x(); - }, - transitionState: function(a) { - var b = L.getState().widgets; - return K.getWidgets().filter(function(a) { - return Boolean(a.transitionState); - }).reduce(function(a, c) { - return c.transitionState(b, a); - }, a); - }, - updateClient: function(a) { - l(a), C.setClient(a), x(); - }, - updateIndex: function(a) { - J = J.setIndex(a); - }, - clearCache: function() { - C.clearCache(), x(); - }, - skipSearch: function() { - H = !0; - } + store: V, + widgetsManager: U, + getWidgetsIds: L, + getSearchParameters: z, + onSearchForFacetValues: J, + onExternalStateUpdate: I, + transitionState: H, + updateClient: w, + updateIndex: K, + clearCache: x, + skipSearch: v }; }; function s(a) { diff --git a/crates/swc_ecma_minifier/src/compress/optimize/inline.rs b/crates/swc_ecma_minifier/src/compress/optimize/inline.rs index bc4172c7739..c0ef8bff08c 100644 --- a/crates/swc_ecma_minifier/src/compress/optimize/inline.rs +++ b/crates/swc_ecma_minifier/src/compress/optimize/inline.rs @@ -258,6 +258,8 @@ where if v_usage.reassigned() { return; } + } else { + return; } } } @@ -272,6 +274,8 @@ where if v_usage.reassigned() { return; } + } else { + return; } } } @@ -297,6 +301,12 @@ where } } + if !usage.used_as_callee { + if let Expr::Fn(..) | Expr::Arrow(..) = &**init { + return; + } + } + if usage.used_as_arg && !usage.is_fn_local { if let Expr::Fn(..) | Expr::Arrow(..) = &**init { return; diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/2044/pass-1/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/2044/pass-1/output.js index f83e26da487..2b765772a65 100644 --- a/crates/swc_ecma_minifier/tests/fixture/issues/2044/pass-1/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/issues/2044/pass-1/output.js @@ -9,6 +9,7 @@ createCommonjsModule(function(module, exports) { }), createCommonjsModule(function(module) { module.exports = { findConfig: function(from) { + var resolved; return function(dir) { throw Error(""); }; diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/2257/full/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/2257/full/output.js index fbe1c937f23..5f41f6dd09a 100644 --- a/crates/swc_ecma_minifier/tests/fixture/issues/2257/full/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/issues/2257/full/output.js @@ -67,8 +67,7 @@ alignItems: "center", margin: "100px 0", color: "#ed3131" - }; - exports.default = function(param) { + }, ErrorBoundaryFallback = function(param) { var error, componentStack, componentStack1 = param.componentStack, error1 = param.error; return _jsxRuntime.jsxs("div", { style: style, @@ -100,6 +99,7 @@ ] }); }; + exports.default = ErrorBoundaryFallback; }, 11179: function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; @@ -164,22 +164,22 @@ Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = void 0; - var swcHelpers = __webpack_require__(547), _runtime = swcHelpers.interopRequireDefault(__webpack_require__(66902)), _runtime1 = swcHelpers.interopRequireDefault(__webpack_require__(2526)), _runtime2 = swcHelpers.interopRequireDefault(__webpack_require__(8900)); - exports.default = function(runtime) { + var swcHelpers = __webpack_require__(547), _runtime = swcHelpers.interopRequireDefault(__webpack_require__(66902)), _runtime1 = swcHelpers.interopRequireDefault(__webpack_require__(2526)), _runtime2 = swcHelpers.interopRequireDefault(__webpack_require__(8900)), _default = function(runtime) { runtime.loadModule(_runtime.default), runtime.loadModule(_runtime1.default), runtime.loadModule(_runtime2.default); }; + exports.default = _default; }, 98565: function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = void 0; - var _runtime = __webpack_require__(547).interopRequireDefault(__webpack_require__(53380)); - exports.default = function(appConfig) { + var _runtime = __webpack_require__(547).interopRequireDefault(__webpack_require__(53380)), _default = function(appConfig) { _runtime.default({ appConfig: appConfig }); }; + exports.default = _default; }, 8000: function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; @@ -219,17 +219,30 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), exports.default = void 0, exports.default = function(param) { + }), exports.default = void 0; + var module = function(param) { var addProvider = param.addProvider, appConfig = param.appConfig; appConfig.app && appConfig.app.addProvider && addProvider(appConfig.app.addProvider); }; + exports.default = module; }, 45440: function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.Provider = exports.withAuth = exports.useAuth = void 0; - var swcHelpers = __webpack_require__(547), _jsxRuntime = __webpack_require__(37712), _react = __webpack_require__(59301), Context = _react.createContext(null), useAuth = function() { + var swcHelpers = __webpack_require__(547), _jsxRuntime = __webpack_require__(37712), _react = __webpack_require__(59301), Context = _react.createContext(null), Provider = function(param) { + var _value = param.value, children = param.children, ref = _react.useState(void 0 === _value ? {} : _value), state = ref[0], setState = ref[1], updateState = function(param) { + setState(swcHelpers.objectSpread({}, state, void 0 === param ? {} : param)); + }; + return _jsxRuntime.jsx(Context.Provider, { + value: [ + state, + updateState + ], + children: children + }); + }, useAuth = function() { return _react.useContext(Context); }; exports.useAuth = useAuth, exports.withAuth = function(Component) { @@ -240,36 +253,23 @@ setAuth: setAuth })); }; - }, exports.Provider = function(param) { - var _value = param.value, children = param.children, ref = _react.useState(void 0 === _value ? {} : _value), state = ref[0], setState = ref[1]; - return _jsxRuntime.jsx(Context.Provider, { - value: [ - state, - function(param) { - setState(swcHelpers.objectSpread({}, state, void 0 === param ? {} : param)); - } - ], - children: children - }); - }; + }, exports.Provider = Provider; }, 8900: function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = void 0; - var swcHelpers = __webpack_require__(547), _jsxRuntime = __webpack_require__(37712), _auth = __webpack_require__(45440); - exports.default = function(param) { - var authConfig, context = param.context, appConfig = param.appConfig, addProvider = param.addProvider, wrapperPageComponent = param.wrapperPageComponent, initialData = context && context.initialData ? context.initialData : {}, initialAuth = initialData.auth || {}, authConfig1 = appConfig.auth || {}; - addProvider(function(param) { + var swcHelpers = __webpack_require__(547), _jsxRuntime = __webpack_require__(37712), _auth = __webpack_require__(45440), _default = function(param) { + var authConfig, context = param.context, appConfig = param.appConfig, addProvider = param.addProvider, wrapperPageComponent = param.wrapperPageComponent, initialData = context && context.initialData ? context.initialData : {}, initialAuth = initialData.auth || {}, authConfig1 = appConfig.auth || {}, AuthStoreProvider = function(param) { var children = param.children; return _jsxRuntime.jsx(_auth.Provider, { value: initialAuth, children: children }); - }), wrapperPageComponent((authConfig = authConfig1, function(PageComponent) { - var _pageConfig = PageComponent.pageConfig, pageConfig = void 0 === _pageConfig ? {} : _pageConfig; - return _auth.withAuth(function(props) { + }; + addProvider(AuthStoreProvider), wrapperPageComponent((authConfig = authConfig1, function(PageComponent) { + var _pageConfig = PageComponent.pageConfig, pageConfig = void 0 === _pageConfig ? {} : _pageConfig, AuthWrappedComponent = function(props) { var auth = props.auth, rest = (props.setAuth, swcHelpers.objectWithoutProperties(props, [ "auth", "setAuth", @@ -278,9 +278,11 @@ return Array.isArray(pageConfigAuth) && pageConfigAuth.length && !Object.keys(auth).filter(function(item) { return !!pageConfigAuth.includes(item) && auth[item]; }).length ? authConfig.NoAuthFallback ? "function" == typeof authConfig.NoAuthFallback ? _jsxRuntime.jsx(authConfig.NoAuthFallback, {}) : authConfig.NoAuthFallback : null : _jsxRuntime.jsx(PageComponent, swcHelpers.objectSpread({}, rest)); - }); + }; + return _auth.withAuth(AuthWrappedComponent); })); }; + exports.default = _default; }, 1481: function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; @@ -289,21 +291,33 @@ }), exports.default = void 0; var _runtime = __webpack_require__(56128), DEFAULE_CONFIG = {}, axiosInstance = { default: _runtime.axios.create(DEFAULE_CONFIG) - }; - exports.default = function(instanceName) { + }, _default = function(instanceName) { if (instanceName) { if (axiosInstance[instanceName]) return axiosInstance; axiosInstance[instanceName] = _runtime.axios.create(DEFAULE_CONFIG); } return axiosInstance; }; + exports.default = _default; }, 53380: function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = void 0; - var swcHelpers = __webpack_require__(547), _createAxiosInstance = swcHelpers.interopRequireDefault(__webpack_require__(1481)); + var swcHelpers = __webpack_require__(547), _createAxiosInstance = swcHelpers.interopRequireDefault(__webpack_require__(1481)), module = function(param) { + var appConfig = param.appConfig; + if (appConfig.request) { + var tmp = appConfig.request, requestConfig = void 0 === tmp ? {} : tmp; + "[object Array]" === Object.prototype.toString.call(requestConfig) ? requestConfig.forEach(function(requestItem) { + var instanceName = requestItem.instanceName ? requestItem.instanceName : "default"; + if (instanceName) { + var axiosInstance = _createAxiosInstance.default(instanceName)[instanceName]; + setAxiosInstance(requestItem, axiosInstance); + } + }) : setAxiosInstance(requestConfig, _createAxiosInstance.default().default); + } + }; function setAxiosInstance(requestConfig, axiosInstance) { var _interceptors = requestConfig.interceptors, interceptors = void 0 === _interceptors ? {} : _interceptors, requestOptions = swcHelpers.objectWithoutProperties(requestConfig, [ "interceptors" @@ -320,19 +334,7 @@ return Promise.reject(error); }); } - exports.default = function(param) { - var appConfig = param.appConfig; - if (appConfig.request) { - var tmp = appConfig.request, requestConfig = void 0 === tmp ? {} : tmp; - "[object Array]" === Object.prototype.toString.call(requestConfig) ? requestConfig.forEach(function(requestItem) { - var instanceName = requestItem.instanceName ? requestItem.instanceName : "default"; - if (instanceName) { - var axiosInstance = _createAxiosInstance.default(instanceName)[instanceName]; - setAxiosInstance(requestItem, axiosInstance); - } - }) : setAxiosInstance(requestConfig, _createAxiosInstance.default().default); - } - }; + exports.default = module; }, 2526: function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; @@ -340,23 +342,21 @@ Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = void 0; - var swcHelpers = __webpack_require__(547), _jsxRuntime = __webpack_require__(37712), _errorBoundary = swcHelpers.interopRequireDefault(__webpack_require__(11179)), _routes = swcHelpers.interopRequireDefault(__webpack_require__(72791)), _router = __webpack_require__(37447), _formatRoutes = swcHelpers.interopRequireWildcard(__webpack_require__(14710)); - exports.default = function(param) { - var setRenderApp = param.setRenderApp, appConfig = param.appConfig, modifyRoutes = param.modifyRoutes, wrapperPageComponent = param.wrapperPageComponent, modifyRoutesComponent = param.modifyRoutesComponent, buildConfig = param.buildConfig, context = param.context, applyRuntimeAPI = param.applyRuntimeAPI, tmp = appConfig.router, appConfigRouter = void 0 === tmp ? {} : tmp, _app = appConfig.app, app = void 0 === _app ? {} : _app, ErrorBoundaryFallback = app.ErrorBoundaryFallback, onErrorBoundaryHandler = app.onErrorBoundaryHandler, _parseSearchParams = app.parseSearchParams, parseSearchParams = void 0 === _parseSearchParams || _parseSearchParams; - wrapperPageComponent(function(PageComponent) { + var swcHelpers = __webpack_require__(547), _jsxRuntime = __webpack_require__(37712), _errorBoundary = swcHelpers.interopRequireDefault(__webpack_require__(11179)), _routes = swcHelpers.interopRequireDefault(__webpack_require__(72791)), _router = __webpack_require__(37447), _formatRoutes = swcHelpers.interopRequireWildcard(__webpack_require__(14710)), module = function(param) { + var setRenderApp = param.setRenderApp, appConfig = param.appConfig, modifyRoutes = param.modifyRoutes, wrapperPageComponent = param.wrapperPageComponent, modifyRoutesComponent = param.modifyRoutesComponent, buildConfig = param.buildConfig, context = param.context, applyRuntimeAPI = param.applyRuntimeAPI, tmp = appConfig.router, appConfigRouter = void 0 === tmp ? {} : tmp, _app = appConfig.app, app = void 0 === _app ? {} : _app, ErrorBoundaryFallback = app.ErrorBoundaryFallback, onErrorBoundaryHandler = app.onErrorBoundaryHandler, _parseSearchParams = app.parseSearchParams, parseSearchParams = void 0 === _parseSearchParams || _parseSearchParams, WrappedPageComponent = function(PageComponent) { return function(props) { var searchParams = parseSearchParams && applyRuntimeAPI("getSearchParams"); return _jsxRuntime.jsx(PageComponent, swcHelpers.objectSpread({}, Object.assign({}, props, { searchParams: searchParams }))); }; - }), modifyRoutes(function() { + }; + wrapperPageComponent(WrappedPageComponent), modifyRoutes(function() { return _formatRoutes.default(appConfigRouter.routes || _routes.default, ""); }), modifyRoutesComponent(function() { return _router.Routes; }); - var wrapperPageFn = process.env.__IS_SERVER__ ? _formatRoutes.wrapperPageWithSSR(context) : _formatRoutes.wrapperPageWithCSR(); - wrapperPageComponent(wrapperPageFn), wrapperPageComponent(function(PageComponent) { + var wrapperPageErrorBoundary = function(PageComponent) { var _pageConfig = PageComponent.pageConfig, pageConfig = void 0 === _pageConfig ? {} : _pageConfig; return function(props) { return pageConfig.errorBoundary ? _jsxRuntime.jsx(_errorBoundary.default, { @@ -365,9 +365,9 @@ children: _jsxRuntime.jsx(PageComponent, swcHelpers.objectSpread({}, props)) }) : _jsxRuntime.jsx(PageComponent, swcHelpers.objectSpread({}, props)); }; - }), appConfigRouter.modifyRoutes && modifyRoutes(appConfigRouter.modifyRoutes); - var lazy = buildConfig && buildConfig.router && buildConfig.router.lazy; - setRenderApp(function(routes, RoutesComponent, param) { + }, wrapperPageFn = process.env.__IS_SERVER__ ? _formatRoutes.wrapperPageWithSSR(context) : _formatRoutes.wrapperPageWithCSR(); + wrapperPageComponent(wrapperPageFn), wrapperPageComponent(wrapperPageErrorBoundary), appConfigRouter.modifyRoutes && modifyRoutes(appConfigRouter.modifyRoutes); + var lazy = buildConfig && buildConfig.router && buildConfig.router.lazy, renderRouter = function(routes, RoutesComponent, param) { var customRouterProps = void 0 === param ? {} : param; return function() { var routerProps = swcHelpers.objectSpread({}, appConfigRouter, { @@ -393,8 +393,10 @@ }) : null })); }; - }); + }; + setRenderApp(renderRouter); }; + exports.default = module; }, 37447: function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; @@ -576,7 +578,8 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 - }), exports.default = void 0, exports.default = function() { + }), exports.default = void 0; + var _default = function() { for(var _len = arguments.length, strArray = Array(_len), _key = 0; _key < _len; _key++)strArray[_key] = arguments[_key]; if (0 === strArray.length) return ""; var resultArray = [], filterStrArray = strArray.filter(function(str) { @@ -588,14 +591,14 @@ index > 0 && (routePath = routePath.replace(/^[/]+/, "")), routePath = index < filterStrArray.length - 1 ? routePath.replace(/[/]+$/, "") : routePath.replace(/[/]+$/, "/"), resultArray.push(routePath); }), resultArray.join("/"); }; + exports.default = _default; }, 56905: function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = void 0; - var swcHelpers = __webpack_require__(547), _jsxRuntime = __webpack_require__(37712), _indexModuleScss = swcHelpers.interopRequireDefault(__webpack_require__(89704)); - exports.default = function() { + var swcHelpers = __webpack_require__(547), _jsxRuntime = __webpack_require__(37712), _indexModuleScss = swcHelpers.interopRequireDefault(__webpack_require__(89704)), Guide = function() { return _jsxRuntime.jsxs("div", { className: _indexModuleScss.default.container, children: [ @@ -630,16 +633,17 @@ ] }); }; + exports.default = Guide; }, 43361: function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = void 0; - var swcHelpers = __webpack_require__(547), _jsxRuntime = __webpack_require__(37712), _guide = swcHelpers.interopRequireDefault(__webpack_require__(56905)); - exports.default = function() { + var swcHelpers = __webpack_require__(547), _jsxRuntime = __webpack_require__(37712), _guide = swcHelpers.interopRequireDefault(__webpack_require__(56905)), Home = function() { return console.log(1), _jsxRuntime.jsx(_guide.default, {}); }; + exports.default = Home; }, 72791: function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; @@ -742,11 +746,11 @@ }); }; return Component.displayName && (LoadableWithChunkExtractor.displayName = Component.displayName + "WithChunkExtractor"), LoadableWithChunkExtractor; + }, identity = function(v) { + return v; }; function createLoadable(_ref) { - var _ref$defaultResolveCo = _ref.defaultResolveComponent, defaultResolveComponent = void 0 === _ref$defaultResolveCo ? function(v) { - return v; - } : _ref$defaultResolveCo, _render = _ref.render, onLoad = _ref.onLoad; + var _ref$defaultResolveCo = _ref.defaultResolveComponent, defaultResolveComponent = void 0 === _ref$defaultResolveCo ? identity : _ref$defaultResolveCo, _render = _ref.render, onLoad = _ref.onLoad; function loadable(loadableConstructor, options) { void 0 === options && (options = {}); var ctor, ctor1 = "function" == typeof (ctor = loadableConstructor) ? { @@ -1208,11 +1212,11 @@ void 0 !== element.descriptor.get ? other.descriptor.get = element.descriptor.get : other.descriptor.set = element.descriptor.set; } function _coalesceClassElements(elements) { - for(var newElements = [], i = 0; i < elements.length; i++){ + for(var newElements = [], isSameElement = function(other) { + return "method" === other.kind && other.key === element.key && other.placement === element.placement; + }, i = 0; i < elements.length; i++){ var other, element = elements[i]; - if ("method" === element.kind && (other = newElements.find(function(other) { - return "method" === other.kind && other.key === element.key && other.placement === element.placement; - }))) { + if ("method" === element.kind && (other = newElements.find(isSameElement))) { if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) { if (_hasDecorators(element) || _hasDecorators(other)) throw ReferenceError("Duplicated methods (" + element.key + ") can't be decorated."); other.descriptor = element.descriptor; @@ -2693,10 +2697,46 @@ }, BigIntArrayConstructorsList = { BigInt64Array: 8, BigUint64Array: 8 + }, isView = function(it) { + if (!isObject(it)) return !1; + var klass = classof(it); + return "DataView" === klass || has(TypedArrayConstructorsList, klass) || has(BigIntArrayConstructorsList, klass); }, isTypedArray = function(it) { if (!isObject(it)) return !1; var klass = classof(it); return has(TypedArrayConstructorsList, klass) || has(BigIntArrayConstructorsList, klass); + }, aTypedArray = function(it) { + if (isTypedArray(it)) return it; + throw TypeError("Target is not a typed array"); + }, aTypedArrayConstructor = function(C) { + if (isCallable(C) && (!setPrototypeOf || isPrototypeOf.call(TypedArray, C))) return C; + throw TypeError(tryToString(C) + " is not a typed array constructor"); + }, exportTypedArrayMethod = function(KEY, property, forced) { + if (DESCRIPTORS) { + if (forced) for(var ARRAY in TypedArrayConstructorsList){ + var TypedArrayConstructor = global[ARRAY]; + if (TypedArrayConstructor && has(TypedArrayConstructor.prototype, KEY)) try { + delete TypedArrayConstructor.prototype[KEY]; + } catch (error) {} + } + (!TypedArrayPrototype[KEY] || forced) && redefine(TypedArrayPrototype, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property); + } + }, exportTypedArrayStaticMethod = function(KEY, property, forced) { + var ARRAY, TypedArrayConstructor; + if (DESCRIPTORS) { + if (setPrototypeOf) { + if (forced) { + for(ARRAY in TypedArrayConstructorsList)if ((TypedArrayConstructor = global[ARRAY]) && has(TypedArrayConstructor, KEY)) try { + delete TypedArrayConstructor[KEY]; + } catch (error) {} + } + if (TypedArray[KEY] && !forced) return; + try { + return redefine(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property); + } catch (error1) {} + } + for(ARRAY in TypedArrayConstructorsList)(TypedArrayConstructor = global[ARRAY]) && (!TypedArrayConstructor[KEY] || forced) && redefine(TypedArrayConstructor, KEY, property); + } }; for(NAME in TypedArrayConstructorsList)(Prototype = (Constructor = global[NAME]) && Constructor.prototype) ? createNonEnumerableProperty(Prototype, TYPED_ARRAY_CONSTRUCTOR, Constructor) : NATIVE_ARRAY_BUFFER_VIEWS = !1; for(NAME in BigIntArrayConstructorsList)(Prototype = (Constructor = global[NAME]) && Constructor.prototype) && createNonEnumerableProperty(Prototype, TYPED_ARRAY_CONSTRUCTOR, Constructor); @@ -2713,47 +2753,11 @@ NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS, TYPED_ARRAY_CONSTRUCTOR: TYPED_ARRAY_CONSTRUCTOR, TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQIRED && TYPED_ARRAY_TAG, - aTypedArray: function(it) { - if (isTypedArray(it)) return it; - throw TypeError("Target is not a typed array"); - }, - aTypedArrayConstructor: function(C) { - if (isCallable(C) && (!setPrototypeOf || isPrototypeOf.call(TypedArray, C))) return C; - throw TypeError(tryToString(C) + " is not a typed array constructor"); - }, - exportTypedArrayMethod: function(KEY, property, forced) { - if (DESCRIPTORS) { - if (forced) for(var ARRAY in TypedArrayConstructorsList){ - var TypedArrayConstructor = global[ARRAY]; - if (TypedArrayConstructor && has(TypedArrayConstructor.prototype, KEY)) try { - delete TypedArrayConstructor.prototype[KEY]; - } catch (error) {} - } - (!TypedArrayPrototype[KEY] || forced) && redefine(TypedArrayPrototype, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property); - } - }, - exportTypedArrayStaticMethod: function(KEY, property, forced) { - var ARRAY, TypedArrayConstructor; - if (DESCRIPTORS) { - if (setPrototypeOf) { - if (forced) { - for(ARRAY in TypedArrayConstructorsList)if ((TypedArrayConstructor = global[ARRAY]) && has(TypedArrayConstructor, KEY)) try { - delete TypedArrayConstructor[KEY]; - } catch (error) {} - } - if (TypedArray[KEY] && !forced) return; - try { - return redefine(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property); - } catch (error1) {} - } - for(ARRAY in TypedArrayConstructorsList)(TypedArrayConstructor = global[ARRAY]) && (!TypedArrayConstructor[KEY] || forced) && redefine(TypedArrayConstructor, KEY, property); - } - }, - isView: function(it) { - if (!isObject(it)) return !1; - var klass = classof(it); - return "DataView" === klass || has(TypedArrayConstructorsList, klass) || has(BigIntArrayConstructorsList, klass); - }, + aTypedArray: aTypedArray, + aTypedArrayConstructor: aTypedArrayConstructor, + exportTypedArrayMethod: exportTypedArrayMethod, + exportTypedArrayStaticMethod: exportTypedArrayStaticMethod, + isView: isView, isTypedArray: isTypedArray, TypedArray: TypedArray, TypedArrayPrototype: TypedArrayPrototype @@ -3412,14 +3416,14 @@ }, 10536: function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; - var IteratorPrototype = __webpack_require__(65400).IteratorPrototype, create = __webpack_require__(18255), createPropertyDescriptor = __webpack_require__(93608), setToStringTag = __webpack_require__(77875), Iterators = __webpack_require__(25463); + var IteratorPrototype = __webpack_require__(65400).IteratorPrototype, create = __webpack_require__(18255), createPropertyDescriptor = __webpack_require__(93608), setToStringTag = __webpack_require__(77875), Iterators = __webpack_require__(25463), returnThis = function() { + return this; + }; module.exports = function(IteratorConstructor, NAME, next) { var TO_STRING_TAG = NAME + " Iterator"; return IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) - }), setToStringTag(IteratorConstructor, TO_STRING_TAG, !1, !0), Iterators[TO_STRING_TAG] = function() { - return this; - }, IteratorConstructor; + }), setToStringTag(IteratorConstructor, TO_STRING_TAG, !1, !0), Iterators[TO_STRING_TAG] = returnThis, IteratorConstructor; }; }, 48181: function(module, __unused_webpack_exports, __webpack_require__) { @@ -3859,25 +3863,25 @@ }); }, 43571: function(module) { - var abs = Math.abs, pow = Math.pow, floor = Math.floor, log = Math.log, LN2 = Math.LN2; - module.exports = { - pack: function(number, mantissaLength, bytes) { - var exponent, mantissa, c, buffer = Array(bytes), exponentLength = 8 * bytes - mantissaLength - 1, eMax = (1 << exponentLength) - 1, eBias = eMax >> 1, rt = 23 === mantissaLength ? pow(2, -24) - pow(2, -77) : 0, sign = number < 0 || 0 === number && 1 / number < 0 ? 1 : 0, index = 0; - for((number = abs(number)) != number || number === 1 / 0 ? (mantissa = number != number ? 1 : 0, exponent = eMax) : (exponent = floor(log(number) / LN2), number * (c = pow(2, -exponent)) < 1 && (exponent--, c *= 2), exponent + eBias >= 1 ? number += rt / c : number += rt * pow(2, 1 - eBias), number * c >= 2 && (exponent++, c /= 2), exponent + eBias >= eMax ? (mantissa = 0, exponent = eMax) : exponent + eBias >= 1 ? (mantissa = (number * c - 1) * pow(2, mantissaLength), exponent += eBias) : (mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength), exponent = 0)); mantissaLength >= 8; buffer[index++] = 255 & mantissa, mantissa /= 256, mantissaLength -= 8); - for(exponent = exponent << mantissaLength | mantissa, exponentLength += mantissaLength; exponentLength > 0; buffer[index++] = 255 & exponent, exponent /= 256, exponentLength -= 8); - return buffer[--index] |= 128 * sign, buffer; - }, - unpack: function(buffer, mantissaLength) { - var mantissa, bytes = buffer.length, exponentLength = 8 * bytes - mantissaLength - 1, eMax = (1 << exponentLength) - 1, eBias = eMax >> 1, nBits = exponentLength - 7, index = bytes - 1, sign = buffer[index--], exponent = 127 & sign; - for(sign >>= 7; nBits > 0; exponent = 256 * exponent + buffer[index], index--, nBits -= 8); - for(mantissa = exponent & (1 << -nBits) - 1, exponent >>= -nBits, nBits += mantissaLength; nBits > 0; mantissa = 256 * mantissa + buffer[index], index--, nBits -= 8); - if (0 === exponent) exponent = 1 - eBias; - else { - if (exponent === eMax) return mantissa ? NaN : sign ? -1 / 0 : 1 / 0; - mantissa += pow(2, mantissaLength), exponent -= eBias; - } - return (sign ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength); + var abs = Math.abs, pow = Math.pow, floor = Math.floor, log = Math.log, LN2 = Math.LN2, pack = function(number, mantissaLength, bytes) { + var exponent, mantissa, c, buffer = Array(bytes), exponentLength = 8 * bytes - mantissaLength - 1, eMax = (1 << exponentLength) - 1, eBias = eMax >> 1, rt = 23 === mantissaLength ? pow(2, -24) - pow(2, -77) : 0, sign = number < 0 || 0 === number && 1 / number < 0 ? 1 : 0, index = 0; + for((number = abs(number)) != number || number === 1 / 0 ? (mantissa = number != number ? 1 : 0, exponent = eMax) : (exponent = floor(log(number) / LN2), number * (c = pow(2, -exponent)) < 1 && (exponent--, c *= 2), exponent + eBias >= 1 ? number += rt / c : number += rt * pow(2, 1 - eBias), number * c >= 2 && (exponent++, c /= 2), exponent + eBias >= eMax ? (mantissa = 0, exponent = eMax) : exponent + eBias >= 1 ? (mantissa = (number * c - 1) * pow(2, mantissaLength), exponent += eBias) : (mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength), exponent = 0)); mantissaLength >= 8; buffer[index++] = 255 & mantissa, mantissa /= 256, mantissaLength -= 8); + for(exponent = exponent << mantissaLength | mantissa, exponentLength += mantissaLength; exponentLength > 0; buffer[index++] = 255 & exponent, exponent /= 256, exponentLength -= 8); + return buffer[--index] |= 128 * sign, buffer; + }, unpack = function(buffer, mantissaLength) { + var mantissa, bytes = buffer.length, exponentLength = 8 * bytes - mantissaLength - 1, eMax = (1 << exponentLength) - 1, eBias = eMax >> 1, nBits = exponentLength - 7, index = bytes - 1, sign = buffer[index--], exponent = 127 & sign; + for(sign >>= 7; nBits > 0; exponent = 256 * exponent + buffer[index], index--, nBits -= 8); + for(mantissa = exponent & (1 << -nBits) - 1, exponent >>= -nBits, nBits += mantissaLength; nBits > 0; mantissa = 256 * mantissa + buffer[index], index--, nBits -= 8); + if (0 === exponent) exponent = 1 - eBias; + else { + if (exponent === eMax) return mantissa ? NaN : sign ? -1 / 0 : 1 / 0; + mantissa += pow(2, mantissaLength), exponent -= eBias; } + return (sign ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength); + }; + module.exports = { + pack: pack, + unpack: unpack }; }, 51478: function(module, __unused_webpack_exports, __webpack_require__) { @@ -3911,49 +3915,57 @@ weakData: {} } }); - }, meta = module.exports = { - enable: function() { - meta.enable = function() {}, REQUIRED = !0; - var getOwnPropertyNames = getOwnPropertyNamesModule.f, splice = [].splice, test = {}; - test[METADATA] = 1, getOwnPropertyNames(test).length && (getOwnPropertyNamesModule.f = function(it) { - for(var result = getOwnPropertyNames(it), i = 0, length = result.length; i < length; i++)if (result[i] === METADATA) { - splice.call(result, i, 1); - break; - } - return result; - }, $({ - target: "Object", - stat: !0, - forced: !0 - }, { - getOwnPropertyNames: getOwnPropertyNamesExternalModule.f - })); - }, - fastKey: function(it, create) { - if (!isObject(it)) return "symbol" == typeof it ? it : ("string" == typeof it ? "S" : "P") + it; - if (!has(it, METADATA)) { - if (!isExtensible(it)) return "F"; - if (!create) return "E"; - setMetadata(it); - } - return it[METADATA].objectID; - }, - getWeakData: function(it, create) { - if (!has(it, METADATA)) { - if (!isExtensible(it)) return !0; - if (!create) return !1; - setMetadata(it); - } - return it[METADATA].weakData; - }, - onFreeze: function(it) { - return FREEZING && REQUIRED && isExtensible(it) && !has(it, METADATA) && setMetadata(it), it; + }, fastKey = function(it, create) { + if (!isObject(it)) return "symbol" == typeof it ? it : ("string" == typeof it ? "S" : "P") + it; + if (!has(it, METADATA)) { + if (!isExtensible(it)) return "F"; + if (!create) return "E"; + setMetadata(it); } + return it[METADATA].objectID; + }, getWeakData = function(it, create) { + if (!has(it, METADATA)) { + if (!isExtensible(it)) return !0; + if (!create) return !1; + setMetadata(it); + } + return it[METADATA].weakData; + }, onFreeze = function(it) { + return FREEZING && REQUIRED && isExtensible(it) && !has(it, METADATA) && setMetadata(it), it; + }, enable = function() { + meta.enable = function() {}, REQUIRED = !0; + var getOwnPropertyNames = getOwnPropertyNamesModule.f, splice = [].splice, test = {}; + test[METADATA] = 1, getOwnPropertyNames(test).length && (getOwnPropertyNamesModule.f = function(it) { + for(var result = getOwnPropertyNames(it), i = 0, length = result.length; i < length; i++)if (result[i] === METADATA) { + splice.call(result, i, 1); + break; + } + return result; + }, $({ + target: "Object", + stat: !0, + forced: !0 + }, { + getOwnPropertyNames: getOwnPropertyNamesExternalModule.f + })); + }, meta = module.exports = { + enable: enable, + fastKey: fastKey, + getWeakData: getWeakData, + onFreeze: onFreeze }; hiddenKeys[METADATA] = !0; }, 44670: function(module, __unused_webpack_exports, __webpack_require__) { - var set, get, has, NATIVE_WEAK_MAP = __webpack_require__(83165), global = __webpack_require__(19514), isObject = __webpack_require__(39817), createNonEnumerableProperty = __webpack_require__(48181), objectHas = __webpack_require__(1521), shared = __webpack_require__(88986), sharedKey = __webpack_require__(16735), hiddenKeys = __webpack_require__(38276), OBJECT_ALREADY_INITIALIZED = "Object already initialized", WeakMap1 = global.WeakMap; + var set, get, has, NATIVE_WEAK_MAP = __webpack_require__(83165), global = __webpack_require__(19514), isObject = __webpack_require__(39817), createNonEnumerableProperty = __webpack_require__(48181), objectHas = __webpack_require__(1521), shared = __webpack_require__(88986), sharedKey = __webpack_require__(16735), hiddenKeys = __webpack_require__(38276), OBJECT_ALREADY_INITIALIZED = "Object already initialized", WeakMap1 = global.WeakMap, enforce = function(it) { + return has(it) ? get(it) : set(it, {}); + }, getterFor = function(TYPE) { + return function(it) { + var state; + if (!isObject(it) || (state = get(it)).type !== TYPE) throw TypeError("Incompatible receiver, " + TYPE + " required"); + return state; + }; + }; if (NATIVE_WEAK_MAP || shared.state) { var store = shared.state || (shared.state = new WeakMap1()), wmget = store.get, wmhas = store.has, wmset = store.set; set = function(it, metadata) { @@ -3979,16 +3991,8 @@ set: set, get: get, has: has, - enforce: function(it) { - return has(it) ? get(it) : set(it, {}); - }, - getterFor: function(TYPE) { - return function(it) { - var state; - if (!isObject(it) || (state = get(it)).type !== TYPE) throw TypeError("Incompatible receiver, " + TYPE + " required"); - return state; - }; - } + enforce: enforce, + getterFor: getterFor }; }, 58011: function(module, __unused_webpack_exports, __webpack_require__) { @@ -4016,13 +4020,7 @@ } catch (error) { return !1; } - }; - module.exports = !construct || fails(function() { - var called; - return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function() { - called = !0; - }) || called; - }) ? function(argument) { + }, isConstructorLegacy = function(argument) { if (!isCallable(argument)) return !1; switch(classof(argument)){ case "AsyncFunction": @@ -4031,7 +4029,13 @@ return !1; } return INCORRECT_TO_STRING || !!exec.call(constructorRegExp, inspectSource(argument)); - } : isConstructorModern; + }; + module.exports = !construct || fails(function() { + var called; + return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function() { + called = !0; + }) || called; + }) ? isConstructorLegacy : isConstructorModern; }, 69518: function(module, __unused_webpack_exports, __webpack_require__) { var has = __webpack_require__(1521); @@ -7779,6 +7783,8 @@ return $forEach(keys, function(key) { (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key)) && $defineProperty(O, key, properties[key]); }), O; + }, $create = function(O, Properties) { + return void 0 === Properties ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties); }, $propertyIsEnumerable = function(V) { var P = toPropertyKey(V), enumerable = nativePropertyIsEnumerable.call(this, P); return (!(this === ObjectPrototype && has(AllSymbols, P)) || !!has(ObjectPrototypeSymbols, P)) && (!(enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P]) || enumerable); @@ -7857,9 +7863,7 @@ forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, { - create: function(O, Properties) { - return void 0 === Properties ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties); - }, + create: $create, defineProperty: $defineProperty, defineProperties: $defineProperties, getOwnPropertyDescriptor: $getOwnPropertyDescriptor diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/3256/2/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/3256/2/output.js index aa5483afc45..00590d516e1 100644 --- a/crates/swc_ecma_minifier/tests/fixture/issues/3256/2/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/issues/3256/2/output.js @@ -1,4 +1,4 @@ -export default ((adler, buf, len, pos)=>{ +const adler32 = (adler, buf, len, pos)=>{ let s1 = 0xffff & adler | 0, s2 = adler >>> 16 & 0xffff | 0, n = 0; for(; 0 !== len;){ n = len > 2000 ? 2000 : len, len -= n; @@ -7,4 +7,5 @@ export default ((adler, buf, len, pos)=>{ s1 %= 65521, s2 %= 65521; } return s1 | s2 << 16 | 0; -}); +}; +export default adler32; diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/emotion/react/1/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/emotion/react/1/output.js index 5f75a406844..e7abade6e24 100644 --- a/crates/swc_ecma_minifier/tests/fixture/issues/emotion/react/1/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/issues/emotion/react/1/output.js @@ -817,7 +817,7 @@ prefetched[href + "%" + as + (curLocale ? "%" + curLocale : "")] = !0; } } - exports.default = function(props) { + var _default = function(props) { var child, p = !1 !== props.prefetch, router = _router1.useRouter(), ref2 = _react.default.useMemo(function() { var ref = _slicedToArray(_router.resolveHref(router, props.href, !0), 2), resolvedHref = ref[0], resolvedAs = ref[1]; return { @@ -872,6 +872,7 @@ } return _react.default.cloneElement(child, childProps); }; + exports.default = _default; }, 7190: function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/firebase-core/1/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/firebase-core/1/output.js index 12c49a8b201..08cc40c608c 100644 --- a/crates/swc_ecma_minifier/tests/fixture/issues/firebase-core/1/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/issues/firebase-core/1/output.js @@ -2414,15 +2414,15 @@ [LogLevel.INFO]: "info", [LogLevel.WARN]: "warn", [LogLevel.ERROR]: "error" + }, defaultLogHandler = (instance, logType, ...args)=>{ + if (logType < instance.logLevel) return; + const now = new Date().toISOString(), method = ConsoleMethod[logType]; + if (method) console[method](`[${now}] ${instance.name}:`, ...args); + else throw Error(`Attempted to log a message with an invalid logType (value: ${logType})`); }; class Logger { constructor(name){ - this.name = name, this._logLevel = defaultLogLevel, this._logHandler = (instance, logType, ...args)=>{ - if (logType < instance.logLevel) return; - const now = new Date().toISOString(), method = ConsoleMethod[logType]; - if (method) console[method](`[${now}] ${instance.name}:`, ...args); - else throw Error(`Attempted to log a message with an invalid logType (value: ${logType})`); - }, this._userLogHandler = null, [].push(this); + this.name = name, this._logLevel = defaultLogLevel, this._logHandler = defaultLogHandler, this._userLogHandler = null, [].push(this); } get logLevel() { return this._logLevel; diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/moment/1/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/moment/1/output.js index c2c4e0b6527..e2ef6a9893f 100644 --- a/crates/swc_ecma_minifier/tests/fixture/issues/moment/1/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/issues/moment/1/output.js @@ -878,7 +878,9 @@ for(i = 1, res = moments[0]; i < moments.length; ++i)(!moments[i].isValid() || moments[i][fn](res)) && (res = moments[i]); return res; } - var ordering = [ + var now = function() { + return Date.now ? Date.now() : +new Date(); + }, ordering = [ "year", "quarter", "month", @@ -1837,9 +1839,7 @@ }, hooks.max = function() { var args = [].slice.call(arguments, 0); return pickBy("isAfter", args); - }, hooks.now = function() { - return Date.now ? Date.now() : +new Date(); - }, hooks.utc = createUTC, hooks.unix = function(input) { + }, hooks.now = now, hooks.utc = createUTC, hooks.unix = function(input) { return createLocal(1000 * input); }, hooks.months = function(format, index) { return listMonthsImpl(format, index, "months"); diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/react-countup/1/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/react-countup/1/output.js index 038d18712d3..6c89cb09a86 100644 --- a/crates/swc_ecma_minifier/tests/fixture/issues/react-countup/1/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/issues/react-countup/1/output.js @@ -772,8 +772,7 @@ "containerProps", "children", "style", - ]; - exports.ZP = function(props) { + ], CountUp = function(props) { var className = props.className, redraw = props.redraw, containerProps = props.containerProps, children = props.children, style = props.style, useCountUpProps = _objectWithoutProperties(props, _excluded), containerRef = React__default.default.useRef(null), isInitializedRef = React__default.default.useRef(!1), _useCountUp = useCountUp(_objectSpread2(_objectSpread2({}, useCountUpProps), {}, { ref: containerRef, startOnMount: "function" != typeof children || 0 === props.delay, @@ -833,6 +832,7 @@ style: style }, containerProps)); }; + exports.ZP = CountUp; } }, ]); diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/react-instancesearch/004/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/react-instancesearch/004/output.js index ba9ad9fc27d..3bc832d38e0 100644 --- a/crates/swc_ecma_minifier/tests/fixture/issues/react-instancesearch/004/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/issues/react-instancesearch/004/output.js @@ -24,7 +24,13 @@ var _obj, isMultiIndexContext = function(widget) { return isFirstWidgetIndex && !isSecondWidgetIndex ? -1 : !isFirstWidgetIndex && isSecondWidgetIndex ? 1 : 0; }; export default function createInstantSearchManager(param) { - var indexName = param.indexName, _initialState = param.initialState, searchClient = param.searchClient, resultsState = param.resultsState, stalledSearchDelay = param.stalledSearchDelay, getMetadata = function(state) { + var indexName = param.indexName, _initialState = param.initialState, searchClient = param.searchClient, resultsState = param.resultsState, stalledSearchDelay = param.stalledSearchDelay, skipSearch = function() { + skip = !0; + }, updateClient = function(client) { + addAlgoliaAgents(client), helper.setClient(client), search(); + }, clearCache = function() { + helper.clearCache(), search(); + }, getMetadata = function(state) { return widgetsManager.getWidgets().filter(function(widget) { return Boolean(widget.getMetadata); }).map(function(widget) { @@ -106,6 +112,15 @@ export default function createInstantSearchManager(param) { error: error, searching: !1 })); + }, handleNewSearch = function() { + stalledSearchTimer || (stalledSearchTimer = setTimeout(function() { + var _ref = store.getState(), partialState = (_ref.resultsFacetValues, swcHelpers.objectWithoutProperties(_ref, [ + "resultsFacetValues", + ])); + store.setState(swcHelpers.objectSpread({}, partialState, { + isSearchStalled: !0 + })); + }, stalledSearchDelay)); }, hydrateSearchClientWithMultiIndexRequest = function(client, results) { if (client.transporter) { client.transporter.responsesCache.set({ @@ -170,26 +185,57 @@ export default function createInstantSearchManager(param) { client.cache = swcHelpers.objectSpread({}, client.cache, swcHelpers.defineProperty({}, key, JSON.stringify({ results: results.rawResults }))); - }, helper = algoliasearchHelper(searchClient, indexName, swcHelpers.objectSpread({}, HIGHLIGHT_TAGS)); - addAlgoliaAgents(searchClient), helper.on("search", function() { - stalledSearchTimer || (stalledSearchTimer = setTimeout(function() { - var _ref = store.getState(), partialState = (_ref.resultsFacetValues, swcHelpers.objectWithoutProperties(_ref, [ - "resultsFacetValues", - ])); - store.setState(swcHelpers.objectSpread({}, partialState, { - isSearchStalled: !0 - })); - }, stalledSearchDelay)); - }).on("result", handleSearchSuccess({ - indexId: indexName - })).on("error", handleSearchError); - var results, state, listeners, skip = !1, stalledSearchTimer = null, initialSearchParameters = helper.state, widgetsManager = createWidgetsManager(function() { + }, onWidgetsUpdate = function() { var metadata = getMetadata(store.getState().widgets); store.setState(swcHelpers.objectSpread({}, store.getState(), { metadata: metadata, searching: !0 })), search(); - }); + }, transitionState = function(nextSearchState) { + var searchState = store.getState().widgets; + return widgetsManager.getWidgets().filter(function(widget) { + return Boolean(widget.transitionState); + }).reduce(function(res, widget) { + return widget.transitionState(searchState, res); + }, nextSearchState); + }, onExternalStateUpdate = function(nextSearchState) { + var metadata = getMetadata(nextSearchState); + store.setState(swcHelpers.objectSpread({}, store.getState(), { + widgets: nextSearchState, + metadata: metadata, + searching: !0 + })), search(); + }, onSearchForFacetValues = function(param) { + var facetName = param.facetName, query = param.query, _maxFacetHits = param.maxFacetHits; + store.setState(swcHelpers.objectSpread({}, store.getState(), { + searchingForFacetValues: !0 + })), helper.searchForFacetValues(facetName, query, Math.max(1, Math.min(void 0 === _maxFacetHits ? 10 : _maxFacetHits, 100))).then(function(content) { + store.setState(swcHelpers.objectSpread({}, store.getState(), { + error: null, + searchingForFacetValues: !1, + resultsFacetValues: swcHelpers.objectSpread({}, store.getState().resultsFacetValues, (_obj = {}, swcHelpers.defineProperty(_obj, facetName, content.facetHits), swcHelpers.defineProperty(_obj, "query", query), _obj)) + })); + }, function(error) { + store.setState(swcHelpers.objectSpread({}, store.getState(), { + searchingForFacetValues: !1, + error: error + })); + }).catch(function(error) { + setTimeout(function() { + throw error; + }); + }); + }, updateIndex = function(newIndex) { + initialSearchParameters = initialSearchParameters.setIndex(newIndex); + }, getWidgetsIds = function() { + return store.getState().metadata.reduce(function(res, meta) { + return void 0 !== meta.id ? res.concat(meta.id) : res; + }, []); + }, helper = algoliasearchHelper(searchClient, indexName, swcHelpers.objectSpread({}, HIGHLIGHT_TAGS)); + addAlgoliaAgents(searchClient), helper.on("search", handleNewSearch).on("result", handleSearchSuccess({ + indexId: indexName + })).on("error", handleSearchError); + var results, state, listeners, skip = !1, stalledSearchTimer = null, initialSearchParameters = helper.state, widgetsManager = createWidgetsManager(onWidgetsUpdate); !function(client, results) { if (results && (client.transporter && !client._cacheHydrated || client._useCache && "function" == typeof client.addAlgoliaAgent)) { if (client.transporter && !client._cacheHydrated) { @@ -259,61 +305,15 @@ export default function createInstantSearchManager(param) { return { store: store, widgetsManager: widgetsManager, - getWidgetsIds: function() { - return store.getState().metadata.reduce(function(res, meta) { - return void 0 !== meta.id ? res.concat(meta.id) : res; - }, []); - }, + getWidgetsIds: getWidgetsIds, getSearchParameters: getSearchParameters, - onSearchForFacetValues: function(param) { - var facetName = param.facetName, query = param.query, _maxFacetHits = param.maxFacetHits; - store.setState(swcHelpers.objectSpread({}, store.getState(), { - searchingForFacetValues: !0 - })), helper.searchForFacetValues(facetName, query, Math.max(1, Math.min(void 0 === _maxFacetHits ? 10 : _maxFacetHits, 100))).then(function(content) { - store.setState(swcHelpers.objectSpread({}, store.getState(), { - error: null, - searchingForFacetValues: !1, - resultsFacetValues: swcHelpers.objectSpread({}, store.getState().resultsFacetValues, (_obj = {}, swcHelpers.defineProperty(_obj, facetName, content.facetHits), swcHelpers.defineProperty(_obj, "query", query), _obj)) - })); - }, function(error) { - store.setState(swcHelpers.objectSpread({}, store.getState(), { - searchingForFacetValues: !1, - error: error - })); - }).catch(function(error) { - setTimeout(function() { - throw error; - }); - }); - }, - onExternalStateUpdate: function(nextSearchState) { - var metadata = getMetadata(nextSearchState); - store.setState(swcHelpers.objectSpread({}, store.getState(), { - widgets: nextSearchState, - metadata: metadata, - searching: !0 - })), search(); - }, - transitionState: function(nextSearchState) { - var searchState = store.getState().widgets; - return widgetsManager.getWidgets().filter(function(widget) { - return Boolean(widget.transitionState); - }).reduce(function(res, widget) { - return widget.transitionState(searchState, res); - }, nextSearchState); - }, - updateClient: function(client) { - addAlgoliaAgents(client), helper.setClient(client), search(); - }, - updateIndex: function(newIndex) { - initialSearchParameters = initialSearchParameters.setIndex(newIndex); - }, - clearCache: function() { - helper.clearCache(), search(); - }, - skipSearch: function() { - skip = !0; - } + onSearchForFacetValues: onSearchForFacetValues, + onExternalStateUpdate: onExternalStateUpdate, + transitionState: transitionState, + updateClient: updateClient, + updateIndex: updateIndex, + clearCache: clearCache, + skipSearch: skipSearch }; }; function hydrateMetadata(resultsState) { diff --git a/crates/swc_ecma_minifier/tests/fixture/next/31077/static/chunks/1606726a.10299989c08cb523/output.js b/crates/swc_ecma_minifier/tests/fixture/next/31077/static/chunks/1606726a.10299989c08cb523/output.js index d0a809dca65..43fb1f3def5 100644 --- a/crates/swc_ecma_minifier/tests/fixture/next/31077/static/chunks/1606726a.10299989c08cb523/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/next/31077/static/chunks/1606726a.10299989c08cb523/output.js @@ -2148,12 +2148,12 @@ this.members = members; }; function mapChildren(oldChildren, newLocal, mapping, node, offset, oldOffset, options) { - for(var children = oldChildren.slice(), i = 0; i < mapping.maps.length; i++)mapping.maps[i].forEach(function(oldStart, oldEnd, newStart, newEnd) { + for(var children = oldChildren.slice(), shift = function(oldStart, oldEnd, newStart, newEnd) { for(var i = 0; i < children.length; i += 3){ var end = children[i + 1], dSize = void 0; -1 != end && !(oldStart > end + oldOffset) && (oldEnd >= children[i] + oldOffset ? children[i + 1] = -1 : newStart >= offset && (dSize = newEnd - newStart - (oldEnd - oldStart)) && (children[i] += dSize, children[i + 1] += dSize)); } - }); + }, i = 0; i < mapping.maps.length; i++)mapping.maps[i].forEach(shift); for(var mustRebuild = !1, i$1 = 0; i$1 < children.length; i$1 += 3)if (-1 == children[i$1 + 1]) { var from = mapping.map(oldChildren[i$1] + oldOffset), fromLocal = from - offset; if (fromLocal < 0 || fromLocal >= node.content.size) { diff --git a/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/d6e1aeb5-38a8d7ae57119c23/output.js b/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/d6e1aeb5-38a8d7ae57119c23/output.js index bf83192dddd..4168b18d8fb 100644 --- a/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/d6e1aeb5-38a8d7ae57119c23/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/d6e1aeb5-38a8d7ae57119c23/output.js @@ -7,9 +7,17 @@ 5215: function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { for(var browserApi, videojs$1, FakeWeakMap, _supportsPassive, EVENT_MAP, canPlayType, Vhs$1, global_window__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8908), global_window__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(global_window__WEBPACK_IMPORTED_MODULE_0__), global_document__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9144), global_document__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(global_document__WEBPACK_IMPORTED_MODULE_1__), _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(7462), _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(7326), _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(4578), safe_json_parse_tuple__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5974), safe_json_parse_tuple__WEBPACK_IMPORTED_MODULE_2___default = __webpack_require__.n(safe_json_parse_tuple__WEBPACK_IMPORTED_MODULE_2__), keycode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7537), keycode__WEBPACK_IMPORTED_MODULE_3___default = __webpack_require__.n(keycode__WEBPACK_IMPORTED_MODULE_3__), _videojs_xhr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9603), _videojs_xhr__WEBPACK_IMPORTED_MODULE_4___default = __webpack_require__.n(_videojs_xhr__WEBPACK_IMPORTED_MODULE_4__), videojs_vtt_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3407), videojs_vtt_js__WEBPACK_IMPORTED_MODULE_5___default = __webpack_require__.n(videojs_vtt_js__WEBPACK_IMPORTED_MODULE_5__), _babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(8852), _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(136), _videojs_vhs_utils_es_resolve_url_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(779), m3u8_parser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9323), _videojs_vhs_utils_es_codecs_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2260), _videojs_vhs_utils_es_media_types_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(8485), mpd_parser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(973), mux_js_lib_tools_parse_sidx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(4221), mux_js_lib_tools_parse_sidx__WEBPACK_IMPORTED_MODULE_10___default = __webpack_require__.n(mux_js_lib_tools_parse_sidx__WEBPACK_IMPORTED_MODULE_10__), _videojs_vhs_utils_es_id3_helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(8925), _videojs_vhs_utils_es_containers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(6185), _videojs_vhs_utils_es_byte_helpers__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(562), mux_js_lib_utils_clock__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(1489), version$5 = "7.17.0", hooks_ = {}, hooks = function(type, fn) { return hooks_[type] = hooks_[type] || [], fn && (hooks_[type] = hooks_[type].concat(fn)), hooks_[type]; + }, hook = function(type, fn) { + hooks(type, fn); }, removeHook = function(type, fn) { var index = hooks(type).indexOf(fn); return !(index <= -1) && (hooks_[type] = hooks_[type].slice(), hooks_[type].splice(index, 1), !0); + }, hookOnce = function(type, fn) { + hooks(type, [].concat(fn).map(function(original) { + return function wrapper() { + return removeHook(type, wrapper), original.apply(void 0, arguments); + }; + })); }, FullscreenApi = { prefixed: !0 }, apiMap = [ @@ -568,15 +576,15 @@ }; }, debounce = function(func, wait, immediate, context) { void 0 === context && (context = global_window__WEBPACK_IMPORTED_MODULE_0___default()); - var timeout, debounced = function() { + var timeout, cancel = function() { + context.clearTimeout(timeout), timeout = null; + }, debounced = function() { var self1 = this, args = arguments, _later = function() { timeout = null, _later = null, immediate || func.apply(self1, args); }; !timeout && immediate && func.apply(self1, args), context.clearTimeout(timeout), timeout = context.setTimeout(_later, wait); }; - return debounced.cancel = function() { - context.clearTimeout(timeout), timeout = null; - }, debounced; + return debounced.cancel = cancel, debounced; }, EventTarget$2 = function() {}; EventTarget$2.prototype.allowedEvents_ = {}, EventTarget$2.prototype.on = function(type, fn) { var ael = this.addEventListener; @@ -1600,10 +1608,10 @@ ("metadata" === settings.kind || "chapters" === settings.kind) && (mode = "hidden"), (_this = _Track.call(this, settings) || this).tech_ = settings.tech, _this.cues_ = [], _this.activeCues_ = [], _this.preload_ = !1 !== _this.tech_.preloadTextTracks; var cues = new TextTrackCueList(_this.cues_), activeCues = new TextTrackCueList(_this.activeCues_), changed = !1, timeupdateHandler = bind((0, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_17__.Z)(_this), function() { !(!this.tech_.isReady_ || this.tech_.isDisposed()) && (this.activeCues = this.activeCues, changed && (this.trigger("cuechange"), changed = !1)); - }); - return _this.tech_.one("dispose", function() { + }), disposeHandler = function() { _this.tech_.off("timeupdate", timeupdateHandler); - }), "disabled" !== mode && _this.tech_.on("timeupdate", timeupdateHandler), Object.defineProperties((0, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_17__.Z)(_this), { + }; + return _this.tech_.one("dispose", disposeHandler), "disabled" !== mode && _this.tech_.on("timeupdate", timeupdateHandler), Object.defineProperties((0, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_17__.Z)(_this), { default: { get: function() { return default_; @@ -5517,10 +5525,10 @@ }, _proto.handleTechWaiting_ = function() { var _this8 = this; this.addClass("vjs-waiting"), this.trigger("waiting"); - var timeWhenWaiting = this.currentTime(); - this.on("timeupdate", function timeUpdateListener() { + var timeWhenWaiting = this.currentTime(), timeUpdateListener = function timeUpdateListener() { timeWhenWaiting !== _this8.currentTime() && (_this8.removeClass("vjs-waiting"), _this8.off("timeupdate", timeUpdateListener)); - }); + }; + this.on("timeupdate", timeUpdateListener); }, _proto.handleTechCanPlay_ = function() { this.removeClass("vjs-waiting"), this.trigger("canplay"); }, _proto.handleTechCanPlayThrough_ = function() { @@ -6020,14 +6028,14 @@ }), this.userActivity_ = !1, this.removeClass("vjs-user-active"), this.addClass("vjs-user-inactive"), this.trigger("userinactive"); } }, _proto.listenForUserActivity_ = function() { - var mouseInProgress, lastMoveX, lastMoveY, inactivityTimeout, handleActivity = bind(this, this.reportUserActivity), handleMouseUpAndMouseLeave = function(event) { + var mouseInProgress, lastMoveX, lastMoveY, inactivityTimeout, handleActivity = bind(this, this.reportUserActivity), handleMouseMove = function(e) { + (e.screenX !== lastMoveX || e.screenY !== lastMoveY) && (lastMoveX = e.screenX, lastMoveY = e.screenY, handleActivity()); + }, handleMouseDown = function() { + handleActivity(), this.clearInterval(mouseInProgress), mouseInProgress = this.setInterval(handleActivity, 250); + }, handleMouseUpAndMouseLeave = function(event) { handleActivity(), this.clearInterval(mouseInProgress); }; - this.on("mousedown", function() { - handleActivity(), this.clearInterval(mouseInProgress), mouseInProgress = this.setInterval(handleActivity, 250); - }), this.on("mousemove", function(e) { - (e.screenX !== lastMoveX || e.screenY !== lastMoveY) && (lastMoveX = e.screenX, lastMoveY = e.screenY, handleActivity()); - }), this.on("mouseup", handleMouseUpAndMouseLeave), this.on("mouseleave", handleMouseUpAndMouseLeave); + this.on("mousedown", handleMouseDown), this.on("mousemove", handleMouseMove), this.on("mouseup", handleMouseUpAndMouseLeave), this.on("mouseleave", handleMouseUpAndMouseLeave); var controlBar = this.getChild("controlBar"); !controlBar || IS_IOS || IS_ANDROID || (controlBar.on("mouseenter", function(event) { 0 !== this.player().options_.inactivityTimeout && (this.player().cache_.inactivityTimeout = this.player().options_.inactivityTimeout), this.player().options_.inactivityTimeout = 0; @@ -6307,7 +6315,14 @@ }, Player.prototype.hasPlugin = function(name) { return !!pluginExists(name); }; - var normalizeId = function(id) { + var extend = function(superClass, subClassMethods) { + void 0 === subClassMethods && (subClassMethods = {}); + var subClass = function() { + superClass.apply(this, arguments); + }, methods = {}; + for(var name in "object" == typeof subClassMethods ? (subClassMethods.constructor !== Object.prototype.constructor && (subClass = subClassMethods.constructor), methods = subClassMethods) : "function" == typeof subClassMethods && (subClass = subClassMethods), (0, _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_19__.Z)(subClass, superClass), superClass && (subClass.super_ = superClass), methods)methods.hasOwnProperty(name) && (subClass.prototype[name] = methods[name]); + return subClass; + }, normalizeId = function(id) { return 0 === id.indexOf("#") ? id.slice(1) : id; }; function videojs(id, options, ready) { @@ -6326,15 +6341,7 @@ return hookFunction(player); }), player; } - if (videojs.hooks_ = hooks_, videojs.hooks = hooks, videojs.hook = function(type, fn) { - hooks(type, fn); - }, videojs.hookOnce = function(type, fn) { - hooks(type, [].concat(fn).map(function(original) { - return function wrapper() { - return removeHook(type, wrapper), original.apply(void 0, arguments); - }; - })); - }, videojs.removeHook = removeHook, !0 !== global_window__WEBPACK_IMPORTED_MODULE_0___default().VIDEOJS_NO_DYNAMIC_STYLE && isReal()) { + if (videojs.hooks_ = hooks_, videojs.hooks = hooks, videojs.hook = hook, videojs.hookOnce = hookOnce, videojs.removeHook = removeHook, !0 !== global_window__WEBPACK_IMPORTED_MODULE_0___default().VIDEOJS_NO_DYNAMIC_STYLE && isReal()) { var style = $(".vjs-styles-defaults"); if (!style) { style = createStyleElement("vjs-styles-defaults"); @@ -6371,14 +6378,7 @@ value: TERMINATOR, writeable: !1, enumerable: !0 - }), videojs.browser = browser, videojs.TOUCH_ENABLED = TOUCH_ENABLED, videojs.extend = function(superClass, subClassMethods) { - void 0 === subClassMethods && (subClassMethods = {}); - var subClass = function() { - superClass.apply(this, arguments); - }, methods = {}; - for(var name in "object" == typeof subClassMethods ? (subClassMethods.constructor !== Object.prototype.constructor && (subClass = subClassMethods.constructor), methods = subClassMethods) : "function" == typeof subClassMethods && (subClass = subClassMethods), (0, _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_19__.Z)(subClass, superClass), superClass && (subClass.super_ = superClass), methods)methods.hasOwnProperty(name) && (subClass.prototype[name] = methods[name]); - return subClass; - }, videojs.mergeOptions = mergeOptions$3, videojs.bind = bind, videojs.registerPlugin = Plugin.registerPlugin, videojs.deregisterPlugin = Plugin.deregisterPlugin, videojs.plugin = function(name, plugin) { + }), videojs.browser = browser, videojs.TOUCH_ENABLED = TOUCH_ENABLED, videojs.extend = extend, videojs.mergeOptions = mergeOptions$3, videojs.bind = bind, videojs.registerPlugin = Plugin.registerPlugin, videojs.deregisterPlugin = Plugin.deregisterPlugin, videojs.plugin = function(name, plugin) { return log$1.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"), Plugin.registerPlugin(name, plugin); }, videojs.getPlugins = Plugin.getPlugins, videojs.getPlugin = Plugin.getPlugin, videojs.getPluginVersion = Plugin.getPluginVersion, videojs.addLanguage = function(code, data) { var _mergeOptions; @@ -6608,6 +6608,69 @@ expired = expired || 0; var lastSegmentEndTime = intervalDuration(playlist, playlist.mediaSequence + playlist.segments.length, expired); return useSafeLiveEnd && (liveEdgePadding = "number" == typeof liveEdgePadding ? liveEdgePadding : liveEdgeDelay(null, playlist), lastSegmentEndTime -= liveEdgePadding), Math.max(0, lastSegmentEndTime); + }, seekable = function(playlist, expired, liveEdgePadding) { + var seekableEnd = playlistEnd(playlist, expired, !0, liveEdgePadding); + return null === seekableEnd ? createTimeRange() : createTimeRange(expired || 0, seekableEnd); + }, getMediaInfoForTime = function(_ref4) { + for(var playlist = _ref4.playlist, currentTime = _ref4.currentTime, startingSegmentIndex = _ref4.startingSegmentIndex, startingPartIndex = _ref4.startingPartIndex, startTime = _ref4.startTime, experimentalExactManifestTimings = _ref4.experimentalExactManifestTimings, time = currentTime - startTime, partsAndSegments = getPartsAndSegments(playlist), startIndex = 0, i = 0; i < partsAndSegments.length; i++){ + var partAndSegment = partsAndSegments[i]; + if (startingSegmentIndex === partAndSegment.segmentIndex && ("number" != typeof startingPartIndex || "number" != typeof partAndSegment.partIndex || startingPartIndex === partAndSegment.partIndex)) { + startIndex = i; + break; + } + } + if (time < 0) { + if (startIndex > 0) for(var _i2 = startIndex - 1; _i2 >= 0; _i2--){ + var _partAndSegment = partsAndSegments[_i2]; + if (time += _partAndSegment.duration, experimentalExactManifestTimings) { + if (time < 0) continue; + } else if (time + TIME_FUDGE_FACTOR <= 0) continue; + return { + partIndex: _partAndSegment.partIndex, + segmentIndex: _partAndSegment.segmentIndex, + startTime: startTime - sumDurations({ + defaultDuration: playlist.targetDuration, + durationList: partsAndSegments, + startIndex: startIndex, + endIndex: _i2 + }) + }; + } + return { + partIndex: partsAndSegments[0] && partsAndSegments[0].partIndex || null, + segmentIndex: partsAndSegments[0] && partsAndSegments[0].segmentIndex || 0, + startTime: currentTime + }; + } + if (startIndex < 0) { + for(var _i3 = startIndex; _i3 < 0; _i3++)if ((time -= playlist.targetDuration) < 0) return { + partIndex: partsAndSegments[0] && partsAndSegments[0].partIndex || null, + segmentIndex: partsAndSegments[0] && partsAndSegments[0].segmentIndex || 0, + startTime: currentTime + }; + startIndex = 0; + } + for(var _i4 = startIndex; _i4 < partsAndSegments.length; _i4++){ + var _partAndSegment2 = partsAndSegments[_i4]; + if (time -= _partAndSegment2.duration, experimentalExactManifestTimings) { + if (time > 0) continue; + } else if (time - TIME_FUDGE_FACTOR >= 0) continue; + return { + partIndex: _partAndSegment2.partIndex, + segmentIndex: _partAndSegment2.segmentIndex, + startTime: startTime + sumDurations({ + defaultDuration: playlist.targetDuration, + durationList: partsAndSegments, + startIndex: startIndex, + endIndex: _i4 + }) + }; + } + return { + segmentIndex: partsAndSegments[partsAndSegments.length - 1].segmentIndex, + partIndex: partsAndSegments[partsAndSegments.length - 1].partIndex, + startTime: currentTime + }; }, isBlacklisted = function(playlist) { return playlist.excludeUntil && playlist.excludeUntil > Date.now(); }, isIncompatible = function(playlist) { @@ -6617,6 +6680,8 @@ return !playlist.disabled && !blacklisted; }, hasAttribute = function(attr, playlist) { return playlist.attributes && playlist.attributes[attr]; + }, estimateSegmentRequestTime = function(segmentDuration, bandwidth, playlist, bytesReceived) { + return (void 0 === bytesReceived && (bytesReceived = 0), hasAttribute("BANDWIDTH", playlist)) ? (segmentDuration * playlist.attributes.BANDWIDTH - 8 * bytesReceived) / bandwidth : NaN; }, isLowestEnabledRendition = function(master, media) { if (1 === master.playlists.length) return !0; var currentBandwidth = media.attributes.BANDWIDTH || Number.MAX_VALUE; @@ -6653,71 +6718,8 @@ }, Playlist = { liveEdgeDelay: liveEdgeDelay, duration: duration, - seekable: function(playlist, expired, liveEdgePadding) { - var seekableEnd = playlistEnd(playlist, expired, !0, liveEdgePadding); - return null === seekableEnd ? createTimeRange() : createTimeRange(expired || 0, seekableEnd); - }, - getMediaInfoForTime: function(_ref4) { - for(var playlist = _ref4.playlist, currentTime = _ref4.currentTime, startingSegmentIndex = _ref4.startingSegmentIndex, startingPartIndex = _ref4.startingPartIndex, startTime = _ref4.startTime, experimentalExactManifestTimings = _ref4.experimentalExactManifestTimings, time = currentTime - startTime, partsAndSegments = getPartsAndSegments(playlist), startIndex = 0, i = 0; i < partsAndSegments.length; i++){ - var partAndSegment = partsAndSegments[i]; - if (startingSegmentIndex === partAndSegment.segmentIndex && ("number" != typeof startingPartIndex || "number" != typeof partAndSegment.partIndex || startingPartIndex === partAndSegment.partIndex)) { - startIndex = i; - break; - } - } - if (time < 0) { - if (startIndex > 0) for(var _i2 = startIndex - 1; _i2 >= 0; _i2--){ - var _partAndSegment = partsAndSegments[_i2]; - if (time += _partAndSegment.duration, experimentalExactManifestTimings) { - if (time < 0) continue; - } else if (time + TIME_FUDGE_FACTOR <= 0) continue; - return { - partIndex: _partAndSegment.partIndex, - segmentIndex: _partAndSegment.segmentIndex, - startTime: startTime - sumDurations({ - defaultDuration: playlist.targetDuration, - durationList: partsAndSegments, - startIndex: startIndex, - endIndex: _i2 - }) - }; - } - return { - partIndex: partsAndSegments[0] && partsAndSegments[0].partIndex || null, - segmentIndex: partsAndSegments[0] && partsAndSegments[0].segmentIndex || 0, - startTime: currentTime - }; - } - if (startIndex < 0) { - for(var _i3 = startIndex; _i3 < 0; _i3++)if ((time -= playlist.targetDuration) < 0) return { - partIndex: partsAndSegments[0] && partsAndSegments[0].partIndex || null, - segmentIndex: partsAndSegments[0] && partsAndSegments[0].segmentIndex || 0, - startTime: currentTime - }; - startIndex = 0; - } - for(var _i4 = startIndex; _i4 < partsAndSegments.length; _i4++){ - var _partAndSegment2 = partsAndSegments[_i4]; - if (time -= _partAndSegment2.duration, experimentalExactManifestTimings) { - if (time > 0) continue; - } else if (time - TIME_FUDGE_FACTOR >= 0) continue; - return { - partIndex: _partAndSegment2.partIndex, - segmentIndex: _partAndSegment2.segmentIndex, - startTime: startTime + sumDurations({ - defaultDuration: playlist.targetDuration, - durationList: partsAndSegments, - startIndex: startIndex, - endIndex: _i4 - }) - }; - } - return { - segmentIndex: partsAndSegments[partsAndSegments.length - 1].segmentIndex, - partIndex: partsAndSegments[partsAndSegments.length - 1].partIndex, - startTime: currentTime - }; - }, + seekable: seekable, + getMediaInfoForTime: getMediaInfoForTime, isEnabled: isEnabled, isDisabled: function(playlist) { return playlist.disabled; @@ -6730,9 +6732,7 @@ return !1; }, hasAttribute: hasAttribute, - estimateSegmentRequestTime: function(segmentDuration, bandwidth, playlist, bytesReceived) { - return (void 0 === bytesReceived && (bytesReceived = 0), hasAttribute("BANDWIDTH", playlist)) ? (segmentDuration * playlist.attributes.BANDWIDTH - 8 * bytesReceived) / bandwidth : NaN; - }, + estimateSegmentRequestTime: estimateSegmentRequestTime, isLowestEnabledRendition: isLowestEnabledRendition, isAudioOnly: isAudioOnly, playlistMatch: playlistMatch, @@ -7157,15 +7157,15 @@ }, hexDump = function(data) { for(var hex, ascii, bytes = Array.prototype.slice.call(data), result = "", j = 0; j < bytes.length / 16; j++)hex = bytes.slice(16 * j, 16 * j + 16).map(formatHexString).join(""), ascii = bytes.slice(16 * j, 16 * j + 16).map(formatAsciiString).join(""), result += hex + " " + ascii + "\n"; return result; + }, tagDump = function(_ref) { + return hexDump(_ref.bytes); }, utils = Object.freeze({ __proto__: null, createTransferableMessage: createTransferableMessage, initSegmentId: initSegmentId, segmentKeyId: segmentKeyId, hexDump: hexDump, - tagDump: function(_ref) { - return hexDump(_ref.bytes); - }, + tagDump: tagDump, textRanges: function(ranges) { var range, i, i1, result = ""; for(i1 = 0; i1 < ranges.length; i1++)result += (range = ranges, i = i1, range.start(i) + "-" + range.end(i) + " "); @@ -7267,10 +7267,10 @@ callback: callback }); })); - var seekToTime = segment.start + mediaOffset; - tech.one("seeked", function() { + var seekToTime = segment.start + mediaOffset, seekedCallback = function() { return callback(null, tech.currentTime()); - }), pauseAfterSeek && tech.pause(), seekTo(seekToTime); + }; + tech.one("seeked", seekedCallback), pauseAfterSeek && tech.pause(), seekTo(seekToTime); }, callbackOnCompleted = function(request, cb) { if (4 === request.readyState) return cb(); }, containerRequest = function(uri, xhr, cb) { @@ -9930,6 +9930,24 @@ var i, result = ""; for(i = start; i < end; i++)result += "%" + ("00" + bytes[i].toString(16)).slice(-2); return result; + }, parseAacTimestamp = function(packet) { + var frameStart, frameSize, frame; + frameStart = 10, 0x40 & packet[5] && (frameStart += 4, frameStart += parseSyncSafeInteger(packet.subarray(10, 14))); + do { + if ((frameSize = parseSyncSafeInteger(packet.subarray(frameStart + 4, frameStart + 8))) < 1) break; + if ("PRIV" === String.fromCharCode(packet[frameStart], packet[frameStart + 1], packet[frameStart + 2], packet[frameStart + 3])) { + frame = packet.subarray(frameStart + 10, frameStart + frameSize + 10); + for(var i = 0; i < frame.byteLength; i++)if (0 === frame[i]) { + if ("com.apple.streaming.transportStreamTimestamp" === unescape(percentEncode(frame, 0, i))) { + var d = frame.subarray(i + 1), size = (0x01 & d[3]) << 30 | d[4] << 22 | d[5] << 14 | d[6] << 6 | d[7] >>> 2; + return size *= 4, size += 0x03 & d[7]; + } + break; + } + } + frameStart += 10, frameStart += frameSize; + }while (frameStart < packet.byteLength) + return null; }, utils = { isLikelyAacData: function(data) { var offset = function getId3Offset(data, offset) { @@ -9955,25 +9973,7 @@ } return null; }, - parseAacTimestamp: function(packet) { - var frameStart, frameSize, frame; - frameStart = 10, 0x40 & packet[5] && (frameStart += 4, frameStart += parseSyncSafeInteger(packet.subarray(10, 14))); - do { - if ((frameSize = parseSyncSafeInteger(packet.subarray(frameStart + 4, frameStart + 8))) < 1) break; - if ("PRIV" === String.fromCharCode(packet[frameStart], packet[frameStart + 1], packet[frameStart + 2], packet[frameStart + 3])) { - frame = packet.subarray(frameStart + 10, frameStart + frameSize + 10); - for(var i = 0; i < frame.byteLength; i++)if (0 === frame[i]) { - if ("com.apple.streaming.transportStreamTimestamp" === unescape(percentEncode(frame, 0, i))) { - var d = frame.subarray(i + 1), size = (0x01 & d[3]) << 30 | d[4] << 22 | d[5] << 14 | d[6] << 6 | d[7] >>> 2; - return size *= 4, size += 0x03 & d[7]; - } - break; - } - } - frameStart += 10, frameStart += frameSize; - }while (frameStart < packet.byteLength) - return null; - } + parseAacTimestamp: parseAacTimestamp }; (_AacStream = function() { var everything = new Uint8Array(), timeStamp = 0; @@ -10572,6 +10572,40 @@ }, parseAdaptionField = function(packet) { var offset = 0; return (0x30 & packet[3]) >>> 4 > 0x01 && (offset += packet[4] + 1), offset; + }, parseType = function(packet, pmtPid) { + var pid = parsePid(packet); + return 0 === pid ? "pat" : pid === pmtPid ? "pmt" : pmtPid ? "pes" : null; + }, parsePat = function(packet) { + var pusi = parsePayloadUnitStartIndicator(packet), offset = 4 + parseAdaptionField(packet); + return pusi && (offset += packet[offset] + 1), (0x1f & packet[offset + 10]) << 8 | packet[offset + 11]; + }, parsePmt = function(packet) { + var tableEnd, programInfoLength, programMapTable = {}, pusi = parsePayloadUnitStartIndicator(packet), payloadOffset = 4 + parseAdaptionField(packet); + if (pusi && (payloadOffset += packet[payloadOffset] + 1), 0x01 & packet[payloadOffset + 5]) { + tableEnd = 3 + ((0x0f & packet[payloadOffset + 1]) << 8 | packet[payloadOffset + 2]) - 4, programInfoLength = (0x0f & packet[payloadOffset + 10]) << 8 | packet[payloadOffset + 11]; + for(var offset = 12 + programInfoLength; offset < tableEnd;){ + var i = payloadOffset + offset; + programMapTable[(0x1f & packet[i + 1]) << 8 | packet[i + 2]] = packet[i], offset += ((0x0f & packet[i + 3]) << 8 | packet[i + 4]) + 5; + } + return programMapTable; + } + }, parsePesType = function(packet, programMapTable) { + var type = programMapTable[parsePid(packet)]; + switch(type){ + case streamTypes.H264_STREAM_TYPE: + return "video"; + case streamTypes.ADTS_STREAM_TYPE: + return "audio"; + case streamTypes.METADATA_STREAM_TYPE: + return "timed-metadata"; + default: + return null; + } + }, parsePesTime = function(packet) { + if (!parsePayloadUnitStartIndicator(packet)) return null; + var ptsDtsFlags, offset = 4 + parseAdaptionField(packet); + if (offset >= packet.byteLength) return null; + var pes = null; + return 0xc0 & (ptsDtsFlags = packet[offset + 7]) && ((pes = {}).pts = (0x0e & packet[offset + 9]) << 27 | (0xff & packet[offset + 10]) << 20 | (0xfe & packet[offset + 11]) << 12 | (0xff & packet[offset + 12]) << 5 | (0xfe & packet[offset + 13]) >>> 3, pes.pts *= 4, pes.pts += (0x06 & packet[offset + 13]) >>> 1, pes.dts = pes.pts, 0x40 & ptsDtsFlags && (pes.dts = (0x0e & packet[offset + 14]) << 27 | (0xff & packet[offset + 15]) << 20 | (0xfe & packet[offset + 16]) << 12 | (0xff & packet[offset + 17]) << 5 | (0xfe & packet[offset + 18]) >>> 3, pes.dts *= 4, pes.dts += (0x06 & packet[offset + 18]) >>> 1)), pes; }, parseNalUnitType = function(type) { switch(type){ case 0x05: @@ -10587,80 +10621,46 @@ default: return null; } + }, videoPacketContainsKeyFrame = function(packet) { + for(var offset = 4 + parseAdaptionField(packet), frameBuffer = packet.subarray(offset), frameI = 0, frameSyncPoint = 0, foundKeyFrame = !1; frameSyncPoint < frameBuffer.byteLength - 3; frameSyncPoint++)if (1 === frameBuffer[frameSyncPoint + 2]) { + frameI = frameSyncPoint + 5; + break; + } + for(; frameI < frameBuffer.byteLength;)switch(frameBuffer[frameI]){ + case 0: + if (0 !== frameBuffer[frameI - 1]) { + frameI += 2; + break; + } + if (0 !== frameBuffer[frameI - 2]) { + frameI++; + break; + } + frameSyncPoint + 3 !== frameI - 2 && "slice_layer_without_partitioning_rbsp_idr" === parseNalUnitType(0x1f & frameBuffer[frameSyncPoint + 3]) && (foundKeyFrame = !0); + do frameI++; + while (1 !== frameBuffer[frameI] && frameI < frameBuffer.length) + frameSyncPoint = frameI - 2, frameI += 3; + break; + case 1: + if (0 !== frameBuffer[frameI - 1] || 0 !== frameBuffer[frameI - 2]) { + frameI += 3; + break; + } + "slice_layer_without_partitioning_rbsp_idr" === parseNalUnitType(0x1f & frameBuffer[frameSyncPoint + 3]) && (foundKeyFrame = !0), frameSyncPoint = frameI - 2, frameI += 3; + break; + default: + frameI += 3; + } + return frameBuffer = frameBuffer.subarray(frameSyncPoint), frameI -= frameSyncPoint, frameSyncPoint = 0, frameBuffer && frameBuffer.byteLength > 3 && "slice_layer_without_partitioning_rbsp_idr" === parseNalUnitType(0x1f & frameBuffer[frameSyncPoint + 3]) && (foundKeyFrame = !0), foundKeyFrame; }, handleRollover = timestampRolloverStream.handleRollover, probe = {}; probe.ts = { - parseType: function(packet, pmtPid) { - var pid = parsePid(packet); - return 0 === pid ? "pat" : pid === pmtPid ? "pmt" : pmtPid ? "pes" : null; - }, - parsePat: function(packet) { - var pusi = parsePayloadUnitStartIndicator(packet), offset = 4 + parseAdaptionField(packet); - return pusi && (offset += packet[offset] + 1), (0x1f & packet[offset + 10]) << 8 | packet[offset + 11]; - }, - parsePmt: function(packet) { - var tableEnd, programInfoLength, programMapTable = {}, pusi = parsePayloadUnitStartIndicator(packet), payloadOffset = 4 + parseAdaptionField(packet); - if (pusi && (payloadOffset += packet[payloadOffset] + 1), 0x01 & packet[payloadOffset + 5]) { - tableEnd = 3 + ((0x0f & packet[payloadOffset + 1]) << 8 | packet[payloadOffset + 2]) - 4, programInfoLength = (0x0f & packet[payloadOffset + 10]) << 8 | packet[payloadOffset + 11]; - for(var offset = 12 + programInfoLength; offset < tableEnd;){ - var i = payloadOffset + offset; - programMapTable[(0x1f & packet[i + 1]) << 8 | packet[i + 2]] = packet[i], offset += ((0x0f & packet[i + 3]) << 8 | packet[i + 4]) + 5; - } - return programMapTable; - } - }, + parseType: parseType, + parsePat: parsePat, + parsePmt: parsePmt, parsePayloadUnitStartIndicator: parsePayloadUnitStartIndicator, - parsePesType: function(packet, programMapTable) { - var type = programMapTable[parsePid(packet)]; - switch(type){ - case streamTypes.H264_STREAM_TYPE: - return "video"; - case streamTypes.ADTS_STREAM_TYPE: - return "audio"; - case streamTypes.METADATA_STREAM_TYPE: - return "timed-metadata"; - default: - return null; - } - }, - parsePesTime: function(packet) { - if (!parsePayloadUnitStartIndicator(packet)) return null; - var ptsDtsFlags, offset = 4 + parseAdaptionField(packet); - if (offset >= packet.byteLength) return null; - var pes = null; - return 0xc0 & (ptsDtsFlags = packet[offset + 7]) && ((pes = {}).pts = (0x0e & packet[offset + 9]) << 27 | (0xff & packet[offset + 10]) << 20 | (0xfe & packet[offset + 11]) << 12 | (0xff & packet[offset + 12]) << 5 | (0xfe & packet[offset + 13]) >>> 3, pes.pts *= 4, pes.pts += (0x06 & packet[offset + 13]) >>> 1, pes.dts = pes.pts, 0x40 & ptsDtsFlags && (pes.dts = (0x0e & packet[offset + 14]) << 27 | (0xff & packet[offset + 15]) << 20 | (0xfe & packet[offset + 16]) << 12 | (0xff & packet[offset + 17]) << 5 | (0xfe & packet[offset + 18]) >>> 3, pes.dts *= 4, pes.dts += (0x06 & packet[offset + 18]) >>> 1)), pes; - }, - videoPacketContainsKeyFrame: function(packet) { - for(var offset = 4 + parseAdaptionField(packet), frameBuffer = packet.subarray(offset), frameI = 0, frameSyncPoint = 0, foundKeyFrame = !1; frameSyncPoint < frameBuffer.byteLength - 3; frameSyncPoint++)if (1 === frameBuffer[frameSyncPoint + 2]) { - frameI = frameSyncPoint + 5; - break; - } - for(; frameI < frameBuffer.byteLength;)switch(frameBuffer[frameI]){ - case 0: - if (0 !== frameBuffer[frameI - 1]) { - frameI += 2; - break; - } - if (0 !== frameBuffer[frameI - 2]) { - frameI++; - break; - } - frameSyncPoint + 3 !== frameI - 2 && "slice_layer_without_partitioning_rbsp_idr" === parseNalUnitType(0x1f & frameBuffer[frameSyncPoint + 3]) && (foundKeyFrame = !0); - do frameI++; - while (1 !== frameBuffer[frameI] && frameI < frameBuffer.length) - frameSyncPoint = frameI - 2, frameI += 3; - break; - case 1: - if (0 !== frameBuffer[frameI - 1] || 0 !== frameBuffer[frameI - 2]) { - frameI += 3; - break; - } - "slice_layer_without_partitioning_rbsp_idr" === parseNalUnitType(0x1f & frameBuffer[frameSyncPoint + 3]) && (foundKeyFrame = !0), frameSyncPoint = frameI - 2, frameI += 3; - break; - default: - frameI += 3; - } - return frameBuffer = frameBuffer.subarray(frameSyncPoint), frameI -= frameSyncPoint, frameSyncPoint = 0, frameBuffer && frameBuffer.byteLength > 3 && "slice_layer_without_partitioning_rbsp_idr" === parseNalUnitType(0x1f & frameBuffer[frameSyncPoint + 3]) && (foundKeyFrame = !0), foundKeyFrame; - } + parsePesType: parsePesType, + parsePesTime: parsePesTime, + videoPacketContainsKeyFrame: videoPacketContainsKeyFrame }, probe.aac = utils; var ONE_SECOND_IN_TS = clock.ONE_SECOND_IN_TS, MP2T_PACKET_LENGTH = 188, parsePsi_ = function(bytes, pmt) { for(var packet, startIndex = 0, endIndex = MP2T_PACKET_LENGTH; endIndex < bytes.byteLength;){ @@ -11008,15 +11008,15 @@ }, processTransmux = function(options) { var transmuxer = options.transmuxer, bytes = options.bytes, audioAppendStart = options.audioAppendStart, gopsToAlignWith = options.gopsToAlignWith, remux = options.remux, onData = options.onData, onTrackInfo = options.onTrackInfo, onAudioTimingInfo = options.onAudioTimingInfo, onVideoTimingInfo = options.onVideoTimingInfo, onVideoSegmentTimingInfo = options.onVideoSegmentTimingInfo, onAudioSegmentTimingInfo = options.onAudioSegmentTimingInfo, onId3 = options.onId3, onCaptions = options.onCaptions, onDone = options.onDone, onEndedTimeline = options.onEndedTimeline, onTransmuxerLog = options.onTransmuxerLog, isEndOfTimeline = options.isEndOfTimeline, transmuxedData = { buffer: [] - }, waitForEndedTimelineEvent = isEndOfTimeline; - if (transmuxer.onmessage = function(event) { + }, waitForEndedTimelineEvent = isEndOfTimeline, handleMessage = function(event) { transmuxer.currentTransmux === options && ("data" === event.data.action && handleData_(event, transmuxedData, onData), "trackinfo" === event.data.action && onTrackInfo(event.data.trackInfo), "gopInfo" === event.data.action && handleGopInfo_(event, transmuxedData), "audioTimingInfo" === event.data.action && onAudioTimingInfo(event.data.audioTimingInfo), "videoTimingInfo" === event.data.action && onVideoTimingInfo(event.data.videoTimingInfo), "videoSegmentTimingInfo" === event.data.action && onVideoSegmentTimingInfo(event.data.videoSegmentTimingInfo), "audioSegmentTimingInfo" === event.data.action && onAudioSegmentTimingInfo(event.data.audioSegmentTimingInfo), "id3Frame" === event.data.action && onId3([ event.data.id3Frame ], event.data.id3Frame.dispatchType), "caption" === event.data.action && onCaptions(event.data.caption), "endedtimeline" === event.data.action && (waitForEndedTimelineEvent = !1, onEndedTimeline()), "log" === event.data.action && onTransmuxerLog(event.data.log), "transmuxed" !== event.data.type || waitForEndedTimelineEvent || (transmuxer.onmessage = null, handleDone_({ transmuxedData: transmuxedData, callback: onDone }), dequeue(transmuxer))); - }, audioAppendStart && transmuxer.postMessage({ + }; + if (transmuxer.onmessage = handleMessage, audioAppendStart && transmuxer.postMessage({ action: "setAudioAppendStart", appendStart: audioAppendStart }), Array.isArray(gopsToAlignWith) && transmuxer.postMessage({ @@ -11053,40 +11053,40 @@ return; } transmuxer.transmuxQueue.push(processAction.bind(null, transmuxer, action)); + }, reset = function(transmuxer) { + enqueueAction("reset", transmuxer); + }, endTimeline = function(transmuxer) { + enqueueAction("endTimeline", transmuxer); }, transmux = function(options) { if (!options.transmuxer.currentTransmux) { options.transmuxer.currentTransmux = options, processTransmux(options); return; } options.transmuxer.transmuxQueue.push(options); + }, createTransmuxer = function(options) { + var transmuxer = new TransmuxWorker(); + transmuxer.currentTransmux = null, transmuxer.transmuxQueue = []; + var term = transmuxer.terminate; + return transmuxer.terminate = function() { + return transmuxer.currentTransmux = null, transmuxer.transmuxQueue.length = 0, term.call(transmuxer); + }, transmuxer.postMessage({ + action: "init", + options: options + }), transmuxer; }, segmentTransmuxer = { - reset: function(transmuxer) { - enqueueAction("reset", transmuxer); - }, - endTimeline: function(transmuxer) { - enqueueAction("endTimeline", transmuxer); - }, + reset: reset, + endTimeline: endTimeline, transmux: transmux, - createTransmuxer: function(options) { - var transmuxer = new TransmuxWorker(); - transmuxer.currentTransmux = null, transmuxer.transmuxQueue = []; - var term = transmuxer.terminate; - return transmuxer.terminate = function() { - return transmuxer.currentTransmux = null, transmuxer.transmuxQueue.length = 0, term.call(transmuxer); - }, transmuxer.postMessage({ - action: "init", - options: options - }), transmuxer; - } + createTransmuxer: createTransmuxer }, workerCallback = function(options) { var transmuxer = options.transmuxer, endAction = options.endAction || options.action, callback = options.callback, message = (0, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_15__.Z)({}, options, { endAction: null, transmuxer: null, callback: null - }); - if (transmuxer.addEventListener("message", function listenForEndEvent(event) { + }), listenForEndEvent = function listenForEndEvent(event) { event.data.action === endAction && (transmuxer.removeEventListener("message", listenForEndEvent), event.data.data && (event.data.data = new Uint8Array(event.data.data, options.byteOffset || 0, options.byteLength || event.data.data.byteLength), options.data && (options.data = event.data.data)), callback(event.data)); - }), options.data) { + }; + if (transmuxer.addEventListener("message", listenForEndEvent), options.data) { var isArrayBuffer = options.data instanceof ArrayBuffer; message.byteOffset = isArrayBuffer ? 0 : options.data.byteOffset, message.byteLength = options.data.byteLength; var transfers = [ @@ -11323,14 +11323,14 @@ onTransmuxerLog: onTransmuxerLog }); }, decrypt = function(_ref7, callback) { - var keyBytes, id = _ref7.id, key = _ref7.key, encryptedBytes = _ref7.encryptedBytes, decryptionWorker = _ref7.decryptionWorker; - decryptionWorker.addEventListener("message", function decryptionHandler(event) { + var keyBytes, id = _ref7.id, key = _ref7.key, encryptedBytes = _ref7.encryptedBytes, decryptionWorker = _ref7.decryptionWorker, decryptionHandler = function decryptionHandler(event) { if (event.data.source === id) { decryptionWorker.removeEventListener("message", decryptionHandler); var decrypted = event.data.decrypted; callback(new Uint8Array(decrypted.bytes, decrypted.byteOffset, decrypted.byteLength)); } - }), keyBytes = key.bytes.slice ? key.bytes.slice() : new Uint32Array(Array.prototype.slice.call(key.bytes)), decryptionWorker.postMessage(createTransferableMessage({ + }; + decryptionWorker.addEventListener("message", decryptionHandler), keyBytes = key.bytes.slice ? key.bytes.slice() : new Uint32Array(Array.prototype.slice.call(key.bytes)), decryptionWorker.postMessage(createTransferableMessage({ source: id, encrypted: encryptedBytes, key: keyBytes, @@ -11561,6 +11561,9 @@ }, comparePlaylistBandwidth = function(left, right) { var leftBandwidth, rightBandwidth; return left.attributes.BANDWIDTH && (leftBandwidth = left.attributes.BANDWIDTH), leftBandwidth = leftBandwidth || global_window__WEBPACK_IMPORTED_MODULE_0___default().Number.MAX_VALUE, right.attributes.BANDWIDTH && (rightBandwidth = right.attributes.BANDWIDTH), rightBandwidth = rightBandwidth || global_window__WEBPACK_IMPORTED_MODULE_0___default().Number.MAX_VALUE, leftBandwidth - rightBandwidth; + }, comparePlaylistResolution = function(left, right) { + var leftWidth, rightWidth; + return (left.attributes.RESOLUTION && left.attributes.RESOLUTION.width && (leftWidth = left.attributes.RESOLUTION.width), leftWidth = leftWidth || global_window__WEBPACK_IMPORTED_MODULE_0___default().Number.MAX_VALUE, right.attributes.RESOLUTION && right.attributes.RESOLUTION.width && (rightWidth = right.attributes.RESOLUTION.width), rightWidth = rightWidth || global_window__WEBPACK_IMPORTED_MODULE_0___default().Number.MAX_VALUE, leftWidth === rightWidth && left.attributes.BANDWIDTH && right.attributes.BANDWIDTH) ? left.attributes.BANDWIDTH - right.attributes.BANDWIDTH : leftWidth - rightWidth; }, simpleSelector = function(master, playerBandwidth, playerWidth, playerHeight, limitRenditionByPlayerDimensions, masterPlaylistController) { if (master) { var resolutionPlusOneList, resolutionPlusOneSmallest, resolutionPlusOneRep, leastPixelDiffRep, options = { @@ -11640,6 +11643,13 @@ }, lastBandwidthSelector = function() { var pixelRatio = this.useDevicePixelRatio && global_window__WEBPACK_IMPORTED_MODULE_0___default().devicePixelRatio || 1; return simpleSelector(this.playlists.master, this.systemBandwidth, parseInt(safeGetComputedStyle(this.tech_.el(), "width"), 10) * pixelRatio, parseInt(safeGetComputedStyle(this.tech_.el(), "height"), 10) * pixelRatio, this.limitRenditionByPlayerDimensions, this.masterPlaylistController_); + }, movingAverageBandwidthSelector = function(decay) { + var average = -1, lastSystemBandwidth = -1; + if (decay < 0 || decay > 1) throw Error("Moving average bandwidth decay must be between 0 and 1."); + return function() { + var pixelRatio = this.useDevicePixelRatio && global_window__WEBPACK_IMPORTED_MODULE_0___default().devicePixelRatio || 1; + return average < 0 && (average = this.systemBandwidth, lastSystemBandwidth = this.systemBandwidth), this.systemBandwidth > 0 && this.systemBandwidth !== lastSystemBandwidth && (average = decay * this.systemBandwidth + (1 - decay) * average, lastSystemBandwidth = this.systemBandwidth), simpleSelector(this.playlists.master, average, parseInt(safeGetComputedStyle(this.tech_.el(), "width"), 10) * pixelRatio, parseInt(safeGetComputedStyle(this.tech_.el(), "height"), 10) * pixelRatio, this.limitRenditionByPlayerDimensions, this.masterPlaylistController_); + }; }, minRebufferMaxBandwidthSelector = function(settings) { var master = settings.master, currentTime = settings.currentTime, bandwidth = settings.bandwidth, duration = settings.duration, segmentDuration = settings.segmentDuration, timeUntilRebuffer = settings.timeUntilRebuffer, currentTimeline = settings.currentTimeline, syncController = settings.syncController, compatiblePlaylists = master.playlists.filter(function(playlist) { return !Playlist.isIncompatible(playlist); @@ -11661,6 +11671,13 @@ }), noRebufferingPlaylists.length) ? noRebufferingPlaylists[0] : (stableSort(rebufferingEstimates, function(a, b) { return a.rebufferingImpact - b.rebufferingImpact; }), rebufferingEstimates[0] || null); + }, lowestBitrateCompatibleVariantSelector = function() { + var _this = this, playlists = this.playlists.master.playlists.filter(Playlist.isEnabled); + return stableSort(playlists, function(a, b) { + return comparePlaylistBandwidth(a, b); + }), playlists.filter(function(playlist) { + return !!codecsForPlaylist(_this.playlists.master, playlist).video; + })[0] || null; }, concatSegments = function(segmentObj) { var tempBuffer, offset = 0; return segmentObj.bytes && (tempBuffer = new Uint8Array(segmentObj.bytes), segmentObj.segments.forEach(function(segment) { @@ -13774,7 +13791,9 @@ "mediaTransferDuration", "mediaBytesTransferred", "mediaAppends", - ], shouldSwitchToMedia = function(_ref) { + ], sumLoaderStat = function(stat) { + return this.audioSegmentLoader_[stat] + this.mainSegmentLoader_[stat]; + }, shouldSwitchToMedia = function(_ref) { var currentPlaylist = _ref.currentPlaylist, buffered = _ref.buffered, currentTime = _ref.currentTime, nextPlaylist = _ref.nextPlaylist, bufferLowWaterLine = _ref.bufferLowWaterLine, bufferHighWaterLine = _ref.bufferHighWaterLine, duration = _ref.duration, experimentalBufferBasedABR = _ref.experimentalBufferBasedABR, log = _ref.log; if (!nextPlaylist) return videojs.log.warn("We received no playlist to switch to. Please check your stream."), !1; var sharedLogLine = "allowing switch " + (currentPlaylist && currentPlaylist.id || "null") + " -> " + nextPlaylist.id; @@ -13855,9 +13874,7 @@ }), _this.tech_.on("play", function() { return _this.startABRTimer_(); })), loaderStats.forEach(function(stat) { - _this[stat + "_"] = (function(stat) { - return this.audioSegmentLoader_[stat] + this.mainSegmentLoader_[stat]; - }).bind((0, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_17__.Z)(_this), stat); + _this[stat + "_"] = sumLoaderStat.bind((0, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_17__.Z)(_this), stat); }), _this.logger_ = logger("MPC"), _this.triggeredFmp4Usage = !1, "none" === _this.tech_.preload() ? (_this.loadOnPlay_ = function() { _this.loadOnPlay_ = null, _this.masterPlaylistLoader_.load(); }, _this.tech_.one("play", _this.loadOnPlay_)) : _this.masterPlaylistLoader_.load(), _this.timeToLoadedData__ = -1, _this.mainAppendsToLoadedData__ = -1, _this.audioAppendsToLoadedData__ = -1; @@ -14640,37 +14657,22 @@ return lastCalled = Date.now(), localOptions.getSource.call(player, setSource); }, cleanupEvents = function cleanupEvents() { player.off("loadedmetadata", loadedMetadataHandler), player.off("error", errorHandler), player.off("dispose", cleanupEvents); - }; - player.on("error", errorHandler), player.on("dispose", cleanupEvents), player.reloadSourceOnError = function(newOptions) { + }, reinitPlugin = function(newOptions) { cleanupEvents(), initPlugin(player, newOptions); }; + player.on("error", errorHandler), player.on("dispose", cleanupEvents), player.reloadSourceOnError = reinitPlugin; + }, reloadSourceOnError = function(options) { + initPlugin(this, options); }, version$4 = "2.12.0", Vhs = { PlaylistLoader: PlaylistLoader, Playlist: Playlist, utils: utils, STANDARD_PLAYLIST_SELECTOR: lastBandwidthSelector, - INITIAL_PLAYLIST_SELECTOR: function() { - var _this = this, playlists = this.playlists.master.playlists.filter(Playlist.isEnabled); - return stableSort(playlists, function(a, b) { - return comparePlaylistBandwidth(a, b); - }), playlists.filter(function(playlist) { - return !!codecsForPlaylist(_this.playlists.master, playlist).video; - })[0] || null; - }, + INITIAL_PLAYLIST_SELECTOR: lowestBitrateCompatibleVariantSelector, lastBandwidthSelector: lastBandwidthSelector, - movingAverageBandwidthSelector: function(decay) { - var average = -1, lastSystemBandwidth = -1; - if (decay < 0 || decay > 1) throw Error("Moving average bandwidth decay must be between 0 and 1."); - return function() { - var pixelRatio = this.useDevicePixelRatio && global_window__WEBPACK_IMPORTED_MODULE_0___default().devicePixelRatio || 1; - return average < 0 && (average = this.systemBandwidth, lastSystemBandwidth = this.systemBandwidth), this.systemBandwidth > 0 && this.systemBandwidth !== lastSystemBandwidth && (average = decay * this.systemBandwidth + (1 - decay) * average, lastSystemBandwidth = this.systemBandwidth), simpleSelector(this.playlists.master, average, parseInt(safeGetComputedStyle(this.tech_.el(), "width"), 10) * pixelRatio, parseInt(safeGetComputedStyle(this.tech_.el(), "height"), 10) * pixelRatio, this.limitRenditionByPlayerDimensions, this.masterPlaylistController_); - }; - }, + movingAverageBandwidthSelector: movingAverageBandwidthSelector, comparePlaylistBandwidth: comparePlaylistBandwidth, - comparePlaylistResolution: function(left, right) { - var leftWidth, rightWidth; - return (left.attributes.RESOLUTION && left.attributes.RESOLUTION.width && (leftWidth = left.attributes.RESOLUTION.width), leftWidth = leftWidth || global_window__WEBPACK_IMPORTED_MODULE_0___default().Number.MAX_VALUE, right.attributes.RESOLUTION && right.attributes.RESOLUTION.width && (rightWidth = right.attributes.RESOLUTION.width), rightWidth = rightWidth || global_window__WEBPACK_IMPORTED_MODULE_0___default().Number.MAX_VALUE, leftWidth === rightWidth && left.attributes.BANDWIDTH && right.attributes.BANDWIDTH) ? left.attributes.BANDWIDTH - right.attributes.BANDWIDTH : leftWidth - rightWidth; - }, + comparePlaylistResolution: comparePlaylistResolution, xhr: xhrFactory() }; Object.keys(Config).forEach(function(prop) { @@ -15210,9 +15212,7 @@ return videojs.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."), Vhs; }, configurable: !0 - }), videojs.use || (videojs.registerComponent("Hls", Vhs), videojs.registerComponent("Vhs", Vhs)), videojs.options.vhs = videojs.options.vhs || {}, videojs.options.hls = videojs.options.hls || {}, videojs.getPlugin && videojs.getPlugin("reloadSourceOnError") || (videojs.registerPlugin || videojs.plugin)("reloadSourceOnError", function(options) { - initPlugin(this, options); - }), __webpack_exports__.Z = videojs; + }), videojs.use || (videojs.registerComponent("Hls", Vhs), videojs.registerComponent("Vhs", Vhs)), videojs.options.vhs = videojs.options.vhs || {}, videojs.options.hls = videojs.options.hls || {}, videojs.getPlugin && videojs.getPlugin("reloadSourceOnError") || (videojs.registerPlugin || videojs.plugin)("reloadSourceOnError", reloadSourceOnError), __webpack_exports__.Z = videojs; } }, ]); diff --git a/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/pages/index-cb36c1bf7f830e3c/output.js b/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/pages/index-cb36c1bf7f830e3c/output.js index c9b4c5855ff..16d61ae6487 100644 --- a/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/pages/index-cb36c1bf7f830e3c/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/pages/index-cb36c1bf7f830e3c/output.js @@ -774,8 +774,7 @@ }, 779: function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; - var url_toolkit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9945), url_toolkit__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(url_toolkit__WEBPACK_IMPORTED_MODULE_0__), global_window__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8908), global_window__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(global_window__WEBPACK_IMPORTED_MODULE_1__), DEFAULT_LOCATION = "http://example.com"; - __webpack_exports__.Z = function(baseUrl, relativeUrl) { + var url_toolkit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9945), url_toolkit__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(url_toolkit__WEBPACK_IMPORTED_MODULE_0__), global_window__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8908), global_window__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(global_window__WEBPACK_IMPORTED_MODULE_1__), DEFAULT_LOCATION = "http://example.com", resolveUrl = function(baseUrl, relativeUrl) { if (/^[a-z]+:/i.test(relativeUrl)) return relativeUrl; /^data:/.test(baseUrl) && (baseUrl = global_window__WEBPACK_IMPORTED_MODULE_1___default().location && global_window__WEBPACK_IMPORTED_MODULE_1___default().location.href || ""); var nativeURL = "function" == typeof global_window__WEBPACK_IMPORTED_MODULE_1___default().URL, protocolLess = /^\/\//.test(baseUrl), removeLocation = !global_window__WEBPACK_IMPORTED_MODULE_1___default().location && !/\/\//i.test(baseUrl); @@ -785,11 +784,11 @@ } return url_toolkit__WEBPACK_IMPORTED_MODULE_0___default().buildAbsoluteURL(baseUrl, relativeUrl); }; + __webpack_exports__.Z = resolveUrl; }, 3490: function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; - var window1 = __webpack_require__(8908); - module.exports = function(callback, decodeResponseBody) { + var window1 = __webpack_require__(8908), httpResponseHandler = function(callback, decodeResponseBody) { return void 0 === decodeResponseBody && (decodeResponseBody = !1), function(err, response, responseBody) { if (err) { callback(err); @@ -799,10 +798,7 @@ var cause = responseBody; if (decodeResponseBody) { if (window1.TextDecoder) { - var contentTypeHeader, charset = (void 0 === (contentTypeHeader = response.headers && response.headers["content-type"]) && (contentTypeHeader = ""), contentTypeHeader.toLowerCase().split(";").reduce(function(charset, contentType) { - var _contentType$split = contentType.split("="), type = _contentType$split[0], value = _contentType$split[1]; - return "charset" === type.trim() ? value.trim() : charset; - }, "utf-8")); + var charset = getCharset(response.headers && response.headers["content-type"]); try { cause = new TextDecoder(charset).decode(responseBody); } catch (e) {} @@ -816,6 +812,13 @@ callback(null, responseBody); }; }; + function getCharset(contentTypeHeader) { + return void 0 === contentTypeHeader && (contentTypeHeader = ""), contentTypeHeader.toLowerCase().split(";").reduce(function(charset, contentType) { + var _contentType$split = contentType.split("="), type = _contentType$split[0], value = _contentType$split[1]; + return "charset" === type.trim() ? value.trim() : charset; + }, "utf-8"); + } + module.exports = httpResponseHandler; }, 9603: function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; @@ -2679,10 +2682,10 @@ }), !0; }); }, _proto.addTagMapper = function(_ref2) { - var expression = _ref2.expression, map = _ref2.map; - this.tagMappers.push(function(line) { + var expression = _ref2.expression, map = _ref2.map, mapFn = function(line) { return expression.test(line) ? map(line) : line; - }); + }; + this.tagMappers.push(mapFn); }, ParseStream; }(Stream), camelCase = function(str) { return str.toLowerCase().replace(/-(\w)/g, function(a) { @@ -3634,7 +3637,7 @@ }; }, 4221: function(module) { - module.exports = function(data) { + var parseSidx = function(data) { var view = new DataView(data.buffer, data.byteOffset, data.byteLength), result = { version: data[0], flags: new Uint8Array(data.subarray(1, 4)), @@ -3654,6 +3657,7 @@ }); return result; }; + module.exports = parseSidx; }, 1489: function(module) { var secondsToVideoTs, secondsToAudioTs, videoTsToSeconds, audioTsToSeconds, audioTsToVideoTs, videoTsToAudioTs, metadataTsToSeconds; @@ -3699,7 +3703,7 @@ }); var jsx_runtime = __webpack_require__(5893), react = __webpack_require__(7294), Home_module = __webpack_require__(214), Home_module_default = __webpack_require__.n(Home_module), video_es = __webpack_require__(5215); __webpack_require__(3512); - var components_VideoJS = function(props) { + var VideoJS = function(props) { var videoRef = react.useRef(null), playerRef = react.useRef(null), options = props.options, onReady = props.onReady; return react.useEffect(function() { if (!playerRef.current) { @@ -3726,9 +3730,15 @@ className: "video-js vjs-big-play-centered" }) }); - }; + }, components_VideoJS = VideoJS; function Home() { - var playerRef = (0, react.useRef)(null); + var playerRef = (0, react.useRef)(null), handlePlayerReady = function(player) { + playerRef.current = player, player.on("waiting", function() { + console.log("player is waiting"); + }), player.on("dispose", function() { + console.log("player will dispose"); + }); + }; return (0, jsx_runtime.jsx)("div", { className: Home_module_default().container, children: (0, jsx_runtime.jsx)("main", { @@ -3746,13 +3756,7 @@ }, ] }, - onReady: function(player) { - playerRef.current = player, player.on("waiting", function() { - console.log("player is waiting"); - }), player.on("dispose", function() { - console.log("player will dispose"); - }); - } + onReady: handlePlayerReady }) }) }); diff --git a/crates/swc_ecma_minifier/tests/fixture/next/chakra/analysis-snapshot.rust-debug b/crates/swc_ecma_minifier/tests/fixture/next/chakra/analysis-snapshot.rust-debug new file mode 100644 index 00000000000..b7d2f5ea9c5 --- /dev/null +++ b/crates/swc_ecma_minifier/tests/fixture/next/chakra/analysis-snapshot.rust-debug @@ -0,0 +1,68466 @@ +TestSnapshot { + vars: [ + ( + ( + Atom('$arrowBg' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('$arrowBg$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('$arrowShadowColor' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('$bg' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('$diff' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('$height' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 7, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 7, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('$inputPadding' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('$popperBg' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('$size' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 7, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 7, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('$size$1' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('$stepperWidth' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('$translateX' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('$width' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Accordion' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Alert' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('AlertDescription' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('AlertIcon' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('AlertIcon' type=dynamic), + #286, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('AlertProvider' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('AlertTitle' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Anatomy' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Anatomy' type=inline), + #149, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('AnimatePresence' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Array' type=static), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 16, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 16, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Avatar' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('B' type=inline), + #70, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Badge' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('BaseIcon' type=dynamic), + #286, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Boolean' type=static), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 2, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Breadcrumb' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('BsRGB' type=inline), + #70, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Button' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('CSSReset' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('CSSReset' type=dynamic), + #7, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('CSSReset$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('CSS_INTEGER' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('CSS_NUMBER' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('CSS_UNIT' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 8, + usage_count: 8, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ChakraProvider' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ChakraProvider' type=dynamic), + #42, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ChakraProvider' type=dynamic), + #343, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('CheckIcon' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('CheckIcon' type=dynamic), + #280, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Checkbox' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('CloseButton' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('CloseIcon' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('CloseIcon' type=dynamic), + #289, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Code' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ColorModeContext' type=dynamic), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Component' type=dynamic), + #337, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Component' type=dynamic), + #362, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Constructor' type=dynamic), + #148, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Container' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Container' type=dynamic), + #11, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ContainerPortal' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ContainerPortal' type=dynamic), + #14, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('CustomEvent' type=static), + #31, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('DefaultPortal' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('DefaultPortal' type=dynamic), + #12, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Divider' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Drawer' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Editable' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('EnvironmentContext' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('EnvironmentProvider' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Error' type=static), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Form' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('FormError' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('FormLabel' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('G' type=inline), + #70, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('GsRGB' type=inline), + #70, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('H' type=inline), + #107, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('H' type=inline), + #108, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Heading' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('InfoIcon' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('InfoIcon' type=dynamic), + #281, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Input' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 24, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 24, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Kbd' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Link' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('List' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Math' type=static), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 65, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 65, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Menu' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Message' type=inline), + #326, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Modal' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('MyApp' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Number' type=static), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('NumberInput' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Object' type=static), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 48, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 48, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('PERMISSIVE_MATCH3' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('PERMISSIVE_MATCH4' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('PORTAL_CLASSNAME' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('PORTAL_SELECTOR' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('PinInput' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Popover' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Portal' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('PortalContextProvider' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('PortalManager' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('PortalManagerContextProvider' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Progress' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('R' type=inline), + #70, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Radio' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('React' type=static), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('RegExp' type=static), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 7, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 7, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('RsRGB' type=inline), + #70, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('S' type=inline), + #107, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('S' type=inline), + #108, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('STATUSES' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Select' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Set' type=static), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Skeleton' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('SkipLink' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Slider' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Spinner' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Stat' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('String' type=static), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 11, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 5, + usage_count: 11, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('StylesProvider' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Switch' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Table' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Tabs' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Tag' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Textarea' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ThemeProvider' type=dynamic), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('TinyColor' type=dynamic), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('TinyColor' type=dynamic), + #67, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 61, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 61, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Toast' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Toast' type=inline), + #321, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ToastComponent' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ToastComponent' type=dynamic), + #322, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ToastContainer' type=dynamic), + #340, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ToastContainer' type=dynamic), + #341, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ToastProvider' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ToastProvider' type=dynamic), + #337, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('Tooltip' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('WarningIcon' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('WarningIcon' type=dynamic), + #282, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_Checkbox$baseStyle' type=dynamic), + #237, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_Checkbox$baseStyle$c' type=dynamic), + #237, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_Input$baseStyle' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_Input$baseStyle$fiel' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_Input$sizes$lg$field' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_Input$sizes$md$field' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_Input$sizes$sm$field' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_Input$sizes$xs$field' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_Input$variants$fille' type=dynamic), + #230, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_Input$variants$fille' type=dynamic), + #271, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_Input$variants$flush' type=dynamic), + #229, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_Input$variants$flush' type=dynamic), + #270, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_Input$variants$outli' type=dynamic), + #228, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_Input$variants$outli' type=dynamic), + #269, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_Input$variants$unsty' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_Input$variants$unsty$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_N_E' type=inline), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_Object$values$flat$f' type=dynamic), + #295, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_React$useState' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_TinyColor' type=dynamic), + #114, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('__css' type=inline), + #290, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('__unused_webpack_module' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('__webpack_exec__' type=dynamic), + #363, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('__webpack_exports__' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('__webpack_exports__' type=dynamic), + #363, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('__webpack_require__' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 19, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 19, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('__webpack_require__' type=dynamic), + #363, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_a' type=inline), + #68, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_a' type=inline), + #85, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_accessibleColorMap$c' type=dynamic), + #198, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_add' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_app' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_b' type=inline), + #85, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_baseStyleRoot' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_bg' type=inline), + #198, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_children' type=dynamic), + #12, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_children' type=dynamic), + #42, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_className' type=dynamic), + #277, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_container' type=dynamic), + #254, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_container2' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_container3' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_container4' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_createClass' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_createContext' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_createContext$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_createStylesContext' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_defineProperties' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_defineProperty' type=static), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_divide' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_excluded' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_extends' type=static), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_extends2' type=dynamic), + #305, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_extends3' type=dynamic), + #308, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_extends4' type=dynamic), + #316, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_findToast' type=dynamic), + #310, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_fontSize' type=dynamic), + #227, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_getDefaults' type=dynamic), + #213, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_getDefaults2' type=dynamic), + #214, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_getDefaults3' type=dynamic), + #215, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_i' type=inline), + #85, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_i' type=inline), + #111, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_i' type=inline), + #151, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_i2' type=inline), + #152, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_key' type=inline), + #151, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_key' type=inline), + #162, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_key' type=inline), + #344, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_key2' type=inline), + #152, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_key2' type=inline), + #163, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_key2' type=inline), + #347, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_key3' type=inline), + #164, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_key4' type=inline), + #165, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_key5' type=inline), + #166, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_key6' type=inline), + #169, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_key7' type=inline), + #170, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_key8' type=inline), + #171, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_key9' type=inline), + #172, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_len' type=inline), + #151, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_len' type=inline), + #162, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_len' type=inline), + #344, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_len2' type=inline), + #152, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_len2' type=inline), + #163, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_len2' type=inline), + #347, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_len3' type=inline), + #164, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_len4' type=inline), + #165, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_len5' type=inline), + #166, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_len6' type=inline), + #169, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_len7' type=inline), + #170, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_len8' type=inline), + #171, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_len9' type=inline), + #172, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_lg' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_lg$1' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_logical$dir' type=dynamic), + #292, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_md' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_md$1' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_multiply' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_negate' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_objectSpread' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_objectWithoutPropertiesLoose' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_omitThemingProps' type=dynamic), + #277, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_omitThemingProps' type=dynamic), + #283, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_omitThemingProps' type=dynamic), + #290, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_omitThemingProps$emp' type=dynamic), + #277, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_omitThemingProps$lab' type=dynamic), + #277, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_omitThemingProps$spe' type=dynamic), + #277, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_omitThemingProps$sta' type=dynamic), + #283, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_omitThemingProps$thi' type=dynamic), + #277, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_options' type=dynamic), + #322, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_options$id' type=dynamic), + #319, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_options$position' type=dynamic), + #319, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_options$position' type=dynamic), + #325, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_options$toastCompone' type=dynamic), + #322, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_parts' type=inline), + #152, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_prevToasts$position' type=dynamic), + #308, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_prevToasts$position2' type=dynamic), + #308, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_props$align' type=dynamic), + #259, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_props$colorScheme' type=dynamic), + #283, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_props$component' type=dynamic), + #337, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_props$duration' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_props$endColor' type=dynamic), + #242, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_props$motionVariants' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_props$position' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_props$requestClose' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_props$resetCSS' type=dynamic), + #42, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_props$startColor' type=dynamic), + #242, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_props$theme' type=dynamic), + #42, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_props$toastSpacing' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_props$variant' type=dynamic), + #321, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref' type=inline), + #40, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref' type=inline), + #156, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref' type=inline), + #198, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref' type=inline), + #231, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 13, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 12, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref' type=inline), + #272, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 14, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 13, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref' type=inline), + #311, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref' type=inline), + #332, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref' type=inline), + #340, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 8, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref' type=inline), + #343, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref' type=inline), + #350, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref' type=inline), + #353, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref' type=inline), + #356, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref' type=inline), + #359, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref$activeBg' type=dynamic), + #198, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref$bg' type=inline), + #198, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref$color' type=dynamic), + #198, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref$colorMode' type=dynamic), + #340, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref$defaultOptions' type=dynamic), + #340, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref$defaultProps' type=dynamic), + #359, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref$hoverBg' type=dynamic), + #198, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref$setColorMode' type=dynamic), + #340, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref$theme' type=dynamic), + #340, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref$toggleColorMode' type=dynamic), + #340, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_ref2' type=inline), + #158, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_rtl' type=inline), + #254, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_sizeStyle$field' type=dynamic), + #227, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_sizeStyle$field$font' type=dynamic), + #227, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_sm' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_sm$1' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_subtract' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_tab' type=inline), + #261, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 7, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_tablist' type=dynamic), + #261, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_temp' type=inline), + #311, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_temp' type=inline), + #340, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_this' type=inline), + #150, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 12, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 12, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_useAlertContext' type=dynamic), + #286, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_useChakra' type=dynamic), + #331, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_useState' type=dynamic), + #39, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_values' type=inline), + #151, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_xl' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('_xs' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('a' type=inline), + #48, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 7, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 2, + usage_count: 5, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('a' type=inline), + #58, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('a' type=inline), + #59, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('a' type=inline), + #64, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('acc' type=inline), + #313, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('accessibleColorMap' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('accordionAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('activeBg' type=dynamic), + #198, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('activeBg' type=dynamic), + #202, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('add' type=inline), + #17, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('add' type=inline), + #163, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('add' type=inline), + #169, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('addEventListener' type=dynamic), + #19, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('addPrefix' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('addStripe' type=dynamic), + #233, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('alertAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('alertStyles' type=dynamic), + #283, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('alertTitleId' type=dynamic), + #321, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('align' type=inline), + #259, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('alignItems' type=dynamic), + #297, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('alignments' type=dynamic), + #259, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('allPositions' type=dynamic), + #312, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('allow3Char' type=dynamic), + #57, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('allow3Char' type=dynamic), + #76, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('allow3Char' type=dynamic), + #77, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('allow4Char' type=dynamic), + #58, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('allow4Char' type=dynamic), + #78, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('allow4Char' type=dynamic), + #79, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('alpha' type=inline), + #71, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('amount' type=inline), + #87, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('amount' type=inline), + #88, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 3, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('amount' type=inline), + #89, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('amount' type=inline), + #90, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('amount' type=inline), + #91, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('amount' type=inline), + #92, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('amount' type=inline), + #93, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('amount' type=inline), + #94, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('amount' type=inline), + #95, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('amount' type=inline), + #123, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('amount' type=inline), + #125, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('amount' type=inline), + #127, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('amount' type=inline), + #129, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('anatomy' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 27, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 27, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('appendToParentPortal' type=dynamic), + #12, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('appendToParentPortal' type=dynamic), + #14, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('arguments' type=static), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 52, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 9, + usage_count: 52, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('attr' type=inline), + #153, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('avatarAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('b' type=inline), + #51, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('b' type=inline), + #52, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 3, + usage_count: 7, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('b' type=inline), + #54, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('b' type=inline), + #55, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 3, + usage_count: 7, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('b' type=inline), + #56, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('b' type=inline), + #57, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('b' type=inline), + #58, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('b' type=inline), + #59, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('b' type=inline), + #80, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('b' type=inline), + #108, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bMax' type=inline), + #107, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bMax' type=inline), + #113, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bMin' type=inline), + #107, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bMin' type=inline), + #113, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('background' type=dynamic), + #100, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('background' type=dynamic), + #198, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #191, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #201, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #202, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #205, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #208, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #211, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #216, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #219, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #223, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #226, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #232, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #236, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #238, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #240, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #242, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #243, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #249, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #254, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #260, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #272, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle' type=dynamic), + #290, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$2' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$3' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$4' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$5' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$6' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$7' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$8' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$9' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$A' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$B' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$C' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$D' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$a' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$b' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$c' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$d' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$e' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$f' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$g' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$h' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$i' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$j' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$k' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$l' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$m' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$n' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$o' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$p' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$q' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$r' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$s' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$t' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$u' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$v' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$w' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$x' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$y' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyle$z' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleBadge' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleBadge' type=dynamic), + #188, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleBody' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleBody' type=dynamic), + #222, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleBody$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleBody$2' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleButton' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleButton$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleCloseButton' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleCloseButton$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleCloseButton$2' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleCloseButton$3' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleCommand' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleContainer' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleContainer' type=dynamic), + #190, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleContainer' type=dynamic), + #245, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleContainer$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleContainer$2' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleContainer$3' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleContainer$4' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleContent' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleContent' type=dynamic), + #231, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleControl' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleControl' type=dynamic), + #200, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleControl' type=dynamic), + #237, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleControl$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleDialog' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleDialog' type=dynamic), + #204, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleDialog' type=dynamic), + #221, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleDialog$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleDialogContainer' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleDialogContainer' type=dynamic), + #220, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleDialogContainer$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleDivider' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleExcessLabel' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleExcessLabel' type=dynamic), + #189, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleField' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleField' type=dynamic), + #239, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleField$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleFilledTrack' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleFilledTrack' type=dynamic), + #235, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleFilledTrack' type=dynamic), + #248, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleFilledTrack$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleFooter' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleFooter$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleFooter$2' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleGroupTitle' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleHeader' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleHeader$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleHeader$2' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleHelpText' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleHelperText' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleHelperText' type=dynamic), + #207, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleIcon' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleIcon' type=dynamic), + #210, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleIcon$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleIcon$2' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleIcon$3' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleIcon$4' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleIcon$5' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleInput' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleItem' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleItem' type=dynamic), + #218, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleLabel' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleLabel$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleLabel$2' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleLabel$3' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleLink' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleList' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleList' type=dynamic), + #217, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleNumber' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleOverlay' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleOverlay$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStylePanel' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStylePopper' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStylePreview' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleRequiredIndicator' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleRequiredIndicator' type=dynamic), + #206, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleRoot' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleRoot' type=dynamic), + #257, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleRoot$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleStepper' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleStepper' type=dynamic), + #225, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleStepperGroup' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleTab' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleTab' type=dynamic), + #258, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleTablist' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleTablist' type=dynamic), + #259, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleTabpanel' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleText' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleText' type=dynamic), + #209, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleTextarea' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleThumb' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleThumb' type=dynamic), + #247, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleThumb$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleTrack' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleTrack' type=dynamic), + #234, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleTrack' type=dynamic), + #246, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleTrack' type=dynamic), + #253, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleTrack$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseStyleTrack$2' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('baseTheme' type=dynamic), + #344, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bg' type=inline), + #100, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bg' type=inline), + #131, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bg' type=inline), + #190, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bg' type=inline), + #198, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bg' type=inline), + #231, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bg' type=inline), + #272, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bgColor' type=inline), + #133, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bgColor' type=inline), + #233, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('blacken' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('blacken' type=inline), + #125, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('blur' type=inline), + #21, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('borderColor' type=dynamic), + #190, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('borderColor' type=dynamic), + #197, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('borderProp' type=dynamic), + #261, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('borders' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bottom' type=inline), + #298, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bound' type=inline), + #111, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bound' type=inline), + #113, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 9, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 9, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bound01' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 17, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 17, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('boundAlpha' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bounds' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('bounds_1' type=dynamic), + #111, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('breadcrumbAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('breakpoints' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('buttonAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #50, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #183, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #184, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 4, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #185, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 6, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #186, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 6, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #187, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #193, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #194, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 4, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #195, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #196, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 7, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 6, + usage_count: 7, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #197, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #198, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 8, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #199, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 4, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #200, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 12, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 12, + usage_count: 12, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #233, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #248, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #253, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #255, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 4, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #256, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 8, + usage_count: 8, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #261, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #262, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #263, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #264, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('c' type=inline), + #265, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('calc' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 9, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 9, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('callback' type=dynamic), + #35, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('cancelAnimationFrame' type=dynamic), + #36, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_alert_esm_Alert' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_alert_esm_createContext' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_alert_esm_excluded' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_alert_esm_extends' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 12, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 10, + usage_count: 11, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_alert_esm_objectWithoutPropertiesLoose' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_close_button_esm_CloseButton' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_close_button_esm_excluded' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_close_button_esm_extends' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 2, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_close_button_esm_objectWithoutPropertiesLoose' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_color_mode_esm' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_hooks_esm' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_icon_esm' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_provider_esm_ChakraProvider' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_react_esm_excluded' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_react_esm_objectWithoutPropertiesLoose' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_react_utils_esm' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_spinner_esm_Spinner' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_spinner_esm_excluded' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_spinner_esm_extends' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_spinner_esm_objectWithoutPropertiesLoose' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_system_esm' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 22, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 22, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_theme_components_esm_Container' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_theme_components_esm_sizes' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_theme_esm_isChakraTheme' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_theme_foundations_blur_esm_blur' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_theme_tools_esm_escape' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_theme_tools_esm_extends' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_toast_esm_extends' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 17, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 14, + usage_count: 16, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_utils_esm' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 25, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 25, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('chakra_ui_visually_hidden_esm' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('checkboxAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('children' type=dynamic), + #8, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('children' type=dynamic), + #12, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('children' type=dynamic), + #14, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('children' type=dynamic), + #39, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('children' type=dynamic), + #42, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('children' type=dynamic), + #290, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('children' type=dynamic), + #337, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('children' type=dynamic), + #343, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('circularProgressAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('clamp01' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('className' type=dynamic), + #153, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('className' type=dynamic), + #277, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('clearTimeout' type=dynamic), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('close' type=inline), + #315, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('close' type=inline), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('close' type=inline), + #336, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('closeAll' type=dynamic), + #311, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #63, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #64, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 26, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 2, + usage_count: 25, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #65, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 17, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 11, + mutation_by_call_count: 10, + usage_count: 15, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #66, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #68, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 10, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 2, + usage_count: 8, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #95, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #102, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #103, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #109, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #111, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #114, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #115, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #117, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #119, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #121, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #123, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #125, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #127, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #129, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #135, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #137, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #139, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #190, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #195, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('color' type=inline), + #198, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('colorInput' type=dynamic), + #109, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('colorMode' type=dynamic), + #340, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('colorModeContextValue' type=dynamic), + #340, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('colorModeManager' type=dynamic), + #42, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('colorScheme' type=dynamic), + #283, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('colorScheme' type=dynamic), + #350, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('colorScheme' type=dynamic), + #359, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('colors' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('colors' type=inline), + #104, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('complementary' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('complementary' type=dynamic), + #135, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('component' type=dynamic), + #340, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('componentName' type=dynamic), + #352, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('componentName' type=dynamic), + #355, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('componentName' type=dynamic), + #358, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('components' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('components' type=dynamic), + #350, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('components' type=dynamic), + #353, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('components' type=dynamic), + #356, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('components' type=dynamic), + #359, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('computedPosition' type=dynamic), + #292, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('config' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('config' type=inline), + #146, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('container' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('containerEl' type=dynamic), + #14, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('containerRef' type=dynamic), + #14, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('containerRef' type=dynamic), + #16, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('containerStyle' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('containerStyles' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('context' type=inline), + #39, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('contrast' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('contrast' type=dynamic), + #131, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('control' type=inline), + #237, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('convertDecimalToHex' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('convertHexToDecimal' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('convertToPercentage' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('counter' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('createBreakpoints' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('createBreakpoints' type=dynamic), + #146, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('createElement' type=dynamic), + #27, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('createEvent' type=dynamic), + #25, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('createRenderToast' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('createStandaloneToast' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('createStore' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('createToast' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('createToastFn' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('css' type=inline), + #286, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('cssVar' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 13, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 13, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('cssVariable' type=dynamic), + #181, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('cssVarsRoot' type=dynamic), + #42, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('d' type=inline), + #52, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('d' type=inline), + #55, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('d' type=inline), + #60, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('dark' type=inline), + #142, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('dark' type=inline), + #193, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('darkActiveBg' type=dynamic), + #196, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('darkBg' type=inline), + #183, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('darkBg' type=inline), + #194, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('darkColor' type=dynamic), + #195, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('darkHoverBg' type=dynamic), + #196, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('darken' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('darken' type=inline), + #127, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('data' type=inline), + #329, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultEndColor' type=dynamic), + #242, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultEnv' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultOptions' type=dynamic), + #324, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultOptions' type=dynamic), + #331, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultOptions' type=dynamic), + #340, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$2' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$3' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$4' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$5' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$6' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$7' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$8' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$9' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$a' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$b' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$c' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$d' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$e' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$f' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$g' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$h' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$i' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$j' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$k' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$l' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$m' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultProps$n' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultStandaloneParam' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaultStartColor' type=dynamic), + #242, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defaults' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('defineColor' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('delay' type=inline), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('description' type=dynamic), + #321, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('descriptionStyles' type=dynamic), + #285, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('descriptor' type=dynamic), + #147, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 7, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 7, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('diffValue' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('dir' type=inline), + #292, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('dir' type=inline), + #324, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('dir' type=inline), + #332, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('direction' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('divide' type=inline), + #166, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('divide' type=inline), + #172, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('doc' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('doc' type=inline), + #13, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('doc' type=inline), + #40, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('document' type=dynamic), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('drawerAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('duration' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 4, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ec' type=inline), + #212, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ec' type=inline), + #213, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ec' type=inline), + #214, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ec' type=inline), + #215, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('editableAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('el' type=inline), + #41, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('el' type=inline), + #153, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('emotion_react_browser_esm' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('emptyColor' type=dynamic), + #277, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('end' type=inline), + #242, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('endColor' type=dynamic), + #241, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('endColor' type=dynamic), + #242, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('env' type=static), + #40, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('environment' type=dynamic), + #42, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('environmentProp' type=dynamic), + #39, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('error' type=inline), + #330, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('excluded' type=dynamic), + #10, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('excluded' type=dynamic), + #276, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('excluded' type=dynamic), + #279, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('excluded' type=dynamic), + #287, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('excluded' type=dynamic), + #342, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('extendTheme' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('extension' type=dynamic), + #345, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('extensions' type=dynamic), + #344, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('f' type=inline), + #56, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('factor' type=inline), + #332, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('fade' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('fade' type=inline), + #241, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('fallback' type=dynamic), + #114, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('fallback' type=dynamic), + #138, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('fallback' type=dynamic), + #179, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('fallback' type=dynamic), + #182, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('fc' type=inline), + #212, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('fc' type=inline), + #213, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('fc' type=inline), + #214, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('fc' type=inline), + #215, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('fg' type=inline), + #100, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('fg' type=inline), + #131, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('filled' type=inline), + #230, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('filled' type=inline), + #271, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('filledStyle' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('findToast' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('flushed' type=inline), + #229, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('flushed' type=inline), + #270, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('fmt' type=inline), + #81, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('fns' type=inline), + #359, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('fontSize' type=dynamic), + #227, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('forceUpdate' type=dynamic), + #12, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('forceUpdate' type=dynamic), + #14, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('formAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('formErrorAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('format' type=inline), + #64, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 3, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('format' type=inline), + #86, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 18, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 17, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('formatSet' type=dynamic), + #86, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('formattedString' type=dynamic), + #86, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 10, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 9, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('foundations' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('fromEntries' type=dynamic), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('g' type=inline), + #51, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('g' type=inline), + #52, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 3, + usage_count: 7, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('g' type=inline), + #54, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('g' type=inline), + #55, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 3, + usage_count: 7, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('g' type=inline), + #56, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('g' type=inline), + #57, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('g' type=inline), + #58, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('g' type=inline), + #59, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('g' type=inline), + #80, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('generateStripe' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('get' type=static), + #155, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('get' type=static), + #157, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('get' type=static), + #159, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getBg' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getColor' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 28, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 6, + usage_count: 28, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getColor' type=dynamic), + #114, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getColorInfo' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 3, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getComputedStyle' type=dynamic), + #32, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getDefaults' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getElementById' type=dynamic), + #24, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getElementsByTagName' type=dynamic), + #29, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getFallback' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getHueRange' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getMinimumBrightness' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getPropertyValue' type=dynamic), + #33, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getSize' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getSize$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 11, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 11, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getSize$2' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getSize$3' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 8, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getState' type=dynamic), + #302, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getToastListStyle' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getToastPlacement' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getToastPosition' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getToastPosition' type=dynamic), + #295, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('getToastStyle' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('gradient' type=dynamic), + #233, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('h' type=inline), + #52, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 5, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('h' type=inline), + #54, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 4, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('h' type=inline), + #55, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 5, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('h' type=inline), + #56, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('h' type=inline), + #61, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('h' type=inline), + #73, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('h' type=inline), + #75, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('h' type=inline), + #98, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('h' type=inline), + #99, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('h' type=inline), + #101, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('h' type=inline), + #104, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hasAlpha' type=dynamic), + #86, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hasStripe' type=dynamic), + #233, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hash' type=inline), + #139, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hex' type=inline), + #57, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 10, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 10, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hex' type=inline), + #58, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 13, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 13, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hex' type=inline), + #59, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hex' type=inline), + #85, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hex' type=inline), + #114, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hex' type=inline), + #116, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('horizontal' type=dynamic), + #144, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('host' type=inline), + #13, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('host' type=inline), + #14, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hoverBg' type=inline), + #198, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hoverBg' type=inline), + #202, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hsl' type=inline), + #74, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hsl' type=inline), + #75, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hsl' type=inline), + #87, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hsl' type=inline), + #89, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hsl' type=inline), + #92, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hsl' type=inline), + #93, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hsl' type=inline), + #94, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hsl' type=inline), + #96, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hsl' type=inline), + #97, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hsl' type=inline), + #99, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hsl' type=inline), + #101, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hslToRgb' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hsv' type=inline), + #72, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hsv' type=inline), + #73, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hsv' type=inline), + #98, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hsvToRgb' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hue' type=inline), + #94, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hue' type=inline), + #105, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hue' type=inline), + #106, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 3, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hue' type=inline), + #109, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hue' type=inline), + #111, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 5, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hue2rgb' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('hueRange' type=dynamic), + #105, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #4, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #9, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #10, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #43, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #56, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #101, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #108, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 7, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #139, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #140, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #145, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #147, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #275, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #276, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #278, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #279, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #287, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #288, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #291, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('i' type=inline), + #342, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('icon' type=inline), + #321, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('iconSpacing' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('id' type=inline), + #36, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('id' type=inline), + #293, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('id' type=inline), + #295, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('id' type=inline), + #304, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('id' type=inline), + #307, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('id' type=inline), + #309, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('id' type=inline), + #315, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('id' type=inline), + #318, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('id' type=inline), + #319, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('id' type=inline), + #321, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('id' type=inline), + #327, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('id' type=inline), + #328, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('id' type=inline), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('identity' type=dynamic), + #359, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('identity' type=dynamic), + #360, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('increment' type=dynamic), + #101, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('index' type=inline), + #140, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 9, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 3, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('index' type=inline), + #293, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('index' type=inline), + #310, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('initEvent' type=dynamic), + #26, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('initial' type=inline), + #332, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('initialState' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('initialState' type=dynamic), + #299, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('inputAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('inputPaddingValue' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('inputToRGB' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isAccessible' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isAccessible' type=dynamic), + #133, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isActive' type=dynamic), + #318, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isBgDark' type=dynamic), + #190, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isCentered' type=dynamic), + #220, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isChakraTheme' type=dynamic), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isClosable' type=dynamic), + #321, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isDark' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isDark' type=inline), + #116, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isDark' type=inline), + #117, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isDecimal' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isDisabled' type=dynamic), + #290, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isFitted' type=dynamic), + #258, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isFullHeight' type=dynamic), + #204, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isFunction' type=dynamic), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isIndeterminate' type=dynamic), + #233, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isLefty' type=inline), + #297, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isLight' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isLight' type=inline), + #119, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isNaN' type=inline), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isObject' type=dynamic), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isOnePointZero' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isPercent' type=dynamic), + #44, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isPercentage' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isPresent' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 5, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isReadable' type=dynamic), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isRighty' type=dynamic), + #297, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isTop' type=inline), + #308, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isTopOrBottom' type=dynamic), + #298, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isValid' type=inline), + #114, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isValidCSSUnit' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 9, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 9, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('isVertical' type=dynamic), + #261, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('j' type=inline), + #139, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('jsx_runtime' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #3, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #6, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #9, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #10, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #43, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #85, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #145, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #156, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #158, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #275, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #276, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #278, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #279, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #287, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #288, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #291, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #342, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('key' type=static), + #348, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('l' type=inline), + #52, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('l' type=inline), + #54, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 10, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 9, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('l' type=inline), + #64, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('l' type=inline), + #75, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('l' type=inline), + #301, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('label' type=inline), + #277, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('largeSizes' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('left' type=inline), + #298, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('light' type=inline), + #142, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('lightBg' type=inline), + #183, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('lightColor' type=dynamic), + #195, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('lighten' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('lighten' type=inline), + #129, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('list' type=inline), + #140, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('list' type=inline), + #141, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('listAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('listener' type=dynamic), + #303, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('listeners' type=dynamic), + #299, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('lodash_mergewith' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('lodash_mergewith_default' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('logical' type=inline), + #292, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('logicals' type=dynamic), + #292, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('lowerBounds' type=dynamic), + #108, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('m' type=inline), + #108, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('manager' type=inline), + #12, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('margin' type=inline), + #298, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('marginProp' type=dynamic), + #261, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('match' type=inline), + #65, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 61, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 9, + mutation_by_call_count: 0, + usage_count: 52, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('matchMedia' type=dynamic), + #34, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('matchers' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 11, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 9, + mutation_by_call_count: 0, + usage_count: 11, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('max' type=inline), + #44, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 11, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 5, + usage_count: 11, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('max' type=inline), + #52, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('max' type=inline), + #55, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('max' type=inline), + #112, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('menuAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('mergeThemeCustomizer' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('mergeThemeOverride' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('mergeWith' type=dynamic), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('message' type=inline), + #307, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('message' type=inline), + #319, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('message' type=inline), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('min' type=inline), + #52, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('min' type=inline), + #55, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('min' type=inline), + #112, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('mockEnv' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('mod' type=inline), + #56, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('modalAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('mode' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 113, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 113, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('modification' type=dynamic), + #98, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('moduleId' type=dynamic), + #364, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('module_TinyColor' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('motion' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('motionVariants' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('motionVariants' type=dynamic), + #337, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('motionVariants' type=dynamic), + #340, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('multiply' type=dynamic), + #165, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('multiply' type=dynamic), + #171, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('n' type=inline), + #44, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 16, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 5, + mutation_by_call_count: 5, + usage_count: 11, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('n' type=inline), + #46, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('n' type=inline), + #47, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('n' type=inline), + #49, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('n' type=inline), + #101, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('n' type=inline), + #110, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('name' type=inline), + #150, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('name' type=inline), + #160, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('name' type=inline), + #179, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('name' type=inline), + #181, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('name' type=inline), + #190, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('named' type=inline), + #65, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('namedColor' type=dynamic), + #109, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('names' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('names' type=inline), + #351, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('names' type=inline), + #354, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('names' type=inline), + #357, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('needsAlphaFormat' type=dynamic), + #86, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('negate' type=inline), + #167, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('negate' type=inline), + #173, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('nextState' type=dynamic), + #310, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('node' type=inline), + #15, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('node' type=inline), + #39, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('nodeEnv' type=inline), + #40, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('noop' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('noop' type=inline), + #30, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('normalizeToastOptions' type=dynamic), + #324, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('normalizeToastOptions' type=dynamic), + #325, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('normalizedToastOptions' type=dynamic), + #326, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('notify' type=inline), + #307, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('num' type=inline), + #109, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('numberInputAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('numberInputToObject' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('numericStyles' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 4, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('obj' type=inline), + #3, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('object' type=static), + #348, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ok' type=inline), + #64, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 3, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('onClose' type=inline), + #321, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('onCloseComplete' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('onMouseEnter' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('onMouseEnter' type=dynamic), + #334, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('onMouseLeave' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('onMouseLeave' type=dynamic), + #335, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('onRequestRemove' type=dynamic), + #320, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('onRequestRemove' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('opacity' type=inline), + #121, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('operand' type=inline), + #161, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('operands' type=dynamic), + #162, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('operands' type=dynamic), + #163, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('operands' type=dynamic), + #164, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('operands' type=dynamic), + #165, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('operands' type=dynamic), + #166, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('operands' type=dynamic), + #169, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('operands' type=dynamic), + #170, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('operands' type=dynamic), + #171, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('operands' type=dynamic), + #172, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('operator' type=dynamic), + #162, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('options' type=inline), + #104, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 17, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 3, + usage_count: 16, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('options' type=inline), + #106, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('options' type=inline), + #107, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('options' type=inline), + #133, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('options' type=inline), + #144, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('options' type=inline), + #181, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('options' type=inline), + #307, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('options' type=inline), + #309, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('options' type=inline), + #319, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 7, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('options' type=inline), + #322, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('options' type=inline), + #325, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('options' type=inline), + #326, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('options' type=inline), + #327, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('options' type=inline), + #328, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('opts' type=inline), + #68, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('opts' type=inline), + #103, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('opts' type=inline), + #138, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 12, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 12, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('orient' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('orientation' type=dynamic), + #144, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('orientation' type=dynamic), + #245, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('orientation' type=dynamic), + #257, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('orientation' type=dynamic), + #259, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('orientation' type=dynamic), + #261, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('outline' type=inline), + #228, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('outline' type=inline), + #268, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('outline' type=inline), + #269, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('override' type=static), + #348, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('overrideValue' type=dynamic), + #349, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('overrides' type=dynamic), + #344, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('overrides' type=dynamic), + #347, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ownKeys' type=inline), + #4, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('p' type=inline), + #53, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('p' type=inline), + #54, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('p' type=inline), + #56, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('p' type=inline), + #95, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('pad2' type=inline), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('pageProps' type=dynamic), + #362, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('param' type=inline), + #362, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('parentPortal' type=dynamic), + #12, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('parseFloat' type=dynamic), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 4, + usage_count: 8, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('parseInt' type=dynamic), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('parseIntFromHex' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 13, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 13, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('parsed' type=inline), + #109, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('part' type=inline), + #96, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('part' type=inline), + #151, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('part' type=inline), + #152, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('part' type=inline), + #153, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('part' type=inline), + #156, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('part' type=inline), + #158, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('partObj' type=inline), + #153, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('parts' type=inline), + #152, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('pickBrightness' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('pickHue' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('pickSaturation' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('pinInputAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('pipe' type=inline), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('popoverAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('portal' type=inline), + #12, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 7, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 7, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('portal' type=inline), + #14, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 7, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 5, + usage_count: 7, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('portalNode' type=dynamic), + #13, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('portalProps' type=dynamic), + #337, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('portalZIndex' type=dynamic), + #42, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('position' type=dynamic), + #292, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('position' type=dynamic), + #293, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('position' type=dynamic), + #297, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('position' type=dynamic), + #298, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('position' type=dynamic), + #304, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('position' type=dynamic), + #307, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('position' type=dynamic), + #310, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('position' type=dynamic), + #313, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('position' type=dynamic), + #316, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('position' type=dynamic), + #319, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('position' type=dynamic), + #332, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('position' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('position' type=dynamic), + #338, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('positions' type=dynamic), + #311, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('positionsToClose' type=dynamic), + #312, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('prefix' type=inline), + #178, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('prefix' type=inline), + #180, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('prev' type=inline), + #312, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('prevState' type=dynamic), + #305, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('prevState' type=dynamic), + #310, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('prevState' type=dynamic), + #316, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('prevTheme' type=dynamic), + #346, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('prevToasts' type=dynamic), + #308, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('progressAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('promise' type=inline), + #328, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('propertyName' type=dynamic), + #274, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #8, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #11, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #12, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #14, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #16, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #39, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #42, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 7, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 7, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #143, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #147, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #183, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #184, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #185, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 4, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #186, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 4, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #187, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #188, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #189, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #190, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #191, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #193, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #194, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #195, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #196, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 6, + usage_count: 8, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #197, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #198, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 7, + usage_count: 8, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #199, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #200, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 15, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 14, + usage_count: 15, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #201, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #202, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #204, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #205, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #206, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #207, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #208, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #209, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #210, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #211, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #212, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #213, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 4, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #214, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 4, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #215, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #216, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #217, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #218, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #219, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #220, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #221, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #222, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #223, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #225, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #226, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #228, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #229, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #230, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #231, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #232, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #233, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #234, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #235, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #236, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #237, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #238, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #239, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #240, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #242, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #243, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #244, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #245, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #246, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #247, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #248, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #249, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 4, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #250, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #251, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #252, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #253, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #254, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #255, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 4, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #256, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 7, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 6, + usage_count: 7, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #257, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #258, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #259, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #260, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #261, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #262, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #263, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #264, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #265, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #266, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #267, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #268, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #269, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #270, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #271, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #272, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #277, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #280, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #281, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #282, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #283, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #284, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #285, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #286, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #289, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #290, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #321, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 8, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #323, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #332, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 10, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 10, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('props' type=inline), + #337, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('protoProps' type=dynamic), + #148, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('q' type=inline), + #53, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('q' type=inline), + #54, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('q' type=inline), + #56, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('querySelector' type=dynamic), + #22, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('querySelectorAll' type=dynamic), + #23, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('r' type=inline), + #51, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('r' type=inline), + #52, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 7, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 3, + usage_count: 6, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('r' type=inline), + #54, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('r' type=inline), + #55, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 7, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 3, + usage_count: 6, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('r' type=inline), + #56, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('r' type=inline), + #57, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('r' type=inline), + #58, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('r' type=inline), + #59, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('r' type=inline), + #80, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('radii' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('radioAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('radius' type=inline), + #227, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('random' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('randomColor' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('randomColorFromList' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('randomColorFromString' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('randomFromList' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('randomWithin' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('range' type=inline), + #112, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 5, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('raw' type=inline), + #122, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('raw' type=inline), + #124, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('raw' type=inline), + #126, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('raw' type=inline), + #128, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('react' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 66, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 66, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('react_dom' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('readability' type=dynamic), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ref' type=inline), + #41, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ref' type=inline), + #277, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ref' type=inline), + #283, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ref' type=inline), + #284, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ref' type=inline), + #285, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ref' type=inline), + #290, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('remove' type=inline), + #18, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('removeEventListener' type=dynamic), + #20, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('removeToast' type=dynamic), + #304, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('render' type=inline), + #322, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('renderToast' type=dynamic), + #322, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('renderToast' type=dynamic), + #323, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('replaceValue' type=dynamic), + #176, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('replaceWhiteSpace' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('requestAnimationFrame' type=dynamic), + #35, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('requestClose' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('requiredChakraThemeKeys' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('res' type=inline), + #98, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('res' type=inline), + #104, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('res' type=inline), + #105, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('resetCSS' type=dynamic), + #42, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rest' type=inline), + #16, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rest' type=inline), + #277, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rest' type=inline), + #283, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rest' type=inline), + #290, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('restProps' type=dynamic), + #343, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('result' type=inline), + #101, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('results' type=inline), + #96, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('results' type=inline), + #98, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ret' type=inline), + #96, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rgb' type=inline), + #64, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 3, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rgb' type=inline), + #68, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rgb' type=inline), + #69, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rgb' type=inline), + #70, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rgb' type=inline), + #88, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 7, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 7, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rgb1' type=inline), + #95, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 8, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rgb2' type=inline), + #95, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rgbToHex' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rgbToHsl' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rgbToHsv' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rgbToRgb' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rgba' type=inline), + #95, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rgbaToArgbHex' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rgbaToHex' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('right' type=inline), + #298, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rnd' type=inline), + #83, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 6, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('rnd' type=inline), + #112, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('runIfFn' type=inline), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('s' type=inline), + #52, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('s' type=inline), + #54, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 5, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('s' type=inline), + #55, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('s' type=inline), + #56, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 5, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('s' type=inline), + #64, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('s' type=inline), + #73, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('s' type=inline), + #75, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('s' type=inline), + #98, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('s' type=inline), + #104, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('s1' type=inline), + #108, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('s2' type=inline), + #108, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sMax' type=inline), + #106, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 3, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sMax' type=inline), + #113, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sMin' type=inline), + #106, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 3, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sMin' type=inline), + #113, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('saturationRange' type=dynamic), + #106, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 3, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('scrollBehavior' type=dynamic), + #220, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('scrollBehavior' type=dynamic), + #221, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('scrollBehavior' type=dynamic), + #222, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('seed' type=inline), + #105, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('seed' type=inline), + #112, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('selectAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('self' type=inline), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: false, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('semanticTokens' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('setAttribute' type=dynamic), + #28, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('setColorMode' type=dynamic), + #340, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('setDelay' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('setInterval' type=dynamic), + #38, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('setNode' type=inline), + #39, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('setState' type=dynamic), + #299, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('setState' type=dynamic), + #300, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('setStateFn' type=dynamic), + #300, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('setTimeout' type=dynamic), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('setTimeout' type=dynamic), + #37, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('shadowColor' type=dynamic), + #231, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('shadows' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('size' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 8, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 8, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('size' type=inline), + #137, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('size' type=inline), + #192, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 10, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 10, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('size' type=inline), + #227, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('size' type=inline), + #353, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('size' type=inline), + #359, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizeLg' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizeLg' type=inline), + #250, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizeMd' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizeMd' type=inline), + #251, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizeSm' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizeSm' type=inline), + #252, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizeStyle' type=dynamic), + #227, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$1' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$2' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$3' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$4' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$5' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$6' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$7' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$8' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$9' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$a' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$b' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$c' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$d' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$e' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$f' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$g' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$h' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$i' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$j' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes$k' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sizes_501602a9_esm_extends' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 21, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 20, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('slices' type=inline), + #96, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sliderAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('solid' type=inline), + #267, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('source' type=inline), + #4, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 3, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('source' type=inline), + #9, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('source' type=inline), + #10, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('source' type=inline), + #43, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('source' type=inline), + #145, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('source' type=inline), + #275, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('source' type=inline), + #276, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('source' type=inline), + #278, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('source' type=inline), + #279, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('source' type=inline), + #287, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('source' type=inline), + #288, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('source' type=inline), + #291, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('source' type=inline), + #342, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('source' type=inline), + #348, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sourceKeys' type=dynamic), + #10, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sourceKeys' type=dynamic), + #276, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sourceKeys' type=dynamic), + #279, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sourceKeys' type=dynamic), + #287, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sourceKeys' type=dynamic), + #342, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sourceValue' type=dynamic), + #349, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('spacing' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('speed' type=inline), + #242, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('speed' type=inline), + #277, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('spin' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('spinnerStyles' type=dynamic), + #277, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ssrDocument' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('ssrWindow' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('start' type=inline), + #242, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('startColor' type=dynamic), + #241, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('startColor' type=dynamic), + #242, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('statAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('state' type=inline), + #299, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('state' type=inline), + #337, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('staticProps' type=dynamic), + #148, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('status' type=inline), + #283, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('status' type=inline), + #286, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('status' type=inline), + #321, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('str' type=inline), + #139, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('str' type=inline), + #140, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('stringInputToObject' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('stripeStyle' type=dynamic), + #233, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('styles' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('styles' type=inline), + #277, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('styles' type=inline), + #283, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('styles' type=inline), + #284, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('styles' type=inline), + #285, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('styles' type=inline), + #286, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('styles' type=inline), + #290, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('styles$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('subscribe' type=dynamic), + #303, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('subtle' type=inline), + #266, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('subtract' type=dynamic), + #164, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('subtract' type=dynamic), + #170, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('switchAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('sym' type=inline), + #5, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('t' type=inline), + #53, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 9, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 2, + mutation_by_call_count: 0, + usage_count: 9, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('t' type=inline), + #56, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('t' type=inline), + #233, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('t' type=inline), + #360, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('tableAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('tabsAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('tagAnatomy' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('target' type=static), + #4, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('target' type=static), + #9, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('target' type=static), + #10, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('target' type=static), + #43, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('target' type=static), + #145, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('target' type=static), + #147, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('target' type=static), + #275, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('target' type=static), + #276, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('target' type=static), + #278, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('target' type=static), + #279, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('target' type=static), + #287, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('target' type=static), + #288, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('target' type=static), + #291, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('target' type=static), + #342, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('tempNode' type=dynamic), + #12, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('textColor' type=dynamic), + #133, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #42, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #114, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #116, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #118, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #120, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #122, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #124, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #126, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #128, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #130, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #132, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #134, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #136, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #183, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #190, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #193, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #194, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #195, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #196, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #213, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 4, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #214, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #215, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 4, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #242, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #264, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #331, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #340, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #351, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #354, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #357, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme' type=inline), + #361, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('theme$1' type=inline), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('themeSize' type=dynamic), + #192, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('thickness' type=dynamic), + #277, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('thumbOrientation' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('tinycolor' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('title' type=inline), + #321, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toExpr' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toExpr' type=inline), + #162, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toRef' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toString' type=static), + #154, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toString' type=static), + #174, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toVar' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toVarRef' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toast' type=inline), + #294, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toast' type=inline), + #296, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toast' type=inline), + #306, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toast' type=inline), + #307, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toast' type=inline), + #314, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toast' type=inline), + #317, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toast' type=inline), + #324, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 9, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 9, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toast' type=inline), + #326, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toast' type=inline), + #339, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toastList' type=dynamic), + #337, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toastMotionVariants' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toastOptions' type=dynamic), + #343, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toastSpacing' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toastSpacing' type=dynamic), + #340, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toastStore' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 10, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 10, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toastStyle' type=dynamic), + #333, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toasts' type=inline), + #293, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toasts' type=inline), + #295, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toasts' type=inline), + #308, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toasts' type=inline), + #338, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('toggleColorMode' type=dynamic), + #340, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('tone' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('tone' type=inline), + #115, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('top' type=inline), + #298, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('totalColors' type=dynamic), + #104, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('transition' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('transitionDuration' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('transitionProperty' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('transitionTimingFunction' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('transparentize' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('transparentize' type=dynamic), + #121, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('typography' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('undefined' type=static), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 18, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 18, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('unit' type=inline), + #273, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('update' type=inline), + #309, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('useAlertContext' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('useChakra' type=dynamic), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('useContext' type=dynamic), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('useEnvironment' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('usePortalContext' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('usePortalManager' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('useStyles' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('useToast' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('use_animation_state_5054a9f7_esm' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 3, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('use_presence' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('util_pad2' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 7, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 7, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('v' type=inline), + #55, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('v' type=inline), + #56, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 11, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 10, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('v' type=inline), + #64, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('v' type=inline), + #73, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 2, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('v' type=inline), + #98, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 3, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 1, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: true, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('v' type=inline), + #104, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('v1' type=inline), + #108, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('v2' type=inline), + #108, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('val' type=inline), + #45, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('val' type=inline), + #62, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('value' type=inline), + #3, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('value' type=inline), + #85, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('value' type=inline), + #139, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: true, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('value' type=inline), + #155, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('value' type=inline), + #157, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('value' type=inline), + #167, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 4, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('value' type=inline), + #175, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('value' type=inline), + #176, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('value' type=inline), + #177, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 4, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 4, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('value' type=inline), + #178, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('value' type=inline), + #180, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('value' type=inline), + #203, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('value' type=inline), + #224, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('valueStr' type=dynamic), + #177, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('values' type=inline), + #151, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: true, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: true, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variant' type=inline), + #321, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variant' type=inline), + #356, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variant' type=inline), + #359, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantDashed' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantEnclosed' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantEnclosed' type=dynamic), + #262, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantEnclosedColored' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantEnclosedColored' type=dynamic), + #263, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantFilled' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantFilled' type=dynamic), + #214, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantFlushed' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantFlushed' type=dynamic), + #215, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantGhost' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 2, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 2, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantGhost' type=dynamic), + #196, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantLeftAccent' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantLeftAccent' type=dynamic), + #185, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantLine' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantLine' type=dynamic), + #261, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantLink' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantLink' type=dynamic), + #199, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantOutline' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantOutline' type=dynamic), + #195, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantOutline' type=dynamic), + #197, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantOutline' type=dynamic), + #213, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantOutline$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantOutline$2' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantSimple' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantSimple' type=dynamic), + #255, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantSoftRounded' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantSoftRounded' type=dynamic), + #264, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantSolid' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantSolid' type=dynamic), + #187, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantSolid' type=dynamic), + #193, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantSolid' type=dynamic), + #198, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantSolid$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantSolid$2' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantSolid$3' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantSolidRounded' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantSolidRounded' type=dynamic), + #265, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantStripe' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantStripe' type=dynamic), + #256, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantSubtle' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantSubtle' type=dynamic), + #184, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantSubtle' type=dynamic), + #194, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantSubtle$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantTopAccent' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantTopAccent' type=dynamic), + #186, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantUnstyled' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantUnstyled$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variantUnstyled$2' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variants' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variants$1' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variants$2' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variants$3' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variants$4' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variants$5' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variants$6' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variants$7' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variants$8' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variants$9' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variants$a' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('variants$b' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('vertical' type=dynamic), + #144, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('whiten' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('whiten' type=inline), + #123, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: true, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('win' type=inline), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('win' type=inline), + #40, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('window' type=inline), + #1, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: false, + declared_count: 0, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: true, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('withColorScheme' type=dynamic), + #352, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('withDefaultColorScheme' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('withDefaultProps' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 0, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 0, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: true, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('withDefaultSize' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('withDefaultVariant' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: true, + var_kind: None, + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: true, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('withSize' type=dynamic), + #355, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('withVariant' type=dynamic), + #358, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('x' type=inline), + #82, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('x' type=inline), + #84, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('x' type=inline), + #167, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('x' type=inline), + #168, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 6, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: true, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 1, + usage_count: 6, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: true, + has_property_access: true, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: false, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: None, + var_initialized: false, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: true, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('zIndex' type=inline), + #8, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ( + ( + Atom('zIndices' type=dynamic), + #2, + ), + VarUsageInfo { + inline_prevented: false, + ref_count: 1, + cond_init: false, + declared: true, + declared_count: 1, + declared_as_fn_param: false, + declared_as_fn_expr: false, + assign_count: 0, + mutation_by_call_count: 0, + usage_count: 1, + reassigned_with_assignment: false, + reassigned_with_var_decl: false, + mutated: false, + has_property_access: false, + has_property_mutation: false, + accessed_props: {}, + exported: false, + used_above_decl: false, + is_fn_local: true, + used_by_nested_fn: true, + executed_multiple_time: false, + used_in_cond: false, + var_kind: Some( + "var", + ), + var_initialized: true, + declared_as_catch_param: false, + no_side_effect_for_member_access: false, + used_as_callee: false, + used_as_arg: false, + pure_fn: false, + infects: [], + }, + ), + ], +} diff --git a/crates/swc_ecma_minifier/tests/fixture/next/chakra/input.js b/crates/swc_ecma_minifier/tests/fixture/next/chakra/input.js new file mode 100644 index 00000000000..cf78319f5e0 --- /dev/null +++ b/crates/swc_ecma_minifier/tests/fixture/next/chakra/input.js @@ -0,0 +1,8394 @@ +(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([ + [888], + { + /***/ 2260: /***/ function ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) { + "use strict"; + // ESM COMPAT FLAG + __webpack_require__.r(__webpack_exports__); + + // EXPORTS + __webpack_require__.d(__webpack_exports__, { + default: function () { + return /* binding */ _app; + }, + }); // CONCATENATED MODULE: ./node_modules/@swc/helpers/src/_define_property.mjs + + function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true, + }); + } else { + obj[key] = value; + } + + return obj; + } // CONCATENATED MODULE: ./node_modules/@swc/helpers/src/_object_spread.mjs + + function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === "function") { + ownKeys = ownKeys.concat( + Object.getOwnPropertySymbols(source).filter( + function (sym) { + return Object.getOwnPropertyDescriptor( + source, + sym + ).enumerable; + } + ) + ); + } + + ownKeys.forEach(function (key) { + _defineProperty(target, key, source[key]); + }); + } + + return target; + } + // EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js + var jsx_runtime = __webpack_require__(5893); + // EXTERNAL MODULE: ./node_modules/react/index.js + var react = __webpack_require__(7294); + // EXTERNAL MODULE: ./node_modules/@emotion/react/dist/emotion-react.browser.esm.js + var emotion_react_browser_esm = __webpack_require__(917); // CONCATENATED MODULE: ./node_modules/@chakra-ui/css-reset/dist/chakra-ui-css-reset.esm.js + var CSSReset = function CSSReset() { + return /*#__PURE__*/ react.createElement( + emotion_react_browser_esm /* Global */.xB, + { + styles: '\n html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n font-family: system-ui, sans-serif;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n -moz-osx-font-smoothing: grayscale;\n touch-action: manipulation;\n }\n\n body {\n position: relative;\n min-height: 100%;\n font-feature-settings: \'kern\';\n }\n\n *,\n *::before,\n *::after {\n border-width: 0;\n border-style: solid;\n box-sizing: border-box;\n }\n\n main {\n display: block;\n }\n\n hr {\n border-top-width: 1px;\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n pre,\n code,\n kbd,\n samp {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 1em;\n }\n\n a {\n background-color: transparent;\n color: inherit;\n text-decoration: inherit;\n }\n\n abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n\n b,\n strong {\n font-weight: bold;\n }\n\n small {\n font-size: 80%;\n }\n\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -0.25em;\n }\n\n sup {\n top: -0.5em;\n }\n\n img {\n border-style: none;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n button,\n input {\n overflow: visible;\n }\n\n button,\n select {\n text-transform: none;\n }\n\n button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n\n fieldset {\n padding: 0.35em 0.75em 0.625em;\n }\n\n legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n progress {\n vertical-align: baseline;\n }\n\n textarea {\n overflow: auto;\n }\n\n [type="checkbox"],\n [type="radio"] {\n box-sizing: border-box;\n padding: 0;\n }\n\n [type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none !important;\n }\n\n input[type="number"] {\n -moz-appearance: textfield;\n }\n\n [type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n [type="search"]::-webkit-search-decoration {\n -webkit-appearance: none !important;\n }\n\n ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n details {\n display: block;\n }\n\n summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none !important;\n }\n\n body,\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre {\n margin: 0;\n }\n\n button {\n background: transparent;\n padding: 0;\n }\n\n fieldset {\n margin: 0;\n padding: 0;\n }\n\n ol,\n ul {\n margin: 0;\n padding: 0;\n }\n\n textarea {\n resize: vertical;\n }\n\n button,\n [role="button"] {\n cursor: pointer;\n }\n\n button::-moz-focus-inner {\n border: 0 !important;\n }\n\n table {\n border-collapse: collapse;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n padding: 0;\n line-height: inherit;\n color: inherit;\n }\n\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n display: block;\n }\n\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n\n [data-js-focus-visible] :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) {\n outline: none;\n box-shadow: none;\n }\n\n select::-ms-expand {\n display: none;\n }\n ', + } + ); + }; + var CSSReset$1 = CSSReset; + + // EXTERNAL MODULE: ./node_modules/@chakra-ui/utils/dist/chakra-ui-utils.esm.js + 3 modules + var chakra_ui_utils_esm = __webpack_require__(5031); + // EXTERNAL MODULE: ./node_modules/@chakra-ui/react-utils/dist/chakra-ui-react-utils.esm.js + var chakra_ui_react_utils_esm = __webpack_require__(6450); + // EXTERNAL MODULE: ./node_modules/@chakra-ui/hooks/dist/chakra-ui-hooks.esm.js + var chakra_ui_hooks_esm = __webpack_require__(7375); + // EXTERNAL MODULE: ./node_modules/@chakra-ui/hooks/dist/use-animation-state-5054a9f7.esm.js + var use_animation_state_5054a9f7_esm = __webpack_require__(4697); + // EXTERNAL MODULE: ./node_modules/react-dom/index.js + var react_dom = __webpack_require__(3935); // CONCATENATED MODULE: ./node_modules/@chakra-ui/portal/dist/chakra-ui-portal.esm.js + var _createContext$1 = (0, + chakra_ui_react_utils_esm /* createContext */.kr)({ + strict: false, + name: "PortalManagerContext", + }), + PortalManagerContextProvider = _createContext$1[0], + usePortalManager = _createContext$1[1]; + function PortalManager(props) { + var children = props.children, + zIndex = props.zIndex; + return /*#__PURE__*/ react.createElement( + PortalManagerContextProvider, + { + value: { + zIndex: zIndex, + }, + }, + children + ); + } + + if (chakra_ui_utils_esm /* __DEV__ */.Ts) { + PortalManager.displayName = "PortalManager"; + } + + function _extends() { + _extends = Object.assign + ? Object.assign.bind() + : function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if ( + Object.prototype.hasOwnProperty.call( + source, + key + ) + ) { + target[key] = source[key]; + } + } + } + + return target; + }; + return _extends.apply(this, arguments); + } + + function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; + } + + var _excluded = ["containerRef"]; + + var _createContext = (0, + chakra_ui_react_utils_esm /* createContext */.kr)({ + strict: false, + name: "PortalContext", + }), + PortalContextProvider = _createContext[0], + usePortalContext = _createContext[1]; + + var PORTAL_CLASSNAME = "chakra-portal"; + var PORTAL_SELECTOR = ".chakra-portal"; + + var Container = function Container(props) { + return /*#__PURE__*/ react.createElement( + "div", + { + className: "chakra-portal-zIndex", + style: { + position: "absolute", + zIndex: props.zIndex, + top: 0, + left: 0, + right: 0, // NB: Don't add `bottom: 0`, it makes the entire app unusable + // @see https://github.com/chakra-ui/chakra-ui/issues/3201 + }, + }, + props.children + ); + }; + /** + * Portal that uses `document.body` as container + */ + + var DefaultPortal = function DefaultPortal(props) { + var appendToParentPortal = props.appendToParentPortal, + children = props.children; + var tempNode = react.useRef(null); + var portal = react.useRef(null); + var forceUpdate = (0, + chakra_ui_hooks_esm /* useForceUpdate */.NW)(); + var parentPortal = usePortalContext(); + var manager = usePortalManager(); + (0, use_animation_state_5054a9f7_esm.a)(function () { + if (!tempNode.current) return; + var doc = tempNode.current.ownerDocument; + var host = appendToParentPortal + ? parentPortal != null + ? parentPortal + : doc.body + : doc.body; + if (!host) return; + portal.current = doc.createElement("div"); + portal.current.className = PORTAL_CLASSNAME; + host.appendChild(portal.current); + forceUpdate(); + var portalNode = portal.current; + return function () { + if (host.contains(portalNode)) { + host.removeChild(portalNode); + } + }; + }, []); + + var _children = + manager != null && manager.zIndex + ? /*#__PURE__*/ react.createElement( + Container, + { + zIndex: + manager == null ? void 0 : manager.zIndex, + }, + children + ) + : children; + + return portal.current + ? /*#__PURE__*/ (0, react_dom.createPortal)( + /*#__PURE__*/ react.createElement( + PortalContextProvider, + { + value: portal.current, + }, + _children + ), + portal.current + ) + : /*#__PURE__*/ react.createElement("span", { + ref: tempNode, + }); + }; + + /** + * Portal that uses a custom container + */ + var ContainerPortal = function ContainerPortal(props) { + var children = props.children, + containerRef = props.containerRef, + appendToParentPortal = props.appendToParentPortal; + var containerEl = containerRef.current; + var host = + containerEl != null + ? containerEl + : chakra_ui_utils_esm /* isBrowser */.jU + ? document.body + : undefined; + var portal = react.useMemo( + function () { + var node = + containerEl == null + ? void 0 + : containerEl.ownerDocument.createElement( + "div" + ); + if (node) node.className = PORTAL_CLASSNAME; + return node; + }, + [containerEl] + ); + var forceUpdate = (0, + chakra_ui_hooks_esm /* useForceUpdate */.NW)(); + (0, use_animation_state_5054a9f7_esm.a)(function () { + forceUpdate(); + }, []); + (0, use_animation_state_5054a9f7_esm.a)( + function () { + if (!portal || !host) return; + host.appendChild(portal); + return function () { + host.removeChild(portal); + }; + }, + [portal, host] + ); + + if (host && portal) { + return /*#__PURE__*/ (0, react_dom.createPortal)( + /*#__PURE__*/ react.createElement( + PortalContextProvider, + { + value: appendToParentPortal ? portal : null, + }, + children + ), + portal + ); + } + + return null; + }; + + /** + * Portal + * + * Declarative component used to render children into a DOM node + * that exists outside the DOM hierarchy of the parent component. + * + * @see Docs https://chakra-ui.com/portal + */ + function Portal(props) { + var containerRef = props.containerRef, + rest = _objectWithoutPropertiesLoose(props, _excluded); + + return containerRef + ? /*#__PURE__*/ react.createElement( + ContainerPortal, + _extends( + { + containerRef: containerRef, + }, + rest + ) + ) + : /*#__PURE__*/ react.createElement(DefaultPortal, rest); + } + Portal.defaultProps = { + appendToParentPortal: true, + }; + Portal.className = PORTAL_CLASSNAME; + Portal.selector = PORTAL_SELECTOR; + + if (chakra_ui_utils_esm /* __DEV__ */.Ts) { + Portal.displayName = "Portal"; + } + + // EXTERNAL MODULE: ./node_modules/@chakra-ui/system/dist/chakra-ui-system.esm.js + 3 modules + var chakra_ui_system_esm = __webpack_require__(2846); + // EXTERNAL MODULE: ./node_modules/@chakra-ui/color-mode/dist/chakra-ui-color-mode.esm.js + var chakra_ui_color_mode_esm = __webpack_require__(949); // CONCATENATED MODULE: ./node_modules/@chakra-ui/react-env/dist/chakra-ui-react-env.esm.js + var doc = { + body: { + classList: { + add: function add() { }, + remove: function remove() { }, + }, + }, + addEventListener: function addEventListener() { }, + removeEventListener: function removeEventListener() { }, + activeElement: { + blur: function blur() { }, + nodeName: "", + }, + querySelector: function querySelector() { + return null; + }, + querySelectorAll: function querySelectorAll() { + return []; + }, + getElementById: function getElementById() { + return null; + }, + createEvent: function createEvent() { + return { + initEvent: function initEvent() { }, + }; + }, + createElement: function createElement() { + return { + children: [], + childNodes: [], + style: {}, + setAttribute: function setAttribute() { }, + getElementsByTagName: function getElementsByTagName() { + return []; + }, + }; + }, + }; + var ssrDocument = doc; + + var noop = function noop() { }; + + var win = { + document: ssrDocument, + navigator: { + userAgent: "", + }, + CustomEvent: function CustomEvent() { + return this; + }, + addEventListener: noop, + removeEventListener: noop, + getComputedStyle: function getComputedStyle() { + return { + getPropertyValue: function getPropertyValue() { + return ""; + }, + }; + }, + matchMedia: function matchMedia() { + return { + matches: false, + addListener: noop, + removeListener: noop, + }; + }, + requestAnimationFrame: function requestAnimationFrame( + callback + ) { + if (typeof setTimeout === "undefined") { + callback(); + return null; + } + + return setTimeout(callback, 0); + }, + cancelAnimationFrame: function cancelAnimationFrame(id) { + if (typeof setTimeout === "undefined") return; + clearTimeout(id); + }, + setTimeout: function setTimeout() { + return 0; + }, + clearTimeout: noop, + setInterval: function setInterval() { + return 0; + }, + clearInterval: noop, + }; + var ssrWindow = win; + + var mockEnv = { + window: ssrWindow, + document: ssrDocument, + }; + var defaultEnv = chakra_ui_utils_esm /* isBrowser */.jU + ? { + window: window, + document: document, + } + : mockEnv; + var EnvironmentContext = /*#__PURE__*/ (0, react.createContext)( + defaultEnv + ); + + if (chakra_ui_utils_esm /* __DEV__ */.Ts) { + EnvironmentContext.displayName = "EnvironmentContext"; + } + + function useEnvironment() { + return useContext(EnvironmentContext); + } + function EnvironmentProvider(props) { + var children = props.children, + environmentProp = props.environment; + + var _useState = (0, react.useState)(null), + node = _useState[0], + setNode = _useState[1]; + + var context = (0, react.useMemo)( + function () { + var _ref; + + var doc = node == null ? void 0 : node.ownerDocument; + var win = + node == null + ? void 0 + : node.ownerDocument.defaultView; + var nodeEnv = doc + ? { + document: doc, + window: win, + } + : undefined; + var env = + (_ref = + environmentProp != null + ? environmentProp + : nodeEnv) != null + ? _ref + : defaultEnv; + return env; + }, + [node, environmentProp] + ); + return /*#__PURE__*/ react.createElement( + EnvironmentContext.Provider, + { + value: context, + }, + children, + /*#__PURE__*/ react.createElement("span", { + hidden: true, + className: "chakra-env", + ref: function ref(el) { + (0, react.startTransition)(function () { + if (el) setNode(el); + }); + }, + }) + ); + } + + if (chakra_ui_utils_esm /* __DEV__ */.Ts) { + EnvironmentProvider.displayName = "EnvironmentProvider"; + } // CONCATENATED MODULE: ./node_modules/@chakra-ui/provider/dist/chakra-ui-provider.esm.js + + /** + * The global provider that must be added to make all Chakra components + * work correctly + */ + var chakra_ui_provider_esm_ChakraProvider = function ChakraProvider( + props + ) { + var children = props.children, + colorModeManager = props.colorModeManager, + portalZIndex = props.portalZIndex, + _props$resetCSS = props.resetCSS, + resetCSS = + _props$resetCSS === void 0 ? true : _props$resetCSS, + _props$theme = props.theme, + theme = _props$theme === void 0 ? {} : _props$theme, + environment = props.environment, + cssVarsRoot = props.cssVarsRoot; + + var _children = /*#__PURE__*/ react.createElement( + EnvironmentProvider, + { + environment: environment, + }, + children + ); + + return /*#__PURE__*/ react.createElement( + chakra_ui_system_esm /* ThemeProvider */.f6, + { + theme: theme, + cssVarsRoot: cssVarsRoot, + }, + /*#__PURE__*/ react.createElement( + chakra_ui_color_mode_esm /* ColorModeProvider */.SG, + { + colorModeManager: colorModeManager, + options: theme.config, + }, + resetCSS && + /*#__PURE__*/ react.createElement(CSSReset$1, null), + /*#__PURE__*/ react.createElement( + chakra_ui_system_esm /* GlobalStyle */.ZL, + null + ), + portalZIndex + ? /*#__PURE__*/ react.createElement( + PortalManager, + { + zIndex: portalZIndex, + }, + _children + ) + : _children + ) + ); + }; // CONCATENATED MODULE: ./node_modules/@chakra-ui/theme/foundations/spacing/dist/chakra-ui-theme-foundations-spacing.esm.js + + var spacing = { + px: "1px", + 0.5: "0.125rem", + 1: "0.25rem", + 1.5: "0.375rem", + 2: "0.5rem", + 2.5: "0.625rem", + 3: "0.75rem", + 3.5: "0.875rem", + 4: "1rem", + 5: "1.25rem", + 6: "1.5rem", + 7: "1.75rem", + 8: "2rem", + 9: "2.25rem", + 10: "2.5rem", + 12: "3rem", + 14: "3.5rem", + 16: "4rem", + 20: "5rem", + 24: "6rem", + 28: "7rem", + 32: "8rem", + 36: "9rem", + 40: "10rem", + 44: "11rem", + 48: "12rem", + 52: "13rem", + 56: "14rem", + 60: "15rem", + 64: "16rem", + 72: "18rem", + 80: "20rem", + 96: "24rem", + }; // CONCATENATED MODULE: ./node_modules/@chakra-ui/theme/dist/sizes-501602a9.esm.js + + function sizes_501602a9_esm_extends() { + sizes_501602a9_esm_extends = Object.assign + ? Object.assign.bind() + : function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if ( + Object.prototype.hasOwnProperty.call( + source, + key + ) + ) { + target[key] = source[key]; + } + } + } + + return target; + }; + return sizes_501602a9_esm_extends.apply(this, arguments); + } + + var largeSizes = { + max: "max-content", + min: "min-content", + full: "100%", + "3xs": "14rem", + "2xs": "16rem", + xs: "20rem", + sm: "24rem", + md: "28rem", + lg: "32rem", + xl: "36rem", + "2xl": "42rem", + "3xl": "48rem", + "4xl": "56rem", + "5xl": "64rem", + "6xl": "72rem", + "7xl": "80rem", + "8xl": "90rem", + }; + var container = { + sm: "640px", + md: "768px", + lg: "1024px", + xl: "1280px", + }; + + var sizes = sizes_501602a9_esm_extends({}, spacing, largeSizes, { + container: container, + }); // CONCATENATED MODULE: ./node_modules/@ctrl/tinycolor/dist/module/util.js + + /** + * Take input from [0, n] and return it as [0, 1] + * @hidden + */ + function bound01(n, max) { + if (isOnePointZero(n)) { + n = "100%"; + } + var isPercent = isPercentage(n); + n = max === 360 ? n : Math.min(max, Math.max(0, parseFloat(n))); + // Automatically convert percentage into number + if (isPercent) { + n = parseInt(String(n * max), 10) / 100; + } + // Handle floating point rounding errors + if (Math.abs(n - max) < 0.000001) { + return 1; + } + // Convert into [0, 1] range if it isn't already + if (max === 360) { + // If n is a hue given in degrees, + // wrap around out-of-range values into [0, 360] range + // then convert into [0, 1]. + n = + (n < 0 ? (n % max) + max : n % max) / + parseFloat(String(max)); + } else { + // If n not a hue given in degrees + // Convert into [0, 1] range if it isn't already. + n = (n % max) / parseFloat(String(max)); + } + return n; + } + /** + * Force a number between 0 and 1 + * @hidden + */ + function clamp01(val) { + return Math.min(1, Math.max(0, val)); + } + /** + * Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1 + * + * @hidden + */ + function isOnePointZero(n) { + return ( + typeof n === "string" && + n.indexOf(".") !== -1 && + parseFloat(n) === 1 + ); + } + /** + * Check to see if string passed in is a percentage + * @hidden + */ + function isPercentage(n) { + return typeof n === "string" && n.indexOf("%") !== -1; + } + /** + * Return a valid alpha value [0,1] with all invalid values being set to 1 + * @hidden + */ + function boundAlpha(a) { + a = parseFloat(a); + if (isNaN(a) || a < 0 || a > 1) { + a = 1; + } + return a; + } + /** + * Replace a decimal with it's percentage value + * @hidden + */ + function convertToPercentage(n) { + if (n <= 1) { + return "".concat(Number(n) * 100, "%"); + } + return n; + } + /** + * Force a hex value to have 2 characters + * @hidden + */ + function util_pad2(c) { + return c.length === 1 ? "0" + c : String(c); + } // CONCATENATED MODULE: ./node_modules/@ctrl/tinycolor/dist/module/conversion.js + + // `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from: + // + /** + * Handle bounds / percentage checking to conform to CSS color spec + * + * *Assumes:* r, g, b in [0, 255] or [0, 1] + * *Returns:* { r, g, b } in [0, 255] + */ + function rgbToRgb(r, g, b) { + return { + r: bound01(r, 255) * 255, + g: bound01(g, 255) * 255, + b: bound01(b, 255) * 255, + }; + } + /** + * Converts an RGB color value to HSL. + * *Assumes:* r, g, and b are contained in [0, 255] or [0, 1] + * *Returns:* { h, s, l } in [0,1] + */ + function rgbToHsl(r, g, b) { + r = bound01(r, 255); + g = bound01(g, 255); + b = bound01(b, 255); + var max = Math.max(r, g, b); + var min = Math.min(r, g, b); + var h = 0; + var s = 0; + var l = (max + min) / 2; + if (max === min) { + s = 0; + h = 0; // achromatic + } else { + var d = max - min; + s = l > 0.5 ? d / (2 - max - min) : d / (max + min); + switch (max) { + case r: + h = (g - b) / d + (g < b ? 6 : 0); + break; + case g: + h = (b - r) / d + 2; + break; + case b: + h = (r - g) / d + 4; + break; + default: + break; + } + h /= 6; + } + return { h: h, s: s, l: l }; + } + function hue2rgb(p, q, t) { + if (t < 0) { + t += 1; + } + if (t > 1) { + t -= 1; + } + if (t < 1 / 6) { + return p + (q - p) * (6 * t); + } + if (t < 1 / 2) { + return q; + } + if (t < 2 / 3) { + return p + (q - p) * (2 / 3 - t) * 6; + } + return p; + } + /** + * Converts an HSL color value to RGB. + * + * *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100] + * *Returns:* { r, g, b } in the set [0, 255] + */ + function hslToRgb(h, s, l) { + var r; + var g; + var b; + h = bound01(h, 360); + s = bound01(s, 100); + l = bound01(l, 100); + if (s === 0) { + // achromatic + g = l; + b = l; + r = l; + } else { + var q = l < 0.5 ? l * (1 + s) : l + s - l * s; + var p = 2 * l - q; + r = hue2rgb(p, q, h + 1 / 3); + g = hue2rgb(p, q, h); + b = hue2rgb(p, q, h - 1 / 3); + } + return { r: r * 255, g: g * 255, b: b * 255 }; + } + /** + * Converts an RGB color value to HSV + * + * *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1] + * *Returns:* { h, s, v } in [0,1] + */ + function rgbToHsv(r, g, b) { + r = bound01(r, 255); + g = bound01(g, 255); + b = bound01(b, 255); + var max = Math.max(r, g, b); + var min = Math.min(r, g, b); + var h = 0; + var v = max; + var d = max - min; + var s = max === 0 ? 0 : d / max; + if (max === min) { + h = 0; // achromatic + } else { + switch (max) { + case r: + h = (g - b) / d + (g < b ? 6 : 0); + break; + case g: + h = (b - r) / d + 2; + break; + case b: + h = (r - g) / d + 4; + break; + default: + break; + } + h /= 6; + } + return { h: h, s: s, v: v }; + } + /** + * Converts an HSV color value to RGB. + * + * *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100] + * *Returns:* { r, g, b } in the set [0, 255] + */ + function hsvToRgb(h, s, v) { + h = bound01(h, 360) * 6; + s = bound01(s, 100); + v = bound01(v, 100); + var i = Math.floor(h); + var f = h - i; + var p = v * (1 - s); + var q = v * (1 - f * s); + var t = v * (1 - (1 - f) * s); + var mod = i % 6; + var r = [v, q, p, p, t, v][mod]; + var g = [t, v, v, q, p, p][mod]; + var b = [p, p, t, v, v, q][mod]; + return { r: r * 255, g: g * 255, b: b * 255 }; + } + /** + * Converts an RGB color to hex + * + * Assumes r, g, and b are contained in the set [0, 255] + * Returns a 3 or 6 character hex + */ + function rgbToHex(r, g, b, allow3Char) { + var hex = [ + util_pad2(Math.round(r).toString(16)), + util_pad2(Math.round(g).toString(16)), + util_pad2(Math.round(b).toString(16)), + ]; + // Return a 3 character hex if possible + if ( + allow3Char && + hex[0].startsWith(hex[0].charAt(1)) && + hex[1].startsWith(hex[1].charAt(1)) && + hex[2].startsWith(hex[2].charAt(1)) + ) { + return ( + hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + ); + } + return hex.join(""); + } + /** + * Converts an RGBA color plus alpha transparency to hex + * + * Assumes r, g, b are contained in the set [0, 255] and + * a in [0, 1]. Returns a 4 or 8 character rgba hex + */ + // eslint-disable-next-line max-params + function rgbaToHex(r, g, b, a, allow4Char) { + var hex = [ + util_pad2(Math.round(r).toString(16)), + util_pad2(Math.round(g).toString(16)), + util_pad2(Math.round(b).toString(16)), + util_pad2(convertDecimalToHex(a)), + ]; + // Return a 4 character hex if possible + if ( + allow4Char && + hex[0].startsWith(hex[0].charAt(1)) && + hex[1].startsWith(hex[1].charAt(1)) && + hex[2].startsWith(hex[2].charAt(1)) && + hex[3].startsWith(hex[3].charAt(1)) + ) { + return ( + hex[0].charAt(0) + + hex[1].charAt(0) + + hex[2].charAt(0) + + hex[3].charAt(0) + ); + } + return hex.join(""); + } + /** + * Converts an RGBA color to an ARGB Hex8 string + * Rarely used, but required for "toFilter()" + */ + function rgbaToArgbHex(r, g, b, a) { + var hex = [ + pad2(convertDecimalToHex(a)), + pad2(Math.round(r).toString(16)), + pad2(Math.round(g).toString(16)), + pad2(Math.round(b).toString(16)), + ]; + return hex.join(""); + } + /** Converts a decimal to a hex value */ + function convertDecimalToHex(d) { + return Math.round(parseFloat(d) * 255).toString(16); + } + /** Converts a hex value to a decimal */ + function convertHexToDecimal(h) { + return parseIntFromHex(h) / 255; + } + /** Parse a base-16 hex value into a base-10 integer */ + function parseIntFromHex(val) { + return parseInt(val, 16); + } + function numberInputToObject(color) { + return { + r: color >> 16, + g: (color & 0xff00) >> 8, + b: color & 0xff, + }; + } // CONCATENATED MODULE: ./node_modules/@ctrl/tinycolor/dist/module/css-color-names.js + + // https://github.com/bahamas10/css-color-names/blob/master/css-color-names.json + /** + * @hidden + */ + var names = { + aliceblue: "#f0f8ff", + antiquewhite: "#faebd7", + aqua: "#00ffff", + aquamarine: "#7fffd4", + azure: "#f0ffff", + beige: "#f5f5dc", + bisque: "#ffe4c4", + black: "#000000", + blanchedalmond: "#ffebcd", + blue: "#0000ff", + blueviolet: "#8a2be2", + brown: "#a52a2a", + burlywood: "#deb887", + cadetblue: "#5f9ea0", + chartreuse: "#7fff00", + chocolate: "#d2691e", + coral: "#ff7f50", + cornflowerblue: "#6495ed", + cornsilk: "#fff8dc", + crimson: "#dc143c", + cyan: "#00ffff", + darkblue: "#00008b", + darkcyan: "#008b8b", + darkgoldenrod: "#b8860b", + darkgray: "#a9a9a9", + darkgreen: "#006400", + darkgrey: "#a9a9a9", + darkkhaki: "#bdb76b", + darkmagenta: "#8b008b", + darkolivegreen: "#556b2f", + darkorange: "#ff8c00", + darkorchid: "#9932cc", + darkred: "#8b0000", + darksalmon: "#e9967a", + darkseagreen: "#8fbc8f", + darkslateblue: "#483d8b", + darkslategray: "#2f4f4f", + darkslategrey: "#2f4f4f", + darkturquoise: "#00ced1", + darkviolet: "#9400d3", + deeppink: "#ff1493", + deepskyblue: "#00bfff", + dimgray: "#696969", + dimgrey: "#696969", + dodgerblue: "#1e90ff", + firebrick: "#b22222", + floralwhite: "#fffaf0", + forestgreen: "#228b22", + fuchsia: "#ff00ff", + gainsboro: "#dcdcdc", + ghostwhite: "#f8f8ff", + goldenrod: "#daa520", + gold: "#ffd700", + gray: "#808080", + green: "#008000", + greenyellow: "#adff2f", + grey: "#808080", + honeydew: "#f0fff0", + hotpink: "#ff69b4", + indianred: "#cd5c5c", + indigo: "#4b0082", + ivory: "#fffff0", + khaki: "#f0e68c", + lavenderblush: "#fff0f5", + lavender: "#e6e6fa", + lawngreen: "#7cfc00", + lemonchiffon: "#fffacd", + lightblue: "#add8e6", + lightcoral: "#f08080", + lightcyan: "#e0ffff", + lightgoldenrodyellow: "#fafad2", + lightgray: "#d3d3d3", + lightgreen: "#90ee90", + lightgrey: "#d3d3d3", + lightpink: "#ffb6c1", + lightsalmon: "#ffa07a", + lightseagreen: "#20b2aa", + lightskyblue: "#87cefa", + lightslategray: "#778899", + lightslategrey: "#778899", + lightsteelblue: "#b0c4de", + lightyellow: "#ffffe0", + lime: "#00ff00", + limegreen: "#32cd32", + linen: "#faf0e6", + magenta: "#ff00ff", + maroon: "#800000", + mediumaquamarine: "#66cdaa", + mediumblue: "#0000cd", + mediumorchid: "#ba55d3", + mediumpurple: "#9370db", + mediumseagreen: "#3cb371", + mediumslateblue: "#7b68ee", + mediumspringgreen: "#00fa9a", + mediumturquoise: "#48d1cc", + mediumvioletred: "#c71585", + midnightblue: "#191970", + mintcream: "#f5fffa", + mistyrose: "#ffe4e1", + moccasin: "#ffe4b5", + navajowhite: "#ffdead", + navy: "#000080", + oldlace: "#fdf5e6", + olive: "#808000", + olivedrab: "#6b8e23", + orange: "#ffa500", + orangered: "#ff4500", + orchid: "#da70d6", + palegoldenrod: "#eee8aa", + palegreen: "#98fb98", + paleturquoise: "#afeeee", + palevioletred: "#db7093", + papayawhip: "#ffefd5", + peachpuff: "#ffdab9", + peru: "#cd853f", + pink: "#ffc0cb", + plum: "#dda0dd", + powderblue: "#b0e0e6", + purple: "#800080", + rebeccapurple: "#663399", + red: "#ff0000", + rosybrown: "#bc8f8f", + royalblue: "#4169e1", + saddlebrown: "#8b4513", + salmon: "#fa8072", + sandybrown: "#f4a460", + seagreen: "#2e8b57", + seashell: "#fff5ee", + sienna: "#a0522d", + silver: "#c0c0c0", + skyblue: "#87ceeb", + slateblue: "#6a5acd", + slategray: "#708090", + slategrey: "#708090", + snow: "#fffafa", + springgreen: "#00ff7f", + steelblue: "#4682b4", + tan: "#d2b48c", + teal: "#008080", + thistle: "#d8bfd8", + tomato: "#ff6347", + turquoise: "#40e0d0", + violet: "#ee82ee", + wheat: "#f5deb3", + white: "#ffffff", + whitesmoke: "#f5f5f5", + yellow: "#ffff00", + yellowgreen: "#9acd32", + }; // CONCATENATED MODULE: ./node_modules/@ctrl/tinycolor/dist/module/format-input.js + + /** + * Given a string or object, convert that input to RGB + * + * Possible string inputs: + * ``` + * "red" + * "#f00" or "f00" + * "#ff0000" or "ff0000" + * "#ff000000" or "ff000000" + * "rgb 255 0 0" or "rgb (255, 0, 0)" + * "rgb 1.0 0 0" or "rgb (1, 0, 0)" + * "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1" + * "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1" + * "hsl(0, 100%, 50%)" or "hsl 0 100% 50%" + * "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1" + * "hsv(0, 100%, 100%)" or "hsv 0 100% 100%" + * ``` + */ + function inputToRGB(color) { + var rgb = { r: 0, g: 0, b: 0 }; + var a = 1; + var s = null; + var v = null; + var l = null; + var ok = false; + var format = false; + if (typeof color === "string") { + color = stringInputToObject(color); + } + if (typeof color === "object") { + if ( + isValidCSSUnit(color.r) && + isValidCSSUnit(color.g) && + isValidCSSUnit(color.b) + ) { + rgb = rgbToRgb(color.r, color.g, color.b); + ok = true; + format = + String(color.r).substr(-1) === "%" ? "prgb" : "rgb"; + } else if ( + isValidCSSUnit(color.h) && + isValidCSSUnit(color.s) && + isValidCSSUnit(color.v) + ) { + s = convertToPercentage(color.s); + v = convertToPercentage(color.v); + rgb = hsvToRgb(color.h, s, v); + ok = true; + format = "hsv"; + } else if ( + isValidCSSUnit(color.h) && + isValidCSSUnit(color.s) && + isValidCSSUnit(color.l) + ) { + s = convertToPercentage(color.s); + l = convertToPercentage(color.l); + rgb = hslToRgb(color.h, s, l); + ok = true; + format = "hsl"; + } + if (Object.prototype.hasOwnProperty.call(color, "a")) { + a = color.a; + } + } + a = boundAlpha(a); + return { + ok: ok, + format: color.format || format, + r: Math.min(255, Math.max(rgb.r, 0)), + g: Math.min(255, Math.max(rgb.g, 0)), + b: Math.min(255, Math.max(rgb.b, 0)), + a: a, + }; + } + // + var CSS_INTEGER = "[-\\+]?\\d+%?"; + // + var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; + // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome. + var CSS_UNIT = "(?:" + .concat(CSS_NUMBER, ")|(?:") + .concat(CSS_INTEGER, ")"); + // Actual matching. + // Parentheses and commas are optional, but not required. + // Whitespace can take the place of commas or opening paren + var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + .concat(CSS_UNIT, ")[,|\\s]+(") + .concat(CSS_UNIT, ")[,|\\s]+(") + .concat(CSS_UNIT, ")\\s*\\)?"); + var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + .concat(CSS_UNIT, ")[,|\\s]+(") + .concat(CSS_UNIT, ")[,|\\s]+(") + .concat(CSS_UNIT, ")[,|\\s]+(") + .concat(CSS_UNIT, ")\\s*\\)?"); + var matchers = { + CSS_UNIT: new RegExp(CSS_UNIT), + rgb: new RegExp("rgb" + PERMISSIVE_MATCH3), + rgba: new RegExp("rgba" + PERMISSIVE_MATCH4), + hsl: new RegExp("hsl" + PERMISSIVE_MATCH3), + hsla: new RegExp("hsla" + PERMISSIVE_MATCH4), + hsv: new RegExp("hsv" + PERMISSIVE_MATCH3), + hsva: new RegExp("hsva" + PERMISSIVE_MATCH4), + hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, + hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, + }; + /** + * Permissive string parsing. Take in a number of formats, and output an object + * based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}` + */ + function stringInputToObject(color) { + color = color.trim().toLowerCase(); + if (color.length === 0) { + return false; + } + var named = false; + if (names[color]) { + color = names[color]; + named = true; + } else if (color === "transparent") { + return { r: 0, g: 0, b: 0, a: 0, format: "name" }; + } + // Try to match string input using regular expressions. + // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360] + // Just return an object and let the conversion functions handle that. + // This way the result will be the same whether the tinycolor is initialized with string or object. + var match = matchers.rgb.exec(color); + if (match) { + return { r: match[1], g: match[2], b: match[3] }; + } + match = matchers.rgba.exec(color); + if (match) { + return { + r: match[1], + g: match[2], + b: match[3], + a: match[4], + }; + } + match = matchers.hsl.exec(color); + if (match) { + return { h: match[1], s: match[2], l: match[3] }; + } + match = matchers.hsla.exec(color); + if (match) { + return { + h: match[1], + s: match[2], + l: match[3], + a: match[4], + }; + } + match = matchers.hsv.exec(color); + if (match) { + return { h: match[1], s: match[2], v: match[3] }; + } + match = matchers.hsva.exec(color); + if (match) { + return { + h: match[1], + s: match[2], + v: match[3], + a: match[4], + }; + } + match = matchers.hex8.exec(color); + if (match) { + return { + r: parseIntFromHex(match[1]), + g: parseIntFromHex(match[2]), + b: parseIntFromHex(match[3]), + a: convertHexToDecimal(match[4]), + format: named ? "name" : "hex8", + }; + } + match = matchers.hex6.exec(color); + if (match) { + return { + r: parseIntFromHex(match[1]), + g: parseIntFromHex(match[2]), + b: parseIntFromHex(match[3]), + format: named ? "name" : "hex", + }; + } + match = matchers.hex4.exec(color); + if (match) { + return { + r: parseIntFromHex(match[1] + match[1]), + g: parseIntFromHex(match[2] + match[2]), + b: parseIntFromHex(match[3] + match[3]), + a: convertHexToDecimal(match[4] + match[4]), + format: named ? "name" : "hex8", + }; + } + match = matchers.hex3.exec(color); + if (match) { + return { + r: parseIntFromHex(match[1] + match[1]), + g: parseIntFromHex(match[2] + match[2]), + b: parseIntFromHex(match[3] + match[3]), + format: named ? "name" : "hex", + }; + } + return false; + } + /** + * Check to see if it looks like a CSS unit + * (see `matchers` above for definition). + */ + function isValidCSSUnit(color) { + return Boolean(matchers.CSS_UNIT.exec(String(color))); + } // CONCATENATED MODULE: ./node_modules/@ctrl/tinycolor/dist/module/index.js + + var module_TinyColor = /** @class */ (function () { + function TinyColor(color, opts) { + if (color === void 0) { + color = ""; + } + if (opts === void 0) { + opts = {}; + } + var _a; + // If input is already a tinycolor, return itself + if (color instanceof TinyColor) { + // eslint-disable-next-line no-constructor-return + return color; + } + if (typeof color === "number") { + color = numberInputToObject(color); + } + this.originalInput = color; + var rgb = inputToRGB(color); + this.originalInput = color; + this.r = rgb.r; + this.g = rgb.g; + this.b = rgb.b; + this.a = rgb.a; + this.roundA = Math.round(100 * this.a) / 100; + this.format = + (_a = opts.format) !== null && _a !== void 0 + ? _a + : rgb.format; + this.gradientType = opts.gradientType; + // Don't let the range of [0,255] come back in [0,1]. + // Potentially lose a little bit of precision here, but will fix issues where + // .5 gets interpreted as half of the total, instead of half of 1 + // If it was supposed to be 128, this was already taken care of by `inputToRgb` + if (this.r < 1) { + this.r = Math.round(this.r); + } + if (this.g < 1) { + this.g = Math.round(this.g); + } + if (this.b < 1) { + this.b = Math.round(this.b); + } + this.isValid = rgb.ok; + } + TinyColor.prototype.isDark = function () { + return this.getBrightness() < 128; + }; + TinyColor.prototype.isLight = function () { + return !this.isDark(); + }; + /** + * Returns the perceived brightness of the color, from 0-255. + */ + TinyColor.prototype.getBrightness = function () { + // http://www.w3.org/TR/AERT#color-contrast + var rgb = this.toRgb(); + return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000; + }; + /** + * Returns the perceived luminance of a color, from 0-1. + */ + TinyColor.prototype.getLuminance = function () { + // http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef + var rgb = this.toRgb(); + var R; + var G; + var B; + var RsRGB = rgb.r / 255; + var GsRGB = rgb.g / 255; + var BsRGB = rgb.b / 255; + if (RsRGB <= 0.03928) { + R = RsRGB / 12.92; + } else { + // eslint-disable-next-line prefer-exponentiation-operator + R = Math.pow((RsRGB + 0.055) / 1.055, 2.4); + } + if (GsRGB <= 0.03928) { + G = GsRGB / 12.92; + } else { + // eslint-disable-next-line prefer-exponentiation-operator + G = Math.pow((GsRGB + 0.055) / 1.055, 2.4); + } + if (BsRGB <= 0.03928) { + B = BsRGB / 12.92; + } else { + // eslint-disable-next-line prefer-exponentiation-operator + B = Math.pow((BsRGB + 0.055) / 1.055, 2.4); + } + return 0.2126 * R + 0.7152 * G + 0.0722 * B; + }; + /** + * Returns the alpha value of a color, from 0-1. + */ + TinyColor.prototype.getAlpha = function () { + return this.a; + }; + /** + * Sets the alpha value on the current color. + * + * @param alpha - The new alpha value. The accepted range is 0-1. + */ + TinyColor.prototype.setAlpha = function (alpha) { + this.a = boundAlpha(alpha); + this.roundA = Math.round(100 * this.a) / 100; + return this; + }; + /** + * Returns the object as a HSVA object. + */ + TinyColor.prototype.toHsv = function () { + var hsv = rgbToHsv(this.r, this.g, this.b); + return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this.a }; + }; + /** + * Returns the hsva values interpolated into a string with the following format: + * "hsva(xxx, xxx, xxx, xx)". + */ + TinyColor.prototype.toHsvString = function () { + var hsv = rgbToHsv(this.r, this.g, this.b); + var h = Math.round(hsv.h * 360); + var s = Math.round(hsv.s * 100); + var v = Math.round(hsv.v * 100); + return this.a === 1 + ? "hsv(" + .concat(h, ", ") + .concat(s, "%, ") + .concat(v, "%)") + : "hsva(" + .concat(h, ", ") + .concat(s, "%, ") + .concat(v, "%, ") + .concat(this.roundA, ")"); + }; + /** + * Returns the object as a HSLA object. + */ + TinyColor.prototype.toHsl = function () { + var hsl = rgbToHsl(this.r, this.g, this.b); + return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this.a }; + }; + /** + * Returns the hsla values interpolated into a string with the following format: + * "hsla(xxx, xxx, xxx, xx)". + */ + TinyColor.prototype.toHslString = function () { + var hsl = rgbToHsl(this.r, this.g, this.b); + var h = Math.round(hsl.h * 360); + var s = Math.round(hsl.s * 100); + var l = Math.round(hsl.l * 100); + return this.a === 1 + ? "hsl(" + .concat(h, ", ") + .concat(s, "%, ") + .concat(l, "%)") + : "hsla(" + .concat(h, ", ") + .concat(s, "%, ") + .concat(l, "%, ") + .concat(this.roundA, ")"); + }; + /** + * Returns the hex value of the color. + * @param allow3Char will shorten hex value to 3 char if possible + */ + TinyColor.prototype.toHex = function (allow3Char) { + if (allow3Char === void 0) { + allow3Char = false; + } + return rgbToHex(this.r, this.g, this.b, allow3Char); + }; + /** + * Returns the hex value of the color -with a # appened. + * @param allow3Char will shorten hex value to 3 char if possible + */ + TinyColor.prototype.toHexString = function (allow3Char) { + if (allow3Char === void 0) { + allow3Char = false; + } + return "#" + this.toHex(allow3Char); + }; + /** + * Returns the hex 8 value of the color. + * @param allow4Char will shorten hex value to 4 char if possible + */ + TinyColor.prototype.toHex8 = function (allow4Char) { + if (allow4Char === void 0) { + allow4Char = false; + } + return rgbaToHex( + this.r, + this.g, + this.b, + this.a, + allow4Char + ); + }; + /** + * Returns the hex 8 value of the color -with a # appened. + * @param allow4Char will shorten hex value to 4 char if possible + */ + TinyColor.prototype.toHex8String = function (allow4Char) { + if (allow4Char === void 0) { + allow4Char = false; + } + return "#" + this.toHex8(allow4Char); + }; + /** + * Returns the object as a RGBA object. + */ + TinyColor.prototype.toRgb = function () { + return { + r: Math.round(this.r), + g: Math.round(this.g), + b: Math.round(this.b), + a: this.a, + }; + }; + /** + * Returns the RGBA values interpolated into a string with the following format: + * "RGBA(xxx, xxx, xxx, xx)". + */ + TinyColor.prototype.toRgbString = function () { + var r = Math.round(this.r); + var g = Math.round(this.g); + var b = Math.round(this.b); + return this.a === 1 + ? "rgb(".concat(r, ", ").concat(g, ", ").concat(b, ")") + : "rgba(" + .concat(r, ", ") + .concat(g, ", ") + .concat(b, ", ") + .concat(this.roundA, ")"); + }; + /** + * Returns the object as a RGBA object. + */ + TinyColor.prototype.toPercentageRgb = function () { + var fmt = function (x) { + return "".concat( + Math.round(bound01(x, 255) * 100), + "%" + ); + }; + return { + r: fmt(this.r), + g: fmt(this.g), + b: fmt(this.b), + a: this.a, + }; + }; + /** + * Returns the RGBA relative values interpolated into a string + */ + TinyColor.prototype.toPercentageRgbString = function () { + var rnd = function (x) { + return Math.round(bound01(x, 255) * 100); + }; + return this.a === 1 + ? "rgb(" + .concat(rnd(this.r), "%, ") + .concat(rnd(this.g), "%, ") + .concat(rnd(this.b), "%)") + : "rgba(" + .concat(rnd(this.r), "%, ") + .concat(rnd(this.g), "%, ") + .concat(rnd(this.b), "%, ") + .concat(this.roundA, ")"); + }; + /** + * The 'real' name of the color -if there is one. + */ + TinyColor.prototype.toName = function () { + if (this.a === 0) { + return "transparent"; + } + if (this.a < 1) { + return false; + } + var hex = "#" + rgbToHex(this.r, this.g, this.b, false); + for ( + var _i = 0, _a = Object.entries(names); + _i < _a.length; + _i++ + ) { + var _b = _a[_i], + key = _b[0], + value = _b[1]; + if (hex === value) { + return key; + } + } + return false; + }; + TinyColor.prototype.toString = function (format) { + var formatSet = Boolean(format); + format = + format !== null && format !== void 0 + ? format + : this.format; + var formattedString = false; + var hasAlpha = this.a < 1 && this.a >= 0; + var needsAlphaFormat = + !formatSet && + hasAlpha && + (format.startsWith("hex") || format === "name"); + if (needsAlphaFormat) { + // Special case for "transparent", all other non-alpha formats + // will return rgba when there is transparency. + if (format === "name" && this.a === 0) { + return this.toName(); + } + return this.toRgbString(); + } + if (format === "rgb") { + formattedString = this.toRgbString(); + } + if (format === "prgb") { + formattedString = this.toPercentageRgbString(); + } + if (format === "hex" || format === "hex6") { + formattedString = this.toHexString(); + } + if (format === "hex3") { + formattedString = this.toHexString(true); + } + if (format === "hex4") { + formattedString = this.toHex8String(true); + } + if (format === "hex8") { + formattedString = this.toHex8String(); + } + if (format === "name") { + formattedString = this.toName(); + } + if (format === "hsl") { + formattedString = this.toHslString(); + } + if (format === "hsv") { + formattedString = this.toHsvString(); + } + return formattedString || this.toHexString(); + }; + TinyColor.prototype.toNumber = function () { + return ( + (Math.round(this.r) << 16) + + (Math.round(this.g) << 8) + + Math.round(this.b) + ); + }; + TinyColor.prototype.clone = function () { + return new TinyColor(this.toString()); + }; + /** + * Lighten the color a given amount. Providing 100 will always return white. + * @param amount - valid between 1-100 + */ + TinyColor.prototype.lighten = function (amount) { + if (amount === void 0) { + amount = 10; + } + var hsl = this.toHsl(); + hsl.l += amount / 100; + hsl.l = clamp01(hsl.l); + return new TinyColor(hsl); + }; + /** + * Brighten the color a given amount, from 0 to 100. + * @param amount - valid between 1-100 + */ + TinyColor.prototype.brighten = function (amount) { + if (amount === void 0) { + amount = 10; + } + var rgb = this.toRgb(); + rgb.r = Math.max( + 0, + Math.min(255, rgb.r - Math.round(255 * -(amount / 100))) + ); + rgb.g = Math.max( + 0, + Math.min(255, rgb.g - Math.round(255 * -(amount / 100))) + ); + rgb.b = Math.max( + 0, + Math.min(255, rgb.b - Math.round(255 * -(amount / 100))) + ); + return new TinyColor(rgb); + }; + /** + * Darken the color a given amount, from 0 to 100. + * Providing 100 will always return black. + * @param amount - valid between 1-100 + */ + TinyColor.prototype.darken = function (amount) { + if (amount === void 0) { + amount = 10; + } + var hsl = this.toHsl(); + hsl.l -= amount / 100; + hsl.l = clamp01(hsl.l); + return new TinyColor(hsl); + }; + /** + * Mix the color with pure white, from 0 to 100. + * Providing 0 will do nothing, providing 100 will always return white. + * @param amount - valid between 1-100 + */ + TinyColor.prototype.tint = function (amount) { + if (amount === void 0) { + amount = 10; + } + return this.mix("white", amount); + }; + /** + * Mix the color with pure black, from 0 to 100. + * Providing 0 will do nothing, providing 100 will always return black. + * @param amount - valid between 1-100 + */ + TinyColor.prototype.shade = function (amount) { + if (amount === void 0) { + amount = 10; + } + return this.mix("black", amount); + }; + /** + * Desaturate the color a given amount, from 0 to 100. + * Providing 100 will is the same as calling greyscale + * @param amount - valid between 1-100 + */ + TinyColor.prototype.desaturate = function (amount) { + if (amount === void 0) { + amount = 10; + } + var hsl = this.toHsl(); + hsl.s -= amount / 100; + hsl.s = clamp01(hsl.s); + return new TinyColor(hsl); + }; + /** + * Saturate the color a given amount, from 0 to 100. + * @param amount - valid between 1-100 + */ + TinyColor.prototype.saturate = function (amount) { + if (amount === void 0) { + amount = 10; + } + var hsl = this.toHsl(); + hsl.s += amount / 100; + hsl.s = clamp01(hsl.s); + return new TinyColor(hsl); + }; + /** + * Completely desaturates a color into greyscale. + * Same as calling `desaturate(100)` + */ + TinyColor.prototype.greyscale = function () { + return this.desaturate(100); + }; + /** + * Spin takes a positive or negative amount within [-360, 360] indicating the change of hue. + * Values outside of this range will be wrapped into this range. + */ + TinyColor.prototype.spin = function (amount) { + var hsl = this.toHsl(); + var hue = (hsl.h + amount) % 360; + hsl.h = hue < 0 ? 360 + hue : hue; + return new TinyColor(hsl); + }; + /** + * Mix the current color a given amount with another color, from 0 to 100. + * 0 means no mixing (return current color). + */ + TinyColor.prototype.mix = function (color, amount) { + if (amount === void 0) { + amount = 50; + } + var rgb1 = this.toRgb(); + var rgb2 = new TinyColor(color).toRgb(); + var p = amount / 100; + var rgba = { + r: (rgb2.r - rgb1.r) * p + rgb1.r, + g: (rgb2.g - rgb1.g) * p + rgb1.g, + b: (rgb2.b - rgb1.b) * p + rgb1.b, + a: (rgb2.a - rgb1.a) * p + rgb1.a, + }; + return new TinyColor(rgba); + }; + TinyColor.prototype.analogous = function (results, slices) { + if (results === void 0) { + results = 6; + } + if (slices === void 0) { + slices = 30; + } + var hsl = this.toHsl(); + var part = 360 / slices; + var ret = [this]; + for ( + hsl.h = (hsl.h - ((part * results) >> 1) + 720) % 360; + --results; + + ) { + hsl.h = (hsl.h + part) % 360; + ret.push(new TinyColor(hsl)); + } + return ret; + }; + /** + * taken from https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js + */ + TinyColor.prototype.complement = function () { + var hsl = this.toHsl(); + hsl.h = (hsl.h + 180) % 360; + return new TinyColor(hsl); + }; + TinyColor.prototype.monochromatic = function (results) { + if (results === void 0) { + results = 6; + } + var hsv = this.toHsv(); + var h = hsv.h; + var s = hsv.s; + var v = hsv.v; + var res = []; + var modification = 1 / results; + while (results--) { + res.push(new TinyColor({ h: h, s: s, v: v })); + v = (v + modification) % 1; + } + return res; + }; + TinyColor.prototype.splitcomplement = function () { + var hsl = this.toHsl(); + var h = hsl.h; + return [ + this, + new TinyColor({ + h: (h + 72) % 360, + s: hsl.s, + l: hsl.l, + }), + new TinyColor({ + h: (h + 216) % 360, + s: hsl.s, + l: hsl.l, + }), + ]; + }; + /** + * Compute how the color would appear on a background + */ + TinyColor.prototype.onBackground = function (background) { + var fg = this.toRgb(); + var bg = new TinyColor(background).toRgb(); + return new TinyColor({ + r: bg.r + (fg.r - bg.r) * fg.a, + g: bg.g + (fg.g - bg.g) * fg.a, + b: bg.b + (fg.b - bg.b) * fg.a, + }); + }; + /** + * Alias for `polyad(3)` + */ + TinyColor.prototype.triad = function () { + return this.polyad(3); + }; + /** + * Alias for `polyad(4)` + */ + TinyColor.prototype.tetrad = function () { + return this.polyad(4); + }; + /** + * Get polyad colors, like (for 1, 2, 3, 4, 5, 6, 7, 8, etc...) + * monad, dyad, triad, tetrad, pentad, hexad, heptad, octad, etc... + */ + TinyColor.prototype.polyad = function (n) { + var hsl = this.toHsl(); + var h = hsl.h; + var result = [this]; + var increment = 360 / n; + for (var i = 1; i < n; i++) { + result.push( + new TinyColor({ + h: (h + i * increment) % 360, + s: hsl.s, + l: hsl.l, + }) + ); + } + return result; + }; + /** + * compare color vs current color + */ + TinyColor.prototype.equals = function (color) { + return ( + this.toRgbString() === + new TinyColor(color).toRgbString() + ); + }; + return TinyColor; + })(); + + // kept for backwards compatability with v1 + function tinycolor(color, opts) { + if (color === void 0) { + color = ""; + } + if (opts === void 0) { + opts = {}; + } + return new module_TinyColor(color, opts); + } // CONCATENATED MODULE: ./node_modules/@ctrl/tinycolor/dist/module/random.js + + // randomColor by David Merfield under the CC0 license + // https://github.com/davidmerfield/randomColor/ + + function random(options) { + if (options === void 0) { + options = {}; + } + // Check if we need to generate multiple colors + if (options.count !== undefined && options.count !== null) { + var totalColors = options.count; + var colors = []; + options.count = undefined; + while (totalColors > colors.length) { + // Since we're generating multiple colors, + // incremement the seed. Otherwise we'd just + // generate the same color each time... + options.count = null; + if (options.seed) { + options.seed += 1; + } + colors.push(random(options)); + } + options.count = totalColors; + return colors; + } + // First we pick a hue (H) + var h = pickHue(options.hue, options.seed); + // Then use H to determine saturation (S) + var s = pickSaturation(h, options); + // Then use S and H to determine brightness (B). + var v = pickBrightness(h, s, options); + var res = { h: h, s: s, v: v }; + if (options.alpha !== undefined) { + res.a = options.alpha; + } + // Then we return the HSB color in the desired format + return new module_TinyColor(res); + } + function pickHue(hue, seed) { + var hueRange = getHueRange(hue); + var res = randomWithin(hueRange, seed); + // Instead of storing red as two seperate ranges, + // we group them, using negative numbers + if (res < 0) { + res = 360 + res; + } + return res; + } + function pickSaturation(hue, options) { + if (options.hue === "monochrome") { + return 0; + } + if (options.luminosity === "random") { + return randomWithin([0, 100], options.seed); + } + var saturationRange = getColorInfo(hue).saturationRange; + var sMin = saturationRange[0]; + var sMax = saturationRange[1]; + switch (options.luminosity) { + case "bright": + sMin = 55; + break; + case "dark": + sMin = sMax - 10; + break; + case "light": + sMax = 55; + break; + default: + break; + } + return randomWithin([sMin, sMax], options.seed); + } + function pickBrightness(H, S, options) { + var bMin = getMinimumBrightness(H, S); + var bMax = 100; + switch (options.luminosity) { + case "dark": + bMax = bMin + 20; + break; + case "light": + bMin = (bMax + bMin) / 2; + break; + case "random": + bMin = 0; + bMax = 100; + break; + default: + break; + } + return randomWithin([bMin, bMax], options.seed); + } + function getMinimumBrightness(H, S) { + var lowerBounds = getColorInfo(H).lowerBounds; + for (var i = 0; i < lowerBounds.length - 1; i++) { + var s1 = lowerBounds[i][0]; + var v1 = lowerBounds[i][1]; + var s2 = lowerBounds[i + 1][0]; + var v2 = lowerBounds[i + 1][1]; + if (S >= s1 && S <= s2) { + var m = (v2 - v1) / (s2 - s1); + var b = v1 - m * s1; + return m * S + b; + } + } + return 0; + } + function getHueRange(colorInput) { + var num = parseInt(colorInput, 10); + if (!Number.isNaN(num) && num < 360 && num > 0) { + return [num, num]; + } + if (typeof colorInput === "string") { + var namedColor = bounds.find(function (n) { + return n.name === colorInput; + }); + if (namedColor) { + var color = defineColor(namedColor); + if (color.hueRange) { + return color.hueRange; + } + } + var parsed = new module_TinyColor(colorInput); + if (parsed.isValid) { + var hue = parsed.toHsv().h; + return [hue, hue]; + } + } + return [0, 360]; + } + function getColorInfo(hue) { + // Maps red colors to make picking hue easier + if (hue >= 334 && hue <= 360) { + hue -= 360; + } + for ( + var _i = 0, bounds_1 = bounds; + _i < bounds_1.length; + _i++ + ) { + var bound = bounds_1[_i]; + var color = defineColor(bound); + if ( + color.hueRange && + hue >= color.hueRange[0] && + hue <= color.hueRange[1] + ) { + return color; + } + } + throw Error("Color not found"); + } + function randomWithin(range, seed) { + if (seed === undefined) { + return Math.floor( + range[0] + Math.random() * (range[1] + 1 - range[0]) + ); + } + // Seeded random algorithm from http://indiegamr.com/generate-repeatable-random-numbers-in-js/ + var max = range[1] || 1; + var min = range[0] || 0; + seed = (seed * 9301 + 49297) % 233280; + var rnd = seed / 233280.0; + return Math.floor(min + rnd * (max - min)); + } + function defineColor(bound) { + var sMin = bound.lowerBounds[0][0]; + var sMax = bound.lowerBounds[bound.lowerBounds.length - 1][0]; + var bMin = bound.lowerBounds[bound.lowerBounds.length - 1][1]; + var bMax = bound.lowerBounds[0][1]; + return { + name: bound.name, + hueRange: bound.hueRange, + lowerBounds: bound.lowerBounds, + saturationRange: [sMin, sMax], + brightnessRange: [bMin, bMax], + }; + } + /** + * @hidden + */ + var bounds = [ + { + name: "monochrome", + hueRange: null, + lowerBounds: [ + [0, 0], + [100, 0], + ], + }, + { + name: "red", + hueRange: [-26, 18], + lowerBounds: [ + [20, 100], + [30, 92], + [40, 89], + [50, 85], + [60, 78], + [70, 70], + [80, 60], + [90, 55], + [100, 50], + ], + }, + { + name: "orange", + hueRange: [19, 46], + lowerBounds: [ + [20, 100], + [30, 93], + [40, 88], + [50, 86], + [60, 85], + [70, 70], + [100, 70], + ], + }, + { + name: "yellow", + hueRange: [47, 62], + lowerBounds: [ + [25, 100], + [40, 94], + [50, 89], + [60, 86], + [70, 84], + [80, 82], + [90, 80], + [100, 75], + ], + }, + { + name: "green", + hueRange: [63, 178], + lowerBounds: [ + [30, 100], + [40, 90], + [50, 85], + [60, 81], + [70, 74], + [80, 64], + [90, 50], + [100, 40], + ], + }, + { + name: "blue", + hueRange: [179, 257], + lowerBounds: [ + [20, 100], + [30, 86], + [40, 80], + [50, 74], + [60, 60], + [70, 52], + [80, 44], + [90, 39], + [100, 35], + ], + }, + { + name: "purple", + hueRange: [258, 282], + lowerBounds: [ + [20, 100], + [30, 87], + [40, 79], + [50, 70], + [60, 65], + [70, 59], + [80, 52], + [90, 45], + [100, 42], + ], + }, + { + name: "pink", + hueRange: [283, 334], + lowerBounds: [ + [20, 100], + [30, 90], + [40, 86], + [60, 84], + [80, 80], + [90, 75], + [100, 73], + ], + }, + ]; // CONCATENATED MODULE: ./node_modules/@chakra-ui/theme-tools/dist/chakra-ui-theme-tools.esm.js + + /** + * Get the color raw value from theme + * @param theme - the theme object + * @param color - the color path ("green.200") + * @param fallback - the fallback color + * + * @deprecated This will be removed in the next major release. + */ + + var getColor = function getColor(theme, color, fallback) { + var hex = (0, chakra_ui_utils_esm /* memoizedGet */.Wf)( + theme, + "colors." + color, + color + ); + + var _TinyColor = new module_TinyColor(hex), + isValid = _TinyColor.isValid; + + return isValid ? hex : fallback; + }; + /** + * Determines if the tone of given color is "light" or "dark" + * @param color - the color in hex, rgb, or hsl + * + * @deprecated This will be removed in the next major release. + */ + + var tone = function tone(color) { + return function (theme) { + var hex = getColor(theme, color); + var isDark = new module_TinyColor(hex).isDark(); + return isDark ? "dark" : "light"; + }; + }; + /** + * Determines if a color tone is "dark" + * @param color - the color in hex, rgb, or hsl + * + * @deprecated This will be removed in the next major release. + */ + + var isDark = function isDark(color) { + return function (theme) { + return tone(color)(theme) === "dark"; + }; + }; + /** + * Determines if a color tone is "light" + * @param color - the color in hex, rgb, or hsl + * + * @deprecated This will be removed in the next major release. + */ + + var isLight = function isLight(color) { + return function (theme) { + return tone(color)(theme) === "light"; + }; + }; + /** + * Make a color transparent + * @param color - the color in hex, rgb, or hsl + * @param opacity - the amount of opacity the color should have (0-1) + * + * @deprecated This will be removed in the next major release. + */ + + var transparentize = function transparentize(color, opacity) { + return function (theme) { + var raw = getColor(theme, color); + return new module_TinyColor(raw) + .setAlpha(opacity) + .toRgbString(); + }; + }; + /** + * Add white to a color + * @param color - the color in hex, rgb, or hsl + * @param amount - the amount white to add (0-100) + * + * @deprecated This will be removed in the next major release. + */ + + var whiten = function whiten(color, amount) { + return function (theme) { + var raw = getColor(theme, color); + return new TinyColor(raw).mix("#fff", amount).toHexString(); + }; + }; + /** + * Add black to a color + * @param color - the color in hex, rgb, or hsl + * @param amount - the amount black to add (0-100) + * + * @deprecated This will be removed in the next major release. + */ + + var blacken = function blacken(color, amount) { + return function (theme) { + var raw = getColor(theme, color); + return new TinyColor(raw).mix("#000", amount).toHexString(); + }; + }; + /** + * Darken a specified color + * @param color - the color in hex, rgb, or hsl + * @param amount - the amount to darken (0-100) + * + * @deprecated This will be removed in the next major release. + */ + + var darken = function darken(color, amount) { + return function (theme) { + var raw = getColor(theme, color); + return new TinyColor(raw).darken(amount).toHexString(); + }; + }; + /** + * Lighten a specified color + * @param color - the color in hex, rgb, or hsl + * @param amount - the amount to lighten (0-100) + * + * @deprecated This will be removed in the next major release. + */ + + var lighten = function lighten(color, amount) { + return function (theme) { + return new TinyColor(getColor(theme, color)) + .lighten(amount) + .toHexString(); + }; + }; + /** + * Checks the contract ratio of between 2 colors, + * based on the Web Content Accessibility Guidelines (Version 2.0). + * + * @param fg - the foreground or text color + * @param bg - the background color + * + * @deprecated This will be removed in the next major release. + */ + + var contrast = function contrast(fg, bg) { + return function (theme) { + return readability( + getColor(theme, bg), + getColor(theme, fg) + ); + }; + }; + /** + * Checks if a color meets the Web Content Accessibility + * Guidelines (Version 2.0) for contrast ratio. + * + * @param textColor - the foreground or text color + * @param bgColor - the background color + * @param options + * + * @deprecated This will be removed in the next major release. + */ + + var isAccessible = function isAccessible( + textColor, + bgColor, + options + ) { + return function (theme) { + return isReadable( + getColor(theme, bgColor), + getColor(theme, textColor), + options + ); + }; + }; + /** + * + * @deprecated This will be removed in the next major release. + */ + + var complementary = function complementary(color) { + return function (theme) { + return new TinyColor(getColor(theme, color)) + .complement() + .toHexString(); + }; + }; + function generateStripe(size, color) { + if (size === void 0) { + size = "1rem"; + } + + if (color === void 0) { + color = "rgba(255, 255, 255, 0.15)"; + } + + return { + backgroundImage: + "linear-gradient(\n 45deg,\n " + + color + + " 25%,\n transparent 25%,\n transparent 50%,\n " + + color + + " 50%,\n " + + color + + " 75%,\n transparent 75%,\n transparent\n )", + backgroundSize: size + " " + size, + }; + } + function randomColor(opts) { + var fallback = random().toHexString(); + + if ( + !opts || + (0, chakra_ui_utils_esm /* isEmptyObject */.Qr)(opts) + ) { + return fallback; + } + + if (opts.string && opts.colors) { + return randomColorFromList(opts.string, opts.colors); + } + + if (opts.string && !opts.colors) { + return randomColorFromString(opts.string); + } + + if (opts.colors && !opts.string) { + return randomFromList(opts.colors); + } + + return fallback; + } + + function randomColorFromString(str) { + var hash = 0; + if (str.length === 0) return hash.toString(); + + for (var i = 0; i < str.length; i += 1) { + hash = str.charCodeAt(i) + ((hash << 5) - hash); + hash = hash & hash; + } + + var color = "#"; + + for (var j = 0; j < 3; j += 1) { + var value = (hash >> (j * 8)) & 255; + color += ("00" + value.toString(16)).substr(-2); + } + + return color; + } + + function randomColorFromList(str, list) { + var index = 0; + if (str.length === 0) return list[0]; + + for (var i = 0; i < str.length; i += 1) { + index = str.charCodeAt(i) + ((index << 5) - index); + index = index & index; + } + + index = ((index % list.length) + list.length) % list.length; + return list[index]; + } + + function randomFromList(list) { + return list[Math.floor(Math.random() * list.length)]; + } + + function mode(light, dark) { + return function (props) { + return props.colorMode === "dark" ? dark : light; + }; + } + function orient(options) { + var orientation = options.orientation, + vertical = options.vertical, + horizontal = options.horizontal; + if (!orientation) return {}; + return orientation === "vertical" ? vertical : horizontal; + } + + function chakra_ui_theme_tools_esm_extends() { + chakra_ui_theme_tools_esm_extends = Object.assign + ? Object.assign.bind() + : function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if ( + Object.prototype.hasOwnProperty.call( + source, + key + ) + ) { + target[key] = source[key]; + } + } + } + + return target; + }; + return chakra_ui_theme_tools_esm_extends.apply(this, arguments); + } + + var createBreakpoints = function createBreakpoints(config) { + (0, chakra_ui_utils_esm /* warn */.ZK)({ + condition: true, + message: [ + "[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon", + "simply pass the breakpoints as an object. Remove the createBreakpoint(..) call", + ].join(""), + }); + return chakra_ui_theme_tools_esm_extends( + { + base: "0em", + }, + config + ); + }; + + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) + _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false, + }); + return Constructor; + } + + /** + * Used to define the anatomy/parts of a component in a way that provides + * a consistent API for `className`, css selector and `theming`. + */ + + var Anatomy = /*#__PURE__*/ (function () { + function Anatomy(name) { + var _this = this; + + this.map = {}; + this.called = false; + + this.assert = function () { + if (!_this.called) { + _this.called = true; + return; + } + + throw new Error( + "[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?" + ); + }; + + this.parts = function () { + _this.assert(); + + for ( + var _len = arguments.length, + values = new Array(_len), + _key = 0; + _key < _len; + _key++ + ) { + values[_key] = arguments[_key]; + } + + for ( + var _i = 0, _values = values; + _i < _values.length; + _i++ + ) { + var part = _values[_i]; + _this.map[part] = _this.toPart(part); + } + + return _this; + }; + + this.extend = function () { + for ( + var _len2 = arguments.length, + parts = new Array(_len2), + _key2 = 0; + _key2 < _len2; + _key2++ + ) { + parts[_key2] = arguments[_key2]; + } + + for ( + var _i2 = 0, _parts = parts; + _i2 < _parts.length; + _i2++ + ) { + var part = _parts[_i2]; + if (part in _this.map) continue; + _this.map[part] = _this.toPart(part); + } + + return _this; + }; + + this.toPart = function (part) { + var el = ["container", "root"].includes( + part != null ? part : "" + ) + ? [_this.name] + : [_this.name, part]; + var attr = el.filter(Boolean).join("__"); + var className = "chakra-" + attr; + var partObj = { + className: className, + selector: "." + className, + toString: function toString() { + return part; + }, + }; + return partObj; + }; + + this.__type = {}; + } + /** + * Prevents user from calling `.parts` multiple times. + * It should only be called once. + */ + + _createClass(Anatomy, [ + { + key: "selectors", + get: + /** + * Get all selectors for the component anatomy + */ + function get() { + var value = (0, + chakra_ui_utils_esm /* fromEntries */.sq)( + Object.entries(this.map).map(function ( + _ref + ) { + var key = _ref[0], + part = _ref[1]; + return [key, part.selector]; + }) + ); + return value; + }, + /** + * Get all classNames for the component anatomy + */ + }, + { + key: "classNames", + get: function get() { + var value = (0, + chakra_ui_utils_esm /* fromEntries */.sq)( + Object.entries(this.map).map(function (_ref2) { + var key = _ref2[0], + part = _ref2[1]; + return [key, part.className]; + }) + ); + return value; + }, + /** + * Get all parts as array of string + */ + }, + { + key: "keys", + get: function get() { + return Object.keys(this.map); + }, + /** + * Creates the part object for the given part + */ + }, + ]); + + return Anatomy; + })(); + function anatomy(name) { + return new Anatomy(name); + } + + function toRef(operand) { + if ( + (0, chakra_ui_utils_esm /* isObject */.Kn)(operand) && + operand.reference + ) { + return operand.reference; + } + + return String(operand); + } + + var toExpr = function toExpr(operator) { + for ( + var _len = arguments.length, + operands = new Array(_len > 1 ? _len - 1 : 0), + _key = 1; + _key < _len; + _key++ + ) { + operands[_key - 1] = arguments[_key]; + } + + return operands + .map(toRef) + .join(" " + operator + " ") + .replace(/calc/g, ""); + }; + + var _add = function add() { + for ( + var _len2 = arguments.length, + operands = new Array(_len2), + _key2 = 0; + _key2 < _len2; + _key2++ + ) { + operands[_key2] = arguments[_key2]; + } + + return ( + "calc(" + toExpr.apply(void 0, ["+"].concat(operands)) + ")" + ); + }; + + var _subtract = function subtract() { + for ( + var _len3 = arguments.length, + operands = new Array(_len3), + _key3 = 0; + _key3 < _len3; + _key3++ + ) { + operands[_key3] = arguments[_key3]; + } + + return ( + "calc(" + toExpr.apply(void 0, ["-"].concat(operands)) + ")" + ); + }; + + var _multiply = function multiply() { + for ( + var _len4 = arguments.length, + operands = new Array(_len4), + _key4 = 0; + _key4 < _len4; + _key4++ + ) { + operands[_key4] = arguments[_key4]; + } + + return ( + "calc(" + toExpr.apply(void 0, ["*"].concat(operands)) + ")" + ); + }; + + var _divide = function divide() { + for ( + var _len5 = arguments.length, + operands = new Array(_len5), + _key5 = 0; + _key5 < _len5; + _key5++ + ) { + operands[_key5] = arguments[_key5]; + } + + return ( + "calc(" + toExpr.apply(void 0, ["/"].concat(operands)) + ")" + ); + }; + + var _negate = function negate(x) { + var value = toRef(x); + + if (value != null && !Number.isNaN(parseFloat(value))) { + return String(value).startsWith("-") + ? String(value).slice(1) + : "-" + value; + } + + return _multiply(value, -1); + }; + + var calc = Object.assign( + function (x) { + return { + add: function add() { + for ( + var _len6 = arguments.length, + operands = new Array(_len6), + _key6 = 0; + _key6 < _len6; + _key6++ + ) { + operands[_key6] = arguments[_key6]; + } + + return calc( + _add.apply(void 0, [x].concat(operands)) + ); + }, + subtract: function subtract() { + for ( + var _len7 = arguments.length, + operands = new Array(_len7), + _key7 = 0; + _key7 < _len7; + _key7++ + ) { + operands[_key7] = arguments[_key7]; + } + + return calc( + _subtract.apply(void 0, [x].concat(operands)) + ); + }, + multiply: function multiply() { + for ( + var _len8 = arguments.length, + operands = new Array(_len8), + _key8 = 0; + _key8 < _len8; + _key8++ + ) { + operands[_key8] = arguments[_key8]; + } + + return calc( + _multiply.apply(void 0, [x].concat(operands)) + ); + }, + divide: function divide() { + for ( + var _len9 = arguments.length, + operands = new Array(_len9), + _key9 = 0; + _key9 < _len9; + _key9++ + ) { + operands[_key9] = arguments[_key9]; + } + + return calc( + _divide.apply(void 0, [x].concat(operands)) + ); + }, + negate: function negate() { + return calc(_negate(x)); + }, + toString: function toString() { + return x.toString(); + }, + }; + }, + { + add: _add, + subtract: _subtract, + multiply: _multiply, + divide: _divide, + negate: _negate, + } + ); + + function isDecimal(value) { + return !Number.isInteger(parseFloat(value.toString())); + } + + function replaceWhiteSpace(value, replaceValue) { + if (replaceValue === void 0) { + replaceValue = "-"; + } + + return value.replace(/\s+/g, replaceValue); + } + + function chakra_ui_theme_tools_esm_escape(value) { + var valueStr = replaceWhiteSpace(value.toString()); + if (valueStr.includes("\\.")) return value; + return isDecimal(value) ? valueStr.replace(".", "\\.") : value; + } + + function addPrefix(value, prefix) { + if (prefix === void 0) { + prefix = ""; + } + + return [prefix, chakra_ui_theme_tools_esm_escape(value)] + .filter(Boolean) + .join("-"); + } + function toVarRef(name, fallback) { + return ( + "var(" + + chakra_ui_theme_tools_esm_escape(name) + + (fallback ? ", " + fallback : "") + + ")" + ); + } + function toVar(value, prefix) { + if (prefix === void 0) { + prefix = ""; + } + + return "--" + addPrefix(value, prefix); + } + function cssVar(name, options) { + var cssVariable = toVar( + name, + options == null ? void 0 : options.prefix + ); + return { + variable: cssVariable, + reference: toVarRef( + cssVariable, + getFallback(options == null ? void 0 : options.fallback) + ), + }; + } + + function getFallback(fallback) { + if (typeof fallback === "string") return fallback; + return fallback == null ? void 0 : fallback.reference; + } // CONCATENATED MODULE: ./node_modules/@chakra-ui/anatomy/dist/chakra-ui-anatomy.esm.js + + /** + * **Accordion anatomy** + * - Root: the root container of the accordion + * - Container: the accordion item contains the button and panel + * - Button: the button is the trigger for the panel + * - Panel: the panel is the content of the accordion item + * - Icon: the expanded/collapsed icon + */ + + var accordionAnatomy = anatomy("accordion") + .parts("root", "container", "button", "panel") + .extend("icon"); + /** + * **Alert anatomy** + * - Title: the alert's title + * - Description: the alert's description + * - Icon: the alert's icon + */ + + var alertAnatomy = anatomy("alert") + .parts("title", "description", "container") + .extend("icon", "spinner"); + /** + * **Avatar anatomy** + * - Container: the container for the avatar + * - Label: the avatar initials text + * - Excess Label: the label or text that represents excess avatar count. + * Typically used in avatar groups. + * - Group: the container for the avatar group + */ + + var avatarAnatomy = anatomy("avatar") + .parts("label", "badge", "container") + .extend("excessLabel", "group"); + /** + * **Breadcrumb anatomy** + * - Item: the container for a breadcrumb item + * - Link: the element that represents the breadcrumb link + * - Container: the container for the breadcrumb items + * - Separator: the separator between breadcrumb items + */ + + var breadcrumbAnatomy = anatomy("breadcrumb") + .parts("link", "item", "container") + .extend("separator"); + var buttonAnatomy = anatomy("button").parts(); + var checkboxAnatomy = anatomy("checkbox") + .parts("control", "icon", "container") + .extend("label"); + var circularProgressAnatomy = anatomy("progress") + .parts("track", "filledTrack") + .extend("label"); + var drawerAnatomy = anatomy("drawer") + .parts("overlay", "dialogContainer", "dialog") + .extend("header", "closeButton", "body", "footer"); + var editableAnatomy = anatomy("editable").parts( + "preview", + "input", + "textarea" + ); + var formAnatomy = anatomy("form").parts( + "container", + "requiredIndicator", + "helperText" + ); + var formErrorAnatomy = anatomy("formError").parts("text", "icon"); + var inputAnatomy = anatomy("input").parts( + "addon", + "field", + "element" + ); + var listAnatomy = anatomy("list").parts( + "container", + "item", + "icon" + ); + var menuAnatomy = anatomy("menu") + .parts("button", "list", "item") + .extend("groupTitle", "command", "divider"); + var modalAnatomy = anatomy("modal") + .parts("overlay", "dialogContainer", "dialog") + .extend("header", "closeButton", "body", "footer"); + var numberInputAnatomy = anatomy("numberinput").parts( + "root", + "field", + "stepperGroup", + "stepper" + ); + var pinInputAnatomy = anatomy("pininput").parts("field"); + var popoverAnatomy = anatomy("popover") + .parts("content", "header", "body", "footer") + .extend("popper", "arrow", "closeButton"); + var progressAnatomy = anatomy("progress").parts( + "label", + "filledTrack", + "track" + ); + var radioAnatomy = anatomy("radio").parts( + "container", + "control", + "label" + ); + var selectAnatomy = anatomy("select").parts("field", "icon"); + var sliderAnatomy = anatomy("slider").parts( + "container", + "track", + "thumb", + "filledTrack" + ); + var statAnatomy = anatomy("stat").parts( + "container", + "label", + "helpText", + "number", + "icon" + ); + var switchAnatomy = anatomy("switch").parts( + "container", + "track", + "thumb" + ); + var tableAnatomy = anatomy("table").parts( + "table", + "thead", + "tbody", + "tr", + "th", + "td", + "tfoot", + "caption" + ); + var tabsAnatomy = anatomy("tabs").parts( + "root", + "tab", + "tablist", + "tabpanel", + "tabpanels", + "indicator" + ); + /** + * **Tag anatomy** + * - Container: the container for the tag + * - Label: the text content of the tag + * - closeButton: the close button for the tag + */ + + var tagAnatomy = anatomy("tag").parts( + "container", + "label", + "closeButton" + ); // CONCATENATED MODULE: ./node_modules/@chakra-ui/theme/foundations/typography/dist/chakra-ui-theme-foundations-typography.esm.js + + var typography = { + letterSpacings: { + tighter: "-0.05em", + tight: "-0.025em", + normal: "0", + wide: "0.025em", + wider: "0.05em", + widest: "0.1em", + }, + lineHeights: { + normal: "normal", + none: 1, + shorter: 1.25, + short: 1.375, + base: 1.5, + tall: 1.625, + taller: "2", + 3: ".75rem", + 4: "1rem", + 5: "1.25rem", + 6: "1.5rem", + 7: "1.75rem", + 8: "2rem", + 9: "2.25rem", + 10: "2.5rem", + }, + fontWeights: { + hairline: 100, + thin: 200, + light: 300, + normal: 400, + medium: 500, + semibold: 600, + bold: 700, + extrabold: 800, + black: 900, + }, + fonts: { + heading: + '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', + body: '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', + mono: 'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace', + }, + fontSizes: { + xs: "0.75rem", + sm: "0.875rem", + md: "1rem", + lg: "1.125rem", + xl: "1.25rem", + "2xl": "1.5rem", + "3xl": "1.875rem", + "4xl": "2.25rem", + "5xl": "3rem", + "6xl": "3.75rem", + "7xl": "4.5rem", + "8xl": "6rem", + "9xl": "8rem", + }, + }; + + // EXTERNAL MODULE: ./node_modules/lodash.mergewith/index.js + var lodash_mergewith = __webpack_require__(8554); + var lodash_mergewith_default = + /*#__PURE__*/ __webpack_require__.n(lodash_mergewith); // CONCATENATED MODULE: ./node_modules/@chakra-ui/theme/components/dist/chakra-ui-theme-components.esm.js + var baseStyleContainer$4 = { + borderTopWidth: "1px", + borderColor: "inherit", + _last: { + borderBottomWidth: "1px", + }, + }; + var baseStyleButton$1 = { + transitionProperty: "common", + transitionDuration: "normal", + fontSize: "1rem", + _focusVisible: { + boxShadow: "outline", + }, + _hover: { + bg: "blackAlpha.50", + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed", + }, + px: 4, + py: 2, + }; + var baseStylePanel = { + pt: 2, + px: 4, + pb: 5, + }; + var baseStyleIcon$5 = { + fontSize: "1.25em", + }; + var baseStyle$D = { + root: {}, + container: baseStyleContainer$4, + button: baseStyleButton$1, + panel: baseStylePanel, + icon: baseStyleIcon$5, + }; + var Accordion = { + parts: accordionAnatomy.keys, + baseStyle: baseStyle$D, + }; + + var baseStyle$C = { + container: { + px: 4, + py: 3, + }, + title: { + fontWeight: "bold", + lineHeight: 6, + marginEnd: 2, + }, + description: { + lineHeight: 6, + }, + icon: { + flexShrink: 0, + marginEnd: 3, + w: 5, + h: 6, + }, + spinner: { + flexShrink: 0, + marginEnd: 3, + w: 5, + h: 5, + }, + }; + + function getBg(props) { + var theme = props.theme, + c = props.colorScheme; + var lightBg = getColor(theme, c + ".100", c); + var darkBg = transparentize(c + ".200", 0.16)(theme); + return mode(lightBg, darkBg)(props); + } + + var variantSubtle$1 = function variantSubtle(props) { + var c = props.colorScheme; + return { + container: { + bg: getBg(props), + }, + icon: { + color: mode(c + ".500", c + ".200")(props), + }, + spinner: { + color: mode(c + ".500", c + ".200")(props), + }, + }; + }; + + var variantLeftAccent = function variantLeftAccent(props) { + var c = props.colorScheme; + return { + container: { + paddingStart: 3, + borderStartWidth: "4px", + borderStartColor: mode(c + ".500", c + ".200")(props), + bg: getBg(props), + }, + icon: { + color: mode(c + ".500", c + ".200")(props), + }, + spinner: { + color: mode(c + ".500", c + ".200")(props), + }, + }; + }; + + var variantTopAccent = function variantTopAccent(props) { + var c = props.colorScheme; + return { + container: { + pt: 2, + borderTopWidth: "4px", + borderTopColor: mode(c + ".500", c + ".200")(props), + bg: getBg(props), + }, + icon: { + color: mode(c + ".500", c + ".200")(props), + }, + spinner: { + color: mode(c + ".500", c + ".200")(props), + }, + }; + }; + + var variantSolid$3 = function variantSolid(props) { + var c = props.colorScheme; + return { + container: { + bg: mode(c + ".500", c + ".200")(props), + color: mode("white", "gray.900")(props), + }, + }; + }; + + var variants$b = { + subtle: variantSubtle$1, + "left-accent": variantLeftAccent, + "top-accent": variantTopAccent, + solid: variantSolid$3, + }; + var defaultProps$n = { + variant: "subtle", + colorScheme: "blue", + }; + var Alert = { + parts: alertAnatomy.keys, + baseStyle: baseStyle$C, + variants: variants$b, + defaultProps: defaultProps$n, + }; + + var baseStyleBadge = function baseStyleBadge(props) { + return { + transform: "translate(25%, 25%)", + borderRadius: "full", + border: "0.2em solid", + borderColor: mode("white", "gray.800")(props), + }; + }; + + var baseStyleExcessLabel = function baseStyleExcessLabel(props) { + return { + bg: mode("gray.200", "whiteAlpha.400")(props), + }; + }; + + var baseStyleContainer$3 = function baseStyleContainer(props) { + var name = props.name, + theme = props.theme; + var bg = name + ? randomColor({ + string: name, + }) + : "gray.400"; + var isBgDark = isDark(bg)(theme); + var color = "white"; + if (!isBgDark) color = "gray.800"; + var borderColor = mode("white", "gray.800")(props); + return { + bg: bg, + color: color, + borderColor: borderColor, + verticalAlign: "top", + }; + }; + + var baseStyle$B = function baseStyle(props) { + return { + badge: baseStyleBadge(props), + excessLabel: baseStyleExcessLabel(props), + container: baseStyleContainer$3(props), + }; + }; + + function getSize$3(size) { + var themeSize = size !== "100%" ? sizes[size] : undefined; + return { + container: { + width: size, + height: size, + fontSize: + "calc(" + + (themeSize != null ? themeSize : size) + + " / 2.5)", + }, + excessLabel: { + width: size, + height: size, + }, + label: { + fontSize: + "calc(" + + (themeSize != null ? themeSize : size) + + " / 2.5)", + lineHeight: + size !== "100%" + ? themeSize != null + ? themeSize + : size + : undefined, + }, + }; + } + + var sizes$k = { + "2xs": getSize$3(4), + xs: getSize$3(6), + sm: getSize$3(8), + md: getSize$3(12), + lg: getSize$3(16), + xl: getSize$3(24), + "2xl": getSize$3(32), + full: getSize$3("100%"), + }; + var defaultProps$m = { + size: "md", + }; + var Avatar = { + parts: avatarAnatomy.keys, + baseStyle: baseStyle$B, + sizes: sizes$k, + defaultProps: defaultProps$m, + }; + + var baseStyle$A = { + px: 1, + textTransform: "uppercase", + fontSize: "xs", + borderRadius: "sm", + fontWeight: "bold", + }; + + var variantSolid$2 = function variantSolid(props) { + var c = props.colorScheme, + theme = props.theme; + var dark = transparentize(c + ".500", 0.6)(theme); + return { + bg: mode(c + ".500", dark)(props), + color: mode("white", "whiteAlpha.800")(props), + }; + }; + + var variantSubtle = function variantSubtle(props) { + var c = props.colorScheme, + theme = props.theme; + var darkBg = transparentize(c + ".200", 0.16)(theme); + return { + bg: mode(c + ".100", darkBg)(props), + color: mode(c + ".800", c + ".200")(props), + }; + }; + + var variantOutline$2 = function variantOutline(props) { + var c = props.colorScheme, + theme = props.theme; + var darkColor = transparentize(c + ".200", 0.8)(theme); + var lightColor = getColor(theme, c + ".500"); + var color = mode(lightColor, darkColor)(props); + return { + color: color, + boxShadow: "inset 0 0 0px 1px " + color, + }; + }; + + var variants$a = { + solid: variantSolid$2, + subtle: variantSubtle, + outline: variantOutline$2, + }; + var defaultProps$l = { + variant: "subtle", + colorScheme: "gray", + }; + var Badge = { + baseStyle: baseStyle$A, + variants: variants$a, + defaultProps: defaultProps$l, + }; + + var baseStyleLink = { + transitionProperty: "common", + transitionDuration: "fast", + transitionTimingFunction: "ease-out", + cursor: "pointer", + textDecoration: "none", + outline: "none", + color: "inherit", + _hover: { + textDecoration: "underline", + }, + _focusVisible: { + boxShadow: "outline", + }, + }; + var baseStyle$z = { + link: baseStyleLink, + }; + var Breadcrumb = { + parts: breadcrumbAnatomy.keys, + baseStyle: baseStyle$z, + }; + + var baseStyle$y = { + lineHeight: "1.2", + borderRadius: "md", + fontWeight: "semibold", + transitionProperty: "common", + transitionDuration: "normal", + _focusVisible: { + boxShadow: "outline", + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed", + boxShadow: "none", + }, + _hover: { + _disabled: { + bg: "initial", + }, + }, + }; + + var variantGhost = function variantGhost(props) { + var c = props.colorScheme, + theme = props.theme; + + if (c === "gray") { + return { + color: mode("inherit", "whiteAlpha.900")(props), + _hover: { + bg: mode("gray.100", "whiteAlpha.200")(props), + }, + _active: { + bg: mode("gray.200", "whiteAlpha.300")(props), + }, + }; + } + + var darkHoverBg = transparentize(c + ".200", 0.12)(theme); + var darkActiveBg = transparentize(c + ".200", 0.24)(theme); + return { + color: mode(c + ".600", c + ".200")(props), + bg: "transparent", + _hover: { + bg: mode(c + ".50", darkHoverBg)(props), + }, + _active: { + bg: mode(c + ".100", darkActiveBg)(props), + }, + }; + }; + + var variantOutline$1 = function variantOutline(props) { + var c = props.colorScheme; + var borderColor = mode("gray.200", "whiteAlpha.300")(props); + return sizes_501602a9_esm_extends( + { + border: "1px solid", + borderColor: + c === "gray" ? borderColor : "currentColor", + ".chakra-button__group[data-attached] > &:not(:last-of-type)": + { + marginEnd: "-1px", + }, + }, + variantGhost(props) + ); + }; + + /** Accessible color overrides for less accessible colors. */ + var accessibleColorMap = { + yellow: { + bg: "yellow.400", + color: "black", + hoverBg: "yellow.500", + activeBg: "yellow.600", + }, + cyan: { + bg: "cyan.400", + color: "black", + hoverBg: "cyan.500", + activeBg: "cyan.600", + }, + }; + + var variantSolid$1 = function variantSolid(props) { + var _accessibleColorMap$c; + + var c = props.colorScheme; + + if (c === "gray") { + var _bg = mode("gray.100", "whiteAlpha.200")(props); + + return { + bg: _bg, + _hover: { + bg: mode("gray.200", "whiteAlpha.300")(props), + _disabled: { + bg: _bg, + }, + }, + _active: { + bg: mode("gray.300", "whiteAlpha.400")(props), + }, + }; + } + + var _ref = + (_accessibleColorMap$c = accessibleColorMap[c]) != null + ? _accessibleColorMap$c + : {}, + _ref$bg = _ref.bg, + bg = _ref$bg === void 0 ? c + ".500" : _ref$bg, + _ref$color = _ref.color, + color = _ref$color === void 0 ? "white" : _ref$color, + _ref$hoverBg = _ref.hoverBg, + hoverBg = + _ref$hoverBg === void 0 ? c + ".600" : _ref$hoverBg, + _ref$activeBg = _ref.activeBg, + activeBg = + _ref$activeBg === void 0 ? c + ".700" : _ref$activeBg; + + var background = mode(bg, c + ".200")(props); + return { + bg: background, + color: mode(color, "gray.800")(props), + _hover: { + bg: mode(hoverBg, c + ".300")(props), + _disabled: { + bg: background, + }, + }, + _active: { + bg: mode(activeBg, c + ".400")(props), + }, + }; + }; + + var variantLink = function variantLink(props) { + var c = props.colorScheme; + return { + padding: 0, + height: "auto", + lineHeight: "normal", + verticalAlign: "baseline", + color: mode(c + ".500", c + ".200")(props), + _hover: { + textDecoration: "underline", + _disabled: { + textDecoration: "none", + }, + }, + _active: { + color: mode(c + ".700", c + ".500")(props), + }, + }; + }; + + var variantUnstyled$2 = { + bg: "none", + color: "inherit", + display: "inline", + lineHeight: "inherit", + m: 0, + p: 0, + }; + var variants$9 = { + ghost: variantGhost, + outline: variantOutline$1, + solid: variantSolid$1, + link: variantLink, + unstyled: variantUnstyled$2, + }; + var sizes$j = { + lg: { + h: 12, + minW: 12, + fontSize: "lg", + px: 6, + }, + md: { + h: 10, + minW: 10, + fontSize: "md", + px: 4, + }, + sm: { + h: 8, + minW: 8, + fontSize: "sm", + px: 3, + }, + xs: { + h: 6, + minW: 6, + fontSize: "xs", + px: 2, + }, + }; + var defaultProps$k = { + variant: "solid", + size: "md", + colorScheme: "gray", + }; + var Button = { + baseStyle: baseStyle$y, + variants: variants$9, + sizes: sizes$j, + defaultProps: defaultProps$k, + }; + + var baseStyleControl$1 = function baseStyleControl(props) { + var c = props.colorScheme; + return { + w: "100%", + transitionProperty: "box-shadow", + transitionDuration: "normal", + border: "2px solid", + borderRadius: "sm", + borderColor: "inherit", + color: "white", + _checked: { + bg: mode(c + ".500", c + ".200")(props), + borderColor: mode(c + ".500", c + ".200")(props), + color: mode("white", "gray.900")(props), + _hover: { + bg: mode(c + ".600", c + ".300")(props), + borderColor: mode(c + ".600", c + ".300")(props), + }, + _disabled: { + borderColor: mode("gray.200", "transparent")(props), + bg: mode("gray.200", "whiteAlpha.300")(props), + color: mode("gray.500", "whiteAlpha.500")(props), + }, + }, + _indeterminate: { + bg: mode(c + ".500", c + ".200")(props), + borderColor: mode(c + ".500", c + ".200")(props), + color: mode("white", "gray.900")(props), + }, + _disabled: { + bg: mode("gray.100", "whiteAlpha.100")(props), + borderColor: mode("gray.100", "transparent")(props), + }, + _focusVisible: { + boxShadow: "outline", + }, + _invalid: { + borderColor: mode("red.500", "red.300")(props), + }, + }; + }; + + var baseStyleContainer$2 = { + _disabled: { + cursor: "not-allowed", + }, + }; + var baseStyleLabel$3 = { + userSelect: "none", + _disabled: { + opacity: 0.4, + }, + }; + var baseStyleIcon$4 = { + transitionProperty: "transform", + transitionDuration: "normal", + }; + + var baseStyle$x = function baseStyle(props) { + return { + icon: baseStyleIcon$4, + container: baseStyleContainer$2, + control: baseStyleControl$1(props), + label: baseStyleLabel$3, + }; + }; + + var sizes$i = { + sm: { + control: { + h: 3, + w: 3, + }, + label: { + fontSize: "sm", + }, + icon: { + fontSize: "0.45rem", + }, + }, + md: { + control: { + w: 4, + h: 4, + }, + label: { + fontSize: "md", + }, + icon: { + fontSize: "0.625rem", + }, + }, + lg: { + control: { + w: 5, + h: 5, + }, + label: { + fontSize: "lg", + }, + icon: { + fontSize: "0.625rem", + }, + }, + }; + var defaultProps$j = { + size: "md", + colorScheme: "blue", + }; + var Checkbox = { + parts: checkboxAnatomy.keys, + baseStyle: baseStyle$x, + sizes: sizes$i, + defaultProps: defaultProps$j, + }; + + var _lg$1, _md$1, _sm$1; + var $size$1 = cssVar("close-button-size"); + + var baseStyle$w = function baseStyle(props) { + var hoverBg = mode("blackAlpha.100", "whiteAlpha.100")(props); + var activeBg = mode("blackAlpha.200", "whiteAlpha.200")(props); + return { + w: [$size$1.reference], + h: [$size$1.reference], + borderRadius: "md", + transitionProperty: "common", + transitionDuration: "normal", + _disabled: { + opacity: 0.4, + cursor: "not-allowed", + boxShadow: "none", + }, + _hover: { + bg: hoverBg, + }, + _active: { + bg: activeBg, + }, + _focusVisible: { + boxShadow: "outline", + }, + }; + }; + + var sizes$h = { + lg: + ((_lg$1 = {}), + (_lg$1[$size$1.variable] = "40px"), + (_lg$1.fontSize = "16px"), + _lg$1), + md: + ((_md$1 = {}), + (_md$1[$size$1.variable] = "32px"), + (_md$1.fontSize = "12px"), + _md$1), + sm: + ((_sm$1 = {}), + (_sm$1[$size$1.variable] = "24px"), + (_sm$1.fontSize = "10px"), + _sm$1), + }; + var defaultProps$i = { + size: "md", + }; + var CloseButton = { + baseStyle: baseStyle$w, + sizes: sizes$h, + defaultProps: defaultProps$i, + }; + + var variants$8 = Badge.variants, + defaultProps$h = Badge.defaultProps; + var baseStyle$v = { + fontFamily: "mono", + fontSize: "sm", + px: "0.2em", + borderRadius: "sm", + }; + var Code = { + baseStyle: baseStyle$v, + variants: variants$8, + defaultProps: defaultProps$h, + }; + + var baseStyle$u = { + w: "100%", + mx: "auto", + maxW: "60ch", + px: "1rem", + }; + var chakra_ui_theme_components_esm_Container = { + baseStyle: baseStyle$u, + }; + + var baseStyle$t = { + opacity: 0.6, + borderColor: "inherit", + }; + var variantSolid = { + borderStyle: "solid", + }; + var variantDashed = { + borderStyle: "dashed", + }; + var variants$7 = { + solid: variantSolid, + dashed: variantDashed, + }; + var defaultProps$g = { + variant: "solid", + }; + var Divider = { + baseStyle: baseStyle$t, + variants: variants$7, + defaultProps: defaultProps$g, + }; + + /** + * Since the `maxWidth` prop references theme.sizes internally, + * we can leverage that to size our modals. + */ + + function getSize$2(value) { + if (value === "full") { + return { + dialog: { + maxW: "100vw", + h: "100vh", + }, + }; + } + + return { + dialog: { + maxW: value, + }, + }; + } + + var baseStyleOverlay$1 = { + bg: "blackAlpha.600", + zIndex: "overlay", + }; + var baseStyleDialogContainer$1 = { + display: "flex", + zIndex: "modal", + justifyContent: "center", + }; + + var baseStyleDialog$1 = function baseStyleDialog(props) { + var isFullHeight = props.isFullHeight; + return sizes_501602a9_esm_extends( + {}, + isFullHeight && { + height: "100vh", + }, + { + zIndex: "modal", + maxH: "100vh", + bg: mode("white", "gray.700")(props), + color: "inherit", + boxShadow: mode("lg", "dark-lg")(props), + } + ); + }; + + var baseStyleHeader$2 = { + px: 6, + py: 4, + fontSize: "xl", + fontWeight: "semibold", + }; + var baseStyleCloseButton$3 = { + position: "absolute", + top: 2, + insetEnd: 3, + }; + var baseStyleBody$2 = { + px: 6, + py: 2, + flex: 1, + overflow: "auto", + }; + var baseStyleFooter$2 = { + px: 6, + py: 4, + }; + + var baseStyle$s = function baseStyle(props) { + return { + overlay: baseStyleOverlay$1, + dialogContainer: baseStyleDialogContainer$1, + dialog: baseStyleDialog$1(props), + header: baseStyleHeader$2, + closeButton: baseStyleCloseButton$3, + body: baseStyleBody$2, + footer: baseStyleFooter$2, + }; + }; + + var sizes$g = { + xs: getSize$2("xs"), + sm: getSize$2("md"), + md: getSize$2("lg"), + lg: getSize$2("2xl"), + xl: getSize$2("4xl"), + full: getSize$2("full"), + }; + var defaultProps$f = { + size: "xs", + }; + var Drawer = { + parts: drawerAnatomy.keys, + baseStyle: baseStyle$s, + sizes: sizes$g, + defaultProps: defaultProps$f, + }; + + var baseStylePreview = { + borderRadius: "md", + py: "3px", + transitionProperty: "common", + transitionDuration: "normal", + }; + var baseStyleInput = { + borderRadius: "md", + py: "3px", + transitionProperty: "common", + transitionDuration: "normal", + width: "full", + _focusVisible: { + boxShadow: "outline", + }, + _placeholder: { + opacity: 0.6, + }, + }; + var baseStyleTextarea = { + borderRadius: "md", + py: "3px", + transitionProperty: "common", + transitionDuration: "normal", + width: "full", + _focusVisible: { + boxShadow: "outline", + }, + _placeholder: { + opacity: 0.6, + }, + }; + var baseStyle$r = { + preview: baseStylePreview, + input: baseStyleInput, + textarea: baseStyleTextarea, + }; + var Editable = { + parts: editableAnatomy.keys, + baseStyle: baseStyle$r, + }; + + var baseStyleRequiredIndicator = + function baseStyleRequiredIndicator(props) { + return { + marginStart: 1, + color: mode("red.500", "red.300")(props), + }; + }; + + var baseStyleHelperText = function baseStyleHelperText(props) { + return { + mt: 2, + color: mode("gray.500", "whiteAlpha.600")(props), + lineHeight: "normal", + fontSize: "sm", + }; + }; + + var baseStyle$q = function baseStyle(props) { + return { + container: { + width: "100%", + position: "relative", + }, + requiredIndicator: baseStyleRequiredIndicator(props), + helperText: baseStyleHelperText(props), + }; + }; + + var Form = { + parts: formAnatomy.keys, + baseStyle: baseStyle$q, + }; + + var baseStyleText = function baseStyleText(props) { + return { + color: mode("red.500", "red.300")(props), + mt: 2, + fontSize: "sm", + lineHeight: "normal", + }; + }; + + var baseStyleIcon$3 = function baseStyleIcon(props) { + return { + marginEnd: "0.5em", + color: mode("red.500", "red.300")(props), + }; + }; + + var baseStyle$p = function baseStyle(props) { + return { + text: baseStyleText(props), + icon: baseStyleIcon$3(props), + }; + }; + + var FormError = { + parts: formErrorAnatomy.keys, + baseStyle: baseStyle$p, + }; + + var baseStyle$o = { + fontSize: "md", + marginEnd: 3, + mb: 2, + fontWeight: "medium", + transitionProperty: "common", + transitionDuration: "normal", + opacity: 1, + _disabled: { + opacity: 0.4, + }, + }; + var FormLabel = { + baseStyle: baseStyle$o, + }; + + var baseStyle$n = { + fontFamily: "heading", + fontWeight: "bold", + }; + var sizes$f = { + "4xl": { + fontSize: ["6xl", null, "7xl"], + lineHeight: 1, + }, + "3xl": { + fontSize: ["5xl", null, "6xl"], + lineHeight: 1, + }, + "2xl": { + fontSize: ["4xl", null, "5xl"], + lineHeight: [1.2, null, 1], + }, + xl: { + fontSize: ["3xl", null, "4xl"], + lineHeight: [1.33, null, 1.2], + }, + lg: { + fontSize: ["2xl", null, "3xl"], + lineHeight: [1.33, null, 1.2], + }, + md: { + fontSize: "xl", + lineHeight: 1.2, + }, + sm: { + fontSize: "md", + lineHeight: 1.2, + }, + xs: { + fontSize: "sm", + lineHeight: 1.2, + }, + }; + var defaultProps$e = { + size: "xl", + }; + var Heading = { + baseStyle: baseStyle$n, + sizes: sizes$f, + defaultProps: defaultProps$e, + }; + + var baseStyle$m = { + field: { + width: "100%", + minWidth: 0, + outline: 0, + position: "relative", + appearance: "none", + transitionProperty: "common", + transitionDuration: "normal", + }, + }; + var size = { + lg: { + fontSize: "lg", + px: 4, + h: 12, + borderRadius: "md", + }, + md: { + fontSize: "md", + px: 4, + h: 10, + borderRadius: "md", + }, + sm: { + fontSize: "sm", + px: 3, + h: 8, + borderRadius: "sm", + }, + xs: { + fontSize: "xs", + px: 2, + h: 6, + borderRadius: "sm", + }, + }; + var sizes$e = { + lg: { + field: size.lg, + addon: size.lg, + }, + md: { + field: size.md, + addon: size.md, + }, + sm: { + field: size.sm, + addon: size.sm, + }, + xs: { + field: size.xs, + addon: size.xs, + }, + }; + + function getDefaults(props) { + var fc = props.focusBorderColor, + ec = props.errorBorderColor; + return { + focusBorderColor: fc || mode("blue.500", "blue.300")(props), + errorBorderColor: ec || mode("red.500", "red.300")(props), + }; + } + + var variantOutline = function variantOutline(props) { + var theme = props.theme; + + var _getDefaults = getDefaults(props), + fc = _getDefaults.focusBorderColor, + ec = _getDefaults.errorBorderColor; + + return { + field: { + border: "1px solid", + borderColor: "inherit", + bg: "inherit", + _hover: { + borderColor: mode( + "gray.300", + "whiteAlpha.400" + )(props), + }, + _readOnly: { + boxShadow: "none !important", + userSelect: "all", + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed", + }, + _invalid: { + borderColor: getColor(theme, ec), + boxShadow: "0 0 0 1px " + getColor(theme, ec), + }, + _focusVisible: { + zIndex: 1, + borderColor: getColor(theme, fc), + boxShadow: "0 0 0 1px " + getColor(theme, fc), + }, + }, + addon: { + border: "1px solid", + borderColor: mode("inherit", "whiteAlpha.50")(props), + bg: mode("gray.100", "whiteAlpha.300")(props), + }, + }; + }; + + var variantFilled = function variantFilled(props) { + var theme = props.theme; + + var _getDefaults2 = getDefaults(props), + fc = _getDefaults2.focusBorderColor, + ec = _getDefaults2.errorBorderColor; + + return { + field: { + border: "2px solid", + borderColor: "transparent", + bg: mode("gray.100", "whiteAlpha.50")(props), + _hover: { + bg: mode("gray.200", "whiteAlpha.100")(props), + }, + _readOnly: { + boxShadow: "none !important", + userSelect: "all", + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed", + }, + _invalid: { + borderColor: getColor(theme, ec), + }, + _focusVisible: { + bg: "transparent", + borderColor: getColor(theme, fc), + }, + }, + addon: { + border: "2px solid", + borderColor: "transparent", + bg: mode("gray.100", "whiteAlpha.50")(props), + }, + }; + }; + + var variantFlushed = function variantFlushed(props) { + var theme = props.theme; + + var _getDefaults3 = getDefaults(props), + fc = _getDefaults3.focusBorderColor, + ec = _getDefaults3.errorBorderColor; + + return { + field: { + borderBottom: "1px solid", + borderColor: "inherit", + borderRadius: 0, + px: 0, + bg: "transparent", + _readOnly: { + boxShadow: "none !important", + userSelect: "all", + }, + _invalid: { + borderColor: getColor(theme, ec), + boxShadow: "0px 1px 0px 0px " + getColor(theme, ec), + }, + _focusVisible: { + borderColor: getColor(theme, fc), + boxShadow: "0px 1px 0px 0px " + getColor(theme, fc), + }, + }, + addon: { + borderBottom: "2px solid", + borderColor: "inherit", + borderRadius: 0, + px: 0, + bg: "transparent", + }, + }; + }; + + var variantUnstyled$1 = { + field: { + bg: "transparent", + px: 0, + height: "auto", + }, + addon: { + bg: "transparent", + px: 0, + height: "auto", + }, + }; + var variants$6 = { + outline: variantOutline, + filled: variantFilled, + flushed: variantFlushed, + unstyled: variantUnstyled$1, + }; + var defaultProps$d = { + size: "md", + variant: "outline", + }; + var Input = { + parts: inputAnatomy.keys, + baseStyle: baseStyle$m, + sizes: sizes$e, + variants: variants$6, + defaultProps: defaultProps$d, + }; + + var baseStyle$l = function baseStyle(props) { + return { + bg: mode("gray.100", "whiteAlpha")(props), + borderRadius: "md", + borderWidth: "1px", + borderBottomWidth: "3px", + fontSize: "0.8em", + fontWeight: "bold", + lineHeight: "normal", + px: "0.4em", + whiteSpace: "nowrap", + }; + }; + + var Kbd = { + baseStyle: baseStyle$l, + }; + + var baseStyle$k = { + transitionProperty: "common", + transitionDuration: "fast", + transitionTimingFunction: "ease-out", + cursor: "pointer", + textDecoration: "none", + outline: "none", + color: "inherit", + _hover: { + textDecoration: "underline", + }, + _focusVisible: { + boxShadow: "outline", + }, + }; + var Link = { + baseStyle: baseStyle$k, + }; + + var baseStyleIcon$2 = { + marginEnd: "0.5rem", + display: "inline", + verticalAlign: "text-bottom", + }; + var baseStyle$j = { + container: {}, + item: {}, + icon: baseStyleIcon$2, + }; + var List = { + parts: listAnatomy.keys, + baseStyle: baseStyle$j, + }; + + var baseStyleList = function baseStyleList(props) { + return { + bg: mode("#fff", "gray.700")(props), + boxShadow: mode("sm", "dark-lg")(props), + color: "inherit", + minW: "3xs", + py: "2", + zIndex: 1, + borderRadius: "md", + borderWidth: "1px", + }; + }; + + var baseStyleItem = function baseStyleItem(props) { + return { + py: "0.4rem", + px: "0.8rem", + transitionProperty: "background", + transitionDuration: "ultra-fast", + transitionTimingFunction: "ease-in", + _focus: { + bg: mode("gray.100", "whiteAlpha.100")(props), + }, + _active: { + bg: mode("gray.200", "whiteAlpha.200")(props), + }, + _expanded: { + bg: mode("gray.100", "whiteAlpha.100")(props), + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed", + }, + }; + }; + + var baseStyleGroupTitle = { + mx: 4, + my: 2, + fontWeight: "semibold", + fontSize: "sm", + }; + var baseStyleCommand = { + opacity: 0.6, + }; + var baseStyleDivider = { + border: 0, + borderBottom: "1px solid", + borderColor: "inherit", + my: "0.5rem", + opacity: 0.6, + }; + var baseStyleButton = { + transitionProperty: "common", + transitionDuration: "normal", + }; + + var baseStyle$i = function baseStyle(props) { + return { + button: baseStyleButton, + list: baseStyleList(props), + item: baseStyleItem(props), + groupTitle: baseStyleGroupTitle, + command: baseStyleCommand, + divider: baseStyleDivider, + }; + }; + + var Menu = { + parts: menuAnatomy.keys, + baseStyle: baseStyle$i, + }; + + var baseStyleOverlay = { + bg: "blackAlpha.600", + zIndex: "modal", + }; + + var baseStyleDialogContainer = function baseStyleDialogContainer( + props + ) { + var isCentered = props.isCentered, + scrollBehavior = props.scrollBehavior; + return { + display: "flex", + zIndex: "modal", + justifyContent: "center", + alignItems: isCentered ? "center" : "flex-start", + overflow: scrollBehavior === "inside" ? "hidden" : "auto", + }; + }; + + var baseStyleDialog = function baseStyleDialog(props) { + var scrollBehavior = props.scrollBehavior; + return { + borderRadius: "md", + bg: mode("white", "gray.700")(props), + color: "inherit", + my: "3.75rem", + zIndex: "modal", + maxH: + scrollBehavior === "inside" + ? "calc(100% - 7.5rem)" + : undefined, + boxShadow: mode("lg", "dark-lg")(props), + }; + }; + + var baseStyleHeader$1 = { + px: 6, + py: 4, + fontSize: "xl", + fontWeight: "semibold", + }; + var baseStyleCloseButton$2 = { + position: "absolute", + top: 2, + insetEnd: 3, + }; + + var baseStyleBody$1 = function baseStyleBody(props) { + var scrollBehavior = props.scrollBehavior; + return { + px: 6, + py: 2, + flex: 1, + overflow: scrollBehavior === "inside" ? "auto" : undefined, + }; + }; + + var baseStyleFooter$1 = { + px: 6, + py: 4, + }; + + var baseStyle$h = function baseStyle(props) { + return { + overlay: baseStyleOverlay, + dialogContainer: baseStyleDialogContainer(props), + dialog: baseStyleDialog(props), + header: baseStyleHeader$1, + closeButton: baseStyleCloseButton$2, + body: baseStyleBody$1(props), + footer: baseStyleFooter$1, + }; + }; + /** + * Since the `maxWidth` prop references theme.sizes internally, + * we can leverage that to size our modals. + */ + + function getSize$1(value) { + if (value === "full") { + return { + dialog: { + maxW: "100vw", + minH: "100vh", + "@supports(min-height: -webkit-fill-available)": { + minH: "-webkit-fill-available", + }, + my: 0, + }, + }; + } + + return { + dialog: { + maxW: value, + }, + }; + } + + var sizes$d = { + xs: getSize$1("xs"), + sm: getSize$1("sm"), + md: getSize$1("md"), + lg: getSize$1("lg"), + xl: getSize$1("xl"), + "2xl": getSize$1("2xl"), + "3xl": getSize$1("3xl"), + "4xl": getSize$1("4xl"), + "5xl": getSize$1("5xl"), + "6xl": getSize$1("6xl"), + full: getSize$1("full"), + }; + var defaultProps$c = { + size: "md", + }; + var Modal = { + parts: modalAnatomy.keys, + baseStyle: baseStyle$h, + sizes: sizes$d, + defaultProps: defaultProps$c, + }; + + var _baseStyleRoot, _Input$baseStyle$fiel, _Input$baseStyle; + var variants$5 = Input.variants, + defaultProps$b = Input.defaultProps; + var $stepperWidth = cssVar("number-input-stepper-width"); + var $inputPadding = cssVar("number-input-input-padding"); + var inputPaddingValue = calc($stepperWidth) + .add("0.5rem") + .toString(); + var baseStyleRoot$1 = + ((_baseStyleRoot = {}), + (_baseStyleRoot[$stepperWidth.variable] = "24px"), + (_baseStyleRoot[$inputPadding.variable] = inputPaddingValue), + _baseStyleRoot); + var baseStyleField$1 = + (_Input$baseStyle$fiel = + (_Input$baseStyle = Input.baseStyle) == null + ? void 0 + : _Input$baseStyle.field) != null + ? _Input$baseStyle$fiel + : {}; + var baseStyleStepperGroup = { + width: [$stepperWidth.reference], + }; + + var baseStyleStepper = function baseStyleStepper(props) { + return { + borderStart: "1px solid", + borderStartColor: mode("inherit", "whiteAlpha.300")(props), + color: mode("inherit", "whiteAlpha.800")(props), + _active: { + bg: mode("gray.200", "whiteAlpha.300")(props), + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed", + }, + }; + }; + + var baseStyle$g = function baseStyle(props) { + return { + root: baseStyleRoot$1, + field: baseStyleField$1, + stepperGroup: baseStyleStepperGroup, + stepper: baseStyleStepper(props), + }; + }; + + function getSize(size) { + var _sizeStyle$field$font, _sizeStyle$field; + + var sizeStyle = Input.sizes[size]; + var radius = { + lg: "md", + md: "md", + sm: "sm", + xs: "sm", + }; + + var _fontSize = + (_sizeStyle$field$font = + (_sizeStyle$field = sizeStyle.field) == null + ? void 0 + : _sizeStyle$field.fontSize) != null + ? _sizeStyle$field$font + : "md"; + + var fontSize = typography.fontSizes[_fontSize]; + return { + field: sizes_501602a9_esm_extends({}, sizeStyle.field, { + paddingInlineEnd: $inputPadding.reference, + verticalAlign: "top", + }), + stepper: { + fontSize: calc(fontSize).multiply(0.75).toString(), + _first: { + borderTopEndRadius: radius[size], + }, + _last: { + borderBottomEndRadius: radius[size], + mt: "-1px", + borderTopWidth: 1, + }, + }, + }; + } + + var sizes$c = { + xs: getSize("xs"), + sm: getSize("sm"), + md: getSize("md"), + lg: getSize("lg"), + }; + var NumberInput = { + parts: numberInputAnatomy.keys, + baseStyle: baseStyle$g, + sizes: sizes$c, + variants: variants$5, + defaultProps: defaultProps$b, + }; + + var _Input$variants$unsty$1; + + var baseStyle$f = sizes_501602a9_esm_extends( + {}, + Input.baseStyle.field, + { + textAlign: "center", + } + ); + + var sizes$b = { + lg: { + fontSize: "lg", + w: 12, + h: 12, + borderRadius: "md", + }, + md: { + fontSize: "md", + w: 10, + h: 10, + borderRadius: "md", + }, + sm: { + fontSize: "sm", + w: 8, + h: 8, + borderRadius: "sm", + }, + xs: { + fontSize: "xs", + w: 6, + h: 6, + borderRadius: "sm", + }, + }; + var variants$4 = { + outline: function outline(props) { + var _Input$variants$outli; + + return (_Input$variants$outli = + Input.variants.outline(props).field) != null + ? _Input$variants$outli + : {}; + }, + flushed: function flushed(props) { + var _Input$variants$flush; + + return (_Input$variants$flush = + Input.variants.flushed(props).field) != null + ? _Input$variants$flush + : {}; + }, + filled: function filled(props) { + var _Input$variants$fille; + + return (_Input$variants$fille = + Input.variants.filled(props).field) != null + ? _Input$variants$fille + : {}; + }, + unstyled: + (_Input$variants$unsty$1 = Input.variants.unstyled.field) != + null + ? _Input$variants$unsty$1 + : {}, + }; + var defaultProps$a = Input.defaultProps; + var PinInput = { + baseStyle: baseStyle$f, + sizes: sizes$b, + variants: variants$4, + defaultProps: defaultProps$a, + }; + + var $popperBg = cssVar("popper-bg"); + var $arrowBg$1 = cssVar("popper-arrow-bg"); + var $arrowShadowColor = cssVar("popper-arrow-shadow-color"); + var baseStylePopper = { + zIndex: 10, + }; + + var baseStyleContent = function baseStyleContent(props) { + var _ref; + + var bg = mode("white", "gray.700")(props); + var shadowColor = mode("gray.200", "whiteAlpha.300")(props); + return ( + (_ref = {}), + (_ref[$popperBg.variable] = "colors." + bg), + (_ref.bg = $popperBg.reference), + (_ref[$arrowBg$1.variable] = $popperBg.reference), + (_ref[$arrowShadowColor.variable] = + "colors." + shadowColor), + (_ref.width = "xs"), + (_ref.border = "1px solid"), + (_ref.borderColor = "inherit"), + (_ref.borderRadius = "md"), + (_ref.boxShadow = "sm"), + (_ref.zIndex = "inherit"), + (_ref._focusVisible = { + outline: 0, + boxShadow: "outline", + }), + _ref + ); + }; + + var baseStyleHeader = { + px: 3, + py: 2, + borderBottomWidth: "1px", + }; + var baseStyleBody = { + px: 3, + py: 2, + }; + var baseStyleFooter = { + px: 3, + py: 2, + borderTopWidth: "1px", + }; + var baseStyleCloseButton$1 = { + position: "absolute", + borderRadius: "md", + top: 1, + insetEnd: 2, + padding: 2, + }; + + var baseStyle$e = function baseStyle(props) { + return { + popper: baseStylePopper, + content: baseStyleContent(props), + header: baseStyleHeader, + body: baseStyleBody, + footer: baseStyleFooter, + arrow: {}, + closeButton: baseStyleCloseButton$1, + }; + }; + + var Popover = { + parts: popoverAnatomy.keys, + baseStyle: baseStyle$e, + }; + + function filledStyle(props) { + var c = props.colorScheme, + t = props.theme, + isIndeterminate = props.isIndeterminate, + hasStripe = props.hasStripe; + var stripeStyle = mode( + generateStripe(), + generateStripe("1rem", "rgba(0,0,0,0.1)") + )(props); + var bgColor = mode(c + ".500", c + ".200")(props); + var gradient = + "linear-gradient(\n to right,\n transparent 0%,\n " + + getColor(t, bgColor) + + " 50%,\n transparent 100%\n )"; + var addStripe = !isIndeterminate && hasStripe; + return sizes_501602a9_esm_extends( + {}, + addStripe && stripeStyle, + isIndeterminate + ? { + bgImage: gradient, + } + : { + bgColor: bgColor, + } + ); + } + + var baseStyleLabel$2 = { + lineHeight: "1", + fontSize: "0.25em", + fontWeight: "bold", + color: "white", + }; + + var baseStyleTrack$2 = function baseStyleTrack(props) { + return { + bg: mode("gray.100", "whiteAlpha.300")(props), + }; + }; + + var baseStyleFilledTrack$1 = function baseStyleFilledTrack(props) { + return sizes_501602a9_esm_extends( + { + transitionProperty: "common", + transitionDuration: "slow", + }, + filledStyle(props) + ); + }; + + var baseStyle$d = function baseStyle(props) { + return { + label: baseStyleLabel$2, + filledTrack: baseStyleFilledTrack$1(props), + track: baseStyleTrack$2(props), + }; + }; + + var sizes$a = { + xs: { + track: { + h: "0.25rem", + }, + }, + sm: { + track: { + h: "0.5rem", + }, + }, + md: { + track: { + h: "0.75rem", + }, + }, + lg: { + track: { + h: "1rem", + }, + }, + }; + var defaultProps$9 = { + size: "md", + colorScheme: "blue", + }; + var Progress = { + parts: progressAnatomy.keys, + sizes: sizes$a, + baseStyle: baseStyle$d, + defaultProps: defaultProps$9, + }; + + var baseStyleControl = function baseStyleControl(props) { + var _Checkbox$baseStyle = Checkbox.baseStyle(props), + _Checkbox$baseStyle$c = _Checkbox$baseStyle.control, + control = + _Checkbox$baseStyle$c === void 0 + ? {} + : _Checkbox$baseStyle$c; + + return sizes_501602a9_esm_extends({}, control, { + borderRadius: "full", + _checked: sizes_501602a9_esm_extends( + {}, + control["_checked"], + { + _before: { + content: '""', + display: "inline-block", + pos: "relative", + w: "50%", + h: "50%", + borderRadius: "50%", + bg: "currentColor", + }, + } + ), + }); + }; + + var baseStyle$c = function baseStyle(props) { + return { + label: Checkbox.baseStyle(props).label, + container: Checkbox.baseStyle(props).container, + control: baseStyleControl(props), + }; + }; + + var sizes$9 = { + md: { + control: { + w: 4, + h: 4, + }, + label: { + fontSize: "md", + }, + }, + lg: { + control: { + w: 5, + h: 5, + }, + label: { + fontSize: "lg", + }, + }, + sm: { + control: { + width: 3, + height: 3, + }, + label: { + fontSize: "sm", + }, + }, + }; + var defaultProps$8 = { + size: "md", + colorScheme: "blue", + }; + var Radio = { + parts: radioAnatomy.keys, + baseStyle: baseStyle$c, + sizes: sizes$9, + defaultProps: defaultProps$8, + }; + + var baseStyleField = function baseStyleField(props) { + return sizes_501602a9_esm_extends({}, Input.baseStyle.field, { + bg: mode("white", "gray.700")(props), + appearance: "none", + paddingBottom: "1px", + lineHeight: "normal", + "> option, > optgroup": { + bg: mode("white", "gray.700")(props), + }, + }); + }; + + var baseStyleIcon$1 = { + width: "1.5rem", + height: "100%", + insetEnd: "0.5rem", + position: "relative", + color: "currentColor", + fontSize: "1.25rem", + _disabled: { + opacity: 0.5, + }, + }; + + var baseStyle$b = function baseStyle(props) { + return { + field: baseStyleField(props), + icon: baseStyleIcon$1, + }; + }; + + var iconSpacing = { + paddingInlineEnd: "2rem", + }; + var sizes$8 = lodash_mergewith_default()({}, Input.sizes, { + lg: { + field: iconSpacing, + }, + md: { + field: iconSpacing, + }, + sm: { + field: iconSpacing, + }, + xs: { + field: iconSpacing, + icon: { + insetEnd: "0.25rem", + }, + }, + }); + var Select = { + parts: selectAnatomy.keys, + baseStyle: baseStyle$b, + sizes: sizes$8, + variants: Input.variants, + defaultProps: Input.defaultProps, + }; + + var fade = function fade(startColor, endColor) { + return (0, emotion_react_browser_esm /* keyframes */.F4)({ + from: { + borderColor: startColor, + background: startColor, + }, + to: { + borderColor: endColor, + background: endColor, + }, + }); + }; + + var baseStyle$a = function baseStyle(props) { + var defaultStartColor = mode("gray.100", "gray.800")(props); + var defaultEndColor = mode("gray.400", "gray.600")(props); + var _props$startColor = props.startColor, + startColor = + _props$startColor === void 0 + ? defaultStartColor + : _props$startColor, + _props$endColor = props.endColor, + endColor = + _props$endColor === void 0 + ? defaultEndColor + : _props$endColor, + speed = props.speed, + theme = props.theme; + var start = getColor(theme, startColor); + var end = getColor(theme, endColor); + return { + opacity: 0.7, + borderRadius: "2px", + borderColor: start, + background: end, + animation: + speed + + "s linear infinite alternate " + + fade(start, end), + }; + }; + + var Skeleton = { + baseStyle: baseStyle$a, + }; + + var baseStyle$9 = function baseStyle(props) { + return { + borderRadius: "md", + fontWeight: "semibold", + _focusVisible: { + boxShadow: "outline", + padding: "1rem", + position: "fixed", + top: "1.5rem", + insetStart: "1.5rem", + bg: mode("white", "gray.700")(props), + }, + }; + }; + + var SkipLink = { + baseStyle: baseStyle$9, + }; + + function thumbOrientation(props) { + return orient({ + orientation: props.orientation, + vertical: { + left: "50%", + transform: "translateX(-50%)", + _active: { + transform: "translateX(-50%) scale(1.15)", + }, + }, + horizontal: { + top: "50%", + transform: "translateY(-50%)", + _active: { + transform: "translateY(-50%) scale(1.15)", + }, + }, + }); + } + + var baseStyleContainer$1 = function baseStyleContainer(props) { + var orientation = props.orientation; + return sizes_501602a9_esm_extends( + { + display: "inline-block", + position: "relative", + cursor: "pointer", + _disabled: { + opacity: 0.6, + cursor: "default", + pointerEvents: "none", + }, + }, + orient({ + orientation: orientation, + vertical: { + h: "100%", + }, + horizontal: { + w: "100%", + }, + }) + ); + }; + + var baseStyleTrack$1 = function baseStyleTrack(props) { + return { + overflow: "hidden", + borderRadius: "sm", + bg: mode("gray.200", "whiteAlpha.200")(props), + _disabled: { + bg: mode("gray.300", "whiteAlpha.300")(props), + }, + }; + }; + + var baseStyleThumb$1 = function baseStyleThumb(props) { + return sizes_501602a9_esm_extends( + { + display: "flex", + alignItems: "center", + justifyContent: "center", + position: "absolute", + outline: 0, + zIndex: 1, + borderRadius: "full", + bg: "white", + boxShadow: "base", + border: "1px solid", + borderColor: "transparent", + transitionProperty: "transform", + transitionDuration: "normal", + _focusVisible: { + boxShadow: "outline", + }, + _disabled: { + bg: "gray.300", + }, + }, + thumbOrientation(props) + ); + }; + + var baseStyleFilledTrack = function baseStyleFilledTrack(props) { + var c = props.colorScheme; + return { + width: "inherit", + height: "inherit", + bg: mode(c + ".500", c + ".200")(props), + }; + }; + + var baseStyle$8 = function baseStyle(props) { + return { + container: baseStyleContainer$1(props), + track: baseStyleTrack$1(props), + thumb: baseStyleThumb$1(props), + filledTrack: baseStyleFilledTrack(props), + }; + }; + + var sizeLg = function sizeLg(props) { + return { + thumb: { + w: "16px", + h: "16px", + }, + track: orient({ + orientation: props.orientation, + horizontal: { + h: "4px", + }, + vertical: { + w: "4px", + }, + }), + }; + }; + + var sizeMd = function sizeMd(props) { + return { + thumb: { + w: "14px", + h: "14px", + }, + track: orient({ + orientation: props.orientation, + horizontal: { + h: "4px", + }, + vertical: { + w: "4px", + }, + }), + }; + }; + + var sizeSm = function sizeSm(props) { + return { + thumb: { + w: "10px", + h: "10px", + }, + track: orient({ + orientation: props.orientation, + horizontal: { + h: "2px", + }, + vertical: { + w: "2px", + }, + }), + }; + }; + + var sizes$7 = { + lg: sizeLg, + md: sizeMd, + sm: sizeSm, + }; + var defaultProps$7 = { + size: "md", + colorScheme: "blue", + }; + var Slider = { + parts: sliderAnatomy.keys, + sizes: sizes$7, + baseStyle: baseStyle$8, + defaultProps: defaultProps$7, + }; + + var _xs, _sm, _md, _lg, _xl; + var $size = cssVar("spinner-size"); + var baseStyle$7 = { + width: [$size.reference], + height: [$size.reference], + }; + var sizes$6 = { + xs: ((_xs = {}), (_xs[$size.variable] = "0.75rem"), _xs), + sm: ((_sm = {}), (_sm[$size.variable] = "1rem"), _sm), + md: ((_md = {}), (_md[$size.variable] = "1.5rem"), _md), + lg: ((_lg = {}), (_lg[$size.variable] = "2rem"), _lg), + xl: ((_xl = {}), (_xl[$size.variable] = "3rem"), _xl), + }; + var defaultProps$6 = { + size: "md", + }; + var Spinner = { + baseStyle: baseStyle$7, + sizes: sizes$6, + defaultProps: defaultProps$6, + }; + + var baseStyleLabel$1 = { + fontWeight: "medium", + }; + var baseStyleHelpText = { + opacity: 0.8, + marginBottom: 2, + }; + var baseStyleNumber = { + verticalAlign: "baseline", + fontWeight: "semibold", + }; + var baseStyleIcon = { + marginEnd: 1, + w: "14px", + h: "14px", + verticalAlign: "middle", + }; + var baseStyle$6 = { + container: {}, + label: baseStyleLabel$1, + helpText: baseStyleHelpText, + number: baseStyleNumber, + icon: baseStyleIcon, + }; + var sizes$5 = { + md: { + label: { + fontSize: "sm", + }, + helpText: { + fontSize: "sm", + }, + number: { + fontSize: "2xl", + }, + }, + }; + var defaultProps$5 = { + size: "md", + }; + var Stat = { + parts: statAnatomy.keys, + baseStyle: baseStyle$6, + sizes: sizes$5, + defaultProps: defaultProps$5, + }; + + var _container2, _container3, _container4; + var $width = cssVar("switch-track-width"); + var $height = cssVar("switch-track-height"); + var $diff = cssVar("switch-track-diff"); + var diffValue = calc.subtract($width, $height); + var $translateX = cssVar("switch-thumb-x"); + + var baseStyleTrack = function baseStyleTrack(props) { + var c = props.colorScheme; + return { + borderRadius: "full", + p: "2px", + width: [$width.reference], + height: [$height.reference], + transitionProperty: "common", + transitionDuration: "fast", + bg: mode("gray.300", "whiteAlpha.400")(props), + _focusVisible: { + boxShadow: "outline", + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed", + }, + _checked: { + bg: mode(c + ".500", c + ".200")(props), + }, + }; + }; + + var baseStyleThumb = { + bg: "white", + transitionProperty: "transform", + transitionDuration: "normal", + borderRadius: "inherit", + width: [$height.reference], + height: [$height.reference], + _checked: { + transform: "translateX(" + $translateX.reference + ")", + }, + }; + + var baseStyle$5 = function baseStyle(props) { + var _rtl, _container; + + return { + container: + ((_container = {}), + (_container[$diff.variable] = diffValue), + (_container[$translateX.variable] = $diff.reference), + (_container._rtl = + ((_rtl = {}), + (_rtl[$translateX.variable] = calc($diff) + .negate() + .toString()), + _rtl)), + _container), + track: baseStyleTrack(props), + thumb: baseStyleThumb, + }; + }; + + var sizes$4 = { + sm: { + container: + ((_container2 = {}), + (_container2[$width.variable] = "1.375rem"), + (_container2[$height.variable] = "0.75rem"), + _container2), + }, + md: { + container: + ((_container3 = {}), + (_container3[$width.variable] = "1.875rem"), + (_container3[$height.variable] = "1rem"), + _container3), + }, + lg: { + container: + ((_container4 = {}), + (_container4[$width.variable] = "2.875rem"), + (_container4[$height.variable] = "1.5rem"), + _container4), + }, + }; + var defaultProps$4 = { + size: "md", + colorScheme: "blue", + }; + var Switch = { + parts: switchAnatomy.keys, + baseStyle: baseStyle$5, + sizes: sizes$4, + defaultProps: defaultProps$4, + }; + + var baseStyle$4 = { + table: { + fontVariantNumeric: "lining-nums tabular-nums", + borderCollapse: "collapse", + width: "full", + }, + th: { + fontFamily: "heading", + fontWeight: "bold", + textTransform: "uppercase", + letterSpacing: "wider", + textAlign: "start", + }, + td: { + textAlign: "start", + }, + caption: { + mt: 4, + fontFamily: "heading", + textAlign: "center", + fontWeight: "medium", + }, + }; + var numericStyles = { + "&[data-is-numeric=true]": { + textAlign: "end", + }, + }; + + var variantSimple = function variantSimple(props) { + var c = props.colorScheme; + return { + th: sizes_501602a9_esm_extends( + { + color: mode("gray.600", "gray.400")(props), + borderBottom: "1px", + borderColor: mode(c + ".100", c + ".700")(props), + }, + numericStyles + ), + td: sizes_501602a9_esm_extends( + { + borderBottom: "1px", + borderColor: mode(c + ".100", c + ".700")(props), + }, + numericStyles + ), + caption: { + color: mode("gray.600", "gray.100")(props), + }, + tfoot: { + tr: { + "&:last-of-type": { + th: { + borderBottomWidth: 0, + }, + }, + }, + }, + }; + }; + + var variantStripe = function variantStripe(props) { + var c = props.colorScheme; + return { + th: sizes_501602a9_esm_extends( + { + color: mode("gray.600", "gray.400")(props), + borderBottom: "1px", + borderColor: mode(c + ".100", c + ".700")(props), + }, + numericStyles + ), + td: sizes_501602a9_esm_extends( + { + borderBottom: "1px", + borderColor: mode(c + ".100", c + ".700")(props), + }, + numericStyles + ), + caption: { + color: mode("gray.600", "gray.100")(props), + }, + tbody: { + tr: { + "&:nth-of-type(odd)": { + "th, td": { + borderBottomWidth: "1px", + borderColor: mode( + c + ".100", + c + ".700" + )(props), + }, + td: { + background: mode( + c + ".100", + c + ".700" + )(props), + }, + }, + }, + }, + tfoot: { + tr: { + "&:last-of-type": { + th: { + borderBottomWidth: 0, + }, + }, + }, + }, + }; + }; + + var variants$3 = { + simple: variantSimple, + striped: variantStripe, + unstyled: {}, + }; + var sizes$3 = { + sm: { + th: { + px: "4", + py: "1", + lineHeight: "4", + fontSize: "xs", + }, + td: { + px: "4", + py: "2", + fontSize: "sm", + lineHeight: "4", + }, + caption: { + px: "4", + py: "2", + fontSize: "xs", + }, + }, + md: { + th: { + px: "6", + py: "3", + lineHeight: "4", + fontSize: "xs", + }, + td: { + px: "6", + py: "4", + lineHeight: "5", + }, + caption: { + px: "6", + py: "2", + fontSize: "sm", + }, + }, + lg: { + th: { + px: "8", + py: "4", + lineHeight: "5", + fontSize: "sm", + }, + td: { + px: "8", + py: "5", + lineHeight: "6", + }, + caption: { + px: "6", + py: "2", + fontSize: "md", + }, + }, + }; + var defaultProps$3 = { + variant: "simple", + size: "md", + colorScheme: "gray", + }; + var Table = { + parts: tableAnatomy.keys, + baseStyle: baseStyle$4, + variants: variants$3, + sizes: sizes$3, + defaultProps: defaultProps$3, + }; + + var baseStyleRoot = function baseStyleRoot(props) { + var orientation = props.orientation; + return { + display: orientation === "vertical" ? "flex" : "block", + }; + }; + + var baseStyleTab = function baseStyleTab(props) { + var isFitted = props.isFitted; + return { + flex: isFitted ? 1 : undefined, + transitionProperty: "common", + transitionDuration: "normal", + _focusVisible: { + zIndex: 1, + boxShadow: "outline", + }, + _disabled: { + cursor: "not-allowed", + opacity: 0.4, + }, + }; + }; + + var baseStyleTablist = function baseStyleTablist(props) { + var _props$align = props.align, + align = _props$align === void 0 ? "start" : _props$align, + orientation = props.orientation; + var alignments = { + end: "flex-end", + center: "center", + start: "flex-start", + }; + return { + justifyContent: alignments[align], + flexDirection: + orientation === "vertical" ? "column" : "row", + }; + }; + + var baseStyleTabpanel = { + p: 4, + }; + + var baseStyle$3 = function baseStyle(props) { + return { + root: baseStyleRoot(props), + tab: baseStyleTab(props), + tablist: baseStyleTablist(props), + tabpanel: baseStyleTabpanel, + }; + }; + + var sizes$2 = { + sm: { + tab: { + py: 1, + px: 4, + fontSize: "sm", + }, + }, + md: { + tab: { + fontSize: "md", + py: 2, + px: 4, + }, + }, + lg: { + tab: { + fontSize: "lg", + py: 3, + px: 4, + }, + }, + }; + + var variantLine = function variantLine(props) { + var _tablist, _tab; + + var c = props.colorScheme, + orientation = props.orientation; + var isVertical = orientation === "vertical"; + var borderProp = + orientation === "vertical" ? "borderStart" : "borderBottom"; + var marginProp = isVertical ? "marginStart" : "marginBottom"; + return { + tablist: + ((_tablist = {}), + (_tablist[borderProp] = "2px solid"), + (_tablist.borderColor = "inherit"), + _tablist), + tab: + ((_tab = {}), + (_tab[borderProp] = "2px solid"), + (_tab.borderColor = "transparent"), + (_tab[marginProp] = "-2px"), + (_tab._selected = { + color: mode(c + ".600", c + ".300")(props), + borderColor: "currentColor", + }), + (_tab._active = { + bg: mode("gray.200", "whiteAlpha.300")(props), + }), + (_tab._disabled = { + _active: { + bg: "none", + }, + }), + _tab), + }; + }; + + var variantEnclosed = function variantEnclosed(props) { + var c = props.colorScheme; + return { + tab: { + borderTopRadius: "md", + border: "1px solid", + borderColor: "transparent", + mb: "-1px", + _selected: { + color: mode(c + ".600", c + ".300")(props), + borderColor: "inherit", + borderBottomColor: mode("white", "gray.800")(props), + }, + }, + tablist: { + mb: "-1px", + borderBottom: "1px solid", + borderColor: "inherit", + }, + }; + }; + + var variantEnclosedColored = function variantEnclosedColored( + props + ) { + var c = props.colorScheme; + return { + tab: { + border: "1px solid", + borderColor: "inherit", + bg: mode("gray.50", "whiteAlpha.50")(props), + mb: "-1px", + _notLast: { + marginEnd: "-1px", + }, + _selected: { + bg: mode("#fff", "gray.800")(props), + color: mode(c + ".600", c + ".300")(props), + borderColor: "inherit", + borderTopColor: "currentColor", + borderBottomColor: "transparent", + }, + }, + tablist: { + mb: "-1px", + borderBottom: "1px solid", + borderColor: "inherit", + }, + }; + }; + + var variantSoftRounded = function variantSoftRounded(props) { + var c = props.colorScheme, + theme = props.theme; + return { + tab: { + borderRadius: "full", + fontWeight: "semibold", + color: "gray.600", + _selected: { + color: getColor(theme, c + ".700"), + bg: getColor(theme, c + ".100"), + }, + }, + }; + }; + + var variantSolidRounded = function variantSolidRounded(props) { + var c = props.colorScheme; + return { + tab: { + borderRadius: "full", + fontWeight: "semibold", + color: mode("gray.600", "inherit")(props), + _selected: { + color: mode("#fff", "gray.800")(props), + bg: mode(c + ".600", c + ".300")(props), + }, + }, + }; + }; + + var variantUnstyled = {}; + var variants$2 = { + line: variantLine, + enclosed: variantEnclosed, + "enclosed-colored": variantEnclosedColored, + "soft-rounded": variantSoftRounded, + "solid-rounded": variantSolidRounded, + unstyled: variantUnstyled, + }; + var defaultProps$2 = { + size: "md", + variant: "line", + colorScheme: "blue", + }; + var Tabs = { + parts: tabsAnatomy.keys, + baseStyle: baseStyle$3, + sizes: sizes$2, + variants: variants$2, + defaultProps: defaultProps$2, + }; + + var baseStyleContainer = { + fontWeight: "medium", + lineHeight: 1.2, + outline: 0, + borderRadius: "md", + _focusVisible: { + boxShadow: "outline", + }, + }; + var baseStyleLabel = { + lineHeight: 1.2, + overflow: "visible", + }; + var baseStyleCloseButton = { + fontSize: "18px", + w: "1.25rem", + h: "1.25rem", + transitionProperty: "common", + transitionDuration: "normal", + borderRadius: "full", + marginStart: "0.375rem", + marginEnd: "-1", + opacity: 0.5, + _disabled: { + opacity: 0.4, + }, + _focusVisible: { + boxShadow: "outline", + bg: "rgba(0, 0, 0, 0.14)", + }, + _hover: { + opacity: 0.8, + }, + _active: { + opacity: 1, + }, + }; + var baseStyle$2 = { + container: baseStyleContainer, + label: baseStyleLabel, + closeButton: baseStyleCloseButton, + }; + var sizes$1 = { + sm: { + container: { + minH: "1.25rem", + minW: "1.25rem", + fontSize: "xs", + px: 2, + }, + closeButton: { + marginEnd: "-2px", + marginStart: "0.35rem", + }, + }, + md: { + container: { + minH: "1.5rem", + minW: "1.5rem", + fontSize: "sm", + px: 2, + }, + }, + lg: { + container: { + minH: 8, + minW: 8, + fontSize: "md", + px: 3, + }, + }, + }; + var variants$1 = { + subtle: function subtle(props) { + return { + container: Badge.variants.subtle(props), + }; + }, + solid: function solid(props) { + return { + container: Badge.variants.solid(props), + }; + }, + outline: function outline(props) { + return { + container: Badge.variants.outline(props), + }; + }, + }; + var defaultProps$1 = { + size: "md", + variant: "subtle", + colorScheme: "gray", + }; + var Tag = { + parts: tagAnatomy.keys, + variants: variants$1, + baseStyle: baseStyle$2, + sizes: sizes$1, + defaultProps: defaultProps$1, + }; + + var _Input$variants$unsty, + _Input$sizes$xs$field, + _Input$sizes$sm$field, + _Input$sizes$md$field, + _Input$sizes$lg$field; + + var baseStyle$1 = sizes_501602a9_esm_extends( + {}, + Input.baseStyle.field, + { + paddingY: "8px", + minHeight: "80px", + lineHeight: "short", + verticalAlign: "top", + } + ); + + var variants = { + outline: function outline(props) { + var _Input$variants$outli; + + return (_Input$variants$outli = + Input.variants.outline(props).field) != null + ? _Input$variants$outli + : {}; + }, + flushed: function flushed(props) { + var _Input$variants$flush; + + return (_Input$variants$flush = + Input.variants.flushed(props).field) != null + ? _Input$variants$flush + : {}; + }, + filled: function filled(props) { + var _Input$variants$fille; + + return (_Input$variants$fille = + Input.variants.filled(props).field) != null + ? _Input$variants$fille + : {}; + }, + unstyled: + (_Input$variants$unsty = Input.variants.unstyled.field) != + null + ? _Input$variants$unsty + : {}, + }; + var chakra_ui_theme_components_esm_sizes = { + xs: + (_Input$sizes$xs$field = Input.sizes.xs.field) != null + ? _Input$sizes$xs$field + : {}, + sm: + (_Input$sizes$sm$field = Input.sizes.sm.field) != null + ? _Input$sizes$sm$field + : {}, + md: + (_Input$sizes$md$field = Input.sizes.md.field) != null + ? _Input$sizes$md$field + : {}, + lg: + (_Input$sizes$lg$field = Input.sizes.lg.field) != null + ? _Input$sizes$lg$field + : {}, + }; + var defaultProps = { + size: "md", + variant: "outline", + }; + var Textarea = { + baseStyle: baseStyle$1, + sizes: chakra_ui_theme_components_esm_sizes, + variants: variants, + defaultProps: defaultProps, + }; + + var $bg = cssVar("tooltip-bg"); + var $arrowBg = cssVar("popper-arrow-bg"); + + var baseStyle = function baseStyle(props) { + var _ref; + + var bg = mode("gray.700", "gray.300")(props); + return ( + (_ref = {}), + (_ref[$bg.variable] = "colors." + bg), + (_ref.px = "8px"), + (_ref.py = "2px"), + (_ref.bg = [$bg.reference]), + (_ref[$arrowBg.variable] = [$bg.reference]), + (_ref.color = mode("whiteAlpha.900", "gray.900")(props)), + (_ref.borderRadius = "sm"), + (_ref.fontWeight = "medium"), + (_ref.fontSize = "sm"), + (_ref.boxShadow = "md"), + (_ref.maxW = "320px"), + (_ref.zIndex = "tooltip"), + _ref + ); + }; + + var Tooltip = { + baseStyle: baseStyle, + }; + + var components = { + Accordion: Accordion, + Alert: Alert, + Avatar: Avatar, + Badge: Badge, + Breadcrumb: Breadcrumb, + Button: Button, + Checkbox: Checkbox, + CloseButton: CloseButton, + Code: Code, + Container: chakra_ui_theme_components_esm_Container, + Divider: Divider, + Drawer: Drawer, + Editable: Editable, + Form: Form, + FormError: FormError, + FormLabel: FormLabel, + Heading: Heading, + Input: Input, + Kbd: Kbd, + Link: Link, + List: List, + Menu: Menu, + Modal: Modal, + NumberInput: NumberInput, + PinInput: PinInput, + Popover: Popover, + Progress: Progress, + Radio: Radio, + Select: Select, + Skeleton: Skeleton, + SkipLink: SkipLink, + Slider: Slider, + Spinner: Spinner, + Stat: Stat, + Switch: Switch, + Table: Table, + Tabs: Tabs, + Tag: Tag, + Textarea: Textarea, + Tooltip: Tooltip, + }; // CONCATENATED MODULE: ./node_modules/@chakra-ui/theme/foundations/borders/dist/chakra-ui-theme-foundations-borders.esm.js + + var borders = { + none: 0, + "1px": "1px solid", + "2px": "2px solid", + "4px": "4px solid", + "8px": "8px solid", + }; // CONCATENATED MODULE: ./node_modules/@chakra-ui/theme/foundations/breakpoints/dist/chakra-ui-theme-foundations-breakpoints.esm.js + + /** + * Breakpoints for responsive design + */ + + var breakpoints = createBreakpoints({ + sm: "30em", + md: "48em", + lg: "62em", + xl: "80em", + "2xl": "96em", + }); // CONCATENATED MODULE: ./node_modules/@chakra-ui/theme/foundations/colors/dist/chakra-ui-theme-foundations-colors.esm.js + + var colors = { + transparent: "transparent", + current: "currentColor", + black: "#000000", + white: "#FFFFFF", + whiteAlpha: { + 50: "rgba(255, 255, 255, 0.04)", + 100: "rgba(255, 255, 255, 0.06)", + 200: "rgba(255, 255, 255, 0.08)", + 300: "rgba(255, 255, 255, 0.16)", + 400: "rgba(255, 255, 255, 0.24)", + 500: "rgba(255, 255, 255, 0.36)", + 600: "rgba(255, 255, 255, 0.48)", + 700: "rgba(255, 255, 255, 0.64)", + 800: "rgba(255, 255, 255, 0.80)", + 900: "rgba(255, 255, 255, 0.92)", + }, + blackAlpha: { + 50: "rgba(0, 0, 0, 0.04)", + 100: "rgba(0, 0, 0, 0.06)", + 200: "rgba(0, 0, 0, 0.08)", + 300: "rgba(0, 0, 0, 0.16)", + 400: "rgba(0, 0, 0, 0.24)", + 500: "rgba(0, 0, 0, 0.36)", + 600: "rgba(0, 0, 0, 0.48)", + 700: "rgba(0, 0, 0, 0.64)", + 800: "rgba(0, 0, 0, 0.80)", + 900: "rgba(0, 0, 0, 0.92)", + }, + gray: { + 50: "#F7FAFC", + 100: "#EDF2F7", + 200: "#E2E8F0", + 300: "#CBD5E0", + 400: "#A0AEC0", + 500: "#718096", + 600: "#4A5568", + 700: "#2D3748", + 800: "#1A202C", + 900: "#171923", + }, + red: { + 50: "#FFF5F5", + 100: "#FED7D7", + 200: "#FEB2B2", + 300: "#FC8181", + 400: "#F56565", + 500: "#E53E3E", + 600: "#C53030", + 700: "#9B2C2C", + 800: "#822727", + 900: "#63171B", + }, + orange: { + 50: "#FFFAF0", + 100: "#FEEBC8", + 200: "#FBD38D", + 300: "#F6AD55", + 400: "#ED8936", + 500: "#DD6B20", + 600: "#C05621", + 700: "#9C4221", + 800: "#7B341E", + 900: "#652B19", + }, + yellow: { + 50: "#FFFFF0", + 100: "#FEFCBF", + 200: "#FAF089", + 300: "#F6E05E", + 400: "#ECC94B", + 500: "#D69E2E", + 600: "#B7791F", + 700: "#975A16", + 800: "#744210", + 900: "#5F370E", + }, + green: { + 50: "#F0FFF4", + 100: "#C6F6D5", + 200: "#9AE6B4", + 300: "#68D391", + 400: "#48BB78", + 500: "#38A169", + 600: "#2F855A", + 700: "#276749", + 800: "#22543D", + 900: "#1C4532", + }, + teal: { + 50: "#E6FFFA", + 100: "#B2F5EA", + 200: "#81E6D9", + 300: "#4FD1C5", + 400: "#38B2AC", + 500: "#319795", + 600: "#2C7A7B", + 700: "#285E61", + 800: "#234E52", + 900: "#1D4044", + }, + blue: { + 50: "#ebf8ff", + 100: "#bee3f8", + 200: "#90cdf4", + 300: "#63b3ed", + 400: "#4299e1", + 500: "#3182ce", + 600: "#2b6cb0", + 700: "#2c5282", + 800: "#2a4365", + 900: "#1A365D", + }, + cyan: { + 50: "#EDFDFD", + 100: "#C4F1F9", + 200: "#9DECF9", + 300: "#76E4F7", + 400: "#0BC5EA", + 500: "#00B5D8", + 600: "#00A3C4", + 700: "#0987A0", + 800: "#086F83", + 900: "#065666", + }, + purple: { + 50: "#FAF5FF", + 100: "#E9D8FD", + 200: "#D6BCFA", + 300: "#B794F4", + 400: "#9F7AEA", + 500: "#805AD5", + 600: "#6B46C1", + 700: "#553C9A", + 800: "#44337A", + 900: "#322659", + }, + pink: { + 50: "#FFF5F7", + 100: "#FED7E2", + 200: "#FBB6CE", + 300: "#F687B3", + 400: "#ED64A6", + 500: "#D53F8C", + 600: "#B83280", + 700: "#97266D", + 800: "#702459", + 900: "#521B41", + }, + linkedin: { + 50: "#E8F4F9", + 100: "#CFEDFB", + 200: "#9BDAF3", + 300: "#68C7EC", + 400: "#34B3E4", + 500: "#00A0DC", + 600: "#008CC9", + 700: "#0077B5", + 800: "#005E93", + 900: "#004471", + }, + facebook: { + 50: "#E8F4F9", + 100: "#D9DEE9", + 200: "#B7C2DA", + 300: "#6482C0", + 400: "#4267B2", + 500: "#385898", + 600: "#314E89", + 700: "#29487D", + 800: "#223B67", + 900: "#1E355B", + }, + messenger: { + 50: "#D0E6FF", + 100: "#B9DAFF", + 200: "#A2CDFF", + 300: "#7AB8FF", + 400: "#2E90FF", + 500: "#0078FF", + 600: "#0063D1", + 700: "#0052AC", + 800: "#003C7E", + 900: "#002C5C", + }, + whatsapp: { + 50: "#dffeec", + 100: "#b9f5d0", + 200: "#90edb3", + 300: "#65e495", + 400: "#3cdd78", + 500: "#22c35e", + 600: "#179848", + 700: "#0c6c33", + 800: "#01421c", + 900: "#001803", + }, + twitter: { + 50: "#E5F4FD", + 100: "#C8E9FB", + 200: "#A8DCFA", + 300: "#83CDF7", + 400: "#57BBF5", + 500: "#1DA1F2", + 600: "#1A94DA", + 700: "#1681BF", + 800: "#136B9E", + 900: "#0D4D71", + }, + telegram: { + 50: "#E3F2F9", + 100: "#C5E4F3", + 200: "#A2D4EC", + 300: "#7AC1E4", + 400: "#47A9DA", + 500: "#0088CC", + 600: "#007AB8", + 700: "#006BA1", + 800: "#005885", + 900: "#003F5E", + }, + }; // CONCATENATED MODULE: ./node_modules/@chakra-ui/theme/foundations/radius/dist/chakra-ui-theme-foundations-radius.esm.js + + var radii = { + none: "0", + sm: "0.125rem", + base: "0.25rem", + md: "0.375rem", + lg: "0.5rem", + xl: "0.75rem", + "2xl": "1rem", + "3xl": "1.5rem", + full: "9999px", + }; // CONCATENATED MODULE: ./node_modules/@chakra-ui/theme/foundations/shadows/dist/chakra-ui-theme-foundations-shadows.esm.js + + var shadows = { + xs: "0 0 0 1px rgba(0, 0, 0, 0.05)", + sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)", + base: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)", + md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)", + lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)", + xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)", + "2xl": "0 25px 50px -12px rgba(0, 0, 0, 0.25)", + outline: "0 0 0 3px rgba(66, 153, 225, 0.6)", + inner: "inset 0 2px 4px 0 rgba(0,0,0,0.06)", + none: "none", + "dark-lg": + "rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px", + }; // CONCATENATED MODULE: ./node_modules/@chakra-ui/theme/foundations/transition/dist/chakra-ui-theme-foundations-transition.esm.js + + var transitionProperty = { + common: "background-color, border-color, color, fill, stroke, opacity, box-shadow, transform", + colors: "background-color, border-color, color, fill, stroke", + dimensions: "width, height", + position: "left, right, top, bottom", + background: + "background-color, background-image, background-position", + }; + var transitionTimingFunction = { + "ease-in": "cubic-bezier(0.4, 0, 1, 1)", + "ease-out": "cubic-bezier(0, 0, 0.2, 1)", + "ease-in-out": "cubic-bezier(0.4, 0, 0.2, 1)", + }; + var transitionDuration = { + "ultra-fast": "50ms", + faster: "100ms", + fast: "150ms", + normal: "200ms", + slow: "300ms", + slower: "400ms", + "ultra-slow": "500ms", + }; + var transition = { + property: transitionProperty, + easing: transitionTimingFunction, + duration: transitionDuration, + }; // CONCATENATED MODULE: ./node_modules/@chakra-ui/theme/foundations/z-index/dist/chakra-ui-theme-foundations-z-index.esm.js + + var zIndices = { + hide: -1, + auto: "auto", + base: 0, + docked: 10, + dropdown: 1000, + sticky: 1100, + banner: 1200, + overlay: 1300, + modal: 1400, + popover: 1500, + skipLink: 1600, + toast: 1700, + tooltip: 1800, + }; // CONCATENATED MODULE: ./node_modules/@chakra-ui/theme/foundations/blur/dist/chakra-ui-theme-foundations-blur.esm.js + + var chakra_ui_theme_foundations_blur_esm_blur = { + none: 0, + sm: "4px", + base: "8px", + md: "12px", + lg: "16px", + xl: "24px", + "2xl": "40px", + "3xl": "64px", + }; // CONCATENATED MODULE: ./node_modules/@chakra-ui/theme/foundations/dist/chakra-ui-theme-foundations.esm.js + + var foundations = sizes_501602a9_esm_extends( + { + breakpoints: breakpoints, + zIndices: zIndices, + radii: radii, + blur: chakra_ui_theme_foundations_blur_esm_blur, + colors: colors, + }, + typography, + { + sizes: sizes, + shadows: shadows, + space: spacing, + borders: borders, + transition: transition, + } + ); // CONCATENATED MODULE: ./node_modules/@chakra-ui/theme/dist/chakra-ui-theme.esm.js + + var semanticTokens = { + colors: { + "chakra-body-text": { + _light: "gray.800", + _dark: "whiteAlpha.900", + }, + "chakra-body-bg": { + _light: "white", + _dark: "gray.800", + }, + "chakra-border-color": { + _light: "gray.200", + _dark: "whiteAlpha.300", + }, + "chakra-placeholder-color": { + _light: "gray.500", + _dark: "whiteAlpha.400", + }, + }, + }; + + var styles = { + global: { + body: { + fontFamily: "body", + color: "chakra-body-text", + bg: "chakra-body-bg", + transitionProperty: "background-color", + transitionDuration: "normal", + lineHeight: "base", + }, + "*::placeholder": { + color: "chakra-placeholder-color", + }, + "*, *::before, &::after": { + borderColor: "chakra-border-color", + wordWrap: "break-word", + }, + }, + }; + var styles$1 = styles; + + var requiredChakraThemeKeys = + /* unused pure expression or super */ null && [ + "borders", + "breakpoints", + "colors", + "components", + "config", + "direction", + "fonts", + "fontSizes", + "fontWeights", + "letterSpacings", + "lineHeights", + "radii", + "shadows", + "sizes", + "space", + "styles", + "transition", + "zIndices", + ]; + function chakra_ui_theme_esm_isChakraTheme(unit) { + if (!isObject(unit)) { + return false; + } + + return requiredChakraThemeKeys.every(function (propertyName) { + return Object.prototype.hasOwnProperty.call( + unit, + propertyName + ); + }); + } + + var direction = "ltr"; + var config = { + useSystemColorMode: false, + initialColorMode: "light", + cssVarPrefix: "chakra", + }; + var theme = sizes_501602a9_esm_extends( + { + semanticTokens: semanticTokens, + direction: direction, + }, + foundations, + { + components: components, + styles: styles$1, + config: config, + } + ); + + // EXTERNAL MODULE: ./node_modules/@chakra-ui/visually-hidden/dist/chakra-ui-visually-hidden.esm.js + var chakra_ui_visually_hidden_esm = __webpack_require__(1358); // CONCATENATED MODULE: ./node_modules/@chakra-ui/spinner/dist/chakra-ui-spinner.esm.js + function chakra_ui_spinner_esm_extends() { + chakra_ui_spinner_esm_extends = Object.assign + ? Object.assign.bind() + : function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if ( + Object.prototype.hasOwnProperty.call( + source, + key + ) + ) { + target[key] = source[key]; + } + } + } + + return target; + }; + return chakra_ui_spinner_esm_extends.apply(this, arguments); + } + + function chakra_ui_spinner_esm_objectWithoutPropertiesLoose( + source, + excluded + ) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; + } + + var chakra_ui_spinner_esm_excluded = [ + "label", + "thickness", + "speed", + "emptyColor", + "className", + ]; + var spin = (0, emotion_react_browser_esm /* keyframes */.F4)({ + "0%": { + transform: "rotate(0deg)", + }, + "100%": { + transform: "rotate(360deg)", + }, + }); + + /** + * Spinner is used to indicate the loading state of a page or a component, + * It renders a `div` by default. + * + * @see Docs https://chakra-ui.com/spinner + */ + var chakra_ui_spinner_esm_Spinner = /*#__PURE__*/ (0, + chakra_ui_system_esm /* forwardRef */.Gp)(function (props, ref) { + var styles = (0, chakra_ui_system_esm /* useStyleConfig */.mq)( + "Spinner", + props + ); + + var _omitThemingProps = (0, + chakra_ui_system_esm /* omitThemingProps */.Lr)(props), + _omitThemingProps$lab = _omitThemingProps.label, + label = + _omitThemingProps$lab === void 0 + ? "Loading..." + : _omitThemingProps$lab, + _omitThemingProps$thi = _omitThemingProps.thickness, + thickness = + _omitThemingProps$thi === void 0 + ? "2px" + : _omitThemingProps$thi, + _omitThemingProps$spe = _omitThemingProps.speed, + speed = + _omitThemingProps$spe === void 0 + ? "0.45s" + : _omitThemingProps$spe, + _omitThemingProps$emp = _omitThemingProps.emptyColor, + emptyColor = + _omitThemingProps$emp === void 0 + ? "transparent" + : _omitThemingProps$emp, + className = _omitThemingProps.className, + rest = chakra_ui_spinner_esm_objectWithoutPropertiesLoose( + _omitThemingProps, + chakra_ui_spinner_esm_excluded + ); + + var _className = (0, chakra_ui_utils_esm.cx)( + "chakra-spinner", + className + ); + + var spinnerStyles = chakra_ui_spinner_esm_extends( + { + display: "inline-block", + borderColor: "currentColor", + borderStyle: "solid", + borderRadius: "99999px", + borderWidth: thickness, + borderBottomColor: emptyColor, + borderLeftColor: emptyColor, + animation: spin + " " + speed + " linear infinite", + }, + styles + ); + + return /*#__PURE__*/ react.createElement( + chakra_ui_system_esm /* chakra.div */.m$.div, + chakra_ui_spinner_esm_extends( + { + ref: ref, + __css: spinnerStyles, + className: _className, + }, + rest + ), + label && + /*#__PURE__*/ react.createElement( + chakra_ui_visually_hidden_esm /* VisuallyHidden */.TX, + null, + label + ) + ); + }); + + if (chakra_ui_utils_esm /* __DEV__ */.Ts) { + chakra_ui_spinner_esm_Spinner.displayName = "Spinner"; + } + + // EXTERNAL MODULE: ./node_modules/@chakra-ui/icon/dist/chakra-ui-icon.esm.js + var chakra_ui_icon_esm = __webpack_require__(894); // CONCATENATED MODULE: ./node_modules/@chakra-ui/alert/dist/chakra-ui-alert.esm.js + function chakra_ui_alert_esm_extends() { + chakra_ui_alert_esm_extends = Object.assign + ? Object.assign.bind() + : function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if ( + Object.prototype.hasOwnProperty.call( + source, + key + ) + ) { + target[key] = source[key]; + } + } + } + + return target; + }; + return chakra_ui_alert_esm_extends.apply(this, arguments); + } + + function chakra_ui_alert_esm_objectWithoutPropertiesLoose( + source, + excluded + ) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; + } + + var CheckIcon = function CheckIcon(props) { + return /*#__PURE__*/ react.createElement( + chakra_ui_icon_esm /* Icon */.JO, + chakra_ui_alert_esm_extends( + { + viewBox: "0 0 24 24", + }, + props + ), + /*#__PURE__*/ react.createElement("path", { + fill: "currentColor", + d: "M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z", + }) + ); + }; + var InfoIcon = function InfoIcon(props) { + return /*#__PURE__*/ react.createElement( + chakra_ui_icon_esm /* Icon */.JO, + chakra_ui_alert_esm_extends( + { + viewBox: "0 0 24 24", + }, + props + ), + /*#__PURE__*/ react.createElement("path", { + fill: "currentColor", + d: "M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z", + }) + ); + }; + var WarningIcon = function WarningIcon(props) { + return /*#__PURE__*/ react.createElement( + chakra_ui_icon_esm /* Icon */.JO, + chakra_ui_alert_esm_extends( + { + viewBox: "0 0 24 24", + }, + props + ), + /*#__PURE__*/ react.createElement("path", { + fill: "currentColor", + d: "M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z", + }) + ); + }; + + var chakra_ui_alert_esm_excluded = ["status"]; + + var _createStylesContext = (0, + chakra_ui_system_esm /* createStylesContext */.eC)("Alert"), + StylesProvider = _createStylesContext[0], + useStyles = _createStylesContext[1]; + + var STATUSES = { + info: { + icon: InfoIcon, + colorScheme: "blue", + }, + warning: { + icon: WarningIcon, + colorScheme: "orange", + }, + success: { + icon: CheckIcon, + colorScheme: "green", + }, + error: { + icon: WarningIcon, + colorScheme: "red", + }, + loading: { + icon: chakra_ui_spinner_esm_Spinner, + colorScheme: "blue", + }, + }; + + var chakra_ui_alert_esm_createContext = (0, + chakra_ui_react_utils_esm /* createContext */.kr)({ + name: "AlertContext", + errorMessage: + "useAlertContext: `context` is undefined. Seems you forgot to wrap alert components in ``", + }), + AlertProvider = chakra_ui_alert_esm_createContext[0], + useAlertContext = chakra_ui_alert_esm_createContext[1]; + + /** + * Alert is used to communicate the state or status of a + * page, feature or action + */ + var chakra_ui_alert_esm_Alert = /*#__PURE__*/ (0, + chakra_ui_system_esm /* forwardRef */.Gp)(function (props, ref) { + var _props$colorScheme; + + var _omitThemingProps = (0, + chakra_ui_system_esm /* omitThemingProps */.Lr)(props), + _omitThemingProps$sta = _omitThemingProps.status, + status = + _omitThemingProps$sta === void 0 + ? "info" + : _omitThemingProps$sta, + rest = chakra_ui_alert_esm_objectWithoutPropertiesLoose( + _omitThemingProps, + chakra_ui_alert_esm_excluded + ); + + var colorScheme = + (_props$colorScheme = props.colorScheme) != null + ? _props$colorScheme + : STATUSES[status].colorScheme; + var styles = (0, + chakra_ui_system_esm /* useMultiStyleConfig */.jC)( + "Alert", + chakra_ui_alert_esm_extends({}, props, { + colorScheme: colorScheme, + }) + ); + + var alertStyles = chakra_ui_alert_esm_extends( + { + width: "100%", + display: "flex", + alignItems: "center", + position: "relative", + overflow: "hidden", + }, + styles.container + ); + + return /*#__PURE__*/ react.createElement( + AlertProvider, + { + value: { + status: status, + }, + }, + /*#__PURE__*/ react.createElement( + StylesProvider, + { + value: styles, + }, + /*#__PURE__*/ react.createElement( + chakra_ui_system_esm /* chakra.div */.m$.div, + chakra_ui_alert_esm_extends( + { + role: "alert", + ref: ref, + }, + rest, + { + className: (0, chakra_ui_utils_esm.cx)( + "chakra-alert", + props.className + ), + __css: alertStyles, + } + ) + ) + ) + ); + }); + var AlertTitle = /*#__PURE__*/ (0, + chakra_ui_system_esm /* forwardRef */.Gp)(function (props, ref) { + var styles = useStyles(); + return /*#__PURE__*/ react.createElement( + chakra_ui_system_esm /* chakra.div */.m$.div, + chakra_ui_alert_esm_extends( + { + ref: ref, + }, + props, + { + className: (0, chakra_ui_utils_esm.cx)( + "chakra-alert__title", + props.className + ), + __css: styles.title, + } + ) + ); + }); + var AlertDescription = /*#__PURE__*/ (0, + chakra_ui_system_esm /* forwardRef */.Gp)(function (props, ref) { + var styles = useStyles(); + + var descriptionStyles = chakra_ui_alert_esm_extends( + { + display: "inline", + }, + styles.description + ); + + return /*#__PURE__*/ react.createElement( + chakra_ui_system_esm /* chakra.div */.m$.div, + chakra_ui_alert_esm_extends( + { + ref: ref, + }, + props, + { + className: (0, chakra_ui_utils_esm.cx)( + "chakra-alert__desc", + props.className + ), + __css: descriptionStyles, + } + ) + ); + }); + var AlertIcon = function AlertIcon(props) { + var _useAlertContext = useAlertContext(), + status = _useAlertContext.status; + + var BaseIcon = STATUSES[status].icon; + var styles = useStyles(); + var css = status === "loading" ? styles.spinner : styles.icon; + return /*#__PURE__*/ react.createElement( + chakra_ui_system_esm /* chakra.span */.m$.span, + chakra_ui_alert_esm_extends( + { + display: "inherit", + }, + props, + { + className: (0, chakra_ui_utils_esm.cx)( + "chakra-alert__icon", + props.className + ), + __css: css, + } + ), + props.children || + /*#__PURE__*/ react.createElement(BaseIcon, { + h: "100%", + w: "100%", + }) + ); + }; // CONCATENATED MODULE: ./node_modules/@chakra-ui/close-button/dist/chakra-ui-close-button.esm.js + + function chakra_ui_close_button_esm_objectWithoutPropertiesLoose( + source, + excluded + ) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; + } + + function chakra_ui_close_button_esm_extends() { + chakra_ui_close_button_esm_extends = Object.assign + ? Object.assign.bind() + : function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if ( + Object.prototype.hasOwnProperty.call( + source, + key + ) + ) { + target[key] = source[key]; + } + } + } + + return target; + }; + return chakra_ui_close_button_esm_extends.apply( + this, + arguments + ); + } + + var chakra_ui_close_button_esm_excluded = [ + "children", + "isDisabled", + "__css", + ]; + + var CloseIcon = function CloseIcon(props) { + return /*#__PURE__*/ react.createElement( + chakra_ui_icon_esm /* Icon */.JO, + chakra_ui_close_button_esm_extends( + { + focusable: "false", + "aria-hidden": true, + }, + props + ), + /*#__PURE__*/ react.createElement("path", { + fill: "currentColor", + d: "M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z", + }) + ); + }; + + /** + * A button with a close icon. + * + * It is used to handle the close functionality in feedback and overlay components + * like Alerts, Toasts, Drawers and Modals. + */ + var chakra_ui_close_button_esm_CloseButton = /*#__PURE__*/ (0, + chakra_ui_system_esm /* forwardRef */.Gp)(function (props, ref) { + var styles = (0, chakra_ui_system_esm /* useStyleConfig */.mq)( + "CloseButton", + props + ); + + var _omitThemingProps = (0, + chakra_ui_system_esm /* omitThemingProps */.Lr)(props), + children = _omitThemingProps.children, + isDisabled = _omitThemingProps.isDisabled, + __css = _omitThemingProps.__css, + rest = + chakra_ui_close_button_esm_objectWithoutPropertiesLoose( + _omitThemingProps, + chakra_ui_close_button_esm_excluded + ); + + var baseStyle = { + outline: 0, + display: "flex", + alignItems: "center", + justifyContent: "center", + flexShrink: 0, + }; + return /*#__PURE__*/ react.createElement( + chakra_ui_system_esm /* chakra.button */.m$.button, + chakra_ui_close_button_esm_extends( + { + type: "button", + "aria-label": "Close", + ref: ref, + disabled: isDisabled, + __css: chakra_ui_close_button_esm_extends( + {}, + baseStyle, + styles, + __css + ), + }, + rest + ), + children || + /*#__PURE__*/ react.createElement(CloseIcon, { + width: "1em", + height: "1em", + }) + ); + }); + + if (chakra_ui_utils_esm /* __DEV__ */.Ts) { + chakra_ui_close_button_esm_CloseButton.displayName = + "CloseButton"; + } + + // EXTERNAL MODULE: ./node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs + var use_presence = __webpack_require__(5947); + // EXTERNAL MODULE: ./node_modules/framer-motion/dist/es/render/dom/motion.mjs + 169 modules + var motion = __webpack_require__(8970); + // EXTERNAL MODULE: ./node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs + 3 modules + var AnimatePresence = __webpack_require__(1190); // CONCATENATED MODULE: ./node_modules/@chakra-ui/toast/dist/chakra-ui-toast.esm.js + function chakra_ui_toast_esm_extends() { + chakra_ui_toast_esm_extends = Object.assign + ? Object.assign.bind() + : function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if ( + Object.prototype.hasOwnProperty.call( + source, + key + ) + ) { + target[key] = source[key]; + } + } + } + + return target; + }; + return chakra_ui_toast_esm_extends.apply(this, arguments); + } + + function getToastPlacement(position, dir) { + var _logical$dir; + + var computedPosition = position != null ? position : "bottom"; + var logicals = { + "top-start": { + ltr: "top-left", + rtl: "top-right", + }, + "top-end": { + ltr: "top-right", + rtl: "top-left", + }, + "bottom-start": { + ltr: "bottom-left", + rtl: "bottom-right", + }, + "bottom-end": { + ltr: "bottom-right", + rtl: "bottom-left", + }, + }; + var logical = logicals[computedPosition]; + return (_logical$dir = + logical == null ? void 0 : logical[dir]) != null + ? _logical$dir + : computedPosition; + } + + /** + * Given an array of toasts for a specific position. + * It returns the toast that matches the `id` passed + */ + /** + * Given the toast manager state, finds the toast that matches + * the id and return its position and index + */ + + function findToast(toasts, id) { + var position = getToastPosition(toasts, id); + var index = position + ? toasts[position].findIndex(function (toast) { + return toast.id === id; + }) + : -1; + return { + position: position, + index: index, + }; + } + /** + * Given the toast manager state, finds the position of the toast that + * matches the `id` + */ + + var getToastPosition = function getToastPosition(toasts, id) { + var _Object$values$flat$f; + + return (_Object$values$flat$f = Object.values(toasts) + .flat() + .find(function (toast) { + return toast.id === id; + })) == null + ? void 0 + : _Object$values$flat$f.position; + }; + /** + * Gets the styles to be applied to a toast's container + * based on its position in the manager + */ + + function getToastStyle(position) { + var isRighty = position.includes("right"); + var isLefty = position.includes("left"); + var alignItems = "center"; + if (isRighty) alignItems = "flex-end"; + if (isLefty) alignItems = "flex-start"; + return { + display: "flex", + flexDirection: "column", + alignItems: alignItems, + }; + } + /** + * Compute the style of a toast based on its position + */ + + function getToastListStyle(position) { + var isTopOrBottom = position === "top" || position === "bottom"; + var margin = isTopOrBottom ? "0 auto" : undefined; + var top = position.includes("top") + ? "env(safe-area-inset-top, 0px)" + : undefined; + var bottom = position.includes("bottom") + ? "env(safe-area-inset-bottom, 0px)" + : undefined; + var right = !position.includes("left") + ? "env(safe-area-inset-right, 0px)" + : undefined; + var left = !position.includes("right") + ? "env(safe-area-inset-left, 0px)" + : undefined; + return { + position: "fixed", + zIndex: 5500, + pointerEvents: "none", + display: "flex", + flexDirection: "column", + margin: margin, + top: top, + bottom: bottom, + right: right, + left: left, + }; + } + + var initialState = { + top: [], + "top-left": [], + "top-right": [], + "bottom-left": [], + bottom: [], + "bottom-right": [], + }; + /** + * Store to track all the toast across all positions + */ + + var toastStore = createStore(initialState); + + function createStore(initialState) { + var state = initialState; + var listeners = new Set(); + + var setState = function setState(setStateFn) { + state = setStateFn(state); + listeners.forEach(function (l) { + return l(); + }); + }; + + return { + getState: function getState() { + return state; + }, + subscribe: function subscribe(listener) { + listeners.add(listener); + return function () { + // Delete all toasts on unmount + setState(function () { + return initialState; + }); + listeners["delete"](listener); + }; + }, + + /** + * Delete a toast record at its position + */ + removeToast: function removeToast(id, position) { + setState(function (prevState) { + var _extends2; + + return chakra_ui_toast_esm_extends( + {}, + prevState, + ((_extends2 = {}), + (_extends2[position] = prevState[ + position + ].filter(function (toast) { + return toast.id != id; + })), + _extends2) + ); + }); + }, + notify: function notify(message, options) { + var toast = createToast(message, options); + var position = toast.position, + id = toast.id; + setState(function (prevToasts) { + var _prevToasts$position, + _prevToasts$position2, + _extends3; + + var isTop = position.includes("top"); + /** + * - If the toast is positioned at the top edges, the + * recent toast stacks on top of the other toasts. + * + * - If the toast is positioned at the bottom edges, the recent + * toast stacks below the other toasts. + */ + + var toasts = isTop + ? [toast].concat( + (_prevToasts$position = + prevToasts[position]) != null + ? _prevToasts$position + : [] + ) + : [].concat( + (_prevToasts$position2 = + prevToasts[position]) != null + ? _prevToasts$position2 + : [], + [toast] + ); + return chakra_ui_toast_esm_extends( + {}, + prevToasts, + ((_extends3 = {}), + (_extends3[position] = toasts), + _extends3) + ); + }); + return id; + }, + update: function update(id, options) { + if (!id) return; + setState(function (prevState) { + var nextState = chakra_ui_toast_esm_extends( + {}, + prevState + ); + + var _findToast = findToast(nextState, id), + position = _findToast.position, + index = _findToast.index; + + if (position && index !== -1) { + nextState[position][index] = + chakra_ui_toast_esm_extends( + {}, + nextState[position][index], + options, + { + message: createRenderToast(options), + } + ); + } + + return nextState; + }); + }, + closeAll: function closeAll(_temp) { + var _ref = _temp === void 0 ? {} : _temp, + positions = _ref.positions; + + // only one setState here for perf reasons + // instead of spamming this.closeToast + setState(function (prev) { + var allPositions = [ + "bottom", + "bottom-right", + "bottom-left", + "top", + "top-left", + "top-right", + ]; + var positionsToClose = + positions != null ? positions : allPositions; + return positionsToClose.reduce(function ( + acc, + position + ) { + acc[position] = prev[position].map(function ( + toast + ) { + return chakra_ui_toast_esm_extends( + {}, + toast, + { + requestClose: true, + } + ); + }); + return acc; + }, + chakra_ui_toast_esm_extends({}, prev)); + }); + }, + close: function close(id) { + setState(function (prevState) { + var _extends4; + + var position = getToastPosition(prevState, id); + if (!position) return prevState; + return chakra_ui_toast_esm_extends( + {}, + prevState, + ((_extends4 = {}), + (_extends4[position] = prevState[position].map( + function (toast) { + // id may be string or number + // eslint-disable-next-line eqeqeq + if (toast.id == id) { + return chakra_ui_toast_esm_extends( + {}, + toast, + { + requestClose: true, + } + ); + } + + return toast; + } + )), + _extends4) + ); + }); + }, + isActive: function isActive(id) { + return Boolean( + findToast(toastStore.getState(), id).position + ); + }, + }; + } + /** + * Static id counter to create unique ids + * for each toast + */ + + var counter = 0; + /** + * Create properties for a new toast + */ + + function createToast(message, options) { + var _options$id, _options$position; + + if (options === void 0) { + options = {}; + } + + counter += 1; + var id = + (_options$id = options.id) != null ? _options$id : counter; + var position = + (_options$position = options.position) != null + ? _options$position + : "bottom"; + return { + id: id, + message: message, + position: position, + duration: options.duration, + onCloseComplete: options.onCloseComplete, + onRequestRemove: function onRequestRemove() { + return toastStore.removeToast(String(id), position); + }, + status: options.status, + requestClose: false, + containerStyle: options.containerStyle, + }; + } + + var Toast = function Toast(props) { + var status = props.status, + _props$variant = props.variant, + variant = + _props$variant === void 0 ? "solid" : _props$variant, + id = props.id, + title = props.title, + isClosable = props.isClosable, + onClose = props.onClose, + description = props.description, + icon = props.icon; + var alertTitleId = + typeof id !== "undefined" + ? "toast-" + id + "-title" + : undefined; + return /*#__PURE__*/ react.createElement( + chakra_ui_alert_esm_Alert, + { + status: status, + variant: variant, + id: String(id), + alignItems: "start", + borderRadius: "md", + boxShadow: "lg", + paddingEnd: 8, + textAlign: "start", + width: "auto", + "aria-labelledby": alertTitleId, + }, + /*#__PURE__*/ react.createElement(AlertIcon, null, icon), + /*#__PURE__*/ react.createElement( + chakra_ui_system_esm /* chakra.div */.m$.div, + { + flex: "1", + maxWidth: "100%", + }, + title && + /*#__PURE__*/ react.createElement( + AlertTitle, + { + id: alertTitleId, + }, + title + ), + description && + /*#__PURE__*/ react.createElement( + AlertDescription, + { + display: "block", + }, + description + ) + ), + isClosable && + /*#__PURE__*/ react.createElement( + chakra_ui_close_button_esm_CloseButton, + { + size: "sm", + onClick: onClose, + position: "absolute", + insetEnd: 1, + top: 1, + } + ) + ); + }; + function createRenderToast(options) { + if (options === void 0) { + options = {}; + } + + var _options = options, + render = _options.render, + _options$toastCompone = _options.toastComponent, + ToastComponent = + _options$toastCompone === void 0 + ? Toast + : _options$toastCompone; + + var renderToast = function renderToast(props) { + if ((0, chakra_ui_utils_esm /* isFunction */.mf)(render)) { + return render(props); + } + + return /*#__PURE__*/ react.createElement( + ToastComponent, + chakra_ui_toast_esm_extends({}, props, options) + ); + }; + + return renderToast; + } + function createToastFn(dir, defaultOptions) { + var normalizeToastOptions = function normalizeToastOptions( + options + ) { + var _options$position; + + return chakra_ui_toast_esm_extends( + {}, + defaultOptions, + options, + { + position: getToastPlacement( + (_options$position = + options == null + ? void 0 + : options.position) != null + ? _options$position + : defaultOptions == null + ? void 0 + : defaultOptions.position, + dir + ), + } + ); + }; + + var toast = function toast(options) { + var normalizedToastOptions = normalizeToastOptions(options); + var Message = createRenderToast(normalizedToastOptions); + return toastStore.notify(Message, normalizedToastOptions); + }; + + toast.update = function (id, options) { + toastStore.update(id, normalizeToastOptions(options)); + }; + + toast.promise = function (promise, options) { + var id = toast( + chakra_ui_toast_esm_extends({}, options.loading, { + status: "loading", + duration: null, + }) + ); + promise + .then(function (data) { + return toast.update( + id, + chakra_ui_toast_esm_extends( + { + status: "success", + duration: 5000, + }, + runIfFn(options.success, data) + ) + ); + }) + ["catch"](function (error) { + return toast.update( + id, + chakra_ui_toast_esm_extends( + { + status: "error", + duration: 5000, + }, + runIfFn(options.error, error) + ) + ); + }); + }; + + toast.closeAll = toastStore.closeAll; + toast.close = toastStore.close; + toast.isActive = toastStore.isActive; + return toast; + } + + /** + * React hook used to create a function that can be used + * to show toasts in an application. + */ + function useToast(defaultOptions) { + var _useChakra = useChakra(), + theme = _useChakra.theme; + + return React.useMemo( + function () { + return createToastFn(theme.direction, defaultOptions); + }, + [defaultOptions, theme.direction] + ); + } + + var toastMotionVariants = { + initial: function initial(props) { + var _ref; + + var position = props.position; + var dir = ["top", "bottom"].includes(position) ? "y" : "x"; + var factor = ["top-right", "bottom-right"].includes( + position + ) + ? 1 + : -1; + if (position === "bottom") factor = 1; + return ( + (_ref = { + opacity: 0, + }), + (_ref[dir] = factor * 24), + _ref + ); + }, + animate: { + opacity: 1, + y: 0, + x: 0, + scale: 1, + transition: { + duration: 0.4, + ease: [0.4, 0, 0.2, 1], + }, + }, + exit: { + opacity: 0, + scale: 0.85, + transition: { + duration: 0.2, + ease: [0.4, 0, 1, 1], + }, + }, + }; + var ToastComponent = /*#__PURE__*/ react.memo(function (props) { + var id = props.id, + message = props.message, + onCloseComplete = props.onCloseComplete, + onRequestRemove = props.onRequestRemove, + _props$requestClose = props.requestClose, + requestClose = + _props$requestClose === void 0 + ? false + : _props$requestClose, + _props$position = props.position, + position = + _props$position === void 0 ? "bottom" : _props$position, + _props$duration = props.duration, + duration = + _props$duration === void 0 ? 5000 : _props$duration, + containerStyle = props.containerStyle, + _props$motionVariants = props.motionVariants, + motionVariants = + _props$motionVariants === void 0 + ? toastMotionVariants + : _props$motionVariants, + _props$toastSpacing = props.toastSpacing, + toastSpacing = + _props$toastSpacing === void 0 + ? "0.5rem" + : _props$toastSpacing; + + var _React$useState = react.useState(duration), + delay = _React$useState[0], + setDelay = _React$useState[1]; + + var isPresent = (0, use_presence /* useIsPresent */.hO)(); + (0, chakra_ui_hooks_esm /* useUpdateEffect */.rf)( + function () { + if (!isPresent) { + onCloseComplete == null + ? void 0 + : onCloseComplete(); + } + }, + [isPresent] + ); + (0, chakra_ui_hooks_esm /* useUpdateEffect */.rf)( + function () { + setDelay(duration); + }, + [duration] + ); + + var onMouseEnter = function onMouseEnter() { + return setDelay(null); + }; + + var onMouseLeave = function onMouseLeave() { + return setDelay(duration); + }; + + var close = function close() { + if (isPresent) onRequestRemove(); + }; + + react.useEffect( + function () { + if (isPresent && requestClose) { + onRequestRemove(); + } + }, + [isPresent, requestClose, onRequestRemove] + ); + (0, chakra_ui_hooks_esm /* useTimeout */.KS)(close, delay); + var containerStyles = react.useMemo( + function () { + return chakra_ui_toast_esm_extends( + { + pointerEvents: "auto", + maxWidth: 560, + minWidth: 300, + margin: toastSpacing, + }, + containerStyle + ); + }, + [containerStyle, toastSpacing] + ); + var toastStyle = react.useMemo( + function () { + return getToastStyle(position); + }, + [position] + ); + return /*#__PURE__*/ react.createElement( + motion /* motion.li */.E.li, + { + layout: true, + className: "chakra-toast", + variants: motionVariants, + initial: "initial", + animate: "animate", + exit: "exit", + onHoverStart: onMouseEnter, + onHoverEnd: onMouseLeave, + custom: { + position: position, + }, + style: toastStyle, + }, + /*#__PURE__*/ react.createElement( + chakra_ui_system_esm /* chakra.div */.m$.div, + { + role: "status", + "aria-atomic": "true", + className: "chakra-toast__inner", + __css: containerStyles, + }, + (0, chakra_ui_utils_esm /* runIfFn */.Pu)(message, { + id: id, + onClose: close, + }) + ) + ); + }); + + if (chakra_ui_utils_esm /* __DEV__ */.Ts) { + ToastComponent.displayName = "ToastComponent"; + } + + /** + * Manages the creation, and removal of toasts + * across all corners ("top", "bottom", etc.) + */ + var ToastProvider = function ToastProvider(props) { + var state = react.useSyncExternalStore( + toastStore.subscribe, + toastStore.getState, + toastStore.getState + ); + var children = props.children, + motionVariants = props.motionVariants, + _props$component = props.component, + Component = + _props$component === void 0 + ? ToastComponent + : _props$component, + portalProps = props.portalProps; + var toastList = (0, chakra_ui_utils_esm /* objectKeys */.Yd)( + state + ).map(function (position) { + var toasts = state[position]; + return /*#__PURE__*/ react.createElement( + "ul", + { + role: "region", + "aria-live": "polite", + key: position, + id: "chakra-toast-manager-" + position, + style: getToastListStyle(position), + }, + /*#__PURE__*/ react.createElement( + AnimatePresence /* AnimatePresence */.M, + { + initial: false, + }, + toasts.map(function (toast) { + return /*#__PURE__*/ react.createElement( + Component, + chakra_ui_toast_esm_extends( + { + key: toast.id, + motionVariants: motionVariants, + }, + toast + ) + ); + }) + ) + ); + }); + return /*#__PURE__*/ react.createElement( + react.Fragment, + null, + children, + /*#__PURE__*/ react.createElement( + Portal, + portalProps, + toastList + ) + ); + }; + + var defaults = { + duration: 5000, + variant: "solid", + }; + var defaultStandaloneParam = { + theme: theme, + colorMode: "light", + toggleColorMode: chakra_ui_utils_esm /* noop */.ZT, + setColorMode: chakra_ui_utils_esm /* noop */.ZT, + defaultOptions: defaults, + }; + /** + * Create a toast + */ + + function createStandaloneToast(_temp) { + var _ref = _temp === void 0 ? defaultStandaloneParam : _temp, + _ref$theme = _ref.theme, + theme = + _ref$theme === void 0 + ? defaultStandaloneParam.theme + : _ref$theme, + _ref$colorMode = _ref.colorMode, + colorMode = + _ref$colorMode === void 0 + ? defaultStandaloneParam.colorMode + : _ref$colorMode, + _ref$toggleColorMode = _ref.toggleColorMode, + toggleColorMode = + _ref$toggleColorMode === void 0 + ? defaultStandaloneParam.toggleColorMode + : _ref$toggleColorMode, + _ref$setColorMode = _ref.setColorMode, + setColorMode = + _ref$setColorMode === void 0 + ? defaultStandaloneParam.setColorMode + : _ref$setColorMode, + _ref$defaultOptions = _ref.defaultOptions, + defaultOptions = + _ref$defaultOptions === void 0 + ? defaultStandaloneParam.defaultOptions + : _ref$defaultOptions, + motionVariants = _ref.motionVariants, + toastSpacing = _ref.toastSpacing, + component = _ref.component; + + var colorModeContextValue = { + colorMode: colorMode, + setColorMode: setColorMode, + toggleColorMode: toggleColorMode, + }; + + var ToastContainer = function ToastContainer() { + return /*#__PURE__*/ React.createElement( + ThemeProvider, + { + theme: theme, + }, + /*#__PURE__*/ React.createElement( + ColorModeContext.Provider, + { + value: colorModeContextValue, + }, + /*#__PURE__*/ React.createElement(ToastProvider, { + defaultOptions: defaultOptions, + motionVariants: motionVariants, + toastSpacing: toastSpacing, + component: component, + }) + ) + ); + }; + + return { + ToastContainer: ToastContainer, + toast: createToastFn(theme.direction, defaultOptions), + }; + } // CONCATENATED MODULE: ./node_modules/@chakra-ui/react/dist/chakra-ui-react.esm.js + + function chakra_ui_react_esm_objectWithoutPropertiesLoose( + source, + excluded + ) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; + } + + var chakra_ui_react_esm_excluded = ["children", "toastOptions"]; + var ChakraProvider = function ChakraProvider(_ref) { + var children = _ref.children, + toastOptions = _ref.toastOptions, + restProps = + chakra_ui_react_esm_objectWithoutPropertiesLoose( + _ref, + chakra_ui_react_esm_excluded + ); + + return /*#__PURE__*/ react.createElement( + chakra_ui_provider_esm_ChakraProvider, + restProps, + children, + /*#__PURE__*/ react.createElement( + ToastProvider, + toastOptions + ) + ); + }; + ChakraProvider.defaultProps = { + theme: theme, + }; + + /** + * NOTE: This got too complex to manage, and it's not worth the extra complexity. + * We'll re-evaluate this API in the future releases. + * + * Function to override or customize the Chakra UI theme conveniently. + * First extension overrides the baseTheme and following extensions override the preceding extensions. + * + * @example: + * import { theme as baseTheme, extendTheme, withDefaultColorScheme } from '@chakra-ui/react' + * + * const customTheme = extendTheme( + * { + * colors: { + * brand: { + * 500: "#b4d455", + * }, + * }, + * }, + * withDefaultColorScheme({ colorScheme: "red" }), + * baseTheme // optional + * ) + */ + function extendTheme() { + for ( + var _len = arguments.length, + extensions = new Array(_len), + _key = 0; + _key < _len; + _key++ + ) { + extensions[_key] = arguments[_key]; + } + + var overrides = [].concat(extensions); + var baseTheme = extensions[extensions.length - 1]; + + if ( + isChakraTheme(baseTheme) && // this ensures backward compatibility + // previously only `extendTheme(override, baseTheme?)` was allowed + overrides.length > 1 + ) { + overrides = overrides.slice(0, overrides.length - 1); + } else { + baseTheme = theme$1; + } + + return pipe.apply( + void 0, + overrides.map(function (extension) { + return function (prevTheme) { + return isFunction(extension) + ? extension(prevTheme) + : mergeThemeOverride(prevTheme, extension); + }; + }) + )(baseTheme); + } + function mergeThemeOverride() { + for ( + var _len2 = arguments.length, + overrides = new Array(_len2), + _key2 = 0; + _key2 < _len2; + _key2++ + ) { + overrides[_key2] = arguments[_key2]; + } + + return mergeWith.apply( + void 0, + [{}].concat(overrides, [mergeThemeCustomizer]) + ); + } + + function mergeThemeCustomizer(source, override, key, object) { + if ( + (isFunction(source) || isFunction(override)) && + Object.prototype.hasOwnProperty.call(object, key) + ) { + return function () { + var sourceValue = isFunction(source) + ? source.apply(void 0, arguments) + : source; + var overrideValue = isFunction(override) + ? override.apply(void 0, arguments) + : override; + return mergeWith( + {}, + sourceValue, + overrideValue, + mergeThemeCustomizer + ); + }; + } // fallback to default behaviour + + return undefined; + } + + function withDefaultColorScheme(_ref) { + var colorScheme = _ref.colorScheme, + components = _ref.components; + return function (theme) { + var names = Object.keys(theme.components || {}); + + if (Array.isArray(components)) { + names = components; + } else if (isObject(components)) { + names = Object.keys(components); + } + + return mergeThemeOverride(theme, { + components: fromEntries( + names.map(function (componentName) { + var withColorScheme = { + defaultProps: { + colorScheme: colorScheme, + }, + }; + return [componentName, withColorScheme]; + }) + ), + }); + }; + } + + function withDefaultSize(_ref) { + var size = _ref.size, + components = _ref.components; + return function (theme) { + var names = Object.keys(theme.components || {}); + + if (Array.isArray(components)) { + names = components; + } else if (isObject(components)) { + names = Object.keys(components); + } + + return mergeThemeOverride(theme, { + components: fromEntries( + names.map(function (componentName) { + var withSize = { + defaultProps: { + size: size, + }, + }; + return [componentName, withSize]; + }) + ), + }); + }; + } + + function withDefaultVariant(_ref) { + var variant = _ref.variant, + components = _ref.components; + return function (theme) { + var names = Object.keys(theme.components || {}); + + if (Array.isArray(components)) { + names = components; + } else if (isObject(components)) { + names = Object.keys(components); + } + + return mergeThemeOverride(theme, { + components: fromEntries( + names.map(function (componentName) { + var withVariant = { + defaultProps: { + variant: variant, + }, + }; + return [componentName, withVariant]; + }) + ), + }); + }; + } + + function withDefaultProps(_ref) { + var _ref$defaultProps = _ref.defaultProps, + colorScheme = _ref$defaultProps.colorScheme, + variant = _ref$defaultProps.variant, + size = _ref$defaultProps.size, + components = _ref.components; + + var identity = function identity(t) { + return t; + }; + + var fns = [ + colorScheme + ? withDefaultColorScheme({ + colorScheme: colorScheme, + components: components, + }) + : identity, + size + ? withDefaultSize({ + size: size, + components: components, + }) + : identity, + variant + ? withDefaultVariant({ + variant: variant, + components: components, + }) + : identity, + ]; + return function (theme) { + return mergeThemeOverride(pipe.apply(void 0, fns)(theme)); + }; + } // CONCATENATED MODULE: ./pages/_app.jsx + + function MyApp(param) { + var Component = param.Component, + pageProps = param.pageProps; + return /*#__PURE__*/ (0, jsx_runtime.jsx)(ChakraProvider, { + children: /*#__PURE__*/ (0, jsx_runtime.jsx)( + Component, + _objectSpread({}, pageProps) + ), + }); + } + /* harmony default export */ var _app = MyApp; + + /***/ + }, + }, + /******/ function (__webpack_require__) { + // webpackRuntimeModules + /******/ var __webpack_exec__ = function (moduleId) { + return __webpack_require__((__webpack_require__.s = moduleId)); + }; + /******/ __webpack_require__.O(0, [774, 179], function () { + return __webpack_exec__(3837), __webpack_exec__(387); + }); + /******/ var __webpack_exports__ = __webpack_require__.O(); + /******/ _N_E = __webpack_exports__; + /******/ + }, +]); diff --git a/crates/swc_ecma_minifier/tests/fixture/next/chakra/output.js b/crates/swc_ecma_minifier/tests/fixture/next/chakra/output.js new file mode 100644 index 00000000000..6b61ba2c353 --- /dev/null +++ b/crates/swc_ecma_minifier/tests/fixture/next/chakra/output.js @@ -0,0 +1,4772 @@ +(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ + [ + 888 + ], + { + 2260: function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + "use strict"; + function _defineProperty(obj, key, value) { + return key in obj ? Object.defineProperty(obj, key, { + value: value, + enumerable: !0, + configurable: !0, + writable: !0 + }) : obj[key] = value, obj; + } + __webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, { + default: function() { + return _app; + } + }); + var _lg$1, _md$1, _sm$1, _baseStyleRoot, _Input$baseStyle$fiel, _Input$baseStyle, _Input$variants$unsty$1, _xs, _sm, _md, _lg, _xl, _container2, _container3, _container4, _Input$variants$unsty, _Input$sizes$xs$field, _Input$sizes$sm$field, _Input$sizes$md$field, _Input$sizes$lg$field, jsx_runtime = __webpack_require__(5893), react = __webpack_require__(7294), emotion_react_browser_esm = __webpack_require__(917), CSSReset$1 = function() { + return react.createElement(emotion_react_browser_esm.xB, { + styles: '\n html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n font-family: system-ui, sans-serif;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n -moz-osx-font-smoothing: grayscale;\n touch-action: manipulation;\n }\n\n body {\n position: relative;\n min-height: 100%;\n font-feature-settings: \'kern\';\n }\n\n *,\n *::before,\n *::after {\n border-width: 0;\n border-style: solid;\n box-sizing: border-box;\n }\n\n main {\n display: block;\n }\n\n hr {\n border-top-width: 1px;\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n pre,\n code,\n kbd,\n samp {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 1em;\n }\n\n a {\n background-color: transparent;\n color: inherit;\n text-decoration: inherit;\n }\n\n abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n\n b,\n strong {\n font-weight: bold;\n }\n\n small {\n font-size: 80%;\n }\n\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -0.25em;\n }\n\n sup {\n top: -0.5em;\n }\n\n img {\n border-style: none;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n button,\n input {\n overflow: visible;\n }\n\n button,\n select {\n text-transform: none;\n }\n\n button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n\n fieldset {\n padding: 0.35em 0.75em 0.625em;\n }\n\n legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n progress {\n vertical-align: baseline;\n }\n\n textarea {\n overflow: auto;\n }\n\n [type="checkbox"],\n [type="radio"] {\n box-sizing: border-box;\n padding: 0;\n }\n\n [type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none !important;\n }\n\n input[type="number"] {\n -moz-appearance: textfield;\n }\n\n [type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n [type="search"]::-webkit-search-decoration {\n -webkit-appearance: none !important;\n }\n\n ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n details {\n display: block;\n }\n\n summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none !important;\n }\n\n body,\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre {\n margin: 0;\n }\n\n button {\n background: transparent;\n padding: 0;\n }\n\n fieldset {\n margin: 0;\n padding: 0;\n }\n\n ol,\n ul {\n margin: 0;\n padding: 0;\n }\n\n textarea {\n resize: vertical;\n }\n\n button,\n [role="button"] {\n cursor: pointer;\n }\n\n button::-moz-focus-inner {\n border: 0 !important;\n }\n\n table {\n border-collapse: collapse;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n padding: 0;\n line-height: inherit;\n color: inherit;\n }\n\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n display: block;\n }\n\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n\n [data-js-focus-visible] :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) {\n outline: none;\n box-shadow: none;\n }\n\n select::-ms-expand {\n display: none;\n }\n ' + }); + }, chakra_ui_utils_esm = __webpack_require__(5031), chakra_ui_react_utils_esm = __webpack_require__(6450), chakra_ui_hooks_esm = __webpack_require__(7375), use_animation_state_5054a9f7_esm = __webpack_require__(4697), react_dom = __webpack_require__(3935), _createContext$1 = (0, chakra_ui_react_utils_esm.kr)({ + strict: !1, + name: "PortalManagerContext" + }), PortalManagerContextProvider = _createContext$1[0], usePortalManager = _createContext$1[1]; + function PortalManager(props) { + var children = props.children, zIndex = props.zIndex; + return react.createElement(PortalManagerContextProvider, { + value: { + zIndex: zIndex + } + }, children); + } + function _extends() { + return (_extends = Object.assign ? Object.assign.bind() : function(target) { + for(var i = 1; i < arguments.length; i++){ + var source = arguments[i]; + for(var key in source)Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }).apply(this, arguments); + } + chakra_ui_utils_esm.Ts && (PortalManager.displayName = "PortalManager"); + var _excluded = [ + "containerRef" + ], _createContext = (0, chakra_ui_react_utils_esm.kr)({ + strict: !1, + name: "PortalContext" + }), PortalContextProvider = _createContext[0], usePortalContext = _createContext[1], PORTAL_CLASSNAME = "chakra-portal", Container = function(props) { + return react.createElement("div", { + className: "chakra-portal-zIndex", + style: { + position: "absolute", + zIndex: props.zIndex, + top: 0, + left: 0, + right: 0 + } + }, props.children); + }, DefaultPortal = function(props) { + var appendToParentPortal = props.appendToParentPortal, children = props.children, tempNode = react.useRef(null), portal = react.useRef(null), forceUpdate = (0, chakra_ui_hooks_esm.NW)(), parentPortal = usePortalContext(), manager = usePortalManager(); + (0, use_animation_state_5054a9f7_esm.a)(function() { + if (tempNode.current) { + var doc = tempNode.current.ownerDocument, host = appendToParentPortal && null != parentPortal ? parentPortal : doc.body; + if (host) { + portal.current = doc.createElement("div"), portal.current.className = PORTAL_CLASSNAME, host.appendChild(portal.current), forceUpdate(); + var portalNode = portal.current; + return function() { + host.contains(portalNode) && host.removeChild(portalNode); + }; + } + } + }, []); + var _children = null != manager && manager.zIndex ? react.createElement(Container, { + zIndex: null == manager ? void 0 : manager.zIndex + }, children) : children; + return portal.current ? (0, react_dom.createPortal)(react.createElement(PortalContextProvider, { + value: portal.current + }, _children), portal.current) : react.createElement("span", { + ref: tempNode + }); + }, ContainerPortal = function(props) { + var children = props.children, containerRef = props.containerRef, appendToParentPortal = props.appendToParentPortal, containerEl = containerRef.current, host = null != containerEl ? containerEl : chakra_ui_utils_esm.jU ? document.body : void 0, portal = react.useMemo(function() { + var node = null == containerEl ? void 0 : containerEl.ownerDocument.createElement("div"); + return node && (node.className = PORTAL_CLASSNAME), node; + }, [ + containerEl + ]), forceUpdate = (0, chakra_ui_hooks_esm.NW)(); + return ((0, use_animation_state_5054a9f7_esm.a)(function() { + forceUpdate(); + }, []), (0, use_animation_state_5054a9f7_esm.a)(function() { + if (portal && host) return host.appendChild(portal), function() { + host.removeChild(portal); + }; + }, [ + portal, + host + ]), host && portal) ? (0, react_dom.createPortal)(react.createElement(PortalContextProvider, { + value: appendToParentPortal ? portal : null + }, children), portal) : null; + }; + function Portal(props) { + var containerRef = props.containerRef, rest = function(source, excluded) { + if (null == source) return {}; + var key, i, target = {}, sourceKeys = Object.keys(source); + for(i = 0; i < sourceKeys.length; i++)key = sourceKeys[i], excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + }(props, _excluded); + return containerRef ? react.createElement(ContainerPortal, _extends({ + containerRef: containerRef + }, rest)) : react.createElement(DefaultPortal, rest); + } + Portal.defaultProps = { + appendToParentPortal: !0 + }, Portal.className = PORTAL_CLASSNAME, Portal.selector = ".chakra-portal", chakra_ui_utils_esm.Ts && (Portal.displayName = "Portal"); + var chakra_ui_system_esm = __webpack_require__(2846), chakra_ui_color_mode_esm = __webpack_require__(949), ssrDocument = { + body: { + classList: { + add: function() {}, + remove: function() {} + } + }, + addEventListener: function() {}, + removeEventListener: function() {}, + activeElement: { + blur: function() {}, + nodeName: "" + }, + querySelector: function() { + return null; + }, + querySelectorAll: function() { + return []; + }, + getElementById: function() { + return null; + }, + createEvent: function() { + return { + initEvent: function() {} + }; + }, + createElement: function() { + return { + children: [], + childNodes: [], + style: {}, + setAttribute: function() {}, + getElementsByTagName: function() { + return []; + } + }; + } + }, noop = function() {}, defaultEnv = chakra_ui_utils_esm.jU ? { + window: window, + document: document + } : { + window: { + document: ssrDocument, + navigator: { + userAgent: "" + }, + CustomEvent: function() { + return this; + }, + addEventListener: noop, + removeEventListener: noop, + getComputedStyle: function() { + return { + getPropertyValue: function() { + return ""; + } + }; + }, + matchMedia: function() { + return { + matches: !1, + addListener: noop, + removeListener: noop + }; + }, + requestAnimationFrame: function(callback) { + return "undefined" == typeof setTimeout ? (callback(), null) : setTimeout(callback, 0); + }, + cancelAnimationFrame: function(id) { + "undefined" != typeof setTimeout && clearTimeout(id); + }, + setTimeout: function() { + return 0; + }, + clearTimeout: noop, + setInterval: function() { + return 0; + }, + clearInterval: noop + }, + document: ssrDocument + }, EnvironmentContext = (0, react.createContext)(defaultEnv); + function EnvironmentProvider(props) { + var children = props.children, environmentProp = props.environment, _useState = (0, react.useState)(null), node = _useState[0], setNode = _useState[1], context = (0, react.useMemo)(function() { + var _ref, doc = null == node ? void 0 : node.ownerDocument, win = null == node ? void 0 : node.ownerDocument.defaultView; + return null != (_ref = null != environmentProp ? environmentProp : doc ? { + document: doc, + window: win + } : void 0) ? _ref : defaultEnv; + }, [ + node, + environmentProp + ]); + return react.createElement(EnvironmentContext.Provider, { + value: context + }, children, react.createElement("span", { + hidden: !0, + className: "chakra-env", + ref: function(el) { + (0, react.startTransition)(function() { + el && setNode(el); + }); + } + })); + } + chakra_ui_utils_esm.Ts && (EnvironmentContext.displayName = "EnvironmentContext"), chakra_ui_utils_esm.Ts && (EnvironmentProvider.displayName = "EnvironmentProvider"); + var chakra_ui_provider_esm_ChakraProvider = function(props) { + var children = props.children, colorModeManager = props.colorModeManager, portalZIndex = props.portalZIndex, _props$resetCSS = props.resetCSS, _props$theme = props.theme, theme = void 0 === _props$theme ? {} : _props$theme, environment = props.environment, cssVarsRoot = props.cssVarsRoot, _children = react.createElement(EnvironmentProvider, { + environment: environment + }, children); + return react.createElement(chakra_ui_system_esm.f6, { + theme: theme, + cssVarsRoot: cssVarsRoot + }, react.createElement(chakra_ui_color_mode_esm.SG, { + colorModeManager: colorModeManager, + options: theme.config + }, (void 0 === _props$resetCSS || _props$resetCSS) && react.createElement(CSSReset$1, null), react.createElement(chakra_ui_system_esm.ZL, null), portalZIndex ? react.createElement(PortalManager, { + zIndex: portalZIndex + }, _children) : _children)); + }, spacing = { + px: "1px", + 0.5: "0.125rem", + 1: "0.25rem", + 1.5: "0.375rem", + 2: "0.5rem", + 2.5: "0.625rem", + 3: "0.75rem", + 3.5: "0.875rem", + 4: "1rem", + 5: "1.25rem", + 6: "1.5rem", + 7: "1.75rem", + 8: "2rem", + 9: "2.25rem", + 10: "2.5rem", + 12: "3rem", + 14: "3.5rem", + 16: "4rem", + 20: "5rem", + 24: "6rem", + 28: "7rem", + 32: "8rem", + 36: "9rem", + 40: "10rem", + 44: "11rem", + 48: "12rem", + 52: "13rem", + 56: "14rem", + 60: "15rem", + 64: "16rem", + 72: "18rem", + 80: "20rem", + 96: "24rem" + }; + function sizes_501602a9_esm_extends() { + return (sizes_501602a9_esm_extends = Object.assign ? Object.assign.bind() : function(target) { + for(var i = 1; i < arguments.length; i++){ + var source = arguments[i]; + for(var key in source)Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }).apply(this, arguments); + } + var sizes = sizes_501602a9_esm_extends({}, spacing, { + max: "max-content", + min: "min-content", + full: "100%", + "3xs": "14rem", + "2xs": "16rem", + xs: "20rem", + sm: "24rem", + md: "28rem", + lg: "32rem", + xl: "36rem", + "2xl": "42rem", + "3xl": "48rem", + "4xl": "56rem", + "5xl": "64rem", + "6xl": "72rem", + "7xl": "80rem", + "8xl": "90rem" + }, { + container: { + sm: "640px", + md: "768px", + lg: "1024px", + xl: "1280px" + } + }); + function bound01(n, max) { + isOnePointZero(n) && (n = "100%"); + var isPercent = isPercentage(n); + return (n = 360 === max ? n : Math.min(max, Math.max(0, parseFloat(n))), isPercent && (n = parseInt(String(n * max), 10) / 100), 0.000001 > Math.abs(n - max)) ? 1 : n = 360 === max ? (n < 0 ? n % max + max : n % max) / parseFloat(String(max)) : n % max / parseFloat(String(max)); + } + function clamp01(val) { + return Math.min(1, Math.max(0, val)); + } + function isOnePointZero(n) { + return "string" == typeof n && -1 !== n.indexOf(".") && 1 === parseFloat(n); + } + function isPercentage(n) { + return "string" == typeof n && -1 !== n.indexOf("%"); + } + function boundAlpha(a) { + return a = parseFloat(a), (isNaN(a) || a < 0 || a > 1) && (a = 1), a; + } + function convertToPercentage(n) { + return n <= 1 ? "".concat(100 * Number(n), "%") : n; + } + function util_pad2(c) { + return 1 === c.length ? "0" + c : String(c); + } + function rgbToHsl(r, g, b) { + r = bound01(r, 255), g = bound01(g, 255), b = bound01(b, 255); + var max = Math.max(r, g, b), min = Math.min(r, g, b), h = 0, s = 0, l = (max + min) / 2; + if (max === min) s = 0, h = 0; + else { + var d = max - min; + switch(s = l > 0.5 ? d / (2 - max - min) : d / (max + min), max){ + case r: + h = (g - b) / d + (g < b ? 6 : 0); + break; + case g: + h = (b - r) / d + 2; + break; + case b: + h = (r - g) / d + 4; + } + h /= 6; + } + return { + h: h, + s: s, + l: l + }; + } + function hue2rgb(p, q, t) { + return (t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6) ? p + (q - p) * (6 * t) : t < 0.5 ? q : t < 2 / 3 ? p + (q - p) * (2 / 3 - t) * 6 : p; + } + function rgbToHsv(r, g, b) { + r = bound01(r, 255), g = bound01(g, 255), b = bound01(b, 255); + var max = Math.max(r, g, b), min = Math.min(r, g, b), h = 0, d = max - min; + if (max === min) h = 0; + else { + switch(max){ + case r: + h = (g - b) / d + (g < b ? 6 : 0); + break; + case g: + h = (b - r) / d + 2; + break; + case b: + h = (r - g) / d + 4; + } + h /= 6; + } + return { + h: h, + s: 0 === max ? 0 : d / max, + v: max + }; + } + function rgbToHex(r, g, b, allow3Char) { + var hex = [ + util_pad2(Math.round(r).toString(16)), + util_pad2(Math.round(g).toString(16)), + util_pad2(Math.round(b).toString(16)), + ]; + return allow3Char && hex[0].startsWith(hex[0].charAt(1)) && hex[1].startsWith(hex[1].charAt(1)) && hex[2].startsWith(hex[2].charAt(1)) ? hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) : hex.join(""); + } + function convertHexToDecimal(h) { + return parseIntFromHex(h) / 255; + } + function parseIntFromHex(val) { + return parseInt(val, 16); + } + var names = { + aliceblue: "#f0f8ff", + antiquewhite: "#faebd7", + aqua: "#00ffff", + aquamarine: "#7fffd4", + azure: "#f0ffff", + beige: "#f5f5dc", + bisque: "#ffe4c4", + black: "#000000", + blanchedalmond: "#ffebcd", + blue: "#0000ff", + blueviolet: "#8a2be2", + brown: "#a52a2a", + burlywood: "#deb887", + cadetblue: "#5f9ea0", + chartreuse: "#7fff00", + chocolate: "#d2691e", + coral: "#ff7f50", + cornflowerblue: "#6495ed", + cornsilk: "#fff8dc", + crimson: "#dc143c", + cyan: "#00ffff", + darkblue: "#00008b", + darkcyan: "#008b8b", + darkgoldenrod: "#b8860b", + darkgray: "#a9a9a9", + darkgreen: "#006400", + darkgrey: "#a9a9a9", + darkkhaki: "#bdb76b", + darkmagenta: "#8b008b", + darkolivegreen: "#556b2f", + darkorange: "#ff8c00", + darkorchid: "#9932cc", + darkred: "#8b0000", + darksalmon: "#e9967a", + darkseagreen: "#8fbc8f", + darkslateblue: "#483d8b", + darkslategray: "#2f4f4f", + darkslategrey: "#2f4f4f", + darkturquoise: "#00ced1", + darkviolet: "#9400d3", + deeppink: "#ff1493", + deepskyblue: "#00bfff", + dimgray: "#696969", + dimgrey: "#696969", + dodgerblue: "#1e90ff", + firebrick: "#b22222", + floralwhite: "#fffaf0", + forestgreen: "#228b22", + fuchsia: "#ff00ff", + gainsboro: "#dcdcdc", + ghostwhite: "#f8f8ff", + goldenrod: "#daa520", + gold: "#ffd700", + gray: "#808080", + green: "#008000", + greenyellow: "#adff2f", + grey: "#808080", + honeydew: "#f0fff0", + hotpink: "#ff69b4", + indianred: "#cd5c5c", + indigo: "#4b0082", + ivory: "#fffff0", + khaki: "#f0e68c", + lavenderblush: "#fff0f5", + lavender: "#e6e6fa", + lawngreen: "#7cfc00", + lemonchiffon: "#fffacd", + lightblue: "#add8e6", + lightcoral: "#f08080", + lightcyan: "#e0ffff", + lightgoldenrodyellow: "#fafad2", + lightgray: "#d3d3d3", + lightgreen: "#90ee90", + lightgrey: "#d3d3d3", + lightpink: "#ffb6c1", + lightsalmon: "#ffa07a", + lightseagreen: "#20b2aa", + lightskyblue: "#87cefa", + lightslategray: "#778899", + lightslategrey: "#778899", + lightsteelblue: "#b0c4de", + lightyellow: "#ffffe0", + lime: "#00ff00", + limegreen: "#32cd32", + linen: "#faf0e6", + magenta: "#ff00ff", + maroon: "#800000", + mediumaquamarine: "#66cdaa", + mediumblue: "#0000cd", + mediumorchid: "#ba55d3", + mediumpurple: "#9370db", + mediumseagreen: "#3cb371", + mediumslateblue: "#7b68ee", + mediumspringgreen: "#00fa9a", + mediumturquoise: "#48d1cc", + mediumvioletred: "#c71585", + midnightblue: "#191970", + mintcream: "#f5fffa", + mistyrose: "#ffe4e1", + moccasin: "#ffe4b5", + navajowhite: "#ffdead", + navy: "#000080", + oldlace: "#fdf5e6", + olive: "#808000", + olivedrab: "#6b8e23", + orange: "#ffa500", + orangered: "#ff4500", + orchid: "#da70d6", + palegoldenrod: "#eee8aa", + palegreen: "#98fb98", + paleturquoise: "#afeeee", + palevioletred: "#db7093", + papayawhip: "#ffefd5", + peachpuff: "#ffdab9", + peru: "#cd853f", + pink: "#ffc0cb", + plum: "#dda0dd", + powderblue: "#b0e0e6", + purple: "#800080", + rebeccapurple: "#663399", + red: "#ff0000", + rosybrown: "#bc8f8f", + royalblue: "#4169e1", + saddlebrown: "#8b4513", + salmon: "#fa8072", + sandybrown: "#f4a460", + seagreen: "#2e8b57", + seashell: "#fff5ee", + sienna: "#a0522d", + silver: "#c0c0c0", + skyblue: "#87ceeb", + slateblue: "#6a5acd", + slategray: "#708090", + slategrey: "#708090", + snow: "#fffafa", + springgreen: "#00ff7f", + steelblue: "#4682b4", + tan: "#d2b48c", + teal: "#008080", + thistle: "#d8bfd8", + tomato: "#ff6347", + turquoise: "#40e0d0", + violet: "#ee82ee", + wheat: "#f5deb3", + white: "#ffffff", + whitesmoke: "#f5f5f5", + yellow: "#ffff00", + yellowgreen: "#9acd32" + }, CSS_UNIT = "(?:".concat("[-\\+]?\\d*\\.\\d+%?", ")|(?:").concat("[-\\+]?\\d+%?", ")"), PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?"), PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?"), matchers = { + CSS_UNIT: RegExp(CSS_UNIT), + rgb: RegExp("rgb" + PERMISSIVE_MATCH3), + rgba: RegExp("rgba" + PERMISSIVE_MATCH4), + hsl: RegExp("hsl" + PERMISSIVE_MATCH3), + hsla: RegExp("hsla" + PERMISSIVE_MATCH4), + hsv: RegExp("hsv" + PERMISSIVE_MATCH3), + hsva: RegExp("hsva" + PERMISSIVE_MATCH4), + hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, + hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ + }; + function isValidCSSUnit(color) { + return Boolean(matchers.CSS_UNIT.exec(String(color))); + } + var module_TinyColor = function() { + function TinyColor(color, opts) { + if (void 0 === color && (color = ""), void 0 === opts && (opts = {}), color instanceof TinyColor) return color; + "number" == typeof color && (color = { + r: (color1 = color) >> 16, + g: (0xff00 & color1) >> 8, + b: 0xff & color1 + }), this.originalInput = color; + var color1, color2, r, g, b, h, s, v, i, f, p, q, t, mod, r1, g1, b1, rgb, a, s1, v1, l, ok, format, _a, rgb1 = (rgb = { + r: 0, + g: 0, + b: 0 + }, a = 1, s1 = null, v1 = null, l = null, ok = !1, format = !1, "string" == typeof (color2 = color) && (color2 = function(color) { + if (0 === (color = color.trim().toLowerCase()).length) return !1; + var named = !1; + if (names[color]) color = names[color], named = !0; + else if ("transparent" === color) return { + r: 0, + g: 0, + b: 0, + a: 0, + format: "name" + }; + var match = matchers.rgb.exec(color); + return match ? { + r: match[1], + g: match[2], + b: match[3] + } : (match = matchers.rgba.exec(color)) ? { + r: match[1], + g: match[2], + b: match[3], + a: match[4] + } : (match = matchers.hsl.exec(color)) ? { + h: match[1], + s: match[2], + l: match[3] + } : (match = matchers.hsla.exec(color)) ? { + h: match[1], + s: match[2], + l: match[3], + a: match[4] + } : (match = matchers.hsv.exec(color)) ? { + h: match[1], + s: match[2], + v: match[3] + } : (match = matchers.hsva.exec(color)) ? { + h: match[1], + s: match[2], + v: match[3], + a: match[4] + } : (match = matchers.hex8.exec(color)) ? { + r: parseIntFromHex(match[1]), + g: parseIntFromHex(match[2]), + b: parseIntFromHex(match[3]), + a: convertHexToDecimal(match[4]), + format: named ? "name" : "hex8" + } : (match = matchers.hex6.exec(color)) ? { + r: parseIntFromHex(match[1]), + g: parseIntFromHex(match[2]), + b: parseIntFromHex(match[3]), + format: named ? "name" : "hex" + } : (match = matchers.hex4.exec(color)) ? { + r: parseIntFromHex(match[1] + match[1]), + g: parseIntFromHex(match[2] + match[2]), + b: parseIntFromHex(match[3] + match[3]), + a: convertHexToDecimal(match[4] + match[4]), + format: named ? "name" : "hex8" + } : !!(match = matchers.hex3.exec(color)) && { + r: parseIntFromHex(match[1] + match[1]), + g: parseIntFromHex(match[2] + match[2]), + b: parseIntFromHex(match[3] + match[3]), + format: named ? "name" : "hex" + }; + }(color2)), "object" == typeof color2 && (isValidCSSUnit(color2.r) && isValidCSSUnit(color2.g) && isValidCSSUnit(color2.b) ? (rgb = (r = color2.r, g = color2.g, b = color2.b, { + r: 255 * bound01(r, 255), + g: 255 * bound01(g, 255), + b: 255 * bound01(b, 255) + }), ok = !0, format = "%" === String(color2.r).substr(-1) ? "prgb" : "rgb") : isValidCSSUnit(color2.h) && isValidCSSUnit(color2.s) && isValidCSSUnit(color2.v) ? (s1 = convertToPercentage(color2.s), v1 = convertToPercentage(color2.v), rgb = (h = color2.h, s = s1, v = v1, h = 6 * bound01(h, 360), s = bound01(s, 100), v = bound01(v, 100), i = Math.floor(h), f = h - i, p = v * (1 - s), q = v * (1 - f * s), t = v * (1 - (1 - f) * s), mod = i % 6, r1 = [ + v, + q, + p, + p, + t, + v + ][mod], g1 = [ + t, + v, + v, + q, + p, + p + ][mod], b1 = [ + p, + p, + t, + v, + v, + q + ][mod], { + r: 255 * r1, + g: 255 * g1, + b: 255 * b1 + }), ok = !0, format = "hsv") : isValidCSSUnit(color2.h) && isValidCSSUnit(color2.s) && isValidCSSUnit(color2.l) && (s1 = convertToPercentage(color2.s), l = convertToPercentage(color2.l), rgb = function(h, s, l) { + if (h = bound01(h, 360), s = bound01(s, 100), l = bound01(l, 100), 0 === s) g = l, b = l, r = l; + else { + var r, g, b, q = l < 0.5 ? l * (1 + s) : l + s - l * s, p = 2 * l - q; + r = hue2rgb(p, q, h + 1 / 3), g = hue2rgb(p, q, h), b = hue2rgb(p, q, h - 1 / 3); + } + return { + r: 255 * r, + g: 255 * g, + b: 255 * b + }; + }(color2.h, s1, l), ok = !0, format = "hsl"), Object.prototype.hasOwnProperty.call(color2, "a") && (a = color2.a)), a = boundAlpha(a), { + ok: ok, + format: color2.format || format, + r: Math.min(255, Math.max(rgb.r, 0)), + g: Math.min(255, Math.max(rgb.g, 0)), + b: Math.min(255, Math.max(rgb.b, 0)), + a: a + }); + this.originalInput = color, this.r = rgb1.r, this.g = rgb1.g, this.b = rgb1.b, this.a = rgb1.a, this.roundA = Math.round(100 * this.a) / 100, this.format = null !== (_a = opts.format) && void 0 !== _a ? _a : rgb1.format, this.gradientType = opts.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = rgb1.ok; + } + return TinyColor.prototype.isDark = function() { + return 128 > this.getBrightness(); + }, TinyColor.prototype.isLight = function() { + return !this.isDark(); + }, TinyColor.prototype.getBrightness = function() { + var rgb = this.toRgb(); + return (299 * rgb.r + 587 * rgb.g + 114 * rgb.b) / 1000; + }, TinyColor.prototype.getLuminance = function() { + var rgb = this.toRgb(), RsRGB = rgb.r / 255, GsRGB = rgb.g / 255, BsRGB = rgb.b / 255; + return 0.2126 * (RsRGB <= 0.03928 ? RsRGB / 12.92 : Math.pow((RsRGB + 0.055) / 1.055, 2.4)) + 0.7152 * (GsRGB <= 0.03928 ? GsRGB / 12.92 : Math.pow((GsRGB + 0.055) / 1.055, 2.4)) + 0.0722 * (BsRGB <= 0.03928 ? BsRGB / 12.92 : Math.pow((BsRGB + 0.055) / 1.055, 2.4)); + }, TinyColor.prototype.getAlpha = function() { + return this.a; + }, TinyColor.prototype.setAlpha = function(alpha) { + return this.a = boundAlpha(alpha), this.roundA = Math.round(100 * this.a) / 100, this; + }, TinyColor.prototype.toHsv = function() { + var hsv = rgbToHsv(this.r, this.g, this.b); + return { + h: 360 * hsv.h, + s: hsv.s, + v: hsv.v, + a: this.a + }; + }, TinyColor.prototype.toHsvString = function() { + var hsv = rgbToHsv(this.r, this.g, this.b), h = Math.round(360 * hsv.h), s = Math.round(100 * hsv.s), v = Math.round(100 * hsv.v); + return 1 === this.a ? "hsv(".concat(h, ", ").concat(s, "%, ").concat(v, "%)") : "hsva(".concat(h, ", ").concat(s, "%, ").concat(v, "%, ").concat(this.roundA, ")"); + }, TinyColor.prototype.toHsl = function() { + var hsl = rgbToHsl(this.r, this.g, this.b); + return { + h: 360 * hsl.h, + s: hsl.s, + l: hsl.l, + a: this.a + }; + }, TinyColor.prototype.toHslString = function() { + var hsl = rgbToHsl(this.r, this.g, this.b), h = Math.round(360 * hsl.h), s = Math.round(100 * hsl.s), l = Math.round(100 * hsl.l); + return 1 === this.a ? "hsl(".concat(h, ", ").concat(s, "%, ").concat(l, "%)") : "hsla(".concat(h, ", ").concat(s, "%, ").concat(l, "%, ").concat(this.roundA, ")"); + }, TinyColor.prototype.toHex = function(allow3Char) { + return void 0 === allow3Char && (allow3Char = !1), rgbToHex(this.r, this.g, this.b, allow3Char); + }, TinyColor.prototype.toHexString = function(allow3Char) { + return void 0 === allow3Char && (allow3Char = !1), "#" + this.toHex(allow3Char); + }, TinyColor.prototype.toHex8 = function(allow4Char) { + var r, g, b, a, allow4Char1, hex; + return void 0 === allow4Char && (allow4Char = !1), r = this.r, g = this.g, b = this.b, a = this.a, allow4Char1 = allow4Char, hex = [ + util_pad2(Math.round(r).toString(16)), + util_pad2(Math.round(g).toString(16)), + util_pad2(Math.round(b).toString(16)), + util_pad2(Math.round(255 * parseFloat(a)).toString(16)), + ], allow4Char1 && hex[0].startsWith(hex[0].charAt(1)) && hex[1].startsWith(hex[1].charAt(1)) && hex[2].startsWith(hex[2].charAt(1)) && hex[3].startsWith(hex[3].charAt(1)) ? hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0) : hex.join(""); + }, TinyColor.prototype.toHex8String = function(allow4Char) { + return void 0 === allow4Char && (allow4Char = !1), "#" + this.toHex8(allow4Char); + }, TinyColor.prototype.toRgb = function() { + return { + r: Math.round(this.r), + g: Math.round(this.g), + b: Math.round(this.b), + a: this.a + }; + }, TinyColor.prototype.toRgbString = function() { + var r = Math.round(this.r), g = Math.round(this.g), b = Math.round(this.b); + return 1 === this.a ? "rgb(".concat(r, ", ").concat(g, ", ").concat(b, ")") : "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(this.roundA, ")"); + }, TinyColor.prototype.toPercentageRgb = function() { + var fmt = function(x) { + return "".concat(Math.round(100 * bound01(x, 255)), "%"); + }; + return { + r: fmt(this.r), + g: fmt(this.g), + b: fmt(this.b), + a: this.a + }; + }, TinyColor.prototype.toPercentageRgbString = function() { + var rnd = function(x) { + return Math.round(100 * bound01(x, 255)); + }; + return 1 === this.a ? "rgb(".concat(rnd(this.r), "%, ").concat(rnd(this.g), "%, ").concat(rnd(this.b), "%)") : "rgba(".concat(rnd(this.r), "%, ").concat(rnd(this.g), "%, ").concat(rnd(this.b), "%, ").concat(this.roundA, ")"); + }, TinyColor.prototype.toName = function() { + if (0 === this.a) return "transparent"; + if (this.a < 1) return !1; + for(var hex = "#" + rgbToHex(this.r, this.g, this.b, !1), _i = 0, _a = Object.entries(names); _i < _a.length; _i++){ + var _b = _a[_i], key = _b[0], value = _b[1]; + if (hex === value) return key; + } + return !1; + }, TinyColor.prototype.toString = function(format) { + var formatSet = Boolean(format); + format = null != format ? format : this.format; + var formattedString = !1, hasAlpha = this.a < 1 && this.a >= 0, needsAlphaFormat = !formatSet && hasAlpha && (format.startsWith("hex") || "name" === format); + return needsAlphaFormat ? "name" === format && 0 === this.a ? this.toName() : this.toRgbString() : ("rgb" === format && (formattedString = this.toRgbString()), "prgb" === format && (formattedString = this.toPercentageRgbString()), ("hex" === format || "hex6" === format) && (formattedString = this.toHexString()), "hex3" === format && (formattedString = this.toHexString(!0)), "hex4" === format && (formattedString = this.toHex8String(!0)), "hex8" === format && (formattedString = this.toHex8String()), "name" === format && (formattedString = this.toName()), "hsl" === format && (formattedString = this.toHslString()), "hsv" === format && (formattedString = this.toHsvString()), formattedString || this.toHexString()); + }, TinyColor.prototype.toNumber = function() { + return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b); + }, TinyColor.prototype.clone = function() { + return new TinyColor(this.toString()); + }, TinyColor.prototype.lighten = function(amount) { + void 0 === amount && (amount = 10); + var hsl = this.toHsl(); + return hsl.l += amount / 100, hsl.l = clamp01(hsl.l), new TinyColor(hsl); + }, TinyColor.prototype.brighten = function(amount) { + void 0 === amount && (amount = 10); + var rgb = this.toRgb(); + return rgb.r = Math.max(0, Math.min(255, rgb.r - Math.round(-(255 * (amount / 100))))), rgb.g = Math.max(0, Math.min(255, rgb.g - Math.round(-(255 * (amount / 100))))), rgb.b = Math.max(0, Math.min(255, rgb.b - Math.round(-(255 * (amount / 100))))), new TinyColor(rgb); + }, TinyColor.prototype.darken = function(amount) { + void 0 === amount && (amount = 10); + var hsl = this.toHsl(); + return hsl.l -= amount / 100, hsl.l = clamp01(hsl.l), new TinyColor(hsl); + }, TinyColor.prototype.tint = function(amount) { + return void 0 === amount && (amount = 10), this.mix("white", amount); + }, TinyColor.prototype.shade = function(amount) { + return void 0 === amount && (amount = 10), this.mix("black", amount); + }, TinyColor.prototype.desaturate = function(amount) { + void 0 === amount && (amount = 10); + var hsl = this.toHsl(); + return hsl.s -= amount / 100, hsl.s = clamp01(hsl.s), new TinyColor(hsl); + }, TinyColor.prototype.saturate = function(amount) { + void 0 === amount && (amount = 10); + var hsl = this.toHsl(); + return hsl.s += amount / 100, hsl.s = clamp01(hsl.s), new TinyColor(hsl); + }, TinyColor.prototype.greyscale = function() { + return this.desaturate(100); + }, TinyColor.prototype.spin = function(amount) { + var hsl = this.toHsl(), hue = (hsl.h + amount) % 360; + return hsl.h = hue < 0 ? 360 + hue : hue, new TinyColor(hsl); + }, TinyColor.prototype.mix = function(color, amount) { + void 0 === amount && (amount = 50); + var rgb1 = this.toRgb(), rgb2 = new TinyColor(color).toRgb(), p = amount / 100, rgba = { + r: (rgb2.r - rgb1.r) * p + rgb1.r, + g: (rgb2.g - rgb1.g) * p + rgb1.g, + b: (rgb2.b - rgb1.b) * p + rgb1.b, + a: (rgb2.a - rgb1.a) * p + rgb1.a + }; + return new TinyColor(rgba); + }, TinyColor.prototype.analogous = function(results, slices) { + void 0 === results && (results = 6), void 0 === slices && (slices = 30); + var hsl = this.toHsl(), part = 360 / slices, ret = [ + this + ]; + for(hsl.h = (hsl.h - (part * results >> 1) + 720) % 360; --results;)hsl.h = (hsl.h + part) % 360, ret.push(new TinyColor(hsl)); + return ret; + }, TinyColor.prototype.complement = function() { + var hsl = this.toHsl(); + return hsl.h = (hsl.h + 180) % 360, new TinyColor(hsl); + }, TinyColor.prototype.monochromatic = function(results) { + void 0 === results && (results = 6); + for(var hsv = this.toHsv(), h = hsv.h, s = hsv.s, v = hsv.v, res = [], modification = 1 / results; results--;)res.push(new TinyColor({ + h: h, + s: s, + v: v + })), v = (v + modification) % 1; + return res; + }, TinyColor.prototype.splitcomplement = function() { + var hsl = this.toHsl(), h = hsl.h; + return [ + this, + new TinyColor({ + h: (h + 72) % 360, + s: hsl.s, + l: hsl.l + }), + new TinyColor({ + h: (h + 216) % 360, + s: hsl.s, + l: hsl.l + }), + ]; + }, TinyColor.prototype.onBackground = function(background) { + var fg = this.toRgb(), bg = new TinyColor(background).toRgb(); + return new TinyColor({ + r: bg.r + (fg.r - bg.r) * fg.a, + g: bg.g + (fg.g - bg.g) * fg.a, + b: bg.b + (fg.b - bg.b) * fg.a + }); + }, TinyColor.prototype.triad = function() { + return this.polyad(3); + }, TinyColor.prototype.tetrad = function() { + return this.polyad(4); + }, TinyColor.prototype.polyad = function(n) { + for(var hsl = this.toHsl(), h = hsl.h, result = [ + this + ], increment = 360 / n, i = 1; i < n; i++)result.push(new TinyColor({ + h: (h + i * increment) % 360, + s: hsl.s, + l: hsl.l + })); + return result; + }, TinyColor.prototype.equals = function(color) { + return this.toRgbString() === new TinyColor(color).toRgbString(); + }, TinyColor; + }(); + function random(options) { + if (void 0 === options && (options = {}), void 0 !== options.count && null !== options.count) { + var totalColors = options.count, colors = []; + for(options.count = void 0; totalColors > colors.length;)options.count = null, options.seed && (options.seed += 1), colors.push(random(options)); + return options.count = totalColors, colors; + } + var h = pickHue(options.hue, options.seed), s = pickSaturation(h, options), v = pickBrightness(h, s, options), res = { + h: h, + s: s, + v: v + }; + return void 0 !== options.alpha && (res.a = options.alpha), new module_TinyColor(res); + } + function pickHue(hue, seed) { + var hueRange = getHueRange(hue), res = randomWithin(hueRange, seed); + return res < 0 && (res = 360 + res), res; + } + function pickSaturation(hue, options) { + if ("monochrome" === options.hue) return 0; + if ("random" === options.luminosity) return randomWithin([ + 0, + 100 + ], options.seed); + var saturationRange = getColorInfo(hue).saturationRange, sMin = saturationRange[0], sMax = saturationRange[1]; + switch(options.luminosity){ + case "bright": + sMin = 55; + break; + case "dark": + sMin = sMax - 10; + break; + case "light": + sMax = 55; + } + return randomWithin([ + sMin, + sMax + ], options.seed); + } + function pickBrightness(H, S, options) { + var bMin = getMinimumBrightness(H, S), bMax = 100; + switch(options.luminosity){ + case "dark": + bMax = bMin + 20; + break; + case "light": + bMin = (bMax + bMin) / 2; + break; + case "random": + bMin = 0, bMax = 100; + } + return randomWithin([ + bMin, + bMax + ], options.seed); + } + function getMinimumBrightness(H, S) { + for(var lowerBounds = getColorInfo(H).lowerBounds, i = 0; i < lowerBounds.length - 1; i++){ + var s1 = lowerBounds[i][0], v1 = lowerBounds[i][1], s2 = lowerBounds[i + 1][0], v2 = lowerBounds[i + 1][1]; + if (S >= s1 && S <= s2) { + var m = (v2 - v1) / (s2 - s1), b = v1 - m * s1; + return m * S + b; + } + } + return 0; + } + function getHueRange(colorInput) { + var num = parseInt(colorInput, 10); + if (!Number.isNaN(num) && num < 360 && num > 0) return [ + num, + num + ]; + if ("string" == typeof colorInput) { + var namedColor = bounds.find(function(n) { + return n.name === colorInput; + }); + if (namedColor) { + var color = defineColor(namedColor); + if (color.hueRange) return color.hueRange; + } + var parsed = new module_TinyColor(colorInput); + if (parsed.isValid) { + var hue = parsed.toHsv().h; + return [ + hue, + hue + ]; + } + } + return [ + 0, + 360 + ]; + } + function getColorInfo(hue) { + hue >= 334 && hue <= 360 && (hue -= 360); + for(var _i = 0, bounds_1 = bounds; _i < bounds_1.length; _i++){ + var color = defineColor(bounds_1[_i]); + if (color.hueRange && hue >= color.hueRange[0] && hue <= color.hueRange[1]) return color; + } + throw Error("Color not found"); + } + function randomWithin(range, seed) { + if (void 0 === seed) return Math.floor(range[0] + Math.random() * (range[1] + 1 - range[0])); + var max = range[1] || 1, min = range[0] || 0; + seed = (9301 * seed + 49297) % 233280; + var rnd = seed / 233280.0; + return Math.floor(min + rnd * (max - min)); + } + function defineColor(bound) { + var sMin = bound.lowerBounds[0][0], sMax = bound.lowerBounds[bound.lowerBounds.length - 1][0], bMin = bound.lowerBounds[bound.lowerBounds.length - 1][1], bMax = bound.lowerBounds[0][1]; + return { + name: bound.name, + hueRange: bound.hueRange, + lowerBounds: bound.lowerBounds, + saturationRange: [ + sMin, + sMax + ], + brightnessRange: [ + bMin, + bMax + ] + }; + } + var bounds = [ + { + name: "monochrome", + hueRange: null, + lowerBounds: [ + [ + 0, + 0 + ], + [ + 100, + 0 + ], + ] + }, + { + name: "red", + hueRange: [ + -26, + 18 + ], + lowerBounds: [ + [ + 20, + 100 + ], + [ + 30, + 92 + ], + [ + 40, + 89 + ], + [ + 50, + 85 + ], + [ + 60, + 78 + ], + [ + 70, + 70 + ], + [ + 80, + 60 + ], + [ + 90, + 55 + ], + [ + 100, + 50 + ], + ] + }, + { + name: "orange", + hueRange: [ + 19, + 46 + ], + lowerBounds: [ + [ + 20, + 100 + ], + [ + 30, + 93 + ], + [ + 40, + 88 + ], + [ + 50, + 86 + ], + [ + 60, + 85 + ], + [ + 70, + 70 + ], + [ + 100, + 70 + ], + ] + }, + { + name: "yellow", + hueRange: [ + 47, + 62 + ], + lowerBounds: [ + [ + 25, + 100 + ], + [ + 40, + 94 + ], + [ + 50, + 89 + ], + [ + 60, + 86 + ], + [ + 70, + 84 + ], + [ + 80, + 82 + ], + [ + 90, + 80 + ], + [ + 100, + 75 + ], + ] + }, + { + name: "green", + hueRange: [ + 63, + 178 + ], + lowerBounds: [ + [ + 30, + 100 + ], + [ + 40, + 90 + ], + [ + 50, + 85 + ], + [ + 60, + 81 + ], + [ + 70, + 74 + ], + [ + 80, + 64 + ], + [ + 90, + 50 + ], + [ + 100, + 40 + ], + ] + }, + { + name: "blue", + hueRange: [ + 179, + 257 + ], + lowerBounds: [ + [ + 20, + 100 + ], + [ + 30, + 86 + ], + [ + 40, + 80 + ], + [ + 50, + 74 + ], + [ + 60, + 60 + ], + [ + 70, + 52 + ], + [ + 80, + 44 + ], + [ + 90, + 39 + ], + [ + 100, + 35 + ], + ] + }, + { + name: "purple", + hueRange: [ + 258, + 282 + ], + lowerBounds: [ + [ + 20, + 100 + ], + [ + 30, + 87 + ], + [ + 40, + 79 + ], + [ + 50, + 70 + ], + [ + 60, + 65 + ], + [ + 70, + 59 + ], + [ + 80, + 52 + ], + [ + 90, + 45 + ], + [ + 100, + 42 + ], + ] + }, + { + name: "pink", + hueRange: [ + 283, + 334 + ], + lowerBounds: [ + [ + 20, + 100 + ], + [ + 30, + 90 + ], + [ + 40, + 86 + ], + [ + 60, + 84 + ], + [ + 80, + 80 + ], + [ + 90, + 75 + ], + [ + 100, + 73 + ], + ] + }, + ], getColor = function(theme, color, fallback) { + var hex = (0, chakra_ui_utils_esm.Wf)(theme, "colors." + color, color); + return new module_TinyColor(hex).isValid ? hex : fallback; + }, transparentize = function(color, opacity) { + return function(theme) { + var raw = getColor(theme, color); + return new module_TinyColor(raw).setAlpha(opacity).toRgbString(); + }; + }; + function generateStripe(size, color) { + return void 0 === size && (size = "1rem"), void 0 === color && (color = "rgba(255, 255, 255, 0.15)"), { + backgroundImage: "linear-gradient(\n 45deg,\n " + color + " 25%,\n transparent 25%,\n transparent 50%,\n " + color + " 50%,\n " + color + " 75%,\n transparent 75%,\n transparent\n )", + backgroundSize: size + " " + size + }; + } + function mode(light, dark) { + return function(props) { + return "dark" === props.colorMode ? dark : light; + }; + } + function orient(options) { + var orientation = options.orientation, vertical = options.vertical, horizontal = options.horizontal; + return orientation ? "vertical" === orientation ? vertical : horizontal : {}; + } + function chakra_ui_theme_tools_esm_extends() { + return (chakra_ui_theme_tools_esm_extends = Object.assign ? Object.assign.bind() : function(target) { + for(var i = 1; i < arguments.length; i++){ + var source = arguments[i]; + for(var key in source)Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }).apply(this, arguments); + } + function _defineProperties(target, props) { + for(var i = 0; i < props.length; i++){ + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); + } + } + var Anatomy = function() { + var Constructor, protoProps, staticProps; + function Anatomy(name) { + var _this = this; + this.map = {}, this.called = !1, this.assert = function() { + if (!_this.called) { + _this.called = !0; + return; + } + throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?"); + }, this.parts = function() { + _this.assert(); + for(var _len = arguments.length, values = Array(_len), _key = 0; _key < _len; _key++)values[_key] = arguments[_key]; + for(var _i = 0, _values = values; _i < _values.length; _i++){ + var part = _values[_i]; + _this.map[part] = _this.toPart(part); + } + return _this; + }, this.extend = function() { + for(var _len2 = arguments.length, parts = Array(_len2), _key2 = 0; _key2 < _len2; _key2++)parts[_key2] = arguments[_key2]; + for(var _i2 = 0, _parts = parts; _i2 < _parts.length; _i2++){ + var part = _parts[_i2]; + part in _this.map || (_this.map[part] = _this.toPart(part)); + } + return _this; + }, this.toPart = function(part) { + var className = "chakra-" + ([ + "container", + "root" + ].includes(null != part ? part : "") ? [ + _this.name + ] : [ + _this.name, + part + ]).filter(Boolean).join("__"); + return { + className: className, + selector: "." + className, + toString: function() { + return part; + } + }; + }, this.__type = {}; + } + return Constructor = Anatomy, protoProps = [ + { + key: "selectors", + get: function() { + return (0, chakra_ui_utils_esm.sq)(Object.entries(this.map).map(function(_ref) { + var key = _ref[0], part = _ref[1]; + return [ + key, + part.selector + ]; + })); + } + }, + { + key: "classNames", + get: function() { + return (0, chakra_ui_utils_esm.sq)(Object.entries(this.map).map(function(_ref2) { + var key = _ref2[0], part = _ref2[1]; + return [ + key, + part.className + ]; + })); + } + }, + { + key: "keys", + get: function() { + return Object.keys(this.map); + } + }, + ], _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Object.defineProperty(Constructor, "prototype", { + writable: !1 + }), Anatomy; + }(); + function anatomy(name) { + return new Anatomy(name); + } + function toRef(operand) { + return (0, chakra_ui_utils_esm.Kn)(operand) && operand.reference ? operand.reference : String(operand); + } + var toExpr = function(operator) { + for(var _len = arguments.length, operands = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)operands[_key - 1] = arguments[_key]; + return operands.map(toRef).join(" " + operator + " ").replace(/calc/g, ""); + }, _add = function() { + for(var _len2 = arguments.length, operands = Array(_len2), _key2 = 0; _key2 < _len2; _key2++)operands[_key2] = arguments[_key2]; + return "calc(" + toExpr.apply(void 0, [ + "+" + ].concat(operands)) + ")"; + }, _subtract = function() { + for(var _len3 = arguments.length, operands = Array(_len3), _key3 = 0; _key3 < _len3; _key3++)operands[_key3] = arguments[_key3]; + return "calc(" + toExpr.apply(void 0, [ + "-" + ].concat(operands)) + ")"; + }, _multiply = function() { + for(var _len4 = arguments.length, operands = Array(_len4), _key4 = 0; _key4 < _len4; _key4++)operands[_key4] = arguments[_key4]; + return "calc(" + toExpr.apply(void 0, [ + "*" + ].concat(operands)) + ")"; + }, _divide = function() { + for(var _len5 = arguments.length, operands = Array(_len5), _key5 = 0; _key5 < _len5; _key5++)operands[_key5] = arguments[_key5]; + return "calc(" + toExpr.apply(void 0, [ + "/" + ].concat(operands)) + ")"; + }, _negate = function(x) { + var value = toRef(x); + return null == value || Number.isNaN(parseFloat(value)) ? _multiply(value, -1) : String(value).startsWith("-") ? String(value).slice(1) : "-" + value; + }, calc = Object.assign(function(x) { + return { + add: function() { + for(var _len6 = arguments.length, operands = Array(_len6), _key6 = 0; _key6 < _len6; _key6++)operands[_key6] = arguments[_key6]; + return calc(_add.apply(void 0, [ + x + ].concat(operands))); + }, + subtract: function() { + for(var _len7 = arguments.length, operands = Array(_len7), _key7 = 0; _key7 < _len7; _key7++)operands[_key7] = arguments[_key7]; + return calc(_subtract.apply(void 0, [ + x + ].concat(operands))); + }, + multiply: function() { + for(var _len8 = arguments.length, operands = Array(_len8), _key8 = 0; _key8 < _len8; _key8++)operands[_key8] = arguments[_key8]; + return calc(_multiply.apply(void 0, [ + x + ].concat(operands))); + }, + divide: function() { + for(var _len9 = arguments.length, operands = Array(_len9), _key9 = 0; _key9 < _len9; _key9++)operands[_key9] = arguments[_key9]; + return calc(_divide.apply(void 0, [ + x + ].concat(operands))); + }, + negate: function() { + return calc(_negate(x)); + }, + toString: function() { + return x.toString(); + } + }; + }, { + add: _add, + subtract: _subtract, + multiply: _multiply, + divide: _divide, + negate: _negate + }); + function chakra_ui_theme_tools_esm_escape(value) { + var value1, replaceValue, valueStr = (value1 = value.toString(), void 0 === replaceValue && (replaceValue = "-"), value1.replace(/\s+/g, replaceValue)); + return valueStr.includes("\\.") ? value : Number.isInteger(parseFloat(value.toString())) ? value : valueStr.replace(".", "\\."); + } + function cssVar(name, options) { + var value, prefix, value1, prefix1, name1, fallback, cssVariable = (value = name, void 0 === (prefix = null == options ? void 0 : options.prefix) && (prefix = ""), "--" + (value1 = value, void 0 === (prefix1 = prefix) && (prefix1 = ""), [ + prefix1, + chakra_ui_theme_tools_esm_escape(value1) + ].filter(Boolean).join("-"))); + return { + variable: cssVariable, + reference: (name1 = cssVariable, fallback = getFallback(null == options ? void 0 : options.fallback), "var(" + chakra_ui_theme_tools_esm_escape(name1) + (fallback ? ", " + fallback : "") + ")") + }; + } + function getFallback(fallback) { + return "string" == typeof fallback ? fallback : null == fallback ? void 0 : fallback.reference; + } + var accordionAnatomy = anatomy("accordion").parts("root", "container", "button", "panel").extend("icon"), alertAnatomy = anatomy("alert").parts("title", "description", "container").extend("icon", "spinner"), avatarAnatomy = anatomy("avatar").parts("label", "badge", "container").extend("excessLabel", "group"), breadcrumbAnatomy = anatomy("breadcrumb").parts("link", "item", "container").extend("separator"); + anatomy("button").parts(); + var checkboxAnatomy = anatomy("checkbox").parts("control", "icon", "container").extend("label"); + anatomy("progress").parts("track", "filledTrack").extend("label"); + var drawerAnatomy = anatomy("drawer").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"), editableAnatomy = anatomy("editable").parts("preview", "input", "textarea"), formAnatomy = anatomy("form").parts("container", "requiredIndicator", "helperText"), formErrorAnatomy = anatomy("formError").parts("text", "icon"), inputAnatomy = anatomy("input").parts("addon", "field", "element"), listAnatomy = anatomy("list").parts("container", "item", "icon"), menuAnatomy = anatomy("menu").parts("button", "list", "item").extend("groupTitle", "command", "divider"), modalAnatomy = anatomy("modal").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"), numberInputAnatomy = anatomy("numberinput").parts("root", "field", "stepperGroup", "stepper"); + anatomy("pininput").parts("field"); + var popoverAnatomy = anatomy("popover").parts("content", "header", "body", "footer").extend("popper", "arrow", "closeButton"), progressAnatomy = anatomy("progress").parts("label", "filledTrack", "track"), radioAnatomy = anatomy("radio").parts("container", "control", "label"), selectAnatomy = anatomy("select").parts("field", "icon"), sliderAnatomy = anatomy("slider").parts("container", "track", "thumb", "filledTrack"), statAnatomy = anatomy("stat").parts("container", "label", "helpText", "number", "icon"), switchAnatomy = anatomy("switch").parts("container", "track", "thumb"), tableAnatomy = anatomy("table").parts("table", "thead", "tbody", "tr", "th", "td", "tfoot", "caption"), tabsAnatomy = anatomy("tabs").parts("root", "tab", "tablist", "tabpanel", "tabpanels", "indicator"), tagAnatomy = anatomy("tag").parts("container", "label", "closeButton"), typography = { + letterSpacings: { + tighter: "-0.05em", + tight: "-0.025em", + normal: "0", + wide: "0.025em", + wider: "0.05em", + widest: "0.1em" + }, + lineHeights: { + normal: "normal", + none: 1, + shorter: 1.25, + short: 1.375, + base: 1.5, + tall: 1.625, + taller: "2", + 3: ".75rem", + 4: "1rem", + 5: "1.25rem", + 6: "1.5rem", + 7: "1.75rem", + 8: "2rem", + 9: "2.25rem", + 10: "2.5rem" + }, + fontWeights: { + hairline: 100, + thin: 200, + light: 300, + normal: 400, + medium: 500, + semibold: 600, + bold: 700, + extrabold: 800, + black: 900 + }, + fonts: { + heading: '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', + body: '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', + mono: 'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace' + }, + fontSizes: { + xs: "0.75rem", + sm: "0.875rem", + md: "1rem", + lg: "1.125rem", + xl: "1.25rem", + "2xl": "1.5rem", + "3xl": "1.875rem", + "4xl": "2.25rem", + "5xl": "3rem", + "6xl": "3.75rem", + "7xl": "4.5rem", + "8xl": "6rem", + "9xl": "8rem" + } + }, lodash_mergewith = __webpack_require__(8554), lodash_mergewith_default = __webpack_require__.n(lodash_mergewith), Accordion = { + parts: accordionAnatomy.keys, + baseStyle: { + root: {}, + container: { + borderTopWidth: "1px", + borderColor: "inherit", + _last: { + borderBottomWidth: "1px" + } + }, + button: { + transitionProperty: "common", + transitionDuration: "normal", + fontSize: "1rem", + _focusVisible: { + boxShadow: "outline" + }, + _hover: { + bg: "blackAlpha.50" + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed" + }, + px: 4, + py: 2 + }, + panel: { + pt: 2, + px: 4, + pb: 5 + }, + icon: { + fontSize: "1.25em" + } + } + }; + function getBg(props) { + var theme = props.theme, c = props.colorScheme, lightBg = getColor(theme, c + ".100", c), darkBg = transparentize(c + ".200", 0.16)(theme); + return mode(lightBg, darkBg)(props); + } + var variantSubtle$1 = function(props) { + var c = props.colorScheme; + return { + container: { + bg: getBg(props) + }, + icon: { + color: mode(c + ".500", c + ".200")(props) + }, + spinner: { + color: mode(c + ".500", c + ".200")(props) + } + }; + }, variantLeftAccent = function(props) { + var c = props.colorScheme; + return { + container: { + paddingStart: 3, + borderStartWidth: "4px", + borderStartColor: mode(c + ".500", c + ".200")(props), + bg: getBg(props) + }, + icon: { + color: mode(c + ".500", c + ".200")(props) + }, + spinner: { + color: mode(c + ".500", c + ".200")(props) + } + }; + }, variantTopAccent = function(props) { + var c = props.colorScheme; + return { + container: { + pt: 2, + borderTopWidth: "4px", + borderTopColor: mode(c + ".500", c + ".200")(props), + bg: getBg(props) + }, + icon: { + color: mode(c + ".500", c + ".200")(props) + }, + spinner: { + color: mode(c + ".500", c + ".200")(props) + } + }; + }, variantSolid$3 = function(props) { + var c = props.colorScheme; + return { + container: { + bg: mode(c + ".500", c + ".200")(props), + color: mode("white", "gray.900")(props) + } + }; + }, Alert = { + parts: alertAnatomy.keys, + baseStyle: { + container: { + px: 4, + py: 3 + }, + title: { + fontWeight: "bold", + lineHeight: 6, + marginEnd: 2 + }, + description: { + lineHeight: 6 + }, + icon: { + flexShrink: 0, + marginEnd: 3, + w: 5, + h: 6 + }, + spinner: { + flexShrink: 0, + marginEnd: 3, + w: 5, + h: 5 + } + }, + variants: { + subtle: variantSubtle$1, + "left-accent": variantLeftAccent, + "top-accent": variantTopAccent, + solid: variantSolid$3 + }, + defaultProps: { + variant: "subtle", + colorScheme: "blue" + } + }, baseStyleContainer$3 = function(props) { + var list, opts, fallback, color, name = props.name, theme = props.theme, bg = name ? (opts = { + string: name + }, fallback = random().toHexString(), !opts || (0, chakra_ui_utils_esm.Qr)(opts) ? fallback : opts.string && opts.colors ? function(str, list) { + var index = 0; + if (0 === str.length) return list[0]; + for(var i = 0; i < str.length; i += 1)index = str.charCodeAt(i) + ((index << 5) - index), index &= index; + return index = (index % list.length + list.length) % list.length, list[index]; + }(opts.string, opts.colors) : opts.string && !opts.colors ? function(str) { + var hash = 0; + if (0 === str.length) return hash.toString(); + for(var i = 0; i < str.length; i += 1)hash = str.charCodeAt(i) + ((hash << 5) - hash), hash &= hash; + for(var color = "#", j = 0; j < 3; j += 1)color += ("00" + (hash >> 8 * j & 255).toString(16)).substr(-2); + return color; + }(opts.string) : opts.colors && !opts.string ? (list = opts.colors)[Math.floor(Math.random() * list.length)] : fallback) : "gray.400", isBgDark = (color = bg, function(theme) { + var color1; + return "dark" === (color1 = color, function(theme) { + var hex = getColor(theme, color1); + return new module_TinyColor(hex).isDark() ? "dark" : "light"; + })(theme); + })(theme), color1 = "white"; + isBgDark || (color1 = "gray.800"); + var borderColor = mode("white", "gray.800")(props); + return { + bg: bg, + color: color1, + borderColor: borderColor, + verticalAlign: "top" + }; + }, baseStyle$B = function(props) { + var props1, props2; + return { + badge: (props1 = props, { + transform: "translate(25%, 25%)", + borderRadius: "full", + border: "0.2em solid", + borderColor: mode("white", "gray.800")(props1) + }), + excessLabel: (props2 = props, { + bg: mode("gray.200", "whiteAlpha.400")(props2) + }), + container: baseStyleContainer$3(props) + }; + }; + function getSize$3(size) { + var themeSize = "100%" !== size ? sizes[size] : void 0; + return { + container: { + width: size, + height: size, + fontSize: "calc(" + (null != themeSize ? themeSize : size) + " / 2.5)" + }, + excessLabel: { + width: size, + height: size + }, + label: { + fontSize: "calc(" + (null != themeSize ? themeSize : size) + " / 2.5)", + lineHeight: "100%" !== size ? null != themeSize ? themeSize : size : void 0 + } + }; + } + var sizes$k = { + "2xs": getSize$3(4), + xs: getSize$3(6), + sm: getSize$3(8), + md: getSize$3(12), + lg: getSize$3(16), + xl: getSize$3(24), + "2xl": getSize$3(32), + full: getSize$3("100%") + }, Avatar = { + parts: avatarAnatomy.keys, + baseStyle: baseStyle$B, + sizes: sizes$k, + defaultProps: { + size: "md" + } + }, Badge = { + baseStyle: { + px: 1, + textTransform: "uppercase", + fontSize: "xs", + borderRadius: "sm", + fontWeight: "bold" + }, + variants: { + solid: function(props) { + var c = props.colorScheme, theme = props.theme, dark = transparentize(c + ".500", 0.6)(theme); + return { + bg: mode(c + ".500", dark)(props), + color: mode("white", "whiteAlpha.800")(props) + }; + }, + subtle: function(props) { + var c = props.colorScheme, theme = props.theme, darkBg = transparentize(c + ".200", 0.16)(theme); + return { + bg: mode(c + ".100", darkBg)(props), + color: mode(c + ".800", c + ".200")(props) + }; + }, + outline: function(props) { + var c = props.colorScheme, theme = props.theme, darkColor = transparentize(c + ".200", 0.8)(theme), lightColor = getColor(theme, c + ".500"), color = mode(lightColor, darkColor)(props); + return { + color: color, + boxShadow: "inset 0 0 0px 1px " + color + }; + } + }, + defaultProps: { + variant: "subtle", + colorScheme: "gray" + } + }, Breadcrumb = { + parts: breadcrumbAnatomy.keys, + baseStyle: { + link: { + transitionProperty: "common", + transitionDuration: "fast", + transitionTimingFunction: "ease-out", + cursor: "pointer", + textDecoration: "none", + outline: "none", + color: "inherit", + _hover: { + textDecoration: "underline" + }, + _focusVisible: { + boxShadow: "outline" + } + } + } + }, variantGhost = function(props) { + var c = props.colorScheme, theme = props.theme; + if ("gray" === c) return { + color: mode("inherit", "whiteAlpha.900")(props), + _hover: { + bg: mode("gray.100", "whiteAlpha.200")(props) + }, + _active: { + bg: mode("gray.200", "whiteAlpha.300")(props) + } + }; + var darkHoverBg = transparentize(c + ".200", 0.12)(theme), darkActiveBg = transparentize(c + ".200", 0.24)(theme); + return { + color: mode(c + ".600", c + ".200")(props), + bg: "transparent", + _hover: { + bg: mode(c + ".50", darkHoverBg)(props) + }, + _active: { + bg: mode(c + ".100", darkActiveBg)(props) + } + }; + }, variantOutline$1 = function(props) { + var c = props.colorScheme, borderColor = mode("gray.200", "whiteAlpha.300")(props); + return sizes_501602a9_esm_extends({ + border: "1px solid", + borderColor: "gray" === c ? borderColor : "currentColor", + ".chakra-button__group[data-attached] > &:not(:last-of-type)": { + marginEnd: "-1px" + } + }, variantGhost(props)); + }, accessibleColorMap = { + yellow: { + bg: "yellow.400", + color: "black", + hoverBg: "yellow.500", + activeBg: "yellow.600" + }, + cyan: { + bg: "cyan.400", + color: "black", + hoverBg: "cyan.500", + activeBg: "cyan.600" + } + }, variantSolid$1 = function(props) { + var _accessibleColorMap$c, c = props.colorScheme; + if ("gray" === c) { + var _bg = mode("gray.100", "whiteAlpha.200")(props); + return { + bg: _bg, + _hover: { + bg: mode("gray.200", "whiteAlpha.300")(props), + _disabled: { + bg: _bg + } + }, + _active: { + bg: mode("gray.300", "whiteAlpha.400")(props) + } + }; + } + var _ref = null != (_accessibleColorMap$c = accessibleColorMap[c]) ? _accessibleColorMap$c : {}, _ref$bg = _ref.bg, _ref$color = _ref.color, _ref$hoverBg = _ref.hoverBg, _ref$activeBg = _ref.activeBg, background = mode(void 0 === _ref$bg ? c + ".500" : _ref$bg, c + ".200")(props); + return { + bg: background, + color: mode(void 0 === _ref$color ? "white" : _ref$color, "gray.800")(props), + _hover: { + bg: mode(void 0 === _ref$hoverBg ? c + ".600" : _ref$hoverBg, c + ".300")(props), + _disabled: { + bg: background + } + }, + _active: { + bg: mode(void 0 === _ref$activeBg ? c + ".700" : _ref$activeBg, c + ".400")(props) + } + }; + }, variantLink = function(props) { + var c = props.colorScheme; + return { + padding: 0, + height: "auto", + lineHeight: "normal", + verticalAlign: "baseline", + color: mode(c + ".500", c + ".200")(props), + _hover: { + textDecoration: "underline", + _disabled: { + textDecoration: "none" + } + }, + _active: { + color: mode(c + ".700", c + ".500")(props) + } + }; + }, baseStyleControl$1 = function(props) { + var c = props.colorScheme; + return { + w: "100%", + transitionProperty: "box-shadow", + transitionDuration: "normal", + border: "2px solid", + borderRadius: "sm", + borderColor: "inherit", + color: "white", + _checked: { + bg: mode(c + ".500", c + ".200")(props), + borderColor: mode(c + ".500", c + ".200")(props), + color: mode("white", "gray.900")(props), + _hover: { + bg: mode(c + ".600", c + ".300")(props), + borderColor: mode(c + ".600", c + ".300")(props) + }, + _disabled: { + borderColor: mode("gray.200", "transparent")(props), + bg: mode("gray.200", "whiteAlpha.300")(props), + color: mode("gray.500", "whiteAlpha.500")(props) + } + }, + _indeterminate: { + bg: mode(c + ".500", c + ".200")(props), + borderColor: mode(c + ".500", c + ".200")(props), + color: mode("white", "gray.900")(props) + }, + _disabled: { + bg: mode("gray.100", "whiteAlpha.100")(props), + borderColor: mode("gray.100", "transparent")(props) + }, + _focusVisible: { + boxShadow: "outline" + }, + _invalid: { + borderColor: mode("red.500", "red.300")(props) + } + }; + }, baseStyleContainer$2 = { + _disabled: { + cursor: "not-allowed" + } + }, baseStyleLabel$3 = { + userSelect: "none", + _disabled: { + opacity: 0.4 + } + }, baseStyleIcon$4 = { + transitionProperty: "transform", + transitionDuration: "normal" + }, baseStyle$x = function(props) { + return { + icon: baseStyleIcon$4, + container: baseStyleContainer$2, + control: baseStyleControl$1(props), + label: baseStyleLabel$3 + }; + }, Checkbox = { + parts: checkboxAnatomy.keys, + baseStyle: baseStyle$x, + sizes: { + sm: { + control: { + h: 3, + w: 3 + }, + label: { + fontSize: "sm" + }, + icon: { + fontSize: "0.45rem" + } + }, + md: { + control: { + w: 4, + h: 4 + }, + label: { + fontSize: "md" + }, + icon: { + fontSize: "0.625rem" + } + }, + lg: { + control: { + w: 5, + h: 5 + }, + label: { + fontSize: "lg" + }, + icon: { + fontSize: "0.625rem" + } + } + }, + defaultProps: { + size: "md", + colorScheme: "blue" + } + }, $size$1 = cssVar("close-button-size"), baseStyle$w = function(props) { + var hoverBg = mode("blackAlpha.100", "whiteAlpha.100")(props), activeBg = mode("blackAlpha.200", "whiteAlpha.200")(props); + return { + w: [ + $size$1.reference + ], + h: [ + $size$1.reference + ], + borderRadius: "md", + transitionProperty: "common", + transitionDuration: "normal", + _disabled: { + opacity: 0.4, + cursor: "not-allowed", + boxShadow: "none" + }, + _hover: { + bg: hoverBg + }, + _active: { + bg: activeBg + }, + _focusVisible: { + boxShadow: "outline" + } + }; + }, sizes$h = { + lg: ((_lg$1 = {})[$size$1.variable] = "40px", _lg$1.fontSize = "16px", _lg$1), + md: ((_md$1 = {})[$size$1.variable] = "32px", _md$1.fontSize = "12px", _md$1), + sm: ((_sm$1 = {})[$size$1.variable] = "24px", _sm$1.fontSize = "10px", _sm$1) + }, variants$8 = Badge.variants, defaultProps$h = Badge.defaultProps; + function getSize$2(value) { + return "full" === value ? { + dialog: { + maxW: "100vw", + h: "100vh" + } + } : { + dialog: { + maxW: value + } + }; + } + var baseStyleOverlay$1 = { + bg: "blackAlpha.600", + zIndex: "overlay" + }, baseStyleDialogContainer$1 = { + display: "flex", + zIndex: "modal", + justifyContent: "center" + }, baseStyleHeader$2 = { + px: 6, + py: 4, + fontSize: "xl", + fontWeight: "semibold" + }, baseStyleCloseButton$3 = { + position: "absolute", + top: 2, + insetEnd: 3 + }, baseStyleBody$2 = { + px: 6, + py: 2, + flex: 1, + overflow: "auto" + }, baseStyleFooter$2 = { + px: 6, + py: 4 + }, baseStyle$s = function(props) { + var props1; + return { + overlay: baseStyleOverlay$1, + dialogContainer: baseStyleDialogContainer$1, + dialog: sizes_501602a9_esm_extends({}, (props1 = props).isFullHeight && { + height: "100vh" + }, { + zIndex: "modal", + maxH: "100vh", + bg: mode("white", "gray.700")(props1), + color: "inherit", + boxShadow: mode("lg", "dark-lg")(props1) + }), + header: baseStyleHeader$2, + closeButton: baseStyleCloseButton$3, + body: baseStyleBody$2, + footer: baseStyleFooter$2 + }; + }, sizes$g = { + xs: getSize$2("xs"), + sm: getSize$2("md"), + md: getSize$2("lg"), + lg: getSize$2("2xl"), + xl: getSize$2("4xl"), + full: getSize$2("full") + }, Drawer = { + parts: drawerAnatomy.keys, + baseStyle: baseStyle$s, + sizes: sizes$g, + defaultProps: { + size: "xs" + } + }, Editable = { + parts: editableAnatomy.keys, + baseStyle: { + preview: { + borderRadius: "md", + py: "3px", + transitionProperty: "common", + transitionDuration: "normal" + }, + input: { + borderRadius: "md", + py: "3px", + transitionProperty: "common", + transitionDuration: "normal", + width: "full", + _focusVisible: { + boxShadow: "outline" + }, + _placeholder: { + opacity: 0.6 + } + }, + textarea: { + borderRadius: "md", + py: "3px", + transitionProperty: "common", + transitionDuration: "normal", + width: "full", + _focusVisible: { + boxShadow: "outline" + }, + _placeholder: { + opacity: 0.6 + } + } + } + }, baseStyle$q = function(props) { + var props1, props2; + return { + container: { + width: "100%", + position: "relative" + }, + requiredIndicator: (props1 = props, { + marginStart: 1, + color: mode("red.500", "red.300")(props1) + }), + helperText: (props2 = props, { + mt: 2, + color: mode("gray.500", "whiteAlpha.600")(props2), + lineHeight: "normal", + fontSize: "sm" + }) + }; + }, Form = { + parts: formAnatomy.keys, + baseStyle: baseStyle$q + }, baseStyle$p = function(props) { + var props1, props2; + return { + text: (props1 = props, { + color: mode("red.500", "red.300")(props1), + mt: 2, + fontSize: "sm", + lineHeight: "normal" + }), + icon: (props2 = props, { + marginEnd: "0.5em", + color: mode("red.500", "red.300")(props2) + }) + }; + }, FormError = { + parts: formErrorAnatomy.keys, + baseStyle: baseStyle$p + }, size = { + lg: { + fontSize: "lg", + px: 4, + h: 12, + borderRadius: "md" + }, + md: { + fontSize: "md", + px: 4, + h: 10, + borderRadius: "md" + }, + sm: { + fontSize: "sm", + px: 3, + h: 8, + borderRadius: "sm" + }, + xs: { + fontSize: "xs", + px: 2, + h: 6, + borderRadius: "sm" + } + }, sizes$e = { + lg: { + field: size.lg, + addon: size.lg + }, + md: { + field: size.md, + addon: size.md + }, + sm: { + field: size.sm, + addon: size.sm + }, + xs: { + field: size.xs, + addon: size.xs + } + }; + function getDefaults(props) { + var fc = props.focusBorderColor, ec = props.errorBorderColor; + return { + focusBorderColor: fc || mode("blue.500", "blue.300")(props), + errorBorderColor: ec || mode("red.500", "red.300")(props) + }; + } + var variantOutline = function(props) { + var theme = props.theme, _getDefaults = getDefaults(props), fc = _getDefaults.focusBorderColor, ec = _getDefaults.errorBorderColor; + return { + field: { + border: "1px solid", + borderColor: "inherit", + bg: "inherit", + _hover: { + borderColor: mode("gray.300", "whiteAlpha.400")(props) + }, + _readOnly: { + boxShadow: "none !important", + userSelect: "all" + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed" + }, + _invalid: { + borderColor: getColor(theme, ec), + boxShadow: "0 0 0 1px " + getColor(theme, ec) + }, + _focusVisible: { + zIndex: 1, + borderColor: getColor(theme, fc), + boxShadow: "0 0 0 1px " + getColor(theme, fc) + } + }, + addon: { + border: "1px solid", + borderColor: mode("inherit", "whiteAlpha.50")(props), + bg: mode("gray.100", "whiteAlpha.300")(props) + } + }; + }, variantFilled = function(props) { + var theme = props.theme, _getDefaults2 = getDefaults(props), fc = _getDefaults2.focusBorderColor, ec = _getDefaults2.errorBorderColor; + return { + field: { + border: "2px solid", + borderColor: "transparent", + bg: mode("gray.100", "whiteAlpha.50")(props), + _hover: { + bg: mode("gray.200", "whiteAlpha.100")(props) + }, + _readOnly: { + boxShadow: "none !important", + userSelect: "all" + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed" + }, + _invalid: { + borderColor: getColor(theme, ec) + }, + _focusVisible: { + bg: "transparent", + borderColor: getColor(theme, fc) + } + }, + addon: { + border: "2px solid", + borderColor: "transparent", + bg: mode("gray.100", "whiteAlpha.50")(props) + } + }; + }, variantFlushed = function(props) { + var theme = props.theme, _getDefaults3 = getDefaults(props), fc = _getDefaults3.focusBorderColor, ec = _getDefaults3.errorBorderColor; + return { + field: { + borderBottom: "1px solid", + borderColor: "inherit", + borderRadius: 0, + px: 0, + bg: "transparent", + _readOnly: { + boxShadow: "none !important", + userSelect: "all" + }, + _invalid: { + borderColor: getColor(theme, ec), + boxShadow: "0px 1px 0px 0px " + getColor(theme, ec) + }, + _focusVisible: { + borderColor: getColor(theme, fc), + boxShadow: "0px 1px 0px 0px " + getColor(theme, fc) + } + }, + addon: { + borderBottom: "2px solid", + borderColor: "inherit", + borderRadius: 0, + px: 0, + bg: "transparent" + } + }; + }, Input = { + parts: inputAnatomy.keys, + baseStyle: { + field: { + width: "100%", + minWidth: 0, + outline: 0, + position: "relative", + appearance: "none", + transitionProperty: "common", + transitionDuration: "normal" + } + }, + sizes: sizes$e, + variants: { + outline: variantOutline, + filled: variantFilled, + flushed: variantFlushed, + unstyled: { + field: { + bg: "transparent", + px: 0, + height: "auto" + }, + addon: { + bg: "transparent", + px: 0, + height: "auto" + } + } + }, + defaultProps: { + size: "md", + variant: "outline" + } + }, baseStyle$l = function(props) { + return { + bg: mode("gray.100", "whiteAlpha")(props), + borderRadius: "md", + borderWidth: "1px", + borderBottomWidth: "3px", + fontSize: "0.8em", + fontWeight: "bold", + lineHeight: "normal", + px: "0.4em", + whiteSpace: "nowrap" + }; + }, List = { + parts: listAnatomy.keys, + baseStyle: { + container: {}, + item: {}, + icon: { + marginEnd: "0.5rem", + display: "inline", + verticalAlign: "text-bottom" + } + } + }, baseStyleGroupTitle = { + mx: 4, + my: 2, + fontWeight: "semibold", + fontSize: "sm" + }, baseStyleCommand = { + opacity: 0.6 + }, baseStyleDivider = { + border: 0, + borderBottom: "1px solid", + borderColor: "inherit", + my: "0.5rem", + opacity: 0.6 + }, baseStyleButton = { + transitionProperty: "common", + transitionDuration: "normal" + }, baseStyle$i = function(props) { + var props1, props2; + return { + button: baseStyleButton, + list: (props1 = props, { + bg: mode("#fff", "gray.700")(props1), + boxShadow: mode("sm", "dark-lg")(props1), + color: "inherit", + minW: "3xs", + py: "2", + zIndex: 1, + borderRadius: "md", + borderWidth: "1px" + }), + item: (props2 = props, { + py: "0.4rem", + px: "0.8rem", + transitionProperty: "background", + transitionDuration: "ultra-fast", + transitionTimingFunction: "ease-in", + _focus: { + bg: mode("gray.100", "whiteAlpha.100")(props2) + }, + _active: { + bg: mode("gray.200", "whiteAlpha.200")(props2) + }, + _expanded: { + bg: mode("gray.100", "whiteAlpha.100")(props2) + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed" + } + }), + groupTitle: baseStyleGroupTitle, + command: baseStyleCommand, + divider: baseStyleDivider + }; + }, Menu = { + parts: menuAnatomy.keys, + baseStyle: baseStyle$i + }, baseStyleOverlay = { + bg: "blackAlpha.600", + zIndex: "modal" + }, baseStyleDialogContainer = function(props) { + var isCentered = props.isCentered, scrollBehavior = props.scrollBehavior; + return { + display: "flex", + zIndex: "modal", + justifyContent: "center", + alignItems: isCentered ? "center" : "flex-start", + overflow: "inside" === scrollBehavior ? "hidden" : "auto" + }; + }, baseStyleDialog = function(props) { + var scrollBehavior = props.scrollBehavior; + return { + borderRadius: "md", + bg: mode("white", "gray.700")(props), + color: "inherit", + my: "3.75rem", + zIndex: "modal", + maxH: "inside" === scrollBehavior ? "calc(100% - 7.5rem)" : void 0, + boxShadow: mode("lg", "dark-lg")(props) + }; + }, baseStyleHeader$1 = { + px: 6, + py: 4, + fontSize: "xl", + fontWeight: "semibold" + }, baseStyleCloseButton$2 = { + position: "absolute", + top: 2, + insetEnd: 3 + }, baseStyleFooter$1 = { + px: 6, + py: 4 + }, baseStyle$h = function(props) { + return { + overlay: baseStyleOverlay, + dialogContainer: baseStyleDialogContainer(props), + dialog: baseStyleDialog(props), + header: baseStyleHeader$1, + closeButton: baseStyleCloseButton$2, + body: { + px: 6, + py: 2, + flex: 1, + overflow: "inside" === props.scrollBehavior ? "auto" : void 0 + }, + footer: baseStyleFooter$1 + }; + }; + function getSize$1(value) { + return "full" === value ? { + dialog: { + maxW: "100vw", + minH: "100vh", + "@supports(min-height: -webkit-fill-available)": { + minH: "-webkit-fill-available" + }, + my: 0 + } + } : { + dialog: { + maxW: value + } + }; + } + var sizes$d = { + xs: getSize$1("xs"), + sm: getSize$1("sm"), + md: getSize$1("md"), + lg: getSize$1("lg"), + xl: getSize$1("xl"), + "2xl": getSize$1("2xl"), + "3xl": getSize$1("3xl"), + "4xl": getSize$1("4xl"), + "5xl": getSize$1("5xl"), + "6xl": getSize$1("6xl"), + full: getSize$1("full") + }, Modal = { + parts: modalAnatomy.keys, + baseStyle: baseStyle$h, + sizes: sizes$d, + defaultProps: { + size: "md" + } + }, variants$5 = Input.variants, defaultProps$b = Input.defaultProps, $stepperWidth = cssVar("number-input-stepper-width"), $inputPadding = cssVar("number-input-input-padding"), inputPaddingValue = calc($stepperWidth).add("0.5rem").toString(), baseStyleRoot$1 = ((_baseStyleRoot = {})[$stepperWidth.variable] = "24px", _baseStyleRoot[$inputPadding.variable] = inputPaddingValue, _baseStyleRoot), baseStyleField$1 = null != (_Input$baseStyle$fiel = null == (_Input$baseStyle = Input.baseStyle) ? void 0 : _Input$baseStyle.field) ? _Input$baseStyle$fiel : {}, baseStyleStepperGroup = { + width: [ + $stepperWidth.reference + ] + }, baseStyle$g = function(props) { + var props1; + return { + root: baseStyleRoot$1, + field: baseStyleField$1, + stepperGroup: baseStyleStepperGroup, + stepper: (props1 = props, { + borderStart: "1px solid", + borderStartColor: mode("inherit", "whiteAlpha.300")(props1), + color: mode("inherit", "whiteAlpha.800")(props1), + _active: { + bg: mode("gray.200", "whiteAlpha.300")(props1) + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed" + } + }) + }; + }; + function getSize(size) { + var _sizeStyle$field$font, _sizeStyle$field, sizeStyle = Input.sizes[size], radius = { + lg: "md", + md: "md", + sm: "sm", + xs: "sm" + }, _fontSize = null != (_sizeStyle$field$font = null == (_sizeStyle$field = sizeStyle.field) ? void 0 : _sizeStyle$field.fontSize) ? _sizeStyle$field$font : "md", fontSize = typography.fontSizes[_fontSize]; + return { + field: sizes_501602a9_esm_extends({}, sizeStyle.field, { + paddingInlineEnd: $inputPadding.reference, + verticalAlign: "top" + }), + stepper: { + fontSize: calc(fontSize).multiply(0.75).toString(), + _first: { + borderTopEndRadius: radius[size] + }, + _last: { + borderBottomEndRadius: radius[size], + mt: "-1px", + borderTopWidth: 1 + } + } + }; + } + var config, sizes$c = { + xs: getSize("xs"), + sm: getSize("sm"), + md: getSize("md"), + lg: getSize("lg") + }, NumberInput = { + parts: numberInputAnatomy.keys, + baseStyle: baseStyle$g, + sizes: sizes$c, + variants: variants$5, + defaultProps: defaultProps$b + }, baseStyle$f = sizes_501602a9_esm_extends({}, Input.baseStyle.field, { + textAlign: "center" + }), variants$4 = { + outline: function(props) { + var _Input$variants$outli; + return null != (_Input$variants$outli = Input.variants.outline(props).field) ? _Input$variants$outli : {}; + }, + flushed: function(props) { + var _Input$variants$flush; + return null != (_Input$variants$flush = Input.variants.flushed(props).field) ? _Input$variants$flush : {}; + }, + filled: function(props) { + var _Input$variants$fille; + return null != (_Input$variants$fille = Input.variants.filled(props).field) ? _Input$variants$fille : {}; + }, + unstyled: null != (_Input$variants$unsty$1 = Input.variants.unstyled.field) ? _Input$variants$unsty$1 : {} + }, defaultProps$a = Input.defaultProps, $popperBg = cssVar("popper-bg"), $arrowBg$1 = cssVar("popper-arrow-bg"), $arrowShadowColor = cssVar("popper-arrow-shadow-color"), baseStylePopper = { + zIndex: 10 + }, baseStyleContent = function(props) { + var _ref, bg = mode("white", "gray.700")(props), shadowColor = mode("gray.200", "whiteAlpha.300")(props); + return (_ref = {})[$popperBg.variable] = "colors." + bg, _ref.bg = $popperBg.reference, _ref[$arrowBg$1.variable] = $popperBg.reference, _ref[$arrowShadowColor.variable] = "colors." + shadowColor, _ref.width = "xs", _ref.border = "1px solid", _ref.borderColor = "inherit", _ref.borderRadius = "md", _ref.boxShadow = "sm", _ref.zIndex = "inherit", _ref._focusVisible = { + outline: 0, + boxShadow: "outline" + }, _ref; + }, baseStyleHeader = { + px: 3, + py: 2, + borderBottomWidth: "1px" + }, baseStyleBody = { + px: 3, + py: 2 + }, baseStyleFooter = { + px: 3, + py: 2, + borderTopWidth: "1px" + }, baseStyleCloseButton$1 = { + position: "absolute", + borderRadius: "md", + top: 1, + insetEnd: 2, + padding: 2 + }, baseStyle$e = function(props) { + return { + popper: baseStylePopper, + content: baseStyleContent(props), + header: baseStyleHeader, + body: baseStyleBody, + footer: baseStyleFooter, + arrow: {}, + closeButton: baseStyleCloseButton$1 + }; + }, Popover = { + parts: popoverAnatomy.keys, + baseStyle: baseStyle$e + }, baseStyleLabel$2 = { + lineHeight: "1", + fontSize: "0.25em", + fontWeight: "bold", + color: "white" + }, baseStyleFilledTrack$1 = function(props) { + var props1, c, t, isIndeterminate, hasStripe, stripeStyle, bgColor, gradient; + return sizes_501602a9_esm_extends({ + transitionProperty: "common", + transitionDuration: "slow" + }, (c = (props1 = props).colorScheme, t = props1.theme, isIndeterminate = props1.isIndeterminate, hasStripe = props1.hasStripe, stripeStyle = mode(generateStripe(), generateStripe("1rem", "rgba(0,0,0,0.1)"))(props1), bgColor = mode(c + ".500", c + ".200")(props1), gradient = "linear-gradient(\n to right,\n transparent 0%,\n " + getColor(t, bgColor) + " 50%,\n transparent 100%\n )", sizes_501602a9_esm_extends({}, !isIndeterminate && hasStripe && stripeStyle, isIndeterminate ? { + bgImage: gradient + } : { + bgColor: bgColor + }))); + }, baseStyle$d = function(props) { + var props1; + return { + label: baseStyleLabel$2, + filledTrack: baseStyleFilledTrack$1(props), + track: (props1 = props, { + bg: mode("gray.100", "whiteAlpha.300")(props1) + }) + }; + }, Progress = { + parts: progressAnatomy.keys, + sizes: { + xs: { + track: { + h: "0.25rem" + } + }, + sm: { + track: { + h: "0.5rem" + } + }, + md: { + track: { + h: "0.75rem" + } + }, + lg: { + track: { + h: "1rem" + } + } + }, + baseStyle: baseStyle$d, + defaultProps: { + size: "md", + colorScheme: "blue" + } + }, baseStyleControl = function(props) { + var _Checkbox$baseStyle$c = Checkbox.baseStyle(props).control, control = void 0 === _Checkbox$baseStyle$c ? {} : _Checkbox$baseStyle$c; + return sizes_501602a9_esm_extends({}, control, { + borderRadius: "full", + _checked: sizes_501602a9_esm_extends({}, control["_checked"], { + _before: { + content: '""', + display: "inline-block", + pos: "relative", + w: "50%", + h: "50%", + borderRadius: "50%", + bg: "currentColor" + } + }) + }); + }, baseStyle$c = function(props) { + return { + label: Checkbox.baseStyle(props).label, + container: Checkbox.baseStyle(props).container, + control: baseStyleControl(props) + }; + }, Radio = { + parts: radioAnatomy.keys, + baseStyle: baseStyle$c, + sizes: { + md: { + control: { + w: 4, + h: 4 + }, + label: { + fontSize: "md" + } + }, + lg: { + control: { + w: 5, + h: 5 + }, + label: { + fontSize: "lg" + } + }, + sm: { + control: { + width: 3, + height: 3 + }, + label: { + fontSize: "sm" + } + } + }, + defaultProps: { + size: "md", + colorScheme: "blue" + } + }, baseStyleIcon$1 = { + width: "1.5rem", + height: "100%", + insetEnd: "0.5rem", + position: "relative", + color: "currentColor", + fontSize: "1.25rem", + _disabled: { + opacity: 0.5 + } + }, baseStyle$b = function(props) { + var props1; + return { + field: (props1 = props, sizes_501602a9_esm_extends({}, Input.baseStyle.field, { + bg: mode("white", "gray.700")(props1), + appearance: "none", + paddingBottom: "1px", + lineHeight: "normal", + "> option, > optgroup": { + bg: mode("white", "gray.700")(props1) + } + })), + icon: baseStyleIcon$1 + }; + }, iconSpacing = { + paddingInlineEnd: "2rem" + }, sizes$8 = lodash_mergewith_default()({}, Input.sizes, { + lg: { + field: iconSpacing + }, + md: { + field: iconSpacing + }, + sm: { + field: iconSpacing + }, + xs: { + field: iconSpacing, + icon: { + insetEnd: "0.25rem" + } + } + }), Select = { + parts: selectAnatomy.keys, + baseStyle: baseStyle$b, + sizes: sizes$8, + variants: Input.variants, + defaultProps: Input.defaultProps + }, baseStyle$a = function(props) { + var startColor, endColor, defaultStartColor = mode("gray.100", "gray.800")(props), defaultEndColor = mode("gray.400", "gray.600")(props), _props$startColor = props.startColor, _props$endColor = props.endColor, speed = props.speed, theme = props.theme, start = getColor(theme, void 0 === _props$startColor ? defaultStartColor : _props$startColor), end = getColor(theme, void 0 === _props$endColor ? defaultEndColor : _props$endColor); + return { + opacity: 0.7, + borderRadius: "2px", + borderColor: start, + background: end, + animation: speed + "s linear infinite alternate " + (startColor = start, endColor = end, (0, emotion_react_browser_esm.F4)({ + from: { + borderColor: startColor, + background: startColor + }, + to: { + borderColor: endColor, + background: endColor + } + })) + }; + }, baseStyle$9 = function(props) { + return { + borderRadius: "md", + fontWeight: "semibold", + _focusVisible: { + boxShadow: "outline", + padding: "1rem", + position: "fixed", + top: "1.5rem", + insetStart: "1.5rem", + bg: mode("white", "gray.700")(props) + } + }; + }, baseStyleFilledTrack = function(props) { + var c = props.colorScheme; + return { + width: "inherit", + height: "inherit", + bg: mode(c + ".500", c + ".200")(props) + }; + }, baseStyle$8 = function(props) { + var props1; + return { + container: sizes_501602a9_esm_extends({ + display: "inline-block", + position: "relative", + cursor: "pointer", + _disabled: { + opacity: 0.6, + cursor: "default", + pointerEvents: "none" + } + }, orient({ + orientation: props.orientation, + vertical: { + h: "100%" + }, + horizontal: { + w: "100%" + } + })), + track: (props1 = props, { + overflow: "hidden", + borderRadius: "sm", + bg: mode("gray.200", "whiteAlpha.200")(props1), + _disabled: { + bg: mode("gray.300", "whiteAlpha.300")(props1) + } + }), + thumb: sizes_501602a9_esm_extends({ + display: "flex", + alignItems: "center", + justifyContent: "center", + position: "absolute", + outline: 0, + zIndex: 1, + borderRadius: "full", + bg: "white", + boxShadow: "base", + border: "1px solid", + borderColor: "transparent", + transitionProperty: "transform", + transitionDuration: "normal", + _focusVisible: { + boxShadow: "outline" + }, + _disabled: { + bg: "gray.300" + } + }, orient({ + orientation: props.orientation, + vertical: { + left: "50%", + transform: "translateX(-50%)", + _active: { + transform: "translateX(-50%) scale(1.15)" + } + }, + horizontal: { + top: "50%", + transform: "translateY(-50%)", + _active: { + transform: "translateY(-50%) scale(1.15)" + } + } + })), + filledTrack: baseStyleFilledTrack(props) + }; + }, sizeLg = function(props) { + return { + thumb: { + w: "16px", + h: "16px" + }, + track: orient({ + orientation: props.orientation, + horizontal: { + h: "4px" + }, + vertical: { + w: "4px" + } + }) + }; + }, sizeMd = function(props) { + return { + thumb: { + w: "14px", + h: "14px" + }, + track: orient({ + orientation: props.orientation, + horizontal: { + h: "4px" + }, + vertical: { + w: "4px" + } + }) + }; + }, sizeSm = function(props) { + return { + thumb: { + w: "10px", + h: "10px" + }, + track: orient({ + orientation: props.orientation, + horizontal: { + h: "2px" + }, + vertical: { + w: "2px" + } + }) + }; + }, Slider = { + parts: sliderAnatomy.keys, + sizes: { + lg: sizeLg, + md: sizeMd, + sm: sizeSm + }, + baseStyle: baseStyle$8, + defaultProps: { + size: "md", + colorScheme: "blue" + } + }, $size = cssVar("spinner-size"), baseStyle$7 = { + width: [ + $size.reference + ], + height: [ + $size.reference + ] + }, sizes$6 = { + xs: ((_xs = {})[$size.variable] = "0.75rem", _xs), + sm: ((_sm = {})[$size.variable] = "1rem", _sm), + md: ((_md = {})[$size.variable] = "1.5rem", _md), + lg: ((_lg = {})[$size.variable] = "2rem", _lg), + xl: ((_xl = {})[$size.variable] = "3rem", _xl) + }, Stat = { + parts: statAnatomy.keys, + baseStyle: { + container: {}, + label: { + fontWeight: "medium" + }, + helpText: { + opacity: 0.8, + marginBottom: 2 + }, + number: { + verticalAlign: "baseline", + fontWeight: "semibold" + }, + icon: { + marginEnd: 1, + w: "14px", + h: "14px", + verticalAlign: "middle" + } + }, + sizes: { + md: { + label: { + fontSize: "sm" + }, + helpText: { + fontSize: "sm" + }, + number: { + fontSize: "2xl" + } + } + }, + defaultProps: { + size: "md" + } + }, $width = cssVar("switch-track-width"), $height = cssVar("switch-track-height"), $diff = cssVar("switch-track-diff"), diffValue = calc.subtract($width, $height), $translateX = cssVar("switch-thumb-x"), baseStyleTrack = function(props) { + var c = props.colorScheme; + return { + borderRadius: "full", + p: "2px", + width: [ + $width.reference + ], + height: [ + $height.reference + ], + transitionProperty: "common", + transitionDuration: "fast", + bg: mode("gray.300", "whiteAlpha.400")(props), + _focusVisible: { + boxShadow: "outline" + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed" + }, + _checked: { + bg: mode(c + ".500", c + ".200")(props) + } + }; + }, baseStyleThumb = { + bg: "white", + transitionProperty: "transform", + transitionDuration: "normal", + borderRadius: "inherit", + width: [ + $height.reference + ], + height: [ + $height.reference + ], + _checked: { + transform: "translateX(" + $translateX.reference + ")" + } + }, baseStyle$5 = function(props) { + var _rtl, _container; + return { + container: ((_container = {})[$diff.variable] = diffValue, _container[$translateX.variable] = $diff.reference, _container._rtl = ((_rtl = {})[$translateX.variable] = calc($diff).negate().toString(), _rtl), _container), + track: baseStyleTrack(props), + thumb: baseStyleThumb + }; + }, sizes$4 = { + sm: { + container: ((_container2 = {})[$width.variable] = "1.375rem", _container2[$height.variable] = "0.75rem", _container2) + }, + md: { + container: ((_container3 = {})[$width.variable] = "1.875rem", _container3[$height.variable] = "1rem", _container3) + }, + lg: { + container: ((_container4 = {})[$width.variable] = "2.875rem", _container4[$height.variable] = "1.5rem", _container4) + } + }, Switch = { + parts: switchAnatomy.keys, + baseStyle: baseStyle$5, + sizes: sizes$4, + defaultProps: { + size: "md", + colorScheme: "blue" + } + }, numericStyles = { + "&[data-is-numeric=true]": { + textAlign: "end" + } + }, variantSimple = function(props) { + var c = props.colorScheme; + return { + th: sizes_501602a9_esm_extends({ + color: mode("gray.600", "gray.400")(props), + borderBottom: "1px", + borderColor: mode(c + ".100", c + ".700")(props) + }, numericStyles), + td: sizes_501602a9_esm_extends({ + borderBottom: "1px", + borderColor: mode(c + ".100", c + ".700")(props) + }, numericStyles), + caption: { + color: mode("gray.600", "gray.100")(props) + }, + tfoot: { + tr: { + "&:last-of-type": { + th: { + borderBottomWidth: 0 + } + } + } + } + }; + }, variantStripe = function(props) { + var c = props.colorScheme; + return { + th: sizes_501602a9_esm_extends({ + color: mode("gray.600", "gray.400")(props), + borderBottom: "1px", + borderColor: mode(c + ".100", c + ".700")(props) + }, numericStyles), + td: sizes_501602a9_esm_extends({ + borderBottom: "1px", + borderColor: mode(c + ".100", c + ".700")(props) + }, numericStyles), + caption: { + color: mode("gray.600", "gray.100")(props) + }, + tbody: { + tr: { + "&:nth-of-type(odd)": { + "th, td": { + borderBottomWidth: "1px", + borderColor: mode(c + ".100", c + ".700")(props) + }, + td: { + background: mode(c + ".100", c + ".700")(props) + } + } + } + }, + tfoot: { + tr: { + "&:last-of-type": { + th: { + borderBottomWidth: 0 + } + } + } + } + }; + }, Table = { + parts: tableAnatomy.keys, + baseStyle: { + table: { + fontVariantNumeric: "lining-nums tabular-nums", + borderCollapse: "collapse", + width: "full" + }, + th: { + fontFamily: "heading", + fontWeight: "bold", + textTransform: "uppercase", + letterSpacing: "wider", + textAlign: "start" + }, + td: { + textAlign: "start" + }, + caption: { + mt: 4, + fontFamily: "heading", + textAlign: "center", + fontWeight: "medium" + } + }, + variants: { + simple: variantSimple, + striped: variantStripe, + unstyled: {} + }, + sizes: { + sm: { + th: { + px: "4", + py: "1", + lineHeight: "4", + fontSize: "xs" + }, + td: { + px: "4", + py: "2", + fontSize: "sm", + lineHeight: "4" + }, + caption: { + px: "4", + py: "2", + fontSize: "xs" + } + }, + md: { + th: { + px: "6", + py: "3", + lineHeight: "4", + fontSize: "xs" + }, + td: { + px: "6", + py: "4", + lineHeight: "5" + }, + caption: { + px: "6", + py: "2", + fontSize: "sm" + } + }, + lg: { + th: { + px: "8", + py: "4", + lineHeight: "5", + fontSize: "sm" + }, + td: { + px: "8", + py: "5", + lineHeight: "6" + }, + caption: { + px: "6", + py: "2", + fontSize: "md" + } + } + }, + defaultProps: { + variant: "simple", + size: "md", + colorScheme: "gray" + } + }, baseStyleTablist = function(props) { + var _props$align = props.align; + return { + justifyContent: ({ + end: "flex-end", + center: "center", + start: "flex-start" + })[void 0 === _props$align ? "start" : _props$align], + flexDirection: "vertical" === props.orientation ? "column" : "row" + }; + }, baseStyleTabpanel = { + p: 4 + }, baseStyle$3 = function(props) { + return { + root: { + display: "vertical" === props.orientation ? "flex" : "block" + }, + tab: { + flex: props.isFitted ? 1 : void 0, + transitionProperty: "common", + transitionDuration: "normal", + _focusVisible: { + zIndex: 1, + boxShadow: "outline" + }, + _disabled: { + cursor: "not-allowed", + opacity: 0.4 + } + }, + tablist: baseStyleTablist(props), + tabpanel: baseStyleTabpanel + }; + }, variantLine = function(props) { + var _tablist, _tab, c = props.colorScheme, orientation = props.orientation, borderProp = "vertical" === orientation ? "borderStart" : "borderBottom", marginProp = "vertical" === orientation ? "marginStart" : "marginBottom"; + return { + tablist: ((_tablist = {})[borderProp] = "2px solid", _tablist.borderColor = "inherit", _tablist), + tab: ((_tab = {})[borderProp] = "2px solid", _tab.borderColor = "transparent", _tab[marginProp] = "-2px", _tab._selected = { + color: mode(c + ".600", c + ".300")(props), + borderColor: "currentColor" + }, _tab._active = { + bg: mode("gray.200", "whiteAlpha.300")(props) + }, _tab._disabled = { + _active: { + bg: "none" + } + }, _tab) + }; + }, variantEnclosed = function(props) { + var c = props.colorScheme; + return { + tab: { + borderTopRadius: "md", + border: "1px solid", + borderColor: "transparent", + mb: "-1px", + _selected: { + color: mode(c + ".600", c + ".300")(props), + borderColor: "inherit", + borderBottomColor: mode("white", "gray.800")(props) + } + }, + tablist: { + mb: "-1px", + borderBottom: "1px solid", + borderColor: "inherit" + } + }; + }, variantEnclosedColored = function(props) { + var c = props.colorScheme; + return { + tab: { + border: "1px solid", + borderColor: "inherit", + bg: mode("gray.50", "whiteAlpha.50")(props), + mb: "-1px", + _notLast: { + marginEnd: "-1px" + }, + _selected: { + bg: mode("#fff", "gray.800")(props), + color: mode(c + ".600", c + ".300")(props), + borderColor: "inherit", + borderTopColor: "currentColor", + borderBottomColor: "transparent" + } + }, + tablist: { + mb: "-1px", + borderBottom: "1px solid", + borderColor: "inherit" + } + }; + }, variantSoftRounded = function(props) { + var c = props.colorScheme, theme = props.theme; + return { + tab: { + borderRadius: "full", + fontWeight: "semibold", + color: "gray.600", + _selected: { + color: getColor(theme, c + ".700"), + bg: getColor(theme, c + ".100") + } + } + }; + }, variantSolidRounded = function(props) { + var c = props.colorScheme; + return { + tab: { + borderRadius: "full", + fontWeight: "semibold", + color: mode("gray.600", "inherit")(props), + _selected: { + color: mode("#fff", "gray.800")(props), + bg: mode(c + ".600", c + ".300")(props) + } + } + }; + }, Tabs = { + parts: tabsAnatomy.keys, + baseStyle: baseStyle$3, + sizes: { + sm: { + tab: { + py: 1, + px: 4, + fontSize: "sm" + } + }, + md: { + tab: { + fontSize: "md", + py: 2, + px: 4 + } + }, + lg: { + tab: { + fontSize: "lg", + py: 3, + px: 4 + } + } + }, + variants: { + line: variantLine, + enclosed: variantEnclosed, + "enclosed-colored": variantEnclosedColored, + "soft-rounded": variantSoftRounded, + "solid-rounded": variantSolidRounded, + unstyled: {} + }, + defaultProps: { + size: "md", + variant: "line", + colorScheme: "blue" + } + }, Tag = { + parts: tagAnatomy.keys, + variants: { + subtle: function(props) { + return { + container: Badge.variants.subtle(props) + }; + }, + solid: function(props) { + return { + container: Badge.variants.solid(props) + }; + }, + outline: function(props) { + return { + container: Badge.variants.outline(props) + }; + } + }, + baseStyle: { + container: { + fontWeight: "medium", + lineHeight: 1.2, + outline: 0, + borderRadius: "md", + _focusVisible: { + boxShadow: "outline" + } + }, + label: { + lineHeight: 1.2, + overflow: "visible" + }, + closeButton: { + fontSize: "18px", + w: "1.25rem", + h: "1.25rem", + transitionProperty: "common", + transitionDuration: "normal", + borderRadius: "full", + marginStart: "0.375rem", + marginEnd: "-1", + opacity: 0.5, + _disabled: { + opacity: 0.4 + }, + _focusVisible: { + boxShadow: "outline", + bg: "rgba(0, 0, 0, 0.14)" + }, + _hover: { + opacity: 0.8 + }, + _active: { + opacity: 1 + } + } + }, + sizes: { + sm: { + container: { + minH: "1.25rem", + minW: "1.25rem", + fontSize: "xs", + px: 2 + }, + closeButton: { + marginEnd: "-2px", + marginStart: "0.35rem" + } + }, + md: { + container: { + minH: "1.5rem", + minW: "1.5rem", + fontSize: "sm", + px: 2 + } + }, + lg: { + container: { + minH: 8, + minW: 8, + fontSize: "md", + px: 3 + } + } + }, + defaultProps: { + size: "md", + variant: "subtle", + colorScheme: "gray" + } + }, baseStyle$1 = sizes_501602a9_esm_extends({}, Input.baseStyle.field, { + paddingY: "8px", + minHeight: "80px", + lineHeight: "short", + verticalAlign: "top" + }), variants = { + outline: function(props) { + var _Input$variants$outli; + return null != (_Input$variants$outli = Input.variants.outline(props).field) ? _Input$variants$outli : {}; + }, + flushed: function(props) { + var _Input$variants$flush; + return null != (_Input$variants$flush = Input.variants.flushed(props).field) ? _Input$variants$flush : {}; + }, + filled: function(props) { + var _Input$variants$fille; + return null != (_Input$variants$fille = Input.variants.filled(props).field) ? _Input$variants$fille : {}; + }, + unstyled: null != (_Input$variants$unsty = Input.variants.unstyled.field) ? _Input$variants$unsty : {} + }, chakra_ui_theme_components_esm_sizes = { + xs: null != (_Input$sizes$xs$field = Input.sizes.xs.field) ? _Input$sizes$xs$field : {}, + sm: null != (_Input$sizes$sm$field = Input.sizes.sm.field) ? _Input$sizes$sm$field : {}, + md: null != (_Input$sizes$md$field = Input.sizes.md.field) ? _Input$sizes$md$field : {}, + lg: null != (_Input$sizes$lg$field = Input.sizes.lg.field) ? _Input$sizes$lg$field : {} + }, $bg = cssVar("tooltip-bg"), $arrowBg = cssVar("popper-arrow-bg"), baseStyle = function(props) { + var _ref, bg = mode("gray.700", "gray.300")(props); + return (_ref = {})[$bg.variable] = "colors." + bg, _ref.px = "8px", _ref.py = "2px", _ref.bg = [ + $bg.reference + ], _ref[$arrowBg.variable] = [ + $bg.reference + ], _ref.color = mode("whiteAlpha.900", "gray.900")(props), _ref.borderRadius = "sm", _ref.fontWeight = "medium", _ref.fontSize = "sm", _ref.boxShadow = "md", _ref.maxW = "320px", _ref.zIndex = "tooltip", _ref; + }, breakpoints = (config = { + sm: "30em", + md: "48em", + lg: "62em", + xl: "80em", + "2xl": "96em" + }, (0, chakra_ui_utils_esm.ZK)({ + condition: !0, + message: "[chakra-ui]: createBreakpoints(...) will be deprecated pretty soonsimply pass the breakpoints as an object. Remove the createBreakpoint(..) call" + }), chakra_ui_theme_tools_esm_extends({ + base: "0em" + }, config)), foundations = sizes_501602a9_esm_extends({ + breakpoints: breakpoints, + zIndices: { + hide: -1, + auto: "auto", + base: 0, + docked: 10, + dropdown: 1000, + sticky: 1100, + banner: 1200, + overlay: 1300, + modal: 1400, + popover: 1500, + skipLink: 1600, + toast: 1700, + tooltip: 1800 + }, + radii: { + none: "0", + sm: "0.125rem", + base: "0.25rem", + md: "0.375rem", + lg: "0.5rem", + xl: "0.75rem", + "2xl": "1rem", + "3xl": "1.5rem", + full: "9999px" + }, + blur: { + none: 0, + sm: "4px", + base: "8px", + md: "12px", + lg: "16px", + xl: "24px", + "2xl": "40px", + "3xl": "64px" + }, + colors: { + transparent: "transparent", + current: "currentColor", + black: "#000000", + white: "#FFFFFF", + whiteAlpha: { + 50: "rgba(255, 255, 255, 0.04)", + 100: "rgba(255, 255, 255, 0.06)", + 200: "rgba(255, 255, 255, 0.08)", + 300: "rgba(255, 255, 255, 0.16)", + 400: "rgba(255, 255, 255, 0.24)", + 500: "rgba(255, 255, 255, 0.36)", + 600: "rgba(255, 255, 255, 0.48)", + 700: "rgba(255, 255, 255, 0.64)", + 800: "rgba(255, 255, 255, 0.80)", + 900: "rgba(255, 255, 255, 0.92)" + }, + blackAlpha: { + 50: "rgba(0, 0, 0, 0.04)", + 100: "rgba(0, 0, 0, 0.06)", + 200: "rgba(0, 0, 0, 0.08)", + 300: "rgba(0, 0, 0, 0.16)", + 400: "rgba(0, 0, 0, 0.24)", + 500: "rgba(0, 0, 0, 0.36)", + 600: "rgba(0, 0, 0, 0.48)", + 700: "rgba(0, 0, 0, 0.64)", + 800: "rgba(0, 0, 0, 0.80)", + 900: "rgba(0, 0, 0, 0.92)" + }, + gray: { + 50: "#F7FAFC", + 100: "#EDF2F7", + 200: "#E2E8F0", + 300: "#CBD5E0", + 400: "#A0AEC0", + 500: "#718096", + 600: "#4A5568", + 700: "#2D3748", + 800: "#1A202C", + 900: "#171923" + }, + red: { + 50: "#FFF5F5", + 100: "#FED7D7", + 200: "#FEB2B2", + 300: "#FC8181", + 400: "#F56565", + 500: "#E53E3E", + 600: "#C53030", + 700: "#9B2C2C", + 800: "#822727", + 900: "#63171B" + }, + orange: { + 50: "#FFFAF0", + 100: "#FEEBC8", + 200: "#FBD38D", + 300: "#F6AD55", + 400: "#ED8936", + 500: "#DD6B20", + 600: "#C05621", + 700: "#9C4221", + 800: "#7B341E", + 900: "#652B19" + }, + yellow: { + 50: "#FFFFF0", + 100: "#FEFCBF", + 200: "#FAF089", + 300: "#F6E05E", + 400: "#ECC94B", + 500: "#D69E2E", + 600: "#B7791F", + 700: "#975A16", + 800: "#744210", + 900: "#5F370E" + }, + green: { + 50: "#F0FFF4", + 100: "#C6F6D5", + 200: "#9AE6B4", + 300: "#68D391", + 400: "#48BB78", + 500: "#38A169", + 600: "#2F855A", + 700: "#276749", + 800: "#22543D", + 900: "#1C4532" + }, + teal: { + 50: "#E6FFFA", + 100: "#B2F5EA", + 200: "#81E6D9", + 300: "#4FD1C5", + 400: "#38B2AC", + 500: "#319795", + 600: "#2C7A7B", + 700: "#285E61", + 800: "#234E52", + 900: "#1D4044" + }, + blue: { + 50: "#ebf8ff", + 100: "#bee3f8", + 200: "#90cdf4", + 300: "#63b3ed", + 400: "#4299e1", + 500: "#3182ce", + 600: "#2b6cb0", + 700: "#2c5282", + 800: "#2a4365", + 900: "#1A365D" + }, + cyan: { + 50: "#EDFDFD", + 100: "#C4F1F9", + 200: "#9DECF9", + 300: "#76E4F7", + 400: "#0BC5EA", + 500: "#00B5D8", + 600: "#00A3C4", + 700: "#0987A0", + 800: "#086F83", + 900: "#065666" + }, + purple: { + 50: "#FAF5FF", + 100: "#E9D8FD", + 200: "#D6BCFA", + 300: "#B794F4", + 400: "#9F7AEA", + 500: "#805AD5", + 600: "#6B46C1", + 700: "#553C9A", + 800: "#44337A", + 900: "#322659" + }, + pink: { + 50: "#FFF5F7", + 100: "#FED7E2", + 200: "#FBB6CE", + 300: "#F687B3", + 400: "#ED64A6", + 500: "#D53F8C", + 600: "#B83280", + 700: "#97266D", + 800: "#702459", + 900: "#521B41" + }, + linkedin: { + 50: "#E8F4F9", + 100: "#CFEDFB", + 200: "#9BDAF3", + 300: "#68C7EC", + 400: "#34B3E4", + 500: "#00A0DC", + 600: "#008CC9", + 700: "#0077B5", + 800: "#005E93", + 900: "#004471" + }, + facebook: { + 50: "#E8F4F9", + 100: "#D9DEE9", + 200: "#B7C2DA", + 300: "#6482C0", + 400: "#4267B2", + 500: "#385898", + 600: "#314E89", + 700: "#29487D", + 800: "#223B67", + 900: "#1E355B" + }, + messenger: { + 50: "#D0E6FF", + 100: "#B9DAFF", + 200: "#A2CDFF", + 300: "#7AB8FF", + 400: "#2E90FF", + 500: "#0078FF", + 600: "#0063D1", + 700: "#0052AC", + 800: "#003C7E", + 900: "#002C5C" + }, + whatsapp: { + 50: "#dffeec", + 100: "#b9f5d0", + 200: "#90edb3", + 300: "#65e495", + 400: "#3cdd78", + 500: "#22c35e", + 600: "#179848", + 700: "#0c6c33", + 800: "#01421c", + 900: "#001803" + }, + twitter: { + 50: "#E5F4FD", + 100: "#C8E9FB", + 200: "#A8DCFA", + 300: "#83CDF7", + 400: "#57BBF5", + 500: "#1DA1F2", + 600: "#1A94DA", + 700: "#1681BF", + 800: "#136B9E", + 900: "#0D4D71" + }, + telegram: { + 50: "#E3F2F9", + 100: "#C5E4F3", + 200: "#A2D4EC", + 300: "#7AC1E4", + 400: "#47A9DA", + 500: "#0088CC", + 600: "#007AB8", + 700: "#006BA1", + 800: "#005885", + 900: "#003F5E" + } + } + }, typography, { + sizes: sizes, + shadows: { + xs: "0 0 0 1px rgba(0, 0, 0, 0.05)", + sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)", + base: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)", + md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)", + lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)", + xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)", + "2xl": "0 25px 50px -12px rgba(0, 0, 0, 0.25)", + outline: "0 0 0 3px rgba(66, 153, 225, 0.6)", + inner: "inset 0 2px 4px 0 rgba(0,0,0,0.06)", + none: "none", + "dark-lg": "rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px" + }, + space: spacing, + borders: { + none: 0, + "1px": "1px solid", + "2px": "2px solid", + "4px": "4px solid", + "8px": "8px solid" + }, + transition: { + property: { + common: "background-color, border-color, color, fill, stroke, opacity, box-shadow, transform", + colors: "background-color, border-color, color, fill, stroke", + dimensions: "width, height", + position: "left, right, top, bottom", + background: "background-color, background-image, background-position" + }, + easing: { + "ease-in": "cubic-bezier(0.4, 0, 1, 1)", + "ease-out": "cubic-bezier(0, 0, 0.2, 1)", + "ease-in-out": "cubic-bezier(0.4, 0, 0.2, 1)" + }, + duration: { + "ultra-fast": "50ms", + faster: "100ms", + fast: "150ms", + normal: "200ms", + slow: "300ms", + slower: "400ms", + "ultra-slow": "500ms" + } + } + }), theme = sizes_501602a9_esm_extends({ + semanticTokens: { + colors: { + "chakra-body-text": { + _light: "gray.800", + _dark: "whiteAlpha.900" + }, + "chakra-body-bg": { + _light: "white", + _dark: "gray.800" + }, + "chakra-border-color": { + _light: "gray.200", + _dark: "whiteAlpha.300" + }, + "chakra-placeholder-color": { + _light: "gray.500", + _dark: "whiteAlpha.400" + } + } + }, + direction: "ltr" + }, foundations, { + components: { + Accordion: Accordion, + Alert: Alert, + Avatar: Avatar, + Badge: Badge, + Breadcrumb: Breadcrumb, + Button: { + baseStyle: { + lineHeight: "1.2", + borderRadius: "md", + fontWeight: "semibold", + transitionProperty: "common", + transitionDuration: "normal", + _focusVisible: { + boxShadow: "outline" + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed", + boxShadow: "none" + }, + _hover: { + _disabled: { + bg: "initial" + } + } + }, + variants: { + ghost: variantGhost, + outline: variantOutline$1, + solid: variantSolid$1, + link: variantLink, + unstyled: { + bg: "none", + color: "inherit", + display: "inline", + lineHeight: "inherit", + m: 0, + p: 0 + } + }, + sizes: { + lg: { + h: 12, + minW: 12, + fontSize: "lg", + px: 6 + }, + md: { + h: 10, + minW: 10, + fontSize: "md", + px: 4 + }, + sm: { + h: 8, + minW: 8, + fontSize: "sm", + px: 3 + }, + xs: { + h: 6, + minW: 6, + fontSize: "xs", + px: 2 + } + }, + defaultProps: { + variant: "solid", + size: "md", + colorScheme: "gray" + } + }, + Checkbox: Checkbox, + CloseButton: { + baseStyle: baseStyle$w, + sizes: sizes$h, + defaultProps: { + size: "md" + } + }, + Code: { + baseStyle: { + fontFamily: "mono", + fontSize: "sm", + px: "0.2em", + borderRadius: "sm" + }, + variants: variants$8, + defaultProps: defaultProps$h + }, + Container: { + baseStyle: { + w: "100%", + mx: "auto", + maxW: "60ch", + px: "1rem" + } + }, + Divider: { + baseStyle: { + opacity: 0.6, + borderColor: "inherit" + }, + variants: { + solid: { + borderStyle: "solid" + }, + dashed: { + borderStyle: "dashed" + } + }, + defaultProps: { + variant: "solid" + } + }, + Drawer: Drawer, + Editable: Editable, + Form: Form, + FormError: FormError, + FormLabel: { + baseStyle: { + fontSize: "md", + marginEnd: 3, + mb: 2, + fontWeight: "medium", + transitionProperty: "common", + transitionDuration: "normal", + opacity: 1, + _disabled: { + opacity: 0.4 + } + } + }, + Heading: { + baseStyle: { + fontFamily: "heading", + fontWeight: "bold" + }, + sizes: { + "4xl": { + fontSize: [ + "6xl", + null, + "7xl" + ], + lineHeight: 1 + }, + "3xl": { + fontSize: [ + "5xl", + null, + "6xl" + ], + lineHeight: 1 + }, + "2xl": { + fontSize: [ + "4xl", + null, + "5xl" + ], + lineHeight: [ + 1.2, + null, + 1 + ] + }, + xl: { + fontSize: [ + "3xl", + null, + "4xl" + ], + lineHeight: [ + 1.33, + null, + 1.2 + ] + }, + lg: { + fontSize: [ + "2xl", + null, + "3xl" + ], + lineHeight: [ + 1.33, + null, + 1.2 + ] + }, + md: { + fontSize: "xl", + lineHeight: 1.2 + }, + sm: { + fontSize: "md", + lineHeight: 1.2 + }, + xs: { + fontSize: "sm", + lineHeight: 1.2 + } + }, + defaultProps: { + size: "xl" + } + }, + Input: Input, + Kbd: { + baseStyle: baseStyle$l + }, + Link: { + baseStyle: { + transitionProperty: "common", + transitionDuration: "fast", + transitionTimingFunction: "ease-out", + cursor: "pointer", + textDecoration: "none", + outline: "none", + color: "inherit", + _hover: { + textDecoration: "underline" + }, + _focusVisible: { + boxShadow: "outline" + } + } + }, + List: List, + Menu: Menu, + Modal: Modal, + NumberInput: NumberInput, + PinInput: { + baseStyle: baseStyle$f, + sizes: { + lg: { + fontSize: "lg", + w: 12, + h: 12, + borderRadius: "md" + }, + md: { + fontSize: "md", + w: 10, + h: 10, + borderRadius: "md" + }, + sm: { + fontSize: "sm", + w: 8, + h: 8, + borderRadius: "sm" + }, + xs: { + fontSize: "xs", + w: 6, + h: 6, + borderRadius: "sm" + } + }, + variants: variants$4, + defaultProps: defaultProps$a + }, + Popover: Popover, + Progress: Progress, + Radio: Radio, + Select: Select, + Skeleton: { + baseStyle: baseStyle$a + }, + SkipLink: { + baseStyle: baseStyle$9 + }, + Slider: Slider, + Spinner: { + baseStyle: baseStyle$7, + sizes: sizes$6, + defaultProps: { + size: "md" + } + }, + Stat: Stat, + Switch: Switch, + Table: Table, + Tabs: Tabs, + Tag: Tag, + Textarea: { + baseStyle: baseStyle$1, + sizes: chakra_ui_theme_components_esm_sizes, + variants: variants, + defaultProps: { + size: "md", + variant: "outline" + } + }, + Tooltip: { + baseStyle: baseStyle + } + }, + styles: { + global: { + body: { + fontFamily: "body", + color: "chakra-body-text", + bg: "chakra-body-bg", + transitionProperty: "background-color", + transitionDuration: "normal", + lineHeight: "base" + }, + "*::placeholder": { + color: "chakra-placeholder-color" + }, + "*, *::before, &::after": { + borderColor: "chakra-border-color", + wordWrap: "break-word" + } + } + }, + config: { + useSystemColorMode: !1, + initialColorMode: "light", + cssVarPrefix: "chakra" + } + }), chakra_ui_visually_hidden_esm = __webpack_require__(1358); + function chakra_ui_spinner_esm_extends() { + return (chakra_ui_spinner_esm_extends = Object.assign ? Object.assign.bind() : function(target) { + for(var i = 1; i < arguments.length; i++){ + var source = arguments[i]; + for(var key in source)Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }).apply(this, arguments); + } + var chakra_ui_spinner_esm_excluded = [ + "label", + "thickness", + "speed", + "emptyColor", + "className", + ], spin = (0, emotion_react_browser_esm.F4)({ + "0%": { + transform: "rotate(0deg)" + }, + "100%": { + transform: "rotate(360deg)" + } + }), chakra_ui_spinner_esm_Spinner = (0, chakra_ui_system_esm.Gp)(function(props, ref) { + var styles = (0, chakra_ui_system_esm.mq)("Spinner", props), _omitThemingProps = (0, chakra_ui_system_esm.Lr)(props), _omitThemingProps$lab = _omitThemingProps.label, label = void 0 === _omitThemingProps$lab ? "Loading..." : _omitThemingProps$lab, _omitThemingProps$thi = _omitThemingProps.thickness, _omitThemingProps$spe = _omitThemingProps.speed, _omitThemingProps$emp = _omitThemingProps.emptyColor, emptyColor = void 0 === _omitThemingProps$emp ? "transparent" : _omitThemingProps$emp, className = _omitThemingProps.className, rest = function(source, excluded) { + if (null == source) return {}; + var key, i, target = {}, sourceKeys = Object.keys(source); + for(i = 0; i < sourceKeys.length; i++)key = sourceKeys[i], excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + }(_omitThemingProps, chakra_ui_spinner_esm_excluded), _className = (0, chakra_ui_utils_esm.cx)("chakra-spinner", className), spinnerStyles = chakra_ui_spinner_esm_extends({ + display: "inline-block", + borderColor: "currentColor", + borderStyle: "solid", + borderRadius: "99999px", + borderWidth: void 0 === _omitThemingProps$thi ? "2px" : _omitThemingProps$thi, + borderBottomColor: emptyColor, + borderLeftColor: emptyColor, + animation: spin + " " + (void 0 === _omitThemingProps$spe ? "0.45s" : _omitThemingProps$spe) + " linear infinite" + }, styles); + return react.createElement(chakra_ui_system_esm.m$.div, chakra_ui_spinner_esm_extends({ + ref: ref, + __css: spinnerStyles, + className: _className + }, rest), label && react.createElement(chakra_ui_visually_hidden_esm.TX, null, label)); + }); + chakra_ui_utils_esm.Ts && (chakra_ui_spinner_esm_Spinner.displayName = "Spinner"); + var chakra_ui_icon_esm = __webpack_require__(894); + function chakra_ui_alert_esm_extends() { + return (chakra_ui_alert_esm_extends = Object.assign ? Object.assign.bind() : function(target) { + for(var i = 1; i < arguments.length; i++){ + var source = arguments[i]; + for(var key in source)Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }).apply(this, arguments); + } + var CheckIcon = function(props) { + return react.createElement(chakra_ui_icon_esm.JO, chakra_ui_alert_esm_extends({ + viewBox: "0 0 24 24" + }, props), react.createElement("path", { + fill: "currentColor", + d: "M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z" + })); + }, InfoIcon = function(props) { + return react.createElement(chakra_ui_icon_esm.JO, chakra_ui_alert_esm_extends({ + viewBox: "0 0 24 24" + }, props), react.createElement("path", { + fill: "currentColor", + d: "M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z" + })); + }, WarningIcon = function(props) { + return react.createElement(chakra_ui_icon_esm.JO, chakra_ui_alert_esm_extends({ + viewBox: "0 0 24 24" + }, props), react.createElement("path", { + fill: "currentColor", + d: "M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z" + })); + }, chakra_ui_alert_esm_excluded = [ + "status" + ], _createStylesContext = (0, chakra_ui_system_esm.eC)("Alert"), StylesProvider = _createStylesContext[0], useStyles = _createStylesContext[1], STATUSES = { + info: { + icon: InfoIcon, + colorScheme: "blue" + }, + warning: { + icon: WarningIcon, + colorScheme: "orange" + }, + success: { + icon: CheckIcon, + colorScheme: "green" + }, + error: { + icon: WarningIcon, + colorScheme: "red" + }, + loading: { + icon: chakra_ui_spinner_esm_Spinner, + colorScheme: "blue" + } + }, chakra_ui_alert_esm_createContext = (0, chakra_ui_react_utils_esm.kr)({ + name: "AlertContext", + errorMessage: "useAlertContext: `context` is undefined. Seems you forgot to wrap alert components in ``" + }), AlertProvider = chakra_ui_alert_esm_createContext[0], useAlertContext = chakra_ui_alert_esm_createContext[1], chakra_ui_alert_esm_Alert = (0, chakra_ui_system_esm.Gp)(function(props, ref) { + var _props$colorScheme, _omitThemingProps = (0, chakra_ui_system_esm.Lr)(props), _omitThemingProps$sta = _omitThemingProps.status, status = void 0 === _omitThemingProps$sta ? "info" : _omitThemingProps$sta, rest = function(source, excluded) { + if (null == source) return {}; + var key, i, target = {}, sourceKeys = Object.keys(source); + for(i = 0; i < sourceKeys.length; i++)key = sourceKeys[i], excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + }(_omitThemingProps, chakra_ui_alert_esm_excluded), colorScheme = null != (_props$colorScheme = props.colorScheme) ? _props$colorScheme : STATUSES[status].colorScheme, styles = (0, chakra_ui_system_esm.jC)("Alert", chakra_ui_alert_esm_extends({}, props, { + colorScheme: colorScheme + })), alertStyles = chakra_ui_alert_esm_extends({ + width: "100%", + display: "flex", + alignItems: "center", + position: "relative", + overflow: "hidden" + }, styles.container); + return react.createElement(AlertProvider, { + value: { + status: status + } + }, react.createElement(StylesProvider, { + value: styles + }, react.createElement(chakra_ui_system_esm.m$.div, chakra_ui_alert_esm_extends({ + role: "alert", + ref: ref + }, rest, { + className: (0, chakra_ui_utils_esm.cx)("chakra-alert", props.className), + __css: alertStyles + })))); + }), AlertTitle = (0, chakra_ui_system_esm.Gp)(function(props, ref) { + var styles = useStyles(); + return react.createElement(chakra_ui_system_esm.m$.div, chakra_ui_alert_esm_extends({ + ref: ref + }, props, { + className: (0, chakra_ui_utils_esm.cx)("chakra-alert__title", props.className), + __css: styles.title + })); + }), AlertDescription = (0, chakra_ui_system_esm.Gp)(function(props, ref) { + var styles = useStyles(), descriptionStyles = chakra_ui_alert_esm_extends({ + display: "inline" + }, styles.description); + return react.createElement(chakra_ui_system_esm.m$.div, chakra_ui_alert_esm_extends({ + ref: ref + }, props, { + className: (0, chakra_ui_utils_esm.cx)("chakra-alert__desc", props.className), + __css: descriptionStyles + })); + }), AlertIcon = function(props) { + var status = useAlertContext().status, BaseIcon = STATUSES[status].icon, styles = useStyles(), css = "loading" === status ? styles.spinner : styles.icon; + return react.createElement(chakra_ui_system_esm.m$.span, chakra_ui_alert_esm_extends({ + display: "inherit" + }, props, { + className: (0, chakra_ui_utils_esm.cx)("chakra-alert__icon", props.className), + __css: css + }), props.children || react.createElement(BaseIcon, { + h: "100%", + w: "100%" + })); + }; + function chakra_ui_close_button_esm_extends() { + return (chakra_ui_close_button_esm_extends = Object.assign ? Object.assign.bind() : function(target) { + for(var i = 1; i < arguments.length; i++){ + var source = arguments[i]; + for(var key in source)Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }).apply(this, arguments); + } + var chakra_ui_close_button_esm_excluded = [ + "children", + "isDisabled", + "__css", + ], CloseIcon = function(props) { + return react.createElement(chakra_ui_icon_esm.JO, chakra_ui_close_button_esm_extends({ + focusable: "false", + "aria-hidden": !0 + }, props), react.createElement("path", { + fill: "currentColor", + d: "M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z" + })); + }, chakra_ui_close_button_esm_CloseButton = (0, chakra_ui_system_esm.Gp)(function(props, ref) { + var styles = (0, chakra_ui_system_esm.mq)("CloseButton", props), _omitThemingProps = (0, chakra_ui_system_esm.Lr)(props), children = _omitThemingProps.children, isDisabled = _omitThemingProps.isDisabled, __css = _omitThemingProps.__css, rest = function(source, excluded) { + if (null == source) return {}; + var key, i, target = {}, sourceKeys = Object.keys(source); + for(i = 0; i < sourceKeys.length; i++)key = sourceKeys[i], excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + }(_omitThemingProps, chakra_ui_close_button_esm_excluded); + return react.createElement(chakra_ui_system_esm.m$.button, chakra_ui_close_button_esm_extends({ + type: "button", + "aria-label": "Close", + ref: ref, + disabled: isDisabled, + __css: chakra_ui_close_button_esm_extends({}, { + outline: 0, + display: "flex", + alignItems: "center", + justifyContent: "center", + flexShrink: 0 + }, styles, __css) + }, rest), children || react.createElement(CloseIcon, { + width: "1em", + height: "1em" + })); + }); + chakra_ui_utils_esm.Ts && (chakra_ui_close_button_esm_CloseButton.displayName = "CloseButton"); + var use_presence = __webpack_require__(5947), motion = __webpack_require__(8970), AnimatePresence = __webpack_require__(1190); + function chakra_ui_toast_esm_extends() { + return (chakra_ui_toast_esm_extends = Object.assign ? Object.assign.bind() : function(target) { + for(var i = 1; i < arguments.length; i++){ + var source = arguments[i]; + for(var key in source)Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }).apply(this, arguments); + } + function findToast(toasts, id) { + var position = getToastPosition(toasts, id), index = position ? toasts[position].findIndex(function(toast) { + return toast.id === id; + }) : -1; + return { + position: position, + index: index + }; + } + var initialState, state, listeners, setState, getToastPosition = function(toasts, id) { + var _Object$values$flat$f; + return null == (_Object$values$flat$f = Object.values(toasts).flat().find(function(toast) { + return toast.id === id; + })) ? void 0 : _Object$values$flat$f.position; + }, toastStore = (state = initialState = { + top: [], + "top-left": [], + "top-right": [], + "bottom-left": [], + bottom: [], + "bottom-right": [] + }, listeners = new Set(), setState = function(setStateFn) { + state = setStateFn(state), listeners.forEach(function(l) { + return l(); + }); + }, { + getState: function() { + return state; + }, + subscribe: function(listener) { + return listeners.add(listener), function() { + setState(function() { + return initialState; + }), listeners.delete(listener); + }; + }, + removeToast: function(id, position) { + setState(function(prevState) { + var _extends2; + return chakra_ui_toast_esm_extends({}, prevState, ((_extends2 = {})[position] = prevState[position].filter(function(toast) { + return toast.id != id; + }), _extends2)); + }); + }, + notify: function(message, options) { + var toast = createToast(message, options), position = toast.position, id = toast.id; + return setState(function(prevToasts) { + var _prevToasts$position, _prevToasts$position2, _extends3, toasts = position.includes("top") ? [ + toast + ].concat(null != (_prevToasts$position = prevToasts[position]) ? _prevToasts$position : []) : [].concat(null != (_prevToasts$position2 = prevToasts[position]) ? _prevToasts$position2 : [], [ + toast + ]); + return chakra_ui_toast_esm_extends({}, prevToasts, ((_extends3 = {})[position] = toasts, _extends3)); + }), id; + }, + update: function(id, options) { + id && setState(function(prevState) { + var nextState = chakra_ui_toast_esm_extends({}, prevState), _findToast = findToast(nextState, id), position = _findToast.position, index = _findToast.index; + return position && -1 !== index && (nextState[position][index] = chakra_ui_toast_esm_extends({}, nextState[position][index], options, { + message: createRenderToast(options) + })), nextState; + }); + }, + closeAll: function(_temp) { + var positions = (void 0 === _temp ? {} : _temp).positions; + setState(function(prev) { + return (null != positions ? positions : [ + "bottom", + "bottom-right", + "bottom-left", + "top", + "top-left", + "top-right", + ]).reduce(function(acc, position) { + return acc[position] = prev[position].map(function(toast) { + return chakra_ui_toast_esm_extends({}, toast, { + requestClose: !0 + }); + }), acc; + }, chakra_ui_toast_esm_extends({}, prev)); + }); + }, + close: function(id) { + setState(function(prevState) { + var _extends4, position = getToastPosition(prevState, id); + return position ? chakra_ui_toast_esm_extends({}, prevState, ((_extends4 = {})[position] = prevState[position].map(function(toast) { + return toast.id == id ? chakra_ui_toast_esm_extends({}, toast, { + requestClose: !0 + }) : toast; + }), _extends4)) : prevState; + }); + }, + isActive: function(id) { + return Boolean(findToast(toastStore.getState(), id).position); + } + }), counter = 0; + function createToast(message, options) { + void 0 === options && (options = {}), counter += 1; + var _options$id, _options$position, id = null != (_options$id = options.id) ? _options$id : counter, position = null != (_options$position = options.position) ? _options$position : "bottom"; + return { + id: id, + message: message, + position: position, + duration: options.duration, + onCloseComplete: options.onCloseComplete, + onRequestRemove: function() { + return toastStore.removeToast(String(id), position); + }, + status: options.status, + requestClose: !1, + containerStyle: options.containerStyle + }; + } + var Toast = function(props) { + var status = props.status, _props$variant = props.variant, id = props.id, title = props.title, isClosable = props.isClosable, onClose = props.onClose, description = props.description, icon = props.icon, alertTitleId = void 0 !== id ? "toast-" + id + "-title" : void 0; + return react.createElement(chakra_ui_alert_esm_Alert, { + status: status, + variant: void 0 === _props$variant ? "solid" : _props$variant, + id: String(id), + alignItems: "start", + borderRadius: "md", + boxShadow: "lg", + paddingEnd: 8, + textAlign: "start", + width: "auto", + "aria-labelledby": alertTitleId + }, react.createElement(AlertIcon, null, icon), react.createElement(chakra_ui_system_esm.m$.div, { + flex: "1", + maxWidth: "100%" + }, title && react.createElement(AlertTitle, { + id: alertTitleId + }, title), description && react.createElement(AlertDescription, { + display: "block" + }, description)), isClosable && react.createElement(chakra_ui_close_button_esm_CloseButton, { + size: "sm", + onClick: onClose, + position: "absolute", + insetEnd: 1, + top: 1 + })); + }; + function createRenderToast(options) { + void 0 === options && (options = {}); + var _options = options, render = _options.render, _options$toastCompone = _options.toastComponent, ToastComponent = void 0 === _options$toastCompone ? Toast : _options$toastCompone; + return function(props) { + return (0, chakra_ui_utils_esm.mf)(render) ? render(props) : react.createElement(ToastComponent, chakra_ui_toast_esm_extends({}, props, options)); + }; + } + var toastMotionVariants = { + initial: function(props) { + var _ref, position = props.position, dir = [ + "top", + "bottom" + ].includes(position) ? "y" : "x", factor = [ + "top-right", + "bottom-right" + ].includes(position) ? 1 : -1; + return "bottom" === position && (factor = 1), (_ref = { + opacity: 0 + })[dir] = 24 * factor, _ref; + }, + animate: { + opacity: 1, + y: 0, + x: 0, + scale: 1, + transition: { + duration: 0.4, + ease: [ + 0.4, + 0, + 0.2, + 1 + ] + } + }, + exit: { + opacity: 0, + scale: 0.85, + transition: { + duration: 0.2, + ease: [ + 0.4, + 0, + 1, + 1 + ] + } + } + }, ToastComponent = react.memo(function(props) { + var id = props.id, message = props.message, onCloseComplete = props.onCloseComplete, onRequestRemove = props.onRequestRemove, _props$requestClose = props.requestClose, requestClose = void 0 !== _props$requestClose && _props$requestClose, _props$position = props.position, position = void 0 === _props$position ? "bottom" : _props$position, _props$duration = props.duration, duration = void 0 === _props$duration ? 5000 : _props$duration, containerStyle = props.containerStyle, _props$motionVariants = props.motionVariants, _props$toastSpacing = props.toastSpacing, toastSpacing = void 0 === _props$toastSpacing ? "0.5rem" : _props$toastSpacing, _React$useState = react.useState(duration), delay = _React$useState[0], setDelay = _React$useState[1], isPresent = (0, use_presence.hO)(); + (0, chakra_ui_hooks_esm.rf)(function() { + isPresent || null == onCloseComplete || onCloseComplete(); + }, [ + isPresent + ]), (0, chakra_ui_hooks_esm.rf)(function() { + setDelay(duration); + }, [ + duration + ]); + var onMouseEnter = function() { + return setDelay(null); + }, onMouseLeave = function() { + return setDelay(duration); + }, close = function() { + isPresent && onRequestRemove(); + }; + react.useEffect(function() { + isPresent && requestClose && onRequestRemove(); + }, [ + isPresent, + requestClose, + onRequestRemove + ]), (0, chakra_ui_hooks_esm.KS)(close, delay); + var containerStyles = react.useMemo(function() { + return chakra_ui_toast_esm_extends({ + pointerEvents: "auto", + maxWidth: 560, + minWidth: 300, + margin: toastSpacing + }, containerStyle); + }, [ + containerStyle, + toastSpacing + ]), toastStyle = react.useMemo(function() { + var position1, isRighty, isLefty, alignItems; + return isRighty = (position1 = position).includes("right"), isLefty = position1.includes("left"), alignItems = "center", isRighty && (alignItems = "flex-end"), isLefty && (alignItems = "flex-start"), { + display: "flex", + flexDirection: "column", + alignItems: alignItems + }; + }, [ + position + ]); + return react.createElement(motion.E.li, { + layout: !0, + className: "chakra-toast", + variants: void 0 === _props$motionVariants ? toastMotionVariants : _props$motionVariants, + initial: "initial", + animate: "animate", + exit: "exit", + onHoverStart: onMouseEnter, + onHoverEnd: onMouseLeave, + custom: { + position: position + }, + style: toastStyle + }, react.createElement(chakra_ui_system_esm.m$.div, { + role: "status", + "aria-atomic": "true", + className: "chakra-toast__inner", + __css: containerStyles + }, (0, chakra_ui_utils_esm.Pu)(message, { + id: id, + onClose: close + }))); + }); + chakra_ui_utils_esm.Ts && (ToastComponent.displayName = "ToastComponent"); + var ToastProvider = function(props) { + var state = react.useSyncExternalStore(toastStore.subscribe, toastStore.getState, toastStore.getState), children = props.children, motionVariants = props.motionVariants, _props$component = props.component, Component = void 0 === _props$component ? ToastComponent : _props$component, portalProps = props.portalProps, toastList = (0, chakra_ui_utils_esm.Yd)(state).map(function(position) { + var position1, top, bottom, right, left, toasts = state[position]; + return react.createElement("ul", { + role: "region", + "aria-live": "polite", + key: position, + id: "chakra-toast-manager-" + position, + style: (top = (position1 = position).includes("top") ? "env(safe-area-inset-top, 0px)" : void 0, bottom = position1.includes("bottom") ? "env(safe-area-inset-bottom, 0px)" : void 0, right = position1.includes("left") ? void 0 : "env(safe-area-inset-right, 0px)", left = position1.includes("right") ? void 0 : "env(safe-area-inset-left, 0px)", { + position: "fixed", + zIndex: 5500, + pointerEvents: "none", + display: "flex", + flexDirection: "column", + margin: "top" === position1 || "bottom" === position1 ? "0 auto" : void 0, + top: top, + bottom: bottom, + right: right, + left: left + }) + }, react.createElement(AnimatePresence.M, { + initial: !1 + }, toasts.map(function(toast) { + return react.createElement(Component, chakra_ui_toast_esm_extends({ + key: toast.id, + motionVariants: motionVariants + }, toast)); + }))); + }); + return react.createElement(react.Fragment, null, children, react.createElement(Portal, portalProps, toastList)); + }, chakra_ui_react_esm_excluded = (chakra_ui_utils_esm.ZT, chakra_ui_utils_esm.ZT, [ + "children", + "toastOptions" + ]), ChakraProvider = function(_ref) { + var children = _ref.children, toastOptions = _ref.toastOptions, restProps = function(source, excluded) { + if (null == source) return {}; + var key, i, target = {}, sourceKeys = Object.keys(source); + for(i = 0; i < sourceKeys.length; i++)key = sourceKeys[i], excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + }(_ref, chakra_ui_react_esm_excluded); + return react.createElement(chakra_ui_provider_esm_ChakraProvider, restProps, children, react.createElement(ToastProvider, toastOptions)); + }; + function mergeThemeCustomizer(source, override, key, object) { + if ((isFunction(source) || isFunction(override)) && Object.prototype.hasOwnProperty.call(object, key)) return function() { + var sourceValue = isFunction(source) ? source.apply(void 0, arguments) : source, overrideValue = isFunction(override) ? override.apply(void 0, arguments) : override; + return mergeWith({}, sourceValue, overrideValue, mergeThemeCustomizer); + }; + } + ChakraProvider.defaultProps = { + theme: theme + }; + var _app = function(param) { + var Component = param.Component, pageProps = param.pageProps; + return (0, jsx_runtime.jsx)(ChakraProvider, { + children: (0, jsx_runtime.jsx)(Component, function(target) { + for(var i = 1; i < arguments.length; i++){ + var source = null != arguments[i] ? arguments[i] : {}, ownKeys = Object.keys(source); + "function" == typeof Object.getOwnPropertySymbols && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + }))), ownKeys.forEach(function(key) { + _defineProperty(target, key, source[key]); + }); + } + return target; + }({}, pageProps)) + }); + }; + } + }, + function(__webpack_require__) { + var __webpack_exec__ = function(moduleId) { + return __webpack_require__(__webpack_require__.s = moduleId); + }; + __webpack_require__.O(0, [ + 774, + 179 + ], function() { + return __webpack_exec__(3837), __webpack_exec__(387); + }), _N_E = __webpack_require__.O(); + }, +]); diff --git a/crates/swc_ecma_minifier/tests/fixture/next/chakra/output.mangleOnly.js b/crates/swc_ecma_minifier/tests/fixture/next/chakra/output.mangleOnly.js new file mode 100644 index 00000000000..84f708825b2 --- /dev/null +++ b/crates/swc_ecma_minifier/tests/fixture/next/chakra/output.mangleOnly.js @@ -0,0 +1,6356 @@ +(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([ + [ + 888 + ], + { + 2260: function(a, b, c) { + "use strict"; + c.r(b); + c.d(b, { + default: function() { + return hH; + } + }); + function d(a, b, c) { + if (b in a) { + Object.defineProperty(a, b, { + value: c, + enumerable: true, + configurable: true, + writable: true + }); + } else { + a[b] = c; + } + return a; + } + function e(a) { + for(var b = 1; b < arguments.length; b++){ + var c = arguments[b] != null ? arguments[b] : {}; + var e = Object.keys(c); + if (typeof Object.getOwnPropertySymbols === "function") { + e = e.concat(Object.getOwnPropertySymbols(c).filter(function(a) { + return Object.getOwnPropertyDescriptor(c, a).enumerable; + })); + } + e.forEach(function(b) { + d(a, b, c[b]); + }); + } + return a; + } + var f = c(5893); + var g = c(7294); + var h = c(917); + var i = function a() { + return g.createElement(h.xB, { + styles: '\n html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n font-family: system-ui, sans-serif;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n -moz-osx-font-smoothing: grayscale;\n touch-action: manipulation;\n }\n\n body {\n position: relative;\n min-height: 100%;\n font-feature-settings: \'kern\';\n }\n\n *,\n *::before,\n *::after {\n border-width: 0;\n border-style: solid;\n box-sizing: border-box;\n }\n\n main {\n display: block;\n }\n\n hr {\n border-top-width: 1px;\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n pre,\n code,\n kbd,\n samp {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 1em;\n }\n\n a {\n background-color: transparent;\n color: inherit;\n text-decoration: inherit;\n }\n\n abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n\n b,\n strong {\n font-weight: bold;\n }\n\n small {\n font-size: 80%;\n }\n\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -0.25em;\n }\n\n sup {\n top: -0.5em;\n }\n\n img {\n border-style: none;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n button,\n input {\n overflow: visible;\n }\n\n button,\n select {\n text-transform: none;\n }\n\n button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n\n fieldset {\n padding: 0.35em 0.75em 0.625em;\n }\n\n legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n progress {\n vertical-align: baseline;\n }\n\n textarea {\n overflow: auto;\n }\n\n [type="checkbox"],\n [type="radio"] {\n box-sizing: border-box;\n padding: 0;\n }\n\n [type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none !important;\n }\n\n input[type="number"] {\n -moz-appearance: textfield;\n }\n\n [type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n [type="search"]::-webkit-search-decoration {\n -webkit-appearance: none !important;\n }\n\n ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n details {\n display: block;\n }\n\n summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none !important;\n }\n\n body,\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre {\n margin: 0;\n }\n\n button {\n background: transparent;\n padding: 0;\n }\n\n fieldset {\n margin: 0;\n padding: 0;\n }\n\n ol,\n ul {\n margin: 0;\n padding: 0;\n }\n\n textarea {\n resize: vertical;\n }\n\n button,\n [role="button"] {\n cursor: pointer;\n }\n\n button::-moz-focus-inner {\n border: 0 !important;\n }\n\n table {\n border-collapse: collapse;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n padding: 0;\n line-height: inherit;\n color: inherit;\n }\n\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n display: block;\n }\n\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n\n [data-js-focus-visible] :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) {\n outline: none;\n box-shadow: none;\n }\n\n select::-ms-expand {\n display: none;\n }\n ' + }); + }; + var j = i; + var k = c(5031); + var l = c(6450); + var m = c(7375); + var n = c(4697); + var o = c(3935); + var p = (0, l.kr)({ + strict: false, + name: "PortalManagerContext" + }), q = p[0], r = p[1]; + function s(a) { + var b = a.children, c = a.zIndex; + return g.createElement(q, { + value: { + zIndex: c + } + }, b); + } + if (k.Ts) { + s.displayName = "PortalManager"; + } + function t() { + t = Object.assign ? Object.assign.bind() : function(a) { + for(var b = 1; b < arguments.length; b++){ + var c = arguments[b]; + for(var d in c){ + if (Object.prototype.hasOwnProperty.call(c, d)) { + a[d] = c[d]; + } + } + } + return a; + }; + return t.apply(this, arguments); + } + function u(a, b) { + if (a == null) return {}; + var c = {}; + var d = Object.keys(a); + var e, f; + for(f = 0; f < d.length; f++){ + e = d[f]; + if (b.indexOf(e) >= 0) continue; + c[e] = a[e]; + } + return c; + } + var v = [ + "containerRef" + ]; + var w = (0, l.kr)({ + strict: false, + name: "PortalContext" + }), x = w[0], y = w[1]; + var z = "chakra-portal"; + var A = ".chakra-portal"; + var B = function a(b) { + return g.createElement("div", { + className: "chakra-portal-zIndex", + style: { + position: "absolute", + zIndex: b.zIndex, + top: 0, + left: 0, + right: 0 + } + }, b.children); + }; + var C = function a(b) { + var c = b.appendToParentPortal, d = b.children; + var e = g.useRef(null); + var f = g.useRef(null); + var h = (0, m.NW)(); + var i = y(); + var j = r(); + (0, n.a)(function() { + if (!e.current) return; + var a = e.current.ownerDocument; + var b = c ? i != null ? i : a.body : a.body; + if (!b) return; + f.current = a.createElement("div"); + f.current.className = z; + b.appendChild(f.current); + h(); + var d = f.current; + return function() { + if (b.contains(d)) { + b.removeChild(d); + } + }; + }, []); + var k = j != null && j.zIndex ? g.createElement(B, { + zIndex: j == null ? void 0 : j.zIndex + }, d) : d; + return f.current ? (0, o.createPortal)(g.createElement(x, { + value: f.current + }, k), f.current) : g.createElement("span", { + ref: e + }); + }; + var D = function a(b) { + var c = b.children, d = b.containerRef, e = b.appendToParentPortal; + var f = d.current; + var h = f != null ? f : k.jU ? document.body : undefined; + var i = g.useMemo(function() { + var a = f == null ? void 0 : f.ownerDocument.createElement("div"); + if (a) a.className = z; + return a; + }, [ + f + ]); + var j = (0, m.NW)(); + (0, n.a)(function() { + j(); + }, []); + (0, n.a)(function() { + if (!i || !h) return; + h.appendChild(i); + return function() { + h.removeChild(i); + }; + }, [ + i, + h + ]); + if (h && i) { + return (0, o.createPortal)(g.createElement(x, { + value: e ? i : null + }, c), i); + } + return null; + }; + function E(a) { + var b = a.containerRef, c = u(a, v); + return b ? g.createElement(D, t({ + containerRef: b + }, c)) : g.createElement(C, c); + } + E.defaultProps = { + appendToParentPortal: true + }; + E.className = z; + E.selector = A; + if (k.Ts) { + E.displayName = "Portal"; + } + var F = c(2846); + var G = c(949); + var H = { + body: { + classList: { + add: function a() {}, + remove: function a() {} + } + }, + addEventListener: function a() {}, + removeEventListener: function a() {}, + activeElement: { + blur: function a() {}, + nodeName: "" + }, + querySelector: function a() { + return null; + }, + querySelectorAll: function a() { + return []; + }, + getElementById: function a() { + return null; + }, + createEvent: function a() { + return { + initEvent: function a() {} + }; + }, + createElement: function a() { + return { + children: [], + childNodes: [], + style: {}, + setAttribute: function a() {}, + getElementsByTagName: function a() { + return []; + } + }; + } + }; + var I = H; + var J = function a() {}; + var K = { + document: I, + navigator: { + userAgent: "" + }, + CustomEvent: function a() { + return this; + }, + addEventListener: J, + removeEventListener: J, + getComputedStyle: function a() { + return { + getPropertyValue: function a() { + return ""; + } + }; + }, + matchMedia: function a() { + return { + matches: false, + addListener: J, + removeListener: J + }; + }, + requestAnimationFrame: function a(b) { + if (typeof setTimeout === "undefined") { + b(); + return null; + } + return setTimeout(b, 0); + }, + cancelAnimationFrame: function a(b) { + if (typeof setTimeout === "undefined") return; + clearTimeout(b); + }, + setTimeout: function a() { + return 0; + }, + clearTimeout: J, + setInterval: function a() { + return 0; + }, + clearInterval: J + }; + var L = K; + var M = { + window: L, + document: I + }; + var N = k.jU ? { + window: window, + document: document + } : M; + var O = (0, g.createContext)(N); + if (k.Ts) { + O.displayName = "EnvironmentContext"; + } + function P() { + return useContext(O); + } + function Q(a) { + var b = a.children, c = a.environment; + var d = (0, g.useState)(null), e = d[0], f = d[1]; + var h = (0, g.useMemo)(function() { + var a; + var b = e == null ? void 0 : e.ownerDocument; + var d = e == null ? void 0 : e.ownerDocument.defaultView; + var f = b ? { + document: b, + window: d + } : undefined; + var g = (a = c != null ? c : f) != null ? a : N; + return g; + }, [ + e, + c + ]); + return g.createElement(O.Provider, { + value: h + }, b, g.createElement("span", { + hidden: true, + className: "chakra-env", + ref: function a(b) { + (0, g.startTransition)(function() { + if (b) f(b); + }); + } + })); + } + if (k.Ts) { + Q.displayName = "EnvironmentProvider"; + } + var R = function a(b) { + var c = b.children, d = b.colorModeManager, e = b.portalZIndex, f = b.resetCSS, h = f === void 0 ? true : f, i = b.theme, k = i === void 0 ? {} : i, l = b.environment, m = b.cssVarsRoot; + var n = g.createElement(Q, { + environment: l + }, c); + return g.createElement(F.f6, { + theme: k, + cssVarsRoot: m + }, g.createElement(G.SG, { + colorModeManager: d, + options: k.config + }, h && g.createElement(j, null), g.createElement(F.ZL, null), e ? g.createElement(s, { + zIndex: e + }, n) : n)); + }; + var S = { + px: "1px", + 0.5: "0.125rem", + 1: "0.25rem", + 1.5: "0.375rem", + 2: "0.5rem", + 2.5: "0.625rem", + 3: "0.75rem", + 3.5: "0.875rem", + 4: "1rem", + 5: "1.25rem", + 6: "1.5rem", + 7: "1.75rem", + 8: "2rem", + 9: "2.25rem", + 10: "2.5rem", + 12: "3rem", + 14: "3.5rem", + 16: "4rem", + 20: "5rem", + 24: "6rem", + 28: "7rem", + 32: "8rem", + 36: "9rem", + 40: "10rem", + 44: "11rem", + 48: "12rem", + 52: "13rem", + 56: "14rem", + 60: "15rem", + 64: "16rem", + 72: "18rem", + 80: "20rem", + 96: "24rem" + }; + function T() { + T = Object.assign ? Object.assign.bind() : function(a) { + for(var b = 1; b < arguments.length; b++){ + var c = arguments[b]; + for(var d in c){ + if (Object.prototype.hasOwnProperty.call(c, d)) { + a[d] = c[d]; + } + } + } + return a; + }; + return T.apply(this, arguments); + } + var U = { + max: "max-content", + min: "min-content", + full: "100%", + "3xs": "14rem", + "2xs": "16rem", + xs: "20rem", + sm: "24rem", + md: "28rem", + lg: "32rem", + xl: "36rem", + "2xl": "42rem", + "3xl": "48rem", + "4xl": "56rem", + "5xl": "64rem", + "6xl": "72rem", + "7xl": "80rem", + "8xl": "90rem" + }; + var V = { + sm: "640px", + md: "768px", + lg: "1024px", + xl: "1280px" + }; + var W = T({}, S, U, { + container: V + }); + function X(a, b) { + if (Z(a)) { + a = "100%"; + } + var c = $(a); + a = b === 360 ? a : Math.min(b, Math.max(0, parseFloat(a))); + if (c) { + a = parseInt(String(a * b), 10) / 100; + } + if (Math.abs(a - b) < 0.000001) { + return 1; + } + if (b === 360) { + a = (a < 0 ? (a % b) + b : a % b) / parseFloat(String(b)); + } else { + a = (a % b) / parseFloat(String(b)); + } + return a; + } + function Y(a) { + return Math.min(1, Math.max(0, a)); + } + function Z(a) { + return (typeof a === "string" && a.indexOf(".") !== -1 && parseFloat(a) === 1); + } + function $(a) { + return typeof a === "string" && a.indexOf("%") !== -1; + } + function _(a) { + a = parseFloat(a); + if (isNaN(a) || a < 0 || a > 1) { + a = 1; + } + return a; + } + function aa(a) { + if (a <= 1) { + return "".concat(Number(a) * 100, "%"); + } + return a; + } + function ab(a) { + return a.length === 1 ? "0" + a : String(a); + } + function ac(a, b, c) { + return { + r: X(a, 255) * 255, + g: X(b, 255) * 255, + b: X(c, 255) * 255 + }; + } + function ad(a, b, c) { + a = X(a, 255); + b = X(b, 255); + c = X(c, 255); + var d = Math.max(a, b, c); + var e = Math.min(a, b, c); + var f = 0; + var g = 0; + var h = (d + e) / 2; + if (d === e) { + g = 0; + f = 0; + } else { + var i = d - e; + g = h > 0.5 ? i / (2 - d - e) : i / (d + e); + switch(d){ + case a: + f = (b - c) / i + (b < c ? 6 : 0); + break; + case b: + f = (c - a) / i + 2; + break; + case c: + f = (a - b) / i + 4; + break; + default: + break; + } + f /= 6; + } + return { + h: f, + s: g, + l: h + }; + } + function ae(a, b, c) { + if (c < 0) { + c += 1; + } + if (c > 1) { + c -= 1; + } + if (c < 1 / 6) { + return a + (b - a) * (6 * c); + } + if (c < 1 / 2) { + return b; + } + if (c < 2 / 3) { + return a + (b - a) * (2 / 3 - c) * 6; + } + return a; + } + function af(a, b, c) { + var d; + var e; + var f; + a = X(a, 360); + b = X(b, 100); + c = X(c, 100); + if (b === 0) { + e = c; + f = c; + d = c; + } else { + var g = c < 0.5 ? c * (1 + b) : c + b - c * b; + var h = 2 * c - g; + d = ae(h, g, a + 1 / 3); + e = ae(h, g, a); + f = ae(h, g, a - 1 / 3); + } + return { + r: d * 255, + g: e * 255, + b: f * 255 + }; + } + function ag(a, b, c) { + a = X(a, 255); + b = X(b, 255); + c = X(c, 255); + var d = Math.max(a, b, c); + var e = Math.min(a, b, c); + var f = 0; + var g = d; + var h = d - e; + var i = d === 0 ? 0 : h / d; + if (d === e) { + f = 0; + } else { + switch(d){ + case a: + f = (b - c) / h + (b < c ? 6 : 0); + break; + case b: + f = (c - a) / h + 2; + break; + case c: + f = (a - b) / h + 4; + break; + default: + break; + } + f /= 6; + } + return { + h: f, + s: i, + v: g + }; + } + function ah(a, b, c) { + a = X(a, 360) * 6; + b = X(b, 100); + c = X(c, 100); + var d = Math.floor(a); + var e = a - d; + var f = c * (1 - b); + var g = c * (1 - e * b); + var h = c * (1 - (1 - e) * b); + var i = d % 6; + var j = [ + c, + g, + f, + f, + h, + c + ][i]; + var k = [ + h, + c, + c, + g, + f, + f + ][i]; + var l = [ + f, + f, + h, + c, + c, + g + ][i]; + return { + r: j * 255, + g: k * 255, + b: l * 255 + }; + } + function ai(a, b, c, d) { + var e = [ + ab(Math.round(a).toString(16)), + ab(Math.round(b).toString(16)), + ab(Math.round(c).toString(16)), + ]; + if (d && e[0].startsWith(e[0].charAt(1)) && e[1].startsWith(e[1].charAt(1)) && e[2].startsWith(e[2].charAt(1))) { + return (e[0].charAt(0) + e[1].charAt(0) + e[2].charAt(0)); + } + return e.join(""); + } + function aj(a, b, c, d, e) { + var f = [ + ab(Math.round(a).toString(16)), + ab(Math.round(b).toString(16)), + ab(Math.round(c).toString(16)), + ab(al(d)), + ]; + if (e && f[0].startsWith(f[0].charAt(1)) && f[1].startsWith(f[1].charAt(1)) && f[2].startsWith(f[2].charAt(1)) && f[3].startsWith(f[3].charAt(1))) { + return (f[0].charAt(0) + f[1].charAt(0) + f[2].charAt(0) + f[3].charAt(0)); + } + return f.join(""); + } + function ak(a, b, c, d) { + var e = [ + pad2(al(d)), + pad2(Math.round(a).toString(16)), + pad2(Math.round(b).toString(16)), + pad2(Math.round(c).toString(16)), + ]; + return e.join(""); + } + function al(a) { + return Math.round(parseFloat(a) * 255).toString(16); + } + function am(a) { + return an(a) / 255; + } + function an(a) { + return parseInt(a, 16); + } + function ao(a) { + return { + r: a >> 16, + g: (a & 0xff00) >> 8, + b: a & 0xff + }; + } + var ap = { + aliceblue: "#f0f8ff", + antiquewhite: "#faebd7", + aqua: "#00ffff", + aquamarine: "#7fffd4", + azure: "#f0ffff", + beige: "#f5f5dc", + bisque: "#ffe4c4", + black: "#000000", + blanchedalmond: "#ffebcd", + blue: "#0000ff", + blueviolet: "#8a2be2", + brown: "#a52a2a", + burlywood: "#deb887", + cadetblue: "#5f9ea0", + chartreuse: "#7fff00", + chocolate: "#d2691e", + coral: "#ff7f50", + cornflowerblue: "#6495ed", + cornsilk: "#fff8dc", + crimson: "#dc143c", + cyan: "#00ffff", + darkblue: "#00008b", + darkcyan: "#008b8b", + darkgoldenrod: "#b8860b", + darkgray: "#a9a9a9", + darkgreen: "#006400", + darkgrey: "#a9a9a9", + darkkhaki: "#bdb76b", + darkmagenta: "#8b008b", + darkolivegreen: "#556b2f", + darkorange: "#ff8c00", + darkorchid: "#9932cc", + darkred: "#8b0000", + darksalmon: "#e9967a", + darkseagreen: "#8fbc8f", + darkslateblue: "#483d8b", + darkslategray: "#2f4f4f", + darkslategrey: "#2f4f4f", + darkturquoise: "#00ced1", + darkviolet: "#9400d3", + deeppink: "#ff1493", + deepskyblue: "#00bfff", + dimgray: "#696969", + dimgrey: "#696969", + dodgerblue: "#1e90ff", + firebrick: "#b22222", + floralwhite: "#fffaf0", + forestgreen: "#228b22", + fuchsia: "#ff00ff", + gainsboro: "#dcdcdc", + ghostwhite: "#f8f8ff", + goldenrod: "#daa520", + gold: "#ffd700", + gray: "#808080", + green: "#008000", + greenyellow: "#adff2f", + grey: "#808080", + honeydew: "#f0fff0", + hotpink: "#ff69b4", + indianred: "#cd5c5c", + indigo: "#4b0082", + ivory: "#fffff0", + khaki: "#f0e68c", + lavenderblush: "#fff0f5", + lavender: "#e6e6fa", + lawngreen: "#7cfc00", + lemonchiffon: "#fffacd", + lightblue: "#add8e6", + lightcoral: "#f08080", + lightcyan: "#e0ffff", + lightgoldenrodyellow: "#fafad2", + lightgray: "#d3d3d3", + lightgreen: "#90ee90", + lightgrey: "#d3d3d3", + lightpink: "#ffb6c1", + lightsalmon: "#ffa07a", + lightseagreen: "#20b2aa", + lightskyblue: "#87cefa", + lightslategray: "#778899", + lightslategrey: "#778899", + lightsteelblue: "#b0c4de", + lightyellow: "#ffffe0", + lime: "#00ff00", + limegreen: "#32cd32", + linen: "#faf0e6", + magenta: "#ff00ff", + maroon: "#800000", + mediumaquamarine: "#66cdaa", + mediumblue: "#0000cd", + mediumorchid: "#ba55d3", + mediumpurple: "#9370db", + mediumseagreen: "#3cb371", + mediumslateblue: "#7b68ee", + mediumspringgreen: "#00fa9a", + mediumturquoise: "#48d1cc", + mediumvioletred: "#c71585", + midnightblue: "#191970", + mintcream: "#f5fffa", + mistyrose: "#ffe4e1", + moccasin: "#ffe4b5", + navajowhite: "#ffdead", + navy: "#000080", + oldlace: "#fdf5e6", + olive: "#808000", + olivedrab: "#6b8e23", + orange: "#ffa500", + orangered: "#ff4500", + orchid: "#da70d6", + palegoldenrod: "#eee8aa", + palegreen: "#98fb98", + paleturquoise: "#afeeee", + palevioletred: "#db7093", + papayawhip: "#ffefd5", + peachpuff: "#ffdab9", + peru: "#cd853f", + pink: "#ffc0cb", + plum: "#dda0dd", + powderblue: "#b0e0e6", + purple: "#800080", + rebeccapurple: "#663399", + red: "#ff0000", + rosybrown: "#bc8f8f", + royalblue: "#4169e1", + saddlebrown: "#8b4513", + salmon: "#fa8072", + sandybrown: "#f4a460", + seagreen: "#2e8b57", + seashell: "#fff5ee", + sienna: "#a0522d", + silver: "#c0c0c0", + skyblue: "#87ceeb", + slateblue: "#6a5acd", + slategray: "#708090", + slategrey: "#708090", + snow: "#fffafa", + springgreen: "#00ff7f", + steelblue: "#4682b4", + tan: "#d2b48c", + teal: "#008080", + thistle: "#d8bfd8", + tomato: "#ff6347", + turquoise: "#40e0d0", + violet: "#ee82ee", + wheat: "#f5deb3", + white: "#ffffff", + whitesmoke: "#f5f5f5", + yellow: "#ffff00", + yellowgreen: "#9acd32" + }; + function aq(a) { + var b = { + r: 0, + g: 0, + b: 0 + }; + var c = 1; + var d = null; + var e = null; + var f = null; + var g = false; + var h = false; + if (typeof a === "string") { + a = ax(a); + } + if (typeof a === "object") { + if (ay(a.r) && ay(a.g) && ay(a.b)) { + b = ac(a.r, a.g, a.b); + g = true; + h = String(a.r).substr(-1) === "%" ? "prgb" : "rgb"; + } else if (ay(a.h) && ay(a.s) && ay(a.v)) { + d = aa(a.s); + e = aa(a.v); + b = ah(a.h, d, e); + g = true; + h = "hsv"; + } else if (ay(a.h) && ay(a.s) && ay(a.l)) { + d = aa(a.s); + f = aa(a.l); + b = af(a.h, d, f); + g = true; + h = "hsl"; + } + if (Object.prototype.hasOwnProperty.call(a, "a")) { + c = a.a; + } + } + c = _(c); + return { + ok: g, + format: a.format || h, + r: Math.min(255, Math.max(b.r, 0)), + g: Math.min(255, Math.max(b.g, 0)), + b: Math.min(255, Math.max(b.b, 0)), + a: c + }; + } + var ar = "[-\\+]?\\d+%?"; + var as = "[-\\+]?\\d*\\.\\d+%?"; + var at = "(?:".concat(as, ")|(?:").concat(ar, ")"); + var au = "[\\s|\\(]+(".concat(at, ")[,|\\s]+(").concat(at, ")[,|\\s]+(").concat(at, ")\\s*\\)?"); + var av = "[\\s|\\(]+(".concat(at, ")[,|\\s]+(").concat(at, ")[,|\\s]+(").concat(at, ")[,|\\s]+(").concat(at, ")\\s*\\)?"); + var aw = { + CSS_UNIT: new RegExp(at), + rgb: new RegExp("rgb" + au), + rgba: new RegExp("rgba" + av), + hsl: new RegExp("hsl" + au), + hsla: new RegExp("hsla" + av), + hsv: new RegExp("hsv" + au), + hsva: new RegExp("hsva" + av), + hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, + hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ + }; + function ax(a) { + a = a.trim().toLowerCase(); + if (a.length === 0) { + return false; + } + var b = false; + if (ap[a]) { + a = ap[a]; + b = true; + } else if (a === "transparent") { + return { + r: 0, + g: 0, + b: 0, + a: 0, + format: "name" + }; + } + var c = aw.rgb.exec(a); + if (c) { + return { + r: c[1], + g: c[2], + b: c[3] + }; + } + c = aw.rgba.exec(a); + if (c) { + return { + r: c[1], + g: c[2], + b: c[3], + a: c[4] + }; + } + c = aw.hsl.exec(a); + if (c) { + return { + h: c[1], + s: c[2], + l: c[3] + }; + } + c = aw.hsla.exec(a); + if (c) { + return { + h: c[1], + s: c[2], + l: c[3], + a: c[4] + }; + } + c = aw.hsv.exec(a); + if (c) { + return { + h: c[1], + s: c[2], + v: c[3] + }; + } + c = aw.hsva.exec(a); + if (c) { + return { + h: c[1], + s: c[2], + v: c[3], + a: c[4] + }; + } + c = aw.hex8.exec(a); + if (c) { + return { + r: an(c[1]), + g: an(c[2]), + b: an(c[3]), + a: am(c[4]), + format: b ? "name" : "hex8" + }; + } + c = aw.hex6.exec(a); + if (c) { + return { + r: an(c[1]), + g: an(c[2]), + b: an(c[3]), + format: b ? "name" : "hex" + }; + } + c = aw.hex4.exec(a); + if (c) { + return { + r: an(c[1] + c[1]), + g: an(c[2] + c[2]), + b: an(c[3] + c[3]), + a: am(c[4] + c[4]), + format: b ? "name" : "hex8" + }; + } + c = aw.hex3.exec(a); + if (c) { + return { + r: an(c[1] + c[1]), + g: an(c[2] + c[2]), + b: an(c[3] + c[3]), + format: b ? "name" : "hex" + }; + } + return false; + } + function ay(a) { + return Boolean(aw.CSS_UNIT.exec(String(a))); + } + var az = (function() { + function a(b, c) { + if (b === void 0) { + b = ""; + } + if (c === void 0) { + c = {}; + } + var d; + if (b instanceof a) { + return b; + } + if (typeof b === "number") { + b = ao(b); + } + this.originalInput = b; + var e = aq(b); + this.originalInput = b; + this.r = e.r; + this.g = e.g; + this.b = e.b; + this.a = e.a; + this.roundA = Math.round(100 * this.a) / 100; + this.format = (d = c.format) !== null && d !== void 0 ? d : e.format; + this.gradientType = c.gradientType; + if (this.r < 1) { + this.r = Math.round(this.r); + } + if (this.g < 1) { + this.g = Math.round(this.g); + } + if (this.b < 1) { + this.b = Math.round(this.b); + } + this.isValid = e.ok; + } + a.prototype.isDark = function() { + return this.getBrightness() < 128; + }; + a.prototype.isLight = function() { + return !this.isDark(); + }; + a.prototype.getBrightness = function() { + var a = this.toRgb(); + return (a.r * 299 + a.g * 587 + a.b * 114) / 1000; + }; + a.prototype.getLuminance = function() { + var a = this.toRgb(); + var b; + var c; + var d; + var e = a.r / 255; + var f = a.g / 255; + var g = a.b / 255; + if (e <= 0.03928) { + b = e / 12.92; + } else { + b = Math.pow((e + 0.055) / 1.055, 2.4); + } + if (f <= 0.03928) { + c = f / 12.92; + } else { + c = Math.pow((f + 0.055) / 1.055, 2.4); + } + if (g <= 0.03928) { + d = g / 12.92; + } else { + d = Math.pow((g + 0.055) / 1.055, 2.4); + } + return 0.2126 * b + 0.7152 * c + 0.0722 * d; + }; + a.prototype.getAlpha = function() { + return this.a; + }; + a.prototype.setAlpha = function(a) { + this.a = _(a); + this.roundA = Math.round(100 * this.a) / 100; + return this; + }; + a.prototype.toHsv = function() { + var a = ag(this.r, this.g, this.b); + return { + h: a.h * 360, + s: a.s, + v: a.v, + a: this.a + }; + }; + a.prototype.toHsvString = function() { + var a = ag(this.r, this.g, this.b); + var b = Math.round(a.h * 360); + var c = Math.round(a.s * 100); + var d = Math.round(a.v * 100); + return this.a === 1 ? "hsv(".concat(b, ", ").concat(c, "%, ").concat(d, "%)") : "hsva(".concat(b, ", ").concat(c, "%, ").concat(d, "%, ").concat(this.roundA, ")"); + }; + a.prototype.toHsl = function() { + var a = ad(this.r, this.g, this.b); + return { + h: a.h * 360, + s: a.s, + l: a.l, + a: this.a + }; + }; + a.prototype.toHslString = function() { + var a = ad(this.r, this.g, this.b); + var b = Math.round(a.h * 360); + var c = Math.round(a.s * 100); + var d = Math.round(a.l * 100); + return this.a === 1 ? "hsl(".concat(b, ", ").concat(c, "%, ").concat(d, "%)") : "hsla(".concat(b, ", ").concat(c, "%, ").concat(d, "%, ").concat(this.roundA, ")"); + }; + a.prototype.toHex = function(a) { + if (a === void 0) { + a = false; + } + return ai(this.r, this.g, this.b, a); + }; + a.prototype.toHexString = function(a) { + if (a === void 0) { + a = false; + } + return "#" + this.toHex(a); + }; + a.prototype.toHex8 = function(a) { + if (a === void 0) { + a = false; + } + return aj(this.r, this.g, this.b, this.a, a); + }; + a.prototype.toHex8String = function(a) { + if (a === void 0) { + a = false; + } + return "#" + this.toHex8(a); + }; + a.prototype.toRgb = function() { + return { + r: Math.round(this.r), + g: Math.round(this.g), + b: Math.round(this.b), + a: this.a + }; + }; + a.prototype.toRgbString = function() { + var a = Math.round(this.r); + var b = Math.round(this.g); + var c = Math.round(this.b); + return this.a === 1 ? "rgb(".concat(a, ", ").concat(b, ", ").concat(c, ")") : "rgba(".concat(a, ", ").concat(b, ", ").concat(c, ", ").concat(this.roundA, ")"); + }; + a.prototype.toPercentageRgb = function() { + var a = function(a) { + return "".concat(Math.round(X(a, 255) * 100), "%"); + }; + return { + r: a(this.r), + g: a(this.g), + b: a(this.b), + a: this.a + }; + }; + a.prototype.toPercentageRgbString = function() { + var a = function(a) { + return Math.round(X(a, 255) * 100); + }; + return this.a === 1 ? "rgb(".concat(a(this.r), "%, ").concat(a(this.g), "%, ").concat(a(this.b), "%)") : "rgba(".concat(a(this.r), "%, ").concat(a(this.g), "%, ").concat(a(this.b), "%, ").concat(this.roundA, ")"); + }; + a.prototype.toName = function() { + if (this.a === 0) { + return "transparent"; + } + if (this.a < 1) { + return false; + } + var a = "#" + ai(this.r, this.g, this.b, false); + for(var b = 0, c = Object.entries(ap); b < c.length; b++){ + var d = c[b], e = d[0], f = d[1]; + if (a === f) { + return e; + } + } + return false; + }; + a.prototype.toString = function(a) { + var b = Boolean(a); + a = a !== null && a !== void 0 ? a : this.format; + var c = false; + var d = this.a < 1 && this.a >= 0; + var e = !b && d && (a.startsWith("hex") || a === "name"); + if (e) { + if (a === "name" && this.a === 0) { + return this.toName(); + } + return this.toRgbString(); + } + if (a === "rgb") { + c = this.toRgbString(); + } + if (a === "prgb") { + c = this.toPercentageRgbString(); + } + if (a === "hex" || a === "hex6") { + c = this.toHexString(); + } + if (a === "hex3") { + c = this.toHexString(true); + } + if (a === "hex4") { + c = this.toHex8String(true); + } + if (a === "hex8") { + c = this.toHex8String(); + } + if (a === "name") { + c = this.toName(); + } + if (a === "hsl") { + c = this.toHslString(); + } + if (a === "hsv") { + c = this.toHsvString(); + } + return c || this.toHexString(); + }; + a.prototype.toNumber = function() { + return ((Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b)); + }; + a.prototype.clone = function() { + return new a(this.toString()); + }; + a.prototype.lighten = function(b) { + if (b === void 0) { + b = 10; + } + var c = this.toHsl(); + c.l += b / 100; + c.l = Y(c.l); + return new a(c); + }; + a.prototype.brighten = function(b) { + if (b === void 0) { + b = 10; + } + var c = this.toRgb(); + c.r = Math.max(0, Math.min(255, c.r - Math.round(255 * -(b / 100)))); + c.g = Math.max(0, Math.min(255, c.g - Math.round(255 * -(b / 100)))); + c.b = Math.max(0, Math.min(255, c.b - Math.round(255 * -(b / 100)))); + return new a(c); + }; + a.prototype.darken = function(b) { + if (b === void 0) { + b = 10; + } + var c = this.toHsl(); + c.l -= b / 100; + c.l = Y(c.l); + return new a(c); + }; + a.prototype.tint = function(a) { + if (a === void 0) { + a = 10; + } + return this.mix("white", a); + }; + a.prototype.shade = function(a) { + if (a === void 0) { + a = 10; + } + return this.mix("black", a); + }; + a.prototype.desaturate = function(b) { + if (b === void 0) { + b = 10; + } + var c = this.toHsl(); + c.s -= b / 100; + c.s = Y(c.s); + return new a(c); + }; + a.prototype.saturate = function(b) { + if (b === void 0) { + b = 10; + } + var c = this.toHsl(); + c.s += b / 100; + c.s = Y(c.s); + return new a(c); + }; + a.prototype.greyscale = function() { + return this.desaturate(100); + }; + a.prototype.spin = function(b) { + var c = this.toHsl(); + var d = (c.h + b) % 360; + c.h = d < 0 ? 360 + d : d; + return new a(c); + }; + a.prototype.mix = function(b, c) { + if (c === void 0) { + c = 50; + } + var d = this.toRgb(); + var e = new a(b).toRgb(); + var f = c / 100; + var g = { + r: (e.r - d.r) * f + d.r, + g: (e.g - d.g) * f + d.g, + b: (e.b - d.b) * f + d.b, + a: (e.a - d.a) * f + d.a + }; + return new a(g); + }; + a.prototype.analogous = function(b, c) { + if (b === void 0) { + b = 6; + } + if (c === void 0) { + c = 30; + } + var d = this.toHsl(); + var e = 360 / c; + var f = [ + this + ]; + for(d.h = (d.h - ((e * b) >> 1) + 720) % 360; --b;){ + d.h = (d.h + e) % 360; + f.push(new a(d)); + } + return f; + }; + a.prototype.complement = function() { + var b = this.toHsl(); + b.h = (b.h + 180) % 360; + return new a(b); + }; + a.prototype.monochromatic = function(b) { + if (b === void 0) { + b = 6; + } + var c = this.toHsv(); + var d = c.h; + var e = c.s; + var f = c.v; + var g = []; + var h = 1 / b; + while(b--){ + g.push(new a({ + h: d, + s: e, + v: f + })); + f = (f + h) % 1; + } + return g; + }; + a.prototype.splitcomplement = function() { + var b = this.toHsl(); + var c = b.h; + return [ + this, + new a({ + h: (c + 72) % 360, + s: b.s, + l: b.l + }), + new a({ + h: (c + 216) % 360, + s: b.s, + l: b.l + }), + ]; + }; + a.prototype.onBackground = function(b) { + var c = this.toRgb(); + var d = new a(b).toRgb(); + return new a({ + r: d.r + (c.r - d.r) * c.a, + g: d.g + (c.g - d.g) * c.a, + b: d.b + (c.b - d.b) * c.a + }); + }; + a.prototype.triad = function() { + return this.polyad(3); + }; + a.prototype.tetrad = function() { + return this.polyad(4); + }; + a.prototype.polyad = function(b) { + var c = this.toHsl(); + var d = c.h; + var e = [ + this + ]; + var f = 360 / b; + for(var g = 1; g < b; g++){ + e.push(new a({ + h: (d + g * f) % 360, + s: c.s, + l: c.l + })); + } + return e; + }; + a.prototype.equals = function(b) { + return (this.toRgbString() === new a(b).toRgbString()); + }; + return a; + })(); + function aA(a, b) { + if (a === void 0) { + a = ""; + } + if (b === void 0) { + b = {}; + } + return new az(a, b); + } + function aB(a) { + if (a === void 0) { + a = {}; + } + if (a.count !== undefined && a.count !== null) { + var b = a.count; + var c = []; + a.count = undefined; + while(b > c.length){ + a.count = null; + if (a.seed) { + a.seed += 1; + } + c.push(aB(a)); + } + a.count = b; + return c; + } + var d = aC(a.hue, a.seed); + var e = aD(d, a); + var f = aE(d, e, a); + var g = { + h: d, + s: e, + v: f + }; + if (a.alpha !== undefined) { + g.a = a.alpha; + } + return new az(g); + } + function aC(a, b) { + var c = aG(a); + var d = aI(c, b); + if (d < 0) { + d = 360 + d; + } + return d; + } + function aD(a, b) { + if (b.hue === "monochrome") { + return 0; + } + if (b.luminosity === "random") { + return aI([ + 0, + 100 + ], b.seed); + } + var c = aH(a).saturationRange; + var d = c[0]; + var e = c[1]; + switch(b.luminosity){ + case "bright": + d = 55; + break; + case "dark": + d = e - 10; + break; + case "light": + e = 55; + break; + default: + break; + } + return aI([ + d, + e + ], b.seed); + } + function aE(a, b, c) { + var d = aF(a, b); + var e = 100; + switch(c.luminosity){ + case "dark": + e = d + 20; + break; + case "light": + d = (e + d) / 2; + break; + case "random": + d = 0; + e = 100; + break; + default: + break; + } + return aI([ + d, + e + ], c.seed); + } + function aF(a, b) { + var c = aH(a).lowerBounds; + for(var d = 0; d < c.length - 1; d++){ + var e = c[d][0]; + var f = c[d][1]; + var g = c[d + 1][0]; + var h = c[d + 1][1]; + if (b >= e && b <= g) { + var i = (h - f) / (g - e); + var j = f - i * e; + return i * b + j; + } + } + return 0; + } + function aG(a) { + var b = parseInt(a, 10); + if (!Number.isNaN(b) && b < 360 && b > 0) { + return [ + b, + b + ]; + } + if (typeof a === "string") { + var c = aK.find(function(b) { + return b.name === a; + }); + if (c) { + var d = aJ(c); + if (d.hueRange) { + return d.hueRange; + } + } + var e = new az(a); + if (e.isValid) { + var f = e.toHsv().h; + return [ + f, + f + ]; + } + } + return [ + 0, + 360 + ]; + } + function aH(a) { + if (a >= 334 && a <= 360) { + a -= 360; + } + for(var b = 0, c = aK; b < c.length; b++){ + var d = c[b]; + var e = aJ(d); + if (e.hueRange && a >= e.hueRange[0] && a <= e.hueRange[1]) { + return e; + } + } + throw Error("Color not found"); + } + function aI(a, b) { + if (b === undefined) { + return Math.floor(a[0] + Math.random() * (a[1] + 1 - a[0])); + } + var c = a[1] || 1; + var d = a[0] || 0; + b = (b * 9301 + 49297) % 233280; + var e = b / 233280.0; + return Math.floor(d + e * (c - d)); + } + function aJ(a) { + var b = a.lowerBounds[0][0]; + var c = a.lowerBounds[a.lowerBounds.length - 1][0]; + var d = a.lowerBounds[a.lowerBounds.length - 1][1]; + var e = a.lowerBounds[0][1]; + return { + name: a.name, + hueRange: a.hueRange, + lowerBounds: a.lowerBounds, + saturationRange: [ + b, + c + ], + brightnessRange: [ + d, + e + ] + }; + } + var aK = [ + { + name: "monochrome", + hueRange: null, + lowerBounds: [ + [ + 0, + 0 + ], + [ + 100, + 0 + ], + ] + }, + { + name: "red", + hueRange: [ + -26, + 18 + ], + lowerBounds: [ + [ + 20, + 100 + ], + [ + 30, + 92 + ], + [ + 40, + 89 + ], + [ + 50, + 85 + ], + [ + 60, + 78 + ], + [ + 70, + 70 + ], + [ + 80, + 60 + ], + [ + 90, + 55 + ], + [ + 100, + 50 + ], + ] + }, + { + name: "orange", + hueRange: [ + 19, + 46 + ], + lowerBounds: [ + [ + 20, + 100 + ], + [ + 30, + 93 + ], + [ + 40, + 88 + ], + [ + 50, + 86 + ], + [ + 60, + 85 + ], + [ + 70, + 70 + ], + [ + 100, + 70 + ], + ] + }, + { + name: "yellow", + hueRange: [ + 47, + 62 + ], + lowerBounds: [ + [ + 25, + 100 + ], + [ + 40, + 94 + ], + [ + 50, + 89 + ], + [ + 60, + 86 + ], + [ + 70, + 84 + ], + [ + 80, + 82 + ], + [ + 90, + 80 + ], + [ + 100, + 75 + ], + ] + }, + { + name: "green", + hueRange: [ + 63, + 178 + ], + lowerBounds: [ + [ + 30, + 100 + ], + [ + 40, + 90 + ], + [ + 50, + 85 + ], + [ + 60, + 81 + ], + [ + 70, + 74 + ], + [ + 80, + 64 + ], + [ + 90, + 50 + ], + [ + 100, + 40 + ], + ] + }, + { + name: "blue", + hueRange: [ + 179, + 257 + ], + lowerBounds: [ + [ + 20, + 100 + ], + [ + 30, + 86 + ], + [ + 40, + 80 + ], + [ + 50, + 74 + ], + [ + 60, + 60 + ], + [ + 70, + 52 + ], + [ + 80, + 44 + ], + [ + 90, + 39 + ], + [ + 100, + 35 + ], + ] + }, + { + name: "purple", + hueRange: [ + 258, + 282 + ], + lowerBounds: [ + [ + 20, + 100 + ], + [ + 30, + 87 + ], + [ + 40, + 79 + ], + [ + 50, + 70 + ], + [ + 60, + 65 + ], + [ + 70, + 59 + ], + [ + 80, + 52 + ], + [ + 90, + 45 + ], + [ + 100, + 42 + ], + ] + }, + { + name: "pink", + hueRange: [ + 283, + 334 + ], + lowerBounds: [ + [ + 20, + 100 + ], + [ + 30, + 90 + ], + [ + 40, + 86 + ], + [ + 60, + 84 + ], + [ + 80, + 80 + ], + [ + 90, + 75 + ], + [ + 100, + 73 + ], + ] + }, + ]; + var aL = function a(b, c, d) { + var e = (0, k.Wf)(b, "colors." + c, c); + var f = new az(e), g = f.isValid; + return g ? e : d; + }; + var aM = function a(b) { + return function(a) { + var c = aL(a, b); + var d = new az(c).isDark(); + return d ? "dark" : "light"; + }; + }; + var aN = function a(b) { + return function(a) { + return aM(b)(a) === "dark"; + }; + }; + var aO = function a(b) { + return function(a) { + return aM(b)(a) === "light"; + }; + }; + var aP = function a(b, c) { + return function(a) { + var d = aL(a, b); + return new az(d).setAlpha(c).toRgbString(); + }; + }; + var aQ = function a(b, c) { + return function(a) { + var d = aL(a, b); + return new TinyColor(d).mix("#fff", c).toHexString(); + }; + }; + var aR = function a(b, c) { + return function(a) { + var d = aL(a, b); + return new TinyColor(d).mix("#000", c).toHexString(); + }; + }; + var aS = function a(b, c) { + return function(a) { + var d = aL(a, b); + return new TinyColor(d).darken(c).toHexString(); + }; + }; + var aT = function a(b, c) { + return function(a) { + return new TinyColor(aL(a, b)).lighten(c).toHexString(); + }; + }; + var aU = function a(b, c) { + return function(a) { + return readability(aL(a, c), aL(a, b)); + }; + }; + var aV = function a(b, c, d) { + return function(a) { + return isReadable(aL(a, c), aL(a, b), d); + }; + }; + var aW = function a(b) { + return function(a) { + return new TinyColor(aL(a, b)).complement().toHexString(); + }; + }; + function aX(a, b) { + if (a === void 0) { + a = "1rem"; + } + if (b === void 0) { + b = "rgba(255, 255, 255, 0.15)"; + } + return { + backgroundImage: "linear-gradient(\n 45deg,\n " + b + " 25%,\n transparent 25%,\n transparent 50%,\n " + b + " 50%,\n " + b + " 75%,\n transparent 75%,\n transparent\n )", + backgroundSize: a + " " + a + }; + } + function aY(a) { + var b = aB().toHexString(); + if (!a || (0, k.Qr)(a)) { + return b; + } + if (a.string && a.colors) { + return a$(a.string, a.colors); + } + if (a.string && !a.colors) { + return aZ(a.string); + } + if (a.colors && !a.string) { + return a_(a.colors); + } + return b; + } + function aZ(a) { + var b = 0; + if (a.length === 0) return b.toString(); + for(var c = 0; c < a.length; c += 1){ + b = a.charCodeAt(c) + ((b << 5) - b); + b = b & b; + } + var d = "#"; + for(var e = 0; e < 3; e += 1){ + var f = (b >> (e * 8)) & 255; + d += ("00" + f.toString(16)).substr(-2); + } + return d; + } + function a$(a, b) { + var c = 0; + if (a.length === 0) return b[0]; + for(var d = 0; d < a.length; d += 1){ + c = a.charCodeAt(d) + ((c << 5) - c); + c = c & c; + } + c = ((c % b.length) + b.length) % b.length; + return b[c]; + } + function a_(a) { + return a[Math.floor(Math.random() * a.length)]; + } + function a0(a, b) { + return function(c) { + return c.colorMode === "dark" ? b : a; + }; + } + function a1(a) { + var b = a.orientation, c = a.vertical, d = a.horizontal; + if (!b) return {}; + return b === "vertical" ? c : d; + } + function a2() { + a2 = Object.assign ? Object.assign.bind() : function(a) { + for(var b = 1; b < arguments.length; b++){ + var c = arguments[b]; + for(var d in c){ + if (Object.prototype.hasOwnProperty.call(c, d)) { + a[d] = c[d]; + } + } + } + return a; + }; + return a2.apply(this, arguments); + } + var a3 = function a(b) { + (0, k.ZK)({ + condition: true, + message: [ + "[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon", + "simply pass the breakpoints as an object. Remove the createBreakpoint(..) call", + ].join("") + }); + return a2({ + base: "0em" + }, b); + }; + function a4(a, b) { + for(var c = 0; c < b.length; c++){ + var d = b[c]; + d.enumerable = d.enumerable || false; + d.configurable = true; + if ("value" in d) d.writable = true; + Object.defineProperty(a, d.key, d); + } + } + function a5(a, b, c) { + if (b) a4(a.prototype, b); + if (c) a4(a, c); + Object.defineProperty(a, "prototype", { + writable: false + }); + return a; + } + var a6 = (function() { + function a(a) { + var b = this; + this.map = {}; + this.called = false; + this.assert = function() { + if (!b.called) { + b.called = true; + return; + } + throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?"); + }; + this.parts = function() { + b.assert(); + for(var a = arguments.length, c = new Array(a), d = 0; d < a; d++){ + c[d] = arguments[d]; + } + for(var e = 0, f = c; e < f.length; e++){ + var g = f[e]; + b.map[g] = b.toPart(g); + } + return b; + }; + this.extend = function() { + for(var a = arguments.length, c = new Array(a), d = 0; d < a; d++){ + c[d] = arguments[d]; + } + for(var e = 0, f = c; e < f.length; e++){ + var g = f[e]; + if (g in b.map) continue; + b.map[g] = b.toPart(g); + } + return b; + }; + this.toPart = function(a) { + var c = [ + "container", + "root" + ].includes(a != null ? a : "") ? [ + b.name + ] : [ + b.name, + a + ]; + var d = c.filter(Boolean).join("__"); + var e = "chakra-" + d; + var f = { + className: e, + selector: "." + e, + toString: function b() { + return a; + } + }; + return f; + }; + this.__type = {}; + } + a5(a, [ + { + key: "selectors", + get: function a() { + var b = (0, k.sq)(Object.entries(this.map).map(function(a) { + var b = a[0], c = a[1]; + return [ + b, + c.selector + ]; + })); + return b; + } + }, + { + key: "classNames", + get: function a() { + var b = (0, k.sq)(Object.entries(this.map).map(function(a) { + var b = a[0], c = a[1]; + return [ + b, + c.className + ]; + })); + return b; + } + }, + { + key: "keys", + get: function a() { + return Object.keys(this.map); + } + }, + ]); + return a; + })(); + function a7(a) { + return new a6(a); + } + function a8(a) { + if ((0, k.Kn)(a) && a.reference) { + return a.reference; + } + return String(a); + } + var a9 = function a(b) { + for(var c = arguments.length, d = new Array(c > 1 ? c - 1 : 0), e = 1; e < c; e++){ + d[e - 1] = arguments[e]; + } + return d.map(a8).join(" " + b + " ").replace(/calc/g, ""); + }; + var ba = function a() { + for(var b = arguments.length, c = new Array(b), d = 0; d < b; d++){ + c[d] = arguments[d]; + } + return ("calc(" + a9.apply(void 0, [ + "+" + ].concat(c)) + ")"); + }; + var bb = function a() { + for(var b = arguments.length, c = new Array(b), d = 0; d < b; d++){ + c[d] = arguments[d]; + } + return ("calc(" + a9.apply(void 0, [ + "-" + ].concat(c)) + ")"); + }; + var bc = function a() { + for(var b = arguments.length, c = new Array(b), d = 0; d < b; d++){ + c[d] = arguments[d]; + } + return ("calc(" + a9.apply(void 0, [ + "*" + ].concat(c)) + ")"); + }; + var bd = function a() { + for(var b = arguments.length, c = new Array(b), d = 0; d < b; d++){ + c[d] = arguments[d]; + } + return ("calc(" + a9.apply(void 0, [ + "/" + ].concat(c)) + ")"); + }; + var be = function a(b) { + var c = a8(b); + if (c != null && !Number.isNaN(parseFloat(c))) { + return String(c).startsWith("-") ? String(c).slice(1) : "-" + c; + } + return bc(c, -1); + }; + var bf = Object.assign(function(a) { + return { + add: function b() { + for(var c = arguments.length, d = new Array(c), e = 0; e < c; e++){ + d[e] = arguments[e]; + } + return bf(ba.apply(void 0, [ + a + ].concat(d))); + }, + subtract: function b() { + for(var c = arguments.length, d = new Array(c), e = 0; e < c; e++){ + d[e] = arguments[e]; + } + return bf(bb.apply(void 0, [ + a + ].concat(d))); + }, + multiply: function b() { + for(var c = arguments.length, d = new Array(c), e = 0; e < c; e++){ + d[e] = arguments[e]; + } + return bf(bc.apply(void 0, [ + a + ].concat(d))); + }, + divide: function b() { + for(var c = arguments.length, d = new Array(c), e = 0; e < c; e++){ + d[e] = arguments[e]; + } + return bf(bd.apply(void 0, [ + a + ].concat(d))); + }, + negate: function b() { + return bf(be(a)); + }, + toString: function b() { + return a.toString(); + } + }; + }, { + add: ba, + subtract: bb, + multiply: bc, + divide: bd, + negate: be + }); + function bg(a) { + return !Number.isInteger(parseFloat(a.toString())); + } + function bh(a, b) { + if (b === void 0) { + b = "-"; + } + return a.replace(/\s+/g, b); + } + function bi(a) { + var b = bh(a.toString()); + if (b.includes("\\.")) return a; + return bg(a) ? b.replace(".", "\\.") : a; + } + function bj(a, b) { + if (b === void 0) { + b = ""; + } + return [ + b, + bi(a) + ].filter(Boolean).join("-"); + } + function bk(a, b) { + return ("var(" + bi(a) + (b ? ", " + b : "") + ")"); + } + function bl(a, b) { + if (b === void 0) { + b = ""; + } + return "--" + bj(a, b); + } + function bm(a, b) { + var c = bl(a, b == null ? void 0 : b.prefix); + return { + variable: c, + reference: bk(c, bn(b == null ? void 0 : b.fallback)) + }; + } + function bn(a) { + if (typeof a === "string") return a; + return a == null ? void 0 : a.reference; + } + var bo = a7("accordion").parts("root", "container", "button", "panel").extend("icon"); + var bp = a7("alert").parts("title", "description", "container").extend("icon", "spinner"); + var bq = a7("avatar").parts("label", "badge", "container").extend("excessLabel", "group"); + var br = a7("breadcrumb").parts("link", "item", "container").extend("separator"); + var bs = a7("button").parts(); + var bt = a7("checkbox").parts("control", "icon", "container").extend("label"); + var bu = a7("progress").parts("track", "filledTrack").extend("label"); + var bv = a7("drawer").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"); + var bw = a7("editable").parts("preview", "input", "textarea"); + var bx = a7("form").parts("container", "requiredIndicator", "helperText"); + var by = a7("formError").parts("text", "icon"); + var bz = a7("input").parts("addon", "field", "element"); + var bA = a7("list").parts("container", "item", "icon"); + var bB = a7("menu").parts("button", "list", "item").extend("groupTitle", "command", "divider"); + var bC = a7("modal").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"); + var bD = a7("numberinput").parts("root", "field", "stepperGroup", "stepper"); + var bE = a7("pininput").parts("field"); + var bF = a7("popover").parts("content", "header", "body", "footer").extend("popper", "arrow", "closeButton"); + var bG = a7("progress").parts("label", "filledTrack", "track"); + var bH = a7("radio").parts("container", "control", "label"); + var bI = a7("select").parts("field", "icon"); + var bJ = a7("slider").parts("container", "track", "thumb", "filledTrack"); + var bK = a7("stat").parts("container", "label", "helpText", "number", "icon"); + var bL = a7("switch").parts("container", "track", "thumb"); + var bM = a7("table").parts("table", "thead", "tbody", "tr", "th", "td", "tfoot", "caption"); + var bN = a7("tabs").parts("root", "tab", "tablist", "tabpanel", "tabpanels", "indicator"); + var bO = a7("tag").parts("container", "label", "closeButton"); + var bP = { + letterSpacings: { + tighter: "-0.05em", + tight: "-0.025em", + normal: "0", + wide: "0.025em", + wider: "0.05em", + widest: "0.1em" + }, + lineHeights: { + normal: "normal", + none: 1, + shorter: 1.25, + short: 1.375, + base: 1.5, + tall: 1.625, + taller: "2", + 3: ".75rem", + 4: "1rem", + 5: "1.25rem", + 6: "1.5rem", + 7: "1.75rem", + 8: "2rem", + 9: "2.25rem", + 10: "2.5rem" + }, + fontWeights: { + hairline: 100, + thin: 200, + light: 300, + normal: 400, + medium: 500, + semibold: 600, + bold: 700, + extrabold: 800, + black: 900 + }, + fonts: { + heading: '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', + body: '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', + mono: 'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace' + }, + fontSizes: { + xs: "0.75rem", + sm: "0.875rem", + md: "1rem", + lg: "1.125rem", + xl: "1.25rem", + "2xl": "1.5rem", + "3xl": "1.875rem", + "4xl": "2.25rem", + "5xl": "3rem", + "6xl": "3.75rem", + "7xl": "4.5rem", + "8xl": "6rem", + "9xl": "8rem" + } + }; + var bQ = c(8554); + var bR = c.n(bQ); + var bS = { + borderTopWidth: "1px", + borderColor: "inherit", + _last: { + borderBottomWidth: "1px" + } + }; + var bT = { + transitionProperty: "common", + transitionDuration: "normal", + fontSize: "1rem", + _focusVisible: { + boxShadow: "outline" + }, + _hover: { + bg: "blackAlpha.50" + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed" + }, + px: 4, + py: 2 + }; + var bU = { + pt: 2, + px: 4, + pb: 5 + }; + var bV = { + fontSize: "1.25em" + }; + var bW = { + root: {}, + container: bS, + button: bT, + panel: bU, + icon: bV + }; + var bX = { + parts: bo.keys, + baseStyle: bW + }; + var bY = { + container: { + px: 4, + py: 3 + }, + title: { + fontWeight: "bold", + lineHeight: 6, + marginEnd: 2 + }, + description: { + lineHeight: 6 + }, + icon: { + flexShrink: 0, + marginEnd: 3, + w: 5, + h: 6 + }, + spinner: { + flexShrink: 0, + marginEnd: 3, + w: 5, + h: 5 + } + }; + function bZ(a) { + var b = a.theme, c = a.colorScheme; + var d = aL(b, c + ".100", c); + var e = aP(c + ".200", 0.16)(b); + return a0(d, e)(a); + } + var b$ = function a(b) { + var c = b.colorScheme; + return { + container: { + bg: bZ(b) + }, + icon: { + color: a0(c + ".500", c + ".200")(b) + }, + spinner: { + color: a0(c + ".500", c + ".200")(b) + } + }; + }; + var b_ = function a(b) { + var c = b.colorScheme; + return { + container: { + paddingStart: 3, + borderStartWidth: "4px", + borderStartColor: a0(c + ".500", c + ".200")(b), + bg: bZ(b) + }, + icon: { + color: a0(c + ".500", c + ".200")(b) + }, + spinner: { + color: a0(c + ".500", c + ".200")(b) + } + }; + }; + var b0 = function a(b) { + var c = b.colorScheme; + return { + container: { + pt: 2, + borderTopWidth: "4px", + borderTopColor: a0(c + ".500", c + ".200")(b), + bg: bZ(b) + }, + icon: { + color: a0(c + ".500", c + ".200")(b) + }, + spinner: { + color: a0(c + ".500", c + ".200")(b) + } + }; + }; + var b1 = function a(b) { + var c = b.colorScheme; + return { + container: { + bg: a0(c + ".500", c + ".200")(b), + color: a0("white", "gray.900")(b) + } + }; + }; + var b2 = { + subtle: b$, + "left-accent": b_, + "top-accent": b0, + solid: b1 + }; + var b3 = { + variant: "subtle", + colorScheme: "blue" + }; + var b4 = { + parts: bp.keys, + baseStyle: bY, + variants: b2, + defaultProps: b3 + }; + var b5 = function a(b) { + return { + transform: "translate(25%, 25%)", + borderRadius: "full", + border: "0.2em solid", + borderColor: a0("white", "gray.800")(b) + }; + }; + var b6 = function a(b) { + return { + bg: a0("gray.200", "whiteAlpha.400")(b) + }; + }; + var b7 = function a(b) { + var c = b.name, d = b.theme; + var e = c ? aY({ + string: c + }) : "gray.400"; + var f = aN(e)(d); + var g = "white"; + if (!f) g = "gray.800"; + var h = a0("white", "gray.800")(b); + return { + bg: e, + color: g, + borderColor: h, + verticalAlign: "top" + }; + }; + var b8 = function a(b) { + return { + badge: b5(b), + excessLabel: b6(b), + container: b7(b) + }; + }; + function b9(a) { + var b = a !== "100%" ? W[a] : undefined; + return { + container: { + width: a, + height: a, + fontSize: "calc(" + (b != null ? b : a) + " / 2.5)" + }, + excessLabel: { + width: a, + height: a + }, + label: { + fontSize: "calc(" + (b != null ? b : a) + " / 2.5)", + lineHeight: a !== "100%" ? b != null ? b : a : undefined + } + }; + } + var ca = { + "2xs": b9(4), + xs: b9(6), + sm: b9(8), + md: b9(12), + lg: b9(16), + xl: b9(24), + "2xl": b9(32), + full: b9("100%") + }; + var cb = { + size: "md" + }; + var cc = { + parts: bq.keys, + baseStyle: b8, + sizes: ca, + defaultProps: cb + }; + var cd = { + px: 1, + textTransform: "uppercase", + fontSize: "xs", + borderRadius: "sm", + fontWeight: "bold" + }; + var ce = function a(b) { + var c = b.colorScheme, d = b.theme; + var e = aP(c + ".500", 0.6)(d); + return { + bg: a0(c + ".500", e)(b), + color: a0("white", "whiteAlpha.800")(b) + }; + }; + var cf = function a(b) { + var c = b.colorScheme, d = b.theme; + var e = aP(c + ".200", 0.16)(d); + return { + bg: a0(c + ".100", e)(b), + color: a0(c + ".800", c + ".200")(b) + }; + }; + var cg = function a(b) { + var c = b.colorScheme, d = b.theme; + var e = aP(c + ".200", 0.8)(d); + var f = aL(d, c + ".500"); + var g = a0(f, e)(b); + return { + color: g, + boxShadow: "inset 0 0 0px 1px " + g + }; + }; + var ch = { + solid: ce, + subtle: cf, + outline: cg + }; + var ci = { + variant: "subtle", + colorScheme: "gray" + }; + var cj = { + baseStyle: cd, + variants: ch, + defaultProps: ci + }; + var ck = { + transitionProperty: "common", + transitionDuration: "fast", + transitionTimingFunction: "ease-out", + cursor: "pointer", + textDecoration: "none", + outline: "none", + color: "inherit", + _hover: { + textDecoration: "underline" + }, + _focusVisible: { + boxShadow: "outline" + } + }; + var cl = { + link: ck + }; + var cm = { + parts: br.keys, + baseStyle: cl + }; + var cn = { + lineHeight: "1.2", + borderRadius: "md", + fontWeight: "semibold", + transitionProperty: "common", + transitionDuration: "normal", + _focusVisible: { + boxShadow: "outline" + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed", + boxShadow: "none" + }, + _hover: { + _disabled: { + bg: "initial" + } + } + }; + var co = function a(b) { + var c = b.colorScheme, d = b.theme; + if (c === "gray") { + return { + color: a0("inherit", "whiteAlpha.900")(b), + _hover: { + bg: a0("gray.100", "whiteAlpha.200")(b) + }, + _active: { + bg: a0("gray.200", "whiteAlpha.300")(b) + } + }; + } + var e = aP(c + ".200", 0.12)(d); + var f = aP(c + ".200", 0.24)(d); + return { + color: a0(c + ".600", c + ".200")(b), + bg: "transparent", + _hover: { + bg: a0(c + ".50", e)(b) + }, + _active: { + bg: a0(c + ".100", f)(b) + } + }; + }; + var cp = function a(b) { + var c = b.colorScheme; + var d = a0("gray.200", "whiteAlpha.300")(b); + return T({ + border: "1px solid", + borderColor: c === "gray" ? d : "currentColor", + ".chakra-button__group[data-attached] > &:not(:last-of-type)": { + marginEnd: "-1px" + } + }, co(b)); + }; + var cq = { + yellow: { + bg: "yellow.400", + color: "black", + hoverBg: "yellow.500", + activeBg: "yellow.600" + }, + cyan: { + bg: "cyan.400", + color: "black", + hoverBg: "cyan.500", + activeBg: "cyan.600" + } + }; + var cr = function a(b) { + var c; + var d = b.colorScheme; + if (d === "gray") { + var e = a0("gray.100", "whiteAlpha.200")(b); + return { + bg: e, + _hover: { + bg: a0("gray.200", "whiteAlpha.300")(b), + _disabled: { + bg: e + } + }, + _active: { + bg: a0("gray.300", "whiteAlpha.400")(b) + } + }; + } + var f = (c = cq[d]) != null ? c : {}, g = f.bg, h = g === void 0 ? d + ".500" : g, i = f.color, j = i === void 0 ? "white" : i, k = f.hoverBg, l = k === void 0 ? d + ".600" : k, m = f.activeBg, n = m === void 0 ? d + ".700" : m; + var o = a0(h, d + ".200")(b); + return { + bg: o, + color: a0(j, "gray.800")(b), + _hover: { + bg: a0(l, d + ".300")(b), + _disabled: { + bg: o + } + }, + _active: { + bg: a0(n, d + ".400")(b) + } + }; + }; + var cs = function a(b) { + var c = b.colorScheme; + return { + padding: 0, + height: "auto", + lineHeight: "normal", + verticalAlign: "baseline", + color: a0(c + ".500", c + ".200")(b), + _hover: { + textDecoration: "underline", + _disabled: { + textDecoration: "none" + } + }, + _active: { + color: a0(c + ".700", c + ".500")(b) + } + }; + }; + var ct = { + bg: "none", + color: "inherit", + display: "inline", + lineHeight: "inherit", + m: 0, + p: 0 + }; + var cu = { + ghost: co, + outline: cp, + solid: cr, + link: cs, + unstyled: ct + }; + var cv = { + lg: { + h: 12, + minW: 12, + fontSize: "lg", + px: 6 + }, + md: { + h: 10, + minW: 10, + fontSize: "md", + px: 4 + }, + sm: { + h: 8, + minW: 8, + fontSize: "sm", + px: 3 + }, + xs: { + h: 6, + minW: 6, + fontSize: "xs", + px: 2 + } + }; + var cw = { + variant: "solid", + size: "md", + colorScheme: "gray" + }; + var cx = { + baseStyle: cn, + variants: cu, + sizes: cv, + defaultProps: cw + }; + var cy = function a(b) { + var c = b.colorScheme; + return { + w: "100%", + transitionProperty: "box-shadow", + transitionDuration: "normal", + border: "2px solid", + borderRadius: "sm", + borderColor: "inherit", + color: "white", + _checked: { + bg: a0(c + ".500", c + ".200")(b), + borderColor: a0(c + ".500", c + ".200")(b), + color: a0("white", "gray.900")(b), + _hover: { + bg: a0(c + ".600", c + ".300")(b), + borderColor: a0(c + ".600", c + ".300")(b) + }, + _disabled: { + borderColor: a0("gray.200", "transparent")(b), + bg: a0("gray.200", "whiteAlpha.300")(b), + color: a0("gray.500", "whiteAlpha.500")(b) + } + }, + _indeterminate: { + bg: a0(c + ".500", c + ".200")(b), + borderColor: a0(c + ".500", c + ".200")(b), + color: a0("white", "gray.900")(b) + }, + _disabled: { + bg: a0("gray.100", "whiteAlpha.100")(b), + borderColor: a0("gray.100", "transparent")(b) + }, + _focusVisible: { + boxShadow: "outline" + }, + _invalid: { + borderColor: a0("red.500", "red.300")(b) + } + }; + }; + var cz = { + _disabled: { + cursor: "not-allowed" + } + }; + var cA = { + userSelect: "none", + _disabled: { + opacity: 0.4 + } + }; + var cB = { + transitionProperty: "transform", + transitionDuration: "normal" + }; + var cC = function a(b) { + return { + icon: cB, + container: cz, + control: cy(b), + label: cA + }; + }; + var cD = { + sm: { + control: { + h: 3, + w: 3 + }, + label: { + fontSize: "sm" + }, + icon: { + fontSize: "0.45rem" + } + }, + md: { + control: { + w: 4, + h: 4 + }, + label: { + fontSize: "md" + }, + icon: { + fontSize: "0.625rem" + } + }, + lg: { + control: { + w: 5, + h: 5 + }, + label: { + fontSize: "lg" + }, + icon: { + fontSize: "0.625rem" + } + } + }; + var cE = { + size: "md", + colorScheme: "blue" + }; + var cF = { + parts: bt.keys, + baseStyle: cC, + sizes: cD, + defaultProps: cE + }; + var cG, cH, cI; + var cJ = bm("close-button-size"); + var cK = function a(b) { + var c = a0("blackAlpha.100", "whiteAlpha.100")(b); + var d = a0("blackAlpha.200", "whiteAlpha.200")(b); + return { + w: [ + cJ.reference + ], + h: [ + cJ.reference + ], + borderRadius: "md", + transitionProperty: "common", + transitionDuration: "normal", + _disabled: { + opacity: 0.4, + cursor: "not-allowed", + boxShadow: "none" + }, + _hover: { + bg: c + }, + _active: { + bg: d + }, + _focusVisible: { + boxShadow: "outline" + } + }; + }; + var cL = { + lg: ((cG = {}), (cG[cJ.variable] = "40px"), (cG.fontSize = "16px"), cG), + md: ((cH = {}), (cH[cJ.variable] = "32px"), (cH.fontSize = "12px"), cH), + sm: ((cI = {}), (cI[cJ.variable] = "24px"), (cI.fontSize = "10px"), cI) + }; + var cM = { + size: "md" + }; + var cN = { + baseStyle: cK, + sizes: cL, + defaultProps: cM + }; + var cO = cj.variants, cP = cj.defaultProps; + var cQ = { + fontFamily: "mono", + fontSize: "sm", + px: "0.2em", + borderRadius: "sm" + }; + var cR = { + baseStyle: cQ, + variants: cO, + defaultProps: cP + }; + var cS = { + w: "100%", + mx: "auto", + maxW: "60ch", + px: "1rem" + }; + var cT = { + baseStyle: cS + }; + var cU = { + opacity: 0.6, + borderColor: "inherit" + }; + var cV = { + borderStyle: "solid" + }; + var cW = { + borderStyle: "dashed" + }; + var cX = { + solid: cV, + dashed: cW + }; + var cY = { + variant: "solid" + }; + var cZ = { + baseStyle: cU, + variants: cX, + defaultProps: cY + }; + function c$(a) { + if (a === "full") { + return { + dialog: { + maxW: "100vw", + h: "100vh" + } + }; + } + return { + dialog: { + maxW: a + } + }; + } + var c_ = { + bg: "blackAlpha.600", + zIndex: "overlay" + }; + var c0 = { + display: "flex", + zIndex: "modal", + justifyContent: "center" + }; + var c1 = function a(b) { + var c = b.isFullHeight; + return T({}, c && { + height: "100vh" + }, { + zIndex: "modal", + maxH: "100vh", + bg: a0("white", "gray.700")(b), + color: "inherit", + boxShadow: a0("lg", "dark-lg")(b) + }); + }; + var c2 = { + px: 6, + py: 4, + fontSize: "xl", + fontWeight: "semibold" + }; + var c3 = { + position: "absolute", + top: 2, + insetEnd: 3 + }; + var c4 = { + px: 6, + py: 2, + flex: 1, + overflow: "auto" + }; + var c5 = { + px: 6, + py: 4 + }; + var c6 = function a(b) { + return { + overlay: c_, + dialogContainer: c0, + dialog: c1(b), + header: c2, + closeButton: c3, + body: c4, + footer: c5 + }; + }; + var c7 = { + xs: c$("xs"), + sm: c$("md"), + md: c$("lg"), + lg: c$("2xl"), + xl: c$("4xl"), + full: c$("full") + }; + var c8 = { + size: "xs" + }; + var c9 = { + parts: bv.keys, + baseStyle: c6, + sizes: c7, + defaultProps: c8 + }; + var da = { + borderRadius: "md", + py: "3px", + transitionProperty: "common", + transitionDuration: "normal" + }; + var db = { + borderRadius: "md", + py: "3px", + transitionProperty: "common", + transitionDuration: "normal", + width: "full", + _focusVisible: { + boxShadow: "outline" + }, + _placeholder: { + opacity: 0.6 + } + }; + var dc = { + borderRadius: "md", + py: "3px", + transitionProperty: "common", + transitionDuration: "normal", + width: "full", + _focusVisible: { + boxShadow: "outline" + }, + _placeholder: { + opacity: 0.6 + } + }; + var dd = { + preview: da, + input: db, + textarea: dc + }; + var de = { + parts: bw.keys, + baseStyle: dd + }; + var df = function a(b) { + return { + marginStart: 1, + color: a0("red.500", "red.300")(b) + }; + }; + var dg = function a(b) { + return { + mt: 2, + color: a0("gray.500", "whiteAlpha.600")(b), + lineHeight: "normal", + fontSize: "sm" + }; + }; + var dh = function a(b) { + return { + container: { + width: "100%", + position: "relative" + }, + requiredIndicator: df(b), + helperText: dg(b) + }; + }; + var di = { + parts: bx.keys, + baseStyle: dh + }; + var dj = function a(b) { + return { + color: a0("red.500", "red.300")(b), + mt: 2, + fontSize: "sm", + lineHeight: "normal" + }; + }; + var dk = function a(b) { + return { + marginEnd: "0.5em", + color: a0("red.500", "red.300")(b) + }; + }; + var dl = function a(b) { + return { + text: dj(b), + icon: dk(b) + }; + }; + var dm = { + parts: by.keys, + baseStyle: dl + }; + var dn = { + fontSize: "md", + marginEnd: 3, + mb: 2, + fontWeight: "medium", + transitionProperty: "common", + transitionDuration: "normal", + opacity: 1, + _disabled: { + opacity: 0.4 + } + }; + var dp = { + baseStyle: dn + }; + var dq = { + fontFamily: "heading", + fontWeight: "bold" + }; + var dr = { + "4xl": { + fontSize: [ + "6xl", + null, + "7xl" + ], + lineHeight: 1 + }, + "3xl": { + fontSize: [ + "5xl", + null, + "6xl" + ], + lineHeight: 1 + }, + "2xl": { + fontSize: [ + "4xl", + null, + "5xl" + ], + lineHeight: [ + 1.2, + null, + 1 + ] + }, + xl: { + fontSize: [ + "3xl", + null, + "4xl" + ], + lineHeight: [ + 1.33, + null, + 1.2 + ] + }, + lg: { + fontSize: [ + "2xl", + null, + "3xl" + ], + lineHeight: [ + 1.33, + null, + 1.2 + ] + }, + md: { + fontSize: "xl", + lineHeight: 1.2 + }, + sm: { + fontSize: "md", + lineHeight: 1.2 + }, + xs: { + fontSize: "sm", + lineHeight: 1.2 + } + }; + var ds = { + size: "xl" + }; + var dt = { + baseStyle: dq, + sizes: dr, + defaultProps: ds + }; + var du = { + field: { + width: "100%", + minWidth: 0, + outline: 0, + position: "relative", + appearance: "none", + transitionProperty: "common", + transitionDuration: "normal" + } + }; + var dv = { + lg: { + fontSize: "lg", + px: 4, + h: 12, + borderRadius: "md" + }, + md: { + fontSize: "md", + px: 4, + h: 10, + borderRadius: "md" + }, + sm: { + fontSize: "sm", + px: 3, + h: 8, + borderRadius: "sm" + }, + xs: { + fontSize: "xs", + px: 2, + h: 6, + borderRadius: "sm" + } + }; + var dw = { + lg: { + field: dv.lg, + addon: dv.lg + }, + md: { + field: dv.md, + addon: dv.md + }, + sm: { + field: dv.sm, + addon: dv.sm + }, + xs: { + field: dv.xs, + addon: dv.xs + } + }; + function dx(a) { + var b = a.focusBorderColor, c = a.errorBorderColor; + return { + focusBorderColor: b || a0("blue.500", "blue.300")(a), + errorBorderColor: c || a0("red.500", "red.300")(a) + }; + } + var dy = function a(b) { + var c = b.theme; + var d = dx(b), e = d.focusBorderColor, f = d.errorBorderColor; + return { + field: { + border: "1px solid", + borderColor: "inherit", + bg: "inherit", + _hover: { + borderColor: a0("gray.300", "whiteAlpha.400")(b) + }, + _readOnly: { + boxShadow: "none !important", + userSelect: "all" + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed" + }, + _invalid: { + borderColor: aL(c, f), + boxShadow: "0 0 0 1px " + aL(c, f) + }, + _focusVisible: { + zIndex: 1, + borderColor: aL(c, e), + boxShadow: "0 0 0 1px " + aL(c, e) + } + }, + addon: { + border: "1px solid", + borderColor: a0("inherit", "whiteAlpha.50")(b), + bg: a0("gray.100", "whiteAlpha.300")(b) + } + }; + }; + var dz = function a(b) { + var c = b.theme; + var d = dx(b), e = d.focusBorderColor, f = d.errorBorderColor; + return { + field: { + border: "2px solid", + borderColor: "transparent", + bg: a0("gray.100", "whiteAlpha.50")(b), + _hover: { + bg: a0("gray.200", "whiteAlpha.100")(b) + }, + _readOnly: { + boxShadow: "none !important", + userSelect: "all" + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed" + }, + _invalid: { + borderColor: aL(c, f) + }, + _focusVisible: { + bg: "transparent", + borderColor: aL(c, e) + } + }, + addon: { + border: "2px solid", + borderColor: "transparent", + bg: a0("gray.100", "whiteAlpha.50")(b) + } + }; + }; + var dA = function a(b) { + var c = b.theme; + var d = dx(b), e = d.focusBorderColor, f = d.errorBorderColor; + return { + field: { + borderBottom: "1px solid", + borderColor: "inherit", + borderRadius: 0, + px: 0, + bg: "transparent", + _readOnly: { + boxShadow: "none !important", + userSelect: "all" + }, + _invalid: { + borderColor: aL(c, f), + boxShadow: "0px 1px 0px 0px " + aL(c, f) + }, + _focusVisible: { + borderColor: aL(c, e), + boxShadow: "0px 1px 0px 0px " + aL(c, e) + } + }, + addon: { + borderBottom: "2px solid", + borderColor: "inherit", + borderRadius: 0, + px: 0, + bg: "transparent" + } + }; + }; + var dB = { + field: { + bg: "transparent", + px: 0, + height: "auto" + }, + addon: { + bg: "transparent", + px: 0, + height: "auto" + } + }; + var dC = { + outline: dy, + filled: dz, + flushed: dA, + unstyled: dB + }; + var dD = { + size: "md", + variant: "outline" + }; + var dE = { + parts: bz.keys, + baseStyle: du, + sizes: dw, + variants: dC, + defaultProps: dD + }; + var dF = function a(b) { + return { + bg: a0("gray.100", "whiteAlpha")(b), + borderRadius: "md", + borderWidth: "1px", + borderBottomWidth: "3px", + fontSize: "0.8em", + fontWeight: "bold", + lineHeight: "normal", + px: "0.4em", + whiteSpace: "nowrap" + }; + }; + var dG = { + baseStyle: dF + }; + var dH = { + transitionProperty: "common", + transitionDuration: "fast", + transitionTimingFunction: "ease-out", + cursor: "pointer", + textDecoration: "none", + outline: "none", + color: "inherit", + _hover: { + textDecoration: "underline" + }, + _focusVisible: { + boxShadow: "outline" + } + }; + var dI = { + baseStyle: dH + }; + var dJ = { + marginEnd: "0.5rem", + display: "inline", + verticalAlign: "text-bottom" + }; + var dK = { + container: {}, + item: {}, + icon: dJ + }; + var dL = { + parts: bA.keys, + baseStyle: dK + }; + var dM = function a(b) { + return { + bg: a0("#fff", "gray.700")(b), + boxShadow: a0("sm", "dark-lg")(b), + color: "inherit", + minW: "3xs", + py: "2", + zIndex: 1, + borderRadius: "md", + borderWidth: "1px" + }; + }; + var dN = function a(b) { + return { + py: "0.4rem", + px: "0.8rem", + transitionProperty: "background", + transitionDuration: "ultra-fast", + transitionTimingFunction: "ease-in", + _focus: { + bg: a0("gray.100", "whiteAlpha.100")(b) + }, + _active: { + bg: a0("gray.200", "whiteAlpha.200")(b) + }, + _expanded: { + bg: a0("gray.100", "whiteAlpha.100")(b) + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed" + } + }; + }; + var dO = { + mx: 4, + my: 2, + fontWeight: "semibold", + fontSize: "sm" + }; + var dP = { + opacity: 0.6 + }; + var dQ = { + border: 0, + borderBottom: "1px solid", + borderColor: "inherit", + my: "0.5rem", + opacity: 0.6 + }; + var dR = { + transitionProperty: "common", + transitionDuration: "normal" + }; + var dS = function a(b) { + return { + button: dR, + list: dM(b), + item: dN(b), + groupTitle: dO, + command: dP, + divider: dQ + }; + }; + var dT = { + parts: bB.keys, + baseStyle: dS + }; + var dU = { + bg: "blackAlpha.600", + zIndex: "modal" + }; + var dV = function a(b) { + var c = b.isCentered, d = b.scrollBehavior; + return { + display: "flex", + zIndex: "modal", + justifyContent: "center", + alignItems: c ? "center" : "flex-start", + overflow: d === "inside" ? "hidden" : "auto" + }; + }; + var dW = function a(b) { + var c = b.scrollBehavior; + return { + borderRadius: "md", + bg: a0("white", "gray.700")(b), + color: "inherit", + my: "3.75rem", + zIndex: "modal", + maxH: c === "inside" ? "calc(100% - 7.5rem)" : undefined, + boxShadow: a0("lg", "dark-lg")(b) + }; + }; + var dX = { + px: 6, + py: 4, + fontSize: "xl", + fontWeight: "semibold" + }; + var dY = { + position: "absolute", + top: 2, + insetEnd: 3 + }; + var dZ = function a(b) { + var c = b.scrollBehavior; + return { + px: 6, + py: 2, + flex: 1, + overflow: c === "inside" ? "auto" : undefined + }; + }; + var d$ = { + px: 6, + py: 4 + }; + var d_ = function a(b) { + return { + overlay: dU, + dialogContainer: dV(b), + dialog: dW(b), + header: dX, + closeButton: dY, + body: dZ(b), + footer: d$ + }; + }; + function d0(a) { + if (a === "full") { + return { + dialog: { + maxW: "100vw", + minH: "100vh", + "@supports(min-height: -webkit-fill-available)": { + minH: "-webkit-fill-available" + }, + my: 0 + } + }; + } + return { + dialog: { + maxW: a + } + }; + } + var d1 = { + xs: d0("xs"), + sm: d0("sm"), + md: d0("md"), + lg: d0("lg"), + xl: d0("xl"), + "2xl": d0("2xl"), + "3xl": d0("3xl"), + "4xl": d0("4xl"), + "5xl": d0("5xl"), + "6xl": d0("6xl"), + full: d0("full") + }; + var d2 = { + size: "md" + }; + var d3 = { + parts: bC.keys, + baseStyle: d_, + sizes: d1, + defaultProps: d2 + }; + var d4, d5, d6; + var d7 = dE.variants, d8 = dE.defaultProps; + var d9 = bm("number-input-stepper-width"); + var ea = bm("number-input-input-padding"); + var eb = bf(d9).add("0.5rem").toString(); + var ec = ((d4 = {}), (d4[d9.variable] = "24px"), (d4[ea.variable] = eb), d4); + var ed = (d5 = (d6 = dE.baseStyle) == null ? void 0 : d6.field) != null ? d5 : {}; + var ee = { + width: [ + d9.reference + ] + }; + var ef = function a(b) { + return { + borderStart: "1px solid", + borderStartColor: a0("inherit", "whiteAlpha.300")(b), + color: a0("inherit", "whiteAlpha.800")(b), + _active: { + bg: a0("gray.200", "whiteAlpha.300")(b) + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed" + } + }; + }; + var eg = function a(b) { + return { + root: ec, + field: ed, + stepperGroup: ee, + stepper: ef(b) + }; + }; + function eh(a) { + var b, c; + var d = dE.sizes[a]; + var e = { + lg: "md", + md: "md", + sm: "sm", + xs: "sm" + }; + var f = (b = (c = d.field) == null ? void 0 : c.fontSize) != null ? b : "md"; + var g = bP.fontSizes[f]; + return { + field: T({}, d.field, { + paddingInlineEnd: ea.reference, + verticalAlign: "top" + }), + stepper: { + fontSize: bf(g).multiply(0.75).toString(), + _first: { + borderTopEndRadius: e[a] + }, + _last: { + borderBottomEndRadius: e[a], + mt: "-1px", + borderTopWidth: 1 + } + } + }; + } + var ei = { + xs: eh("xs"), + sm: eh("sm"), + md: eh("md"), + lg: eh("lg") + }; + var ej = { + parts: bD.keys, + baseStyle: eg, + sizes: ei, + variants: d7, + defaultProps: d8 + }; + var ek; + var el = T({}, dE.baseStyle.field, { + textAlign: "center" + }); + var em = { + lg: { + fontSize: "lg", + w: 12, + h: 12, + borderRadius: "md" + }, + md: { + fontSize: "md", + w: 10, + h: 10, + borderRadius: "md" + }, + sm: { + fontSize: "sm", + w: 8, + h: 8, + borderRadius: "sm" + }, + xs: { + fontSize: "xs", + w: 6, + h: 6, + borderRadius: "sm" + } + }; + var en = { + outline: function a(b) { + var c; + return (c = dE.variants.outline(b).field) != null ? c : {}; + }, + flushed: function a(b) { + var c; + return (c = dE.variants.flushed(b).field) != null ? c : {}; + }, + filled: function a(b) { + var c; + return (c = dE.variants.filled(b).field) != null ? c : {}; + }, + unstyled: (ek = dE.variants.unstyled.field) != null ? ek : {} + }; + var eo = dE.defaultProps; + var ep = { + baseStyle: el, + sizes: em, + variants: en, + defaultProps: eo + }; + var eq = bm("popper-bg"); + var er = bm("popper-arrow-bg"); + var es = bm("popper-arrow-shadow-color"); + var et = { + zIndex: 10 + }; + var eu = function a(b) { + var c; + var d = a0("white", "gray.700")(b); + var e = a0("gray.200", "whiteAlpha.300")(b); + return ((c = {}), (c[eq.variable] = "colors." + d), (c.bg = eq.reference), (c[er.variable] = eq.reference), (c[es.variable] = "colors." + e), (c.width = "xs"), (c.border = "1px solid"), (c.borderColor = "inherit"), (c.borderRadius = "md"), (c.boxShadow = "sm"), (c.zIndex = "inherit"), (c._focusVisible = { + outline: 0, + boxShadow: "outline" + }), c); + }; + var ev = { + px: 3, + py: 2, + borderBottomWidth: "1px" + }; + var ew = { + px: 3, + py: 2 + }; + var ex = { + px: 3, + py: 2, + borderTopWidth: "1px" + }; + var ey = { + position: "absolute", + borderRadius: "md", + top: 1, + insetEnd: 2, + padding: 2 + }; + var ez = function a(b) { + return { + popper: et, + content: eu(b), + header: ev, + body: ew, + footer: ex, + arrow: {}, + closeButton: ey + }; + }; + var eA = { + parts: bF.keys, + baseStyle: ez + }; + function eB(a) { + var b = a.colorScheme, c = a.theme, d = a.isIndeterminate, e = a.hasStripe; + var f = a0(aX(), aX("1rem", "rgba(0,0,0,0.1)"))(a); + var g = a0(b + ".500", b + ".200")(a); + var h = "linear-gradient(\n to right,\n transparent 0%,\n " + aL(c, g) + " 50%,\n transparent 100%\n )"; + var i = !d && e; + return T({}, i && f, d ? { + bgImage: h + } : { + bgColor: g + }); + } + var eC = { + lineHeight: "1", + fontSize: "0.25em", + fontWeight: "bold", + color: "white" + }; + var eD = function a(b) { + return { + bg: a0("gray.100", "whiteAlpha.300")(b) + }; + }; + var eE = function a(b) { + return T({ + transitionProperty: "common", + transitionDuration: "slow" + }, eB(b)); + }; + var eF = function a(b) { + return { + label: eC, + filledTrack: eE(b), + track: eD(b) + }; + }; + var eG = { + xs: { + track: { + h: "0.25rem" + } + }, + sm: { + track: { + h: "0.5rem" + } + }, + md: { + track: { + h: "0.75rem" + } + }, + lg: { + track: { + h: "1rem" + } + } + }; + var eH = { + size: "md", + colorScheme: "blue" + }; + var eI = { + parts: bG.keys, + sizes: eG, + baseStyle: eF, + defaultProps: eH + }; + var eJ = function a(b) { + var c = cF.baseStyle(b), d = c.control, e = d === void 0 ? {} : d; + return T({}, e, { + borderRadius: "full", + _checked: T({}, e["_checked"], { + _before: { + content: '""', + display: "inline-block", + pos: "relative", + w: "50%", + h: "50%", + borderRadius: "50%", + bg: "currentColor" + } + }) + }); + }; + var eK = function a(b) { + return { + label: cF.baseStyle(b).label, + container: cF.baseStyle(b).container, + control: eJ(b) + }; + }; + var eL = { + md: { + control: { + w: 4, + h: 4 + }, + label: { + fontSize: "md" + } + }, + lg: { + control: { + w: 5, + h: 5 + }, + label: { + fontSize: "lg" + } + }, + sm: { + control: { + width: 3, + height: 3 + }, + label: { + fontSize: "sm" + } + } + }; + var eM = { + size: "md", + colorScheme: "blue" + }; + var eN = { + parts: bH.keys, + baseStyle: eK, + sizes: eL, + defaultProps: eM + }; + var eO = function a(b) { + return T({}, dE.baseStyle.field, { + bg: a0("white", "gray.700")(b), + appearance: "none", + paddingBottom: "1px", + lineHeight: "normal", + "> option, > optgroup": { + bg: a0("white", "gray.700")(b) + } + }); + }; + var eP = { + width: "1.5rem", + height: "100%", + insetEnd: "0.5rem", + position: "relative", + color: "currentColor", + fontSize: "1.25rem", + _disabled: { + opacity: 0.5 + } + }; + var eQ = function a(b) { + return { + field: eO(b), + icon: eP + }; + }; + var eR = { + paddingInlineEnd: "2rem" + }; + var eS = bR()({}, dE.sizes, { + lg: { + field: eR + }, + md: { + field: eR + }, + sm: { + field: eR + }, + xs: { + field: eR, + icon: { + insetEnd: "0.25rem" + } + } + }); + var eT = { + parts: bI.keys, + baseStyle: eQ, + sizes: eS, + variants: dE.variants, + defaultProps: dE.defaultProps + }; + var eU = function a(b, c) { + return (0, h.F4)({ + from: { + borderColor: b, + background: b + }, + to: { + borderColor: c, + background: c + } + }); + }; + var eV = function a(b) { + var c = a0("gray.100", "gray.800")(b); + var d = a0("gray.400", "gray.600")(b); + var e = b.startColor, f = e === void 0 ? c : e, g = b.endColor, h = g === void 0 ? d : g, i = b.speed, j = b.theme; + var k = aL(j, f); + var l = aL(j, h); + return { + opacity: 0.7, + borderRadius: "2px", + borderColor: k, + background: l, + animation: i + "s linear infinite alternate " + eU(k, l) + }; + }; + var eW = { + baseStyle: eV + }; + var eX = function a(b) { + return { + borderRadius: "md", + fontWeight: "semibold", + _focusVisible: { + boxShadow: "outline", + padding: "1rem", + position: "fixed", + top: "1.5rem", + insetStart: "1.5rem", + bg: a0("white", "gray.700")(b) + } + }; + }; + var eY = { + baseStyle: eX + }; + function eZ(a) { + return a1({ + orientation: a.orientation, + vertical: { + left: "50%", + transform: "translateX(-50%)", + _active: { + transform: "translateX(-50%) scale(1.15)" + } + }, + horizontal: { + top: "50%", + transform: "translateY(-50%)", + _active: { + transform: "translateY(-50%) scale(1.15)" + } + } + }); + } + var e$ = function a(b) { + var c = b.orientation; + return T({ + display: "inline-block", + position: "relative", + cursor: "pointer", + _disabled: { + opacity: 0.6, + cursor: "default", + pointerEvents: "none" + } + }, a1({ + orientation: c, + vertical: { + h: "100%" + }, + horizontal: { + w: "100%" + } + })); + }; + var e_ = function a(b) { + return { + overflow: "hidden", + borderRadius: "sm", + bg: a0("gray.200", "whiteAlpha.200")(b), + _disabled: { + bg: a0("gray.300", "whiteAlpha.300")(b) + } + }; + }; + var e0 = function a(b) { + return T({ + display: "flex", + alignItems: "center", + justifyContent: "center", + position: "absolute", + outline: 0, + zIndex: 1, + borderRadius: "full", + bg: "white", + boxShadow: "base", + border: "1px solid", + borderColor: "transparent", + transitionProperty: "transform", + transitionDuration: "normal", + _focusVisible: { + boxShadow: "outline" + }, + _disabled: { + bg: "gray.300" + } + }, eZ(b)); + }; + var e1 = function a(b) { + var c = b.colorScheme; + return { + width: "inherit", + height: "inherit", + bg: a0(c + ".500", c + ".200")(b) + }; + }; + var e2 = function a(b) { + return { + container: e$(b), + track: e_(b), + thumb: e0(b), + filledTrack: e1(b) + }; + }; + var e3 = function a(b) { + return { + thumb: { + w: "16px", + h: "16px" + }, + track: a1({ + orientation: b.orientation, + horizontal: { + h: "4px" + }, + vertical: { + w: "4px" + } + }) + }; + }; + var e4 = function a(b) { + return { + thumb: { + w: "14px", + h: "14px" + }, + track: a1({ + orientation: b.orientation, + horizontal: { + h: "4px" + }, + vertical: { + w: "4px" + } + }) + }; + }; + var e5 = function a(b) { + return { + thumb: { + w: "10px", + h: "10px" + }, + track: a1({ + orientation: b.orientation, + horizontal: { + h: "2px" + }, + vertical: { + w: "2px" + } + }) + }; + }; + var e6 = { + lg: e3, + md: e4, + sm: e5 + }; + var e7 = { + size: "md", + colorScheme: "blue" + }; + var e8 = { + parts: bJ.keys, + sizes: e6, + baseStyle: e2, + defaultProps: e7 + }; + var e9, fa, fb, fc, fd; + var fe = bm("spinner-size"); + var ff = { + width: [ + fe.reference + ], + height: [ + fe.reference + ] + }; + var fg = { + xs: ((e9 = {}), (e9[fe.variable] = "0.75rem"), e9), + sm: ((fa = {}), (fa[fe.variable] = "1rem"), fa), + md: ((fb = {}), (fb[fe.variable] = "1.5rem"), fb), + lg: ((fc = {}), (fc[fe.variable] = "2rem"), fc), + xl: ((fd = {}), (fd[fe.variable] = "3rem"), fd) + }; + var fh = { + size: "md" + }; + var fi = { + baseStyle: ff, + sizes: fg, + defaultProps: fh + }; + var fj = { + fontWeight: "medium" + }; + var fk = { + opacity: 0.8, + marginBottom: 2 + }; + var fl = { + verticalAlign: "baseline", + fontWeight: "semibold" + }; + var fm = { + marginEnd: 1, + w: "14px", + h: "14px", + verticalAlign: "middle" + }; + var fn = { + container: {}, + label: fj, + helpText: fk, + number: fl, + icon: fm + }; + var fo = { + md: { + label: { + fontSize: "sm" + }, + helpText: { + fontSize: "sm" + }, + number: { + fontSize: "2xl" + } + } + }; + var fp = { + size: "md" + }; + var fq = { + parts: bK.keys, + baseStyle: fn, + sizes: fo, + defaultProps: fp + }; + var fr, fs, ft; + var fu = bm("switch-track-width"); + var fv = bm("switch-track-height"); + var fw = bm("switch-track-diff"); + var fx = bf.subtract(fu, fv); + var fy = bm("switch-thumb-x"); + var fz = function a(b) { + var c = b.colorScheme; + return { + borderRadius: "full", + p: "2px", + width: [ + fu.reference + ], + height: [ + fv.reference + ], + transitionProperty: "common", + transitionDuration: "fast", + bg: a0("gray.300", "whiteAlpha.400")(b), + _focusVisible: { + boxShadow: "outline" + }, + _disabled: { + opacity: 0.4, + cursor: "not-allowed" + }, + _checked: { + bg: a0(c + ".500", c + ".200")(b) + } + }; + }; + var fA = { + bg: "white", + transitionProperty: "transform", + transitionDuration: "normal", + borderRadius: "inherit", + width: [ + fv.reference + ], + height: [ + fv.reference + ], + _checked: { + transform: "translateX(" + fy.reference + ")" + } + }; + var fB = function a(b) { + var c, d; + return { + container: ((d = {}), (d[fw.variable] = fx), (d[fy.variable] = fw.reference), (d._rtl = ((c = {}), (c[fy.variable] = bf(fw).negate().toString()), c)), d), + track: fz(b), + thumb: fA + }; + }; + var fC = { + sm: { + container: ((fr = {}), (fr[fu.variable] = "1.375rem"), (fr[fv.variable] = "0.75rem"), fr) + }, + md: { + container: ((fs = {}), (fs[fu.variable] = "1.875rem"), (fs[fv.variable] = "1rem"), fs) + }, + lg: { + container: ((ft = {}), (ft[fu.variable] = "2.875rem"), (ft[fv.variable] = "1.5rem"), ft) + } + }; + var fD = { + size: "md", + colorScheme: "blue" + }; + var fE = { + parts: bL.keys, + baseStyle: fB, + sizes: fC, + defaultProps: fD + }; + var fF = { + table: { + fontVariantNumeric: "lining-nums tabular-nums", + borderCollapse: "collapse", + width: "full" + }, + th: { + fontFamily: "heading", + fontWeight: "bold", + textTransform: "uppercase", + letterSpacing: "wider", + textAlign: "start" + }, + td: { + textAlign: "start" + }, + caption: { + mt: 4, + fontFamily: "heading", + textAlign: "center", + fontWeight: "medium" + } + }; + var fG = { + "&[data-is-numeric=true]": { + textAlign: "end" + } + }; + var fH = function a(b) { + var c = b.colorScheme; + return { + th: T({ + color: a0("gray.600", "gray.400")(b), + borderBottom: "1px", + borderColor: a0(c + ".100", c + ".700")(b) + }, fG), + td: T({ + borderBottom: "1px", + borderColor: a0(c + ".100", c + ".700")(b) + }, fG), + caption: { + color: a0("gray.600", "gray.100")(b) + }, + tfoot: { + tr: { + "&:last-of-type": { + th: { + borderBottomWidth: 0 + } + } + } + } + }; + }; + var fI = function a(b) { + var c = b.colorScheme; + return { + th: T({ + color: a0("gray.600", "gray.400")(b), + borderBottom: "1px", + borderColor: a0(c + ".100", c + ".700")(b) + }, fG), + td: T({ + borderBottom: "1px", + borderColor: a0(c + ".100", c + ".700")(b) + }, fG), + caption: { + color: a0("gray.600", "gray.100")(b) + }, + tbody: { + tr: { + "&:nth-of-type(odd)": { + "th, td": { + borderBottomWidth: "1px", + borderColor: a0(c + ".100", c + ".700")(b) + }, + td: { + background: a0(c + ".100", c + ".700")(b) + } + } + } + }, + tfoot: { + tr: { + "&:last-of-type": { + th: { + borderBottomWidth: 0 + } + } + } + } + }; + }; + var fJ = { + simple: fH, + striped: fI, + unstyled: {} + }; + var fK = { + sm: { + th: { + px: "4", + py: "1", + lineHeight: "4", + fontSize: "xs" + }, + td: { + px: "4", + py: "2", + fontSize: "sm", + lineHeight: "4" + }, + caption: { + px: "4", + py: "2", + fontSize: "xs" + } + }, + md: { + th: { + px: "6", + py: "3", + lineHeight: "4", + fontSize: "xs" + }, + td: { + px: "6", + py: "4", + lineHeight: "5" + }, + caption: { + px: "6", + py: "2", + fontSize: "sm" + } + }, + lg: { + th: { + px: "8", + py: "4", + lineHeight: "5", + fontSize: "sm" + }, + td: { + px: "8", + py: "5", + lineHeight: "6" + }, + caption: { + px: "6", + py: "2", + fontSize: "md" + } + } + }; + var fL = { + variant: "simple", + size: "md", + colorScheme: "gray" + }; + var fM = { + parts: bM.keys, + baseStyle: fF, + variants: fJ, + sizes: fK, + defaultProps: fL + }; + var fN = function a(b) { + var c = b.orientation; + return { + display: c === "vertical" ? "flex" : "block" + }; + }; + var fO = function a(b) { + var c = b.isFitted; + return { + flex: c ? 1 : undefined, + transitionProperty: "common", + transitionDuration: "normal", + _focusVisible: { + zIndex: 1, + boxShadow: "outline" + }, + _disabled: { + cursor: "not-allowed", + opacity: 0.4 + } + }; + }; + var fP = function a(b) { + var c = b.align, d = c === void 0 ? "start" : c, e = b.orientation; + var f = { + end: "flex-end", + center: "center", + start: "flex-start" + }; + return { + justifyContent: f[d], + flexDirection: e === "vertical" ? "column" : "row" + }; + }; + var fQ = { + p: 4 + }; + var fR = function a(b) { + return { + root: fN(b), + tab: fO(b), + tablist: fP(b), + tabpanel: fQ + }; + }; + var fS = { + sm: { + tab: { + py: 1, + px: 4, + fontSize: "sm" + } + }, + md: { + tab: { + fontSize: "md", + py: 2, + px: 4 + } + }, + lg: { + tab: { + fontSize: "lg", + py: 3, + px: 4 + } + } + }; + var fT = function a(b) { + var c, d; + var e = b.colorScheme, f = b.orientation; + var g = f === "vertical"; + var h = f === "vertical" ? "borderStart" : "borderBottom"; + var i = g ? "marginStart" : "marginBottom"; + return { + tablist: ((c = {}), (c[h] = "2px solid"), (c.borderColor = "inherit"), c), + tab: ((d = {}), (d[h] = "2px solid"), (d.borderColor = "transparent"), (d[i] = "-2px"), (d._selected = { + color: a0(e + ".600", e + ".300")(b), + borderColor: "currentColor" + }), (d._active = { + bg: a0("gray.200", "whiteAlpha.300")(b) + }), (d._disabled = { + _active: { + bg: "none" + } + }), d) + }; + }; + var fU = function a(b) { + var c = b.colorScheme; + return { + tab: { + borderTopRadius: "md", + border: "1px solid", + borderColor: "transparent", + mb: "-1px", + _selected: { + color: a0(c + ".600", c + ".300")(b), + borderColor: "inherit", + borderBottomColor: a0("white", "gray.800")(b) + } + }, + tablist: { + mb: "-1px", + borderBottom: "1px solid", + borderColor: "inherit" + } + }; + }; + var fV = function a(b) { + var c = b.colorScheme; + return { + tab: { + border: "1px solid", + borderColor: "inherit", + bg: a0("gray.50", "whiteAlpha.50")(b), + mb: "-1px", + _notLast: { + marginEnd: "-1px" + }, + _selected: { + bg: a0("#fff", "gray.800")(b), + color: a0(c + ".600", c + ".300")(b), + borderColor: "inherit", + borderTopColor: "currentColor", + borderBottomColor: "transparent" + } + }, + tablist: { + mb: "-1px", + borderBottom: "1px solid", + borderColor: "inherit" + } + }; + }; + var fW = function a(b) { + var c = b.colorScheme, d = b.theme; + return { + tab: { + borderRadius: "full", + fontWeight: "semibold", + color: "gray.600", + _selected: { + color: aL(d, c + ".700"), + bg: aL(d, c + ".100") + } + } + }; + }; + var fX = function a(b) { + var c = b.colorScheme; + return { + tab: { + borderRadius: "full", + fontWeight: "semibold", + color: a0("gray.600", "inherit")(b), + _selected: { + color: a0("#fff", "gray.800")(b), + bg: a0(c + ".600", c + ".300")(b) + } + } + }; + }; + var fY = {}; + var fZ = { + line: fT, + enclosed: fU, + "enclosed-colored": fV, + "soft-rounded": fW, + "solid-rounded": fX, + unstyled: fY + }; + var f$ = { + size: "md", + variant: "line", + colorScheme: "blue" + }; + var f_ = { + parts: bN.keys, + baseStyle: fR, + sizes: fS, + variants: fZ, + defaultProps: f$ + }; + var f0 = { + fontWeight: "medium", + lineHeight: 1.2, + outline: 0, + borderRadius: "md", + _focusVisible: { + boxShadow: "outline" + } + }; + var f1 = { + lineHeight: 1.2, + overflow: "visible" + }; + var f2 = { + fontSize: "18px", + w: "1.25rem", + h: "1.25rem", + transitionProperty: "common", + transitionDuration: "normal", + borderRadius: "full", + marginStart: "0.375rem", + marginEnd: "-1", + opacity: 0.5, + _disabled: { + opacity: 0.4 + }, + _focusVisible: { + boxShadow: "outline", + bg: "rgba(0, 0, 0, 0.14)" + }, + _hover: { + opacity: 0.8 + }, + _active: { + opacity: 1 + } + }; + var f3 = { + container: f0, + label: f1, + closeButton: f2 + }; + var f4 = { + sm: { + container: { + minH: "1.25rem", + minW: "1.25rem", + fontSize: "xs", + px: 2 + }, + closeButton: { + marginEnd: "-2px", + marginStart: "0.35rem" + } + }, + md: { + container: { + minH: "1.5rem", + minW: "1.5rem", + fontSize: "sm", + px: 2 + } + }, + lg: { + container: { + minH: 8, + minW: 8, + fontSize: "md", + px: 3 + } + } + }; + var f5 = { + subtle: function a(b) { + return { + container: cj.variants.subtle(b) + }; + }, + solid: function a(b) { + return { + container: cj.variants.solid(b) + }; + }, + outline: function a(b) { + return { + container: cj.variants.outline(b) + }; + } + }; + var f6 = { + size: "md", + variant: "subtle", + colorScheme: "gray" + }; + var f7 = { + parts: bO.keys, + variants: f5, + baseStyle: f3, + sizes: f4, + defaultProps: f6 + }; + var f8, f9, ga, gb, gc; + var gd = T({}, dE.baseStyle.field, { + paddingY: "8px", + minHeight: "80px", + lineHeight: "short", + verticalAlign: "top" + }); + var ge = { + outline: function a(b) { + var c; + return (c = dE.variants.outline(b).field) != null ? c : {}; + }, + flushed: function a(b) { + var c; + return (c = dE.variants.flushed(b).field) != null ? c : {}; + }, + filled: function a(b) { + var c; + return (c = dE.variants.filled(b).field) != null ? c : {}; + }, + unstyled: (f8 = dE.variants.unstyled.field) != null ? f8 : {} + }; + var gf = { + xs: (f9 = dE.sizes.xs.field) != null ? f9 : {}, + sm: (ga = dE.sizes.sm.field) != null ? ga : {}, + md: (gb = dE.sizes.md.field) != null ? gb : {}, + lg: (gc = dE.sizes.lg.field) != null ? gc : {} + }; + var gg = { + size: "md", + variant: "outline" + }; + var gh = { + baseStyle: gd, + sizes: gf, + variants: ge, + defaultProps: gg + }; + var gi = bm("tooltip-bg"); + var gj = bm("popper-arrow-bg"); + var gk = function a(b) { + var c; + var d = a0("gray.700", "gray.300")(b); + return ((c = {}), (c[gi.variable] = "colors." + d), (c.px = "8px"), (c.py = "2px"), (c.bg = [ + gi.reference + ]), (c[gj.variable] = [ + gi.reference + ]), (c.color = a0("whiteAlpha.900", "gray.900")(b)), (c.borderRadius = "sm"), (c.fontWeight = "medium"), (c.fontSize = "sm"), (c.boxShadow = "md"), (c.maxW = "320px"), (c.zIndex = "tooltip"), c); + }; + var gl = { + baseStyle: gk + }; + var gm = { + Accordion: bX, + Alert: b4, + Avatar: cc, + Badge: cj, + Breadcrumb: cm, + Button: cx, + Checkbox: cF, + CloseButton: cN, + Code: cR, + Container: cT, + Divider: cZ, + Drawer: c9, + Editable: de, + Form: di, + FormError: dm, + FormLabel: dp, + Heading: dt, + Input: dE, + Kbd: dG, + Link: dI, + List: dL, + Menu: dT, + Modal: d3, + NumberInput: ej, + PinInput: ep, + Popover: eA, + Progress: eI, + Radio: eN, + Select: eT, + Skeleton: eW, + SkipLink: eY, + Slider: e8, + Spinner: fi, + Stat: fq, + Switch: fE, + Table: fM, + Tabs: f_, + Tag: f7, + Textarea: gh, + Tooltip: gl + }; + var gn = { + none: 0, + "1px": "1px solid", + "2px": "2px solid", + "4px": "4px solid", + "8px": "8px solid" + }; + var go = a3({ + sm: "30em", + md: "48em", + lg: "62em", + xl: "80em", + "2xl": "96em" + }); + var gp = { + transparent: "transparent", + current: "currentColor", + black: "#000000", + white: "#FFFFFF", + whiteAlpha: { + 50: "rgba(255, 255, 255, 0.04)", + 100: "rgba(255, 255, 255, 0.06)", + 200: "rgba(255, 255, 255, 0.08)", + 300: "rgba(255, 255, 255, 0.16)", + 400: "rgba(255, 255, 255, 0.24)", + 500: "rgba(255, 255, 255, 0.36)", + 600: "rgba(255, 255, 255, 0.48)", + 700: "rgba(255, 255, 255, 0.64)", + 800: "rgba(255, 255, 255, 0.80)", + 900: "rgba(255, 255, 255, 0.92)" + }, + blackAlpha: { + 50: "rgba(0, 0, 0, 0.04)", + 100: "rgba(0, 0, 0, 0.06)", + 200: "rgba(0, 0, 0, 0.08)", + 300: "rgba(0, 0, 0, 0.16)", + 400: "rgba(0, 0, 0, 0.24)", + 500: "rgba(0, 0, 0, 0.36)", + 600: "rgba(0, 0, 0, 0.48)", + 700: "rgba(0, 0, 0, 0.64)", + 800: "rgba(0, 0, 0, 0.80)", + 900: "rgba(0, 0, 0, 0.92)" + }, + gray: { + 50: "#F7FAFC", + 100: "#EDF2F7", + 200: "#E2E8F0", + 300: "#CBD5E0", + 400: "#A0AEC0", + 500: "#718096", + 600: "#4A5568", + 700: "#2D3748", + 800: "#1A202C", + 900: "#171923" + }, + red: { + 50: "#FFF5F5", + 100: "#FED7D7", + 200: "#FEB2B2", + 300: "#FC8181", + 400: "#F56565", + 500: "#E53E3E", + 600: "#C53030", + 700: "#9B2C2C", + 800: "#822727", + 900: "#63171B" + }, + orange: { + 50: "#FFFAF0", + 100: "#FEEBC8", + 200: "#FBD38D", + 300: "#F6AD55", + 400: "#ED8936", + 500: "#DD6B20", + 600: "#C05621", + 700: "#9C4221", + 800: "#7B341E", + 900: "#652B19" + }, + yellow: { + 50: "#FFFFF0", + 100: "#FEFCBF", + 200: "#FAF089", + 300: "#F6E05E", + 400: "#ECC94B", + 500: "#D69E2E", + 600: "#B7791F", + 700: "#975A16", + 800: "#744210", + 900: "#5F370E" + }, + green: { + 50: "#F0FFF4", + 100: "#C6F6D5", + 200: "#9AE6B4", + 300: "#68D391", + 400: "#48BB78", + 500: "#38A169", + 600: "#2F855A", + 700: "#276749", + 800: "#22543D", + 900: "#1C4532" + }, + teal: { + 50: "#E6FFFA", + 100: "#B2F5EA", + 200: "#81E6D9", + 300: "#4FD1C5", + 400: "#38B2AC", + 500: "#319795", + 600: "#2C7A7B", + 700: "#285E61", + 800: "#234E52", + 900: "#1D4044" + }, + blue: { + 50: "#ebf8ff", + 100: "#bee3f8", + 200: "#90cdf4", + 300: "#63b3ed", + 400: "#4299e1", + 500: "#3182ce", + 600: "#2b6cb0", + 700: "#2c5282", + 800: "#2a4365", + 900: "#1A365D" + }, + cyan: { + 50: "#EDFDFD", + 100: "#C4F1F9", + 200: "#9DECF9", + 300: "#76E4F7", + 400: "#0BC5EA", + 500: "#00B5D8", + 600: "#00A3C4", + 700: "#0987A0", + 800: "#086F83", + 900: "#065666" + }, + purple: { + 50: "#FAF5FF", + 100: "#E9D8FD", + 200: "#D6BCFA", + 300: "#B794F4", + 400: "#9F7AEA", + 500: "#805AD5", + 600: "#6B46C1", + 700: "#553C9A", + 800: "#44337A", + 900: "#322659" + }, + pink: { + 50: "#FFF5F7", + 100: "#FED7E2", + 200: "#FBB6CE", + 300: "#F687B3", + 400: "#ED64A6", + 500: "#D53F8C", + 600: "#B83280", + 700: "#97266D", + 800: "#702459", + 900: "#521B41" + }, + linkedin: { + 50: "#E8F4F9", + 100: "#CFEDFB", + 200: "#9BDAF3", + 300: "#68C7EC", + 400: "#34B3E4", + 500: "#00A0DC", + 600: "#008CC9", + 700: "#0077B5", + 800: "#005E93", + 900: "#004471" + }, + facebook: { + 50: "#E8F4F9", + 100: "#D9DEE9", + 200: "#B7C2DA", + 300: "#6482C0", + 400: "#4267B2", + 500: "#385898", + 600: "#314E89", + 700: "#29487D", + 800: "#223B67", + 900: "#1E355B" + }, + messenger: { + 50: "#D0E6FF", + 100: "#B9DAFF", + 200: "#A2CDFF", + 300: "#7AB8FF", + 400: "#2E90FF", + 500: "#0078FF", + 600: "#0063D1", + 700: "#0052AC", + 800: "#003C7E", + 900: "#002C5C" + }, + whatsapp: { + 50: "#dffeec", + 100: "#b9f5d0", + 200: "#90edb3", + 300: "#65e495", + 400: "#3cdd78", + 500: "#22c35e", + 600: "#179848", + 700: "#0c6c33", + 800: "#01421c", + 900: "#001803" + }, + twitter: { + 50: "#E5F4FD", + 100: "#C8E9FB", + 200: "#A8DCFA", + 300: "#83CDF7", + 400: "#57BBF5", + 500: "#1DA1F2", + 600: "#1A94DA", + 700: "#1681BF", + 800: "#136B9E", + 900: "#0D4D71" + }, + telegram: { + 50: "#E3F2F9", + 100: "#C5E4F3", + 200: "#A2D4EC", + 300: "#7AC1E4", + 400: "#47A9DA", + 500: "#0088CC", + 600: "#007AB8", + 700: "#006BA1", + 800: "#005885", + 900: "#003F5E" + } + }; + var gq = { + none: "0", + sm: "0.125rem", + base: "0.25rem", + md: "0.375rem", + lg: "0.5rem", + xl: "0.75rem", + "2xl": "1rem", + "3xl": "1.5rem", + full: "9999px" + }; + var gr = { + xs: "0 0 0 1px rgba(0, 0, 0, 0.05)", + sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)", + base: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)", + md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)", + lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)", + xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)", + "2xl": "0 25px 50px -12px rgba(0, 0, 0, 0.25)", + outline: "0 0 0 3px rgba(66, 153, 225, 0.6)", + inner: "inset 0 2px 4px 0 rgba(0,0,0,0.06)", + none: "none", + "dark-lg": "rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px" + }; + var gs = { + common: "background-color, border-color, color, fill, stroke, opacity, box-shadow, transform", + colors: "background-color, border-color, color, fill, stroke", + dimensions: "width, height", + position: "left, right, top, bottom", + background: "background-color, background-image, background-position" + }; + var gt = { + "ease-in": "cubic-bezier(0.4, 0, 1, 1)", + "ease-out": "cubic-bezier(0, 0, 0.2, 1)", + "ease-in-out": "cubic-bezier(0.4, 0, 0.2, 1)" + }; + var gu = { + "ultra-fast": "50ms", + faster: "100ms", + fast: "150ms", + normal: "200ms", + slow: "300ms", + slower: "400ms", + "ultra-slow": "500ms" + }; + var gv = { + property: gs, + easing: gt, + duration: gu + }; + var gw = { + hide: -1, + auto: "auto", + base: 0, + docked: 10, + dropdown: 1000, + sticky: 1100, + banner: 1200, + overlay: 1300, + modal: 1400, + popover: 1500, + skipLink: 1600, + toast: 1700, + tooltip: 1800 + }; + var gx = { + none: 0, + sm: "4px", + base: "8px", + md: "12px", + lg: "16px", + xl: "24px", + "2xl": "40px", + "3xl": "64px" + }; + var gy = T({ + breakpoints: go, + zIndices: gw, + radii: gq, + blur: gx, + colors: gp + }, bP, { + sizes: W, + shadows: gr, + space: S, + borders: gn, + transition: gv + }); + var gz = { + colors: { + "chakra-body-text": { + _light: "gray.800", + _dark: "whiteAlpha.900" + }, + "chakra-body-bg": { + _light: "white", + _dark: "gray.800" + }, + "chakra-border-color": { + _light: "gray.200", + _dark: "whiteAlpha.300" + }, + "chakra-placeholder-color": { + _light: "gray.500", + _dark: "whiteAlpha.400" + } + } + }; + var gA = { + global: { + body: { + fontFamily: "body", + color: "chakra-body-text", + bg: "chakra-body-bg", + transitionProperty: "background-color", + transitionDuration: "normal", + lineHeight: "base" + }, + "*::placeholder": { + color: "chakra-placeholder-color" + }, + "*, *::before, &::after": { + borderColor: "chakra-border-color", + wordWrap: "break-word" + } + } + }; + var gB = gA; + var gC = null && [ + "borders", + "breakpoints", + "colors", + "components", + "config", + "direction", + "fonts", + "fontSizes", + "fontWeights", + "letterSpacings", + "lineHeights", + "radii", + "shadows", + "sizes", + "space", + "styles", + "transition", + "zIndices", + ]; + function gD(a) { + if (!isObject(a)) { + return false; + } + return gC.every(function(b) { + return Object.prototype.hasOwnProperty.call(a, b); + }); + } + var gE = "ltr"; + var gF = { + useSystemColorMode: false, + initialColorMode: "light", + cssVarPrefix: "chakra" + }; + var gG = T({ + semanticTokens: gz, + direction: gE + }, gy, { + components: gm, + styles: gB, + config: gF + }); + var gH = c(1358); + function gI() { + gI = Object.assign ? Object.assign.bind() : function(a) { + for(var b = 1; b < arguments.length; b++){ + var c = arguments[b]; + for(var d in c){ + if (Object.prototype.hasOwnProperty.call(c, d)) { + a[d] = c[d]; + } + } + } + return a; + }; + return gI.apply(this, arguments); + } + function gJ(a, b) { + if (a == null) return {}; + var c = {}; + var d = Object.keys(a); + var e, f; + for(f = 0; f < d.length; f++){ + e = d[f]; + if (b.indexOf(e) >= 0) continue; + c[e] = a[e]; + } + return c; + } + var gK = [ + "label", + "thickness", + "speed", + "emptyColor", + "className", + ]; + var gL = (0, h.F4)({ + "0%": { + transform: "rotate(0deg)" + }, + "100%": { + transform: "rotate(360deg)" + } + }); + var gM = (0, F.Gp)(function(a, b) { + var c = (0, F.mq)("Spinner", a); + var d = (0, F.Lr)(a), e = d.label, f = e === void 0 ? "Loading..." : e, h = d.thickness, i = h === void 0 ? "2px" : h, j = d.speed, l = j === void 0 ? "0.45s" : j, m = d.emptyColor, n = m === void 0 ? "transparent" : m, o = d.className, p = gJ(d, gK); + var q = (0, k.cx)("chakra-spinner", o); + var r = gI({ + display: "inline-block", + borderColor: "currentColor", + borderStyle: "solid", + borderRadius: "99999px", + borderWidth: i, + borderBottomColor: n, + borderLeftColor: n, + animation: gL + " " + l + " linear infinite" + }, c); + return g.createElement(F.m$.div, gI({ + ref: b, + __css: r, + className: q + }, p), f && g.createElement(gH.TX, null, f)); + }); + if (k.Ts) { + gM.displayName = "Spinner"; + } + var gN = c(894); + function gO() { + gO = Object.assign ? Object.assign.bind() : function(a) { + for(var b = 1; b < arguments.length; b++){ + var c = arguments[b]; + for(var d in c){ + if (Object.prototype.hasOwnProperty.call(c, d)) { + a[d] = c[d]; + } + } + } + return a; + }; + return gO.apply(this, arguments); + } + function gP(a, b) { + if (a == null) return {}; + var c = {}; + var d = Object.keys(a); + var e, f; + for(f = 0; f < d.length; f++){ + e = d[f]; + if (b.indexOf(e) >= 0) continue; + c[e] = a[e]; + } + return c; + } + var gQ = function a(b) { + return g.createElement(gN.JO, gO({ + viewBox: "0 0 24 24" + }, b), g.createElement("path", { + fill: "currentColor", + d: "M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z" + })); + }; + var gR = function a(b) { + return g.createElement(gN.JO, gO({ + viewBox: "0 0 24 24" + }, b), g.createElement("path", { + fill: "currentColor", + d: "M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z" + })); + }; + var gS = function a(b) { + return g.createElement(gN.JO, gO({ + viewBox: "0 0 24 24" + }, b), g.createElement("path", { + fill: "currentColor", + d: "M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z" + })); + }; + var gT = [ + "status" + ]; + var gU = (0, F.eC)("Alert"), gV = gU[0], gW = gU[1]; + var gX = { + info: { + icon: gR, + colorScheme: "blue" + }, + warning: { + icon: gS, + colorScheme: "orange" + }, + success: { + icon: gQ, + colorScheme: "green" + }, + error: { + icon: gS, + colorScheme: "red" + }, + loading: { + icon: gM, + colorScheme: "blue" + } + }; + var gY = (0, l.kr)({ + name: "AlertContext", + errorMessage: "useAlertContext: `context` is undefined. Seems you forgot to wrap alert components in ``" + }), gZ = gY[0], g$ = gY[1]; + var g_ = (0, F.Gp)(function(a, b) { + var c; + var d = (0, F.Lr)(a), e = d.status, f = e === void 0 ? "info" : e, h = gP(d, gT); + var i = (c = a.colorScheme) != null ? c : gX[f].colorScheme; + var j = (0, F.jC)("Alert", gO({}, a, { + colorScheme: i + })); + var l = gO({ + width: "100%", + display: "flex", + alignItems: "center", + position: "relative", + overflow: "hidden" + }, j.container); + return g.createElement(gZ, { + value: { + status: f + } + }, g.createElement(gV, { + value: j + }, g.createElement(F.m$.div, gO({ + role: "alert", + ref: b + }, h, { + className: (0, k.cx)("chakra-alert", a.className), + __css: l + })))); + }); + var g0 = (0, F.Gp)(function(a, b) { + var c = gW(); + return g.createElement(F.m$.div, gO({ + ref: b + }, a, { + className: (0, k.cx)("chakra-alert__title", a.className), + __css: c.title + })); + }); + var g1 = (0, F.Gp)(function(a, b) { + var c = gW(); + var d = gO({ + display: "inline" + }, c.description); + return g.createElement(F.m$.div, gO({ + ref: b + }, a, { + className: (0, k.cx)("chakra-alert__desc", a.className), + __css: d + })); + }); + var g2 = function a(b) { + var c = g$(), d = c.status; + var e = gX[d].icon; + var f = gW(); + var h = d === "loading" ? f.spinner : f.icon; + return g.createElement(F.m$.span, gO({ + display: "inherit" + }, b, { + className: (0, k.cx)("chakra-alert__icon", b.className), + __css: h + }), b.children || g.createElement(e, { + h: "100%", + w: "100%" + })); + }; + function g3(a, b) { + if (a == null) return {}; + var c = {}; + var d = Object.keys(a); + var e, f; + for(f = 0; f < d.length; f++){ + e = d[f]; + if (b.indexOf(e) >= 0) continue; + c[e] = a[e]; + } + return c; + } + function g4() { + g4 = Object.assign ? Object.assign.bind() : function(a) { + for(var b = 1; b < arguments.length; b++){ + var c = arguments[b]; + for(var d in c){ + if (Object.prototype.hasOwnProperty.call(c, d)) { + a[d] = c[d]; + } + } + } + return a; + }; + return g4.apply(this, arguments); + } + var g5 = [ + "children", + "isDisabled", + "__css", + ]; + var g6 = function a(b) { + return g.createElement(gN.JO, g4({ + focusable: "false", + "aria-hidden": true + }, b), g.createElement("path", { + fill: "currentColor", + d: "M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z" + })); + }; + var g7 = (0, F.Gp)(function(a, b) { + var c = (0, F.mq)("CloseButton", a); + var d = (0, F.Lr)(a), e = d.children, f = d.isDisabled, h = d.__css, i = g3(d, g5); + var j = { + outline: 0, + display: "flex", + alignItems: "center", + justifyContent: "center", + flexShrink: 0 + }; + return g.createElement(F.m$.button, g4({ + type: "button", + "aria-label": "Close", + ref: b, + disabled: f, + __css: g4({}, j, c, h) + }, i), e || g.createElement(g6, { + width: "1em", + height: "1em" + })); + }); + if (k.Ts) { + g7.displayName = "CloseButton"; + } + var g8 = c(5947); + var g9 = c(8970); + var ha = c(1190); + function hb() { + hb = Object.assign ? Object.assign.bind() : function(a) { + for(var b = 1; b < arguments.length; b++){ + var c = arguments[b]; + for(var d in c){ + if (Object.prototype.hasOwnProperty.call(c, d)) { + a[d] = c[d]; + } + } + } + return a; + }; + return hb.apply(this, arguments); + } + function hc(a, b) { + var c; + var d = a != null ? a : "bottom"; + var e = { + "top-start": { + ltr: "top-left", + rtl: "top-right" + }, + "top-end": { + ltr: "top-right", + rtl: "top-left" + }, + "bottom-start": { + ltr: "bottom-left", + rtl: "bottom-right" + }, + "bottom-end": { + ltr: "bottom-right", + rtl: "bottom-left" + } + }; + var f = e[d]; + return (c = f == null ? void 0 : f[b]) != null ? c : d; + } + function hd(a, b) { + var c = he(a, b); + var d = c ? a[c].findIndex(function(a) { + return a.id === b; + }) : -1; + return { + position: c, + index: d + }; + } + var he = function a(b, c) { + var d; + return (d = Object.values(b).flat().find(function(a) { + return a.id === c; + })) == null ? void 0 : d.position; + }; + function hf(a) { + var b = a.includes("right"); + var c = a.includes("left"); + var d = "center"; + if (b) d = "flex-end"; + if (c) d = "flex-start"; + return { + display: "flex", + flexDirection: "column", + alignItems: d + }; + } + function hg(a) { + var b = a === "top" || a === "bottom"; + var c = b ? "0 auto" : undefined; + var d = a.includes("top") ? "env(safe-area-inset-top, 0px)" : undefined; + var e = a.includes("bottom") ? "env(safe-area-inset-bottom, 0px)" : undefined; + var f = !a.includes("left") ? "env(safe-area-inset-right, 0px)" : undefined; + var g = !a.includes("right") ? "env(safe-area-inset-left, 0px)" : undefined; + return { + position: "fixed", + zIndex: 5500, + pointerEvents: "none", + display: "flex", + flexDirection: "column", + margin: c, + top: d, + bottom: e, + right: f, + left: g + }; + } + var hh = { + top: [], + "top-left": [], + "top-right": [], + "bottom-left": [], + bottom: [], + "bottom-right": [] + }; + var hi = hj(hh); + function hj(a) { + var b = a; + var c = new Set(); + var d = function a(d) { + b = d(b); + c.forEach(function(a) { + return a(); + }); + }; + return { + getState: function a() { + return b; + }, + subscribe: function b(e) { + c.add(e); + return function() { + d(function() { + return a; + }); + c["delete"](e); + }; + }, + removeToast: function a(b, c) { + d(function(a) { + var d; + return hb({}, a, ((d = {}), (d[c] = a[c].filter(function(a) { + return a.id != b; + })), d)); + }); + }, + notify: function a(b, c) { + var e = hl(b, c); + var f = e.position, g = e.id; + d(function(a) { + var b, c, d; + var g = f.includes("top"); + var h = g ? [ + e + ].concat((b = a[f]) != null ? b : []) : [].concat((c = a[f]) != null ? c : [], [ + e + ]); + return hb({}, a, ((d = {}), (d[f] = h), d)); + }); + return g; + }, + update: function a(b, c) { + if (!b) return; + d(function(a) { + var d = hb({}, a); + var e = hd(d, b), f = e.position, g = e.index; + if (f && g !== -1) { + d[f][g] = hb({}, d[f][g], c, { + message: hn(c) + }); + } + return d; + }); + }, + closeAll: function a(b) { + var c = b === void 0 ? {} : b, e = c.positions; + d(function(a) { + var b = [ + "bottom", + "bottom-right", + "bottom-left", + "top", + "top-left", + "top-right", + ]; + var c = e != null ? e : b; + return c.reduce(function(b, c) { + b[c] = a[c].map(function(a) { + return hb({}, a, { + requestClose: true + }); + }); + return b; + }, hb({}, a)); + }); + }, + close: function a(b) { + d(function(a) { + var c; + var d = he(a, b); + if (!d) return a; + return hb({}, a, ((c = {}), (c[d] = a[d].map(function(a) { + if (a.id == b) { + return hb({}, a, { + requestClose: true + }); + } + return a; + })), c)); + }); + }, + isActive: function a(b) { + return Boolean(hd(hi.getState(), b).position); + } + }; + } + var hk = 0; + function hl(a, b) { + var c, d; + if (b === void 0) { + b = {}; + } + hk += 1; + var e = (c = b.id) != null ? c : hk; + var f = (d = b.position) != null ? d : "bottom"; + return { + id: e, + message: a, + position: f, + duration: b.duration, + onCloseComplete: b.onCloseComplete, + onRequestRemove: function a() { + return hi.removeToast(String(e), f); + }, + status: b.status, + requestClose: false, + containerStyle: b.containerStyle + }; + } + var hm = function a(b) { + var c = b.status, d = b.variant, e = d === void 0 ? "solid" : d, f = b.id, h = b.title, i = b.isClosable, j = b.onClose, k = b.description, l = b.icon; + var m = typeof f !== "undefined" ? "toast-" + f + "-title" : undefined; + return g.createElement(g_, { + status: c, + variant: e, + id: String(f), + alignItems: "start", + borderRadius: "md", + boxShadow: "lg", + paddingEnd: 8, + textAlign: "start", + width: "auto", + "aria-labelledby": m + }, g.createElement(g2, null, l), g.createElement(F.m$.div, { + flex: "1", + maxWidth: "100%" + }, h && g.createElement(g0, { + id: m + }, h), k && g.createElement(g1, { + display: "block" + }, k)), i && g.createElement(g7, { + size: "sm", + onClick: j, + position: "absolute", + insetEnd: 1, + top: 1 + })); + }; + function hn(a) { + if (a === void 0) { + a = {}; + } + var b = a, c = b.render, d = b.toastComponent, e = d === void 0 ? hm : d; + var f = function b(d) { + if ((0, k.mf)(c)) { + return c(d); + } + return g.createElement(e, hb({}, d, a)); + }; + return f; + } + function ho(a, b) { + var c = function c(d) { + var e; + return hb({}, b, d, { + position: hc((e = d == null ? void 0 : d.position) != null ? e : b == null ? void 0 : b.position, a) + }); + }; + var d = function a(b) { + var d = c(b); + var e = hn(d); + return hi.notify(e, d); + }; + d.update = function(a, b) { + hi.update(a, c(b)); + }; + d.promise = function(a, b) { + var c = d(hb({}, b.loading, { + status: "loading", + duration: null + })); + a.then(function(a) { + return d.update(c, hb({ + status: "success", + duration: 5000 + }, runIfFn(b.success, a))); + })["catch"](function(a) { + return d.update(c, hb({ + status: "error", + duration: 5000 + }, runIfFn(b.error, a))); + }); + }; + d.closeAll = hi.closeAll; + d.close = hi.close; + d.isActive = hi.isActive; + return d; + } + function hp(a) { + var b = useChakra(), c = b.theme; + return React.useMemo(function() { + return ho(c.direction, a); + }, [ + a, + c.direction + ]); + } + var hq = { + initial: function a(b) { + var c; + var d = b.position; + var e = [ + "top", + "bottom" + ].includes(d) ? "y" : "x"; + var f = [ + "top-right", + "bottom-right" + ].includes(d) ? 1 : -1; + if (d === "bottom") f = 1; + return ((c = { + opacity: 0 + }), (c[e] = f * 24), c); + }, + animate: { + opacity: 1, + y: 0, + x: 0, + scale: 1, + transition: { + duration: 0.4, + ease: [ + 0.4, + 0, + 0.2, + 1 + ] + } + }, + exit: { + opacity: 0, + scale: 0.85, + transition: { + duration: 0.2, + ease: [ + 0.4, + 0, + 1, + 1 + ] + } + } + }; + var hr = g.memo(function(a) { + var b = a.id, c = a.message, d = a.onCloseComplete, e = a.onRequestRemove, f = a.requestClose, h = f === void 0 ? false : f, i = a.position, j = i === void 0 ? "bottom" : i, l = a.duration, n = l === void 0 ? 5000 : l, o = a.containerStyle, p = a.motionVariants, q = p === void 0 ? hq : p, r = a.toastSpacing, s = r === void 0 ? "0.5rem" : r; + var t = g.useState(n), u = t[0], v = t[1]; + var w = (0, g8.hO)(); + (0, m.rf)(function() { + if (!w) { + d == null ? void 0 : d(); + } + }, [ + w + ]); + (0, m.rf)(function() { + v(n); + }, [ + n + ]); + var x = function a() { + return v(null); + }; + var y = function a() { + return v(n); + }; + var z = function a() { + if (w) e(); + }; + g.useEffect(function() { + if (w && h) { + e(); + } + }, [ + w, + h, + e + ]); + (0, m.KS)(z, u); + var A = g.useMemo(function() { + return hb({ + pointerEvents: "auto", + maxWidth: 560, + minWidth: 300, + margin: s + }, o); + }, [ + o, + s + ]); + var B = g.useMemo(function() { + return hf(j); + }, [ + j + ]); + return g.createElement(g9.E.li, { + layout: true, + className: "chakra-toast", + variants: q, + initial: "initial", + animate: "animate", + exit: "exit", + onHoverStart: x, + onHoverEnd: y, + custom: { + position: j + }, + style: B + }, g.createElement(F.m$.div, { + role: "status", + "aria-atomic": "true", + className: "chakra-toast__inner", + __css: A + }, (0, k.Pu)(c, { + id: b, + onClose: z + }))); + }); + if (k.Ts) { + hr.displayName = "ToastComponent"; + } + var hs = function a(b) { + var c = g.useSyncExternalStore(hi.subscribe, hi.getState, hi.getState); + var d = b.children, e = b.motionVariants, f = b.component, h = f === void 0 ? hr : f, i = b.portalProps; + var j = (0, k.Yd)(c).map(function(a) { + var b = c[a]; + return g.createElement("ul", { + role: "region", + "aria-live": "polite", + key: a, + id: "chakra-toast-manager-" + a, + style: hg(a) + }, g.createElement(ha.M, { + initial: false + }, b.map(function(a) { + return g.createElement(h, hb({ + key: a.id, + motionVariants: e + }, a)); + }))); + }); + return g.createElement(g.Fragment, null, d, g.createElement(E, i, j)); + }; + var ht = { + duration: 5000, + variant: "solid" + }; + var hu = { + theme: gG, + colorMode: "light", + toggleColorMode: k.ZT, + setColorMode: k.ZT, + defaultOptions: ht + }; + function hv(a) { + var b = a === void 0 ? hu : a, c = b.theme, d = c === void 0 ? hu.theme : c, e = b.colorMode, f = e === void 0 ? hu.colorMode : e, g = b.toggleColorMode, h = g === void 0 ? hu.toggleColorMode : g, i = b.setColorMode, j = i === void 0 ? hu.setColorMode : i, k = b.defaultOptions, l = k === void 0 ? hu.defaultOptions : k, m = b.motionVariants, n = b.toastSpacing, o = b.component; + var p = { + colorMode: f, + setColorMode: j, + toggleColorMode: h + }; + var q = function a() { + return React.createElement(ThemeProvider, { + theme: d + }, React.createElement(ColorModeContext.Provider, { + value: p + }, React.createElement(hs, { + defaultOptions: l, + motionVariants: m, + toastSpacing: n, + component: o + }))); + }; + return { + ToastContainer: q, + toast: ho(d.direction, l) + }; + } + function hw(a, b) { + if (a == null) return {}; + var c = {}; + var d = Object.keys(a); + var e, f; + for(f = 0; f < d.length; f++){ + e = d[f]; + if (b.indexOf(e) >= 0) continue; + c[e] = a[e]; + } + return c; + } + var hx = [ + "children", + "toastOptions" + ]; + var hy = function a(b) { + var c = b.children, d = b.toastOptions, e = hw(b, hx); + return g.createElement(R, e, c, g.createElement(hs, d)); + }; + hy.defaultProps = { + theme: gG + }; + function hz() { + for(var a = arguments.length, b = new Array(a), c = 0; c < a; c++){ + b[c] = arguments[c]; + } + var d = [].concat(b); + var e = b[b.length - 1]; + if (isChakraTheme(e) && d.length > 1) { + d = d.slice(0, d.length - 1); + } else { + e = theme$1; + } + return pipe.apply(void 0, d.map(function(a) { + return function(b) { + return isFunction(a) ? a(b) : hA(b, a); + }; + }))(e); + } + function hA() { + for(var a = arguments.length, b = new Array(a), c = 0; c < a; c++){ + b[c] = arguments[c]; + } + return mergeWith.apply(void 0, [ + {} + ].concat(b, [ + hB + ])); + } + function hB(a, b, c, d) { + if ((isFunction(a) || isFunction(b)) && Object.prototype.hasOwnProperty.call(d, c)) { + return function() { + var c = isFunction(a) ? a.apply(void 0, arguments) : a; + var d = isFunction(b) ? b.apply(void 0, arguments) : b; + return mergeWith({}, c, d, hB); + }; + } + return undefined; + } + function hC(a) { + var b = a.colorScheme, c = a.components; + return function(a) { + var d = Object.keys(a.components || {}); + if (Array.isArray(c)) { + d = c; + } else if (isObject(c)) { + d = Object.keys(c); + } + return hA(a, { + components: fromEntries(d.map(function(a) { + var c = { + defaultProps: { + colorScheme: b + } + }; + return [ + a, + c + ]; + })) + }); + }; + } + function hD(a) { + var b = a.size, c = a.components; + return function(a) { + var d = Object.keys(a.components || {}); + if (Array.isArray(c)) { + d = c; + } else if (isObject(c)) { + d = Object.keys(c); + } + return hA(a, { + components: fromEntries(d.map(function(a) { + var c = { + defaultProps: { + size: b + } + }; + return [ + a, + c + ]; + })) + }); + }; + } + function hE(a) { + var b = a.variant, c = a.components; + return function(a) { + var d = Object.keys(a.components || {}); + if (Array.isArray(c)) { + d = c; + } else if (isObject(c)) { + d = Object.keys(c); + } + return hA(a, { + components: fromEntries(d.map(function(a) { + var c = { + defaultProps: { + variant: b + } + }; + return [ + a, + c + ]; + })) + }); + }; + } + function hF(a) { + var b = a.defaultProps, c = b.colorScheme, d = b.variant, e = b.size, f = a.components; + var g = function a(b) { + return b; + }; + var h = [ + c ? hC({ + colorScheme: c, + components: f + }) : g, + e ? hD({ + size: e, + components: f + }) : g, + d ? hE({ + variant: d, + components: f + }) : g, + ]; + return function(a) { + return hA(pipe.apply(void 0, h)(a)); + }; + } + function hG(a) { + var b = a.Component, c = a.pageProps; + return (0, f.jsx)(hy, { + children: (0, f.jsx)(b, e({}, c)) + }); + } + var hH = hG; + } + }, + function(a) { + var b = function(b) { + return a((a.s = b)); + }; + a.O(0, [ + 774, + 179 + ], function() { + return b(3837), b(387); + }); + var c = a.O(); + _N_E = c; + }, +]); diff --git a/crates/swc_ecma_minifier/tests/fixture/next/react-ace/chunks/8a28b14e.d8fbda268ed281a1/output.js b/crates/swc_ecma_minifier/tests/fixture/next/react-ace/chunks/8a28b14e.d8fbda268ed281a1/output.js index 12c79eca878..3b26675d0e6 100644 --- a/crates/swc_ecma_minifier/tests/fixture/next/react-ace/chunks/8a28b14e.d8fbda268ed281a1/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/next/react-ace/chunks/8a28b14e.d8fbda268ed281a1/output.js @@ -546,7 +546,9 @@ "module" ], function(require, exports, module) { "use strict"; - var Range = function(startRow, startColumn, endRow, endColumn) { + var comparePoints = function(p1, p2) { + return p1.row - p2.row || p1.column - p2.column; + }, Range = function(startRow, startColumn, endRow, endColumn) { this.start = { row: startRow, column: startColumn @@ -640,9 +642,7 @@ }; }).call(Range.prototype), Range.fromPoints = function(start, end) { return new Range(start.row, start.column, end.row, end.column); - }, Range.comparePoints = function(p1, p2) { - return p1.row - p2.row || p1.column - p2.column; - }, Range.comparePoints = function(p1, p2) { + }, Range.comparePoints = comparePoints, Range.comparePoints = function(p1, p2) { return p1.row - p2.row || p1.column - p2.column; }, exports.Range = Range; }), ace.define("ace/lib/lang", [ @@ -759,8 +759,7 @@ "ace/lib/keys", ], function(require, exports, module) { "use strict"; - var event = require("../lib/event"), useragent = require("../lib/useragent"), dom = require("../lib/dom"), lang = require("../lib/lang"), clipboard = require("../clipboard"), BROKEN_SETDATA = useragent.isChrome < 18, USE_IE_MIME_TYPE = useragent.isIE, HAS_FOCUS_ARGS = useragent.isChrome > 63, KEYS = require("../lib/keys"), MODS = KEYS.KEY_MODS, isIOS = useragent.isIOS, valueResetRegex = isIOS ? /\s/ : /\n/, isMobile = useragent.isMobile; - exports.TextInput = function(parentNode, host) { + var event = require("../lib/event"), useragent = require("../lib/useragent"), dom = require("../lib/dom"), lang = require("../lib/lang"), clipboard = require("../clipboard"), BROKEN_SETDATA = useragent.isChrome < 18, USE_IE_MIME_TYPE = useragent.isIE, HAS_FOCUS_ARGS = useragent.isChrome > 63, KEYS = require("../lib/keys"), MODS = KEYS.KEY_MODS, isIOS = useragent.isIOS, valueResetRegex = isIOS ? /\s/ : /\n/, isMobile = useragent.isMobile, TextInput = function(parentNode, host) { var closeTimeout, text = dom.createElement("textarea"); text.className = "ace_text-input", text.setAttribute("wrap", "off"), text.setAttribute("autocorrect", "off"), text.setAttribute("autocapitalize", "off"), text.setAttribute("spellcheck", !1), text.style.opacity = "0", parentNode.insertBefore(text, parentNode.firstChild); var copied = !1, pasted = !1, inComposition = !1, sendingText = !1, tempStyle = ""; @@ -840,7 +839,15 @@ } }; this.resetSelection = resetSelection, isFocused && host.onFocus(); - var inputHandler = null; + var onSelect = function(e) { + if (!inComposition) { + if (copied) copied = !1; + else { + var text1; + 0 === (text1 = text).selectionStart && text1.selectionEnd >= lastValue.length && text1.value === lastValue && lastValue && text1.selectionEnd !== lastSelectionEnd ? (host.selectAll(), resetSelection()) : isMobile && text.selectionStart != lastSelectionStart && resetSelection(); + } + } + }, inputHandler = null; this.setInputHandler = function(cb) { inputHandler = cb; }, this.getInputHandler = function() { @@ -896,15 +903,7 @@ var data = handleClipboardData(e); clipboard.pasteCancelled() || ("string" == typeof data ? (data && host.onPaste(data, e), useragent.isIE && setTimeout(resetSelection), event.preventDefault(e)) : (text.value = "", pasted = !0)); }; - event.addCommandKeyListener(text, host.onCommandKey.bind(host), host), event.addListener(text, "select", function(e) { - if (!inComposition) { - if (copied) copied = !1; - else { - var text1; - 0 === (text1 = text).selectionStart && text1.selectionEnd >= lastValue.length && text1.value === lastValue && lastValue && text1.selectionEnd !== lastSelectionEnd ? (host.selectAll(), resetSelection()) : isMobile && text.selectionStart != lastSelectionStart && resetSelection(); - } - } - }, host), event.addListener(text, "input", onInput, host), event.addListener(text, "cut", onCut, host), event.addListener(text, "copy", onCopy, host), event.addListener(text, "paste", onPaste, host), "oncut" in text && "oncopy" in text && "onpaste" in text || event.addListener(parentNode, "keydown", function(e) { + event.addCommandKeyListener(text, host.onCommandKey.bind(host), host), event.addListener(text, "select", onSelect, host), event.addListener(text, "input", onInput, host), event.addListener(text, "cut", onCut, host), event.addListener(text, "copy", onCopy, host), event.addListener(text, "paste", onPaste, host), "oncut" in text && "oncopy" in text && "onpaste" in text || event.addListener(parentNode, "keydown", function(e) { if ((!useragent.isMac || e.metaKey) && e.ctrlKey) switch(e.keyCode){ case 67: onCopy(e); @@ -916,7 +915,13 @@ onCut(e); } }, host); - var onCompositionUpdate = function() { + var onCompositionStart = function(e) { + if (!inComposition && host.onCompositionStart && !host.$readOnly && (inComposition = {}, !commandMode)) { + e.data && (inComposition.useTextareaForIME = !1), setTimeout(onCompositionUpdate, 0), host._signal("compositionStart"), host.on("mousedown", cancelComposition); + var range = host.getSelectionRange(); + range.end.row = range.start.row, range.end.column = range.start.column, inComposition.markerRange = range, inComposition.selectionStart = lastSelectionStart, host.onCompositionStart(inComposition), inComposition.useTextareaForIME ? (lastValue = text.value = "", lastSelectionStart = 0, lastSelectionEnd = 0) : (text.msGetInputContext && (inComposition.context = text.msGetInputContext()), text.getInputContext && (inComposition.context = text.getInputContext())); + } + }, onCompositionUpdate = function() { if (inComposition && host.onCompositionUpdate && !host.$readOnly) { if (commandMode) return cancelComposition(); inComposition.useTextareaForIME ? host.onCompositionUpdate(text.value) : (sendText(text.value), inComposition.markerRange && (inComposition.context && (inComposition.markerRange.start.column = inComposition.selectionStart = inComposition.context.compositionStartOffset), inComposition.markerRange.end.column = inComposition.markerRange.start.column + lastSelectionEnd - inComposition.selectionStart + lastRestoreEnd)); @@ -933,13 +938,7 @@ tempStyle && (text.style.cssText = tempStyle, tempStyle = ""), host.renderer.$isMousePressed = !1, host.renderer.$keepTextAreaAtCursor && host.renderer.$moveTextAreaToCursor(); }, 0); } - event.addListener(text, "compositionstart", function(e) { - if (!inComposition && host.onCompositionStart && !host.$readOnly && (inComposition = {}, !commandMode)) { - e.data && (inComposition.useTextareaForIME = !1), setTimeout(onCompositionUpdate, 0), host._signal("compositionStart"), host.on("mousedown", cancelComposition); - var range = host.getSelectionRange(); - range.end.row = range.start.row, range.end.column = range.start.column, inComposition.markerRange = range, inComposition.selectionStart = lastSelectionStart, host.onCompositionStart(inComposition), inComposition.useTextareaForIME ? (lastValue = text.value = "", lastSelectionStart = 0, lastSelectionEnd = 0) : (text.msGetInputContext && (inComposition.context = text.msGetInputContext()), text.getInputContext && (inComposition.context = text.getInputContext())); - } - }, host), event.addListener(text, "compositionupdate", onCompositionUpdate, host), event.addListener(text, "keyup", function(e) { + event.addListener(text, "compositionstart", onCompositionStart, host), event.addListener(text, "compositionupdate", onCompositionUpdate, host), event.addListener(text, "keyup", function(e) { 27 == e.keyCode && text.value.length < text.selectionStart && (inComposition || (lastValue = text.value), lastSelectionStart = lastSelectionEnd = -1, resetSelection()), syncComposition(); }, host), event.addListener(text, "keydown", syncComposition, host), event.addListener(text, "compositionend", onCompositionEnd, host), this.getElement = function() { return text; @@ -985,7 +984,8 @@ }, document.addEventListener("selectionchange", detectArrowKeys), host1.on("destroy", function() { document.removeEventListener("selectionchange", detectArrowKeys); })); - }, exports.$setUserAgentForTests = function(_isMobile, _isIOS) { + }; + exports.TextInput = TextInput, exports.$setUserAgentForTests = function(_isMobile, _isIOS) { isMobile = _isMobile, isIOS = _isIOS; }; }), ace.define("ace/mouse/default_handlers", [ @@ -3073,7 +3073,13 @@ this.$embeds || (this.$embeds = []), this.$embeds.push(prefix); }, this.getEmbeds = function() { return this.$embeds; - }, this.normalizeRules = function() { + }; + var pushState = function(currentState, stack) { + return ("start" != currentState || stack.length) && stack.unshift(this.nextState, currentState), this.nextState; + }, popState = function(currentState, stack) { + return stack.shift(), stack.shift() || "start"; + }; + this.normalizeRules = function() { var id = 0, rules = this.$rules; function processState(key) { var state = rules[key]; @@ -3091,12 +3097,8 @@ if (next && Array.isArray(next)) { var stateName = rule.stateName; !stateName && ("string" != typeof (stateName = rule.token) && (stateName = stateName[0] || ""), rules[stateName] && (stateName += id++)), rules[stateName] = next, rule.next = stateName, processState(stateName); - } else "pop" == next && (rule.next = function(currentState, stack) { - return stack.shift(), stack.shift() || "start"; - }); - if (rule.push && (rule.nextState = rule.next || rule.push, rule.next = function(currentState, stack) { - return ("start" != currentState || stack.length) && stack.unshift(this.nextState, currentState), this.nextState; - }, delete rule.push), rule.rules) for(var r in rule.rules)rules[r] ? rules[r].push && rules[r].push.apply(rules[r], rule.rules[r]) : rules[r] = rule.rules[r]; + } else "pop" == next && (rule.next = popState); + if (rule.push && (rule.nextState = rule.next || rule.push, rule.next = pushState, delete rule.push), rule.rules) for(var r in rule.rules)rules[r] ? rules[r].push && rules[r].push.apply(rules[r], rule.rules[r]) : rules[r] = rule.rules[r]; var includeName = "string" == typeof rule ? rule : rule.include; if (includeName && (toInsert = Array.isArray(includeName) ? includeName.map(function(x) { return rules[x]; @@ -11167,7 +11169,8 @@ margin: 0 10px;\ data: q })); }; - }).call(WorkerClient.prototype), exports.UIWorkerClient = function(topLevelNamespaces, mod, classname) { + }).call(WorkerClient.prototype); + var UIWorkerClient = function(topLevelNamespaces, mod, classname) { var main = null, emitSync = !1, sender = Object.create(EventEmitter), messageBuffer = [], workerClient = new WorkerClient({ messageBuffer: messageBuffer, terminate: function() {}, @@ -11204,7 +11207,8 @@ margin: 0 10px;\ ], function(Main) { for(main = new Main[classname](sender); messageBuffer.length;)processNext(); }), workerClient; - }, exports.WorkerClient = WorkerClient, exports.createWorker = createWorker; + }; + exports.UIWorkerClient = UIWorkerClient, exports.WorkerClient = WorkerClient, exports.createWorker = createWorker; }), ace.define("ace/placeholder", [ "require", "exports", diff --git a/crates/swc_ecma_minifier/tests/fixture/next/react-pdf-renderer/output.js b/crates/swc_ecma_minifier/tests/fixture/next/react-pdf-renderer/output.js index d3b09b22992..7eaf56df5ac 100644 --- a/crates/swc_ecma_minifier/tests/fixture/next/react-pdf-renderer/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/next/react-pdf-renderer/output.js @@ -415,18 +415,19 @@ }, 9332: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a, b, c) { + b.__esModule = !0, b.default = void 0; + var c = function(a, b, c) { if (a >= 0 && a >= c.length || a < 0 && Math.abs(a) > c.length) return c; var d, e = a < 0 ? c.length + a : a; return Object.assign([], c, ((d = {})[e] = b(c[e]), d)); }; + b.default = c; }, 2354: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(7757)), f = d(c(8926)), g = d(c(4615)); - b.default = function() { + var e = d(c(7757)), f = d(c(8926)), g = d(c(4615)), h = function() { for(var a, b = arguments.length, c = Array(b), d = 0; d < b; d++)c[d] = arguments[d]; return a = (0, f.default)(e.default.mark(function a(b) { var d, f, h, i, j, k, l, m = arguments; @@ -459,29 +460,33 @@ return a.apply(this, arguments); }; }; + b.default = h; }, 4522: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { return a ? a.replace(/(^|\s)\S/g, function(a) { return a.toUpperCase(); }) : a; }; + b.default = c; }, 10: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { return Array.isArray(a) ? a : [ a ]; }; + b.default = c; }, 3624: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(4615)); - b.default = function() { + var e = d(c(4615)), f = function() { for(var a = arguments.length, b = Array(a), c = 0; c < a; c++)b[c] = arguments[c]; return function(a) { for(var c = a, d = (0, e.default)(b), f = arguments.length, g = Array(f > 1 ? f - 1 : 0), h = 1; h < f; h++)g[h - 1] = arguments[h]; @@ -491,29 +496,33 @@ return c; }; }; + b.default = f; }, 5558: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { return a.slice(0, a.length - 1); }; + b.default = c; }, 7493: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function a(b, c) { + b.__esModule = !0, b.default = void 0; + var c = function a(b, c) { for(var d = c instanceof Array ? [] : {}, e = Object.keys(c), f = 0; f < e.length; f += 1){ var g = e[f], h = b[g], i = typeof h; "function" === i ? d[g] = h(c[g]) : h && "object" === i ? d[g] = a(h, c[g]) : d[g] = c[g]; } return d; }; + b.default = c; }, 6127: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(9248)), f = d(c(10)); - b.default = function(a, b, c) { + var e = d(c(9248)), f = d(c(10)), g = function(a, b, c) { if ((0, e.default)(a)) return c; for(var d = (0, f.default)(b), g = a, h = 0; h < d.length; h += 1){ if ((0, e.default)(g)) return; @@ -521,6 +530,7 @@ } return (0, e.default)(g) ? c : g; }; + b.default = g; }, 4354: function(a, b, c) { "use strict"; @@ -561,28 +571,35 @@ }, 9248: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { return null == a; }; + b.default = c; }, 1866: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { return "" === a ? "" : a[a.length - 1]; }; + b.default = c; }, 8838: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a, b) { + b.__esModule = !0, b.default = void 0; + var c = function(a, b) { return Object.entries(a).reduce(function(a, c, d) { var e = c[0], f = c[1]; return a[e] = b(f, e, d), a; }, {}); }; + b.default = c; }, 7213: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { var b, c = (b = a, /((-)?\d+\.?\d*)%/g.exec(b)); if (c) { var d = parseFloat(c[1], 10); @@ -593,40 +610,47 @@ } return null; }; + b.default = c; }, 2036: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(10)); - b.default = function(a, b) { + var e = d(c(10)), f = function(a, b) { var c = (0, e.default)(a), d = Object.assign({}, b); return c.forEach(function(a) { delete d[a]; }), d; }; + b.default = f; }, 9346: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a, b) { + b.__esModule = !0, b.default = void 0; + var c = function(a, b) { for(var c = {}, d = 0; d < a.length; d += 1){ var e = a[d]; e in b && (c[e] = b[e]); } return c; }; + b.default = c; }, 4615: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { return Array.prototype.slice.call(a, 0).reverse(); }; + b.default = c; }, 9424: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { return a ? a.charAt(0).toUpperCase() + a.slice(1) : a; }; + b.default = c; }, 1384: function(a, b, c) { "use strict"; @@ -978,13 +1002,13 @@ }, a); })), function(a) { return z.apply(this, arguments); - }); - b.default = function(a, b) { + }), F = function(a, b) { var c, e = (void 0 === b ? {} : b).cache, f = void 0 === e || e, g = a.data ? a.data.toString() : a.uri; if (f && t.get(g)) return t.get(g); if (!(c = x(a) ? A(a) : d.isBuffer(a) ? C(a) : "object" == typeof a && a.data ? B(a) : E(a))) throw Error("Cannot resolve image"); return f && t.set(g, c), c; }; + b.default = F; }, 791: function(a, b, c) { "use strict"; @@ -1396,11 +1420,11 @@ props: b }); }, aD = function(a) { - var b = d.mapValues(a.props, function(a) { + var b = function(a) { return "none" === a ? null : a; - }); + }, c = d.mapValues(a.props, b); return Object.assign({}, a, { - props: b + props: c }); }, aE = function(a) { var b = a.props || {}, c = Object.assign({}, d.pick(at, b), a.style || {}); @@ -1481,12 +1505,26 @@ }); }; }(c))(a); - }, aJ = function(a) { + }, aJ = function a(b, c) { + if (!b.children) return b; + var d = function(b) { + return a(b, c); + }, e = ax(b) ? aI(b, c) : b, f = e.children.map(d); + return Object.assign({}, e, { + children: f + }); + }, aK = function(a) { return a.style.zIndex; - }, aK = function(a, b) { - var c = aJ(a), d = aJ(b); + }, aL = function(a, b) { + var c = aK(a), d = aK(b); return c || d ? c ? d ? d - c : -1 : 1 : 0; - }, aL = {}, aM = P.default(), aN = function() { + }, aM = function a(b) { + if (!b.children) return b; + var c, d = ((c = b).type !== C.Document && c.type !== C.Svg ? b.children.sort(aL) : b.children).map(a); + return Object.assign({}, b, { + children: d + }); + }, aN = {}, aO = P.default(), aP = function() { var a; return a = Q.default, function() { return a.apply(void 0, arguments).then(function(a) { @@ -1495,35 +1533,60 @@ return a; }); }; - }, aO = function(a) { + }, aQ = function(a) { return "️" !== a; - }, aP = function(a, b) { + }, aR = function(a, b) { var c = b.url, d = b.format; - return "" + c + Array.from(a).filter(aO).map(function(a) { + return "" + c + Array.from(a).filter(aQ).map(function(a) { return a.codePointAt(0).toString(16); }).join("-") + "." + d; - }, aQ = function(a, b) { + }, aS = function(a, b) { if (!b || !b.url) return []; for(var c, d = [], e = function() { var a = c[0]; - if (!aL[a] || aL[a].loading) { - var e = aP(a, b); - aL[a] = { + if (!aN[a] || aN[a].loading) { + var e = aR(a, b); + aN[a] = { loading: !0 }; - var f = aN(); + var f = aP(); d.push(f({ uri: e }).then(function(b) { - aL[a].loading = !1, aL[a].data = b.data; + aN[a].loading = !1, aN[a].data = b.data; })); } - }; c = aM.exec(a);)e(); + }; c = aO.exec(a);)e(); return d; - }, aR = function(a) { + }, aT = function(a) { + for(var b = [], c = 0; c < a.length; c += 1){ + for(var d = a[c], e = void 0, f = 0; e = aO.exec(d.string);){ + var g = e.index, h = e[0], i = d.attributes.fontSize, j = d.string.slice(f, g + e[0].length); + aN[h] && aN[h].data ? b.push({ + string: j.replace(e, ""), + attributes: O.default({}, d.attributes, { + attachment: { + width: i, + height: i, + yOffset: Math.floor(0.1 * i), + image: aN[h].data + } + }) + }) : b.push({ + string: j.replace(e, "\0"), + attributes: d.attributes + }), f = g + h.length; + } + f < d.string.length && b.push({ + string: d.string.slice(f), + attributes: d.attributes + }); + } + return b; + }, aU = function(a) { var b, c, d; return (null === (b = a.props) || void 0 === b ? void 0 : b.src) || (null === (c = a.props) || void 0 === c ? void 0 : c.source) || (null === (d = a.props) || void 0 === d ? void 0 : d.href); - }, aS = (z = M.default(N.default.mark(function a(b) { + }, aV = (z = M.default(N.default.mark(function a(b) { var c; return N.default.wrap(function(a) { for(;;)switch(a.prev = a.next){ @@ -1551,18 +1614,18 @@ }, a); })), function(a) { return z.apply(this, arguments); - }), aT = (A = M.default(N.default.mark(function a(b) { + }), aW = (A = M.default(N.default.mark(function a(b) { var c, d, e; return N.default.wrap(function(a) { for(;;)switch(a.prev = a.next){ case 0: - if (c = aR(b), d = b.props.cache, c) { + if (c = aU(b), d = b.props.cache, c) { a.next = 5; break; } return console.warn(!1, 'Image should receive either a "src" or "source" prop'), a.abrupt("return"); case 5: - return a.prev = 5, a.next = 8, aS(c); + return a.prev = 5, a.next = 8, aV(c); case 8: if (e = a.sent) { a.next = 11; @@ -1594,20 +1657,20 @@ ]); })), function(a) { return A.apply(this, arguments); - }), aU = function(a, b) { + }), aX = function(a, b) { for(var c = [], d = (null === (f = b.children) || void 0 === f ? void 0 : f.slice(0)) || [], e = a ? a.getEmojiSource() : null; d.length > 0;){ var f, g, h = d.shift(); - h.type === C.Image && c.push(aT(h)), a && null !== (g = h.style) && void 0 !== g && g.fontFamily && c.push(a.load(h.style)), "string" == typeof h && c.push.apply(c, aQ(h, e)), "string" == typeof h.value && c.push.apply(c, aQ(h.value, e)), h.children && h.children.forEach(function(a) { + h.type === C.Image && c.push(aW(h)), a && null !== (g = h.style) && void 0 !== g && g.fontFamily && c.push(a.load(h.style)), "string" == typeof h && c.push.apply(c, aS(h, e)), "string" == typeof h.value && c.push.apply(c, aS(h.value, e)), h.children && h.children.forEach(function(a) { d.push(a); }); } return c; - }, aV = (B = M.default(N.default.mark(function a(b, c) { + }, aY = (B = M.default(N.default.mark(function a(b, c) { var d; return N.default.wrap(function(a) { for(;;)switch(a.prev = a.next){ case 0: - return d = aU(c, b), a.next = 3, Promise.all(d); + return d = aX(c, b), a.next = 3, Promise.all(d); case 3: return a.abrupt("return", b); case 4: @@ -1617,21 +1680,21 @@ }, a); })), function(a, b) { return B.apply(this, arguments); - }), aW = { + }), aZ = { color: "blue", textDecoration: "underline" - }, aX = function(a, b) { - var c = b.type === C.Link ? aW : {}, d = Array.isArray(b.style) ? [].concat(b.style, [ + }, a$ = function(a, b) { + var c = b.type === C.Link ? aZ : {}, d = Array.isArray(b.style) ? [].concat(b.style, [ c ]) : Object.assign({}, c, b.style); return D.default(a, d); - }, aY = function(a) { + }, a_ = function(a) { var b, c = (null === (b = a.props) || void 0 === b ? void 0 : b.dpi) || 72, d = a.box || a.style, e = O.default({}, d, { dpi: c }); return (function a(b) { return function(c) { - var d = aX(b, c); + var d = a$(b, c); if (!c.children) return Object.assign({}, c, { style: d }); @@ -1642,20 +1705,26 @@ }); }; })(e)(a); - }, aZ = function(a) { + }, a0 = function(a) { + if (!a.children) return a; + var b = a.children.map(a_); + return Object.assign({}, a, { + children: b + }); + }, a1 = function(a) { return function(b) { var c, e; return d.isNil(null === (c = b.style) || void 0 === c ? void 0 : c[a]) ? "50%" : null === (e = b.style) || void 0 === e ? void 0 : e[a]; }; - }, a$ = function(a) { + }, a2 = function(a) { if (!a.box) return {}; - var b = a.box, c = b.left, e = b.top, f = b.width, g = b.height, h = aZ("transformOriginX")(a), i = aZ("transformOriginY")(a), j = d.matchPercent(h), k = d.matchPercent(i), l = j ? f * j.percent : h, m = k ? g * k.percent : i; + var b = a.box, c = b.left, e = b.top, f = b.width, g = b.height, h = a1("transformOriginX")(a), i = a1("transformOriginY")(a), j = d.matchPercent(h), k = d.matchPercent(i), l = j ? f * j.percent : h, m = k ? g * k.percent : i; return { left: c + l, top: e + m }; - }, a_ = function a(b) { - var c = a$(b), d = Object.assign({}, b, { + }, a3 = function a(b) { + var c = a2(b), d = Object.assign({}, b, { origin: c }); if (!b.children) return d; @@ -1663,19 +1732,48 @@ return Object.assign({}, d, { children: e }); - }, a0 = function(a) { + }, a4 = function(a) { + if (!a.children) return a; + var b = a.children.map(a3); + return Object.assign({}, a, { + children: b + }); + }, a5 = function(a) { return "string" == typeof a ? { title: a, fit: !1, expanded: !1 } : a; - }, a1 = [ + }, a6 = function(a) { + for(var b = 0, c = (a.children || []).slice(0).map(function(a) { + return { + value: a, + parent: null + }; + }); c.length > 0;)!function() { + var a = c.shift(), d = a.value, e = a.parent; + if (null !== (f = d.props) && void 0 !== f && f.bookmark) { + var f, g, h = a5(d.props.bookmark), i = b++, j = O.default({ + ref: i, + parent: null === (g = e) || void 0 === g ? void 0 : g.ref + }, h); + d.props.bookmark = j, e = j; + } + d.children && d.children.forEach(function(a) { + c.push({ + value: a, + parent: e + }); + }); + }(); + return a; + }, a7 = [ "portrait", "landscape" - ], a2 = function(a) { + ], a8 = function(a) { var b, c = (null === (b = a.props) || void 0 === b ? void 0 : b.orientation) || "portrait"; - return a1.includes(c) ? c : "portrait"; - }, a3 = { + return a7.includes(c) ? c : "portrait"; + }, a9 = { "4A0": [ 4767.87, 6740.79 @@ -1880,31 +1978,37 @@ 153, 243 ] - }, a4 = function(a) { + }, ba = function(a) { return { width: a[0], height: a[1] }; - }, a5 = function(a) { + }, bb = function(a) { var b, c, d, e, f, g = (null === (e = a.props) || void 0 === e ? void 0 : e.size) || "A4", h = parseFloat((null === (f = a.props) || void 0 === f ? void 0 : f.dpi) || 72), i = typeof g, j = g; - return "string" === i ? j = a4(a3[g.toUpperCase()]) : Array.isArray(g) ? j = a4(g) : "number" === i && (j = a4([ + return "string" === i ? j = ba(a9[g.toUpperCase()]) : Array.isArray(g) ? j = ba(g) : "number" === i && (j = ba([ g ])), j = (b = j, c = h / 72, { width: b.width ? b.width * c : b.width, height: b.height ? b.height * c : b.height - }), "landscape" === a2(a) ? { + }), "landscape" === a8(a) ? { width: (d = j).height, height: d.width } : j; - }, a6 = function(a) { - var b = a5(a), c = R.default(a.style || {}); + }, bc = function(a) { + var b = bb(a), c = R.default(a.style || {}); return O.default({}, a, { style: O.default({}, c, b) }); - }, a7 = function(a) { + }, bd = function(a) { + if (!a.children) return a; + var b = a.children.map(bc); + return Object.assign({}, a, { + children: b + }); + }, be = function(a) { var b; return (null === (b = a.props) || void 0 === b ? void 0 : b.fixed) === !0; - }, a8 = function(a, b) { + }, bf = function(a, b) { var c = 0; if (!a.lines) return 0; for(var d = 0; d < a.lines.length; d += 1){ @@ -1913,7 +2017,7 @@ c += e.box.height; } return a.lines.length; - }, a9 = function(a, b) { + }, bg = function(a, b) { var c = 0; if (!a.lines) return c; for(var d = 0; d < b; d += 1){ @@ -1922,7 +2026,7 @@ c += e.box.height; } return c; - }, ba = function(a, b) { + }, bh = function(a, b) { var c = d.get(a, [ "box", "top" @@ -1932,10 +2036,10 @@ ], 2), f = d.get(a, [ "props", "orphans" - ], 2), g = a.lines.length, h = a8(a, b - c); + ], 2), g = a.lines.length, h = bf(a, b - c); return 0 === h ? 0 : g < f ? g : h < f || g < f + e ? 0 : g === f + e ? f : g - h < e ? g - e : h; - }, bb = function(a, b) { - var c = ba(a, b), d = a9(a, c), e = a.box.height - d, f = Object.assign({}, a, { + }, bi = function(a, b) { + var c = bh(a, b), d = bg(a, c), e = a.box.height - d, f = Object.assign({}, a, { box: O.default({}, a.box, { height: d, borderBottomWidth: 0 @@ -1967,18 +2071,18 @@ f, g ]; - }, bc = function(a) { + }, bj = function(a) { var b; return (null === (b = a.box) || void 0 === b ? void 0 : b.top) || 0; - }, bd = function(a) { + }, bk = function(a) { var b; return !d.isNil(null === (b = a.style) || void 0 === b ? void 0 : b.height); - }, be = function(a, b) { + }, bl = function(a, b) { if (!a) return [ null, null ]; - var c = bc(a), d = Object.assign({}, a, { + var c = bj(a), d = Object.assign({}, a, { box: O.default({}, a.box, { borderBottomWidth: 0 }), @@ -1991,7 +2095,7 @@ }) }); d.style.height = b - c; - var e = bd(a) ? a.box.height - (b - c) : null, f = Object.assign({}, a, { + var e = bk(a) ? a.box.height - (b - c) : null, f = Object.assign({}, a, { box: O.default({}, a.box, { top: 0, borderTopWidth: 0 @@ -2008,44 +2112,44 @@ d, f ]; - }, bf = [ + }, bm = [ C.Svg, C.Note, C.Image, C.Canvas, - ], bg = function(a) { + ], bn = function(a) { var b; - return !bf.includes(a.type) && (!!d.isNil(null === (b = a.props) || void 0 === b ? void 0 : b.wrap) || a.props.wrap); - }, bh = function(a, b) { + return !bm.includes(a.type) && (!!d.isNil(null === (b = a.props) || void 0 === b ? void 0 : b.wrap) || a.props.wrap); + }, bo = function(a, b) { var c = a._yogaNode; return c ? c.getComputedPadding(b) : null; - }, bi = function(a) { - var b = a.style, c = a.box, d = bh(a, S.default.EDGE_TOP) || (null == c ? void 0 : c.paddingTop) || (null == b ? void 0 : b.paddingTop) || (null == b ? void 0 : b.paddingVertical) || (null == b ? void 0 : b.padding) || 0, e = bh(a, S.default.EDGE_RIGHT) || (null == c ? void 0 : c.paddingRight) || (null == b ? void 0 : b.paddingRight) || (null == b ? void 0 : b.paddingHorizontal) || (null == b ? void 0 : b.padding) || 0, f = bh(a, S.default.EDGE_BOTTOM) || (null == c ? void 0 : c.paddingBottom) || (null == b ? void 0 : b.paddingBottom) || (null == b ? void 0 : b.paddingVertical) || (null == b ? void 0 : b.padding) || 0, g = bh(a, S.default.EDGE_LEFT) || (null == c ? void 0 : c.paddingLeft) || (null == b ? void 0 : b.paddingLeft) || (null == b ? void 0 : b.paddingHorizontal) || (null == b ? void 0 : b.padding) || 0; + }, bp = function(a) { + var b = a.style, c = a.box, d = bo(a, S.default.EDGE_TOP) || (null == c ? void 0 : c.paddingTop) || (null == b ? void 0 : b.paddingTop) || (null == b ? void 0 : b.paddingVertical) || (null == b ? void 0 : b.padding) || 0, e = bo(a, S.default.EDGE_RIGHT) || (null == c ? void 0 : c.paddingRight) || (null == b ? void 0 : b.paddingRight) || (null == b ? void 0 : b.paddingHorizontal) || (null == b ? void 0 : b.padding) || 0, f = bo(a, S.default.EDGE_BOTTOM) || (null == c ? void 0 : c.paddingBottom) || (null == b ? void 0 : b.paddingBottom) || (null == b ? void 0 : b.paddingVertical) || (null == b ? void 0 : b.padding) || 0, g = bo(a, S.default.EDGE_LEFT) || (null == c ? void 0 : c.paddingLeft) || (null == b ? void 0 : b.paddingLeft) || (null == b ? void 0 : b.paddingHorizontal) || (null == b ? void 0 : b.padding) || 0; return { paddingTop: d, paddingRight: e, paddingBottom: f, paddingLeft: g }; - }, bj = function(a) { - var b, c = bi(a).paddingBottom, d = null === (b = a.style) || void 0 === b ? void 0 : b.height; + }, bq = function(a) { + var b, c = bp(a).paddingBottom, d = null === (b = a.style) || void 0 === b ? void 0 : b.height; return d - c; - }, bk = function(a) { - var b, c = null === (b = a.style) || void 0 === b ? void 0 : b.height, d = bi(a), e = d.paddingTop, f = d.paddingBottom; + }, br = function(a) { + var b, c = null === (b = a.style) || void 0 === b ? void 0 : b.height, d = bp(a), e = d.paddingTop, f = d.paddingBottom; return c - f - e; - }, bl = [ + }, bs = [ "style", "children" - ], bm = function(a) { + ], bt = function(a) { return "string" == typeof a; - }, bn = function a(b) { + }, bu = function a(b) { if (!b) return null; - if (bm(b) || "number" == typeof b) return { + if (bt(b) || "number" == typeof b) return { type: e.TextInstance, value: "" + b }; - if (!bm(b.type)) return a(b.type(b.props)); - var c = b.type, f = b.props, g = f.style, h = void 0 === g ? {} : g, i = f.children, j = void 0 === i ? [] : i, k = T.default(f, bl), l = d.castArray(j).map(a); + if (!bt(b.type)) return a(b.type(b.props)); + var c = b.type, f = b.props, g = f.style, h = void 0 === g ? {} : g, i = f.children, j = void 0 === i ? [] : i, k = T.default(f, bs), l = d.castArray(j).map(a); return { type: c, style: h, @@ -2053,7 +2157,7 @@ box: {}, children: l }; - }, bo = function(a) { + }, bv = function(a) { var b = 0, c = 1 / 0; if (!a || 0 === a.length) return 0; for(var d = 0; d < a.length; d += 1){ @@ -2061,35 +2165,35 @@ c = Math.min(c, e.box.top), b = Math.max(b, e.box.top + e.box.height); } return b - c; - }, bp = function(a) { + }, bw = function(a) { var b; return (null === (b = a.props) || void 0 === b ? void 0 : b.break) || !1; - }, bq = function(a) { + }, bx = function(a) { var b; return null === (b = a.props) || void 0 === b ? void 0 : b.minPresenceAhead; - }, br = function(a) { + }, by = function(a) { return function(b) { return Math.min(a.box.height, b); }; - }, bs = function(a, b) { + }, bz = function(a, b) { for(var c = 0, d = 0; d < a.length; d += 1){ var e = a[d]; if (e.box) { - var f = b > e.box.top, g = e.props.presenceAhead || br(e); + var f = b > e.box.top, g = e.props.presenceAhead || by(e); e && f && (c += g(b - e.box.top)); } } return c; - }, bt = function(a, b, c) { - var d = bq(a), e = bs(b, c), f = bo(b), g = c < a.box.top + a.box.height, h = bg(a); - return bp(a) || !h && g || d < f && e < d; - }, bu = [ + }, bA = function(a, b, c) { + var d = bx(a), e = bz(b, c), f = bv(b), g = c < a.box.top + a.box.height, h = bn(a); + return bw(a) || !h && g || d < f && e < d; + }, bB = [ 8232, 8233 - ], bv = [ + ], bC = [ function(a) { return a.map(function(a) { - var b, c = RegExp((b = a.attributes.font, bu.reduce(function(a, c) { + var b, c = RegExp((b = a.attributes.font, bB.reduce(function(a, c) { return b && b.hasGlyphForCodePoint && b.hasGlyphForCodePoint(c) ? a : [].concat(a, [ String.fromCharCode(c) ]); @@ -2100,33 +2204,8 @@ }; }); }, - function(a) { - for(var b = [], c = 0; c < a.length; c += 1){ - for(var d = a[c], e = void 0, f = 0; e = aM.exec(d.string);){ - var g = e.index, h = e[0], i = d.attributes.fontSize, j = d.string.slice(f, g + e[0].length); - aL[h] && aL[h].data ? b.push({ - string: j.replace(e, ""), - attributes: O.default({}, d.attributes, { - attachment: { - width: i, - height: i, - yOffset: Math.floor(0.1 * i), - image: aL[h].data - } - }) - }) : b.push({ - string: j.replace(e, "\0"), - attributes: d.attributes - }), f = g + h.length; - } - f < d.string.length && b.push({ - string: d.string.slice(f), - attributes: d.attributes - }); - } - return b; - } - ], bw = function a(b, c, d, e) { + aT + ], bD = function a(b, c, d, e) { if (void 0 === e && (e = 0), !c) return [ { string: "" @@ -2169,26 +2248,26 @@ attributes: E }) : J && (I = f).push.apply(I, a(b, J, E.link, e + 1)); } - for(var K = 0; K < bv.length; K += 1)f = (0, bv[K])(f); + for(var K = 0; K < bC.length; K += 1)f = (0, bC[K])(f); return f; - }, bx = function(a, b) { - var c = bw(a, b); + }, bE = function(a, b) { + var c = bD(a, b); return K.default(c); - }, by = { + }, bF = { linebreaker: F.default, justification: G.default, textDecoration: J.default, scriptItemizer: H.default, wordHyphenation: I.default, fontSubstitution: aa - }, bz = E.default(by), bA = function(a) { + }, bG = E.default(bF), bH = function(a) { var b; return null === (b = a.style) || void 0 === b ? void 0 : b.maxLines; - }, bB = function(a) { + }, bI = function(a) { var b; return null === (b = a.style) || void 0 === b ? void 0 : b.textOverflow; - }, bC = function(a, b, c) { - var d = bA(c), e = bB(c); + }, bJ = function(a, b, c) { + var d = bH(c), e = bI(c); return { x: 0, y: 0, @@ -2197,8 +2276,8 @@ height: b || 1 / 0, truncateMode: e }; - }, bD = function(a, b, c, d) { - var e, f, g = bx(d, a), h = bC(b, c, a), i = (e = d, { + }, bK = function(a, b, c, d) { + var e, f, g = bE(d, a), h = bJ(b, c, a), i = (e = d, { hyphenationPenalty: (f = a).props.hyphenationPenalty, shrinkWhitespaceFactor: { before: -0.5, @@ -2206,19 +2285,19 @@ }, hyphenationCallback: f.props.hyphenationCallback || (null == e ? void 0 : e.getHyphenationCallback()) || null }); - return bz(g, h, i).reduce(function(a, b) { + return bG(g, h, i).reduce(function(a, b) { return [].concat(a, b); }, []); - }, bE = function(a) { + }, bL = function(a) { return function(b) { return b.type === a; }; - }, bF = bE(C.Svg), bG = bE(C.Text), bH = function a(b, c) { - if (bG(d = b) && !d.lines) { + }, bM = bL(C.Svg), bN = bL(C.Text), bO = function a(b, c) { + if (bN(d = b) && !d.lines) { var d, e, f = b.box.width - (b.box.paddingRight + b.box.paddingLeft), g = b.box.height - (b.box.paddingTop + b.box.paddingBottom); - b.lines = bD(b, f, g, c); + b.lines = bK(b, f, g, c); } - if (!bF(e = b) && !bG(e)) { + if (!bM(e = b) && !bN(e)) { if (!b.children) return b; var h = function(b) { return a(b, c); @@ -2228,7 +2307,7 @@ }); } return b; - }, bI = [ + }, bP = [ "color", "fontFamily", "fontSize", @@ -2242,7 +2321,7 @@ "textAlign", "visibility", "wordSpacing", - ], bJ = function(a, b) { + ], bQ = function(a, b) { var c = O.default({}, a); return Object.entries(b).forEach(function(b) { var d, e, f, g = b[0], h = b[1]; @@ -2253,10 +2332,10 @@ return a && "none" !== a; }).join(" ") : e); }), c; - }, bK = function a(b) { + }, bR = function a(b) { if (b.type === C.Svg || !b.children) return b; - var c, e = d.pick(bI, b.style || {}), f = d.compose(a, (c = e, function(a) { - var b = bJ(c, a.style || {}); + var c, e = d.pick(bP, b.style || {}), f = d.compose(a, (c = e, function(a) { + var b = bQ(c, a.style || {}); return Object.assign({}, a, { style: b }); @@ -2264,18 +2343,18 @@ return Object.assign({}, b, { children: g }); - }, bL = function(a, b) { + }, bS = function(a, b) { var c = a._yogaNode; return c ? c.getComputedMargin(b) : null; - }, bM = function(a) { - var b = a.style, c = a.box, d = bL(a, S.default.EDGE_TOP) || (null == c ? void 0 : c.marginTop) || (null == b ? void 0 : b.marginTop) || (null == b ? void 0 : b.marginVertical) || (null == b ? void 0 : b.margin) || 0, e = bL(a, S.default.EDGE_RIGHT) || (null == c ? void 0 : c.marginRight) || (null == b ? void 0 : b.marginRight) || (null == b ? void 0 : b.marginHorizontal) || (null == b ? void 0 : b.margin) || 0, f = bL(a, S.default.EDGE_BOTTOM) || (null == c ? void 0 : c.marginBottom) || (null == b ? void 0 : b.marginBottom) || (null == b ? void 0 : b.marginVertical) || (null == b ? void 0 : b.margin) || 0, g = bL(a, S.default.EDGE_LEFT) || (null == c ? void 0 : c.marginLeft) || (null == b ? void 0 : b.marginLeft) || (null == b ? void 0 : b.marginHorizontal) || (null == b ? void 0 : b.margin) || 0; + }, bT = function(a) { + var b = a.style, c = a.box, d = bS(a, S.default.EDGE_TOP) || (null == c ? void 0 : c.marginTop) || (null == b ? void 0 : b.marginTop) || (null == b ? void 0 : b.marginVertical) || (null == b ? void 0 : b.margin) || 0, e = bS(a, S.default.EDGE_RIGHT) || (null == c ? void 0 : c.marginRight) || (null == b ? void 0 : b.marginRight) || (null == b ? void 0 : b.marginHorizontal) || (null == b ? void 0 : b.margin) || 0, f = bS(a, S.default.EDGE_BOTTOM) || (null == c ? void 0 : c.marginBottom) || (null == b ? void 0 : b.marginBottom) || (null == b ? void 0 : b.marginVertical) || (null == b ? void 0 : b.margin) || 0, g = bS(a, S.default.EDGE_LEFT) || (null == c ? void 0 : c.marginLeft) || (null == b ? void 0 : b.marginLeft) || (null == b ? void 0 : b.marginHorizontal) || (null == b ? void 0 : b.margin) || 0; return { marginTop: d, marginRight: e, marginBottom: f, marginLeft: g }; - }, bN = function(a) { + }, bU = function(a) { var b = a._yogaNode; return { top: (null == b ? void 0 : b.getComputedTop()) || 0, @@ -2283,32 +2362,32 @@ bottom: (null == b ? void 0 : b.getComputedBottom()) || 0, left: (null == b ? void 0 : b.getComputedLeft()) || 0 }; - }, bO = { + }, bV = { width: 0, height: 0 - }, bP = function(a) { + }, bW = function(a) { var b = a._yogaNode; return b ? { width: b.getComputedWidth(), height: b.getComputedHeight() - } : bO; - }, bQ = function(a, b) { + } : bV; + }, bX = function(a, b) { return a ? a.getComputedBorder(b) : 0; - }, bR = function(a) { + }, bY = function(a) { var b = a._yogaNode; return { - borderTopWidth: bQ(b, S.default.EDGE_TOP), - borderRightWidth: bQ(b, S.default.EDGE_RIGHT), - borderBottomWidth: bQ(b, S.default.EDGE_BOTTOM), - borderLeftWidth: bQ(b, S.default.EDGE_LEFT) + borderTopWidth: bX(b, S.default.EDGE_TOP), + borderRightWidth: bX(b, S.default.EDGE_RIGHT), + borderBottomWidth: bX(b, S.default.EDGE_BOTTOM), + borderLeftWidth: bX(b, S.default.EDGE_LEFT) }; - }, bS = { + }, bZ = { hidden: S.default.OVERFLOW_HIDDEN, scroll: S.default.OVERFLOW_SCROLL - }, bT = { + }, b$ = { wrap: S.default.WRAP_WRAP, "wrap-reverse": S.default.WRAP_WRAP_REVERSE - }, bU = function(a, b) { + }, b_ = function(a, b) { return function(c) { return function(e) { var f = e._yogaNode; @@ -2320,7 +2399,7 @@ return e; }; }; - }, bV = bU("flexBasis"), bW = { + }, b0 = b_("flexBasis"), b1 = { "flex-start": S.default.ALIGN_FLEX_START, center: S.default.ALIGN_CENTER, "flex-end": S.default.ALIGN_FLEX_END, @@ -2328,51 +2407,51 @@ baseline: S.default.ALIGN_BASELINE, "space-between": S.default.ALIGN_SPACE_BETWEEN, "space-around": S.default.ALIGN_SPACE_AROUND - }, bX = function(a) { + }, b2 = function(a) { return function(b) { return function(c) { var e = c._yogaNode, f = "items" === a ? S.default.ALIGN_STRETCH : S.default.ALIGN_AUTO; if (e) { - var g = bW[b] || f; + var g = b1[b] || f; e["setAlign" + d.upperFirst(a)](g); } return c; }; }; - }, bY = bX("self"), bZ = bX("items"), b$ = bX("content"), b_ = { + }, b3 = b2("self"), b4 = b2("items"), b5 = b2("content"), b6 = { row: S.default.FLEX_DIRECTION_ROW, "row-reverse": S.default.FLEX_DIRECTION_ROW_REVERSE, "column-reverse": S.default.FLEX_DIRECTION_COLUMN_REVERSE - }, b0 = { + }, b7 = { center: S.default.JUSTIFY_CENTER, "flex-end": S.default.JUSTIFY_FLEX_END, "space-between": S.default.JUSTIFY_SPACE_BETWEEN, "space-around": S.default.JUSTIFY_SPACE_AROUND, "space-evenly": S.default.JUSTIFY_SPACE_EVENLY - }, b1 = bU("margin", S.default.EDGE_TOP), b2 = bU("margin", S.default.EDGE_RIGHT), b3 = bU("margin", S.default.EDGE_BOTTOM), b4 = bU("margin", S.default.EDGE_LEFT), b5 = bU("padding", S.default.EDGE_TOP), b6 = bU("padding", S.default.EDGE_RIGHT), b7 = bU("padding", S.default.EDGE_BOTTOM), b8 = bU("padding", S.default.EDGE_LEFT), b9 = bU("border", S.default.EDGE_TOP), ca = bU("border", S.default.EDGE_RIGHT), cb = bU("border", S.default.EDGE_BOTTOM), cc = bU("border", S.default.EDGE_LEFT), cd = bU("position", S.default.EDGE_TOP), ce = bU("position", S.default.EDGE_RIGHT), cf = bU("position", S.default.EDGE_BOTTOM), cg = bU("position", S.default.EDGE_LEFT), ch = bU("width"), ci = bU("minWidth"), cj = bU("maxWidth"), ck = bU("height"), cl = bU("minHeight"), cm = bU("maxHeight"), cn = function(a) { + }, b8 = b_("margin", S.default.EDGE_TOP), b9 = b_("margin", S.default.EDGE_RIGHT), ca = b_("margin", S.default.EDGE_BOTTOM), cb = b_("margin", S.default.EDGE_LEFT), cc = b_("padding", S.default.EDGE_TOP), cd = b_("padding", S.default.EDGE_RIGHT), ce = b_("padding", S.default.EDGE_BOTTOM), cf = b_("padding", S.default.EDGE_LEFT), cg = b_("border", S.default.EDGE_TOP), ch = b_("border", S.default.EDGE_RIGHT), ci = b_("border", S.default.EDGE_BOTTOM), cj = b_("border", S.default.EDGE_LEFT), ck = b_("position", S.default.EDGE_TOP), cl = b_("position", S.default.EDGE_RIGHT), cm = b_("position", S.default.EDGE_BOTTOM), cn = b_("position", S.default.EDGE_LEFT), co = b_("width"), cp = b_("minWidth"), cq = b_("maxWidth"), cr = b_("height"), cs = b_("minHeight"), ct = b_("maxHeight"), cu = function(a) { return a.lines ? Math.max.apply(Math, [ 0 ].concat(a.lines.map(function(a) { return U.default(a); }))) : 0; - }, co = function(a) { + }, cv = function(a) { return a.lines ? a.lines.reduce(function(a, b) { return a + b.box.height; }, 0) : -1; - }, cp = { + }, cw = { center: 0.5, right: 1 - }, cq = function(a) { + }, cx = function(a) { var b; return null !== (b = a.image) && void 0 !== b && b.data ? a.image.width / a.image.height : 1; - }, cr = function(a) { + }, cy = function(a) { var b; return d.isNil(null === (b = a.box) || void 0 === b ? void 0 : b.height); - }, cs = function(a) { + }, cz = function(a) { return Math.max.apply(Math, [ -1 / 0 ].concat(a)); - }, ct = function() { + }, cA = function() { var a = {}, b = [], c = function() { return a; }, d = function(a, c) { @@ -2386,87 +2465,87 @@ return d(b, c), d(b + e, c), d(b, c + f), d(b + e, c + f), a; }, g = function(b, c, e, f) { return f = f || e, d(b - e, c - f), d(b + e, c - f), d(b + e, c + f), d(b - e, c + f), a; - }; - return a.rect = f, a.moveTo = e, a.lineTo = e, a.circle = g, a.polygon = function() { + }, h = function() { return b.push.apply(b, arguments), a; - }, a.ellipse = g, a.roundedRect = f, a.text = c, a.path = c, a.lineWidth = c, a.bezierCurveTo = c, a.quadraticCurveTo = c, a.scale = c, a.rotate = c, a.translate = c, a.dash = c, a.clip = c, a.save = c, a.fill = c, a.font = c, a.stroke = c, a.lineCap = c, a.opacity = c, a.restore = c, a.lineJoin = c, a.fontSize = c, a.fillColor = c, a.miterLimit = c, a.strokeColor = c, a.fillOpacity = c, a.strokeOpacity = c, a.linearGradient = c, a.radialGradient = c, a.getWidth = function() { - return cs(b.map(function(a) { + }; + return a.rect = f, a.moveTo = e, a.lineTo = e, a.circle = g, a.polygon = h, a.ellipse = g, a.roundedRect = f, a.text = c, a.path = c, a.lineWidth = c, a.bezierCurveTo = c, a.quadraticCurveTo = c, a.scale = c, a.rotate = c, a.translate = c, a.dash = c, a.clip = c, a.save = c, a.fill = c, a.font = c, a.stroke = c, a.lineCap = c, a.opacity = c, a.restore = c, a.lineJoin = c, a.fontSize = c, a.fillColor = c, a.miterLimit = c, a.strokeColor = c, a.fillOpacity = c, a.strokeOpacity = c, a.linearGradient = c, a.radialGradient = c, a.getWidth = function() { + return cz(b.map(function(a) { return a[0]; })); }, a.getHeight = function() { - return cs(b.map(function(a) { + return cz(b.map(function(a) { return a[1]; })); }, a; - }, cu = "_yogaNode", cv = S.default.Config.create(); - cv.setPointScaleFactor(0); - var cw = function(a) { + }, cB = "_yogaNode", cC = S.default.Config.create(); + cC.setPointScaleFactor(0); + var cD = function(a) { return function(b) { return b.type === a; }; - }, cx = cw(C.Svg), cy = cw(C.Text), cz = cw(C.Note), cA = cw(C.Page), cB = cw(C.Image), cC = cw(C.Canvas), cD = cw(C.TextInstance), cE = function(a) { - var b = cA(a) ? a.box.height : a.style.height; - return ck(b); - }, cF = function(a) { + }, cE = cD(C.Svg), cF = cD(C.Text), cG = cD(C.Note), cH = cD(C.Page), cI = cD(C.Image), cJ = cD(C.Canvas), cK = cD(C.TextInstance), cL = function(a) { + var b = cH(a) ? a.box.height : a.style.height; + return cr(b); + }, cM = function(a) { var b, c, e, f, g, h, i, j, k; - d.compose(cE(a), ch(a.style.width), ci(a.style.minWidth), cj(a.style.maxWidth), cl(a.style.minHeight), cm(a.style.maxHeight), b1(a.style.marginTop), b2(a.style.marginRight), b3(a.style.marginBottom), b4(a.style.marginLeft), b5(a.style.paddingTop), b6(a.style.paddingRight), b7(a.style.paddingBottom), b8(a.style.paddingLeft), (b = a.style.position, function(a) { + d.compose(cL(a), co(a.style.width), cp(a.style.minWidth), cq(a.style.maxWidth), cs(a.style.minHeight), ct(a.style.maxHeight), b8(a.style.marginTop), b9(a.style.marginRight), ca(a.style.marginBottom), cb(a.style.marginLeft), cc(a.style.paddingTop), cd(a.style.paddingRight), ce(a.style.paddingBottom), cf(a.style.paddingLeft), (b = a.style.position, function(a) { var c = a._yogaNode; return !d.isNil(b) && c && c.setPositionType("absolute" === b ? S.default.POSITION_TYPE_ABSOLUTE : S.default.POSITION_TYPE_RELATIVE), a; - }), cd(a.style.top), ce(a.style.right), cf(a.style.bottom), cg(a.style.left), b9(a.style.borderTopWidth), ca(a.style.borderRightWidth), cb(a.style.borderBottomWidth), cc(a.style.borderLeftWidth), (c = a.style.display, function(a) { + }), ck(a.style.top), cl(a.style.right), cm(a.style.bottom), cn(a.style.left), cg(a.style.borderTopWidth), ch(a.style.borderRightWidth), ci(a.style.borderBottomWidth), cj(a.style.borderLeftWidth), (c = a.style.display, function(a) { var b = a._yogaNode; return b && b.setDisplay("none" === c ? S.default.DISPLAY_NONE : S.default.DISPLAY_FLEX), a; }), (e = a.style.flexDirection, function(a) { var b = a._yogaNode; if (b) { - var c = b_[e] || S.default.FLEX_DIRECTION_COLUMN; + var c = b6[e] || S.default.FLEX_DIRECTION_COLUMN; b.setFlexDirection(c); } return a; - }), bY(a.style.alignSelf), b$(a.style.alignContent), bZ(a.style.alignItems), (f = a.style.justifyContent, function(a) { + }), b3(a.style.alignSelf), b5(a.style.alignContent), b4(a.style.alignItems), (f = a.style.justifyContent, function(a) { var b = a._yogaNode; if (!d.isNil(f) && b) { - var c = b0[f] || S.default.JUSTIFY_FLEX_START; + var c = b7[f] || S.default.JUSTIFY_FLEX_START; b.setJustifyContent(c); } return a; }), (g = a.style.flexWrap, function(a) { var b = a._yogaNode; if (b) { - var c = bT[g] || S.default.WRAP_NO_WRAP; + var c = b$[g] || S.default.WRAP_NO_WRAP; b.setFlexWrap(c); } return a; }), (h = a.style.overflow, function(a) { var b = a._yogaNode; if (!d.isNil(h) && b) { - var c = bS[h] || S.default.OVERFLOW_VISIBLE; + var c = bZ[h] || S.default.OVERFLOW_VISIBLE; b.setOverflow(c); } return a; }), (i = a.style.aspectRatio, function(a) { var b = a._yogaNode; return !d.isNil(i) && b && b.setAspectRatio(i), a; - }), bV(a.style.flexBasis), (j = a.style.flexGrow, function(a) { - return bU("flexGrow")(j || 0)(a); + }), b0(a.style.flexBasis), (j = a.style.flexGrow, function(a) { + return b_("flexGrow")(j || 0)(a); }), (k = a.style.flexShrink, function(a) { - return bU("flexShrink")(k || 1)(a); + return b_("flexShrink")(k || 1)(a); }))(a); - }, cG = function(a, b, c) { - var d, e, f, g, h, i, j, k = a[cu]; - return cy(a) && k.setMeasureFunc((d = a, e = c, function(a, b, c) { - if (b === S.default.MEASURE_MODE_EXACTLY) return d.lines || (d.lines = bD(d, a, c, e)), { - height: co(d) + }, cN = function(a, b, c) { + var d, e, f, g, h, i, j, k = a[cB]; + return cF(a) && k.setMeasureFunc((d = a, e = c, function(a, b, c) { + if (b === S.default.MEASURE_MODE_EXACTLY) return d.lines || (d.lines = bK(d, a, c, e)), { + height: cv(d) }; if (b === S.default.MEASURE_MODE_AT_MOST) { - var f, g = cp[null === (f = d.style) || void 0 === f ? void 0 : f.textAlign] || 0; - return d.lines || (d.lines = bD(d, a, c, e), d.alignOffset = (a - cn(d)) * g), { - height: co(d), - width: Math.min(a, cn(d)) + var f, g = cw[null === (f = d.style) || void 0 === f ? void 0 : f.textAlign] || 0; + return d.lines || (d.lines = bK(d, a, c, e), d.alignOffset = (a - cu(d)) * g), { + height: cv(d), + width: Math.min(a, cu(d)) }; } return {}; - })), cB(a) && k.setMeasureFunc((f = b, g = a, function(a, b, c, d) { - var e = cq(g), h = bM(g), i = bi(f), j = cr(f) ? 1 / 0 : f.box.height - i.paddingTop - i.paddingBottom - h.marginTop - h.marginBottom - 10; + })), cI(a) && k.setMeasureFunc((f = b, g = a, function(a, b, c, d) { + var e = cx(g), h = bT(g), i = bp(f), j = cy(f) ? 1 / 0 : f.box.height - i.paddingTop - i.paddingBottom - h.marginTop - h.marginBottom - 10; return g.image ? b === S.default.MEASURE_MODE_EXACTLY && d === S.default.MEASURE_MODE_UNDEFINED ? { height: Math.min(j, a / e) } : d === S.default.MEASURE_MODE_EXACTLY && (b === S.default.MEASURE_MODE_AT_MOST || b === S.default.MEASURE_MODE_UNDEFINED) ? { @@ -2486,15 +2565,15 @@ width: 0, height: 0 }; - })), cC(a) && k.setMeasureFunc((h = b, i = a, function() { - var a = bM(i), b = bi(h), c = cr(h) ? 1 / 0 : h.box.height - b.paddingTop - b.paddingBottom - a.marginTop - a.marginBottom - 10, d = ct(); + })), cJ(a) && k.setMeasureFunc((h = b, i = a, function() { + var a = bT(i), b = bp(h), c = cy(h) ? 1 / 0 : h.box.height - b.paddingTop - b.paddingBottom - a.marginTop - a.marginBottom - 10, d = cA(); i.props.paint(d); var e = d.getWidth(), f = Math.min(c, d.getHeight()); return { height: f, width: e }; - })), cx(a) && k.setMeasureFunc((j = a, function(a, b, c, d) { + })), cE(a) && k.setMeasureFunc((j = a, function(a, b, c, d) { var e, f = ((e = j.props.viewBox) ? (e.maxX - e.minX) / (e.maxY - e.minY) : null) || 1; return b === S.default.MEASURE_MODE_EXACTLY || b === S.default.MEASURE_MODE_AT_MOST ? { width: a, @@ -2503,11 +2582,11 @@ width: c * f } : {}; })), a; - }, cH = function(a) { - return a[cu].calculateLayout(), a; - }, cI = function a(b) { - if (cD(b)) return b; - var c = Object.assign(bi(b), bM(b), bR(b), bN(b), bP(b)), d = Object.assign({}, b, { + }, cO = function(a) { + return a[cB].calculateLayout(), a; + }, cP = function a(b) { + if (cK(b)) return b; + var c = Object.assign(bp(b), bT(b), bY(b), bU(b), bW(b)), d = Object.assign({}, b, { box: c }); if (!b.children) return d; @@ -2515,46 +2594,54 @@ return Object.assign({}, d, { children: e }); - }, cJ = function a(b) { + }, cQ = function a(b) { var c = Object.assign({}, b); - if (delete c[cu], !b.children) return c; + if (delete c[cB], !b.children) return c; var d = b.children.map(a); return Object.assign({}, c, { children: d }); - }, cK = function(a) { - return a[cu] && a[cu].freeRecursive(), a; - }, cL = function(a, b) { - return d.isNil(a) ? null : d.compose(cJ, cK, cI, cH, function a(b, c) { + }, cR = function(a) { + return a[cB] && a[cB].freeRecursive(), a; + }, cS = function(a, b) { + return d.isNil(a) ? null : d.compose(cQ, cR, cP, cO, function a(b, c) { return function(e) { - var f, g = S.default.Node.createWithConfig(cv), h = Object.assign({}, e); - if (h[cu] = g, cF(h), !cy(f = e) && !cz(f) && !cx(f) && e.children) { + var f, g = S.default.Node.createWithConfig(cC), h = Object.assign({}, e); + if (h[cB] = g, cM(h), !cF(f = e) && !cG(f) && !cE(f) && e.children) { var i, j = d.compose((i = g, function(a) { - return i.insertChild(a[cu], i.getChildCount()), a; + return i.insertChild(a[cB], i.getChildCount()), a; }), a(b, c)); h.children = e.children.map(j); } - return cG(h, b, c), h; + return cN(h, b, c), h; }; }(a, b))(a); - }, cM = function(a) { + }, cT = function(a, b) { + if (!a.children) return a; + var c = function(a) { + return cS(a, b); + }, d = a.children.map(c); + return Object.assign({}, a, { + children: d + }); + }, cU = function(a) { return a.type === C.Text; - }, cN = function(a, b) { + }, cV = function(a, b) { return Object.assign({}, b, { children: a }); - }, cO = function(a) { + }, cW = function(a) { var b; return (null === (b = a.box) || void 0 === b ? void 0 : b.top) || 0; - }, cP = function(a) { + }, cX = function(a) { var b; return !d.isNil(null === (b = a.props) || void 0 === b ? void 0 : b.render); - }, cQ = d.compose(bH, bK, cL), cR = function(a) { + }, cY = d.compose(bO, bR, cS), cZ = function(a) { console.warn("Node of type " + a.type + " can't wrap between pages and it's bigger than available page height"); - }, cS = function(a, b, c) { + }, c$ = function(a, b, c) { for(var d = [], e = [], f = 0; f < c.length; f += 1){ - var g = c[f], h = c.slice(f + 1), i = h.filter(a7), j = cO(g), k = g.box.height, l = a <= j, m = bt(g, h, a), n = a + 0.001 < j + k, o = bg(g), p = k <= b; - if (a7(g)) { + var g = c[f], h = c.slice(f + 1), i = h.filter(be), j = cW(g), k = g.box.height, l = a <= j, m = bA(g, h, a), n = a + 0.001 < j + k, o = bn(g), p = k <= b; + if (be(g)) { e.push(g), d.push(g); continue; } @@ -2568,7 +2655,7 @@ continue; } if (!p && !o) { - d.push(g), e.push.apply(e, h), cR(g); + d.push(g), e.push.apply(e, h), cZ(g); break; } if (m) { @@ -2587,7 +2674,7 @@ break; } if (n) { - var v = cV(g, a, b), w = v[0], x = v[1]; + var v = c1(g, a, b), w = v[0], x = v[1]; w && d.push(w), x && e.push(x); continue; } @@ -2597,28 +2684,28 @@ d, e ]; - }, cT = function(a, b, c) { - var d = c.children || [], e = a - cO(c); - return cS(e, b, d); - }, cU = function(a, b, c) { - var d = be(a, b), e = d[0], f = d[1], g = cT(b, c, a), h = g[0], i = g[1]; + }, c_ = function(a, b, c) { + var d = c.children || [], e = a - cW(c); + return c$(e, b, d); + }, c0 = function(a, b, c) { + var d = bl(a, b), e = d[0], f = d[1], g = c_(b, c, a), h = g[0], i = g[1]; return [ - cN(h, e), - cN(i, f), + cV(h, e), + cV(i, f), ]; - }, cV = function(a, b, c) { - return cM(a) ? bb(a, b) : cU(a, b, c); - }, cW = function a(b) { + }, c1 = function(a, b, c) { + return cU(a) ? bi(a, b) : c0(a, b, c); + }, c2 = function a(b) { var c = b.children || []; - return cP(b) || c.some(a); - }, cX = function a(b, c) { - var d = cP(c), e = d && cM(c) ? O.default({}, c.box, { + return cX(b) || c.some(a); + }, c3 = function a(b, c) { + var d = cX(c), e = d && cU(c) ? O.default({}, c.box, { height: 0 }) : c.box, f = function(e) { if (void 0 === e && (e = []), d) { var f = c.props.render(b); return [ - bn(f) + bu(f) ].filter(Boolean); } return e.map(function(c) { @@ -2630,24 +2717,24 @@ lines: g, children: f }); - }, cY = function(a, b, c) { - if (cW(b)) { - var d = cX(a, b); - return cQ(d, c); + }, c4 = function(a, b, c) { + if (c2(b)) { + var d = c3(a, b); + return cY(d, c); } return b; - }, cZ = function(a, b, c) { - var e = bj(a), f = bk(a), g = cY({ + }, c5 = function(a, b, c) { + var e = bq(a), f = br(a), g = c4({ pageNumber: b - }, a, c), h = a.style.height, i = cS(e, f, g.children), j = i[0], k = i[1], l = function(a) { - return cQ(a, c); + }, a, c), h = a.style.height, i = c$(e, f, g.children), j = i[0], k = i[1], l = function(a) { + return cY(a, c); }, m = O.default({}, a.box, { height: h }), n = l(Object.assign({}, a, { box: m, children: j })); - if (0 === k.length || k.every(a7)) return [ + if (0 === k.length || k.every(be)) return [ n, null ]; @@ -2660,81 +2747,128 @@ n, q ]; - }, c$ = function(a) { + }, c6 = function(a, b, c, d) { + return c4({ + totalPages: d.length, + pageNumber: c + 1, + subPageNumber: b.subPageNumber + 1, + subPageTotalPages: b.subPageTotalPages + }, b, a); + }, c7 = function(a) { return a.map(function(b, c) { return O.default({}, b, { subPageNumber: c, subPageTotalPages: a.length }); }); - }, c_ = function(a, b, c) { + }, c8 = function(a, b, c) { if (!a) return []; - for(var d = cZ(a, b, c), e = [ + for(var d = c5(a, b, c), e = [ d[0] - ], f = d[1]; null !== f;)d = cZ(f, b + e.length, c), e.push(d[0]), f = d[1]; + ], f = d[1]; null !== f;)d = c5(f, b + e.length, c), e.push(d[0]), f = d[1]; return e; - }, c0 = function(a) { + }, c9 = function(a, b) { + for(var c = [], e = 1, f = 0; f < a.children.length; f += 1){ + var g = c8(a.children[f], e, b); + g = c7(g), e += g.length, c = c.concat(g); + } + return c = c.map(function() { + for(var a, c = arguments.length, e = Array(c), f = 0; f < c; f++)e[f] = arguments[f]; + return a = c6.apply(void 0, [ + b + ].concat(e)), d.omit([ + "subPageNumber", + "subPageTotalPages" + ], a); + }), cV(c, a); + }, da = function(a) { return function(b) { var c = d.matchPercent(b); return c ? c.percent * a.width : b; }; - }, c1 = function(a) { + }, db = function(a) { return function(b) { var c = d.matchPercent(b); return c ? c.percent * a.height : b; }; - }, c2 = function(a) { + }, dc = function(a) { var b = a.style, c = d.evolve({ - paddingTop: c1(b), - paddingLeft: c0(b), - paddingRight: c0(b), - paddingBottom: c1(b) + paddingTop: db(b), + paddingLeft: da(b), + paddingRight: da(b), + paddingBottom: db(b) }, a.style); return Object.assign({}, a, { style: c }); - }, c3 = function(a) { + }, dd = function(a) { + if (!a.children) return a; + var b = a.children.map(dc); + return Object.assign({}, a, { + children: b + }); + }, de = function(a) { return function(b) { if (b) { var c = d.matchPercent(b); return c ? c.percent * Math.min(a.width, a.height) : b; } }; - }, c4 = function(a, b) { + }, df = function a(b) { + var c = d.evolve({ + borderTopLeftRadius: de(b.box), + borderTopRightRadius: de(b.box), + borderBottomRightRadius: de(b.box), + borderBottomLeftRadius: de(b.box) + }, b.style || {}), e = Object.assign({}, b, { + style: c + }); + if (!b.children) return e; + var f = b.children.map(a); + return Object.assign({}, e, { + children: f + }); + }, dg = function(a, b) { var c = d.matchPercent(b); return c ? c.percent * a : b; - }, c5 = function(a) { + }, dh = function(a) { var b, c, d = a.style.height, e = (null === (b = a.style) || void 0 === b ? void 0 : b.paddingTop) || 0, f = (null === (c = a.style) || void 0 === c ? void 0 : c.paddingBottom) || 0; return d - e - f; - }, c6 = function(a, b) { + }, di = function(a, b) { if (d.isNil(null === (c = a.style) || void 0 === c ? void 0 : c.height) || d.isNil(null === (e = b.style) || void 0 === e ? void 0 : e.height)) return b; - var c, e, f = c5(a), g = c4(f, b.style.height), h = Object.assign({}, b.style, { + var c, e, f = dh(a), g = dg(f, b.style.height), h = Object.assign({}, b.style, { height: g }); return Object.assign({}, b, { style: h }); - }, c7 = function(a) { + }, dj = function(a) { if (!a.children) return a; var b = function(b) { - return c6(a, b); + return di(a, b); }, c = a.children.map(b); return Object.assign({}, a, { children: c }); - }, c8 = function(a) { + }, dk = function(a) { + if (!a.children) return a; + var b = a.children.map(dj); + return Object.assign({}, a, { + children: b + }); + }, dl = function(a) { return function(b) { return b.type === a; }; - }, c9 = c8(C.Link), da = c8(C.Text), db = c8(C.TextInstance), dc = function(a) { + }, dm = dl(C.Link), dn = dl(C.Text), dp = dl(C.TextInstance), dq = function(a) { var b; return !!(null !== (b = a.props) && void 0 !== b && b.render); - }, dd = function(a) { - return da(a) || db(a); - }, de = function(a) { + }, dr = function(a) { + return dn(a) || dp(a); + }, ds = function(a) { var b = a.children || []; - return !!b.every(db) || !b.every(da) && b.every(dd); - }, df = function(a) { + return !!b.every(dp) || !b.every(dn) && b.every(dr); + }, dt = function(a) { var b = { type: C.Text, props: {}, @@ -2747,128 +2881,18 @@ b ] }); - }, dg = function(a) { - return c9(a) ? dc(a) ? Object.assign({}, a, { + }, du = function(a) { + return dm(a) ? dq(a) ? Object.assign({}, a, { type: C.Text - }) : de(a) ? df(a) : a : a; - }, dh = d.asyncCompose(function a(b) { + }) : ds(a) ? dt(a) : a : a; + }, dv = function a(b) { if (!b.children) return b; - var c, d = ((c = b).type !== C.Document && c.type !== C.Svg ? b.children.sort(aK) : b.children).map(a); - return Object.assign({}, b, { - children: d - }); - }, function(a) { - if (!a.children) return a; - var b = a.children.map(a_); - return Object.assign({}, a, { - children: b - }); - }, function(a, b) { - for(var c = [], e = 1, f = 0; f < a.children.length; f += 1){ - var g = c_(a.children[f], e, b); - g = c$(g), e += g.length, c = c.concat(g); - } - return c = c.map(function() { - for(var a, c = arguments.length, e = Array(c), f = 0; f < c; f++)e[f] = arguments[f]; - return a = (function(a, b, c, d) { - return cY({ - totalPages: d.length, - pageNumber: c + 1, - subPageNumber: b.subPageNumber + 1, - subPageTotalPages: b.subPageTotalPages - }, b, a); - }).apply(void 0, [ - b - ].concat(e)), d.omit([ - "subPageNumber", - "subPageTotalPages" - ], a); - }), cN(c, a); - }, bH, function a(b) { - var c = d.evolve({ - borderTopLeftRadius: c3(b.box), - borderTopRightRadius: c3(b.box), - borderBottomRightRadius: c3(b.box), - borderBottomLeftRadius: c3(b.box) - }, b.style || {}), e = Object.assign({}, b, { - style: c - }); - if (!b.children) return e; - var f = b.children.map(a); - return Object.assign({}, e, { - children: f - }); - }, function(a, b) { - if (!a.children) return a; - var c = function(a) { - return cL(a, b); - }, d = a.children.map(c); - return Object.assign({}, a, { - children: d - }); - }, function a(b, c) { - if (!b.children) return b; - var d = function(b) { - return a(b, c); - }, e = ax(b) ? aI(b, c) : b, f = e.children.map(d); - return Object.assign({}, e, { - children: f - }); - }, aV, bK, function(a) { - if (!a.children) return a; - var b = a.children.map(c7); - return Object.assign({}, a, { - children: b - }); - }, function(a) { - if (!a.children) return a; - var b = a.children.map(c2); - return Object.assign({}, a, { - children: b - }); - }, function(a) { - if (!a.children) return a; - var b = a.children.map(aY); - return Object.assign({}, a, { - children: b - }); - }, function a(b) { - if (!b.children) return b; - var c = d.compose(dg, a), e = b.children.map(c); + var c = d.compose(du, a), e = b.children.map(c); return Object.assign({}, b, { children: e }); - }, function(a) { - for(var b = 0, c = (a.children || []).slice(0).map(function(a) { - return { - value: a, - parent: null - }; - }); c.length > 0;)!function() { - var a = c.shift(), d = a.value, e = a.parent; - if (null !== (f = d.props) && void 0 !== f && f.bookmark) { - var f, g, h = a0(d.props.bookmark), i = b++, j = O.default({ - ref: i, - parent: null === (g = e) || void 0 === g ? void 0 : g.ref - }, h); - d.props.bookmark = j, e = j; - } - d.children && d.children.forEach(function(a) { - c.push({ - value: a, - parent: e - }); - }); - }(); - return a; - }, function(a) { - if (!a.children) return a; - var b = a.children.map(a6); - return Object.assign({}, a, { - children: b - }); - }); - b.Z = dh; + }, dw = d.asyncCompose(aM, a4, c9, bO, df, cT, aJ, aY, bR, dk, dd, a0, dv, a6, bd); + b.Z = dw; }, 5648: function(a) { "use strict"; @@ -3207,8 +3231,8 @@ y: l }; }); - }; - function H(a, b, c, d) { + }, H = G; + function I(a, b, c, d) { return [ "C", a, @@ -3219,7 +3243,7 @@ d ]; } - function I(a, b, c, d, e, f) { + function J(a, b, c, d, e, f) { return [ "C", a / 3 + 2 / 3 * c, @@ -3230,10 +3254,31 @@ f, ]; } - var J = c(7369), K = c(9406), L = c(3226), M = c(9818), N = c.n(M), O = 4.0 * ((Math.sqrt(2) - 1.0) / 3.0), P = 4.0 * ((Math.sqrt(2) - 1.0) / 3.0), Q = function(a, b, c, d, e) { - var f = b - d, g = c - e, h = d * P, i = e * P, j = f + 2 * d, k = g + 2 * e, l = f + d, m = g + e; + var K = c(7369), L = c(9406), M = c(3226), N = c(9818), O = c.n(N), P = function(a, b) { + var c; + (null === (c = b.props) || void 0 === c ? void 0 : c.d) && a.path(b.props.d); + }, Q = 4.0 * ((Math.sqrt(2) - 1.0) / 3.0), R = function(a, b) { + var c, d, e, f, g, h, i = (null === (c = b.props) || void 0 === c ? void 0 : c.x) || 0, j = (null === (d = b.props) || void 0 === d ? void 0 : d.y) || 0, k = (null === (e = b.props) || void 0 === e ? void 0 : e.rx) || 0, l = (null === (f = b.props) || void 0 === f ? void 0 : f.ry) || 0, m = (null === (g = b.props) || void 0 === g ? void 0 : g.width) || 0, n = (null === (h = b.props) || void 0 === h ? void 0 : h.height) || 0; + if (m && n) { + if (k && l) { + var o = k * Q, p = l * Q; + a.moveTo(i + k, j), a.lineTo(i - k + m, j), a.bezierCurveTo(i - k + m + o, j, i + m, j + l - p, i + m, j + l), a.lineTo(i + m, j + n - l), a.bezierCurveTo(i + m, j + n - l + p, i - k + m + o, j + n, i - k + m, j + n), a.lineTo(i + k, j + n), a.bezierCurveTo(i + k - o, j + n, i, j + n - l + p, i, j + n - l), a.lineTo(i, j + l), a.bezierCurveTo(i, j + l - p, i + k - o, j, i + k, j); + } else a.moveTo(i, j), a.lineTo(i + m, j), a.lineTo(i + m, j + n), a.lineTo(i, j + n); + a.closePath(); + } + }, S = function(a, b) { + var c = b.props || {}, d = c.x1, e = c.x2, f = c.y1, g = c.y2; + a.moveTo(d, f), a.lineTo(e, g); + }, T = function() {}, U = 4.0 * ((Math.sqrt(2) - 1.0) / 3.0), V = function(a, b, c, d, e) { + var f = b - d, g = c - e, h = d * U, i = e * U, j = f + 2 * d, k = g + 2 * e, l = f + d, m = g + e; a.moveTo(f, m), a.bezierCurveTo(f, m - i, l - h, g, l, g), a.bezierCurveTo(l + h, g, j, m - i, j, m), a.bezierCurveTo(j, m + i, l + h, k, l, k), a.bezierCurveTo(l - h, k, f, m + i, f, m), a.closePath(); - }, R = function(a, b, c, d, e, f) { + }, W = function(a, b) { + var c = b.props || {}, d = c.cx, e = c.cy, f = c.rx, g = c.ry; + V(a, d, e, f, g); + }, X = function(a, b) { + var c, d, e, f = null === (c = b.props) || void 0 === c ? void 0 : c.cx, g = null === (d = b.props) || void 0 === d ? void 0 : d.cy, h = null === (e = b.props) || void 0 === e ? void 0 : e.r; + V(a, f, g, h, h); + }, Y = function(a, b, c, d, e, f) { void 0 === f && (f = {}); var g = 1000 / a._fontSize, h = 1000 / (a._font.font.unitsPerEm || 1000), i = a._font.encodeGlyphs(b), j = c.map(function(a, c) { return { @@ -3245,7 +3290,7 @@ }; }); return a._glyphs(i, j, d, e, f); - }, S = function(a, b) { + }, Z = function(a, b) { var c = (0, u.default)(b), d = b.attributes, e = d.font, f = d.fontSize, g = d.color, h = d.opacity; if (a.fillColor(g), a.fillOpacity(h), e.sbix || e.COLR && e.CPAL) { a.save(), a.translate(0, -b.ascent); @@ -3257,13 +3302,13 @@ } else { a.font("string" == typeof e.name ? e.name : e, f); try { - R(a, b.glyphs, b.positions, 0, 0); + Y(a, b.glyphs, b.positions, 0, 0); } catch (l) { console.log(l); } } a.translate(c, 0); - }, T = function(a, b, c, d) { + }, $ = function(a, b, c, d) { a.save(); var e, f, g, h, i, j = (null === (e = b.box) || void 0 === e ? void 0 : e.x) || 0, k = (null === (f = b.box) || void 0 === f ? void 0 : f.y) || 0, l = null === (g = b.runs[0]) || void 0 === g ? void 0 : g.attributes.font, m = (null === (h = b.runs[0]) || void 0 === h ? void 0 : null === (i = h.attributes) || void 0 === i ? void 0 : i.scale) || 1, n = (0, v.default)(b), o = l.ascent * m, p = l.xHeight * m, q = l.descent * m, r = l.capHeight * m, s = j, t = k; switch(c){ @@ -3297,36 +3342,54 @@ t = k; } a.translate(s, t), b.runs.forEach(function(b) { - return S(a, b); + return Z(a, b); }), a.restore(); - }, U = function(a) { + }, _ = function(a, b) { + b.children.forEach(function(b) { + return $(a, b.lines[0], b.props.textAnchor, b.props.dominantBaseline); + }); + }, aa = function(a) { for(var b = [], c = 0; c < a.length; c += 2)b.push([ a[c], a[c + 1] ]); return b; - }, V = function(a) { + }, ab = function(a) { var b = (a || "").trim().replace(/,/g, " ").replace(/(\d)-(\d)/g, "$1 -$2").split(/\s+/); - return b.length % 2 != 0 && (b = b.slice(0, -1)), b = b.map(parseFloat), U(b); - }, W = function(a, b) { + return b.length % 2 != 0 && (b = b.slice(0, -1)), b = b.map(parseFloat), aa(b); + }, ac = function(a, b) { b.length > 0 && (a.moveTo(b[0][0], b[0][1]), b.slice(1).forEach(function(b) { return a.lineTo(b[0], b[1]); })); - }, X = function(a, b) { - var c = V(b.props.points || ""); - W(a, c); - }, Y = 4.0 * ((Math.sqrt(2) - 1.0) / 3.0), Z = function(a, b) { + }, ad = function(a, b) { + var c = ab(b.props.points || ""); + ac(a, c); + }, ae = function(a, b) { + ad(a, b), a.closePath(); + }, af = function(a, b) { + if (b.image.data) { + var c = b.props, d = c.x, e = c.y, f = b.style, g = f.width, h = f.height, i = f.opacity, j = b.box.paddingLeft || 0, k = b.box.paddingLeft || 0; + if (0 === g || 0 === h) { + console.warn("Image with src '" + b.props.href + "' skipped due to invalid dimensions"); + return; + } + a.save(), a.fillOpacity(i || 1).image(b.image.data, d + k, e + j, { + width: g, + height: h + }), a.restore(); + } + }, ag = 4.0 * ((Math.sqrt(2) - 1.0) / 3.0), ah = function(a, b) { if (b.style) { - var c = b.box, d = c.top, e = c.left, f = c.width, g = c.height, h = b.style, i = h.borderTopLeftRadius, j = void 0 === i ? 0 : i, k = h.borderTopRightRadius, l = void 0 === k ? 0 : k, m = h.borderBottomRightRadius, n = void 0 === m ? 0 : m, o = h.borderBottomLeftRadius, p = void 0 === o ? 0 : o, q = Math.min(l, 0.5 * f, 0.5 * g), r = q * (1.0 - Y); + var c = b.box, d = c.top, e = c.left, f = c.width, g = c.height, h = b.style, i = h.borderTopLeftRadius, j = void 0 === i ? 0 : i, k = h.borderTopRightRadius, l = void 0 === k ? 0 : k, m = h.borderBottomRightRadius, n = void 0 === m ? 0 : m, o = h.borderBottomLeftRadius, p = void 0 === o ? 0 : o, q = Math.min(l, 0.5 * f, 0.5 * g), r = q * (1.0 - ag); a.moveTo(e + q, d), a.lineTo(e + f - q, d), a.bezierCurveTo(e + f - r, d, e + f, d + r, e + f, d + q); - var s = Math.min(n, 0.5 * f, 0.5 * g), t = s * (1.0 - Y); + var s = Math.min(n, 0.5 * f, 0.5 * g), t = s * (1.0 - ag); a.lineTo(e + f, d + g - s), a.bezierCurveTo(e + f, d + g - t, e + f - t, d + g, e + f - s, d + g); - var u = Math.min(p, 0.5 * f, 0.5 * g), v = u * (1.0 - Y); + var u = Math.min(p, 0.5 * f, 0.5 * g), v = u * (1.0 - ag); a.lineTo(e + u, d + g), a.bezierCurveTo(e + v, d + g, e, d + g - v, e, d + g - u); - var w = Math.min(j, 0.5 * f, 0.5 * g), x = w * (1.0 - Y); + var w = Math.min(j, 0.5 * f, 0.5 * g), x = w * (1.0 - ag); a.lineTo(e, d + w), a.bezierCurveTo(e, d + x, e + x, d, e + w, d), a.closePath(), a.clip(); } - }, $ = function(a, b, c) { + }, ai = function(a, b, c) { var d = b.operation, e = b.value; switch(d){ case "scale": @@ -3353,53 +3416,17 @@ default: console.error("Transform operation: '" + d + "' doesn't supported"); } - }, _ = function(a, b) { + }, aj = function(a, b) { if (b.origin) { var c, d, e = [ b.origin.left, b.origin.top ]; ((null === (c = b.style) || void 0 === c ? void 0 : c.transform) || (null === (d = b.props) || void 0 === d ? void 0 : d.transform) || []).forEach(function(b) { - $(a, b, e); + ai(a, b, e); }); } - }, aa = function(a) { - return Math.max.apply(Math, [ - -1 / 0 - ].concat(a)); - }, ab = function(a) { - return Math.min.apply(Math, [ - 1 / 0 - ].concat(a)); - }, ac = function(a) { - var b, c = V((null === (b = a.props) || void 0 === b ? void 0 : b.points) || []), d = c.map(function(a) { - return a[0]; - }), e = c.map(function(a) { - return a[1]; - }); - return [ - ab(d), - ab(e), - aa(d), - aa(e) - ]; - }, ad = ((d = {})[i.Rect] = function(a) { - var b, c, d, e, f = (null === (b = a.props) || void 0 === b ? void 0 : b.x) || 0, g = (null === (c = a.props) || void 0 === c ? void 0 : c.y) || 0, h = (null === (d = a.props) || void 0 === d ? void 0 : d.width) || 0, i = (null === (e = a.props) || void 0 === e ? void 0 : e.height) || 0; - return [ - f, - g, - f + h, - g + i - ]; - }, d[i.Line] = function(a) { - var b, c, d, e, f = (null === (b = a.props) || void 0 === b ? void 0 : b.x1) || 0, g = (null === (c = a.props) || void 0 === c ? void 0 : c.y1) || 0, h = (null === (d = a.props) || void 0 === d ? void 0 : d.x2) || 0, i = (null === (e = a.props) || void 0 === e ? void 0 : e.y2) || 0; - return [ - Math.min(f, h), - Math.min(g, i), - Math.max(f, h), - Math.max(g, i), - ]; - }, d[i.Path] = function(a) { + }, ak = function(a) { var b, c = function(a) { for(var b = [], c = 0, d = 0, e = 0, f = 0, g = null, h = null, i = 0, j = 0, k = 0, l = a.length; k < l; k++){ var m = a[k], n = m[0]; @@ -3408,7 +3435,7 @@ e = m[1], f = m[2]; break; case "A": - var o = G({ + var o = H({ px: i, py: j, cx: m[6], @@ -3443,22 +3470,22 @@ ]; break; case "T": - "Q" == p || "T" == p ? (g = 2 * i - g, h = 2 * j - h) : (g = i, h = j), m = I(i, j, g, h, m[1], m[2]); + "Q" == p || "T" == p ? (g = 2 * i - g, h = 2 * j - h) : (g = i, h = j), m = J(i, j, g, h, m[1], m[2]); break; case "Q": - g = m[1], h = m[2], m = I(i, j, m[1], m[2], m[3], m[4]); + g = m[1], h = m[2], m = J(i, j, m[1], m[2], m[3], m[4]); break; case "L": - m = H(i, j, m[1], m[2]); + m = I(i, j, m[1], m[2]); break; case "H": - m = H(i, j, m[1], j); + m = I(i, j, m[1], j); break; case "V": - m = H(i, j, i, m[1]); + m = I(i, j, i, m[1]); break; case "Z": - m = H(i, j, e, f); + m = I(i, j, e, f); } p = n, i = m[m.length - 2], j = m[m.length - 1], m.length > 4 ? (c = m[m.length - 4], d = m[m.length - 3]) : (c = i, d = j), b.push(m); } @@ -3477,7 +3504,7 @@ -1 / 0 ], e = 0, f = c.length; e < f; e += 1)for(var g = c[e].slice(1), h = 0; h < g.length; h += 2)g[h + 0] < d[0] && (d[0] = g[h + 0]), g[h + 1] < d[1] && (d[1] = g[h + 1]), g[h + 0] > d[2] && (d[2] = g[h + 0]), g[h + 1] > d[3] && (d[3] = g[h + 1]); return d; - }, d[i.Circle] = function(a) { + }, al = function(a) { var b, c, d, e = (null === (b = a.props) || void 0 === b ? void 0 : b.r) || 0, f = (null === (c = a.props) || void 0 === c ? void 0 : c.cx) || 0, g = (null === (d = a.props) || void 0 === d ? void 0 : d.cy) || 0; return [ f - e, @@ -3485,7 +3512,7 @@ f + e, g + e ]; - }, d[i.Ellipse] = function(a) { + }, am = function(a) { var b, c, d, e, f = (null === (b = a.props) || void 0 === b ? void 0 : b.cx) || 0, g = (null === (c = a.props) || void 0 === c ? void 0 : c.cy) || 0, h = (null === (d = a.props) || void 0 === d ? void 0 : d.rx) || 0, i = (null === (e = a.props) || void 0 === e ? void 0 : e.ry) || 0; return [ f - h, @@ -3493,115 +3520,112 @@ f + h, g + i ]; - }, d[i.Polygon] = ac, d[i.Polyline] = ac, d), ae = function(a) { - var b = ad[a.type]; + }, an = function(a) { + var b, c, d, e, f = (null === (b = a.props) || void 0 === b ? void 0 : b.x1) || 0, g = (null === (c = a.props) || void 0 === c ? void 0 : c.y1) || 0, h = (null === (d = a.props) || void 0 === d ? void 0 : d.x2) || 0, i = (null === (e = a.props) || void 0 === e ? void 0 : e.y2) || 0; + return [ + Math.min(f, h), + Math.min(g, i), + Math.max(f, h), + Math.max(g, i), + ]; + }, ao = function(a) { + var b, c, d, e, f = (null === (b = a.props) || void 0 === b ? void 0 : b.x) || 0, g = (null === (c = a.props) || void 0 === c ? void 0 : c.y) || 0, h = (null === (d = a.props) || void 0 === d ? void 0 : d.width) || 0, i = (null === (e = a.props) || void 0 === e ? void 0 : e.height) || 0; + return [ + f, + g, + f + h, + g + i + ]; + }, ap = function(a) { + return Math.max.apply(Math, [ + -1 / 0 + ].concat(a)); + }, aq = function(a) { + return Math.min.apply(Math, [ + 1 / 0 + ].concat(a)); + }, ar = function(a) { + var b, c = ab((null === (b = a.props) || void 0 === b ? void 0 : b.points) || []), d = c.map(function(a) { + return a[0]; + }), e = c.map(function(a) { + return a[1]; + }); + return [ + aq(d), + aq(e), + ap(d), + ap(e) + ]; + }, as = ((d = {})[i.Rect] = ao, d[i.Line] = an, d[i.Path] = ak, d[i.Circle] = al, d[i.Ellipse] = am, d[i.Polygon] = ar, d[i.Polyline] = ar, d), at = function(a) { + var b = as[a.type]; return b ? b(a) : [ 0, 0, 0, 0 ]; - }, af = function(a, b) { + }, au = function(a, b) { var c, d = (null === (c = b.props) || void 0 === c ? void 0 : c.strokeWidth) || 0; d && a.lineWidth(d); - }, ag = function(a, b) { + }, av = function(a, b) { var c, d = (null === (c = b.props) || void 0 === c ? void 0 : c.stroke) || null; d && a.strokeColor(d); - }, ah = function(a, b) { + }, aw = function(a, b) { var c, d = (null === (c = b.props) || void 0 === c ? void 0 : c.opacity) || null; (0, t.isNil)(d) || a.opacity(d); - }, ai = function(a, b) { + }, ax = function(a, b) { var c, d = (null === (c = b.props) || void 0 === c ? void 0 : c.fillOpacity) || null; (0, t.isNil)(d) || a.fillOpacity(d); - }, aj = function(a, b) { + }, ay = function(a, b) { var c, d = (null === (c = b.props) || void 0 === c ? void 0 : c.strokeOpacity) || null; (0, t.isNil)(d) || a.strokeOpacity(d); - }, ak = function(a, b) { + }, az = function(a, b) { var c, d = (null === (c = b.props) || void 0 === c ? void 0 : c.strokeLinejoin) || null; d && a.lineJoin(d); - }, al = function(a, b) { + }, aA = function(a, b) { var c, d = (null === (c = b.props) || void 0 === c ? void 0 : c.strokeLinecap) || null; d && a.lineCap(d); - }, am = function(a, b) { + }, aB = function(a, b) { var c, d = (null === (c = b.props) || void 0 === c ? void 0 : c.strokeDasharray) || null; d && a.dash(d.split(",")); - }, an = function(a) { + }, aC = function(a) { var b, c; return (null === (b = a.props) || void 0 === b ? void 0 : null === (c = b.fill) || void 0 === c ? void 0 : c.type) === i.LinearGradient; - }, ao = function(a) { + }, aD = function(a) { var b, c; return (null === (b = a.props) || void 0 === b ? void 0 : null === (c = b.fill) || void 0 === c ? void 0 : c.type) === i.RadialGradient; - }, ap = function(a, b) { - var c, d = ae(b), e = (null === (c = b.props) || void 0 === c ? void 0 : c.fill) || null, f = e.props.x1 || 0, g = e.props.y1 || 0, h = e.props.x2 || 1, i = e.props.y2 || 0, j = d[2] - d[0], k = d[3] - d[1], l = d[0], m = d[1], n = a.linearGradient(j * f + l, k * g + m, j * h + l, k * i + m); + }, aE = function(a, b) { + var c, d = at(b), e = (null === (c = b.props) || void 0 === c ? void 0 : c.fill) || null, f = e.props.x1 || 0, g = e.props.y1 || 0, h = e.props.x2 || 1, i = e.props.y2 || 0, j = d[2] - d[0], k = d[3] - d[1], l = d[0], m = d[1], n = a.linearGradient(j * f + l, k * g + m, j * h + l, k * i + m); e.children.forEach(function(a) { n.stop(a.props.offset, a.props.stopColor, a.props.stopOpacity); }), a.fill(n); - }, aq = function(a, b) { - var c, d = ae(b), e = (null === (c = b.props) || void 0 === c ? void 0 : c.fill) || null, f = e.props.cx || 0.5, g = e.props.cy || 0.5, h = e.props.fx || f, i = e.props.fy || g, j = e.props.r || 0.5, k = d[2] - d[0], l = d[3] - d[1], m = d[0], n = d[1], o = a.radialGradient(k * h + m, l * i + n, 0, k * f + m, l * g + n, j * k); + }, aF = function(a, b) { + var c, d = at(b), e = (null === (c = b.props) || void 0 === c ? void 0 : c.fill) || null, f = e.props.cx || 0.5, g = e.props.cy || 0.5, h = e.props.fx || f, i = e.props.fy || g, j = e.props.r || 0.5, k = d[2] - d[0], l = d[3] - d[1], m = d[0], n = d[1], o = a.radialGradient(k * h + m, l * i + n, 0, k * f + m, l * g + n, j * k); e.children.forEach(function(a) { o.stop(a.props.offset, a.props.stopColor, a.props.stopOpacity); }), a.fill(o); - }, ar = function(a, b) { + }, aG = function(a, b) { var c, d = (null === (c = b.props) || void 0 === c ? void 0 : c.fill) || null; d && a.fillColor(d); - }, as = function(a, b) { + }, aH = function(a, b) { var c = b.props || {}; c.fill && c.stroke ? a.fillAndStroke(c.fillRule) : c.fill ? a.fill(c.fillRule) : c.stroke ? a.stroke() : (a.save(), a.opacity(0), a.fill(null), a.restore()); - }, at = function() {}, au = ((e = {})[i.Tspan] = at, e[i.TextInstance] = at, e[i.Path] = function(a, b) { - var c; - (null === (c = b.props) || void 0 === c ? void 0 : c.d) && a.path(b.props.d); - }, e[i.Rect] = function(a, b) { - var c, d, e, f, g, h, i = (null === (c = b.props) || void 0 === c ? void 0 : c.x) || 0, j = (null === (d = b.props) || void 0 === d ? void 0 : d.y) || 0, k = (null === (e = b.props) || void 0 === e ? void 0 : e.rx) || 0, l = (null === (f = b.props) || void 0 === f ? void 0 : f.ry) || 0, m = (null === (g = b.props) || void 0 === g ? void 0 : g.width) || 0, n = (null === (h = b.props) || void 0 === h ? void 0 : h.height) || 0; - if (m && n) { - if (k && l) { - var o = k * O, p = l * O; - a.moveTo(i + k, j), a.lineTo(i - k + m, j), a.bezierCurveTo(i - k + m + o, j, i + m, j + l - p, i + m, j + l), a.lineTo(i + m, j + n - l), a.bezierCurveTo(i + m, j + n - l + p, i - k + m + o, j + n, i - k + m, j + n), a.lineTo(i + k, j + n), a.bezierCurveTo(i + k - o, j + n, i, j + n - l + p, i, j + n - l), a.lineTo(i, j + l), a.bezierCurveTo(i, j + l - p, i + k - o, j, i + k, j); - } else a.moveTo(i, j), a.lineTo(i + m, j), a.lineTo(i + m, j + n), a.lineTo(i, j + n); - a.closePath(); - } - }, e[i.Line] = function(a, b) { - var c = b.props || {}, d = c.x1, e = c.x2, f = c.y1, g = c.y2; - a.moveTo(d, f), a.lineTo(e, g); - }, e[i.G] = function() {}, e[i.Text] = function(a, b) { - b.children.forEach(function(b) { - return T(a, b.lines[0], b.props.textAnchor, b.props.dominantBaseline); - }); - }, e[i.Circle] = function(a, b) { - var c, d, e, f = null === (c = b.props) || void 0 === c ? void 0 : c.cx, g = null === (d = b.props) || void 0 === d ? void 0 : d.cy, h = null === (e = b.props) || void 0 === e ? void 0 : e.r; - Q(a, f, g, h, h); - }, e[i.Image] = function(a, b) { - if (b.image.data) { - var c = b.props, d = c.x, e = c.y, f = b.style, g = f.width, h = f.height, i = f.opacity, j = b.box.paddingLeft || 0, k = b.box.paddingLeft || 0; - if (0 === g || 0 === h) { - console.warn("Image with src '" + b.props.href + "' skipped due to invalid dimensions"); - return; - } - a.save(), a.fillOpacity(i || 1).image(b.image.data, d + k, e + j, { - width: g, - height: h - }), a.restore(); - } - }, e[i.Ellipse] = function(a, b) { - var c = b.props || {}, d = c.cx, e = c.cy, f = c.rx, g = c.ry; - Q(a, d, e, f, g); - }, e[i.Polygon] = function(a, b) { - X(a, b), a.closePath(); - }, e[i.Polyline] = X, e), av = function(a, b) { - var c = au[b.type]; - au ? c(a, b) : console.warn("SVG node of type " + b.type + " is not currenty supported"); - }, aw = function(a, b) { + }, aI = function() {}, aJ = ((e = {})[i.Tspan] = aI, e[i.TextInstance] = aI, e[i.Path] = P, e[i.Rect] = R, e[i.Line] = S, e[i.G] = T, e[i.Text] = _, e[i.Circle] = X, e[i.Image] = af, e[i.Ellipse] = W, e[i.Polygon] = ae, e[i.Polyline] = ad, e), aK = function(a, b) { + var c = aJ[b.type]; + aJ ? c(a, b) : console.warn("SVG node of type " + b.type + " is not currenty supported"); + }, aL = function(a, b) { var c, d; - al(a, b), am(a, b), ak(a, b), af(a, b), ag(a, b), c = a, an(d = b) ? ap(c, d) : ao(d) ? aq(c, d) : ar(c, d), aj(a, b), ai(a, b), ah(a, b), _(a, b), av(a, b), as(a, b); - }, ax = function(a, b) { + aA(a, b), aB(a, b), az(a, b), au(a, b), av(a, b), c = a, aC(d = b) ? aE(c, d) : aD(d) ? aF(c, d) : aG(c, d), ay(a, b), ax(a, b), aw(a, b), aj(a, b), aK(a, b), aH(a, b); + }, aM = function(a, b) { var c, d = null === (c = b.props) || void 0 === c ? void 0 : c.clipPath; d && ((d.children || []).forEach(function(b) { - return av(a, b); + return aK(a, b); }), a.clip()); - }, ay = function a(b, c) { + }, aN = function a(b, c) { (c.children || []).forEach(function(c) { - b.save(), ax(b, c), aw(b, c), a(b, c), b.restore(); + b.save(), aM(b, c), aL(b, c), a(b, c), b.restore(); }); - }, az = function(a, b) { + }, aO = function(a, b) { var c = b.box, d = c.width, e = c.height, f = b.props, g = f.viewBox, h = f.preserveAspectRatio, i = void 0 === h ? {} : h, j = i.meetOrSlice, k = void 0 === j ? "meet" : j, l = i.align, m = void 0 === l ? "xMidYMid" : l; if (null != g && null != d && null != e) { var n = (null == g ? void 0 : g.minX) || 0, o = (null == g ? void 0 : g.minY) || 0, p = (null == g ? void 0 : g.maxX) || d, q = (null == g ? void 0 : g.maxY) || e, r = p / q, s = d / e, t = d / p, u = e / q; @@ -3638,16 +3662,18 @@ a.translate(-n, -o - (q - e * p / d)); } } - }, aA = function(a, b) { + }, aP = function(a, b) { var c = b.box, d = c.top, e = c.left, f = b.box.paddingLeft || 0, g = b.box.paddingTop || 0; a.translate(e + f, d + g); - }, aB = function(a) { - var b = N().get(a), c = N().to.hex(b.value.slice(0, 3)), d = b.value[3]; + }, aQ = function(a, b) { + a.save(), ah(a, b), aP(a, b), aO(a, b), aN(a, b), a.restore(); + }, aR = function(a) { + var b = O().get(a), c = O().to.hex(b.value.slice(0, 3)), d = b.value[3]; return { value: c, opacity: d }; - }, aC = /^#.+/, aD = function(a, b) { + }, aS = /^#.+/, aT = function(a, b) { var c = b.xOffset, d = b.yOffset, e = b.width, f = b.height, g = b.image; a.translate(-e + (void 0 === c ? 0 : c), -f + (void 0 === d ? 0 : d)), a.image(g, 0, 0, { fit: [ @@ -3657,16 +3683,16 @@ align: "center", valign: "bottom" }); - }, aE = function(a, b) { + }, aU = function(a, b) { a.save(); for(var c = b.attributes.font, d = c.glyphForCodePoint(0x20), e = c.glyphForCodePoint(0xfffc), f = 0, g = 0; g < b.glyphs.length; g += 1){ var h = b.positions[g], i = b.glyphs[g]; - f += h.xAdvance || 0, i.id === e.id && b.attributes.attachment && (a.translate(f, h.yOffset || 0), aD(a, b.attributes.attachment), b.glyphs[g] = d, f = 0); + f += h.xAdvance || 0, i.id === e.id && b.attributes.attachment && (a.translate(f, h.yOffset || 0), aT(a, b.attributes.attachment), b.glyphs[g] = d, f = 0); } a.restore(); - }, aF = function(a, b, c) { - var d = b.attributes, e = d.font, f = d.fontSize, g = d.link, h = aB(b.attributes.color), i = (0, t.isNil)(b.attributes.opacity) ? h.opacity : b.attributes.opacity, j = (0, J.default)(b), k = (0, K.default)(b), l = (0, u.default)(b); - if (c.outlineRuns && a.rect(0, -j, l, j).stroke(), a.fillColor(h.value), a.fillOpacity(i), g && (g.match(aC) ? a.goTo(0, -j - k, l, j, g.slice(1)) : a.link(0, -j - k, l, j, g)), aE(a, b), e.sbix || e.COLR && e.CPAL) { + }, aV = function(a, b, c) { + var d = b.attributes, e = d.font, f = d.fontSize, g = d.link, h = aR(b.attributes.color), i = (0, t.isNil)(b.attributes.opacity) ? h.opacity : b.attributes.opacity, j = (0, K.default)(b), k = (0, L.default)(b), l = (0, u.default)(b); + if (c.outlineRuns && a.rect(0, -j, l, j).stroke(), a.fillColor(h.value), a.fillOpacity(i), g && (g.match(aS) ? a.goTo(0, -j - k, l, j, g.slice(1)) : a.link(0, -j - k, l, j, g)), aU(a, b), e.sbix || e.COLR && e.CPAL) { a.save(), a.translate(0, -b.ascent); for(var m = 0; m < b.glyphs.length; m += 1){ var n = b.positions[m], o = b.glyphs[m]; @@ -3676,16 +3702,16 @@ } else { a.font("string" == typeof e.name ? e.name : e, f); try { - R(a, b.glyphs, b.positions, 0, 0); + Y(a, b.glyphs, b.positions, 0, 0); } catch (p) { console.log(p); } } a.translate(l, 0); - }, aG = function(a, b, c) { - var d = aB(c); + }, aW = function(a, b, c) { + var d = aR(c); a.save(), a.fillOpacity(d.opacity), a.rect(b.x, b.y, b.width, b.height), a.fill(d.value), a.restore(); - }, aH = function(a, b) { + }, aX = function(a, b) { if (a.save(), a.lineWidth(b.rect.height), a.strokeOpacity(b.opacity), /dashed/.test(b.style) ? a.dash(3 * b.rect.height) : /dotted/.test(b.style) && a.dash(b.rect.height), /wavy/.test(b.style)) { var c = Math.max(2, b.rect.height), d = 1.1 * c, e = Math.floor(b.rect.width / (2 * d)), f = (b.rect.width - 2 * e * d) / e / 2; d += f; @@ -3694,8 +3720,8 @@ for(var j = 0; j < e; j += 1)a.bezierCurveTo(i + d, g, i + d, h, i + 2 * d, b.rect.y), i += 2 * d; } else a.moveTo(b.rect.x, b.rect.y), a.lineTo(b.rect.x + b.rect.width, b.rect.y), /double/.test(b.style) && (a.moveTo(b.rect.x, b.rect.y + 2 * b.rect.height), a.lineTo(b.rect.x + b.rect.width, b.rect.y + 2 * b.rect.height)); a.stroke(b.color), a.restore(); - }, aI = function(a, b, c) { - var d = (0, L.default)(b); + }, aY = function(a, b, c) { + var d = (0, M.default)(b); c.outlineLines && a.rect(b.box.x, b.box.y, b.box.width, b.box.height).stroke(), a.save(), a.translate(b.box.x, b.box.y + d); for(var e = 0; e < b.runs.length; e += 1){ var f = b.runs[e], g = e === b.runs.length - 1; @@ -3706,18 +3732,25 @@ height: b.box.height, width: (0, u.default)(f) - h }; - aG(a, i, f.attributes.backgroundColor); + aW(a, i, f.attributes.backgroundColor); } - aF(a, f, c); + aV(a, f, c); } a.restore(), a.save(), a.translate(b.box.x, b.box.y); - for(var j = 0; j < b.decorationLines.length; j += 1)aH(a, b.decorationLines[j]); + for(var j = 0; j < b.decorationLines.length; j += 1)aX(a, b.decorationLines[j]); a.restore(); - }, aJ = function(a, b, c) { + }, aZ = function(a, b, c) { b.forEach(function(b) { - aI(a, b, c); + aY(a, b, c); }); - }, aK = function(a, b) { + }, a$ = function(a, b) { + var c, d, e = b.box, f = e.top, g = e.left, h = [ + b.lines + ], i = (null === (c = b.box) || void 0 === c ? void 0 : c.paddingTop) || 0, j = (null === (d = b.box) || void 0 === d ? void 0 : d.paddingLeft) || 0, k = b.lines[0] ? b.lines[0].box.y : 0, l = b.alignOffset || 0; + a.save(), a.translate(g + j - l, f + i - k), h.forEach(function(b) { + aZ(a, b, {}); + }), a.restore(); + }, a_ = function(a, b) { var c, d = b.box, e = d.width, f = d.height, g = (null === (c = b.props) || void 0 === c ? void 0 : c.dpi) || 72; a.addPage({ size: [ @@ -3727,12 +3760,18 @@ margin: 0, userUnit: g / 72 }); - }, aL = function(a) { + }, a0 = function(a, b) { + var c, d, e, f = b.box, g = f.top, h = f.left, i = (null == b ? void 0 : null === (c = b.children) || void 0 === c ? void 0 : c[0].value) || "", j = (null === (d = b.style) || void 0 === d ? void 0 : d.backgroundColor) || null, k = (null === (e = b.style) || void 0 === e ? void 0 : e.borderWidth) || null; + a.note(h, g, 0, 0, i, { + color: j, + borderWidth: k + }); + }, a1 = function(a) { return !Number.isNaN(parseFloat(a)) && Number.isFinite(a); - }, aM = function(a, b, c, d, e, f) { + }, a2 = function(a, b, c, d, e, f) { var g = c / d, h = (0, t.matchPercent)(e), i = (0, t.matchPercent)(f), j = h ? h.percent : 0.5, k = i ? i.percent : 0.5; if (a / b > g) { - var l = b, m = l * g, n = aL(f) ? f : 0, o = aL(e) ? e : (a - m) * j; + var l = b, m = l * g, n = a1(f) ? f : 0, o = a1(e) ? e : (a - m) * j; return { width: m, height: l, @@ -3740,25 +3779,25 @@ yOffset: n }; } - var p = a, q = p / g, r = aL(e) ? e : 0, s = aL(f) ? f : (b - q) * k; + var p = a, q = p / g, r = a1(e) ? e : 0, s = a1(f) ? f : (b - q) * k; return { width: p, height: q, yOffset: s, xOffset: r }; - }, aN = function(a, b, c, d, e, f) { - var g = c, h = d, i = (0, t.matchPercent)(e), j = (0, t.matchPercent)(f), k = i ? i.percent : 0.5, l = j ? j.percent : 0.5, m = aL(e) ? e : (a - g) * k, n = aL(f) ? f : (b - h) * l; + }, a3 = function(a, b, c, d, e, f) { + var g = c, h = d, i = (0, t.matchPercent)(e), j = (0, t.matchPercent)(f), k = i ? i.percent : 0.5, l = j ? j.percent : 0.5, m = a1(e) ? e : (a - g) * k, n = a1(f) ? f : (b - h) * l; return { width: g, height: h, xOffset: m, yOffset: n }; - }, aO = function(a, b, c, d, e, f) { + }, a4 = function(a, b, c, d, e, f) { var g = c / d, h = (0, t.matchPercent)(e), i = (0, t.matchPercent)(f), j = h ? h.percent : 0.5, k = i ? i.percent : 0.5; if (a / b > g) { - var l = a, m = l / g, n = aL(e) ? e : 0, o = aL(f) ? f : (b - m) * k; + var l = a, m = l / g, n = a1(e) ? e : 0, o = a1(f) ? f : (b - m) * k; return { width: l, height: m, @@ -3766,26 +3805,26 @@ xOffset: n }; } - var p = b, q = p * g, r = aL(e) ? e : (a - q) * j, s = aL(f) ? f : 0; + var p = b, q = p * g, r = a1(e) ? e : (a - q) * j, s = a1(f) ? f : 0; return { width: q, height: p, xOffset: r, yOffset: s }; - }, aP = function(a, b, c, d, e, f) { - var g = aM(a, b, c, d, e, f), h = aN(a, b, c, d, e, f); + }, a5 = function(a, b, c, d, e, f) { + var g = a2(a, b, c, d, e, f), h = a3(a, b, c, d, e, f); return g.width < h.width ? g : h; - }, aQ = function(a, b, c, d, e, f, g) { + }, a6 = function(a, b, c, d, e, f, g) { switch(void 0 === a && (a = "fill"), a){ case "contain": - return aM(b, c, d, e, f, g); + return a2(b, c, d, e, f, g); case "cover": - return aO(b, c, d, e, f, g); + return a4(b, c, d, e, f, g); case "none": - return aN(b, c, d, e, f, g); + return a3(b, c, d, e, f, g); case "scale-down": - return aP(b, c, d, e, f, g); + return a5(b, c, d, e, f, g); default: var h, i, j, k; return h = b, i = c, j = f, k = g, { @@ -3795,9 +3834,9 @@ yOffset: (0, t.matchPercent)(k) ? 0 : k || 0 }; } - }, aR = function(a, b, c) { + }, a7 = function(a, b, c) { void 0 === c && (c = {}); - var d, e, f, g, h = b.box, i = h.left, j = h.top, k = null === (d = b.style) || void 0 === d ? void 0 : d.opacity, l = null === (e = b.style) || void 0 === e ? void 0 : e.objectFit, m = null === (f = b.style) || void 0 === f ? void 0 : f.objectPositionX, n = null === (g = b.style) || void 0 === g ? void 0 : g.objectPositionY, o = b.box.paddingTop || 0, p = b.box.paddingRight || 0, q = b.box.paddingBottom || 0, r = b.box.paddingLeft || 0, s = c.imageCache || new Map(), u = aQ(l, b.box.width - r - p, b.box.height - o - q, b.image.width, b.image.height, m, n), v = u.width, w = u.height, x = u.xOffset, y = u.yOffset; + var d, e, f, g, h = b.box, i = h.left, j = h.top, k = null === (d = b.style) || void 0 === d ? void 0 : d.opacity, l = null === (e = b.style) || void 0 === e ? void 0 : e.objectFit, m = null === (f = b.style) || void 0 === f ? void 0 : f.objectPositionX, n = null === (g = b.style) || void 0 === g ? void 0 : g.objectPositionY, o = b.box.paddingTop || 0, p = b.box.paddingRight || 0, q = b.box.paddingBottom || 0, r = b.box.paddingLeft || 0, s = c.imageCache || new Map(), u = a6(l, b.box.width - r - p, b.box.height - o - q, b.image.width, b.image.height, m, n), v = u.width, w = u.height, x = u.xOffset, y = u.yOffset; if (b.image.data) { if (0 !== v && 0 !== w) { var z = b.image.key, A = s.get(z) || a.embedImage(b.image.data); @@ -3809,13 +3848,15 @@ }); } else console.warn("Image with src '" + JSON.stringify(b.props.src) + "' skipped due to invalid dimensions"); } - }, aS = function(a, b) { + }, a8 = function(a, b, c) { + a.save(), ah(a, b), a7(a, b, c), a.restore(); + }, a9 = function(a, b) { var c = b.box, d = c.left, e = c.top, f = c.width, g = c.height, h = c.paddingLeft, i = void 0 === h ? 0 : h, j = c.paddingTop, k = void 0 === j ? 0 : j, l = c.paddingRight, m = c.paddingBottom, n = c.borderLeftWidth, o = void 0 === n ? 0 : n, p = c.borderTopWidth, q = void 0 === p ? 0 : p, r = c.borderRightWidth, s = c.borderBottomWidth; a.fillColor("#a1c6e7").opacity(0.5).rect(d + i + o, e + k + q, f - i - (void 0 === l ? 0 : l) - (void 0 === r ? 0 : r) - o, g - k - (void 0 === m ? 0 : m) - q - (void 0 === s ? 0 : s)).fill(); - }, aT = function(a, b) { + }, ba = function(a, b) { var c = b.box, d = c.left, e = c.top, f = c.width, g = c.height, h = c.paddingLeft, i = void 0 === h ? 0 : h, j = c.paddingTop, k = c.paddingRight, l = void 0 === k ? 0 : k, m = c.paddingBottom, n = void 0 === m ? 0 : m, o = c.borderLeftWidth, p = void 0 === o ? 0 : o, q = c.borderTopWidth, r = void 0 === q ? 0 : q, s = c.borderRightWidth, t = void 0 === s ? 0 : s, u = c.borderBottomWidth, v = void 0 === u ? 0 : u; a.fillColor("#c4deb9").opacity(0.5), a.rect(d + i + p, e + r, f - l - i - p - t, void 0 === j ? 0 : j).fill(), a.rect(d + p, e + r, i, g - r - v).fill(), a.rect(d + f - l - t, e + r, l, g - r - v).fill(), a.rect(d + i + p, e + g - n - v, f - l - i - p - t, n).fill(); - }, aU = function(a) { + }, bb = function(a) { var b = "auto" === a.marginLeft ? 0 : a.marginLeft, c = "auto" === a.marginTop ? 0 : a.marginTop, d = "auto" === a.marginRight ? 0 : a.marginRight, e = "auto" === a.marginBottom ? 0 : a.marginBottom; return { marginLeft: b, @@ -3823,18 +3864,18 @@ marginRight: d, marginBottom: e }; - }, aV = function(a, b) { - var c = b.box, d = c.left, e = c.top, f = c.width, g = c.height, h = aU(b.box), i = h.marginLeft, j = void 0 === i ? 0 : i, k = h.marginTop, l = void 0 === k ? 0 : k, m = h.marginRight, n = h.marginBottom, o = void 0 === n ? 0 : n; + }, bc = function(a, b) { + var c = b.box, d = c.left, e = c.top, f = c.width, g = c.height, h = bb(b.box), i = h.marginLeft, j = void 0 === i ? 0 : i, k = h.marginTop, l = void 0 === k ? 0 : k, m = h.marginRight, n = h.marginBottom, o = void 0 === n ? 0 : n; a.fillColor("#f8cca1").opacity(0.5), a.rect(d, e - l, f, l).fill(), a.rect(d - j, e - l, j, g + l + o).fill(), a.rect(d + f, e - l, void 0 === m ? 0 : m, g + l + o).fill(), a.rect(d, e + g, f, o).fill(); - }, aW = function(a, b) { - var c = b.box, d = c.left, e = c.top, f = c.width, g = c.height, h = aU(b.box), i = h.marginLeft, j = void 0 === i ? 0 : i, k = h.marginTop, l = void 0 === k ? 0 : k, m = h.marginRight, n = h.marginBottom; + }, bd = function(a, b) { + var c = b.box, d = c.left, e = c.top, f = c.width, g = c.height, h = bb(b.box), i = h.marginLeft, j = void 0 === i ? 0 : i, k = h.marginTop, l = void 0 === k ? 0 : k, m = h.marginRight, n = h.marginBottom; a.fontSize(6).opacity(1).fillColor("black").text(Math.round(f + j + (void 0 === m ? 0 : m)) + " x " + Math.round(g + l + (void 0 === n ? 0 : n)), d - j, Math.max(e - l - 4, 1)); - }, aX = function(a, b) { + }, be = function(a, b) { b.origin && a.circle(b.origin.left, b.origin.top, 3).fill("red").circle(b.origin.left, b.origin.top, 5).stroke("red"); - }, aY = function(a, b) { + }, bf = function(a, b) { var c; - null !== (c = b.props) && void 0 !== c && c.debug && (a.save(), aS(a, b), aT(a, b), aV(a, b), aW(a, b), aX(a, b), a.restore()); - }, aZ = [ + null !== (c = b.props) && void 0 !== c && c.debug && (a.save(), a9(a, b), ba(a, b), bc(a, b), bd(a, b), be(a, b), a.restore()); + }, bg = [ "dash", "clip", "save", @@ -3869,26 +3910,29 @@ "quadraticCurveTo", "linearGradient", "radialGradient", - ], a$ = function(a) { - var b = aZ.reduce(function(c, d) { + ], bh = function(a) { + var b = bg.reduce(function(c, d) { var e; return (0, h.Z)({}, c, ((e = {})[d] = function() { return a[d].apply(a, arguments), b; }, e)); }, {}); return b; - }, a_ = 4.0 * ((Math.sqrt(2) - 1.0) / 3.0), a0 = function(a, b, c, d, e) { + }, bi = function(a, b) { + var c = b.box, d = c.top, e = c.left, f = c.width, g = c.height, h = b.box.paddingTop || 0, i = b.box.paddingLeft || 0, j = b.box.paddingRight || 0, k = b.box.paddingBottom || 0, l = f - i - j, m = g - h - k; + l && m || console.warn("Canvas element has null width or height. Please provide valid values via the `style` prop in order to correctly render it."), a.save().translate(e + i, d + h), b.props.paint && b.props.paint(bh(a), l, m), a.restore(); + }, bj = 4.0 * ((Math.sqrt(2) - 1.0) / 3.0), bk = function(a, b, c, d, e) { var f = b.top, g = b.left, h = b.width, i = b.height, j = c.borderTopWidth, k = c.borderRightWidth, l = c.borderLeftWidth; a.moveTo(g + e, f), a.lineTo(g + h - d, f); - var m = d * (1.0 - a_); + var m = d * (1.0 - bj); a.bezierCurveTo(g + h - m, f, g + h, f + m, g + h, f + d); var n = f + Math.max(j, d); a.lineTo(g + h, n), a.lineTo(g + h - k, n); var o = Math.max(d - k, 0); - a.bezierCurveTo(g + h - k, f + j + Math.max(d - j, 0) * (1.0 - a_), g + h - k - o * (1.0 - a_), f + j, g + h - k - o, f + j), a.lineTo(g + Math.max(e, l), f + j); + a.bezierCurveTo(g + h - k, f + j + Math.max(d - j, 0) * (1.0 - bj), g + h - k - o * (1.0 - bj), f + j, g + h - k - o, f + j), a.lineTo(g + Math.max(e, l), f + j); var p = f + Math.max(j, e); - a.bezierCurveTo(g + l + Math.max(e - l, 0) * (1.0 - a_), f + j, g + l, f + j + Math.max(e - j, 0) * (1.0 - a_), g + l, p), a.lineTo(g, p), a.lineTo(g, f + e); - var q = e * (1.0 - a_); + a.bezierCurveTo(g + l + Math.max(e - l, 0) * (1.0 - bj), f + j, g + l, f + j + Math.max(e - j, 0) * (1.0 - bj), g + l, p), a.lineTo(g, p), a.lineTo(g, f + e); + var q = e * (1.0 - bj); if (a.bezierCurveTo(g, f + q, g + q, f, g + e, f), a.closePath(), a.clip(), k) { var r = -j / k; a.moveTo(g + h / 2, r * (-h / 2) + f), a.lineTo(g + h, f), a.lineTo(g, f), a.lineTo(g, f + i), a.closePath(), a.clip(); @@ -3897,23 +3941,23 @@ var s = -j / l; a.moveTo(g + h / 2, s * (-h / 2) + f), a.lineTo(g, f), a.lineTo(g + h, f), a.lineTo(g + h, f + i), a.closePath(), a.clip(); } - }, a1 = function(a, b, c, d, e) { - var f = b.top, g = b.left, h = b.width, i = c.borderTopColor, j = c.borderTopWidth, k = c.borderTopStyle, l = c.borderRightWidth, m = c.borderLeftWidth, n = e * (1.0 - a_), o = d * (1.0 - a_); + }, bl = function(a, b, c, d, e) { + var f = b.top, g = b.left, h = b.width, i = c.borderTopColor, j = c.borderTopWidth, k = c.borderTopStyle, l = c.borderRightWidth, m = c.borderLeftWidth, n = e * (1.0 - bj), o = d * (1.0 - bj); a.moveTo(g, f + Math.max(e, j)), a.bezierCurveTo(g, f + n, g + n, f, g + e, f), a.lineTo(g + h - d, f), a.bezierCurveTo(g + h - o, f, g + h, f + o, g + h, f + d), a.strokeColor(i), a.lineWidth(2 * Math.max(l, j, m)), "dashed" === k ? a.dash(2 * j, { space: 1.2 * j }) : "dotted" === k && a.dash(j, { space: 1.2 * j }), a.stroke(), a.undash(); - }, a2 = function(a, b, c, d, e) { + }, bm = function(a, b, c, d, e) { var f = b.top, g = b.left, h = b.width, i = b.height, j = c.borderTopWidth, k = c.borderRightWidth, l = c.borderBottomWidth; a.moveTo(g + h, f + d), a.lineTo(g + h, f + i - e); - var m = e * (1.0 - a_); + var m = e * (1.0 - bj); a.bezierCurveTo(g + h, f + i - m, g + h - m, f + i, g + h - e, f + i); var n = g + h - Math.max(k, e); - a.lineTo(n, f + i), a.lineTo(n, f + i - l), a.bezierCurveTo(g + h - k - Math.max(e - k, 0) * (1.0 - a_), f + i - l, g + h - k, f + i - l - Math.max(e - l, 0) * (1.0 - a_), g + h - k, f + i - Math.max(e, l)), a.lineTo(g + h - k, f + Math.max(d, j)); + a.lineTo(n, f + i), a.lineTo(n, f + i - l), a.bezierCurveTo(g + h - k - Math.max(e - k, 0) * (1.0 - bj), f + i - l, g + h - k, f + i - l - Math.max(e - l, 0) * (1.0 - bj), g + h - k, f + i - Math.max(e, l)), a.lineTo(g + h - k, f + Math.max(d, j)); var o = g + h - Math.max(d, k); - a.bezierCurveTo(g + h - k, f + j + Math.max(d - j, 0) * (1.0 - a_), g + h - k - Math.max(d - k, 0) * (1.0 - a_), f + j, o, f + j), a.lineTo(o, f), a.lineTo(g + h - d, f); - var p = d * (1.0 - a_); + a.bezierCurveTo(g + h - k, f + j + Math.max(d - j, 0) * (1.0 - bj), g + h - k - Math.max(d - k, 0) * (1.0 - bj), f + j, o, f + j), a.lineTo(o, f), a.lineTo(g + h - d, f); + var p = d * (1.0 - bj); if (a.bezierCurveTo(g + h - p, f, g + h, f + p, g + h, f + d), a.closePath(), a.clip(), j) { var q = -j / k; a.moveTo(g + h / 2, q * (-h / 2) + f), a.lineTo(g + h, f), a.lineTo(g + h, f + i), a.lineTo(g, f + i), a.closePath(), a.clip(); @@ -3922,25 +3966,25 @@ var r = l / k; a.moveTo(g + h / 2, r * (-h / 2) + f + i), a.lineTo(g + h, f + i), a.lineTo(g + h, f), a.lineTo(g, f), a.closePath(), a.clip(); } - }, a3 = function(a, b, c, d, e) { - var f = b.top, g = b.left, h = b.width, i = b.height, j = c.borderRightColor, k = c.borderRightStyle, l = c.borderRightWidth, m = c.borderTopWidth, n = c.borderBottomWidth, o = e * (1.0 - a_), p = d * (1.0 - a_); + }, bn = function(a, b, c, d, e) { + var f = b.top, g = b.left, h = b.width, i = b.height, j = c.borderRightColor, k = c.borderRightStyle, l = c.borderRightWidth, m = c.borderTopWidth, n = c.borderBottomWidth, o = e * (1.0 - bj), p = d * (1.0 - bj); a.moveTo(g + h - d, f), a.bezierCurveTo(g + h - p, f, g + h, f + p, g + h, f + d), a.lineTo(g + h, f + i - e), a.bezierCurveTo(g + h, f + i - o, g + h - o, f + i, g + h - e, f + i), a.strokeColor(j), a.lineWidth(2 * Math.max(l, m, n)), "dashed" === k ? a.dash(2 * l, { space: 1.2 * l }) : "dotted" === k && a.dash(l, { space: 1.2 * l }), a.stroke(), a.undash(); - }, a4 = function(a, b, c, d, e) { + }, bo = function(a, b, c, d, e) { var f = b.top, g = b.left, h = b.width, i = b.height, j = c.borderBottomWidth, k = c.borderRightWidth, l = c.borderLeftWidth; a.moveTo(g + h - e, f + i), a.lineTo(g + d, f + i); - var m = d * (1.0 - a_); + var m = d * (1.0 - bj); a.bezierCurveTo(g + m, f + i, g, f + i - m, g, f + i - d); var n = f + i - Math.max(j, d); a.lineTo(g, n), a.lineTo(g + l, n); var o = Math.max(d - l, 0); - a.bezierCurveTo(g + l, f + i - j - Math.max(d - j, 0) * (1.0 - a_), g + l + o * (1.0 - a_), f + i - j, g + l + o, f + i - j), a.lineTo(g + h - Math.max(e, k), f + i - j); + a.bezierCurveTo(g + l, f + i - j - Math.max(d - j, 0) * (1.0 - bj), g + l + o * (1.0 - bj), f + i - j, g + l + o, f + i - j), a.lineTo(g + h - Math.max(e, k), f + i - j); var p = f + i - Math.max(j, e); - a.bezierCurveTo(g + h - k - Math.max(e - k, 0) * (1.0 - a_), f + i - j, g + h - k, f + i - j - Math.max(e - j, 0) * (1.0 - a_), g + h - k, p), a.lineTo(g + h, p), a.lineTo(g + h, f + i - e); - var q = e * (1.0 - a_); + a.bezierCurveTo(g + h - k - Math.max(e - k, 0) * (1.0 - bj), f + i - j, g + h - k, f + i - j - Math.max(e - j, 0) * (1.0 - bj), g + h - k, p), a.lineTo(g + h, p), a.lineTo(g + h, f + i - e); + var q = e * (1.0 - bj); if (a.bezierCurveTo(g + h, f + i - q, g + h - q, f + i, g + h - e, f + i), a.closePath(), a.clip(), k) { var r = j / k; a.moveTo(g + h / 2, r * (-h / 2) + f + i), a.lineTo(g + h, f + i), a.lineTo(g, f + i), a.lineTo(g, f), a.closePath(), a.clip(); @@ -3949,23 +3993,23 @@ var s = -j / l; a.moveTo(g + h / 2, s * (h / 2) + f + i), a.lineTo(g, f + i), a.lineTo(g + h, f + i), a.lineTo(g + h, f), a.closePath(), a.clip(); } - }, a5 = function(a, b, c, d, e) { - var f = b.top, g = b.left, h = b.width, i = b.height, j = c.borderBottomColor, k = c.borderBottomStyle, l = c.borderBottomWidth, m = c.borderRightWidth, n = c.borderLeftWidth, o = d * (1.0 - a_), p = e * (1.0 - a_); + }, bp = function(a, b, c, d, e) { + var f = b.top, g = b.left, h = b.width, i = b.height, j = c.borderBottomColor, k = c.borderBottomStyle, l = c.borderBottomWidth, m = c.borderRightWidth, n = c.borderLeftWidth, o = d * (1.0 - bj), p = e * (1.0 - bj); a.moveTo(g + h, f + i - e), a.bezierCurveTo(g + h, f + i - p, g + h - p, f + i, g + h - e, f + i), a.lineTo(g + d, f + i), a.bezierCurveTo(g + o, f + i, g, f + i - o, g, f + i - d), a.strokeColor(j), a.lineWidth(2 * Math.max(l, m, n)), "dashed" === k ? a.dash(2 * l, { space: 1.2 * l }) : "dotted" === k && a.dash(l, { space: 1.2 * l }), a.stroke(), a.undash(); - }, a6 = function(a, b, c, d, e) { + }, bq = function(a, b, c, d, e) { var f = b.top, g = b.left, h = b.width, i = b.height, j = c.borderTopWidth, k = c.borderLeftWidth, l = c.borderBottomWidth; a.moveTo(g, f + i - d), a.lineTo(g, f + e); - var m = e * (1.0 - a_); + var m = e * (1.0 - bj); a.bezierCurveTo(g, f + m, g + m, f, g + e, f); var n = g + Math.max(k, e); - a.lineTo(n, f), a.lineTo(n, f + j), a.bezierCurveTo(g + k + Math.max(e - k, 0) * (1.0 - a_), f + j, g + k, f + j + Math.max(e - j, 0) * (1.0 - a_), g + k, f + Math.max(e, j)), a.lineTo(g + k, f + i - Math.max(d, l)); + a.lineTo(n, f), a.lineTo(n, f + j), a.bezierCurveTo(g + k + Math.max(e - k, 0) * (1.0 - bj), f + j, g + k, f + j + Math.max(e - j, 0) * (1.0 - bj), g + k, f + Math.max(e, j)), a.lineTo(g + k, f + i - Math.max(d, l)); var o = g + Math.max(d, k); - a.bezierCurveTo(g + k, f + i - l - Math.max(d - l, 0) * (1.0 - a_), g + k + Math.max(d - k, 0) * (1.0 - a_), f + i - l, o, f + i - l), a.lineTo(o, f + i), a.lineTo(g + d, f + i); - var p = d * (1.0 - a_); + a.bezierCurveTo(g + k, f + i - l - Math.max(d - l, 0) * (1.0 - bj), g + k + Math.max(d - k, 0) * (1.0 - bj), f + i - l, o, f + i - l), a.lineTo(o, f + i), a.lineTo(g + d, f + i); + var p = d * (1.0 - bj); if (a.bezierCurveTo(g + p, f + i, g, f + i - p, g, f + i - d), a.closePath(), a.clip(), l) { var q = -l / k; a.moveTo(g + h / 2, q * (h / 2) + f + i), a.lineTo(g, f + i), a.lineTo(g, f), a.lineTo(g + h, f), a.closePath(), a.clip(); @@ -3974,14 +4018,14 @@ var r = -j / k; a.moveTo(g + h / 2, r * (-h / 2) + f), a.lineTo(g, f), a.lineTo(g, f + i), a.lineTo(g + h, f + i), a.closePath(), a.clip(); } - }, a7 = function(a, b, c, d, e) { - var f = b.top, g = b.left, h = b.height, i = c.borderLeftColor, j = c.borderLeftStyle, k = c.borderLeftWidth, l = c.borderTopWidth, m = c.borderBottomWidth, n = d * (1.0 - a_), o = e * (1.0 - a_); + }, br = function(a, b, c, d, e) { + var f = b.top, g = b.left, h = b.height, i = c.borderLeftColor, j = c.borderLeftStyle, k = c.borderLeftWidth, l = c.borderTopWidth, m = c.borderBottomWidth, n = d * (1.0 - bj), o = e * (1.0 - bj); a.moveTo(g + d, f + h), a.bezierCurveTo(g + n, f + h, g, f + h - n, g, f + h - d), a.lineTo(g, f + e), a.bezierCurveTo(g, f + o, g + o, f, g + e, f), a.strokeColor(i), a.lineWidth(2 * Math.max(k, l, m)), "dashed" === j ? a.dash(2 * k, { space: 1.2 * k }) : "dotted" === j && a.dash(k, { space: 1.2 * k }), a.stroke(), a.undash(); - }, a8 = function(a, b) { + }, bs = function(a, b) { var c; if ((c = b).box && (c.box.borderTopWidth || c.box.borderRightWidth || c.box.borderBottomWidth || c.box.borderLeftWidth)) { var d = b.box, e = d.width, f = d.height, g = d.borderTopWidth, h = d.borderLeftWidth, i = d.borderRightWidth, j = d.borderBottomWidth, k = b.style, l = k.opacity, m = k.borderTopLeftRadius, n = void 0 === m ? 0 : m, o = k.borderTopRightRadius, p = void 0 === o ? 0 : o, q = k.borderBottomLeftRadius, r = void 0 === q ? 0 : q, s = k.borderBottomRightRadius, t = void 0 === s ? 0 : s, u = k.borderTopColor, v = void 0 === u ? "black" : u, w = k.borderTopStyle, x = void 0 === w ? "solid" : w, y = k.borderLeftColor, z = void 0 === y ? "black" : y, A = k.borderLeftStyle, B = void 0 === A ? "solid" : A, C = k.borderRightColor, D = void 0 === C ? "black" : C, E = k.borderRightStyle, F = void 0 === E ? "solid" : E, G = k.borderBottomColor, H = void 0 === G ? "black" : G, I = k.borderBottomStyle, J = void 0 === I ? "solid" : I, K = { @@ -4002,58 +4046,40 @@ borderBottomLeftRadius: r, borderBottomRightRadius: t }, L = Math.min(p, 0.5 * e, 0.5 * f), M = Math.min(n, 0.5 * e, 0.5 * f), N = Math.min(t, 0.5 * e, 0.5 * f), O = Math.min(r, 0.5 * e, 0.5 * f); - a.save(), a.strokeOpacity(l), g && (a.save(), a0(a, b.box, K, L, M), a1(a, b.box, K, L, M), a.restore()), i && (a.save(), a2(a, b.box, K, L, N), a3(a, b.box, K, L, N), a.restore()), j && (a.save(), a4(a, b.box, K, O, N), a5(a, b.box, K, O, N), a.restore()), h && (a.save(), a6(a, b.box, K, O, M), a7(a, b.box, K, O, M), a.restore()), a.restore(); + a.save(), a.strokeOpacity(l), g && (a.save(), bk(a, b.box, K, L, M), bl(a, b.box, K, L, M), a.restore()), i && (a.save(), bm(a, b.box, K, L, N), bn(a, b.box, K, L, N), a.restore()), j && (a.save(), bo(a, b.box, K, O, N), bp(a, b.box, K, O, N), a.restore()), h && (a.save(), bq(a, b.box, K, O, M), br(a, b.box, K, O, M), a.restore()), a.restore(); } - }, a9 = function(a, b) { - var c, d = b.box, e = d.top, f = d.left, g = d.width, h = d.height, i = aB(b.style.backgroundColor), j = (0, t.isNil)(null === (c = b.style) || void 0 === c ? void 0 : c.opacity) ? 1 : b.style.opacity, k = Math.min(i.opacity, j); + }, bt = function(a, b) { + var c, d = b.box, e = d.top, f = d.left, g = d.width, h = d.height, i = aR(b.style.backgroundColor), j = (0, t.isNil)(null === (c = b.style) || void 0 === c ? void 0 : c.opacity) ? 1 : b.style.opacity, k = Math.min(i.opacity, j); a.fillOpacity(k).fillColor(i.value).rect(f, e, g, h).fill(); - }, ba = function(a, b) { + }, bu = function(a, b) { var c; - b.box && null !== (c = b.style) && void 0 !== c && c.backgroundColor && (a.save(), Z(a, b), a9(a, b), a.restore()); - }, bb = function(a, b) { - var c; - null !== (c = b.props) && void 0 !== c && c.id && a.addNamedDestination(b.props.id, "XYZ", null, b.box.top, null); - }, bc = function(a, b, c) { - a.save(), b.box && a.translate(b.box.left, b.box.top), (b.children || []).forEach(function(b) { - return be(a, b, c); - }), a.restore(); - }, bd = ((f = {})[i.Text] = function(a, b) { - var c, d, e = b.box, f = e.top, g = e.left, h = [ - b.lines - ], i = (null === (c = b.box) || void 0 === c ? void 0 : c.paddingTop) || 0, j = (null === (d = b.box) || void 0 === d ? void 0 : d.paddingLeft) || 0, k = b.lines[0] ? b.lines[0].box.y : 0, l = b.alignOffset || 0; - a.save(), a.translate(g + j - l, f + i - k), h.forEach(function(b) { - aJ(a, b, {}); - }), a.restore(); - }, f[i.Note] = function(a, b) { - var c, d, e, f = b.box, g = f.top, h = f.left, i = (null == b ? void 0 : null === (c = b.children) || void 0 === c ? void 0 : c[0].value) || "", j = (null === (d = b.style) || void 0 === d ? void 0 : d.backgroundColor) || null, k = (null === (e = b.style) || void 0 === e ? void 0 : e.borderWidth) || null; - a.note(h, g, 0, 0, i, { - color: j, - borderWidth: k - }); - }, f[i.Image] = function(a, b, c) { - a.save(), Z(a, b), aR(a, b, c), a.restore(); - }, f[i.Canvas] = function(a, b) { - var c = b.box, d = c.top, e = c.left, f = c.width, g = c.height, h = b.box.paddingTop || 0, i = b.box.paddingLeft || 0, j = b.box.paddingRight || 0, k = b.box.paddingBottom || 0, l = f - i - j, m = g - h - k; - l && m || console.warn("Canvas element has null width or height. Please provide valid values via the `style` prop in order to correctly render it."), a.save().translate(e + i, d + h), b.props.paint && b.props.paint(a$(a), l, m), a.restore(); - }, f[i.Svg] = function(a, b) { - a.save(), Z(a, b), aA(a, b), az(a, b), ay(a, b), a.restore(); - }, f[i.Link] = function(a, b) { + b.box && null !== (c = b.style) && void 0 !== c && c.backgroundColor && (a.save(), ah(a, b), bt(a, b), a.restore()); + }, bv = function(a, b) { var c = b.props || {}, d = b.box, e = d.top, f = d.left, g = d.width, h = d.height, i = c.src || c.href; if (i) { var j, k = (j = i, /^#.+/.test(j)), l = k ? "goTo" : "link", m = k ? i.slice(1) : i; a[l](f, e, g, h, m); } - }, f), be = function(a, b, c) { + }, bw = function(a, b) { + var c; + null !== (c = b.props) && void 0 !== c && c.id && a.addNamedDestination(b.props.id, "XYZ", null, b.box.top, null); + }, bx = function(a, b, c) { + a.save(), b.box && a.translate(b.box.left, b.box.top); + var d = b.children || [], e = function(b) { + return bz(a, b, c); + }; + d.forEach(e), a.restore(); + }, by = ((f = {})[i.Text] = a$, f[i.Note] = a0, f[i.Image] = a8, f[i.Canvas] = bi, f[i.Svg] = aQ, f[i.Link] = bv, f), bz = function(a, b, c) { var d, e, f = (null === (d = b.style) || void 0 === d ? void 0 : d.overflow) === "hidden", g = (e = b).type !== i.Text && e.type !== i.Svg; - b.type === i.Page && aK(a, b), a.save(), f && Z(a, b), _(a, b), ba(a, b), a8(a, b); - var h = bd[b.type]; - h && h(a, b, c), g && bc(a, b, c), bb(a, b), aY(a, b), a.restore(); - }, bf = function(a, b) { + b.type === i.Page && a_(a, b), a.save(), f && ah(a, b), aj(a, b), bu(a, b), bs(a, b); + var h = by[b.type]; + h && h(a, b, c), g && bx(a, b, c), bw(a, b), bf(a, b), a.restore(); + }, bA = function(a, b) { var c, d = (c = a, function(a, b) { b && (c.info[a] = b); }), e = b.props || {}, f = e.title || null, g = e.author || null, h = e.subject || null, i = e.keywords || null, j = e.creator || "react-pdf", k = e.producer || "react-pdf"; d("Title", f), d("Author", g), d("Subject", h), d("Keywords", i), d("Creator", j), d("Producer", k); - }, bg = function a(b, c, d, e) { + }, bB = function a(b, c, d, e) { var f, g = null === (f = c.props) || void 0 === f ? void 0 : f.bookmark; if (g) { var h = g.title, i = g.parent, j = g.expanded, k = g.zoom, l = g.fit, m = e[i] || b.outline, n = g.top || c.box.top, o = g.left || c.box.left, p = m.addItem(h, { @@ -4069,26 +4095,26 @@ c.children && c.children.forEach(function(c) { return a(b, c, d, e); }); - }, bh = function(a, b) { + }, bC = function(a, b) { var c = {}; (b.children || []).forEach(function(b, d) { - bg(a, b, d, c); + bB(a, b, d, c); }); - }, bi = function(a, b) { + }, bD = function(a, b) { var c = b.children || [], d = { imageCache: new Map() }; - return bf(a, b), c.forEach(function(b) { - return be(a, b, d); - }), bh(a, b), a.end(), a; - }, bj = c(6054), bk = c(791); - function bl(a, b) { + return bA(a, b), c.forEach(function(b) { + return bz(a, b, d); + }), bC(a, b), a.end(), a; + }, bE = c(6054), bF = c(791); + function bG(a, b) { if (null == a) return {}; var c, d, e = {}, f = Object.keys(a); for(d = 0; d < f.length; d++)c = f[d], b.indexOf(c) >= 0 || (e[c] = a[c]); return e; } - var bm = c(8448), bn = c.n(bm), bo = c(6821), bp = function a(b, c) { + var bH = c(8448), bI = c.n(bH), bJ = c(6821), bK = function a(b, c) { var d = Object.keys(b), e = Object.keys(c); if (d.length !== e.length) return !1; for(var f = 0; f < d.length; f += 1){ @@ -4101,16 +4127,16 @@ if ("children" === g && ("string" == typeof b[g] || "string" == typeof c[g])) return b[g] === c[g]; } return !0; - }, bq = [ + }, bL = [ "style", "children" - ], br = [ + ], bM = [ "style" - ], bs = {}, bt = function(a) { + ], bN = {}, bO = function(a) { var b = a.onChange; - return bn()({ - schedulePassiveEffects: bo.unstable_scheduleCallback, - cancelPassiveEffects: bo.unstable_cancelCallback, + return bI()({ + schedulePassiveEffects: bJ.unstable_scheduleCallback, + cancelPassiveEffects: bJ.unstable_cancelCallback, supportsMutation: !0, isPrimaryRenderer: !1, warnsIfNotActing: !1, @@ -4120,7 +4146,7 @@ createInstance: function(a, b) { var c = b.style; b.children; - var d = bl(b, bq); + var d = bG(b, bL); return { type: a, box: {}, @@ -4144,15 +4170,15 @@ prepareForCommit: function() {}, clearContainer: function() {}, prepareUpdate: function(a, b, c, d) { - return !bp(c, d); + return !bK(c, d); }, resetAfterCommit: void 0 === b ? function() {} : b, resetTextContent: function(a) {}, getRootHostContext: function() { - return bs; + return bN; }, getChildHostContext: function() { - return bs; + return bN; }, shouldSetTextContent: function(a, b) { return !1; @@ -4181,36 +4207,36 @@ a.value = c; }, commitUpdate: function(a, b, c, d, e) { - var f = e.style, g = bl(e, br); + var f = e.style, g = bG(e, bM); a.props = g, a.style = f; } }); - }, bu = new s.Z(), bv = {}, bw = function(a) { - var b, c = { + }, bP = new s.Z(), bQ = {}, bR = function(a) { + var b, c = function() { + for(var a, b = (null === (a = bQ.change) || void 0 === a ? void 0 : a.slice()) || [], c = 0; c < b.length; c += 1)b[c](); + }, d = { type: "ROOT", document: null - }, d = (g = g || bt({ - onChange: function() { - for(var a, b = (null === (a = bv.change) || void 0 === a ? void 0 : a.slice()) || [], c = 0; c < b.length; c += 1)b[c](); - } - })).createContainer(c), e = function(a) { - g.updateContainer(a, d, null); + }, e = (g = g || bO({ + onChange: c + })).createContainer(d), f = function(a) { + g.updateContainer(a, e, null); }; - a && e(a); - var f, h, i, j = (b = n(p().mark(function a(b) { - var d, e, f, g, h; + a && f(a); + var h, i, j, k = (b = n(p().mark(function a(b) { + var c, e, f, g, h; return p().wrap(function(a) { for(;;)switch(a.prev = a.next){ case 0: - return void 0 === b && (b = !0), e = (d = c.document.props || {}).pdfVersion, f = d.language, g = new bj.default({ + return void 0 === b && (b = !0), e = (c = d.document.props || {}).pdfVersion, f = c.language, g = new bE.default({ compress: b, pdfVersion: e, lang: f, displayTitle: !0, autoFirstPage: !1 - }), a.next = 6, (0, bk.Z)(c.document, bu); + }), a.next = 6, (0, bF.Z)(d.document, bP); case 6: - return h = a.sent, a.abrupt("return", bi(g, h)); + return h = a.sent, a.abrupt("return", bD(g, h)); case 8: case "end": return a.stop(); @@ -4218,20 +4244,20 @@ }, a); })), function(a) { return b.apply(this, arguments); - }), k = function(a) { - void 0 === a && (a = {}), c.document.props.onRender && c.document.props.onRender(a); - }, l = (f = n(p().mark(function a() { + }), l = function(a) { + void 0 === a && (a = {}), d.document.props.onRender && d.document.props.onRender(a); + }, m = (h = n(p().mark(function a() { var b, c; return p().wrap(function(a) { for(;;)switch(a.prev = a.next){ case 0: - return a.next = 2, j(); + return a.next = 2, k(); case 2: return c = (b = a.sent).pipe(r()()), a.abrupt("return", new Promise(function(a, b) { c.on("finish", function() { try { var d = c.toBlob("application/pdf"); - k({ + l({ blob: d }), a(d); } catch (e) { @@ -4245,32 +4271,32 @@ } }, a); })), function() { - return f.apply(this, arguments); - }), m = (h = n(p().mark(function a() { + return h.apply(this, arguments); + }), o = (i = n(p().mark(function a() { return p().wrap(function(a) { for(;;)switch(a.prev = a.next){ case 0: - return k(), a.abrupt("return", j()); + return l(), a.abrupt("return", k()); case 2: case "end": return a.stop(); } }, a); })), function() { - return h.apply(this, arguments); - }), o = (i = n(p().mark(function a() { + return i.apply(this, arguments); + }), q = (j = n(p().mark(function a() { var b, c; return p().wrap(function(a) { for(;;)switch(a.prev = a.next){ case 0: - return b = "", a.next = 3, j(!1); + return b = "", a.next = 3, k(!1); case 3: return c = a.sent, a.abrupt("return", new Promise(function(a, d) { try { c.on("data", function(a) { b += a; }), c.on("end", function() { - k(), a(b); + l(), a(b); }); } catch (e) { d(e); @@ -4282,32 +4308,32 @@ } }, a); })), function() { - return i.apply(this, arguments); - }); - return { - on: function(a, b) { - bv[a] || (bv[a] = []), bv[a].push(b); - }, - container: c, - toBlob: l, - toBuffer: m, - toString: o, - removeListener: function(a, b) { - if (bv[a]) { - var c = bv[a].indexOf(b); - c > -1 && bv[a].splice(c, 1); - } - }, - updateContainer: e + return j.apply(this, arguments); + }), s = function(a, b) { + bQ[a] || (bQ[a] = []), bQ[a].push(b); + }, t = function(a, b) { + if (bQ[a]) { + var c = bQ[a].indexOf(b); + c > -1 && bQ[a].splice(c, 1); + } }; - }, bx = function(a) { + return { + on: s, + container: d, + toBlob: m, + toBuffer: o, + toString: q, + removeListener: t, + updateContainer: f + }; + }, bS = function(a) { var b = a.document, c = (0, l.useRef)(null), d = (0, l.useState)({ url: null, blob: null, error: null, loading: !1 }), e = d[0], f = d[1]; - return (0, l.useEffect)(function() { + (0, l.useEffect)(function() { var a = k()({ autostart: !0, concurrency: 1 @@ -4319,21 +4345,21 @@ }), a.splice(0, a.length, function() { return e.error ? Promise.resolve() : c.current.toBlob(); }); - }; - return c.current = bw(), c.current.on("change", d), c.current.updateContainer(b), a.on("error", function(a) { + }, g = function(a) { console.error(a), f(function(b) { return (0, h.Z)({}, b, { error: a }); }); - }), a.on("success", function(a) { + }, i = function(a) { f({ blob: a, error: null, loading: !1, url: URL.createObjectURL(a) }); - }), function() { + }; + return c.current = bR(), c.current.on("change", d), c.current.updateContainer(b), a.on("error", g), a.on("success", i), function() { a.end(), c.current.removeListener("change", d); }; }, []), (0, l.useEffect)(function() { @@ -4342,84 +4368,88 @@ }; }, [ e.url - ]), [ + ]); + var g = function() { + c.current.updateContainer(b); + }; + return [ e, - function() { - c.current.updateContainer(b); - } + g ]; - }, by = [ + }, bT = [ "title", "style", "className", "children", "innerRef", "showToolbar", - ], bz = function(a) { + ], bU = function(a) { + var b = a.title, c = a.style, d = a.className, e = a.children, f = a.innerRef, g = a.showToolbar, i = bG(a, bT), j = bS({ + document: e + }), k = j[0], m = j[1]; + (0, l.useEffect)(m, [ + e + ]); + var n = k.url ? k.url + "#toolbar=" + (void 0 === g || g ? 1 : 0) : null; + return l.createElement("iframe", (0, h.Z)({ + src: n, + title: b, + ref: f, + style: c, + className: d + }, i)); + }, bV = function(a) { + var b = a.document, c = a.children, d = bS({ + document: b + }), e = d[0], f = d[1]; + return ((0, l.useEffect)(f, [ + b + ]), b) ? c(e) : (console.warn("You should pass a valid document to BlobProvider"), null); + }, bW = function(a) { + var b = a.style, c = a.children, d = a.className, e = a.document, f = a.fileName, g = void 0 === f ? "document.pdf" : f, h = bS({ + document: e + }), i = h[0], j = h[1]; + if ((0, l.useEffect)(j, [ + c + ]), !e) return console.warn("You should pass a valid document to PDFDownloadLink"), null; + var k = function() { + window.navigator.msSaveBlob && window.navigator.msSaveBlob(i.blob, g); + }; + return l.createElement("a", { + style: b, + href: i.url, + download: g, + className: d, + onClick: k + }, "function" == typeof c ? c(i) : c); + }, bX = function(a) { throw Error(a + " is a Node specific API. You're either using this method in a browser, or your bundler is not loading react-pdf from the appropriate web build."); + }, bY = function() { + bX("renderToStream"); + }, bZ = function() { + bX("renderToString"); + }, b$ = function() { + bX("renderToFile"); + }, b_ = function() { + bX("render"); }; (0, h.Z)({ - pdf: bw, - usePDF: bx, - Font: bu, + pdf: bR, + usePDF: bS, + Font: bP, version: "2.1.2", StyleSheet: { create: function(a) { return a; } }, - PDFViewer: function(a) { - var b = a.title, c = a.style, d = a.className, e = a.children, f = a.innerRef, g = a.showToolbar, i = bl(a, by), j = bx({ - document: e - }), k = j[0], m = j[1]; - (0, l.useEffect)(m, [ - e - ]); - var n = k.url ? k.url + "#toolbar=" + (void 0 === g || g ? 1 : 0) : null; - return l.createElement("iframe", (0, h.Z)({ - src: n, - title: b, - ref: f, - style: c, - className: d - }, i)); - }, - BlobProvider: function(a) { - var b = a.document, c = a.children, d = bx({ - document: b - }), e = d[0], f = d[1]; - return ((0, l.useEffect)(f, [ - b - ]), b) ? c(e) : (console.warn("You should pass a valid document to BlobProvider"), null); - }, - PDFDownloadLink: function(a) { - var b = a.style, c = a.children, d = a.className, e = a.document, f = a.fileName, g = void 0 === f ? "document.pdf" : f, h = bx({ - document: e - }), i = h[0], j = h[1]; - return ((0, l.useEffect)(j, [ - c - ]), e) ? l.createElement("a", { - style: b, - href: i.url, - download: g, - className: d, - onClick: function() { - window.navigator.msSaveBlob && window.navigator.msSaveBlob(i.blob, g); - } - }, "function" == typeof c ? c(i) : c) : (console.warn("You should pass a valid document to PDFDownloadLink"), null); - }, - renderToStream: function() { - bz("renderToStream"); - }, - renderToString: function() { - bz("renderToString"); - }, - renderToFile: function() { - bz("renderToFile"); - }, - render: function() { - bz("render"); - } + PDFViewer: bU, + BlobProvider: bV, + PDFDownloadLink: bW, + renderToStream: bY, + renderToString: bZ, + renderToFile: b$, + render: b_ }, i); }, 6665: function(a, b) { @@ -4655,8 +4685,7 @@ 1713: function(a, b) { "use strict"; b.__esModule = !0, b.default = void 0; - var c = /(-?\d+(\.\d+)?(px|in|mm|cm|pt|vw|vh|px)?)\s(\S+)\s(.+)/; - b.default = function(a, b) { + var c = /(-?\d+(\.\d+)?(px|in|mm|cm|pt|vw|vh|px)?)\s(\S+)\s(.+)/, d = function(a, b) { var d = ("" + b).match(c) || []; if (d) { var e, f = d[5] || b, g = d[4] || b, h = d[1] || b; @@ -4697,6 +4726,7 @@ } return b; }; + b.default = d; }, 7753: function(a, b, c) { "use strict"; @@ -4704,8 +4734,7 @@ b.__esModule = !0, b.default = void 0; var e = d(c(788)), f = d(c(3433)), g = function(a, b) { console.error("\n @react-pdf/stylesheet parsing error:\n\n " + a + ": " + b + ",\n " + " ".repeat(a.length + 2) + "^\n Unsupported " + a + " value format\n "); - }; - b.default = function(a) { + }, h = function(a) { var b = void 0 === a ? {} : a, c = b.expandsTo, d = b.maxValues, h = void 0 === d ? 1 : d, i = b.autoSupported, j = void 0 !== i && i; return function(a, b) { for(var d, i = (0, e.default)("" + b), k = [], l = 0; l < i.length; l++){ @@ -4734,6 +4763,7 @@ return (d = {})[a] = o, d; }; }; + b.default = h; }, 4214: function(a, b) { "use strict"; @@ -4742,8 +4772,7 @@ 1, 1, 0 - ]; - b.default = function(a, b) { + ], d = function(a, b) { var d = ("" + b).split(" "), e = d[0] || c[0], f = d[1] || c[1], g = d[2] || c[2]; return { flexGrow: e, @@ -4751,6 +4780,7 @@ flexBasis: g }; }; + b.default = d; }, 9214: function(a, b, c) { "use strict"; @@ -4786,8 +4816,7 @@ }, l = function(a, b) { var c; return k[a] ? k[a](a, b) : ((c = {})[a] = b, c); - }; - b.default = function(a) { + }, m = function(a) { if (!a) return a; for(var b = Object.keys(a), c = {}, d = 0; d < b.length; d += 1)for(var e = b[d], f = a[e], g = l(e, f), h = Object.keys(g), i = 0; i < h.length; i += 1){ var j = h[i], k = g[j]; @@ -4795,6 +4824,7 @@ } return c; }; + b.default = m; }, 9373: function(a, b, c) { "use strict"; @@ -4845,13 +4875,15 @@ }, 2594: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a, b) { + b.__esModule = !0, b.default = void 0; + var c = function(a, b) { var c = ("" + b).split(" "); return { objectPositionX: (null == c ? void 0 : c[0]) || b, objectPositionY: (null == c ? void 0 : c[1]) || b }; }; + b.default = c; }, 5571: function(a, b, c) { "use strict"; @@ -4903,8 +4935,7 @@ bottom: !0 }, d = function(a, b) { return c[a] ? 1 : c[b] ? -1 : 0; - }; - b.default = function(a, b) { + }, e = function(a, b) { var c, e = (c = ("" + b).split(" ")) && 0 !== c.length ? (1 === c.length ? [ c[0], "center" @@ -4917,21 +4948,22 @@ transformOriginY: e[1] }; }; + b.default = e; }, 4340: function(a, b, c) { "use strict"; b.__esModule = !0, b.default = void 0; - var d = c(4354), e = (0, d.compose)(function(a) { + var d = c(4354), e = function(a) { + return a.filter(Boolean); + }, f = function(a) { return a.reduce(function(a, b) { - var c = Array.isArray(b) ? e(b) : b; + var c = Array.isArray(b) ? g(b) : b; return Object.keys(c).forEach(function(b) { null !== c[b] && void 0 !== c[b] && (a[b] = c[b]); }), a; }, {}); - }, function(a) { - return a.filter(Boolean); - }, d.castArray); - b.default = e; + }, g = (0, d.compose)(f, e, d.castArray); + b.default = g; }, 6335: function(a, b, c) { "use strict"; @@ -4940,23 +4972,26 @@ var e = c(4354), f = d(c(9214)), g = d(c(4340)), h = d(c(4806)), i = d(c(4016)), j = d(c(3566)); b.transformColor = j.default; var k = d(c(6284)); - b.processTransform = k.default, b.default = function(a, b) { - return (0, e.compose)((0, h.default)(a), f.default, function(b) { + b.processTransform = k.default; + var l = function(a, b) { + var c = function(b) { return (0, i.default)(a, b); - }, g.default)(b); + }; + return (0, e.compose)((0, h.default)(a), f.default, c, g.default)(b); }; + b.default = l; }, 4016: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(7154)), f = d(c(1028)); - b.default = function(a, b) { + var e = d(c(7154)), f = d(c(1028)), g = function(a, b) { return Object.keys(b).reduce(function(c, d) { var g, h; return /@media/.test(d) ? (0, e.default)({}, c, (0, f.default)(((h = {})[d] = b[d], h), a)) : (0, e.default)({}, c, ((g = {})[d] = b[d], g)); }, {}); }; + b.default = g; }, 3566: function(a, b, c) { "use strict"; @@ -4968,11 +5003,11 @@ }, h = function(a) { var b = f.default.get.hsl(a).map(Math.round); return e.default.apply(void 0, b).toUpperCase(); - }; - b.default = function(a) { + }, i = function(a) { var b, c; return (b = a, /rgba?/g.test(b)) ? g(a) : (c = a, /hsla?/g.test(c)) ? h(a) : a; }; + b.default = i; }, 2580: function(a, b) { "use strict"; @@ -4992,13 +5027,13 @@ extrabold: 800, heavy: 900, black: 900 - }; - b.default = function(a) { + }, d = function(a) { if (!a) return c.normal; if ("number" == typeof a) return a; var b = a.toLowerCase(); return c[b] ? c[b] : a; }; + b.default = d; }, 4806: function(a, b, c) { "use strict"; @@ -5014,8 +5049,7 @@ }, m = function(a, b, c) { var d = l[a] ? l[a](b) : b; return (0, f.default)((0, e.default)(c, (0, k.default)(d))); - }; - b.default = function(a) { + }, n = function(a) { return function(b) { if (!b) return b; for(var c = Object.keys(b), d = {}, e = 0; e < c.length; e += 1){ @@ -5025,15 +5059,16 @@ return d; }; }; + b.default = n; }, 4446: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(3230)), f = d(c(3668)); - b.default = function(a) { + var e = d(c(3230)), f = d(c(3668)), g = function(a) { return (0, f.default)(a) || (0, e.default)(a); }; + b.default = g; }, 6284: function(a, b) { "use strict"; @@ -5128,21 +5163,21 @@ }) }; } - }; - b.default = function(a) { + }, e = function(a) { return "string" != typeof a ? a : c(a).map(function(a) { return d(a); }); }; + b.default = e; }, 2210: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(3230)), f = d(c(3668)); - b.default = function(a) { + var e = d(c(3230)), f = d(c(3668)), g = function(a) { return (0, f.default)(a) || (0, e.default)(a); }; + b.default = g; }, 7098: function(a, b) { "use strict"; @@ -5156,8 +5191,7 @@ value: a, unit: void 0 }; - }; - b.default = function(a, b) { + }, d = function(a, b) { var d = c(b), e = a.dpi || 72; switch(d.unit){ case "in": @@ -5174,17 +5208,21 @@ return d.value; } }; + b.default = d; }, 3230: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { var b; return "string" != typeof a ? a : "string" == typeof (b = a) && /^-?\d*\.?\d*$/.test(b) ? parseFloat(a, 10) : a; }; + b.default = c; }, 3668: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { switch(a){ case "top": case "left": @@ -5198,87 +5236,93 @@ return null; } }; + b.default = c; }, 7106: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(3689)); - b.default = function(a) { - return a.runs.reduce(function(a, b) { + var e = d(c(3689)), f = function(a) { + var b = function(a, b) { return a + (0, e.default)(b); - }, 0); + }; + return a.runs.reduce(b, 0); }; + b.default = f; }, 5090: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(7621)), f = d(c(3529)); - b.default = function(a, b, c) { + var e = d(c(7621)), f = d(c(3529)), g = function(a, b, c) { return (0, e.default)(a, b, c.runs).reduce(function(c, d) { return c + (0, f.default)(a, b, d); }, 0); }; + b.default = g; }, 9845: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = c(4354), f = d(c(6266)), g = d(c(7763)), h = d(c(511)); - b.default = function(a, b) { + var e = c(4354), f = d(c(6266)), g = d(c(7763)), h = d(c(511)), i = function(a, b) { var c = (null == a ? void 0 : a.codePoints) || [], d = (0, h.default)(c), i = b.string + d, j = b.runs.slice(0, -1), k = (0, e.last)(b.runs) || (0, f.default)(), l = j.concat((0, g.default)(a, k)); return Object.assign({}, b, { string: i, runs: l }); }; + b.default = i; }, 3226: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(1162)); - b.default = function(a) { - return a.runs.reduce(function(a, b) { + var e = d(c(1162)), f = function(a) { + var b = function(a, b) { return Math.max(a, (0, e.default)(b)); - }, 0); + }; + return a.runs.reduce(b, 0); }; + b.default = f; }, 8208: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = c(4354), f = d(c(8848)); - b.default = function(a) { + var e = c(4354), f = d(c(8848)), g = function(a) { var b = (0, e.dropLast)(a.string), c = (0, e.adjust)(-1, f.default, a.runs); return Object.assign({}, a, { string: b, runs: c }); }; + b.default = g; }, 5579: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function() { + b.__esModule = !0, b.default = void 0; + var c = function() { return { string: "", runs: [] }; }; + b.default = c; }, 7590: function(a, b, c) { "use strict"; b.__esModule = !0, b.default = void 0; - var d = c(4354); - b.default = function(a) { + var d = c(4354), e = function(a) { var b = a.runs; return 0 === b.length ? 0 : (0, d.last)(b).end; }; + b.default = e; }, 2779: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { var b = 0, c = "", d = []; return a.forEach(function(a) { c += a.string, d.push({ @@ -5291,24 +5335,25 @@ runs: d }; }; + b.default = c; }, 9528: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(7369)); - b.default = function(a) { - return a.runs.reduce(function(a, b) { + var e = d(c(7369)), f = function(a) { + var b = function(a, b) { return Math.max(a, (0, e.default)(b)); - }, 0); + }; + return a.runs.reduce(b, 0); }; + b.default = f; }, 5821: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(9845)), f = d(c(6062)), g = d(c(7222)), h = d(c(2307)), i = d(c(511)); - b.default = function(a, b, c) { + var e = d(c(9845)), f = d(c(6062)), g = d(c(7222)), h = d(c(2307)), i = d(c(511)), j = function(a, b, c) { var d = (0, h.default)(a, c); if (-1 === d) return (0, e.default)(b, c); var j = (null == b ? void 0 : b.codePoints) || [], k = c.string.slice(0, a) + (0, i.default)(j) + c.string.slice(a), l = c.runs.map(function(c, e) { @@ -5319,41 +5364,41 @@ runs: l }); }; + b.default = j; }, 2182: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(7925)); - b.default = function(a) { + var e = d(c(7925)), f = function(a) { var b = a.runs || []; return (0, e.default)(b[0]); }; + b.default = f; }, 7698: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(1464)), f = d(c(7590)); - b.default = function(a) { + var e = d(c(1464)), f = d(c(7590)), g = function(a) { return (0, f.default)(a) - (0, e.default)(a); }; + b.default = g; }, 2307: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(9139)); - b.default = function(a, b) { + var e = d(c(9139)), f = function(a, b) { return (0, e.default)(a, b.runs); }; + b.default = f; }, 2564: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(4450)), f = d(c(7621)), g = d(c(9629)); - b.default = function(a, b, c) { + var e = d(c(4450)), f = d(c(7621)), g = d(c(9629)), h = function(a, b, c) { if (0 === c.string.length) return c; var d, h, i, j = c.string.slice(a, b), k = (0, f.default)(a, b, c.runs), l = (d = a, h = b, (i = k).map(function(a, b) { var c, f, j = a, k = 0 === b, l = !k && b === i.length - 1; @@ -5364,23 +5409,26 @@ runs: l }); }; + b.default = h; }, 1464: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { var b = a.runs; return 0 === b.length ? 0 : b[0].start; }; + b.default = c; }, 9815: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = c(4354), f = d(c(2179)); - b.default = function(a) { + var e = c(4354), f = d(c(2179)), g = function(a) { var b = a.runs || []; return (0, f.default)((0, e.last)(b)); }; + b.default = g; }, 4573: function(a, b, c) { "use strict"; @@ -5389,23 +5437,26 @@ var e = d(c(2564)), f = function(a) { var b = a.match(/\S/g); return b ? a.lastIndexOf(b[b.length - 1]) : -1; - }; - b.default = function(a) { + }, g = function(a) { var b = (0, a.string).search(/\S/g), c = f(a.string); return (0, e.default)(b, c + 1, a); }; + b.default = g; }, 839: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { return a.reduce(function(a, b) { return a + b.box.height; }, 0); }; + b.default = c; }, 4248: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a, b) { + b.__esModule = !0, b.default = void 0; + var c = function(a, b) { for(var c = [], d = 0, e = 0; e < b.length; e += 1){ var f = b[e]; if ((d += f.box.height) < a) c.push(f); @@ -5413,13 +5464,13 @@ } return c; }; + b.default = c; }, 6314: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = c(4354), f = d(c(4573)), g = d(c(9845)); - b.default = function(a) { + var e = c(4354), f = d(c(4573)), g = d(c(9845)), h = function(a) { var b = (null === (h = (0, e.last)(a)) || void 0 === h ? void 0 : h.runs) || [], c = null === (i = (0, e.last)(b)) || void 0 === i ? void 0 : null === (j = i.attributes) || void 0 === j ? void 0 : j.font; if (c) { var d, h, i, j, k, l = a.length - 1, m = (d = c).encode ? parseInt(d.encode("…")[0][0], 16) : 8230, n = c.glyphForCodePoint(m), o = (0, g.default)(n, (0, f.default)(a[l])); @@ -5427,12 +5478,12 @@ } return a; }; + b.default = h; }, 7518: function(a, b) { "use strict"; b.__esModule = !0, b.default = void 0; - var c = 0; - b.default = function(a, b) { + var c = 0, d = function(a, b) { for(var d, e = 0, f = [], g = [], h = c; h <= 3; h += 1)f[h] = g[h] = 0; for(var i = 0; i < b.length; i += 1){ var j = b[i], k = j.before + j.after; @@ -5460,6 +5511,7 @@ } return q; }; + b.default = d; }, 1845: function(a, b, c) { "use strict"; @@ -5491,8 +5543,7 @@ }, k = function(a, b) { var c = b.expandWhitespaceFactor || {}, d = b.shrinkWhitespaceFactor || {}; return "GROW" === a ? Object.assign({}, f, c) : Object.assign({}, h, d); - }; - b.default = function(a, b, c) { + }, l = function(a, b, c) { var d, f, g = (d = a > 0 ? "GROW" : "SHRINK", f = c, function(a) { for(var b = j(d, f), c = k(d, f), g = [], h = 0; h < a.length; h += 1){ var i = void 0, l = a[h]; @@ -5504,6 +5555,7 @@ }, []); return h[0].before = 0, h[h.length - 1].after = 0, h; }; + b.default = l; }, 9186: function(a, b, c) { "use strict"; @@ -5515,8 +5567,7 @@ j.xAdvance += a[d++]; } return b; - }; - b.default = function(a) { + }, j = function(a) { return function(b) { var c = b.box.width - (0, h.default)(b); if (0 !== c) { @@ -5525,6 +5576,7 @@ } }; }; + b.default = j; }, 2195: function(a, b) { "use strict"; @@ -5549,8 +5601,7 @@ } } return f.width - f.shrink > g ? d : null; - }; - b.default = function(a, b) { + }, d = function(a, b) { for(var d = 0, e = 0, f = a, g = [ { position: 0 @@ -5563,6 +5614,7 @@ } return g; }; + b.default = d; }, 7335: function(a, b, c) { "use strict"; @@ -5602,8 +5654,7 @@ }, m = function(a) { var b, c; return (null === (b = a.runs) || void 0 === b ? void 0 : null === (c = b[0]) || void 0 === c ? void 0 : c.attributes) || {}; - }; - b.default = function(a) { + }, n = function(a) { return function(b, c) { for(var d = a.tolerance || 4, g = m(b), h = l(b, g, a), i = (0, f.default)(h, c, { tolerance: d @@ -5613,6 +5664,7 @@ return (0 === i.length || 1 === i.length && 0 === i[0].position) && (i = (0, e.default)(h, c)), k(b, h, i.slice(1)); }; }; + b.default = n; }, 26: function(a, b, c) { "use strict"; @@ -5799,8 +5851,7 @@ "Common", "Inherited", "Unknown" - ]; - b.default = function() { + ], h = function() { return function(a) { var b = a.string, c = "Unknown", d = 0, h = 0, i = []; if (!b) return (0, f.default)(); @@ -5826,13 +5877,13 @@ }; }; }; + b.default = h; }, 32: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(1162)), f = d(c(3226)), g = d(c(3689)), h = d(c(7106)), i = 12; - b.default = function() { + var e = d(c(1162)), f = d(c(3226)), g = d(c(3689)), h = d(c(7106)), i = 12, j = function() { return function(a) { var b = a.overflowLeft || 0, c = a.overflowRight || 0, d = (0, h.default)(a) - c; a.decorationLines = []; @@ -5871,34 +5922,40 @@ return a; }; }; + b.default = j; }, 4915: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(3202)), f = d(c(1487)), g = c(4354), h = (0, e.default)(f.default), i = {}; - b.default = function() { + var e = d(c(3202)), f = d(c(1487)), g = c(4354), h = (0, e.default)(f.default), i = {}, j = function() { return function(a) { var b, c = "_" + a; return (0, g.isNil)(a) ? [] : (i[c] || (i[c] = ((b = a).includes("\xAD") ? b : h(b)).split("\xAD")), i[c]); }; }; + b.default = j; }, 6742: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a, b) { + b.__esModule = !0, b.default = void 0; + var c = function(a, b) { return b && a ? b.glyphForCodePoint(a) : null; }; + b.default = c; }, 2065: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { return ((null == a ? void 0 : a.codePoints) || []).includes(32); }; + b.default = c; }, 8389: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a, b, c, d) { + b.__esModule = !0, b.default = void 0; + var c = function(a, b, c, d) { if (!d || a === b) return []; if (0 === a && b === d.codePoints.length) return [ d @@ -5908,28 +5965,32 @@ d ]; }; + b.default = c; }, 8931: function(a, b, c) { "use strict"; b.__esModule = !0, b.default = void 0; - var d = c(4354); - b.default = function(a, b) { + var d = c(4354), e = function(a, b) { var c = (0, d.last)(b), e = (0, d.isNil)(c) ? 0 : c + 1, f = Array(a).fill(e); return b.concat(f); }; + b.default = e; }, 298: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { var b = a[0]; return a.map(function(a) { return a - b; }); }; + b.default = c; }, 4131: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { return void 0 === a && (a = []), a.reduce(function(a, b) { var c = (null == b ? void 0 : b.codePoints) || [ 123 @@ -5943,6 +6004,7 @@ })); }, []); }; + b.default = c; }, 5526: function(a, b) { "use strict"; @@ -5988,8 +6050,7 @@ return Object.assign({}, a, { attributes: c }); - }; - b.default = function() { + }, d = function() { return function(a) { var b = a.string || "", d = (a.runs || []).map(c); return { @@ -5998,6 +6059,7 @@ }; }; }; + b.default = d; }, 2680: function(a, b, c) { "use strict"; @@ -6018,8 +6080,7 @@ overflowLeft: d, overflowRight: e }); - }; - b.default = function(a, b) { + }, m = function(a, b) { return function(c) { var d, g, h = (d = a, g = b, void 0 === d && (d = {}), function(a, b, c) { var h, i, m, n, o, p = b === c.length - 1, q = (null === (h = a.runs) || void 0 === h ? void 0 : null === (i = h[0]) || void 0 === i ? void 0 : i.attributes) || {}, r = p ? q.alignLastLine : q.align; @@ -6037,6 +6098,7 @@ }); }; }; + b.default = m; }, 8019: function(a, b, c) { "use strict"; @@ -6056,8 +6118,7 @@ yOffset: a.yOffset * c }); }); - }; - b.default = function() { + }, j = function() { return function(a) { var b, c = a.runs.map((b = a.string, function(a) { var c = a.start, d = a.end, f = a.attributes, h = (void 0 === f ? {} : f).font; @@ -6078,21 +6139,22 @@ }); }; }; + b.default = j; }, 4825: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = c(4354), f = d(c(7777)), g = d(c(7924)), h = d(c(8019)), i = d(c(8449)), j = d(c(1661)), k = d(c(4811)), l = d(c(2680)), m = d(c(1535)), n = d(c(5526)); - b.default = function(a) { + var e = c(4354), f = d(c(7777)), g = d(c(7924)), h = d(c(8019)), i = d(c(8449)), j = d(c(1661)), k = d(c(4811)), l = d(c(2680)), m = d(c(1535)), n = d(c(5526)), o = function(a) { return function(b, c, d) { void 0 === d && (d = {}); - var o = (0, e.compose)((0, i.default)(a, d), (0, m.default)(a, d), (0, h.default)(a, d), (0, f.default)(a, d)); - return (0, e.compose)((0, l.default)(a, d), (0, g.default)(a, d, c), function(a) { + var o = (0, e.compose)((0, i.default)(a, d), (0, m.default)(a, d), (0, h.default)(a, d), (0, f.default)(a, d)), p = function(a) { return a.map(o); - }, (0, k.default)(a, d), (0, j.default)(a, d), (0, n.default)(a, d))(b); + }; + return (0, e.compose)((0, l.default)(a, d), (0, g.default)(a, d, c), p, (0, k.default)(a, d), (0, j.default)(a, d), (0, n.default)(a, d))(b); }; }; + b.default = o; }, 9507: function(a, b, c) { "use strict"; @@ -6117,8 +6179,7 @@ height: l }, d += l, g(m); }); - }; - b.default = function(a, b) { + }, i = function(a, b) { return function(c, d) { var e, f, g, i = (null === (e = d.runs) || void 0 === e ? void 0 : null === (f = e[0]) || void 0 === f ? void 0 : null === (g = f.attributes) || void 0 === g ? void 0 : g.indent) || 0, j = [ c.width - i, @@ -6127,6 +6188,7 @@ return h(c, k, i); }; }; + b.default = i; }, 1661: function(a, b, c) { "use strict"; @@ -6139,8 +6201,7 @@ return Object.assign({}, a, { runs: b }); - }; - b.default = function(a, b) { + }, j = function(a, b) { return function(c) { if ((0, e.isNil)(c)) return (0, h.default)(); var d = c.string, f = a.fontSubstitution, j = a.scriptItemizer, k = i(c), l = k.runs, m = f(b)(c), n = m.runs, o = j(b)(c), p = o.runs, q = n.concat(p).concat(l); @@ -6150,6 +6211,7 @@ }; }; }; + b.default = j; }, 1535: function(a, b) { "use strict"; @@ -6165,8 +6227,7 @@ return Object.assign({}, a, { positions: e }); - }; - b.default = function() { + }, d = function() { return function(a) { var b = a.runs.map(c); return Object.assign({}, a, { @@ -6174,6 +6235,7 @@ }); }; }; + b.default = d; }, 8449: function(a, b) { "use strict"; @@ -6188,8 +6250,7 @@ return Object.assign({}, a, { positions: g }); - }; - b.default = function() { + }, d = function() { return function(a) { var b = a.runs.map(c); return Object.assign({}, a, { @@ -6197,25 +6258,25 @@ }); }; }; + b.default = d; }, 4811: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(7698)), f = d(c(2564)); - b.default = function() { + var e = d(c(7698)), f = d(c(2564)), g = function() { return function(a) { for(var b = [], c = 0, d = a.string.indexOf("\n") + 1; d > 0;)b.push((0, f.default)(c, d, a)), c = d, d = a.string.indexOf("\n", d) + 1; return 0 === c ? b.push(a) : c < a.string.length && b.push((0, f.default)(c, (0, e.default)(a), a)), b; }; }; + b.default = g; }, 7924: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = c(4354), f = d(c(7711)), g = d(c(5538)), h = d(c(839)), i = d(c(6314)), j = d(c(9507)), k = d(c(4248)); - b.default = function(a, b, c) { + var e = c(4354), f = d(c(7711)), g = d(c(5538)), h = d(c(839)), i = d(c(6314)), j = d(c(9507)), k = d(c(4248)), l = function(a, b, c) { return function(d) { for(var l = [], m = [].concat(d), n = (0, j.default)(a, b), o = (0, e.isNil)(c.maxLines) ? 1 / 0 : c.maxLines, p = "ellipsis" === c.truncateMode, q = o, r = (0, f.default)(c), s = m.shift(); q > 0 && s;){ var t = n(r, s), u = t.slice(0, q), v = (0, h.default)(u), w = p && t.length !== u.length; @@ -6228,86 +6289,95 @@ return l; }; }; + b.default = l; }, 7777: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(7154)), f = d(c(2779)); - b.default = function(a, b) { + var e = d(c(7154)), f = d(c(2779)), g = function(a) { + return [ + a + ]; + }, h = function(a, b) { return void 0 === a && (a = {}), void 0 === b && (b = {}), function(c) { - for(var d, g, h = [], i = [], j = b.hyphenationCallback || (null === (d = (g = a).wordHyphenation) || void 0 === d ? void 0 : d.call(g, b)) || function(a) { - return [ - a - ]; - }, k = 0; k < c.runs.length; k += 1){ - for(var l = "", m = c.runs[k], n = c.string.slice(m.start, m.end).split(/([ ]+)/g).filter(Boolean), o = 0; o < n.length; o += 1){ - var p = j(n[o]); - h.push.apply(h, p), l += p.join(""); + for(var d, h, i = [], j = [], k = b.hyphenationCallback || (null === (d = (h = a).wordHyphenation) || void 0 === d ? void 0 : d.call(h, b)) || g, l = 0; l < c.runs.length; l += 1){ + for(var m = "", n = c.runs[l], o = c.string.slice(n.start, n.end).split(/([ ]+)/g).filter(Boolean), p = 0; p < o.length; p += 1){ + var q = k(o[p]); + i.push.apply(i, q), m += q.join(""); } - i.push({ - string: l, - attributes: m.attributes + j.push({ + string: m, + attributes: n.attributes }); } - return (0, e.default)({}, (0, f.default)(i), { - syllables: h + return (0, e.default)({}, (0, f.default)(j), { + syllables: i }); }; }; + b.default = h; }, 6499: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { return a.reduce(function(a, b) { return a + (b.xAdvance || 0); }, 0); }; + b.default = c; }, 7711: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { return Object.assign({}, a); }; + b.default = c; }, 5538: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a, b) { + b.__esModule = !0, b.default = void 0; + var c = function(a, b) { var c = b.y + a, d = b.height - a; return Object.assign({}, b, { y: c, height: d }); }; + b.default = c; }, 6062: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a, b) { + b.__esModule = !0, b.default = void 0; + var c = function(a, b) { var c = b.start + a, d = b.end + a; return Object.assign({}, b, { start: c, end: d }); }; + b.default = c; }, 3689: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(6499)); - b.default = function(a) { + var e = d(c(6499)), f = function(a) { return (0, e.default)(a.positions || []); }; + b.default = f; }, 3529: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(7392)), f = d(c(6499)); - b.default = function(a, b, c) { + var e = d(c(7392)), f = d(c(6499)), g = function(a, b, c) { var d = c.start || 0, g = Math.max(0, (0, e.default)(a - d, c)), h = Math.max(0, (0, e.default)(b - d, c)), i = (c.positions || []).slice(g, h); return (0, f.default)(i); }; + b.default = g; }, 7763: function(a, b, c) { "use strict"; @@ -6329,29 +6399,28 @@ glyphIndices: i, positions: j }); - }; - b.default = function(a, b) { + }, k = function(a, b) { if (!a) return b; var c = (0, f.default)(b), d = (0, g.default)(a) ? (0, i.default)(a, c) : a; return j(d, b); }; + b.default = k; }, 1162: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(3241)); - b.default = function(a) { + var e = d(c(3241)), f = function(a) { var b, c, d, f, g = (null === (b = a.attributes) || void 0 === b ? void 0 : null === (c = b.attachment) || void 0 === c ? void 0 : c.height) || 0, h = (null === (d = a.attributes) || void 0 === d ? void 0 : null === (f = d.font) || void 0 === f ? void 0 : f.ascent) || 0; return Math.max(g, h * (0, e.default)(a)); }; + b.default = f; }, 8687: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = c(4354), f = d(c(1258)), g = d(c(298)); - b.default = function(a, b) { + var e = c(4354), f = d(c(1258)), g = d(c(298)), h = function(a, b) { var c = a.end + (0, f.default)(b), d = (a.glyphs || []).concat(b.glyphs || []), h = (a.positions || []).concat(b.positions || []), i = Object.assign({}, a.attributes, b.attributes), j = a.glyphIndices || [], k = (0, e.last)(j) || 0, l = (b.glyphIndices || []).map(function(a) { return a + k + 1; }), m = (0, g.default)(j.concat(l)); @@ -6363,29 +6432,31 @@ glyphIndices: m }); }; + b.default = h; }, 9406: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(3241)); - b.default = function(a) { + var e = d(c(3241)), f = function(a) { var b, c, d = (null === (b = a.attributes) || void 0 === b ? void 0 : null === (c = b.font) || void 0 === c ? void 0 : c.descent) || 0; return (0, e.default)(a) * d; }; + b.default = f; }, 8848: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(4450)); - b.default = function(a) { + var e = d(c(4450)), f = function(a) { return (0, e.default)(0, a.end - a.start - 1, a); }; + b.default = f; }, 6266: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function() { + b.__esModule = !0, b.default = void 0; + var c = function() { return { start: 0, end: 0, @@ -6395,16 +6466,17 @@ attributes: {} }; }; + b.default = c; }, 7621: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(9139)); - b.default = function(a, b, c) { + var e = d(c(9139)), f = function(a, b, c) { var d = (0, e.default)(a, c), f = Math.max((0, e.default)(b - 1, c), d); return c.slice(d, f + 1); }; + b.default = f; }, 6990: function(a, b, c) { "use strict"; @@ -6449,8 +6521,7 @@ d = k; } return b; - }; - b.default = function(a) { + }, j = function(a) { void 0 === a && (a = []); var b = Object.values(a.filter(function(a) { return (0, f.default)(a); @@ -6461,32 +6532,35 @@ })); return (0, e.default)(b.concat(c)); }; + b.default = j; }, 4014: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { var b; return (null === (b = a.attributes) || void 0 === b ? void 0 : b.font) || null; }; + b.default = c; }, 7392: function(a, b, c) { "use strict"; b.__esModule = !0, b.default = void 0; - var d = c(4354); - b.default = function(a, b) { + var d = c(4354), e = function(a, b) { var c, e = null == b ? void 0 : null === (c = b.glyphIndices) || void 0 === c ? void 0 : c[a]; return (0, d.isNil)(e) ? a : e; }; + b.default = e; }, 7369: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(1162)), f = d(c(9406)), g = d(c(9277)); - b.default = function(a) { + var e = d(c(1162)), f = d(c(9406)), g = d(c(9277)), h = function(a) { var b; return (null === (b = a.attributes) || void 0 === b ? void 0 : b.lineHeight) || (0, g.default)(a) + (0, e.default)(a) - (0, f.default)(a); }; + b.default = h; }, 7222: function(a, b, c) { "use strict"; @@ -6496,17 +6570,19 @@ if (!b) return c; var d = (0, e.default)(0, a, c), h = (0, e.default)(a, 1 / 0, c); return (0, f.default)((0, g.default)(b, d), h); - }; - b.default = function(a, b, c) { + }, l = function(a, b, c) { var d = (0, h.default)(c), e = (0, i.default)(b) ? (0, j.default)(b, d) : b; return k(a, e, c); }; + b.default = l; }, 456: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { return a.start === a.end; }; + b.default = c; }, 7925: function(a, b, c) { "use strict"; @@ -6517,55 +6593,63 @@ return !(0, e.default)(a); }); return c.slice(0, d); - }; - b.default = function(a) { + }, g = function(a) { return f(a).reduce(function(a, b) { return a + (b.xAdvance || 0); }, 0); }; + b.default = g; }, 1258: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { return a.end - a.start; }; + b.default = c; }, 9277: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(3241)); - b.default = function(a) { + var e = d(c(3241)), f = function(a) { var b, c; return ((null === (b = a.attributes) || void 0 === b ? void 0 : null === (c = b.font) || void 0 === c ? void 0 : c.lineGap) || 0) * (0, e.default)(a); }; + b.default = f; }, 4363: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a, b) { + b.__esModule = !0, b.default = void 0; + var c = function(a, b) { if (!b) return 0; var c = b.glyphIndices || [], d = c[a]; return c.slice(0, a).filter(function(a) { return a === d; }).length; }; + b.default = c; }, 9435: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a, b) { + b.__esModule = !0, b.default = void 0; + var c = function(a, b) { var c = Object.assign({}, b.attributes); return delete c[a], Object.assign({}, b, { attributes: c }); }; + b.default = c; }, 9139: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a, b) { + b.__esModule = !0, b.default = void 0; + var c = function(a, b) { return b ? b.findIndex(function(b) { return b.start <= a && a < b.end; }) : -1; }; + b.default = c; }, 3241: function(a, b) { "use strict"; @@ -6573,18 +6657,17 @@ var c = function(a) { var b, c = a.attributes || {}, d = c.fontSize || 12, e = null === (b = c.font) || void 0 === b ? void 0 : b.unitsPerEm; return e ? d / e : 0; - }; - b.default = function(a) { + }, d = function(a) { var b; return (null === (b = a.attributes) || void 0 === b ? void 0 : b.scale) || c(a); }; + b.default = d; }, 4450: function(a, b, c) { "use strict"; var d = c(5318).default; b.__esModule = !0, b.default = void 0; - var e = d(c(3241)), f = d(c(4363)), g = d(c(4014)), h = d(c(8389)), i = d(c(7392)), j = d(c(298)); - b.default = function(a, b, c) { + var e = d(c(3241)), f = d(c(4363)), g = d(c(4014)), h = d(c(8389)), i = d(c(7392)), j = d(c(298)), k = function(a, b, c) { var d, k, l = (0, e.default)(c), m = (0, g.default)(c), n = (0, i.default)(a, c), o = (0, i.default)(b, c), p = null === (d = c.glyphs) || void 0 === d ? void 0 : d[n], q = null === (k = c.glyphs) || void 0 === k ? void 0 : k[o], r = (0, f.default)(a, c), s = r > 0 ? (0, h.default)(r, 1 / 0, m, p) : [], t = (0, f.default)(b, c), u = (0, h.default)(0, t, m, q), v = n + Math.min(1, r), w = (c.glyphs || []).slice(v, o), x = function(a) { return { xAdvance: a.advanceWidth * l @@ -6606,24 +6689,29 @@ ].flat() }); }; + b.default = k; }, 1848: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { return a.sort(function(a, b) { return a.start - b.start || a.end - b.end; }); }; + b.default = c; }, 9629: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a, b) { + b.__esModule = !0, b.default = void 0; + var c = function(a, b) { var c = b.start - a, d = b.end - a; return Object.assign({}, b, { start: c, end: d }); }; + b.default = c; }, 2179: function(a, b, c) { "use strict"; @@ -6636,24 +6724,28 @@ return !(0, e.default)(a); }); return c.slice(0, d); - }; - b.default = function(a) { + }, h = function(a) { return g(a).reduce(function(a, b) { return a + (b.xAdvance || 0); }, 0); }; + b.default = h; }, 8366: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { return "number" == typeof a; }; + b.default = c; }, 511: function(a, b) { "use strict"; - b.__esModule = !0, b.default = void 0, b.default = function(a) { + b.__esModule = !0, b.default = void 0; + var c = function(a) { return String.fromCodePoint.apply(String, a); }; + b.default = c; }, 8537: function(a, b, c) { "use strict"; @@ -9370,7 +9462,7 @@ }; }, 7507: function(a) { - a.exports = function(a, b, c) { + var b = function(a, b, c) { if (void 0 == a) return [ 0, 0, @@ -9385,6 +9477,7 @@ Math.abs(Math.round(255 * f)), ]; }; + a.exports = b; }, 4756: function(a, b, c) { var d, e, f; @@ -21708,8 +21801,7 @@ b(o(void 0, !0)); }); }); - }), f), r); - a.exports = function(a) { + }), f), r), t = function(a) { var b, c = Object.create(s, (e(b = {}, n, { value: a, writable: !0 @@ -21742,6 +21834,7 @@ null !== d && (c[l] = null, c[h] = null, c[i] = null, d(o(void 0, !0))), c[k] = !0; }), a.on("readable", q.bind(null, c)), c; }; + a.exports = t; }, 914: function(a, b, c) { "use strict"; diff --git a/crates/swc_ecma_minifier/tests/fixture/next/styled-components/1/output.js b/crates/swc_ecma_minifier/tests/fixture/next/styled-components/1/output.js index a10ad78ed4f..f1532b3a307 100644 --- a/crates/swc_ecma_minifier/tests/fixture/next/styled-components/1/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/next/styled-components/1/output.js @@ -3457,7 +3457,20 @@ }, 9996: function(module) { "use strict"; + var isMergeableObject = function(value) { + return isNonNullObject(value) && !isSpecial(value); + }; + function isNonNullObject(value) { + return !!value && "object" == typeof value; + } + function isSpecial(value) { + var stringValue = Object.prototype.toString.call(value); + return "[object RegExp]" === stringValue || "[object Date]" === stringValue || isReactElement(value); + } var REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol.for ? Symbol.for("react.element") : 0xeac7; + function isReactElement(value) { + return value.$$typeof === REACT_ELEMENT_TYPE; + } function cloneUnlessOtherwiseSpecified(value, options) { return !1 !== options.clone && options.isMergeableObject(value) ? deepmerge(Array.isArray(value) ? [] : {}, value, options) : value; } @@ -3480,10 +3493,7 @@ } } function deepmerge(target, source, options) { - (options = options || {}).arrayMerge = options.arrayMerge || defaultArrayMerge, options.isMergeableObject = options.isMergeableObject || function(value) { - var value1, value2, stringValue; - return !!(value1 = value) && "object" == typeof value1 && (value2 = value, !("[object RegExp]" === (stringValue = Object.prototype.toString.call(value2)) || "[object Date]" === stringValue || value2.$$typeof === REACT_ELEMENT_TYPE)); - }, options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified; + (options = options || {}).arrayMerge = options.arrayMerge || defaultArrayMerge, options.isMergeableObject = options.isMergeableObject || isMergeableObject, options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified; var target1, source1, options1, destination, sourceIsArray = Array.isArray(source), targetIsArray = Array.isArray(target); return sourceIsArray !== targetIsArray ? cloneUnlessOtherwiseSpecified(source, options) : sourceIsArray ? options.arrayMerge(target, source, options) : (target1 = target, source1 = source, destination = {}, (options1 = options).isMergeableObject(target1) && getKeys(target1).forEach(function(key) { destination[key] = cloneUnlessOtherwiseSpecified(target1[key], options1); @@ -5237,14 +5247,14 @@ return parsers.forEach(function(parser) { parser && parser.config && object_assign_default()(config, parser.config); }), createParser(config); + }, getWidth = function(n, scale) { + var n1; + return get(scale, n, "number" != typeof (n1 = n) || isNaN(n1) || n > 1 ? n : 100 * n + "%"); }, layout = system({ width: { property: "width", scale: "sizes", - transform: function(n, scale) { - var n1; - return get(scale, n, "number" != typeof (n1 = n) || isNaN(n1) || n > 1 ? n : 100 * n + "%"); - } + transform: getWidth }, height: { property: "height", @@ -5902,7 +5912,9 @@ }), alias && (config[alias] = config[prop]); var parse = createParser(config); return parse; - }, cjs = __webpack_require__(9996), cjs_default = __webpack_require__.n(cjs), lib_esm_sx = (props)=>css_dist_index_esm(props.sx); + }, cjs = __webpack_require__(9996), cjs_default = __webpack_require__.n(cjs); + const sx = (props)=>css_dist_index_esm(props.sx); + var lib_esm_sx = sx; const Box = styled_components_browser_esm.div.withConfig({ displayName: "Box", componentId: "sc-1gh2r6s-0" @@ -6359,7 +6371,11 @@ } }), TYPOGRAPHY = constants_compose(typography, whiteSpace); constants_compose(border, shadow); - const CounterLabel = styled_components_browser_esm.span.withConfig({ + const colorStyles = ({ scheme , ...props })=>({ + color: "secondary" === scheme ? constants_get("colors.fg.default")(props) : "primary" === scheme ? constants_get("colors.fg.onEmphasis")(props) : constants_get("colors.fg.default")(props) + }), bgStyles = ({ scheme , ...props })=>({ + backgroundColor: "secondary" === scheme ? constants_get("colors.neutral.muted")(props) : "primary" === scheme ? constants_get("colors.neutral.emphasis")(props) : constants_get("colors.neutral.muted")(props) + }), CounterLabel = styled_components_browser_esm.span.withConfig({ displayName: "CounterLabel", componentId: "sc-13ceqbg-0" })([ @@ -6370,11 +6386,7 @@ ";", ";&:empty{display:none;}", ";", - ], constants_get("fontSizes.0"), constants_get("fontWeights.bold"), constants_get("lineHeights.condensedUltra"), ({ scheme , ...props })=>({ - color: "secondary" === scheme ? constants_get("colors.fg.default")(props) : "primary" === scheme ? constants_get("colors.fg.onEmphasis")(props) : constants_get("colors.fg.default")(props) - }), ({ scheme , ...props })=>({ - backgroundColor: "secondary" === scheme ? constants_get("colors.neutral.muted")(props) : "primary" === scheme ? constants_get("colors.neutral.emphasis")(props) : constants_get("colors.neutral.muted")(props) - }), lib_esm_sx); + ], constants_get("fontSizes.0"), constants_get("fontWeights.bold"), constants_get("lineHeights.condensedUltra"), colorStyles, bgStyles, lib_esm_sx); var lib_esm_CounterLabel = CounterLabel; function ButtonCounter_extends() { return (ButtonCounter_extends = Object.assign || function(target) { diff --git a/crates/swc_ecma_minifier/tests/full/feedback-mapbox/2c796e83-0724e2af5f19128a/output.js b/crates/swc_ecma_minifier/tests/full/feedback-mapbox/2c796e83-0724e2af5f19128a/output.js index 9fc4f737587..a8659f9cdcb 100644 --- a/crates/swc_ecma_minifier/tests/full/feedback-mapbox/2c796e83-0724e2af5f19128a/output.js +++ b/crates/swc_ecma_minifier/tests/full/feedback-mapbox/2c796e83-0724e2af5f19128a/output.js @@ -5,7 +5,7 @@ Thank you! Filter Expression: ${JSON.stringify(c,null,2)} `)}const g=bk[`filter_${b}`],h=dk(d,g);let i=null;if("error"===h.result)throw Error(h.value.map(a=>`${a.key}: ${a.message}`).join(", "));i=(a,b,c)=>h.value.evaluate(a,b,{},c);let j=null,k=null;if(d!==c){const l=dk(c,g);if("error"===l.result)throw Error(l.value.map(a=>`${a.key}: ${a.message}`).join(", "));j=(a,b,c,d,f)=>l.value.evaluate(a,b,{},c,void 0,void 0,d,f),k=!cj(l.value.expression)}return{filter:i,dynamicFilter:j||void 0,needGeometry:dF(d),needFeature:!!k}}function dA(a){if(!Array.isArray(a))return a;const b=function(a){if(dD.has(a[0])){for(let b=1;bdA(a))}function dB(a){let b=!1;const c=[];if("case"===a[0]){for(let d=1;d",">=","<","<=","to-boolean",]);function dE(a,b){return ab?1:0}function dF(a){if(!Array.isArray(a))return!1;if("within"===a[0])return!0;for(let b=1;b"===b||"<="===b||">="===b?dH(a[1],a[2],b):"any"===b?["any"].concat(a.slice(1).map(dG)):"all"===b?["all"].concat(a.slice(1).map(dG)):"none"===b?["all"].concat(a.slice(1).map(dG).map(dK)):"in"===b?dI(a[1],a.slice(2)):"!in"===b?dK(dI(a[1],a.slice(2))):"has"===b?dJ(a[1]):"!has"===b?dK(dJ(a[1])):"within"!==b||a}function dH(a,b,c){switch(a){case"$type":return[`filter-type-${c}`,b];case"$id":return[`filter-id-${c}`,b];default:return[`filter-${c}`,a,b]}}function dI(a,b){if(0===b.length)return!1;switch(a){case"$type":return["filter-type-in",["literal",b]];case"$id":return["filter-id-in",["literal",b]];default:return b.length>200&&!b.some(a=>typeof a!=typeof b[0])?["filter-in-large",a,["literal",b.sort(dE)],]:["filter-in-small",a,["literal",b],]}}function dJ(a){switch(a){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",a]}}function dK(a){return["!",a]}function dL(a){if(dy(bp(a.value))){const b=bp(a.layerType);return dv(bn({},a,{expressionContext:"filter",valueSpec:a.styleSpec[`filter_${b||"fill"}`]}))}return dM(a)}function dM(a){const b=a.value,c=a.key;if("array"!==c9(b))return[new bl(c,b,`array expected, ${c9(b)} found`),];const d=a.styleSpec;let f,g=[];if(b.length<1)return[new bl(c,b,"filter array must have at least 1 element"),];switch(g=g.concat(dx({key:`${c}[0]`,value:b[0],valueSpec:d.filter_operator,style:a.style,styleSpec:a.styleSpec})),bo(b[0])){case"<":case"<=":case">":case">=":b.length>=2&&"$type"===bo(b[1])&&g.push(new bl(c,b,`"$type" cannot be use with operator "${b[0]}"`));case"==":case"!=":3!==b.length&&g.push(new bl(c,b,`filter array for operator "${b[0]}" must have 3 elements`));case"in":case"!in":b.length>=2&&"string"!==(f=c9(b[1]))&&g.push(new bl(`${c}[1]`,b[1],`string expected, ${f} found`));for(let h=2;h{a in c&&b.push(new bl(d,c[a],`"${a}" is prohibited for ref layers`))}),f.layers.forEach(a=>{bo(a.id)===i&&(m=a)}),m?m.ref?b.push(new bl(d,c.ref,"ref cannot reference another ref layer")):h=bo(m.type):b.push(new bl(d,c.ref,`ref layer "${i}" not found`))}else if("background"!==h&&"sky"!==h){if(c.source){const n=f.sources&&f.sources[c.source],o=n&&bo(n.type);n?"vector"===o&&"raster"===h?b.push(new bl(d,c.source,`layer "${c.id}" requires a raster source`)):"raster"===o&&"raster"!==h?b.push(new bl(d,c.source,`layer "${c.id}" requires a vector source`)):"vector"!==o||c["source-layer"]?"raster-dem"===o&&"hillshade"!==h?b.push(new bl(d,c.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"===h&&c.paint&&c.paint["line-gradient"]&&("geojson"!==o||!n.lineMetrics)&&b.push(new bl(d,c,`layer "${c.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):b.push(new bl(d,c,`layer "${c.id}" must specify a "source-layer"`)):b.push(new bl(d,c.source,`source "${c.source}" not found`))}else b.push(new bl(d,c,'missing required property "source"'))}return b=b.concat(dr({key:d,value:c,valueSpec:g.layer,style:a.style,styleSpec:a.styleSpec,objectElementValidators:{"*":()=>[],type:()=>dY({key:`${d}.type`,value:c.type,valueSpec:g.layer.type,style:a.style,styleSpec:a.styleSpec,object:c,objectKey:"type"}),filter:a=>dL(bn({layerType:h},a)),layout:a=>dr({layer:c,key:a.key,value:a.value,style:a.style,styleSpec:a.styleSpec,objectElementValidators:{"*":a=>dP(bn({layerType:h},a))}}),paint:a=>dr({layer:c,key:a.key,value:a.value,style:a.style,styleSpec:a.styleSpec,objectElementValidators:{"*":a=>dO(bn({layerType:h},a))}})}}))}function dR(a){const b=a.value,c=a.key,d=c9(b);return"string"!==d?[new bl(c,b,`string expected, ${d} found`)]:[]}const dS={promoteId:function({key:a,value:b}){if("string"===c9(b))return dR({key:a,value:b});{const c=[];for(const d in b)c.push(...dR({key:`${a}.${d}`,value:b[d]}));return c}}};function dT(a){const b=a.value,c=a.key,d=a.styleSpec,f=a.style;if(!b.type)return[new bl(c,b,'"type" is required')];const g=bo(b.type);let h;switch(g){case"vector":case"raster":case"raster-dem":return dr({key:c,value:b,valueSpec:d[`source_${g.replace("-","_")}`],style:a.style,styleSpec:d,objectElementValidators:dS});case"geojson":if(h=dr({key:c,value:b,valueSpec:d.source_geojson,style:f,styleSpec:d,objectElementValidators:dS}),b.cluster)for(const i in b.clusterProperties){const[j,k]=b.clusterProperties[i],l="string"==typeof j?[j,["accumulated"],["get",i],]:j;h.push(...dv({key:`${c}.${i}.map`,value:k,expressionContext:"cluster-map"})),h.push(...dv({key:`${c}.${i}.reduce`,value:l,expressionContext:"cluster-reduce"}))}return h;case"video":return dr({key:c,value:b,valueSpec:d.source_video,style:f,styleSpec:d});case"image":return dr({key:c,value:b,valueSpec:d.source_image,style:f,styleSpec:d});case"canvas":return[new bl(c,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas"),];default:return dx({key:`${c}.type`,value:b.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image",]},style:f,styleSpec:d})}}function dU(a){const b=a.value,c=a.styleSpec,d=c.light,f=a.style;let g=[];const h=c9(b);if(void 0===b)return g;if("object"!==h)return g.concat([new bl("light",b,`object expected, ${h} found`),]);for(const i in b){const j=i.match(/^(.*)-transition$/);g=g.concat(j&&d[j[1]]&&d[j[1]].transition?dY({key:i,value:b[i],valueSpec:c.transition,style:f,styleSpec:c}):d[i]?dY({key:i,value:b[i],valueSpec:d[i],style:f,styleSpec:c}):[new bl(i,b[i],`unknown property "${i}"`),])}return g}function dV(a){const b=a.value,c=a.key,d=a.style,f=a.styleSpec,g=f.terrain;let h=[];const i=c9(b);if(void 0===b)return h;if("object"!==i)return h.concat([new bl("terrain",b,`object expected, ${i} found`),]);for(const j in b){const k=j.match(/^(.*)-transition$/);h=h.concat(k&&g[k[1]]&&g[k[1]].transition?dY({key:j,value:b[j],valueSpec:f.transition,style:d,styleSpec:f}):g[j]?dY({key:j,value:b[j],valueSpec:g[j],style:d,styleSpec:f}):[new bl(j,b[j],`unknown property "${j}"`),])}if(b.source){const l=d.sources&&d.sources[b.source],m=l&&bo(l.type);l?"raster-dem"!==m&&h.push(new bl(c,b.source,`terrain cannot be used with a source of type ${m}, it only be used with a "raster-dem" source type`)):h.push(new bl(c,b.source,`source "${b.source}" not found`))}else h.push(new bl(c,b,'terrain is missing required property "source"'));return h}function dW(a){const b=a.value,c=a.style,d=a.styleSpec,f=d.fog;let g=[];const h=c9(b);if(void 0===b)return g;if("object"!==h)return g.concat([new bl("fog",b,`object expected, ${h} found`),]);for(const i in b){const j=i.match(/^(.*)-transition$/);g=g.concat(j&&f[j[1]]&&f[j[1]].transition?dY({key:i,value:b[i],valueSpec:d.transition,style:c,styleSpec:d}):f[i]?dY({key:i,value:b[i],valueSpec:f[i],style:c,styleSpec:d}):[new bl(i,b[i],`unknown property "${i}"`),])}return g}const dX={"*":()=>[],array:ds,boolean:function(a){const b=a.value,c=a.key,d=c9(b);return"boolean"!==d?[new bl(c,b,`boolean expected, ${d} found`),]:[]},number:dt,color:function(a){const b=a.key,c=a.value,d=c9(c);return"string"!==d?[new bl(b,c,`color expected, ${d} found`),]:null===bJ.parseCSSColor(c)?[new bl(b,c,`color expected, "${c}" found`),]:[]},constants:bm,enum:dx,filter:dL,function:du,layer:dQ,object:dr,source:dT,light:dU,terrain:dV,fog:dW,string:dR,formatted:function(a){return 0===dR(a).length?[]:dv(a)},resolvedImage:function(a){return 0===dR(a).length?[]:dv(a)},projection:function(a){const b=a.value,c=a.styleSpec,d=c.projection,f=a.style;let g=[];const h=c9(b);if("object"===h)for(const i in b)g=g.concat(dY({key:i,value:b[i],valueSpec:d[i],style:f,styleSpec:c}));else"string"!==h&&(g=g.concat([new bl("projection",b,`object or string expected, ${h} found`),]));return g}};function dY(a){const b=a.value,c=a.valueSpec,d=a.styleSpec;return c.expression&&da(bo(b))?du(a):c.expression&&dj(bp(b))?dv(a):c.type&&dX[c.type]?dX[c.type](a):dr(bn({},a,{valueSpec:c.type?d[c.type]:c}))}function dZ(a){const b=a.value,c=a.key,d=dR(a);return d.length||(-1===b.indexOf("{fontstack}")&&d.push(new bl(c,b,'"glyphs" url must include a "{fontstack}" token')),-1===b.indexOf("{range}")&&d.push(new bl(c,b,'"glyphs" url must include a "{range}" token'))),d}function d$(a,b=bk){let c=[];return c=c.concat(dY({key:"",value:a,valueSpec:b.$root,styleSpec:b,style:a,objectElementValidators:{glyphs:dZ,"*":()=>[]}})),a.constants&&(c=c.concat(bm({key:"constants",value:a.constants,style:a,styleSpec:b}))),d_(c)}function d_(a){return[].concat(a).sort((a,b)=>a.line-b.line)}function d0(a){return function(...b){return d_(a.apply(this,b))}}d$.source=d0(dT),d$.light=d0(dU),d$.terrain=d0(dV),d$.fog=d0(dW),d$.layer=d0(dQ),d$.filter=d0(dL),d$.paintProperty=d0(dO),d$.layoutProperty=d0(dP);const d1=d$,d2=d1.light,d3=d1.fog,d4=d1.paintProperty,d5=d1.layoutProperty;function d6(a,b){let c=!1;if(b&&b.length)for(const d of b)a.fire(new bi(Error(d.message))),c=!0;return c}var d7=d8;function d8(a,b,c){var d=this.cells=[];if(a instanceof ArrayBuffer){this.arrayBuffer=a;var f=new Int32Array(this.arrayBuffer);a=f[0],this.d=(b=f[1])+2*(c=f[2]);for(var g=0;g=l[o+0]&&d>=l[o+1])?(h[n]=!0,g.push(k[n])):h[n]=!1}}},d8.prototype._forEachCell=function(a,b,c,d,f,g,h,i){for(var j=this._convertToCellCoord(a),k=this._convertToCellCoord(b),l=this._convertToCellCoord(c),m=this._convertToCellCoord(d),n=j;n<=l;n++)for(var o=k;o<=m;o++){var p=this.d*o+n;if((!i||i(this._convertFromCellCoord(n),this._convertFromCellCoord(o),this._convertFromCellCoord(n+1),this._convertFromCellCoord(o+1)))&&f.call(this,a,b,c,d,p,g,h,i))return}},d8.prototype._convertFromCellCoord=function(a){return(a-this.padding)/this.scale},d8.prototype._convertToCellCoord=function(a){return Math.max(0,Math.min(this.d-1,Math.floor(a*this.scale)+this.padding))},d8.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var a=this.cells,b=3+this.cells.length+1+1,c=0,d=0;d=0)continue;const k=a[j];i[j]=eb[h].shallow.indexOf(j)>=0?k:eg(k,b)}a instanceof Error&&(i.message=a.message)}if(i.$name)throw Error("$name property is reserved for worker serialization logic.");return"Object"!==h&&(i.$name=h),i}throw Error("can't serialize object of type "+typeof a)}function eh(a){if(null==a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||a instanceof Boolean||a instanceof Number||a instanceof String||a instanceof Date||a instanceof RegExp||ee(a)||ef(a)||ArrayBuffer.isView(a)||a instanceof d9)return a;if(Array.isArray(a))return a.map(eh);if("object"==typeof a){const b=a.$name||"Object",{klass:c}=eb[b];if(!c)throw Error(`can't deserialize unregistered class ${b}`);if(c.deserialize)return c.deserialize(a);const d=Object.create(c.prototype);for(const f of Object.keys(a)){if("$name"===f)continue;const g=a[f];d[f]=eb[b].shallow.indexOf(f)>=0?g:eh(g)}return d}throw Error("can't deserialize object of type "+typeof a)}class ei{constructor(){this.first=!0}update(a,b){const c=Math.floor(a);return this.first?(this.first=!1,this.lastIntegerZoom=c,this.lastIntegerZoomTime=0,this.lastZoom=a,this.lastFloorZoom=c,!0):(this.lastFloorZoom>c?(this.lastIntegerZoom=c+1,this.lastIntegerZoomTime=b):this.lastFloorZooma>=1536&&a<=1791,ek=a=>a>=1872&&a<=1919,el=a=>a>=2208&&a<=2303,em=a=>a>=11904&&a<=12031,en=a=>a>=12032&&a<=12255,eo=a=>a>=12272&&a<=12287,ep=a=>a>=12288&&a<=12351,eq=a=>a>=12352&&a<=12447,er=a=>a>=12448&&a<=12543,es=a=>a>=12544&&a<=12591,et=a=>a>=12704&&a<=12735,eu=a=>a>=12736&&a<=12783,ev=a=>a>=12784&&a<=12799,ew=a=>a>=12800&&a<=13055,ex=a=>a>=13056&&a<=13311,ey=a=>a>=13312&&a<=19903,ez=a=>a>=19968&&a<=40959,eA=a=>a>=40960&&a<=42127,eB=a=>a>=42128&&a<=42191,eC=a=>a>=44032&&a<=55215,eD=a=>a>=63744&&a<=64255,eE=a=>a>=64336&&a<=65023,eF=a=>a>=65040&&a<=65055,eG=a=>a>=65072&&a<=65103,eH=a=>a>=65104&&a<=65135,eI=a=>a>=65136&&a<=65279,eJ=a=>a>=65280&&a<=65519;function eK(a){for(const b of a)if(eN(b.charCodeAt(0)))return!0;return!1}function eL(a){for(const b of a)if(!eM(b.charCodeAt(0)))return!1;return!0}function eM(a){return!(ej(a)||ek(a)||el(a)||eE(a)||eI(a))}function eN(a){var b,c,d,f,g,h,i,j;return!(746!==a&&747!==a&&(a<4352||!(et(a)||es(a)||eG(a)&&!(a>=65097&&a<=65103)||eD(a)||ex(a)||em(a)||eu(a)||!(!ep(a)||a>=12296&&a<=12305||a>=12308&&a<=12319||12336===a)||ey(a)||ez(a)||ew(a)||(b=a)>=12592&&b<=12687||(c=a)>=43360&&c<=43391||(d=a)>=55216&&d<=55295||(f=a)>=4352&&f<=4607||eC(a)||eq(a)||eo(a)||(g=a)>=12688&&g<=12703||en(a)||ev(a)||er(a)&&12540!==a||!(!eJ(a)||65288===a||65289===a||65293===a||a>=65306&&a<=65310||65339===a||65341===a||65343===a||a>=65371&&a<=65503||65507===a||a>=65512&&a<=65519)||!(!eH(a)||a>=65112&&a<=65118||a>=65123&&a<=65126)||(h=a)>=5120&&h<=5759||(i=a)>=6320&&i<=6399||eF(a)||(j=a)>=19904&&j<=19967||eA(a)||eB(a))))}function eO(a){var b,c,d,f,g,h,i,j,k,l,m,n,o;return!(eN(a)||(c=b=a)>=128&&c<=255&&(167===b||169===b||174===b||177===b||188===b||189===b||190===b||215===b||247===b)||(d=b)>=8192&&d<=8303&&(8214===b||8224===b||8225===b||8240===b||8241===b||8251===b||8252===b||8258===b||8263===b||8264===b||8265===b||8273===b)||(f=b)>=8448&&f<=8527||(g=b)>=8528&&g<=8591||(h=b)>=8960&&h<=9215&&(b>=8960&&b<=8967||b>=8972&&b<=8991||b>=8996&&b<=9e3||9003===b||b>=9085&&b<=9114||b>=9150&&b<=9165||9167===b||b>=9169&&b<=9179||b>=9186&&b<=9215)||(i=b)>=9216&&i<=9279&&9251!==b||(j=b)>=9280&&j<=9311||(k=b)>=9312&&k<=9471||(l=b)>=9632&&l<=9727||(m=b)>=9728&&m<=9983&&!(b>=9754&&b<=9759)||(n=b)>=11008&&n<=11263&&(b>=11026&&b<=11055||b>=11088&&b<=11097||b>=11192&&b<=11243)||ep(b)||er(b)||(o=b)>=57344&&o<=63743||eG(b)||eH(b)||eJ(b)||8734===b||8756===b||8757===b||b>=9984&&b<=10087||b>=10102&&b<=10131||65532===b||65533===b)}function eP(a){return a>=1424&&a<=2303||eE(a)||eI(a)}function eQ(a,b){var c;return!(!b&&eP(a)||a>=2304&&a<=3583||a>=3840&&a<=4255||(c=a)>=6016&&c<=6143)}function eR(a){for(const b of a)if(eP(b.charCodeAt(0)))return!0;return!1}const eS="deferred",eT="loading",eU="loaded";let eV=null,eW="unavailable",eX=null;const eY=function(a){a&&"string"==typeof a&&a.indexOf("NetworkError")> -1&&(eW="error"),eV&&eV(a)};function eZ(){e$.fire(new bh("pluginStateChange",{pluginStatus:eW,pluginURL:eX}))}const e$=new bj,e_=function(){return eW},e0=function(){if(eW!==eS||!eX)throw Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");eW=eT,eZ(),eX&&a7({url:eX},a=>{a?eY(a):(eW=eU,eZ())})},e1={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>eW===eU||null!=e1.applyArabicShaping,isLoading:()=>eW===eT,setState(a){eW=a.pluginStatus,eX=a.pluginURL},isParsed:()=>null!=e1.applyArabicShaping&&null!=e1.processBidirectionalText&&null!=e1.processStyledBidirectionalText,getPluginURL:()=>eX};class e2{constructor(a,b){this.zoom=a,b?(this.now=b.now,this.fadeDuration=b.fadeDuration,this.zoomHistory=b.zoomHistory,this.transition=b.transition,this.pitch=b.pitch):(this.now=0,this.fadeDuration=0,this.zoomHistory=new ei,this.transition={},this.pitch=0)}isSupportedScript(a){return function(a,b){for(const c of a)if(!eQ(c.charCodeAt(0),b))return!1;return!0}(a,e1.isLoaded())}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const a=this.zoom,b=a-Math.floor(a),c=this.crossFadingFactor();return a>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:b+(1-b)*c}:{fromScale:.5,toScale:1,t:1-(1-c)*b}}}class e3{constructor(a,b){this.property=a,this.value=b,this.expression=function(a,b){if(da(a))return new dp(a,b);if(dj(a)){const c=dn(a,b);if("error"===c.result)throw Error(c.value.map(a=>`${a.key}: ${a.message}`).join(", "));return c.value}{let d=a;return"string"==typeof a&&"color"===b.type&&(d=bK.parse(a)),{kind:"constant",evaluate:()=>d}}}(void 0===b?a.specification.default:b,a.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(a,b,c){return this.property.possiblyEvaluate(this,a,b,c)}}class e4{constructor(a){this.property=a,this.value=new e3(a,void 0)}transitioned(a,b){return new e6(this.property,this.value,b,aa({},a.transition,this.transition),a.now)}untransitioned(){return new e6(this.property,this.value,null,{},0)}}class e5{constructor(a){this._properties=a,this._values=Object.create(a.defaultTransitionablePropertyValues)}getValue(a){return ak(this._values[a].value.value)}setValue(a,b){this._values.hasOwnProperty(a)||(this._values[a]=new e4(this._values[a].property)),this._values[a].value=new e3(this._values[a].property,null===b?void 0:ak(b))}getTransition(a){return ak(this._values[a].transition)}setTransition(a,b){this._values.hasOwnProperty(a)||(this._values[a]=new e4(this._values[a].property)),this._values[a].transition=ak(b)||void 0}serialize(){const a={};for(const b of Object.keys(this._values)){const c=this.getValue(b);void 0!==c&&(a[b]=c);const d=this.getTransition(b);void 0!==d&&(a[`${b}-transition`]=d)}return a}transitioned(a,b){const c=new e7(this._properties);for(const d of Object.keys(this._values))c._values[d]=this._values[d].transitioned(a,b._values[d]);return c}untransitioned(){const a=new e7(this._properties);for(const b of Object.keys(this._values))a._values[b]=this._values[b].untransitioned();return a}}class e6{constructor(a,b,c,d,f){const g=d.delay||0,h=d.duration||0;f=f||0,this.property=a,this.value=b,this.begin=f+g,this.end=this.begin+h,a.specification.transition&&(d.delay||d.duration)&&(this.prior=c)}possiblyEvaluate(a,b,c){const d=a.now||0,f=this.value.possiblyEvaluate(a,b,c),g=this.prior;if(g){if(d>this.end||this.value.isDataDriven())return this.prior=null,f;if(dd.zoomHistory.lastIntegerZoom?{from:a,to:b,other:c}:{from:c,to:b,other:a}}interpolate(a){return a}}class fd{constructor(a){this.specification=a}possiblyEvaluate(a,b,c,d){if(void 0!==a.value){if("constant"===a.expression.kind){const f=a.expression.evaluate(b,null,{},c,d);return this._calculate(f,f,f,b)}return this._calculate(a.expression.evaluate(new e2(Math.floor(b.zoom-1),b)),a.expression.evaluate(new e2(Math.floor(b.zoom),b)),a.expression.evaluate(new e2(Math.floor(b.zoom+1),b)),b)}}_calculate(a,b,c,d){return d.zoom>d.zoomHistory.lastIntegerZoom?{from:a,to:b}:{from:c,to:b}}interpolate(a){return a}}class fe{constructor(a){this.specification=a}possiblyEvaluate(a,b,c,d){return!!a.expression.evaluate(b,null,{},c,d)}interpolate(){return!1}}class ff{constructor(a){for(const b in this.properties=a,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],a){const c=a[b];c.specification.overridable&&this.overridableProperties.push(b);const d=this.defaultPropertyValues[b]=new e3(c,void 0),f=this.defaultTransitionablePropertyValues[b]=new e4(c);this.defaultTransitioningPropertyValues[b]=f.untransitioned(),this.defaultPossiblyEvaluatedValues[b]=d.possiblyEvaluate({})}}}function fg(a,b){return 256*(a=X(Math.floor(a),0,255))+X(Math.floor(b),0,255)}ec("DataDrivenProperty",fb),ec("DataConstantProperty",fa),ec("CrossFadedDataDrivenProperty",fc),ec("CrossFadedProperty",fd),ec("ColorRampProperty",fe);const fh={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class fi{constructor(a,b){this._structArray=a,this._pos1=b*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class fj{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(a,b){return a._trim(),b&&(a.isTransferred=!0,b.push(a.arrayBuffer)),{length:a.length,arrayBuffer:a.arrayBuffer}}static deserialize(a){const b=Object.create(this.prototype);return b.arrayBuffer=a.arrayBuffer,b.length=a.length,b.capacity=a.arrayBuffer.byteLength/b.bytesPerElement,b._refreshViews(),b}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(a){this.reserve(a),this.length=a}reserve(a){if(a>this.capacity){this.capacity=Math.max(a,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const b=this.uint8;this._refreshViews(),b&&this.uint8.set(b)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function fk(a,b=1){let c=0,d=0;return{members:a.map(a=>{const f=fh[a.type].BYTES_PER_ELEMENT,g=c=fl(c,Math.max(b,f)),h=a.components||1;return d=Math.max(d,f),c+=f*h,{name:a.name,type:a.type,components:h,offset:g}}),size:fl(c,Math.max(d,b)),alignment:b}}function fl(a,b){return Math.ceil(a/b)*b}class fm extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a,b){const c=this.length;return this.resize(c+1),this.emplace(c,a,b)}emplace(a,b,c){const d=2*a;return this.int16[d+0]=b,this.int16[d+1]=c,a}}fm.prototype.bytesPerElement=4,ec("StructArrayLayout2i4",fm);class fn extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a,b,c,d){const f=this.length;return this.resize(f+1),this.emplace(f,a,b,c,d)}emplace(a,b,c,d,f){const g=4*a;return this.int16[g+0]=b,this.int16[g+1]=c,this.int16[g+2]=d,this.int16[g+3]=f,a}}fn.prototype.bytesPerElement=8,ec("StructArrayLayout4i8",fn);class fo extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h){const i=this.length;return this.resize(i+1),this.emplace(i,a,b,c,d,f,g,h)}emplace(a,b,c,d,f,g,h,i){const j=6*a,k=12*a,l=3*a;return this.int16[j+0]=b,this.int16[j+1]=c,this.uint8[k+4]=d,this.uint8[k+5]=f,this.uint8[k+6]=g,this.uint8[k+7]=h,this.float32[l+2]=i,a}}fo.prototype.bytesPerElement=12,ec("StructArrayLayout2i4ub1f12",fo);class fp extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,b,c){const d=this.length;return this.resize(d+1),this.emplace(d,a,b,c)}emplace(a,b,c,d){const f=3*a;return this.float32[f+0]=b,this.float32[f+1]=c,this.float32[f+2]=d,a}}fp.prototype.bytesPerElement=12,ec("StructArrayLayout3f12",fp);class fq extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h,i,j,k){const l=this.length;return this.resize(l+1),this.emplace(l,a,b,c,d,f,g,h,i,j,k)}emplace(a,b,c,d,f,g,h,i,j,k,l){const m=10*a;return this.uint16[m+0]=b,this.uint16[m+1]=c,this.uint16[m+2]=d,this.uint16[m+3]=f,this.uint16[m+4]=g,this.uint16[m+5]=h,this.uint16[m+6]=i,this.uint16[m+7]=j,this.uint16[m+8]=k,this.uint16[m+9]=l,a}}fq.prototype.bytesPerElement=20,ec("StructArrayLayout10ui20",fq);class fr extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h,i){const j=this.length;return this.resize(j+1),this.emplace(j,a,b,c,d,f,g,h,i)}emplace(a,b,c,d,f,g,h,i,j){const k=8*a;return this.uint16[k+0]=b,this.uint16[k+1]=c,this.uint16[k+2]=d,this.uint16[k+3]=f,this.uint16[k+4]=g,this.uint16[k+5]=h,this.uint16[k+6]=i,this.uint16[k+7]=j,a}}fr.prototype.bytesPerElement=16,ec("StructArrayLayout8ui16",fr);class fs extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q){const r=this.length;return this.resize(r+1),this.emplace(r,a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q)}emplace(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r){const s=16*a;return this.int16[s+0]=b,this.int16[s+1]=c,this.int16[s+2]=d,this.int16[s+3]=f,this.uint16[s+4]=g,this.uint16[s+5]=h,this.uint16[s+6]=i,this.uint16[s+7]=j,this.int16[s+8]=k,this.int16[s+9]=l,this.int16[s+10]=m,this.int16[s+11]=n,this.int16[s+12]=o,this.int16[s+13]=p,this.int16[s+14]=q,this.int16[s+15]=r,a}}fs.prototype.bytesPerElement=32,ec("StructArrayLayout4i4ui4i4i32",fs);class ft extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(a){const b=this.length;return this.resize(b+1),this.emplace(b,a)}emplace(a,b){return this.uint32[1*a+0]=b,a}}ft.prototype.bytesPerElement=4,ec("StructArrayLayout1ul4",ft);class fu extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h,i,j,k,l,m,n){const o=this.length;return this.resize(o+1),this.emplace(o,a,b,c,d,f,g,h,i,j,k,l,m,n)}emplace(a,b,c,d,f,g,h,i,j,k,l,m,n,o){const p=20*a,q=10*a;return this.int16[p+0]=b,this.int16[p+1]=c,this.int16[p+2]=d,this.int16[p+3]=f,this.int16[p+4]=g,this.float32[q+3]=h,this.float32[q+4]=i,this.float32[q+5]=j,this.float32[q+6]=k,this.int16[p+14]=l,this.uint32[q+8]=m,this.uint16[p+18]=n,this.uint16[p+19]=o,a}}fu.prototype.bytesPerElement=40,ec("StructArrayLayout5i4f1i1ul2ui40",fu);class fv extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h){const i=this.length;return this.resize(i+1),this.emplace(i,a,b,c,d,f,g,h)}emplace(a,b,c,d,f,g,h,i){const j=8*a;return this.int16[j+0]=b,this.int16[j+1]=c,this.int16[j+2]=d,this.int16[j+4]=f,this.int16[j+5]=g,this.int16[j+6]=h,this.int16[j+7]=i,a}}fv.prototype.bytesPerElement=16,ec("StructArrayLayout3i2i2i16",fv);class fw extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f){const g=this.length;return this.resize(g+1),this.emplace(g,a,b,c,d,f)}emplace(a,b,c,d,f,g){const h=4*a,i=8*a;return this.float32[h+0]=b,this.float32[h+1]=c,this.float32[h+2]=d,this.int16[i+6]=f,this.int16[i+7]=g,a}}fw.prototype.bytesPerElement=16,ec("StructArrayLayout2f1f2i16",fw);class fx extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,b,c,d){const f=this.length;return this.resize(f+1),this.emplace(f,a,b,c,d)}emplace(a,b,c,d,f){const g=12*a,h=3*a;return this.uint8[g+0]=b,this.uint8[g+1]=c,this.float32[h+1]=d,this.float32[h+2]=f,a}}fx.prototype.bytesPerElement=12,ec("StructArrayLayout2ub2f12",fx);class fy extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,b,c){const d=this.length;return this.resize(d+1),this.emplace(d,a,b,c)}emplace(a,b,c,d){const f=3*a;return this.uint16[f+0]=b,this.uint16[f+1]=c,this.uint16[f+2]=d,a}}fy.prototype.bytesPerElement=6,ec("StructArrayLayout3ui6",fy);class fz extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v,w){const x=this.length;return this.resize(x+1),this.emplace(x,a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v,w)}emplace(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v,w,x){const y=30*a,z=15*a,A=60*a;return this.int16[y+0]=b,this.int16[y+1]=c,this.int16[y+2]=d,this.float32[z+2]=f,this.float32[z+3]=g,this.uint16[y+8]=h,this.uint16[y+9]=i,this.uint32[z+5]=j,this.uint32[z+6]=k,this.uint32[z+7]=l,this.uint16[y+16]=m,this.uint16[y+17]=n,this.uint16[y+18]=o,this.float32[z+10]=p,this.float32[z+11]=q,this.uint8[A+48]=r,this.uint8[A+49]=s,this.uint8[A+50]=u,this.uint32[z+13]=v,this.int16[y+28]=w,this.uint8[A+58]=x,a}}fz.prototype.bytesPerElement=60,ec("StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60",fz);class fA extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v,w,x,y,z,A,B,C,D,E,F){const G=this.length;return this.resize(G+1),this.emplace(G,a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v,w,x,y,z,A,B,C,D,E,F)}emplace(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v,w,x,y,z,A,B,C,D,E,F,G){const H=38*a,I=19*a;return this.int16[H+0]=b,this.int16[H+1]=c,this.int16[H+2]=d,this.float32[I+2]=f,this.float32[I+3]=g,this.int16[H+8]=h,this.int16[H+9]=i,this.int16[H+10]=j,this.int16[H+11]=k,this.int16[H+12]=l,this.int16[H+13]=m,this.uint16[H+14]=n,this.uint16[H+15]=o,this.uint16[H+16]=p,this.uint16[H+17]=q,this.uint16[H+18]=r,this.uint16[H+19]=s,this.uint16[H+20]=u,this.uint16[H+21]=v,this.uint16[H+22]=w,this.uint16[H+23]=x,this.uint16[H+24]=y,this.uint16[H+25]=z,this.uint16[H+26]=A,this.uint16[H+27]=B,this.uint16[H+28]=C,this.uint32[I+15]=D,this.float32[I+16]=E,this.float32[I+17]=F,this.float32[I+18]=G,a}}fA.prototype.bytesPerElement=76,ec("StructArrayLayout3i2f6i15ui1ul3f76",fA);class fB extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a){const b=this.length;return this.resize(b+1),this.emplace(b,a)}emplace(a,b){return this.float32[1*a+0]=b,a}}fB.prototype.bytesPerElement=4,ec("StructArrayLayout1f4",fB);class fC extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a,b,c){const d=this.length;return this.resize(d+1),this.emplace(d,a,b,c)}emplace(a,b,c,d){const f=3*a;return this.int16[f+0]=b,this.int16[f+1]=c,this.int16[f+2]=d,a}}fC.prototype.bytesPerElement=6,ec("StructArrayLayout3i6",fC);class fD extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h){const i=this.length;return this.resize(i+1),this.emplace(i,a,b,c,d,f,g,h)}emplace(a,b,c,d,f,g,h,i){const j=7*a;return this.float32[j+0]=b,this.float32[j+1]=c,this.float32[j+2]=d,this.float32[j+3]=f,this.float32[j+4]=g,this.float32[j+5]=h,this.float32[j+6]=i,a}}fD.prototype.bytesPerElement=28,ec("StructArrayLayout7f28",fD);class fE extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,b,c,d){const f=this.length;return this.resize(f+1),this.emplace(f,a,b,c,d)}emplace(a,b,c,d,f){const g=6*a;return this.uint32[3*a+0]=b,this.uint16[g+2]=c,this.uint16[g+3]=d,this.uint16[g+4]=f,a}}fE.prototype.bytesPerElement=12,ec("StructArrayLayout1ul3ui12",fE);class fF extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,b){const c=this.length;return this.resize(c+1),this.emplace(c,a,b)}emplace(a,b,c){const d=2*a;return this.uint16[d+0]=b,this.uint16[d+1]=c,a}}fF.prototype.bytesPerElement=4,ec("StructArrayLayout2ui4",fF);class fG extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a){const b=this.length;return this.resize(b+1),this.emplace(b,a)}emplace(a,b){return this.uint16[1*a+0]=b,a}}fG.prototype.bytesPerElement=2,ec("StructArrayLayout1ui2",fG);class fH extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,b){const c=this.length;return this.resize(c+1),this.emplace(c,a,b)}emplace(a,b,c){const d=2*a;return this.float32[d+0]=b,this.float32[d+1]=c,a}}fH.prototype.bytesPerElement=8,ec("StructArrayLayout2f8",fH);class fI extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,b,c,d){const f=this.length;return this.resize(f+1),this.emplace(f,a,b,c,d)}emplace(a,b,c,d,f){const g=4*a;return this.float32[g+0]=b,this.float32[g+1]=c,this.float32[g+2]=d,this.float32[g+3]=f,a}}fI.prototype.bytesPerElement=16,ec("StructArrayLayout4f16",fI);class fJ extends fi{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}fJ.prototype.size=40;class fK extends fu{get(a){return new fJ(this,a)}}ec("CollisionBoxArray",fK);class fL extends fi{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(a){this._structArray.uint8[this._pos1+49]=a}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(a){this._structArray.uint8[this._pos1+50]=a}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(a){this._structArray.uint32[this._pos4+13]=a}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(a){this._structArray.uint8[this._pos1+58]=a}}fL.prototype.size=60;class fM extends fz{get(a){return new fL(this,a)}}ec("PlacedSymbolArray",fM);class fN extends fi{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+11]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+13]}get key(){return this._structArray.uint16[this._pos2+14]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+17]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+19]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+21]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+22]}get featureIndex(){return this._structArray.uint16[this._pos2+23]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+25]}get numIconVertices(){return this._structArray.uint16[this._pos2+26]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+27]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+28]}get crossTileID(){return this._structArray.uint32[this._pos4+15]}set crossTileID(a){this._structArray.uint32[this._pos4+15]=a}get textOffset0(){return this._structArray.float32[this._pos4+16]}get textOffset1(){return this._structArray.float32[this._pos4+17]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+18]}}fN.prototype.size=76;class fO extends fA{get(a){return new fN(this,a)}}ec("SymbolInstanceArray",fO);class fP extends fB{getoffsetX(a){return this.float32[1*a+0]}}ec("GlyphOffsetArray",fP);class fQ extends fC{getx(a){return this.int16[3*a+0]}gety(a){return this.int16[3*a+1]}gettileUnitDistanceFromAnchor(a){return this.int16[3*a+2]}}ec("SymbolLineVertexArray",fQ);class fR extends fi{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}fR.prototype.size=12;class fS extends fE{get(a){return new fR(this,a)}}ec("FeatureIndexArray",fS);class fT extends fi{get a_centroid_pos0(){return this._structArray.uint16[this._pos2+0]}get a_centroid_pos1(){return this._structArray.uint16[this._pos2+1]}}fT.prototype.size=4;class fU extends fF{get(a){return new fT(this,a)}}ec("FillExtrusionCentroidArray",fU);const fV=fk([{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},]),fW=fk([{name:"a_dash_to",components:4,type:"Uint16"},{name:"a_dash_from",components:4,type:"Uint16"},]);var fX=bI(function(a){a.exports=function(a,b){var c,d,f,g,h,i,j,k;for(d=a.length-(c=3&a.length),f=b,h=3432918353,i=461845907,k=0;k>>16)*h&65535)<<16)&4294967295)<<15|j>>>17))*i+(((j>>>16)*i&65535)<<16)&4294967295)<<13|f>>>19))+((5*(f>>>16)&65535)<<16)&4294967295))+((58964+(g>>>16)&65535)<<16);switch(j=0,c){case 3:j^=(255&a.charCodeAt(k+2))<<16;case 2:j^=(255&a.charCodeAt(k+1))<<8;case 1:f^=j=(65535&(j=(j=(65535&(j^=255&a.charCodeAt(k)))*h+(((j>>>16)*h&65535)<<16)&4294967295)<<15|j>>>17))*i+(((j>>>16)*i&65535)<<16)&4294967295}return f^=a.length,f=2246822507*(65535&(f^=f>>>16))+((2246822507*(f>>>16)&65535)<<16)&4294967295,f=3266489909*(65535&(f^=f>>>13))+((3266489909*(f>>>16)&65535)<<16)&4294967295,(f^=f>>>16)>>>0}}),fY=bI(function(a){a.exports=function(a,b){for(var c,d=a.length,f=b^d,g=0;d>=4;)c=1540483477*(65535&(c=255&a.charCodeAt(g)|(255&a.charCodeAt(++g))<<8|(255&a.charCodeAt(++g))<<16|(255&a.charCodeAt(++g))<<24))+((1540483477*(c>>>16)&65535)<<16),f=1540483477*(65535&f)+((1540483477*(f>>>16)&65535)<<16)^(c=1540483477*(65535&(c^=c>>>24))+((1540483477*(c>>>16)&65535)<<16)),d-=4,++g;switch(d){case 3:f^=(255&a.charCodeAt(g+2))<<16;case 2:f^=(255&a.charCodeAt(g+1))<<8;case 1:f=1540483477*(65535&(f^=255&a.charCodeAt(g)))+((1540483477*(f>>>16)&65535)<<16)}return f=1540483477*(65535&(f^=f>>>13))+((1540483477*(f>>>16)&65535)<<16),(f^=f>>>15)>>>0}}),fZ=fX;fZ.murmur3=fX,fZ.murmur2=fY;class f${constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(a,b,c,d){this.ids.push(f_(a)),this.positions.push(b,c,d)}getPositions(a){const b=f_(a);let c=0,d=this.ids.length-1;for(;c>1;this.ids[f]>=b?d=f:c=f+1}const g=[];for(;this.ids[c]===b;)g.push({index:this.positions[3*c],start:this.positions[3*c+1],end:this.positions[3*c+2]}),c++;return g}static serialize(a,b){const c=new Float64Array(a.ids),d=new Uint32Array(a.positions);return f0(c,d,0,c.length-1),b&&b.push(c.buffer,d.buffer),{ids:c,positions:d}}static deserialize(a){const b=new f$;return b.ids=a.ids,b.positions=a.positions,b.indexed=!0,b}}function f_(a){const b=+a;return!isNaN(b)&&Number.MIN_SAFE_INTEGER<=b&&b<=Number.MAX_SAFE_INTEGER?b:fZ(String(a))}function f0(a,b,c,d){for(;c>1];let g=c-1,h=d+1;for(;;){do g++;while(a[g]f)if(g>=h)break;f1(a,g,h),f1(b,3*g,3*h),f1(b,3*g+1,3*h+1),f1(b,3*g+2,3*h+2)}h-c`u_${a}`),this.type=c}setUniform(a,b,c){a.set(c.constantOr(this.value))}getBinding(a,b,c){return"color"===this.type?new f5(a,b):new f3(a,b)}}class gb{constructor(a,b){this.uniformNames=b.map(a=>`u_${a}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(a,b){this.pixelRatioFrom=b.pixelRatio,this.pixelRatioTo=a.pixelRatio,this.patternFrom=b.tl.concat(b.br),this.patternTo=a.tl.concat(a.br)}setUniform(a,b,c,d){const f="u_pattern_to"===d||"u_dash_to"===d?this.patternTo:"u_pattern_from"===d||"u_dash_from"===d?this.patternFrom:"u_pixel_ratio_to"===d?this.pixelRatioTo:"u_pixel_ratio_from"===d?this.pixelRatioFrom:null;f&&a.set(f)}getBinding(a,b,c){return"u_pattern_from"===c||"u_pattern_to"===c||"u_dash_from"===c||"u_dash_to"===c?new f4(a,b):new f3(a,b)}}class gc{constructor(a,b,c,d){this.expression=a,this.type=c,this.maxValue=0,this.paintVertexAttributes=b.map(a=>({name:`a_${a}`,type:"Float32",components:"color"===c?2:1,offset:0})),this.paintVertexArray=new d}populatePaintArray(a,b,c,d,f,g){const h=this.paintVertexArray.length,i=this.expression.evaluate(new e2(0),b,{},f,d,g);this.paintVertexArray.resize(a),this._setPaintValue(h,a,i)}updatePaintArray(a,b,c,d,f){const g=this.expression.evaluate({zoom:0},c,d,void 0,f);this._setPaintValue(a,b,g)}_setPaintValue(a,b,c){if("color"===this.type){const d=f9(c);for(let f=a;f`u_${a}_t`),this.type=c,this.useIntegerZoom=d,this.zoom=f,this.maxValue=0,this.paintVertexAttributes=b.map(a=>({name:`a_${a}`,type:"Float32",components:"color"===c?4:2,offset:0})),this.paintVertexArray=new g}populatePaintArray(a,b,c,d,f,g){const h=this.expression.evaluate(new e2(this.zoom),b,{},f,d,g),i=this.expression.evaluate(new e2(this.zoom+1),b,{},f,d,g),j=this.paintVertexArray.length;this.paintVertexArray.resize(a),this._setPaintValue(j,a,h,i)}updatePaintArray(a,b,c,d,f){const g=this.expression.evaluate({zoom:this.zoom},c,d,void 0,f),h=this.expression.evaluate({zoom:this.zoom+1},c,d,void 0,f);this._setPaintValue(a,b,g,h)}_setPaintValue(a,b,c,d){if("color"===this.type){const f=f9(c),g=f9(d);for(let h=a;h!0){this.binders={},this._buffers=[];const d=[];for(const f in a.paint._values){if(!c(f))continue;const g=a.paint.get(f);if(!(g instanceof e8&&c6(g.property.specification)))continue;const h=gi(f,a.type),i=g.value,j=g.property.specification.type,k=g.property.useIntegerZoom,l=g.property.specification["property-type"],m="cross-faded"===l||"cross-faded-data-driven"===l,n="line-dasharray"===String(f)&&"constant"!==a.layout.get("line-cap").value.kind;if("constant"!==i.kind||n){if("source"===i.kind||n||m){const o=gl(f,j,"source");this.binders[f]=m?new ge(i,h,j,k,b,o,a.id):new gc(i,h,j,o),d.push(`/a_${f}`)}else{const p=gl(f,j,"composite");this.binders[f]=new gd(i,h,j,k,b,p),d.push(`/z_${f}`)}}else this.binders[f]=m?new gb(i.value,h):new ga(i.value,h,j),d.push(`/u_${f}`)}this.cacheKey=d.sort().join("")}getMaxValue(a){const b=this.binders[a];return b instanceof gc||b instanceof gd?b.maxValue:0}populatePaintArrays(a,b,c,d,f,g){for(const h in this.binders){const i=this.binders[h];(i instanceof gc||i instanceof gd||i instanceof ge)&&i.populatePaintArray(a,b,c,d,f,g)}}setConstantPatternPositions(a,b){for(const c in this.binders){const d=this.binders[c];d instanceof gb&&d.setConstantPatternPositions(a,b)}}updatePaintArrays(a,b,c,d,f,g){let h=!1;for(const i in a){const j=b.getPositions(i);for(const k of j){const l=c.feature(k.index);for(const m in this.binders){const n=this.binders[m];if((n instanceof gc||n instanceof gd||n instanceof ge)&& !0===n.expression.isStateDependent){const o=d.paint.get(m);n.expression=o.value,n.updatePaintArray(k.start,k.end,l,a[i],f,g),h=!0}}}}return h}defines(){const a=[];for(const b in this.binders){const c=this.binders[b];(c instanceof ga||c instanceof gb)&&a.push(...c.uniformNames.map(a=>`#define HAS_UNIFORM_${a}`))}return a}getBinderAttributes(){const a=[];for(const b in this.binders){const c=this.binders[b];if(c instanceof gc||c instanceof gd||c instanceof ge)for(let d=0;d!0){for(const d of(this.programConfigurations={},a))this.programConfigurations[d.id]=new gf(d,b,c);this.needsUpload=!1,this._featureMap=new f$,this._bufferOffset=0}populatePaintArrays(a,b,c,d,f,g,h){for(const i in this.programConfigurations)this.programConfigurations[i].populatePaintArrays(a,b,d,f,g,h);void 0!==b.id&&this._featureMap.add(b.id,c,this._bufferOffset,a),this._bufferOffset=a,this.needsUpload=!0}updatePaintArrays(a,b,c,d,f){for(const g of c)this.needsUpload=this.programConfigurations[g.id].updatePaintArrays(a,this._featureMap,b,g,d,f)||this.needsUpload}get(a){return this.programConfigurations[a]}upload(a){if(this.needsUpload){for(const b in this.programConfigurations)this.programConfigurations[b].upload(a);this.needsUpload=!1}}destroy(){for(const a in this.programConfigurations)this.programConfigurations[a].destroy()}}const gh={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from",],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from",],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from",],"line-dasharray":["dash_to","dash_from"]};function gi(a,b){return gh[a]||[a.replace(`${b}-`,"").replace(/-/g,"_"),]}const gj={"line-pattern":{source:fq,composite:fq},"fill-pattern":{source:fq,composite:fq},"fill-extrusion-pattern":{source:fq,composite:fq},"line-dasharray":{source:fr,composite:fr}},gk={color:{source:fH,composite:fI},number:{source:fB,composite:fH}};function gl(a,b,c){const d=gj[a];return d&&d[c]||gk[b][c]}ec("ConstantBinder",ga),ec("CrossFadedConstantBinder",gb),ec("SourceExpressionBinder",gc),ec("CrossFadedCompositeBinder",ge),ec("CompositeExpressionBinder",gd),ec("ProgramConfiguration",gf,{omit:["_buffers"]}),ec("ProgramConfigurationSet",gg);const gm="-transition";class gn extends bj{constructor(a,b){if(super(),this.id=a.id,this.type=a.type,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,"custom"!==a.type&&(this.metadata=a.metadata,this.minzoom=a.minzoom,this.maxzoom=a.maxzoom,"background"!==a.type&&"sky"!==a.type&&(this.source=a.source,this.sourceLayer=a["source-layer"],this.filter=a.filter),b.layout&&(this._unevaluatedLayout=new class{constructor(a){this._properties=a,this._values=Object.create(a.defaultPropertyValues)}getValue(a){return ak(this._values[a].value)}setValue(a,b){this._values[a]=new e3(this._values[a].property,null===b?void 0:ak(b))}serialize(){const a={};for(const b of Object.keys(this._values)){const c=this.getValue(b);void 0!==c&&(a[b]=c)}return a}possiblyEvaluate(a,b,c){const d=new e9(this._properties);for(const f of Object.keys(this._values))d._values[f]=this._values[f].possiblyEvaluate(a,b,c);return d}}(b.layout)),b.paint)){for(const c in this._transitionablePaint=new e5(b.paint),a.paint)this.setPaintProperty(c,a.paint[c],{validate:!1});for(const d in a.layout)this.setLayoutProperty(d,a.layout[d],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new e9(b.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(a){return"visibility"===a?this.visibility:this._unevaluatedLayout.getValue(a)}setLayoutProperty(a,b,c={}){null!=b&&this._validate(d5,`layers.${this.id}.layout.${a}`,a,b,c)||("visibility"!==a?this._unevaluatedLayout.setValue(a,b):this.visibility=b)}getPaintProperty(a){return ah(a,gm)?this._transitionablePaint.getTransition(a.slice(0,-gm.length)):this._transitionablePaint.getValue(a)}setPaintProperty(a,b,c={}){if(null!=b&&this._validate(d4,`layers.${this.id}.paint.${a}`,a,b,c))return!1;if(ah(a,gm))return this._transitionablePaint.setTransition(a.slice(0,-gm.length),b||void 0),!1;{const d=this._transitionablePaint._values[a],f="cross-faded-data-driven"===d.property.specification["property-type"],g=d.value.isDataDriven(),h=d.value;this._transitionablePaint.setValue(a,b),this._handleSpecialPaintPropertyUpdate(a);const i=this._transitionablePaint._values[a].value;return i.isDataDriven()||g||f||this._handleOverridablePaintPropertyUpdate(a,h,i)}}_handleSpecialPaintPropertyUpdate(a){}getProgramIds(){return null}getProgramConfiguration(a){return null}_handleOverridablePaintPropertyUpdate(a,b,c){return!1}isHidden(a){return!!(this.minzoom&&a=this.maxzoom)||"none"===this.visibility}updateTransitions(a){this._transitioningPaint=this._transitionablePaint.transitioned(a,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(a,b){a.getCrossfadeParameters&&(this._crossfadeParameters=a.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(a,void 0,b)),this.paint=this._transitioningPaint.possiblyEvaluate(a,void 0,b)}serialize(){const a={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(a.layout=a.layout||{},a.layout.visibility=this.visibility),aj(a,(a,b)=>!(void 0===a||"layout"===b&&!Object.keys(a).length||"paint"===b&&!Object.keys(a).length))}_validate(a,b,c,d,f={}){return(!f|| !1!==f.validate)&&d6(this,a.call(d1,{key:b,layerType:this.type,objectKey:c,value:d,styleSpec:bk,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const a in this.paint._values){const b=this.paint.get(a);if(b instanceof e8&&c6(b.property.specification)&&("source"===b.value.kind||"composite"===b.value.kind)&&b.value.isStateDependent)return!0}return!1}compileFilter(){this._filterCompiled||(this._featureFilter=dz(this.filter),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}}const go=fk([{name:"a_pos",components:2,type:"Int16"},],4),{members:gp}=go;class gq{constructor(a=[]){this.segments=a}prepareSegment(a,b,c,d){let f=this.segments[this.segments.length-1];return a>gq.MAX_VERTEX_ARRAY_LENGTH&&am(`Max vertices per segment is ${gq.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${a}`),(!f||f.vertexLength+a>gq.MAX_VERTEX_ARRAY_LENGTH||f.sortKey!==d)&&(f={vertexOffset:b.length,primitiveOffset:c.length,vertexLength:0,primitiveLength:0},void 0!==d&&(f.sortKey=d),this.segments.push(f)),f}get(){return this.segments}destroy(){for(const a of this.segments)for(const b in a.vaos)a.vaos[b].destroy()}static simpleSegment(a,b,c,d){return new gq([{vertexOffset:a,primitiveOffset:b,vertexLength:c,primitiveLength:d,vaos:{},sortKey:0},])}}gq.MAX_VERTEX_ARRAY_LENGTH=65535,ec("SegmentVector",gq);class gr{constructor(a,b){a&&(b?this.setSouthWest(a).setNorthEast(b):4===a.length?this.setSouthWest([a[0],a[1],]).setNorthEast([a[2],a[3]]):this.setSouthWest(a[0]).setNorthEast(a[1]))}setNorthEast(a){return this._ne=a instanceof gs?new gs(a.lng,a.lat):gs.convert(a),this}setSouthWest(a){return this._sw=a instanceof gs?new gs(a.lng,a.lat):gs.convert(a),this}extend(a){const b=this._sw,c=this._ne;let d,f;if(a instanceof gs)d=a,f=a;else{if(!(a instanceof gr))return Array.isArray(a)?4===a.length||a.every(Array.isArray)?this.extend(gr.convert(a)):this.extend(gs.convert(a)):this;if(d=a._sw,f=a._ne,!d||!f)return this}return b||c?(b.lng=Math.min(d.lng,b.lng),b.lat=Math.min(d.lat,b.lat),c.lng=Math.max(f.lng,c.lng),c.lat=Math.max(f.lat,c.lat)):(this._sw=new gs(d.lng,d.lat),this._ne=new gs(f.lng,f.lat)),this}getCenter(){return new gs((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new gs(this.getWest(),this.getNorth())}getSouthEast(){return new gs(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(a){const{lng:b,lat:c}=gs.convert(a);let d=this._sw.lng<=b&&b<=this._ne.lng;return this._sw.lng>this._ne.lng&&(d=this._sw.lng>=b&&b>=this._ne.lng),this._sw.lat<=c&&c<=this._ne.lat&&d}static convert(a){return!a||a instanceof gr?a:new gr(a)}}class gs{constructor(a,b){if(isNaN(a)||isNaN(b))throw Error(`Invalid LngLat object: (${a}, ${b})`);if(this.lng=+a,this.lat=+b,this.lat>90||this.lat< -90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new gs(Z(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(a){const b=Math.PI/180,c=this.lat*b,d=a.lat*b,f=Math.sin(c)*Math.sin(d)+Math.cos(c)*Math.cos(d)*Math.cos((a.lng-this.lng)*b);return 6371008.8*Math.acos(Math.min(f,1))}toBounds(a=0){const b=360*a/40075017,c=b/Math.cos(Math.PI/180*this.lat);return new gr(new gs(this.lng-c,this.lat-b),new gs(this.lng+c,this.lat+b))}static convert(a){if(a instanceof gs)return a;if(Array.isArray(a)&&(2===a.length||3===a.length))return new gs(Number(a[0]),Number(a[1]));if(!Array.isArray(a)&&"object"==typeof a&&null!==a)return new gs(Number("lng"in a?a.lng:a.lon),Number(a.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}const gt=2*Math.PI*6371008.8;function gu(a){return gt*Math.cos(a*Math.PI/180)}function gv(a){return(180+a)/360}function gw(a){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+a*Math.PI/360)))/360}function gx(a,b){return a/gu(b)}function gy(a){return 360*a-180}function gz(a){return 360/Math.PI*Math.atan(Math.exp((180-360*a)*Math.PI/180))-90}function gA(a,b){return a*gu(gz(b))}class gB{constructor(a,b,c=0){this.x=+a,this.y=+b,this.z=+c}static fromLngLat(a,b=0){const c=gs.convert(a);return new gB(gv(c.lng),gw(c.lat),gx(b,c.lat))}toLngLat(){return new gs(gy(this.x),gz(this.y))}toAltitude(){return gA(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/gt*(1/Math.cos(gz(this.y)*Math.PI/180))}}function gC(a,b,c,d,f,h,i,j,k){const l=(b+d)/2,m=(c+f)/2,n=new g(l,m);j(n),function(a,b,c,d,f,g){const h=c-f,i=d-g;return Math.abs((d-b)*h-(c-a)*i)/Math.hypot(h,i)}(n.x,n.y,h.x,h.y,i.x,i.y)>=k?(gC(a,b,c,l,m,h,n,j,k),gC(a,l,m,d,f,n,i,j,k)):a.push(i)}function gD(a,b,c){const d=[];let f,g,h;for(const i of a){const{x:j,y:k}=i;b(i),h?gC(d,f,g,j,k,h,i,b,c):d.push(i),f=j,g=k,h=i}return d}function gE(a,b){const c=Math.round(a.x*b),d=Math.round(a.y*b);return a.x=X(c,-16384,16383),a.y=X(d,-16384,16383),(ca.x+1||da.y+1)&&am("Geometry exceeds allowed extent, reduce your vector tile buffer size"),a}function gF(a,b,c){const d=a.loadGeometry(),f=a.extent,g=8192/f;if(b&&c&&c.projection.isReprojectedInTileSpace){const h=1<{const c=gy((b.x+a.x/f)/h),d=gz((b.y+a.y/f)/h),g=l.project(c,d);a.x=(g.x*i-j)*f,a.y=(g.y*i-k)*f};for(let n=0;n=f||p.y<0||p.y>=f||(m(p),o.push(p));d[n]=o}}for(const q of d)for(const r of q)gE(r,g);return d}function gG(a,b){return{type:a.type,id:a.id,properties:a.properties,geometry:b?gF(a):[]}}function gH(a,b,c,d,f){a.emplaceBack(2*b+(d+1)/2,2*c+(f+1)/2)}class gI{constructor(a){this.zoom=a.zoom,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(a=>a.id),this.index=a.index,this.hasPattern=!1,this.layoutVertexArray=new fm,this.indexArray=new fy,this.segments=new gq,this.programConfigurations=new gg(a.layers,a.zoom),this.stateDependentLayerIds=this.layers.filter(a=>a.isStateDependent()).map(a=>a.id)}populate(a,b,c,d){const f=this.layers[0],g=[];let h=null;for(const{feature:i,id:j,index:k,sourceLayerIndex:l}of("circle"===f.type&&(h=f.layout.get("circle-sort-key")),a)){const m=this.layers[0]._featureFilter.needGeometry,n=gG(i,m);if(!this.layers[0]._featureFilter.filter(new e2(this.zoom),n,c))continue;const o=h?h.evaluate(n,{},c):void 0,p={id:j,properties:i.properties,type:i.type,sourceLayerIndex:l,index:k,geometry:m?n.geometry:gF(i,c,d),patterns:{},sortKey:o};g.push(p)}for(const q of(h&&g.sort((a,b)=>a.sortKey-b.sortKey),g)){const{geometry:r,index:s,sourceLayerIndex:u}=q,v=a[s].feature;this.addFeature(q,r,s,b.availableImages,c),b.featureIndex.insert(v,r,s,u,this.index)}}update(a,b,c,d){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(a,b,this.stateDependentLayers,c,d)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(a){this.uploaded||(this.layoutVertexBuffer=a.createVertexBuffer(this.layoutVertexArray,gp),this.indexBuffer=a.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(a),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(a,b,c,d,f){for(const g of b)for(const h of g){const i=h.x,j=h.y;if(i<0||i>=8192||j<0||j>=8192)continue;const k=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,a.sortKey),l=k.vertexLength;gH(this.layoutVertexArray,i,j,-1,-1),gH(this.layoutVertexArray,i,j,1,-1),gH(this.layoutVertexArray,i,j,1,1),gH(this.layoutVertexArray,i,j,-1,1),this.indexArray.emplaceBack(l,l+1,l+2),this.indexArray.emplaceBack(l,l+3,l+2),k.vertexLength+=4,k.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,a,c,{},d,f)}}function gJ(a,b){for(let c=0;c1){if(gN(a,b))return!0;for(let d=0;d1?c:c.sub(b)._mult(f)._add(b))}function gR(a,b){let c,d,f,g=!1;for(let h=0;hb.y!=f.y>b.y&&b.x<(f.x-d.x)*(b.y-d.y)/(f.y-d.y)+d.x&&(g=!g)}return g}function gS(a,b){let c=!1;for(let d=0,f=a.length-1;db.y!=h.y>b.y&&b.x<(h.x-g.x)*(b.y-g.y)/(h.y-g.y)+g.x&&(c=!c)}return c}function gT(a,b,c,d,f){for(const h of a)if(b<=h.x&&c<=h.y&&d>=h.x&&f>=h.y)return!0;const i=[new g(b,c),new g(b,f),new g(d,f),new g(d,c),];if(a.length>2){for(const j of i)if(gS(a,j))return!0}for(let k=0;kf.x&&b.x>f.x||a.yf.y&&b.y>f.y)return!1;const g=an(a,b,c[0]);return g!==an(a,b,c[1])||g!==an(a,b,c[2])||g!==an(a,b,c[3])}function gV(a,b,c){const d=b.paint.get(a).value;return"constant"===d.kind?d.value:c.programConfigurations.get(b.id).getMaxValue(a)}function gW(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1])}function gX(a,b,c,d,f){if(!b[0]&&!b[1])return a;const h=g.convert(b)._mult(f);"viewport"===c&&h._rotate(-d);const i=[];for(let j=0;j{var g,h,i;const j=K([],c,a),k=1/j[3]/b*f;return g=j,h=j,i=[k,k,d?1/j[3]:k,k],g[0]=h[0]*i[0],g[1]=h[1]*i[1],g[2]=h[2]*i[2],g[3]=h[3]*i[3],g}),h=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5],].map(a=>{const b=D([],F([],J([],g[a[0]],g[a[1]]),J([],g[a[2]],g[a[1]]))),c=-E(b,g[a[1]]);return b.concat(c)});return new g_(g,h)}}class g0{constructor(a,b){this.min=a,this.max=b,this.center=B([],x([],this.min,this.max),.5)}quadrant(a){const b=[a%2==0,a<2],c=u(this.min),d=u(this.max);for(let f=0;f=0;if(0===g)return 0;g!==b.length&&(c=!1)}if(c)return 2;for(let i=0;i<3;i++){let j=Number.MAX_VALUE,k=-Number.MAX_VALUE;for(let l=0;lthis.max[i]-this.min[i])return 0}return 1}}function g1(a,b,c,d,f,g,h,i,j){if(g&&a.queryGeometry.isAboveHorizon)return!1;for(const k of(g&&(j*=a.pixelToTileUnitsFactor),b))for(const l of k){const m=l.add(i),n=f&&c.elevation?c.elevation.exaggeration()*f.getElevationAt(m.x,m.y,!0):0,o=g?m:g2(m,n,d),p=g?a.tilespaceRays.map(a=>g5(a,n)):a.queryGeometry.screenGeometry,q=K([],[l.x,l.y,n,1],d);if(!h&&g?j*=q[3]/c.cameraToCenterDistance:h&&!g&&(j*=c.cameraToCenterDistance/q[3]),gK(p,o,j))return!0}return!1}function g2(a,b,c){const d=K([],[a.x,a.y,b,1],c);return new g(d[0]/d[3],d[1]/d[3])}const g3=w(0,0,0),g4=w(0,0,1);function g5(a,b){const c=s();return g3[2]=b,a.intersectsPlane(g3,g4,c),new g(c[0],c[1])}class g6 extends gI{}function g7(a,{width:b,height:c},d,f){if(f){if(f instanceof Uint8ClampedArray)f=new Uint8Array(f.buffer);else if(f.length!==b*c*d)throw RangeError("mismatched image size")}else f=new Uint8Array(b*c*d);return a.width=b,a.height=c,a.data=f,a}function g8(a,{width:b,height:c},d){if(b===a.width&&c===a.height)return;const f=g7({},{width:b,height:c},d);g9(a,f,{x:0,y:0},{x:0,y:0},{width:Math.min(a.width,b),height:Math.min(a.height,c)},d),a.width=b,a.height=c,a.data=f.data}function g9(a,b,c,d,f,g){if(0===f.width||0===f.height)return b;if(f.width>a.width||f.height>a.height||c.x>a.width-f.width||c.y>a.height-f.height)throw RangeError("out of range source coordinates for image copy");if(f.width>b.width||f.height>b.height||d.x>b.width-f.width||d.y>b.height-f.height)throw RangeError("out of range destination coordinates for image copy");const h=a.data,i=b.data;for(let j=0;j{b[a.evaluationKey]=g;const h=a.expression.evaluate(b);f.data[c+d+0]=Math.floor(255*h.r/h.a),f.data[c+d+1]=Math.floor(255*h.g/h.a),f.data[c+d+2]=Math.floor(255*h.b/h.a),f.data[c+d+3]=Math.floor(255*h.a)};if(a.clips)for(let h=0,i=0;h80*c){d=g=a[0],f=h=a[1];for(var p=c;pg&&(g=i),j>h&&(h=j);k=0!==(k=Math.max(g-d,h-f))?1/k:0}return hl(n,o,c,d,f,k),o}function hj(a,b,c,d,f){var g,h;if(f===hH(a,b,c,d)>0)for(g=b;g=b;g-=d)h=hE(g,a[g],a[g+1],h);return h&&hy(h,h.next)&&(hF(h),h=h.next),h}function hk(a,b){if(!a)return a;b||(b=a);var c,d=a;do if(c=!1,d.steiner|| !hy(d,d.next)&&0!==hx(d.prev,d,d.next))d=d.next;else{if(hF(d),(d=b=d.prev)===d.next)break;c=!0}while(c||d!==b)return b}function hl(a,b,c,d,f,g,h){if(a){!h&&g&&function(a,b,c,d){var f=a;do null===f.z&&(f.z=ht(f.x,f.y,b,c,d)),f.prevZ=f.prev,f.nextZ=f.next,f=f.next;while(f!==a)f.prevZ.nextZ=null,f.prevZ=null,function(a){var b,c,d,f,g,h,i,j,k=1;do{for(c=a,a=null,g=null,h=0;c;){for(h++,d=c,i=0,b=0;b0||j>0&&d;)0!==i&&(0===j||!d||c.z<=d.z)?(f=c,c=c.nextZ,i--):(f=d,d=d.nextZ,j--),g?g.nextZ=f:a=f,f.prevZ=g,g=f;c=d}g.nextZ=null,k*=2}while(h>1)}(f)}(a,d,f,g);for(var i,j,k=a;a.prev!==a.next;)if(i=a.prev,j=a.next,g?hn(a,d,f,g):hm(a))b.push(i.i/c),b.push(a.i/c),b.push(j.i/c),hF(a),a=j.next,k=j.next;else if((a=j)===k){h?1===h?hl(a=ho(hk(a),b,c),b,c,d,f,g,2):2===h&&hp(a,b,c,d,f,g):hl(hk(a),b,c,d,f,g,1);break}}}function hm(a){var b=a.prev,c=a,d=a.next;if(hx(b,c,d)>=0)return!1;for(var f=a.next.next;f!==a.prev;){if(hv(b.x,b.y,c.x,c.y,d.x,d.y,f.x,f.y)&&hx(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function hn(a,b,c,d){var f=a.prev,g=a,h=a.next;if(hx(f,g,h)>=0)return!1;for(var i=f.x>g.x?f.x>h.x?f.x:h.x:g.x>h.x?g.x:h.x,j=f.y>g.y?f.y>h.y?f.y:h.y:g.y>h.y?g.y:h.y,k=ht(f.x=k&&n&&n.z<=l;){if(m!==a.prev&&m!==a.next&&hv(f.x,f.y,g.x,g.y,h.x,h.y,m.x,m.y)&&hx(m.prev,m,m.next)>=0||(m=m.prevZ,n!==a.prev&&n!==a.next&&hv(f.x,f.y,g.x,g.y,h.x,h.y,n.x,n.y)&&hx(n.prev,n,n.next)>=0))return!1;n=n.nextZ}for(;m&&m.z>=k;){if(m!==a.prev&&m!==a.next&&hv(f.x,f.y,g.x,g.y,h.x,h.y,m.x,m.y)&&hx(m.prev,m,m.next)>=0)return!1;m=m.prevZ}for(;n&&n.z<=l;){if(n!==a.prev&&n!==a.next&&hv(f.x,f.y,g.x,g.y,h.x,h.y,n.x,n.y)&&hx(n.prev,n,n.next)>=0)return!1;n=n.nextZ}return!0}function ho(a,b,c){var d=a;do{var f=d.prev,g=d.next.next;!hy(f,g)&&hz(f,d,d.next,g)&&hC(f,g)&&hC(g,f)&&(b.push(f.i/c),b.push(d.i/c),b.push(g.i/c),hF(d),hF(d.next),d=a=g),d=d.next}while(d!==a)return hk(d)}function hp(a,b,c,d,f,g){var h=a;do{for(var i=h.next.next;i!==h.prev;){if(h.i!==i.i&&hw(h,i)){var j=hD(h,i);return h=hk(h,h.next),j=hk(j,j.next),hl(h,b,c,d,f,g),void hl(j,b,c,d,f,g)}i=i.next}h=h.next}while(h!==a)}function hq(a,b){return a.x-b.x}function hr(a,b){var c=function(a,b){var c,d=b,f=a.x,g=a.y,h=-1/0;do{if(g<=d.y&&g>=d.next.y&&d.next.y!==d.y){var i=d.x+(g-d.y)*(d.next.x-d.x)/(d.next.y-d.y);if(i<=f&&i>h){if(h=i,i===f){if(g===d.y)return d;if(g===d.next.y)return d.next}c=d.x=d.x&&d.x>=l&&f!==d.x&&hv(gc.x||d.x===c.x&&hs(c,d)))&&(c=d,n=j)),d=d.next;while(d!==k)return c}(a,b);if(!c)return b;var d=hD(c,a),f=hk(c,c.next);return hk(d,d.next),b===c?f:b}function hs(a,b){return 0>hx(a.prev,a,b.prev)&&0>hx(b.next,a,a.next)}function ht(a,b,c,d,f){return(a=1431655765&((a=858993459&((a=252645135&((a=16711935&((a=32767*(a-c)*f)|a<<8))|a<<4))|a<<2))|a<<1))|(b=1431655765&((b=858993459&((b=252645135&((b=16711935&((b=32767*(b-d)*f)|b<<8))|b<<4))|b<<2))|b<<1))<<1}function hu(a){var b=a,c=a;do(b.x=0&&(a-h)*(d-i)-(c-h)*(b-i)>=0&&(c-h)*(g-i)-(f-h)*(d-i)>=0}function hw(a,b){return a.next.i!==b.i&&a.prev.i!==b.i&&!function(a,b){var c=a;do{if(c.i!==a.i&&c.next.i!==a.i&&c.i!==b.i&&c.next.i!==b.i&&hz(c,c.next,a,b))return!0;c=c.next}while(c!==a)return!1}(a,b)&&(hC(a,b)&&hC(b,a)&&function(a,b){var c=a,d=!1,f=(a.x+b.x)/2,g=(a.y+b.y)/2;do c.y>g!=c.next.y>g&&c.next.y!==c.y&&f<(c.next.x-c.x)*(g-c.y)/(c.next.y-c.y)+c.x&&(d=!d),c=c.next;while(c!==a)return d}(a,b)&&(hx(a.prev,a,b.prev)||hx(a,b.prev,b))||hy(a,b)&&hx(a.prev,a,a.next)>0&&hx(b.prev,b,b.next)>0)}function hx(a,b,c){return(b.y-a.y)*(c.x-b.x)-(b.x-a.x)*(c.y-b.y)}function hy(a,b){return a.x===b.x&&a.y===b.y}function hz(a,b,c,d){var f=hB(hx(a,b,c)),g=hB(hx(a,b,d)),h=hB(hx(c,d,a)),i=hB(hx(c,d,b));return f!==g&&h!==i||!(0!==f||!hA(a,c,b))||!(0!==g||!hA(a,d,b))||!(0!==h||!hA(c,a,d))||!(0!==i||!hA(c,b,d))}function hA(a,b,c){return b.x<=Math.max(a.x,c.x)&&b.x>=Math.min(a.x,c.x)&&b.y<=Math.max(a.y,c.y)&&b.y>=Math.min(a.y,c.y)}function hB(a){return a>0?1:a<0?-1:0}function hC(a,b){return 0>hx(a.prev,a,a.next)?hx(a,b,a.next)>=0&&hx(a,a.prev,b)>=0:0>hx(a,b,a.prev)||0>hx(a,a.next,b)}function hD(a,b){var c=new hG(a.i,a.x,a.y),d=new hG(b.i,b.x,b.y),f=a.next,g=b.prev;return a.next=b,b.prev=a,c.next=f,f.prev=c,d.next=c,c.prev=d,g.next=d,d.prev=g,d}function hE(a,b,c,d){var f=new hG(a,b,c);return d?(f.next=d.next,f.prev=d,d.next.prev=f,d.next=f):(f.prev=f,f.next=f),f}function hF(a){a.next.prev=a.prev,a.prev.next=a.next,a.prevZ&&(a.prevZ.nextZ=a.nextZ),a.nextZ&&(a.nextZ.prevZ=a.prevZ)}function hG(a,b,c){this.i=a,this.x=b,this.y=c,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function hH(a,b,c,d){for(var f=0,g=b,h=c-d;gc;){if(d-c>600){var g=d-c+1,h=b-c+1,i=Math.log(g),j=.5*Math.exp(2*i/3),k=.5*Math.sqrt(i*j*(g-j)/g)*(h-g/2<0?-1:1);hJ(a,b,Math.max(c,Math.floor(b-h*j/g+k)),Math.min(d,Math.floor(b+(g-h)*j/g+k)),f)}var l=a[b],m=c,n=d;for(hK(a,c,b),f(a[d],l)>0&&hK(a,c,d);mf(a[m],l);)m++;for(;f(a[n],l)>0;)n--}0===f(a[c],l)?hK(a,c,n):hK(a,++n,d),n<=b&&(c=n+1),b<=n&&(d=n-1)}}function hK(a,b,c){var d=a[b];a[b]=a[c],a[c]=d}function hL(a,b){return ab?1:0}function hM(a,b){const c=a.length;if(c<=1)return[a];const d=[];let f,g;for(let h=0;h1)for(let j=0;j0&&c.holes.push(d+=a[f-1].length)}return c},hh.default=hi;class hQ{constructor(a){this.zoom=a.zoom,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(a=>a.id),this.index=a.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new fm,this.indexArray=new fy,this.indexArray2=new fF,this.programConfigurations=new gg(a.layers,a.zoom),this.segments=new gq,this.segments2=new gq,this.stateDependentLayerIds=this.layers.filter(a=>a.isStateDependent()).map(a=>a.id)}populate(a,b,c,d){this.hasPattern=hO("fill",this.layers,b);const f=this.layers[0].layout.get("fill-sort-key"),g=[];for(const{feature:h,id:i,index:j,sourceLayerIndex:k}of a){const l=this.layers[0]._featureFilter.needGeometry,m=gG(h,l);if(!this.layers[0]._featureFilter.filter(new e2(this.zoom),m,c))continue;const n=f?f.evaluate(m,{},c,b.availableImages):void 0,o={id:i,properties:h.properties,type:h.type,sourceLayerIndex:k,index:j,geometry:l?m.geometry:gF(h,c,d),patterns:{},sortKey:n};g.push(o)}for(const p of(f&&g.sort((a,b)=>a.sortKey-b.sortKey),g)){const{geometry:q,index:r,sourceLayerIndex:s}=p;if(this.hasPattern){const u=hP("fill",this.layers,p,this.zoom,b);this.patternFeatures.push(u)}else this.addFeature(p,q,r,c,{},b.availableImages);b.featureIndex.insert(a[r].feature,q,r,s,this.index)}}update(a,b,c,d){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(a,b,this.stateDependentLayers,c,d)}addFeatures(a,b,c,d){for(const f of this.patternFeatures)this.addFeature(f,f.geometry,f.index,b,c,d)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(a){this.uploaded||(this.layoutVertexBuffer=a.createVertexBuffer(this.layoutVertexArray,hg),this.indexBuffer=a.createIndexBuffer(this.indexArray),this.indexBuffer2=a.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(a),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(a,b,c,d,f,g=[]){for(const h of hM(b,500)){let i=0;for(const j of h)i+=j.length;const k=this.segments.prepareSegment(i,this.layoutVertexArray,this.indexArray),l=k.vertexLength,m=[],n=[];for(const o of h){if(0===o.length)continue;o!==h[0]&&n.push(m.length/2);const p=this.segments2.prepareSegment(o.length,this.layoutVertexArray,this.indexArray2),q=p.vertexLength;this.layoutVertexArray.emplaceBack(o[0].x,o[0].y),this.indexArray2.emplaceBack(q+o.length-1,q),m.push(o[0].x),m.push(o[0].y);for(let r=1;r>3}if(f--,1===d||2===d)h+=a.readSVarint(),i+=a.readSVarint(),1===d&&(b&&j.push(b),b=[]),b.push(new g(h,i));else{if(7!==d)throw Error("unknown command "+d);b&&b.push(b[0].clone())}}return b&&j.push(b),j},hX.prototype.bbox=function(){var a=this._pbf;a.pos=this._geometry;for(var b=a.readVarint()+a.pos,c=1,d=0,f=0,g=0,h=1/0,i=-1/0,j=1/0,k=-1/0;a.pos>3}if(d--,1===c||2===c)(f+=a.readSVarint())i&&(i=f),(g+=a.readSVarint())k&&(k=g);else if(7!==c)throw Error("unknown command "+c)}return[h,j,i,k]},hX.prototype.toGeoJSON=function(a,b,c){var d,f,g=this.extent*Math.pow(2,c),h=this.extent*a,i=this.extent*b,j=this.loadGeometry(),k=hX.types[this.type];function l(a){for(var b=0;b>3;b=1===d?a.readString():2===d?a.readFloat():3===d?a.readDouble():4===d?a.readVarint64():5===d?a.readVarint():6===d?a.readSVarint():7===d?a.readBoolean():null}return b}(c))}function h1(a,b,c){if(3===a){var d=new h$(c,c.readVarint()+c.pos);d.length&&(b[d.name]=d)}}h_.prototype.feature=function(a){if(a<0||a>=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[a];var b=this._pbf.readVarint()+this._pbf.pos;return new hW(this._pbf,b,this.extent,this._keys,this._values)};var h2={VectorTile:function(a,b){this.layers=a.readFields(h1,{},b)},VectorTileFeature:hW,VectorTileLayer:h$};const h3=h2.VectorTileFeature.types;function h4(a,b,c,d,f,g,h,i){a.emplaceBack((b<<1)+h,(c<<1)+g,(Math.floor(8192*d)<<1)+f,Math.round(i))}class h5{constructor(){this.acc=new g(0,0),this.polyCount=[]}startRing(a){this.currentPolyCount={edges:0,top:0},this.polyCount.push(this.currentPolyCount),this.min||(this.min=new g(a.x,a.y),this.max=new g(a.x,a.y))}append(a,b){this.currentPolyCount.edges++,this.acc._add(a);let c=!!this.borders;const d=this.min,f=this.max;a.xf.x&&(f.x=a.x,c=!0),a.yf.y&&(f.y=a.y,c=!0),((0===a.x||8192===a.x)&&a.x===b.x)!=((0===a.y||8192===a.y)&&a.y===b.y)&&this.processBorderOverlap(a,b),c&&this.checkBorderIntersection(a,b)}checkBorderIntersection(a,b){b.x<0!=a.x<0&&this.addBorderIntersection(0,cr(b.y,a.y,(0-b.x)/(a.x-b.x))),b.x>8192!=a.x>8192&&this.addBorderIntersection(1,cr(b.y,a.y,(8192-b.x)/(a.x-b.x))),b.y<0!=a.y<0&&this.addBorderIntersection(2,cr(b.x,a.x,(0-b.y)/(a.y-b.y))),b.y>8192!=a.y>8192&&this.addBorderIntersection(3,cr(b.x,a.x,(8192-b.y)/(a.y-b.y)))}addBorderIntersection(a,b){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],]);const c=this.borders[a];bc[1]&&(c[1]=b)}processBorderOverlap(a,b){if(a.x===b.x){if(a.y===b.y)return;const c=0===a.x?0:1;this.addBorderIntersection(c,b.y),this.addBorderIntersection(c,a.y)}else{const d=0===a.y?2:3;this.addBorderIntersection(d,b.x),this.addBorderIntersection(d,a.x)}}centroid(){const a=this.polyCount.reduce((a,b)=>a+b.edges,0);return 0!==a?this.acc.div(a)._round():new g(0,0)}span(){return new g(this.max.x-this.min.x,this.max.y-this.min.y)}intersectsCount(){return this.borders.reduce((a,b)=>a+ +(b[0]!==Number.MAX_VALUE),0)}}class h6{constructor(a){this.zoom=a.zoom,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(a=>a.id),this.index=a.index,this.hasPattern=!1,this.layoutVertexArray=new fn,this.centroidVertexArray=new fU,this.indexArray=new fy,this.programConfigurations=new gg(a.layers,a.zoom),this.segments=new gq,this.stateDependentLayerIds=this.layers.filter(a=>a.isStateDependent()).map(a=>a.id),this.enableTerrain=a.enableTerrain}populate(a,b,c,d){for(const{feature:f,id:g,index:h,sourceLayerIndex:i}of(this.features=[],this.hasPattern=hO("fill-extrusion",this.layers,b),this.featuresOnBorder=[],this.borders=[[],[],[],[]],this.borderDone=[!1,!1,!1,!1],this.tileToMeter=function(a){const b=Math.exp(Math.PI*(1-a.y/(1<a.x<=0)||h.every(a=>a.x>=8192)||h.every(a=>a.y<=0)||h.every(a=>a.y>=8192))continue;for(let m=0;m=1){const r=n[p-1];if(!h7(q,r)){i&&i.append(q,r),l.vertexLength+4>gq.MAX_VERTEX_ARRAY_LENGTH&&(l=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));const s=q.sub(r)._perp(),u=s.x/(Math.abs(s.x)+Math.abs(s.y)),v=s.y>0?1:0,w=r.dist(q);o+w>32768&&(o=0),h4(this.layoutVertexArray,q.x,q.y,u,v,0,0,o),h4(this.layoutVertexArray,q.x,q.y,u,v,0,1,o),o+=w,h4(this.layoutVertexArray,r.x,r.y,u,v,0,0,o),h4(this.layoutVertexArray,r.x,r.y,u,v,0,1,o);const x=l.vertexLength;this.indexArray.emplaceBack(x,x+2,x+1),this.indexArray.emplaceBack(x+1,x+2,x+3),l.vertexLength+=4,l.primitiveLength+=2}}}}if(l.vertexLength+k>gq.MAX_VERTEX_ARRAY_LENGTH&&(l=this.segments.prepareSegment(k,this.layoutVertexArray,this.indexArray)),"Polygon"!==h3[a.type])continue;const y=[],z=[],A=l.vertexLength;for(let B=0;B0){if(i.borders){i.vertexArrayOffset=this.centroidVertexArray.length;const H=i.borders,I=this.featuresOnBorder.push(i)-1;for(let J=0;J<4;J++)H[J][0]!==Number.MAX_VALUE&&this.borders[J].push(I)}this.encodeCentroid(i.borders?void 0:i.centroid(),i)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,a,c,f,g,d)}sortBorders(){for(let a=0;a<4;a++)this.borders[a].sort((b,c)=>this.featuresOnBorder[b].borders[a][0]-this.featuresOnBorder[c].borders[a][0])}encodeCentroid(a,b,c=!0){let d,f;if(a){if(0!==a.y){const g=b.span()._mult(this.tileToMeter);d=(Math.max(a.x,1)<<3)+Math.min(7,Math.round(g.x/10)),f=(Math.max(a.y,1)<<3)+Math.min(7,Math.round(g.y/10))}else d=Math.ceil(7*(a.x+450)),f=0}else d=0,f=+c;let h=c?this.centroidVertexArray.length:b.vertexArrayOffset;for(const i of b.polyCount){c&&this.centroidVertexArray.resize(this.centroidVertexArray.length+4*i.edges+i.top);for(let j=0;j<2*i.edges;j++)this.centroidVertexArray.emplace(h++,0,f),this.centroidVertexArray.emplace(h++,d,f);for(let k=0;k8192)||a.y===b.y&&(a.y<0||a.y>8192)}ec("FillExtrusionBucket",h6,{omit:["layers","features"]}),ec("PartMetadata",h5);var h8={paint:new ff({"fill-extrusion-opacity":new fa(bk["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new fb(bk["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new fa(bk["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new fa(bk["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new fc(bk["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new fb(bk["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new fb(bk["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new fa(bk["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})};function h9(a,b){return a.x*b.x+a.y*b.y}function ia(a,b){if(1===a.length){let c=0;const d=b[c++];let f;for(;!f||d.equals(f);)if(!(f=b[c++]))return 1/0;for(;ca.id),this.index=a.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(a=>{this.gradients[a.id]={}}),this.layoutVertexArray=new fo,this.layoutVertexArray2=new fp,this.indexArray=new fy,this.programConfigurations=new gg(a.layers,a.zoom),this.segments=new gq,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(a=>a.isStateDependent()).map(a=>a.id)}populate(a,b,c,d){this.hasPattern=hO("line",this.layers,b);const f=this.layers[0].layout.get("line-sort-key"),g=[];for(const{feature:h,id:i,index:j,sourceLayerIndex:k}of a){const l=this.layers[0]._featureFilter.needGeometry,m=gG(h,l);if(!this.layers[0]._featureFilter.filter(new e2(this.zoom),m,c))continue;const n=f?f.evaluate(m,{},c):void 0,o={id:i,properties:h.properties,type:h.type,sourceLayerIndex:k,index:j,geometry:l?m.geometry:gF(h,c,d),patterns:{},sortKey:n};g.push(o)}f&&g.sort((a,b)=>a.sortKey-b.sortKey);const{lineAtlas:p,featureIndex:q}=b,r=this.addConstantDashes(p);for(const s of g){const{geometry:u,index:v,sourceLayerIndex:w}=s;if(r&&this.addFeatureDashes(s,p),this.hasPattern){const x=hP("line",this.layers,s,this.zoom,b);this.patternFeatures.push(x)}else this.addFeature(s,u,v,c,p.positions,b.availableImages);q.insert(a[v].feature,u,v,w,this.index)}}addConstantDashes(a){let b=!1;for(const c of this.layers){const d=c.paint.get("line-dasharray").value,f=c.layout.get("line-cap").value;if("constant"!==d.kind||"constant"!==f.kind)b=!0;else{const g=f.value,h=d.value;if(!h)continue;a.addDash(h.from,g),a.addDash(h.to,g),h.other&&a.addDash(h.other,g)}}return b}addFeatureDashes(a,b){const c=this.zoom;for(const d of this.layers){const f=d.paint.get("line-dasharray").value,g=d.layout.get("line-cap").value;if("constant"===f.kind&&"constant"===g.kind)continue;let h,i,j,k,l,m;if("constant"===f.kind){const n=f.value;if(!n)continue;h=n.other||n.to,i=n.to,j=n.from}else h=f.evaluate({zoom:c-1},a),i=f.evaluate({zoom:c},a),j=f.evaluate({zoom:c+1},a);"constant"===g.kind?k=l=m=g.value:(k=g.evaluate({zoom:c-1},a),l=g.evaluate({zoom:c},a),m=g.evaluate({zoom:c+1},a)),b.addDash(h,k),b.addDash(i,l),b.addDash(j,m);const o=b.getKey(h,k),p=b.getKey(i,l),q=b.getKey(j,m);a.patterns[d.id]={min:o,mid:p,max:q}}}update(a,b,c,d){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(a,b,this.stateDependentLayers,c,d)}addFeatures(a,b,c,d){for(const f of this.patternFeatures)this.addFeature(f,f.geometry,f.index,b,c,d)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(a){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=a.createVertexBuffer(this.layoutVertexArray2,ih)),this.layoutVertexBuffer=a.createVertexBuffer(this.layoutVertexArray,ie),this.indexBuffer=a.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(a),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(a){if(a.properties&&a.properties.hasOwnProperty("mapbox_clip_start")&&a.properties.hasOwnProperty("mapbox_clip_end"))return{start:+a.properties.mapbox_clip_start,end:+a.properties.mapbox_clip_end}}addFeature(a,b,c,d,f,g){const h=this.layers[0].layout,i=h.get("line-join").evaluate(a,{}),j=h.get("line-cap").evaluate(a,{}),k=h.get("line-miter-limit"),l=h.get("line-round-limit");for(const m of(this.lineClips=this.lineFeatureClips(a),b))this.addLine(m,a,i,j,k,l);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,a,c,f,g,d)}addLine(a,b,c,d,f,g){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineSoFar=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let h=0;h=2&&a[j-1].equals(a[j-2]);)j--;let k=0;for(;k0;if(z&&s>k){const B=n.dist(o);if(B>2*l){const C=n.sub(n.sub(o)._mult(l/B)._round());this.updateDistance(o,C),this.addCurrentVertex(C,q,0,0,m),o=C}}const D=o&&p;let E=D?c:i?"butt":d;if(D&&"round"===E&&(xf&&(E="bevel"),"bevel"===E&&(x>2&&(E="flipbevel"),x100)u=r.mult(-1);else{const F=x*q.add(r).mag()/q.sub(r).mag();u._perp()._mult(F*(A?-1:1))}this.addCurrentVertex(n,u,0,0,m),this.addCurrentVertex(n,u.mult(-1),0,0,m)}else if("bevel"===E||"fakeround"===E){const G=-Math.sqrt(x*x-1),H=A?G:0,I=A?0:G;if(o&&this.addCurrentVertex(n,q,H,I,m),"fakeround"===E){const J=Math.round(180*y/Math.PI/20);for(let K=1;K2*l){const Q=n.add(p.sub(n)._mult(l/P)._round());this.updateDistance(n,Q),this.addCurrentVertex(Q,r,0,0,m),n=Q}}}}addCurrentVertex(a,b,c,d,f,g=!1){const h=b.y*d-b.x,i=-b.y-b.x*d;this.addHalfVertex(a,b.x+b.y*c,b.y-b.x*c,g,!1,c,f),this.addHalfVertex(a,h,i,g,!0,-d,f)}addHalfVertex({x:a,y:b},c,d,f,g,h,i){this.layoutVertexArray.emplaceBack((a<<1)+(f?1:0),(b<<1)+(g?1:0),Math.round(63*c)+128,Math.round(63*d)+128,1+(0===h?0:h<0?-1:1),0,this.lineSoFar),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length,this.lineSoFar);const j=i.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,j),i.primitiveLength++),g?this.e2=j:this.e1=j}updateScaledDistance(){if(this.lineClips){const a=this.totalDistance/(this.lineClips.end-this.lineClips.start);this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=a*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(a,b){this.distance+=a.dist(b),this.updateScaledDistance()}}ec("LineBucket",ik,{omit:["layers","patternFeatures"]});const il=new ff({"line-cap":new fb(bk.layout_line["line-cap"]),"line-join":new fb(bk.layout_line["line-join"]),"line-miter-limit":new fa(bk.layout_line["line-miter-limit"]),"line-round-limit":new fa(bk.layout_line["line-round-limit"]),"line-sort-key":new fb(bk.layout_line["line-sort-key"])});var im={paint:new ff({"line-opacity":new fb(bk.paint_line["line-opacity"]),"line-color":new fb(bk.paint_line["line-color"]),"line-translate":new fa(bk.paint_line["line-translate"]),"line-translate-anchor":new fa(bk.paint_line["line-translate-anchor"]),"line-width":new fb(bk.paint_line["line-width"]),"line-gap-width":new fb(bk.paint_line["line-gap-width"]),"line-offset":new fb(bk.paint_line["line-offset"]),"line-blur":new fb(bk.paint_line["line-blur"]),"line-dasharray":new fc(bk.paint_line["line-dasharray"]),"line-pattern":new fc(bk.paint_line["line-pattern"]),"line-gradient":new fe(bk.paint_line["line-gradient"])}),layout:il};const io=new class extends fb{possiblyEvaluate(a,b){return b=new e2(Math.floor(b.zoom),{now:b.now,fadeDuration:b.fadeDuration,zoomHistory:b.zoomHistory,transition:b.transition}),super.possiblyEvaluate(a,b)}evaluate(a,b,c,d){return b=aa({},b,{zoom:Math.floor(b.zoom)}),super.evaluate(a,b,c,d)}}(im.paint.properties["line-width"].specification);function ip(a,b){return b>0?b+2*a:a}io.useIntegerZoom=!0;const iq=fk([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_tex_size",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_z_tile_anchor",components:4,type:"Int16"},],4),ir=fk([{name:"a_projected_pos",components:3,type:"Float32"},],4);fk([{name:"a_fade_opacity",components:1,type:"Uint32"},],4);const is=fk([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},]),it=fk([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"},]);fk([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"tileAnchorX"},{type:"Int16",name:"tileAnchorY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"},]);const iu=fk([{name:"a_pos",components:3,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"},],4),iv=fk([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"},],4);function iw(a,b){const{expression:c}=b;if("constant"===c.kind)return{kind:"constant",layoutSize:c.evaluate(new e2(a+1))};if("source"===c.kind)return{kind:"source"};{const{zoomStops:d,interpolationType:f}=c;let g=0;for(;g{a.text=function(a,b,c){const d=b.layout.get("text-transform").evaluate(c,{});return"uppercase"===d?a=a.toLocaleUpperCase():"lowercase"===d&&(a=a.toLocaleLowerCase()),e1.applyArabicShaping&&(a=e1.applyArabicShaping(a)),a}(a.text,b,c)}),a}const iB={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","\xa2":"¢","\xa3":"£","\xa5":"¥","\xa6":"¦","\xac":"¬","\xaf":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};function iC(a){return"︶"===a||"﹈"===a||"︸"===a||"﹄"===a||"﹂"===a||"︾"===a||"︼"===a||"︺"===a||"︘"===a||"﹀"===a||"︐"===a||"︓"===a||"︔"===a||"`"===a||" ̄"===a||"︑"===a||"︒"===a}function iD(a){return"︵"===a||"﹇"===a||"︷"===a||"﹃"===a||"﹁"===a||"︽"===a||"︻"===a||"︹"===a||"︗"===a||"︿"===a}var iE=function(a,b,c,d,f){var g,h,i=8*f-d-1,j=(1<>1,l=-7,m=c?f-1:0,n=c?-1:1,o=a[b+m];for(m+=n,g=o&(1<< -l)-1,o>>=-l,l+=i;l>0;g=256*g+a[b+m],m+=n,l-=8);for(h=g&(1<< -l)-1,g>>=-l,l+=d;l>0;h=256*h+a[b+m],m+=n,l-=8);if(0===g)g=1-k;else{if(g===j)return h?NaN:1/0*(o?-1:1);h+=Math.pow(2,d),g-=k}return(o?-1:1)*h*Math.pow(2,g-d)},iF=function(a,b,c,d,f,g){var h,i,j,k=8*g-f-1,l=(1<>1,n=23===f?5960464477539062e-23:0,o=d?0:g-1,p=d?1:-1,q=b<0||0===b&&1/b<0?1:0;for(isNaN(b=Math.abs(b))||b===1/0?(i=isNaN(b)?1:0,h=l):(h=Math.floor(Math.log(b)/Math.LN2),b*(j=Math.pow(2,-h))<1&&(h--,j*=2),(b+=h+m>=1?n/j:n*Math.pow(2,1-m))*j>=2&&(h++,j/=2),h+m>=l?(i=0,h=l):h+m>=1?(i=(b*j-1)*Math.pow(2,f),h+=m):(i=b*Math.pow(2,m-1)*Math.pow(2,f),h=0));f>=8;a[c+o]=255&i,o+=p,i/=256,f-=8);for(h=h<0;a[c+o]=255&h,o+=p,h/=256,k-=8);a[c+o-p]|=128*q},iG=iH;function iH(a){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(a)?a:new Uint8Array(a||0),this.pos=0,this.type=0,this.length=this.buf.length}iH.Varint=0,iH.Fixed64=1,iH.Bytes=2,iH.Fixed32=5;var iI="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function iJ(a){return a.type===iH.Bytes?a.readVarint()+a.pos:a.pos+1}function iK(a,b,c){var d=b<=16383?1:b<=2097151?2:b<=268435455?3:Math.floor(Math.log(b)/(7*Math.LN2));c.realloc(d);for(var f=c.pos-1;f>=a;f--)c.buf[f+d]=c.buf[f]}function iL(a,b){for(var c=0;c>>8,a[c+2]=b>>>16,a[c+3]=b>>>24}function iW(a,b){return(a[b]|a[b+1]<<8|a[b+2]<<16)+(a[b+3]<<24)}function iX(a,b,c){b.glyphs=[],1===a&&c.readMessage(iY,b)}function iY(a,b,c){if(3===a){const{id:d,bitmap:f,width:g,height:h,left:i,top:j,advance:k}=c.readMessage(iZ,{});b.glyphs.push({id:d,bitmap:new ha({width:g+6,height:h+6},f),metrics:{width:g,height:h,left:i,top:j,advance:k}})}else 4===a?b.ascender=c.readSVarint():5===a&&(b.descender=c.readSVarint())}function iZ(a,b,c){1===a?b.id=c.readVarint():2===a?b.bitmap=c.readBytes():3===a?b.width=c.readVarint():4===a?b.height=c.readVarint():5===a?b.left=c.readSVarint():6===a?b.top=c.readSVarint():7===a&&(b.advance=c.readVarint())}function i$(a){let b=0,c=0;for(const d of a)b+=d.w*d.h,c=Math.max(c,d.w);a.sort((a,b)=>b.h-a.h);const f=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(b/.95)),c),h:1/0},];let g=0,h=0;for(const i of a)for(let j=f.length-1;j>=0;j--){const k=f[j];if(!(i.w>k.w||i.h>k.h)){if(i.x=k.x,i.y=k.y,h=Math.max(h,i.y+i.h),g=Math.max(g,i.x+i.w),i.w===k.w&&i.h===k.h){const l=f.pop();j>3,g=this.pos;this.type=7&d,a(f,b,this),this.pos===g&&this.skip(d)}return b},readMessage:function(a,b){return this.readFields(a,b,this.readVarint()+this.pos)},readFixed32:function(){var a=iU(this.buf,this.pos);return this.pos+=4,a},readSFixed32:function(){var a=iW(this.buf,this.pos);return this.pos+=4,a},readFixed64:function(){var a=iU(this.buf,this.pos)+4294967296*iU(this.buf,this.pos+4);return this.pos+=8,a},readSFixed64:function(){var a=iU(this.buf,this.pos)+4294967296*iW(this.buf,this.pos+4);return this.pos+=8,a},readFloat:function(){var a=iE(this.buf,this.pos,!0,23,4);return this.pos+=4,a},readDouble:function(){var a=iE(this.buf,this.pos,!0,52,8);return this.pos+=8,a},readVarint:function(a){var b,c,d=this.buf;return b=127&(c=d[this.pos++]),c<128?b:(b|=(127&(c=d[this.pos++]))<<7,c<128?b:(b|=(127&(c=d[this.pos++]))<<14,c<128?b:(b|=(127&(c=d[this.pos++]))<<21,c<128?b:function(a,b,c){var d,f,g,h,i=c.buf;if(g=(112&(h=i[c.pos++]))>>4,h<128||(g|=(127&(h=i[c.pos++]))<<3,h<128)||(g|=(127&(h=i[c.pos++]))<<10,h<128)||(g|=(127&(h=i[c.pos++]))<<17,h<128)||(g|=(127&(h=i[c.pos++]))<<24,h<128)||(g|=(1&(h=i[c.pos++]))<<31,h<128))return d=a,f=g,b?4294967296*f+(d>>>0):4294967296*(f>>>0)+(d>>>0);throw Error("Expected varint not more than 10 bytes")}(b|=(15&(c=d[this.pos]))<<28,a,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var a=this.readVarint();return a%2==1?-((a+1)/2):a/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var a,b,c,d=this.readVarint()+this.pos,f=this.pos;return this.pos=d,d-f>=12&&iI?(a=this.buf,b=f,c=d,iI.decode(a.subarray(b,c))):function(a,b,c){for(var d="",f=b;f239?4:j>223?3:j>191?2:1;if(f+l>c)break;1===l?j<128&&(k=j):2===l?128==(192&(g=a[f+1]))&&(k=(31&j)<<6|63&g)<=127&&(k=null):3===l?(h=a[f+2],128==(192&(g=a[f+1]))&&128==(192&h)&&((k=(15&j)<<12|(63&g)<<6|63&h)<=2047||k>=55296&&k<=57343)&&(k=null)):4===l&&(h=a[f+2],i=a[f+3],128==(192&(g=a[f+1]))&&128==(192&h)&&128==(192&i)&&((k=(15&j)<<18|(63&g)<<12|(63&h)<<6|63&i)<=65535||k>=1114112)&&(k=null)),null===k?(k=65533,l=1):k>65535&&(k-=65536,d+=String.fromCharCode(k>>>10&1023|55296),k=56320|1023&k),d+=String.fromCharCode(k),f+=l}return d}(this.buf,f,d)},readBytes:function(){var a=this.readVarint()+this.pos,b=this.buf.subarray(this.pos,a);return this.pos=a,b},readPackedVarint:function(a,b){if(this.type!==iH.Bytes)return a.push(this.readVarint(b));var c=iJ(this);for(a=a||[];this.pos127;);else if(b===iH.Bytes)this.pos=this.readVarint()+this.pos;else if(b===iH.Fixed32)this.pos+=4;else{if(b!==iH.Fixed64)throw Error("Unimplemented type: "+b);this.pos+=8}},writeTag:function(a,b){this.writeVarint(a<<3|b)},realloc:function(a){for(var b=this.length||16;b268435455||a<0?function(a,b){var c,d,f,g,h,i,j;if(a>=0?(c=a%4294967296|0,d=a/4294967296|0):(d=~(-a/4294967296),4294967295^(c=~(-a%4294967296))?c=c+1|0:(c=0,d=d+1|0)),a>=18446744073709552e3||a< -18446744073709552e3)throw Error("Given varint doesn't fit into 10 bytes");b.realloc(10),f=c,(g=b).buf[g.pos++]=127&f|128,f>>>=7,g.buf[g.pos++]=127&f|128,f>>>=7,g.buf[g.pos++]=127&f|128,f>>>=7,g.buf[g.pos++]=127&f|128,g.buf[g.pos]=127&(f>>>=7),h=d,i=b,j=(7&h)<<4,i.buf[i.pos++]|=j|((h>>>=3)?128:0),h&&(i.buf[i.pos++]=127&h|((h>>>=7)?128:0),h&&(i.buf[i.pos++]=127&h|((h>>>=7)?128:0),h&&(i.buf[i.pos++]=127&h|((h>>>=7)?128:0),h&&(i.buf[i.pos++]=127&h|((h>>>=7)?128:0),h&&(i.buf[i.pos++]=127&h)))))}(a,this):(this.realloc(4),this.buf[this.pos++]=127&a|(a>127?128:0),a<=127||(this.buf[this.pos++]=127&(a>>>=7)|(a>127?128:0),a<=127||(this.buf[this.pos++]=127&(a>>>=7)|(a>127?128:0),a<=127||(this.buf[this.pos++]=a>>>7&127))))},writeSVarint:function(a){this.writeVarint(a<0?-(2*a)-1:2*a)},writeBoolean:function(a){this.writeVarint(Boolean(a))},writeString:function(a){a=String(a),this.realloc(4*a.length),this.pos++;var b=this.pos;this.pos=function(a,b,c){for(var d,f,g=0;g55295&&d<57344){if(!f){d>56319||g+1===b.length?(a[c++]=239,a[c++]=191,a[c++]=189):f=d;continue}if(d<56320){a[c++]=239,a[c++]=191,a[c++]=189,f=d;continue}d=f-55296<<10|d-56320|65536,f=null}else f&&(a[c++]=239,a[c++]=191,a[c++]=189,f=null);d<128?a[c++]=d:(d<2048?a[c++]=d>>6|192:(d<65536?a[c++]=d>>12|224:(a[c++]=d>>18|240,a[c++]=d>>12&63|128),a[c++]=d>>6&63|128),a[c++]=63&d|128)}return c}(this.buf,a,this.pos);var c=this.pos-b;c>=128&&iK(b,c,this),this.pos=b-1,this.writeVarint(c),this.pos+=c},writeFloat:function(a){this.realloc(4),iF(this.buf,a,this.pos,!0,23,4),this.pos+=4},writeDouble:function(a){this.realloc(8),iF(this.buf,a,this.pos,!0,52,8),this.pos+=8},writeBytes:function(a){var b=a.length;this.writeVarint(b),this.realloc(b);for(var c=0;c=128&&iK(c,d,this),this.pos=c-1,this.writeVarint(d),this.pos+=d},writeMessage:function(a,b,c){this.writeTag(a,iH.Bytes),this.writeRawMessage(b,c)},writePackedVarint:function(a,b){b.length&&this.writeMessage(a,iL,b)},writePackedSVarint:function(a,b){b.length&&this.writeMessage(a,iM,b)},writePackedBoolean:function(a,b){b.length&&this.writeMessage(a,iP,b)},writePackedFloat:function(a,b){b.length&&this.writeMessage(a,iN,b)},writePackedDouble:function(a,b){b.length&&this.writeMessage(a,iO,b)},writePackedFixed32:function(a,b){b.length&&this.writeMessage(a,iQ,b)},writePackedSFixed32:function(a,b){b.length&&this.writeMessage(a,iR,b)},writePackedFixed64:function(a,b){b.length&&this.writeMessage(a,iS,b)},writePackedSFixed64:function(a,b){b.length&&this.writeMessage(a,iT,b)},writeBytesField:function(a,b){this.writeTag(a,iH.Bytes),this.writeBytes(b)},writeFixed32Field:function(a,b){this.writeTag(a,iH.Fixed32),this.writeFixed32(b)},writeSFixed32Field:function(a,b){this.writeTag(a,iH.Fixed32),this.writeSFixed32(b)},writeFixed64Field:function(a,b){this.writeTag(a,iH.Fixed64),this.writeFixed64(b)},writeSFixed64Field:function(a,b){this.writeTag(a,iH.Fixed64),this.writeSFixed64(b)},writeVarintField:function(a,b){this.writeTag(a,iH.Varint),this.writeVarint(b)},writeSVarintField:function(a,b){this.writeTag(a,iH.Varint),this.writeSVarint(b)},writeStringField:function(a,b){this.writeTag(a,iH.Bytes),this.writeString(b)},writeFloatField:function(a,b){this.writeTag(a,iH.Fixed32),this.writeFloat(b)},writeDoubleField:function(a,b){this.writeTag(a,iH.Fixed64),this.writeDouble(b)},writeBooleanField:function(a,b){this.writeVarintField(a,Boolean(b))}};class i_{constructor(a,{pixelRatio:b,version:c,stretchX:d,stretchY:f,content:g}){this.paddedRect=a,this.pixelRatio=b,this.stretchX=d,this.stretchY=f,this.content=g,this.version=c}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1,]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1,]}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio,]}}class i0{constructor(a,b){const c={},d={};this.haveRenderCallbacks=[];const f=[];this.addImages(a,c,f),this.addImages(b,d,f);const{w:g,h:h}=i$(f),i=new hb({width:g||1,height:h||1});for(const j in a){const k=a[j],l=c[j].paddedRect;hb.copy(k.data,i,{x:0,y:0},{x:l.x+1,y:l.y+1},k.data)}for(const m in b){const n=b[m],o=d[m].paddedRect,p=o.x+1,q=o.y+1,r=n.data.width,s=n.data.height;hb.copy(n.data,i,{x:0,y:0},{x:p,y:q},n.data),hb.copy(n.data,i,{x:0,y:s-1},{x:p,y:q-1},{width:r,height:1}),hb.copy(n.data,i,{x:0,y:0},{x:p,y:q+s},{width:r,height:1}),hb.copy(n.data,i,{x:r-1,y:0},{x:p-1,y:q},{width:1,height:s}),hb.copy(n.data,i,{x:0,y:0},{x:p+r,y:q},{width:1,height:s})}this.image=i,this.iconPositions=c,this.patternPositions=d}addImages(a,b,c){for(const d in a){const f=a[d],g={x:0,y:0,w:f.data.width+2,h:f.data.height+2};c.push(g),b[d]=new i_(g,f),f.hasRenderCallback&&this.haveRenderCallbacks.push(d)}}patchUpdatedImages(a,b){for(const c in a.dispatchRenderCallbacks(this.haveRenderCallbacks),a.updatedImages)this.patchUpdatedImage(this.iconPositions[c],a.getImage(c),b),this.patchUpdatedImage(this.patternPositions[c],a.getImage(c),b)}patchUpdatedImage(a,b,c){if(!a||!b||a.version===b.version)return;a.version=b.version;const[d,f]=a.tl;c.update(b.data,void 0,{x:d,y:f})}}ec("ImagePosition",i_),ec("ImageAtlas",i0);const i1={horizontal:1,vertical:2,horizontalOnly:3};class i2{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(a,b){const c=new i2;return c.scale=a||1,c.fontStack=b,c}static forImage(a){const b=new i2;return b.imageName=a,b}}class i3{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(a,b){const c=new i3;for(let d=0;d=0&&d>=a&&i5[this.text.charCodeAt(d)];d--)c--;this.text=this.text.substring(a,c),this.sectionIndex=this.sectionIndex.slice(a,c)}substring(a,b){const c=new i3;return c.text=this.text.substring(a,b),c.sectionIndex=this.sectionIndex.slice(a,b),c.sections=this.sections,c}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((a,b)=>Math.max(a,this.sections[b].scale),0)}addTextSection(a,b){this.text+=a.text,this.sections.push(i2.forText(a.scale,a.fontStack||b));const c=this.sections.length-1;for(let d=0;d=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function i4(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q){const r=i3.fromFeature(a,f);let s;m===i1.vertical&&r.verticalizePunctuation(n);const{processBidirectionalText:u,processStyledBidirectionalText:v}=e1;if(u&&1===r.sections.length){s=[];const w=u(r.toString(),jc(r,k,g,b,d,o,p));for(const x of w){const y=new i3;y.text=x,y.sections=r.sections;for(let z=0;z0&&U>E&&(E=U)}else{const V=c[I.fontStack];if(!V)continue;V[K]&&(N=V[K]);const W=b[I.fontStack];if(!W)continue;const X=W.glyphs[K];if(!X)continue;if(M=X.metrics,P=8203!==K?24:0,s){const Y=void 0!==W.ascender?Math.abs(W.ascender):0,Z=void 0!==W.descender?Math.abs(W.descender):0,$=(Y+Z)*L;F<$&&(F=$,G=(Y-Z)/2*L),Q=-Y*L}else Q=(A-L)*24-17}R?(a.verticalizable=!0,D.push({glyph:K,imageName:O,x:o,y:p+Q,vertical:R,scale:L,localGlyph:M.localGlyph,fontStack:I.fontStack,sectionIndex:J,metrics:M,rect:N}),o+=P*L+k):(D.push({glyph:K,imageName:O,x:o,y:p+Q,vertical:R,scale:L,localGlyph:M.localGlyph,fontStack:I.fontStack,sectionIndex:J,metrics:M,rect:N}),o+=M.advance*L+k)}0!==D.length&&(q=Math.max(o-k,q),s?je(D,r,E,G,g*A/2):je(D,r,E,0,g/2)),o=0;const _=g*A+E;C.lineOffset=Math.max(E,B),p+=_,++y}const aa=p,{horizontalAlign:ab,verticalAlign:ac}=jd(h);(function(a,b,c,d,f,g){const h=(b-c)*f,i=-g*d;for(const j of a)for(const k of j.positionedGlyphs)k.x+=h,k.y+=i})(a.positionedLines,r,ab,ac,q,aa),a.top+=-ac*aa,a.bottom=a.top+aa,a.left+=-ab*q,a.right=a.left+q,a.hasBaseline=s}(E,b,c,d,s,h,i,j,m,k,n,q),!function(a){for(const b of a)if(0!==b.positionedGlyphs.length)return!1;return!0}(D)&&E}const i5={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},i6={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function i7(a,b,c,d,f,g){if(b.imageName){const h=d[b.imageName];return h?h.displaySize[0]*b.scale*24/g+f:0}{const i=c[b.fontStack],j=i&&i.glyphs[a];return j?j.metrics.advance*b.scale+f:0}}function i8(a,b,c,d){const f=Math.pow(a-b,2);return d?a=0;let m=0;for(let n=0;n -c/2;){if(--h<0)return!1;i-=a[h].dist(g),g=a[h]}i+=a[h].dist(a[h+1]),h++;const j=[];let k=0;for(;id;)k-=j.shift().angleDelta;if(k>f)return!1;h++,i+=l.dist(m)}return!0}function jj(a){let b=0;for(let c=0;ck){const p=(k-j)/o,q=cr(m.x,n.x,p),r=cr(m.y,n.y,p),s=new jh(q,r,0,n.angleTo(m),l);return!h||ji(a,s,i,h,b)?s:void 0}j+=o}}function jn(a,b,c,d,f,g,h,i,j){const k=jk(d,g,h),l=jl(d,f),m=l*h,n=0===a[0].x||a[0].x===j||0===a[0].y||a[0].y===j;return b-m=0&&w=0&&x=0&&n+k<=l){const y=new jh(w,x,0,u,p);y._round(),d&&!ji(a,y,g,d,f)||o.push(y)}}m+=s}return i||o.length||h||(o=jo(a,m/2,c,d,f,g,h,!0,j)),o}function jp(a,b,c,d,f){const h=[];for(let i=0;i=d&&n.x>=d||(m.x>=d?m=new g(d,m.y+(d-m.x)/(n.x-m.x)*(n.y-m.y))._round():n.x>=d&&(n=new g(d,m.y+(d-m.x)/(n.x-m.x)*(n.y-m.y))._round()),m.y>=f&&n.y>=f||(m.y>=f?m=new g(m.x+(f-m.y)/(n.y-m.y)*(n.x-m.x),f)._round():n.y>=f&&(n=new g(m.x+(f-m.y)/(n.y-m.y)*(n.x-m.x),f)._round()),k&&m.equals(k[k.length-1])||(k=[m],h.push(k)),k.push(n)))))}}return h}function jq(a,b,c,d,f,g,h,i,j){for(let k=b;k -1)g[++j]=i,h[j]=k,h[j+1]=1e20}for(let n=0,o=0;n{let d=this.entries[a];d||(d=this.entries[a]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let f=d.glyphs[b];if(void 0!==f)return void c(null,{stack:a,id:b,glyph:f});if(f=this._tinySDF(d,a,b))return d.glyphs[b]=f,void c(null,{stack:a,id:b,glyph:f});const g=Math.floor(b/256);if(256*g>65535)return void c(Error("glyphs > 65535 not supported"));if(d.ranges[g])return void c(null,{stack:a,id:b,glyph:f});let h=d.requests[g];h||(h=d.requests[g]=[],jt.loadGlyphRange(a,g,this.url,this.requestManager,(a,b)=>{if(b){for(const c in d.ascender=b.ascender,d.descender=b.descender,b.glyphs)this._doesCharSupportLocalGlyph(+c)||(d.glyphs[+c]=b.glyphs[+c]);d.ranges[g]=!0}for(const f of h)f(a,b);delete d.requests[g]})),h.push((d,f)=>{d?c(d):f&&c(null,{stack:a,id:b,glyph:f.glyphs[b]||null})})},(a,c)=>{if(a)b(a);else if(c){const d={};for(const{stack:f,id:g,glyph:h}of c)void 0===d[f]&&(d[f]={}),void 0===d[f].glyphs&&(d[f].glyphs={}),d[f].glyphs[g]=h&&{id:h.id,bitmap:h.bitmap.clone(),metrics:h.metrics},d[f].ascender=this.entries[f].ascender,d[f].descender=this.entries[f].descender;b(null,d)}})}_doesCharSupportLocalGlyph(a){return this.localGlyphMode!==js.none&&(this.localGlyphMode===js.all?!!this.localFontFamily:!!this.localFontFamily&&(ez(a)||eC(a)||eq(a)||er(a))||ep(a))}_tinySDF(a,b,c){const d=this.localFontFamily;if(!d||!this._doesCharSupportLocalGlyph(c))return;let f=a.tinySDF;if(!f){let g="400";/bold/i.test(b)?g="900":/medium/i.test(b)?g="500":/light/i.test(b)&&(g="200"),(f=a.tinySDF=new jt.TinySDF({fontFamily:d,fontWeight:g,fontSize:48,buffer:6,radius:16})).fontWeight=g}if(this.localGlyphs[f.fontWeight][c])return this.localGlyphs[f.fontWeight][c];const h=String.fromCharCode(c),{data:i,width:j,height:k,glyphWidth:l,glyphHeight:m,glyphLeft:n,glyphTop:o,glyphAdvance:p}=f.draw(h);return this.localGlyphs[f.fontWeight][c]={id:c,bitmap:new ha({width:j,height:k},i),metrics:{width:l/2,height:m/2,left:n/2,top:o/2-27,advance:p/2,localGlyph:!0}}}}function ju(a,b,c,d){const f=[],h=a.image,i=h.pixelRatio,j=h.paddedRect.w-2,k=h.paddedRect.h-2,l=a.right-a.left,m=a.bottom-a.top,n=h.stretchX||[[0,j]],o=h.stretchY||[[0,k]],p=(a,b)=>a+b[1]-b[0],q=n.reduce(p,0),r=o.reduce(p,0),s=j-q,u=k-r;let v=0,w=q,x=0,y=r,z=0,A=s,B=0,C=u;if(h.content&&d){const D=h.content;v=jv(n,0,D[0]),x=jv(o,0,D[1]),w=jv(n,D[0],D[2]),y=jv(o,D[1],D[3]),z=D[0]-v,B=D[1]-x,A=D[2]-D[0]-w,C=D[3]-D[1]-y}const E=(d,f,j,k)=>{const n=(d.stretch-v)/w*l+a.left,o=d.fixed-z-A*d.stretch/q,p=(f.stretch-x)/y*m+a.top,s=f.fixed-B-C*f.stretch/r,u=(j.stretch-v)/w*l+a.left,D=j.fixed-z-A*j.stretch/q,E=(k.stretch-x)/y*m+a.top,F=k.fixed-B-C*k.stretch/r,G=new g(n,p),H=new g(u,p),I=new g(u,E),J=new g(n,E),K=new g(o/i,s/i),L=new g(D/i,F/i),M=b*Math.PI/180;if(M){const N=Math.sin(M),O=Math.cos(M),P=[O,-N,N,O];G._matMult(P),H._matMult(P),J._matMult(P),I._matMult(P)}const Q=d.stretch+d.fixed,R=f.stretch+f.fixed;return{tl:G,tr:H,bl:J,br:I,tex:{x:h.paddedRect.x+1+Q,y:h.paddedRect.y+1+R,w:j.stretch+j.fixed-Q,h:k.stretch+k.fixed-R},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:K,pixelOffsetBR:L,minFontScaleX:A/i/l,minFontScaleY:C/i/m,isSDF:c}};if(d&&(h.stretchX||h.stretchY)){const F=jw(n,s,q),G=jw(o,u,r);for(let H=0;H{if(a)f(a);else if(b){var c;const d={},g=(c=b,new iG(c).readFields(iX,{}));for(const h of g.glyphs)d[h.id]=h;f(null,{glyphs:d,ascender:g.ascender,descender:g.descender})}})},jt.TinySDF=class{constructor({fontSize:a=24,buffer:b=3,radius:c=8,cutoff:d=.25,fontFamily:f="sans-serif",fontWeight:g="normal",fontStyle:h="normal"}){this.buffer=b,this.cutoff=d,this.radius=c;const i=this.size=a+4*b,j=this._createCanvas(i),k=this.ctx=j.getContext("2d",{willReadFrequently:!0});k.font=`${h} ${g} ${a}px ${f}`,k.textBaseline="alphabetic",k.textAlign="left",k.fillStyle="black",this.gridOuter=new Float64Array(i*i),this.gridInner=new Float64Array(i*i),this.f=new Float64Array(i),this.z=new Float64Array(i+1),this.v=new Uint16Array(i)}_createCanvas(a){const b=document.createElement("canvas");return b.width=b.height=a,b}draw(a){const{width:b,actualBoundingBoxAscent:c,actualBoundingBoxDescent:d,actualBoundingBoxLeft:f,actualBoundingBoxRight:g}=this.ctx.measureText(a),h=Math.floor(c),i=Math.min(this.size-this.buffer,Math.ceil(g-f)),j=Math.min(this.size-this.buffer,Math.ceil(c)+Math.ceil(d)),k=i+2*this.buffer,l=j+2*this.buffer,m=k*l,n=new Uint8ClampedArray(m),o={data:n,width:k,height:l,glyphWidth:i,glyphHeight:j,glyphTop:h,glyphLeft:0,glyphAdvance:b};if(0===i||0===j)return o;const{ctx:p,buffer:q,gridInner:r,gridOuter:s}=this;p.clearRect(q,q,i,j),p.fillText(a,q,q+h+1);const u=p.getImageData(q,q,i,j);s.fill(1e20,0,m),r.fill(0,0,m);for(let v=0;v0?z*z:0,r[y]=z<0?z*z:0}}jq(s,0,0,k,l,k,this.f,this.v,this.z),jq(r,q,q,i,j,k,this.f,this.v,this.z);for(let A=0;Ab?1:0}){if(this.data=a,this.length=this.data.length,this.compare=b,this.length>0)for(let c=(this.length>>1)-1;c>=0;c--)this._down(c)}push(a){this.data.push(a),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const a=this.data[0],b=this.data.pop();return this.length--,this.length>0&&(this.data[0]=b,this._down(0)),a}peek(){return this.data[0]}_up(a){const{data:b,compare:c}=this,d=b[a];for(;a>0;){const f=a-1>>1,g=b[f];if(c(d,g)>=0)break;b[a]=g,a=f}b[a]=d}_down(a){const{data:b,compare:c}=this,d=this.length>>1,f=b[a];for(;ac(b[i],h)&&(g=i,h=b[i]),c(h,f)>=0)break;b[a]=h,a=g}b[a]=f}}function jz(a,b=1,c=!1){let d=1/0,f=1/0,h=-1/0,i=-1/0;const j=a[0];for(let k=0;kh)&&(h=l.x),(!k||l.y>i)&&(i=l.y)}const m=Math.min(h-d,i-f);let n=m/2;const o=new jy([],jA);if(0===m)return new g(d,f);for(let p=d;pr.d||!r.d)&&(r=u,c&&console.log("found best %d after %d probes",Math.round(1e4*u.d)/1e4,s)),u.max-r.d<=b||(n=u.h/2,o.push(new jB(u.p.x-n,u.p.y-n,n,a)),o.push(new jB(u.p.x+n,u.p.y-n,n,a)),o.push(new jB(u.p.x-n,u.p.y+n,n,a)),o.push(new jB(u.p.x+n,u.p.y+n,n,a)),s+=4)}return c&&(console.log(`num probes: ${s}`),console.log(`best distance: ${r.d}`)),r.p}function jA(a,b){return b.max-a.max}function jB(a,b,c,d){this.p=new g(a,b),this.h=c,this.d=function(a,b){let c=!1,d=1/0;for(let f=0;fa.y!=l.y>a.y&&a.x<(l.x-k.x)*(a.y-k.y)/(l.y-k.y)+k.x&&(c=!c),d=Math.min(d,gQ(a,k,l))}}return(c?1:-1)*Math.sqrt(d)}(this.p,d),this.max=this.d+this.h*Math.SQRT2}const jC=Number.POSITIVE_INFINITY,jD=Math.sqrt(2);function jE(a,b){return b[1]!==jC?function(a,b,c){let d=0,f=0;switch(b=Math.abs(b),c=Math.abs(c),a){case"top-right":case"top-left":case"top":f=c-7;break;case"bottom-right":case"bottom-left":case"bottom":f=7-c}switch(a){case"top-right":case"bottom-right":case"right":d=-b;break;case"top-left":case"bottom-left":case"left":d=b}return[d,f]}(a,b[0],b[1]):function(a,b){let c=0,d=0;b<0&&(b=0);const f=b/jD;switch(a){case"top-right":case"top-left":d=f-7;break;case"bottom-right":case"bottom-left":d=7-f;break;case"bottom":d=7-b;break;case"top":d=b-7}switch(a){case"top-right":case"bottom-right":c=-f;break;case"top-left":case"bottom-left":c=f;break;case"left":c=b;break;case"right":c=-b}return[c,d]}(a,b[0])}function jF(a,b,c,d,f,g,h,i,j,k){a.createArrays(),a.tilePixelRatio=8192/(512*a.overscaling),a.compareText={},a.iconsNeedLinear=!1;const l=a.layers[0].layout,m=a.layers[0]._unevaluatedLayout._values,n={};if("composite"===a.textSizeData.kind){const{minZoom:o,maxZoom:p}=a.textSizeData;n.compositeTextSizes=[m["text-size"].possiblyEvaluate(new e2(o),i),m["text-size"].possiblyEvaluate(new e2(p),i),]}if("composite"===a.iconSizeData.kind){const{minZoom:q,maxZoom:r}=a.iconSizeData;n.compositeIconSizes=[m["icon-size"].possiblyEvaluate(new e2(q),i),m["icon-size"].possiblyEvaluate(new e2(r),i),]}n.layoutTextSize=m["text-size"].possiblyEvaluate(new e2(j+1),i),n.layoutIconSize=m["icon-size"].possiblyEvaluate(new e2(j+1),i),n.textMaxSize=m["text-size"].possiblyEvaluate(new e2(18),i);const s="map"===l.get("text-rotation-alignment")&&"point"!==l.get("symbol-placement"),u=l.get("text-size");for(const v of a.features){const w=l.get("text-font").evaluate(v,{},i).join(","),x=u.evaluate(v,{},i),y=n.layoutTextSize.evaluate(v,{},i),z=(n.layoutIconSize.evaluate(v,{},i),{horizontal:{},vertical:void 0}),A=v.text;let B,C=[0,0];if(A){const D=A.toString(),E=24*l.get("text-letter-spacing").evaluate(v,{},i),F=24*l.get("text-line-height").evaluate(v,{},i),G=eL(D)?E:0,H=l.get("text-anchor").evaluate(v,{},i),I=l.get("text-variable-anchor");if(!I){const J=l.get("text-radial-offset").evaluate(v,{},i);C=J?jE(H,[24*J,jC]):l.get("text-offset").evaluate(v,{},i).map(a=>24*a)}let K=s?"center":l.get("text-justify").evaluate(v,{},i);const L=l.get("symbol-placement"),M="point"===L,N="point"===L?24*l.get("text-max-width").evaluate(v,{},i):0,O=d=>{a.allowVerticalPlacement&&eK(D)&&(z.vertical=i4(A,b,c,f,w,N,F,H,d,G,C,i1.vertical,!0,L,y,x))};if(!s&&I){const P="auto"===K?I.map(a=>jG(a)):[K];let Q=!1;for(let R=0;R=0||!eK(D)){const U=i4(A,b,c,f,w,N,F,H,K,G,C,i1.horizontal,!1,L,y,x);U&&(z.horizontal[K]=U)}O("point"===L?"left":K)}}let V=!1;if(v.icon&&v.icon.name){const W=d[v.icon.name];W&&(B=jf(f[v.icon.name],l.get("icon-offset").evaluate(v,{},i),l.get("icon-anchor").evaluate(v,{},i)),V=W.sdf,void 0===a.sdfIcons?a.sdfIcons=W.sdf:a.sdfIcons!==W.sdf&&am("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(W.pixelRatio!==a.pixelRatio||0!==l.get("icon-rotate").constantOr(1))&&(a.iconsNeedLinear=!0))}const X=jK(z.horizontal)||z.vertical;a.iconsInText||(a.iconsInText=!!X&&X.iconsInText),(X||B)&&jH(a,v,z,B,d,n,y,0,C,V,h,i,k)}g&&a.generateCollisionDebugBuffers(j,a.collisionBoxArray)}function jG(a){switch(a){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function jH(a,b,c,d,f,g,h,i,j,k,l,m,n){let o=g.textMaxSize.evaluate(b,{},m);void 0===o&&(o=h);const p=a.layers[0].layout,q=p.get("icon-offset").evaluate(b,{},m),r=jK(c.horizontal)||c.vertical,s=h/24,u=a.tilePixelRatio*o/24,v=a.tilePixelRatio*p.get("symbol-spacing"),w=p.get("text-padding")*a.tilePixelRatio,x=p.get("icon-padding")*a.tilePixelRatio,y=p.get("text-max-angle")*P,z="map"===p.get("text-rotation-alignment")&&"point"!==p.get("symbol-placement"),A="map"===p.get("icon-rotation-alignment")&&"point"!==p.get("symbol-placement"),B=p.get("symbol-placement"),C=v/2,D=p.get("icon-text-fit");let E;d&&"none"!==D&&(a.allowVerticalPlacement&&c.vertical&&(E=jg(d,c.vertical,D,p.get("icon-text-fit-padding"),q,s)),r&&(d=jg(d,r,D,p.get("icon-text-fit-padding"),q,s)));const F=(h,i,o)=>{if(i.x<0||i.x>=8192||i.y<0||i.y>=8192)return;const{x:p,y:r,z:s}=n.projectTilePoint(i.x,i.y,o),u=new jh(p,r,s,0,void 0);!function(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v,w,x,y,z,A){const B=a.addToLineVertexArray(b,d);let C,D,E,F,G,H,I,J=0,K=0,L=0,M=0,N=-1,O=-1;const P={};let Q=fZ(""),R=0,S=0;if(void 0===j._unevaluatedLayout.getValue("text-radial-offset")?[R,S]=j.layout.get("text-offset").evaluate(w,{},A).map(a=>24*a):(R=24*j.layout.get("text-radial-offset").evaluate(w,{},A),S=jC),a.allowVerticalPlacement&&f.vertical){const T=f.vertical;if(p)H=jM(T),i&&(I=jM(i));else{const U=j.layout.get("text-rotate").evaluate(w,{},A)+90;E=jL(k,c,b,l,m,n,T,o,U,q),i&&(F=jL(k,c,b,l,m,n,i,s,U))}}if(g){const V=j.layout.get("icon-rotate").evaluate(w,{},A),W="none"!==j.layout.get("icon-text-fit"),X=ju(g,V,y,W),Y=i?ju(i,V,y,W):void 0;D=jL(k,c,b,l,m,n,g,s,V),J=4*X.length;const Z=a.iconSizeData;let $=null;"source"===Z.kind?($=[128*j.layout.get("icon-size").evaluate(w,{},A),])[0]>jI&&am(`${a.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`):"composite"===Z.kind&&(($=[128*x.compositeIconSizes[0].evaluate(w,{},A),128*x.compositeIconSizes[1].evaluate(w,{},A),])[0]>jI||$[1]>jI)&&am(`${a.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`),a.addSymbols(a.icon,X,$,v,u,w,!1,c,b,B.lineStartIndex,B.lineLength,-1,z,A),N=a.icon.placedSymbolArray.length-1,Y&&(K=4*Y.length,a.addSymbols(a.icon,Y,$,v,u,w,i1.vertical,c,b,B.lineStartIndex,B.lineLength,-1,z,A),O=a.icon.placedSymbolArray.length-1)}for(const _ in f.horizontal){const aa=f.horizontal[_];C||(Q=fZ(aa.text),p?G=jM(aa):C=jL(k,c,b,l,m,n,aa,o,j.layout.get("text-rotate").evaluate(w,{},A),q));const ab=1===aa.positionedLines.length;if(L+=jJ(a,c,b,aa,h,j,p,w,q,B,f.vertical?i1.horizontal:i1.horizontalOnly,ab?Object.keys(f.horizontal):[_],P,N,x,z,A),ab)break}f.vertical&&(M+=jJ(a,c,b,f.vertical,h,j,p,w,q,B,i1.vertical,["vertical"],P,O,x,z,A));let ac=-1;const ad=(a,b)=>a?Math.max(a,b):b;ac=ad(G,ac),ac=ad(H,ac),ac=ad(I,ac);const ae=ac> -1?1:0;a.glyphOffsetArray.length>=jV.MAX_GLYPHS&&am("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==w.sortKey&&a.addToSortKeyRanges(a.symbolInstances.length,w.sortKey),a.symbolInstances.emplaceBack(c.x,c.y,c.z,b.x,b.y,P.right>=0?P.right:-1,P.center>=0?P.center:-1,P.left>=0?P.left:-1,P.vertical>=0?P.vertical:-1,N,O,Q,void 0!==C?C:a.collisionBoxArray.length,void 0!==C?C+1:a.collisionBoxArray.length,void 0!==E?E:a.collisionBoxArray.length,void 0!==E?E+1:a.collisionBoxArray.length,void 0!==D?D:a.collisionBoxArray.length,void 0!==D?D+1:a.collisionBoxArray.length,F||a.collisionBoxArray.length,F?F+1:a.collisionBoxArray.length,l,L,M,J,K,ae,0,R,S,ac)}(a,i,u,h,c,d,f,E,a.layers[0],a.collisionBoxArray,b.index,b.sourceLayerIndex,a.index,w,z,j,0,x,A,q,b,g,k,l,m)};if("line"===B)for(const G of jp(b.geometry,0,0,8192,8192)){const H=jn(G,v,y,c.vertical||r,d,24,u,a.overscaling,8192);for(const I of H){const J=r;J&&jN(a,J.text,C,I)||F(G,I,m)}}else if("line-center"===B){for(const K of b.geometry)if(K.length>1){const L=jm(K,y,c.vertical||r,d,24,u);L&&F(K,L,m)}}else if("Polygon"===b.type)for(const M of hM(b.geometry,0)){const N=jz(M,16);F(M[0],new jh(N.x,N.y,0,0,void 0),m)}else if("LineString"===b.type)for(const O of b.geometry)F(O,new jh(O[0].x,O[0].y,0,0,void 0),m);else if("Point"===b.type)for(const Q of b.geometry)for(const R of Q)F([R],new jh(R.x,R.y,0,0,void 0),m)}const jI=32640;function jJ(a,b,c,d,f,h,i,j,k,l,m,n,o,p,q,r,s){const u=function(a,b,c,d,f,h,i,j){const k=[];if(0===b.positionedLines.length)return k;const l=d.layout.get("text-rotate").evaluate(h,{})*Math.PI/180,m=function(a){const b=a[0],c=a[1],d=b*c;return d>0?[b,-c]:d<0?[-b,c]:0===b?[c,b]:[c,-b]}(c);let n=Math.abs(b.top-b.bottom);for(const o of b.positionedLines)n-=o.lineOffset;const p=b.positionedLines.length,q=n/p;let r=b.top-c[1];for(let s=0;sjI&&am(`${a.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`):"composite"===v.kind&&((w=[128*q.compositeTextSizes[0].evaluate(j,{},s),128*q.compositeTextSizes[1].evaluate(j,{},s),])[0]>jI||w[1]>jI)&&am(`${a.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`),a.addSymbols(a.text,u,w,k,i,j,m,b,c,l.lineStartIndex,l.lineLength,p,r,s),n))o[x]=a.text.placedSymbolArray.length-1;return 4*u.length}function jK(a){for(const b in a)return a[b];return null}function jL(a,b,c,d,f,h,i,j,k,l){let m=i.top,n=i.bottom,o=i.left,p=i.right;const q=i.collisionPadding;if(q&&(o-=q[0],m-=q[1],p+=q[2],n+=q[3]),k){const r=new g(o,m),s=new g(p,m),u=new g(o,n),v=new g(p,n),w=k*P;let x=new g(0,0);l&&(x=new g(l[0],l[1])),r._rotateAround(w,x),s._rotateAround(w,x),u._rotateAround(w,x),v._rotateAround(w,x),o=Math.min(r.x,s.x,u.x,v.x),p=Math.max(r.x,s.x,u.x,v.x),m=Math.min(r.y,s.y,u.y,v.y),n=Math.max(r.y,s.y,u.y,v.y)}return a.emplaceBack(b.x,b.y,b.z,c.x,c.y,o,m,p,n,j,d,f,h),a.length-1}function jM(a){a.collisionPadding&&(a.top-=a.collisionPadding[1],a.bottom+=a.collisionPadding[3]);const b=a.bottom-a.top;return b>0?Math.max(10,b):null}function jN(a,b,c,d){const f=a.compareText;if(b in f){const g=f[b];for(let h=g.length-1;h>=0;h--)if(d.dist(g[h])a.id),this.index=a.index,this.pixelRatio=a.pixelRatio,this.sourceLayerIndex=a.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=l([]),this.placementViewportMatrix=l([]);const b=this.layers[0]._unevaluatedLayout._values;this.textSizeData=iw(this.zoom,b["text-size"]),this.iconSizeData=iw(this.zoom,b["icon-size"]);const c=this.layers[0].layout,d=c.get("symbol-sort-key"),f=c.get("symbol-z-order");this.canOverlap=c.get("text-allow-overlap")||c.get("icon-allow-overlap")||c.get("text-ignore-placement")||c.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==f&& void 0!==d.constantOr(1),this.sortFeaturesByY=("viewport-y"===f||"auto"===f&&!this.sortFeaturesByKey)&&this.canOverlap,this.writingModes=c.get("text-writing-mode").map(a=>i1[a]),this.stateDependentLayerIds=this.layers.filter(a=>a.isStateDependent()).map(a=>a.id),this.sourceID=a.sourceID}createArrays(){this.text=new jT(new gg(this.layers,this.zoom,a=>/^text/.test(a))),this.icon=new jT(new gg(this.layers,this.zoom,a=>/^icon/.test(a))),this.glyphOffsetArray=new fP,this.lineVertexArray=new fQ,this.symbolInstances=new fO}calculateGlyphDependencies(a,b,c,d,f){for(let g=0;g0)&&("constant"!==h.value.kind||h.value.value.length>0),l="constant"!==j.value.kind||!!j.value.value||Object.keys(j.parameters).length>0,m=g.get("symbol-sort-key");if(this.features=[],!k&&!l)return;const n=b.iconDependencies,o=b.glyphDependencies,p=b.availableImages,q=new e2(this.zoom);for(const{feature:r,id:s,index:u,sourceLayerIndex:v}of a){const w=f._featureFilter.needGeometry,x=gG(r,w);if(!f._featureFilter.filter(q,x,c))continue;let y,z;if(w||(x.geometry=gF(r,c,d)),k){const A=f.getValueAndResolveTokens("text-field",x,c,p),B=bN.factory(A);jS(B)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===e_()||this.hasRTLText&&e1.isParsed())&&(y=iA(B,f,x))}if(l){const C=f.getValueAndResolveTokens("icon-image",x,c,p);z=C instanceof bO?C:bO.fromString(C)}if(!y&&!z)continue;const D=this.sortFeaturesByKey?m.evaluate(x,{},c):void 0;if(this.features.push({id:s,text:y,icon:z,index:u,sourceLayerIndex:v,geometry:x.geometry,properties:r.properties,type:jO[r.type],sortKey:D}),z&&(n[z.name]=!0),y){const E=h.evaluate(x,{},c).join(","),F="map"===g.get("text-rotation-alignment")&&"point"!==g.get("symbol-placement");for(const G of(this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i1.vertical)>=0,y.sections))if(G.image)n[G.image.name]=!0;else{const H=eK(y.toString()),I=G.fontStack||E,J=o[I]=o[I]||{};this.calculateGlyphDependencies(G.text,J,F,this.allowVerticalPlacement,H)}}}"line"===g.get("symbol-placement")&&(this.features=function(a){const b={},c={},d=[];let f=0;function g(b){d.push(a[b]),f++}function h(a,b,f){const g=c[a];return delete c[a],c[b]=g,d[g].geometry[0].pop(),d[g].geometry[0]=d[g].geometry[0].concat(f[0]),g}function i(a,c,f){const g=b[c];return delete b[c],b[a]=g,d[g].geometry[0].shift(),d[g].geometry[0]=f[0].concat(d[g].geometry[0]),g}function j(a,b,c){const d=c?b[0][b[0].length-1]:b[0][0];return`${a}:${d.x}:${d.y}`}for(let k=0;ka.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((a,b)=>a.sortKey-b.sortKey)}update(a,b,c,d){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(a,b,this.layers,c,d),this.icon.programConfigurations.updatePaintArrays(a,b,this.layers,c,d))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(a){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(a),this.iconCollisionBox.upload(a)),this.text.upload(a,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(a,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(a,b){const c=this.lineVertexArray.length;if(void 0!==a.segment){let d=a.dist(b[a.segment+1]),f=a.dist(b[a.segment]);const g={};for(let h=a.segment+1;h=0;i--)g[i]={x:b[i].x,y:b[i].y,tileUnitDistanceFromAnchor:f},i>0&&(f+=b[i-1].dist(b[i]));for(let j=0;j=0?b.rightJustifiedTextSymbolIndex:b.centerJustifiedTextSymbolIndex>=0?b.centerJustifiedTextSymbolIndex:b.leftJustifiedTextSymbolIndex>=0?b.leftJustifiedTextSymbolIndex:b.verticalPlacedTextSymbolIndex>=0?b.verticalPlacedTextSymbolIndex:d),g=ix(this.textSizeData,a,f)/24;return this.tilePixelRatio*g}getSymbolInstanceIconSize(a,b,c){const d=this.icon.placedSymbolArray.get(c),f=ix(this.iconSizeData,a,d);return this.tilePixelRatio*f}_commitDebugCollisionVertexUpdate(a,b,c){a.emplaceBack(b,-c,-c),a.emplaceBack(b,c,-c),a.emplaceBack(b,c,c),a.emplaceBack(b,-c,c)}_updateTextDebugCollisionBoxes(a,b,c,d,f,g){for(let h=d;h0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(a,b){const c=a.placedSymbolArray.get(b),d=c.vertexStartIndex+4*c.numGlyphs;for(let f=c.vertexStartIndex;fd[a]-d[b]||f[b]-f[a]),g}addToSortKeyRanges(a,b){const c=this.sortKeyRanges[this.sortKeyRanges.length-1];c&&c.sortKey===b?c.symbolInstanceEnd=a+1:this.sortKeyRanges.push({sortKey:b,symbolInstanceStart:a,symbolInstanceEnd:a+1})}sortFeatures(a){if(this.sortFeaturesByY&&this.sortedAngle!==a&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){for(const b of(this.symbolInstanceIndexes=this.getSortedSymbolIndexes(a),this.sortedAngle=a,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[],this.symbolInstanceIndexes)){const c=this.symbolInstances.get(b);this.featureSortOrder.push(c.featureIndex),[c.rightJustifiedTextSymbolIndex,c.centerJustifiedTextSymbolIndex,c.leftJustifiedTextSymbolIndex,].forEach((a,b,c)=>{a>=0&&c.indexOf(a)===b&&this.addIndicesForPlacedSymbol(this.text,a)}),c.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,c.verticalPlacedTextSymbolIndex),c.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,c.placedIconSymbolIndex),c.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,c.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}ec("SymbolBucket",jV,{omit:["layers","collisionBoxArray","features","compareText",]}),jV.MAX_GLYPHS=65535,jV.addDynamicAttributes=jR;const jW=new ff({"symbol-placement":new fa(bk.layout_symbol["symbol-placement"]),"symbol-spacing":new fa(bk.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new fa(bk.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new fb(bk.layout_symbol["symbol-sort-key"]),"symbol-z-order":new fa(bk.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new fa(bk.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new fa(bk.layout_symbol["icon-ignore-placement"]),"icon-optional":new fa(bk.layout_symbol["icon-optional"]),"icon-rotation-alignment":new fa(bk.layout_symbol["icon-rotation-alignment"]),"icon-size":new fb(bk.layout_symbol["icon-size"]),"icon-text-fit":new fa(bk.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new fa(bk.layout_symbol["icon-text-fit-padding"]),"icon-image":new fb(bk.layout_symbol["icon-image"]),"icon-rotate":new fb(bk.layout_symbol["icon-rotate"]),"icon-padding":new fa(bk.layout_symbol["icon-padding"]),"icon-keep-upright":new fa(bk.layout_symbol["icon-keep-upright"]),"icon-offset":new fb(bk.layout_symbol["icon-offset"]),"icon-anchor":new fb(bk.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new fa(bk.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new fa(bk.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new fa(bk.layout_symbol["text-rotation-alignment"]),"text-field":new fb(bk.layout_symbol["text-field"]),"text-font":new fb(bk.layout_symbol["text-font"]),"text-size":new fb(bk.layout_symbol["text-size"]),"text-max-width":new fb(bk.layout_symbol["text-max-width"]),"text-line-height":new fb(bk.layout_symbol["text-line-height"]),"text-letter-spacing":new fb(bk.layout_symbol["text-letter-spacing"]),"text-justify":new fb(bk.layout_symbol["text-justify"]),"text-radial-offset":new fb(bk.layout_symbol["text-radial-offset"]),"text-variable-anchor":new fa(bk.layout_symbol["text-variable-anchor"]),"text-anchor":new fb(bk.layout_symbol["text-anchor"]),"text-max-angle":new fa(bk.layout_symbol["text-max-angle"]),"text-writing-mode":new fa(bk.layout_symbol["text-writing-mode"]),"text-rotate":new fb(bk.layout_symbol["text-rotate"]),"text-padding":new fa(bk.layout_symbol["text-padding"]),"text-keep-upright":new fa(bk.layout_symbol["text-keep-upright"]),"text-transform":new fb(bk.layout_symbol["text-transform"]),"text-offset":new fb(bk.layout_symbol["text-offset"]),"text-allow-overlap":new fa(bk.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new fa(bk.layout_symbol["text-ignore-placement"]),"text-optional":new fa(bk.layout_symbol["text-optional"])});var jX={paint:new ff({"icon-opacity":new fb(bk.paint_symbol["icon-opacity"]),"icon-color":new fb(bk.paint_symbol["icon-color"]),"icon-halo-color":new fb(bk.paint_symbol["icon-halo-color"]),"icon-halo-width":new fb(bk.paint_symbol["icon-halo-width"]),"icon-halo-blur":new fb(bk.paint_symbol["icon-halo-blur"]),"icon-translate":new fa(bk.paint_symbol["icon-translate"]),"icon-translate-anchor":new fa(bk.paint_symbol["icon-translate-anchor"]),"text-opacity":new fb(bk.paint_symbol["text-opacity"]),"text-color":new fb(bk.paint_symbol["text-color"],{runtimeType:bw,getOverride:a=>a.textColor,hasOverride:a=>!!a.textColor}),"text-halo-color":new fb(bk.paint_symbol["text-halo-color"]),"text-halo-width":new fb(bk.paint_symbol["text-halo-width"]),"text-halo-blur":new fb(bk.paint_symbol["text-halo-blur"]),"text-translate":new fa(bk.paint_symbol["text-translate"]),"text-translate-anchor":new fa(bk.paint_symbol["text-translate-anchor"])}),layout:jW};class jY{constructor(a){this.type=a.property.overrides?a.property.overrides.runtimeType:bs,this.defaultValue=a}evaluate(a){if(a.formattedSection){const b=this.defaultValue.property.overrides;if(b&&b.hasOverride(a.formattedSection))return b.getOverride(a.formattedSection)}return a.feature&&a.featureState?this.defaultValue.evaluate(a.feature,a.featureState):this.defaultValue.property.specification.default}eachChild(a){this.defaultValue.isConstant()||a(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}ec("FormatSectionOverride",jY,{omit:["defaultValue"]});class jZ extends gn{constructor(a){super(a,jX)}recalculate(a,b){super.recalculate(a,b),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"));const c=this.layout.get("text-writing-mode");if(c){const d=[];for(const f of c)0>d.indexOf(f)&&d.push(f);this.layout._values["text-writing-mode"]=d}else this.layout._values["text-writing-mode"]="point"===this.layout.get("symbol-placement")?["horizontal"]:["horizontal","vertical"];this._setPaintOverrides()}getValueAndResolveTokens(a,b,c,d){var f;const g=this.layout.get(a).evaluate(b,{},c,d),h=this._unevaluatedLayout._values[a];return h.isDataDriven()||dj(h.value)||!g?g:(f=b.properties,g.replace(/{([^{}]+)}/g,(a,b)=>b in f?String(f[b]):""))}createBucket(a){return new jV(a)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const a of jX.paint.overridableProperties){if(!jZ.hasPaintOverride(this.layout,a))continue;const b=this.paint.get(a),c=new jY(b),d=new di(c,b.property.specification);let f=null;f="constant"===b.value.kind||"source"===b.value.kind?new dl("source",d):new dm("composite",d,b.value.zoomStops,b.value._interpolationType),this.paint._values[a]=new e8(b.property,f,b.parameters)}}_handleOverridablePaintPropertyUpdate(a,b,c){return!(!this.layout||b.isDataDriven()||c.isDataDriven())&&jZ.hasPaintOverride(this.layout,a)}static hasPaintOverride(a,b){const c=a.get("text-field"),d=jX.paint.properties[b];let f=!1;const g=a=>{for(const b of a)if(d.overrides&&d.overrides.hasOverride(b))return void(f=!0)};if("constant"===c.value.kind&&c.value.value instanceof bN)g(c.value.value.sections);else if("source"===c.value.kind){const h=a=>{f||(a instanceof bT&&bR(a.value)===bA?g(a.value.sections):a instanceof bX?g(a.sections):a.eachChild(h))},i=c.value;i._styleExpression&&h(i._styleExpression.expression)}return f}getProgramConfiguration(a){return new gf(this,a)}}var j$={paint:new ff({"background-color":new fa(bk.paint_background["background-color"]),"background-pattern":new fd(bk.paint_background["background-pattern"]),"background-opacity":new fa(bk.paint_background["background-opacity"])})},j_={paint:new ff({"raster-opacity":new fa(bk.paint_raster["raster-opacity"]),"raster-hue-rotate":new fa(bk.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new fa(bk.paint_raster["raster-brightness-min"]),"raster-brightness-max":new fa(bk.paint_raster["raster-brightness-max"]),"raster-saturation":new fa(bk.paint_raster["raster-saturation"]),"raster-contrast":new fa(bk.paint_raster["raster-contrast"]),"raster-resampling":new fa(bk.paint_raster["raster-resampling"]),"raster-fade-duration":new fa(bk.paint_raster["raster-fade-duration"])})};class j0 extends gn{constructor(a){super(a,{}),this.implementation=a}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){}serialize(){}onAdd(a){this.implementation.onAdd&&this.implementation.onAdd(a,a.painter.context.gl)}onRemove(a){this.implementation.onRemove&&this.implementation.onRemove(a,a.painter.context.gl)}}var j1={paint:new ff({"sky-type":new fa(bk.paint_sky["sky-type"]),"sky-atmosphere-sun":new fa(bk.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new fa(bk.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new fa(bk.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new fa(bk.paint_sky["sky-gradient-radius"]),"sky-gradient":new fe(bk.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new fa(bk.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new fa(bk.paint_sky["sky-atmosphere-color"]),"sky-opacity":new fa(bk.paint_sky["sky-opacity"])})};function j2(a,b,c){var d,f,g,h,i,j,k,l,m;const n=w(0,0,1),o=M(L());return d=o,f=o,g=c?-(a*P)+Math.PI:a*P,g*=.5,h=f[0],i=f[1],j=f[2],k=f[3],l=Math.sin(g),m=Math.cos(g),d[0]=h*m-j*l,d[1]=i*m+k*l,d[2]=j*m+h*l,d[3]=k*m-i*l,N(o,o,-(b*P)),H(n,n,o),D(n,n)}const j3={circle:class extends gn{constructor(a){super(a,g$)}createBucket(a){return new gI(a)}queryRadius(a){const b=a;return gV("circle-radius",this,b)+gV("circle-stroke-width",this,b)+gW(this.paint.get("circle-translate"))}queryIntersectsFeature(a,b,c,d,f,g,h,i){const j=gY(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),g.angle,a.pixelToTileUnitsFactor),k=this.paint.get("circle-radius").evaluate(b,c)+this.paint.get("circle-stroke-width").evaluate(b,c);return g1(a,d,g,h,i,"map"===this.paint.get("circle-pitch-alignment"),"map"===this.paint.get("circle-pitch-scale"),j,k)}getProgramIds(){return["circle"]}getProgramConfiguration(a){return new gf(this,a)}},heatmap:class extends gn{createBucket(a){return new g6(a)}constructor(a){super(a,hc),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(a){"heatmap-color"===a&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=hd({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(a){return gV("heatmap-radius",this,a)}queryIntersectsFeature(a,b,c,d,f,h,i,j){const k=this.paint.get("heatmap-radius").evaluate(b,c);return g1(a,d,h,i,j,!0,!0,new g(0,0),k)}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}getProgramIds(){return["heatmap","heatmapTexture"]}getProgramConfiguration(a){return new gf(this,a)}},hillshade:class extends gn{constructor(a){super(a,he)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}getProgramIds(){return["hillshade","hillshadePrepare",]}getProgramConfiguration(a){return new gf(this,a)}},fill:class extends gn{constructor(a){super(a,hS)}getProgramIds(){const a=this.paint.get("fill-pattern"),b=a&&a.constantOr(1),c=[b?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&c.push(b&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),c}getProgramConfiguration(a){return new gf(this,a)}recalculate(a,b){super.recalculate(a,b);const c=this.paint._values["fill-outline-color"];"constant"===c.value.kind&& void 0===c.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(a){return new hQ(a)}queryRadius(){return gW(this.paint.get("fill-translate"))}queryIntersectsFeature(a,b,c,d,f,g){return!a.queryGeometry.isAboveHorizon&&gL(gX(a.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),g.angle,a.pixelToTileUnitsFactor),d)}isTileClipped(){return!0}},"fill-extrusion":class extends gn{constructor(a){super(a,h8)}createBucket(a){return new h6(a)}queryRadius(){return gW(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion",]}getProgramConfiguration(a){return new gf(this,a)}queryIntersectsFeature(a,b,c,d,f,h,i,j,k){var l,m,n,o,p,q,r,s,u;const v=gY(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),h.angle,a.pixelToTileUnitsFactor),w=this.paint.get("fill-extrusion-height").evaluate(b,c),x=this.paint.get("fill-extrusion-base").evaluate(b,c),y=[0,0],z=j&&h.elevation,A=h.elevation?h.elevation.exaggeration():1;if(z){const B=a.tile.getBucket(this).centroidVertexArray,C=k+1;if(C=3){for(let g=0;g1&&(i=a[++h]);const k=Math.abs(j-i.left),l=Math.abs(j-i.right),m=Math.min(k,l);let n;const o=f/c*(d+1);if(i.isDash){const p=d-Math.abs(o);n=Math.sqrt(m*m+p*p)}else n=d-Math.sqrt(m*m+o*o);this.image.data[g+j]=Math.max(0,Math.min(255,n+128))}}}addRegularDash(a,b){for(let c=a.length-1;c>=0;--c){const d=a[c],f=a[c+1];d.zeroLength?a.splice(c,1):f&&f.isDash===d.isDash&&(f.left=d.left,a.splice(c,1))}const g=a[0],h=a[a.length-1];g.isDash===h.isDash&&(g.left=h.left-this.width,h.right=g.right+this.width);const i=this.width*this.nextRow;let j=0,k=a[j];for(let l=0;l1&&(k=a[++j]);const m=Math.abs(l-k.left),n=Math.abs(l-k.right),o=Math.min(m,n);this.image.data[i+l]=Math.max(0,Math.min(255,(k.isDash?o:-o)+b+128))}}addDash(a,b){const c=this.getKey(a,b);if(this.positions[c])return this.positions[c];const d="round"===b,f=d?7:0,g=2*f+1;if(this.nextRow+g>this.height)return am("LineAtlas out of space"),null;0===a.length&&a.push(1);let h=0;for(let i=0;i0;g--)f+=(b&(d=1<this.canonical.z?new kg(a,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new kg(a,this.wrap,a,this.canonical.x>>b,this.canonical.y>>b)}calculateScaledKey(a,b=!0){if(this.overscaledZ===a&&b)return this.key;if(a>this.canonical.z)return kh(this.wrap*+b,a,this.canonical.z,this.canonical.x,this.canonical.y);{const c=this.canonical.z-a;return kh(this.wrap*+b,a,a,this.canonical.x>>c,this.canonical.y>>c)}}isChildOf(a){if(a.wrap!==this.wrap)return!1;const b=this.canonical.z-a.canonical.z;return 0===a.overscaledZ||a.overscaledZ>b&&a.canonical.y===this.canonical.y>>b}children(a){if(this.overscaledZ>=a)return[new kg(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y),];const b=this.canonical.z+1,c=2*this.canonical.x,d=2*this.canonical.y;return[new kg(b,this.wrap,b,c,d),new kg(b,this.wrap,b,c+1,d),new kg(b,this.wrap,b,c,d+1),new kg(b,this.wrap,b,c+1,d+1),]}isLessThan(a){return this.wrapa.wrap)&&(this.overscaledZa.overscaledZ)&&(this.canonical.xa.canonical.x)&&this.canonical.yMath.abs(d[h])){if(c[h]b[h])return null}else{const i=1/d[h];let j=(a[h]-c[h])*i,k=(b[h]-c[h])*i;if(j>k){const l=j;j=k,k=l}if(j>f&&(f=j),kg)return null}return f}function kq(a,b,c,d,f,g,h,i,j,k,l){const m=d-a,n=f-b,o=g-c,p=h-a,q=i-b,r=j-c,s=l[1]*r-l[2]*q,u=l[2]*p-l[0]*r,v=l[0]*q-l[1]*p,w=m*s+n*u+o*v;if(1e-15>Math.abs(w))return null;const x=1/w,y=k[0]-a,z=k[1]-b,A=k[2]-c,B=(y*s+z*u+A*v)*x;if(B<0||B>1)return null;const C=z*o-A*n,D=A*m-y*o,E=y*n-z*m,F=(l[0]*C+l[1]*D+l[2]*E)*x;return F<0||B+F>1?null:(p*C+q*D+r*E)*x}function kr(a,b,c,d,f,g,h,i,j){const k=1<{const g=d?1:0,h=(a+1)*c-g,i=b*c,j=(b+1)*c-g;f[0]=a*c,f[1]=i,f[2]=h,f[3]=j};let h=new ko(d);const i=[];for(let j=0;j=1;d/=2){const o=c[c.length-1];h=new ko(d);for(let p=0;p0;){const{idx:o,t:p,nodex:q,nodey:r,depth:s}=n.pop();if(this.leaves[o]){kr(q,r,s,a,b,c,d,l,m);const u=1<=J[2])return p}continue}let K=0;for(let L=0;L=j[k[P]]&&(k.splice(P,0,L),O=!0);O||(k[K]=L),K++}}for(let Q=0;Q=this.dim+1||b< -1||b>=this.dim+1)throw RangeError("out of range source coordinates for DEM data");return(b+1)*this.stride+(a+1)}_unpackMapbox(a,b,c){return(256*a*256+256*b+c)/10-1e4}_unpackTerrarium(a,b,c){return 256*a+b+c/256-32768}static pack(a,b){const c=[0,0,0,0],d=kw.getUnpackVector(b);let f=Math.floor((a+d[3])/d[2]);return c[2]=f%256,f=Math.floor(f/256),c[1]=f%256,f=Math.floor(f/256),c[0]=f,c}getPixels(){return new hb({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(a,b,c){if(this.dim!==a.dim)throw Error("dem dimension mismatch");let d=b*this.dim,f=b*this.dim+this.dim,g=c*this.dim,h=c*this.dim+this.dim;switch(b){case -1:d=f-1;break;case 1:f=d+1}switch(c){case -1:g=h-1;break;case 1:h=g+1}const i=-b*this.dim,j=-c*this.dim;for(let k=g;k{"source"===a.dataType&&"metadata"===a.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===a.dataType&&"content"===a.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform))}),b.on("error",()=>{this._sourceErrored=!0}),this._source=b,this._tiles={},this._cache=new class{constructor(a,b){this.max=a,this.onRemove=b,this.reset()}reset(){for(const a in this.data)for(const b of this.data[a])b.timeout&&clearTimeout(b.timeout),this.onRemove(b.value);return this.data={},this.order=[],this}add(a,b,c){const d=a.wrapped().key;void 0===this.data[d]&&(this.data[d]=[]);const f={value:b,timeout:void 0};if(void 0!==c&&(f.timeout=setTimeout(()=>{this.remove(a,f)},c)),this.data[d].push(f),this.order.push(d),this.order.length>this.max){const g=this._getAndRemoveByKey(this.order[0]);g&&this.onRemove(g)}return this}has(a){return a.wrapped().key in this.data}getAndRemove(a){return this.has(a)?this._getAndRemoveByKey(a.wrapped().key):null}_getAndRemoveByKey(a){const b=this.data[a].shift();return b.timeout&&clearTimeout(b.timeout),0===this.data[a].length&&delete this.data[a],this.order.splice(this.order.indexOf(a),1),b.value}getByKey(a){const b=this.data[a];return b?b[0].value:null}get(a){return this.has(a)?this.data[a.wrapped().key][0].value:null}remove(a,b){if(!this.has(a))return this;const c=a.wrapped().key,d=void 0===b?0:this.data[c].indexOf(b),f=this.data[c][d];return this.data[c].splice(d,1),f.timeout&&clearTimeout(f.timeout),0===this.data[c].length&&delete this.data[c],this.onRemove(f.value),this.order.splice(this.order.indexOf(c),1),this}setMaxSize(a){for(this.max=a;this.order.length>this.max;){const b=this._getAndRemoveByKey(this.order[0]);b&&this.onRemove(b)}return this}filter(a){const b=[];for(const c in this.data)for(const d of this.data[c])a(d.value)||b.push(d);for(const f of b)this.remove(f.value.tileID,f)}}(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._minTileCacheSize=null,this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new class{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(a,b,c){const d=String(b);if(this.stateChanges[a]=this.stateChanges[a]||{},this.stateChanges[a][d]=this.stateChanges[a][d]||{},aa(this.stateChanges[a][d],c),null===this.deletedStates[a])for(const f in this.deletedStates[a]={},this.state[a])f!==d&&(this.deletedStates[a][f]=null);else if(this.deletedStates[a]&&null===this.deletedStates[a][d])for(const g in this.deletedStates[a][d]={},this.state[a][d])c[g]||(this.deletedStates[a][d][g]=null);else for(const h in c)this.deletedStates[a]&&this.deletedStates[a][d]&&null===this.deletedStates[a][d][h]&&delete this.deletedStates[a][d][h]}removeFeatureState(a,b,c){if(null===this.deletedStates[a])return;const d=String(b);if(this.deletedStates[a]=this.deletedStates[a]||{},c&& void 0!==b)null!==this.deletedStates[a][d]&&(this.deletedStates[a][d]=this.deletedStates[a][d]||{},this.deletedStates[a][d][c]=null);else if(void 0!==b){if(this.stateChanges[a]&&this.stateChanges[a][d])for(c in this.deletedStates[a][d]={},this.stateChanges[a][d])this.deletedStates[a][d][c]=null;else this.deletedStates[a][d]=null}else this.deletedStates[a]=null}getState(a,b){const c=String(b),d=aa({},(this.state[a]||{})[c],(this.stateChanges[a]||{})[c]);if(null===this.deletedStates[a])return{};if(this.deletedStates[a]){const f=this.deletedStates[a][b];if(null===f)return{};for(const g in f)delete d[g]}return d}initializeTileState(a,b){a.setFeatureState(this.state,b)}coalesceChanges(a,b){const c={};for(const d in this.stateChanges){this.state[d]=this.state[d]||{};const f={};for(const g in this.stateChanges[d])this.state[d][g]||(this.state[d][g]={}),aa(this.state[d][g],this.stateChanges[d][g]),f[g]=this.state[d][g];c[d]=f}for(const h in this.deletedStates){this.state[h]=this.state[h]||{};const i={};if(null===this.deletedStates[h])for(const j in this.state[h])i[j]={},this.state[h][j]={};else for(const k in this.deletedStates[h]){if(null===this.deletedStates[h][k])this.state[h][k]={};else for(const l of Object.keys(this.deletedStates[h][k]))delete this.state[h][k][l];i[k]=this.state[h][k]}c[h]=c[h]||{},aa(c[h],i)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(c).length)for(const m in a)a[m].setFeatureState(c,b)}}}onAdd(a){this.map=a,this._minTileCacheSize=a?a._minTileCacheSize:null,this._maxTileCacheSize=a?a._maxTileCacheSize:null}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;for(const a in this._tiles){const b=this._tiles[a];if("loaded"!==b.state&&"errored"!==b.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const a=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,a&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(a,b){return a.isSymbolTile=this._onlySymbols,this._source.loadTile(a,b)}_unloadTile(a){if(this._source.unloadTile)return this._source.unloadTile(a,()=>{})}_abortTile(a){if(this._source.abortTile)return this._source.abortTile(a,()=>{})}serialize(){return this._source.serialize()}prepare(a){for(const b in this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){const c=this._tiles[b];c.upload(a),c.prepare(this.map.style.imageManager)}}getIds(){return _(this._tiles).map(a=>a.tileID).sort(ky).map(a=>a.key)}getRenderableIds(a){const b=[];for(const c in this._tiles)this._isIdRenderable(+c,a)&&b.push(this._tiles[c]);return a?b.sort((a,b)=>{const c=a.tileID,d=b.tileID,f=new g(c.canonical.x,c.canonical.y)._rotate(this.transform.angle),h=new g(d.canonical.x,d.canonical.y)._rotate(this.transform.angle);return c.overscaledZ-d.overscaledZ||h.y-f.y||h.x-f.x}).map(a=>a.tileID.key):b.map(a=>a.tileID).sort(ky).map(a=>a.key)}hasRenderableParent(a){const b=this.findLoadedParent(a,0);return!!b&&this._isIdRenderable(b.tileID.key)}_isIdRenderable(a,b){return this._tiles[a]&&this._tiles[a].hasData()&&!this._coveredTiles[a]&&(b||!this._tiles[a].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else for(const a in this._cache.reset(),this._tiles)"errored"!==this._tiles[a].state&&this._reloadTile(+a,"reloading")}_reloadTile(a,b){const c=this._tiles[a];c&&("loading"!==c.state&&(c.state=b),this._loadTile(c,this._tileLoaded.bind(this,c,a,b)))}_tileLoaded(a,b,c,d){if(d){if(a.state="errored",404!==d.status)this._source.fire(new bi(d,{tile:a}));else if("raster-dem"===this._source.type&&this.usedForTerrain&&this.map.painter.terrain){const f=this.map.painter.terrain;this.update(this.transform,f.getScaledDemTileSize(),!0),f.resetTileLookupCache(this.id)}else this.update(this.transform)}else a.timeAdded=ax.now(),"expired"===c&&(a.refreshedUponExpiration=!0),this._setTileReloadTimer(b,a),"raster-dem"===this._source.type&&a.dem&&this._backfillDEM(a),this._state.initializeTileState(a,this.map?this.map.painter:null),this._source.fire(new bh("data",{dataType:"source",tile:a,coord:a.tileID,sourceCacheId:this.id}))}_backfillDEM(a){const b=this.getRenderableIds();for(let c=0;c1||(Math.abs(c)>1&&(1===Math.abs(c+f)?c+=f:1===Math.abs(c-f)&&(c-=f)),b.dem&&a.dem&&(a.dem.backfillBorder(b.dem,c,d),a.neighboringTiles&&a.neighboringTiles[g]&&(a.neighboringTiles[g].backfilled=!0)))}}getTile(a){return this.getTileByID(a.key)}getTileByID(a){return this._tiles[a]}_retainLoadedChildren(a,b,c,d){for(const f in this._tiles){let g=this._tiles[f];if(d[f]||!g.hasData()||g.tileID.overscaledZ<=b||g.tileID.overscaledZ>c)continue;let h=g.tileID;for(;g&&g.tileID.overscaledZ>b+1;){const i=g.tileID.scaledTo(g.tileID.overscaledZ-1);(g=this._tiles[i.key])&&g.hasData()&&(h=i)}let j=h;for(;j.overscaledZ>b;)if(a[(j=j.scaledTo(j.overscaledZ-1)).key]){d[h.key]=h;break}}}findLoadedParent(a,b){if(a.key in this._loadedParentTiles){const c=this._loadedParentTiles[a.key];return c&&c.tileID.overscaledZ>=b?c:null}for(let d=a.overscaledZ-1;d>=b;d--){const f=a.scaledTo(d),g=this._getLoadedTile(f);if(g)return g}}_getLoadedTile(a){const b=this._tiles[a.key];return b&&b.hasData()?b:this._cache.getByKey(this._source.reparseOverscaled?a.wrapped().key:a.canonical.key)}updateCacheSize(a,b){b=b||this._source.tileSize;const c=Math.ceil(a.width/b)+1,d=Math.ceil(a.height/b)+1,f=Math.floor(c*d*5),g="number"==typeof this._minTileCacheSize?Math.max(this._minTileCacheSize,f):f,h="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,g):g;this._cache.setMaxSize(h)}handleWrapJump(a){const b=Math.round((a-(void 0===this._prevLng?a:this._prevLng))/360);if(this._prevLng=a,b){const c={};for(const d in this._tiles){const f=this._tiles[d];f.tileID=f.tileID.unwrapTo(f.tileID.wrap+b),c[f.tileID.key]=f}for(const g in this._tiles=c,this._timers)clearTimeout(this._timers[g]),delete this._timers[g];for(const h in this._tiles)this._setTileReloadTimer(+h,this._tiles[h])}}update(a,b,c){if(this.transform=a,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage||this.usedForTerrain&&!c)return;let d;this.updateCacheSize(a,b),"globe"!==this.transform.projection.name&&this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?d=a.getVisibleUnwrappedCoordinates(this._source.tileID).map(a=>new kg(a.canonical.z,a.wrap,a.canonical.z,a.canonical.x,a.canonical.y)):(d=a.coveringTiles({tileSize:b||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!c,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain}),this._source.hasTile&&(d=d.filter(a=>this._source.hasTile(a)))):d=[];const f=this._updateRetainedTiles(d);if(kz(this._source.type)&&0!==d.length){const g={},h={},i=Object.keys(f);for(const j of i){const k=f[j],l=this._tiles[j];if(!l||l.fadeEndTime&&l.fadeEndTime<=ax.now())continue;const m=this.findLoadedParent(k,Math.max(k.overscaledZ-kx.maxOverzooming,this._source.minzoom));m&&(this._addTile(m.tileID),g[m.tileID.key]=m.tileID),h[j]=k}const n=d[d.length-1].overscaledZ;for(const o in this._tiles){const p=this._tiles[o];if(f[o]||!p.hasData())continue;let q=p.tileID;for(;q.overscaledZ>n;){q=q.scaledTo(q.overscaledZ-1);const r=this._tiles[q.key];if(r&&r.hasData()&&h[q.key]){f[o]=p.tileID;break}}}for(const s in g)f[s]||(this._coveredTiles[s]=!0,f[s]=g[s])}for(const u in f)this._tiles[u].clearFadeHold();const v=function(a,b){const c=[];for(const d in a)d in b||c.push(d);return c}(this._tiles,f);for(const w of v){const x=this._tiles[w];x.hasSymbolBuckets&&!x.holdingForFade()?x.setHoldDuration(this.map._fadeDuration):x.hasSymbolBuckets&&!x.symbolFadeFinished()||this._removeTile(+w)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(const a in this._tiles)this._tiles[a].holdingForFade()&&this._removeTile(+a)}_updateRetainedTiles(a){const b={};if(0===a.length)return b;const c={},d=a.reduce((a,b)=>Math.min(a,b.overscaledZ),1/0),f=a[0].overscaledZ,g=Math.max(f-kx.maxOverzooming,this._source.minzoom),h=Math.max(f+kx.maxUnderzooming,this._source.minzoom),i={};for(const j of a){const k=this._addTile(j);b[j.key]=j,k.hasData()||d=this._source.maxzoom){const n=l.children(this._source.maxzoom)[0],o=this.getTile(n);if(o&&o.hasData()){b[n.key]=n;continue}}else{const p=l.children(this._source.maxzoom);if(b[p[0].key]&&b[p[1].key]&&b[p[2].key]&&b[p[3].key])continue}let q=m.wasRequested();for(let r=l.overscaledZ-1;r>=g;--r){const s=l.scaledTo(r);if(c[s.key]||(c[s.key]=!0,(m=this.getTile(s))||!q||(m=this._addTile(s)),m&&(b[s.key]=s,q=m.wasRequested(),m.hasData())))break}}return b}_updateLoadedParentTileCache(){for(const a in this._loadedParentTiles={},this._tiles){const b=[];let c,d=this._tiles[a].tileID;for(;d.overscaledZ>0;){if(d.key in this._loadedParentTiles){c=this._loadedParentTiles[d.key];break}b.push(d.key);const f=d.scaledTo(d.overscaledZ-1);if(c=this._getLoadedTile(f))break;d=f}for(const g of b)this._loadedParentTiles[g]=c}}_addTile(a){let b=this._tiles[a.key];if(b)return b;(b=this._cache.getAndRemove(a))&&(this._setTileReloadTimer(a.key,b),b.tileID=a,this._state.initializeTileState(b,this.map?this.map.painter:null),this._cacheTimers[a.key]&&(clearTimeout(this._cacheTimers[a.key]),delete this._cacheTimers[a.key],this._setTileReloadTimer(a.key,b)));const c=Boolean(b);if(!c){const d=this.map?this.map.painter:null,f="raster"===this._source.type||"raster-dem"===this._source.type;b=new kX(a,this._source.tileSize*a.overscaleFactor(),this.transform.tileZoom,d,f),this._loadTile(b,this._tileLoaded.bind(this,b,a.key,b.state))}return b?(b.uses++,this._tiles[a.key]=b,c||this._source.fire(new bh("dataloading",{tile:b,coord:b.tileID,dataType:"source"})),b):null}_setTileReloadTimer(a,b){a in this._timers&&(clearTimeout(this._timers[a]),delete this._timers[a]);const c=b.getExpiryTimeout();c&&(this._timers[a]=setTimeout(()=>{this._reloadTile(a,"expired"),delete this._timers[a]},c))}_removeTile(a){const b=this._tiles[a];b&&(b.uses--,delete this._tiles[a],this._timers[a]&&(clearTimeout(this._timers[a]),delete this._timers[a]),b.uses>0||(b.hasData()&&"reloading"!==b.state?this._cache.add(b.tileID,b,b.getExpiryTimeout()):(b.aborted=!0,this._abortTile(b),this._unloadTile(b))))}clearTiles(){for(const a in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(+a);this._source._clear&&this._source._clear(),this._cache.reset()}tilesIn(a,b,c){const d=[],f=this.transform;if(!f)return d;for(const g in this._tiles){const h=this._tiles[g];if(c&&h.clearQueryDebugViz(),h.holdingForFade())continue;const i=a.containsTile(h,f,b);i&&d.push(i)}return d}getVisibleCoordinates(a){const b=this.getRenderableIds(a).map(a=>this._tiles[a].tileID);for(const c of b)c.projMatrix=this.transform.calculateProjMatrix(c.toUnwrapped());return b}hasTransition(){if(this._source.hasTransition())return!0;if(kz(this._source.type))for(const a in this._tiles){const b=this._tiles[a];if(void 0!==b.fadeEndTime&&b.fadeEndTime>=ax.now())return!0}return!1}setFeatureState(a,b,c){this._state.updateState(a=a||"_geojsonTileLayer",b,c)}removeFeatureState(a,b,c){this._state.removeFeatureState(a=a||"_geojsonTileLayer",b,c)}getFeatureState(a,b){return this._state.getState(a=a||"_geojsonTileLayer",b)}setDependencies(a,b,c){const d=this._tiles[a];d&&d.setDependencies(b,c)}reloadTilesForDependencies(a,b){for(const c in this._tiles)this._tiles[c].hasDependency(a,b)&&this._reloadTile(+c,"reloading");this._cache.filter(c=>!c.hasDependency(a,b))}_preloadTiles(a,b){const c=new Map,d=Array.isArray(a)?a:[a],f=this.map.painter.terrain,g=this.usedForTerrain&&f?f.getScaledDemTileSize():this._source.tileSize;for(const h of d){const i=h.coveringTiles({tileSize:g,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(const j of i)c.set(j.key,j);this.usedForTerrain&&h.updateElevation(!1)}const k=Array.from(c.values()),l="raster"===this._source.type||"raster-dem"===this._source.type;$(k,(a,b)=>{const c=new kX(a,this._source.tileSize*a.overscaleFactor(),this.transform.tileZoom,this.map.painter,l);this._loadTile(c,a=>{"raster-dem"===this._source.type&&c.dem&&this._backfillDEM(c),b(a,c)})},b)}}function ky(a,b){const c=Math.abs(2*a.wrap)- +(a.wrap<0),d=Math.abs(2*b.wrap)- +(b.wrap<0);return a.overscaledZ-b.overscaledZ||d-c||b.canonical.y-a.canonical.y||b.canonical.x-a.canonical.x}function kz(a){return"raster"===a||"image"===a||"video"===a}kx.maxOverzooming=10,kx.maxUnderzooming=3;class kA{constructor(a,b,c){this._demTile=a,this._dem=this._demTile.dem,this._scale=b,this._offset=c}static create(a,b,c){const d=c||a.findDEMTileFor(b);if(!d||!d.dem)return;const f=d.dem,g=d.tileID,h=1<=0&&l[3]>=0&&i.insert(h,l[0],l[1],l[2],l[3])}}loadVTLayers(){if(!this.vtLayers)for(const a in this.vtLayers=new h2.VectorTile(new iG(this.rawTileData)).layers,this.sourceLayerCoder=new km(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]),this.vtFeatures={},this.vtLayers)this.vtFeatures[a]=[];return this.vtLayers}query(a,b,c,d){this.loadVTLayers();const f=a.params||{},g=dz(f.filter),h=a.tileResult,i=a.transform,j=h.bufferedTilespaceBounds,k=this.grid.query(j.min.x,j.min.y,j.max.x,j.max.y,(a,b,c,d)=>gT(h.bufferedTilespaceGeometry,a,b,c,d));k.sort(kD);let l=null;i.elevation&&k.length>0&&(l=kA.create(i.elevation,this.tileID));const m={};let n;for(let o=0;o(r||(r=gF(b,this.tileID.canonical,a.tileTransform)),c.queryIntersectsFeature(h,b,d,r,this.z,a.transform,a.pixelPosMatrix,l,f)))}return m}loadMatchingFeature(a,b,c,d,f,g,h,i,j){const{featureIndex:k,bucketIndex:l,sourceLayerIndex:m,layoutVertexArrayOffset:n}=b,o=this.bucketLayerIDs[l];if(d&&!function(a,b){for(let c=0;c=0)return!0;return!1}(d,o))return;const p=this.sourceLayerCoder.decode(m),q=this.vtLayers[p].feature(k);if(c.needGeometry){const r=gG(q,!0);if(!c.filter(new e2(this.tileID.overscaledZ),r,this.tileID.canonical))return}else if(!c.filter(new e2(this.tileID.overscaledZ),q))return;const s=this.getId(q,p);for(let u=0;ud.indexOf(v))continue;const w=g[v];if(!w)continue;let x={};void 0!==s&&i&&(x=i.getState(w.sourceLayer||"_geojsonTileLayer",s));const y=aa({},h[v]);y.paint=kC(y.paint,w.paint,q,x,f),y.layout=kC(y.layout,w.layout,q,x,f);const z=!j||j(q,w,x,n);if(!z)continue;const A=new kn(q,this.z,this.x,this.y,s);A.layer=y;let B=a[v];void 0===B&&(B=a[v]=[]),B.push({featureIndex:k,feature:A,intersectionZ:z})}}lookupSymbolFeatures(a,b,c,d,f,g,h,i){const j={};this.loadVTLayers();const k=dz(f);for(const l of a)this.loadMatchingFeature(j,{bucketIndex:c,sourceLayerIndex:d,featureIndex:l,layoutVertexArrayOffset:0},k,g,h,i,b);return j}loadFeature(a){const{featureIndex:b,sourceLayerIndex:c}=a;this.loadVTLayers();const d=this.sourceLayerCoder.decode(c),f=this.vtFeatures[d];if(f[b])return f[b];const g=this.vtLayers[d].feature(b);return f[b]=g,g}hasLayer(a){for(const b of this.bucketLayerIDs)for(const c of b)if(a===c)return!0;return!1}getId(a,b){let c=a.id;return this.promoteId&&"boolean"==typeof(c=a.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[b]])&&(c=Number(c)),c}}function kC(a,b,c,d,f){return ai(a,(a,g)=>{const h=b instanceof e9?b.get(g):null;return h&&h.evaluate?h.evaluate(c,d,f):h})}function kD(a,b){return b-a}ec("FeatureIndex",kB,{omit:["rawTileData","sourceLayerCoder"]});var kE=fk([{name:"a_pos",type:"Int16",components:2},]);const kF=new Uint16Array(8184);for(let kG=0;kG<2046;kG++){let kH=kG+2,kI=0,kJ=0,kK=0,kL=0,kM=0,kN=0;for(1&kH?kK=kL=kM=32:kI=kJ=kN=32;(kH>>=1)>1;){const kO=kI+kK>>1,kP=kJ+kL>>1;1&kH?(kK=kI,kL=kJ,kI=kM,kJ=kN):(kI=kK,kJ=kL,kK=kM,kL=kN),kM=kO,kN=kP}const kQ=4*kG;kF[kQ+0]=kI,kF[kQ+1]=kJ,kF[kQ+2]=kK,kF[kQ+3]=kL}const kR=new Uint16Array(2178),kS=new Uint8Array(1089),kT=new Uint16Array(1089);function kU(a){return 0===a?-0.03125:32===a?.03125:0}var kV=fk([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2},]);const kW={type:2,extent:8192,loadGeometry:()=>[[new g(0,0),new g(8193,0),new g(8193,8193),new g(0,8193),new g(0,0),],]};class kX{constructor(a,b,c,d,f){this.tileID=a,this.uid=ac(),this.uses=0,this.tileSize=b,this.tileZoom=c,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=f,this.expiredRequestCount=0,this.state="loading",d&&d.transform&&(this.projection=d.transform.projection)}registerFadeDuration(a){const b=a+this.timeAdded;bb.getLayer(a)).filter(Boolean);if(0!==f.length)for(const g of(d.layers=f,d.stateDependentLayerIds&&(d.stateDependentLayers=d.stateDependentLayerIds.map(a=>f.filter(b=>b.id===a)[0])),f))c[g.id]=d}return c}(a.buckets,b.style),this.hasSymbolBuckets=!1,this.buckets){const f=this.buckets[d];if(f instanceof jV){if(this.hasSymbolBuckets=!0,!c)break;f.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const g in this.buckets){const h=this.buckets[g];if(h instanceof jV&&h.hasRTLText){this.hasRTLText=!0,e1.isLoading()||e1.isLoaded()||"deferred"!==e_()||e0();break}}for(const i in this.queryPadding=0,this.buckets){const j=this.buckets[i];this.queryPadding=Math.max(this.queryPadding,b.style.getLayer(i).queryRadius(j))}a.imageAtlas&&(this.imageAtlas=a.imageAtlas),a.glyphAtlasImage&&(this.glyphAtlasImage=a.glyphAtlasImage),a.lineAtlas&&(this.lineAtlas=a.lineAtlas)}else this.collisionBoxArray=new fK}unloadVectorData(){if(this.hasData()){for(const a in this.buckets)this.buckets[a].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugIndexBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this.globeGridBuffer&&(this.globeGridBuffer.destroy(),this.globeGridBuffer=null),this.globePoleBuffer&&(this.globePoleBuffer.destroy(),this.globePoleBuffer=null),this.latestFeatureIndex=null,this.state="unloaded"}}getBucket(a){return this.buckets[a.id]}upload(a){for(const b in this.buckets){const c=this.buckets[b];c.uploadPending()&&c.upload(a)}const d=a.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new j9(a,this.imageAtlas.image,d.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new j9(a,this.glyphAtlasImage,d.ALPHA),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new j9(a,this.lineAtlas.image,d.ALPHA),this.lineAtlas.uploaded=!0)}prepare(a){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(a,this.imageAtlasTexture)}queryRenderedFeatures(a,b,c,d,f,g,h,i){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({tileResult:d,pixelPosMatrix:h,transform:g,params:f,tileTransform:this.tileTransform},a,b,c):{}}querySourceFeatures(a,b){const c=this.latestFeatureIndex;if(!c||!c.rawTileData)return;const d=c.loadVTLayers(),f=b?b.sourceLayer:"",g=d._geojsonTileLayer||d[f];if(!g)return;const h=dz(b&&b.filter),{z:i,x:j,y:k}=this.tileID.canonical,l={z:i,x:j,y:k};for(let m=0;md)f=!1;else if(b){if(this.expirationTime=0;l--){const m=4*l,n=kF[m+0],o=kF[m+1],p=kF[m+2],q=kF[m+3],r=n+p>>1,s=o+q>>1,u=r+s-o,v=s+n-r,w=33*o+n,x=33*q+p,y=33*s+r,z=Math.hypot((kR[2*w+0]+kR[2*x+0])/2-kR[2*y+0],(kR[2*w+1]+kR[2*x+1])/2-kR[2*y+1])>=16;if(kS[y]=kS[y]||(z?1:0),l<1022){const A=(o+v>>1)*33+(n+u>>1),B=(q+v>>1)*33+(p+u>>1);kS[y]=kS[y]||kS[A]||kS[B]}}const C=new fn,D=new fy;let E=0;function F(a,b){const c=33*b+a;return 0===kT[c]&&(C.emplaceBack(kR[2*c+0],kR[2*c+1],8192*a/32,8192*b/32),kT[c]=++E),kT[c]-1}function G(a,b,c,d,f,g){const h=a+c>>1,i=b+d>>1;if(Math.abs(a-f)+Math.abs(b-g)>1&&kS[33*i+h])G(f,g,a,b,h,i),G(c,d,f,g,h,i);else{const j=F(a,b),k=F(c,d),l=F(f,g);D.emplaceBack(j,k,l)}}return G(0,0,32,32,32,0),G(32,32,0,0,0,32),{vertices:C,indices:D}}(this.tileID.canonical,b);d=g.vertices,f=g.indices}else{for(const{x:h,y:i}of(d=new fn,f=new fy,c))d.emplaceBack(h,i,0,0);const j=hh(d.int16,void 0,4);for(let k=0;k{const d=65*c+b;a.emplaceBack(d+1,d,d+65),a.emplaceBack(d+65,d+65+1,d+1)};for(let c=0;c<64;c++)for(let d=0;d<64;d++)b(d,c);return a}getWirefameBuffer(a){if(!this.wireframeSegments){const b=this._createWireframeGrid();this.wireframeIndexBuffer=a.createIndexBuffer(b),this.wireframeSegments=gq.simpleSegment(0,0,4096,b.length)}return[this.wireframeIndexBuffer,this.wireframeSegments,]}_createWireframeGrid(){const a=new fF,b=(b,c)=>{const d=65*c+b;a.emplaceBack(d,d+1),a.emplaceBack(d,d+65),a.emplaceBack(d,d+65+1)};for(let c=0;c<64;c++)for(let d=0;d<64;d++)b(d,c);return a}}function lc(a,b){if(!b.isReprojectedInTileSpace)return{scale:1<v&&(w(a,k,d,f,i,j),w(k,c,i,j,g,h))}w(m,n,d,g,f,g),w(n,o,f,g,f,h),w(o,p,f,h,d,h),w(p,m,d,h,d,g),q-=v,r-=v,s+=v,u+=v;const x=1/Math.max(s-q,u-r);return{scale:x,x:q*x,y:r*x,x2:s*x,y2:u*x,projection:b}}class ld{constructor(a){const b={},c=[];for(const d in a){const f=a[d],g=b[d]={};for(const h in f.glyphs){const i=f.glyphs[+h];if(!i||0===i.bitmap.width||0===i.bitmap.height)continue;const j=i.metrics.localGlyph?2:1,k={x:0,y:0,w:i.bitmap.width+2*j,h:i.bitmap.height+2*j};c.push(k),g[h]=k}}const{w:l,h:m}=i$(c),n=new ha({width:l||1,height:m||1});for(const o in a){const p=a[o];for(const q in p.glyphs){const r=p.glyphs[+q];if(!r||0===r.bitmap.width||0===r.bitmap.height)continue;const s=b[o][q],u=r.metrics.localGlyph?2:1;ha.copy(r.bitmap,n,{x:0,y:0},{x:s.x+u,y:s.y+u},r.bitmap)}}this.image=n,this.positions=b}}ec("GlyphAtlas",ld);class le{constructor(a){this.tileID=new kg(a.tileID.overscaledZ,a.tileID.wrap,a.tileID.canonical.z,a.tileID.canonical.x,a.tileID.canonical.y),this.tileZoom=a.tileZoom,this.uid=a.uid,this.zoom=a.zoom,this.canonical=a.tileID.canonical,this.pixelRatio=a.pixelRatio,this.tileSize=a.tileSize,this.source=a.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=a.showCollisionBoxes,this.collectResourceTiming=!!a.collectResourceTiming,this.returnDependencies=!!a.returnDependencies,this.promoteId=a.promoteId,this.enableTerrain=!!a.enableTerrain,this.isSymbolTile=a.isSymbolTile,this.tileTransform=lc(a.tileID.canonical,a.projection),this.projection=a.projection}parse(a,b,c,d,f){this.status="parsing",this.data=a,this.collisionBoxArray=new fK;const g=new km(Object.keys(a.layers).sort()),h=new kB(this.tileID,this.promoteId);h.bucketLayerIDs=[];const i={},j=new ka(256,256),k={featureIndex:h,iconDependencies:{},patternDependencies:{},glyphDependencies:{},lineAtlas:j,availableImages:c},l=b.familiesBySource[this.source];for(const m in l){const n=a.layers[m];if(!n)continue;let o=!1,p=!1;for(const q of l[m])"symbol"===q[0].type?o=!0:p=!0;if(!0===this.isSymbolTile&&!o|| !1===this.isSymbolTile&&!p)continue;1===n.version&&am(`Vector tile source "${this.source}" layer "${m}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const r=g.encode(m),s=[];for(let u=0;u=y.maxzoom||"none"!==y.visibility&&(lf(x,this.zoom,c),(i[y.id]=y.createBucket({index:h.bucketLayerIDs.length,layers:x,zoom:this.zoom,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:r,sourceID:this.source,enableTerrain:this.enableTerrain,availableImages:c})).populate(s,k,this.tileID.canonical,this.tileTransform),h.bucketLayerIDs.push(x.map(a=>a.id)))}}let z,A,B,C;j.trim();const D={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},E=ai(k.glyphDependencies,a=>Object.keys(a).map(Number));Object.keys(E).length?d.send("getGlyphs",{uid:this.uid,stacks:E},(a,b)=>{z||(z=a,A=b,H.call(this))},void 0,!1,D):A={};const F=Object.keys(k.iconDependencies);F.length?d.send("getImages",{icons:F,source:this.source,tileID:this.tileID,type:"icons"},(a,b)=>{z||(z=a,B=b,H.call(this))},void 0,!1,D):B={};const G=Object.keys(k.patternDependencies);function H(){if(z)return f(z);if(A&&B&&C){const a=new ld(A),b=new i0(B,C);for(const d in i){const g=i[d];g instanceof jV?(lf(g.layers,this.zoom,c),jF(g,A,a.positions,B,b.iconPositions,this.showCollisionBoxes,c,this.tileID.canonical,this.tileZoom,this.projection),g.projection=this.projection.name):g.hasPattern&&(g instanceof ik||g instanceof hQ||g instanceof h6)&&(lf(g.layers,this.zoom,c),g.addFeatures(k,this.tileID.canonical,b.patternPositions,c))}this.status="done",f(null,{buckets:_(i).filter(a=>!a.isEmpty()),featureIndex:h,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:a.image,lineAtlas:j,imageAtlas:b,glyphMap:this.returnDependencies?A:null,iconMap:this.returnDependencies?B:null,glyphPositions:this.returnDependencies?a.positions:null})}}G.length?d.send("getImages",{icons:G,source:this.source,tileID:this.tileID,type:"patterns"},(a,b)=>{z||(z=a,C=b,H.call(this))},void 0,!1,D):C={},H.call(this)}}function lf(a,b,c){const d=new e2(b);for(const f of a)f.recalculate(d,c)}class lg{constructor(a){this.entries={},this.scheduler=a}request(a,b,c,d){const f=this.entries[a]=this.entries[a]||{callbacks:[]};if(f.result){const[g,h]=f.result;return this.scheduler?this.scheduler.add(()=>{d(g,h)},b):d(g,h),()=>{}}return f.callbacks.push(d),f.cancel||(f.cancel=c((c,d)=>{for(const g of(f.result=[c,d],f.callbacks))this.scheduler?this.scheduler.add(()=>{g(c,d)},b):g(c,d);setTimeout(()=>delete this.entries[a],3e3)})),()=>{f.result||(f.callbacks=f.callbacks.filter(a=>a!==d),f.callbacks.length||(f.cancel(),delete this.entries[a]))}}}function lh(a,b,c){const d=JSON.stringify(a.request);return a.data&&(this.deduped.entries[d]={result:[null,a.data]}),this.deduped.request(d,{type:"parseTile",isSymbolTile:a.isSymbolTile,zoom:a.tileZoom},b=>{const d=a7(a.request,(a,d,f,g)=>{a?b(a):d&&b(null,{vectorTile:c?void 0:new h2.VectorTile(new iG(d)),rawData:d,cacheControl:f,expires:g})});return()=>{d.cancel(),b()}},b)}const li=l(new Float64Array(16));class lj{constructor(a,b){this._tr=a,this._worldSize=b}createInversionMatrix(){return li}createTileMatrix(a){let b,c,d;const f=a.canonical,g=l(new Float64Array(16)),h=this._tr.projection;if(h.isReprojectedInTileSpace){const i=lc(f,h);b=1,c=i.x+a.wrap*i.scale,d=i.y,o(g,g,[b/i.scale,b/i.scale,this._tr.pixelsPerMeter/this._worldSize,])}else b=this._worldSize/this._tr.zoomScale(f.z),c=(f.x+Math.pow(2,f.z)*a.wrap)*b,d=f.y*b;return n(g,g,[c,d,0]),o(g,g,[b/8192,b/8192,1]),g}pointCoordinate(a,b,c){const d=this._tr.horizonLineFromTop(!1),f=new g(a,Math.max(d,b));return this._tr.rayIntersectionCoordinate(this._tr.pointRayIntersection(f,c))}upVector(){return[0,0,1]}upVectorScale(){return 1}}var lk={name:"albers",range:[4,7],center:[-96,37.5],parallels:[29.5,45.5],zAxisUnit:"meters",conic:!0,isReprojectedInTileSpace:!0,unsupportedLayers:["custom"],initializeConstants(){if(this.constants&&O(this.parallels,this.constants.parallels))return;const a=Math.sin(this.parallels[0]*P),b=(a+Math.sin(this.parallels[1]*P))/2,c=1+a*(2*b-a),d=Math.sqrt(c)/b;this.constants={n:b,c:c,r0:d,parallels:this.parallels}},project(a,b){this.initializeConstants();const c=(a-this.center[0])*P,{n:d,c:f,r0:g}=this.constants,h=Math.sqrt(f-2*d*Math.sin(b*P))/d;return{x:h*Math.sin(c*d),y:h*Math.cos(c*d)-g,z:0}},unproject(a,b){this.initializeConstants();const{n:c,c:d,r0:f}=this.constants,g=f+b;let h=Math.atan2(a,Math.abs(g))*Math.sign(g);g*c<0&&(h-=Math.PI*Math.sign(a)*Math.sign(g));const i=this.center[0]*P*c;h=Z(h,-Math.PI-i,Math.PI-i);const j=h/c*Q+this.center[0],k=Math.asin(X((d-(a*a+g*g)*c*c)/(2*c),-1,1)),l=X(k*Q,-85.051129,85.051129);return new gs(j,l)},projectTilePoint:(a,b)=>({x:a,y:b,z:0}),locationPoint:(a,b)=>a._coordinatePoint(a.locationCoordinate(b),!1),pixelsPerMeter:(a,b)=>gx(1,a)*b,farthestPixelDistance(a){return k_(a,this.pixelsPerMeter(a.center.lat,a.worldSize))},createTileTransform:(a,b)=>new lj(a,b)};const ll=Math.sqrt(3)/2;var lm={name:"equalEarth",center:[0,0],range:[3.5,7],zAxisUnit:"meters",isReprojectedInTileSpace:!0,unsupportedLayers:["custom"],project(a,b){b=b/180*Math.PI,a=a/180*Math.PI;const c=Math.asin(ll*Math.sin(b)),d=c*c,f=d*d*d;return{x:.5*(a*Math.cos(c)/(ll*(1.340264+ -0.24331799999999998*d+f*(.0062510000000000005+.034164*d)))/Math.PI+.5),y:1-.5*(c*(1.340264+ -0.081106*d+f*(893e-6+.003796*d))/Math.PI+1),z:0}},unproject(a,b){a=(2*a-.5)*Math.PI;let c=b=(2*(1-b)-1)*Math.PI,d=c*c,f=d*d*d;for(let g,h,i,j=0;j<12&&(h=c*(1.340264+ -0.081106*d+f*(893e-6+.003796*d))-b,i=1.340264+ -0.24331799999999998*d+f*(.0062510000000000005+.034164*d),g=h/i,c=X(c-g,-Math.PI/3,Math.PI/3),d=c*c,f=d*d*d,!(1e-12>Math.abs(g)));++j);const k=ll*a*(1.340264+ -0.24331799999999998*d+f*(.0062510000000000005+.034164*d))/Math.cos(c),l=Math.asin(Math.sin(c)/ll),m=X(180*k/Math.PI,-180,180),n=X(180*l/Math.PI,-85.051129,85.051129);return new gs(m,n)},projectTilePoint:(a,b)=>({x:a,y:b,z:0}),locationPoint:(a,b)=>a._coordinatePoint(a.locationCoordinate(b),!1),pixelsPerMeter:(a,b)=>gx(1,a)*b,farthestPixelDistance(a){return k_(a,this.pixelsPerMeter(a.center.lat,a.worldSize))},createTileTransform:(a,b)=>new lj(a,b)},ln={name:"equirectangular",supportsWorldCopies:!0,center:[0,0],range:[3.5,7],zAxisUnit:"meters",wrap:!0,isReprojectedInTileSpace:!0,unsupportedLayers:["custom"],project:(a,b)=>({x:.5+a/360,y:.5-b/360,z:0}),unproject(a,b){const c=X(360*(.5-b),-85.051129,85.051129);return new gs(360*(a-.5),c)},projectTilePoint:(a,b)=>({x:a,y:b,z:0}),locationPoint:(a,b)=>a._coordinatePoint(a.locationCoordinate(b),!1),pixelsPerMeter:(a,b)=>gx(1,a)*b,farthestPixelDistance(a){return k_(a,this.pixelsPerMeter(a.center.lat,a.worldSize))},createTileTransform:(a,b)=>new lj(a,b)};const lo=Math.PI/2;function lp(a){return Math.tan((lo+a)/2)}var lq,lr={name:"lambertConformalConic",range:[3.5,7],zAxisUnit:"meters",center:[0,30],parallels:[30,30],conic:!0,isReprojectedInTileSpace:!0,unsupportedLayers:["custom"],initializeConstants(){if(this.constants&&O(this.parallels,this.constants.parallels))return;const a=this.parallels[0]*P,b=this.parallels[1]*P,c=Math.cos(a),d=a===b?Math.sin(a):Math.log(c/Math.cos(b))/Math.log(lp(b)/lp(a)),f=c*Math.pow(lp(a),d)/d;this.constants={n:d,f:f,parallels:this.parallels}},project(a,b){this.initializeConstants(),b*=P,a=(a-this.center[0])*P;const{n:c,f:d}=this.constants;d>0?b< -lo+1e-6&&(b=-lo+1e-6):b>lo-1e-6&&(b=lo-1e-6);const f=d/Math.pow(lp(b),c),g=f*Math.sin(c*a),h=d-f*Math.cos(c*a);return{x:.5*(g/Math.PI+.5),y:1-.5*(h/Math.PI+.5),z:0}},unproject(a,b){this.initializeConstants(),a=(2*a-.5)*Math.PI,b=(2*(1-b)-.5)*Math.PI;const{n:c,f:d}=this.constants,f=d-b,g=Math.sign(f),h=Math.sign(c)*Math.sqrt(a*a+f*f);let i=Math.atan2(a,Math.abs(f))*g;f*c<0&&(i-=Math.PI*Math.sign(a)*g);const j=X(i/c*Q+this.center[0],-180,180),k=X((2*Math.atan(Math.pow(d/h,1/c))-lo)*Q,-85.051129,85.051129);return new gs(j,k)},projectTilePoint:(a,b)=>({x:a,y:b,z:0}),locationPoint:(a,b)=>a._coordinatePoint(a.locationCoordinate(b),!1),pixelsPerMeter:(a,b)=>gx(1,a)*b,farthestPixelDistance(a){return k_(a,this.pixelsPerMeter(a.center.lat,a.worldSize))},createTileTransform:(a,b)=>new lj(a,b)},ls={name:"mercator",wrap:!0,requiresDraping:!1,supportsWorldCopies:!0,supportsTerrain:!0,supportsFog:!0,supportsFreeCamera:!0,zAxisUnit:"meters",center:[0,0],project:(a,b)=>({x:gv(a),y:gw(b),z:0}),unproject(a,b){const c=gy(a),d=gz(b);return new gs(c,d)},projectTilePoint:(a,b)=>({x:a,y:b,z:0}),locationPoint:(a,b)=>a._coordinatePoint(a.locationCoordinate(b),!1),pixelsPerMeter:(a,b)=>gx(1,a)*b,farthestPixelDistance(a){return k_(a,this.pixelsPerMeter(a.center.lat,a.worldSize))},createTileTransform:(a,b)=>new lj(a,b)};const lt=85.051129*P;var lu={name:"naturalEarth",center:[0,0],range:[3.5,7],isReprojectedInTileSpace:!0,zAxisUnit:"meters",unsupportedLayers:["custom"],project(a,b){const c=(b*=P)*b,d=c*c;return{x:.5*((a*=P)*(.8707-.131979*c+d*(d*(.003971*c-.001529*d)-.013791))/Math.PI+.5),y:1-.5*(b*(1.007226+c*(.015085+d*(.028874*c-.044475-.005916*d)))/Math.PI+1),z:0}},unproject(a,b){a=(2*a-.5)*Math.PI;let c=b=(2*(1-b)-1)*Math.PI,d=25,f=0,g=c*c;do{g=c*c;const h=g*g;f=(c*(1.007226+g*(.015085+h*(.028874*g-.044475-.005916*h)))-b)/(1.007226+g*(.045255+h*(.259866*g-.311325-.06507600000000001*h))),c=X(c-f,-lt,lt)}while(Math.abs(f)>1e-6&& --d>0)g=c*c;const i=X(a/(.8707+g*(g*(g*g*g*(.003971-.001529*g)-.013791)-.131979))*Q,-180,180),j=c*Q;return new gs(i,j)},projectTilePoint:(a,b)=>({x:a,y:b,z:0}),locationPoint:(a,b)=>a._coordinatePoint(a.locationCoordinate(b),!1),pixelsPerMeter:(a,b)=>gx(1,a)*b,farthestPixelDistance(a){return k_(a,this.pixelsPerMeter(a.center.lat,a.worldSize))},createTileTransform:(a,b)=>new lj(a,b)};const lv=85.051129*P,lw={albers:lk,equalEarth:lm,equirectangular:ln,lambertConformalConic:lr,mercator:ls,naturalEarth:lu,winkelTripel:{name:"winkelTripel",center:[0,0],range:[3.5,7],zAxisUnit:"meters",isReprojectedInTileSpace:!0,unsupportedLayers:["custom"],project(a,b){b*=P,a*=P;const c=Math.cos(b),d=Math.acos(c*Math.cos(a/2)),f=Math.sin(d)/d,g=.5*(a*(2/Math.PI)+2*c*Math.sin(a/2)/f)||0,h=.5*(b+Math.sin(b)/f)||0;return{x:.5*(g/Math.PI+.5),y:1-.5*(h/Math.PI+1),z:0}},unproject(a,b){let c=a=(2*a-.5)*Math.PI,d=b=(2*(1-b)-1)*Math.PI,f=25,g=0,h=0;do{const i=Math.cos(d),j=Math.sin(d),k=2*j*i,l=j*j,m=i*i,n=Math.cos(c/2),o=Math.sin(c/2),p=2*n*o,q=o*o,r=1-m*n*n,s=r?1/r:0,u=r?Math.acos(i*n)*Math.sqrt(1/r):0,v=.5*(2*u*i*o+2*c/Math.PI)-a,w=.5*(u*j+d)-b,x=.5*s*(m*q+u*i*n*l)+1/Math.PI,y=s*(p*k/4-u*j*o),z=.125*s*(k*o-u*j*m*p),A=.5*s*(l*n+u*q*i)+.5,B=y*z-A*x;g=(w*y-v*A)/B,h=(v*z-w*x)/B,c=X(c-g,-Math.PI,Math.PI),d=X(d-h,-lv,lv)}while((Math.abs(g)>1e-6||Math.abs(h)>1e-6)&& --f>0)return new gs(c*Q,d*Q)},projectTilePoint:(a,b)=>({x:a,y:b,z:0}),locationPoint:(a,b)=>a._coordinatePoint(a.locationCoordinate(b),!1),pixelsPerMeter:(a,b)=>gx(1,a)*b,farthestPixelDistance(a){return k_(a,this.pixelsPerMeter(a.center.lat,a.worldSize))},createTileTransform:(a,b)=>new lj(a,b)}};a.ARRAY_TYPE=j,a.AUTH_ERR_MSG=aI,a.Aabb=g0,a.Actor=class{constructor(a,b,c){this.target=a,this.parent=b,this.mapId=c,this.callbacks={},this.cancelCallbacks={},ag(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.globalScope=ap()?a:i,this.scheduler=new class{constructor(){this.tasks={},this.taskQueue=[],ag(["process"],this),this.invoker=new class{constructor(a){this._callback=a,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){delete this._channel,this._callback=()=>{}}}(this.process),this.nextId=0}add(a,b){const c=this.nextId++,d=function({type:a,isSymbolTile:b,zoom:c}){return c=c||0,"message"===a?0:"maybePrepare"!==a||b?"parseTile"!==a||b?"parseTile"===a&&b?300-c:"maybePrepare"===a&&b?400-c:500:200-c:100-c}(b);return 0===d?(ap(),a(),{cancel(){}}):(this.tasks[c]={fn:a,metadata:b,priority:d,id:c},this.taskQueue.push(c),this.invoker.trigger(),{cancel:()=>{delete this.tasks[c]}})}process(){ap();{if(this.taskQueue=this.taskQueue.filter(a=>!!this.tasks[a]),!this.taskQueue.length)return;const a=this.pick();if(null===a)return;const b=this.tasks[a];if(delete this.tasks[a],this.taskQueue.length&&this.invoker.trigger(),!b)return;b.fn()}}pick(){let a=null,b=1/0;for(let c=0;c{c&&delete this.callbacks[h],this.target.postMessage({id:h,type:"",targetMapId:d,sourceMapId:this.mapId})}}}receive(a){const b=a.data,c=b.id;if(c&&(!b.targetMapId||this.mapId===b.targetMapId)){if(""===b.type){const d=this.cancelCallbacks[c];delete this.cancelCallbacks[c],d&&d.cancel()}else if(b.mustQueue||ap()){const f=this.callbacks[c];this.cancelCallbacks[c]=this.scheduler.add(()=>this.processTask(c,b),f&&f.metadata||{type:"message"})}else this.processTask(c,b)}}processTask(a,b){if(""===b.type){const c=this.callbacks[a];delete this.callbacks[a],c&&(b.error?c(eh(b.error)):c(null,eh(b.data)))}else{const d=av(this.globalScope)?void 0:[],f=b.hasCallback?(b,c)=>{delete this.cancelCallbacks[a],this.target.postMessage({id:a,type:"",sourceMapId:this.mapId,error:b?eg(b):null,data:eg(c,d)},d)}:a=>{},g=eh(b.data);if(this.parent[b.type])this.parent[b.type](b.sourceMapId,g,f);else if(this.parent.getWorkerSource){const h=b.type.split(".");this.parent.getWorkerSource(b.sourceMapId,h[0],g.source)[h[1]](g,f)}else f(Error(`Could not find function ${b.type}`))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}},a.CanonicalTileID=ke,a.Color=bK,a.ColorMode=kk,a.CullFaceMode=kl,a.DEMData=kw,a.DataConstantProperty=fa,a.DedupedRequest=lg,a.DepthMode=ki,a.EXTENT=8192,a.Elevation=class{getAtPointOrZero(a,b=0){return this.getAtPoint(a,b)||0}getAtPoint(a,b,c=!0){null==b&&(b=null);const d=this._source();if(!d||a.y<0||a.y>1)return b;const f=d.getSource().maxzoom,g=1<{const d=this.getAtTileOffset(a,c.x,c.y),f=b.upVector(a.canonical,c.x,c.y);return B(f,f,d*b.upVectorScale(a.canonical)),f}}getForTilePoints(a,b,c,d){const f=kA.create(this,a,d);return!!f&&(b.forEach(a=>{a[2]=this.exaggeration()*f.getElevationAt(a[0],a[1],c)}),!0)}getMinMaxForTile(a){const b=this.findDEMTileFor(a);if(!b||!b.dem)return null;const c=b.dem.tree,d=b.tileID,f=1<Math.abs(d))return!1;const f=((a[0]-this.pos[0])*b[0]+(a[1]-this.pos[1])*b[1]+(a[2]-this.pos[2])*b[2])/d;return c[0]=this.pos[0]+this.dir[0]*f,c[1]=this.pos[1]+this.dir[1]*f,c[2]=this.pos[2]+this.dir[2]*f,!0}closestPointOnSphere(a,b,c){var d,f,g,h,i,j,k,l;if(d=this.pos,f=a,g=d[0],h=d[1],i=d[2],j=f[0],k=f[1],l=f[2],Math.abs(g-j)<=1e-6*Math.max(1,Math.abs(g),Math.abs(j))&&Math.abs(h-k)<=1e-6*Math.max(1,Math.abs(h),Math.abs(k))&&Math.abs(i-l)<=1e-6*Math.max(1,Math.abs(i),Math.abs(l))||0===b)return c[0]=c[1]=c[2]=0,!1;const[m,n,o]=this.dir,p=this.pos[0]-a[0],q=this.pos[1]-a[1],r=this.pos[2]-a[2],s=m*m+n*n+o*o,u=2*(p*m+q*n+r*o),v=u*u-4*s*(p*p+q*q+r*r-b*b);if(v<0){const w=Math.max(-u/2,0),x=p+m*w,y=q+n*w,z=r+o*w,A=Math.hypot(x,y,z);return c[0]=x*b/A,c[1]=y*b/A,c[2]=z*b/A,!1}{const B=(-u-Math.sqrt(v))/(2*s);if(B<0){const C=Math.hypot(p,q,r);return c[0]=p*b/C,c[1]=q*b/C,c[2]=r*b/C,!1}return c[0]=p+m*B,c[1]=q+n*B,c[2]=r+o*B,!0}}},a.RequestManager=class{constructor(a,b,c){this._transformRequestFn=a,this._customAccessToken=b,this._silenceAuthErrors=!!c,this._createSkuToken()}_createSkuToken(){const a=function(){let a="";for(let b=0;b<10;b++)a+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1","01",a].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=a.token,this._skuTokenExpiresAt=a.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(a,b){return this._transformRequestFn&&this._transformRequestFn(a,b)||{url:a}}normalizeStyleURL(a,b){if(!aJ(a))return a;const c=aM(a);return c.path=`/styles/v1${c.path}`,this._makeAPIURL(c,this._customAccessToken||b)}normalizeGlyphsURL(a,b){if(!aJ(a))return a;const c=aM(a);return c.path=`/fonts/v1${c.path}`,this._makeAPIURL(c,this._customAccessToken||b)}normalizeSourceURL(a,b){if(!aJ(a))return a;const c=aM(a);return c.path=`/v4/${c.authority}.json`,c.params.push("secure"),this._makeAPIURL(c,this._customAccessToken||b)}normalizeSpriteURL(a,b,c,d){const f=aM(a);return aJ(a)?(f.path=`/styles/v1${f.path}/sprite${b}${c}`,this._makeAPIURL(f,this._customAccessToken||d)):(f.path+=`${b}${c}`,aN(f))}normalizeTileURL(a,b,c){if(this._isSkuTokenExpired()&&this._createSkuToken(),a&&!aJ(a))return a;const d=aM(a);d.path=d.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${b||c&&"raster"!==d.authority&&512===c?"@2x":""}${aC.supported?".webp":"$1"}`),"raster"===d.authority?d.path=`/${az.RASTER_URL_PREFIX}${d.path}`:(d.path=d.path.replace(/^.+\/v4\//,"/"),d.path=`/${az.TILE_URL_VERSION}${d.path}`);const f=this._customAccessToken||function(a){for(const b of a){const c=b.match(/^access_token=(.*)$/);if(c)return c[1]}return null}(d.params)||az.ACCESS_TOKEN;return az.REQUIRE_ACCESS_TOKEN&&f&&this._skuToken&&d.params.push(`sku=${this._skuToken}`),this._makeAPIURL(d,f)}canonicalizeTileURL(a,b){const c=aM(a);if(!c.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!c.path.match(/\.[\w]+$/))return a;let d="mapbox://";c.path.match(/^\/raster\/v1\//)?d+=`raster/${c.path.replace(`/${az.RASTER_URL_PREFIX}/`,"")}`:d+=`tiles/${c.path.replace(`/${az.TILE_URL_VERSION}/`,"")}`;let f=c.params;return b&&(f=f.filter(a=>!a.match(/^access_token=/))),f.length&&(d+=`?${f.join("&")}`),d}canonicalizeTileset(a,b){const c=!!b&&aJ(b),d=[];for(const f of a.tiles||[])aK(f)?d.push(this.canonicalizeTileURL(f,c)):d.push(f);return d}_makeAPIURL(a,b){const c="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",d=aM(az.API_URL);if(a.protocol=d.protocol,a.authority=d.authority,"http"===a.protocol){const f=a.params.indexOf("secure");f>=0&&a.params.splice(f,1)}if("/"!==d.path&&(a.path=`${d.path}${a.path}`),!az.REQUIRE_ACCESS_TOKEN)return aN(a);if(b=b||az.ACCESS_TOKEN,!this._silenceAuthErrors){if(!b)throw Error(`An API access token is required to use Mapbox GL. ${c}`);if("s"===b[0])throw Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${c}`)}return a.params=a.params.filter(a=>-1===a.indexOf("access_token")),a.params.push(`access_token=${b||""}`),aN(a)}},a.ResourceType=a3,a.SegmentVector=gq,a.SourceCache=kx,a.StencilMode=kj,a.StructArrayLayout1ui2=fG,a.StructArrayLayout2f1f2i16=fw,a.StructArrayLayout2i4=fm,a.StructArrayLayout2ui4=fF,a.StructArrayLayout3f12=fp,a.StructArrayLayout3ui6=fy,a.StructArrayLayout4i8=fn,a.Texture=j9,a.Tile=kX,a.Transitionable=e5,a.Uniform1f=f3,a.Uniform1i=class extends f2{constructor(a,b){super(a,b),this.current=0}set(a){this.current!==a&&(this.current=a,this.gl.uniform1i(this.location,a))}},a.Uniform2f=class extends f2{constructor(a,b){super(a,b),this.current=[0,0]}set(a){a[0]===this.current[0]&&a[1]===this.current[1]||(this.current=a,this.gl.uniform2f(this.location,a[0],a[1]))}},a.Uniform3f=class extends f2{constructor(a,b){super(a,b),this.current=[0,0,0]}set(a){a[0]===this.current[0]&&a[1]===this.current[1]&&a[2]===this.current[2]||(this.current=a,this.gl.uniform3f(this.location,a[0],a[1],a[2]))}},a.Uniform4f=f4,a.UniformColor=f5,a.UniformMatrix2f=class extends f2{constructor(a,b){super(a,b),this.current=f8}set(a){for(let b=0;b<4;b++)if(a[b]!==this.current[b]){this.current=a,this.gl.uniformMatrix2fv(this.location,!1,a);break}}},a.UniformMatrix3f=class extends f2{constructor(a,b){super(a,b),this.current=f7}set(a){for(let b=0;b<9;b++)if(a[b]!==this.current[b]){this.current=a,this.gl.uniformMatrix3fv(this.location,!1,a);break}}},a.UniformMatrix4f=class extends f2{constructor(a,b){super(a,b),this.current=f6}set(a){if(a[12]!==this.current[12]||a[0]!==this.current[0])return this.current=a,void this.gl.uniformMatrix4fv(this.location,!1,a);for(let b=1;b<16;b++)if(a[b]!==this.current[b]){this.current=a,this.gl.uniformMatrix4fv(this.location,!1,a);break}}},a.UnwrappedTileID=kf,a.ValidationError=bl,a.VectorTileWorkerSource=class extends bj{constructor(a,b,c,d,f){super(),this.actor=a,this.layerIndex=b,this.availableImages=c,this.loadVectorData=f||lh,this.loading={},this.loaded={},this.deduped=new lg(a.scheduler),this.isSpriteLoaded=d,this.scheduler=a.scheduler}loadTile(a,b){const c=a.uid,d=a&&a.request,f=d&&d.collectResourceTiming,g=this.loading[c]=new le(a);g.abort=this.loadVectorData(a,(h,i)=>{const j=!this.loading[c];if(delete this.loading[c],j||h||!i)return g.status="done",j||(this.loaded[c]=g),b(h);const k=i.rawData,l={};i.expires&&(l.expires=i.expires),i.cacheControl&&(l.cacheControl=i.cacheControl),g.vectorTile=i.vectorTile||new h2.VectorTile(new iG(k));const m=()=>{g.parse(g.vectorTile,this.layerIndex,this.availableImages,this.actor,(a,c)=>{if(a||!c)return b(a);const g={};if(f){const h=kc(d);h.length>0&&(g.resourceTiming=JSON.parse(JSON.stringify(h)))}b(null,aa({rawTileData:k.slice(0)},c,l,g))})};this.isSpriteLoaded?m():this.once("isSpriteLoaded",()=>{this.scheduler?this.scheduler.add(m,{type:"parseTile",isSymbolTile:a.isSymbolTile,zoom:a.tileZoom}):m()}),this.loaded=this.loaded||{},this.loaded[c]=g})}reloadTile(a,b){const c=this.loaded,d=a.uid,f=this;if(c&&c[d]){const g=c[d];g.showCollisionBoxes=a.showCollisionBoxes,g.enableTerrain=!!a.enableTerrain,g.projection=a.projection;const h=(a,c)=>{const d=g.reloadCallback;d&&(delete g.reloadCallback,g.parse(g.vectorTile,f.layerIndex,this.availableImages,f.actor,d)),b(a,c)};"parsing"===g.status?g.reloadCallback=h:"done"===g.status&&(g.vectorTile?g.parse(g.vectorTile,this.layerIndex,this.availableImages,this.actor,h):h())}}abortTile(a,b){const c=a.uid,d=this.loading[c];d&&(d.abort&&d.abort(),delete this.loading[c]),b()}removeTile(a,b){const c=this.loaded,d=a.uid;c&&c[d]&&delete c[d],b()}},a.WritingMode=i1,a.ZoomHistory=ei,a.add=x,a.addDynamicAttributes=jR,a.adjoint=function(a,b){var c=b[0],d=b[1],f=b[2],g=b[3],h=b[4],i=b[5],j=b[6],k=b[7],l=b[8];return a[0]=h*l-i*k,a[1]=f*k-d*l,a[2]=d*i-f*h,a[3]=i*j-g*l,a[4]=c*l-f*j,a[5]=f*g-c*i,a[6]=g*k-h*j,a[7]=d*j-c*k,a[8]=c*h-d*g,a},a.asyncAll=$,a.bezier=V,a.bindAll=ag,a.boundsAttributes=kV,a.bufferConvexPolygon=function(a,b){const c=[];for(let d=0;da_&&(a.getActor().send("enforceCacheSizeLimit",a$),a2=0)},a.calculateGlobeMatrix=la,a.calculateGlobeMercatorMatrix=function(a){const b=a.worldSize,c=X(a.center.lat,-85.051129,85.051129),d=new g(gv(a.center.lng)*b,gw(c)*b),f=gx(1,a.center.lat)*b,h=a.pixelsPerMeter,i=b/(f/a.pixelsPerMeter),j=l(new Float64Array(16));return n(j,j,[d.x,d.y,0]),o(j,j,[i,i,h]),j},a.clamp=X,a.clearTileCache=function(a){const b=i.caches.delete(aX);a&&b.catch(a).then(()=>a())},a.clipLine=jp,a.clone=function(a){var b=new j(16);return b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b[4]=a[4],b[5]=a[5],b[6]=a[6],b[7]=a[7],b[8]=a[8],b[9]=a[9],b[10]=a[10],b[11]=a[11],b[12]=a[12],b[13]=a[13],b[14]=a[14],b[15]=a[15],b},a.clone$1=ak,a.collisionCircleLayout=iv,a.config=az,a.conjugate=function(a,b){return a[0]=-b[0],a[1]=-b[1],a[2]=-b[2],a[3]=b[3],a},a.create=function(){var a=new j(16);return j!=Float32Array&&(a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[11]=0,a[12]=0,a[13]=0,a[14]=0),a[0]=1,a[5]=1,a[10]=1,a[15]=1,a},a.create$1=k,a.createExpression=dk,a.createLayout=fk,a.createStyleLayer=function(a){return"custom"===a.type?new j0(a):new j3[a.type](a)},a.cross=F,a.degToRad=R,a.div=function(a,b,c){return a[0]=b[0]/c[0],a[1]=b[1]/c[1],a[2]=b[2]/c[2],a},a.dot=E,a.ease=W,a.easeCubicInOut=U,a.emitValidationErrors=d6,a.endsWith=ah,a.enforceCacheSizeLimit=function(a){a0(),aY&&aY.then(b=>{b.keys().then(c=>{for(let d=0;dg&&(d+=(a[f]-g)*(a[f]-g)),b[f]Math.abs(b.parallels[0]+b.parallels[1])){let c=function(a){const b=Math.max(.01,Math.cos(a*P)),c=1/(2*Math.max(Math.PI*b,1/b));return{wrap:!0,supportsWorldCopies:!0,unsupportedLayers:["custom",],project(a,d){const f=a*P*b,g=Math.sin(d*P)/b;return{x:f*c+.5,y:-g*c+.5,z:0}},unproject(a,d){const f=-(d-.5)/c,g=X((a-.5)/c*Q/b,-180,180),h=Math.asin(X(f*b,-1,1)),i=X(h*Q,-85.051129,85.051129);return new gs(g,i)}}}(b.parallels[0]);if("lambertConformalConic"===b.name){const{project:d,unproject:f}=lw.mercator;c={wrap:!0,supportsWorldCopies:!0,project:d,unproject:f}}return aa({},a,b,c)}return aa({},a,b)}(b,a):b},a.getRTLTextPluginStatus=e_,a.getReferrer=a5,a.getTilePoint=function(a,{x:b,y:c},d=0){return new g(((b-d)*a.scale-a.x)*8192,(c*a.scale-a.y)*8192)},a.getTileVec3=function(a,b,c=0){return w(((b.x-c)*a.scale-a.x)*8192,(b.y*a.scale-a.y)*8192,gA(b.z,b.y))},a.getVideo=function(a,b){const c=i.document.createElement("video");c.muted=!0,c.onloadstart=function(){b(null,c)};for(let d=0;d0&&(h=1/Math.sqrt(h)),a[0]=c*h,a[1]=d*h,a[2]=f*h,a[3]=g*h,a},a.number=cr,a.ortho=function(a,b,c,d,f,g,h){var i=1/(b-c),j=1/(d-f),k=1/(g-h);return a[0]=-2*i,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*j,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2*k,a[11]=0,a[12]=(b+c)*i,a[13]=(f+d)*j,a[14]=(h+g)*k,a[15]=1,a},a.pbf=iG,a.perspective=function(a,b,c,d,f){var g,h=1/Math.tan(b/2);return a[0]=h/c,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=h,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[11]=-1,a[12]=0,a[13]=0,a[15]=0,null!=f&&f!==1/0?(a[10]=(f+d)*(g=1/(d-f)),a[14]=2*f*d*g):(a[10]=-1,a[14]=-2*d),a},a.pick=function(a,b){const c={};for(let d=0;dthis._layers[a.id]),k=j[0];if("none"===k.visibility)continue;const l=k.source||"";let m=this.familiesBySource[l];m||(m=this.familiesBySource[l]={});const n=k.sourceLayer||"_geojsonTileLayer";let o=m[n];o||(o=m[n]=[]),o.push(j)}}}const{ImageBitmap:f}=a.window;class g{loadTile(b,c){const{uid:d,encoding:g,rawImageData:h,padding:i,buildQuadTree:j}=b,k=f&&h instanceof f?this.getImageData(h,i):h;c(null,new a.DEMData(d,k,g,i<1,j))}getImageData(b,c){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(b.width,b.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=b.width,this.offscreenCanvas.height=b.height,this.offscreenCanvasContext.drawImage(b,0,0,b.width,b.height);const d=this.offscreenCanvasContext.getImageData(-c,-c,b.width+2*c,b.height+2*c);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new a.RGBAImage({width:d.width,height:d.height},d.data)}}var h,i=function a(b,c){var d,f=b&&b.type;if("FeatureCollection"===f)for(d=0;d=Math.abs(i)?c-j+i:i-j+c,c=j}c+d>=0!= !!b&&a.reverse()}const l=a.vectorTile.VectorTileFeature.prototype.toGeoJSON;class m{constructor(b){this._feature=b,this.extent=a.EXTENT,this.type=b.type,this.properties=b.tags,"id"in b&&!isNaN(b.id)&&(this.id=parseInt(b.id,10))}loadGeometry(){if(1===this._feature.type){const b=[];for(const c of this._feature.geometry)b.push([new a.pointGeometry(c[0],c[1]),]);return b}{const d=[];for(const f of this._feature.geometry){const g=[];for(const h of f)g.push(new a.pointGeometry(h[0],h[1]));d.push(g)}return d}}toGeoJSON(a,b,c){return l.call(this,a,b,c)}}class n{constructor(b){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=a.EXTENT,this.length=b.length,this._features=b}feature(a){return new m(this._features[a])}}var o=a.vectorTile.VectorTileFeature,p=q;function q(a,b){this.options=b||{},this.features=a,this.length=a.length}function r(a,b){this.id="number"==typeof a.id?a.id:void 0,this.type=a.type,this.rawGeometry=1===a.type?[a.geometry]:a.geometry,this.properties=a.tags,this.extent=b||4096}q.prototype.feature=function(a){return new r(this.features[a],this.options.extent)},r.prototype.loadGeometry=function(){var b=this.rawGeometry;this.geometry=[];for(var c=0;c>31}function A(a,b){for(var c=a.loadGeometry(),d=a.type,f=0,g=0,h=c.length,i=0;i>1;D(a,b,h,d,f,g%2),C(a,b,c,d,h-1,g+1),C(a,b,c,h+1,f,g+1)}function D(a,b,c,d,f,g){for(;f>d;){if(f-d>600){const h=f-d+1,i=c-d+1,j=Math.log(h),k=.5*Math.exp(2*j/3),l=.5*Math.sqrt(j*k*(h-k)/h)*(i-h/2<0?-1:1);D(a,b,c,Math.max(d,Math.floor(c-i*k/h+l)),Math.min(f,Math.floor(c+(h-i)*k/h+l)),g)}const m=b[2*c+g];let n=d,o=f;for(E(a,b,d,c),b[2*f+g]>m&&E(a,b,d,f);nm;)o--}b[2*d+g]===m?E(a,b,d,o):E(a,b,++o,f),o<=c&&(d=o+1),c<=o&&(f=o-1)}}function E(a,b,c,d){F(a,c,d),F(b,2*c,2*d),F(b,2*c+1,2*d+1)}function F(a,b,c){const d=a[b];a[b]=a[c],a[c]=d}function G(a,b,c,d){const f=a-c,g=b-d;return f*f+g*g}s.fromVectorTileJs=u,s.fromGeojsonVt=function(a,b){b=b||{};var c={};for(var d in a)c[d]=new p(a[d].features,b),c[d].name=d,c[d].version=b.version,c[d].extent=b.extent;return u({layers:c})},s.GeoJSONWrapper=p;class H{constructor(a,b=a=>a[0],c=a=>a[1],d=64,f=Float64Array){this.nodeSize=d,this.points=a;const g=a.length<65536?Uint16Array:Uint32Array,h=this.ids=new g(a.length),i=this.coords=new f(2*a.length);for(let j=0;j=c&&k<=f&&l>=d&&l<=g&&j.push(a[p]);continue}const q=Math.floor((o+n)/2);k=b[2*q],l=b[2*q+1],k>=c&&k<=f&&l>=d&&l<=g&&j.push(a[q]);const r=(m+1)%2;(0===m?c<=k:d<=l)&&(i.push(o),i.push(q-1),i.push(r)),(0===m?f>=k:g>=l)&&(i.push(q+1),i.push(n),i.push(r))}return j}(this.ids,this.coords,a,b,c,d,this.nodeSize)}within(a,b,c){return function(a,b,c,d,f,g){const h=[0,a.length-1,0],i=[],j=f*f;for(;h.length;){const k=h.pop(),l=h.pop(),m=h.pop();if(l-m<=g){for(let n=m;n<=l;n++)G(b[2*n],b[2*n+1],c,d)<=j&&i.push(a[n]);continue}const o=Math.floor((m+l)/2),p=b[2*o],q=b[2*o+1];G(p,q,c,d)<=j&&i.push(a[o]);const r=(k+1)%2;(0===k?c-f<=p:d-f<=q)&&(h.push(m),h.push(o-1),h.push(r)),(0===k?c+f>=p:d+f>=q)&&(h.push(o+1),h.push(l),h.push(r))}return i}(this.ids,this.coords,a,b,c,this.nodeSize)}}const I=Math.fround||(h=new Float32Array(1),a=>(h[0]=+a,h[0]));class J{constructor(a){this.options=R(Object.create({minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:a=>a}),a),this.trees=Array(this.options.maxZoom+1)}load(a){const{log:b,minZoom:c,maxZoom:d,nodeSize:f}=this.options;b&&console.time("total time");const g=`prepare ${a.length} points`;b&&console.time(g),this.points=a;let h=[];for(let i=0;i=c;j--){const k=+Date.now();h=this._cluster(h,j),this.trees[j]=new H(h,S,T,f,Float32Array),b&&console.log("z%d: %d clusters in %dms",j,h.length,+Date.now()-k)}return b&&console.timeEnd("total time"),this}getClusters(a,b){let c=((a[0]+180)%360+360)%360-180;const d=Math.max(-90,Math.min(90,a[1]));let f=180===a[2]?180:((a[2]+180)%360+360)%360-180;const g=Math.max(-90,Math.min(90,a[3]));if(a[2]-a[0]>=360)c=-180,f=180;else if(c>f){const h=this.getClusters([c,d,180,g],b),i=this.getClusters([-180,d,f,g],b);return h.concat(i)}const j=this.trees[this._limitZoom(b)],k=j.range(O(c),P(g),O(f),P(d)),l=[];for(const m of k){const n=j.points[m];l.push(n.numPoints?M(n):this.points[n.index])}return l}getChildren(a){const b=this._getOriginId(a),c=this._getOriginZoom(a),d="No cluster with the specified id.",f=this.trees[c];if(!f)throw Error(d);const g=f.points[b];if(!g)throw Error(d);const h=this.options.radius/(this.options.extent*Math.pow(2,c-1)),i=f.within(g.x,g.y,h),j=[];for(const k of i){const l=f.points[k];l.parentId===a&&j.push(l.numPoints?M(l):this.points[l.index])}if(0===j.length)throw Error(d);return j}getLeaves(a,b,c){const d=[];return this._appendLeaves(d,a,b=b||10,c=c||0,0),d}getTile(a,b,c){const d=this.trees[this._limitZoom(a)],f=Math.pow(2,a),{extent:g,radius:h}=this.options,i=h/g,j=(c-i)/f,k=(c+1+i)/f,l={features:[]};return this._addTileFeatures(d.range((b-i)/f,j,(b+1+i)/f,k),d.points,b,c,f,l),0===b&&this._addTileFeatures(d.range(1-i/f,j,1,k),d.points,f,c,f,l),b===f-1&&this._addTileFeatures(d.range(0,j,i/f,k),d.points,-1,c,f,l),l.features.length?l:null}getClusterExpansionZoom(a){let b=this._getOriginZoom(a)-1;for(;b<=this.options.maxZoom;){const c=this.getChildren(a);if(b++,1!==c.length)break;a=c[0].properties.cluster_id}return b}_appendLeaves(a,b,c,d,f){const g=this.getChildren(b);for(const h of g){const i=h.properties;if(i&&i.cluster?f+i.point_count<=d?f+=i.point_count:f=this._appendLeaves(a,i.cluster_id,c,d,f):fb&&(o+=q.numPoints||1)}if(o>n&&o>=h){let r=k.x*n,s=k.y*n,u=g&&n>1?this._map(k,!0):null;const v=(j<<5)+(b+1)+this.points.length;for(const w of m){const x=l.points[w];if(x.zoom<=b)continue;x.zoom=b;const y=x.numPoints||1;r+=x.x*y,s+=x.y*y,x.parentId=v,g&&(u||(u=this._map(k,!0)),g(u,this._map(x)))}k.parentId=v,c.push(K(r/o,s/o,v,o,u))}else if(c.push(k),o>1)for(const z of m){const A=l.points[z];A.zoom<=b||(A.zoom=b,c.push(A))}}return c}_getOriginId(a){return a-this.points.length>>5}_getOriginZoom(a){return(a-this.points.length)%32}_map(a,b){if(a.numPoints)return b?R({},a.properties):a.properties;const c=this.points[a.index].properties,d=this.options.map(c);return b&&d===c?R({},d):d}}function K(a,b,c,d,f){return{x:I(a),y:I(b),zoom:1/0,id:c,parentId:-1,numPoints:d,properties:f}}function L(a,b){const[c,d]=a.geometry.coordinates;return{x:I(O(c)),y:I(P(d)),zoom:1/0,index:b,parentId:-1}}function M(a){return{type:"Feature",id:a.id,properties:N(a),geometry:{type:"Point",coordinates:[360*(a.x-.5),Q(a.y),]}}}function N(a){const b=a.numPoints,c=b>=1e4?`${Math.round(b/1e3)}k`:b>=1e3?Math.round(b/100)/10+"k":b;return R(R({},a.properties),{cluster:!0,cluster_id:a.id,point_count:b,point_count_abbreviated:c})}function O(a){return a/360+.5}function P(a){const b=Math.sin(a*Math.PI/180),c=.5-.25*Math.log((1+b)/(1-b))/Math.PI;return c<0?0:c>1?1:c}function Q(a){return 360*Math.atan(Math.exp((180-360*a)*Math.PI/180))/Math.PI-90}function R(a,b){for(const c in b)a[c]=b[c];return a}function S(a){return a.x}function T(a){return a.y}function U(a,b,c,d){for(var f,g=d,h=c-b>>1,i=c-b,j=a[b],k=a[b+1],l=a[c],m=a[c+1],n=b+3;ng)f=n,g=o;else if(o===g){var p=Math.abs(n-h);pd&&(f-b>3&&U(a,b,f,d),a[f+2]=g,c-f>3&&U(a,f,c,d))}function V(a,b,c,d,f,g){var h=f-c,i=g-d;if(0!==h||0!==i){var j=((a-c)*h+(b-d)*i)/(h*h+i*i);j>1?(c=f,d=g):j>0&&(c+=h*j,d+=i*j)}return(h=a-c)*h+(i=b-d)*i}function W(a,b,c,d){var f={id:void 0===a?null:a,type:b,geometry:c,tags:d,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(a){var b=a.geometry,c=a.type;if("Point"===c||"MultiPoint"===c||"LineString"===c)X(a,b);else if("Polygon"===c||"MultiLineString"===c)for(var d=0;d0&&(h+=d?(f*k-j*g)/2:Math.sqrt(Math.pow(j-f,2)+Math.pow(k-g,2))),f=j,g=k}var l=b.length-3;b[2]=1,U(b,0,l,c),b[l+2]=1,b.size=Math.abs(h),b.start=0,b.end=b.size}function _(a,b,c,d){for(var f=0;f1?1:c}function ac(a,b,c,d,f,g,h,i){if(d/=b,g>=(c/=b)&&h=d)return null;for(var j=[],k=0;k=c&&p=d)){var q=[];if("Point"===n||"MultiPoint"===n)ad(m,q,c,d,f);else if("LineString"===n)ae(m,q,c,d,f,!1,i.lineMetrics);else if("MultiLineString"===n)ag(m,q,c,d,f,!1);else if("Polygon"===n)ag(m,q,c,d,f,!0);else if("MultiPolygon"===n)for(var r=0;r=c&&h<=d&&(b.push(a[g]),b.push(a[g+1]),b.push(a[g+2]))}}function ae(a,b,c,d,f,g,h){for(var i,j,k=af(a),l=0===f?ai:aj,m=a.start,n=0;nc&&(j=l(k,o,p,r,s,c),h&&(k.start=m+i*j)):u>d?v=c&&(j=l(k,o,p,r,s,c),w=!0),v>d&&u<=d&&(j=l(k,o,p,r,s,d),w=!0),!g&&w&&(h&&(k.end=m+i*j),b.push(k),k=af(a)),h&&(m+=i)}var x=a.length-3;o=a[x],p=a[x+1],q=a[x+2],(u=0===f?o:p)>=c&&u<=d&&ah(k,o,p,q),x=k.length-3,g&&x>=3&&(k[x]!==k[0]||k[x+1]!==k[1])&&ah(k,k[0],k[1],k[2]),k.length&&b.push(k)}function af(a){var b=[];return b.size=a.size,b.start=a.start,b.end=a.end,b}function ag(a,b,c,d,f,g){for(var h=0;hh.maxX&&(h.maxX=l),m>h.maxY&&(h.maxY=m)}return h}function ap(a,b,c,d){var f=b.geometry,g=b.type,h=[];if("Point"===g||"MultiPoint"===g)for(var i=0;i0&&b.size<(f?h:d))c.numPoints+=b.length/3;else{for(var i=[],j=0;jh)&&(c.numSimplified++,i.push(b[j]),i.push(b[j+1])),c.numPoints++;f&&function(a,b){for(var c=0,d=0,f=a.length,g=f-2;d0===b)for(d=0,f=a.length;d24)throw Error("maxZoom should be in the 0-24 range");if(b.promoteId&&b.generateId)throw Error("promoteId and generateId cannot be used together.");var d,f,g,h,i,j,k=function(a,b){var c=[];if("FeatureCollection"===a.type)for(var d=0;d1&&console.time("creation"),n=this.tiles[m]=ao(a,b,c,d,j),this.tileCoords.push({z:b,x:c,y:d}),k)){k>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",b,c,d,n.numFeatures,n.numPoints,n.numSimplified),console.timeEnd("creation"));var o="z"+b;this.stats[o]=(this.stats[o]||0)+1,this.total++}if(n.source=a,f){if(b===j.maxZoom||b===f)continue;var p=1<1&&console.time("clipping");var q,r,s,u,v,w,x=.5*j.buffer/j.extent,y=.5-x,z=.5+x,A=1+x;q=r=s=u=null,v=ac(a,l,c-x,c+z,0,n.minX,n.maxX,j),w=ac(a,l,c+y,c+A,0,n.minX,n.maxX,j),a=null,v&&(q=ac(v,l,d-x,d+z,1,n.minY,n.maxY,j),r=ac(v,l,d+y,d+A,1,n.minY,n.maxY,j),v=null),w&&(s=ac(w,l,d-x,d+z,1,n.minY,n.maxY,j),u=ac(w,l,d+y,d+A,1,n.minY,n.maxY,j),w=null),k>1&&console.timeEnd("clipping"),i.push(q||[],b+1,2*c,2*d),i.push(r||[],b+1,2*c,2*d+1),i.push(s||[],b+1,2*c+1,2*d),i.push(u||[],b+1,2*c+1,2*d+1)}}},ar.prototype.getTile=function(a,b,c){var d=this.options,f=d.extent,g=d.debug;if(a<0||a>24)return null;var h=1<1&&console.log("drilling down to z%d-%d-%d",a,b,c);for(var j,k=a,l=b,m=c;!j&&k>0;)k--,l=Math.floor(l/2),m=Math.floor(m/2),j=this.tiles[as(k,l,m)];return j&&j.source?(g>1&&console.log("found parent tile z%d-%d-%d",k,l,m),g>1&&console.time("drilling down"),this.splitTile(j.source,k,l,m,a,b,c),g>1&&console.timeEnd("drilling down"),this.tiles[i]?am(this.tiles[i],f):null):null};class at extends a.VectorTileWorkerSource{constructor(a,b,c,d,f){super(a,b,c,d,function(a,b){const c=a.tileID.canonical;if(!this._geoJSONIndex)return b(null,null);const d=this._geoJSONIndex.getTile(c.z,c.x,c.y);if(!d)return b(null,null);const f=new n(d.features);let g=s(f);0===g.byteOffset&&g.byteLength===g.buffer.byteLength||(g=new Uint8Array(g)),b(null,{vectorTile:f,rawData:g.buffer})}),f&&(this.loadGeoJSON=f)}loadData(b,c){const d=b&&b.request,f=d&&d.collectResourceTiming;this.loadGeoJSON(b,(g,h)=>{if(g||!h)return c(g);if("object"!=typeof h)return c(Error(`Input data given to '${b.source}' is not a valid GeoJSON object.`));{i(h,!0);try{var j,k;if(b.filter){const l=a.createExpression(b.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===l.result)throw Error(l.value.map(a=>`${a.key}: ${a.message}`).join(", "));const m=h.features.filter(a=>l.value.evaluate({zoom:0},a));h={type:"FeatureCollection",features:m}}this._geoJSONIndex=b.cluster?new J(function({superclusterOptions:b,clusterProperties:c}){if(!c||!b)return b;const d={},f={},g={accumulated:null,zoom:0},h={properties:null},i=Object.keys(c);for(const j of i){const[k,l]=c[j],m=a.createExpression(l),n=a.createExpression("string"==typeof k?[k,["accumulated",],["get",j,],]:k);d[j]=m.value,f[j]=n.value}return b.map=a=>{h.properties=a;const b={};for(const c of i)b[c]=d[c].evaluate(g,h);return b},b.reduce=(a,b)=>{for(const c of(h.properties=b,i))g.accumulated=a[c],a[c]=f[c].evaluate(g,h)},b}(b)).load(h.features):(j=h,k=b.geojsonVtOptions,new ar(j,k))}catch(n){return c(n)}this.loaded={};const o={};if(f){const p=a.getPerformanceMeasurement(d);p&&(o.resourceTiming={},o.resourceTiming[b.source]=JSON.parse(JSON.stringify(p)))}c(null,o)}})}reloadTile(a,b){const c=this.loaded;return c&&c[a.uid]?super.reloadTile(a,b):this.loadTile(a,b)}loadGeoJSON(b,c){if(b.request)a.getJSON(b.request,c);else{if("string"!=typeof b.data)return c(Error(`Input data given to '${b.source}' is not a valid GeoJSON object.`));try{return c(null,JSON.parse(b.data))}catch(d){return c(Error(`Input data given to '${b.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(a,b){try{b(null,this._geoJSONIndex.getClusterExpansionZoom(a.clusterId))}catch(c){b(c)}}getClusterChildren(a,b){try{b(null,this._geoJSONIndex.getChildren(a.clusterId))}catch(c){b(c)}}getClusterLeaves(a,b){try{b(null,this._geoJSONIndex.getLeaves(a.clusterId,a.limit,a.offset))}catch(c){b(c)}}}class au{constructor(b){this.self=b,this.actor=new a.Actor(b,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=a.getProjection({name:"mercator"}),this.workerSourceTypes={vector:a.VectorTileWorkerSource,geojson:at},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(a,b)=>{if(this.workerSourceTypes[a])throw Error(`Worker source with name "${a}" already registered.`);this.workerSourceTypes[a]=b},this.self.registerRTLTextPlugin=b=>{if(a.plugin.isParsed())throw Error("RTL text plugin already registered.");a.plugin.applyArabicShaping=b.applyArabicShaping,a.plugin.processBidirectionalText=b.processBidirectionalText,a.plugin.processStyledBidirectionalText=b.processStyledBidirectionalText}}clearCaches(a,b,c){delete this.layerIndexes[a],delete this.availableImages[a],delete this.workerSources[a],delete this.demWorkerSources[a],c()}checkIfReady(a,b,c){c()}setReferrer(a,b){this.referrer=b}spriteLoaded(b,c){for(const d in this.isSpriteLoaded[b]=c,this.workerSources[b]){const f=this.workerSources[b][d];for(const g in f)f[g]instanceof a.VectorTileWorkerSource&&(f[g].isSpriteLoaded=c,f[g].fire(new a.Event("isSpriteLoaded")))}}setImages(a,b,c){for(const d in this.availableImages[a]=b,this.workerSources[a]){const f=this.workerSources[a][d];for(const g in f)f[g].availableImages=b}c()}enableTerrain(a,b,c){this.terrain=b,c()}setProjection(b,c){this.projections[b]=a.getProjection(c)}setLayers(a,b,c){this.getLayerIndex(a).replace(b),c()}updateLayers(a,b,c){this.getLayerIndex(a).update(b.layers,b.removedIds),c()}loadTile(b,c,d){const f=this.enableTerrain?a.extend({enableTerrain:this.terrain},c):c;f.projection=this.projections[b]||this.defaultProjection,this.getWorkerSource(b,c.type,c.source).loadTile(f,d)}loadDEMTile(b,c,d){const f=this.enableTerrain?a.extend({buildQuadTree:this.terrain},c):c;this.getDEMWorkerSource(b,c.source).loadTile(f,d)}reloadTile(b,c,d){const f=this.enableTerrain?a.extend({enableTerrain:this.terrain},c):c;f.projection=this.projections[b]||this.defaultProjection,this.getWorkerSource(b,c.type,c.source).reloadTile(f,d)}abortTile(a,b,c){this.getWorkerSource(a,b.type,b.source).abortTile(b,c)}removeTile(a,b,c){this.getWorkerSource(a,b.type,b.source).removeTile(b,c)}removeSource(a,b,c){if(!this.workerSources[a]||!this.workerSources[a][b.type]||!this.workerSources[a][b.type][b.source])return;const d=this.workerSources[a][b.type][b.source];delete this.workerSources[a][b.type][b.source],void 0!==d.removeSource?d.removeSource(b,c):c()}loadWorkerSource(a,b,c){try{this.self.importScripts(b.url),c()}catch(d){c(d.toString())}}syncRTLPluginState(b,c,d){try{a.plugin.setState(c);const f=a.plugin.getPluginURL();if(a.plugin.isLoaded()&&!a.plugin.isParsed()&&null!=f){this.self.importScripts(f);const g=a.plugin.isParsed();d(g?void 0:Error(`RTL Text Plugin failed to import scripts from ${f}`),g)}}catch(h){d(h.toString())}}getAvailableImages(a){let b=this.availableImages[a];return b||(b=[]),b}getLayerIndex(a){let b=this.layerIndexes[a];return b||(b=this.layerIndexes[a]=new d),b}getWorkerSource(a,b,c){return this.workerSources[a]||(this.workerSources[a]={}),this.workerSources[a][b]||(this.workerSources[a][b]={}),this.workerSources[a][b][c]||(this.workerSources[a][b][c]=new this.workerSourceTypes[b]({send:(b,c,d,f,g,h)=>{this.actor.send(b,c,d,a,g,h)},scheduler:this.actor.scheduler},this.getLayerIndex(a),this.getAvailableImages(a),this.isSpriteLoaded[a])),this.workerSources[a][b][c]}getDEMWorkerSource(a,b){return this.demWorkerSources[a]||(this.demWorkerSources[a]={}),this.demWorkerSources[a][b]||(this.demWorkerSources[a][b]=new g),this.demWorkerSources[a][b]}enforceCacheSizeLimit(b,c){a.enforceCacheSizeLimit(c)}getWorkerPerformanceMetrics(a,b,c){c(void 0,void 0)}}return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new au(self)),au}),f(["./shared"],function(a){var b=c;function c(a){var b,f;return b=a,"undefined"!=typeof window&&"undefined"!=typeof document&&!!Array.prototype&&!!Array.prototype.every&&!!Array.prototype.filter&&!!Array.prototype.forEach&&!!Array.prototype.indexOf&&!!Array.prototype.lastIndexOf&&!!Array.prototype.map&&!!Array.prototype.some&&!!Array.prototype.reduce&&!!Array.prototype.reduceRight&&!!Array.isArray&&!!Function.prototype&&!!Function.prototype.bind&&!!Object.keys&&!!Object.create&&!!Object.getPrototypeOf&&!!Object.getOwnPropertyNames&&!!Object.isSealed&&!!Object.isFrozen&&!!Object.isExtensible&&!!Object.getOwnPropertyDescriptor&&!!Object.defineProperty&&!!Object.defineProperties&&!!Object.seal&&!!Object.freeze&&!!Object.preventExtensions&&!!("JSON"in window&&"parse"in JSON&&"stringify"in JSON)&&!!function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var a,b,c=new Blob([""],{type:"text/javascript"}),d=URL.createObjectURL(c);try{b=new Worker(d),a=!0}catch(f){a=!1}return b&&b.terminate(),URL.revokeObjectURL(d),a}()&&"Uint8ClampedArray"in window&&!!ArrayBuffer.isView&&!!function(){var a=document.createElement("canvas");a.width=a.height=1;var b=a.getContext("2d");if(!b)return!1;var c=b.getImageData(0,0,1,1);return c&&c.width===a.width}()&&(void 0===d[f=b&&b.failIfMajorPerformanceCaveat]&&(d[f]=function(a){var b,d,f,g,h=(b=a,d=document.createElement("canvas"),(f=Object.create(c.webGLContextAttributes)).failIfMajorPerformanceCaveat=b,d.getContext("webgl",f)||d.getContext("experimental-webgl",f));if(!h)return!1;try{g=h.createShader(h.VERTEX_SHADER)}catch(i){return!1}return!(!g||h.isContextLost())&&(h.shaderSource(g,"void main() {}"),h.compileShader(g),!0===h.getShaderParameter(g,h.COMPILE_STATUS))}(f)),!!d[f]&&!document.documentMode)}var d={};function f(a,b){var c=b[0],d=b[1],f=b[2],g=b[3],h=c*g-f*d;return h?(a[0]=g*(h=1/h),a[1]=-d*h,a[2]=-f*h,a[3]=c*h,a):null}function g(a,b){if(Array.isArray(a)){if(!Array.isArray(b)||a.length!==b.length)return!1;for(let c=0;c{a.window.removeEventListener("click",l,!0)},0)},h.mousePos=function(a,b){const c=a.getBoundingClientRect();return m(a,c,b)},h.touchPos=function(a,b){const c=a.getBoundingClientRect(),d=[];for(let f=0;f=0?0:b.button};class o extends a.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(a){if(this.loaded!==a&&(this.loaded=a,a)){for(const{ids:b,callback:c}of this.requestors)this._notify(b,c);this.requestors=[]}}getImage(a){return this.images[a]}addImage(a,b){this._validate(a,b)&&(this.images[a]=b)}_validate(b,c){let d=!0;return this._validateStretch(c.stretchX,c.data&&c.data.width)||(this.fire(new a.ErrorEvent(Error(`Image "${b}" has invalid "stretchX" value`))),d=!1),this._validateStretch(c.stretchY,c.data&&c.data.height)||(this.fire(new a.ErrorEvent(Error(`Image "${b}" has invalid "stretchY" value`))),d=!1),this._validateContent(c.content,c)||(this.fire(new a.ErrorEvent(Error(`Image "${b}" has invalid "content" value`))),d=!1),d}_validateStretch(a,b){if(!a)return!0;let c=0;for(const d of a){if(d[0]{this.ready=!0})}broadcast(b,c,d){a.asyncAll(this.actors,(a,d)=>{a.send(b,c,d)},d=d||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach(a=>{a.remove()}),this.actors=[],this.workerPool.release(this.id)}}function C(b,c,d){return c*(a.EXTENT/(b.tileSize*Math.pow(2,d-b.tileID.overscaledZ)))}B.Actor=a.Actor;class D{constructor(a,b,c){this.context=a;const d=a.gl;this.buffer=d.createBuffer(),this.dynamicDraw=Boolean(c),this.context.unbindVAO(),a.bindElementBuffer.set(this.buffer),d.bufferData(d.ELEMENT_ARRAY_BUFFER,b.arrayBuffer,this.dynamicDraw?d.DYNAMIC_DRAW:d.STATIC_DRAW),this.dynamicDraw||delete b.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(a){const b=this.context.gl;this.context.unbindVAO(),this.bind(),b.bufferSubData(b.ELEMENT_ARRAY_BUFFER,0,a.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const E={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class F{constructor(a,b,c,d){this.length=b.length,this.attributes=c,this.itemSize=b.bytesPerElement,this.dynamicDraw=d,this.context=a;const f=a.gl;this.buffer=f.createBuffer(),a.bindVertexBuffer.set(this.buffer),f.bufferData(f.ARRAY_BUFFER,b.arrayBuffer,this.dynamicDraw?f.DYNAMIC_DRAW:f.STATIC_DRAW),this.dynamicDraw||delete b.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(a){const b=this.context.gl;this.bind(),b.bufferSubData(b.ARRAY_BUFFER,0,a.arrayBuffer)}enableAttributes(a,b){for(let c=0;cd.pointCoordinate3D(a)),this.cameraGeometry=this.bufferedCameraGeometry(0)}static createFromScreenPoints(b,c){let d,f;if(b instanceof a.pointGeometry||"number"==typeof b[0]){const g=a.pointGeometry.convert(b);d=[a.pointGeometry.convert(b)],f=c.isPointAboveHorizon(g)}else{const h=a.pointGeometry.convert(b[0]),i=a.pointGeometry.convert(b[1]);d=[h,i],f=a.polygonizeBounds(h,i).every(a=>c.isPointAboveHorizon(a))}return new L(d,c.getCameraPoint(),f,c)}isPointQuery(){return 1===this.screenBounds.length}bufferedScreenGeometry(b){return a.polygonizeBounds(this.screenBounds[0],1===this.screenBounds.length?this.screenBounds[0]:this.screenBounds[1],b)}bufferedCameraGeometry(b){const c=this.screenBounds[0],d=1===this.screenBounds.length?this.screenBounds[0].add(new a.pointGeometry(1,1)):this.screenBounds[1],f=a.polygonizeBounds(c,d,0,!1);return this.cameraPoint.y>d.y&&(this.cameraPoint.x>c.x&&this.cameraPoint.x=d.x?f[2]=this.cameraPoint:this.cameraPoint.x<=c.x&&(f[3]=this.cameraPoint)),a.bufferConvexPolygon(f,b)}containsTile(b,c,d){var f;const g=b.queryPadding+1,h=b.tileID.wrap,i=d?this._bufferedCameraMercator(g,c).map(c=>a.getTilePoint(b.tileTransform,c,h)):this._bufferedScreenMercator(g,c).map(c=>a.getTilePoint(b.tileTransform,c,h)),j=this.screenGeometryMercator.map(c=>a.getTileVec3(b.tileTransform,c,h)),k=j.map(b=>new a.pointGeometry(b[0],b[1])),l=c.getFreeCameraOptions().position||new a.MercatorCoordinate(0,0,0),m=a.getTileVec3(b.tileTransform,l,h),n=j.map(b=>{const c=a.sub(b,b,m);return a.normalize(c,c),new a.Ray(m,c)}),o=C(b,1,c.zoom);if(a.polygonIntersectsBox(i,0,0,a.EXTENT,a.EXTENT))return{queryGeometry:this,tilespaceGeometry:k,tilespaceRays:n,bufferedTilespaceGeometry:i,bufferedTilespaceBounds:((f=a.getBounds(i)).min.x=a.clamp(f.min.x,0,a.EXTENT),f.min.y=a.clamp(f.min.y,0,a.EXTENT),f.max.x=a.clamp(f.max.x,0,a.EXTENT),f.max.y=a.clamp(f.max.y,0,a.EXTENT),f),tile:b,tileID:b.tileID,pixelToTileUnitsFactor:o}}_bufferedScreenMercator(a,b){const c=M(a);if(this._screenRaycastCache[c])return this._screenRaycastCache[c];{const d=this.bufferedScreenGeometry(a).map(a=>b.pointCoordinate3D(a));return this._screenRaycastCache[c]=d,d}}_bufferedCameraMercator(a,b){const c=M(a);if(this._cameraRaycastCache[c])return this._cameraRaycastCache[c];{const d=this.bufferedCameraGeometry(a).map(a=>b.pointCoordinate3D(a));return this._cameraRaycastCache[c]=d,d}}}function M(a){return 100*a|0}function N(b,c,d){const f=function(f,g){if(f)return d(f);if(g){const h=a.pick(a.extend(g,b),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding",]);g.vector_layers&&(h.vectorLayers=g.vector_layers,h.vectorLayerIds=h.vectorLayers.map(a=>a.id)),h.tiles=c.canonicalizeTileset(h,b.url),d(null,h)}};return b.url?a.getJSON(c.transformRequest(c.normalizeSourceURL(b.url),a.ResourceType.Source),f):a.exported.frame(()=>f(null,b))}class O{constructor(b,c,d){this.bounds=a.LngLatBounds.convert(this.validateBounds(b)),this.minzoom=c||0,this.maxzoom=d||24}validateBounds(a){return Array.isArray(a)&&4===a.length?[Math.max(-180,a[0]),Math.max(-90,a[1]),Math.min(180,a[2]),Math.min(90,a[3]),]:[-180,-90,180,90]}contains(b){const c=Math.pow(2,b.z),d=Math.floor(a.mercatorXfromLng(this.bounds.getWest())*c),f=Math.floor(a.mercatorYfromLat(this.bounds.getNorth())*c),g=Math.ceil(a.mercatorXfromLng(this.bounds.getEast())*c),h=Math.ceil(a.mercatorYfromLat(this.bounds.getSouth())*c);return b.x>=d&&b.x=f&&b.y{this._tileJSONRequest=null,this._loaded=!0,b?this.fire(new a.ErrorEvent(b)):c&&(a.extend(this,c),c.bounds&&(this.tileBounds=new O(c.bounds,this.minzoom,this.maxzoom)),a.postTurnstileEvent(c.tiles),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}onAdd(a){this.map=a,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return a.extend({},this._options)}hasTile(a){return!this.tileBounds||this.tileBounds.contains(a.canonical)}loadTile(b,c){const d=a.exported.devicePixelRatio>=2,f=this.map._requestManager.normalizeTileURL(b.tileID.canonical.url(this.tiles,this.scheme),d,this.tileSize);b.request=a.getImage(this.map._requestManager.transformRequest(f,a.ResourceType.Tile),(d,f,g,h)=>{if(delete b.request,b.aborted)b.state="unloaded",c(null);else if(d)b.state="errored",c(d);else if(f){this.map._refreshExpiredTiles&&b.setExpiryData({cacheControl:g,expires:h});const i=this.map.painter.context,j=i.gl;b.texture=this.map.painter.getTileTexture(f.width),b.texture?b.texture.update(f,{useMipmap:!0}):(b.texture=new a.Texture(i,f,j.RGBA,{useMipmap:!0}),b.texture.bind(j.LINEAR,j.CLAMP_TO_EDGE),i.extTextureFilterAnisotropic&&j.texParameterf(j.TEXTURE_2D,i.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,i.extTextureFilterAnisotropicMax)),b.state="loaded",a.cacheEntryPossiblyAdded(this.dispatcher),c(null)}})}abortTile(a,b){a.request&&(a.request.cancel(),delete a.request),b()}unloadTile(a,b){a.texture&&this.map.painter.saveTileTexture(a.texture),b()}hasTransition(){return!1}}let Q;function R(b,c,d,f,g,h,i,j){const k=[b,d,g,c,f,h,1,1,1],l=[i,j,1],m=a.adjoint([],k),[n,o,p]=a.transformMat3(l,l,a.transpose(m,m));return a.multiply(k,[n,0,0,0,o,0,0,0,p],k)}class S extends a.Evented{constructor(a,b,c,d){super(),this.id=a,this.dispatcher=c,this.coordinates=b.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(d),this.options=b}load(b,c){this._loaded=!1,this.fire(new a.Event("dataloading",{dataType:"source"})),this.url=this.options.url,a.getImage(this.map._requestManager.transformRequest(this.url,a.ResourceType.Image),(d,f)=>{this._loaded=!0,d?this.fire(new a.ErrorEvent(d)):f&&(this.image=a.exported.getImageData(f),this.width=this.image.width,this.height=this.image.height,b&&(this.coordinates=b),c&&c(),this._finishLoading())})}loaded(){return this._loaded}updateImage(a){return this.image&&a.url&&(this.options.url=a.url,this.load(a.coordinates,()=>{this.texture=null})),this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(a){this.map=a,this.load()}setCoordinates(b){this.coordinates=b,delete this._boundsArray;const c=b.map(a.MercatorCoordinate.fromLngLat);return this.tileID=function(b){let c=1/0,d=1/0,f=-1/0,g=-1/0;for(const h of b)c=Math.min(c,h.x),d=Math.min(d,h.y),f=Math.max(f,h.x),g=Math.max(g,h.y);const i=Math.max(f-c,g-d),j=Math.max(0,Math.floor(-Math.log(i)/Math.LN2)),k=Math.pow(2,j);return new a.CanonicalTileID(j,Math.floor((c+f)/2*k),Math.floor((d+g)/2*k))}(c),this.minzoom=this.maxzoom=this.tileID.z,this.fire(new a.Event("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){delete this._boundsArray}_makeBoundsArray(){const b=a.tileTransform(this.tileID,this.map.transform.projection),[c,d,f,g]=this.coordinates.map(c=>{const d=b.projection.project(c[0],c[1]);return a.getTilePoint(b,d)._round()});return this.perspectiveTransform=function(b,c,d,f,g,h,i,j,k,l){const m=R(0,0,b,0,0,c,b,c),n=R(d,f,g,h,i,j,k,l);return a.multiply(n,a.adjoint(m,m),n),[n[6]/n[8]*b/a.EXTENT,n[7]/n[8]*c/a.EXTENT,]}(this.width,this.height,c.x,c.y,d.x,d.y,g.x,g.y,f.x,f.y),this._boundsArray=new a.StructArrayLayout4i8,this._boundsArray.emplaceBack(c.x,c.y,0,0),this._boundsArray.emplaceBack(d.x,d.y,a.EXTENT,0),this._boundsArray.emplaceBack(g.x,g.y,0,a.EXTENT),this._boundsArray.emplaceBack(f.x,f.y,a.EXTENT,a.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;const b=this.map.painter.context,c=b.gl;for(const d in this._boundsArray||this._makeBoundsArray(),this.boundsBuffer||(this.boundsBuffer=b.createVertexBuffer(this._boundsArray,a.boundsAttributes.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new a.Texture(b,this.image,c.RGBA),this.texture.bind(c.LINEAR,c.CLAMP_TO_EDGE)),this.tiles){const f=this.tiles[d];"loaded"!==f.state&&(f.state="loaded",f.texture=this.texture)}}loadTile(a,b){this.tileID&&this.tileID.equals(a.tileID.canonical)?(this.tiles[String(a.tileID.wrap)]=a,a.buckets={},b(null)):(a.state="errored",b(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}const T={vector:class extends a.Evented{constructor(b,c,d,f){if(super(),this.id=b,this.dispatcher=d,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,a.extend(this,a.pick(c,["url","scheme","tileSize","promoteId",])),this._options=a.extend({type:"vector"},c),this._collectResourceTiming=c.collectResourceTiming,512!==this.tileSize)throw Error("vector tile sources must have a tileSize of 512");this.setEventedParent(f),this._tileWorkers={},this._deduped=new a.DedupedRequest}load(){this._loaded=!1,this.fire(new a.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=N(this._options,this.map._requestManager,(b,c)=>{this._tileJSONRequest=null,this._loaded=!0,b?this.fire(new a.ErrorEvent(b)):c&&(a.extend(this,c),c.bounds&&(this.tileBounds=new O(c.bounds,this.minzoom,this.maxzoom)),a.postTurnstileEvent(c.tiles,this.map._requestManager._customAccessToken),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}hasTile(a){return!this.tileBounds||this.tileBounds.contains(a.canonical)}onAdd(a){this.map=a,this.load()}setSourceProperty(a){this._tileJSONRequest&&this._tileJSONRequest.cancel(),a();const b=this.map.style._getSourceCaches(this.id);for(const c of b)c.clearTiles();this.load()}setTiles(a){return this.setSourceProperty(()=>{this._options.tiles=a}),this}setUrl(a){return this.setSourceProperty(()=>{this.url=a,this._options.url=a}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return a.extend({},this._options)}loadTile(b,c){const d=this.map._requestManager.normalizeTileURL(b.tileID.canonical.url(this.tiles,this.scheme)),f={request:this.map._requestManager.transformRequest(d,a.ResourceType.Tile),data:void 0,uid:b.uid,tileID:b.tileID,tileZoom:b.tileZoom,zoom:b.tileID.overscaledZ,tileSize:this.tileSize*b.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:a.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:b.isSymbolTile};if(f.request.collectResourceTiming=this._collectResourceTiming,b.actor&&"expired"!==b.state)"loading"===b.state?b.reloadCallback=c:b.request=b.actor.send("reloadTile",f,h.bind(this));else if(b.actor=this._tileWorkers[d]=this._tileWorkers[d]||this.dispatcher.getActor(),this.dispatcher.ready)b.request=b.actor.send("loadTile",f,h.bind(this),void 0,!0);else{const g=a.loadVectorTile.call({deduped:this._deduped},f,(a,c)=>{a||!c?h.call(this,a):(f.data={cacheControl:c.cacheControl,expires:c.expires,rawData:c.rawData.slice(0)},b.actor&&b.actor.send("loadTile",f,h.bind(this),void 0,!0))},!0);b.request={cancel:g}}function h(d,f){return delete b.request,b.aborted?c(null):d&&404!==d.status?c(d):(f&&f.resourceTiming&&(b.resourceTiming=f.resourceTiming),this.map._refreshExpiredTiles&&f&&b.setExpiryData(f),b.loadVectorData(f,this.map.painter),a.cacheEntryPossiblyAdded(this.dispatcher),c(null),void(b.reloadCallback&&(this.loadTile(b,b.reloadCallback),b.reloadCallback=null)))}}abortTile(a){a.request&&(a.request.cancel(),delete a.request),a.actor&&a.actor.send("abortTile",{uid:a.uid,type:this.type,source:this.id})}unloadTile(a){a.unloadVectorData(),a.actor&&a.actor.send("removeTile",{uid:a.uid,type:this.type,source:this.id})}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}},raster:P,"raster-dem":class extends P{constructor(b,c,d,f){super(b,c,d,f),this.type="raster-dem",this.maxzoom=22,this._options=a.extend({type:"raster-dem"},c),this.encoding=c.encoding||"mapbox"}loadTile(b,c){const d=this.map._requestManager.normalizeTileURL(b.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function f(a,d){a&&(b.state="errored",c(a)),d&&(b.dem=d,b.dem.onDeserialize(),b.needsHillshadePrepare=!0,b.needsDEMTextureUpload=!0,b.state="loaded",c(null))}b.request=a.getImage(this.map._requestManager.transformRequest(d,a.ResourceType.Tile),(function(d,g,h,i){if(delete b.request,b.aborted)b.state="unloaded",c(null);else if(d)b.state="errored",c(d);else if(g){this.map._refreshExpiredTiles&&b.setExpiryData({cacheControl:h,expires:i});const j=a.window.ImageBitmap&&g instanceof a.window.ImageBitmap&&(null==Q&&(Q=a.window.OffscreenCanvas&&new a.window.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof a.window.createImageBitmap),Q),k=1-(g.width-a.prevPowerOfTwo(g.width))/2;k<1||b.neighboringTiles||(b.neighboringTiles=this._getNeighboringTiles(b.tileID));const l=j?g:a.exported.getImageData(g,k),m={uid:b.uid,coord:b.tileID,source:this.id,rawImageData:l,encoding:this.encoding,padding:k};b.actor&&"expired"!==b.state||(b.actor=this.dispatcher.getActor(),b.actor.send("loadDEMTile",m,f.bind(this),void 0,!0))}}).bind(this))}_getNeighboringTiles(b){const c=b.canonical,d=Math.pow(2,c.z),f=(c.x-1+d)%d,g=0===c.x?b.wrap-1:b.wrap,h=(c.x+1+d)%d,i=c.x+1===d?b.wrap+1:b.wrap,j={};return j[new a.OverscaledTileID(b.overscaledZ,g,c.z,f,c.y).key]={backfilled:!1},j[new a.OverscaledTileID(b.overscaledZ,i,c.z,h,c.y).key]={backfilled:!1},c.y>0&&(j[new a.OverscaledTileID(b.overscaledZ,g,c.z,f,c.y-1).key]={backfilled:!1},j[new a.OverscaledTileID(b.overscaledZ,b.wrap,c.z,c.x,c.y-1).key]={backfilled:!1},j[new a.OverscaledTileID(b.overscaledZ,i,c.z,h,c.y-1).key]={backfilled:!1}),c.y+1{if(this._loaded=!0,this._pendingLoad=null,b)this.fire(new a.ErrorEvent(b));else{const d={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&c&&c.resourceTiming&&c.resourceTiming[this.id]&&(d.resourceTiming=c.resourceTiming[this.id]),this.fire(new a.Event("data",d)),this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(),this._coalesce=!1)})}loaded(){return this._loaded}loadTile(b,c){const d=b.actor?"reloadTile":"loadTile";b.actor=this.actor,b.request=this.actor.send(d,{type:this.type,uid:b.uid,tileID:b.tileID,tileZoom:b.tileZoom,zoom:b.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:a.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(a,f)=>(delete b.request,b.unloadVectorData(),b.aborted?c(null):a?c(a):(b.loadVectorData(f,this.map.painter,"reloadTile"===d),c(null))),void 0,"loadTile"===d)}abortTile(a){a.request&&(a.request.cancel(),delete a.request),a.aborted=!0}unloadTile(a){a.unloadVectorData(),this.actor.send("removeTile",{uid:a.uid,type:this.type,source:this.id})}onRemove(){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return a.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends S{constructor(a,b,c,d){super(a,b,c,d),this.roundZoom=!0,this.type="video",this.options=b}load(){this._loaded=!1;const b=this.options;for(const c of(this.urls=[],b.urls))this.urls.push(this.map._requestManager.transformRequest(c,a.ResourceType.Source).url);a.getVideo(this.urls,(b,c)=>{this._loaded=!0,b?this.fire(new a.ErrorEvent(b)):c&&(this.video=c,this.video.loop=!0,this.video.setAttribute("playsinline",""),this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(b){if(this.video){const c=this.video.seekable;bc.end(0)?this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${this.id}`,null,`Playback for this video can be set only between the ${c.start(0)} and ${c.end(0)}-second mark.`))):this.video.currentTime=b}}getVideo(){return this.video}onAdd(a){this.map||(this.map=a,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const b=this.map.painter.context,c=b.gl;for(const d in this.texture?this.video.paused||(this.texture.bind(c.LINEAR,c.CLAMP_TO_EDGE),c.texSubImage2D(c.TEXTURE_2D,0,0,0,c.RGBA,c.UNSIGNED_BYTE,this.video)):(this.texture=new a.Texture(b,this.video,c.RGBA),this.texture.bind(c.LINEAR,c.CLAMP_TO_EDGE),this.width=this.video.videoWidth,this.height=this.video.videoHeight),this._boundsArray||this._makeBoundsArray(),this.boundsBuffer||(this.boundsBuffer=b.createVertexBuffer(this._boundsArray,a.boundsAttributes.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.tiles){const f=this.tiles[d];"loaded"!==f.state&&(f.state="loaded",f.texture=this.texture)}}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},image:S,canvas:class extends S{constructor(b,c,d,f){super(b,c,d,f),c.coordinates?Array.isArray(c.coordinates)&&4===c.coordinates.length&&!c.coordinates.some(a=>!Array.isArray(a)||2!==a.length||a.some(a=>"number"!=typeof a))||this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${b}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${b}`,null,'missing required property "coordinates"'))),c.animate&&"boolean"!=typeof c.animate&&this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${b}`,null,'optional "animate" property must be a boolean value'))),c.canvas?"string"==typeof c.canvas||c.canvas instanceof a.window.HTMLCanvasElement||this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${b}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${b}`,null,'missing required property "canvas"'))),this.options=c,this.animate=void 0===c.animate||c.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof a.window.HTMLCanvasElement?this.options.canvas:a.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new a.ErrorEvent(Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(a){this.map=a,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let b=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,b=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,b=!0),this._hasInvalidDimensions()||0===Object.keys(this.tiles).length)return;const c=this.map.painter.context,d=c.gl;for(const f in this._boundsArray||this._makeBoundsArray(),this.boundsBuffer||(this.boundsBuffer=c.createVertexBuffer(this._boundsArray,a.boundsAttributes.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(b||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new a.Texture(c,this.canvas,d.RGBA,{premultiply:!0}),this.tiles){const g=this.tiles[f];"loaded"!==g.state&&(g.state="loaded",g.texture=this.texture)}}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const a of[this.canvas.width,this.canvas.height,])if(isNaN(a)||a<=0)return!0;return!1}}},U=function(b,c,d,f){const g=new T[c.type](b,c,d,f);if(g.id!==b)throw Error(`Expected Source id to be ${b} instead of ${g.id}`);return a.bindAll(["load","abort","unload","serialize","prepare",],g),g};function V(b,c){const d=a.identity([]);return a.scale(d,d,[.5*b.width,-(.5*b.height),1,]),a.translate(d,d,[1,-1,0]),a.multiply$1(d,d,b.calculateProjMatrix(c.toUnwrapped()))}function W(a,b,c,d,f,g,h,i=!1){const j=a.tilesIn(d,h,i);j.sort(Y);const k=[];for(const l of j)k.push({wrappedTileID:l.tile.tileID.wrapped().key,queryResults:l.tile.queryRenderedFeatures(b,c,a._state,l,f,g,V(a.transform,l.tile.tileID),i)});const m=function(a){const b={},c={};for(const d of a){const f=d.queryResults,g=d.wrappedTileID,h=c[g]=c[g]||{};for(const i in f){const j=f[i],k=h[i]=h[i]||{},l=b[i]=b[i]||[];for(const m of j)k[m.featureIndex]||(k[m.featureIndex]=!0,l.push(m))}}return b}(k);for(const n in m)m[n].forEach(b=>{const c=b.feature,d=a.getFeatureState(c.layer["source-layer"],c.id);c.source=c.layer.source,c.layer["source-layer"]&&(c.sourceLayer=c.layer["source-layer"]),c.state=d});return m}function X(a,b){const c=a.getRenderableIds().map(b=>a.getTileByID(b)),d=[],f={};for(let g=0;g{a.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[$]}numActive(){return Object.keys(this.active).length}}let aa;function ab(){return aa||(aa=new _),aa}function ac(b,c){const d={};for(const f in b)"ref"!==f&&(d[f]=b[f]);return a.refProperties.forEach(a=>{a in c&&(d[a]=c[a])}),d}function ad(a){a=a.slice();const b=Object.create(null);for(let c=0;c0?(f-h)/i:0;return this.points[g].mult(1-j).add(this.points[c].mult(j))}}class an{constructor(a,b,c){const d=this.boxCells=[],f=this.circleCells=[];this.xCellCount=Math.ceil(a/c),this.yCellCount=Math.ceil(b/c);for(let g=0;gthis.width||d<0||b>this.height)return!f&&[];const h=[];if(a<=0&&b<=0&&this.width<=c&&this.height<=d){if(f)return!0;for(let i=0;i0:h}_queryCircle(a,b,c,d,f){const g=a-c,h=a+c,i=b-c,j=b+c;if(h<0||g>this.width||j<0||i>this.height)return!d&&[];const k=[];return this._forEachCell(g,i,h,j,this._queryCellCircle,k,{hitTest:d,circle:{x:a,y:b,radius:c},seenUids:{box:{},circle:{}}},f),d?k.length>0:k}query(a,b,c,d,f){return this._query(a,b,c,d,!1,f)}hitTest(a,b,c,d,f){return this._query(a,b,c,d,!0,f)}hitTestCircle(a,b,c,d){return this._queryCircle(a,b,c,!0,d)}_queryCell(a,b,c,d,f,g,h,i){const j=h.seenUids,k=this.boxCells[f];if(null!==k){const l=this.bboxes;for(const m of k)if(!j.box[m]){j.box[m]=!0;const n=4*m;if(a<=l[n+2]&&b<=l[n+3]&&c>=l[n+0]&&d>=l[n+1]&&(!i||i(this.boxKeys[m]))){if(h.hitTest)return g.push(!0),!0;g.push({key:this.boxKeys[m],x1:l[n],y1:l[n+1],x2:l[n+2],y2:l[n+3]})}}}const o=this.circleCells[f];if(null!==o){const p=this.circles;for(const q of o)if(!j.circle[q]){j.circle[q]=!0;const r=3*q;if(this._circleAndRectCollide(p[r],p[r+1],p[r+2],a,b,c,d)&&(!i||i(this.circleKeys[q]))){if(h.hitTest)return g.push(!0),!0;{const s=p[r],u=p[r+1],v=p[r+2];g.push({key:this.circleKeys[q],x1:s-v,y1:u-v,x2:s+v,y2:u+v})}}}}}_queryCellCircle(a,b,c,d,f,g,h,i){const j=h.circle,k=h.seenUids,l=this.boxCells[f];if(null!==l){const m=this.bboxes;for(const n of l)if(!k.box[n]){k.box[n]=!0;const o=4*n;if(this._circleAndRectCollide(j.x,j.y,j.radius,m[o+0],m[o+1],m[o+2],m[o+3])&&(!i||i(this.boxKeys[n])))return g.push(!0),!0}}const p=this.circleCells[f];if(null!==p){const q=this.circles;for(const r of p)if(!k.circle[r]){k.circle[r]=!0;const s=3*r;if(this._circlesCollide(q[s],q[s+1],q[s+2],j.x,j.y,j.radius)&&(!i||i(this.circleKeys[r])))return g.push(!0),!0}}}_forEachCell(a,b,c,d,f,g,h,i){const j=this._convertToXCellCoord(a),k=this._convertToYCellCoord(b),l=this._convertToXCellCoord(c),m=this._convertToYCellCoord(d);for(let n=j;n<=l;n++)for(let o=k;o<=m;o++)if(f.call(this,a,b,c,d,this.xCellCount*o+n,g,h,i))return}_convertToXCellCoord(a){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(a*this.xScale)))}_convertToYCellCoord(a){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(a*this.yScale)))}_circlesCollide(a,b,c,d,f,g){const h=d-a,i=f-b,j=c+g;return j*j>h*h+i*i}_circleAndRectCollide(a,b,c,d,f,g,h){const i=(g-d)/2,j=Math.abs(a-(d+i));if(j>i+c)return!1;const k=(h-f)/2,l=Math.abs(b-(f+k));if(l>k+c)return!1;if(j<=i||l<=k)return!0;const m=j-i,n=l-k;return m*m+n*n<=c*c}}const ao=Math.tan(85*Math.PI/180);function ap(b,c,d,g,h,i){let j=a.create();if(d){if("globe"===h.projection.name)j=a.calculateGlobeMatrix(h,h.worldSize/h._projectionScaler,[0,0]),a.multiply$1(j,j,a.globeDenormalizeECEF(a.globeTileBounds(c)));else{const k=f([],i);j[0]=k[0],j[1]=k[1],j[4]=k[2],j[5]=k[3]}g||a.rotateZ(j,j,h.angle)}else a.multiply$1(j,h.labelPlaneMatrix,b);return j}function aq(b,c,d,f,g,h){if(d){if("globe"===g.projection.name){const i=ap(b,c,d,f,g,h);return a.invert(i,i),a.multiply$1(i,b,i),i}{const j=a.clone(b),k=a.identity([]);return k[0]=h[0],k[1]=h[1],k[4]=h[2],k[5]=h[3],a.multiply$1(j,j,k),f||a.rotateZ(j,j,-g.angle),j}}return g.glCoordMatrix}function ar(b,c,d=0){const f=[b.x,b.y,d,1];d?a.transformMat4$1(f,f,c):aD(f,f,c);const g=f[3];return{point:new a.pointGeometry(f[0]/g,f[1]/g),signedDistanceFromCamera:g}}function as(a,b){return Math.min(.5+a/b*.5,1.5)}function at(a,b){const c=a[0]/a[3],d=a[1]/a[3];return c>= -b[0]&&c<=b[0]&&d>= -b[1]&&d<=b[1]}function au(b,c,d,f,g,h,i,j,k,l){const m=d.transform,n=f?b.textSizeData:b.iconSizeData,o=a.evaluateSizeForZoom(n,d.transform.zoom),p=[256/d.width*2+1,256/d.height*2+1,],q=f?b.text.dynamicLayoutVertexArray:b.icon.dynamicLayoutVertexArray;q.clear();const r=b.lineVertexArray,s=f?b.text.placedSymbolArray:b.icon.placedSymbolArray,u=d.transform.width/d.transform.height;let v=!1;for(let w=0;wMath.abs(d.x-c.x)*f?{useVertical:!0}:b.writingMode===a.WritingMode.vertical?c.yao}(c,d,f)?1===b.flipState?{needsFlipping:!0}:null:c.x>d.x?{needsFlipping:!0}:null}function ax(b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s){const u=c/24,v=b.lineOffsetX*u,w=b.lineOffsetY*u;let x;if(b.numGlyphs>1){const y=b.glyphStartIndex+b.numGlyphs,z=b.lineStartIndex,A=b.lineStartIndex+b.lineLength,B=av(u,j,v,w,d,m,n,b,k,h,o,q,!1,r,s);if(!B)return{notEnoughRoom:!0};const C=ar(B.first.point,i).point,D=ar(B.last.point,i).point;if(f&&!d){const E=aw(b,C,D,p);if(b.flipState=E&&E.needsFlipping?1:2,E)return E}x=[B.first];for(let F=b.glyphStartIndex+1;F0?J.point:az(n,I,G,1,g,void 0,r,s.canonical),p);if(b.flipState=K&&K.needsFlipping?1:2,K)return K}const L=aA(u*j.getoffsetX(b.glyphStartIndex),v,w,d,m,n,b.segment,b.lineStartIndex,b.lineStartIndex+b.lineLength,k,h,o,q,!1,!1,r,s);if(!L)return{notEnoughRoom:!0};x=[L]}for(const M of x)a.addDynamicAttributes(l,M.point,M.angle);return{}}function ay(b,c,d,f,g){const h=f.projectTilePoint(b.x,b.y,c);if(!g)return ar(h,d,h.z);const i=g(b);return ar(new a.pointGeometry(h.x+i[0],h.y+i[1]),d,h.z+i[2])}function az(a,b,c,d,f,g,h,i){const j=ay(a.add(a.sub(b)._unit()),i,f,h,g).point,k=c.sub(j);return c.add(k._mult(d/k.mag()))}function aA(b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s){const u=f?b-c:b+c;let v=u>0?1:-1,w=0;f&&(v*=-1,w=Math.PI),v<0&&(w+=Math.PI);let x=v>0?j+i:j+i+1,y=g,z=g,A=0,B=0;const C=Math.abs(u),D=[],E=[];let F=h;const G=()=>{const b=x-v;return 0===A?h:new a.pointGeometry(l.getx(b),l.gety(b))},H=()=>az(G(),F,z,C-A+1,m,o,r,s.canonical);for(;A+B<=C;){if((x+=v)=k)return null;if(z=y,D.push(y),p&&E.push(F||G()),void 0===(y=n[x])){F=new a.pointGeometry(l.getx(x),l.gety(x));const I=ay(F,s.canonical,m,r,o);y=I.signedDistanceFromCamera>0?n[x]=I.point:H()}else F=null;A+=B,B=z.dist(y)}q&&o&&(F=F||new a.pointGeometry(l.getx(x),l.gety(x)),n[x]=y=void 0===n[x]?y:H(),B=z.dist(y));const J=(C-A)/B,K=y.sub(z),L=K.mult(J)._add(z);d&&L._add(K._unit()._perp()._mult(d*v));const M=w+Math.atan2(y.y-z.y,y.x-z.x);return D.push(L),p&&(F=F||new a.pointGeometry(l.getx(x),l.gety(x)),E.push(function(b,c,d){const f=1-d;return new a.pointGeometry(b.x*f+c.x*d,b.y*f+c.y*d)}(E.length>0?E[E.length-1]:F,F,J))),{point:L,angle:M,path:D,tilePath:E}}const aB=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,]);function aC(a,b){for(let c=0;ca.sortKey-b.sortKey));this._currentPartIndex[0,0,0],v=new a.pointGeometry(c.tileAnchorX,c.tileAnchorY),w=this.transform.projection.projectTilePoint(c.tileAnchorX,c.tileAnchorY,p.canonical),x=u(v),y=[w.x+x[0],w.y+x[1],w.z+x[2]],z=this.projectAndGetPerspectiveRatio(h,y[0],y[1],y[2],p),{perspectiveRatio:A}=z,B=(l?g/A:g*A)/a.ONE_EM,C=ar(new a.pointGeometry(y[0],y[1]),i,y[2]).point,D=z.signedDistanceFromCamera>0?av(B,f,c.lineOffsetX*B,c.lineOffsetY*B,!1,C,v,c,d,i,{},r&&!l?u:null,l&&!!r,this.transform.projection,p):null;let E=!1,F=!1,G=!0;if(D&&!z.aboveHorizon){const H=.5*n*A+o,I=new a.pointGeometry(-100,-100),J=new a.pointGeometry(this.screenRightBoundary,this.screenBottomBoundary),K=new am,L=D.first,M=D.last;let N=[];for(let O=L.path.length-1;O>=1;O--)N.push(L.path[O]);for(let P=1;P{const c=u(bar(a,j));N=R.some(a=>a.signedDistanceFromCamera<=0)?[]:R.map(a=>a.point)}let S=[];if(N.length>0){const T=N[0].clone(),U=N[0].clone();for(let V=1;V=I.x&&U.x<=J.x&&T.y>=I.y&&U.y<=J.y?[N]:U.xJ.x||U.yJ.y?[]:a.clipLine([N],I.x,I.y,J.x,J.y)}for(const W of S){K.reset(W,.25*H);let X=0;X=K.length<=.5*H?1:Math.ceil(K.paddedLength/Q)+1;for(let Y=0;Y0){a.transformMat4$1(h,h,b);let j=!1;this.fogState&&g&&(j=function(b,c,d,f,g,h){const i=h.calculateFogTileMatrix(g),j=[c,d,f];return a.transformMat4(j,j,i),w(b,j,h.pitch,h._fov)}(this.fogState,c,d,f||0,g.toUnwrapped(),this.transform)>.9),i=h[2]>h[3]||j}else aD(h,h,b);return{point:new a.pointGeometry((h[0]/h[3]+1)/2*this.transform.width+100,(-h[1]/h[3]+1)/2*this.transform.height+100),perspectiveRatio:Math.min(.5+this.transform.cameraToCenterDistance/h[3]*.5,1.5),signedDistanceFromCamera:h[3],aboveHorizon:i}}isOffscreen(a,b,c,d){return c<100||a>=this.screenRightBoundary||d<100||b>this.screenBottomBoundary}isInsideGrid(a,b,c,d){return c>=0&&a=0&&ba.collisionGroupID===b}}return this.collisionGroups[a]}}(d),this.collisionCircleArrays={},this.prevPlacement=f,f&&(f.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(b,c,d,f){const g=d.getBucket(c),h=d.latestFeatureIndex;if(!g||!h||c.id!==g.layerIds[0])return;const i=g.layers[0].layout,j=d.collisionBoxArray,k=Math.pow(2,this.transform.zoom-d.tileID.overscaledZ),l=d.tileSize/a.EXTENT,m=d.tileID.toUnwrapped(),n=this.transform.calculateProjMatrix(m),o="map"===i.get("text-pitch-alignment"),p="map"===i.get("text-rotation-alignment");c.compileFilter();const q=c.dynamicFilter(),r=c.dynamicFilterNeedsFeature(),s=this.transform.calculatePixelsToTileUnitsMatrix(d),u=ap(n,d.tileID.canonical,o,p,this.transform,s);let v=null;if(o){const w=aq(n,d.tileID.canonical,o,p,this.transform,s);v=a.multiply$1([],this.transform.labelPlaneMatrix,w)}let x=null;q&&d.latestFeatureIndex&&(x={unwrappedTileID:m,dynamicFilter:q,dynamicFilterNeedsFeature:r,featureIndex:d.latestFeatureIndex}),this.retainedQueryData[g.bucketInstanceId]=new aI(g.bucketInstanceId,h,g.sourceLayerIndex,g.index,d.tileID);const y={bucket:g,layout:i,posMatrix:n,textLabelPlaneMatrix:u,labelToScreenMatrix:v,clippingData:x,scale:k,textPixelRatio:l,holdingForFade:d.holdingForFade(),collisionBoxArray:j,partiallyEvaluatedTextSize:a.evaluateSizeForZoom(g.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:a.evaluateSizeForZoom(g.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(g.sourceID)};if(f)for(const z of g.sortKeyRanges){const{sortKey:A,symbolInstanceStart:B,symbolInstanceEnd:C}=z;b.push({sortKey:A,symbolInstanceStart:B,symbolInstanceEnd:C,parameters:y})}else b.push({symbolInstanceStart:0,symbolInstanceEnd:g.symbolInstances.length,parameters:y})}attemptAnchorPlacement(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s){const u=[m.textOffset0,m.textOffset1],v=aJ(a,c,d,u,f),w=this.collisionIndex.placeCollisionBox(f,b,aK(v.x,v.y,g,h,this.transform.angle),l,i,j,k.predicate);if((!q||0!==this.collisionIndex.placeCollisionBox(o.getSymbolInstanceIconSize(s,this.transform.zoom,n),q,aK(v.x,v.y,g,h,this.transform.angle),l,i,j,k.predicate).box.length)&&w.box.length>0){let x;return this.prevPlacement&&this.prevPlacement.variableOffsets[m.crossTileID]&&this.prevPlacement.placements[m.crossTileID]&&this.prevPlacement.placements[m.crossTileID].text&&(x=this.prevPlacement.variableOffsets[m.crossTileID].anchor),this.variableOffsets[m.crossTileID]={textOffset:u,width:c,height:d,anchor:a,textScale:f,prevAnchor:x},this.markUsedJustification(o,a,m,p),o.allowVerticalPlacement&&(this.markUsedOrientation(o,p,m),this.placedOrientations[m.crossTileID]=p),{shift:v,placedGlyphBoxes:w}}}placeLayerBucketPart(b,c,d,f){const{bucket:g,layout:h,posMatrix:i,textLabelPlaneMatrix:j,labelToScreenMatrix:k,clippingData:l,textPixelRatio:m,holdingForFade:n,collisionBoxArray:o,partiallyEvaluatedTextSize:p,partiallyEvaluatedIconSize:q,collisionGroup:r}=b.parameters,s=h.get("text-optional"),u=h.get("icon-optional"),v=h.get("text-allow-overlap"),w=h.get("icon-allow-overlap"),x="map"===h.get("text-rotation-alignment"),y="map"===h.get("text-pitch-alignment"),z="none"!==h.get("icon-text-fit"),A="viewport-y"===h.get("symbol-z-order"),B=v&&(w||!g.hasIconData()||u),C=w&&(v||!g.hasTextData()||s);!g.collisionArrays&&o&&g.deserializeCollisionBoxes(o),d&&f&&g.updateCollisionDebugBuffers(this.transform.zoom,o);const D=(b,f,o)=>{if(l){const A={zoom:this.transform.zoom,pitch:this.transform.pitch};let D=null;if(l.dynamicFilterNeedsFeature){const E=this.retainedQueryData[g.bucketInstanceId];D=l.featureIndex.loadFeature({featureIndex:b.featureIndex,bucketIndex:E.bucketIndex,sourceLayerIndex:E.sourceLayerIndex,layoutVertexArrayOffset:0})}if(!(0,l.dynamicFilter)(A,D,this.retainedQueryData[g.bucketInstanceId].tileID.canonical,new a.pointGeometry(b.tileAnchorX,b.tileAnchorY),this.transform.calculateDistanceTileData(l.unwrappedTileID)))return this.placements[b.crossTileID]=new aG(!1,!1,!1,!0),void(c[b.crossTileID]=!0)}if(c[b.crossTileID])return;if(n)return void(this.placements[b.crossTileID]=new aG(!1,!1,!1));let F=!1,G=!1,H=!0,I=null,J={box:null,offscreen:null},K={box:null,offscreen:null},L=null,M=null,N=null,O=0,P=0,Q=0;o.textFeatureIndex?O=o.textFeatureIndex:b.useRuntimeCollisionCircles&&(O=b.featureIndex),o.verticalTextFeatureIndex&&(P=o.verticalTextFeatureIndex);const R=a=>{a.tileID=this.retainedQueryData[g.bucketInstanceId].tileID,(this.transform.elevation||a.elevation)&&(a.elevation=this.transform.elevation?this.transform.elevation.getAtTileOffset(this.retainedQueryData[g.bucketInstanceId].tileID,a.tileAnchorX,a.tileAnchorY):0)},S=o.textBox;if(S){R(S);const T=c=>{let d=a.WritingMode.horizontal;if(g.allowVerticalPlacement&&!c&&this.prevPlacement){const f=this.prevPlacement.placedOrientations[b.crossTileID];f&&(this.placedOrientations[b.crossTileID]=f,d=f,this.markUsedOrientation(g,d,b))}return d},U=(c,d)=>{if(g.allowVerticalPlacement&&b.numVerticalGlyphVertices>0&&o.verticalTextBox){for(const f of g.writingModes)if(f===a.WritingMode.vertical?K=J=d():J=c(),J&&J.box&&J.box.length)break}else J=c()};if(h.get("text-variable-anchor")){let V=h.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[b.crossTileID]){const W=this.prevPlacement.variableOffsets[b.crossTileID];V.indexOf(W.anchor)>0&&(V=V.filter(a=>a!==W.anchor)).unshift(W.anchor)}const X=(a,c,d)=>{const h=g.getSymbolInstanceTextSize(p,b,this.transform.zoom,f),j=(a.x2-a.x1)*h+2*a.padding,k=(a.y2-a.y1)*h+2*a.padding,l=z&&!w?c:null;l&&R(l);let n={box:[],offscreen:!1};const o=v?2*V.length:V.length;for(let s=0;s=V.length,b,f,g,d,l,p,q);if(u&&(n=u.placedGlyphBoxes)&&n.box&&n.box.length){F=!0,I=u.shift;break}}return n};U(()=>X(S,o.iconBox,a.WritingMode.horizontal),()=>{const c=o.verticalTextBox;return c&&R(c),g.allowVerticalPlacement&&!(J&&J.box&&J.box.length)&&b.numVerticalGlyphVertices>0&&c?X(c,o.verticalIconBox,a.WritingMode.vertical):{box:null,offscreen:null}}),J&&(F=J.box,H=J.offscreen);const Y=T(J&&J.box);if(!F&&this.prevPlacement){const Z=this.prevPlacement.variableOffsets[b.crossTileID];Z&&(this.variableOffsets[b.crossTileID]=Z,this.markUsedJustification(g,Z.anchor,b,Y))}}else{const $=(c,d)=>{const h=g.getSymbolInstanceTextSize(p,b,this.transform.zoom,f),j=this.collisionIndex.placeCollisionBox(h,c,new a.pointGeometry(0,0),v,m,i,r.predicate);return j&&j.box&&j.box.length&&(this.markUsedOrientation(g,d,b),this.placedOrientations[b.crossTileID]=d),j};U(()=>$(S,a.WritingMode.horizontal),()=>{const c=o.verticalTextBox;return g.allowVerticalPlacement&&b.numVerticalGlyphVertices>0&&c?(R(c),$(c,a.WritingMode.vertical)):{box:null,offscreen:null}}),T(J&&J.box&&J.box.length)}}if(F=(L=J)&&L.box&&L.box.length>0,H=L&&L.offscreen,b.useRuntimeCollisionCircles){const _=g.text.placedSymbolArray.get(b.centerJustifiedTextSymbolIndex>=0?b.centerJustifiedTextSymbolIndex:b.verticalPlacedTextSymbolIndex),aa=a.evaluateSizeForFeature(g.textSizeData,p,_),ab=h.get("text-padding");M=this.collisionIndex.placeCollisionCircles(v,_,g.lineVertexArray,g.glyphOffsetArray,aa,i,j,k,d,y,r.predicate,b.collisionCircleDiameter*aa/a.ONE_EM,ab,this.retainedQueryData[g.bucketInstanceId].tileID),F=v||M.circles.length>0&&!M.collisionDetected,H=H&&M.offscreen}if(o.iconFeatureIndex&&(Q=o.iconFeatureIndex),o.iconBox){const ac=b=>{R(b);const c=z&&I?aK(I.x,I.y,x,y,this.transform.angle):new a.pointGeometry(0,0),d=g.getSymbolInstanceIconSize(q,this.transform.zoom,f);return this.collisionIndex.placeCollisionBox(d,b,c,w,m,i,r.predicate)};G=K&&K.box&&K.box.length&&o.verticalIconBox?(N=ac(o.verticalIconBox)).box.length>0:(N=ac(o.iconBox)).box.length>0,H=H&&N.offscreen}const ad=s||0===b.numHorizontalGlyphVertices&&0===b.numVerticalGlyphVertices,ae=u||0===b.numIconVertices;if(ad||ae?ae?ad||(G=G&&F):F=G&&F:G=F=G&&F,F&&L&&L.box&&this.collisionIndex.insertCollisionBox(L.box,h.get("text-ignore-placement"),g.bucketInstanceId,K&&K.box&&P?P:O,r.ID),G&&N&&this.collisionIndex.insertCollisionBox(N.box,h.get("icon-ignore-placement"),g.bucketInstanceId,Q,r.ID),M&&(F&&this.collisionIndex.insertCollisionCircles(M.circles,h.get("text-ignore-placement"),g.bucketInstanceId,O,r.ID),d)){const af=g.bucketInstanceId;let ag=this.collisionCircleArrays[af];void 0===ag&&(ag=this.collisionCircleArrays[af]=new aH);for(let ah=0;ah=0;--F){const G=E[F];D(g.symbolInstances.get(G),G,g.collisionArrays[G])}}else for(let H=b.symbolInstanceStart;H=0&&(b.text.placedSymbolArray.get(i).crossTileID=g>=0&&i!==g?0:d.crossTileID)}markUsedOrientation(b,c,d){const f=c===a.WritingMode.horizontal||c===a.WritingMode.horizontalOnly?c:0,g=c===a.WritingMode.vertical?c:0,h=[d.leftJustifiedTextSymbolIndex,d.centerJustifiedTextSymbolIndex,d.rightJustifiedTextSymbolIndex,];for(const i of h)b.text.placedSymbolArray.get(i).placedOrientation=f;d.verticalPlacedTextSymbolIndex&&(b.text.placedSymbolArray.get(d.verticalPlacedTextSymbolIndex).placedOrientation=g)}commit(a){this.commitTime=a,this.zoomAtLastRecencyCheck=this.transform.zoom;const b=this.prevPlacement;let c=!1;this.prevZoomAdjustment=b?b.zoomAdjustment(this.transform.zoom):0;const d=b?b.symbolFadeChange(a):1,f=b?b.opacities:{},g=b?b.variableOffsets:{},h=b?b.placedOrientations:{};for(const i in this.placements){const j=this.placements[i],k=f[i];k?(this.opacities[i]=new aF(k,d,j.text,j.icon,null,j.clipped),c=c||j.text!==k.text.placed||j.icon!==k.icon.placed):(this.opacities[i]=new aF(null,d,j.text,j.icon,j.skipFade,j.clipped),c=c||j.text||j.icon)}for(const l in f){const m=f[l];if(!this.opacities[l]){const n=new aF(m,d,!1,!1);n.isHidden()||(this.opacities[l]=n,c=c||m.text.placed||m.icon.placed)}}for(const o in g)this.variableOffsets[o]||!this.opacities[o]||this.opacities[o].isHidden()||(this.variableOffsets[o]=g[o]);for(const p in h)this.placedOrientations[p]||!this.opacities[p]||this.opacities[p].isHidden()||(this.placedOrientations[p]=h[p]);c?this.lastPlacementChangeTime=a:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=b?b.lastPlacementChangeTime:a)}updateLayerOpacities(a,b){const c={};for(const d of b){const f=d.getBucket(a);f&&d.latestFeatureIndex&&a.id===f.layerIds[0]&&this.updateBucketOpacities(f,c,d.collisionBoxArray)}}updateBucketOpacities(b,c,d){b.hasTextData()&&b.text.opacityVertexArray.clear(),b.hasIconData()&&b.icon.opacityVertexArray.clear(),b.hasIconCollisionBoxData()&&b.iconCollisionBox.collisionVertexArray.clear(),b.hasTextCollisionBoxData()&&b.textCollisionBox.collisionVertexArray.clear();const f=b.layers[0].layout,g=!!b.layers[0].dynamicFilter(),h=new aF(null,0,!1,!1,!0),i=f.get("text-allow-overlap"),j=f.get("icon-allow-overlap"),k=f.get("text-variable-anchor"),l="map"===f.get("text-rotation-alignment"),m="map"===f.get("text-pitch-alignment"),n="none"!==f.get("icon-text-fit"),o=new aF(null,0,i&&(j||!b.hasIconData()||f.get("icon-optional")),j&&(i||!b.hasTextData()||f.get("text-optional")),!0);!b.collisionArrays&&d&&(b.hasIconCollisionBoxData()||b.hasTextCollisionBoxData())&&b.deserializeCollisionBoxes(d);const p=(a,b,c)=>{for(let d=0;d0||v>0,z=s.numIconVertices>0,A=this.placedOrientations[s.crossTileID],B=A===a.WritingMode.vertical,C=A===a.WritingMode.horizontal||A===a.WritingMode.horizontalOnly;if(!y&&!z||x.isHidden()||q++,y){const D=aM(x.text);p(b.text,u,B?0:D),p(b.text,v,C?0:D);const E=x.text.isHidden();[s.rightJustifiedTextSymbolIndex,s.centerJustifiedTextSymbolIndex,s.leftJustifiedTextSymbolIndex,].forEach(a=>{a>=0&&(b.text.placedSymbolArray.get(a).hidden=E||B?1:0)}),s.verticalPlacedTextSymbolIndex>=0&&(b.text.placedSymbolArray.get(s.verticalPlacedTextSymbolIndex).hidden=E||C?1:0);const F=this.variableOffsets[s.crossTileID];F&&this.markUsedJustification(b,F.anchor,s,A);const G=this.placedOrientations[s.crossTileID];G&&(this.markUsedJustification(b,"left",s,G),this.markUsedOrientation(b,G,s))}if(z){const H=aM(x.icon);s.placedIconSymbolIndex>=0&&(p(b.icon,s.numIconVertices,B?0:H),b.icon.placedSymbolArray.get(s.placedIconSymbolIndex).hidden=x.icon.isHidden()),s.verticalPlacedIconSymbolIndex>=0&&(p(b.icon,s.numVerticalIconVertices,C?0:H),b.icon.placedSymbolArray.get(s.verticalPlacedIconSymbolIndex).hidden=x.icon.isHidden())}if(b.hasIconCollisionBoxData()||b.hasTextCollisionBoxData()){const I=b.collisionArrays[r];if(I){let J=new a.pointGeometry(0,0),K=!0;if(I.textBox||I.verticalTextBox){if(k){const L=this.variableOffsets[w];L?(J=aJ(L.anchor,L.width,L.height,L.textOffset,L.textScale),l&&J._rotate(m?this.transform.angle:-this.transform.angle)):K=!1}g&&(K=!x.clipped),I.textBox&&aL(b.textCollisionBox.collisionVertexArray,x.text.placed,!K||B,J.x,J.y),I.verticalTextBox&&aL(b.textCollisionBox.collisionVertexArray,x.text.placed,!K||C,J.x,J.y)}const M=K&&Boolean(!C&&I.verticalIconBox);I.iconBox&&aL(b.iconCollisionBox.collisionVertexArray,x.icon.placed,M,n?J.x:0,n?J.y:0),I.verticalIconBox&&aL(b.iconCollisionBox.collisionVertexArray,x.icon.placed,!M,n?J.x:0,n?J.y:0)}}}if(b.fullyClipped=0===q,b.sortFeatures(this.transform.angle),this.retainedQueryData[b.bucketInstanceId]&&(this.retainedQueryData[b.bucketInstanceId].featureSortOrder=b.featureSortOrder),b.hasTextData()&&b.text.opacityVertexBuffer&&b.text.opacityVertexBuffer.updateData(b.text.opacityVertexArray),b.hasIconData()&&b.icon.opacityVertexBuffer&&b.icon.opacityVertexBuffer.updateData(b.icon.opacityVertexArray),b.hasIconCollisionBoxData()&&b.iconCollisionBox.collisionVertexBuffer&&b.iconCollisionBox.collisionVertexBuffer.updateData(b.iconCollisionBox.collisionVertexArray),b.hasTextCollisionBoxData()&&b.textCollisionBox.collisionVertexBuffer&&b.textCollisionBox.collisionVertexBuffer.updateData(b.textCollisionBox.collisionVertexArray),b.bucketInstanceId in this.collisionCircleArrays){const N=this.collisionCircleArrays[b.bucketInstanceId];b.placementInvProjMatrix=N.invProjMatrix,b.placementViewportMatrix=N.viewportMatrix,b.collisionCircleArray=N.circles,delete this.collisionCircleArrays[b.bucketInstanceId]}}symbolFadeChange(a){return 0===this.fadeDuration?1:(a-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(a){return Math.max(0,(this.transform.zoom-a)/1.5)}hasTransitions(a){return this.stale||a-this.lastPlacementChangeTimea}setStale(){this.stale=!0}}(b,g,h,i,j),this._currentPlacementIndex=c.length-1,this._forceFullPlacement=d,this._showCollisionBoxes=f,this._done=!1}isDone(){return this._done}continuePlacement(b,c,d){const f=a.exported.now(),g=()=>{const b=a.exported.now()-f;return!this._forceFullPlacement&&b>2};for(;this._currentPlacementIndex>=0;){const h=c[b[this._currentPlacementIndex]],i=this.placement.collisionIndex.transform.zoom;if("symbol"===h.type&&(!h.minzoom||h.minzoom<=i)&&(!h.maxzoom||h.maxzoom>i)){if(this._inProgressLayer||(this._inProgressLayer=new aN(h)),this._inProgressLayer.continuePlacement(d[h.source],this.placement,this._showCollisionBoxes,h,g))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(a){return this.placement.commit(a),this.placement}}const aP=512/a.EXTENT/2;class aQ{constructor(a,b,c){this.tileID=a,this.indexedSymbolInstances={},this.bucketInstanceId=c;for(let d=0;da.overscaledZ)for(const i in h){const j=h[i];j.tileID.isChildOf(a)&&j.findMatches(b.symbolInstances,a,f)}else{const k=h[a.scaledTo(Number(g)).key];k&&k.findMatches(b.symbolInstances,a,f)}}for(let l=0;l{b[a]=!0}),this.layerIndexes)b[c]||delete this.layerIndexes[c]}}const aT=(b,c)=>a.emitValidationErrors(b,c&&c.filter(a=>"source.canvas"!==a.identifier)),aU=a.pick(ae,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setProjection",]),aV=a.pick(ae,["setCenter","setZoom","setBearing","setPitch",]),aW=function(){const b={},c=a.spec.$version;for(const d in a.spec.$root){const f=a.spec.$root[d];if(f.required){let g=null;null!=(g="version"===d?c:"array"===f.type?[]:{})&&(b[d]=g)}}return b}(),aX={fill:!0,line:!0,background:!0,hillshade:!0,raster:!0};class aY extends a.Evented{constructor(b,c={}){super(),this.map=b,this.dispatcher=new B(ab(),this),this.imageManager=new o,this.imageManager.setEventedParent(this),this.glyphManager=new a.GlyphManager(b._requestManager,c.localFontFamily?a.LocalGlyphMode.all:c.localIdeographFontFamily?a.LocalGlyphMode.ideographs:a.LocalGlyphMode.none,c.localFontFamily||c.localIdeographFontFamily),this.lineAtlas=new a.LineAtlas(256,512),this.crossTileSymbolIndex=new aS,this._layers={},this._num3DLayers=0,this._numSymbolLayers=0,this._numCircleLayers=0,this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this.zoomHistory=new a.ZoomHistory,this._loaded=!1,this._availableImages=[],this._order=[],this._drapedFirstOrder=[],this._markersNeedUpdate=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",a.getReferrer());const d=this;this._rtlTextPluginCallback=aY.registerForPluginStateChange(b=>{d.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:b.pluginStatus,pluginURL:b.pluginURL},(b,c)=>{if(a.triggerPluginCompletionEvent(b),c&&c.every(a=>a))for(const f in d._sourceCaches){const g=d._sourceCaches[f],h=g.getSource().type;"vector"!==h&&"geojson"!==h||g.reload()}})}),this.on("data",a=>{if("source"!==a.dataType||"metadata"!==a.sourceDataType)return;const b=this.getSource(a.sourceId);if(b&&b.vectorLayerIds)for(const c in this._layers){const d=this._layers[c];d.source===b.id&&this._validateLayer(d)}})}loadURL(b,c={}){this.fire(new a.Event("dataloading",{dataType:"style"}));const d="boolean"==typeof c.validate?c.validate:!a.isMapboxURL(b);b=this.map._requestManager.normalizeStyleURL(b,c.accessToken);const f=this.map._requestManager.transformRequest(b,a.ResourceType.Style);this._request=a.getJSON(f,(b,c)=>{this._request=null,b?this.fire(new a.ErrorEvent(b)):c&&this._load(c,d)})}loadJSON(b,c={}){this.fire(new a.Event("dataloading",{dataType:"style"})),this._request=a.exported.frame(()=>{this._request=null,this._load(b,!1!==c.validate)})}loadEmpty(){this.fire(new a.Event("dataloading",{dataType:"style"})),this._load(aW,!1)}_updateLayerCount(a,b){const c=b?1:-1;a.is3D()&&(this._num3DLayers+=c),"circle"===a.type&&(this._numCircleLayers+=c),"symbol"===a.type&&(this._numSymbolLayers+=c)}_load(b,c){if(c&&aT(this,a.validateStyle(b)))return;for(const d in this._loaded=!0,this.stylesheet=b,this.updateProjection(),b.sources)this.addSource(d,b.sources[d],{validate:!1});this._changed=!1,b.sprite?this._loadSprite(b.sprite):(this.imageManager.setLoaded(!0),this.dispatcher.broadcast("spriteLoaded",!0)),this.glyphManager.setURL(b.glyphs);const f=ad(this.stylesheet.layers);for(let g of(this._order=f.map(a=>a.id),this._layers={},this._serializedLayers={},f))(g=a.createStyleLayer(g)).setEventedParent(this,{layer:{id:g.id}}),this._layers[g.id]=g,this._serializedLayers[g.id]=g.serialize(),this._updateLayerCount(g,!0);this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new r(this.stylesheet.light),this.stylesheet.terrain&&!this.terrainSetForDrapingOnly()&&this._createTerrain(this.stylesheet.terrain,1),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this._updateDrapeFirstLayers(),this.fire(new a.Event("data",{dataType:"style"})),this.fire(new a.Event("style.load"))}terrainSetForDrapingOnly(){return this.terrain&&0===this.terrain.drapeRenderMode}setProjection(a){a?this.stylesheet.projection=a:delete this.stylesheet.projection,this.updateProjection()}updateProjection(){const a=this.map.transform.projection,b=this.map.transform.setProjection(this.map._runtimeProjection||(this.stylesheet?this.stylesheet.projection:void 0)),c=this.map.transform.projection;if(this._loaded&&(c.requiresDraping?this.getTerrain()||this.stylesheet.terrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null)),this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),b){if(c.isReprojectedInTileSpace||a.isReprojectedInTileSpace)for(const d in this.map.painter.clearBackgroundTiles(),this._sourceCaches)this._sourceCaches[d].clearTiles();else this._forceSymbolLayerUpdate();this.map._update(!0)}}_loadSprite(b){this._spriteRequest=function(b,c,d){let f,g,h;const i=a.exported.devicePixelRatio>1?"@2x":"";let j=a.getJSON(c.transformRequest(c.normalizeSpriteURL(b,i,".json"),a.ResourceType.SpriteJSON),(a,b)=>{j=null,h||(h=a,f=b,l())}),k=a.getImage(c.transformRequest(c.normalizeSpriteURL(b,i,".png"),a.ResourceType.SpriteImage),(a,b)=>{k=null,h||(h=a,g=b,l())});function l(){if(h)d(h);else if(f&&g){const b=a.exported.getImageData(g),c={};for(const i in f){const{width:j,height:k,x:l,y:m,sdf:n,pixelRatio:o,stretchX:p,stretchY:q,content:r}=f[i],s=new a.RGBAImage({width:j,height:k});a.RGBAImage.copy(b,s,{x:l,y:m},{x:0,y:0},{width:j,height:k}),c[i]={data:s,pixelRatio:o,sdf:n,stretchX:p,stretchY:q,content:r}}d(null,c)}}return{cancel(){j&&(j.cancel(),j=null),k&&(k.cancel(),k=null)}}}(b,this.map._requestManager,(b,c)=>{if(this._spriteRequest=null,b)this.fire(new a.ErrorEvent(b));else if(c)for(const d in c)this.imageManager.addImage(d,c[d]);this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),this.dispatcher.broadcast("setImages",this._availableImages),this.dispatcher.broadcast("spriteLoaded",!0),this.fire(new a.Event("data",{dataType:"style"}))})}_validateLayer(b){const c=this.getSource(b.source);if(!c)return;const d=b.sourceLayer;d&&("geojson"===c.type||c.vectorLayerIds&& -1===c.vectorLayerIds.indexOf(d))&&this.fire(new a.ErrorEvent(Error(`Source layer "${d}" does not exist on source "${c.id}" as specified by style layer "${b.id}"`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(const a in this._sourceCaches)if(!this._sourceCaches[a].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeLayers(a){const b=[];for(const c of a){const d=this._layers[c];"custom"!==d.type&&b.push(d.serialize())}return b}hasTransitions(){if(this.light&&this.light.hasTransition()||this.fog&&this.fog.hasTransition())return!0;for(const a in this._sourceCaches)if(this._sourceCaches[a].hasTransition())return!0;for(const b in this._layers)if(this._layers[b].hasTransition())return!0;return!1}get order(){return this.map._optimizeForTerrain&&this.terrain?this._drapedFirstOrder:this._order}isLayerDraped(a){return!!this.terrain&&aX[a.type]}_checkLoaded(){if(!this._loaded)throw Error("Style is not done loading")}update(b){if(!this._loaded)return;const c=this._changed;if(this._changed){const d=Object.keys(this._updatedLayers),f=Object.keys(this._removedLayers);for(const g in(d.length||f.length)&&this._updateWorkerLayers(d,f),this._updatedSources){const h=this._updatedSources[g];"reload"===h?this._reloadSource(g):"clear"===h&&this._clearSource(g)}for(const i in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[i].updateTransitions(b);this.light.updateTransitions(b),this.fog&&this.fog.updateTransitions(b),this._resetUpdates()}const j={};for(const k in this._sourceCaches){const l=this._sourceCaches[k];j[k]=l.used,l.used=!1}for(const m of this._order){const n=this._layers[m];if(n.recalculate(b,this._availableImages),!n.isHidden(b.zoom)){const o=this._getLayerSourceCache(n);o&&(o.used=!0)}const p=this.map.painter;if(p){const q=n.getProgramIds();if(!q)continue;const r=n.getProgramConfiguration(b.zoom);for(const s of q)p.useProgram(s,r)}}for(const u in j){const v=this._sourceCaches[u];j[u]!==v.used&&v.getSource().fire(new a.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:v.getSource().id}))}this.light.recalculate(b),this.terrain&&this.terrain.recalculate(b),this.fog&&this.fog.recalculate(b),this.z=b.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),c&&this.fire(new a.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const a=Object.keys(this._changedImages);if(a.length){for(const b in this._sourceCaches)this._sourceCaches[b].reloadTilesForDependencies(["icons","patterns"],a);this._changedImages={}}}_updateWorkerLayers(a,b){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(a),removedIds:b})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}}setState(b){if(this._checkLoaded(),aT(this,a.validateStyle(b)))return!1;(b=a.clone$1(b)).layers=ad(b.layers);const c=(function(a,b){if(!a)return[{command:ae.setStyle,args:[b]},];let c=[];try{if(!g(a.version,b.version))return[{command:ae.setStyle,args:[b]},];g(a.center,b.center)||c.push({command:ae.setCenter,args:[b.center]}),g(a.zoom,b.zoom)||c.push({command:ae.setZoom,args:[b.zoom]}),g(a.bearing,b.bearing)||c.push({command:ae.setBearing,args:[b.bearing]}),g(a.pitch,b.pitch)||c.push({command:ae.setPitch,args:[b.pitch]}),g(a.sprite,b.sprite)||c.push({command:ae.setSprite,args:[b.sprite]}),g(a.glyphs,b.glyphs)||c.push({command:ae.setGlyphs,args:[b.glyphs]}),g(a.transition,b.transition)||c.push({command:ae.setTransition,args:[b.transition]}),g(a.light,b.light)||c.push({command:ae.setLight,args:[b.light]}),g(a.fog,b.fog)||c.push({command:ae.setFog,args:[b.fog]}),g(a.projection,b.projection)||c.push({command:ae.setProjection,args:[b.projection]});const d={},f=[];!function(a,b,c,d){let f;for(f in b=b||{},a=a||{})a.hasOwnProperty(f)&&(b.hasOwnProperty(f)||ag(f,c,d));for(f in b)b.hasOwnProperty(f)&&(a.hasOwnProperty(f)?g(a[f],b[f])||("geojson"===a[f].type&&"geojson"===b[f].type&&ai(a,b,f)?c.push({command:ae.setGeoJSONSourceData,args:[f,b[f].data,]}):ah(f,b,c,d)):af(f,b,c))}(a.sources,b.sources,f,d);const h=[];a.layers&&a.layers.forEach(a=>{d[a.source]?c.push({command:ae.removeLayer,args:[a.id]}):h.push(a)});let i=a.terrain;i&&d[i.source]&&(c.push({command:ae.setTerrain,args:[void 0]}),i=void 0),c=c.concat(f),g(i,b.terrain)||c.push({command:ae.setTerrain,args:[b.terrain]}),function(a,b,c){b=b||[];const d=(a=a||[]).map(ak),f=b.map(ak),h=a.reduce(al,{}),i=b.reduce(al,{}),j=d.slice(),k=Object.create(null);let l,m,n,o,p,q,r;for(l=0,m=0;l!(a.command in aV));if(0===c.length)return!1;const d=c.filter(a=>!(a.command in aU));if(d.length>0)throw Error(`Unimplemented: ${d.map(a=>a.command).join(", ")}.`);return c.forEach(a=>{"setTransition"!==a.command&&this[a.command].apply(this,a.args)}),this.stylesheet=b,this.updateProjection(),!0}addImage(b,c){if(this.getImage(b))return this.fire(new a.ErrorEvent(Error("An image with this name already exists.")));this.imageManager.addImage(b,c),this._afterImageUpdated(b)}updateImage(a,b){this.imageManager.updateImage(a,b)}getImage(a){return this.imageManager.getImage(a)}removeImage(b){if(!this.getImage(b))return this.fire(new a.ErrorEvent(Error("No image with this name exists.")));this.imageManager.removeImage(b),this._afterImageUpdated(b)}_afterImageUpdated(b){this._availableImages=this.imageManager.listImages(),this._changedImages[b]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new a.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this._availableImages.slice()}addSource(b,c,d={}){if(this._checkLoaded(),void 0!==this.getSource(b))throw Error("There is already a source with this ID");if(!c.type)throw Error(`The type property must be defined, but only the following properties were given: ${Object.keys(c).join(", ")}.`);if(["vector","raster","geojson","video","image",].indexOf(c.type)>=0&&this._validate(a.validateStyle.source,`sources.${b}`,c,null,d))return;this.map&&this.map._collectResourceTiming&&(c.collectResourceTiming=!0);const f=U(b,c,this.dispatcher,this);f.setEventedParent(this,()=>({isSourceLoaded:this.loaded(),source:f.serialize(),sourceId:b}));const g=c=>{const d=(c?"symbol:":"other:")+b,g=this._sourceCaches[d]=new a.SourceCache(d,f,c);(c?this._symbolSourceCaches:this._otherSourceCaches)[b]=g,g.style=this,g.onAdd(this.map)};g(!1),"vector"!==c.type&&"geojson"!==c.type||g(!0),f.onAdd&&f.onAdd(this.map),this._changed=!0}removeSource(b){this._checkLoaded();const c=this.getSource(b);if(void 0===c)throw Error("There is no source with this ID");for(const d in this._layers)if(this._layers[d].source===b)return this.fire(new a.ErrorEvent(Error(`Source "${b}" cannot be removed while layer "${d}" is using it.`)));if(this.terrain&&this.terrain.get().source===b)return this.fire(new a.ErrorEvent(Error(`Source "${b}" cannot be removed while terrain is using it.`)));const f=this._getSourceCaches(b);for(const g of f)delete this._sourceCaches[g.id],delete this._updatedSources[g.id],g.fire(new a.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:g.getSource().id})),g.setEventedParent(null),g.clearTiles();delete this._otherSourceCaches[b],delete this._symbolSourceCaches[b],c.setEventedParent(null),c.onRemove&&c.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(a,b){this._checkLoaded(),this.getSource(a).setData(b),this._changed=!0}getSource(a){const b=this._getSourceCache(a);return b&&b.getSource()}addLayer(b,c,d={}){this._checkLoaded();const f=b.id;if(this.getLayer(f))return void this.fire(new a.ErrorEvent(Error(`Layer with id "${f}" already exists on this map`)));let g;if("custom"===b.type){if(aT(this,a.validateCustomStyleLayer(b)))return;g=a.createStyleLayer(b)}else{if("object"==typeof b.source&&(this.addSource(f,b.source),b=a.clone$1(b),b=a.extend(b,{source:f})),this._validate(a.validateStyle.layer,`layers.${f}`,b,{arrayIndex:-1},d))return;g=a.createStyleLayer(b),this._validateLayer(g),g.setEventedParent(this,{layer:{id:f}}),this._serializedLayers[g.id]=g.serialize(),this._updateLayerCount(g,!0)}const h=c?this._order.indexOf(c):this._order.length;if(c&& -1===h)return void this.fire(new a.ErrorEvent(Error(`Layer with id "${c}" does not exist on this map.`)));this._order.splice(h,0,f),this._layerOrderChanged=!0,this._layers[f]=g;const i=this._getLayerSourceCache(g);if(this._removedLayers[f]&&g.source&&i&&"custom"!==g.type){const j=this._removedLayers[f];delete this._removedLayers[f],j.type!==g.type?this._updatedSources[g.source]="clear":(this._updatedSources[g.source]="reload",i.pause())}this._updateLayer(g),g.onAdd&&g.onAdd(this.map),this._updateDrapeFirstLayers()}moveLayer(b,c){if(this._checkLoaded(),this._changed=!0,!this._layers[b])return void this.fire(new a.ErrorEvent(Error(`The layer '${b}' does not exist in the map's style and cannot be moved.`)));if(b===c)return;const d=this._order.indexOf(b);this._order.splice(d,1);const f=c?this._order.indexOf(c):this._order.length;c&& -1===f?this.fire(new a.ErrorEvent(Error(`Layer with id "${c}" does not exist on this map.`))):(this._order.splice(f,0,b),this._layerOrderChanged=!0,this._updateDrapeFirstLayers())}removeLayer(b){this._checkLoaded();const c=this._layers[b];if(!c)return void this.fire(new a.ErrorEvent(Error(`The layer '${b}' does not exist in the map's style and cannot be removed.`)));c.setEventedParent(null),this._updateLayerCount(c,!1);const d=this._order.indexOf(b);this._order.splice(d,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[b]=c,delete this._layers[b],delete this._serializedLayers[b],delete this._updatedLayers[b],delete this._updatedPaintProps[b],c.onRemove&&c.onRemove(this.map),this._updateDrapeFirstLayers()}getLayer(a){return this._layers[a]}hasLayer(a){return a in this._layers}hasLayerType(a){for(const b in this._layers)if(this._layers[b].type===a)return!0;return!1}setLayerZoomRange(b,c,d){this._checkLoaded();const f=this.getLayer(b);f?f.minzoom===c&&f.maxzoom===d||(null!=c&&(f.minzoom=c),null!=d&&(f.maxzoom=d),this._updateLayer(f)):this.fire(new a.ErrorEvent(Error(`The layer '${b}' does not exist in the map's style and cannot have zoom extent.`)))}setFilter(b,c,d={}){this._checkLoaded();const f=this.getLayer(b);if(f){if(!g(f.filter,c))return null==c?(f.filter=void 0,void this._updateLayer(f)):void(this._validate(a.validateStyle.filter,`layers.${f.id}.filter`,c,{layerType:f.type},d)||(f.filter=a.clone$1(c),this._updateLayer(f)))}else this.fire(new a.ErrorEvent(Error(`The layer '${b}' does not exist in the map's style and cannot be filtered.`)))}getFilter(b){return a.clone$1(this.getLayer(b).filter)}setLayoutProperty(b,c,d,f={}){this._checkLoaded();const h=this.getLayer(b);h?g(h.getLayoutProperty(c),d)||(h.setLayoutProperty(c,d,f),this._updateLayer(h)):this.fire(new a.ErrorEvent(Error(`The layer '${b}' does not exist in the map's style and cannot be styled.`)))}getLayoutProperty(b,c){const d=this.getLayer(b);if(d)return d.getLayoutProperty(c);this.fire(new a.ErrorEvent(Error(`The layer '${b}' does not exist in the map's style.`)))}setPaintProperty(b,c,d,f={}){this._checkLoaded();const h=this.getLayer(b);h?g(h.getPaintProperty(c),d)||(h.setPaintProperty(c,d,f)&&this._updateLayer(h),this._changed=!0,this._updatedPaintProps[b]=!0):this.fire(new a.ErrorEvent(Error(`The layer '${b}' does not exist in the map's style and cannot be styled.`)))}getPaintProperty(a,b){return this.getLayer(a).getPaintProperty(b)}setFeatureState(b,c){this._checkLoaded();const d=b.source,f=b.sourceLayer,g=this.getSource(d);if(void 0===g)return void this.fire(new a.ErrorEvent(Error(`The source '${d}' does not exist in the map's style.`)));const h=g.type;if("geojson"===h&&f)return void this.fire(new a.ErrorEvent(Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===h&&!f)return void this.fire(new a.ErrorEvent(Error("The sourceLayer parameter must be provided for vector source types.")));void 0===b.id&&this.fire(new a.ErrorEvent(Error("The feature id parameter must be provided.")));const i=this._getSourceCaches(d);for(const j of i)j.setFeatureState(f,b.id,c)}removeFeatureState(b,c){this._checkLoaded();const d=b.source,f=this.getSource(d);if(void 0===f)return void this.fire(new a.ErrorEvent(Error(`The source '${d}' does not exist in the map's style.`)));const g=f.type,h="vector"===g?b.sourceLayer:void 0;if("vector"===g&&!h)return void this.fire(new a.ErrorEvent(Error("The sourceLayer parameter must be provided for vector source types.")));if(c&&"string"!=typeof b.id&&"number"!=typeof b.id)return void this.fire(new a.ErrorEvent(Error("A feature id is required to remove its specific state property.")));const i=this._getSourceCaches(d);for(const j of i)j.removeFeatureState(h,b.id,c)}getFeatureState(b){this._checkLoaded();const c=b.source,d=b.sourceLayer,f=this.getSource(c);if(void 0!==f){if("vector"!==f.type||d)return void 0===b.id&&this.fire(new a.ErrorEvent(Error("The feature id parameter must be provided."))),this._getSourceCaches(c)[0].getFeatureState(d,b.id);this.fire(new a.ErrorEvent(Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new a.ErrorEvent(Error(`The source '${c}' does not exist in the map's style.`)))}getTransition(){return a.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){const b={};for(const c in this._sourceCaches){const d=this._sourceCaches[c].getSource();b[d.id]||(b[d.id]=d.serialize())}return a.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,terrain:this.stylesheet.terrain,fog:this.stylesheet.fog,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,projection:this.stylesheet.projection,sources:b,layers:this._serializeLayers(this._order)},a=>void 0!==a)}_updateLayer(a){this._updatedLayers[a.id]=!0;const b=this._getLayerSourceCache(a);a.source&&!this._updatedSources[a.source]&&b&&"raster"!==b.getSource().type&&(this._updatedSources[a.source]="reload",b.pause()),this._changed=!0,a.invalidateCompiledFilter()}_flattenAndSortRenderedFeatures(a){var b,c;const d={},f=[];for(let g=this._order.length-1;g>=0;g--){const h=this._order[g];if(b=h,"fill-extrusion"===this._layers[b].type)for(const i of(d[h]=g,a)){const j=i[h];if(j)for(const k of j)f.push(k)}}f.sort((a,b)=>b.intersectionZ-a.intersectionZ);const l=[];for(let m=this._order.length-1;m>=0;m--){const n=this._order[m];if(c=n,"fill-extrusion"===this._layers[c].type)for(let o=f.length-1;o>=0;o--){const p=f[o].feature;if(d[p.layer.id]{const b=this.getLayer(a);return b&&b.is3D()}):this.has3DLayers(),k=L.createFromScreenPoints(b,d);for(const l in this._sourceCaches){const m=this._sourceCaches[l].getSource().id;c.layers&&!f[m]||i.push(W(this._sourceCaches[l],this._layers,this._serializedLayers,k,c,d,j,!!this.map._showQueryGeometry))}return this.placement&&i.push(function(a,b,c,d,f,g,h){const i={},j=g.queryRenderedSymbols(d),k=[];for(const l of Object.keys(j).map(Number))k.push(h[l]);for(const m of(k.sort(Y),k)){const n=m.featureIndex.lookupSymbolFeatures(j[m.bucketInstanceId],b,m.bucketIndex,m.sourceLayerIndex,f.filter,f.layers,f.availableImages,a);for(const o in n){const p=i[o]=i[o]||[],q=n[o];for(const r of(q.sort((a,b)=>{const c=m.featureSortOrder;if(c){const d=c.indexOf(a.featureIndex);return c.indexOf(b.featureIndex)-d}return b.featureIndex-a.featureIndex}),q))p.push(r)}}for(const s in i)i[s].forEach(b=>{const d=b.feature,f=c(a[s]).getFeatureState(d.layer["source-layer"],d.id);d.source=d.layer.source,d.layer["source-layer"]&&(d.sourceLayer=d.layer["source-layer"]),d.state=f});return i}(this._layers,this._serializedLayers,this._getLayerSourceCache.bind(this),k.screenGeometry,c,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(i)}querySourceFeatures(b,c){c&&c.filter&&this._validate(a.validateStyle.filter,"querySourceFeatures.filter",c.filter,null,c);const d=this._getSourceCaches(b);let f=[];for(const g of d)f=f.concat(X(g,c));return f}addSourceType(a,b,c){return aY.getSourceType(a)?c(Error(`A source type called "${a}" already exists.`)):(aY.setSourceType(a,b),b.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:a,url:b.workerSourceURL},c):c(null,null))}getLight(){return this.light.getLight()}setLight(b,c={}){this._checkLoaded();const d=this.light.getLight();let f=!1;for(const h in b)if(!g(b[h],d[h])){f=!0;break}if(!f)return;const i={now:a.exported.now(),transition:a.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(b,c),this.light.updateTransitions(i)}getTerrain(){return this.terrain&&1===this.terrain.drapeRenderMode?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},0)}setTerrain(b,c=1){if(this._checkLoaded(),!b)return delete this.terrain,delete this.stylesheet.terrain,this.dispatcher.broadcast("enableTerrain",!1),this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);if(1===c){if("object"==typeof b.source){const d="terrain-dem-src";this.addSource(d,b.source),b=a.clone$1(b),b=a.extend(b,{source:d})}if(this._validate(a.validateStyle.terrain,"terrain",b))return}if(!this.terrain||this.terrain&&c!==this.terrain.drapeRenderMode)this._createTerrain(b,c);else{const f=this.terrain,h=f.get();for(const i in b)if(!g(b[i],h[i])){f.set(b),this.stylesheet.terrain=b;const j={now:a.exported.now(),transition:a.extend({duration:0},this.stylesheet.transition)};f.updateTransitions(j);break}}this._updateDrapeFirstLayers(),this._markersNeedUpdate=!0}_createFog(b){const c=this.fog=new A(b,this.map.transform);this.stylesheet.fog=b;const d={now:a.exported.now(),transition:a.extend({duration:0},this.stylesheet.transition)};c.updateTransitions(d)}_updateMarkersOpacity(){0!==this.map._markers.length&&this.map._requestDomTask(()=>{for(const a of this.map._markers)a._evaluateOpacity()})}getFog(){return this.fog?this.fog.get():null}setFog(b){if(this._checkLoaded(),!b)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedUpdate=!0);if(this.fog){const c=this.fog,d=c.get();for(const f in b)if(!g(b[f],d[f])){c.set(b),this.stylesheet.fog=b;const h={now:a.exported.now(),transition:a.extend({duration:0},this.stylesheet.transition)};c.updateTransitions(h);break}}else this._createFog(b);this._markersNeedUpdate=!0}_updateDrapeFirstLayers(){if(!this.map._optimizeForTerrain||!this.terrain)return;const a=this._order.filter(a=>this.isLayerDraped(this._layers[a])),b=this._order.filter(a=>!this.isLayerDraped(this._layers[a]));this._drapedFirstOrder=[],this._drapedFirstOrder.push(...a),this._drapedFirstOrder.push(...b)}_createTerrain(b,c){const d=this.terrain=new v(b,c);this.stylesheet.terrain=b,this.dispatcher.broadcast("enableTerrain",!0),this._force3DLayerUpdate();const f={now:a.exported.now(),transition:a.extend({duration:0},this.stylesheet.transition)};d.updateTransitions(f)}_force3DLayerUpdate(){for(const a in this._layers){const b=this._layers[a];"fill-extrusion"===b.type&&this._updateLayer(b)}}_forceSymbolLayerUpdate(){for(const a in this._layers){const b=this._layers[a];"symbol"===b.type&&this._updateLayer(b)}}_validate(b,c,d,f,g={}){return(!g|| !1!==g.validate)&&aT(this,b.call(a.validateStyle,a.extend({key:c,style:this.serialize(),value:d,styleSpec:a.spec},f)))}_remove(){for(const b in this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),a.evented.off("pluginStateChange",this._rtlTextPluginCallback),this._layers)this._layers[b].setEventedParent(null);for(const c in this._sourceCaches)this._sourceCaches[c].clearTiles(),this._sourceCaches[c].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()}_clearSource(a){const b=this._getSourceCaches(a);for(const c of b)c.clearTiles()}_reloadSource(a){const b=this._getSourceCaches(a);for(const c of b)c.resume(),c.reload()}_updateSources(a){for(const b in this._sourceCaches)this._sourceCaches[b].update(a)}_generateCollisionBoxes(){for(const a in this._sourceCaches){const b=this._sourceCaches[a];b.resume(),b.reload()}}_updatePlacement(b,c,d,f,g=!1){let h=!1,i=!1;const j={};for(const k of this._order){const l=this._layers[k];if("symbol"!==l.type)continue;if(!j[l.source]){const m=this._getLayerSourceCache(l);if(!m)continue;j[l.source]=m.getRenderableIds(!0).map(a=>m.getTileByID(a)).sort((a,b)=>b.tileID.overscaledZ-a.tileID.overscaledZ||(a.tileID.isLessThan(b.tileID)?-1:1))}const n=this.crossTileSymbolIndex.addLayer(l,j[l.source],b.center.lng,b.projection);h=h||n}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),g=g||this._layerOrderChanged||0===d,this._layerOrderChanged&&this.fire(new a.Event("neworder")),(g||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(a.exported.now(),b.zoom))&&(this.pauseablePlacement=new aO(b,this._order,g,c,d,f,this.placement,this.fog&&b.projection.supportsFog?this.fog.state:null),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,j),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(a.exported.now()),i=!0),h&&this.pauseablePlacement.placement.setStale()),i||h)for(const o of this._order){const p=this._layers[o];"symbol"===p.type&&this.placement.updateLayerOpacities(p,j[p.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(a.exported.now())}_releaseSymbolFadeTiles(){for(const a in this._sourceCaches)this._sourceCaches[a].releaseSymbolFadeTiles()}getImages(a,b,c){this.imageManager.getImages(b.icons,c),this._updateTilesForChangedImages();const d=a=>{a&&a.setDependencies(b.tileID.key,b.type,b.icons)};d(this._otherSourceCaches[b.source]),d(this._symbolSourceCaches[b.source])}getGlyphs(a,b,c){this.glyphManager.getGlyphs(b.stacks,c)}getResource(b,c,d){return a.makeRequest(c,d)}_getSourceCache(a){return this._otherSourceCaches[a]}_getLayerSourceCache(a){return"symbol"===a.type?this._symbolSourceCaches[a.source]:this._otherSourceCaches[a.source]}_getSourceCaches(a){const b=[];return this._otherSourceCaches[a]&&b.push(this._otherSourceCaches[a]),this._symbolSourceCaches[a]&&b.push(this._symbolSourceCaches[a]),b}has3DLayers(){return this._num3DLayers>0}hasSymbolLayers(){return this._numSymbolLayers>0}hasCircleLayers(){return this._numCircleLayers>0}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}destroy(){this._clearWorkerCaches(),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}aY.getSourceType=function(a){return T[a]},aY.setSourceType=function(a,b){T[a]=b},aY.registerForPluginStateChange=a.registerForPluginStateChange;var aZ="\n#define EPSILON 0.0000001\n#define PI 3.141592653589793\n#define EXTENT 8192.0\n#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;varying vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}\n#endif",a$="attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}";let a_={},a0={};a_=a4("","\n#define ELEVATION_SCALE 7.0\n#define ELEVATION_OFFSET 450.0\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(\nmix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}\n#else\nvec3 elevationVector(vec2 pos) { return vec3(0,0,1); }\n#endif\n#ifdef TERRAIN\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;\n#else\nuniform sampler2D u_dem;uniform sampler2D u_dem_prev;\n#endif\nuniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));\n#ifdef TERRAIN_DEM_NEAREST_FILTER\nreturn u_exaggeration*tl;\n#endif\nfloat tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}float prevElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem_prev,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}\n#ifdef TERRAIN_VERTEX_MORPHING\nfloat elevation(vec2 apos) {float nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\n#else\nfloat elevation(vec2 apos) {return currentElevation(apos);}\n#endif\nfloat unpack_depth(vec4 rgba_depth)\n{const vec4 bit_shift=vec4(1.0/(256.0*256.0*256.0),1.0/(256.0*256.0),1.0/256.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(\nunpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))\n);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nfloat tl=texture2D(u_dem,pos).a;float tr=texture2D(u_dem,pos+vec2(off.x,0.0)).a;float bl=texture2D(u_dem,pos+vec2(0.0,off.y)).a;float br=texture2D(u_dem,pos+off).a;\n#else\nvec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);\n#endif\nreturn vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;vec4 bounds=vec4(d,vec2(1.0)-d);h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}\n#else\nfloat elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }\n#endif",!0),a0=a4("#ifdef FOG\nuniform float u_fog_temporal_offset;float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);return mix(color,u_fog_color.rgb,opacity);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec3 fog_dither(vec3 color) {vec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\n#endif","#ifdef FOG\nuniform mat4 u_fog_matrix;vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}\n#endif",!0);const a1=a4("\nhighp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}\n#ifdef TERRAIN\nhighp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(256.0*256.0*256.0,256.0*256.0,256.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/256.0,1.0/256.0,1.0/256.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}\n#endif","\nfloat wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}vec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {\n#if defined(PROJECTION_GLOBE_VIEW) && !defined(PROJECTED_POS_ON_VIEWPORT)\nfloat tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;\n#else\nreturn vec3(0.0);\n#endif\n}vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {\n#if defined(PROJECTION_GLOBE_VIEW) && !defined(PROJECTED_POS_ON_VIEWPORT)\nreturn mix(globe,mercator,t);\n#else\nreturn globe;\n#endif\n}\n#ifdef PROJECTION_GLOBE_VIEW\nmat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered."),a2=aZ;var a3={background:a4("uniform vec4 u_color;uniform float u_opacity;void main() {vec4 out_color=u_color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),backgroundPattern:a4("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_mix);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),circle:a4("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\nantialiased_blur,0.0,extrude_length-radius/(radius+stroke_width)\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef FOG\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\n#endif\ngl_FragColor=out_color*(v_visibility*opacity_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","#define NUM_VISIBILITY_RINGS 2\n#define INV_SQRT2 0.70710678\n#define ELEVATION_BIAS 0.0001\n#define NUM_SAMPLES_PER_RING 16\nuniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;attribute float a_scale;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\n#if defined(TERRAIN)\nreturn elevation(pos)+ELEVATION_BIAS;\n#else\nreturn 0.0;\n#endif\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\n#ifdef PITCH_WITH_MAP\n#ifdef PROJECTION_GLOBE_VIEW\nreturn u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );\n#else\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\n#endif\n#else\nreturn projected_center+vec4(sample_offset,0,0);\n#endif\n}float get_sample_step() {\n#ifdef PITCH_WITH_MAP\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\n#else\nreturn PI/float(NUM_SAMPLES_PER_RING);\n#endif\n}void main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);\n#ifdef PROJECTION_GLOBE_VIEW\nvec2 scaled_extrude=extrude*a_scale;vec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=scaled_extrude.x*surface_vectors[0]+scaled_extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);vec4 world_center=vec4(pos,1);\n#else \nmat3 surface_vectors=mat3(1.0);float height=circle_elevation(circle_center);vec4 world_center=vec4(circle_center,height,1);\n#endif\nvec4 projected_center=u_matrix*world_center;float view_scale=0.0;\n#ifdef PITCH_WITH_MAP\n#ifdef SCALE_WITH_MAP\nview_scale=1.0;\n#else\nview_scale=projected_center.w/u_camera_to_center_distance;\n#endif\n#else\n#ifdef SCALE_WITH_MAP\nview_scale=u_camera_to_center_distance;\n#else\nview_scale=projected_center.w;\n#endif\n#endif\n#if defined(SCALE_WITH_MAP) && defined(PROJECTION_GLOBE_VIEW)\nview_scale*=a_scale;\n#endif\ngl_Position=project_vertex(extrude,world_center,projected_center,radius,stroke_width,view_scale,surface_vectors);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);vec4 occlusion_world_center=vec4(circle_center,cantilevered_height,1);vec4 occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nvec4 occlusion_world_center=world_center;vec4 occlusion_projected_center=projected_center;\n#endif\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\n#else\nvisibility=1.0;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nvisibility=1.0;\n#endif\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);\n#ifdef FOG\nv_fog_pos=fog_position(world_center.xyz);\n#endif\n}"),clippingMask:a4("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:a4("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef FOG\ngl_FragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;attribute float a_scale;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);\n#ifdef PROJECTION_GLOBE_VIEW\nextrude*=a_scale;vec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#else\nvec3 pos=vec3(tilePos+extrude,elevation(tilePos));\n#endif\ngl_Position=u_matrix*vec4(pos,1);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),heatmapTexture:a4("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:a4("varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}","attribute vec3 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:a4("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:a4("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;\n#endif\nvarying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;\n#ifdef PROJECTION_GLOBE_VIEW\ngl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1);\n#else\ngl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);\n#endif\n}"),fill:a4("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nvec4 out_color=color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutline:a4("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutlinePattern:a4("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=mix(color1,color2,u_fade);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillPattern:a4("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_fade);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillExtrusion:a4("varying vec4 v_color;void main() {vec4 color=v_color;\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 pos_nx=floor(a_pos_normal_ed.xyz*0.5);mediump vec3 top_up_ny=a_pos_normal_ed.xyz-2.0*pos_nx;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;float ele=elevation(pos_nx.xy);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;float h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);vec3 pos=vec3(pos_nx.xy,h);\n#else\nvec3 pos=vec3(pos_nx.xy,t > 0.0 ? height : base);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(pos.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.rgb+=clamp(color.rgb*directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_color*=u_opacity;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),fillExtrusionPattern:a4("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_fade);out_color=out_color*v_lighting;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 pos_nx=floor(a_pos_normal_ed.xyz*0.5);mediump vec3 top_up_ny=a_pos_normal_ed.xyz-2.0*pos_nx;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;float ele=elevation(pos_nx.xy);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;float h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);vec3 p=vec3(pos_nx.xy,h);\n#else\nvec3 p=vec3(pos_nx.xy,z);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0\n? pos_nx.xy\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\n#ifdef FOG\nv_fog_pos=fog_position(p);\n#endif\n}"),hillshadePrepare:a4("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nreturn texture2D(u_image,coord).a/4.0;\n#else\nvec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;\n#endif\n}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos);float f=getElevation(v_pos+vec2(epsilon.x,0));float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float h=getElevation(v_pos+vec2(0,epsilon.y));float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\n(c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:a4("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef FOG\ngl_FragColor=fog_dither(fog_apply_premultiplied(gl_FragColor,v_fog_pos));\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),line:a4("uniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#ifdef RENDER_LINE_DASH\nuniform sampler2D u_dash_image;uniform float u_mix;uniform vec3 u_scale;varying vec2 v_tex_a;varying vec2 v_tex_b;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform sampler2D u_gradient_image;varying highp vec2 v_uv;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash_from\n#pragma mapbox: define lowp vec4 dash_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash_from\n#pragma mapbox: initialize lowp vec4 dash_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\n#ifdef RENDER_LINE_DASH\nfloat sdfdist_a=texture2D(u_dash_image,v_tex_a).a;float sdfdist_b=texture2D(u_dash_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);float sdfwidth=min(dash_from.z*u_scale.y,dash_to.z*u_scale.z);float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/sdfwidth;alpha*=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);\n#endif\n#ifdef RENDER_LINE_GRADIENT\nvec4 out_color=texture2D(u_gradient_image,v_uv);\n#else\nvec4 out_color=color;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#ifdef RENDER_LINE_ALPHA_DISCARD\nif (alpha < u_alpha_discard_threshold) {discard;}\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define EXTRUDE_SCALE 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;\n#ifdef RENDER_LINE_GRADIENT\nattribute vec3 a_packed;\n#else\nattribute float a_linesofar;\n#endif\nuniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;\n#ifdef RENDER_LINE_DASH\nuniform vec2 u_texsize;uniform mediump vec3 u_scale;varying vec2 v_tex_a;varying vec2 v_tex_b;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform float u_image_height;varying highp vec2 v_uv;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash_from\n#pragma mapbox: define lowp vec4 dash_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash_from\n#pragma mapbox: initialize lowp vec4 dash_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nfloat a_uv_x=a_packed[0];float a_split_index=a_packed[1];float a_linesofar=a_packed[2];highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);\n#endif\n#ifdef RENDER_LINE_DASH\nfloat tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;float scaleA=dash_from.z==0.0 ? 0.0 : tileZoomRatio/(dash_from.z*fromScale);float scaleB=dash_to.z==0.0 ? 0.0 : tileZoomRatio/(dash_to.z*toScale);float heightA=dash_from.y;float heightB=dash_to.y;v_tex_a=vec2(a_linesofar*scaleA/floorwidth,(-normal.y*heightA+dash_from.x+0.5)/u_texsize.y);v_tex_b=vec2(a_linesofar*scaleB/floorwidth,(-normal.y*heightB+dash_to.x+0.5)/u_texsize.y);\n#endif\nv_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),linePattern:a4("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),raster:a4("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);\n#ifdef FOG\nout_color=fog_dither(fog_apply(out_color,v_fog_pos));\n#endif\ngl_FragColor=vec4(out_color*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {float w=1.0+dot(a_texture_pos,u_perspective_transform);gl_Position=u_matrix*vec4(a_pos*w,0,w);v_pos0=a_texture_pos/8192.0;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),symbolIcon:a4("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_z_tile_anchor;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float anchorZ=a_z_tile_anchor.x;vec2 tileAnchor=a_z_tile_anchor.yz;vec3 h=elevationVector(tileAnchor)*elevation(tileAnchor);vec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tileAnchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(vec3(a_pos,anchorZ)+h,mercator_pos,u_zoom_transition);vec4 projectedPoint=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),anchorZ,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec3 proj_pos=mix_globe_mercator(vec3(a_projected_pos.xy,anchorZ),mercator_pos,u_zoom_transition);\n#ifdef PROJECTED_POS_ON_VIEWPORT\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xy,0.0,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xyz+h,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projectedPoint);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projectedPoint.w <=0.0 || occlusion_fade==0.0));float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;}"),symbolSDF:a4("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_z_tile_anchor;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_tile_id;uniform float u_zoom_transition;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float anchorZ=a_z_tile_anchor.x;vec2 tileAnchor=a_z_tile_anchor.yz;vec3 h=elevationVector(tileAnchor)*elevation(tileAnchor);vec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tileAnchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(vec3(a_pos,anchorZ)+h,mercator_pos,u_zoom_transition);vec4 projectedPoint=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),anchorZ,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec3 proj_pos=mix_globe_mercator(vec3(a_projected_pos.xy,anchorZ),mercator_pos,u_zoom_transition);\n#ifdef PROJECTED_POS_ON_VIEWPORT\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xy,0.0,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xyz+h,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projectedPoint);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projectedPoint.w <=0.0 || occlusion_fade==0.0));float gamma_scale=gl_Position.w;float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade);}"),symbolTextAndIcon:a4("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_z_tile_anchor;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float anchorZ=a_z_tile_anchor.x;vec2 tileAnchor=a_z_tile_anchor.yz;vec3 h=elevationVector(tileAnchor)*elevation(tileAnchor);vec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tileAnchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(vec3(a_pos,anchorZ)+h,mercator_pos,u_zoom_transition);vec4 projectedPoint=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),anchorZ,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec3 proj_pos=mix_globe_mercator(vec3(a_projected_pos.xy,anchorZ),mercator_pos,u_zoom_transition);\n#ifdef PROJECTED_POS_ON_VIEWPORT\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xy,0.0,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xyz+h,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projectedPoint);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projectedPoint.w <=0.0 || occlusion_fade==0.0));float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade,is_sdf);}"),terrainRaster:a4("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\nvoid main() {vec4 color=texture2D(u_image0,v_pos0);\n#ifdef FOG\ncolor=fog_dither(fog_apply_from_vert(color,v_fog_opacity));\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\nconst float skirtOffset=24575.0;const float wireframeOffset=0.00015;void main() {v_pos0=a_texture_pos/8192.0;float skirt=float(a_pos.x >=skirtOffset);float elevation=elevation(a_texture_pos)-skirt*u_skirt_height;\n#ifdef TERRAIN_WIREFRAME\nelevation+=u_skirt_height*u_skirt_height*wireframeOffset;\n#endif\nvec2 decodedPos=a_pos-vec2(skirt*skirtOffset,0.0);gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\n#ifdef FOG\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\n#endif\n}"),terrainDepth:a4("#ifdef GL_ES\nprecision highp float;\n#endif\nvarying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying float v_depth;void main() {float elevation=elevation(a_texture_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}"),skybox:a4("\nvarying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;\n#ifdef FOG\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\n#endif\nsky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",a$),skyboxGradient:a4("varying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5));\n#ifdef FOG\ncolor.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;\n#endif\ncolor*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",a$),skyboxCapture:a4("\nvarying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;\n#ifdef GL_ES\nprecision highp float;\n#endif\n#define BETA_R vec3(5.5e-6,13.0e-6,22.4e-6)\n#define BETA_M vec3(21e-6,21e-6,21e-6)\n#define MIE_G 0.76\n#define DENSITY_HEIGHT_SCALE_R 8000.0\n#define DENSITY_HEIGHT_SCALE_M 1200.0\n#define PLANET_RADIUS 6360e3\n#define ATMOSPHERE_RADIUS 6420e3\n#define SAMPLE_STEPS 10\n#define DENSITY_STEPS 4\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}","attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:a4("uniform sampler2D u_image0;varying vec2 v_pos0;void main() {gl_FragColor=texture2D(u_image0,v_pos0);\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_proj_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;attribute vec3 a_globe_pos;attribute vec2 a_merc_pos;attribute vec2 a_uv;varying vec2 v_pos0;const float wireframeOffset=1e3;void main() {v_pos0=a_uv;vec2 uv=a_uv*EXTENT;vec4 up_vector=vec4(elevationVector(uv),1.0);float height=elevation(uv);\n#ifdef TERRAIN_WIREFRAME\nheight+=wireframeOffset;\n#endif\nvec4 globe=u_globe_matrix*vec4(a_globe_pos+up_vector.xyz*height,1.0);vec4 mercator=vec4(0.0);if (u_zoom_transition > 0.0) {mercator=vec4(a_merc_pos,height,1.0);mercator.xy-=u_merc_center;mercator.x=wrap(mercator.x,-0.5,0.5);mercator=u_merc_matrix*mercator;}vec3 position=mix(globe.xyz,mercator.xyz,u_zoom_transition);gl_Position=u_proj_matrix*vec4(position,1.0);}"),globeAtmosphere:a4("uniform vec2 u_center;uniform float u_radius;uniform vec2 u_screen_size;uniform float u_opacity;uniform highp float u_fadeout_range;uniform vec3 u_start_color;uniform vec3 u_end_color;uniform float u_pixel_ratio;void main() {highp vec2 fragCoord=gl_FragCoord.xy/u_pixel_ratio;fragCoord.y=u_screen_size.y-fragCoord.y;float distFromCenter=length(fragCoord-u_center);float normDistFromCenter=length(fragCoord-u_center)/u_radius;if (normDistFromCenter < 1.0)\ndiscard;float t=clamp(1.0-sqrt(normDistFromCenter-1.0)/u_fadeout_range,0.0,1.0);vec3 color=mix(u_start_color,u_end_color,1.0-t);gl_FragColor=vec4(color*t*u_opacity,u_opacity);}","attribute vec3 a_pos;void main() {gl_Position=vec4(a_pos,1.0);}")};function a4(a,b,c){const d=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,f=/uniform (highp |mediump |lowp )?([\w]+) ([\w]+)([\s]*)([\w]*)/g,g=b.match(/attribute (highp |mediump |lowp )?([\w]+) ([\w]+)/g),h=a.match(f),i=b.match(f),j=aZ.match(f);let k=i?i.concat(h):h;c||(a_.staticUniforms&&(k=a_.staticUniforms.concat(k)),a0.staticUniforms&&(k=a0.staticUniforms.concat(k))),k&&(k=k.concat(j));const l={};return{fragmentSource:a=a.replace(d,(a,b,c,d,f)=>(l[f]=!0,"define"===b?` +Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(l[1])} }\`.`),];const m=[];return"symbol"===a.layerType&&("text-field"===h&&d&&!d.glyphs&&m.push(new bl(c,g,'use of "text-field" requires a style "glyphs" property')),"text-font"===h&&da(bp(g))&&"identity"===bo(g.type)&&m.push(new bl(c,g,'"text-font" does not support identity functions'))),m.concat(dY({key:a.key,value:g,valueSpec:k,style:d,styleSpec:f,expressionContext:"property",propertyType:b,propertyKey:h}))}function dO(a){return dN(a,"paint")}function dP(a){return dN(a,"layout")}function dQ(a){let b=[];const c=a.value,d=a.key,f=a.style,g=a.styleSpec;c.type||c.ref||b.push(new bl(d,c,'either "type" or "ref" is required'));let h=bo(c.type);const i=bo(c.ref);if(c.id){const j=bo(c.id);for(let k=0;k{a in c&&b.push(new bl(d,c[a],`"${a}" is prohibited for ref layers`))}),f.layers.forEach(a=>{bo(a.id)===i&&(m=a)}),m?m.ref?b.push(new bl(d,c.ref,"ref cannot reference another ref layer")):h=bo(m.type):b.push(new bl(d,c.ref,`ref layer "${i}" not found`))}else if("background"!==h&&"sky"!==h){if(c.source){const n=f.sources&&f.sources[c.source],o=n&&bo(n.type);n?"vector"===o&&"raster"===h?b.push(new bl(d,c.source,`layer "${c.id}" requires a raster source`)):"raster"===o&&"raster"!==h?b.push(new bl(d,c.source,`layer "${c.id}" requires a vector source`)):"vector"!==o||c["source-layer"]?"raster-dem"===o&&"hillshade"!==h?b.push(new bl(d,c.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"===h&&c.paint&&c.paint["line-gradient"]&&("geojson"!==o||!n.lineMetrics)&&b.push(new bl(d,c,`layer "${c.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):b.push(new bl(d,c,`layer "${c.id}" must specify a "source-layer"`)):b.push(new bl(d,c.source,`source "${c.source}" not found`))}else b.push(new bl(d,c,'missing required property "source"'))}return b=b.concat(dr({key:d,value:c,valueSpec:g.layer,style:a.style,styleSpec:a.styleSpec,objectElementValidators:{"*":()=>[],type:()=>dY({key:`${d}.type`,value:c.type,valueSpec:g.layer.type,style:a.style,styleSpec:a.styleSpec,object:c,objectKey:"type"}),filter:a=>dL(bn({layerType:h},a)),layout:a=>dr({layer:c,key:a.key,value:a.value,style:a.style,styleSpec:a.styleSpec,objectElementValidators:{"*":a=>dP(bn({layerType:h},a))}}),paint:a=>dr({layer:c,key:a.key,value:a.value,style:a.style,styleSpec:a.styleSpec,objectElementValidators:{"*":a=>dO(bn({layerType:h},a))}})}}))}function dR(a){const b=a.value,c=a.key,d=c9(b);return"string"!==d?[new bl(c,b,`string expected, ${d} found`)]:[]}const dS={promoteId:function({key:a,value:b}){if("string"===c9(b))return dR({key:a,value:b});{const c=[];for(const d in b)c.push(...dR({key:`${a}.${d}`,value:b[d]}));return c}}};function dT(a){const b=a.value,c=a.key,d=a.styleSpec,f=a.style;if(!b.type)return[new bl(c,b,'"type" is required')];const g=bo(b.type);let h;switch(g){case"vector":case"raster":case"raster-dem":return dr({key:c,value:b,valueSpec:d[`source_${g.replace("-","_")}`],style:a.style,styleSpec:d,objectElementValidators:dS});case"geojson":if(h=dr({key:c,value:b,valueSpec:d.source_geojson,style:f,styleSpec:d,objectElementValidators:dS}),b.cluster)for(const i in b.clusterProperties){const[j,k]=b.clusterProperties[i],l="string"==typeof j?[j,["accumulated"],["get",i],]:j;h.push(...dv({key:`${c}.${i}.map`,value:k,expressionContext:"cluster-map"})),h.push(...dv({key:`${c}.${i}.reduce`,value:l,expressionContext:"cluster-reduce"}))}return h;case"video":return dr({key:c,value:b,valueSpec:d.source_video,style:f,styleSpec:d});case"image":return dr({key:c,value:b,valueSpec:d.source_image,style:f,styleSpec:d});case"canvas":return[new bl(c,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas"),];default:return dx({key:`${c}.type`,value:b.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image",]},style:f,styleSpec:d})}}function dU(a){const b=a.value,c=a.styleSpec,d=c.light,f=a.style;let g=[];const h=c9(b);if(void 0===b)return g;if("object"!==h)return g.concat([new bl("light",b,`object expected, ${h} found`),]);for(const i in b){const j=i.match(/^(.*)-transition$/);g=g.concat(j&&d[j[1]]&&d[j[1]].transition?dY({key:i,value:b[i],valueSpec:c.transition,style:f,styleSpec:c}):d[i]?dY({key:i,value:b[i],valueSpec:d[i],style:f,styleSpec:c}):[new bl(i,b[i],`unknown property "${i}"`),])}return g}function dV(a){const b=a.value,c=a.key,d=a.style,f=a.styleSpec,g=f.terrain;let h=[];const i=c9(b);if(void 0===b)return h;if("object"!==i)return h.concat([new bl("terrain",b,`object expected, ${i} found`),]);for(const j in b){const k=j.match(/^(.*)-transition$/);h=h.concat(k&&g[k[1]]&&g[k[1]].transition?dY({key:j,value:b[j],valueSpec:f.transition,style:d,styleSpec:f}):g[j]?dY({key:j,value:b[j],valueSpec:g[j],style:d,styleSpec:f}):[new bl(j,b[j],`unknown property "${j}"`),])}if(b.source){const l=d.sources&&d.sources[b.source],m=l&&bo(l.type);l?"raster-dem"!==m&&h.push(new bl(c,b.source,`terrain cannot be used with a source of type ${m}, it only be used with a "raster-dem" source type`)):h.push(new bl(c,b.source,`source "${b.source}" not found`))}else h.push(new bl(c,b,'terrain is missing required property "source"'));return h}function dW(a){const b=a.value,c=a.style,d=a.styleSpec,f=d.fog;let g=[];const h=c9(b);if(void 0===b)return g;if("object"!==h)return g.concat([new bl("fog",b,`object expected, ${h} found`),]);for(const i in b){const j=i.match(/^(.*)-transition$/);g=g.concat(j&&f[j[1]]&&f[j[1]].transition?dY({key:i,value:b[i],valueSpec:d.transition,style:c,styleSpec:d}):f[i]?dY({key:i,value:b[i],valueSpec:f[i],style:c,styleSpec:d}):[new bl(i,b[i],`unknown property "${i}"`),])}return g}const dX={"*":()=>[],array:ds,boolean:function(a){const b=a.value,c=a.key,d=c9(b);return"boolean"!==d?[new bl(c,b,`boolean expected, ${d} found`),]:[]},number:dt,color:function(a){const b=a.key,c=a.value,d=c9(c);return"string"!==d?[new bl(b,c,`color expected, ${d} found`),]:null===bJ.parseCSSColor(c)?[new bl(b,c,`color expected, "${c}" found`),]:[]},constants:bm,enum:dx,filter:dL,function:du,layer:dQ,object:dr,source:dT,light:dU,terrain:dV,fog:dW,string:dR,formatted:function(a){return 0===dR(a).length?[]:dv(a)},resolvedImage:function(a){return 0===dR(a).length?[]:dv(a)},projection:function(a){const b=a.value,c=a.styleSpec,d=c.projection,f=a.style;let g=[];const h=c9(b);if("object"===h)for(const i in b)g=g.concat(dY({key:i,value:b[i],valueSpec:d[i],style:f,styleSpec:c}));else"string"!==h&&(g=g.concat([new bl("projection",b,`object or string expected, ${h} found`),]));return g}};function dY(a){const b=a.value,c=a.valueSpec,d=a.styleSpec;return c.expression&&da(bo(b))?du(a):c.expression&&dj(bp(b))?dv(a):c.type&&dX[c.type]?dX[c.type](a):dr(bn({},a,{valueSpec:c.type?d[c.type]:c}))}function dZ(a){const b=a.value,c=a.key,d=dR(a);return d.length||(-1===b.indexOf("{fontstack}")&&d.push(new bl(c,b,'"glyphs" url must include a "{fontstack}" token')),-1===b.indexOf("{range}")&&d.push(new bl(c,b,'"glyphs" url must include a "{range}" token'))),d}function d$(a,b=bk){let c=[];return c=c.concat(dY({key:"",value:a,valueSpec:b.$root,styleSpec:b,style:a,objectElementValidators:{glyphs:dZ,"*":()=>[]}})),a.constants&&(c=c.concat(bm({key:"constants",value:a.constants,style:a,styleSpec:b}))),d_(c)}function d_(a){return[].concat(a).sort((a,b)=>a.line-b.line)}function d0(a){return function(...b){return d_(a.apply(this,b))}}d$.source=d0(dT),d$.light=d0(dU),d$.terrain=d0(dV),d$.fog=d0(dW),d$.layer=d0(dQ),d$.filter=d0(dL),d$.paintProperty=d0(dO),d$.layoutProperty=d0(dP);const d1=d$,d2=d1.light,d3=d1.fog,d4=d1.paintProperty,d5=d1.layoutProperty;function d6(a,b){let c=!1;if(b&&b.length)for(const d of b)a.fire(new bi(Error(d.message))),c=!0;return c}var d7=d8;function d8(a,b,c){var d=this.cells=[];if(a instanceof ArrayBuffer){this.arrayBuffer=a;var f=new Int32Array(this.arrayBuffer);a=f[0],this.d=(b=f[1])+2*(c=f[2]);for(var g=0;g=l[o+0]&&d>=l[o+1])?(h[n]=!0,g.push(k[n])):h[n]=!1}}},d8.prototype._forEachCell=function(a,b,c,d,f,g,h,i){for(var j=this._convertToCellCoord(a),k=this._convertToCellCoord(b),l=this._convertToCellCoord(c),m=this._convertToCellCoord(d),n=j;n<=l;n++)for(var o=k;o<=m;o++){var p=this.d*o+n;if((!i||i(this._convertFromCellCoord(n),this._convertFromCellCoord(o),this._convertFromCellCoord(n+1),this._convertFromCellCoord(o+1)))&&f.call(this,a,b,c,d,p,g,h,i))return}},d8.prototype._convertFromCellCoord=function(a){return(a-this.padding)/this.scale},d8.prototype._convertToCellCoord=function(a){return Math.max(0,Math.min(this.d-1,Math.floor(a*this.scale)+this.padding))},d8.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var a=this.cells,b=3+this.cells.length+1+1,c=0,d=0;d=0)continue;const k=a[j];i[j]=eb[h].shallow.indexOf(j)>=0?k:eg(k,b)}a instanceof Error&&(i.message=a.message)}if(i.$name)throw Error("$name property is reserved for worker serialization logic.");return"Object"!==h&&(i.$name=h),i}throw Error("can't serialize object of type "+typeof a)}function eh(a){if(null==a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||a instanceof Boolean||a instanceof Number||a instanceof String||a instanceof Date||a instanceof RegExp||ee(a)||ef(a)||ArrayBuffer.isView(a)||a instanceof d9)return a;if(Array.isArray(a))return a.map(eh);if("object"==typeof a){const b=a.$name||"Object",{klass:c}=eb[b];if(!c)throw Error(`can't deserialize unregistered class ${b}`);if(c.deserialize)return c.deserialize(a);const d=Object.create(c.prototype);for(const f of Object.keys(a)){if("$name"===f)continue;const g=a[f];d[f]=eb[b].shallow.indexOf(f)>=0?g:eh(g)}return d}throw Error("can't deserialize object of type "+typeof a)}class ei{constructor(){this.first=!0}update(a,b){const c=Math.floor(a);return this.first?(this.first=!1,this.lastIntegerZoom=c,this.lastIntegerZoomTime=0,this.lastZoom=a,this.lastFloorZoom=c,!0):(this.lastFloorZoom>c?(this.lastIntegerZoom=c+1,this.lastIntegerZoomTime=b):this.lastFloorZooma>=1536&&a<=1791,ek=a=>a>=1872&&a<=1919,el=a=>a>=2208&&a<=2303,em=a=>a>=11904&&a<=12031,en=a=>a>=12032&&a<=12255,eo=a=>a>=12272&&a<=12287,ep=a=>a>=12288&&a<=12351,eq=a=>a>=12352&&a<=12447,er=a=>a>=12448&&a<=12543,es=a=>a>=12544&&a<=12591,et=a=>a>=12704&&a<=12735,eu=a=>a>=12736&&a<=12783,ev=a=>a>=12784&&a<=12799,ew=a=>a>=12800&&a<=13055,ex=a=>a>=13056&&a<=13311,ey=a=>a>=13312&&a<=19903,ez=a=>a>=19968&&a<=40959,eA=a=>a>=40960&&a<=42127,eB=a=>a>=42128&&a<=42191,eC=a=>a>=44032&&a<=55215,eD=a=>a>=63744&&a<=64255,eE=a=>a>=64336&&a<=65023,eF=a=>a>=65040&&a<=65055,eG=a=>a>=65072&&a<=65103,eH=a=>a>=65104&&a<=65135,eI=a=>a>=65136&&a<=65279,eJ=a=>a>=65280&&a<=65519;function eK(a){for(const b of a)if(eN(b.charCodeAt(0)))return!0;return!1}function eL(a){for(const b of a)if(!eM(b.charCodeAt(0)))return!1;return!0}function eM(a){return!(ej(a)||ek(a)||el(a)||eE(a)||eI(a))}function eN(a){var b,c,d,f,g,h,i,j;return!(746!==a&&747!==a&&(a<4352||!(et(a)||es(a)||eG(a)&&!(a>=65097&&a<=65103)||eD(a)||ex(a)||em(a)||eu(a)||!(!ep(a)||a>=12296&&a<=12305||a>=12308&&a<=12319||12336===a)||ey(a)||ez(a)||ew(a)||(b=a)>=12592&&b<=12687||(c=a)>=43360&&c<=43391||(d=a)>=55216&&d<=55295||(f=a)>=4352&&f<=4607||eC(a)||eq(a)||eo(a)||(g=a)>=12688&&g<=12703||en(a)||ev(a)||er(a)&&12540!==a||!(!eJ(a)||65288===a||65289===a||65293===a||a>=65306&&a<=65310||65339===a||65341===a||65343===a||a>=65371&&a<=65503||65507===a||a>=65512&&a<=65519)||!(!eH(a)||a>=65112&&a<=65118||a>=65123&&a<=65126)||(h=a)>=5120&&h<=5759||(i=a)>=6320&&i<=6399||eF(a)||(j=a)>=19904&&j<=19967||eA(a)||eB(a))))}function eO(a){var b,c,d,f,g,h,i,j,k,l,m,n,o;return!(eN(a)||(c=b=a)>=128&&c<=255&&(167===b||169===b||174===b||177===b||188===b||189===b||190===b||215===b||247===b)||(d=b)>=8192&&d<=8303&&(8214===b||8224===b||8225===b||8240===b||8241===b||8251===b||8252===b||8258===b||8263===b||8264===b||8265===b||8273===b)||(f=b)>=8448&&f<=8527||(g=b)>=8528&&g<=8591||(h=b)>=8960&&h<=9215&&(b>=8960&&b<=8967||b>=8972&&b<=8991||b>=8996&&b<=9e3||9003===b||b>=9085&&b<=9114||b>=9150&&b<=9165||9167===b||b>=9169&&b<=9179||b>=9186&&b<=9215)||(i=b)>=9216&&i<=9279&&9251!==b||(j=b)>=9280&&j<=9311||(k=b)>=9312&&k<=9471||(l=b)>=9632&&l<=9727||(m=b)>=9728&&m<=9983&&!(b>=9754&&b<=9759)||(n=b)>=11008&&n<=11263&&(b>=11026&&b<=11055||b>=11088&&b<=11097||b>=11192&&b<=11243)||ep(b)||er(b)||(o=b)>=57344&&o<=63743||eG(b)||eH(b)||eJ(b)||8734===b||8756===b||8757===b||b>=9984&&b<=10087||b>=10102&&b<=10131||65532===b||65533===b)}function eP(a){return a>=1424&&a<=2303||eE(a)||eI(a)}function eQ(a,b){var c;return!(!b&&eP(a)||a>=2304&&a<=3583||a>=3840&&a<=4255||(c=a)>=6016&&c<=6143)}function eR(a){for(const b of a)if(eP(b.charCodeAt(0)))return!0;return!1}const eS="deferred",eT="loading",eU="loaded";let eV=null,eW="unavailable",eX=null;const eY=function(a){a&&"string"==typeof a&&a.indexOf("NetworkError")> -1&&(eW="error"),eV&&eV(a)};function eZ(){e$.fire(new bh("pluginStateChange",{pluginStatus:eW,pluginURL:eX}))}const e$=new bj,e_=function(){return eW},e0=function(){if(eW!==eS||!eX)throw Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");eW=eT,eZ(),eX&&a7({url:eX},a=>{a?eY(a):(eW=eU,eZ())})},e1={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>eW===eU||null!=e1.applyArabicShaping,isLoading:()=>eW===eT,setState(a){eW=a.pluginStatus,eX=a.pluginURL},isParsed:()=>null!=e1.applyArabicShaping&&null!=e1.processBidirectionalText&&null!=e1.processStyledBidirectionalText,getPluginURL:()=>eX};class e2{constructor(a,b){this.zoom=a,b?(this.now=b.now,this.fadeDuration=b.fadeDuration,this.zoomHistory=b.zoomHistory,this.transition=b.transition,this.pitch=b.pitch):(this.now=0,this.fadeDuration=0,this.zoomHistory=new ei,this.transition={},this.pitch=0)}isSupportedScript(a){return function(a,b){for(const c of a)if(!eQ(c.charCodeAt(0),b))return!1;return!0}(a,e1.isLoaded())}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const a=this.zoom,b=a-Math.floor(a),c=this.crossFadingFactor();return a>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:b+(1-b)*c}:{fromScale:.5,toScale:1,t:1-(1-c)*b}}}class e3{constructor(a,b){this.property=a,this.value=b,this.expression=function(a,b){if(da(a))return new dp(a,b);if(dj(a)){const c=dn(a,b);if("error"===c.result)throw Error(c.value.map(a=>`${a.key}: ${a.message}`).join(", "));return c.value}{let d=a;return"string"==typeof a&&"color"===b.type&&(d=bK.parse(a)),{kind:"constant",evaluate:()=>d}}}(void 0===b?a.specification.default:b,a.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(a,b,c){return this.property.possiblyEvaluate(this,a,b,c)}}class e4{constructor(a){this.property=a,this.value=new e3(a,void 0)}transitioned(a,b){return new e6(this.property,this.value,b,aa({},a.transition,this.transition),a.now)}untransitioned(){return new e6(this.property,this.value,null,{},0)}}class e5{constructor(a){this._properties=a,this._values=Object.create(a.defaultTransitionablePropertyValues)}getValue(a){return ak(this._values[a].value.value)}setValue(a,b){this._values.hasOwnProperty(a)||(this._values[a]=new e4(this._values[a].property)),this._values[a].value=new e3(this._values[a].property,null===b?void 0:ak(b))}getTransition(a){return ak(this._values[a].transition)}setTransition(a,b){this._values.hasOwnProperty(a)||(this._values[a]=new e4(this._values[a].property)),this._values[a].transition=ak(b)||void 0}serialize(){const a={};for(const b of Object.keys(this._values)){const c=this.getValue(b);void 0!==c&&(a[b]=c);const d=this.getTransition(b);void 0!==d&&(a[`${b}-transition`]=d)}return a}transitioned(a,b){const c=new e7(this._properties);for(const d of Object.keys(this._values))c._values[d]=this._values[d].transitioned(a,b._values[d]);return c}untransitioned(){const a=new e7(this._properties);for(const b of Object.keys(this._values))a._values[b]=this._values[b].untransitioned();return a}}class e6{constructor(a,b,c,d,f){const g=d.delay||0,h=d.duration||0;f=f||0,this.property=a,this.value=b,this.begin=f+g,this.end=this.begin+h,a.specification.transition&&(d.delay||d.duration)&&(this.prior=c)}possiblyEvaluate(a,b,c){const d=a.now||0,f=this.value.possiblyEvaluate(a,b,c),g=this.prior;if(g){if(d>this.end||this.value.isDataDriven())return this.prior=null,f;if(dd.zoomHistory.lastIntegerZoom?{from:a,to:b,other:c}:{from:c,to:b,other:a}}interpolate(a){return a}}class fd{constructor(a){this.specification=a}possiblyEvaluate(a,b,c,d){if(void 0!==a.value){if("constant"===a.expression.kind){const f=a.expression.evaluate(b,null,{},c,d);return this._calculate(f,f,f,b)}return this._calculate(a.expression.evaluate(new e2(Math.floor(b.zoom-1),b)),a.expression.evaluate(new e2(Math.floor(b.zoom),b)),a.expression.evaluate(new e2(Math.floor(b.zoom+1),b)),b)}}_calculate(a,b,c,d){return d.zoom>d.zoomHistory.lastIntegerZoom?{from:a,to:b}:{from:c,to:b}}interpolate(a){return a}}class fe{constructor(a){this.specification=a}possiblyEvaluate(a,b,c,d){return!!a.expression.evaluate(b,null,{},c,d)}interpolate(){return!1}}class ff{constructor(a){for(const b in this.properties=a,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],a){const c=a[b];c.specification.overridable&&this.overridableProperties.push(b);const d=this.defaultPropertyValues[b]=new e3(c,void 0),f=this.defaultTransitionablePropertyValues[b]=new e4(c);this.defaultTransitioningPropertyValues[b]=f.untransitioned(),this.defaultPossiblyEvaluatedValues[b]=d.possiblyEvaluate({})}}}function fg(a,b){return 256*(a=X(Math.floor(a),0,255))+X(Math.floor(b),0,255)}ec("DataDrivenProperty",fb),ec("DataConstantProperty",fa),ec("CrossFadedDataDrivenProperty",fc),ec("CrossFadedProperty",fd),ec("ColorRampProperty",fe);const fh={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class fi{constructor(a,b){this._structArray=a,this._pos1=b*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class fj{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(a,b){return a._trim(),b&&(a.isTransferred=!0,b.push(a.arrayBuffer)),{length:a.length,arrayBuffer:a.arrayBuffer}}static deserialize(a){const b=Object.create(this.prototype);return b.arrayBuffer=a.arrayBuffer,b.length=a.length,b.capacity=a.arrayBuffer.byteLength/b.bytesPerElement,b._refreshViews(),b}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(a){this.reserve(a),this.length=a}reserve(a){if(a>this.capacity){this.capacity=Math.max(a,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const b=this.uint8;this._refreshViews(),b&&this.uint8.set(b)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function fk(a,b=1){let c=0,d=0;return{members:a.map(a=>{const f=fh[a.type].BYTES_PER_ELEMENT,g=c=fl(c,Math.max(b,f)),h=a.components||1;return d=Math.max(d,f),c+=f*h,{name:a.name,type:a.type,components:h,offset:g}}),size:fl(c,Math.max(d,b)),alignment:b}}function fl(a,b){return Math.ceil(a/b)*b}class fm extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a,b){const c=this.length;return this.resize(c+1),this.emplace(c,a,b)}emplace(a,b,c){const d=2*a;return this.int16[d+0]=b,this.int16[d+1]=c,a}}fm.prototype.bytesPerElement=4,ec("StructArrayLayout2i4",fm);class fn extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a,b,c,d){const f=this.length;return this.resize(f+1),this.emplace(f,a,b,c,d)}emplace(a,b,c,d,f){const g=4*a;return this.int16[g+0]=b,this.int16[g+1]=c,this.int16[g+2]=d,this.int16[g+3]=f,a}}fn.prototype.bytesPerElement=8,ec("StructArrayLayout4i8",fn);class fo extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h){const i=this.length;return this.resize(i+1),this.emplace(i,a,b,c,d,f,g,h)}emplace(a,b,c,d,f,g,h,i){const j=6*a,k=12*a,l=3*a;return this.int16[j+0]=b,this.int16[j+1]=c,this.uint8[k+4]=d,this.uint8[k+5]=f,this.uint8[k+6]=g,this.uint8[k+7]=h,this.float32[l+2]=i,a}}fo.prototype.bytesPerElement=12,ec("StructArrayLayout2i4ub1f12",fo);class fp extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,b,c){const d=this.length;return this.resize(d+1),this.emplace(d,a,b,c)}emplace(a,b,c,d){const f=3*a;return this.float32[f+0]=b,this.float32[f+1]=c,this.float32[f+2]=d,a}}fp.prototype.bytesPerElement=12,ec("StructArrayLayout3f12",fp);class fq extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h,i,j,k){const l=this.length;return this.resize(l+1),this.emplace(l,a,b,c,d,f,g,h,i,j,k)}emplace(a,b,c,d,f,g,h,i,j,k,l){const m=10*a;return this.uint16[m+0]=b,this.uint16[m+1]=c,this.uint16[m+2]=d,this.uint16[m+3]=f,this.uint16[m+4]=g,this.uint16[m+5]=h,this.uint16[m+6]=i,this.uint16[m+7]=j,this.uint16[m+8]=k,this.uint16[m+9]=l,a}}fq.prototype.bytesPerElement=20,ec("StructArrayLayout10ui20",fq);class fr extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h,i){const j=this.length;return this.resize(j+1),this.emplace(j,a,b,c,d,f,g,h,i)}emplace(a,b,c,d,f,g,h,i,j){const k=8*a;return this.uint16[k+0]=b,this.uint16[k+1]=c,this.uint16[k+2]=d,this.uint16[k+3]=f,this.uint16[k+4]=g,this.uint16[k+5]=h,this.uint16[k+6]=i,this.uint16[k+7]=j,a}}fr.prototype.bytesPerElement=16,ec("StructArrayLayout8ui16",fr);class fs extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q){const r=this.length;return this.resize(r+1),this.emplace(r,a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q)}emplace(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r){const s=16*a;return this.int16[s+0]=b,this.int16[s+1]=c,this.int16[s+2]=d,this.int16[s+3]=f,this.uint16[s+4]=g,this.uint16[s+5]=h,this.uint16[s+6]=i,this.uint16[s+7]=j,this.int16[s+8]=k,this.int16[s+9]=l,this.int16[s+10]=m,this.int16[s+11]=n,this.int16[s+12]=o,this.int16[s+13]=p,this.int16[s+14]=q,this.int16[s+15]=r,a}}fs.prototype.bytesPerElement=32,ec("StructArrayLayout4i4ui4i4i32",fs);class ft extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(a){const b=this.length;return this.resize(b+1),this.emplace(b,a)}emplace(a,b){return this.uint32[1*a+0]=b,a}}ft.prototype.bytesPerElement=4,ec("StructArrayLayout1ul4",ft);class fu extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h,i,j,k,l,m,n){const o=this.length;return this.resize(o+1),this.emplace(o,a,b,c,d,f,g,h,i,j,k,l,m,n)}emplace(a,b,c,d,f,g,h,i,j,k,l,m,n,o){const p=20*a,q=10*a;return this.int16[p+0]=b,this.int16[p+1]=c,this.int16[p+2]=d,this.int16[p+3]=f,this.int16[p+4]=g,this.float32[q+3]=h,this.float32[q+4]=i,this.float32[q+5]=j,this.float32[q+6]=k,this.int16[p+14]=l,this.uint32[q+8]=m,this.uint16[p+18]=n,this.uint16[p+19]=o,a}}fu.prototype.bytesPerElement=40,ec("StructArrayLayout5i4f1i1ul2ui40",fu);class fv extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h){const i=this.length;return this.resize(i+1),this.emplace(i,a,b,c,d,f,g,h)}emplace(a,b,c,d,f,g,h,i){const j=8*a;return this.int16[j+0]=b,this.int16[j+1]=c,this.int16[j+2]=d,this.int16[j+4]=f,this.int16[j+5]=g,this.int16[j+6]=h,this.int16[j+7]=i,a}}fv.prototype.bytesPerElement=16,ec("StructArrayLayout3i2i2i16",fv);class fw extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f){const g=this.length;return this.resize(g+1),this.emplace(g,a,b,c,d,f)}emplace(a,b,c,d,f,g){const h=4*a,i=8*a;return this.float32[h+0]=b,this.float32[h+1]=c,this.float32[h+2]=d,this.int16[i+6]=f,this.int16[i+7]=g,a}}fw.prototype.bytesPerElement=16,ec("StructArrayLayout2f1f2i16",fw);class fx extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,b,c,d){const f=this.length;return this.resize(f+1),this.emplace(f,a,b,c,d)}emplace(a,b,c,d,f){const g=12*a,h=3*a;return this.uint8[g+0]=b,this.uint8[g+1]=c,this.float32[h+1]=d,this.float32[h+2]=f,a}}fx.prototype.bytesPerElement=12,ec("StructArrayLayout2ub2f12",fx);class fy extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,b,c){const d=this.length;return this.resize(d+1),this.emplace(d,a,b,c)}emplace(a,b,c,d){const f=3*a;return this.uint16[f+0]=b,this.uint16[f+1]=c,this.uint16[f+2]=d,a}}fy.prototype.bytesPerElement=6,ec("StructArrayLayout3ui6",fy);class fz extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v,w){const x=this.length;return this.resize(x+1),this.emplace(x,a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v,w)}emplace(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v,w,x){const y=30*a,z=15*a,A=60*a;return this.int16[y+0]=b,this.int16[y+1]=c,this.int16[y+2]=d,this.float32[z+2]=f,this.float32[z+3]=g,this.uint16[y+8]=h,this.uint16[y+9]=i,this.uint32[z+5]=j,this.uint32[z+6]=k,this.uint32[z+7]=l,this.uint16[y+16]=m,this.uint16[y+17]=n,this.uint16[y+18]=o,this.float32[z+10]=p,this.float32[z+11]=q,this.uint8[A+48]=r,this.uint8[A+49]=s,this.uint8[A+50]=u,this.uint32[z+13]=v,this.int16[y+28]=w,this.uint8[A+58]=x,a}}fz.prototype.bytesPerElement=60,ec("StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60",fz);class fA extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v,w,x,y,z,A,B,C,D,E,F){const G=this.length;return this.resize(G+1),this.emplace(G,a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v,w,x,y,z,A,B,C,D,E,F)}emplace(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v,w,x,y,z,A,B,C,D,E,F,G){const H=38*a,I=19*a;return this.int16[H+0]=b,this.int16[H+1]=c,this.int16[H+2]=d,this.float32[I+2]=f,this.float32[I+3]=g,this.int16[H+8]=h,this.int16[H+9]=i,this.int16[H+10]=j,this.int16[H+11]=k,this.int16[H+12]=l,this.int16[H+13]=m,this.uint16[H+14]=n,this.uint16[H+15]=o,this.uint16[H+16]=p,this.uint16[H+17]=q,this.uint16[H+18]=r,this.uint16[H+19]=s,this.uint16[H+20]=u,this.uint16[H+21]=v,this.uint16[H+22]=w,this.uint16[H+23]=x,this.uint16[H+24]=y,this.uint16[H+25]=z,this.uint16[H+26]=A,this.uint16[H+27]=B,this.uint16[H+28]=C,this.uint32[I+15]=D,this.float32[I+16]=E,this.float32[I+17]=F,this.float32[I+18]=G,a}}fA.prototype.bytesPerElement=76,ec("StructArrayLayout3i2f6i15ui1ul3f76",fA);class fB extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a){const b=this.length;return this.resize(b+1),this.emplace(b,a)}emplace(a,b){return this.float32[1*a+0]=b,a}}fB.prototype.bytesPerElement=4,ec("StructArrayLayout1f4",fB);class fC extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a,b,c){const d=this.length;return this.resize(d+1),this.emplace(d,a,b,c)}emplace(a,b,c,d){const f=3*a;return this.int16[f+0]=b,this.int16[f+1]=c,this.int16[f+2]=d,a}}fC.prototype.bytesPerElement=6,ec("StructArrayLayout3i6",fC);class fD extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,b,c,d,f,g,h){const i=this.length;return this.resize(i+1),this.emplace(i,a,b,c,d,f,g,h)}emplace(a,b,c,d,f,g,h,i){const j=7*a;return this.float32[j+0]=b,this.float32[j+1]=c,this.float32[j+2]=d,this.float32[j+3]=f,this.float32[j+4]=g,this.float32[j+5]=h,this.float32[j+6]=i,a}}fD.prototype.bytesPerElement=28,ec("StructArrayLayout7f28",fD);class fE extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,b,c,d){const f=this.length;return this.resize(f+1),this.emplace(f,a,b,c,d)}emplace(a,b,c,d,f){const g=6*a;return this.uint32[3*a+0]=b,this.uint16[g+2]=c,this.uint16[g+3]=d,this.uint16[g+4]=f,a}}fE.prototype.bytesPerElement=12,ec("StructArrayLayout1ul3ui12",fE);class fF extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,b){const c=this.length;return this.resize(c+1),this.emplace(c,a,b)}emplace(a,b,c){const d=2*a;return this.uint16[d+0]=b,this.uint16[d+1]=c,a}}fF.prototype.bytesPerElement=4,ec("StructArrayLayout2ui4",fF);class fG extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a){const b=this.length;return this.resize(b+1),this.emplace(b,a)}emplace(a,b){return this.uint16[1*a+0]=b,a}}fG.prototype.bytesPerElement=2,ec("StructArrayLayout1ui2",fG);class fH extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,b){const c=this.length;return this.resize(c+1),this.emplace(c,a,b)}emplace(a,b,c){const d=2*a;return this.float32[d+0]=b,this.float32[d+1]=c,a}}fH.prototype.bytesPerElement=8,ec("StructArrayLayout2f8",fH);class fI extends fj{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,b,c,d){const f=this.length;return this.resize(f+1),this.emplace(f,a,b,c,d)}emplace(a,b,c,d,f){const g=4*a;return this.float32[g+0]=b,this.float32[g+1]=c,this.float32[g+2]=d,this.float32[g+3]=f,a}}fI.prototype.bytesPerElement=16,ec("StructArrayLayout4f16",fI);class fJ extends fi{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}fJ.prototype.size=40;class fK extends fu{get(a){return new fJ(this,a)}}ec("CollisionBoxArray",fK);class fL extends fi{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(a){this._structArray.uint8[this._pos1+49]=a}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(a){this._structArray.uint8[this._pos1+50]=a}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(a){this._structArray.uint32[this._pos4+13]=a}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(a){this._structArray.uint8[this._pos1+58]=a}}fL.prototype.size=60;class fM extends fz{get(a){return new fL(this,a)}}ec("PlacedSymbolArray",fM);class fN extends fi{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+11]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+13]}get key(){return this._structArray.uint16[this._pos2+14]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+17]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+19]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+21]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+22]}get featureIndex(){return this._structArray.uint16[this._pos2+23]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+25]}get numIconVertices(){return this._structArray.uint16[this._pos2+26]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+27]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+28]}get crossTileID(){return this._structArray.uint32[this._pos4+15]}set crossTileID(a){this._structArray.uint32[this._pos4+15]=a}get textOffset0(){return this._structArray.float32[this._pos4+16]}get textOffset1(){return this._structArray.float32[this._pos4+17]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+18]}}fN.prototype.size=76;class fO extends fA{get(a){return new fN(this,a)}}ec("SymbolInstanceArray",fO);class fP extends fB{getoffsetX(a){return this.float32[1*a+0]}}ec("GlyphOffsetArray",fP);class fQ extends fC{getx(a){return this.int16[3*a+0]}gety(a){return this.int16[3*a+1]}gettileUnitDistanceFromAnchor(a){return this.int16[3*a+2]}}ec("SymbolLineVertexArray",fQ);class fR extends fi{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}fR.prototype.size=12;class fS extends fE{get(a){return new fR(this,a)}}ec("FeatureIndexArray",fS);class fT extends fi{get a_centroid_pos0(){return this._structArray.uint16[this._pos2+0]}get a_centroid_pos1(){return this._structArray.uint16[this._pos2+1]}}fT.prototype.size=4;class fU extends fF{get(a){return new fT(this,a)}}ec("FillExtrusionCentroidArray",fU);const fV=fk([{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},]),fW=fk([{name:"a_dash_to",components:4,type:"Uint16"},{name:"a_dash_from",components:4,type:"Uint16"},]);var fX=bI(function(a){a.exports=function(a,b){var c,d,f,g,h,i,j,k;for(d=a.length-(c=3&a.length),f=b,h=3432918353,i=461845907,k=0;k>>16)*h&65535)<<16)&4294967295)<<15|j>>>17))*i+(((j>>>16)*i&65535)<<16)&4294967295)<<13|f>>>19))+((5*(f>>>16)&65535)<<16)&4294967295))+((58964+(g>>>16)&65535)<<16);switch(j=0,c){case 3:j^=(255&a.charCodeAt(k+2))<<16;case 2:j^=(255&a.charCodeAt(k+1))<<8;case 1:f^=j=(65535&(j=(j=(65535&(j^=255&a.charCodeAt(k)))*h+(((j>>>16)*h&65535)<<16)&4294967295)<<15|j>>>17))*i+(((j>>>16)*i&65535)<<16)&4294967295}return f^=a.length,f=2246822507*(65535&(f^=f>>>16))+((2246822507*(f>>>16)&65535)<<16)&4294967295,f=3266489909*(65535&(f^=f>>>13))+((3266489909*(f>>>16)&65535)<<16)&4294967295,(f^=f>>>16)>>>0}}),fY=bI(function(a){a.exports=function(a,b){for(var c,d=a.length,f=b^d,g=0;d>=4;)c=1540483477*(65535&(c=255&a.charCodeAt(g)|(255&a.charCodeAt(++g))<<8|(255&a.charCodeAt(++g))<<16|(255&a.charCodeAt(++g))<<24))+((1540483477*(c>>>16)&65535)<<16),f=1540483477*(65535&f)+((1540483477*(f>>>16)&65535)<<16)^(c=1540483477*(65535&(c^=c>>>24))+((1540483477*(c>>>16)&65535)<<16)),d-=4,++g;switch(d){case 3:f^=(255&a.charCodeAt(g+2))<<16;case 2:f^=(255&a.charCodeAt(g+1))<<8;case 1:f=1540483477*(65535&(f^=255&a.charCodeAt(g)))+((1540483477*(f>>>16)&65535)<<16)}return f=1540483477*(65535&(f^=f>>>13))+((1540483477*(f>>>16)&65535)<<16),(f^=f>>>15)>>>0}}),fZ=fX;fZ.murmur3=fX,fZ.murmur2=fY;class f${constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(a,b,c,d){this.ids.push(f_(a)),this.positions.push(b,c,d)}getPositions(a){const b=f_(a);let c=0,d=this.ids.length-1;for(;c>1;this.ids[f]>=b?d=f:c=f+1}const g=[];for(;this.ids[c]===b;)g.push({index:this.positions[3*c],start:this.positions[3*c+1],end:this.positions[3*c+2]}),c++;return g}static serialize(a,b){const c=new Float64Array(a.ids),d=new Uint32Array(a.positions);return f0(c,d,0,c.length-1),b&&b.push(c.buffer,d.buffer),{ids:c,positions:d}}static deserialize(a){const b=new f$;return b.ids=a.ids,b.positions=a.positions,b.indexed=!0,b}}function f_(a){const b=+a;return!isNaN(b)&&Number.MIN_SAFE_INTEGER<=b&&b<=Number.MAX_SAFE_INTEGER?b:fZ(String(a))}function f0(a,b,c,d){for(;c>1];let g=c-1,h=d+1;for(;;){do g++;while(a[g]f)if(g>=h)break;f1(a,g,h),f1(b,3*g,3*h),f1(b,3*g+1,3*h+1),f1(b,3*g+2,3*h+2)}h-c`u_${a}`),this.type=c}setUniform(a,b,c){a.set(c.constantOr(this.value))}getBinding(a,b,c){return"color"===this.type?new f5(a,b):new f3(a,b)}}class gb{constructor(a,b){this.uniformNames=b.map(a=>`u_${a}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(a,b){this.pixelRatioFrom=b.pixelRatio,this.pixelRatioTo=a.pixelRatio,this.patternFrom=b.tl.concat(b.br),this.patternTo=a.tl.concat(a.br)}setUniform(a,b,c,d){const f="u_pattern_to"===d||"u_dash_to"===d?this.patternTo:"u_pattern_from"===d||"u_dash_from"===d?this.patternFrom:"u_pixel_ratio_to"===d?this.pixelRatioTo:"u_pixel_ratio_from"===d?this.pixelRatioFrom:null;f&&a.set(f)}getBinding(a,b,c){return"u_pattern_from"===c||"u_pattern_to"===c||"u_dash_from"===c||"u_dash_to"===c?new f4(a,b):new f3(a,b)}}class gc{constructor(a,b,c,d){this.expression=a,this.type=c,this.maxValue=0,this.paintVertexAttributes=b.map(a=>({name:`a_${a}`,type:"Float32",components:"color"===c?2:1,offset:0})),this.paintVertexArray=new d}populatePaintArray(a,b,c,d,f,g){const h=this.paintVertexArray.length,i=this.expression.evaluate(new e2(0),b,{},f,d,g);this.paintVertexArray.resize(a),this._setPaintValue(h,a,i)}updatePaintArray(a,b,c,d,f){const g=this.expression.evaluate({zoom:0},c,d,void 0,f);this._setPaintValue(a,b,g)}_setPaintValue(a,b,c){if("color"===this.type){const d=f9(c);for(let f=a;f`u_${a}_t`),this.type=c,this.useIntegerZoom=d,this.zoom=f,this.maxValue=0,this.paintVertexAttributes=b.map(a=>({name:`a_${a}`,type:"Float32",components:"color"===c?4:2,offset:0})),this.paintVertexArray=new g}populatePaintArray(a,b,c,d,f,g){const h=this.expression.evaluate(new e2(this.zoom),b,{},f,d,g),i=this.expression.evaluate(new e2(this.zoom+1),b,{},f,d,g),j=this.paintVertexArray.length;this.paintVertexArray.resize(a),this._setPaintValue(j,a,h,i)}updatePaintArray(a,b,c,d,f){const g=this.expression.evaluate({zoom:this.zoom},c,d,void 0,f),h=this.expression.evaluate({zoom:this.zoom+1},c,d,void 0,f);this._setPaintValue(a,b,g,h)}_setPaintValue(a,b,c,d){if("color"===this.type){const f=f9(c),g=f9(d);for(let h=a;h!0){this.binders={},this._buffers=[];const d=[];for(const f in a.paint._values){if(!c(f))continue;const g=a.paint.get(f);if(!(g instanceof e8&&c6(g.property.specification)))continue;const h=gi(f,a.type),i=g.value,j=g.property.specification.type,k=g.property.useIntegerZoom,l=g.property.specification["property-type"],m="cross-faded"===l||"cross-faded-data-driven"===l,n="line-dasharray"===String(f)&&"constant"!==a.layout.get("line-cap").value.kind;if("constant"!==i.kind||n){if("source"===i.kind||n||m){const o=gl(f,j,"source");this.binders[f]=m?new ge(i,h,j,k,b,o,a.id):new gc(i,h,j,o),d.push(`/a_${f}`)}else{const p=gl(f,j,"composite");this.binders[f]=new gd(i,h,j,k,b,p),d.push(`/z_${f}`)}}else this.binders[f]=m?new gb(i.value,h):new ga(i.value,h,j),d.push(`/u_${f}`)}this.cacheKey=d.sort().join("")}getMaxValue(a){const b=this.binders[a];return b instanceof gc||b instanceof gd?b.maxValue:0}populatePaintArrays(a,b,c,d,f,g){for(const h in this.binders){const i=this.binders[h];(i instanceof gc||i instanceof gd||i instanceof ge)&&i.populatePaintArray(a,b,c,d,f,g)}}setConstantPatternPositions(a,b){for(const c in this.binders){const d=this.binders[c];d instanceof gb&&d.setConstantPatternPositions(a,b)}}updatePaintArrays(a,b,c,d,f,g){let h=!1;for(const i in a){const j=b.getPositions(i);for(const k of j){const l=c.feature(k.index);for(const m in this.binders){const n=this.binders[m];if((n instanceof gc||n instanceof gd||n instanceof ge)&& !0===n.expression.isStateDependent){const o=d.paint.get(m);n.expression=o.value,n.updatePaintArray(k.start,k.end,l,a[i],f,g),h=!0}}}}return h}defines(){const a=[];for(const b in this.binders){const c=this.binders[b];(c instanceof ga||c instanceof gb)&&a.push(...c.uniformNames.map(a=>`#define HAS_UNIFORM_${a}`))}return a}getBinderAttributes(){const a=[];for(const b in this.binders){const c=this.binders[b];if(c instanceof gc||c instanceof gd||c instanceof ge)for(let d=0;d!0){for(const d of(this.programConfigurations={},a))this.programConfigurations[d.id]=new gf(d,b,c);this.needsUpload=!1,this._featureMap=new f$,this._bufferOffset=0}populatePaintArrays(a,b,c,d,f,g,h){for(const i in this.programConfigurations)this.programConfigurations[i].populatePaintArrays(a,b,d,f,g,h);void 0!==b.id&&this._featureMap.add(b.id,c,this._bufferOffset,a),this._bufferOffset=a,this.needsUpload=!0}updatePaintArrays(a,b,c,d,f){for(const g of c)this.needsUpload=this.programConfigurations[g.id].updatePaintArrays(a,this._featureMap,b,g,d,f)||this.needsUpload}get(a){return this.programConfigurations[a]}upload(a){if(this.needsUpload){for(const b in this.programConfigurations)this.programConfigurations[b].upload(a);this.needsUpload=!1}}destroy(){for(const a in this.programConfigurations)this.programConfigurations[a].destroy()}}const gh={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from",],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from",],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from",],"line-dasharray":["dash_to","dash_from"]};function gi(a,b){return gh[a]||[a.replace(`${b}-`,"").replace(/-/g,"_"),]}const gj={"line-pattern":{source:fq,composite:fq},"fill-pattern":{source:fq,composite:fq},"fill-extrusion-pattern":{source:fq,composite:fq},"line-dasharray":{source:fr,composite:fr}},gk={color:{source:fH,composite:fI},number:{source:fB,composite:fH}};function gl(a,b,c){const d=gj[a];return d&&d[c]||gk[b][c]}ec("ConstantBinder",ga),ec("CrossFadedConstantBinder",gb),ec("SourceExpressionBinder",gc),ec("CrossFadedCompositeBinder",ge),ec("CompositeExpressionBinder",gd),ec("ProgramConfiguration",gf,{omit:["_buffers"]}),ec("ProgramConfigurationSet",gg);const gm="-transition";class gn extends bj{constructor(a,b){if(super(),this.id=a.id,this.type=a.type,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,"custom"!==a.type&&(this.metadata=a.metadata,this.minzoom=a.minzoom,this.maxzoom=a.maxzoom,"background"!==a.type&&"sky"!==a.type&&(this.source=a.source,this.sourceLayer=a["source-layer"],this.filter=a.filter),b.layout&&(this._unevaluatedLayout=new class{constructor(a){this._properties=a,this._values=Object.create(a.defaultPropertyValues)}getValue(a){return ak(this._values[a].value)}setValue(a,b){this._values[a]=new e3(this._values[a].property,null===b?void 0:ak(b))}serialize(){const a={};for(const b of Object.keys(this._values)){const c=this.getValue(b);void 0!==c&&(a[b]=c)}return a}possiblyEvaluate(a,b,c){const d=new e9(this._properties);for(const f of Object.keys(this._values))d._values[f]=this._values[f].possiblyEvaluate(a,b,c);return d}}(b.layout)),b.paint)){for(const c in this._transitionablePaint=new e5(b.paint),a.paint)this.setPaintProperty(c,a.paint[c],{validate:!1});for(const d in a.layout)this.setLayoutProperty(d,a.layout[d],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new e9(b.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(a){return"visibility"===a?this.visibility:this._unevaluatedLayout.getValue(a)}setLayoutProperty(a,b,c={}){null!=b&&this._validate(d5,`layers.${this.id}.layout.${a}`,a,b,c)||("visibility"!==a?this._unevaluatedLayout.setValue(a,b):this.visibility=b)}getPaintProperty(a){return ah(a,gm)?this._transitionablePaint.getTransition(a.slice(0,-gm.length)):this._transitionablePaint.getValue(a)}setPaintProperty(a,b,c={}){if(null!=b&&this._validate(d4,`layers.${this.id}.paint.${a}`,a,b,c))return!1;if(ah(a,gm))return this._transitionablePaint.setTransition(a.slice(0,-gm.length),b||void 0),!1;{const d=this._transitionablePaint._values[a],f="cross-faded-data-driven"===d.property.specification["property-type"],g=d.value.isDataDriven(),h=d.value;this._transitionablePaint.setValue(a,b),this._handleSpecialPaintPropertyUpdate(a);const i=this._transitionablePaint._values[a].value;return i.isDataDriven()||g||f||this._handleOverridablePaintPropertyUpdate(a,h,i)}}_handleSpecialPaintPropertyUpdate(a){}getProgramIds(){return null}getProgramConfiguration(a){return null}_handleOverridablePaintPropertyUpdate(a,b,c){return!1}isHidden(a){return!!(this.minzoom&&a=this.maxzoom)||"none"===this.visibility}updateTransitions(a){this._transitioningPaint=this._transitionablePaint.transitioned(a,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(a,b){a.getCrossfadeParameters&&(this._crossfadeParameters=a.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(a,void 0,b)),this.paint=this._transitioningPaint.possiblyEvaluate(a,void 0,b)}serialize(){const a={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(a.layout=a.layout||{},a.layout.visibility=this.visibility),aj(a,(a,b)=>!(void 0===a||"layout"===b&&!Object.keys(a).length||"paint"===b&&!Object.keys(a).length))}_validate(a,b,c,d,f={}){return(!f|| !1!==f.validate)&&d6(this,a.call(d1,{key:b,layerType:this.type,objectKey:c,value:d,styleSpec:bk,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const a in this.paint._values){const b=this.paint.get(a);if(b instanceof e8&&c6(b.property.specification)&&("source"===b.value.kind||"composite"===b.value.kind)&&b.value.isStateDependent)return!0}return!1}compileFilter(){this._filterCompiled||(this._featureFilter=dz(this.filter),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}}const go=fk([{name:"a_pos",components:2,type:"Int16"},],4),{members:gp}=go;class gq{constructor(a=[]){this.segments=a}prepareSegment(a,b,c,d){let f=this.segments[this.segments.length-1];return a>gq.MAX_VERTEX_ARRAY_LENGTH&&am(`Max vertices per segment is ${gq.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${a}`),(!f||f.vertexLength+a>gq.MAX_VERTEX_ARRAY_LENGTH||f.sortKey!==d)&&(f={vertexOffset:b.length,primitiveOffset:c.length,vertexLength:0,primitiveLength:0},void 0!==d&&(f.sortKey=d),this.segments.push(f)),f}get(){return this.segments}destroy(){for(const a of this.segments)for(const b in a.vaos)a.vaos[b].destroy()}static simpleSegment(a,b,c,d){return new gq([{vertexOffset:a,primitiveOffset:b,vertexLength:c,primitiveLength:d,vaos:{},sortKey:0},])}}gq.MAX_VERTEX_ARRAY_LENGTH=65535,ec("SegmentVector",gq);class gr{constructor(a,b){a&&(b?this.setSouthWest(a).setNorthEast(b):4===a.length?this.setSouthWest([a[0],a[1],]).setNorthEast([a[2],a[3]]):this.setSouthWest(a[0]).setNorthEast(a[1]))}setNorthEast(a){return this._ne=a instanceof gs?new gs(a.lng,a.lat):gs.convert(a),this}setSouthWest(a){return this._sw=a instanceof gs?new gs(a.lng,a.lat):gs.convert(a),this}extend(a){const b=this._sw,c=this._ne;let d,f;if(a instanceof gs)d=a,f=a;else{if(!(a instanceof gr))return Array.isArray(a)?4===a.length||a.every(Array.isArray)?this.extend(gr.convert(a)):this.extend(gs.convert(a)):this;if(d=a._sw,f=a._ne,!d||!f)return this}return b||c?(b.lng=Math.min(d.lng,b.lng),b.lat=Math.min(d.lat,b.lat),c.lng=Math.max(f.lng,c.lng),c.lat=Math.max(f.lat,c.lat)):(this._sw=new gs(d.lng,d.lat),this._ne=new gs(f.lng,f.lat)),this}getCenter(){return new gs((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new gs(this.getWest(),this.getNorth())}getSouthEast(){return new gs(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(a){const{lng:b,lat:c}=gs.convert(a);let d=this._sw.lng<=b&&b<=this._ne.lng;return this._sw.lng>this._ne.lng&&(d=this._sw.lng>=b&&b>=this._ne.lng),this._sw.lat<=c&&c<=this._ne.lat&&d}static convert(a){return!a||a instanceof gr?a:new gr(a)}}class gs{constructor(a,b){if(isNaN(a)||isNaN(b))throw Error(`Invalid LngLat object: (${a}, ${b})`);if(this.lng=+a,this.lat=+b,this.lat>90||this.lat< -90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new gs(Z(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(a){const b=Math.PI/180,c=this.lat*b,d=a.lat*b,f=Math.sin(c)*Math.sin(d)+Math.cos(c)*Math.cos(d)*Math.cos((a.lng-this.lng)*b);return 6371008.8*Math.acos(Math.min(f,1))}toBounds(a=0){const b=360*a/40075017,c=b/Math.cos(Math.PI/180*this.lat);return new gr(new gs(this.lng-c,this.lat-b),new gs(this.lng+c,this.lat+b))}static convert(a){if(a instanceof gs)return a;if(Array.isArray(a)&&(2===a.length||3===a.length))return new gs(Number(a[0]),Number(a[1]));if(!Array.isArray(a)&&"object"==typeof a&&null!==a)return new gs(Number("lng"in a?a.lng:a.lon),Number(a.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}const gt=2*Math.PI*6371008.8;function gu(a){return gt*Math.cos(a*Math.PI/180)}function gv(a){return(180+a)/360}function gw(a){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+a*Math.PI/360)))/360}function gx(a,b){return a/gu(b)}function gy(a){return 360*a-180}function gz(a){return 360/Math.PI*Math.atan(Math.exp((180-360*a)*Math.PI/180))-90}function gA(a,b){return a*gu(gz(b))}class gB{constructor(a,b,c=0){this.x=+a,this.y=+b,this.z=+c}static fromLngLat(a,b=0){const c=gs.convert(a);return new gB(gv(c.lng),gw(c.lat),gx(b,c.lat))}toLngLat(){return new gs(gy(this.x),gz(this.y))}toAltitude(){return gA(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/gt*(1/Math.cos(gz(this.y)*Math.PI/180))}}function gC(a,b,c,d,f,h,i,j,k){const l=(b+d)/2,m=(c+f)/2,n=new g(l,m);j(n),function(a,b,c,d,f,g){const h=c-f,i=d-g;return Math.abs((d-b)*h-(c-a)*i)/Math.hypot(h,i)}(n.x,n.y,h.x,h.y,i.x,i.y)>=k?(gC(a,b,c,l,m,h,n,j,k),gC(a,l,m,d,f,n,i,j,k)):a.push(i)}function gD(a,b,c){const d=[];let f,g,h;for(const i of a){const{x:j,y:k}=i;b(i),h?gC(d,f,g,j,k,h,i,b,c):d.push(i),f=j,g=k,h=i}return d}function gE(a,b){const c=Math.round(a.x*b),d=Math.round(a.y*b);return a.x=X(c,-16384,16383),a.y=X(d,-16384,16383),(ca.x+1||da.y+1)&&am("Geometry exceeds allowed extent, reduce your vector tile buffer size"),a}function gF(a,b,c){const d=a.loadGeometry(),f=a.extent,g=8192/f;if(b&&c&&c.projection.isReprojectedInTileSpace){const h=1<{const c=gy((b.x+a.x/f)/h),d=gz((b.y+a.y/f)/h),g=l.project(c,d);a.x=(g.x*i-j)*f,a.y=(g.y*i-k)*f};for(let n=0;n=f||p.y<0||p.y>=f||(m(p),o.push(p));d[n]=o}}for(const q of d)for(const r of q)gE(r,g);return d}function gG(a,b){return{type:a.type,id:a.id,properties:a.properties,geometry:b?gF(a):[]}}function gH(a,b,c,d,f){a.emplaceBack(2*b+(d+1)/2,2*c+(f+1)/2)}class gI{constructor(a){this.zoom=a.zoom,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(a=>a.id),this.index=a.index,this.hasPattern=!1,this.layoutVertexArray=new fm,this.indexArray=new fy,this.segments=new gq,this.programConfigurations=new gg(a.layers,a.zoom),this.stateDependentLayerIds=this.layers.filter(a=>a.isStateDependent()).map(a=>a.id)}populate(a,b,c,d){const f=this.layers[0],g=[];let h=null;for(const{feature:i,id:j,index:k,sourceLayerIndex:l}of("circle"===f.type&&(h=f.layout.get("circle-sort-key")),a)){const m=this.layers[0]._featureFilter.needGeometry,n=gG(i,m);if(!this.layers[0]._featureFilter.filter(new e2(this.zoom),n,c))continue;const o=h?h.evaluate(n,{},c):void 0,p={id:j,properties:i.properties,type:i.type,sourceLayerIndex:l,index:k,geometry:m?n.geometry:gF(i,c,d),patterns:{},sortKey:o};g.push(p)}for(const q of(h&&g.sort((a,b)=>a.sortKey-b.sortKey),g)){const{geometry:r,index:s,sourceLayerIndex:u}=q,v=a[s].feature;this.addFeature(q,r,s,b.availableImages,c),b.featureIndex.insert(v,r,s,u,this.index)}}update(a,b,c,d){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(a,b,this.stateDependentLayers,c,d)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(a){this.uploaded||(this.layoutVertexBuffer=a.createVertexBuffer(this.layoutVertexArray,gp),this.indexBuffer=a.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(a),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(a,b,c,d,f){for(const g of b)for(const h of g){const i=h.x,j=h.y;if(i<0||i>=8192||j<0||j>=8192)continue;const k=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,a.sortKey),l=k.vertexLength;gH(this.layoutVertexArray,i,j,-1,-1),gH(this.layoutVertexArray,i,j,1,-1),gH(this.layoutVertexArray,i,j,1,1),gH(this.layoutVertexArray,i,j,-1,1),this.indexArray.emplaceBack(l,l+1,l+2),this.indexArray.emplaceBack(l,l+3,l+2),k.vertexLength+=4,k.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,a,c,{},d,f)}}function gJ(a,b){for(let c=0;c1){if(gN(a,b))return!0;for(let d=0;d1?c:c.sub(b)._mult(f)._add(b))}function gR(a,b){let c,d,f,g=!1;for(let h=0;hb.y!=f.y>b.y&&b.x<(f.x-d.x)*(b.y-d.y)/(f.y-d.y)+d.x&&(g=!g)}return g}function gS(a,b){let c=!1;for(let d=0,f=a.length-1;db.y!=h.y>b.y&&b.x<(h.x-g.x)*(b.y-g.y)/(h.y-g.y)+g.x&&(c=!c)}return c}function gT(a,b,c,d,f){for(const h of a)if(b<=h.x&&c<=h.y&&d>=h.x&&f>=h.y)return!0;const i=[new g(b,c),new g(b,f),new g(d,f),new g(d,c),];if(a.length>2){for(const j of i)if(gS(a,j))return!0}for(let k=0;kf.x&&b.x>f.x||a.yf.y&&b.y>f.y)return!1;const g=an(a,b,c[0]);return g!==an(a,b,c[1])||g!==an(a,b,c[2])||g!==an(a,b,c[3])}function gV(a,b,c){const d=b.paint.get(a).value;return"constant"===d.kind?d.value:c.programConfigurations.get(b.id).getMaxValue(a)}function gW(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1])}function gX(a,b,c,d,f){if(!b[0]&&!b[1])return a;const h=g.convert(b)._mult(f);"viewport"===c&&h._rotate(-d);const i=[];for(let j=0;j{var g,h,i;const j=K([],c,a),k=1/j[3]/b*f;return g=j,h=j,i=[k,k,d?1/j[3]:k,k],g[0]=h[0]*i[0],g[1]=h[1]*i[1],g[2]=h[2]*i[2],g[3]=h[3]*i[3],g}),h=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5],].map(a=>{const b=D([],F([],J([],g[a[0]],g[a[1]]),J([],g[a[2]],g[a[1]]))),c=-E(b,g[a[1]]);return b.concat(c)});return new g_(g,h)}}class g0{constructor(a,b){this.min=a,this.max=b,this.center=B([],x([],this.min,this.max),.5)}quadrant(a){const b=[a%2==0,a<2],c=u(this.min),d=u(this.max);for(let f=0;f=0;if(0===g)return 0;g!==b.length&&(c=!1)}if(c)return 2;for(let i=0;i<3;i++){let j=Number.MAX_VALUE,k=-Number.MAX_VALUE;for(let l=0;lthis.max[i]-this.min[i])return 0}return 1}}function g1(a,b,c,d,f,g,h,i,j){if(g&&a.queryGeometry.isAboveHorizon)return!1;for(const k of(g&&(j*=a.pixelToTileUnitsFactor),b))for(const l of k){const m=l.add(i),n=f&&c.elevation?c.elevation.exaggeration()*f.getElevationAt(m.x,m.y,!0):0,o=g?m:g2(m,n,d),p=g?a.tilespaceRays.map(a=>g5(a,n)):a.queryGeometry.screenGeometry,q=K([],[l.x,l.y,n,1],d);if(!h&&g?j*=q[3]/c.cameraToCenterDistance:h&&!g&&(j*=c.cameraToCenterDistance/q[3]),gK(p,o,j))return!0}return!1}function g2(a,b,c){const d=K([],[a.x,a.y,b,1],c);return new g(d[0]/d[3],d[1]/d[3])}const g3=w(0,0,0),g4=w(0,0,1);function g5(a,b){const c=s();return g3[2]=b,a.intersectsPlane(g3,g4,c),new g(c[0],c[1])}class g6 extends gI{}function g7(a,{width:b,height:c},d,f){if(f){if(f instanceof Uint8ClampedArray)f=new Uint8Array(f.buffer);else if(f.length!==b*c*d)throw RangeError("mismatched image size")}else f=new Uint8Array(b*c*d);return a.width=b,a.height=c,a.data=f,a}function g8(a,{width:b,height:c},d){if(b===a.width&&c===a.height)return;const f=g7({},{width:b,height:c},d);g9(a,f,{x:0,y:0},{x:0,y:0},{width:Math.min(a.width,b),height:Math.min(a.height,c)},d),a.width=b,a.height=c,a.data=f.data}function g9(a,b,c,d,f,g){if(0===f.width||0===f.height)return b;if(f.width>a.width||f.height>a.height||c.x>a.width-f.width||c.y>a.height-f.height)throw RangeError("out of range source coordinates for image copy");if(f.width>b.width||f.height>b.height||d.x>b.width-f.width||d.y>b.height-f.height)throw RangeError("out of range destination coordinates for image copy");const h=a.data,i=b.data;for(let j=0;j{b[a.evaluationKey]=g;const h=a.expression.evaluate(b);f.data[c+d+0]=Math.floor(255*h.r/h.a),f.data[c+d+1]=Math.floor(255*h.g/h.a),f.data[c+d+2]=Math.floor(255*h.b/h.a),f.data[c+d+3]=Math.floor(255*h.a)};if(a.clips)for(let h=0,i=0;h80*c){d=g=a[0],f=h=a[1];for(var p=c;pg&&(g=i),j>h&&(h=j);k=0!==(k=Math.max(g-d,h-f))?1/k:0}return hl(n,o,c,d,f,k),o}function hj(a,b,c,d,f){var g,h;if(f===hH(a,b,c,d)>0)for(g=b;g=b;g-=d)h=hE(g,a[g],a[g+1],h);return h&&hy(h,h.next)&&(hF(h),h=h.next),h}function hk(a,b){if(!a)return a;b||(b=a);var c,d=a;do if(c=!1,d.steiner|| !hy(d,d.next)&&0!==hx(d.prev,d,d.next))d=d.next;else{if(hF(d),(d=b=d.prev)===d.next)break;c=!0}while(c||d!==b)return b}function hl(a,b,c,d,f,g,h){if(a){!h&&g&&function(a,b,c,d){var f=a;do null===f.z&&(f.z=ht(f.x,f.y,b,c,d)),f.prevZ=f.prev,f.nextZ=f.next,f=f.next;while(f!==a)f.prevZ.nextZ=null,f.prevZ=null,function(a){var b,c,d,f,g,h,i,j,k=1;do{for(c=a,a=null,g=null,h=0;c;){for(h++,d=c,i=0,b=0;b0||j>0&&d;)0!==i&&(0===j||!d||c.z<=d.z)?(f=c,c=c.nextZ,i--):(f=d,d=d.nextZ,j--),g?g.nextZ=f:a=f,f.prevZ=g,g=f;c=d}g.nextZ=null,k*=2}while(h>1)}(f)}(a,d,f,g);for(var i,j,k=a;a.prev!==a.next;)if(i=a.prev,j=a.next,g?hn(a,d,f,g):hm(a))b.push(i.i/c),b.push(a.i/c),b.push(j.i/c),hF(a),a=j.next,k=j.next;else if((a=j)===k){h?1===h?hl(a=ho(hk(a),b,c),b,c,d,f,g,2):2===h&&hp(a,b,c,d,f,g):hl(hk(a),b,c,d,f,g,1);break}}}function hm(a){var b=a.prev,c=a,d=a.next;if(hx(b,c,d)>=0)return!1;for(var f=a.next.next;f!==a.prev;){if(hv(b.x,b.y,c.x,c.y,d.x,d.y,f.x,f.y)&&hx(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function hn(a,b,c,d){var f=a.prev,g=a,h=a.next;if(hx(f,g,h)>=0)return!1;for(var i=f.x>g.x?f.x>h.x?f.x:h.x:g.x>h.x?g.x:h.x,j=f.y>g.y?f.y>h.y?f.y:h.y:g.y>h.y?g.y:h.y,k=ht(f.x=k&&n&&n.z<=l;){if(m!==a.prev&&m!==a.next&&hv(f.x,f.y,g.x,g.y,h.x,h.y,m.x,m.y)&&hx(m.prev,m,m.next)>=0||(m=m.prevZ,n!==a.prev&&n!==a.next&&hv(f.x,f.y,g.x,g.y,h.x,h.y,n.x,n.y)&&hx(n.prev,n,n.next)>=0))return!1;n=n.nextZ}for(;m&&m.z>=k;){if(m!==a.prev&&m!==a.next&&hv(f.x,f.y,g.x,g.y,h.x,h.y,m.x,m.y)&&hx(m.prev,m,m.next)>=0)return!1;m=m.prevZ}for(;n&&n.z<=l;){if(n!==a.prev&&n!==a.next&&hv(f.x,f.y,g.x,g.y,h.x,h.y,n.x,n.y)&&hx(n.prev,n,n.next)>=0)return!1;n=n.nextZ}return!0}function ho(a,b,c){var d=a;do{var f=d.prev,g=d.next.next;!hy(f,g)&&hz(f,d,d.next,g)&&hC(f,g)&&hC(g,f)&&(b.push(f.i/c),b.push(d.i/c),b.push(g.i/c),hF(d),hF(d.next),d=a=g),d=d.next}while(d!==a)return hk(d)}function hp(a,b,c,d,f,g){var h=a;do{for(var i=h.next.next;i!==h.prev;){if(h.i!==i.i&&hw(h,i)){var j=hD(h,i);return h=hk(h,h.next),j=hk(j,j.next),hl(h,b,c,d,f,g),void hl(j,b,c,d,f,g)}i=i.next}h=h.next}while(h!==a)}function hq(a,b){return a.x-b.x}function hr(a,b){var c=function(a,b){var c,d=b,f=a.x,g=a.y,h=-1/0;do{if(g<=d.y&&g>=d.next.y&&d.next.y!==d.y){var i=d.x+(g-d.y)*(d.next.x-d.x)/(d.next.y-d.y);if(i<=f&&i>h){if(h=i,i===f){if(g===d.y)return d;if(g===d.next.y)return d.next}c=d.x=d.x&&d.x>=l&&f!==d.x&&hv(gc.x||d.x===c.x&&hs(c,d)))&&(c=d,n=j)),d=d.next;while(d!==k)return c}(a,b);if(!c)return b;var d=hD(c,a),f=hk(c,c.next);return hk(d,d.next),b===c?f:b}function hs(a,b){return 0>hx(a.prev,a,b.prev)&&0>hx(b.next,a,a.next)}function ht(a,b,c,d,f){return(a=1431655765&((a=858993459&((a=252645135&((a=16711935&((a=32767*(a-c)*f)|a<<8))|a<<4))|a<<2))|a<<1))|(b=1431655765&((b=858993459&((b=252645135&((b=16711935&((b=32767*(b-d)*f)|b<<8))|b<<4))|b<<2))|b<<1))<<1}function hu(a){var b=a,c=a;do(b.x=0&&(a-h)*(d-i)-(c-h)*(b-i)>=0&&(c-h)*(g-i)-(f-h)*(d-i)>=0}function hw(a,b){return a.next.i!==b.i&&a.prev.i!==b.i&&!function(a,b){var c=a;do{if(c.i!==a.i&&c.next.i!==a.i&&c.i!==b.i&&c.next.i!==b.i&&hz(c,c.next,a,b))return!0;c=c.next}while(c!==a)return!1}(a,b)&&(hC(a,b)&&hC(b,a)&&function(a,b){var c=a,d=!1,f=(a.x+b.x)/2,g=(a.y+b.y)/2;do c.y>g!=c.next.y>g&&c.next.y!==c.y&&f<(c.next.x-c.x)*(g-c.y)/(c.next.y-c.y)+c.x&&(d=!d),c=c.next;while(c!==a)return d}(a,b)&&(hx(a.prev,a,b.prev)||hx(a,b.prev,b))||hy(a,b)&&hx(a.prev,a,a.next)>0&&hx(b.prev,b,b.next)>0)}function hx(a,b,c){return(b.y-a.y)*(c.x-b.x)-(b.x-a.x)*(c.y-b.y)}function hy(a,b){return a.x===b.x&&a.y===b.y}function hz(a,b,c,d){var f=hB(hx(a,b,c)),g=hB(hx(a,b,d)),h=hB(hx(c,d,a)),i=hB(hx(c,d,b));return f!==g&&h!==i||!(0!==f||!hA(a,c,b))||!(0!==g||!hA(a,d,b))||!(0!==h||!hA(c,a,d))||!(0!==i||!hA(c,b,d))}function hA(a,b,c){return b.x<=Math.max(a.x,c.x)&&b.x>=Math.min(a.x,c.x)&&b.y<=Math.max(a.y,c.y)&&b.y>=Math.min(a.y,c.y)}function hB(a){return a>0?1:a<0?-1:0}function hC(a,b){return 0>hx(a.prev,a,a.next)?hx(a,b,a.next)>=0&&hx(a,a.prev,b)>=0:0>hx(a,b,a.prev)||0>hx(a,a.next,b)}function hD(a,b){var c=new hG(a.i,a.x,a.y),d=new hG(b.i,b.x,b.y),f=a.next,g=b.prev;return a.next=b,b.prev=a,c.next=f,f.prev=c,d.next=c,c.prev=d,g.next=d,d.prev=g,d}function hE(a,b,c,d){var f=new hG(a,b,c);return d?(f.next=d.next,f.prev=d,d.next.prev=f,d.next=f):(f.prev=f,f.next=f),f}function hF(a){a.next.prev=a.prev,a.prev.next=a.next,a.prevZ&&(a.prevZ.nextZ=a.nextZ),a.nextZ&&(a.nextZ.prevZ=a.prevZ)}function hG(a,b,c){this.i=a,this.x=b,this.y=c,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function hH(a,b,c,d){for(var f=0,g=b,h=c-d;gc;){if(d-c>600){var g=d-c+1,h=b-c+1,i=Math.log(g),j=.5*Math.exp(2*i/3),k=.5*Math.sqrt(i*j*(g-j)/g)*(h-g/2<0?-1:1);hJ(a,b,Math.max(c,Math.floor(b-h*j/g+k)),Math.min(d,Math.floor(b+(g-h)*j/g+k)),f)}var l=a[b],m=c,n=d;for(hK(a,c,b),f(a[d],l)>0&&hK(a,c,d);mf(a[m],l);)m++;for(;f(a[n],l)>0;)n--}0===f(a[c],l)?hK(a,c,n):hK(a,++n,d),n<=b&&(c=n+1),b<=n&&(d=n-1)}}function hK(a,b,c){var d=a[b];a[b]=a[c],a[c]=d}function hL(a,b){return ab?1:0}function hM(a,b){const c=a.length;if(c<=1)return[a];const d=[];let f,g;for(let h=0;h1)for(let j=0;j0&&c.holes.push(d+=a[f-1].length)}return c},hh.default=hi;class hQ{constructor(a){this.zoom=a.zoom,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(a=>a.id),this.index=a.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new fm,this.indexArray=new fy,this.indexArray2=new fF,this.programConfigurations=new gg(a.layers,a.zoom),this.segments=new gq,this.segments2=new gq,this.stateDependentLayerIds=this.layers.filter(a=>a.isStateDependent()).map(a=>a.id)}populate(a,b,c,d){this.hasPattern=hO("fill",this.layers,b);const f=this.layers[0].layout.get("fill-sort-key"),g=[];for(const{feature:h,id:i,index:j,sourceLayerIndex:k}of a){const l=this.layers[0]._featureFilter.needGeometry,m=gG(h,l);if(!this.layers[0]._featureFilter.filter(new e2(this.zoom),m,c))continue;const n=f?f.evaluate(m,{},c,b.availableImages):void 0,o={id:i,properties:h.properties,type:h.type,sourceLayerIndex:k,index:j,geometry:l?m.geometry:gF(h,c,d),patterns:{},sortKey:n};g.push(o)}for(const p of(f&&g.sort((a,b)=>a.sortKey-b.sortKey),g)){const{geometry:q,index:r,sourceLayerIndex:s}=p;if(this.hasPattern){const u=hP("fill",this.layers,p,this.zoom,b);this.patternFeatures.push(u)}else this.addFeature(p,q,r,c,{},b.availableImages);b.featureIndex.insert(a[r].feature,q,r,s,this.index)}}update(a,b,c,d){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(a,b,this.stateDependentLayers,c,d)}addFeatures(a,b,c,d){for(const f of this.patternFeatures)this.addFeature(f,f.geometry,f.index,b,c,d)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(a){this.uploaded||(this.layoutVertexBuffer=a.createVertexBuffer(this.layoutVertexArray,hg),this.indexBuffer=a.createIndexBuffer(this.indexArray),this.indexBuffer2=a.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(a),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(a,b,c,d,f,g=[]){for(const h of hM(b,500)){let i=0;for(const j of h)i+=j.length;const k=this.segments.prepareSegment(i,this.layoutVertexArray,this.indexArray),l=k.vertexLength,m=[],n=[];for(const o of h){if(0===o.length)continue;o!==h[0]&&n.push(m.length/2);const p=this.segments2.prepareSegment(o.length,this.layoutVertexArray,this.indexArray2),q=p.vertexLength;this.layoutVertexArray.emplaceBack(o[0].x,o[0].y),this.indexArray2.emplaceBack(q+o.length-1,q),m.push(o[0].x),m.push(o[0].y);for(let r=1;r>3}if(f--,1===d||2===d)h+=a.readSVarint(),i+=a.readSVarint(),1===d&&(b&&j.push(b),b=[]),b.push(new g(h,i));else{if(7!==d)throw Error("unknown command "+d);b&&b.push(b[0].clone())}}return b&&j.push(b),j},hX.prototype.bbox=function(){var a=this._pbf;a.pos=this._geometry;for(var b=a.readVarint()+a.pos,c=1,d=0,f=0,g=0,h=1/0,i=-1/0,j=1/0,k=-1/0;a.pos>3}if(d--,1===c||2===c)(f+=a.readSVarint())i&&(i=f),(g+=a.readSVarint())k&&(k=g);else if(7!==c)throw Error("unknown command "+c)}return[h,j,i,k]},hX.prototype.toGeoJSON=function(a,b,c){var d,f,g=this.extent*Math.pow(2,c),h=this.extent*a,i=this.extent*b,j=this.loadGeometry(),k=hX.types[this.type];function l(a){for(var b=0;b>3;b=1===d?a.readString():2===d?a.readFloat():3===d?a.readDouble():4===d?a.readVarint64():5===d?a.readVarint():6===d?a.readSVarint():7===d?a.readBoolean():null}return b}(c))}function h1(a,b,c){if(3===a){var d=new h$(c,c.readVarint()+c.pos);d.length&&(b[d.name]=d)}}h_.prototype.feature=function(a){if(a<0||a>=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[a];var b=this._pbf.readVarint()+this._pbf.pos;return new hW(this._pbf,b,this.extent,this._keys,this._values)};var h2={VectorTile:function(a,b){this.layers=a.readFields(h1,{},b)},VectorTileFeature:hW,VectorTileLayer:h$};const h3=h2.VectorTileFeature.types;function h4(a,b,c,d,f,g,h,i){a.emplaceBack((b<<1)+h,(c<<1)+g,(Math.floor(8192*d)<<1)+f,Math.round(i))}class h5{constructor(){this.acc=new g(0,0),this.polyCount=[]}startRing(a){this.currentPolyCount={edges:0,top:0},this.polyCount.push(this.currentPolyCount),this.min||(this.min=new g(a.x,a.y),this.max=new g(a.x,a.y))}append(a,b){this.currentPolyCount.edges++,this.acc._add(a);let c=!!this.borders;const d=this.min,f=this.max;a.xf.x&&(f.x=a.x,c=!0),a.yf.y&&(f.y=a.y,c=!0),((0===a.x||8192===a.x)&&a.x===b.x)!=((0===a.y||8192===a.y)&&a.y===b.y)&&this.processBorderOverlap(a,b),c&&this.checkBorderIntersection(a,b)}checkBorderIntersection(a,b){b.x<0!=a.x<0&&this.addBorderIntersection(0,cr(b.y,a.y,(0-b.x)/(a.x-b.x))),b.x>8192!=a.x>8192&&this.addBorderIntersection(1,cr(b.y,a.y,(8192-b.x)/(a.x-b.x))),b.y<0!=a.y<0&&this.addBorderIntersection(2,cr(b.x,a.x,(0-b.y)/(a.y-b.y))),b.y>8192!=a.y>8192&&this.addBorderIntersection(3,cr(b.x,a.x,(8192-b.y)/(a.y-b.y)))}addBorderIntersection(a,b){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],]);const c=this.borders[a];bc[1]&&(c[1]=b)}processBorderOverlap(a,b){if(a.x===b.x){if(a.y===b.y)return;const c=0===a.x?0:1;this.addBorderIntersection(c,b.y),this.addBorderIntersection(c,a.y)}else{const d=0===a.y?2:3;this.addBorderIntersection(d,b.x),this.addBorderIntersection(d,a.x)}}centroid(){const a=this.polyCount.reduce((a,b)=>a+b.edges,0);return 0!==a?this.acc.div(a)._round():new g(0,0)}span(){return new g(this.max.x-this.min.x,this.max.y-this.min.y)}intersectsCount(){return this.borders.reduce((a,b)=>a+ +(b[0]!==Number.MAX_VALUE),0)}}class h6{constructor(a){this.zoom=a.zoom,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(a=>a.id),this.index=a.index,this.hasPattern=!1,this.layoutVertexArray=new fn,this.centroidVertexArray=new fU,this.indexArray=new fy,this.programConfigurations=new gg(a.layers,a.zoom),this.segments=new gq,this.stateDependentLayerIds=this.layers.filter(a=>a.isStateDependent()).map(a=>a.id),this.enableTerrain=a.enableTerrain}populate(a,b,c,d){for(const{feature:f,id:g,index:h,sourceLayerIndex:i}of(this.features=[],this.hasPattern=hO("fill-extrusion",this.layers,b),this.featuresOnBorder=[],this.borders=[[],[],[],[]],this.borderDone=[!1,!1,!1,!1],this.tileToMeter=function(a){const b=Math.exp(Math.PI*(1-a.y/(1<a.x<=0)||h.every(a=>a.x>=8192)||h.every(a=>a.y<=0)||h.every(a=>a.y>=8192))continue;for(let m=0;m=1){const r=n[p-1];if(!h7(q,r)){i&&i.append(q,r),l.vertexLength+4>gq.MAX_VERTEX_ARRAY_LENGTH&&(l=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));const s=q.sub(r)._perp(),u=s.x/(Math.abs(s.x)+Math.abs(s.y)),v=s.y>0?1:0,w=r.dist(q);o+w>32768&&(o=0),h4(this.layoutVertexArray,q.x,q.y,u,v,0,0,o),h4(this.layoutVertexArray,q.x,q.y,u,v,0,1,o),o+=w,h4(this.layoutVertexArray,r.x,r.y,u,v,0,0,o),h4(this.layoutVertexArray,r.x,r.y,u,v,0,1,o);const x=l.vertexLength;this.indexArray.emplaceBack(x,x+2,x+1),this.indexArray.emplaceBack(x+1,x+2,x+3),l.vertexLength+=4,l.primitiveLength+=2}}}}if(l.vertexLength+k>gq.MAX_VERTEX_ARRAY_LENGTH&&(l=this.segments.prepareSegment(k,this.layoutVertexArray,this.indexArray)),"Polygon"!==h3[a.type])continue;const y=[],z=[],A=l.vertexLength;for(let B=0;B0){if(i.borders){i.vertexArrayOffset=this.centroidVertexArray.length;const H=i.borders,I=this.featuresOnBorder.push(i)-1;for(let J=0;J<4;J++)H[J][0]!==Number.MAX_VALUE&&this.borders[J].push(I)}this.encodeCentroid(i.borders?void 0:i.centroid(),i)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,a,c,f,g,d)}sortBorders(){for(let a=0;a<4;a++)this.borders[a].sort((b,c)=>this.featuresOnBorder[b].borders[a][0]-this.featuresOnBorder[c].borders[a][0])}encodeCentroid(a,b,c=!0){let d,f;if(a){if(0!==a.y){const g=b.span()._mult(this.tileToMeter);d=(Math.max(a.x,1)<<3)+Math.min(7,Math.round(g.x/10)),f=(Math.max(a.y,1)<<3)+Math.min(7,Math.round(g.y/10))}else d=Math.ceil(7*(a.x+450)),f=0}else d=0,f=+c;let h=c?this.centroidVertexArray.length:b.vertexArrayOffset;for(const i of b.polyCount){c&&this.centroidVertexArray.resize(this.centroidVertexArray.length+4*i.edges+i.top);for(let j=0;j<2*i.edges;j++)this.centroidVertexArray.emplace(h++,0,f),this.centroidVertexArray.emplace(h++,d,f);for(let k=0;k8192)||a.y===b.y&&(a.y<0||a.y>8192)}ec("FillExtrusionBucket",h6,{omit:["layers","features"]}),ec("PartMetadata",h5);var h8={paint:new ff({"fill-extrusion-opacity":new fa(bk["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new fb(bk["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new fa(bk["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new fa(bk["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new fc(bk["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new fb(bk["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new fb(bk["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new fa(bk["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})};function h9(a,b){return a.x*b.x+a.y*b.y}function ia(a,b){if(1===a.length){let c=0;const d=b[c++];let f;for(;!f||d.equals(f);)if(!(f=b[c++]))return 1/0;for(;ca.id),this.index=a.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(a=>{this.gradients[a.id]={}}),this.layoutVertexArray=new fo,this.layoutVertexArray2=new fp,this.indexArray=new fy,this.programConfigurations=new gg(a.layers,a.zoom),this.segments=new gq,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(a=>a.isStateDependent()).map(a=>a.id)}populate(a,b,c,d){this.hasPattern=hO("line",this.layers,b);const f=this.layers[0].layout.get("line-sort-key"),g=[];for(const{feature:h,id:i,index:j,sourceLayerIndex:k}of a){const l=this.layers[0]._featureFilter.needGeometry,m=gG(h,l);if(!this.layers[0]._featureFilter.filter(new e2(this.zoom),m,c))continue;const n=f?f.evaluate(m,{},c):void 0,o={id:i,properties:h.properties,type:h.type,sourceLayerIndex:k,index:j,geometry:l?m.geometry:gF(h,c,d),patterns:{},sortKey:n};g.push(o)}f&&g.sort((a,b)=>a.sortKey-b.sortKey);const{lineAtlas:p,featureIndex:q}=b,r=this.addConstantDashes(p);for(const s of g){const{geometry:u,index:v,sourceLayerIndex:w}=s;if(r&&this.addFeatureDashes(s,p),this.hasPattern){const x=hP("line",this.layers,s,this.zoom,b);this.patternFeatures.push(x)}else this.addFeature(s,u,v,c,p.positions,b.availableImages);q.insert(a[v].feature,u,v,w,this.index)}}addConstantDashes(a){let b=!1;for(const c of this.layers){const d=c.paint.get("line-dasharray").value,f=c.layout.get("line-cap").value;if("constant"!==d.kind||"constant"!==f.kind)b=!0;else{const g=f.value,h=d.value;if(!h)continue;a.addDash(h.from,g),a.addDash(h.to,g),h.other&&a.addDash(h.other,g)}}return b}addFeatureDashes(a,b){const c=this.zoom;for(const d of this.layers){const f=d.paint.get("line-dasharray").value,g=d.layout.get("line-cap").value;if("constant"===f.kind&&"constant"===g.kind)continue;let h,i,j,k,l,m;if("constant"===f.kind){const n=f.value;if(!n)continue;h=n.other||n.to,i=n.to,j=n.from}else h=f.evaluate({zoom:c-1},a),i=f.evaluate({zoom:c},a),j=f.evaluate({zoom:c+1},a);"constant"===g.kind?k=l=m=g.value:(k=g.evaluate({zoom:c-1},a),l=g.evaluate({zoom:c},a),m=g.evaluate({zoom:c+1},a)),b.addDash(h,k),b.addDash(i,l),b.addDash(j,m);const o=b.getKey(h,k),p=b.getKey(i,l),q=b.getKey(j,m);a.patterns[d.id]={min:o,mid:p,max:q}}}update(a,b,c,d){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(a,b,this.stateDependentLayers,c,d)}addFeatures(a,b,c,d){for(const f of this.patternFeatures)this.addFeature(f,f.geometry,f.index,b,c,d)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(a){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=a.createVertexBuffer(this.layoutVertexArray2,ih)),this.layoutVertexBuffer=a.createVertexBuffer(this.layoutVertexArray,ie),this.indexBuffer=a.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(a),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(a){if(a.properties&&a.properties.hasOwnProperty("mapbox_clip_start")&&a.properties.hasOwnProperty("mapbox_clip_end"))return{start:+a.properties.mapbox_clip_start,end:+a.properties.mapbox_clip_end}}addFeature(a,b,c,d,f,g){const h=this.layers[0].layout,i=h.get("line-join").evaluate(a,{}),j=h.get("line-cap").evaluate(a,{}),k=h.get("line-miter-limit"),l=h.get("line-round-limit");for(const m of(this.lineClips=this.lineFeatureClips(a),b))this.addLine(m,a,i,j,k,l);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,a,c,f,g,d)}addLine(a,b,c,d,f,g){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineSoFar=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let h=0;h=2&&a[j-1].equals(a[j-2]);)j--;let k=0;for(;k0;if(z&&s>k){const B=n.dist(o);if(B>2*l){const C=n.sub(n.sub(o)._mult(l/B)._round());this.updateDistance(o,C),this.addCurrentVertex(C,q,0,0,m),o=C}}const D=o&&p;let E=D?c:i?"butt":d;if(D&&"round"===E&&(xf&&(E="bevel"),"bevel"===E&&(x>2&&(E="flipbevel"),x100)u=r.mult(-1);else{const F=x*q.add(r).mag()/q.sub(r).mag();u._perp()._mult(F*(A?-1:1))}this.addCurrentVertex(n,u,0,0,m),this.addCurrentVertex(n,u.mult(-1),0,0,m)}else if("bevel"===E||"fakeround"===E){const G=-Math.sqrt(x*x-1),H=A?G:0,I=A?0:G;if(o&&this.addCurrentVertex(n,q,H,I,m),"fakeround"===E){const J=Math.round(180*y/Math.PI/20);for(let K=1;K2*l){const Q=n.add(p.sub(n)._mult(l/P)._round());this.updateDistance(n,Q),this.addCurrentVertex(Q,r,0,0,m),n=Q}}}}addCurrentVertex(a,b,c,d,f,g=!1){const h=b.y*d-b.x,i=-b.y-b.x*d;this.addHalfVertex(a,b.x+b.y*c,b.y-b.x*c,g,!1,c,f),this.addHalfVertex(a,h,i,g,!0,-d,f)}addHalfVertex({x:a,y:b},c,d,f,g,h,i){this.layoutVertexArray.emplaceBack((a<<1)+(f?1:0),(b<<1)+(g?1:0),Math.round(63*c)+128,Math.round(63*d)+128,1+(0===h?0:h<0?-1:1),0,this.lineSoFar),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length,this.lineSoFar);const j=i.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,j),i.primitiveLength++),g?this.e2=j:this.e1=j}updateScaledDistance(){if(this.lineClips){const a=this.totalDistance/(this.lineClips.end-this.lineClips.start);this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=a*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(a,b){this.distance+=a.dist(b),this.updateScaledDistance()}}ec("LineBucket",ik,{omit:["layers","patternFeatures"]});const il=new ff({"line-cap":new fb(bk.layout_line["line-cap"]),"line-join":new fb(bk.layout_line["line-join"]),"line-miter-limit":new fa(bk.layout_line["line-miter-limit"]),"line-round-limit":new fa(bk.layout_line["line-round-limit"]),"line-sort-key":new fb(bk.layout_line["line-sort-key"])});var im={paint:new ff({"line-opacity":new fb(bk.paint_line["line-opacity"]),"line-color":new fb(bk.paint_line["line-color"]),"line-translate":new fa(bk.paint_line["line-translate"]),"line-translate-anchor":new fa(bk.paint_line["line-translate-anchor"]),"line-width":new fb(bk.paint_line["line-width"]),"line-gap-width":new fb(bk.paint_line["line-gap-width"]),"line-offset":new fb(bk.paint_line["line-offset"]),"line-blur":new fb(bk.paint_line["line-blur"]),"line-dasharray":new fc(bk.paint_line["line-dasharray"]),"line-pattern":new fc(bk.paint_line["line-pattern"]),"line-gradient":new fe(bk.paint_line["line-gradient"])}),layout:il};const io=new class extends fb{possiblyEvaluate(a,b){return b=new e2(Math.floor(b.zoom),{now:b.now,fadeDuration:b.fadeDuration,zoomHistory:b.zoomHistory,transition:b.transition}),super.possiblyEvaluate(a,b)}evaluate(a,b,c,d){return b=aa({},b,{zoom:Math.floor(b.zoom)}),super.evaluate(a,b,c,d)}}(im.paint.properties["line-width"].specification);function ip(a,b){return b>0?b+2*a:a}io.useIntegerZoom=!0;const iq=fk([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_tex_size",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_z_tile_anchor",components:4,type:"Int16"},],4),ir=fk([{name:"a_projected_pos",components:3,type:"Float32"},],4);fk([{name:"a_fade_opacity",components:1,type:"Uint32"},],4);const is=fk([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},]),it=fk([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"},]);fk([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"tileAnchorX"},{type:"Int16",name:"tileAnchorY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"},]);const iu=fk([{name:"a_pos",components:3,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"},],4),iv=fk([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"},],4);function iw(a,b){const{expression:c}=b;if("constant"===c.kind)return{kind:"constant",layoutSize:c.evaluate(new e2(a+1))};if("source"===c.kind)return{kind:"source"};{const{zoomStops:d,interpolationType:f}=c;let g=0;for(;g{a.text=function(a,b,c){const d=b.layout.get("text-transform").evaluate(c,{});return"uppercase"===d?a=a.toLocaleUpperCase():"lowercase"===d&&(a=a.toLocaleLowerCase()),e1.applyArabicShaping&&(a=e1.applyArabicShaping(a)),a}(a.text,b,c)}),a}const iB={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","\xa2":"¢","\xa3":"£","\xa5":"¥","\xa6":"¦","\xac":"¬","\xaf":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};function iC(a){return"︶"===a||"﹈"===a||"︸"===a||"﹄"===a||"﹂"===a||"︾"===a||"︼"===a||"︺"===a||"︘"===a||"﹀"===a||"︐"===a||"︓"===a||"︔"===a||"`"===a||" ̄"===a||"︑"===a||"︒"===a}function iD(a){return"︵"===a||"﹇"===a||"︷"===a||"﹃"===a||"﹁"===a||"︽"===a||"︻"===a||"︹"===a||"︗"===a||"︿"===a}var iE=function(a,b,c,d,f){var g,h,i=8*f-d-1,j=(1<>1,l=-7,m=c?f-1:0,n=c?-1:1,o=a[b+m];for(m+=n,g=o&(1<< -l)-1,o>>=-l,l+=i;l>0;g=256*g+a[b+m],m+=n,l-=8);for(h=g&(1<< -l)-1,g>>=-l,l+=d;l>0;h=256*h+a[b+m],m+=n,l-=8);if(0===g)g=1-k;else{if(g===j)return h?NaN:1/0*(o?-1:1);h+=Math.pow(2,d),g-=k}return(o?-1:1)*h*Math.pow(2,g-d)},iF=function(a,b,c,d,f,g){var h,i,j,k=8*g-f-1,l=(1<>1,n=23===f?5960464477539062e-23:0,o=d?0:g-1,p=d?1:-1,q=b<0||0===b&&1/b<0?1:0;for(isNaN(b=Math.abs(b))||b===1/0?(i=isNaN(b)?1:0,h=l):(h=Math.floor(Math.log(b)/Math.LN2),b*(j=Math.pow(2,-h))<1&&(h--,j*=2),(b+=h+m>=1?n/j:n*Math.pow(2,1-m))*j>=2&&(h++,j/=2),h+m>=l?(i=0,h=l):h+m>=1?(i=(b*j-1)*Math.pow(2,f),h+=m):(i=b*Math.pow(2,m-1)*Math.pow(2,f),h=0));f>=8;a[c+o]=255&i,o+=p,i/=256,f-=8);for(h=h<0;a[c+o]=255&h,o+=p,h/=256,k-=8);a[c+o-p]|=128*q},iG=iH;function iH(a){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(a)?a:new Uint8Array(a||0),this.pos=0,this.type=0,this.length=this.buf.length}iH.Varint=0,iH.Fixed64=1,iH.Bytes=2,iH.Fixed32=5;var iI="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function iJ(a){return a.type===iH.Bytes?a.readVarint()+a.pos:a.pos+1}function iK(a,b,c){var d=b<=16383?1:b<=2097151?2:b<=268435455?3:Math.floor(Math.log(b)/(7*Math.LN2));c.realloc(d);for(var f=c.pos-1;f>=a;f--)c.buf[f+d]=c.buf[f]}function iL(a,b){for(var c=0;c>>8,a[c+2]=b>>>16,a[c+3]=b>>>24}function iW(a,b){return(a[b]|a[b+1]<<8|a[b+2]<<16)+(a[b+3]<<24)}function iX(a,b,c){b.glyphs=[],1===a&&c.readMessage(iY,b)}function iY(a,b,c){if(3===a){const{id:d,bitmap:f,width:g,height:h,left:i,top:j,advance:k}=c.readMessage(iZ,{});b.glyphs.push({id:d,bitmap:new ha({width:g+6,height:h+6},f),metrics:{width:g,height:h,left:i,top:j,advance:k}})}else 4===a?b.ascender=c.readSVarint():5===a&&(b.descender=c.readSVarint())}function iZ(a,b,c){1===a?b.id=c.readVarint():2===a?b.bitmap=c.readBytes():3===a?b.width=c.readVarint():4===a?b.height=c.readVarint():5===a?b.left=c.readSVarint():6===a?b.top=c.readSVarint():7===a&&(b.advance=c.readVarint())}function i$(a){let b=0,c=0;for(const d of a)b+=d.w*d.h,c=Math.max(c,d.w);a.sort((a,b)=>b.h-a.h);const f=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(b/.95)),c),h:1/0},];let g=0,h=0;for(const i of a)for(let j=f.length-1;j>=0;j--){const k=f[j];if(!(i.w>k.w||i.h>k.h)){if(i.x=k.x,i.y=k.y,h=Math.max(h,i.y+i.h),g=Math.max(g,i.x+i.w),i.w===k.w&&i.h===k.h){const l=f.pop();j>3,g=this.pos;this.type=7&d,a(f,b,this),this.pos===g&&this.skip(d)}return b},readMessage:function(a,b){return this.readFields(a,b,this.readVarint()+this.pos)},readFixed32:function(){var a=iU(this.buf,this.pos);return this.pos+=4,a},readSFixed32:function(){var a=iW(this.buf,this.pos);return this.pos+=4,a},readFixed64:function(){var a=iU(this.buf,this.pos)+4294967296*iU(this.buf,this.pos+4);return this.pos+=8,a},readSFixed64:function(){var a=iU(this.buf,this.pos)+4294967296*iW(this.buf,this.pos+4);return this.pos+=8,a},readFloat:function(){var a=iE(this.buf,this.pos,!0,23,4);return this.pos+=4,a},readDouble:function(){var a=iE(this.buf,this.pos,!0,52,8);return this.pos+=8,a},readVarint:function(a){var b,c,d=this.buf;return b=127&(c=d[this.pos++]),c<128?b:(b|=(127&(c=d[this.pos++]))<<7,c<128?b:(b|=(127&(c=d[this.pos++]))<<14,c<128?b:(b|=(127&(c=d[this.pos++]))<<21,c<128?b:function(a,b,c){var d,f,g,h,i=c.buf;if(g=(112&(h=i[c.pos++]))>>4,h<128||(g|=(127&(h=i[c.pos++]))<<3,h<128)||(g|=(127&(h=i[c.pos++]))<<10,h<128)||(g|=(127&(h=i[c.pos++]))<<17,h<128)||(g|=(127&(h=i[c.pos++]))<<24,h<128)||(g|=(1&(h=i[c.pos++]))<<31,h<128))return d=a,f=g,b?4294967296*f+(d>>>0):4294967296*(f>>>0)+(d>>>0);throw Error("Expected varint not more than 10 bytes")}(b|=(15&(c=d[this.pos]))<<28,a,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var a=this.readVarint();return a%2==1?-((a+1)/2):a/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var a,b,c,d=this.readVarint()+this.pos,f=this.pos;return this.pos=d,d-f>=12&&iI?(a=this.buf,b=f,c=d,iI.decode(a.subarray(b,c))):function(a,b,c){for(var d="",f=b;f239?4:j>223?3:j>191?2:1;if(f+l>c)break;1===l?j<128&&(k=j):2===l?128==(192&(g=a[f+1]))&&(k=(31&j)<<6|63&g)<=127&&(k=null):3===l?(h=a[f+2],128==(192&(g=a[f+1]))&&128==(192&h)&&((k=(15&j)<<12|(63&g)<<6|63&h)<=2047||k>=55296&&k<=57343)&&(k=null)):4===l&&(h=a[f+2],i=a[f+3],128==(192&(g=a[f+1]))&&128==(192&h)&&128==(192&i)&&((k=(15&j)<<18|(63&g)<<12|(63&h)<<6|63&i)<=65535||k>=1114112)&&(k=null)),null===k?(k=65533,l=1):k>65535&&(k-=65536,d+=String.fromCharCode(k>>>10&1023|55296),k=56320|1023&k),d+=String.fromCharCode(k),f+=l}return d}(this.buf,f,d)},readBytes:function(){var a=this.readVarint()+this.pos,b=this.buf.subarray(this.pos,a);return this.pos=a,b},readPackedVarint:function(a,b){if(this.type!==iH.Bytes)return a.push(this.readVarint(b));var c=iJ(this);for(a=a||[];this.pos127;);else if(b===iH.Bytes)this.pos=this.readVarint()+this.pos;else if(b===iH.Fixed32)this.pos+=4;else{if(b!==iH.Fixed64)throw Error("Unimplemented type: "+b);this.pos+=8}},writeTag:function(a,b){this.writeVarint(a<<3|b)},realloc:function(a){for(var b=this.length||16;b268435455||a<0?function(a,b){var c,d,f,g,h,i,j;if(a>=0?(c=a%4294967296|0,d=a/4294967296|0):(d=~(-a/4294967296),4294967295^(c=~(-a%4294967296))?c=c+1|0:(c=0,d=d+1|0)),a>=18446744073709552e3||a< -18446744073709552e3)throw Error("Given varint doesn't fit into 10 bytes");b.realloc(10),f=c,(g=b).buf[g.pos++]=127&f|128,f>>>=7,g.buf[g.pos++]=127&f|128,f>>>=7,g.buf[g.pos++]=127&f|128,f>>>=7,g.buf[g.pos++]=127&f|128,g.buf[g.pos]=127&(f>>>=7),h=d,i=b,j=(7&h)<<4,i.buf[i.pos++]|=j|((h>>>=3)?128:0),h&&(i.buf[i.pos++]=127&h|((h>>>=7)?128:0),h&&(i.buf[i.pos++]=127&h|((h>>>=7)?128:0),h&&(i.buf[i.pos++]=127&h|((h>>>=7)?128:0),h&&(i.buf[i.pos++]=127&h|((h>>>=7)?128:0),h&&(i.buf[i.pos++]=127&h)))))}(a,this):(this.realloc(4),this.buf[this.pos++]=127&a|(a>127?128:0),a<=127||(this.buf[this.pos++]=127&(a>>>=7)|(a>127?128:0),a<=127||(this.buf[this.pos++]=127&(a>>>=7)|(a>127?128:0),a<=127||(this.buf[this.pos++]=a>>>7&127))))},writeSVarint:function(a){this.writeVarint(a<0?-(2*a)-1:2*a)},writeBoolean:function(a){this.writeVarint(Boolean(a))},writeString:function(a){a=String(a),this.realloc(4*a.length),this.pos++;var b=this.pos;this.pos=function(a,b,c){for(var d,f,g=0;g55295&&d<57344){if(!f){d>56319||g+1===b.length?(a[c++]=239,a[c++]=191,a[c++]=189):f=d;continue}if(d<56320){a[c++]=239,a[c++]=191,a[c++]=189,f=d;continue}d=f-55296<<10|d-56320|65536,f=null}else f&&(a[c++]=239,a[c++]=191,a[c++]=189,f=null);d<128?a[c++]=d:(d<2048?a[c++]=d>>6|192:(d<65536?a[c++]=d>>12|224:(a[c++]=d>>18|240,a[c++]=d>>12&63|128),a[c++]=d>>6&63|128),a[c++]=63&d|128)}return c}(this.buf,a,this.pos);var c=this.pos-b;c>=128&&iK(b,c,this),this.pos=b-1,this.writeVarint(c),this.pos+=c},writeFloat:function(a){this.realloc(4),iF(this.buf,a,this.pos,!0,23,4),this.pos+=4},writeDouble:function(a){this.realloc(8),iF(this.buf,a,this.pos,!0,52,8),this.pos+=8},writeBytes:function(a){var b=a.length;this.writeVarint(b),this.realloc(b);for(var c=0;c=128&&iK(c,d,this),this.pos=c-1,this.writeVarint(d),this.pos+=d},writeMessage:function(a,b,c){this.writeTag(a,iH.Bytes),this.writeRawMessage(b,c)},writePackedVarint:function(a,b){b.length&&this.writeMessage(a,iL,b)},writePackedSVarint:function(a,b){b.length&&this.writeMessage(a,iM,b)},writePackedBoolean:function(a,b){b.length&&this.writeMessage(a,iP,b)},writePackedFloat:function(a,b){b.length&&this.writeMessage(a,iN,b)},writePackedDouble:function(a,b){b.length&&this.writeMessage(a,iO,b)},writePackedFixed32:function(a,b){b.length&&this.writeMessage(a,iQ,b)},writePackedSFixed32:function(a,b){b.length&&this.writeMessage(a,iR,b)},writePackedFixed64:function(a,b){b.length&&this.writeMessage(a,iS,b)},writePackedSFixed64:function(a,b){b.length&&this.writeMessage(a,iT,b)},writeBytesField:function(a,b){this.writeTag(a,iH.Bytes),this.writeBytes(b)},writeFixed32Field:function(a,b){this.writeTag(a,iH.Fixed32),this.writeFixed32(b)},writeSFixed32Field:function(a,b){this.writeTag(a,iH.Fixed32),this.writeSFixed32(b)},writeFixed64Field:function(a,b){this.writeTag(a,iH.Fixed64),this.writeFixed64(b)},writeSFixed64Field:function(a,b){this.writeTag(a,iH.Fixed64),this.writeSFixed64(b)},writeVarintField:function(a,b){this.writeTag(a,iH.Varint),this.writeVarint(b)},writeSVarintField:function(a,b){this.writeTag(a,iH.Varint),this.writeSVarint(b)},writeStringField:function(a,b){this.writeTag(a,iH.Bytes),this.writeString(b)},writeFloatField:function(a,b){this.writeTag(a,iH.Fixed32),this.writeFloat(b)},writeDoubleField:function(a,b){this.writeTag(a,iH.Fixed64),this.writeDouble(b)},writeBooleanField:function(a,b){this.writeVarintField(a,Boolean(b))}};class i_{constructor(a,{pixelRatio:b,version:c,stretchX:d,stretchY:f,content:g}){this.paddedRect=a,this.pixelRatio=b,this.stretchX=d,this.stretchY=f,this.content=g,this.version=c}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1,]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1,]}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio,]}}class i0{constructor(a,b){const c={},d={};this.haveRenderCallbacks=[];const f=[];this.addImages(a,c,f),this.addImages(b,d,f);const{w:g,h:h}=i$(f),i=new hb({width:g||1,height:h||1});for(const j in a){const k=a[j],l=c[j].paddedRect;hb.copy(k.data,i,{x:0,y:0},{x:l.x+1,y:l.y+1},k.data)}for(const m in b){const n=b[m],o=d[m].paddedRect,p=o.x+1,q=o.y+1,r=n.data.width,s=n.data.height;hb.copy(n.data,i,{x:0,y:0},{x:p,y:q},n.data),hb.copy(n.data,i,{x:0,y:s-1},{x:p,y:q-1},{width:r,height:1}),hb.copy(n.data,i,{x:0,y:0},{x:p,y:q+s},{width:r,height:1}),hb.copy(n.data,i,{x:r-1,y:0},{x:p-1,y:q},{width:1,height:s}),hb.copy(n.data,i,{x:0,y:0},{x:p+r,y:q},{width:1,height:s})}this.image=i,this.iconPositions=c,this.patternPositions=d}addImages(a,b,c){for(const d in a){const f=a[d],g={x:0,y:0,w:f.data.width+2,h:f.data.height+2};c.push(g),b[d]=new i_(g,f),f.hasRenderCallback&&this.haveRenderCallbacks.push(d)}}patchUpdatedImages(a,b){for(const c in a.dispatchRenderCallbacks(this.haveRenderCallbacks),a.updatedImages)this.patchUpdatedImage(this.iconPositions[c],a.getImage(c),b),this.patchUpdatedImage(this.patternPositions[c],a.getImage(c),b)}patchUpdatedImage(a,b,c){if(!a||!b||a.version===b.version)return;a.version=b.version;const[d,f]=a.tl;c.update(b.data,void 0,{x:d,y:f})}}ec("ImagePosition",i_),ec("ImageAtlas",i0);const i1={horizontal:1,vertical:2,horizontalOnly:3};class i2{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(a,b){const c=new i2;return c.scale=a||1,c.fontStack=b,c}static forImage(a){const b=new i2;return b.imageName=a,b}}class i3{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(a,b){const c=new i3;for(let d=0;d=0&&d>=a&&i5[this.text.charCodeAt(d)];d--)c--;this.text=this.text.substring(a,c),this.sectionIndex=this.sectionIndex.slice(a,c)}substring(a,b){const c=new i3;return c.text=this.text.substring(a,b),c.sectionIndex=this.sectionIndex.slice(a,b),c.sections=this.sections,c}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((a,b)=>Math.max(a,this.sections[b].scale),0)}addTextSection(a,b){this.text+=a.text,this.sections.push(i2.forText(a.scale,a.fontStack||b));const c=this.sections.length-1;for(let d=0;d=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function i4(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q){const r=i3.fromFeature(a,f);let s;m===i1.vertical&&r.verticalizePunctuation(n);const{processBidirectionalText:u,processStyledBidirectionalText:v}=e1;if(u&&1===r.sections.length){s=[];const w=u(r.toString(),jc(r,k,g,b,d,o,p));for(const x of w){const y=new i3;y.text=x,y.sections=r.sections;for(let z=0;z0&&U>E&&(E=U)}else{const V=c[I.fontStack];if(!V)continue;V[K]&&(N=V[K]);const W=b[I.fontStack];if(!W)continue;const X=W.glyphs[K];if(!X)continue;if(M=X.metrics,P=8203!==K?24:0,s){const Y=void 0!==W.ascender?Math.abs(W.ascender):0,Z=void 0!==W.descender?Math.abs(W.descender):0,$=(Y+Z)*L;F<$&&(F=$,G=(Y-Z)/2*L),Q=-Y*L}else Q=(A-L)*24-17}R?(a.verticalizable=!0,D.push({glyph:K,imageName:O,x:o,y:p+Q,vertical:R,scale:L,localGlyph:M.localGlyph,fontStack:I.fontStack,sectionIndex:J,metrics:M,rect:N}),o+=P*L+k):(D.push({glyph:K,imageName:O,x:o,y:p+Q,vertical:R,scale:L,localGlyph:M.localGlyph,fontStack:I.fontStack,sectionIndex:J,metrics:M,rect:N}),o+=M.advance*L+k)}0!==D.length&&(q=Math.max(o-k,q),s?je(D,r,E,G,g*A/2):je(D,r,E,0,g/2)),o=0;const _=g*A+E;C.lineOffset=Math.max(E,B),p+=_,++y}const aa=p,{horizontalAlign:ab,verticalAlign:ac}=jd(h);(function(a,b,c,d,f,g){const h=(b-c)*f,i=-g*d;for(const j of a)for(const k of j.positionedGlyphs)k.x+=h,k.y+=i})(a.positionedLines,r,ab,ac,q,aa),a.top+=-ac*aa,a.bottom=a.top+aa,a.left+=-ab*q,a.right=a.left+q,a.hasBaseline=s}(E,b,c,d,s,h,i,j,m,k,n,q),!function(a){for(const b of a)if(0!==b.positionedGlyphs.length)return!1;return!0}(D)&&E}const i5={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},i6={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function i7(a,b,c,d,f,g){if(b.imageName){const h=d[b.imageName];return h?h.displaySize[0]*b.scale*24/g+f:0}{const i=c[b.fontStack],j=i&&i.glyphs[a];return j?j.metrics.advance*b.scale+f:0}}function i8(a,b,c,d){const f=Math.pow(a-b,2);return d?a=0;let m=0;for(let n=0;n -c/2;){if(--h<0)return!1;i-=a[h].dist(g),g=a[h]}i+=a[h].dist(a[h+1]),h++;const j=[];let k=0;for(;id;)k-=j.shift().angleDelta;if(k>f)return!1;h++,i+=l.dist(m)}return!0}function jj(a){let b=0;for(let c=0;ck){const p=(k-j)/o,q=cr(m.x,n.x,p),r=cr(m.y,n.y,p),s=new jh(q,r,0,n.angleTo(m),l);return!h||ji(a,s,i,h,b)?s:void 0}j+=o}}function jn(a,b,c,d,f,g,h,i,j){const k=jk(d,g,h),l=jl(d,f),m=l*h,n=0===a[0].x||a[0].x===j||0===a[0].y||a[0].y===j;return b-m=0&&w=0&&x=0&&n+k<=l){const y=new jh(w,x,0,u,p);y._round(),d&&!ji(a,y,g,d,f)||o.push(y)}}m+=s}return i||o.length||h||(o=jo(a,m/2,c,d,f,g,h,!0,j)),o}function jp(a,b,c,d,f){const h=[];for(let i=0;i=d&&n.x>=d||(m.x>=d?m=new g(d,m.y+(d-m.x)/(n.x-m.x)*(n.y-m.y))._round():n.x>=d&&(n=new g(d,m.y+(d-m.x)/(n.x-m.x)*(n.y-m.y))._round()),m.y>=f&&n.y>=f||(m.y>=f?m=new g(m.x+(f-m.y)/(n.y-m.y)*(n.x-m.x),f)._round():n.y>=f&&(n=new g(m.x+(f-m.y)/(n.y-m.y)*(n.x-m.x),f)._round()),k&&m.equals(k[k.length-1])||(k=[m],h.push(k)),k.push(n)))))}}return h}function jq(a,b,c,d,f,g,h,i,j){for(let k=b;k -1)g[++j]=i,h[j]=k,h[j+1]=1e20}for(let n=0,o=0;n{let d=this.entries[a];d||(d=this.entries[a]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let f=d.glyphs[b];if(void 0!==f)return void c(null,{stack:a,id:b,glyph:f});if(f=this._tinySDF(d,a,b))return d.glyphs[b]=f,void c(null,{stack:a,id:b,glyph:f});const g=Math.floor(b/256);if(256*g>65535)return void c(Error("glyphs > 65535 not supported"));if(d.ranges[g])return void c(null,{stack:a,id:b,glyph:f});let h=d.requests[g];h||(h=d.requests[g]=[],jt.loadGlyphRange(a,g,this.url,this.requestManager,(a,b)=>{if(b){for(const c in d.ascender=b.ascender,d.descender=b.descender,b.glyphs)this._doesCharSupportLocalGlyph(+c)||(d.glyphs[+c]=b.glyphs[+c]);d.ranges[g]=!0}for(const f of h)f(a,b);delete d.requests[g]})),h.push((d,f)=>{d?c(d):f&&c(null,{stack:a,id:b,glyph:f.glyphs[b]||null})})},(a,c)=>{if(a)b(a);else if(c){const d={};for(const{stack:f,id:g,glyph:h}of c)void 0===d[f]&&(d[f]={}),void 0===d[f].glyphs&&(d[f].glyphs={}),d[f].glyphs[g]=h&&{id:h.id,bitmap:h.bitmap.clone(),metrics:h.metrics},d[f].ascender=this.entries[f].ascender,d[f].descender=this.entries[f].descender;b(null,d)}})}_doesCharSupportLocalGlyph(a){return this.localGlyphMode!==js.none&&(this.localGlyphMode===js.all?!!this.localFontFamily:!!this.localFontFamily&&(ez(a)||eC(a)||eq(a)||er(a))||ep(a))}_tinySDF(a,b,c){const d=this.localFontFamily;if(!d||!this._doesCharSupportLocalGlyph(c))return;let f=a.tinySDF;if(!f){let g="400";/bold/i.test(b)?g="900":/medium/i.test(b)?g="500":/light/i.test(b)&&(g="200"),(f=a.tinySDF=new jt.TinySDF({fontFamily:d,fontWeight:g,fontSize:48,buffer:6,radius:16})).fontWeight=g}if(this.localGlyphs[f.fontWeight][c])return this.localGlyphs[f.fontWeight][c];const h=String.fromCharCode(c),{data:i,width:j,height:k,glyphWidth:l,glyphHeight:m,glyphLeft:n,glyphTop:o,glyphAdvance:p}=f.draw(h);return this.localGlyphs[f.fontWeight][c]={id:c,bitmap:new ha({width:j,height:k},i),metrics:{width:l/2,height:m/2,left:n/2,top:o/2-27,advance:p/2,localGlyph:!0}}}}function ju(a,b,c,d){const f=[],h=a.image,i=h.pixelRatio,j=h.paddedRect.w-2,k=h.paddedRect.h-2,l=a.right-a.left,m=a.bottom-a.top,n=h.stretchX||[[0,j]],o=h.stretchY||[[0,k]],p=(a,b)=>a+b[1]-b[0],q=n.reduce(p,0),r=o.reduce(p,0),s=j-q,u=k-r;let v=0,w=q,x=0,y=r,z=0,A=s,B=0,C=u;if(h.content&&d){const D=h.content;v=jv(n,0,D[0]),x=jv(o,0,D[1]),w=jv(n,D[0],D[2]),y=jv(o,D[1],D[3]),z=D[0]-v,B=D[1]-x,A=D[2]-D[0]-w,C=D[3]-D[1]-y}const E=(d,f,j,k)=>{const n=(d.stretch-v)/w*l+a.left,o=d.fixed-z-A*d.stretch/q,p=(f.stretch-x)/y*m+a.top,s=f.fixed-B-C*f.stretch/r,u=(j.stretch-v)/w*l+a.left,D=j.fixed-z-A*j.stretch/q,E=(k.stretch-x)/y*m+a.top,F=k.fixed-B-C*k.stretch/r,G=new g(n,p),H=new g(u,p),I=new g(u,E),J=new g(n,E),K=new g(o/i,s/i),L=new g(D/i,F/i),M=b*Math.PI/180;if(M){const N=Math.sin(M),O=Math.cos(M),P=[O,-N,N,O];G._matMult(P),H._matMult(P),J._matMult(P),I._matMult(P)}const Q=d.stretch+d.fixed,R=f.stretch+f.fixed;return{tl:G,tr:H,bl:J,br:I,tex:{x:h.paddedRect.x+1+Q,y:h.paddedRect.y+1+R,w:j.stretch+j.fixed-Q,h:k.stretch+k.fixed-R},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:K,pixelOffsetBR:L,minFontScaleX:A/i/l,minFontScaleY:C/i/m,isSDF:c}};if(d&&(h.stretchX||h.stretchY)){const F=jw(n,s,q),G=jw(o,u,r);for(let H=0;H{if(a)f(a);else if(b){var c;const d={},g=(c=b,new iG(c).readFields(iX,{}));for(const h of g.glyphs)d[h.id]=h;f(null,{glyphs:d,ascender:g.ascender,descender:g.descender})}})},jt.TinySDF=class{constructor({fontSize:a=24,buffer:b=3,radius:c=8,cutoff:d=.25,fontFamily:f="sans-serif",fontWeight:g="normal",fontStyle:h="normal"}){this.buffer=b,this.cutoff=d,this.radius=c;const i=this.size=a+4*b,j=this._createCanvas(i),k=this.ctx=j.getContext("2d",{willReadFrequently:!0});k.font=`${h} ${g} ${a}px ${f}`,k.textBaseline="alphabetic",k.textAlign="left",k.fillStyle="black",this.gridOuter=new Float64Array(i*i),this.gridInner=new Float64Array(i*i),this.f=new Float64Array(i),this.z=new Float64Array(i+1),this.v=new Uint16Array(i)}_createCanvas(a){const b=document.createElement("canvas");return b.width=b.height=a,b}draw(a){const{width:b,actualBoundingBoxAscent:c,actualBoundingBoxDescent:d,actualBoundingBoxLeft:f,actualBoundingBoxRight:g}=this.ctx.measureText(a),h=Math.floor(c),i=Math.min(this.size-this.buffer,Math.ceil(g-f)),j=Math.min(this.size-this.buffer,Math.ceil(c)+Math.ceil(d)),k=i+2*this.buffer,l=j+2*this.buffer,m=k*l,n=new Uint8ClampedArray(m),o={data:n,width:k,height:l,glyphWidth:i,glyphHeight:j,glyphTop:h,glyphLeft:0,glyphAdvance:b};if(0===i||0===j)return o;const{ctx:p,buffer:q,gridInner:r,gridOuter:s}=this;p.clearRect(q,q,i,j),p.fillText(a,q,q+h+1);const u=p.getImageData(q,q,i,j);s.fill(1e20,0,m),r.fill(0,0,m);for(let v=0;v0?z*z:0,r[y]=z<0?z*z:0}}jq(s,0,0,k,l,k,this.f,this.v,this.z),jq(r,q,q,i,j,k,this.f,this.v,this.z);for(let A=0;Ab?1:0}){if(this.data=a,this.length=this.data.length,this.compare=b,this.length>0)for(let c=(this.length>>1)-1;c>=0;c--)this._down(c)}push(a){this.data.push(a),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const a=this.data[0],b=this.data.pop();return this.length--,this.length>0&&(this.data[0]=b,this._down(0)),a}peek(){return this.data[0]}_up(a){const{data:b,compare:c}=this,d=b[a];for(;a>0;){const f=a-1>>1,g=b[f];if(c(d,g)>=0)break;b[a]=g,a=f}b[a]=d}_down(a){const{data:b,compare:c}=this,d=this.length>>1,f=b[a];for(;ac(b[i],h)&&(g=i,h=b[i]),c(h,f)>=0)break;b[a]=h,a=g}b[a]=f}}function jz(a,b=1,c=!1){let d=1/0,f=1/0,h=-1/0,i=-1/0;const j=a[0];for(let k=0;kh)&&(h=l.x),(!k||l.y>i)&&(i=l.y)}const m=Math.min(h-d,i-f);let n=m/2;const o=new jy([],jA);if(0===m)return new g(d,f);for(let p=d;pr.d||!r.d)&&(r=u,c&&console.log("found best %d after %d probes",Math.round(1e4*u.d)/1e4,s)),u.max-r.d<=b||(n=u.h/2,o.push(new jB(u.p.x-n,u.p.y-n,n,a)),o.push(new jB(u.p.x+n,u.p.y-n,n,a)),o.push(new jB(u.p.x-n,u.p.y+n,n,a)),o.push(new jB(u.p.x+n,u.p.y+n,n,a)),s+=4)}return c&&(console.log(`num probes: ${s}`),console.log(`best distance: ${r.d}`)),r.p}function jA(a,b){return b.max-a.max}function jB(a,b,c,d){this.p=new g(a,b),this.h=c,this.d=function(a,b){let c=!1,d=1/0;for(let f=0;fa.y!=l.y>a.y&&a.x<(l.x-k.x)*(a.y-k.y)/(l.y-k.y)+k.x&&(c=!c),d=Math.min(d,gQ(a,k,l))}}return(c?1:-1)*Math.sqrt(d)}(this.p,d),this.max=this.d+this.h*Math.SQRT2}const jC=Number.POSITIVE_INFINITY,jD=Math.sqrt(2);function jE(a,b){return b[1]!==jC?function(a,b,c){let d=0,f=0;switch(b=Math.abs(b),c=Math.abs(c),a){case"top-right":case"top-left":case"top":f=c-7;break;case"bottom-right":case"bottom-left":case"bottom":f=7-c}switch(a){case"top-right":case"bottom-right":case"right":d=-b;break;case"top-left":case"bottom-left":case"left":d=b}return[d,f]}(a,b[0],b[1]):function(a,b){let c=0,d=0;b<0&&(b=0);const f=b/jD;switch(a){case"top-right":case"top-left":d=f-7;break;case"bottom-right":case"bottom-left":d=7-f;break;case"bottom":d=7-b;break;case"top":d=b-7}switch(a){case"top-right":case"bottom-right":c=-f;break;case"top-left":case"bottom-left":c=f;break;case"left":c=b;break;case"right":c=-b}return[c,d]}(a,b[0])}function jF(a,b,c,d,f,g,h,i,j,k){a.createArrays(),a.tilePixelRatio=8192/(512*a.overscaling),a.compareText={},a.iconsNeedLinear=!1;const l=a.layers[0].layout,m=a.layers[0]._unevaluatedLayout._values,n={};if("composite"===a.textSizeData.kind){const{minZoom:o,maxZoom:p}=a.textSizeData;n.compositeTextSizes=[m["text-size"].possiblyEvaluate(new e2(o),i),m["text-size"].possiblyEvaluate(new e2(p),i),]}if("composite"===a.iconSizeData.kind){const{minZoom:q,maxZoom:r}=a.iconSizeData;n.compositeIconSizes=[m["icon-size"].possiblyEvaluate(new e2(q),i),m["icon-size"].possiblyEvaluate(new e2(r),i),]}n.layoutTextSize=m["text-size"].possiblyEvaluate(new e2(j+1),i),n.layoutIconSize=m["icon-size"].possiblyEvaluate(new e2(j+1),i),n.textMaxSize=m["text-size"].possiblyEvaluate(new e2(18),i);const s="map"===l.get("text-rotation-alignment")&&"point"!==l.get("symbol-placement"),u=l.get("text-size");for(const v of a.features){const w=l.get("text-font").evaluate(v,{},i).join(","),x=u.evaluate(v,{},i),y=n.layoutTextSize.evaluate(v,{},i),z=(n.layoutIconSize.evaluate(v,{},i),{horizontal:{},vertical:void 0}),A=v.text;let B,C=[0,0];if(A){const D=A.toString(),E=24*l.get("text-letter-spacing").evaluate(v,{},i),F=24*l.get("text-line-height").evaluate(v,{},i),G=eL(D)?E:0,H=l.get("text-anchor").evaluate(v,{},i),I=l.get("text-variable-anchor");if(!I){const J=l.get("text-radial-offset").evaluate(v,{},i);C=J?jE(H,[24*J,jC]):l.get("text-offset").evaluate(v,{},i).map(a=>24*a)}let K=s?"center":l.get("text-justify").evaluate(v,{},i);const L=l.get("symbol-placement"),M="point"===L,N="point"===L?24*l.get("text-max-width").evaluate(v,{},i):0,O=d=>{a.allowVerticalPlacement&&eK(D)&&(z.vertical=i4(A,b,c,f,w,N,F,H,d,G,C,i1.vertical,!0,L,y,x))};if(!s&&I){const P="auto"===K?I.map(a=>jG(a)):[K];let Q=!1;for(let R=0;R=0||!eK(D)){const U=i4(A,b,c,f,w,N,F,H,K,G,C,i1.horizontal,!1,L,y,x);U&&(z.horizontal[K]=U)}O("point"===L?"left":K)}}let V=!1;if(v.icon&&v.icon.name){const W=d[v.icon.name];W&&(B=jf(f[v.icon.name],l.get("icon-offset").evaluate(v,{},i),l.get("icon-anchor").evaluate(v,{},i)),V=W.sdf,void 0===a.sdfIcons?a.sdfIcons=W.sdf:a.sdfIcons!==W.sdf&&am("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(W.pixelRatio!==a.pixelRatio||0!==l.get("icon-rotate").constantOr(1))&&(a.iconsNeedLinear=!0))}const X=jK(z.horizontal)||z.vertical;a.iconsInText||(a.iconsInText=!!X&&X.iconsInText),(X||B)&&jH(a,v,z,B,d,n,y,0,C,V,h,i,k)}g&&a.generateCollisionDebugBuffers(j,a.collisionBoxArray)}function jG(a){switch(a){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function jH(a,b,c,d,f,g,h,i,j,k,l,m,n){let o=g.textMaxSize.evaluate(b,{},m);void 0===o&&(o=h);const p=a.layers[0].layout,q=p.get("icon-offset").evaluate(b,{},m),r=jK(c.horizontal)||c.vertical,s=h/24,u=a.tilePixelRatio*o/24,v=a.tilePixelRatio*p.get("symbol-spacing"),w=p.get("text-padding")*a.tilePixelRatio,x=p.get("icon-padding")*a.tilePixelRatio,y=p.get("text-max-angle")*P,z="map"===p.get("text-rotation-alignment")&&"point"!==p.get("symbol-placement"),A="map"===p.get("icon-rotation-alignment")&&"point"!==p.get("symbol-placement"),B=p.get("symbol-placement"),C=v/2,D=p.get("icon-text-fit");let E;d&&"none"!==D&&(a.allowVerticalPlacement&&c.vertical&&(E=jg(d,c.vertical,D,p.get("icon-text-fit-padding"),q,s)),r&&(d=jg(d,r,D,p.get("icon-text-fit-padding"),q,s)));const F=(h,i,o)=>{if(i.x<0||i.x>=8192||i.y<0||i.y>=8192)return;const{x:p,y:r,z:s}=n.projectTilePoint(i.x,i.y,o),u=new jh(p,r,s,0,void 0);!function(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v,w,x,y,z,A){const B=a.addToLineVertexArray(b,d);let C,D,E,F,G,H,I,J=0,K=0,L=0,M=0,N=-1,O=-1;const P={};let Q=fZ(""),R=0,S=0;if(void 0===j._unevaluatedLayout.getValue("text-radial-offset")?[R,S]=j.layout.get("text-offset").evaluate(w,{},A).map(a=>24*a):(R=24*j.layout.get("text-radial-offset").evaluate(w,{},A),S=jC),a.allowVerticalPlacement&&f.vertical){const T=f.vertical;if(p)H=jM(T),i&&(I=jM(i));else{const U=j.layout.get("text-rotate").evaluate(w,{},A)+90;E=jL(k,c,b,l,m,n,T,o,U,q),i&&(F=jL(k,c,b,l,m,n,i,s,U))}}if(g){const V=j.layout.get("icon-rotate").evaluate(w,{},A),W="none"!==j.layout.get("icon-text-fit"),X=ju(g,V,y,W),Y=i?ju(i,V,y,W):void 0;D=jL(k,c,b,l,m,n,g,s,V),J=4*X.length;const Z=a.iconSizeData;let $=null;"source"===Z.kind?($=[128*j.layout.get("icon-size").evaluate(w,{},A),])[0]>jI&&am(`${a.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`):"composite"===Z.kind&&(($=[128*x.compositeIconSizes[0].evaluate(w,{},A),128*x.compositeIconSizes[1].evaluate(w,{},A),])[0]>jI||$[1]>jI)&&am(`${a.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`),a.addSymbols(a.icon,X,$,v,u,w,!1,c,b,B.lineStartIndex,B.lineLength,-1,z,A),N=a.icon.placedSymbolArray.length-1,Y&&(K=4*Y.length,a.addSymbols(a.icon,Y,$,v,u,w,i1.vertical,c,b,B.lineStartIndex,B.lineLength,-1,z,A),O=a.icon.placedSymbolArray.length-1)}for(const _ in f.horizontal){const aa=f.horizontal[_];C||(Q=fZ(aa.text),p?G=jM(aa):C=jL(k,c,b,l,m,n,aa,o,j.layout.get("text-rotate").evaluate(w,{},A),q));const ab=1===aa.positionedLines.length;if(L+=jJ(a,c,b,aa,h,j,p,w,q,B,f.vertical?i1.horizontal:i1.horizontalOnly,ab?Object.keys(f.horizontal):[_],P,N,x,z,A),ab)break}f.vertical&&(M+=jJ(a,c,b,f.vertical,h,j,p,w,q,B,i1.vertical,["vertical"],P,O,x,z,A));let ac=-1;const ad=(a,b)=>a?Math.max(a,b):b;ac=ad(G,ac),ac=ad(H,ac),ac=ad(I,ac);const ae=ac> -1?1:0;a.glyphOffsetArray.length>=jV.MAX_GLYPHS&&am("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==w.sortKey&&a.addToSortKeyRanges(a.symbolInstances.length,w.sortKey),a.symbolInstances.emplaceBack(c.x,c.y,c.z,b.x,b.y,P.right>=0?P.right:-1,P.center>=0?P.center:-1,P.left>=0?P.left:-1,P.vertical>=0?P.vertical:-1,N,O,Q,void 0!==C?C:a.collisionBoxArray.length,void 0!==C?C+1:a.collisionBoxArray.length,void 0!==E?E:a.collisionBoxArray.length,void 0!==E?E+1:a.collisionBoxArray.length,void 0!==D?D:a.collisionBoxArray.length,void 0!==D?D+1:a.collisionBoxArray.length,F||a.collisionBoxArray.length,F?F+1:a.collisionBoxArray.length,l,L,M,J,K,ae,0,R,S,ac)}(a,i,u,h,c,d,f,E,a.layers[0],a.collisionBoxArray,b.index,b.sourceLayerIndex,a.index,w,z,j,0,x,A,q,b,g,k,l,m)};if("line"===B)for(const G of jp(b.geometry,0,0,8192,8192)){const H=jn(G,v,y,c.vertical||r,d,24,u,a.overscaling,8192);for(const I of H){const J=r;J&&jN(a,J.text,C,I)||F(G,I,m)}}else if("line-center"===B){for(const K of b.geometry)if(K.length>1){const L=jm(K,y,c.vertical||r,d,24,u);L&&F(K,L,m)}}else if("Polygon"===b.type)for(const M of hM(b.geometry,0)){const N=jz(M,16);F(M[0],new jh(N.x,N.y,0,0,void 0),m)}else if("LineString"===b.type)for(const O of b.geometry)F(O,new jh(O[0].x,O[0].y,0,0,void 0),m);else if("Point"===b.type)for(const Q of b.geometry)for(const R of Q)F([R],new jh(R.x,R.y,0,0,void 0),m)}const jI=32640;function jJ(a,b,c,d,f,h,i,j,k,l,m,n,o,p,q,r,s){const u=function(a,b,c,d,f,h,i,j){const k=[];if(0===b.positionedLines.length)return k;const l=d.layout.get("text-rotate").evaluate(h,{})*Math.PI/180,m=function(a){const b=a[0],c=a[1],d=b*c;return d>0?[b,-c]:d<0?[-b,c]:0===b?[c,b]:[c,-b]}(c);let n=Math.abs(b.top-b.bottom);for(const o of b.positionedLines)n-=o.lineOffset;const p=b.positionedLines.length,q=n/p;let r=b.top-c[1];for(let s=0;sjI&&am(`${a.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`):"composite"===v.kind&&((w=[128*q.compositeTextSizes[0].evaluate(j,{},s),128*q.compositeTextSizes[1].evaluate(j,{},s),])[0]>jI||w[1]>jI)&&am(`${a.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`),a.addSymbols(a.text,u,w,k,i,j,m,b,c,l.lineStartIndex,l.lineLength,p,r,s),n))o[x]=a.text.placedSymbolArray.length-1;return 4*u.length}function jK(a){for(const b in a)return a[b];return null}function jL(a,b,c,d,f,h,i,j,k,l){let m=i.top,n=i.bottom,o=i.left,p=i.right;const q=i.collisionPadding;if(q&&(o-=q[0],m-=q[1],p+=q[2],n+=q[3]),k){const r=new g(o,m),s=new g(p,m),u=new g(o,n),v=new g(p,n),w=k*P;let x=new g(0,0);l&&(x=new g(l[0],l[1])),r._rotateAround(w,x),s._rotateAround(w,x),u._rotateAround(w,x),v._rotateAround(w,x),o=Math.min(r.x,s.x,u.x,v.x),p=Math.max(r.x,s.x,u.x,v.x),m=Math.min(r.y,s.y,u.y,v.y),n=Math.max(r.y,s.y,u.y,v.y)}return a.emplaceBack(b.x,b.y,b.z,c.x,c.y,o,m,p,n,j,d,f,h),a.length-1}function jM(a){a.collisionPadding&&(a.top-=a.collisionPadding[1],a.bottom+=a.collisionPadding[3]);const b=a.bottom-a.top;return b>0?Math.max(10,b):null}function jN(a,b,c,d){const f=a.compareText;if(b in f){const g=f[b];for(let h=g.length-1;h>=0;h--)if(d.dist(g[h])a.id),this.index=a.index,this.pixelRatio=a.pixelRatio,this.sourceLayerIndex=a.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=l([]),this.placementViewportMatrix=l([]);const b=this.layers[0]._unevaluatedLayout._values;this.textSizeData=iw(this.zoom,b["text-size"]),this.iconSizeData=iw(this.zoom,b["icon-size"]);const c=this.layers[0].layout,d=c.get("symbol-sort-key"),f=c.get("symbol-z-order");this.canOverlap=c.get("text-allow-overlap")||c.get("icon-allow-overlap")||c.get("text-ignore-placement")||c.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==f&& void 0!==d.constantOr(1),this.sortFeaturesByY=("viewport-y"===f||"auto"===f&&!this.sortFeaturesByKey)&&this.canOverlap,this.writingModes=c.get("text-writing-mode").map(a=>i1[a]),this.stateDependentLayerIds=this.layers.filter(a=>a.isStateDependent()).map(a=>a.id),this.sourceID=a.sourceID}createArrays(){this.text=new jT(new gg(this.layers,this.zoom,a=>/^text/.test(a))),this.icon=new jT(new gg(this.layers,this.zoom,a=>/^icon/.test(a))),this.glyphOffsetArray=new fP,this.lineVertexArray=new fQ,this.symbolInstances=new fO}calculateGlyphDependencies(a,b,c,d,f){for(let g=0;g0)&&("constant"!==h.value.kind||h.value.value.length>0),l="constant"!==j.value.kind||!!j.value.value||Object.keys(j.parameters).length>0,m=g.get("symbol-sort-key");if(this.features=[],!k&&!l)return;const n=b.iconDependencies,o=b.glyphDependencies,p=b.availableImages,q=new e2(this.zoom);for(const{feature:r,id:s,index:u,sourceLayerIndex:v}of a){const w=f._featureFilter.needGeometry,x=gG(r,w);if(!f._featureFilter.filter(q,x,c))continue;let y,z;if(w||(x.geometry=gF(r,c,d)),k){const A=f.getValueAndResolveTokens("text-field",x,c,p),B=bN.factory(A);jS(B)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===e_()||this.hasRTLText&&e1.isParsed())&&(y=iA(B,f,x))}if(l){const C=f.getValueAndResolveTokens("icon-image",x,c,p);z=C instanceof bO?C:bO.fromString(C)}if(!y&&!z)continue;const D=this.sortFeaturesByKey?m.evaluate(x,{},c):void 0;if(this.features.push({id:s,text:y,icon:z,index:u,sourceLayerIndex:v,geometry:x.geometry,properties:r.properties,type:jO[r.type],sortKey:D}),z&&(n[z.name]=!0),y){const E=h.evaluate(x,{},c).join(","),F="map"===g.get("text-rotation-alignment")&&"point"!==g.get("symbol-placement");for(const G of(this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i1.vertical)>=0,y.sections))if(G.image)n[G.image.name]=!0;else{const H=eK(y.toString()),I=G.fontStack||E,J=o[I]=o[I]||{};this.calculateGlyphDependencies(G.text,J,F,this.allowVerticalPlacement,H)}}}"line"===g.get("symbol-placement")&&(this.features=function(a){const b={},c={},d=[];let f=0;function g(b){d.push(a[b]),f++}function h(a,b,f){const g=c[a];return delete c[a],c[b]=g,d[g].geometry[0].pop(),d[g].geometry[0]=d[g].geometry[0].concat(f[0]),g}function i(a,c,f){const g=b[c];return delete b[c],b[a]=g,d[g].geometry[0].shift(),d[g].geometry[0]=f[0].concat(d[g].geometry[0]),g}function j(a,b,c){const d=c?b[0][b[0].length-1]:b[0][0];return`${a}:${d.x}:${d.y}`}for(let k=0;ka.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((a,b)=>a.sortKey-b.sortKey)}update(a,b,c,d){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(a,b,this.layers,c,d),this.icon.programConfigurations.updatePaintArrays(a,b,this.layers,c,d))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(a){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(a),this.iconCollisionBox.upload(a)),this.text.upload(a,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(a,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(a,b){const c=this.lineVertexArray.length;if(void 0!==a.segment){let d=a.dist(b[a.segment+1]),f=a.dist(b[a.segment]);const g={};for(let h=a.segment+1;h=0;i--)g[i]={x:b[i].x,y:b[i].y,tileUnitDistanceFromAnchor:f},i>0&&(f+=b[i-1].dist(b[i]));for(let j=0;j=0?b.rightJustifiedTextSymbolIndex:b.centerJustifiedTextSymbolIndex>=0?b.centerJustifiedTextSymbolIndex:b.leftJustifiedTextSymbolIndex>=0?b.leftJustifiedTextSymbolIndex:b.verticalPlacedTextSymbolIndex>=0?b.verticalPlacedTextSymbolIndex:d),g=ix(this.textSizeData,a,f)/24;return this.tilePixelRatio*g}getSymbolInstanceIconSize(a,b,c){const d=this.icon.placedSymbolArray.get(c),f=ix(this.iconSizeData,a,d);return this.tilePixelRatio*f}_commitDebugCollisionVertexUpdate(a,b,c){a.emplaceBack(b,-c,-c),a.emplaceBack(b,c,-c),a.emplaceBack(b,c,c),a.emplaceBack(b,-c,c)}_updateTextDebugCollisionBoxes(a,b,c,d,f,g){for(let h=d;h0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(a,b){const c=a.placedSymbolArray.get(b),d=c.vertexStartIndex+4*c.numGlyphs;for(let f=c.vertexStartIndex;fd[a]-d[b]||f[b]-f[a]),g}addToSortKeyRanges(a,b){const c=this.sortKeyRanges[this.sortKeyRanges.length-1];c&&c.sortKey===b?c.symbolInstanceEnd=a+1:this.sortKeyRanges.push({sortKey:b,symbolInstanceStart:a,symbolInstanceEnd:a+1})}sortFeatures(a){if(this.sortFeaturesByY&&this.sortedAngle!==a&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){for(const b of(this.symbolInstanceIndexes=this.getSortedSymbolIndexes(a),this.sortedAngle=a,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[],this.symbolInstanceIndexes)){const c=this.symbolInstances.get(b);this.featureSortOrder.push(c.featureIndex),[c.rightJustifiedTextSymbolIndex,c.centerJustifiedTextSymbolIndex,c.leftJustifiedTextSymbolIndex,].forEach((a,b,c)=>{a>=0&&c.indexOf(a)===b&&this.addIndicesForPlacedSymbol(this.text,a)}),c.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,c.verticalPlacedTextSymbolIndex),c.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,c.placedIconSymbolIndex),c.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,c.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}ec("SymbolBucket",jV,{omit:["layers","collisionBoxArray","features","compareText",]}),jV.MAX_GLYPHS=65535,jV.addDynamicAttributes=jR;const jW=new ff({"symbol-placement":new fa(bk.layout_symbol["symbol-placement"]),"symbol-spacing":new fa(bk.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new fa(bk.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new fb(bk.layout_symbol["symbol-sort-key"]),"symbol-z-order":new fa(bk.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new fa(bk.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new fa(bk.layout_symbol["icon-ignore-placement"]),"icon-optional":new fa(bk.layout_symbol["icon-optional"]),"icon-rotation-alignment":new fa(bk.layout_symbol["icon-rotation-alignment"]),"icon-size":new fb(bk.layout_symbol["icon-size"]),"icon-text-fit":new fa(bk.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new fa(bk.layout_symbol["icon-text-fit-padding"]),"icon-image":new fb(bk.layout_symbol["icon-image"]),"icon-rotate":new fb(bk.layout_symbol["icon-rotate"]),"icon-padding":new fa(bk.layout_symbol["icon-padding"]),"icon-keep-upright":new fa(bk.layout_symbol["icon-keep-upright"]),"icon-offset":new fb(bk.layout_symbol["icon-offset"]),"icon-anchor":new fb(bk.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new fa(bk.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new fa(bk.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new fa(bk.layout_symbol["text-rotation-alignment"]),"text-field":new fb(bk.layout_symbol["text-field"]),"text-font":new fb(bk.layout_symbol["text-font"]),"text-size":new fb(bk.layout_symbol["text-size"]),"text-max-width":new fb(bk.layout_symbol["text-max-width"]),"text-line-height":new fb(bk.layout_symbol["text-line-height"]),"text-letter-spacing":new fb(bk.layout_symbol["text-letter-spacing"]),"text-justify":new fb(bk.layout_symbol["text-justify"]),"text-radial-offset":new fb(bk.layout_symbol["text-radial-offset"]),"text-variable-anchor":new fa(bk.layout_symbol["text-variable-anchor"]),"text-anchor":new fb(bk.layout_symbol["text-anchor"]),"text-max-angle":new fa(bk.layout_symbol["text-max-angle"]),"text-writing-mode":new fa(bk.layout_symbol["text-writing-mode"]),"text-rotate":new fb(bk.layout_symbol["text-rotate"]),"text-padding":new fa(bk.layout_symbol["text-padding"]),"text-keep-upright":new fa(bk.layout_symbol["text-keep-upright"]),"text-transform":new fb(bk.layout_symbol["text-transform"]),"text-offset":new fb(bk.layout_symbol["text-offset"]),"text-allow-overlap":new fa(bk.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new fa(bk.layout_symbol["text-ignore-placement"]),"text-optional":new fa(bk.layout_symbol["text-optional"])});var jX={paint:new ff({"icon-opacity":new fb(bk.paint_symbol["icon-opacity"]),"icon-color":new fb(bk.paint_symbol["icon-color"]),"icon-halo-color":new fb(bk.paint_symbol["icon-halo-color"]),"icon-halo-width":new fb(bk.paint_symbol["icon-halo-width"]),"icon-halo-blur":new fb(bk.paint_symbol["icon-halo-blur"]),"icon-translate":new fa(bk.paint_symbol["icon-translate"]),"icon-translate-anchor":new fa(bk.paint_symbol["icon-translate-anchor"]),"text-opacity":new fb(bk.paint_symbol["text-opacity"]),"text-color":new fb(bk.paint_symbol["text-color"],{runtimeType:bw,getOverride:a=>a.textColor,hasOverride:a=>!!a.textColor}),"text-halo-color":new fb(bk.paint_symbol["text-halo-color"]),"text-halo-width":new fb(bk.paint_symbol["text-halo-width"]),"text-halo-blur":new fb(bk.paint_symbol["text-halo-blur"]),"text-translate":new fa(bk.paint_symbol["text-translate"]),"text-translate-anchor":new fa(bk.paint_symbol["text-translate-anchor"])}),layout:jW};class jY{constructor(a){this.type=a.property.overrides?a.property.overrides.runtimeType:bs,this.defaultValue=a}evaluate(a){if(a.formattedSection){const b=this.defaultValue.property.overrides;if(b&&b.hasOverride(a.formattedSection))return b.getOverride(a.formattedSection)}return a.feature&&a.featureState?this.defaultValue.evaluate(a.feature,a.featureState):this.defaultValue.property.specification.default}eachChild(a){this.defaultValue.isConstant()||a(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}ec("FormatSectionOverride",jY,{omit:["defaultValue"]});class jZ extends gn{constructor(a){super(a,jX)}recalculate(a,b){super.recalculate(a,b),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"));const c=this.layout.get("text-writing-mode");if(c){const d=[];for(const f of c)0>d.indexOf(f)&&d.push(f);this.layout._values["text-writing-mode"]=d}else this.layout._values["text-writing-mode"]="point"===this.layout.get("symbol-placement")?["horizontal"]:["horizontal","vertical"];this._setPaintOverrides()}getValueAndResolveTokens(a,b,c,d){var f;const g=this.layout.get(a).evaluate(b,{},c,d),h=this._unevaluatedLayout._values[a];return h.isDataDriven()||dj(h.value)||!g?g:(f=b.properties,g.replace(/{([^{}]+)}/g,(a,b)=>b in f?String(f[b]):""))}createBucket(a){return new jV(a)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const a of jX.paint.overridableProperties){if(!jZ.hasPaintOverride(this.layout,a))continue;const b=this.paint.get(a),c=new jY(b),d=new di(c,b.property.specification);let f=null;f="constant"===b.value.kind||"source"===b.value.kind?new dl("source",d):new dm("composite",d,b.value.zoomStops,b.value._interpolationType),this.paint._values[a]=new e8(b.property,f,b.parameters)}}_handleOverridablePaintPropertyUpdate(a,b,c){return!(!this.layout||b.isDataDriven()||c.isDataDriven())&&jZ.hasPaintOverride(this.layout,a)}static hasPaintOverride(a,b){const c=a.get("text-field"),d=jX.paint.properties[b];let f=!1;const g=a=>{for(const b of a)if(d.overrides&&d.overrides.hasOverride(b))return void(f=!0)};if("constant"===c.value.kind&&c.value.value instanceof bN)g(c.value.value.sections);else if("source"===c.value.kind){const h=a=>{f||(a instanceof bT&&bR(a.value)===bA?g(a.value.sections):a instanceof bX?g(a.sections):a.eachChild(h))},i=c.value;i._styleExpression&&h(i._styleExpression.expression)}return f}getProgramConfiguration(a){return new gf(this,a)}}var j$={paint:new ff({"background-color":new fa(bk.paint_background["background-color"]),"background-pattern":new fd(bk.paint_background["background-pattern"]),"background-opacity":new fa(bk.paint_background["background-opacity"])})},j_={paint:new ff({"raster-opacity":new fa(bk.paint_raster["raster-opacity"]),"raster-hue-rotate":new fa(bk.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new fa(bk.paint_raster["raster-brightness-min"]),"raster-brightness-max":new fa(bk.paint_raster["raster-brightness-max"]),"raster-saturation":new fa(bk.paint_raster["raster-saturation"]),"raster-contrast":new fa(bk.paint_raster["raster-contrast"]),"raster-resampling":new fa(bk.paint_raster["raster-resampling"]),"raster-fade-duration":new fa(bk.paint_raster["raster-fade-duration"])})};class j0 extends gn{constructor(a){super(a,{}),this.implementation=a}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){}serialize(){}onAdd(a){this.implementation.onAdd&&this.implementation.onAdd(a,a.painter.context.gl)}onRemove(a){this.implementation.onRemove&&this.implementation.onRemove(a,a.painter.context.gl)}}var j1={paint:new ff({"sky-type":new fa(bk.paint_sky["sky-type"]),"sky-atmosphere-sun":new fa(bk.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new fa(bk.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new fa(bk.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new fa(bk.paint_sky["sky-gradient-radius"]),"sky-gradient":new fe(bk.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new fa(bk.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new fa(bk.paint_sky["sky-atmosphere-color"]),"sky-opacity":new fa(bk.paint_sky["sky-opacity"])})};function j2(a,b,c){var d,f,g,h,i,j,k,l,m;const n=w(0,0,1),o=M(L());return d=o,f=o,g=c?-(a*P)+Math.PI:a*P,g*=.5,h=f[0],i=f[1],j=f[2],k=f[3],l=Math.sin(g),m=Math.cos(g),d[0]=h*m-j*l,d[1]=i*m+k*l,d[2]=j*m+h*l,d[3]=k*m-i*l,N(o,o,-(b*P)),H(n,n,o),D(n,n)}const j3={circle:class extends gn{constructor(a){super(a,g$)}createBucket(a){return new gI(a)}queryRadius(a){const b=a;return gV("circle-radius",this,b)+gV("circle-stroke-width",this,b)+gW(this.paint.get("circle-translate"))}queryIntersectsFeature(a,b,c,d,f,g,h,i){const j=gY(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),g.angle,a.pixelToTileUnitsFactor),k=this.paint.get("circle-radius").evaluate(b,c)+this.paint.get("circle-stroke-width").evaluate(b,c);return g1(a,d,g,h,i,"map"===this.paint.get("circle-pitch-alignment"),"map"===this.paint.get("circle-pitch-scale"),j,k)}getProgramIds(){return["circle"]}getProgramConfiguration(a){return new gf(this,a)}},heatmap:class extends gn{createBucket(a){return new g6(a)}constructor(a){super(a,hc),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(a){"heatmap-color"===a&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=hd({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(a){return gV("heatmap-radius",this,a)}queryIntersectsFeature(a,b,c,d,f,h,i,j){const k=this.paint.get("heatmap-radius").evaluate(b,c);return g1(a,d,h,i,j,!0,!0,new g(0,0),k)}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}getProgramIds(){return["heatmap","heatmapTexture"]}getProgramConfiguration(a){return new gf(this,a)}},hillshade:class extends gn{constructor(a){super(a,he)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}getProgramIds(){return["hillshade","hillshadePrepare",]}getProgramConfiguration(a){return new gf(this,a)}},fill:class extends gn{constructor(a){super(a,hS)}getProgramIds(){const a=this.paint.get("fill-pattern"),b=a&&a.constantOr(1),c=[b?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&c.push(b&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),c}getProgramConfiguration(a){return new gf(this,a)}recalculate(a,b){super.recalculate(a,b);const c=this.paint._values["fill-outline-color"];"constant"===c.value.kind&& void 0===c.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(a){return new hQ(a)}queryRadius(){return gW(this.paint.get("fill-translate"))}queryIntersectsFeature(a,b,c,d,f,g){return!a.queryGeometry.isAboveHorizon&&gL(gX(a.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),g.angle,a.pixelToTileUnitsFactor),d)}isTileClipped(){return!0}},"fill-extrusion":class extends gn{constructor(a){super(a,h8)}createBucket(a){return new h6(a)}queryRadius(){return gW(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion",]}getProgramConfiguration(a){return new gf(this,a)}queryIntersectsFeature(a,b,c,d,f,h,i,j,k){var l,m,n,o,p,q,r,s,u;const v=gY(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),h.angle,a.pixelToTileUnitsFactor),w=this.paint.get("fill-extrusion-height").evaluate(b,c),x=this.paint.get("fill-extrusion-base").evaluate(b,c),y=[0,0],z=j&&h.elevation,A=h.elevation?h.elevation.exaggeration():1;if(z){const B=a.tile.getBucket(this).centroidVertexArray,C=k+1;if(C=3){for(let g=0;g1&&(i=a[++h]);const k=Math.abs(j-i.left),l=Math.abs(j-i.right),m=Math.min(k,l);let n;const o=f/c*(d+1);if(i.isDash){const p=d-Math.abs(o);n=Math.sqrt(m*m+p*p)}else n=d-Math.sqrt(m*m+o*o);this.image.data[g+j]=Math.max(0,Math.min(255,n+128))}}}addRegularDash(a,b){for(let c=a.length-1;c>=0;--c){const d=a[c],f=a[c+1];d.zeroLength?a.splice(c,1):f&&f.isDash===d.isDash&&(f.left=d.left,a.splice(c,1))}const g=a[0],h=a[a.length-1];g.isDash===h.isDash&&(g.left=h.left-this.width,h.right=g.right+this.width);const i=this.width*this.nextRow;let j=0,k=a[j];for(let l=0;l1&&(k=a[++j]);const m=Math.abs(l-k.left),n=Math.abs(l-k.right),o=Math.min(m,n);this.image.data[i+l]=Math.max(0,Math.min(255,(k.isDash?o:-o)+b+128))}}addDash(a,b){const c=this.getKey(a,b);if(this.positions[c])return this.positions[c];const d="round"===b,f=d?7:0,g=2*f+1;if(this.nextRow+g>this.height)return am("LineAtlas out of space"),null;0===a.length&&a.push(1);let h=0;for(let i=0;i0;g--)f+=(b&(d=1<this.canonical.z?new kg(a,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new kg(a,this.wrap,a,this.canonical.x>>b,this.canonical.y>>b)}calculateScaledKey(a,b=!0){if(this.overscaledZ===a&&b)return this.key;if(a>this.canonical.z)return kh(this.wrap*+b,a,this.canonical.z,this.canonical.x,this.canonical.y);{const c=this.canonical.z-a;return kh(this.wrap*+b,a,a,this.canonical.x>>c,this.canonical.y>>c)}}isChildOf(a){if(a.wrap!==this.wrap)return!1;const b=this.canonical.z-a.canonical.z;return 0===a.overscaledZ||a.overscaledZ>b&&a.canonical.y===this.canonical.y>>b}children(a){if(this.overscaledZ>=a)return[new kg(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y),];const b=this.canonical.z+1,c=2*this.canonical.x,d=2*this.canonical.y;return[new kg(b,this.wrap,b,c,d),new kg(b,this.wrap,b,c+1,d),new kg(b,this.wrap,b,c,d+1),new kg(b,this.wrap,b,c+1,d+1),]}isLessThan(a){return this.wrapa.wrap)&&(this.overscaledZa.overscaledZ)&&(this.canonical.xa.canonical.x)&&this.canonical.yMath.abs(d[h])){if(c[h]b[h])return null}else{const i=1/d[h];let j=(a[h]-c[h])*i,k=(b[h]-c[h])*i;if(j>k){const l=j;j=k,k=l}if(j>f&&(f=j),kg)return null}return f}function kq(a,b,c,d,f,g,h,i,j,k,l){const m=d-a,n=f-b,o=g-c,p=h-a,q=i-b,r=j-c,s=l[1]*r-l[2]*q,u=l[2]*p-l[0]*r,v=l[0]*q-l[1]*p,w=m*s+n*u+o*v;if(1e-15>Math.abs(w))return null;const x=1/w,y=k[0]-a,z=k[1]-b,A=k[2]-c,B=(y*s+z*u+A*v)*x;if(B<0||B>1)return null;const C=z*o-A*n,D=A*m-y*o,E=y*n-z*m,F=(l[0]*C+l[1]*D+l[2]*E)*x;return F<0||B+F>1?null:(p*C+q*D+r*E)*x}function kr(a,b,c,d,f,g,h,i,j){const k=1<{const g=d?1:0,h=(a+1)*c-g,i=b*c,j=(b+1)*c-g;f[0]=a*c,f[1]=i,f[2]=h,f[3]=j};let h=new ko(d);const i=[];for(let j=0;j=1;d/=2){const o=c[c.length-1];h=new ko(d);for(let p=0;p0;){const{idx:o,t:p,nodex:q,nodey:r,depth:s}=n.pop();if(this.leaves[o]){kr(q,r,s,a,b,c,d,l,m);const u=1<=J[2])return p}continue}let K=0;for(let L=0;L=j[k[P]]&&(k.splice(P,0,L),O=!0);O||(k[K]=L),K++}}for(let Q=0;Q=this.dim+1||b< -1||b>=this.dim+1)throw RangeError("out of range source coordinates for DEM data");return(b+1)*this.stride+(a+1)}_unpackMapbox(a,b,c){return(256*a*256+256*b+c)/10-1e4}_unpackTerrarium(a,b,c){return 256*a+b+c/256-32768}static pack(a,b){const c=[0,0,0,0],d=kw.getUnpackVector(b);let f=Math.floor((a+d[3])/d[2]);return c[2]=f%256,f=Math.floor(f/256),c[1]=f%256,f=Math.floor(f/256),c[0]=f,c}getPixels(){return new hb({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(a,b,c){if(this.dim!==a.dim)throw Error("dem dimension mismatch");let d=b*this.dim,f=b*this.dim+this.dim,g=c*this.dim,h=c*this.dim+this.dim;switch(b){case -1:d=f-1;break;case 1:f=d+1}switch(c){case -1:g=h-1;break;case 1:h=g+1}const i=-b*this.dim,j=-c*this.dim;for(let k=g;k{"source"===a.dataType&&"metadata"===a.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===a.dataType&&"content"===a.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform))}),b.on("error",()=>{this._sourceErrored=!0}),this._source=b,this._tiles={},this._cache=new class{constructor(a,b){this.max=a,this.onRemove=b,this.reset()}reset(){for(const a in this.data)for(const b of this.data[a])b.timeout&&clearTimeout(b.timeout),this.onRemove(b.value);return this.data={},this.order=[],this}add(a,b,c){const d=a.wrapped().key;void 0===this.data[d]&&(this.data[d]=[]);const f={value:b,timeout:void 0};if(void 0!==c&&(f.timeout=setTimeout(()=>{this.remove(a,f)},c)),this.data[d].push(f),this.order.push(d),this.order.length>this.max){const g=this._getAndRemoveByKey(this.order[0]);g&&this.onRemove(g)}return this}has(a){return a.wrapped().key in this.data}getAndRemove(a){return this.has(a)?this._getAndRemoveByKey(a.wrapped().key):null}_getAndRemoveByKey(a){const b=this.data[a].shift();return b.timeout&&clearTimeout(b.timeout),0===this.data[a].length&&delete this.data[a],this.order.splice(this.order.indexOf(a),1),b.value}getByKey(a){const b=this.data[a];return b?b[0].value:null}get(a){return this.has(a)?this.data[a.wrapped().key][0].value:null}remove(a,b){if(!this.has(a))return this;const c=a.wrapped().key,d=void 0===b?0:this.data[c].indexOf(b),f=this.data[c][d];return this.data[c].splice(d,1),f.timeout&&clearTimeout(f.timeout),0===this.data[c].length&&delete this.data[c],this.onRemove(f.value),this.order.splice(this.order.indexOf(c),1),this}setMaxSize(a){for(this.max=a;this.order.length>this.max;){const b=this._getAndRemoveByKey(this.order[0]);b&&this.onRemove(b)}return this}filter(a){const b=[];for(const c in this.data)for(const d of this.data[c])a(d.value)||b.push(d);for(const f of b)this.remove(f.value.tileID,f)}}(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._minTileCacheSize=null,this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new class{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(a,b,c){const d=String(b);if(this.stateChanges[a]=this.stateChanges[a]||{},this.stateChanges[a][d]=this.stateChanges[a][d]||{},aa(this.stateChanges[a][d],c),null===this.deletedStates[a])for(const f in this.deletedStates[a]={},this.state[a])f!==d&&(this.deletedStates[a][f]=null);else if(this.deletedStates[a]&&null===this.deletedStates[a][d])for(const g in this.deletedStates[a][d]={},this.state[a][d])c[g]||(this.deletedStates[a][d][g]=null);else for(const h in c)this.deletedStates[a]&&this.deletedStates[a][d]&&null===this.deletedStates[a][d][h]&&delete this.deletedStates[a][d][h]}removeFeatureState(a,b,c){if(null===this.deletedStates[a])return;const d=String(b);if(this.deletedStates[a]=this.deletedStates[a]||{},c&& void 0!==b)null!==this.deletedStates[a][d]&&(this.deletedStates[a][d]=this.deletedStates[a][d]||{},this.deletedStates[a][d][c]=null);else if(void 0!==b){if(this.stateChanges[a]&&this.stateChanges[a][d])for(c in this.deletedStates[a][d]={},this.stateChanges[a][d])this.deletedStates[a][d][c]=null;else this.deletedStates[a][d]=null}else this.deletedStates[a]=null}getState(a,b){const c=String(b),d=aa({},(this.state[a]||{})[c],(this.stateChanges[a]||{})[c]);if(null===this.deletedStates[a])return{};if(this.deletedStates[a]){const f=this.deletedStates[a][b];if(null===f)return{};for(const g in f)delete d[g]}return d}initializeTileState(a,b){a.setFeatureState(this.state,b)}coalesceChanges(a,b){const c={};for(const d in this.stateChanges){this.state[d]=this.state[d]||{};const f={};for(const g in this.stateChanges[d])this.state[d][g]||(this.state[d][g]={}),aa(this.state[d][g],this.stateChanges[d][g]),f[g]=this.state[d][g];c[d]=f}for(const h in this.deletedStates){this.state[h]=this.state[h]||{};const i={};if(null===this.deletedStates[h])for(const j in this.state[h])i[j]={},this.state[h][j]={};else for(const k in this.deletedStates[h]){if(null===this.deletedStates[h][k])this.state[h][k]={};else for(const l of Object.keys(this.deletedStates[h][k]))delete this.state[h][k][l];i[k]=this.state[h][k]}c[h]=c[h]||{},aa(c[h],i)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(c).length)for(const m in a)a[m].setFeatureState(c,b)}}}onAdd(a){this.map=a,this._minTileCacheSize=a?a._minTileCacheSize:null,this._maxTileCacheSize=a?a._maxTileCacheSize:null}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;for(const a in this._tiles){const b=this._tiles[a];if("loaded"!==b.state&&"errored"!==b.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const a=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,a&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(a,b){return a.isSymbolTile=this._onlySymbols,this._source.loadTile(a,b)}_unloadTile(a){if(this._source.unloadTile)return this._source.unloadTile(a,()=>{})}_abortTile(a){if(this._source.abortTile)return this._source.abortTile(a,()=>{})}serialize(){return this._source.serialize()}prepare(a){for(const b in this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){const c=this._tiles[b];c.upload(a),c.prepare(this.map.style.imageManager)}}getIds(){return _(this._tiles).map(a=>a.tileID).sort(ky).map(a=>a.key)}getRenderableIds(a){const b=[];for(const c in this._tiles)this._isIdRenderable(+c,a)&&b.push(this._tiles[c]);return a?b.sort((a,b)=>{const c=a.tileID,d=b.tileID,f=new g(c.canonical.x,c.canonical.y)._rotate(this.transform.angle),h=new g(d.canonical.x,d.canonical.y)._rotate(this.transform.angle);return c.overscaledZ-d.overscaledZ||h.y-f.y||h.x-f.x}).map(a=>a.tileID.key):b.map(a=>a.tileID).sort(ky).map(a=>a.key)}hasRenderableParent(a){const b=this.findLoadedParent(a,0);return!!b&&this._isIdRenderable(b.tileID.key)}_isIdRenderable(a,b){return this._tiles[a]&&this._tiles[a].hasData()&&!this._coveredTiles[a]&&(b||!this._tiles[a].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else for(const a in this._cache.reset(),this._tiles)"errored"!==this._tiles[a].state&&this._reloadTile(+a,"reloading")}_reloadTile(a,b){const c=this._tiles[a];c&&("loading"!==c.state&&(c.state=b),this._loadTile(c,this._tileLoaded.bind(this,c,a,b)))}_tileLoaded(a,b,c,d){if(d){if(a.state="errored",404!==d.status)this._source.fire(new bi(d,{tile:a}));else if("raster-dem"===this._source.type&&this.usedForTerrain&&this.map.painter.terrain){const f=this.map.painter.terrain;this.update(this.transform,f.getScaledDemTileSize(),!0),f.resetTileLookupCache(this.id)}else this.update(this.transform)}else a.timeAdded=ax.now(),"expired"===c&&(a.refreshedUponExpiration=!0),this._setTileReloadTimer(b,a),"raster-dem"===this._source.type&&a.dem&&this._backfillDEM(a),this._state.initializeTileState(a,this.map?this.map.painter:null),this._source.fire(new bh("data",{dataType:"source",tile:a,coord:a.tileID,sourceCacheId:this.id}))}_backfillDEM(a){const b=this.getRenderableIds();for(let c=0;c1||(Math.abs(c)>1&&(1===Math.abs(c+f)?c+=f:1===Math.abs(c-f)&&(c-=f)),b.dem&&a.dem&&(a.dem.backfillBorder(b.dem,c,d),a.neighboringTiles&&a.neighboringTiles[g]&&(a.neighboringTiles[g].backfilled=!0)))}}getTile(a){return this.getTileByID(a.key)}getTileByID(a){return this._tiles[a]}_retainLoadedChildren(a,b,c,d){for(const f in this._tiles){let g=this._tiles[f];if(d[f]||!g.hasData()||g.tileID.overscaledZ<=b||g.tileID.overscaledZ>c)continue;let h=g.tileID;for(;g&&g.tileID.overscaledZ>b+1;){const i=g.tileID.scaledTo(g.tileID.overscaledZ-1);(g=this._tiles[i.key])&&g.hasData()&&(h=i)}let j=h;for(;j.overscaledZ>b;)if(a[(j=j.scaledTo(j.overscaledZ-1)).key]){d[h.key]=h;break}}}findLoadedParent(a,b){if(a.key in this._loadedParentTiles){const c=this._loadedParentTiles[a.key];return c&&c.tileID.overscaledZ>=b?c:null}for(let d=a.overscaledZ-1;d>=b;d--){const f=a.scaledTo(d),g=this._getLoadedTile(f);if(g)return g}}_getLoadedTile(a){const b=this._tiles[a.key];return b&&b.hasData()?b:this._cache.getByKey(this._source.reparseOverscaled?a.wrapped().key:a.canonical.key)}updateCacheSize(a,b){b=b||this._source.tileSize;const c=Math.ceil(a.width/b)+1,d=Math.ceil(a.height/b)+1,f=Math.floor(c*d*5),g="number"==typeof this._minTileCacheSize?Math.max(this._minTileCacheSize,f):f,h="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,g):g;this._cache.setMaxSize(h)}handleWrapJump(a){const b=Math.round((a-(void 0===this._prevLng?a:this._prevLng))/360);if(this._prevLng=a,b){const c={};for(const d in this._tiles){const f=this._tiles[d];f.tileID=f.tileID.unwrapTo(f.tileID.wrap+b),c[f.tileID.key]=f}for(const g in this._tiles=c,this._timers)clearTimeout(this._timers[g]),delete this._timers[g];for(const h in this._tiles)this._setTileReloadTimer(+h,this._tiles[h])}}update(a,b,c){if(this.transform=a,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage||this.usedForTerrain&&!c)return;let d;this.updateCacheSize(a,b),"globe"!==this.transform.projection.name&&this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?d=a.getVisibleUnwrappedCoordinates(this._source.tileID).map(a=>new kg(a.canonical.z,a.wrap,a.canonical.z,a.canonical.x,a.canonical.y)):(d=a.coveringTiles({tileSize:b||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!c,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain}),this._source.hasTile&&(d=d.filter(a=>this._source.hasTile(a)))):d=[];const f=this._updateRetainedTiles(d);if(kz(this._source.type)&&0!==d.length){const g={},h={},i=Object.keys(f);for(const j of i){const k=f[j],l=this._tiles[j];if(!l||l.fadeEndTime&&l.fadeEndTime<=ax.now())continue;const m=this.findLoadedParent(k,Math.max(k.overscaledZ-kx.maxOverzooming,this._source.minzoom));m&&(this._addTile(m.tileID),g[m.tileID.key]=m.tileID),h[j]=k}const n=d[d.length-1].overscaledZ;for(const o in this._tiles){const p=this._tiles[o];if(f[o]||!p.hasData())continue;let q=p.tileID;for(;q.overscaledZ>n;){q=q.scaledTo(q.overscaledZ-1);const r=this._tiles[q.key];if(r&&r.hasData()&&h[q.key]){f[o]=p.tileID;break}}}for(const s in g)f[s]||(this._coveredTiles[s]=!0,f[s]=g[s])}for(const u in f)this._tiles[u].clearFadeHold();const v=function(a,b){const c=[];for(const d in a)d in b||c.push(d);return c}(this._tiles,f);for(const w of v){const x=this._tiles[w];x.hasSymbolBuckets&&!x.holdingForFade()?x.setHoldDuration(this.map._fadeDuration):x.hasSymbolBuckets&&!x.symbolFadeFinished()||this._removeTile(+w)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(const a in this._tiles)this._tiles[a].holdingForFade()&&this._removeTile(+a)}_updateRetainedTiles(a){const b={};if(0===a.length)return b;const c={},d=a.reduce((a,b)=>Math.min(a,b.overscaledZ),1/0),f=a[0].overscaledZ,g=Math.max(f-kx.maxOverzooming,this._source.minzoom),h=Math.max(f+kx.maxUnderzooming,this._source.minzoom),i={};for(const j of a){const k=this._addTile(j);b[j.key]=j,k.hasData()||d=this._source.maxzoom){const n=l.children(this._source.maxzoom)[0],o=this.getTile(n);if(o&&o.hasData()){b[n.key]=n;continue}}else{const p=l.children(this._source.maxzoom);if(b[p[0].key]&&b[p[1].key]&&b[p[2].key]&&b[p[3].key])continue}let q=m.wasRequested();for(let r=l.overscaledZ-1;r>=g;--r){const s=l.scaledTo(r);if(c[s.key]||(c[s.key]=!0,(m=this.getTile(s))||!q||(m=this._addTile(s)),m&&(b[s.key]=s,q=m.wasRequested(),m.hasData())))break}}return b}_updateLoadedParentTileCache(){for(const a in this._loadedParentTiles={},this._tiles){const b=[];let c,d=this._tiles[a].tileID;for(;d.overscaledZ>0;){if(d.key in this._loadedParentTiles){c=this._loadedParentTiles[d.key];break}b.push(d.key);const f=d.scaledTo(d.overscaledZ-1);if(c=this._getLoadedTile(f))break;d=f}for(const g of b)this._loadedParentTiles[g]=c}}_addTile(a){let b=this._tiles[a.key];if(b)return b;(b=this._cache.getAndRemove(a))&&(this._setTileReloadTimer(a.key,b),b.tileID=a,this._state.initializeTileState(b,this.map?this.map.painter:null),this._cacheTimers[a.key]&&(clearTimeout(this._cacheTimers[a.key]),delete this._cacheTimers[a.key],this._setTileReloadTimer(a.key,b)));const c=Boolean(b);if(!c){const d=this.map?this.map.painter:null,f="raster"===this._source.type||"raster-dem"===this._source.type;b=new kX(a,this._source.tileSize*a.overscaleFactor(),this.transform.tileZoom,d,f),this._loadTile(b,this._tileLoaded.bind(this,b,a.key,b.state))}return b?(b.uses++,this._tiles[a.key]=b,c||this._source.fire(new bh("dataloading",{tile:b,coord:b.tileID,dataType:"source"})),b):null}_setTileReloadTimer(a,b){a in this._timers&&(clearTimeout(this._timers[a]),delete this._timers[a]);const c=b.getExpiryTimeout();c&&(this._timers[a]=setTimeout(()=>{this._reloadTile(a,"expired"),delete this._timers[a]},c))}_removeTile(a){const b=this._tiles[a];b&&(b.uses--,delete this._tiles[a],this._timers[a]&&(clearTimeout(this._timers[a]),delete this._timers[a]),b.uses>0||(b.hasData()&&"reloading"!==b.state?this._cache.add(b.tileID,b,b.getExpiryTimeout()):(b.aborted=!0,this._abortTile(b),this._unloadTile(b))))}clearTiles(){for(const a in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(+a);this._source._clear&&this._source._clear(),this._cache.reset()}tilesIn(a,b,c){const d=[],f=this.transform;if(!f)return d;for(const g in this._tiles){const h=this._tiles[g];if(c&&h.clearQueryDebugViz(),h.holdingForFade())continue;const i=a.containsTile(h,f,b);i&&d.push(i)}return d}getVisibleCoordinates(a){const b=this.getRenderableIds(a).map(a=>this._tiles[a].tileID);for(const c of b)c.projMatrix=this.transform.calculateProjMatrix(c.toUnwrapped());return b}hasTransition(){if(this._source.hasTransition())return!0;if(kz(this._source.type))for(const a in this._tiles){const b=this._tiles[a];if(void 0!==b.fadeEndTime&&b.fadeEndTime>=ax.now())return!0}return!1}setFeatureState(a,b,c){this._state.updateState(a=a||"_geojsonTileLayer",b,c)}removeFeatureState(a,b,c){this._state.removeFeatureState(a=a||"_geojsonTileLayer",b,c)}getFeatureState(a,b){return this._state.getState(a=a||"_geojsonTileLayer",b)}setDependencies(a,b,c){const d=this._tiles[a];d&&d.setDependencies(b,c)}reloadTilesForDependencies(a,b){for(const c in this._tiles)this._tiles[c].hasDependency(a,b)&&this._reloadTile(+c,"reloading");this._cache.filter(c=>!c.hasDependency(a,b))}_preloadTiles(a,b){const c=new Map,d=Array.isArray(a)?a:[a],f=this.map.painter.terrain,g=this.usedForTerrain&&f?f.getScaledDemTileSize():this._source.tileSize;for(const h of d){const i=h.coveringTiles({tileSize:g,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(const j of i)c.set(j.key,j);this.usedForTerrain&&h.updateElevation(!1)}const k=Array.from(c.values()),l="raster"===this._source.type||"raster-dem"===this._source.type;$(k,(a,b)=>{const c=new kX(a,this._source.tileSize*a.overscaleFactor(),this.transform.tileZoom,this.map.painter,l);this._loadTile(c,a=>{"raster-dem"===this._source.type&&c.dem&&this._backfillDEM(c),b(a,c)})},b)}}function ky(a,b){const c=Math.abs(2*a.wrap)- +(a.wrap<0),d=Math.abs(2*b.wrap)- +(b.wrap<0);return a.overscaledZ-b.overscaledZ||d-c||b.canonical.y-a.canonical.y||b.canonical.x-a.canonical.x}function kz(a){return"raster"===a||"image"===a||"video"===a}kx.maxOverzooming=10,kx.maxUnderzooming=3;class kA{constructor(a,b,c){this._demTile=a,this._dem=this._demTile.dem,this._scale=b,this._offset=c}static create(a,b,c){const d=c||a.findDEMTileFor(b);if(!d||!d.dem)return;const f=d.dem,g=d.tileID,h=1<=0&&l[3]>=0&&i.insert(h,l[0],l[1],l[2],l[3])}}loadVTLayers(){if(!this.vtLayers)for(const a in this.vtLayers=new h2.VectorTile(new iG(this.rawTileData)).layers,this.sourceLayerCoder=new km(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]),this.vtFeatures={},this.vtLayers)this.vtFeatures[a]=[];return this.vtLayers}query(a,b,c,d){this.loadVTLayers();const f=a.params||{},g=dz(f.filter),h=a.tileResult,i=a.transform,j=h.bufferedTilespaceBounds,k=this.grid.query(j.min.x,j.min.y,j.max.x,j.max.y,(a,b,c,d)=>gT(h.bufferedTilespaceGeometry,a,b,c,d));k.sort(kD);let l=null;i.elevation&&k.length>0&&(l=kA.create(i.elevation,this.tileID));const m={};let n;for(let o=0;o(r||(r=gF(b,this.tileID.canonical,a.tileTransform)),c.queryIntersectsFeature(h,b,d,r,this.z,a.transform,a.pixelPosMatrix,l,f)))}return m}loadMatchingFeature(a,b,c,d,f,g,h,i,j){const{featureIndex:k,bucketIndex:l,sourceLayerIndex:m,layoutVertexArrayOffset:n}=b,o=this.bucketLayerIDs[l];if(d&&!function(a,b){for(let c=0;c=0)return!0;return!1}(d,o))return;const p=this.sourceLayerCoder.decode(m),q=this.vtLayers[p].feature(k);if(c.needGeometry){const r=gG(q,!0);if(!c.filter(new e2(this.tileID.overscaledZ),r,this.tileID.canonical))return}else if(!c.filter(new e2(this.tileID.overscaledZ),q))return;const s=this.getId(q,p);for(let u=0;ud.indexOf(v))continue;const w=g[v];if(!w)continue;let x={};void 0!==s&&i&&(x=i.getState(w.sourceLayer||"_geojsonTileLayer",s));const y=aa({},h[v]);y.paint=kC(y.paint,w.paint,q,x,f),y.layout=kC(y.layout,w.layout,q,x,f);const z=!j||j(q,w,x,n);if(!z)continue;const A=new kn(q,this.z,this.x,this.y,s);A.layer=y;let B=a[v];void 0===B&&(B=a[v]=[]),B.push({featureIndex:k,feature:A,intersectionZ:z})}}lookupSymbolFeatures(a,b,c,d,f,g,h,i){const j={};this.loadVTLayers();const k=dz(f);for(const l of a)this.loadMatchingFeature(j,{bucketIndex:c,sourceLayerIndex:d,featureIndex:l,layoutVertexArrayOffset:0},k,g,h,i,b);return j}loadFeature(a){const{featureIndex:b,sourceLayerIndex:c}=a;this.loadVTLayers();const d=this.sourceLayerCoder.decode(c),f=this.vtFeatures[d];if(f[b])return f[b];const g=this.vtLayers[d].feature(b);return f[b]=g,g}hasLayer(a){for(const b of this.bucketLayerIDs)for(const c of b)if(a===c)return!0;return!1}getId(a,b){let c=a.id;return this.promoteId&&"boolean"==typeof(c=a.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[b]])&&(c=Number(c)),c}}function kC(a,b,c,d,f){return ai(a,(a,g)=>{const h=b instanceof e9?b.get(g):null;return h&&h.evaluate?h.evaluate(c,d,f):h})}function kD(a,b){return b-a}ec("FeatureIndex",kB,{omit:["rawTileData","sourceLayerCoder"]});var kE=fk([{name:"a_pos",type:"Int16",components:2},]);const kF=new Uint16Array(8184);for(let kG=0;kG<2046;kG++){let kH=kG+2,kI=0,kJ=0,kK=0,kL=0,kM=0,kN=0;for(1&kH?kK=kL=kM=32:kI=kJ=kN=32;(kH>>=1)>1;){const kO=kI+kK>>1,kP=kJ+kL>>1;1&kH?(kK=kI,kL=kJ,kI=kM,kJ=kN):(kI=kK,kJ=kL,kK=kM,kL=kN),kM=kO,kN=kP}const kQ=4*kG;kF[kQ+0]=kI,kF[kQ+1]=kJ,kF[kQ+2]=kK,kF[kQ+3]=kL}const kR=new Uint16Array(2178),kS=new Uint8Array(1089),kT=new Uint16Array(1089);function kU(a){return 0===a?-0.03125:32===a?.03125:0}var kV=fk([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2},]);const kW={type:2,extent:8192,loadGeometry:()=>[[new g(0,0),new g(8193,0),new g(8193,8193),new g(0,8193),new g(0,0),],]};class kX{constructor(a,b,c,d,f){this.tileID=a,this.uid=ac(),this.uses=0,this.tileSize=b,this.tileZoom=c,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=f,this.expiredRequestCount=0,this.state="loading",d&&d.transform&&(this.projection=d.transform.projection)}registerFadeDuration(a){const b=a+this.timeAdded;bb.getLayer(a)).filter(Boolean);if(0!==f.length)for(const g of(d.layers=f,d.stateDependentLayerIds&&(d.stateDependentLayers=d.stateDependentLayerIds.map(a=>f.filter(b=>b.id===a)[0])),f))c[g.id]=d}return c}(a.buckets,b.style),this.hasSymbolBuckets=!1,this.buckets){const f=this.buckets[d];if(f instanceof jV){if(this.hasSymbolBuckets=!0,!c)break;f.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const g in this.buckets){const h=this.buckets[g];if(h instanceof jV&&h.hasRTLText){this.hasRTLText=!0,e1.isLoading()||e1.isLoaded()||"deferred"!==e_()||e0();break}}for(const i in this.queryPadding=0,this.buckets){const j=this.buckets[i];this.queryPadding=Math.max(this.queryPadding,b.style.getLayer(i).queryRadius(j))}a.imageAtlas&&(this.imageAtlas=a.imageAtlas),a.glyphAtlasImage&&(this.glyphAtlasImage=a.glyphAtlasImage),a.lineAtlas&&(this.lineAtlas=a.lineAtlas)}else this.collisionBoxArray=new fK}unloadVectorData(){if(this.hasData()){for(const a in this.buckets)this.buckets[a].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugIndexBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this.globeGridBuffer&&(this.globeGridBuffer.destroy(),this.globeGridBuffer=null),this.globePoleBuffer&&(this.globePoleBuffer.destroy(),this.globePoleBuffer=null),this.latestFeatureIndex=null,this.state="unloaded"}}getBucket(a){return this.buckets[a.id]}upload(a){for(const b in this.buckets){const c=this.buckets[b];c.uploadPending()&&c.upload(a)}const d=a.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new j9(a,this.imageAtlas.image,d.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new j9(a,this.glyphAtlasImage,d.ALPHA),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new j9(a,this.lineAtlas.image,d.ALPHA),this.lineAtlas.uploaded=!0)}prepare(a){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(a,this.imageAtlasTexture)}queryRenderedFeatures(a,b,c,d,f,g,h,i){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({tileResult:d,pixelPosMatrix:h,transform:g,params:f,tileTransform:this.tileTransform},a,b,c):{}}querySourceFeatures(a,b){const c=this.latestFeatureIndex;if(!c||!c.rawTileData)return;const d=c.loadVTLayers(),f=b?b.sourceLayer:"",g=d._geojsonTileLayer||d[f];if(!g)return;const h=dz(b&&b.filter),{z:i,x:j,y:k}=this.tileID.canonical,l={z:i,x:j,y:k};for(let m=0;md)f=!1;else if(b){if(this.expirationTime=0;l--){const m=4*l,n=kF[m+0],o=kF[m+1],p=kF[m+2],q=kF[m+3],r=n+p>>1,s=o+q>>1,u=r+s-o,v=s+n-r,w=33*o+n,x=33*q+p,y=33*s+r,z=Math.hypot((kR[2*w+0]+kR[2*x+0])/2-kR[2*y+0],(kR[2*w+1]+kR[2*x+1])/2-kR[2*y+1])>=16;if(kS[y]=kS[y]||(z?1:0),l<1022){const A=(o+v>>1)*33+(n+u>>1),B=(q+v>>1)*33+(p+u>>1);kS[y]=kS[y]||kS[A]||kS[B]}}const C=new fn,D=new fy;let E=0;function F(a,b){const c=33*b+a;return 0===kT[c]&&(C.emplaceBack(kR[2*c+0],kR[2*c+1],8192*a/32,8192*b/32),kT[c]=++E),kT[c]-1}function G(a,b,c,d,f,g){const h=a+c>>1,i=b+d>>1;if(Math.abs(a-f)+Math.abs(b-g)>1&&kS[33*i+h])G(f,g,a,b,h,i),G(c,d,f,g,h,i);else{const j=F(a,b),k=F(c,d),l=F(f,g);D.emplaceBack(j,k,l)}}return G(0,0,32,32,32,0),G(32,32,0,0,0,32),{vertices:C,indices:D}}(this.tileID.canonical,b);d=g.vertices,f=g.indices}else{for(const{x:h,y:i}of(d=new fn,f=new fy,c))d.emplaceBack(h,i,0,0);const j=hh(d.int16,void 0,4);for(let k=0;k{const d=65*c+b;a.emplaceBack(d+1,d,d+65),a.emplaceBack(d+65,d+65+1,d+1)};for(let c=0;c<64;c++)for(let d=0;d<64;d++)b(d,c);return a}getWirefameBuffer(a){if(!this.wireframeSegments){const b=this._createWireframeGrid();this.wireframeIndexBuffer=a.createIndexBuffer(b),this.wireframeSegments=gq.simpleSegment(0,0,4096,b.length)}return[this.wireframeIndexBuffer,this.wireframeSegments,]}_createWireframeGrid(){const a=new fF,b=(b,c)=>{const d=65*c+b;a.emplaceBack(d,d+1),a.emplaceBack(d,d+65),a.emplaceBack(d,d+65+1)};for(let c=0;c<64;c++)for(let d=0;d<64;d++)b(d,c);return a}}function lc(a,b){if(!b.isReprojectedInTileSpace)return{scale:1<v&&(w(a,k,d,f,i,j),w(k,c,i,j,g,h))}w(m,n,d,g,f,g),w(n,o,f,g,f,h),w(o,p,f,h,d,h),w(p,m,d,h,d,g),q-=v,r-=v,s+=v,u+=v;const x=1/Math.max(s-q,u-r);return{scale:x,x:q*x,y:r*x,x2:s*x,y2:u*x,projection:b}}class ld{constructor(a){const b={},c=[];for(const d in a){const f=a[d],g=b[d]={};for(const h in f.glyphs){const i=f.glyphs[+h];if(!i||0===i.bitmap.width||0===i.bitmap.height)continue;const j=i.metrics.localGlyph?2:1,k={x:0,y:0,w:i.bitmap.width+2*j,h:i.bitmap.height+2*j};c.push(k),g[h]=k}}const{w:l,h:m}=i$(c),n=new ha({width:l||1,height:m||1});for(const o in a){const p=a[o];for(const q in p.glyphs){const r=p.glyphs[+q];if(!r||0===r.bitmap.width||0===r.bitmap.height)continue;const s=b[o][q],u=r.metrics.localGlyph?2:1;ha.copy(r.bitmap,n,{x:0,y:0},{x:s.x+u,y:s.y+u},r.bitmap)}}this.image=n,this.positions=b}}ec("GlyphAtlas",ld);class le{constructor(a){this.tileID=new kg(a.tileID.overscaledZ,a.tileID.wrap,a.tileID.canonical.z,a.tileID.canonical.x,a.tileID.canonical.y),this.tileZoom=a.tileZoom,this.uid=a.uid,this.zoom=a.zoom,this.canonical=a.tileID.canonical,this.pixelRatio=a.pixelRatio,this.tileSize=a.tileSize,this.source=a.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=a.showCollisionBoxes,this.collectResourceTiming=!!a.collectResourceTiming,this.returnDependencies=!!a.returnDependencies,this.promoteId=a.promoteId,this.enableTerrain=!!a.enableTerrain,this.isSymbolTile=a.isSymbolTile,this.tileTransform=lc(a.tileID.canonical,a.projection),this.projection=a.projection}parse(a,b,c,d,f){this.status="parsing",this.data=a,this.collisionBoxArray=new fK;const g=new km(Object.keys(a.layers).sort()),h=new kB(this.tileID,this.promoteId);h.bucketLayerIDs=[];const i={},j=new ka(256,256),k={featureIndex:h,iconDependencies:{},patternDependencies:{},glyphDependencies:{},lineAtlas:j,availableImages:c},l=b.familiesBySource[this.source];for(const m in l){const n=a.layers[m];if(!n)continue;let o=!1,p=!1;for(const q of l[m])"symbol"===q[0].type?o=!0:p=!0;if(!0===this.isSymbolTile&&!o|| !1===this.isSymbolTile&&!p)continue;1===n.version&&am(`Vector tile source "${this.source}" layer "${m}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const r=g.encode(m),s=[];for(let u=0;u=y.maxzoom||"none"!==y.visibility&&(lf(x,this.zoom,c),(i[y.id]=y.createBucket({index:h.bucketLayerIDs.length,layers:x,zoom:this.zoom,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:r,sourceID:this.source,enableTerrain:this.enableTerrain,availableImages:c})).populate(s,k,this.tileID.canonical,this.tileTransform),h.bucketLayerIDs.push(x.map(a=>a.id)))}}let z,A,B,C;j.trim();const D={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},E=ai(k.glyphDependencies,a=>Object.keys(a).map(Number));Object.keys(E).length?d.send("getGlyphs",{uid:this.uid,stacks:E},(a,b)=>{z||(z=a,A=b,H.call(this))},void 0,!1,D):A={};const F=Object.keys(k.iconDependencies);F.length?d.send("getImages",{icons:F,source:this.source,tileID:this.tileID,type:"icons"},(a,b)=>{z||(z=a,B=b,H.call(this))},void 0,!1,D):B={};const G=Object.keys(k.patternDependencies);function H(){if(z)return f(z);if(A&&B&&C){const a=new ld(A),b=new i0(B,C);for(const d in i){const g=i[d];g instanceof jV?(lf(g.layers,this.zoom,c),jF(g,A,a.positions,B,b.iconPositions,this.showCollisionBoxes,c,this.tileID.canonical,this.tileZoom,this.projection),g.projection=this.projection.name):g.hasPattern&&(g instanceof ik||g instanceof hQ||g instanceof h6)&&(lf(g.layers,this.zoom,c),g.addFeatures(k,this.tileID.canonical,b.patternPositions,c))}this.status="done",f(null,{buckets:_(i).filter(a=>!a.isEmpty()),featureIndex:h,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:a.image,lineAtlas:j,imageAtlas:b,glyphMap:this.returnDependencies?A:null,iconMap:this.returnDependencies?B:null,glyphPositions:this.returnDependencies?a.positions:null})}}G.length?d.send("getImages",{icons:G,source:this.source,tileID:this.tileID,type:"patterns"},(a,b)=>{z||(z=a,C=b,H.call(this))},void 0,!1,D):C={},H.call(this)}}function lf(a,b,c){const d=new e2(b);for(const f of a)f.recalculate(d,c)}class lg{constructor(a){this.entries={},this.scheduler=a}request(a,b,c,d){const f=this.entries[a]=this.entries[a]||{callbacks:[]};if(f.result){const[g,h]=f.result;return this.scheduler?this.scheduler.add(()=>{d(g,h)},b):d(g,h),()=>{}}return f.callbacks.push(d),f.cancel||(f.cancel=c((c,d)=>{for(const g of(f.result=[c,d],f.callbacks))this.scheduler?this.scheduler.add(()=>{g(c,d)},b):g(c,d);setTimeout(()=>delete this.entries[a],3e3)})),()=>{f.result||(f.callbacks=f.callbacks.filter(a=>a!==d),f.callbacks.length||(f.cancel(),delete this.entries[a]))}}}function lh(a,b,c){const d=JSON.stringify(a.request);return a.data&&(this.deduped.entries[d]={result:[null,a.data]}),this.deduped.request(d,{type:"parseTile",isSymbolTile:a.isSymbolTile,zoom:a.tileZoom},b=>{const d=a7(a.request,(a,d,f,g)=>{a?b(a):d&&b(null,{vectorTile:c?void 0:new h2.VectorTile(new iG(d)),rawData:d,cacheControl:f,expires:g})});return()=>{d.cancel(),b()}},b)}const li=l(new Float64Array(16));class lj{constructor(a,b){this._tr=a,this._worldSize=b}createInversionMatrix(){return li}createTileMatrix(a){let b,c,d;const f=a.canonical,g=l(new Float64Array(16)),h=this._tr.projection;if(h.isReprojectedInTileSpace){const i=lc(f,h);b=1,c=i.x+a.wrap*i.scale,d=i.y,o(g,g,[b/i.scale,b/i.scale,this._tr.pixelsPerMeter/this._worldSize,])}else b=this._worldSize/this._tr.zoomScale(f.z),c=(f.x+Math.pow(2,f.z)*a.wrap)*b,d=f.y*b;return n(g,g,[c,d,0]),o(g,g,[b/8192,b/8192,1]),g}pointCoordinate(a,b,c){const d=this._tr.horizonLineFromTop(!1),f=new g(a,Math.max(d,b));return this._tr.rayIntersectionCoordinate(this._tr.pointRayIntersection(f,c))}upVector(){return[0,0,1]}upVectorScale(){return 1}}var lk={name:"albers",range:[4,7],center:[-96,37.5],parallels:[29.5,45.5],zAxisUnit:"meters",conic:!0,isReprojectedInTileSpace:!0,unsupportedLayers:["custom"],initializeConstants(){if(this.constants&&O(this.parallels,this.constants.parallels))return;const a=Math.sin(this.parallels[0]*P),b=(a+Math.sin(this.parallels[1]*P))/2,c=1+a*(2*b-a),d=Math.sqrt(c)/b;this.constants={n:b,c:c,r0:d,parallels:this.parallels}},project(a,b){this.initializeConstants();const c=(a-this.center[0])*P,{n:d,c:f,r0:g}=this.constants,h=Math.sqrt(f-2*d*Math.sin(b*P))/d;return{x:h*Math.sin(c*d),y:h*Math.cos(c*d)-g,z:0}},unproject(a,b){this.initializeConstants();const{n:c,c:d,r0:f}=this.constants,g=f+b;let h=Math.atan2(a,Math.abs(g))*Math.sign(g);g*c<0&&(h-=Math.PI*Math.sign(a)*Math.sign(g));const i=this.center[0]*P*c;h=Z(h,-Math.PI-i,Math.PI-i);const j=h/c*Q+this.center[0],k=Math.asin(X((d-(a*a+g*g)*c*c)/(2*c),-1,1)),l=X(k*Q,-85.051129,85.051129);return new gs(j,l)},projectTilePoint:(a,b)=>({x:a,y:b,z:0}),locationPoint:(a,b)=>a._coordinatePoint(a.locationCoordinate(b),!1),pixelsPerMeter:(a,b)=>gx(1,a)*b,farthestPixelDistance(a){return k_(a,this.pixelsPerMeter(a.center.lat,a.worldSize))},createTileTransform:(a,b)=>new lj(a,b)};const ll=Math.sqrt(3)/2;var lm={name:"equalEarth",center:[0,0],range:[3.5,7],zAxisUnit:"meters",isReprojectedInTileSpace:!0,unsupportedLayers:["custom"],project(a,b){b=b/180*Math.PI,a=a/180*Math.PI;const c=Math.asin(ll*Math.sin(b)),d=c*c,f=d*d*d;return{x:.5*(a*Math.cos(c)/(ll*(1.340264+ -0.24331799999999998*d+f*(.0062510000000000005+.034164*d)))/Math.PI+.5),y:1-.5*(c*(1.340264+ -0.081106*d+f*(893e-6+.003796*d))/Math.PI+1),z:0}},unproject(a,b){a=(2*a-.5)*Math.PI;let c=b=(2*(1-b)-1)*Math.PI,d=c*c,f=d*d*d;for(let g,h,i,j=0;j<12&&(h=c*(1.340264+ -0.081106*d+f*(893e-6+.003796*d))-b,i=1.340264+ -0.24331799999999998*d+f*(.0062510000000000005+.034164*d),g=h/i,c=X(c-g,-Math.PI/3,Math.PI/3),d=c*c,f=d*d*d,!(1e-12>Math.abs(g)));++j);const k=ll*a*(1.340264+ -0.24331799999999998*d+f*(.0062510000000000005+.034164*d))/Math.cos(c),l=Math.asin(Math.sin(c)/ll),m=X(180*k/Math.PI,-180,180),n=X(180*l/Math.PI,-85.051129,85.051129);return new gs(m,n)},projectTilePoint:(a,b)=>({x:a,y:b,z:0}),locationPoint:(a,b)=>a._coordinatePoint(a.locationCoordinate(b),!1),pixelsPerMeter:(a,b)=>gx(1,a)*b,farthestPixelDistance(a){return k_(a,this.pixelsPerMeter(a.center.lat,a.worldSize))},createTileTransform:(a,b)=>new lj(a,b)},ln={name:"equirectangular",supportsWorldCopies:!0,center:[0,0],range:[3.5,7],zAxisUnit:"meters",wrap:!0,isReprojectedInTileSpace:!0,unsupportedLayers:["custom"],project:(a,b)=>({x:.5+a/360,y:.5-b/360,z:0}),unproject(a,b){const c=X(360*(.5-b),-85.051129,85.051129);return new gs(360*(a-.5),c)},projectTilePoint:(a,b)=>({x:a,y:b,z:0}),locationPoint:(a,b)=>a._coordinatePoint(a.locationCoordinate(b),!1),pixelsPerMeter:(a,b)=>gx(1,a)*b,farthestPixelDistance(a){return k_(a,this.pixelsPerMeter(a.center.lat,a.worldSize))},createTileTransform:(a,b)=>new lj(a,b)};const lo=Math.PI/2;function lp(a){return Math.tan((lo+a)/2)}var lq,lr={name:"lambertConformalConic",range:[3.5,7],zAxisUnit:"meters",center:[0,30],parallels:[30,30],conic:!0,isReprojectedInTileSpace:!0,unsupportedLayers:["custom"],initializeConstants(){if(this.constants&&O(this.parallels,this.constants.parallels))return;const a=this.parallels[0]*P,b=this.parallels[1]*P,c=Math.cos(a),d=a===b?Math.sin(a):Math.log(c/Math.cos(b))/Math.log(lp(b)/lp(a)),f=c*Math.pow(lp(a),d)/d;this.constants={n:d,f:f,parallels:this.parallels}},project(a,b){this.initializeConstants(),b*=P,a=(a-this.center[0])*P;const{n:c,f:d}=this.constants;d>0?b< -lo+1e-6&&(b=-lo+1e-6):b>lo-1e-6&&(b=lo-1e-6);const f=d/Math.pow(lp(b),c),g=f*Math.sin(c*a),h=d-f*Math.cos(c*a);return{x:.5*(g/Math.PI+.5),y:1-.5*(h/Math.PI+.5),z:0}},unproject(a,b){this.initializeConstants(),a=(2*a-.5)*Math.PI,b=(2*(1-b)-.5)*Math.PI;const{n:c,f:d}=this.constants,f=d-b,g=Math.sign(f),h=Math.sign(c)*Math.sqrt(a*a+f*f);let i=Math.atan2(a,Math.abs(f))*g;f*c<0&&(i-=Math.PI*Math.sign(a)*g);const j=X(i/c*Q+this.center[0],-180,180),k=X((2*Math.atan(Math.pow(d/h,1/c))-lo)*Q,-85.051129,85.051129);return new gs(j,k)},projectTilePoint:(a,b)=>({x:a,y:b,z:0}),locationPoint:(a,b)=>a._coordinatePoint(a.locationCoordinate(b),!1),pixelsPerMeter:(a,b)=>gx(1,a)*b,farthestPixelDistance(a){return k_(a,this.pixelsPerMeter(a.center.lat,a.worldSize))},createTileTransform:(a,b)=>new lj(a,b)},ls={name:"mercator",wrap:!0,requiresDraping:!1,supportsWorldCopies:!0,supportsTerrain:!0,supportsFog:!0,supportsFreeCamera:!0,zAxisUnit:"meters",center:[0,0],project:(a,b)=>({x:gv(a),y:gw(b),z:0}),unproject(a,b){const c=gy(a),d=gz(b);return new gs(c,d)},projectTilePoint:(a,b)=>({x:a,y:b,z:0}),locationPoint:(a,b)=>a._coordinatePoint(a.locationCoordinate(b),!1),pixelsPerMeter:(a,b)=>gx(1,a)*b,farthestPixelDistance(a){return k_(a,this.pixelsPerMeter(a.center.lat,a.worldSize))},createTileTransform:(a,b)=>new lj(a,b)};const lt=85.051129*P;var lu={name:"naturalEarth",center:[0,0],range:[3.5,7],isReprojectedInTileSpace:!0,zAxisUnit:"meters",unsupportedLayers:["custom"],project(a,b){const c=(b*=P)*b,d=c*c;return{x:.5*((a*=P)*(.8707-.131979*c+d*(d*(.003971*c-.001529*d)-.013791))/Math.PI+.5),y:1-.5*(b*(1.007226+c*(.015085+d*(.028874*c-.044475-.005916*d)))/Math.PI+1),z:0}},unproject(a,b){a=(2*a-.5)*Math.PI;let c=b=(2*(1-b)-1)*Math.PI,d=25,f=0,g=c*c;do{g=c*c;const h=g*g;f=(c*(1.007226+g*(.015085+h*(.028874*g-.044475-.005916*h)))-b)/(1.007226+g*(.045255+h*(.259866*g-.311325-.06507600000000001*h))),c=X(c-f,-lt,lt)}while(Math.abs(f)>1e-6&& --d>0)g=c*c;const i=X(a/(.8707+g*(g*(g*g*g*(.003971-.001529*g)-.013791)-.131979))*Q,-180,180),j=c*Q;return new gs(i,j)},projectTilePoint:(a,b)=>({x:a,y:b,z:0}),locationPoint:(a,b)=>a._coordinatePoint(a.locationCoordinate(b),!1),pixelsPerMeter:(a,b)=>gx(1,a)*b,farthestPixelDistance(a){return k_(a,this.pixelsPerMeter(a.center.lat,a.worldSize))},createTileTransform:(a,b)=>new lj(a,b)};const lv=85.051129*P,lw={albers:lk,equalEarth:lm,equirectangular:ln,lambertConformalConic:lr,mercator:ls,naturalEarth:lu,winkelTripel:{name:"winkelTripel",center:[0,0],range:[3.5,7],zAxisUnit:"meters",isReprojectedInTileSpace:!0,unsupportedLayers:["custom"],project(a,b){b*=P,a*=P;const c=Math.cos(b),d=Math.acos(c*Math.cos(a/2)),f=Math.sin(d)/d,g=.5*(a*(2/Math.PI)+2*c*Math.sin(a/2)/f)||0,h=.5*(b+Math.sin(b)/f)||0;return{x:.5*(g/Math.PI+.5),y:1-.5*(h/Math.PI+1),z:0}},unproject(a,b){let c=a=(2*a-.5)*Math.PI,d=b=(2*(1-b)-1)*Math.PI,f=25,g=0,h=0;do{const i=Math.cos(d),j=Math.sin(d),k=2*j*i,l=j*j,m=i*i,n=Math.cos(c/2),o=Math.sin(c/2),p=2*n*o,q=o*o,r=1-m*n*n,s=r?1/r:0,u=r?Math.acos(i*n)*Math.sqrt(1/r):0,v=.5*(2*u*i*o+2*c/Math.PI)-a,w=.5*(u*j+d)-b,x=.5*s*(m*q+u*i*n*l)+1/Math.PI,y=s*(p*k/4-u*j*o),z=.125*s*(k*o-u*j*m*p),A=.5*s*(l*n+u*q*i)+.5,B=y*z-A*x;g=(w*y-v*A)/B,h=(v*z-w*x)/B,c=X(c-g,-Math.PI,Math.PI),d=X(d-h,-lv,lv)}while((Math.abs(g)>1e-6||Math.abs(h)>1e-6)&& --f>0)return new gs(c*Q,d*Q)},projectTilePoint:(a,b)=>({x:a,y:b,z:0}),locationPoint:(a,b)=>a._coordinatePoint(a.locationCoordinate(b),!1),pixelsPerMeter:(a,b)=>gx(1,a)*b,farthestPixelDistance(a){return k_(a,this.pixelsPerMeter(a.center.lat,a.worldSize))},createTileTransform:(a,b)=>new lj(a,b)}};a.ARRAY_TYPE=j,a.AUTH_ERR_MSG=aI,a.Aabb=g0,a.Actor=class{constructor(a,b,c){this.target=a,this.parent=b,this.mapId=c,this.callbacks={},this.cancelCallbacks={},ag(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.globalScope=ap()?a:i,this.scheduler=new class{constructor(){this.tasks={},this.taskQueue=[],ag(["process"],this),this.invoker=new class{constructor(a){this._callback=a,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){delete this._channel,this._callback=()=>{}}}(this.process),this.nextId=0}add(a,b){const c=this.nextId++,d=function({type:a,isSymbolTile:b,zoom:c}){return c=c||0,"message"===a?0:"maybePrepare"!==a||b?"parseTile"!==a||b?"parseTile"===a&&b?300-c:"maybePrepare"===a&&b?400-c:500:200-c:100-c}(b);return 0===d?(ap(),a(),{cancel(){}}):(this.tasks[c]={fn:a,metadata:b,priority:d,id:c},this.taskQueue.push(c),this.invoker.trigger(),{cancel:()=>{delete this.tasks[c]}})}process(){ap();{if(this.taskQueue=this.taskQueue.filter(a=>!!this.tasks[a]),!this.taskQueue.length)return;const a=this.pick();if(null===a)return;const b=this.tasks[a];if(delete this.tasks[a],this.taskQueue.length&&this.invoker.trigger(),!b)return;b.fn()}}pick(){let a=null,b=1/0;for(let c=0;c{c&&delete this.callbacks[h],this.target.postMessage({id:h,type:"",targetMapId:d,sourceMapId:this.mapId})}}}receive(a){const b=a.data,c=b.id;if(c&&(!b.targetMapId||this.mapId===b.targetMapId)){if(""===b.type){const d=this.cancelCallbacks[c];delete this.cancelCallbacks[c],d&&d.cancel()}else if(b.mustQueue||ap()){const f=this.callbacks[c];this.cancelCallbacks[c]=this.scheduler.add(()=>this.processTask(c,b),f&&f.metadata||{type:"message"})}else this.processTask(c,b)}}processTask(a,b){if(""===b.type){const c=this.callbacks[a];delete this.callbacks[a],c&&(b.error?c(eh(b.error)):c(null,eh(b.data)))}else{const d=av(this.globalScope)?void 0:[],f=b.hasCallback?(b,c)=>{delete this.cancelCallbacks[a],this.target.postMessage({id:a,type:"",sourceMapId:this.mapId,error:b?eg(b):null,data:eg(c,d)},d)}:a=>{},g=eh(b.data);if(this.parent[b.type])this.parent[b.type](b.sourceMapId,g,f);else if(this.parent.getWorkerSource){const h=b.type.split(".");this.parent.getWorkerSource(b.sourceMapId,h[0],g.source)[h[1]](g,f)}else f(Error(`Could not find function ${b.type}`))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}},a.CanonicalTileID=ke,a.Color=bK,a.ColorMode=kk,a.CullFaceMode=kl,a.DEMData=kw,a.DataConstantProperty=fa,a.DedupedRequest=lg,a.DepthMode=ki,a.EXTENT=8192,a.Elevation=class{getAtPointOrZero(a,b=0){return this.getAtPoint(a,b)||0}getAtPoint(a,b,c=!0){null==b&&(b=null);const d=this._source();if(!d||a.y<0||a.y>1)return b;const f=d.getSource().maxzoom,g=1<{const d=this.getAtTileOffset(a,c.x,c.y),f=b.upVector(a.canonical,c.x,c.y);return B(f,f,d*b.upVectorScale(a.canonical)),f}}getForTilePoints(a,b,c,d){const f=kA.create(this,a,d);return!!f&&(b.forEach(a=>{a[2]=this.exaggeration()*f.getElevationAt(a[0],a[1],c)}),!0)}getMinMaxForTile(a){const b=this.findDEMTileFor(a);if(!b||!b.dem)return null;const c=b.dem.tree,d=b.tileID,f=1<Math.abs(d))return!1;const f=((a[0]-this.pos[0])*b[0]+(a[1]-this.pos[1])*b[1]+(a[2]-this.pos[2])*b[2])/d;return c[0]=this.pos[0]+this.dir[0]*f,c[1]=this.pos[1]+this.dir[1]*f,c[2]=this.pos[2]+this.dir[2]*f,!0}closestPointOnSphere(a,b,c){var d,f,g,h,i,j,k,l;if(d=this.pos,f=a,g=d[0],h=d[1],i=d[2],j=f[0],k=f[1],l=f[2],Math.abs(g-j)<=1e-6*Math.max(1,Math.abs(g),Math.abs(j))&&Math.abs(h-k)<=1e-6*Math.max(1,Math.abs(h),Math.abs(k))&&Math.abs(i-l)<=1e-6*Math.max(1,Math.abs(i),Math.abs(l))||0===b)return c[0]=c[1]=c[2]=0,!1;const[m,n,o]=this.dir,p=this.pos[0]-a[0],q=this.pos[1]-a[1],r=this.pos[2]-a[2],s=m*m+n*n+o*o,u=2*(p*m+q*n+r*o),v=u*u-4*s*(p*p+q*q+r*r-b*b);if(v<0){const w=Math.max(-u/2,0),x=p+m*w,y=q+n*w,z=r+o*w,A=Math.hypot(x,y,z);return c[0]=x*b/A,c[1]=y*b/A,c[2]=z*b/A,!1}{const B=(-u-Math.sqrt(v))/(2*s);if(B<0){const C=Math.hypot(p,q,r);return c[0]=p*b/C,c[1]=q*b/C,c[2]=r*b/C,!1}return c[0]=p+m*B,c[1]=q+n*B,c[2]=r+o*B,!0}}},a.RequestManager=class{constructor(a,b,c){this._transformRequestFn=a,this._customAccessToken=b,this._silenceAuthErrors=!!c,this._createSkuToken()}_createSkuToken(){const a=function(){let a="";for(let b=0;b<10;b++)a+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1","01",a].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=a.token,this._skuTokenExpiresAt=a.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(a,b){return this._transformRequestFn&&this._transformRequestFn(a,b)||{url:a}}normalizeStyleURL(a,b){if(!aJ(a))return a;const c=aM(a);return c.path=`/styles/v1${c.path}`,this._makeAPIURL(c,this._customAccessToken||b)}normalizeGlyphsURL(a,b){if(!aJ(a))return a;const c=aM(a);return c.path=`/fonts/v1${c.path}`,this._makeAPIURL(c,this._customAccessToken||b)}normalizeSourceURL(a,b){if(!aJ(a))return a;const c=aM(a);return c.path=`/v4/${c.authority}.json`,c.params.push("secure"),this._makeAPIURL(c,this._customAccessToken||b)}normalizeSpriteURL(a,b,c,d){const f=aM(a);return aJ(a)?(f.path=`/styles/v1${f.path}/sprite${b}${c}`,this._makeAPIURL(f,this._customAccessToken||d)):(f.path+=`${b}${c}`,aN(f))}normalizeTileURL(a,b,c){if(this._isSkuTokenExpired()&&this._createSkuToken(),a&&!aJ(a))return a;const d=aM(a);d.path=d.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${b||c&&"raster"!==d.authority&&512===c?"@2x":""}${aC.supported?".webp":"$1"}`),"raster"===d.authority?d.path=`/${az.RASTER_URL_PREFIX}${d.path}`:(d.path=d.path.replace(/^.+\/v4\//,"/"),d.path=`/${az.TILE_URL_VERSION}${d.path}`);const f=this._customAccessToken||function(a){for(const b of a){const c=b.match(/^access_token=(.*)$/);if(c)return c[1]}return null}(d.params)||az.ACCESS_TOKEN;return az.REQUIRE_ACCESS_TOKEN&&f&&this._skuToken&&d.params.push(`sku=${this._skuToken}`),this._makeAPIURL(d,f)}canonicalizeTileURL(a,b){const c=aM(a);if(!c.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!c.path.match(/\.[\w]+$/))return a;let d="mapbox://";c.path.match(/^\/raster\/v1\//)?d+=`raster/${c.path.replace(`/${az.RASTER_URL_PREFIX}/`,"")}`:d+=`tiles/${c.path.replace(`/${az.TILE_URL_VERSION}/`,"")}`;let f=c.params;return b&&(f=f.filter(a=>!a.match(/^access_token=/))),f.length&&(d+=`?${f.join("&")}`),d}canonicalizeTileset(a,b){const c=!!b&&aJ(b),d=[];for(const f of a.tiles||[])aK(f)?d.push(this.canonicalizeTileURL(f,c)):d.push(f);return d}_makeAPIURL(a,b){const c="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",d=aM(az.API_URL);if(a.protocol=d.protocol,a.authority=d.authority,"http"===a.protocol){const f=a.params.indexOf("secure");f>=0&&a.params.splice(f,1)}if("/"!==d.path&&(a.path=`${d.path}${a.path}`),!az.REQUIRE_ACCESS_TOKEN)return aN(a);if(b=b||az.ACCESS_TOKEN,!this._silenceAuthErrors){if(!b)throw Error(`An API access token is required to use Mapbox GL. ${c}`);if("s"===b[0])throw Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${c}`)}return a.params=a.params.filter(a=>-1===a.indexOf("access_token")),a.params.push(`access_token=${b||""}`),aN(a)}},a.ResourceType=a3,a.SegmentVector=gq,a.SourceCache=kx,a.StencilMode=kj,a.StructArrayLayout1ui2=fG,a.StructArrayLayout2f1f2i16=fw,a.StructArrayLayout2i4=fm,a.StructArrayLayout2ui4=fF,a.StructArrayLayout3f12=fp,a.StructArrayLayout3ui6=fy,a.StructArrayLayout4i8=fn,a.Texture=j9,a.Tile=kX,a.Transitionable=e5,a.Uniform1f=f3,a.Uniform1i=class extends f2{constructor(a,b){super(a,b),this.current=0}set(a){this.current!==a&&(this.current=a,this.gl.uniform1i(this.location,a))}},a.Uniform2f=class extends f2{constructor(a,b){super(a,b),this.current=[0,0]}set(a){a[0]===this.current[0]&&a[1]===this.current[1]||(this.current=a,this.gl.uniform2f(this.location,a[0],a[1]))}},a.Uniform3f=class extends f2{constructor(a,b){super(a,b),this.current=[0,0,0]}set(a){a[0]===this.current[0]&&a[1]===this.current[1]&&a[2]===this.current[2]||(this.current=a,this.gl.uniform3f(this.location,a[0],a[1],a[2]))}},a.Uniform4f=f4,a.UniformColor=f5,a.UniformMatrix2f=class extends f2{constructor(a,b){super(a,b),this.current=f8}set(a){for(let b=0;b<4;b++)if(a[b]!==this.current[b]){this.current=a,this.gl.uniformMatrix2fv(this.location,!1,a);break}}},a.UniformMatrix3f=class extends f2{constructor(a,b){super(a,b),this.current=f7}set(a){for(let b=0;b<9;b++)if(a[b]!==this.current[b]){this.current=a,this.gl.uniformMatrix3fv(this.location,!1,a);break}}},a.UniformMatrix4f=class extends f2{constructor(a,b){super(a,b),this.current=f6}set(a){if(a[12]!==this.current[12]||a[0]!==this.current[0])return this.current=a,void this.gl.uniformMatrix4fv(this.location,!1,a);for(let b=1;b<16;b++)if(a[b]!==this.current[b]){this.current=a,this.gl.uniformMatrix4fv(this.location,!1,a);break}}},a.UnwrappedTileID=kf,a.ValidationError=bl,a.VectorTileWorkerSource=class extends bj{constructor(a,b,c,d,f){super(),this.actor=a,this.layerIndex=b,this.availableImages=c,this.loadVectorData=f||lh,this.loading={},this.loaded={},this.deduped=new lg(a.scheduler),this.isSpriteLoaded=d,this.scheduler=a.scheduler}loadTile(a,b){const c=a.uid,d=a&&a.request,f=d&&d.collectResourceTiming,g=this.loading[c]=new le(a);g.abort=this.loadVectorData(a,(h,i)=>{const j=!this.loading[c];if(delete this.loading[c],j||h||!i)return g.status="done",j||(this.loaded[c]=g),b(h);const k=i.rawData,l={};i.expires&&(l.expires=i.expires),i.cacheControl&&(l.cacheControl=i.cacheControl),g.vectorTile=i.vectorTile||new h2.VectorTile(new iG(k));const m=()=>{g.parse(g.vectorTile,this.layerIndex,this.availableImages,this.actor,(a,c)=>{if(a||!c)return b(a);const g={};if(f){const h=kc(d);h.length>0&&(g.resourceTiming=JSON.parse(JSON.stringify(h)))}b(null,aa({rawTileData:k.slice(0)},c,l,g))})};this.isSpriteLoaded?m():this.once("isSpriteLoaded",()=>{this.scheduler?this.scheduler.add(m,{type:"parseTile",isSymbolTile:a.isSymbolTile,zoom:a.tileZoom}):m()}),this.loaded=this.loaded||{},this.loaded[c]=g})}reloadTile(a,b){const c=this.loaded,d=a.uid,f=this;if(c&&c[d]){const g=c[d];g.showCollisionBoxes=a.showCollisionBoxes,g.enableTerrain=!!a.enableTerrain,g.projection=a.projection;const h=(a,c)=>{const d=g.reloadCallback;d&&(delete g.reloadCallback,g.parse(g.vectorTile,f.layerIndex,this.availableImages,f.actor,d)),b(a,c)};"parsing"===g.status?g.reloadCallback=h:"done"===g.status&&(g.vectorTile?g.parse(g.vectorTile,this.layerIndex,this.availableImages,this.actor,h):h())}}abortTile(a,b){const c=a.uid,d=this.loading[c];d&&(d.abort&&d.abort(),delete this.loading[c]),b()}removeTile(a,b){const c=this.loaded,d=a.uid;c&&c[d]&&delete c[d],b()}},a.WritingMode=i1,a.ZoomHistory=ei,a.add=x,a.addDynamicAttributes=jR,a.adjoint=function(a,b){var c=b[0],d=b[1],f=b[2],g=b[3],h=b[4],i=b[5],j=b[6],k=b[7],l=b[8];return a[0]=h*l-i*k,a[1]=f*k-d*l,a[2]=d*i-f*h,a[3]=i*j-g*l,a[4]=c*l-f*j,a[5]=f*g-c*i,a[6]=g*k-h*j,a[7]=d*j-c*k,a[8]=c*h-d*g,a},a.asyncAll=$,a.bezier=V,a.bindAll=ag,a.boundsAttributes=kV,a.bufferConvexPolygon=function(a,b){const c=[];for(let d=0;da_&&(a.getActor().send("enforceCacheSizeLimit",a$),a2=0)},a.calculateGlobeMatrix=la,a.calculateGlobeMercatorMatrix=function(a){const b=a.worldSize,c=X(a.center.lat,-85.051129,85.051129),d=new g(gv(a.center.lng)*b,gw(c)*b),f=gx(1,a.center.lat)*b,h=a.pixelsPerMeter,i=b/(f/a.pixelsPerMeter),j=l(new Float64Array(16));return n(j,j,[d.x,d.y,0]),o(j,j,[i,i,h]),j},a.clamp=X,a.clearTileCache=function(a){const b=i.caches.delete(aX);a&&b.catch(a).then(()=>a())},a.clipLine=jp,a.clone=function(a){var b=new j(16);return b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b[4]=a[4],b[5]=a[5],b[6]=a[6],b[7]=a[7],b[8]=a[8],b[9]=a[9],b[10]=a[10],b[11]=a[11],b[12]=a[12],b[13]=a[13],b[14]=a[14],b[15]=a[15],b},a.clone$1=ak,a.collisionCircleLayout=iv,a.config=az,a.conjugate=function(a,b){return a[0]=-b[0],a[1]=-b[1],a[2]=-b[2],a[3]=b[3],a},a.create=function(){var a=new j(16);return j!=Float32Array&&(a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[11]=0,a[12]=0,a[13]=0,a[14]=0),a[0]=1,a[5]=1,a[10]=1,a[15]=1,a},a.create$1=k,a.createExpression=dk,a.createLayout=fk,a.createStyleLayer=function(a){return"custom"===a.type?new j0(a):new j3[a.type](a)},a.cross=F,a.degToRad=R,a.div=function(a,b,c){return a[0]=b[0]/c[0],a[1]=b[1]/c[1],a[2]=b[2]/c[2],a},a.dot=E,a.ease=W,a.easeCubicInOut=U,a.emitValidationErrors=d6,a.endsWith=ah,a.enforceCacheSizeLimit=function(a){a0(),aY&&aY.then(b=>{b.keys().then(c=>{for(let d=0;dg&&(d+=(a[f]-g)*(a[f]-g)),b[f]Math.abs(b.parallels[0]+b.parallels[1])){let c=function(a){const b=Math.max(.01,Math.cos(a*P)),c=1/(2*Math.max(Math.PI*b,1/b));return{wrap:!0,supportsWorldCopies:!0,unsupportedLayers:["custom",],project(a,d){const f=a*P*b,g=Math.sin(d*P)/b;return{x:f*c+.5,y:-g*c+.5,z:0}},unproject(a,d){const f=-(d-.5)/c,g=X((a-.5)/c*Q/b,-180,180),h=Math.asin(X(f*b,-1,1)),i=X(h*Q,-85.051129,85.051129);return new gs(g,i)}}}(b.parallels[0]);if("lambertConformalConic"===b.name){const{project:d,unproject:f}=lw.mercator;c={wrap:!0,supportsWorldCopies:!0,project:d,unproject:f}}return aa({},a,b,c)}return aa({},a,b)}(b,a):b},a.getRTLTextPluginStatus=e_,a.getReferrer=a5,a.getTilePoint=function(a,{x:b,y:c},d=0){return new g(((b-d)*a.scale-a.x)*8192,(c*a.scale-a.y)*8192)},a.getTileVec3=function(a,b,c=0){return w(((b.x-c)*a.scale-a.x)*8192,(b.y*a.scale-a.y)*8192,gA(b.z,b.y))},a.getVideo=function(a,b){const c=i.document.createElement("video");c.muted=!0,c.onloadstart=function(){b(null,c)};for(let d=0;d0&&(h=1/Math.sqrt(h)),a[0]=c*h,a[1]=d*h,a[2]=f*h,a[3]=g*h,a},a.number=cr,a.ortho=function(a,b,c,d,f,g,h){var i=1/(b-c),j=1/(d-f),k=1/(g-h);return a[0]=-2*i,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*j,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2*k,a[11]=0,a[12]=(b+c)*i,a[13]=(f+d)*j,a[14]=(h+g)*k,a[15]=1,a},a.pbf=iG,a.perspective=function(a,b,c,d,f){var g,h=1/Math.tan(b/2);return a[0]=h/c,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=h,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[11]=-1,a[12]=0,a[13]=0,a[15]=0,null!=f&&f!==1/0?(a[10]=(f+d)*(g=1/(d-f)),a[14]=2*f*d*g):(a[10]=-1,a[14]=-2*d),a},a.pick=function(a,b){const c={};for(let d=0;dthis._layers[a.id]),k=j[0];if("none"===k.visibility)continue;const l=k.source||"";let m=this.familiesBySource[l];m||(m=this.familiesBySource[l]={});const n=k.sourceLayer||"_geojsonTileLayer";let o=m[n];o||(o=m[n]=[]),o.push(j)}}}const{ImageBitmap:f}=a.window;class g{loadTile(b,c){const{uid:d,encoding:g,rawImageData:h,padding:i,buildQuadTree:j}=b,k=f&&h instanceof f?this.getImageData(h,i):h;c(null,new a.DEMData(d,k,g,i<1,j))}getImageData(b,c){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(b.width,b.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=b.width,this.offscreenCanvas.height=b.height,this.offscreenCanvasContext.drawImage(b,0,0,b.width,b.height);const d=this.offscreenCanvasContext.getImageData(-c,-c,b.width+2*c,b.height+2*c);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new a.RGBAImage({width:d.width,height:d.height},d.data)}}var h,i=function a(b,c){var d,f=b&&b.type;if("FeatureCollection"===f)for(d=0;d=Math.abs(i)?c-j+i:i-j+c,c=j}c+d>=0!= !!b&&a.reverse()}const l=a.vectorTile.VectorTileFeature.prototype.toGeoJSON;class m{constructor(b){this._feature=b,this.extent=a.EXTENT,this.type=b.type,this.properties=b.tags,"id"in b&&!isNaN(b.id)&&(this.id=parseInt(b.id,10))}loadGeometry(){if(1===this._feature.type){const b=[];for(const c of this._feature.geometry)b.push([new a.pointGeometry(c[0],c[1]),]);return b}{const d=[];for(const f of this._feature.geometry){const g=[];for(const h of f)g.push(new a.pointGeometry(h[0],h[1]));d.push(g)}return d}}toGeoJSON(a,b,c){return l.call(this,a,b,c)}}class n{constructor(b){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=a.EXTENT,this.length=b.length,this._features=b}feature(a){return new m(this._features[a])}}var o=a.vectorTile.VectorTileFeature,p=q;function q(a,b){this.options=b||{},this.features=a,this.length=a.length}function r(a,b){this.id="number"==typeof a.id?a.id:void 0,this.type=a.type,this.rawGeometry=1===a.type?[a.geometry]:a.geometry,this.properties=a.tags,this.extent=b||4096}q.prototype.feature=function(a){return new r(this.features[a],this.options.extent)},r.prototype.loadGeometry=function(){var b=this.rawGeometry;this.geometry=[];for(var c=0;c>31}function A(a,b){for(var c=a.loadGeometry(),d=a.type,f=0,g=0,h=c.length,i=0;i>1;D(a,b,h,d,f,g%2),C(a,b,c,d,h-1,g+1),C(a,b,c,h+1,f,g+1)}function D(a,b,c,d,f,g){for(;f>d;){if(f-d>600){const h=f-d+1,i=c-d+1,j=Math.log(h),k=.5*Math.exp(2*j/3),l=.5*Math.sqrt(j*k*(h-k)/h)*(i-h/2<0?-1:1);D(a,b,c,Math.max(d,Math.floor(c-i*k/h+l)),Math.min(f,Math.floor(c+(h-i)*k/h+l)),g)}const m=b[2*c+g];let n=d,o=f;for(E(a,b,d,c),b[2*f+g]>m&&E(a,b,d,f);nm;)o--}b[2*d+g]===m?E(a,b,d,o):E(a,b,++o,f),o<=c&&(d=o+1),c<=o&&(f=o-1)}}function E(a,b,c,d){F(a,c,d),F(b,2*c,2*d),F(b,2*c+1,2*d+1)}function F(a,b,c){const d=a[b];a[b]=a[c],a[c]=d}function G(a,b,c,d){const f=a-c,g=b-d;return f*f+g*g}s.fromVectorTileJs=u,s.fromGeojsonVt=function(a,b){b=b||{};var c={};for(var d in a)c[d]=new p(a[d].features,b),c[d].name=d,c[d].version=b.version,c[d].extent=b.extent;return u({layers:c})},s.GeoJSONWrapper=p;const H=a=>a[0],I=a=>a[1];class J{constructor(a,b=H,c=I,d=64,f=Float64Array){this.nodeSize=d,this.points=a;const g=a.length<65536?Uint16Array:Uint32Array,h=this.ids=new g(a.length),i=this.coords=new f(2*a.length);for(let j=0;j=c&&k<=f&&l>=d&&l<=g&&j.push(a[p]);continue}const q=Math.floor((o+n)/2);k=b[2*q],l=b[2*q+1],k>=c&&k<=f&&l>=d&&l<=g&&j.push(a[q]);const r=(m+1)%2;(0===m?c<=k:d<=l)&&(i.push(o),i.push(q-1),i.push(r)),(0===m?f>=k:g>=l)&&(i.push(q+1),i.push(n),i.push(r))}return j}(this.ids,this.coords,a,b,c,d,this.nodeSize)}within(a,b,c){return function(a,b,c,d,f,g){const h=[0,a.length-1,0],i=[],j=f*f;for(;h.length;){const k=h.pop(),l=h.pop(),m=h.pop();if(l-m<=g){for(let n=m;n<=l;n++)G(b[2*n],b[2*n+1],c,d)<=j&&i.push(a[n]);continue}const o=Math.floor((m+l)/2),p=b[2*o],q=b[2*o+1];G(p,q,c,d)<=j&&i.push(a[o]);const r=(k+1)%2;(0===k?c-f<=p:d-f<=q)&&(h.push(m),h.push(o-1),h.push(r)),(0===k?c+f>=p:d+f>=q)&&(h.push(o+1),h.push(l),h.push(r))}return i}(this.ids,this.coords,a,b,c,this.nodeSize)}}const K=Math.fround||(h=new Float32Array(1),a=>(h[0]=+a,h[0]));class L{constructor(a){this.options=T(Object.create({minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:a=>a}),a),this.trees=Array(this.options.maxZoom+1)}load(a){const{log:b,minZoom:c,maxZoom:d,nodeSize:f}=this.options;b&&console.time("total time");const g=`prepare ${a.length} points`;b&&console.time(g),this.points=a;let h=[];for(let i=0;i=c;j--){const k=+Date.now();h=this._cluster(h,j),this.trees[j]=new J(h,U,V,f,Float32Array),b&&console.log("z%d: %d clusters in %dms",j,h.length,+Date.now()-k)}return b&&console.timeEnd("total time"),this}getClusters(a,b){let c=((a[0]+180)%360+360)%360-180;const d=Math.max(-90,Math.min(90,a[1]));let f=180===a[2]?180:((a[2]+180)%360+360)%360-180;const g=Math.max(-90,Math.min(90,a[3]));if(a[2]-a[0]>=360)c=-180,f=180;else if(c>f){const h=this.getClusters([c,d,180,g],b),i=this.getClusters([-180,d,f,g],b);return h.concat(i)}const j=this.trees[this._limitZoom(b)],k=j.range(Q(c),R(g),Q(f),R(d)),l=[];for(const m of k){const n=j.points[m];l.push(n.numPoints?O(n):this.points[n.index])}return l}getChildren(a){const b=this._getOriginId(a),c=this._getOriginZoom(a),d="No cluster with the specified id.",f=this.trees[c];if(!f)throw Error(d);const g=f.points[b];if(!g)throw Error(d);const h=this.options.radius/(this.options.extent*Math.pow(2,c-1)),i=f.within(g.x,g.y,h),j=[];for(const k of i){const l=f.points[k];l.parentId===a&&j.push(l.numPoints?O(l):this.points[l.index])}if(0===j.length)throw Error(d);return j}getLeaves(a,b,c){const d=[];return this._appendLeaves(d,a,b=b||10,c=c||0,0),d}getTile(a,b,c){const d=this.trees[this._limitZoom(a)],f=Math.pow(2,a),{extent:g,radius:h}=this.options,i=h/g,j=(c-i)/f,k=(c+1+i)/f,l={features:[]};return this._addTileFeatures(d.range((b-i)/f,j,(b+1+i)/f,k),d.points,b,c,f,l),0===b&&this._addTileFeatures(d.range(1-i/f,j,1,k),d.points,f,c,f,l),b===f-1&&this._addTileFeatures(d.range(0,j,i/f,k),d.points,-1,c,f,l),l.features.length?l:null}getClusterExpansionZoom(a){let b=this._getOriginZoom(a)-1;for(;b<=this.options.maxZoom;){const c=this.getChildren(a);if(b++,1!==c.length)break;a=c[0].properties.cluster_id}return b}_appendLeaves(a,b,c,d,f){const g=this.getChildren(b);for(const h of g){const i=h.properties;if(i&&i.cluster?f+i.point_count<=d?f+=i.point_count:f=this._appendLeaves(a,i.cluster_id,c,d,f):fb&&(o+=q.numPoints||1)}if(o>n&&o>=h){let r=k.x*n,s=k.y*n,u=g&&n>1?this._map(k,!0):null;const v=(j<<5)+(b+1)+this.points.length;for(const w of m){const x=l.points[w];if(x.zoom<=b)continue;x.zoom=b;const y=x.numPoints||1;r+=x.x*y,s+=x.y*y,x.parentId=v,g&&(u||(u=this._map(k,!0)),g(u,this._map(x)))}k.parentId=v,c.push(M(r/o,s/o,v,o,u))}else if(c.push(k),o>1)for(const z of m){const A=l.points[z];A.zoom<=b||(A.zoom=b,c.push(A))}}return c}_getOriginId(a){return a-this.points.length>>5}_getOriginZoom(a){return(a-this.points.length)%32}_map(a,b){if(a.numPoints)return b?T({},a.properties):a.properties;const c=this.points[a.index].properties,d=this.options.map(c);return b&&d===c?T({},d):d}}function M(a,b,c,d,f){return{x:K(a),y:K(b),zoom:1/0,id:c,parentId:-1,numPoints:d,properties:f}}function N(a,b){const[c,d]=a.geometry.coordinates;return{x:K(Q(c)),y:K(R(d)),zoom:1/0,index:b,parentId:-1}}function O(a){return{type:"Feature",id:a.id,properties:P(a),geometry:{type:"Point",coordinates:[360*(a.x-.5),S(a.y),]}}}function P(a){const b=a.numPoints,c=b>=1e4?`${Math.round(b/1e3)}k`:b>=1e3?Math.round(b/100)/10+"k":b;return T(T({},a.properties),{cluster:!0,cluster_id:a.id,point_count:b,point_count_abbreviated:c})}function Q(a){return a/360+.5}function R(a){const b=Math.sin(a*Math.PI/180),c=.5-.25*Math.log((1+b)/(1-b))/Math.PI;return c<0?0:c>1?1:c}function S(a){return 360*Math.atan(Math.exp((180-360*a)*Math.PI/180))/Math.PI-90}function T(a,b){for(const c in b)a[c]=b[c];return a}function U(a){return a.x}function V(a){return a.y}function W(a,b,c,d){for(var f,g=d,h=c-b>>1,i=c-b,j=a[b],k=a[b+1],l=a[c],m=a[c+1],n=b+3;ng)f=n,g=o;else if(o===g){var p=Math.abs(n-h);pd&&(f-b>3&&W(a,b,f,d),a[f+2]=g,c-f>3&&W(a,f,c,d))}function X(a,b,c,d,f,g){var h=f-c,i=g-d;if(0!==h||0!==i){var j=((a-c)*h+(b-d)*i)/(h*h+i*i);j>1?(c=f,d=g):j>0&&(c+=h*j,d+=i*j)}return(h=a-c)*h+(i=b-d)*i}function Y(a,b,c,d){var f={id:void 0===a?null:a,type:b,geometry:c,tags:d,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(a){var b=a.geometry,c=a.type;if("Point"===c||"MultiPoint"===c||"LineString"===c)Z(a,b);else if("Polygon"===c||"MultiLineString"===c)for(var d=0;d0&&(h+=d?(f*k-j*g)/2:Math.sqrt(Math.pow(j-f,2)+Math.pow(k-g,2))),f=j,g=k}var l=b.length-3;b[2]=1,W(b,0,l,c),b[l+2]=1,b.size=Math.abs(h),b.start=0,b.end=b.size}function ab(a,b,c,d){for(var f=0;f1?1:c}function ae(a,b,c,d,f,g,h,i){if(d/=b,g>=(c/=b)&&h=d)return null;for(var j=[],k=0;k=c&&p=d)){var q=[];if("Point"===n||"MultiPoint"===n)af(m,q,c,d,f);else if("LineString"===n)ag(m,q,c,d,f,!1,i.lineMetrics);else if("MultiLineString"===n)ai(m,q,c,d,f,!1);else if("Polygon"===n)ai(m,q,c,d,f,!0);else if("MultiPolygon"===n)for(var r=0;r=c&&h<=d&&(b.push(a[g]),b.push(a[g+1]),b.push(a[g+2]))}}function ag(a,b,c,d,f,g,h){for(var i,j,k=ah(a),l=0===f?ak:al,m=a.start,n=0;nc&&(j=l(k,o,p,r,s,c),h&&(k.start=m+i*j)):u>d?v=c&&(j=l(k,o,p,r,s,c),w=!0),v>d&&u<=d&&(j=l(k,o,p,r,s,d),w=!0),!g&&w&&(h&&(k.end=m+i*j),b.push(k),k=ah(a)),h&&(m+=i)}var x=a.length-3;o=a[x],p=a[x+1],q=a[x+2],(u=0===f?o:p)>=c&&u<=d&&aj(k,o,p,q),x=k.length-3,g&&x>=3&&(k[x]!==k[0]||k[x+1]!==k[1])&&aj(k,k[0],k[1],k[2]),k.length&&b.push(k)}function ah(a){var b=[];return b.size=a.size,b.start=a.start,b.end=a.end,b}function ai(a,b,c,d,f,g){for(var h=0;hh.maxX&&(h.maxX=l),m>h.maxY&&(h.maxY=m)}return h}function ar(a,b,c,d){var f=b.geometry,g=b.type,h=[];if("Point"===g||"MultiPoint"===g)for(var i=0;i0&&b.size<(f?h:d))c.numPoints+=b.length/3;else{for(var i=[],j=0;jh)&&(c.numSimplified++,i.push(b[j]),i.push(b[j+1])),c.numPoints++;f&&function(a,b){for(var c=0,d=0,f=a.length,g=f-2;d0===b)for(d=0,f=a.length;d24)throw Error("maxZoom should be in the 0-24 range");if(b.promoteId&&b.generateId)throw Error("promoteId and generateId cannot be used together.");var d,f,g,h,i,j,k=function(a,b){var c=[];if("FeatureCollection"===a.type)for(var d=0;d1&&console.time("creation"),n=this.tiles[m]=aq(a,b,c,d,j),this.tileCoords.push({z:b,x:c,y:d}),k)){k>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",b,c,d,n.numFeatures,n.numPoints,n.numSimplified),console.timeEnd("creation"));var o="z"+b;this.stats[o]=(this.stats[o]||0)+1,this.total++}if(n.source=a,f){if(b===j.maxZoom||b===f)continue;var p=1<1&&console.time("clipping");var q,r,s,u,v,w,x=.5*j.buffer/j.extent,y=.5-x,z=.5+x,A=1+x;q=r=s=u=null,v=ae(a,l,c-x,c+z,0,n.minX,n.maxX,j),w=ae(a,l,c+y,c+A,0,n.minX,n.maxX,j),a=null,v&&(q=ae(v,l,d-x,d+z,1,n.minY,n.maxY,j),r=ae(v,l,d+y,d+A,1,n.minY,n.maxY,j),v=null),w&&(s=ae(w,l,d-x,d+z,1,n.minY,n.maxY,j),u=ae(w,l,d+y,d+A,1,n.minY,n.maxY,j),w=null),k>1&&console.timeEnd("clipping"),i.push(q||[],b+1,2*c,2*d),i.push(r||[],b+1,2*c,2*d+1),i.push(s||[],b+1,2*c+1,2*d),i.push(u||[],b+1,2*c+1,2*d+1)}}},at.prototype.getTile=function(a,b,c){var d=this.options,f=d.extent,g=d.debug;if(a<0||a>24)return null;var h=1<1&&console.log("drilling down to z%d-%d-%d",a,b,c);for(var j,k=a,l=b,m=c;!j&&k>0;)k--,l=Math.floor(l/2),m=Math.floor(m/2),j=this.tiles[au(k,l,m)];return j&&j.source?(g>1&&console.log("found parent tile z%d-%d-%d",k,l,m),g>1&&console.time("drilling down"),this.splitTile(j.source,k,l,m,a,b,c),g>1&&console.timeEnd("drilling down"),this.tiles[i]?ao(this.tiles[i],f):null):null};class av extends a.VectorTileWorkerSource{constructor(a,b,c,d,f){super(a,b,c,d,function(a,b){const c=a.tileID.canonical;if(!this._geoJSONIndex)return b(null,null);const d=this._geoJSONIndex.getTile(c.z,c.x,c.y);if(!d)return b(null,null);const f=new n(d.features);let g=s(f);0===g.byteOffset&&g.byteLength===g.buffer.byteLength||(g=new Uint8Array(g)),b(null,{vectorTile:f,rawData:g.buffer})}),f&&(this.loadGeoJSON=f)}loadData(b,c){const d=b&&b.request,f=d&&d.collectResourceTiming;this.loadGeoJSON(b,(g,h)=>{if(g||!h)return c(g);if("object"!=typeof h)return c(Error(`Input data given to '${b.source}' is not a valid GeoJSON object.`));{i(h,!0);try{var j,k;if(b.filter){const l=a.createExpression(b.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===l.result)throw Error(l.value.map(a=>`${a.key}: ${a.message}`).join(", "));const m=h.features.filter(a=>l.value.evaluate({zoom:0},a));h={type:"FeatureCollection",features:m}}this._geoJSONIndex=b.cluster?new L(function({superclusterOptions:b,clusterProperties:c}){if(!c||!b)return b;const d={},f={},g={accumulated:null,zoom:0},h={properties:null},i=Object.keys(c);for(const j of i){const[k,l]=c[j],m=a.createExpression(l),n=a.createExpression("string"==typeof k?[k,["accumulated",],["get",j,],]:k);d[j]=m.value,f[j]=n.value}return b.map=a=>{h.properties=a;const b={};for(const c of i)b[c]=d[c].evaluate(g,h);return b},b.reduce=(a,b)=>{for(const c of(h.properties=b,i))g.accumulated=a[c],a[c]=f[c].evaluate(g,h)},b}(b)).load(h.features):(j=h,k=b.geojsonVtOptions,new at(j,k))}catch(n){return c(n)}this.loaded={};const o={};if(f){const p=a.getPerformanceMeasurement(d);p&&(o.resourceTiming={},o.resourceTiming[b.source]=JSON.parse(JSON.stringify(p)))}c(null,o)}})}reloadTile(a,b){const c=this.loaded;return c&&c[a.uid]?super.reloadTile(a,b):this.loadTile(a,b)}loadGeoJSON(b,c){if(b.request)a.getJSON(b.request,c);else{if("string"!=typeof b.data)return c(Error(`Input data given to '${b.source}' is not a valid GeoJSON object.`));try{return c(null,JSON.parse(b.data))}catch(d){return c(Error(`Input data given to '${b.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(a,b){try{b(null,this._geoJSONIndex.getClusterExpansionZoom(a.clusterId))}catch(c){b(c)}}getClusterChildren(a,b){try{b(null,this._geoJSONIndex.getChildren(a.clusterId))}catch(c){b(c)}}getClusterLeaves(a,b){try{b(null,this._geoJSONIndex.getLeaves(a.clusterId,a.limit,a.offset))}catch(c){b(c)}}}class aw{constructor(b){this.self=b,this.actor=new a.Actor(b,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=a.getProjection({name:"mercator"}),this.workerSourceTypes={vector:a.VectorTileWorkerSource,geojson:av},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(a,b)=>{if(this.workerSourceTypes[a])throw Error(`Worker source with name "${a}" already registered.`);this.workerSourceTypes[a]=b},this.self.registerRTLTextPlugin=b=>{if(a.plugin.isParsed())throw Error("RTL text plugin already registered.");a.plugin.applyArabicShaping=b.applyArabicShaping,a.plugin.processBidirectionalText=b.processBidirectionalText,a.plugin.processStyledBidirectionalText=b.processStyledBidirectionalText}}clearCaches(a,b,c){delete this.layerIndexes[a],delete this.availableImages[a],delete this.workerSources[a],delete this.demWorkerSources[a],c()}checkIfReady(a,b,c){c()}setReferrer(a,b){this.referrer=b}spriteLoaded(b,c){for(const d in this.isSpriteLoaded[b]=c,this.workerSources[b]){const f=this.workerSources[b][d];for(const g in f)f[g]instanceof a.VectorTileWorkerSource&&(f[g].isSpriteLoaded=c,f[g].fire(new a.Event("isSpriteLoaded")))}}setImages(a,b,c){for(const d in this.availableImages[a]=b,this.workerSources[a]){const f=this.workerSources[a][d];for(const g in f)f[g].availableImages=b}c()}enableTerrain(a,b,c){this.terrain=b,c()}setProjection(b,c){this.projections[b]=a.getProjection(c)}setLayers(a,b,c){this.getLayerIndex(a).replace(b),c()}updateLayers(a,b,c){this.getLayerIndex(a).update(b.layers,b.removedIds),c()}loadTile(b,c,d){const f=this.enableTerrain?a.extend({enableTerrain:this.terrain},c):c;f.projection=this.projections[b]||this.defaultProjection,this.getWorkerSource(b,c.type,c.source).loadTile(f,d)}loadDEMTile(b,c,d){const f=this.enableTerrain?a.extend({buildQuadTree:this.terrain},c):c;this.getDEMWorkerSource(b,c.source).loadTile(f,d)}reloadTile(b,c,d){const f=this.enableTerrain?a.extend({enableTerrain:this.terrain},c):c;f.projection=this.projections[b]||this.defaultProjection,this.getWorkerSource(b,c.type,c.source).reloadTile(f,d)}abortTile(a,b,c){this.getWorkerSource(a,b.type,b.source).abortTile(b,c)}removeTile(a,b,c){this.getWorkerSource(a,b.type,b.source).removeTile(b,c)}removeSource(a,b,c){if(!this.workerSources[a]||!this.workerSources[a][b.type]||!this.workerSources[a][b.type][b.source])return;const d=this.workerSources[a][b.type][b.source];delete this.workerSources[a][b.type][b.source],void 0!==d.removeSource?d.removeSource(b,c):c()}loadWorkerSource(a,b,c){try{this.self.importScripts(b.url),c()}catch(d){c(d.toString())}}syncRTLPluginState(b,c,d){try{a.plugin.setState(c);const f=a.plugin.getPluginURL();if(a.plugin.isLoaded()&&!a.plugin.isParsed()&&null!=f){this.self.importScripts(f);const g=a.plugin.isParsed();d(g?void 0:Error(`RTL Text Plugin failed to import scripts from ${f}`),g)}}catch(h){d(h.toString())}}getAvailableImages(a){let b=this.availableImages[a];return b||(b=[]),b}getLayerIndex(a){let b=this.layerIndexes[a];return b||(b=this.layerIndexes[a]=new d),b}getWorkerSource(a,b,c){return this.workerSources[a]||(this.workerSources[a]={}),this.workerSources[a][b]||(this.workerSources[a][b]={}),this.workerSources[a][b][c]||(this.workerSources[a][b][c]=new this.workerSourceTypes[b]({send:(b,c,d,f,g,h)=>{this.actor.send(b,c,d,a,g,h)},scheduler:this.actor.scheduler},this.getLayerIndex(a),this.getAvailableImages(a),this.isSpriteLoaded[a])),this.workerSources[a][b][c]}getDEMWorkerSource(a,b){return this.demWorkerSources[a]||(this.demWorkerSources[a]={}),this.demWorkerSources[a][b]||(this.demWorkerSources[a][b]=new g),this.demWorkerSources[a][b]}enforceCacheSizeLimit(b,c){a.enforceCacheSizeLimit(c)}getWorkerPerformanceMetrics(a,b,c){c(void 0,void 0)}}return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new aw(self)),aw}),f(["./shared"],function(a){var b=c;function c(a){var b,f;return b=a,"undefined"!=typeof window&&"undefined"!=typeof document&&!!Array.prototype&&!!Array.prototype.every&&!!Array.prototype.filter&&!!Array.prototype.forEach&&!!Array.prototype.indexOf&&!!Array.prototype.lastIndexOf&&!!Array.prototype.map&&!!Array.prototype.some&&!!Array.prototype.reduce&&!!Array.prototype.reduceRight&&!!Array.isArray&&!!Function.prototype&&!!Function.prototype.bind&&!!Object.keys&&!!Object.create&&!!Object.getPrototypeOf&&!!Object.getOwnPropertyNames&&!!Object.isSealed&&!!Object.isFrozen&&!!Object.isExtensible&&!!Object.getOwnPropertyDescriptor&&!!Object.defineProperty&&!!Object.defineProperties&&!!Object.seal&&!!Object.freeze&&!!Object.preventExtensions&&!!("JSON"in window&&"parse"in JSON&&"stringify"in JSON)&&!!function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var a,b,c=new Blob([""],{type:"text/javascript"}),d=URL.createObjectURL(c);try{b=new Worker(d),a=!0}catch(f){a=!1}return b&&b.terminate(),URL.revokeObjectURL(d),a}()&&"Uint8ClampedArray"in window&&!!ArrayBuffer.isView&&!!function(){var a=document.createElement("canvas");a.width=a.height=1;var b=a.getContext("2d");if(!b)return!1;var c=b.getImageData(0,0,1,1);return c&&c.width===a.width}()&&(void 0===d[f=b&&b.failIfMajorPerformanceCaveat]&&(d[f]=function(a){var b,d,f,g,h=(b=a,d=document.createElement("canvas"),(f=Object.create(c.webGLContextAttributes)).failIfMajorPerformanceCaveat=b,d.getContext("webgl",f)||d.getContext("experimental-webgl",f));if(!h)return!1;try{g=h.createShader(h.VERTEX_SHADER)}catch(i){return!1}return!(!g||h.isContextLost())&&(h.shaderSource(g,"void main() {}"),h.compileShader(g),!0===h.getShaderParameter(g,h.COMPILE_STATUS))}(f)),!!d[f]&&!document.documentMode)}var d={};function f(a,b){var c=b[0],d=b[1],f=b[2],g=b[3],h=c*g-f*d;return h?(a[0]=g*(h=1/h),a[1]=-d*h,a[2]=-f*h,a[3]=c*h,a):null}function g(a,b){if(Array.isArray(a)){if(!Array.isArray(b)||a.length!==b.length)return!1;for(let c=0;c{a.window.removeEventListener("click",l,!0)},0)},h.mousePos=function(a,b){const c=a.getBoundingClientRect();return m(a,c,b)},h.touchPos=function(a,b){const c=a.getBoundingClientRect(),d=[];for(let f=0;f=0?0:b.button};class o extends a.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(a){if(this.loaded!==a&&(this.loaded=a,a)){for(const{ids:b,callback:c}of this.requestors)this._notify(b,c);this.requestors=[]}}getImage(a){return this.images[a]}addImage(a,b){this._validate(a,b)&&(this.images[a]=b)}_validate(b,c){let d=!0;return this._validateStretch(c.stretchX,c.data&&c.data.width)||(this.fire(new a.ErrorEvent(Error(`Image "${b}" has invalid "stretchX" value`))),d=!1),this._validateStretch(c.stretchY,c.data&&c.data.height)||(this.fire(new a.ErrorEvent(Error(`Image "${b}" has invalid "stretchY" value`))),d=!1),this._validateContent(c.content,c)||(this.fire(new a.ErrorEvent(Error(`Image "${b}" has invalid "content" value`))),d=!1),d}_validateStretch(a,b){if(!a)return!0;let c=0;for(const d of a){if(d[0]{this.ready=!0})}broadcast(b,c,d){a.asyncAll(this.actors,(a,d)=>{a.send(b,c,d)},d=d||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach(a=>{a.remove()}),this.actors=[],this.workerPool.release(this.id)}}function C(b,c,d){return c*(a.EXTENT/(b.tileSize*Math.pow(2,d-b.tileID.overscaledZ)))}B.Actor=a.Actor;class D{constructor(a,b,c){this.context=a;const d=a.gl;this.buffer=d.createBuffer(),this.dynamicDraw=Boolean(c),this.context.unbindVAO(),a.bindElementBuffer.set(this.buffer),d.bufferData(d.ELEMENT_ARRAY_BUFFER,b.arrayBuffer,this.dynamicDraw?d.DYNAMIC_DRAW:d.STATIC_DRAW),this.dynamicDraw||delete b.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(a){const b=this.context.gl;this.context.unbindVAO(),this.bind(),b.bufferSubData(b.ELEMENT_ARRAY_BUFFER,0,a.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const E={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class F{constructor(a,b,c,d){this.length=b.length,this.attributes=c,this.itemSize=b.bytesPerElement,this.dynamicDraw=d,this.context=a;const f=a.gl;this.buffer=f.createBuffer(),a.bindVertexBuffer.set(this.buffer),f.bufferData(f.ARRAY_BUFFER,b.arrayBuffer,this.dynamicDraw?f.DYNAMIC_DRAW:f.STATIC_DRAW),this.dynamicDraw||delete b.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(a){const b=this.context.gl;this.bind(),b.bufferSubData(b.ARRAY_BUFFER,0,a.arrayBuffer)}enableAttributes(a,b){for(let c=0;cd.pointCoordinate3D(a)),this.cameraGeometry=this.bufferedCameraGeometry(0)}static createFromScreenPoints(b,c){let d,f;if(b instanceof a.pointGeometry||"number"==typeof b[0]){const g=a.pointGeometry.convert(b);d=[a.pointGeometry.convert(b)],f=c.isPointAboveHorizon(g)}else{const h=a.pointGeometry.convert(b[0]),i=a.pointGeometry.convert(b[1]);d=[h,i],f=a.polygonizeBounds(h,i).every(a=>c.isPointAboveHorizon(a))}return new L(d,c.getCameraPoint(),f,c)}isPointQuery(){return 1===this.screenBounds.length}bufferedScreenGeometry(b){return a.polygonizeBounds(this.screenBounds[0],1===this.screenBounds.length?this.screenBounds[0]:this.screenBounds[1],b)}bufferedCameraGeometry(b){const c=this.screenBounds[0],d=1===this.screenBounds.length?this.screenBounds[0].add(new a.pointGeometry(1,1)):this.screenBounds[1],f=a.polygonizeBounds(c,d,0,!1);return this.cameraPoint.y>d.y&&(this.cameraPoint.x>c.x&&this.cameraPoint.x=d.x?f[2]=this.cameraPoint:this.cameraPoint.x<=c.x&&(f[3]=this.cameraPoint)),a.bufferConvexPolygon(f,b)}containsTile(b,c,d){var f;const g=b.queryPadding+1,h=b.tileID.wrap,i=d?this._bufferedCameraMercator(g,c).map(c=>a.getTilePoint(b.tileTransform,c,h)):this._bufferedScreenMercator(g,c).map(c=>a.getTilePoint(b.tileTransform,c,h)),j=this.screenGeometryMercator.map(c=>a.getTileVec3(b.tileTransform,c,h)),k=j.map(b=>new a.pointGeometry(b[0],b[1])),l=c.getFreeCameraOptions().position||new a.MercatorCoordinate(0,0,0),m=a.getTileVec3(b.tileTransform,l,h),n=j.map(b=>{const c=a.sub(b,b,m);return a.normalize(c,c),new a.Ray(m,c)}),o=C(b,1,c.zoom);if(a.polygonIntersectsBox(i,0,0,a.EXTENT,a.EXTENT))return{queryGeometry:this,tilespaceGeometry:k,tilespaceRays:n,bufferedTilespaceGeometry:i,bufferedTilespaceBounds:((f=a.getBounds(i)).min.x=a.clamp(f.min.x,0,a.EXTENT),f.min.y=a.clamp(f.min.y,0,a.EXTENT),f.max.x=a.clamp(f.max.x,0,a.EXTENT),f.max.y=a.clamp(f.max.y,0,a.EXTENT),f),tile:b,tileID:b.tileID,pixelToTileUnitsFactor:o}}_bufferedScreenMercator(a,b){const c=M(a);if(this._screenRaycastCache[c])return this._screenRaycastCache[c];{const d=this.bufferedScreenGeometry(a).map(a=>b.pointCoordinate3D(a));return this._screenRaycastCache[c]=d,d}}_bufferedCameraMercator(a,b){const c=M(a);if(this._cameraRaycastCache[c])return this._cameraRaycastCache[c];{const d=this.bufferedCameraGeometry(a).map(a=>b.pointCoordinate3D(a));return this._cameraRaycastCache[c]=d,d}}}function M(a){return 100*a|0}function N(b,c,d){const f=function(f,g){if(f)return d(f);if(g){const h=a.pick(a.extend(g,b),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding",]);g.vector_layers&&(h.vectorLayers=g.vector_layers,h.vectorLayerIds=h.vectorLayers.map(a=>a.id)),h.tiles=c.canonicalizeTileset(h,b.url),d(null,h)}};return b.url?a.getJSON(c.transformRequest(c.normalizeSourceURL(b.url),a.ResourceType.Source),f):a.exported.frame(()=>f(null,b))}class O{constructor(b,c,d){this.bounds=a.LngLatBounds.convert(this.validateBounds(b)),this.minzoom=c||0,this.maxzoom=d||24}validateBounds(a){return Array.isArray(a)&&4===a.length?[Math.max(-180,a[0]),Math.max(-90,a[1]),Math.min(180,a[2]),Math.min(90,a[3]),]:[-180,-90,180,90]}contains(b){const c=Math.pow(2,b.z),d=Math.floor(a.mercatorXfromLng(this.bounds.getWest())*c),f=Math.floor(a.mercatorYfromLat(this.bounds.getNorth())*c),g=Math.ceil(a.mercatorXfromLng(this.bounds.getEast())*c),h=Math.ceil(a.mercatorYfromLat(this.bounds.getSouth())*c);return b.x>=d&&b.x=f&&b.y{this._tileJSONRequest=null,this._loaded=!0,b?this.fire(new a.ErrorEvent(b)):c&&(a.extend(this,c),c.bounds&&(this.tileBounds=new O(c.bounds,this.minzoom,this.maxzoom)),a.postTurnstileEvent(c.tiles),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}onAdd(a){this.map=a,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return a.extend({},this._options)}hasTile(a){return!this.tileBounds||this.tileBounds.contains(a.canonical)}loadTile(b,c){const d=a.exported.devicePixelRatio>=2,f=this.map._requestManager.normalizeTileURL(b.tileID.canonical.url(this.tiles,this.scheme),d,this.tileSize);b.request=a.getImage(this.map._requestManager.transformRequest(f,a.ResourceType.Tile),(d,f,g,h)=>{if(delete b.request,b.aborted)b.state="unloaded",c(null);else if(d)b.state="errored",c(d);else if(f){this.map._refreshExpiredTiles&&b.setExpiryData({cacheControl:g,expires:h});const i=this.map.painter.context,j=i.gl;b.texture=this.map.painter.getTileTexture(f.width),b.texture?b.texture.update(f,{useMipmap:!0}):(b.texture=new a.Texture(i,f,j.RGBA,{useMipmap:!0}),b.texture.bind(j.LINEAR,j.CLAMP_TO_EDGE),i.extTextureFilterAnisotropic&&j.texParameterf(j.TEXTURE_2D,i.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,i.extTextureFilterAnisotropicMax)),b.state="loaded",a.cacheEntryPossiblyAdded(this.dispatcher),c(null)}})}abortTile(a,b){a.request&&(a.request.cancel(),delete a.request),b()}unloadTile(a,b){a.texture&&this.map.painter.saveTileTexture(a.texture),b()}hasTransition(){return!1}}let Q;function R(b,c,d,f,g,h,i,j){const k=[b,d,g,c,f,h,1,1,1],l=[i,j,1],m=a.adjoint([],k),[n,o,p]=a.transformMat3(l,l,a.transpose(m,m));return a.multiply(k,[n,0,0,0,o,0,0,0,p],k)}class S extends a.Evented{constructor(a,b,c,d){super(),this.id=a,this.dispatcher=c,this.coordinates=b.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(d),this.options=b}load(b,c){this._loaded=!1,this.fire(new a.Event("dataloading",{dataType:"source"})),this.url=this.options.url,a.getImage(this.map._requestManager.transformRequest(this.url,a.ResourceType.Image),(d,f)=>{this._loaded=!0,d?this.fire(new a.ErrorEvent(d)):f&&(this.image=a.exported.getImageData(f),this.width=this.image.width,this.height=this.image.height,b&&(this.coordinates=b),c&&c(),this._finishLoading())})}loaded(){return this._loaded}updateImage(a){return this.image&&a.url&&(this.options.url=a.url,this.load(a.coordinates,()=>{this.texture=null})),this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(a){this.map=a,this.load()}setCoordinates(b){this.coordinates=b,delete this._boundsArray;const c=b.map(a.MercatorCoordinate.fromLngLat);return this.tileID=function(b){let c=1/0,d=1/0,f=-1/0,g=-1/0;for(const h of b)c=Math.min(c,h.x),d=Math.min(d,h.y),f=Math.max(f,h.x),g=Math.max(g,h.y);const i=Math.max(f-c,g-d),j=Math.max(0,Math.floor(-Math.log(i)/Math.LN2)),k=Math.pow(2,j);return new a.CanonicalTileID(j,Math.floor((c+f)/2*k),Math.floor((d+g)/2*k))}(c),this.minzoom=this.maxzoom=this.tileID.z,this.fire(new a.Event("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){delete this._boundsArray}_makeBoundsArray(){const b=a.tileTransform(this.tileID,this.map.transform.projection),[c,d,f,g]=this.coordinates.map(c=>{const d=b.projection.project(c[0],c[1]);return a.getTilePoint(b,d)._round()});return this.perspectiveTransform=function(b,c,d,f,g,h,i,j,k,l){const m=R(0,0,b,0,0,c,b,c),n=R(d,f,g,h,i,j,k,l);return a.multiply(n,a.adjoint(m,m),n),[n[6]/n[8]*b/a.EXTENT,n[7]/n[8]*c/a.EXTENT,]}(this.width,this.height,c.x,c.y,d.x,d.y,g.x,g.y,f.x,f.y),this._boundsArray=new a.StructArrayLayout4i8,this._boundsArray.emplaceBack(c.x,c.y,0,0),this._boundsArray.emplaceBack(d.x,d.y,a.EXTENT,0),this._boundsArray.emplaceBack(g.x,g.y,0,a.EXTENT),this._boundsArray.emplaceBack(f.x,f.y,a.EXTENT,a.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;const b=this.map.painter.context,c=b.gl;for(const d in this._boundsArray||this._makeBoundsArray(),this.boundsBuffer||(this.boundsBuffer=b.createVertexBuffer(this._boundsArray,a.boundsAttributes.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new a.Texture(b,this.image,c.RGBA),this.texture.bind(c.LINEAR,c.CLAMP_TO_EDGE)),this.tiles){const f=this.tiles[d];"loaded"!==f.state&&(f.state="loaded",f.texture=this.texture)}}loadTile(a,b){this.tileID&&this.tileID.equals(a.tileID.canonical)?(this.tiles[String(a.tileID.wrap)]=a,a.buckets={},b(null)):(a.state="errored",b(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}const T={vector:class extends a.Evented{constructor(b,c,d,f){if(super(),this.id=b,this.dispatcher=d,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,a.extend(this,a.pick(c,["url","scheme","tileSize","promoteId",])),this._options=a.extend({type:"vector"},c),this._collectResourceTiming=c.collectResourceTiming,512!==this.tileSize)throw Error("vector tile sources must have a tileSize of 512");this.setEventedParent(f),this._tileWorkers={},this._deduped=new a.DedupedRequest}load(){this._loaded=!1,this.fire(new a.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=N(this._options,this.map._requestManager,(b,c)=>{this._tileJSONRequest=null,this._loaded=!0,b?this.fire(new a.ErrorEvent(b)):c&&(a.extend(this,c),c.bounds&&(this.tileBounds=new O(c.bounds,this.minzoom,this.maxzoom)),a.postTurnstileEvent(c.tiles,this.map._requestManager._customAccessToken),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}hasTile(a){return!this.tileBounds||this.tileBounds.contains(a.canonical)}onAdd(a){this.map=a,this.load()}setSourceProperty(a){this._tileJSONRequest&&this._tileJSONRequest.cancel(),a();const b=this.map.style._getSourceCaches(this.id);for(const c of b)c.clearTiles();this.load()}setTiles(a){return this.setSourceProperty(()=>{this._options.tiles=a}),this}setUrl(a){return this.setSourceProperty(()=>{this.url=a,this._options.url=a}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return a.extend({},this._options)}loadTile(b,c){const d=this.map._requestManager.normalizeTileURL(b.tileID.canonical.url(this.tiles,this.scheme)),f={request:this.map._requestManager.transformRequest(d,a.ResourceType.Tile),data:void 0,uid:b.uid,tileID:b.tileID,tileZoom:b.tileZoom,zoom:b.tileID.overscaledZ,tileSize:this.tileSize*b.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:a.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:b.isSymbolTile};if(f.request.collectResourceTiming=this._collectResourceTiming,b.actor&&"expired"!==b.state)"loading"===b.state?b.reloadCallback=c:b.request=b.actor.send("reloadTile",f,h.bind(this));else if(b.actor=this._tileWorkers[d]=this._tileWorkers[d]||this.dispatcher.getActor(),this.dispatcher.ready)b.request=b.actor.send("loadTile",f,h.bind(this),void 0,!0);else{const g=a.loadVectorTile.call({deduped:this._deduped},f,(a,c)=>{a||!c?h.call(this,a):(f.data={cacheControl:c.cacheControl,expires:c.expires,rawData:c.rawData.slice(0)},b.actor&&b.actor.send("loadTile",f,h.bind(this),void 0,!0))},!0);b.request={cancel:g}}function h(d,f){return delete b.request,b.aborted?c(null):d&&404!==d.status?c(d):(f&&f.resourceTiming&&(b.resourceTiming=f.resourceTiming),this.map._refreshExpiredTiles&&f&&b.setExpiryData(f),b.loadVectorData(f,this.map.painter),a.cacheEntryPossiblyAdded(this.dispatcher),c(null),void(b.reloadCallback&&(this.loadTile(b,b.reloadCallback),b.reloadCallback=null)))}}abortTile(a){a.request&&(a.request.cancel(),delete a.request),a.actor&&a.actor.send("abortTile",{uid:a.uid,type:this.type,source:this.id})}unloadTile(a){a.unloadVectorData(),a.actor&&a.actor.send("removeTile",{uid:a.uid,type:this.type,source:this.id})}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}},raster:P,"raster-dem":class extends P{constructor(b,c,d,f){super(b,c,d,f),this.type="raster-dem",this.maxzoom=22,this._options=a.extend({type:"raster-dem"},c),this.encoding=c.encoding||"mapbox"}loadTile(b,c){const d=this.map._requestManager.normalizeTileURL(b.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function f(a,d){a&&(b.state="errored",c(a)),d&&(b.dem=d,b.dem.onDeserialize(),b.needsHillshadePrepare=!0,b.needsDEMTextureUpload=!0,b.state="loaded",c(null))}b.request=a.getImage(this.map._requestManager.transformRequest(d,a.ResourceType.Tile),(function(d,g,h,i){if(delete b.request,b.aborted)b.state="unloaded",c(null);else if(d)b.state="errored",c(d);else if(g){this.map._refreshExpiredTiles&&b.setExpiryData({cacheControl:h,expires:i});const j=a.window.ImageBitmap&&g instanceof a.window.ImageBitmap&&(null==Q&&(Q=a.window.OffscreenCanvas&&new a.window.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof a.window.createImageBitmap),Q),k=1-(g.width-a.prevPowerOfTwo(g.width))/2;k<1||b.neighboringTiles||(b.neighboringTiles=this._getNeighboringTiles(b.tileID));const l=j?g:a.exported.getImageData(g,k),m={uid:b.uid,coord:b.tileID,source:this.id,rawImageData:l,encoding:this.encoding,padding:k};b.actor&&"expired"!==b.state||(b.actor=this.dispatcher.getActor(),b.actor.send("loadDEMTile",m,f.bind(this),void 0,!0))}}).bind(this))}_getNeighboringTiles(b){const c=b.canonical,d=Math.pow(2,c.z),f=(c.x-1+d)%d,g=0===c.x?b.wrap-1:b.wrap,h=(c.x+1+d)%d,i=c.x+1===d?b.wrap+1:b.wrap,j={};return j[new a.OverscaledTileID(b.overscaledZ,g,c.z,f,c.y).key]={backfilled:!1},j[new a.OverscaledTileID(b.overscaledZ,i,c.z,h,c.y).key]={backfilled:!1},c.y>0&&(j[new a.OverscaledTileID(b.overscaledZ,g,c.z,f,c.y-1).key]={backfilled:!1},j[new a.OverscaledTileID(b.overscaledZ,b.wrap,c.z,c.x,c.y-1).key]={backfilled:!1},j[new a.OverscaledTileID(b.overscaledZ,i,c.z,h,c.y-1).key]={backfilled:!1}),c.y+1{if(this._loaded=!0,this._pendingLoad=null,b)this.fire(new a.ErrorEvent(b));else{const d={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&c&&c.resourceTiming&&c.resourceTiming[this.id]&&(d.resourceTiming=c.resourceTiming[this.id]),this.fire(new a.Event("data",d)),this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(),this._coalesce=!1)})}loaded(){return this._loaded}loadTile(b,c){const d=b.actor?"reloadTile":"loadTile";b.actor=this.actor,b.request=this.actor.send(d,{type:this.type,uid:b.uid,tileID:b.tileID,tileZoom:b.tileZoom,zoom:b.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:a.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(a,f)=>(delete b.request,b.unloadVectorData(),b.aborted?c(null):a?c(a):(b.loadVectorData(f,this.map.painter,"reloadTile"===d),c(null))),void 0,"loadTile"===d)}abortTile(a){a.request&&(a.request.cancel(),delete a.request),a.aborted=!0}unloadTile(a){a.unloadVectorData(),this.actor.send("removeTile",{uid:a.uid,type:this.type,source:this.id})}onRemove(){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return a.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends S{constructor(a,b,c,d){super(a,b,c,d),this.roundZoom=!0,this.type="video",this.options=b}load(){this._loaded=!1;const b=this.options;for(const c of(this.urls=[],b.urls))this.urls.push(this.map._requestManager.transformRequest(c,a.ResourceType.Source).url);a.getVideo(this.urls,(b,c)=>{this._loaded=!0,b?this.fire(new a.ErrorEvent(b)):c&&(this.video=c,this.video.loop=!0,this.video.setAttribute("playsinline",""),this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(b){if(this.video){const c=this.video.seekable;bc.end(0)?this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${this.id}`,null,`Playback for this video can be set only between the ${c.start(0)} and ${c.end(0)}-second mark.`))):this.video.currentTime=b}}getVideo(){return this.video}onAdd(a){this.map||(this.map=a,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const b=this.map.painter.context,c=b.gl;for(const d in this.texture?this.video.paused||(this.texture.bind(c.LINEAR,c.CLAMP_TO_EDGE),c.texSubImage2D(c.TEXTURE_2D,0,0,0,c.RGBA,c.UNSIGNED_BYTE,this.video)):(this.texture=new a.Texture(b,this.video,c.RGBA),this.texture.bind(c.LINEAR,c.CLAMP_TO_EDGE),this.width=this.video.videoWidth,this.height=this.video.videoHeight),this._boundsArray||this._makeBoundsArray(),this.boundsBuffer||(this.boundsBuffer=b.createVertexBuffer(this._boundsArray,a.boundsAttributes.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.tiles){const f=this.tiles[d];"loaded"!==f.state&&(f.state="loaded",f.texture=this.texture)}}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},image:S,canvas:class extends S{constructor(b,c,d,f){super(b,c,d,f),c.coordinates?Array.isArray(c.coordinates)&&4===c.coordinates.length&&!c.coordinates.some(a=>!Array.isArray(a)||2!==a.length||a.some(a=>"number"!=typeof a))||this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${b}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${b}`,null,'missing required property "coordinates"'))),c.animate&&"boolean"!=typeof c.animate&&this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${b}`,null,'optional "animate" property must be a boolean value'))),c.canvas?"string"==typeof c.canvas||c.canvas instanceof a.window.HTMLCanvasElement||this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${b}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${b}`,null,'missing required property "canvas"'))),this.options=c,this.animate=void 0===c.animate||c.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof a.window.HTMLCanvasElement?this.options.canvas:a.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new a.ErrorEvent(Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(a){this.map=a,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let b=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,b=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,b=!0),this._hasInvalidDimensions()||0===Object.keys(this.tiles).length)return;const c=this.map.painter.context,d=c.gl;for(const f in this._boundsArray||this._makeBoundsArray(),this.boundsBuffer||(this.boundsBuffer=c.createVertexBuffer(this._boundsArray,a.boundsAttributes.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(b||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new a.Texture(c,this.canvas,d.RGBA,{premultiply:!0}),this.tiles){const g=this.tiles[f];"loaded"!==g.state&&(g.state="loaded",g.texture=this.texture)}}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const a of[this.canvas.width,this.canvas.height,])if(isNaN(a)||a<=0)return!0;return!1}}},U=function(b,c,d,f){const g=new T[c.type](b,c,d,f);if(g.id!==b)throw Error(`Expected Source id to be ${b} instead of ${g.id}`);return a.bindAll(["load","abort","unload","serialize","prepare",],g),g};function V(b,c){const d=a.identity([]);return a.scale(d,d,[.5*b.width,-(.5*b.height),1,]),a.translate(d,d,[1,-1,0]),a.multiply$1(d,d,b.calculateProjMatrix(c.toUnwrapped()))}function W(a,b,c,d,f,g,h,i=!1){const j=a.tilesIn(d,h,i);j.sort(Y);const k=[];for(const l of j)k.push({wrappedTileID:l.tile.tileID.wrapped().key,queryResults:l.tile.queryRenderedFeatures(b,c,a._state,l,f,g,V(a.transform,l.tile.tileID),i)});const m=function(a){const b={},c={};for(const d of a){const f=d.queryResults,g=d.wrappedTileID,h=c[g]=c[g]||{};for(const i in f){const j=f[i],k=h[i]=h[i]||{},l=b[i]=b[i]||[];for(const m of j)k[m.featureIndex]||(k[m.featureIndex]=!0,l.push(m))}}return b}(k);for(const n in m)m[n].forEach(b=>{const c=b.feature,d=a.getFeatureState(c.layer["source-layer"],c.id);c.source=c.layer.source,c.layer["source-layer"]&&(c.sourceLayer=c.layer["source-layer"]),c.state=d});return m}function X(a,b){const c=a.getRenderableIds().map(b=>a.getTileByID(b)),d=[],f={};for(let g=0;g{a.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[$]}numActive(){return Object.keys(this.active).length}}let aa;function ab(){return aa||(aa=new _),aa}function ac(b,c){const d={};for(const f in b)"ref"!==f&&(d[f]=b[f]);return a.refProperties.forEach(a=>{a in c&&(d[a]=c[a])}),d}function ad(a){a=a.slice();const b=Object.create(null);for(let c=0;c0?(f-h)/i:0;return this.points[g].mult(1-j).add(this.points[c].mult(j))}}class an{constructor(a,b,c){const d=this.boxCells=[],f=this.circleCells=[];this.xCellCount=Math.ceil(a/c),this.yCellCount=Math.ceil(b/c);for(let g=0;gthis.width||d<0||b>this.height)return!f&&[];const h=[];if(a<=0&&b<=0&&this.width<=c&&this.height<=d){if(f)return!0;for(let i=0;i0:h}_queryCircle(a,b,c,d,f){const g=a-c,h=a+c,i=b-c,j=b+c;if(h<0||g>this.width||j<0||i>this.height)return!d&&[];const k=[];return this._forEachCell(g,i,h,j,this._queryCellCircle,k,{hitTest:d,circle:{x:a,y:b,radius:c},seenUids:{box:{},circle:{}}},f),d?k.length>0:k}query(a,b,c,d,f){return this._query(a,b,c,d,!1,f)}hitTest(a,b,c,d,f){return this._query(a,b,c,d,!0,f)}hitTestCircle(a,b,c,d){return this._queryCircle(a,b,c,!0,d)}_queryCell(a,b,c,d,f,g,h,i){const j=h.seenUids,k=this.boxCells[f];if(null!==k){const l=this.bboxes;for(const m of k)if(!j.box[m]){j.box[m]=!0;const n=4*m;if(a<=l[n+2]&&b<=l[n+3]&&c>=l[n+0]&&d>=l[n+1]&&(!i||i(this.boxKeys[m]))){if(h.hitTest)return g.push(!0),!0;g.push({key:this.boxKeys[m],x1:l[n],y1:l[n+1],x2:l[n+2],y2:l[n+3]})}}}const o=this.circleCells[f];if(null!==o){const p=this.circles;for(const q of o)if(!j.circle[q]){j.circle[q]=!0;const r=3*q;if(this._circleAndRectCollide(p[r],p[r+1],p[r+2],a,b,c,d)&&(!i||i(this.circleKeys[q]))){if(h.hitTest)return g.push(!0),!0;{const s=p[r],u=p[r+1],v=p[r+2];g.push({key:this.circleKeys[q],x1:s-v,y1:u-v,x2:s+v,y2:u+v})}}}}}_queryCellCircle(a,b,c,d,f,g,h,i){const j=h.circle,k=h.seenUids,l=this.boxCells[f];if(null!==l){const m=this.bboxes;for(const n of l)if(!k.box[n]){k.box[n]=!0;const o=4*n;if(this._circleAndRectCollide(j.x,j.y,j.radius,m[o+0],m[o+1],m[o+2],m[o+3])&&(!i||i(this.boxKeys[n])))return g.push(!0),!0}}const p=this.circleCells[f];if(null!==p){const q=this.circles;for(const r of p)if(!k.circle[r]){k.circle[r]=!0;const s=3*r;if(this._circlesCollide(q[s],q[s+1],q[s+2],j.x,j.y,j.radius)&&(!i||i(this.circleKeys[r])))return g.push(!0),!0}}}_forEachCell(a,b,c,d,f,g,h,i){const j=this._convertToXCellCoord(a),k=this._convertToYCellCoord(b),l=this._convertToXCellCoord(c),m=this._convertToYCellCoord(d);for(let n=j;n<=l;n++)for(let o=k;o<=m;o++)if(f.call(this,a,b,c,d,this.xCellCount*o+n,g,h,i))return}_convertToXCellCoord(a){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(a*this.xScale)))}_convertToYCellCoord(a){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(a*this.yScale)))}_circlesCollide(a,b,c,d,f,g){const h=d-a,i=f-b,j=c+g;return j*j>h*h+i*i}_circleAndRectCollide(a,b,c,d,f,g,h){const i=(g-d)/2,j=Math.abs(a-(d+i));if(j>i+c)return!1;const k=(h-f)/2,l=Math.abs(b-(f+k));if(l>k+c)return!1;if(j<=i||l<=k)return!0;const m=j-i,n=l-k;return m*m+n*n<=c*c}}const ao=Math.tan(85*Math.PI/180);function ap(b,c,d,g,h,i){let j=a.create();if(d){if("globe"===h.projection.name)j=a.calculateGlobeMatrix(h,h.worldSize/h._projectionScaler,[0,0]),a.multiply$1(j,j,a.globeDenormalizeECEF(a.globeTileBounds(c)));else{const k=f([],i);j[0]=k[0],j[1]=k[1],j[4]=k[2],j[5]=k[3]}g||a.rotateZ(j,j,h.angle)}else a.multiply$1(j,h.labelPlaneMatrix,b);return j}function aq(b,c,d,f,g,h){if(d){if("globe"===g.projection.name){const i=ap(b,c,d,f,g,h);return a.invert(i,i),a.multiply$1(i,b,i),i}{const j=a.clone(b),k=a.identity([]);return k[0]=h[0],k[1]=h[1],k[4]=h[2],k[5]=h[3],a.multiply$1(j,j,k),f||a.rotateZ(j,j,-g.angle),j}}return g.glCoordMatrix}function ar(b,c,d=0){const f=[b.x,b.y,d,1];d?a.transformMat4$1(f,f,c):aD(f,f,c);const g=f[3];return{point:new a.pointGeometry(f[0]/g,f[1]/g),signedDistanceFromCamera:g}}function as(a,b){return Math.min(.5+a/b*.5,1.5)}function at(a,b){const c=a[0]/a[3],d=a[1]/a[3];return c>= -b[0]&&c<=b[0]&&d>= -b[1]&&d<=b[1]}function au(b,c,d,f,g,h,i,j,k,l){const m=d.transform,n=f?b.textSizeData:b.iconSizeData,o=a.evaluateSizeForZoom(n,d.transform.zoom),p=[256/d.width*2+1,256/d.height*2+1,],q=f?b.text.dynamicLayoutVertexArray:b.icon.dynamicLayoutVertexArray;q.clear();const r=b.lineVertexArray,s=f?b.text.placedSymbolArray:b.icon.placedSymbolArray,u=d.transform.width/d.transform.height;let v=!1;for(let w=0;wMath.abs(d.x-c.x)*f?{useVertical:!0}:b.writingMode===a.WritingMode.vertical?c.yao}(c,d,f)?1===b.flipState?{needsFlipping:!0}:null:c.x>d.x?{needsFlipping:!0}:null}function ax(b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s){const u=c/24,v=b.lineOffsetX*u,w=b.lineOffsetY*u;let x;if(b.numGlyphs>1){const y=b.glyphStartIndex+b.numGlyphs,z=b.lineStartIndex,A=b.lineStartIndex+b.lineLength,B=av(u,j,v,w,d,m,n,b,k,h,o,q,!1,r,s);if(!B)return{notEnoughRoom:!0};const C=ar(B.first.point,i).point,D=ar(B.last.point,i).point;if(f&&!d){const E=aw(b,C,D,p);if(b.flipState=E&&E.needsFlipping?1:2,E)return E}x=[B.first];for(let F=b.glyphStartIndex+1;F0?J.point:az(n,I,G,1,g,void 0,r,s.canonical),p);if(b.flipState=K&&K.needsFlipping?1:2,K)return K}const L=aA(u*j.getoffsetX(b.glyphStartIndex),v,w,d,m,n,b.segment,b.lineStartIndex,b.lineStartIndex+b.lineLength,k,h,o,q,!1,!1,r,s);if(!L)return{notEnoughRoom:!0};x=[L]}for(const M of x)a.addDynamicAttributes(l,M.point,M.angle);return{}}function ay(b,c,d,f,g){const h=f.projectTilePoint(b.x,b.y,c);if(!g)return ar(h,d,h.z);const i=g(b);return ar(new a.pointGeometry(h.x+i[0],h.y+i[1]),d,h.z+i[2])}function az(a,b,c,d,f,g,h,i){const j=ay(a.add(a.sub(b)._unit()),i,f,h,g).point,k=c.sub(j);return c.add(k._mult(d/k.mag()))}function aA(b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s){const u=f?b-c:b+c;let v=u>0?1:-1,w=0;f&&(v*=-1,w=Math.PI),v<0&&(w+=Math.PI);let x=v>0?j+i:j+i+1,y=g,z=g,A=0,B=0;const C=Math.abs(u),D=[],E=[];let F=h;const G=()=>{const b=x-v;return 0===A?h:new a.pointGeometry(l.getx(b),l.gety(b))},H=()=>az(G(),F,z,C-A+1,m,o,r,s.canonical);for(;A+B<=C;){if((x+=v)=k)return null;if(z=y,D.push(y),p&&E.push(F||G()),void 0===(y=n[x])){F=new a.pointGeometry(l.getx(x),l.gety(x));const I=ay(F,s.canonical,m,r,o);y=I.signedDistanceFromCamera>0?n[x]=I.point:H()}else F=null;A+=B,B=z.dist(y)}q&&o&&(F=F||new a.pointGeometry(l.getx(x),l.gety(x)),n[x]=y=void 0===n[x]?y:H(),B=z.dist(y));const J=(C-A)/B,K=y.sub(z),L=K.mult(J)._add(z);d&&L._add(K._unit()._perp()._mult(d*v));const M=w+Math.atan2(y.y-z.y,y.x-z.x);return D.push(L),p&&(F=F||new a.pointGeometry(l.getx(x),l.gety(x)),E.push(function(b,c,d){const f=1-d;return new a.pointGeometry(b.x*f+c.x*d,b.y*f+c.y*d)}(E.length>0?E[E.length-1]:F,F,J))),{point:L,angle:M,path:D,tilePath:E}}const aB=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,]);function aC(a,b){for(let c=0;ca.sortKey-b.sortKey));this._currentPartIndex[0,0,0],v=new a.pointGeometry(c.tileAnchorX,c.tileAnchorY),w=this.transform.projection.projectTilePoint(c.tileAnchorX,c.tileAnchorY,p.canonical),x=u(v),y=[w.x+x[0],w.y+x[1],w.z+x[2]],z=this.projectAndGetPerspectiveRatio(h,y[0],y[1],y[2],p),{perspectiveRatio:A}=z,B=(l?g/A:g*A)/a.ONE_EM,C=ar(new a.pointGeometry(y[0],y[1]),i,y[2]).point,D=z.signedDistanceFromCamera>0?av(B,f,c.lineOffsetX*B,c.lineOffsetY*B,!1,C,v,c,d,i,{},r&&!l?u:null,l&&!!r,this.transform.projection,p):null;let E=!1,F=!1,G=!0;if(D&&!z.aboveHorizon){const H=.5*n*A+o,I=new a.pointGeometry(-100,-100),J=new a.pointGeometry(this.screenRightBoundary,this.screenBottomBoundary),K=new am,L=D.first,M=D.last;let N=[];for(let O=L.path.length-1;O>=1;O--)N.push(L.path[O]);for(let P=1;P{const c=u(bar(a,j));N=R.some(a=>a.signedDistanceFromCamera<=0)?[]:R.map(a=>a.point)}let S=[];if(N.length>0){const T=N[0].clone(),U=N[0].clone();for(let V=1;V=I.x&&U.x<=J.x&&T.y>=I.y&&U.y<=J.y?[N]:U.xJ.x||U.yJ.y?[]:a.clipLine([N],I.x,I.y,J.x,J.y)}for(const W of S){K.reset(W,.25*H);let X=0;X=K.length<=.5*H?1:Math.ceil(K.paddedLength/Q)+1;for(let Y=0;Y0){a.transformMat4$1(h,h,b);let j=!1;this.fogState&&g&&(j=function(b,c,d,f,g,h){const i=h.calculateFogTileMatrix(g),j=[c,d,f];return a.transformMat4(j,j,i),w(b,j,h.pitch,h._fov)}(this.fogState,c,d,f||0,g.toUnwrapped(),this.transform)>.9),i=h[2]>h[3]||j}else aD(h,h,b);return{point:new a.pointGeometry((h[0]/h[3]+1)/2*this.transform.width+100,(-h[1]/h[3]+1)/2*this.transform.height+100),perspectiveRatio:Math.min(.5+this.transform.cameraToCenterDistance/h[3]*.5,1.5),signedDistanceFromCamera:h[3],aboveHorizon:i}}isOffscreen(a,b,c,d){return c<100||a>=this.screenRightBoundary||d<100||b>this.screenBottomBoundary}isInsideGrid(a,b,c,d){return c>=0&&a=0&&ba.collisionGroupID===b}}return this.collisionGroups[a]}}(d),this.collisionCircleArrays={},this.prevPlacement=f,f&&(f.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(b,c,d,f){const g=d.getBucket(c),h=d.latestFeatureIndex;if(!g||!h||c.id!==g.layerIds[0])return;const i=g.layers[0].layout,j=d.collisionBoxArray,k=Math.pow(2,this.transform.zoom-d.tileID.overscaledZ),l=d.tileSize/a.EXTENT,m=d.tileID.toUnwrapped(),n=this.transform.calculateProjMatrix(m),o="map"===i.get("text-pitch-alignment"),p="map"===i.get("text-rotation-alignment");c.compileFilter();const q=c.dynamicFilter(),r=c.dynamicFilterNeedsFeature(),s=this.transform.calculatePixelsToTileUnitsMatrix(d),u=ap(n,d.tileID.canonical,o,p,this.transform,s);let v=null;if(o){const w=aq(n,d.tileID.canonical,o,p,this.transform,s);v=a.multiply$1([],this.transform.labelPlaneMatrix,w)}let x=null;q&&d.latestFeatureIndex&&(x={unwrappedTileID:m,dynamicFilter:q,dynamicFilterNeedsFeature:r,featureIndex:d.latestFeatureIndex}),this.retainedQueryData[g.bucketInstanceId]=new aI(g.bucketInstanceId,h,g.sourceLayerIndex,g.index,d.tileID);const y={bucket:g,layout:i,posMatrix:n,textLabelPlaneMatrix:u,labelToScreenMatrix:v,clippingData:x,scale:k,textPixelRatio:l,holdingForFade:d.holdingForFade(),collisionBoxArray:j,partiallyEvaluatedTextSize:a.evaluateSizeForZoom(g.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:a.evaluateSizeForZoom(g.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(g.sourceID)};if(f)for(const z of g.sortKeyRanges){const{sortKey:A,symbolInstanceStart:B,symbolInstanceEnd:C}=z;b.push({sortKey:A,symbolInstanceStart:B,symbolInstanceEnd:C,parameters:y})}else b.push({symbolInstanceStart:0,symbolInstanceEnd:g.symbolInstances.length,parameters:y})}attemptAnchorPlacement(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s){const u=[m.textOffset0,m.textOffset1],v=aJ(a,c,d,u,f),w=this.collisionIndex.placeCollisionBox(f,b,aK(v.x,v.y,g,h,this.transform.angle),l,i,j,k.predicate);if((!q||0!==this.collisionIndex.placeCollisionBox(o.getSymbolInstanceIconSize(s,this.transform.zoom,n),q,aK(v.x,v.y,g,h,this.transform.angle),l,i,j,k.predicate).box.length)&&w.box.length>0){let x;return this.prevPlacement&&this.prevPlacement.variableOffsets[m.crossTileID]&&this.prevPlacement.placements[m.crossTileID]&&this.prevPlacement.placements[m.crossTileID].text&&(x=this.prevPlacement.variableOffsets[m.crossTileID].anchor),this.variableOffsets[m.crossTileID]={textOffset:u,width:c,height:d,anchor:a,textScale:f,prevAnchor:x},this.markUsedJustification(o,a,m,p),o.allowVerticalPlacement&&(this.markUsedOrientation(o,p,m),this.placedOrientations[m.crossTileID]=p),{shift:v,placedGlyphBoxes:w}}}placeLayerBucketPart(b,c,d,f){const{bucket:g,layout:h,posMatrix:i,textLabelPlaneMatrix:j,labelToScreenMatrix:k,clippingData:l,textPixelRatio:m,holdingForFade:n,collisionBoxArray:o,partiallyEvaluatedTextSize:p,partiallyEvaluatedIconSize:q,collisionGroup:r}=b.parameters,s=h.get("text-optional"),u=h.get("icon-optional"),v=h.get("text-allow-overlap"),w=h.get("icon-allow-overlap"),x="map"===h.get("text-rotation-alignment"),y="map"===h.get("text-pitch-alignment"),z="none"!==h.get("icon-text-fit"),A="viewport-y"===h.get("symbol-z-order"),B=v&&(w||!g.hasIconData()||u),C=w&&(v||!g.hasTextData()||s);!g.collisionArrays&&o&&g.deserializeCollisionBoxes(o),d&&f&&g.updateCollisionDebugBuffers(this.transform.zoom,o);const D=(b,f,o)=>{if(l){const A={zoom:this.transform.zoom,pitch:this.transform.pitch};let D=null;if(l.dynamicFilterNeedsFeature){const E=this.retainedQueryData[g.bucketInstanceId];D=l.featureIndex.loadFeature({featureIndex:b.featureIndex,bucketIndex:E.bucketIndex,sourceLayerIndex:E.sourceLayerIndex,layoutVertexArrayOffset:0})}if(!(0,l.dynamicFilter)(A,D,this.retainedQueryData[g.bucketInstanceId].tileID.canonical,new a.pointGeometry(b.tileAnchorX,b.tileAnchorY),this.transform.calculateDistanceTileData(l.unwrappedTileID)))return this.placements[b.crossTileID]=new aG(!1,!1,!1,!0),void(c[b.crossTileID]=!0)}if(c[b.crossTileID])return;if(n)return void(this.placements[b.crossTileID]=new aG(!1,!1,!1));let F=!1,G=!1,H=!0,I=null,J={box:null,offscreen:null},K={box:null,offscreen:null},L=null,M=null,N=null,O=0,P=0,Q=0;o.textFeatureIndex?O=o.textFeatureIndex:b.useRuntimeCollisionCircles&&(O=b.featureIndex),o.verticalTextFeatureIndex&&(P=o.verticalTextFeatureIndex);const R=a=>{a.tileID=this.retainedQueryData[g.bucketInstanceId].tileID,(this.transform.elevation||a.elevation)&&(a.elevation=this.transform.elevation?this.transform.elevation.getAtTileOffset(this.retainedQueryData[g.bucketInstanceId].tileID,a.tileAnchorX,a.tileAnchorY):0)},S=o.textBox;if(S){R(S);const T=c=>{let d=a.WritingMode.horizontal;if(g.allowVerticalPlacement&&!c&&this.prevPlacement){const f=this.prevPlacement.placedOrientations[b.crossTileID];f&&(this.placedOrientations[b.crossTileID]=f,d=f,this.markUsedOrientation(g,d,b))}return d},U=(c,d)=>{if(g.allowVerticalPlacement&&b.numVerticalGlyphVertices>0&&o.verticalTextBox){for(const f of g.writingModes)if(f===a.WritingMode.vertical?K=J=d():J=c(),J&&J.box&&J.box.length)break}else J=c()};if(h.get("text-variable-anchor")){let V=h.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[b.crossTileID]){const W=this.prevPlacement.variableOffsets[b.crossTileID];V.indexOf(W.anchor)>0&&(V=V.filter(a=>a!==W.anchor)).unshift(W.anchor)}const X=(a,c,d)=>{const h=g.getSymbolInstanceTextSize(p,b,this.transform.zoom,f),j=(a.x2-a.x1)*h+2*a.padding,k=(a.y2-a.y1)*h+2*a.padding,l=z&&!w?c:null;l&&R(l);let n={box:[],offscreen:!1};const o=v?2*V.length:V.length;for(let s=0;s=V.length,b,f,g,d,l,p,q);if(u&&(n=u.placedGlyphBoxes)&&n.box&&n.box.length){F=!0,I=u.shift;break}}return n};U(()=>X(S,o.iconBox,a.WritingMode.horizontal),()=>{const c=o.verticalTextBox;return c&&R(c),g.allowVerticalPlacement&&!(J&&J.box&&J.box.length)&&b.numVerticalGlyphVertices>0&&c?X(c,o.verticalIconBox,a.WritingMode.vertical):{box:null,offscreen:null}}),J&&(F=J.box,H=J.offscreen);const Y=T(J&&J.box);if(!F&&this.prevPlacement){const Z=this.prevPlacement.variableOffsets[b.crossTileID];Z&&(this.variableOffsets[b.crossTileID]=Z,this.markUsedJustification(g,Z.anchor,b,Y))}}else{const $=(c,d)=>{const h=g.getSymbolInstanceTextSize(p,b,this.transform.zoom,f),j=this.collisionIndex.placeCollisionBox(h,c,new a.pointGeometry(0,0),v,m,i,r.predicate);return j&&j.box&&j.box.length&&(this.markUsedOrientation(g,d,b),this.placedOrientations[b.crossTileID]=d),j};U(()=>$(S,a.WritingMode.horizontal),()=>{const c=o.verticalTextBox;return g.allowVerticalPlacement&&b.numVerticalGlyphVertices>0&&c?(R(c),$(c,a.WritingMode.vertical)):{box:null,offscreen:null}}),T(J&&J.box&&J.box.length)}}if(F=(L=J)&&L.box&&L.box.length>0,H=L&&L.offscreen,b.useRuntimeCollisionCircles){const _=g.text.placedSymbolArray.get(b.centerJustifiedTextSymbolIndex>=0?b.centerJustifiedTextSymbolIndex:b.verticalPlacedTextSymbolIndex),aa=a.evaluateSizeForFeature(g.textSizeData,p,_),ab=h.get("text-padding");M=this.collisionIndex.placeCollisionCircles(v,_,g.lineVertexArray,g.glyphOffsetArray,aa,i,j,k,d,y,r.predicate,b.collisionCircleDiameter*aa/a.ONE_EM,ab,this.retainedQueryData[g.bucketInstanceId].tileID),F=v||M.circles.length>0&&!M.collisionDetected,H=H&&M.offscreen}if(o.iconFeatureIndex&&(Q=o.iconFeatureIndex),o.iconBox){const ac=b=>{R(b);const c=z&&I?aK(I.x,I.y,x,y,this.transform.angle):new a.pointGeometry(0,0),d=g.getSymbolInstanceIconSize(q,this.transform.zoom,f);return this.collisionIndex.placeCollisionBox(d,b,c,w,m,i,r.predicate)};G=K&&K.box&&K.box.length&&o.verticalIconBox?(N=ac(o.verticalIconBox)).box.length>0:(N=ac(o.iconBox)).box.length>0,H=H&&N.offscreen}const ad=s||0===b.numHorizontalGlyphVertices&&0===b.numVerticalGlyphVertices,ae=u||0===b.numIconVertices;if(ad||ae?ae?ad||(G=G&&F):F=G&&F:G=F=G&&F,F&&L&&L.box&&this.collisionIndex.insertCollisionBox(L.box,h.get("text-ignore-placement"),g.bucketInstanceId,K&&K.box&&P?P:O,r.ID),G&&N&&this.collisionIndex.insertCollisionBox(N.box,h.get("icon-ignore-placement"),g.bucketInstanceId,Q,r.ID),M&&(F&&this.collisionIndex.insertCollisionCircles(M.circles,h.get("text-ignore-placement"),g.bucketInstanceId,O,r.ID),d)){const af=g.bucketInstanceId;let ag=this.collisionCircleArrays[af];void 0===ag&&(ag=this.collisionCircleArrays[af]=new aH);for(let ah=0;ah=0;--F){const G=E[F];D(g.symbolInstances.get(G),G,g.collisionArrays[G])}}else for(let H=b.symbolInstanceStart;H=0&&(b.text.placedSymbolArray.get(i).crossTileID=g>=0&&i!==g?0:d.crossTileID)}markUsedOrientation(b,c,d){const f=c===a.WritingMode.horizontal||c===a.WritingMode.horizontalOnly?c:0,g=c===a.WritingMode.vertical?c:0,h=[d.leftJustifiedTextSymbolIndex,d.centerJustifiedTextSymbolIndex,d.rightJustifiedTextSymbolIndex,];for(const i of h)b.text.placedSymbolArray.get(i).placedOrientation=f;d.verticalPlacedTextSymbolIndex&&(b.text.placedSymbolArray.get(d.verticalPlacedTextSymbolIndex).placedOrientation=g)}commit(a){this.commitTime=a,this.zoomAtLastRecencyCheck=this.transform.zoom;const b=this.prevPlacement;let c=!1;this.prevZoomAdjustment=b?b.zoomAdjustment(this.transform.zoom):0;const d=b?b.symbolFadeChange(a):1,f=b?b.opacities:{},g=b?b.variableOffsets:{},h=b?b.placedOrientations:{};for(const i in this.placements){const j=this.placements[i],k=f[i];k?(this.opacities[i]=new aF(k,d,j.text,j.icon,null,j.clipped),c=c||j.text!==k.text.placed||j.icon!==k.icon.placed):(this.opacities[i]=new aF(null,d,j.text,j.icon,j.skipFade,j.clipped),c=c||j.text||j.icon)}for(const l in f){const m=f[l];if(!this.opacities[l]){const n=new aF(m,d,!1,!1);n.isHidden()||(this.opacities[l]=n,c=c||m.text.placed||m.icon.placed)}}for(const o in g)this.variableOffsets[o]||!this.opacities[o]||this.opacities[o].isHidden()||(this.variableOffsets[o]=g[o]);for(const p in h)this.placedOrientations[p]||!this.opacities[p]||this.opacities[p].isHidden()||(this.placedOrientations[p]=h[p]);c?this.lastPlacementChangeTime=a:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=b?b.lastPlacementChangeTime:a)}updateLayerOpacities(a,b){const c={};for(const d of b){const f=d.getBucket(a);f&&d.latestFeatureIndex&&a.id===f.layerIds[0]&&this.updateBucketOpacities(f,c,d.collisionBoxArray)}}updateBucketOpacities(b,c,d){b.hasTextData()&&b.text.opacityVertexArray.clear(),b.hasIconData()&&b.icon.opacityVertexArray.clear(),b.hasIconCollisionBoxData()&&b.iconCollisionBox.collisionVertexArray.clear(),b.hasTextCollisionBoxData()&&b.textCollisionBox.collisionVertexArray.clear();const f=b.layers[0].layout,g=!!b.layers[0].dynamicFilter(),h=new aF(null,0,!1,!1,!0),i=f.get("text-allow-overlap"),j=f.get("icon-allow-overlap"),k=f.get("text-variable-anchor"),l="map"===f.get("text-rotation-alignment"),m="map"===f.get("text-pitch-alignment"),n="none"!==f.get("icon-text-fit"),o=new aF(null,0,i&&(j||!b.hasIconData()||f.get("icon-optional")),j&&(i||!b.hasTextData()||f.get("text-optional")),!0);!b.collisionArrays&&d&&(b.hasIconCollisionBoxData()||b.hasTextCollisionBoxData())&&b.deserializeCollisionBoxes(d);const p=(a,b,c)=>{for(let d=0;d0||v>0,z=s.numIconVertices>0,A=this.placedOrientations[s.crossTileID],B=A===a.WritingMode.vertical,C=A===a.WritingMode.horizontal||A===a.WritingMode.horizontalOnly;if(!y&&!z||x.isHidden()||q++,y){const D=aM(x.text);p(b.text,u,B?0:D),p(b.text,v,C?0:D);const E=x.text.isHidden();[s.rightJustifiedTextSymbolIndex,s.centerJustifiedTextSymbolIndex,s.leftJustifiedTextSymbolIndex,].forEach(a=>{a>=0&&(b.text.placedSymbolArray.get(a).hidden=E||B?1:0)}),s.verticalPlacedTextSymbolIndex>=0&&(b.text.placedSymbolArray.get(s.verticalPlacedTextSymbolIndex).hidden=E||C?1:0);const F=this.variableOffsets[s.crossTileID];F&&this.markUsedJustification(b,F.anchor,s,A);const G=this.placedOrientations[s.crossTileID];G&&(this.markUsedJustification(b,"left",s,G),this.markUsedOrientation(b,G,s))}if(z){const H=aM(x.icon);s.placedIconSymbolIndex>=0&&(p(b.icon,s.numIconVertices,B?0:H),b.icon.placedSymbolArray.get(s.placedIconSymbolIndex).hidden=x.icon.isHidden()),s.verticalPlacedIconSymbolIndex>=0&&(p(b.icon,s.numVerticalIconVertices,C?0:H),b.icon.placedSymbolArray.get(s.verticalPlacedIconSymbolIndex).hidden=x.icon.isHidden())}if(b.hasIconCollisionBoxData()||b.hasTextCollisionBoxData()){const I=b.collisionArrays[r];if(I){let J=new a.pointGeometry(0,0),K=!0;if(I.textBox||I.verticalTextBox){if(k){const L=this.variableOffsets[w];L?(J=aJ(L.anchor,L.width,L.height,L.textOffset,L.textScale),l&&J._rotate(m?this.transform.angle:-this.transform.angle)):K=!1}g&&(K=!x.clipped),I.textBox&&aL(b.textCollisionBox.collisionVertexArray,x.text.placed,!K||B,J.x,J.y),I.verticalTextBox&&aL(b.textCollisionBox.collisionVertexArray,x.text.placed,!K||C,J.x,J.y)}const M=K&&Boolean(!C&&I.verticalIconBox);I.iconBox&&aL(b.iconCollisionBox.collisionVertexArray,x.icon.placed,M,n?J.x:0,n?J.y:0),I.verticalIconBox&&aL(b.iconCollisionBox.collisionVertexArray,x.icon.placed,!M,n?J.x:0,n?J.y:0)}}}if(b.fullyClipped=0===q,b.sortFeatures(this.transform.angle),this.retainedQueryData[b.bucketInstanceId]&&(this.retainedQueryData[b.bucketInstanceId].featureSortOrder=b.featureSortOrder),b.hasTextData()&&b.text.opacityVertexBuffer&&b.text.opacityVertexBuffer.updateData(b.text.opacityVertexArray),b.hasIconData()&&b.icon.opacityVertexBuffer&&b.icon.opacityVertexBuffer.updateData(b.icon.opacityVertexArray),b.hasIconCollisionBoxData()&&b.iconCollisionBox.collisionVertexBuffer&&b.iconCollisionBox.collisionVertexBuffer.updateData(b.iconCollisionBox.collisionVertexArray),b.hasTextCollisionBoxData()&&b.textCollisionBox.collisionVertexBuffer&&b.textCollisionBox.collisionVertexBuffer.updateData(b.textCollisionBox.collisionVertexArray),b.bucketInstanceId in this.collisionCircleArrays){const N=this.collisionCircleArrays[b.bucketInstanceId];b.placementInvProjMatrix=N.invProjMatrix,b.placementViewportMatrix=N.viewportMatrix,b.collisionCircleArray=N.circles,delete this.collisionCircleArrays[b.bucketInstanceId]}}symbolFadeChange(a){return 0===this.fadeDuration?1:(a-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(a){return Math.max(0,(this.transform.zoom-a)/1.5)}hasTransitions(a){return this.stale||a-this.lastPlacementChangeTimea}setStale(){this.stale=!0}}(b,g,h,i,j),this._currentPlacementIndex=c.length-1,this._forceFullPlacement=d,this._showCollisionBoxes=f,this._done=!1}isDone(){return this._done}continuePlacement(b,c,d){const f=a.exported.now(),g=()=>{const b=a.exported.now()-f;return!this._forceFullPlacement&&b>2};for(;this._currentPlacementIndex>=0;){const h=c[b[this._currentPlacementIndex]],i=this.placement.collisionIndex.transform.zoom;if("symbol"===h.type&&(!h.minzoom||h.minzoom<=i)&&(!h.maxzoom||h.maxzoom>i)){if(this._inProgressLayer||(this._inProgressLayer=new aN(h)),this._inProgressLayer.continuePlacement(d[h.source],this.placement,this._showCollisionBoxes,h,g))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(a){return this.placement.commit(a),this.placement}}const aP=512/a.EXTENT/2;class aQ{constructor(a,b,c){this.tileID=a,this.indexedSymbolInstances={},this.bucketInstanceId=c;for(let d=0;da.overscaledZ)for(const i in h){const j=h[i];j.tileID.isChildOf(a)&&j.findMatches(b.symbolInstances,a,f)}else{const k=h[a.scaledTo(Number(g)).key];k&&k.findMatches(b.symbolInstances,a,f)}}for(let l=0;l{b[a]=!0}),this.layerIndexes)b[c]||delete this.layerIndexes[c]}}const aT=(b,c)=>a.emitValidationErrors(b,c&&c.filter(a=>"source.canvas"!==a.identifier)),aU=a.pick(ae,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setProjection",]),aV=a.pick(ae,["setCenter","setZoom","setBearing","setPitch",]),aW=function(){const b={},c=a.spec.$version;for(const d in a.spec.$root){const f=a.spec.$root[d];if(f.required){let g=null;null!=(g="version"===d?c:"array"===f.type?[]:{})&&(b[d]=g)}}return b}(),aX={fill:!0,line:!0,background:!0,hillshade:!0,raster:!0};class aY extends a.Evented{constructor(b,c={}){super(),this.map=b,this.dispatcher=new B(ab(),this),this.imageManager=new o,this.imageManager.setEventedParent(this),this.glyphManager=new a.GlyphManager(b._requestManager,c.localFontFamily?a.LocalGlyphMode.all:c.localIdeographFontFamily?a.LocalGlyphMode.ideographs:a.LocalGlyphMode.none,c.localFontFamily||c.localIdeographFontFamily),this.lineAtlas=new a.LineAtlas(256,512),this.crossTileSymbolIndex=new aS,this._layers={},this._num3DLayers=0,this._numSymbolLayers=0,this._numCircleLayers=0,this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this.zoomHistory=new a.ZoomHistory,this._loaded=!1,this._availableImages=[],this._order=[],this._drapedFirstOrder=[],this._markersNeedUpdate=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",a.getReferrer());const d=this;this._rtlTextPluginCallback=aY.registerForPluginStateChange(b=>{d.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:b.pluginStatus,pluginURL:b.pluginURL},(b,c)=>{if(a.triggerPluginCompletionEvent(b),c&&c.every(a=>a))for(const f in d._sourceCaches){const g=d._sourceCaches[f],h=g.getSource().type;"vector"!==h&&"geojson"!==h||g.reload()}})}),this.on("data",a=>{if("source"!==a.dataType||"metadata"!==a.sourceDataType)return;const b=this.getSource(a.sourceId);if(b&&b.vectorLayerIds)for(const c in this._layers){const d=this._layers[c];d.source===b.id&&this._validateLayer(d)}})}loadURL(b,c={}){this.fire(new a.Event("dataloading",{dataType:"style"}));const d="boolean"==typeof c.validate?c.validate:!a.isMapboxURL(b);b=this.map._requestManager.normalizeStyleURL(b,c.accessToken);const f=this.map._requestManager.transformRequest(b,a.ResourceType.Style);this._request=a.getJSON(f,(b,c)=>{this._request=null,b?this.fire(new a.ErrorEvent(b)):c&&this._load(c,d)})}loadJSON(b,c={}){this.fire(new a.Event("dataloading",{dataType:"style"})),this._request=a.exported.frame(()=>{this._request=null,this._load(b,!1!==c.validate)})}loadEmpty(){this.fire(new a.Event("dataloading",{dataType:"style"})),this._load(aW,!1)}_updateLayerCount(a,b){const c=b?1:-1;a.is3D()&&(this._num3DLayers+=c),"circle"===a.type&&(this._numCircleLayers+=c),"symbol"===a.type&&(this._numSymbolLayers+=c)}_load(b,c){if(c&&aT(this,a.validateStyle(b)))return;for(const d in this._loaded=!0,this.stylesheet=b,this.updateProjection(),b.sources)this.addSource(d,b.sources[d],{validate:!1});this._changed=!1,b.sprite?this._loadSprite(b.sprite):(this.imageManager.setLoaded(!0),this.dispatcher.broadcast("spriteLoaded",!0)),this.glyphManager.setURL(b.glyphs);const f=ad(this.stylesheet.layers);for(let g of(this._order=f.map(a=>a.id),this._layers={},this._serializedLayers={},f))(g=a.createStyleLayer(g)).setEventedParent(this,{layer:{id:g.id}}),this._layers[g.id]=g,this._serializedLayers[g.id]=g.serialize(),this._updateLayerCount(g,!0);this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new r(this.stylesheet.light),this.stylesheet.terrain&&!this.terrainSetForDrapingOnly()&&this._createTerrain(this.stylesheet.terrain,1),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this._updateDrapeFirstLayers(),this.fire(new a.Event("data",{dataType:"style"})),this.fire(new a.Event("style.load"))}terrainSetForDrapingOnly(){return this.terrain&&0===this.terrain.drapeRenderMode}setProjection(a){a?this.stylesheet.projection=a:delete this.stylesheet.projection,this.updateProjection()}updateProjection(){const a=this.map.transform.projection,b=this.map.transform.setProjection(this.map._runtimeProjection||(this.stylesheet?this.stylesheet.projection:void 0)),c=this.map.transform.projection;if(this._loaded&&(c.requiresDraping?this.getTerrain()||this.stylesheet.terrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null)),this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),b){if(c.isReprojectedInTileSpace||a.isReprojectedInTileSpace)for(const d in this.map.painter.clearBackgroundTiles(),this._sourceCaches)this._sourceCaches[d].clearTiles();else this._forceSymbolLayerUpdate();this.map._update(!0)}}_loadSprite(b){this._spriteRequest=function(b,c,d){let f,g,h;const i=a.exported.devicePixelRatio>1?"@2x":"";let j=a.getJSON(c.transformRequest(c.normalizeSpriteURL(b,i,".json"),a.ResourceType.SpriteJSON),(a,b)=>{j=null,h||(h=a,f=b,l())}),k=a.getImage(c.transformRequest(c.normalizeSpriteURL(b,i,".png"),a.ResourceType.SpriteImage),(a,b)=>{k=null,h||(h=a,g=b,l())});function l(){if(h)d(h);else if(f&&g){const b=a.exported.getImageData(g),c={};for(const i in f){const{width:j,height:k,x:l,y:m,sdf:n,pixelRatio:o,stretchX:p,stretchY:q,content:r}=f[i],s=new a.RGBAImage({width:j,height:k});a.RGBAImage.copy(b,s,{x:l,y:m},{x:0,y:0},{width:j,height:k}),c[i]={data:s,pixelRatio:o,sdf:n,stretchX:p,stretchY:q,content:r}}d(null,c)}}return{cancel(){j&&(j.cancel(),j=null),k&&(k.cancel(),k=null)}}}(b,this.map._requestManager,(b,c)=>{if(this._spriteRequest=null,b)this.fire(new a.ErrorEvent(b));else if(c)for(const d in c)this.imageManager.addImage(d,c[d]);this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),this.dispatcher.broadcast("setImages",this._availableImages),this.dispatcher.broadcast("spriteLoaded",!0),this.fire(new a.Event("data",{dataType:"style"}))})}_validateLayer(b){const c=this.getSource(b.source);if(!c)return;const d=b.sourceLayer;d&&("geojson"===c.type||c.vectorLayerIds&& -1===c.vectorLayerIds.indexOf(d))&&this.fire(new a.ErrorEvent(Error(`Source layer "${d}" does not exist on source "${c.id}" as specified by style layer "${b.id}"`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(const a in this._sourceCaches)if(!this._sourceCaches[a].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeLayers(a){const b=[];for(const c of a){const d=this._layers[c];"custom"!==d.type&&b.push(d.serialize())}return b}hasTransitions(){if(this.light&&this.light.hasTransition()||this.fog&&this.fog.hasTransition())return!0;for(const a in this._sourceCaches)if(this._sourceCaches[a].hasTransition())return!0;for(const b in this._layers)if(this._layers[b].hasTransition())return!0;return!1}get order(){return this.map._optimizeForTerrain&&this.terrain?this._drapedFirstOrder:this._order}isLayerDraped(a){return!!this.terrain&&aX[a.type]}_checkLoaded(){if(!this._loaded)throw Error("Style is not done loading")}update(b){if(!this._loaded)return;const c=this._changed;if(this._changed){const d=Object.keys(this._updatedLayers),f=Object.keys(this._removedLayers);for(const g in(d.length||f.length)&&this._updateWorkerLayers(d,f),this._updatedSources){const h=this._updatedSources[g];"reload"===h?this._reloadSource(g):"clear"===h&&this._clearSource(g)}for(const i in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[i].updateTransitions(b);this.light.updateTransitions(b),this.fog&&this.fog.updateTransitions(b),this._resetUpdates()}const j={};for(const k in this._sourceCaches){const l=this._sourceCaches[k];j[k]=l.used,l.used=!1}for(const m of this._order){const n=this._layers[m];if(n.recalculate(b,this._availableImages),!n.isHidden(b.zoom)){const o=this._getLayerSourceCache(n);o&&(o.used=!0)}const p=this.map.painter;if(p){const q=n.getProgramIds();if(!q)continue;const r=n.getProgramConfiguration(b.zoom);for(const s of q)p.useProgram(s,r)}}for(const u in j){const v=this._sourceCaches[u];j[u]!==v.used&&v.getSource().fire(new a.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:v.getSource().id}))}this.light.recalculate(b),this.terrain&&this.terrain.recalculate(b),this.fog&&this.fog.recalculate(b),this.z=b.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),c&&this.fire(new a.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const a=Object.keys(this._changedImages);if(a.length){for(const b in this._sourceCaches)this._sourceCaches[b].reloadTilesForDependencies(["icons","patterns"],a);this._changedImages={}}}_updateWorkerLayers(a,b){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(a),removedIds:b})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}}setState(b){if(this._checkLoaded(),aT(this,a.validateStyle(b)))return!1;(b=a.clone$1(b)).layers=ad(b.layers);const c=(function(a,b){if(!a)return[{command:ae.setStyle,args:[b]},];let c=[];try{if(!g(a.version,b.version))return[{command:ae.setStyle,args:[b]},];g(a.center,b.center)||c.push({command:ae.setCenter,args:[b.center]}),g(a.zoom,b.zoom)||c.push({command:ae.setZoom,args:[b.zoom]}),g(a.bearing,b.bearing)||c.push({command:ae.setBearing,args:[b.bearing]}),g(a.pitch,b.pitch)||c.push({command:ae.setPitch,args:[b.pitch]}),g(a.sprite,b.sprite)||c.push({command:ae.setSprite,args:[b.sprite]}),g(a.glyphs,b.glyphs)||c.push({command:ae.setGlyphs,args:[b.glyphs]}),g(a.transition,b.transition)||c.push({command:ae.setTransition,args:[b.transition]}),g(a.light,b.light)||c.push({command:ae.setLight,args:[b.light]}),g(a.fog,b.fog)||c.push({command:ae.setFog,args:[b.fog]}),g(a.projection,b.projection)||c.push({command:ae.setProjection,args:[b.projection]});const d={},f=[];!function(a,b,c,d){let f;for(f in b=b||{},a=a||{})a.hasOwnProperty(f)&&(b.hasOwnProperty(f)||ag(f,c,d));for(f in b)b.hasOwnProperty(f)&&(a.hasOwnProperty(f)?g(a[f],b[f])||("geojson"===a[f].type&&"geojson"===b[f].type&&ai(a,b,f)?c.push({command:ae.setGeoJSONSourceData,args:[f,b[f].data,]}):ah(f,b,c,d)):af(f,b,c))}(a.sources,b.sources,f,d);const h=[];a.layers&&a.layers.forEach(a=>{d[a.source]?c.push({command:ae.removeLayer,args:[a.id]}):h.push(a)});let i=a.terrain;i&&d[i.source]&&(c.push({command:ae.setTerrain,args:[void 0]}),i=void 0),c=c.concat(f),g(i,b.terrain)||c.push({command:ae.setTerrain,args:[b.terrain]}),function(a,b,c){b=b||[];const d=(a=a||[]).map(ak),f=b.map(ak),h=a.reduce(al,{}),i=b.reduce(al,{}),j=d.slice(),k=Object.create(null);let l,m,n,o,p,q,r;for(l=0,m=0;l!(a.command in aV));if(0===c.length)return!1;const d=c.filter(a=>!(a.command in aU));if(d.length>0)throw Error(`Unimplemented: ${d.map(a=>a.command).join(", ")}.`);return c.forEach(a=>{"setTransition"!==a.command&&this[a.command].apply(this,a.args)}),this.stylesheet=b,this.updateProjection(),!0}addImage(b,c){if(this.getImage(b))return this.fire(new a.ErrorEvent(Error("An image with this name already exists.")));this.imageManager.addImage(b,c),this._afterImageUpdated(b)}updateImage(a,b){this.imageManager.updateImage(a,b)}getImage(a){return this.imageManager.getImage(a)}removeImage(b){if(!this.getImage(b))return this.fire(new a.ErrorEvent(Error("No image with this name exists.")));this.imageManager.removeImage(b),this._afterImageUpdated(b)}_afterImageUpdated(b){this._availableImages=this.imageManager.listImages(),this._changedImages[b]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new a.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this._availableImages.slice()}addSource(b,c,d={}){if(this._checkLoaded(),void 0!==this.getSource(b))throw Error("There is already a source with this ID");if(!c.type)throw Error(`The type property must be defined, but only the following properties were given: ${Object.keys(c).join(", ")}.`);if(["vector","raster","geojson","video","image",].indexOf(c.type)>=0&&this._validate(a.validateStyle.source,`sources.${b}`,c,null,d))return;this.map&&this.map._collectResourceTiming&&(c.collectResourceTiming=!0);const f=U(b,c,this.dispatcher,this);f.setEventedParent(this,()=>({isSourceLoaded:this.loaded(),source:f.serialize(),sourceId:b}));const g=c=>{const d=(c?"symbol:":"other:")+b,g=this._sourceCaches[d]=new a.SourceCache(d,f,c);(c?this._symbolSourceCaches:this._otherSourceCaches)[b]=g,g.style=this,g.onAdd(this.map)};g(!1),"vector"!==c.type&&"geojson"!==c.type||g(!0),f.onAdd&&f.onAdd(this.map),this._changed=!0}removeSource(b){this._checkLoaded();const c=this.getSource(b);if(void 0===c)throw Error("There is no source with this ID");for(const d in this._layers)if(this._layers[d].source===b)return this.fire(new a.ErrorEvent(Error(`Source "${b}" cannot be removed while layer "${d}" is using it.`)));if(this.terrain&&this.terrain.get().source===b)return this.fire(new a.ErrorEvent(Error(`Source "${b}" cannot be removed while terrain is using it.`)));const f=this._getSourceCaches(b);for(const g of f)delete this._sourceCaches[g.id],delete this._updatedSources[g.id],g.fire(new a.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:g.getSource().id})),g.setEventedParent(null),g.clearTiles();delete this._otherSourceCaches[b],delete this._symbolSourceCaches[b],c.setEventedParent(null),c.onRemove&&c.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(a,b){this._checkLoaded(),this.getSource(a).setData(b),this._changed=!0}getSource(a){const b=this._getSourceCache(a);return b&&b.getSource()}addLayer(b,c,d={}){this._checkLoaded();const f=b.id;if(this.getLayer(f))return void this.fire(new a.ErrorEvent(Error(`Layer with id "${f}" already exists on this map`)));let g;if("custom"===b.type){if(aT(this,a.validateCustomStyleLayer(b)))return;g=a.createStyleLayer(b)}else{if("object"==typeof b.source&&(this.addSource(f,b.source),b=a.clone$1(b),b=a.extend(b,{source:f})),this._validate(a.validateStyle.layer,`layers.${f}`,b,{arrayIndex:-1},d))return;g=a.createStyleLayer(b),this._validateLayer(g),g.setEventedParent(this,{layer:{id:f}}),this._serializedLayers[g.id]=g.serialize(),this._updateLayerCount(g,!0)}const h=c?this._order.indexOf(c):this._order.length;if(c&& -1===h)return void this.fire(new a.ErrorEvent(Error(`Layer with id "${c}" does not exist on this map.`)));this._order.splice(h,0,f),this._layerOrderChanged=!0,this._layers[f]=g;const i=this._getLayerSourceCache(g);if(this._removedLayers[f]&&g.source&&i&&"custom"!==g.type){const j=this._removedLayers[f];delete this._removedLayers[f],j.type!==g.type?this._updatedSources[g.source]="clear":(this._updatedSources[g.source]="reload",i.pause())}this._updateLayer(g),g.onAdd&&g.onAdd(this.map),this._updateDrapeFirstLayers()}moveLayer(b,c){if(this._checkLoaded(),this._changed=!0,!this._layers[b])return void this.fire(new a.ErrorEvent(Error(`The layer '${b}' does not exist in the map's style and cannot be moved.`)));if(b===c)return;const d=this._order.indexOf(b);this._order.splice(d,1);const f=c?this._order.indexOf(c):this._order.length;c&& -1===f?this.fire(new a.ErrorEvent(Error(`Layer with id "${c}" does not exist on this map.`))):(this._order.splice(f,0,b),this._layerOrderChanged=!0,this._updateDrapeFirstLayers())}removeLayer(b){this._checkLoaded();const c=this._layers[b];if(!c)return void this.fire(new a.ErrorEvent(Error(`The layer '${b}' does not exist in the map's style and cannot be removed.`)));c.setEventedParent(null),this._updateLayerCount(c,!1);const d=this._order.indexOf(b);this._order.splice(d,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[b]=c,delete this._layers[b],delete this._serializedLayers[b],delete this._updatedLayers[b],delete this._updatedPaintProps[b],c.onRemove&&c.onRemove(this.map),this._updateDrapeFirstLayers()}getLayer(a){return this._layers[a]}hasLayer(a){return a in this._layers}hasLayerType(a){for(const b in this._layers)if(this._layers[b].type===a)return!0;return!1}setLayerZoomRange(b,c,d){this._checkLoaded();const f=this.getLayer(b);f?f.minzoom===c&&f.maxzoom===d||(null!=c&&(f.minzoom=c),null!=d&&(f.maxzoom=d),this._updateLayer(f)):this.fire(new a.ErrorEvent(Error(`The layer '${b}' does not exist in the map's style and cannot have zoom extent.`)))}setFilter(b,c,d={}){this._checkLoaded();const f=this.getLayer(b);if(f){if(!g(f.filter,c))return null==c?(f.filter=void 0,void this._updateLayer(f)):void(this._validate(a.validateStyle.filter,`layers.${f.id}.filter`,c,{layerType:f.type},d)||(f.filter=a.clone$1(c),this._updateLayer(f)))}else this.fire(new a.ErrorEvent(Error(`The layer '${b}' does not exist in the map's style and cannot be filtered.`)))}getFilter(b){return a.clone$1(this.getLayer(b).filter)}setLayoutProperty(b,c,d,f={}){this._checkLoaded();const h=this.getLayer(b);h?g(h.getLayoutProperty(c),d)||(h.setLayoutProperty(c,d,f),this._updateLayer(h)):this.fire(new a.ErrorEvent(Error(`The layer '${b}' does not exist in the map's style and cannot be styled.`)))}getLayoutProperty(b,c){const d=this.getLayer(b);if(d)return d.getLayoutProperty(c);this.fire(new a.ErrorEvent(Error(`The layer '${b}' does not exist in the map's style.`)))}setPaintProperty(b,c,d,f={}){this._checkLoaded();const h=this.getLayer(b);h?g(h.getPaintProperty(c),d)||(h.setPaintProperty(c,d,f)&&this._updateLayer(h),this._changed=!0,this._updatedPaintProps[b]=!0):this.fire(new a.ErrorEvent(Error(`The layer '${b}' does not exist in the map's style and cannot be styled.`)))}getPaintProperty(a,b){return this.getLayer(a).getPaintProperty(b)}setFeatureState(b,c){this._checkLoaded();const d=b.source,f=b.sourceLayer,g=this.getSource(d);if(void 0===g)return void this.fire(new a.ErrorEvent(Error(`The source '${d}' does not exist in the map's style.`)));const h=g.type;if("geojson"===h&&f)return void this.fire(new a.ErrorEvent(Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===h&&!f)return void this.fire(new a.ErrorEvent(Error("The sourceLayer parameter must be provided for vector source types.")));void 0===b.id&&this.fire(new a.ErrorEvent(Error("The feature id parameter must be provided.")));const i=this._getSourceCaches(d);for(const j of i)j.setFeatureState(f,b.id,c)}removeFeatureState(b,c){this._checkLoaded();const d=b.source,f=this.getSource(d);if(void 0===f)return void this.fire(new a.ErrorEvent(Error(`The source '${d}' does not exist in the map's style.`)));const g=f.type,h="vector"===g?b.sourceLayer:void 0;if("vector"===g&&!h)return void this.fire(new a.ErrorEvent(Error("The sourceLayer parameter must be provided for vector source types.")));if(c&&"string"!=typeof b.id&&"number"!=typeof b.id)return void this.fire(new a.ErrorEvent(Error("A feature id is required to remove its specific state property.")));const i=this._getSourceCaches(d);for(const j of i)j.removeFeatureState(h,b.id,c)}getFeatureState(b){this._checkLoaded();const c=b.source,d=b.sourceLayer,f=this.getSource(c);if(void 0!==f){if("vector"!==f.type||d)return void 0===b.id&&this.fire(new a.ErrorEvent(Error("The feature id parameter must be provided."))),this._getSourceCaches(c)[0].getFeatureState(d,b.id);this.fire(new a.ErrorEvent(Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new a.ErrorEvent(Error(`The source '${c}' does not exist in the map's style.`)))}getTransition(){return a.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){const b={};for(const c in this._sourceCaches){const d=this._sourceCaches[c].getSource();b[d.id]||(b[d.id]=d.serialize())}return a.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,terrain:this.stylesheet.terrain,fog:this.stylesheet.fog,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,projection:this.stylesheet.projection,sources:b,layers:this._serializeLayers(this._order)},a=>void 0!==a)}_updateLayer(a){this._updatedLayers[a.id]=!0;const b=this._getLayerSourceCache(a);a.source&&!this._updatedSources[a.source]&&b&&"raster"!==b.getSource().type&&(this._updatedSources[a.source]="reload",b.pause()),this._changed=!0,a.invalidateCompiledFilter()}_flattenAndSortRenderedFeatures(a){var b,c;const d={},f=[];for(let g=this._order.length-1;g>=0;g--){const h=this._order[g];if(b=h,"fill-extrusion"===this._layers[b].type)for(const i of(d[h]=g,a)){const j=i[h];if(j)for(const k of j)f.push(k)}}f.sort((a,b)=>b.intersectionZ-a.intersectionZ);const l=[];for(let m=this._order.length-1;m>=0;m--){const n=this._order[m];if(c=n,"fill-extrusion"===this._layers[c].type)for(let o=f.length-1;o>=0;o--){const p=f[o].feature;if(d[p.layer.id]{const b=this.getLayer(a);return b&&b.is3D()}):this.has3DLayers(),k=L.createFromScreenPoints(b,d);for(const l in this._sourceCaches){const m=this._sourceCaches[l].getSource().id;c.layers&&!f[m]||i.push(W(this._sourceCaches[l],this._layers,this._serializedLayers,k,c,d,j,!!this.map._showQueryGeometry))}return this.placement&&i.push(function(a,b,c,d,f,g,h){const i={},j=g.queryRenderedSymbols(d),k=[];for(const l of Object.keys(j).map(Number))k.push(h[l]);for(const m of(k.sort(Y),k)){const n=m.featureIndex.lookupSymbolFeatures(j[m.bucketInstanceId],b,m.bucketIndex,m.sourceLayerIndex,f.filter,f.layers,f.availableImages,a);for(const o in n){const p=i[o]=i[o]||[],q=n[o];for(const r of(q.sort((a,b)=>{const c=m.featureSortOrder;if(c){const d=c.indexOf(a.featureIndex);return c.indexOf(b.featureIndex)-d}return b.featureIndex-a.featureIndex}),q))p.push(r)}}for(const s in i)i[s].forEach(b=>{const d=b.feature,f=c(a[s]).getFeatureState(d.layer["source-layer"],d.id);d.source=d.layer.source,d.layer["source-layer"]&&(d.sourceLayer=d.layer["source-layer"]),d.state=f});return i}(this._layers,this._serializedLayers,this._getLayerSourceCache.bind(this),k.screenGeometry,c,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(i)}querySourceFeatures(b,c){c&&c.filter&&this._validate(a.validateStyle.filter,"querySourceFeatures.filter",c.filter,null,c);const d=this._getSourceCaches(b);let f=[];for(const g of d)f=f.concat(X(g,c));return f}addSourceType(a,b,c){return aY.getSourceType(a)?c(Error(`A source type called "${a}" already exists.`)):(aY.setSourceType(a,b),b.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:a,url:b.workerSourceURL},c):c(null,null))}getLight(){return this.light.getLight()}setLight(b,c={}){this._checkLoaded();const d=this.light.getLight();let f=!1;for(const h in b)if(!g(b[h],d[h])){f=!0;break}if(!f)return;const i={now:a.exported.now(),transition:a.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(b,c),this.light.updateTransitions(i)}getTerrain(){return this.terrain&&1===this.terrain.drapeRenderMode?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},0)}setTerrain(b,c=1){if(this._checkLoaded(),!b)return delete this.terrain,delete this.stylesheet.terrain,this.dispatcher.broadcast("enableTerrain",!1),this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);if(1===c){if("object"==typeof b.source){const d="terrain-dem-src";this.addSource(d,b.source),b=a.clone$1(b),b=a.extend(b,{source:d})}if(this._validate(a.validateStyle.terrain,"terrain",b))return}if(!this.terrain||this.terrain&&c!==this.terrain.drapeRenderMode)this._createTerrain(b,c);else{const f=this.terrain,h=f.get();for(const i in b)if(!g(b[i],h[i])){f.set(b),this.stylesheet.terrain=b;const j={now:a.exported.now(),transition:a.extend({duration:0},this.stylesheet.transition)};f.updateTransitions(j);break}}this._updateDrapeFirstLayers(),this._markersNeedUpdate=!0}_createFog(b){const c=this.fog=new A(b,this.map.transform);this.stylesheet.fog=b;const d={now:a.exported.now(),transition:a.extend({duration:0},this.stylesheet.transition)};c.updateTransitions(d)}_updateMarkersOpacity(){0!==this.map._markers.length&&this.map._requestDomTask(()=>{for(const a of this.map._markers)a._evaluateOpacity()})}getFog(){return this.fog?this.fog.get():null}setFog(b){if(this._checkLoaded(),!b)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedUpdate=!0);if(this.fog){const c=this.fog,d=c.get();for(const f in b)if(!g(b[f],d[f])){c.set(b),this.stylesheet.fog=b;const h={now:a.exported.now(),transition:a.extend({duration:0},this.stylesheet.transition)};c.updateTransitions(h);break}}else this._createFog(b);this._markersNeedUpdate=!0}_updateDrapeFirstLayers(){if(!this.map._optimizeForTerrain||!this.terrain)return;const a=this._order.filter(a=>this.isLayerDraped(this._layers[a])),b=this._order.filter(a=>!this.isLayerDraped(this._layers[a]));this._drapedFirstOrder=[],this._drapedFirstOrder.push(...a),this._drapedFirstOrder.push(...b)}_createTerrain(b,c){const d=this.terrain=new v(b,c);this.stylesheet.terrain=b,this.dispatcher.broadcast("enableTerrain",!0),this._force3DLayerUpdate();const f={now:a.exported.now(),transition:a.extend({duration:0},this.stylesheet.transition)};d.updateTransitions(f)}_force3DLayerUpdate(){for(const a in this._layers){const b=this._layers[a];"fill-extrusion"===b.type&&this._updateLayer(b)}}_forceSymbolLayerUpdate(){for(const a in this._layers){const b=this._layers[a];"symbol"===b.type&&this._updateLayer(b)}}_validate(b,c,d,f,g={}){return(!g|| !1!==g.validate)&&aT(this,b.call(a.validateStyle,a.extend({key:c,style:this.serialize(),value:d,styleSpec:a.spec},f)))}_remove(){for(const b in this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),a.evented.off("pluginStateChange",this._rtlTextPluginCallback),this._layers)this._layers[b].setEventedParent(null);for(const c in this._sourceCaches)this._sourceCaches[c].clearTiles(),this._sourceCaches[c].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()}_clearSource(a){const b=this._getSourceCaches(a);for(const c of b)c.clearTiles()}_reloadSource(a){const b=this._getSourceCaches(a);for(const c of b)c.resume(),c.reload()}_updateSources(a){for(const b in this._sourceCaches)this._sourceCaches[b].update(a)}_generateCollisionBoxes(){for(const a in this._sourceCaches){const b=this._sourceCaches[a];b.resume(),b.reload()}}_updatePlacement(b,c,d,f,g=!1){let h=!1,i=!1;const j={};for(const k of this._order){const l=this._layers[k];if("symbol"!==l.type)continue;if(!j[l.source]){const m=this._getLayerSourceCache(l);if(!m)continue;j[l.source]=m.getRenderableIds(!0).map(a=>m.getTileByID(a)).sort((a,b)=>b.tileID.overscaledZ-a.tileID.overscaledZ||(a.tileID.isLessThan(b.tileID)?-1:1))}const n=this.crossTileSymbolIndex.addLayer(l,j[l.source],b.center.lng,b.projection);h=h||n}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),g=g||this._layerOrderChanged||0===d,this._layerOrderChanged&&this.fire(new a.Event("neworder")),(g||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(a.exported.now(),b.zoom))&&(this.pauseablePlacement=new aO(b,this._order,g,c,d,f,this.placement,this.fog&&b.projection.supportsFog?this.fog.state:null),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,j),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(a.exported.now()),i=!0),h&&this.pauseablePlacement.placement.setStale()),i||h)for(const o of this._order){const p=this._layers[o];"symbol"===p.type&&this.placement.updateLayerOpacities(p,j[p.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(a.exported.now())}_releaseSymbolFadeTiles(){for(const a in this._sourceCaches)this._sourceCaches[a].releaseSymbolFadeTiles()}getImages(a,b,c){this.imageManager.getImages(b.icons,c),this._updateTilesForChangedImages();const d=a=>{a&&a.setDependencies(b.tileID.key,b.type,b.icons)};d(this._otherSourceCaches[b.source]),d(this._symbolSourceCaches[b.source])}getGlyphs(a,b,c){this.glyphManager.getGlyphs(b.stacks,c)}getResource(b,c,d){return a.makeRequest(c,d)}_getSourceCache(a){return this._otherSourceCaches[a]}_getLayerSourceCache(a){return"symbol"===a.type?this._symbolSourceCaches[a.source]:this._otherSourceCaches[a.source]}_getSourceCaches(a){const b=[];return this._otherSourceCaches[a]&&b.push(this._otherSourceCaches[a]),this._symbolSourceCaches[a]&&b.push(this._symbolSourceCaches[a]),b}has3DLayers(){return this._num3DLayers>0}hasSymbolLayers(){return this._numSymbolLayers>0}hasCircleLayers(){return this._numCircleLayers>0}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}destroy(){this._clearWorkerCaches(),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}aY.getSourceType=function(a){return T[a]},aY.setSourceType=function(a,b){T[a]=b},aY.registerForPluginStateChange=a.registerForPluginStateChange;var aZ="\n#define EPSILON 0.0000001\n#define PI 3.141592653589793\n#define EXTENT 8192.0\n#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;varying vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}\n#endif",a$="attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}";let a_={},a0={};a_=a4("","\n#define ELEVATION_SCALE 7.0\n#define ELEVATION_OFFSET 450.0\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(\nmix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}\n#else\nvec3 elevationVector(vec2 pos) { return vec3(0,0,1); }\n#endif\n#ifdef TERRAIN\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;\n#else\nuniform sampler2D u_dem;uniform sampler2D u_dem_prev;\n#endif\nuniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));\n#ifdef TERRAIN_DEM_NEAREST_FILTER\nreturn u_exaggeration*tl;\n#endif\nfloat tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}float prevElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem_prev,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}\n#ifdef TERRAIN_VERTEX_MORPHING\nfloat elevation(vec2 apos) {float nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\n#else\nfloat elevation(vec2 apos) {return currentElevation(apos);}\n#endif\nfloat unpack_depth(vec4 rgba_depth)\n{const vec4 bit_shift=vec4(1.0/(256.0*256.0*256.0),1.0/(256.0*256.0),1.0/256.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(\nunpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))\n);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nfloat tl=texture2D(u_dem,pos).a;float tr=texture2D(u_dem,pos+vec2(off.x,0.0)).a;float bl=texture2D(u_dem,pos+vec2(0.0,off.y)).a;float br=texture2D(u_dem,pos+off).a;\n#else\nvec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);\n#endif\nreturn vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;vec4 bounds=vec4(d,vec2(1.0)-d);h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}\n#else\nfloat elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }\n#endif",!0),a0=a4("#ifdef FOG\nuniform float u_fog_temporal_offset;float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);return mix(color,u_fog_color.rgb,opacity);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec3 fog_dither(vec3 color) {vec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\n#endif","#ifdef FOG\nuniform mat4 u_fog_matrix;vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}\n#endif",!0);const a1=a4("\nhighp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}\n#ifdef TERRAIN\nhighp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(256.0*256.0*256.0,256.0*256.0,256.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/256.0,1.0/256.0,1.0/256.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}\n#endif","\nfloat wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}vec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {\n#if defined(PROJECTION_GLOBE_VIEW) && !defined(PROJECTED_POS_ON_VIEWPORT)\nfloat tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;\n#else\nreturn vec3(0.0);\n#endif\n}vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {\n#if defined(PROJECTION_GLOBE_VIEW) && !defined(PROJECTED_POS_ON_VIEWPORT)\nreturn mix(globe,mercator,t);\n#else\nreturn globe;\n#endif\n}\n#ifdef PROJECTION_GLOBE_VIEW\nmat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered."),a2=aZ;var a3={background:a4("uniform vec4 u_color;uniform float u_opacity;void main() {vec4 out_color=u_color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),backgroundPattern:a4("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_mix);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),circle:a4("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\nantialiased_blur,0.0,extrude_length-radius/(radius+stroke_width)\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef FOG\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\n#endif\ngl_FragColor=out_color*(v_visibility*opacity_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","#define NUM_VISIBILITY_RINGS 2\n#define INV_SQRT2 0.70710678\n#define ELEVATION_BIAS 0.0001\n#define NUM_SAMPLES_PER_RING 16\nuniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;attribute float a_scale;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\n#if defined(TERRAIN)\nreturn elevation(pos)+ELEVATION_BIAS;\n#else\nreturn 0.0;\n#endif\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\n#ifdef PITCH_WITH_MAP\n#ifdef PROJECTION_GLOBE_VIEW\nreturn u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );\n#else\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\n#endif\n#else\nreturn projected_center+vec4(sample_offset,0,0);\n#endif\n}float get_sample_step() {\n#ifdef PITCH_WITH_MAP\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\n#else\nreturn PI/float(NUM_SAMPLES_PER_RING);\n#endif\n}void main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);\n#ifdef PROJECTION_GLOBE_VIEW\nvec2 scaled_extrude=extrude*a_scale;vec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=scaled_extrude.x*surface_vectors[0]+scaled_extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);vec4 world_center=vec4(pos,1);\n#else \nmat3 surface_vectors=mat3(1.0);float height=circle_elevation(circle_center);vec4 world_center=vec4(circle_center,height,1);\n#endif\nvec4 projected_center=u_matrix*world_center;float view_scale=0.0;\n#ifdef PITCH_WITH_MAP\n#ifdef SCALE_WITH_MAP\nview_scale=1.0;\n#else\nview_scale=projected_center.w/u_camera_to_center_distance;\n#endif\n#else\n#ifdef SCALE_WITH_MAP\nview_scale=u_camera_to_center_distance;\n#else\nview_scale=projected_center.w;\n#endif\n#endif\n#if defined(SCALE_WITH_MAP) && defined(PROJECTION_GLOBE_VIEW)\nview_scale*=a_scale;\n#endif\ngl_Position=project_vertex(extrude,world_center,projected_center,radius,stroke_width,view_scale,surface_vectors);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);vec4 occlusion_world_center=vec4(circle_center,cantilevered_height,1);vec4 occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nvec4 occlusion_world_center=world_center;vec4 occlusion_projected_center=projected_center;\n#endif\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\n#else\nvisibility=1.0;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nvisibility=1.0;\n#endif\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);\n#ifdef FOG\nv_fog_pos=fog_position(world_center.xyz);\n#endif\n}"),clippingMask:a4("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:a4("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef FOG\ngl_FragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;attribute float a_scale;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);\n#ifdef PROJECTION_GLOBE_VIEW\nextrude*=a_scale;vec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#else\nvec3 pos=vec3(tilePos+extrude,elevation(tilePos));\n#endif\ngl_Position=u_matrix*vec4(pos,1);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),heatmapTexture:a4("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:a4("varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}","attribute vec3 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:a4("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:a4("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;\n#endif\nvarying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;\n#ifdef PROJECTION_GLOBE_VIEW\ngl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1);\n#else\ngl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);\n#endif\n}"),fill:a4("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nvec4 out_color=color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutline:a4("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutlinePattern:a4("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=mix(color1,color2,u_fade);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillPattern:a4("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_fade);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillExtrusion:a4("varying vec4 v_color;void main() {vec4 color=v_color;\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 pos_nx=floor(a_pos_normal_ed.xyz*0.5);mediump vec3 top_up_ny=a_pos_normal_ed.xyz-2.0*pos_nx;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;float ele=elevation(pos_nx.xy);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;float h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);vec3 pos=vec3(pos_nx.xy,h);\n#else\nvec3 pos=vec3(pos_nx.xy,t > 0.0 ? height : base);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(pos.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.rgb+=clamp(color.rgb*directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_color*=u_opacity;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),fillExtrusionPattern:a4("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_fade);out_color=out_color*v_lighting;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 pos_nx=floor(a_pos_normal_ed.xyz*0.5);mediump vec3 top_up_ny=a_pos_normal_ed.xyz-2.0*pos_nx;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;float ele=elevation(pos_nx.xy);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;float h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);vec3 p=vec3(pos_nx.xy,h);\n#else\nvec3 p=vec3(pos_nx.xy,z);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0\n? pos_nx.xy\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\n#ifdef FOG\nv_fog_pos=fog_position(p);\n#endif\n}"),hillshadePrepare:a4("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nreturn texture2D(u_image,coord).a/4.0;\n#else\nvec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;\n#endif\n}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos);float f=getElevation(v_pos+vec2(epsilon.x,0));float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float h=getElevation(v_pos+vec2(0,epsilon.y));float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\n(c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:a4("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef FOG\ngl_FragColor=fog_dither(fog_apply_premultiplied(gl_FragColor,v_fog_pos));\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),line:a4("uniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#ifdef RENDER_LINE_DASH\nuniform sampler2D u_dash_image;uniform float u_mix;uniform vec3 u_scale;varying vec2 v_tex_a;varying vec2 v_tex_b;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform sampler2D u_gradient_image;varying highp vec2 v_uv;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash_from\n#pragma mapbox: define lowp vec4 dash_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash_from\n#pragma mapbox: initialize lowp vec4 dash_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\n#ifdef RENDER_LINE_DASH\nfloat sdfdist_a=texture2D(u_dash_image,v_tex_a).a;float sdfdist_b=texture2D(u_dash_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);float sdfwidth=min(dash_from.z*u_scale.y,dash_to.z*u_scale.z);float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/sdfwidth;alpha*=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);\n#endif\n#ifdef RENDER_LINE_GRADIENT\nvec4 out_color=texture2D(u_gradient_image,v_uv);\n#else\nvec4 out_color=color;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#ifdef RENDER_LINE_ALPHA_DISCARD\nif (alpha < u_alpha_discard_threshold) {discard;}\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define EXTRUDE_SCALE 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;\n#ifdef RENDER_LINE_GRADIENT\nattribute vec3 a_packed;\n#else\nattribute float a_linesofar;\n#endif\nuniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;\n#ifdef RENDER_LINE_DASH\nuniform vec2 u_texsize;uniform mediump vec3 u_scale;varying vec2 v_tex_a;varying vec2 v_tex_b;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform float u_image_height;varying highp vec2 v_uv;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash_from\n#pragma mapbox: define lowp vec4 dash_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash_from\n#pragma mapbox: initialize lowp vec4 dash_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nfloat a_uv_x=a_packed[0];float a_split_index=a_packed[1];float a_linesofar=a_packed[2];highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);\n#endif\n#ifdef RENDER_LINE_DASH\nfloat tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;float scaleA=dash_from.z==0.0 ? 0.0 : tileZoomRatio/(dash_from.z*fromScale);float scaleB=dash_to.z==0.0 ? 0.0 : tileZoomRatio/(dash_to.z*toScale);float heightA=dash_from.y;float heightB=dash_to.y;v_tex_a=vec2(a_linesofar*scaleA/floorwidth,(-normal.y*heightA+dash_from.x+0.5)/u_texsize.y);v_tex_b=vec2(a_linesofar*scaleB/floorwidth,(-normal.y*heightB+dash_to.x+0.5)/u_texsize.y);\n#endif\nv_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),linePattern:a4("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),raster:a4("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);\n#ifdef FOG\nout_color=fog_dither(fog_apply(out_color,v_fog_pos));\n#endif\ngl_FragColor=vec4(out_color*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {float w=1.0+dot(a_texture_pos,u_perspective_transform);gl_Position=u_matrix*vec4(a_pos*w,0,w);v_pos0=a_texture_pos/8192.0;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),symbolIcon:a4("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_z_tile_anchor;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float anchorZ=a_z_tile_anchor.x;vec2 tileAnchor=a_z_tile_anchor.yz;vec3 h=elevationVector(tileAnchor)*elevation(tileAnchor);vec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tileAnchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(vec3(a_pos,anchorZ)+h,mercator_pos,u_zoom_transition);vec4 projectedPoint=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),anchorZ,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec3 proj_pos=mix_globe_mercator(vec3(a_projected_pos.xy,anchorZ),mercator_pos,u_zoom_transition);\n#ifdef PROJECTED_POS_ON_VIEWPORT\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xy,0.0,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xyz+h,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projectedPoint);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projectedPoint.w <=0.0 || occlusion_fade==0.0));float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;}"),symbolSDF:a4("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_z_tile_anchor;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_tile_id;uniform float u_zoom_transition;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float anchorZ=a_z_tile_anchor.x;vec2 tileAnchor=a_z_tile_anchor.yz;vec3 h=elevationVector(tileAnchor)*elevation(tileAnchor);vec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tileAnchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(vec3(a_pos,anchorZ)+h,mercator_pos,u_zoom_transition);vec4 projectedPoint=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),anchorZ,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec3 proj_pos=mix_globe_mercator(vec3(a_projected_pos.xy,anchorZ),mercator_pos,u_zoom_transition);\n#ifdef PROJECTED_POS_ON_VIEWPORT\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xy,0.0,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xyz+h,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projectedPoint);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projectedPoint.w <=0.0 || occlusion_fade==0.0));float gamma_scale=gl_Position.w;float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade);}"),symbolTextAndIcon:a4("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_z_tile_anchor;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float anchorZ=a_z_tile_anchor.x;vec2 tileAnchor=a_z_tile_anchor.yz;vec3 h=elevationVector(tileAnchor)*elevation(tileAnchor);vec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tileAnchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(vec3(a_pos,anchorZ)+h,mercator_pos,u_zoom_transition);vec4 projectedPoint=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),anchorZ,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec3 proj_pos=mix_globe_mercator(vec3(a_projected_pos.xy,anchorZ),mercator_pos,u_zoom_transition);\n#ifdef PROJECTED_POS_ON_VIEWPORT\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xy,0.0,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xyz+h,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projectedPoint);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projectedPoint.w <=0.0 || occlusion_fade==0.0));float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade,is_sdf);}"),terrainRaster:a4("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\nvoid main() {vec4 color=texture2D(u_image0,v_pos0);\n#ifdef FOG\ncolor=fog_dither(fog_apply_from_vert(color,v_fog_opacity));\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\nconst float skirtOffset=24575.0;const float wireframeOffset=0.00015;void main() {v_pos0=a_texture_pos/8192.0;float skirt=float(a_pos.x >=skirtOffset);float elevation=elevation(a_texture_pos)-skirt*u_skirt_height;\n#ifdef TERRAIN_WIREFRAME\nelevation+=u_skirt_height*u_skirt_height*wireframeOffset;\n#endif\nvec2 decodedPos=a_pos-vec2(skirt*skirtOffset,0.0);gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\n#ifdef FOG\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\n#endif\n}"),terrainDepth:a4("#ifdef GL_ES\nprecision highp float;\n#endif\nvarying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying float v_depth;void main() {float elevation=elevation(a_texture_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}"),skybox:a4("\nvarying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;\n#ifdef FOG\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\n#endif\nsky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",a$),skyboxGradient:a4("varying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5));\n#ifdef FOG\ncolor.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;\n#endif\ncolor*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",a$),skyboxCapture:a4("\nvarying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;\n#ifdef GL_ES\nprecision highp float;\n#endif\n#define BETA_R vec3(5.5e-6,13.0e-6,22.4e-6)\n#define BETA_M vec3(21e-6,21e-6,21e-6)\n#define MIE_G 0.76\n#define DENSITY_HEIGHT_SCALE_R 8000.0\n#define DENSITY_HEIGHT_SCALE_M 1200.0\n#define PLANET_RADIUS 6360e3\n#define ATMOSPHERE_RADIUS 6420e3\n#define SAMPLE_STEPS 10\n#define DENSITY_STEPS 4\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}","attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:a4("uniform sampler2D u_image0;varying vec2 v_pos0;void main() {gl_FragColor=texture2D(u_image0,v_pos0);\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_proj_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;attribute vec3 a_globe_pos;attribute vec2 a_merc_pos;attribute vec2 a_uv;varying vec2 v_pos0;const float wireframeOffset=1e3;void main() {v_pos0=a_uv;vec2 uv=a_uv*EXTENT;vec4 up_vector=vec4(elevationVector(uv),1.0);float height=elevation(uv);\n#ifdef TERRAIN_WIREFRAME\nheight+=wireframeOffset;\n#endif\nvec4 globe=u_globe_matrix*vec4(a_globe_pos+up_vector.xyz*height,1.0);vec4 mercator=vec4(0.0);if (u_zoom_transition > 0.0) {mercator=vec4(a_merc_pos,height,1.0);mercator.xy-=u_merc_center;mercator.x=wrap(mercator.x,-0.5,0.5);mercator=u_merc_matrix*mercator;}vec3 position=mix(globe.xyz,mercator.xyz,u_zoom_transition);gl_Position=u_proj_matrix*vec4(position,1.0);}"),globeAtmosphere:a4("uniform vec2 u_center;uniform float u_radius;uniform vec2 u_screen_size;uniform float u_opacity;uniform highp float u_fadeout_range;uniform vec3 u_start_color;uniform vec3 u_end_color;uniform float u_pixel_ratio;void main() {highp vec2 fragCoord=gl_FragCoord.xy/u_pixel_ratio;fragCoord.y=u_screen_size.y-fragCoord.y;float distFromCenter=length(fragCoord-u_center);float normDistFromCenter=length(fragCoord-u_center)/u_radius;if (normDistFromCenter < 1.0)\ndiscard;float t=clamp(1.0-sqrt(normDistFromCenter-1.0)/u_fadeout_range,0.0,1.0);vec3 color=mix(u_start_color,u_end_color,1.0-t);gl_FragColor=vec4(color*t*u_opacity,u_opacity);}","attribute vec3 a_pos;void main() {gl_Position=vec4(a_pos,1.0);}")};function a4(a,b,c){const d=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,f=/uniform (highp |mediump |lowp )?([\w]+) ([\w]+)([\s]*)([\w]*)/g,g=b.match(/attribute (highp |mediump |lowp )?([\w]+) ([\w]+)/g),h=a.match(f),i=b.match(f),j=aZ.match(f);let k=i?i.concat(h):h;c||(a_.staticUniforms&&(k=a_.staticUniforms.concat(k)),a0.staticUniforms&&(k=a0.staticUniforms.concat(k))),k&&(k=k.concat(j));const l={};return{fragmentSource:a=a.replace(d,(a,b,c,d,f)=>(l[f]=!0,"define"===b?` #ifndef HAS_UNIFORM_u_${f} varying ${c} ${d} ${f}; #else @@ -57,4 +57,4 @@ uniform ${c} ${d} u_${f}; `}),staticAttributes:g,staticUniforms:k}}class a5{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(a,b,c,d,f,g,h,i){this.context=a;let j=this.boundPaintVertexBuffers.length!==d.length;for(let k=0;!j&&k{const g=d.paint.get("hillshade-shadow-color"),h=d.paint.get("hillshade-highlight-color"),i=d.paint.get("hillshade-accent-color");let j=d.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===d.paint.get("hillshade-illumination-anchor")&&(j-=b.transform.angle);const k=!b.options.moving;return{u_matrix:f||b.transform.calculateProjMatrix(c.tileID.toUnwrapped(),k),u_image:0,u_latrange:function(b,c){const d=Math.pow(2,c.canonical.z),f=c.canonical.y;return[new a.MercatorCoordinate(0,f/d).toLngLat().lat,new a.MercatorCoordinate(0,(f+1)/d).toLngLat().lat,]}(0,c.tileID),u_light:[d.paint.get("hillshade-exaggeration"),j,],u_shadow:g,u_highlight:h,u_accent:i}})(b,d,f,b.terrain?c.projMatrix:null);b.prepareDrawProgram(j,m,c.toUnwrapped());const{tileBoundsBuffer:o,tileBoundsIndexBuffer:p,tileBoundsSegments:q}=b.getTileBoundsBuffers(d);m.draw(j,k.TRIANGLES,g,h,i,a.CullFaceMode.disabled,n,f.id,o,p,q)}function a7(b,c,d){if(!c.needsDEMTextureUpload)return;const f=b.context,g=f.gl;f.pixelStoreUnpackPremultiplyAlpha.set(!1),c.demTexture=c.demTexture||b.getTileTexture(d.stride);const h=d.getPixels();c.demTexture?c.demTexture.update(h,{premultiply:!1}):c.demTexture=new a.Texture(f,h,g.RGBA,{premultiply:!1}),c.needsDEMTextureUpload=!1}function a8(b,c,d,f,g,h){const i=b.context,j=i.gl;if(!c.dem)return;const k=c.dem;if(i.activeTexture.set(j.TEXTURE1),a7(b,c,k),!c.demTexture)return;c.demTexture.bind(j.NEAREST,j.CLAMP_TO_EDGE);const l=k.dim;i.activeTexture.set(j.TEXTURE0);let m=c.fbo;if(!m){const n=new a.Texture(i,{width:l,height:l,data:null},j.RGBA);n.bind(j.LINEAR,j.CLAMP_TO_EDGE),(m=c.fbo=i.createFramebuffer(l,l,!0)).colorAttachment.set(n.texture)}i.bindFramebuffer.set(m.framebuffer),i.viewport.set([0,0,l,l]);const{tileBoundsBuffer:o,tileBoundsIndexBuffer:p,tileBoundsSegments:q}=b.getMercatorTileBoundsBuffers();b.useProgram("hillshadePrepare").draw(i,j.TRIANGLES,f,g,h,a.CullFaceMode.disabled,((b,c)=>{const d=c.stride,f=a.create();return a.ortho(f,0,a.EXTENT,-a.EXTENT,0,0,1),a.translate(f,f,[0,-a.EXTENT,0]),{u_matrix:f,u_image:1,u_dimension:[d,d],u_zoom:b.overscaledZ,u_unpack:c.unpackVector}})(c.tileID,k),d.id,o,p,q),c.needsHillshadePrepare=!1}const a9=(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_image0:new a.Uniform1i(b,c.u_image0),u_skirt_height:new a.Uniform1f(b,c.u_skirt_height)}),ba=(a,b)=>({u_matrix:a,u_image0:0,u_skirt_height:b}),bb=(a,b,c,d,f)=>({u_proj_matrix:Float32Array.from(a),u_globe_matrix:b,u_merc_matrix:c,u_zoom_transition:d,u_merc_center:f,u_image0:0});function bc(a,b){return null!=a&&null!=b&&!(!a.hasData()||!b.hasData())&&null!=a.demTexture&&null!=b.demTexture&&a.tileID.key!==b.tileID.key}const bd=new class{constructor(){this.operations={}}newMorphing(a,b,c,d,f){if(a in this.operations){const g=this.operations[a];g.to.tileID.key!==c.tileID.key&&(g.queued=c)}else this.operations[a]={startTime:d,phase:0,duration:f,from:b,to:c,queued:null}}getMorphValuesForProxy(a){if(!(a in this.operations))return null;const b=this.operations[a];return{from:b.from,to:b.to,phase:b.phase}}update(a){for(const b in this.operations){const c=this.operations[b];for(c.phase=(a-c.startTime)/c.duration;c.phase>=1||!this._validOp(c);)if(!this._nextOp(c,a)){delete this.operations[b];break}}}_nextOp(a,b){return!!a.queued&&(a.from=a.to,a.to=a.queued,a.queued=null,a.phase=0,a.startTime=b,!0)}_validOp(a){return a.from.hasData()&&a.to.hasData()}},be={0:null,1:"TERRAIN_VERTEX_MORPHING",2:"TERRAIN_WIREFRAME"};function bf(a,b){const c=1<({u_matrix:a});function bh(b,c,d,f,g){if(g>0){const h=a.exported.now(),i=(h-b.timeAdded)/g,j=c?(h-c.timeAdded)/g:-1,k=d.getSource(),l=f.coveringZoomLevel({tileSize:k.tileSize,roundZoom:k.roundZoom}),m=!c||Math.abs(c.tileID.overscaledZ-l)>Math.abs(b.tileID.overscaledZ-l),n=m&&b.refreshedUponExpiration?1:a.clamp(m?i:1-j,0,1);return b.refreshedUponExpiration&&i>=1&&(b.refreshedUponExpiration=!1),c?{opacity:1,mix:1-n}:{opacity:n,mix:0}}return{opacity:1,mix:0}}class bi extends a.SourceCache{constructor(a){const b={type:"raster-dem",maxzoom:a.transform.maxZoom},c=new B(ab(),null),d=U("mock-dem",b,c,a.style);super("mock-dem",d,!1),d.setEventedParent(this),this._sourceLoaded=!0}_loadTile(a,b){a.state="loaded",b(null)}}class bj extends a.SourceCache{constructor(a){const b=U("proxy",{type:"geojson",maxzoom:a.transform.maxZoom},new B(ab(),null),a.style);super("proxy",b,!1),b.setEventedParent(this),this.map=this.getSource().map=a,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(b,c,d){if(b.freezeTileCoverage)return;this.transform=b;const f=b.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce((c,d)=>{if(c[d.key]="",!this._tiles[d.key]){const f=new a.Tile(d,this._source.tileSize*d.overscaleFactor(),b.tileZoom);f.state="loaded",this._tiles[d.key]=f}return c},{});for(const g in this._tiles)g in f||(this.freeFBO(g),this._tiles[g].unloadVectorData(),delete this._tiles[g])}freeFBO(a){const b=this.proxyCachedFBO[a];if(void 0!==b){const c=Object.values(b);this.renderCachePool.push(...c),delete this.proxyCachedFBO[a]}}deallocRenderCache(){this.renderCache.forEach(a=>a.fb.destroy()),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class bk extends a.OverscaledTileID{constructor(a,b,c){super(a.overscaledZ,a.wrap,a.canonical.z,a.canonical.x,a.canonical.y),this.proxyTileKey=b,this.projMatrix=c}}class bl extends a.Elevation{constructor(b,c){super(),this.painter=b,this.terrainTileForTile={},this.prevTerrainTileForTile={};const[d,f,g]=function(b){const c=new a.StructArrayLayout4i8,d=new a.StructArrayLayout3ui6;c.reserve(17161),d.reserve(33800);const f=a.EXTENT/128,g=a.EXTENT+f/2,h=g+f;for(let i=-f;ig||i<0||i>g?24575:0,l=a.clamp(Math.round(j),0,a.EXTENT),m=a.clamp(Math.round(i),0,a.EXTENT);c.emplaceBack(l+k,m,l,m)}const n=(a,b)=>{const c=131*b+a;d.emplaceBack(c+1,c,c+131),d.emplaceBack(c+131,c+131+1,c+1)};for(let o=1;o<129;o++)for(let p=1;p<129;p++)n(p,o);return[0,129].forEach(a=>{for(let b=0;b<130;b++)n(b,a),n(a,b)}),[c,d,32768]}(),h=b.context;this.gridBuffer=h.createVertexBuffer(d,a.boundsAttributes.members),this.gridIndexBuffer=h.createIndexBuffer(f),this.gridSegments=a.SegmentVector.simpleSegment(0,0,d.length,f.length),this.gridNoSkirtSegments=a.SegmentVector.simpleSegment(0,0,d.length,g),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new bj(c.map),this.orthoMatrix=a.create(),a.ortho(this.orthoMatrix,0,a.EXTENT,0,a.EXTENT,0,1);const i=h.gl;this._overlapStencilMode=new a.StencilMode({func:i.GEQUAL,mask:255},0,255,i.KEEP,i.KEEP,i.REPLACE),this._previousZoom=b.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=c,this._useVertexMorphing=!0,this._exaggeration=1,this._mockSourceCache=new bi(c.map)}set style(a){a.on("data",this._onStyleDataEvent.bind(this)),a.on("neworder",this._checkRenderCacheEfficiency.bind(this)),this._style=a,this._checkRenderCacheEfficiency()}update(b,c,d){if(b&&b.terrain){this._style!==b&&(this.style=b),this.enabled=!0;const f=b.terrain.properties;this.sourceCache=0===b.terrain.drapeRenderMode?this._mockSourceCache:b._getSourceCache(f.get("source")),this._exaggeration=f.get("exaggeration");const g=()=>{this.sourceCache.used&&a.warnOnce(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source. This leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);const b=this.getScaledDemTileSize();this.sourceCache.update(c,b,!0),this.resetTileLookupCache(this.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,g(),this._initializing=!0),g(),c.updateElevation(!d),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(c),this._emptyDEMTextureDirty=!0}else this._disable()}resetTileLookupCache(a){this._findCoveringTileCache[a]={}}getScaledDemTileSize(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}_checkRenderCacheEfficiency(){const b=this.renderCacheEfficiency(this._style);this._style.map._optimizeForTerrain||100!==b.efficiency&&a.warnOnce(`Terrain render cache efficiency is not optimal (${b.efficiency}%) and performance may be affected negatively, consider placing all background, fill and line layers before layer - with id '${b.firstUndrapedLayer}' or create a map using optimizeForTerrain: true option.`)}_onStyleDataEvent(a){a.coord&&"source"===a.dataType?this._clearRenderCacheForTile(a.sourceCacheId,a.coord):"style"===a.dataType&&(this._invalidateRenderCache=!0)}_disable(){if(this.enabled&&(this.enabled=!1,this._sharedDepthStencil=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(const a in this._style._sourceCaches)this._style._sourceCaches[a].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this._emptyDepthBufferTexture&&this._emptyDepthBufferTexture.destroy(),this.pool.forEach(a=>a.fb.destroy()),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),delete this._depthFBO,delete this._depthTexture)}_source(){return this.enabled?this.sourceCache:null}exaggeration(){return this._exaggeration}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){const a=2*this.proxySourceCache.getSource().tileSize;return[a,a]}set useVertexMorphing(a){this._useVertexMorphing=a}updateTileBinding(b){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;const c=this.proxySourceCache,d=this.painter.transform;this._initializing&&(this._initializing=0===d._centerAltitude&& -1===this.getAtPointOrZero(a.MercatorCoordinate.fromLngLat(d.center),-1),this._emptyDEMTextureDirty=!this._initializing);const f=this.proxyCoords=c.getIds().map(a=>{const b=c.getTileByID(a).tileID;return b.projMatrix=d.calculateProjMatrix(b.toUnwrapped()),b});(function(b,c){const d=c.transform.pointCoordinate(c.transform.getCameraPoint()),f=new a.pointGeometry(d.x,d.y);b.sort((b,c)=>{if(c.overscaledZ-b.overscaledZ)return c.overscaledZ-b.overscaledZ;const d=new a.pointGeometry(b.canonical.x+(1<{this.proxyToSource[a.key]={}}),this.terrainTileForTile={};const h=this._style._sourceCaches;for(const i in h){const j=h[i];if(!j.used||(j!==this.sourceCache&&this.resetTileLookupCache(j.id),this._setupProxiedCoordsForOrtho(j,b[i],g),j.usedForTerrain))continue;const k=b[i];j.getSource().reparseOverscaled&&this._assignTerrainTiles(k)}this.proxiedCoords[c.id]=f.map(a=>new bk(a,a.key,this.orthoMatrix)),this._assignTerrainTiles(f),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(g),this.renderingToTexture=!1,this._updateTimestamp=a.exported.now();const l={};for(const m of(this._visibleDemTiles=[],this.proxyCoords)){const n=this.terrainTileForTile[m.key];if(!n)continue;const o=n.tileID.key;o in l||(this._visibleDemTiles.push(n),l[o]=o)}}_assignTerrainTiles(a){this._initializing||a.forEach(a=>{if(this.terrainTileForTile[a.key])return;const b=this._findTileCoveringTileID(a,this.sourceCache);b&&(this.terrainTileForTile[a.key]=b)})}_prepareDEMTextures(){const a=this.painter.context,b=a.gl;for(const c in this.terrainTileForTile){const d=this.terrainTileForTile[c],f=d.dem;f&&(!d.demTexture||d.needsDEMTextureUpload)&&(a.activeTexture.set(b.TEXTURE1),a7(this.painter,d,f))}}_prepareDemTileUniforms(a,b,c,d){if(!b||null==b.demTexture)return!1;const f=a.tileID.canonical,g=Math.pow(2,b.tileID.canonical.z-f.z),h=d||"";return c[`u_dem_tl${h}`]=[f.x*g%1,f.y*g%1,],c[`u_dem_scale${h}`]=g,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}get emptyDepthBufferTexture(){const b=this.painter.context,c=b.gl;if(!this._emptyDepthBufferTexture){const d={width:1,height:1,data:new Uint8Array([255,255,255,255,])};this._emptyDepthBufferTexture=new a.Texture(b,d,c.RGBA,{premultiply:!1})}return this._emptyDepthBufferTexture}_getLoadedAreaMinimum(){let a=0;const b=this._visibleDemTiles.reduce((b,c)=>{if(!c.dem)return b;const d=c.dem.tree.minimums[0];return d>0&&a++,b+d},0);return a?b/a:0}_updateEmptyDEMTexture(){const b=this.painter.context,c=b.gl;b.activeTexture.set(c.TEXTURE2);const d=this._getLoadedAreaMinimum(),f={width:1,height:1,data:new Uint8Array(a.DEMData.pack(d,this.sourceCache.getSource().encoding))};this._emptyDEMTextureDirty=!1;let g=this._emptyDEMTexture;return g?g.update(f,{premultiply:!1}):g=this._emptyDEMTexture=new a.Texture(b,f,c.RGBA,{premultiply:!1}),g}setupElevationDraw(b,c,d){var f;const g=this.painter.context,h=g.gl,i=(f=this.sourceCache.getSource().encoding,{u_dem:2,u_dem_prev:4,u_dem_unpack:a.DEMData.getUnpackVector(f),u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0,u_tile_tl_up:[0,0,1],u_tile_tr_up:[0,0,1],u_tile_br_up:[0,0,1],u_tile_bl_up:[0,0,1],u_tile_up_scale:1});i.u_dem_size=this.sourceCache.getSource().tileSize,i.u_exaggeration=this.exaggeration();const j=this.painter.transform,k=j.projection.createTileTransform(j,j.worldSize),l=b.tileID.canonical;i.u_tile_tl_up=k.upVector(l,0,0),i.u_tile_tr_up=k.upVector(l,a.EXTENT,0),i.u_tile_br_up=k.upVector(l,a.EXTENT,a.EXTENT),i.u_tile_bl_up=k.upVector(l,0,a.EXTENT),i.u_tile_up_scale=k.upVectorScale(l);let m=null,n=null,o=1;if(d&&d.morphing&&this._useVertexMorphing){const p=d.morphing.srcDemTile,q=d.morphing.dstDemTile;o=d.morphing.phase,p&&q&&(this._prepareDemTileUniforms(b,p,i,"_prev")&&(n=p),this._prepareDemTileUniforms(b,q,i)&&(m=q))}if(n&&m?(g.activeTexture.set(h.TEXTURE2),m.demTexture.bind(h.NEAREST,h.CLAMP_TO_EDGE,h.NEAREST),g.activeTexture.set(h.TEXTURE4),n.demTexture.bind(h.NEAREST,h.CLAMP_TO_EDGE,h.NEAREST),i.u_dem_lerp=o):(m=this.terrainTileForTile[b.tileID.key],g.activeTexture.set(h.TEXTURE2),(this._prepareDemTileUniforms(b,m,i)?m.demTexture:this.emptyDEMTexture).bind(h.NEAREST,h.CLAMP_TO_EDGE)),g.activeTexture.set(h.TEXTURE3),d&&d.useDepthForOcclusion?(this._depthTexture.bind(h.NEAREST,h.CLAMP_TO_EDGE),i.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height,]):(this.emptyDepthBufferTexture.bind(h.NEAREST,h.CLAMP_TO_EDGE),i.u_depth_size_inv=[1,1]),d&&d.useMeterToDem&&m){const r=(1<{if(k===a)return;const d=[];c&&d.push(be[l]),d.push(be[a]),d.push("PROJECTION_GLOBE_VIEW"),j=b.useProgram("globeRaster",null,d),k=a},n=b.colorModeForRenderPass(),o=new a.DepthMode(i.LEQUAL,a.DepthMode.ReadWrite,b.depthRangeFor3D);bd.update(g);const p=b.transform,q=a.calculateGlobeMatrix(p,p.worldSize),r=a.calculateGlobeMercatorMatrix(p),s=[a.mercatorXfromLng(p.center.lng),a.mercatorYfromLat(p.center.lat),],u=b.globeSharedBuffers;(l?[!1,!0]:[!1]).forEach(l=>{k=-1;const v=l?i.LINES:i.TRIANGLES;for(const w of f){const x=d.getTile(w),y=Math.pow(2,w.canonical.z),[z,A]=a.globeBuffersForTileMesh(b,x,w,y),B=a.StencilMode.disabled,C=c.prevTerrainTileForTile[w.key],D=c.terrainTileForTile[w.key];bc(C,D)&&bd.newMorphing(w.key,C,D,g,250),h.activeTexture.set(i.TEXTURE0),x.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE);const E=bd.getMorphValuesForProxy(w.key),F=E?1:0,G={};E&&a.extend$1(G,{morphing:{srcDemTile:E.from,dstDemTile:E.to,phase:a.easeCubicInOut(E.phase)}});const H=a.globeMatrixForTile(w.canonical,q),I=bb(p.projMatrix,H,r,a.globeToMercatorTransition(p.zoom),s);if(m(F,l),c.setupElevationDraw(x,j,G),b.prepareDrawProgram(h,j,w.toUnwrapped()),u){const[J,K]=l?u.getWirefameBuffer(b.context):[u.gridIndexBuffer,u.gridSegments,];j.draw(h,v,o,B,n,a.CullFaceMode.backCCW,I,"globe_raster",z,J,K)}if(!l){const L=[0===w.canonical.y?a.globePoleMatrixForTile(w.canonical,!1,p):null,w.canonical.y===y-1?a.globePoleMatrixForTile(w.canonical,!0,p):null,];for(const M of L){if(!M)continue;const N=bb(p.projMatrix,M,M,0,s);u&&j.draw(h,v,o,B,n,a.CullFaceMode.disabled,N,"globe_pole_raster",A,u.poleIndexBuffer,u.poleSegments)}}}})}(b,c,d,f,g);else{const h=b.context,i=h.gl;let j,k;const l=b.options.showTerrainWireframe?2:0,m=(a,c)=>{if(k===a)return;const d=[be[a]];c&&d.push(be[l]),j=b.useProgram("terrainRaster",null,d),k=a},n=b.colorModeForRenderPass(),o=new a.DepthMode(i.LEQUAL,a.DepthMode.ReadWrite,b.depthRangeFor3D);bd.update(g);const p=b.transform,q=6*Math.pow(1.5,22-p.zoom)*c.exaggeration();(l?[!1,!0]:[!1]).forEach(l=>{k=-1;const r=l?i.LINES:i.TRIANGLES,[s,u]=l?c.getWirefameBuffer():[c.gridIndexBuffer,c.gridSegments,];for(const v of f){const w=d.getTile(v),x=a.StencilMode.disabled,y=c.prevTerrainTileForTile[v.key],z=c.terrainTileForTile[v.key];bc(y,z)&&bd.newMorphing(v.key,y,z,g,250),h.activeTexture.set(i.TEXTURE0),w.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_NEAREST);const A=bd.getMorphValuesForProxy(v.key),B=A?1:0;let C;A&&(C={morphing:{srcDemTile:A.from,dstDemTile:A.to,phase:a.easeCubicInOut(A.phase)}});const D=ba(v.projMatrix,bf(v.canonical,p.renderWorldCopies)?q/10:q);m(B,l),c.setupElevationDraw(w,j,C),b.prepareDrawProgram(h,j,v.toUnwrapped()),j.draw(h,r,o,x,n,a.CullFaceMode.backCCW,D,"terrain_raster",c.gridBuffer,s,u)}})}}(c,this,this.proxySourceCache,b,this._updateTimestamp),this.renderingToTexture=!0,b.splice(0,b.length))}renderBatch(b){if(0===this._drapedRenderBatches.length)return b+1;this.renderingToTexture=!0;const c=this.painter,d=this.painter.context,f=this.proxySourceCache,g=this.proxiedCoords[f.id],h=this._drapedRenderBatches.shift(),i=[],j=c.style.order;let k=0;for(const l of g){const m=f.getTileByID(l.proxyTileKey),n=f.proxyCachedFBO[l.key]?f.proxyCachedFBO[l.key][b]:void 0,o=void 0!==n?f.renderCache[n]:this.pool[k++],p=void 0!==n;if(m.texture=o.tex,p&&!o.dirty){i.push(m.tileID);continue}let q;d.bindFramebuffer.set(o.fb.framebuffer),this.renderedToTile=!1,o.dirty&&(d.clear({color:a.Color.transparent,stencil:0}),o.dirty=!1);for(let r=h.start;r<=h.end;++r){const s=c.style._layers[j[r]];if(s.isHidden(c.transform.zoom))continue;const u=c.style._getLayerSourceCache(s),v=u?this.proxyToSource[l.key][u.id]:[l];if(!v)continue;const w=v;d.viewport.set([0,0,o.fb.width,o.fb.height,]),q!==(u?u.id:null)&&(this._setupStencil(o,v,s,u),q=u?u.id:null),c.renderLayer(c,u,s,w)}this.renderedToTile?(o.dirty=!0,i.push(m.tileID)):p|| --k,5===k&&(k=0,this.renderToBackBuffer(i))}return this.renderToBackBuffer(i),this.renderingToTexture=!1,d.bindFramebuffer.set(null),d.viewport.set([0,0,c.width,c.height]),h.end+1}postRender(){}renderCacheEfficiency(a){const b=a.order.length;if(0===b)return{efficiency:100};let c,d=0,f=0,g=!1;for(let h=0;ha.dem).forEach(b=>{a=Math.min(a,b.dem.tree.minimums[0])}),0===a?a:(a-30)*this._exaggeration}raycast(a,b,c){if(!this._visibleDemTiles)return null;const d=this._visibleDemTiles.filter(a=>a.dem).map(d=>{const f=d.tileID,g=Math.pow(2,f.overscaledZ),{x:h,y:i}=f.canonical,j=h/g,k=(h+1)/g,l=i/g,m=(i+1)/g;return{minx:j,miny:l,maxx:k,maxy:m,t:d.dem.tree.raycastRoot(j,l,k,m,a,b,c),tile:d}});for(const f of(d.sort((a,b)=>(null!==a.t?a.t:Number.MAX_VALUE)-(null!==b.t?b.t:Number.MAX_VALUE)),d)){if(null==f.t)break;const g=f.tile.dem.tree.raycast(f.minx,f.miny,f.maxx,f.maxy,a,b,c);if(null!=g)return g}return null}_createFBO(){const b=this.painter.context,c=b.gl,d=this.drapeBufferSize;b.activeTexture.set(c.TEXTURE0);const f=new a.Texture(b,{width:d[0],height:d[1],data:null},c.RGBA);f.bind(c.LINEAR,c.CLAMP_TO_EDGE);const g=b.createFramebuffer(d[0],d[1],!1);return g.colorAttachment.set(f.texture),g.depthAttachment=new J(b,g.framebuffer),void 0===this._sharedDepthStencil?(this._sharedDepthStencil=b.createRenderbuffer(b.gl.DEPTH_STENCIL,d[0],d[1]),this._stencilRef=0,g.depthAttachment.set(this._sharedDepthStencil),b.clear({stencil:0})):g.depthAttachment.set(this._sharedDepthStencil),b.extTextureFilterAnisotropic&&!b.extTextureFilterAnisotropicForceOff&&c.texParameterf(c.TEXTURE_2D,b.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,b.extTextureFilterAnisotropicMax),{fb:g,tex:f,dirty:!1}}_initFBOPool(){for(;this.pool.length{const b=this._style._layers[a],c=b.isHidden(this.painter.transform.zoom),d=b.getCrossfadeParameters(),f=!!d&&1!==d.t,g=b.hasTransition();return"custom"!==b.type&&!c&&(f||g)})}_clearRasterFadeFromRenderCache(){let a=!1;for(const b in this._style._sourceCaches)if(this._style._sourceCaches[b]._source instanceof P){a=!0;break}if(a)for(let c=0;cb.renderCachePool.length){const c=Object.values(b.proxyCachedFBO);b.proxyCachedFBO={};for(let d=0;d=0;i--){const j=g[i];if(b.getTileByID(j.key),void 0!==b.proxyCachedFBO[j.key]){const k=a[j.key],l=this.proxyToSource[j.key];let m=0;for(const n in l){const o=l[n],p=k[n];if(!p||p.length!==o.length||o.some((a,b)=>a!==p[b]||h[n]&&h[n].hasOwnProperty(a.key))){m=-1;break}++m}for(const q in b.proxyCachedFBO[j.key])b.renderCache[b.proxyCachedFBO[j.key][q]].dirty=m<0||m!==Object.values(k).length}}const r=[...this._drapedRenderBatches];for(const s of(r.sort((a,b)=>b.end-b.start-(a.end-a.start)),r))for(const u of g){if(b.proxyCachedFBO[u.key])continue;let v=b.renderCachePool.pop();void 0===v&&b.renderCache.length<50&&(v=b.renderCache.length,b.renderCache.push(this._createFBO())),void 0!==v&&(b.proxyCachedFBO[u.key]={},b.proxyCachedFBO[u.key][s.start]=v,b.renderCache[v].dirty=!0)}this._tilesDirty={}}_setupStencil(a,b,c,d){if(!d||!this._sourceTilesOverlap[d.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const f=this.painter.context,g=f.gl;if(b.length<=1)return void(this._overlapStencilType=!1);let h;if(c.isTileClipped())h=b.length,this._overlapStencilMode.test={func:g.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(b[0].overscaledZ>b[b.length-1].overscaledZ))return void(this._overlapStencilType=!1);h=1,this._overlapStencilMode.test={func:g.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+h>255&&(f.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=h,this._overlapStencilMode.ref=this._stencilRef,c.isTileClipped()&&this._renderTileClippingMasks(b,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return"Clip"===this._overlapStencilType||"Mask"===this._overlapStencilType}stencilModeForRTTOverlap(b){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[b.key]),this._overlapStencilMode):a.StencilMode.disabled}_renderTileClippingMasks(b,c){const d=this.painter,f=this.painter.context,g=f.gl;d._tileClippingMaskIDs={},f.setColorMode(a.ColorMode.disabled),f.setDepthMode(a.DepthMode.disabled);const h=d.useProgram("clippingMask");for(const i of b){const j=d._tileClippingMaskIDs[i.key]=--c;h.draw(f,g.TRIANGLES,a.DepthMode.disabled,new a.StencilMode({func:g.ALWAYS,mask:0},j,255,g.KEEP,g.KEEP,g.REPLACE),a.ColorMode.disabled,a.CullFaceMode.disabled,bg(i.projMatrix),"$clipping",d.tileExtentBuffer,d.quadTriangleIndexBuffer,d.tileExtentSegments)}}pointCoordinate(b){const c=this.painter.transform;if(b.x<0||b.x>c.width||b.y<0||b.y>c.height)return null;const d=[b.x,b.y,1,1];a.transformMat4$1(d,d,c.pixelMatrixInverse),a.scale$1(d,d,1/d[3]),d[0]/=c.worldSize,d[1]/=c.worldSize;const f=c._camera.position,g=a.mercatorZfromAltitude(1,c.center.lat),h=[f[0],f[1],f[2]/g,0],i=a.subtract([],d.slice(0,3),h);a.normalize(i,i);const j=this.raycast(h,i,this._exaggeration);return null!==j&&j?(a.scaleAndAdd(h,h,i,j),h[3]=h[2],h[2]*=g,h):null}drawDepth(){const b=this.painter,c=b.context,d=this.proxySourceCache,f=Math.ceil(b.width),g=Math.ceil(b.height);if(this._depthFBO&&(this._depthFBO.width!==f||this._depthFBO.height!==g)&&(this._depthFBO.destroy(),delete this._depthFBO,delete this._depthTexture),!this._depthFBO){const h=c.gl,i=c.createFramebuffer(f,g,!0);c.activeTexture.set(h.TEXTURE0);const j=new a.Texture(c,{width:f,height:g,data:null},h.RGBA);j.bind(h.NEAREST,h.CLAMP_TO_EDGE),i.colorAttachment.set(j.texture);const k=c.createRenderbuffer(c.gl.DEPTH_COMPONENT16,f,g);i.depthAttachment.set(k),this._depthFBO=i,this._depthTexture=j}c.bindFramebuffer.set(this._depthFBO.framebuffer),c.viewport.set([0,0,f,g]),function(b,c,d,f){if("globe"===b.transform.projection.name)return;const g=b.context,h=g.gl;g.clear({depth:1});const i=b.useProgram("terrainDepth"),j=new a.DepthMode(h.LESS,a.DepthMode.ReadWrite,b.depthRangeFor3D);for(const k of f){const l=d.getTile(k),m=ba(k.projMatrix,0);c.setupElevationDraw(l,i),i.draw(g,h.TRIANGLES,j,a.StencilMode.disabled,a.ColorMode.unblended,a.CullFaceMode.backCCW,m,"terrain_depth",c.gridBuffer,c.gridIndexBuffer,c.gridNoSkirtSegments)}}(b,this,d,this.proxyCoords)}_setupProxiedCoordsForOrtho(a,b,c){if(a.getSource() instanceof S)return this._setupProxiedCoordsForImageSource(a,b,c);this._findCoveringTileCache[a.id]=this._findCoveringTileCache[a.id]||{};const d=this.proxiedCoords[a.id]=[],f=this.proxyCoords;for(let g=0;g(a.min.x=Math.min(a.min.x,b.x-i.x),a.min.y=Math.min(a.min.y,b.y-i.y),a.max.x=Math.max(a.max.x,b.x-i.x),a.max.y=Math.max(a.max.y,b.y-i.y),a),{min:new a.pointGeometry(Number.MAX_VALUE,Number.MAX_VALUE),max:new a.pointGeometry(-Number.MAX_VALUE,-Number.MAX_VALUE)}),k=(b,c)=>{const d=b.wrap+b.canonical.x/(1<h+j.max.x||f+gi+j.max.y};for(let l=0;la.key===c.tileID.key);if(g)return g}if(c.tileID.key!==b.key){const h=b.canonical.z-c.tileID.canonical.z;let i,j,k;f=a.create();const l=c.tileID.wrap-b.wrap<0?(j=(i=a.EXTENT>>h)*((c.tileID.canonical.x<=l){const m=b.canonical.z-l;c.getSource().reparseOverscaled?(i=Math.max(b.canonical.z+2,c.transform.tileZoom),h=new a.OverscaledTileID(i,b.wrap,l,b.canonical.x>>m,b.canonical.y>>m)):0!==m&&(i=l,h=new a.OverscaledTileID(i,b.wrap,l,b.canonical.x>>m,b.canonical.y>>m))}h.key!==b.key&&(k.push(h.key),d=c.getTile(h))}const n=a=>{k.forEach(b=>{f[b]=a}),k.length=0};for(i-=1;i>=j&&(!d||!d.hasData());i--){d&&n(d.tileID.key);const o=h.calculateScaledKey(i);if((d=c.getTileByID(o))&&d.hasData())break;const p=f[o];if(null===p)break;void 0===p?k.push(o):d=c.getTileByID(p)}return n(d?d.tileID.key:null),d&&d.hasData()?d:null}findDEMTileFor(a){return this.enabled?this._findTileCoveringTileID(a,this.sourceCache):null}prepareDrawTile(a){this.renderedToTile=!0}_clearRenderCacheForTile(a,b){let c=this._tilesDirty[a];c||(c=this._tilesDirty[a]={}),c[b.key]=!0}getWirefameBuffer(){if(!this.wireframeSegments){const b=function(b){let c,d,f;const g=new a.StructArrayLayout2ui4,h=131;for(d=1;d<129;d++){for(c=1;c<129;c++)f=d*h+c,g.emplaceBack(f,f+1),g.emplaceBack(f,f+h),g.emplaceBack(f+1,f+h),128===d&&g.emplaceBack(f+h,f+h+1);g.emplaceBack(f+1,f+1+h)}return g}();this.wireframeIndexBuffer=this.painter.context.createIndexBuffer(b),this.wireframeSegments=a.SegmentVector.simpleSegment(0,0,this.gridBuffer.length,b.length)}return[this.wireframeIndexBuffer,this.wireframeSegments,]}}function bm(a){const b=[];for(let c=0;cu.indexOf(v)&&u.push(v);let w=f?f.defines():[];w=w.concat(h.map(a=>`#define ${a}`));const x=w.concat("\n#ifdef GL_ES\nprecision mediump float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif",a2,a1.fragmentSource,a0.fragmentSource,d.fragmentSource).join("\n"),y=w.concat("\n#ifdef GL_ES\nprecision highp float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif",a2,a1.vertexSource,a0.vertexSource,a_.vertexSource,d.vertexSource).join("\n"),z=m.createShader(m.FRAGMENT_SHADER);if(m.isContextLost())return void(this.failedToCreate=!0);m.shaderSource(z,x),m.compileShader(z),m.attachShader(this.program,z);const A=m.createShader(m.VERTEX_SHADER);if(m.isContextLost())return void(this.failedToCreate=!0);m.shaderSource(A,y),m.compileShader(A),m.attachShader(this.program,A),this.attributes={};const B={};this.numAttributes=p.length;for(let C=0;C>16,i>>16],u_pixel_coord_lower:[65535&h,65535&i]}}const bp=(b,c,d,f)=>{const g=c.style.light,h=g.properties.get("position"),i=[h.x,h.y,h.z],j=a.create$1();"viewport"===g.properties.get("anchor")&&(a.fromRotation(j,-c.transform.angle),a.transformMat3(i,i,j));const k=g.properties.get("color");return{u_matrix:b,u_lightpos:i,u_lightintensity:g.properties.get("intensity"),u_lightcolor:[k.r,k.g,k.b],u_vertical_gradient:+d,u_opacity:f}},bq=(b,c,d,f,g,h,i)=>a.extend(bp(b,c,d,f),bo(h,c,i),{u_height_factor:-Math.pow(2,g.overscaledZ)/i.tileSize/8}),br=a=>({u_matrix:a}),bs=(b,c,d,f)=>a.extend(br(b),bo(d,c,f)),bt=(a,b)=>({u_matrix:a,u_world:b}),bu=(b,c,d,f,g)=>a.extend(bs(b,c,d,f),{u_world:g}),bv=(b,c,d,f)=>{const g=b.transform;let h;return h="map"===f.paint.get("circle-pitch-alignment")?g.calculatePixelsToTileUnitsMatrix(d):new Float32Array([g.pixelsToGLUnits[0],0,0,g.pixelsToGLUnits[1],]),{u_camera_to_center_distance:g.cameraToCenterDistance,u_matrix:b.translatePosMatrix(c.projMatrix,d,f.paint.get("circle-translate"),f.paint.get("circle-translate-anchor")),u_device_pixel_ratio:a.exported.devicePixelRatio,u_extrude_scale:h}},bw=a=>{const b=[];return"map"===a.paint.get("circle-pitch-alignment")&&b.push("PITCH_WITH_MAP"),"map"===a.paint.get("circle-pitch-scale")&&b.push("SCALE_WITH_MAP"),b},bx=(b,c,d)=>{const f=a.EXTENT/d.tileSize;return{u_matrix:b,u_camera_to_center_distance:c.cameraToCenterDistance,u_extrude_scale:[c.pixelsToGLUnits[0]/f,c.pixelsToGLUnits[1]/f,]}},by=(a,b,c=1)=>({u_matrix:a,u_color:b,u_overlay:0,u_overlay_scale:c}),bz=(a,b,c,d)=>({u_matrix:a,u_extrude_scale:C(b,1,c),u_intensity:d}),bA=(b,c,d,f,g,h)=>{const i=b.transform,j=i.calculatePixelsToTileUnitsMatrix(c),k={u_matrix:bD(b,c,d,g),u_pixels_to_tile_units:j,u_device_pixel_ratio:a.exported.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1],],u_dash_image:0,u_gradient_image:1,u_image_height:h,u_texsize:[0,0],u_scale:[0,0,0],u_mix:0,u_alpha_discard_threshold:0};if(bE(d)){const l=bC(c,b.transform);k.u_texsize=c.lineAtlasTexture.size,k.u_scale=[l,f.fromScale,f.toScale,],k.u_mix=f.t}return k},bB=(b,c,d,f,g)=>{const h=b.transform,i=bC(c,h);return{u_matrix:bD(b,c,d,g),u_texsize:c.imageAtlasTexture.size,u_pixels_to_tile_units:h.calculatePixelsToTileUnitsMatrix(c),u_device_pixel_ratio:a.exported.devicePixelRatio,u_image:0,u_scale:[i,f.fromScale,f.toScale],u_fade:f.t,u_units_to_pixels:[1/h.pixelsToGLUnits[0],1/h.pixelsToGLUnits[1],],u_alpha_discard_threshold:0}};function bC(a,b){return 1/C(a,1,b.tileZoom)}function bD(a,b,c,d){return a.translatePosMatrix(d||b.tileID.projMatrix,b,c.paint.get("line-translate"),c.paint.get("line-translate-anchor"))}function bE(a){const b=a.paint.get("line-dasharray").value;return b.value||"constant"!==b.kind}const bF=(a,b,c,d,f,g)=>{var h,i;return{u_matrix:a,u_tl_parent:b,u_scale_parent:c,u_fade_t:d.mix,u_opacity:d.opacity*f.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:f.paint.get("raster-brightness-min"),u_brightness_high:f.paint.get("raster-brightness-max"),u_saturation_factor:(i=f.paint.get("raster-saturation"))>0?1-1/(1.001-i):-i,u_contrast_factor:(h=f.paint.get("raster-contrast"))>0?1/(1-h):1+h,u_spin_weights:bG(f.paint.get("raster-hue-rotate")),u_perspective_transform:g}};function bG(a){a*=Math.PI/180;const b=Math.sin(a),c=Math.cos(a);return[(2*c+1)/3,(-Math.sqrt(3)*b-c+1)/3,(Math.sqrt(3)*b-c+1)/3,]}const bH=(a,b,c,d,f,g,h,i,j,k,l,m,n,o)=>{const p=f.transform;return{u_is_size_zoom_constant:+("constant"===a||"source"===a),u_is_size_feature_constant:+("constant"===a||"camera"===a),u_size_t:b?b.uSizeT:0,u_size:b?b.uSize:0,u_camera_to_center_distance:p.cameraToCenterDistance,u_pitch:p.pitch/360*2*Math.PI,u_rotate_symbol:+c,u_aspect_ratio:p.width/p.height,u_fade_change:f.options.fadeDuration?f.symbolFadeChange:1,u_matrix:g,u_label_plane_matrix:h,u_coord_matrix:i,u_is_text:+j,u_pitch_with_map:+d,u_texsize:k,u_tile_id:l,u_zoom_transition:m,u_inv_rot_matrix:n,u_merc_center:o,u_texture:0}},bI=(b,c,d,f,g,h,i,j,k,l,m,n,o,p,q)=>{const{cameraToCenterDistance:r,_pitch:s}=g.transform;return a.extend(bH(b,c,d,f,g,h,i,j,k,l,n,o,p,q),{u_gamma_scale:f?r*Math.cos(g.terrain?0:s):1,u_device_pixel_ratio:a.exported.devicePixelRatio,u_is_halo:+m})},bJ=(b,c,d,f,g,h,i,j,k,l,m,n,o,p)=>a.extend(bI(b,c,d,f,g,h,i,j,!0,k,!0,m,n,o,p),{u_texsize_icon:l,u_texture_icon:1}),bK=(a,b,c)=>({u_matrix:a,u_opacity:b,u_color:c}),bL=(b,c,d,f,g,h)=>a.extend(function(a,b,c,d){const f=c.imageManager.getPattern(a.from.toString()),g=c.imageManager.getPattern(a.to.toString()),{width:h,height:i}=c.imageManager.getPixelSize(),j=Math.pow(2,d.tileID.overscaledZ),k=d.tileSize*Math.pow(2,c.transform.tileZoom)/j,l=k*(d.tileID.canonical.x+d.tileID.wrap*j),m=k*d.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:f.tl,u_pattern_br_a:f.br,u_pattern_tl_b:g.tl,u_pattern_br_b:g.br,u_texsize:[h,i],u_mix:b.t,u_pattern_size_a:f.displaySize,u_pattern_size_b:g.displaySize,u_scale_a:b.fromScale,u_scale_b:b.toScale,u_tile_units_to_pixels:1/C(d,1,c.transform.tileZoom),u_pixel_coord_upper:[l>>16,m>>16,],u_pixel_coord_lower:[65535&l,65535&m,]}}(f,h,d,g),{u_matrix:b,u_opacity:c}),bM={fillExtrusion:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_lightpos:new a.Uniform3f(b,c.u_lightpos),u_lightintensity:new a.Uniform1f(b,c.u_lightintensity),u_lightcolor:new a.Uniform3f(b,c.u_lightcolor),u_vertical_gradient:new a.Uniform1f(b,c.u_vertical_gradient),u_opacity:new a.Uniform1f(b,c.u_opacity)}),fillExtrusionPattern:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_lightpos:new a.Uniform3f(b,c.u_lightpos),u_lightintensity:new a.Uniform1f(b,c.u_lightintensity),u_lightcolor:new a.Uniform3f(b,c.u_lightcolor),u_vertical_gradient:new a.Uniform1f(b,c.u_vertical_gradient),u_height_factor:new a.Uniform1f(b,c.u_height_factor),u_image:new a.Uniform1i(b,c.u_image),u_texsize:new a.Uniform2f(b,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(b,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(b,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(b,c.u_scale),u_fade:new a.Uniform1f(b,c.u_fade),u_opacity:new a.Uniform1f(b,c.u_opacity)}),fill:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix)}),fillPattern:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_image:new a.Uniform1i(b,c.u_image),u_texsize:new a.Uniform2f(b,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(b,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(b,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(b,c.u_scale),u_fade:new a.Uniform1f(b,c.u_fade)}),fillOutline:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_world:new a.Uniform2f(b,c.u_world)}),fillOutlinePattern:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_world:new a.Uniform2f(b,c.u_world),u_image:new a.Uniform1i(b,c.u_image),u_texsize:new a.Uniform2f(b,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(b,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(b,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(b,c.u_scale),u_fade:new a.Uniform1f(b,c.u_fade)}),circle:(b,c)=>({u_camera_to_center_distance:new a.Uniform1f(b,c.u_camera_to_center_distance),u_extrude_scale:new a.UniformMatrix2f(b,c.u_extrude_scale),u_device_pixel_ratio:new a.Uniform1f(b,c.u_device_pixel_ratio),u_matrix:new a.UniformMatrix4f(b,c.u_matrix)}),collisionBox:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_camera_to_center_distance:new a.Uniform1f(b,c.u_camera_to_center_distance),u_extrude_scale:new a.Uniform2f(b,c.u_extrude_scale)}),collisionCircle:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_inv_matrix:new a.UniformMatrix4f(b,c.u_inv_matrix),u_camera_to_center_distance:new a.Uniform1f(b,c.u_camera_to_center_distance),u_viewport_size:new a.Uniform2f(b,c.u_viewport_size)}),debug:(b,c)=>({u_color:new a.UniformColor(b,c.u_color),u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_overlay:new a.Uniform1i(b,c.u_overlay),u_overlay_scale:new a.Uniform1f(b,c.u_overlay_scale)}),clippingMask:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix)}),heatmap:(b,c)=>({u_extrude_scale:new a.Uniform1f(b,c.u_extrude_scale),u_intensity:new a.Uniform1f(b,c.u_intensity),u_matrix:new a.UniformMatrix4f(b,c.u_matrix)}),heatmapTexture:(b,c)=>({u_image:new a.Uniform1i(b,c.u_image),u_color_ramp:new a.Uniform1i(b,c.u_color_ramp),u_opacity:new a.Uniform1f(b,c.u_opacity)}),hillshade:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_image:new a.Uniform1i(b,c.u_image),u_latrange:new a.Uniform2f(b,c.u_latrange),u_light:new a.Uniform2f(b,c.u_light),u_shadow:new a.UniformColor(b,c.u_shadow),u_highlight:new a.UniformColor(b,c.u_highlight),u_accent:new a.UniformColor(b,c.u_accent)}),hillshadePrepare:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_image:new a.Uniform1i(b,c.u_image),u_dimension:new a.Uniform2f(b,c.u_dimension),u_zoom:new a.Uniform1f(b,c.u_zoom),u_unpack:new a.Uniform4f(b,c.u_unpack)}),line:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_pixels_to_tile_units:new a.UniformMatrix2f(b,c.u_pixels_to_tile_units),u_device_pixel_ratio:new a.Uniform1f(b,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(b,c.u_units_to_pixels),u_dash_image:new a.Uniform1i(b,c.u_dash_image),u_gradient_image:new a.Uniform1i(b,c.u_gradient_image),u_image_height:new a.Uniform1f(b,c.u_image_height),u_texsize:new a.Uniform2f(b,c.u_texsize),u_scale:new a.Uniform3f(b,c.u_scale),u_mix:new a.Uniform1f(b,c.u_mix),u_alpha_discard_threshold:new a.Uniform1f(b,c.u_alpha_discard_threshold)}),linePattern:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_texsize:new a.Uniform2f(b,c.u_texsize),u_pixels_to_tile_units:new a.UniformMatrix2f(b,c.u_pixels_to_tile_units),u_device_pixel_ratio:new a.Uniform1f(b,c.u_device_pixel_ratio),u_image:new a.Uniform1i(b,c.u_image),u_units_to_pixels:new a.Uniform2f(b,c.u_units_to_pixels),u_scale:new a.Uniform3f(b,c.u_scale),u_fade:new a.Uniform1f(b,c.u_fade),u_alpha_discard_threshold:new a.Uniform1f(b,c.u_alpha_discard_threshold)}),raster:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_tl_parent:new a.Uniform2f(b,c.u_tl_parent),u_scale_parent:new a.Uniform1f(b,c.u_scale_parent),u_fade_t:new a.Uniform1f(b,c.u_fade_t),u_opacity:new a.Uniform1f(b,c.u_opacity),u_image0:new a.Uniform1i(b,c.u_image0),u_image1:new a.Uniform1i(b,c.u_image1),u_brightness_low:new a.Uniform1f(b,c.u_brightness_low),u_brightness_high:new a.Uniform1f(b,c.u_brightness_high),u_saturation_factor:new a.Uniform1f(b,c.u_saturation_factor),u_contrast_factor:new a.Uniform1f(b,c.u_contrast_factor),u_spin_weights:new a.Uniform3f(b,c.u_spin_weights),u_perspective_transform:new a.Uniform2f(b,c.u_perspective_transform)}),symbolIcon:(b,c)=>({u_is_size_zoom_constant:new a.Uniform1i(b,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(b,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(b,c.u_size_t),u_size:new a.Uniform1f(b,c.u_size),u_camera_to_center_distance:new a.Uniform1f(b,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(b,c.u_pitch),u_rotate_symbol:new a.Uniform1i(b,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(b,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(b,c.u_fade_change),u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(b,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(b,c.u_coord_matrix),u_is_text:new a.Uniform1i(b,c.u_is_text),u_pitch_with_map:new a.Uniform1i(b,c.u_pitch_with_map),u_texsize:new a.Uniform2f(b,c.u_texsize),u_tile_id:new a.Uniform3f(b,c.u_tile_id),u_zoom_transition:new a.Uniform1f(b,c.u_zoom_transition),u_inv_rot_matrix:new a.UniformMatrix4f(b,c.u_inv_rot_matrix),u_merc_center:new a.Uniform2f(b,c.u_merc_center),u_texture:new a.Uniform1i(b,c.u_texture)}),symbolSDF:(b,c)=>({u_is_size_zoom_constant:new a.Uniform1i(b,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(b,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(b,c.u_size_t),u_size:new a.Uniform1f(b,c.u_size),u_camera_to_center_distance:new a.Uniform1f(b,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(b,c.u_pitch),u_rotate_symbol:new a.Uniform1i(b,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(b,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(b,c.u_fade_change),u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(b,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(b,c.u_coord_matrix),u_is_text:new a.Uniform1i(b,c.u_is_text),u_pitch_with_map:new a.Uniform1i(b,c.u_pitch_with_map),u_texsize:new a.Uniform2f(b,c.u_texsize),u_texture:new a.Uniform1i(b,c.u_texture),u_gamma_scale:new a.Uniform1f(b,c.u_gamma_scale),u_device_pixel_ratio:new a.Uniform1f(b,c.u_device_pixel_ratio),u_tile_id:new a.Uniform3f(b,c.u_tile_id),u_zoom_transition:new a.Uniform1f(b,c.u_zoom_transition),u_inv_rot_matrix:new a.UniformMatrix4f(b,c.u_inv_rot_matrix),u_merc_center:new a.Uniform2f(b,c.u_merc_center),u_is_halo:new a.Uniform1i(b,c.u_is_halo)}),symbolTextAndIcon:(b,c)=>({u_is_size_zoom_constant:new a.Uniform1i(b,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(b,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(b,c.u_size_t),u_size:new a.Uniform1f(b,c.u_size),u_camera_to_center_distance:new a.Uniform1f(b,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(b,c.u_pitch),u_rotate_symbol:new a.Uniform1i(b,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(b,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(b,c.u_fade_change),u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(b,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(b,c.u_coord_matrix),u_is_text:new a.Uniform1i(b,c.u_is_text),u_pitch_with_map:new a.Uniform1i(b,c.u_pitch_with_map),u_texsize:new a.Uniform2f(b,c.u_texsize),u_texsize_icon:new a.Uniform2f(b,c.u_texsize_icon),u_texture:new a.Uniform1i(b,c.u_texture),u_texture_icon:new a.Uniform1i(b,c.u_texture_icon),u_gamma_scale:new a.Uniform1f(b,c.u_gamma_scale),u_device_pixel_ratio:new a.Uniform1f(b,c.u_device_pixel_ratio),u_is_halo:new a.Uniform1i(b,c.u_is_halo)}),background:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_opacity:new a.Uniform1f(b,c.u_opacity),u_color:new a.UniformColor(b,c.u_color)}),backgroundPattern:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_opacity:new a.Uniform1f(b,c.u_opacity),u_image:new a.Uniform1i(b,c.u_image),u_pattern_tl_a:new a.Uniform2f(b,c.u_pattern_tl_a),u_pattern_br_a:new a.Uniform2f(b,c.u_pattern_br_a),u_pattern_tl_b:new a.Uniform2f(b,c.u_pattern_tl_b),u_pattern_br_b:new a.Uniform2f(b,c.u_pattern_br_b),u_texsize:new a.Uniform2f(b,c.u_texsize),u_mix:new a.Uniform1f(b,c.u_mix),u_pattern_size_a:new a.Uniform2f(b,c.u_pattern_size_a),u_pattern_size_b:new a.Uniform2f(b,c.u_pattern_size_b),u_scale_a:new a.Uniform1f(b,c.u_scale_a),u_scale_b:new a.Uniform1f(b,c.u_scale_b),u_pixel_coord_upper:new a.Uniform2f(b,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(b,c.u_pixel_coord_lower),u_tile_units_to_pixels:new a.Uniform1f(b,c.u_tile_units_to_pixels)}),terrainRaster:a9,terrainDepth:a9,skybox:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_sun_direction:new a.Uniform3f(b,c.u_sun_direction),u_cubemap:new a.Uniform1i(b,c.u_cubemap),u_opacity:new a.Uniform1f(b,c.u_opacity),u_temporal_offset:new a.Uniform1f(b,c.u_temporal_offset)}),skyboxGradient:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_color_ramp:new a.Uniform1i(b,c.u_color_ramp),u_center_direction:new a.Uniform3f(b,c.u_center_direction),u_radius:new a.Uniform1f(b,c.u_radius),u_opacity:new a.Uniform1f(b,c.u_opacity),u_temporal_offset:new a.Uniform1f(b,c.u_temporal_offset)}),skyboxCapture:(b,c)=>({u_matrix_3f:new a.UniformMatrix3f(b,c.u_matrix_3f),u_sun_direction:new a.Uniform3f(b,c.u_sun_direction),u_sun_intensity:new a.Uniform1f(b,c.u_sun_intensity),u_color_tint_r:new a.Uniform4f(b,c.u_color_tint_r),u_color_tint_m:new a.Uniform4f(b,c.u_color_tint_m),u_luminance:new a.Uniform1f(b,c.u_luminance)}),globeRaster:(b,c)=>({u_proj_matrix:new a.UniformMatrix4f(b,c.u_proj_matrix),u_globe_matrix:new a.UniformMatrix4f(b,c.u_globe_matrix),u_merc_matrix:new a.UniformMatrix4f(b,c.u_merc_matrix),u_zoom_transition:new a.Uniform1f(b,c.u_zoom_transition),u_merc_center:new a.Uniform2f(b,c.u_merc_center),u_image0:new a.Uniform1i(b,c.u_image0)}),globeAtmosphere:(b,c)=>({u_center:new a.Uniform2f(b,c.u_center),u_radius:new a.Uniform1f(b,c.u_radius),u_screen_size:new a.Uniform2f(b,c.u_screen_size),u_pixel_ratio:new a.Uniform1f(b,c.u_pixel_ratio),u_opacity:new a.Uniform1f(b,c.u_opacity),u_fadeout_range:new a.Uniform1f(b,c.u_fadeout_range),u_start_color:new a.Uniform3f(b,c.u_start_color),u_end_color:new a.Uniform3f(b,c.u_end_color)})};let bN;function bO(b,c,d,f,g,h,i){var j;const k=b.context,l=k.gl,m=b.useProgram("collisionBox"),n=[];let o=0,p=0;for(let q=0;q0){const y=a.create(),z=v;a.mul(y,u.placementInvProjMatrix,b.transform.glCoordMatrix),a.mul(y,y,u.placementViewportMatrix),n.push({circleArray:x,circleOffset:p,transform:z,invTransform:y}),o+=x.length/4,p=o}w&&(b.terrain&&b.terrain.setupElevationDraw(s,m),m.draw(k,l.LINES,a.DepthMode.disabled,a.StencilMode.disabled,b.colorModeForRenderPass(),a.CullFaceMode.disabled,bx(v,b.transform,s),d.id,w.layoutVertexBuffer,w.indexBuffer,w.segments,null,b.transform.zoom,null,w.collisionVertexBuffer,w.collisionVertexBufferExt))}if(!i||!n.length)return;const A=b.useProgram("collisionCircle"),B=new a.StructArrayLayout2f1f2i16;B.resize(4*o),B._trim();let C=0;for(const D of n)for(let E=0;E[0,0,0];p.clear();for(let w=0;w=0&&(r[x.associatedIconIndex]={shiftedAnchor:L,angle:M})}else aC(x.numGlyphs,p)}if(m){q.clear();const O=b.icon.placedSymbolArray;for(let P=0;P[0,0,0];au(I,G.projMatrix,b,g,$,aa,u,l,ae,G)}const af=b.translatePosMatrix(G.projMatrix,H,h,i),ag=v||g&&B||ac?bP:$,ah=b.translatePosMatrix(aa,H,h,i,!0),ai=L&&0!==d.paint.get(g?"text-halo-width":"icon-halo-width").constantOr(1);let aj;const ak=r.createInversionMatrix(G.toUnwrapped());aj=L?I.iconsInText?bJ(M.kind,P,w,u,b,af,ag,ah,R,V,Q,D,ak,A):bI(M.kind,P,w,u,b,af,ag,ah,g,R,!0,Q,D,ak,A):bH(M.kind,P,w,u,b,af,ag,ah,g,R,Q,D,ak,A);const al={program:O,buffers:J,uniformValues:aj,atlasTexture:S,atlasTextureIcon:W,atlasInterpolation:T,atlasInterpolationIcon:U,isSDF:L,hasHalo:ai,tile:H,labelPlaneMatrixInv:_};if(x&&I.canOverlap){y=!0;const am=J.segments.get();for(const an of am)E.push({segments:new a.SegmentVector([an]),sortKey:an.sortKey,state:al})}else E.push({segments:J.segments,sortKey:0,state:al})}for(const ao of(y&&E.sort((a,b)=>a.sortKey-b.sortKey),E)){const ar=ao.state;if(b.terrain&&b.terrain.setupElevationDraw(ar.tile,ar.program,{useDepthForOcclusion:!C,labelPlaneMatrixInv:ar.labelPlaneMatrixInv}),o.activeTexture.set(p.TEXTURE0),ar.atlasTexture.bind(ar.atlasInterpolation,p.CLAMP_TO_EDGE),ar.atlasTextureIcon&&(o.activeTexture.set(p.TEXTURE1),ar.atlasTextureIcon&&ar.atlasTextureIcon.bind(ar.atlasInterpolationIcon,p.CLAMP_TO_EDGE)),ar.isSDF){const as=ar.uniformValues;ar.hasHalo&&(as.u_is_halo=1,bU(ar.buffers,ao.segments,d,b,ar.program,z,m,n,as)),as.u_is_halo=0}bU(ar.buffers,ao.segments,d,b,ar.program,z,m,n,ar.uniformValues)}}function bU(b,c,d,f,g,h,i,j,k){const l=f.context;g.draw(l,l.gl.TRIANGLES,h,i,j,a.CullFaceMode.disabled,k,d.id,b.layoutVertexBuffer,b.indexBuffer,c,d.paint,f.transform.zoom,b.programConfigurations.get(d.id),b.dynamicLayoutVertexBuffer,b.opacityVertexBuffer)}function bV(b,c,d,f,g,h,i){const j=b.context.gl,k=d.paint.get("fill-pattern"),l=k&&k.constantOr(1),m=d.getCrossfadeParameters();let n,o,p,q,r;for(const s of(i?(o=l&&!d.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",n=j.LINES):(o=l?"fillPattern":"fill",n=j.TRIANGLES),f)){const u=c.getTile(s);if(l&&!u.patternsLoaded())continue;const v=u.getBucket(d);if(!v)continue;b.prepareDrawTile(s);const w=v.programConfigurations.get(d.id),x=b.useProgram(o,w);l&&(b.context.activeTexture.set(j.TEXTURE0),u.imageAtlasTexture.bind(j.LINEAR,j.CLAMP_TO_EDGE),w.updatePaintBuffers(m));const y=k.constantOr(null);if(y&&u.imageAtlas){const z=u.imageAtlas,A=z.patternPositions[y.to.toString()],B=z.patternPositions[y.from.toString()];A&&B&&w.setConstantPatternPositions(A,B)}const C=b.translatePosMatrix(s.projMatrix,u,d.paint.get("fill-translate"),d.paint.get("fill-translate-anchor"));if(i){q=v.indexBuffer2,r=v.segments2;const D=b.terrain&&b.terrain.renderingToTexture?b.terrain.drapeBufferSize:[j.drawingBufferWidth,j.drawingBufferHeight,];p="fillOutlinePattern"===o&&l?bu(C,b,m,u,D):bt(C,D)}else q=v.indexBuffer,r=v.segments,p=l?bs(C,b,m,u):br(C);b.prepareDrawProgram(b.context,x,s.toUnwrapped()),x.draw(b.context,n,g,b.stencilModeForClipping(s),h,a.CullFaceMode.disabled,p,d.id,v.layoutVertexBuffer,q,r,d.paint,b.transform.zoom,w)}}function bW(b,c,d,f,g,h,i){const j=b.context,k=j.gl,l=d.paint.get("fill-extrusion-pattern"),m=l.constantOr(1),n=d.getCrossfadeParameters(),o=d.paint.get("fill-extrusion-opacity");for(const p of f){const q=c.getTile(p),r=q.getBucket(d);if(!r)continue;const s=r.programConfigurations.get(d.id),u=b.useProgram(m?"fillExtrusionPattern":"fillExtrusion",s);if(b.terrain){const v=b.terrain;if(!r.enableTerrain)continue;if(v.setupElevationDraw(q,u,{useMeterToDem:!0}),bX(j,c,p,r,d,v),!r.centroidVertexBuffer){const w=u.attributes.a_centroid_pos;void 0!==w&&k.vertexAttrib2f(w,0,0)}}m&&(b.context.activeTexture.set(k.TEXTURE0),q.imageAtlasTexture.bind(k.LINEAR,k.CLAMP_TO_EDGE),s.updatePaintBuffers(n));const x=l.constantOr(null);if(x&&q.imageAtlas){const y=q.imageAtlas,z=y.patternPositions[x.to.toString()],A=y.patternPositions[x.from.toString()];z&&A&&s.setConstantPatternPositions(z,A)}const B=b.translatePosMatrix(p.projMatrix,q,d.paint.get("fill-extrusion-translate"),d.paint.get("fill-extrusion-translate-anchor")),C=d.paint.get("fill-extrusion-vertical-gradient"),D=m?bq(B,b,C,o,p,n,q):bp(B,b,C,o);b.prepareDrawProgram(j,u,p.toUnwrapped()),u.draw(j,j.gl.TRIANGLES,g,h,i,a.CullFaceMode.backCCW,D,d.id,r.layoutVertexBuffer,r.indexBuffer,r.segments,d.paint,b.transform.zoom,s,b.terrain?r.centroidVertexBuffer:null)}}function bX(b,c,d,f,g,h){const i=[b=>{let c=b.canonical.x-1,d=b.wrap;return c<0&&(c=(1<{let c=b.canonical.x+1,d=b.wrap;return c===1<new a.OverscaledTileID(b.overscaledZ,b.wrap,b.canonical.z,b.canonical.x,(0===b.canonical.y?1<new a.OverscaledTileID(b.overscaledZ,b.wrap,b.canonical.z,b.canonical.x,b.canonical.y===(1<{const b=c.getSource().maxzoom,d=a=>{const b=c.getTileByID(a);if(b&&b.hasData())return b.getBucket(g)};let f,h,i;return(a.overscaledZ===a.canonical.z||a.overscaledZ>=b)&&(f=d(a.key)),a.overscaledZ>=b&&(h=d(a.calculateScaledKey(a.overscaledZ+1))),a.overscaledZ>b&&(i=d(a.calculateScaledKey(a.overscaledZ-1))),f||h||i},k=[0,0,0],l=(b,c)=>(k[0]=Math.min(b.min.y,c.min.y),k[1]=Math.max(b.max.y,c.max.y),k[2]=a.EXTENT-c.min.x>b.max.x?c.min.x-a.EXTENT:b.max.x,k),m=(b,c)=>(k[0]=Math.min(b.min.x,c.min.x),k[1]=Math.max(b.max.x,c.max.x),k[2]=a.EXTENT-c.min.y>b.max.y?c.min.y-a.EXTENT:b.max.y,k),n=[(a,b)=>l(a,b),(a,b)=>l(b,a),(a,b)=>m(a,b),(a,b)=>m(b,a),],o=new a.pointGeometry(0,0);let p,q,r;const s=(b,c,f,g,i)=>{const j=[[g?f:b,g?b:f,0],[g?f:c,g?c:f,0],],k=i<0?a.EXTENT+i:i,l=[g?k:(b+c)/2,g?(b+c)/2:k,0,];return 0===f&&i<0||0!==f&&i>0?h.getForTilePoints(r,[l],!0,q):j.push(l),h.getForTilePoints(d,j,!0,p),Math.max(j[0][2],j[1][2],l[2])/h.exaggeration()};for(let u=0;u<4;u++){const v=f.borders[u];if(0===v.length&&(f.borderDone[u]=!0),f.borderDone[u])continue;const w=r=i[u](d),x=j(w);if(!x||!x.enableTerrain||!(q=h.findDEMTileFor(w))||!q.dem)continue;if(!p){const y=h.findDEMTileFor(d);if(!y||!y.dem)return;p=y}const z=(u<2?1:5)-u,A=x.borders[z];let B=0;for(let C=0;CE[0]+3);)x.borderDone[z]||x.encodeCentroid(void 0,F,!1),B++;if(F&&BE[1]-3)&&(H++,++B!==A.length);)F=x.featuresOnBorder[A[B]];if(F=x.featuresOnBorder[A[G]],D.intersectsCount()>1||F.intersectsCount()>1||1!==H){1!==H&&(B=G),f.encodeCentroid(void 0,D,!1),x.borderDone[z]||x.encodeCentroid(void 0,F,!1);continue}const I=n[u](D,F),J=u%2?a.EXTENT-1:0;o.x=s(I[0],Math.min(a.EXTENT-1,I[1]),J,u<2,I[2]),o.y=0,f.encodeCentroid(o,D,!1),x.borderDone[z]||x.encodeCentroid(o,F,!1)}else f.encodeCentroid(void 0,D,!1)}f.borderDone[u]=f.needsCentroidUpdate=!0,x.borderDone[z]||(x.borderDone[z]=x.needsCentroidUpdate=!0)}(f.needsCentroidUpdate|| !f.centroidVertexBuffer&&0!==f.centroidVertexArray.length)&&f.uploadCentroid(b)}const bY=new a.Color(1,0,0,1),bZ=new a.Color(0,1,0,1),b$=new a.Color(0,0,1,1),b_=new a.Color(1,0,1,1),b0=new a.Color(0,1,1,1);function b1(a,b,c,d){b3(a,0,b+c/2,a.transform.width,c,d)}function b2(a,b,c,d){b3(a,b-c/2,0,c,a.transform.height,d)}function b3(b,c,d,f,g,h){const i=b.context,j=i.gl;j.enable(j.SCISSOR_TEST),j.scissor(c*a.exported.devicePixelRatio,d*a.exported.devicePixelRatio,f*a.exported.devicePixelRatio,g*a.exported.devicePixelRatio),i.clear({color:h}),j.disable(j.SCISSOR_TEST)}function b4(b,c,d){const f=b.context,g=f.gl,h=d.projMatrix,i=b.useProgram("debug"),j=c.getTileByID(d.key);b.terrain&&b.terrain.setupElevationDraw(j,i);const k=a.DepthMode.disabled,l=a.StencilMode.disabled,m=b.colorModeForRenderPass(),n="$debug";f.activeTexture.set(g.TEXTURE0),b.emptyTexture.bind(g.LINEAR,g.CLAMP_TO_EDGE),j._makeDebugTileBoundsBuffers(b.context,b.transform.projection);const o=j._tileDebugBuffer||b.debugBuffer,p=j._tileDebugIndexBuffer||b.debugIndexBuffer,q=j._tileDebugSegments||b.debugSegments;i.draw(f,g.LINE_STRIP,k,l,m,a.CullFaceMode.disabled,by(h,a.Color.red),n,o,p,q);const r=j.latestRawTileData,s=Math.floor((r&&r.byteLength||0)/1024),u=c.getTile(d).tileSize,v=512/Math.min(u,512)*(d.overscaledZ/b.transform.zoom)*.5;let w=d.canonical.toString();d.overscaledZ!==d.canonical.z&&(w+=` => ${d.overscaledZ}`),function(a,b){a.initDebugOverlayCanvas();const c=a.debugOverlayCanvas,d=a.context.gl,f=a.debugOverlayCanvas.getContext("2d");f.clearRect(0,0,c.width,c.height),f.shadowColor="white",f.shadowBlur=2,f.lineWidth=1.5,f.strokeStyle="white",f.textBaseline="top",f.font="bold 36px Open Sans, sans-serif",f.fillText(b,5,5),f.strokeText(b,5,5),a.debugOverlayTexture.update(c),a.debugOverlayTexture.bind(d.LINEAR,d.CLAMP_TO_EDGE)}(b,`${w} ${s}kb`),i.draw(f,g.TRIANGLES,k,l,a.ColorMode.alphaBlended,a.CullFaceMode.disabled,by(h,a.Color.transparent,v),n,b.debugBuffer,b.quadTriangleIndexBuffer,b.debugSegments)}const b5=a.createLayout([{name:"a_pos_3f",components:3,type:"Float32"},]),{members:b6}=b5;function b7(a,b,c,d){a.emplaceBack(b,c,d)}class b8{constructor(b){this.vertexArray=new a.StructArrayLayout3f12,this.indices=new a.StructArrayLayout3ui6,b7(this.vertexArray,-1,-1,1),b7(this.vertexArray,1,-1,1),b7(this.vertexArray,-1,1,1),b7(this.vertexArray,1,1,1),b7(this.vertexArray,-1,-1,-1),b7(this.vertexArray,1,-1,-1),b7(this.vertexArray,-1,1,-1),b7(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=b.createVertexBuffer(this.vertexArray,b6),this.indexBuffer=b.createIndexBuffer(this.indices),this.segment=a.SegmentVector.simpleSegment(0,0,36,12)}}function b9(b,c,d,f,g,h){var i,j,k,l,m;const n=b.gl,o=c.paint.get("sky-atmosphere-color"),p=c.paint.get("sky-atmosphere-halo-color"),q=c.paint.get("sky-atmosphere-sun-intensity"),r=(i=a.fromMat4([],f),j=g,k=q,l=o,m=p,{u_matrix_3f:i,u_sun_direction:j,u_sun_intensity:k,u_color_tint_r:[l.r,l.g,l.b,l.a],u_color_tint_m:[m.r,m.g,m.b,m.a],u_luminance:5e-5});n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_CUBE_MAP_POSITIVE_X+h,c.skyboxTexture,0),d.draw(b,n.TRIANGLES,a.DepthMode.disabled,a.StencilMode.disabled,a.ColorMode.unblended,a.CullFaceMode.frontCW,r,"skyboxCapture",c.skyboxGeometry.vertexBuffer,c.skyboxGeometry.indexBuffer,c.skyboxGeometry.segment)}const ca={symbol:function(b,c,d,f,g){if("translucent"!==b.renderPass)return;const h=a.StencilMode.disabled,i=b.colorModeForRenderPass();d.layout.get("text-variable-anchor")&&function(b,c,d,f,g,h,i){const j=c.transform,k="map"===g,l="map"===h,m=j.projection.createTileTransform(j,j.worldSize);for(const n of b){const o=f.getTile(n),p=o.getBucket(d);if(!p||p.projection!==j.projection.name||!p.text||!p.text.segments.get().length)continue;const q=a.evaluateSizeForZoom(p.textSizeData,j.zoom),r=c.transform.calculatePixelsToTileUnitsMatrix(o),s=ap(n.projMatrix,o.tileID.canonical,l,k,c.transform,r),u="none"!==d.layout.get("icon-text-fit")&&p.hasIconData();if(q){const v=Math.pow(2,j.zoom-o.tileID.overscaledZ);bR(p,k,l,i,a.symbolSize,j,s,n,v,q,u,m)}}}(f,b,d,c,d.layout.get("text-rotation-alignment"),d.layout.get("text-pitch-alignment"),g),0!==d.paint.get("icon-opacity").constantOr(1)&&bT(b,c,d,f,!1,d.paint.get("icon-translate"),d.paint.get("icon-translate-anchor"),d.layout.get("icon-rotation-alignment"),d.layout.get("icon-pitch-alignment"),d.layout.get("icon-keep-upright"),h,i),0!==d.paint.get("text-opacity").constantOr(1)&&bT(b,c,d,f,!0,d.paint.get("text-translate"),d.paint.get("text-translate-anchor"),d.layout.get("text-rotation-alignment"),d.layout.get("text-pitch-alignment"),d.layout.get("text-keep-upright"),h,i),c.map.showCollisionBoxes&&(bO(b,c,d,f,d.paint.get("text-translate"),d.paint.get("text-translate-anchor"),!0),bO(b,c,d,f,d.paint.get("icon-translate"),d.paint.get("icon-translate-anchor"),!1))},circle:function(b,c,d,f){if("translucent"!==b.renderPass)return;const g=d.paint.get("circle-opacity"),h=d.paint.get("circle-stroke-width"),i=d.paint.get("circle-stroke-opacity"),j=void 0!==d.layout.get("circle-sort-key").constantOr(1);if(0===g.constantOr(1)&&(0===h.constantOr(1)||0===i.constantOr(1)))return;const k=b.context,l=k.gl,m=b.depthModeForSublayer(0,a.DepthMode.ReadOnly),n=a.StencilMode.disabled,o=b.colorModeForRenderPass(),p=[];for(let q=0;qa.sortKey-b.sortKey);const A={useDepthForOcclusion:"globe"!==b.transform.projection.name};for(const B of p){const{programConfiguration:C,program:D,layoutVertexBuffer:E,indexBuffer:F,uniformValues:G,tile:H}=B.state,I=B.segments;b.terrain&&b.terrain.setupElevationDraw(H,D,A),b.prepareDrawProgram(k,D,H.tileID.toUnwrapped()),D.draw(k,l.TRIANGLES,m,n,o,a.CullFaceMode.disabled,G,d.id,E,F,I,d.paint,b.transform.zoom,C)}},heatmap:function(b,c,d,f){if(0!==d.paint.get("heatmap-opacity")){if("offscreen"===b.renderPass){const g=b.context,h=g.gl,i=a.StencilMode.disabled,j=new a.ColorMode([h.ONE,h.ONE],a.Color.transparent,[!0,!0,!0,!0]);(function(a,b,c){const d=a.gl;a.activeTexture.set(d.TEXTURE1),a.viewport.set([0,0,b.width/4,b.height/4,]);let f=c.heatmapFbo;if(f)d.bindTexture(d.TEXTURE_2D,f.colorAttachment.get()),a.bindFramebuffer.set(f.framebuffer);else{const g=d.createTexture();d.bindTexture(d.TEXTURE_2D,g),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,d.CLAMP_TO_EDGE),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,d.LINEAR),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,d.LINEAR),f=c.heatmapFbo=a.createFramebuffer(b.width/4,b.height/4,!1),function(a,b,c,d){const f=a.gl;f.texImage2D(f.TEXTURE_2D,0,f.RGBA,b.width/4,b.height/4,0,f.RGBA,a.extRenderToTextureHalfFloat?a.extTextureHalfFloat.HALF_FLOAT_OES:f.UNSIGNED_BYTE,null),d.colorAttachment.set(c)}(a,b,g,f)}})(g,b,d),g.clear({color:a.Color.transparent});for(let k=0;k{const b=[];bE(a)&&b.push("RENDER_LINE_DASH"),a.paint.get("line-gradient")&&b.push("RENDER_LINE_GRADIENT");const c=a.paint.get("line-pattern").constantOr(1),d=1!==a.paint.get("line-opacity").constantOr(1);return!c&&d&&b.push("RENDER_LINE_ALPHA_DISCARD"),b})(d);let w=v.includes("RENDER_LINE_ALPHA_DISCARD");for(const x of(b.terrain&&b.terrain.clipOrMaskOverlapStencilType()&&(w=!1),f)){const y=c.getTile(x);if(o&&!y.patternsLoaded())continue;const z=y.getBucket(d);if(!z)continue;b.prepareDrawTile(x);const A=z.programConfigurations.get(d.id),B=b.useProgram(r,A,v),C=n.constantOr(null);if(C&&y.imageAtlas){const D=y.imageAtlas,E=D.patternPositions[C.to.toString()],F=D.patternPositions[C.from.toString()];E&&F&&A.setConstantPatternPositions(E,F)}const G=k.constantOr(null),H=m.constantOr(null);if(!o&&G&&H&&y.lineAtlas){const I=y.lineAtlas,J=I.getDash(G.to,H),K=I.getDash(G.from,H);J&&K&&A.setConstantPatternPositions(J,K)}const L=b.terrain?x.projMatrix:null,M=o?bB(b,y,d,q,L):bA(b,y,d,q,L,z.lineClipsArray.length);if(p){const N=z.gradients[d.id];let O=N.texture;if(d.gradientVersion!==N.version){let P=256;if(d.stepInterpolant){const Q=c.getSource().maxzoom,R=x.canonical.z===Q?Math.ceil(1<{B.draw(s,u.TRIANGLES,i,c,j,a.CullFaceMode.disabled,M,d.id,z.layoutVertexBuffer,z.indexBuffer,z.segments,d.paint,b.transform.zoom,A,z.layoutVertexBuffer2)};if(w){const T=b.stencilModeForClipping(x).ref;0===T&&b.terrain&&s.clear({stencil:0});const U={func:u.EQUAL,mask:255};M.u_alpha_discard_threshold=.8,S(new a.StencilMode(U,T,255,u.KEEP,u.KEEP,u.INVERT)),M.u_alpha_discard_threshold=0,S(new a.StencilMode(U,T,255,u.KEEP,u.KEEP,u.KEEP))}else S(b.stencilModeForClipping(x))}w&&(b.resetStencilClippingMasks(),b.terrain&&s.clear({stencil:0}))},fill:function(b,c,d,f){const g=d.paint.get("fill-color"),h=d.paint.get("fill-opacity");if(0===h.constantOr(1))return;const i=b.colorModeForRenderPass(),j=d.paint.get("fill-pattern"),k=b.opaquePassEnabledForLayer()&&!j.constantOr(1)&&1===g.constantOr(a.Color.transparent).a&&1===h.constantOr(0)?"opaque":"translucent";if(b.renderPass===k){const l=b.depthModeForSublayer(1,"opaque"===b.renderPass?a.DepthMode.ReadWrite:a.DepthMode.ReadOnly);bV(b,c,d,f,l,i,!1)}if("translucent"===b.renderPass&&d.paint.get("fill-antialias")){const m=b.depthModeForSublayer(d.getPaintProperty("fill-outline-color")?2:0,a.DepthMode.ReadOnly);bV(b,c,d,f,m,i,!0)}},"fill-extrusion":function(b,c,d,f){const g=d.paint.get("fill-extrusion-opacity");if(0!==g&&"translucent"===b.renderPass){const h=new a.DepthMode(b.context.gl.LEQUAL,a.DepthMode.ReadWrite,b.depthRangeFor3D);if(1!==g||d.paint.get("fill-extrusion-pattern").constantOr(1))bW(b,c,d,f,h,a.StencilMode.disabled,a.ColorMode.disabled),bW(b,c,d,f,h,b.stencilModeFor3D(),b.colorModeForRenderPass()),b.resetStencilClippingMasks();else{const i=b.colorModeForRenderPass();bW(b,c,d,f,h,a.StencilMode.disabled,i)}}},hillshade:function(b,c,d,f){if("offscreen"!==b.renderPass&&"translucent"!==b.renderPass)return;const g=b.context,h=b.depthModeForSublayer(0,a.DepthMode.ReadOnly),i=b.colorModeForRenderPass(),j=b.terrain&&b.terrain.renderingToTexture,[k,l]="translucent"!==b.renderPass||j?[{},f]:b.stencilConfigForOverlap(f);for(const m of l){const n=c.getTile(m);if(n.needsHillshadePrepare&&"offscreen"===b.renderPass)a8(b,n,d,h,a.StencilMode.disabled,i);else if("translucent"===b.renderPass){const o=j&&b.terrain?b.terrain.stencilModeForRTTOverlap(m):k[m.overscaledZ];a6(b,m,n,d,h,o,i)}}g.viewport.set([0,0,b.width,b.height]),b.resetStencilClippingMasks()},raster:function(b,c,d,f,g,h){if("translucent"!==b.renderPass||0===d.paint.get("raster-opacity")||!f.length)return;const i=b.context,j=i.gl,k=c.getSource(),l=b.useProgram("raster"),m=b.colorModeForRenderPass(),n=b.terrain&&b.terrain.renderingToTexture,[o,p]=k instanceof S||n?[{},f]:b.stencilConfigForOverlap(f),q=p[p.length-1].overscaledZ,r=!b.options.moving;for(const s of p){const u=n?a.DepthMode.disabled:b.depthModeForSublayer(s.overscaledZ-q,1===d.paint.get("raster-opacity")?a.DepthMode.ReadWrite:a.DepthMode.ReadOnly,j.LESS),v=s.toUnwrapped(),w=c.getTile(s);if(n&&(!w||!w.hasData()))continue;const x=n?s.projMatrix:b.transform.calculateProjMatrix(v,r),y=b.terrain&&n?b.terrain.stencilModeForRTTOverlap(s):o[s.overscaledZ],z=h?0:d.paint.get("raster-fade-duration");w.registerFadeDuration(z);const A=c.findLoadedParent(s,0),B=bh(w,A,c,b.transform,z);let C,D;b.terrain&&b.terrain.prepareDrawTile(s);const E="nearest"===d.paint.get("raster-resampling")?j.NEAREST:j.LINEAR;i.activeTexture.set(j.TEXTURE0),w.texture.bind(E,j.CLAMP_TO_EDGE),i.activeTexture.set(j.TEXTURE1),A?(A.texture.bind(E,j.CLAMP_TO_EDGE),C=Math.pow(2,A.tileID.overscaledZ-w.tileID.overscaledZ),D=[w.tileID.canonical.x*C%1,w.tileID.canonical.y*C%1,]):w.texture.bind(E,j.CLAMP_TO_EDGE);const F=bF(x,D||[0,0],C||1,B,d,k instanceof S?k.perspectiveTransform:[0,0]);if(b.prepareDrawProgram(i,l,v),k instanceof S)l.draw(i,j.TRIANGLES,u,a.StencilMode.disabled,m,a.CullFaceMode.disabled,F,d.id,k.boundsBuffer,b.quadTriangleIndexBuffer,k.boundsSegments);else{const{tileBoundsBuffer:G,tileBoundsIndexBuffer:H,tileBoundsSegments:I}=b.getTileBoundsBuffers(w);l.draw(i,j.TRIANGLES,u,y,m,a.CullFaceMode.disabled,F,d.id,G,H,I)}}b.resetStencilClippingMasks()},background:function(b,c,d,f){const g=d.paint.get("background-color"),h=d.paint.get("background-opacity");if(0===h)return;const i=b.context,j=i.gl,k=b.transform,l=k.tileSize,m=d.paint.get("background-pattern");if(b.isPatternMissing(m))return;const n=!m&&1===g.a&&1===h&&b.opaquePassEnabledForLayer()?"opaque":"translucent";if(b.renderPass!==n)return;const o=a.StencilMode.disabled,p=b.depthModeForSublayer(0,"opaque"===n?a.DepthMode.ReadWrite:a.DepthMode.ReadOnly),q=b.colorModeForRenderPass(),r=b.useProgram(m?"backgroundPattern":"background");let s,u=f;u||(u=Object.values(s=b.getBackgroundTiles()).map(a=>a.tileID)),m&&(i.activeTexture.set(j.TEXTURE0),b.imageManager.bind(b.context));const v=d.getCrossfadeParameters();for(const w of u){const x=w.toUnwrapped(),y=f?w.projMatrix:b.transform.calculateProjMatrix(x);b.prepareDrawTile(w);const z=c?c.getTile(w):s?s[w.key]:new a.Tile(w,l,k.zoom,b),A=m?bL(y,h,b,m,{tileID:w,tileSize:l},v):bK(y,h,g);b.prepareDrawProgram(i,r,x);const{tileBoundsBuffer:B,tileBoundsIndexBuffer:C,tileBoundsSegments:D}=b.getTileBoundsBuffers(z);r.draw(i,j.TRIANGLES,p,o,q,a.CullFaceMode.disabled,A,d.id,B,C,D)}},sky:function(b,c,d){const f=b.transform,g="mercator"===f.projection.name||"globe"===f.projection.name?1:a.smoothstep(7,8,f.zoom),h=d.paint.get("sky-opacity")*g;if(0===h)return;const i=b.context,j=d.paint.get("sky-type"),k=new a.DepthMode(i.gl.LEQUAL,a.DepthMode.ReadOnly,[0,1]),l=b.frameCounter/1e3%1;"atmosphere"===j?"offscreen"===b.renderPass?d.needsSkyboxCapture(b)&&(function(b,c,d,f){const g=b.context,h=g.gl;let i=c.skyboxFbo;if(!i){i=c.skyboxFbo=g.createFramebuffer(32,32,!1),c.skyboxGeometry=new b8(g),c.skyboxTexture=g.gl.createTexture(),h.bindTexture(h.TEXTURE_CUBE_MAP,c.skyboxTexture),h.texParameteri(h.TEXTURE_CUBE_MAP,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_CUBE_MAP,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_CUBE_MAP,h.TEXTURE_MIN_FILTER,h.LINEAR),h.texParameteri(h.TEXTURE_CUBE_MAP,h.TEXTURE_MAG_FILTER,h.LINEAR);for(let j=0;j<6;++j)h.texImage2D(h.TEXTURE_CUBE_MAP_POSITIVE_X+j,0,h.RGBA,32,32,0,h.RGBA,h.UNSIGNED_BYTE,null)}g.bindFramebuffer.set(i.framebuffer),g.viewport.set([0,0,32,32,]);const k=c.getCenter(b,!0),l=b.useProgram("skyboxCapture"),m=new Float64Array(16);a.identity(m),a.rotateY(m,m,-(.5*Math.PI)),b9(g,c,l,m,k,0),a.identity(m),a.rotateY(m,m,.5*Math.PI),b9(g,c,l,m,k,1),a.identity(m),a.rotateX(m,m,-(.5*Math.PI)),b9(g,c,l,m,k,2),a.identity(m),a.rotateX(m,m,.5*Math.PI),b9(g,c,l,m,k,3),a.identity(m),b9(g,c,l,m,k,4),a.identity(m),a.rotateY(m,m,Math.PI),b9(g,c,l,m,k,5),g.viewport.set([0,0,b.width,b.height,])}(b,d),d.markSkyboxValid(b)):"sky"===b.renderPass&&function(b,c,d,f,g){var h,i;const j=b.context,k=j.gl,l=b.transform,m=b.useProgram("skybox");j.activeTexture.set(k.TEXTURE0),k.bindTexture(k.TEXTURE_CUBE_MAP,c.skyboxTexture);const n=(h=l.skyboxMatrix,i=c.getCenter(b,!1),{u_matrix:h,u_sun_direction:i,u_cubemap:0,u_opacity:f,u_temporal_offset:g});b.prepareDrawProgram(j,m),m.draw(j,k.TRIANGLES,d,a.StencilMode.disabled,b.colorModeForRenderPass(),a.CullFaceMode.backCW,n,"skybox",c.skyboxGeometry.vertexBuffer,c.skyboxGeometry.indexBuffer,c.skyboxGeometry.segment)}(b,d,k,h,l):"gradient"===j&&"sky"===b.renderPass&&function(b,c,d,f,g){var h,i,j,k,l;const m=b.context,n=m.gl,o=b.transform,p=b.useProgram("skyboxGradient");c.skyboxGeometry||(c.skyboxGeometry=new b8(m)),m.activeTexture.set(n.TEXTURE0);let q=c.colorRampTexture;q||(q=c.colorRampTexture=new a.Texture(m,c.colorRamp,n.RGBA)),q.bind(n.LINEAR,n.CLAMP_TO_EDGE);const r=(h=o.skyboxMatrix,i=c.getCenter(b,!1),j=c.paint.get("sky-gradient-radius"),k=f,l=g,{u_matrix:h,u_color_ramp:0,u_center_direction:i,u_radius:a.degToRad(j),u_opacity:k,u_temporal_offset:l});b.prepareDrawProgram(m,p),p.draw(m,n.TRIANGLES,d,a.StencilMode.disabled,b.colorModeForRenderPass(),a.CullFaceMode.backCW,r,"skyboxGradient",c.skyboxGeometry.vertexBuffer,c.skyboxGeometry.indexBuffer,c.skyboxGeometry.segment)}(b,d,k,h,l)},debug:function(a,b,c){for(let d=0;db.getOpacity(this.transform.pitch)||.03>b.properties.get("horizon-blend"))return void(this.transform.fogCullDistSq=null);const[c,d]=b.getFovAdjustedRange(this.transform._fov);if(c>d)return void(this.transform.fogCullDistSq=null);const f=c+.78*(d-c);this.transform.fogCullDistSq=f*f}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled?this._terrain:null}resize(b,c){if(this.width=b*a.exported.devicePixelRatio,this.height=c*a.exported.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height,]),this.style)for(const d of this.style.order)this.style._layers[d].resize()}setup(){const b=this.context,c=new a.StructArrayLayout2i4;c.emplaceBack(0,0),c.emplaceBack(a.EXTENT,0),c.emplaceBack(0,a.EXTENT),c.emplaceBack(a.EXTENT,a.EXTENT),this.tileExtentBuffer=b.createVertexBuffer(c,a.posAttributes.members),this.tileExtentSegments=a.SegmentVector.simpleSegment(0,0,4,2);const d=new a.StructArrayLayout2i4;d.emplaceBack(0,0),d.emplaceBack(a.EXTENT,0),d.emplaceBack(0,a.EXTENT),d.emplaceBack(a.EXTENT,a.EXTENT),this.debugBuffer=b.createVertexBuffer(d,a.posAttributes.members),this.debugSegments=a.SegmentVector.simpleSegment(0,0,4,5);const f=new a.StructArrayLayout2i4;f.emplaceBack(-1,-1),f.emplaceBack(1,-1),f.emplaceBack(-1,1),f.emplaceBack(1,1),this.viewportBuffer=b.createVertexBuffer(f,a.posAttributes.members),this.viewportSegments=a.SegmentVector.simpleSegment(0,0,4,2);const g=new a.StructArrayLayout4i8;g.emplaceBack(0,0,0,0),g.emplaceBack(a.EXTENT,0,a.EXTENT,0),g.emplaceBack(0,a.EXTENT,0,a.EXTENT),g.emplaceBack(a.EXTENT,a.EXTENT,a.EXTENT,a.EXTENT),this.mercatorBoundsBuffer=b.createVertexBuffer(g,a.boundsAttributes.members),this.mercatorBoundsSegments=a.SegmentVector.simpleSegment(0,0,4,2);const h=new a.StructArrayLayout3ui6;h.emplaceBack(0,1,2),h.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=b.createIndexBuffer(h);const i=new a.StructArrayLayout1ui2;for(const j of[0,1,3,2,0])i.emplaceBack(j);this.debugIndexBuffer=b.createIndexBuffer(i),this.emptyTexture=new a.Texture(b,{width:1,height:1,data:new Uint8Array([0,0,0,0])},b.gl.RGBA),this.identityMat=a.create();const k=this.context.gl;this.stencilClearMode=new a.StencilMode({func:k.ALWAYS,mask:0},0,255,k.ZERO,k.ZERO,k.ZERO),this.loadTimeStamps.push(a.window.performance.now())}getMercatorTileBoundsBuffers(){return{tileBoundsBuffer:this.mercatorBoundsBuffer,tileBoundsIndexBuffer:this.quadTriangleIndexBuffer,tileBoundsSegments:this.mercatorBoundsSegments}}getTileBoundsBuffers(a){return a._makeTileBoundsBuffers(this.context,this.transform.projection),a._tileBoundsBuffer?{tileBoundsBuffer:a._tileBoundsBuffer,tileBoundsIndexBuffer:a._tileBoundsIndexBuffer,tileBoundsSegments:a._tileBoundsSegments}:this.getMercatorTileBoundsBuffers()}clearStencil(){const b=this.context,c=b.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs={},this.useProgram("clippingMask").draw(b,c.TRIANGLES,a.DepthMode.disabled,this.stencilClearMode,a.ColorMode.disabled,a.CullFaceMode.disabled,bg(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs={})}_renderTileClippingMasks(b,c,d){if(!c||this.currentStencilSource===c.id||!b.isTileClipped()||!d||0===d.length)return;if(this._tileClippingMaskIDs&&!this.terrain){let f=!1;for(const g of d)if(void 0===this._tileClippingMaskIDs[g.key]){f=!0;break}if(!f)return}this.currentStencilSource=c.id;const h=this.context,i=h.gl;this.nextStencilID+d.length>256&&this.clearStencil(),h.setColorMode(a.ColorMode.disabled),h.setDepthMode(a.DepthMode.disabled);const j=this.useProgram("clippingMask");for(const k of(this._tileClippingMaskIDs={},d)){const l=c.getTile(k),m=this._tileClippingMaskIDs[k.key]=this.nextStencilID++,{tileBoundsBuffer:n,tileBoundsIndexBuffer:o,tileBoundsSegments:p}=this.getTileBoundsBuffers(l);j.draw(h,i.TRIANGLES,a.DepthMode.disabled,new a.StencilMode({func:i.ALWAYS,mask:0},m,255,i.KEEP,i.KEEP,i.REPLACE),a.ColorMode.disabled,a.CullFaceMode.disabled,bg(k.projMatrix),"$clipping",n,o,p)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const b=this.nextStencilID++,c=this.context.gl;return new a.StencilMode({func:c.NOTEQUAL,mask:255},b,255,c.KEEP,c.KEEP,c.REPLACE)}stencilModeForClipping(b){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(b);const c=this.context.gl;return new a.StencilMode({func:c.EQUAL,mask:255},this._tileClippingMaskIDs[b.key],0,c.KEEP,c.KEEP,c.REPLACE)}stencilConfigForOverlap(b){const c=this.context.gl,d=b.sort((a,b)=>b.overscaledZ-a.overscaledZ),f=d[d.length-1].overscaledZ,g=d[0].overscaledZ-f+1;if(g>1){this.currentStencilSource=void 0,this.nextStencilID+g>256&&this.clearStencil();const h={};for(let i=0;i=0;this.currentLayer--){const u=this.style._layers[d[this.currentLayer]],v=b._getLayerSourceCache(u);if(u.isSky())continue;const w=v?j[v.id]:void 0;this._renderTileClippingMasks(u,v,w),this.renderLayer(this,v,u,w)}if(this.renderPass="sky",(a.globeToMercatorTransition(this.transform.zoom)>0||"globe"!==this.transform.projection.name)&&this.transform.isHorizonVisible())for(this.currentLayer=0;this.currentLayer{const c=b._getLayerSourceCache(a);c&&!a.isHidden(this.transform.zoom)&&(!C||C.getSource().maxzoom0?b.pop():null}isPatternMissing(a){if(!a)return!1;if(!a.from||!a.to)return!0;const b=this.imageManager.getPattern(a.from.toString()),c=this.imageManager.getPattern(a.to.toString());return!b||!c}currentGlobalDefines(){const a=this.terrain&&this.terrain.renderingToTexture,b=this.style&&this.style.fog,c=[];return this.terrain&&!this.terrain.renderingToTexture&&c.push("TERRAIN"),b&&!a&&0!==b.getOpacity(this.transform.pitch)&&c.push("FOG"),a&&c.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&c.push("OVERDRAW_INSPECTOR"),c}useProgram(a,b,c){this.cache=this.cache||{};const d=this.currentGlobalDefines().concat(c||[]),f=bn.cacheKey(a,d,b);return this.cache[f]||(this.cache[f]=new bn(this.context,a,a3[a],b,bM[a],d)),this.cache[f]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const a=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height,]),this.context.blendEquation.set(a.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=a.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new a.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this._terrain&&this._terrain.destroy(),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}prepareDrawTile(a){this.terrain&&this.terrain.prepareDrawTile(a)}prepareDrawProgram(a,b,c){if(this.terrain&&this.terrain.renderingToTexture)return;const d=this.style.fog;if(d){const f=d.getOpacity(this.transform.pitch);0!==f&&b.setFogUniformValues(a,((a,b,c,d)=>{const f=b.properties.get("color"),g=a.frameCounter/1e3%1,h=[f.r/f.a,f.g/f.a,f.b/f.a,d,];return{u_fog_matrix:c?a.transform.calculateFogTileMatrix(c):a.identityMat,u_fog_range:b.getFovAdjustedRange(a.transform._fov),u_fog_color:h,u_fog_horizon_blend:b.properties.get("horizon-blend"),u_fog_temporal_offset:g}})(this,d,c,f))}}setTileLoadedFlag(a){this.tileLoaded=a}saveCanvasCopy(){this.frameCopies.push(this.canvasCopy()),this.tileLoaded=!1}canvasCopy(){const a=this.context.gl,b=a.createTexture();return a.bindTexture(a.TEXTURE_2D,b),a.copyTexImage2D(a.TEXTURE_2D,0,a.RGBA,0,0,a.drawingBufferWidth,a.drawingBufferHeight,0),b}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;const a=this.style&&this.style.fog;return!!a&&0!==a.getOpacity(this.transform.pitch)}getBackgroundTiles(){const b=this._backgroundTiles,c=this._backgroundTiles={},d=this.transform.coveringTiles({tileSize:512});for(const f of d)c[f.key]=b[f.key]||new a.Tile(f,512,this.transform.tileZoom,this);return c}clearBackgroundTiles(){this._backgroundTiles={}}}class cc{constructor(a=0,b=0,c=0,d=0){if(isNaN(a)||a<0||isNaN(b)||b<0||isNaN(c)||c<0||isNaN(d)||d<0)throw Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=a,this.bottom=b,this.left=c,this.right=d}interpolate(b,c,d){return null!=c.top&&null!=b.top&&(this.top=a.number(b.top,c.top,d)),null!=c.bottom&&null!=b.bottom&&(this.bottom=a.number(b.bottom,c.bottom,d)),null!=c.left&&null!=b.left&&(this.left=a.number(b.left,c.left,d)),null!=c.right&&null!=b.right&&(this.right=a.number(b.right,c.right,d)),this}getCenter(b,c){const d=a.clamp((this.left+b-this.right)/2,0,b),f=a.clamp((this.top+c-this.bottom)/2,0,c);return new a.pointGeometry(d,f)}equals(a){return this.top===a.top&&this.bottom===a.bottom&&this.left===a.left&&this.right===a.right}clone(){return new cc(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function cd(b,c){const d=a.getColumn(b,3);a.fromQuat(b,c),a.setColumn(b,3,d)}function ce(b,c){a.setColumn(b,3,[c[0],c[1],c[2],1])}function cf(b,c){const d=a.identity$1([]);return a.rotateZ$1(d,d,-c),a.rotateX$1(d,d,-b),d}function cg(b,c){const d=[b[0],b[1],0],f=[c[0],c[1],0];if(a.length(d)>=1e-15){const g=a.normalize([],d);a.scale$2(f,g,a.dot(f,g)),c[0]=f[0],c[1]=f[1]}const h=a.cross([],c,b);if(1e-15>a.len(h))return null;const i=Math.atan2(-h[1],h[0]);return cf(Math.atan2(Math.sqrt(b[0]*b[0]+b[1]*b[1]),-b[2]),i)}class ch{constructor(a,b){this.position=a,this.orientation=b}get position(){return this._position}set position(b){this._position=this._renderWorldCopies?function(b){if(!b)return;const c=Array.isArray(b)?new a.MercatorCoordinate(b[0],b[1],b[2]):b;return c.x=a.wrap(c.x,0,1),c}(b):b}lookAtPoint(b,c){if(this.orientation=null,!this.position)return;const d=this._elevation?this._elevation.getAtPointOrZero(a.MercatorCoordinate.fromLngLat(b)):0,f=this.position,g=a.MercatorCoordinate.fromLngLat(b,d),h=[g.x-f.x,g.y-f.y,g.z-f.z];c||(c=[0,0,1]),c[2]=Math.abs(c[2]),this.orientation=cg(h,c)}setPitchBearing(b,c){this.orientation=cf(a.degToRad(b),a.degToRad(-c))}}class ci{constructor(b,c){this._transform=a.identity([]),this._orientation=a.identity$1([]),c&&(this._orientation=c,cd(this._transform,this._orientation)),b&&ce(this._transform,b)}get mercatorPosition(){const b=this.position;return new a.MercatorCoordinate(b[0],b[1],b[2])}get position(){const b=a.getColumn(this._transform,3);return[b[0],b[1],b[2]]}set position(a){ce(this._transform,a)}get orientation(){return this._orientation}set orientation(a){this._orientation=a,cd(this._transform,this._orientation)}getPitchBearing(){const a=this.forward(),b=this.right();return{bearing:Math.atan2(-b[1],b[0]),pitch:Math.atan2(Math.sqrt(a[0]*a[0]+a[1]*a[1]),-a[2])}}setPitchBearing(a,b){this._orientation=cf(a,b),cd(this._transform,this._orientation)}forward(){const b=a.getColumn(this._transform,2);return[-b[0],-b[1],-b[2]]}up(){const b=a.getColumn(this._transform,1);return[-b[0],-b[1],-b[2]]}right(){const b=a.getColumn(this._transform,0);return[b[0],b[1],b[2]]}getCameraToWorld(b,c){const d=new Float64Array(16);return a.invert(d,this.getWorldToCamera(b,c)),d}getWorldToCameraPosition(b,c,d){const f=this.position;a.scale$2(f,f,-b);const g=new Float64Array(16);return a.fromScaling(g,[d,d,d]),a.translate(g,g,f),g[10]*=c,g}getWorldToCamera(b,c){const d=new Float64Array(16),f=new Float64Array(4),g=this.position;return a.conjugate(f,this._orientation),a.scale$2(g,g,-b),a.fromQuat(d,f),a.translate(d,d,g),d[1]*=-1,d[5]*=-1,d[9]*=-1,d[13]*=-1,d[8]*=c,d[9]*=c,d[10]*=c,d[11]*=c,d}getCameraToClipPerspective(b,c,d,f){const g=new Float64Array(16);return a.perspective(g,b,c,d,f),g}getDistanceToElevation(b){const c=0===b?0:a.mercatorZfromAltitude(b,this.position[1]),d=this.forward();return(c-this.position[2])/d[2]}clone(){return new ci([...this.position],[...this.orientation])}}function cj(b,c){const d=cl(b),f=function(b,c,d,f,g){const h=new a.LngLat(d.lng-180*cm,d.lat),i=new a.LngLat(d.lng+180*cm,d.lat),j=b.project(h.lng,h.lat),k=b.project(i.lng,i.lat),l=-Math.atan2(k.y-j.y,k.x-j.x),m=a.MercatorCoordinate.fromLngLat(d);m.y=a.clamp(m.y,-0.999975,.999975);const n=m.toLngLat(),o=b.project(n.lng,n.lat),p=a.MercatorCoordinate.fromLngLat(n);p.x+=cm;const q=p.toLngLat(),r=b.project(q.lng,q.lat),s=co(r.x-o.x,r.y-o.y,l),u=a.MercatorCoordinate.fromLngLat(n);u.y+=cm;const v=u.toLngLat(),w=b.project(v.lng,v.lat),x=co(w.x-o.x,w.y-o.y,l),y=Math.abs(s.x)/Math.abs(x.y),z=a.identity([]);a.rotateZ(z,z,-l*(1-(g?0:f)));const A=a.identity([]);return a.scale(A,A,[1,1-(1-y)*f,1]),A[4]=-x.x/x.y*f,a.rotateZ(A,A,l),a.multiply$1(A,z,A),A}(b.projection,0,b.center,d,c),g=ck(b);return a.scale(f,f,[g,g,1]),f}function ck(b){const c=b.projection,d=cl(b),f=cn(c,b.center),g=cn(c,a.LngLat.convert(c.center));return Math.pow(2,f*d+(1-d)*g)}function cl(b){const c=b.projection.range;if(!c)return 0;const d=Math.max(b.width,b.height),f=Math.log(d/1024)/Math.LN2;return a.smoothstep(c[0]+f,c[1]+f,b.zoom)}const cm=1/4e4;function cn(b,c){const d=a.clamp(c.lat,-a.MAX_MERCATOR_LATITUDE,a.MAX_MERCATOR_LATITUDE),f=new a.LngLat(c.lng-180*cm,d),g=new a.LngLat(c.lng+180*cm,d),h=b.project(f.lng,d),i=b.project(g.lng,d),j=a.MercatorCoordinate.fromLngLat(f),k=a.MercatorCoordinate.fromLngLat(g),l=i.x-h.x,m=i.y-h.y,n=k.x-j.x,o=k.y-j.y;return Math.log(Math.sqrt((n*n+o*o)/(l*l+m*m)))/Math.LN2}function co(a,b,c){const d=Math.cos(c),f=Math.sin(c);return{x:a*d-b*f,y:a*f+b*d}}class cp{constructor(b,c,d,f,g){this.tileSize=512,this._renderWorldCopies=void 0===g||g,this._minZoom=b||0,this._maxZoom=c||22,this._minPitch=null==d?0:d,this._maxPitch=null==f?60:f,this.setProjection(),this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new cc,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._distanceTileDataCache={},this._camera=new ci,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._projectionScaler=1,this._horizonShift=.1}clone(){const a=new cp(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return a.setProjection(this.getProjection()),a._elevation=this._elevation,a._centerAltitude=this._centerAltitude,a.tileSize=this.tileSize,a.setMaxBounds(this.getMaxBounds()),a.width=this.width,a.height=this.height,a.cameraElevationReference=this.cameraElevationReference,a._center=this._center,a._setZoom(this.zoom),a._cameraZoom=this._cameraZoom,a.angle=this.angle,a._fov=this._fov,a._pitch=this._pitch,a._nearZ=this._nearZ,a._farZ=this._farZ,a._averageElevation=this._averageElevation,a._unmodified=this._unmodified,a._edgeInsets=this._edgeInsets.clone(),a._camera=this._camera.clone(),a._calcMatrices(),a.freezeTileCoverage=this.freezeTileCoverage,a}get elevation(){return this._elevation}set elevation(a){this._elevation!==a&&(this._elevation=a,a?this._updateCenterElevation()&&this._updateCameraOnTerrain():(this._cameraZoom=null,this._centerAltitude=0),this._calcMatrices())}updateElevation(a){this._terrainEnabled()&&null==this._cameraZoom&&this._updateCenterElevation()&&this._updateCameraOnTerrain(),a&&this._constrainCameraAltitude(),this._calcMatrices()}getProjection(){return a.pick(this.projection,["name","center","parallels",])}setProjection(b){null==b&&(b={name:"mercator"}),this.projectionOptions=b;const c=this.projection?this.getProjection():void 0;return this.projection=a.getProjection(b),!g(c,this.getProjection())&&(this._calcMatrices(),!0)}get minZoom(){return this._minZoom}set minZoom(a){this._minZoom!==a&&(this._minZoom=a,this.zoom=Math.max(this.zoom,a))}get maxZoom(){return this._maxZoom}set maxZoom(a){this._maxZoom!==a&&(this._maxZoom=a,this.zoom=Math.min(this.zoom,a))}get minPitch(){return this._minPitch}set minPitch(a){this._minPitch!==a&&(this._minPitch=a,this.pitch=Math.max(this.pitch,a))}get maxPitch(){return this._maxPitch}set maxPitch(a){this._maxPitch!==a&&(this._maxPitch=a,this.pitch=Math.min(this.pitch,a))}get renderWorldCopies(){return this._renderWorldCopies&& !0===this.projection.supportsWorldCopies}set renderWorldCopies(a){void 0===a?a=!0:null===a&&(a=!1),this._renderWorldCopies=a}get worldSize(){return this.tileSize*this.scale}get cameraWorldSize(){const a=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(a))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.cameraWorldSize)}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.pointGeometry(this.width,this.height)}get bearing(){return a.wrap(this.rotation,-180,180)}set bearing(a){this.rotation=a}get rotation(){return-this.angle/Math.PI*180}set rotation(b){var c,d,f,g,h,i,j,k,l,m;const n=-b*Math.PI/180;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=(c=new a.ARRAY_TYPE(4),a.ARRAY_TYPE!=Float32Array&&(c[1]=0,c[2]=0),c[0]=1,c[3]=1,c),d=this.rotationMatrix,f=this.rotationMatrix,g=this.angle,h=f[0],i=f[1],j=f[2],k=f[3],l=Math.sin(g),m=Math.cos(g),d[0]=h*m+j*l,d[1]=i*m+k*l,d[2]=-(h*l)+j*m,d[3]=-(i*l)+k*m)}get pitch(){return this._pitch/Math.PI*180}set pitch(b){const c=a.clamp(b,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==c&&(this._unmodified=!1,this._pitch=c,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(a){a=Math.max(.01,Math.min(60,a)),this._fov!==a&&(this._unmodified=!1,this._fov=a/180*Math.PI,this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(a){this._averageElevation=a,this._calcFogMatrices()}get zoom(){return this._zoom}set zoom(a){const b=Math.min(Math.max(a,this.minZoom),this.maxZoom);this._zoom!==b&&(this._unmodified=!1,this._setZoom(b),this._terrainEnabled()&&this._updateCameraOnTerrain(),this._constrain(),this._calcMatrices())}_setZoom(a){this._zoom=a,this.scale=this.zoomScale(a),this.tileZoom=Math.floor(a),this.zoomFraction=a-this.tileZoom}_updateCenterElevation(){if(!this._elevation)return!1;const a=this._elevation.getAtPointOrZero(this.locationCoordinate(this.center),-1);return -1===a?(this._cameraZoom=null,!1):(this._centerAltitude=a,!0)}_updateCameraOnTerrain(){this._cameraZoom=this._zoomFromMercatorZ((this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize)}sampleAverageElevation(){if(!this._elevation)return 0;const b=this._elevation,c=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8],],d=this.horizonLineFromTop();let f=0,g=0;for(let h=0;hb.maxzoom&&(c=b.maxzoom);const h=this.locationCoordinate(this.center),i=1<{const c=1/4e4,d=new a.MercatorCoordinate(b.x+c,b.y,b.z),f=new a.MercatorCoordinate(b.x,b.y+c,b.z),g=b.toLngLat(),h=d.toLngLat(),i=f.toLngLat(),j=this.locationCoordinate(g),k=this.locationCoordinate(h),l=this.locationCoordinate(i),m=Math.hypot(k.x-j.x,k.y-j.y),n=Math.hypot(l.x-j.x,l.y-j.y);return Math.sqrt(m*n)*u/c},w=b=>{const c=r,d=s;return{aabb:a.tileAABB(this,i,0,0,0,b,d,c,this.projection),zoom:0,x:0,y:0,minZ:d,maxZ:c,wrap:b,fullyVisible:!1}},x=[];let y=[];const z=c,A=b.reparseOverscaled?d:c,B=a=>a*a,C=B((n-this._centerAltitude)*m),D=a=>{if(!this._elevation||!a.tileID||!g)return;const b=this._elevation.getMinMaxForTile(a.tileID),c=a.aabb;b?(c.min[2]=b.min,c.max[2]=b.max,c.center[2]=(c.min[2]+c.max[2])/2):(a.shouldSplit=E(a),a.shouldSplit||(c.min[2]=c.max[2]=c.center[2]=this._centerAltitude))},E=b=>{if(b.zoom.85?1:k}const l=c*c+g*g+h;return l{if(b*B(.707)0;){const G=x.pop(),H=G.x,I=G.y;let J=G.fullyVisible;if(!J){const K=G.aabb.intersects(k);if(0===K)continue;J=2===K}if(G.zoom!==z&&E(G))for(let L=0;L<4;L++){const M=(H<<1)+L%2,N=(I<<1)+(L>>1),O={aabb:g?G.aabb.quadrant(L):a.tileAABB(this,i,G.zoom+1,M,N,G.wrap,G.minZ,G.maxZ,this.projection),zoom:G.zoom+1,x:M,y:N,wrap:G.wrap,fullyVisible:J,tileID:void 0,shouldSplit:void 0,minZ:G.minZ,maxZ:G.maxZ};f&&(O.tileID=new a.OverscaledTileID(G.zoom+1===z?A:G.zoom+1,G.wrap,G.zoom+1,M,N),D(O)),x.push(O)}else{const P=G.zoom===z?A:G.zoom;if(b.minzoom&&b.minzoom>P)continue;const Q=j[0]-(.5+H+(G.wrap<{const d=[0,0,0,1],f=[a.EXTENT,a.EXTENT,0,1],g=this.calculateFogTileMatrix(c.tileID.toUnwrapped());a.transformMat4$1(d,d,g),a.transformMat4$1(f,f,g);const h=a.getAABBPointSquareDist(d,f);if(0===h)return!0;let i=!1;const j=this._elevation;if(j&&h>T&&0!==U){const k=this.calculateProjMatrix(c.tileID.toUnwrapped());let l;b.isTerrainDEM||(l=j.getMinMaxForTile(c.tileID)),l||(l={min:s,max:r});const m=a.furthestTileCorner(this.rotation),n=[m[0]*a.EXTENT,m[1]*a.EXTENT,l.max,];a.transformMat4(n,n,k),i=(1-n[1])*this.height*.5a.distanceSq-b.distanceSq).map(a=>a.tileID)}resize(a,b){this.width=a,this.height=b,this.pixelsToGLUnits=[2/a,-2/b],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(a){return Math.pow(2,a)}scaleZoom(a){return Math.log(a)/Math.LN2}project(b){const c=a.clamp(b.lat,-a.MAX_MERCATOR_LATITUDE,a.MAX_MERCATOR_LATITUDE),d=this.projection.project(b.lng,c);return new a.pointGeometry(d.x*this.worldSize,d.y*this.worldSize)}unproject(a){return this.projection.unproject(a.x/this.worldSize,a.y/this.worldSize)}get point(){return this.project(this.center)}setLocationAtPoint(b,c){const d=this.pointCoordinate(c),f=this.pointCoordinate(this.centerPoint),g=this.locationCoordinate(b);this.setLocation(new a.MercatorCoordinate(g.x-(d.x-f.x),g.y-(d.y-f.y)))}setLocation(a){this.center=this.coordinateLocation(a),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(a){return this.projection.locationPoint(this,a)}locationPoint3D(a){return this._coordinatePoint(this.locationCoordinate(a),!0)}pointLocation(a){return this.coordinateLocation(this.pointCoordinate(a))}pointLocation3D(a){return this.coordinateLocation(this.pointCoordinate3D(a))}locationCoordinate(b,c){const d=c?a.mercatorZfromAltitude(c,b.lat):void 0,f=this.projection.project(b.lng,b.lat);return new a.MercatorCoordinate(f.x,f.y,d)}coordinateLocation(a){return this.projection.unproject(a.x,a.y)}pointRayIntersection(b,c){const d=null!=c?c:this._centerAltitude,f=[b.x,b.y,0,1],g=[b.x,b.y,1,1];a.transformMat4$1(f,f,this.pixelMatrixInverse),a.transformMat4$1(g,g,this.pixelMatrixInverse);const h=g[3];a.scale$1(f,f,1/f[3]),a.scale$1(g,g,1/h);const i=f[2],j=g[2];return{p0:f,p1:g,t:i===j?0:(d-i)/(j-i)}}screenPointToMercatorRay(b){const c=[b.x,b.y,0,1],d=[b.x,b.y,1,1];return a.transformMat4$1(c,c,this.pixelMatrixInverse),a.transformMat4$1(d,d,this.pixelMatrixInverse),a.scale$1(c,c,1/c[3]),a.scale$1(d,d,1/d[3]),c[2]=a.mercatorZfromAltitude(c[2],this._center.lat)*this.worldSize,d[2]=a.mercatorZfromAltitude(d[2],this._center.lat)*this.worldSize,a.scale$1(c,c,1/this.worldSize),a.scale$1(d,d,1/this.worldSize),new a.Ray([c[0],c[1],c[2]],a.normalize([],a.sub([],d,c)))}rayIntersectionCoordinate(b){const{p0:c,p1:d,t:f}=b,g=a.mercatorZfromAltitude(c[2],this._center.lat),h=a.mercatorZfromAltitude(d[2],this._center.lat);return new a.MercatorCoordinate(a.number(c[0],d[0],f)/this.worldSize,a.number(c[1],d[1],f)/this.worldSize,a.number(g,h,f))}pointCoordinate(a,b=this._centerAltitude){return this.projection.createTileTransform(this,this.worldSize).pointCoordinate(a.x,a.y,b)}pointCoordinate3D(b){if(!this.elevation)return this.pointCoordinate(b);const c=this.elevation;let d=this.elevation.pointCoordinate(b);if(d)return new a.MercatorCoordinate(d[0],d[1],d[2]);let f=0,g=this.horizonLineFromTop();if(b.y>g)return this.pointCoordinate(b);const h=.02*g,i=b.clone();for(let j=0;j<10&&g-f>h;j++){i.y=a.number(f,g,.66);const k=c.pointCoordinate(i);k?(g=i.y,d=k):f=i.y}return d?new a.MercatorCoordinate(d[0],d[1],d[2]):this.pointCoordinate(b)}isPointAboveHorizon(a){if(this.elevation)return!this.elevation.pointCoordinate(a);{const b=this.horizonLineFromTop();return a.y0?new a.pointGeometry(f[0]/f[3],f[1]/f[3]):new a.pointGeometry(Number.MAX_VALUE,Number.MAX_VALUE)}_getBounds(b,c){var d,f,g,h,i,j,k,l;const m=new a.pointGeometry(this._edgeInsets.left,this._edgeInsets.top),n=new a.pointGeometry(this.width-this._edgeInsets.right,this._edgeInsets.top),o=new a.pointGeometry(this.width-this._edgeInsets.right,this.height-this._edgeInsets.bottom),p=new a.pointGeometry(this._edgeInsets.left,this.height-this._edgeInsets.bottom);let q=this.pointCoordinate(m,b),r=this.pointCoordinate(n,b);const s=this.pointCoordinate(o,c),u=this.pointCoordinate(p,c);return q.y>1&&r.y>=0?q=new a.MercatorCoordinate((1-u.y)/(d=u,((f=q).y-d.y)/(f.x-d.x))+u.x,1):q.y<0&&r.y<=1&&(q=new a.MercatorCoordinate(-u.y/(g=u,((h=q).y-g.y)/(h.x-g.x))+u.x,0)),r.y>1&&q.y>=0?r=new a.MercatorCoordinate((1-s.y)/(i=s,((j=r).y-i.y)/(j.x-i.x))+s.x,1):r.y<0&&q.y<=1&&(r=new a.MercatorCoordinate(-s.y/(k=s,((l=r).y-k.y)/(l.x-k.x))+s.x,0)),new a.LngLatBounds().extend(this.coordinateLocation(q)).extend(this.coordinateLocation(r)).extend(this.coordinateLocation(u)).extend(this.coordinateLocation(s))}_getBounds3D(){const a=this.elevation;if(!a.visibleDemTiles.length)return this._getBounds(0,0);const b=a.visibleDemTiles.reduce((a,b)=>{if(b.dem){const c=b.dem.tree;a.min=Math.min(a.min,c.minimums[0]),a.max=Math.max(a.max,c.maximums[0])}return a},{min:Number.MAX_VALUE,max:0});return this._getBounds(b.min*a.exaggeration(),b.max*a.exaggeration())}getBounds(){return this._terrainEnabled()?this._getBounds3D():this._getBounds(0,0)}horizonLineFromTop(a=!0){const b=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))+this.centerOffset.y,c=this.height/2-b*(1-this._horizonShift);return a?Math.max(0,c):c}getMaxBounds(){return this.maxBounds}setMaxBounds(b){this.maxBounds=b,this.minLat=-a.MAX_MERCATOR_LATITUDE,this.maxLat=a.MAX_MERCATOR_LATITUDE,this.minLng=-180,this.maxLng=180,b&&(this.minLat=b.getSouth(),this.maxLat=b.getNorth(),this.minLng=b.getWest(),this.maxLng=b.getEast(),this.maxLngm&&(i=m-k),m-lo&&(h=o-j),o-n.5?w-1:w,x>.5?x-1:x,0,]),this.alignedProjMatrix=y,i=a.create(),a.scale(i,i,[this.width/2,-this.height/2,1,]),a.translate(i,i,[1,-1,0]),this.labelPlaneMatrix=i,i=a.create(),a.scale(i,i,[1,-1,1]),a.translate(i,i,[-1,-1,0]),a.scale(i,i,[2/this.width,2/this.height,1,]),this.glCoordMatrix=i,this.pixelMatrix=a.multiply$1(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),this._calcFogMatrices(),this._distanceTileDataCache={},i=a.invert(new Float64Array(16),this.pixelMatrix),!i)throw Error("failed to invert matrix");this.pixelMatrixInverse=i,this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};const b=this.cameraWorldSize,c=this.cameraPixelsPerMeter,d=this._camera.position,f=1/this.height,g=[b,b,c];a.scale$2(g,g,f),a.scale$2(d,d,-1),a.multiply$2(d,d,g);const h=a.create();a.translate(h,h,d),a.scale(h,h,g),this.mercatorFogMatrix=h,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(b,c,f)}_computeCameraPosition(a){const b=(a=a||this.pixelsPerMeter)/this.pixelsPerMeter,c=this._camera.forward(),d=this.point,f=this._mercatorZfromZoom(this._cameraZoom?this._cameraZoom:this._zoom)*b-a/this.worldSize*this._centerAltitude;return[d.x/this.worldSize-c[0]*f,d.y/this.worldSize-c[1]*f,a/this.worldSize*this._centerAltitude-c[2]*f,]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(b){const c=this._maxCameraBoundsDistance()*Math.cos(this._pitch),d=b[2];let f=1;d>0&&(f=Math.min((c-this._camera.position[2])/d,1)),this._camera.position=a.scaleAndAdd([],this._camera.position,b,f),this._updateStateFromCamera()}_updateStateFromCamera(){const b=this._camera.position,c=this._camera.forward(),{pitch:d,bearing:f}=this._camera.getPitchBearing(),g=a.mercatorZfromAltitude(this._centerAltitude,this.center.lat)*this._projectionScaler,h=this._mercatorZfromZoom(this._maxZoom)*Math.cos(a.degToRad(this._maxPitch)),i=Math.max((b[2]-g)/Math.cos(d),h),j=this._zoomFromMercatorZ(i);a.scaleAndAdd(b,b,c,i),this._pitch=a.clamp(d,a.degToRad(this.minPitch),a.degToRad(this.maxPitch)),this.angle=a.wrap(f,-Math.PI,Math.PI),this._setZoom(a.clamp(j,this._minZoom,this._maxZoom)),this._terrainEnabled()&&this._updateCameraOnTerrain(),this._center=this.coordinateLocation(new a.MercatorCoordinate(b[0],b[1],b[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(a){return Math.pow(2,a)*this.tileSize}_mercatorZfromZoom(a){return this.cameraToCenterDistance/this._worldSizeFromZoom(a)}_minimumHeightOverTerrain(){const a=Math.min((null!=this._cameraZoom?this._cameraZoom:this._zoom)+2,this._maxZoom);return this._mercatorZfromZoom(a)}_zoomFromMercatorZ(a){return this.scaleZoom(this.cameraToCenterDistance/(a*this.tileSize))}_terrainEnabled(){return!(!this._elevation|| !this.projection.supportsTerrain&&(a.warnOnce("Terrain is not yet supported with alternate projections. Use mercator to enable terrain."),1))}anyCornerOffEdge(b,c){const d=Math.min(b.x,c.x),f=Math.max(b.x,c.x),g=Math.min(b.y,c.y),h=Math.max(b.y,c.y);if(gk||n.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+a.radToDeg(this.fovAboveCenter)>88||this.anyCornerOffEdge(new a.pointGeometry(0,0),new a.pointGeometry(this.width,this.height))}zoomDeltaToMovement(b,c){const d=a.length(a.sub([],this._camera.position,b)),f=this._zoomFromMercatorZ(d)+c;return d-this._mercatorZfromZoom(f)}getCameraPoint(){const b=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.pointGeometry(0,b))}}function cq(a,b){let c=!1,d=null;const f=()=>{d=null,c&&(a(),d=setTimeout(f,b),c=!1)};return()=>(c=!0,d||f(),d)}const cr={linearity:.3,easing:a.bezier(0,0,.3,1)},cs=a.extend({deceleration:2500,maxSpeed:1400},cr),ct=a.extend({deceleration:20,maxSpeed:1400},cr),cu=a.extend({deceleration:1e3,maxSpeed:360},cr),cv=a.extend({deceleration:1e3,maxSpeed:90},cr);function cw(a,b){(!a.duration||a.durationc.unproject(a)),j=g.reduce((a,b,c,d)=>a.add(b.div(d.length)),new a.pointGeometry(0,0));super(b,{points:g,point:j,lngLats:i,lngLat:c.unproject(j),originalEvent:d}),this._defaultPrevented=!1}}class cA extends a.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(a,b,c){super(a,{originalEvent:c}),this._defaultPrevented=!1}}class cB{constructor(a,b){this._map=a,this._clickTolerance=b.clickTolerance}reset(){delete this._mousedownPos}wheel(a){return this._firePreventable(new cA(a.type,this._map,a))}mousedown(a,b){return this._mousedownPos=b,this._firePreventable(new cy(a.type,this._map,a))}mouseup(a){this._map.fire(new cy(a.type,this._map,a))}preclick(b){const c=a.extend({},b);c.type="preclick",this._map.fire(new cy(c.type,this._map,c))}click(a,b){this._mousedownPos&&this._mousedownPos.dist(b)>=this._clickTolerance||(this.preclick(a),this._map.fire(new cy(a.type,this._map,a)))}dblclick(a){return this._firePreventable(new cy(a.type,this._map,a))}mouseover(a){this._map.fire(new cy(a.type,this._map,a))}mouseout(a){this._map.fire(new cy(a.type,this._map,a))}touchstart(a){return this._firePreventable(new cz(a.type,this._map,a))}touchmove(a){this._map.fire(new cz(a.type,this._map,a))}touchend(a){this._map.fire(new cz(a.type,this._map,a))}touchcancel(a){this._map.fire(new cz(a.type,this._map,a))}_firePreventable(a){if(this._map.fire(a),a.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class cC{constructor(a){this._map=a}reset(){this._delayContextMenu=!1,delete this._contextMenuEvent}mousemove(a){this._map.fire(new cy(a.type,this._map,a))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new cy("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(a){this._delayContextMenu?this._contextMenuEvent=a:this._map.fire(new cy(a.type,this._map,a)),this._map.listens("contextmenu")&&a.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class cD{constructor(a,b){this._map=a,this._el=a.getCanvasContainer(),this._container=a.getContainer(),this._clickTolerance=b.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(a,b){this.isEnabled()&&a.shiftKey&&0===a.button&&(h.disableDrag(),this._startPos=this._lastPos=b,this._active=!0)}mousemoveWindow(a,b){if(!this._active)return;const c=b;if(this._lastPos.equals(c)|| !this._box&&c.dist(this._startPos){this._box&&(this._box.style.transform=`translate(${f}px,${i}px)`,this._box.style.width=g-f+"px",this._box.style.height=j-i+"px")})}mouseupWindow(b,c){if(!this._active||0!==b.button)return;const d=this._startPos,f=c;if(this.reset(),h.suppressClick(),d.x!==f.x||d.y!==f.y)return this._map.fire(new a.Event("boxzoomend",{originalEvent:b})),{cameraAnimation:a=>a.fitScreenCoordinates(d,f,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",b)}keydown(a){this._active&&27===a.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",a))}blur(){this.reset()}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(this._box.remove(),this._box=null),h.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(b,c){return this._map.fire(new a.Event(b,{originalEvent:c}))}}function cE(a,b){const c={};for(let d=0;dthis.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=b.timeStamp),d.length===this.numTouches&&(this.centroid=function(b){const c=new a.pointGeometry(0,0);for(const d of b)c._add(d);return c.div(b.length)}(c),this.touches=cE(d,c)))}touchmove(a,b,c){if(this.aborted||!this.centroid)return;const d=cE(c,b);for(const f in this.touches){const g=this.touches[f],h=d[f];(!h||h.dist(g)>30)&&(this.aborted=!0)}}touchend(a,b,c){if((!this.centroid||a.timeStamp-this.startTime>500)&&(this.aborted=!0),0===c.length){const d=!this.aborted&&this.centroid;if(this.reset(),d)return d}}}(b),this.numTaps=b.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(a,b,c){this.singleTap.touchstart(a,b,c)}touchmove(a,b,c){this.singleTap.touchmove(a,b,c)}touchend(a,b,c){const d=this.singleTap.touchend(a,b,c);if(d){const f=a.timeStamp-this.lastTime<500,g=!this.lastTap||30>this.lastTap.dist(d);if(f&&g||this.reset(),this.count++,this.lastTime=a.timeStamp,this.lastTap=d,this.count===this.numTaps)return this.reset(),d}}}class cG{constructor(){this._zoomIn=new cF({numTouches:1,numTaps:2}),this._zoomOut=new cF({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(a,b,c){this._zoomIn.touchstart(a,b,c),this._zoomOut.touchstart(a,b,c)}touchmove(a,b,c){this._zoomIn.touchmove(a,b,c),this._zoomOut.touchmove(a,b,c)}touchend(a,b,c){const d=this._zoomIn.touchend(a,b,c),f=this._zoomOut.touchend(a,b,c);return d?(this._active=!0,a.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:b=>b.easeTo({duration:300,zoom:b.getZoom()+1,around:b.unproject(d)},{originalEvent:a})}):f?(this._active=!0,a.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:b=>b.easeTo({duration:300,zoom:b.getZoom()-1,around:b.unproject(f)},{originalEvent:a})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const cH={0:1,2:2};class cI{constructor(a){this.reset(),this._clickTolerance=a.clickTolerance||1}blur(){this.reset()}reset(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton}_correctButton(a,b){return!1}_move(a,b){return{}}mousedown(a,b){if(this._lastPoint)return;const c=h.mouseButton(a);this._correctButton(a,c)&&(this._lastPoint=b,this._eventButton=c)}mousemoveWindow(a,b){const c=this._lastPoint;if(c){if(a.preventDefault(),function(a,b){const c=cH[b];return void 0===a.buttons||(a.buttons&c)!==c}(a,this._eventButton))this.reset();else if(this._moved||!(b.dist(c)0&&(this._active=!0);const f=cE(d,c),g=new a.pointGeometry(0,0),h=new a.pointGeometry(0,0);let i=0;for(const j in f){const k=f[j],l=this._touches[j];l&&(g._add(k),h._add(k.sub(l)),i++,f[j]=k)}if(this._touches=f,i{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show")},500)}}class cN{constructor(){this.reset()}reset(){this._active=!1,delete this._firstTwoTouches}_start(a){}_move(a,b,c){return{}}touchstart(a,b,c){this._firstTwoTouches||c.length<2||(this._firstTwoTouches=[c[0].identifier,c[1].identifier,],this._start([b[0],b[1]]))}touchmove(a,b,c){if(!this._firstTwoTouches)return;a.preventDefault();const[d,f]=this._firstTwoTouches,g=cO(c,b,d),h=cO(c,b,f);if(!g||!h)return;const i=this._aroundCenter?null:g.add(h).div(2);return this._move([g,h],i,a)}touchend(a,b,c){if(!this._firstTwoTouches)return;const[d,f]=this._firstTwoTouches,g=cO(c,b,d),i=cO(c,b,f);g&&i||(this._active&&h.suppressClick(),this.reset())}touchcancel(){this.reset()}enable(a){this._enabled=!0,this._aroundCenter=!!a&&"center"===a.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function cO(a,b,c){for(let d=0;dMath.abs(cP(this._distance,this._startDistance))))return this._active=!0,{zoomDelta:cP(this._distance,c),pinchAround:b}}}function cR(a,b){return 180*a.angleWith(b)/Math.PI}class cS extends cN{reset(){super.reset(),delete this._minDiameter,delete this._startVector,delete this._vector}_start(a){this._startVector=this._vector=a[0].sub(a[1]),this._minDiameter=a[0].dist(a[1])}_move(a,b){const c=this._vector;if(this._vector=a[0].sub(a[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:cR(this._vector,c),pinchAround:b}}_isBelowThreshold(a){this._minDiameter=Math.min(this._minDiameter,a.mag());const b=25/(Math.PI*this._minDiameter)*360,c=cR(a,this._startVector);return Math.abs(c)Math.abs(a.x)}class cU extends cN{constructor(a){super(),this._map=a}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}_start(a){this._lastPoints=a,cT(a[0].sub(a[1]))&&(this._valid=!1)}_move(a,b,c){const d=a[0].sub(this._lastPoints[0]),f=a[1].sub(this._lastPoints[1]);if(!(this._map._cooperativeGestures&&c.touches.length<3)&&(this._valid=this.gestureBeginsVertically(d,f,c.timeStamp),this._valid))return this._lastPoints=a,this._active=!0,{pitchDelta:-((d.y+f.y)/2*.5)}}gestureBeginsVertically(a,b,c){if(void 0!==this._valid)return this._valid;const d=a.mag()>=2,f=b.mag()>=2;if(!d&&!f)return;if(!d||!f)return void 0===this._firstMove&&(this._firstMove=c),c-this._firstMove<100&&void 0;const g=a.y>0==b.y>0;return cT(a)&&cT(b)&&g}}class cV{constructor(){const a={panStep:100,bearingStep:15,pitchStep:10};this._panStep=a.panStep,this._bearingStep=a.bearingStep,this._pitchStep=a.pitchStep,this._rotationDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(a){if(a.altKey||a.ctrlKey||a.metaKey)return;let b=0,c=0,d=0,f=0,g=0;switch(a.keyCode){case 61:case 107:case 171:case 187:b=1;break;case 189:case 109:case 173:b=-1;break;case 37:a.shiftKey?c=-1:(a.preventDefault(),f=-1);break;case 39:a.shiftKey?c=1:(a.preventDefault(),f=1);break;case 38:a.shiftKey?d=1:(a.preventDefault(),g=-1);break;case 40:a.shiftKey?d=-1:(a.preventDefault(),g=1);break;default:return}return this._rotationDisabled&&(c=0,d=0),{cameraAnimation:h=>{const i=h.getZoom();h.easeTo({duration:300,easeId:"keyboardHandler",easing:cW,zoom:b?Math.round(i)+b*(a.shiftKey?2:1):i,bearing:h.getBearing()+c*this._bearingStep,pitch:h.getPitch()+d*this._pitchStep,offset:[-f*this._panStep,-g*this._panStep,],center:h.getCenter()},{originalEvent:a})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function cW(a){return a*(2-a)}const cX=4.000244140625;class cY{constructor(b,c){this._map=b,this._el=b.getCanvasContainer(),this._handler=c,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,a.bindAll(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert","_isFullscreen",],this)}setZoomRate(a){this._defaultZoomRate=a}setWheelZoomRate(a){this._wheelZoomRate=a}isEnabled(){return!!this._enabled}isActive(){return!!this._active|| void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(a){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!a&&"center"===a.around,this._map._cooperativeGestures&&this._addScrollZoomBlocker())}disable(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}wheel(b){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!(b.ctrlKey||b.metaKey||this.isZooming()||this._isFullscreen()))return void this._showBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let c=b.deltaMode===a.window.WheelEvent.DOM_DELTA_LINE?40*b.deltaY:b.deltaY;const d=a.exported.now(),f=d-(this._lastWheelEventTime||0);this._lastWheelEventTime=d,0!==c&&c%cX==0?this._type="wheel":0!==c&&4>Math.abs(c)?this._type="trackpad":f>400?(this._type=null,this._lastValue=c,this._timeout=setTimeout(this._onTimeout,40,b)):this._type||(this._type=200>Math.abs(f*c)?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,c+=this._lastValue)),b.shiftKey&&c&&(c/=4),this._type&&(this._lastWheelEvent=b,this._delta-=c,this._active||this._start(b)),b.preventDefault()}_onTimeout(a){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(a)}_start(a){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const b=h.mousePos(this._el,a);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:b,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;const b=this._map.transform,c=()=>b._terrainEnabled()&&this._aroundCoord?b.computeZoomRelativeTo(this._aroundCoord):b.zoom;if(0!==this._delta){const d="wheel"===this._type&&Math.abs(this._delta)>cX?this._wheelZoomRate:this._defaultZoomRate;let f=2/(1+Math.exp(-Math.abs(this._delta*d)));this._delta<0&&0!==f&&(f=1/f);const g=c(),h=Math.pow(2,g),i="number"==typeof this._targetZoom?b.zoomScale(this._targetZoom):h;this._targetZoom=Math.min(b.maxZoom,Math.max(b.minZoom,b.scaleZoom(i*f))),"wheel"===this._type&&(this._startZoom=c(),this._easing=this._smoothOutEasing(200)),this._delta=0}const j="number"==typeof this._targetZoom?this._targetZoom:c(),k=this._startZoom,l=this._easing;let m,n=!1;if("wheel"===this._type&&k&&l){const o=Math.min((a.exported.now()-this._lastWheelEventTime)/200,1),p=l(o);m=a.number(k,j,p),o<1?this._frameId||(this._frameId=!0):n=!0}else m=j,n=!0;return this._active=!0,n&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!n,zoomDelta:m-c(),around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(b){let c=a.ease;if(this._prevEase){const d=this._prevEase,f=(a.exported.now()-d.start)/d.duration,g=d.easing(f+.01)-d.easing(f),h=.27/Math.sqrt(g*g+1e-4)*.01,i=Math.sqrt(.0729-h*h);c=a.bezier(h,i,.25,1)}return this._prevEase={start:a.exported.now(),duration:b,easing:c},c}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=h.create("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=/(Mac|iPad)/i.test(a.window.navigator.userAgent)?this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_isFullscreen(){return!!a.window.document.fullscreenElement}_showBlockerAlert(){"hidden"===this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="visible"),this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show")},200)}}class cZ{constructor(a,b){this._clickZoom=a,this._tapZoom=b}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class c${constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(a,b){return a.preventDefault(),{cameraAnimation(c){c.easeTo({duration:300,zoom:c.getZoom()+(a.shiftKey?-1:1),around:c.unproject(b)},{originalEvent:a})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class c_{constructor(){this._tap=new cF({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()}touchstart(a,b,c){this._swipePoint||(this._tapTime&&a.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?c.length>0&&(this._swipePoint=b[0],this._swipeTouch=c[0].identifier):this._tap.touchstart(a,b,c))}touchmove(a,b,c){if(this._tapTime){if(this._swipePoint){if(c[0].identifier!==this._swipeTouch)return;const d=b[0],f=d.y-this._swipePoint.y;return this._swipePoint=d,a.preventDefault(),this._active=!0,{zoomDelta:f/128}}}else this._tap.touchmove(a,b,c)}touchend(a,b,c){this._tapTime?this._swipePoint&&0===c.length&&this.reset():this._tap.touchend(a,b,c)&&(this._tapTime=a.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class c0{constructor(a,b,c){this._el=a,this._mousePan=b,this._touchPan=c}enable(a){this._inertiaOptions=a||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class c1{constructor(a,b,c){this._pitchWithRotate=a.pitchWithRotate,this._mouseRotate=b,this._mousePitch=c}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class c2{constructor(a,b,c,d){this._el=a,this._touchZoom=b,this._touchRotate=c,this._tapDragZoom=d,this._rotationDisabled=!1,this._enabled=!0}enable(a){this._touchZoom.enable(a),this._rotationDisabled||this._touchRotate.enable(a),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const c3=a=>a.zoom||a.drag||a.pitch||a.rotate;class c4 extends a.Event{}function c5(a){return a.panDelta&&a.panDelta.mag()||a.zoomDelta||a.bearingDelta||a.pitchDelta}const c6="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class c7 extends a.Evented{constructor(b,c){super(),this._moving=!1,this._zooming=!1,this.transform=b,this._bearingSnap=c.bearingSnap,a.bindAll(["_renderFrameCallback"],this)}getCenter(){return new a.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(a,b){return this.jumpTo({center:a},b)}panBy(b,c,d){return b=a.pointGeometry.convert(b).mult(-1),this.panTo(this.transform.center,a.extend({offset:b},c),d)}panTo(b,c,d){return this.easeTo(a.extend({center:b},c),d)}getZoom(){return this.transform.zoom}setZoom(a,b){return this.jumpTo({zoom:a},b),this}zoomTo(b,c,d){return this.easeTo(a.extend({zoom:b},c),d)}zoomIn(a,b){return this.zoomTo(this.getZoom()+1,a,b),this}zoomOut(a,b){return this.zoomTo(this.getZoom()-1,a,b),this}getBearing(){return this.transform.bearing}setBearing(a,b){return this.jumpTo({bearing:a},b),this}getPadding(){return this.transform.padding}setPadding(a,b){return this.jumpTo({padding:a},b),this}rotateTo(b,c,d){return this.easeTo(a.extend({bearing:b},c),d)}resetNorth(b,c){return this.rotateTo(0,a.extend({duration:1e3},b),c),this}resetNorthPitch(b,c){return this.easeTo(a.extend({bearing:0,pitch:0,duration:1e3},b),c),this}snapToNorth(a,b){return Math.abs(this.getBearing())p=>{if(x&&(d.zoom=a.number(f,j,p)),y&&(d.bearing=a.number(g,k,p)),z&&(d.pitch=a.number(h,l,p)),A&&(d.interpolatePadding(i,m,p),o=d.centerPoint.add(n)),v)d.setLocationAtPoint(v,w);else{const q=d.zoomScale(d.zoom-f),B=j>f?Math.min(2,u):Math.max(.5,u),C=Math.pow(B,1-p),D=d.unproject(r.add(s.mult(p*C)).mult(q));d.setLocationAtPoint(d.renderWorldCopies?D.wrap():D,o)}return b.preloadOnly||this._fireMoveEvents(c),d};if(b.preloadOnly){const C=this._emulate(B,b.duration,d);return this._preloadTiles(C),this}const D={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=x,this._rotating=y,this._pitching=z,this._padding=A,this._easeId=b.easeId,this._prepareEase(c,b.noMoveStart,D),this._ease(B(d),a=>{d.recenterOnTerrain(),this._afterEase(c,a)},b),this}_prepareEase(b,c,d={}){this._moving=!0,this.transform.cameraElevationReference="sea",c||d.moving||this.fire(new a.Event("movestart",b)),this._zooming&&!d.zooming&&this.fire(new a.Event("zoomstart",b)),this._rotating&&!d.rotating&&this.fire(new a.Event("rotatestart",b)),this._pitching&&!d.pitching&&this.fire(new a.Event("pitchstart",b))}_fireMoveEvents(b){this.fire(new a.Event("move",b)),this._zooming&&this.fire(new a.Event("zoom",b)),this._rotating&&this.fire(new a.Event("rotate",b)),this._pitching&&this.fire(new a.Event("pitch",b))}_afterEase(b,c){if(this._easeId&&c&&this._easeId===c)return;delete this._easeId,this.transform.cameraElevationReference="ground";const d=this._zooming,f=this._rotating,g=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,d&&this.fire(new a.Event("zoomend",b)),f&&this.fire(new a.Event("rotateend",b)),g&&this.fire(new a.Event("pitchend",b)),this.fire(new a.Event("moveend",b))}flyTo(b,c){if(!b.essential&&a.exported.prefersReducedMotion){const d=a.pick(b,["center","zoom","bearing","pitch","around",]);return this.jumpTo(d,c)}this.stop(),b=a.extend({offset:[0,0],speed:1.2,curve:1.42,easing:a.ease},b);const f=this.transform,g=this.getZoom(),h=this.getBearing(),i=this.getPitch(),j=this.getPadding(),k="zoom"in b?a.clamp(+b.zoom,f.minZoom,f.maxZoom):g,l="bearing"in b?this._normalizeBearing(b.bearing,h):h,m="pitch"in b?+b.pitch:i,n="padding"in b?b.padding:f.padding,o=f.zoomScale(k-g),p=a.pointGeometry.convert(b.offset);let q=f.centerPoint.add(p);const r=f.pointLocation(q),s=a.LngLat.convert(b.center||r);this._normalizeCenter(s);const u=f.project(r),v=f.project(s).sub(u);let w=b.curve;const x=Math.max(f.width,f.height),y=x/o,z=v.mag();if("minZoom"in b){const A=a.clamp(Math.min(b.minZoom,g,k),f.minZoom,f.maxZoom),B=x/f.zoomScale(A-g);w=Math.sqrt(B/z*2)}const C=w*w;function D(a){const b=(y*y-x*x+(a?-1:1)*C*C*z*z)/(2*(a?y:x)*C*z);return Math.log(Math.sqrt(b*b+1)-b)}function E(a){return(Math.exp(a)-Math.exp(-a))/2}function F(a){return(Math.exp(a)+Math.exp(-a))/2}const G=D(0);let H=function(a){return F(G)/F(G+w*a)},I=function(a){var b;return x*((F(G)*(E(b=G+w*a)/F(b))-E(G))/C)/z},J=(D(1)-G)/w;if(1e-6>Math.abs(z)||!isFinite(J)){if(1e-6>Math.abs(x-y))return this.easeTo(b,c);const K=yb.maxDuration&&(b.duration=0);const L=h!==l,M=m!==i,N=!f.isPaddingEqual(n),O=d=>f=>{const o=f*J,r=1/H(o);d.zoom=1===f?k:g+d.scaleZoom(r),L&&(d.bearing=a.number(h,l,f)),M&&(d.pitch=a.number(i,m,f)),N&&(d.interpolatePadding(j,n,f),q=d.centerPoint.add(p));const w=1===f?s:d.unproject(u.add(v.mult(I(o))).mult(r));return d.setLocationAtPoint(d.renderWorldCopies?w.wrap():w,q),d._updateCenterElevation(),b.preloadOnly||this._fireMoveEvents(c),d};if(b.preloadOnly){const P=this._emulate(O,b.duration,f);return this._preloadTiles(P),this}return this._zooming=!0,this._rotating=L,this._pitching=M,this._padding=N,this._prepareEase(c,!1),this._ease(O(f),()=>this._afterEase(c),b),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(a,b){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){const c=this._onEaseEnd;delete this._onEaseEnd,c.call(this,b)}if(!a){const d=this.handlers;d&&d.stop(!1)}return this}_ease(b,c,d){!1===d.animate||0===d.duration?(b(1),c()):(this._easeStart=a.exported.now(),this._easeOptions=d,this._onEaseFrame=b,this._onEaseEnd=c,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const b=Math.min((a.exported.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(b)),b<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(b,c){b=a.wrap(b,-180,180);const d=Math.abs(b-c);return Math.abs(b-360-c)180?-360:c< -180?360:0}_emulate(a,b,c){const d=Math.ceil(15*b/1e3),f=[],g=a(c.clone());for(let h=0;h<=d;h++){const i=g(h/d);f.push(i.clone())}return f}}class c8{constructor(b={}){this.options=b,a.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact",],this)}getDefaultPosition(){return"bottom-right"}onAdd(a){const b=this.options&&this.options.compact;return this._map=a,this._container=h.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=h.create("button","mapboxgl-ctrl-attrib-button",this._container),h.create("span","mapboxgl-ctrl-icon",this._compactButton).setAttribute("aria-hidden",!0),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=h.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),b&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===b&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_setElementTitle(a,b){const c=this._map._getUIString(`AttributionControl.${b}`);a.setAttribute("aria-label",c),a.removeAttribute("title"),a.firstElementChild&&a.firstElementChild.setAttribute("title",c)}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}_updateEditLink(){let b=this._editLink;b||(b=this._editLink=this._container.querySelector(".mapbox-improve-map"));const c=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||a.config.ACCESS_TOKEN},];if(b){const d=c.reduce((a,b,d)=>(b.value&&(a+=`${b.key}=${b.value}${da.indexOf(g.attribution)&&a.push(g.attribution)}}a.sort((a,b)=>a.length-b.length),a=a.filter((b,c)=>{for(let d=c+1;d=0)return!1;return!0}),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?a=[...this.options.customAttribution,...a,]:a.unshift(this.options.customAttribution));const h=a.join(" | ");h!==this._attribHTML&&(this._attribHTML=h,a.length?(this._innerContainer.innerHTML=h,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class c9{constructor(){a.bindAll(["_updateLogo"],this),a.bindAll(["_updateCompact"],this)}onAdd(a){this._map=a,this._container=h.create("div","mapboxgl-ctrl");const b=h.create("a","mapboxgl-ctrl-logo");return b.target="_blank",b.rel="noopener nofollow",b.href="https://www.mapbox.com/",b.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),b.setAttribute("rel","noopener nofollow"),this._container.appendChild(b),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(a){a&&"metadata"!==a.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;const a=this._map.style._sourceCaches;if(0===Object.entries(a).length)return!0;for(const b in a){const c=a[b].getSource();if(c.hasOwnProperty("mapbox_logo")&&!c.mapbox_logo)return!1}return!0}_updateCompact(){const a=this._container.children;if(a.length){const b=a[0];this._map.getCanvasContainer().offsetWidth<250?b.classList.add("mapboxgl-compact"):b.classList.remove("mapboxgl-compact")}}}class da{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(a){const b=++this._id;return this._queue.push({callback:a,id:b,cancelled:!1}),b}remove(a){const b=this._currentlyRunning,c=b?this._queue.concat(b):this._queue;for(const d of c)if(d.id===a)return void(d.cancelled=!0)}run(a=0){const b=this._currentlyRunning=this._queue;for(const c of(this._queue=[],b))if(!c.cancelled&&(c.callback(a),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function db(b,c,d){if(b=new a.LngLat(b.lng,b.lat),c){const f=new a.LngLat(b.lng-360,b.lat),g=new a.LngLat(b.lng+360,b.lat),h=360*Math.ceil(Math.abs(b.lng-d.center.lng)/360),i=d.locationPoint(b).distSqr(c),j=c.x<0||c.y<0||c.x>d.width||c.y>d.height;d.locationPoint(f).distSqr(c)180;){const k=d.locationPoint(b);if(k.x>=0&&k.y>=0&&k.x<=d.width&&k.y<=d.height)break;b.lng>d.center.lng?b.lng-=360:b.lng+=360}return b}const dc={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};class dd extends a.Evented{constructor(b,c){if(super(),(b instanceof a.window.HTMLElement||c)&&(b=a.extend({element:b},c)),a.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer",],this),this._anchor=b&&b.anchor||"center",this._color=b&&b.color||"#3FB1CE",this._scale=b&&b.scale||1,this._draggable=b&&b.draggable||!1,this._clickTolerance=b&&b.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=b&&b.rotation||0,this._rotationAlignment=b&&b.rotationAlignment||"auto",this._pitchAlignment=b&&b.pitchAlignment&&"auto"!==b.pitchAlignment?b.pitchAlignment:this._rotationAlignment,this._updateMoving=()=>this._update(!0),b&&b.element)this._element=b.element,this._offset=a.pointGeometry.convert(b&&b.offset||[0,0]);else{this._defaultMarker=!0,this._element=h.create("div");const d=41,f=27,g=h.createSVG("svg",{display:"block",height:d*this._scale+"px",width:f*this._scale+"px",viewBox:`0 0 ${f} ${d}`},this._element),i=h.createSVG("radialGradient",{id:"shadowGradient"},h.createSVG("defs",{},g));h.createSVG("stop",{offset:"10%","stop-opacity":.4},i),h.createSVG("stop",{offset:"100%","stop-opacity":.05},i),h.createSVG("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},g),h.createSVG("path",{fill:this._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},g),h.createSVG("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},g),h.createSVG("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},g),this._offset=a.pointGeometry.convert(b&&b.offset||[0,-14])}this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",a=>{a.preventDefault()}),this._element.addEventListener("mousedown",a=>{a.preventDefault()});const j=this._element.classList;for(const k in dc)j.remove(`mapboxgl-marker-anchor-${k}`);j.add(`mapboxgl-marker-anchor-${this._anchor}`),this._popup=null}addTo(a){return a===this._map||(this.remove(),this._map=a,a.getCanvasContainer().appendChild(this._element),a.on("move",this._updateMoving),a.on("moveend",this._update),a.on("remove",this._clearFadeTimer),a._addMarker(this),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick)),this}remove(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._updateMoving),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._map.off("remove",this._clearFadeTimer),this._map._removeMarker(this),delete this._map),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(b){return this._lngLat=a.LngLat.convert(b),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}getElement(){return this._element}setPopup(a){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),a){if(!("offset"in a.options)){const b=38.1,c=13.5,d=Math.sqrt(Math.pow(c,2)/2);a.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-b],"bottom-left":[d,-1*(b-c+d),],"bottom-right":[-d,-1*(b-c+d),],left:[c,-1*(b-c)],right:[-c,-1*(b-c)]}:this._offset}this._popup=a,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","false")}return this}_onKeyPress(a){const b=a.code,c=a.charCode||a.keyCode;"Space"!==b&&"Enter"!==b&&32!==c&&13!==c||this.togglePopup()}_onMapClick(a){const b=a.originalEvent.target,c=this._element;this._popup&&(b===c||c.contains(b))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const a=this._popup;return a&&(a.isOpen()?(a.remove(),this._element.setAttribute("aria-expanded","false")):(a.addTo(this._map),this._element.setAttribute("aria-expanded","true"))),this}_evaluateOpacity(){const a=this._pos?this._pos.sub(this._transformedOffset()):null;if(!this._withinScreenBounds(a))return void this._clearFadeTimer();const b=this._map.unproject(a);let c=!1;if(this._map.transform._terrainEnabled()&&this._map.getTerrain()){const d=this._map.getFreeCameraOptions();if(d.position){const f=d.position.toLngLat();c=f.distanceTo(b)<.9*f.distanceTo(this._lngLat)}}const g=(1-this._map._queryFogOpacity(b))*(c?.2:1);this._element.style.opacity=`${g}`,this._popup&&this._popup._setOpacity(`${g}`),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_withinScreenBounds(a){const b=this._map.transform;return!!a&&a.x>=0&&a.x=0&&a.y{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())}):this._pos=this._pos.round(),this._map._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(this._map.getTerrain()||this._map.getFog())&&!this._fadeTimer&&(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))}))}_transformedOffset(){if(!this._defaultMarker)return this._offset;const a=this._map.transform,b=this._offset.mult(this._scale);return"map"===this._rotationAlignment&&b._rotate(a.angle),"map"===this._pitchAlignment&&(b.y*=Math.cos(a._pitch)),b}getOffset(){return this._offset}setOffset(b){return this._offset=a.pointGeometry.convert(b),this._update(),this}_onMove(b){if(!this._isDragging){const c=this._clickTolerance||this._map._clickTolerance;this._isDragging=b.point.dist(this._pointerdownPos)>=c}this._isDragging&&(this._pos=b.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new a.Event("dragstart"))),this.fire(new a.Event("drag")))}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new a.Event("dragend")),this._state="inactive"}_addDragHandler(a){this._element.contains(a.originalEvent.target)&&(a.preventDefault(),this._positionDelta=a.point.sub(this._pos).add(this._transformedOffset()),this._pointerdownPos=a.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))}setDraggable(a){return this._draggable=!!a,this._map&&(a?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(a){return this._rotation=a||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(a){return this._rotationAlignment=a||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(a){return this._pitchAlignment=a&&"auto"!==a?a:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}}const{HTMLImageElement:de,HTMLElement:df,ImageBitmap:dg}=a.window;function dh(a){a.parentNode&&a.parentNode.removeChild(a)}class di{constructor(b,c,d=!1){this._clickTolerance=10,this.element=c,this.mouseRotate=new cK({clickTolerance:b.dragRotate._mouseRotate._clickTolerance}),this.map=b,d&&(this.mousePitch=new cL({clickTolerance:b.dragRotate._mousePitch._clickTolerance})),a.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset",],this),c.addEventListener("mousedown",this.mousedown),c.addEventListener("touchstart",this.touchstart,{passive:!1}),c.addEventListener("touchmove",this.touchmove),c.addEventListener("touchend",this.touchend),c.addEventListener("touchcancel",this.reset)}down(a,b){this.mouseRotate.mousedown(a,b),this.mousePitch&&this.mousePitch.mousedown(a,b),h.disableDrag()}move(a,b){const c=this.map,d=this.mouseRotate.mousemoveWindow(a,b);if(d&&d.bearingDelta&&c.setBearing(c.getBearing()+d.bearingDelta),this.mousePitch){const f=this.mousePitch.mousemoveWindow(a,b);f&&f.pitchDelta&&c.setPitch(c.getPitch()+f.pitchDelta)}}off(){const a=this.element;a.removeEventListener("mousedown",this.mousedown),a.removeEventListener("touchstart",this.touchstart,{passive:!1}),a.removeEventListener("touchmove",this.touchmove),a.removeEventListener("touchend",this.touchend),a.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){h.enableDrag(),a.window.removeEventListener("mousemove",this.mousemove),a.window.removeEventListener("mouseup",this.mouseup)}mousedown(b){this.down(a.extend({},b,{ctrlKey:!0,preventDefault:()=>b.preventDefault()}),h.mousePos(this.element,b)),a.window.addEventListener("mousemove",this.mousemove),a.window.addEventListener("mouseup",this.mouseup)}mousemove(a){this.move(a,h.mousePos(this.element,a))}mouseup(a){this.mouseRotate.mouseupWindow(a),this.mousePitch&&this.mousePitch.mouseupWindow(a),this.offTemp()}touchstart(a){1!==a.targetTouches.length?this.reset():(this._startPos=this._lastPos=h.touchPos(this.element,a.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>a.preventDefault()},this._startPos))}touchmove(a){1!==a.targetTouches.length?this.reset():(this._lastPos=h.touchPos(this.element,a.targetTouches)[0],this.move({preventDefault:()=>a.preventDefault()},this._lastPos))}touchend(a){0===a.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)5280?dn(b,d,j/5280,a._getUIString("ScaleControl.Miles"),a):dn(b,d,j,a._getUIString("ScaleControl.Feet"),a)}else c&&"nautical"===c.unit?dn(b,d,i/1852,a._getUIString("ScaleControl.NauticalMiles"),a):i>=1e3?dn(b,d,i/1e3,a._getUIString("ScaleControl.Kilometers"),a):dn(b,d,i,a._getUIString("ScaleControl.Meters"),a)}function dn(a,b,c,d,f){const g=function(a){const b=Math.pow(10,`${Math.floor(a)}`.length-1);let c=a/b;return c=c>=10?10:c>=5?5:c>=3?3:c>=2?2:c>=1?1:function(a){const b=Math.pow(10,Math.ceil(-Math.log(a)/Math.LN10));return Math.round(a*b)/b}(c),b*c}(c),h=g/c;f._requestDomTask(()=>{a.style.width=b*h+"px",a.innerHTML=`${g} ${d}`})}const dp={version:a.version,supported:b,setRTLTextPlugin:a.setRTLTextPlugin,getRTLTextPluginStatus:a.getRTLTextPluginStatus,Map:class extends c7{constructor(b){if(null!=(b=a.extend({},{center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,optimizeForTerrain:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},b)).minZoom&&null!=b.maxZoom&&b.minZoom>b.maxZoom)throw Error("maxZoom must be greater than or equal to minZoom");if(null!=b.minPitch&&null!=b.maxPitch&&b.minPitch>b.maxPitch)throw Error("maxPitch must be greater than or equal to minPitch");if(null!=b.minPitch&&b.minPitch<0)throw Error("minPitch must be greater than or equal to 0");if(null!=b.maxPitch&&b.maxPitch>85)throw Error("maxPitch must be less than or equal to 85");if(super(new cp(b.minZoom,b.maxZoom,b.minPitch,b.maxPitch,b.renderWorldCopies),b),this._interactive=b.interactive,this._minTileCacheSize=b.minTileCacheSize,this._maxTileCacheSize=b.maxTileCacheSize,this._failIfMajorPerformanceCaveat=b.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=b.preserveDrawingBuffer,this._antialias=b.antialias,this._trackResize=b.trackResize,this._bearingSnap=b.bearingSnap,this._refreshExpiredTiles=b.refreshExpiredTiles,this._fadeDuration=b.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=b.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=b.collectResourceTiming,this._optimizeForTerrain=b.optimizeForTerrain,this._renderTaskQueue=new da,this._domRenderTaskQueue=new da,this._controls=[],this._markers=[],this._mapId=a.uniqueId(),this._locale=a.extend({},{"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use ⌘ + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},b.locale),this._clickTolerance=b.clickTolerance,this._cooperativeGestures=b.cooperativeGestures,this._containerWidth=0,this._containerHeight=0,this._averageElevationLastSampledAt=-1/0,this._averageElevation=new class{constructor(a){this.jumpTo(a)}getValue(b){if(b<=this._startTime)return this._start;if(b>=this._endTime)return this._end;const c=a.easeCubicInOut((b-this._startTime)/(this._endTime-this._startTime));return this._start*(1-c)+this._end*c}isEasing(a){return a>=this._startTime&&a<=this._endTime}jumpTo(a){this._startTime=-1/0,this._endTime=-1/0,this._start=a,this._end=a}easeTo(a,b,c){this._start=this.getValue(b),this._end=a,this._startTime=b,this._endTime=b+c}}(0),this._requestManager=new a.RequestManager(b.transformRequest,b.accessToken,b.testMode),this._silenceAuthErrors=!!b.testMode,"string"==typeof b.container){if(this._container=a.window.document.getElementById(b.container),!this._container)throw Error(`Container '${b.container}' not found.`)}else{if(!(b.container instanceof df))throw Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=b.container}if(this._container.childNodes.length>0&&a.warnOnce("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),b.maxBounds&&this.setMaxBounds(b.maxBounds),a.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored",],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw Error("Failed to initialize WebGL.");this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),void 0!==a.window&&(a.window.addEventListener("online",this._onWindowOnline,!1),a.window.addEventListener("resize",this._onWindowResize,!1),a.window.addEventListener("orientationchange",this._onWindowResize,!1),a.window.addEventListener("webkitfullscreenchange",this._onWindowResize,!1)),this.handlers=new class{constructor(b,c){this._map=b,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new class{constructor(a){this._map=a,this.clear()}clear(){this._inertiaBuffer=[]}record(b){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:a.exported.now(),settings:b})}_drainInertiaBuffer(){const b=this._inertiaBuffer,c=a.exported.now();for(;b.length>0&&c-b[0].time>160;)b.shift()}_onMoveEnd(b){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const c={zoom:0,bearing:0,pitch:0,pan:new a.pointGeometry(0,0),pinchAround:void 0,around:void 0};for(const{settings:d}of this._inertiaBuffer)c.zoom+=d.zoomDelta||0,c.bearing+=d.bearingDelta||0,c.pitch+=d.pitchDelta||0,d.panDelta&&c.pan._add(d.panDelta),d.around&&(c.around=d.around),d.pinchAround&&(c.pinchAround=d.pinchAround);const f=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,g={};if(c.pan.mag()){const h=cx(c.pan.mag(),f,a.extend({},cs,b||{}));g.offset=c.pan.mult(h.amount/c.pan.mag()),g.center=this._map.transform.center,cw(g,h)}if(c.zoom){const i=cx(c.zoom,f,ct);g.zoom=this._map.transform.zoom+i.amount,cw(g,i)}if(c.bearing){const j=cx(c.bearing,f,cu);g.bearing=this._map.transform.bearing+a.clamp(j.amount,-179,179),cw(g,j)}if(c.pitch){const k=cx(c.pitch,f,cv);g.pitch=this._map.transform.pitch+k.amount,cw(g,k)}if(g.zoom||g.bearing){const l=void 0===c.pinchAround?c.around:c.pinchAround;g.around=l?this._map.unproject(l):this._map.getCenter()}return this.clear(),a.extend(g,{noMoveStart:!0})}}(b),this._bearingSnap=c.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new class{constructor(){this.constants=[1,1,.01],this.radius=0}setup(b,c){const d=a.sub([],c,b);this.radius=a.length(d[2]<0?a.div([],d,this.constants):[d[0],d[1],0])}projectRay(b){a.div(b,b,this.constants),a.normalize(b,b),a.mul$1(b,b,this.constants);const c=a.scale$2([],b,this.radius);if(c[2]>0){const d=a.scale$2([],[0,0,1],a.dot(c,[0,0,1])),f=a.scale$2([],a.normalize([],[c[0],c[1],0]),this.radius),g=a.add([],c,a.scale$2([],a.sub([],a.add([],f,d),c),2));c[0]=g[0],c[1]=g[1]}return c}},this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(c),a.bindAll(["handleEvent","handleWindowEvent"],this);const d=this._el;for(const[f,g,h]of(this._listeners=[[d,"touchstart",{passive:!0},],[d,"touchmove",{passive:!1},],[d,"touchend",void 0],[d,"touchcancel",void 0],[d,"mousedown",void 0],[d,"mousemove",void 0],[d,"mouseup",void 0],[a.window.document,"mousemove",{capture:!0},],[a.window.document,"mouseup",void 0],[d,"mouseover",void 0],[d,"mouseout",void 0],[d,"dblclick",void 0],[d,"click",void 0],[d,"keydown",{capture:!1},],[d,"keyup",void 0],[d,"wheel",{passive:!1},],[d,"contextmenu",void 0],[a.window,"blur",void 0],],this._listeners))f.addEventListener(g,f===a.window.document?this.handleWindowEvent:this.handleEvent,h)}destroy(){for(const[b,c,d]of this._listeners)b.removeEventListener(c,b===a.window.document?this.handleWindowEvent:this.handleEvent,d)}_addDefaultHandlers(a){const b=this._map,c=b.getCanvasContainer();this._add("mapEvent",new cB(b,a));const d=b.boxZoom=new cD(b,a);this._add("boxZoom",d);const f=new cG,g=new c$;b.doubleClickZoom=new cZ(g,f),this._add("tapZoom",f),this._add("clickZoom",g);const h=new c_;this._add("tapDragZoom",h);const i=b.touchPitch=new cU(b);this._add("touchPitch",i);const j=new cK(a),k=new cL(a);b.dragRotate=new c1(a,j,k),this._add("mouseRotate",j,["mousePitch"]),this._add("mousePitch",k,["mouseRotate"]);const l=new cJ(a),m=new cM(b,a);b.dragPan=new c0(c,l,m),this._add("mousePan",l),this._add("touchPan",m,["touchZoom","touchRotate",]);const n=new cS,o=new cQ;b.touchZoomRotate=new c2(c,o,n,h),this._add("touchRotate",n,["touchPan","touchZoom",]),this._add("touchZoom",o,["touchPan","touchRotate",]),this._add("blockableMapEvent",new cC(b));const p=b.scrollZoom=new cY(b,this);this._add("scrollZoom",p,["mousePan"]);const q=b.keyboard=new cV;for(const r of(this._add("keyboard",q),["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard",]))a.interactive&&a[r]&&b[r].enable(a[r])}_add(a,b,c){this._handlers.push({handlerName:a,handler:b,allowed:c}),this._handlersById[a]=b}stop(a){if(!this._updatingCamera){for(const{handler:b}of this._handlers)b.reset();this._inertia.clear(),this._fireEvents({},{},a),this._changes=[]}}isActive(){for(const{handler:a}of this._handlers)if(a.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return Boolean(c3(this._eventsInProgress))||this.isZooming()}_blockedByActive(a,b,c){for(const d in a)if(d!==c&&(!b||0>b.indexOf(d)))return!0;return!1}handleWindowEvent(a){this.handleEvent(a,`${a.type}Window`)}_getMapTouches(a){const b=[];for(const c of a)this._el.contains(c.target)&&b.push(c);return b}handleEvent(a,b){this._updatingCamera=!0;const c="renderFrame"===a.type,d=c?void 0:a,f={needsRenderFrame:!1},g={},i={},j=a.touches?this._getMapTouches(a.touches):void 0,k=j?h.touchPos(this._el,j):c?void 0:h.mousePos(this._el,a);for(const{handlerName:l,handler:m,allowed:n}of this._handlers){if(!m.isEnabled())continue;let o;this._blockedByActive(i,n,l)?m.reset():m[b||a.type]&&(o=m[b||a.type](a,k,j),this.mergeHandlerResult(f,g,o,l,d),o&&o.needsRenderFrame&&this._triggerRenderFrame()),(o||m.isActive())&&(i[l]=m)}const p={};for(const q in this._previousActiveHandlers)i[q]||(p[q]=d);this._previousActiveHandlers=i,(Object.keys(p).length||c5(f))&&(this._changes.push([f,g,p]),this._triggerRenderFrame()),(Object.keys(i).length||c5(f))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:r}=f;r&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],r(this._map))}mergeHandlerResult(b,c,d,f,g){if(!d)return;a.extend(b,d);const h={handlerName:f,originalEvent:d.originalEvent||g};void 0!==d.zoomDelta&&(c.zoom=h),void 0!==d.panDelta&&(c.drag=h),void 0!==d.pitchDelta&&(c.pitch=h),void 0!==d.bearingDelta&&(c.rotate=h)}_applyChanges(){const b={},c={},d={};for(const[f,g,h]of this._changes)f.panDelta&&(b.panDelta=(b.panDelta||new a.pointGeometry(0,0))._add(f.panDelta)),f.zoomDelta&&(b.zoomDelta=(b.zoomDelta||0)+f.zoomDelta),f.bearingDelta&&(b.bearingDelta=(b.bearingDelta||0)+f.bearingDelta),f.pitchDelta&&(b.pitchDelta=(b.pitchDelta||0)+f.pitchDelta),void 0!==f.around&&(b.around=f.around),void 0!==f.aroundCoord&&(b.aroundCoord=f.aroundCoord),void 0!==f.pinchAround&&(b.pinchAround=f.pinchAround),f.noInertia&&(b.noInertia=f.noInertia),a.extend(c,g),a.extend(d,h);this._updateMapTransform(b,c,d),this._changes=[]}_updateMapTransform(b,c,d){const f=this._map,g=f.transform,h=a=>[a.x,a.y,a.z];if((a=>{const b=this._eventsInProgress.drag;return b&&!this._handlersById[b.handlerName].isActive()})()&&!c5(b)){const i=g.zoom;g.cameraElevationReference="sea",g.recenterOnTerrain(),g.cameraElevationReference="ground",i!==g.zoom&&this._map._update(!0)}if(!c5(b))return this._fireEvents(c,d,!0);let{panDelta:j,zoomDelta:k,bearingDelta:l,pitchDelta:m,around:n,aroundCoord:o,pinchAround:p}=b;void 0!==p&&(n=p),c.drag&&!this._eventsInProgress.drag&&n&&(this._dragOrigin=h(g.pointCoordinate3D(n)),this._trackingEllipsoid.setup(g._camera.position,this._dragOrigin)),g.cameraElevationReference="sea",f._stop(!0),n=n||f.transform.centerPoint,l&&(g.bearing+=l),m&&(g.pitch+=m),g._updateCameraState();const q=[0,0,0];if(j){const r=g.pointCoordinate(n),s=g.pointCoordinate(n.sub(j));r&&s&&(q[0]=s.x-r.x,q[1]=s.y-r.y)}const u=g.zoom,v=[0,0,0];if(k){const w=h(o||g.pointCoordinate3D(n)),x={dir:a.normalize([],a.sub([],w,g._camera.position))};if(x.dir[2]<0){const y=g.zoomDeltaToMovement(w,k);a.scale$2(v,x.dir,y)}}const z=a.add(q,q,v);g._translateCameraConstrained(z),k&&Math.abs(g.zoom-u)>1e-4&&g.recenterOnTerrain(),g.cameraElevationReference="ground",this._map._update(),b.noInertia||this._inertia.record(b),this._fireEvents(c,d,!0)}_fireEvents(b,c,d){const f=c3(this._eventsInProgress),g=c3(b),h={};for(const i in b){const{originalEvent:j}=b[i];this._eventsInProgress[i]||(h[`${i}start`]=j),this._eventsInProgress[i]=b[i]}for(const k in!f&&g&&this._fireEvent("movestart",g.originalEvent),h)this._fireEvent(k,h[k]);for(const l in g&&this._fireEvent("move",g.originalEvent),b){const{originalEvent:m}=b[l];this._fireEvent(l,m)}const n={};let o;for(const p in this._eventsInProgress){const{handlerName:q,originalEvent:r}=this._eventsInProgress[p];this._handlersById[q].isActive()||(delete this._eventsInProgress[p],o=c[q]||r,n[`${p}end`]=o)}for(const s in n)this._fireEvent(s,n[s]);const u=c3(this._eventsInProgress);if(d&&(f||g)&&!u){this._updatingCamera=!0;const v=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),w=a=>0!==a&& -this._bearingSnap{delete this._frameId,this.handleEvent(new c4("renderFrame",{timeStamp:a})),this._applyChanges()})}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}(this,b),this._localFontFamily=b.localFontFamily,this._localIdeographFontFamily=b.localIdeographFontFamily,b.style&&this.setStyle(b.style,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),b.projection&&this.setProjection(b.projection),this._hash=b.hash&&new class{constructor(b){this._hashName=b&&encodeURIComponent(b),a.bindAll(["_getCurrentHash","_onHashChange","_updateHash",],this),this._updateHash=cq(this._updateHashUnthrottled.bind(this),300)}addTo(b){return this._map=b,a.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return a.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this}getHashString(b){const c=this._map.getCenter(),d=Math.round(100*this._map.getZoom())/100,f=Math.pow(10,Math.ceil((d*Math.LN2+Math.log(512/360/.5))/Math.LN10)),g=Math.round(c.lng*f)/f,h=Math.round(c.lat*f)/f,i=this._map.getBearing(),j=this._map.getPitch();let k="";if(k+=b?`/${g}/${h}/${d}`:`${d}/${h}/${g}`,(i||j)&&(k+="/"+Math.round(10*i)/10),j&&(k+=`/${Math.round(j)}`),this._hashName){const l=this._hashName;let m=!1;const n=a.window.location.hash.slice(1).split("&").map(a=>{const b=a.split("=")[0];return b===l?(m=!0,`${b}=${k}`):a}).filter(a=>a);return m||n.push(`${l}=${k}`),`#${n.join("&")}`}return`#${k}`}_getCurrentHash(){const b=a.window.location.hash.replace("#","");if(this._hashName){let c;return b.split("&").map(a=>a.split("=")).forEach(a=>{a[0]===this._hashName&&(c=a)}),(c&&c[1]||"").split("/")}return b.split("/")}_onHashChange(){const a=this._getCurrentHash();if(a.length>=3&&!a.some(a=>isNaN(a))){const b=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(a[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+a[2],+a[1]],zoom:+a[0],bearing:b,pitch:+(a[4]||0)}),!0}return!1}_updateHashUnthrottled(){const b=a.window.location.href.replace(/(#.+)?$/,this.getHashString());a.window.history.replaceState(a.window.history.state,null,b)}}("string"==typeof b.hash&&b.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:b.center,zoom:b.zoom,bearing:b.bearing,pitch:b.pitch}),b.bounds&&(this.resize(),this.fitBounds(b.bounds,a.extend({},b.fitBoundsOptions,{duration:0})))),this.resize(),b.attributionControl&&this.addControl(new c8({customAttribution:b.customAttribution})),this._logoControl=new c9,this.addControl(this._logoControl,b.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",b=>{this._update("style"===b.dataType),this.fire(new a.Event(`${b.dataType}data`,b))}),this.on("dataloading",b=>{this.fire(new a.Event(`${b.dataType}dataloading`,b))})}_getMapId(){return this._mapId}addControl(b,c){if(void 0===c&&(c=b.getDefaultPosition?b.getDefaultPosition():"top-right"),!b||!b.onAdd)return this.fire(new a.ErrorEvent(Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const d=b.onAdd(this);this._controls.push(b);const f=this._controlPositions[c];return -1!==c.indexOf("bottom")?f.insertBefore(d,f.firstChild):f.appendChild(d),this}removeControl(b){if(!b||!b.onRemove)return this.fire(new a.ErrorEvent(Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const c=this._controls.indexOf(b);return c> -1&&this._controls.splice(c,1),b.onRemove(this),this}hasControl(a){return this._controls.indexOf(a)> -1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(b){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const c=!this._moving;return c&&this.fire(new a.Event("movestart",b)).fire(new a.Event("move",b)),this.fire(new a.Event("resize",b)),c&&this.fire(new a.Event("moveend",b)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(b){return this.transform.setMaxBounds(a.LngLatBounds.convert(b)),this._update()}setMinZoom(b){if((b=null==b?-2:b)>= -2&&b<=this.transform.maxZoom)return this.transform.minZoom=b,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=b,this._update(),this.getZoom()>b?this.setZoom(b):this.fire(new a.Event("zoomstart")).fire(new a.Event("zoom")).fire(new a.Event("zoomend")),this;throw Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(b){if((b=null==b?0:b)<0)throw Error("minPitch must be greater than or equal to 0");if(b>=0&&b<=this.transform.maxPitch)return this.transform.minPitch=b,this._update(),this.getPitch()85)throw Error("maxPitch must be less than or equal to 85");if(b>=this.transform.minPitch)return this.transform.maxPitch=b,this._update(),this.getPitch()>b?this.setPitch(b):this.fire(new a.Event("pitchstart")).fire(new a.Event("pitch")).fire(new a.Event("pitchend")),this;throw Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(a){return this.transform.renderWorldCopies=a,this._update()}getProjection(){return this.transform.getProjection()}setProjection(a){return this._lazyInitEmptyStyle(),"string"==typeof a&&(a={name:a}),this._runtimeProjection=a,this.style.updateProjection(),this._transitionFromGlobe=!1,this}project(b){return this.transform.locationPoint3D(a.LngLat.convert(b))}unproject(b){return this.transform.pointLocation3D(a.pointGeometry.convert(b))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()}_createDelegatedListener(a,b,c){if("mouseenter"===a||"mouseover"===a){let d=!1;const f=f=>{const g=b.filter(a=>this.getLayer(a)),h=g.length?this.queryRenderedFeatures(f.point,{layers:g}):[];h.length?d||(d=!0,c.call(this,new cy(a,this,f.originalEvent,{features:h}))):d=!1},g=()=>{d=!1};return{layers:new Set(b),listener:c,delegates:{mousemove:f,mouseout:g}}}if("mouseleave"===a||"mouseout"===a){let h=!1;const i=d=>{const f=b.filter(a=>this.getLayer(a));(f.length?this.queryRenderedFeatures(d.point,{layers:f}):[]).length?h=!0:h&&(h=!1,c.call(this,new cy(a,this,d.originalEvent)))},j=b=>{h&&(h=!1,c.call(this,new cy(a,this,b.originalEvent)))};return{layers:new Set(b),listener:c,delegates:{mousemove:i,mouseout:j}}}return{layers:new Set(b),listener:c,delegates:{[a]:a=>{const d=b.filter(a=>this.getLayer(a)),f=d.length?this.queryRenderedFeatures(a.point,{layers:d}):[];f.length&&(a.features=f,c.call(this,a),delete a.features)}}}}on(a,b,c){if(void 0===c)return super.on(a,b);Array.isArray(b)||(b=[b]);const d=this._createDelegatedListener(a,b,c);for(const f in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[a]=this._delegatedListeners[a]||[],this._delegatedListeners[a].push(d),d.delegates)this.on(f,d.delegates[f]);return this}once(a,b,c){if(void 0===c)return super.once(a,b);Array.isArray(b)||(b=[b]);const d=this._createDelegatedListener(a,b,c);for(const f in d.delegates)this.once(f,d.delegates[f]);return this}off(a,b,c){if(void 0===c)return super.off(a,b);b=new Set(Array.isArray(b)?b:[b]);const d=(a,b)=>{if(a.size!==b.size)return!1;for(const c of a)if(!b.has(c))return!1;return!0},f=this._delegatedListeners?this._delegatedListeners[a]:void 0;return f&&(a=>{for(let f=0;f{b?this.fire(new a.ErrorEvent(b)):d&&this._updateDiff(d,c)})}else"object"==typeof b&&this._updateDiff(b,c)}_updateDiff(b,c){try{this.style.setState(b)&&this._update(!0)}catch(d){a.warnOnce(`Unable to perform style diff: ${d.message||d.error||d}. Rebuilding the style from scratch.`),this._updateStyle(b,c)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():a.warnOnce("There is no style added to the map.")}addSource(a,b){return this._lazyInitEmptyStyle(),this.style.addSource(a,b),this._update(!0)}isSourceLoaded(b){const c=this.style&&this.style._getSourceCaches(b);if(0!==c.length)return c.every(a=>a.loaded());this.fire(new a.ErrorEvent(Error(`There is no source with ID '${b}'`)))}areTilesLoaded(){const a=this.style&&this.style._sourceCaches;for(const b in a){const c=a[b]._tiles;for(const d in c){const f=c[d];if("loaded"!==f.state&&"errored"!==f.state)return!1}}return!0}addSourceType(a,b,c){return this._lazyInitEmptyStyle(),this.style.addSourceType(a,b,c)}removeSource(a){return this.style.removeSource(a),this._updateTerrain(),this._update(!0)}getSource(a){return this.style.getSource(a)}addImage(b,c,{pixelRatio:d=1,sdf:f=!1,stretchX:g,stretchY:h,content:i}={}){if(this._lazyInitEmptyStyle(),c instanceof de||dg&&c instanceof dg){const{width:j,height:k,data:l}=a.exported.getImageData(c);this.style.addImage(b,{data:new a.RGBAImage({width:j,height:k},l),pixelRatio:d,stretchX:g,stretchY:h,content:i,sdf:f,version:0})}else{if(void 0===c.width|| void 0===c.height)return this.fire(new a.ErrorEvent(Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{const{width:m,height:n,data:o}=c,p=c;this.style.addImage(b,{data:new a.RGBAImage({width:m,height:n},new Uint8Array(o)),pixelRatio:d,stretchX:g,stretchY:h,content:i,sdf:f,version:0,userImage:p}),p.onAdd&&p.onAdd(this,b)}}}updateImage(b,c){const d=this.style.getImage(b);if(!d)return this.fire(new a.ErrorEvent(Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const f=c instanceof de||dg&&c instanceof dg?a.exported.getImageData(c):c,{width:g,height:h,data:i}=f;return void 0===g|| void 0===h?this.fire(new a.ErrorEvent(Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))):g!==d.data.width||h!==d.data.height?this.fire(new a.ErrorEvent(Error("The width and height of the updated image must be that same as the previous version of the image"))):(d.data.replace(i,!(c instanceof de||dg&&c instanceof dg)),void this.style.updateImage(b,d))}hasImage(b){return b?!!this.style.getImage(b):(this.fire(new a.ErrorEvent(Error("Missing required image id"))),!1)}removeImage(a){this.style.removeImage(a)}loadImage(b,c){a.getImage(this._requestManager.transformRequest(b,a.ResourceType.Image),(b,d)=>{c(b,d instanceof de?a.exported.getImageData(d):d)})}listImages(){return this.style.listImages()}addLayer(a,b){return this._lazyInitEmptyStyle(),this.style.addLayer(a,b),this._update(!0)}moveLayer(a,b){return this.style.moveLayer(a,b),this._update(!0)}removeLayer(a){return this.style.removeLayer(a),this._update(!0)}getLayer(a){return this.style.getLayer(a)}setLayerZoomRange(a,b,c){return this.style.setLayerZoomRange(a,b,c),this._update(!0)}setFilter(a,b,c={}){return this.style.setFilter(a,b,c),this._update(!0)}getFilter(a){return this.style.getFilter(a)}setPaintProperty(a,b,c,d={}){return this.style.setPaintProperty(a,b,c,d),this._update(!0)}getPaintProperty(a,b){return this.style.getPaintProperty(a,b)}setLayoutProperty(a,b,c,d={}){return this.style.setLayoutProperty(a,b,c,d),this._update(!0)}getLayoutProperty(a,b){return this.style.getLayoutProperty(a,b)}setLight(a,b={}){return this._lazyInitEmptyStyle(),this.style.setLight(a,b),this._update(!0)}getLight(){return this.style.getLight()}setTerrain(a){return this._lazyInitEmptyStyle(),!a&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(a),this._averageElevationLastSampledAt=-1/0,this._update(!0)}_updateProjection(){"globe"===this.transform.projection.name&&this.transform.zoom>=a.GLOBE_ZOOM_THRESHOLD_MAX&&!this._transitionFromGlobe&&(this.setProjection({name:"mercator"}),this._transitionFromGlobe=!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(a){return this._lazyInitEmptyStyle(),this.style.setFog(a),this._update(!0)}getFog(){return this.style?this.style.getFog():null}_queryFogOpacity(b){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(a.LngLat.convert(b),this.transform):0}setFeatureState(a,b){return this.style.setFeatureState(a,b),this._update()}removeFeatureState(a,b){return this.style.removeFeatureState(a,b),this._update()}getFeatureState(a){return this.style.getFeatureState(a)}_updateContainerDimensions(){if(!this._container)return;const b=this._container.getBoundingClientRect().width||400,c=this._container.getBoundingClientRect().height||300;let d,f=this._container;for(;f&&!d;){const g=a.window.getComputedStyle(f).transform;g&&"none"!==g&&(d=g.match(/matrix.*\((.+)\)/)[1].split(", ")),f=f.parentElement}d?(this._containerWidth=d[0]&&"0"!==d[0]?Math.abs(b/d[0]):b,this._containerHeight=d[3]&&"0"!==d[3]?Math.abs(c/d[3]):c):(this._containerWidth=b,this._containerHeight=c)}_detectMissingCSS(){"rgb(250, 128, 114)"!==a.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&a.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const a=this._container;a.classList.add("mapboxgl-map"),(this._missingCSSCanary=h.create("div","mapboxgl-canary",a)).style.visibility="hidden",this._detectMissingCSS();const b=this._canvasContainer=h.create("div","mapboxgl-canvas-container",a);this._interactive&&b.classList.add("mapboxgl-interactive"),this._canvas=h.create("canvas","mapboxgl-canvas",b),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const c=this._controlContainer=h.create("div","mapboxgl-control-container",a),d=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right",].forEach(a=>{d[a]=h.create("div",`mapboxgl-ctrl-${a}`,c)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(b,c){const d=a.exported.devicePixelRatio||1;this._canvas.width=d*Math.ceil(b),this._canvas.height=d*Math.ceil(c),this._canvas.style.width=`${b}px`,this._canvas.style.height=`${c}px`}_addMarker(a){this._markers.push(a)}_removeMarker(a){const b=this._markers.indexOf(a);-1!==b&&this._markers.splice(b,1)}_setupPainter(){const c=a.extend({},b.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),d=this._canvas.getContext("webgl",c)||this._canvas.getContext("experimental-webgl",c);d?(a.storeAuthState(d,!0),this.painter=new cb(d,this.transform),this.on("data",a=>{"source"===a.dataType&&this.painter.setTileLoadedFlag(!0)}),a.exported$1.testSupport(d)):this.fire(new a.ErrorEvent(Error("Failed to initialize WebGL")))}_contextLost(b){b.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new a.Event("webglcontextlost",{originalEvent:b}))}_contextRestored(b){this._setupPainter(),this.resize(),this._update(),this.fire(new a.Event("webglcontextrestored",{originalEvent:b}))}_onMapScroll(a){if(a.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(a){return this.style&&(this._styleDirty=this._styleDirty||a,this._sourcesDirty=!0,this.triggerRepaint()),this}_requestRenderFrame(a){return this._update(),this._renderTaskQueue.add(a)}_cancelRenderFrame(a){this._renderTaskQueue.remove(a)}_requestDomTask(a){!this.loaded()||this.loaded()&&!this.isMoving()?a():this._domRenderTaskQueue.add(a)}_render(b){let c;const d=this.painter.context.extTimerQuery,f=a.exported.now();this.listens("gpu-timing-frame")&&(c=d.createQueryEXT(),d.beginQueryEXT(d.TIME_ELAPSED_EXT,c));let g=this._updateAverageElevation(f);if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(b),this._domRenderTaskQueue.run(b),this._removed)return;this._updateProjection();let h=!1;const i=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const j=this.transform.zoom,k=this.transform.pitch,l=a.exported.now();this.style.zoomHistory.update(j,l);const m=new a.EvaluationParameters(j,{now:l,fadeDuration:i,pitch:k,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),n=m.crossFadingFactor();1===n&&n===this._crossFadingFactor||(h=!0,this._crossFadingFactor=n),this.style.update(m)}if(this.style&&this.style.fog&&this.style.fog.hasTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0),this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),this.style._updateSources(this.transform),this._forceMarkerUpdate()),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,i,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showTerrainWireframe:this.showTerrainWireframe,showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:i,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),speedIndexTiming:this.speedIndexTiming}),this.fire(new a.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new a.Event("load"))),this.style&&(this.style.hasTransitions()||h)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){const o=a.exported.now()-f;d.endQueryEXT(d.TIME_ELAPSED_EXT,c),setTimeout(()=>{const b=d.getQueryObjectEXT(c,d.QUERY_RESULT_EXT)/1e6;d.deleteQueryEXT(c),this.fire(new a.Event("gpu-timing-frame",{cpuTime:o,gpuTime:b}))},50)}if(this.listens("gpu-timing-layer")){const p=this.painter.collectGpuTimers();setTimeout(()=>{const b=this.painter.queryGpuTimers(p);this.fire(new a.Event("gpu-timing-layer",{layerTimes:b}))},50)}const q=this._sourcesDirty||this._styleDirty||this._placementDirty||g;if(q||this._repaint)this.triggerRepaint();else{const r=!this.isMoving()&&this.loaded();if(r&&(g=this._updateAverageElevation(f,!0)),g)this.triggerRepaint();else if(this._triggerFrame(!1),r&&(this.fire(new a.Event("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const s=this._calculateSpeedIndex();this.fire(new a.Event("speedindexcompleted",{speedIndex:s})),this.speedIndexTiming=!1}}return!this._loaded||this._fullyLoaded||q||(this._fullyLoaded=!0,this._authenticate()),this}_forceMarkerUpdate(){for(const a of this._markers)a._update()}_updateAverageElevation(a,b=!1){const c=a=>(this.transform.averageElevation=a,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return 0!==this.transform.averageElevation&&c(0);if((b||a-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(a)){const d=this.transform.averageElevation;let f=this.transform.sampleAverageElevation();isNaN(f)?f=0:this._averageElevationLastSampledAt=a;const g=Math.abs(d-f);if(g>1){if(this._isInitialLoad)return this._averageElevation.jumpTo(f),c(f);this._averageElevation.easeTo(f,a,300)}else if(g>1e-4)return this._averageElevation.jumpTo(f),c(f)}return!!this._averageElevation.isEasing(a)&&c(this._averageElevation.getValue(a))}_authenticate(){a.getMapSessionAPI(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,b=>{if(b&&(b.message===a.AUTH_ERR_MSG||401===b.status)){const c=this.painter.context.gl;a.storeAuthState(c,!1),this._logoControl instanceof c9&&this._logoControl._updateLogo(),c&&c.clear(c.DEPTH_BUFFER_BIT|c.COLOR_BUFFER_BIT|c.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new a.ErrorEvent(Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),a.postMapLoadEvent(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_updateTerrain(){this.painter.updateTerrain(this.style,this.isMoving()||this.isRotating()||this.isZooming())}_calculateSpeedIndex(){const a=this.painter.canvasCopy(),b=this.painter.getCanvasCopiesAndTimestamps();b.timeStamps.push(performance.now());const c=this.painter.context.gl,d=c.createFramebuffer();function f(a){c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,a,0);const b=new Uint8Array(c.drawingBufferWidth*c.drawingBufferHeight*4);return c.readPixels(0,0,c.drawingBufferWidth,c.drawingBufferHeight,c.RGBA,c.UNSIGNED_BYTE,b),b}return c.bindFramebuffer(c.FRAMEBUFFER,d),this._canvasPixelComparison(f(a),b.canvasCopies.map(f),b.timeStamps)}_canvasPixelComparison(a,b,c){let d=c[1]-c[0];const f=a.length/4;for(let g=0;g{const b=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,b&&this._render(a)}))}_preloadTiles(b){const c=this.style&&Object.values(this.style._sourceCaches)||[];return a.asyncAll(c,(a,c)=>a._preloadTiles(b,c),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(a){this._trackResize&&this.resize({originalEvent:a})._update()}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(a){this._showTileBoundaries!==a&&(this._showTileBoundaries=a,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(a){this._showTerrainWireframe!==a&&(this._showTerrainWireframe=a,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(a){this._speedIndexTiming!==a&&(this._speedIndexTiming=a,this._update())}get showPadding(){return!!this._showPadding}set showPadding(a){this._showPadding!==a&&(this._showPadding=a,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(a){this._showCollisionBoxes!==a&&(this._showCollisionBoxes=a,a?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(a){this._showOverdrawInspector!==a&&(this._showOverdrawInspector=a,this._update())}get repaint(){return!!this._repaint}set repaint(a){this._repaint!==a&&(this._repaint=a,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(a){this._vertices=a,this._update()}_setCacheLimits(b,c){a.setCacheLimits(b,c)}get version(){return a.version}},NavigationControl:class{constructor(b){this.options=a.extend({},{showCompass:!0,showZoom:!0,visualizePitch:!1},b),this._container=h.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",a=>a.preventDefault()),this.options.showZoom&&(a.bindAll(["_setButtonTitle","_updateZoomButtons",],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",a=>this._map.zoomIn({},{originalEvent:a})),h.create("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden",!0),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",a=>this._map.zoomOut({},{originalEvent:a})),h.create("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden",!0)),this.options.showCompass&&(a.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",a=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:a}):this._map.resetNorth({},{originalEvent:a})}),this._compassIcon=h.create("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden",!0))}_updateZoomButtons(){const a=this._map.getZoom(),b=a===this._map.getMaxZoom(),c=a===this._map.getMinZoom();this._zoomInButton.disabled=b,this._zoomOutButton.disabled=c,this._zoomInButton.setAttribute("aria-disabled",b.toString()),this._zoomOutButton.setAttribute("aria-disabled",c.toString())}_rotateCompassArrow(){const a=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._map._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=a)})}onAdd(a){return this._map=a,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new di(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){this._container.remove(),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(a,b){const c=h.create("button",a,this._container);return c.type="button",c.addEventListener("click",b),c}_setButtonTitle(a,b){const c=this._map._getUIString(`NavigationControl.${b}`);a.setAttribute("aria-label",c),a.firstElementChild&&a.firstElementChild.setAttribute("title",c)}},GeolocateControl:class extends a.Evented{constructor(b){super(),this.options=a.extend({},{positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1},b),a.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation",],this),this._onDeviceOrientationListener=this._onDeviceOrientation.bind(this),this._updateMarkerRotationThrottled=cq(this._updateMarkerRotation,20)}onAdd(b){var c;return this._map=b,this._container=h.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),c=this._setupUI,void 0!==dj?c(dj):void 0!==a.window.navigator.permissions?a.window.navigator.permissions.query({name:"geolocation"}).then(a=>{c(dj="denied"!==a.state)}):c(dj=!!a.window.navigator.geolocation),this._container}onRemove(){void 0!==this._geolocationWatchID&&(a.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,dk=0,dl=!1}_isOutOfMapMaxBounds(a){const b=this._map.getMaxBounds(),c=a.coords;return b&&(c.longitudeb.getEast()||c.latitudeb.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(b){if(this._map){if(this._isOutOfMapMaxBounds(b))return this._setErrorState(),this.fire(new a.Event("outofmaxbounds",b)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=b,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(b),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(b),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("geolocate",b)),this._finish()}}_updateCamera(b){const c=new a.LngLat(b.coords.longitude,b.coords.latitude),d=b.coords.accuracy,f=this._map.getBearing(),g=a.extend({bearing:f},this.options.fitBoundsOptions);this._map.fitBounds(c.toBounds(d),g,{geolocateSource:!0})}_updateMarker(b){if(b){const c=new a.LngLat(b.coords.longitude,b.coords.latitude);this._accuracyCircleMarker.setLngLat(c).addTo(this._map),this._userLocationDotMarker.setLngLat(c).addTo(this._map),this._accuracy=b.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const a=this._map._containerHeight/2,b=this._map.unproject([0,a]),c=this._map.unproject([100,a]),d=b.distanceTo(c)/100,f=Math.ceil(2*this._accuracy/d);this._circleElement.style.width=`${f}px`,this._circleElement.style.height=`${f}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&"number"==typeof this._heading?(this._userLocationDotMarker.setRotation(this._heading),this._dotElement.classList.add("mapboxgl-user-location-show-heading")):(this._dotElement.classList.remove("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(b){if(this._map){if(this.options.trackUserLocation){if(1===b.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const c=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",c),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",c),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===b.code&&dl)return;this._setErrorState()}}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("error",b)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(b){if(this._container.addEventListener("contextmenu",a=>a.preventDefault()),this._geolocateButton=h.create("button","mapboxgl-ctrl-geolocate",this._container),h.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===b){a.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const c=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",c),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",c)}else{const d=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",d),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",d)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=h.create("div","mapboxgl-user-location"),this._dotElement.appendChild(h.create("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(h.create("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new dd({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=h.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new dd({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",b=>{b.geolocateSource||"ACTIVE_LOCK"!==this._watchState||b.originalEvent&&"resize"===b.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new a.Event("trackuserlocationend")))})}_onDeviceOrientation(a){this._userLocationDotMarker&&(a.webkitCompassHeading?this._heading=a.webkitCompassHeading:!0===a.absolute&&(this._heading=-1*a.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return a.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":dk--,dl=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new a.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&& void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let b;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++dk>1?(b={maximumAge:6e5,timeout:0},dl=!0):(b=this.options.positionOptions,dl=!1),this._geolocationWatchID=a.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,b),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else a.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const b=()=>{a.window.addEventListener("ondeviceorientationabsolute"in a.window?"deviceorientationabsolute":"deviceorientation",this._onDeviceOrientationListener)};void 0!==a.window.DeviceMotionEvent&&"function"==typeof a.window.DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then(a=>{"granted"===a&&b()}).catch(console.error):b()}_clearWatch(){a.window.navigator.geolocation.clearWatch(this._geolocationWatchID),a.window.removeEventListener("deviceorientation",this._onDeviceOrientationListener),a.window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientationListener),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:c8,ScaleControl:class{constructor(b){this.options=a.extend({},{maxWidth:100,unit:"metric"},b),a.bindAll(["_onMove","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_onMove(){dm(this._map,this._container,this.options)}onAdd(a){return this._map=a,this._container=h.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",a.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._onMove),this._map=void 0}setUnit(a){this.options.unit=a,dm(this._map,this._container,this.options)}},FullscreenControl:class{constructor(b){this._fullscreen=!1,b&&b.container&&(b.container instanceof a.window.HTMLElement?this._container=b.container:a.warnOnce("Full screen control 'container' must be a DOM element.")),a.bindAll(["_onClickFullscreen","_changeIcon",],this),"onfullscreenchange"in a.window.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in a.window.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(b){return this._map=b,this._container||(this._container=this._map.getContainer()),this._controlContainer=h.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",a.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,a.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!a.window.document.fullscreenEnabled&&!a.window.document.webkitFullscreenEnabled)}_setupUI(){const b=this._fullscreenButton=h.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);h.create("span","mapboxgl-ctrl-icon",b).setAttribute("aria-hidden",!0),b.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),a.window.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const a=this._getTitle();this._fullscreenButton.setAttribute("aria-label",a),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",a)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(a.window.document.fullscreenElement||a.window.document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?a.window.document.exitFullscreen?a.window.document.exitFullscreen():a.window.document.webkitCancelFullScreen&&a.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends a.Evented{constructor(b){super(),this.options=a.extend(Object.create({closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"}),b),a.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag",],this),this._classList=new Set(b&&b.className?b.className.trim().split(/\s+/):[])}addTo(b){return this._map&&this.remove(),this._map=b,this.options.closeOnClick&&this._map.on("preclick",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new a.Event("open")),this}isOpen(){return!!this._map}remove(){return this._content&&this._content.remove(),this._container&&(this._container.remove(),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new a.Event("close")),this}getLngLat(){return this._lngLat}setLngLat(b){return this._lngLat=a.LngLat.convert(b),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(b){return this.setDOMContent(a.window.document.createTextNode(b))}setHTML(b){const c=a.window.document.createDocumentFragment(),d=a.window.document.createElement("body");let f;for(d.innerHTML=b;f=d.firstChild;)c.appendChild(f);return this.setDOMContent(c)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(a){return this.options.maxWidth=a,this._update(),this}setDOMContent(a){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=h.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(a),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(a){return this._classList.add(a),this._container&&this._updateClassList(),this}removeClassName(a){return this._classList.delete(a),this._container&&this._updateClassList(),this}setOffset(a){return this.options.offset=a,this._update(),this}toggleClassName(a){let b;return this._classList.delete(a)?b=!1:(this._classList.add(a),b=!0),this._container&&this._updateClassList(),b}_createCloseButton(){this.options.closeButton&&(this._closeButton=h.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.setAttribute("aria-hidden","true"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_onMouseUp(a){this._update(a.point)}_onMouseMove(a){this._update(a.point)}_onDrag(a){this._update(a.point)}_getAnchor(a){if(this.options.anchor)return this.options.anchor;const b=this._pos,c=this._container.offsetWidth,d=this._container.offsetHeight;let f;return f=b.y+a.bottom.ythis._map.transform.height-d?["bottom"]:[],b.xthis._map.transform.width-c/2&&f.push("right"),0===f.length?"bottom":f.join("-")}_updateClassList(){const a=[...this._classList];a.push("mapboxgl-popup"),this._anchor&&a.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&a.push("mapboxgl-popup-track-pointer"),this._container.className=a.join(" ")}_update(b){if(this._map&&(this._lngLat||this._trackPointer)&&this._content){if(this._container||(this._container=h.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=h.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content)),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=db(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||b){const c=this._pos=this._trackPointer&&b?b:this._map.project(this._lngLat),d=function(b){if(b||(b=new a.pointGeometry(0,0)),"number"==typeof b){const c=Math.round(Math.sqrt(.5*Math.pow(b,2)));return{center:new a.pointGeometry(0,0),top:new a.pointGeometry(0,b),"top-left":new a.pointGeometry(c,c),"top-right":new a.pointGeometry(-c,c),bottom:new a.pointGeometry(0,-b),"bottom-left":new a.pointGeometry(c,-c),"bottom-right":new a.pointGeometry(-c,-c),left:new a.pointGeometry(b,0),right:new a.pointGeometry(-b,0)}}if(b instanceof a.pointGeometry||Array.isArray(b)){const d=a.pointGeometry.convert(b);return{center:d,top:d,"top-left":d,"top-right":d,bottom:d,"bottom-left":d,"bottom-right":d,left:d,right:d}}return{center:a.pointGeometry.convert(b.center||[0,0,]),top:a.pointGeometry.convert(b.top||[0,0]),"top-left":a.pointGeometry.convert(b["top-left"]||[0,0]),"top-right":a.pointGeometry.convert(b["top-right"]||[0,0]),bottom:a.pointGeometry.convert(b.bottom||[0,0,]),"bottom-left":a.pointGeometry.convert(b["bottom-left"]||[0,0]),"bottom-right":a.pointGeometry.convert(b["bottom-right"]||[0,0]),left:a.pointGeometry.convert(b.left||[0,0]),right:a.pointGeometry.convert(b.right||[0,0,])}}(this.options.offset),f=this._anchor=this._getAnchor(d),g=c.add(d[f]).round();this._map._requestDomTask(()=>{this._container&&f&&(this._container.style.transform=`${dc[f]} translate(${g.x}px,${g.y}px)`)})}this._updateClassList()}}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const a=this._container.querySelector("a[href], [tabindex]:not([tabindex='-1']), [contenteditable]:not([contenteditable='false']), button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled])");a&&a.focus()}_onClose(){this.remove()}_setOpacity(a){this._content&&(this._content.style.opacity=a),this._tip&&(this._tip.style.opacity=a)}},Marker:dd,Style:aY,LngLat:a.LngLat,LngLatBounds:a.LngLatBounds,Point:a.pointGeometry,MercatorCoordinate:a.MercatorCoordinate,FreeCameraOptions:ch,Evented:a.Evented,config:a.config,prewarm:function(){ab().acquire($)},clearPrewarmedResources:function(){const a=aa;a&&(a.isPreloaded()&&1===a.numActive()?(a.release($),aa=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return a.config.ACCESS_TOKEN},set accessToken(t){a.config.ACCESS_TOKEN=t},get baseApiUrl(){return a.config.API_URL},set baseApiUrl(t){a.config.API_URL=t},get workerCount(){return _.workerCount},set workerCount(e){_.workerCount=e},get maxParallelImageRequests(){return a.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){a.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage(b){a.clearTileCache(b)},workerUrl:"",workerClass:null,setNow:a.exported.setNow,restoreNow:a.exported.restoreNow};return dp}),c})}},]) + with id '${b.firstUndrapedLayer}' or create a map using optimizeForTerrain: true option.`)}_onStyleDataEvent(a){a.coord&&"source"===a.dataType?this._clearRenderCacheForTile(a.sourceCacheId,a.coord):"style"===a.dataType&&(this._invalidateRenderCache=!0)}_disable(){if(this.enabled&&(this.enabled=!1,this._sharedDepthStencil=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(const a in this._style._sourceCaches)this._style._sourceCaches[a].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this._emptyDepthBufferTexture&&this._emptyDepthBufferTexture.destroy(),this.pool.forEach(a=>a.fb.destroy()),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),delete this._depthFBO,delete this._depthTexture)}_source(){return this.enabled?this.sourceCache:null}exaggeration(){return this._exaggeration}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){const a=2*this.proxySourceCache.getSource().tileSize;return[a,a]}set useVertexMorphing(a){this._useVertexMorphing=a}updateTileBinding(b){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;const c=this.proxySourceCache,d=this.painter.transform;this._initializing&&(this._initializing=0===d._centerAltitude&& -1===this.getAtPointOrZero(a.MercatorCoordinate.fromLngLat(d.center),-1),this._emptyDEMTextureDirty=!this._initializing);const f=this.proxyCoords=c.getIds().map(a=>{const b=c.getTileByID(a).tileID;return b.projMatrix=d.calculateProjMatrix(b.toUnwrapped()),b});(function(b,c){const d=c.transform.pointCoordinate(c.transform.getCameraPoint()),f=new a.pointGeometry(d.x,d.y);b.sort((b,c)=>{if(c.overscaledZ-b.overscaledZ)return c.overscaledZ-b.overscaledZ;const d=new a.pointGeometry(b.canonical.x+(1<{this.proxyToSource[a.key]={}}),this.terrainTileForTile={};const h=this._style._sourceCaches;for(const i in h){const j=h[i];if(!j.used||(j!==this.sourceCache&&this.resetTileLookupCache(j.id),this._setupProxiedCoordsForOrtho(j,b[i],g),j.usedForTerrain))continue;const k=b[i];j.getSource().reparseOverscaled&&this._assignTerrainTiles(k)}this.proxiedCoords[c.id]=f.map(a=>new bk(a,a.key,this.orthoMatrix)),this._assignTerrainTiles(f),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(g),this.renderingToTexture=!1,this._updateTimestamp=a.exported.now();const l={};for(const m of(this._visibleDemTiles=[],this.proxyCoords)){const n=this.terrainTileForTile[m.key];if(!n)continue;const o=n.tileID.key;o in l||(this._visibleDemTiles.push(n),l[o]=o)}}_assignTerrainTiles(a){this._initializing||a.forEach(a=>{if(this.terrainTileForTile[a.key])return;const b=this._findTileCoveringTileID(a,this.sourceCache);b&&(this.terrainTileForTile[a.key]=b)})}_prepareDEMTextures(){const a=this.painter.context,b=a.gl;for(const c in this.terrainTileForTile){const d=this.terrainTileForTile[c],f=d.dem;f&&(!d.demTexture||d.needsDEMTextureUpload)&&(a.activeTexture.set(b.TEXTURE1),a7(this.painter,d,f))}}_prepareDemTileUniforms(a,b,c,d){if(!b||null==b.demTexture)return!1;const f=a.tileID.canonical,g=Math.pow(2,b.tileID.canonical.z-f.z),h=d||"";return c[`u_dem_tl${h}`]=[f.x*g%1,f.y*g%1,],c[`u_dem_scale${h}`]=g,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}get emptyDepthBufferTexture(){const b=this.painter.context,c=b.gl;if(!this._emptyDepthBufferTexture){const d={width:1,height:1,data:new Uint8Array([255,255,255,255,])};this._emptyDepthBufferTexture=new a.Texture(b,d,c.RGBA,{premultiply:!1})}return this._emptyDepthBufferTexture}_getLoadedAreaMinimum(){let a=0;const b=this._visibleDemTiles.reduce((b,c)=>{if(!c.dem)return b;const d=c.dem.tree.minimums[0];return d>0&&a++,b+d},0);return a?b/a:0}_updateEmptyDEMTexture(){const b=this.painter.context,c=b.gl;b.activeTexture.set(c.TEXTURE2);const d=this._getLoadedAreaMinimum(),f={width:1,height:1,data:new Uint8Array(a.DEMData.pack(d,this.sourceCache.getSource().encoding))};this._emptyDEMTextureDirty=!1;let g=this._emptyDEMTexture;return g?g.update(f,{premultiply:!1}):g=this._emptyDEMTexture=new a.Texture(b,f,c.RGBA,{premultiply:!1}),g}setupElevationDraw(b,c,d){var f;const g=this.painter.context,h=g.gl,i=(f=this.sourceCache.getSource().encoding,{u_dem:2,u_dem_prev:4,u_dem_unpack:a.DEMData.getUnpackVector(f),u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0,u_tile_tl_up:[0,0,1],u_tile_tr_up:[0,0,1],u_tile_br_up:[0,0,1],u_tile_bl_up:[0,0,1],u_tile_up_scale:1});i.u_dem_size=this.sourceCache.getSource().tileSize,i.u_exaggeration=this.exaggeration();const j=this.painter.transform,k=j.projection.createTileTransform(j,j.worldSize),l=b.tileID.canonical;i.u_tile_tl_up=k.upVector(l,0,0),i.u_tile_tr_up=k.upVector(l,a.EXTENT,0),i.u_tile_br_up=k.upVector(l,a.EXTENT,a.EXTENT),i.u_tile_bl_up=k.upVector(l,0,a.EXTENT),i.u_tile_up_scale=k.upVectorScale(l);let m=null,n=null,o=1;if(d&&d.morphing&&this._useVertexMorphing){const p=d.morphing.srcDemTile,q=d.morphing.dstDemTile;o=d.morphing.phase,p&&q&&(this._prepareDemTileUniforms(b,p,i,"_prev")&&(n=p),this._prepareDemTileUniforms(b,q,i)&&(m=q))}if(n&&m?(g.activeTexture.set(h.TEXTURE2),m.demTexture.bind(h.NEAREST,h.CLAMP_TO_EDGE,h.NEAREST),g.activeTexture.set(h.TEXTURE4),n.demTexture.bind(h.NEAREST,h.CLAMP_TO_EDGE,h.NEAREST),i.u_dem_lerp=o):(m=this.terrainTileForTile[b.tileID.key],g.activeTexture.set(h.TEXTURE2),(this._prepareDemTileUniforms(b,m,i)?m.demTexture:this.emptyDEMTexture).bind(h.NEAREST,h.CLAMP_TO_EDGE)),g.activeTexture.set(h.TEXTURE3),d&&d.useDepthForOcclusion?(this._depthTexture.bind(h.NEAREST,h.CLAMP_TO_EDGE),i.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height,]):(this.emptyDepthBufferTexture.bind(h.NEAREST,h.CLAMP_TO_EDGE),i.u_depth_size_inv=[1,1]),d&&d.useMeterToDem&&m){const r=(1<{if(k===a)return;const d=[];c&&d.push(be[l]),d.push(be[a]),d.push("PROJECTION_GLOBE_VIEW"),j=b.useProgram("globeRaster",null,d),k=a},n=b.colorModeForRenderPass(),o=new a.DepthMode(i.LEQUAL,a.DepthMode.ReadWrite,b.depthRangeFor3D);bd.update(g);const p=b.transform,q=a.calculateGlobeMatrix(p,p.worldSize),r=a.calculateGlobeMercatorMatrix(p),s=[a.mercatorXfromLng(p.center.lng),a.mercatorYfromLat(p.center.lat),],u=b.globeSharedBuffers;(l?[!1,!0]:[!1]).forEach(l=>{k=-1;const v=l?i.LINES:i.TRIANGLES;for(const w of f){const x=d.getTile(w),y=Math.pow(2,w.canonical.z),[z,A]=a.globeBuffersForTileMesh(b,x,w,y),B=a.StencilMode.disabled,C=c.prevTerrainTileForTile[w.key],D=c.terrainTileForTile[w.key];bc(C,D)&&bd.newMorphing(w.key,C,D,g,250),h.activeTexture.set(i.TEXTURE0),x.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE);const E=bd.getMorphValuesForProxy(w.key),F=E?1:0,G={};E&&a.extend$1(G,{morphing:{srcDemTile:E.from,dstDemTile:E.to,phase:a.easeCubicInOut(E.phase)}});const H=a.globeMatrixForTile(w.canonical,q),I=bb(p.projMatrix,H,r,a.globeToMercatorTransition(p.zoom),s);if(m(F,l),c.setupElevationDraw(x,j,G),b.prepareDrawProgram(h,j,w.toUnwrapped()),u){const[J,K]=l?u.getWirefameBuffer(b.context):[u.gridIndexBuffer,u.gridSegments,];j.draw(h,v,o,B,n,a.CullFaceMode.backCCW,I,"globe_raster",z,J,K)}if(!l){const L=[0===w.canonical.y?a.globePoleMatrixForTile(w.canonical,!1,p):null,w.canonical.y===y-1?a.globePoleMatrixForTile(w.canonical,!0,p):null,];for(const M of L){if(!M)continue;const N=bb(p.projMatrix,M,M,0,s);u&&j.draw(h,v,o,B,n,a.CullFaceMode.disabled,N,"globe_pole_raster",A,u.poleIndexBuffer,u.poleSegments)}}}})}(b,c,d,f,g);else{const h=b.context,i=h.gl;let j,k;const l=b.options.showTerrainWireframe?2:0,m=(a,c)=>{if(k===a)return;const d=[be[a]];c&&d.push(be[l]),j=b.useProgram("terrainRaster",null,d),k=a},n=b.colorModeForRenderPass(),o=new a.DepthMode(i.LEQUAL,a.DepthMode.ReadWrite,b.depthRangeFor3D);bd.update(g);const p=b.transform,q=6*Math.pow(1.5,22-p.zoom)*c.exaggeration();(l?[!1,!0]:[!1]).forEach(l=>{k=-1;const r=l?i.LINES:i.TRIANGLES,[s,u]=l?c.getWirefameBuffer():[c.gridIndexBuffer,c.gridSegments,];for(const v of f){const w=d.getTile(v),x=a.StencilMode.disabled,y=c.prevTerrainTileForTile[v.key],z=c.terrainTileForTile[v.key];bc(y,z)&&bd.newMorphing(v.key,y,z,g,250),h.activeTexture.set(i.TEXTURE0),w.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_NEAREST);const A=bd.getMorphValuesForProxy(v.key),B=A?1:0;let C;A&&(C={morphing:{srcDemTile:A.from,dstDemTile:A.to,phase:a.easeCubicInOut(A.phase)}});const D=ba(v.projMatrix,bf(v.canonical,p.renderWorldCopies)?q/10:q);m(B,l),c.setupElevationDraw(w,j,C),b.prepareDrawProgram(h,j,v.toUnwrapped()),j.draw(h,r,o,x,n,a.CullFaceMode.backCCW,D,"terrain_raster",c.gridBuffer,s,u)}})}}(c,this,this.proxySourceCache,b,this._updateTimestamp),this.renderingToTexture=!0,b.splice(0,b.length))}renderBatch(b){if(0===this._drapedRenderBatches.length)return b+1;this.renderingToTexture=!0;const c=this.painter,d=this.painter.context,f=this.proxySourceCache,g=this.proxiedCoords[f.id],h=this._drapedRenderBatches.shift(),i=[],j=c.style.order;let k=0;for(const l of g){const m=f.getTileByID(l.proxyTileKey),n=f.proxyCachedFBO[l.key]?f.proxyCachedFBO[l.key][b]:void 0,o=void 0!==n?f.renderCache[n]:this.pool[k++],p=void 0!==n;if(m.texture=o.tex,p&&!o.dirty){i.push(m.tileID);continue}let q;d.bindFramebuffer.set(o.fb.framebuffer),this.renderedToTile=!1,o.dirty&&(d.clear({color:a.Color.transparent,stencil:0}),o.dirty=!1);for(let r=h.start;r<=h.end;++r){const s=c.style._layers[j[r]];if(s.isHidden(c.transform.zoom))continue;const u=c.style._getLayerSourceCache(s),v=u?this.proxyToSource[l.key][u.id]:[l];if(!v)continue;const w=v;d.viewport.set([0,0,o.fb.width,o.fb.height,]),q!==(u?u.id:null)&&(this._setupStencil(o,v,s,u),q=u?u.id:null),c.renderLayer(c,u,s,w)}this.renderedToTile?(o.dirty=!0,i.push(m.tileID)):p|| --k,5===k&&(k=0,this.renderToBackBuffer(i))}return this.renderToBackBuffer(i),this.renderingToTexture=!1,d.bindFramebuffer.set(null),d.viewport.set([0,0,c.width,c.height]),h.end+1}postRender(){}renderCacheEfficiency(a){const b=a.order.length;if(0===b)return{efficiency:100};let c,d=0,f=0,g=!1;for(let h=0;ha.dem).forEach(b=>{a=Math.min(a,b.dem.tree.minimums[0])}),0===a?a:(a-30)*this._exaggeration}raycast(a,b,c){if(!this._visibleDemTiles)return null;const d=this._visibleDemTiles.filter(a=>a.dem).map(d=>{const f=d.tileID,g=Math.pow(2,f.overscaledZ),{x:h,y:i}=f.canonical,j=h/g,k=(h+1)/g,l=i/g,m=(i+1)/g;return{minx:j,miny:l,maxx:k,maxy:m,t:d.dem.tree.raycastRoot(j,l,k,m,a,b,c),tile:d}});for(const f of(d.sort((a,b)=>(null!==a.t?a.t:Number.MAX_VALUE)-(null!==b.t?b.t:Number.MAX_VALUE)),d)){if(null==f.t)break;const g=f.tile.dem.tree.raycast(f.minx,f.miny,f.maxx,f.maxy,a,b,c);if(null!=g)return g}return null}_createFBO(){const b=this.painter.context,c=b.gl,d=this.drapeBufferSize;b.activeTexture.set(c.TEXTURE0);const f=new a.Texture(b,{width:d[0],height:d[1],data:null},c.RGBA);f.bind(c.LINEAR,c.CLAMP_TO_EDGE);const g=b.createFramebuffer(d[0],d[1],!1);return g.colorAttachment.set(f.texture),g.depthAttachment=new J(b,g.framebuffer),void 0===this._sharedDepthStencil?(this._sharedDepthStencil=b.createRenderbuffer(b.gl.DEPTH_STENCIL,d[0],d[1]),this._stencilRef=0,g.depthAttachment.set(this._sharedDepthStencil),b.clear({stencil:0})):g.depthAttachment.set(this._sharedDepthStencil),b.extTextureFilterAnisotropic&&!b.extTextureFilterAnisotropicForceOff&&c.texParameterf(c.TEXTURE_2D,b.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,b.extTextureFilterAnisotropicMax),{fb:g,tex:f,dirty:!1}}_initFBOPool(){for(;this.pool.length{const b=this._style._layers[a],c=b.isHidden(this.painter.transform.zoom),d=b.getCrossfadeParameters(),f=!!d&&1!==d.t,g=b.hasTransition();return"custom"!==b.type&&!c&&(f||g)})}_clearRasterFadeFromRenderCache(){let a=!1;for(const b in this._style._sourceCaches)if(this._style._sourceCaches[b]._source instanceof P){a=!0;break}if(a)for(let c=0;cb.renderCachePool.length){const c=Object.values(b.proxyCachedFBO);b.proxyCachedFBO={};for(let d=0;d=0;i--){const j=g[i];if(b.getTileByID(j.key),void 0!==b.proxyCachedFBO[j.key]){const k=a[j.key],l=this.proxyToSource[j.key];let m=0;for(const n in l){const o=l[n],p=k[n];if(!p||p.length!==o.length||o.some((a,b)=>a!==p[b]||h[n]&&h[n].hasOwnProperty(a.key))){m=-1;break}++m}for(const q in b.proxyCachedFBO[j.key])b.renderCache[b.proxyCachedFBO[j.key][q]].dirty=m<0||m!==Object.values(k).length}}const r=[...this._drapedRenderBatches];for(const s of(r.sort((a,b)=>b.end-b.start-(a.end-a.start)),r))for(const u of g){if(b.proxyCachedFBO[u.key])continue;let v=b.renderCachePool.pop();void 0===v&&b.renderCache.length<50&&(v=b.renderCache.length,b.renderCache.push(this._createFBO())),void 0!==v&&(b.proxyCachedFBO[u.key]={},b.proxyCachedFBO[u.key][s.start]=v,b.renderCache[v].dirty=!0)}this._tilesDirty={}}_setupStencil(a,b,c,d){if(!d||!this._sourceTilesOverlap[d.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const f=this.painter.context,g=f.gl;if(b.length<=1)return void(this._overlapStencilType=!1);let h;if(c.isTileClipped())h=b.length,this._overlapStencilMode.test={func:g.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(b[0].overscaledZ>b[b.length-1].overscaledZ))return void(this._overlapStencilType=!1);h=1,this._overlapStencilMode.test={func:g.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+h>255&&(f.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=h,this._overlapStencilMode.ref=this._stencilRef,c.isTileClipped()&&this._renderTileClippingMasks(b,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return"Clip"===this._overlapStencilType||"Mask"===this._overlapStencilType}stencilModeForRTTOverlap(b){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[b.key]),this._overlapStencilMode):a.StencilMode.disabled}_renderTileClippingMasks(b,c){const d=this.painter,f=this.painter.context,g=f.gl;d._tileClippingMaskIDs={},f.setColorMode(a.ColorMode.disabled),f.setDepthMode(a.DepthMode.disabled);const h=d.useProgram("clippingMask");for(const i of b){const j=d._tileClippingMaskIDs[i.key]=--c;h.draw(f,g.TRIANGLES,a.DepthMode.disabled,new a.StencilMode({func:g.ALWAYS,mask:0},j,255,g.KEEP,g.KEEP,g.REPLACE),a.ColorMode.disabled,a.CullFaceMode.disabled,bg(i.projMatrix),"$clipping",d.tileExtentBuffer,d.quadTriangleIndexBuffer,d.tileExtentSegments)}}pointCoordinate(b){const c=this.painter.transform;if(b.x<0||b.x>c.width||b.y<0||b.y>c.height)return null;const d=[b.x,b.y,1,1];a.transformMat4$1(d,d,c.pixelMatrixInverse),a.scale$1(d,d,1/d[3]),d[0]/=c.worldSize,d[1]/=c.worldSize;const f=c._camera.position,g=a.mercatorZfromAltitude(1,c.center.lat),h=[f[0],f[1],f[2]/g,0],i=a.subtract([],d.slice(0,3),h);a.normalize(i,i);const j=this.raycast(h,i,this._exaggeration);return null!==j&&j?(a.scaleAndAdd(h,h,i,j),h[3]=h[2],h[2]*=g,h):null}drawDepth(){const b=this.painter,c=b.context,d=this.proxySourceCache,f=Math.ceil(b.width),g=Math.ceil(b.height);if(this._depthFBO&&(this._depthFBO.width!==f||this._depthFBO.height!==g)&&(this._depthFBO.destroy(),delete this._depthFBO,delete this._depthTexture),!this._depthFBO){const h=c.gl,i=c.createFramebuffer(f,g,!0);c.activeTexture.set(h.TEXTURE0);const j=new a.Texture(c,{width:f,height:g,data:null},h.RGBA);j.bind(h.NEAREST,h.CLAMP_TO_EDGE),i.colorAttachment.set(j.texture);const k=c.createRenderbuffer(c.gl.DEPTH_COMPONENT16,f,g);i.depthAttachment.set(k),this._depthFBO=i,this._depthTexture=j}c.bindFramebuffer.set(this._depthFBO.framebuffer),c.viewport.set([0,0,f,g]),function(b,c,d,f){if("globe"===b.transform.projection.name)return;const g=b.context,h=g.gl;g.clear({depth:1});const i=b.useProgram("terrainDepth"),j=new a.DepthMode(h.LESS,a.DepthMode.ReadWrite,b.depthRangeFor3D);for(const k of f){const l=d.getTile(k),m=ba(k.projMatrix,0);c.setupElevationDraw(l,i),i.draw(g,h.TRIANGLES,j,a.StencilMode.disabled,a.ColorMode.unblended,a.CullFaceMode.backCCW,m,"terrain_depth",c.gridBuffer,c.gridIndexBuffer,c.gridNoSkirtSegments)}}(b,this,d,this.proxyCoords)}_setupProxiedCoordsForOrtho(a,b,c){if(a.getSource() instanceof S)return this._setupProxiedCoordsForImageSource(a,b,c);this._findCoveringTileCache[a.id]=this._findCoveringTileCache[a.id]||{};const d=this.proxiedCoords[a.id]=[],f=this.proxyCoords;for(let g=0;g(a.min.x=Math.min(a.min.x,b.x-i.x),a.min.y=Math.min(a.min.y,b.y-i.y),a.max.x=Math.max(a.max.x,b.x-i.x),a.max.y=Math.max(a.max.y,b.y-i.y),a),{min:new a.pointGeometry(Number.MAX_VALUE,Number.MAX_VALUE),max:new a.pointGeometry(-Number.MAX_VALUE,-Number.MAX_VALUE)}),k=(b,c)=>{const d=b.wrap+b.canonical.x/(1<h+j.max.x||f+gi+j.max.y};for(let l=0;la.key===c.tileID.key);if(g)return g}if(c.tileID.key!==b.key){const h=b.canonical.z-c.tileID.canonical.z;let i,j,k;f=a.create();const l=c.tileID.wrap-b.wrap<0?(j=(i=a.EXTENT>>h)*((c.tileID.canonical.x<=l){const m=b.canonical.z-l;c.getSource().reparseOverscaled?(i=Math.max(b.canonical.z+2,c.transform.tileZoom),h=new a.OverscaledTileID(i,b.wrap,l,b.canonical.x>>m,b.canonical.y>>m)):0!==m&&(i=l,h=new a.OverscaledTileID(i,b.wrap,l,b.canonical.x>>m,b.canonical.y>>m))}h.key!==b.key&&(k.push(h.key),d=c.getTile(h))}const n=a=>{k.forEach(b=>{f[b]=a}),k.length=0};for(i-=1;i>=j&&(!d||!d.hasData());i--){d&&n(d.tileID.key);const o=h.calculateScaledKey(i);if((d=c.getTileByID(o))&&d.hasData())break;const p=f[o];if(null===p)break;void 0===p?k.push(o):d=c.getTileByID(p)}return n(d?d.tileID.key:null),d&&d.hasData()?d:null}findDEMTileFor(a){return this.enabled?this._findTileCoveringTileID(a,this.sourceCache):null}prepareDrawTile(a){this.renderedToTile=!0}_clearRenderCacheForTile(a,b){let c=this._tilesDirty[a];c||(c=this._tilesDirty[a]={}),c[b.key]=!0}getWirefameBuffer(){if(!this.wireframeSegments){const b=function(b){let c,d,f;const g=new a.StructArrayLayout2ui4,h=131;for(d=1;d<129;d++){for(c=1;c<129;c++)f=d*h+c,g.emplaceBack(f,f+1),g.emplaceBack(f,f+h),g.emplaceBack(f+1,f+h),128===d&&g.emplaceBack(f+h,f+h+1);g.emplaceBack(f+1,f+1+h)}return g}();this.wireframeIndexBuffer=this.painter.context.createIndexBuffer(b),this.wireframeSegments=a.SegmentVector.simpleSegment(0,0,this.gridBuffer.length,b.length)}return[this.wireframeIndexBuffer,this.wireframeSegments,]}}function bm(a){const b=[];for(let c=0;cu.indexOf(v)&&u.push(v);let w=f?f.defines():[];w=w.concat(h.map(a=>`#define ${a}`));const x=w.concat("\n#ifdef GL_ES\nprecision mediump float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif",a2,a1.fragmentSource,a0.fragmentSource,d.fragmentSource).join("\n"),y=w.concat("\n#ifdef GL_ES\nprecision highp float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif",a2,a1.vertexSource,a0.vertexSource,a_.vertexSource,d.vertexSource).join("\n"),z=m.createShader(m.FRAGMENT_SHADER);if(m.isContextLost())return void(this.failedToCreate=!0);m.shaderSource(z,x),m.compileShader(z),m.attachShader(this.program,z);const A=m.createShader(m.VERTEX_SHADER);if(m.isContextLost())return void(this.failedToCreate=!0);m.shaderSource(A,y),m.compileShader(A),m.attachShader(this.program,A),this.attributes={};const B={};this.numAttributes=p.length;for(let C=0;C>16,i>>16],u_pixel_coord_lower:[65535&h,65535&i]}}const bp=(b,c,d,f)=>{const g=c.style.light,h=g.properties.get("position"),i=[h.x,h.y,h.z],j=a.create$1();"viewport"===g.properties.get("anchor")&&(a.fromRotation(j,-c.transform.angle),a.transformMat3(i,i,j));const k=g.properties.get("color");return{u_matrix:b,u_lightpos:i,u_lightintensity:g.properties.get("intensity"),u_lightcolor:[k.r,k.g,k.b],u_vertical_gradient:+d,u_opacity:f}},bq=(b,c,d,f,g,h,i)=>a.extend(bp(b,c,d,f),bo(h,c,i),{u_height_factor:-Math.pow(2,g.overscaledZ)/i.tileSize/8}),br=a=>({u_matrix:a}),bs=(b,c,d,f)=>a.extend(br(b),bo(d,c,f)),bt=(a,b)=>({u_matrix:a,u_world:b}),bu=(b,c,d,f,g)=>a.extend(bs(b,c,d,f),{u_world:g}),bv=(b,c,d,f)=>{const g=b.transform;let h;return h="map"===f.paint.get("circle-pitch-alignment")?g.calculatePixelsToTileUnitsMatrix(d):new Float32Array([g.pixelsToGLUnits[0],0,0,g.pixelsToGLUnits[1],]),{u_camera_to_center_distance:g.cameraToCenterDistance,u_matrix:b.translatePosMatrix(c.projMatrix,d,f.paint.get("circle-translate"),f.paint.get("circle-translate-anchor")),u_device_pixel_ratio:a.exported.devicePixelRatio,u_extrude_scale:h}},bw=a=>{const b=[];return"map"===a.paint.get("circle-pitch-alignment")&&b.push("PITCH_WITH_MAP"),"map"===a.paint.get("circle-pitch-scale")&&b.push("SCALE_WITH_MAP"),b},bx=(b,c,d)=>{const f=a.EXTENT/d.tileSize;return{u_matrix:b,u_camera_to_center_distance:c.cameraToCenterDistance,u_extrude_scale:[c.pixelsToGLUnits[0]/f,c.pixelsToGLUnits[1]/f,]}},by=(a,b,c=1)=>({u_matrix:a,u_color:b,u_overlay:0,u_overlay_scale:c}),bz=(a,b,c,d)=>({u_matrix:a,u_extrude_scale:C(b,1,c),u_intensity:d}),bA=(b,c,d,f,g,h)=>{const i=b.transform,j=i.calculatePixelsToTileUnitsMatrix(c),k={u_matrix:bD(b,c,d,g),u_pixels_to_tile_units:j,u_device_pixel_ratio:a.exported.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1],],u_dash_image:0,u_gradient_image:1,u_image_height:h,u_texsize:[0,0],u_scale:[0,0,0],u_mix:0,u_alpha_discard_threshold:0};if(bE(d)){const l=bC(c,b.transform);k.u_texsize=c.lineAtlasTexture.size,k.u_scale=[l,f.fromScale,f.toScale,],k.u_mix=f.t}return k},bB=(b,c,d,f,g)=>{const h=b.transform,i=bC(c,h);return{u_matrix:bD(b,c,d,g),u_texsize:c.imageAtlasTexture.size,u_pixels_to_tile_units:h.calculatePixelsToTileUnitsMatrix(c),u_device_pixel_ratio:a.exported.devicePixelRatio,u_image:0,u_scale:[i,f.fromScale,f.toScale],u_fade:f.t,u_units_to_pixels:[1/h.pixelsToGLUnits[0],1/h.pixelsToGLUnits[1],],u_alpha_discard_threshold:0}};function bC(a,b){return 1/C(a,1,b.tileZoom)}function bD(a,b,c,d){return a.translatePosMatrix(d||b.tileID.projMatrix,b,c.paint.get("line-translate"),c.paint.get("line-translate-anchor"))}function bE(a){const b=a.paint.get("line-dasharray").value;return b.value||"constant"!==b.kind}const bF=(a,b,c,d,f,g)=>{var h,i;return{u_matrix:a,u_tl_parent:b,u_scale_parent:c,u_fade_t:d.mix,u_opacity:d.opacity*f.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:f.paint.get("raster-brightness-min"),u_brightness_high:f.paint.get("raster-brightness-max"),u_saturation_factor:(i=f.paint.get("raster-saturation"))>0?1-1/(1.001-i):-i,u_contrast_factor:(h=f.paint.get("raster-contrast"))>0?1/(1-h):1+h,u_spin_weights:bG(f.paint.get("raster-hue-rotate")),u_perspective_transform:g}};function bG(a){a*=Math.PI/180;const b=Math.sin(a),c=Math.cos(a);return[(2*c+1)/3,(-Math.sqrt(3)*b-c+1)/3,(Math.sqrt(3)*b-c+1)/3,]}const bH=(a,b,c,d,f,g,h,i,j,k,l,m,n,o)=>{const p=f.transform;return{u_is_size_zoom_constant:+("constant"===a||"source"===a),u_is_size_feature_constant:+("constant"===a||"camera"===a),u_size_t:b?b.uSizeT:0,u_size:b?b.uSize:0,u_camera_to_center_distance:p.cameraToCenterDistance,u_pitch:p.pitch/360*2*Math.PI,u_rotate_symbol:+c,u_aspect_ratio:p.width/p.height,u_fade_change:f.options.fadeDuration?f.symbolFadeChange:1,u_matrix:g,u_label_plane_matrix:h,u_coord_matrix:i,u_is_text:+j,u_pitch_with_map:+d,u_texsize:k,u_tile_id:l,u_zoom_transition:m,u_inv_rot_matrix:n,u_merc_center:o,u_texture:0}},bI=(b,c,d,f,g,h,i,j,k,l,m,n,o,p,q)=>{const{cameraToCenterDistance:r,_pitch:s}=g.transform;return a.extend(bH(b,c,d,f,g,h,i,j,k,l,n,o,p,q),{u_gamma_scale:f?r*Math.cos(g.terrain?0:s):1,u_device_pixel_ratio:a.exported.devicePixelRatio,u_is_halo:+m})},bJ=(b,c,d,f,g,h,i,j,k,l,m,n,o,p)=>a.extend(bI(b,c,d,f,g,h,i,j,!0,k,!0,m,n,o,p),{u_texsize_icon:l,u_texture_icon:1}),bK=(a,b,c)=>({u_matrix:a,u_opacity:b,u_color:c}),bL=(b,c,d,f,g,h)=>a.extend(function(a,b,c,d){const f=c.imageManager.getPattern(a.from.toString()),g=c.imageManager.getPattern(a.to.toString()),{width:h,height:i}=c.imageManager.getPixelSize(),j=Math.pow(2,d.tileID.overscaledZ),k=d.tileSize*Math.pow(2,c.transform.tileZoom)/j,l=k*(d.tileID.canonical.x+d.tileID.wrap*j),m=k*d.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:f.tl,u_pattern_br_a:f.br,u_pattern_tl_b:g.tl,u_pattern_br_b:g.br,u_texsize:[h,i],u_mix:b.t,u_pattern_size_a:f.displaySize,u_pattern_size_b:g.displaySize,u_scale_a:b.fromScale,u_scale_b:b.toScale,u_tile_units_to_pixels:1/C(d,1,c.transform.tileZoom),u_pixel_coord_upper:[l>>16,m>>16,],u_pixel_coord_lower:[65535&l,65535&m,]}}(f,h,d,g),{u_matrix:b,u_opacity:c}),bM={fillExtrusion:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_lightpos:new a.Uniform3f(b,c.u_lightpos),u_lightintensity:new a.Uniform1f(b,c.u_lightintensity),u_lightcolor:new a.Uniform3f(b,c.u_lightcolor),u_vertical_gradient:new a.Uniform1f(b,c.u_vertical_gradient),u_opacity:new a.Uniform1f(b,c.u_opacity)}),fillExtrusionPattern:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_lightpos:new a.Uniform3f(b,c.u_lightpos),u_lightintensity:new a.Uniform1f(b,c.u_lightintensity),u_lightcolor:new a.Uniform3f(b,c.u_lightcolor),u_vertical_gradient:new a.Uniform1f(b,c.u_vertical_gradient),u_height_factor:new a.Uniform1f(b,c.u_height_factor),u_image:new a.Uniform1i(b,c.u_image),u_texsize:new a.Uniform2f(b,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(b,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(b,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(b,c.u_scale),u_fade:new a.Uniform1f(b,c.u_fade),u_opacity:new a.Uniform1f(b,c.u_opacity)}),fill:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix)}),fillPattern:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_image:new a.Uniform1i(b,c.u_image),u_texsize:new a.Uniform2f(b,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(b,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(b,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(b,c.u_scale),u_fade:new a.Uniform1f(b,c.u_fade)}),fillOutline:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_world:new a.Uniform2f(b,c.u_world)}),fillOutlinePattern:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_world:new a.Uniform2f(b,c.u_world),u_image:new a.Uniform1i(b,c.u_image),u_texsize:new a.Uniform2f(b,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(b,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(b,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(b,c.u_scale),u_fade:new a.Uniform1f(b,c.u_fade)}),circle:(b,c)=>({u_camera_to_center_distance:new a.Uniform1f(b,c.u_camera_to_center_distance),u_extrude_scale:new a.UniformMatrix2f(b,c.u_extrude_scale),u_device_pixel_ratio:new a.Uniform1f(b,c.u_device_pixel_ratio),u_matrix:new a.UniformMatrix4f(b,c.u_matrix)}),collisionBox:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_camera_to_center_distance:new a.Uniform1f(b,c.u_camera_to_center_distance),u_extrude_scale:new a.Uniform2f(b,c.u_extrude_scale)}),collisionCircle:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_inv_matrix:new a.UniformMatrix4f(b,c.u_inv_matrix),u_camera_to_center_distance:new a.Uniform1f(b,c.u_camera_to_center_distance),u_viewport_size:new a.Uniform2f(b,c.u_viewport_size)}),debug:(b,c)=>({u_color:new a.UniformColor(b,c.u_color),u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_overlay:new a.Uniform1i(b,c.u_overlay),u_overlay_scale:new a.Uniform1f(b,c.u_overlay_scale)}),clippingMask:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix)}),heatmap:(b,c)=>({u_extrude_scale:new a.Uniform1f(b,c.u_extrude_scale),u_intensity:new a.Uniform1f(b,c.u_intensity),u_matrix:new a.UniformMatrix4f(b,c.u_matrix)}),heatmapTexture:(b,c)=>({u_image:new a.Uniform1i(b,c.u_image),u_color_ramp:new a.Uniform1i(b,c.u_color_ramp),u_opacity:new a.Uniform1f(b,c.u_opacity)}),hillshade:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_image:new a.Uniform1i(b,c.u_image),u_latrange:new a.Uniform2f(b,c.u_latrange),u_light:new a.Uniform2f(b,c.u_light),u_shadow:new a.UniformColor(b,c.u_shadow),u_highlight:new a.UniformColor(b,c.u_highlight),u_accent:new a.UniformColor(b,c.u_accent)}),hillshadePrepare:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_image:new a.Uniform1i(b,c.u_image),u_dimension:new a.Uniform2f(b,c.u_dimension),u_zoom:new a.Uniform1f(b,c.u_zoom),u_unpack:new a.Uniform4f(b,c.u_unpack)}),line:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_pixels_to_tile_units:new a.UniformMatrix2f(b,c.u_pixels_to_tile_units),u_device_pixel_ratio:new a.Uniform1f(b,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(b,c.u_units_to_pixels),u_dash_image:new a.Uniform1i(b,c.u_dash_image),u_gradient_image:new a.Uniform1i(b,c.u_gradient_image),u_image_height:new a.Uniform1f(b,c.u_image_height),u_texsize:new a.Uniform2f(b,c.u_texsize),u_scale:new a.Uniform3f(b,c.u_scale),u_mix:new a.Uniform1f(b,c.u_mix),u_alpha_discard_threshold:new a.Uniform1f(b,c.u_alpha_discard_threshold)}),linePattern:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_texsize:new a.Uniform2f(b,c.u_texsize),u_pixels_to_tile_units:new a.UniformMatrix2f(b,c.u_pixels_to_tile_units),u_device_pixel_ratio:new a.Uniform1f(b,c.u_device_pixel_ratio),u_image:new a.Uniform1i(b,c.u_image),u_units_to_pixels:new a.Uniform2f(b,c.u_units_to_pixels),u_scale:new a.Uniform3f(b,c.u_scale),u_fade:new a.Uniform1f(b,c.u_fade),u_alpha_discard_threshold:new a.Uniform1f(b,c.u_alpha_discard_threshold)}),raster:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_tl_parent:new a.Uniform2f(b,c.u_tl_parent),u_scale_parent:new a.Uniform1f(b,c.u_scale_parent),u_fade_t:new a.Uniform1f(b,c.u_fade_t),u_opacity:new a.Uniform1f(b,c.u_opacity),u_image0:new a.Uniform1i(b,c.u_image0),u_image1:new a.Uniform1i(b,c.u_image1),u_brightness_low:new a.Uniform1f(b,c.u_brightness_low),u_brightness_high:new a.Uniform1f(b,c.u_brightness_high),u_saturation_factor:new a.Uniform1f(b,c.u_saturation_factor),u_contrast_factor:new a.Uniform1f(b,c.u_contrast_factor),u_spin_weights:new a.Uniform3f(b,c.u_spin_weights),u_perspective_transform:new a.Uniform2f(b,c.u_perspective_transform)}),symbolIcon:(b,c)=>({u_is_size_zoom_constant:new a.Uniform1i(b,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(b,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(b,c.u_size_t),u_size:new a.Uniform1f(b,c.u_size),u_camera_to_center_distance:new a.Uniform1f(b,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(b,c.u_pitch),u_rotate_symbol:new a.Uniform1i(b,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(b,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(b,c.u_fade_change),u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(b,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(b,c.u_coord_matrix),u_is_text:new a.Uniform1i(b,c.u_is_text),u_pitch_with_map:new a.Uniform1i(b,c.u_pitch_with_map),u_texsize:new a.Uniform2f(b,c.u_texsize),u_tile_id:new a.Uniform3f(b,c.u_tile_id),u_zoom_transition:new a.Uniform1f(b,c.u_zoom_transition),u_inv_rot_matrix:new a.UniformMatrix4f(b,c.u_inv_rot_matrix),u_merc_center:new a.Uniform2f(b,c.u_merc_center),u_texture:new a.Uniform1i(b,c.u_texture)}),symbolSDF:(b,c)=>({u_is_size_zoom_constant:new a.Uniform1i(b,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(b,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(b,c.u_size_t),u_size:new a.Uniform1f(b,c.u_size),u_camera_to_center_distance:new a.Uniform1f(b,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(b,c.u_pitch),u_rotate_symbol:new a.Uniform1i(b,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(b,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(b,c.u_fade_change),u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(b,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(b,c.u_coord_matrix),u_is_text:new a.Uniform1i(b,c.u_is_text),u_pitch_with_map:new a.Uniform1i(b,c.u_pitch_with_map),u_texsize:new a.Uniform2f(b,c.u_texsize),u_texture:new a.Uniform1i(b,c.u_texture),u_gamma_scale:new a.Uniform1f(b,c.u_gamma_scale),u_device_pixel_ratio:new a.Uniform1f(b,c.u_device_pixel_ratio),u_tile_id:new a.Uniform3f(b,c.u_tile_id),u_zoom_transition:new a.Uniform1f(b,c.u_zoom_transition),u_inv_rot_matrix:new a.UniformMatrix4f(b,c.u_inv_rot_matrix),u_merc_center:new a.Uniform2f(b,c.u_merc_center),u_is_halo:new a.Uniform1i(b,c.u_is_halo)}),symbolTextAndIcon:(b,c)=>({u_is_size_zoom_constant:new a.Uniform1i(b,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(b,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(b,c.u_size_t),u_size:new a.Uniform1f(b,c.u_size),u_camera_to_center_distance:new a.Uniform1f(b,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(b,c.u_pitch),u_rotate_symbol:new a.Uniform1i(b,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(b,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(b,c.u_fade_change),u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(b,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(b,c.u_coord_matrix),u_is_text:new a.Uniform1i(b,c.u_is_text),u_pitch_with_map:new a.Uniform1i(b,c.u_pitch_with_map),u_texsize:new a.Uniform2f(b,c.u_texsize),u_texsize_icon:new a.Uniform2f(b,c.u_texsize_icon),u_texture:new a.Uniform1i(b,c.u_texture),u_texture_icon:new a.Uniform1i(b,c.u_texture_icon),u_gamma_scale:new a.Uniform1f(b,c.u_gamma_scale),u_device_pixel_ratio:new a.Uniform1f(b,c.u_device_pixel_ratio),u_is_halo:new a.Uniform1i(b,c.u_is_halo)}),background:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_opacity:new a.Uniform1f(b,c.u_opacity),u_color:new a.UniformColor(b,c.u_color)}),backgroundPattern:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_opacity:new a.Uniform1f(b,c.u_opacity),u_image:new a.Uniform1i(b,c.u_image),u_pattern_tl_a:new a.Uniform2f(b,c.u_pattern_tl_a),u_pattern_br_a:new a.Uniform2f(b,c.u_pattern_br_a),u_pattern_tl_b:new a.Uniform2f(b,c.u_pattern_tl_b),u_pattern_br_b:new a.Uniform2f(b,c.u_pattern_br_b),u_texsize:new a.Uniform2f(b,c.u_texsize),u_mix:new a.Uniform1f(b,c.u_mix),u_pattern_size_a:new a.Uniform2f(b,c.u_pattern_size_a),u_pattern_size_b:new a.Uniform2f(b,c.u_pattern_size_b),u_scale_a:new a.Uniform1f(b,c.u_scale_a),u_scale_b:new a.Uniform1f(b,c.u_scale_b),u_pixel_coord_upper:new a.Uniform2f(b,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(b,c.u_pixel_coord_lower),u_tile_units_to_pixels:new a.Uniform1f(b,c.u_tile_units_to_pixels)}),terrainRaster:a9,terrainDepth:a9,skybox:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_sun_direction:new a.Uniform3f(b,c.u_sun_direction),u_cubemap:new a.Uniform1i(b,c.u_cubemap),u_opacity:new a.Uniform1f(b,c.u_opacity),u_temporal_offset:new a.Uniform1f(b,c.u_temporal_offset)}),skyboxGradient:(b,c)=>({u_matrix:new a.UniformMatrix4f(b,c.u_matrix),u_color_ramp:new a.Uniform1i(b,c.u_color_ramp),u_center_direction:new a.Uniform3f(b,c.u_center_direction),u_radius:new a.Uniform1f(b,c.u_radius),u_opacity:new a.Uniform1f(b,c.u_opacity),u_temporal_offset:new a.Uniform1f(b,c.u_temporal_offset)}),skyboxCapture:(b,c)=>({u_matrix_3f:new a.UniformMatrix3f(b,c.u_matrix_3f),u_sun_direction:new a.Uniform3f(b,c.u_sun_direction),u_sun_intensity:new a.Uniform1f(b,c.u_sun_intensity),u_color_tint_r:new a.Uniform4f(b,c.u_color_tint_r),u_color_tint_m:new a.Uniform4f(b,c.u_color_tint_m),u_luminance:new a.Uniform1f(b,c.u_luminance)}),globeRaster:(b,c)=>({u_proj_matrix:new a.UniformMatrix4f(b,c.u_proj_matrix),u_globe_matrix:new a.UniformMatrix4f(b,c.u_globe_matrix),u_merc_matrix:new a.UniformMatrix4f(b,c.u_merc_matrix),u_zoom_transition:new a.Uniform1f(b,c.u_zoom_transition),u_merc_center:new a.Uniform2f(b,c.u_merc_center),u_image0:new a.Uniform1i(b,c.u_image0)}),globeAtmosphere:(b,c)=>({u_center:new a.Uniform2f(b,c.u_center),u_radius:new a.Uniform1f(b,c.u_radius),u_screen_size:new a.Uniform2f(b,c.u_screen_size),u_pixel_ratio:new a.Uniform1f(b,c.u_pixel_ratio),u_opacity:new a.Uniform1f(b,c.u_opacity),u_fadeout_range:new a.Uniform1f(b,c.u_fadeout_range),u_start_color:new a.Uniform3f(b,c.u_start_color),u_end_color:new a.Uniform3f(b,c.u_end_color)})};let bN;function bO(b,c,d,f,g,h,i){var j;const k=b.context,l=k.gl,m=b.useProgram("collisionBox"),n=[];let o=0,p=0;for(let q=0;q0){const y=a.create(),z=v;a.mul(y,u.placementInvProjMatrix,b.transform.glCoordMatrix),a.mul(y,y,u.placementViewportMatrix),n.push({circleArray:x,circleOffset:p,transform:z,invTransform:y}),o+=x.length/4,p=o}w&&(b.terrain&&b.terrain.setupElevationDraw(s,m),m.draw(k,l.LINES,a.DepthMode.disabled,a.StencilMode.disabled,b.colorModeForRenderPass(),a.CullFaceMode.disabled,bx(v,b.transform,s),d.id,w.layoutVertexBuffer,w.indexBuffer,w.segments,null,b.transform.zoom,null,w.collisionVertexBuffer,w.collisionVertexBufferExt))}if(!i||!n.length)return;const A=b.useProgram("collisionCircle"),B=new a.StructArrayLayout2f1f2i16;B.resize(4*o),B._trim();let C=0;for(const D of n)for(let E=0;E[0,0,0];p.clear();for(let w=0;w=0&&(r[x.associatedIconIndex]={shiftedAnchor:L,angle:M})}else aC(x.numGlyphs,p)}if(m){q.clear();const O=b.icon.placedSymbolArray;for(let P=0;P[0,0,0];au(I,G.projMatrix,b,g,$,aa,u,l,ae,G)}const af=b.translatePosMatrix(G.projMatrix,H,h,i),ag=v||g&&B||ac?bP:$,ah=b.translatePosMatrix(aa,H,h,i,!0),ai=L&&0!==d.paint.get(g?"text-halo-width":"icon-halo-width").constantOr(1);let aj;const ak=r.createInversionMatrix(G.toUnwrapped());aj=L?I.iconsInText?bJ(M.kind,P,w,u,b,af,ag,ah,R,V,Q,D,ak,A):bI(M.kind,P,w,u,b,af,ag,ah,g,R,!0,Q,D,ak,A):bH(M.kind,P,w,u,b,af,ag,ah,g,R,Q,D,ak,A);const al={program:O,buffers:J,uniformValues:aj,atlasTexture:S,atlasTextureIcon:W,atlasInterpolation:T,atlasInterpolationIcon:U,isSDF:L,hasHalo:ai,tile:H,labelPlaneMatrixInv:_};if(x&&I.canOverlap){y=!0;const am=J.segments.get();for(const an of am)E.push({segments:new a.SegmentVector([an]),sortKey:an.sortKey,state:al})}else E.push({segments:J.segments,sortKey:0,state:al})}for(const ao of(y&&E.sort((a,b)=>a.sortKey-b.sortKey),E)){const ar=ao.state;if(b.terrain&&b.terrain.setupElevationDraw(ar.tile,ar.program,{useDepthForOcclusion:!C,labelPlaneMatrixInv:ar.labelPlaneMatrixInv}),o.activeTexture.set(p.TEXTURE0),ar.atlasTexture.bind(ar.atlasInterpolation,p.CLAMP_TO_EDGE),ar.atlasTextureIcon&&(o.activeTexture.set(p.TEXTURE1),ar.atlasTextureIcon&&ar.atlasTextureIcon.bind(ar.atlasInterpolationIcon,p.CLAMP_TO_EDGE)),ar.isSDF){const as=ar.uniformValues;ar.hasHalo&&(as.u_is_halo=1,bU(ar.buffers,ao.segments,d,b,ar.program,z,m,n,as)),as.u_is_halo=0}bU(ar.buffers,ao.segments,d,b,ar.program,z,m,n,ar.uniformValues)}}function bU(b,c,d,f,g,h,i,j,k){const l=f.context;g.draw(l,l.gl.TRIANGLES,h,i,j,a.CullFaceMode.disabled,k,d.id,b.layoutVertexBuffer,b.indexBuffer,c,d.paint,f.transform.zoom,b.programConfigurations.get(d.id),b.dynamicLayoutVertexBuffer,b.opacityVertexBuffer)}function bV(b,c,d,f,g,h,i){const j=b.context.gl,k=d.paint.get("fill-pattern"),l=k&&k.constantOr(1),m=d.getCrossfadeParameters();let n,o,p,q,r;for(const s of(i?(o=l&&!d.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",n=j.LINES):(o=l?"fillPattern":"fill",n=j.TRIANGLES),f)){const u=c.getTile(s);if(l&&!u.patternsLoaded())continue;const v=u.getBucket(d);if(!v)continue;b.prepareDrawTile(s);const w=v.programConfigurations.get(d.id),x=b.useProgram(o,w);l&&(b.context.activeTexture.set(j.TEXTURE0),u.imageAtlasTexture.bind(j.LINEAR,j.CLAMP_TO_EDGE),w.updatePaintBuffers(m));const y=k.constantOr(null);if(y&&u.imageAtlas){const z=u.imageAtlas,A=z.patternPositions[y.to.toString()],B=z.patternPositions[y.from.toString()];A&&B&&w.setConstantPatternPositions(A,B)}const C=b.translatePosMatrix(s.projMatrix,u,d.paint.get("fill-translate"),d.paint.get("fill-translate-anchor"));if(i){q=v.indexBuffer2,r=v.segments2;const D=b.terrain&&b.terrain.renderingToTexture?b.terrain.drapeBufferSize:[j.drawingBufferWidth,j.drawingBufferHeight,];p="fillOutlinePattern"===o&&l?bu(C,b,m,u,D):bt(C,D)}else q=v.indexBuffer,r=v.segments,p=l?bs(C,b,m,u):br(C);b.prepareDrawProgram(b.context,x,s.toUnwrapped()),x.draw(b.context,n,g,b.stencilModeForClipping(s),h,a.CullFaceMode.disabled,p,d.id,v.layoutVertexBuffer,q,r,d.paint,b.transform.zoom,w)}}function bW(b,c,d,f,g,h,i){const j=b.context,k=j.gl,l=d.paint.get("fill-extrusion-pattern"),m=l.constantOr(1),n=d.getCrossfadeParameters(),o=d.paint.get("fill-extrusion-opacity");for(const p of f){const q=c.getTile(p),r=q.getBucket(d);if(!r)continue;const s=r.programConfigurations.get(d.id),u=b.useProgram(m?"fillExtrusionPattern":"fillExtrusion",s);if(b.terrain){const v=b.terrain;if(!r.enableTerrain)continue;if(v.setupElevationDraw(q,u,{useMeterToDem:!0}),bX(j,c,p,r,d,v),!r.centroidVertexBuffer){const w=u.attributes.a_centroid_pos;void 0!==w&&k.vertexAttrib2f(w,0,0)}}m&&(b.context.activeTexture.set(k.TEXTURE0),q.imageAtlasTexture.bind(k.LINEAR,k.CLAMP_TO_EDGE),s.updatePaintBuffers(n));const x=l.constantOr(null);if(x&&q.imageAtlas){const y=q.imageAtlas,z=y.patternPositions[x.to.toString()],A=y.patternPositions[x.from.toString()];z&&A&&s.setConstantPatternPositions(z,A)}const B=b.translatePosMatrix(p.projMatrix,q,d.paint.get("fill-extrusion-translate"),d.paint.get("fill-extrusion-translate-anchor")),C=d.paint.get("fill-extrusion-vertical-gradient"),D=m?bq(B,b,C,o,p,n,q):bp(B,b,C,o);b.prepareDrawProgram(j,u,p.toUnwrapped()),u.draw(j,j.gl.TRIANGLES,g,h,i,a.CullFaceMode.backCCW,D,d.id,r.layoutVertexBuffer,r.indexBuffer,r.segments,d.paint,b.transform.zoom,s,b.terrain?r.centroidVertexBuffer:null)}}function bX(b,c,d,f,g,h){const i=[b=>{let c=b.canonical.x-1,d=b.wrap;return c<0&&(c=(1<{let c=b.canonical.x+1,d=b.wrap;return c===1<new a.OverscaledTileID(b.overscaledZ,b.wrap,b.canonical.z,b.canonical.x,(0===b.canonical.y?1<new a.OverscaledTileID(b.overscaledZ,b.wrap,b.canonical.z,b.canonical.x,b.canonical.y===(1<{const b=c.getSource().maxzoom,d=a=>{const b=c.getTileByID(a);if(b&&b.hasData())return b.getBucket(g)};let f,h,i;return(a.overscaledZ===a.canonical.z||a.overscaledZ>=b)&&(f=d(a.key)),a.overscaledZ>=b&&(h=d(a.calculateScaledKey(a.overscaledZ+1))),a.overscaledZ>b&&(i=d(a.calculateScaledKey(a.overscaledZ-1))),f||h||i},k=[0,0,0],l=(b,c)=>(k[0]=Math.min(b.min.y,c.min.y),k[1]=Math.max(b.max.y,c.max.y),k[2]=a.EXTENT-c.min.x>b.max.x?c.min.x-a.EXTENT:b.max.x,k),m=(b,c)=>(k[0]=Math.min(b.min.x,c.min.x),k[1]=Math.max(b.max.x,c.max.x),k[2]=a.EXTENT-c.min.y>b.max.y?c.min.y-a.EXTENT:b.max.y,k),n=[(a,b)=>l(a,b),(a,b)=>l(b,a),(a,b)=>m(a,b),(a,b)=>m(b,a),],o=new a.pointGeometry(0,0);let p,q,r;const s=(b,c,f,g,i)=>{const j=[[g?f:b,g?b:f,0],[g?f:c,g?c:f,0],],k=i<0?a.EXTENT+i:i,l=[g?k:(b+c)/2,g?(b+c)/2:k,0,];return 0===f&&i<0||0!==f&&i>0?h.getForTilePoints(r,[l],!0,q):j.push(l),h.getForTilePoints(d,j,!0,p),Math.max(j[0][2],j[1][2],l[2])/h.exaggeration()};for(let u=0;u<4;u++){const v=f.borders[u];if(0===v.length&&(f.borderDone[u]=!0),f.borderDone[u])continue;const w=r=i[u](d),x=j(w);if(!x||!x.enableTerrain||!(q=h.findDEMTileFor(w))||!q.dem)continue;if(!p){const y=h.findDEMTileFor(d);if(!y||!y.dem)return;p=y}const z=(u<2?1:5)-u,A=x.borders[z];let B=0;for(let C=0;CE[0]+3);)x.borderDone[z]||x.encodeCentroid(void 0,F,!1),B++;if(F&&BE[1]-3)&&(H++,++B!==A.length);)F=x.featuresOnBorder[A[B]];if(F=x.featuresOnBorder[A[G]],D.intersectsCount()>1||F.intersectsCount()>1||1!==H){1!==H&&(B=G),f.encodeCentroid(void 0,D,!1),x.borderDone[z]||x.encodeCentroid(void 0,F,!1);continue}const I=n[u](D,F),J=u%2?a.EXTENT-1:0;o.x=s(I[0],Math.min(a.EXTENT-1,I[1]),J,u<2,I[2]),o.y=0,f.encodeCentroid(o,D,!1),x.borderDone[z]||x.encodeCentroid(o,F,!1)}else f.encodeCentroid(void 0,D,!1)}f.borderDone[u]=f.needsCentroidUpdate=!0,x.borderDone[z]||(x.borderDone[z]=x.needsCentroidUpdate=!0)}(f.needsCentroidUpdate|| !f.centroidVertexBuffer&&0!==f.centroidVertexArray.length)&&f.uploadCentroid(b)}const bY=new a.Color(1,0,0,1),bZ=new a.Color(0,1,0,1),b$=new a.Color(0,0,1,1),b_=new a.Color(1,0,1,1),b0=new a.Color(0,1,1,1);function b1(a,b,c,d){b3(a,0,b+c/2,a.transform.width,c,d)}function b2(a,b,c,d){b3(a,b-c/2,0,c,a.transform.height,d)}function b3(b,c,d,f,g,h){const i=b.context,j=i.gl;j.enable(j.SCISSOR_TEST),j.scissor(c*a.exported.devicePixelRatio,d*a.exported.devicePixelRatio,f*a.exported.devicePixelRatio,g*a.exported.devicePixelRatio),i.clear({color:h}),j.disable(j.SCISSOR_TEST)}function b4(b,c,d){const f=b.context,g=f.gl,h=d.projMatrix,i=b.useProgram("debug"),j=c.getTileByID(d.key);b.terrain&&b.terrain.setupElevationDraw(j,i);const k=a.DepthMode.disabled,l=a.StencilMode.disabled,m=b.colorModeForRenderPass(),n="$debug";f.activeTexture.set(g.TEXTURE0),b.emptyTexture.bind(g.LINEAR,g.CLAMP_TO_EDGE),j._makeDebugTileBoundsBuffers(b.context,b.transform.projection);const o=j._tileDebugBuffer||b.debugBuffer,p=j._tileDebugIndexBuffer||b.debugIndexBuffer,q=j._tileDebugSegments||b.debugSegments;i.draw(f,g.LINE_STRIP,k,l,m,a.CullFaceMode.disabled,by(h,a.Color.red),n,o,p,q);const r=j.latestRawTileData,s=Math.floor((r&&r.byteLength||0)/1024),u=c.getTile(d).tileSize,v=512/Math.min(u,512)*(d.overscaledZ/b.transform.zoom)*.5;let w=d.canonical.toString();d.overscaledZ!==d.canonical.z&&(w+=` => ${d.overscaledZ}`),function(a,b){a.initDebugOverlayCanvas();const c=a.debugOverlayCanvas,d=a.context.gl,f=a.debugOverlayCanvas.getContext("2d");f.clearRect(0,0,c.width,c.height),f.shadowColor="white",f.shadowBlur=2,f.lineWidth=1.5,f.strokeStyle="white",f.textBaseline="top",f.font="bold 36px Open Sans, sans-serif",f.fillText(b,5,5),f.strokeText(b,5,5),a.debugOverlayTexture.update(c),a.debugOverlayTexture.bind(d.LINEAR,d.CLAMP_TO_EDGE)}(b,`${w} ${s}kb`),i.draw(f,g.TRIANGLES,k,l,a.ColorMode.alphaBlended,a.CullFaceMode.disabled,by(h,a.Color.transparent,v),n,b.debugBuffer,b.quadTriangleIndexBuffer,b.debugSegments)}const b5=a.createLayout([{name:"a_pos_3f",components:3,type:"Float32"},]),{members:b6}=b5;function b7(a,b,c,d){a.emplaceBack(b,c,d)}class b8{constructor(b){this.vertexArray=new a.StructArrayLayout3f12,this.indices=new a.StructArrayLayout3ui6,b7(this.vertexArray,-1,-1,1),b7(this.vertexArray,1,-1,1),b7(this.vertexArray,-1,1,1),b7(this.vertexArray,1,1,1),b7(this.vertexArray,-1,-1,-1),b7(this.vertexArray,1,-1,-1),b7(this.vertexArray,-1,1,-1),b7(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=b.createVertexBuffer(this.vertexArray,b6),this.indexBuffer=b.createIndexBuffer(this.indices),this.segment=a.SegmentVector.simpleSegment(0,0,36,12)}}function b9(b,c,d,f,g,h){var i,j,k,l,m;const n=b.gl,o=c.paint.get("sky-atmosphere-color"),p=c.paint.get("sky-atmosphere-halo-color"),q=c.paint.get("sky-atmosphere-sun-intensity"),r=(i=a.fromMat4([],f),j=g,k=q,l=o,m=p,{u_matrix_3f:i,u_sun_direction:j,u_sun_intensity:k,u_color_tint_r:[l.r,l.g,l.b,l.a],u_color_tint_m:[m.r,m.g,m.b,m.a],u_luminance:5e-5});n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_CUBE_MAP_POSITIVE_X+h,c.skyboxTexture,0),d.draw(b,n.TRIANGLES,a.DepthMode.disabled,a.StencilMode.disabled,a.ColorMode.unblended,a.CullFaceMode.frontCW,r,"skyboxCapture",c.skyboxGeometry.vertexBuffer,c.skyboxGeometry.indexBuffer,c.skyboxGeometry.segment)}const ca={symbol:function(b,c,d,f,g){if("translucent"!==b.renderPass)return;const h=a.StencilMode.disabled,i=b.colorModeForRenderPass();d.layout.get("text-variable-anchor")&&function(b,c,d,f,g,h,i){const j=c.transform,k="map"===g,l="map"===h,m=j.projection.createTileTransform(j,j.worldSize);for(const n of b){const o=f.getTile(n),p=o.getBucket(d);if(!p||p.projection!==j.projection.name||!p.text||!p.text.segments.get().length)continue;const q=a.evaluateSizeForZoom(p.textSizeData,j.zoom),r=c.transform.calculatePixelsToTileUnitsMatrix(o),s=ap(n.projMatrix,o.tileID.canonical,l,k,c.transform,r),u="none"!==d.layout.get("icon-text-fit")&&p.hasIconData();if(q){const v=Math.pow(2,j.zoom-o.tileID.overscaledZ);bR(p,k,l,i,a.symbolSize,j,s,n,v,q,u,m)}}}(f,b,d,c,d.layout.get("text-rotation-alignment"),d.layout.get("text-pitch-alignment"),g),0!==d.paint.get("icon-opacity").constantOr(1)&&bT(b,c,d,f,!1,d.paint.get("icon-translate"),d.paint.get("icon-translate-anchor"),d.layout.get("icon-rotation-alignment"),d.layout.get("icon-pitch-alignment"),d.layout.get("icon-keep-upright"),h,i),0!==d.paint.get("text-opacity").constantOr(1)&&bT(b,c,d,f,!0,d.paint.get("text-translate"),d.paint.get("text-translate-anchor"),d.layout.get("text-rotation-alignment"),d.layout.get("text-pitch-alignment"),d.layout.get("text-keep-upright"),h,i),c.map.showCollisionBoxes&&(bO(b,c,d,f,d.paint.get("text-translate"),d.paint.get("text-translate-anchor"),!0),bO(b,c,d,f,d.paint.get("icon-translate"),d.paint.get("icon-translate-anchor"),!1))},circle:function(b,c,d,f){if("translucent"!==b.renderPass)return;const g=d.paint.get("circle-opacity"),h=d.paint.get("circle-stroke-width"),i=d.paint.get("circle-stroke-opacity"),j=void 0!==d.layout.get("circle-sort-key").constantOr(1);if(0===g.constantOr(1)&&(0===h.constantOr(1)||0===i.constantOr(1)))return;const k=b.context,l=k.gl,m=b.depthModeForSublayer(0,a.DepthMode.ReadOnly),n=a.StencilMode.disabled,o=b.colorModeForRenderPass(),p=[];for(let q=0;qa.sortKey-b.sortKey);const A={useDepthForOcclusion:"globe"!==b.transform.projection.name};for(const B of p){const{programConfiguration:C,program:D,layoutVertexBuffer:E,indexBuffer:F,uniformValues:G,tile:H}=B.state,I=B.segments;b.terrain&&b.terrain.setupElevationDraw(H,D,A),b.prepareDrawProgram(k,D,H.tileID.toUnwrapped()),D.draw(k,l.TRIANGLES,m,n,o,a.CullFaceMode.disabled,G,d.id,E,F,I,d.paint,b.transform.zoom,C)}},heatmap:function(b,c,d,f){if(0!==d.paint.get("heatmap-opacity")){if("offscreen"===b.renderPass){const g=b.context,h=g.gl,i=a.StencilMode.disabled,j=new a.ColorMode([h.ONE,h.ONE],a.Color.transparent,[!0,!0,!0,!0]);(function(a,b,c){const d=a.gl;a.activeTexture.set(d.TEXTURE1),a.viewport.set([0,0,b.width/4,b.height/4,]);let f=c.heatmapFbo;if(f)d.bindTexture(d.TEXTURE_2D,f.colorAttachment.get()),a.bindFramebuffer.set(f.framebuffer);else{const g=d.createTexture();d.bindTexture(d.TEXTURE_2D,g),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,d.CLAMP_TO_EDGE),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,d.LINEAR),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,d.LINEAR),f=c.heatmapFbo=a.createFramebuffer(b.width/4,b.height/4,!1),function(a,b,c,d){const f=a.gl;f.texImage2D(f.TEXTURE_2D,0,f.RGBA,b.width/4,b.height/4,0,f.RGBA,a.extRenderToTextureHalfFloat?a.extTextureHalfFloat.HALF_FLOAT_OES:f.UNSIGNED_BYTE,null),d.colorAttachment.set(c)}(a,b,g,f)}})(g,b,d),g.clear({color:a.Color.transparent});for(let k=0;k{const b=[];bE(a)&&b.push("RENDER_LINE_DASH"),a.paint.get("line-gradient")&&b.push("RENDER_LINE_GRADIENT");const c=a.paint.get("line-pattern").constantOr(1),d=1!==a.paint.get("line-opacity").constantOr(1);return!c&&d&&b.push("RENDER_LINE_ALPHA_DISCARD"),b})(d);let w=v.includes("RENDER_LINE_ALPHA_DISCARD");for(const x of(b.terrain&&b.terrain.clipOrMaskOverlapStencilType()&&(w=!1),f)){const y=c.getTile(x);if(o&&!y.patternsLoaded())continue;const z=y.getBucket(d);if(!z)continue;b.prepareDrawTile(x);const A=z.programConfigurations.get(d.id),B=b.useProgram(r,A,v),C=n.constantOr(null);if(C&&y.imageAtlas){const D=y.imageAtlas,E=D.patternPositions[C.to.toString()],F=D.patternPositions[C.from.toString()];E&&F&&A.setConstantPatternPositions(E,F)}const G=k.constantOr(null),H=m.constantOr(null);if(!o&&G&&H&&y.lineAtlas){const I=y.lineAtlas,J=I.getDash(G.to,H),K=I.getDash(G.from,H);J&&K&&A.setConstantPatternPositions(J,K)}const L=b.terrain?x.projMatrix:null,M=o?bB(b,y,d,q,L):bA(b,y,d,q,L,z.lineClipsArray.length);if(p){const N=z.gradients[d.id];let O=N.texture;if(d.gradientVersion!==N.version){let P=256;if(d.stepInterpolant){const Q=c.getSource().maxzoom,R=x.canonical.z===Q?Math.ceil(1<{B.draw(s,u.TRIANGLES,i,c,j,a.CullFaceMode.disabled,M,d.id,z.layoutVertexBuffer,z.indexBuffer,z.segments,d.paint,b.transform.zoom,A,z.layoutVertexBuffer2)};if(w){const T=b.stencilModeForClipping(x).ref;0===T&&b.terrain&&s.clear({stencil:0});const U={func:u.EQUAL,mask:255};M.u_alpha_discard_threshold=.8,S(new a.StencilMode(U,T,255,u.KEEP,u.KEEP,u.INVERT)),M.u_alpha_discard_threshold=0,S(new a.StencilMode(U,T,255,u.KEEP,u.KEEP,u.KEEP))}else S(b.stencilModeForClipping(x))}w&&(b.resetStencilClippingMasks(),b.terrain&&s.clear({stencil:0}))},fill:function(b,c,d,f){const g=d.paint.get("fill-color"),h=d.paint.get("fill-opacity");if(0===h.constantOr(1))return;const i=b.colorModeForRenderPass(),j=d.paint.get("fill-pattern"),k=b.opaquePassEnabledForLayer()&&!j.constantOr(1)&&1===g.constantOr(a.Color.transparent).a&&1===h.constantOr(0)?"opaque":"translucent";if(b.renderPass===k){const l=b.depthModeForSublayer(1,"opaque"===b.renderPass?a.DepthMode.ReadWrite:a.DepthMode.ReadOnly);bV(b,c,d,f,l,i,!1)}if("translucent"===b.renderPass&&d.paint.get("fill-antialias")){const m=b.depthModeForSublayer(d.getPaintProperty("fill-outline-color")?2:0,a.DepthMode.ReadOnly);bV(b,c,d,f,m,i,!0)}},"fill-extrusion":function(b,c,d,f){const g=d.paint.get("fill-extrusion-opacity");if(0!==g&&"translucent"===b.renderPass){const h=new a.DepthMode(b.context.gl.LEQUAL,a.DepthMode.ReadWrite,b.depthRangeFor3D);if(1!==g||d.paint.get("fill-extrusion-pattern").constantOr(1))bW(b,c,d,f,h,a.StencilMode.disabled,a.ColorMode.disabled),bW(b,c,d,f,h,b.stencilModeFor3D(),b.colorModeForRenderPass()),b.resetStencilClippingMasks();else{const i=b.colorModeForRenderPass();bW(b,c,d,f,h,a.StencilMode.disabled,i)}}},hillshade:function(b,c,d,f){if("offscreen"!==b.renderPass&&"translucent"!==b.renderPass)return;const g=b.context,h=b.depthModeForSublayer(0,a.DepthMode.ReadOnly),i=b.colorModeForRenderPass(),j=b.terrain&&b.terrain.renderingToTexture,[k,l]="translucent"!==b.renderPass||j?[{},f]:b.stencilConfigForOverlap(f);for(const m of l){const n=c.getTile(m);if(n.needsHillshadePrepare&&"offscreen"===b.renderPass)a8(b,n,d,h,a.StencilMode.disabled,i);else if("translucent"===b.renderPass){const o=j&&b.terrain?b.terrain.stencilModeForRTTOverlap(m):k[m.overscaledZ];a6(b,m,n,d,h,o,i)}}g.viewport.set([0,0,b.width,b.height]),b.resetStencilClippingMasks()},raster:function(b,c,d,f,g,h){if("translucent"!==b.renderPass||0===d.paint.get("raster-opacity")||!f.length)return;const i=b.context,j=i.gl,k=c.getSource(),l=b.useProgram("raster"),m=b.colorModeForRenderPass(),n=b.terrain&&b.terrain.renderingToTexture,[o,p]=k instanceof S||n?[{},f]:b.stencilConfigForOverlap(f),q=p[p.length-1].overscaledZ,r=!b.options.moving;for(const s of p){const u=n?a.DepthMode.disabled:b.depthModeForSublayer(s.overscaledZ-q,1===d.paint.get("raster-opacity")?a.DepthMode.ReadWrite:a.DepthMode.ReadOnly,j.LESS),v=s.toUnwrapped(),w=c.getTile(s);if(n&&(!w||!w.hasData()))continue;const x=n?s.projMatrix:b.transform.calculateProjMatrix(v,r),y=b.terrain&&n?b.terrain.stencilModeForRTTOverlap(s):o[s.overscaledZ],z=h?0:d.paint.get("raster-fade-duration");w.registerFadeDuration(z);const A=c.findLoadedParent(s,0),B=bh(w,A,c,b.transform,z);let C,D;b.terrain&&b.terrain.prepareDrawTile(s);const E="nearest"===d.paint.get("raster-resampling")?j.NEAREST:j.LINEAR;i.activeTexture.set(j.TEXTURE0),w.texture.bind(E,j.CLAMP_TO_EDGE),i.activeTexture.set(j.TEXTURE1),A?(A.texture.bind(E,j.CLAMP_TO_EDGE),C=Math.pow(2,A.tileID.overscaledZ-w.tileID.overscaledZ),D=[w.tileID.canonical.x*C%1,w.tileID.canonical.y*C%1,]):w.texture.bind(E,j.CLAMP_TO_EDGE);const F=bF(x,D||[0,0],C||1,B,d,k instanceof S?k.perspectiveTransform:[0,0]);if(b.prepareDrawProgram(i,l,v),k instanceof S)l.draw(i,j.TRIANGLES,u,a.StencilMode.disabled,m,a.CullFaceMode.disabled,F,d.id,k.boundsBuffer,b.quadTriangleIndexBuffer,k.boundsSegments);else{const{tileBoundsBuffer:G,tileBoundsIndexBuffer:H,tileBoundsSegments:I}=b.getTileBoundsBuffers(w);l.draw(i,j.TRIANGLES,u,y,m,a.CullFaceMode.disabled,F,d.id,G,H,I)}}b.resetStencilClippingMasks()},background:function(b,c,d,f){const g=d.paint.get("background-color"),h=d.paint.get("background-opacity");if(0===h)return;const i=b.context,j=i.gl,k=b.transform,l=k.tileSize,m=d.paint.get("background-pattern");if(b.isPatternMissing(m))return;const n=!m&&1===g.a&&1===h&&b.opaquePassEnabledForLayer()?"opaque":"translucent";if(b.renderPass!==n)return;const o=a.StencilMode.disabled,p=b.depthModeForSublayer(0,"opaque"===n?a.DepthMode.ReadWrite:a.DepthMode.ReadOnly),q=b.colorModeForRenderPass(),r=b.useProgram(m?"backgroundPattern":"background");let s,u=f;u||(u=Object.values(s=b.getBackgroundTiles()).map(a=>a.tileID)),m&&(i.activeTexture.set(j.TEXTURE0),b.imageManager.bind(b.context));const v=d.getCrossfadeParameters();for(const w of u){const x=w.toUnwrapped(),y=f?w.projMatrix:b.transform.calculateProjMatrix(x);b.prepareDrawTile(w);const z=c?c.getTile(w):s?s[w.key]:new a.Tile(w,l,k.zoom,b),A=m?bL(y,h,b,m,{tileID:w,tileSize:l},v):bK(y,h,g);b.prepareDrawProgram(i,r,x);const{tileBoundsBuffer:B,tileBoundsIndexBuffer:C,tileBoundsSegments:D}=b.getTileBoundsBuffers(z);r.draw(i,j.TRIANGLES,p,o,q,a.CullFaceMode.disabled,A,d.id,B,C,D)}},sky:function(b,c,d){const f=b.transform,g="mercator"===f.projection.name||"globe"===f.projection.name?1:a.smoothstep(7,8,f.zoom),h=d.paint.get("sky-opacity")*g;if(0===h)return;const i=b.context,j=d.paint.get("sky-type"),k=new a.DepthMode(i.gl.LEQUAL,a.DepthMode.ReadOnly,[0,1]),l=b.frameCounter/1e3%1;"atmosphere"===j?"offscreen"===b.renderPass?d.needsSkyboxCapture(b)&&(function(b,c,d,f){const g=b.context,h=g.gl;let i=c.skyboxFbo;if(!i){i=c.skyboxFbo=g.createFramebuffer(32,32,!1),c.skyboxGeometry=new b8(g),c.skyboxTexture=g.gl.createTexture(),h.bindTexture(h.TEXTURE_CUBE_MAP,c.skyboxTexture),h.texParameteri(h.TEXTURE_CUBE_MAP,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_CUBE_MAP,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_CUBE_MAP,h.TEXTURE_MIN_FILTER,h.LINEAR),h.texParameteri(h.TEXTURE_CUBE_MAP,h.TEXTURE_MAG_FILTER,h.LINEAR);for(let j=0;j<6;++j)h.texImage2D(h.TEXTURE_CUBE_MAP_POSITIVE_X+j,0,h.RGBA,32,32,0,h.RGBA,h.UNSIGNED_BYTE,null)}g.bindFramebuffer.set(i.framebuffer),g.viewport.set([0,0,32,32,]);const k=c.getCenter(b,!0),l=b.useProgram("skyboxCapture"),m=new Float64Array(16);a.identity(m),a.rotateY(m,m,-(.5*Math.PI)),b9(g,c,l,m,k,0),a.identity(m),a.rotateY(m,m,.5*Math.PI),b9(g,c,l,m,k,1),a.identity(m),a.rotateX(m,m,-(.5*Math.PI)),b9(g,c,l,m,k,2),a.identity(m),a.rotateX(m,m,.5*Math.PI),b9(g,c,l,m,k,3),a.identity(m),b9(g,c,l,m,k,4),a.identity(m),a.rotateY(m,m,Math.PI),b9(g,c,l,m,k,5),g.viewport.set([0,0,b.width,b.height,])}(b,d),d.markSkyboxValid(b)):"sky"===b.renderPass&&function(b,c,d,f,g){var h,i;const j=b.context,k=j.gl,l=b.transform,m=b.useProgram("skybox");j.activeTexture.set(k.TEXTURE0),k.bindTexture(k.TEXTURE_CUBE_MAP,c.skyboxTexture);const n=(h=l.skyboxMatrix,i=c.getCenter(b,!1),{u_matrix:h,u_sun_direction:i,u_cubemap:0,u_opacity:f,u_temporal_offset:g});b.prepareDrawProgram(j,m),m.draw(j,k.TRIANGLES,d,a.StencilMode.disabled,b.colorModeForRenderPass(),a.CullFaceMode.backCW,n,"skybox",c.skyboxGeometry.vertexBuffer,c.skyboxGeometry.indexBuffer,c.skyboxGeometry.segment)}(b,d,k,h,l):"gradient"===j&&"sky"===b.renderPass&&function(b,c,d,f,g){var h,i,j,k,l;const m=b.context,n=m.gl,o=b.transform,p=b.useProgram("skyboxGradient");c.skyboxGeometry||(c.skyboxGeometry=new b8(m)),m.activeTexture.set(n.TEXTURE0);let q=c.colorRampTexture;q||(q=c.colorRampTexture=new a.Texture(m,c.colorRamp,n.RGBA)),q.bind(n.LINEAR,n.CLAMP_TO_EDGE);const r=(h=o.skyboxMatrix,i=c.getCenter(b,!1),j=c.paint.get("sky-gradient-radius"),k=f,l=g,{u_matrix:h,u_color_ramp:0,u_center_direction:i,u_radius:a.degToRad(j),u_opacity:k,u_temporal_offset:l});b.prepareDrawProgram(m,p),p.draw(m,n.TRIANGLES,d,a.StencilMode.disabled,b.colorModeForRenderPass(),a.CullFaceMode.backCW,r,"skyboxGradient",c.skyboxGeometry.vertexBuffer,c.skyboxGeometry.indexBuffer,c.skyboxGeometry.segment)}(b,d,k,h,l)},debug:function(a,b,c){for(let d=0;db.getOpacity(this.transform.pitch)||.03>b.properties.get("horizon-blend"))return void(this.transform.fogCullDistSq=null);const[c,d]=b.getFovAdjustedRange(this.transform._fov);if(c>d)return void(this.transform.fogCullDistSq=null);const f=c+.78*(d-c);this.transform.fogCullDistSq=f*f}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled?this._terrain:null}resize(b,c){if(this.width=b*a.exported.devicePixelRatio,this.height=c*a.exported.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height,]),this.style)for(const d of this.style.order)this.style._layers[d].resize()}setup(){const b=this.context,c=new a.StructArrayLayout2i4;c.emplaceBack(0,0),c.emplaceBack(a.EXTENT,0),c.emplaceBack(0,a.EXTENT),c.emplaceBack(a.EXTENT,a.EXTENT),this.tileExtentBuffer=b.createVertexBuffer(c,a.posAttributes.members),this.tileExtentSegments=a.SegmentVector.simpleSegment(0,0,4,2);const d=new a.StructArrayLayout2i4;d.emplaceBack(0,0),d.emplaceBack(a.EXTENT,0),d.emplaceBack(0,a.EXTENT),d.emplaceBack(a.EXTENT,a.EXTENT),this.debugBuffer=b.createVertexBuffer(d,a.posAttributes.members),this.debugSegments=a.SegmentVector.simpleSegment(0,0,4,5);const f=new a.StructArrayLayout2i4;f.emplaceBack(-1,-1),f.emplaceBack(1,-1),f.emplaceBack(-1,1),f.emplaceBack(1,1),this.viewportBuffer=b.createVertexBuffer(f,a.posAttributes.members),this.viewportSegments=a.SegmentVector.simpleSegment(0,0,4,2);const g=new a.StructArrayLayout4i8;g.emplaceBack(0,0,0,0),g.emplaceBack(a.EXTENT,0,a.EXTENT,0),g.emplaceBack(0,a.EXTENT,0,a.EXTENT),g.emplaceBack(a.EXTENT,a.EXTENT,a.EXTENT,a.EXTENT),this.mercatorBoundsBuffer=b.createVertexBuffer(g,a.boundsAttributes.members),this.mercatorBoundsSegments=a.SegmentVector.simpleSegment(0,0,4,2);const h=new a.StructArrayLayout3ui6;h.emplaceBack(0,1,2),h.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=b.createIndexBuffer(h);const i=new a.StructArrayLayout1ui2;for(const j of[0,1,3,2,0])i.emplaceBack(j);this.debugIndexBuffer=b.createIndexBuffer(i),this.emptyTexture=new a.Texture(b,{width:1,height:1,data:new Uint8Array([0,0,0,0])},b.gl.RGBA),this.identityMat=a.create();const k=this.context.gl;this.stencilClearMode=new a.StencilMode({func:k.ALWAYS,mask:0},0,255,k.ZERO,k.ZERO,k.ZERO),this.loadTimeStamps.push(a.window.performance.now())}getMercatorTileBoundsBuffers(){return{tileBoundsBuffer:this.mercatorBoundsBuffer,tileBoundsIndexBuffer:this.quadTriangleIndexBuffer,tileBoundsSegments:this.mercatorBoundsSegments}}getTileBoundsBuffers(a){return a._makeTileBoundsBuffers(this.context,this.transform.projection),a._tileBoundsBuffer?{tileBoundsBuffer:a._tileBoundsBuffer,tileBoundsIndexBuffer:a._tileBoundsIndexBuffer,tileBoundsSegments:a._tileBoundsSegments}:this.getMercatorTileBoundsBuffers()}clearStencil(){const b=this.context,c=b.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs={},this.useProgram("clippingMask").draw(b,c.TRIANGLES,a.DepthMode.disabled,this.stencilClearMode,a.ColorMode.disabled,a.CullFaceMode.disabled,bg(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs={})}_renderTileClippingMasks(b,c,d){if(!c||this.currentStencilSource===c.id||!b.isTileClipped()||!d||0===d.length)return;if(this._tileClippingMaskIDs&&!this.terrain){let f=!1;for(const g of d)if(void 0===this._tileClippingMaskIDs[g.key]){f=!0;break}if(!f)return}this.currentStencilSource=c.id;const h=this.context,i=h.gl;this.nextStencilID+d.length>256&&this.clearStencil(),h.setColorMode(a.ColorMode.disabled),h.setDepthMode(a.DepthMode.disabled);const j=this.useProgram("clippingMask");for(const k of(this._tileClippingMaskIDs={},d)){const l=c.getTile(k),m=this._tileClippingMaskIDs[k.key]=this.nextStencilID++,{tileBoundsBuffer:n,tileBoundsIndexBuffer:o,tileBoundsSegments:p}=this.getTileBoundsBuffers(l);j.draw(h,i.TRIANGLES,a.DepthMode.disabled,new a.StencilMode({func:i.ALWAYS,mask:0},m,255,i.KEEP,i.KEEP,i.REPLACE),a.ColorMode.disabled,a.CullFaceMode.disabled,bg(k.projMatrix),"$clipping",n,o,p)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const b=this.nextStencilID++,c=this.context.gl;return new a.StencilMode({func:c.NOTEQUAL,mask:255},b,255,c.KEEP,c.KEEP,c.REPLACE)}stencilModeForClipping(b){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(b);const c=this.context.gl;return new a.StencilMode({func:c.EQUAL,mask:255},this._tileClippingMaskIDs[b.key],0,c.KEEP,c.KEEP,c.REPLACE)}stencilConfigForOverlap(b){const c=this.context.gl,d=b.sort((a,b)=>b.overscaledZ-a.overscaledZ),f=d[d.length-1].overscaledZ,g=d[0].overscaledZ-f+1;if(g>1){this.currentStencilSource=void 0,this.nextStencilID+g>256&&this.clearStencil();const h={};for(let i=0;i=0;this.currentLayer--){const u=this.style._layers[d[this.currentLayer]],v=b._getLayerSourceCache(u);if(u.isSky())continue;const w=v?j[v.id]:void 0;this._renderTileClippingMasks(u,v,w),this.renderLayer(this,v,u,w)}if(this.renderPass="sky",(a.globeToMercatorTransition(this.transform.zoom)>0||"globe"!==this.transform.projection.name)&&this.transform.isHorizonVisible())for(this.currentLayer=0;this.currentLayer{const c=b._getLayerSourceCache(a);c&&!a.isHidden(this.transform.zoom)&&(!C||C.getSource().maxzoom0?b.pop():null}isPatternMissing(a){if(!a)return!1;if(!a.from||!a.to)return!0;const b=this.imageManager.getPattern(a.from.toString()),c=this.imageManager.getPattern(a.to.toString());return!b||!c}currentGlobalDefines(){const a=this.terrain&&this.terrain.renderingToTexture,b=this.style&&this.style.fog,c=[];return this.terrain&&!this.terrain.renderingToTexture&&c.push("TERRAIN"),b&&!a&&0!==b.getOpacity(this.transform.pitch)&&c.push("FOG"),a&&c.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&c.push("OVERDRAW_INSPECTOR"),c}useProgram(a,b,c){this.cache=this.cache||{};const d=this.currentGlobalDefines().concat(c||[]),f=bn.cacheKey(a,d,b);return this.cache[f]||(this.cache[f]=new bn(this.context,a,a3[a],b,bM[a],d)),this.cache[f]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const a=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height,]),this.context.blendEquation.set(a.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=a.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new a.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this._terrain&&this._terrain.destroy(),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}prepareDrawTile(a){this.terrain&&this.terrain.prepareDrawTile(a)}prepareDrawProgram(a,b,c){if(this.terrain&&this.terrain.renderingToTexture)return;const d=this.style.fog;if(d){const f=d.getOpacity(this.transform.pitch);0!==f&&b.setFogUniformValues(a,((a,b,c,d)=>{const f=b.properties.get("color"),g=a.frameCounter/1e3%1,h=[f.r/f.a,f.g/f.a,f.b/f.a,d,];return{u_fog_matrix:c?a.transform.calculateFogTileMatrix(c):a.identityMat,u_fog_range:b.getFovAdjustedRange(a.transform._fov),u_fog_color:h,u_fog_horizon_blend:b.properties.get("horizon-blend"),u_fog_temporal_offset:g}})(this,d,c,f))}}setTileLoadedFlag(a){this.tileLoaded=a}saveCanvasCopy(){this.frameCopies.push(this.canvasCopy()),this.tileLoaded=!1}canvasCopy(){const a=this.context.gl,b=a.createTexture();return a.bindTexture(a.TEXTURE_2D,b),a.copyTexImage2D(a.TEXTURE_2D,0,a.RGBA,0,0,a.drawingBufferWidth,a.drawingBufferHeight,0),b}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;const a=this.style&&this.style.fog;return!!a&&0!==a.getOpacity(this.transform.pitch)}getBackgroundTiles(){const b=this._backgroundTiles,c=this._backgroundTiles={},d=this.transform.coveringTiles({tileSize:512});for(const f of d)c[f.key]=b[f.key]||new a.Tile(f,512,this.transform.tileZoom,this);return c}clearBackgroundTiles(){this._backgroundTiles={}}}class cc{constructor(a=0,b=0,c=0,d=0){if(isNaN(a)||a<0||isNaN(b)||b<0||isNaN(c)||c<0||isNaN(d)||d<0)throw Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=a,this.bottom=b,this.left=c,this.right=d}interpolate(b,c,d){return null!=c.top&&null!=b.top&&(this.top=a.number(b.top,c.top,d)),null!=c.bottom&&null!=b.bottom&&(this.bottom=a.number(b.bottom,c.bottom,d)),null!=c.left&&null!=b.left&&(this.left=a.number(b.left,c.left,d)),null!=c.right&&null!=b.right&&(this.right=a.number(b.right,c.right,d)),this}getCenter(b,c){const d=a.clamp((this.left+b-this.right)/2,0,b),f=a.clamp((this.top+c-this.bottom)/2,0,c);return new a.pointGeometry(d,f)}equals(a){return this.top===a.top&&this.bottom===a.bottom&&this.left===a.left&&this.right===a.right}clone(){return new cc(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function cd(b,c){const d=a.getColumn(b,3);a.fromQuat(b,c),a.setColumn(b,3,d)}function ce(b,c){a.setColumn(b,3,[c[0],c[1],c[2],1])}function cf(b,c){const d=a.identity$1([]);return a.rotateZ$1(d,d,-c),a.rotateX$1(d,d,-b),d}function cg(b,c){const d=[b[0],b[1],0],f=[c[0],c[1],0];if(a.length(d)>=1e-15){const g=a.normalize([],d);a.scale$2(f,g,a.dot(f,g)),c[0]=f[0],c[1]=f[1]}const h=a.cross([],c,b);if(1e-15>a.len(h))return null;const i=Math.atan2(-h[1],h[0]);return cf(Math.atan2(Math.sqrt(b[0]*b[0]+b[1]*b[1]),-b[2]),i)}class ch{constructor(a,b){this.position=a,this.orientation=b}get position(){return this._position}set position(b){this._position=this._renderWorldCopies?function(b){if(!b)return;const c=Array.isArray(b)?new a.MercatorCoordinate(b[0],b[1],b[2]):b;return c.x=a.wrap(c.x,0,1),c}(b):b}lookAtPoint(b,c){if(this.orientation=null,!this.position)return;const d=this._elevation?this._elevation.getAtPointOrZero(a.MercatorCoordinate.fromLngLat(b)):0,f=this.position,g=a.MercatorCoordinate.fromLngLat(b,d),h=[g.x-f.x,g.y-f.y,g.z-f.z];c||(c=[0,0,1]),c[2]=Math.abs(c[2]),this.orientation=cg(h,c)}setPitchBearing(b,c){this.orientation=cf(a.degToRad(b),a.degToRad(-c))}}class ci{constructor(b,c){this._transform=a.identity([]),this._orientation=a.identity$1([]),c&&(this._orientation=c,cd(this._transform,this._orientation)),b&&ce(this._transform,b)}get mercatorPosition(){const b=this.position;return new a.MercatorCoordinate(b[0],b[1],b[2])}get position(){const b=a.getColumn(this._transform,3);return[b[0],b[1],b[2]]}set position(a){ce(this._transform,a)}get orientation(){return this._orientation}set orientation(a){this._orientation=a,cd(this._transform,this._orientation)}getPitchBearing(){const a=this.forward(),b=this.right();return{bearing:Math.atan2(-b[1],b[0]),pitch:Math.atan2(Math.sqrt(a[0]*a[0]+a[1]*a[1]),-a[2])}}setPitchBearing(a,b){this._orientation=cf(a,b),cd(this._transform,this._orientation)}forward(){const b=a.getColumn(this._transform,2);return[-b[0],-b[1],-b[2]]}up(){const b=a.getColumn(this._transform,1);return[-b[0],-b[1],-b[2]]}right(){const b=a.getColumn(this._transform,0);return[b[0],b[1],b[2]]}getCameraToWorld(b,c){const d=new Float64Array(16);return a.invert(d,this.getWorldToCamera(b,c)),d}getWorldToCameraPosition(b,c,d){const f=this.position;a.scale$2(f,f,-b);const g=new Float64Array(16);return a.fromScaling(g,[d,d,d]),a.translate(g,g,f),g[10]*=c,g}getWorldToCamera(b,c){const d=new Float64Array(16),f=new Float64Array(4),g=this.position;return a.conjugate(f,this._orientation),a.scale$2(g,g,-b),a.fromQuat(d,f),a.translate(d,d,g),d[1]*=-1,d[5]*=-1,d[9]*=-1,d[13]*=-1,d[8]*=c,d[9]*=c,d[10]*=c,d[11]*=c,d}getCameraToClipPerspective(b,c,d,f){const g=new Float64Array(16);return a.perspective(g,b,c,d,f),g}getDistanceToElevation(b){const c=0===b?0:a.mercatorZfromAltitude(b,this.position[1]),d=this.forward();return(c-this.position[2])/d[2]}clone(){return new ci([...this.position],[...this.orientation])}}function cj(b,c){const d=cl(b),f=function(b,c,d,f,g){const h=new a.LngLat(d.lng-180*cm,d.lat),i=new a.LngLat(d.lng+180*cm,d.lat),j=b.project(h.lng,h.lat),k=b.project(i.lng,i.lat),l=-Math.atan2(k.y-j.y,k.x-j.x),m=a.MercatorCoordinate.fromLngLat(d);m.y=a.clamp(m.y,-0.999975,.999975);const n=m.toLngLat(),o=b.project(n.lng,n.lat),p=a.MercatorCoordinate.fromLngLat(n);p.x+=cm;const q=p.toLngLat(),r=b.project(q.lng,q.lat),s=co(r.x-o.x,r.y-o.y,l),u=a.MercatorCoordinate.fromLngLat(n);u.y+=cm;const v=u.toLngLat(),w=b.project(v.lng,v.lat),x=co(w.x-o.x,w.y-o.y,l),y=Math.abs(s.x)/Math.abs(x.y),z=a.identity([]);a.rotateZ(z,z,-l*(1-(g?0:f)));const A=a.identity([]);return a.scale(A,A,[1,1-(1-y)*f,1]),A[4]=-x.x/x.y*f,a.rotateZ(A,A,l),a.multiply$1(A,z,A),A}(b.projection,0,b.center,d,c),g=ck(b);return a.scale(f,f,[g,g,1]),f}function ck(b){const c=b.projection,d=cl(b),f=cn(c,b.center),g=cn(c,a.LngLat.convert(c.center));return Math.pow(2,f*d+(1-d)*g)}function cl(b){const c=b.projection.range;if(!c)return 0;const d=Math.max(b.width,b.height),f=Math.log(d/1024)/Math.LN2;return a.smoothstep(c[0]+f,c[1]+f,b.zoom)}const cm=1/4e4;function cn(b,c){const d=a.clamp(c.lat,-a.MAX_MERCATOR_LATITUDE,a.MAX_MERCATOR_LATITUDE),f=new a.LngLat(c.lng-180*cm,d),g=new a.LngLat(c.lng+180*cm,d),h=b.project(f.lng,d),i=b.project(g.lng,d),j=a.MercatorCoordinate.fromLngLat(f),k=a.MercatorCoordinate.fromLngLat(g),l=i.x-h.x,m=i.y-h.y,n=k.x-j.x,o=k.y-j.y;return Math.log(Math.sqrt((n*n+o*o)/(l*l+m*m)))/Math.LN2}function co(a,b,c){const d=Math.cos(c),f=Math.sin(c);return{x:a*d-b*f,y:a*f+b*d}}class cp{constructor(b,c,d,f,g){this.tileSize=512,this._renderWorldCopies=void 0===g||g,this._minZoom=b||0,this._maxZoom=c||22,this._minPitch=null==d?0:d,this._maxPitch=null==f?60:f,this.setProjection(),this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new cc,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._distanceTileDataCache={},this._camera=new ci,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._projectionScaler=1,this._horizonShift=.1}clone(){const a=new cp(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return a.setProjection(this.getProjection()),a._elevation=this._elevation,a._centerAltitude=this._centerAltitude,a.tileSize=this.tileSize,a.setMaxBounds(this.getMaxBounds()),a.width=this.width,a.height=this.height,a.cameraElevationReference=this.cameraElevationReference,a._center=this._center,a._setZoom(this.zoom),a._cameraZoom=this._cameraZoom,a.angle=this.angle,a._fov=this._fov,a._pitch=this._pitch,a._nearZ=this._nearZ,a._farZ=this._farZ,a._averageElevation=this._averageElevation,a._unmodified=this._unmodified,a._edgeInsets=this._edgeInsets.clone(),a._camera=this._camera.clone(),a._calcMatrices(),a.freezeTileCoverage=this.freezeTileCoverage,a}get elevation(){return this._elevation}set elevation(a){this._elevation!==a&&(this._elevation=a,a?this._updateCenterElevation()&&this._updateCameraOnTerrain():(this._cameraZoom=null,this._centerAltitude=0),this._calcMatrices())}updateElevation(a){this._terrainEnabled()&&null==this._cameraZoom&&this._updateCenterElevation()&&this._updateCameraOnTerrain(),a&&this._constrainCameraAltitude(),this._calcMatrices()}getProjection(){return a.pick(this.projection,["name","center","parallels",])}setProjection(b){null==b&&(b={name:"mercator"}),this.projectionOptions=b;const c=this.projection?this.getProjection():void 0;return this.projection=a.getProjection(b),!g(c,this.getProjection())&&(this._calcMatrices(),!0)}get minZoom(){return this._minZoom}set minZoom(a){this._minZoom!==a&&(this._minZoom=a,this.zoom=Math.max(this.zoom,a))}get maxZoom(){return this._maxZoom}set maxZoom(a){this._maxZoom!==a&&(this._maxZoom=a,this.zoom=Math.min(this.zoom,a))}get minPitch(){return this._minPitch}set minPitch(a){this._minPitch!==a&&(this._minPitch=a,this.pitch=Math.max(this.pitch,a))}get maxPitch(){return this._maxPitch}set maxPitch(a){this._maxPitch!==a&&(this._maxPitch=a,this.pitch=Math.min(this.pitch,a))}get renderWorldCopies(){return this._renderWorldCopies&& !0===this.projection.supportsWorldCopies}set renderWorldCopies(a){void 0===a?a=!0:null===a&&(a=!1),this._renderWorldCopies=a}get worldSize(){return this.tileSize*this.scale}get cameraWorldSize(){const a=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(a))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.cameraWorldSize)}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.pointGeometry(this.width,this.height)}get bearing(){return a.wrap(this.rotation,-180,180)}set bearing(a){this.rotation=a}get rotation(){return-this.angle/Math.PI*180}set rotation(b){var c,d,f,g,h,i,j,k,l,m;const n=-b*Math.PI/180;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=(c=new a.ARRAY_TYPE(4),a.ARRAY_TYPE!=Float32Array&&(c[1]=0,c[2]=0),c[0]=1,c[3]=1,c),d=this.rotationMatrix,f=this.rotationMatrix,g=this.angle,h=f[0],i=f[1],j=f[2],k=f[3],l=Math.sin(g),m=Math.cos(g),d[0]=h*m+j*l,d[1]=i*m+k*l,d[2]=-(h*l)+j*m,d[3]=-(i*l)+k*m)}get pitch(){return this._pitch/Math.PI*180}set pitch(b){const c=a.clamp(b,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==c&&(this._unmodified=!1,this._pitch=c,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(a){a=Math.max(.01,Math.min(60,a)),this._fov!==a&&(this._unmodified=!1,this._fov=a/180*Math.PI,this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(a){this._averageElevation=a,this._calcFogMatrices()}get zoom(){return this._zoom}set zoom(a){const b=Math.min(Math.max(a,this.minZoom),this.maxZoom);this._zoom!==b&&(this._unmodified=!1,this._setZoom(b),this._terrainEnabled()&&this._updateCameraOnTerrain(),this._constrain(),this._calcMatrices())}_setZoom(a){this._zoom=a,this.scale=this.zoomScale(a),this.tileZoom=Math.floor(a),this.zoomFraction=a-this.tileZoom}_updateCenterElevation(){if(!this._elevation)return!1;const a=this._elevation.getAtPointOrZero(this.locationCoordinate(this.center),-1);return -1===a?(this._cameraZoom=null,!1):(this._centerAltitude=a,!0)}_updateCameraOnTerrain(){this._cameraZoom=this._zoomFromMercatorZ((this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize)}sampleAverageElevation(){if(!this._elevation)return 0;const b=this._elevation,c=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8],],d=this.horizonLineFromTop();let f=0,g=0;for(let h=0;hb.maxzoom&&(c=b.maxzoom);const h=this.locationCoordinate(this.center),i=1<{const c=1/4e4,d=new a.MercatorCoordinate(b.x+c,b.y,b.z),f=new a.MercatorCoordinate(b.x,b.y+c,b.z),g=b.toLngLat(),h=d.toLngLat(),i=f.toLngLat(),j=this.locationCoordinate(g),k=this.locationCoordinate(h),l=this.locationCoordinate(i),m=Math.hypot(k.x-j.x,k.y-j.y),n=Math.hypot(l.x-j.x,l.y-j.y);return Math.sqrt(m*n)*u/c},w=b=>{const c=r,d=s;return{aabb:a.tileAABB(this,i,0,0,0,b,d,c,this.projection),zoom:0,x:0,y:0,minZ:d,maxZ:c,wrap:b,fullyVisible:!1}},x=[];let y=[];const z=c,A=b.reparseOverscaled?d:c,B=a=>a*a,C=B((n-this._centerAltitude)*m),D=a=>{if(!this._elevation||!a.tileID||!g)return;const b=this._elevation.getMinMaxForTile(a.tileID),c=a.aabb;b?(c.min[2]=b.min,c.max[2]=b.max,c.center[2]=(c.min[2]+c.max[2])/2):(a.shouldSplit=E(a),a.shouldSplit||(c.min[2]=c.max[2]=c.center[2]=this._centerAltitude))},E=b=>{if(b.zoom.85?1:k}const l=c*c+g*g+h;return l{if(b*B(.707)0;){const G=x.pop(),H=G.x,I=G.y;let J=G.fullyVisible;if(!J){const K=G.aabb.intersects(k);if(0===K)continue;J=2===K}if(G.zoom!==z&&E(G))for(let L=0;L<4;L++){const M=(H<<1)+L%2,N=(I<<1)+(L>>1),O={aabb:g?G.aabb.quadrant(L):a.tileAABB(this,i,G.zoom+1,M,N,G.wrap,G.minZ,G.maxZ,this.projection),zoom:G.zoom+1,x:M,y:N,wrap:G.wrap,fullyVisible:J,tileID:void 0,shouldSplit:void 0,minZ:G.minZ,maxZ:G.maxZ};f&&(O.tileID=new a.OverscaledTileID(G.zoom+1===z?A:G.zoom+1,G.wrap,G.zoom+1,M,N),D(O)),x.push(O)}else{const P=G.zoom===z?A:G.zoom;if(b.minzoom&&b.minzoom>P)continue;const Q=j[0]-(.5+H+(G.wrap<{const d=[0,0,0,1],f=[a.EXTENT,a.EXTENT,0,1],g=this.calculateFogTileMatrix(c.tileID.toUnwrapped());a.transformMat4$1(d,d,g),a.transformMat4$1(f,f,g);const h=a.getAABBPointSquareDist(d,f);if(0===h)return!0;let i=!1;const j=this._elevation;if(j&&h>T&&0!==U){const k=this.calculateProjMatrix(c.tileID.toUnwrapped());let l;b.isTerrainDEM||(l=j.getMinMaxForTile(c.tileID)),l||(l={min:s,max:r});const m=a.furthestTileCorner(this.rotation),n=[m[0]*a.EXTENT,m[1]*a.EXTENT,l.max,];a.transformMat4(n,n,k),i=(1-n[1])*this.height*.5a.distanceSq-b.distanceSq).map(a=>a.tileID)}resize(a,b){this.width=a,this.height=b,this.pixelsToGLUnits=[2/a,-2/b],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(a){return Math.pow(2,a)}scaleZoom(a){return Math.log(a)/Math.LN2}project(b){const c=a.clamp(b.lat,-a.MAX_MERCATOR_LATITUDE,a.MAX_MERCATOR_LATITUDE),d=this.projection.project(b.lng,c);return new a.pointGeometry(d.x*this.worldSize,d.y*this.worldSize)}unproject(a){return this.projection.unproject(a.x/this.worldSize,a.y/this.worldSize)}get point(){return this.project(this.center)}setLocationAtPoint(b,c){const d=this.pointCoordinate(c),f=this.pointCoordinate(this.centerPoint),g=this.locationCoordinate(b);this.setLocation(new a.MercatorCoordinate(g.x-(d.x-f.x),g.y-(d.y-f.y)))}setLocation(a){this.center=this.coordinateLocation(a),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(a){return this.projection.locationPoint(this,a)}locationPoint3D(a){return this._coordinatePoint(this.locationCoordinate(a),!0)}pointLocation(a){return this.coordinateLocation(this.pointCoordinate(a))}pointLocation3D(a){return this.coordinateLocation(this.pointCoordinate3D(a))}locationCoordinate(b,c){const d=c?a.mercatorZfromAltitude(c,b.lat):void 0,f=this.projection.project(b.lng,b.lat);return new a.MercatorCoordinate(f.x,f.y,d)}coordinateLocation(a){return this.projection.unproject(a.x,a.y)}pointRayIntersection(b,c){const d=null!=c?c:this._centerAltitude,f=[b.x,b.y,0,1],g=[b.x,b.y,1,1];a.transformMat4$1(f,f,this.pixelMatrixInverse),a.transformMat4$1(g,g,this.pixelMatrixInverse);const h=g[3];a.scale$1(f,f,1/f[3]),a.scale$1(g,g,1/h);const i=f[2],j=g[2];return{p0:f,p1:g,t:i===j?0:(d-i)/(j-i)}}screenPointToMercatorRay(b){const c=[b.x,b.y,0,1],d=[b.x,b.y,1,1];return a.transformMat4$1(c,c,this.pixelMatrixInverse),a.transformMat4$1(d,d,this.pixelMatrixInverse),a.scale$1(c,c,1/c[3]),a.scale$1(d,d,1/d[3]),c[2]=a.mercatorZfromAltitude(c[2],this._center.lat)*this.worldSize,d[2]=a.mercatorZfromAltitude(d[2],this._center.lat)*this.worldSize,a.scale$1(c,c,1/this.worldSize),a.scale$1(d,d,1/this.worldSize),new a.Ray([c[0],c[1],c[2]],a.normalize([],a.sub([],d,c)))}rayIntersectionCoordinate(b){const{p0:c,p1:d,t:f}=b,g=a.mercatorZfromAltitude(c[2],this._center.lat),h=a.mercatorZfromAltitude(d[2],this._center.lat);return new a.MercatorCoordinate(a.number(c[0],d[0],f)/this.worldSize,a.number(c[1],d[1],f)/this.worldSize,a.number(g,h,f))}pointCoordinate(a,b=this._centerAltitude){return this.projection.createTileTransform(this,this.worldSize).pointCoordinate(a.x,a.y,b)}pointCoordinate3D(b){if(!this.elevation)return this.pointCoordinate(b);const c=this.elevation;let d=this.elevation.pointCoordinate(b);if(d)return new a.MercatorCoordinate(d[0],d[1],d[2]);let f=0,g=this.horizonLineFromTop();if(b.y>g)return this.pointCoordinate(b);const h=.02*g,i=b.clone();for(let j=0;j<10&&g-f>h;j++){i.y=a.number(f,g,.66);const k=c.pointCoordinate(i);k?(g=i.y,d=k):f=i.y}return d?new a.MercatorCoordinate(d[0],d[1],d[2]):this.pointCoordinate(b)}isPointAboveHorizon(a){if(this.elevation)return!this.elevation.pointCoordinate(a);{const b=this.horizonLineFromTop();return a.y0?new a.pointGeometry(f[0]/f[3],f[1]/f[3]):new a.pointGeometry(Number.MAX_VALUE,Number.MAX_VALUE)}_getBounds(b,c){var d,f,g,h,i,j,k,l;const m=new a.pointGeometry(this._edgeInsets.left,this._edgeInsets.top),n=new a.pointGeometry(this.width-this._edgeInsets.right,this._edgeInsets.top),o=new a.pointGeometry(this.width-this._edgeInsets.right,this.height-this._edgeInsets.bottom),p=new a.pointGeometry(this._edgeInsets.left,this.height-this._edgeInsets.bottom);let q=this.pointCoordinate(m,b),r=this.pointCoordinate(n,b);const s=this.pointCoordinate(o,c),u=this.pointCoordinate(p,c);return q.y>1&&r.y>=0?q=new a.MercatorCoordinate((1-u.y)/(d=u,((f=q).y-d.y)/(f.x-d.x))+u.x,1):q.y<0&&r.y<=1&&(q=new a.MercatorCoordinate(-u.y/(g=u,((h=q).y-g.y)/(h.x-g.x))+u.x,0)),r.y>1&&q.y>=0?r=new a.MercatorCoordinate((1-s.y)/(i=s,((j=r).y-i.y)/(j.x-i.x))+s.x,1):r.y<0&&q.y<=1&&(r=new a.MercatorCoordinate(-s.y/(k=s,((l=r).y-k.y)/(l.x-k.x))+s.x,0)),new a.LngLatBounds().extend(this.coordinateLocation(q)).extend(this.coordinateLocation(r)).extend(this.coordinateLocation(u)).extend(this.coordinateLocation(s))}_getBounds3D(){const a=this.elevation;if(!a.visibleDemTiles.length)return this._getBounds(0,0);const b=a.visibleDemTiles.reduce((a,b)=>{if(b.dem){const c=b.dem.tree;a.min=Math.min(a.min,c.minimums[0]),a.max=Math.max(a.max,c.maximums[0])}return a},{min:Number.MAX_VALUE,max:0});return this._getBounds(b.min*a.exaggeration(),b.max*a.exaggeration())}getBounds(){return this._terrainEnabled()?this._getBounds3D():this._getBounds(0,0)}horizonLineFromTop(a=!0){const b=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))+this.centerOffset.y,c=this.height/2-b*(1-this._horizonShift);return a?Math.max(0,c):c}getMaxBounds(){return this.maxBounds}setMaxBounds(b){this.maxBounds=b,this.minLat=-a.MAX_MERCATOR_LATITUDE,this.maxLat=a.MAX_MERCATOR_LATITUDE,this.minLng=-180,this.maxLng=180,b&&(this.minLat=b.getSouth(),this.maxLat=b.getNorth(),this.minLng=b.getWest(),this.maxLng=b.getEast(),this.maxLngm&&(i=m-k),m-lo&&(h=o-j),o-n.5?w-1:w,x>.5?x-1:x,0,]),this.alignedProjMatrix=y,i=a.create(),a.scale(i,i,[this.width/2,-this.height/2,1,]),a.translate(i,i,[1,-1,0]),this.labelPlaneMatrix=i,i=a.create(),a.scale(i,i,[1,-1,1]),a.translate(i,i,[-1,-1,0]),a.scale(i,i,[2/this.width,2/this.height,1,]),this.glCoordMatrix=i,this.pixelMatrix=a.multiply$1(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),this._calcFogMatrices(),this._distanceTileDataCache={},i=a.invert(new Float64Array(16),this.pixelMatrix),!i)throw Error("failed to invert matrix");this.pixelMatrixInverse=i,this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};const b=this.cameraWorldSize,c=this.cameraPixelsPerMeter,d=this._camera.position,f=1/this.height,g=[b,b,c];a.scale$2(g,g,f),a.scale$2(d,d,-1),a.multiply$2(d,d,g);const h=a.create();a.translate(h,h,d),a.scale(h,h,g),this.mercatorFogMatrix=h,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(b,c,f)}_computeCameraPosition(a){const b=(a=a||this.pixelsPerMeter)/this.pixelsPerMeter,c=this._camera.forward(),d=this.point,f=this._mercatorZfromZoom(this._cameraZoom?this._cameraZoom:this._zoom)*b-a/this.worldSize*this._centerAltitude;return[d.x/this.worldSize-c[0]*f,d.y/this.worldSize-c[1]*f,a/this.worldSize*this._centerAltitude-c[2]*f,]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(b){const c=this._maxCameraBoundsDistance()*Math.cos(this._pitch),d=b[2];let f=1;d>0&&(f=Math.min((c-this._camera.position[2])/d,1)),this._camera.position=a.scaleAndAdd([],this._camera.position,b,f),this._updateStateFromCamera()}_updateStateFromCamera(){const b=this._camera.position,c=this._camera.forward(),{pitch:d,bearing:f}=this._camera.getPitchBearing(),g=a.mercatorZfromAltitude(this._centerAltitude,this.center.lat)*this._projectionScaler,h=this._mercatorZfromZoom(this._maxZoom)*Math.cos(a.degToRad(this._maxPitch)),i=Math.max((b[2]-g)/Math.cos(d),h),j=this._zoomFromMercatorZ(i);a.scaleAndAdd(b,b,c,i),this._pitch=a.clamp(d,a.degToRad(this.minPitch),a.degToRad(this.maxPitch)),this.angle=a.wrap(f,-Math.PI,Math.PI),this._setZoom(a.clamp(j,this._minZoom,this._maxZoom)),this._terrainEnabled()&&this._updateCameraOnTerrain(),this._center=this.coordinateLocation(new a.MercatorCoordinate(b[0],b[1],b[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(a){return Math.pow(2,a)*this.tileSize}_mercatorZfromZoom(a){return this.cameraToCenterDistance/this._worldSizeFromZoom(a)}_minimumHeightOverTerrain(){const a=Math.min((null!=this._cameraZoom?this._cameraZoom:this._zoom)+2,this._maxZoom);return this._mercatorZfromZoom(a)}_zoomFromMercatorZ(a){return this.scaleZoom(this.cameraToCenterDistance/(a*this.tileSize))}_terrainEnabled(){return!(!this._elevation|| !this.projection.supportsTerrain&&(a.warnOnce("Terrain is not yet supported with alternate projections. Use mercator to enable terrain."),1))}anyCornerOffEdge(b,c){const d=Math.min(b.x,c.x),f=Math.max(b.x,c.x),g=Math.min(b.y,c.y),h=Math.max(b.y,c.y);if(gk||n.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+a.radToDeg(this.fovAboveCenter)>88||this.anyCornerOffEdge(new a.pointGeometry(0,0),new a.pointGeometry(this.width,this.height))}zoomDeltaToMovement(b,c){const d=a.length(a.sub([],this._camera.position,b)),f=this._zoomFromMercatorZ(d)+c;return d-this._mercatorZfromZoom(f)}getCameraPoint(){const b=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.pointGeometry(0,b))}}function cq(a,b){let c=!1,d=null;const f=()=>{d=null,c&&(a(),d=setTimeout(f,b),c=!1)};return()=>(c=!0,d||f(),d)}const cr={linearity:.3,easing:a.bezier(0,0,.3,1)},cs=a.extend({deceleration:2500,maxSpeed:1400},cr),ct=a.extend({deceleration:20,maxSpeed:1400},cr),cu=a.extend({deceleration:1e3,maxSpeed:360},cr),cv=a.extend({deceleration:1e3,maxSpeed:90},cr);function cw(a,b){(!a.duration||a.durationc.unproject(a)),j=g.reduce((a,b,c,d)=>a.add(b.div(d.length)),new a.pointGeometry(0,0));super(b,{points:g,point:j,lngLats:i,lngLat:c.unproject(j),originalEvent:d}),this._defaultPrevented=!1}}class cA extends a.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(a,b,c){super(a,{originalEvent:c}),this._defaultPrevented=!1}}class cB{constructor(a,b){this._map=a,this._clickTolerance=b.clickTolerance}reset(){delete this._mousedownPos}wheel(a){return this._firePreventable(new cA(a.type,this._map,a))}mousedown(a,b){return this._mousedownPos=b,this._firePreventable(new cy(a.type,this._map,a))}mouseup(a){this._map.fire(new cy(a.type,this._map,a))}preclick(b){const c=a.extend({},b);c.type="preclick",this._map.fire(new cy(c.type,this._map,c))}click(a,b){this._mousedownPos&&this._mousedownPos.dist(b)>=this._clickTolerance||(this.preclick(a),this._map.fire(new cy(a.type,this._map,a)))}dblclick(a){return this._firePreventable(new cy(a.type,this._map,a))}mouseover(a){this._map.fire(new cy(a.type,this._map,a))}mouseout(a){this._map.fire(new cy(a.type,this._map,a))}touchstart(a){return this._firePreventable(new cz(a.type,this._map,a))}touchmove(a){this._map.fire(new cz(a.type,this._map,a))}touchend(a){this._map.fire(new cz(a.type,this._map,a))}touchcancel(a){this._map.fire(new cz(a.type,this._map,a))}_firePreventable(a){if(this._map.fire(a),a.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class cC{constructor(a){this._map=a}reset(){this._delayContextMenu=!1,delete this._contextMenuEvent}mousemove(a){this._map.fire(new cy(a.type,this._map,a))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new cy("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(a){this._delayContextMenu?this._contextMenuEvent=a:this._map.fire(new cy(a.type,this._map,a)),this._map.listens("contextmenu")&&a.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class cD{constructor(a,b){this._map=a,this._el=a.getCanvasContainer(),this._container=a.getContainer(),this._clickTolerance=b.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(a,b){this.isEnabled()&&a.shiftKey&&0===a.button&&(h.disableDrag(),this._startPos=this._lastPos=b,this._active=!0)}mousemoveWindow(a,b){if(!this._active)return;const c=b;if(this._lastPos.equals(c)|| !this._box&&c.dist(this._startPos){this._box&&(this._box.style.transform=`translate(${f}px,${i}px)`,this._box.style.width=g-f+"px",this._box.style.height=j-i+"px")})}mouseupWindow(b,c){if(!this._active||0!==b.button)return;const d=this._startPos,f=c;if(this.reset(),h.suppressClick(),d.x!==f.x||d.y!==f.y)return this._map.fire(new a.Event("boxzoomend",{originalEvent:b})),{cameraAnimation:a=>a.fitScreenCoordinates(d,f,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",b)}keydown(a){this._active&&27===a.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",a))}blur(){this.reset()}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(this._box.remove(),this._box=null),h.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(b,c){return this._map.fire(new a.Event(b,{originalEvent:c}))}}function cE(a,b){const c={};for(let d=0;dthis.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=b.timeStamp),d.length===this.numTouches&&(this.centroid=function(b){const c=new a.pointGeometry(0,0);for(const d of b)c._add(d);return c.div(b.length)}(c),this.touches=cE(d,c)))}touchmove(a,b,c){if(this.aborted||!this.centroid)return;const d=cE(c,b);for(const f in this.touches){const g=this.touches[f],h=d[f];(!h||h.dist(g)>30)&&(this.aborted=!0)}}touchend(a,b,c){if((!this.centroid||a.timeStamp-this.startTime>500)&&(this.aborted=!0),0===c.length){const d=!this.aborted&&this.centroid;if(this.reset(),d)return d}}}(b),this.numTaps=b.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(a,b,c){this.singleTap.touchstart(a,b,c)}touchmove(a,b,c){this.singleTap.touchmove(a,b,c)}touchend(a,b,c){const d=this.singleTap.touchend(a,b,c);if(d){const f=a.timeStamp-this.lastTime<500,g=!this.lastTap||30>this.lastTap.dist(d);if(f&&g||this.reset(),this.count++,this.lastTime=a.timeStamp,this.lastTap=d,this.count===this.numTaps)return this.reset(),d}}}class cG{constructor(){this._zoomIn=new cF({numTouches:1,numTaps:2}),this._zoomOut=new cF({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(a,b,c){this._zoomIn.touchstart(a,b,c),this._zoomOut.touchstart(a,b,c)}touchmove(a,b,c){this._zoomIn.touchmove(a,b,c),this._zoomOut.touchmove(a,b,c)}touchend(a,b,c){const d=this._zoomIn.touchend(a,b,c),f=this._zoomOut.touchend(a,b,c);return d?(this._active=!0,a.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:b=>b.easeTo({duration:300,zoom:b.getZoom()+1,around:b.unproject(d)},{originalEvent:a})}):f?(this._active=!0,a.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:b=>b.easeTo({duration:300,zoom:b.getZoom()-1,around:b.unproject(f)},{originalEvent:a})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const cH={0:1,2:2};class cI{constructor(a){this.reset(),this._clickTolerance=a.clickTolerance||1}blur(){this.reset()}reset(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton}_correctButton(a,b){return!1}_move(a,b){return{}}mousedown(a,b){if(this._lastPoint)return;const c=h.mouseButton(a);this._correctButton(a,c)&&(this._lastPoint=b,this._eventButton=c)}mousemoveWindow(a,b){const c=this._lastPoint;if(c){if(a.preventDefault(),function(a,b){const c=cH[b];return void 0===a.buttons||(a.buttons&c)!==c}(a,this._eventButton))this.reset();else if(this._moved||!(b.dist(c)0&&(this._active=!0);const f=cE(d,c),g=new a.pointGeometry(0,0),h=new a.pointGeometry(0,0);let i=0;for(const j in f){const k=f[j],l=this._touches[j];l&&(g._add(k),h._add(k.sub(l)),i++,f[j]=k)}if(this._touches=f,i{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show")},500)}}class cN{constructor(){this.reset()}reset(){this._active=!1,delete this._firstTwoTouches}_start(a){}_move(a,b,c){return{}}touchstart(a,b,c){this._firstTwoTouches||c.length<2||(this._firstTwoTouches=[c[0].identifier,c[1].identifier,],this._start([b[0],b[1]]))}touchmove(a,b,c){if(!this._firstTwoTouches)return;a.preventDefault();const[d,f]=this._firstTwoTouches,g=cO(c,b,d),h=cO(c,b,f);if(!g||!h)return;const i=this._aroundCenter?null:g.add(h).div(2);return this._move([g,h],i,a)}touchend(a,b,c){if(!this._firstTwoTouches)return;const[d,f]=this._firstTwoTouches,g=cO(c,b,d),i=cO(c,b,f);g&&i||(this._active&&h.suppressClick(),this.reset())}touchcancel(){this.reset()}enable(a){this._enabled=!0,this._aroundCenter=!!a&&"center"===a.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function cO(a,b,c){for(let d=0;dMath.abs(cP(this._distance,this._startDistance))))return this._active=!0,{zoomDelta:cP(this._distance,c),pinchAround:b}}}function cR(a,b){return 180*a.angleWith(b)/Math.PI}class cS extends cN{reset(){super.reset(),delete this._minDiameter,delete this._startVector,delete this._vector}_start(a){this._startVector=this._vector=a[0].sub(a[1]),this._minDiameter=a[0].dist(a[1])}_move(a,b){const c=this._vector;if(this._vector=a[0].sub(a[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:cR(this._vector,c),pinchAround:b}}_isBelowThreshold(a){this._minDiameter=Math.min(this._minDiameter,a.mag());const b=25/(Math.PI*this._minDiameter)*360,c=cR(a,this._startVector);return Math.abs(c)Math.abs(a.x)}class cU extends cN{constructor(a){super(),this._map=a}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}_start(a){this._lastPoints=a,cT(a[0].sub(a[1]))&&(this._valid=!1)}_move(a,b,c){const d=a[0].sub(this._lastPoints[0]),f=a[1].sub(this._lastPoints[1]);if(!(this._map._cooperativeGestures&&c.touches.length<3)&&(this._valid=this.gestureBeginsVertically(d,f,c.timeStamp),this._valid))return this._lastPoints=a,this._active=!0,{pitchDelta:-((d.y+f.y)/2*.5)}}gestureBeginsVertically(a,b,c){if(void 0!==this._valid)return this._valid;const d=a.mag()>=2,f=b.mag()>=2;if(!d&&!f)return;if(!d||!f)return void 0===this._firstMove&&(this._firstMove=c),c-this._firstMove<100&&void 0;const g=a.y>0==b.y>0;return cT(a)&&cT(b)&&g}}class cV{constructor(){const a={panStep:100,bearingStep:15,pitchStep:10};this._panStep=a.panStep,this._bearingStep=a.bearingStep,this._pitchStep=a.pitchStep,this._rotationDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(a){if(a.altKey||a.ctrlKey||a.metaKey)return;let b=0,c=0,d=0,f=0,g=0;switch(a.keyCode){case 61:case 107:case 171:case 187:b=1;break;case 189:case 109:case 173:b=-1;break;case 37:a.shiftKey?c=-1:(a.preventDefault(),f=-1);break;case 39:a.shiftKey?c=1:(a.preventDefault(),f=1);break;case 38:a.shiftKey?d=1:(a.preventDefault(),g=-1);break;case 40:a.shiftKey?d=-1:(a.preventDefault(),g=1);break;default:return}return this._rotationDisabled&&(c=0,d=0),{cameraAnimation:h=>{const i=h.getZoom();h.easeTo({duration:300,easeId:"keyboardHandler",easing:cW,zoom:b?Math.round(i)+b*(a.shiftKey?2:1):i,bearing:h.getBearing()+c*this._bearingStep,pitch:h.getPitch()+d*this._pitchStep,offset:[-f*this._panStep,-g*this._panStep,],center:h.getCenter()},{originalEvent:a})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function cW(a){return a*(2-a)}const cX=4.000244140625;class cY{constructor(b,c){this._map=b,this._el=b.getCanvasContainer(),this._handler=c,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,a.bindAll(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert","_isFullscreen",],this)}setZoomRate(a){this._defaultZoomRate=a}setWheelZoomRate(a){this._wheelZoomRate=a}isEnabled(){return!!this._enabled}isActive(){return!!this._active|| void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(a){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!a&&"center"===a.around,this._map._cooperativeGestures&&this._addScrollZoomBlocker())}disable(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}wheel(b){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!(b.ctrlKey||b.metaKey||this.isZooming()||this._isFullscreen()))return void this._showBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let c=b.deltaMode===a.window.WheelEvent.DOM_DELTA_LINE?40*b.deltaY:b.deltaY;const d=a.exported.now(),f=d-(this._lastWheelEventTime||0);this._lastWheelEventTime=d,0!==c&&c%cX==0?this._type="wheel":0!==c&&4>Math.abs(c)?this._type="trackpad":f>400?(this._type=null,this._lastValue=c,this._timeout=setTimeout(this._onTimeout,40,b)):this._type||(this._type=200>Math.abs(f*c)?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,c+=this._lastValue)),b.shiftKey&&c&&(c/=4),this._type&&(this._lastWheelEvent=b,this._delta-=c,this._active||this._start(b)),b.preventDefault()}_onTimeout(a){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(a)}_start(a){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const b=h.mousePos(this._el,a);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:b,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;const b=this._map.transform,c=()=>b._terrainEnabled()&&this._aroundCoord?b.computeZoomRelativeTo(this._aroundCoord):b.zoom;if(0!==this._delta){const d="wheel"===this._type&&Math.abs(this._delta)>cX?this._wheelZoomRate:this._defaultZoomRate;let f=2/(1+Math.exp(-Math.abs(this._delta*d)));this._delta<0&&0!==f&&(f=1/f);const g=c(),h=Math.pow(2,g),i="number"==typeof this._targetZoom?b.zoomScale(this._targetZoom):h;this._targetZoom=Math.min(b.maxZoom,Math.max(b.minZoom,b.scaleZoom(i*f))),"wheel"===this._type&&(this._startZoom=c(),this._easing=this._smoothOutEasing(200)),this._delta=0}const j="number"==typeof this._targetZoom?this._targetZoom:c(),k=this._startZoom,l=this._easing;let m,n=!1;if("wheel"===this._type&&k&&l){const o=Math.min((a.exported.now()-this._lastWheelEventTime)/200,1),p=l(o);m=a.number(k,j,p),o<1?this._frameId||(this._frameId=!0):n=!0}else m=j,n=!0;return this._active=!0,n&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!n,zoomDelta:m-c(),around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(b){let c=a.ease;if(this._prevEase){const d=this._prevEase,f=(a.exported.now()-d.start)/d.duration,g=d.easing(f+.01)-d.easing(f),h=.27/Math.sqrt(g*g+1e-4)*.01,i=Math.sqrt(.0729-h*h);c=a.bezier(h,i,.25,1)}return this._prevEase={start:a.exported.now(),duration:b,easing:c},c}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=h.create("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=/(Mac|iPad)/i.test(a.window.navigator.userAgent)?this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_isFullscreen(){return!!a.window.document.fullscreenElement}_showBlockerAlert(){"hidden"===this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="visible"),this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show")},200)}}class cZ{constructor(a,b){this._clickZoom=a,this._tapZoom=b}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class c${constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(a,b){return a.preventDefault(),{cameraAnimation(c){c.easeTo({duration:300,zoom:c.getZoom()+(a.shiftKey?-1:1),around:c.unproject(b)},{originalEvent:a})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class c_{constructor(){this._tap=new cF({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()}touchstart(a,b,c){this._swipePoint||(this._tapTime&&a.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?c.length>0&&(this._swipePoint=b[0],this._swipeTouch=c[0].identifier):this._tap.touchstart(a,b,c))}touchmove(a,b,c){if(this._tapTime){if(this._swipePoint){if(c[0].identifier!==this._swipeTouch)return;const d=b[0],f=d.y-this._swipePoint.y;return this._swipePoint=d,a.preventDefault(),this._active=!0,{zoomDelta:f/128}}}else this._tap.touchmove(a,b,c)}touchend(a,b,c){this._tapTime?this._swipePoint&&0===c.length&&this.reset():this._tap.touchend(a,b,c)&&(this._tapTime=a.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class c0{constructor(a,b,c){this._el=a,this._mousePan=b,this._touchPan=c}enable(a){this._inertiaOptions=a||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class c1{constructor(a,b,c){this._pitchWithRotate=a.pitchWithRotate,this._mouseRotate=b,this._mousePitch=c}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class c2{constructor(a,b,c,d){this._el=a,this._touchZoom=b,this._touchRotate=c,this._tapDragZoom=d,this._rotationDisabled=!1,this._enabled=!0}enable(a){this._touchZoom.enable(a),this._rotationDisabled||this._touchRotate.enable(a),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const c3=a=>a.zoom||a.drag||a.pitch||a.rotate;class c4 extends a.Event{}function c5(a){return a.panDelta&&a.panDelta.mag()||a.zoomDelta||a.bearingDelta||a.pitchDelta}const c6="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class c7 extends a.Evented{constructor(b,c){super(),this._moving=!1,this._zooming=!1,this.transform=b,this._bearingSnap=c.bearingSnap,a.bindAll(["_renderFrameCallback"],this)}getCenter(){return new a.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(a,b){return this.jumpTo({center:a},b)}panBy(b,c,d){return b=a.pointGeometry.convert(b).mult(-1),this.panTo(this.transform.center,a.extend({offset:b},c),d)}panTo(b,c,d){return this.easeTo(a.extend({center:b},c),d)}getZoom(){return this.transform.zoom}setZoom(a,b){return this.jumpTo({zoom:a},b),this}zoomTo(b,c,d){return this.easeTo(a.extend({zoom:b},c),d)}zoomIn(a,b){return this.zoomTo(this.getZoom()+1,a,b),this}zoomOut(a,b){return this.zoomTo(this.getZoom()-1,a,b),this}getBearing(){return this.transform.bearing}setBearing(a,b){return this.jumpTo({bearing:a},b),this}getPadding(){return this.transform.padding}setPadding(a,b){return this.jumpTo({padding:a},b),this}rotateTo(b,c,d){return this.easeTo(a.extend({bearing:b},c),d)}resetNorth(b,c){return this.rotateTo(0,a.extend({duration:1e3},b),c),this}resetNorthPitch(b,c){return this.easeTo(a.extend({bearing:0,pitch:0,duration:1e3},b),c),this}snapToNorth(a,b){return Math.abs(this.getBearing())p=>{if(x&&(d.zoom=a.number(f,j,p)),y&&(d.bearing=a.number(g,k,p)),z&&(d.pitch=a.number(h,l,p)),A&&(d.interpolatePadding(i,m,p),o=d.centerPoint.add(n)),v)d.setLocationAtPoint(v,w);else{const q=d.zoomScale(d.zoom-f),B=j>f?Math.min(2,u):Math.max(.5,u),C=Math.pow(B,1-p),D=d.unproject(r.add(s.mult(p*C)).mult(q));d.setLocationAtPoint(d.renderWorldCopies?D.wrap():D,o)}return b.preloadOnly||this._fireMoveEvents(c),d};if(b.preloadOnly){const C=this._emulate(B,b.duration,d);return this._preloadTiles(C),this}const D={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=x,this._rotating=y,this._pitching=z,this._padding=A,this._easeId=b.easeId,this._prepareEase(c,b.noMoveStart,D),this._ease(B(d),a=>{d.recenterOnTerrain(),this._afterEase(c,a)},b),this}_prepareEase(b,c,d={}){this._moving=!0,this.transform.cameraElevationReference="sea",c||d.moving||this.fire(new a.Event("movestart",b)),this._zooming&&!d.zooming&&this.fire(new a.Event("zoomstart",b)),this._rotating&&!d.rotating&&this.fire(new a.Event("rotatestart",b)),this._pitching&&!d.pitching&&this.fire(new a.Event("pitchstart",b))}_fireMoveEvents(b){this.fire(new a.Event("move",b)),this._zooming&&this.fire(new a.Event("zoom",b)),this._rotating&&this.fire(new a.Event("rotate",b)),this._pitching&&this.fire(new a.Event("pitch",b))}_afterEase(b,c){if(this._easeId&&c&&this._easeId===c)return;delete this._easeId,this.transform.cameraElevationReference="ground";const d=this._zooming,f=this._rotating,g=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,d&&this.fire(new a.Event("zoomend",b)),f&&this.fire(new a.Event("rotateend",b)),g&&this.fire(new a.Event("pitchend",b)),this.fire(new a.Event("moveend",b))}flyTo(b,c){if(!b.essential&&a.exported.prefersReducedMotion){const d=a.pick(b,["center","zoom","bearing","pitch","around",]);return this.jumpTo(d,c)}this.stop(),b=a.extend({offset:[0,0],speed:1.2,curve:1.42,easing:a.ease},b);const f=this.transform,g=this.getZoom(),h=this.getBearing(),i=this.getPitch(),j=this.getPadding(),k="zoom"in b?a.clamp(+b.zoom,f.minZoom,f.maxZoom):g,l="bearing"in b?this._normalizeBearing(b.bearing,h):h,m="pitch"in b?+b.pitch:i,n="padding"in b?b.padding:f.padding,o=f.zoomScale(k-g),p=a.pointGeometry.convert(b.offset);let q=f.centerPoint.add(p);const r=f.pointLocation(q),s=a.LngLat.convert(b.center||r);this._normalizeCenter(s);const u=f.project(r),v=f.project(s).sub(u);let w=b.curve;const x=Math.max(f.width,f.height),y=x/o,z=v.mag();if("minZoom"in b){const A=a.clamp(Math.min(b.minZoom,g,k),f.minZoom,f.maxZoom),B=x/f.zoomScale(A-g);w=Math.sqrt(B/z*2)}const C=w*w;function D(a){const b=(y*y-x*x+(a?-1:1)*C*C*z*z)/(2*(a?y:x)*C*z);return Math.log(Math.sqrt(b*b+1)-b)}function E(a){return(Math.exp(a)-Math.exp(-a))/2}function F(a){return(Math.exp(a)+Math.exp(-a))/2}const G=D(0);let H=function(a){return F(G)/F(G+w*a)},I=function(a){var b;return x*((F(G)*(E(b=G+w*a)/F(b))-E(G))/C)/z},J=(D(1)-G)/w;if(1e-6>Math.abs(z)||!isFinite(J)){if(1e-6>Math.abs(x-y))return this.easeTo(b,c);const K=yb.maxDuration&&(b.duration=0);const L=h!==l,M=m!==i,N=!f.isPaddingEqual(n),O=d=>f=>{const o=f*J,r=1/H(o);d.zoom=1===f?k:g+d.scaleZoom(r),L&&(d.bearing=a.number(h,l,f)),M&&(d.pitch=a.number(i,m,f)),N&&(d.interpolatePadding(j,n,f),q=d.centerPoint.add(p));const w=1===f?s:d.unproject(u.add(v.mult(I(o))).mult(r));return d.setLocationAtPoint(d.renderWorldCopies?w.wrap():w,q),d._updateCenterElevation(),b.preloadOnly||this._fireMoveEvents(c),d};if(b.preloadOnly){const P=this._emulate(O,b.duration,f);return this._preloadTiles(P),this}return this._zooming=!0,this._rotating=L,this._pitching=M,this._padding=N,this._prepareEase(c,!1),this._ease(O(f),()=>this._afterEase(c),b),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(a,b){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){const c=this._onEaseEnd;delete this._onEaseEnd,c.call(this,b)}if(!a){const d=this.handlers;d&&d.stop(!1)}return this}_ease(b,c,d){!1===d.animate||0===d.duration?(b(1),c()):(this._easeStart=a.exported.now(),this._easeOptions=d,this._onEaseFrame=b,this._onEaseEnd=c,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const b=Math.min((a.exported.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(b)),b<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(b,c){b=a.wrap(b,-180,180);const d=Math.abs(b-c);return Math.abs(b-360-c)180?-360:c< -180?360:0}_emulate(a,b,c){const d=Math.ceil(15*b/1e3),f=[],g=a(c.clone());for(let h=0;h<=d;h++){const i=g(h/d);f.push(i.clone())}return f}}class c8{constructor(b={}){this.options=b,a.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact",],this)}getDefaultPosition(){return"bottom-right"}onAdd(a){const b=this.options&&this.options.compact;return this._map=a,this._container=h.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=h.create("button","mapboxgl-ctrl-attrib-button",this._container),h.create("span","mapboxgl-ctrl-icon",this._compactButton).setAttribute("aria-hidden",!0),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=h.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),b&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===b&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_setElementTitle(a,b){const c=this._map._getUIString(`AttributionControl.${b}`);a.setAttribute("aria-label",c),a.removeAttribute("title"),a.firstElementChild&&a.firstElementChild.setAttribute("title",c)}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}_updateEditLink(){let b=this._editLink;b||(b=this._editLink=this._container.querySelector(".mapbox-improve-map"));const c=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||a.config.ACCESS_TOKEN},];if(b){const d=c.reduce((a,b,d)=>(b.value&&(a+=`${b.key}=${b.value}${da.indexOf(g.attribution)&&a.push(g.attribution)}}a.sort((a,b)=>a.length-b.length),a=a.filter((b,c)=>{for(let d=c+1;d=0)return!1;return!0}),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?a=[...this.options.customAttribution,...a,]:a.unshift(this.options.customAttribution));const h=a.join(" | ");h!==this._attribHTML&&(this._attribHTML=h,a.length?(this._innerContainer.innerHTML=h,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class c9{constructor(){a.bindAll(["_updateLogo"],this),a.bindAll(["_updateCompact"],this)}onAdd(a){this._map=a,this._container=h.create("div","mapboxgl-ctrl");const b=h.create("a","mapboxgl-ctrl-logo");return b.target="_blank",b.rel="noopener nofollow",b.href="https://www.mapbox.com/",b.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),b.setAttribute("rel","noopener nofollow"),this._container.appendChild(b),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(a){a&&"metadata"!==a.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;const a=this._map.style._sourceCaches;if(0===Object.entries(a).length)return!0;for(const b in a){const c=a[b].getSource();if(c.hasOwnProperty("mapbox_logo")&&!c.mapbox_logo)return!1}return!0}_updateCompact(){const a=this._container.children;if(a.length){const b=a[0];this._map.getCanvasContainer().offsetWidth<250?b.classList.add("mapboxgl-compact"):b.classList.remove("mapboxgl-compact")}}}class da{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(a){const b=++this._id;return this._queue.push({callback:a,id:b,cancelled:!1}),b}remove(a){const b=this._currentlyRunning,c=b?this._queue.concat(b):this._queue;for(const d of c)if(d.id===a)return void(d.cancelled=!0)}run(a=0){const b=this._currentlyRunning=this._queue;for(const c of(this._queue=[],b))if(!c.cancelled&&(c.callback(a),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function db(b,c,d){if(b=new a.LngLat(b.lng,b.lat),c){const f=new a.LngLat(b.lng-360,b.lat),g=new a.LngLat(b.lng+360,b.lat),h=360*Math.ceil(Math.abs(b.lng-d.center.lng)/360),i=d.locationPoint(b).distSqr(c),j=c.x<0||c.y<0||c.x>d.width||c.y>d.height;d.locationPoint(f).distSqr(c)180;){const k=d.locationPoint(b);if(k.x>=0&&k.y>=0&&k.x<=d.width&&k.y<=d.height)break;b.lng>d.center.lng?b.lng-=360:b.lng+=360}return b}const dc={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};class dd extends a.Evented{constructor(b,c){if(super(),(b instanceof a.window.HTMLElement||c)&&(b=a.extend({element:b},c)),a.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer",],this),this._anchor=b&&b.anchor||"center",this._color=b&&b.color||"#3FB1CE",this._scale=b&&b.scale||1,this._draggable=b&&b.draggable||!1,this._clickTolerance=b&&b.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=b&&b.rotation||0,this._rotationAlignment=b&&b.rotationAlignment||"auto",this._pitchAlignment=b&&b.pitchAlignment&&"auto"!==b.pitchAlignment?b.pitchAlignment:this._rotationAlignment,this._updateMoving=()=>this._update(!0),b&&b.element)this._element=b.element,this._offset=a.pointGeometry.convert(b&&b.offset||[0,0]);else{this._defaultMarker=!0,this._element=h.create("div");const d=41,f=27,g=h.createSVG("svg",{display:"block",height:d*this._scale+"px",width:f*this._scale+"px",viewBox:`0 0 ${f} ${d}`},this._element),i=h.createSVG("radialGradient",{id:"shadowGradient"},h.createSVG("defs",{},g));h.createSVG("stop",{offset:"10%","stop-opacity":.4},i),h.createSVG("stop",{offset:"100%","stop-opacity":.05},i),h.createSVG("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},g),h.createSVG("path",{fill:this._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},g),h.createSVG("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},g),h.createSVG("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},g),this._offset=a.pointGeometry.convert(b&&b.offset||[0,-14])}this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",a=>{a.preventDefault()}),this._element.addEventListener("mousedown",a=>{a.preventDefault()});const j=this._element.classList;for(const k in dc)j.remove(`mapboxgl-marker-anchor-${k}`);j.add(`mapboxgl-marker-anchor-${this._anchor}`),this._popup=null}addTo(a){return a===this._map||(this.remove(),this._map=a,a.getCanvasContainer().appendChild(this._element),a.on("move",this._updateMoving),a.on("moveend",this._update),a.on("remove",this._clearFadeTimer),a._addMarker(this),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick)),this}remove(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._updateMoving),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._map.off("remove",this._clearFadeTimer),this._map._removeMarker(this),delete this._map),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(b){return this._lngLat=a.LngLat.convert(b),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}getElement(){return this._element}setPopup(a){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),a){if(!("offset"in a.options)){const b=38.1,c=13.5,d=Math.sqrt(Math.pow(c,2)/2);a.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-b],"bottom-left":[d,-1*(b-c+d),],"bottom-right":[-d,-1*(b-c+d),],left:[c,-1*(b-c)],right:[-c,-1*(b-c)]}:this._offset}this._popup=a,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","false")}return this}_onKeyPress(a){const b=a.code,c=a.charCode||a.keyCode;"Space"!==b&&"Enter"!==b&&32!==c&&13!==c||this.togglePopup()}_onMapClick(a){const b=a.originalEvent.target,c=this._element;this._popup&&(b===c||c.contains(b))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const a=this._popup;return a&&(a.isOpen()?(a.remove(),this._element.setAttribute("aria-expanded","false")):(a.addTo(this._map),this._element.setAttribute("aria-expanded","true"))),this}_evaluateOpacity(){const a=this._pos?this._pos.sub(this._transformedOffset()):null;if(!this._withinScreenBounds(a))return void this._clearFadeTimer();const b=this._map.unproject(a);let c=!1;if(this._map.transform._terrainEnabled()&&this._map.getTerrain()){const d=this._map.getFreeCameraOptions();if(d.position){const f=d.position.toLngLat();c=f.distanceTo(b)<.9*f.distanceTo(this._lngLat)}}const g=(1-this._map._queryFogOpacity(b))*(c?.2:1);this._element.style.opacity=`${g}`,this._popup&&this._popup._setOpacity(`${g}`),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_withinScreenBounds(a){const b=this._map.transform;return!!a&&a.x>=0&&a.x=0&&a.y{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())}):this._pos=this._pos.round(),this._map._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(this._map.getTerrain()||this._map.getFog())&&!this._fadeTimer&&(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))}))}_transformedOffset(){if(!this._defaultMarker)return this._offset;const a=this._map.transform,b=this._offset.mult(this._scale);return"map"===this._rotationAlignment&&b._rotate(a.angle),"map"===this._pitchAlignment&&(b.y*=Math.cos(a._pitch)),b}getOffset(){return this._offset}setOffset(b){return this._offset=a.pointGeometry.convert(b),this._update(),this}_onMove(b){if(!this._isDragging){const c=this._clickTolerance||this._map._clickTolerance;this._isDragging=b.point.dist(this._pointerdownPos)>=c}this._isDragging&&(this._pos=b.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new a.Event("dragstart"))),this.fire(new a.Event("drag")))}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new a.Event("dragend")),this._state="inactive"}_addDragHandler(a){this._element.contains(a.originalEvent.target)&&(a.preventDefault(),this._positionDelta=a.point.sub(this._pos).add(this._transformedOffset()),this._pointerdownPos=a.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))}setDraggable(a){return this._draggable=!!a,this._map&&(a?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(a){return this._rotation=a||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(a){return this._rotationAlignment=a||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(a){return this._pitchAlignment=a&&"auto"!==a?a:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}}const{HTMLImageElement:de,HTMLElement:df,ImageBitmap:dg}=a.window;function dh(a){a.parentNode&&a.parentNode.removeChild(a)}class di{constructor(b,c,d=!1){this._clickTolerance=10,this.element=c,this.mouseRotate=new cK({clickTolerance:b.dragRotate._mouseRotate._clickTolerance}),this.map=b,d&&(this.mousePitch=new cL({clickTolerance:b.dragRotate._mousePitch._clickTolerance})),a.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset",],this),c.addEventListener("mousedown",this.mousedown),c.addEventListener("touchstart",this.touchstart,{passive:!1}),c.addEventListener("touchmove",this.touchmove),c.addEventListener("touchend",this.touchend),c.addEventListener("touchcancel",this.reset)}down(a,b){this.mouseRotate.mousedown(a,b),this.mousePitch&&this.mousePitch.mousedown(a,b),h.disableDrag()}move(a,b){const c=this.map,d=this.mouseRotate.mousemoveWindow(a,b);if(d&&d.bearingDelta&&c.setBearing(c.getBearing()+d.bearingDelta),this.mousePitch){const f=this.mousePitch.mousemoveWindow(a,b);f&&f.pitchDelta&&c.setPitch(c.getPitch()+f.pitchDelta)}}off(){const a=this.element;a.removeEventListener("mousedown",this.mousedown),a.removeEventListener("touchstart",this.touchstart,{passive:!1}),a.removeEventListener("touchmove",this.touchmove),a.removeEventListener("touchend",this.touchend),a.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){h.enableDrag(),a.window.removeEventListener("mousemove",this.mousemove),a.window.removeEventListener("mouseup",this.mouseup)}mousedown(b){this.down(a.extend({},b,{ctrlKey:!0,preventDefault:()=>b.preventDefault()}),h.mousePos(this.element,b)),a.window.addEventListener("mousemove",this.mousemove),a.window.addEventListener("mouseup",this.mouseup)}mousemove(a){this.move(a,h.mousePos(this.element,a))}mouseup(a){this.mouseRotate.mouseupWindow(a),this.mousePitch&&this.mousePitch.mouseupWindow(a),this.offTemp()}touchstart(a){1!==a.targetTouches.length?this.reset():(this._startPos=this._lastPos=h.touchPos(this.element,a.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>a.preventDefault()},this._startPos))}touchmove(a){1!==a.targetTouches.length?this.reset():(this._lastPos=h.touchPos(this.element,a.targetTouches)[0],this.move({preventDefault:()=>a.preventDefault()},this._lastPos))}touchend(a){0===a.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)5280?dn(b,d,j/5280,a._getUIString("ScaleControl.Miles"),a):dn(b,d,j,a._getUIString("ScaleControl.Feet"),a)}else c&&"nautical"===c.unit?dn(b,d,i/1852,a._getUIString("ScaleControl.NauticalMiles"),a):i>=1e3?dn(b,d,i/1e3,a._getUIString("ScaleControl.Kilometers"),a):dn(b,d,i,a._getUIString("ScaleControl.Meters"),a)}function dn(a,b,c,d,f){const g=function(a){const b=Math.pow(10,`${Math.floor(a)}`.length-1);let c=a/b;return c=c>=10?10:c>=5?5:c>=3?3:c>=2?2:c>=1?1:function(a){const b=Math.pow(10,Math.ceil(-Math.log(a)/Math.LN10));return Math.round(a*b)/b}(c),b*c}(c),h=g/c;f._requestDomTask(()=>{a.style.width=b*h+"px",a.innerHTML=`${g} ${d}`})}const dp={version:a.version,supported:b,setRTLTextPlugin:a.setRTLTextPlugin,getRTLTextPluginStatus:a.getRTLTextPluginStatus,Map:class extends c7{constructor(b){if(null!=(b=a.extend({},{center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,optimizeForTerrain:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},b)).minZoom&&null!=b.maxZoom&&b.minZoom>b.maxZoom)throw Error("maxZoom must be greater than or equal to minZoom");if(null!=b.minPitch&&null!=b.maxPitch&&b.minPitch>b.maxPitch)throw Error("maxPitch must be greater than or equal to minPitch");if(null!=b.minPitch&&b.minPitch<0)throw Error("minPitch must be greater than or equal to 0");if(null!=b.maxPitch&&b.maxPitch>85)throw Error("maxPitch must be less than or equal to 85");if(super(new cp(b.minZoom,b.maxZoom,b.minPitch,b.maxPitch,b.renderWorldCopies),b),this._interactive=b.interactive,this._minTileCacheSize=b.minTileCacheSize,this._maxTileCacheSize=b.maxTileCacheSize,this._failIfMajorPerformanceCaveat=b.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=b.preserveDrawingBuffer,this._antialias=b.antialias,this._trackResize=b.trackResize,this._bearingSnap=b.bearingSnap,this._refreshExpiredTiles=b.refreshExpiredTiles,this._fadeDuration=b.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=b.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=b.collectResourceTiming,this._optimizeForTerrain=b.optimizeForTerrain,this._renderTaskQueue=new da,this._domRenderTaskQueue=new da,this._controls=[],this._markers=[],this._mapId=a.uniqueId(),this._locale=a.extend({},{"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use ⌘ + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},b.locale),this._clickTolerance=b.clickTolerance,this._cooperativeGestures=b.cooperativeGestures,this._containerWidth=0,this._containerHeight=0,this._averageElevationLastSampledAt=-1/0,this._averageElevation=new class{constructor(a){this.jumpTo(a)}getValue(b){if(b<=this._startTime)return this._start;if(b>=this._endTime)return this._end;const c=a.easeCubicInOut((b-this._startTime)/(this._endTime-this._startTime));return this._start*(1-c)+this._end*c}isEasing(a){return a>=this._startTime&&a<=this._endTime}jumpTo(a){this._startTime=-1/0,this._endTime=-1/0,this._start=a,this._end=a}easeTo(a,b,c){this._start=this.getValue(b),this._end=a,this._startTime=b,this._endTime=b+c}}(0),this._requestManager=new a.RequestManager(b.transformRequest,b.accessToken,b.testMode),this._silenceAuthErrors=!!b.testMode,"string"==typeof b.container){if(this._container=a.window.document.getElementById(b.container),!this._container)throw Error(`Container '${b.container}' not found.`)}else{if(!(b.container instanceof df))throw Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=b.container}if(this._container.childNodes.length>0&&a.warnOnce("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),b.maxBounds&&this.setMaxBounds(b.maxBounds),a.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored",],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw Error("Failed to initialize WebGL.");this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),void 0!==a.window&&(a.window.addEventListener("online",this._onWindowOnline,!1),a.window.addEventListener("resize",this._onWindowResize,!1),a.window.addEventListener("orientationchange",this._onWindowResize,!1),a.window.addEventListener("webkitfullscreenchange",this._onWindowResize,!1)),this.handlers=new class{constructor(b,c){this._map=b,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new class{constructor(a){this._map=a,this.clear()}clear(){this._inertiaBuffer=[]}record(b){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:a.exported.now(),settings:b})}_drainInertiaBuffer(){const b=this._inertiaBuffer,c=a.exported.now();for(;b.length>0&&c-b[0].time>160;)b.shift()}_onMoveEnd(b){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const c={zoom:0,bearing:0,pitch:0,pan:new a.pointGeometry(0,0),pinchAround:void 0,around:void 0};for(const{settings:d}of this._inertiaBuffer)c.zoom+=d.zoomDelta||0,c.bearing+=d.bearingDelta||0,c.pitch+=d.pitchDelta||0,d.panDelta&&c.pan._add(d.panDelta),d.around&&(c.around=d.around),d.pinchAround&&(c.pinchAround=d.pinchAround);const f=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,g={};if(c.pan.mag()){const h=cx(c.pan.mag(),f,a.extend({},cs,b||{}));g.offset=c.pan.mult(h.amount/c.pan.mag()),g.center=this._map.transform.center,cw(g,h)}if(c.zoom){const i=cx(c.zoom,f,ct);g.zoom=this._map.transform.zoom+i.amount,cw(g,i)}if(c.bearing){const j=cx(c.bearing,f,cu);g.bearing=this._map.transform.bearing+a.clamp(j.amount,-179,179),cw(g,j)}if(c.pitch){const k=cx(c.pitch,f,cv);g.pitch=this._map.transform.pitch+k.amount,cw(g,k)}if(g.zoom||g.bearing){const l=void 0===c.pinchAround?c.around:c.pinchAround;g.around=l?this._map.unproject(l):this._map.getCenter()}return this.clear(),a.extend(g,{noMoveStart:!0})}}(b),this._bearingSnap=c.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new class{constructor(){this.constants=[1,1,.01],this.radius=0}setup(b,c){const d=a.sub([],c,b);this.radius=a.length(d[2]<0?a.div([],d,this.constants):[d[0],d[1],0])}projectRay(b){a.div(b,b,this.constants),a.normalize(b,b),a.mul$1(b,b,this.constants);const c=a.scale$2([],b,this.radius);if(c[2]>0){const d=a.scale$2([],[0,0,1],a.dot(c,[0,0,1])),f=a.scale$2([],a.normalize([],[c[0],c[1],0]),this.radius),g=a.add([],c,a.scale$2([],a.sub([],a.add([],f,d),c),2));c[0]=g[0],c[1]=g[1]}return c}},this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(c),a.bindAll(["handleEvent","handleWindowEvent"],this);const d=this._el;for(const[f,g,h]of(this._listeners=[[d,"touchstart",{passive:!0},],[d,"touchmove",{passive:!1},],[d,"touchend",void 0],[d,"touchcancel",void 0],[d,"mousedown",void 0],[d,"mousemove",void 0],[d,"mouseup",void 0],[a.window.document,"mousemove",{capture:!0},],[a.window.document,"mouseup",void 0],[d,"mouseover",void 0],[d,"mouseout",void 0],[d,"dblclick",void 0],[d,"click",void 0],[d,"keydown",{capture:!1},],[d,"keyup",void 0],[d,"wheel",{passive:!1},],[d,"contextmenu",void 0],[a.window,"blur",void 0],],this._listeners))f.addEventListener(g,f===a.window.document?this.handleWindowEvent:this.handleEvent,h)}destroy(){for(const[b,c,d]of this._listeners)b.removeEventListener(c,b===a.window.document?this.handleWindowEvent:this.handleEvent,d)}_addDefaultHandlers(a){const b=this._map,c=b.getCanvasContainer();this._add("mapEvent",new cB(b,a));const d=b.boxZoom=new cD(b,a);this._add("boxZoom",d);const f=new cG,g=new c$;b.doubleClickZoom=new cZ(g,f),this._add("tapZoom",f),this._add("clickZoom",g);const h=new c_;this._add("tapDragZoom",h);const i=b.touchPitch=new cU(b);this._add("touchPitch",i);const j=new cK(a),k=new cL(a);b.dragRotate=new c1(a,j,k),this._add("mouseRotate",j,["mousePitch"]),this._add("mousePitch",k,["mouseRotate"]);const l=new cJ(a),m=new cM(b,a);b.dragPan=new c0(c,l,m),this._add("mousePan",l),this._add("touchPan",m,["touchZoom","touchRotate",]);const n=new cS,o=new cQ;b.touchZoomRotate=new c2(c,o,n,h),this._add("touchRotate",n,["touchPan","touchZoom",]),this._add("touchZoom",o,["touchPan","touchRotate",]),this._add("blockableMapEvent",new cC(b));const p=b.scrollZoom=new cY(b,this);this._add("scrollZoom",p,["mousePan"]);const q=b.keyboard=new cV;for(const r of(this._add("keyboard",q),["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard",]))a.interactive&&a[r]&&b[r].enable(a[r])}_add(a,b,c){this._handlers.push({handlerName:a,handler:b,allowed:c}),this._handlersById[a]=b}stop(a){if(!this._updatingCamera){for(const{handler:b}of this._handlers)b.reset();this._inertia.clear(),this._fireEvents({},{},a),this._changes=[]}}isActive(){for(const{handler:a}of this._handlers)if(a.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return Boolean(c3(this._eventsInProgress))||this.isZooming()}_blockedByActive(a,b,c){for(const d in a)if(d!==c&&(!b||0>b.indexOf(d)))return!0;return!1}handleWindowEvent(a){this.handleEvent(a,`${a.type}Window`)}_getMapTouches(a){const b=[];for(const c of a)this._el.contains(c.target)&&b.push(c);return b}handleEvent(a,b){this._updatingCamera=!0;const c="renderFrame"===a.type,d=c?void 0:a,f={needsRenderFrame:!1},g={},i={},j=a.touches?this._getMapTouches(a.touches):void 0,k=j?h.touchPos(this._el,j):c?void 0:h.mousePos(this._el,a);for(const{handlerName:l,handler:m,allowed:n}of this._handlers){if(!m.isEnabled())continue;let o;this._blockedByActive(i,n,l)?m.reset():m[b||a.type]&&(o=m[b||a.type](a,k,j),this.mergeHandlerResult(f,g,o,l,d),o&&o.needsRenderFrame&&this._triggerRenderFrame()),(o||m.isActive())&&(i[l]=m)}const p={};for(const q in this._previousActiveHandlers)i[q]||(p[q]=d);this._previousActiveHandlers=i,(Object.keys(p).length||c5(f))&&(this._changes.push([f,g,p]),this._triggerRenderFrame()),(Object.keys(i).length||c5(f))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:r}=f;r&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],r(this._map))}mergeHandlerResult(b,c,d,f,g){if(!d)return;a.extend(b,d);const h={handlerName:f,originalEvent:d.originalEvent||g};void 0!==d.zoomDelta&&(c.zoom=h),void 0!==d.panDelta&&(c.drag=h),void 0!==d.pitchDelta&&(c.pitch=h),void 0!==d.bearingDelta&&(c.rotate=h)}_applyChanges(){const b={},c={},d={};for(const[f,g,h]of this._changes)f.panDelta&&(b.panDelta=(b.panDelta||new a.pointGeometry(0,0))._add(f.panDelta)),f.zoomDelta&&(b.zoomDelta=(b.zoomDelta||0)+f.zoomDelta),f.bearingDelta&&(b.bearingDelta=(b.bearingDelta||0)+f.bearingDelta),f.pitchDelta&&(b.pitchDelta=(b.pitchDelta||0)+f.pitchDelta),void 0!==f.around&&(b.around=f.around),void 0!==f.aroundCoord&&(b.aroundCoord=f.aroundCoord),void 0!==f.pinchAround&&(b.pinchAround=f.pinchAround),f.noInertia&&(b.noInertia=f.noInertia),a.extend(c,g),a.extend(d,h);this._updateMapTransform(b,c,d),this._changes=[]}_updateMapTransform(b,c,d){const f=this._map,g=f.transform,h=a=>[a.x,a.y,a.z];if((a=>{const b=this._eventsInProgress.drag;return b&&!this._handlersById[b.handlerName].isActive()})()&&!c5(b)){const i=g.zoom;g.cameraElevationReference="sea",g.recenterOnTerrain(),g.cameraElevationReference="ground",i!==g.zoom&&this._map._update(!0)}if(!c5(b))return this._fireEvents(c,d,!0);let{panDelta:j,zoomDelta:k,bearingDelta:l,pitchDelta:m,around:n,aroundCoord:o,pinchAround:p}=b;void 0!==p&&(n=p),c.drag&&!this._eventsInProgress.drag&&n&&(this._dragOrigin=h(g.pointCoordinate3D(n)),this._trackingEllipsoid.setup(g._camera.position,this._dragOrigin)),g.cameraElevationReference="sea",f._stop(!0),n=n||f.transform.centerPoint,l&&(g.bearing+=l),m&&(g.pitch+=m),g._updateCameraState();const q=[0,0,0];if(j){const r=g.pointCoordinate(n),s=g.pointCoordinate(n.sub(j));r&&s&&(q[0]=s.x-r.x,q[1]=s.y-r.y)}const u=g.zoom,v=[0,0,0];if(k){const w=h(o||g.pointCoordinate3D(n)),x={dir:a.normalize([],a.sub([],w,g._camera.position))};if(x.dir[2]<0){const y=g.zoomDeltaToMovement(w,k);a.scale$2(v,x.dir,y)}}const z=a.add(q,q,v);g._translateCameraConstrained(z),k&&Math.abs(g.zoom-u)>1e-4&&g.recenterOnTerrain(),g.cameraElevationReference="ground",this._map._update(),b.noInertia||this._inertia.record(b),this._fireEvents(c,d,!0)}_fireEvents(b,c,d){const f=c3(this._eventsInProgress),g=c3(b),h={};for(const i in b){const{originalEvent:j}=b[i];this._eventsInProgress[i]||(h[`${i}start`]=j),this._eventsInProgress[i]=b[i]}for(const k in!f&&g&&this._fireEvent("movestart",g.originalEvent),h)this._fireEvent(k,h[k]);for(const l in g&&this._fireEvent("move",g.originalEvent),b){const{originalEvent:m}=b[l];this._fireEvent(l,m)}const n={};let o;for(const p in this._eventsInProgress){const{handlerName:q,originalEvent:r}=this._eventsInProgress[p];this._handlersById[q].isActive()||(delete this._eventsInProgress[p],o=c[q]||r,n[`${p}end`]=o)}for(const s in n)this._fireEvent(s,n[s]);const u=c3(this._eventsInProgress);if(d&&(f||g)&&!u){this._updatingCamera=!0;const v=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),w=a=>0!==a&& -this._bearingSnap{delete this._frameId,this.handleEvent(new c4("renderFrame",{timeStamp:a})),this._applyChanges()})}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}(this,b),this._localFontFamily=b.localFontFamily,this._localIdeographFontFamily=b.localIdeographFontFamily,b.style&&this.setStyle(b.style,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),b.projection&&this.setProjection(b.projection),this._hash=b.hash&&new class{constructor(b){this._hashName=b&&encodeURIComponent(b),a.bindAll(["_getCurrentHash","_onHashChange","_updateHash",],this),this._updateHash=cq(this._updateHashUnthrottled.bind(this),300)}addTo(b){return this._map=b,a.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return a.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this}getHashString(b){const c=this._map.getCenter(),d=Math.round(100*this._map.getZoom())/100,f=Math.pow(10,Math.ceil((d*Math.LN2+Math.log(512/360/.5))/Math.LN10)),g=Math.round(c.lng*f)/f,h=Math.round(c.lat*f)/f,i=this._map.getBearing(),j=this._map.getPitch();let k="";if(k+=b?`/${g}/${h}/${d}`:`${d}/${h}/${g}`,(i||j)&&(k+="/"+Math.round(10*i)/10),j&&(k+=`/${Math.round(j)}`),this._hashName){const l=this._hashName;let m=!1;const n=a.window.location.hash.slice(1).split("&").map(a=>{const b=a.split("=")[0];return b===l?(m=!0,`${b}=${k}`):a}).filter(a=>a);return m||n.push(`${l}=${k}`),`#${n.join("&")}`}return`#${k}`}_getCurrentHash(){const b=a.window.location.hash.replace("#","");if(this._hashName){let c;return b.split("&").map(a=>a.split("=")).forEach(a=>{a[0]===this._hashName&&(c=a)}),(c&&c[1]||"").split("/")}return b.split("/")}_onHashChange(){const a=this._getCurrentHash();if(a.length>=3&&!a.some(a=>isNaN(a))){const b=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(a[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+a[2],+a[1]],zoom:+a[0],bearing:b,pitch:+(a[4]||0)}),!0}return!1}_updateHashUnthrottled(){const b=a.window.location.href.replace(/(#.+)?$/,this.getHashString());a.window.history.replaceState(a.window.history.state,null,b)}}("string"==typeof b.hash&&b.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:b.center,zoom:b.zoom,bearing:b.bearing,pitch:b.pitch}),b.bounds&&(this.resize(),this.fitBounds(b.bounds,a.extend({},b.fitBoundsOptions,{duration:0})))),this.resize(),b.attributionControl&&this.addControl(new c8({customAttribution:b.customAttribution})),this._logoControl=new c9,this.addControl(this._logoControl,b.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",b=>{this._update("style"===b.dataType),this.fire(new a.Event(`${b.dataType}data`,b))}),this.on("dataloading",b=>{this.fire(new a.Event(`${b.dataType}dataloading`,b))})}_getMapId(){return this._mapId}addControl(b,c){if(void 0===c&&(c=b.getDefaultPosition?b.getDefaultPosition():"top-right"),!b||!b.onAdd)return this.fire(new a.ErrorEvent(Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const d=b.onAdd(this);this._controls.push(b);const f=this._controlPositions[c];return -1!==c.indexOf("bottom")?f.insertBefore(d,f.firstChild):f.appendChild(d),this}removeControl(b){if(!b||!b.onRemove)return this.fire(new a.ErrorEvent(Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const c=this._controls.indexOf(b);return c> -1&&this._controls.splice(c,1),b.onRemove(this),this}hasControl(a){return this._controls.indexOf(a)> -1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(b){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const c=!this._moving;return c&&this.fire(new a.Event("movestart",b)).fire(new a.Event("move",b)),this.fire(new a.Event("resize",b)),c&&this.fire(new a.Event("moveend",b)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(b){return this.transform.setMaxBounds(a.LngLatBounds.convert(b)),this._update()}setMinZoom(b){if((b=null==b?-2:b)>= -2&&b<=this.transform.maxZoom)return this.transform.minZoom=b,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=b,this._update(),this.getZoom()>b?this.setZoom(b):this.fire(new a.Event("zoomstart")).fire(new a.Event("zoom")).fire(new a.Event("zoomend")),this;throw Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(b){if((b=null==b?0:b)<0)throw Error("minPitch must be greater than or equal to 0");if(b>=0&&b<=this.transform.maxPitch)return this.transform.minPitch=b,this._update(),this.getPitch()85)throw Error("maxPitch must be less than or equal to 85");if(b>=this.transform.minPitch)return this.transform.maxPitch=b,this._update(),this.getPitch()>b?this.setPitch(b):this.fire(new a.Event("pitchstart")).fire(new a.Event("pitch")).fire(new a.Event("pitchend")),this;throw Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(a){return this.transform.renderWorldCopies=a,this._update()}getProjection(){return this.transform.getProjection()}setProjection(a){return this._lazyInitEmptyStyle(),"string"==typeof a&&(a={name:a}),this._runtimeProjection=a,this.style.updateProjection(),this._transitionFromGlobe=!1,this}project(b){return this.transform.locationPoint3D(a.LngLat.convert(b))}unproject(b){return this.transform.pointLocation3D(a.pointGeometry.convert(b))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()}_createDelegatedListener(a,b,c){if("mouseenter"===a||"mouseover"===a){let d=!1;const f=f=>{const g=b.filter(a=>this.getLayer(a)),h=g.length?this.queryRenderedFeatures(f.point,{layers:g}):[];h.length?d||(d=!0,c.call(this,new cy(a,this,f.originalEvent,{features:h}))):d=!1},g=()=>{d=!1};return{layers:new Set(b),listener:c,delegates:{mousemove:f,mouseout:g}}}if("mouseleave"===a||"mouseout"===a){let h=!1;const i=d=>{const f=b.filter(a=>this.getLayer(a));(f.length?this.queryRenderedFeatures(d.point,{layers:f}):[]).length?h=!0:h&&(h=!1,c.call(this,new cy(a,this,d.originalEvent)))},j=b=>{h&&(h=!1,c.call(this,new cy(a,this,b.originalEvent)))};return{layers:new Set(b),listener:c,delegates:{mousemove:i,mouseout:j}}}{const k=a=>{const d=b.filter(a=>this.getLayer(a)),f=d.length?this.queryRenderedFeatures(a.point,{layers:d}):[];f.length&&(a.features=f,c.call(this,a),delete a.features)};return{layers:new Set(b),listener:c,delegates:{[a]:k}}}}on(a,b,c){if(void 0===c)return super.on(a,b);Array.isArray(b)||(b=[b]);const d=this._createDelegatedListener(a,b,c);for(const f in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[a]=this._delegatedListeners[a]||[],this._delegatedListeners[a].push(d),d.delegates)this.on(f,d.delegates[f]);return this}once(a,b,c){if(void 0===c)return super.once(a,b);Array.isArray(b)||(b=[b]);const d=this._createDelegatedListener(a,b,c);for(const f in d.delegates)this.once(f,d.delegates[f]);return this}off(a,b,c){if(void 0===c)return super.off(a,b);b=new Set(Array.isArray(b)?b:[b]);const d=(a,b)=>{if(a.size!==b.size)return!1;for(const c of a)if(!b.has(c))return!1;return!0},f=this._delegatedListeners?this._delegatedListeners[a]:void 0;return f&&(a=>{for(let f=0;f{b?this.fire(new a.ErrorEvent(b)):d&&this._updateDiff(d,c)})}else"object"==typeof b&&this._updateDiff(b,c)}_updateDiff(b,c){try{this.style.setState(b)&&this._update(!0)}catch(d){a.warnOnce(`Unable to perform style diff: ${d.message||d.error||d}. Rebuilding the style from scratch.`),this._updateStyle(b,c)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():a.warnOnce("There is no style added to the map.")}addSource(a,b){return this._lazyInitEmptyStyle(),this.style.addSource(a,b),this._update(!0)}isSourceLoaded(b){const c=this.style&&this.style._getSourceCaches(b);if(0!==c.length)return c.every(a=>a.loaded());this.fire(new a.ErrorEvent(Error(`There is no source with ID '${b}'`)))}areTilesLoaded(){const a=this.style&&this.style._sourceCaches;for(const b in a){const c=a[b]._tiles;for(const d in c){const f=c[d];if("loaded"!==f.state&&"errored"!==f.state)return!1}}return!0}addSourceType(a,b,c){return this._lazyInitEmptyStyle(),this.style.addSourceType(a,b,c)}removeSource(a){return this.style.removeSource(a),this._updateTerrain(),this._update(!0)}getSource(a){return this.style.getSource(a)}addImage(b,c,{pixelRatio:d=1,sdf:f=!1,stretchX:g,stretchY:h,content:i}={}){if(this._lazyInitEmptyStyle(),c instanceof de||dg&&c instanceof dg){const{width:j,height:k,data:l}=a.exported.getImageData(c);this.style.addImage(b,{data:new a.RGBAImage({width:j,height:k},l),pixelRatio:d,stretchX:g,stretchY:h,content:i,sdf:f,version:0})}else{if(void 0===c.width|| void 0===c.height)return this.fire(new a.ErrorEvent(Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{const{width:m,height:n,data:o}=c,p=c;this.style.addImage(b,{data:new a.RGBAImage({width:m,height:n},new Uint8Array(o)),pixelRatio:d,stretchX:g,stretchY:h,content:i,sdf:f,version:0,userImage:p}),p.onAdd&&p.onAdd(this,b)}}}updateImage(b,c){const d=this.style.getImage(b);if(!d)return this.fire(new a.ErrorEvent(Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const f=c instanceof de||dg&&c instanceof dg?a.exported.getImageData(c):c,{width:g,height:h,data:i}=f;return void 0===g|| void 0===h?this.fire(new a.ErrorEvent(Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))):g!==d.data.width||h!==d.data.height?this.fire(new a.ErrorEvent(Error("The width and height of the updated image must be that same as the previous version of the image"))):(d.data.replace(i,!(c instanceof de||dg&&c instanceof dg)),void this.style.updateImage(b,d))}hasImage(b){return b?!!this.style.getImage(b):(this.fire(new a.ErrorEvent(Error("Missing required image id"))),!1)}removeImage(a){this.style.removeImage(a)}loadImage(b,c){a.getImage(this._requestManager.transformRequest(b,a.ResourceType.Image),(b,d)=>{c(b,d instanceof de?a.exported.getImageData(d):d)})}listImages(){return this.style.listImages()}addLayer(a,b){return this._lazyInitEmptyStyle(),this.style.addLayer(a,b),this._update(!0)}moveLayer(a,b){return this.style.moveLayer(a,b),this._update(!0)}removeLayer(a){return this.style.removeLayer(a),this._update(!0)}getLayer(a){return this.style.getLayer(a)}setLayerZoomRange(a,b,c){return this.style.setLayerZoomRange(a,b,c),this._update(!0)}setFilter(a,b,c={}){return this.style.setFilter(a,b,c),this._update(!0)}getFilter(a){return this.style.getFilter(a)}setPaintProperty(a,b,c,d={}){return this.style.setPaintProperty(a,b,c,d),this._update(!0)}getPaintProperty(a,b){return this.style.getPaintProperty(a,b)}setLayoutProperty(a,b,c,d={}){return this.style.setLayoutProperty(a,b,c,d),this._update(!0)}getLayoutProperty(a,b){return this.style.getLayoutProperty(a,b)}setLight(a,b={}){return this._lazyInitEmptyStyle(),this.style.setLight(a,b),this._update(!0)}getLight(){return this.style.getLight()}setTerrain(a){return this._lazyInitEmptyStyle(),!a&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(a),this._averageElevationLastSampledAt=-1/0,this._update(!0)}_updateProjection(){"globe"===this.transform.projection.name&&this.transform.zoom>=a.GLOBE_ZOOM_THRESHOLD_MAX&&!this._transitionFromGlobe&&(this.setProjection({name:"mercator"}),this._transitionFromGlobe=!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(a){return this._lazyInitEmptyStyle(),this.style.setFog(a),this._update(!0)}getFog(){return this.style?this.style.getFog():null}_queryFogOpacity(b){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(a.LngLat.convert(b),this.transform):0}setFeatureState(a,b){return this.style.setFeatureState(a,b),this._update()}removeFeatureState(a,b){return this.style.removeFeatureState(a,b),this._update()}getFeatureState(a){return this.style.getFeatureState(a)}_updateContainerDimensions(){if(!this._container)return;const b=this._container.getBoundingClientRect().width||400,c=this._container.getBoundingClientRect().height||300;let d,f=this._container;for(;f&&!d;){const g=a.window.getComputedStyle(f).transform;g&&"none"!==g&&(d=g.match(/matrix.*\((.+)\)/)[1].split(", ")),f=f.parentElement}d?(this._containerWidth=d[0]&&"0"!==d[0]?Math.abs(b/d[0]):b,this._containerHeight=d[3]&&"0"!==d[3]?Math.abs(c/d[3]):c):(this._containerWidth=b,this._containerHeight=c)}_detectMissingCSS(){"rgb(250, 128, 114)"!==a.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&a.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const a=this._container;a.classList.add("mapboxgl-map"),(this._missingCSSCanary=h.create("div","mapboxgl-canary",a)).style.visibility="hidden",this._detectMissingCSS();const b=this._canvasContainer=h.create("div","mapboxgl-canvas-container",a);this._interactive&&b.classList.add("mapboxgl-interactive"),this._canvas=h.create("canvas","mapboxgl-canvas",b),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const c=this._controlContainer=h.create("div","mapboxgl-control-container",a),d=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right",].forEach(a=>{d[a]=h.create("div",`mapboxgl-ctrl-${a}`,c)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(b,c){const d=a.exported.devicePixelRatio||1;this._canvas.width=d*Math.ceil(b),this._canvas.height=d*Math.ceil(c),this._canvas.style.width=`${b}px`,this._canvas.style.height=`${c}px`}_addMarker(a){this._markers.push(a)}_removeMarker(a){const b=this._markers.indexOf(a);-1!==b&&this._markers.splice(b,1)}_setupPainter(){const c=a.extend({},b.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),d=this._canvas.getContext("webgl",c)||this._canvas.getContext("experimental-webgl",c);d?(a.storeAuthState(d,!0),this.painter=new cb(d,this.transform),this.on("data",a=>{"source"===a.dataType&&this.painter.setTileLoadedFlag(!0)}),a.exported$1.testSupport(d)):this.fire(new a.ErrorEvent(Error("Failed to initialize WebGL")))}_contextLost(b){b.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new a.Event("webglcontextlost",{originalEvent:b}))}_contextRestored(b){this._setupPainter(),this.resize(),this._update(),this.fire(new a.Event("webglcontextrestored",{originalEvent:b}))}_onMapScroll(a){if(a.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(a){return this.style&&(this._styleDirty=this._styleDirty||a,this._sourcesDirty=!0,this.triggerRepaint()),this}_requestRenderFrame(a){return this._update(),this._renderTaskQueue.add(a)}_cancelRenderFrame(a){this._renderTaskQueue.remove(a)}_requestDomTask(a){!this.loaded()||this.loaded()&&!this.isMoving()?a():this._domRenderTaskQueue.add(a)}_render(b){let c;const d=this.painter.context.extTimerQuery,f=a.exported.now();this.listens("gpu-timing-frame")&&(c=d.createQueryEXT(),d.beginQueryEXT(d.TIME_ELAPSED_EXT,c));let g=this._updateAverageElevation(f);if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(b),this._domRenderTaskQueue.run(b),this._removed)return;this._updateProjection();let h=!1;const i=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const j=this.transform.zoom,k=this.transform.pitch,l=a.exported.now();this.style.zoomHistory.update(j,l);const m=new a.EvaluationParameters(j,{now:l,fadeDuration:i,pitch:k,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),n=m.crossFadingFactor();1===n&&n===this._crossFadingFactor||(h=!0,this._crossFadingFactor=n),this.style.update(m)}if(this.style&&this.style.fog&&this.style.fog.hasTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0),this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),this.style._updateSources(this.transform),this._forceMarkerUpdate()),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,i,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showTerrainWireframe:this.showTerrainWireframe,showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:i,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),speedIndexTiming:this.speedIndexTiming}),this.fire(new a.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new a.Event("load"))),this.style&&(this.style.hasTransitions()||h)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){const o=a.exported.now()-f;d.endQueryEXT(d.TIME_ELAPSED_EXT,c),setTimeout(()=>{const b=d.getQueryObjectEXT(c,d.QUERY_RESULT_EXT)/1e6;d.deleteQueryEXT(c),this.fire(new a.Event("gpu-timing-frame",{cpuTime:o,gpuTime:b}))},50)}if(this.listens("gpu-timing-layer")){const p=this.painter.collectGpuTimers();setTimeout(()=>{const b=this.painter.queryGpuTimers(p);this.fire(new a.Event("gpu-timing-layer",{layerTimes:b}))},50)}const q=this._sourcesDirty||this._styleDirty||this._placementDirty||g;if(q||this._repaint)this.triggerRepaint();else{const r=!this.isMoving()&&this.loaded();if(r&&(g=this._updateAverageElevation(f,!0)),g)this.triggerRepaint();else if(this._triggerFrame(!1),r&&(this.fire(new a.Event("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const s=this._calculateSpeedIndex();this.fire(new a.Event("speedindexcompleted",{speedIndex:s})),this.speedIndexTiming=!1}}return!this._loaded||this._fullyLoaded||q||(this._fullyLoaded=!0,this._authenticate()),this}_forceMarkerUpdate(){for(const a of this._markers)a._update()}_updateAverageElevation(a,b=!1){const c=a=>(this.transform.averageElevation=a,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return 0!==this.transform.averageElevation&&c(0);if((b||a-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(a)){const d=this.transform.averageElevation;let f=this.transform.sampleAverageElevation();isNaN(f)?f=0:this._averageElevationLastSampledAt=a;const g=Math.abs(d-f);if(g>1){if(this._isInitialLoad)return this._averageElevation.jumpTo(f),c(f);this._averageElevation.easeTo(f,a,300)}else if(g>1e-4)return this._averageElevation.jumpTo(f),c(f)}return!!this._averageElevation.isEasing(a)&&c(this._averageElevation.getValue(a))}_authenticate(){a.getMapSessionAPI(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,b=>{if(b&&(b.message===a.AUTH_ERR_MSG||401===b.status)){const c=this.painter.context.gl;a.storeAuthState(c,!1),this._logoControl instanceof c9&&this._logoControl._updateLogo(),c&&c.clear(c.DEPTH_BUFFER_BIT|c.COLOR_BUFFER_BIT|c.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new a.ErrorEvent(Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),a.postMapLoadEvent(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_updateTerrain(){this.painter.updateTerrain(this.style,this.isMoving()||this.isRotating()||this.isZooming())}_calculateSpeedIndex(){const a=this.painter.canvasCopy(),b=this.painter.getCanvasCopiesAndTimestamps();b.timeStamps.push(performance.now());const c=this.painter.context.gl,d=c.createFramebuffer();function f(a){c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,a,0);const b=new Uint8Array(c.drawingBufferWidth*c.drawingBufferHeight*4);return c.readPixels(0,0,c.drawingBufferWidth,c.drawingBufferHeight,c.RGBA,c.UNSIGNED_BYTE,b),b}return c.bindFramebuffer(c.FRAMEBUFFER,d),this._canvasPixelComparison(f(a),b.canvasCopies.map(f),b.timeStamps)}_canvasPixelComparison(a,b,c){let d=c[1]-c[0];const f=a.length/4;for(let g=0;g{const b=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,b&&this._render(a)}))}_preloadTiles(b){const c=this.style&&Object.values(this.style._sourceCaches)||[];return a.asyncAll(c,(a,c)=>a._preloadTiles(b,c),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(a){this._trackResize&&this.resize({originalEvent:a})._update()}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(a){this._showTileBoundaries!==a&&(this._showTileBoundaries=a,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(a){this._showTerrainWireframe!==a&&(this._showTerrainWireframe=a,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(a){this._speedIndexTiming!==a&&(this._speedIndexTiming=a,this._update())}get showPadding(){return!!this._showPadding}set showPadding(a){this._showPadding!==a&&(this._showPadding=a,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(a){this._showCollisionBoxes!==a&&(this._showCollisionBoxes=a,a?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(a){this._showOverdrawInspector!==a&&(this._showOverdrawInspector=a,this._update())}get repaint(){return!!this._repaint}set repaint(a){this._repaint!==a&&(this._repaint=a,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(a){this._vertices=a,this._update()}_setCacheLimits(b,c){a.setCacheLimits(b,c)}get version(){return a.version}},NavigationControl:class{constructor(b){this.options=a.extend({},{showCompass:!0,showZoom:!0,visualizePitch:!1},b),this._container=h.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",a=>a.preventDefault()),this.options.showZoom&&(a.bindAll(["_setButtonTitle","_updateZoomButtons",],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",a=>this._map.zoomIn({},{originalEvent:a})),h.create("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden",!0),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",a=>this._map.zoomOut({},{originalEvent:a})),h.create("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden",!0)),this.options.showCompass&&(a.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",a=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:a}):this._map.resetNorth({},{originalEvent:a})}),this._compassIcon=h.create("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden",!0))}_updateZoomButtons(){const a=this._map.getZoom(),b=a===this._map.getMaxZoom(),c=a===this._map.getMinZoom();this._zoomInButton.disabled=b,this._zoomOutButton.disabled=c,this._zoomInButton.setAttribute("aria-disabled",b.toString()),this._zoomOutButton.setAttribute("aria-disabled",c.toString())}_rotateCompassArrow(){const a=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._map._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=a)})}onAdd(a){return this._map=a,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new di(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){this._container.remove(),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(a,b){const c=h.create("button",a,this._container);return c.type="button",c.addEventListener("click",b),c}_setButtonTitle(a,b){const c=this._map._getUIString(`NavigationControl.${b}`);a.setAttribute("aria-label",c),a.firstElementChild&&a.firstElementChild.setAttribute("title",c)}},GeolocateControl:class extends a.Evented{constructor(b){super(),this.options=a.extend({},{positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1},b),a.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation",],this),this._onDeviceOrientationListener=this._onDeviceOrientation.bind(this),this._updateMarkerRotationThrottled=cq(this._updateMarkerRotation,20)}onAdd(b){var c;return this._map=b,this._container=h.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),c=this._setupUI,void 0!==dj?c(dj):void 0!==a.window.navigator.permissions?a.window.navigator.permissions.query({name:"geolocation"}).then(a=>{c(dj="denied"!==a.state)}):c(dj=!!a.window.navigator.geolocation),this._container}onRemove(){void 0!==this._geolocationWatchID&&(a.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,dk=0,dl=!1}_isOutOfMapMaxBounds(a){const b=this._map.getMaxBounds(),c=a.coords;return b&&(c.longitudeb.getEast()||c.latitudeb.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(b){if(this._map){if(this._isOutOfMapMaxBounds(b))return this._setErrorState(),this.fire(new a.Event("outofmaxbounds",b)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=b,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(b),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(b),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("geolocate",b)),this._finish()}}_updateCamera(b){const c=new a.LngLat(b.coords.longitude,b.coords.latitude),d=b.coords.accuracy,f=this._map.getBearing(),g=a.extend({bearing:f},this.options.fitBoundsOptions);this._map.fitBounds(c.toBounds(d),g,{geolocateSource:!0})}_updateMarker(b){if(b){const c=new a.LngLat(b.coords.longitude,b.coords.latitude);this._accuracyCircleMarker.setLngLat(c).addTo(this._map),this._userLocationDotMarker.setLngLat(c).addTo(this._map),this._accuracy=b.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const a=this._map._containerHeight/2,b=this._map.unproject([0,a]),c=this._map.unproject([100,a]),d=b.distanceTo(c)/100,f=Math.ceil(2*this._accuracy/d);this._circleElement.style.width=`${f}px`,this._circleElement.style.height=`${f}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&"number"==typeof this._heading?(this._userLocationDotMarker.setRotation(this._heading),this._dotElement.classList.add("mapboxgl-user-location-show-heading")):(this._dotElement.classList.remove("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(b){if(this._map){if(this.options.trackUserLocation){if(1===b.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const c=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",c),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",c),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===b.code&&dl)return;this._setErrorState()}}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("error",b)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(b){if(this._container.addEventListener("contextmenu",a=>a.preventDefault()),this._geolocateButton=h.create("button","mapboxgl-ctrl-geolocate",this._container),h.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===b){a.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const c=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",c),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",c)}else{const d=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",d),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",d)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=h.create("div","mapboxgl-user-location"),this._dotElement.appendChild(h.create("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(h.create("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new dd({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=h.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new dd({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",b=>{b.geolocateSource||"ACTIVE_LOCK"!==this._watchState||b.originalEvent&&"resize"===b.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new a.Event("trackuserlocationend")))})}_onDeviceOrientation(a){this._userLocationDotMarker&&(a.webkitCompassHeading?this._heading=a.webkitCompassHeading:!0===a.absolute&&(this._heading=-1*a.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return a.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":dk--,dl=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new a.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&& void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let b;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++dk>1?(b={maximumAge:6e5,timeout:0},dl=!0):(b=this.options.positionOptions,dl=!1),this._geolocationWatchID=a.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,b),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else a.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const b=()=>{a.window.addEventListener("ondeviceorientationabsolute"in a.window?"deviceorientationabsolute":"deviceorientation",this._onDeviceOrientationListener)};void 0!==a.window.DeviceMotionEvent&&"function"==typeof a.window.DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then(a=>{"granted"===a&&b()}).catch(console.error):b()}_clearWatch(){a.window.navigator.geolocation.clearWatch(this._geolocationWatchID),a.window.removeEventListener("deviceorientation",this._onDeviceOrientationListener),a.window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientationListener),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:c8,ScaleControl:class{constructor(b){this.options=a.extend({},{maxWidth:100,unit:"metric"},b),a.bindAll(["_onMove","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_onMove(){dm(this._map,this._container,this.options)}onAdd(a){return this._map=a,this._container=h.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",a.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._onMove),this._map=void 0}setUnit(a){this.options.unit=a,dm(this._map,this._container,this.options)}},FullscreenControl:class{constructor(b){this._fullscreen=!1,b&&b.container&&(b.container instanceof a.window.HTMLElement?this._container=b.container:a.warnOnce("Full screen control 'container' must be a DOM element.")),a.bindAll(["_onClickFullscreen","_changeIcon",],this),"onfullscreenchange"in a.window.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in a.window.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(b){return this._map=b,this._container||(this._container=this._map.getContainer()),this._controlContainer=h.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",a.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,a.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!a.window.document.fullscreenEnabled&&!a.window.document.webkitFullscreenEnabled)}_setupUI(){const b=this._fullscreenButton=h.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);h.create("span","mapboxgl-ctrl-icon",b).setAttribute("aria-hidden",!0),b.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),a.window.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const a=this._getTitle();this._fullscreenButton.setAttribute("aria-label",a),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",a)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(a.window.document.fullscreenElement||a.window.document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?a.window.document.exitFullscreen?a.window.document.exitFullscreen():a.window.document.webkitCancelFullScreen&&a.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends a.Evented{constructor(b){super(),this.options=a.extend(Object.create({closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"}),b),a.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag",],this),this._classList=new Set(b&&b.className?b.className.trim().split(/\s+/):[])}addTo(b){return this._map&&this.remove(),this._map=b,this.options.closeOnClick&&this._map.on("preclick",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new a.Event("open")),this}isOpen(){return!!this._map}remove(){return this._content&&this._content.remove(),this._container&&(this._container.remove(),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new a.Event("close")),this}getLngLat(){return this._lngLat}setLngLat(b){return this._lngLat=a.LngLat.convert(b),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(b){return this.setDOMContent(a.window.document.createTextNode(b))}setHTML(b){const c=a.window.document.createDocumentFragment(),d=a.window.document.createElement("body");let f;for(d.innerHTML=b;f=d.firstChild;)c.appendChild(f);return this.setDOMContent(c)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(a){return this.options.maxWidth=a,this._update(),this}setDOMContent(a){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=h.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(a),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(a){return this._classList.add(a),this._container&&this._updateClassList(),this}removeClassName(a){return this._classList.delete(a),this._container&&this._updateClassList(),this}setOffset(a){return this.options.offset=a,this._update(),this}toggleClassName(a){let b;return this._classList.delete(a)?b=!1:(this._classList.add(a),b=!0),this._container&&this._updateClassList(),b}_createCloseButton(){this.options.closeButton&&(this._closeButton=h.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.setAttribute("aria-hidden","true"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_onMouseUp(a){this._update(a.point)}_onMouseMove(a){this._update(a.point)}_onDrag(a){this._update(a.point)}_getAnchor(a){if(this.options.anchor)return this.options.anchor;const b=this._pos,c=this._container.offsetWidth,d=this._container.offsetHeight;let f;return f=b.y+a.bottom.ythis._map.transform.height-d?["bottom"]:[],b.xthis._map.transform.width-c/2&&f.push("right"),0===f.length?"bottom":f.join("-")}_updateClassList(){const a=[...this._classList];a.push("mapboxgl-popup"),this._anchor&&a.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&a.push("mapboxgl-popup-track-pointer"),this._container.className=a.join(" ")}_update(b){if(this._map&&(this._lngLat||this._trackPointer)&&this._content){if(this._container||(this._container=h.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=h.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content)),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=db(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||b){const c=this._pos=this._trackPointer&&b?b:this._map.project(this._lngLat),d=function(b){if(b||(b=new a.pointGeometry(0,0)),"number"==typeof b){const c=Math.round(Math.sqrt(.5*Math.pow(b,2)));return{center:new a.pointGeometry(0,0),top:new a.pointGeometry(0,b),"top-left":new a.pointGeometry(c,c),"top-right":new a.pointGeometry(-c,c),bottom:new a.pointGeometry(0,-b),"bottom-left":new a.pointGeometry(c,-c),"bottom-right":new a.pointGeometry(-c,-c),left:new a.pointGeometry(b,0),right:new a.pointGeometry(-b,0)}}if(b instanceof a.pointGeometry||Array.isArray(b)){const d=a.pointGeometry.convert(b);return{center:d,top:d,"top-left":d,"top-right":d,bottom:d,"bottom-left":d,"bottom-right":d,left:d,right:d}}return{center:a.pointGeometry.convert(b.center||[0,0,]),top:a.pointGeometry.convert(b.top||[0,0]),"top-left":a.pointGeometry.convert(b["top-left"]||[0,0]),"top-right":a.pointGeometry.convert(b["top-right"]||[0,0]),bottom:a.pointGeometry.convert(b.bottom||[0,0,]),"bottom-left":a.pointGeometry.convert(b["bottom-left"]||[0,0]),"bottom-right":a.pointGeometry.convert(b["bottom-right"]||[0,0]),left:a.pointGeometry.convert(b.left||[0,0]),right:a.pointGeometry.convert(b.right||[0,0,])}}(this.options.offset),f=this._anchor=this._getAnchor(d),g=c.add(d[f]).round();this._map._requestDomTask(()=>{this._container&&f&&(this._container.style.transform=`${dc[f]} translate(${g.x}px,${g.y}px)`)})}this._updateClassList()}}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const a=this._container.querySelector("a[href], [tabindex]:not([tabindex='-1']), [contenteditable]:not([contenteditable='false']), button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled])");a&&a.focus()}_onClose(){this.remove()}_setOpacity(a){this._content&&(this._content.style.opacity=a),this._tip&&(this._tip.style.opacity=a)}},Marker:dd,Style:aY,LngLat:a.LngLat,LngLatBounds:a.LngLatBounds,Point:a.pointGeometry,MercatorCoordinate:a.MercatorCoordinate,FreeCameraOptions:ch,Evented:a.Evented,config:a.config,prewarm:function(){ab().acquire($)},clearPrewarmedResources:function(){const a=aa;a&&(a.isPreloaded()&&1===a.numActive()?(a.release($),aa=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return a.config.ACCESS_TOKEN},set accessToken(t){a.config.ACCESS_TOKEN=t},get baseApiUrl(){return a.config.API_URL},set baseApiUrl(t){a.config.API_URL=t},get workerCount(){return _.workerCount},set workerCount(e){_.workerCount=e},get maxParallelImageRequests(){return a.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){a.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage(b){a.clearTileCache(b)},workerUrl:"",workerClass:null,setNow:a.exported.setNow,restoreNow:a.exported.restoreNow};return dp}),c})}},]) diff --git a/crates/swc_ecma_minifier/tests/full/feedback-mapbox/785-e1932cc99ac3bb67/output.js b/crates/swc_ecma_minifier/tests/full/feedback-mapbox/785-e1932cc99ac3bb67/output.js index 432175b99ee..7ab915c17a7 100644 --- a/crates/swc_ecma_minifier/tests/full/feedback-mapbox/785-e1932cc99ac3bb67/output.js +++ b/crates/swc_ecma_minifier/tests/full/feedback-mapbox/785-e1932cc99ac3bb67/output.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[785],{840:function(a,b,c){var d;!function(e,f,g,h){"use strict";var i,j=["","webkit","Moz","MS","ms","o"],k=f.createElement("div"),l=Math.round,m=Math.abs,n=Date.now;function o(a,b,c){return setTimeout(v(a,c),b)}function p(a,b,c){return!!Array.isArray(a)&&(q(a,c[b],c),!0)}function q(a,b,c){var d;if(a){if(a.forEach)a.forEach(b,c);else if(h!==a.length)for(d=0;d\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",f=e.console&&(e.console.warn||e.console.log);return f&&f.call(e.console,d,c),a.apply(this,arguments)}}i="function"!=typeof Object.assign?function(a){if(a===h||null===a)throw TypeError("Cannot convert undefined or null to object");for(var b=Object(a),c=1;c -1}function C(a){return a.trim().split(/\s+/g)}function D(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;dD(e,g)&&d.push(a[f]),e[f]=g,f++}return c&&(d=b?d.sort(function(a,c){return a[b]>c[b]}):d.sort()),d}function G(a,b){for(var c,d,e=b[0].toUpperCase()+b.slice(1),f=0;f1&&!c.firstMultiple?c.firstMultiple=V(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=W(d);b.timeStamp=n(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=$(h,i),b.distance=Z(h,i),T(c,b),b.offsetDirection=Y(b.deltaX,b.deltaY);var j=X(b.deltaTime,b.deltaX,b.deltaY);b.overallVelocityX=j.x,b.overallVelocityY=j.y,b.overallVelocity=m(j.x)>m(j.y)?j.x:j.y,b.scale=g?aa(g.pointers,d):1,b.rotation=g?_(g.pointers,d):0,b.maxPointers=c.prevInput?b.pointers.length>c.prevInput.maxPointers?b.pointers.length:c.prevInput.maxPointers:b.pointers.length,U(c,b);var k=a.element;A(b.srcEvent.target,k)&&(k=b.srcEvent.target),b.target=k}function T(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};(1===b.eventType||4===f.eventType)&&(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function U(a,b){var c,d,e,f,g=a.lastInterval||b,i=b.timeStamp-g.timeStamp;if(8!=b.eventType&&(i>25||h===g.velocity)){var j=b.deltaX-g.deltaX,k=b.deltaY-g.deltaY,l=X(i,j,k);d=l.x,e=l.y,c=m(l.x)>m(l.y)?l.x:l.y,f=Y(j,k),a.lastInterval=b}else c=g.velocity,d=g.velocityX,e=g.velocityY,f=g.direction;b.velocity=c,b.velocityX=d,b.velocityY=e,b.direction=f}function V(a){for(var b=[],c=0;c=m(b)?a<0?2:4:b<0?8:16}function Z(a,b,c){c||(c=O);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function $(a,b,c){c||(c=O);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function _(a,b){return $(b[1],b[0],P)+$(a[1],a[0],P)}function aa(a,b){return Z(b[0],b[1],P)/Z(a[0],a[1],P)}Q.prototype={handler:function(){},init:function(){this.evEl&&y(this.element,this.evEl,this.domHandler),this.evTarget&&y(this.target,this.evTarget,this.domHandler),this.evWin&&y(I(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&z(this.element,this.evEl,this.domHandler),this.evTarget&&z(this.target,this.evTarget,this.domHandler),this.evWin&&z(I(this.element),this.evWin,this.domHandler)}};var ab={mousedown:1,mousemove:2,mouseup:4};function ac(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,Q.apply(this,arguments)}u(ac,Q,{handler:function(a){var b=ab[a.type];1&b&&0===a.button&&(this.pressed=!0),2&b&&1!==a.which&&(b=4),this.pressed&&(4&b&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[a],changedPointers:[a],pointerType:N,srcEvent:a}))}});var ad={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ae={2:M,3:"pen",4:N,5:"kinect"},af="pointerdown",ag="pointermove pointerup pointercancel";function ah(){this.evEl=af,this.evWin=ag,Q.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}e.MSPointerEvent&&!e.PointerEvent&&(af="MSPointerDown",ag="MSPointerMove MSPointerUp MSPointerCancel"),u(ah,Q,{handler:function(a){var b=this.store,c=!1,d=ad[a.type.toLowerCase().replace("ms","")],e=ae[a.pointerType]||a.pointerType,f=D(b,a.pointerId,"pointerId");1&d&&(0===a.button||e==M)?f<0&&(b.push(a),f=b.length-1):12&d&&(c=!0),!(f<0)&&(b[f]=a,this.callback(this.manager,d,{pointers:b,changedPointers:[a],pointerType:e,srcEvent:a}),c&&b.splice(f,1))}});var ai={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function aj(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,Q.apply(this,arguments)}function ak(a,b){var c=E(a.touches),d=E(a.changedTouches);return 12&b&&(c=F(c.concat(d),"identifier",!0)),[c,d]}u(aj,Q,{handler:function(a){var b=ai[a.type];if(1===b&&(this.started=!0),this.started){var c=ak.call(this,a,b);12&b&&c[0].length-c[1].length==0&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:M,srcEvent:a})}}});var al={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function am(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},Q.apply(this,arguments)}function an(a,b){var c=E(a.touches),d=this.targetIds;if(3&b&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=E(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return A(a.target,i)}),1===b)for(e=0;e -1&&d.splice(a,1)},2500)}}function ar(a){for(var b=a.srcEvent.clientX,c=a.srcEvent.clientY,d=0;d -1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){var b=this,c=this.state;function d(c){b.manager.emit(c,a)}c<8&&d(b.options.event+aD(c)),d(b.options.event),a.additionalEvent&&d(a.additionalEvent),c>=8&&d(b.options.event+aD(c))},tryEmit:function(a){if(this.canEmit())return this.emit(a);this.state=32},canEmit:function(){for(var a=0;ab.threshold&&e&b.direction},attrTest:function(a){return aG.prototype.attrTest.call(this,a)&&(2&this.state|| !(2&this.state)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=aE(a.direction);b&&(a.additionalEvent=this.options.event+b),this._super.emit.call(this,a)}}),u(aI,aG,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ax]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||2&this.state)},emit:function(a){if(1!==a.scale){var b=a.scale<1?"in":"out";a.additionalEvent=this.options.event+b}this._super.emit.call(this,a)}}),u(aJ,aC,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[av]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distanceb.time;if(this._input=a,d&&c&&(!(12&a.eventType)||e)){if(1&a.eventType)this.reset(),this._timer=o(function(){this.state=8,this.tryEmit()},b.time,this);else if(4&a.eventType)return 8}else this.reset();return 32},reset:function(){clearTimeout(this._timer)},emit:function(a){8===this.state&&(a&&4&a.eventType?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=n(),this.manager.emit(this.options.event,this._input)))}}),u(aK,aG,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ax]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||2&this.state)}}),u(aL,aG,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return aH.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return 30&c?b=a.overallVelocity:6&c?b=a.overallVelocityX:24&c&&(b=a.overallVelocityY),this._super.attrTest.call(this,a)&&c&a.offsetDirection&&a.distance>this.options.threshold&&a.maxPointers==this.options.pointers&&m(b)>this.options.velocity&&4&a.eventType},emit:function(a){var b=aE(a.offsetDirection);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),u(aM,aC,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[aw]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance1)for(var c=1;ca.length)&&(b=a.length);for(var c=0,d=Array(b);cc?c:a}Math.hypot||(Math.hypot=function(){for(var a=0,b=arguments.length;b--;)a+=arguments[b]*arguments[b];return Math.sqrt(a)}),ab=new l(4),l!=Float32Array&&(ab[0]=0,ab[1]=0,ab[2]=0,ab[3]=0);const r=Math.log2||function(a){return Math.log(a)*Math.LOG2E};function s(a,b,c){var d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],i=b[5],j=b[6],k=b[7],l=b[8],m=b[9],n=b[10],o=b[11],p=b[12],q=b[13],r=b[14],s=b[15],t=c[0],u=c[1],v=c[2],w=c[3];return a[0]=t*d+u*h+v*l+w*p,a[1]=t*e+u*i+v*m+w*q,a[2]=t*f+u*j+v*n+w*r,a[3]=t*g+u*k+v*o+w*s,t=c[4],u=c[5],v=c[6],w=c[7],a[4]=t*d+u*h+v*l+w*p,a[5]=t*e+u*i+v*m+w*q,a[6]=t*f+u*j+v*n+w*r,a[7]=t*g+u*k+v*o+w*s,t=c[8],u=c[9],v=c[10],w=c[11],a[8]=t*d+u*h+v*l+w*p,a[9]=t*e+u*i+v*m+w*q,a[10]=t*f+u*j+v*n+w*r,a[11]=t*g+u*k+v*o+w*s,t=c[12],u=c[13],v=c[14],w=c[15],a[12]=t*d+u*h+v*l+w*p,a[13]=t*e+u*i+v*m+w*q,a[14]=t*f+u*j+v*n+w*r,a[15]=t*g+u*k+v*o+w*s,a}function t(a,b,c){var d,e,f,g,h,i,j,k,l,m,n,o,p=c[0],q=c[1],r=c[2];return b===a?(a[12]=b[0]*p+b[4]*q+b[8]*r+b[12],a[13]=b[1]*p+b[5]*q+b[9]*r+b[13],a[14]=b[2]*p+b[6]*q+b[10]*r+b[14],a[15]=b[3]*p+b[7]*q+b[11]*r+b[15]):(d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],i=b[5],j=b[6],k=b[7],l=b[8],m=b[9],n=b[10],o=b[11],a[0]=d,a[1]=e,a[2]=f,a[3]=g,a[4]=h,a[5]=i,a[6]=j,a[7]=k,a[8]=l,a[9]=m,a[10]=n,a[11]=o,a[12]=d*p+h*q+l*r+b[12],a[13]=e*p+i*q+m*r+b[13],a[14]=f*p+j*q+n*r+b[14],a[15]=g*p+k*q+o*r+b[15]),a}function u(a,b,c){var d=c[0],e=c[1],f=c[2];return a[0]=b[0]*d,a[1]=b[1]*d,a[2]=b[2]*d,a[3]=b[3]*d,a[4]=b[4]*e,a[5]=b[5]*e,a[6]=b[6]*e,a[7]=b[7]*e,a[8]=b[8]*f,a[9]=b[9]*f,a[10]=b[10]*f,a[11]=b[11]*f,a[12]=b[12],a[13]=b[13],a[14]=b[14],a[15]=b[15],a}function v(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5],i=a[6],j=a[7],k=a[8],l=a[9],m=a[10],n=a[11],o=a[12],p=a[13],q=a[14],r=a[15],s=b[0],t=b[1],u=b[2],v=b[3],w=b[4],x=b[5],y=b[6],z=b[7],A=b[8],B=b[9],C=b[10],D=b[11],E=b[12],F=b[13],G=b[14],H=b[15];return Math.abs(c-s)<=1e-6*Math.max(1,Math.abs(c),Math.abs(s))&&Math.abs(d-t)<=1e-6*Math.max(1,Math.abs(d),Math.abs(t))&&Math.abs(e-u)<=1e-6*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(f-v)<=1e-6*Math.max(1,Math.abs(f),Math.abs(v))&&Math.abs(g-w)<=1e-6*Math.max(1,Math.abs(g),Math.abs(w))&&Math.abs(h-x)<=1e-6*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(i-y)<=1e-6*Math.max(1,Math.abs(i),Math.abs(y))&&Math.abs(j-z)<=1e-6*Math.max(1,Math.abs(j),Math.abs(z))&&Math.abs(k-A)<=1e-6*Math.max(1,Math.abs(k),Math.abs(A))&&Math.abs(l-B)<=1e-6*Math.max(1,Math.abs(l),Math.abs(B))&&Math.abs(m-C)<=1e-6*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(n-D)<=1e-6*Math.max(1,Math.abs(n),Math.abs(D))&&Math.abs(o-E)<=1e-6*Math.max(1,Math.abs(o),Math.abs(E))&&Math.abs(p-F)<=1e-6*Math.max(1,Math.abs(p),Math.abs(F))&&Math.abs(q-G)<=1e-6*Math.max(1,Math.abs(q),Math.abs(G))&&Math.abs(r-H)<=1e-6*Math.max(1,Math.abs(r),Math.abs(H))}function w(a,b,c){return a[0]=b[0]+c[0],a[1]=b[1]+c[1],a}function x(a,b,c,d){var e=b[0],f=b[1];return a[0]=e+d*(c[0]-e),a[1]=f+d*(c[1]-f),a}function y(a,b){if(!a)throw Error(b||"@math.gl/web-mercator: assertion failed.")}ac=new l(2),l!=Float32Array&&(ac[0]=0,ac[1]=0),ad=new l(3),l!=Float32Array&&(ad[0]=0,ad[1]=0,ad[2]=0);const z=Math.PI,A=z/4,B=z/180,C=180/z;function D(a){return Math.pow(2,a)}function E([a,b]){return y(Number.isFinite(a)),y(Number.isFinite(b)&&b>= -90&&b<=90,"invalid latitude"),[512*(a*B+z)/(2*z),512*(z+Math.log(Math.tan(A+.5*(b*B))))/(2*z)]}function F([a,b]){return[(a/512*(2*z)-z)*C,2*(Math.atan(Math.exp(b/512*(2*z)-z))-A)*C,]}function G(a){return 2*Math.atan(.5/a)*C}function H(a){return .5/Math.tan(.5*a*B)}function I(a,b,c=0){const[d,e,f]=a;if(y(Number.isFinite(d)&&Number.isFinite(e),"invalid pixel coordinate"),Number.isFinite(f)){const g=n(b,[d,e,f,1,]);return g}const h=n(b,[d,e,0,1,]),i=n(b,[d,e,1,1,]),j=h[2],k=i[2];return x([],h,i,j===k?0:((c||0)-j)/(k-j))}const J=Math.PI/180;function K(a,b,c){const{pixelUnprojectionMatrix:d}=a,e=n(d,[b,0,1,1,]),f=n(d,[b,a.height,1,1,]),g=c*a.distanceScales.unitsPerMeter[2],h=(g-e[2])/(f[2]-e[2]),i=x([],e,f,h),j=F(i);return j[2]=c,j}class L{constructor({width:a,height:b,latitude:c=0,longitude:d=0,zoom:e=0,pitch:f=0,bearing:g=0,altitude:h=null,fovy:i=null,position:j=null,nearZMultiplier:k=.02,farZMultiplier:l=1.01}={width:1,height:1}){a=a||1,b=b||1,null===i&&null===h?i=G(h=1.5):null===i?i=G(h):null===h&&(h=H(i));const n=D(e);h=Math.max(.75,h);const o=function({latitude:a,longitude:b,highPrecision:c=!1}){y(Number.isFinite(a)&&Number.isFinite(b));const d={},e=Math.cos(a*B),f=1.4222222222222223/e,g=12790407194604047e-21/e;if(d.unitsPerMeter=[g,g,g,],d.metersPerUnit=[1/g,1/g,1/g,],d.unitsPerDegree=[1.4222222222222223,f,g,],d.degreesPerUnit=[.703125,1/f,1/g,],c){const h=B*Math.tan(a*B)/e,i=1.4222222222222223*h/2,j=12790407194604047e-21*h,k=j/f*g;d.unitsPerDegree2=[0,i,j,],d.unitsPerMeter2=[k,0,k,]}return d}({longitude:d,latitude:c}),p=E([d,c]);if(p[2]=0,j){var q,r,s,v,w,x;v=p,w=p,x=(q=[],r=j,s=o.unitsPerMeter,q[0]=r[0]*s[0],q[1]=r[1]*s[1],q[2]=r[2]*s[2],q),v[0]=w[0]+x[0],v[1]=w[1]+x[1],v[2]=w[2]+x[2]}this.projectionMatrix=function({width:a,height:b,pitch:c,altitude:d,fovy:e,nearZMultiplier:f,farZMultiplier:g}){var h,i,j,k,l,m,n;const{fov:o,aspect:p,near:q,far:r}=function({width:a,height:b,fovy:c=G(1.5),altitude:d,pitch:e=0,nearZMultiplier:f=1,farZMultiplier:g=1}){void 0!==d&&(c=G(d));const h=.5*c*B,i=H(c),j=e*B;return{fov:2*h,aspect:a/b,focalDistance:i,near:f,far:(Math.sin(j)*(Math.sin(h)*i/Math.sin(Math.min(Math.max(Math.PI/2-j-h,.01),Math.PI-.01)))+i)*g}}({width:a,height:b,altitude:d,fovy:e,pitch:c,nearZMultiplier:f,farZMultiplier:g}),s=(h=[],i=o,j=p,k=q,l=r,n=1/Math.tan(i/2),h[0]=n/j,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=n,h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[11]=-1,h[12]=0,h[13]=0,h[15]=0,null!=l&&l!==1/0?(m=1/(k-l),h[10]=(l+k)*m,h[14]=2*l*k*m):(h[10]=-1,h[14]=-2*k),h);return s}({width:a,height:b,pitch:f,fovy:i,nearZMultiplier:k,farZMultiplier:l}),this.viewMatrix=function({height:a,pitch:b,bearing:c,altitude:d,scale:e,center:f=null}){var g,h,i,j,k,l,n,o,p,q,r,s,v,w,x,y,z,A,C,D,E,F,G,H,I,J,K,L;const M=m();return t(M,M,[0,0,-d]),g=M,h=M,i=-b*B,j=Math.sin(i),k=Math.cos(i),l=h[4],n=h[5],o=h[6],p=h[7],q=h[8],r=h[9],s=h[10],v=h[11],h!==g&&(g[0]=h[0],g[1]=h[1],g[2]=h[2],g[3]=h[3],g[12]=h[12],g[13]=h[13],g[14]=h[14],g[15]=h[15]),g[4]=l*k+q*j,g[5]=n*k+r*j,g[6]=o*k+s*j,g[7]=p*k+v*j,g[8]=q*k-l*j,g[9]=r*k-n*j,g[10]=s*k-o*j,g[11]=v*k-p*j,w=M,x=M,y=c*B,z=Math.sin(y),A=Math.cos(y),C=x[0],D=x[1],E=x[2],F=x[3],G=x[4],H=x[5],I=x[6],J=x[7],x!==w&&(w[8]=x[8],w[9]=x[9],w[10]=x[10],w[11]=x[11],w[12]=x[12],w[13]=x[13],w[14]=x[14],w[15]=x[15]),w[0]=C*A+G*z,w[1]=D*A+H*z,w[2]=E*A+I*z,w[3]=F*A+J*z,w[4]=G*A-C*z,w[5]=H*A-D*z,w[6]=I*A-E*z,w[7]=J*A-F*z,u(M,M,[e/=a,e,e]),f&&t(M,M,(K=[],L=f,K[0]=-L[0],K[1]=-L[1],K[2]=-L[2],K)),M}({height:b,scale:n,center:p,pitch:f,bearing:g,altitude:h}),this.width=a,this.height=b,this.scale=n,this.latitude=c,this.longitude=d,this.zoom=e,this.pitch=f,this.bearing=g,this.altitude=h,this.fovy=i,this.center=p,this.meterOffset=j||[0,0,0],this.distanceScales=o,this._initMatrices(),this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),Object.freeze(this)}_initMatrices(){var a,b,c,d,e,f,g,h,i,j,k,l,n,o,p,q,r,v,w,x,y,z,A,B,C,D,E,F,G,H,I;const{width:J,height:K,projectionMatrix:L,viewMatrix:M}=this,N=m();s(N,N,L),s(N,N,M),this.viewProjectionMatrix=N;const O=m();u(O,O,[J/2,-K/2,1]),t(O,O,[1,-1,0]),s(O,O,N);const P=(a=m(),c=(b=O)[0],d=b[1],e=b[2],f=b[3],g=b[4],h=b[5],i=b[6],j=b[7],k=b[8],l=b[9],n=b[10],o=b[11],p=b[12],q=b[13],r=b[14],v=b[15],w=c*h-d*g,x=c*i-e*g,y=c*j-f*g,z=d*i-e*h,A=d*j-f*h,B=e*j-f*i,C=k*q-l*p,D=k*r-n*p,E=k*v-o*p,F=l*r-n*q,G=l*v-o*q,H=n*v-o*r,I=w*H-x*G+y*F+z*E-A*D+B*C,I?(I=1/I,a[0]=(h*H-i*G+j*F)*I,a[1]=(e*G-d*H-f*F)*I,a[2]=(q*B-r*A+v*z)*I,a[3]=(n*A-l*B-o*z)*I,a[4]=(i*E-g*H-j*D)*I,a[5]=(c*H-e*E+f*D)*I,a[6]=(r*y-p*B-v*x)*I,a[7]=(k*B-n*y+o*x)*I,a[8]=(g*G-h*E+j*C)*I,a[9]=(d*E-c*G-f*C)*I,a[10]=(p*A-q*y+v*w)*I,a[11]=(l*y-k*A-o*w)*I,a[12]=(h*D-g*F-i*C)*I,a[13]=(c*F-d*D+e*C)*I,a[14]=(q*x-p*z-r*w)*I,a[15]=(k*z-l*x+n*w)*I,a):null);if(!P)throw Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=O,this.pixelUnprojectionMatrix=P}equals(a){return a instanceof L&&a.width===this.width&&a.height===this.height&&v(a.projectionMatrix,this.projectionMatrix)&&v(a.viewMatrix,this.viewMatrix)}project(a,{topLeft:b=!0}={}){const c=this.projectPosition(a),d=function(a,b){const[c,d,e=0]=a;return y(Number.isFinite(c)&&Number.isFinite(d)&&Number.isFinite(e)),n(b,[c,d,e,1])}(c,this.pixelProjectionMatrix),[e,f]=d,g=b?f:this.height-f;return 2===a.length?[e,g]:[e,g,d[2]]}unproject(a,{topLeft:b=!0,targetZ:c}={}){const[d,e,f]=a,g=b?e:this.height-e,h=c&&c*this.distanceScales.unitsPerMeter[2],i=I([d,g,f],this.pixelUnprojectionMatrix,h),[j,k,l]=this.unprojectPosition(i);return Number.isFinite(f)?[j,k,l]:Number.isFinite(c)?[j,k,c]:[j,k]}projectPosition(a){const[b,c]=E(a),d=(a[2]||0)*this.distanceScales.unitsPerMeter[2];return[b,c,d]}unprojectPosition(a){const[b,c]=F(a),d=(a[2]||0)*this.distanceScales.metersPerUnit[2];return[b,c,d]}projectFlat(a){return E(a)}unprojectFlat(a){return F(a)}getMapCenterByLngLatPosition({lngLat:a,pos:b}){var c,d;const e=I(b,this.pixelUnprojectionMatrix),f=E(a),g=w([],f,(c=[],d=e,c[0]=-d[0],c[1]=-d[1],c)),h=w([],this.center,g);return F(h)}getLocationAtPoint({lngLat:a,pos:b}){return this.getMapCenterByLngLatPosition({lngLat:a,pos:b})}fitBounds(a,b={}){const{width:c,height:d}=this,{longitude:e,latitude:f,zoom:g}=function({width:a,height:b,bounds:c,minExtent:d=0,maxZoom:e=24,padding:f=0,offset:g=[0,0]}){const[[h,i],[j,k]]=c;if(Number.isFinite(f)){const l=f;f={top:l,bottom:l,left:l,right:l}}else y(Number.isFinite(f.top)&&Number.isFinite(f.bottom)&&Number.isFinite(f.left)&&Number.isFinite(f.right));const m=E([h,q(k,-85.051129,85.051129),]),n=E([j,q(i,-85.051129,85.051129),]),o=[Math.max(Math.abs(n[0]-m[0]),d),Math.max(Math.abs(n[1]-m[1]),d),],p=[a-f.left-f.right-2*Math.abs(g[0]),b-f.top-f.bottom-2*Math.abs(g[1]),];y(p[0]>0&&p[1]>0);const s=p[0]/o[0],t=p[1]/o[1],u=(f.right-f.left)/2/s,v=(f.bottom-f.top)/2/t,w=[(n[0]+m[0])/2+u,(n[1]+m[1])/2+v,],x=F(w),z=Math.min(e,r(Math.abs(Math.min(s,t))));return y(Number.isFinite(z)),{longitude:x[0],latitude:x[1],zoom:z}}(Object.assign({width:c,height:d,bounds:a},b));return new L({width:c,height:d,longitude:e,latitude:f,zoom:g})}getBounds(a){const b=this.getBoundingRegion(a),c=Math.min(...b.map(a=>a[0])),d=Math.max(...b.map(a=>a[0])),e=Math.min(...b.map(a=>a[1])),f=Math.max(...b.map(a=>a[1]));return[[c,e],[d,f],]}getBoundingRegion(a={}){return function(a,b=0){const{width:c,height:d,unproject:e}=a,f={targetZ:b},g=e([0,d],f),h=e([c,d],f);let i,j;const k=a.fovy?.5*a.fovy*J:Math.atan(.5/a.altitude),l=(90-a.pitch)*J;return k>l-.01?(i=K(a,0,b),j=K(a,c,b)):(i=e([0,0],f),j=e([c,0],f)),[g,h,j,i]}(this,a.z||0)}}const M=["longitude","latitude","zoom"],N={curve:1.414,speed:1.2};function O(a,b,c){var d,e,f,g,h,i;c=Object.assign({},N,c);const j=c.curve,k=a.zoom,l=[a.longitude,a.latitude],m=D(k),n=b.zoom,o=[b.longitude,b.latitude],p=D(n-k),q=E(l),r=E(o),s=(d=[],e=r,f=q,d[0]=e[0]-f[0],d[1]=e[1]-f[1],d),t=Math.max(a.width,a.height),u=t/p,v=(h=(g=s)[0],i=g[1],Math.hypot(h,i)*m),w=Math.max(v,.01),x=j*j,y=(u*u-t*t+x*x*w*w)/(2*t*x*w),z=(u*u-t*t-x*x*w*w)/(2*u*x*w),A=Math.log(Math.sqrt(y*y+1)-y),B=Math.log(Math.sqrt(z*z+1)-z);return{startZoom:k,startCenterXY:q,uDelta:s,w0:t,u1:v,S:(B-A)/j,rho:j,rho2:x,r0:A,r1:B}}var P=function(){if("undefined"!=typeof Map)return Map;function a(a,b){var c=-1;return a.some(function(a,d){return a[0]===b&&(c=d,!0)}),c}return function(){function b(){this.__entries__=[]}return Object.defineProperty(b.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),b.prototype.get=function(b){var c=a(this.__entries__,b),d=this.__entries__[c];return d&&d[1]},b.prototype.set=function(b,c){var d=a(this.__entries__,b);~d?this.__entries__[d][1]=c:this.__entries__.push([b,c])},b.prototype.delete=function(b){var c=this.__entries__,d=a(c,b);~d&&c.splice(d,1)},b.prototype.has=function(b){return!!~a(this.__entries__,b)},b.prototype.clear=function(){this.__entries__.splice(0)},b.prototype.forEach=function(a,b){void 0===b&&(b=null);for(var c=0,d=this.__entries__;c0},a.prototype.connect_=function(){Q&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),U?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},a.prototype.disconnect_=function(){Q&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},a.prototype.onTransitionEnd_=function(a){var b=a.propertyName,c=void 0===b?"":b;T.some(function(a){return!!~c.indexOf(a)})&&this.refresh()},a.getInstance=function(){return this.instance_||(this.instance_=new a),this.instance_},a.instance_=null,a}(),W=function(a,b){for(var c=0,d=Object.keys(b);c0},a}(),ah="undefined"!=typeof WeakMap?new WeakMap:new P,ai=function(){function a(b){if(!(this instanceof a))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var c=V.getInstance(),d=new ag(b,c,this);ah.set(this,d)}return a}();["observe","unobserve","disconnect"].forEach(function(a){ai.prototype[a]=function(){var b;return(b=ah.get(this))[a].apply(b,arguments)}});var aj=void 0!==R.ResizeObserver?R.ResizeObserver:ai;function ak(a,b){if(!(a instanceof b))throw TypeError("Cannot call a class as a function")}function al(a,b){for(var c=0;c=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(a){throw a},f:d}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var e,f,g=!0,h=!1;return{s:function(){e=a[Symbol.iterator]()},n:function(){var a=e.next();return g=a.done,a},e:function(a){h=!0,f=a},f:function(){try{g||null==e.return||e.return()}finally{if(h)throw f}}}}function ar(a,b){if(a){if("string"==typeof a)return as(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);if("Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c)return Array.from(a);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return as(a,b)}}function as(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c1&& void 0!==arguments[1]?arguments[1]:"component";a.debug&&j.checkPropTypes(aw,a,"prop",b)}var az=function(){function a(b){var c=this;if(ak(this,a),g(this,"props",ax),g(this,"width",0),g(this,"height",0),g(this,"_fireLoadEvent",function(){c.props.onLoad({type:"load",target:c._map})}),g(this,"_handleError",function(a){c.props.onError(a)}),!b.mapboxgl)throw Error("Mapbox not available");this.mapboxgl=b.mapboxgl,a.initialized||(a.initialized=!0,this._checkStyleSheet(this.mapboxgl.version)),this._initialize(b)}return am(a,[{key:"finalize",value:function(){return this._destroy(),this}},{key:"setProps",value:function(a){return this._update(this.props,a),this}},{key:"redraw",value:function(){var a=this._map;a.style&&(a._frame&&(a._frame.cancel(),a._frame=null),a._render())}},{key:"getMap",value:function(){return this._map}},{key:"_reuse",value:function(b){this._map=a.savedMap;var c=this._map.getContainer(),d=b.container;for(d.classList.add("mapboxgl-map");c.childNodes.length>0;)d.appendChild(c.childNodes[0]);this._map._container=d,a.savedMap=null,b.mapStyle&&this._map.setStyle(au(b.mapStyle),{diff:!1}),this._map.isStyleLoaded()?this._fireLoadEvent():this._map.once("styledata",this._fireLoadEvent)}},{key:"_create",value:function(b){if(b.reuseMaps&&a.savedMap)this._reuse(b);else{if(b.gl){var c=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=function(){return HTMLCanvasElement.prototype.getContext=c,b.gl}}var d={container:b.container,center:[0,0],zoom:8,pitch:0,bearing:0,maxZoom:24,style:au(b.mapStyle),interactive:!1,trackResize:!1,attributionControl:b.attributionControl,preserveDrawingBuffer:b.preserveDrawingBuffer};b.transformRequest&&(d.transformRequest=b.transformRequest),this._map=new this.mapboxgl.Map(Object.assign({},d,b.mapOptions)),this._map.once("load",this._fireLoadEvent),this._map.on("error",this._handleError)}return this}},{key:"_destroy",value:function(){this._map&&(this.props.reuseMaps&&!a.savedMap?(a.savedMap=this._map,this._map.off("load",this._fireLoadEvent),this._map.off("error",this._handleError),this._map.off("styledata",this._fireLoadEvent)):this._map.remove(),this._map=null)}},{key:"_initialize",value:function(a){var b=this;a=Object.assign({},ax,a),ay(a,"Mapbox"),this.mapboxgl.accessToken=a.mapboxApiAccessToken||ax.mapboxApiAccessToken,this.mapboxgl.baseApiUrl=a.mapboxApiUrl,this._create(a);var c=a.container;Object.defineProperty(c,"offsetWidth",{configurable:!0,get:function(){return b.width}}),Object.defineProperty(c,"clientWidth",{configurable:!0,get:function(){return b.width}}),Object.defineProperty(c,"offsetHeight",{configurable:!0,get:function(){return b.height}}),Object.defineProperty(c,"clientHeight",{configurable:!0,get:function(){return b.height}});var d=this._map.getCanvas();d&&(d.style.outline="none"),this._updateMapViewport({},a),this._updateMapSize({},a),this.props=a}},{key:"_update",value:function(a,b){if(this._map){ay(b=Object.assign({},this.props,b),"Mapbox");var c=this._updateMapViewport(a,b),d=this._updateMapSize(a,b);this._updateMapStyle(a,b),!b.asyncRender&&(c||d)&&this.redraw(),this.props=b}}},{key:"_updateMapStyle",value:function(a,b){a.mapStyle!==b.mapStyle&&this._map.setStyle(au(b.mapStyle),{diff:!b.preventStyleDiffing})}},{key:"_updateMapSize",value:function(a,b){var c=a.width!==b.width||a.height!==b.height;return c&&(this.width=b.width,this.height=b.height,this._map.resize()),c}},{key:"_updateMapViewport",value:function(a,b){var c=this._getViewState(a),d=this._getViewState(b),e=d.latitude!==c.latitude||d.longitude!==c.longitude||d.zoom!==c.zoom||d.pitch!==c.pitch||d.bearing!==c.bearing||d.altitude!==c.altitude;return e&&(this._map.jumpTo(this._viewStateToMapboxProps(d)),d.altitude!==c.altitude&&(this._map.transform.altitude=d.altitude)),e}},{key:"_getViewState",value:function(a){var b=a.viewState||a,c=b.longitude,d=b.latitude,e=b.zoom,f=b.pitch,g=b.bearing,h=b.altitude;return{longitude:c,latitude:d,zoom:e,pitch:void 0===f?0:f,bearing:void 0===g?0:g,altitude:void 0===h?1.5:h}}},{key:"_checkStyleSheet",value:function(){var a=arguments.length>0&& void 0!==arguments[0]?arguments[0]:"0.47.0";if(void 0!==an)try{var b=an.createElement("div");if(b.className="mapboxgl-map",b.style.display="none",an.body.appendChild(b),!("static"!==window.getComputedStyle(b).position)){var c=an.createElement("link");c.setAttribute("rel","stylesheet"),c.setAttribute("type","text/css"),c.setAttribute("href","https://api.tiles.mapbox.com/mapbox-gl-js/v".concat(a,"/mapbox-gl.css")),an.head.appendChild(c)}}catch(d){}}},{key:"_viewStateToMapboxProps",value:function(a){return{center:[a.longitude,a.latitude,],zoom:a.zoom,bearing:a.bearing,pitch:a.pitch}}},]),a}();g(az,"initialized",!1),g(az,"propTypes",aw),g(az,"defaultProps",ax),g(az,"savedMap",null);var aA=c(6158),aB=c.n(aA);function aC(a){return Array.isArray(a)||ArrayBuffer.isView(a)}function aD(a,b){if(a===b)return!0;if(aC(a)&&aC(b)){if(a.length!==b.length)return!1;for(var c=0;c=Math.abs(a-b)}function aE(a,b,c){return Math.max(b,Math.min(c,a))}function aF(a,b,c){return aC(a)?a.map(function(a,d){return aF(a,b[d],c)}):c*b+(1-c)*a}function aG(a,b){if(!a)throw Error(b||"react-map-gl: assertion failed.")}function aH(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function aI(a){for(var b=1;b0,"`scale` must be a positive number");var e=this._state,f=e.startZoom,g=e.startZoomLngLat;Number.isFinite(f)||(f=this._viewportProps.zoom,g=this._unproject(c)||this._unproject(b)),aG(g,"`startZoomLngLat` prop is required for zoom behavior to calculate where to position the map.");var h=this._calculateNewZoom({scale:d,startZoom:f||0}),i=new L(Object.assign({},this._viewportProps,{zoom:h})),j=i.getMapCenterByLngLatPosition({lngLat:g,pos:b}),l=k(j,2),m=l[0],n=l[1];return this._getUpdatedMapState({zoom:h,longitude:m,latitude:n})}},{key:"zoomEnd",value:function(){return this._getUpdatedMapState({startZoomLngLat:null,startZoom:null})}},{key:"_getUpdatedMapState",value:function(b){return new a(Object.assign({},this._viewportProps,this._state,b))}},{key:"_applyConstraints",value:function(a){var b=a.maxZoom,c=a.minZoom,d=a.zoom;a.zoom=aE(d,c,b);var e=a.maxPitch,f=a.minPitch,g=a.pitch;return a.pitch=aE(g,f,e),Object.assign(a,function({width:a,height:b,longitude:c,latitude:d,zoom:e,pitch:f=0,bearing:g=0}){(c< -180||c>180)&&(c=o(c+180,360)-180),(g< -180||g>180)&&(g=o(g+180,360)-180);const h=r(b/512);if(e<=h)e=h,d=0;else{const i=b/2/Math.pow(2,e),j=F([0,i])[1];if(dk&&(d=k)}}return{width:a,height:b,longitude:c,latitude:d,zoom:e,pitch:f,bearing:g}}(a)),a}},{key:"_unproject",value:function(a){var b=new L(this._viewportProps);return a&&b.unproject(a)}},{key:"_calculateNewLngLat",value:function(a){var b=a.startPanLngLat,c=a.pos,d=new L(this._viewportProps);return d.getMapCenterByLngLatPosition({lngLat:b,pos:c})}},{key:"_calculateNewZoom",value:function(a){var b=a.scale,c=a.startZoom,d=this._viewportProps,e=d.maxZoom,f=d.minZoom;return aE(c+Math.log2(b),f,e)}},{key:"_calculateNewPitchAndBearing",value:function(a){var b=a.deltaScaleX,c=a.deltaScaleY,d=a.startBearing,e=a.startPitch;c=aE(c,-1,1);var f=this._viewportProps,g=f.minPitch,h=f.maxPitch,i=e;return c>0?i=e+c*(h-e):c<0&&(i=e-c*(g-e)),{pitch:i,bearing:d+180*b}}},{key:"_getRotationParams",value:function(a,b){var c=a[0]-b[0],d=a[1]-b[1],e=a[1],f=b[1],g=this._viewportProps,h=g.width,i=g.height,j=0;return d>0?Math.abs(i-f)>5&&(j=d/(f-i)*1.2):d<0&&f>5&&(j=1-e/f),{deltaScaleX:c/h,deltaScaleY:j=Math.min(1,Math.max(-1,j))}}},]),a}();function aM(a){return a[0].toLowerCase()+a.slice(1)}function aN(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function aO(a){for(var b=1;b1&& void 0!==arguments[1]?arguments[1]:{},d=a.current&&a.current.getMap();return d&&d.queryRenderedFeatures(b,c)}}},[]);var q=(0,i.useCallback)(function(a){var b=a.target;b===n.current&&b.scrollTo(0,0)},[]),r=p&&i.createElement(aQ,{value:aV(aV({},o),{},{viewport:o.viewport||aX(aV({map:p,props:a},g)),map:p,container:o.container||m.current})},i.createElement("div",{key:"map-overlays",className:"overlays",ref:n,style:aY,onScroll:q},a.children)),s=a.className,t=a.width,u=a.height,v=a.style,w=a.visibilityConstraints,x=Object.assign({position:"relative"},v,{width:t,height:u}),y=a.visible&&function(a){var b=arguments.length>1&& void 0!==arguments[1]?arguments[1]:aJ;for(var c in b){var d=c.slice(0,3),e=aM(c.slice(3));if("min"===d&&a[e]b[c])return!1}return!0}(a.viewState||a,w),z=Object.assign({},aY,{visibility:y?"inherit":"hidden"});return i.createElement("div",{key:"map-container",ref:m,style:x},i.createElement("div",{key:"map-mapbox",ref:l,style:z,className:s}),r,!d&&!a.disableTokenWarning&&i.createElement(a_,null))});a0.supported=function(){return aB()&&aB().supported()},a0.propTypes=aZ,a0.defaultProps=a$;var a1=a0;function a2(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(a){throw a},f:d}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var e,f,g=!0,h=!1;return{s:function(){e=a[Symbol.iterator]()},n:function(){var a=e.next();return g=a.done,a},e:function(a){h=!0,f=a},f:function(){try{g||null==e.return||e.return()}finally{if(h)throw f}}}}(this.propNames||[]);try{for(d.s();!(c=d.n()).done;){var e=c.value;if(!aD(a[e],b[e]))return!1}}catch(f){d.e(f)}finally{d.f()}return!0}},{key:"initializeProps",value:function(a,b){return{start:a,end:b}}},{key:"interpolateProps",value:function(a,b,c){aG(!1,"interpolateProps is not implemented")}},{key:"getDuration",value:function(a,b){return b.transitionDuration}},]),a}();function a4(a){if(void 0===a)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function a5(a,b){return(a5=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a})(a,b)}function a6(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),b&&a5(a,b)}function a7(a){return(a7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}function a8(a,b){if(b&&("object"===a7(b)||"function"==typeof b))return b;if(void 0!==b)throw TypeError("Derived constructors may only return object or undefined");return a4(a)}function a9(a){return(a9=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(a)}var ba={longitude:1,bearing:1};function bb(a){return Number.isFinite(a)||Array.isArray(a)}function bc(a,b,c){return a in ba&&Math.abs(c-b)>180&&(c=c<0?c+360:c-360),c}function bd(a,b){if("undefined"==typeof Symbol||null==a[Symbol.iterator]){if(Array.isArray(a)||(e=be(a))||b&&a&&"number"==typeof a.length){e&&(a=e);var c=0,d=function(){};return{s:d,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(a){throw a},f:d}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var e,f,g=!0,h=!1;return{s:function(){e=a[Symbol.iterator]()},n:function(){var a=e.next();return g=a.done,a},e:function(a){h=!0,f=a},f:function(){try{g||null==e.return||e.return()}finally{if(h)throw f}}}}function be(a,b){if(a){if("string"==typeof a)return bf(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);if("Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c)return Array.from(a);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return bf(a,b)}}function bf(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(a){throw a},f:d}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var e,f,g=!0,h=!1;return{s:function(){e=a[Symbol.iterator]()},n:function(){var a=e.next();return g=a.done,a},e:function(a){h=!0,f=a},f:function(){try{g||null==e.return||e.return()}finally{if(h)throw f}}}}function bl(a,b){if(a){if("string"==typeof a)return bm(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);if("Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c)return Array.from(a);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return bm(a,b)}}function bm(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c0&& void 0!==arguments[0]?arguments[0]:{};return ak(this,e),g(a4(a=d.call(this)),"propNames",bg),a.props=Object.assign({},bj,b),a}am(e,[{key:"initializeProps",value:function(a,b){var c,d={},e={},f=bd(bh);try{for(f.s();!(c=f.n()).done;){var g=c.value,h=a[g],i=b[g];aG(bb(h)&&bb(i),"".concat(g," must be supplied for transition")),d[g]=h,e[g]=bc(g,h,i)}}catch(j){f.e(j)}finally{f.f()}var k,l=bd(bi);try{for(l.s();!(k=l.n()).done;){var m=k.value,n=a[m]||0,o=b[m]||0;d[m]=n,e[m]=bc(m,n,o)}}catch(p){l.e(p)}finally{l.f()}return{start:d,end:e}}},{key:"interpolateProps",value:function(a,b,c){var d,e=function(a,b,c,d={}){var e,f,g,h;const i={},{startZoom:j,startCenterXY:k,uDelta:l,w0:m,u1:n,S:o,rho:q,rho2:s,r0:t}=O(a,b,d);if(n<.01){for(const u of M){const v=a[u],x=b[u];i[u]=p(v,x,c)}return i}const y=c*o,z=j+(h=1/(Math.cosh(t)/Math.cosh(t+q*y)),r(h)),A=(e=[],f=l,g=m*((Math.cosh(t)*Math.tanh(t+q*y)-Math.sinh(t))/s)/n,e[0]=f[0]*g,e[1]=f[1]*g,e);w(A,A,k);const B=F(A);return i.longitude=B[0],i.latitude=B[1],i.zoom=z,i}(a,b,c,this.props),f=bd(bi);try{for(f.s();!(d=f.n()).done;){var g=d.value;e[g]=aF(a[g],b[g],c)}}catch(h){f.e(h)}finally{f.f()}return e}},{key:"getDuration",value:function(a,b){var c=b.transitionDuration;return"auto"===c&&(c=function(a,b,c={}){c=Object.assign({},N,c);const{screenSpeed:d,speed:e,maxDuration:f}=c,{S:g,rho:h}=O(a,b,c),i=1e3*g;let j;return j=Number.isFinite(d)?i/(d/h):i/e,Number.isFinite(f)&&j>f?0:j}(a,b,this.props)),c}},])}(a3);var bn=["longitude","latitude","zoom","bearing","pitch",],bo=function(a){a6(e,a);var b,c,d=(b=e,c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}(),function(){var a,d=a9(b);if(c){var e=a9(this).constructor;a=Reflect.construct(d,arguments,e)}else a=d.apply(this,arguments);return a8(this,a)});function e(){var a,b=arguments.length>0&& void 0!==arguments[0]?arguments[0]:{};return ak(this,e),a=d.call(this),Array.isArray(b)&&(b={transitionProps:b}),a.propNames=b.transitionProps||bn,b.around&&(a.around=b.around),a}return am(e,[{key:"initializeProps",value:function(a,b){var c={},d={};if(this.around){c.around=this.around;var e=new L(a).unproject(this.around);Object.assign(d,b,{around:new L(b).project(e),aroundLngLat:e})}var f,g=bk(this.propNames);try{for(g.s();!(f=g.n()).done;){var h=f.value,i=a[h],j=b[h];aG(bb(i)&&bb(j),"".concat(h," must be supplied for transition")),c[h]=i,d[h]=bc(h,i,j)}}catch(k){g.e(k)}finally{g.f()}return{start:c,end:d}}},{key:"interpolateProps",value:function(a,b,c){var d,e={},f=bk(this.propNames);try{for(f.s();!(d=f.n()).done;){var g=d.value;e[g]=aF(a[g],b[g],c)}}catch(h){f.e(h)}finally{f.f()}if(b.around){var i=new L(Object.assign({},b,e)).getMapCenterByLngLatPosition({lngLat:b.aroundLngLat,pos:aF(a.around,b.around,c)}),j=k(i,2),l=j[0],m=j[1];e.longitude=l,e.latitude=m}return e}},]),e}(a3),bp=function(){},bq={BREAK:1,SNAP_TO_END:2,IGNORE:3,UPDATE:4},br={transitionDuration:0,transitionEasing:function(a){return a},transitionInterpolator:new bo,transitionInterruption:bq.BREAK,onTransitionStart:bp,onTransitionInterrupt:bp,onTransitionEnd:bp},bs=function(){function a(){var b=this,c=arguments.length>0&& void 0!==arguments[0]?arguments[0]:{};ak(this,a),g(this,"_animationFrame",null),g(this,"_onTransitionFrame",function(){b._animationFrame=requestAnimationFrame(b._onTransitionFrame),b._updateViewport()}),this.props=null,this.onViewportChange=c.onViewportChange||bp,this.onStateChange=c.onStateChange||bp,this.time=c.getTime||Date.now}return am(a,[{key:"getViewportInTransition",value:function(){return this._animationFrame?this.state.propsInTransition:null}},{key:"processViewportChange",value:function(a){var b=this.props;if(this.props=a,!b||this._shouldIgnoreViewportChange(b,a))return!1;if(this._isTransitionEnabled(a)){var c=Object.assign({},b),d=Object.assign({},a);if(this._isTransitionInProgress()&&(b.onTransitionInterrupt(),this.state.interruption===bq.SNAP_TO_END?Object.assign(c,this.state.endProps):Object.assign(c,this.state.propsInTransition),this.state.interruption===bq.UPDATE)){var e,f,g,h=this.time(),i=(h-this.state.startTime)/this.state.duration;d.transitionDuration=this.state.duration-(h-this.state.startTime),d.transitionEasing=(g=(e=this.state.easing)(f=i),function(a){return 1/(1-g)*(e(a*(1-f)+f)-g)}),d.transitionInterpolator=c.transitionInterpolator}return d.onTransitionStart(),this._triggerTransition(c,d),!0}return this._isTransitionInProgress()&&(b.onTransitionInterrupt(),this._endTransition()),!1}},{key:"_isTransitionInProgress",value:function(){return Boolean(this._animationFrame)}},{key:"_isTransitionEnabled",value:function(a){var b=a.transitionDuration,c=a.transitionInterpolator;return(b>0||"auto"===b)&&Boolean(c)}},{key:"_isUpdateDueToCurrentTransition",value:function(a){return!!this.state.propsInTransition&&this.state.interpolator.arePropsEqual(a,this.state.propsInTransition)}},{key:"_shouldIgnoreViewportChange",value:function(a,b){return!a||(this._isTransitionInProgress()?this.state.interruption===bq.IGNORE||this._isUpdateDueToCurrentTransition(b):!this._isTransitionEnabled(b)||b.transitionInterpolator.arePropsEqual(a,b))}},{key:"_triggerTransition",value:function(a,b){aG(this._isTransitionEnabled(b)),this._animationFrame&&cancelAnimationFrame(this._animationFrame);var c=b.transitionInterpolator,d=c.getDuration?c.getDuration(a,b):b.transitionDuration;if(0!==d){var e=b.transitionInterpolator.initializeProps(a,b),f={inTransition:!0,isZooming:a.zoom!==b.zoom,isPanning:a.longitude!==b.longitude||a.latitude!==b.latitude,isRotating:a.bearing!==b.bearing||a.pitch!==b.pitch};this.state={duration:d,easing:b.transitionEasing,interpolator:b.transitionInterpolator,interruption:b.transitionInterruption,startTime:this.time(),startProps:e.start,endProps:e.end,animation:null,propsInTransition:{}},this._onTransitionFrame(),this.onStateChange(f)}}},{key:"_endTransition",value:function(){this._animationFrame&&(cancelAnimationFrame(this._animationFrame),this._animationFrame=null),this.onStateChange({inTransition:!1,isZooming:!1,isPanning:!1,isRotating:!1})}},{key:"_updateViewport",value:function(){var a=this.time(),b=this.state,c=b.startTime,d=b.duration,e=b.easing,f=b.interpolator,g=b.startProps,h=b.endProps,i=!1,j=(a-c)/d;j>=1&&(j=1,i=!0),j=e(j);var k=f.interpolateProps(g,h,j),l=new aL(Object.assign({},this.props,k));this.state.propsInTransition=l.getViewportProps(),this.onViewportChange(this.state.propsInTransition,this.props),i&&(this._endTransition(),this.props.onTransitionEnd())}},]),a}();g(bs,"defaultProps",br);var bt=c(840),bu=c.n(bt);const bv={mousedown:1,mousemove:2,mouseup:4};!function(a){const b=a.prototype.handler;a.prototype.handler=function(a){const c=this.store;a.button>0&&"pointerdown"===a.type&&!function(a,b){for(let c=0;cb.pointerId===a.pointerId)&&c.push(a),b.call(this,a)}}(bu().PointerEventInput),bu().MouseInput.prototype.handler=function(a){let b=bv[a.type];1&b&&a.button>=0&&(this.pressed=!0),2&b&&0===a.which&&(b=4),this.pressed&&(4&b&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[a],changedPointers:[a],pointerType:"mouse",srcEvent:a}))};const bw=bu().Manager;var bx=bu();const by=bx?[[bx.Pan,{event:"tripan",pointers:3,threshold:0,enable:!1},],[bx.Rotate,{enable:!1},],[bx.Pinch,{enable:!1},],[bx.Swipe,{enable:!1},],[bx.Pan,{threshold:0,enable:!1},],[bx.Press,{enable:!1},],[bx.Tap,{event:"doubletap",taps:2,enable:!1},],[bx.Tap,{event:"anytap",enable:!1},],[bx.Tap,{enable:!1},],]:null,bz={tripan:["rotate","pinch","pan"],rotate:["pinch"],pinch:["pan"],pan:["press","doubletap","anytap","tap"],doubletap:["anytap"],anytap:["tap"]},bA={doubletap:["tap"]},bB={pointerdown:"pointerdown",pointermove:"pointermove",pointerup:"pointerup",touchstart:"pointerdown",touchmove:"pointermove",touchend:"pointerup",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup"},bC={KEY_EVENTS:["keydown","keyup"],MOUSE_EVENTS:["mousedown","mousemove","mouseup","mouseover","mouseout","mouseleave",],WHEEL_EVENTS:["wheel","mousewheel"]},bD={tap:"tap",anytap:"anytap",doubletap:"doubletap",press:"press",pinch:"pinch",pinchin:"pinch",pinchout:"pinch",pinchstart:"pinch",pinchmove:"pinch",pinchend:"pinch",pinchcancel:"pinch",rotate:"rotate",rotatestart:"rotate",rotatemove:"rotate",rotateend:"rotate",rotatecancel:"rotate",tripan:"tripan",tripanstart:"tripan",tripanmove:"tripan",tripanup:"tripan",tripandown:"tripan",tripanleft:"tripan",tripanright:"tripan",tripanend:"tripan",tripancancel:"tripan",pan:"pan",panstart:"pan",panmove:"pan",panup:"pan",pandown:"pan",panleft:"pan",panright:"pan",panend:"pan",pancancel:"pan",swipe:"swipe",swipeleft:"swipe",swiperight:"swipe",swipeup:"swipe",swipedown:"swipe"},bE={click:"tap",anyclick:"anytap",dblclick:"doubletap",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup",mouseover:"pointerover",mouseout:"pointerout",mouseleave:"pointerleave"},bF="undefined"!=typeof navigator&&navigator.userAgent?navigator.userAgent.toLowerCase():"",bG="undefined"!=typeof window?window:c.g;void 0!==c.g?c.g:window;let bH=!1;try{const bI={get passive(){return bH=!0,!0}};bG.addEventListener("test",bI,bI),bG.removeEventListener("test",bI,bI)}catch(bJ){}const bK=-1!==bF.indexOf("firefox"),{WHEEL_EVENTS:bL}=bC,bM="wheel";class bN{constructor(a,b,c={}){this.element=a,this.callback=b,this.options=Object.assign({enable:!0},c),this.events=bL.concat(c.events||[]),this.handleEvent=this.handleEvent.bind(this),this.events.forEach(b=>a.addEventListener(b,this.handleEvent,!!bH&&{passive:!1}))}destroy(){this.events.forEach(a=>this.element.removeEventListener(a,this.handleEvent))}enableEventType(a,b){a===bM&&(this.options.enable=b)}handleEvent(a){if(!this.options.enable)return;let b=a.deltaY;bG.WheelEvent&&(bK&&a.deltaMode===bG.WheelEvent.DOM_DELTA_PIXEL&&(b/=bG.devicePixelRatio),a.deltaMode===bG.WheelEvent.DOM_DELTA_LINE&&(b*=40));const c={x:a.clientX,y:a.clientY};0!==b&&b%4.000244140625==0&&(b=Math.floor(b/4.000244140625)),a.shiftKey&&b&&(b*=.25),this._onWheel(a,-b,c)}_onWheel(a,b,c){this.callback({type:bM,center:c,delta:b,srcEvent:a,pointerType:"mouse",target:a.target})}}const{MOUSE_EVENTS:bO}=bC,bP="pointermove",bQ="pointerover",bR="pointerout",bS="pointerleave";class bT{constructor(a,b,c={}){this.element=a,this.callback=b,this.pressed=!1,this.options=Object.assign({enable:!0},c),this.enableMoveEvent=this.options.enable,this.enableLeaveEvent=this.options.enable,this.enableOutEvent=this.options.enable,this.enableOverEvent=this.options.enable,this.events=bO.concat(c.events||[]),this.handleEvent=this.handleEvent.bind(this),this.events.forEach(b=>a.addEventListener(b,this.handleEvent))}destroy(){this.events.forEach(a=>this.element.removeEventListener(a,this.handleEvent))}enableEventType(a,b){a===bP&&(this.enableMoveEvent=b),a===bQ&&(this.enableOverEvent=b),a===bR&&(this.enableOutEvent=b),a===bS&&(this.enableLeaveEvent=b)}handleEvent(a){this.handleOverEvent(a),this.handleOutEvent(a),this.handleLeaveEvent(a),this.handleMoveEvent(a)}handleOverEvent(a){this.enableOverEvent&&"mouseover"===a.type&&this.callback({type:bQ,srcEvent:a,pointerType:"mouse",target:a.target})}handleOutEvent(a){this.enableOutEvent&&"mouseout"===a.type&&this.callback({type:bR,srcEvent:a,pointerType:"mouse",target:a.target})}handleLeaveEvent(a){this.enableLeaveEvent&&"mouseleave"===a.type&&this.callback({type:bS,srcEvent:a,pointerType:"mouse",target:a.target})}handleMoveEvent(a){if(this.enableMoveEvent)switch(a.type){case"mousedown":a.button>=0&&(this.pressed=!0);break;case"mousemove":0===a.which&&(this.pressed=!1),this.pressed||this.callback({type:bP,srcEvent:a,pointerType:"mouse",target:a.target});break;case"mouseup":this.pressed=!1}}}const{KEY_EVENTS:bU}=bC,bV="keydown",bW="keyup";class bX{constructor(a,b,c={}){this.element=a,this.callback=b,this.options=Object.assign({enable:!0},c),this.enableDownEvent=this.options.enable,this.enableUpEvent=this.options.enable,this.events=bU.concat(c.events||[]),this.handleEvent=this.handleEvent.bind(this),a.tabIndex=c.tabIndex||0,a.style.outline="none",this.events.forEach(b=>a.addEventListener(b,this.handleEvent))}destroy(){this.events.forEach(a=>this.element.removeEventListener(a,this.handleEvent))}enableEventType(a,b){a===bV&&(this.enableDownEvent=b),a===bW&&(this.enableUpEvent=b)}handleEvent(a){const b=a.target||a.srcElement;("INPUT"!==b.tagName||"text"!==b.type)&&"TEXTAREA"!==b.tagName&&(this.enableDownEvent&&"keydown"===a.type&&this.callback({type:bV,srcEvent:a,key:a.key,target:a.target}),this.enableUpEvent&&"keyup"===a.type&&this.callback({type:bW,srcEvent:a,key:a.key,target:a.target}))}}const bY="contextmenu";class bZ{constructor(a,b,c={}){this.element=a,this.callback=b,this.options=Object.assign({enable:!0},c),this.handleEvent=this.handleEvent.bind(this),a.addEventListener("contextmenu",this.handleEvent)}destroy(){this.element.removeEventListener("contextmenu",this.handleEvent)}enableEventType(a,b){a===bY&&(this.options.enable=b)}handleEvent(a){this.options.enable&&this.callback({type:bY,center:{x:a.clientX,y:a.clientY},srcEvent:a,pointerType:"mouse",target:a.target})}}const b$={pointerdown:1,pointermove:2,pointerup:4,mousedown:1,mousemove:2,mouseup:4},b_={srcElement:"root",priority:0};class b0{constructor(a){this.eventManager=a,this.handlers=[],this.handlersByElement=new Map,this.handleEvent=this.handleEvent.bind(this),this._active=!1}isEmpty(){return!this._active}add(a,b,c,d=!1,e=!1){const{handlers:f,handlersByElement:g}=this;c&&("object"!=typeof c||c.addEventListener)&&(c={srcElement:c}),c=c?Object.assign({},b_,c):b_;let h=g.get(c.srcElement);h||(h=[],g.set(c.srcElement,h));const i={type:a,handler:b,srcElement:c.srcElement,priority:c.priority};d&&(i.once=!0),e&&(i.passive=!0),f.push(i),this._active=this._active||!i.passive;let j=h.length-1;for(;j>=0&&!(h[j].priority>=i.priority);)j--;h.splice(j+1,0,i)}remove(a,b){const{handlers:c,handlersByElement:d}=this;for(let e=c.length-1;e>=0;e--){const f=c[e];if(f.type===a&&f.handler===b){c.splice(e,1);const g=d.get(f.srcElement);g.splice(g.indexOf(f),1),0===g.length&&d.delete(f.srcElement)}}this._active=c.some(a=>!a.passive)}handleEvent(a){if(this.isEmpty())return;const b=this._normalizeEvent(a);let c=a.srcEvent.target;for(;c&&c!==b.rootElement;){if(this._emit(b,c),b.handled)return;c=c.parentNode}this._emit(b,"root")}_emit(a,b){const c=this.handlersByElement.get(b);if(c){let d=!1;const e=()=>{a.handled=!0},f=()=>{a.handled=!0,d=!0},g=[];for(let h=0;h{const b=this.manager.get(a);b&&bz[a].forEach(a=>{b.recognizeWith(a)})}),b.recognizerOptions){const e=this.manager.get(d);if(e){const f=b.recognizerOptions[d];delete f.enable,e.set(f)}}for(const[g,h]of(this.wheelInput=new bN(a,this._onOtherEvent,{enable:!1}),this.moveInput=new bT(a,this._onOtherEvent,{enable:!1}),this.keyInput=new bX(a,this._onOtherEvent,{enable:!1,tabIndex:b.tabIndex}),this.contextmenuInput=new bZ(a,this._onOtherEvent,{enable:!1}),this.events))h.isEmpty()||(this._toggleRecognizer(h.recognizerName,!0),this.manager.on(g,h.handleEvent))}destroy(){this.element&&(this.wheelInput.destroy(),this.moveInput.destroy(),this.keyInput.destroy(),this.contextmenuInput.destroy(),this.manager.destroy(),this.wheelInput=null,this.moveInput=null,this.keyInput=null,this.contextmenuInput=null,this.manager=null,this.element=null)}on(a,b,c){this._addEventHandler(a,b,c,!1)}once(a,b,c){this._addEventHandler(a,b,c,!0)}watch(a,b,c){this._addEventHandler(a,b,c,!1,!0)}off(a,b){this._removeEventHandler(a,b)}_toggleRecognizer(a,b){const{manager:c}=this;if(!c)return;const d=c.get(a);if(d&&d.options.enable!==b){d.set({enable:b});const e=bA[a];e&&!this.options.recognizers&&e.forEach(e=>{const f=c.get(e);b?(f.requireFailure(a),d.dropRequireFailure(e)):f.dropRequireFailure(a)})}this.wheelInput.enableEventType(a,b),this.moveInput.enableEventType(a,b),this.keyInput.enableEventType(a,b),this.contextmenuInput.enableEventType(a,b)}_addEventHandler(a,b,c,d,e){if("string"!=typeof a){for(const f in c=b,a)this._addEventHandler(f,a[f],c,d,e);return}const{manager:g,events:h}=this,i=bE[a]||a;let j=h.get(i);!j&&(j=new b0(this),h.set(i,j),j.recognizerName=bD[i]||i,g&&g.on(i,j.handleEvent)),j.add(a,b,c,d,e),j.isEmpty()||this._toggleRecognizer(j.recognizerName,!0)}_removeEventHandler(a,b){if("string"!=typeof a){for(const c in a)this._removeEventHandler(c,a[c]);return}const{events:d}=this,e=bE[a]||a,f=d.get(e);if(f&&(f.remove(a,b),f.isEmpty())){const{recognizerName:g}=f;let h=!1;for(const i of d.values())if(i.recognizerName===g&&!i.isEmpty()){h=!0;break}h||this._toggleRecognizer(g,!1)}}_onBasicInput(a){const{srcEvent:b}=a,c=bB[b.type];c&&this.manager.emit(c,a)}_onOtherEvent(a){this.manager.emit(a.type,a)}}function b2(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function b3(a){for(var b=1;b0),g=f&&!this.state.isHovering,h=!f&&this.state.isHovering;(d||g)&&(a.features=b,d&&d(a)),g&&cf.call(this,"onMouseEnter",a),h&&cf.call(this,"onMouseLeave",a),(g||h)&&this.setState({isHovering:f})}}function cj(a){var b=this.props,c=b.onClick,d=b.onNativeClick,e=b.onDblClick,f=b.doubleClickZoom,g=[],h=e||f;switch(a.type){case"anyclick":g.push(d),h||g.push(c);break;case"click":h&&g.push(c)}(g=g.filter(Boolean)).length&&((a=cd.call(this,a)).features=ce.call(this,a.point),g.forEach(function(b){return b(a)}))}var ck=(0,i.forwardRef)(function(a,b){var c,g,h=(0,i.useContext)(aR),j=(0,i.useMemo)(function(){return a.controller||new b8},[]),k=(0,i.useMemo)(function(){return new b1(null,{touchAction:a.touchAction,recognizerOptions:a.eventRecognizerOptions})},[]),l=(0,i.useRef)(null),m=(0,i.useRef)(null),n=(0,i.useRef)({width:0,height:0,state:{isHovering:!1,isDragging:!1}}).current;n.props=a,n.map=m.current&&m.current.getMap(),n.setState=function(b){n.state=ca(ca({},n.state),b),l.current.style.cursor=a.getCursor(n.state)};var o=!0,p=function(a,b,d){if(o){c=[a,b,d,];return}var e=n.props,f=e.onViewStateChange,g=e.onViewportChange;Object.defineProperty(a,"position",{get:function(){return[0,0,aT(n.map,a),]}}),f&&f({viewState:a,interactionState:b,oldViewState:d}),g&&g(a,b,d)};(0,i.useImperativeHandle)(b,function(){var a;return{getMap:(a=m).current&&a.current.getMap,queryRenderedFeatures:a.current&&a.current.queryRenderedFeatures}},[]);var q=(0,i.useMemo)(function(){return ca(ca({},h),{},{eventManager:k,container:h.container||l.current})},[h,l.current]);q.onViewportChange=p,q.viewport=h.viewport||aX(n),n.viewport=q.viewport;var r=function(a){var b=a.isDragging,c=void 0!==b&&b;if(c!==n.state.isDragging&&n.setState({isDragging:c}),o){g=a;return}var d=n.props.onInteractionStateChange;d&&d(a)},s=function(){n.width&&n.height&&j.setOptions(ca(ca(ca({},n.props),n.props.viewState),{},{isInteractive:Boolean(n.props.onViewStateChange||n.props.onViewportChange),onViewportChange:p,onStateChange:r,eventManager:k,width:n.width,height:n.height}))},t=function(a){var b=a.width,c=a.height;n.width=b,n.height=c,s(),n.props.onResize({width:b,height:c})};(0,i.useEffect)(function(){return k.setElement(l.current),k.on({pointerdown:cg.bind(n),pointermove:ci.bind(n),pointerup:ch.bind(n),pointerleave:cf.bind(n,"onMouseOut"),click:cj.bind(n),anyclick:cj.bind(n),dblclick:cf.bind(n,"onDblClick"),wheel:cf.bind(n,"onWheel"),contextmenu:cf.bind(n,"onContextMenu")}),function(){k.destroy()}},[]),aS(function(){if(c){var a;p.apply(void 0,function(a){if(Array.isArray(a))return e(a)}(a=c)||function(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}(a)||f(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}g&&r(g)}),s();var u=a.width,v=a.height,w=a.style,x=a.getCursor,y=(0,i.useMemo)(function(){return ca(ca({position:"relative"},w),{},{width:u,height:v,cursor:x(n.state)})},[w,u,v,x,n.state]);return c&&n._child||(n._child=i.createElement(aQ,{value:q},i.createElement("div",{key:"event-canvas",ref:l,style:y},i.createElement(a1,d({},a,{width:"100%",height:"100%",style:null,onResize:t,ref:m}))))),o=!1,n._child});ck.supported=a1.supported,ck.propTypes=cb,ck.defaultProps=cc;var cl=ck;function cm(a,b){if(a===b)return!0;if(!a||!b)return!1;if(Array.isArray(a)){if(!Array.isArray(b)||a.length!==b.length)return!1;for(var c=0;c prop: ".concat(d))}}(l,a,c.current):l=function(a,b,c){if(a.style&&a.style._loaded){var d=function(a){for(var b=1;b=0||(e[c]=a[c]);return e}(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d=0)&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}(c,["layout","paint","filter","minzoom","maxzoom","beforeId",]);if(l!==d.beforeId&&a.moveLayer(b,l),f!==d.layout){var n=d.layout||{};for(var o in f)cm(f[o],n[o])||a.setLayoutProperty(b,o,f[o]);for(var p in n)f.hasOwnProperty(p)||a.setLayoutProperty(b,p,void 0)}if(h!==d.paint){var q=d.paint||{};for(var r in h)cm(h[r],q[r])||a.setPaintProperty(b,r,h[r]);for(var s in q)h.hasOwnProperty(s)||a.setPaintProperty(b,s,void 0)}for(var t in cm(i,d.filter)||a.setFilter(b,i),(j!==d.minzoom||k!==d.maxzoom)&&a.setLayerZoomRange(b,j,k),m)cm(m[t],d[t])||a.setLayerProperty(b,t,m[t])}(a,b,c,d)}catch(e){console.warn(e)}}(h,g,a,c.current):function(a,b,c){if(a.style&&a.style._loaded){var d=cr(cr({},c),{},{id:b});delete d.beforeId,a.addLayer(d,c.beforeId)}}(h,g,a),c.current=a,null}).propTypes=cs;var cu={captureScroll:!1,captureDrag:!0,captureClick:!0,captureDoubleClick:!0,capturePointerMove:!1},cv={captureScroll:j.bool,captureDrag:j.bool,captureClick:j.bool,captureDoubleClick:j.bool,capturePointerMove:j.bool};function cw(){var a=arguments.length>0&& void 0!==arguments[0]?arguments[0]:{},b=(0,i.useContext)(aR),c=(0,i.useRef)(null),d=(0,i.useRef)({props:a,state:{},context:b,containerRef:c}),e=d.current;return e.props=a,e.context=b,(0,i.useEffect)(function(){return function(a){var b=a.containerRef.current,c=a.context.eventManager;if(b&&c){var d={wheel:function(b){var c=a.props;c.captureScroll&&b.stopPropagation(),c.onScroll&&c.onScroll(b,a)},panstart:function(b){var c=a.props;c.captureDrag&&b.stopPropagation(),c.onDragStart&&c.onDragStart(b,a)},anyclick:function(b){var c=a.props;c.captureClick&&b.stopPropagation(),c.onNativeClick&&c.onNativeClick(b,a)},click:function(b){var c=a.props;c.captureClick&&b.stopPropagation(),c.onClick&&c.onClick(b,a)},dblclick:function(b){var c=a.props;c.captureDoubleClick&&b.stopPropagation(),c.onDoubleClick&&c.onDoubleClick(b,a)},pointermove:function(b){var c=a.props;c.capturePointerMove&&b.stopPropagation(),c.onPointerMove&&c.onPointerMove(b,a)}};return c.watch(d,b),function(){c.off(d)}}}(e)},[b.eventManager]),e}function cx(a){var b=a.instance,c=cw(a),d=c.context,e=c.containerRef;return b._context=d,b._containerRef=e,b._render()}var cy=function(a){a6(f,a);var b,c,e=(b=f,c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}(),function(){var a,d=a9(b);if(c){var e=a9(this).constructor;a=Reflect.construct(d,arguments,e)}else a=d.apply(this,arguments);return a8(this,a)});function f(){var a;ak(this,f);for(var b=arguments.length,c=Array(b),d=0;d2&& void 0!==arguments[2]?arguments[2]:"x";if(null===a)return b;var d="x"===c?a.offsetWidth:a.offsetHeight;return cH(b/100*d)/d*100};function cJ(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}var cK=Object.assign({},cB,{className:j.string,longitude:j.number.isRequired,latitude:j.number.isRequired,style:j.object}),cL=Object.assign({},cC,{className:""});function cM(a){var b,c,d,e,f,h,j,l,m=(b=a,d=(c=k((0,i.useState)(null),2))[0],e=c[1],f=k((0,i.useState)(null),2),h=f[0],j=f[1],l=cw(cA(cA({},b),{},{onDragStart:cF})),l.callbacks=b,l.state.dragPos=d,l.state.setDragPos=e,l.state.dragOffset=h,l.state.setDragOffset=j,(0,i.useEffect)(function(){return function(a){var b=a.context.eventManager;if(b&&a.state.dragPos){var c={panmove:function(b){return function(a,b){var c=b.props,d=b.callbacks,e=b.state,f=b.context;a.stopPropagation();var g=cD(a);e.setDragPos(g);var h=e.dragOffset;if(d.onDrag&&h){var i=Object.assign({},a);i.lngLat=cE(g,h,c,f),d.onDrag(i)}}(b,a)},panend:function(b){return function(a,b){var c=b.props,d=b.callbacks,e=b.state,f=b.context;a.stopPropagation();var g=e.dragPos,h=e.dragOffset;if(e.setDragPos(null),e.setDragOffset(null),d.onDragEnd&&g&&h){var i=Object.assign({},a);i.lngLat=cE(g,h,c,f),d.onDragEnd(i)}}(b,a)},pancancel:function(b){var c,d;return c=b,d=a.state,void(c.stopPropagation(),d.setDragPos(null),d.setDragOffset(null))}};return b.watch(c),function(){b.off(c)}}}(l)},[l.context.eventManager,Boolean(d)]),l),n=m.state,o=m.containerRef,p=a.children,q=a.className,r=a.draggable,s=a.style,t=n.dragPos,u=function(a){var b=a.props,c=a.state,d=a.context,e=b.longitude,f=b.latitude,g=b.offsetLeft,h=b.offsetTop,i=c.dragPos,j=c.dragOffset,l=d.viewport,m=d.map;if(i&&j)return[i[0]+j[0],i[1]+j[1],];var n=aT(m,{longitude:e,latitude:f}),o=l.project([e,f,n,]),p=k(o,2),q=p[0],r=p[1];return[q+=g,r+=h]}(m),v=k(u,2),w=v[0],x=v[1],y="translate(".concat(cH(w),"px, ").concat(cH(x),"px)"),z=r?t?"grabbing":"grab":"auto",A=(0,i.useMemo)(function(){var a=function(a){for(var b=1;b0){var q=m,r=p;for(m=0;m<=1;m+=.5)o=(n=c-m*g)+g,p=Math.max(0,j-n)+Math.max(0,o-e+j),p0){var w=l,x=v;for(l=0;l<=1;l+=s)u=(t=b-l*f)+f,v=Math.max(0,j-t)+Math.max(0,u-d+j),v1||I< -1||G<0||G>B.width||H<0||H>B.height?P.display="none":P.zIndex=Math.floor((1-I)/2*1e5)),P),T=(0,i.useCallback)(function(a){c.props.onClose();var b=c.context.eventManager;b&&b.once("click",function(a){return a.stopPropagation()},a.target)},[]);return i.createElement("div",{className:"mapboxgl-popup mapboxgl-popup-anchor-".concat(R," ").concat(j),style:S,ref:e},i.createElement("div",{key:"tip",className:"mapboxgl-popup-tip",style:{borderWidth:n}}),i.createElement("div",{key:"content",ref:b,className:"mapboxgl-popup-content"},o&&i.createElement("button",{key:"close-button",className:"mapboxgl-popup-close-button",type:"button",onClick:T},"\xd7"),p))}function cS(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}cR.propTypes=cP,cR.defaultProps=cQ,i.memo(cR);var cT=Object.assign({},cv,{toggleLabel:j.string,className:j.string,style:j.object,compact:j.bool,customAttribution:j.oneOfType([j.string,j.arrayOf(j.string),])}),cU=Object.assign({},cu,{className:"",toggleLabel:"Toggle Attribution"});function cV(a){var b=cw(a),c=b.context,d=b.containerRef,e=(0,i.useRef)(null),f=k((0,i.useState)(!1),2),h=f[0],j=f[1];(0,i.useEffect)(function(){var b,f,g,h,i,j;return c.map&&(b=(f={customAttribution:a.customAttribution},g=c.map,h=d.current,i=e.current,(j=new(aB()).AttributionControl(f))._map=g,j._container=h,j._innerContainer=i,j._updateAttributions(),j._updateEditLink(),g.on("styledata",j._updateData),g.on("sourcedata",j._updateData),j)),function(){var a;return b&&void((a=b)._map.off("styledata",a._updateData),a._map.off("sourcedata",a._updateData))}},[c.map]);var l=void 0===a.compact?c.viewport.width<=640:a.compact;(0,i.useEffect)(function(){!l&&h&&j(!1)},[l]);var m=(0,i.useCallback)(function(){return j(function(a){return!a})},[]),n=(0,i.useMemo)(function(){return function(a){for(var b=1;bg)return 1}return 0}(b.map.version,"1.6.0")>=0?2:1:2},[b.map]),d=b.viewport.bearing,e={transform:"rotate(".concat(-d,"deg)")},2===c?i.createElement("span",{className:"mapboxgl-ctrl-icon","aria-hidden":"true",style:e}):i.createElement("span",{className:"mapboxgl-ctrl-compass-arrow",style:e})))))}function da(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}c9.propTypes=c5,c9.defaultProps=c6,i.memo(c9);var db=Object.assign({},cv,{className:j.string,style:j.object,maxWidth:j.number,unit:j.oneOf(["imperial","metric","nautical"])}),dc=Object.assign({},cu,{className:"",maxWidth:100,unit:"metric"});function dd(a){var b=cw(a),c=b.context,d=b.containerRef,e=k((0,i.useState)(null),2),f=e[0],h=e[1];(0,i.useEffect)(function(){if(c.map){var a=new(aB()).ScaleControl;a._map=c.map,a._container=d.current,h(a)}},[c.map]),f&&(f.options=a,f._onMove());var j=(0,i.useMemo)(function(){return function(a){for(var b=1;b\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",f=e.console&&(e.console.warn||e.console.log);return f&&f.call(e.console,d,c),a.apply(this,arguments)}}i="function"!=typeof Object.assign?function(a){if(a===h||null===a)throw TypeError("Cannot convert undefined or null to object");for(var b=Object(a),c=1;c -1}function C(a){return a.trim().split(/\s+/g)}function D(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;dD(e,g)&&d.push(a[f]),e[f]=g,f++}return c&&(d=b?d.sort(function(a,c){return a[b]>c[b]}):d.sort()),d}function G(a,b){for(var c,d,e=b[0].toUpperCase()+b.slice(1),f=0;f1&&!c.firstMultiple?c.firstMultiple=V(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=W(d);b.timeStamp=n(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=$(h,i),b.distance=Z(h,i),T(c,b),b.offsetDirection=Y(b.deltaX,b.deltaY);var j=X(b.deltaTime,b.deltaX,b.deltaY);b.overallVelocityX=j.x,b.overallVelocityY=j.y,b.overallVelocity=m(j.x)>m(j.y)?j.x:j.y,b.scale=g?aa(g.pointers,d):1,b.rotation=g?_(g.pointers,d):0,b.maxPointers=c.prevInput?b.pointers.length>c.prevInput.maxPointers?b.pointers.length:c.prevInput.maxPointers:b.pointers.length,U(c,b);var k=a.element;A(b.srcEvent.target,k)&&(k=b.srcEvent.target),b.target=k}function T(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};(1===b.eventType||4===f.eventType)&&(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function U(a,b){var c,d,e,f,g=a.lastInterval||b,i=b.timeStamp-g.timeStamp;if(8!=b.eventType&&(i>25||h===g.velocity)){var j=b.deltaX-g.deltaX,k=b.deltaY-g.deltaY,l=X(i,j,k);d=l.x,e=l.y,c=m(l.x)>m(l.y)?l.x:l.y,f=Y(j,k),a.lastInterval=b}else c=g.velocity,d=g.velocityX,e=g.velocityY,f=g.direction;b.velocity=c,b.velocityX=d,b.velocityY=e,b.direction=f}function V(a){for(var b=[],c=0;c=m(b)?a<0?2:4:b<0?8:16}function Z(a,b,c){c||(c=O);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function $(a,b,c){c||(c=O);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function _(a,b){return $(b[1],b[0],P)+$(a[1],a[0],P)}function aa(a,b){return Z(b[0],b[1],P)/Z(a[0],a[1],P)}Q.prototype={handler:function(){},init:function(){this.evEl&&y(this.element,this.evEl,this.domHandler),this.evTarget&&y(this.target,this.evTarget,this.domHandler),this.evWin&&y(I(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&z(this.element,this.evEl,this.domHandler),this.evTarget&&z(this.target,this.evTarget,this.domHandler),this.evWin&&z(I(this.element),this.evWin,this.domHandler)}};var ab={mousedown:1,mousemove:2,mouseup:4};function ac(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,Q.apply(this,arguments)}u(ac,Q,{handler:function(a){var b=ab[a.type];1&b&&0===a.button&&(this.pressed=!0),2&b&&1!==a.which&&(b=4),this.pressed&&(4&b&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[a],changedPointers:[a],pointerType:N,srcEvent:a}))}});var ad={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ae={2:M,3:"pen",4:N,5:"kinect"},af="pointerdown",ag="pointermove pointerup pointercancel";function ah(){this.evEl=af,this.evWin=ag,Q.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}e.MSPointerEvent&&!e.PointerEvent&&(af="MSPointerDown",ag="MSPointerMove MSPointerUp MSPointerCancel"),u(ah,Q,{handler:function(a){var b=this.store,c=!1,d=ad[a.type.toLowerCase().replace("ms","")],e=ae[a.pointerType]||a.pointerType,f=D(b,a.pointerId,"pointerId");1&d&&(0===a.button||e==M)?f<0&&(b.push(a),f=b.length-1):12&d&&(c=!0),!(f<0)&&(b[f]=a,this.callback(this.manager,d,{pointers:b,changedPointers:[a],pointerType:e,srcEvent:a}),c&&b.splice(f,1))}});var ai={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function aj(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,Q.apply(this,arguments)}function ak(a,b){var c=E(a.touches),d=E(a.changedTouches);return 12&b&&(c=F(c.concat(d),"identifier",!0)),[c,d]}u(aj,Q,{handler:function(a){var b=ai[a.type];if(1===b&&(this.started=!0),this.started){var c=ak.call(this,a,b);12&b&&c[0].length-c[1].length==0&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:M,srcEvent:a})}}});var al={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function am(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},Q.apply(this,arguments)}function an(a,b){var c=E(a.touches),d=this.targetIds;if(3&b&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=E(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return A(a.target,i)}),1===b)for(e=0;e -1&&d.splice(a,1)},2500)}}function ar(a){for(var b=a.srcEvent.clientX,c=a.srcEvent.clientY,d=0;d -1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){var b=this,c=this.state;function d(c){b.manager.emit(c,a)}c<8&&d(b.options.event+aD(c)),d(b.options.event),a.additionalEvent&&d(a.additionalEvent),c>=8&&d(b.options.event+aD(c))},tryEmit:function(a){if(this.canEmit())return this.emit(a);this.state=32},canEmit:function(){for(var a=0;ab.threshold&&e&b.direction},attrTest:function(a){return aG.prototype.attrTest.call(this,a)&&(2&this.state|| !(2&this.state)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=aE(a.direction);b&&(a.additionalEvent=this.options.event+b),this._super.emit.call(this,a)}}),u(aI,aG,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ax]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||2&this.state)},emit:function(a){if(1!==a.scale){var b=a.scale<1?"in":"out";a.additionalEvent=this.options.event+b}this._super.emit.call(this,a)}}),u(aJ,aC,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[av]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distanceb.time;if(this._input=a,d&&c&&(!(12&a.eventType)||e)){if(1&a.eventType)this.reset(),this._timer=o(function(){this.state=8,this.tryEmit()},b.time,this);else if(4&a.eventType)return 8}else this.reset();return 32},reset:function(){clearTimeout(this._timer)},emit:function(a){8===this.state&&(a&&4&a.eventType?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=n(),this.manager.emit(this.options.event,this._input)))}}),u(aK,aG,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ax]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||2&this.state)}}),u(aL,aG,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return aH.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return 30&c?b=a.overallVelocity:6&c?b=a.overallVelocityX:24&c&&(b=a.overallVelocityY),this._super.attrTest.call(this,a)&&c&a.offsetDirection&&a.distance>this.options.threshold&&a.maxPointers==this.options.pointers&&m(b)>this.options.velocity&&4&a.eventType},emit:function(a){var b=aE(a.offsetDirection);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),u(aM,aC,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[aw]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance1)for(var c=1;ca.length)&&(b=a.length);for(var c=0,d=Array(b);cc?c:a}Math.hypot||(Math.hypot=function(){for(var a=0,b=arguments.length;b--;)a+=arguments[b]*arguments[b];return Math.sqrt(a)}),ab=new l(4),l!=Float32Array&&(ab[0]=0,ab[1]=0,ab[2]=0,ab[3]=0);const r=Math.log2||function(a){return Math.log(a)*Math.LOG2E};function s(a,b,c){var d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],i=b[5],j=b[6],k=b[7],l=b[8],m=b[9],n=b[10],o=b[11],p=b[12],q=b[13],r=b[14],s=b[15],t=c[0],u=c[1],v=c[2],w=c[3];return a[0]=t*d+u*h+v*l+w*p,a[1]=t*e+u*i+v*m+w*q,a[2]=t*f+u*j+v*n+w*r,a[3]=t*g+u*k+v*o+w*s,t=c[4],u=c[5],v=c[6],w=c[7],a[4]=t*d+u*h+v*l+w*p,a[5]=t*e+u*i+v*m+w*q,a[6]=t*f+u*j+v*n+w*r,a[7]=t*g+u*k+v*o+w*s,t=c[8],u=c[9],v=c[10],w=c[11],a[8]=t*d+u*h+v*l+w*p,a[9]=t*e+u*i+v*m+w*q,a[10]=t*f+u*j+v*n+w*r,a[11]=t*g+u*k+v*o+w*s,t=c[12],u=c[13],v=c[14],w=c[15],a[12]=t*d+u*h+v*l+w*p,a[13]=t*e+u*i+v*m+w*q,a[14]=t*f+u*j+v*n+w*r,a[15]=t*g+u*k+v*o+w*s,a}function t(a,b,c){var d,e,f,g,h,i,j,k,l,m,n,o,p=c[0],q=c[1],r=c[2];return b===a?(a[12]=b[0]*p+b[4]*q+b[8]*r+b[12],a[13]=b[1]*p+b[5]*q+b[9]*r+b[13],a[14]=b[2]*p+b[6]*q+b[10]*r+b[14],a[15]=b[3]*p+b[7]*q+b[11]*r+b[15]):(d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],i=b[5],j=b[6],k=b[7],l=b[8],m=b[9],n=b[10],o=b[11],a[0]=d,a[1]=e,a[2]=f,a[3]=g,a[4]=h,a[5]=i,a[6]=j,a[7]=k,a[8]=l,a[9]=m,a[10]=n,a[11]=o,a[12]=d*p+h*q+l*r+b[12],a[13]=e*p+i*q+m*r+b[13],a[14]=f*p+j*q+n*r+b[14],a[15]=g*p+k*q+o*r+b[15]),a}function u(a,b,c){var d=c[0],e=c[1],f=c[2];return a[0]=b[0]*d,a[1]=b[1]*d,a[2]=b[2]*d,a[3]=b[3]*d,a[4]=b[4]*e,a[5]=b[5]*e,a[6]=b[6]*e,a[7]=b[7]*e,a[8]=b[8]*f,a[9]=b[9]*f,a[10]=b[10]*f,a[11]=b[11]*f,a[12]=b[12],a[13]=b[13],a[14]=b[14],a[15]=b[15],a}function v(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5],i=a[6],j=a[7],k=a[8],l=a[9],m=a[10],n=a[11],o=a[12],p=a[13],q=a[14],r=a[15],s=b[0],t=b[1],u=b[2],v=b[3],w=b[4],x=b[5],y=b[6],z=b[7],A=b[8],B=b[9],C=b[10],D=b[11],E=b[12],F=b[13],G=b[14],H=b[15];return Math.abs(c-s)<=1e-6*Math.max(1,Math.abs(c),Math.abs(s))&&Math.abs(d-t)<=1e-6*Math.max(1,Math.abs(d),Math.abs(t))&&Math.abs(e-u)<=1e-6*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(f-v)<=1e-6*Math.max(1,Math.abs(f),Math.abs(v))&&Math.abs(g-w)<=1e-6*Math.max(1,Math.abs(g),Math.abs(w))&&Math.abs(h-x)<=1e-6*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(i-y)<=1e-6*Math.max(1,Math.abs(i),Math.abs(y))&&Math.abs(j-z)<=1e-6*Math.max(1,Math.abs(j),Math.abs(z))&&Math.abs(k-A)<=1e-6*Math.max(1,Math.abs(k),Math.abs(A))&&Math.abs(l-B)<=1e-6*Math.max(1,Math.abs(l),Math.abs(B))&&Math.abs(m-C)<=1e-6*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(n-D)<=1e-6*Math.max(1,Math.abs(n),Math.abs(D))&&Math.abs(o-E)<=1e-6*Math.max(1,Math.abs(o),Math.abs(E))&&Math.abs(p-F)<=1e-6*Math.max(1,Math.abs(p),Math.abs(F))&&Math.abs(q-G)<=1e-6*Math.max(1,Math.abs(q),Math.abs(G))&&Math.abs(r-H)<=1e-6*Math.max(1,Math.abs(r),Math.abs(H))}function w(a,b,c){return a[0]=b[0]+c[0],a[1]=b[1]+c[1],a}function x(a,b,c,d){var e=b[0],f=b[1];return a[0]=e+d*(c[0]-e),a[1]=f+d*(c[1]-f),a}function y(a,b){if(!a)throw Error(b||"@math.gl/web-mercator: assertion failed.")}ac=new l(2),l!=Float32Array&&(ac[0]=0,ac[1]=0),ad=new l(3),l!=Float32Array&&(ad[0]=0,ad[1]=0,ad[2]=0);const z=Math.PI,A=z/4,B=z/180,C=180/z;function D(a){return Math.pow(2,a)}function E([a,b]){return y(Number.isFinite(a)),y(Number.isFinite(b)&&b>= -90&&b<=90,"invalid latitude"),[512*(a*B+z)/(2*z),512*(z+Math.log(Math.tan(A+.5*(b*B))))/(2*z)]}function F([a,b]){return[(a/512*(2*z)-z)*C,2*(Math.atan(Math.exp(b/512*(2*z)-z))-A)*C,]}function G(a){return 2*Math.atan(.5/a)*C}function H(a){return .5/Math.tan(.5*a*B)}function I(a,b,c=0){const[d,e,f]=a;if(y(Number.isFinite(d)&&Number.isFinite(e),"invalid pixel coordinate"),Number.isFinite(f)){const g=n(b,[d,e,f,1,]);return g}const h=n(b,[d,e,0,1,]),i=n(b,[d,e,1,1,]),j=h[2],k=i[2];return x([],h,i,j===k?0:((c||0)-j)/(k-j))}const J=Math.PI/180;function K(a,b,c){const{pixelUnprojectionMatrix:d}=a,e=n(d,[b,0,1,1,]),f=n(d,[b,a.height,1,1,]),g=c*a.distanceScales.unitsPerMeter[2],h=(g-e[2])/(f[2]-e[2]),i=x([],e,f,h),j=F(i);return j[2]=c,j}class L{constructor({width:a,height:b,latitude:c=0,longitude:d=0,zoom:e=0,pitch:f=0,bearing:g=0,altitude:h=null,fovy:i=null,position:j=null,nearZMultiplier:k=.02,farZMultiplier:l=1.01}={width:1,height:1}){a=a||1,b=b||1,null===i&&null===h?i=G(h=1.5):null===i?i=G(h):null===h&&(h=H(i));const n=D(e);h=Math.max(.75,h);const o=function({latitude:a,longitude:b,highPrecision:c=!1}){y(Number.isFinite(a)&&Number.isFinite(b));const d={},e=Math.cos(a*B),f=1.4222222222222223/e,g=12790407194604047e-21/e;if(d.unitsPerMeter=[g,g,g,],d.metersPerUnit=[1/g,1/g,1/g,],d.unitsPerDegree=[1.4222222222222223,f,g,],d.degreesPerUnit=[.703125,1/f,1/g,],c){const h=B*Math.tan(a*B)/e,i=1.4222222222222223*h/2,j=12790407194604047e-21*h,k=j/f*g;d.unitsPerDegree2=[0,i,j,],d.unitsPerMeter2=[k,0,k,]}return d}({longitude:d,latitude:c}),p=E([d,c]);if(p[2]=0,j){var q,r,s,v,w,x;v=p,w=p,x=(q=[],r=j,s=o.unitsPerMeter,q[0]=r[0]*s[0],q[1]=r[1]*s[1],q[2]=r[2]*s[2],q),v[0]=w[0]+x[0],v[1]=w[1]+x[1],v[2]=w[2]+x[2]}this.projectionMatrix=function({width:a,height:b,pitch:c,altitude:d,fovy:e,nearZMultiplier:f,farZMultiplier:g}){var h,i,j,k,l,m,n;const{fov:o,aspect:p,near:q,far:r}=function({width:a,height:b,fovy:c=G(1.5),altitude:d,pitch:e=0,nearZMultiplier:f=1,farZMultiplier:g=1}){void 0!==d&&(c=G(d));const h=.5*c*B,i=H(c),j=e*B;return{fov:2*h,aspect:a/b,focalDistance:i,near:f,far:(Math.sin(j)*(Math.sin(h)*i/Math.sin(Math.min(Math.max(Math.PI/2-j-h,.01),Math.PI-.01)))+i)*g}}({width:a,height:b,altitude:d,fovy:e,pitch:c,nearZMultiplier:f,farZMultiplier:g}),s=(h=[],i=o,j=p,k=q,l=r,n=1/Math.tan(i/2),h[0]=n/j,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=n,h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[11]=-1,h[12]=0,h[13]=0,h[15]=0,null!=l&&l!==1/0?(m=1/(k-l),h[10]=(l+k)*m,h[14]=2*l*k*m):(h[10]=-1,h[14]=-2*k),h);return s}({width:a,height:b,pitch:f,fovy:i,nearZMultiplier:k,farZMultiplier:l}),this.viewMatrix=function({height:a,pitch:b,bearing:c,altitude:d,scale:e,center:f=null}){var g,h,i,j,k,l,n,o,p,q,r,s,v,w,x,y,z,A,C,D,E,F,G,H,I,J,K,L;const M=m();return t(M,M,[0,0,-d]),g=M,h=M,i=-b*B,j=Math.sin(i),k=Math.cos(i),l=h[4],n=h[5],o=h[6],p=h[7],q=h[8],r=h[9],s=h[10],v=h[11],h!==g&&(g[0]=h[0],g[1]=h[1],g[2]=h[2],g[3]=h[3],g[12]=h[12],g[13]=h[13],g[14]=h[14],g[15]=h[15]),g[4]=l*k+q*j,g[5]=n*k+r*j,g[6]=o*k+s*j,g[7]=p*k+v*j,g[8]=q*k-l*j,g[9]=r*k-n*j,g[10]=s*k-o*j,g[11]=v*k-p*j,w=M,x=M,y=c*B,z=Math.sin(y),A=Math.cos(y),C=x[0],D=x[1],E=x[2],F=x[3],G=x[4],H=x[5],I=x[6],J=x[7],x!==w&&(w[8]=x[8],w[9]=x[9],w[10]=x[10],w[11]=x[11],w[12]=x[12],w[13]=x[13],w[14]=x[14],w[15]=x[15]),w[0]=C*A+G*z,w[1]=D*A+H*z,w[2]=E*A+I*z,w[3]=F*A+J*z,w[4]=G*A-C*z,w[5]=H*A-D*z,w[6]=I*A-E*z,w[7]=J*A-F*z,u(M,M,[e/=a,e,e]),f&&t(M,M,(K=[],L=f,K[0]=-L[0],K[1]=-L[1],K[2]=-L[2],K)),M}({height:b,scale:n,center:p,pitch:f,bearing:g,altitude:h}),this.width=a,this.height=b,this.scale=n,this.latitude=c,this.longitude=d,this.zoom=e,this.pitch=f,this.bearing=g,this.altitude=h,this.fovy=i,this.center=p,this.meterOffset=j||[0,0,0],this.distanceScales=o,this._initMatrices(),this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),Object.freeze(this)}_initMatrices(){var a,b,c,d,e,f,g,h,i,j,k,l,n,o,p,q,r,v,w,x,y,z,A,B,C,D,E,F,G,H,I;const{width:J,height:K,projectionMatrix:L,viewMatrix:M}=this,N=m();s(N,N,L),s(N,N,M),this.viewProjectionMatrix=N;const O=m();u(O,O,[J/2,-K/2,1]),t(O,O,[1,-1,0]),s(O,O,N);const P=(a=m(),c=(b=O)[0],d=b[1],e=b[2],f=b[3],g=b[4],h=b[5],i=b[6],j=b[7],k=b[8],l=b[9],n=b[10],o=b[11],p=b[12],q=b[13],r=b[14],v=b[15],w=c*h-d*g,x=c*i-e*g,y=c*j-f*g,z=d*i-e*h,A=d*j-f*h,B=e*j-f*i,C=k*q-l*p,D=k*r-n*p,E=k*v-o*p,F=l*r-n*q,G=l*v-o*q,H=n*v-o*r,I=w*H-x*G+y*F+z*E-A*D+B*C,I?(I=1/I,a[0]=(h*H-i*G+j*F)*I,a[1]=(e*G-d*H-f*F)*I,a[2]=(q*B-r*A+v*z)*I,a[3]=(n*A-l*B-o*z)*I,a[4]=(i*E-g*H-j*D)*I,a[5]=(c*H-e*E+f*D)*I,a[6]=(r*y-p*B-v*x)*I,a[7]=(k*B-n*y+o*x)*I,a[8]=(g*G-h*E+j*C)*I,a[9]=(d*E-c*G-f*C)*I,a[10]=(p*A-q*y+v*w)*I,a[11]=(l*y-k*A-o*w)*I,a[12]=(h*D-g*F-i*C)*I,a[13]=(c*F-d*D+e*C)*I,a[14]=(q*x-p*z-r*w)*I,a[15]=(k*z-l*x+n*w)*I,a):null);if(!P)throw Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=O,this.pixelUnprojectionMatrix=P}equals(a){return a instanceof L&&a.width===this.width&&a.height===this.height&&v(a.projectionMatrix,this.projectionMatrix)&&v(a.viewMatrix,this.viewMatrix)}project(a,{topLeft:b=!0}={}){const c=this.projectPosition(a),d=function(a,b){const[c,d,e=0]=a;return y(Number.isFinite(c)&&Number.isFinite(d)&&Number.isFinite(e)),n(b,[c,d,e,1])}(c,this.pixelProjectionMatrix),[e,f]=d,g=b?f:this.height-f;return 2===a.length?[e,g]:[e,g,d[2]]}unproject(a,{topLeft:b=!0,targetZ:c}={}){const[d,e,f]=a,g=b?e:this.height-e,h=c&&c*this.distanceScales.unitsPerMeter[2],i=I([d,g,f],this.pixelUnprojectionMatrix,h),[j,k,l]=this.unprojectPosition(i);return Number.isFinite(f)?[j,k,l]:Number.isFinite(c)?[j,k,c]:[j,k]}projectPosition(a){const[b,c]=E(a),d=(a[2]||0)*this.distanceScales.unitsPerMeter[2];return[b,c,d]}unprojectPosition(a){const[b,c]=F(a),d=(a[2]||0)*this.distanceScales.metersPerUnit[2];return[b,c,d]}projectFlat(a){return E(a)}unprojectFlat(a){return F(a)}getMapCenterByLngLatPosition({lngLat:a,pos:b}){var c,d;const e=I(b,this.pixelUnprojectionMatrix),f=E(a),g=w([],f,(c=[],d=e,c[0]=-d[0],c[1]=-d[1],c)),h=w([],this.center,g);return F(h)}getLocationAtPoint({lngLat:a,pos:b}){return this.getMapCenterByLngLatPosition({lngLat:a,pos:b})}fitBounds(a,b={}){const{width:c,height:d}=this,{longitude:e,latitude:f,zoom:g}=function({width:a,height:b,bounds:c,minExtent:d=0,maxZoom:e=24,padding:f=0,offset:g=[0,0]}){const[[h,i],[j,k]]=c;if(Number.isFinite(f)){const l=f;f={top:l,bottom:l,left:l,right:l}}else y(Number.isFinite(f.top)&&Number.isFinite(f.bottom)&&Number.isFinite(f.left)&&Number.isFinite(f.right));const m=E([h,q(k,-85.051129,85.051129),]),n=E([j,q(i,-85.051129,85.051129),]),o=[Math.max(Math.abs(n[0]-m[0]),d),Math.max(Math.abs(n[1]-m[1]),d),],p=[a-f.left-f.right-2*Math.abs(g[0]),b-f.top-f.bottom-2*Math.abs(g[1]),];y(p[0]>0&&p[1]>0);const s=p[0]/o[0],t=p[1]/o[1],u=(f.right-f.left)/2/s,v=(f.bottom-f.top)/2/t,w=[(n[0]+m[0])/2+u,(n[1]+m[1])/2+v,],x=F(w),z=Math.min(e,r(Math.abs(Math.min(s,t))));return y(Number.isFinite(z)),{longitude:x[0],latitude:x[1],zoom:z}}(Object.assign({width:c,height:d,bounds:a},b));return new L({width:c,height:d,longitude:e,latitude:f,zoom:g})}getBounds(a){const b=this.getBoundingRegion(a),c=Math.min(...b.map(a=>a[0])),d=Math.max(...b.map(a=>a[0])),e=Math.min(...b.map(a=>a[1])),f=Math.max(...b.map(a=>a[1]));return[[c,e],[d,f],]}getBoundingRegion(a={}){return function(a,b=0){const{width:c,height:d,unproject:e}=a,f={targetZ:b},g=e([0,d],f),h=e([c,d],f);let i,j;const k=a.fovy?.5*a.fovy*J:Math.atan(.5/a.altitude),l=(90-a.pitch)*J;return k>l-.01?(i=K(a,0,b),j=K(a,c,b)):(i=e([0,0],f),j=e([c,0],f)),[g,h,j,i]}(this,a.z||0)}}const M=["longitude","latitude","zoom"],N={curve:1.414,speed:1.2};function O(a,b,c){var d,e,f,g,h,i;c=Object.assign({},N,c);const j=c.curve,k=a.zoom,l=[a.longitude,a.latitude],m=D(k),n=b.zoom,o=[b.longitude,b.latitude],p=D(n-k),q=E(l),r=E(o),s=(d=[],e=r,f=q,d[0]=e[0]-f[0],d[1]=e[1]-f[1],d),t=Math.max(a.width,a.height),u=t/p,v=(h=(g=s)[0],i=g[1],Math.hypot(h,i)*m),w=Math.max(v,.01),x=j*j,y=(u*u-t*t+x*x*w*w)/(2*t*x*w),z=(u*u-t*t-x*x*w*w)/(2*u*x*w),A=Math.log(Math.sqrt(y*y+1)-y),B=Math.log(Math.sqrt(z*z+1)-z);return{startZoom:k,startCenterXY:q,uDelta:s,w0:t,u1:v,S:(B-A)/j,rho:j,rho2:x,r0:A,r1:B}}var P=function(){if("undefined"!=typeof Map)return Map;function a(a,b){var c=-1;return a.some(function(a,d){return a[0]===b&&(c=d,!0)}),c}return function(){function b(){this.__entries__=[]}return Object.defineProperty(b.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),b.prototype.get=function(b){var c=a(this.__entries__,b),d=this.__entries__[c];return d&&d[1]},b.prototype.set=function(b,c){var d=a(this.__entries__,b);~d?this.__entries__[d][1]=c:this.__entries__.push([b,c])},b.prototype.delete=function(b){var c=this.__entries__,d=a(c,b);~d&&c.splice(d,1)},b.prototype.has=function(b){return!!~a(this.__entries__,b)},b.prototype.clear=function(){this.__entries__.splice(0)},b.prototype.forEach=function(a,b){void 0===b&&(b=null);for(var c=0,d=this.__entries__;c0},a.prototype.connect_=function(){Q&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),U?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},a.prototype.disconnect_=function(){Q&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},a.prototype.onTransitionEnd_=function(a){var b=a.propertyName,c=void 0===b?"":b;T.some(function(a){return!!~c.indexOf(a)})&&this.refresh()},a.getInstance=function(){return this.instance_||(this.instance_=new a),this.instance_},a.instance_=null,a}(),W=function(a,b){for(var c=0,d=Object.keys(b);c0},a}(),ah="undefined"!=typeof WeakMap?new WeakMap:new P,ai=function(){function a(b){if(!(this instanceof a))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var c=V.getInstance(),d=new ag(b,c,this);ah.set(this,d)}return a}();["observe","unobserve","disconnect"].forEach(function(a){ai.prototype[a]=function(){var b;return(b=ah.get(this))[a].apply(b,arguments)}});var aj=void 0!==R.ResizeObserver?R.ResizeObserver:ai;function ak(a,b){if(!(a instanceof b))throw TypeError("Cannot call a class as a function")}function al(a,b){for(var c=0;c=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(a){throw a},f:d}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var e,f,g=!0,h=!1;return{s:function(){e=a[Symbol.iterator]()},n:function(){var a=e.next();return g=a.done,a},e:function(a){h=!0,f=a},f:function(){try{g||null==e.return||e.return()}finally{if(h)throw f}}}}function ar(a,b){if(a){if("string"==typeof a)return as(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);if("Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c)return Array.from(a);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return as(a,b)}}function as(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c1&& void 0!==arguments[1]?arguments[1]:"component";a.debug&&j.checkPropTypes(aw,a,"prop",b)}var az=function(){function a(b){var c=this;if(ak(this,a),g(this,"props",ax),g(this,"width",0),g(this,"height",0),g(this,"_fireLoadEvent",function(){c.props.onLoad({type:"load",target:c._map})}),g(this,"_handleError",function(a){c.props.onError(a)}),!b.mapboxgl)throw Error("Mapbox not available");this.mapboxgl=b.mapboxgl,a.initialized||(a.initialized=!0,this._checkStyleSheet(this.mapboxgl.version)),this._initialize(b)}return am(a,[{key:"finalize",value:function(){return this._destroy(),this}},{key:"setProps",value:function(a){return this._update(this.props,a),this}},{key:"redraw",value:function(){var a=this._map;a.style&&(a._frame&&(a._frame.cancel(),a._frame=null),a._render())}},{key:"getMap",value:function(){return this._map}},{key:"_reuse",value:function(b){this._map=a.savedMap;var c=this._map.getContainer(),d=b.container;for(d.classList.add("mapboxgl-map");c.childNodes.length>0;)d.appendChild(c.childNodes[0]);this._map._container=d,a.savedMap=null,b.mapStyle&&this._map.setStyle(au(b.mapStyle),{diff:!1}),this._map.isStyleLoaded()?this._fireLoadEvent():this._map.once("styledata",this._fireLoadEvent)}},{key:"_create",value:function(b){if(b.reuseMaps&&a.savedMap)this._reuse(b);else{if(b.gl){var c=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=function(){return HTMLCanvasElement.prototype.getContext=c,b.gl}}var d={container:b.container,center:[0,0],zoom:8,pitch:0,bearing:0,maxZoom:24,style:au(b.mapStyle),interactive:!1,trackResize:!1,attributionControl:b.attributionControl,preserveDrawingBuffer:b.preserveDrawingBuffer};b.transformRequest&&(d.transformRequest=b.transformRequest),this._map=new this.mapboxgl.Map(Object.assign({},d,b.mapOptions)),this._map.once("load",this._fireLoadEvent),this._map.on("error",this._handleError)}return this}},{key:"_destroy",value:function(){this._map&&(this.props.reuseMaps&&!a.savedMap?(a.savedMap=this._map,this._map.off("load",this._fireLoadEvent),this._map.off("error",this._handleError),this._map.off("styledata",this._fireLoadEvent)):this._map.remove(),this._map=null)}},{key:"_initialize",value:function(a){var b=this;a=Object.assign({},ax,a),ay(a,"Mapbox"),this.mapboxgl.accessToken=a.mapboxApiAccessToken||ax.mapboxApiAccessToken,this.mapboxgl.baseApiUrl=a.mapboxApiUrl,this._create(a);var c=a.container;Object.defineProperty(c,"offsetWidth",{configurable:!0,get:function(){return b.width}}),Object.defineProperty(c,"clientWidth",{configurable:!0,get:function(){return b.width}}),Object.defineProperty(c,"offsetHeight",{configurable:!0,get:function(){return b.height}}),Object.defineProperty(c,"clientHeight",{configurable:!0,get:function(){return b.height}});var d=this._map.getCanvas();d&&(d.style.outline="none"),this._updateMapViewport({},a),this._updateMapSize({},a),this.props=a}},{key:"_update",value:function(a,b){if(this._map){ay(b=Object.assign({},this.props,b),"Mapbox");var c=this._updateMapViewport(a,b),d=this._updateMapSize(a,b);this._updateMapStyle(a,b),!b.asyncRender&&(c||d)&&this.redraw(),this.props=b}}},{key:"_updateMapStyle",value:function(a,b){a.mapStyle!==b.mapStyle&&this._map.setStyle(au(b.mapStyle),{diff:!b.preventStyleDiffing})}},{key:"_updateMapSize",value:function(a,b){var c=a.width!==b.width||a.height!==b.height;return c&&(this.width=b.width,this.height=b.height,this._map.resize()),c}},{key:"_updateMapViewport",value:function(a,b){var c=this._getViewState(a),d=this._getViewState(b),e=d.latitude!==c.latitude||d.longitude!==c.longitude||d.zoom!==c.zoom||d.pitch!==c.pitch||d.bearing!==c.bearing||d.altitude!==c.altitude;return e&&(this._map.jumpTo(this._viewStateToMapboxProps(d)),d.altitude!==c.altitude&&(this._map.transform.altitude=d.altitude)),e}},{key:"_getViewState",value:function(a){var b=a.viewState||a,c=b.longitude,d=b.latitude,e=b.zoom,f=b.pitch,g=b.bearing,h=b.altitude;return{longitude:c,latitude:d,zoom:e,pitch:void 0===f?0:f,bearing:void 0===g?0:g,altitude:void 0===h?1.5:h}}},{key:"_checkStyleSheet",value:function(){var a=arguments.length>0&& void 0!==arguments[0]?arguments[0]:"0.47.0";if(void 0!==an)try{var b=an.createElement("div");if(b.className="mapboxgl-map",b.style.display="none",an.body.appendChild(b),!("static"!==window.getComputedStyle(b).position)){var c=an.createElement("link");c.setAttribute("rel","stylesheet"),c.setAttribute("type","text/css"),c.setAttribute("href","https://api.tiles.mapbox.com/mapbox-gl-js/v".concat(a,"/mapbox-gl.css")),an.head.appendChild(c)}}catch(d){}}},{key:"_viewStateToMapboxProps",value:function(a){return{center:[a.longitude,a.latitude,],zoom:a.zoom,bearing:a.bearing,pitch:a.pitch}}},]),a}();g(az,"initialized",!1),g(az,"propTypes",aw),g(az,"defaultProps",ax),g(az,"savedMap",null);var aA=c(6158),aB=c.n(aA);function aC(a){return Array.isArray(a)||ArrayBuffer.isView(a)}function aD(a,b){if(a===b)return!0;if(aC(a)&&aC(b)){if(a.length!==b.length)return!1;for(var c=0;c=Math.abs(a-b)}function aE(a,b,c){return Math.max(b,Math.min(c,a))}function aF(a,b,c){return aC(a)?a.map(function(a,d){return aF(a,b[d],c)}):c*b+(1-c)*a}function aG(a,b){if(!a)throw Error(b||"react-map-gl: assertion failed.")}function aH(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function aI(a){for(var b=1;b0,"`scale` must be a positive number");var e=this._state,f=e.startZoom,g=e.startZoomLngLat;Number.isFinite(f)||(f=this._viewportProps.zoom,g=this._unproject(c)||this._unproject(b)),aG(g,"`startZoomLngLat` prop is required for zoom behavior to calculate where to position the map.");var h=this._calculateNewZoom({scale:d,startZoom:f||0}),i=new L(Object.assign({},this._viewportProps,{zoom:h})),j=i.getMapCenterByLngLatPosition({lngLat:g,pos:b}),l=k(j,2),m=l[0],n=l[1];return this._getUpdatedMapState({zoom:h,longitude:m,latitude:n})}},{key:"zoomEnd",value:function(){return this._getUpdatedMapState({startZoomLngLat:null,startZoom:null})}},{key:"_getUpdatedMapState",value:function(b){return new a(Object.assign({},this._viewportProps,this._state,b))}},{key:"_applyConstraints",value:function(a){var b=a.maxZoom,c=a.minZoom,d=a.zoom;a.zoom=aE(d,c,b);var e=a.maxPitch,f=a.minPitch,g=a.pitch;return a.pitch=aE(g,f,e),Object.assign(a,function({width:a,height:b,longitude:c,latitude:d,zoom:e,pitch:f=0,bearing:g=0}){(c< -180||c>180)&&(c=o(c+180,360)-180),(g< -180||g>180)&&(g=o(g+180,360)-180);const h=r(b/512);if(e<=h)e=h,d=0;else{const i=b/2/Math.pow(2,e),j=F([0,i])[1];if(dk&&(d=k)}}return{width:a,height:b,longitude:c,latitude:d,zoom:e,pitch:f,bearing:g}}(a)),a}},{key:"_unproject",value:function(a){var b=new L(this._viewportProps);return a&&b.unproject(a)}},{key:"_calculateNewLngLat",value:function(a){var b=a.startPanLngLat,c=a.pos,d=new L(this._viewportProps);return d.getMapCenterByLngLatPosition({lngLat:b,pos:c})}},{key:"_calculateNewZoom",value:function(a){var b=a.scale,c=a.startZoom,d=this._viewportProps,e=d.maxZoom,f=d.minZoom;return aE(c+Math.log2(b),f,e)}},{key:"_calculateNewPitchAndBearing",value:function(a){var b=a.deltaScaleX,c=a.deltaScaleY,d=a.startBearing,e=a.startPitch;c=aE(c,-1,1);var f=this._viewportProps,g=f.minPitch,h=f.maxPitch,i=e;return c>0?i=e+c*(h-e):c<0&&(i=e-c*(g-e)),{pitch:i,bearing:d+180*b}}},{key:"_getRotationParams",value:function(a,b){var c=a[0]-b[0],d=a[1]-b[1],e=a[1],f=b[1],g=this._viewportProps,h=g.width,i=g.height,j=0;return d>0?Math.abs(i-f)>5&&(j=d/(f-i)*1.2):d<0&&f>5&&(j=1-e/f),{deltaScaleX:c/h,deltaScaleY:j=Math.min(1,Math.max(-1,j))}}},]),a}();function aM(a){return a[0].toLowerCase()+a.slice(1)}function aN(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function aO(a){for(var b=1;b1&& void 0!==arguments[1]?arguments[1]:{},d=a.current&&a.current.getMap();return d&&d.queryRenderedFeatures(b,c)}}},[]);var q=(0,i.useCallback)(function(a){var b=a.target;b===n.current&&b.scrollTo(0,0)},[]),r=p&&i.createElement(aQ,{value:aV(aV({},o),{},{viewport:o.viewport||aX(aV({map:p,props:a},g)),map:p,container:o.container||m.current})},i.createElement("div",{key:"map-overlays",className:"overlays",ref:n,style:aY,onScroll:q},a.children)),s=a.className,t=a.width,u=a.height,v=a.style,w=a.visibilityConstraints,x=Object.assign({position:"relative"},v,{width:t,height:u}),y=a.visible&&function(a){var b=arguments.length>1&& void 0!==arguments[1]?arguments[1]:aJ;for(var c in b){var d=c.slice(0,3),e=aM(c.slice(3));if("min"===d&&a[e]b[c])return!1}return!0}(a.viewState||a,w),z=Object.assign({},aY,{visibility:y?"inherit":"hidden"});return i.createElement("div",{key:"map-container",ref:m,style:x},i.createElement("div",{key:"map-mapbox",ref:l,style:z,className:s}),r,!d&&!a.disableTokenWarning&&i.createElement(a_,null))});a0.supported=function(){return aB()&&aB().supported()},a0.propTypes=aZ,a0.defaultProps=a$;var a1=a0;function a2(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(a){throw a},f:d}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var e,f,g=!0,h=!1;return{s:function(){e=a[Symbol.iterator]()},n:function(){var a=e.next();return g=a.done,a},e:function(a){h=!0,f=a},f:function(){try{g||null==e.return||e.return()}finally{if(h)throw f}}}}(this.propNames||[]);try{for(d.s();!(c=d.n()).done;){var e=c.value;if(!aD(a[e],b[e]))return!1}}catch(f){d.e(f)}finally{d.f()}return!0}},{key:"initializeProps",value:function(a,b){return{start:a,end:b}}},{key:"interpolateProps",value:function(a,b,c){aG(!1,"interpolateProps is not implemented")}},{key:"getDuration",value:function(a,b){return b.transitionDuration}},]),a}();function a4(a){if(void 0===a)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function a5(a,b){return(a5=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a})(a,b)}function a6(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),b&&a5(a,b)}function a7(a){return(a7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}function a8(a,b){if(b&&("object"===a7(b)||"function"==typeof b))return b;if(void 0!==b)throw TypeError("Derived constructors may only return object or undefined");return a4(a)}function a9(a){return(a9=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(a)}var ba={longitude:1,bearing:1};function bb(a){return Number.isFinite(a)||Array.isArray(a)}function bc(a,b,c){return a in ba&&Math.abs(c-b)>180&&(c=c<0?c+360:c-360),c}function bd(a,b){if("undefined"==typeof Symbol||null==a[Symbol.iterator]){if(Array.isArray(a)||(e=be(a))||b&&a&&"number"==typeof a.length){e&&(a=e);var c=0,d=function(){};return{s:d,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(a){throw a},f:d}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var e,f,g=!0,h=!1;return{s:function(){e=a[Symbol.iterator]()},n:function(){var a=e.next();return g=a.done,a},e:function(a){h=!0,f=a},f:function(){try{g||null==e.return||e.return()}finally{if(h)throw f}}}}function be(a,b){if(a){if("string"==typeof a)return bf(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);if("Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c)return Array.from(a);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return bf(a,b)}}function bf(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(a){throw a},f:d}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var e,f,g=!0,h=!1;return{s:function(){e=a[Symbol.iterator]()},n:function(){var a=e.next();return g=a.done,a},e:function(a){h=!0,f=a},f:function(){try{g||null==e.return||e.return()}finally{if(h)throw f}}}}function bl(a,b){if(a){if("string"==typeof a)return bm(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);if("Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c)return Array.from(a);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return bm(a,b)}}function bm(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c0&& void 0!==arguments[0]?arguments[0]:{};return ak(this,e),g(a4(a=d.call(this)),"propNames",bg),a.props=Object.assign({},bj,b),a}am(e,[{key:"initializeProps",value:function(a,b){var c,d={},e={},f=bd(bh);try{for(f.s();!(c=f.n()).done;){var g=c.value,h=a[g],i=b[g];aG(bb(h)&&bb(i),"".concat(g," must be supplied for transition")),d[g]=h,e[g]=bc(g,h,i)}}catch(j){f.e(j)}finally{f.f()}var k,l=bd(bi);try{for(l.s();!(k=l.n()).done;){var m=k.value,n=a[m]||0,o=b[m]||0;d[m]=n,e[m]=bc(m,n,o)}}catch(p){l.e(p)}finally{l.f()}return{start:d,end:e}}},{key:"interpolateProps",value:function(a,b,c){var d,e=function(a,b,c,d={}){var e,f,g,h;const i={},{startZoom:j,startCenterXY:k,uDelta:l,w0:m,u1:n,S:o,rho:q,rho2:s,r0:t}=O(a,b,d);if(n<.01){for(const u of M){const v=a[u],x=b[u];i[u]=p(v,x,c)}return i}const y=c*o,z=j+(h=1/(Math.cosh(t)/Math.cosh(t+q*y)),r(h)),A=(e=[],f=l,g=m*((Math.cosh(t)*Math.tanh(t+q*y)-Math.sinh(t))/s)/n,e[0]=f[0]*g,e[1]=f[1]*g,e);w(A,A,k);const B=F(A);return i.longitude=B[0],i.latitude=B[1],i.zoom=z,i}(a,b,c,this.props),f=bd(bi);try{for(f.s();!(d=f.n()).done;){var g=d.value;e[g]=aF(a[g],b[g],c)}}catch(h){f.e(h)}finally{f.f()}return e}},{key:"getDuration",value:function(a,b){var c=b.transitionDuration;return"auto"===c&&(c=function(a,b,c={}){c=Object.assign({},N,c);const{screenSpeed:d,speed:e,maxDuration:f}=c,{S:g,rho:h}=O(a,b,c),i=1e3*g;let j;return j=Number.isFinite(d)?i/(d/h):i/e,Number.isFinite(f)&&j>f?0:j}(a,b,this.props)),c}},])}(a3);var bn=["longitude","latitude","zoom","bearing","pitch",],bo=function(a){a6(e,a);var b,c,d=(b=e,c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}(),function(){var a,d=a9(b);if(c){var e=a9(this).constructor;a=Reflect.construct(d,arguments,e)}else a=d.apply(this,arguments);return a8(this,a)});function e(){var a,b=arguments.length>0&& void 0!==arguments[0]?arguments[0]:{};return ak(this,e),a=d.call(this),Array.isArray(b)&&(b={transitionProps:b}),a.propNames=b.transitionProps||bn,b.around&&(a.around=b.around),a}return am(e,[{key:"initializeProps",value:function(a,b){var c={},d={};if(this.around){c.around=this.around;var e=new L(a).unproject(this.around);Object.assign(d,b,{around:new L(b).project(e),aroundLngLat:e})}var f,g=bk(this.propNames);try{for(g.s();!(f=g.n()).done;){var h=f.value,i=a[h],j=b[h];aG(bb(i)&&bb(j),"".concat(h," must be supplied for transition")),c[h]=i,d[h]=bc(h,i,j)}}catch(k){g.e(k)}finally{g.f()}return{start:c,end:d}}},{key:"interpolateProps",value:function(a,b,c){var d,e={},f=bk(this.propNames);try{for(f.s();!(d=f.n()).done;){var g=d.value;e[g]=aF(a[g],b[g],c)}}catch(h){f.e(h)}finally{f.f()}if(b.around){var i=new L(Object.assign({},b,e)).getMapCenterByLngLatPosition({lngLat:b.aroundLngLat,pos:aF(a.around,b.around,c)}),j=k(i,2),l=j[0],m=j[1];e.longitude=l,e.latitude=m}return e}},]),e}(a3),bp=function(){},bq={BREAK:1,SNAP_TO_END:2,IGNORE:3,UPDATE:4},br={transitionDuration:0,transitionEasing:function(a){return a},transitionInterpolator:new bo,transitionInterruption:bq.BREAK,onTransitionStart:bp,onTransitionInterrupt:bp,onTransitionEnd:bp},bs=function(){function a(){var b=this,c=arguments.length>0&& void 0!==arguments[0]?arguments[0]:{};ak(this,a),g(this,"_animationFrame",null),g(this,"_onTransitionFrame",function(){b._animationFrame=requestAnimationFrame(b._onTransitionFrame),b._updateViewport()}),this.props=null,this.onViewportChange=c.onViewportChange||bp,this.onStateChange=c.onStateChange||bp,this.time=c.getTime||Date.now}return am(a,[{key:"getViewportInTransition",value:function(){return this._animationFrame?this.state.propsInTransition:null}},{key:"processViewportChange",value:function(a){var b=this.props;if(this.props=a,!b||this._shouldIgnoreViewportChange(b,a))return!1;if(this._isTransitionEnabled(a)){var c=Object.assign({},b),d=Object.assign({},a);if(this._isTransitionInProgress()&&(b.onTransitionInterrupt(),this.state.interruption===bq.SNAP_TO_END?Object.assign(c,this.state.endProps):Object.assign(c,this.state.propsInTransition),this.state.interruption===bq.UPDATE)){var e,f,g,h=this.time(),i=(h-this.state.startTime)/this.state.duration;d.transitionDuration=this.state.duration-(h-this.state.startTime),d.transitionEasing=(g=(e=this.state.easing)(f=i),function(a){return 1/(1-g)*(e(a*(1-f)+f)-g)}),d.transitionInterpolator=c.transitionInterpolator}return d.onTransitionStart(),this._triggerTransition(c,d),!0}return this._isTransitionInProgress()&&(b.onTransitionInterrupt(),this._endTransition()),!1}},{key:"_isTransitionInProgress",value:function(){return Boolean(this._animationFrame)}},{key:"_isTransitionEnabled",value:function(a){var b=a.transitionDuration,c=a.transitionInterpolator;return(b>0||"auto"===b)&&Boolean(c)}},{key:"_isUpdateDueToCurrentTransition",value:function(a){return!!this.state.propsInTransition&&this.state.interpolator.arePropsEqual(a,this.state.propsInTransition)}},{key:"_shouldIgnoreViewportChange",value:function(a,b){return!a||(this._isTransitionInProgress()?this.state.interruption===bq.IGNORE||this._isUpdateDueToCurrentTransition(b):!this._isTransitionEnabled(b)||b.transitionInterpolator.arePropsEqual(a,b))}},{key:"_triggerTransition",value:function(a,b){aG(this._isTransitionEnabled(b)),this._animationFrame&&cancelAnimationFrame(this._animationFrame);var c=b.transitionInterpolator,d=c.getDuration?c.getDuration(a,b):b.transitionDuration;if(0!==d){var e=b.transitionInterpolator.initializeProps(a,b),f={inTransition:!0,isZooming:a.zoom!==b.zoom,isPanning:a.longitude!==b.longitude||a.latitude!==b.latitude,isRotating:a.bearing!==b.bearing||a.pitch!==b.pitch};this.state={duration:d,easing:b.transitionEasing,interpolator:b.transitionInterpolator,interruption:b.transitionInterruption,startTime:this.time(),startProps:e.start,endProps:e.end,animation:null,propsInTransition:{}},this._onTransitionFrame(),this.onStateChange(f)}}},{key:"_endTransition",value:function(){this._animationFrame&&(cancelAnimationFrame(this._animationFrame),this._animationFrame=null),this.onStateChange({inTransition:!1,isZooming:!1,isPanning:!1,isRotating:!1})}},{key:"_updateViewport",value:function(){var a=this.time(),b=this.state,c=b.startTime,d=b.duration,e=b.easing,f=b.interpolator,g=b.startProps,h=b.endProps,i=!1,j=(a-c)/d;j>=1&&(j=1,i=!0),j=e(j);var k=f.interpolateProps(g,h,j),l=new aL(Object.assign({},this.props,k));this.state.propsInTransition=l.getViewportProps(),this.onViewportChange(this.state.propsInTransition,this.props),i&&(this._endTransition(),this.props.onTransitionEnd())}},]),a}();g(bs,"defaultProps",br);var bt=c(840),bu=c.n(bt);const bv={mousedown:1,mousemove:2,mouseup:4};!function(a){const b=a.prototype.handler;a.prototype.handler=function(a){const c=this.store;a.button>0&&"pointerdown"===a.type&&!function(a,b){for(let c=0;cb.pointerId===a.pointerId)&&c.push(a),b.call(this,a)}}(bu().PointerEventInput),bu().MouseInput.prototype.handler=function(a){let b=bv[a.type];1&b&&a.button>=0&&(this.pressed=!0),2&b&&0===a.which&&(b=4),this.pressed&&(4&b&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[a],changedPointers:[a],pointerType:"mouse",srcEvent:a}))};const bw=bu().Manager;var bx=bu();const by=bx?[[bx.Pan,{event:"tripan",pointers:3,threshold:0,enable:!1},],[bx.Rotate,{enable:!1},],[bx.Pinch,{enable:!1},],[bx.Swipe,{enable:!1},],[bx.Pan,{threshold:0,enable:!1},],[bx.Press,{enable:!1},],[bx.Tap,{event:"doubletap",taps:2,enable:!1},],[bx.Tap,{event:"anytap",enable:!1},],[bx.Tap,{enable:!1},],]:null,bz={tripan:["rotate","pinch","pan"],rotate:["pinch"],pinch:["pan"],pan:["press","doubletap","anytap","tap"],doubletap:["anytap"],anytap:["tap"]},bA={doubletap:["tap"]},bB={pointerdown:"pointerdown",pointermove:"pointermove",pointerup:"pointerup",touchstart:"pointerdown",touchmove:"pointermove",touchend:"pointerup",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup"},bC={KEY_EVENTS:["keydown","keyup"],MOUSE_EVENTS:["mousedown","mousemove","mouseup","mouseover","mouseout","mouseleave",],WHEEL_EVENTS:["wheel","mousewheel"]},bD={tap:"tap",anytap:"anytap",doubletap:"doubletap",press:"press",pinch:"pinch",pinchin:"pinch",pinchout:"pinch",pinchstart:"pinch",pinchmove:"pinch",pinchend:"pinch",pinchcancel:"pinch",rotate:"rotate",rotatestart:"rotate",rotatemove:"rotate",rotateend:"rotate",rotatecancel:"rotate",tripan:"tripan",tripanstart:"tripan",tripanmove:"tripan",tripanup:"tripan",tripandown:"tripan",tripanleft:"tripan",tripanright:"tripan",tripanend:"tripan",tripancancel:"tripan",pan:"pan",panstart:"pan",panmove:"pan",panup:"pan",pandown:"pan",panleft:"pan",panright:"pan",panend:"pan",pancancel:"pan",swipe:"swipe",swipeleft:"swipe",swiperight:"swipe",swipeup:"swipe",swipedown:"swipe"},bE={click:"tap",anyclick:"anytap",dblclick:"doubletap",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup",mouseover:"pointerover",mouseout:"pointerout",mouseleave:"pointerleave"},bF="undefined"!=typeof navigator&&navigator.userAgent?navigator.userAgent.toLowerCase():"",bG="undefined"!=typeof window?window:c.g;void 0!==c.g?c.g:window;let bH=!1;try{const bI={get passive(){return bH=!0,!0}};bG.addEventListener("test",bI,bI),bG.removeEventListener("test",bI,bI)}catch(bJ){}const bK=-1!==bF.indexOf("firefox"),{WHEEL_EVENTS:bL}=bC,bM="wheel";class bN{constructor(a,b,c={}){this.element=a,this.callback=b,this.options=Object.assign({enable:!0},c),this.events=bL.concat(c.events||[]),this.handleEvent=this.handleEvent.bind(this),this.events.forEach(b=>a.addEventListener(b,this.handleEvent,!!bH&&{passive:!1}))}destroy(){this.events.forEach(a=>this.element.removeEventListener(a,this.handleEvent))}enableEventType(a,b){a===bM&&(this.options.enable=b)}handleEvent(a){if(!this.options.enable)return;let b=a.deltaY;bG.WheelEvent&&(bK&&a.deltaMode===bG.WheelEvent.DOM_DELTA_PIXEL&&(b/=bG.devicePixelRatio),a.deltaMode===bG.WheelEvent.DOM_DELTA_LINE&&(b*=40));const c={x:a.clientX,y:a.clientY};0!==b&&b%4.000244140625==0&&(b=Math.floor(b/4.000244140625)),a.shiftKey&&b&&(b*=.25),this._onWheel(a,-b,c)}_onWheel(a,b,c){this.callback({type:bM,center:c,delta:b,srcEvent:a,pointerType:"mouse",target:a.target})}}const{MOUSE_EVENTS:bO}=bC,bP="pointermove",bQ="pointerover",bR="pointerout",bS="pointerleave";class bT{constructor(a,b,c={}){this.element=a,this.callback=b,this.pressed=!1,this.options=Object.assign({enable:!0},c),this.enableMoveEvent=this.options.enable,this.enableLeaveEvent=this.options.enable,this.enableOutEvent=this.options.enable,this.enableOverEvent=this.options.enable,this.events=bO.concat(c.events||[]),this.handleEvent=this.handleEvent.bind(this),this.events.forEach(b=>a.addEventListener(b,this.handleEvent))}destroy(){this.events.forEach(a=>this.element.removeEventListener(a,this.handleEvent))}enableEventType(a,b){a===bP&&(this.enableMoveEvent=b),a===bQ&&(this.enableOverEvent=b),a===bR&&(this.enableOutEvent=b),a===bS&&(this.enableLeaveEvent=b)}handleEvent(a){this.handleOverEvent(a),this.handleOutEvent(a),this.handleLeaveEvent(a),this.handleMoveEvent(a)}handleOverEvent(a){this.enableOverEvent&&"mouseover"===a.type&&this.callback({type:bQ,srcEvent:a,pointerType:"mouse",target:a.target})}handleOutEvent(a){this.enableOutEvent&&"mouseout"===a.type&&this.callback({type:bR,srcEvent:a,pointerType:"mouse",target:a.target})}handleLeaveEvent(a){this.enableLeaveEvent&&"mouseleave"===a.type&&this.callback({type:bS,srcEvent:a,pointerType:"mouse",target:a.target})}handleMoveEvent(a){if(this.enableMoveEvent)switch(a.type){case"mousedown":a.button>=0&&(this.pressed=!0);break;case"mousemove":0===a.which&&(this.pressed=!1),this.pressed||this.callback({type:bP,srcEvent:a,pointerType:"mouse",target:a.target});break;case"mouseup":this.pressed=!1}}}const{KEY_EVENTS:bU}=bC,bV="keydown",bW="keyup";class bX{constructor(a,b,c={}){this.element=a,this.callback=b,this.options=Object.assign({enable:!0},c),this.enableDownEvent=this.options.enable,this.enableUpEvent=this.options.enable,this.events=bU.concat(c.events||[]),this.handleEvent=this.handleEvent.bind(this),a.tabIndex=c.tabIndex||0,a.style.outline="none",this.events.forEach(b=>a.addEventListener(b,this.handleEvent))}destroy(){this.events.forEach(a=>this.element.removeEventListener(a,this.handleEvent))}enableEventType(a,b){a===bV&&(this.enableDownEvent=b),a===bW&&(this.enableUpEvent=b)}handleEvent(a){const b=a.target||a.srcElement;("INPUT"!==b.tagName||"text"!==b.type)&&"TEXTAREA"!==b.tagName&&(this.enableDownEvent&&"keydown"===a.type&&this.callback({type:bV,srcEvent:a,key:a.key,target:a.target}),this.enableUpEvent&&"keyup"===a.type&&this.callback({type:bW,srcEvent:a,key:a.key,target:a.target}))}}const bY="contextmenu";class bZ{constructor(a,b,c={}){this.element=a,this.callback=b,this.options=Object.assign({enable:!0},c),this.handleEvent=this.handleEvent.bind(this),a.addEventListener("contextmenu",this.handleEvent)}destroy(){this.element.removeEventListener("contextmenu",this.handleEvent)}enableEventType(a,b){a===bY&&(this.options.enable=b)}handleEvent(a){this.options.enable&&this.callback({type:bY,center:{x:a.clientX,y:a.clientY},srcEvent:a,pointerType:"mouse",target:a.target})}}const b$={pointerdown:1,pointermove:2,pointerup:4,mousedown:1,mousemove:2,mouseup:4},b_={srcElement:"root",priority:0};class b0{constructor(a){this.eventManager=a,this.handlers=[],this.handlersByElement=new Map,this.handleEvent=this.handleEvent.bind(this),this._active=!1}isEmpty(){return!this._active}add(a,b,c,d=!1,e=!1){const{handlers:f,handlersByElement:g}=this;c&&("object"!=typeof c||c.addEventListener)&&(c={srcElement:c}),c=c?Object.assign({},b_,c):b_;let h=g.get(c.srcElement);h||(h=[],g.set(c.srcElement,h));const i={type:a,handler:b,srcElement:c.srcElement,priority:c.priority};d&&(i.once=!0),e&&(i.passive=!0),f.push(i),this._active=this._active||!i.passive;let j=h.length-1;for(;j>=0&&!(h[j].priority>=i.priority);)j--;h.splice(j+1,0,i)}remove(a,b){const{handlers:c,handlersByElement:d}=this;for(let e=c.length-1;e>=0;e--){const f=c[e];if(f.type===a&&f.handler===b){c.splice(e,1);const g=d.get(f.srcElement);g.splice(g.indexOf(f),1),0===g.length&&d.delete(f.srcElement)}}this._active=c.some(a=>!a.passive)}handleEvent(a){if(this.isEmpty())return;const b=this._normalizeEvent(a);let c=a.srcEvent.target;for(;c&&c!==b.rootElement;){if(this._emit(b,c),b.handled)return;c=c.parentNode}this._emit(b,"root")}_emit(a,b){const c=this.handlersByElement.get(b);if(c){let d=!1;const e=()=>{a.handled=!0},f=()=>{a.handled=!0,d=!0},g=[];for(let h=0;h{const b=this.manager.get(a);b&&bz[a].forEach(a=>{b.recognizeWith(a)})}),b.recognizerOptions){const e=this.manager.get(d);if(e){const f=b.recognizerOptions[d];delete f.enable,e.set(f)}}for(const[g,h]of(this.wheelInput=new bN(a,this._onOtherEvent,{enable:!1}),this.moveInput=new bT(a,this._onOtherEvent,{enable:!1}),this.keyInput=new bX(a,this._onOtherEvent,{enable:!1,tabIndex:b.tabIndex}),this.contextmenuInput=new bZ(a,this._onOtherEvent,{enable:!1}),this.events))h.isEmpty()||(this._toggleRecognizer(h.recognizerName,!0),this.manager.on(g,h.handleEvent))}destroy(){this.element&&(this.wheelInput.destroy(),this.moveInput.destroy(),this.keyInput.destroy(),this.contextmenuInput.destroy(),this.manager.destroy(),this.wheelInput=null,this.moveInput=null,this.keyInput=null,this.contextmenuInput=null,this.manager=null,this.element=null)}on(a,b,c){this._addEventHandler(a,b,c,!1)}once(a,b,c){this._addEventHandler(a,b,c,!0)}watch(a,b,c){this._addEventHandler(a,b,c,!1,!0)}off(a,b){this._removeEventHandler(a,b)}_toggleRecognizer(a,b){const{manager:c}=this;if(!c)return;const d=c.get(a);if(d&&d.options.enable!==b){d.set({enable:b});const e=bA[a];e&&!this.options.recognizers&&e.forEach(e=>{const f=c.get(e);b?(f.requireFailure(a),d.dropRequireFailure(e)):f.dropRequireFailure(a)})}this.wheelInput.enableEventType(a,b),this.moveInput.enableEventType(a,b),this.keyInput.enableEventType(a,b),this.contextmenuInput.enableEventType(a,b)}_addEventHandler(a,b,c,d,e){if("string"!=typeof a){for(const f in c=b,a)this._addEventHandler(f,a[f],c,d,e);return}const{manager:g,events:h}=this,i=bE[a]||a;let j=h.get(i);!j&&(j=new b0(this),h.set(i,j),j.recognizerName=bD[i]||i,g&&g.on(i,j.handleEvent)),j.add(a,b,c,d,e),j.isEmpty()||this._toggleRecognizer(j.recognizerName,!0)}_removeEventHandler(a,b){if("string"!=typeof a){for(const c in a)this._removeEventHandler(c,a[c]);return}const{events:d}=this,e=bE[a]||a,f=d.get(e);if(f&&(f.remove(a,b),f.isEmpty())){const{recognizerName:g}=f;let h=!1;for(const i of d.values())if(i.recognizerName===g&&!i.isEmpty()){h=!0;break}h||this._toggleRecognizer(g,!1)}}_onBasicInput(a){const{srcEvent:b}=a,c=bB[b.type];c&&this.manager.emit(c,a)}_onOtherEvent(a){this.manager.emit(a.type,a)}}function b2(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function b3(a){for(var b=1;b0),g=f&&!this.state.isHovering,h=!f&&this.state.isHovering;(d||g)&&(a.features=b,d&&d(a)),g&&cg.call(this,"onMouseEnter",a),h&&cg.call(this,"onMouseLeave",a),(g||h)&&this.setState({isHovering:f})}}function ck(a){var b=this.props,c=b.onClick,d=b.onNativeClick,e=b.onDblClick,f=b.doubleClickZoom,g=[],h=e||f;switch(a.type){case"anyclick":g.push(d),h||g.push(c);break;case"click":h&&g.push(c)}(g=g.filter(Boolean)).length&&((a=ce.call(this,a)).features=cf.call(this,a.point),g.forEach(function(b){return b(a)}))}var cl=(0,i.forwardRef)(function(a,b){var c,g,h=(0,i.useContext)(aR),j=(0,i.useMemo)(function(){return a.controller||new b8},[]),k=(0,i.useMemo)(function(){return new b1(null,{touchAction:a.touchAction,recognizerOptions:a.eventRecognizerOptions})},[]),l=(0,i.useRef)(null),m=(0,i.useRef)(null),n=(0,i.useRef)({width:0,height:0,state:{isHovering:!1,isDragging:!1}}).current;n.props=a,n.map=m.current&&m.current.getMap(),n.setState=function(b){n.state=ca(ca({},n.state),b),l.current.style.cursor=a.getCursor(n.state)};var o=!0,p=function(a,b,d){if(o){c=[a,b,d,];return}var e=n.props,f=e.onViewStateChange,g=e.onViewportChange;Object.defineProperty(a,"position",{get:function(){return[0,0,aT(n.map,a),]}}),f&&f({viewState:a,interactionState:b,oldViewState:d}),g&&g(a,b,d)};(0,i.useImperativeHandle)(b,function(){var a;return{getMap:(a=m).current&&a.current.getMap,queryRenderedFeatures:a.current&&a.current.queryRenderedFeatures}},[]);var q=(0,i.useMemo)(function(){return ca(ca({},h),{},{eventManager:k,container:h.container||l.current})},[h,l.current]);q.onViewportChange=p,q.viewport=h.viewport||aX(n),n.viewport=q.viewport;var r=function(a){var b=a.isDragging,c=void 0!==b&&b;if(c!==n.state.isDragging&&n.setState({isDragging:c}),o){g=a;return}var d=n.props.onInteractionStateChange;d&&d(a)},s=function(){n.width&&n.height&&j.setOptions(ca(ca(ca({},n.props),n.props.viewState),{},{isInteractive:Boolean(n.props.onViewStateChange||n.props.onViewportChange),onViewportChange:p,onStateChange:r,eventManager:k,width:n.width,height:n.height}))},t=function(a){var b=a.width,c=a.height;n.width=b,n.height=c,s(),n.props.onResize({width:b,height:c})};(0,i.useEffect)(function(){return k.setElement(l.current),k.on({pointerdown:ch.bind(n),pointermove:cj.bind(n),pointerup:ci.bind(n),pointerleave:cg.bind(n,"onMouseOut"),click:ck.bind(n),anyclick:ck.bind(n),dblclick:cg.bind(n,"onDblClick"),wheel:cg.bind(n,"onWheel"),contextmenu:cg.bind(n,"onContextMenu")}),function(){k.destroy()}},[]),aS(function(){if(c){var a;p.apply(void 0,function(a){if(Array.isArray(a))return e(a)}(a=c)||function(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}(a)||f(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}g&&r(g)}),s();var u=a.width,v=a.height,w=a.style,x=a.getCursor,y=(0,i.useMemo)(function(){return ca(ca({position:"relative"},w),{},{width:u,height:v,cursor:x(n.state)})},[w,u,v,x,n.state]);return c&&n._child||(n._child=i.createElement(aQ,{value:q},i.createElement("div",{key:"event-canvas",ref:l,style:y},i.createElement(a1,d({},a,{width:"100%",height:"100%",style:null,onResize:t,ref:m}))))),o=!1,n._child});cl.supported=a1.supported,cl.propTypes=cb,cl.defaultProps=cd;var cm=cl;function cn(a,b){if(a===b)return!0;if(!a||!b)return!1;if(Array.isArray(a)){if(!Array.isArray(b)||a.length!==b.length)return!1;for(var c=0;c prop: ".concat(d))}}(l,a,c.current):l=function(a,b,c){if(a.style&&a.style._loaded){var d=function(a){for(var b=1;b=0||(e[c]=a[c]);return e}(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d=0)&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}(c,["layout","paint","filter","minzoom","maxzoom","beforeId",]);if(l!==d.beforeId&&a.moveLayer(b,l),f!==d.layout){var n=d.layout||{};for(var o in f)cn(f[o],n[o])||a.setLayoutProperty(b,o,f[o]);for(var p in n)f.hasOwnProperty(p)||a.setLayoutProperty(b,p,void 0)}if(h!==d.paint){var q=d.paint||{};for(var r in h)cn(h[r],q[r])||a.setPaintProperty(b,r,h[r]);for(var s in q)h.hasOwnProperty(s)||a.setPaintProperty(b,s,void 0)}for(var t in cn(i,d.filter)||a.setFilter(b,i),(j!==d.minzoom||k!==d.maxzoom)&&a.setLayerZoomRange(b,j,k),m)cn(m[t],d[t])||a.setLayerProperty(b,t,m[t])}(a,b,c,d)}catch(e){console.warn(e)}}(h,g,a,c.current):function(a,b,c){if(a.style&&a.style._loaded){var d=cs(cs({},c),{},{id:b});delete d.beforeId,a.addLayer(d,c.beforeId)}}(h,g,a),c.current=a,null}).propTypes=ct;var cv={captureScroll:!1,captureDrag:!0,captureClick:!0,captureDoubleClick:!0,capturePointerMove:!1},cw={captureScroll:j.bool,captureDrag:j.bool,captureClick:j.bool,captureDoubleClick:j.bool,capturePointerMove:j.bool};function cx(){var a=arguments.length>0&& void 0!==arguments[0]?arguments[0]:{},b=(0,i.useContext)(aR),c=(0,i.useRef)(null),d=(0,i.useRef)({props:a,state:{},context:b,containerRef:c}),e=d.current;return e.props=a,e.context=b,(0,i.useEffect)(function(){return function(a){var b=a.containerRef.current,c=a.context.eventManager;if(b&&c){var d={wheel:function(b){var c=a.props;c.captureScroll&&b.stopPropagation(),c.onScroll&&c.onScroll(b,a)},panstart:function(b){var c=a.props;c.captureDrag&&b.stopPropagation(),c.onDragStart&&c.onDragStart(b,a)},anyclick:function(b){var c=a.props;c.captureClick&&b.stopPropagation(),c.onNativeClick&&c.onNativeClick(b,a)},click:function(b){var c=a.props;c.captureClick&&b.stopPropagation(),c.onClick&&c.onClick(b,a)},dblclick:function(b){var c=a.props;c.captureDoubleClick&&b.stopPropagation(),c.onDoubleClick&&c.onDoubleClick(b,a)},pointermove:function(b){var c=a.props;c.capturePointerMove&&b.stopPropagation(),c.onPointerMove&&c.onPointerMove(b,a)}};return c.watch(d,b),function(){c.off(d)}}}(e)},[b.eventManager]),e}function cy(a){var b=a.instance,c=cx(a),d=c.context,e=c.containerRef;return b._context=d,b._containerRef=e,b._render()}var cz=function(a){a6(f,a);var b,c,e=(b=f,c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}(),function(){var a,d=a9(b);if(c){var e=a9(this).constructor;a=Reflect.construct(d,arguments,e)}else a=d.apply(this,arguments);return a8(this,a)});function f(){var a;ak(this,f);for(var b=arguments.length,c=Array(b),d=0;d2&& void 0!==arguments[2]?arguments[2]:"x";if(null===a)return b;var d="x"===c?a.offsetWidth:a.offsetHeight;return cI(b/100*d)/d*100};function cK(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}var cL=Object.assign({},cC,{className:j.string,longitude:j.number.isRequired,latitude:j.number.isRequired,style:j.object}),cM=Object.assign({},cD,{className:""});function cN(a){var b,c,d,e,f,h,j,l,m=(b=a,d=(c=k((0,i.useState)(null),2))[0],e=c[1],f=k((0,i.useState)(null),2),h=f[0],j=f[1],l=cx(cB(cB({},b),{},{onDragStart:cG})),l.callbacks=b,l.state.dragPos=d,l.state.setDragPos=e,l.state.dragOffset=h,l.state.setDragOffset=j,(0,i.useEffect)(function(){return function(a){var b=a.context.eventManager;if(b&&a.state.dragPos){var c={panmove:function(b){return function(a,b){var c=b.props,d=b.callbacks,e=b.state,f=b.context;a.stopPropagation();var g=cE(a);e.setDragPos(g);var h=e.dragOffset;if(d.onDrag&&h){var i=Object.assign({},a);i.lngLat=cF(g,h,c,f),d.onDrag(i)}}(b,a)},panend:function(b){return function(a,b){var c=b.props,d=b.callbacks,e=b.state,f=b.context;a.stopPropagation();var g=e.dragPos,h=e.dragOffset;if(e.setDragPos(null),e.setDragOffset(null),d.onDragEnd&&g&&h){var i=Object.assign({},a);i.lngLat=cF(g,h,c,f),d.onDragEnd(i)}}(b,a)},pancancel:function(b){var c,d;return c=b,d=a.state,void(c.stopPropagation(),d.setDragPos(null),d.setDragOffset(null))}};return b.watch(c),function(){b.off(c)}}}(l)},[l.context.eventManager,Boolean(d)]),l),n=m.state,o=m.containerRef,p=a.children,q=a.className,r=a.draggable,s=a.style,t=n.dragPos,u=function(a){var b=a.props,c=a.state,d=a.context,e=b.longitude,f=b.latitude,g=b.offsetLeft,h=b.offsetTop,i=c.dragPos,j=c.dragOffset,l=d.viewport,m=d.map;if(i&&j)return[i[0]+j[0],i[1]+j[1],];var n=aT(m,{longitude:e,latitude:f}),o=l.project([e,f,n,]),p=k(o,2),q=p[0],r=p[1];return[q+=g,r+=h]}(m),v=k(u,2),w=v[0],x=v[1],y="translate(".concat(cI(w),"px, ").concat(cI(x),"px)"),z=r?t?"grabbing":"grab":"auto",A=(0,i.useMemo)(function(){var a=function(a){for(var b=1;b0){var q=m,r=p;for(m=0;m<=1;m+=.5)o=(n=c-m*g)+g,p=Math.max(0,j-n)+Math.max(0,o-e+j),p0){var w=l,x=v;for(l=0;l<=1;l+=s)u=(t=b-l*f)+f,v=Math.max(0,j-t)+Math.max(0,u-d+j),v1||I< -1||G<0||G>B.width||H<0||H>B.height?P.display="none":P.zIndex=Math.floor((1-I)/2*1e5)),P),T=(0,i.useCallback)(function(a){c.props.onClose();var b=c.context.eventManager;b&&b.once("click",function(a){return a.stopPropagation()},a.target)},[]);return i.createElement("div",{className:"mapboxgl-popup mapboxgl-popup-anchor-".concat(R," ").concat(j),style:S,ref:e},i.createElement("div",{key:"tip",className:"mapboxgl-popup-tip",style:{borderWidth:n}}),i.createElement("div",{key:"content",ref:b,className:"mapboxgl-popup-content"},o&&i.createElement("button",{key:"close-button",className:"mapboxgl-popup-close-button",type:"button",onClick:T},"\xd7"),p))}function cT(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}cS.propTypes=cQ,cS.defaultProps=cR,i.memo(cS);var cU=Object.assign({},cw,{toggleLabel:j.string,className:j.string,style:j.object,compact:j.bool,customAttribution:j.oneOfType([j.string,j.arrayOf(j.string),])}),cV=Object.assign({},cv,{className:"",toggleLabel:"Toggle Attribution"});function cW(a){var b=cx(a),c=b.context,d=b.containerRef,e=(0,i.useRef)(null),f=k((0,i.useState)(!1),2),h=f[0],j=f[1];(0,i.useEffect)(function(){var b,f,g,h,i,j;return c.map&&(b=(f={customAttribution:a.customAttribution},g=c.map,h=d.current,i=e.current,(j=new(aB()).AttributionControl(f))._map=g,j._container=h,j._innerContainer=i,j._updateAttributions(),j._updateEditLink(),g.on("styledata",j._updateData),g.on("sourcedata",j._updateData),j)),function(){var a;return b&&void((a=b)._map.off("styledata",a._updateData),a._map.off("sourcedata",a._updateData))}},[c.map]);var l=void 0===a.compact?c.viewport.width<=640:a.compact;(0,i.useEffect)(function(){!l&&h&&j(!1)},[l]);var m=(0,i.useCallback)(function(){return j(function(a){return!a})},[]),n=(0,i.useMemo)(function(){return function(a){for(var b=1;bg)return 1}return 0}(b.map.version,"1.6.0")>=0?2:1:2},[b.map]),d=b.viewport.bearing,e={transform:"rotate(".concat(-d,"deg)")},2===c?i.createElement("span",{className:"mapboxgl-ctrl-icon","aria-hidden":"true",style:e}):i.createElement("span",{className:"mapboxgl-ctrl-compass-arrow",style:e})))))}function db(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}da.propTypes=c6,da.defaultProps=c7,i.memo(da);var dc=Object.assign({},cw,{className:j.string,style:j.object,maxWidth:j.number,unit:j.oneOf(["imperial","metric","nautical"])}),dd=Object.assign({},cv,{className:"",maxWidth:100,unit:"metric"});function de(a){var b=cx(a),c=b.context,d=b.containerRef,e=k((0,i.useState)(null),2),f=e[0],h=e[1];(0,i.useEffect)(function(){if(c.map){var a=new(aB()).ScaleControl;a._map=c.map,a._container=d.current,h(a)}},[c.map]),f&&(f.options=a,f._onMove());var j=(0,i.useMemo)(function(){return function(a){for(var b=1;b 0 && (pendingComponentWillMountWarnings.forEach(function(fiber) { componentWillMountUniqueNames.add(getComponentName(fiber.type) || "Component"), didWarnAboutUnsafeLifecycles.add(fiber.type); }), pendingComponentWillMountWarnings = []); @@ -4294,22 +4294,28 @@ if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0 && (pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function(fiber) { UNSAFE_componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || "Component"), didWarnAboutUnsafeLifecycles.add(fiber.type); }), pendingUNSAFE_ComponentWillUpdateWarnings = []), UNSAFE_componentWillMountUniqueNames.size > 0) { - error("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s", setToSortedString(UNSAFE_componentWillMountUniqueNames)); + var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames); + error("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s", sortedNames); } if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) { - error("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n\nPlease update the following components: %s", setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames)); + var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames); + error("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n\nPlease update the following components: %s", _sortedNames); } if (UNSAFE_componentWillUpdateUniqueNames.size > 0) { - error("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s", setToSortedString(UNSAFE_componentWillUpdateUniqueNames)); + var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames); + error("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s", _sortedNames2); } if (componentWillMountUniqueNames.size > 0) { - warn("componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", setToSortedString(componentWillMountUniqueNames)); + var _sortedNames3 = setToSortedString(componentWillMountUniqueNames); + warn("componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", _sortedNames3); } if (componentWillReceivePropsUniqueNames.size > 0) { - warn("componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", setToSortedString(componentWillReceivePropsUniqueNames)); + var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames); + warn("componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", _sortedNames4); } if (componentWillUpdateUniqueNames.size > 0) { - warn("componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", setToSortedString(componentWillUpdateUniqueNames)); + var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames); + warn("componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", _sortedNames5); } }; var pendingLegacyContextWarning = new Map(), didWarnAboutLegacyContext = new Set(); @@ -5475,7 +5481,7 @@ source, subscribe ]), dispatcher.useEffect(function() { - var unsubscribe = subscribe(source._source, function() { + var handleChange = function() { var latestGetSnapshot = refs.getSnapshot, latestSetSnapshot = refs.setSnapshot; try { latestSetSnapshot(latestGetSnapshot(source._source)); @@ -5486,7 +5492,7 @@ throw error; }); } - }); + }, unsubscribe = subscribe(source._source, handleChange); return "function" != typeof unsubscribe && error("Mutable source subscribe function must return an unsubscribe function."), unsubscribe; }, [ source, @@ -8882,7 +8888,9 @@ function detachFiberAfterEffects(fiber) { fiber.sibling = null, fiber.stateNode = null; } - var resolveFamily = null, failedBoundaries = null; + var resolveFamily = null, failedBoundaries = null, setRefreshHandler = function(handler) { + resolveFamily = handler; + }; function resolveFunctionForHotReloading(type) { if (null === resolveFamily) return type; var family = resolveFamily(type); @@ -8938,6 +8946,18 @@ function markFailedErrorBoundaryForHotReloading(fiber) { null !== resolveFamily && "function" == typeof WeakSet && (null === failedBoundaries && (failedBoundaries = new WeakSet()), failedBoundaries.add(fiber)); } + var scheduleRefresh = function(root, update) { + if (null !== resolveFamily) { + var staleFamilies = update.staleFamilies, updatedFamilies = update.updatedFamilies; + flushPassiveEffects(), flushSync(function() { + scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies); + }); + } + }, scheduleRoot = function(root, element) { + root.context === emptyContextObject && (flushPassiveEffects(), flushSync(function() { + updateContainer(element, root, null, null); + })); + }; function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) { var alternate = fiber.alternate, child = fiber.child, sibling = fiber.sibling, tag = fiber.tag, type = fiber.type, candidateType = null; switch(tag){ @@ -8957,6 +8977,12 @@ } null !== failedBoundaries && (failedBoundaries.has(fiber) || null !== alternate && failedBoundaries.has(alternate)) && (needsRemount = !0), needsRemount && (fiber._debugNeedsRemount = !0), (needsRemount || needsRender) && scheduleUpdateOnFiber(fiber, SyncLane, -1), null === child || needsRemount || scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies), null !== sibling && scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies); } + var findHostInstancesForRefresh = function(root, families) { + var hostInstances = new Set(), types = new Set(families.map(function(family) { + return family.current; + })); + return findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances), hostInstances; + }; function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) { var child = fiber.child, sibling = fiber.sibling, tag = fiber.tag, type = fiber.type, candidateType = null; switch(tag){ @@ -9545,28 +9571,10 @@ return null === hostFiber ? null : hostFiber.stateNode; }, findFiberByHostInstance: findFiberByHostInstance || emptyFindFiberByHostInstance, - findHostInstancesForRefresh: function(root, families) { - var hostInstances = new Set(), types = new Set(families.map(function(family) { - return family.current; - })); - return findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances), hostInstances; - }, - scheduleRefresh: function(root, update) { - if (null !== resolveFamily) { - var staleFamilies = update.staleFamilies, updatedFamilies = update.updatedFamilies; - flushPassiveEffects(), flushSync(function() { - scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies); - }); - } - }, - scheduleRoot: function(root, element) { - root.context === emptyContextObject && (flushPassiveEffects(), flushSync(function() { - updateContainer(element, root, null, null); - })); - }, - setRefreshHandler: function(handler) { - resolveFamily = handler; - }, + findHostInstancesForRefresh: findHostInstancesForRefresh, + scheduleRefresh: scheduleRefresh, + scheduleRoot: scheduleRoot, + setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools }) && canUseDOM && window.top === window.self && (navigator.userAgent.indexOf("Chrome") > -1 && -1 === navigator.userAgent.indexOf("Edge") || navigator.userAgent.indexOf("Firefox") > -1)) { var protocol = window.location.protocol; diff --git a/scripts/cargo/patch-section.sh b/scripts/cargo/patch-section.sh new file mode 100755 index 00000000000..e7c4b865e5d --- /dev/null +++ b/scripts/cargo/patch-section.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +set -eu + +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) + +function toLine { + arr=(${1//\\\t/ }) + dir="$(dirname ${arr[1]})" + echo "${arr[0]} = { path = '$dir' }" +} + +export -f toLine + +$SCRIPT_DIR/list-crates.sh | jq '[.name, .manifest_path] | @tsv' | xargs -L 1 -I {} bash -c 'toLine "$@"' _ {} \ No newline at end of file