commit 2ba17e63e35ab3e017d27286877d751214cab38c Author: Roger Tuan Date: Wed Mar 24 09:13:18 2021 -0700 Initial commit of open-source version diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..3024fbe Binary files /dev/null and b/.DS_Store differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..954bb0a --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +# Project exclude paths +/node_modules/ +/.cache/ +/docs/CNAME \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..73f69e0 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..a55e7a1 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/csv-plugin.xml b/.idea/csv-plugin.xml new file mode 100644 index 0000000..a02d363 --- /dev/null +++ b/.idea/csv-plugin.xml @@ -0,0 +1,16 @@ + + + + + + \ No newline at end of file diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml new file mode 100644 index 0000000..d23208f --- /dev/null +++ b/.idea/jsLibraryMappings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..28a804d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..34d3847 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..7341688 --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/start.xml b/.idea/runConfigurations/start.xml new file mode 100644 index 0000000..0ac6197 --- /dev/null +++ b/.idea/runConfigurations/start.xml @@ -0,0 +1,12 @@ + + + + + +
\ No newline at end of file diff --git a/docs/main_level_amenities.97216d6f.geojson b/docs/main_level_amenities.97216d6f.geojson new file mode 100644 index 0000000..4264f72 --- /dev/null +++ b/docs/main_level_amenities.97216d6f.geojson @@ -0,0 +1,22 @@ +{ +"type": "FeatureCollection", +"name": "main_level_amenities", +"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::3857" } }, +"features": [ +{ "type": "Feature", "properties": { "type": "restroom" }, "geometry": { "type": "Point", "coordinates": [ -9753519.314022816717625, 5140975.504749830812216 ] } }, +{ "type": "Feature", "properties": { "type": "stairs_up_down" }, "geometry": { "type": "Point", "coordinates": [ -9753523.618715234100819, 5141019.970267689786851 ] } }, +{ "type": "Feature", "properties": { "type": "stairs_up" }, "geometry": { "type": "Point", "coordinates": [ -9753507.971886180341244, 5141031.658923045732081 ] } }, +{ "type": "Feature", "properties": { "type": "stairs_up" }, "geometry": { "type": "Point", "coordinates": [ -9753463.556859698146582, 5141032.314011931419373 ] } }, +{ "type": "Feature", "properties": { "type": "stairs_down" }, "geometry": { "type": "Point", "coordinates": [ -9753454.580249832943082, 5140965.157691745087504 ] } }, +{ "type": "Feature", "properties": { "type": "stairs_down" }, "geometry": { "type": "Point", "coordinates": [ -9753513.731493383646011, 5140963.912402408197522 ] } }, +{ "type": "Feature", "properties": { "type": "elevator" }, "geometry": { "type": "Point", "coordinates": [ -9753521.1832787822932, 5140952.6318742306903 ] } }, +{ "type": "Feature", "properties": { "type": "elevator" }, "geometry": { "type": "Point", "coordinates": [ -9753446.954169053584337, 5140953.873326147906482 ] } }, +{ "type": "Feature", "properties": { "type": "store" }, "geometry": { "type": "Point", "coordinates": [ -9753437.78256168961525, 5140913.123107450082898 ] } }, +{ "type": "Feature", "properties": { "type": "atm" }, "geometry": { "type": "Point", "coordinates": [ -9753485.743257666006684, 5140885.145879987627268 ] } }, +{ "type": "Feature", "properties": { "type": "stairs_up" }, "geometry": { "type": "Point", "coordinates": [ -9753489.154335997998714, 5140900.914789766073227 ] } }, +{ "type": "Feature", "properties": { "type": "stairs_up_down" }, "geometry": { "type": "Point", "coordinates": [ -9753521.355595529079437, 5140907.215455098077655 ] } }, +{ "type": "Feature", "properties": { "type": "stairs_up" }, "geometry": { "type": "Point", "coordinates": [ -9753603.682074636220932, 5141018.476763681508601 ] } }, +{ "type": "Feature", "properties": { "type": "stairs_up" }, "geometry": { "type": "Point", "coordinates": [ -9753364.858743615448475, 5140910.281201459467411 ] } }, +{ "type": "Feature", "properties": { "type": "store" }, "geometry": { "type": "Point", "coordinates": [ -9753398.457912938669324, 5140944.725479228422046 ] } } +] +} diff --git a/docs/main_level_areas.4986cb0a.geojson b/docs/main_level_areas.4986cb0a.geojson new file mode 100644 index 0000000..b22869d --- /dev/null +++ b/docs/main_level_areas.4986cb0a.geojson @@ -0,0 +1,36 @@ +{ +"type": "FeatureCollection", +"name": "main_level_areas", +"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::3857" } }, +"features": [ +{ "type": "Feature", "id": "africa", "properties": { "closed": 0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753525.670325826853514, 5140971.709801921620965 ], [ -9753525.302373172715306, 5140937.256064519286156 ], [ -9753605.26764159090817, 5140935.778706549666822 ], [ -9753605.622377084568143, 5140954.343975422903895 ], [ -9753594.533212710171938, 5140954.548938748426735 ], [ -9753594.826635459437966, 5140970.432230850681663 ], [ -9753525.670325826853514, 5140971.709801921620965 ] ] ] ] } }, +{ "type": "Feature", "properties": { "closed": 0, "label": "Bird Habitats" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753565.572200978174806, 5140936.512132876552641 ], [ -9753565.274356497451663, 5140920.389487648382783 ], [ -9753604.959582084789872, 5140919.656250030733645 ], [ -9753605.26764159090817, 5140935.778706549666822 ], [ -9753565.572200978174806, 5140936.512132876552641 ] ] ] ] } }, +{ "type": "Feature", "id": "reptiles", "properties": { "closed": 0, "label": "Reptiles" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753565.572200978174806, 5140936.512132876552641 ], [ -9753542.073248144239187, 5140936.946244854480028 ], [ -9753541.775403663516045, 5140920.82359962631017 ], [ -9753565.274356497451663, 5140920.389487648382783 ], [ -9753565.572200978174806, 5140936.512132876552641 ] ] ] ] } }, +{ "type": "Feature", "id": "animals", "properties": { "closed": 0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753604.959582084789872, 5140919.656250030733645 ], [ -9753524.966332426294684, 5140921.13412491697818 ], [ -9753524.627231042832136, 5140900.636006940156221 ], [ -9753604.603639326989651, 5140899.150786129757762 ], [ -9753604.959582084789872, 5140919.656250030733645 ] ] ] ] } }, +{ "type": "Feature", "id": "mammals", "properties": { "closed": 0, "label": "" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753604.515620952472091, 5140894.471893980167806 ], [ -9753624.759478114545345, 5140894.120713461190462 ], [ -9753627.263055292889476, 5141029.31671367585659 ], [ -9753607.058847540989518, 5141029.66506208665669 ], [ -9753604.515620952472091, 5140894.471893980167806 ] ] ], [ [ [ -9753606.274463273584843, 5140988.471249494701624 ], [ -9753539.710568096488714, 5140989.705241876654327 ], [ -9753525.799378724768758, 5140989.968110671266913 ], [ -9753525.670325826853514, 5140971.709801921620965 ], [ -9753605.925863210111856, 5140970.227081617340446 ], [ -9753606.274463273584843, 5140988.471249494701624 ] ] ] ] } }, +{ "type": "Feature", "id": "rice", "properties": { "closed": 1, "label": "Plant\nMedicine" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753594.826635459437966, 5140970.432230850681663 ], [ -9753594.533212710171938, 5140954.548938748426735 ], [ -9753605.622377084568143, 5140954.343975422903895 ], [ -9753605.925863210111856, 5140970.227081617340446 ], [ -9753594.826635459437966, 5140970.432230850681663 ] ] ] ] } }, +{ "type": "Feature", "id": "birds", "properties": { "closed": 0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753527.201100433245301, 5141027.451786724850535 ], [ -9753526.807377506047487, 5141006.139137038961053 ], [ -9753606.585495740175247, 5141004.749297419562936 ], [ -9753606.976939864456654, 5141025.977928204461932 ], [ -9753527.201100433245301, 5141027.451786724850535 ] ] ] ] } }, +{ "type": "Feature", "id": "nature_walk", "properties": { "closed": 0, "label": null }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753518.789369285106659, 5140990.142869132570922 ], [ -9753606.274463273584843, 5140988.471249494701624 ], [ -9753606.585495740175247, 5141004.749297419562936 ], [ -9753519.100401746109128, 5141006.420917057432234 ], [ -9753519.144361209124327, 5141008.721558735705912 ], [ -9753507.739608235657215, 5141008.939474815502763 ], [ -9753507.330137006938457, 5140987.509582086466253 ], [ -9753518.734889980405569, 5140987.291666006669402 ], [ -9753518.789369285106659, 5140990.142869132570922 ] ] ] ] } }, +{ "type": "Feature", "id": "mastaba", "properties": { "closed": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753519.438020404428244, 5140942.272961718030274 ], [ -9753507.579781034961343, 5140942.492026957683265 ], [ -9753507.098636668175459, 5140916.447159730829298 ], [ -9753518.95687603764236, 5140916.228094491176307 ], [ -9753519.438020404428244, 5140942.272961718030274 ] ] ] ] } }, +{ "type": "Feature", "id": "sci_hub", "properties": { "closed": 0, "label": "Science\nHub" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753447.822488417848945, 5140932.669969233684242 ], [ -9753460.597860062494874, 5140932.461423533968627 ], [ -9753460.803731400519609, 5140945.072965547442436 ], [ -9753448.02835975587368, 5140945.281511247158051 ], [ -9753447.822488417848945, 5140932.669969233684242 ] ] ] ] } }, +{ "type": "Feature", "id": "fm_store", "properties": { "closed": 0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753396.53148865327239, 5140923.725139087066054 ], [ -9753396.191173151135445, 5140902.87763658259064 ], [ -9753441.873637080192566, 5140902.131914134137332 ], [ -9753442.213952582329512, 5140922.979416638612747 ], [ -9753396.53148865327239, 5140923.725139087066054 ] ] ] ] } }, +{ "type": "Feature", "id": "founders", "properties": { "closed": 1, "label": "Founders Room" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753445.578118955716491, 5140902.073252767324448 ], [ -9753445.283580465242267, 5140883.290759662166238 ], [ -9753449.225864904001355, 5140883.154818823561072 ], [ -9753456.610879745334387, 5140883.154774622060359 ], [ -9753459.914564806967974, 5140883.087891280651093 ], [ -9753460.292563183233142, 5140901.759021651931107 ], [ -9753445.578118955716491, 5140902.073252767324448 ] ] ] ] } }, +{ "type": "Feature", "id": "pawnee_lodge", "properties": { "closed": 1, "label": "Pawnee Lodge" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753362.754906637594104, 5140940.078014170750976 ], [ -9753392.246775219216943, 5140939.584649134427309 ], [ -9753392.54331536591053, 5140957.750502436421812 ], [ -9753363.051446784287691, 5140958.243867472745478 ], [ -9753362.754906637594104, 5140940.078014170750976 ] ] ] ] } }, +{ "type": "Feature", "id": "field_bistro", "properties": { "closed": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753449.413015797734261, 5141000.869047611020505 ], [ -9753462.787529891356826, 5141000.651824035681784 ], [ -9753463.215160027146339, 5141026.981126775033772 ], [ -9753459.21513875387609, 5141027.046093540266156 ], [ -9753459.404078057035804, 5141038.568583274260163 ], [ -9753469.355711735785007, 5141038.374720280058682 ], [ -9753469.614195728674531, 5141046.840071007609367 ], [ -9753462.978697754442692, 5141047.01339506264776 ], [ -9753459.602682564407587, 5141047.076818367466331 ], [ -9753452.261877061799169, 5141047.212759209796786 ], [ -9753448.410219844430685, 5141047.25807283166796 ], [ -9753447.97974050976336, 5141028.99668628256768 ], [ -9753449.840645933523774, 5141027.198350350372493 ], [ -9753449.413015797734261, 5141000.869047611020505 ] ] ] ] } }, +{ "type": "Feature", "properties": { "id": null, "closed": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753433.499503914266825, 5141029.234067210927606 ], [ -9753433.165872102603316, 5141008.882526771165431 ], [ -9753443.438395854085684, 5141008.714124741964042 ], [ -9753443.772027665749192, 5141029.065665181726217 ], [ -9753433.499503914266825, 5141029.234067210927606 ] ] ] ] } }, +{ "type": "Feature", "properties": { "id": null, "closed": 2 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753447.97974050976336, 5141028.99668628256768 ], [ -9753443.772027665749192, 5141029.065665181726217 ], [ -9753443.438395854085684, 5141008.714124741964042 ], [ -9753449.539005365222692, 5141008.626259212382138 ], [ -9753449.840645933523774, 5141027.198350350372493 ], [ -9753447.97974050976336, 5141028.99668628256768 ] ] ] ] } }, +{ "type": "Feature", "properties": { "id": null, "closed": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753363.61711454205215, 5140992.896300278604031 ], [ -9753363.323655961081386, 5140974.919221705757082 ], [ -9753448.968675879761577, 5140973.50921028200537 ], [ -9753449.262134460732341, 5140991.486288854852319 ], [ -9753363.61711454205215, 5140992.896300278604031 ] ] ] ] } }, +{ "type": "Feature", "properties": { "id": null, "closed": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753449.262134460732341, 5140991.486288854852319 ], [ -9753448.968675879761577, 5140973.50921028200537 ], [ -9753461.888963555917144, 5140973.298298967070878 ], [ -9753462.182422136887908, 5140991.275377539917827 ], [ -9753449.262134460732341, 5140991.486288854852319 ] ] ] ] } }, +{ "type": "Feature", "properties": { "id": null, "closed": 2 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753363.323655961081386, 5140974.919221705757082 ], [ -9753363.051446784287691, 5140958.243867472745478 ], [ -9753385.714674208313227, 5140957.86197345983237 ], [ -9753385.986883385106921, 5140974.537327692843974 ], [ -9753363.323655961081386, 5140974.919221705757082 ] ] ] ] } }, +{ "type": "Feature", "id": "apsaalooke", "properties": { "closed": 0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753392.246775219216943, 5140939.584649134427309 ], [ -9753442.729595974087715, 5140938.760565463453531 ], [ -9753443.026136120781302, 5140956.926418765448034 ], [ -9753425.861490428447723, 5140957.206615160219371 ], [ -9753426.133699605241418, 5140973.881969393230975 ], [ -9753385.986883385106921, 5140974.537327692843974 ], [ -9753385.714674208313227, 5140957.86197345983237 ], [ -9753392.54331536591053, 5140957.750502436421812 ], [ -9753392.246775219216943, 5140939.584649134427309 ] ] ] ] } }, +{ "type": "Feature", "id": "americas", "properties": { "closed": 0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753368.157615503296256, 5140924.188315376639366 ], [ -9753434.284022221341729, 5140923.108865153044462 ], [ -9753434.541703093796968, 5140938.894224965013564 ], [ -9753362.754906637594104, 5140940.078014170750976 ], [ -9753363.61711454205215, 5140992.896300278604031 ], [ -9753449.260732198134065, 5140991.492905299179256 ], [ -9753449.539005365222692, 5141008.626259212382138 ], [ -9753433.166030395776033, 5141008.892182605341077 ], [ -9753433.499503914266825, 5141029.234067210927606 ], [ -9753363.973622489720583, 5141030.333437904715538 ], [ -9753364.08158372156322, 5141034.230408727191389 ], [ -9753343.803741354495287, 5141034.615574449300766 ], [ -9753341.311492560431361, 5140899.411077931523323 ], [ -9753361.521346857771277, 5140899.069936143234372 ], [ -9753361.622032342478633, 5140903.579930437728763 ], [ -9753367.813858773559332, 5140903.511129395104945 ], [ -9753367.995785279199481, 5140917.545662513934076 ], [ -9753362.633718824014068, 5140917.67948644887656 ], [ -9753362.675038000568748, 5140924.277813200838864 ], [ -9753368.157615503296256, 5140924.188315376639366 ] ] ] ] } }, +{ "type": "Feature", "properties": { "id": null, "closed": 2 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753368.157615503296256, 5140924.188315376639366 ], [ -9753362.675038000568748, 5140924.277813200838864 ], [ -9753362.633718824014068, 5140917.67948644887656 ], [ -9753367.995785279199481, 5140917.545662513934076 ], [ -9753367.813858773559332, 5140903.511129395104945 ], [ -9753396.195996643975377, 5140903.113197189755738 ], [ -9753396.53246658295393, 5140923.725123123265803 ], [ -9753368.157615503296256, 5140924.188315376639366 ] ] ] ] } }, +{ "type": "Feature", "properties": { "id": null, "closed": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753425.861490428447723, 5140957.206615157425404 ], [ -9753448.696466702967882, 5140956.833856053650379 ], [ -9753448.968675879761577, 5140973.50921028945595 ], [ -9753426.133699605241418, 5140973.881969393230975 ], [ -9753425.861490428447723, 5140957.206615157425404 ] ] ] ] } }, +{ "type": "Feature", "properties": { "id": null, "closed": 2 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753520.005730371922255, 5140881.840724009089172 ], [ -9753520.474368909373879, 5140902.797743668779731 ], [ -9753506.010526068508625, 5140903.121182509697974 ], [ -9753505.541887531057, 5140882.164162850007415 ], [ -9753508.794099438935518, 5140882.098321585915983 ], [ -9753516.444335738196969, 5140881.947530623525381 ], [ -9753520.005730371922255, 5140881.840724009089172 ] ] ] ] } }, +{ "type": "Feature", "properties": { "id": null, "closed": 2 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753542.073248144239187, 5140936.946244854480028 ], [ -9753519.347201529890299, 5140937.366078414954245 ], [ -9753519.049357049167156, 5140921.243433186784387 ], [ -9753541.775403663516045, 5140920.82359962631017 ], [ -9753542.073248144239187, 5140936.946244854480028 ] ] ] ] } }, +{ "type": "Feature", "properties": { "id": null, "closed": 2 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753522.985100500285625, 5141045.864679183810949 ], [ -9753519.337354550138116, 5141046.023276833817363 ], [ -9753512.064519461244345, 5141046.0912472512573 ], [ -9753508.502986734732985, 5141046.158155770041049 ], [ -9753508.605609586462379, 5141054.202960781753063 ], [ -9753500.729767283424735, 5141054.257276935502887 ], [ -9753500.69565836712718, 5141037.372917204163969 ], [ -9753511.748528072610497, 5141037.271514729596674 ], [ -9753511.650369539856911, 5141025.684425763785839 ], [ -9753522.64686400257051, 5141025.591237537562847 ], [ -9753522.985100500285625, 5141045.864679183810949 ] ] ] ] } }, +{ "type": "Feature", "id": "coat_check", "properties": { "closed": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753447.983469244092703, 5140927.816000684164464 ], [ -9753447.851483073085546, 5140919.730615139938891 ], [ -9753467.841340588405728, 5140919.404299871996045 ], [ -9753467.973326759412885, 5140927.489685416221619 ], [ -9753447.983469244092703, 5140927.816000684164464 ] ] ] ] } }, +{ "type": "Feature", "properties": { "id": null, "closed": 0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753525.670325826853514, 5140971.709801921620965 ], [ -9753525.722984420135617, 5140979.159900818951428 ], [ -9753512.258045095950365, 5140979.404434448108077 ], [ -9753512.120521198958158, 5140971.960116586647928 ], [ -9753525.670325826853514, 5140971.709801921620965 ] ] ] ] } }, +{ "type": "Feature", "properties": { "id": "", "closed": 0, "label": "Slave Ship" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -9753532.843753607943654, 5140941.895370400510728 ], [ -9753549.89967299066484, 5140941.580284918658435 ], [ -9753549.876292770728469, 5140941.580716837197542 ], [ -9753549.787117436528206, 5140936.80378001742065 ], [ -9753532.734879622235894, 5140937.122109328396618 ], [ -9753532.843753607943654, 5140941.895370400510728 ] ] ] ] } } +] +} diff --git a/docs/main_level_flows.80a890aa.geojson b/docs/main_level_flows.80a890aa.geojson new file mode 100644 index 0000000..2245d16 --- /dev/null +++ b/docs/main_level_flows.80a890aa.geojson @@ -0,0 +1,16 @@ +{ +"type": "FeatureCollection", +"name": "main_level_flows", +"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::3857" } }, +"features": [ +{ "type": "Feature", "properties": { "exhibition": "birds" }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -9753513.527798123657703, 5141015.752363338135183 ], [ -9753597.683908846229315, 5141014.163532015867531 ] ] ] } }, +{ "type": "Feature", "properties": { "exhibition": "animals" }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -9753512.605190455913544, 5140908.696684377267957 ], [ -9753595.443199012428522, 5140907.166365803219378 ] ] ] } }, +{ "type": "Feature", "properties": { "exhibition": "africa" }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -9753522.492185583338141, 5140963.637608036398888 ], [ -9753590.270998941734433, 5140962.385484381578863 ], [ -9753589.946512931957841, 5140944.820704211480916 ], [ -9753522.380848314613104, 5140946.068890223279595 ] ] ] } }, +{ "type": "Feature", "properties": { "exhibition": "americas" }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -9753456.915628736838698, 5140995.950301787815988 ], [ -9753428.877633498981595, 5140996.46754302084446 ], [ -9753429.200153632089496, 5141017.242752060294151 ], [ -9753348.278336571529508, 5141018.73558705393225 ], [ -9753346.211058000102639, 5140906.675018299371004 ], [ -9753356.580225041136146, 5140906.483729274943471 ], [ -9753357.047235475853086, 5140931.798873298801482 ], [ -9753441.02470457367599, 5140930.230001994408667 ] ] ] } }, +{ "type": "Feature", "properties": { "exhibition": "apsaalooke" }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -9753455.138466631993651, 5140947.720013721846044 ], [ -9753416.922958390787244, 5140948.481184924021363 ], [ -9753417.313108863309026, 5140969.600453749299049 ], [ -9753390.297389686107635, 5140970.099533319473267 ], [ -9753390.1423813495785, 5140961.70876367483288 ], [ -9753406.005546852946281, 5140961.415712739340961 ], [ -9753405.545657632872462, 5140935.290031906217337 ] ] ] } }, +{ "type": "Feature", "properties": { "exhibition": "nature_walk" }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -9753513.479440463706851, 5140999.179808603599668 ], [ -9753602.656095784157515, 5140997.528423689305782 ] ] ] } }, +{ "type": "Feature", "properties": { "exhibition": "mammals" }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -9753615.307627132162452, 5140909.678923790343106 ], [ -9753616.619718290865421, 5140980.533332031220198 ], [ -9753529.368393823504448, 5140982.149063419550657 ] ] ] } }, +{ "type": "Feature", "properties": { "exhibition": "mammals" }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -9753617.383617104962468, 5141021.784732975997031 ], [ -9753616.700627785176039, 5140984.902536322362721 ] ] ] } }, +{ "type": "Feature", "properties": { "exhibition": "animals" }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -9753608.016991978511214, 5140921.309949970804155 ], [ -9753544.228961018845439, 5140922.491185034625232 ], [ -9753544.436671322211623, 5140933.707776569761336 ], [ -9753607.353623179718852, 5140932.542672258801758 ] ] ] } } +] +} diff --git a/docs/main_level_labels.f005b606.geojson b/docs/main_level_labels.f005b606.geojson new file mode 100644 index 0000000..f97cd83 --- /dev/null +++ b/docs/main_level_labels.f005b606.geojson @@ -0,0 +1,17 @@ +{ +"type": "FeatureCollection", +"name": "main_level_labels", +"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::3857" } }, +"features": [ +{ "type": "Feature", "id": "birds", "properties": { }, "geometry": { "type": "Point", "coordinates": [ -9753555.605853484943509, 5141014.957947677001357 ] } }, +{ "type": "Feature", "id": "africa", "properties": { }, "geometry": { "type": "Point", "coordinates": [ -9753589.946512931957841, 5140944.820704211480916 ] } }, +{ "type": "Feature", "id": "animals", "properties": { }, "geometry": { "type": "Point", "coordinates": [ -9753562.151131944730878, 5140907.781388840638101 ] } }, +{ "type": "Feature", "id": "americas", "properties": { }, "geometry": { "type": "Point", "coordinates": [ -9753389.861257903277874, 5141017.968470812775195 ] } }, +{ "type": "Feature", "id": "apsaalooke", "properties": { }, "geometry": { "type": "Point", "coordinates": [ -9753437.933724680915475, 5140948.062695389613509 ] } }, +{ "type": "Feature", "id": "fm_store", "properties": { }, "geometry": { "type": "Point", "coordinates": [ -9753419.202562866732478, 5140912.928526611067355 ] } }, +{ "type": "Feature", "id": "nature_walk", "properties": { }, "geometry": { "type": "Point", "coordinates": [ -9753558.06776812300086, 5140998.354116146452725 ] } }, +{ "type": "Feature", "id": "maximo", "properties": { }, "geometry": { "type": "Point", "coordinates": [ -9753483.036691509187222, 5141011.125253015197814 ] } }, +{ "type": "Feature", "id": "messages_wilderness", "properties": { }, "geometry": null }, +{ "type": "Feature", "id": "mammals", "properties": { }, "geometry": { "type": "Point", "coordinates": [ -9753597.070161698386073, 5140980.895353266038001 ] } } +] +} diff --git a/docs/main_level_outline.36dbbdf0.geojson b/docs/main_level_outline.36dbbdf0.geojson new file mode 100644 index 0000000..5e0f91f --- /dev/null +++ b/docs/main_level_outline.36dbbdf0.geojson @@ -0,0 +1,11828 @@ +{ + "type": "FeatureCollection", + "name": "main_level_outline", + "crs": { + "type": "name", + "properties": { + "name": "urn:ogc:def:crs:EPSG::3857" + } + }, + "features": [ + { + "type": "Feature", + "geometry": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + -9753508.502986735, + 5141046.15815577 + ], + [ + -9753508.605609586, + 5141054.202960782 + ], + [ + -9753500.729767283, + 5141054.2572769355 + ], + [ + -9753500.729767289, + 5141051.432836938 + ], + [ + -9753499.059230281, + 5141049.062493043 + ], + [ + -9753472.664776819, + 5141049.527593544 + ], + [ + -9753470.92087116, + 5141051.992602007 + ], + [ + -9753470.949682958, + 5141054.892989617 + ], + [ + -9753463.141685853, + 5141055.017840738 + ], + [ + -9753462.978697754, + 5141047.013395063 + ], + [ + -9753448.410219844, + 5141047.258072832 + ], + [ + -9753447.97974051, + 5141028.996686283 + ], + [ + -9753363.97362249, + 5141030.378862222 + ], + [ + -9753364.081583722, + 5141034.230408727 + ], + [ + -9753343.803741354, + 5141034.615574449 + ], + [ + -9753341.31149256, + 5140899.4110779315 + ], + [ + -9753361.521364525, + 5140899.071225817 + ], + [ + -9753361.622032342, + 5140903.625476609 + ], + [ + -9753445.578118956, + 5140902.073252767 + ], + [ + -9753445.283580465, + 5140883.290759662 + ], + [ + -9753459.914564807, + 5140883.087891281 + ], + [ + -9753459.755224423, + 5140875.217314926 + ], + [ + -9753467.119796323, + 5140875.068218638 + ], + [ + -9753467.279136706, + 5140882.938794993 + ], + [ + -9753498.128583644, + 5140882.31424572 + ], + [ + -9753497.967515612, + 5140874.439387311 + ], + [ + -9753505.392923152, + 5140874.2890594015 + ], + [ + -9753505.541887531, + 5140882.16416285 + ], + [ + -9753520.005730372, + 5140881.840724009 + ], + [ + -9753520.436209707, + 5140900.713844343 + ], + [ + -9753604.649909299, + 5140899.149926858 + ], + [ + -9753604.515620952, + 5140894.47189398 + ], + [ + -9753624.759478115, + 5140894.120713461 + ], + [ + -9753627.263055293, + 5141029.316713676 + ], + [ + -9753607.058847541, + 5141029.665062087 + ], + [ + -9753607.063939754, + 5141025.976314691 + ], + [ + -9753522.679233605, + 5141027.535322215 + ], + [ + -9753522.9851005, + 5141045.864679184 + ], + [ + -9753508.502986735, + 5141046.15815577 + ] + ] + ] + ] + } + }, + { + "type": "Feature", + "geometry": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + -9753495.645196902, + 5141054.437593392 + ], + [ + -9753495.618913233, + 5141054.437364018 + ], + [ + -9753495.592637572, + 5141054.436675966 + ], + [ + -9753495.56637792, + 5141054.435529444 + ], + [ + -9753495.540142277, + 5141054.4339248035 + ], + [ + -9753495.513938636, + 5141054.431862532 + ], + [ + -9753495.487774976, + 5141054.429343259 + ], + [ + -9753495.461659268, + 5141054.426367749 + ], + [ + -9753495.435599469, + 5141054.422936912 + ], + [ + -9753495.409603514, + 5141054.419051791 + ], + [ + -9753495.383679323, + 5141054.414713569 + ], + [ + -9753495.357834794, + 5141054.409923568 + ], + [ + -9753495.332077798, + 5141054.404683248 + ], + [ + -9753495.30641618, + 5141054.398994205 + ], + [ + -9753495.280857759, + 5141054.39285817 + ], + [ + -9753495.255410317, + 5141054.386277014 + ], + [ + -9753495.23008161, + 5141054.379252743 + ], + [ + -9753495.204879351, + 5141054.371787493 + ], + [ + -9753495.179811217, + 5141054.363883541 + ], + [ + -9753495.154884843, + 5141054.355543293 + ], + [ + -9753495.130107824, + 5141054.34676929 + ], + [ + -9753495.105487706, + 5141054.337564205 + ], + [ + -9753495.081031987, + 5141054.327930842 + ], + [ + -9753495.05674812, + 5141054.317872134 + ], + [ + -9753495.032643499, + 5141054.307391147 + ], + [ + -9753495.00872547, + 5141054.2964910725 + ], + [ + -9753494.985001314, + 5141054.285175231 + ], + [ + -9753494.96147826, + 5141054.273447069 + ], + [ + -9753494.938163474, + 5141054.261310159 + ], + [ + -9753494.915064057, + 5141054.248768199 + ], + [ + -9753494.892187046, + 5141054.23582501 + ], + [ + -9753494.869539408, + 5141054.222484532 + ], + [ + -9753494.847128045, + 5141054.20875083 + ], + [ + -9753494.82495978, + 5141054.194628088 + ], + [ + -9753494.803041367, + 5141054.180120606 + ], + [ + -9753494.781379482, + 5141054.1652328065 + ], + [ + -9753494.759980725, + 5141054.149969221 + ], + [ + -9753494.738851614, + 5141054.134334501 + ], + [ + -9753494.717998585, + 5141054.118333409 + ], + [ + -9753494.697427988, + 5141054.101970817 + ], + [ + -9753494.677146092, + 5141054.085251712 + ], + [ + -9753494.657159071, + 5141054.068181185 + ], + [ + -9753494.637473019, + 5141054.050764436 + ], + [ + -9753494.618093928, + 5141054.0330067715 + ], + [ + -9753494.599027703, + 5141054.014913599 + ], + [ + -9753494.580280151, + 5141053.996490431 + ], + [ + -9753494.561856983, + 5141053.97774288 + ], + [ + -9753494.54376381, + 5141053.958676654 + ], + [ + -9753494.526006145, + 5141053.939297563 + ], + [ + -9753494.508589398, + 5141053.91961151 + ], + [ + -9753494.49151887, + 5141053.899624491 + ], + [ + -9753494.474799765, + 5141053.879342594 + ], + [ + -9753494.458437175, + 5141053.858771998 + ], + [ + -9753494.44243608, + 5141053.837918968 + ], + [ + -9753494.426801361, + 5141053.816789857 + ], + [ + -9753494.411537776, + 5141053.7953910995 + ], + [ + -9753494.396649975, + 5141053.773729215 + ], + [ + -9753494.382142495, + 5141053.751810803 + ], + [ + -9753494.368019752, + 5141053.729642538 + ], + [ + -9753494.35428605, + 5141053.707231173 + ], + [ + -9753494.340945574, + 5141053.684583536 + ], + [ + -9753494.328002382, + 5141053.661706525 + ], + [ + -9753494.315460423, + 5141053.638607108 + ], + [ + -9753494.303323513, + 5141053.615292322 + ], + [ + -9753494.291595351, + 5141053.591769269 + ], + [ + -9753494.28027951, + 5141053.568045113 + ], + [ + -9753494.269379435, + 5141053.544127082 + ], + [ + -9753494.258898448, + 5141053.520022462 + ], + [ + -9753494.24883974, + 5141053.495738595 + ], + [ + -9753494.239206377, + 5141053.471282877 + ], + [ + -9753494.230001291, + 5141053.4466627585 + ], + [ + -9753494.22122729, + 5141053.421885739 + ], + [ + -9753494.212887041, + 5141053.396959365 + ], + [ + -9753494.20498309, + 5141053.371891231 + ], + [ + -9753494.19751784, + 5141053.346688972 + ], + [ + -9753494.190493567, + 5141053.321360264 + ], + [ + -9753494.183912411, + 5141053.295912824 + ], + [ + -9753494.177776378, + 5141053.270354402 + ], + [ + -9753494.172087334, + 5141053.244692786 + ], + [ + -9753494.166847015, + 5141053.218935789 + ], + [ + -9753494.162057014, + 5141053.193091259 + ], + [ + -9753494.157718793, + 5141053.167167068 + ], + [ + -9753494.15383367, + 5141053.141171114 + ], + [ + -9753494.150402833, + 5141053.115111314 + ], + [ + -9753494.147427324, + 5141053.088995607 + ], + [ + -9753494.14490805, + 5141053.062831948 + ], + [ + -9753494.142845778, + 5141053.036628305 + ], + [ + -9753494.141241137, + 5141053.010392662 + ], + [ + -9753494.140094617, + 5141052.984133011 + ], + [ + -9753494.139406564, + 5141052.957857349 + ], + [ + -9753494.13917719, + 5141052.931573681 + ], + [ + -9753494.139406564, + 5141052.905290012 + ], + [ + -9753494.140094617, + 5141052.8790143505 + ], + [ + -9753494.141241137, + 5141052.852754699 + ], + [ + -9753494.142845778, + 5141052.826519056 + ], + [ + -9753494.14490805, + 5141052.800315414 + ], + [ + -9753494.147427324, + 5141052.774151755 + ], + [ + -9753494.150402833, + 5141052.748036047 + ], + [ + -9753494.15383367, + 5141052.721976248 + ], + [ + -9753494.157718793, + 5141052.695980293 + ], + [ + -9753494.162057014, + 5141052.670056102 + ], + [ + -9753494.166847015, + 5141052.644211573 + ], + [ + -9753494.172087334, + 5141052.618454576 + ], + [ + -9753494.177776378, + 5141052.592792959 + ], + [ + -9753494.183912411, + 5141052.567234538 + ], + [ + -9753494.190493567, + 5141052.541787097 + ], + [ + -9753494.19751784, + 5141052.516458389 + ], + [ + -9753494.20498309, + 5141052.49125613 + ], + [ + -9753494.212887041, + 5141052.466187996 + ], + [ + -9753494.22122729, + 5141052.441261622 + ], + [ + -9753494.230001291, + 5141052.416484603 + ], + [ + -9753494.239206377, + 5141052.391864484 + ], + [ + -9753494.24883974, + 5141052.367408766 + ], + [ + -9753494.258898448, + 5141052.343124899 + ], + [ + -9753494.269379435, + 5141052.319020279 + ], + [ + -9753494.28027951, + 5141052.295102248 + ], + [ + -9753494.291595351, + 5141052.2713780925 + ], + [ + -9753494.303323513, + 5141052.247855039 + ], + [ + -9753494.315460423, + 5141052.224540253 + ], + [ + -9753494.328002382, + 5141052.201440836 + ], + [ + -9753494.340945574, + 5141052.178563825 + ], + [ + -9753494.35428605, + 5141052.155916188 + ], + [ + -9753494.368019752, + 5141052.133504823 + ], + [ + -9753494.382142495, + 5141052.111336558 + ], + [ + -9753494.396649975, + 5141052.089418146 + ], + [ + -9753494.411537776, + 5141052.067756262 + ], + [ + -9753494.426801361, + 5141052.046357504 + ], + [ + -9753494.44243608, + 5141052.025228393 + ], + [ + -9753494.458437175, + 5141052.004375363 + ], + [ + -9753494.474799765, + 5141051.983804767 + ], + [ + -9753494.49151887, + 5141051.96352287 + ], + [ + -9753494.508589398, + 5141051.943535851 + ], + [ + -9753494.526006145, + 5141051.923849798 + ], + [ + -9753494.54376381, + 5141051.904470707 + ], + [ + -9753494.561856983, + 5141051.885404482 + ], + [ + -9753494.580280151, + 5141051.86665693 + ], + [ + -9753494.599027703, + 5141051.848233762 + ], + [ + -9753494.618093928, + 5141051.83014059 + ], + [ + -9753494.637473019, + 5141051.812382925 + ], + [ + -9753494.657159071, + 5141051.794966176 + ], + [ + -9753494.677146092, + 5141051.777895649 + ], + [ + -9753494.697427988, + 5141051.761176544 + ], + [ + -9753494.717998585, + 5141051.744813953 + ], + [ + -9753494.738851614, + 5141051.72881286 + ], + [ + -9753494.759980725, + 5141051.71317814 + ], + [ + -9753494.781379482, + 5141051.697914555 + ], + [ + -9753494.803041367, + 5141051.683026755 + ], + [ + -9753494.82495978, + 5141051.668519273 + ], + [ + -9753494.847128045, + 5141051.654396531 + ], + [ + -9753494.869539408, + 5141051.640662829 + ], + [ + -9753494.892187046, + 5141051.627322352 + ], + [ + -9753494.915064057, + 5141051.614379162 + ], + [ + -9753494.938163474, + 5141051.601837202 + ], + [ + -9753494.96147826, + 5141051.589700292 + ], + [ + -9753494.985001314, + 5141051.57797213 + ], + [ + -9753495.00872547, + 5141051.566656289 + ], + [ + -9753495.032643499, + 5141051.555756214 + ], + [ + -9753495.05674812, + 5141051.545275227 + ], + [ + -9753495.081031987, + 5141051.53521652 + ], + [ + -9753495.105487706, + 5141051.525583156 + ], + [ + -9753495.130107824, + 5141051.516378071 + ], + [ + -9753495.154884843, + 5141051.507604068 + ], + [ + -9753495.179811217, + 5141051.49926382 + ], + [ + -9753495.204879351, + 5141051.491359868 + ], + [ + -9753495.23008161, + 5141051.483894618 + ], + [ + -9753495.255410317, + 5141051.476870347 + ], + [ + -9753495.280857759, + 5141051.470289191 + ], + [ + -9753495.30641618, + 5141051.464153157 + ], + [ + -9753495.332077798, + 5141051.458464113 + ], + [ + -9753495.357834794, + 5141051.453223793 + ], + [ + -9753495.383679323, + 5141051.448433792 + ], + [ + -9753495.409603514, + 5141051.444095571 + ], + [ + -9753495.435599469, + 5141051.4402104495 + ], + [ + -9753495.461659268, + 5141051.436779612 + ], + [ + -9753495.487774976, + 5141051.433804102 + ], + [ + -9753495.513938636, + 5141051.431284829 + ], + [ + -9753495.540142277, + 5141051.429222558 + ], + [ + -9753495.56637792, + 5141051.427617917 + ], + [ + -9753495.592637572, + 5141051.426471395 + ], + [ + -9753495.618913233, + 5141051.425783344 + ], + [ + -9753495.645196902, + 5141051.425553969 + ], + [ + -9753495.67148057, + 5141051.425783344 + ], + [ + -9753495.69775623, + 5141051.426471395 + ], + [ + -9753495.724015884, + 5141051.427617917 + ], + [ + -9753495.750251526, + 5141051.429222558 + ], + [ + -9753495.776455168, + 5141051.431284829 + ], + [ + -9753495.802618828, + 5141051.433804102 + ], + [ + -9753495.828734536, + 5141051.436779612 + ], + [ + -9753495.854794335, + 5141051.4402104495 + ], + [ + -9753495.88079029, + 5141051.444095571 + ], + [ + -9753495.90671448, + 5141051.448433792 + ], + [ + -9753495.93255901, + 5141051.453223793 + ], + [ + -9753495.958316006, + 5141051.458464113 + ], + [ + -9753495.983977623, + 5141051.464153157 + ], + [ + -9753496.009536045, + 5141051.470289191 + ], + [ + -9753496.034983486, + 5141051.476870347 + ], + [ + -9753496.060312193, + 5141051.483894618 + ], + [ + -9753496.085514452, + 5141051.491359868 + ], + [ + -9753496.110582586, + 5141051.49926382 + ], + [ + -9753496.13550896, + 5141051.507604068 + ], + [ + -9753496.16028598, + 5141051.516378071 + ], + [ + -9753496.184906097, + 5141051.525583156 + ], + [ + -9753496.209361816, + 5141051.53521652 + ], + [ + -9753496.233645683, + 5141051.545275227 + ], + [ + -9753496.257750304, + 5141051.555756214 + ], + [ + -9753496.281668333, + 5141051.566656289 + ], + [ + -9753496.305392489, + 5141051.57797213 + ], + [ + -9753496.328915544, + 5141051.589700292 + ], + [ + -9753496.352230329, + 5141051.601837202 + ], + [ + -9753496.375329746, + 5141051.614379162 + ], + [ + -9753496.398206757, + 5141051.627322352 + ], + [ + -9753496.420854395, + 5141051.640662829 + ], + [ + -9753496.443265758, + 5141051.654396531 + ], + [ + -9753496.465434024, + 5141051.668519273 + ], + [ + -9753496.487352436, + 5141051.683026755 + ], + [ + -9753496.509014321, + 5141051.697914555 + ], + [ + -9753496.530413078, + 5141051.71317814 + ], + [ + -9753496.551542189, + 5141051.72881286 + ], + [ + -9753496.572395219, + 5141051.744813953 + ], + [ + -9753496.592965815, + 5141051.761176544 + ], + [ + -9753496.613247711, + 5141051.777895649 + ], + [ + -9753496.633234732, + 5141051.794966176 + ], + [ + -9753496.652920784, + 5141051.812382925 + ], + [ + -9753496.672299875, + 5141051.83014059 + ], + [ + -9753496.6913661, + 5141051.848233762 + ], + [ + -9753496.710113652, + 5141051.86665693 + ], + [ + -9753496.72853682, + 5141051.885404482 + ], + [ + -9753496.746629992, + 5141051.904470707 + ], + [ + -9753496.764387658, + 5141051.923849798 + ], + [ + -9753496.781804405, + 5141051.943535851 + ], + [ + -9753496.798874933, + 5141051.96352287 + ], + [ + -9753496.815594038, + 5141051.983804767 + ], + [ + -9753496.831956629, + 5141052.004375363 + ], + [ + -9753496.847957723, + 5141052.025228393 + ], + [ + -9753496.863592442, + 5141052.046357504 + ], + [ + -9753496.878856027, + 5141052.067756262 + ], + [ + -9753496.893743828, + 5141052.089418146 + ], + [ + -9753496.908251308, + 5141052.111336558 + ], + [ + -9753496.922374051, + 5141052.133504823 + ], + [ + -9753496.936107753, + 5141052.155916188 + ], + [ + -9753496.94944823, + 5141052.178563825 + ], + [ + -9753496.962391421, + 5141052.201440836 + ], + [ + -9753496.97493338, + 5141052.224540253 + ], + [ + -9753496.98707029, + 5141052.247855039 + ], + [ + -9753496.998798452, + 5141052.2713780925 + ], + [ + -9753497.010114294, + 5141052.295102248 + ], + [ + -9753497.021014368, + 5141052.319020279 + ], + [ + -9753497.031495355, + 5141052.343124899 + ], + [ + -9753497.041554064, + 5141052.367408766 + ], + [ + -9753497.051187426, + 5141052.391864484 + ], + [ + -9753497.060392512, + 5141052.416484603 + ], + [ + -9753497.069166513, + 5141052.441261622 + ], + [ + -9753497.077506762, + 5141052.466187996 + ], + [ + -9753497.085410714, + 5141052.49125613 + ], + [ + -9753497.092875963, + 5141052.516458389 + ], + [ + -9753497.099900236, + 5141052.541787097 + ], + [ + -9753497.106481392, + 5141052.567234538 + ], + [ + -9753497.112617426, + 5141052.592792959 + ], + [ + -9753497.11830647, + 5141052.618454576 + ], + [ + -9753497.123546788, + 5141052.644211573 + ], + [ + -9753497.12833679, + 5141052.670056102 + ], + [ + -9753497.13267501, + 5141052.695980293 + ], + [ + -9753497.136560133, + 5141052.721976248 + ], + [ + -9753497.13999097, + 5141052.748036047 + ], + [ + -9753497.142966479, + 5141052.774151755 + ], + [ + -9753497.145485753, + 5141052.800315414 + ], + [ + -9753497.147548025, + 5141052.826519056 + ], + [ + -9753497.149152666, + 5141052.852754699 + ], + [ + -9753497.150299186, + 5141052.8790143505 + ], + [ + -9753497.15098724, + 5141052.905290012 + ], + [ + -9753497.151216613, + 5141052.931573681 + ], + [ + -9753497.15098724, + 5141052.957857349 + ], + [ + -9753497.150299186, + 5141052.984133011 + ], + [ + -9753497.149152666, + 5141053.010392662 + ], + [ + -9753497.147548025, + 5141053.036628305 + ], + [ + -9753497.145485753, + 5141053.062831948 + ], + [ + -9753497.142966479, + 5141053.088995607 + ], + [ + -9753497.13999097, + 5141053.115111314 + ], + [ + -9753497.136560133, + 5141053.141171114 + ], + [ + -9753497.13267501, + 5141053.167167068 + ], + [ + -9753497.12833679, + 5141053.193091259 + ], + [ + -9753497.123546788, + 5141053.218935789 + ], + [ + -9753497.11830647, + 5141053.244692786 + ], + [ + -9753497.112617426, + 5141053.270354402 + ], + [ + -9753497.106481392, + 5141053.295912824 + ], + [ + -9753497.099900236, + 5141053.321360264 + ], + [ + -9753497.092875963, + 5141053.346688972 + ], + [ + -9753497.085410714, + 5141053.371891231 + ], + [ + -9753497.077506762, + 5141053.396959365 + ], + [ + -9753497.069166513, + 5141053.421885739 + ], + [ + -9753497.060392512, + 5141053.4466627585 + ], + [ + -9753497.051187426, + 5141053.471282877 + ], + [ + -9753497.041554064, + 5141053.495738595 + ], + [ + -9753497.031495355, + 5141053.520022462 + ], + [ + -9753497.021014368, + 5141053.544127082 + ], + [ + -9753497.010114294, + 5141053.568045113 + ], + [ + -9753496.998798452, + 5141053.591769269 + ], + [ + -9753496.98707029, + 5141053.615292322 + ], + [ + -9753496.97493338, + 5141053.638607108 + ], + [ + -9753496.962391421, + 5141053.661706525 + ], + [ + -9753496.94944823, + 5141053.684583536 + ], + [ + -9753496.936107753, + 5141053.707231173 + ], + [ + -9753496.922374051, + 5141053.729642538 + ], + [ + -9753496.908251308, + 5141053.751810803 + ], + [ + -9753496.893743828, + 5141053.773729215 + ], + [ + -9753496.878856027, + 5141053.7953910995 + ], + [ + -9753496.863592442, + 5141053.816789857 + ], + [ + -9753496.847957723, + 5141053.837918968 + ], + [ + -9753496.831956629, + 5141053.858771998 + ], + [ + -9753496.815594038, + 5141053.879342594 + ], + [ + -9753496.798874933, + 5141053.899624491 + ], + [ + -9753496.781804405, + 5141053.91961151 + ], + [ + -9753496.764387658, + 5141053.939297563 + ], + [ + -9753496.746629992, + 5141053.958676654 + ], + [ + -9753496.72853682, + 5141053.97774288 + ], + [ + -9753496.710113652, + 5141053.996490431 + ], + [ + -9753496.6913661, + 5141054.014913599 + ], + [ + -9753496.672299875, + 5141054.0330067715 + ], + [ + -9753496.652920784, + 5141054.050764436 + ], + [ + -9753496.633234732, + 5141054.068181185 + ], + [ + -9753496.613247711, + 5141054.085251712 + ], + [ + -9753496.592965815, + 5141054.101970817 + ], + [ + -9753496.572395219, + 5141054.118333409 + ], + [ + -9753496.551542189, + 5141054.134334501 + ], + [ + -9753496.530413078, + 5141054.149969221 + ], + [ + -9753496.509014321, + 5141054.1652328065 + ], + [ + -9753496.487352436, + 5141054.180120606 + ], + [ + -9753496.465434024, + 5141054.194628088 + ], + [ + -9753496.443265758, + 5141054.20875083 + ], + [ + -9753496.420854395, + 5141054.222484532 + ], + [ + -9753496.398206757, + 5141054.23582501 + ], + [ + -9753496.375329746, + 5141054.248768199 + ], + [ + -9753496.352230329, + 5141054.261310159 + ], + [ + -9753496.328915544, + 5141054.273447069 + ], + [ + -9753496.305392489, + 5141054.285175231 + ], + [ + -9753496.281668333, + 5141054.2964910725 + ], + [ + -9753496.257750304, + 5141054.307391147 + ], + [ + -9753496.233645683, + 5141054.317872134 + ], + [ + -9753496.209361816, + 5141054.327930842 + ], + [ + -9753496.184906097, + 5141054.337564205 + ], + [ + -9753496.16028598, + 5141054.34676929 + ], + [ + -9753496.13550896, + 5141054.355543293 + ], + [ + -9753496.110582586, + 5141054.363883541 + ], + [ + -9753496.085514452, + 5141054.371787493 + ], + [ + -9753496.060312193, + 5141054.379252743 + ], + [ + -9753496.034983486, + 5141054.386277014 + ], + [ + -9753496.009536045, + 5141054.39285817 + ], + [ + -9753495.983977623, + 5141054.398994205 + ], + [ + -9753495.958316006, + 5141054.404683248 + ], + [ + -9753495.93255901, + 5141054.409923568 + ], + [ + -9753495.90671448, + 5141054.414713569 + ], + [ + -9753495.88079029, + 5141054.419051791 + ], + [ + -9753495.854794335, + 5141054.422936912 + ], + [ + -9753495.828734536, + 5141054.426367749 + ], + [ + -9753495.802618828, + 5141054.429343259 + ], + [ + -9753495.776455168, + 5141054.431862532 + ], + [ + -9753495.750251526, + 5141054.4339248035 + ], + [ + -9753495.724015884, + 5141054.435529444 + ], + [ + -9753495.69775623, + 5141054.436675966 + ], + [ + -9753495.67148057, + 5141054.437364018 + ], + [ + -9753495.645196902, + 5141054.437593392 + ] + ] + ] + ] + } + }, + { + "type": "Feature", + "geometry": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + -9753489.185232624, + 5141054.557765712 + ], + [ + -9753489.158948956, + 5141054.5575363375 + ], + [ + -9753489.132673295, + 5141054.556848286 + ], + [ + -9753489.106413642, + 5141054.555701764 + ], + [ + -9753489.080178, + 5141054.554097123 + ], + [ + -9753489.053974358, + 5141054.552034852 + ], + [ + -9753489.027810698, + 5141054.549515579 + ], + [ + -9753489.00169499, + 5141054.546540069 + ], + [ + -9753488.975635191, + 5141054.543109232 + ], + [ + -9753488.949639237, + 5141054.539224111 + ], + [ + -9753488.923715046, + 5141054.534885889 + ], + [ + -9753488.897870516, + 5141054.530095888 + ], + [ + -9753488.87211352, + 5141054.524855568 + ], + [ + -9753488.846451903, + 5141054.5191665245 + ], + [ + -9753488.820893481, + 5141054.51303049 + ], + [ + -9753488.79544604, + 5141054.506449334 + ], + [ + -9753488.770117333, + 5141054.499425063 + ], + [ + -9753488.744915074, + 5141054.491959813 + ], + [ + -9753488.71984694, + 5141054.484055861 + ], + [ + -9753488.694920566, + 5141054.475715613 + ], + [ + -9753488.670143547, + 5141054.46694161 + ], + [ + -9753488.645523429, + 5141054.457736525 + ], + [ + -9753488.62106771, + 5141054.4481031615 + ], + [ + -9753488.596783843, + 5141054.438044454 + ], + [ + -9753488.572679222, + 5141054.427563467 + ], + [ + -9753488.548761193, + 5141054.416663392 + ], + [ + -9753488.525037037, + 5141054.405347551 + ], + [ + -9753488.501513982, + 5141054.393619389 + ], + [ + -9753488.478199197, + 5141054.381482479 + ], + [ + -9753488.45509978, + 5141054.368940519 + ], + [ + -9753488.432222769, + 5141054.35599733 + ], + [ + -9753488.40957513, + 5141054.342656852 + ], + [ + -9753488.387163768, + 5141054.32892315 + ], + [ + -9753488.364995502, + 5141054.314800408 + ], + [ + -9753488.34307709, + 5141054.300292926 + ], + [ + -9753488.321415205, + 5141054.285405126 + ], + [ + -9753488.300016448, + 5141054.270141541 + ], + [ + -9753488.278887337, + 5141054.254506821 + ], + [ + -9753488.258034308, + 5141054.238505729 + ], + [ + -9753488.23746371, + 5141054.222143137 + ], + [ + -9753488.217181815, + 5141054.205424032 + ], + [ + -9753488.197194794, + 5141054.188353505 + ], + [ + -9753488.177508742, + 5141054.170936756 + ], + [ + -9753488.158129651, + 5141054.153179091 + ], + [ + -9753488.139063425, + 5141054.135085919 + ], + [ + -9753488.120315874, + 5141054.116662751 + ], + [ + -9753488.101892706, + 5141054.0979152 + ], + [ + -9753488.083799534, + 5141054.078848974 + ], + [ + -9753488.066041868, + 5141054.059469883 + ], + [ + -9753488.04862512, + 5141054.03978383 + ], + [ + -9753488.031554593, + 5141054.019796811 + ], + [ + -9753488.014835488, + 5141053.999514914 + ], + [ + -9753487.998472897, + 5141053.978944318 + ], + [ + -9753487.982471803, + 5141053.958091288 + ], + [ + -9753487.966837084, + 5141053.936962177 + ], + [ + -9753487.951573499, + 5141053.915563419 + ], + [ + -9753487.936685698, + 5141053.893901535 + ], + [ + -9753487.922178218, + 5141053.871983123 + ], + [ + -9753487.908055475, + 5141053.849814858 + ], + [ + -9753487.894321773, + 5141053.827403493 + ], + [ + -9753487.880981296, + 5141053.804755856 + ], + [ + -9753487.868038105, + 5141053.781878845 + ], + [ + -9753487.855496146, + 5141053.758779428 + ], + [ + -9753487.843359236, + 5141053.735464642 + ], + [ + -9753487.831631074, + 5141053.711941589 + ], + [ + -9753487.820315233, + 5141053.688217433 + ], + [ + -9753487.809415158, + 5141053.664299402 + ], + [ + -9753487.798934171, + 5141053.640194782 + ], + [ + -9753487.788875462, + 5141053.615910915 + ], + [ + -9753487.7792421, + 5141053.591455197 + ], + [ + -9753487.770037014, + 5141053.566835078 + ], + [ + -9753487.761263013, + 5141053.542058059 + ], + [ + -9753487.752922764, + 5141053.517131685 + ], + [ + -9753487.745018812, + 5141053.492063551 + ], + [ + -9753487.737553563, + 5141053.466861292 + ], + [ + -9753487.73052929, + 5141053.441532584 + ], + [ + -9753487.723948134, + 5141053.416085144 + ], + [ + -9753487.7178121, + 5141053.390526722 + ], + [ + -9753487.712123057, + 5141053.364865106 + ], + [ + -9753487.706882738, + 5141053.339108109 + ], + [ + -9753487.702092737, + 5141053.313263579 + ], + [ + -9753487.697754515, + 5141053.287339388 + ], + [ + -9753487.693869393, + 5141053.2613434335 + ], + [ + -9753487.690438556, + 5141053.235283634 + ], + [ + -9753487.687463047, + 5141053.209167927 + ], + [ + -9753487.684943773, + 5141053.1830042675 + ], + [ + -9753487.6828815, + 5141053.156800625 + ], + [ + -9753487.68127686, + 5141053.130564982 + ], + [ + -9753487.68013034, + 5141053.104305331 + ], + [ + -9753487.679442286, + 5141053.078029669 + ], + [ + -9753487.679212913, + 5141053.051746001 + ], + [ + -9753487.679442286, + 5141053.025462332 + ], + [ + -9753487.68013034, + 5141052.99918667 + ], + [ + -9753487.68127686, + 5141052.972927019 + ], + [ + -9753487.6828815, + 5141052.946691376 + ], + [ + -9753487.684943773, + 5141052.920487734 + ], + [ + -9753487.687463047, + 5141052.8943240745 + ], + [ + -9753487.690438556, + 5141052.868208367 + ], + [ + -9753487.693869393, + 5141052.842148568 + ], + [ + -9753487.697754515, + 5141052.816152613 + ], + [ + -9753487.702092737, + 5141052.790228422 + ], + [ + -9753487.706882738, + 5141052.7643838925 + ], + [ + -9753487.712123057, + 5141052.7386268955 + ], + [ + -9753487.7178121, + 5141052.712965279 + ], + [ + -9753487.723948134, + 5141052.6874068575 + ], + [ + -9753487.73052929, + 5141052.661959417 + ], + [ + -9753487.737553563, + 5141052.636630709 + ], + [ + -9753487.745018812, + 5141052.61142845 + ], + [ + -9753487.752922764, + 5141052.586360316 + ], + [ + -9753487.761263013, + 5141052.561433942 + ], + [ + -9753487.770037014, + 5141052.536656923 + ], + [ + -9753487.7792421, + 5141052.512036804 + ], + [ + -9753487.788875462, + 5141052.487581086 + ], + [ + -9753487.798934171, + 5141052.463297219 + ], + [ + -9753487.809415158, + 5141052.439192599 + ], + [ + -9753487.820315233, + 5141052.415274568 + ], + [ + -9753487.831631074, + 5141052.391550412 + ], + [ + -9753487.843359236, + 5141052.368027359 + ], + [ + -9753487.855496146, + 5141052.344712573 + ], + [ + -9753487.868038105, + 5141052.321613156 + ], + [ + -9753487.880981296, + 5141052.298736145 + ], + [ + -9753487.894321773, + 5141052.276088508 + ], + [ + -9753487.908055475, + 5141052.253677143 + ], + [ + -9753487.922178218, + 5141052.231508878 + ], + [ + -9753487.936685698, + 5141052.209590466 + ], + [ + -9753487.951573499, + 5141052.187928582 + ], + [ + -9753487.966837084, + 5141052.166529824 + ], + [ + -9753487.982471803, + 5141052.145400713 + ], + [ + -9753487.998472897, + 5141052.124547683 + ], + [ + -9753488.014835488, + 5141052.103977087 + ], + [ + -9753488.031554593, + 5141052.08369519 + ], + [ + -9753488.04862512, + 5141052.063708171 + ], + [ + -9753488.066041868, + 5141052.044022118 + ], + [ + -9753488.083799534, + 5141052.024643027 + ], + [ + -9753488.101892706, + 5141052.0055768015 + ], + [ + -9753488.120315874, + 5141051.98682925 + ], + [ + -9753488.139063425, + 5141051.968406082 + ], + [ + -9753488.158129651, + 5141051.95031291 + ], + [ + -9753488.177508742, + 5141051.932555245 + ], + [ + -9753488.197194794, + 5141051.915138496 + ], + [ + -9753488.217181815, + 5141051.898067969 + ], + [ + -9753488.23746371, + 5141051.881348864 + ], + [ + -9753488.258034308, + 5141051.8649862725 + ], + [ + -9753488.278887337, + 5141051.84898518 + ], + [ + -9753488.300016448, + 5141051.83335046 + ], + [ + -9753488.321415205, + 5141051.818086875 + ], + [ + -9753488.34307709, + 5141051.803199075 + ], + [ + -9753488.364995502, + 5141051.788691593 + ], + [ + -9753488.387163768, + 5141051.774568851 + ], + [ + -9753488.40957513, + 5141051.760835149 + ], + [ + -9753488.432222769, + 5141051.7474946715 + ], + [ + -9753488.45509978, + 5141051.734551482 + ], + [ + -9753488.478199197, + 5141051.722009522 + ], + [ + -9753488.501513982, + 5141051.709872612 + ], + [ + -9753488.525037037, + 5141051.69814445 + ], + [ + -9753488.548761193, + 5141051.686828609 + ], + [ + -9753488.572679222, + 5141051.675928534 + ], + [ + -9753488.596783843, + 5141051.665447547 + ], + [ + -9753488.62106771, + 5141051.65538884 + ], + [ + -9753488.645523429, + 5141051.645755476 + ], + [ + -9753488.670143547, + 5141051.636550391 + ], + [ + -9753488.694920566, + 5141051.627776388 + ], + [ + -9753488.71984694, + 5141051.61943614 + ], + [ + -9753488.744915074, + 5141051.611532188 + ], + [ + -9753488.770117333, + 5141051.604066938 + ], + [ + -9753488.79544604, + 5141051.597042667 + ], + [ + -9753488.820893481, + 5141051.590461511 + ], + [ + -9753488.846451903, + 5141051.584325477 + ], + [ + -9753488.87211352, + 5141051.578636433 + ], + [ + -9753488.897870516, + 5141051.573396113 + ], + [ + -9753488.923715046, + 5141051.568606112 + ], + [ + -9753488.949639237, + 5141051.5642678905 + ], + [ + -9753488.975635191, + 5141051.560382769 + ], + [ + -9753489.00169499, + 5141051.556951932 + ], + [ + -9753489.027810698, + 5141051.553976422 + ], + [ + -9753489.053974358, + 5141051.551457149 + ], + [ + -9753489.080178, + 5141051.549394878 + ], + [ + -9753489.106413642, + 5141051.547790237 + ], + [ + -9753489.132673295, + 5141051.546643715 + ], + [ + -9753489.158948956, + 5141051.545955664 + ], + [ + -9753489.185232624, + 5141051.545726289 + ], + [ + -9753489.211516293, + 5141051.545955664 + ], + [ + -9753489.237791954, + 5141051.546643715 + ], + [ + -9753489.264051607, + 5141051.547790237 + ], + [ + -9753489.290287249, + 5141051.549394878 + ], + [ + -9753489.31649089, + 5141051.551457149 + ], + [ + -9753489.34265455, + 5141051.553976422 + ], + [ + -9753489.368770259, + 5141051.556951932 + ], + [ + -9753489.394830057, + 5141051.560382769 + ], + [ + -9753489.420826012, + 5141051.5642678905 + ], + [ + -9753489.446750203, + 5141051.568606112 + ], + [ + -9753489.472594732, + 5141051.573396113 + ], + [ + -9753489.498351729, + 5141051.578636433 + ], + [ + -9753489.524013346, + 5141051.584325477 + ], + [ + -9753489.549571767, + 5141051.590461511 + ], + [ + -9753489.575019209, + 5141051.597042667 + ], + [ + -9753489.600347916, + 5141051.604066938 + ], + [ + -9753489.625550175, + 5141051.611532188 + ], + [ + -9753489.65061831, + 5141051.61943614 + ], + [ + -9753489.675544683, + 5141051.627776388 + ], + [ + -9753489.700321702, + 5141051.636550391 + ], + [ + -9753489.72494182, + 5141051.645755476 + ], + [ + -9753489.749397539, + 5141051.65538884 + ], + [ + -9753489.773681406, + 5141051.665447547 + ], + [ + -9753489.797786027, + 5141051.675928534 + ], + [ + -9753489.821704056, + 5141051.686828609 + ], + [ + -9753489.845428212, + 5141051.69814445 + ], + [ + -9753489.868951267, + 5141051.709872612 + ], + [ + -9753489.892266052, + 5141051.722009522 + ], + [ + -9753489.915365469, + 5141051.734551482 + ], + [ + -9753489.93824248, + 5141051.7474946715 + ], + [ + -9753489.960890118, + 5141051.760835149 + ], + [ + -9753489.983301481, + 5141051.774568851 + ], + [ + -9753490.005469747, + 5141051.788691593 + ], + [ + -9753490.02738816, + 5141051.803199075 + ], + [ + -9753490.049050044, + 5141051.818086875 + ], + [ + -9753490.0704488, + 5141051.83335046 + ], + [ + -9753490.091577912, + 5141051.84898518 + ], + [ + -9753490.112430941, + 5141051.8649862725 + ], + [ + -9753490.133001538, + 5141051.881348864 + ], + [ + -9753490.153283434, + 5141051.898067969 + ], + [ + -9753490.173270455, + 5141051.915138496 + ], + [ + -9753490.192956507, + 5141051.932555245 + ], + [ + -9753490.212335598, + 5141051.95031291 + ], + [ + -9753490.231401823, + 5141051.968406082 + ], + [ + -9753490.250149375, + 5141051.98682925 + ], + [ + -9753490.268572543, + 5141052.0055768015 + ], + [ + -9753490.286665715, + 5141052.024643027 + ], + [ + -9753490.30442338, + 5141052.044022118 + ], + [ + -9753490.321840128, + 5141052.063708171 + ], + [ + -9753490.338910656, + 5141052.08369519 + ], + [ + -9753490.35562976, + 5141052.103977087 + ], + [ + -9753490.371992351, + 5141052.124547683 + ], + [ + -9753490.387993446, + 5141052.145400713 + ], + [ + -9753490.403628165, + 5141052.166529824 + ], + [ + -9753490.41889175, + 5141052.187928582 + ], + [ + -9753490.43377955, + 5141052.209590466 + ], + [ + -9753490.44828703, + 5141052.231508878 + ], + [ + -9753490.462409774, + 5141052.253677143 + ], + [ + -9753490.476143476, + 5141052.276088508 + ], + [ + -9753490.489483953, + 5141052.298736145 + ], + [ + -9753490.502427144, + 5141052.321613156 + ], + [ + -9753490.514969103, + 5141052.344712573 + ], + [ + -9753490.527106013, + 5141052.368027359 + ], + [ + -9753490.538834175, + 5141052.391550412 + ], + [ + -9753490.550150016, + 5141052.415274568 + ], + [ + -9753490.561050091, + 5141052.439192599 + ], + [ + -9753490.571531078, + 5141052.463297219 + ], + [ + -9753490.581589786, + 5141052.487581086 + ], + [ + -9753490.591223149, + 5141052.512036804 + ], + [ + -9753490.600428235, + 5141052.536656923 + ], + [ + -9753490.609202236, + 5141052.561433942 + ], + [ + -9753490.617542485, + 5141052.586360316 + ], + [ + -9753490.625446437, + 5141052.61142845 + ], + [ + -9753490.632911686, + 5141052.636630709 + ], + [ + -9753490.63993596, + 5141052.661959417 + ], + [ + -9753490.646517115, + 5141052.6874068575 + ], + [ + -9753490.652653148, + 5141052.712965279 + ], + [ + -9753490.658342192, + 5141052.7386268955 + ], + [ + -9753490.663582511, + 5141052.7643838925 + ], + [ + -9753490.668372512, + 5141052.790228422 + ], + [ + -9753490.672710733, + 5141052.816152613 + ], + [ + -9753490.676595856, + 5141052.842148568 + ], + [ + -9753490.680026693, + 5141052.868208367 + ], + [ + -9753490.683002202, + 5141052.8943240745 + ], + [ + -9753490.685521476, + 5141052.920487734 + ], + [ + -9753490.687583748, + 5141052.946691376 + ], + [ + -9753490.68918839, + 5141052.972927019 + ], + [ + -9753490.690334909, + 5141052.99918667 + ], + [ + -9753490.691022962, + 5141053.025462332 + ], + [ + -9753490.691252336, + 5141053.051746001 + ], + [ + -9753490.691022962, + 5141053.078029669 + ], + [ + -9753490.690334909, + 5141053.104305331 + ], + [ + -9753490.68918839, + 5141053.130564982 + ], + [ + -9753490.687583748, + 5141053.156800625 + ], + [ + -9753490.685521476, + 5141053.1830042675 + ], + [ + -9753490.683002202, + 5141053.209167927 + ], + [ + -9753490.680026693, + 5141053.235283634 + ], + [ + -9753490.676595856, + 5141053.2613434335 + ], + [ + -9753490.672710733, + 5141053.287339388 + ], + [ + -9753490.668372512, + 5141053.313263579 + ], + [ + -9753490.663582511, + 5141053.339108109 + ], + [ + -9753490.658342192, + 5141053.364865106 + ], + [ + -9753490.652653148, + 5141053.390526722 + ], + [ + -9753490.646517115, + 5141053.416085144 + ], + [ + -9753490.63993596, + 5141053.441532584 + ], + [ + -9753490.632911686, + 5141053.466861292 + ], + [ + -9753490.625446437, + 5141053.492063551 + ], + [ + -9753490.617542485, + 5141053.517131685 + ], + [ + -9753490.609202236, + 5141053.542058059 + ], + [ + -9753490.600428235, + 5141053.566835078 + ], + [ + -9753490.591223149, + 5141053.591455197 + ], + [ + -9753490.581589786, + 5141053.615910915 + ], + [ + -9753490.571531078, + 5141053.640194782 + ], + [ + -9753490.561050091, + 5141053.664299402 + ], + [ + -9753490.550150016, + 5141053.688217433 + ], + [ + -9753490.538834175, + 5141053.711941589 + ], + [ + -9753490.527106013, + 5141053.735464642 + ], + [ + -9753490.514969103, + 5141053.758779428 + ], + [ + -9753490.502427144, + 5141053.781878845 + ], + [ + -9753490.489483953, + 5141053.804755856 + ], + [ + -9753490.476143476, + 5141053.827403493 + ], + [ + -9753490.462409774, + 5141053.849814858 + ], + [ + -9753490.44828703, + 5141053.871983123 + ], + [ + -9753490.43377955, + 5141053.893901535 + ], + [ + -9753490.41889175, + 5141053.915563419 + ], + [ + -9753490.403628165, + 5141053.936962177 + ], + [ + -9753490.387993446, + 5141053.958091288 + ], + [ + -9753490.371992351, + 5141053.978944318 + ], + [ + -9753490.35562976, + 5141053.999514914 + ], + [ + -9753490.338910656, + 5141054.019796811 + ], + [ + -9753490.321840128, + 5141054.03978383 + ], + [ + -9753490.30442338, + 5141054.059469883 + ], + [ + -9753490.286665715, + 5141054.078848974 + ], + [ + -9753490.268572543, + 5141054.0979152 + ], + [ + -9753490.250149375, + 5141054.116662751 + ], + [ + -9753490.231401823, + 5141054.135085919 + ], + [ + -9753490.212335598, + 5141054.153179091 + ], + [ + -9753490.192956507, + 5141054.170936756 + ], + [ + -9753490.173270455, + 5141054.188353505 + ], + [ + -9753490.153283434, + 5141054.205424032 + ], + [ + -9753490.133001538, + 5141054.222143137 + ], + [ + -9753490.112430941, + 5141054.238505729 + ], + [ + -9753490.091577912, + 5141054.254506821 + ], + [ + -9753490.0704488, + 5141054.270141541 + ], + [ + -9753490.049050044, + 5141054.285405126 + ], + [ + -9753490.02738816, + 5141054.300292926 + ], + [ + -9753490.005469747, + 5141054.314800408 + ], + [ + -9753489.983301481, + 5141054.32892315 + ], + [ + -9753489.960890118, + 5141054.342656852 + ], + [ + -9753489.93824248, + 5141054.35599733 + ], + [ + -9753489.915365469, + 5141054.368940519 + ], + [ + -9753489.892266052, + 5141054.381482479 + ], + [ + -9753489.868951267, + 5141054.393619389 + ], + [ + -9753489.845428212, + 5141054.405347551 + ], + [ + -9753489.821704056, + 5141054.416663392 + ], + [ + -9753489.797786027, + 5141054.427563467 + ], + [ + -9753489.773681406, + 5141054.438044454 + ], + [ + -9753489.749397539, + 5141054.4481031615 + ], + [ + -9753489.72494182, + 5141054.457736525 + ], + [ + -9753489.700321702, + 5141054.46694161 + ], + [ + -9753489.675544683, + 5141054.475715613 + ], + [ + -9753489.65061831, + 5141054.484055861 + ], + [ + -9753489.625550175, + 5141054.491959813 + ], + [ + -9753489.600347916, + 5141054.499425063 + ], + [ + -9753489.575019209, + 5141054.506449334 + ], + [ + -9753489.549571767, + 5141054.51303049 + ], + [ + -9753489.524013346, + 5141054.5191665245 + ], + [ + -9753489.498351729, + 5141054.524855568 + ], + [ + -9753489.472594732, + 5141054.530095888 + ], + [ + -9753489.446750203, + 5141054.534885889 + ], + [ + -9753489.420826012, + 5141054.539224111 + ], + [ + -9753489.394830057, + 5141054.543109232 + ], + [ + -9753489.368770259, + 5141054.546540069 + ], + [ + -9753489.34265455, + 5141054.549515579 + ], + [ + -9753489.31649089, + 5141054.552034852 + ], + [ + -9753489.290287249, + 5141054.554097123 + ], + [ + -9753489.264051607, + 5141054.555701764 + ], + [ + -9753489.237791954, + 5141054.556848286 + ], + [ + -9753489.211516293, + 5141054.5575363375 + ], + [ + -9753489.185232624, + 5141054.557765712 + ] + ] + ] + ] + } + }, + { + "type": "Feature", + "geometry": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + -9753482.474889262, + 5141054.692873296 + ], + [ + -9753482.448605593, + 5141054.692643922 + ], + [ + -9753482.422329932, + 5141054.69195587 + ], + [ + -9753482.39607028, + 5141054.690809349 + ], + [ + -9753482.369834637, + 5141054.689204708 + ], + [ + -9753482.343630996, + 5141054.687142436 + ], + [ + -9753482.317467336, + 5141054.684623163 + ], + [ + -9753482.291351628, + 5141054.681647654 + ], + [ + -9753482.265291829, + 5141054.678216816 + ], + [ + -9753482.239295874, + 5141054.674331695 + ], + [ + -9753482.213371683, + 5141054.669993473 + ], + [ + -9753482.187527154, + 5141054.665203473 + ], + [ + -9753482.161770158, + 5141054.659963152 + ], + [ + -9753482.13610854, + 5141054.654274109 + ], + [ + -9753482.110550119, + 5141054.648138074 + ], + [ + -9753482.085102677, + 5141054.641556919 + ], + [ + -9753482.05977397, + 5141054.634532647 + ], + [ + -9753482.034571711, + 5141054.627067397 + ], + [ + -9753482.009503577, + 5141054.619163445 + ], + [ + -9753481.984577203, + 5141054.610823197 + ], + [ + -9753481.959800184, + 5141054.602049194 + ], + [ + -9753481.935180066, + 5141054.592844109 + ], + [ + -9753481.910724347, + 5141054.583210746 + ], + [ + -9753481.88644048, + 5141054.573152038 + ], + [ + -9753481.862335859, + 5141054.562671051 + ], + [ + -9753481.83841783, + 5141054.551770977 + ], + [ + -9753481.814693674, + 5141054.5404551355 + ], + [ + -9753481.79117062, + 5141054.528726974 + ], + [ + -9753481.767855834, + 5141054.516590063 + ], + [ + -9753481.744756417, + 5141054.5040481035 + ], + [ + -9753481.721879406, + 5141054.491104914 + ], + [ + -9753481.699231768, + 5141054.477764436 + ], + [ + -9753481.676820405, + 5141054.464030734 + ], + [ + -9753481.65465214, + 5141054.449907992 + ], + [ + -9753481.632733727, + 5141054.43540051 + ], + [ + -9753481.611071842, + 5141054.420512711 + ], + [ + -9753481.589673085, + 5141054.405249125 + ], + [ + -9753481.568543974, + 5141054.389614405 + ], + [ + -9753481.547690945, + 5141054.373613313 + ], + [ + -9753481.527120348, + 5141054.357250721 + ], + [ + -9753481.506838452, + 5141054.3405316165 + ], + [ + -9753481.486851431, + 5141054.323461089 + ], + [ + -9753481.467165379, + 5141054.30604434 + ], + [ + -9753481.447786288, + 5141054.288286676 + ], + [ + -9753481.428720063, + 5141054.270193503 + ], + [ + -9753481.409972511, + 5141054.251770335 + ], + [ + -9753481.391549343, + 5141054.233022784 + ], + [ + -9753481.37345617, + 5141054.213956558 + ], + [ + -9753481.355698505, + 5141054.194577468 + ], + [ + -9753481.338281758, + 5141054.174891414 + ], + [ + -9753481.32121123, + 5141054.154904395 + ], + [ + -9753481.304492125, + 5141054.134622498 + ], + [ + -9753481.288129535, + 5141054.114051903 + ], + [ + -9753481.27212844, + 5141054.093198872 + ], + [ + -9753481.256493721, + 5141054.072069761 + ], + [ + -9753481.241230136, + 5141054.050671004 + ], + [ + -9753481.226342335, + 5141054.02900912 + ], + [ + -9753481.211834855, + 5141054.007090707 + ], + [ + -9753481.197712112, + 5141053.984922443 + ], + [ + -9753481.18397841, + 5141053.9625110775 + ], + [ + -9753481.170637934, + 5141053.939863441 + ], + [ + -9753481.157694742, + 5141053.916986429 + ], + [ + -9753481.145152783, + 5141053.893887012 + ], + [ + -9753481.133015873, + 5141053.870572226 + ], + [ + -9753481.121287711, + 5141053.847049173 + ], + [ + -9753481.10997187, + 5141053.8233250175 + ], + [ + -9753481.099071795, + 5141053.799406987 + ], + [ + -9753481.088590808, + 5141053.775302366 + ], + [ + -9753481.0785321, + 5141053.751018499 + ], + [ + -9753481.068898737, + 5141053.726562781 + ], + [ + -9753481.059693651, + 5141053.701942663 + ], + [ + -9753481.05091965, + 5141053.677165643 + ], + [ + -9753481.042579401, + 5141053.65223927 + ], + [ + -9753481.03467545, + 5141053.6271711355 + ], + [ + -9753481.0272102, + 5141053.601968876 + ], + [ + -9753481.020185927, + 5141053.576640168 + ], + [ + -9753481.013604771, + 5141053.551192728 + ], + [ + -9753481.007468738, + 5141053.5256343065 + ], + [ + -9753481.001779694, + 5141053.49997269 + ], + [ + -9753480.996539375, + 5141053.474215693 + ], + [ + -9753480.991749374, + 5141053.448371164 + ], + [ + -9753480.987411153, + 5141053.422446973 + ], + [ + -9753480.98352603, + 5141053.396451018 + ], + [ + -9753480.980095193, + 5141053.370391218 + ], + [ + -9753480.977119684, + 5141053.344275511 + ], + [ + -9753480.97460041, + 5141053.318111852 + ], + [ + -9753480.972538138, + 5141053.291908209 + ], + [ + -9753480.970933497, + 5141053.265672566 + ], + [ + -9753480.969786977, + 5141053.239412915 + ], + [ + -9753480.969098924, + 5141053.213137253 + ], + [ + -9753480.96886955, + 5141053.186853585 + ], + [ + -9753480.969098924, + 5141053.1605699165 + ], + [ + -9753480.969786977, + 5141053.134294255 + ], + [ + -9753480.970933497, + 5141053.108034603 + ], + [ + -9753480.972538138, + 5141053.08179896 + ], + [ + -9753480.97460041, + 5141053.055595318 + ], + [ + -9753480.977119684, + 5141053.029431659 + ], + [ + -9753480.980095193, + 5141053.003315952 + ], + [ + -9753480.98352603, + 5141052.977256152 + ], + [ + -9753480.987411153, + 5141052.951260197 + ], + [ + -9753480.991749374, + 5141052.925336006 + ], + [ + -9753480.996539375, + 5141052.899491477 + ], + [ + -9753481.001779694, + 5141052.87373448 + ], + [ + -9753481.007468738, + 5141052.848072863 + ], + [ + -9753481.013604771, + 5141052.822514442 + ], + [ + -9753481.020185927, + 5141052.797067001 + ], + [ + -9753481.0272102, + 5141052.771738294 + ], + [ + -9753481.03467545, + 5141052.746536034 + ], + [ + -9753481.042579401, + 5141052.7214679 + ], + [ + -9753481.05091965, + 5141052.696541526 + ], + [ + -9753481.059693651, + 5141052.671764507 + ], + [ + -9753481.068898737, + 5141052.647144388 + ], + [ + -9753481.0785321, + 5141052.622688671 + ], + [ + -9753481.088590808, + 5141052.598404803 + ], + [ + -9753481.099071795, + 5141052.574300183 + ], + [ + -9753481.10997187, + 5141052.550382152 + ], + [ + -9753481.121287711, + 5141052.526657997 + ], + [ + -9753481.133015873, + 5141052.503134944 + ], + [ + -9753481.145152783, + 5141052.479820157 + ], + [ + -9753481.157694742, + 5141052.456720741 + ], + [ + -9753481.170637934, + 5141052.433843729 + ], + [ + -9753481.18397841, + 5141052.411196092 + ], + [ + -9753481.197712112, + 5141052.388784727 + ], + [ + -9753481.211834855, + 5141052.366616462 + ], + [ + -9753481.226342335, + 5141052.34469805 + ], + [ + -9753481.241230136, + 5141052.323036166 + ], + [ + -9753481.256493721, + 5141052.301637408 + ], + [ + -9753481.27212844, + 5141052.2805082975 + ], + [ + -9753481.288129535, + 5141052.259655267 + ], + [ + -9753481.304492125, + 5141052.239084671 + ], + [ + -9753481.32121123, + 5141052.218802774 + ], + [ + -9753481.338281758, + 5141052.198815756 + ], + [ + -9753481.355698505, + 5141052.179129702 + ], + [ + -9753481.37345617, + 5141052.1597506115 + ], + [ + -9753481.391549343, + 5141052.140684386 + ], + [ + -9753481.409972511, + 5141052.121936834 + ], + [ + -9753481.428720063, + 5141052.103513666 + ], + [ + -9753481.447786288, + 5141052.085420494 + ], + [ + -9753481.467165379, + 5141052.0676628295 + ], + [ + -9753481.486851431, + 5141052.05024608 + ], + [ + -9753481.506838452, + 5141052.033175553 + ], + [ + -9753481.527120348, + 5141052.0164564485 + ], + [ + -9753481.547690945, + 5141052.000093857 + ], + [ + -9753481.568543974, + 5141051.984092765 + ], + [ + -9753481.589673085, + 5141051.968458044 + ], + [ + -9753481.611071842, + 5141051.953194459 + ], + [ + -9753481.632733727, + 5141051.938306659 + ], + [ + -9753481.65465214, + 5141051.923799178 + ], + [ + -9753481.676820405, + 5141051.909676435 + ], + [ + -9753481.699231768, + 5141051.895942734 + ], + [ + -9753481.721879406, + 5141051.882602256 + ], + [ + -9753481.744756417, + 5141051.869659066 + ], + [ + -9753481.767855834, + 5141051.857117106 + ], + [ + -9753481.79117062, + 5141051.844980196 + ], + [ + -9753481.814693674, + 5141051.833252034 + ], + [ + -9753481.83841783, + 5141051.821936193 + ], + [ + -9753481.862335859, + 5141051.811036118 + ], + [ + -9753481.88644048, + 5141051.800555131 + ], + [ + -9753481.910724347, + 5141051.790496424 + ], + [ + -9753481.935180066, + 5141051.780863061 + ], + [ + -9753481.959800184, + 5141051.771657975 + ], + [ + -9753481.984577203, + 5141051.762883972 + ], + [ + -9753482.009503577, + 5141051.7545437245 + ], + [ + -9753482.034571711, + 5141051.746639772 + ], + [ + -9753482.05977397, + 5141051.739174522 + ], + [ + -9753482.085102677, + 5141051.732150251 + ], + [ + -9753482.110550119, + 5141051.725569095 + ], + [ + -9753482.13610854, + 5141051.719433061 + ], + [ + -9753482.161770158, + 5141051.713744017 + ], + [ + -9753482.187527154, + 5141051.708503697 + ], + [ + -9753482.213371683, + 5141051.703713696 + ], + [ + -9753482.239295874, + 5141051.699375475 + ], + [ + -9753482.265291829, + 5141051.695490354 + ], + [ + -9753482.291351628, + 5141051.692059516 + ], + [ + -9753482.317467336, + 5141051.6890840065 + ], + [ + -9753482.343630996, + 5141051.686564733 + ], + [ + -9753482.369834637, + 5141051.684502462 + ], + [ + -9753482.39607028, + 5141051.682897821 + ], + [ + -9753482.422329932, + 5141051.6817513 + ], + [ + -9753482.448605593, + 5141051.681063248 + ], + [ + -9753482.474889262, + 5141051.680833873 + ], + [ + -9753482.50117293, + 5141051.681063248 + ], + [ + -9753482.52744859, + 5141051.6817513 + ], + [ + -9753482.553708244, + 5141051.682897821 + ], + [ + -9753482.579943886, + 5141051.684502462 + ], + [ + -9753482.606147528, + 5141051.686564733 + ], + [ + -9753482.632311188, + 5141051.6890840065 + ], + [ + -9753482.658426896, + 5141051.692059516 + ], + [ + -9753482.684486695, + 5141051.695490354 + ], + [ + -9753482.71048265, + 5141051.699375475 + ], + [ + -9753482.73640684, + 5141051.703713696 + ], + [ + -9753482.76225137, + 5141051.708503697 + ], + [ + -9753482.788008366, + 5141051.713744017 + ], + [ + -9753482.813669983, + 5141051.719433061 + ], + [ + -9753482.839228405, + 5141051.725569095 + ], + [ + -9753482.864675846, + 5141051.732150251 + ], + [ + -9753482.890004553, + 5141051.739174522 + ], + [ + -9753482.915206812, + 5141051.746639772 + ], + [ + -9753482.940274946, + 5141051.7545437245 + ], + [ + -9753482.96520132, + 5141051.762883972 + ], + [ + -9753482.98997834, + 5141051.771657975 + ], + [ + -9753483.014598457, + 5141051.780863061 + ], + [ + -9753483.039054176, + 5141051.790496424 + ], + [ + -9753483.063338043, + 5141051.800555131 + ], + [ + -9753483.087442664, + 5141051.811036118 + ], + [ + -9753483.111360693, + 5141051.821936193 + ], + [ + -9753483.135084849, + 5141051.833252034 + ], + [ + -9753483.158607904, + 5141051.844980196 + ], + [ + -9753483.18192269, + 5141051.857117106 + ], + [ + -9753483.205022106, + 5141051.869659066 + ], + [ + -9753483.227899117, + 5141051.882602256 + ], + [ + -9753483.250546755, + 5141051.895942734 + ], + [ + -9753483.272958118, + 5141051.909676435 + ], + [ + -9753483.295126384, + 5141051.923799178 + ], + [ + -9753483.317044796, + 5141051.938306659 + ], + [ + -9753483.338706682, + 5141051.953194459 + ], + [ + -9753483.360105438, + 5141051.968458044 + ], + [ + -9753483.381234549, + 5141051.984092765 + ], + [ + -9753483.402087579, + 5141052.000093857 + ], + [ + -9753483.422658175, + 5141052.0164564485 + ], + [ + -9753483.442940071, + 5141052.033175553 + ], + [ + -9753483.462927092, + 5141052.05024608 + ], + [ + -9753483.482613144, + 5141052.0676628295 + ], + [ + -9753483.501992235, + 5141052.085420494 + ], + [ + -9753483.52105846, + 5141052.103513666 + ], + [ + -9753483.539806012, + 5141052.121936834 + ], + [ + -9753483.55822918, + 5141052.140684386 + ], + [ + -9753483.576322353, + 5141052.1597506115 + ], + [ + -9753483.594080018, + 5141052.179129702 + ], + [ + -9753483.611496765, + 5141052.198815756 + ], + [ + -9753483.628567293, + 5141052.218802774 + ], + [ + -9753483.645286398, + 5141052.239084671 + ], + [ + -9753483.661648989, + 5141052.259655267 + ], + [ + -9753483.677650083, + 5141052.2805082975 + ], + [ + -9753483.693284802, + 5141052.301637408 + ], + [ + -9753483.708548388, + 5141052.323036166 + ], + [ + -9753483.723436188, + 5141052.34469805 + ], + [ + -9753483.737943668, + 5141052.366616462 + ], + [ + -9753483.752066411, + 5141052.388784727 + ], + [ + -9753483.765800113, + 5141052.411196092 + ], + [ + -9753483.77914059, + 5141052.433843729 + ], + [ + -9753483.792083781, + 5141052.456720741 + ], + [ + -9753483.80462574, + 5141052.479820157 + ], + [ + -9753483.81676265, + 5141052.503134944 + ], + [ + -9753483.828490812, + 5141052.526657997 + ], + [ + -9753483.839806654, + 5141052.550382152 + ], + [ + -9753483.850706728, + 5141052.574300183 + ], + [ + -9753483.861187715, + 5141052.598404803 + ], + [ + -9753483.871246424, + 5141052.622688671 + ], + [ + -9753483.880879786, + 5141052.647144388 + ], + [ + -9753483.890084872, + 5141052.671764507 + ], + [ + -9753483.898858873, + 5141052.696541526 + ], + [ + -9753483.907199122, + 5141052.7214679 + ], + [ + -9753483.915103074, + 5141052.746536034 + ], + [ + -9753483.922568323, + 5141052.771738294 + ], + [ + -9753483.929592596, + 5141052.797067001 + ], + [ + -9753483.936173752, + 5141052.822514442 + ], + [ + -9753483.942309786, + 5141052.848072863 + ], + [ + -9753483.94799883, + 5141052.87373448 + ], + [ + -9753483.953239148, + 5141052.899491477 + ], + [ + -9753483.95802915, + 5141052.925336006 + ], + [ + -9753483.96236737, + 5141052.951260197 + ], + [ + -9753483.966252493, + 5141052.977256152 + ], + [ + -9753483.96968333, + 5141053.003315952 + ], + [ + -9753483.97265884, + 5141053.029431659 + ], + [ + -9753483.975178113, + 5141053.055595318 + ], + [ + -9753483.977240385, + 5141053.08179896 + ], + [ + -9753483.978845026, + 5141053.108034603 + ], + [ + -9753483.979991546, + 5141053.134294255 + ], + [ + -9753483.9806796, + 5141053.1605699165 + ], + [ + -9753483.980908973, + 5141053.186853585 + ], + [ + -9753483.9806796, + 5141053.213137253 + ], + [ + -9753483.979991546, + 5141053.239412915 + ], + [ + -9753483.978845026, + 5141053.265672566 + ], + [ + -9753483.977240385, + 5141053.291908209 + ], + [ + -9753483.975178113, + 5141053.318111852 + ], + [ + -9753483.97265884, + 5141053.344275511 + ], + [ + -9753483.96968333, + 5141053.370391218 + ], + [ + -9753483.966252493, + 5141053.396451018 + ], + [ + -9753483.96236737, + 5141053.422446973 + ], + [ + -9753483.95802915, + 5141053.448371164 + ], + [ + -9753483.953239148, + 5141053.474215693 + ], + [ + -9753483.94799883, + 5141053.49997269 + ], + [ + -9753483.942309786, + 5141053.5256343065 + ], + [ + -9753483.936173752, + 5141053.551192728 + ], + [ + -9753483.929592596, + 5141053.576640168 + ], + [ + -9753483.922568323, + 5141053.601968876 + ], + [ + -9753483.915103074, + 5141053.6271711355 + ], + [ + -9753483.907199122, + 5141053.65223927 + ], + [ + -9753483.898858873, + 5141053.677165643 + ], + [ + -9753483.890084872, + 5141053.701942663 + ], + [ + -9753483.880879786, + 5141053.726562781 + ], + [ + -9753483.871246424, + 5141053.751018499 + ], + [ + -9753483.861187715, + 5141053.775302366 + ], + [ + -9753483.850706728, + 5141053.799406987 + ], + [ + -9753483.839806654, + 5141053.8233250175 + ], + [ + -9753483.828490812, + 5141053.847049173 + ], + [ + -9753483.81676265, + 5141053.870572226 + ], + [ + -9753483.80462574, + 5141053.893887012 + ], + [ + -9753483.792083781, + 5141053.916986429 + ], + [ + -9753483.77914059, + 5141053.939863441 + ], + [ + -9753483.765800113, + 5141053.9625110775 + ], + [ + -9753483.752066411, + 5141053.984922443 + ], + [ + -9753483.737943668, + 5141054.007090707 + ], + [ + -9753483.723436188, + 5141054.02900912 + ], + [ + -9753483.708548388, + 5141054.050671004 + ], + [ + -9753483.693284802, + 5141054.072069761 + ], + [ + -9753483.677650083, + 5141054.093198872 + ], + [ + -9753483.661648989, + 5141054.114051903 + ], + [ + -9753483.645286398, + 5141054.134622498 + ], + [ + -9753483.628567293, + 5141054.154904395 + ], + [ + -9753483.611496765, + 5141054.174891414 + ], + [ + -9753483.594080018, + 5141054.194577468 + ], + [ + -9753483.576322353, + 5141054.213956558 + ], + [ + -9753483.55822918, + 5141054.233022784 + ], + [ + -9753483.539806012, + 5141054.251770335 + ], + [ + -9753483.52105846, + 5141054.270193503 + ], + [ + -9753483.501992235, + 5141054.288286676 + ], + [ + -9753483.482613144, + 5141054.30604434 + ], + [ + -9753483.462927092, + 5141054.323461089 + ], + [ + -9753483.442940071, + 5141054.3405316165 + ], + [ + -9753483.422658175, + 5141054.357250721 + ], + [ + -9753483.402087579, + 5141054.373613313 + ], + [ + -9753483.381234549, + 5141054.389614405 + ], + [ + -9753483.360105438, + 5141054.405249125 + ], + [ + -9753483.338706682, + 5141054.420512711 + ], + [ + -9753483.317044796, + 5141054.43540051 + ], + [ + -9753483.295126384, + 5141054.449907992 + ], + [ + -9753483.272958118, + 5141054.464030734 + ], + [ + -9753483.250546755, + 5141054.477764436 + ], + [ + -9753483.227899117, + 5141054.491104914 + ], + [ + -9753483.205022106, + 5141054.5040481035 + ], + [ + -9753483.18192269, + 5141054.516590063 + ], + [ + -9753483.158607904, + 5141054.528726974 + ], + [ + -9753483.135084849, + 5141054.5404551355 + ], + [ + -9753483.111360693, + 5141054.551770977 + ], + [ + -9753483.087442664, + 5141054.562671051 + ], + [ + -9753483.063338043, + 5141054.573152038 + ], + [ + -9753483.039054176, + 5141054.583210746 + ], + [ + -9753483.014598457, + 5141054.592844109 + ], + [ + -9753482.98997834, + 5141054.602049194 + ], + [ + -9753482.96520132, + 5141054.610823197 + ], + [ + -9753482.940274946, + 5141054.619163445 + ], + [ + -9753482.915206812, + 5141054.627067397 + ], + [ + -9753482.890004553, + 5141054.634532647 + ], + [ + -9753482.864675846, + 5141054.641556919 + ], + [ + -9753482.839228405, + 5141054.648138074 + ], + [ + -9753482.813669983, + 5141054.654274109 + ], + [ + -9753482.788008366, + 5141054.659963152 + ], + [ + -9753482.76225137, + 5141054.665203473 + ], + [ + -9753482.73640684, + 5141054.669993473 + ], + [ + -9753482.71048265, + 5141054.674331695 + ], + [ + -9753482.684486695, + 5141054.678216816 + ], + [ + -9753482.658426896, + 5141054.681647654 + ], + [ + -9753482.632311188, + 5141054.684623163 + ], + [ + -9753482.606147528, + 5141054.687142436 + ], + [ + -9753482.579943886, + 5141054.689204708 + ], + [ + -9753482.553708244, + 5141054.690809349 + ], + [ + -9753482.52744859, + 5141054.69195587 + ], + [ + -9753482.50117293, + 5141054.692643922 + ], + [ + -9753482.474889262, + 5141054.692873296 + ] + ] + ] + ] + } + }, + { + "type": "Feature", + "geometry": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + -9753476.049773023, + 5141054.812968927 + ], + [ + -9753476.023489354, + 5141054.812739553 + ], + [ + -9753475.997213693, + 5141054.812051501 + ], + [ + -9753475.97095404, + 5141054.81090498 + ], + [ + -9753475.944718398, + 5141054.809300339 + ], + [ + -9753475.918514756, + 5141054.8072380675 + ], + [ + -9753475.892351096, + 5141054.804718794 + ], + [ + -9753475.866235388, + 5141054.801743285 + ], + [ + -9753475.84017559, + 5141054.798312447 + ], + [ + -9753475.814179635, + 5141054.794427326 + ], + [ + -9753475.788255444, + 5141054.790089104 + ], + [ + -9753475.762410915, + 5141054.785299104 + ], + [ + -9753475.736653918, + 5141054.7800587835 + ], + [ + -9753475.7109923, + 5141054.77436974 + ], + [ + -9753475.68543388, + 5141054.768233705 + ], + [ + -9753475.659986438, + 5141054.76165255 + ], + [ + -9753475.634657731, + 5141054.754628278 + ], + [ + -9753475.609455472, + 5141054.747163028 + ], + [ + -9753475.584387338, + 5141054.739259076 + ], + [ + -9753475.559460964, + 5141054.730918828 + ], + [ + -9753475.534683945, + 5141054.722144825 + ], + [ + -9753475.510063827, + 5141054.71293974 + ], + [ + -9753475.485608108, + 5141054.703306377 + ], + [ + -9753475.461324241, + 5141054.693247669 + ], + [ + -9753475.43721962, + 5141054.6827666825 + ], + [ + -9753475.41330159, + 5141054.671866608 + ], + [ + -9753475.389577435, + 5141054.660550767 + ], + [ + -9753475.36605438, + 5141054.648822605 + ], + [ + -9753475.342739595, + 5141054.636685695 + ], + [ + -9753475.319640178, + 5141054.624143735 + ], + [ + -9753475.296763167, + 5141054.611200545 + ], + [ + -9753475.274115529, + 5141054.597860067 + ], + [ + -9753475.251704166, + 5141054.584126365 + ], + [ + -9753475.2295359, + 5141054.570003623 + ], + [ + -9753475.207617488, + 5141054.555496141 + ], + [ + -9753475.185955603, + 5141054.540608342 + ], + [ + -9753475.164556846, + 5141054.525344756 + ], + [ + -9753475.143427735, + 5141054.509710036 + ], + [ + -9753475.122574706, + 5141054.493708944 + ], + [ + -9753475.102004109, + 5141054.477346352 + ], + [ + -9753475.081722213, + 5141054.460627248 + ], + [ + -9753475.061735192, + 5141054.44355672 + ], + [ + -9753475.04204914, + 5141054.426139971 + ], + [ + -9753475.02267005, + 5141054.408382307 + ], + [ + -9753475.003603823, + 5141054.390289134 + ], + [ + -9753474.984856272, + 5141054.371865966 + ], + [ + -9753474.966433104, + 5141054.353118415 + ], + [ + -9753474.948339932, + 5141054.334052189 + ], + [ + -9753474.930582266, + 5141054.314673099 + ], + [ + -9753474.913165519, + 5141054.294987045 + ], + [ + -9753474.89609499, + 5141054.275000026 + ], + [ + -9753474.879375886, + 5141054.2547181295 + ], + [ + -9753474.863013295, + 5141054.234147534 + ], + [ + -9753474.847012201, + 5141054.213294503 + ], + [ + -9753474.831377482, + 5141054.192165392 + ], + [ + -9753474.816113897, + 5141054.170766635 + ], + [ + -9753474.801226096, + 5141054.149104751 + ], + [ + -9753474.786718616, + 5141054.127186338 + ], + [ + -9753474.772595873, + 5141054.105018074 + ], + [ + -9753474.758862171, + 5141054.082606709 + ], + [ + -9753474.745521694, + 5141054.059959072 + ], + [ + -9753474.732578503, + 5141054.03708206 + ], + [ + -9753474.720036544, + 5141054.013982643 + ], + [ + -9753474.707899634, + 5141053.990667857 + ], + [ + -9753474.696171472, + 5141053.967144804 + ], + [ + -9753474.68485563, + 5141053.943420649 + ], + [ + -9753474.673955556, + 5141053.919502618 + ], + [ + -9753474.66347457, + 5141053.895397997 + ], + [ + -9753474.65341586, + 5141053.87111413 + ], + [ + -9753474.643782498, + 5141053.846658412 + ], + [ + -9753474.634577412, + 5141053.822038294 + ], + [ + -9753474.625803411, + 5141053.797261274 + ], + [ + -9753474.617463162, + 5141053.772334901 + ], + [ + -9753474.60955921, + 5141053.747266767 + ], + [ + -9753474.602093961, + 5141053.722064507 + ], + [ + -9753474.595069688, + 5141053.696735799 + ], + [ + -9753474.588488532, + 5141053.671288359 + ], + [ + -9753474.582352499, + 5141053.645729938 + ], + [ + -9753474.576663455, + 5141053.620068321 + ], + [ + -9753474.571423136, + 5141053.594311324 + ], + [ + -9753474.566633135, + 5141053.568466795 + ], + [ + -9753474.562294913, + 5141053.542542604 + ], + [ + -9753474.558409791, + 5141053.516546649 + ], + [ + -9753474.554978954, + 5141053.490486849 + ], + [ + -9753474.552003445, + 5141053.464371142 + ], + [ + -9753474.549484171, + 5141053.438207483 + ], + [ + -9753474.547421899, + 5141053.41200384 + ], + [ + -9753474.545817258, + 5141053.3857681975 + ], + [ + -9753474.544670738, + 5141053.359508546 + ], + [ + -9753474.543982685, + 5141053.333232884 + ], + [ + -9753474.543753311, + 5141053.306949216 + ], + [ + -9753474.543982685, + 5141053.280665548 + ], + [ + -9753474.544670738, + 5141053.254389886 + ], + [ + -9753474.545817258, + 5141053.228130234 + ], + [ + -9753474.547421899, + 5141053.201894592 + ], + [ + -9753474.549484171, + 5141053.175690949 + ], + [ + -9753474.552003445, + 5141053.14952729 + ], + [ + -9753474.554978954, + 5141053.123411583 + ], + [ + -9753474.558409791, + 5141053.097351783 + ], + [ + -9753474.562294913, + 5141053.071355828 + ], + [ + -9753474.566633135, + 5141053.045431637 + ], + [ + -9753474.571423136, + 5141053.019587108 + ], + [ + -9753474.576663455, + 5141052.993830111 + ], + [ + -9753474.582352499, + 5141052.968168494 + ], + [ + -9753474.588488532, + 5141052.942610073 + ], + [ + -9753474.595069688, + 5141052.917162633 + ], + [ + -9753474.602093961, + 5141052.891833925 + ], + [ + -9753474.60955921, + 5141052.866631665 + ], + [ + -9753474.617463162, + 5141052.841563531 + ], + [ + -9753474.625803411, + 5141052.816637157 + ], + [ + -9753474.634577412, + 5141052.791860138 + ], + [ + -9753474.643782498, + 5141052.7672400195 + ], + [ + -9753474.65341586, + 5141052.742784302 + ], + [ + -9753474.66347457, + 5141052.718500434 + ], + [ + -9753474.673955556, + 5141052.694395814 + ], + [ + -9753474.68485563, + 5141052.670477783 + ], + [ + -9753474.696171472, + 5141052.646753628 + ], + [ + -9753474.707899634, + 5141052.623230575 + ], + [ + -9753474.720036544, + 5141052.5999157885 + ], + [ + -9753474.732578503, + 5141052.576816372 + ], + [ + -9753474.745521694, + 5141052.55393936 + ], + [ + -9753474.758862171, + 5141052.531291723 + ], + [ + -9753474.772595873, + 5141052.508880358 + ], + [ + -9753474.786718616, + 5141052.486712093 + ], + [ + -9753474.801226096, + 5141052.464793681 + ], + [ + -9753474.816113897, + 5141052.443131797 + ], + [ + -9753474.831377482, + 5141052.421733039 + ], + [ + -9753474.847012201, + 5141052.400603929 + ], + [ + -9753474.863013295, + 5141052.379750898 + ], + [ + -9753474.879375886, + 5141052.359180302 + ], + [ + -9753474.89609499, + 5141052.338898405 + ], + [ + -9753474.913165519, + 5141052.318911387 + ], + [ + -9753474.930582266, + 5141052.299225333 + ], + [ + -9753474.948339932, + 5141052.279846243 + ], + [ + -9753474.966433104, + 5141052.260780017 + ], + [ + -9753474.984856272, + 5141052.2420324655 + ], + [ + -9753475.003603823, + 5141052.223609298 + ], + [ + -9753475.02267005, + 5141052.205516125 + ], + [ + -9753475.04204914, + 5141052.187758461 + ], + [ + -9753475.061735192, + 5141052.1703417115 + ], + [ + -9753475.081722213, + 5141052.153271184 + ], + [ + -9753475.102004109, + 5141052.13655208 + ], + [ + -9753475.122574706, + 5141052.120189488 + ], + [ + -9753475.143427735, + 5141052.104188396 + ], + [ + -9753475.164556846, + 5141052.088553675 + ], + [ + -9753475.185955603, + 5141052.07329009 + ], + [ + -9753475.207617488, + 5141052.058402291 + ], + [ + -9753475.2295359, + 5141052.043894809 + ], + [ + -9753475.251704166, + 5141052.0297720665 + ], + [ + -9753475.274115529, + 5141052.016038365 + ], + [ + -9753475.296763167, + 5141052.002697887 + ], + [ + -9753475.319640178, + 5141051.989754697 + ], + [ + -9753475.342739595, + 5141051.977212737 + ], + [ + -9753475.36605438, + 5141051.965075827 + ], + [ + -9753475.389577435, + 5141051.953347665 + ], + [ + -9753475.41330159, + 5141051.942031824 + ], + [ + -9753475.43721962, + 5141051.931131749 + ], + [ + -9753475.461324241, + 5141051.9206507625 + ], + [ + -9753475.485608108, + 5141051.910592055 + ], + [ + -9753475.510063827, + 5141051.900958692 + ], + [ + -9753475.534683945, + 5141051.8917536065 + ], + [ + -9753475.559460964, + 5141051.8829796035 + ], + [ + -9753475.584387338, + 5141051.874639356 + ], + [ + -9753475.609455472, + 5141051.866735403 + ], + [ + -9753475.634657731, + 5141051.859270154 + ], + [ + -9753475.659986438, + 5141051.852245882 + ], + [ + -9753475.68543388, + 5141051.845664727 + ], + [ + -9753475.7109923, + 5141051.839528692 + ], + [ + -9753475.736653918, + 5141051.833839648 + ], + [ + -9753475.762410915, + 5141051.828599328 + ], + [ + -9753475.788255444, + 5141051.823809328 + ], + [ + -9753475.814179635, + 5141051.819471106 + ], + [ + -9753475.84017559, + 5141051.815585985 + ], + [ + -9753475.866235388, + 5141051.812155147 + ], + [ + -9753475.892351096, + 5141051.809179638 + ], + [ + -9753475.918514756, + 5141051.806660364 + ], + [ + -9753475.944718398, + 5141051.804598093 + ], + [ + -9753475.97095404, + 5141051.802993452 + ], + [ + -9753475.997213693, + 5141051.801846931 + ], + [ + -9753476.023489354, + 5141051.801158879 + ], + [ + -9753476.049773023, + 5141051.800929504 + ], + [ + -9753476.07605669, + 5141051.801158879 + ], + [ + -9753476.102332352, + 5141051.801846931 + ], + [ + -9753476.128592005, + 5141051.802993452 + ], + [ + -9753476.154827647, + 5141051.804598093 + ], + [ + -9753476.181031289, + 5141051.806660364 + ], + [ + -9753476.207194949, + 5141051.809179638 + ], + [ + -9753476.233310657, + 5141051.812155147 + ], + [ + -9753476.259370456, + 5141051.815585985 + ], + [ + -9753476.28536641, + 5141051.819471106 + ], + [ + -9753476.311290601, + 5141051.823809328 + ], + [ + -9753476.33713513, + 5141051.828599328 + ], + [ + -9753476.362892127, + 5141051.833839648 + ], + [ + -9753476.388553744, + 5141051.839528692 + ], + [ + -9753476.414112166, + 5141051.845664727 + ], + [ + -9753476.439559607, + 5141051.852245882 + ], + [ + -9753476.464888314, + 5141051.859270154 + ], + [ + -9753476.490090573, + 5141051.866735403 + ], + [ + -9753476.515158707, + 5141051.874639356 + ], + [ + -9753476.540085081, + 5141051.8829796035 + ], + [ + -9753476.5648621, + 5141051.8917536065 + ], + [ + -9753476.589482218, + 5141051.900958692 + ], + [ + -9753476.613937937, + 5141051.910592055 + ], + [ + -9753476.638221804, + 5141051.9206507625 + ], + [ + -9753476.662326425, + 5141051.931131749 + ], + [ + -9753476.686244454, + 5141051.942031824 + ], + [ + -9753476.70996861, + 5141051.953347665 + ], + [ + -9753476.733491665, + 5141051.965075827 + ], + [ + -9753476.75680645, + 5141051.977212737 + ], + [ + -9753476.779905867, + 5141051.989754697 + ], + [ + -9753476.802782878, + 5141052.002697887 + ], + [ + -9753476.825430516, + 5141052.016038365 + ], + [ + -9753476.84784188, + 5141052.0297720665 + ], + [ + -9753476.870010145, + 5141052.043894809 + ], + [ + -9753476.891928557, + 5141052.058402291 + ], + [ + -9753476.913590442, + 5141052.07329009 + ], + [ + -9753476.934989199, + 5141052.088553675 + ], + [ + -9753476.95611831, + 5141052.104188396 + ], + [ + -9753476.97697134, + 5141052.120189488 + ], + [ + -9753476.997541936, + 5141052.13655208 + ], + [ + -9753477.017823832, + 5141052.153271184 + ], + [ + -9753477.037810853, + 5141052.1703417115 + ], + [ + -9753477.057496905, + 5141052.187758461 + ], + [ + -9753477.076875996, + 5141052.205516125 + ], + [ + -9753477.095942222, + 5141052.223609298 + ], + [ + -9753477.114689773, + 5141052.2420324655 + ], + [ + -9753477.133112941, + 5141052.260780017 + ], + [ + -9753477.151206113, + 5141052.279846243 + ], + [ + -9753477.168963779, + 5141052.299225333 + ], + [ + -9753477.186380526, + 5141052.318911387 + ], + [ + -9753477.203451054, + 5141052.338898405 + ], + [ + -9753477.220170159, + 5141052.359180302 + ], + [ + -9753477.23653275, + 5141052.379750898 + ], + [ + -9753477.252533844, + 5141052.400603929 + ], + [ + -9753477.268168563, + 5141052.421733039 + ], + [ + -9753477.283432148, + 5141052.443131797 + ], + [ + -9753477.298319949, + 5141052.464793681 + ], + [ + -9753477.312827429, + 5141052.486712093 + ], + [ + -9753477.326950172, + 5141052.508880358 + ], + [ + -9753477.340683874, + 5141052.531291723 + ], + [ + -9753477.35402435, + 5141052.55393936 + ], + [ + -9753477.366967542, + 5141052.576816372 + ], + [ + -9753477.379509501, + 5141052.5999157885 + ], + [ + -9753477.391646411, + 5141052.623230575 + ], + [ + -9753477.403374573, + 5141052.646753628 + ], + [ + -9753477.414690414, + 5141052.670477783 + ], + [ + -9753477.425590489, + 5141052.694395814 + ], + [ + -9753477.436071476, + 5141052.718500434 + ], + [ + -9753477.446130184, + 5141052.742784302 + ], + [ + -9753477.455763547, + 5141052.7672400195 + ], + [ + -9753477.464968633, + 5141052.791860138 + ], + [ + -9753477.473742634, + 5141052.816637157 + ], + [ + -9753477.482082883, + 5141052.841563531 + ], + [ + -9753477.489986835, + 5141052.866631665 + ], + [ + -9753477.497452084, + 5141052.891833925 + ], + [ + -9753477.504476357, + 5141052.917162633 + ], + [ + -9753477.511057513, + 5141052.942610073 + ], + [ + -9753477.517193547, + 5141052.968168494 + ], + [ + -9753477.52288259, + 5141052.993830111 + ], + [ + -9753477.52812291, + 5141053.019587108 + ], + [ + -9753477.53291291, + 5141053.045431637 + ], + [ + -9753477.537251132, + 5141053.071355828 + ], + [ + -9753477.541136254, + 5141053.097351783 + ], + [ + -9753477.544567091, + 5141053.123411583 + ], + [ + -9753477.5475426, + 5141053.14952729 + ], + [ + -9753477.550061874, + 5141053.175690949 + ], + [ + -9753477.552124146, + 5141053.201894592 + ], + [ + -9753477.553728787, + 5141053.228130234 + ], + [ + -9753477.554875307, + 5141053.254389886 + ], + [ + -9753477.55556336, + 5141053.280665548 + ], + [ + -9753477.555792734, + 5141053.306949216 + ], + [ + -9753477.55556336, + 5141053.333232884 + ], + [ + -9753477.554875307, + 5141053.359508546 + ], + [ + -9753477.553728787, + 5141053.3857681975 + ], + [ + -9753477.552124146, + 5141053.41200384 + ], + [ + -9753477.550061874, + 5141053.438207483 + ], + [ + -9753477.5475426, + 5141053.464371142 + ], + [ + -9753477.544567091, + 5141053.490486849 + ], + [ + -9753477.541136254, + 5141053.516546649 + ], + [ + -9753477.537251132, + 5141053.542542604 + ], + [ + -9753477.53291291, + 5141053.568466795 + ], + [ + -9753477.52812291, + 5141053.594311324 + ], + [ + -9753477.52288259, + 5141053.620068321 + ], + [ + -9753477.517193547, + 5141053.645729938 + ], + [ + -9753477.511057513, + 5141053.671288359 + ], + [ + -9753477.504476357, + 5141053.696735799 + ], + [ + -9753477.497452084, + 5141053.722064507 + ], + [ + -9753477.489986835, + 5141053.747266767 + ], + [ + -9753477.482082883, + 5141053.772334901 + ], + [ + -9753477.473742634, + 5141053.797261274 + ], + [ + -9753477.464968633, + 5141053.822038294 + ], + [ + -9753477.455763547, + 5141053.846658412 + ], + [ + -9753477.446130184, + 5141053.87111413 + ], + [ + -9753477.436071476, + 5141053.895397997 + ], + [ + -9753477.425590489, + 5141053.919502618 + ], + [ + -9753477.414690414, + 5141053.943420649 + ], + [ + -9753477.403374573, + 5141053.967144804 + ], + [ + -9753477.391646411, + 5141053.990667857 + ], + [ + -9753477.379509501, + 5141054.013982643 + ], + [ + -9753477.366967542, + 5141054.03708206 + ], + [ + -9753477.35402435, + 5141054.059959072 + ], + [ + -9753477.340683874, + 5141054.082606709 + ], + [ + -9753477.326950172, + 5141054.105018074 + ], + [ + -9753477.312827429, + 5141054.127186338 + ], + [ + -9753477.298319949, + 5141054.149104751 + ], + [ + -9753477.283432148, + 5141054.170766635 + ], + [ + -9753477.268168563, + 5141054.192165392 + ], + [ + -9753477.252533844, + 5141054.213294503 + ], + [ + -9753477.23653275, + 5141054.234147534 + ], + [ + -9753477.220170159, + 5141054.2547181295 + ], + [ + -9753477.203451054, + 5141054.275000026 + ], + [ + -9753477.186380526, + 5141054.294987045 + ], + [ + -9753477.168963779, + 5141054.314673099 + ], + [ + -9753477.151206113, + 5141054.334052189 + ], + [ + -9753477.133112941, + 5141054.353118415 + ], + [ + -9753477.114689773, + 5141054.371865966 + ], + [ + -9753477.095942222, + 5141054.390289134 + ], + [ + -9753477.076875996, + 5141054.408382307 + ], + [ + -9753477.057496905, + 5141054.426139971 + ], + [ + -9753477.037810853, + 5141054.44355672 + ], + [ + -9753477.017823832, + 5141054.460627248 + ], + [ + -9753476.997541936, + 5141054.477346352 + ], + [ + -9753476.97697134, + 5141054.493708944 + ], + [ + -9753476.95611831, + 5141054.509710036 + ], + [ + -9753476.934989199, + 5141054.525344756 + ], + [ + -9753476.913590442, + 5141054.540608342 + ], + [ + -9753476.891928557, + 5141054.555496141 + ], + [ + -9753476.870010145, + 5141054.570003623 + ], + [ + -9753476.84784188, + 5141054.584126365 + ], + [ + -9753476.825430516, + 5141054.597860067 + ], + [ + -9753476.802782878, + 5141054.611200545 + ], + [ + -9753476.779905867, + 5141054.624143735 + ], + [ + -9753476.75680645, + 5141054.636685695 + ], + [ + -9753476.733491665, + 5141054.648822605 + ], + [ + -9753476.70996861, + 5141054.660550767 + ], + [ + -9753476.686244454, + 5141054.671866608 + ], + [ + -9753476.662326425, + 5141054.6827666825 + ], + [ + -9753476.638221804, + 5141054.693247669 + ], + [ + -9753476.613937937, + 5141054.703306377 + ], + [ + -9753476.589482218, + 5141054.71293974 + ], + [ + -9753476.5648621, + 5141054.722144825 + ], + [ + -9753476.540085081, + 5141054.730918828 + ], + [ + -9753476.515158707, + 5141054.739259076 + ], + [ + -9753476.490090573, + 5141054.747163028 + ], + [ + -9753476.464888314, + 5141054.754628278 + ], + [ + -9753476.439559607, + 5141054.76165255 + ], + [ + -9753476.414112166, + 5141054.768233705 + ], + [ + -9753476.388553744, + 5141054.77436974 + ], + [ + -9753476.362892127, + 5141054.7800587835 + ], + [ + -9753476.33713513, + 5141054.785299104 + ], + [ + -9753476.311290601, + 5141054.790089104 + ], + [ + -9753476.28536641, + 5141054.794427326 + ], + [ + -9753476.259370456, + 5141054.798312447 + ], + [ + -9753476.233310657, + 5141054.801743285 + ], + [ + -9753476.207194949, + 5141054.804718794 + ], + [ + -9753476.181031289, + 5141054.8072380675 + ], + [ + -9753476.154827647, + 5141054.809300339 + ], + [ + -9753476.128592005, + 5141054.81090498 + ], + [ + -9753476.102332352, + 5141054.812051501 + ], + [ + -9753476.07605669, + 5141054.812739553 + ], + [ + -9753476.049773023, + 5141054.812968927 + ] + ] + ] + ] + } + }, + { + "type": "Feature", + "geometry": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + -9753492.314964885, + 5140877.716839688 + ], + [ + -9753492.288681217, + 5140877.716610313 + ], + [ + -9753492.262405556, + 5140877.715922262 + ], + [ + -9753492.236145902, + 5140877.71477574 + ], + [ + -9753492.20991026, + 5140877.713171099 + ], + [ + -9753492.183706619, + 5140877.711108828 + ], + [ + -9753492.157542959, + 5140877.708589555 + ], + [ + -9753492.13142725, + 5140877.705614045 + ], + [ + -9753492.105367452, + 5140877.7021832075 + ], + [ + -9753492.079371497, + 5140877.698298086 + ], + [ + -9753492.053447306, + 5140877.693959865 + ], + [ + -9753492.027602777, + 5140877.689169864 + ], + [ + -9753492.00184578, + 5140877.683929544 + ], + [ + -9753491.976184163, + 5140877.6782405 + ], + [ + -9753491.950625742, + 5140877.672104466 + ], + [ + -9753491.9251783, + 5140877.66552331 + ], + [ + -9753491.899849594, + 5140877.658499039 + ], + [ + -9753491.874647334, + 5140877.651033789 + ], + [ + -9753491.8495792, + 5140877.643129837 + ], + [ + -9753491.824652826, + 5140877.634789589 + ], + [ + -9753491.799875807, + 5140877.626015586 + ], + [ + -9753491.77525569, + 5140877.616810501 + ], + [ + -9753491.75079997, + 5140877.607177137 + ], + [ + -9753491.726516103, + 5140877.59711843 + ], + [ + -9753491.702411482, + 5140877.586637443 + ], + [ + -9753491.678493453, + 5140877.575737368 + ], + [ + -9753491.654769298, + 5140877.564421527 + ], + [ + -9753491.631246243, + 5140877.552693365 + ], + [ + -9753491.607931457, + 5140877.540556455 + ], + [ + -9753491.58483204, + 5140877.528014495 + ], + [ + -9753491.56195503, + 5140877.515071305 + ], + [ + -9753491.539307391, + 5140877.501730828 + ], + [ + -9753491.516896028, + 5140877.487997126 + ], + [ + -9753491.494727762, + 5140877.473874384 + ], + [ + -9753491.47280935, + 5140877.459366902 + ], + [ + -9753491.451147465, + 5140877.444479102 + ], + [ + -9753491.429748708, + 5140877.429215517 + ], + [ + -9753491.408619598, + 5140877.413580797 + ], + [ + -9753491.387766568, + 5140877.397579704 + ], + [ + -9753491.367195971, + 5140877.381217113 + ], + [ + -9753491.346914075, + 5140877.364498008 + ], + [ + -9753491.326927055, + 5140877.347427481 + ], + [ + -9753491.307241002, + 5140877.330010732 + ], + [ + -9753491.287861912, + 5140877.312253067 + ], + [ + -9753491.268795686, + 5140877.294159895 + ], + [ + -9753491.250048134, + 5140877.275736727 + ], + [ + -9753491.231624966, + 5140877.256989175 + ], + [ + -9753491.213531794, + 5140877.23792295 + ], + [ + -9753491.195774129, + 5140877.218543859 + ], + [ + -9753491.178357381, + 5140877.198857806 + ], + [ + -9753491.161286853, + 5140877.178870787 + ], + [ + -9753491.144567749, + 5140877.15858889 + ], + [ + -9753491.128205158, + 5140877.138018294 + ], + [ + -9753491.112204064, + 5140877.117165264 + ], + [ + -9753491.096569344, + 5140877.096036153 + ], + [ + -9753491.081305759, + 5140877.074637395 + ], + [ + -9753491.066417959, + 5140877.052975511 + ], + [ + -9753491.051910479, + 5140877.031057099 + ], + [ + -9753491.037787735, + 5140877.008888834 + ], + [ + -9753491.024054034, + 5140876.986477469 + ], + [ + -9753491.010713557, + 5140876.963829832 + ], + [ + -9753490.997770365, + 5140876.940952821 + ], + [ + -9753490.985228406, + 5140876.917853404 + ], + [ + -9753490.973091496, + 5140876.894538618 + ], + [ + -9753490.961363334, + 5140876.871015565 + ], + [ + -9753490.950047493, + 5140876.847291409 + ], + [ + -9753490.939147418, + 5140876.823373378 + ], + [ + -9753490.928666431, + 5140876.799268758 + ], + [ + -9753490.918607723, + 5140876.774984891 + ], + [ + -9753490.90897436, + 5140876.750529173 + ], + [ + -9753490.899769275, + 5140876.725909054 + ], + [ + -9753490.890995273, + 5140876.701132035 + ], + [ + -9753490.882655025, + 5140876.676205661 + ], + [ + -9753490.874751072, + 5140876.651137527 + ], + [ + -9753490.867285823, + 5140876.625935268 + ], + [ + -9753490.86026155, + 5140876.60060656 + ], + [ + -9753490.853680395, + 5140876.575159119 + ], + [ + -9753490.84754436, + 5140876.549600698 + ], + [ + -9753490.841855317, + 5140876.5239390815 + ], + [ + -9753490.836614998, + 5140876.498182084 + ], + [ + -9753490.831824997, + 5140876.472337555 + ], + [ + -9753490.827486776, + 5140876.446413364 + ], + [ + -9753490.823601654, + 5140876.420417409 + ], + [ + -9753490.820170816, + 5140876.39435761 + ], + [ + -9753490.817195307, + 5140876.368241902 + ], + [ + -9753490.814676033, + 5140876.342078243 + ], + [ + -9753490.812613761, + 5140876.315874601 + ], + [ + -9753490.81100912, + 5140876.289638958 + ], + [ + -9753490.8098626, + 5140876.2633793065 + ], + [ + -9753490.809174547, + 5140876.237103645 + ], + [ + -9753490.808945173, + 5140876.210819976 + ], + [ + -9753490.809174547, + 5140876.184536308 + ], + [ + -9753490.8098626, + 5140876.158260646 + ], + [ + -9753490.81100912, + 5140876.132000995 + ], + [ + -9753490.812613761, + 5140876.105765352 + ], + [ + -9753490.814676033, + 5140876.079561709 + ], + [ + -9753490.817195307, + 5140876.05339805 + ], + [ + -9753490.820170816, + 5140876.027282343 + ], + [ + -9753490.823601654, + 5140876.001222543 + ], + [ + -9753490.827486776, + 5140875.975226589 + ], + [ + -9753490.831824997, + 5140875.949302398 + ], + [ + -9753490.836614998, + 5140875.923457868 + ], + [ + -9753490.841855317, + 5140875.897700871 + ], + [ + -9753490.84754436, + 5140875.872039255 + ], + [ + -9753490.853680395, + 5140875.846480833 + ], + [ + -9753490.86026155, + 5140875.821033393 + ], + [ + -9753490.867285823, + 5140875.795704685 + ], + [ + -9753490.874751072, + 5140875.770502426 + ], + [ + -9753490.882655025, + 5140875.745434292 + ], + [ + -9753490.890995273, + 5140875.720507918 + ], + [ + -9753490.899769275, + 5140875.6957308985 + ], + [ + -9753490.90897436, + 5140875.67111078 + ], + [ + -9753490.918607723, + 5140875.646655062 + ], + [ + -9753490.928666431, + 5140875.622371195 + ], + [ + -9753490.939147418, + 5140875.598266575 + ], + [ + -9753490.950047493, + 5140875.574348544 + ], + [ + -9753490.961363334, + 5140875.550624388 + ], + [ + -9753490.973091496, + 5140875.527101335 + ], + [ + -9753490.985228406, + 5140875.503786549 + ], + [ + -9753490.997770365, + 5140875.480687132 + ], + [ + -9753491.010713557, + 5140875.457810121 + ], + [ + -9753491.024054034, + 5140875.435162484 + ], + [ + -9753491.037787735, + 5140875.412751119 + ], + [ + -9753491.051910479, + 5140875.390582854 + ], + [ + -9753491.066417959, + 5140875.368664442 + ], + [ + -9753491.081305759, + 5140875.3470025575 + ], + [ + -9753491.096569344, + 5140875.3256038 + ], + [ + -9753491.112204064, + 5140875.304474689 + ], + [ + -9753491.128205158, + 5140875.283621659 + ], + [ + -9753491.144567749, + 5140875.263051063 + ], + [ + -9753491.161286853, + 5140875.242769166 + ], + [ + -9753491.178357381, + 5140875.222782147 + ], + [ + -9753491.195774129, + 5140875.203096094 + ], + [ + -9753491.213531794, + 5140875.183717003 + ], + [ + -9753491.231624966, + 5140875.164650777 + ], + [ + -9753491.250048134, + 5140875.145903226 + ], + [ + -9753491.268795686, + 5140875.127480058 + ], + [ + -9753491.287861912, + 5140875.109386886 + ], + [ + -9753491.307241002, + 5140875.091629221 + ], + [ + -9753491.326927055, + 5140875.074212472 + ], + [ + -9753491.346914075, + 5140875.057141945 + ], + [ + -9753491.367195971, + 5140875.04042284 + ], + [ + -9753491.387766568, + 5140875.024060248 + ], + [ + -9753491.408619598, + 5140875.008059156 + ], + [ + -9753491.429748708, + 5140874.992424436 + ], + [ + -9753491.451147465, + 5140874.977160851 + ], + [ + -9753491.47280935, + 5140874.962273051 + ], + [ + -9753491.494727762, + 5140874.947765569 + ], + [ + -9753491.516896028, + 5140874.933642827 + ], + [ + -9753491.539307391, + 5140874.919909125 + ], + [ + -9753491.56195503, + 5140874.906568647 + ], + [ + -9753491.58483204, + 5140874.893625458 + ], + [ + -9753491.607931457, + 5140874.881083498 + ], + [ + -9753491.631246243, + 5140874.868946588 + ], + [ + -9753491.654769298, + 5140874.857218426 + ], + [ + -9753491.678493453, + 5140874.8459025845 + ], + [ + -9753491.702411482, + 5140874.83500251 + ], + [ + -9753491.726516103, + 5140874.824521523 + ], + [ + -9753491.75079997, + 5140874.814462815 + ], + [ + -9753491.77525569, + 5140874.804829452 + ], + [ + -9753491.799875807, + 5140874.795624367 + ], + [ + -9753491.824652826, + 5140874.786850364 + ], + [ + -9753491.8495792, + 5140874.778510116 + ], + [ + -9753491.874647334, + 5140874.770606164 + ], + [ + -9753491.899849594, + 5140874.763140914 + ], + [ + -9753491.9251783, + 5140874.756116643 + ], + [ + -9753491.950625742, + 5140874.749535487 + ], + [ + -9753491.976184163, + 5140874.743399452 + ], + [ + -9753492.00184578, + 5140874.737710409 + ], + [ + -9753492.027602777, + 5140874.732470089 + ], + [ + -9753492.053447306, + 5140874.727680088 + ], + [ + -9753492.079371497, + 5140874.723341866 + ], + [ + -9753492.105367452, + 5140874.719456745 + ], + [ + -9753492.13142725, + 5140874.716025908 + ], + [ + -9753492.157542959, + 5140874.713050398 + ], + [ + -9753492.183706619, + 5140874.710531125 + ], + [ + -9753492.20991026, + 5140874.7084688535 + ], + [ + -9753492.236145902, + 5140874.706864213 + ], + [ + -9753492.262405556, + 5140874.705717691 + ], + [ + -9753492.288681217, + 5140874.705029639 + ], + [ + -9753492.314964885, + 5140874.704800265 + ], + [ + -9753492.341248553, + 5140874.705029639 + ], + [ + -9753492.367524214, + 5140874.705717691 + ], + [ + -9753492.393783867, + 5140874.706864213 + ], + [ + -9753492.42001951, + 5140874.7084688535 + ], + [ + -9753492.446223151, + 5140874.710531125 + ], + [ + -9753492.47238681, + 5140874.713050398 + ], + [ + -9753492.498502519, + 5140874.716025908 + ], + [ + -9753492.524562318, + 5140874.719456745 + ], + [ + -9753492.550558273, + 5140874.723341866 + ], + [ + -9753492.576482464, + 5140874.727680088 + ], + [ + -9753492.602326993, + 5140874.732470089 + ], + [ + -9753492.628083989, + 5140874.737710409 + ], + [ + -9753492.653745607, + 5140874.743399452 + ], + [ + -9753492.679304028, + 5140874.749535487 + ], + [ + -9753492.70475147, + 5140874.756116643 + ], + [ + -9753492.730080176, + 5140874.763140914 + ], + [ + -9753492.755282436, + 5140874.770606164 + ], + [ + -9753492.78035057, + 5140874.778510116 + ], + [ + -9753492.805276943, + 5140874.786850364 + ], + [ + -9753492.830053963, + 5140874.795624367 + ], + [ + -9753492.85467408, + 5140874.804829452 + ], + [ + -9753492.8791298, + 5140874.814462815 + ], + [ + -9753492.903413666, + 5140874.824521523 + ], + [ + -9753492.927518288, + 5140874.83500251 + ], + [ + -9753492.951436317, + 5140874.8459025845 + ], + [ + -9753492.975160472, + 5140874.857218426 + ], + [ + -9753492.998683527, + 5140874.868946588 + ], + [ + -9753493.021998312, + 5140874.881083498 + ], + [ + -9753493.04509773, + 5140874.893625458 + ], + [ + -9753493.06797474, + 5140874.906568647 + ], + [ + -9753493.090622379, + 5140874.919909125 + ], + [ + -9753493.113033742, + 5140874.933642827 + ], + [ + -9753493.135202007, + 5140874.947765569 + ], + [ + -9753493.15712042, + 5140874.962273051 + ], + [ + -9753493.178782305, + 5140874.977160851 + ], + [ + -9753493.200181061, + 5140874.992424436 + ], + [ + -9753493.221310172, + 5140875.008059156 + ], + [ + -9753493.242163202, + 5140875.024060248 + ], + [ + -9753493.262733798, + 5140875.04042284 + ], + [ + -9753493.283015694, + 5140875.057141945 + ], + [ + -9753493.303002715, + 5140875.074212472 + ], + [ + -9753493.322688768, + 5140875.091629221 + ], + [ + -9753493.342067858, + 5140875.109386886 + ], + [ + -9753493.361134084, + 5140875.127480058 + ], + [ + -9753493.379881635, + 5140875.145903226 + ], + [ + -9753493.398304803, + 5140875.164650777 + ], + [ + -9753493.416397976, + 5140875.183717003 + ], + [ + -9753493.434155641, + 5140875.203096094 + ], + [ + -9753493.451572388, + 5140875.222782147 + ], + [ + -9753493.468642917, + 5140875.242769166 + ], + [ + -9753493.485362021, + 5140875.263051063 + ], + [ + -9753493.501724612, + 5140875.283621659 + ], + [ + -9753493.517725706, + 5140875.304474689 + ], + [ + -9753493.533360425, + 5140875.3256038 + ], + [ + -9753493.54862401, + 5140875.3470025575 + ], + [ + -9753493.563511811, + 5140875.368664442 + ], + [ + -9753493.578019291, + 5140875.390582854 + ], + [ + -9753493.592142034, + 5140875.412751119 + ], + [ + -9753493.605875736, + 5140875.435162484 + ], + [ + -9753493.619216213, + 5140875.457810121 + ], + [ + -9753493.632159404, + 5140875.480687132 + ], + [ + -9753493.644701364, + 5140875.503786549 + ], + [ + -9753493.656838274, + 5140875.527101335 + ], + [ + -9753493.668566436, + 5140875.550624388 + ], + [ + -9753493.679882277, + 5140875.574348544 + ], + [ + -9753493.690782351, + 5140875.598266575 + ], + [ + -9753493.701263338, + 5140875.622371195 + ], + [ + -9753493.711322047, + 5140875.646655062 + ], + [ + -9753493.72095541, + 5140875.67111078 + ], + [ + -9753493.730160495, + 5140875.6957308985 + ], + [ + -9753493.738934496, + 5140875.720507918 + ], + [ + -9753493.747274745, + 5140875.745434292 + ], + [ + -9753493.755178697, + 5140875.770502426 + ], + [ + -9753493.762643946, + 5140875.795704685 + ], + [ + -9753493.76966822, + 5140875.821033393 + ], + [ + -9753493.776249375, + 5140875.846480833 + ], + [ + -9753493.782385409, + 5140875.872039255 + ], + [ + -9753493.788074452, + 5140875.897700871 + ], + [ + -9753493.793314772, + 5140875.923457868 + ], + [ + -9753493.798104772, + 5140875.949302398 + ], + [ + -9753493.802442994, + 5140875.975226589 + ], + [ + -9753493.806328116, + 5140876.001222543 + ], + [ + -9753493.809758954, + 5140876.027282343 + ], + [ + -9753493.812734462, + 5140876.05339805 + ], + [ + -9753493.815253736, + 5140876.079561709 + ], + [ + -9753493.817316009, + 5140876.105765352 + ], + [ + -9753493.81892065, + 5140876.132000995 + ], + [ + -9753493.82006717, + 5140876.158260646 + ], + [ + -9753493.820755223, + 5140876.184536308 + ], + [ + -9753493.820984596, + 5140876.210819976 + ], + [ + -9753493.820755223, + 5140876.237103645 + ], + [ + -9753493.82006717, + 5140876.2633793065 + ], + [ + -9753493.81892065, + 5140876.289638958 + ], + [ + -9753493.817316009, + 5140876.315874601 + ], + [ + -9753493.815253736, + 5140876.342078243 + ], + [ + -9753493.812734462, + 5140876.368241902 + ], + [ + -9753493.809758954, + 5140876.39435761 + ], + [ + -9753493.806328116, + 5140876.420417409 + ], + [ + -9753493.802442994, + 5140876.446413364 + ], + [ + -9753493.798104772, + 5140876.472337555 + ], + [ + -9753493.793314772, + 5140876.498182084 + ], + [ + -9753493.788074452, + 5140876.5239390815 + ], + [ + -9753493.782385409, + 5140876.549600698 + ], + [ + -9753493.776249375, + 5140876.575159119 + ], + [ + -9753493.76966822, + 5140876.60060656 + ], + [ + -9753493.762643946, + 5140876.625935268 + ], + [ + -9753493.755178697, + 5140876.651137527 + ], + [ + -9753493.747274745, + 5140876.676205661 + ], + [ + -9753493.738934496, + 5140876.701132035 + ], + [ + -9753493.730160495, + 5140876.725909054 + ], + [ + -9753493.72095541, + 5140876.750529173 + ], + [ + -9753493.711322047, + 5140876.774984891 + ], + [ + -9753493.701263338, + 5140876.799268758 + ], + [ + -9753493.690782351, + 5140876.823373378 + ], + [ + -9753493.679882277, + 5140876.847291409 + ], + [ + -9753493.668566436, + 5140876.871015565 + ], + [ + -9753493.656838274, + 5140876.894538618 + ], + [ + -9753493.644701364, + 5140876.917853404 + ], + [ + -9753493.632159404, + 5140876.940952821 + ], + [ + -9753493.619216213, + 5140876.963829832 + ], + [ + -9753493.605875736, + 5140876.986477469 + ], + [ + -9753493.592142034, + 5140877.008888834 + ], + [ + -9753493.578019291, + 5140877.031057099 + ], + [ + -9753493.563511811, + 5140877.052975511 + ], + [ + -9753493.54862401, + 5140877.074637395 + ], + [ + -9753493.533360425, + 5140877.096036153 + ], + [ + -9753493.517725706, + 5140877.117165264 + ], + [ + -9753493.501724612, + 5140877.138018294 + ], + [ + -9753493.485362021, + 5140877.15858889 + ], + [ + -9753493.468642917, + 5140877.178870787 + ], + [ + -9753493.451572388, + 5140877.198857806 + ], + [ + -9753493.434155641, + 5140877.218543859 + ], + [ + -9753493.416397976, + 5140877.23792295 + ], + [ + -9753493.398304803, + 5140877.256989175 + ], + [ + -9753493.379881635, + 5140877.275736727 + ], + [ + -9753493.361134084, + 5140877.294159895 + ], + [ + -9753493.342067858, + 5140877.312253067 + ], + [ + -9753493.322688768, + 5140877.330010732 + ], + [ + -9753493.303002715, + 5140877.347427481 + ], + [ + -9753493.283015694, + 5140877.364498008 + ], + [ + -9753493.262733798, + 5140877.381217113 + ], + [ + -9753493.242163202, + 5140877.397579704 + ], + [ + -9753493.221310172, + 5140877.413580797 + ], + [ + -9753493.200181061, + 5140877.429215517 + ], + [ + -9753493.178782305, + 5140877.444479102 + ], + [ + -9753493.15712042, + 5140877.459366902 + ], + [ + -9753493.135202007, + 5140877.473874384 + ], + [ + -9753493.113033742, + 5140877.487997126 + ], + [ + -9753493.090622379, + 5140877.501730828 + ], + [ + -9753493.06797474, + 5140877.515071305 + ], + [ + -9753493.04509773, + 5140877.528014495 + ], + [ + -9753493.021998312, + 5140877.540556455 + ], + [ + -9753492.998683527, + 5140877.552693365 + ], + [ + -9753492.975160472, + 5140877.564421527 + ], + [ + -9753492.951436317, + 5140877.575737368 + ], + [ + -9753492.927518288, + 5140877.586637443 + ], + [ + -9753492.903413666, + 5140877.59711843 + ], + [ + -9753492.8791298, + 5140877.607177137 + ], + [ + -9753492.85467408, + 5140877.616810501 + ], + [ + -9753492.830053963, + 5140877.626015586 + ], + [ + -9753492.805276943, + 5140877.634789589 + ], + [ + -9753492.78035057, + 5140877.643129837 + ], + [ + -9753492.755282436, + 5140877.651033789 + ], + [ + -9753492.730080176, + 5140877.658499039 + ], + [ + -9753492.70475147, + 5140877.66552331 + ], + [ + -9753492.679304028, + 5140877.672104466 + ], + [ + -9753492.653745607, + 5140877.6782405 + ], + [ + -9753492.628083989, + 5140877.683929544 + ], + [ + -9753492.602326993, + 5140877.689169864 + ], + [ + -9753492.576482464, + 5140877.693959865 + ], + [ + -9753492.550558273, + 5140877.698298086 + ], + [ + -9753492.524562318, + 5140877.7021832075 + ], + [ + -9753492.498502519, + 5140877.705614045 + ], + [ + -9753492.47238681, + 5140877.708589555 + ], + [ + -9753492.446223151, + 5140877.711108828 + ], + [ + -9753492.42001951, + 5140877.713171099 + ], + [ + -9753492.393783867, + 5140877.71477574 + ], + [ + -9753492.367524214, + 5140877.715922262 + ], + [ + -9753492.341248553, + 5140877.716610313 + ], + [ + -9753492.314964885, + 5140877.716839688 + ] + ] + ] + ] + } + }, + { + "type": "Feature", + "geometry": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + -9753485.886984937, + 5140877.826719686 + ], + [ + -9753485.860701269, + 5140877.826490312 + ], + [ + -9753485.834425608, + 5140877.82580226 + ], + [ + -9753485.808165954, + 5140877.824655739 + ], + [ + -9753485.781930313, + 5140877.823051098 + ], + [ + -9753485.75572667, + 5140877.820988826 + ], + [ + -9753485.72956301, + 5140877.818469553 + ], + [ + -9753485.703447303, + 5140877.815494044 + ], + [ + -9753485.677387504, + 5140877.812063206 + ], + [ + -9753485.651391549, + 5140877.808178085 + ], + [ + -9753485.625467358, + 5140877.803839863 + ], + [ + -9753485.599622829, + 5140877.799049863 + ], + [ + -9753485.573865833, + 5140877.793809542 + ], + [ + -9753485.548204215, + 5140877.788120499 + ], + [ + -9753485.522645794, + 5140877.781984464 + ], + [ + -9753485.497198353, + 5140877.775403309 + ], + [ + -9753485.471869646, + 5140877.768379037 + ], + [ + -9753485.446667386, + 5140877.760913787 + ], + [ + -9753485.421599252, + 5140877.753009835 + ], + [ + -9753485.396672878, + 5140877.744669587 + ], + [ + -9753485.371895859, + 5140877.735895584 + ], + [ + -9753485.347275741, + 5140877.726690499 + ], + [ + -9753485.322820023, + 5140877.717057136 + ], + [ + -9753485.298536155, + 5140877.706998428 + ], + [ + -9753485.274431534, + 5140877.696517441 + ], + [ + -9753485.250513505, + 5140877.685617367 + ], + [ + -9753485.22678935, + 5140877.674301526 + ], + [ + -9753485.203266295, + 5140877.662573364 + ], + [ + -9753485.17995151, + 5140877.6504364535 + ], + [ + -9753485.156852093, + 5140877.6378944935 + ], + [ + -9753485.133975081, + 5140877.624951304 + ], + [ + -9753485.111327443, + 5140877.611610826 + ], + [ + -9753485.08891608, + 5140877.597877124 + ], + [ + -9753485.066747814, + 5140877.583754382 + ], + [ + -9753485.044829402, + 5140877.5692469 + ], + [ + -9753485.023167517, + 5140877.554359101 + ], + [ + -9753485.00176876, + 5140877.539095515 + ], + [ + -9753484.98063965, + 5140877.523460795 + ], + [ + -9753484.95978662, + 5140877.507459703 + ], + [ + -9753484.939216023, + 5140877.491097111 + ], + [ + -9753484.918934127, + 5140877.4743780065 + ], + [ + -9753484.898947107, + 5140877.457307479 + ], + [ + -9753484.879261054, + 5140877.43989073 + ], + [ + -9753484.859881964, + 5140877.422133066 + ], + [ + -9753484.840815738, + 5140877.404039893 + ], + [ + -9753484.822068186, + 5140877.385616725 + ], + [ + -9753484.803645018, + 5140877.366869174 + ], + [ + -9753484.785551846, + 5140877.347802948 + ], + [ + -9753484.76779418, + 5140877.328423858 + ], + [ + -9753484.750377433, + 5140877.308737804 + ], + [ + -9753484.733306905, + 5140877.288750785 + ], + [ + -9753484.7165878, + 5140877.2684688885 + ], + [ + -9753484.70022521, + 5140877.247898293 + ], + [ + -9753484.684224116, + 5140877.227045262 + ], + [ + -9753484.668589396, + 5140877.205916151 + ], + [ + -9753484.653325811, + 5140877.184517394 + ], + [ + -9753484.63843801, + 5140877.16285551 + ], + [ + -9753484.62393053, + 5140877.140937097 + ], + [ + -9753484.609807787, + 5140877.118768833 + ], + [ + -9753484.596074086, + 5140877.096357468 + ], + [ + -9753484.582733609, + 5140877.073709831 + ], + [ + -9753484.569790417, + 5140877.050832819 + ], + [ + -9753484.557248458, + 5140877.027733402 + ], + [ + -9753484.545111548, + 5140877.004418616 + ], + [ + -9753484.533383386, + 5140876.980895563 + ], + [ + -9753484.522067545, + 5140876.9571714075 + ], + [ + -9753484.51116747, + 5140876.933253377 + ], + [ + -9753484.500686483, + 5140876.909148756 + ], + [ + -9753484.490627775, + 5140876.884864889 + ], + [ + -9753484.480994413, + 5140876.860409171 + ], + [ + -9753484.471789327, + 5140876.835789053 + ], + [ + -9753484.463015325, + 5140876.811012033 + ], + [ + -9753484.454675077, + 5140876.78608566 + ], + [ + -9753484.446771124, + 5140876.761017526 + ], + [ + -9753484.439305875, + 5140876.735815266 + ], + [ + -9753484.432281602, + 5140876.710486558 + ], + [ + -9753484.425700447, + 5140876.685039118 + ], + [ + -9753484.419564413, + 5140876.659480697 + ], + [ + -9753484.41387537, + 5140876.63381908 + ], + [ + -9753484.40863505, + 5140876.608062083 + ], + [ + -9753484.40384505, + 5140876.582217554 + ], + [ + -9753484.399506828, + 5140876.556293363 + ], + [ + -9753484.395621706, + 5140876.530297408 + ], + [ + -9753484.392190868, + 5140876.504237608 + ], + [ + -9753484.38921536, + 5140876.478121901 + ], + [ + -9753484.386696085, + 5140876.451958242 + ], + [ + -9753484.384633813, + 5140876.425754599 + ], + [ + -9753484.383029172, + 5140876.399518956 + ], + [ + -9753484.381882653, + 5140876.373259305 + ], + [ + -9753484.381194599, + 5140876.346983643 + ], + [ + -9753484.380965225, + 5140876.320699975 + ], + [ + -9753484.381194599, + 5140876.294416307 + ], + [ + -9753484.381882653, + 5140876.268140645 + ], + [ + -9753484.383029172, + 5140876.241880993 + ], + [ + -9753484.384633813, + 5140876.2156453505 + ], + [ + -9753484.386696085, + 5140876.189441708 + ], + [ + -9753484.38921536, + 5140876.163278049 + ], + [ + -9753484.392190868, + 5140876.137162342 + ], + [ + -9753484.395621706, + 5140876.111102542 + ], + [ + -9753484.399506828, + 5140876.085106587 + ], + [ + -9753484.40384505, + 5140876.059182396 + ], + [ + -9753484.40863505, + 5140876.033337867 + ], + [ + -9753484.41387537, + 5140876.00758087 + ], + [ + -9753484.419564413, + 5140875.981919253 + ], + [ + -9753484.425700447, + 5140875.956360832 + ], + [ + -9753484.432281602, + 5140875.9309133915 + ], + [ + -9753484.439305875, + 5140875.905584684 + ], + [ + -9753484.446771124, + 5140875.880382424 + ], + [ + -9753484.454675077, + 5140875.85531429 + ], + [ + -9753484.463015325, + 5140875.830387916 + ], + [ + -9753484.471789327, + 5140875.805610897 + ], + [ + -9753484.480994413, + 5140875.7809907785 + ], + [ + -9753484.490627775, + 5140875.756535061 + ], + [ + -9753484.500686483, + 5140875.732251193 + ], + [ + -9753484.51116747, + 5140875.708146573 + ], + [ + -9753484.522067545, + 5140875.684228542 + ], + [ + -9753484.533383386, + 5140875.660504387 + ], + [ + -9753484.545111548, + 5140875.636981334 + ], + [ + -9753484.557248458, + 5140875.613666547 + ], + [ + -9753484.569790417, + 5140875.590567131 + ], + [ + -9753484.582733609, + 5140875.567690119 + ], + [ + -9753484.596074086, + 5140875.545042482 + ], + [ + -9753484.609807787, + 5140875.522631117 + ], + [ + -9753484.62393053, + 5140875.500462852 + ], + [ + -9753484.63843801, + 5140875.47854444 + ], + [ + -9753484.653325811, + 5140875.456882556 + ], + [ + -9753484.668589396, + 5140875.435483798 + ], + [ + -9753484.684224116, + 5140875.414354688 + ], + [ + -9753484.70022521, + 5140875.393501657 + ], + [ + -9753484.7165878, + 5140875.372931061 + ], + [ + -9753484.733306905, + 5140875.352649164 + ], + [ + -9753484.750377433, + 5140875.332662146 + ], + [ + -9753484.76779418, + 5140875.312976092 + ], + [ + -9753484.785551846, + 5140875.293597002 + ], + [ + -9753484.803645018, + 5140875.274530776 + ], + [ + -9753484.822068186, + 5140875.2557832245 + ], + [ + -9753484.840815738, + 5140875.2373600565 + ], + [ + -9753484.859881964, + 5140875.219266884 + ], + [ + -9753484.879261054, + 5140875.20150922 + ], + [ + -9753484.898947107, + 5140875.18409247 + ], + [ + -9753484.918934127, + 5140875.167021943 + ], + [ + -9753484.939216023, + 5140875.1503028385 + ], + [ + -9753484.95978662, + 5140875.133940247 + ], + [ + -9753484.98063965, + 5140875.117939155 + ], + [ + -9753485.00176876, + 5140875.102304434 + ], + [ + -9753485.023167517, + 5140875.087040849 + ], + [ + -9753485.044829402, + 5140875.0721530495 + ], + [ + -9753485.066747814, + 5140875.057645568 + ], + [ + -9753485.08891608, + 5140875.043522825 + ], + [ + -9753485.111327443, + 5140875.029789124 + ], + [ + -9753485.133975081, + 5140875.016448646 + ], + [ + -9753485.156852093, + 5140875.003505456 + ], + [ + -9753485.17995151, + 5140874.990963496 + ], + [ + -9753485.203266295, + 5140874.978826586 + ], + [ + -9753485.22678935, + 5140874.967098424 + ], + [ + -9753485.250513505, + 5140874.955782583 + ], + [ + -9753485.274431534, + 5140874.944882508 + ], + [ + -9753485.298536155, + 5140874.934401521 + ], + [ + -9753485.322820023, + 5140874.924342814 + ], + [ + -9753485.347275741, + 5140874.914709451 + ], + [ + -9753485.371895859, + 5140874.905504365 + ], + [ + -9753485.396672878, + 5140874.896730362 + ], + [ + -9753485.421599252, + 5140874.8883901145 + ], + [ + -9753485.446667386, + 5140874.880486162 + ], + [ + -9753485.471869646, + 5140874.8730209125 + ], + [ + -9753485.497198353, + 5140874.865996641 + ], + [ + -9753485.522645794, + 5140874.8594154855 + ], + [ + -9753485.548204215, + 5140874.853279451 + ], + [ + -9753485.573865833, + 5140874.847590407 + ], + [ + -9753485.599622829, + 5140874.842350087 + ], + [ + -9753485.625467358, + 5140874.8375600865 + ], + [ + -9753485.651391549, + 5140874.833221865 + ], + [ + -9753485.677387504, + 5140874.829336744 + ], + [ + -9753485.703447303, + 5140874.825905906 + ], + [ + -9753485.72956301, + 5140874.822930397 + ], + [ + -9753485.75572667, + 5140874.820411123 + ], + [ + -9753485.781930313, + 5140874.818348852 + ], + [ + -9753485.808165954, + 5140874.816744211 + ], + [ + -9753485.834425608, + 5140874.81559769 + ], + [ + -9753485.860701269, + 5140874.814909638 + ], + [ + -9753485.886984937, + 5140874.814680263 + ], + [ + -9753485.913268605, + 5140874.814909638 + ], + [ + -9753485.939544266, + 5140874.81559769 + ], + [ + -9753485.96580392, + 5140874.816744211 + ], + [ + -9753485.992039561, + 5140874.818348852 + ], + [ + -9753486.018243203, + 5140874.820411123 + ], + [ + -9753486.044406863, + 5140874.822930397 + ], + [ + -9753486.070522571, + 5140874.825905906 + ], + [ + -9753486.09658237, + 5140874.829336744 + ], + [ + -9753486.122578325, + 5140874.833221865 + ], + [ + -9753486.148502516, + 5140874.8375600865 + ], + [ + -9753486.174347045, + 5140874.842350087 + ], + [ + -9753486.200104041, + 5140874.847590407 + ], + [ + -9753486.225765659, + 5140874.853279451 + ], + [ + -9753486.25132408, + 5140874.8594154855 + ], + [ + -9753486.276771521, + 5140874.865996641 + ], + [ + -9753486.302100228, + 5140874.8730209125 + ], + [ + -9753486.327302488, + 5140874.880486162 + ], + [ + -9753486.352370622, + 5140874.8883901145 + ], + [ + -9753486.377296995, + 5140874.896730362 + ], + [ + -9753486.402074015, + 5140874.905504365 + ], + [ + -9753486.426694132, + 5140874.914709451 + ], + [ + -9753486.451149851, + 5140874.924342814 + ], + [ + -9753486.475433718, + 5140874.934401521 + ], + [ + -9753486.49953834, + 5140874.944882508 + ], + [ + -9753486.523456369, + 5140874.955782583 + ], + [ + -9753486.547180524, + 5140874.967098424 + ], + [ + -9753486.57070358, + 5140874.978826586 + ], + [ + -9753486.594018364, + 5140874.990963496 + ], + [ + -9753486.617117781, + 5140875.003505456 + ], + [ + -9753486.639994793, + 5140875.016448646 + ], + [ + -9753486.66264243, + 5140875.029789124 + ], + [ + -9753486.685053794, + 5140875.043522825 + ], + [ + -9753486.70722206, + 5140875.057645568 + ], + [ + -9753486.729140472, + 5140875.0721530495 + ], + [ + -9753486.750802357, + 5140875.087040849 + ], + [ + -9753486.772201113, + 5140875.102304434 + ], + [ + -9753486.793330224, + 5140875.117939155 + ], + [ + -9753486.814183254, + 5140875.133940247 + ], + [ + -9753486.83475385, + 5140875.1503028385 + ], + [ + -9753486.855035746, + 5140875.167021943 + ], + [ + -9753486.875022767, + 5140875.18409247 + ], + [ + -9753486.89470882, + 5140875.20150922 + ], + [ + -9753486.91408791, + 5140875.219266884 + ], + [ + -9753486.933154136, + 5140875.2373600565 + ], + [ + -9753486.951901687, + 5140875.2557832245 + ], + [ + -9753486.970324855, + 5140875.274530776 + ], + [ + -9753486.988418028, + 5140875.293597002 + ], + [ + -9753487.006175693, + 5140875.312976092 + ], + [ + -9753487.02359244, + 5140875.332662146 + ], + [ + -9753487.040662969, + 5140875.352649164 + ], + [ + -9753487.057382073, + 5140875.372931061 + ], + [ + -9753487.073744664, + 5140875.393501657 + ], + [ + -9753487.089745758, + 5140875.414354688 + ], + [ + -9753487.105380477, + 5140875.435483798 + ], + [ + -9753487.120644063, + 5140875.456882556 + ], + [ + -9753487.135531863, + 5140875.47854444 + ], + [ + -9753487.150039343, + 5140875.500462852 + ], + [ + -9753487.164162086, + 5140875.522631117 + ], + [ + -9753487.177895788, + 5140875.545042482 + ], + [ + -9753487.191236265, + 5140875.567690119 + ], + [ + -9753487.204179456, + 5140875.590567131 + ], + [ + -9753487.216721416, + 5140875.613666547 + ], + [ + -9753487.228858326, + 5140875.636981334 + ], + [ + -9753487.240586488, + 5140875.660504387 + ], + [ + -9753487.251902329, + 5140875.684228542 + ], + [ + -9753487.262802403, + 5140875.708146573 + ], + [ + -9753487.27328339, + 5140875.732251193 + ], + [ + -9753487.283342099, + 5140875.756535061 + ], + [ + -9753487.292975461, + 5140875.7809907785 + ], + [ + -9753487.302180547, + 5140875.805610897 + ], + [ + -9753487.310954548, + 5140875.830387916 + ], + [ + -9753487.319294797, + 5140875.85531429 + ], + [ + -9753487.32719875, + 5140875.880382424 + ], + [ + -9753487.334663998, + 5140875.905584684 + ], + [ + -9753487.341688272, + 5140875.9309133915 + ], + [ + -9753487.348269427, + 5140875.956360832 + ], + [ + -9753487.35440546, + 5140875.981919253 + ], + [ + -9753487.360094504, + 5140876.00758087 + ], + [ + -9753487.365334824, + 5140876.033337867 + ], + [ + -9753487.370124824, + 5140876.059182396 + ], + [ + -9753487.374463046, + 5140876.085106587 + ], + [ + -9753487.378348168, + 5140876.111102542 + ], + [ + -9753487.381779006, + 5140876.137162342 + ], + [ + -9753487.384754514, + 5140876.163278049 + ], + [ + -9753487.387273788, + 5140876.189441708 + ], + [ + -9753487.38933606, + 5140876.2156453505 + ], + [ + -9753487.390940702, + 5140876.241880993 + ], + [ + -9753487.392087221, + 5140876.268140645 + ], + [ + -9753487.392775275, + 5140876.294416307 + ], + [ + -9753487.393004648, + 5140876.320699975 + ], + [ + -9753487.392775275, + 5140876.346983643 + ], + [ + -9753487.392087221, + 5140876.373259305 + ], + [ + -9753487.390940702, + 5140876.399518956 + ], + [ + -9753487.38933606, + 5140876.425754599 + ], + [ + -9753487.387273788, + 5140876.451958242 + ], + [ + -9753487.384754514, + 5140876.478121901 + ], + [ + -9753487.381779006, + 5140876.504237608 + ], + [ + -9753487.378348168, + 5140876.530297408 + ], + [ + -9753487.374463046, + 5140876.556293363 + ], + [ + -9753487.370124824, + 5140876.582217554 + ], + [ + -9753487.365334824, + 5140876.608062083 + ], + [ + -9753487.360094504, + 5140876.63381908 + ], + [ + -9753487.35440546, + 5140876.659480697 + ], + [ + -9753487.348269427, + 5140876.685039118 + ], + [ + -9753487.341688272, + 5140876.710486558 + ], + [ + -9753487.334663998, + 5140876.735815266 + ], + [ + -9753487.32719875, + 5140876.761017526 + ], + [ + -9753487.319294797, + 5140876.78608566 + ], + [ + -9753487.310954548, + 5140876.811012033 + ], + [ + -9753487.302180547, + 5140876.835789053 + ], + [ + -9753487.292975461, + 5140876.860409171 + ], + [ + -9753487.283342099, + 5140876.884864889 + ], + [ + -9753487.27328339, + 5140876.909148756 + ], + [ + -9753487.262802403, + 5140876.933253377 + ], + [ + -9753487.251902329, + 5140876.9571714075 + ], + [ + -9753487.240586488, + 5140876.980895563 + ], + [ + -9753487.228858326, + 5140877.004418616 + ], + [ + -9753487.216721416, + 5140877.027733402 + ], + [ + -9753487.204179456, + 5140877.050832819 + ], + [ + -9753487.191236265, + 5140877.073709831 + ], + [ + -9753487.177895788, + 5140877.096357468 + ], + [ + -9753487.164162086, + 5140877.118768833 + ], + [ + -9753487.150039343, + 5140877.140937097 + ], + [ + -9753487.135531863, + 5140877.16285551 + ], + [ + -9753487.120644063, + 5140877.184517394 + ], + [ + -9753487.105380477, + 5140877.205916151 + ], + [ + -9753487.089745758, + 5140877.227045262 + ], + [ + -9753487.073744664, + 5140877.247898293 + ], + [ + -9753487.057382073, + 5140877.2684688885 + ], + [ + -9753487.040662969, + 5140877.288750785 + ], + [ + -9753487.02359244, + 5140877.308737804 + ], + [ + -9753487.006175693, + 5140877.328423858 + ], + [ + -9753486.988418028, + 5140877.347802948 + ], + [ + -9753486.970324855, + 5140877.366869174 + ], + [ + -9753486.951901687, + 5140877.385616725 + ], + [ + -9753486.933154136, + 5140877.404039893 + ], + [ + -9753486.91408791, + 5140877.422133066 + ], + [ + -9753486.89470882, + 5140877.43989073 + ], + [ + -9753486.875022767, + 5140877.457307479 + ], + [ + -9753486.855035746, + 5140877.4743780065 + ], + [ + -9753486.83475385, + 5140877.491097111 + ], + [ + -9753486.814183254, + 5140877.507459703 + ], + [ + -9753486.793330224, + 5140877.523460795 + ], + [ + -9753486.772201113, + 5140877.539095515 + ], + [ + -9753486.750802357, + 5140877.554359101 + ], + [ + -9753486.729140472, + 5140877.5692469 + ], + [ + -9753486.70722206, + 5140877.583754382 + ], + [ + -9753486.685053794, + 5140877.597877124 + ], + [ + -9753486.66264243, + 5140877.611610826 + ], + [ + -9753486.639994793, + 5140877.624951304 + ], + [ + -9753486.617117781, + 5140877.6378944935 + ], + [ + -9753486.594018364, + 5140877.6504364535 + ], + [ + -9753486.57070358, + 5140877.662573364 + ], + [ + -9753486.547180524, + 5140877.674301526 + ], + [ + -9753486.523456369, + 5140877.685617367 + ], + [ + -9753486.49953834, + 5140877.696517441 + ], + [ + -9753486.475433718, + 5140877.706998428 + ], + [ + -9753486.451149851, + 5140877.717057136 + ], + [ + -9753486.426694132, + 5140877.726690499 + ], + [ + -9753486.402074015, + 5140877.735895584 + ], + [ + -9753486.377296995, + 5140877.744669587 + ], + [ + -9753486.352370622, + 5140877.753009835 + ], + [ + -9753486.327302488, + 5140877.760913787 + ], + [ + -9753486.302100228, + 5140877.768379037 + ], + [ + -9753486.276771521, + 5140877.775403309 + ], + [ + -9753486.25132408, + 5140877.781984464 + ], + [ + -9753486.225765659, + 5140877.788120499 + ], + [ + -9753486.200104041, + 5140877.793809542 + ], + [ + -9753486.174347045, + 5140877.799049863 + ], + [ + -9753486.148502516, + 5140877.803839863 + ], + [ + -9753486.122578325, + 5140877.808178085 + ], + [ + -9753486.09658237, + 5140877.812063206 + ], + [ + -9753486.070522571, + 5140877.815494044 + ], + [ + -9753486.044406863, + 5140877.818469553 + ], + [ + -9753486.018243203, + 5140877.820988826 + ], + [ + -9753485.992039561, + 5140877.823051098 + ], + [ + -9753485.96580392, + 5140877.824655739 + ], + [ + -9753485.939544266, + 5140877.82580226 + ], + [ + -9753485.913268605, + 5140877.826490312 + ], + [ + -9753485.886984937, + 5140877.826719686 + ] + ] + ] + ] + } + }, + { + "type": "Feature", + "geometry": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + -9753479.165991656, + 5140877.973226353 + ], + [ + -9753479.139707988, + 5140877.972996978 + ], + [ + -9753479.113432327, + 5140877.972308926 + ], + [ + -9753479.087172674, + 5140877.971162405 + ], + [ + -9753479.060937032, + 5140877.969557764 + ], + [ + -9753479.03473339, + 5140877.967495493 + ], + [ + -9753479.00856973, + 5140877.964976219 + ], + [ + -9753478.982454022, + 5140877.96200071 + ], + [ + -9753478.956394223, + 5140877.958569872 + ], + [ + -9753478.930398269, + 5140877.954684751 + ], + [ + -9753478.904474078, + 5140877.9503465295 + ], + [ + -9753478.878629548, + 5140877.945556529 + ], + [ + -9753478.852872552, + 5140877.940316209 + ], + [ + -9753478.827210935, + 5140877.934627165 + ], + [ + -9753478.801652513, + 5140877.9284911305 + ], + [ + -9753478.776205072, + 5140877.921909975 + ], + [ + -9753478.750876365, + 5140877.9148857035 + ], + [ + -9753478.725674106, + 5140877.907420454 + ], + [ + -9753478.700605972, + 5140877.899516501 + ], + [ + -9753478.675679598, + 5140877.891176254 + ], + [ + -9753478.650902579, + 5140877.882402251 + ], + [ + -9753478.626282461, + 5140877.873197165 + ], + [ + -9753478.601826742, + 5140877.863563802 + ], + [ + -9753478.577542875, + 5140877.853505095 + ], + [ + -9753478.553438254, + 5140877.843024108 + ], + [ + -9753478.529520225, + 5140877.832124033 + ], + [ + -9753478.50579607, + 5140877.820808192 + ], + [ + -9753478.482273014, + 5140877.80908003 + ], + [ + -9753478.458958229, + 5140877.79694312 + ], + [ + -9753478.435858812, + 5140877.78440116 + ], + [ + -9753478.4129818, + 5140877.77145797 + ], + [ + -9753478.390334163, + 5140877.758117492 + ], + [ + -9753478.3679228, + 5140877.7443837905 + ], + [ + -9753478.345754534, + 5140877.730261048 + ], + [ + -9753478.323836122, + 5140877.7157535665 + ], + [ + -9753478.302174237, + 5140877.700865767 + ], + [ + -9753478.28077548, + 5140877.685602182 + ], + [ + -9753478.25964637, + 5140877.669967461 + ], + [ + -9753478.23879334, + 5140877.653966369 + ], + [ + -9753478.218222743, + 5140877.637603777 + ], + [ + -9753478.197940847, + 5140877.620884673 + ], + [ + -9753478.177953826, + 5140877.603814146 + ], + [ + -9753478.158267774, + 5140877.586397396 + ], + [ + -9753478.138888683, + 5140877.568639732 + ], + [ + -9753478.119822457, + 5140877.5505465595 + ], + [ + -9753478.101074906, + 5140877.5321233915 + ], + [ + -9753478.082651738, + 5140877.51337584 + ], + [ + -9753478.064558566, + 5140877.494309614 + ], + [ + -9753478.0468009, + 5140877.474930524 + ], + [ + -9753478.029384153, + 5140877.45524447 + ], + [ + -9753478.012313625, + 5140877.435257452 + ], + [ + -9753477.99559452, + 5140877.414975555 + ], + [ + -9753477.97923193, + 5140877.394404959 + ], + [ + -9753477.963230835, + 5140877.373551928 + ], + [ + -9753477.947596116, + 5140877.352422818 + ], + [ + -9753477.93233253, + 5140877.33102406 + ], + [ + -9753477.91744473, + 5140877.309362176 + ], + [ + -9753477.90293725, + 5140877.287443764 + ], + [ + -9753477.888814507, + 5140877.265275499 + ], + [ + -9753477.875080805, + 5140877.242864134 + ], + [ + -9753477.861740328, + 5140877.220216497 + ], + [ + -9753477.848797137, + 5140877.197339485 + ], + [ + -9753477.836255178, + 5140877.1742400685 + ], + [ + -9753477.824118268, + 5140877.150925282 + ], + [ + -9753477.812390106, + 5140877.127402229 + ], + [ + -9753477.801074265, + 5140877.103678074 + ], + [ + -9753477.79017419, + 5140877.079760043 + ], + [ + -9753477.779693203, + 5140877.055655423 + ], + [ + -9753477.769634495, + 5140877.031371555 + ], + [ + -9753477.760001132, + 5140877.0069158375 + ], + [ + -9753477.750796046, + 5140876.982295719 + ], + [ + -9753477.742022045, + 5140876.9575187 + ], + [ + -9753477.733681796, + 5140876.932592326 + ], + [ + -9753477.725777844, + 5140876.907524192 + ], + [ + -9753477.718312595, + 5140876.882321932 + ], + [ + -9753477.711288322, + 5140876.8569932245 + ], + [ + -9753477.704707166, + 5140876.831545784 + ], + [ + -9753477.698571132, + 5140876.805987363 + ], + [ + -9753477.692882089, + 5140876.780325746 + ], + [ + -9753477.68764177, + 5140876.754568749 + ], + [ + -9753477.682851769, + 5140876.72872422 + ], + [ + -9753477.678513547, + 5140876.702800029 + ], + [ + -9753477.674628425, + 5140876.676804074 + ], + [ + -9753477.671197588, + 5140876.650744274 + ], + [ + -9753477.668222079, + 5140876.624628567 + ], + [ + -9753477.665702805, + 5140876.598464908 + ], + [ + -9753477.663640533, + 5140876.5722612655 + ], + [ + -9753477.662035892, + 5140876.546025623 + ], + [ + -9753477.660889372, + 5140876.519765971 + ], + [ + -9753477.660201319, + 5140876.493490309 + ], + [ + -9753477.659971945, + 5140876.467206641 + ], + [ + -9753477.660201319, + 5140876.440922973 + ], + [ + -9753477.660889372, + 5140876.414647311 + ], + [ + -9753477.662035892, + 5140876.38838766 + ], + [ + -9753477.663640533, + 5140876.362152017 + ], + [ + -9753477.665702805, + 5140876.335948374 + ], + [ + -9753477.668222079, + 5140876.309784715 + ], + [ + -9753477.671197588, + 5140876.283669008 + ], + [ + -9753477.674628425, + 5140876.257609208 + ], + [ + -9753477.678513547, + 5140876.231613253 + ], + [ + -9753477.682851769, + 5140876.205689062 + ], + [ + -9753477.68764177, + 5140876.179844533 + ], + [ + -9753477.692882089, + 5140876.154087536 + ], + [ + -9753477.698571132, + 5140876.128425919 + ], + [ + -9753477.704707166, + 5140876.102867498 + ], + [ + -9753477.711288322, + 5140876.077420058 + ], + [ + -9753477.718312595, + 5140876.05209135 + ], + [ + -9753477.725777844, + 5140876.02688909 + ], + [ + -9753477.733681796, + 5140876.001820956 + ], + [ + -9753477.742022045, + 5140875.976894583 + ], + [ + -9753477.750796046, + 5140875.952117563 + ], + [ + -9753477.760001132, + 5140875.927497445 + ], + [ + -9753477.769634495, + 5140875.903041727 + ], + [ + -9753477.779693203, + 5140875.87875786 + ], + [ + -9753477.79017419, + 5140875.854653239 + ], + [ + -9753477.801074265, + 5140875.8307352085 + ], + [ + -9753477.812390106, + 5140875.807011053 + ], + [ + -9753477.824118268, + 5140875.783488 + ], + [ + -9753477.836255178, + 5140875.760173214 + ], + [ + -9753477.848797137, + 5140875.737073797 + ], + [ + -9753477.861740328, + 5140875.714196785 + ], + [ + -9753477.875080805, + 5140875.691549148 + ], + [ + -9753477.888814507, + 5140875.669137783 + ], + [ + -9753477.90293725, + 5140875.646969519 + ], + [ + -9753477.91744473, + 5140875.625051106 + ], + [ + -9753477.93233253, + 5140875.603389222 + ], + [ + -9753477.947596116, + 5140875.581990465 + ], + [ + -9753477.963230835, + 5140875.560861354 + ], + [ + -9753477.97923193, + 5140875.540008323 + ], + [ + -9753477.99559452, + 5140875.5194377275 + ], + [ + -9753478.012313625, + 5140875.499155831 + ], + [ + -9753478.029384153, + 5140875.479168812 + ], + [ + -9753478.0468009, + 5140875.459482758 + ], + [ + -9753478.064558566, + 5140875.440103668 + ], + [ + -9753478.082651738, + 5140875.421037442 + ], + [ + -9753478.101074906, + 5140875.402289891 + ], + [ + -9753478.119822457, + 5140875.383866723 + ], + [ + -9753478.138888683, + 5140875.36577355 + ], + [ + -9753478.158267774, + 5140875.348015886 + ], + [ + -9753478.177953826, + 5140875.330599137 + ], + [ + -9753478.197940847, + 5140875.313528609 + ], + [ + -9753478.218222743, + 5140875.296809505 + ], + [ + -9753478.23879334, + 5140875.280446913 + ], + [ + -9753478.25964637, + 5140875.264445821 + ], + [ + -9753478.28077548, + 5140875.248811101 + ], + [ + -9753478.302174237, + 5140875.233547515 + ], + [ + -9753478.323836122, + 5140875.218659716 + ], + [ + -9753478.345754534, + 5140875.204152234 + ], + [ + -9753478.3679228, + 5140875.190029492 + ], + [ + -9753478.390334163, + 5140875.17629579 + ], + [ + -9753478.4129818, + 5140875.162955312 + ], + [ + -9753478.435858812, + 5140875.1500121225 + ], + [ + -9753478.458958229, + 5140875.1374701625 + ], + [ + -9753478.482273014, + 5140875.125333252 + ], + [ + -9753478.50579607, + 5140875.11360509 + ], + [ + -9753478.529520225, + 5140875.102289249 + ], + [ + -9753478.553438254, + 5140875.091389175 + ], + [ + -9753478.577542875, + 5140875.080908188 + ], + [ + -9753478.601826742, + 5140875.07084948 + ], + [ + -9753478.626282461, + 5140875.061216117 + ], + [ + -9753478.650902579, + 5140875.052011032 + ], + [ + -9753478.675679598, + 5140875.043237029 + ], + [ + -9753478.700605972, + 5140875.034896781 + ], + [ + -9753478.725674106, + 5140875.026992829 + ], + [ + -9753478.750876365, + 5140875.019527579 + ], + [ + -9753478.776205072, + 5140875.012503307 + ], + [ + -9753478.801652513, + 5140875.005922152 + ], + [ + -9753478.827210935, + 5140874.999786117 + ], + [ + -9753478.852872552, + 5140874.994097074 + ], + [ + -9753478.878629548, + 5140874.988856753 + ], + [ + -9753478.904474078, + 5140874.984066753 + ], + [ + -9753478.930398269, + 5140874.979728531 + ], + [ + -9753478.956394223, + 5140874.97584341 + ], + [ + -9753478.982454022, + 5140874.972412572 + ], + [ + -9753479.00856973, + 5140874.969437063 + ], + [ + -9753479.03473339, + 5140874.96691779 + ], + [ + -9753479.060937032, + 5140874.964855518 + ], + [ + -9753479.087172674, + 5140874.963250877 + ], + [ + -9753479.113432327, + 5140874.962104356 + ], + [ + -9753479.139707988, + 5140874.961416304 + ], + [ + -9753479.165991656, + 5140874.96118693 + ], + [ + -9753479.192275325, + 5140874.961416304 + ], + [ + -9753479.218550986, + 5140874.962104356 + ], + [ + -9753479.244810639, + 5140874.963250877 + ], + [ + -9753479.27104628, + 5140874.964855518 + ], + [ + -9753479.297249923, + 5140874.96691779 + ], + [ + -9753479.323413583, + 5140874.969437063 + ], + [ + -9753479.34952929, + 5140874.972412572 + ], + [ + -9753479.37558909, + 5140874.97584341 + ], + [ + -9753479.401585044, + 5140874.979728531 + ], + [ + -9753479.427509235, + 5140874.984066753 + ], + [ + -9753479.453353764, + 5140874.988856753 + ], + [ + -9753479.47911076, + 5140874.994097074 + ], + [ + -9753479.504772378, + 5140874.999786117 + ], + [ + -9753479.5303308, + 5140875.005922152 + ], + [ + -9753479.55577824, + 5140875.012503307 + ], + [ + -9753479.581106948, + 5140875.019527579 + ], + [ + -9753479.606309207, + 5140875.026992829 + ], + [ + -9753479.631377341, + 5140875.034896781 + ], + [ + -9753479.656303715, + 5140875.043237029 + ], + [ + -9753479.681080734, + 5140875.052011032 + ], + [ + -9753479.705700852, + 5140875.061216117 + ], + [ + -9753479.73015657, + 5140875.07084948 + ], + [ + -9753479.754440438, + 5140875.080908188 + ], + [ + -9753479.77854506, + 5140875.091389175 + ], + [ + -9753479.802463088, + 5140875.102289249 + ], + [ + -9753479.826187244, + 5140875.11360509 + ], + [ + -9753479.849710299, + 5140875.125333252 + ], + [ + -9753479.873025084, + 5140875.1374701625 + ], + [ + -9753479.8961245, + 5140875.1500121225 + ], + [ + -9753479.919001512, + 5140875.162955312 + ], + [ + -9753479.94164915, + 5140875.17629579 + ], + [ + -9753479.964060513, + 5140875.190029492 + ], + [ + -9753479.986228779, + 5140875.204152234 + ], + [ + -9753480.008147191, + 5140875.218659716 + ], + [ + -9753480.029809076, + 5140875.233547515 + ], + [ + -9753480.051207833, + 5140875.248811101 + ], + [ + -9753480.072336944, + 5140875.264445821 + ], + [ + -9753480.093189973, + 5140875.280446913 + ], + [ + -9753480.11376057, + 5140875.296809505 + ], + [ + -9753480.134042466, + 5140875.313528609 + ], + [ + -9753480.154029487, + 5140875.330599137 + ], + [ + -9753480.17371554, + 5140875.348015886 + ], + [ + -9753480.19309463, + 5140875.36577355 + ], + [ + -9753480.212160856, + 5140875.383866723 + ], + [ + -9753480.230908407, + 5140875.402289891 + ], + [ + -9753480.249331575, + 5140875.421037442 + ], + [ + -9753480.267424747, + 5140875.440103668 + ], + [ + -9753480.285182413, + 5140875.459482758 + ], + [ + -9753480.30259916, + 5140875.479168812 + ], + [ + -9753480.319669688, + 5140875.499155831 + ], + [ + -9753480.336388793, + 5140875.5194377275 + ], + [ + -9753480.352751384, + 5140875.540008323 + ], + [ + -9753480.368752478, + 5140875.560861354 + ], + [ + -9753480.384387197, + 5140875.581990465 + ], + [ + -9753480.399650782, + 5140875.603389222 + ], + [ + -9753480.414538583, + 5140875.625051106 + ], + [ + -9753480.429046063, + 5140875.646969519 + ], + [ + -9753480.443168806, + 5140875.669137783 + ], + [ + -9753480.456902508, + 5140875.691549148 + ], + [ + -9753480.470242985, + 5140875.714196785 + ], + [ + -9753480.483186176, + 5140875.737073797 + ], + [ + -9753480.495728135, + 5140875.760173214 + ], + [ + -9753480.507865045, + 5140875.783488 + ], + [ + -9753480.519593207, + 5140875.807011053 + ], + [ + -9753480.530909048, + 5140875.8307352085 + ], + [ + -9753480.541809123, + 5140875.854653239 + ], + [ + -9753480.55229011, + 5140875.87875786 + ], + [ + -9753480.562348818, + 5140875.903041727 + ], + [ + -9753480.57198218, + 5140875.927497445 + ], + [ + -9753480.581187267, + 5140875.952117563 + ], + [ + -9753480.589961268, + 5140875.976894583 + ], + [ + -9753480.598301517, + 5140876.001820956 + ], + [ + -9753480.606205469, + 5140876.02688909 + ], + [ + -9753480.613670718, + 5140876.05209135 + ], + [ + -9753480.620694991, + 5140876.077420058 + ], + [ + -9753480.627276147, + 5140876.102867498 + ], + [ + -9753480.63341218, + 5140876.128425919 + ], + [ + -9753480.639101224, + 5140876.154087536 + ], + [ + -9753480.644341543, + 5140876.179844533 + ], + [ + -9753480.649131544, + 5140876.205689062 + ], + [ + -9753480.653469766, + 5140876.231613253 + ], + [ + -9753480.657354888, + 5140876.257609208 + ], + [ + -9753480.660785725, + 5140876.283669008 + ], + [ + -9753480.663761234, + 5140876.309784715 + ], + [ + -9753480.666280508, + 5140876.335948374 + ], + [ + -9753480.66834278, + 5140876.362152017 + ], + [ + -9753480.669947421, + 5140876.38838766 + ], + [ + -9753480.67109394, + 5140876.414647311 + ], + [ + -9753480.671781994, + 5140876.440922973 + ], + [ + -9753480.672011368, + 5140876.467206641 + ], + [ + -9753480.671781994, + 5140876.493490309 + ], + [ + -9753480.67109394, + 5140876.519765971 + ], + [ + -9753480.669947421, + 5140876.546025623 + ], + [ + -9753480.66834278, + 5140876.5722612655 + ], + [ + -9753480.666280508, + 5140876.598464908 + ], + [ + -9753480.663761234, + 5140876.624628567 + ], + [ + -9753480.660785725, + 5140876.650744274 + ], + [ + -9753480.657354888, + 5140876.676804074 + ], + [ + -9753480.653469766, + 5140876.702800029 + ], + [ + -9753480.649131544, + 5140876.72872422 + ], + [ + -9753480.644341543, + 5140876.754568749 + ], + [ + -9753480.639101224, + 5140876.780325746 + ], + [ + -9753480.63341218, + 5140876.805987363 + ], + [ + -9753480.627276147, + 5140876.831545784 + ], + [ + -9753480.620694991, + 5140876.8569932245 + ], + [ + -9753480.613670718, + 5140876.882321932 + ], + [ + -9753480.606205469, + 5140876.907524192 + ], + [ + -9753480.598301517, + 5140876.932592326 + ], + [ + -9753480.589961268, + 5140876.9575187 + ], + [ + -9753480.581187267, + 5140876.982295719 + ], + [ + -9753480.57198218, + 5140877.0069158375 + ], + [ + -9753480.562348818, + 5140877.031371555 + ], + [ + -9753480.55229011, + 5140877.055655423 + ], + [ + -9753480.541809123, + 5140877.079760043 + ], + [ + -9753480.530909048, + 5140877.103678074 + ], + [ + -9753480.519593207, + 5140877.127402229 + ], + [ + -9753480.507865045, + 5140877.150925282 + ], + [ + -9753480.495728135, + 5140877.1742400685 + ], + [ + -9753480.483186176, + 5140877.197339485 + ], + [ + -9753480.470242985, + 5140877.220216497 + ], + [ + -9753480.456902508, + 5140877.242864134 + ], + [ + -9753480.443168806, + 5140877.265275499 + ], + [ + -9753480.429046063, + 5140877.287443764 + ], + [ + -9753480.414538583, + 5140877.309362176 + ], + [ + -9753480.399650782, + 5140877.33102406 + ], + [ + -9753480.384387197, + 5140877.352422818 + ], + [ + -9753480.368752478, + 5140877.373551928 + ], + [ + -9753480.352751384, + 5140877.394404959 + ], + [ + -9753480.336388793, + 5140877.414975555 + ], + [ + -9753480.319669688, + 5140877.435257452 + ], + [ + -9753480.30259916, + 5140877.45524447 + ], + [ + -9753480.285182413, + 5140877.474930524 + ], + [ + -9753480.267424747, + 5140877.494309614 + ], + [ + -9753480.249331575, + 5140877.51337584 + ], + [ + -9753480.230908407, + 5140877.5321233915 + ], + [ + -9753480.212160856, + 5140877.5505465595 + ], + [ + -9753480.19309463, + 5140877.568639732 + ], + [ + -9753480.17371554, + 5140877.586397396 + ], + [ + -9753480.154029487, + 5140877.603814146 + ], + [ + -9753480.134042466, + 5140877.620884673 + ], + [ + -9753480.11376057, + 5140877.637603777 + ], + [ + -9753480.093189973, + 5140877.653966369 + ], + [ + -9753480.072336944, + 5140877.669967461 + ], + [ + -9753480.051207833, + 5140877.685602182 + ], + [ + -9753480.029809076, + 5140877.700865767 + ], + [ + -9753480.008147191, + 5140877.7157535665 + ], + [ + -9753479.986228779, + 5140877.730261048 + ], + [ + -9753479.964060513, + 5140877.7443837905 + ], + [ + -9753479.94164915, + 5140877.758117492 + ], + [ + -9753479.919001512, + 5140877.77145797 + ], + [ + -9753479.8961245, + 5140877.78440116 + ], + [ + -9753479.873025084, + 5140877.79694312 + ], + [ + -9753479.849710299, + 5140877.80908003 + ], + [ + -9753479.826187244, + 5140877.820808192 + ], + [ + -9753479.802463088, + 5140877.832124033 + ], + [ + -9753479.77854506, + 5140877.843024108 + ], + [ + -9753479.754440438, + 5140877.853505095 + ], + [ + -9753479.73015657, + 5140877.863563802 + ], + [ + -9753479.705700852, + 5140877.873197165 + ], + [ + -9753479.681080734, + 5140877.882402251 + ], + [ + -9753479.656303715, + 5140877.891176254 + ], + [ + -9753479.631377341, + 5140877.899516501 + ], + [ + -9753479.606309207, + 5140877.907420454 + ], + [ + -9753479.581106948, + 5140877.9148857035 + ], + [ + -9753479.55577824, + 5140877.921909975 + ], + [ + -9753479.5303308, + 5140877.9284911305 + ], + [ + -9753479.504772378, + 5140877.934627165 + ], + [ + -9753479.47911076, + 5140877.940316209 + ], + [ + -9753479.453353764, + 5140877.945556529 + ], + [ + -9753479.427509235, + 5140877.9503465295 + ], + [ + -9753479.401585044, + 5140877.954684751 + ], + [ + -9753479.37558909, + 5140877.958569872 + ], + [ + -9753479.34952929, + 5140877.96200071 + ], + [ + -9753479.323413583, + 5140877.964976219 + ], + [ + -9753479.297249923, + 5140877.967495493 + ], + [ + -9753479.27104628, + 5140877.969557764 + ], + [ + -9753479.244810639, + 5140877.971162405 + ], + [ + -9753479.218550986, + 5140877.972308926 + ], + [ + -9753479.192275325, + 5140877.972996978 + ], + [ + -9753479.165991656, + 5140877.973226353 + ] + ] + ] + ] + } + }, + { + "type": "Feature", + "geometry": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + -9753472.756325042, + 5140878.1014196845 + ], + [ + -9753472.730041374, + 5140878.10119031 + ], + [ + -9753472.703765713, + 5140878.100502258 + ], + [ + -9753472.67750606, + 5140878.099355737 + ], + [ + -9753472.651270417, + 5140878.097751096 + ], + [ + -9753472.625066776, + 5140878.095688825 + ], + [ + -9753472.598903116, + 5140878.093169551 + ], + [ + -9753472.572787408, + 5140878.090194042 + ], + [ + -9753472.546727609, + 5140878.086763204 + ], + [ + -9753472.520731654, + 5140878.082878083 + ], + [ + -9753472.494807463, + 5140878.078539861 + ], + [ + -9753472.468962934, + 5140878.073749861 + ], + [ + -9753472.443205938, + 5140878.0685095405 + ], + [ + -9753472.41754432, + 5140878.062820497 + ], + [ + -9753472.391985899, + 5140878.056684462 + ], + [ + -9753472.366538458, + 5140878.050103307 + ], + [ + -9753472.34120975, + 5140878.043079035 + ], + [ + -9753472.316007491, + 5140878.0356137855 + ], + [ + -9753472.290939357, + 5140878.027709833 + ], + [ + -9753472.266012983, + 5140878.019369585 + ], + [ + -9753472.241235964, + 5140878.010595582 + ], + [ + -9753472.216615846, + 5140878.001390497 + ], + [ + -9753472.192160128, + 5140877.991757134 + ], + [ + -9753472.16787626, + 5140877.981698426 + ], + [ + -9753472.14377164, + 5140877.9712174395 + ], + [ + -9753472.11985361, + 5140877.960317365 + ], + [ + -9753472.096129455, + 5140877.949001524 + ], + [ + -9753472.0726064, + 5140877.937273362 + ], + [ + -9753472.049291614, + 5140877.925136452 + ], + [ + -9753472.026192198, + 5140877.912594492 + ], + [ + -9753472.003315186, + 5140877.899651302 + ], + [ + -9753471.980667548, + 5140877.886310824 + ], + [ + -9753471.958256185, + 5140877.872577122 + ], + [ + -9753471.93608792, + 5140877.85845438 + ], + [ + -9753471.914169507, + 5140877.843946898 + ], + [ + -9753471.892507622, + 5140877.829059099 + ], + [ + -9753471.871108865, + 5140877.8137955135 + ], + [ + -9753471.849979755, + 5140877.798160793 + ], + [ + -9753471.829126725, + 5140877.782159701 + ], + [ + -9753471.808556128, + 5140877.765797109 + ], + [ + -9753471.788274232, + 5140877.749078005 + ], + [ + -9753471.768287212, + 5140877.732007477 + ], + [ + -9753471.74860116, + 5140877.714590728 + ], + [ + -9753471.729222069, + 5140877.696833064 + ], + [ + -9753471.710155843, + 5140877.678739891 + ], + [ + -9753471.691408291, + 5140877.660316723 + ], + [ + -9753471.672985123, + 5140877.641569172 + ], + [ + -9753471.654891951, + 5140877.622502946 + ], + [ + -9753471.637134286, + 5140877.603123856 + ], + [ + -9753471.619717538, + 5140877.583437802 + ], + [ + -9753471.60264701, + 5140877.5634507835 + ], + [ + -9753471.585927906, + 5140877.543168887 + ], + [ + -9753471.569565315, + 5140877.522598291 + ], + [ + -9753471.55356422, + 5140877.50174526 + ], + [ + -9753471.537929501, + 5140877.4806161495 + ], + [ + -9753471.522665916, + 5140877.459217392 + ], + [ + -9753471.507778116, + 5140877.437555508 + ], + [ + -9753471.493270636, + 5140877.415637095 + ], + [ + -9753471.479147892, + 5140877.393468831 + ], + [ + -9753471.46541419, + 5140877.371057466 + ], + [ + -9753471.452073714, + 5140877.348409829 + ], + [ + -9753471.439130522, + 5140877.325532817 + ], + [ + -9753471.426588563, + 5140877.3024334 + ], + [ + -9753471.414451653, + 5140877.279118614 + ], + [ + -9753471.402723491, + 5140877.255595561 + ], + [ + -9753471.39140765, + 5140877.231871406 + ], + [ + -9753471.380507575, + 5140877.207953375 + ], + [ + -9753471.370026588, + 5140877.1838487545 + ], + [ + -9753471.35996788, + 5140877.159564887 + ], + [ + -9753471.350334518, + 5140877.135109169 + ], + [ + -9753471.341129432, + 5140877.110489051 + ], + [ + -9753471.33235543, + 5140877.085712031 + ], + [ + -9753471.324015182, + 5140877.060785658 + ], + [ + -9753471.31611123, + 5140877.035717524 + ], + [ + -9753471.30864598, + 5140877.010515264 + ], + [ + -9753471.301621707, + 5140876.985186556 + ], + [ + -9753471.295040552, + 5140876.959739116 + ], + [ + -9753471.288904518, + 5140876.934180695 + ], + [ + -9753471.283215474, + 5140876.908519078 + ], + [ + -9753471.277975155, + 5140876.882762081 + ], + [ + -9753471.273185154, + 5140876.856917552 + ], + [ + -9753471.268846933, + 5140876.830993361 + ], + [ + -9753471.26496181, + 5140876.804997406 + ], + [ + -9753471.261530973, + 5140876.778937606 + ], + [ + -9753471.258555464, + 5140876.752821899 + ], + [ + -9753471.25603619, + 5140876.72665824 + ], + [ + -9753471.253973918, + 5140876.700454597 + ], + [ + -9753471.252369277, + 5140876.6742189545 + ], + [ + -9753471.251222758, + 5140876.647959303 + ], + [ + -9753471.250534704, + 5140876.621683641 + ], + [ + -9753471.25030533, + 5140876.595399973 + ], + [ + -9753471.250534704, + 5140876.569116305 + ], + [ + -9753471.251222758, + 5140876.542840643 + ], + [ + -9753471.252369277, + 5140876.516580991 + ], + [ + -9753471.253973918, + 5140876.490345349 + ], + [ + -9753471.25603619, + 5140876.464141706 + ], + [ + -9753471.258555464, + 5140876.437978047 + ], + [ + -9753471.261530973, + 5140876.41186234 + ], + [ + -9753471.26496181, + 5140876.38580254 + ], + [ + -9753471.268846933, + 5140876.359806585 + ], + [ + -9753471.273185154, + 5140876.333882394 + ], + [ + -9753471.277975155, + 5140876.308037865 + ], + [ + -9753471.283215474, + 5140876.282280868 + ], + [ + -9753471.288904518, + 5140876.256619251 + ], + [ + -9753471.295040552, + 5140876.23106083 + ], + [ + -9753471.301621707, + 5140876.20561339 + ], + [ + -9753471.30864598, + 5140876.180284682 + ], + [ + -9753471.31611123, + 5140876.155082422 + ], + [ + -9753471.324015182, + 5140876.130014288 + ], + [ + -9753471.33235543, + 5140876.1050879145 + ], + [ + -9753471.341129432, + 5140876.080310895 + ], + [ + -9753471.350334518, + 5140876.055690777 + ], + [ + -9753471.35996788, + 5140876.031235059 + ], + [ + -9753471.370026588, + 5140876.006951191 + ], + [ + -9753471.380507575, + 5140875.982846571 + ], + [ + -9753471.39140765, + 5140875.95892854 + ], + [ + -9753471.402723491, + 5140875.935204385 + ], + [ + -9753471.414451653, + 5140875.911681332 + ], + [ + -9753471.426588563, + 5140875.888366546 + ], + [ + -9753471.439130522, + 5140875.865267129 + ], + [ + -9753471.452073714, + 5140875.842390117 + ], + [ + -9753471.46541419, + 5140875.81974248 + ], + [ + -9753471.479147892, + 5140875.797331115 + ], + [ + -9753471.493270636, + 5140875.7751628505 + ], + [ + -9753471.507778116, + 5140875.753244438 + ], + [ + -9753471.522665916, + 5140875.731582554 + ], + [ + -9753471.537929501, + 5140875.7101837965 + ], + [ + -9753471.55356422, + 5140875.689054686 + ], + [ + -9753471.569565315, + 5140875.668201655 + ], + [ + -9753471.585927906, + 5140875.647631059 + ], + [ + -9753471.60264701, + 5140875.6273491625 + ], + [ + -9753471.619717538, + 5140875.607362144 + ], + [ + -9753471.637134286, + 5140875.58767609 + ], + [ + -9753471.654891951, + 5140875.568297 + ], + [ + -9753471.672985123, + 5140875.549230774 + ], + [ + -9753471.691408291, + 5140875.530483223 + ], + [ + -9753471.710155843, + 5140875.512060055 + ], + [ + -9753471.729222069, + 5140875.493966882 + ], + [ + -9753471.74860116, + 5140875.476209218 + ], + [ + -9753471.768287212, + 5140875.4587924685 + ], + [ + -9753471.788274232, + 5140875.441721941 + ], + [ + -9753471.808556128, + 5140875.425002837 + ], + [ + -9753471.829126725, + 5140875.408640245 + ], + [ + -9753471.849979755, + 5140875.392639153 + ], + [ + -9753471.871108865, + 5140875.3770044325 + ], + [ + -9753471.892507622, + 5140875.361740847 + ], + [ + -9753471.914169507, + 5140875.346853048 + ], + [ + -9753471.93608792, + 5140875.332345566 + ], + [ + -9753471.958256185, + 5140875.318222824 + ], + [ + -9753471.980667548, + 5140875.304489122 + ], + [ + -9753472.003315186, + 5140875.291148644 + ], + [ + -9753472.026192198, + 5140875.278205454 + ], + [ + -9753472.049291614, + 5140875.265663494 + ], + [ + -9753472.0726064, + 5140875.253526584 + ], + [ + -9753472.096129455, + 5140875.241798422 + ], + [ + -9753472.11985361, + 5140875.230482581 + ], + [ + -9753472.14377164, + 5140875.219582506 + ], + [ + -9753472.16787626, + 5140875.20910152 + ], + [ + -9753472.192160128, + 5140875.199042812 + ], + [ + -9753472.216615846, + 5140875.189409449 + ], + [ + -9753472.241235964, + 5140875.180204364 + ], + [ + -9753472.266012983, + 5140875.1714303605 + ], + [ + -9753472.290939357, + 5140875.163090113 + ], + [ + -9753472.316007491, + 5140875.1551861605 + ], + [ + -9753472.34120975, + 5140875.147720911 + ], + [ + -9753472.366538458, + 5140875.140696639 + ], + [ + -9753472.391985899, + 5140875.134115484 + ], + [ + -9753472.41754432, + 5140875.127979449 + ], + [ + -9753472.443205938, + 5140875.122290405 + ], + [ + -9753472.468962934, + 5140875.117050085 + ], + [ + -9753472.494807463, + 5140875.112260085 + ], + [ + -9753472.520731654, + 5140875.107921863 + ], + [ + -9753472.546727609, + 5140875.104036742 + ], + [ + -9753472.572787408, + 5140875.100605904 + ], + [ + -9753472.598903116, + 5140875.097630395 + ], + [ + -9753472.625066776, + 5140875.095111121 + ], + [ + -9753472.651270417, + 5140875.09304885 + ], + [ + -9753472.67750606, + 5140875.091444209 + ], + [ + -9753472.703765713, + 5140875.090297688 + ], + [ + -9753472.730041374, + 5140875.089609636 + ], + [ + -9753472.756325042, + 5140875.0893802615 + ], + [ + -9753472.78260871, + 5140875.089609636 + ], + [ + -9753472.808884371, + 5140875.090297688 + ], + [ + -9753472.835144024, + 5140875.091444209 + ], + [ + -9753472.861379666, + 5140875.09304885 + ], + [ + -9753472.887583308, + 5140875.095111121 + ], + [ + -9753472.913746968, + 5140875.097630395 + ], + [ + -9753472.939862676, + 5140875.100605904 + ], + [ + -9753472.965922475, + 5140875.104036742 + ], + [ + -9753472.99191843, + 5140875.107921863 + ], + [ + -9753473.01784262, + 5140875.112260085 + ], + [ + -9753473.04368715, + 5140875.117050085 + ], + [ + -9753473.069444146, + 5140875.122290405 + ], + [ + -9753473.095105764, + 5140875.127979449 + ], + [ + -9753473.120664185, + 5140875.134115484 + ], + [ + -9753473.146111626, + 5140875.140696639 + ], + [ + -9753473.171440333, + 5140875.147720911 + ], + [ + -9753473.196642593, + 5140875.1551861605 + ], + [ + -9753473.221710727, + 5140875.163090113 + ], + [ + -9753473.2466371, + 5140875.1714303605 + ], + [ + -9753473.27141412, + 5140875.180204364 + ], + [ + -9753473.296034237, + 5140875.189409449 + ], + [ + -9753473.320489956, + 5140875.199042812 + ], + [ + -9753473.344773823, + 5140875.20910152 + ], + [ + -9753473.368878445, + 5140875.219582506 + ], + [ + -9753473.392796474, + 5140875.230482581 + ], + [ + -9753473.41652063, + 5140875.241798422 + ], + [ + -9753473.440043684, + 5140875.253526584 + ], + [ + -9753473.46335847, + 5140875.265663494 + ], + [ + -9753473.486457886, + 5140875.278205454 + ], + [ + -9753473.509334898, + 5140875.291148644 + ], + [ + -9753473.531982535, + 5140875.304489122 + ], + [ + -9753473.554393899, + 5140875.318222824 + ], + [ + -9753473.576562164, + 5140875.332345566 + ], + [ + -9753473.598480577, + 5140875.346853048 + ], + [ + -9753473.620142462, + 5140875.361740847 + ], + [ + -9753473.641541218, + 5140875.3770044325 + ], + [ + -9753473.66267033, + 5140875.392639153 + ], + [ + -9753473.683523359, + 5140875.408640245 + ], + [ + -9753473.704093955, + 5140875.425002837 + ], + [ + -9753473.724375851, + 5140875.441721941 + ], + [ + -9753473.744362872, + 5140875.4587924685 + ], + [ + -9753473.764048925, + 5140875.476209218 + ], + [ + -9753473.783428015, + 5140875.493966882 + ], + [ + -9753473.80249424, + 5140875.512060055 + ], + [ + -9753473.821241792, + 5140875.530483223 + ], + [ + -9753473.83966496, + 5140875.549230774 + ], + [ + -9753473.857758133, + 5140875.568297 + ], + [ + -9753473.875515798, + 5140875.58767609 + ], + [ + -9753473.892932545, + 5140875.607362144 + ], + [ + -9753473.910003074, + 5140875.6273491625 + ], + [ + -9753473.926722178, + 5140875.647631059 + ], + [ + -9753473.943084769, + 5140875.668201655 + ], + [ + -9753473.959085863, + 5140875.689054686 + ], + [ + -9753473.974720582, + 5140875.7101837965 + ], + [ + -9753473.989984168, + 5140875.731582554 + ], + [ + -9753474.004871968, + 5140875.753244438 + ], + [ + -9753474.019379448, + 5140875.7751628505 + ], + [ + -9753474.033502191, + 5140875.797331115 + ], + [ + -9753474.047235893, + 5140875.81974248 + ], + [ + -9753474.06057637, + 5140875.842390117 + ], + [ + -9753474.073519561, + 5140875.865267129 + ], + [ + -9753474.08606152, + 5140875.888366546 + ], + [ + -9753474.09819843, + 5140875.911681332 + ], + [ + -9753474.109926593, + 5140875.935204385 + ], + [ + -9753474.121242434, + 5140875.95892854 + ], + [ + -9753474.132142508, + 5140875.982846571 + ], + [ + -9753474.142623495, + 5140876.006951191 + ], + [ + -9753474.152682204, + 5140876.031235059 + ], + [ + -9753474.162315566, + 5140876.055690777 + ], + [ + -9753474.171520652, + 5140876.080310895 + ], + [ + -9753474.180294653, + 5140876.1050879145 + ], + [ + -9753474.188634902, + 5140876.130014288 + ], + [ + -9753474.196538854, + 5140876.155082422 + ], + [ + -9753474.204004103, + 5140876.180284682 + ], + [ + -9753474.211028377, + 5140876.20561339 + ], + [ + -9753474.217609532, + 5140876.23106083 + ], + [ + -9753474.223745566, + 5140876.256619251 + ], + [ + -9753474.22943461, + 5140876.282280868 + ], + [ + -9753474.234674929, + 5140876.308037865 + ], + [ + -9753474.23946493, + 5140876.333882394 + ], + [ + -9753474.243803151, + 5140876.359806585 + ], + [ + -9753474.247688273, + 5140876.38580254 + ], + [ + -9753474.25111911, + 5140876.41186234 + ], + [ + -9753474.25409462, + 5140876.437978047 + ], + [ + -9753474.256613893, + 5140876.464141706 + ], + [ + -9753474.258676166, + 5140876.490345349 + ], + [ + -9753474.260280807, + 5140876.516580991 + ], + [ + -9753474.261427326, + 5140876.542840643 + ], + [ + -9753474.26211538, + 5140876.569116305 + ], + [ + -9753474.262344753, + 5140876.595399973 + ], + [ + -9753474.26211538, + 5140876.621683641 + ], + [ + -9753474.261427326, + 5140876.647959303 + ], + [ + -9753474.260280807, + 5140876.6742189545 + ], + [ + -9753474.258676166, + 5140876.700454597 + ], + [ + -9753474.256613893, + 5140876.72665824 + ], + [ + -9753474.25409462, + 5140876.752821899 + ], + [ + -9753474.25111911, + 5140876.778937606 + ], + [ + -9753474.247688273, + 5140876.804997406 + ], + [ + -9753474.243803151, + 5140876.830993361 + ], + [ + -9753474.23946493, + 5140876.856917552 + ], + [ + -9753474.234674929, + 5140876.882762081 + ], + [ + -9753474.22943461, + 5140876.908519078 + ], + [ + -9753474.223745566, + 5140876.934180695 + ], + [ + -9753474.217609532, + 5140876.959739116 + ], + [ + -9753474.211028377, + 5140876.985186556 + ], + [ + -9753474.204004103, + 5140877.010515264 + ], + [ + -9753474.196538854, + 5140877.035717524 + ], + [ + -9753474.188634902, + 5140877.060785658 + ], + [ + -9753474.180294653, + 5140877.085712031 + ], + [ + -9753474.171520652, + 5140877.110489051 + ], + [ + -9753474.162315566, + 5140877.135109169 + ], + [ + -9753474.152682204, + 5140877.159564887 + ], + [ + -9753474.142623495, + 5140877.1838487545 + ], + [ + -9753474.132142508, + 5140877.207953375 + ], + [ + -9753474.121242434, + 5140877.231871406 + ], + [ + -9753474.109926593, + 5140877.255595561 + ], + [ + -9753474.09819843, + 5140877.279118614 + ], + [ + -9753474.08606152, + 5140877.3024334 + ], + [ + -9753474.073519561, + 5140877.325532817 + ], + [ + -9753474.06057637, + 5140877.348409829 + ], + [ + -9753474.047235893, + 5140877.371057466 + ], + [ + -9753474.033502191, + 5140877.393468831 + ], + [ + -9753474.019379448, + 5140877.415637095 + ], + [ + -9753474.004871968, + 5140877.437555508 + ], + [ + -9753473.989984168, + 5140877.459217392 + ], + [ + -9753473.974720582, + 5140877.4806161495 + ], + [ + -9753473.959085863, + 5140877.50174526 + ], + [ + -9753473.943084769, + 5140877.522598291 + ], + [ + -9753473.926722178, + 5140877.543168887 + ], + [ + -9753473.910003074, + 5140877.5634507835 + ], + [ + -9753473.892932545, + 5140877.583437802 + ], + [ + -9753473.875515798, + 5140877.603123856 + ], + [ + -9753473.857758133, + 5140877.622502946 + ], + [ + -9753473.83966496, + 5140877.641569172 + ], + [ + -9753473.821241792, + 5140877.660316723 + ], + [ + -9753473.80249424, + 5140877.678739891 + ], + [ + -9753473.783428015, + 5140877.696833064 + ], + [ + -9753473.764048925, + 5140877.714590728 + ], + [ + -9753473.744362872, + 5140877.732007477 + ], + [ + -9753473.724375851, + 5140877.749078005 + ], + [ + -9753473.704093955, + 5140877.765797109 + ], + [ + -9753473.683523359, + 5140877.782159701 + ], + [ + -9753473.66267033, + 5140877.798160793 + ], + [ + -9753473.641541218, + 5140877.8137955135 + ], + [ + -9753473.620142462, + 5140877.829059099 + ], + [ + -9753473.598480577, + 5140877.843946898 + ], + [ + -9753473.576562164, + 5140877.85845438 + ], + [ + -9753473.554393899, + 5140877.872577122 + ], + [ + -9753473.531982535, + 5140877.886310824 + ], + [ + -9753473.509334898, + 5140877.899651302 + ], + [ + -9753473.486457886, + 5140877.912594492 + ], + [ + -9753473.46335847, + 5140877.925136452 + ], + [ + -9753473.440043684, + 5140877.937273362 + ], + [ + -9753473.41652063, + 5140877.949001524 + ], + [ + -9753473.392796474, + 5140877.960317365 + ], + [ + -9753473.368878445, + 5140877.9712174395 + ], + [ + -9753473.344773823, + 5140877.981698426 + ], + [ + -9753473.320489956, + 5140877.991757134 + ], + [ + -9753473.296034237, + 5140878.001390497 + ], + [ + -9753473.27141412, + 5140878.010595582 + ], + [ + -9753473.2466371, + 5140878.019369585 + ], + [ + -9753473.221710727, + 5140878.027709833 + ], + [ + -9753473.196642593, + 5140878.0356137855 + ], + [ + -9753473.171440333, + 5140878.043079035 + ], + [ + -9753473.146111626, + 5140878.050103307 + ], + [ + -9753473.120664185, + 5140878.056684462 + ], + [ + -9753473.095105764, + 5140878.062820497 + ], + [ + -9753473.069444146, + 5140878.0685095405 + ], + [ + -9753473.04368715, + 5140878.073749861 + ], + [ + -9753473.01784262, + 5140878.078539861 + ], + [ + -9753472.99191843, + 5140878.082878083 + ], + [ + -9753472.965922475, + 5140878.086763204 + ], + [ + -9753472.939862676, + 5140878.090194042 + ], + [ + -9753472.913746968, + 5140878.093169551 + ], + [ + -9753472.887583308, + 5140878.095688825 + ], + [ + -9753472.861379666, + 5140878.097751096 + ], + [ + -9753472.835144024, + 5140878.099355737 + ], + [ + -9753472.808884371, + 5140878.100502258 + ], + [ + -9753472.78260871, + 5140878.10119031 + ], + [ + -9753472.756325042, + 5140878.1014196845 + ] + ] + ] + ] + } + } + ] +} diff --git a/docs/main_level_pictograms.e628d709.geojson b/docs/main_level_pictograms.e628d709.geojson new file mode 100644 index 0000000..9a9f0fd --- /dev/null +++ b/docs/main_level_pictograms.e628d709.geojson @@ -0,0 +1,141 @@ +{ + "type": "FeatureCollection", + "name": "main_level_pictograms", + "crs": { + "type": "name", + "properties": { + "name": "urn:ogc:def:crs:EPSG::3857" + } + }, + "features": [ + { + "type": "Feature", + "properties": { + "id": "bird" + }, + "geometry": { + "type": "Point", + "coordinates": [ + -9753567.089020148, + 5141026.714857465 + ] + }, + "id": "bird" + }, + { + "type": "Feature", + "id": "maximo", + "properties": { + "id": "maximo", + "label": "Máximo\nthe\nTitanosaur" + }, + "geometry": { + "type": "Point", + "coordinates": [ + -9753489.238221748, + 5140999.8948999485 + ] + } + }, + { + "type": "Feature", + "properties": { + "id": "elephant" + }, + "geometry": { + "type": "Point", + "coordinates": [ + -9753475.010555338, + 5140976.963249381 + ] + }, + "id": "elephant" + }, + { + "type": "Feature", + "properties": { + "id": "totems" + }, + "geometry": { + "type": "Point", + "coordinates": [ + -9753475.68009258, + 5140945.494998966 + ] + }, + "id": "totems" + }, + { + "type": "Feature", + "properties": { + "id": "mask" + }, + "geometry": { + "type": "Point", + "coordinates": [ + -9753428.877633499, + 5140996.467543021 + ] + }, + "id": "mask" + }, + { + "type": "Feature", + "properties": { + "id": "pawnee_lodge", + "label": "Pawnee\nLodge" + }, + "geometry": { + "type": "Point", + "coordinates": [ + -9753383.931545118, + 5140948.93249759 + ] + }, + "id": "pawnee_lodge" + }, + { + "type": "Feature", + "properties": { + "id": "lion", + "label": "Tsavo\nLions" + }, + "geometry": { + "type": "Point", + "coordinates": [ + -9753626.20118901, + 5140971.974732949 + ] + }, + "id": "lion" + }, + { + "type": "Feature", + "properties": { + "id": "south_entrance" + }, + "geometry": { + "type": "Point", + "coordinates": [ + -9753482.198635027, + 5140869.655059936 + ] + }, + "id": "south_entrance" + }, + { + "type": "Feature", + "properties": { + "id": "north_entrance" + }, + "geometry": { + "type": "Point", + "coordinates": [ + -9753485.796646956, + 5141058.293685325 + ] + }, + "id": "north_entrance" + } + ] +} diff --git a/docs/openlayers_indoor_map.5e860280.css b/docs/openlayers_indoor_map.5e860280.css new file mode 100644 index 0000000..594fd7f --- /dev/null +++ b/docs/openlayers_indoor_map.5e860280.css @@ -0,0 +1,2 @@ +body,html{height:100%;margin:0}body{font:10pt sans-serif}.ol-zoom button{font:20pt sans-serif!important}.map{width:100%;height:100%}.ol-control{background:none!important}.layer-switcher button{display:none!important}.layer-switcher ul,.ol-zoom{display:flex;flex-direction:column}.layer-switcher{right:10px!important}.layer-switcher,.ol-zoom{bottom:.5em!important;top:auto!important}.layer-switcher ul{list-style:none;margin:0!important;padding:0!important}.layer-switcher label,.ol-zoom button{margin:0!important}.layer-switcher li label,.ol-control button{background:#f0f3f3!important;color:#000!important;text-align:center!important;border:1px solid #3d57cc!important;min-width:40px;height:40px!important;border-radius:0!important;padding:5px}.layer-switcher li input[type=checkbox]{display:none}.layer-switcher li input[type=checkbox]:checked+label{background:#3d57cc!important;color:#fff!important;font-weight:700}.layer-switcher li label{margin:5px;display:flex;justify-content:center;align-items:center}#logo{width:50px;position:absolute;left:5px;top:5px}#logo img{width:100%}#compass{position:absolute;top:10px;right:10px}#compass img{width:25px}#closed{display:flex;position:absolute;align-items:center;justify-content:center;bottom:1.5em;width:100%}#closed-content{background-color:#fff;padding:10px;white-space:nowrap;z-index:999;display:none}.ol-attribution{display:flex;position:absolute;align-items:center;justify-content:center;bottom:.5em;width:100%}.ol-attribution ul{text-align:center}@media (min-width:568px){#logo{width:70px}.layer-switcher ul,.ol-zoom{flex-direction:row-reverse}.layer-switcher li label,.ol-control button{padding:10px}}#closed img,#closed p,#compass,#logo{z-index:1}div.ol-rotate{display:none}#tfm-sidebar{position:fixed;z-index:999;background:#fff;padding:0 30px;overflow-y:auto;border:0 solid #6a6a71}#tfm-sidebar button{font:700 14px Graphik,sans-serif;color:#fff;padding:15px;margin:10px 0;border:0}#tfm-sidebar::-webkit-scrollbar{-webkit-appearance:none;width:7px}#tfm-sidebar::-webkit-scrollbar-thumb{border-radius:4px;background-color:rgba(0,0,0,.5);box-shadow:0 0 1px hsla(0,0%,100%,.5)}#tfm-sidebar button,#tfm-sidebar img{width:100%;box-sizing:border-box;cursor:pointer}#tfm-sidebar.closed{visibility:hidden}#tfm-sidebar.open{visibility:visible}#tfm-sidebar #sidebar-content{margin-bottom:5em;font:12pt Graphik,sans-serif}@media only screen and (min-width:501px){#tfm-sidebar{transition:width .5s}#tfm-sidebar.open{width:40vw;max-width:300px;border-left-width:4px;right:0;height:100vh}#tfm-sidebar.closed{width:0}}@media only screen and (max-width:500px){#tfm-sidebar{transition:height .5s;background:linear-gradient(0deg,#000,#fff 2em)}#tfm-sidebar.open{width:100vw;max-width:calc(100% - 60px);bottom:0;height:70vh;border-top-width:4px}#tfm-sidebar.closed{height:0}}#tfm-sidebar #sidebar-close-button{font-size:20pt;font-weight:700;display:inline-block;cursor:pointer;position:absolute;right:10px;top:10px;color:#000} +/*# sourceMappingURL=openlayers_indoor_map.5e860280.css.map */ \ No newline at end of file diff --git a/docs/openlayers_indoor_map.5e860280.css.map b/docs/openlayers_indoor_map.5e860280.css.map new file mode 100644 index 0000000..9dbbc83 --- /dev/null +++ b/docs/openlayers_indoor_map.5e860280.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["index.css"],"names":[],"mappings":"AAAA,UACI,WAAY,CACZ,QACJ,CAEA,KACI,oBACJ,CAEA,gBACI,8BACJ,CAEA,KACI,UAAW,CACX,WACJ,CAEA,YACI,yBACJ,CAEA,uBACI,sBACJ,CAEA,4BACI,YAAa,CACb,qBACJ,CAEA,gBACI,oBACJ,CAEA,yBACI,qBAAuB,CACvB,kBACJ,CAEA,mBACI,eAAgB,CAChB,kBAAoB,CACpB,mBACJ,CAEA,sCACI,kBACJ,CAEA,4CACI,4BAA8B,CAC9B,oBAAuB,CACvB,2BAA6B,CAC7B,kCAAoC,CACpC,cAAe,CACf,qBAAuB,CACvB,yBAA2B,CAC3B,WACJ,CAGA,wCACI,YACJ,CAEA,sDACI,4BAA8B,CAC9B,oBAAuB,CACvB,eACJ,CAEA,yBACI,UAAW,CACX,YAAa,CACb,sBAAuB,CACvB,kBACJ,CAEA,MACI,UAAW,CACX,iBAAkB,CAClB,QAAS,CACT,OACJ,CAEA,UACI,UACJ,CAEA,SACI,iBAAkB,CAClB,QAAS,CACT,UACJ,CAEA,aACI,UACJ,CAEA,QACI,YAAa,CACb,iBAAkB,CAClB,kBAAmB,CACnB,sBAAuB,CACvB,YAAa,CACb,UACJ,CAEA,gBAEI,qBAAuB,CACvB,YAAa,CACb,kBAAmB,CACnB,WAAY,CACZ,YACJ,CAEA,gBACI,YAAa,CACb,iBAAkB,CAClB,kBAAmB,CACnB,sBAAuB,CACvB,WAAa,CACb,UACJ,CAEA,mBACI,iBACJ,CAEA,yBAEI,MACI,UACJ,CAGA,4BACI,0BACJ,CAEA,4CACI,YACJ,CAEJ,CAEA,qCACI,SACJ,CAEA,cACI,YACJ,CAGA,aACI,cAAe,CACf,WAAY,CACZ,eAAiB,CACjB,cAAe,CACf,eAAgB,CAChB,sBACJ,CAEA,oBACI,gCAAmC,CACnC,UAAY,CACZ,YAAa,CACb,aAAc,CACd,QACJ,CAEA,gCACI,uBAAwB,CACxB,SACJ,CAEA,sCACI,iBAAkB,CAClB,+BAAmC,CACnC,qCACJ,CAEA,qCACI,UAAW,CACX,qBAAsB,CACtB,cACJ,CAEA,oBACI,iBACJ,CAEA,kBACI,kBACJ,CAEA,8BACI,iBAAkB,CAClB,4BACJ,CAEA,yCACI,aACI,oBACJ,CAEA,kBACI,UAAW,CACX,eAAgB,CAChB,qBAAsB,CACtB,OAAQ,CACR,YACJ,CAEA,oBACI,OACJ,CACJ,CAGA,yCACI,aACI,qBAAuB,CACvB,8CACJ,CAEA,kBACI,WAAY,CACZ,2BAA4B,CAC5B,QAAS,CACT,WAAY,CACZ,oBACJ,CAEA,oBACI,QACJ,CACJ,CAEA,mCACI,cAAe,CACf,eAAiB,CACjB,oBAAqB,CACrB,cAAe,CACf,iBAAkB,CAClB,UAAW,CACX,QAAS,CACT,UACJ","file":"openlayers_indoor_map.5e860280.css","sourceRoot":"..","sourcesContent":["html, body {\n height: 100%;\n margin: 0;\n}\n\nbody {\n font: 10pt sans-serif;\n}\n\n.ol-zoom button {\n font: 20pt sans-serif !important;\n}\n\n.map {\n width: 100%;\n height: 100%;\n}\n\n.ol-control {\n background: none !important;\n}\n\n.layer-switcher button {\n display: none !important;\n}\n\n.layer-switcher ul, .ol-zoom {\n display: flex;\n flex-direction: column;\n}\n\n.layer-switcher {\n right: 10px !important;\n}\n\n.ol-zoom, .layer-switcher {\n bottom: .5em !important;\n top: auto !important;\n}\n\n.layer-switcher ul {\n list-style: none;\n margin: 0 !important;\n padding: 0 !important;\n}\n\n.layer-switcher label, .ol-zoom button {\n margin: 0 !important;\n}\n\n.ol-control button, .layer-switcher li label {\n background: #F0F3F3 !important;\n color: black !important;\n text-align: center !important;\n border: 1px solid #3d57cc !important;\n min-width: 40px;\n height: 40px !important;\n border-radius: 0 !important;\n padding: 5px;\n}\n\n/* TODO make this a radio button!! */\n.layer-switcher li input[type=\"checkbox\"] {\n display: none;\n}\n\n.layer-switcher li input[type=\"checkbox\"]:checked + label {\n background: #3d57cc !important;\n color: white !important;\n font-weight: bold;\n}\n\n.layer-switcher li label {\n margin: 5px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n#logo {\n width: 50px;\n position: absolute;\n left: 5px;\n top: 5px;\n}\n\n#logo img {\n width: 100%;\n}\n\n#compass {\n position: absolute;\n top: 10px;\n right: 10px;\n}\n\n#compass img {\n width: 25px;\n}\n\n#closed {\n display: flex;\n position: absolute;\n align-items: center;\n justify-content: center;\n bottom: 1.5em;\n width: 100%;\n}\n\n#closed-content {\n /*display: flex;*/\n background-color: white;\n padding: 10px;\n white-space: nowrap;\n z-index: 999;\n display: none;\n}\n\n.ol-attribution {\n display: flex;\n position: absolute;\n align-items: center;\n justify-content: center;\n bottom: 0.5em;\n width: 100%;\n}\n\n.ol-attribution ul {\n text-align: center;\n}\n\n@media (min-width: 568px) {\n\n #logo {\n width: 70px;\n }\n\n\n .layer-switcher ul, .ol-zoom {\n flex-direction: row-reverse;\n }\n\n .ol-control button, .layer-switcher li label {\n padding: 10px;\n }\n\n}\n\n#logo, #compass, #closed img, #closed p {\n z-index: 1;\n}\n\ndiv.ol-rotate {\n display: none;\n}\n\n\n#tfm-sidebar {\n position: fixed;\n z-index: 999;\n background: white;\n padding: 0 30px;\n overflow-y: auto;\n border: 0 solid #6a6a71;\n}\n\n#tfm-sidebar button {\n font: bold 14px Graphik, sans-serif;\n color: white;\n padding: 15px;\n margin: 10px 0;\n border: 0;\n}\n\n#tfm-sidebar::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 7px;\n}\n\n#tfm-sidebar::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, .5);\n box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n}\n\n#tfm-sidebar img, #tfm-sidebar button {\n width: 100%;\n box-sizing: border-box;\n cursor: pointer;\n}\n\n#tfm-sidebar.closed {\n visibility: hidden;\n}\n\n#tfm-sidebar.open {\n visibility: visible;\n}\n\n#tfm-sidebar #sidebar-content {\n margin-bottom: 5em;\n font: 12pt Graphik, sans-serif;\n}\n\n@media only screen and (min-width: 501px) {\n #tfm-sidebar {\n transition: width 0.5s;\n }\n\n #tfm-sidebar.open {\n width: 40vw;\n max-width: 300px;\n border-left-width: 4px;\n right: 0;\n height: 100vh;\n }\n\n #tfm-sidebar.closed {\n width: 0;\n }\n}\n\n\n@media only screen and (max-width: 500px) {\n #tfm-sidebar {\n transition: height 0.5s;\n background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(255,255,255,1) 2em);\n }\n\n #tfm-sidebar.open {\n width: 100vw;\n max-width: calc(100% - 60px);\n bottom: 0;\n height: 70vh;\n border-top-width: 4px;\n }\n\n #tfm-sidebar.closed {\n height: 0;\n }\n}\n\n#tfm-sidebar #sidebar-close-button {\n font-size: 20pt;\n font-weight: bold;\n display: inline-block;\n cursor: pointer;\n position: absolute;\n right: 10px;\n top: 10px;\n color: black;\n}\n\n"]} \ No newline at end of file diff --git a/docs/openlayers_indoor_map.bb28b584.css b/docs/openlayers_indoor_map.bb28b584.css new file mode 100644 index 0000000..b014316 --- /dev/null +++ b/docs/openlayers_indoor_map.bb28b584.css @@ -0,0 +1,2 @@ +.ol-box{box-sizing:border-box;border-radius:2px;border:2px solid #00f}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:rgba(0,60,136,.3);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid #eee;border-top:none;color:#eee;font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-step-marker{width:1px;height:15px;background-color:#000;float:right;z-Index:10}.ol-scale-step-text{bottom:-5px;font-size:12px;z-Index:11}.ol-scale-step-text,.ol-scale-text{position:absolute;color:#000;text-shadow:-2px 0 #fff,0 2px #fff,2px 0 #fff,0 -2px #fff}.ol-scale-text{font-size:14px;text-align:center;bottom:25px}.ol-scale-singlebar{position:relative;height:10px;z-Index:9;box-sizing:border-box;border:1px solid #000}.ol-unsupported{display:none}.ol-unselectable,.ol-viewport{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:hsla(0,0%,100%,.4);border-radius:4px;padding:2px}.ol-control:hover{background-color:hsla(0,0%,100%,.6)}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:#fff;font-size:1.14em;font-weight:700;text-decoration:none;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:rgba(0,60,136,.5);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;font-size:1.2em;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:focus,.ol-control button:hover{text-decoration:none;background-color:rgba(0,60,136,.7)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em)}.ol-attribution ul{margin:0;padding:0 .5em;color:#000;text-shadow:0 0 2px #fff}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button,.ol-attribution ul{display:inline-block}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:hsla(0,0%,100%,.8)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:inline-block}.ol-overviewmap .ol-overviewmap-map{border:1px solid #7b98bc;height:150px;margin:2px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:1px;left:2px;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:hsla(0,0%,100%,.8)}.ol-overviewmap-box{border:2px dotted rgba(0,60,136,.7)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move} +/*# sourceMappingURL=openlayers_indoor_map.bb28b584.css.map */ \ No newline at end of file diff --git a/docs/openlayers_indoor_map.bb28b584.css.map b/docs/openlayers_indoor_map.bb28b584.css.map new file mode 100644 index 0000000..8367793 --- /dev/null +++ b/docs/openlayers_indoor_map.bb28b584.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["ol.css"],"names":[],"mappings":"AAAA,QACE,qBAAsB,CACtB,iBAAkB,CAClB,qBACF,CAEA,mBACE,OAAQ,CACR,SAAU,CACV,iBACF,CAEA,eACE,4BAA8B,CAC9B,iBAAkB,CAClB,UAAW,CACX,QAAS,CACT,WAAY,CACZ,iBACF,CACA,qBAEE,qBAAgB,CAAhB,eAAgB,CAChB,UAAW,CACX,cAAe,CACf,iBAAkB,CAClB,UAAW,CACX,0BAA4B,CAC5B,mBACF,CACA,cACE,iBAAkB,CAClB,UAAW,CACX,QACF,CACA,sBACE,SAAU,CACV,WAAY,CACZ,qBAAyB,CACzB,WAAY,CACZ,UACF,CACA,oBAEE,WAAY,CACZ,cAAe,CACf,UAGF,CACA,mCAPE,iBAAkB,CAIlB,UAAc,CACd,yDASF,CAPA,eAEE,cAAe,CACf,iBAAkB,CAClB,WAGF,CACA,oBACE,iBAAkB,CAClB,WAAY,CACZ,SAAU,CACV,qBAAsB,CACtB,qBACF,CAEA,gBACE,YACF,CACA,8BACE,0BAA2B,CAC3B,wBAAyB,CACzB,qBAAsB,CACtB,oBAAqB,CACrB,gBAAiB,CACjB,yCACF,CACA,eACE,6BAA8B,CAC9B,wBAAyB,CACzB,qBAAsB,CACtB,oBAAqB,CACrB,gBACF,CACA,aACE,uBAAwB,CACxB,oBAAqB,CACrB,eACF,CACA,SACE,WAAY,CACZ,mBAAoB,CACpB,gBAAiB,CACjB,WACF,CACA,YACE,iBAAkB,CAClB,mCAAuC,CACvC,iBAAkB,CAClB,WACF,CACA,kBACE,mCACF,CACA,SACE,QAAS,CACT,SACF,CACA,WACE,QAAS,CACT,UAAW,CACX,mDACF,CACA,qBACE,SAAU,CACV,iBAAkB,CAClB,wDACF,CACA,gBACE,WAAY,CACZ,SACF,CACA,gBACE,UAAW,CACX,QACF,CAEA,mBACE,aAAc,CACd,UAAW,CACX,SAAU,CACV,UAAY,CACZ,gBAAiB,CACjB,eAAiB,CACjB,oBAAqB,CACrB,iBAAkB,CAClB,cAAe,CACf,aAAc,CACd,gBAAiB,CACjB,kCAAoC,CACpC,WAAY,CACZ,iBACF,CACA,qCACE,WAAY,CACZ,SACF,CACA,uBACE,iBACF,CACA,YACE,aAAc,CACd,eAAmB,CACnB,eAAgB,CAChB,qBACF,CACA,6BACE,eACF,CACA,0BACE,SACF,CACA,kDAEE,oBAAqB,CACrB,kCACF,CACA,qBACE,yBACF,CACA,sBACE,yBACF,CAGA,gBACE,gBAAiB,CACjB,WAAY,CACZ,UAAW,CACX,4BACF,CAEA,mBACE,QAAS,CACT,cAAe,CACf,UAAW,CACX,wBACF,CACA,mBACE,cAAe,CACf,eACF,CACA,0CACE,WACF,CACA,oBACE,cAAe,CACf,iBAAkB,CAClB,qBACF,CACA,0CACE,oBACF,CACA,gCACE,YACF,CACA,mCACE,6BACF,CACA,iCACE,QAAS,CACT,OAAQ,CACR,qBACF,CACA,qCACE,gBAAiB,CACjB,gBACF,CACA,wCACE,YACF,CAEA,eACE,SAAU,CACV,SAAU,CACV,YACF,CACA,sBACE,iBAAkB,CAClB,WACF,CAEA,yBACE,SACF,CAEA,gBACE,SAAW,CACX,WACF,CACA,iCACE,QAAS,CACT,MAAO,CACP,uBACF,CACA,2DAEE,oBACF,CACA,oCACE,wBAAyB,CACzB,YAAa,CACb,UAAW,CACX,WACF,CACA,0CACE,UAAW,CACX,QAAS,CACT,iBACF,CACA,yFAEE,YACF,CACA,mCACE,6BACF,CACA,oBACE,mCACF,CAEA,0CACE,WACF","file":"openlayers_indoor_map.bb28b584.css","sourceRoot":"..","sourcesContent":[".ol-box {\n box-sizing: border-box;\n border-radius: 2px;\n border: 2px solid blue;\n}\n\n.ol-mouse-position {\n top: 8px;\n right: 8px;\n position: absolute;\n}\n\n.ol-scale-line {\n background: rgba(0,60,136,0.3);\n border-radius: 4px;\n bottom: 8px;\n left: 8px;\n padding: 2px;\n position: absolute;\n}\n.ol-scale-line-inner {\n border: 1px solid #eee;\n border-top: none;\n color: #eee;\n font-size: 10px;\n text-align: center;\n margin: 1px;\n will-change: contents, width;\n transition: all 0.25s;\n}\n.ol-scale-bar {\n position: absolute;\n bottom: 8px;\n left: 8px;\n}\n.ol-scale-step-marker {\n width: 1px;\n height: 15px;\n background-color: #000000;\n float: right;\n z-Index: 10;\n}\n.ol-scale-step-text {\n position: absolute;\n bottom: -5px;\n font-size: 12px;\n z-Index: 11;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-text {\n position: absolute;\n font-size: 14px;\n text-align: center;\n bottom: 25px;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-singlebar {\n position: relative;\n height: 10px;\n z-Index: 9;\n box-sizing: border-box;\n border: 1px solid black;\n}\n\n.ol-unsupported {\n display: none;\n}\n.ol-viewport, .ol-unselectable {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n}\n.ol-selectable {\n -webkit-touch-callout: default;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n.ol-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n.ol-grab {\n cursor: move;\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n}\n.ol-control {\n position: absolute;\n background-color: rgba(255,255,255,0.4);\n border-radius: 4px;\n padding: 2px;\n}\n.ol-control:hover {\n background-color: rgba(255,255,255,0.6);\n}\n.ol-zoom {\n top: .5em;\n left: .5em;\n}\n.ol-rotate {\n top: .5em;\n right: .5em;\n transition: opacity .25s linear, visibility 0s linear;\n}\n.ol-rotate.ol-hidden {\n opacity: 0;\n visibility: hidden;\n transition: opacity .25s linear, visibility 0s linear .25s;\n}\n.ol-zoom-extent {\n top: 4.643em;\n left: .5em;\n}\n.ol-full-screen {\n right: .5em;\n top: .5em;\n}\n\n.ol-control button {\n display: block;\n margin: 1px;\n padding: 0;\n color: white;\n font-size: 1.14em;\n font-weight: bold;\n text-decoration: none;\n text-align: center;\n height: 1.375em;\n width: 1.375em;\n line-height: .4em;\n background-color: rgba(0,60,136,0.5);\n border: none;\n border-radius: 2px;\n}\n.ol-control button::-moz-focus-inner {\n border: none;\n padding: 0;\n}\n.ol-zoom-extent button {\n line-height: 1.4em;\n}\n.ol-compass {\n display: block;\n font-weight: normal;\n font-size: 1.2em;\n will-change: transform;\n}\n.ol-touch .ol-control button {\n font-size: 1.5em;\n}\n.ol-touch .ol-zoom-extent {\n top: 5.5em;\n}\n.ol-control button:hover,\n.ol-control button:focus {\n text-decoration: none;\n background-color: rgba(0,60,136,0.7);\n}\n.ol-zoom .ol-zoom-in {\n border-radius: 2px 2px 0 0;\n}\n.ol-zoom .ol-zoom-out {\n border-radius: 0 0 2px 2px;\n}\n\n\n.ol-attribution {\n text-align: right;\n bottom: .5em;\n right: .5em;\n max-width: calc(100% - 1.3em);\n}\n\n.ol-attribution ul {\n margin: 0;\n padding: 0 .5em;\n color: #000;\n text-shadow: 0 0 2px #fff;\n}\n.ol-attribution li {\n display: inline;\n list-style: none;\n}\n.ol-attribution li:not(:last-child):after {\n content: \" \";\n}\n.ol-attribution img {\n max-height: 2em;\n max-width: inherit;\n vertical-align: middle;\n}\n.ol-attribution ul, .ol-attribution button {\n display: inline-block;\n}\n.ol-attribution.ol-collapsed ul {\n display: none;\n}\n.ol-attribution:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-attribution.ol-uncollapsible {\n bottom: 0;\n right: 0;\n border-radius: 4px 0 0;\n}\n.ol-attribution.ol-uncollapsible img {\n margin-top: -.2em;\n max-height: 1.6em;\n}\n.ol-attribution.ol-uncollapsible button {\n display: none;\n}\n\n.ol-zoomslider {\n top: 4.5em;\n left: .5em;\n height: 200px;\n}\n.ol-zoomslider button {\n position: relative;\n height: 10px;\n}\n\n.ol-touch .ol-zoomslider {\n top: 5.5em;\n}\n\n.ol-overviewmap {\n left: 0.5em;\n bottom: 0.5em;\n}\n.ol-overviewmap.ol-uncollapsible {\n bottom: 0;\n left: 0;\n border-radius: 0 4px 0 0;\n}\n.ol-overviewmap .ol-overviewmap-map,\n.ol-overviewmap button {\n display: inline-block;\n}\n.ol-overviewmap .ol-overviewmap-map {\n border: 1px solid #7b98bc;\n height: 150px;\n margin: 2px;\n width: 150px;\n}\n.ol-overviewmap:not(.ol-collapsed) button{\n bottom: 1px;\n left: 2px;\n position: absolute;\n}\n.ol-overviewmap.ol-collapsed .ol-overviewmap-map,\n.ol-overviewmap.ol-uncollapsible button {\n display: none;\n}\n.ol-overviewmap:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-overviewmap-box {\n border: 2px dotted rgba(0,60,136,0.7);\n}\n\n.ol-overviewmap .ol-overviewmap-box:hover {\n cursor: move;\n}\n"]} \ No newline at end of file diff --git a/docs/openlayers_indoor_map.c67e9f72.js b/docs/openlayers_indoor_map.c67e9f72.js new file mode 100644 index 0000000..06d4fe7 --- /dev/null +++ b/docs/openlayers_indoor_map.c67e9f72.js @@ -0,0 +1,753 @@ +parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c>1)],n))<0?f=u+1:(a=u,s=!o);return s?f:~f}function e(r,e){return r>e?1:r=0}function t(r,e,n){var t=r.length;if(r[0]<=e)return 0;if(e<=r[t-1])return t-1;var u=void 0;if(n>0){for(u=1;u-1;return t&&r.splice(n,1),t}function f(r,e){for(var n,t=r.length>>>0,u=0;u0||t&&0===o)})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.binarySearch=r,exports.numberSafeCompareFunction=e,exports.includes=n,exports.linearFindNearest=t,exports.reverseSubArray=u,exports.extend=o,exports.remove=i,exports.find=f,exports.equals=a,exports.stableSort=s,exports.findIndex=l,exports.isSorted=v; +},{}],"RgA2":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TRUE=e,exports.FALSE=t,exports.VOID=n,exports.memoizeOne=o;var r=require("./array.js");function e(){return!0}function t(){return!1}function n(){}function o(e){var t,n,o,s=!1;return function(){var u=Array.prototype.slice.call(arguments);return s&&this===o&&(0,r.equals)(u,n)||(s=!0,o=this,n=u,t=e.apply(this,arguments)),t}} +},{"./array.js":"luEr"}],"mH6q":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.clear=r,exports.isEmpty=n,exports.getValues=exports.assign=void 0;var e="function"==typeof Object.assign?Object.assign:function(e,r){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,o=arguments.length;n0)},s.prototype.removeEventListener=function(e,t){var i=this.listeners_&&this.listeners_[e];if(i){var s=i.indexOf(t);-1!==s&&(this.pendingRemovals_&&e in this.pendingRemovals_?(i[s]=n.VOID,++this.pendingRemovals_[e]):(i.splice(s,1),0===i.length&&delete this.listeners_[e]))}},s}(e.default),l=o;exports.default=l; +},{"../Disposable.js":"DDda","./Event.js":"fKNg","../functions.js":"RgA2","../obj.js":"mH6q"}],"C8cu":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};exports.default=e; +},{}],"UqnM":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.listen=t,exports.listenOnce=r,exports.unlistenByKey=n;var e=require("./obj.js");function t(e,t,r,n,i){if(n&&n!==e&&(r=r.bind(n)),i){var s=r;r=function(){e.removeEventListener(t,r),s.apply(this,arguments)}}var o={target:e,type:t,listener:r};return e.addEventListener(t,r),o}function r(e,r,n,i){return t(e,r,n,i,!0)}function n(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,e.clear)(t))} +},{"./obj.js":"mH6q"}],"IdSm":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.unByKey=s,exports.default=void 0;var e=n(require("./events/Target.js")),t=n(require("./events/EventType.js")),r=require("./events.js");function n(e){return e&&e.__esModule?e:{default:e}}var o=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=function(e){function n(){var t=e.call(this)||this;return t.revision_=0,t}return o(n,e),n.prototype.changed=function(){++this.revision_,this.dispatchEvent(t.default.CHANGE)},n.prototype.getRevision=function(){return this.revision_},n.prototype.on=function(e,t){if(Array.isArray(e)){for(var n=e.length,o=new Array(n),i=0;i0;)this.pop()},n.prototype.extend=function(t){for(var e=0,r=t.length;eu&&(f|=e.default.RIGHT),sa&&(f|=e.default.ABOVE),f===e.default.UNKNOWN&&(f=e.default.INTERSECTING),f}function l(){return[1/0,1/0,-1/0,-1/0]}function d(t,e,r,n,o){return o?(o[0]=t,o[1]=e,o[2]=r,o[3]=n,o):[t,e,r,n]}function h(t){return d(1/0,1/0,-1/0,-1/0,t)}function g(t,e){var r=t[0],n=t[1];return d(r,n,r,n,e)}function m(t,e){return R(h(e),t)}function M(t,e,r,n,o){return F(h(o),t,e,r,n)}function E(t,e){return I(h(e),t)}function T(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function v(t,e,r){return Math.abs(t[0]-e[0])t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function C(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function R(t,e){for(var r=0,n=e.length;re[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function w(t){return t[2]=i&&m<=f),o||!(a&e.default.RIGHT)||u&e.default.RIGHT||(o=(M=h-(d-f)*g)>=s&&M<=p),o||!(a&e.default.BELOW)||u&e.default.BELOW||(o=(m=d-(h-s)/g)>=i&&m<=f),o||!(a&e.default.LEFT)||u&e.default.LEFT||(o=(M=h-(d-i)*g)>=s&&M<=p)}return o}function k(t,e,r,n){var o=[];if(n>1)for(var a=t[2]-t[0],i=t[3]-t[1],s=0;s=r[2])){var o=P(r),u=Math.floor((n[0]-r[0])/o)*o;t[0]-=u,t[2]-=u}return t} +},{"./extent/Corner.js":"urGY","./extent/Relationship.js":"bUAS","./asserts.js":"fLG6"}],"WUar":[function(require,module,exports) { +var global = arguments[3]; +var t=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("./Units.js"),n=function(){function t(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}return t.prototype.canWrapX=function(){return this.canWrapX_},t.prototype.getCode=function(){return this.code_},t.prototype.getExtent=function(){return this.extent_},t.prototype.getUnits=function(){return this.units_},t.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||e.METERS_PER_UNIT[this.units_]},t.prototype.getWorldExtent=function(){return this.worldExtent_},t.prototype.getAxisOrientation=function(){return this.axisOrientation_},t.prototype.isGlobal=function(){return this.global_},t.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},t.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},t.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},t.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},t.prototype.setWorldExtent=function(t){this.worldExtent_=t},t.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},t.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},t}(),i=n;exports.default=i; +},{"./Units.js":"yZx6"}],"B96G":[function(require,module,exports) { +"use strict";function r(r,t,e){return Math.min(Math.max(r,t),e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.clamp=r,exports.squaredSegmentDistance=o,exports.squaredDistance=n,exports.solveLinearSystem=a,exports.toDegrees=s,exports.toRadians=u,exports.modulo=i,exports.lerp=c,exports.log2=exports.cosh=void 0;var t="cosh"in Math?Math.cosh:function(r){var t=Math.exp(r);return(t+1/t)/2};exports.cosh=t;var e="log2"in Math?Math.log2:function(r){return Math.log(r)*Math.LOG2E};function o(r,t,e,o,a,s){var u=a-e,i=s-o;if(0!==u||0!==i){var c=((r-e)*u+(t-o)*i)/(u*u+i*i);c>1?(e=a,o=s):c>0&&(e+=u*c,o+=i*c)}return n(r,t,e,o)}function n(r,t,e,o){var n=e-r,a=o-t;return n*n+a*a}function a(r){for(var t=r.length,e=0;en&&(n=s,o=a)}if(0===n)return null;var u=r[o];r[o]=r[e],r[e]=u;for(var i=e+1;i=0;v--){h[v]=r[v][t]/r[v][v];for(var p=v-1;p>=0;p--)r[p][t]-=r[p][v]*h[v]}return h}function s(r){return 180*r/Math.PI}function u(r){return r*Math.PI/180}function i(r,t){var e=r%t;return e*t<0?e+t:e}function c(r,t,e){return r+e*(t-r)}exports.log2=e; +},{}],"lohs":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.fromEPSG4326=E,exports.toEPSG4326=f,exports.PROJECTIONS=exports.MAX_SAFE_Y=exports.WORLD_EXTENT=exports.EXTENT=exports.HALF_SIZE=exports.RADIUS=void 0;var t=o(require("./Projection.js")),r=o(require("./Units.js")),e=require("../math.js");function o(t){return t&&t.__esModule?t:{default:t}}var n=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])})(r,e)};return function(r,e){function o(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}(),a=6378137;exports.RADIUS=a;var s=Math.PI*a;exports.HALF_SIZE=s;var u=[-s,-s,s,s];exports.EXTENT=u;var i=[-180,-85,180,85];exports.WORLD_EXTENT=i;var p=a*Math.log(Math.tan(Math.PI/2));exports.MAX_SAFE_Y=p;var c=function(t){function o(o){return t.call(this,{code:o,units:r.default.METERS,extent:u,global:!0,worldExtent:i,getPointResolution:function(t,r){return t/(0,e.cosh)(r[1]/a)}})||this}return n(o,t),o}(t.default),l=[new c("EPSG:3857"),new c("EPSG:102100"),new c("EPSG:102113"),new c("EPSG:900913"),new c("http://www.opengis.net/gml/srs/epsg.xml#3857")];function E(t,r,e){var o=t.length,n=e>1?e:2,u=r;void 0===u&&(u=n>2?t.slice():new Array(o));for(var i=0;ip?c=p:c<-p&&(c=-p),u[i+1]=c}return u}function f(t,r,e){var o=t.length,n=e>1?e:2,u=r;void 0===u&&(u=n>2?t.slice():new Array(o));for(var i=0;ir?n:new Array(1+r-i).join("0")+n}function r(e,r){for(var t=(""+e).split("."),n=(""+r).split("."),i=0;is)return 1;if(s>o)return-1}return 0}Object.defineProperty(exports,"__esModule",{value:!0}),exports.padNumber=e,exports.compareVersions=r; +},{}],"nGsj":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.add=n,exports.closestOnCircle=o,exports.closestOnSegment=a,exports.createStringXY=u,exports.degreesToStringHDMS=s,exports.format=i,exports.equals=c,exports.rotate=f,exports.scale=p,exports.squaredDistance=x,exports.distance=d,exports.squaredDistanceToSegment=g,exports.toStringHDMS=l,exports.toStringXY=h,exports.wrapX=M,exports.getWorldsAway=v;var t=require("./extent.js"),r=require("./math.js"),e=require("./string.js");function n(t,r){return t[0]+=+r[0],t[1]+=+r[1],t}function o(t,r){var e=r.getRadius(),n=r.getCenter(),o=n[0],a=n[1],u=t[0]-o,s=t[1]-a;0===u&&0===s&&(u=1);var i=Math.sqrt(u*u+s*s);return[o+e*u/i,a+e*s/i]}function a(t,r){var e,n,o=t[0],a=t[1],u=r[0],s=r[1],i=u[0],c=u[1],f=s[0],p=s[1],x=f-i,d=p-c,g=0===x&&0===d?0:(x*(o-i)+d*(a-c))/(x*x+d*d||0);return g<=0?(e=i,n=c):g>=1?(e=f,n=p):(e=i+g*x,n=c+g*d),[e,n]}function u(t){return function(r){return h(r,t)}}function s(t,n,o){var a=(0,r.modulo)(n+180,360)-180,u=Math.abs(3600*a),s=o||0,i=Math.pow(10,s),c=Math.floor(u/3600),f=Math.floor((u-3600*c)/60),p=u-3600*c-60*f;return(p=Math.ceil(p*i)/i)>=60&&(p=0,f+=1),f>=60&&(f=0,c+=1),c+"° "+(0,e.padNumber)(f,2)+"′ "+(0,e.padNumber)(p,2,s)+"″"+(0==a?"":" "+t.charAt(a<0?1:0))}function i(t,r,e){return t?r.replace("{x}",t[0].toFixed(e)).replace("{y}",t[1].toFixed(e)):""}function c(t,r){for(var e=!0,n=t.length-1;n>=0;--n)if(t[n]!=r[n]){e=!1;break}return e}function f(t,r){var e=Math.cos(r),n=Math.sin(r),o=t[0]*e-t[1]*n,a=t[1]*e+t[0]*n;return t[0]=o,t[1]=a,t}function p(t,r){return t[0]*=r,t[1]*=r,t}function x(t,r){var e=t[0]-r[0],n=t[1]-r[1];return e*e+n*n}function d(t,r){return Math.sqrt(x(t,r))}function g(t,r){return x(t,a(t,r))}function l(t,r){return t?s("NS",t[1],r)+" "+s("EW",t[0],r):""}function h(t,r){return i(t,"{x}, {y}",r)}function M(r,e){if(e.canWrapX()){var n=(0,t.getWidth)(e.getExtent()),o=v(r,e,n);o&&(r[0]-=o*n)}return r}function v(r,e,n){var o=e.getExtent(),a=0;if(e.canWrapX()&&(r[0]o[2])){var u=n||(0,t.getWidth)(o);a=Math.floor((r[0]-o[0])/u)}return a} +},{"./extent.js":"QDir","./math.js":"B96G","./string.js":"AiCK"}],"Diht":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.cloneTransform=l,exports.identityTransform=E,exports.addProjection=g,exports.addProjections=P,exports.get=x,exports.getPointResolution=j,exports.addEquivalentProjections=v,exports.addEquivalentTransforms=m,exports.clearAllProjections=T,exports.createProjection=S,exports.createTransformFromCoordinateTransform=O,exports.addCoordinateTransforms=U,exports.fromLonLat=y,exports.toLonLat=h,exports.equivalent=R,exports.getTransformFromProjections=C,exports.getTransform=_,exports.transform=q,exports.transformExtent=G,exports.transformWithProjections=M,exports.setUserProjection=I,exports.clearUserProjection=N,exports.getUserProjection=W,exports.useGeographic=D,exports.toUserCoordinate=w,exports.fromUserCoordinate=J,exports.toUserExtent=L,exports.fromUserExtent=A,exports.createSafeCoordinateTransform=F,exports.addCommon=k,Object.defineProperty(exports,"Projection",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(exports,"METERS_PER_UNIT",{enumerable:!0,get:function(){return r.METERS_PER_UNIT}});var e=d(require("./proj/Projection.js")),r=p(require("./proj/Units.js")),t=require("./proj/epsg3857.js"),n=require("./proj/epsg4326.js"),o=require("./proj/projections.js"),i=require("./proj/transforms.js"),u=require("./extent.js"),s=require("./math.js"),a=require("./sphere.js"),f=require("./coordinate.js");function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c();if(r&&r.has(e))return r.get(e);var t={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(t,o,i):t[o]=e[o]}return t.default=e,r&&r.set(e,t),t}function d(e){return e&&e.__esModule?e:{default:e}}function l(e,r,t){var n;if(void 0!==r){for(var o=0,i=e.length;o=2;--f)u[s+f]=r[s+f]}return u}}function U(e,r,t,n){var o=x(e),u=x(r);(0,i.add)(o,u,O(t)),(0,i.add)(u,o,O(n))}function y(e,r){return q(e,"EPSG:4326",void 0!==r?r:"EPSG:3857")}function h(e,r){var t=q(e,void 0!==r?r:"EPSG:3857","EPSG:4326"),n=t[0];return(n<-180||n>180)&&(t[0]=(0,s.modulo)(n+180,360)-180),t}function R(e,r){if(e===r)return!0;var t=e.getUnits()===r.getUnits();return e.getCode()===r.getCode()?t:C(e,r)===l&&t}function C(e,r){var t=e.getCode(),n=r.getCode(),o=(0,i.get)(t,n);return o||(o=E),o}function _(e,r){return C(x(e),x(r))}function q(e,r,t){return _(r,t)(e,void 0,e.length)}function G(e,r,t,n){var o=_(r,t);return(0,u.applyTransform)(e,o,void 0,n)}function M(e,r,t){return C(r,t)(e)}var b=null;function I(e){b=x(e)}function N(){b=null}function W(){return b}function D(){I("EPSG:4326")}function w(e,r){return b?q(e,r,b):e}function J(e,r){return b?q(e,b,r):e}function L(e,r){return b?G(e,r,b):e}function A(e,r){return b?G(e,b,r):e}function F(e,r,t){return function(n){var o,i,a=n[0],c=n[1];if(e.canWrapX()){var p=e.getExtent(),d=(0,u.getWidth)(p);(i=(0,f.getWorldsAway)(n,e,d))&&(a-=i*d),a=(0,s.clamp)(a,p[0],p[2]),c=(0,s.clamp)(c,p[1],p[3]),o=t([a,c])}else o=t(n);return i&&r.canWrapX()&&(o[0]+=i*(0,u.getWidth)(r.getExtent())),o}}function k(){v(t.PROJECTIONS),v(n.PROJECTIONS),m(n.PROJECTIONS,t.PROJECTIONS,t.fromEPSG4326,t.toEPSG4326)}k(); +},{"./proj/Projection.js":"WUar","./proj/Units.js":"yZx6","./proj/epsg3857.js":"lohs","./proj/epsg4326.js":"ZniN","./proj/projections.js":"tlE8","./proj/transforms.js":"uhlP","./extent.js":"QDir","./math.js":"B96G","./sphere.js":"q4ER","./coordinate.js":"nGsj"}],"LGwr":[function(require,module,exports) { +"use strict";function r(r,t,e,n,o,a){for(var f=a||[],s=0,l=t;l1)u=a;else{if(g>0){for(var c=0;cs&&(s=l),o=u,i=f}return s}function a(r,e,a,n,s){for(var o=0,i=a.length;o0;){for(var l=p.pop(),c=p.pop(),h=0,g=e[c],d=e[c+1],x=e[l],y=e[l+1],q=c+u;qh&&(v=q,h=P)}h>a&&(f[(v-t)/u]=1,c+ua&&(o[i++]=p,o[i++]=v,s=p,f=v);return p==s&&v==f||(o[i++]=p,o[i++]=v),i}function o(r,e){return e*Math.round(r/e)}function i(r,e,t,n,u,a,i){if(e==t)return i;var s,f,p=o(r[e],u),v=o(r[e+1],u);e+=n,a[i++]=p,a[i++]=v;do{if(s=o(r[e],u),f=o(r[e+1],u),(e+=n)==t)return a[i++]=s,a[i++]=f,i}while(s==p&&f==v);for(;e0&&d>h)&&(g<0&&x0&&x>g)?(s=l,f=c):(a[i++]=s,a[i++]=f,p=s,v=f,s=l,f=c)}}return a[i++]=s,a[i++]=f,i}function s(r,e,t,n,u,a,o,s){for(var f=0,p=t.length;fo&&(f-a)*(o-s)-(i-a)*(l-s)>0&&u++:l<=o&&(f-a)*(o-s)-(i-a)*(l-s)<0&&u--,a=f,s=l}return 0!==u}function t(r,n,t,i,o,u){if(0===t.length)return!1;if(!e(r,n,t[0],i,o,u))return!1;for(var a=1,s=t.length;aO&&(v=(g+h)/2,(0,r.linearRingsContainsXY)(t,n,a,o,v,y)&&(M=v,O=P)),g=h}return isNaN(M)&&(M=i[s]),u?(u.push(M,y,O),u):[M,y,O]}function n(r,e,n,a,o){for(var i=[],s=0,u=n.length;s=a[0]&&o[2]<=a[2]||(o[1]>=a[1]&&o[3]<=a[3]||(0,e.forEach)(r,t,i,s,function(e,r){return(0,n.intersectsSegment)(a,e,r)}))))}function i(n,e,r,i,s){for(var a=0,o=r.length;a0}function n(r,n,t,i,o){for(var s=void 0!==o&&o,a=0,u=t.length;a1?f:2,A=a||new Array(q);for(g=0;g>1;l0&&r[1]>0}function t(r,e,t){return void 0===t&&(t=[0,0]),t[0]=r[0]*e+.5|0,t[1]=r[1]*e+.5|0,t}function o(r,e){return Array.isArray(r)?r:(void 0===e?e=[r,r]:(e[0]=r,e[1]=r),e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.buffer=r,exports.hasArea=e,exports.scale=t,exports.toSize=o; +},{}],"S8ow":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("../util.js"),e=require("../size.js"),o=function(){function o(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,e.toSize)(t.scale),this.displacement_=t.displacement}return o.prototype.clone=function(){var t=this.getScale();return new o({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()})},o.prototype.getOpacity=function(){return this.opacity_},o.prototype.getRotateWithView=function(){return this.rotateWithView_},o.prototype.getRotation=function(){return this.rotation_},o.prototype.getScale=function(){return this.scale_},o.prototype.getScaleArray=function(){return this.scaleArray_},o.prototype.getDisplacement=function(){return this.displacement_},o.prototype.getAnchor=function(){return(0,t.abstract)()},o.prototype.getImage=function(e){return(0,t.abstract)()},o.prototype.getHitDetectionImage=function(){return(0,t.abstract)()},o.prototype.getPixelRatio=function(t){return 1},o.prototype.getImageState=function(){return(0,t.abstract)()},o.prototype.getImageSize=function(){return(0,t.abstract)()},o.prototype.getHitDetectionImageSize=function(){return(0,t.abstract)()},o.prototype.getOrigin=function(){return(0,t.abstract)()},o.prototype.getSize=function(){return(0,t.abstract)()},o.prototype.setOpacity=function(t){this.opacity_=t},o.prototype.setRotateWithView=function(t){this.rotateWithView_=t},o.prototype.setRotation=function(t){this.rotation_=t},o.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=(0,e.toSize)(t)},o.prototype.listenImageChange=function(e){(0,t.abstract)()},o.prototype.load=function(){(0,t.abstract)()},o.prototype.unlistenImageChange=function(e){(0,t.abstract)()},o}(),i=o;exports.default=i; +},{"../util.js":"KniQ","../size.js":"TAHd"}],"eucy":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.asString=s,exports.asArray=i,exports.normalize=p,exports.toString=c,exports.isStringColor=l,exports.fromString=void 0;var r=require("./asserts.js"),e=require("./math.js"),t=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,n=/^([a-z]*)$|^hsla?\(.*\)$/i;function s(r){return"string"==typeof r?r:c(r)}function a(r){var e=document.createElement("div");if(e.style.color=r,""!==e.style.color){document.body.appendChild(e);var t=getComputedStyle(e).color;return document.body.removeChild(e),t}return""}var o=function(){var r={},e=0;return function(t){var n;if(r.hasOwnProperty(t))n=r[t];else{if(e>=1024){var s=0;for(var a in r)0==(3&s++)&&(delete r[a],--e)}n=u(t),r[t]=n,++e}return n}}();function i(r){return Array.isArray(r)?r:o(r)}function u(e){var s,o,i,u,c;if(n.exec(e)&&(e=a(e)),t.exec(e)){var l=e.length-1,f=void 0;f=l<=4?1:2;var d=4===l||8===l;s=parseInt(e.substr(1+0*f,f),16),o=parseInt(e.substr(1+1*f,f),16),i=parseInt(e.substr(1+2*f,f),16),u=d?parseInt(e.substr(1+3*f,f),16):255,1==f&&(s=(s<<4)+s,o=(o<<4)+o,i=(i<<4)+i,d&&(u=(u<<4)+u)),c=[s,o,i,u/255]}else 0==e.indexOf("rgba(")?p(c=e.slice(5,-1).split(",").map(Number)):0==e.indexOf("rgb(")?((c=e.slice(4,-1).split(",").map(Number)).push(1),p(c)):(0,r.assert)(!1,14);return c}function p(r){return r[0]=(0,e.clamp)(r[0]+.5|0,0,255),r[1]=(0,e.clamp)(r[1]+.5|0,0,255),r[2]=(0,e.clamp)(r[2]+.5|0,0,255),r[3]=(0,e.clamp)(r[3],0,1),r}function c(r){var e=r[0];e!=(0|e)&&(e=e+.5|0);var t=r[1];t!=(0|t)&&(t=t+.5|0);var n=r[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+e+","+t+","+n+","+(void 0===r[3]?1:r[3])+")"}function l(r){return n.test(r)&&(r=a(r)),t.test(r)||0===r.indexOf("rgba(")||0===r.indexOf("rgb(")}exports.fromString=o; +},{"./asserts.js":"fLG6","./math.js":"B96G"}],"V5XN":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.asColorLike=e;var r=require("./color.js");function e(e){return Array.isArray(e)?(0,r.toString)(e):e} +},{"./color.js":"eucy"}],"f3Nv":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PASSIVE_EVENT_LISTENERS=exports.IMAGE_DECODE=exports.WORKER_OFFSCREEN_CANVAS=exports.DEVICE_PIXEL_RATIO=exports.MAC=exports.WEBKIT=exports.SAFARI=exports.FIREFOX=void 0;var e="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",r=-1!==e.indexOf("firefox");exports.FIREFOX=r;var o=-1!==e.indexOf("safari")&&-1==e.indexOf("chrom");exports.SAFARI=o;var t=-1!==e.indexOf("webkit")&&-1==e.indexOf("edge");exports.WEBKIT=t;var n=-1!==e.indexOf("macintosh");exports.MAC=n;var i="undefined"!=typeof devicePixelRatio?devicePixelRatio:1;exports.DEVICE_PIXEL_RATIO=i;var E="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope;exports.WORKER_OFFSCREEN_CANVAS=E;var a="undefined"!=typeof Image&&Image.prototype.decode;exports.IMAGE_DECODE=a;var s=function(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("_",null,r),window.removeEventListener("_",null,r)}catch(o){}return e}();exports.PASSIVE_EVENT_LISTENERS=s; +},{}],"Xno5":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createCanvasContext2D=t,exports.outerWidth=r,exports.outerHeight=n,exports.replaceNode=o,exports.removeNode=a,exports.removeChildren=i,exports.replaceChildren=s;var e=require("./has.js");function t(t,r,n){var o=n&&n.length?n.shift():e.WORKER_OFFSCREEN_CANVAS?new OffscreenCanvas(t||300,r||300):document.createElement("canvas");return t&&(o.width=t),r&&(o.height=r),o.getContext("2d")}function r(e){var t=e.offsetWidth,r=getComputedStyle(e);return t+=parseInt(r.marginLeft,10)+parseInt(r.marginRight,10)}function n(e){var t=e.offsetHeight,r=getComputedStyle(e);return t+=parseInt(r.marginTop,10)+parseInt(r.marginBottom,10)}function o(e,t){var r=t.parentNode;r&&r.replaceChild(e,t)}function a(e){return e&&e.parentNode?e.parentNode.removeChild(e):null}function i(e){for(;e.lastChild;)e.removeChild(e.lastChild)}function s(e,t){for(var r=e.childNodes,n=0;;++n){var o=r[n],a=t[n];if(!o&&!a)break;o!==a&&(o?a?e.insertBefore(a,o):(e.removeChild(o),--n):e.appendChild(a))}} +},{"./has.js":"f3Nv"}],"HgMV":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getFontParameters=exports.CLASS_COLLAPSED=exports.CLASS_CONTROL=exports.CLASS_UNSUPPORTED=exports.CLASS_UNSELECTABLE=exports.CLASS_SELECTABLE=exports.CLASS_HIDDEN=void 0;var e="ol-hidden";exports.CLASS_HIDDEN=e;var r="ol-selectable";exports.CLASS_SELECTABLE=r;var t="ol-unselectable";exports.CLASS_UNSELECTABLE=t;var s="ol-unsupported";exports.CLASS_UNSUPPORTED=s;var l="ol-control";exports.CLASS_CONTROL=l;var a="ol-collapsed";exports.CLASS_COLLAPSED=a;var o=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),S=["style","variant","weight","size","lineHeight","family"],i=function(e){var r=e.match(o);if(!r)return null;for(var t={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},s=0,l=S.length;s=e.maxResolution)return!1;var n=t.zoom;return n>e.minZoom&&n<=e.maxZoom}var y=l;exports.default=y; +},{"./Base.js":"T6DQ","../events/EventType.js":"C8cu","./Property.js":"HbeD","../render/EventType.js":"z39m","../source/State.js":"iC8j","../asserts.js":"fLG6","../obj.js":"mH6q","../Object.js":"PhPh","../events.js":"UqnM"}],"XGea":[function(require,module,exports) { +var define; +var t;!function(i,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof t&&t.amd?t(n):(i=i||self).RBush=n()}(this,function(){"use strict";function t(t,r,e,a,h){!function t(n,r,e,a,h){for(;a>e;){if(a-e>600){var o=a-e+1,s=r-e+1,l=Math.log(o),f=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*f*(o-f)/o)*(s-o/2<0?-1:1);t(n,r,Math.max(e,Math.floor(r-s*f/o+u)),Math.min(a,Math.floor(r+(o-s)*f/o+u)),h)}var m=n[r],c=e,p=a;for(i(n,e,r),h(n[a],m)>0&&i(n,e,a);c0;)p--}0===h(n[e],m)?i(n,e,p):i(n,++p,a),p<=r&&(e=p+1),r<=p&&(a=p-1)}}(t,r,e||0,a||t.length-1,h||n)}function i(t,i,n){var r=t[i];t[i]=t[n],t[n]=r}function n(t,i){return ti?1:0}var r=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function e(t,i,n){if(!n)return i.indexOf(t);for(var r=0;r=t.minX&&i.maxY>=t.minY}function p(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function d(i,n,r,e,a){for(var h=[n,r];h.length;)if(!((r=h.pop())-(n=h.pop())<=e)){var o=n+Math.ceil((r-n)/e/2)*e;t(i,o,n,r,a),h.push(n,o,o,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(t){var i=this.data,n=[];if(!c(t,i))return n;for(var r=this.toBBox,e=[];i;){for(var a=0;a=0&&e[i].children.length>this._maxEntries;)this._split(e,i),i--;this._adjustParentBBoxes(r,e,i)},r.prototype._split=function(t,i){var n=t[i],r=n.children.length,e=this._minEntries;this._chooseSplitAxis(n,e,r);var h=this._chooseSplitIndex(n,e,r),o=p(n.children.splice(h,n.children.length-h));o.height=n.height,o.leaf=n.leaf,a(n,this.toBBox),a(o,this.toBBox),i?t[i-1].children.push(o):this._splitRoot(n,o)},r.prototype._splitRoot=function(t,i){this.data=p([t,i]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(t,i,n){for(var r,e,a,o,s,l,u,m=1/0,c=1/0,p=i;p<=n-i;p++){var d=h(t,0,p,this.toBBox),x=h(t,p,n,this.toBBox),v=(e=d,a=x,void 0,void 0,void 0,void 0,o=Math.max(e.minX,a.minX),s=Math.max(e.minY,a.minY),l=Math.min(e.maxX,a.maxX),u=Math.min(e.maxY,a.maxY),Math.max(0,l-o)*Math.max(0,u-s)),M=f(d)+f(x);v=i;c--){var p=t.children[c];o(s,t.leaf?e(p):p),l+=u(s)}return l},r.prototype._adjustParentBBoxes=function(t,i,n){for(var r=n;r>=0;r--)o(i[r],t)},r.prototype._condense=function(t){for(var i=t.length-1,n=void 0;i>=0;i--)0===t[i].children.length?i>0?(n=t[i-1].children).splice(n.indexOf(t[i]),1):this.clear():a(t[i],this.toBBox)},r}); +},{}],"pskK":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("./Layer.js")),t=i(require("rbush")),r=require("../obj.js"),n=require("../style/Style.js");function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u={RENDER_ORDER:"renderOrder"},l=function(e){function i(t){var n=this,i=t||{},o=(0,r.assign)({},i);return delete o.style,delete o.renderBuffer,delete o.updateWhileAnimating,delete o.updateWhileInteracting,(n=e.call(this,o)||this).declutter_=void 0!==i.declutter&&i.declutter,n.renderBuffer_=void 0!==i.renderBuffer?i.renderBuffer:100,n.style_=null,n.styleFunction_=void 0,n.setStyle(i.style),n.updateWhileAnimating_=void 0!==i.updateWhileAnimating&&i.updateWhileAnimating,n.updateWhileInteracting_=void 0!==i.updateWhileInteracting&&i.updateWhileInteracting,n}return o(i,e),i.prototype.getDeclutter=function(){return this.declutter_},i.prototype.getFeatures=function(t){return e.prototype.getFeatures.call(this,t)},i.prototype.getRenderBuffer=function(){return this.renderBuffer_},i.prototype.getRenderOrder=function(){return this.get(u.RENDER_ORDER)},i.prototype.getStyle=function(){return this.style_},i.prototype.getStyleFunction=function(){return this.styleFunction_},i.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},i.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},i.prototype.renderDeclutter=function(e){e.declutterTree||(e.declutterTree=new t.default(9)),this.getRenderer().renderDeclutter(e)},i.prototype.setRenderOrder=function(e){this.set(u.RENDER_ORDER,e)},i.prototype.setStyle=function(e){this.style_=void 0!==e?e:n.createDefaultStyle,this.styleFunction_=null===e?void 0:(0,n.toFunction)(this.style_),this.changed()},i}(e.default),c=l;exports.default=c; +},{"./Layer.js":"GCgv","rbush":"XGea","../obj.js":"mH6q","../style/Style.js":"he4w"}],"kTJv":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.closePathInstruction=exports.beginPathInstruction=exports.strokeInstruction=exports.fillInstruction=void 0;var t={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},r=[t.FILL];exports.fillInstruction=r;var e=[t.STROKE];exports.strokeInstruction=e;var o=[t.BEGIN_PATH];exports.beginPathInstruction=o;var s=[t.CLOSE_PATH];exports.closePathInstruction=s;var E=t;exports.default=E; +},{}],"LQER":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=function(){function t(){}return t.prototype.drawCustom=function(t,o,e){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,o){},t.prototype.drawFeature=function(t,o){},t.prototype.drawGeometryCollection=function(t,o){},t.prototype.drawLineString=function(t,o){},t.prototype.drawMultiLineString=function(t,o){},t.prototype.drawMultiPoint=function(t,o){},t.prototype.drawMultiPolygon=function(t,o){},t.prototype.drawPoint=function(t,o){},t.prototype.drawPolygon=function(t,o){},t.prototype.drawText=function(t,o){},t.prototype.setFillStrokeStyle=function(t,o){},t.prototype.setImageStyle=function(t,o){},t.prototype.setTextStyle=function(t,o){},t}(),o=t;exports.default=o; +},{}],"QBj4":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=l(require("./Instruction.js")),e=l(require("../../geom/GeometryType.js")),i=l(require("../../extent/Relationship.js")),n=l(require("../VectorContext.js")),r=require("../../colorlike.js"),o=require("../../extent.js"),s=require("../canvas.js"),a=require("../../array.js"),u=require("../../geom/flat/inflate.js");function l(t){return t&&t.__esModule?t:{default:t}}var h=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),d=function(n){function l(t,e,i,r){var o=n.call(this)||this;return o.tolerance=t,o.maxExtent=e,o.pixelRatio=r,o.maxLineWidth=0,o.resolution=i,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return h(l,n),l.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map(function(t){return t*e})},l.prototype.appendFlatPointCoordinates=function(t,e){for(var i=this.getBufferedMaxExtent(),n=this.tmpCoordinate_,r=this.coordinates,s=r.length,a=0,u=t.length;ac&&this.instructions.push([t.default.CUSTOM,c,s,i,r,u.inflateCoordinates])):d==e.default.POINT&&(o=i.getFlatCoordinates(),this.coordinates.push(o[0],o[1]),s=this.coordinates.length,this.instructions.push([t.default.CUSTOM,c,s,i,r]));this.endGeometry(n)},l.prototype.beginGeometry=function(e,i){this.beginGeometryInstruction1_=[t.default.BEGIN_GEOMETRY,i,0,e],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[t.default.BEGIN_GEOMETRY,i,0,e],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},l.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},l.prototype.reverseHitDetectionInstructions=function(){var e,i=this.hitDetectionInstructions;i.reverse();var n,r,o=i.length,s=-1;for(e=0;ethis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0},l.prototype.createFill=function(e){var i=e.fillStyle,n=[t.default.SET_FILL_STYLE,i];return"string"!=typeof i&&n.push(!0),n},l.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},l.prototype.createStroke=function(e){return[t.default.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio]},l.prototype.updateFillStyle=function(t,e){var i=t.fillStyle;"string"==typeof i&&t.currentFillStyle==i||(void 0!==i&&this.instructions.push(e.call(this,t)),t.currentFillStyle=i)},l.prototype.updateStrokeStyle=function(t,e){var i=t.strokeStyle,n=t.lineCap,r=t.lineDash,o=t.lineDashOffset,s=t.lineJoin,u=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=n||r!=t.currentLineDash&&!(0,a.equals)(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=s||t.currentLineWidth!=u||t.currentMiterLimit!=l)&&(void 0!==i&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=n,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=s,t.currentLineWidth=u,t.currentMiterLimit=l)},l.prototype.endGeometry=function(e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var i=[t.default.END_GEOMETRY,e];this.instructions.push(i),this.hitDetectionInstructions.push(i)},l.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,o.clone)(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;(0,o.buffer)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},l}(n.default),f=d;exports.default=f; +},{"./Instruction.js":"kTJv","../../geom/GeometryType.js":"lmV0","../../extent/Relationship.js":"bUAS","../VectorContext.js":"LQER","../../colorlike.js":"V5XN","../../extent.js":"QDir","../canvas.js":"iAG7","../../array.js":"luEr","../../geom/flat/inflate.js":"znXl"}],"JWDt":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("./Builder.js")),i=e(require("./Instruction.js"));function e(t){return t&&t.__esModule?t:{default:t}}var o=function(){var t=function(i,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])})(i,e)};return function(i,e){function o(){this.constructor=i}t(i,e),i.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}(),h=function(t){function e(i,e,o,h){var s=t.call(this,i,e,o,h)||this;return s.hitDetectionImage_=null,s.image_=null,s.imagePixelRatio_=void 0,s.anchorX_=void 0,s.anchorY_=void 0,s.height_=void 0,s.opacity_=void 0,s.originX_=void 0,s.originY_=void 0,s.rotateWithView_=void 0,s.rotation_=void 0,s.scale_=void 0,s.width_=void 0,s.declutterImageWithText_=void 0,s}return o(e,t),e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var o=t.getFlatCoordinates(),h=t.getStride(),s=this.coordinates.length,a=this.appendFlatPointCoordinates(o,h);this.instructions.push([i.default.DRAW_IMAGE,s,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([i.default.DRAW_IMAGE,s,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var o=t.getFlatCoordinates(),h=t.getStride(),s=this.coordinates.length,a=this.appendFlatPointCoordinates(o,h);this.instructions.push([i.default.DRAW_IMAGE,s,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([i.default.DRAW_IMAGE,s,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,t.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,i){var e=t.getAnchor(),o=t.getSize(),h=t.getHitDetectionImage(),s=t.getImage(this.pixelRatio),a=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=e[0],this.anchorY_=e[1],this.hitDetectionImage_=h,this.image_=s,this.height_=o[1],this.opacity_=t.getOpacity(),this.originX_=a[0],this.originY_=a[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=o[0],this.declutterImageWithText_=i},e}(t.default),s=h;exports.default=s; +},{"./Builder.js":"QBj4","./Instruction.js":"kTJv"}],"ppsk":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=r(require("./Builder.js")),e=n(require("./Instruction.js"));function i(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return i=function(){return t},t}function n(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=i();if(e&&e.has(t))return e.get(t);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var s=r?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=t[o]}return n.default=t,e&&e.set(t,n),n}function r(t){return t&&t.__esModule?t:{default:t}}var o=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),s=function(t){function i(e,i,n,r){return t.call(this,e,i,n,r)||this}return o(i,t),i.prototype.drawFlatCoordinates_=function(t,i,n,r){var o=this.coordinates.length,s=this.appendFlatLineCoordinates(t,i,n,r,!1,!1),u=[e.default.MOVE_TO_LINE_TO,o,s];return this.instructions.push(u),this.hitDetectionInstructions.push(u),n},i.prototype.drawLineString=function(t,i){var n=this.state,r=n.strokeStyle,o=n.lineWidth;if(void 0!==r&&void 0!==o){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,i),this.hitDetectionInstructions.push([e.default.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],e.beginPathInstruction);var s=t.getFlatCoordinates(),u=t.getStride();this.drawFlatCoordinates_(s,0,s.length,u),this.hitDetectionInstructions.push(e.strokeInstruction),this.endGeometry(i)}},i.prototype.drawMultiLineString=function(t,i){var n=this.state,r=n.strokeStyle,o=n.lineWidth;if(void 0!==r&&void 0!==o){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,i),this.hitDetectionInstructions.push([e.default.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],e.beginPathInstruction);for(var s=t.getEnds(),u=t.getFlatCoordinates(),a=t.getStride(),l=0,h=0,c=s.length;ht&&(x>l&&(l=x,p=_,M=s),x=0,_=s-a)),i=n,v=h,d=f),u=b,c=g}return(x+=n)>l?[_,s]:[p,M]}Object.defineProperty(exports,"__esModule",{value:!0}),exports.matchingChunk=t; +},{}],"DEzw":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.TEXT_ALIGN=void 0;var t=h(require("./Builder.js")),e=h(require("./Instruction.js")),i=h(require("../../geom/GeometryType.js")),s=h(require("../../style/TextPlacement.js")),a=require("../../colorlike.js"),l=require("../canvas.js"),r=require("../../util.js"),n=require("../../extent.js"),o=require("../../geom/flat/straightchunk.js");function h(t){return t&&t.__esModule?t:{default:t}}var f=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),u={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};exports.TEXT_ALIGN=u;var d=function(t){function h(e,i,s,a){var l=t.call(this,e,i,s,a)||this;return l.labels_=null,l.text_="",l.textOffsetX_=0,l.textOffsetY_=0,l.textRotateWithView_=void 0,l.textRotation_=0,l.textFillState_=null,l.fillStates={},l.textStrokeState_=null,l.strokeStates={},l.textState_={},l.textStates={},l.textKey_="",l.fillKey_="",l.strokeKey_="",l.declutterImageWithText_=void 0,l}return f(h,t),h.prototype.finish=function(){var e=t.prototype.finish.call(this);return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e},h.prototype.drawText=function(t,a){var r=this.textFillState_,h=this.textStrokeState_,f=this.textState_;if(""!==this.text_&&f&&(r||h)){var u=this.coordinates,d=u.length,g=t.getType(),_=null,x=t.getStride();if(f.placement!==s.default.LINE||g!=i.default.LINE_STRING&&g!=i.default.MULTI_LINE_STRING&&g!=i.default.POLYGON&&g!=i.default.MULTI_POLYGON){var c=f.overflow?null:[];switch(g){case i.default.POINT:case i.default.MULTI_POINT:_=t.getFlatCoordinates();break;case i.default.LINE_STRING:_=t.getFlatMidpoint();break;case i.default.CIRCLE:_=t.getCenter();break;case i.default.MULTI_LINE_STRING:_=t.getFlatMidpoints(),x=2;break;case i.default.POLYGON:_=t.getFlatInteriorPoint(),f.overflow||c.push(_[2]/this.resolution),x=3;break;case i.default.MULTI_POLYGON:var S=t.getFlatInteriorPoints();_=[];for(m=0,F=S.length;mT[2]}else k=P>y;var z,A=Math.PI,B=[],C=w+n===t;if(g=0,j=O,M=e[t=w],b=e[t+1],C){q();var D=Math.atan2(b-c,M-d);k&&(D+=D>0?-A:A);var E=(y+P)/2,F=(I+m)/2;return B[0]=[E,F,(_-v)/2,D,s],B}for(var G=0,H=s.length;G0?-A:A),void 0!==z){var K=J-z;if(K+=K>A?-2*A:K<-A?2*A:0,Math.abs(K)>u)return null}z=J;for(var L=G,N=0;Gt?t-d:l,w=n+m>e?e-m:n,I=S[3]+k*v[0]+S[1],R=S[0]+w*v[1]+S[2],O=b-S[3],E=L-S[0];return(T||0!==_)&&(c[0]=O,g[0]=O,c[1]=E,f[1]=E,f[0]=O+I,p[0]=f[0],p[1]=E+R,g[1]=p[1]),0!==_?(C=(0,a.compose)((0,a.create)(),i,s,1,1,_,-i,-s),(0,a.apply)(C,c),(0,a.apply)(C,f),(0,a.apply)(C,p),(0,a.apply)(C,g),(0,r.createOrUpdate)(Math.min(c[0],f[0],p[0],g[0]),Math.min(c[1],f[1],p[1],g[1]),Math.max(c[0],f[0],p[0],g[0]),Math.max(c[1],f[1],p[1],g[1]),u)):(0,r.createOrUpdate)(Math.min(O,O+I),Math.min(E,E+R),Math.max(O,O+I),Math.max(E,E+R),u),x&&(b=Math.round(b),L=Math.round(L)),{drawImageX:b,drawImageY:L,drawImageW:k,drawImageH:w,originX:d,originY:m,declutterBox:{minX:u[0],minY:u[1],maxX:u[2],maxY:u[3],value:y},canvasTransform:C,scale:v}},d.prototype.replayImageOrLabel_=function(t,e,i,a,r,l,n){var o=!(!l&&!n),h=a.declutterBox,d=t.canvas,u=n?n[2]*a.scale[0]/2:0;return h.minX-u<=d.width/e&&h.maxX+u>=0&&h.minY-u<=d.height/e&&h.maxY+u>=0&&(o&&this.replayTextBackground_(t,c,f,p,g,l,n),(0,s.drawImageOrLabel)(t,a.canvasTransform,r,i,a.originX,a.originY,a.drawImageW,a.drawImageH,a.drawImageX,a.drawImageY,a.scale)),!0},d.prototype.fill_=function(t){if(this.alignFill_){var e=(0,a.apply)(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.save(),t.translate(e[0]%i,e[1]%i),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},d.prototype.setStrokeStyle_=function(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},d.prototype.drawLabelWithPointPlacement_=function(t,i,a,r){var l=this.textStates[i],n=this.createLabel(t,i,r,a),o=this.strokeStates[a],h=this.pixelRatio,d=v(t,l.textAlign||s.defaultTextAlign),u=e.TEXT_ALIGN[l.textBaseline||s.defaultTextBaseline],c=o&&o.lineWidth?o.lineWidth:0;return{label:n,anchorX:d*(n.width/h-2*l.scale[0])+2*(.5-d)*c,anchorY:u*n.height/h+2*(.5-u)*c}},d.prototype.execute_=function(i,d,u,c,f,p,g,_){var v;this.pixelCoordinates_&&(0,n.equals)(u,this.renderedTransform_)?v=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),v=(0,h.transform2D)(this.coordinates,0,this.coordinates.length,2,u,this.pixelCoordinates_),(0,a.setFromArray)(this.renderedTransform_,u));for(var x,S,T,y,C,b,L,k,w,I,R,O,E,M,D,A,B=0,W=c.length,P=0,Y=0,N=0,X=null,q=null,j=this.coordinateCache_,F=this.viewRotation_,G=Math.round(1e12*Math.atan2(-u[1],u[0]))/1e12,H={context:i,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:F},J=this.instructions!=c||this.overlaps?0:200;BJ&&(this.fill_(i),Y=0),N>J&&(i.stroke(),N=0),Y||N||(i.beginPath(),y=NaN,C=NaN),++B;break;case t.default.CIRCLE:var U=v[P=K[1]],V=v[P+1],z=v[P+2]-U,Q=v[P+3]-V,Z=Math.sqrt(z*z+Q*Q);i.moveTo(U+Z,V),i.arc(U,V,Z,0,2*Math.PI,!0),++B;break;case t.default.CLOSE_PATH:i.closePath(),++B;break;case t.default.CUSTOM:P=K[1],x=K[2];var $=K[3],tt=K[4],et=6==K.length?K[5]:void 0;H.geometry=$,H.feature=E,B in j||(j[B]=[]);var it=j[B];et?et(v,P,x,2,it):(it[0]=v[P],it[1]=v[P+1],it.length=2),tt(it,H),++B;break;case t.default.DRAW_IMAGE:P=K[1],x=K[2],k=K[3],S=K[4],T=K[5];var at=K[6],rt=K[7],st=K[8],lt=K[9],nt=K[10],ot=K[11],ht=K[12],dt=K[13],ut=K[14];if(!k&&K.length>=19){w=K[18],I=K[19],R=K[20],O=K[21];var ct=this.drawLabelWithPointPlacement_(w,I,R,O);k=ct.label,K[3]=k;var ft=K[22];S=(ct.anchorX-ft)*this.pixelRatio,K[4]=S;var pt=K[23];T=(ct.anchorY-pt)*this.pixelRatio,K[5]=T,at=k.height,K[6]=at,dt=k.width,K[13]=dt}var gt=void 0;K.length>24&&(gt=K[24]);var mt=void 0,_t=void 0,vt=void 0;K.length>16?(mt=K[15],_t=K[16],vt=K[17]):(mt=s.defaultPadding,_t=!1,vt=!1),nt&&G?ot+=F:nt||G||(ot-=F);for(var xt=0;P0){if(!c||y!==e.default.IMAGE&&y!==e.default.TEXT||-1!==c.indexOf(t)){var a=(m[i]-3)/4,s=u-a%d,f=u-(a/d|0),x=h(t,r,s*s+f*f);if(x)return x}_.clearRect(0,0,d,d);break}}var g,I,B,C,T,b=Object.keys(this.executorsByZIndex_).map(Number);for(b.sort(a.numberSafeCompareFunction),g=b.length-1;g>=0;--g){var j=b[g].toString();for(B=this.executorsByZIndex_[j],I=f.length-1;I>=0;--I)if(void 0!==(C=B[y=f[I]])&&(T=C.executeHitDetection(_,l,s,E,p)))return T}},u.prototype.getClipCoords=function(e){var t=this.maxExtent_;if(!t)return null;var r=t[0],o=t[1],i=t[2],n=t[3],a=[r,o,r,n,i,n,i,o];return(0,s.transform2D)(a,0,8,2,e,a),a},u.prototype.isEmpty=function(){return(0,n.isEmpty)(this.executorsByZIndex_)},u.prototype.execute=function(e,t,r,o,i,n,s){var u=Object.keys(this.executorsByZIndex_).map(Number);u.sort(a.numberSafeCompareFunction),this.maxExtent_&&(e.save(),this.clip(e,r));var h,c,x,d,l,v,p=n||f;for(s&&u.reverse(),h=0,c=u.length;hr)break;var s=o[a];s||(s=[],o[a]=s),s.push(4*((e+i)*t+(e+n))+3),i>0&&s.push(4*((e-i)*t+(e+n))+3),n>0&&(s.push(4*((e+i)*t+(e-n))+3),i>0&&s.push(4*((e-i)*t+(e-n))+3))}for(var u=[],f=(i=0,o.length);ithis.maxCacheSize_},e.prototype.expire=function(){if(this.canExpireCache()){var e=0;for(var t in this.cache_){var i=this.cache_[t];0!=(3&e++)||i.hasListener()||(delete this.cache_[t],--this.cacheSize_)}}},e.prototype.get=function(e,t,c){var r=i(e,t,c);return r in this.cache_?this.cache_[r]:null},e.prototype.set=function(e,t,c,r){var a=i(e,t,c);this.cache_[a]=r,++this.cacheSize_},e.prototype.setSize=function(e){this.maxCacheSize_=e,this.expire()},e}();function i(t,i,c){return i+":"+t+":"+(c?(0,e.asString)(c):"null")}var c=t;exports.default=c;var r=new t;exports.shared=r; +},{"../color.js":"eucy"}],"Ojbp":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=r(require("./events/Target.js")),e=r(require("./events/EventType.js")),o=require("./util.js");function r(t){return t&&t.__esModule?t:{default:t}}var n=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),u=function(t){function r(e,o,r,n){var u=t.call(this)||this;return u.extent=e,u.pixelRatio_=r,u.resolution=o,u.state=n,u}return n(r,t),r.prototype.changed=function(){this.dispatchEvent(e.default.CHANGE)},r.prototype.getExtent=function(){return this.extent},r.prototype.getImage=function(){return(0,o.abstract)()},r.prototype.getPixelRatio=function(){return this.pixelRatio_},r.prototype.getResolution=function(){return this.resolution},r.prototype.getState=function(){return this.state},r.prototype.load=function(){(0,o.abstract)()},r}(t.default),i=u;exports.default=i; +},{"./events/Target.js":"CR4Y","./events/EventType.js":"C8cu","./util.js":"KniQ"}],"DHWK":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.listenImage=l,exports.default=void 0;var t=o(require("./events/EventType.js")),e=o(require("./ImageBase.js")),n=o(require("./ImageState.js")),i=require("./has.js"),r=require("./extent.js"),s=require("./events.js");function o(t){return t&&t.__esModule?t:{default:t}}var a=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(t){function e(e,i,r,s,o,a){var u=t.call(this,e,i,r,n.default.IDLE)||this;return u.src_=s,u.image_=new Image,null!==o&&(u.image_.crossOrigin=o),u.unlisten_=null,u.state=n.default.IDLE,u.imageLoadFunction_=a,u}return a(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=n.default.ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=(0,r.getHeight)(this.extent)/this.image_.height),this.state=n.default.LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=n.default.IDLE&&this.state!=n.default.ERROR||(this.state=n.default.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=l(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(e.default);function l(e,n,r){var o=e;if(o.src&&i.IMAGE_DECODE){var a=o.decode(),u=!0;return a.then(function(){u&&n()}).catch(function(t){u&&("EncodingError"===t.name&&"Invalid image type."===t.message?n():r())}),function(){u=!1}}var l=[(0,s.listenOnce)(o,t.default.LOAD,n),(0,s.listenOnce)(o,t.default.ERROR,r)];return function(){l.forEach(s.unlistenByKey)}}var c=u;exports.default=c; +},{"./events/EventType.js":"C8cu","./ImageBase.js":"Ojbp","./ImageState.js":"u3kG","./has.js":"f3Nv","./extent.js":"QDir","./events.js":"UqnM"}],"XCOy":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.get=c,exports.default=void 0;var t=r(require("../events/Target.js")),e=r(require("../events/EventType.js")),i=r(require("../ImageState.js")),a=require("../color.js"),n=require("../dom.js"),s=require("./IconImageCache.js"),o=require("../Image.js");function r(t){return t&&t.__esModule?t:{default:t}}var h=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function a(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(a.prototype=i.prototype,new a)}}(),_=null,l=function(t){function s(e,i,a,n,s,o){var r=t.call(this)||this;return r.hitDetectionImage_=null,r.image_=e||new Image,null!==n&&(r.image_.crossOrigin=n),r.canvas_={},r.color_=o,r.unlisten_=null,r.imageState_=s,r.size_=a,r.src_=i,r.tainted_,r}return h(s,t),s.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===i.default.LOADED){_||(_=(0,n.createCanvasContext2D)(1,1)),_.drawImage(this.image_,0,0);try{_.getImageData(0,0,1,1),this.tainted_=!1}catch(t){_=null,this.tainted_=!0}}return!0===this.tainted_},s.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(e.default.CHANGE)},s.prototype.handleImageError_=function(){this.imageState_=i.default.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},s.prototype.handleImageLoad_=function(){this.imageState_=i.default.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},s.prototype.getImage=function(t){return this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_},s.prototype.getPixelRatio=function(t){return this.replaceColor_(t),this.canvas_[t]?t:1},s.prototype.getImageState=function(){return this.imageState_},s.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var t=this.size_[0],e=this.size_[1],i=(0,n.createCanvasContext2D)(t,e);i.fillRect(0,0,t,e),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},s.prototype.getSize=function(){return this.size_},s.prototype.getSrc=function(){return this.src_},s.prototype.load=function(){if(this.imageState_==i.default.IDLE){this.imageState_=i.default.LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=(0,o.listenImage)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},s.prototype.replaceColor_=function(t){if(this.color_&&!this.canvas_[t]){var e=document.createElement("canvas");this.canvas_[t]=e,e.width=Math.ceil(this.image_.width*t),e.height=Math.ceil(this.image_.height*t);var i=e.getContext("2d");if(i.scale(t,t),i.drawImage(this.image_,0,0),i.globalCompositeOperation="multiply","multiply"===i.globalCompositeOperation||this.isTainted_())i.fillStyle=(0,a.asString)(this.color_),i.fillRect(0,0,e.width,e.height),i.globalCompositeOperation="destination-in",i.drawImage(this.image_,0,0);else{for(var n=i.getImageData(0,0,e.width,e.height),s=n.data,o=this.color_[0]/255,r=this.color_[1]/255,h=this.color_[2]/255,_=this.color_[3],l=0,c=s.length;l0,6);var I=void 0!==l.src?o.default.IDLE:o.default.LOADED;return h.color_=void 0!==l.color?(0,n.asArray)(l.color):null,h.iconImage_=(0,a.get)(d,p,O,h.crossOrigin_,I,h.color_),h.offset_=void 0!==l.offset?l.offset:[0,0],h.offsetOrigin_=void 0!==l.offsetOrigin?l.offsetOrigin:e.default.TOP_LEFT,h.origin_=null,h.size_=void 0!==l.size?l.size:null,h}return l(h,r),h.prototype.clone=function(){var t=this.getScale();return new h({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},h.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var t=this.anchor_,o=this.getSize();if(this.anchorXUnits_==i.default.FRACTION||this.anchorYUnits_==i.default.FRACTION){if(!o)return null;t=this.anchor_.slice(),this.anchorXUnits_==i.default.FRACTION&&(t[0]*=o[0]),this.anchorYUnits_==i.default.FRACTION&&(t[1]*=o[1])}if(this.anchorOrigin_!=e.default.TOP_LEFT){if(!o)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=e.default.TOP_RIGHT&&this.anchorOrigin_!=e.default.BOTTOM_RIGHT||(t[0]=-t[0]+o[0]),this.anchorOrigin_!=e.default.BOTTOM_LEFT&&this.anchorOrigin_!=e.default.BOTTOM_RIGHT||(t[1]=-t[1]+o[1])}return this.normalizedAnchor_=t,this.normalizedAnchor_},h.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},h.prototype.getColor=function(){return this.color_},h.prototype.getImage=function(t){return this.iconImage_.getImage(t)},h.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},h.prototype.getImageSize=function(){return this.iconImage_.getSize()},h.prototype.getHitDetectionImageSize=function(){return this.getImageSize()},h.prototype.getImageState=function(){return this.iconImage_.getImageState()},h.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},h.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_,i=this.getDisplacement();if(this.offsetOrigin_!=e.default.TOP_LEFT){var o=this.getSize(),r=this.iconImage_.getSize();if(!o||!r)return null;t=t.slice(),this.offsetOrigin_!=e.default.TOP_RIGHT&&this.offsetOrigin_!=e.default.BOTTOM_RIGHT||(t[0]=r[0]-o[0]-t[0]),this.offsetOrigin_!=e.default.BOTTOM_LEFT&&this.offsetOrigin_!=e.default.BOTTOM_RIGHT||(t[1]=r[1]-o[1]-t[1])}return t[0]+=i[0],t[1]+=i[1],this.origin_=t,this.origin_},h.prototype.getSrc=function(){return this.iconImage_.getSrc()},h.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},h.prototype.listenImageChange=function(i){this.iconImage_.addEventListener(t.default.CHANGE,i)},h.prototype.load=function(){this.iconImage_.load()},h.prototype.unlistenImageChange=function(i){this.iconImage_.removeEventListener(t.default.CHANGE,i)},h}(r.default),g=u;exports.default=g; +},{"../events/EventType.js":"C8cu","./IconAnchorUnits.js":"Rlas","./IconOrigin.js":"urGY","../ImageState.js":"u3kG","./Image.js":"S8ow","../color.js":"eucy","../asserts.js":"fLG6","./IconImage.js":"XCOy","../util.js":"KniQ"}],"qeKX":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Circle",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(exports,"Fill",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(exports,"Icon",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"IconImage",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(exports,"Image",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(exports,"RegularShape",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(exports,"Stroke",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(exports,"Style",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"Text",{enumerable:!0,get:function(){return s.default}});var e=f(require("./style/Circle.js")),t=f(require("./style/Fill.js")),r=f(require("./style/Icon.js")),u=f(require("./style/IconImage.js")),n=f(require("./style/Image.js")),l=f(require("./style/RegularShape.js")),o=f(require("./style/Stroke.js")),i=f(require("./style/Style.js")),s=f(require("./style/Text.js"));function f(e){return e&&e.__esModule?e:{default:e}} +},{"./style/Circle.js":"cdf1","./style/Fill.js":"AFcg","./style/Icon.js":"z2xv","./style/IconImage.js":"XCOy","./style/Image.js":"S8ow","./style/RegularShape.js":"il3X","./style/Stroke.js":"TXDt","./style/Style.js":"he4w","./style/Text.js":"RPsG"}],"MrCe":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createHitDetectionImageData=s,exports.hitDetect=g;var e=l(require("./Immediate.js")),t=l(require("../../geom/GeometryType.js")),r=l(require("../../style/IconAnchorUnits.js")),a=require("../../style.js"),i=require("../../dom.js"),n=require("../../extent.js"),o=require("../../array.js");function l(e){return e&&e.__esModule?e:{default:e}}function s(l,s,g,u,c,h,f){var d=l[0]/2,v=l[1]/2,m=(0,i.createCanvasContext2D)(d,v);m.imageSmoothingEnabled=!1;for(var y=m.canvas,I=new e.default(m,.5,c,null,f),p=g.length,S=Math.floor(16777215/p),w={},x=1;x<=p;++x){var C=g[x-1],j=C.getStyleFunction()||u;if(u){var q=j(C,h);if(q){Array.isArray(q)||(q=[q]);for(var E="#"+("000000"+(x*S).toString(16)).slice(-6),M=0,O=q.length;M0&&(d.width=0),this.container;var c=Math.round(e.size[0]*r),p=Math.round(e.size[1]*r);d.width!=c||d.height!=p?(d.width=c,d.height=p,d.style.transform!==o&&(d.style.transform=o)):this.containerReused||s.clearRect(0,0,c,p),this.preRender(s,e);var f=e.viewState,g=f.projection,y=!1;if(n.extent&&this.clipping){var _=(0,u.fromUserExtent)(n.extent,g);(y=!(0,a.containsExtent)(_,e.extent)&&(0,a.intersects)(_,e.extent))&&this.clipUnrotated(s,e,_)}this.renderWorlds(l,e),y&&s.restore(),this.postRender(s,e);var v=n.opacity,x=this.container;return v!==parseFloat(x.style.opacity)&&(x.style.opacity=1===v?"":String(v)),this.renderedRotation_!==f.rotation&&(this.renderedRotation_=f.rotation,this.hitDetectionImageData_=null),this.container},h.prototype.getFeatures=function(e){return new Promise(function(t){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var r=[this.context.canvas.width,this.context.canvas.height];(0,i.apply)(this.pixelTransform,r);var n=this.renderedCenter_,s=this.renderedResolution_,u=this.renderedRotation_,d=this.renderedProjection_,l=this.renderedExtent_,h=this.getLayer(),c=[],p=r[0]/2,f=r[1]/2;c.push(this.getRenderTransform(n,s,u,.5,p,f,0).slice());var g=h.getSource(),y=d.getExtent();if(g.getWrapX()&&d.canWrapX()&&!(0,a.containsExtent)(y,l)){for(var _=l[0],v=(0,a.getWidth)(y),x=0,m=void 0;_y[2];)m=v*++x,c.push(this.getRenderTransform(n,s,u,.5,p,f,m).slice()),_-=v}this.hitDetectionImageData_=(0,o.createHitDetectionImageData)(r,c,this.renderedFeatures_,h.getStyleFunction(),l,s,u)}t((0,o.hitDetect)(e,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},h.prototype.forEachFeatureAtCoordinate=function(e,t,r,n,i){var a=this;if(this.replayGroup_){var o,s=t.viewState.resolution,u=t.viewState.rotation,l=this.getLayer(),h={},c=function(e,t,r){var a=(0,d.getUid)(e),o=h[a];if(o){if(!0!==o&&rw[0]&&F[2]>w[2]&&j.push([F[0]-G,F[1],F[2]-G,F[3]])}if(!this.dirty_&&this.renderedResolution_==_&&this.renderedRevision_==x&&this.renderedRenderOrder_==R&&(0,a.containsExtent)(this.renderedExtent_,I))return this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var T,C=new e.default((0,s.getTolerance)(_,v),I,_,v);this.getLayer().getDeclutter()&&(T=new e.default((0,s.getTolerance)(_,v),I,_,v));var O,D=(0,u.getUserProjection)();if(D){for(var q=0,W=j.length;q=200&&f.status<300){var n=r.getType(),o=void 0;n==e.default.JSON||n==e.default.TEXT?o=f.responseText:n==e.default.XML?(o=f.responseXML)||(o=(new DOMParser).parseFromString(f.responseText,"application/xml")):n==e.default.ARRAY_BUFFER&&(o=f.response),o?u(r.readFeatures(o,{extent:s,featureProjection:a}),r.readProjection(o)):i()}else i()},f.onerror=i,f.send()}function o(e,r){return function(n,o,a,u,i){var f=this;s(e,r,n,o,a,function(e,t){void 0!==u&&u(e),f.addFeatures(e)},i||t.VOID)}}function a(e){n=e} +},{"./format/FormatType.js":"AbO3","./functions.js":"RgA2"}],"ZS12":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VectorSourceEvent=void 0;var e=y(require("../Collection.js")),t=y(require("../CollectionEventType.js")),r=y(require("../events/Event.js")),n=y(require("../events/EventType.js")),i=y(require("../ObjectEventType.js")),o=y(require("../structs/RBush.js")),s=y(require("./Source.js")),a=y(require("./State.js")),u=y(require("./VectorEventType.js")),d=require("../functions.js"),h=require("../loadingstrategy.js"),l=require("../asserts.js"),f=require("../extent.js"),c=require("../array.js"),_=require("../util.js"),p=require("../obj.js"),v=require("../events.js"),E=require("../featureloader.js");function y(e){return e&&e.__esModule?e:{default:e}}var g=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),F=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.feature=r,i.features=n,i}return g(t,e),t}(r.default);exports.VectorSourceEvent=F;var x=function(r){function s(t){var n=this,i=t||{};(n=r.call(this,{attributions:i.attributions,projection:void 0,state:a.default.READY,wrapX:void 0===i.wrapX||i.wrapX})||this).loader_=d.VOID,n.format_=i.format,n.overlaps_=void 0===i.overlaps||i.overlaps,n.url_=i.url,void 0!==i.loader?n.loader_=i.loader:void 0!==n.url_&&((0,l.assert)(n.format_,7),n.loader_=(0,E.xhr)(n.url_,n.format_)),n.strategy_=void 0!==i.strategy?i.strategy:h.all;var s,u,f=void 0===i.useSpatialIndex||i.useSpatialIndex;return n.featuresRtree_=f?new o.default:null,n.loadedExtentsRtree_=new o.default,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null,Array.isArray(i.features)?u=i.features:i.features&&(u=(s=i.features).getArray()),f||void 0!==s||(s=new e.default(u)),void 0!==u&&n.addFeaturesInternal(u),void 0!==s&&n.bindFeaturesCollection_(s),n}return g(s,r),s.prototype.addFeature=function(e){this.addFeatureInternal(e),this.changed()},s.prototype.addFeatureInternal=function(e){var t=(0,_.getUid)(e);if(this.addToIndex_(t,e)){this.setupChangeEvents_(t,e);var r=e.getGeometry();if(r){var n=r.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(n,e)}else this.nullGeometryFeatures_[t]=e;this.dispatchEvent(new F(u.default.ADDFEATURE,e))}else this.featuresCollection_&&this.featuresCollection_.remove(e)},s.prototype.setupChangeEvents_=function(e,t){this.featureChangeKeys_[e]=[(0,v.listen)(t,n.default.CHANGE,this.handleFeatureChange_,this),(0,v.listen)(t,i.default.PROPERTYCHANGE,this.handleFeatureChange_,this)]},s.prototype.addToIndex_=function(e,t){var r=!0,n=t.getId();return void 0!==n&&(n.toString()in this.idIndex_?r=!1:this.idIndex_[n.toString()]=t),r&&((0,l.assert)(!(e in this.uidIndex_),30),this.uidIndex_[e]=t),r},s.prototype.addFeatures=function(e){this.addFeaturesInternal(e),this.changed()},s.prototype.addFeaturesInternal=function(e){for(var t=[],r=[],n=[],i=0,o=e.length;i0&&v.length>0;)s=v.pop(),c=d.pop(),f=l.pop(),(p=s.toString())in R||(h.push(f[0],f[1]),R[p]=!0),i=v.pop(),M=d.pop(),g=l.pop(),o=r(e=t(u=(s+i)/2)),(0,a.squaredSegmentDistance)(o[0],o[1],f[0],f[1],g[0],g[1])this.featurePool_.length;)h=new a.default,this.featurePool_.push(h);var m=r.getFeaturesCollection();m.clear();var d,u,p=0;for(d=0,u=this.meridians_.length;dMath.PI/2);for(var g=(0,c.getVectorContext)(t),b=m;b<=d;++b){var x=this.meridians_.length+this.parallels_.length,v=void 0,y=void 0,S=void 0,j=void 0;if(this.meridiansLabels_)for(y=0,S=this.meridiansLabels_.length;y=l?(t[0]=n[0],t[2]=n[2]):s=!0);var o=[(0,u.clamp)(e[0],this.minX_,this.maxX_),(0,u.clamp)(e[1],this.minY_,this.maxY_)],h=this.toLonLatTransform_(o);isNaN(h[1])&&(h[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_);var _,m,d,p,f=(0,u.clamp)(h[0],this.minLon_,this.maxLon_),c=(0,u.clamp)(h[1],this.minLat_,this.maxLat_),g=this.maxLines_,b=t;s||(b=[(0,u.clamp)(t[0],this.minX_,this.maxX_),(0,u.clamp)(t[1],this.minY_,this.maxY_),(0,u.clamp)(t[2],this.minX_,this.maxX_),(0,u.clamp)(t[3],this.minY_,this.maxY_)]);var x=(0,L.applyTransform)(b,this.toLonLatTransform_,void 0,8),v=x[3],y=x[2],S=x[1],j=x[0];if(s||((0,L.containsCoordinate)(b,this.bottomLeft_)&&(j=this.minLon_,S=this.minLat_),(0,L.containsCoordinate)(b,this.bottomRight_)&&(y=this.maxLon_,S=this.minLat_),(0,L.containsCoordinate)(b,this.topLeft_)&&(j=this.minLon_,v=this.maxLat_),(0,L.containsCoordinate)(b,this.topRight_)&&(y=this.maxLon_,v=this.maxLat_),v=(0,u.clamp)(v,c,this.maxLat_),y=(0,u.clamp)(y,f,this.maxLon_),S=(0,u.clamp)(S,this.minLat_,c),j=(0,u.clamp)(j,this.minLon_,f)),f=Math.floor(f/r)*r,p=(0,u.clamp)(f,this.minLon_,this.maxLon_),m=this.addMeridian_(p,S,v,i,t,0),_=0,s)for(;(p-=r)>=j&&_++i[s]&&(r=s,s=1);var n=Math.max(e[1],i[r]),l=Math.min(e[3],i[s]),o=(0,u.clamp)(e[1]+Math.abs(e[1]-e[3])*this.lonLabelPosition_,n,l),h=[i[r-1]+(i[s-1]-i[r-1])*(o-i[r])/(i[s]-i[r]),o],_=this.meridiansLabels_[a].geom;return _.setCoordinates(h),_},b.prototype.getMeridians=function(){return this.meridians_},b.prototype.getParallel_=function(t,e,a,i,n){var l=(0,g.parallel)(t,e,a,this.projection_,i),o=this.parallels_[n];return o?(o.setFlatCoordinates(r.default.XY,l),o.changed()):o=new s.default(l,r.default.XY),o},b.prototype.getParallelPoint_=function(t,e,a){var i=t.getFlatCoordinates(),r=0,s=i.length-2;i[r]>i[s]&&(r=s,s=0);var n=Math.max(e[0],i[r]),l=Math.min(e[2],i[s]),o=(0,u.clamp)(e[0]+Math.abs(e[0]-e[2])*this.latLabelPosition_,n,l),h=[o,i[r+1]+(i[s+1]-i[r+1])*(o-i[r])/(i[s]-i[r])],_=this.parallelsLabels_[a].geom;return _.setCoordinates(h),_},b.prototype.getParallels=function(){return this.parallels_},b.prototype.updateProjectionInfo_=function(t){var e=(0,f.get)("EPSG:4326"),a=t.getWorldExtent();this.maxLat_=a[3],this.maxLon_=a[2],this.minLat_=a[1],this.minLon_=a[0];var i=(0,f.getTransform)(t,e);if(this.minLon_=Math.abs(this.minLat_)?this.maxLat_:this.minLat_),this.projection_=t},b}(_.default),j=S;exports.default=j; +},{"../Collection.js":"FnDa","../render/EventType.js":"z39m","../Feature.js":"mYW9","../style/Fill.js":"AFcg","../geom/GeometryLayout.js":"Utvi","../geom/LineString.js":"DfxW","../geom/Point.js":"gLcY","../style/Stroke.js":"TXDt","../style/Style.js":"he4w","../style/Text.js":"RPsG","./Vector.js":"dflx","../source/Vector.js":"ZS12","../extent.js":"QDir","../obj.js":"mH6q","../math.js":"B96G","../coordinate.js":"nGsj","../proj.js":"Diht","../render.js":"RvU2","../geom/flat/geodesic.js":"w0c6"}],"K7j2":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=r(require("./ImageBase.js")),e=r(require("./ImageState.js"));function r(t){return t&&t.__esModule?t:{default:t}}var o=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),n=function(t){function r(r,o,n,a,u){var i=this,s=void 0!==u?e.default.IDLE:e.default.LOADED;return(i=t.call(this,r,o,n,s)||this).loader_=void 0!==u?u:null,i.canvas_=a,i.error_=null,i}return o(r,t),r.prototype.getError=function(){return this.error_},r.prototype.handleLoad_=function(t){t?(this.error_=t,this.state=e.default.ERROR):this.state=e.default.LOADED,this.changed()},r.prototype.load=function(){this.state==e.default.IDLE&&(this.state=e.default.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))},r.prototype.getImage=function(){return this.canvas_},r}(t.default),a=n;exports.default=a; +},{"./ImageBase.js":"Ojbp","./ImageState.js":"u3kG"}],"IeCz":[function(require,module,exports) { +"use strict";function e(e){return Math.pow(e,3)}function t(t){return 1-e(1-t)}function n(e){return 3*e*e-2*e*e*e}function r(e){return e}function u(e){return e<.5?n(2*e):1-n(2*(e-.5))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.easeIn=e,exports.easeOut=t,exports.inAndOut=n,exports.linear=r,exports.upAndDown=u; +},{}],"IWZI":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=o(require("./events/Target.js")),e=o(require("./events/EventType.js")),i=o(require("./TileState.js")),r=require("./util.js"),n=require("./easing.js");function o(t){return t&&t.__esModule?t:{default:t}}var s=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(t){function o(e,i,r){var n=t.call(this)||this,o=r||{};return n.tileCoord=e,n.state=i,n.interimTile=null,n.hifi=!0,n.key="",n.transition_=void 0===o.transition?250:o.transition,n.transitionStarts_={},n}return s(o,t),o.prototype.changed=function(){this.dispatchEvent(e.default.CHANGE)},o.prototype.release=function(){},o.prototype.getKey=function(){return this.key+"/"+this.tileCoord},o.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==i.default.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this},o.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==i.default.LOADED){t.interimTile=null;break}t.getState()==i.default.LOADING?e=t:t.getState()==i.default.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},o.prototype.getTileCoord=function(){return this.tileCoord},o.prototype.getState=function(){return this.state},o.prototype.setState=function(t){if(this.state!==i.default.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},o.prototype.load=function(){(0,r.abstract)()},o.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var i=this.transitionStarts_[t];if(i){if(-1===i)return 1}else i=e,this.transitionStarts_[t]=i;var r=e-i+1e3/60;return r>=this.transition_?1:(0,n.easeIn)(r/this.transition_)},o.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},o.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},o}(t.default),u=a;exports.default=u; +},{"./events/Target.js":"CR4Y","./events/EventType.js":"C8cu","./TileState.js":"u3kG","./util.js":"KniQ","./easing.js":"IeCz"}],"TOsW":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=s(require("./Tile.js")),e=s(require("./TileState.js")),i=require("./dom.js"),n=require("./Image.js");function s(t){return t&&t.__esModule?t:{default:t}}var r=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),a=function(t){function i(e,i,n,s,r,a){var o=t.call(this,e,i,a)||this;return o.crossOrigin_=s,o.src_=n,o.key=n,o.image_=new Image,null!==s&&(o.image_.crossOrigin=s),o.unlisten_=null,o.tileLoadFunction_=r,o}return r(i,t),i.prototype.getImage=function(){return this.image_},i.prototype.handleImageError_=function(){this.state=e.default.ERROR,this.unlistenImage_(),this.image_=o(),this.changed()},i.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=e.default.LOADED:this.state=e.default.EMPTY,this.unlistenImage_(),this.changed()},i.prototype.load=function(){this.state==e.default.ERROR&&(this.state=e.default.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==e.default.IDLE&&(this.state=e.default.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,n.listenImage)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},i.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},i}(t.default);function o(){var t=(0,i.createCanvasContext2D)(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}var u=a;exports.default=u; +},{"./Tile.js":"IWZI","./TileState.js":"u3kG","./dom.js":"Xno5","./Image.js":"DHWK"}],"gAnK":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=function(){function t(t,i,n){this.decay_=t,this.minVelocity_=i,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return t.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},t.prototype.update=function(t,i){this.points_.push(t,i,Date.now())},t.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,i=this.points_.length-3;if(this.points_[i+2]0&&this.points_[n+2]>t;)n-=3;var e=this.points_[i+2]-this.points_[n+2];if(e<1e3/60)return!1;var s=this.points_[i]-this.points_[n],o=this.points_[i+1]-this.points_[n+1];return this.angle_=Math.atan2(o,s),this.initialVelocity_=Math.sqrt(s*s+o*o)/e,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}(),i=t;exports.default=i; +},{}],"oIh9":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=c(require("../Disposable.js")),t=require("../functions.js"),r=require("../util.js"),n=require("../transform.js"),o=require("../extent.js"),a=require("../style/IconImageCache.js"),i=require("../layer/Layer.js"),u=require("../coordinate.js");function c(e){return e&&e.__esModule?e:{default:e}}var s=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=function(e){function c(t){var r=e.call(this)||this;return r.map_=t,r}return s(c,e),c.prototype.dispatchRenderEvent=function(e,t){(0,r.abstract)()},c.prototype.calculateMatrices2D=function(e){var t=e.viewState,r=e.coordinateToPixelTransform,o=e.pixelToCoordinateTransform;(0,n.compose)(r,e.size[0]/2,e.size[1]/2,1/t.resolution,-1/t.resolution,-t.rotation,-t.center[0],-t.center[1]),(0,n.makeInverse)(o,r)},c.prototype.forEachFeatureAtCoordinate=function(e,t,r,n,a,c,s,p){var f,l=t.viewState;function d(e,t,r,n){return a.call(c,t,e?r:null,n)}var h=l.projection,y=(0,u.wrapX)(e.slice(),h),v=[[0,0]];if(h.canWrapX()&&n){var _=h.getExtent(),g=(0,o.getWidth)(_);v.push([-g,0],[g,0])}for(var j=t.layerStatesArray,m=j.length,q=[],x=[],b=0;b=0;--E){var C=j[E],A=C.layer;if(A.hasRenderer()&&(0,i.inView)(C,l)&&s.call(p,A)){var S=A.getRenderer(),w=A.getSource();if(S&&w){var F=w.getWrapX()?y:e,O=d.bind(null,C.managed);x[0]=F[0]+v[b][0],x[1]=F[1]+v[b][1],f=S.forEachFeatureAtCoordinate(x,t,r,O,q)}if(f)return f}}if(0!==q.length){var P=1/q.length;return q.forEach(function(e,t){return e.distanceSq+=t*P}),q.sort(function(e,t){return e.distanceSq-t.distanceSq}),q.some(function(e){return f=e.callback(e.feature,e.layer,e.geometry)}),f}},c.prototype.forEachLayerAtPixel=function(e,t,n,o,a){return(0,r.abstract)()},c.prototype.hasFeatureAtCoordinate=function(e,r,n,o,a,i){return void 0!==this.forEachFeatureAtCoordinate(e,r,n,o,t.TRUE,this,a,i)},c.prototype.getMap=function(){return this.map_},c.prototype.renderFrame=function(e){(0,r.abstract)()},c.prototype.scheduleExpireIconCache=function(e){a.shared.canExpireCache()&&e.postRenderFunctions.push(f)},c}(e.default);function f(e,t){a.shared.expire()}var l=p;exports.default=l; +},{"../Disposable.js":"DDda","../functions.js":"RgA2","../util.js":"KniQ","../transform.js":"P4eA","../extent.js":"QDir","../style/IconImageCache.js":"V0oB","../layer/Layer.js":"GCgv","../coordinate.js":"nGsj"}],"MHsB":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=u(require("./Map.js")),t=u(require("../ObjectEventType.js")),r=u(require("../render/Event.js")),n=u(require("../render/EventType.js")),i=u(require("../source/State.js")),s=require("../css.js"),a=require("../render/canvas.js"),l=require("../layer/Layer.js"),o=require("../events.js"),d=require("../dom.js");function u(e){return e&&e.__esModule?e:{default:e}}var c=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=function(e){function u(r){var n=e.call(this,r)||this;n.fontChangeListenerKey_=(0,o.listen)(a.checkedFonts,t.default.PROPERTYCHANGE,r.redrawText.bind(r)),n.element_=document.createElement("div");var i=n.element_.style;i.position="absolute",i.width="100%",i.height="100%",i.zIndex="0",n.element_.className=s.CLASS_UNSELECTABLE+" ol-layers";var l=r.getViewport();return l.insertBefore(n.element_,l.firstChild||null),n.children_=[],n.renderedVisible_=!0,n}return c(u,e),u.prototype.dispatchRenderEvent=function(e,t){var n=this.getMap();if(n.hasListener(e)){var i=new r.default(e,void 0,t);n.dispatchEvent(i)}},u.prototype.disposeInternal=function(){(0,o.unlistenByKey)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),e.prototype.disposeInternal.call(this)},u.prototype.renderFrame=function(e){if(e){this.calculateMatrices2D(e),this.dispatchRenderEvent(n.default.PRECOMPOSE,e);var t=e.layerStatesArray.sort(function(e,t){return e.zIndex-t.zIndex}),r=e.viewState;this.children_.length=0;for(var s=[],a=null,o=0,u=t.length;o=0;--o)s[o].renderDeclutter(e);(0,d.replaceChildren)(this.element_,this.children_),this.dispatchRenderEvent(n.default.POSTCOMPOSE,e),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(e)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},u.prototype.forEachLayerAtPixel=function(e,t,r,n,i){for(var s=t.viewState,a=t.layerStatesArray,o=a.length-1;o>=0;--o){var d=a[o],u=d.layer;if(u.hasRenderer()&&(0,l.inView)(d,s)&&i(u)){var c=u.getRenderer().getDataAtPixel(e,t,r);if(c){var h=n(u,c);if(h)return h}}}},u}(e.default),p=h;exports.default=p; +},{"./Map.js":"oIh9","../ObjectEventType.js":"zehl","../render/Event.js":"EB6P","../render/EventType.js":"z39m","../source/State.js":"iC8j","../css.js":"HgMV","../render/canvas.js":"iAG7","../layer/Layer.js":"GCgv","../events.js":"UqnM","../dom.js":"Xno5"}],"q0nK":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=c(require("./Base.js")),t=c(require("../Collection.js")),r=c(require("../CollectionEventType.js")),n=c(require("../events/EventType.js")),s=c(require("../ObjectEventType.js")),i=c(require("../source/State.js")),a=require("../asserts.js"),o=require("../obj.js"),l=require("../Object.js"),y=require("../extent.js"),u=require("../util.js"),h=require("../events.js");function c(e){return e&&e.__esModule?e:{default:e}}var d=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f={LAYERS:"layers"},p=function(e){function c(r){var n=this,s=r||{},i=(0,o.assign)({},s);delete i.layers;var y=s.layers;return(n=e.call(this,i)||this).layersListenerKeys_=[],n.listenerKeys_={},n.addEventListener((0,l.getChangeEventType)(f.LAYERS),n.handleLayersChanged_),y?Array.isArray(y)?y=new t.default(y.slice(),{unique:!0}):(0,a.assert)("function"==typeof y.getArray,43):y=new t.default(void 0,{unique:!0}),n.setLayers(y),n}return d(c,e),c.prototype.handleLayerChange_=function(){this.changed()},c.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(h.unlistenByKey),this.layersListenerKeys_.length=0;var e=this.getLayers();for(var t in this.layersListenerKeys_.push((0,h.listen)(e,r.default.ADD,this.handleLayersAdd_,this),(0,h.listen)(e,r.default.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[t].forEach(h.unlistenByKey);(0,o.clear)(this.listenerKeys_);for(var i=e.getArray(),a=0,l=i.length;athis.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_},a.prototype.disposeInternal=function(){this.relayedListenerKey_&&((0,r.unlistenByKey)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(t.default.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,r.unlistenByKey)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(r.unlistenByKey),this.dragListenerKeys_.length=0,this.element_=null,e.prototype.disposeInternal.call(this)},a}(e.default),d=h;exports.default=d; +},{"./events/Target.js":"CR4Y","./events/EventType.js":"C8cu","./MapBrowserEvent.js":"HMLS","./MapBrowserEventType.js":"YhDM","./pointer/EventType.js":"TaSm","./has.js":"f3Nv","./events.js":"UqnM"}],"xLGm":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend"};exports.default=e; +},{}],"zlNQ":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"};exports.default=e; +},{}],"RQLY":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.DROP=void 0;var t=require("../asserts.js"),e=require("../obj.js"),i=1/0;exports.DROP=i;var n=function(){function n(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return n.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,(0,e.clear)(this.queuedElements_)},n.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,i=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var n=this.keyFunction_(i);return delete this.queuedElements_[n],i},n.prototype.enqueue=function(e){(0,t.assert)(!(this.keyFunction_(e)in this.queuedElements_),31);var n=this.priorityFunction_(e);return n!=i&&(this.elements_.push(e),this.priorities_.push(n),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},n.prototype.getCount=function(){return this.elements_.length},n.prototype.getLeftChildIndex_=function(t){return 2*t+1},n.prototype.getRightChildIndex_=function(t){return 2*t+2},n.prototype.getParentIndex_=function(t){return t-1>>1},n.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},n.prototype.isEmpty=function(){return 0===this.elements_.length},n.prototype.isKeyQueued=function(t){return t in this.queuedElements_},n.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},n.prototype.siftUp_=function(t){for(var e=this.elements_,i=this.priorities_,n=e.length,s=e[t],r=i[t],o=t;t>1;){var u=this.getLeftChildIndex_(t),h=this.getRightChildIndex_(t),p=ht;){var o=this.getParentIndex_(e);if(!(n[o]>r))break;i[e]=i[o],n[e]=n[o],e=o}i[e]=s,n[e]=r},n.prototype.reprioritize=function(){var t,e,n,s=this.priorityFunction_,r=this.elements_,o=this.priorities_,u=0,h=r.length;for(e=0;e0;)i=(r=this.dequeue()[0]).getKey(),r.getState()!==n.default.IDLE||i in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[i]=!0,++this.tilesLoading_,++o,r.load())},r}(t.default),l=u;function s(e,n,r,i,o){if(!(e&&r in e.wantedTiles))return t.DROP;if(!e.wantedTiles[r][n.getKey()])return t.DROP;var a=e.viewState.center,u=i[0]-a[0],l=i[1]-a[1];return 65536*Math.log(o)+Math.sqrt(u*u+l*l)/o}exports.default=l; +},{"./events/EventType.js":"C8cu","./structs/PriorityQueue.js":"RQLY","./TileState.js":"u3kG"}],"cE7c":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};exports.default=e; +},{}],"mOEX":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DEFAULT_TILE_SIZE=exports.DEFAULT_MAX_ZOOM=void 0;var e=42;exports.DEFAULT_MAX_ZOOM=e;var r=256;exports.DEFAULT_TILE_SIZE=r; +},{}],"Rc7z":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createExtent=a,exports.none=e;var t=require("./math.js");function a(a,e,r){return function(n,o,u,h,M){if(n){var c=e?0:u[0]*o,l=e?0:u[1]*o,x=M?M[0]:0,i=M?M[1]:0,m=a[0]+c/2+x,s=a[2]-c/2+x,p=a[1]+l/2+i,f=a[3]-l/2+i;m>s&&(s=m=(s+m)/2),p>f&&(f=p=(f+p)/2);var g=(0,t.clamp)(n[0],m,s),v=(0,t.clamp)(n[1],p,f),d=30*o;return h&&r&&(g+=-d*Math.log(1+Math.max(0,m-n[0])/d)+d*Math.log(1+Math.max(0,n[0]-s)/d),v+=-d*Math.log(1+Math.max(0,p-n[1])/d)+d*Math.log(1+Math.max(0,n[1]-f)/d)),[g,v]}}}function e(t){return t} +},{"./math.js":"B96G"}],"o7nl":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createSnapToResolutions=i,exports.createSnapToPower=o,exports.createMinMaxResolution=h;var t=require("./math.js"),a=require("./extent.js"),r=require("./array.js");function e(t,r,e,n){var i=(0,a.getWidth)(r)/e[0],o=(0,a.getHeight)(r)/e[1];return n?Math.min(t,Math.max(i,o)):Math.min(t,Math.min(i,o))}function n(a,r,e){var n=Math.min(a,r);return n*=Math.log(1+50*Math.max(0,a/r-1))/50+1,e&&(n=Math.max(n,e),n/=Math.log(1+50*Math.max(0,e/a-1))/50+1),(0,t.clamp)(n,e/2,2*r)}function i(a,i,o,h){return function(u,M,l,c){if(void 0!==u){var m=a[0],f=a[a.length-1],v=o?e(m,o,l,h):m;if(c)return void 0===i||i?n(u,v,f):(0,t.clamp)(u,f,v);var s=Math.min(v,u),p=Math.floor((0,r.linearFindNearest)(a,s,M));return a[p]>v&&p1&&"function"==typeof arguments[o-1]&&(e=arguments[o-1],--o),!this.isDef()){var i=arguments[o-1];return i.center&&this.setCenterInternal(i.center),void 0!==i.zoom&&this.setZoom(i.zoom),void 0!==i.rotation&&this.setRotation(i.rotation),void(e&&M(e,!0))}for(var r=Date.now(),s=this.targetCenter_.slice(),a=this.targetResolution_,u=this.targetRotation_,h=[],l=0;l0},o.prototype.getInteracting=function(){return this.hints_[n.default.INTERACTING]>0},o.prototype.cancelAnimations=function(){var t;this.setHint(n.default.ANIMATING,-this.hints_[n.default.ANIMATING]);for(var e=0,o=this.animations_.length;e=0;--o){for(var i=this.animations_[o],r=!0,s=0,a=i.length;s0?h/u.duration:1;l>=1?(u.complete=!0,l=1):r=!1;var c=u.easing(l);if(u.sourceCenter){var g=u.sourceCenter[0],m=u.sourceCenter[1],d=g+c*(u.targetCenter[0]-g),f=m+c*(u.targetCenter[1]-m);this.targetCenter_=[d,f]}if(u.sourceResolution&&u.targetResolution){var _=1===c?u.targetResolution:u.sourceResolution+c*(u.targetResolution-u.sourceResolution);if(u.anchor){var R=this.getViewportSize_(this.getRotation()),v=this.constraints_.resolution(_,0,R,!0);this.targetCenter_=this.calculateCenterZoom(v,u.anchor)}this.targetResolution_=_,this.applyTargetState_(!0)}if(void 0!==u.sourceRotation&&void 0!==u.targetRotation){var y=1===c?(0,p.modulo)(u.targetRotation+Math.PI,2*Math.PI)-Math.PI:u.sourceRotation+c*(u.targetRotation-u.sourceRotation);if(u.anchor){var C=this.constraints_.rotation(y,!0);this.targetCenter_=this.calculateCenterRotate(C,u.anchor)}this.targetRotation_=y}if(this.applyTargetState_(!0),e=!0,!u.complete)break}}if(r){this.animations_[o]=null,this.setHint(n.default.ANIMATING,-1);var I=i[0].callback;I&&M(I,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},o.prototype.calculateCenterRotate=function(t,e){var o,n=this.getCenterInternal();return void 0!==n&&(o=[n[0]-e[0],n[1]-e[1]],(0,u.rotate)(o,t-this.getRotation()),(0,u.add)(o,e)),o},o.prototype.calculateCenterZoom=function(t,e){var o,n=this.getCenterInternal(),i=this.getResolution();void 0!==n&&void 0!==i&&(o=[e[0]-t*(e[0]-n[0])/i,e[1]-t*(e[1]-n[1])/i]);return o},o.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var o=e[0],n=e[1];return[Math.abs(o*Math.cos(t))+Math.abs(n*Math.sin(t)),Math.abs(o*Math.sin(t))+Math.abs(n*Math.cos(t))]}return e},o.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},o.prototype.getCenter=function(){var t=this.getCenterInternal();return t?(0,s.toUserCoordinate)(t,this.getProjection()):t},o.prototype.getCenterInternal=function(){return this.get(i.default.CENTER)},o.prototype.getConstraints=function(){return this.constraints_},o.prototype.getConstrainResolution=function(){return this.options_.constrainResolution},o.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},o.prototype.calculateExtent=function(t){var e=this.calculateExtentInternal(t);return(0,s.toUserExtent)(e,this.getProjection())},o.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSize_(),o=this.getCenterInternal();(0,h.assert)(o,1);var n=this.getResolution();(0,h.assert)(void 0!==n,2);var i=this.getRotation();return(0,h.assert)(void 0!==i,3),(0,f.getForViewAndSize)(o,n,i,e)},o.prototype.getMaxResolution=function(){return this.maxResolution_},o.prototype.getMinResolution=function(){return this.minResolution_},o.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},o.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},o.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},o.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},o.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},o.prototype.getProjection=function(){return this.projection_},o.prototype.getResolution=function(){return this.get(i.default.RESOLUTION)},o.prototype.getResolutions=function(){return this.resolutions_},o.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal((0,s.fromUserExtent)(t,this.getProjection()),e)},o.prototype.getResolutionForExtentInternal=function(t,e){var o=e||this.getViewportSize_(),n=(0,f.getWidth)(t)/o[0],i=(0,f.getHeight)(t)/o[1];return Math.max(n,i)},o.prototype.getResolutionForValueFunction=function(t){var e=t||2,o=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(o/n)/Math.log(e);return function(t){return o/Math.pow(e,t*i)}},o.prototype.getRotation=function(){return this.get(i.default.ROTATION)},o.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),o=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(o/n)/e;return function(t){return Math.log(o/t)/e/i}},o.prototype.getViewportSizeMinusPadding_=function(t){var e=this.getViewportSize_(t),o=this.padding;return o&&(e=[e[0]-o[1]-o[3],e[1]-o[0]-o[2]]),e},o.prototype.getState=function(){var t=this.getProjection(),e=this.getResolution(),o=this.getRotation(),n=this.getCenterInternal(),i=this.padding;if(i){var r=this.getViewportSizeMinusPadding_();n=S(n,this.getViewportSize_(),[r[0]/2+i[3],r[1]/2+i[0]],e,o)}return{center:n.slice(0),projection:void 0!==t?t:null,resolution:e,rotation:o,zoom:this.getZoom()}},o.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},o.prototype.getZoomForResolution=function(t){var e,o,n=this.minZoom_||0;if(this.resolutions_){var i=(0,_.linearFindNearest)(this.resolutions_,t,1);n=i,e=this.resolutions_[i],o=i==this.resolutions_.length-1?2:e/this.resolutions_[i+1]}else e=this.maxResolution_,o=this.zoomFactor_;return n+Math.log(e/t)/Math.log(o)},o.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=(0,p.clamp)(Math.floor(t),0,this.resolutions_.length-2),o=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(o,(0,p.clamp)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},o.prototype.fit=function(t,o){var n;if((0,h.assert)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)){(0,h.assert)(!(0,f.isEmpty)(t),25);var i=(0,s.fromUserExtent)(t,this.getProjection());n=(0,R.fromExtent)(i)}else if(t.getType()===e.default.CIRCLE){i=(0,s.fromUserExtent)(t.getExtent(),this.getProjection());(n=(0,R.fromExtent)(i)).rotate(this.getRotation(),(0,f.getCenter)(i))}else{var r=(0,s.getUserProjection)();n=r?t.clone().transform(r,this.getProjection()):t}this.fitInternal(n,o)},o.prototype.fitInternal=function(t,e){var o=e||{},n=o.size;n||(n=this.getViewportSizeMinusPadding_());var i,r=void 0!==o.padding?o.padding:[0,0,0,0],s=void 0!==o.nearest&&o.nearest;i=void 0!==o.minResolution?o.minResolution:void 0!==o.maxZoom?this.getResolutionForZoom(o.maxZoom):0;for(var u=t.getFlatCoordinates(),h=this.getRotation(),l=Math.cos(-h),c=Math.sin(-h),p=1/0,g=1/0,m=-1/0,d=-1/0,f=t.getStride(),_=0,R=u.length;_=0;l--){var d=s[l];if(d.getMap()===this&&d.getActive()&&this.getTargetElement())if(!d.handleEvent(e)||e.propagationStopped)break}}},f.prototype.handlePostRender=function(){var e=this.frameState_,t=this.tileQueue_;if(!t.isEmpty()){var r=this.maxTilesLoading_,n=r;if(e){var i=e.viewHints;if(i[c.default.ANIMATING]||i[c.default.INTERACTING]){var o=!_.IMAGE_DECODE&&Date.now()-e.time>8;r=o?0:8,n=o?0:2}}t.getTilesLoading()0;if(this.renderedVisible_!=t&&(this.element.style.display=t?"":"none",this.renderedVisible_=t),!(0,s.equals)(l,this.renderedAttributions_)){(0,a.removeChildren)(this.ulElement_);for(var o=0,i=l.length;o0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:o.easeOut}):t.setRotation(0))}},r.prototype.render=function(t){var e=t.frameState;if(e){var o=e.viewState.rotation;if(o!=this.rotation_){var r="rotate("+o+"rad)";if(this.autoHide_){var i=this.element.classList.contains(a.CLASS_HIDDEN);i||0!==o?i&&0!==o&&this.element.classList.remove(a.CLASS_HIDDEN):this.element.classList.add(a.CLASS_HIDDEN)}this.label_.style.transform=r}this.rotation_=o}},r}(t.default),s=n;exports.default=s; +},{"./Control.js":"xxE2","../events/EventType.js":"C8cu","../css.js":"HgMV","../easing.js":"IeCz"}],"L3CO":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=a(require("./Control.js")),e=a(require("../events/EventType.js")),o=require("../css.js"),n=require("../easing.js");function a(t){return t&&t.__esModule?t:{default:t}}var i=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),r=function(t){function a(n){var a=this,i=n||{};a=t.call(this,{element:document.createElement("div"),target:i.target})||this;var r=void 0!==i.className?i.className:"ol-zoom",u=void 0!==i.delta?i.delta:1,l=void 0!==i.zoomInClassName?i.zoomInClassName:r+"-in",s=void 0!==i.zoomOutClassName?i.zoomOutClassName:r+"-out",d=void 0!==i.zoomInLabel?i.zoomInLabel:"+",c=void 0!==i.zoomOutLabel?i.zoomOutLabel:"−",m=void 0!==i.zoomInTipLabel?i.zoomInTipLabel:"Zoom in",p=void 0!==i.zoomOutTipLabel?i.zoomOutTipLabel:"Zoom out",v=document.createElement("button");v.className=l,v.setAttribute("type","button"),v.title=m,v.appendChild("string"==typeof d?document.createTextNode(d):d),v.addEventListener(e.default.CLICK,a.handleClick_.bind(a,u),!1);var f=document.createElement("button");f.className=s,f.setAttribute("type","button"),f.title=p,f.appendChild("string"==typeof c?document.createTextNode(c):c),f.addEventListener(e.default.CLICK,a.handleClick_.bind(a,-u),!1);var _=r+" "+o.CLASS_UNSELECTABLE+" "+o.CLASS_CONTROL,C=a.element;return C.className=_,C.appendChild(v),C.appendChild(f),a.duration_=void 0!==i.duration?i.duration:250,a}return i(a,t),a.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},a.prototype.zoomByDelta_=function(t){var e=this.getMap().getView();if(e){var o=e.getZoom();if(void 0!==o){var a=e.getConstrainedZoom(o+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:a,duration:this.duration_,easing:n.easeOut})):e.setZoom(a)}}},a}(t.default),u=r;exports.default=u; +},{"./Control.js":"xxE2","../events/EventType.js":"C8cu","../css.js":"HgMV","../easing.js":"IeCz"}],"dOoh":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("./Control.js")),t=r(require("../events/EventType.js")),s=require("../css.js"),l=require("../events.js"),n=require("../dom.js");function r(e){return e&&e.__esModule?e:{default:e}}var a=function(){var e=function(t,s){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(t,s)};return function(t,s){function l(){this.constructor=t}e(t,s),t.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)}}(),u=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],c={ENTERFULLSCREEN:"enterfullscreen",LEAVEFULLSCREEN:"leavefullscreen"},i=function(e){function r(l){var n=this,r=l||{};(n=e.call(this,{element:document.createElement("div"),target:r.target})||this).cssClassName_=void 0!==r.className?r.className:"ol-full-screen",n.activeClassName_=void 0!==r.activeClassName?r.activeClassName.split(" "):[n.cssClassName_+"-true"],n.inactiveClassName_=void 0!==r.inactiveClassName?r.inactiveClassName.split(" "):[n.cssClassName_+"-false"];var a=void 0!==r.label?r.label:"⤢";n.labelNode_="string"==typeof a?document.createTextNode(a):a;var u=void 0!==r.labelActive?r.labelActive:"×";n.labelActiveNode_="string"==typeof u?document.createTextNode(u):u,n.button_=document.createElement("button");var c=r.tipLabel?r.tipLabel:"Toggle full-screen";n.setClassName_(n.button_,d()),n.button_.setAttribute("type","button"),n.button_.title=c,n.button_.appendChild(n.labelNode_),n.button_.addEventListener(t.default.CLICK,n.handleClick_.bind(n),!1);var i=n.cssClassName_+" "+s.CLASS_UNSELECTABLE+" "+s.CLASS_CONTROL+" "+(o()?"":s.CLASS_UNSUPPORTED),p=n.element;return p.className=i,p.appendChild(n.button_),n.keys_=void 0!==r.keys&&r.keys,n.source_=r.source,n}return a(r,e),r.prototype.handleClick_=function(e){e.preventDefault(),this.handleFullScreen_()},r.prototype.handleFullScreen_=function(){if(o()){var e=this.getMap();if(e)if(d())m();else{var t=void 0;t=this.source_?"string"==typeof this.source_?document.getElementById(this.source_):this.source_:e.getTargetElement(),this.keys_?_(t):p(t)}}},r.prototype.handleFullScreenChange_=function(){var e=this.getMap();d()?(this.setClassName_(this.button_,!0),(0,n.replaceNode)(this.labelActiveNode_,this.labelNode_),this.dispatchEvent(c.ENTERFULLSCREEN)):(this.setClassName_(this.button_,!1),(0,n.replaceNode)(this.labelNode_,this.labelActiveNode_),this.dispatchEvent(c.LEAVEFULLSCREEN)),e&&e.updateSize()},r.prototype.setClassName_=function(e,t){var s,l,n,r=this.activeClassName_,a=this.inactiveClassName_,u=t?r:a;(s=e.classList).remove.apply(s,r),(l=e.classList).remove.apply(l,a),(n=e.classList).add.apply(n,u)},r.prototype.setMap=function(t){if(e.prototype.setMap.call(this,t),t)for(var s=0,n=u.length;sd*m||p>h*m?this.resetExtent_():(0,u.containsExtent)(a,o)||this.recenter_()}}},t.prototype.resetExtent_=function(){if(0!==m&&0!==b){var e=this.getMap(),t=this.ovmap_,i=e.getSize(),o=e.getView().calculateExtentInternal(i),n=t.getView(),a=Math.log(m/b)/Math.LN2,l=1/(Math.pow(2,a/2)*b);(0,u.scaleFromCenter)(o,l),n.fitInternal((0,_.fromExtent)(o))}},t.prototype.recenter_=function(){var e=this.getMap(),t=this.ovmap_,i=e.getView();t.getView().setCenterInternal(i.getCenterInternal())},t.prototype.updateBox_=function(){var e=this.getMap(),t=this.ovmap_;if(e.isRendered()&&t.isRendered()){var i=e.getSize(),o=e.getView(),n=t.getView(),a=this.rotateWithView_?0:-o.getRotation(),l=this.boxOverlay_,r=this.boxOverlay_.getElement(),s=o.getCenterInternal(),p=o.getResolution(),d=n.getResolution(),h=i[0]*p/d,u=i[1]*p/d;if(l.setPosition(s),r){r.style.width=h+"px",r.style.height=u+"px";var c="rotate("+a+"rad)";r.style.transform=c}}},t.prototype.handleClick_=function(e){e.preventDefault(),this.handleToggle_()},t.prototype.handleToggle_=function(){this.element.classList.toggle(h.CLASS_COLLAPSED),this.collapsed_?(0,g.replaceNode)(this.collapseLabel_,this.label_):(0,g.replaceNode)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var e=this.ovmap_;if(!this.collapsed_){if(e.isRendered())return this.viewExtent_=void 0,void e.render();e.updateSize(),this.resetExtent_(),(0,v.listenOnce)(e,o.default.POSTRENDER,function(e){this.updateBox_()},this)}},t.prototype.getCollapsible=function(){return this.collapsible_},t.prototype.setCollapsible=function(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),!e&&this.collapsed_&&this.handleToggle_())},t.prototype.setCollapsed=function(e){this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()},t.prototype.getCollapsed=function(){return this.collapsed_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.setRotateWithView=function(e){this.rotateWithView_!==e&&(this.rotateWithView_=e,0!==this.getMap().getView().getRotation()&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))},t.prototype.getOverviewMap=function(){return this.ovmap_},t.prototype.render=function(e){this.validateExtent_(),this.updateBox_()},t}(t.default),C=E;exports.default=C; +},{"../renderer/Composite.js":"MHsB","./Control.js":"xxE2","../events/EventType.js":"C8cu","../MapEventType.js":"xLGm","../MapProperty.js":"zlNQ","../ObjectEventType.js":"zehl","../Overlay.js":"qWcX","../OverlayPositioning.js":"VpAM","../PluggableMap.js":"kRwz","../View.js":"hNqE","../ViewProperty.js":"cE7c","../css.js":"HgMV","../extent.js":"QDir","../Object.js":"PhPh","../events.js":"UqnM","../geom/Polygon.js":"Nwwk","../dom.js":"Xno5"}],"DK5d":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.Units=void 0;var e=a(require("./Control.js")),t=a(require("../proj/Units.js")),i=require("../css.js"),r=require("../proj.js"),s=require("../asserts.js"),n=require("../Object.js");function a(e){return e&&e.__esModule?e:{default:e}}var o=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l="units",d={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"};exports.Units=d;var p=[1,2,5],c=25.4/.28,h=function(e){function a(t){var r=this,s=t||{},a=void 0!==s.className?s.className:s.bar?"ol-scale-bar":"ol-scale-line";return(r=e.call(this,{element:document.createElement("div"),render:s.render,target:s.target})||this).innerElement_=document.createElement("div"),r.innerElement_.className=a+"-inner",r.element.className=a+" "+i.CLASS_UNSELECTABLE,r.element.appendChild(r.innerElement_),r.viewState_=null,r.minWidth_=void 0!==s.minWidth?s.minWidth:64,r.renderedVisible_=!1,r.renderedWidth_=void 0,r.renderedHTML_="",r.addEventListener((0,n.getChangeEventType)(l),r.handleUnitsChanged_),r.setUnits(s.units||d.METRIC),r.scaleBar_=s.bar||!1,r.scaleBarSteps_=s.steps||4,r.scaleBarText_=s.text||!1,r.dpi_=s.dpi||void 0,r}return o(a,e),a.prototype.getUnits=function(){return this.get(l)},a.prototype.handleUnitsChanged_=function(){this.updateElement_()},a.prototype.setUnits=function(e){this.set(l,e)},a.prototype.setDpi=function(e){this.dpi_=e},a.prototype.updateElement_=function(){var e=this.viewState_;if(e){var i=e.center,n=e.projection,a=this.getUnits(),o=a==d.DEGREES?t.default.DEGREES:t.default.METERS,l=(0,r.getPointResolution)(n,e.resolution,i,o),h=this.minWidth_*(this.dpi_||c)/c,u=h*l,f="";if(a==d.DEGREES){var _=r.METERS_PER_UNIT[t.default.DEGREES];(u*=_)<_/60?(f="″",l*=3600):u<_?(f="′",l*=60):f="°"}else a==d.IMPERIAL?u<.9144?(f="in",l/=.0254):u<1609.344?(f="ft",l/=.3048):(f="mi",l/=1609.344):a==d.NAUTICAL?(l/=1852,f="nm"):a==d.METRIC?u<.001?(f="μm",l*=1e6):u<1?(f="mm",l*=1e3):u<1e3?f="m":(f="km",l/=1e3):a==d.US?u<.9144?(f="in",l*=39.37):u<1609.344?(f="ft",l/=.30480061):(f="mi",l/=1609.3472):(0,s.assert)(!1,33);for(var v,m,E,S,y=3*Math.floor(Math.log(h*l)/Math.log(10));;){E=Math.floor(y/3);var M=Math.pow(10,E);if(v=p[(y%3+3)%3]*M,m=Math.round(v/l),isNaN(m))return this.element.style.display="none",void(this.renderedVisible_=!1);if(m>=h)break;++y}S=this.scaleBar_?this.createScaleBar(m,v,f):v.toFixed(E<0?-E:0)+" "+f,this.renderedHTML_!=S&&(this.innerElement_.innerHTML=S,this.renderedHTML_=S),this.renderedWidth_!=m&&(this.innerElement_.style.width=m+"px",this.renderedWidth_=m),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},a.prototype.createScaleBar=function(e,t,i){for(var r="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),s=[],n=e/this.scaleBarSteps_,a="#ffffff",o=0;o
'+this.createMarker("relative",o)+(o%2==0||2===this.scaleBarSteps_?this.createStepText(o,e,!1,t,i):"")+""),o===this.scaleBarSteps_-1&&s.push(this.createStepText(o+1,e,!0,t,i)),a="#ffffff"===a?"#000000":"#ffffff";return'
'+(this.scaleBarText_?'
'+r+"
":"")+s.join("")+"
"},a.prototype.createMarker=function(e,t){return'
'},a.prototype.createStepText=function(e,t,i,r,s){var n=(0===e?0:Math.round(r/this.scaleBarSteps_*e*100)/100)+(0===e?"":" "+s);return'
'+n+"
"},a.prototype.getScaleForResolution=function(){var e=(0,r.getPointResolution)(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center),t=this.dpi_||c,i=this.viewState_.projection.getMetersPerUnit();return parseFloat(e.toString())*i*(1e3/25.4)*t},a.prototype.render=function(e){var t=e.frameState;this.viewState_=t?t.viewState:null,this.updateElement_()},a}(e.default),u=h;exports.default=u; +},{"./Control.js":"xxE2","../proj/Units.js":"yZx6","../css.js":"HgMV","../proj.js":"Diht","../asserts.js":"fLG6","../Object.js":"PhPh"}],"AKwM":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=l(require("./Control.js")),e=l(require("../events/EventType.js")),i=l(require("../pointer/EventType.js")),r=require("../css.js"),n=require("../math.js"),o=require("../easing.js"),s=require("../events.js"),a=require("../events/Event.js");function l(t){return t&&t.__esModule?t:{default:t}}var h=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),d={VERTICAL:0,HORIZONTAL:1},u=function(t){function l(n){var o=this,s=n||{};(o=t.call(this,{element:document.createElement("div"),render:s.render})||this).dragListenerKeys_=[],o.currentResolution_=void 0,o.direction_=d.VERTICAL,o.dragging_,o.heightLimit_=0,o.widthLimit_=0,o.startX_,o.startY_,o.thumbSize_=null,o.sliderInitialized_=!1,o.duration_=void 0!==s.duration?s.duration:200;var l=void 0!==s.className?s.className:"ol-zoomslider",h=document.createElement("button");h.setAttribute("type","button"),h.className=l+"-thumb "+r.CLASS_UNSELECTABLE;var u=o.element;return u.className=l+" "+r.CLASS_UNSELECTABLE+" "+r.CLASS_CONTROL,u.appendChild(h),u.addEventListener(i.default.POINTERDOWN,o.handleDraggerStart_.bind(o),!1),u.addEventListener(i.default.POINTERMOVE,o.handleDraggerDrag_.bind(o),!1),u.addEventListener(i.default.POINTERUP,o.handleDraggerEnd_.bind(o),!1),u.addEventListener(e.default.CLICK,o.handleContainerClick_.bind(o),!1),h.addEventListener(e.default.CLICK,a.stopPropagation,!1),o}return h(l,t),l.prototype.setMap=function(e){t.prototype.setMap.call(this,e),e&&e.render()},l.prototype.initSlider_=function(){var t=this.element,e=t.offsetWidth,i=t.offsetHeight;if(0===e&&0===i)return this.sliderInitialized_=!1;var r=t.firstElementChild,n=getComputedStyle(r),o=r.offsetWidth+parseFloat(n.marginRight)+parseFloat(n.marginLeft),s=r.offsetHeight+parseFloat(n.marginTop)+parseFloat(n.marginBottom);return this.thumbSize_=[o,s],e>i?(this.direction_=d.HORIZONTAL,this.widthLimit_=e-o):(this.direction_=d.VERTICAL,this.heightLimit_=i-s),this.sliderInitialized_=!0},l.prototype.handleContainerClick_=function(t){var e=this.getMap().getView(),i=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),r=this.getResolutionForPosition_(i),n=e.getConstrainedZoom(e.getZoomForResolution(r));e.animateInternal({zoom:n,duration:this.duration_,easing:o.easeOut})},l.prototype.handleDraggerStart_=function(t){if(!this.dragging_&&t.target===this.element.firstElementChild){var e=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=t.clientX-parseFloat(e.style.left),this.startY_=t.clientY-parseFloat(e.style.top),this.dragging_=!0,0===this.dragListenerKeys_.length){var r=this.handleDraggerDrag_,n=this.handleDraggerEnd_,o=this.getMap().getOwnerDocument();this.dragListenerKeys_.push((0,s.listen)(o,i.default.POINTERMOVE,r,this),(0,s.listen)(o,i.default.POINTERUP,n,this))}}},l.prototype.handleDraggerDrag_=function(t){if(this.dragging_){var e=t.clientX-this.startX_,i=t.clientY-this.startY_,r=this.getRelativePosition_(e,i);this.currentResolution_=this.getResolutionForPosition_(r),this.getMap().getView().setResolution(this.currentResolution_)}},l.prototype.handleDraggerEnd_=function(t){this.dragging_&&(this.getMap().getView().endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(s.unlistenByKey),this.dragListenerKeys_.length=0)},l.prototype.setThumbPosition_=function(t){var e=this.getPositionForResolution_(t),i=this.element.firstElementChild;this.direction_==d.HORIZONTAL?i.style.left=this.widthLimit_*e+"px":i.style.top=this.heightLimit_*e+"px"},l.prototype.getRelativePosition_=function(t,e){var i;return i=this.direction_===d.HORIZONTAL?t/this.widthLimit_:e/this.heightLimit_,(0,n.clamp)(i,0,1)},l.prototype.getResolutionForPosition_=function(t){return this.getMap().getView().getResolutionForValueFunction()(1-t)},l.prototype.getPositionForResolution_=function(t){var e=this.getMap().getView().getValueForResolutionFunction();return(0,n.clamp)(1-e(t),0,1)},l.prototype.render=function(t){if(t.frameState&&(this.sliderInitialized_||this.initSlider_())){var e=t.frameState.viewState.resolution;this.currentResolution_=e,this.setThumbPosition_(e)}},l}(t.default),g=u;exports.default=g; +},{"./Control.js":"xxE2","../events/EventType.js":"C8cu","../pointer/EventType.js":"TaSm","../css.js":"HgMV","../math.js":"B96G","../easing.js":"IeCz","../events.js":"UqnM","../events/Event.js":"fKNg"}],"W4Y0":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=r(require("./Control.js")),e=r(require("../events/EventType.js")),n=require("../css.js"),o=require("../geom/Polygon.js");function r(t){return t&&t.__esModule?t:{default:t}}var i=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),a=function(t){function r(o){var r=this,i=o||{};(r=t.call(this,{element:document.createElement("div"),target:i.target})||this).extent=i.extent?i.extent:null;var a=void 0!==i.className?i.className:"ol-zoom-extent",l=void 0!==i.label?i.label:"E",u=void 0!==i.tipLabel?i.tipLabel:"Fit to extent",c=document.createElement("button");c.setAttribute("type","button"),c.title=u,c.appendChild("string"==typeof l?document.createTextNode(l):l),c.addEventListener(e.default.CLICK,r.handleClick_.bind(r),!1);var s=a+" "+n.CLASS_UNSELECTABLE+" "+n.CLASS_CONTROL,p=r.element;return p.className=s,p.appendChild(c),r}return i(r,t),r.prototype.handleClick_=function(t){t.preventDefault(),this.handleZoomToExtent()},r.prototype.handleZoomToExtent=function(){var t=this.getMap().getView(),e=this.extent?this.extent:t.getProjection().getExtent();t.fitInternal((0,o.fromExtent)(e))},r}(t.default),l=a;exports.default=l; +},{"./Control.js":"xxE2","../events/EventType.js":"C8cu","../css.js":"HgMV","../geom/Polygon.js":"Nwwk"}],"ucqx":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.defaults=d,Object.defineProperty(exports,"Attribution",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(exports,"Rotate",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"Zoom",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(exports,"Control",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(exports,"FullScreen",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(exports,"MousePosition",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"OverviewMap",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(exports,"ScaleLine",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(exports,"ZoomSlider",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(exports,"ZoomToExtent",{enumerable:!0,get:function(){return f.default}});var e=s(require("./control/Attribution.js")),t=s(require("./Collection.js")),r=s(require("./control/Rotate.js")),o=s(require("./control/Zoom.js")),n=s(require("./control/Control.js")),u=s(require("./control/FullScreen.js")),i=s(require("./control/MousePosition.js")),l=s(require("./control/OverviewMap.js")),a=s(require("./control/ScaleLine.js")),c=s(require("./control/ZoomSlider.js")),f=s(require("./control/ZoomToExtent.js"));function s(e){return e&&e.__esModule?e:{default:e}}function d(n){var u=n||{},i=new t.default;return(void 0===u.zoom||u.zoom)&&i.push(new o.default(u.zoomOptions)),(void 0===u.rotate||u.rotate)&&i.push(new r.default(u.rotateOptions)),(void 0===u.attribution||u.attribution)&&i.push(new e.default(u.attributionOptions)),i} +},{"./control/Attribution.js":"Q4Cf","./Collection.js":"FnDa","./control/Rotate.js":"sCgw","./control/Zoom.js":"L3CO","./control/Control.js":"xxE2","./control/FullScreen.js":"dOoh","./control/MousePosition.js":"Cbl8","./control/OverviewMap.js":"KMhA","./control/ScaleLine.js":"DK5d","./control/ZoomSlider.js":"AKwM","./control/ZoomToExtent.js":"W4Y0"}],"caOi":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={ACTIVE:"active"};exports.default=e; +},{}],"jB2p":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.pan=a,exports.zoomByDelta=u,exports.default=void 0;var t=o(require("../Object.js")),e=o(require("./Property.js")),n=require("../easing.js");function o(t){return t&&t.__esModule?t:{default:t}}var r=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),i=function(t){function n(e){var n=t.call(this)||this;return e&&e.handleEvent&&(n.handleEvent=e.handleEvent),n.map_=null,n.setActive(!0),n}return r(n,t),n.prototype.getActive=function(){return this.get(e.default.ACTIVE)},n.prototype.getMap=function(){return this.map_},n.prototype.handleEvent=function(t){return!0},n.prototype.setActive=function(t){this.set(e.default.ACTIVE,t)},n.prototype.setMap=function(t){this.map_=t},n}(t.default);function a(t,e,o){var r=t.getCenterInternal();if(r){var i=[r[0]+e[0],r[1]+e[1]];t.animateInternal({duration:void 0!==o?o:250,easing:n.linear,center:t.getConstrainedCenter(i)})}}function u(t,e,o,r){var i=t.getZoom();if(void 0!==i){var a=t.getConstrainedZoom(i+e),u=t.getResolutionForZoom(a);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:u,anchor:o,duration:void 0!==r?r:250,easing:n.easeOut})}}var s=i;exports.default=s; +},{"../Object.js":"PhPh","./Property.js":"caOi","../easing.js":"IeCz"}],"NSa4":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=o(require("./Interaction.js")),e=r(require("../MapBrowserEventType.js"));function r(t){return t&&t.__esModule?t:{default:t}}function n(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return n=function(){return t},t}function o(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=n();if(e&&e.has(t))return e.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)){var a=o?Object.getOwnPropertyDescriptor(t,u):null;a&&(a.get||a.set)?Object.defineProperty(r,u,a):r[u]=t[u]}return r.default=t,e&&e.set(t,r),r}var u=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(r){function n(t){var e=r.call(this)||this,n=t||{};return e.delta_=n.delta?n.delta:1,e.duration_=void 0!==n.duration?n.duration:250,e}return u(n,r),n.prototype.handleEvent=function(r){var n=!1;if(r.type==e.default.DBLCLICK){var o=r.originalEvent,u=r.map,a=r.coordinate,i=o.shiftKey?-this.delta_:this.delta_,f=u.getView();(0,t.zoomByDelta)(f,i,a,this.duration_),o.preventDefault(),n=!0}return!n},n}(t.default),i=a;exports.default=i; +},{"./Interaction.js":"jB2p","../MapBrowserEventType.js":"YhDM"}],"dnA2":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.centroid=a,exports.default=void 0;var t=r(require("./Interaction.js")),e=r(require("../MapBrowserEventType.js")),n=require("../obj.js");function r(t){return t&&t.__esModule?t:{default:t}}var o=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=function(t){function r(e){var n=this,r=e||{};return n=t.call(this,r)||this,r.handleDownEvent&&(n.handleDownEvent=r.handleDownEvent),r.handleDragEvent&&(n.handleDragEvent=r.handleDragEvent),r.handleMoveEvent&&(n.handleMoveEvent=r.handleMoveEvent),r.handleUpEvent&&(n.handleUpEvent=r.handleUpEvent),r.stopDown&&(n.stopDown=r.stopDown),n.handlingDownUpSequence=!1,n.trackedPointers_={},n.targetPointers=[],n}return o(r,t),r.prototype.getPointerCount=function(){return this.targetPointers.length},r.prototype.handleDownEvent=function(t){return!1},r.prototype.handleDragEvent=function(t){},r.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var n=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==e.default.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==e.default.POINTERUP){var r=this.handleUpEvent(t);this.handlingDownUpSequence=r&&this.targetPointers.length>0}}else if(t.type==e.default.POINTERDOWN){var o=this.handleDownEvent(t);this.handlingDownUpSequence=o,n=this.stopDown(o)}else t.type==e.default.POINTERMOVE&&this.handleMoveEvent(t);return!n},r.prototype.handleMoveEvent=function(t){},r.prototype.handleUpEvent=function(t){return!1},r.prototype.stopDown=function(t){return t},r.prototype.updateTrackedPointers_=function(t){if(u(t)){var r=t.originalEvent,o=r.pointerId.toString();t.type==e.default.POINTERUP?delete this.trackedPointers_[o]:t.type==e.default.POINTERDOWN?this.trackedPointers_[o]=r:o in this.trackedPointers_&&(this.trackedPointers_[o]=r),this.targetPointers=(0,n.getValues)(this.trackedPointers_)}},r}(t.default);function a(t){for(var e=t.length,n=0,r=0,o=0;o0&&this.condition_(t)){var e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},a}(t.default),l=c;exports.default=l; +},{"./Pointer.js":"dnA2","../functions.js":"RgA2","../events/condition.js":"YcID","../easing.js":"IeCz","../coordinate.js":"nGsj"}],"PgBj":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=i(require("./Pointer.js")),n=require("../functions.js"),e=require("../events/condition.js"),o=require("../rotationconstraint.js");function i(t){return t&&t.__esModule?t:{default:t}}var r=function(){var t=function(n,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(n,e)};return function(n,e){function o(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}(),a=function(t){function i(o){var i=this,r=o||{};return(i=t.call(this,{stopDown:n.FALSE})||this).condition_=r.condition?r.condition:e.altShiftKeysOnly,i.lastAngle_=void 0,i.duration_=void 0!==r.duration?r.duration:250,i}return r(i,t),i.prototype.handleDragEvent=function(t){if((0,e.mouseOnly)(t)){var n=t.map,i=n.getView();if(i.getConstraints().rotation!==o.disable){var r=n.getSize(),a=t.pixel,u=Math.atan2(r[1]/2-a[1],a[0]-r[0]/2);if(void 0!==this.lastAngle_){var s=u-this.lastAngle_;i.adjustRotationInternal(-s)}this.lastAngle_=u}}},i.prototype.handleUpEvent=function(t){return!(0,e.mouseOnly)(t)||(t.map.getView().endInteraction(this.duration_),!1)},i.prototype.handleDownEvent=function(t){return!!(0,e.mouseOnly)(t)&&(!(!(0,e.mouseActionButton)(t)||!this.condition_(t))&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0))},i}(t.default),u=a;exports.default=u; +},{"./Pointer.js":"dnA2","../functions.js":"RgA2","../events/condition.js":"YcID","../rotationconstraint.js":"EKd0"}],"bMDg":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=i(require("../Disposable.js")),e=i(require("../geom/Polygon.js"));function i(t){return t&&t.__esModule?t:{default:t}}var n=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),r=function(t){function i(e){var i=t.call(this)||this;return i.geometry_=null,i.element_=document.createElement("div"),i.element_.style.position="absolute",i.element_.style.pointerEvents="auto",i.element_.className="ol-box "+e,i.map_=null,i.startPixel_=null,i.endPixel_=null,i}return n(i,t),i.prototype.disposeInternal=function(){this.setMap(null)},i.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,i=this.element_.style;i.left=Math.min(t[0],e[0])+"px",i.top=Math.min(t[1],e[1])+"px",i.width=Math.abs(e[0]-t[0])+"px",i.height=Math.abs(e[1]-t[1])+"px"},i.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},i.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},i.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,i=this.endPixel_,n=[t,[t[0],i[1]],i,[i[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new e.default([n])},i.prototype.getGeometry=function(){return this.geometry_},i}(t.default),o=r;exports.default=o; +},{"../Disposable.js":"DDda","../geom/Polygon.js":"Nwwk"}],"AQRw":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.DragBoxEvent=void 0;var t=i(require("../events/Event.js")),n=i(require("./Pointer.js")),o=i(require("../render/Box.js")),e=require("../events/condition.js");function i(t){return t&&t.__esModule?t:{default:t}}var r=function(){var t=function(n,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])})(n,o)};return function(n,o){function e(){this.constructor=n}t(n,o),n.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}}(),s={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},a=function(t){function n(n,o,e){var i=t.call(this,n)||this;return i.coordinate=o,i.mapBrowserEvent=e,i}return r(n,t),n}(t.default);exports.DragBoxEvent=a;var u=function(t){function n(n){var i=t.call(this)||this,r=n||{};return i.box_=new o.default(r.className||"ol-dragbox"),i.minArea_=void 0!==r.minArea?r.minArea:64,r.onBoxEnd&&(i.onBoxEnd=r.onBoxEnd),i.startPixel_=null,i.condition_=r.condition?r.condition:e.mouseActionButton,i.boxEndCondition_=r.boxEndCondition?r.boxEndCondition:i.defaultBoxEndCondition,i}return r(n,t),n.prototype.defaultBoxEndCondition=function(t,n,o){var e=o[0]-n[0],i=o[1]-n[1];return e*e+i*i>=this.minArea_},n.prototype.getGeometry=function(){return this.box_.getGeometry()},n.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new a(s.BOXDRAG,t.coordinate,t))},n.prototype.handleUpEvent=function(t){this.box_.setMap(null);var n=this.boxEndCondition_(t,this.startPixel_,t.pixel);return n&&this.onBoxEnd(t),this.dispatchEvent(new a(n?s.BOXEND:s.BOXCANCEL,t.coordinate,t)),!1},n.prototype.handleDownEvent=function(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new a(s.BOXSTART,t.coordinate,t)),!0)},n.prototype.onBoxEnd=function(t){},n}(n.default),d=u;exports.default=d; +},{"../events/Event.js":"fKNg","./Pointer.js":"dnA2","../render/Box.js":"bMDg","../events/condition.js":"YcID"}],"pTqW":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=r(require("./DragBox.js")),e=require("../extent.js"),o=require("../easing.js"),n=require("../events/condition.js");function r(t){return t&&t.__esModule?t:{default:t}}var i=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),a=function(t){function r(e){var o=this,r=e||{},i=r.condition?r.condition:n.shiftKeyOnly;return(o=t.call(this,{condition:i,className:r.className||"ol-dragzoom",minArea:r.minArea})||this).duration_=void 0!==r.duration?r.duration:200,o.out_=void 0!==r.out&&r.out,o}return i(r,t),r.prototype.onBoxEnd=function(t){var n=this.getMap(),r=n.getView(),i=n.getSize(),a=this.getGeometry().getExtent();if(this.out_){var u=r.calculateExtentInternal(i),s=(0,e.createOrUpdateFromCoordinates)([n.getPixelFromCoordinateInternal((0,e.getBottomLeft)(a)),n.getPixelFromCoordinateInternal((0,e.getTopRight)(a))]),c=r.getResolutionForExtentInternal(s,i);(0,e.scaleFromCenter)(u,1/c),a=u}var l=r.getConstrainedResolution(r.getResolutionForExtentInternal(a,i)),d=r.getConstrainedCenter((0,e.getCenter)(a),l);r.animateInternal({resolution:l,center:d,duration:this.duration_,easing:o.easeOut})},r}(t.default),u=a;exports.default=u; +},{"./DragBox.js":"AQRw","../extent.js":"QDir","../easing.js":"IeCz","../events/condition.js":"YcID"}],"mmJk":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={LEFT:37,UP:38,RIGHT:39,DOWN:40};exports.default=e; +},{}],"CFRo":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=a(require("../events/EventType.js")),e=u(require("./Interaction.js")),r=a(require("../events/KeyCode.js")),n=require("../events/condition.js"),o=require("../coordinate.js");function i(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return i=function(){return t},t}function u(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=i();if(e&&e.has(t))return e.get(t);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var u=n?Object.getOwnPropertyDescriptor(t,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=t[o]}return r.default=t,e&&e.set(t,r),r}function a(t){return t&&t.__esModule?t:{default:t}}var f=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(i){function u(t){var e=i.call(this)||this,r=t||{};return e.defaultCondition_=function(t){return(0,n.noModifierKeys)(t)&&(0,n.targetNotEditable)(t)},e.condition_=void 0!==r.condition?r.condition:e.defaultCondition_,e.duration_=void 0!==r.duration?r.duration:100,e.pixelDelta_=void 0!==r.pixelDelta?r.pixelDelta:128,e}return f(u,i),u.prototype.handleEvent=function(n){var i=!1;if(n.type==t.default.KEYDOWN){var u=n.originalEvent,a=u.keyCode;if(this.condition_(n)&&(a==r.default.DOWN||a==r.default.LEFT||a==r.default.RIGHT||a==r.default.UP)){var f=n.map.getView(),l=f.getResolution()*this.pixelDelta_,c=0,d=0;a==r.default.DOWN?d=-l:a==r.default.LEFT?c=-l:a==r.default.RIGHT?c=l:d=l;var p=[c,d];(0,o.rotate)(p,f.getRotation()),(0,e.pan)(f,p,this.duration_),u.preventDefault(),i=!0}}return!i},u}(e.default),c=l;exports.default=c; +},{"../events/EventType.js":"C8cu","./Interaction.js":"jB2p","../events/KeyCode.js":"mmJk","../events/condition.js":"YcID","../coordinate.js":"nGsj"}],"S8wR":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=i(require("../events/EventType.js")),e=o(require("./Interaction.js")),r=require("../events/condition.js");function n(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return n=function(){return t},t}function o(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=n();if(e&&e.has(t))return e.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=o?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=t[i]}return r.default=t,e&&e.set(t,r),r}function i(t){return t&&t.__esModule?t:{default:t}}var a=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(n){function o(t){var e=n.call(this)||this,o=t||{};return e.condition_=o.condition?o.condition:r.targetNotEditable,e.delta_=o.delta?o.delta:1,e.duration_=void 0!==o.duration?o.duration:100,e}return a(o,n),o.prototype.handleEvent=function(r){var n=!1;if(r.type==t.default.KEYDOWN||r.type==t.default.KEYPRESS){var o=r.originalEvent,i=o.charCode;if(this.condition_(r)&&(i=="+".charCodeAt(0)||i=="-".charCodeAt(0))){var a=r.map,u=i=="+".charCodeAt(0)?this.delta_:-this.delta_,c=a.getView();(0,e.zoomByDelta)(c,u,void 0,this.duration_),o.preventDefault(),n=!0}}return!n},o}(e.default),c=u;exports.default=c; +},{"../events/EventType.js":"C8cu","./Interaction.js":"jB2p","../events/condition.js":"YcID"}],"kPt6":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.Mode=void 0;var t=s(require("../events/EventType.js")),e=a(require("./Interaction.js")),o=require("../has.js"),i=require("../events/condition.js"),n=require("../math.js");function r(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return r=function(){return t},t}function a(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=r();if(e&&e.has(t))return e.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var a=i?Object.getOwnPropertyDescriptor(t,n):null;a&&(a.get||a.set)?Object.defineProperty(o,n,a):o[n]=t[n]}return o.default=t,e&&e.set(t,o),o}function s(t){return t&&t.__esModule?t:{default:t}}var u=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),l={TRACKPAD:"trackpad",WHEEL:"wheel"};exports.Mode=l;var c=function(r){function a(t){var e=this,o=t||{};(e=r.call(this,o)||this).totalDelta_=0,e.lastDelta_=0,e.maxDelta_=void 0!==o.maxDelta?o.maxDelta:1,e.duration_=void 0!==o.duration?o.duration:250,e.timeout_=void 0!==o.timeout?o.timeout:80,e.useAnchor_=void 0===o.useAnchor||o.useAnchor,e.constrainResolution_=void 0!==o.constrainResolution&&o.constrainResolution;var n=o.condition?o.condition:i.always;return e.condition_=o.onFocusOnly?(0,i.all)(i.focusWithTabindex,n):n,e.lastAnchor_=null,e.startTime_=void 0,e.timeoutId_,e.mode_=void 0,e.trackpadEventGap_=400,e.trackpadTimeoutId_,e.deltaPerZoom_=300,e}return u(a,r),a.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},a.prototype.handleEvent=function(e){if(!this.condition_(e))return!0;if(e.type!==t.default.WHEEL)return!0;var i,n=e.map,r=e.originalEvent;if(r.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.coordinate),e.type==t.default.WHEEL&&(i=r.deltaY,o.FIREFOX&&r.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(i/=o.DEVICE_PIXEL_RATIO),r.deltaMode===WheelEvent.DOM_DELTA_LINE&&(i*=40)),0===i)return!1;this.lastDelta_=i;var a=Date.now();void 0===this.startTime_&&(this.startTime_=a),(!this.mode_||a-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(i)<4?l.TRACKPAD:l.WHEEL);var s=n.getView();if(this.mode_===l.TRACKPAD&&!s.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(s.getAnimating()&&s.cancelAnimations(),s.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),s.adjustZoom(-i/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=a,!1;this.totalDelta_+=i;var u=Math.max(this.timeout_-(a-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),u),!1},a.prototype.handleWheelZoom_=function(t){var o=t.getView();o.getAnimating()&&o.cancelAnimations();var i=-(0,n.clamp)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(o.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),(0,e.zoomByDelta)(o,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},a.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},a}(e.default),_=c;exports.default=_; +},{"../events/EventType.js":"C8cu","./Interaction.js":"jB2p","../has.js":"f3Nv","../events/condition.js":"YcID","../math.js":"B96G"}],"hbGN":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=o(require("./Pointer.js")),e=require("../functions.js"),n=require("../rotationconstraint.js");function r(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return r=function(){return t},t}function o(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=r();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=o?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=t[i]}return n.default=t,e&&e.set(t,n),n}var i=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(r){function o(t){var n=this,o=t||{},i=o;return i.stopDown||(i.stopDown=e.FALSE),(n=r.call(this,i)||this).anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=void 0!==o.threshold?o.threshold:.3,n.duration_=void 0!==o.duration?o.duration:250,n}return i(o,r),o.prototype.handleDragEvent=function(e){var r=0,o=this.targetPointers[0],i=this.targetPointers[1],a=Math.atan2(i.clientY-o.clientY,i.clientX-o.clientX);if(void 0!==this.lastAngle_){var s=a-this.lastAngle_;this.rotationDelta_+=s,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),r=s}this.lastAngle_=a;var l=e.map,u=l.getView();if(u.getConstraints().rotation!==n.disable){var c=l.getViewport().getBoundingClientRect(),h=(0,t.centroid)(this.targetPointers);h[0]-=c.left,h[1]-=c.top,this.anchor_=l.getCoordinateFromPixelInternal(h),this.rotating_&&(l.render(),u.adjustRotationInternal(r,this.anchor_))}},o.prototype.handleUpEvent=function(t){return!(this.targetPointers.length<2)||(t.map.getView().endInteraction(this.duration_),!1)},o.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},o}(t.default),s=a;exports.default=s; +},{"./Pointer.js":"dnA2","../functions.js":"RgA2","../rotationconstraint.js":"EKd0"}],"rcXm":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=r(require("./Pointer.js")),e=require("../functions.js");function n(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return n=function(){return t},t}function r(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=n();if(e&&e.has(t))return e.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=o?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=t[i]}return r.default=t,e&&e.set(t,r),r}var o=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=function(n){function r(t){var r=this,o=t||{},i=o;return i.stopDown||(i.stopDown=e.FALSE),(r=n.call(this,i)||this).anchor_=null,r.duration_=void 0!==o.duration?o.duration:400,r.lastDistance_=void 0,r.lastScaleDelta_=1,r}return o(r,n),r.prototype.handleDragEvent=function(e){var n=1,r=this.targetPointers[0],o=this.targetPointers[1],i=r.clientX-o.clientX,a=r.clientY-o.clientY,s=Math.sqrt(i*i+a*a);void 0!==this.lastDistance_&&(n=this.lastDistance_/s),this.lastDistance_=s;var c=e.map,l=c.getView();1!=n&&(this.lastScaleDelta_=n);var u=c.getViewport().getBoundingClientRect(),p=(0,t.centroid)(this.targetPointers);p[0]-=u.left,p[1]-=u.top,this.anchor_=c.getCoordinateFromPixelInternal(p),c.render(),l.adjustResolutionInternal(n,this.anchor_)},r.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView(),n=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,n),!1}return!0},r.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},r}(t.default),a=i;exports.default=a; +},{"./Pointer.js":"dnA2","../functions.js":"RgA2"}],"IYO6":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.DragAndDropEvent=void 0;var t=a(require("../events/Event.js")),e=a(require("../events/EventType.js")),r=a(require("../format/FormatType.js")),s=a(require("./Interaction.js")),n=require("../functions.js"),o=require("../proj.js"),i=require("../events.js");function a(t){return t&&t.__esModule?t:{default:t}}var u=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function s(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(s.prototype=r.prototype,new s)}}(),p={ADD_FEATURES:"addfeatures"},f=function(t){function e(e,r,s,n){var o=t.call(this,e)||this;return o.features=s,o.file=r,o.projection=n,o}return u(e,t),e}(t.default);exports.DragAndDropEvent=f;var l=function(t){function s(e){var s=this,i=e||{};(s=t.call(this,{handleEvent:n.TRUE})||this).readAsBuffer_=!1,s.formats_=[];for(var a=i.formatConstructors?i.formatConstructors:[],u=0,p=a.length;u0){this.source_&&(this.source_.clear(),this.source_.addFeatures(d)),this.dispatchEvent(new f(p.ADD_FEATURES,t,d,i));break}}},s.prototype.registerListeners_=function(){var t=this.getMap();if(t){var r=this.target?this.target:t.getViewport();this.dropListenKeys_=[(0,i.listen)(r,e.default.DROP,this.handleDrop,this),(0,i.listen)(r,e.default.DRAGENTER,this.handleStop,this),(0,i.listen)(r,e.default.DRAGOVER,this.handleStop,this),(0,i.listen)(r,e.default.DROP,this.handleStop,this)]}},s.prototype.setActive=function(e){!this.getActive()&&e&&this.registerListeners_(),this.getActive()&&!e&&this.unregisterListeners_(),t.prototype.setActive.call(this,e)},s.prototype.setMap=function(e){this.unregisterListeners_(),t.prototype.setMap.call(this,e),this.getActive()&&this.registerListeners_()},s.prototype.tryReadFeatures_=function(t,e,r){try{return t.readFeatures(e,r)}catch(s){return null}},s.prototype.unregisterListeners_=function(){this.dropListenKeys_&&(this.dropListenKeys_.forEach(i.unlistenByKey),this.dropListenKeys_=null)},s.prototype.handleDrop=function(t){for(var r=t.dataTransfer.files,s=0,n=r.length;s1?1:-1;return n.endInteraction(this.duration_,i),this.lastScaleDelta_=0,!1},n.prototype.handleDownEvent=function(t){return!!(0,e.mouseOnly)(t)&&(!!this.condition_(t)&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0))},n}(t.default),a=o;exports.default=a; +},{"./Pointer.js":"dnA2","../events/condition.js":"YcID"}],"AyCw":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=s(require("./GeometryType.js")),e=s(require("./SimpleGeometry.js")),r=require("../extent.js"),o=require("./flat/deflate.js"),i=require("./flat/transform.js");function s(t){return t&&t.__esModule?t:{default:t}}var n=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),a=function(e){function s(t,r,o){var i=e.call(this)||this;if(void 0!==o&&void 0===r)i.setFlatCoordinates(o,t);else{var s=r||0;i.setCenterAndRadius(t,s,o)}return i}return n(s,e),s.prototype.clone=function(){var t=new s(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t},s.prototype.closestPointXY=function(t,e,r,o){var i=this.flatCoordinates,s=t-i[0],n=e-i[1],a=s*s+n*n;if(a=o[0]||(t[1]<=o[1]&&t[3]>=o[1]||(0,r.forEachCorner)(t,this.intersectsCoordinate.bind(this)))}return!1},s.prototype.setCenter=function(t){var e=this.stride,r=this.flatCoordinates[e]-this.flatCoordinates[0],o=t.slice();o[e]=o[0]+r;for(var i=1;i=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,o=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0));return this.freehand_&&e.type===h.default.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),s=!1):this.freehand_&&e.type===h.default.POINTERDOWN?s=!1:o&&this.getPointerCount()<2?(s=e.type===h.default.POINTERMOVE)&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===h.default.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e):e.type===h.default.DBLCLICK&&(s=!1),t.prototype.handleEvent.call(this,e)&&s},l.prototype.handleDownEvent=function(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new a.default(h.default.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)},l.prototype.handleUpEvent=function(e){var t=!0;if(0===this.getPointerCount())if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(e),this.shouldHandle_){switch(!0){case!this.finishCoordinate_:if(this.startDrawing_(e.coordinate),this.mode_!==E.POINT)break;case this.freehand_||this.atFinish_(e.pixel)&&this.finishCondition_(e):this.finishDrawing();break;case!this.freehand_:this.addToDrawing_(e.coordinate)}t=!1}else this.freehand_&&this.abortDrawing();return!t&&this.stopClick_&&e.originalEvent.stopPropagation(),t},l.prototype.handlePointerMove_=function(e){if(this.pointerType_=e.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var t=this.downPx_,i=e.pixel,o=t[0]-i[0],s=t[1]-i[1],r=o*o+s*s;if(this.shouldHandle_=this.freehand_?r>this.squaredClickTolerance_:r<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(e.coordinate):this.createOrUpdateSketchPoint_(e)},l.prototype.atFinish_=function(e){var t=!1;if(this.sketchFeature_){var i=!1,o=[this.finishCoordinate_],s=this.mode_;if(s===E.POINT)t=!0;else if(s===E.CIRCLE)t=2===this.sketchCoords_.length;else if(s===E.LINE_STRING)i=this.sketchCoords_.length>this.minPoints_;else if(s===E.POLYGON){var r=this.sketchCoords_;i=r[0].length>this.minPoints_,o=[r[0][0],r[0][r[0].length-2]]}if(i)for(var n=this.getMap(),a=0,h=o.length;a=this.maxPoints_&&(this.freehand_?i.pop():t=!0),i.push(e.slice()),this.geometryFunction_(i,o,s)):r===E.POLYGON&&((i=this.sketchCoords_[0]).length>=this.maxPoints_&&(this.freehand_?i.pop():t=!0),i.push(e.slice()),t&&(this.finishCoordinate_=i[0]),this.geometryFunction_(this.sketchCoords_,o,s)),this.updateSketchFeatures_(),t&&this.finishDrawing()},l.prototype.removeLastPoint=function(){if(this.sketchFeature_){var e,t=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),o=this.mode_;if(o===E.LINE_STRING||o===E.CIRCLE){if((e=this.sketchCoords_).splice(-2,1),e.length>=2){this.finishCoordinate_=e[e.length-2].slice();var r=this.finishCoordinate_.slice();e[e.length-1]=r,this.sketchPoint_.setGeometry(new c.default(r))}this.geometryFunction_(e,t,i),t.getType()===s.default.POLYGON&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(o===E.POLYGON){(e=this.sketchCoords_[0]).splice(-2,1);var n=this.sketchLine_.getGeometry();if(e.length>=2){r=e[e.length-2].slice();e[e.length-1]=r,this.sketchPoint_.setGeometry(new c.default(r))}n.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t,i)}1===e.length&&this.abortDrawing(),this.updateSketchFeatures_()}},l.prototype.finishDrawing=function(){var e=this.abortDrawing_();if(e){var t=this.sketchCoords_,i=e.getGeometry(),o=this.getMap().getView().getProjection();this.mode_===E.LINE_STRING?(t.pop(),this.geometryFunction_(t,i,o)):this.mode_===E.POLYGON&&(t[0].pop(),this.geometryFunction_(t,i,o),t=i.getCoordinates()),this.type_===s.default.MULTI_POINT?e.setGeometry(new u.default([t])):this.type_===s.default.MULTI_LINE_STRING?e.setGeometry(new d.default([t])):this.type_===s.default.MULTI_POLYGON&&e.setGeometry(new _.default([t])),this.dispatchEvent(new I(D.DRAWEND,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}},l.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),e},l.prototype.abortDrawing=function(){var e=this.abortDrawing_();e&&this.dispatchEvent(new I(D.DRAWABORT,e))},l.prototype.appendCoordinates=function(e){var t,i=this.mode_,o=!this.sketchFeature_;if(o&&this.startDrawing_(e[0]),i===E.LINE_STRING||i===E.CIRCLE)t=this.sketchCoords_;else{if(i!==E.POLYGON)return;t=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}o&&t.shift(),t.pop();for(var s=0;sd?i[1]:i[0]),a}}return null},n.prototype.handlePointerMove_=function(e){var t=e.pixel,n=e.map,r=this.snapToVertex_(t,n);r||(r=n.getCoordinateFromPixelInternal(t)),this.createOrUpdatePointerFeature_(r)},n.prototype.createOrUpdateExtentFeature_=function(e){var n=this.extentFeature_;return n?e?n.setGeometry((0,d.fromExtent)(e)):n.setGeometry(void 0):(n=e?new t.default((0,d.fromExtent)(e)):new t.default({}),this.extentFeature_=n,this.extentOverlay_.getSource().addFeature(n)),n},n.prototype.createOrUpdatePointerFeature_=function(e){var n=this.vertexFeature_;n?n.getGeometry().setCoordinates(e):(n=new t.default(new o.default(e)),this.vertexFeature_=n,this.vertexOverlay_.getSource().addFeature(n));return n},n.prototype.handleEvent=function(t){return!t.originalEvent||!this.condition_(t)||(t.type!=r.default.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(t),e.prototype.handleEvent.call(this,t),!1)},n.prototype.handleDownEvent=function(e){var t=e.pixel,n=e.map,r=this.getExtentInternal(),o=this.snapToVertex_(t,n),i=function(e){var t=null,n=null;return e[0]==r[0]?t=r[2]:e[0]==r[2]&&(t=r[0]),e[1]==r[1]?n=r[3]:e[1]==r[3]&&(n=r[1]),null!==t&&null!==n?[t,n]:null};if(o&&r){var a=o[0]==r[0]||o[0]==r[2]?o[0]:null,u=o[1]==r[1]||o[1]==r[3]?o[1]:null;null!==a&&null!==u?this.pointerHandler_=m(i(o)):null!==a?this.pointerHandler_=O(i([a,r[1]]),i([a,r[3]])):null!==u&&(this.pointerHandler_=O(i([r[0],u]),i([r[2],u])))}else o=n.getCoordinateFromPixelInternal(t),this.setExtent([o[0],o[1],o[0],o[1]]),this.pointerHandler_=m(o);return!0},n.prototype.handleDragEvent=function(e){if(this.pointerHandler_){var t=e.coordinate;this.setExtent(this.pointerHandler_(t)),this.createOrUpdatePointerFeature_(t)}},n.prototype.handleUpEvent=function(e){this.pointerHandler_=null;var t=this.getExtentInternal();return t&&0!==(0,s.getArea)(t)||this.setExtent(null),!1},n.prototype.setMap=function(t){this.extentOverlay_.setMap(t),this.vertexOverlay_.setMap(t),e.prototype.setMap.call(this,t)},n.prototype.getExtent=function(){return(0,x.toUserExtent)(this.getExtentInternal(),this.getMap().getView().getProjection())},n.prototype.getExtentInternal=function(){return this.extent_},n.prototype.setExtent=function(e){this.extent_=e||null,this.createOrUpdateExtentFeature_(e),this.dispatchEvent(new v(this.extent_))},n}(i.default);function E(){var e=(0,c.createEditingStyle)();return function(t,r){return e[n.default.POLYGON]}}function g(){var e=(0,c.createEditingStyle)();return function(t,r){return e[n.default.POINT]}}function m(e){return function(t){return(0,s.boundingExtent)([e,t])}}function O(e,t){return e[0]==t[0]?function(n){return(0,s.boundingExtent)([e,[n[0],t[1]]])}:e[1]==t[1]?function(n){return(0,s.boundingExtent)([e,[t[0],n[1]]])}:null}function P(e){return[[[e[0],e[1]],[e[0],e[3]]],[[e[0],e[3]],[e[2],e[3]]],[[e[2],e[3]],[e[2],e[1]]],[[e[2],e[1]],[e[0],e[1]]]]}var T=y;exports.default=T; +},{"../events/Event.js":"fKNg","../Feature.js":"mYW9","../geom/GeometryType.js":"lmV0","../MapBrowserEventType.js":"YhDM","../geom/Point.js":"gLcY","./Pointer.js":"dnA2","../layer/Vector.js":"dflx","../source/Vector.js":"ZS12","../events/condition.js":"YcID","../extent.js":"QDir","../coordinate.js":"nGsj","../style/Style.js":"he4w","../geom/Polygon.js":"Nwwk","../proj.js":"Diht"}],"qrxo":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.ModifyEvent=void 0;var e=C(require("../Collection.js")),t=C(require("../CollectionEventType.js")),r=C(require("../events/Event.js")),i=C(require("../events/EventType.js")),n=C(require("../Feature.js")),o=C(require("../geom/GeometryType.js")),a=C(require("../MapBrowserEventType.js")),s=C(require("../geom/Point.js")),u=C(require("./Pointer.js")),d=C(require("../structs/RBush.js")),g=C(require("../source/VectorEventType.js")),l=C(require("../layer/Vector.js")),h=C(require("../source/Vector.js")),f=require("../events/condition.js"),_=require("../extent.js"),c=require("../coordinate.js"),p=require("../style/Style.js"),m=require("../array.js"),v=require("../geom/Polygon.js"),y=require("../proj.js"),x=require("../util.js");function C(e){return e&&e.__esModule?e:{default:e}}var E=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),S=0,F=1,P=[0,0,0,0],T=[],M={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"},I=function(e){function t(t,r,i){var n=e.call(this,t)||this;return n.features=r,n.mapBrowserEvent=i,n}return E(t,e),t}(r.default);exports.ModifyEvent=I;var w=function(r){function u(i){var n,o=r.call(this,i)||this;if(o.boundHandleFeatureChange_=o.handleFeatureChange_.bind(o),o.condition_=i.condition?i.condition:f.primaryAction,o.defaultDeleteCondition_=function(e){return(0,f.altKeyOnly)(e)&&(0,f.singleClick)(e)},o.deleteCondition_=i.deleteCondition?i.deleteCondition:o.defaultDeleteCondition_,o.insertVertexCondition_=i.insertVertexCondition?i.insertVertexCondition:f.always,o.vertexFeature_=null,o.vertexSegments_=null,o.lastPixel_=[0,0],o.ignoreNextSingleClick_=!1,o.featuresBeingModified_=null,o.rBush_=new d.default,o.pixelTolerance_=void 0!==i.pixelTolerance?i.pixelTolerance:10,o.snappedToVertex_=!1,o.changingFeature_=!1,o.dragSegments_=[],o.overlay_=new l.default({source:new h.default({useSpatialIndex:!1,wrapX:!!i.wrapX}),style:i.style?i.style:U(),updateWhileAnimating:!0,updateWhileInteracting:!0}),o.SEGMENT_WRITERS_={Point:o.writePointGeometry_.bind(o),LineString:o.writeLineStringGeometry_.bind(o),LinearRing:o.writeLineStringGeometry_.bind(o),Polygon:o.writePolygonGeometry_.bind(o),MultiPoint:o.writeMultiPointGeometry_.bind(o),MultiLineString:o.writeMultiLineStringGeometry_.bind(o),MultiPolygon:o.writeMultiPolygonGeometry_.bind(o),Circle:o.writeCircleGeometry_.bind(o),GeometryCollection:o.writeGeometryCollectionGeometry_.bind(o)},o.source_=null,o.hitDetection_=null,i.features?n=i.features:i.source&&(o.source_=i.source,n=new e.default(o.source_.getFeatures()),o.source_.addEventListener(g.default.ADDFEATURE,o.handleSourceAdd_.bind(o)),o.source_.addEventListener(g.default.REMOVEFEATURE,o.handleSourceRemove_.bind(o))),!n)throw new Error("The modify interaction requires features, a source or a layer");return i.hitDetection&&(o.hitDetection_=i.hitDetection),o.features_=n,o.features_.forEach(o.addFeature_.bind(o)),o.features_.addEventListener(t.default.ADD,o.handleFeatureAdd_.bind(o)),o.features_.addEventListener(t.default.REMOVE,o.handleFeatureRemove_.bind(o)),o.lastPointerEvent_=null,o.delta_=[0,0],o}return E(u,r),u.prototype.addFeature_=function(e){var t=e.getGeometry();if(t){var r=this.SEGMENT_WRITERS_[t.getType()];r&&r(e,t)}var n=this.getMap();n&&n.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,n),e.addEventListener(i.default.CHANGE,this.boundHandleFeatureChange_)},u.prototype.willModifyFeatures_=function(t,r){if(!this.featuresBeingModified_){this.featuresBeingModified_=new e.default;for(var i=this.featuresBeingModified_.getArray(),n=0,o=r.length;n=0;--i){for(var n=r[i],o=this.dragSegments_.length-1;o>=0;--o)this.dragSegments_[o][0]===n&&this.dragSegments_.splice(o,1);t.remove(n)}},u.prototype.setActive=function(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),r.prototype.setActive.call(this,e)},u.prototype.setMap=function(e){this.overlay_.setMap(e),r.prototype.setMap.call(this,e)},u.prototype.getOverlay=function(){return this.overlay_},u.prototype.handleSourceAdd_=function(e){e.feature&&this.features_.push(e.feature)},u.prototype.handleSourceRemove_=function(e){e.feature&&this.features_.remove(e.feature)},u.prototype.handleFeatureAdd_=function(e){this.addFeature_(e.element)},u.prototype.handleFeatureChange_=function(e){if(!this.changingFeature_){var t=e.target;this.removeFeature_(t),this.addFeature_(t)}},u.prototype.handleFeatureRemove_=function(e){var t=e.element;this.removeFeature_(t)},u.prototype.writePointGeometry_=function(e,t){var r=t.getCoordinates(),i={feature:e,geometry:t,segment:[r,r]};this.rBush_.insert(t.getExtent(),i)},u.prototype.writeMultiPointGeometry_=function(e,t){for(var r=t.getCoordinates(),i=0,n=r.length;i=0;--y)this.insertVertex_(n[y],a)}return!!this.vertexFeature_},u.prototype.handleUpEvent=function(e){for(var t=this.dragSegments_.length-1;t>=0;--t){var r=this.dragSegments_[t][0],i=r.geometry;if(i.getType()===o.default.CIRCLE){var n=i.getCenter(),a=r.featureSegments[0],s=r.featureSegments[1];a.segment[0]=n,a.segment[1]=n,s.segment[0]=n,s.segment[1]=n,this.rBush_.update((0,_.createOrUpdateFromCoordinate)(n),a);var u=i,d=(0,y.getUserProjection)();if(d){var g=e.map.getView().getProjection();u=u.clone().transform(d,g),u=(0,v.fromCircle)(u).transform(g,d)}this.rBush_.update(u.getExtent(),s)}else this.rBush_.update((0,_.boundingExtent)(r.segment),r)}return this.featuresBeingModified_&&(this.dispatchEvent(new I(M.MODIFYEND,this.featuresBeingModified_,e)),this.featuresBeingModified_=null),!1},u.prototype.handlePointerMove_=function(e){this.lastPixel_=e.pixel,this.handlePointerAtPixel_(e.pixel,e.map,e.coordinate)},u.prototype.handlePointerAtPixel_=function(e,t,r){var i,n,a=this,s=r||t.getCoordinateFromPixel(e),u=t.getView().getProjection();if(this.hitDetection_){var d="object"==typeof this.hitDetection_?function(e){return e===a.hitDetection_}:void 0;t.forEachFeatureAtPixel(e,function(e,t,r){if((r=r||e.getGeometry()).getType()===o.default.POINT){n=r;var a=r.getCoordinates();i=[{feature:e,geometry:r,segment:[a,a]}]}return!0},{layerFilter:d})}if(!i){var g=(0,y.fromUserExtent)((0,_.createOrUpdateFromCoordinate)(s,P),u),l=t.getView().getResolution()*this.pixelTolerance_,h=(0,y.toUserExtent)((0,_.buffer)(g,l,P),u);i=this.rBush_.getInExtent(h)}if(i&&i.length>0){var f=i.sort(function(e,t){return L(s,e,u)-L(s,t,u)})[0],p=f.segment,m=O(s,f,u),v=t.getPixelFromCoordinate(m),C=(0,c.distance)(e,v);if(n||C<=this.pixelTolerance_){var E={};if(E[(0,x.getUid)(p)]=!0,this.delta_[0]=m[0]-s[0],this.delta_[1]=m[1]-s[1],f.geometry.getType()===o.default.CIRCLE&&f.index===F)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(m,[f.feature],[f.geometry]);else{var S=t.getPixelFromCoordinate(p[0]),T=t.getPixelFromCoordinate(p[1]),M=(0,c.squaredDistance)(v,S),I=(0,c.squaredDistance)(v,T);C=Math.sqrt(Math.min(M,I)),this.snappedToVertex_=C<=this.pixelTolerance_,this.snappedToVertex_&&(m=M>I?p[1]:p[0]),this.createOrUpdateVertexFeature_(m,[f.feature],[f.geometry]);var w={};w[(0,x.getUid)(f.geometry)]=!0;for(var G=1,U=i.length;G=0;--n)g=(r=h[n])[0],l=(0,x.getUid)(g.feature),g.depth&&(l+="-"+g.depth.join("-")),l in f||(f[l]={}),0===r[1]?(f[l].right=g,f[l].index=g.index):1==r[1]&&(f[l].left=g,f[l].index=g.index+1);for(l in f){switch(d=f[l].right,s=f[l].left,(u=(a=f[l].index)-1)<0&&(u=0),e=t=(i=(g=void 0!==s?s:d).geometry).getCoordinates(),c=!1,i.getType()){case o.default.MULTI_LINE_STRING:t[g.depth[0]].length>2&&(t[g.depth[0]].splice(a,1),c=!0);break;case o.default.LINE_STRING:t.length>2&&(t.splice(a,1),c=!0);break;case o.default.MULTI_POLYGON:e=e[g.depth[1]];case o.default.POLYGON:(e=e[g.depth[0]]).length>4&&(a==e.length-1&&(a=0),e.splice(a,1),c=!0,0===a&&(e.pop(),e.push(e[0]),u=e.length-1))}if(c){this.setGeometryCoordinates_(i,t);var p=[];if(void 0!==s&&(this.rBush_.remove(s),p.push(s.segment[0])),void 0!==d&&(this.rBush_.remove(d),p.push(d.segment[1])),void 0!==s&&void 0!==d){var m={depth:g.depth,feature:g.feature,geometry:g.geometry,index:u,segment:p};this.rBush_.insert((0,_.boundingExtent)(m.segment),m)}this.updateSegmentIndices_(i,a,g.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),h.length=0}}return c},u.prototype.setGeometryCoordinates_=function(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1},u.prototype.updateSegmentIndices_=function(e,t,r,i){this.rBush_.forEachInExtent(e.getExtent(),function(n){n.geometry===e&&(void 0===r||void 0===n.depth||(0,m.equals)(n.depth,r))&&n.index>t&&(n.index+=i)})},u}(u.default);function G(e,t){return e.index-t.index}function L(e,t,r){var i=t.geometry;if(i.getType()===o.default.CIRCLE){var n=i;if(t.index===F){var a=(0,y.getUserProjection)();a&&(n=n.clone().transform(a,r));var s=(0,c.squaredDistance)(n.getCenter(),(0,y.fromUserCoordinate)(e,r)),u=Math.sqrt(s)-n.getRadius();return u*u}}var d=(0,y.fromUserCoordinate)(e,r);return T[0]=(0,y.fromUserCoordinate)(t.segment[0],r),T[1]=(0,y.fromUserCoordinate)(t.segment[1],r),(0,c.squaredDistanceToSegment)(d,T)}function O(e,t,r){var i=t.geometry;if(i.getType()===o.default.CIRCLE&&t.index===F){var n=i,a=(0,y.getUserProjection)();return a&&(n=n.clone().transform(a,r)),(0,y.toUserCoordinate)(n.getClosestPoint((0,y.fromUserCoordinate)(e,r)),r)}var s=(0,y.fromUserCoordinate)(e,r);return T[0]=(0,y.fromUserCoordinate)(t.segment[0],r),T[1]=(0,y.fromUserCoordinate)(t.segment[1],r),(0,y.toUserCoordinate)((0,c.closestOnSegment)(s,T),r)}function U(){var e=(0,p.createEditingStyle)();return function(t,r){return e[o.default.POINT]}}var b=w;exports.default=b; +},{"../Collection.js":"FnDa","../CollectionEventType.js":"BTrx","../events/Event.js":"fKNg","../events/EventType.js":"C8cu","../Feature.js":"mYW9","../geom/GeometryType.js":"lmV0","../MapBrowserEventType.js":"YhDM","../geom/Point.js":"gLcY","./Pointer.js":"dnA2","../structs/RBush.js":"MiUH","../source/VectorEventType.js":"s8Fc","../layer/Vector.js":"dflx","../source/Vector.js":"ZS12","../events/condition.js":"YcID","../extent.js":"QDir","../coordinate.js":"nGsj","../style/Style.js":"he4w","../array.js":"luEr","../geom/Polygon.js":"Nwwk","../proj.js":"Diht","../util.js":"KniQ"}],"SMGe":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.SelectEvent=void 0;var e=c(require("../Collection.js")),t=c(require("../CollectionEventType.js")),r=c(require("../events/Event.js")),i=c(require("../geom/GeometryType.js")),n=c(require("./Interaction.js")),o=require("../functions.js"),s=require("../obj.js"),a=require("../style/Style.js"),u=require("../array.js"),l=require("../util.js"),d=require("../events/condition.js");function c(e){return e&&e.__esModule?e:{default:e}}var f=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),h={SELECT:"select"},y=function(e){function t(t,r,i,n){var o=e.call(this,t)||this;return o.selected=r,o.deselected=i,o.mapBrowserEvent=n,o}return f(t,e),t}(r.default);exports.SelectEvent=y;var _={},p=function(r){function i(t){var i,n=r.call(this)||this,s=t||{};if(n.boundAddFeature_=n.addFeature_.bind(n),n.boundRemoveFeature_=n.removeFeature_.bind(n),n.condition_=s.condition?s.condition:d.singleClick,n.addCondition_=s.addCondition?s.addCondition:d.never,n.removeCondition_=s.removeCondition?s.removeCondition:d.never,n.toggleCondition_=s.toggleCondition?s.toggleCondition:d.shiftKeyOnly,n.multi_=!!s.multi&&s.multi,n.filter_=s.filter?s.filter:o.TRUE,n.hitTolerance_=s.hitTolerance?s.hitTolerance:0,n.style_=void 0!==s.style?s.style:v(),n.features_=s.features||new e.default,s.layers)if("function"==typeof s.layers)i=s.layers;else{var a=s.layers;i=function(e){return(0,u.includes)(a,e)}}else i=o.TRUE;return n.layerFilter_=i,n.featureLayerAssociation_={},n}return f(i,r),i.prototype.addFeatureLayerAssociation_=function(e,t){this.featureLayerAssociation_[(0,l.getUid)(e)]=t},i.prototype.getFeatures=function(){return this.features_},i.prototype.getHitTolerance=function(){return this.hitTolerance_},i.prototype.getLayer=function(e){return this.featureLayerAssociation_[(0,l.getUid)(e)]},i.prototype.setHitTolerance=function(e){this.hitTolerance_=e},i.prototype.setMap=function(e){this.getMap()&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),r.prototype.setMap.call(this,e),e?(this.features_.addEventListener(t.default.ADD,this.boundAddFeature_),this.features_.addEventListener(t.default.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(t.default.ADD,this.boundAddFeature_),this.features_.removeEventListener(t.default.REMOVE,this.boundRemoveFeature_))},i.prototype.addFeature_=function(e){var t=e.element;this.style_&&this.applySelectedStyle_(t)},i.prototype.removeFeature_=function(e){var t=e.element;this.style_&&this.restorePreviousStyle_(t)},i.prototype.getStyle=function(){return this.style_},i.prototype.applySelectedStyle_=function(e){var t=(0,l.getUid)(e);t in _||(_[t]=e.getStyle()),e.setStyle(this.style_)},i.prototype.restorePreviousStyle_=function(e){for(var t=this.getMap().getInteractions().getArray(),r=t.length-1;r>=0;--r){var n=t[r];if(n!==this&&n instanceof i&&n.getStyle()&&-1!==n.getFeatures().getArray().lastIndexOf(e))return void e.setStyle(n.getStyle())}var o=(0,l.getUid)(e);e.setStyle(_[o]),delete _[o]},i.prototype.removeFeatureLayerAssociation_=function(e){delete this.featureLayerAssociation_[(0,l.getUid)(e)]},i.prototype.handleEvent=function(e){if(!this.condition_(e))return!0;var t=this.addCondition_(e),r=this.removeCondition_(e),i=this.toggleCondition_(e),n=!t&&!r&&!i,o=e.map,a=this.getFeatures(),l=[],d=[];if(n){(0,s.clear)(this.featureLayerAssociation_),o.forEachFeatureAtPixel(e.pixel,function(e,t){if(this.filter_(e,t))return d.push(e),this.addFeatureLayerAssociation_(e,t),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var c=a.getLength()-1;c>=0;--c){var f=a.item(c),_=d.indexOf(f);_>-1?d.splice(_,1):(a.remove(f),l.push(f))}0!==d.length&&a.extend(d)}else{o.forEachFeatureAtPixel(e.pixel,function(e,n){if(this.filter_(e,n))return!t&&!i||(0,u.includes)(a.getArray(),e)?(r||i)&&(0,u.includes)(a.getArray(),e)&&(l.push(e),this.removeFeatureLayerAssociation_(e)):(d.push(e),this.addFeatureLayerAssociation_(e,n)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var p=l.length-1;p>=0;--p)a.remove(l[p]);a.extend(d)}return(d.length>0||l.length>0)&&this.dispatchEvent(new y(h.SELECT,d,l,e)),!0},i}(n.default);function v(){var e=(0,a.createEditingStyle)();return(0,u.extend)(e[i.default.POLYGON],e[i.default.LINE_STRING]),(0,u.extend)(e[i.default.GEOMETRY_COLLECTION],e[i.default.LINE_STRING]),function(t){return t.getGeometry()?e[t.getGeometry().getType()]:null}}var g=p;exports.default=g; +},{"../Collection.js":"FnDa","../CollectionEventType.js":"BTrx","../events/Event.js":"fKNg","../geom/GeometryType.js":"lmV0","./Interaction.js":"jB2p","../functions.js":"RgA2","../obj.js":"mH6q","../style/Style.js":"he4w","../array.js":"luEr","../util.js":"KniQ","../events/condition.js":"YcID"}],"NnGW":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=p(require("../CollectionEventType.js")),t=p(require("../events/EventType.js")),r=p(require("../geom/GeometryType.js")),n=p(require("./Pointer.js")),i=p(require("../structs/RBush.js")),o=p(require("../source/VectorEventType.js")),s=require("../functions.js"),a=require("../extent.js"),u=require("../coordinate.js"),l=require("../geom/Polygon.js"),h=require("../proj.js"),d=require("../util.js"),f=require("../obj.js"),g=require("../events.js");function p(e){return e&&e.__esModule?e:{default:e}}var c=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function _(e){return e.feature?e.feature:e.element?e.element:void 0}var v=[],y=function(n){function p(e){var t=this,r=e||{},o=r;return o.handleDownEvent||(o.handleDownEvent=s.TRUE),o.stopDown||(o.stopDown=s.FALSE),(t=n.call(this,o)||this).source_=r.source?r.source:null,t.vertex_=void 0===r.vertex||r.vertex,t.edge_=void 0===r.edge||r.edge,t.features_=r.features?r.features:null,t.featuresListenerKeys_=[],t.featureChangeListenerKeys_={},t.indexedFeaturesExtents_={},t.pendingFeatures_={},t.pixelTolerance_=void 0!==r.pixelTolerance?r.pixelTolerance:10,t.rBush_=new i.default,t.SEGMENT_WRITERS_={Point:t.writePointGeometry_.bind(t),LineString:t.writeLineStringGeometry_.bind(t),LinearRing:t.writeLineStringGeometry_.bind(t),Polygon:t.writePolygonGeometry_.bind(t),MultiPoint:t.writeMultiPointGeometry_.bind(t),MultiLineString:t.writeMultiLineStringGeometry_.bind(t),MultiPolygon:t.writeMultiPolygonGeometry_.bind(t),GeometryCollection:t.writeGeometryCollectionGeometry_.bind(t),Circle:t.writeCircleGeometry_.bind(t)},t}return c(p,n),p.prototype.addFeature=function(e,r){var n=void 0===r||r,i=(0,d.getUid)(e),o=e.getGeometry();if(o){var s=this.SEGMENT_WRITERS_[o.getType()];s&&(this.indexedFeaturesExtents_[i]=o.getExtent((0,a.createEmpty)()),s(e,o))}n&&(this.featureChangeListenerKeys_[i]=(0,g.listen)(e,t.default.CHANGE,this.handleFeatureChange_,this))},p.prototype.forEachFeatureAdd_=function(e){this.addFeature(e)},p.prototype.forEachFeatureRemove_=function(e){this.removeFeature(e)},p.prototype.getFeatures_=function(){var e;return this.features_?e=this.features_:this.source_&&(e=this.source_.getFeatures()),e},p.prototype.handleEvent=function(e){var t=this.snapTo(e.pixel,e.coordinate,e.map);return t.snapped&&(e.coordinate=t.vertex.slice(0,2),e.pixel=t.vertexPixel),n.prototype.handleEvent.call(this,e)},p.prototype.handleFeatureAdd_=function(e){var t=_(e);this.addFeature(t)},p.prototype.handleFeatureRemove_=function(e){var t=_(e);this.removeFeature(t)},p.prototype.handleFeatureChange_=function(e){var t=e.target;if(this.handlingDownUpSequence){var r=(0,d.getUid)(t);r in this.pendingFeatures_||(this.pendingFeatures_[r]=t)}else this.updateFeature_(t)},p.prototype.handleUpEvent=function(e){var t=(0,f.getValues)(this.pendingFeatures_);return t.length&&(t.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},p.prototype.removeFeature=function(e,t){var r=void 0===t||t,n=(0,d.getUid)(e),i=this.indexedFeaturesExtents_[n];if(i){var o=this.rBush_,s=[];o.forEachInExtent(i,function(t){e===t.feature&&s.push(t)});for(var a=s.length-1;a>=0;--a)o.remove(s[a])}r&&((0,g.unlistenByKey)(this.featureChangeListenerKeys_[n]),delete this.featureChangeListenerKeys_[n])},p.prototype.setMap=function(t){var r=this.getMap(),i=this.featuresListenerKeys_,s=this.getFeatures_();r&&(i.forEach(g.unlistenByKey),i.length=0,s.forEach(this.forEachFeatureRemove_.bind(this))),n.prototype.setMap.call(this,t),t&&(this.features_?i.push((0,g.listen)(this.features_,e.default.ADD,this.handleFeatureAdd_,this),(0,g.listen)(this.features_,e.default.REMOVE,this.handleFeatureRemove_,this)):this.source_&&i.push((0,g.listen)(this.source_,o.default.ADDFEATURE,this.handleFeatureAdd_,this),(0,g.listen)(this.source_,o.default.REMOVEFEATURE,this.handleFeatureRemove_,this)),s.forEach(this.forEachFeatureAdd_.bind(this)))},p.prototype.snapTo=function(e,t,n){var i=n.getCoordinateFromPixel([e[0]-this.pixelTolerance_,e[1]+this.pixelTolerance_]),o=n.getCoordinateFromPixel([e[0]+this.pixelTolerance_,e[1]-this.pixelTolerance_]),s=(0,a.boundingExtent)([i,o]),l=this.rBush_.getInExtent(s);this.vertex_&&!this.edge_&&(l=l.filter(function(e){return e.feature.getGeometry().getType()!==r.default.CIRCLE}));var d=!1,f=null,g=null;if(0===l.length)return{snapped:d,vertex:f,vertexPixel:g};for(var p,c=n.getView().getProjection(),_=(0,h.fromUserCoordinate)(t,c),y=1/0,m=0;mT?F[1]:F[0],g=n.getPixelFromCoordinate(f))}else if(this.edge_){var w=p.feature.getGeometry().getType()===r.default.CIRCLE;if(w){var M=p.feature.getGeometry(),j=(0,h.getUserProjection)();j&&(M=M.clone().transform(j,c)),f=(0,h.toUserCoordinate)((0,u.closestOnCircle)(_,M),c)}else v[0]=(0,h.fromUserCoordinate)(F[0],c),v[1]=(0,h.fromUserCoordinate)(F[1],c),f=(0,h.toUserCoordinate)((0,u.closestOnSegment)(_,v),c);if(g=n.getPixelFromCoordinate(f),(0,u.distance)(e,g)<=this.pixelTolerance_&&(d=!0,this.vertex_&&!w)){C=n.getPixelFromCoordinate(F[0]),P=n.getPixelFromCoordinate(F[1]),G=(0,u.squaredDistance)(g,C),T=(0,u.squaredDistance)(g,P);Math.sqrt(Math.min(G,T))<=this.pixelTolerance_&&(f=G>T?F[1]:F[0],g=n.getPixelFromCoordinate(f))}}return d&&(g=[Math.round(g[0]),Math.round(g[1])]),{snapped:d,vertex:f,vertexPixel:g}},p.prototype.updateFeature_=function(e){this.removeFeature(e,!1),this.addFeature(e,!1)},p.prototype.writeCircleGeometry_=function(e,t){var r=this.getMap().getView().getProjection(),n=t,i=(0,h.getUserProjection)();i&&(n=n.clone().transform(i,r));var o=(0,l.fromCircle)(n);i&&o.transform(r,i);for(var s=o.getCoordinates()[0],u=0,d=s.length-1;u0&&this.getCount()>this.highWaterMark},t.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},t.prototype.containsKey=function(e){return this.entries_.hasOwnProperty(e)},t.prototype.forEach=function(e){for(var t=this.oldest_;t;)e(t.value_,t.key_,this),t=t.newer},t.prototype.get=function(t,s){var r=this.entries_[t];return(0,e.assert)(void 0!==r,15),r===this.newest_?r.value_:(r===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(r.newer.older=r.older,r.older.newer=r.newer),r.newer=null,r.older=this.newest_,this.newest_.newer=r,this.newest_=r,r.value_)},t.prototype.remove=function(t){var s=this.entries_[t];return(0,e.assert)(void 0!==s,15),s===this.newest_?(this.newest_=s.older,this.newest_&&(this.newest_.newer=null)):s===this.oldest_?(this.oldest_=s.newer,this.oldest_&&(this.oldest_.older=null)):(s.newer.older=s.older,s.older.newer=s.newer),delete this.entries_[t],--this.count_,s.value_},t.prototype.getCount=function(){return this.count_},t.prototype.getKeys=function(){var e,t=new Array(this.count_),s=0;for(e=this.newest_;e;e=e.older)t[s++]=e.key_;return t},t.prototype.getValues=function(){var e,t=new Array(this.count_),s=0;for(e=this.newest_;e;e=e.older)t[s++]=e.value_;return t},t.prototype.peekLast=function(){return this.oldest_.value_},t.prototype.peekLastKey=function(){return this.oldest_.key_},t.prototype.peekFirstKey=function(){return this.newest_.key_},t.prototype.pop=function(){var e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_},t.prototype.replace=function(e,t){this.get(e),this.entries_[e].value_=t},t.prototype.set=function(t,s){(0,e.assert)(!(t in this.entries_),16);var r={key_:t,newer:null,older:this.newest_,value_:s};this.newest_?this.newest_.newer=r:this.oldest_=r,this.newest_=r,this.entries_[t]=r,++this.count_},t.prototype.setSize=function(e){this.highWaterMark=e},t}(),s=t;exports.default=s; +},{"../asserts.js":"fLG6"}],"faTr":[function(require,module,exports) { +"use strict";function e(e,t,r,n){return void 0!==n?(n[0]=e,n[1]=t,n[2]=r,n):[e,t,r]}function t(e,t,r){return e+"/"+t+"/"+r}function r(e){return t(e[0],e[1],e[2])}function n(e){return e.split("/").map(Number)}function o(e){return(e[1]<r||r>t.getMaxZoom())return!1;var u=t.getFullTileRange(r);return!u||u.containsXY(n,o)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.createOrUpdate=e,exports.getKeyZXY=t,exports.getKey=r,exports.fromKey=n,exports.hash=o,exports.withinExtentAndZ=u; +},{}],"YFDe":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=r(require("./structs/LRUCache.js")),e=require("./tilecoord.js");function r(t){return t&&t.__esModule?t:{default:t}}var o=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),n=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return o(r,t),r.prototype.expireCache=function(t){for(;this.canExpireCache();){if(this.peekLast().getKey()in t)break;this.pop().release()}},r.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=this.peekFirstKey(),r=(0,e.fromKey)(t)[0];this.forEach(function(t){t.tileCoord[0]!==r&&(this.remove((0,e.getKey)(t.tileCoord)),t.release())}.bind(this))}},r}(t.default),i=n;exports.default=i; +},{"./structs/LRUCache.js":"oMDz","./tilecoord.js":"faTr"}],"snev":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createOrUpdate=i,exports.default=void 0;var t=function(){function t(t,i,n,m){this.minX=t,this.maxX=i,this.minY=n,this.maxY=m}return t.prototype.contains=function(t){return this.containsXY(t[1],t[2])},t.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},t.prototype.containsXY=function(t,i){return this.minX<=t&&t<=this.maxX&&this.minY<=i&&i<=this.maxY},t.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},t.prototype.extend=function(t){t.minXthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)},t.prototype.getHeight=function(){return this.maxY-this.minY+1},t.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},t.prototype.getWidth=function(){return this.maxX-this.minX+1},t.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},t}();function i(i,n,m,e,s){return void 0!==s?(s.minX=i,s.maxX=n,s.minY=m,s.maxY=e,s):new t(i,n,m,e)}var n=t;exports.default=n; +},{}],"C8Du":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=o(require("./Tile.js")),t=require("./dom.js"),r=require("./util.js");function o(e){return e&&e.__esModule?e:{default:e}}var n=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),i=[],u=function(e){function o(t,r,o,n){var i=e.call(this,t,r,{transition:0})||this;return i.context_={},i.executorGroups={},i.declutterExecutorGroups={},i.loadingSourceTiles=0,i.errorSourceTileKeys={},i.hitDetectionImageData={},i.replayState_={},i.sourceTiles=null,i.wantedResolution,i.getSourceTiles=n.bind(void 0,i),i.sourceZ=-1,i.hifi=!1,i.wrappedTileCoord=o,i}return n(o,e),o.prototype.getContext=function(e){var o=(0,r.getUid)(e);return o in this.context_||(this.context_[o]=(0,t.createCanvasContext2D)(1,1,i)),this.context_[o]},o.prototype.hasContext=function(e){return(0,r.getUid)(e)in this.context_},o.prototype.getImage=function(e){return this.hasContext(e)?this.getContext(e).canvas:null},o.prototype.getReplayState=function(e){var t=(0,r.getUid)(e);return t in this.replayState_||(this.replayState_[t]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedZ:-1,renderedTileZ:-1}),this.replayState_[t]},o.prototype.load=function(){this.getSourceTiles()},o.prototype.release=function(){for(var t in this.context_)i.push(this.context_[t].canvas),delete this.context_[t];e.prototype.release.call(this)},o}(e.default),s=u;exports.default=s; +},{"./Tile.js":"IWZI","./dom.js":"Xno5","./util.js":"KniQ"}],"yj80":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=o(require("./Tile.js")),e=o(require("./TileState.js"));function o(t){return t&&t.__esModule?t:{default:t}}var r=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),n=function(t){function o(e,o,r,n,u,i){var s=t.call(this,e,o,i)||this;return s.extent=null,s.format_=n,s.features_=null,s.loader_,s.projection=null,s.resolution,s.tileLoadFunction_=u,s.url_=r,s.key=r,s}return r(o,t),o.prototype.getFormat=function(){return this.format_},o.prototype.getFeatures=function(){return this.features_},o.prototype.load=function(){this.state==e.default.IDLE&&(this.setState(e.default.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))},o.prototype.onLoad=function(t,e){this.setFeatures(t)},o.prototype.onError=function(){this.setState(e.default.ERROR)},o.prototype.setFeatures=function(t){this.features_=t,this.setState(e.default.LOADED)},o.prototype.setLoader=function(t){this.loader_=t},o}(t.default),u=n;exports.default=u; +},{"./Tile.js":"IWZI","./TileState.js":"u3kG"}],"DRei":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"AssertionError",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(exports,"Collection",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"Disposable",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(exports,"Feature",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(exports,"Geolocation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(exports,"Graticule",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"Image",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(exports,"ImageBase",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(exports,"ImageCanvas",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(exports,"ImageTile",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(exports,"Kinetic",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(exports,"Map",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(exports,"MapBrowserEvent",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(exports,"MapBrowserEventHandler",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(exports,"MapEvent",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(exports,"Object",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(exports,"Observable",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(exports,"Overlay",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(exports,"PluggableMap",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(exports,"Tile",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(exports,"TileCache",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(exports,"TileQueue",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(exports,"TileRange",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(exports,"VectorRenderTile",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(exports,"VectorTile",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(exports,"View",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(exports,"getUid",{enumerable:!0,get:function(){return E.getUid}}),Object.defineProperty(exports,"VERSION",{enumerable:!0,get:function(){return E.VERSION}});var e=I(require("./AssertionError.js")),r=I(require("./Collection.js")),t=I(require("./Disposable.js")),n=I(require("./Feature.js")),u=I(require("./Geolocation.js")),i=I(require("./layer/Graticule.js")),o=I(require("./Image.js")),a=I(require("./ImageBase.js")),l=I(require("./ImageCanvas.js")),f=I(require("./ImageTile.js")),s=I(require("./Kinetic.js")),c=I(require("./Map.js")),p=I(require("./MapBrowserEvent.js")),b=I(require("./MapBrowserEventHandler.js")),d=I(require("./MapEvent.js")),j=I(require("./Object.js")),g=I(require("./Observable.js")),O=I(require("./Overlay.js")),m=I(require("./PluggableMap.js")),y=I(require("./Tile.js")),P=I(require("./TileCache.js")),x=I(require("./TileQueue.js")),q=I(require("./TileRange.js")),v=I(require("./VectorRenderTile.js")),T=I(require("./VectorTile.js")),M=I(require("./View.js")),E=require("./util.js");function I(e){return e&&e.__esModule?e:{default:e}} +},{"./AssertionError.js":"ygGQ","./Collection.js":"FnDa","./Disposable.js":"DDda","./Feature.js":"mYW9","./Geolocation.js":"X4ix","./layer/Graticule.js":"wXs0","./Image.js":"DHWK","./ImageBase.js":"Ojbp","./ImageCanvas.js":"K7j2","./ImageTile.js":"TOsW","./Kinetic.js":"gAnK","./Map.js":"kYy5","./MapBrowserEvent.js":"HMLS","./MapBrowserEventHandler.js":"ohHk","./MapEvent.js":"vFcA","./Object.js":"PhPh","./Observable.js":"IdSm","./Overlay.js":"qWcX","./PluggableMap.js":"kRwz","./Tile.js":"IWZI","./TileCache.js":"YFDe","./TileQueue.js":"tHOl","./TileRange.js":"snev","./VectorRenderTile.js":"C8Du","./VectorTile.js":"yj80","./View.js":"hNqE","./util.js":"KniQ"}],"QqRL":[function(require,module,exports) { +var define; +var global = arguments[3]; +var e,t=arguments[3];!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("ol/control/Control"),require("ol/Observable"),require("ol/layer/Group")):"function"==typeof e&&e.amd?e(["ol/control/Control","ol/Observable","ol/layer/Group"],n):t.LayerSwitcher=n(t.ol.control.Control,t.ol.Observable,t.ol.layer.Group)}(this,function(e,t,n){"use strict";e="default"in e?e.default:e,n="default"in n?n.default:n;var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},r=function(){function e(e,t){for(var n=0;nt.getMaxResolution()||g=0?e:"children"}}]),s}();return window.ol&&window.ol.control&&(window.ol.control.LayerSwitcher=l),l}); +},{"ol/control/Control":"xxE2","ol/Observable":"IdSm","ol/layer/Group":"q0nK"}],"HvLT":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=o(require("../events/EventType.js")),t=o(require("./Geometry.js")),r=o(require("./GeometryType.js")),i=require("../extent.js"),n=require("../events.js");function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),a=function(t){function o(e){var r=t.call(this)||this;return r.geometries_=e||null,r.changeEventsKeys_=[],r.listenGeometriesChange_(),r}return s(o,t),o.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(n.unlistenByKey),this.changeEventsKeys_.length=0},o.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,r=this.geometries_.length;tthis.sourceWorldWidth_/2){var i=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];i[0][0]-F>this.sourceWorldWidth_/2&&(i[0][0]-=this.sourceWorldWidth_),i[1][0]-F>this.sourceWorldWidth_/2&&(i[1][0]-=this.sourceWorldWidth_),i[2][0]-F>this.sourceWorldWidth_/2&&(i[2][0]-=this.sourceWorldWidth_);var r=Math.min(i[0][0],i[1][0],i[2][0]);Math.max(i[0][0],i[1][0],i[2][0])-r.5&&l<1,W=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var v=(0,t.boundingExtent)([i,e,o,n]);W=(0,t.getWidth)(v)/this.targetWorldWidth_>s||W}!f&&this.sourceProj_.isGlobal()&&l&&(W=l>s||W)}if(!(!W&&this.maxSourceExtent_&&isFinite(_[0])&&isFinite(_[1])&&isFinite(_[2])&&isFinite(_[3]))||(0,t.intersects)(_,this.maxSourceExtent_)){var m=0;if(!(W||isFinite(a[0])&&isFinite(a[1])&&isFinite(h[0])&&isFinite(h[1])&&isFinite(u[0])&&isFinite(u[1])&&isFinite(d[0])&&isFinite(d[1])))if(c>0)W=!0;else if(1!=(m=(isFinite(a[0])&&isFinite(a[1])?0:8)+(isFinite(h[0])&&isFinite(h[1])?0:4)+(isFinite(u[0])&&isFinite(u[1])?0:2)+(isFinite(d[0])&&isFinite(d[1])?0:1))&&2!=m&&4!=m&&8!=m)return;if(c>0){if(!W){var x=[(i[0]+o[0])/2,(i[1]+o[1])/2],p=this.transformInv_(x),F=void 0;if(f)F=((0,r.modulo)(a[0],g)+(0,r.modulo)(u[0],g))/2-(0,r.modulo)(p[0],g);else F=(a[0]+u[0])/2-p[0];var j=(a[1]+u[1])/2-p[1];W=F*F+j*j>this.errorThresholdSquared_}if(W){if(Math.abs(i[0]-o[0])<=Math.abs(i[1]-o[1])){var E=[(e[0]+o[0])/2,(e[1]+o[1])/2],I=this.transformInv_(E),P=[(n[0]+i[0])/2,(n[1]+i[1])/2],S=this.transformInv_(P);this.addQuad_(i,e,E,P,a,h,I,S,c-1),this.addQuad_(P,E,o,n,S,I,u,d,c-1)}else{var T=[(i[0]+e[0])/2,(i[1]+e[1])/2],M=this.transformInv_(T),b=[(o[0]+n[0])/2,(o[1]+n[1])/2],X=this.transformInv_(b);this.addQuad_(i,T,b,n,a,M,X,d,c-1),this.addQuad_(T,e,o,b,M,h,u,X,c-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&m)&&this.addTriangle_(i,o,n,a,u,d),0==(14&m)&&this.addTriangle_(i,o,e,a,u,h),m&&(0==(13&m)&&this.addTriangle_(e,n,i,h,d,a),0==(7&m)&&this.addTriangle_(e,n,o,h,d,u))}},o.prototype.calculateSourceExtent=function(){var i=(0,t.createEmpty)();return this.triangles_.forEach(function(r,e,s){var o=r.source;(0,t.extendCoordinate)(i,o[0]),(0,t.extendCoordinate)(i,o[1]),(0,t.extendCoordinate)(i,o[2])}),i},o.prototype.getTriangles=function(){return this.triangles_},o}(),n=o;exports.default=n; +},{"../extent.js":"QDir","../proj.js":"Diht","../math.js":"B96G"}],"a8mu":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IMAGE_SMOOTHING_DISABLED=exports.DEFAULT_WMS_VERSION=void 0;var e="1.3.0";exports.DEFAULT_WMS_VERSION=e;var o={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1};exports.IMAGE_SMOOTHING_DISABLED=o; +},{}],"U255":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.calculateSourceResolution=u,exports.calculateSourceExtentResolution=g,exports.render=v;var e,t=require("./source/common.js"),r=require("./obj.js"),a=require("./extent.js"),n=require("./dom.js"),o=require("./proj.js"),i=require("./math.js");function s(e,t,r,a,n){e.beginPath(),e.moveTo(0,0),e.lineTo(t,r),e.lineTo(a,n),e.closePath(),e.save(),e.clip(),e.fillRect(0,0,Math.max(t,a)+1,Math.max(r,n)),e.restore()}function l(e,t){return Math.abs(e[4*t]-210)>2||Math.abs(e[4*t+3]-191.25)>2}function c(){if(void 0===e){var t=document.createElement("canvas").getContext("2d");t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",s(t,4,5,4,0),s(t,4,5,0,5);var r=t.getImageData(0,0,3,3).data;e=l(r,0)||l(r,4)||l(r,8)}return e}function u(e,t,r,n){var i=(0,o.transform)(r,t,e),s=(0,o.getPointResolution)(t,n,r),l=t.getMetersPerUnit();void 0!==l&&(s*=l);var c=e.getMetersPerUnit();void 0!==c&&(s/=c);var u=e.getExtent();if(!u||(0,a.containsCoordinate)(u,i)){var g=(0,o.getPointResolution)(e,s,i)/s;isFinite(g)&&g>0&&(s/=g)}return s}function g(e,t,r,n){var o=(0,a.getCenter)(r),i=u(e,t,o,n);return(!isFinite(i)||i<=0)&&(0,a.forEachCorner)(r,function(r){return i=u(e,t,r,n),isFinite(i)&&i>0}),i}function v(e,o,s,l,u,g,v,h,f,m,d,x){var T=(0,n.createCanvasContext2D)(Math.round(s*e),Math.round(s*o));if((0,r.assign)(T,x),0===f.length)return T.canvas;function p(e){return Math.round(e*s)/s}T.scale(s,s),T.globalCompositeOperation="lighter";var M=(0,a.createEmpty)();f.forEach(function(e,t,r){(0,a.extend)(M,e.extent)});var b=(0,a.getWidth)(M),C=(0,a.getHeight)(M),E=(0,n.createCanvasContext2D)(Math.round(s*b/l),Math.round(s*C/l));(0,r.assign)(E,x);var P=s/l;f.forEach(function(e,t,r){var n=e.extent[0]-M[0],o=-(e.extent[3]-M[3]),i=(0,a.getWidth)(e.extent),s=(0,a.getHeight)(e.extent);e.image.width>0&&e.image.height>0&&E.drawImage(e.image,m,m,e.image.width-2*m,e.image.height-2*m,n*P,o*P,i*P,s*P)});var j=(0,a.getTopLeft)(v);return h.getTriangles().forEach(function(e,r,a){var n=e.source,o=e.target,u=n[0][0],v=n[0][1],h=n[1][0],f=n[1][1],m=n[2][0],d=n[2][1],b=p((o[0][0]-j[0])/g),C=p(-(o[0][1]-j[1])/g),P=p((o[1][0]-j[0])/g),S=p(-(o[1][1]-j[1])/g),q=p((o[2][0]-j[0])/g),I=p(-(o[2][1]-j[1])/g),O=u,y=v;u=0,v=0;var D=[[h-=O,f-=y,0,0,P-b],[m-=O,d-=y,0,0,q-b],[0,0,h,f,S-C],[0,0,m,d,I-C]],R=(0,i.solveLinearSystem)(D);if(R){if(T.save(),T.beginPath(),c()||x===t.IMAGE_SMOOTHING_DISABLED){T.moveTo(P,S);for(var w=b-P,_=C-S,k=0;k<4;k++)T.lineTo(P+p((k+1)*w/4),S+p(k*_/3)),3!=k&&T.lineTo(P+p((k+1)*w/4),S+p((k+1)*_/3));T.lineTo(q,I)}else T.moveTo(P,S),T.lineTo(b,C),T.lineTo(q,I);T.clip(),T.transform(R[0],R[2],R[1],R[3],b,C),T.translate(M[0]-O,M[3]-y),T.scale(l/s,-l/s),T.drawImage(E.canvas,0,0),T.restore()}}),d&&(T.save(),T.globalCompositeOperation="source-over",T.strokeStyle="black",T.lineWidth=1,h.getTriangles().forEach(function(e,t,r){var a=e.target,n=(a[0][0]-j[0])/g,o=-(a[0][1]-j[1])/g,i=(a[1][0]-j[0])/g,s=-(a[1][1]-j[1])/g,l=(a[2][0]-j[0])/g,c=-(a[2][1]-j[1])/g;T.beginPath(),T.moveTo(i,s),T.lineTo(n,o),T.lineTo(l,c),T.closePath(),T.stroke()}),T.restore()),T.canvas} +},{"./source/common.js":"a8mu","./obj.js":"mH6q","./extent.js":"QDir","./dom.js":"Xno5","./proj.js":"Diht","./math.js":"B96G"}],"WlOd":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("./common.js"),t=l(require("../events/EventType.js")),r=l(require("../Tile.js")),i=l(require("../TileState.js")),s=l(require("./Triangulation.js")),o=require("../reproj.js"),n=require("../math.js"),a=require("../extent.js"),u=require("../events.js");function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),d=function(r){function l(t,u,l,c,d,_,f,h,p,g,T,E){var v=r.call(this,d,i.default.IDLE)||this;v.renderEdges_=void 0!==T&&T,v.contextOptions_=E,v.pixelRatio_=f,v.gutter_=h,v.canvas_=null,v.sourceTileGrid_=u,v.targetTileGrid_=c,v.wrappedTileCoord_=_||d,v.sourceTiles_=[],v.sourcesListenerKeys_=null,v.sourceZ_=0;var y=c.getTileCoordExtent(v.wrappedTileCoord_),x=v.targetTileGrid_.getExtent(),R=v.sourceTileGrid_.getExtent(),j=x?(0,a.getIntersection)(y,x):y;if(0===(0,a.getArea)(j))return v.state=i.default.EMPTY,v;var O=t.getExtent();O&&(R=R?(0,a.getIntersection)(R,O):O);var m=c.getResolution(v.wrappedTileCoord_[0]),L=(0,o.calculateSourceExtentResolution)(t,l,j,m);if(!isFinite(L)||L<=0)return v.state=i.default.EMPTY,v;var D=void 0!==g?g:e.ERROR_THRESHOLD;if(v.triangulation_=new s.default(t,l,j,R,L*D,m),0===v.triangulation_.getTriangles().length)return v.state=i.default.EMPTY,v;v.sourceZ_=u.getZForResolution(L);var G=v.triangulation_.calculateSourceExtent();if(R&&(t.canWrapX()?(G[1]=(0,n.clamp)(G[1],R[1],R[3]),G[3]=(0,n.clamp)(G[3],R[1],R[3])):G=(0,a.getIntersection)(G,R)),(0,a.getArea)(G)){for(var I=u.getTileRangeForExtentAndZ(G,v.sourceZ_),S=I.minX;S<=I.maxX;S++)for(var A=I.minY;A<=I.maxY;A++){var C=p(v.sourceZ_,S,A,f);C&&v.sourceTiles_.push(C)}0===v.sourceTiles_.length&&(v.state=i.default.EMPTY)}else v.state=i.default.EMPTY;return v}return c(l,r),l.prototype.getImage=function(){return this.canvas_},l.prototype.reproject_=function(){var e=[];if(this.sourceTiles_.forEach(function(t,r,s){t&&t.getState()==i.default.LOADED&&e.push({extent:this.sourceTileGrid_.getTileCoordExtent(t.tileCoord),image:t.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===e.length)this.state=i.default.ERROR;else{var t=this.wrappedTileCoord_[0],r=this.targetTileGrid_.getTileSize(t),s="number"==typeof r?r:r[0],n="number"==typeof r?r:r[1],a=this.targetTileGrid_.getResolution(t),u=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=(0,o.render)(s,n,this.pixelRatio_,u,this.sourceTileGrid_.getExtent(),a,l,this.triangulation_,e,this.gutter_,this.renderEdges_,this.contextOptions_),this.state=i.default.LOADED}this.changed()},l.prototype.load=function(){if(this.state==i.default.IDLE){this.state=i.default.LOADING,this.changed();var e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(r,s,o){var n=r.getState();if(n==i.default.IDLE||n==i.default.LOADING){e++;var a=(0,u.listen)(r,t.default.CHANGE,function(t){var s=r.getState();s!=i.default.LOADED&&s!=i.default.ERROR&&s!=i.default.EMPTY||((0,u.unlistenByKey)(a),0===--e&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(a)}}.bind(this)),this.sourceTiles_.forEach(function(e,t,r){e.getState()==i.default.IDLE&&e.load()}),0===e&&setTimeout(this.reproject_.bind(this),0)}},l.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(u.unlistenByKey),this.sourcesListenerKeys_=null},l}(r.default),_=d;exports.default=_; +},{"./common.js":"fF5X","../events/EventType.js":"C8cu","../Tile.js":"IWZI","../TileState.js":"u3kG","./Triangulation.js":"BiRY","../reproj.js":"U255","../math.js":"B96G","../extent.js":"QDir","../events.js":"UqnM"}],"KXhD":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"};exports.default=e; +},{}],"dpZ6":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=h(require("../TileRange.js")),e=require("./common.js"),i=require("../asserts.js"),o=require("../math.js"),r=require("../extent.js"),n=require("../tilecoord.js"),s=require("../array.js"),l=require("../size.js");function a(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}function h(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=o?Object.getOwnPropertyDescriptor(t,r):null;n&&(n.get||n.set)?Object.defineProperty(i,r,n):i[r]=t[r]}return i.default=t,e&&e.set(t,i),i}var u=[0,0,0],g=function(){function a(o){var n;if(this.minZoom=void 0!==o.minZoom?o.minZoom:0,this.resolutions_=o.resolutions,(0,i.assert)((0,s.isSorted)(this.resolutions_,function(t,e){return e-t},!0),17),!o.origins)for(var l=0,a=this.resolutions_.length-1;l=this.minZoom;){if(2===this.zoomFactor_?(s=Math.floor(s/2),l=Math.floor(l/2),n=(0,t.createOrUpdate)(s,s,l,l,o)):n=this.getTileRangeForExtentAndZ(a,h,o),i(h,n))return!0;--h}return!1},a.prototype.getExtent=function(){return this.extent_},a.prototype.getMaxZoom=function(){return this.maxZoom},a.prototype.getMinZoom=function(){return this.minZoom},a.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},a.prototype.getResolution=function(t){return this.resolutions_[t]},a.prototype.getResolutions=function(){return this.resolutions_},a.prototype.getTileCoordChildTileRange=function(e,i,o){if(e[0]0?i:Math.max(l/d[0],s/d[1]),f=a+1,x=new Array(f),g=0;gi.highWaterMark&&(i.highWaterMark=t)},e.prototype.useTile=function(t,e,i,r){},e}(e.default),f=function(t){function e(e,i){var r=t.call(this,e)||this;return r.tile=i,r}return p(e,t),e}(t.default);exports.TileSourceEvent=f;var y=h;exports.default=y; +},{"../events/Event.js":"fKNg","./Source.js":"H38a","../TileCache.js":"YFDe","../TileState.js":"u3kG","../util.js":"KniQ","../asserts.js":"fLG6","../proj.js":"Diht","../tilecoord.js":"faTr","../tilegrid.js":"ExRx","../size.js":"TAHd"}],"p1vZ":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createFromTemplate=n,exports.createFromTemplates=o,exports.createFromTileUrlFunctions=a,exports.nullTileUrlFunction=i,exports.expandUrl=u;var r=require("./asserts.js"),e=require("./math.js"),t=require("./tilecoord.js");function n(e,t){var n=/\{z\}/g,o=/\{x\}/g,a=/\{y\}/g,i=/\{-y\}/g;return function(u,c,l){return u?e.replace(n,u[0].toString()).replace(o,u[1].toString()).replace(a,u[2].toString()).replace(i,function(){var e=u[0],n=t.getFullTileRange(e);return(0,r.assert)(n,55),(n.getHeight()-u[2]-1).toString()}):void 0}}function o(r,e){for(var t=r.length,o=new Array(t),i=0;i>=1;return o.join("")}var d='Terms of Use',p=function(t){function u(r){var i=this,o=void 0!==r.hidpi&&r.hidpi;(i=t.call(this,{cacheSize:r.cacheSize,crossOrigin:"anonymous",imageSmoothing:r.imageSmoothing,opaque:!0,projection:(0,n.get)("EPSG:3857"),reprojectionErrorThreshold:r.reprojectionErrorThreshold,state:e.default.LOADING,tileLoadFunction:r.tileLoadFunction,tilePixelRatio:o?2:1,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition})||this).hidpi_=o,i.culture_=void 0!==r.culture?r.culture:"en-us",i.maxZoom_=void 0!==r.maxZoom?r.maxZoom:-1,i.apiKey_=r.key,i.imagerySet_=r.imagerySet;var a="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+i.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+i.apiKey_+"&c="+i.culture_;return(0,s.jsonp)(a,i.handleImageryMetadataResponse.bind(i),void 0,"jsonp"),i}return c(u,t),u.prototype.getApiKey=function(){return this.apiKey_},u.prototype.getImagerySet=function(){return this.imagerySet_},u.prototype.handleImageryMetadataResponse=function(t){if(200==t.statusCode&&"OK"==t.statusDescription&&"ValidCredentials"==t.authenticationResultCode&&1==t.resourceSets.length&&1==t.resourceSets[0].resources.length){var s=t.resourceSets[0].resources[0],u=-1==this.maxZoom_?s.zoomMax:this.maxZoom_,c=this.getProjection(),p=(0,a.extentFromProjection)(c),m=this.hidpi_?2:1,h=s.imageWidth==s.imageHeight?s.imageWidth/m:[s.imageWidth/m,s.imageHeight/m],g=(0,a.createXYZ)({extent:p,minZoom:s.zoomMin,maxZoom:u,tileSize:h});this.tileGrid=g;var f=this.culture_,v=this.hidpi_;if(this.tileUrlFunction=(0,i.createFromTileUrlFunctions)(s.imageUrlSubdomains.map(function(e){var t=[0,0,0],r=s.imageUrl.replace("{subdomain}",e).replace("{culture}",f);return function(e,i,a){if(e){(0,o.createOrUpdate)(e[0],e[1],e[2],t);var n=r;return v&&(n+="&dpi=d1&device=mobile"),n.replace("{quadkey}",l(t))}}})),s.imageryProviders){var y=(0,n.getTransformFromProjections)((0,n.get)("EPSG:4326"),this.getProjection());this.setAttributions(function(e){var t=[],i=e.viewState,o=this.getTileGrid(),a=o.getZForResolution(i.resolution,this.zDirection),n=o.getTileCoordForCoordAndZ(i.center,a)[0];return s.imageryProviders.map(function(i){for(var o=!1,a=i.coverageAreas,s=0,u=a.length;s=c.zoomMin&&n<=c.zoomMax){var l=c.bbox,d=[l[1],l[0],l[3],l[2]],p=(0,r.applyTransform)(d,y);if((0,r.intersects)(p,e.extent)){o=!0;break}}}o&&t.push(i.attribution)}),t.push(d),t}.bind(this))}this.setState(e.default.READY)}else this.setState(e.default.ERROR)},u}(t.default),m=p;exports.default=m; +},{"./State.js":"iC8j","./TileImage.js":"udAI","../extent.js":"QDir","../tileurlfunction.js":"p1vZ","../tilecoord.js":"faTr","../tilegrid.js":"ExRx","../proj.js":"Diht","../net.js":"SU9K"}],"knlU":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("./TileImage.js")),o=require("../tilegrid.js");function e(t){return t&&t.__esModule?t:{default:t}}var i=function(){var t=function(o,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])})(o,e)};return function(o,e){function i(){this.constructor=o}t(o,e),o.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),r=function(t){function e(e){var i=e||{},r=void 0!==i.projection?i.projection:"EPSG:3857",n=void 0!==i.tileGrid?i.tileGrid:(0,o.createXYZ)({extent:(0,o.extentFromProjection)(r),maxResolution:i.maxResolution,maxZoom:i.maxZoom,minZoom:i.minZoom,tileSize:i.tileSize});return t.call(this,{attributions:i.attributions,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,imageSmoothing:i.imageSmoothing,opaque:i.opaque,projection:r,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:i.tileLoadFunction,tilePixelRatio:i.tilePixelRatio,tileUrlFunction:i.tileUrlFunction,url:i.url,urls:i.urls,wrapX:void 0===i.wrapX||i.wrapX,transition:i.transition,attributionsCollapsible:i.attributionsCollapsible,zDirection:i.zDirection})||this}return i(e,t),e}(t.default),n=r;exports.default=n; +},{"./TileImage.js":"udAI","../tilegrid.js":"ExRx"}],"WJrq":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=o(require("./State.js")),e=o(require("./XYZ.js")),i=require("../obj.js");function o(t){return t&&t.__esModule?t:{default:t}}var n=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),a=function(e){function o(t){var i=e.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,maxZoom:void 0!==t.maxZoom?t.maxZoom:18,minZoom:t.minZoom,projection:t.projection,transition:t.transition,wrapX:t.wrapX})||this;return i.account_=t.account,i.mapId_=t.map||"",i.config_=t.config||{},i.templateCache_={},i.initializeMap_(),i}return n(o,e),o.prototype.getConfig=function(){return this.config_},o.prototype.updateConfig=function(t){(0,i.assign)(this.config_,t),this.initializeMap_()},o.prototype.setConfig=function(t){this.config_=t||{},this.initializeMap_()},o.prototype.initializeMap_=function(){var t=JSON.stringify(this.config_);if(this.templateCache_[t])this.applyTemplate_(this.templateCache_[t]);else{var e="https://"+this.account_+".carto.com/api/v1/map";this.mapId_&&(e+="/named/"+this.mapId_);var i=new XMLHttpRequest;i.addEventListener("load",this.handleInitResponse_.bind(this,t)),i.addEventListener("error",this.handleInitError_.bind(this)),i.open("POST",e),i.setRequestHeader("Content-type","application/json"),i.send(JSON.stringify(this.config_))}},o.prototype.handleInitResponse_=function(e,i){var o=i.target;if(!o.status||o.status>=200&&o.status<300){var n=void 0;try{n=JSON.parse(o.responseText)}catch(a){return void this.setState(t.default.ERROR)}this.applyTemplate_(n),this.templateCache_[e]=n,this.setState(t.default.READY)}else this.setState(t.default.ERROR)},o.prototype.handleInitError_=function(e){this.setState(t.default.ERROR)},o.prototype.applyTemplate_=function(t){var e="https://"+t.cdn_url.https+"/"+this.account_+"/api/v1/map/"+t.layergroupid+"/{z}/{x}/{y}.png";this.setUrl(e)},o}(e.default),r=a;exports.default=r; +},{"./State.js":"iC8j","./XYZ.js":"knlU","../obj.js":"mH6q"}],"sV2m":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=c(require("../events/EventType.js")),t=c(require("../Feature.js")),r=c(require("../geom/GeometryType.js")),o=c(require("../geom/Point.js")),s=c(require("./Vector.js")),i=require("../coordinate.js"),n=require("../asserts.js"),u=require("../extent.js"),a=require("../util.js");function c(e){return e&&e.__esModule?e:{default:e}}var f=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),h=function(s){function c(e){var t=s.call(this,{attributions:e.attributions,wrapX:e.wrapX})||this;return t.resolution=void 0,t.distance=void 0!==e.distance?e.distance:20,t.features=[],t.geometryFunction=e.geometryFunction||function(e){var t=e.getGeometry();return(0,n.assert)(t.getType()==r.default.POINT,10),t},t.boundRefresh_=t.refresh.bind(t),t.setSource(e.source||null),t}return f(c,s),c.prototype.clear=function(e){this.features.length=0,s.prototype.clear.call(this,e)},c.prototype.getDistance=function(){return this.distance},c.prototype.getSource=function(){return this.source},c.prototype.loadFeatures=function(e,t,r){this.source.loadFeatures(e,t,r),t!==this.resolution&&(this.clear(),this.resolution=t,this.cluster(),this.addFeatures(this.features))},c.prototype.setDistance=function(e){this.distance=e,this.refresh()},c.prototype.setSource=function(t){this.source&&this.source.removeEventListener(e.default.CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(e.default.CHANGE,this.boundRefresh_),this.refresh()},c.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)},c.prototype.cluster=function(){if(void 0!==this.resolution&&this.source)for(var e=(0,u.createEmpty)(),t=this.distance*this.resolution,r=this.source.getFeatures(),o={},s=0,i=r.length;s=0;--s){var n=this.geometryFunction(e[s]);n?(0,i.add)(r,n.getCoordinates()):e.splice(s,1)}(0,i.scale)(r,1/e.length);var u=new t.default(new o.default(r));return u.set("features",e),u},c}(s.default),l=h;exports.default=l; +},{"../events/EventType.js":"C8cu","../Feature.js":"mYW9","../geom/GeometryType.js":"lmV0","../geom/Point.js":"gLcY","./Vector.js":"ZS12","../coordinate.js":"nGsj","../asserts.js":"fLG6","../extent.js":"QDir","../util.js":"KniQ"}],"aDh3":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.CustomTile=void 0;var e=require("../tilegrid/common.js"),t=c(require("../ImageTile.js")),r=c(require("../tilegrid/TileGrid.js")),i=c(require("./TileImage.js")),o=c(require("../TileState.js")),n=require("../asserts.js"),a=require("../dom.js"),u=require("../tileurlfunction.js"),s=require("../extent.js"),l=require("../size.js");function c(e){return e&&e.__esModule?e:{default:e}}var f=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),h={DEFAULT:"default",TRUNCATED:"truncated"},p=function(e){function t(t,r,i,o,n,a,u){var s=e.call(this,r,i,o,n,a,u)||this;return s.zoomifyImage_=null,s.tileSize_=t,s}return f(t,e),t.prototype.getImage=function(){if(this.zoomifyImage_)return this.zoomifyImage_;var t=e.prototype.getImage.call(this);if(this.state==o.default.LOADED){var r=this.tileSize_;if(t.width==r[0]&&t.height==r[1])return this.zoomifyImage_=t,t;var i=(0,a.createCanvasContext2D)(r[0],r[1]);return i.drawImage(t,0,0),this.zoomifyImage_=i.canvas,i.canvas}return t},t}(t.default);exports.CustomTile=p;var d=function(t){function i(i){var o=this,a=i,c=a.size,f=void 0!==a.tierSizeCalculation?a.tierSizeCalculation:h.DEFAULT,d=a.tilePixelRatio||1,g=c[0],m=c[1],v=[],T=a.tileSize||e.DEFAULT_TILE_SIZE,_=T*d;switch(f){case h.DEFAULT:for(;g>_||m>_;)v.push([Math.ceil(g/_),Math.ceil(m/_)]),_+=_;break;case h.TRUNCATED:for(var z=g,j=m;z>_||j>_;)v.push([Math.ceil(z/_),Math.ceil(j/_)]),z>>=1,j>>=1;break;default:(0,n.assert)(!1,53)}v.push([1,1]),v.reverse();for(var x=[d],y=[0],I=1,E=v.length;I1,r=o&&e.imageInfo.profile[1].supports?e.imageInfo.profile[1].supports:[],s=o&&e.imageInfo.profile[1].formats?e.imageInfo.profile[1].formats:[],a=o&&e.imageInfo.profile[1].qualities?e.imageInfo.profile[1].qualities:[];return{url:e.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),sizes:void 0===e.imageInfo.sizes?void 0:e.imageInfo.sizes.map(function(e){return[e.width,e.height]}),tileSize:void 0===e.imageInfo.tiles?void 0:[e.imageInfo.tiles.map(function(e){return e.width})[0],e.imageInfo.tiles.map(function(e){return void 0===e.height?e.width:e.height})[0]],resolutions:void 0===e.imageInfo.tiles?void 0:e.imageInfo.tiles.map(function(e){return e.scaleFactors})[0],supports:i(t.supports,r),formats:i(t.formats,s),qualities:i(t.qualities,a)}}function l(e){var t=e.getComplianceLevelSupportedFeatures(),o=void 0===e.imageInfo.extraFormats?t.formats:i(t.formats,e.imageInfo.extraFormats),r=void 0!==e.imageInfo.preferredFormats&&Array.isArray(e.imageInfo.preferredFormats)&&e.imageInfo.preferredFormats.length>0?e.imageInfo.preferredFormats.filter(function(e){return["jpg","png","gif"].includes(e)}).reduce(function(e,i){return void 0===e&&o.includes(i)?i:e},void 0):void 0;return{url:e.imageInfo.id,sizes:void 0===e.imageInfo.sizes?void 0:e.imageInfo.sizes.map(function(e){return[e.width,e.height]}),tileSize:void 0===e.imageInfo.tiles?void 0:[e.imageInfo.tiles.map(function(e){return e.width})[0],e.imageInfo.tiles.map(function(e){return e.height})[0]],resolutions:void 0===e.imageInfo.tiles?void 0:e.imageInfo.tiles.map(function(e){return e.scaleFactors})[0],supports:void 0===e.imageInfo.extraFeatures?t.supports:i(t.supports,e.imageInfo.extraFeatures),formats:o,qualities:void 0===e.imageInfo.extraQualities?t.qualities:i(t.qualities,e.imageInfo.extraQualities),preferredFormat:r}}var p={};p[t.VERSION1]=n,p[t.VERSION2]=f,p[t.VERSION3]=l;var g=function(){function i(e){this.setImageInfo(e)}return i.prototype.setImageInfo=function(e){this.imageInfo="string"==typeof e?JSON.parse(e):e},i.prototype.getImageApiVersion=function(){if(void 0!==this.imageInfo){var i=this.imageInfo["@context"]||"ol-no-context";"string"==typeof i&&(i=[i]);for(var o=0;o0&&"string"==typeof this.imageInfo.profile[0]&&s.test(this.imageInfo.profile[0]))return this.imageInfo.profile[0]}},i.prototype.getComplianceLevelFromProfile=function(e){var i=this.getComplianceLevelEntryFromProfile(e);if(void 0!==i){var t=i.match(/level[0-2](?:\.json)?$/g);return Array.isArray(t)?t[0].replace(".json",""):void 0}},i.prototype.getComplianceLevelSupportedFeatures=function(){if(void 0!==this.imageInfo){var e=this.getImageApiVersion(),i=this.getComplianceLevelFromProfile(e);return void 0===i?o.none.none:o[e][i]}},i.prototype.getTileSourceOptions=function(e){var i=e||{},t=this.getImageApiVersion();if(void 0!==t){var o=void 0===t?void 0:p[t](this);if(void 0!==o)return{url:o.url,version:t,size:[this.imageInfo.width,this.imageInfo.height],sizes:o.sizes,format:void 0!==i.format&&o.formats.includes(i.format)?i.format:void 0!==o.preferredFormat?o.preferredFormat:"jpg",supports:o.supports,quality:i.quality&&o.qualities.includes(i.quality)?i.quality:o.qualities.includes("native")?"native":"default",resolutions:Array.isArray(o.resolutions)?o.resolutions.sort(function(e,i){return i-e}):void 0,tileSize:o.tileSize}}},i}(),u=g;exports.default=u; +},{"../asserts.js":"fLG6"}],"oF4i":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=a(require("../tilegrid/TileGrid.js")),t=a(require("./TileImage.js")),i=require("./Zoomify.js"),r=require("../tilegrid/common.js"),n=require("../format/IIIFInfo.js"),o=require("../asserts.js"),s=require("../extent.js"),l=require("../size.js");function a(e){return e&&e.__esModule?e:{default:e}}var u=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();function c(e){return e.toLocaleString("en",{maximumFractionDigits:10})}var h=function(t){function a(a){var u=this,h=a||{},f=h.url||"";f+=f.lastIndexOf("/")===f.length-1||""===f?"":"/";var g=h.version||n.Versions.VERSION2,p=h.sizes||[],d=h.size;(0,o.assert)(null!=d&&Array.isArray(d)&&2==d.length&&!isNaN(d[0])&&d[0]>0&&!isNaN(d[1])&&d[1]>0,60);var y,v,m,I=d[0],b=d[1],z=h.tileSize,M=h.tilePixelRatio||1,N=h.format||"jpg",j=h.quality||(h.version==n.Versions.VERSION1?"native":"default"),x=h.resolutions||[],_=h.supports||[],S=h.extent||[0,-b,I,0],O=null!=p&&Array.isArray(p)&&p.length>0,A=void 0!==z&&("number"==typeof z&&Number.isInteger(z)&&z>0||Array.isArray(z)&&z.length>0),B=null!=_&&Array.isArray(_)&&(_.includes("regionByPx")||_.includes("regionByPct"))&&(_.includes("sizeByWh")||_.includes("sizeByH")||_.includes("sizeByW")||_.includes("sizeByPct"));if(x.sort(function(e,t){return t-e}),A||B)if(null!=z&&("number"==typeof z&&Number.isInteger(z)&&z>0?(y=z,v=z):Array.isArray(z)&&z.length>0&&((1==z.length||null==z[1]&&Number.isInteger(z[0]))&&(y=z[0],v=z[0]),2==z.length&&(Number.isInteger(z[0])&&Number.isInteger(z[1])?(y=z[0],v=z[1]):null==z[0]&&Number.isInteger(z[1])&&(y=z[1],v=z[1])))),void 0!==y&&void 0!==v||(y=r.DEFAULT_TILE_SIZE,v=r.DEFAULT_TILE_SIZE),0==x.length)for(var E=m=Math.max(Math.ceil(Math.log(I/y)/Math.LN2),Math.ceil(Math.log(b/v)/Math.LN2));E>=0;E--)x.push(Math.pow(2,E));else{var P=Math.max.apply(Math,x);m=Math.round(Math.log(P)/Math.LN2)}else if(y=I,v=b,x=[],O){p.sort(function(e,t){return e[0]-t[0]}),m=-1;var T=[];for(E=0;E0&&x[x.length-1]==V?T.push(E):(x.push(V),m++)}if(T.length>0)for(E=0;Em)){var l=e[1],a=e[2],u=x[s];if(!(void 0===l||void 0===a||void 0===u||l<0||Math.ceil(I/u/y)<=l||a<0||Math.ceil(b/u/v)<=a)){if(B||A){var h=l*y*u,d=a*v*u,z=y*u,M=v*u,S=y,E=v;h+z>I&&(z=I-h),d+M>b&&(M=b-d),h+y*u>I&&(S=Math.floor((I-h+u-1)/u)),d+v*u>b&&(E=Math.floor((b-d+u-1)/u)),0==h&&z==I&&0==d&&M==b?r="full":!B||_.includes("regionByPx")?r=h+","+d+","+z+","+M:_.includes("regionByPct")&&(r="pct:"+c(h/I*100)+","+c(d/b*100)+","+c(z/I*100)+","+c(M/b*100)),g!=n.Versions.VERSION3||B&&!_.includes("sizeByWh")?!B||_.includes("sizeByW")?o=S+",":_.includes("sizeByH")?o=","+E:_.includes("sizeByWh")?o=S+","+E:_.includes("sizeByPct")&&(o="pct:"+c(100/u)):o=S+","+E}else if(r="full",O){var P=p[s][0],T=p[s][1];o=g==n.Versions.VERSION3?P==I&&T==b?"max":P+","+T:P==I?"full":P+","}else o=g==n.Versions.VERSION3?"max":"full";return f+r+"/"+o+"/0/"+j+"."+N}}},transition:h.transition})||this).zDirection=h.zDirection,u}return u(a,t),a}(t.default),f=h;exports.default=f; +},{"../tilegrid/TileGrid.js":"dpZ6","./TileImage.js":"udAI","./Zoomify.js":"aDh3","../tilegrid/common.js":"mOEX","../format/IIIFInfo.js":"FFf1","../asserts.js":"fLG6","../extent.js":"QDir","../size.js":"TAHd"}],"rc7I":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("./common.js"),e=u(require("../events/EventType.js")),r=u(require("../ImageBase.js")),o=u(require("../ImageState.js")),n=u(require("./Triangulation.js")),i=require("../reproj.js"),s=require("../extent.js"),a=require("../events.js");function u(t){return t&&t.__esModule?t:{default:t}}var c=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),l=function(r){function u(e,a,u,c,l,_,g){var h=this,p=e.getExtent(),f=a.getExtent(),d=f?(0,s.getIntersection)(u,f):u,x=(0,s.getCenter)(d),y=(0,i.calculateSourceResolution)(e,a,x,c),E=t.ERROR_THRESHOLD,I=new n.default(e,a,d,p,y*E,c),j=_(I.calculateSourceExtent(),y,l),R=j?o.default.IDLE:o.default.EMPTY,m=j?j.getPixelRatio():1;return(h=r.call(this,u,c,m,R)||this).targetProj_=a,h.maxSourceExtent_=p,h.triangulation_=I,h.targetResolution_=c,h.targetExtent_=u,h.sourceImage_=j,h.sourcePixelRatio_=m,h.contextOptions_=g,h.canvas_=null,h.sourceListenerKey_=null,h}return c(u,r),u.prototype.disposeInternal=function(){this.state==o.default.LOADING&&this.unlistenSource_(),r.prototype.disposeInternal.call(this)},u.prototype.getImage=function(){return this.canvas_},u.prototype.getProjection=function(){return this.targetProj_},u.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==o.default.LOADED){var e=(0,s.getWidth)(this.targetExtent_)/this.targetResolution_,r=(0,s.getHeight)(this.targetExtent_)/this.targetResolution_;this.canvas_=(0,i.render)(e,r,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.contextOptions_)}this.state=t,this.changed()},u.prototype.load=function(){if(this.state==o.default.IDLE){this.state=o.default.LOADING,this.changed();var t=this.sourceImage_.getState();t==o.default.LOADED||t==o.default.ERROR?this.reproject_():(this.sourceListenerKey_=(0,a.listen)(this.sourceImage_,e.default.CHANGE,function(t){var e=this.sourceImage_.getState();e!=o.default.LOADED&&e!=o.default.ERROR||(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}},u.prototype.unlistenSource_=function(){(0,a.unlistenByKey)(this.sourceListenerKey_),this.sourceListenerKey_=null},u}(r.default),_=l;exports.default=_; +},{"./common.js":"fF5X","../events/EventType.js":"C8cu","../ImageBase.js":"Ojbp","../ImageState.js":"u3kG","./Triangulation.js":"BiRY","../reproj.js":"U255","../extent.js":"QDir","../events.js":"UqnM"}],"XHvt":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.defaultImageLoadFunction=f,exports.default=exports.ImageSourceEvent=exports.ImageSourceEventType=void 0;var e=p(require("../events/Event.js")),t=p(require("../ImageState.js")),r=p(require("../reproj/Image.js")),o=p(require("./Source.js")),n=require("../reproj/common.js"),i=require("./common.js"),s=require("../util.js"),a=require("../extent.js"),u=require("../proj.js"),c=require("../array.js");function p(e){return e&&e.__esModule?e:{default:e}}var l=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),g={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"};exports.ImageSourceEventType=g;var d=function(e){function t(t,r){var o=e.call(this,t)||this;return o.image=r,o}return l(t,e),t}(e.default);exports.ImageSourceEvent=d;var h=function(e){function o(t){var r=e.call(this,{attributions:t.attributions,projection:t.projection,state:t.state})||this;return r.resolutions_=void 0!==t.resolutions?t.resolutions:null,r.reprojectedImage_=null,r.reprojectedRevision_=0,r.contextOptions_=!1===t.imageSmoothing?i.IMAGE_SMOOTHING_DISABLED:void 0,r}return l(o,e),o.prototype.getResolutions=function(){return this.resolutions_},o.prototype.getContextOptions=function(){return this.contextOptions_},o.prototype.findNearestResolution=function(e){if(this.resolutions_){var t=(0,c.linearFindNearest)(this.resolutions_,e,0);e=this.resolutions_[t]}return e},o.prototype.getImage=function(e,t,o,i){var s=this.getProjection();if(n.ENABLE_RASTER_REPROJECTION&&s&&i&&!(0,u.equivalent)(s,i)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&(0,u.equivalent)(this.reprojectedImage_.getProjection(),i)&&this.reprojectedImage_.getResolution()==t&&(0,a.equals)(this.reprojectedImage_.getExtent(),e))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new r.default(s,i,e,t,o,function(e,t,r){return this.getImageInternal(e,t,r,s)}.bind(this),this.contextOptions_),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return s&&(i=s),this.getImageInternal(e,t,o,i)},o.prototype.getImageInternal=function(e,t,r,o){return(0,s.abstract)()},o.prototype.handleImageChange=function(e){var r=e.target;switch(r.getState()){case t.default.LOADING:this.loading=!0,this.dispatchEvent(new d(g.IMAGELOADSTART,r));break;case t.default.LOADED:this.loading=!1,this.dispatchEvent(new d(g.IMAGELOADEND,r));break;case t.default.ERROR:this.loading=!1,this.dispatchEvent(new d(g.IMAGELOADERROR,r))}},o}(o.default);function f(e,t){e.getImage().src=t}var I=h;exports.default=I; +},{"../events/Event.js":"fKNg","../ImageState.js":"u3kG","../reproj/Image.js":"rc7I","./Source.js":"H38a","../reproj/common.js":"fF5X","./common.js":"a8mu","../util.js":"KniQ","../extent.js":"QDir","../proj.js":"Diht","../array.js":"luEr"}],"n7G7":[function(require,module,exports) { +"use strict";function e(e,n){var o=[];Object.keys(n).forEach(function(e){null!==n[e]&&void 0!==n[e]&&o.push(e+"="+encodeURIComponent(n[e]))});var r=o.join("&");return(e=-1===(e=e.replace(/[?&]$/,"")).indexOf("?")?e+"?":e+"&")+r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.appendParams=e; +},{}],"P20y":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=p(require("../events/EventType.js")),e=u(require("./Image.js")),i=p(require("../Image.js")),r=require("../uri.js"),n=require("../asserts.js"),o=require("../obj.js"),a=require("../extent.js");function s(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function u(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var o=r?Object.getOwnPropertyDescriptor(t,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=t[n]}return i.default=t,e&&e.set(t,i),i}function p(t){return t&&t.__esModule?t:{default:t}}var c=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),g=function(s){function u(t){var i=this,r=t||{};return(i=s.call(this,{attributions:r.attributions,imageSmoothing:r.imageSmoothing,projection:r.projection,resolutions:r.resolutions})||this).crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null,i.hidpi_=void 0===r.hidpi||r.hidpi,i.url_=r.url,i.imageLoadFunction_=void 0!==r.imageLoadFunction?r.imageLoadFunction:e.defaultImageLoadFunction,i.params_=r.params||{},i.image_=null,i.imageSize_=[0,0],i.renderedRevision_=0,i.ratio_=void 0!==r.ratio?r.ratio:1.5,i}return c(u,s),u.prototype.getParams=function(){return this.params_},u.prototype.getImageInternal=function(e,r,n,s){if(void 0===this.url_)return null;r=this.findNearestResolution(r),n=this.hidpi_?n:1;var u=this.image_;if(u&&this.renderedRevision_==this.getRevision()&&u.getResolution()==r&&u.getPixelRatio()==n&&(0,a.containsExtent)(u.getExtent(),e))return u;var p={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};(0,o.assign)(p,this.params_);var c=((e=e.slice())[0]+e[2])/2,g=(e[1]+e[3])/2;if(1!=this.ratio_){var l=this.ratio_*(0,a.getWidth)(e)/2,h=this.ratio_*(0,a.getHeight)(e)/2;e[0]=c-l,e[1]=g-h,e[2]=c+l,e[3]=g+h}var d=r/n,_=Math.ceil((0,a.getWidth)(e)/d),f=Math.ceil((0,a.getHeight)(e)/d);e[0]=c-d*_/2,e[2]=c+d*_/2,e[1]=g-d*f/2,e[3]=g+d*f/2,this.imageSize_[0]=_,this.imageSize_[1]=f;var m=this.getRequestUrl_(e,this.imageSize_,n,s,p);return this.image_=new i.default(e,r,n,m,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(t.default.CHANGE,this.handleImageChange.bind(this)),this.image_},u.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},u.prototype.getRequestUrl_=function(t,e,i,o,a){var s=o.getCode().split(":").pop();a.SIZE=e[0]+","+e[1],a.BBOX=t.join(","),a.BBOXSR=s,a.IMAGESR=s,a.DPI=Math.round(90*i);var u=this.url_,p=u.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage");return p==u&&(0,n.assert)(!1,50),(0,r.appendParams)(p,a)},u.prototype.getUrl=function(){return this.url_},u.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},u.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},u.prototype.updateParams=function(t){(0,o.assign)(this.params_,t),this.image_=null,this.changed()},u}(e.default),l=g;exports.default=l; +},{"../events/EventType.js":"C8cu","./Image.js":"XHvt","../Image.js":"DHWK","../uri.js":"n7G7","../asserts.js":"fLG6","../obj.js":"mH6q","../extent.js":"QDir"}],"Y2uN":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=i(require("../ImageCanvas.js")),e=i(require("./Image.js")),n=require("../extent.js");function i(t){return t&&t.__esModule?t:{default:t}}var o=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=function(e){function i(t){var n=this,i=t||{};return(n=e.call(this,{attributions:i.attributions,imageSmoothing:i.imageSmoothing,projection:i.projection,resolutions:i.resolutions,state:i.state})||this).canvasFunction_=i.canvasFunction,n.canvas_=null,n.renderedRevision_=0,n.ratio_=void 0!==i.ratio?i.ratio:1.5,n}return o(i,e),i.prototype.getImageInternal=function(e,i,o,r){i=this.findNearestResolution(i);var s=this.canvas_;if(s&&this.renderedRevision_==this.getRevision()&&s.getResolution()==i&&s.getPixelRatio()==o&&(0,n.containsExtent)(s.getExtent(),e))return s;e=e.slice(),(0,n.scaleFromCenter)(e,this.ratio_);var a=[(0,n.getWidth)(e)/i*o,(0,n.getHeight)(e)/i*o],u=this.canvasFunction_.call(this,e,i,o,a,r);return u&&(s=new t.default(e,i,o,u)),this.canvas_=s,this.renderedRevision_=this.getRevision(),s},i}(e.default),s=r;exports.default=s; +},{"../ImageCanvas.js":"K7j2","./Image.js":"XHvt","../extent.js":"QDir"}],"C9PY":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=u(require("../events/EventType.js")),t=s(require("./Image.js")),i=u(require("../Image.js")),r=require("../uri.js"),n=require("../obj.js"),o=require("../extent.js");function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}return i.default=e,t&&t.set(e,i),i}function u(e){return e&&e.__esModule?e:{default:e}}var p=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),c=function(a){function s(e){var i=a.call(this,{imageSmoothing:e.imageSmoothing,projection:e.projection,resolutions:e.resolutions})||this;return i.crossOrigin_=void 0!==e.crossOrigin?e.crossOrigin:null,i.displayDpi_=void 0!==e.displayDpi?e.displayDpi:96,i.params_=e.params||{},i.url_=e.url,i.imageLoadFunction_=void 0!==e.imageLoadFunction?e.imageLoadFunction:t.defaultImageLoadFunction,i.hidpi_=void 0===e.hidpi||e.hidpi,i.metersPerUnit_=void 0!==e.metersPerUnit?e.metersPerUnit:1,i.ratio_=void 0!==e.ratio?e.ratio:1,i.useOverlay_=void 0!==e.useOverlay&&e.useOverlay,i.image_=null,i.renderedRevision_=0,i}return p(s,a),s.prototype.getParams=function(){return this.params_},s.prototype.getImageInternal=function(t,r,n,a){r=this.findNearestResolution(r),n=this.hidpi_?n:1;var s=this.image_;if(s&&this.renderedRevision_==this.getRevision()&&s.getResolution()==r&&s.getPixelRatio()==n&&(0,o.containsExtent)(s.getExtent(),t))return s;1!=this.ratio_&&(t=t.slice(),(0,o.scaleFromCenter)(t,this.ratio_));var u=[(0,o.getWidth)(t)/r*n,(0,o.getHeight)(t)/r*n];if(void 0!==this.url_){var p=this.getUrl(this.url_,this.params_,t,u,a);(s=new i.default(t,r,n,p,this.crossOrigin_,this.imageLoadFunction_)).addEventListener(e.default.CHANGE,this.handleImageChange.bind(this))}else s=null;return this.image_=s,this.renderedRevision_=this.getRevision(),s},s.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},s.prototype.updateParams=function(e){(0,n.assign)(this.params_,e),this.changed()},s.prototype.getUrl=function(e,t,i,a,s){var u=d(i,a,this.metersPerUnit_,this.displayDpi_),p=(0,o.getCenter)(i),c={OPERATION:this.useOverlay_?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol/source/ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.displayDpi_,SETDISPLAYWIDTH:Math.round(a[0]),SETDISPLAYHEIGHT:Math.round(a[1]),SETVIEWSCALE:u,SETVIEWCENTERX:p[0],SETVIEWCENTERY:p[1]};return(0,n.assign)(c,t),(0,r.appendParams)(e,c)},s.prototype.setImageLoadFunction=function(e){this.image_=null,this.imageLoadFunction_=e,this.changed()},s}(t.default);function d(e,t,i,r){var n=(0,o.getWidth)(e),a=(0,o.getHeight)(e),s=t[0],u=t[1],p=.0254/r;return u*n>s*a?n*i/(s*p):a*i/(u*p)}var l=c;exports.default=l; +},{"../events/EventType.js":"C8cu","./Image.js":"XHvt","../Image.js":"DHWK","../uri.js":"n7G7","../obj.js":"mH6q","../extent.js":"QDir"}],"zK6j":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=c(require("../events/EventType.js")),t=s(require("./Image.js")),r=c(require("../ImageState.js")),i=c(require("../Image.js")),n=require("../obj.js"),o=require("../dom.js"),a=require("../extent.js"),u=require("../proj.js");function g(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return g=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=g();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}function c(e){return e&&e.__esModule?e:{default:e}}var l=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),f=function(g){function s(r){var n=this,o=void 0!==r.crossOrigin?r.crossOrigin:null,a=void 0!==r.imageLoadFunction?r.imageLoadFunction:t.defaultImageLoadFunction;return(n=g.call(this,{attributions:r.attributions,imageSmoothing:r.imageSmoothing,projection:(0,u.get)(r.projection)})||this).url_=r.url,n.imageExtent_=r.imageExtent,n.image_=new i.default(n.imageExtent_,void 0,1,n.url_,o,a),n.imageSize_=r.imageSize?r.imageSize:null,n.image_.addEventListener(e.default.CHANGE,n.handleImageChange.bind(n)),n}return l(s,g),s.prototype.getImageExtent=function(){return this.imageExtent_},s.prototype.getImageInternal=function(e,t,r,i){return(0,a.intersects)(e,this.image_.getExtent())?this.image_:null},s.prototype.getUrl=function(){return this.url_},s.prototype.handleImageChange=function(e){if(this.image_.getState()==r.default.LOADED){var t=this.image_.getExtent(),i=this.image_.getImage(),u=void 0,s=void 0;this.imageSize_?(u=this.imageSize_[0],s=this.imageSize_[1]):(u=i.width,s=i.height);var c=(0,a.getHeight)(t)/s,l=Math.ceil((0,a.getWidth)(t)/c);if(l!=u){var f=(0,o.createCanvasContext2D)(l,s);(0,n.assign)(f,this.getContextOptions());var p=f.canvas;f.drawImage(i,0,0,u,s,0,0,p.width,p.height),this.image_.setImage(p)}}g.prototype.handleImageChange.call(this,e)},s}(t.default),p=f;exports.default=p; +},{"../events/EventType.js":"C8cu","./Image.js":"XHvt","../ImageState.js":"u3kG","../Image.js":"DHWK","../obj.js":"mH6q","../dom.js":"Xno5","../extent.js":"QDir","../proj.js":"Diht"}],"mXwm":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={CARMENTA_SERVER:"carmentaserver",GEOSERVER:"geoserver",MAPSERVER:"mapserver",QGIS:"qgis"};exports.default=e; +},{}],"e4Kb":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("./common.js"),t=d(require("../events/EventType.js")),i=c(require("./Image.js")),r=d(require("../Image.js")),n=d(require("./WMSServerType.js")),o=require("../uri.js"),a=require("../asserts.js"),s=require("../obj.js"),u=require("../reproj.js"),h=require("../string.js"),p=require("../extent.js"),g=require("../proj.js");function _(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_();if(t&&t.has(e))return t.get(e);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}return i.default=e,t&&t.set(e,i),i}function d(e){return e&&e.__esModule?e:{default:e}}var l=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),f=[101,101],v=function(_){function c(e){var t=this,r=e||{};return(t=_.call(this,{attributions:r.attributions,imageSmoothing:r.imageSmoothing,projection:r.projection,resolutions:r.resolutions})||this).crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null,t.url_=r.url,t.imageLoadFunction_=void 0!==r.imageLoadFunction?r.imageLoadFunction:i.defaultImageLoadFunction,t.params_=r.params||{},t.v13_=!0,t.updateV13_(),t.serverType_=r.serverType,t.hidpi_=void 0===r.hidpi||r.hidpi,t.image_=null,t.imageSize_=[0,0],t.renderedRevision_=0,t.ratio_=void 0!==r.ratio?r.ratio:1.5,t}return l(c,_),c.prototype.getFeatureInfoUrl=function(t,i,r,n){if(void 0!==this.url_){var o=(0,g.get)(r),a=this.getProjection();a&&a!==o&&(i=(0,u.calculateSourceResolution)(a,o,t,i),t=(0,g.transform)(t,o,a));var h=(0,p.getForViewAndSize)(t,i,0,f),_={SERVICE:"WMS",VERSION:e.DEFAULT_WMS_VERSION,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};(0,s.assign)(_,this.params_,n);var c=Math.floor((t[0]-h[0])/i),d=Math.floor((h[3]-t[1])/i);return _[this.v13_?"I":"X"]=c,_[this.v13_?"J":"Y"]=d,this.getRequestUrl_(h,f,1,a||o,_)}},c.prototype.getLegendUrl=function(t,i){if(void 0!==this.url_){var r={SERVICE:"WMS",VERSION:e.DEFAULT_WMS_VERSION,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===i||void 0===i.LAYER){var n=this.params_.LAYERS;if(!(!Array.isArray(n)||1===n.length))return;r.LAYER=n}if(void 0!==t){var a=this.getProjection()?this.getProjection().getMetersPerUnit():1;r.SCALE=t*a/28e-5}return(0,s.assign)(r,i),(0,o.appendParams)(this.url_,r)}},c.prototype.getParams=function(){return this.params_},c.prototype.getImageInternal=function(i,n,o,a){if(void 0===this.url_)return null;n=this.findNearestResolution(n),1==o||this.hidpi_&&void 0!==this.serverType_||(o=1);var u=n/o,h=(0,p.getCenter)(i),g=Math.ceil((0,p.getWidth)(i)/u),_=Math.ceil((0,p.getHeight)(i)/u),c=(0,p.getForViewAndSize)(h,u,0,[g,_]),d=Math.ceil(this.ratio_*(0,p.getWidth)(i)/u),l=Math.ceil(this.ratio_*(0,p.getHeight)(i)/u),f=(0,p.getForViewAndSize)(h,u,0,[d,l]),v=this.image_;if(v&&this.renderedRevision_==this.getRevision()&&v.getResolution()==n&&v.getPixelRatio()==o&&(0,p.containsExtent)(v.getExtent(),c))return v;var S={SERVICE:"WMS",VERSION:e.DEFAULT_WMS_VERSION,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};(0,s.assign)(S,this.params_),this.imageSize_[0]=Math.round((0,p.getWidth)(f)/u),this.imageSize_[1]=Math.round((0,p.getHeight)(f)/u);var R=this.getRequestUrl_(f,this.imageSize_,o,a,S);return this.image_=new r.default(f,n,o,R,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(t.default.CHANGE,this.handleImageChange.bind(this)),this.image_},c.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},c.prototype.getRequestUrl_=function(e,t,i,r,s){if((0,a.assert)(void 0!==this.url_,9),s[this.v13_?"CRS":"SRS"]=r.getCode(),"STYLES"in this.params_||(s.STYLES=""),1!=i)switch(this.serverType_){case n.default.GEOSERVER:var u=90*i+.5|0;"FORMAT_OPTIONS"in s?s.FORMAT_OPTIONS+=";dpi:"+u:s.FORMAT_OPTIONS="dpi:"+u;break;case n.default.MAPSERVER:s.MAP_RESOLUTION=90*i;break;case n.default.CARMENTA_SERVER:case n.default.QGIS:s.DPI=90*i;break;default:(0,a.assert)(!1,8)}s.WIDTH=t[0],s.HEIGHT=t[1];var h,p=r.getAxisOrientation();return h=this.v13_&&"ne"==p.substr(0,2)?[e[1],e[0],e[3],e[2]]:e,s.BBOX=h.join(","),(0,o.appendParams)(this.url_,s)},c.prototype.getUrl=function(){return this.url_},c.prototype.setImageLoadFunction=function(e){this.image_=null,this.imageLoadFunction_=e,this.changed()},c.prototype.setUrl=function(e){e!=this.url_&&(this.url_=e,this.image_=null,this.changed())},c.prototype.updateParams=function(e){(0,s.assign)(this.params_,e),this.updateV13_(),this.image_=null,this.changed()},c.prototype.updateV13_=function(){var t=this.params_.VERSION||e.DEFAULT_WMS_VERSION;this.v13_=(0,h.compareVersions)(t,"1.3")>=0},c}(i.default),S=v;exports.default=S; +},{"./common.js":"a8mu","../events/EventType.js":"C8cu","./Image.js":"XHvt","../Image.js":"DHWK","./WMSServerType.js":"mXwm","../uri.js":"n7G7","../asserts.js":"fLG6","../obj.js":"mH6q","../reproj.js":"U255","../string.js":"AiCK","../extent.js":"QDir","../proj.js":"Diht"}],"Rmo4":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.ATTRIBUTION=void 0;var t=o(require("./XYZ.js"));function o(t){return t&&t.__esModule?t:{default:t}}var r=function(){var t=function(o,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])})(o,r)};return function(o,r){function e(){this.constructor=o}t(o,r),o.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}}(),e='© OpenStreetMap contributors.';exports.ATTRIBUTION=e;var n=function(t){function o(o){var r,n=o||{};r=void 0!==n.attributions?n.attributions:[e];var i=void 0!==n.crossOrigin?n.crossOrigin:"anonymous",a=void 0!==n.url?n.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return t.call(this,{attributions:r,attributionsCollapsible:!1,cacheSize:n.cacheSize,crossOrigin:i,imageSmoothing:n.imageSmoothing,maxZoom:void 0!==n.maxZoom?n.maxZoom:19,opaque:void 0===n.opaque||n.opaque,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileLoadFunction:n.tileLoadFunction,transition:n.transition,url:a,wrapX:n.wrapX})||this}return r(o,t),o}(t.default),i=n;exports.default=i; +},{"./XYZ.js":"knlU"}],"ZHEI":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("./Layer.js"));function e(t){return t&&t.__esModule?t:{default:t}}var r=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),o=function(t){function e(e){var r=e||{};return t.call(this,r)||this}return r(e,t),e}(t.default),n=o;exports.default=n; +},{"./Layer.js":"GCgv"}],"rzNj":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=u(require("./Layer.js")),e=u(require("../../ViewHint.js")),r=require("../../reproj/common.js"),i=require("../../obj.js"),o=require("../../transform.js"),n=require("../../extent.js"),a=require("../../render/canvas.js"),s=require("../../proj.js");function u(t){return t&&t.__esModule?t:{default:t}}var h=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),c=function(t){function u(e){var r=t.call(this,e)||this;return r.image_=null,r}return h(u,t),u.prototype.getImage=function(){return this.image_?this.image_.getImage():null},u.prototype.prepareFrame=function(t){var i=t.layerStatesArray[t.layerIndex],o=t.pixelRatio,a=t.viewState,u=a.resolution,h=this.getLayer().getSource(),c=t.viewHints,l=t.extent;if(void 0!==i.extent&&(l=(0,n.getIntersection)(l,(0,s.fromUserExtent)(i.extent,a.projection))),!c[e.default.ANIMATING]&&!c[e.default.INTERACTING]&&!(0,n.isEmpty)(l))if(h){var p=a.projection;if(!r.ENABLE_RASTER_REPROJECTION){var f=h.getProjection();f&&(p=f)}var g=h.getImage(l,u,o,p);g&&this.loadImage(g)&&(this.image_=g)}else this.image_=null;return!!this.image_},u.prototype.renderFrame=function(t,e){var r=this.image_,u=r.getExtent(),h=r.getResolution(),c=r.getPixelRatio(),l=t.layerStatesArray[t.layerIndex],p=t.pixelRatio,f=t.viewState,g=f.center,d=f.resolution,m=t.size,x=p*h/(d*c),v=Math.round(m[0]*p),y=Math.round(m[1]*p),_=f.rotation;if(_){var j=Math.round(Math.sqrt(v*v+y*y));v=j,y=j}(0,o.compose)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/p,1/p,_,-v/2,-y/2),(0,o.makeInverse)(this.inversePixelTransform,this.pixelTransform);var I=(0,a.createTransformString)(this.pixelTransform);this.useContainer(e,I,l.opacity);var R=this.context,w=R.canvas;w.width!=v||w.height!=y?(w.width=v,w.height=y):this.containerReused||R.clearRect(0,0,v,y);var A=!1;if(l.extent){var E=(0,s.fromUserExtent)(l.extent,f.projection);(A=!(0,n.containsExtent)(E,t.extent)&&(0,n.intersects)(E,t.extent))&&this.clipUnrotated(R,t,E)}var M=r.getImage(),T=(0,o.compose)(this.tempTransform,v/2,y/2,x,x,0,c*(u[0]-g[0])/h,c*(g[1]-u[3])/h);this.renderedResolution=h*p/c;var q=T[4],O=T[5],b=M.width*T[0],S=M.height*T[3];if((0,i.assign)(R,this.getLayer().getSource().getContextOptions()),this.preRender(R,t),b>=.5&&S>=.5){var P=l.opacity,N=void 0;1!==P&&(N=this.context.globalAlpha,this.context.globalAlpha=P),this.context.drawImage(M,0,0,+M.width,+M.height,Math.round(q),Math.round(O),Math.round(b),Math.round(S)),1!==P&&(this.context.globalAlpha=N)}return this.postRender(R,t),A&&R.restore(),I!==w.style.transform&&(w.style.transform=I),this.container},u}(t.default),l=c;exports.default=l; +},{"./Layer.js":"vPfl","../../ViewHint.js":"cuLW","../../reproj/common.js":"fF5X","../../obj.js":"mH6q","../../transform.js":"P4eA","../../extent.js":"QDir","../../render/canvas.js":"iAG7","../../proj.js":"Diht"}],"KHBf":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("./BaseImage.js")),t=r(require("../renderer/canvas/ImageLayer.js"));function r(e){return e&&e.__esModule?e:{default:e}}var n=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(e){function r(t){return e.call(this,t)||this}return n(r,e),r.prototype.createRenderer=function(){return new t.default(this)},r}(e.default),u=o;exports.default=u; +},{"./BaseImage.js":"ZHEI","../renderer/canvas/ImageLayer.js":"rzNj"}],"M5pz":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};exports.default=e; +},{}],"HTO1":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=o(require("./Layer.js")),t=o(require("./TileProperty.js")),r=require("../obj.js");function o(e){return e&&e.__esModule?e:{default:e}}var n=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),i=function(e){function o(t){var o=this,n=t||{},i=(0,r.assign)({},n);return delete i.preload,delete i.useInterimTilesOnError,(o=e.call(this,i)||this).setPreload(void 0!==n.preload?n.preload:0),o.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),o}return n(o,e),o.prototype.getPreload=function(){return this.get(t.default.PRELOAD)},o.prototype.setPreload=function(e){this.set(t.default.PRELOAD,e)},o.prototype.getUseInterimTilesOnError=function(){return this.get(t.default.USE_INTERIM_TILES_ON_ERROR)},o.prototype.setUseInterimTilesOnError=function(e){this.set(t.default.USE_INTERIM_TILES_ON_ERROR,e)},o}(e.default),s=i;exports.default=s; +},{"./Layer.js":"GCgv","./TileProperty.js":"M5pz","../obj.js":"mH6q"}],"hkMV":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=u(require("./Layer.js")),t=u(require("../../TileRange.js")),r=u(require("../../TileState.js")),i=require("../../transform.js"),n=require("../../obj.js"),o=require("../../extent.js"),a=require("../../render/canvas.js"),s=require("../../proj.js"),l=require("../../util.js"),d=require("../../array.js");function u(e){return e&&e.__esModule?e:{default:e}}var h=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),p=function(e){function u(r){var i=e.call(this,r)||this;return i.extentChanged=!0,i.renderedExtent_=null,i.renderedPixelRatio,i.renderedProjection=null,i.renderedRevision,i.renderedTiles=[],i.newTiles_=!1,i.tmpExtent=(0,o.createEmpty)(),i.tmpTileRange_=new t.default(0,0,0,0),i}return h(u,e),u.prototype.isDrawableTile=function(e){var t=this.getLayer(),i=e.getState(),n=t.getUseInterimTilesOnError();return i==r.default.LOADED||i==r.default.EMPTY||i==r.default.ERROR&&!n},u.prototype.getTile=function(e,t,i,n){var o=n.pixelRatio,a=n.viewState.projection,s=this.getLayer(),l=s.getSource().getTile(e,t,i,o,a);return l.getState()==r.default.ERROR&&(s.getUseInterimTilesOnError()?s.getPreload()>0&&(this.newTiles_=!0):l.setState(r.default.LOADED)),this.isDrawableTile(l)||(l=l.getInterimTile()),l},u.prototype.loadedTileCallback=function(t,r,i){return!!this.isDrawableTile(i)&&e.prototype.loadedTileCallback.call(this,t,r,i)},u.prototype.prepareFrame=function(e){return!!this.getLayer().getSource()},u.prototype.renderFrame=function(e,t){var u=e.layerStatesArray[e.layerIndex],h=e.viewState,p=h.projection,c=h.resolution,g=h.center,T=h.rotation,f=e.pixelRatio,m=this.getLayer(),v=m.getSource(),x=v.getRevision(),y=v.getTileGridForProjection(p),R=y.getZForResolution(c,v.zDirection),j=y.getResolution(R),w=e.extent,C=u.extent&&(0,s.fromUserExtent)(u.extent,p);C&&(w=(0,o.getIntersection)(w,(0,s.fromUserExtent)(u.extent,p)));var E=v.getTilePixelRatio(f),_=Math.round(e.size[0]*E),P=Math.round(e.size[1]*E);if(T){var S=Math.round(Math.sqrt(_*_+P*P));_=S,P=S}var b=j*_/2/E,O=j*P/2/E,q=[g[0]-b,g[1]-O,g[0]+b,g[1]+O],I=y.getTileRangeForExtentAndZ(w,R),A={};A[R]={};var U=this.createLoadedTileFinder(v,p,A),D=this.tmpExtent,L=this.tmpTileRange_;this.newTiles_=!1;for(var M=I.minX;M<=I.maxX;++M)for(var F=I.minY;F<=I.maxY;++F){var z=this.getTile(R,M,F,e);if(this.isDrawableTile(z)){var Y=(0,l.getUid)(this);if(z.getState()==r.default.LOADED){A[R][z.tileCoord.toString()]=z;var Z=z.inTransition(Y);this.newTiles_||!Z&&-1!==this.renderedTiles.indexOf(z)||(this.newTiles_=!0)}if(1===z.getAlpha(Y,e.time))continue}var k=y.getTileCoordChildTileRange(z.tileCoord,L,D),K=!1;k&&(K=U(R+1,k)),K||y.forEachTileCoordParentTileRange(z.tileCoord,U,L,D)}var X=j/c;(0,i.compose)(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/E,1/E,T,-_/2,-P/2);var G=(0,a.createTransformString)(this.pixelTransform);this.useContainer(t,G,u.opacity);var Q=this.context,N=Q.canvas;(0,i.makeInverse)(this.inversePixelTransform,this.pixelTransform),(0,i.compose)(this.tempTransform,_/2,P/2,X,X,0,-_/2,-P/2),N.width!=_||N.height!=P?(N.width=_,N.height=P):this.containerReused||Q.clearRect(0,0,_,P),C&&this.clipUnrotated(Q,e,C),(0,n.assign)(Q,v.getContextOptions()),this.preRender(Q,e),this.renderedTiles.length=0;var B,H,J,V=Object.keys(A).map(Number);V.sort(d.numberSafeCompareFunction),1!==u.opacity||this.containerReused&&!v.getOpaque(e.viewState.projection)?(B=[],H=[]):V=V.reverse();for(var W=V.length-1;W>=0;--W){var $=V[W],ee=v.getTilePixelSize($,f,p),te=y.getResolution($)/j,re=ee[0]*te*X,ie=ee[1]*te*X,ne=y.getTileCoordForCoordAndZ((0,o.getTopLeft)(q),$),oe=y.getTileCoordExtent(ne),ae=(0,i.apply)(this.tempTransform,[E*(oe[0]-q[0])/j,E*(q[3]-oe[3])/j]),se=E*v.getGutterForProjection(p),le=A[$];for(var de in le){var ue=(z=le[de]).tileCoord,he=ae[0]-(ne[1]-ue[1])*re,pe=Math.round(he+re),ce=ae[1]-(ne[2]-ue[2])*ie,ge=Math.round(ce+ie),Te=pe-(M=Math.round(he)),fe=ge-(F=Math.round(ce)),me=R===$;if(!(Z=me&&1!==z.getAlpha((0,l.getUid)(this),e.time)))if(B){Q.save(),J=[M,F,M+Te,F,M+Te,F+fe,M,F+fe];for(var ve=0,xe=B.length;vethis._maxQueueLength;)this._queue.shift().callback(null,null)},t.prototype._dispatch=function(){if(0===this._running&&this._queue.length>0){var e=this._queue.shift();this._job=e;var t=e.inputs[0].width,r=e.inputs[0].height,a=e.inputs.map(function(e){return e.data.buffer}),n=this._workers.length;if(this._running=n,1===n)this._workers[0].postMessage({buffers:a,meta:e.meta,imageOps:this._imageOps,width:t,height:r},a);else for(var i=e.inputs[0].data.length,s=4*Math.ceil(i/4/n),o=0;oStamen Design, under CC BY 3.0.',o.ATTRIBUTION],a={terrain:{extension:"jpg",opaque:!0},"terrain-background":{extension:"jpg",opaque:!0},"terrain-labels":{extension:"png",opaque:!1},"terrain-lines":{extension:"png",opaque:!1},"toner-background":{extension:"png",opaque:!0},toner:{extension:"png",opaque:!0},"toner-hybrid":{extension:"png",opaque:!1},"toner-labels":{extension:"png",opaque:!1},"toner-lines":{extension:"png",opaque:!1},"toner-lite":{extension:"png",opaque:!0},watercolor:{extension:"jpg",opaque:!0}},i={terrain:{minZoom:0,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:0,maxZoom:18}},s=function(e){function o(o){var n=o.layer.indexOf("-"),t=-1==n?o.layer:o.layer.slice(0,n),s=i[t],u=a[o.layer],p=void 0!==o.url?o.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+o.layer+"/{z}/{x}/{y}."+u.extension;return e.call(this,{attributions:r,cacheSize:o.cacheSize,crossOrigin:"anonymous",imageSmoothing:o.imageSmoothing,maxZoom:null!=o.maxZoom?o.maxZoom:s.maxZoom,minZoom:null!=o.minZoom?o.minZoom:s.minZoom,opaque:u.opaque,reprojectionErrorThreshold:o.reprojectionErrorThreshold,tileLoadFunction:o.tileLoadFunction,transition:o.transition,url:p,wrapX:o.wrapX})||this}return t(o,e),o}(e.default),u=s;exports.default=u; +},{"./XYZ.js":"knlU","./OSM.js":"Rmo4"}],"XUos":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=s(require("./TileImage.js")),e=require("../uri.js"),r=require("../obj.js"),i=require("../extent.js"),o=require("../math.js"),n=require("../size.js"),a=require("../tilecoord.js");function s(t){return t&&t.__esModule?t:{default:t}}var p=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),u=function(t){function s(e){var r=this,o=e||{};return(r=t.call(this,{attributions:o.attributions,cacheSize:o.cacheSize,crossOrigin:o.crossOrigin,imageSmoothing:o.imageSmoothing,projection:o.projection,reprojectionErrorThreshold:o.reprojectionErrorThreshold,tileGrid:o.tileGrid,tileLoadFunction:o.tileLoadFunction,url:o.url,urls:o.urls,wrapX:void 0===o.wrapX||o.wrapX,transition:o.transition})||this).params_=o.params||{},r.hidpi_=void 0===o.hidpi||o.hidpi,r.tmpExtent_=(0,i.createEmpty)(),r.setKey(r.getKeyForParams_()),r}return p(s,t),s.prototype.getKeyForParams_=function(){var t=0,e=[];for(var r in this.params_)e[t++]=r+"-"+this.params_[r];return e.join("/")},s.prototype.getParams=function(){return this.params_},s.prototype.getRequestUrl_=function(t,r,i,n,s,p){var u=this.urls;if(u){var l,c=s.getCode().split(":").pop();if(p.SIZE=r[0]+","+r[1],p.BBOX=i.join(","),p.BBOXSR=c,p.IMAGESR=c,p.DPI=Math.round(p.DPI?p.DPI*n:90*n),1==u.length)l=u[0];else l=u[(0,o.modulo)((0,a.hash)(t),u.length)];var h=l.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage");return(0,e.appendParams)(h,p)}},s.prototype.getTilePixelRatio=function(t){return this.hidpi_?t:1},s.prototype.updateParams=function(t){(0,r.assign)(this.params_,t),this.setKey(this.getKeyForParams_())},s.prototype.tileUrlFunction=function(t,e,i){var o=this.getTileGrid();if(o||(o=this.getTileGridForProjection(i)),!(o.getResolutions().length<=t[0])){1==e||this.hidpi_||(e=1);var a=o.getTileCoordExtent(t,this.tmpExtent_),s=(0,n.toSize)(o.getTileSize(t[0]),this.tmpSize);1!=e&&(s=(0,n.scale)(s,e,this.tmpSize));var p={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};return(0,r.assign)(p,this.params_),this.getRequestUrl_(t,s,a,e,i,p)}},s}(t.default),l=u;exports.default=l; +},{"./TileImage.js":"udAI","../uri.js":"n7G7","../obj.js":"mH6q","../extent.js":"QDir","../math.js":"B96G","../size.js":"TAHd","../tilecoord.js":"faTr"}],"dQMP":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=a(require("../Tile.js")),e=a(require("../TileState.js")),r=a(require("./XYZ.js")),i=require("../dom.js"),n=require("../tilecoord.js"),o=require("../size.js");function a(t){return t&&t.__esModule?t:{default:t}}var s=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),l=function(t){function r(r,i,n){var o=t.call(this,r,e.default.LOADED)||this;return o.tileSize_=i,o.text_=n,o.canvas_=null,o}return s(r,t),r.prototype.getImage=function(){if(this.canvas_)return this.canvas_;var t=this.tileSize_,e=(0,i.createCanvasContext2D)(t[0],t[1]);return e.strokeStyle="grey",e.strokeRect(.5,.5,t[0]+.5,t[1]+.5),e.fillStyle="grey",e.strokeStyle="white",e.textAlign="center",e.textBaseline="middle",e.font="24px sans-serif",e.lineWidth=4,e.strokeText(this.text_,t[0]/2,t[1]/2,t[0]),e.fillText(this.text_,t[0]/2,t[1]/2,t[0]),this.canvas_=e.canvas,e.canvas},r.prototype.load=function(){},r}(t.default),u=function(t){function e(e){var r=e||{};return t.call(this,{opaque:!1,projection:r.projection,tileGrid:r.tileGrid,wrapX:void 0===r.wrapX||r.wrapX,zDirection:r.zDirection})||this}return s(e,t),e.prototype.getTile=function(t,e,r){var i=(0,n.getKeyZXY)(t,e,r);if(this.tileCache.containsKey(i))return this.tileCache.get(i);var a=(0,o.toSize)(this.tileGrid.getTileSize(t)),s=[t,e,r],u=this.getTileCoordForTileUrlFunction(s),c=void 0;c=u?"z:"+u[0]+" x:"+u[1]+" y:"+u[2]:"none";var f=new l(s,a,c);return this.tileCache.set(i,f),f},e}(r.default),c=u;exports.default=c; +},{"../Tile.js":"IWZI","../TileState.js":"u3kG","./XYZ.js":"knlU","../dom.js":"Xno5","../tilecoord.js":"faTr","../size.js":"TAHd"}],"V9RY":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=l(require("./State.js")),e=l(require("./TileImage.js")),r=require("../extent.js"),i=require("../asserts.js"),o=require("../tileurlfunction.js"),n=require("../tilegrid.js"),s=require("../proj.js"),a=require("../net.js");function l(t){return t&&t.__esModule?t:{default:t}}var u=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),c=function(e){function l(r){var o=e.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,imageSmoothing:r.imageSmoothing,projection:(0,s.get)("EPSG:3857"),reprojectionErrorThreshold:r.reprojectionErrorThreshold,state:t.default.LOADING,tileLoadFunction:r.tileLoadFunction,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition})||this;if(o.tileJSON_=null,o.tileSize_=r.tileSize,r.url)if(r.jsonp)(0,a.jsonp)(r.url,o.handleTileJSONResponse.bind(o),o.handleTileJSONError.bind(o));else{var n=new XMLHttpRequest;n.addEventListener("load",o.onXHRLoad_.bind(o)),n.addEventListener("error",o.onXHRError_.bind(o)),n.open("GET",r.url),n.send()}else r.tileJSON?o.handleTileJSONResponse(r.tileJSON):(0,i.assert)(!1,51);return o}return u(l,e),l.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||e.status>=200&&e.status<300){var r=void 0;try{r=JSON.parse(e.responseText)}catch(i){return void this.handleTileJSONError()}this.handleTileJSONResponse(r)}else this.handleTileJSONError()},l.prototype.onXHRError_=function(t){this.handleTileJSONError()},l.prototype.getTileJSON=function(){return this.tileJSON_},l.prototype.handleTileJSONResponse=function(e){var i,a=(0,s.get)("EPSG:4326"),l=this.getProjection();if(void 0!==e.bounds){var u=(0,s.getTransformFromProjections)(a,l);i=(0,r.applyTransform)(e.bounds,u)}var c=e.minzoom||0,d=e.maxzoom||22,p=(0,n.createXYZ)({extent:(0,n.extentFromProjection)(l),maxZoom:d,minZoom:c,tileSize:this.tileSize_});if(this.tileGrid=p,this.tileUrlFunction=(0,o.createFromTemplates)(e.tiles,p),void 0!==e.attribution&&!this.getAttributions()){var h=void 0!==i?i:a.getExtent();this.setAttributions(function(t){return(0,r.intersects)(h,t.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState(t.default.READY)},l.prototype.handleTileJSONError=function(){this.setState(t.default.ERROR)},l}(e.default),d=c;exports.default=d; +},{"./State.js":"iC8j","./TileImage.js":"udAI","../extent.js":"QDir","../asserts.js":"fLG6","../tileurlfunction.js":"p1vZ","../tilegrid.js":"ExRx","../proj.js":"Diht","../net.js":"SU9K"}],"IcO7":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("./common.js"),e=c(require("./TileImage.js")),r=c(require("./WMSServerType.js")),i=require("../uri.js"),o=require("../asserts.js"),s=require("../obj.js"),a=require("../extent.js"),n=require("../size.js"),u=require("../reproj.js"),p=require("../string.js"),h=require("../proj.js"),l=require("../math.js"),_=require("../tilecoord.js");function c(t){return t&&t.__esModule?t:{default:t}}var g=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),S=function(e){function c(t){var r=this,i=t||{},o=i.params||{},s=!("TRANSPARENT"in o)||o.TRANSPARENT;return(r=e.call(this,{attributions:i.attributions,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,imageSmoothing:i.imageSmoothing,opaque:!s,projection:i.projection,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileClass:i.tileClass,tileGrid:i.tileGrid,tileLoadFunction:i.tileLoadFunction,url:i.url,urls:i.urls,wrapX:void 0===i.wrapX||i.wrapX,transition:i.transition})||this).gutter_=void 0!==i.gutter?i.gutter:0,r.params_=o,r.v13_=!0,r.serverType_=i.serverType,r.hidpi_=void 0===i.hidpi||i.hidpi,r.tmpExtent_=(0,a.createEmpty)(),r.updateV13_(),r.setKey(r.getKeyForParams_()),r}return g(c,e),c.prototype.getFeatureInfoUrl=function(e,r,i,o){var p=(0,h.get)(i),l=this.getProjection(),_=this.getTileGrid();_||(_=this.getTileGridForProjection(p));var c=_.getZForResolution(r,this.zDirection),g=_.getTileCoordForCoordAndZ(e,c);if(!(_.getResolutions().length<=g[0])){var S=_.getResolution(g[0]),f=_.getTileCoordExtent(g,this.tmpExtent_),d=(0,n.toSize)(_.getTileSize(g[0]),this.tmpSize),E=this.gutter_;0!==E&&(d=(0,n.buffer)(d,E,this.tmpSize),f=(0,a.buffer)(f,S*E,f)),l&&l!==p&&(S=(0,u.calculateSourceResolution)(l,p,e,S),f=(0,h.transformExtent)(f,p,l),e=(0,h.transform)(e,p,l));var R={SERVICE:"WMS",VERSION:t.DEFAULT_WMS_VERSION,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};(0,s.assign)(R,this.params_,o);var T=Math.floor((e[0]-f[0])/S),v=Math.floor((f[3]-e[1])/S);return R[this.v13_?"I":"X"]=T,R[this.v13_?"J":"Y"]=v,this.getRequestUrl_(g,d,f,1,l||p,R)}},c.prototype.getLegendUrl=function(e,r){if(void 0!==this.urls[0]){var o={SERVICE:"WMS",VERSION:t.DEFAULT_WMS_VERSION,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===r||void 0===r.LAYER){var a=this.params_.LAYERS;if(!(!Array.isArray(a)||1===a.length))return;o.LAYER=a}if(void 0!==e){var n=this.getProjection()?this.getProjection().getMetersPerUnit():1;o.SCALE=e*n/28e-5}return(0,s.assign)(o,r),(0,i.appendParams)(this.urls[0],o)}},c.prototype.getGutter=function(){return this.gutter_},c.prototype.getParams=function(){return this.params_},c.prototype.getRequestUrl_=function(t,e,s,a,n,u){var p=this.urls;if(p){if(u.WIDTH=e[0],u.HEIGHT=e[1],u[this.v13_?"CRS":"SRS"]=n.getCode(),"STYLES"in this.params_||(u.STYLES=""),1!=a)switch(this.serverType_){case r.default.GEOSERVER:var h=90*a+.5|0;"FORMAT_OPTIONS"in u?u.FORMAT_OPTIONS+=";dpi:"+h:u.FORMAT_OPTIONS="dpi:"+h;break;case r.default.MAPSERVER:u.MAP_RESOLUTION=90*a;break;case r.default.CARMENTA_SERVER:case r.default.QGIS:u.DPI=90*a;break;default:(0,o.assert)(!1,52)}var c,g=n.getAxisOrientation(),S=s;if(this.v13_&&"ne"==g.substr(0,2)){var f=void 0;f=s[0],S[0]=s[1],S[1]=f,f=s[2],S[2]=s[3],S[3]=f}if(u.BBOX=S.join(","),1==p.length)c=p[0];else c=p[(0,l.modulo)((0,_.hash)(t),p.length)];return(0,i.appendParams)(c,u)}},c.prototype.getTilePixelRatio=function(t){return this.hidpi_&&void 0!==this.serverType_?t:1},c.prototype.getKeyForParams_=function(){var t=0,e=[];for(var r in this.params_)e[t++]=r+"-"+this.params_[r];return e.join("/")},c.prototype.updateParams=function(t){(0,s.assign)(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())},c.prototype.updateV13_=function(){var e=this.params_.VERSION||t.DEFAULT_WMS_VERSION;this.v13_=(0,p.compareVersions)(e,"1.3")>=0},c.prototype.tileUrlFunction=function(e,r,i){var o=this.getTileGrid();if(o||(o=this.getTileGridForProjection(i)),!(o.getResolutions().length<=e[0])){1==r||this.hidpi_&&void 0!==this.serverType_||(r=1);var u=o.getResolution(e[0]),p=o.getTileCoordExtent(e,this.tmpExtent_),h=(0,n.toSize)(o.getTileSize(e[0]),this.tmpSize),l=this.gutter_;0!==l&&(h=(0,n.buffer)(h,l,this.tmpSize),p=(0,a.buffer)(p,u*l,p)),1!=r&&(h=(0,n.scale)(h,r,this.tmpSize));var _={SERVICE:"WMS",VERSION:t.DEFAULT_WMS_VERSION,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return(0,s.assign)(_,this.params_),this.getRequestUrl_(e,h,p,r,i,_)}},c}(e.default),f=S;exports.default=f; +},{"./common.js":"a8mu","./TileImage.js":"udAI","./WMSServerType.js":"mXwm","../uri.js":"n7G7","../asserts.js":"fLG6","../obj.js":"mH6q","../extent.js":"QDir","../size.js":"TAHd","../reproj.js":"U255","../string.js":"AiCK","../proj.js":"Diht","../math.js":"B96G","../tilecoord.js":"faTr"}],"oCPk":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.CustomTile=void 0;var t=c(require("../events/EventType.js")),e=c(require("./State.js")),i=c(require("../Tile.js")),r=c(require("./Tile.js")),n=c(require("../TileState.js")),o=require("../extent.js"),s=require("../asserts.js"),a=require("../tileurlfunction.js"),l=require("../tilegrid.js"),u=require("../tilecoord.js"),h=require("../proj.js"),d=require("../events.js"),p=require("../net.js");function c(t){return t&&t.__esModule?t:{default:t}}var f=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),_=function(e){function i(t,i,r,n,o,s){var a=e.call(this,t,i)||this;return a.src_=r,a.extent_=n,a.preemptive_=o,a.grid_=null,a.keys_=null,a.data_=null,a.jsonp_=s,a}return f(i,e),i.prototype.getImage=function(){return null},i.prototype.getData=function(t){if(!this.grid_||!this.keys_)return null;var e=(t[0]-this.extent_[0])/(this.extent_[2]-this.extent_[0]),i=(t[1]-this.extent_[1])/(this.extent_[3]-this.extent_[1]),r=this.grid_[Math.floor((1-i)*this.grid_.length)];if("string"!=typeof r)return null;var n=r.charCodeAt(Math.floor(e*r.length));n>=93&&n--,n>=35&&n--;var o=null;if((n-=32)in this.keys_){var s=this.keys_[n];o=this.data_&&s in this.data_?this.data_[s]:s}return o},i.prototype.forDataAtCoordinate=function(e,i,r){this.state==n.default.EMPTY&&!0===r?(this.state=n.default.IDLE,(0,d.listenOnce)(this,t.default.CHANGE,function(t){i(this.getData(e))},this),this.loadInternal_()):!0===r?setTimeout(function(){i(this.getData(e))}.bind(this),0):i(this.getData(e))},i.prototype.getKey=function(){return this.src_},i.prototype.handleError_=function(){this.state=n.default.ERROR,this.changed()},i.prototype.handleLoad_=function(t){this.grid_=t.grid,this.keys_=t.keys,this.data_=t.data,this.state=n.default.LOADED,this.changed()},i.prototype.loadInternal_=function(){if(this.state==n.default.IDLE)if(this.state=n.default.LOADING,this.jsonp_)(0,p.jsonp)(this.src_,this.handleLoad_.bind(this),this.handleError_.bind(this));else{var t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",this.src_),t.send()}},i.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||e.status>=200&&e.status<300){var i=void 0;try{i=JSON.parse(e.responseText)}catch(r){return void this.handleError_()}this.handleLoad_(i)}else this.handleError_()},i.prototype.onXHRError_=function(t){this.handleError_()},i.prototype.load=function(){this.preemptive_?this.loadInternal_():this.setState(n.default.EMPTY)},i}(i.default);exports.CustomTile=_;var v=function(t){function i(i){var r=t.call(this,{projection:(0,h.get)("EPSG:3857"),state:e.default.LOADING})||this;if(r.preemptive_=void 0===i.preemptive||i.preemptive,r.tileUrlFunction_=a.nullTileUrlFunction,r.template_=void 0,r.jsonp_=i.jsonp||!1,i.url)if(r.jsonp_)(0,p.jsonp)(i.url,r.handleTileJSONResponse.bind(r),r.handleTileJSONError.bind(r));else{var n=new XMLHttpRequest;n.addEventListener("load",r.onXHRLoad_.bind(r)),n.addEventListener("error",r.onXHRError_.bind(r)),n.open("GET",i.url),n.send()}else i.tileJSON?r.handleTileJSONResponse(i.tileJSON):(0,s.assert)(!1,51);return r}return f(i,t),i.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||e.status>=200&&e.status<300){var i=void 0;try{i=JSON.parse(e.responseText)}catch(r){return void this.handleTileJSONError()}this.handleTileJSONResponse(i)}else this.handleTileJSONError()},i.prototype.onXHRError_=function(t){this.handleTileJSONError()},i.prototype.getTemplate=function(){return this.template_},i.prototype.forDataAtCoordinateAndResolution=function(t,e,i,r){if(this.tileGrid){var n=this.tileGrid.getZForResolution(e,this.zDirection),o=this.tileGrid.getTileCoordForCoordAndZ(t,n);this.getTile(o[0],o[1],o[2],1,this.getProjection()).forDataAtCoordinate(t,i,r)}else!0===r?setTimeout(function(){i(null)},0):i(null)},i.prototype.handleTileJSONError=function(){this.setState(e.default.ERROR)},i.prototype.handleTileJSONResponse=function(t){var i,r=(0,h.get)("EPSG:4326"),n=this.getProjection();if(void 0!==t.bounds){var s=(0,h.getTransformFromProjections)(r,n);i=(0,o.applyTransform)(t.bounds,s)}var u=t.minzoom||0,d=t.maxzoom||22,p=(0,l.createXYZ)({extent:(0,l.extentFromProjection)(n),maxZoom:d,minZoom:u});this.tileGrid=p,this.template_=t.template;var c=t.grids;if(c){if(this.tileUrlFunction_=(0,a.createFromTemplates)(c,p),void 0!==t.attribution){var f=void 0!==i?i:r.getExtent();this.setAttributions(function(e){return(0,o.intersects)(f,e.extent)?[t.attribution]:null})}this.setState(e.default.READY)}else this.setState(e.default.ERROR)},i.prototype.getTile=function(t,e,i,r,o){var s=(0,u.getKeyZXY)(t,e,i);if(this.tileCache.containsKey(s))return this.tileCache.get(s);var a=[t,e,i],l=this.getTileCoordForTileUrlFunction(a,o),h=this.tileUrlFunction_(l,r,o),d=new _(a,void 0!==h?n.default.IDLE:n.default.EMPTY,void 0!==h?h:"",this.tileGrid.getTileCoordExtent(a),this.preemptive_,this.jsonp_);return this.tileCache.set(s,d),d},i.prototype.useTile=function(t,e,i){var r=(0,u.getKeyZXY)(t,e,i);this.tileCache.containsKey(r)&&this.tileCache.get(r)},i}(r.default),y=v;exports.default=y; +},{"../events/EventType.js":"C8cu","./State.js":"iC8j","../Tile.js":"IWZI","./Tile.js":"JECm","../TileState.js":"u3kG","../extent.js":"QDir","../asserts.js":"fLG6","../tileurlfunction.js":"p1vZ","../tilegrid.js":"ExRx","../tilecoord.js":"faTr","../proj.js":"Diht","../events.js":"UqnM","../net.js":"SU9K"}],"A6uo":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.defaultLoadFunction=T,exports.default=void 0;var e=f(require("../events/EventType.js")),t=f(require("../VectorTile.js")),i=f(require("../TileCache.js")),r=f(require("../TileState.js")),o=f(require("./UrlTile.js")),n=f(require("../VectorRenderTile.js")),l=require("../extent.js"),a=require("../tilegrid.js"),s=require("../array.js"),u=require("../tilecoord.js"),c=require("../featureloader.js"),d=require("../size.js");function f(e){return e&&e.__esModule?e:{default:e}}var h=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),p=function(o){function c(e){var r=this,n=e.projection||"EPSG:3857",l=e.extent||(0,a.extentFromProjection)(n),s=e.tileGrid||(0,a.createXYZ)({extent:l,maxResolution:e.maxResolution,maxZoom:void 0!==e.maxZoom?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});return(r=o.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,opaque:!1,projection:n,state:e.state,tileGrid:s,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:T,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:void 0===e.zDirection?1:e.zDirection})||this).format_=e.format?e.format:null,r.loadingTiles_={},r.sourceTileCache=new i.default(r.tileCache.highWaterMark),r.overlaps_=null==e.overlaps||e.overlaps,r.tileClass=e.tileClass?e.tileClass:t.default,r.tileGrids_={},r}return h(c,o),c.prototype.getFeaturesInExtent=function(e){var t=[],i=this.tileCache;if(0===i.getCount())return t;var o=(0,u.fromKey)(i.peekFirstKey())[0],n=this.tileGrid;return i.forEach(function(i){if(i.tileCoord[0]===o&&i.getState()===r.default.LOADED)for(var a=i.getSourceTiles(),s=0,u=a.length;s0&&E[0].tileCoord[0]===v)p=E,g=!0,T=v;else{p=[],T=v+1;do{--T,g=!0,f.forEachTileCoord(u,T,function(n){var l,a=this.tileUrlFunction(n,t,i);if(void 0!==a)if(this.sourceTileCache.containsKey(a)){var s=(l=this.sourceTileCache.get(a)).getState();if(s===r.default.LOADED||s===r.default.ERROR||s===r.default.EMPTY)return void p.push(l)}else T===v&&((l=new this.tileClass(n,r.default.IDLE,a,this.format_,this.tileLoadFunction)).extent=f.getTileCoordExtent(n),l.projection=i,l.resolution=f.getResolution(n[0]),this.sourceTileCache.set(a,l),l.addEventListener(e.default.CHANGE,this.handleTileChange.bind(this)),l.load());g=g&&l&&l.getState()===r.default.LOADED,l&&l.getState()!==r.default.EMPTY&&o.getState()===r.default.IDLE&&(o.loadingSourceTiles++,l.addEventListener(e.default.CHANGE,function t(){var i=l.getState(),n=l.getKey();if(i===r.default.LOADED||i===r.default.ERROR){i===r.default.LOADED?(l.removeEventListener(e.default.CHANGE,t),o.loadingSourceTiles--,delete o.errorSourceTileKeys[n]):i===r.default.ERROR&&(o.errorSourceTileKeys[n]=!0);var a=Object.keys(o.errorSourceTileKeys).length;o.loadingSourceTiles-a==0&&(o.hifi=0===a,o.sourceZ=v,o.setState(r.default.LOADED))}}))}.bind(this)),g||(p.length=0)}while(!g&&T>C)}return o.getState()===r.default.IDLE&&o.setState(r.default.LOADING),g&&(o.hifi=v===T,o.sourceZ=T,o.getState()0)||(0,e.find)(l,function(e){return r.Identifier==e.TileMatrix||-1===r.Identifier.indexOf(":")&&t.Identifier+":"+r.Identifier===e.TileMatrix})){u.push(r.Identifier);var i=28e-5*r.ScaleDenominator/x,n=r.TileWidth,o=r.TileHeight;h?a.push([r.TopLeftCorner[1],r.TopLeftCorner[0]]):a.push(r.TopLeftCorner),s.push(i),f.push(n==o?n:[n,o]),p.push([r.MatrixWidth,r.MatrixHeight])}}),new o({extent:i,origins:a,resolutions:s,matrixIds:u,tileSizes:f,sizes:p})}exports.default=s; +},{"./TileGrid.js":"dpZ6","../array.js":"luEr","../proj.js":"Diht"}],"LIR5":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.optionsFromCapabilities=d,exports.default=void 0;var e=l(require("./TileImage.js")),t=l(require("./WMTSRequestEncoding.js")),i=require("../uri.js"),r=require("../obj.js"),n=require("../tilegrid/WMTS.js"),o=require("../tileurlfunction.js"),a=require("../proj.js"),s=require("../array.js");function l(e){return e&&e.__esModule?e:{default:e}}var u=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),c=function(e){function n(i){var r=this,n=void 0!==i.requestEncoding?i.requestEncoding:t.default.KVP,a=i.tileGrid,s=i.urls;return void 0===s&&void 0!==i.url&&(s=(0,o.expandUrl)(i.url)),(r=e.call(this,{attributions:i.attributions,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,imageSmoothing:i.imageSmoothing,projection:i.projection,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileClass:i.tileClass,tileGrid:a,tileLoadFunction:i.tileLoadFunction,tilePixelRatio:i.tilePixelRatio,urls:s,wrapX:void 0!==i.wrapX&&i.wrapX,transition:i.transition})||this).version_=void 0!==i.version?i.version:"1.0.0",r.format_=void 0!==i.format?i.format:"image/jpeg",r.dimensions_=void 0!==i.dimensions?i.dimensions:{},r.layer_=i.layer,r.matrixSet_=i.matrixSet,r.style_=i.style,r.requestEncoding_=n,r.setKey(r.getKeyForDimensions_()),s&&s.length>0&&(r.tileUrlFunction=(0,o.createFromTileUrlFunctions)(s.map(r.createFromWMTSTemplate.bind(r)))),r}return u(n,e),n.prototype.setUrls=function(e){this.urls=e;var t=e.join("\n");this.setTileUrlFunction((0,o.createFromTileUrlFunctions)(e.map(this.createFromWMTSTemplate.bind(this))),t)},n.prototype.getDimensions=function(){return this.dimensions_},n.prototype.getFormat=function(){return this.format_},n.prototype.getLayer=function(){return this.layer_},n.prototype.getMatrixSet=function(){return this.matrixSet_},n.prototype.getRequestEncoding=function(){return this.requestEncoding_},n.prototype.getStyle=function(){return this.style_},n.prototype.getVersion=function(){return this.version_},n.prototype.getKeyForDimensions_=function(){var e=0,t=[];for(var i in this.dimensions_)t[e++]=i+"-"+this.dimensions_[i];return t.join("/")},n.prototype.updateDimensions=function(e){(0,r.assign)(this.dimensions_,e),this.setKey(this.getKeyForDimensions_())},n.prototype.createFromWMTSTemplate=function(e){var n=this.requestEncoding_,o={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};n==t.default.KVP&&(0,r.assign)(o,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),e=n==t.default.KVP?(0,i.appendParams)(e,o):e.replace(/\{(\w+?)\}/g,function(e,t){return t.toLowerCase()in o?o[t.toLowerCase()]:e});var a=this.tileGrid,s=this.dimensions_;return function(o,l,u){if(o){var c={TileMatrix:a.getMatrixId(o[0]),TileCol:o[1],TileRow:o[2]};(0,r.assign)(c,s);var f=e;return f=n==t.default.KVP?(0,i.appendParams)(f,c):f.replace(/\{(\w+?)\}/g,function(e,t){return c[t]})}}},n}(e.default),f=c;function d(e,i){var r=e.Contents.Layer,o=(0,s.find)(r,function(e,t,r){return e.Identifier==i.layer});if(null===o)return null;var l,u=e.Contents.TileMatrixSet;(l=o.TileMatrixSetLink.length>1?"projection"in i?(0,s.findIndex)(o.TileMatrixSetLink,function(e,t,r){var n=(0,s.find)(u,function(t){return t.Identifier==e.TileMatrixSet}).SupportedCRS,o=(0,a.get)(n),l=(0,a.get)(i.projection);return o&&l?(0,a.equivalent)(o,l):n==i.projection}):(0,s.findIndex)(o.TileMatrixSetLink,function(e,t,r){return e.TileMatrixSet==i.matrixSet}):0)<0&&(l=0);var c=o.TileMatrixSetLink[l].TileMatrixSet,f=o.TileMatrixSetLink[l].TileMatrixSetLimits,d=o.Format[0];"format"in i&&(d=i.format),(l=(0,s.findIndex)(o.Style,function(e,t,r){return"style"in i?e.Title==i.style:e.isDefault}))<0&&(l=0);var p=o.Style[l].Identifier,m={};"Dimension"in o&&o.Dimension.forEach(function(e,t,i){var r=e.Identifier,n=e.Default;void 0===n&&(n=e.Value[0]),m[r]=n});var h,T=e.Contents.TileMatrixSet,g=(0,s.find)(T,function(e,t,i){return e.Identifier==c}),y=g.SupportedCRS;if(y&&(h=(0,a.get)(y)),"projection"in i){var v=(0,a.get)(i.projection);v&&(h&&!(0,a.equivalent)(v,h)||(h=v))}var x="ne"==h.getAxisOrientation().substr(0,2),M=g.TileMatrix[0],S={MinTileCol:0,MinTileRow:0,MaxTileCol:M.MatrixWidth-1,MaxTileRow:M.MatrixHeight-1};if(f){S=f[f.length-1];var _=(0,s.find)(g.TileMatrix,function(e){return e.Identifier===S.TileMatrix||g.Identifier+":"+e.Identifier===S.TileMatrix});_&&(M=_)}var j=28e-5*M.ScaleDenominator/h.getMetersPerUnit(),C=x?[M.TopLeftCorner[1],M.TopLeftCorner[0]]:M.TopLeftCorner,q=M.TileWidth*j,F=M.TileHeight*j,E=[C[0]+q*S.MinTileCol,C[1]-F*(1+S.MaxTileRow),C[0]+q*(1+S.MaxTileCol),C[1]-F*S.MinTileRow];null===h.getExtent()&&h.setExtent(E);var P=(0,n.createFromCapabilitiesMatrixSet)(g,E,f),w=[],L=i.requestEncoding;if(L=void 0!==L?L:"","OperationsMetadata"in e&&"GetTile"in e.OperationsMetadata)for(var R=e.OperationsMetadata.GetTile.DCP.HTTP.Get,O=0,b=R.length;O=0;i--)this.postProcessPasses_[i].init(e);t.bindTexture(t.TEXTURE_2D,null),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.enable(t.BLEND),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),t.useProgram(this.currentProgram_),this.applyFrameState(e),this.applyUniforms(e)},_.prototype.prepareDrawToRenderTarget=function(e,t,r){var o=this.getGL(),a=t.getSize();o.bindFramebuffer(o.FRAMEBUFFER,t.getFramebuffer()),o.viewport(0,0,a[0],a[1]),o.bindTexture(o.TEXTURE_2D,t.getTexture()),o.clearColor(0,0,0,0),o.clear(o.COLOR_BUFFER_BIT),o.enable(o.BLEND),o.blendFunc(o.ONE,r?o.ZERO:o.ONE_MINUS_SRC_ALPHA),o.useProgram(this.currentProgram_),this.applyFrameState(e),this.applyUniforms(e)},_.prototype.drawElements=function(e,t){var r=this.getGL(),o=r.UNSIGNED_INT,a=t-e,i=4*e;r.drawElements(r.TRIANGLES,a,o,i)},_.prototype.finalizeDraw=function(e){for(var t=0;tthis.size_[0]||r>=this.size_[1])return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e;this.readAll();var i=Math.floor(t)+(this.size_[1]-Math.floor(r)-1)*this.size_[0];return e[0]=this.data_[4*i],e[1]=this.data_[4*i+1],e[2]=this.data_[4*i+2],e[3]=this.data_[4*i+3],e},r.prototype.getTexture=function(){return this.texture_},r.prototype.getFramebuffer=function(){return this.framebuffer_},r.prototype.updateSize_=function(){var t=this.size_,e=this.helper_.getGL();this.texture_=this.helper_.createTexture(t,null,this.texture_),e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer_),e.viewport(0,0,t[0],t[1]),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.texture_,0),this.data_=new Uint8Array(t[0]*t[1]*4)},r}(),i=r;exports.default=i; +},{"../array.js":"luEr"}],"z0A1":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.create=n;var e='var e="function"==typeof Object.assign?Object.assign:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,o=arguments.length;r>1,i=-7,N=t?h-1:0,n=t?-1:1,s=a[o+N];for(N+=n,M=s&(1<<-i)-1,s>>=-i,i+=w;i>0;M=256*M+a[o+N],N+=n,i-=8);for(p=M&(1<<-i)-1,M>>=-i,i+=r;i>0;p=256*p+a[o+N],N+=n,i-=8);if(0===M)M=1-e;else{if(M===f)return p?NaN:1/0*(s?-1:1);p+=Math.pow(2,r),M-=e}return(s?-1:1)*p*Math.pow(2,M-r)},exports.write=function(a,o,t,r,h,M){var p,w,f,e=8*M-h-1,i=(1<>1,n=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,s=r?0:M-1,u=r?1:-1,l=o<0||0===o&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(w=isNaN(o)?1:0,p=i):(p=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-p))<1&&(p--,f*=2),(o+=p+N>=1?n/f:n*Math.pow(2,1-N))*f>=2&&(p++,f/=2),p+N>=i?(w=0,p=i):p+N>=1?(w=(o*f-1)*Math.pow(2,h),p+=N):(w=o*Math.pow(2,N-1)*Math.pow(2,h),p=0));h>=8;a[t+s]=255&w,s+=u,w/=256,h-=8);for(p=p<0;a[t+s]=255&p,s+=u,p/=256,e-=8);a[t+s-u]|=128*l}; +},{}],"UzHN":[function(require,module,exports) { +"use strict";module.exports=i;var t=require("ieee754");function i(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}i.Varint=0,i.Fixed64=1,i.Bytes=2,i.Fixed32=5;var e=4294967296,r=1/e,s=12,n="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function o(t,i,e){var r,s,n=e.buf;if(r=(112&(s=n[e.pos++]))>>4,s<128)return a(t,r,i);if(r|=(127&(s=n[e.pos++]))<<3,s<128)return a(t,r,i);if(r|=(127&(s=n[e.pos++]))<<10,s<128)return a(t,r,i);if(r|=(127&(s=n[e.pos++]))<<17,s<128)return a(t,r,i);if(r|=(127&(s=n[e.pos++]))<<24,s<128)return a(t,r,i);if(r|=(1&(s=n[e.pos++]))<<31,s<128)return a(t,r,i);throw new Error("Expected varint not more than 10 bytes")}function h(t){return t.type===i.Bytes?t.readVarint()+t.pos:t.pos+1}function a(t,i,e){return e?4294967296*i+(t>>>0):4294967296*(i>>>0)+(t>>>0)}function u(t,i){var e,r;if(t>=0?(e=t%4294967296|0,r=t/4294967296|0):(r=~(-t/4294967296),4294967295^(e=~(-t%4294967296))?e=e+1|0:(e=0,r=r+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");i.realloc(10),f(e,r,i),d(r,i)}function f(t,i,e){e.buf[e.pos++]=127&t|128,t>>>=7,e.buf[e.pos++]=127&t|128,t>>>=7,e.buf[e.pos++]=127&t|128,t>>>=7,e.buf[e.pos++]=127&t|128,t>>>=7,e.buf[e.pos]=127&t}function d(t,i){var e=(7&t)<<4;i.buf[i.pos++]|=e|((t>>>=3)?128:0),t&&(i.buf[i.pos++]=127&t|((t>>>=7)?128:0),t&&(i.buf[i.pos++]=127&t|((t>>>=7)?128:0),t&&(i.buf[i.pos++]=127&t|((t>>>=7)?128:0),t&&(i.buf[i.pos++]=127&t|((t>>>=7)?128:0),t&&(i.buf[i.pos++]=127&t)))))}function p(t,i,e){var r=i<=16383?1:i<=2097151?2:i<=268435455?3:Math.floor(Math.log(i)/(7*Math.LN2));e.realloc(r);for(var s=e.pos-1;s>=t;s--)e.buf[s+r]=e.buf[s]}function l(t,i){for(var e=0;e>>8,t[e+2]=i>>>16,t[e+3]=i>>>24}function B(t,i){return(t[i]|t[i+1]<<8|t[i+2]<<16)+(t[i+3]<<24)}function k(t,i,e){for(var r="",s=i;s239?4:a>223?3:a>191?2:1;if(s+f>e)break;1===f?a<128&&(u=a):2===f?128==(192&(n=t[s+1]))&&(u=(31&a)<<6|63&n)<=127&&(u=null):3===f?(n=t[s+1],o=t[s+2],128==(192&n)&&128==(192&o)&&((u=(15&a)<<12|(63&n)<<6|63&o)<=2047||u>=55296&&u<=57343)&&(u=null)):4===f&&(n=t[s+1],o=t[s+2],h=t[s+3],128==(192&n)&&128==(192&o)&&128==(192&h)&&((u=(15&a)<<18|(63&n)<<12|(63&o)<<6|63&h)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,f=1):u>65535&&(u-=65536,r+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),r+=String.fromCharCode(u),s+=f}return r}function M(t,i,e){return n.decode(t.subarray(i,e))}function P(t,i,e){for(var r,s,n=0;n55295&&r<57344){if(!s){r>56319||n+1===i.length?(t[e++]=239,t[e++]=191,t[e++]=189):s=r;continue}if(r<56320){t[e++]=239,t[e++]=191,t[e++]=189,s=r;continue}r=s-55296<<10|r-56320|65536,s=null}else s&&(t[e++]=239,t[e++]=191,t[e++]=189,s=null);r<128?t[e++]=r:(r<2048?t[e++]=r>>6|192:(r<65536?t[e++]=r>>12|224:(t[e++]=r>>18|240,t[e++]=r>>12&63|128),t[e++]=r>>6&63|128),t[e++]=63&r|128)}return e}i.prototype={destroy:function(){this.buf=null},readFields:function(t,i,e){for(e=e||this.length;this.pos>3,n=this.pos;this.type=7&r,t(s,i,this),this.pos===n&&this.skip(r)}return i},readMessage:function(t,i){return this.readFields(t,i,this.readVarint()+this.pos)},readFixed32:function(){var t=V(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=B(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=V(this.buf,this.pos)+V(this.buf,this.pos+4)*e;return this.pos+=8,t},readSFixed64:function(){var t=V(this.buf,this.pos)+B(this.buf,this.pos+4)*e;return this.pos+=8,t},readFloat:function(){var i=t.read(this.buf,this.pos,!0,23,4);return this.pos+=4,i},readDouble:function(){var i=t.read(this.buf,this.pos,!0,52,8);return this.pos+=8,i},readVarint:function(t){var i,e,r=this.buf;return i=127&(e=r[this.pos++]),e<128?i:(i|=(127&(e=r[this.pos++]))<<7,e<128?i:(i|=(127&(e=r[this.pos++]))<<14,e<128?i:(i|=(127&(e=r[this.pos++]))<<21,e<128?i:o(i|=(15&(e=r[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,i=this.pos;return this.pos=t,t-i>=s&&n?M(this.buf,i,t):k(this.buf,i,t)},readBytes:function(){var t=this.readVarint()+this.pos,i=this.buf.subarray(this.pos,t);return this.pos=t,i},readPackedVarint:function(t,e){if(this.type!==i.Bytes)return t.push(this.readVarint(e));var r=h(this);for(t=t||[];this.pos127;);else if(e===i.Bytes)this.pos=this.readVarint()+this.pos;else if(e===i.Fixed32)this.pos+=4;else{if(e!==i.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,i){this.writeVarint(t<<3|i)},realloc:function(t){for(var i=this.length||16;i268435455||t<0?u(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var i=this.pos;this.pos=P(this.buf,t,this.pos);var e=this.pos-i;e>=128&&p(i,e,this),this.pos=i-1,this.writeVarint(e),this.pos+=e},writeFloat:function(i){this.realloc(4),t.write(this.buf,i,this.pos,!0,23,4),this.pos+=4},writeDouble:function(i){this.realloc(8),t.write(this.buf,i,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var i=t.length;this.writeVarint(i),this.realloc(i);for(var e=0;e=128&&p(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeMessage:function(t,e,r){this.writeTag(t,i.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,i){i.length&&this.writeMessage(t,l,i)},writePackedSVarint:function(t,i){i.length&&this.writeMessage(t,c,i)},writePackedBoolean:function(t,i){i.length&&this.writeMessage(t,g,i)},writePackedFloat:function(t,i){i.length&&this.writeMessage(t,w,i)},writePackedDouble:function(t,i){i.length&&this.writeMessage(t,F,i)},writePackedFixed32:function(t,i){i.length&&this.writeMessage(t,b,i)},writePackedSFixed32:function(t,i){i.length&&this.writeMessage(t,x,i)},writePackedFixed64:function(t,i){i.length&&this.writeMessage(t,v,i)},writePackedSFixed64:function(t,i){i.length&&this.writeMessage(t,y,i)},writeBytesField:function(t,e){this.writeTag(t,i.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,i.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,i.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,i.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,i){this.writeVarintField(t,Boolean(i))}}; +},{"ieee754":"Quj6"}],"IFOM":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=f(require("../geom/GeometryType.js")),e=require("../transform.js"),r=require("../extent.js"),i=require("../array.js"),o=require("../geom/flat/interiorpoint.js"),n=require("../proj.js"),s=require("../geom/flat/interpolate.js"),a=require("../geom/flat/center.js"),p=require("../geom/flat/transform.js");function f(t){return t&&t.__esModule?t:{default:t}}var l=(0,e.create)(),d=function(){function f(t,e,r,i,o){this.extent_,this.id_=o,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=r,this.properties_=i}return f.prototype.get=function(t){return this.properties_[t]},f.prototype.getExtent=function(){return this.extent_||(this.extent_=this.type_===t.default.POINT?(0,r.createOrUpdateFromCoordinate)(this.flatCoordinates_):(0,r.createOrUpdateFromFlatCoordinates)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},f.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var t=(0,r.getCenter)(this.getExtent());this.flatInteriorPoints_=(0,o.getInteriorPointOfArray)(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_},f.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var t=(0,a.linearRingss)(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=(0,o.getInteriorPointsOfMultiArray)(this.flatCoordinates_,0,this.ends_,2,t)}return this.flatInteriorPoints_},f.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=(0,s.interpolatePoint)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},f.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var t=this.flatCoordinates_,e=0,r=this.ends_,o=0,n=r.length;o>3}i--,1===o||2===o?(u+=e.readSVarint(),s+=e.readSVarint(),1===o&&l>f&&(a.push(l),f=l),t.push(u,s),l+=2):7===o?l>f&&(t.push(t[f],t[f+1]),l+=2):(0,c.assert)(!1,59)}l>f&&(a.push(l),f=l)},g.prototype.createFeature_=function(r,s,d){var y,c=s.type;if(0===c)return null;var _,v=s.properties;this.idProperty_?(_=v[this.idProperty_],delete v[this.idProperty_]):_=s.id,v[this.layerName_]=s.layer.name;var g=[],m=[];this.readRawGeometry_(r,s,g,m);var j=V(c,m.length);if(this.featureClass_===p.default)(y=new this.featureClass_(j,g,m,v,_)).transform(d.dataProjection);else{var P=void 0;if(j==a.default.POLYGON){for(var O=[],N=0,w=0,I=0,q=m.length;I1?new u.default(g,t.default.XY,O):new f.default(g,t.default.XY,m)}else P=j===a.default.POINT?new l.default(g,t.default.XY):j===a.default.LINE_STRING?new n.default(g,t.default.XY):j===a.default.POLYGON?new f.default(g,t.default.XY,m):j===a.default.MULTI_POINT?new i.default(g,t.default.XY):j===a.default.MULTI_LINE_STRING?new o.default(g,t.default.XY,m):null;y=new(0,this.featureClass_),this.geometryName_&&y.setGeometryName(this.geometryName_);var T=(0,e.transformGeometryWithOptions)(P,!1,d);y.setGeometry(T),y.setId(_),y.setProperties(v,!0)}return y},g.prototype.getType=function(){return r.default.ARRAY_BUFFER},g.prototype.readFeatures=function(e,r){var t=this.layers_,a=this.adaptOptions(r),n=(0,_.get)(a.dataProjection);n.setWorldExtent(a.extent),a.dataProjection=n;var o=new s.default(e),i=o.readFields(O,{}),u=[];for(var l in i)if(!t||-1!=t.indexOf(l)){var f=i[l],d=f?[0,0,f.extent,f.extent]:null;n.setExtent(d);for(var p=0,y=f.length;p>3)?t.readString():2===e?t.readFloat():3===e?t.readDouble():4===e?t.readVarint64():5===e?t.readVarint():6===e?t.readSVarint():7===e?t.readBoolean():null;r.values.push(a)}}function w(e,r,t){if(1==e)r.id=t.readVarint();else if(2==e)for(var a=t.readVarint()+t.pos;t.pos0)t([]);else{var I=v.getTileCoordExtent(i.wrappedTileCoord),x=(0,u.getTopLeft)(I),C=[(y[0]-x[0])/p,(x[1]-y[1])/p],S=i.getSourceTiles().reduce(function(e,t){return e.concat(t.getFeatures())},[]),L=i.hitDetectionImageData[a];if(!L&&!this.animatingOrInteracting_){var w=(0,h.toSize)(v.getTileSize(v.getZForResolution(p))),G=[w[0]/2,w[1]/2],j=this.renderedRotation_,O=[this.getRenderTransform(v.getTileCoordCenter(i.wrappedTileCoord),p,0,.5,G[0],G[1],0)];L=(0,g.createHitDetectionImageData)(w,O,S,n.getStyleFunction(),v.getTileCoordExtent(i.wrappedTileCoord),i.getReplayState(n).renderedResolution,j),i.hitDetectionImageData[a]=L}t((0,g.hitDetect)(C,S,L))}}.bind(this))},n.prototype.handleFontsChanged=function(){(0,s.clear)(this.renderTileImageQueue_);var e=this.getLayer();e.getVisible()&&void 0!==this.renderedLayerRevision_&&e.changed()},n.prototype.handleStyleImageChange_=function(e){this.renderIfReadyAndVisible()},n.prototype.renderDeclutter=function(e){for(var t=e.viewHints,r=!(t[d.default.ANIMATING]||t[d.default.INTERACTING]),i=this.renderedTiles,n=0,o=i.length;n=0;--u)l[u].execute(this.context,1,this.getTileRenderTransform(a,e),e.viewState.rotation,r,void 0,e.declutterTree)}},n.prototype.getTileRenderTransform=function(e,t){var r=t.pixelRatio,i=t.viewState,n=i.center,o=i.resolution,a=i.rotation,d=t.size,u=Math.round(d[0]*r),s=Math.round(d[1]*r),g=this.getLayer().getSource().getTileGridForProjection(t.viewState.projection),c=e.tileCoord,f=g.getTileCoordExtent(e.wrappedTileCoord),p=g.getTileCoordExtent(c,this.tmpExtent)[0]-f[0];return(0,l.multiply)((0,l.scale)(this.inversePixelTransform.slice(),1/r,1/r),this.getRenderTransform(n,o,a,r,u,s,p))},n.prototype.renderFrame=function(e,t){var i=e.viewHints,n=!(i[d.default.ANIMATING]||i[d.default.INTERACTING]);this.renderQueuedTileImages_(n,e),r.prototype.renderFrame.call(this,e,t),this.renderedPixelToCoordinateTransform_=e.pixelToCoordinateTransform.slice(),this.renderedRotation_=e.viewState.rotation;var o=this.getLayer(),l=o.getRenderMode();if(l===a.default.IMAGE)return this.container;var u=o.getSource(),s=e.usedTiles[(0,f.getUid)(u)];for(var g in this.renderTileImageQueue_)s&&g in s||delete this.renderTileImageQueue_[g];for(var c=this.context,p=m[l],h=e.viewState.rotation,T=this.renderedTiles,v=[],y=[],R=T.length-1;R>=0;--R)for(var _=T[R],E=this.getTileRenderTransform(_,e),I=_.executorGroups[(0,f.getUid)(o)],x=!1,C=0,S=I.length;C8){t.animate=!0;break}var i=this.renderTileImageQueue_[r];delete this.renderTileImageQueue_[r],this.renderTileImage_(i,t)}},n.prototype.renderFeature=function(e,t,r,i,n){if(!r)return!1;var o=!1;if(Array.isArray(r))for(var a=0,d=r.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");return-1===e&&(e=t),[e,e===t?0:4-e%4]}function u(r){var t=h(r),e=t[0],n=t[1];return 3*(e+n)/4-n}function c(r,t,e){return 3*(t+e)/4-e}function i(r){var n,o,a=h(r),u=a[0],i=a[1],f=new e(c(r,u,i)),A=0,d=i>0?u-4:u;for(o=0;o>16&255,f[A++]=n>>8&255,f[A++]=255&n;return 2===i&&(n=t[r.charCodeAt(o)]<<2|t[r.charCodeAt(o+1)]>>4,f[A++]=255&n),1===i&&(n=t[r.charCodeAt(o)]<<10|t[r.charCodeAt(o+1)]<<4|t[r.charCodeAt(o+2)]>>2,f[A++]=n>>8&255,f[A++]=255&n),f}function f(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function A(r,t,e){for(var n,o=[],a=t;au?u:h+16383));return 1===o?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),a.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63; +},{}],"aqZJ":[function(require,module,exports) { +var r={}.toString;module.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}; +},{}],"aMB2":[function(require,module,exports) { + +var global = arguments[3]; +var t=arguments[3],r=require("base64-js"),e=require("ieee754"),n=require("isarray");function i(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(r){return!1}}function o(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,r){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function d(t){return+t!=t&&(t=0),f.alloc(+t)}function v(t,r){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return K(t).length;default:if(n)return $(t).length;r=(""+r).toLowerCase(),n=!0}}function E(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,r,e);case"utf8":case"utf-8":return Y(this,r,e);case"ascii":return L(this,r,e);case"latin1":case"binary":return D(this,r,e);case"base64":return S(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function R(t,r,e,n,i){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=f.from(r,n)),f.isBuffer(r))return 0===r.length?-1:_(t,r,e,n,i);if("number"==typeof r)return r&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):_(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,r,e,n,i){var o,u=1,f=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;u=2,f/=2,s/=2,e/=2}function h(t,r){return 1===u?t[r]:t.readUInt16BE(r*u)}if(i){var a=-1;for(o=e;of&&(e=f-s),o=e;o>=0;o--){for(var c=!0,l=0;li&&(n=i):n=i;var o=r.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var u=0;u239?4:h>223?3:h>191?2:1;if(i+c<=e)switch(c){case 1:h<128&&(a=h);break;case 2:128==(192&(o=t[i+1]))&&(s=(31&h)<<6|63&o)>127&&(a=s);break;case 3:o=t[i+1],u=t[i+2],128==(192&o)&&128==(192&u)&&(s=(15&h)<<12|(63&o)<<6|63&u)>2047&&(s<55296||s>57343)&&(a=s);break;case 4:o=t[i+1],u=t[i+2],f=t[i+3],128==(192&o)&&128==(192&u)&&128==(192&f)&&(s=(15&h)<<18|(63&o)<<12|(63&u)<<6|63&f)>65535&&s<1114112&&(a=s)}null===a?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=c}return O(n)}exports.Buffer=f,exports.SlowBuffer=d,exports.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:i(),exports.kMaxLength=o(),f.poolSize=8192,f._augment=function(t){return t.__proto__=f.prototype,t},f.from=function(t,r,e){return s(null,t,r,e)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(t,r,e){return a(null,t,r,e)},f.allocUnsafe=function(t){return c(null,t)},f.allocUnsafeSlow=function(t){return c(null,t)},f.isBuffer=function(t){return!(null==t||!t._isBuffer)},f.compare=function(t,r){if(!f.isBuffer(t)||!f.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var e=t.length,n=r.length,i=0,o=Math.min(e,n);i0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},f.prototype.compare=function(t,r,e,n,i){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),r<0||e>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&r>=e)return 0;if(n>=i)return-1;if(r>=e)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),u=(e>>>=0)-(r>>>=0),s=Math.min(o,u),h=this.slice(n,i),a=t.slice(r,e),c=0;ci)&&(e=i),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return A(this,t,r,e);case"utf8":case"utf-8":return m(this,t,r,e);case"ascii":return P(this,t,r,e);case"latin1":case"binary":return T(this,t,r,e);case"base64":return B(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r,e);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function O(t){var r=t.length;if(r<=I)return String.fromCharCode.apply(String,t);for(var e="",n=0;nn)&&(e=n);for(var i="",o=r;oe)throw new RangeError("Trying to access beyond buffer length")}function k(t,r,e,n,i,o){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||rt.length)throw new RangeError("Index out of range")}function N(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);i>>8*(n?i:1-i)}function z(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);i>>8*(n?i:3-i)&255}function F(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function j(t,r,n,i,o){return o||F(t,r,n,4,3.4028234663852886e38,-3.4028234663852886e38),e.write(t,r,n,i,23,4),n+4}function q(t,r,n,i,o){return o||F(t,r,n,8,1.7976931348623157e308,-1.7976931348623157e308),e.write(t,r,n,i,52,8),n+8}f.prototype.slice=function(t,r){var e,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(r=void 0===r?n:~~r)<0?(r+=n)<0&&(r=0):r>n&&(r=n),r0&&(i*=256);)n+=this[t+--r]*i;return n},f.prototype.readUInt8=function(t,r){return r||M(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,r){return r||M(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,r){return r||M(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,r){return r||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},f.prototype.readUInt32BE=function(t,r){return r||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*r)),n},f.prototype.readIntBE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=r,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*r)),o},f.prototype.readInt8=function(t,r){return r||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},f.prototype.readInt16LE=function(t,r){r||M(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},f.prototype.readInt16BE=function(t,r){r||M(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},f.prototype.readInt32LE=function(t,r){return r||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,r){return r||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,r){return r||M(t,4,this.length),e.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,r){return r||M(t,4,this.length),e.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,r){return r||M(t,8,this.length),e.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,r){return r||M(t,8,this.length),e.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||k(this,t,r,e,Math.pow(2,8*e)-1,0);var i=1,o=0;for(this[r]=255&t;++o=0&&(o*=256);)this[r+i]=t/o&255;return r+e},f.prototype.writeUInt8=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,1,255,0),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},f.prototype.writeUInt16LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):N(this,t,r,!0),r+2},f.prototype.writeUInt16BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):N(this,t,r,!1),r+2},f.prototype.writeUInt32LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):z(this,t,r,!0),r+4},f.prototype.writeUInt32BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):z(this,t,r,!1),r+4},f.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);k(this,t,r,e,i-1,-i)}var o=0,u=1,f=0;for(this[r]=255&t;++o>0)-f&255;return r+e},f.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);k(this,t,r,e,i-1,-i)}var o=e-1,u=1,f=0;for(this[r+o]=255&t;--o>=0&&(u*=256);)t<0&&0===f&&0!==this[r+o+1]&&(f=1),this[r+o]=(t/u>>0)-f&255;return r+e},f.prototype.writeInt8=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,1,127,-128),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},f.prototype.writeInt16LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):N(this,t,r,!0),r+2},f.prototype.writeInt16BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):N(this,t,r,!1),r+2},f.prototype.writeInt32LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):z(this,t,r,!0),r+4},f.prototype.writeInt32BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):z(this,t,r,!1),r+4},f.prototype.writeFloatLE=function(t,r,e){return j(this,t,r,!0,e)},f.prototype.writeFloatBE=function(t,r,e){return j(this,t,r,!1,e)},f.prototype.writeDoubleLE=function(t,r,e){return q(this,t,r,!0,e)},f.prototype.writeDoubleBE=function(t,r,e){return q(this,t,r,!1,e)},f.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r=0;--i)t[i+r]=this[i+e];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=r;o55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function G(t){for(var r=[],e=0;e>8,i=e%256,o.push(i),o.push(n);return o}function K(t){return r.toByteArray(X(t))}function Q(t,r,e,n){for(var i=0;i=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function W(t){return t!=t} +},{"base64-js":"FRly","ieee754":"Quj6","isarray":"aqZJ","buffer":"aMB2"}],"Prd1":[function(require,module,exports) { +var global = arguments[3]; +var Buffer = require("buffer").Buffer; +var e=arguments[3],t=require("buffer").Buffer;Object.defineProperty(exports,"__esModule",{value:!0}),exports.composite=qn,exports.convertFilter=jn,exports.derefLayers=En,exports.diff=Bn,exports.featureFilter=fn,exports.format=V,exports.migrate=In,exports.validate=qi,exports.validateMapboxApiSupported=Li,exports.visit=exports.v8=exports.latest=exports.function=exports.expression=exports.ValidationError=exports.ParsingError=exports.Color=void 0;var o=8,r={version:{required:!0,type:"enum",values:[8],doc:"Style specification version number. Must be 8.",example:8},name:{type:"string",doc:"A human-readable name for the style.",example:"Bright"},metadata:{type:"*",doc:"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'mapbox:'."},center:{type:"array",value:"number",doc:"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:[-73.9749,40.7736]},zoom:{type:"number",doc:"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:12.5},bearing:{type:"number",default:0,period:360,units:"degrees",doc:'Default bearing, in degrees. The bearing is the compass direction that is "up"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by other means (e.g. map options or user interaction).',example:29},pitch:{type:"number",default:0,units:"degrees",doc:"Default pitch, in degrees. Zero is perpendicular to the surface, for a look straight down at the map, while a greater value like 60 looks ahead towards the horizon. The style pitch will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:50},light:{type:"light",doc:"The global light source.",example:{anchor:"viewport",color:"white",intensity:.4}},terrain:{type:"terrain",doc:"A global modifier that elevates layers and markers based on a DEM data source."},sources:{required:!0,type:"sources",doc:"Data source specifications.",example:{"mapbox-streets":{type:"vector",url:"mapbox://mapbox.mapbox-streets-v6"}}},sprite:{type:"string",doc:"A base URL for retrieving the sprite image and metadata. The extensions `.png`, `.json` and scale factor `@2x.png` will be automatically appended. This property is required if any layer uses the `background-pattern`, `fill-pattern`, `line-pattern`, `fill-extrusion-pattern`, or `icon-image` properties. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).",example:"mapbox://sprites/mapbox/bright-v8"},glyphs:{type:"string",doc:"A URL template for loading signed-distance-field glyph sets in PBF format. The URL must include `{fontstack}` and `{range}` tokens. This property is required if any layer uses the `text-field` layout property. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).",example:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},transition:{type:"transition",doc:"A global transition definition to use as a default across properties, to be used for timing transitions between one value and the next when no property-specific transition is set. Collision-based symbol fading is controlled independently of the style's `transition` property.",example:{duration:300,delay:0}},layers:{required:!0,type:"array",value:"layer",doc:"Layers will be drawn in the order of this array.",example:[{id:"water",source:"mapbox-streets","source-layer":"water",type:"fill",paint:{"fill-color":"#00ffff"}}]}},n={"*":{type:"source",doc:"Specification of a data source. For vector and raster sources, either TileJSON or a URL to a TileJSON must be provided. For image and video sources, a URL must be provided. For GeoJSON sources, a URL or inline GeoJSON must be provided."}},i=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],s={type:{required:!0,type:"enum",values:{vector:{doc:"A vector tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},promoteId:{type:"promoteId",doc:"A property to use as a feature id (for feature state). Either a property name, or an object of the form `{: }`. If specified as a string for a vector tile source, the same property is used across all its source layers."},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},a={type:{required:!0,type:"enum",values:{raster:{doc:"A raster tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},l={type:{required:!0,type:"enum",values:{"raster-dem":{doc:"A RGB-encoded raster DEM source"}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},encoding:{type:"enum",values:{terrarium:{doc:"Terrarium format PNG tiles. See https://aws.amazon.com/es/public-datasets/terrain/ for more info."},mapbox:{doc:"Mapbox Terrain RGB tiles. See https://www.mapbox.com/help/access-elevation-data/#mapbox-terrain-rgb for more info."}},default:"mapbox",doc:"The encoding used by this source. Mapbox Terrain RGB is used by default"},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},u={type:{required:!0,type:"enum",values:{geojson:{doc:"A GeoJSON data source."}},doc:"The data type of the GeoJSON source."},data:{type:"*",doc:"A URL to a GeoJSON file, or inline GeoJSON."},maxzoom:{type:"number",default:18,doc:"Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels)."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},buffer:{type:"number",default:128,maximum:512,minimum:0,doc:"Size of the tile buffer on each side. A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself. Larger values produce fewer rendering artifacts near tile edges and slower performance."},filter:{type:"*",doc:"An expression for filtering features prior to processing them for rendering."},tolerance:{type:"number",default:.375,doc:"Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance)."},cluster:{type:"boolean",default:!1,doc:"If the data is a collection of point features, setting this to true clusters the points by radius into groups. Cluster groups become new `Point` features in the source with additional properties:\n * `cluster` Is `true` if the point is a cluster \n * `cluster_id` A unqiue id for the cluster to be used in conjunction with the [cluster inspection methods](https://www.mapbox.com/mapbox-gl-js/api/#geojsonsource#getclusterexpansionzoom)\n * `point_count` Number of original points grouped into this cluster\n * `point_count_abbreviated` An abbreviated point count"},clusterRadius:{type:"number",default:50,minimum:0,doc:"Radius of each cluster if clustering is enabled. A value of 512 indicates a radius equal to the width of a tile."},clusterMaxZoom:{type:"number",doc:"Max zoom on which to cluster points if clustering is enabled. Defaults to one zoom less than maxzoom (so that last zoom features are not clustered). Clusters are re-evaluated at integer zoom levels so setting clusterMaxZoom to 14 means the clusters will be displayed until z15."},clusterMinPoints:{type:"number",doc:"Minimum number of points necessary to form a cluster if clustering is enabled. Defaults to `2`."},clusterProperties:{type:"*",doc:'An object defining custom properties on the generated clusters if clustering is enabled, aggregating values from clustered points. Has the form `{"property_name": [operator, map_expression]}`. `operator` is any expression function that accepts at least 2 operands (e.g. `"+"` or `"max"`) — it accumulates the property value from clusters/points the cluster contains; `map_expression` produces the value of a single point.\n\nExample: `{"sum": ["+", ["get", "scalerank"]]}`.\n\nFor more advanced use cases, in place of `operator`, you can use a custom reduce expression that references a special `["accumulated"]` value, e.g.:\n`{"sum": [["+", ["accumulated"], ["get", "sum"]], ["get", "scalerank"]]}`'},lineMetrics:{type:"boolean",default:!1,doc:"Whether to calculate line distance metrics. This is required for line layers that specify `line-gradient` values."},generateId:{type:"boolean",default:!1,doc:"Whether to generate ids for the geojson features. When enabled, the `feature.id` property will be auto assigned based on its index in the `features` array, over-writing any previous values."},promoteId:{type:"promoteId",doc:"A property to use as a feature id (for feature state). Either a property name, or an object of the form `{: }`."}},c={type:{required:!0,type:"enum",values:{video:{doc:"A video data source."}},doc:"The data type of the video source."},urls:{required:!0,type:"array",value:"string",doc:"URLs to video content in order of preferred format."},coordinates:{required:!0,doc:"Corners of video specified in longitude, latitude pairs.",type:"array",length:4,value:{type:"array",length:2,value:"number",doc:"A single longitude, latitude pair."}}},p={type:{required:!0,type:"enum",values:{image:{doc:"An image data source."}},doc:"The data type of the image source."},url:{required:!0,type:"string",doc:"URL that points to an image."},coordinates:{required:!0,doc:"Corners of image specified in longitude, latitude pairs.",type:"array",length:4,value:{type:"array",length:2,value:"number",doc:"A single longitude, latitude pair."}}},d={id:{type:"string",doc:"Unique layer name.",required:!0},type:{type:"enum",values:{fill:{doc:"A filled polygon with an optional stroked border.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},line:{doc:"A stroked line.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},symbol:{doc:"An icon or a text label.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},circle:{doc:"A filled circle.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},heatmap:{doc:"A heatmap.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"fill-extrusion":{doc:"An extruded (3D) polygon.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},raster:{doc:"Raster map textures such as satellite imagery.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},hillshade:{doc:"Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},background:{doc:"The background color or pattern of the map.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},sky:{doc:"A spherical dome around the map that is always rendered behind all other layers.","sdk-support":{"basic functionality":{js:"2.0.0"}}}},doc:"Rendering type of this layer.",required:!0},metadata:{type:"*",doc:"Arbitrary properties useful to track with the layer, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'mapbox:'."},source:{type:"string",doc:"Name of a source description to be used for this layer. Required for all layer types except `background`."},"source-layer":{type:"string",doc:"Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources."},minzoom:{type:"number",minimum:0,maximum:24,doc:"The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden."},maxzoom:{type:"number",minimum:0,maximum:24,doc:"The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden."},filter:{type:"filter",doc:"A expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The `feature-state` expression is not supported in filter expressions."},layout:{type:"layout",doc:"Layout properties for the layer."},paint:{type:"paint",doc:"Default paint properties for this layer."}},h=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],f={visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},y={visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"2.0.0"}},"property-type":"constant"}},m={"fill-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.","sdk-support":{"basic functionality":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"},"data-driven styling":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},g={"circle-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.","sdk-support":{"basic functionality":{js:"1.2.0",android:"9.2.0",ios:"5.9.0",macos:"0.16.0"},"data-driven styling":{js:"1.2.0",android:"9.2.0",ios:"5.9.0",macos:"0.16.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},b={visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},"property-type":"constant"}},v={"line-cap":{type:"enum",values:{butt:{doc:"A cap with a squared-off end which is drawn to the exact endpoint of the line."},round:{doc:"A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line."},square:{doc:"A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width."}},default:"butt",doc:"The display of line endings.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{doc:"A join with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width."},round:{doc:"A join with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line."},miter:{doc:"A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet."}},default:"miter",doc:"The display of lines when joining.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,doc:"Used to automatically convert miter joins to bevel joins for sharp angles.",requires:[{"line-join":"miter"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,doc:"Used to automatically convert round joins to miter joins for shallow angles.",requires:[{"line-join":"round"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.","sdk-support":{"basic functionality":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"},"data-driven styling":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},x={"symbol-placement":{type:"enum",values:{point:{doc:"The label is placed at the point where the geometry is located."},line:{doc:"The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries."},"line-center":{doc:"The label is placed at the center of the line of the geometry. Can only be used on `LineString` and `Polygon` geometries. Note that a single feature in a vector tile may contain multiple line geometries."}},default:"point",doc:"Label placement relative to its geometry.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`line-center` value":{js:"0.47.0",android:"6.4.0",ios:"4.3.0",macos:"0.10.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",doc:"Distance between two symbol anchors.",requires:[{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,doc:"If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer. When using a client that supports global collision detection, like Mapbox GL JS version 0.42.0 or greater, enabling this property is not needed to prevent clipped labels at tile boundaries.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with lower sort keys are drawn and placed first. When `icon-allow-overlap` or `text-allow-overlap` is `false`, features with a lower sort key will have priority during placement. When `icon-allow-overlap` or `text-allow-overlap` is set to `true`, features with a higher sort key will overlap over features with a lower sort key.","sdk-support":{"basic functionality":{js:"0.53.0",android:"7.4.0",ios:"4.11.0",macos:"0.14.0"},"data-driven styling":{js:"0.53.0",android:"7.4.0",ios:"4.11.0",macos:"0.14.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{doc:"Sorts symbols by `symbol-sort-key` if set. Otherwise, sorts symbols by their y-position relative to the viewport if `icon-allow-overlap` or `text-allow-overlap` is set to `true` or `icon-ignore-placement` or `text-ignore-placement` is `false`."},"viewport-y":{doc:"Sorts symbols by their y-position relative to the viewport if `icon-allow-overlap` or `text-allow-overlap` is set to `true` or `icon-ignore-placement` or `text-ignore-placement` is `false`."},source:{doc:"Sorts symbols by `symbol-sort-key` if set. Otherwise, no sorting is applied; symbols are rendered in the same order as the source data."}},default:"auto",doc:"Determines whether overlapping symbols in the same layer are rendered in the order that they appear in the data source or by their y-position relative to the viewport. To control the order and prioritization of symbols otherwise, use `symbol-sort-key`.","sdk-support":{"basic functionality":{js:"0.49.0",android:"6.6.0",ios:"4.5.0",macos:"0.12.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,doc:"If true, the icon will be visible even if it collides with other previously drawn symbols.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,doc:"If true, other symbols can be visible even if they collide with the icon.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,doc:"If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.",requires:["icon-image","text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{doc:"When `symbol-placement` is set to `point`, aligns icons east-west. When `symbol-placement` is set to `line` or `line-center`, aligns icon x-axes with the line."},viewport:{doc:"Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},auto:{doc:"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`."}},default:"auto",doc:"In combination with `symbol-placement`, determines the rotation behavior of icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",doc:"Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by `icon-size`. 1 is the original size; 3 triples the size of the image.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{doc:"The icon is displayed at its intrinsic aspect ratio."},width:{doc:"The icon is scaled in the x-dimension to fit the width of the text."},height:{doc:"The icon is scaled in the y-dimension to fit the height of the text."},both:{doc:"The icon is scaled in both x- and y-dimensions."}},default:"none",doc:"Scales the icon to fit around the associated text.",requires:["icon-image","text-field"],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"stretchable icons":{js:"1.6.0",android:"9.2.0",ios:"5.8.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",doc:"Size of the additional area added to dimensions determined by `icon-text-fit`, in clockwise order: top, right, bottom, left.",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",doc:"Name of image in sprite to use for drawing an image background.",tokens:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",doc:"Rotates the icon clockwise.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.21.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",doc:"Size of the additional area around the icon bounding box used for detecting symbol collisions.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,doc:"If true, the icon may be flipped to prevent it from being rendered upside-down.",requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],doc:"Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of `icon-size` to obtain the final offset in pixels. When combined with `icon-rotate` the offset will be as if the rotated direction was up.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{doc:"The center of the icon is placed closest to the anchor."},left:{doc:"The left side of the icon is placed closest to the anchor."},right:{doc:"The right side of the icon is placed closest to the anchor."},top:{doc:"The top of the icon is placed closest to the anchor."},bottom:{doc:"The bottom of the icon is placed closest to the anchor."},"top-left":{doc:"The top left corner of the icon is placed closest to the anchor."},"top-right":{doc:"The top right corner of the icon is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the icon is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the icon is placed closest to the anchor."}},default:"center",doc:"Part of the icon placed closest to the anchor.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{doc:"The icon is aligned to the plane of the map."},viewport:{doc:"The icon is aligned to the plane of the viewport."},auto:{doc:"Automatically matches the value of `icon-rotation-alignment`."}},default:"auto",doc:"Orientation of icon when map is pitched.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{doc:"The text is aligned to the plane of the map."},viewport:{doc:"The text is aligned to the plane of the viewport."},auto:{doc:"Automatically matches the value of `text-rotation-alignment`."}},default:"auto",doc:"Orientation of text when map is pitched.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{doc:"When `symbol-placement` is set to `point`, aligns text east-west. When `symbol-placement` is set to `line` or `line-center`, aligns text x-axes with the line."},viewport:{doc:"Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},auto:{doc:"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`."}},default:"auto",doc:"In combination with `symbol-placement`, determines the rotation behavior of the individual glyphs forming the text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,doc:"Value to use for a text label. If a plain `string` is provided, it will be treated as a `formatted` with default/inherited formatting options.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],doc:"Font stack to use for displaying text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",doc:"Font size.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",doc:"The maximum line width for text wrapping.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",doc:"Text leading value for multi-line text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",doc:"Text tracking amount.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{doc:"The text is aligned towards the anchor position."},left:{doc:"The text is aligned to the left."},center:{doc:"The text is centered."},right:{doc:"The text is aligned to the right."}},default:"center",doc:"Text justification options.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},auto:{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,doc:"Radial offset of text, in the direction of the symbol's anchor. Useful in combination with `text-variable-anchor`, which defaults to using the two-dimensional `text-offset` if present.","sdk-support":{"basic functionality":{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"},"data-driven styling":{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"}},requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{doc:"The center of the text is placed closest to the anchor."},left:{doc:"The left side of the text is placed closest to the anchor."},right:{doc:"The right side of the text is placed closest to the anchor."},top:{doc:"The top of the text is placed closest to the anchor."},bottom:{doc:"The bottom of the text is placed closest to the anchor."},"top-left":{doc:"The top left corner of the text is placed closest to the anchor."},"top-right":{doc:"The top right corner of the text is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the text is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the text is placed closest to the anchor."}},requires:["text-field",{"symbol-placement":["point"]}],doc:"To increase the chance of placing high-priority labels on the map, you can provide an array of `text-anchor` locations: the renderer will attempt to place the label at each location, in order, before moving onto the next label. Use `text-justify: auto` to choose justification based on anchor position. To apply an offset, use the `text-radial-offset` or the two-dimensional `text-offset`.","sdk-support":{"basic functionality":{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{doc:"The center of the text is placed closest to the anchor."},left:{doc:"The left side of the text is placed closest to the anchor."},right:{doc:"The right side of the text is placed closest to the anchor."},top:{doc:"The top of the text is placed closest to the anchor."},bottom:{doc:"The bottom of the text is placed closest to the anchor."},"top-left":{doc:"The top left corner of the text is placed closest to the anchor."},"top-right":{doc:"The top right corner of the text is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the text is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the text is placed closest to the anchor."}},default:"center",doc:"Part of the text placed closest to the anchor.",requires:["text-field",{"!":"text-variable-anchor"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",doc:"Maximum angle change between adjacent characters.",requires:["text-field",{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{doc:"If a text's language supports horizontal writing mode, symbols with point placement would be laid out horizontally."},vertical:{doc:"If a text's language supports vertical writing mode, symbols with point placement would be laid out vertically."}},doc:"The property allows control over a symbol's orientation. Note that the property values act as a hint, so that a symbol whose language doesn’t support the provided orientation will be laid out in its natural orientation. Example: English point symbol will be rendered horizontally even if array value contains single 'vertical' enum value. The order of elements in an array define priority order for the placement of an orientation variant.",requires:["text-field",{"symbol-placement":["point"]}],"sdk-support":{"basic functionality":{js:"1.3.0",android:"8.3.0",ios:"5.3.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",doc:"Rotates the text clockwise.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",doc:"Size of the additional area around the text bounding box used for detecting symbol collisions.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,doc:"If true, the text may be flipped vertically to prevent it from being rendered upside-down.",requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{doc:"The text is not altered."},uppercase:{doc:"Forces all letters to be displayed in uppercase."},lowercase:{doc:"Forces all letters to be displayed in lowercase."}},default:"none",doc:"Specifies how to capitalize text, similar to the CSS `text-transform` property.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",doc:"Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up. If used with text-variable-anchor, input values will be taken as absolute values. Offsets along the x- and y-axis will be applied automatically based on the anchor position.",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,doc:"If true, the text will be visible even if it collides with other previously drawn symbols.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,doc:"If true, other symbols can be visible even if they collide with the text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,doc:"If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.",requires:["text-field","icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},w={visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},k={visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},"property-type":"constant"}},j={type:"array",value:"*",doc:"A filter selects specific features from a layer."},z={type:"enum",values:{"==":{doc:'`["==", key, value]` equality: `feature[key] = value`'},"!=":{doc:'`["!=", key, value]` inequality: `feature[key] ≠ value`'},">":{doc:'`[">", key, value]` greater than: `feature[key] > value`'},">=":{doc:'`[">=", key, value]` greater than or equal: `feature[key] ≥ value`'},"<":{doc:'`["<", key, value]` less than: `feature[key] < value`'},"<=":{doc:'`["<=", key, value]` less than or equal: `feature[key] ≤ value`'},in:{doc:'`["in", key, v0, ..., vn]` set inclusion: `feature[key] ∈ {v0, ..., vn}`'},"!in":{doc:'`["!in", key, v0, ..., vn]` set exclusion: `feature[key] ∉ {v0, ..., vn}`'},all:{doc:'`["all", f0, ..., fn]` logical `AND`: `f0 ∧ ... ∧ fn`'},any:{doc:'`["any", f0, ..., fn]` logical `OR`: `f0 ∨ ... ∨ fn`'},none:{doc:'`["none", f0, ..., fn]` logical `NOR`: `¬f0 ∧ ... ∧ ¬fn`'},has:{doc:'`["has", key]` `feature[key]` exists'},"!has":{doc:'`["!has", key]` `feature[key]` does not exist'},within:{doc:'`["within", object]` feature geometry is within object geometry'}},doc:"The filter operator."},S={type:"enum",values:{Point:{doc:"Filter to point geometries."},LineString:{doc:"Filter to line geometries."},Polygon:{doc:"Filter to polygon geometries."}},doc:"The geometry type for the filter to select."},T={type:"array",minimum:0,maximum:24,value:["number","color"],length:2,doc:"Zoom level and value pair."},_={type:"array",value:"*",minimum:1,doc:"An expression defines a function that can be used for data-driven style properties or feature filters."},$={doc:"",type:"enum",values:{let:{doc:'Binds expressions to named variables, which can then be referenced in the result expression using ["var", "variable_name"].',group:"Variable binding","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},var:{doc:'References variable bound using "let".',group:"Variable binding","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},literal:{doc:"Provides a literal array or object value.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},array:{doc:"Asserts that the input is an array (optionally with a specific item type and length). If, when the input expression is evaluated, it is not of the asserted type, then this assertion will cause the whole expression to be aborted.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},at:{doc:"Retrieves an item from an array.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},in:{doc:"Determines whether an item exists in an array or a substring exists in a string.",group:"Lookup","sdk-support":{"basic functionality":{js:"1.6.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}}},"index-of":{doc:"Returns the first position at which an item can be found in an array or a substring can be found in a string, or `-1` if the input cannot be found. Accepts an optional index from where to begin the search.",group:"Lookup","sdk-support":{"basic functionality":{js:"1.10.0"}}},slice:{doc:"Returns an item from an array or a substring from a string from a specified start index, or between a start index and an end index if set. The return value is inclusive of the start index but not of the end index.",group:"Lookup","sdk-support":{"basic functionality":{js:"1.10.0"}}},case:{doc:"Selects the first output whose corresponding test condition evaluates to true, or the fallback value otherwise.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},match:{doc:'Selects the output whose label value matches the input value, or the fallback value if no match is found. The input can be any expression (e.g. `["get", "building_type"]`). Each label must be either:\n - a single literal value; or\n - an array of literal values, whose values must be all strings or all numbers (e.g. `[100, 101]` or `["c", "b"]`). The input matches if any of the values in the array matches, similar to the `"in"` operator.\nEach label must be unique. If the input type does not match the type of the labels, the result will be the fallback value.',group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},coalesce:{doc:"Evaluates each expression in turn until the first non-null value is obtained, and returns that value.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},step:{doc:'Produces discrete, stepped results by evaluating a piecewise-constant function defined by pairs of input and output values ("stops"). The `input` may be any numeric expression (e.g., `["get", "population"]`). Stop inputs must be numeric literals in strictly ascending order. Returns the output value of the stop just less than the input, or the first output if the input is less than the first stop.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},interpolate:{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). The `input` may be any numeric expression (e.g., `["get", "population"]`). Stop inputs must be numeric literals in strictly ascending order. The output type must be `number`, `array`, or `color`.\n\nInterpolation types:\n- `["linear"]`: Interpolates linearly between the pair of stops just less than and just greater than the input.\n- `["exponential", base]`: Interpolates exponentially between the stops just less than and just greater than the input. `base` controls the rate at which the output increases: higher values make the output increase more towards the high end of the range. With values close to 1 the output increases linearly.\n- `["cubic-bezier", x1, y1, x2, y2]`: Interpolates using the cubic bezier curve defined by the given control points.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"interpolate-hcl":{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). Works like `interpolate`, but the output type must be `color`, and the interpolation is performed in the Hue-Chroma-Luminance color space.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.49.0"}}},"interpolate-lab":{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). Works like `interpolate`, but the output type must be `color`, and the interpolation is performed in the CIELAB color space.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.49.0"}}},ln2:{doc:"Returns mathematical constant ln(2).",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},pi:{doc:"Returns the mathematical constant pi.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},e:{doc:"Returns the mathematical constant e.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},typeof:{doc:"Returns a string describing the type of the given value.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},string:{doc:"Asserts that the input value is a string. If multiple values are provided, each one is evaluated in order until a string is obtained. If none of the inputs are strings, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},number:{doc:"Asserts that the input value is a number. If multiple values are provided, each one is evaluated in order until a number is obtained. If none of the inputs are numbers, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},boolean:{doc:"Asserts that the input value is a boolean. If multiple values are provided, each one is evaluated in order until a boolean is obtained. If none of the inputs are booleans, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},object:{doc:"Asserts that the input value is an object. If multiple values are provided, each one is evaluated in order until an object is obtained. If none of the inputs are objects, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},collator:{doc:"Returns a `collator` for use in locale-dependent comparison operations. The `case-sensitive` and `diacritic-sensitive` options default to `false`. The `locale` argument specifies the IETF language tag of the locale to use. If none is provided, the default locale is used. If the requested locale is not available, the `collator` will use a system-defined fallback locale. Use `resolved-locale` to test the results of locale fallback behavior.",group:"Types","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},format:{doc:'Returns a `formatted` string for displaying mixed-format text in the `text-field` property. The input may contain a string literal or expression, including an [`\'image\'`](#types-image) expression. Strings may be followed by a style override object that supports the following properties:\n- `"text-font"`: Overrides the font stack specified by the root layout property.\n- `"text-color"`: Overrides the color specified by the root paint property.\n- `"font-scale"`: Applies a scaling factor on `text-size` as specified by the root layout property.',group:"Types","sdk-support":{"basic functionality":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"},"text-font":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"},"font-scale":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"},"text-color":{js:"1.3.0",android:"7.3.0",ios:"4.10.0",macos:"0.14.0"},image:{js:"1.6.0",android:"8.6.0",ios:"5.7.0",macos:"0.15.0"}}},image:{doc:"Returns an `image` type for use in `icon-image`, `*-pattern` entries and as a section in the `format` expression. If set, the `image` argument will check that the requested image exists in the style and will return either the resolved image name or `null`, depending on whether or not the image is currently in the style. This validation process is synchronous and requires the image to have been added to the style before requesting it in the `image` argument.",group:"Types","sdk-support":{"basic functionality":{js:"1.4.0",android:"8.6.0",ios:"5.7.0",macos:"0.15.0"}}},"number-format":{doc:"Converts the input number into a string representation using the providing formatting rules. If set, the `locale` argument specifies the locale to use, as a BCP 47 language tag. If set, the `currency` argument specifies an ISO 4217 code to use for currency-style formatting. If set, the `min-fraction-digits` and `max-fraction-digits` arguments specify the minimum and maximum number of fractional digits to include.",group:"Types","sdk-support":{"basic functionality":{js:"0.54.0"}}},"to-string":{doc:'Converts the input value to a string. If the input is `null`, the result is `""`. If the input is a boolean, the result is `"true"` or `"false"`. If the input is a number, it is converted to a string as specified by the ["NumberToString" algorithm](https://tc39.github.io/ecma262/#sec-tostring-applied-to-the-number-type) of the ECMAScript Language Specification. If the input is a color, it is converted to a string of the form `"rgba(r,g,b,a)"`, where `r`, `g`, and `b` are numerals ranging from 0 to 255, and `a` ranges from 0 to 1. Otherwise, the input is converted to a string in the format specified by the [`JSON.stringify`](https://tc39.github.io/ecma262/#sec-json.stringify) function of the ECMAScript Language Specification.',group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-number":{doc:'Converts the input value to a number, if possible. If the input is `null` or `false`, the result is 0. If the input is `true`, the result is 1. If the input is a string, it is converted to a number as specified by the ["ToNumber Applied to the String Type" algorithm](https://tc39.github.io/ecma262/#sec-tonumber-applied-to-the-string-type) of the ECMAScript Language Specification. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.',group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-boolean":{doc:"Converts the input value to a boolean. The result is `false` when then input is an empty string, 0, `false`, `null`, or `NaN`; otherwise it is `true`.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-rgba":{doc:"Returns a four-element array containing the input color's red, green, blue, and alpha components, in that order.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-color":{doc:"Converts the input value to a color. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},rgb:{doc:"Creates a color value from red, green, and blue components, which must range between 0 and 255, and an alpha component of 1. If any component is out of range, the expression is an error.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},rgba:{doc:"Creates a color value from red, green, blue components, which must range between 0 and 255, and an alpha component which must range between 0 and 1. If any component is out of range, the expression is an error.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},get:{doc:"Retrieves a property value from the current feature's properties, or from another object if a second argument is provided. Returns null if the requested property is missing.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},has:{doc:"Tests for the presence of an property value in the current feature's properties, or from another object if a second argument is provided.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},length:{doc:"Gets the length of an array or string.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},properties:{doc:'Gets the feature properties object. Note that in some cases, it may be more efficient to use ["get", "property_name"] directly.',group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"feature-state":{doc:"Retrieves a property value from the current feature's state. Returns null if the requested property is not present on the feature's state. A feature's state is not part of the GeoJSON or vector tile data, and must be set programmatically on each feature. Features are identified by their `id` attribute, which must be an integer or a string that can be cast to an integer. Note that [\"feature-state\"] can only be used with paint properties that support data-driven styling.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.46.0"}}},"geometry-type":{doc:"Gets the feature's geometry type: `Point`, `MultiPoint`, `LineString`, `MultiLineString`, `Polygon`, `MultiPolygon`.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},id:{doc:"Gets the feature's id, if it has one.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},zoom:{doc:'Gets the current zoom level. Note that in style layout and paint properties, ["zoom"] may only appear as the input to a top-level "step" or "interpolate" expression.',group:"Zoom","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"heatmap-density":{doc:"Gets the kernel density estimation of a pixel in a heatmap layer, which is a relative measure of how many data points are crowded around a particular pixel. Can only be used in the `heatmap-color` property.",group:"Heatmap","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"line-progress":{doc:"Gets the progress along a gradient line. Can only be used in the `line-gradient` property.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.6.0",macos:"0.12.0"}}},"sky-radial-progress":{doc:"Gets the distance of a point on the sky from the sun position. Returns 0 at sun position and 1 when the distance reaches `sky-gradient-radius`. Can only be used in the `sky-gradient` property.",group:"sky","sdk-support":{"basic functionality":{js:"2.0.0"}}},accumulated:{doc:"Gets the value of a cluster property accumulated so far. Can only be used in the `clusterProperties` option of a clustered GeoJSON source.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.53.0"}}},"+":{doc:"Returns the sum of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"*":{doc:"Returns the product of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"-":{doc:"For two inputs, returns the result of subtracting the second input from the first. For a single input, returns the result of subtracting it from 0.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"/":{doc:"Returns the result of floating point division of the first input by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"%":{doc:"Returns the remainder after integer division of the first input by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"^":{doc:"Returns the result of raising the first input to the power specified by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},sqrt:{doc:"Returns the square root of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},log10:{doc:"Returns the base-ten logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},ln:{doc:"Returns the natural logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},log2:{doc:"Returns the base-two logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},sin:{doc:"Returns the sine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},cos:{doc:"Returns the cosine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},tan:{doc:"Returns the tangent of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},asin:{doc:"Returns the arcsine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},acos:{doc:"Returns the arccosine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},atan:{doc:"Returns the arctangent of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},min:{doc:"Returns the minimum value of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},max:{doc:"Returns the maximum value of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},round:{doc:'Rounds the input to the nearest integer. Halfway values are rounded away from zero. For example, `["round", -1.5]` evaluates to -2.',group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},abs:{doc:"Returns the absolute value of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},ceil:{doc:"Returns the smallest integer that is greater than or equal to the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},floor:{doc:"Returns the largest integer that is less than or equal to the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},distance:{doc:"Returns the shortest distance in meters between the evaluated feature and the input geometry. The input value can be a valid GeoJSON of type `Point`, `MultiPoint`, `LineString`, `MultiLineString`, `Polygon`, `MultiPolygon`, `Feature`, or `FeatureCollection`. Distance values returned may vary in precision due to loss in precision from encoding geometries, particularly below zoom level 13.",group:"Math","sdk-support":{"basic functionality":{android:"9.2.0",ios:"5.9.0",macos:"0.16.0"}}},"==":{doc:"Returns `true` if the input values are equal, `false` otherwise. The comparison is strictly typed: values of different runtime types are always considered unequal. Cases where the types are known to be different at parse time are considered invalid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"!=":{doc:"Returns `true` if the input values are not equal, `false` otherwise. The comparison is strictly typed: values of different runtime types are always considered unequal. Cases where the types are known to be different at parse time are considered invalid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},">":{doc:"Returns `true` if the first input is strictly greater than the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"<":{doc:"Returns `true` if the first input is strictly less than the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},">=":{doc:"Returns `true` if the first input is greater than or equal to the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"<=":{doc:"Returns `true` if the first input is less than or equal to the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},all:{doc:"Returns `true` if all the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `false`, the result is `false` and no further input expressions are evaluated.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},any:{doc:"Returns `true` if any of the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `true`, the result is `true` and no further input expressions are evaluated.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"!":{doc:"Logical negation. Returns `true` if the input is `false`, and `false` if the input is `true`.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},within:{doc:"Returns `true` if the evaluated feature is fully contained inside a boundary of the input geometry, `false` otherwise. The input value can be a valid GeoJSON of type `Polygon`, `MultiPolygon`, `Feature`, or `FeatureCollection`. Supported features for evaluation:\n- `Point`: Returns `false` if a point is on the boundary or falls outside the boundary.\n- `LineString`: Returns `false` if any part of a line falls outside the boundary, the line intersects the boundary, or a line's endpoint is on the boundary.",group:"Decision","sdk-support":{"basic functionality":{js:"1.9.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}}},"is-supported-script":{doc:"Returns `true` if the input string is expected to render legibly. Returns `false` if the input string contains sections that cannot be rendered without potential loss of meaning (e.g. Indic scripts that require complex text shaping, or right-to-left scripts if the the `mapbox-gl-rtl-text` plugin is not in use in Mapbox GL JS).",group:"String","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.6.0"}}},upcase:{doc:"Returns the input string converted to uppercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},downcase:{doc:"Returns the input string converted to lowercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},concat:{doc:"Returns a `string` consisting of the concatenation of the inputs. Each input is converted to a string as if by `to-string`.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"resolved-locale":{doc:"Returns the IETF language tag of the locale being used by the provided `collator`. This can be used to determine the default system locale, or to determine if a requested locale was successfully loaded.",group:"String","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}}}},A={anchor:{type:"enum",default:"viewport",values:{map:{doc:"The position of the light source is aligned to the rotation of the map."},viewport:{doc:"The position of the light source is aligned to the rotation of the viewport."}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},doc:"Whether extruded geometries are lit relative to the map or viewport.",example:"map","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},doc:"Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).",example:[1.5,90,80],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Color tint for lighting extruded geometries.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}}},I={source:{type:"string",doc:"Name of a source of `raster_dem` type to be used for terrain elevation.",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Exaggerates the elevation of the terrain by multiplying the data from the DEM with this value.","sdk-support":{"basic functionality":{js:"2.0.0"}}}},q=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],O={"fill-antialias":{type:"boolean",default:!0,doc:"Whether or not the fill should be antialiased.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill layer. In contrast to the `fill-color`, this value will also affect the 1px stroke around the fill, if the stroke is used.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.21.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",doc:"The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.",transition:!0,requires:[{"!":"fill-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.19.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",doc:"The outline color of the fill. Matches the value of `fill-color` if unspecified.",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.19.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{doc:"The fill is translated relative to the map."},viewport:{doc:"The fill is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-translate`.",default:"map",requires:["fill-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},C={"line-opacity":{type:"number",doc:"The opacity at which the line will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",doc:"The color with which the line will be drawn.",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.23.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{doc:"The line is translated relative to the map."},viewport:{doc:"The line is translated relative to the viewport."}},doc:"Controls the frame of reference for `line-translate`.",default:"map",requires:["line-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",doc:"Stroke thickness.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,doc:"Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.",transition:!0,units:"pixels","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,doc:"The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.",transition:!0,units:"pixels","sdk-support":{"basic functionality":{js:"0.12.1",android:"3.0.0",ios:"3.1.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Blur applied to the line, in pixels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",doc:"Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. Note that GeoJSON sources with `lineMetrics: true` specified won't render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels.",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",doc:'Defines a gradient with which to color a line feature. Can only be used with GeoJSON sources that specify `"lineMetrics": true`.',transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],"sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.4.0",macos:"0.11.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},E={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",doc:"Circle radius.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.18.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",doc:"The fill color of the circle.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.18.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,doc:"Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.20.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",doc:"The opacity at which the circle will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.20.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{doc:"The circle is translated relative to the map."},viewport:{doc:"The circle is translated relative to the viewport."}},doc:"Controls the frame of reference for `circle-translate`.",default:"map",requires:["circle-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{doc:"Circles are scaled according to their apparent distance to the camera."},viewport:{doc:"Circles are not scaled."}},default:"map",doc:"Controls the scaling behavior of the circle when the map is pitched.","sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{doc:"The circle is aligned to the plane of the map."},viewport:{doc:"The circle is aligned to the plane of the viewport."}},default:"viewport",doc:"Orientation of circle when map is pitched.","sdk-support":{"basic functionality":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"The width of the circle's stroke. Strokes are placed outside of the `circle-radius`.","sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",doc:"The stroke color of the circle.",transition:!0,"sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",doc:"The opacity of the circle's stroke.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},M={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",doc:"Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,doc:"A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,doc:"Similar to `heatmap-weight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],doc:'Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmap-density"]` as input.',transition:!1,"sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",doc:"The global opacity at which the heatmap layer will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},N={"icon-opacity":{doc:"The opacity at which the icon will be drawn.",type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,doc:"The color of the icon. This can only be used with sdf icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,doc:"The color of the icon's halo. Icon halos can only be used with SDF icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Distance of halo to the icon outline.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Fade out the halo towards the outside.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{doc:"Icons are translated relative to the map."},viewport:{doc:"Icons are translated relative to the viewport."}},doc:"Controls the frame of reference for `icon-translate`.",default:"map",requires:["icon-image","icon-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",doc:"The opacity at which the text will be drawn.",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",doc:"The color with which the text will be drawn.",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,doc:"The color of the text's halo, which helps it stand out from backgrounds.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"The halo's fadeout distance towards the outside.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{doc:"The text is translated relative to the map."},viewport:{doc:"The text is translated relative to the viewport."}},doc:"Controls the frame of reference for `text-translate`.",default:"map",requires:["text-field","text-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},P={"raster-opacity":{type:"number",doc:"The opacity at which the image will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",doc:"Rotates hues around the color wheel.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",doc:"Increase or reduce the brightness of the image. The value is the minimum brightness.",default:0,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",doc:"Increase or reduce the brightness of the image. The value is the maximum brightness.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",doc:"Increase or reduce the saturation of the image.",default:0,minimum:-1,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",doc:"Increase or reduce the contrast of the image.",default:0,minimum:-1,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",doc:"The resampling/interpolation method to use for overscaling, also known as texture magnification filter",values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"0.47.0",android:"6.3.0",ios:"4.2.0",macos:"0.9.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",doc:"Fade duration when a new tile is added.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},R={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,doc:"The direction of the light source used to generate the hillshading with 0 as the top of the viewport if `hillshade-illumination-anchor` is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`.",transition:!1,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{doc:"The hillshade illumination is relative to the north direction."},viewport:{doc:"The hillshade illumination is relative to the top of the viewport."}},default:"viewport",doc:"Direction of light source when map is rotated.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",doc:"Intensity of the hillshade",default:.5,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",doc:"The shading color of areas that face away from the light source.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",doc:"The shading color of areas that faces towards the light source.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",doc:"The shading color used to accentuate rugged terrain like sharp cliffs and gorges.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},D={"background-color":{type:"color",default:"#000000",doc:"The color with which the background will be drawn.",transition:!0,requires:[{"!":"background-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the background will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},L={"sky-type":{type:"enum",values:{gradient:{doc:"Renders the sky with a gradient that can be configured with `sky-gradient-radius` and `sky-gradient`."},atmosphere:{doc:"Renders the sky with a simulated atmospheric scattering algorithm, the sun direction can be attached to the light position or explicitly set through `sky-atmosphere-sun`."}},default:"atmosphere",doc:"The type of the sky","sdk-support":{"basic functionality":{js:"2.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,transition:!1,doc:"Position of the sun center [a azimuthal angle, p polar angle]. The azimuthal angle indicates the position of the sun relative to 0° north, where degrees proceed clockwise. The polar angle indicates the height of the sun, where 0° is directly above, at zenith, and 90° at the horizon. When this property is ommitted, the sun center is directly inherited from the light position.","sdk-support":{"basic functionality":{js:"2.0.0"}},requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,doc:"Intensity of the sun as a light source in the atmosphere (on a scale from 0 to a 100). Setting higher values will brighten up the sky.","sdk-support":{"basic functionality":{js:"2.0.0"}},"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,transition:!1,doc:"Position of the gradient center [a azimuthal angle, p polar angle]. The azimuthal angle indicates the position of the gradient center relative to 0° north, where degrees proceed clockwise. The polar angle indicates the height of the gradient center, where 0° is directly above, at zenith, and 90° at the horizon.","sdk-support":{"basic functionality":{js:"2.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,doc:"The angular distance (measured in degrees) from `sky-gradient-center` up to which the gradient extends. A value of 180 causes the gradient to wrap around to the opposite direction from `sky-gradient-center`.","sdk-support":{"basic functionality":{js:"2.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],doc:"Defines a radial color gradient with which to color the sky. The color values can be interpolated with an expression using `sky-radial-progress`. The range [0, 1] for the interpolant covers a radial distance (in degrees) of [0, `sky-gradient-radius`] centered at the position specified by `sky-gradient-center`.",transition:!1,requires:[{"sky-type":"gradient"}],"sdk-support":{"basic functionality":{js:"2.0.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",doc:"A color applied to the atmosphere sun halo. The alpha channel describes how strongly the sun halo is represented in an atmosphere sky layer.",transition:!1,requires:[{"sky-type":"atmosphere"}],"sdk-support":{"basic functionality":{js:"2.0.0"}},"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",doc:"A color used to tweak the main atmospheric scattering coefficients. Using white applies the default coefficients giving the natural blue color to the atmosphere. This color affects how heavily the corresponding wavelength is represented during scattering. The alpha channel describes the density of the atmosphere, with 1 maximum density and 0 no density.",transition:!1,requires:[{"sky-type":"atmosphere"}],"sdk-support":{"basic functionality":{js:"2.0.0"}},"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire sky layer.",transition:!0,"sdk-support":{"basic functionality":{js:"2.0.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},F={duration:{type:"number",default:300,minimum:0,units:"milliseconds",doc:"Time allotted for transitions to complete."},delay:{type:"number",default:0,minimum:0,units:"milliseconds",doc:"Length of time before a transition begins."}},U={"*":{type:"string",doc:"A name of a feature property to use as ID for feature state."}},J={$version:o,$root:r,sources:n,source:i,source_vector:s,source_raster:a,source_raster_dem:l,source_geojson:u,source_video:c,source_image:p,layer:d,layout:h,layout_background:f,layout_sky:y,layout_fill:m,layout_circle:g,layout_heatmap:b,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},"property-type":"constant"}},layout_line:v,layout_symbol:x,layout_raster:w,layout_hillshade:k,filter:j,filter_operator:z,geometry_type:S,function:{expression:{type:"expression",doc:"An expression."},stops:{type:"array",doc:"An array of stops.",value:"function_stop"},base:{type:"number",default:1,minimum:0,doc:"The exponential base of the interpolation curve. It controls the rate at which the result increases. Higher values make the result increase more towards the high end of the range. With `1` the stops are interpolated linearly."},property:{type:"string",doc:"The name of a feature property to use as the function input.",default:"$zoom"},type:{type:"enum",values:{identity:{doc:"Return the input value as the output value."},exponential:{doc:"Generate an output by interpolating between stops just less than and just greater than the function input."},interval:{doc:"Return the output value of the stop just less than the function input."},categorical:{doc:"Return the output value of the stop equal to the function input."}},doc:"The interpolation strategy to use in function evaluation.",default:"exponential"},colorSpace:{type:"enum",values:{rgb:{doc:"Use the RGB color space to interpolate color values"},lab:{doc:"Use the LAB color space to interpolate color values."},hcl:{doc:"Use the HCL color space to interpolate color values, interpolating the Hue, Chroma, and Luminance channels individually."}},doc:"The color space in which colors interpolated. Interpolating colors in perceptual color spaces like LAB and HCL tend to produce color ramps that look more consistent and produce colors that can be differentiated more easily than those interpolated in RGB space.",default:"rgb"},default:{type:"*",required:!1,doc:"A value to serve as a fallback function result when a value isn't otherwise available. It is used in the following circumstances:\n* In categorical functions, when the feature value does not match any of the stop domain values.\n* In property and zoom-and-property functions, when a feature does not contain a value for the specified property.\n* In identity functions, when the feature value is not valid for the style property (for example, if the function is being used for a `circle-color` property but the feature property value is not a string or not a valid color).\n* In interval or exponential property and zoom-and-property functions, when the feature value is not numeric.\nIf no default is provided, the style property's default is used in these circumstances."}},function_stop:T,expression:_,expression_name:$,light:A,terrain:I,paint:q,paint_fill:O,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",macos:"0.13.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:C,paint_circle:E,paint_heatmap:M,paint_symbol:N,paint_raster:P,paint_hillshade:R,paint_background:D,paint_sky:L,transition:F,"property-type":{"data-driven":{type:"property-type",doc:"Property is interpolable and can be represented using a property expression."},"cross-faded":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms."},"cross-faded-data-driven":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression."},"color-ramp":{type:"property-type",doc:"Property should be specified using a color ramp from which the output color can be sampled based on a property calculation."},"data-constant":{type:"property-type",doc:"Property is interpolable but cannot be represented using a property expression."},constant:{type:"property-type",doc:"Property is constant across all zoom levels and property values."}},promoteId:U};exports.v8=exports.latest=J;var G=/("(?:[^\\"]|\\.)*")|[:,]/g,W=function(e,t){var o,r,n;return t=t||{},o=JSON.stringify([1],void 0,void 0===t.indent?2:t.indent).slice(2,-3),r=""===o?1/0:void 0===t.maxLength?80:t.maxLength,n=t.replacer,function e(t,i,s){var a,l,u,c,p,d,h,f,y,m,g,b;if(t&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===(g=JSON.stringify(t,n)))return g;if(h=r-i.length-s,g.length<=h&&(y=g.replace(G,function(e,t){return t||e+" "})).length<=h)return y;if(null!=n&&(t=JSON.parse(g),n=void 0),"object"==typeof t&&null!==t){if(f=i+o,u=[],l=0,Array.isArray(t))for(m="[",a="]",h=t.length;l0)return[m,o+u.join(",\n"+f),a].join("\n"+i)}return g}(e,"",0)};function B(e,t){const o={};for(const r in t)void 0!==e[r]&&(o[r]=e[r]);for(const r in e)void 0===o[r]&&(o[r]=e[r]);return o}function V(e,t=2){return(e=B(e,J.$root)).layers&&(e.layers=e.layers.map(e=>B(e,J.layer))),W(e,{indent:t})}var H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function Z(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function X(e,t){return e(t={exports:{}},t.exports),t.exports}var K=X(function(e,t){!function(o){var r=t&&!t.nodeType&&t,n=e&&!e.nodeType&&e,i="object"==typeof H&&H;i.global!==i&&i.window!==i&&i.self!==i||(o=i);var s,a,l=2147483647,u=36,c=1,p=26,d=38,h=700,f=72,y=128,m="-",g=/^xn--/,b=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=u-c,k=Math.floor,j=String.fromCharCode;function z(e){throw RangeError(x[e])}function S(e,t){for(var o=e.length,r=[];o--;)r[o]=t(e[o]);return r}function T(e,t){var o=e.split("@"),r="";return o.length>1&&(r=o[0]+"@",e=o[1]),r+S((e=e.replace(v,".")).split("."),t).join(".")}function _(e){for(var t,o,r=[],n=0,i=e.length;n=55296&&t<=56319&&n65535&&(t+=j((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=j(e)}).join("")}function A(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function I(e,t,o){var r=0;for(e=o?k(e/h):e>>1,e+=k(e/t);e>w*p>>1;r+=u)e=k(e/w);return k(r+(w+1)*e/(e+d))}function q(e){var t,o,r,n,i,s,a,d,h,g,b,v=[],x=e.length,w=0,j=y,S=f;for((o=e.lastIndexOf(m))<0&&(o=0),r=0;r=128&&z("not-basic"),v.push(e.charCodeAt(r));for(n=o>0?o+1:0;n=x&&z("invalid-input"),((d=(b=e.charCodeAt(n++))-48<10?b-22:b-65<26?b-65:b-97<26?b-97:u)>=u||d>k((l-w)/s))&&z("overflow"),w+=d*s,!(d<(h=a<=S?c:a>=S+p?p:a-S));a+=u)s>k(l/(g=u-h))&&z("overflow"),s*=g;S=I(w-i,t=v.length+1,0==i),k(w/t)>l-j&&z("overflow"),j+=k(w/t),w%=t,v.splice(w++,0,j)}return $(v)}function O(e){var t,o,r,n,i,s,a,d,h,g,b,v,x,w,S,T=[];for(v=(e=_(e)).length,t=y,o=0,i=f,s=0;s=t&&bk((l-o)/(x=r+1))&&z("overflow"),o+=(a-t)*x,t=a,s=0;sl&&z("overflow"),b==t){for(d=o,h=u;!(d<(g=h<=i?c:h>=i+p?p:h-i));h+=u)S=d-g,w=u-g,T.push(j(A(g+S%w,0))),d=k(S/w);T.push(j(A(d,0))),i=I(o,x,r==n),o=0,++r}++o,++t}return T.join("")}if(s={version:"1.3.2",ucs2:{decode:_,encode:$},decode:q,encode:O,toASCII:function(e){return T(e,function(e){return b.test(e)?"xn--"+O(e):e})},toUnicode:function(e){return T(e,function(e){return g.test(e)?q(e.slice(4).toLowerCase()):e})}},r&&n)if(e.exports==r)n.exports=s;else for(a in s)s.hasOwnProperty(a)&&(r[a]=s[a]);else o.punycode=s}(H)}),Y={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}};function Q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var ee=function(e,t,o,r){t=t||"&",o=o||"=";var n={};if("string"!=typeof e||0===e.length)return n;var i=/\+/g;e=e.split(t);var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var a=e.length;s>0&&a>s&&(a=s);for(var l=0;l=0?(u=h.substr(0,f),c=h.substr(f+1)):(u=h,c=""),p=decodeURIComponent(u),d=decodeURIComponent(c),Q(n,p)?Array.isArray(n[p])?n[p].push(d):n[p]=[n[p],d]:n[p]=d}return n},te=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},oe=function(e,t,o,r){return t=t||"&",o=o||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(r){var n=encodeURIComponent(te(r))+o;return Array.isArray(e[r])?e[r].map(function(e){return n+encodeURIComponent(te(e))}).join(t):n+encodeURIComponent(te(e[r]))}).join(t):r?encodeURIComponent(te(r))+o+encodeURIComponent(te(e)):""},re=X(function(e,t){t.decode=t.parse=ee,t.encode=t.stringify=oe}),ne=re.decode,ie=re.parse,se=re.encode,ae=re.stringify,le=$e,ue=Ie,ce=qe,pe=Ae,de=he;function he(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var fe=/^([a-z0-9.+-]+:)/i,ye=/:[0-9]*$/,me=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ge=["<",">",'"',"`"," ","\r","\n","\t"],be=["{","}","|","\\","^","`"].concat(ge),ve=["'"].concat(be),xe=["%","/","?",";","#"].concat(ve),we=["/","?","#"],ke=255,je=/^[+a-z0-9A-Z_-]{0,63}$/,ze=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Se={javascript:!0,"javascript:":!0},Te={javascript:!0,"javascript:":!0},_e={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function $e(e,t,o){if(e&&Y.isObject(e)&&e instanceof he)return e;var r=new he;return r.parse(e,t,o),r}function Ae(e){return Y.isString(e)&&(e=$e(e)),e instanceof he?e.format():he.prototype.format.call(e)}function Ie(e,t){return $e(e,!1,!0).resolve(t)}function qe(e,t){return e?$e(e,!1,!0).resolveObject(t):t}he.prototype.parse=function(e,t,o){if(!Y.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),n=-1!==r&&r127?x+="x":x+=v[w];if(!x.match(je)){var j=g.slice(0,f),z=g.slice(f+1),S=v.match(ze);S&&(j.push(S[1]),z.unshift(S[2])),z.length&&(s="/"+z.join(".")+s),this.hostname=j.join(".");break}}}this.hostname.length>ke?this.hostname="":this.hostname=this.hostname.toLowerCase(),m||(this.hostname=K.toASCII(this.hostname));var T=this.port?":"+this.port:"",_=this.hostname||"";this.host=_+T,this.href+=this.host,m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!Se[u])for(f=0,b=ve.length;f0)&&o.host.split("@"))&&(o.auth=S.shift(),o.host=o.hostname=S.shift());return o.search=e.search,o.query=e.query,Y.isNull(o.pathname)&&Y.isNull(o.search)||(o.path=(o.pathname?o.pathname:"")+(o.search?o.search:"")),o.href=o.format(),o}if(!v.length)return o.pathname=null,o.search?o.path="/"+o.search:o.path=null,o.href=o.format(),o;for(var w=v.slice(-1)[0],k=(o.host||e.host||v.length>1)&&("."===w||".."===w)||""===w,j=0,z=v.length;z>=0;z--)"."===(w=v[z])?v.splice(z,1):".."===w?(v.splice(z,1),j++):j&&(v.splice(z,1),j--);if(!g&&!b)for(;j--;j)v.unshift("..");!g||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),k&&"/"!==v.join("/").substr(-1)&&v.push("");var S,T=""===v[0]||v[0]&&"/"===v[0].charAt(0);x&&(o.hostname=o.host=T?"":v.length?v.shift():"",(S=!!(o.host&&o.host.indexOf("@")>0)&&o.host.split("@"))&&(o.auth=S.shift(),o.host=o.hostname=S.shift()));return(g=g||o.host&&v.length)&&!T&&v.unshift(""),v.length?o.pathname=v.join("/"):(o.pathname=null,o.path=null),Y.isNull(o.pathname)&&Y.isNull(o.search)||(o.path=(o.pathname?o.pathname:"")+(o.search?o.search:"")),o.auth=e.auth||o.auth,o.slashes=o.slashes||e.slashes,o.href=o.format(),o},he.prototype.parseHost=function(){var e=this.host,t=ye.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Oe={parse:le,resolve:ue,resolveObject:ce,format:pe,Url:de};function Ce(e){for(let t=0;t{o({path:[e.id,t,n],key:n,value:r[n],reference:Ce(n),set(e){r[n]=e}})})}Me(e,e=>{t.paint&&r(e,"paint"),t.layout&&r(e,"layout")})}function Pe(e,t){for(const o in e)0===o.indexOf("layout")&&t(e[o],o)}function Re(e,t){for(const o in e)0===o.indexOf("paint")&&t(e[o],o)}function De(e,t){return"string"==typeof t&&"@"===t[0]?De(e,e.constants[t]):t}function Le(e){return Array.isArray(e.stops)}function Fe(e,t,o){e[o]=e[t],delete e[t]}function Ue(e){e.version=8,Ee(e,e=>{"video"===e.type&&void 0!==e.url&&Fe(e,"url","urls"),"video"===e.type&&e.coordinates.forEach(e=>e.reverse())}),Me(e,e=>{Pe(e,e=>{void 0!==e["symbol-min-distance"]&&Fe(e,"symbol-min-distance","symbol-spacing")}),Re(e,e=>{void 0!==e["background-image"]&&Fe(e,"background-image","background-pattern"),void 0!==e["line-image"]&&Fe(e,"line-image","line-pattern"),void 0!==e["fill-image"]&&Fe(e,"fill-image","fill-pattern")})}),Ne(e,{paint:!0,layout:!0},t=>{const o=De(e,t.value);Le(o)&&o.stops.forEach(t=>{t[1]=De(e,t[1])}),t.set(o)}),delete e.constants,Me(e,e=>{Pe(e,e=>{delete e["text-max-size"],delete e["icon-max-size"]}),Re(e,t=>{t["text-size"]&&(e.layout||(e.layout={}),e.layout["text-size"]=t["text-size"],delete t["text-size"]),t["icon-size"]&&(e.layout||(e.layout={}),e.layout["icon-size"]=t["icon-size"],delete t["icon-size"])})}),e.glyphs&&(e.glyphs=function(e){const t=Oe.parse(e),o=t.pathname.split("/");return"mapbox:"!==t.protocol?e:"fontstack"===t.hostname?"mapbox://fonts/mapbox/{fontstack}/{range}.pbf":"fonts"===t.hostname?`mapbox://fonts/${o[2]}/{fontstack}/{range}.pbf`:void 0}(e.glyphs)),Me(e,e=>{Pe(e,e=>{e["text-font"]&&(e["text-font"]=function(e){function t(e){return e.split(",").map(e=>e.trim())}if(Array.isArray(e))return e;if("string"==typeof e)return t(e);if("object"==typeof e)return e.stops.forEach(e=>{e[1]=t(e[1])}),e;throw new Error("unexpected font value")}(e["text-font"]))})});let t=0;for(let r=e.layers.length-1;r>=0;r--){if("symbol"!==e.layers[r].type){t=r+1;break}}const o=e.layers.splice(t);return o.reverse(),e.layers=e.layers.concat(o),e}function Je(e,...t){for(const o of t)for(const t in o)e[t]=o[t];return e}class Ge extends Error{constructor(e,t){super(t),this.message=t,this.key=e}}class We{constructor(e,t=[]){this.parent=e,this.bindings={};for(const[o,r]of t)this.bindings[o]=r}concat(e){return new We(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}const Be={kind:"null"},Ve={kind:"number"},He={kind:"string"},Ze={kind:"boolean"},Xe={kind:"color"},Ke={kind:"object"},Ye={kind:"value"},Qe={kind:"error"},et={kind:"collator"},tt={kind:"formatted"},ot={kind:"resolvedImage"};function rt(e,t){return{kind:"array",itemType:e,N:t}}function nt(e){if("array"===e.kind){const t=nt(e.itemType);return"number"==typeof e.N?`array<${t}, ${e.N}>`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}const it=[Be,Ve,He,Ze,Xe,tt,Ke,rt(Ye),ot];function st(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!st(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(const e of it)if(!st(e,t))return null}return`Expected ${nt(e)} but found ${nt(t)} instead.`}function at(e,t){return t.some(t=>t.kind===e.kind)}function lt(e,t){return t.some(t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e)}var ut=X(function(e,t){var o={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(e){return(e=Math.round(e))<0?0:e>255?255:e}function n(e){return e<0?0:e>1?1:e}function i(e){return"%"===e[e.length-1]?r(parseFloat(e)/100*255):r(parseInt(e))}function s(e){return"%"===e[e.length-1]?n(parseFloat(e)/100):n(parseFloat(e))}function a(e,t,o){return o<0?o+=1:o>1&&(o-=1),6*o<1?e+(t-e)*o*6:2*o<1?t:3*o<2?e+(t-e)*(2/3-o)*6:e}try{t.parseCSSColor=function(e){var t,n=e.replace(/ /g,"").toLowerCase();if(n in o)return o[n].slice();if("#"===n[0])return 4===n.length?(t=parseInt(n.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===n.length&&(t=parseInt(n.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var l=n.indexOf("("),u=n.indexOf(")");if(-1!==l&&u+1===n.length){var c=n.substr(0,l),p=n.substr(l+1,u-(l+1)).split(","),d=1;switch(c){case"rgba":if(4!==p.length)return null;d=s(p.pop());case"rgb":return 3!==p.length?null:[i(p[0]),i(p[1]),i(p[2]),d];case"hsla":if(4!==p.length)return null;d=s(p.pop());case"hsl":if(3!==p.length)return null;var h=(parseFloat(p[0])%360+360)%360/360,f=s(p[1]),y=s(p[2]),m=y<=.5?y*(f+1):y+f-y*f,g=2*y-m;return[r(255*a(g,m,h+1/3)),r(255*a(g,m,h)),r(255*a(g,m,h-1/3)),d];default:return null}}return null}}catch(l){}}),ct=ut.parseCSSColor;class pt{constructor(e,t,o,r=1){this.r=e,this.g=t,this.b=o,this.a=r}static parse(e){if(!e)return;if(e instanceof pt)return e;if("string"!=typeof e)return;const t=ct(e);return t?new pt(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3]):void 0}toString(){const[e,t,o,r]=this.toArray();return`rgba(${Math.round(e)},${Math.round(t)},${Math.round(o)},${r})`}toArray(){const{r:e,g:t,b:o,a:r}=this;return 0===r?[0,0,0,0]:[255*e/r,255*t/r,255*o/r,r]}}exports.Color=pt,pt.black=new pt(0,0,0,1),pt.white=new pt(1,1,1,1),pt.transparent=new pt(0,0,0,0),pt.red=new pt(1,0,0,1),pt.blue=new pt(0,0,1,1);class dt{constructor(e,t,o){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=o,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class ht{constructor(e,t,o,r,n){this.text=e,this.image=t,this.scale=o,this.fontStack=r,this.textColor=n}}class ft{constructor(e){this.sections=e}static fromString(e){return new ft([new ht(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(e=>0!==e.text.length||e.image&&0!==e.image.name.length)}static factory(e){return e instanceof ft?e:ft.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const t of this.sections){if(t.image){e.push(["image",t.image.name]);continue}e.push(t.text);const o={};t.fontStack&&(o["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(o["font-scale"]=t.scale),t.textColor&&(o["text-color"]=["rgba"].concat(t.textColor.toArray())),e.push(o)}return e}}class yt{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new yt({name:e,available:!1}):null}serialize(){return["image",this.name]}}function mt(e,t,o,r){if(!("number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof o&&o>=0&&o<=255)){return`Invalid rgba value [${("number"==typeof r?[e,t,o,r]:[e,t,o]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}return void 0===r||"number"==typeof r&&r>=0&&r<=1?null:`Invalid rgba value [${[e,t,o,r].join(", ")}]: 'a' must be between 0 and 1.`}function gt(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof pt)return!0;if(e instanceof dt)return!0;if(e instanceof ft)return!0;if(e instanceof yt)return!0;if(Array.isArray(e)){for(const t of e)if(!gt(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!gt(e[t]))return!1;return!0}return!1}function bt(e){if(null===e)return Be;if("string"==typeof e)return He;if("boolean"==typeof e)return Ze;if("number"==typeof e)return Ve;if(e instanceof pt)return Xe;if(e instanceof dt)return et;if(e instanceof ft)return tt;if(e instanceof yt)return ot;if(Array.isArray(e)){const t=e.length;let o;for(const r of e){const e=bt(r);if(o){if(o===e)continue;o=Ye;break}o=e}return rt(o||Ye,t)}return Ke}function vt(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof pt||e instanceof ft||e instanceof yt?e.toString():JSON.stringify(e)}class xt{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!gt(e[1]))return t.error("invalid value");const o=e[1];let r=bt(o);const n=t.expectedType;return"array"!==r.kind||0!==r.N||!n||"array"!==n.kind||"number"==typeof n.N&&0!==n.N||(r=n),new xt(r,o)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof pt?["rgba"].concat(this.value.toArray()):this.value instanceof ft?this.value.serialize():this.value}}class wt{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const kt={string:He,number:Ve,boolean:Ze,object:Ke};class jt{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let o,r=1;const n=e[0];if("array"===n){let n,i;if(e.length>2){const o=e[1];if("string"!=typeof o||!(o in kt)||"object"===o)return t.error('The item type argument of "array" must be one of string, number, boolean',1);n=kt[o],r++}else n=Ye;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);i=e[2],r++}o=rt(n,i)}else o=kt[n];const i=[];for(;re.outputDefined())}serialize(){const e=this.type,t=[e.kind];if("array"===e.kind){const o=e.itemType;if("string"===o.kind||"number"===o.kind||"boolean"===o.kind){t.push(o.kind);const r=e.N;("number"==typeof r||this.args.length>1)&&t.push(r)}}return t.concat(this.args.map(e=>e.serialize()))}}class zt{constructor(e){this.type=tt,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const o=e[1];if(!Array.isArray(o)&&"object"==typeof o)return t.error("First argument must be an image or text section.");const r=[];let n=!1;for(let i=1;i<=e.length-1;++i){const o=e[i];if(n&&"object"==typeof o&&!Array.isArray(o)){n=!1;let e=null;if(o["font-scale"]&&!(e=t.parse(o["font-scale"],1,Ve)))return null;let i=null;if(o["text-font"]&&!(i=t.parse(o["text-font"],1,rt(He))))return null;let s=null;if(o["text-color"]&&!(s=t.parse(o["text-color"],1,Xe)))return null;const a=r[r.length-1];a.scale=e,a.font=i,a.textColor=s}else{const o=t.parse(e[i],1,Ye);if(!o)return null;const s=o.type.kind;if("string"!==s&&"value"!==s&&"null"!==s&&"resolvedImage"!==s)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");n=!0,r.push({content:o,scale:null,font:null,textColor:null})}}return new zt(r)}evaluate(e){return new ft(this.sections.map(t=>{const o=t.content.evaluate(e);return bt(o)===ot?new ht("",o,null,null,null):new ht(vt(o),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)}))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const t of this.sections){e.push(t.content.serialize());const o={};t.scale&&(o["font-scale"]=t.scale.serialize()),t.font&&(o["text-font"]=t.font.serialize()),t.textColor&&(o["text-color"]=t.textColor.serialize()),e.push(o)}return e}}class St{constructor(e){this.type=ot,this.input=e}static parse(e,t){if(2!==e.length)return t.error("Expected two arguments.");const o=t.parse(e[1],1,He);return o?new St(o):t.error("No image name provided.")}evaluate(e){const t=this.input.evaluate(e),o=yt.fromString(t);return o&&e.availableImages&&(o.available=e.availableImages.indexOf(t)>-1),o}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const Tt={"to-boolean":Ze,"to-color":Xe,"to-number":Ve,"to-string":He};class _t{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const o=e[0];if(("to-boolean"===o||"to-string"===o)&&2!==e.length)return t.error("Expected one argument.");const r=Tt[o],n=[];for(let i=1;i4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:mt(t[0],t[1],t[2],t[3])))return new pt(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new wt(o||`Could not parse color from value '${"string"==typeof t?t:String(JSON.stringify(t))}'`)}if("number"===this.type.kind){let t=null;for(const o of this.args){if(null===(t=o.evaluate(e)))return 0;const r=Number(t);if(!isNaN(r))return r}throw new wt(`Could not convert ${JSON.stringify(t)} to number.`)}return"formatted"===this.type.kind?ft.fromString(vt(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?yt.fromString(vt(this.args[0].evaluate(e))):vt(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if("formatted"===this.type.kind)return new zt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new St(this.args[0]).serialize();const e=[`to-${this.type.kind}`];return this.eachChild(t=>{e.push(t.serialize())}),e}}const $t=["Unknown","Point","LineString","Polygon"];class At{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?$t[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=pt.parse(e)),t}}class It{constructor(e,t,o,r){this.name=e,this.type=t,this._evaluate=o,this.args=r}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,t){const o=e[0],r=It.definitions[o];if(!r)return t.error(`Unknown expression "${o}". If you wanted a literal array, use ["literal", [...]].`,0);const n=Array.isArray(r)?r[0]:r.type,i=Array.isArray(r)?[[r[1],r[2]]]:r.overloads,s=i.filter(([t])=>!Array.isArray(t)||t.length===e.length-1);let a=null;for(const[l,u]of s){a=new lo(t.registry,t.path,null,t.scope);const r=[];let i=!1;for(let t=1;tqt(e)).join(" | "),r=[];for(let n=1;n=t[2])&&(!(e[1]<=t[1])&&!(e[3]>=t[3])))}function Rt(e,t){const o=Mt(e[0]),r=Nt(e[1]),n=Math.pow(2,t.z);return[Math.round(o*n*Ct),Math.round(r*n*Ct)]}function Dt(e,t,o){const r=e[0]-t[0],n=e[1]-t[1],i=e[0]-o[0],s=e[1]-o[1];return r*s-i*n==0&&r*i<=0&&n*s<=0}function Lt(e,t,o){return t[1]>e[1]!=o[1]>e[1]&&e[0]<(o[0]-t[0])*(e[1]-t[1])/(o[1]-t[1])+t[0]}function Ft(e,t){let o=!1;for(let r=0,n=t.length;r0&&p<0||c<0&&p>0}function Wt(e,t,o,r){const n=[t[0]-e[0],t[1]-e[1]];return 0!==Jt([r[0]-o[0],r[1]-o[1]],n)&&!(!Gt(e,t,o,r)||!Gt(o,r,e,t))}function Bt(e,t,o){for(const r of o)for(let o=0;oo[2]){const t=.5*r;let n=e[0]-o[0]>t?-r:o[0]-e[0]>t?r:0;0===n&&(n=e[0]-o[2]>t?-r:o[2]-e[0]>t?r:0),e[0]+=n}Et(t,e)}function Yt(e){e[0]=e[1]=1/0,e[2]=e[3]=-1/0}function Qt(e,t,o,r){const n=Math.pow(2,r.z)*Ct,i=[r.x*Ct,r.y*Ct],s=[];for(const a of e)for(const e of a){const r=[e.x+i[0],e.y+i[1]];Kt(r,t,o,n),s.push(r)}return s}function eo(e,t,o,r){const n=Math.pow(2,r.z)*Ct,i=[r.x*Ct,r.y*Ct],s=[];for(const a of e){const e=[];for(const o of a){const r=[o.x+i[0],o.y+i[1]];Et(t,r),e.push(r)}s.push(e)}if(t[2]-t[0]<=n/2){Yt(t);for(const e of s)for(const r of e)Kt(r,t,o,n)}return s}function to(e,t){const o=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();if("Polygon"===t.type){const i=Zt(t.coordinates,r,n),s=Qt(e.geometry(),o,r,n);if(!Pt(o,r))return!1;for(const e of s)if(!Ft(e,i))return!1}if("MultiPolygon"===t.type){const i=Xt(t.coordinates,r,n),s=Qt(e.geometry(),o,r,n);if(!Pt(o,r))return!1;for(const e of s)if(!Ut(e,i))return!1}return!0}function oo(e,t){const o=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();if("Polygon"===t.type){const i=Zt(t.coordinates,r,n),s=eo(e.geometry(),o,r,n);if(!Pt(o,r))return!1;for(const e of s)if(!Vt(e,i))return!1}if("MultiPolygon"===t.type){const i=Xt(t.coordinates,r,n),s=eo(e.geometry(),o,r,n);if(!Pt(o,r))return!1;for(const e of s)if(!Ht(e,i))return!1}return!0}class ro{constructor(e,t){this.type=Ze,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(gt(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e{t&&!no(e)&&(t=!1)}),t}function io(e){if(e instanceof It&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild(e=>{t&&!io(e)&&(t=!1)}),t}function so(e,t){if(e instanceof It&&t.indexOf(e.name)>=0)return!1;let o=!0;return e.eachChild(e=>{o&&!so(e,t)&&(o=!1)}),o}class ao{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");const o=e[1];return t.scope.has(o)?new ao(o,t.scope.get(o)):t.error(`Unknown variable "${o}". Make sure "${o}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class lo{constructor(e,t=[],o,r=new We,n=[]){this.registry=e,this.path=t,this.key=t.map(e=>`[${e}]`).join(""),this.scope=r,this.errors=n,this.expectedType=o}parse(e,t,o,r,n={}){return t?this.concat(t,o,r)._parse(e,n):this._parse(e,n)}_parse(e,t){function o(e,t,o){return"assert"===o?new jt(t,[e]):"coerce"===o?new _t(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const n=e[0];if("string"!=typeof n)return this.error(`Expression name must be a string, but found ${typeof n} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const i=this.registry[n];if(i){let n=i.parse(e,this);if(!n)return null;if(this.expectedType){const e=this.expectedType,r=n.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==r.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==r.kind&&"string"!==r.kind){if(this.checkSubtype(e,r))return null}else n=o(n,e,t.typeAnnotation||"coerce");else n=o(n,e,t.typeAnnotation||"assert")}if(!(n instanceof xt)&&"resolvedImage"!==n.type.kind&&uo(n)){const e=new At;try{n=new xt(n.type,n.evaluate(e))}catch(r){return this.error(r.message),null}}return n}return this.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0)}return void 0===e?this.error("'undefined' value invalid. Use null instead."):"object"==typeof e?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof e} instead.`)}concat(e,t,o){const r="number"==typeof e?this.path.concat(e):this.path,n=o?this.scope.concat(o):this.scope;return new lo(this.registry,r,t||null,n,this.errors)}error(e,...t){const o=`${this.key}${t.map(e=>`[${e}]`).join("")}`;this.errors.push(new Ge(o,e))}checkSubtype(e,t){const o=st(e,t);return o&&this.error(o),o}}function uo(e){if(e instanceof ao)return uo(e.boundExpression);if(e instanceof It&&"error"===e.name)return!1;if(e instanceof Ot)return!1;if(e instanceof ro)return!1;const t=e instanceof _t||e instanceof jt;let o=!0;return e.eachChild(e=>{o=t?o&&uo(e):o&&e instanceof xt}),!!o&&(no(e)&&so(e,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script"]))}function co(e,t){const o=e.length-1;let r,n,i=0,s=o,a=0;for(;i<=s;)if(r=e[a=Math.floor((i+s)/2)],n=e[a+1],r<=t){if(a===o||tt))throw new wt("Input is not a number.");s=a-1}return 0}class po{constructor(e,t,o){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[r,n]of o)this.labels.push(r),this.outputs.push(n)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");const o=t.parse(e[1],1,Ve);if(!o)return null;const r=[];let n=null;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);for(let i=1;i=o)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',a);const u=t.parse(s,l,n);if(!u)return null;n=n||u.type,r.push([o,u])}return new po(n,o,r)}evaluate(e){const t=this.labels,o=this.outputs;if(1===t.length)return o[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return o[0].evaluate(e);const n=t.length;return r>=t[n-1]?o[n-1].evaluate(e):o[co(t,r)].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let t=0;t0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}var ho=fo;function fo(e,t,o,r){this.cx=3*e,this.bx=3*(o-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=r,this.p2x=o,this.p2y=r}function yo(e,t,o){return e*(1-o)+t*o}function mo(e,t,o){return new pt(yo(e.r,t.r,o),yo(e.g,t.g,o),yo(e.b,t.b,o),yo(e.a,t.a,o))}function go(e,t,o){return e.map((e,r)=>yo(e,t[r],o))}fo.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},fo.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},fo.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},fo.prototype.solveCurveX=function(e,t){var o,r,n,i,s;for(void 0===t&&(t=1e-6),n=e,s=0;s<8;s++){if(i=this.sampleCurveX(n)-e,Math.abs(i)(r=1))return r;for(;oi?o=n:r=n,n=.5*(r-o)+o}return n},fo.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var bo=Object.freeze({__proto__:null,number:yo,color:mo,array:go});const vo=.95047,xo=1,wo=1.08883,ko=4/29,jo=6/29,zo=3*jo*jo,So=jo*jo*jo,To=Math.PI/180,_o=180/Math.PI;function $o(e){return e>So?Math.pow(e,1/3):e/zo+ko}function Ao(e){return e>jo?e*e*e:zo*(e-ko)}function Io(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function qo(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Oo(e){const t=qo(e.r),o=qo(e.g),r=qo(e.b),n=$o((.4124564*t+.3575761*o+.1804375*r)/vo),i=$o((.2126729*t+.7151522*o+.072175*r)/xo);return{l:116*i-16,a:500*(n-i),b:200*(i-$o((.0193339*t+.119192*o+.9503041*r)/wo)),alpha:e.a}}function Co(e){let t=(e.l+16)/116,o=isNaN(e.a)?t:t+e.a/500,r=isNaN(e.b)?t:t-e.b/200;return t=xo*Ao(t),o=vo*Ao(o),r=wo*Ao(r),new pt(Io(3.2404542*o-1.5371385*t-.4985314*r),Io(-.969266*o+1.8760108*t+.041556*r),Io(.0556434*o-.2040259*t+1.0572252*r),e.alpha)}function Eo(e,t,o){return{l:yo(e.l,t.l,o),a:yo(e.a,t.a,o),b:yo(e.b,t.b,o),alpha:yo(e.alpha,t.alpha,o)}}function Mo(e){const{l:t,a:o,b:r}=Oo(e),n=Math.atan2(r,o)*_o;return{h:n<0?n+360:n,c:Math.sqrt(o*o+r*r),l:t,alpha:e.a}}function No(e){const t=e.h*To,o=e.c;return Co({l:e.l,a:Math.cos(t)*o,b:Math.sin(t)*o,alpha:e.alpha})}function Po(e,t,o){const r=t-e;return e+o*(r>180||r<-180?r-360*Math.round(r/360):r)}function Ro(e,t,o){return{h:Po(e.h,t.h,o),c:yo(e.c,t.c,o),l:yo(e.l,t.l,o),alpha:yo(e.alpha,t.alpha,o)}}const Do={forward:Oo,reverse:Co,interpolate:Eo},Lo={forward:Mo,reverse:No,interpolate:Ro};var Fo=Object.freeze({__proto__:null,lab:Do,hcl:Lo});class Uo{constructor(e,t,o,r,n){this.type=e,this.operator=t,this.interpolation=o,this.input=r,this.labels=[],this.outputs=[];for(const[i,s]of n)this.labels.push(i),this.outputs.push(s)}static interpolationFactor(e,t,o,r){let n=0;if("exponential"===e.name)n=Jo(t,e.base,o,r);else if("linear"===e.name)n=Jo(t,1,o,r);else if("cubic-bezier"===e.name){const i=e.controlPoints;n=new ho(i[0],i[1],i[2],i[3]).solve(Jo(t,1,o,r))}return n}static parse(e,t){let[o,r,n,...i]=e;if(!Array.isArray(r)||0===r.length)return t.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){const e=r[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:e}}else{if("cubic-bezier"!==r[0])return t.error(`Unknown interpolation type ${String(r[0])}`,1,0);{const e=r.slice(1);if(4!==e.length||e.some(e=>"number"!=typeof e||e<0||e>1))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:e}}}if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(!(n=t.parse(n,2,Ve)))return null;const s=[];let a=null;"interpolate-hcl"===o||"interpolate-lab"===o?a=Xe:t.expectedType&&"value"!==t.expectedType.kind&&(a=t.expectedType);for(let l=0;l=e)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',r);const u=t.parse(o,n,a);if(!u)return null;a=a||u.type,s.push([e,u])}return"number"===a.kind||"color"===a.kind||"array"===a.kind&&"number"===a.itemType.kind&&"number"==typeof a.N?new Uo(a,o,r,n,s):t.error(`Type ${nt(a)} is not interpolatable.`)}evaluate(e){const t=this.labels,o=this.outputs;if(1===t.length)return o[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return o[0].evaluate(e);const n=t.length;if(r>=t[n-1])return o[n-1].evaluate(e);const i=co(t,r),s=t[i],a=t[i+1],l=Uo.interpolationFactor(this.interpolation,r,s,a),u=o[i].evaluate(e),c=o[i+1].evaluate(e);return"interpolate"===this.operator?bo[this.type.kind.toLowerCase()](u,c,l):"interpolate-hcl"===this.operator?Lo.reverse(Lo.interpolate(Lo.forward(u),Lo.forward(c),l)):Do.reverse(Do.interpolate(Do.forward(u),Do.forward(c),l))}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const t=[this.operator,e,this.input.serialize()];for(let o=0;ost(r,e.type));return new Go(i?Ye:o,n)}evaluate(e){let t,o=null,r=0;for(const n of this.args)if(r++,(o=n.evaluate(e))&&o instanceof yt&&!o.available&&(t||(t=o.name),o=null,r===this.args.length&&(o=t)),null!==o)break;return o}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(t=>{e.push(t.serialize())}),e}}class Wo{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const o=[];for(let n=1;n=o.length)throw new wt(`Array index out of bounds: ${t} > ${o.length-1}.`);if(t!==Math.floor(t))throw new wt(`Array index must be an integer, but found ${t} instead.`);return o[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class Vo{constructor(e,t){this.type=Ze,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const o=t.parse(e[1],1,Ye),r=t.parse(e[2],2,Ye);return o&&r?at(o.type,[Ze,He,Ve,Be,Ye])?new Vo(o,r):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${nt(o.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),o=this.haystack.evaluate(e);if(!o)return!1;if(!lt(t,["boolean","string","number","null"]))throw new wt(`Expected first argument to be of type boolean, string, number or null, but found ${nt(bt(t))} instead.`);if(!lt(o,["string","array"]))throw new wt(`Expected second argument to be of type array or string, but found ${nt(bt(o))} instead.`);return o.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class Ho{constructor(e,t,o){this.type=Ve,this.needle=e,this.haystack=t,this.fromIndex=o}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const o=t.parse(e[1],1,Ye),r=t.parse(e[2],2,Ye);if(!o||!r)return null;if(!at(o.type,[Ze,He,Ve,Be,Ye]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${nt(o.type)} instead`);if(4===e.length){const n=t.parse(e[3],3,Ve);return n?new Ho(o,r,n):null}return new Ho(o,r)}evaluate(e){const t=this.needle.evaluate(e),o=this.haystack.evaluate(e);if(!lt(t,["boolean","string","number","null"]))throw new wt(`Expected first argument to be of type boolean, string, number or null, but found ${nt(bt(t))} instead.`);if(!lt(o,["string","array"]))throw new wt(`Expected second argument to be of type array or string, but found ${nt(bt(o))} instead.`);if(this.fromIndex){const r=this.fromIndex.evaluate(e);return o.indexOf(t,r)}return o.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class Zo{constructor(e,t,o,r,n,i){this.inputType=e,this.type=t,this.input=o,this.cases=r,this.outputs=n,this.otherwise=i}static parse(e,t){if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return t.error("Expected an even number of arguments.");let o,r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);const n={},i=[];for(let l=2;lNumber.MAX_SAFE_INTEGER)return u.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return u.error("Numeric branch labels must be integer values.");if(o){if(u.checkSubtype(o,bt(e)))return null}else o=bt(e);if(void 0!==n[String(e)])return u.error("Branch labels must be unique.");n[String(e)]=i.length}const c=t.parse(a,l,r);if(!c)return null;r=r||c.type,i.push(c)}const s=t.parse(e[1],1,Ye);if(!s)return null;const a=t.parse(e[e.length-1],e.length-1,r);return a?"value"!==s.type.kind&&t.concat(1).checkSubtype(o,s.type)?null:new Zo(o,r,s,n,i,a):null}evaluate(e){const t=this.input.evaluate(e);return(bt(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),o=[],r={};for(const i of t){const e=r[this.cases[i]];void 0===e?(r[this.cases[i]]=o.length,o.push([this.cases[i],[i]])):o[e][1].push(i)}const n=e=>"number"===this.inputType.kind?Number(e):e;for(const[i,s]of o)1===s.length?e.push(n(s[0])):e.push(s.map(n)),e.push(this.outputs[i].serialize());return e.push(this.otherwise.serialize()),e}}class Xo{constructor(e,t,o){this.type=e,this.branches=t,this.otherwise=o}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return t.error("Expected an odd number of arguments.");let o;t.expectedType&&"value"!==t.expectedType.kind&&(o=t.expectedType);const r=[];for(let i=1;it.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(t=>{e.push(t.serialize())}),e}}class Ko{constructor(e,t,o,r){this.type=e,this.input=t,this.beginIndex=o,this.endIndex=r}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const o=t.parse(e[1],1,Ye),r=t.parse(e[2],2,Ve);if(!o||!r)return null;if(!at(o.type,[rt(Ye),He,Ye]))return t.error(`Expected first argument to be of type array or string, but found ${nt(o.type)} instead`);if(4===e.length){const n=t.parse(e[3],3,Ve);return n?new Ko(o.type,o,r,n):null}return new Ko(o.type,o,r)}evaluate(e){const t=this.input.evaluate(e),o=this.beginIndex.evaluate(e);if(!lt(t,["string","array"]))throw new wt(`Expected first argument to be of type array or string, but found ${nt(bt(t))} instead.`);if(this.endIndex){const r=this.endIndex.evaluate(e);return t.slice(o,r)}return t.slice(o)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}function Yo(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function Qo(e,t,o){return t===o}function er(e,t,o){return t!==o}function tr(e,t,o){return to}function rr(e,t,o){return t<=o}function nr(e,t,o){return t>=o}function ir(e,t,o,r){return 0===r.compare(t,o)}function sr(e,t,o,r){return!ir(e,t,o,r)}function ar(e,t,o,r){return r.compare(t,o)<0}function lr(e,t,o,r){return r.compare(t,o)>0}function ur(e,t,o,r){return r.compare(t,o)<=0}function cr(e,t,o,r){return r.compare(t,o)>=0}function pr(e,t,o){const r="=="!==e&&"!="!==e;return class n{constructor(e,t,o){this.type=Ze,this.lhs=e,this.rhs=t,this.collator=o,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");const o=e[0];let i=t.parse(e[1],1,Ye);if(!i)return null;if(!Yo(o,i.type))return t.concat(1).error(`"${o}" comparisons are not supported for type '${nt(i.type)}'.`);let s=t.parse(e[2],2,Ye);if(!s)return null;if(!Yo(o,s.type))return t.concat(2).error(`"${o}" comparisons are not supported for type '${nt(s.type)}'.`);if(i.type.kind!==s.type.kind&&"value"!==i.type.kind&&"value"!==s.type.kind)return t.error(`Cannot compare types '${nt(i.type)}' and '${nt(s.type)}'.`);r&&("value"===i.type.kind&&"value"!==s.type.kind?i=new jt(s.type,[i]):"value"!==i.type.kind&&"value"===s.type.kind&&(s=new jt(i.type,[s])));let a=null;if(4===e.length){if("string"!==i.type.kind&&"string"!==s.type.kind&&"value"!==i.type.kind&&"value"!==s.type.kind)return t.error("Cannot use collator to compare non-string types.");if(!(a=t.parse(e[3],3,et)))return null}return new n(i,s,a)}evaluate(n){const i=this.lhs.evaluate(n),s=this.rhs.evaluate(n);if(r&&this.hasUntypedArgument){const t=bt(i),o=bt(s);if(t.kind!==o.kind||"string"!==t.kind&&"number"!==t.kind)throw new wt(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${o.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const e=bt(i),o=bt(s);if("string"!==e.kind||"string"!==o.kind)return t(n,i,s)}return this.collator?o(n,i,s,this.collator.evaluate(n)):t(n,i,s)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}serialize(){const t=[e];return this.eachChild(e=>{t.push(e.serialize())}),t}}}const dr=pr("==",Qo,ir),hr=pr("!=",er,sr),fr=pr("<",tr,ar),yr=pr(">",or,lr),mr=pr("<=",rr,ur),gr=pr(">=",nr,cr);class br{constructor(e,t,o,r,n){this.type=He,this.number=e,this.locale=t,this.currency=o,this.minFractionDigits=r,this.maxFractionDigits=n}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");const o=t.parse(e[1],1,Ve);if(!o)return null;const r=e[2];if("object"!=typeof r||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");let n=null;if(r.locale&&!(n=t.parse(r.locale,1,He)))return null;let i=null;if(r.currency&&!(i=t.parse(r.currency,1,He)))return null;let s=null;if(r["min-fraction-digits"]&&!(s=t.parse(r["min-fraction-digits"],1,Ve)))return null;let a=null;return r["max-fraction-digits"]&&!(a=t.parse(r["max-fraction-digits"],1,Ve))?null:new br(o,n,i,s,a)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class vr{constructor(e){this.type=Ve,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);const o=t.parse(e[1],1);return o?"array"!==o.type.kind&&"string"!==o.type.kind&&"value"!==o.type.kind?t.error(`Expected argument of type string or array, but found ${nt(o.type)} instead.`):new vr(o):null}evaluate(e){const t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new wt(`Expected value to be of type string or array, but found ${nt(bt(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(t=>{e.push(t.serialize())}),e}}const xr={"==":dr,"!=":hr,">":yr,"<":fr,">=":gr,"<=":mr,array:jt,at:Bo,boolean:jt,case:Xo,coalesce:Go,collator:Ot,format:zt,image:St,in:Vo,"index-of":Ho,interpolate:Uo,"interpolate-hcl":Uo,"interpolate-lab":Uo,length:vr,let:Wo,literal:xt,match:Zo,number:jt,"number-format":br,object:jt,slice:Ko,step:po,string:jt,"to-boolean":_t,"to-color":_t,"to-number":_t,"to-string":_t,var:ao,within:ro};function wr(e,[t,o,r,n]){t=t.evaluate(e),o=o.evaluate(e),r=r.evaluate(e);const i=n?n.evaluate(e):1,s=mt(t,o,r,i);if(s)throw new wt(s);return new pt(t/255*i,o/255*i,r/255*i,i)}function kr(e,t){return e in t}function jr(e,t){const o=t[e];return void 0===o?null:o}function zr(e,t,o,r){for(;o<=r;){const n=o+r>>1;if(t[n]===e)return!0;t[n]>e?r=n-1:o=n+1}return!1}function Sr(e){return{type:e}}function Tr(e){return{result:"success",value:e}}function _r(e){return{result:"error",value:e}}function $r(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function Ar(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function Ir(e){return!!e.expression&&e.expression.interpolated}function qr(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function Or(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Cr(e){return e}function Er(e,t){const o="color"===t.type,r=e.stops&&"object"==typeof e.stops[0][0],n=r||void 0!==e.property,i=r||!n,s=e.type||(Ir(t)?"exponential":"interval");if(o&&((e=Je({},e)).stops&&(e.stops=e.stops.map(e=>[e[0],pt.parse(e[1])])),e.default?e.default=pt.parse(e.default):e.default=pt.parse(t.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!Fo[e.colorSpace])throw new Error(`Unknown color space: ${e.colorSpace}`);let a,l,u;if("exponential"===s)a=Rr;else if("interval"===s)a=Pr;else if("categorical"===s){a=Nr,l=Object.create(null);for(const t of e.stops)l[t[0]]=t[1];u=typeof e.stops[0][0]}else{if("identity"!==s)throw new Error(`Unknown function type "${s}"`);a=Dr}if(r){const o={},r=[];for(let t=0;te[0]),evaluate:({zoom:o},r)=>Rr({stops:n,base:e.base},t,o).evaluate(o,r)}}if(i){const o="exponential"===s?{name:"exponential",base:void 0!==e.base?e.base:1}:null;return{kind:"camera",interpolationType:o,interpolationFactor:Uo.interpolationFactor.bind(void 0,o),zoomStops:e.stops.map(e=>e[0]),evaluate:({zoom:o})=>a(e,t,o,l,u)}}return{kind:"source",evaluate(o,r){const n=r&&r.properties?r.properties[e.property]:void 0;return void 0===n?Mr(e.default,t.default):a(e,t,n,l,u)}}}function Mr(e,t,o){return void 0!==e?e:void 0!==t?t:void 0!==o?o:void 0}function Nr(e,t,o,r,n){return Mr(typeof o===n?r[o]:void 0,e.default,t.default)}function Pr(e,t,o){if("number"!==qr(o))return Mr(e.default,t.default);const r=e.stops.length;if(1===r)return e.stops[0][1];if(o<=e.stops[0][0])return e.stops[0][1];if(o>=e.stops[r-1][0])return e.stops[r-1][1];const n=co(e.stops.map(e=>e[0]),o);return e.stops[n][1]}function Rr(e,t,o){const r=void 0!==e.base?e.base:1;if("number"!==qr(o))return Mr(e.default,t.default);const n=e.stops.length;if(1===n)return e.stops[0][1];if(o<=e.stops[0][0])return e.stops[0][1];if(o>=e.stops[n-1][0])return e.stops[n-1][1];const i=co(e.stops.map(e=>e[0]),o),s=Lr(o,r,e.stops[i][0],e.stops[i+1][0]),a=e.stops[i][1],l=e.stops[i+1][1];let u=bo[t.type]||Cr;if(e.colorSpace&&"rgb"!==e.colorSpace){const t=Fo[e.colorSpace];u=((e,o)=>t.reverse(t.interpolate(t.forward(e),t.forward(o),s)))}return"function"==typeof a.evaluate?{evaluate(...e){const t=a.evaluate.apply(void 0,e),o=l.evaluate.apply(void 0,e);if(void 0!==t&&void 0!==o)return u(t,o,s)}}:u(a,l,s)}function Dr(e,t,o){return"color"===t.type?o=pt.parse(o):"formatted"===t.type?o=ft.fromString(o.toString()):"resolvedImage"===t.type?o=yt.fromString(o.toString()):qr(o)===t.type||"enum"===t.type&&t.values[o]||(o=void 0),Mr(o,e.default,t.default)}function Lr(e,t,o,r){const n=r-o,i=e-o;return 0===n?0:1===t?i/n:(Math.pow(t,i)-1)/(Math.pow(t,n)-1)}It.register(xr,{error:[Qe,[He],(e,[t])=>{throw new wt(t.evaluate(e))}],typeof:[He,[Ye],(e,[t])=>nt(bt(t.evaluate(e)))],"to-rgba":[rt(Ve,4),[Xe],(e,[t])=>t.evaluate(e).toArray()],rgb:[Xe,[Ve,Ve,Ve],wr],rgba:[Xe,[Ve,Ve,Ve,Ve],wr],has:{type:Ze,overloads:[[[He],(e,[t])=>kr(t.evaluate(e),e.properties())],[[He,Ke],(e,[t,o])=>kr(t.evaluate(e),o.evaluate(e))]]},get:{type:Ye,overloads:[[[He],(e,[t])=>jr(t.evaluate(e),e.properties())],[[He,Ke],(e,[t,o])=>jr(t.evaluate(e),o.evaluate(e))]]},"feature-state":[Ye,[He],(e,[t])=>jr(t.evaluate(e),e.featureState||{})],properties:[Ke,[],e=>e.properties()],"geometry-type":[He,[],e=>e.geometryType()],id:[Ye,[],e=>e.id()],zoom:[Ve,[],e=>e.globals.zoom],"heatmap-density":[Ve,[],e=>e.globals.heatmapDensity||0],"line-progress":[Ve,[],e=>e.globals.lineProgress||0],"sky-radial-progress":[Ve,[],e=>e.globals.skyRadialProgress||0],accumulated:[Ye,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[Ve,Sr(Ve),(e,t)=>{let o=0;for(const r of t)o+=r.evaluate(e);return o}],"*":[Ve,Sr(Ve),(e,t)=>{let o=1;for(const r of t)o*=r.evaluate(e);return o}],"-":{type:Ve,overloads:[[[Ve,Ve],(e,[t,o])=>t.evaluate(e)-o.evaluate(e)],[[Ve],(e,[t])=>-t.evaluate(e)]]},"/":[Ve,[Ve,Ve],(e,[t,o])=>t.evaluate(e)/o.evaluate(e)],"%":[Ve,[Ve,Ve],(e,[t,o])=>t.evaluate(e)%o.evaluate(e)],ln2:[Ve,[],()=>Math.LN2],pi:[Ve,[],()=>Math.PI],e:[Ve,[],()=>Math.E],"^":[Ve,[Ve,Ve],(e,[t,o])=>Math.pow(t.evaluate(e),o.evaluate(e))],sqrt:[Ve,[Ve],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[Ve,[Ve],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[Ve,[Ve],(e,[t])=>Math.log(t.evaluate(e))],log2:[Ve,[Ve],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[Ve,[Ve],(e,[t])=>Math.sin(t.evaluate(e))],cos:[Ve,[Ve],(e,[t])=>Math.cos(t.evaluate(e))],tan:[Ve,[Ve],(e,[t])=>Math.tan(t.evaluate(e))],asin:[Ve,[Ve],(e,[t])=>Math.asin(t.evaluate(e))],acos:[Ve,[Ve],(e,[t])=>Math.acos(t.evaluate(e))],atan:[Ve,[Ve],(e,[t])=>Math.atan(t.evaluate(e))],min:[Ve,Sr(Ve),(e,t)=>Math.min(...t.map(t=>t.evaluate(e)))],max:[Ve,Sr(Ve),(e,t)=>Math.max(...t.map(t=>t.evaluate(e)))],abs:[Ve,[Ve],(e,[t])=>Math.abs(t.evaluate(e))],round:[Ve,[Ve],(e,[t])=>{const o=t.evaluate(e);return o<0?-Math.round(-o):Math.round(o)}],floor:[Ve,[Ve],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[Ve,[Ve],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[Ze,[He,Ye],(e,[t,o])=>e.properties()[t.value]===o.value],"filter-id-==":[Ze,[Ye],(e,[t])=>e.id()===t.value],"filter-type-==":[Ze,[He],(e,[t])=>e.geometryType()===t.value],"filter-<":[Ze,[He,Ye],(e,[t,o])=>{const r=e.properties()[t.value],n=o.value;return typeof r==typeof n&&r{const o=e.id(),r=t.value;return typeof o==typeof r&&o":[Ze,[He,Ye],(e,[t,o])=>{const r=e.properties()[t.value],n=o.value;return typeof r==typeof n&&r>n}],"filter-id->":[Ze,[Ye],(e,[t])=>{const o=e.id(),r=t.value;return typeof o==typeof r&&o>r}],"filter-<=":[Ze,[He,Ye],(e,[t,o])=>{const r=e.properties()[t.value],n=o.value;return typeof r==typeof n&&r<=n}],"filter-id-<=":[Ze,[Ye],(e,[t])=>{const o=e.id(),r=t.value;return typeof o==typeof r&&o<=r}],"filter->=":[Ze,[He,Ye],(e,[t,o])=>{const r=e.properties()[t.value],n=o.value;return typeof r==typeof n&&r>=n}],"filter-id->=":[Ze,[Ye],(e,[t])=>{const o=e.id(),r=t.value;return typeof o==typeof r&&o>=r}],"filter-has":[Ze,[Ye],(e,[t])=>t.value in e.properties()],"filter-has-id":[Ze,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[Ze,[rt(He)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[Ze,[rt(Ye)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[Ze,[He,rt(Ye)],(e,[t,o])=>o.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[Ze,[He,rt(Ye)],(e,[t,o])=>zr(e.properties()[t.value],o.value,0,o.value.length-1)],all:{type:Ze,overloads:[[[Ze,Ze],(e,[t,o])=>t.evaluate(e)&&o.evaluate(e)],[Sr(Ze),(e,t)=>{for(const o of t)if(!o.evaluate(e))return!1;return!0}]]},any:{type:Ze,overloads:[[[Ze,Ze],(e,[t,o])=>t.evaluate(e)||o.evaluate(e)],[Sr(Ze),(e,t)=>{for(const o of t)if(o.evaluate(e))return!0;return!1}]]},"!":[Ze,[Ze],(e,[t])=>!t.evaluate(e)],"is-supported-script":[Ze,[He],(e,[t])=>{const o=e.globals&&e.globals.isSupportedScript;return!o||o(t.evaluate(e))}],upcase:[He,[He],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[He,[He],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[He,Sr(Ye),(e,t)=>t.map(t=>vt(t.evaluate(e))).join("")],"resolved-locale":[He,[et],(e,[t])=>t.evaluate(e).resolvedLocale()]});class Fr{constructor(e,t){this.expression=e,this._warningHistory={},this._evaluator=new At,this._defaultValue=t?Kr(t):null,this._enumValues=t&&"enum"===t.type?t.values:null}evaluateWithoutErrorHandling(e,t,o,r,n,i){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=o,this._evaluator.canonical=r,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=i,this.expression.evaluate(this._evaluator)}evaluate(e,t,o,r,n,i){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=o||null,this._evaluator.canonical=r,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=i||null;try{const e=this.expression.evaluate(this._evaluator);if(null==e||"number"==typeof e&&e!=e)return this._defaultValue;if(this._enumValues&&!(e in this._enumValues))throw new wt(`Expected value to be one of ${Object.keys(this._enumValues).map(e=>JSON.stringify(e)).join(", ")}, but found ${JSON.stringify(e)} instead.`);return e}catch(s){return this._warningHistory[s.message]||(this._warningHistory[s.message]=!0,"undefined"!=typeof console&&console.warn(s.message)),this._defaultValue}}}function Ur(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in xr}function Jr(e,t){const o=new lo(xr,[],t?Xr(t):void 0),r=o.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return r?Tr(new Fr(r,t)):_r(o.errors)}class Gr{constructor(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!io(t.expression)}evaluateWithoutErrorHandling(e,t,o,r,n,i){return this._styleExpression.evaluateWithoutErrorHandling(e,t,o,r,n,i)}evaluate(e,t,o,r,n,i){return this._styleExpression.evaluate(e,t,o,r,n,i)}}class Wr{constructor(e,t,o,r){this.kind=e,this.zoomStops=o,this._styleExpression=t,this.isStateDependent="camera"!==e&&!io(t.expression),this.interpolationType=r}evaluateWithoutErrorHandling(e,t,o,r,n,i){return this._styleExpression.evaluateWithoutErrorHandling(e,t,o,r,n,i)}evaluate(e,t,o,r,n,i){return this._styleExpression.evaluate(e,t,o,r,n,i)}interpolationFactor(e,t,o){return this.interpolationType?Uo.interpolationFactor(this.interpolationType,e,t,o):0}}function Br(e,t){if("error"===(e=Jr(e,t)).result)return e;const o=e.value.expression,r=no(o);if(!r&&!$r(t))return _r([new Ge("","data expressions not supported")]);const n=so(o,["zoom"]);if(!n&&!Ar(t))return _r([new Ge("","zoom expressions not supported")]);const i=Zr(o);if(!i&&!n)return _r([new Ge("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(i instanceof Ge)return _r([i]);if(i instanceof Uo&&!Ir(t))return _r([new Ge("",'"interpolate" expressions cannot be used with this property')]);if(!i)return Tr(new Gr(r?"constant":"source",e.value));const s=i instanceof Uo?i.interpolation:void 0;return Tr(new Wr(r?"camera":"composite",e.value,i.labels,s))}class Vr{constructor(e,t){this._parameters=e,this._specification=t,Je(this,Er(this._parameters,this._specification))}static deserialize(e){return new Vr(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function Hr(e,t){if(Or(e))return new Vr(e,t);if(Ur(e)){const o=Br(e,t);if("error"===o.result)throw new Error(o.value.map(e=>`${e.key}: ${e.message}`).join(", "));return o.value}{let o=e;return"string"==typeof e&&"color"===t.type&&(o=pt.parse(e)),{kind:"constant",evaluate:()=>o}}}function Zr(e){let t=null;if(e instanceof Wo)t=Zr(e.result);else if(e instanceof Go){for(const o of e.args)if(t=Zr(o))break}else(e instanceof po||e instanceof Uo)&&e.input instanceof It&&"zoom"===e.input.name&&(t=e);return t instanceof Ge?t:(e.eachChild(e=>{const o=Zr(e);o instanceof Ge?t=o:!t&&o?t=new Ge("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&o&&t!==o&&(t=new Ge("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),t)}function Xr(e){const t={color:Xe,string:He,number:Ve,enum:He,boolean:Ze,formatted:tt,resolvedImage:ot};return"array"===e.type?rt(t[e.value]||Ye,e.length):t[e.type]}function Kr(e){return"color"===e.type&&Or(e.default)?new pt(0,0,0,0):"color"===e.type?pt.parse(e.default)||null:void 0===e.default?null:e.default}function Yr(e){return"object"==typeof e?["literal",e]:e}function Qr(e,t){let o=e.stops;if(!o)return en(e,t);const r=o&&"object"==typeof o[0][0],n=r||void 0!==e.property,i=r||!n;return o=o.map(e=>!n&&t.tokens&&"string"==typeof e[1]?[e[0],pn(e[1])]:[e[0],Yr(e[1])]),r?on(e,t,o):i?an(e,t,o):sn(e,t,o)}function en(e,t){const o=["get",e.property];if(void 0===e.default)return"string"===t.type?["string",o]:o;if("enum"===t.type)return["match",o,Object.keys(t.values),o,e.default];{const r=["color"===t.type?"to-color":t.type,o,Yr(e.default)];return"array"===t.type&&r.splice(1,0,t.value,t.length||null),r}}function tn(e){switch(e.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function on(e,t,o){const r={},n={},i=[];for(let s=0;s3&&t===e[e.length-2]||(r&&2===e.length||e.push(t),e.push(o))}function cn(e,t){return e.type?e.type:t.expression.interpolated?"exponential":"interval"}function pn(e){const t=["concat"],o=/{([^{}]+)}/g;let r=0;for(let n=o.exec(e);null!==n;n=o.exec(e)){const i=e.slice(r,o.lastIndex-n[0].length);r=o.lastIndex,i.length>0&&t.push(i),t.push(["get",n[1]])}if(1===t.length)return e;if(r=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const t of e.slice(1))if(!dn(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}const hn={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function fn(e){if(null==e)return{filter:()=>!0,needGeometry:!1};dn(e)||(e=gn(e));const t=Jr(e,hn);if("error"===t.result)throw new Error(t.value.map(e=>`${e.key}: ${e.message}`).join(", "));return{filter:(e,o,r)=>t.value.evaluate(e,o,{},r),needGeometry:mn(e)}}function yn(e,t){return et?1:0}function mn(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(let t=1;t"===t||"<="===t||">="===t?bn(e[1],e[2],t):"any"===t?vn(e.slice(1)):"all"===t?["all"].concat(e.slice(1).map(gn)):"none"===t?["all"].concat(e.slice(1).map(gn).map(kn)):"in"===t?xn(e[1],e.slice(2)):"!in"===t?kn(xn(e[1],e.slice(2))):"has"===t?wn(e[1]):"!has"===t?kn(wn(e[1])):"within"!==t||e}function bn(e,t,o){switch(e){case"$type":return[`filter-type-${o}`,t];case"$id":return[`filter-id-${o}`,t];default:return[`filter-${o}`,e,t]}}function vn(e){return["any"].concat(e.map(gn))}function xn(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(e=>typeof e!=typeof t[0])?["filter-in-large",e,["literal",t.sort(yn)]]:["filter-in-small",e,["literal",t]]}}function wn(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function kn(e){return["!",e]}function jn(e){return zn(e,{})}function zn(e,t){if(dn(e))return e;if(!e)return!0;const o=e[0];if(e.length<=1)return"any"!==o;let r;if("=="===o||"!="===o||"<"===o||">"===o||"<="===o||">="===o){const[,n,i]=e;r=Tn(n,i,o,t)}else{if("any"===o){const t=e.slice(1).map(e=>{const t={},o=zn(e,t),r=Sn(t);return!0===r?o:["case",r,o,!1]});return["any"].concat(t)}if("all"===o){const o=e.slice(1).map(e=>zn(e,t));return o.length>1?["all"].concat(o):[].concat(...o)}if("none"===o)return["!",zn(["any"].concat(e.slice(1)),{})];r="in"===o?_n(e[1],e.slice(2)):"!in"===o?_n(e[1],e.slice(2),!0):"has"===o?$n(e[1]):"!has"!==o||["!",$n(e[1])]}return r}function Sn(e){const t=[];for(const o in e){const r="$id"===o?["id"]:["get",o];t.push(["==",["typeof",r],e[o]])}return 0===t.length||(1===t.length?t[0]:["all"].concat(t))}function Tn(e,t,o,r){let n;if("$type"===e)return[o,["geometry-type"],t];if(n="$id"===e?["id"]:["get",e],r&&null!==t){const o=typeof t;r[e]=o}return"=="===o&&"$id"!==e&&null===t?["all",["has",e],["==",n,null]]:"!="===o&&"$id"!==e&&null===t?["any",["!",["has",e]],["!=",n,null]]:[o,n,t]}function _n(e,t,o=!1){if(0===t.length)return o;let r;r="$type"===e?["geometry-type"]:"$id"===e?["id"]:["get",e];let n=!0;const i=typeof t[0];for(const s of t)if(typeof s!==i){n=!1;break}if(n&&("string"===i||"number"===i)){const e=t.sort().filter((e,o)=>0===o||t[o-1]!==e);return["match",r,e,!o,o]}return[o?"all":"any"].concat(t.map(e=>[o?"!=":"==",r,e]))}function $n(e){return"$type"===e||("$id"===e?["!=",["id"],null]:["has",e])}function An(e){const t=[];return Me(e,e=>{e.filter&&(e.filter=jn(e.filter))}),Ne(e,{paint:!0,layout:!0},({path:e,value:o,reference:r,set:n})=>{Ur(o)||("object"!=typeof o||Array.isArray(o)?r.tokens&&"string"==typeof o&&n(pn(o)):(n(Qr(o,r)),t.push(e.join("."))))}),e}function In(e){let t=!1;if(7===e.version&&(e=Ue(e),t=!0),8===e.version&&(t=An(e),t=!0),!t)throw new Error("cannot migrate from",e.version);return e}function qn(e){const t=[],o=[],r=[];for(const i in e.sources){const r=e.sources[i];if("vector"!==r.type)continue;const n=/^mapbox:\/\/(.*)/.exec(r.url);n&&(t.push(i),o.push(n[1]))}if(t.length<2)return e;t.forEach(t=>{delete e.sources[t]});const n=o.join(",");return e.sources[n]={type:"vector",url:`mapbox://${n}`},e.layers.forEach(e=>{if(t.indexOf(e.source)>=0&&(e.source=n,"source-layer"in e)){if(r.indexOf(e["source-layer"])>=0)throw new Error("Conflicting source layer names");r.push(e["source-layer"])}}),e}var On=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Cn(e,t){const o={};for(const r in e)"ref"!==r&&(o[r]=e[r]);return On.forEach(e=>{e in t&&(o[e]=t[e])}),o}function En(e){e=e.slice();const t=Object.create(null);for(let o=0;o{n[e.source]?o.push({command:Nn.removeLayer,args:[e.id]}):s.push(e)});let a=e.terrain;a&&n[a.source]&&(o.push({command:Nn.setTerrain,args:[void 0]}),a=void 0),o=o.concat(i),Mn(a,t.terrain)||o.push({command:Nn.setTerrain,args:[t.terrain]}),Wn(s,t.layers,o)}catch(r){console.warn("Unable to compute style diff:",r),o=[{command:Nn.setStyle,args:[t]}]}return o}class Vn{constructor(e,t,o,r){this.message=(e?`${e}: `:"")+o,r&&(this.identifier=r),null!=t&&t.__line__&&(this.line=t.__line__)}}exports.ValidationError=Vn;class Hn{constructor(e){this.error=e,this.message=e.message;const t=e.message.match(/line (\d+)/);this.line=t?parseInt(t[1],10):0}}function Zn(e){const t=e.key,o=e.value;return o?[new Vn(t,o,"constants have been deprecated as of v8")]:[]}function Xn(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function Kn(e){if(Array.isArray(e))return e.map(Kn);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const o in e)t[o]=Kn(e[o]);return t}return Xn(e)}function Yn(e){const t=e.key,o=e.value,r=e.valueSpec||{},n=e.objectElementValidators||{},i=e.style,s=e.styleSpec;let a=[];const l=qr(o);if("object"!==l)return[new Vn(t,o,`object expected, ${l} found`)];for(const u in o){const e=u.split(".")[0],l=r[e]||r["*"];let c;if(n[e])c=n[e];else if(r[e])c=wi;else if(n["*"])c=n["*"];else{if(!r["*"]){a.push(new Vn(t,o[u],`unknown property "${u}"`));continue}c=wi}a=a.concat(c({key:(t?`${t}.`:t)+u,value:o[u],valueSpec:l,style:i,styleSpec:s,object:o,objectKey:u},o))}for(const u in r)n[u]||r[u].required&&void 0===r[u].default&&void 0===o[u]&&a.push(new Vn(t,o,`missing required property "${u}"`));return a}function Qn(e){const t=e.value,o=e.valueSpec,r=e.style,n=e.styleSpec,i=e.key,s=e.arrayElementValidator||wi;if("array"!==qr(t))return[new Vn(i,t,`array expected, ${qr(t)} found`)];if(o.length&&t.length!==o.length)return[new Vn(i,t,`array length ${o.length} expected, length ${t.length} found`)];if(o["min-length"]&&t.lengthr.maximum?[new Vn(t,o,`${o} is greater than the maximum value ${r.maximum}`)]:[]}function ti(e){const t=e.valueSpec,o=Xn(e.value.type);let r,n,i,s={};const a="categorical"!==o&&void 0===e.value.property,l=!a,u="array"===qr(e.value.stops)&&"array"===qr(e.value.stops[0])&&"object"===qr(e.value.stops[0][0]),c=Yn({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===o)return[new Vn(e.key,e.value,'identity function may not have a "stops" property')];let t=[];const r=e.value;t=t.concat(Qn({key:e.key,value:r,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:p})),"array"===qr(r)&&0===r.length&&t.push(new Vn(e.key,r,"array must have at least one stop"));return t},default:function(e){return wi({key:e.key,value:e.value,valueSpec:t,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===o&&a&&c.push(new Vn(e.key,e.value,'missing required property "property"')),"identity"===o||e.value.stops||c.push(new Vn(e.key,e.value,'missing required property "stops"')),"exponential"===o&&e.valueSpec.expression&&!Ir(e.valueSpec)&&c.push(new Vn(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!$r(e.valueSpec)?c.push(new Vn(e.key,e.value,"property functions not supported")):a&&!Ar(e.valueSpec)&&c.push(new Vn(e.key,e.value,"zoom functions not supported"))),"categorical"!==o&&!u||void 0!==e.value.property||c.push(new Vn(e.key,e.value,'"property" property is required')),c;function p(e){let o=[];const r=e.value,a=e.key;if("array"!==qr(r))return[new Vn(a,r,`array expected, ${qr(r)} found`)];if(2!==r.length)return[new Vn(a,r,`array length 2 expected, length ${r.length} found`)];if(u){if("object"!==qr(r[0]))return[new Vn(a,r,`object expected, ${qr(r[0])} found`)];if(void 0===r[0].zoom)return[new Vn(a,r,"object stop key must have zoom")];if(void 0===r[0].value)return[new Vn(a,r,"object stop key must have value")];if(i&&i>Xn(r[0].zoom))return[new Vn(a,r[0].zoom,"stop zoom values must appear in ascending order")];Xn(r[0].zoom)!==i&&(i=Xn(r[0].zoom),n=void 0,s={}),o=o.concat(Yn({key:`${a}[0]`,value:r[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:ei,value:d}}))}else o=o.concat(d({key:`${a}[0]`,value:r[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},r));return Ur(Kn(r[1]))?o.concat([new Vn(`${a}[1]`,r[1],"expressions are not allowed in function stops.")]):o.concat(wi({key:`${a}[1]`,value:r[1],valueSpec:t,style:e.style,styleSpec:e.styleSpec}))}function d(e,i){const a=qr(e.value),l=Xn(e.value),u=null!==e.value?e.value:i;if(r){if(a!==r)return[new Vn(e.key,u,`${a} stop domain type must match previous stop domain type ${r}`)]}else r=a;if("number"!==a&&"string"!==a&&"boolean"!==a)return[new Vn(e.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==a&&"categorical"!==o){let r=`number expected, ${a} found`;return $r(t)&&void 0===o&&(r+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Vn(e.key,u,r)]}return"categorical"!==o||"number"!==a||isFinite(l)&&Math.floor(l)===l?"categorical"!==o&&"number"===a&&void 0!==n&&lnew Vn(`${e.key}${t.key}`,e.value,t.message));const o=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&!o.outputDefined())return[new Vn(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===e.expressionContext&&"layout"===e.propertyType&&!io(o))return[new Vn(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext&&!io(o))return[new Vn(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!so(o,["zoom","feature-state"]))return[new Vn(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!no(o))return[new Vn(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function ri(e){const t=e.value,o=e.key,r=qr(t);return"boolean"!==r?[new Vn(o,t,`boolean expected, ${r} found`)]:[]}function ni(e){const t=e.key,o=e.value,r=qr(o);return"string"!==r?[new Vn(t,o,`color expected, ${r} found`)]:null===ct(o)?[new Vn(t,o,`color expected, "${o}" found`)]:[]}function ii(e){const t=e.key,o=e.value,r=e.valueSpec,n=[];return Array.isArray(r.values)?-1===r.values.indexOf(Xn(o))&&n.push(new Vn(t,o,`expected one of [${r.values.join(", ")}], ${JSON.stringify(o)} found`)):-1===Object.keys(r.values).indexOf(Xn(o))&&n.push(new Vn(t,o,`expected one of [${Object.keys(r.values).join(", ")}], ${JSON.stringify(o)} found`)),n}function si(e){return dn(Kn(e.value))?oi(Je({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):ai(e)}function ai(e){const t=e.value,o=e.key;if("array"!==qr(t))return[new Vn(o,t,`array expected, ${qr(t)} found`)];const r=e.styleSpec;let n,i=[];if(t.length<1)return[new Vn(o,t,"filter array must have at least 1 element")];switch(i=i.concat(ii({key:`${o}[0]`,value:t[0],valueSpec:r.filter_operator,style:e.style,styleSpec:e.styleSpec})),Xn(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&"$type"===Xn(t[1])&&i.push(new Vn(o,t,`"$type" cannot be use with operator "${t[0]}"`));case"==":case"!=":3!==t.length&&i.push(new Vn(o,t,`filter array for operator "${t[0]}" must have 3 elements`));case"in":case"!in":t.length>=2&&"string"!==(n=qr(t[1]))&&i.push(new Vn(`${o}[1]`,t[1],`string expected, ${n} found`));for(let s=2;s{e in o&&t.push(new Vn(r,o[e],`"${e}" is prohibited for ref layers`))}),n.layers.forEach(t=>{Xn(t.id)===a&&(e=t)}),e?e.ref?t.push(new Vn(r,o.ref,"ref cannot reference another ref layer")):s=Xn(e.type):t.push(new Vn(r,o.ref,`ref layer "${a}" not found`))}else if("background"!==s&&"sky"!==s)if(o.source){const e=n.sources&&n.sources[o.source],i=e&&Xn(e.type);e?"vector"===i&&"raster"===s?t.push(new Vn(r,o.source,`layer "${o.id}" requires a raster source`)):"raster"===i&&"raster"!==s?t.push(new Vn(r,o.source,`layer "${o.id}" requires a vector source`)):"vector"!==i||o["source-layer"]?"raster-dem"===i&&"hillshade"!==s?t.push(new Vn(r,o.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!o.paint||!o.paint["line-gradient"]||"geojson"===i&&e.lineMetrics||t.push(new Vn(r,o,`layer "${o.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new Vn(r,o,`layer "${o.id}" must specify a "source-layer"`)):t.push(new Vn(r,o.source,`source "${o.source}" not found`))}else t.push(new Vn(r,o,'missing required property "source"'));return t=t.concat(Yn({key:r,value:o,valueSpec:i.layer,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":()=>[],type:()=>wi({key:`${r}.type`,value:o.type,valueSpec:i.layer.type,style:e.style,styleSpec:e.styleSpec,object:o,objectKey:"type"}),filter:si,layout:e=>Yn({layer:o,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>ci(Je({layerType:s},e))}}),paint:e=>Yn({layer:o,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>ui(Je({layerType:s},e))}})}}))}function di(e){const t=e.value,o=e.key,r=qr(t);return"string"!==r?[new Vn(o,t,`string expected, ${r} found`)]:[]}exports.ParsingError=Hn;const hi={promoteId:yi};function fi(e){const t=e.value,o=e.key,r=e.styleSpec,n=e.style;if(!t.type)return[new Vn(o,t,'"type" is required')];const i=Xn(t.type);let s;switch(i){case"vector":case"raster":case"raster-dem":return s=Yn({key:o,value:t,valueSpec:r[`source_${i.replace("-","_")}`],style:e.style,styleSpec:r,objectElementValidators:hi});case"geojson":if(s=Yn({key:o,value:t,valueSpec:r.source_geojson,style:n,styleSpec:r,objectElementValidators:hi}),t.cluster)for(const e in t.clusterProperties){const[r,n]=t.clusterProperties[e],i="string"==typeof r?[r,["accumulated"],["get",e]]:r;s.push(...oi({key:`${o}.${e}.map`,value:n,expressionContext:"cluster-map"})),s.push(...oi({key:`${o}.${e}.reduce`,value:i,expressionContext:"cluster-reduce"}))}return s;case"video":return Yn({key:o,value:t,valueSpec:r.source_video,style:n,styleSpec:r});case"image":return Yn({key:o,value:t,valueSpec:r.source_image,style:n,styleSpec:r});case"canvas":return[new Vn(o,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return ii({key:`${o}.type`,value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:n,styleSpec:r})}}function yi({key:e,value:t}){if("string"===qr(t))return di({key:e,value:t});{const o=[];for(const r in t)o.push(...di({key:`${e}.${r}`,value:t[r]}));return o}}function mi(e){const t=e.value,o=e.styleSpec,r=o.light,n=e.style;let i=[];const s=qr(t);if(void 0===t)return i;if("object"!==s)return i=i.concat([new Vn("light",t,`object expected, ${s} found`)]);for(const a in t){const e=a.match(/^(.*)-transition$/);i=e&&r[e[1]]&&r[e[1]].transition?i.concat(wi({key:a,value:t[a],valueSpec:o.transition,style:n,styleSpec:o})):r[a]?i.concat(wi({key:a,value:t[a],valueSpec:r[a],style:n,styleSpec:o})):i.concat([new Vn(a,t[a],`unknown property "${a}"`)])}return i}function gi(e){const t=e.value,o=e.key,r=e.style,n=e.styleSpec,i=n.terrain;let s=[];const a=qr(t);if(void 0===t)return s;if("object"!==a)return s=s.concat([new Vn("terrain",t,`object expected, ${a} found`)]);for(const l in t){const e=l.match(/^(.*)-transition$/);s=e&&i[e[1]]&&i[e[1]].transition?s.concat(wi({key:l,value:t[l],valueSpec:n.transition,style:r,styleSpec:n})):i[l]?s.concat(wi({key:l,value:t[l],valueSpec:i[l],style:r,styleSpec:n})):s.concat([new Vn(l,t[l],`unknown property "${l}"`)])}if(t.source){const e=r.sources&&r.sources[t.source],n=e&&Xn(e.type);e?"raster-dem"!==n&&s.push(new Vn(o,t.source,`terrain cannot be used with a source of type ${n}, it only be used with a "raster-dem" source type`)):s.push(new Vn(o,t.source,`source "${t.source}" not found`))}else s.push(new Vn(o,t,'terrain is missing required property "source"'));return s}function bi(e){return 0===di(e).length?[]:oi(e)}function vi(e){return 0===di(e).length?[]:oi(e)}const xi={"*":()=>[],array:Qn,boolean:ri,number:ei,color:ni,constants:Zn,enum:ii,filter:si,function:ti,layer:pi,object:Yn,source:fi,light:mi,terrain:gi,string:di,formatted:bi,resolvedImage:vi};function wi(e){const t=e.value,o=e.valueSpec,r=e.styleSpec;if(o.expression&&Or(Xn(t)))return ti(e);if(o.expression&&Ur(Kn(t)))return oi(e);if(o.type&&xi[o.type])return xi[o.type](e);return Yn(Je({},e,{valueSpec:o.type?r[o.type]:o}))}function ki(e){const t=e.value,o=e.key,r=di(e);return r.length?r:(-1===t.indexOf("{fontstack}")&&r.push(new Vn(o,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&r.push(new Vn(o,t,'"glyphs" url must include a "{range}" token')),r)}function ji(e,t=J){let o=[];return o=o.concat(wi({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:ki,"*":()=>[]}})),e.constants&&(o=o.concat(Zn({key:"constants",value:e.constants,style:e,styleSpec:t}))),zi(o)}function zi(e){return[].concat(e).sort((e,t)=>e.line-t.line)}function Si(e){return function(...t){return zi(e.apply(this,t))}}ji.source=Si(fi),ji.light=Si(mi),ji.terrain=Si(gi),ji.layer=Si(pi),ji.filter=Si(si),ji.paintProperty=Si(ui),ji.layoutProperty=Si(ci);var Ti=X(function(e,t){var o=function(){var e=function(e,t,o,r){for(o=o||{},r=e.length;r--;o[e[r]]=t);return o},t=[1,12],o=[1,13],r=[1,9],n=[1,10],i=[1,11],s=[1,14],a=[1,15],l=[14,18,22,24],u=[18,22],c=[22,24],p={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(e,t,o,r,n,i,s){var a=i.length-1;switch(n){case 1:this.$=new String(e.replace(/\\(\\|")/g,"$1").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b")),this.$.__line__=this._$.first_line;break;case 2:this.$=new Number(e),this.$.__line__=this._$.first_line;break;case 3:this.$=null;break;case 4:this.$=new Boolean(!0),this.$.__line__=this._$.first_line;break;case 5:this.$=new Boolean(!1),this.$.__line__=this._$.first_line;break;case 6:return this.$=i[a-1];case 13:this.$={},Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 14:case 19:this.$=i[a-1],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 15:this.$=[i[a-2],i[a]];break;case 16:this.$={},this.$[i[a][0]]=i[a][1];break;case 17:this.$=i[a-2],i[a-2][i[a][0]]=i[a][1];break;case 18:this.$=[],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 20:this.$=[i[a]];break;case 21:this.$=i[a-2],i[a-2].push(i[a])}},table:[{3:5,4:t,5:6,6:o,7:3,8:r,9:4,10:n,11:i,12:1,13:2,15:7,16:8,17:s,23:a},{1:[3]},{14:[1,16]},e(l,[2,7]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11]),e(l,[2,12]),e(l,[2,3]),e(l,[2,4]),e(l,[2,5]),e([14,18,21,22,24],[2,1]),e(l,[2,2]),{3:20,4:t,18:[1,17],19:18,20:19},{3:5,4:t,5:6,6:o,7:3,8:r,9:4,10:n,11:i,13:23,15:7,16:8,17:s,23:a,24:[1,21],25:22},{1:[2,6]},e(l,[2,13]),{18:[1,24],22:[1,25]},e(u,[2,16]),{21:[1,26]},e(l,[2,18]),{22:[1,28],24:[1,27]},e(c,[2,20]),e(l,[2,14]),{3:20,4:t,20:29},{3:5,4:t,5:6,6:o,7:3,8:r,9:4,10:n,11:i,13:30,15:7,16:8,17:s,23:a},e(l,[2,19]),{3:5,4:t,5:6,6:o,7:3,8:r,9:4,10:n,11:i,13:31,15:7,16:8,17:s,23:a},e(u,[2,17]),e(u,[2,15]),e(c,[2,21])],defaultActions:{16:[2,6]},parseError:function(e,t){if(!t.recoverable)throw new Error(e);this.trace(e)},parse:function(e){var t=this,o=[0],r=[null],n=[],i=this.table,s="",a=0,l=0,u=1,c=n.slice.call(arguments,1),p=Object.create(this.lexer),d={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(d.yy[h]=this.yy[h]);p.setInput(e,d.yy),d.yy.lexer=p,d.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;n.push(f);var y=p.options&&p.options.ranges;"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,g,b,v,x,w,k,j,z,S={};;){if(g=o[o.length-1],this.defaultActions[g]?b=this.defaultActions[g]:(null==m&&(z=void 0,"number"!=typeof(z=p.lex()||u)&&(z=t.symbols_[z]||z),m=z),b=i[g]&&i[g][m]),void 0===b||!b.length||!b[0]){var T="";for(x in j=[],i[g])this.terminals_[x]&&x>2&&j.push("'"+this.terminals_[x]+"'");T=p.showPosition?"Parse error on line "+(a+1)+":\n"+p.showPosition()+"\nExpecting "+j.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(a+1)+": Unexpected "+(m==u?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[m]||m,line:p.yylineno,loc:f,expected:j})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+m);switch(b[0]){case 1:o.push(m),r.push(p.yytext),n.push(p.yylloc),o.push(b[1]),m=null,l=p.yyleng,s=p.yytext,a=p.yylineno,f=p.yylloc;break;case 2:if(w=this.productions_[b[1]][1],S.$=r[r.length-w],S._$={first_line:n[n.length-(w||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(w||1)].first_column,last_column:n[n.length-1].last_column},y&&(S._$.range=[n[n.length-(w||1)].range[0],n[n.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[s,l,a,d.yy,b[1],r,n].concat(c))))return v;w&&(o=o.slice(0,-1*w*2),r=r.slice(0,-1*w),n=n.slice(0,-1*w)),o.push(this.productions_[b[1]][0]),r.push(S.$),n.push(S._$),k=i[o[o.length-2]][o[o.length-1]],o.push(k);break;case 3:return!0}}return!0}},d={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,o=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===r.length?this.yylloc.first_column:0)+r[r.length-o.length].length-o[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var o,r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],o=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var i in n)this[i]=n[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,o,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),i=0;it[0].length)){if(t=o,r=i,this.options.backtrack_lexer){if(!1!==(e=this.test_match(o,n[i])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,n[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,o,r){switch(o){case 0:break;case 1:return 6;case 2:return t.yytext=t.yytext.substr(1,t.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};function h(){this.yy={}}return p.lexer=d,h.prototype=p,p.Parser=h,new h}();void 0!==Z&&(t.parser=o,t.Parser=o.Parser,t.parse=function(){return o.parse.apply(o,arguments)})}),_i=Ti.parser,$i=Ti.Parser,Ai=Ti.parse;function Ii(e){if(e instanceof String||"string"==typeof e||e instanceof t)try{return Ti.parse(e.toString())}catch(o){throw new Hn(o)}return e}function qi(e,t=J){let o=e;try{o=Ii(o)}catch(r){return[r]}return ji(o,t)}const Oi=8,Ci=15;function Ei(e,t){return!e||"string"!==qr(e)||!!e.match(t)}function Mi(e){return e.url?e.url.split(",").length:0}function Ni(e,t,o){const r=new Set(t),n=[];return Object.keys(e).forEach(t=>{if(!r.has(t)){const r=o?`${o}.${t}`:null;n.push(new Vn(r,e[t],`Unsupported property "${t}"`))}}),n}function Pi(e,t){const o=[];o.push(...Ni(e,["type","url","tileSize"],"source"));return Ei(e.url,/^mapbox:\/\/([^/]*)$/)||o.push(new Vn(`sources[${t}]`,e.url,"Source url must be a valid Mapbox tileset url")),o}function Ri(e){const t=[];let o=0;return Object.keys(e).forEach((r,n)=>{const i=Pi(e[r],n);i.length||(o+=Mi(e[r])),t.push(...i)}),o>Ci&&t.push(new Vn("sources",null,`Styles must contain ${Ci} or fewer sources`)),t}function Di(e,t){const o=[],r=Ni(e,[...t,"owner","id","cacheControl","draft","created","modified","visibility"]);o.push(...r),(e.version>Oi||e.version=.05){for(var n="",t=e.split("\n"),o=f.slice(0,Math.round(r/.1)),a=0,i=t.length;a0&&(n+="\n"),n+=t[a].split("").join(o);return n}return e}function c(){return l||(l=s(1,1).getContext("2d")),l}function v(e,r){return c().measureText(e).width+(e.length-1)*r}var h={};function d(e,r,n,t){if(-1!==e.indexOf("\n")){for(var o=e.split("\n"),a=[],i=0,s=o.length;i1){var g=c();g.font=r;var x=g.measureText("M").width*n,j="";for(a=[],i=0,s=f.length;i1;++i){var w=a[i];if(v(w,t)<.35*x){var C=i>0?v(a[i-1],t):1/0,O=i.7*x&&v(m,t)<.6*x){var T=M.split(" "),E=T.pop();v(E,t)<.2*x&&(a[i]=T.join(" "),a[i+1]=E+" "+m),s-=1}}l=a.join("\n")}else l=e;l=p(l,t),h[u]=l}return l}n.labelCache&&(0,e.listen)(n.labelCache,r.default.CLEAR,function(){h={}}); +},{"ol/events":"UqnM","ol/events/EventType":"C8cu","ol/render/canvas":"iAG7"}],"Fj7k":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports._getValue=exports.getValue=b,exports.recordStyleLayer=O,exports.default=_,exports._colorWithOpacity=C,exports._evaluateFilter=k,exports._fromTemplate=I,exports._functionCache=exports._filterCache=void 0;var e=u(require("ol/style/Style")),t=u(require("ol/style/Fill")),i=u(require("ol/style/Stroke")),o=u(require("ol/style/Icon")),a=u(require("ol/style/Text")),r=u(require("ol/style/Circle")),n=u(require("ol/render/Feature")),l=require("@mapbox/mapbox-gl-style-spec"),s=u(require("mapbox-to-css-font")),d=require("./util");function u(e){return e&&e.__esModule?e:{default:e}}var f,p,g=l.function.isFunction,c=l.function.convertFunction,v=l.expression.isExpression,y=l.expression.createPropertyExpression,h={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},x={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},m=function(e,t){var i=y(e,t);if("error"===i.result)throw new Error(i.value.map(function(e){return e.key+": "+e.message}).join(", "));return i.value},w={},S={zoom:0},M={};function b(e,t,i,o,a){var r=e.id;M[r]||(M[r]={});var n=M[r];if(!n[i]){var s=(e[t]||w)[i],d=l.latest[t+"_"+e.type][i];void 0===s&&(s=d.default);var u=v(s);if(!u&&g(s)&&(s=c(s,d),u=!0),u){var f=m(s,d);n[i]=f.evaluate.bind(f)}else"color"==d.type&&(s=l.Color.parse(s)),n[i]=function(){return s}}return S.zoom=o,n[i](S,a)}exports._functionCache=M;var F={};function k(e,t,i,o){return e in F||(F[e]=(0,l.featureFilter)(t).filter),S.zoom=o,F[e](S,i)}function C(e,t){if(e){if(0===e.a||0===t)return;var i=e.a;return t=void 0===t?1:t,"rgba("+Math.round(255*e.r/i)+","+Math.round(255*e.g/i)+","+Math.round(255*e.b/i)+","+i*t+")"}return e}exports._filterCache=F;var T=/^([^]*)\{(.*)\}([^]*)$/;function I(e,t){var i;do{if(i=e.match(T)){var o=t[i[2]]||"";e=i[1]+o+i[3]}}while(i);return e}var L=!1;function O(e){L=e}function _(u,g,c,v,y,m,S){if(void 0===v&&(v=d.defaultResolutions),"string"==typeof g&&(g=JSON.parse(g)),8!=g.version)throw new Error("glStyle version 8 required.");var T,O;if(m)if("undefined"!=typeof Image){var _=new Image;_.crossOrigin="anonymous",_.onload=function(){T=_,O=[_.width,_.height],u.changed(),_.onload=null},_.src=m}else if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){var q=self;q.postMessage({action:"loadImage",src:m}),q.addEventListener("message",function(e){"imageLoaded"===e.data.action&&e.data.src===m&&(T=e.data.image,O=[T.width,T.height])})}for(var z,P=(0,l.derefLayers)(g.layers),W={},E=[],R=0,G=P.length;R=z.maxzoom)return"continue";var R=z.filter;if(!R||k(P,R,_,m)){M=z;var G=void 0,Z=void 0,j=void 0,A=void 0,N=void 0,V=void 0,D=L.index;if(3==F&&("fill"==z.type||"fill-extrusion"==z.type))if(Z=b(z,"paint",z.type+"-opacity",m,_),z.type+"-pattern"in E){var $=b(z,"paint",z.type+"-pattern",m,_);if($){var H="string"==typeof $?I($,g):$.toString();if(T&&y&&y[H]){(V=Y[++q])&&V.getFill()&&!V.getStroke()&&!V.getText()||(V=Y[q]=new e.default({fill:new t.default})),j=V.getFill(),V.setZIndex(D);var K=X[Te=H+"."+Z];if(!K){var Q=y[H];(Le=(Ie=(0,d.createCanvas)(Q.width,Q.height)).getContext("2d")).globalAlpha=Z,Le.drawImage(T,Q.x,Q.y,Q.width,Q.height,0,0,Q.width,Q.height),K=Le.createPattern(Ie,"repeat"),X[Te]=K}j.setColor(K)}}}else(G=C(b(z,"paint",z.type+"-color",m,_),Z))&&(z.type+"-outline-color"in E&&(N=C(b(z,"paint",z.type+"-outline-color",m,_),Z)),N||(N=G),(V=Y[++q])&&V.getFill()&&V.getStroke()&&!V.getText()||(V=Y[q]=new e.default({fill:new t.default,stroke:new i.default})),(j=V.getFill()).setColor(G),(A=V.getStroke()).setColor(N),A.setWidth(1),V.setZIndex(D));if(1!=F&&"line"==z.type){G=!("line-pattern"in E)&&"line-color"in E?C(b(z,"paint","line-color",m,_),b(z,"paint","line-opacity",m,_)):void 0;var ee=b(z,"paint","line-width",m,_);G&&ee>0&&((V=Y[++q])&&V.getStroke()&&!V.getFill()&&!V.getText()||(V=Y[q]=new e.default({stroke:new i.default})),(A=V.getStroke()).setLineCap(b(z,"layout","line-cap",m,_)),A.setLineJoin(b(z,"layout","line-join",m,_)),A.setMiterLimit(b(z,"layout","line-miter-limit",m,_)),A.setColor(G),A.setWidth(ee),A.setLineDash(E["line-dasharray"]?b(z,"paint","line-dasharray",m,_).map(function(e){return e*ee}):null),V.setZIndex(D))}var te=!1,ie=null,oe=0,ae=void 0,re=void 0,ne=void 0;if((1==F||2==F)&&"icon-image"in W){var le=b(z,"layout","icon-image",m,_);if(le){ae="string"==typeof le?I(le,g):le.toString();var se=void 0;if(T&&y&&y[ae]){var de=b(z,"layout","icon-rotation-alignment",m,_);if(2==F){var ue=l.getGeometry();if(ue.getFlatMidpoint||ue.getFlatMidpoints){var fe=ue.getExtent();if(Math.sqrt(Math.max(Math.pow((fe[2]-fe[0])/u,2),Math.pow((fe[3]-fe[1])/u,2)))>150){var pe="MultiLineString"===ue.getType()?ue.getFlatMidpoints():ue.getFlatMidpoint();if(p||(f=[NaN,NaN],p=new n.default("Point",f,[],{},null)),se=p,f[0]=pe[0],f[1]=pe[1],"line"===(Ye=b(z,"layout","symbol-placement",m,_))&&"map"===de)for(var ge=ue.getStride(),ce=ue.getFlatCoordinates(),ve=0,ye=ce.length-ge;ve=Se&&pe[0]<=be&&pe[1]>=Me&&pe[1]<=Fe){oe=Math.atan2(xe-we,me-he);break}}}}}if(2!==F||se){(V=Y[++q])&&V.getImage()&&!V.getFill()&&!V.getStroke()||(V=Y[q]=new e.default),V.setGeometry(se);var ke=b(z,"layout","icon-size",m,_),Ce=void 0!==E["icon-color"]?b(z,"paint","icon-color",m,_):null,Te=ae+"."+ke;if(null!==Ce&&(Te+="."+Ce),!(re=U[Te])){Q=y[ae];if(null!==Ce){var Ie,Le;(Le=(Ie=(0,d.createCanvas)(Q.width,Q.height)).getContext("2d")).drawImage(T,Q.x,Q.y,Q.width,Q.height,0,0,Q.width,Q.height);for(var Oe=Le.getImageData(0,0,Ie.width,Ie.height),_e=0,qe=Oe.data.length;_e0?new i.default({width:Re,color:We}):void 0,fill:Ee?new t.default({color:Ee}):void 0})),V.setImage(re),ie=V.getText(),V.setText(void 0),V.setGeometry(void 0),V.setZIndex(D),te=!0}var Ze=void 0;if("text-field"in W)Ze=I(b(z,"layout","text-field",m,_).toString(),g).trim(),Z=b(z,"paint","text-opacity",m,_);if(Ze&&Z&&!ne){te||((V=Y[++q])&&V.getText()&&!V.getFill()&&!V.getStroke()||(V=Y[q]=new e.default),V.setImage(void 0),V.setGeometry(void 0)),V.getText()||V.setText(ie||new a.default({padding:[2,2,2,2]})),ie=V.getText();var je=Math.round(b(z,"layout","text-size",m,_)),Ae=b(z,"layout","text-font",m,_),Ne=b(z,"layout","text-line-height",m,_),Ve=(0,s.default)(S?S(Ae):Ae,je,Ne),De=W["text-transform"];"uppercase"==De?Ze=Ze.toUpperCase():"lowercase"==De&&(Ze=Ze.toLowerCase());var Je=b(z,"layout","text-max-width",m,_),Be=b(z,"layout","text-letter-spacing",m,_),Ue=2==F?(0,d.applyLetterSpacing)(Ze,Be):(0,d.wrapText)(Ze,Ve,Je,Be);ie.setText(Ue),ie.setFont(Ve),ie.setRotation((0,d.deg2rad)(b(z,"layout","text-rotate",m,_)));var Xe=b(z,"layout","text-anchor",m,_),Ye=te||1==F?"point":b(z,"layout","symbol-placement",m,_);ie.setPlacement(Ye);var $e=b(z,"paint","text-halo-width",m,_),He=b(z,"layout","text-offset",m,_),Ke=b(z,"paint","text-translate",m,_),Qe=0,et=0;if("point"==Ye){var tt="center";-1!==Xe.indexOf("left")?(tt="left",et=$e):-1!==Xe.indexOf("right")&&(tt="right",et=-$e),ie.setTextAlign(tt);var it=b(z,"layout","text-rotation-alignment",m,_);ie.setRotateWithView("map"==it)}else ie.setMaxAngle((0,d.deg2rad)(b(z,"layout","text-max-angle",m,_))*Ze.length/Ue.length),ie.setTextAlign(),ie.setRotateWithView(!1);var ot="middle";0==Xe.indexOf("bottom")?(ot="bottom",Qe=-$e-.5*(Ne-1)*je):0==Xe.indexOf("top")&&(ot="top",Qe=$e+.5*(Ne-1)*je),ie.setTextBaseline(ot),ie.setOffsetX(He[0]*je+et+Ke[0]),ie.setOffsetY(He[1]*je+Qe+Ke[1]),B.setColor(C(b(z,"paint","text-color",m,_),Z)),ie.setFill(B);var at=C(b(z,"paint","text-halo-color",m,_),Z);if(at){J.setColor(at),$e*=2;var rt=.5*je;J.setWidth($e<=rt?$e:rt),ie.setStroke(J)}else ie.setStroke(void 0);var nt=b(z,"layout","text-padding",m,_),lt=ie.getPadding();nt!==lt[0]&&(lt[0]=lt[1]=lt[2]=lt[3]=nt),V.setZIndex(D)}}},P=0,E=c.length;P-1?(Y.length=q+1,L&&("function"==typeof l.set?l.set("mapbox-layer",M):l.getProperties()["mapbox-layer"]=M),Y):void 0}};return u.setStyle($),u.set("mapbox-source",z),u.set("mapbox-layers",E),$} +},{"ol/style/Style":"he4w","ol/style/Fill":"AFcg","ol/style/Stroke":"TXDt","ol/style/Icon":"z2xv","ol/style/Text":"RPsG","ol/style/Circle":"cdf1","ol/render/Feature":"IFOM","@mapbox/mapbox-gl-style-spec":"Prd1","mapbox-to-css-font":"pt6h","./util":"N0IJ"}],"jVC7":[function(require,module,exports) { +(function(){var a;module.exports={icon:"icons/google.svg",name:"google",title:"Google Fonts",link:"google.com/fonts",getNames:function(){return a},getLink:function(a){return"https://fonts.google.com/specimen/"+a.replace(/( )/g,"+")},normalizeName:function(a){return a}},a=["ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Amiri","Amita","Anaheim","Andada","Andika","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Arya","Asap","Asar","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Battambang","Baumans","Bayon","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Biryani","Bitter","Black Ops One","Bokor","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script","Dangrek","Dawning of a New Day","Days One","Dekko","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","EB Garamond","Eagle Lake","Eater","Economica","Eczar","Ek Mukta","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fira Mono","Fira Sans","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","GFS Didot","GFS Neohellenic","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","Gidugu","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Gurajada","Habibi","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Hind","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Iceberg","Iceland","Imprima","Inconsolata","Inder","Indie Flower","Inika","Inknut Antiqua","Irish Grover","Istok Web","Italiana","Italianno","Itim","Jacques Francois","Jacques Francois Shadow","Jaldi","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kadwa","Kalam","Kameron","Kantumruy","Karla","Karma","Kaushan Script","Kavoon","Kdam Thmor","Keania One","Kelly Slab","Kenia","Khand","Khmer","Khula","Kite One","Knewave","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Kurale","La Belle Aurore","Laila","Lakki Reddy","Lancelot","Lateef","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Mallanna","Mandali","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Martel","Martel Sans","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modak","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","NTR","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Nokora","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Odor Mean Chey","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Pacifico","Palanquin","Palanquin Dark","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peddana","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Poppins","Port Lligat Sans","Port Lligat Slab","Pragati Narrow","Prata","Preahvihear","Press Start 2P","Princess Sofia","Prociono","Prosto One","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Rajdhani","Raleway","Raleway Dots","Ramabhadra","Ramaraja","Rambla","Rammetto One","Ranchers","Rancho","Ranga","Rationale","Ravi Prakash","Redressed","Reenie Beanie","Revalia","Rhodium Libre","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Mono","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rozha One","Rubik","Rubik Mono One","Rubik One","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sahitya","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarala","Sarina","Sarpanch","Satisfy","Scada","Scheherazade","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Siemreap","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 13px","Slabo 27px","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Source Serif Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Sree Krushnadevaraya","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sumana","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Tangerine","Taprom","Tauri","Teko","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tillana","Timmana","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","VT323","Vampiro One","Varela","Varela Round","Vast Shadow","Vesper Libre","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Work Sans","Yanone Kaffeesatz","Yantramanav","Yellowtail","Yeseva One","Yesteryear","Zeyada"]}).call(this); +},{}],"CreQ":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.applyStyle=V,exports.applyBackground=C,exports.default=F,exports.apply=H,exports.getLayer=$,exports.getLayers=I,exports.getSource=X,exports._finalizeLayer=W,exports._getFonts=j;var e=w(require("mapbox-to-css-font")),t=x(require("./stylefunction")),r=w(require("webfont-matcher/lib/fonts/google")),o=require("ol/proj"),n=require("ol/tilegrid"),i=w(require("ol/tilegrid/TileGrid")),a=w(require("ol/Map")),u=w(require("ol/View")),s=w(require("ol/format/GeoJSON")),l=w(require("ol/format/MVT")),c=require("ol/Observable"),f=w(require("ol/layer/Tile")),g=w(require("ol/layer/Vector")),p=w(require("ol/layer/VectorTile")),d=w(require("ol/source/TileJSON")),y=w(require("ol/source/Vector")),m=w(require("ol/source/VectorTile")),v=require("@mapbox/mapbox-gl-style-spec"),h=require("./util");function b(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return b=function(){return e},e}function x(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=b();if(t&&t.has(e))return t.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=o?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}function w(e){return e&&e.__esModule?e:{default:e}}var S,O={},T=/font-family: ?([^;]*);/,q=/("|')/g;function E(e){if(!S){S={};for(var t=document.styleSheets,r=0,o=t.length;r2?o[2]:""):e+r}function V(e,r,o,n,i){return new Promise(function(a,u){if("object"!=typeof r&&(r=JSON.parse(r)),8!=r.version)return u(new Error("glStyle version 8 required."));if(!(e instanceof g.default||e instanceof p.default))return u(new Error("Can only apply to VectorLayer or VectorTileLayer"));var s,l,c;function f(){c||r.sprite&&!s?c?(e.setStyle(c),a()):u(new Error("Something went wrong trying to apply style.")):(c=(0,t.default)(e,r,o,i,s,l,j),e.getStyle()?a():u(new Error("Nothing to show for source ["+o+"]")))}if(r.sprite){var d=.5==(window.devicePixelRatio>=1.5?.5:1)?"@2x":"",y=P(r.sprite,n,d+".json");fetch(y,{credentials:"same-origin"}).then(function(e){return e.ok||""===d?e:(y=P(r.sprite,n,".json"),fetch(y,{credentials:"same-origin"}))}).then(function(e){if(e.ok)return e.json();u(new Error("Problem fetching sprite from "+y+": "+e.statusText))}).then(function(e){if(void 0===e)return u(new Error("No sprites found."));s=e,l=P(r.sprite,n,d+".png"),f()}).catch(function(e){u(new Error("Sprites cannot be loaded: "+y+": "+e.message))})}else f()})}var R={};function N(e,r){var o={type:r.type};function n(){var n=e.getTargetElement();if(n){var i=r.layout||{},a=r.paint||{};o.paint=a,o.id="olms-bg-"+a["background-opacity"]+a["background-color"];var u=e.getView().getZoom();if(void 0!==a["background-color"]){var s=(0,t.getValue)(o,"paint","background-color",u,R);n.style.background=v.Color.parse(s).toString()}void 0!==a["background-opacity"]&&(n.style.opacity=(0,t.getValue)(o,"paint","background-opacity",u,R)),"none"==i.visibility&&(n.style.backgroundColor="",n.style.opacity="")}}e.getTargetElement()&&n(),e.on(["change:resolution","change:target"],n)}function C(e,t){t.layers.some(function(t){if("background"==t.type)return N(e,t),!0})}function G(e,t){var r;return e.some(function(e){if(e.id==t)return r=e.source,!0}),r}function Z(e){var t=e.bounds;if(t){var r=(0,o.fromLonLat)([t[0],t[1]]),n=(0,o.fromLonLat)([t[2],t[3]]);return[r[0],r[1],n[0],n[1]]}}function A(e,t,r){e=(0,h.assign)({},e);var o=new p.default({declutter:!0,visible:!1}),n=JSON.stringify(e),a=O[n];a||(a=O[n]=new d.default({url:e.tiles?void 0:r,tileJSON:e.tiles?e:void 0}));var u=a.on("change",function(){var e=a.getState();if("ready"===e){var t=a.getTileJSON(),n=Array.isArray(t.tiles)?t.tiles:[t.tiles];if(r)for(var s=0,f=n.length;s2?s[2]:""),u=new Promise(function(a,u){fetch(t,{credentials:"same-origin"}).then(function(e){return e.json()}).then(function(s){var l=document.createElement("A");l.href=t;var c=l.href;i=l.pathname.split("/").slice(0,-1).join("/")+"/",n=c.substr(0,c.indexOf(i)),D(s,e,o,n,i,r).then(function(){a(e)}).catch(u)}).catch(function(e){u(new Error("Could not load "+t+": "+e.message))})})}else u=new Promise(function(r,o){D(t,e).then(function(){r(e)}).catch(o)});return u}function H(e,t){return("string"==typeof e||e instanceof HTMLElement)&&(e=new a.default({target:e})),setTimeout(function(){F(e,t)},0),e}function W(e,t,r,o,n){for(var i=24,a=0,u=r.layers,s=0,l=u.length;s0||c>0)&&e.setMaxResolution(Math.min(h.defaultResolutions[i],l.getResolution(c))+1e-9),a<24&&e.setMinResolution(h.defaultResolutions[a]+1e-9)}}n instanceof y.default||n instanceof m.default?V(e,r,t,o).then(function(){e.setVisible(!0),u()},function(e){s(e)}):u()}else s(new Error("Error accessing data for source "+e.get("mapbox-source")))};e.set("mapbox-layers",t),-1===n.getLayers().getArray().indexOf(e)&&n.addLayer(e),e.getSource()?l():e.once("change:source",l)})}function $(e,t){for(var r=e.getLayers().getArray(),o=0,n=r.length;o4)throw new Error("`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.");return"vec"+t.length+"("+t.map(u).join(", ")+")"}function l(r){var n=(0,t.asArray)(r).slice();return n.length<4&&n.push(1),i(n.map(function(t,r){return r<3?t/255:t}))}function f(t,r){return void 0===t.stringLiteralsMap[r]&&(t.stringLiteralsMap[r]=Object.keys(t.stringLiteralsMap).length),t.stringLiteralsMap[r]}function a(t,r){return u(f(t,r))}function s(t,o,f){if(Array.isArray(o)&&"string"==typeof o[0]){var s=n[o[0]];if(void 0===s)throw new Error("Unrecognized expression operator: "+JSON.stringify(o));return s.toGlsl(t,o.slice(1),f)}var c=e(o);return(c&r.NUMBER)>0?u(o):(c&r.BOOLEAN)>0?o.toString():(c&r.STRING)>0&&(void 0===f||f==r.STRING)?a(t,o.toString()):(c&r.COLOR)>0&&(void 0===f||f==r.COLOR)?l(o):(c&r.NUMBER_ARRAY)>0?i(o):void 0}function c(t){if(!(e(t)&r.NUMBER))throw new Error("A numeric value was expected, got "+JSON.stringify(t)+" instead")}function g(t){for(var r=0;rr)throw new Error("At most "+r+" arguments were expected, got "+t.length+" instead")}function h(t){if(t.length%2!=0)throw new Error("An even amount of arguments was expected, got "+t+" instead")}function O(t){if(t.length%2==0)throw new Error("An odd amount of arguments was expected, got "+t+" instead")}function E(t,r){if(!o(r))throw new Error("Could not infer only one type from the following expression: "+JSON.stringify(t))}function d(t){return{getReturnType:function(t){return r.BOOLEAN},toGlsl:function(n,o){y(o,2);for(var u=r.ANY,i=0;i"]={getReturnType:function(t){return r.BOOLEAN},toGlsl:function(t,r){return y(r,2),g(r),"("+s(t,r[0])+" > "+s(t,r[1])+")"}},n[">="]={getReturnType:function(t){return r.BOOLEAN},toGlsl:function(t,r){return y(r,2),g(r),"("+s(t,r[0])+" >= "+s(t,r[1])+")"}},n["<"]={getReturnType:function(t){return r.BOOLEAN},toGlsl:function(t,r){return y(r,2),g(r),"("+s(t,r[0])+" < "+s(t,r[1])+")"}},n["<="]={getReturnType:function(t){return r.BOOLEAN},toGlsl:function(t,r){return y(r,2),g(r),"("+s(t,r[0])+" <= "+s(t,r[1])+")"}},n["=="]=d("=="),n["!="]=d("!="),n["!"]={getReturnType:function(t){return r.BOOLEAN},toGlsl:function(t,r){return y(r,1),R(r[0]),"(!"+s(t,r[0])+")"}},n.all=w("&&"),n.any=w("||"),n.between={getReturnType:function(t){return r.BOOLEAN},toGlsl:function(t,r){y(r,3),g(r);var n=s(t,r[1]),e=s(t,r[2]),o=s(t,r[0]);return"("+o+" >= "+n+" && "+o+" <= "+e+")"}},n.array={getReturnType:function(t){return r.NUMBER_ARRAY},toGlsl:function(t,n){N(n,2),v(n,4),g(n);var e=n.map(function(n){return s(t,n,r.NUMBER)});return"vec"+n.length+"("+e.join(", ")+")"}},n.color={getReturnType:function(t){return r.COLOR},toGlsl:function(t,n){N(n,3),v(n,4),g(n);var e=n;3===n.length&&e.push(1);var o=n.map(function(n,e){return s(t,n,r.NUMBER)+(e<3?" / 255.0":"")});return"vec"+n.length+"("+o.join(", ")+")"}},n.interpolate={getReturnType:function(t){for(var n=r.COLOR|r.NUMBER,o=3;o=1;c-=2){a="("+l+" == "+s(t,e[c])+" ? "+s(t,e[c+1],i)+" : "+(a||f)+")"}return a}},n.case={getReturnType:function(t){for(var n=r.ANY,o=1;o=0;l-=2){a="("+s(t,e[l])+" ? "+s(t,e[l+1],i)+" : "+(a||f)+")"}return a}}; +},{"../color.js":"eucy"}],"iRdz":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.parseLiteralStyle=o,exports.ShaderBuilder=void 0;var e=require("../style/expressions.js"),t=function(){function e(){this.uniforms=[],this.attributes=[],this.varyings=[],this.sizeExpression="vec2(1.0)",this.rotationExpression="0.0",this.offsetExpression="vec2(0.0)",this.colorExpression="vec4(1.0)",this.texCoordExpression="vec4(0.0, 0.0, 1.0, 1.0)",this.discardExpression="false",this.rotateWithView=!1}return e.prototype.addUniform=function(e){return this.uniforms.push(e),this},e.prototype.addAttribute=function(e){return this.attributes.push(e),this},e.prototype.addVarying=function(e,t,o){return this.varyings.push({name:e,type:t,expression:o}),this},e.prototype.setSizeExpression=function(e){return this.sizeExpression=e,this},e.prototype.setRotationExpression=function(e){return this.rotationExpression=e,this},e.prototype.setSymbolOffsetExpression=function(e){return this.offsetExpression=e,this},e.prototype.setColorExpression=function(e){return this.colorExpression=e,this},e.prototype.setTextureCoordinateExpression=function(e){return this.texCoordExpression=e,this},e.prototype.setFragmentDiscardExpression=function(e){return this.discardExpression=e,this},e.prototype.setSymbolRotateWithView=function(e){return this.rotateWithView=e,this},e.prototype.getSizeExpression=function(){return this.sizeExpression},e.prototype.getOffsetExpression=function(){return this.offsetExpression},e.prototype.getColorExpression=function(){return this.colorExpression},e.prototype.getTextureCoordinateExpression=function(){return this.texCoordExpression},e.prototype.getFragmentDiscardExpression=function(){return this.discardExpression},e.prototype.getSymbolVertexShader=function(e){var t=this.rotateWithView?"u_offsetScaleMatrix * u_offsetRotateMatrix":"u_offsetScaleMatrix",o=this.attributes,i=this.varyings;return e&&(o=o.concat("vec4 a_hitColor"),i=i.concat({name:"v_hitColor",type:"vec4",expression:"a_hitColor"})),"precision mediump float;\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\nuniform float u_time;\nuniform float u_zoom;\nuniform float u_resolution;\n"+this.uniforms.map(function(e){return"uniform "+e+";"}).join("\n")+"\nattribute vec2 a_position;\nattribute float a_index;\n"+o.map(function(e){return"attribute "+e+";"}).join("\n")+"\nvarying vec2 v_texCoord;\nvarying vec2 v_quadCoord;\n"+i.map(function(e){return"varying "+e.type+" "+e.name+";"}).join("\n")+"\nvoid main(void) {\n mat4 offsetMatrix = "+t+";\n vec2 halfSize = "+this.sizeExpression+" * 0.5;\n vec2 offset = "+this.offsetExpression+";\n float angle = "+this.rotationExpression+";\n float offsetX;\n float offsetY;\n if (a_index == 0.0) {\n offsetX = (offset.x - halfSize.x) * cos(angle) + (offset.y - halfSize.y) * sin(angle);\n offsetY = (offset.y - halfSize.y) * cos(angle) - (offset.x - halfSize.x) * sin(angle);\n } else if (a_index == 1.0) {\n offsetX = (offset.x + halfSize.x) * cos(angle) + (offset.y - halfSize.y) * sin(angle);\n offsetY = (offset.y - halfSize.y) * cos(angle) - (offset.x + halfSize.x) * sin(angle);\n } else if (a_index == 2.0) {\n offsetX = (offset.x + halfSize.x) * cos(angle) + (offset.y + halfSize.y) * sin(angle);\n offsetY = (offset.y + halfSize.y) * cos(angle) - (offset.x + halfSize.x) * sin(angle);\n } else {\n offsetX = (offset.x - halfSize.x) * cos(angle) + (offset.y + halfSize.y) * sin(angle);\n offsetY = (offset.y + halfSize.y) * cos(angle) - (offset.x - halfSize.x) * sin(angle);\n }\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n vec4 texCoord = "+this.texCoordExpression+";\n float u = a_index == 0.0 || a_index == 3.0 ? texCoord.s : texCoord.p;\n float v = a_index == 2.0 || a_index == 3.0 ? texCoord.t : texCoord.q;\n v_texCoord = vec2(u, v);\n u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n v = a_index == 2.0 || a_index == 3.0 ? 0.0 : 1.0;\n v_quadCoord = vec2(u, v);\n"+i.map(function(e){return" "+e.name+" = "+e.expression+";"}).join("\n")+"\n}"},e.prototype.getSymbolFragmentShader=function(e){var t=e?" if (gl_FragColor.a < 0.1) { discard; } gl_FragColor = v_hitColor;":"",o=this.varyings;return e&&(o=o.concat({name:"v_hitColor",type:"vec4",expression:"a_hitColor"})),"precision mediump float;\nuniform float u_time;\nuniform float u_zoom;\nuniform float u_resolution;\n"+this.uniforms.map(function(e){return"uniform "+e+";"}).join("\n")+"\nvarying vec2 v_texCoord;\nvarying vec2 v_quadCoord;\n"+o.map(function(e){return"varying "+e.type+" "+e.name+";"}).join("\n")+"\nvoid main(void) {\n if ("+this.discardExpression+") { discard; }\n gl_FragColor = "+this.colorExpression+";\n gl_FragColor.rgb *= gl_FragColor.a;\n"+t+"\n}"},e}();function o(o){var i=o.symbol,s=void 0!==i.size?i.size:1,r=i.color||"white",n=i.textureCoord||[0,0,1,1],a=i.offset||[0,0],f=void 0!==i.opacity?i.opacity:1,u=void 0!==i.rotation?i.rotation:0,l={inFragmentShader:!1,variables:[],attributes:[],stringLiteralsMap:{}},p=(0,e.expressionToGlsl)(l,s,e.ValueTypes.NUMBER_ARRAY|e.ValueTypes.NUMBER),x=(0,e.expressionToGlsl)(l,a,e.ValueTypes.NUMBER_ARRAY),c=(0,e.expressionToGlsl)(l,n,e.ValueTypes.NUMBER_ARRAY),d=(0,e.expressionToGlsl)(l,u,e.ValueTypes.NUMBER),h={inFragmentShader:!0,variables:l.variables,attributes:[],stringLiteralsMap:l.stringLiteralsMap},v=(0,e.expressionToGlsl)(h,r,e.ValueTypes.COLOR),y=(0,e.expressionToGlsl)(h,f,e.ValueTypes.NUMBER),m="1.0",g="vec2("+(0,e.expressionToGlsl)(h,s,e.ValueTypes.NUMBER_ARRAY|e.ValueTypes.NUMBER)+").x";switch(i.symbolType){case"square":case"image":break;case"circle":m="(1.0-smoothstep(1.-4./"+g+",1.,dot(v_quadCoord-.5,v_quadCoord-.5)*4.))";break;case"triangle":var _="(v_quadCoord*2.-1.)",E="(atan("+_+".x,"+_+".y))";m="(1.0-smoothstep(.5-3./"+g+",.5,cos(floor(.5+"+E+"/2.094395102)*2.094395102-"+E+")*length("+_+")))";break;default:throw new Error("Unexpected symbol type: "+i.symbolType)}var b=(new t).setSizeExpression("vec2("+p+")").setRotationExpression(d).setSymbolOffsetExpression(x).setTextureCoordinateExpression(c).setSymbolRotateWithView(!!i.rotateWithView).setColorExpression("vec4("+v+".rgb, "+v+".a * "+y+" * "+m+")");if(o.filter){var C=(0,e.expressionToGlsl)(h,o.filter,e.ValueTypes.BOOLEAN);b.setFragmentDiscardExpression("!"+C)}var S={};if(h.variables.forEach(function(t){b.addUniform("float u_"+t),S["u_"+t]=function(){if(!o.variables||void 0===o.variables[t])throw new Error("The following variable is missing from the style: "+t);var i=o.variables[t];return"string"==typeof i&&(i=(0,e.getStringNumberEquivalent)(l,i)),void 0!==i?i:-9999999}}),"image"===i.symbolType&&i.src){var z=new Image;z.src=i.src,b.addUniform("sampler2D u_texture").setColorExpression(b.getColorExpression()+" * texture2D(u_texture, v_texCoord)"),S.u_texture=z}return h.attributes.forEach(function(e){-1===l.attributes.indexOf(e)&&l.attributes.push(e),b.addVarying("v_"+e,"float","a_"+e)}),l.attributes.forEach(function(e){b.addAttribute("float a_"+e)}),{builder:b,attributes:l.attributes.map(function(t){return{name:t,callback:function(o,i){var s=i[t];return"string"==typeof s&&(s=(0,e.getStringNumberEquivalent)(l,s)),void 0!==s?s:-9999999}}}),uniforms:S}}exports.ShaderBuilder=t; +},{"../style/expressions.js":"xlCh"}],"sCa7":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("./Layer.js")),t=i(require("../renderer/webgl/PointsLayer.js")),r=require("../obj.js"),s=require("../webgl/ShaderBuilder.js");function i(e){return e&&e.__esModule?e:{default:e}}var n=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function s(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(s.prototype=r.prototype,new s)}}(),o=function(e){function i(t){var i=this,n=(0,r.assign)({},t);return(i=e.call(this,n)||this).parseResult_=(0,s.parseLiteralStyle)(t.style),i.hitDetectionDisabled_=!!t.disableHitDetection,i}return n(i,e),i.prototype.createRenderer=function(){return new t.default(this,{className:this.getClassName(),vertexShader:this.parseResult_.builder.getSymbolVertexShader(),fragmentShader:this.parseResult_.builder.getSymbolFragmentShader(),hitVertexShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolVertexShader(!0),hitFragmentShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolFragmentShader(!0),uniforms:this.parseResult_.uniforms,attributes:this.parseResult_.attributes})},i.prototype.disposeInternal=function(){this.getRenderer().disposeInternal(),e.prototype.disposeInternal.call(this)},i}(e.default),a=o;exports.default=a; +},{"./Layer.js":"GCgv","../renderer/webgl/PointsLayer.js":"m8cI","../obj.js":"mH6q","../webgl/ShaderBuilder.js":"iRdz"}],"ZVaS":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Graticule",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(exports,"Group",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"Heatmap",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(exports,"Image",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(exports,"Layer",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(exports,"MapboxVector",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(exports,"Tile",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(exports,"Vector",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"VectorImage",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(exports,"VectorTile",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(exports,"WebGLPoints",{enumerable:!0,get:function(){return c.default}});var e=p(require("./layer/Graticule.js")),r=p(require("./layer/Group.js")),t=p(require("./layer/Heatmap.js")),u=p(require("./layer/Image.js")),n=p(require("./layer/Layer.js")),o=p(require("./layer/MapboxVector.js")),a=p(require("./layer/Tile.js")),i=p(require("./layer/Vector.js")),l=p(require("./layer/VectorImage.js")),f=p(require("./layer/VectorTile.js")),c=p(require("./layer/WebGLPoints.js"));function p(e){return e&&e.__esModule?e:{default:e}} +},{"./layer/Graticule.js":"wXs0","./layer/Group.js":"q0nK","./layer/Heatmap.js":"I4BI","./layer/Image.js":"KHBf","./layer/Layer.js":"GCgv","./layer/MapboxVector.js":"VqZN","./layer/Tile.js":"BUEc","./layer/Vector.js":"dflx","./layer/VectorImage.js":"VV4h","./layer/VectorTile.js":"zOJv","./layer/WebGLPoints.js":"sCa7"}],"KA2S":[function(require,module,exports) { +var define; +var t,r=function(t){"use strict";var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(P){u=function(t,r,e){return t[r]=e}}function h(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new G(n||[]);return i._invoke=function(t,r,e){var n=l;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw i;return F()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=j(a,e);if(c){if(c===v)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===l)throw n=y,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=p;var u=f(t,r,e);if("normal"===u.type){if(n=e.done?y:s,u.arg===v)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=y,e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(P){return{type:"throw",arg:P}}}t.wrap=h;var l="suspendedStart",s="suspendedYield",p="executing",y="completed",v={};function d(){}function g(){}function m(){}var w={};w[i]=function(){return this};var L=Object.getPrototypeOf,x=L&&L(L(N([])));x&&x!==e&&n.call(x,i)&&(w=x);var b=m.prototype=d.prototype=Object.create(w);function E(t){["next","throw","return"].forEach(function(r){u(t,r,function(t){return this._invoke(r,t)})})}function _(t,r){var e;this._invoke=function(o,i){function a(){return new r(function(e,a){!function e(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var h=u.arg,l=h.value;return l&&"object"==typeof l&&n.call(l,"__await")?r.resolve(l.__await).then(function(t){e("next",t,a,c)},function(t){e("throw",t,a,c)}):r.resolve(l).then(function(t){h.value=t,a(h)},function(t){return e("throw",t,a,c)})}c(u.arg)}(o,i,e,a)})}return e=e?e.then(a,a):a()}}function j(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,j(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function O(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),h=n.call(a,"finallyLoc");if(u&&h){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),k(e),v}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;k(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:N(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),v}},t}("object"==typeof module?module.exports:{});try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)} +},{}],"hRTX":[function(require,module,exports) { +"use strict";module.exports=function(r,n){return function(){for(var t=new Array(arguments.length),e=0;e=0)return;s[i]="set-cookie"===i?(s[i]?s[i]:[]).concat([o]):s[i]?s[i]+", "+o:o}}),s):s}; +},{"./../utils":"Feqj"}],"Rpqp":[function(require,module,exports) { +"use strict";var t=require("./../utils");module.exports=t.isStandardBrowserEnv()?function(){var r,e=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");function a(t){var r=t;return e&&(o.setAttribute("href",r),r=o.href),o.setAttribute("href",r),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}return r=a(window.location.href),function(e){var o=t.isString(e)?a(e):e;return o.protocol===r.protocol&&o.host===r.host}}():function(){return!0}; +},{"./../utils":"Feqj"}],"akUF":[function(require,module,exports) { +"use strict";var e=require("./../utils"),r=require("./../core/settle"),t=require("./../helpers/cookies"),s=require("./../helpers/buildURL"),o=require("../core/buildFullPath"),n=require("./../helpers/parseHeaders"),a=require("./../helpers/isURLSameOrigin"),i=require("../core/createError");module.exports=function(u){return new Promise(function(l,d){var p=u.data,c=u.headers;e.isFormData(p)&&delete c["Content-Type"];var f=new XMLHttpRequest;if(u.auth){var h=u.auth.username||"",m=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";c.Authorization="Basic "+btoa(h+":"+m)}var w=o(u.baseURL,u.url);if(f.open(u.method.toUpperCase(),s(w,u.params,u.paramsSerializer),!0),f.timeout=u.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var e="getAllResponseHeaders"in f?n(f.getAllResponseHeaders()):null,t={data:u.responseType&&"text"!==u.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:e,config:u,request:f};r(l,d,t),f=null}},f.onabort=function(){f&&(d(i("Request aborted",u,"ECONNABORTED",f)),f=null)},f.onerror=function(){d(i("Network Error",u,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+u.timeout+"ms exceeded";u.timeoutErrorMessage&&(e=u.timeoutErrorMessage),d(i(e,u,"ECONNABORTED",f)),f=null},e.isStandardBrowserEnv()){var R=(u.withCredentials||a(w))&&u.xsrfCookieName?t.read(u.xsrfCookieName):void 0;R&&(c[u.xsrfHeaderName]=R)}if("setRequestHeader"in f&&e.forEach(c,function(e,r){void 0===p&&"content-type"===r.toLowerCase()?delete c[r]:f.setRequestHeader(r,e)}),e.isUndefined(u.withCredentials)||(f.withCredentials=!!u.withCredentials),u.responseType)try{f.responseType=u.responseType}catch(T){if("json"!==u.responseType)throw T}"function"==typeof u.onDownloadProgress&&f.addEventListener("progress",u.onDownloadProgress),"function"==typeof u.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",u.onUploadProgress),u.cancelToken&&u.cancelToken.promise.then(function(e){f&&(f.abort(),d(e),f=null)}),p||(p=null),f.send(p)})}; +},{"./../utils":"Feqj","./../core/settle":"Ztkp","./../helpers/cookies":"MLCl","./../helpers/buildURL":"phSU","../core/buildFullPath":"dm4E","./../helpers/parseHeaders":"Zn5P","./../helpers/isURLSameOrigin":"Rpqp","../core/createError":"NZT3"}],"g5IB":[function(require,module,exports) { + +var t,e,n=module.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function u(t){if(e===clearTimeout)return clearTimeout(t);if((e===o||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{return e(t)}catch(n){try{return e.call(null,t)}catch(n){return e.call(this,t)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(n){t=r}try{e="function"==typeof clearTimeout?clearTimeout:o}catch(n){e=o}}();var c,s=[],l=!1,a=-1;function f(){l&&c&&(l=!1,c.length?s=c.concat(s):a=-1,s.length&&h())}function h(){if(!l){var t=i(f);l=!0;for(var e=s.length;e;){for(c=s,s=[];++a1)for(var n=1;n=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};t.forEach(["delete","get","head"],function(e){o.headers[e]={}}),t.forEach(["post","put","patch"],function(e){o.headers[e]=t.merge(n)}),module.exports=o; +},{"./utils":"Feqj","./helpers/normalizeHeaderName":"njyv","./adapters/xhr":"akUF","./adapters/http":"akUF","process":"g5IB"}],"HALK":[function(require,module,exports) { +"use strict";var e=require("./../utils"),r=require("./transformData"),a=require("../cancel/isCancel"),t=require("../defaults");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}module.exports=function(n){return s(n),n.headers=n.headers||{},n.data=r(n.data,n.headers,n.transformRequest),n.headers=e.merge(n.headers.common||{},n.headers[n.method]||{},n.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(e){delete n.headers[e]}),(n.adapter||t.adapter)(n).then(function(e){return s(n),e.data=r(e.data,e.headers,n.transformResponse),e},function(e){return a(e)||(s(n),e&&e.response&&(e.response.data=r(e.response.data,e.response.headers,n.transformResponse))),Promise.reject(e)})}; +},{"./../utils":"Feqj","./transformData":"IAOH","../cancel/isCancel":"mXc0","../defaults":"A14q"}],"fBI1":[function(require,module,exports) { +"use strict";var e=require("../utils");module.exports=function(n,t){t=t||{};var r={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(n,t){return e.isPlainObject(n)&&e.isPlainObject(t)?e.merge(n,t):e.isPlainObject(t)?e.merge({},t):e.isArray(t)?t.slice():t}function d(o){e.isUndefined(t[o])?e.isUndefined(n[o])||(r[o]=c(void 0,n[o])):r[o]=c(n[o],t[o])}e.forEach(o,function(n){e.isUndefined(t[n])||(r[n]=c(void 0,t[n]))}),e.forEach(i,d),e.forEach(a,function(o){e.isUndefined(t[o])?e.isUndefined(n[o])||(r[o]=c(void 0,n[o])):r[o]=c(void 0,t[o])}),e.forEach(s,function(e){e in t?r[e]=c(n[e],t[e]):e in n&&(r[e]=c(void 0,n[e]))});var f=o.concat(i).concat(a).concat(s),u=Object.keys(n).concat(Object.keys(t)).filter(function(e){return-1===f.indexOf(e)});return e.forEach(u,d),r}; +},{"../utils":"Feqj"}],"trUU":[function(require,module,exports) { +"use strict";var e=require("./../utils"),t=require("../helpers/buildURL"),r=require("./InterceptorManager"),o=require("./dispatchRequest"),s=require("./mergeConfig");function i(e){this.defaults=e,this.interceptors={request:new r,response:new r}}i.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[o,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},i.prototype.getUri=function(e){return e=s(this.defaults,e),t(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},e.forEach(["delete","get","head","options"],function(e){i.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}}),e.forEach(["post","put","patch"],function(e){i.prototype[e]=function(t,r,o){return this.request(s(o||{},{method:e,url:t,data:r}))}}),module.exports=i; +},{"./../utils":"Feqj","../helpers/buildURL":"phSU","./InterceptorManager":"xpeW","./dispatchRequest":"HALK","./mergeConfig":"fBI1"}],"qFUg":[function(require,module,exports) { +"use strict";function t(t){this.message=t}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,module.exports=t; +},{}],"VgQU":[function(require,module,exports) { +"use strict";var e=require("./Cancel");function n(n){if("function"!=typeof n)throw new TypeError("executor must be a function.");var o;this.promise=new Promise(function(e){o=e});var r=this;n(function(n){r.reason||(r.reason=new e(n),o(r.reason))})}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var e;return{token:new n(function(n){e=n}),cancel:e}},module.exports=n; +},{"./Cancel":"qFUg"}],"yisB":[function(require,module,exports) { +"use strict";module.exports=function(n){return function(t){return n.apply(null,t)}}; +},{}],"FbOI":[function(require,module,exports) { +"use strict";module.exports=function(o){return"object"==typeof o&&!0===o.isAxiosError}; +},{}],"Wzmt":[function(require,module,exports) { +"use strict";var e=require("./utils"),r=require("./helpers/bind"),i=require("./core/Axios"),n=require("./core/mergeConfig"),u=require("./defaults");function o(n){var u=new i(n),o=r(i.prototype.request,u);return e.extend(o,i.prototype,u),e.extend(o,u),o}var l=o(u);l.Axios=i,l.create=function(e){return o(n(l.defaults,e))},l.Cancel=require("./cancel/Cancel"),l.CancelToken=require("./cancel/CancelToken"),l.isCancel=require("./cancel/isCancel"),l.all=function(e){return Promise.all(e)},l.spread=require("./helpers/spread"),l.isAxiosError=require("./helpers/isAxiosError"),module.exports=l,module.exports.default=l; +},{"./utils":"Feqj","./helpers/bind":"hRTX","./core/Axios":"trUU","./core/mergeConfig":"fBI1","./defaults":"A14q","./cancel/Cancel":"qFUg","./cancel/CancelToken":"VgQU","./cancel/isCancel":"mXc0","./helpers/spread":"yisB","./helpers/isAxiosError":"FbOI"}],"O4Aa":[function(require,module,exports) { +module.exports=require("./lib/axios"); +},{"./lib/axios":"Wzmt"}],"bm5C":[function(require,module,exports) { +var define; +var global = arguments[3]; +var e,t=arguments[3];!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof e&&e.amd?e(r):(t="undefined"!=typeof globalThis?globalThis:t||self)["fast-copy"]=r()}(this,function(){"use strict";var e=Function.prototype.toString,r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,a=Object.getPrototypeOf,u=Object.prototype,c=u.hasOwnProperty,s=u.propertyIsEnumerable,l="function"==typeof i,p="function"==typeof WeakMap,y=function(){if(p)return new WeakMap;var e=r({has:function(t){return!!~e._keys.indexOf(t)},set:function(t,r){e._keys.push(t),e._values.push(r)},get:function(t){return e._values[e._keys.indexOf(t)]}});return e._keys=[],e._values=[],e},d=function(t,n){if(!t.constructor)return r(null);var o=t.constructor,f=t.__proto__||a(t);if(o===n.Object)return f===n.Object.prototype?{}:r(f);if(~e.call(o).indexOf("[native code]"))try{return new o}catch(u){}return r(f)},v=function(e,t,r,n){var o=d(e,t);for(var f in n.set(e,o),e)c.call(e,f)&&(o[f]=r(e[f],n));if(l){var a=i(e),u=a.length;if(u)for(var p=0,y=void 0;p1;){var e=r.pop(),o=e.obj[e.prop];if(t(o)){for(var n=[],c=0;c=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122?c+=n.charAt(u):f<128?c+=e[f]:f<2048?c+=e[192|f>>6]+e[128|63&f]:f<55296||f>=57344?c+=e[224|f>>12]+e[128|f>>6&63]+e[128|63&f]:(u+=1,f=65536+((1023&f)<<10|1023&n.charCodeAt(u)),c+=e[240|f>>18]+e[128|f>>12&63]+e[128|f>>6&63]+e[128|63&f])}return c},a=function(r){for(var t=[{obj:{o:r},prop:"o"}],e=[],n=0;n0?h+m:""}; +},{"./utils":"Qri1","./formats":"XaX2"}],"snX5":[function(require,module,exports) { +"use strict";var e=require("./utils"),t=Object.prototype.hasOwnProperty,r=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:e.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},a=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},n="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",c=function(c,s){var p,d={},u=s.ignoreQueryPrefix?c.replace(/^\?/,""):c,f=s.parameterLimit===1/0?void 0:s.parameterLimit,m=u.split(s.delimiter,f),y=-1,h=s.charset;if(s.charsetSentinel)for(p=0;p-1&&(g=r(g)?[g]:g),t.call(d,b)?d[b]=e.combine(d[b],g):d[b]=g}return d},s=function(e,t,r,i){for(var o=i?t:a(t,r),n=e.length-1;n>=0;--n){var l,c=e[n];if("[]"===c&&r.parseArrays)l=[].concat(o);else{l=r.plainObjects?Object.create(null):{};var s="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,p=parseInt(s,10);r.parseArrays||""!==s?!isNaN(p)&&c!==s&&String(p)===s&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(l=[])[p]=o:l[s]=o:l={0:o}}o=l}return o},p=function(e,r,i,o){if(e){var a=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,n=/(\[[^[\]]*])/g,l=i.depth>0&&/(\[[^[\]]*])/.exec(a),c=l?a.slice(0,l.index):a,p=[];if(c){if(!i.plainObjects&&t.call(Object.prototype,c)&&!i.allowPrototypes)return;p.push(c)}for(var d=0;i.depth>0&&null!==(l=n.exec(a))&&de.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){u=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw a}}}}var g={},m=0;function v(){}var b=function(e){return new Promise(function(t){setTimeout(t,e)})};function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,r=e.defaults,n=r.responseLogger,o=void 0===n?v:n,a=r.requestLogger,i=void 0===a?v:a;e.interceptors.request.use(function(e){return i(e),e},function(e){return i(e),Promise.reject(e)}),e.interceptors.response.use(function(e){return o(e),e},function(r){var n=r.response,a=r.config;if(o(r),!a||!e.defaults.retryOnError)return Promise.reject(r);var i=null,u=0;if(n)m=0;else{if(i="Connection",++m>t)return r.attempts=m,Promise.reject(r);u=Math.pow(Math.SQRT2,m),n={}}if(n.status>=500&&n.status<600){i="Server ".concat(n.status);var s=(n.headers||{})["x-contentful-request-id"]||null;if(g[s]=g[s]||0,g[s]++,g[s]>t||!s)return r.attempts=g[s],Promise.reject(r);u=Math.pow(Math.SQRT2,g[s])}else 429===n.status&&(i="Rate limit",n.headers&&r.response.headers["x-contentful-ratelimit-reset"]&&(u=n.headers["x-contentful-ratelimit-reset"]));return i?(u=Math.floor(1e3*u+200*Math.random()+500),e.defaults.logHandler("warning","".concat(i," error occurred. Waiting for ").concat(u," ms before retrying...")),delete a.httpAgent,delete a.httpsAgent,b(u).then(function(){return e(a)})):Promise.reject(r)})}function O(e,t){e.interceptors.request.use(function(e){return t().then(function(t){return e.headers=s(s({},e.headers),{},{Authorization:"Bearer ".concat(t)}),e})})}function j(){return void 0!==e&&!1}function P(){return"undefined"!=typeof window&&"navigator"in window&&"product"in window.navigator&&"ReactNative"===window.navigator.product}function x(){return e.versions&&e.versions.node?"v".concat(e.versions.node):e.version}function S(){return window}var A=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function L(e,n){var o=s(s({},{insecure:!1,retryOnError:!0,logHandler:function(e,t){if("error"===e&&t){var r=[t.name,t.message].filter(function(e){return e}).join(" - ");return console.error("[error] ".concat(r)),void console.error(t)}console.log("[".concat(e,"] ").concat(t))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,proxy:!1,basePath:"",adapter:void 0,maxContentLength:1073741824}),n);if(!o.accessToken){var a=new TypeError("Expected parameter accessToken");throw o.logHandler("error",a),a}var i=o.insecure?"http":"https",u=o.space?"".concat(o.space,"/"):"",f=o.defaultHostname,l=o.insecure?80:443;if(o.host&&A.test(o.host)){var p=o.host.split(":");if(2===p.length){var d=c(p,2);f=d[0],l=d[1]}else f=p[0]}o.basePath&&(o.basePath="/".concat(o.basePath.split("/").filter(Boolean).join("/")));var h=n.baseURL||"".concat(i,"://").concat(f,":").concat(l).concat(o.basePath,"/spaces/").concat(u);o.headers.Authorization||"function"==typeof o.accessToken||(o.headers.Authorization="Bearer "+o.accessToken),j()&&(o.headers["user-agent"]="node.js/"+x(),o.headers["Accept-Encoding"]="gzip");var y={baseURL:h,headers:o.headers,httpAgent:o.httpAgent,httpsAgent:o.httpsAgent,paramsSerializer:r.default.stringify,proxy:o.proxy,timeout:o.timeout,adapter:o.adapter,maxContentLength:o.maxContentLength,logHandler:o.logHandler,responseLogger:o.responseLogger,requestLogger:o.requestLogger,retryOnError:o.retryOnError},g=e.create(y);return g.httpClientParams=n,g.cloneWithNewParams=function(r){return L(e,s(s({},(0,t.default)(n)),r))},o.onBeforeRequest&&g.interceptors.request.use(o.onBeforeRequest),"function"==typeof o.accessToken&&O(g,o.accessToken),w(g,o.retryLimit),o.onError&&g.interceptors.response.use(function(e){return e},o.onError),g}function q(e){var r=e.query,n={};return delete r.resolveLinks,n.params=(0,t.default)(r),n}function E(e,t){if(!(t in e)){var r=new Error;throw r.name="PropertyMissing",r.message="Required property ".concat(t," missing from:\n\n").concat(JSON.stringify(e),"\n\n"),r}return!0}function M(e){var t,r=y(Object.getOwnPropertyNames(e));try{for(r.s();!(t=r.n()).done;){var n=e[t.value];n&&"object"===a(n)&&M(n)}}catch(o){r.e(o)}finally{r.f()}return Object.freeze(e)}function T(e){return M(e.sys||{}),e}function R(){var e=S();if(!e)return null;var t=e.navigator.userAgent,r=e.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(r)?n="macOS":-1!==["iPhone","iPad","iPod"].indexOf(r)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(r)?n="Windows":/Android/.test(t)?n="Android":/Linux/.test(r)&&(n="Linux"),n}function C(){var e=(0,n.platform)()||"linux",t=(0,n.release)()||"0.0.0",r={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in r?"".concat(r[e]||"Linux","/").concat(t):null}function k(e,t,r,n){var o=[];t&&o.push("app ".concat(t)),r&&o.push("integration ".concat(r)),n&&o.push("feature "+n),o.push("sdk ".concat(e));var a=null;try{P()?(a=R(),o.push("platform ReactNative")):j()?(a=C(),o.push("platform node.js/".concat(x()))):(a=R(),o.push("platform browser"))}catch(i){a=null}return a&&o.push("os ".concat(a)),"".concat(o.filter(function(e){return""!==e}).join("; "),";")}function H(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return(0,t.default)(this)}})} +},{"fast-copy":"bm5C","qs":"hIRQ","os":"sC8V","process":"g5IB"}],"vcxe":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.wrapSpace=r;var e=require("contentful-sdk-core");function r(r){return(0,e.freezeSys)((0,e.toPlainObject)(r))} +},{"contentful-sdk-core":"ty5k"}],"yUp7":[function(require,module,exports) { +function i(i,n,r,t){return JSON.stringify(i,e(n,t),r)}function e(i,e){var n=[],r=[];return null==e&&(e=function(i,e){return n[0]===e?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(e)).join(".")+"]"}),function(t,l){if(n.length>0){var u=n.indexOf(this);~u?n.splice(u+1):n.push(this),~u?r.splice(u,1/0,t):r.push(t),~n.indexOf(l)&&(l=e.call(this,t,l))}else n.push(l);return null==i?l:i.call(this,t,l)}}exports=module.exports=i,exports.getSerialize=e; +},{}],"EfuB":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;var e=r(require("json-stringify-safe"));function r(e){return e&&e.__esModule?e:{default:e}}function t(r){return Object.defineProperty(r,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,e.default)(this,r,t,function(e,r){return{sys:{type:"Link",linkType:"Entry",id:r.sys.id,circular:!0}}})}})} +},{"json-stringify-safe":"yUp7"}],"Z4DZ":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var r=t(require("fast-copy"));function t(r){return r&&r.__esModule?r:{default:r}}function n(r){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}var e="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(r){return n(r)}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":n(r)};function o(r){if(Array.isArray(r)){for(var t=0,n=Array(r.length);t2&&void 0!==k[2]?k[2]:{},a&&(a.initial||a.nextSyncToken||a.nextPageToken)){r.next=3;break}throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");case 3:if(!a||!a.content_type||a.type){r.next=7;break}a.type="Entry",r.next=9;break;case 7:if(!(a&&a.content_type&&a.type&&"Entry"!==a.type)){r.next=9;break}throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");case 9:return s=i(i({},{resolveLinks:!0,removeUnresolved:!1,paginate:!0}),c),u=s.resolveLinks,l=s.removeUnresolved,y=s.paginate,d={paginate:y},r.next=14,f(o,[],a,d);case 14:return x=r.sent,u&&(x.items=(0,t.default)(x,{removeUnresolved:l,itemEntryPoints:["fields"]})),g=p(x.items),x.nextSyncToken&&(g.nextSyncToken=x.nextSyncToken),x.nextPageToken&&(g.nextPageToken=x.nextPageToken),r.abrupt("return",(0,e.freezeSys)((0,n.default)((0,e.toPlainObject)(g))));case 20:case"end":return r.stop()}},r)}))).apply(this,arguments)}function p(t){var n=function(t){return function(n,r){return r.sys.type===t&&n.push((0,e.toPlainObject)(r)),n}};return{entries:t.reduce(n("Entry"),[]),assets:t.reduce(n("Asset"),[]),deletedEntries:t.reduce(n("DeletedEntry"),[]),deletedAssets:t.reduce(n("DeletedAsset"),[])}}function f(e,t,n,r){return y.apply(this,arguments)}function y(){return(y=s(regeneratorRuntime.mark(function t(n,r,o,i){var a,c,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=i.paginate,o.nextSyncToken&&(o.sync_token=o.nextSyncToken,delete o.nextSyncToken),o.nextPageToken&&(o.sync_token=o.nextPageToken,delete o.nextPageToken),o.sync_token&&(delete o.initial,delete o.type,delete o.content_type,delete o.limit),t.next=6,n.get("sync",(0,e.createRequestConfig)({query:o}));case 6:if(c=t.sent,s=c.data||{},r=r.concat(s.items||[]),!s.nextPageUrl){t.next=17;break}if(!a){t.next=14;break}return delete o.initial,o.sync_token=d(s.nextPageUrl),t.abrupt("return",f(n,r,o,{paginate:a}));case 14:return t.abrupt("return",{items:r,nextPageToken:d(s.nextPageUrl)});case 17:if(!s.nextSyncUrl){t.next=21;break}return t.abrupt("return",{items:r,nextSyncToken:d(s.nextSyncUrl)});case 21:return t.abrupt("return",{items:[]});case 22:case"end":return t.stop()}},t)}))).apply(this,arguments)}function d(e){var t=e.split("?");return t.length>0?t[1].replace("sync_token=",""):""} +},{"contentful-sdk-core":"ty5k","contentful-resolve-response":"Z4DZ","./mixins/stringify-safe":"EfuB"}],"TE9K":[function(require,module,exports) { +"use strict";function e(e){return o(e)||n(e)||t(e)||r()}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,r){if(e){if("string"==typeof e)return i(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,r):void 0}}function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function o(e){if(Array.isArray(e))return i(e)}function i(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&void 0!==a[0]?a[0]:{},U(u),t.prev=2,t.next=5,u.get("content_types",(0,e.createRequestConfig)({query:r}));case 5:return n=t.sent,t.abrupt("return",f(n.data));case 9:t.prev=9,t.t0=t.catch(2),R(t.t0);case 12:case"end":return t.stop()}},t,null,[[2,9]])}))).apply(this,arguments)}function q(){return(q=i(regeneratorRuntime.mark(function e(t){var r,n,a=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=a.length>1&&void 0!==a[1]?a[1]:{},t){e.next=3;break}throw b(t);case 3:return e.prev=3,e.next=6,this.getEntries(o({"sys.id":t},r));case 6:if(!((n=e.sent).items.length>0)){e.next=11;break}return e.abrupt("return",d(n.items[0]));case 11:throw b(t);case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),R(e.t0);case 17:case"end":return e.stop()}},e,this,[[3,14]])}))).apply(this,arguments)}function j(){return(j=i(regeneratorRuntime.mark(function t(){var r,a,o,c,i,p=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=p.length>0&&void 0!==p[0]?p[0]:{},U(u),a=s(r),o=a.resolveLinks,c=a.removeUnresolved,r=(0,n.default)(r),t.prev=4,t.next=7,u.get("entries",(0,e.createRequestConfig)({query:r}));case 7:return i=t.sent,t.abrupt("return",h(i.data,{resolveLinks:o,removeUnresolved:c}));case 11:t.prev=11,t.t0=t.catch(4),R(t.t0);case 14:case"end":return t.stop()}},t,null,[[4,11]])}))).apply(this,arguments)}function C(){return(C=i(regeneratorRuntime.mark(function t(r){var a,o,s=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=s.length>1&&void 0!==s[1]?s[1]:{},U(u),a=(0,n.default)(a),t.prev=3,t.next=6,u.get("assets/".concat(r),(0,e.createRequestConfig)({query:a}));case 6:return o=t.sent,t.abrupt("return",y(o.data));case 10:t.prev=10,t.t0=t.catch(3),R(t.t0);case 13:case"end":return t.stop()}},t,null,[[3,10]])}))).apply(this,arguments)}function P(){return(P=i(regeneratorRuntime.mark(function t(){var r,a,o=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>0&&void 0!==o[0]?o[0]:{},U(u),r=(0,n.default)(r),t.prev=3,t.next=6,u.get("assets",(0,e.createRequestConfig)({query:r}));case 6:return a=t.sent,t.abrupt("return",m(a.data));case 10:t.prev=10,t.t0=t.catch(3),R(t.t0);case 13:case"end":return t.stop()}},t,null,[[3,10]])}))).apply(this,arguments)}function E(){return(E=i(regeneratorRuntime.mark(function t(){var r,n,a=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>0&&void 0!==a[0]?a[0]:{},U(u),t.prev=2,t.next=5,u.get("locales",(0,e.createRequestConfig)({query:r}));case 5:return n=t.sent,t.abrupt("return",w(n.data));case 9:t.prev=9,t.t0=t.catch(2),R(t.t0);case 12:case"end":return t.stop()}},t,null,[[2,9]])}))).apply(this,arguments)}function L(){return(L=i(regeneratorRuntime.mark(function e(){var t,n,a,c,i,p=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=p.length>0&&void 0!==p[0]?p[0]:{},n=p.length>1&&void 0!==p[1]?p[1]:{paginate:!0},a=s(t),c=a.resolveLinks,i=a.removeUnresolved,U(u),e.abrupt("return",(0,r.default)(u,t,o({resolveLinks:c,removeUnresolved:i},n)));case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function U(e){e.defaults.baseURL=s().environmentBaseUrl}function T(e){e.defaults.baseURL=s().spaceBaseUrl}return{getSpace:function(){return x.apply(this,arguments)},getContentType:function(e){return k.apply(this,arguments)},getContentTypes:function(){return O.apply(this,arguments)},getEntry:function(e){return q.apply(this,arguments)},getEntries:function(){return j.apply(this,arguments)},getAsset:function(e){return C.apply(this,arguments)},getAssets:function(){return P.apply(this,arguments)},getLocales:function(){return E.apply(this,arguments)},parseEntries:function(e){var t=s({}),r=t.resolveLinks,n=t.removeUnresolved;return h(e,{resolveLinks:r,removeUnresolved:n})},sync:function(){return L.apply(this,arguments)}}} +},{"contentful-sdk-core":"ty5k","./entities":"PlCG","./paged-sync":"r4Id","./utils/normalize-select":"TE9K"}],"W2uM":[function(require,module,exports) { +"use strict";function e(e){return function(t){return Object.assign({},e,t)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e; +},{}],"xB1X":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createClient=i;var e=o(require("axios")),r=require("contentful-sdk-core"),t=o(require("./create-contentful-api")),n=o(require("./create-global-options"));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function a(e){for(var r=1;r]/,o=u;function u(n){var t,e=""+n,o=r.exec(e);if(!o)return e;var u="",i=0,c=0;for(i=o.index;i0?cn:un)(n)},an=Math.min,ln=Math.max,sn=Math.min,dn=function(n){return function(t,e,r){var o,u,i=b(t),c=(o=i.length)>0?an(fn(o),9007199254740991):0,f=function(n,t){var e=fn(n);return e<0?ln(e+t,0):sn(e,t)}(r,c);if(n&&e!=e){for(;c>f;)if((u=i[f++])!=u)return!0}else for(;c>f;f++)if((n||f in i)&&i[f]===e)return n||f||0;return!n&&-1}},pn={includes:dn(!0),indexOf:dn(!1)},En=pn.indexOf,yn=function(n,t){var e,r=b(n),o=0,u=[];for(e in r)!g(z,e)&&g(r,e)&&u.push(e);for(;t.length>o;)g(r,e=t[o++])&&(~En(u,e)||u.push(e));return u},hn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bn=hn.concat("length","prototype"),vn={f:Object.getOwnPropertyNames||function(n){return yn(n,bn)}},Sn={f:Object.getOwnPropertySymbols},Tn=on("Reflect","ownKeys")||function(n){var t=vn.f(A(n)),e=Sn.f;return e?t.concat(e(n)):t},gn=function(n,t){for(var e=Tn(t),r=w.f,o=N.f,u=0;ui;)e=o[i++],a&&!Rn.call(r,e)||c.push(n?[e,r[e]]:r[e]);return c}},jn={entries:Mn(!0),values:Mn(!1)}.values;wn({target:"Object",stat:!0},{values:function(n){return jn(n)}});en.Object.values;var Hn,kn=!!Object.getOwnPropertySymbols&&!f(function(){return!String(Symbol())}),Cn=kn&&!Symbol.sham&&"symbol"==t(Symbol.iterator),Gn=B("wks"),Yn=c.Symbol,xn=Cn?Yn:Yn&&Yn.withoutSetter||F,Bn=a?Object.defineProperties:function(n,t){A(n);for(var e,r=Pn(t),o=r.length,u=0;o>u;)w.f(n,e=r[u++],t[e]);return n},Kn=on("document","documentElement"),Un=V("IE_PROTO"),Fn=function(){},qn=function(n){return" + + + + + + + +
+
+ + +
+
+ + + + + + \ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 0000000..c71b552 --- /dev/null +++ b/index.js @@ -0,0 +1,1144 @@ +// Turn on debug mode during local development based on hostname +// Or when a query param "debug" is set (for CMS content previews) +const queryString = new URLSearchParams(window.location.search); +const hasDebugParam = queryString.has('debug'); +if (window.location.hostname === 'localhost' || window.location.hostname === 'tfm-map-preview.vercel.app' || hasDebugParam) window.tfmDebug = true; + +/*** BASIC SETUP ***/ +// OpenLayer modules +import {Map, View} from 'ol'; +import LayerSwitcher from 'ol-layerswitcher'; +import GeoJSON from 'ol/format/GeoJSON'; +import {Vector as VectorSource, OSM} from 'ol/source'; +import {Tile as TileLayer, Vector as VectorLayer, Group as LayerGroup} from 'ol/layer'; +import {Fill, Stroke, Style, Text, Icon, Circle, RegularShape} from 'ol/style'; +import Point from 'ol/geom/Point'; +import {defaults as defaultInteractions} from 'ol/interaction'; + +/* + Contentful SDK + Contentful is our CMS for most of the map metadata content (colors, descriptions, full names, etc.) + Currently, some non-clickable exhibition labels are hardcoded in the geoJSON layers directly + But as soon as something becomes interactive or needs editor configuration, it goes into Contentful + You can swap out Contentful for any other headless CMS of your choice. We tried this with Airtable, GSheets, etc. + To do so, you will have to either mirror Contentful's API structure or else refactor the data structures in this file + Sorry for our lack of abstraction! +*/ + +import "regenerator-runtime/runtime"; // Contentful needs it +import * as contentful from 'contentful'; // Basic JS SDK +import {documentToHtmlString} from '@contentful/rich-text-html-renderer'; // Renders Contentful's WYSIWYG rich text fields + +// Stylesheets +import 'ol/ol.css'; // Some default OpenLayer styles +// index.css contains OUR styles. That's loaded via index.html instead (don't ask me why; just how OL set it up) + + +/*** PRELOAD CONTENT DATA ***/ +// First we preload the data from a cached JSON file, for faster loading and just in case our CMS is down +import FallbackData from '/assets/cms/fallback-data.json'; +let CMSData = {}; +FallbackData.items.forEach(item => { + CMSData[item.sys.id] = item; +}); + +/*** REFRESH DATA FROM CMS ***/ +// Disabled for the open-source release, but uncomment and it should work + +/* +// Then we set up a fetch from our CMS, Contentful +// We default to the production build (i.e., entries marked PUBLISHED) +let client = contentful.createClient({ + space: 'your_space_id', // The ID for your Contentful space + accessToken: 'your_api_token' // You'd want to set your own API key. SUE is ours!! +}) + +// But if debug mode is on, we fetch from the preview build instead +// This shows unpublished drafts so we can see how color changes, etc. will look without affecting visitors +if(window.tfmDebug) { + client = contentful.createClient({ + host: 'preview.contentful.com', // To see unpublished changes + space: 'your_same_space_id', // The ID for your Contentful space + accessToken: 'your_PREVIEW_api_token' // Preview API key is different from regular key + }) + +} + +client.getEntries({ + content_type: 'poi', +}).then((response) => { + CMSData = {}; // Clear the fallback + + // Replace it with Contentful's data + response.items.forEach(responseItem => { + CMSData[responseItem.sys.id] = responseItem; + }); +}).catch(console.warn) + +*/ + +/*** REUSABLE SETTINGS ***/ + +/* + We show/hide different things depending on zoom level + For example, important exhibitions and amenities (restrooms, etc.) are always visible, + while others only appear at `medium` or `close`. + + Independently of zoom levels, some font and icon sizes scale as a function of the zoom level. + This is so that they can remain constant sized to the visitor, i.e. as zoom level increases, their size decreases + proportionally so that they remain the same on-screen size. + */ +const tfmZooms = { + far: 17, + medium: 18.5, + close: 20, +}; + +// Our brand colors. Our CMS uses these same string names in `fields.color` +const tfmColors = { + "Field Blue": '#0a46e6', + "Field Gray Lighter": '#F0F3F3', + "Field Gray Light": '#C9CACC', + "Field Gray": '#6a6a71', + "Field Gray Darker": '#333336', + "Field Black": '#0F0F14', + "Field Orange": '#F29F77', + "Field Purple": '#B274A7', + "Field Green": '#37816e', + "Success Green": '#53B59E', + "Warning Red": '#D44235', + "Map Dark Yellow": '#9a7e0b', + "Map Brown": '#663300', + "Map Light Blue": '#6FB4D6', + "Map Yellow": '#C6AD59', + "Map Magenta": '#A7197C', + "Map Light Green": '#AAC38A', + 'Error Red': '#FF0000', +}; + +// Line widths +const tfmStrokes = { + narrow: 1, // Most lines (we use a minimalist style) + thick: 4, // COVID one-way flows +} + +/*** LAYER SETUP ***/ + +// First read in the files +// Note that the `require()` function here is provided by our packer, Parcel, not OL or JS +// We do this because geoJSON files aren't ES6 modules and can't be properly `import()`ed. + + +// !!! SUPER IMPORTANT!!! +// Note that if you're editing these with QGIS, there's a bug that prevents saving geoJSON IDs properly +// QGIS saves IDs as inside `properties`, when the geoJSON spec says they should instead be a top-level member +// See https://github.com/qgis/QGIS/issues/40805 for details +// For now, the workaround is documented in that Github issue, or you can manually move IDs in the geoJSONs +// The IDs are used anywhere the OpenLayer `getId()` function is used, which is a lot of places. + +const LayerFiles = { + ground: { + areas: require('/assets/layers/ground_level_areas.geojson'), + labels: require('/assets/layers/ground_level_labels.geojson'), + amenities: require('/assets/layers/ground_level_amenities.geojson'), + flows: require('/assets/layers/ground_level_flows.geojson'), + pictograms: require('/assets/layers/ground_level_pictograms.geojson'), + outline: require('/assets/layers/ground_level_outline.geojson'), + }, + main: { + areas: require('/assets/layers/main_level_areas.geojson'), + labels: require('/assets/layers/main_level_labels.geojson'), + amenities: require('/assets/layers/main_level_amenities.geojson'), + flows: require('/assets/layers/main_level_flows.geojson'), + pictograms: require('/assets/layers/main_level_pictograms.geojson'), + outline: require('/assets/layers/main_level_outline.geojson'), + }, + upper: { + areas: require('/assets/layers/upper_level_areas.geojson'), + labels: require('/assets/layers/upper_level_labels.geojson'), + amenities: require('/assets/layers/upper_level_amenities.geojson'), + flows: require('/assets/layers/upper_level_flows.geojson'), + pictograms: require('/assets/layers/upper_level_pictograms.geojson'), + outline: require('/assets/layers/upper_level_outline.geojson') + } +} + +// Then load them into OpenLayer VectorSources +// In OpenLayers, each layer is a combination of both a geometry source (the VectorSource) and other data (styles, etc.) +const LayerSources = {}; +Object.entries(LayerFiles).forEach(([floor, layers]) => { + LayerSources[floor] = {}; + Object.entries(layers).forEach(([layerName, layer]) => { + LayerSources[floor][layerName] = new VectorSource({ + url: layer, + format: new GeoJSON(), + }) + }) +}); + +// Defining reusable layer styles shared by all the layers of the same type (exhibition areas, amenity icons, etc.) +// They get used and assigned to particular layers in the next section, LayerSettings{} +const LayerStyles = { + // This is a hack to get around an issue with ol-layerswitcher: because our floor switcher "buttons" are actually + // checkboxes, it's possible to unselect ALL of them and be left with nothing visible on the map. + // In that case, this layer shows up and tells visitors to choose a floor. + WarningLayer: [ + new Style({ + fill: new Fill({ + color: 'white', + }), + // https://openlayers.org/en/latest/apidoc/module-ol_style_Text-Text.html + text: new Text({ + text: "Oops! You've unselected all the floors.\nPlease choose a floor to get back into the museum.\n\nPsst... did you know that TFM Members can go deep underground\n to see secret collections during Members' Nights?", + font: '10pt Graphik, sans-serif', + fill: new Fill({color: 'black'}), + overflow: false, + }), + }), + ], + + // When you zoom out far enough, we replace the museum internals with just our name and a message to zoom further in + ZoomedOutFootprint: [ + new Style({ + fill: new Fill({ + color: tfmColors['Field Blue'], + }), + stroke: new Stroke({ + color: tfmColors['Field Blue'], + width: 3, + }), + // https://openlayers.org/en/latest/apidoc/module-ol_style_Text-Text.html + text: new Text({ + text: "FIELD MUSEUM ", + font: 'bold 16pt Druk, sans-serif', + fill: new Fill({color: 'white'}), + overflow: false, + }), + }), + new Style({ + // https://openlayers.org/en/latest/apidoc/module-ol_style_Text-Text.html + text: new Text({ + text: "(zoom in) ", + offsetY: 15, + font: '8pt Graphik, sans-serif', + fill: new Fill({color: 'white'}), + overflow: false, + }), + }) + ], + + // Amenity icons + // `showAtFarZoom` is the list of amenity IDs (set in geoJSON) that will show up at the `far` zoom level + // Others show up at `medium` and in + // You can set zoom levels in the Reusable Settings section, near the top of this file + amenities: feature => { + const showAtFarZoom = ['elevator', 'stairs_up', 'stairs_up_down', 'stairs_down', 'restroom', 'restroom_male', 'restroom_female']; + const important = showAtFarZoom.includes(feature.get('type')); + if (!important && tfmView.getZoom() < tfmZooms.medium) return; + + return new Style({ + image: new Icon({ + src: tfmIcons[feature.get('type')], + color: 'white', + scale: important ? (tfmView.getZoom() < tfmZooms.close ? 0.05 : 0.01 / tfmView.getResolution()) : 0.01 / tfmView.getResolution(), + opacity: important ? 1 : (0.1 / tfmView.getResolution()) + 0.25 + + }), + }) + }, + + + // Animal glyphs (dinosaurs, lions, and birds, oh my) + pictograms: feature => { + const id = feature.getId(); + const coords = feature.getGeometry().getCoordinates(); + const deskew = angle => (angle + 0.95) * Math.PI / 180; // To account for Chicago skewing off true north + const directions = { + north: deskew(0), + east: deskew(90), + south: deskew(180), + west: deskew(270), + }; + + switch (id) { + + // North entrance + case 'north_entrance': + return new Style({ + geometry: new Point(coords), + image: new RegularShape({ + fill: new Fill({color: tfmColors["Field Gray"]}), + points: 3, + radius: 2 / tfmView.getResolution(), + angle: directions.north, + }), + + text: new Text({ + fill: new Fill({color: tfmColors["Field Gray"]}), + font: 1.5 / tfmView.getResolution() + 'pt Graphik, sans-serif', + text: 'Exit Only\n(Enter on ground Floor)', + offsetY: -5 / tfmView.getResolution(), + }) + + }) + + case 'south_entrance': + return new Style({ + geometry: new Point(coords), + image: new RegularShape({ + fill: new Fill({color: tfmColors["Field Gray"]}), + points: 3, + radius: 2 / tfmView.getResolution(), + angle: directions.south, + }), + + text: new Text({ + fill: new Fill({color: tfmColors["Field Gray"]}), + font: 1.5 / tfmView.getResolution() + 'pt Graphik, sans-serif', + text: 'Exit Only\n(Enter on ground Floor)', + offsetY: 5 / tfmView.getResolution(), + }) + + }) + + case 'east_entrance': + return new Style({ + geometry: new Point(coords), + image: new RegularShape({ + fill: new Fill({color: tfmColors["Field Blue"]}), + points: 3, + radius: 4 / tfmView.getResolution(), + angle: directions.west, + }), + + text: new Text({ + fill: new Fill({color: tfmColors["Field Blue"]}), + font: 'bold ' + 6 / tfmView.getResolution() + 'pt Graphik, sans-serif', + text: 'Entrance', + textAlign: 'right', + offsetX: -5 / tfmView.getResolution(), + }) + + }) + + default: + if (tfmView.getZoom() < tfmZooms.medium) return; + + return new Style({ + image: new Icon({ + src: tfmPictograms[id], + color: 'white', + scale: tfmView.getZoom() < tfmZooms.close ? 0.1 / tfmView.getResolution() : 0.68, + opacity: (0.1 / tfmView.getResolution()) + 0.25 + }), + }) + } + }, + // COVID one-way flow arrows + flows: feature => { + if (tfmView.getZoom() < tfmZooms.medium) return; + if (CMSData[feature.get('exhibition')].fields.closed === 'Closed' || CMSData[feature.get('exhibition')].fields.closed === 'Staff-Only') return; + const coords = feature.getGeometry().getCoordinates()[0]; // Returns an array of coordinate pairs + const endPoint = coords[coords.length - 1]; + const startPoint = coords[0]; + const secondToLastPoint = coords[coords.length - 2]; + + // Calculating a rotation angle from two coordinate pairs: + // https://gist.github.com/conorbuck/2606166 + const rotationAngle = Math.atan2(endPoint[0] - secondToLastPoint[0], endPoint[1] - secondToLastPoint[1]); + + let color; + try { + color = tfmColors[CMSData[feature.get('exhibition')].fields.color]; + } catch (e) { + if (window.tfmDebug) console.warn(`Flow for exhibition ${feature.get('exhibition')} has no color, falling back to red.`, e, feature); + color = tfmColors['Error Red']; + } + + return [ + new Style({ + stroke: new Stroke({ + color: 'white', + width: 3 / tfmView.getResolution(), + lineJoin: 'miter', + }) + }), + new Style({ + stroke: new Stroke({ + color: color, + width: 1.5 / tfmView.getResolution(), + lineJoin: 'miter', + }) + }), + new Style({ + geometry: new Point(startPoint), + image: new Circle({ + fill: new Fill({color: color}), + radius: 2 / tfmView.getResolution(), + }) + }), + new Style({ + geometry: new Point(endPoint), + image: new RegularShape({ + fill: new Fill({color: color}), + points: 3, + radius: 3 / tfmView.getResolution(), + angle: rotationAngle, + }) + }), + ]; + }, + + // Major exhibition labels + labels: feature => { + const labelData = CMSData[feature.getId()] ? CMSData[feature.getId()].fields : undefined; + if (!labelData) return; // Don't show this label unless it's explicitly added to our CMS + if (!labelData.closed || labelData.closed === 'Closed' || labelData.closed === 'Staff-Only') return; // Don't show if closed or if the field was never set + if (labelData.showAtZoomLevel === 'medium' && tfmView.getZoom() < tfmZooms.medium) return; // Don't show if below set zoom level + + const name = labelData.labelOverride ?? labelData.shortName; + let color = tfmColors[labelData.color] ?? tfmColors['Error Red']; // Fallback color + + /*// Fade out unselected labels for easier ID when one is clicked on + // TOOD: Fix bugginess + if (selectedFeature && selectedFeature.getId() !== feature.getId()) color = tfmColors['Field Gray Light']; + */ + const fontSize = tfmView.getZoom() < tfmZooms.close ? 10 : 1.5 / tfmView.getResolution(); + const labelWidth = tfmView.getZoom() < tfmZooms.close ? 20 : 3 / tfmView.getResolution(); + const labelHeight = tfmView.getZoom() < tfmZooms.close ? 8 : 1 / tfmView.getResolution(); + return new Style({ + // Text parameters: https://openlayers.org/en/latest/apidoc/module-ol_style_Text-Text.html + text: new Text({ + text: name + ' »', + font: 'bold ' + fontSize + 'pt Graphik, sans-serif', + textAlign: labelData.labelAlignment ?? 'center', + fill: new Fill({color: 'white'}), + backgroundFill: new Fill({color: color}), + padding: [labelHeight, labelWidth, labelHeight, labelWidth], + overflow: true, // Allow labels to exceed polygon width (or they'd just be hidden) + }), + }) + }, + Footprint: new Style({ + fill: new Fill({ + color: 'white', + }), + }), + outline: new Style({ + stroke: new Stroke({ + color: tfmColors["Field Gray"], + width: tfmStrokes.narrow, + }), + }), + + // Areas (exhibition, staff-only, etc.) + areas: feature => { + let closed = feature.get('closed') ?? 0; // By default, use the feature's geoJSON "closed" property, or 0 (open) as a fallback + + // But if this feature is in our CMS, use that instead + if (CMSData[feature.getId()]) { + switch (CMSData[feature.getId()].fields.closed) { + case 'Open': // Open to the public + closed = 0; + break; + case 'Staff-Only': // Always closed to the public (staff areas, etc.) + closed = 2; + break; + case 'Closed': // Temporarily closed due to COVID. We experimented with different styling but ultimately opted against it. + closed = 1; + break; + } + } + + switch (closed) { + /* + + // Diagonal gray stripes (not currently used) + // Previously used for areas temporarily closed due to COVID, but it became too visually confusing + // So we just mark all closed areas with the same solid gray + case 1: + return new Style({ + // https://viglino.github.io/ol-ext/doc/doc-pages/ol.style.FillPattern.html + fill: new FillPattern({ + pattern: 'hatch', + size: tfmStrokes.narrow, + angle: 45, + color: tfmColors["Field Gray Light"], + scale: 0.5, + }), + + stroke: new Stroke({ + color: tfmColors["Field Gray Light"], + width: tfmStrokes.narrow, + }), + }) + */ + // Solid gray (closed and staff areas) + case 1: + case 2: + return new Style({ + // https://viglino.github.io/ol-ext/doc/doc-pages/ol.style.FillPattern.html + fill: new Fill({ + color: tfmColors["Field Gray Light"], + }), + + stroke: new Stroke({ + color: tfmColors["Field Gray Light"], + width: tfmStrokes.narrow, + }), + /* + text: new Text({ + text: feature.get('label') ? (tfmView.getZoom() >= tfmZooms.close ? feature.get('label') + '\n(Closed)': null) : null, + font: (tfmView.getZoom() >= tfmZooms.close ? 1.2 / tfmView.getResolution() : 8) + 'pt Graphik, sans-serif', + fill: new Fill({ + color: tfmColors['Field Gray'], + }), + overflow: true, + offsetY: 50, + }), + */ + }) + + // Open (white background, gray label text if specified in the geoJSON) + default: + const color = CMSData[feature.getId()] ? tfmColors[CMSData[feature.getId()].fields.color] + '88' : 'white'; + + return new Style({ + stroke: new Stroke({ + color: tfmColors["Field Gray Light"], + width: tfmStrokes.narrow, + }), + + fill: new Fill({ + color: 'white', + }), + + text: new Text({ + text: feature.get('label') ? (tfmView.getZoom() >= tfmZooms.medium ? feature.get('label') : '') : null, + font: (tfmView.getZoom() >= tfmZooms.close ? 1.2 / tfmView.getResolution() : 8) + 'pt Graphik, sans-serif', + fill: new Fill({ + color: tfmColors['Field Gray'], + }), + overflow: true, + opacity: (0.1 / tfmView.getResolution()) + 0.25, + }), + }) + } + } +}; + +// Layer settings by layer type +// This is where we define the settings per layer type +const LayerSettings = { + labels: { + tfmClickable: true, + tfmLayerType: "label", + minZoom: tfmZooms.far, + updateWhileInteracting: true, + updateWhileAnimating: true, + style: feature => LayerStyles.labels(feature), + }, + pictograms: { + minZoom: tfmZooms.far, + tfmLayerType: "pictogram", + tfmClickable: true, + updateWhileInteracting: true, + updateWhileAnimating: true, + style: feature => LayerStyles.pictograms(feature), + }, + flows: { + minZoom: tfmZooms.far, + updateWhileInteracting: true, + updateWhileAnimating: true, + style: feature => LayerStyles.flows(feature), + }, + Footprint: { + minZoom: tfmZooms.far, + updateWhileInteracting: true, + updateWhileAnimating: true, + style: LayerStyles.Footprint + }, + areas: { + tfmClickable: true, + tfmLayerType: "area", + minZoom: tfmZooms.far, + updateWhileInteracting: true, + updateWhileAnimating: true, + style: feature => LayerStyles.areas(feature), + }, + outline: { + minZoom: tfmZooms.far, + updateWhileInteracting: true, + updateWhileAnimating: true, + style: LayerStyles.outline + }, + amenities: { + minZoom: tfmZooms.far, + updateWhileInteracting: true, + updateWhileAnimating: true, + style: feature => LayerStyles.amenities(feature) + }, +}; + +/* + This is where we actually initiate the layers, combining their sources and their settings (which also include their styles). + + A "floor" is a just a group of layers for a specific floor of the museum, but we group them for easy switching + Each floor should at least have a solid footprint and areas, otherwise the base layer (OSM/Google Maps) will show through + The other stuff (flows, labels, amenities, pictograms, etc.) are helpful for visitors but not strictly necessary if you want to disable them + + Once they are added here, they also automatically get added to the floor switcher based on `LayerGroups`. Setting a group's type to `base` will make them + mutually exclusive (only one base can be selected at a time). This behavior is due to change in a future version of `ol-layerswitcher`. +*/ +const Floors = { + upper: new LayerGroup({ + title: 'Upper
Level', + type: 'base', + layers: [ + new VectorLayer({source: LayerSources.upper.outline, ...LayerSettings.Footprint}), + new VectorLayer({source: LayerSources.upper.areas, ...LayerSettings.areas}), + new VectorLayer({source: LayerSources.upper.outline, ...LayerSettings.outline}), + new VectorLayer({source: LayerSources.upper.amenities, ...LayerSettings.amenities}), + new VectorLayer({source: LayerSources.upper.flows, ...LayerSettings.flows}), + new VectorLayer({source: LayerSources.upper.pictograms, ...LayerSettings.pictograms}), + new VectorLayer({source: LayerSources.upper.labels, ...LayerSettings.labels}), + ] + }), + + main: new LayerGroup({ + title: 'Main
Level', + type: 'base', + layers: [ + new VectorLayer({source: LayerSources.main.outline, ...LayerSettings.Footprint}), + new VectorLayer({source: LayerSources.main.areas, ...LayerSettings.areas}), + new VectorLayer({source: LayerSources.main.outline, ...LayerSettings.outline}), + new VectorLayer({source: LayerSources.main.amenities, ...LayerSettings.amenities}), + new VectorLayer({source: LayerSources.main.flows, ...LayerSettings.flows}), + new VectorLayer({source: LayerSources.main.pictograms, ...LayerSettings.pictograms}), + new VectorLayer({source: LayerSources.main.labels, ...LayerSettings.labels}), + ] + }), + + ground: new LayerGroup({ + title: 'Ground
Level', + type: 'base', + layers: [ + new VectorLayer({source: LayerSources.ground.outline, ...LayerSettings.Footprint}), + new VectorLayer({source: LayerSources.ground.areas, ...LayerSettings.areas}), + new VectorLayer({source: LayerSources.ground.outline, ...LayerSettings.outline}), + new VectorLayer({source: LayerSources.ground.amenities, ...LayerSettings.amenities}), + new VectorLayer({source: LayerSources.ground.flows, ...LayerSettings.flows}), + new VectorLayer({source: LayerSources.ground.pictograms, ...LayerSettings.pictograms}), + new VectorLayer({source: LayerSources.ground.labels, ...LayerSettings.labels}), + ] + }), +}; + +// Amenity icons +// Note that the "require" functionality here comes from Parcel. If you were using webpack or another bundler, you may have to change this. +const tfmIcons = { + atm: require('~/assets/icons/atm.svg'), + picnic_area: require('~/assets/icons/picnic_area.svg'), + elevator: require('~/assets/icons/elevator.svg'), + first_aid: require('~/assets/icons/first_aid.svg'), + guest_services: require('~/assets/icons/guest_services.svg'), + restaurant: require('~/assets/icons/restaurant.svg'), + restroom: require('~/assets/icons/restroom.svg'), + restroom_female: require('~/assets/icons/restroom_female.svg'), + restroom_male: require('~/assets/icons/restroom_male.svg'), + stairs_down: require('~/assets/icons/stairs_down.svg'), + stairs_up: require('~/assets/icons/stairs_up.svg'), + stairs_up_down: require('~/assets/icons/stairs_up_down.svg'), + store: require('~/assets/icons/store.svg'), + stroller: require('~/assets/icons/stroller.svg'), + wheelchair: require('~/assets/icons/wheelchair.svg') +}; + +// Pictograms (animals, dinosaurs, etc.) +// Note that the "require" functionality here comes from Parcel. If you were using webpack or another bundler, you may have to change this. +// For the open source release, we had to replace our pictogram assets with a placeholder SVG. That's what "example tardigrade" is. +const tfmPictograms = { + bird: require('~/assets/icons/tardigrade.svg'), + maximo: require('~/assets/icons/tardigrade.svg'), + lion: require('~/assets/icons/tardigrade.svg'), + totems: require('~/assets/icons/tardigrade.svg'), + elephant: require('~/assets/icons/tardigrade.svg'), + mask: require('~/assets/icons/tardigrade.svg'), + pawnee_lodge: require('~/assets/icons/tardigrade.svg'), + bushman: require('~/assets/icons/tardigrade.svg'), + sarcophagus: require('~/assets/icons/tardigrade.svg'), + sue: require('~/assets/icons/tardigrade.svg'), + trike: require('~/assets/icons/tardigrade.svg'), + stone_lion: require('~/assets/icons/tardigrade.svg'), + maori_house: require('~/assets/icons/tardigrade.svg'), +}; + +/*** SET UP THE VIEW AND MAP ***/ + +// Configure the starting view + +// Desktop starts zoomed out and centered +let startingCenter = [-9753489.474583665, 5140948.158950368]; +let startingZoom = tfmZooms.medium - 0.1; + +// Mobile view starts at east entrance +if (window.innerWidth < 568 +) { + startingCenter = [-9753360.67205395, 5140955.575372018] + startingZoom = tfmZooms.close - 0.7; +} + +// Create the view +const tfmView = new View({ + center: startingCenter, + zoom: startingZoom, + maxZoom: 27, + minZoom: 16, + constrainRotation: false, // Allow micro-adjusting the rotation so the museum doesn't look skewed + rotation: 0.95 * Math.PI / 180, // To account for slight skew of Chicago's grid, which is off true north + enableRotation: true, // Don't allow user to rotate map +}); + +// Create the map +const tfmMap = new Map({ + layers: [ + + // Exterior basemap + new TileLayer({ + source: new OSM({ + attributions: ['Built with OpenLayers and QGIS
Exterior map © OpenStreetMap contributors'], + }), + opacity: 0.25, + }), + // Warning/secret layer in case the floor picker accidentally unselects all floors + // This is necessary due to https://github.com/walkermatt/ol-layerswitcher/pull/360 + new VectorLayer({ + minZoom: tfmZooms.far, + source: LayerSources.upper.outline, + style: LayerStyles.WarningLayer, + updateWhileInteracting: true, + }), + // Simple museum outline for zoom levels <=16 + new VectorLayer({ + maxZoom: tfmZooms.far, + source: LayerSources.ground.outline, + updateWhileInteracting: true, + style: LayerStyles.ZoomedOutFootprint + }), + Floors.upper, + Floors.main, + Floors.ground + + ], + interactions: defaultInteractions({ + altShiftDragRotate: false, + pinchRotate: false, + doubleClickZoom: true + }), + target: 'map', + keyboardEventTarget: document, + view: tfmView, +}); + + +// Add layerswitcher controls +// https://github.com/walkermatt/ol-layerswitcher#api +// We use this as the floor switcher +let layerSwitcher = new LayerSwitcher( + { + reverse: false, + startActive: true, + activationMode: 'click', + groupSelectStyle: 'group', + } +); +tfmMap.addControl(layerSwitcher); +layerSwitcher.showPanel(); + + +// Once the map renders +tfmMap.once('rendercomplete', function (event) { + zoomToHash(); // Go to the area specified in the URL, if any + + // Preload sidebar images + Object.entries(CMSData).forEach(([k, v]) => { + if (v.fields && v.fields.imageUrl) { + const thumbnailUrl = shrinkImage(v.fields.imageUrl); + preloadImage(thumbnailUrl); + } + }); + + tfmMap.renderSync(); // Redraw the map + +}); + +window.addEventListener('hashchange', zoomToHash); // If someone manually types in a new hash with the map open + +/*** CLICK HANDLER ***/ +// We use map.onClick instead of OL's selection event because this seems more reliable... the selection event +// doesn't always catch clicks outside of features, so closing the sidebar becomes hard +tfmMap.on('click', e => { + if (window.tfmDebug) console.log('Click event:', e); + let counter = 0; // Ideally we want to find one feature only, not zero or more than one, but there isn't a forFirstFeatureAtPixel event + + tfmMap.forEachFeatureAtPixel(e.pixel, (feature, layer) => { + if (counter > 0) return; // We only want the first feature, not all the ones beneath it + counter++; + + // If nothing was clicked on, close the sidebar and return + if ((!feature && !layer) || !feature.getId() || !CMSData[feature.getId()]) { + closeSidebar(); + return; + } + + // Setup + const currentLevel = Floors.upper.getVisible() ? 'upper' : Floors.main.getVisible() ? 'main' : Floors.ground.getVisible() ? 'ground' : null; + const tfmLayerType = layer.get('tfmLayerType'); + const id = feature.getId(); + const data = CMSData[id] ? CMSData[id].fields : null; + + // Debug info + if (window.tfmDebug) { + console.log(`Clicked on feature "${feature.getId()}", data:`, data); + console.log(`Located in layer (type: ${tfmLayerType ?? undefined}):`, layer); + } + + // Do different things depending on the layer type that was clicked on. + // tfmLayerType is a custom parameter we set to each layer in LayerSettings{} + switch (tfmLayerType) { + // Exhibitions and other areas + case 'area': + + + // Closed areas should not be clickable + if (data && (data.closed === 'Closed' || data.closed === 'Staff-Only')) return; // Check CMS first + else if (feature.get('closed') > 0) return; + + // Only focus if it's in our CMS (i.e. has content added by an editor) + if (data) { + zoomToFeature(feature, currentLevel); + setHash(currentLevel, id); + } + break; + + case 'label': + + // Try to find a matching pictogram on this floor, with Contentful data too + if (LayerSources[currentLevel].pictograms.getFeatureById(id) && data) { + zoomToFeature(LayerSources[currentLevel].pictograms.getFeatureById(id)); + setHash(currentLevel, id); + } + + // Otherwise, assume it's an area + else { + zoomToFeature(LayerSources[currentLevel].areas.getFeatureById(id), currentLevel); + setHash(currentLevel, id) + } + break; + + case 'pictogram': + // Closed areas should not be clickable + if (data && (data.closed === 'Closed' || data.closed === 'Staff-Only')) return; + + if (id && data) { + zoomToFeature(feature); + setHash(currentLevel, id); + } + break; + } + + + }, { + layerFilter: layer => { + return layer.get('tfmClickable'); + }, + }); + + if (!counter) closeSidebar(); // If no features were detected at all + +}) + +/*** KEYBOARD SHORTCUTS ***/ +document.onkeydown = function (evt) { + evt = evt || window.event; // janky polyfill + + switch (evt.key) { + case "Escape": + case "Esc": + closeSidebar(); + break; + + case "1": + closeSidebar(); + switchFloors('ground'); + fitFloor('ground'); + break; + + case "2": + closeSidebar(); + switchFloors('main'); + fitFloor('main'); + + break; + + case "3": + closeSidebar(); + switchFloors('upper'); + fitFloor('upper'); + + break; + + // By default, OpenLayers only uses the + sign for zooming. This code makes the = sign also emulate + // that behavior so you don't have to hold down the shift key + case "=": + tfmView.animate({zoom: tfmView.getZoom() + 1, duration: 100}); + break; + + case "0": + closeSidebar(); + break; + + } + +}; + +/*** DEBUG HELPERS ***/ +// For easier debugging inside the console +if (window.tfmDebug) { + window.tfmMap = tfmMap; + window.tfmView = tfmView; + window.contentfulData = CMSData; +} + +/*** HELPER FUNCTIONS ***/ +// Zoom to a specified feature (usually an area or pictogram) +// In the case of areas, also highlight them with a different color, basically a desaturated version of its specified color +let lastZoomedFeature; + +function zoomToFeature(feature, currentLevel = null) { + const id = feature.getId(); + const geometry = feature.getGeometry(); + const data = CMSData[id]; + + resetHighlight(); + + // Map padding + let myPadding = [20, 400, 20, 20]; + let myZoom = tfmZooms.close; + + // For smaller devices + if (window.innerWidth <= 500) { + myZoom = tfmZooms.medium; + // Set the bottom padding so the popup doesn't hide the exhibition + myPadding = [10, 10, window.innerHeight * .7 + 10, 10]; // Equal to the sidebar.open height (in vh units) in index.css, line 236 or so + } + + // If there's an area with a matching ID, highlight it + // We have to do this search because OpenLayers doesn't have an easy way to return a layer from a feature + if (currentLevel && LayerSources[currentLevel].areas.getFeatureById(id)) { + + // Highlight areas with a lighter version of its color + if (!data) return; + if (!data.fields.color) data.fields.color = "Error Red"; // Set default color + feature.setStyle( + new Style({ + fill: new Fill({ + color: tfmColors[data.fields.color] + '88', // Approx 50% opacity (last two digits of hex code specify opacity) + }), + /* text: new Text({ + text: selectedFeature.get('label') ? (tfmView.getZoom() >= tfmZooms.medium ? selectedFeature.get('label') : '') : null, + font: "bold 10pt Graphik, sans-serif", + fill: new Fill({ + color: 'white', + }), + overflow: true, + opacity: (0.1 / tfmView.getResolution()) + 0.25, + }), + */ + }) + ); + } + + // Zoom to fit the feature + tfmView.fit(geometry, {maxZoom: myZoom, duration: 500, padding: myPadding}) + + createSidebar(data); + openSidebar(); + + lastZoomedFeature = feature; +} + +// Create/re-create the sidebar with CMS data for a given POI +// Does NOT open it. +function createSidebar(poi) { + + // Don't open the sidebar if this is invalid + if (!poi || !poi.fields) { + if (window.tfmDebug) console.warn('Invalid POI for sidebar creation. POI should be a Contentful API entry.', poi); + return false; + } + + // Resize image + const imageURL = shrinkImage(poi.fields.imageUrl) ?? null; + + let sidebarText = ""; + sidebarText += "