Agriculture-front-end/public/libs/openlayers/6.14.1/ol.js.map

9328 lines
2.0 MiB
Plaintext
Raw Normal View History

2023-06-22 06:50:23 +08:00
{
"version": 3,
"file": "ol.js",
"mappings": ";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAY,GAAID,IAEhBD,EAAS,GAAIC,IARf,CASGK,MAAM,WACT,sBCVIC,uBCCJL,EAAQM,KAAO,SAAUC,EAAQC,EAAQC,EAAMC,EAAMC,GACnD,IAAIC,EAAGC,EACHC,EAAiB,EAATH,EAAcD,EAAO,EAC7BK,GAAQ,GAAKD,GAAQ,EACrBE,EAAQD,GAAQ,EAChBE,GAAS,EACTC,EAAIT,EAAQE,EAAS,EAAK,EAC1BQ,EAAIV,GAAQ,EAAI,EAChBW,EAAIb,EAAOC,EAASU,GAOxB,IALAA,GAAKC,EAELP,EAAIQ,GAAM,IAAOH,GAAU,EAC3BG,KAAQH,EACRA,GAASH,EACFG,EAAQ,EAAGL,EAAS,IAAJA,EAAWL,EAAOC,EAASU,GAAIA,GAAKC,EAAGF,GAAS,GAKvE,IAHAJ,EAAID,GAAM,IAAOK,GAAU,EAC3BL,KAAQK,EACRA,GAASP,EACFO,EAAQ,EAAGJ,EAAS,IAAJA,EAAWN,EAAOC,EAASU,GAAIA,GAAKC,EAAGF,GAAS,GAEvE,GAAU,IAANL,EACFA,EAAI,EAAII,MACH,IAAIJ,IAAMG,EACf,OAAOF,EAAIQ,IAAsBC,EAAAA,GAAdF,GAAK,EAAI,GAE5BP,GAAQU,KAAKC,IAAI,EAAGd,GACpBE,GAAQI,EAEV,OAAQI,GAAK,EAAI,GAAKP,EAAIU,KAAKC,IAAI,EAAGZ,EAAIF,IAG5CV,EAAQyB,MAAQ,SAAUlB,EAAQmB,EAAOlB,EAAQC,EAAMC,EAAMC,GAC3D,IAAIC,EAAGC,EAAGc,EACNb,EAAiB,EAATH,EAAcD,EAAO,EAC7BK,GAAQ,GAAKD,GAAQ,EACrBE,EAAQD,GAAQ,EAChBa,EAAe,KAATlB,EAAca,KAAKC,IAAI,GAAI,IAAMD,KAAKC,IAAI,GAAI,IAAM,EAC1DN,EAAIT,EAAO,EAAKE,EAAS,EACzBQ,EAAIV,EAAO,GAAK,EAChBW,EAAIM,EAAQ,GAAgB,IAAVA,GAAe,EAAIA,EAAQ,EAAK,EAAI,EAmC1D,IAjCAA,EAAQH,KAAKM,IAAIH,GAEbI,MAAMJ,IAAUA,IAAUJ,EAAAA,GAC5BT,EAAIiB,MAAMJ,GAAS,EAAI,EACvBd,EAAIG,IAEJH,EAAIW,KAAKQ,MAAMR,KAAKS,IAAIN,GAASH,KAAKU,KAClCP,GAASC,EAAIJ,KAAKC,IAAI,GAAIZ,IAAM,IAClCA,IACAe,GAAK,IAGLD,GADEd,EAAII,GAAS,EACNY,EAAKD,EAELC,EAAKL,KAAKC,IAAI,EAAG,EAAIR,IAEpBW,GAAK,IACff,IACAe,GAAK,GAGHf,EAAII,GAASD,GACfF,EAAI,EACJD,EAAIG,GACKH,EAAII,GAAS,GACtBH,GAAMa,EAAQC,EAAK,GAAKJ,KAAKC,IAAI,EAAGd,GACpCE,GAAQI,IAERH,EAAIa,EAAQH,KAAKC,IAAI,EAAGR,EAAQ,GAAKO,KAAKC,IAAI,EAAGd,GACjDE,EAAI,IAIDF,GAAQ,EAAGH,EAAOC,EAASU,GAAS,IAAJL,EAAUK,GAAKC,EAAGN,GAAK,IAAKH,GAAQ,GAI3E,IAFAE,EAAKA,GAAKF,EAAQG,EAClBC,GAAQJ,EACDI,EAAO,EAAGP,EAAOC,EAASU,GAAS,IAAJN,EAAUM,GAAKC,EAAGP,GAAK,IAAKE,GAAQ,GAE1EP,EAAOC,EAASU,EAAIC,IAAU,IAAJC,qZChF5B,IAAMc,EAAUC,EAAQ,KAElBC,EAAMC,OAAO,OACbC,EAASD,OAAO,UAChBE,EAAoBF,OAAO,oBAC3BG,EAAcH,OAAO,cACrBI,EAAUJ,OAAO,UACjBK,EAAUL,OAAO,WACjBM,EAAoBN,OAAO,kBAC3BO,EAAWP,OAAO,WAClBQ,EAAQR,OAAO,SACfS,EAAoBT,OAAO,kBAE3BU,EAAc,kBAAM,GAUpBC,EAAAA,WACJ,WAAaC,GAOX,GAPoB,UACG,iBAAZA,IACTA,EAAU,CAAEC,IAAKD,IAEdA,IACHA,EAAU,IAERA,EAAQC,MAA+B,iBAAhBD,EAAQC,KAAoBD,EAAQC,IAAM,GACnE,MAAM,IAAIC,UAAU,qCAEVC,KAAKhB,GAAOa,EAAQC,KAAO5B,EAAAA,EAAvC,IAEM+B,EAAKJ,EAAQK,QAAUP,EAG7B,GAFAK,KAAKb,GAAoC,mBAAPc,EAAqBN,EAAcM,EACrED,KAAKZ,GAAeS,EAAQM,QAAS,EACjCN,EAAQO,QAAoC,iBAAnBP,EAAQO,OACnC,MAAM,IAAIL,UAAU,2BACtBC,KAAKX,GAAWQ,EAAQO,QAAU,EAClCJ,KAAKV,GAAWO,EAAQQ,QACxBL,KAAKT,GAAqBM,EAAQS,iBAAkB,EACpDN,KAAKN,GAAqBG,EAAQU,iBAAkB,EACpDP,KAAKQ,mCAWP,WACE,OAAOR,KAAKhB,QARd,SAASyB,GACP,GAAkB,iBAAPA,GAAmBA,EAAK,EACjC,MAAM,IAAIV,UAAU,qCAEtBC,KAAKhB,GAAOyB,GAAMvC,EAAAA,EAClBwC,EAAKV,8BASP,WACE,OAAOA,KAAKZ,QAJd,SAAgBuB,GACdX,KAAKZ,KAAiBuB,sBAaxB,WACE,OAAOX,KAAKX,QARd,SAAYuB,GACV,GAAkB,iBAAPA,EACT,MAAM,IAAIb,UAAU,wCAEtBC,KAAKX,GAAWuB,EAChBF,EAAKV,oCAqBP,WAA0B,OAAOA,KAAKb,QAdtC,SAAsB0B,GAAI,WACN,mBAAPA,IACTA,EAAKlB,GAEHkB,IAAOb,KAAKb,KACda,KAAKb,GAAqB0B,EAC1Bb,KAAKd,GAAU,EACfc,KAAKR,GAAUsB,SAAQ,SAAAC,GACrBA,EAAIb,OAAS,EAAKf,GAAmB4B,EAAIzC,MAAOyC,EAAIC,KACpD,EAAK9B,IAAW6B,EAAIb,WAGxBQ,EAAKV,0BAIP,WAAgB,OAAOA,KAAKd,0BAC5B,WAAmB,OAAOc,KAAKR,GAAUU,+BAEzC,SAAUe,EAAIC,GACZA,EAAQA,GAASlB,KACjB,IAAK,IAAImB,EAASnB,KAAKR,GAAU4B,KAAiB,OAAXD,GAAkB,CACvD,IAAME,EAAOF,EAAOE,KACpBC,EAAYtB,KAAMiB,EAAIE,EAAQD,GAC9BC,EAASE,0BAIb,SAASJ,EAAIC,GACXA,EAAQA,GAASlB,KACjB,IAAK,IAAImB,EAASnB,KAAKR,GAAU+B,KAAiB,OAAXJ,GAAkB,CACvD,IAAMK,EAAOL,EAAOK,KACpBF,EAAYtB,KAAMiB,EAAIE,EAAQD,GAC9BC,EAASK,uBAIb,WACE,OAAOxB,KAAKR,GAAUiC,UAAUC,KAAI,SAAAC,GAAC,OAAIA,EAAEX,6BAG7C,WACE,OAAOhB,KAAKR,GAAUiC,UAAUC,KAAI,SAAAC,GAAC,OAAIA,EAAErD,8BAG7C,WAAS,WACH0B,KAAKV,IACLU,KAAKR,IACLQ,KAAKR,GAAUU,QACjBF,KAAKR,GAAUsB,SAAQ,SAAAC,GAAG,OAAI,EAAKzB,GAASyB,EAAIC,IAAKD,EAAIzC,UAG3D0B,KAAKP,GAAS,IAAImC,IAClB5B,KAAKR,GAAY,IAAIV,EACrBkB,KAAKd,GAAU,sBAGjB,WAAQ,WACN,OAAOc,KAAKR,GAAUkC,KAAI,SAAAX,GAAG,OAC3Bc,EAAQ,EAAMd,IAAe,CAC3BY,EAAGZ,EAAIC,IACPc,EAAGf,EAAIzC,MACPd,EAAGuD,EAAIgB,KAAOhB,EAAIX,QAAU,OAC3BqB,UAAUO,QAAO,
"sources": [
"webpack://ol/webpack/universalModuleDefinition",
"webpack://ol/webpack/runtime/load script",
"webpack://ol/./node_modules/ieee754/index.js",
"webpack://ol/./node_modules/lru-cache/index.js",
"webpack://ol/./node_modules/mapbox-to-css-font/index.js",
"webpack://ol/./node_modules/pbf/index.js",
"webpack://ol/./node_modules/rbush/rbush.min.js",
"webpack://ol/./node_modules/regenerator-runtime/runtime.js",
"webpack://ol/./node_modules/webfont-matcher/lib/fonts/google.js",
"webpack://ol/./node_modules/xml-utils/find-tag-by-name.js",
"webpack://ol/./node_modules/xml-utils/find-tags-by-name.js",
"webpack://ol/./node_modules/xml-utils/get-attribute.js",
"webpack://ol/./node_modules/xml-utils/index-of-match.js",
"webpack://ol/./node_modules/yallist/iterator.js",
"webpack://ol/./node_modules/yallist/yallist.js",
"webpack://ol/src/util.js",
"webpack://ol/src/AssertionError.js",
"webpack://ol/../src/events/Event.js",
"webpack://ol/src/ObjectEventType.js",
"webpack://ol/src/Disposable.js",
"webpack://ol/src/array.js",
"webpack://ol/src/functions.js",
"webpack://ol/src/obj.js",
"webpack://ol/../src/events/Target.js",
"webpack://ol/../src/events/EventType.js",
"webpack://ol/src/events.js",
"webpack://ol/src/Observable.js",
"webpack://ol/src/Object.js",
"webpack://ol/src/CollectionEventType.js",
"webpack://ol/src/Collection.js",
"webpack://ol/src/TileState.js",
"webpack://ol/src/easing.js",
"webpack://ol/src/Tile.js",
"webpack://ol/src/DataTile.js",
"webpack://ol/src/asserts.js",
"webpack://ol/src/Feature.js",
"webpack://ol/../src/geom/GeometryLayout.js",
"webpack://ol/../src/geom/GeometryType.js",
"webpack://ol/../src/proj/Units.js",
"webpack://ol/src/transform.js",
"webpack://ol/src/has.js",
"webpack://ol/../src/extent/Corner.js",
"webpack://ol/../src/extent/Relationship.js",
"webpack://ol/src/extent.js",
"webpack://ol/../src/proj/Projection.js",
"webpack://ol/src/math.js",
"webpack://ol/../src/proj/epsg3857.js",
"webpack://ol/../src/proj/epsg4326.js",
"webpack://ol/../src/proj/projections.js",
"webpack://ol/../src/proj/transforms.js",
"webpack://ol/src/string.js",
"webpack://ol/src/coordinate.js",
"webpack://ol/src/sphere.js",
"webpack://ol/src/proj.js",
"webpack://ol/../../src/geom/flat/transform.js",
"webpack://ol/../src/geom/Geometry.js",
"webpack://ol/../src/geom/SimpleGeometry.js",
"webpack://ol/../../src/geom/flat/closest.js",
"webpack://ol/../../src/geom/flat/deflate.js",
"webpack://ol/../../src/geom/flat/simplify.js",
"webpack://ol/../../src/geom/flat/inflate.js",
"webpack://ol/../../src/geom/flat/area.js",
"webpack://ol/../src/geom/LinearRing.js",
"webpack://ol/../src/geom/Point.js",
"webpack://ol/../../src/geom/flat/contains.js",
"webpack://ol/../../src/geom/flat/interiorpoint.js",
"webpack://ol/../../src/geom/flat/segments.js",
"webpack://ol/../../src/geom/flat/intersectsextent.js",
"webpack://ol/../../src/geom/flat/reverse.js",
"webpack://ol/../../src/geom/flat/orient.js",
"webpack://ol/../src/geom/Polygon.js",
"webpack://ol/src/Geolocation.js",
"webpack://ol/src/ImageBase.js",
"webpack://ol/src/ImageState.js",
"webpack://ol/src/Image.js",
"webpack://ol/src/ImageCanvas.js",
"webpack://ol/src/dom.js",
"webpack://ol/src/ImageTile.js",
"webpack://ol/src/Kinetic.js",
"webpack://ol/src/color.js",
"webpack://ol/../src/style/IconImageCache.js",
"webpack://ol/../src/layer/Property.js",
"webpack://ol/../src/layer/Base.js",
"webpack://ol/../src/render/EventType.js",
"webpack://ol/../src/source/State.js",
"webpack://ol/../src/layer/Layer.js",
"webpack://ol/../src/renderer/Map.js",
"webpack://ol/../src/render/Event.js",
"webpack://ol/src/css.js",
"webpack://ol/../src/render/canvas.js",
"webpack://ol/../src/renderer/Composite.js",
"webpack://ol/../src/layer/Group.js",
"webpack://ol/src/MapEvent.js",
"webpack://ol/src/MapBrowserEvent.js",
"webpack://ol/src/MapBrowserEventType.js",
"webpack://ol/../src/pointer/EventType.js",
"webpack://ol/src/MapBrowserEventHandler.js",
"webpack://ol/src/MapEventType.js",
"webpack://ol/src/MapProperty.js",
"webpack://ol/../src/structs/PriorityQueue.js",
"webpack://ol/src/TileQueue.js",
"webpack://ol/src/ViewHint.js",
"webpack://ol/src/ViewProperty.js",
"webpack://ol/../src/tilegrid/common.js",
"webpack://ol/src/centerconstraint.js",
"webpack://ol/src/resolutionconstraint.js",
"webpack://ol/src/rotationconstraint.js",
"webpack://ol/src/View.js",
"webpack://ol/src/size.js",
"webpack://ol/src/PluggableMap.js",
"webpack://ol/../src/control/Control.js",
"webpack://ol/../src/control/Attribution.js",
"webpack://ol/../src/control/Rotate.js",
"webpack://ol/../src/control/Zoom.js",
"webpack://ol/src/control.js",
"webpack://ol/../src/interaction/Property.js",
"webpack://ol/../src/interaction/Interaction.js",
"webpack://ol/../src/interaction/DoubleClickZoom.js",
"webpack://ol/../src/interaction/Pointer.js",
"webpack://ol/../src/events/condition.js",
"webpack://ol/../src/interaction/DragPan.js",
"webpack://ol/../src/interaction/DragRotate.js",
"webpack://ol/../src/render/Box.js",
"webpack://ol/../src/interaction/DragBox.js",
"webpack://ol/../src/interaction/DragZoom.js",
"webpack://ol/../src/events/KeyCode.js",
"webpack://ol/../src/interaction/KeyboardPan.js",
"webpack://ol/../src/interaction/KeyboardZoom.js",
"webpack://ol/../src/interaction/MouseWheelZoom.js",
"webpack://ol/../src/interaction/PinchRotate.js",
"webpack://ol/../src/interaction/PinchZoom.js",
"webpack://ol/src/interaction.js",
"webpack://ol/src/Map.js",
"webpack://ol/src/OverlayPositioning.js",
"webpack://ol/src/Overlay.js",
"webpack://ol/../src/structs/LRUCache.js",
"webpack://ol/src/tilecoord.js",
"webpack://ol/src/TileCache.js",
"webpack://ol/src/TileRange.js",
"webpack://ol/src/VectorRenderTile.js",
"webpack://ol/src/VectorTile.js",
"webpack://ol/src/colorlike.js",
"webpack://ol/../src/format/FormatType.js",
"webpack://ol/src/featureloader.js",
"webpack://ol/src/loadingstrategy.js",
"webpack://ol/src/net.js",
"webpack://ol/../src/render/VectorContext.js",
"webpack://ol/../../src/render/canvas/Immediate.js",
"webpack://ol/../../src/render/canvas/BuilderType.js",
"webpack://ol/../src/renderer/vector.js",
"webpack://ol/src/render.js",
"webpack://ol/../../src/renderer/canvas/common.js",
"webpack://ol/src/reproj.js",
"webpack://ol/../src/tilegrid/TileGrid.js",
"webpack://ol/src/tilegrid.js",
"webpack://ol/src/tileurlfunction.js",
"webpack://ol/src/uri.js",
"webpack://ol/src/webgl.js",
"webpack://ol/src/xml.js",
"webpack://ol/../src/webgl/Buffer.js",
"webpack://ol/../src/webgl/ContextEventType.js",
"webpack://ol/../src/webgl/PostProcessingPass.js",
"webpack://ol/../src/vec/mat4.js",
"webpack://ol/../src/webgl/Helper.js",
"webpack://ol/../src/webgl/PaletteTexture.js",
"webpack://ol/../src/webgl/RenderTarget.js",
"webpack://ol/../src/reproj/common.js",
"webpack://ol/../src/reproj/Triangulation.js",
"webpack://ol/../src/reproj/Tile.js",
"webpack://ol/../src/webgl/TileTexture.js",
"webpack://ol/../src/renderer/Layer.js",
"webpack://ol/../../src/renderer/webgl/Layer.js",
"webpack://ol/../../src/renderer/webgl/TileLayer.js",
"webpack://ol/../src/style/expressions.js",
"webpack://ol/../src/webgl/ShaderBuilder.js",
"webpack://ol/../src/tilegrid/WMTS.js",
"webpack://ol/../src/style/Image.js",
"webpack://ol/../src/style/RegularShape.js",
"webpack://ol/../src/style/Circle.js",
"webpack://ol/../src/style/Fill.js",
"webpack://ol/../src/style/IconAnchorUnits.js",
"webpack://ol/../src/style/IconOrigin.js",
"webpack://ol/../src/style/IconImage.js",
"webpack://ol/../src/style/Icon.js",
"webpack://ol/../src/style/Stroke.js",
"webpack://ol/../src/style/Style.js",
"webpack://ol/../src/style/TextPlacement.js",
"webpack://ol/../src/style/Text.js",
"webpack://ol/../src/structs/LinkedList.js",
"webpack://ol/../src/structs/RBush.js",
"webpack://ol/../src/source/TileEventType.js",
"webpack://ol/../src/source/Source.js",
"webpack://ol/../src/source/Tile.js",
"webpack://ol/../src/source/UrlTile.js",
"webpack://ol/../src/source/TileImage.js",
"webpack://ol/../src/source/BingMaps.js",
"webpack://ol/./node_modules/@petamoriken/float16/src/helper/converter.mjs",
"webpack://ol/../src/source/XYZ.js",
"webpack://ol/../src/source/CartoDB.js",
"webpack://ol/../src/source/VectorEventType.js",
"webpack://ol/../src/source/Vector.js",
"webpack://ol/../src/source/Cluster.js",
"webpack://ol/../src/source/DataTile.js",
"webpack://ol/./node_modules/@petamoriken/float16/src/helper/is.mjs",
"webpack://ol/./node_modules/@petamoriken/float16/src/DataView.mjs",
"webpack://ol/./node_modules/geotiff/dist-module/rgb.js",
"webpack://ol/./node_modules/geotiff/dist-module/compression/index.js",
"webpack://ol/./node_modules/geotiff/dist-module/resample.js",
"webpack://ol/./node_modules/geotiff/dist-module/geotiffimage.js",
"webpack://ol/./node_modules/geotiff/dist-module/dataview64.js",
"webpack://ol/./node_modules/geotiff/dist-module/dataslice.js",
"webpack://ol/./node_modules/geotiff/dist-module/source/httputils.js",
"webpack://ol/./node_modules/geotiff/dist-module/source/basesource.js",
"webpack://ol/./node_modules/geotiff/dist-module/utils.js",
"webpack://ol/./node_modules/geotiff/dist-module/source/blockedsource.js",
"webpack://ol/./node_modules/geotiff/dist-module/source/client/base.js",
"webpack://ol/./node_modules/geotiff/dist-module/source/client/fetch.js",
"webpack://ol/./node_modules/geotiff/dist-module/source/client/xhr.js",
"webpack://ol/./node_modules/geotiff/dist-module/source/client/http.js",
"webpack://ol/./node_modules/geotiff/dist-module/source/remote.js",
"webpack://ol/./node_modules/geotiff/dist-module/geotiff.js",
"webpack://ol/./node_modules/geotiff/dist-module/pool.js",
"webpack://ol/../src/source/GeoTIFF.js",
"webpack://ol/../src/source/Zoomify.js",
"webpack://ol/../src/format/IIIFInfo.js",
"webpack://ol/../src/source/IIIF.js",
"webpack://ol/../src/reproj/Image.js",
"webpack://ol/../src/source/Image.js",
"webpack://ol/../src/source/ImageArcGISRest.js",
"webpack://ol/../src/source/ImageCanvas.js",
"webpack://ol/../src/source/ImageMapGuide.js",
"webpack://ol/../src/source/ImageStatic.js",
"webpack://ol/../src/source/common.js",
"webpack://ol/../src/source/WMSServerType.js",
"webpack://ol/../src/source/ImageWMS.js",
"webpack://ol/../src/source/ogcTileUtil.js",
"webpack://ol/../src/source/OGCMapTile.js",
"webpack://ol/../src/source/VectorTile.js",
"webpack://ol/../src/source/OGCVectorTile.js",
"webpack://ol/../src/source/OSM.js",
"webpack://ol/../src/layer/BaseImage.js",
"webpack://ol/../../src/renderer/canvas/Layer.js",
"webpack://ol/../src/source/Raster.js",
"webpack://ol/../../src/renderer/canvas/ImageLayer.js",
"webpack://ol/../src/layer/Image.js",
"webpack://ol/../src/layer/TileProperty.js",
"webpack://ol/../src/layer/BaseTile.js",
"webpack://ol/../../src/renderer/canvas/TileLayer.js",
"webpack://ol/../src/layer/Tile.js",
"webpack://ol/../src/source/Stamen.js",
"webpack://ol/../src/source/TileArcGISRest.js",
"webpack://ol/../src/source/TileDebug.js",
"webpack://ol/../src/source/TileJSON.js",
"webpack://ol/../src/source/TileWMS.js",
"webpack://ol/../src/source/UTFGrid.js",
"webpack://ol/../src/source/WMTSRequestEncoding.js",
"webpack://ol/../src/source/WMTS.js",
"webpack://ol/../src/layer/BaseVector.js",
"webpack://ol/../../src/renderer/webgl/PointsLayer.js",
"webpack://ol/../src/worker/webgl.js",
"webpack://ol/../../src/render/canvas/Instruction.js",
"webpack://ol/../../src/render/canvas/Builder.js",
"webpack://ol/../../src/render/canvas/ImageBuilder.js",
"webpack://ol/../../src/render/canvas/LineStringBuilder.js",
"webpack://ol/../../src/render/canvas/PolygonBuilder.js",
"webpack://ol/../../src/geom/flat/straightchunk.js",
"webpack://ol/../../src/render/canvas/TextBuilder.js",
"webpack://ol/../../src/render/canvas/BuilderGroup.js",
"webpack://ol/../../src/geom/flat/textpath.js",
"webpack://ol/../../src/geom/flat/length.js",
"webpack://ol/../../src/render/canvas/Executor.js",
"webpack://ol/../../src/render/canvas/ExecutorGroup.js",
"webpack://ol/../../src/render/canvas/hitdetect.js",
"webpack://ol/../../src/renderer/canvas/VectorLayer.js",
"webpack://ol/../../src/renderer/canvas/VectorImageLayer.js",
"webpack://ol/../src/layer/VectorTileRenderType.js",
"webpack://ol/../../src/renderer/canvas/VectorTileLayer.js",
"webpack://ol/../src/geom/MultiPoint.js",
"webpack://ol/../../src/geom/flat/interpolate.js",
"webpack://ol/../src/geom/LineString.js",
"webpack://ol/../src/geom/MultiLineString.js",
"webpack://ol/../../src/geom/flat/center.js",
"webpack://ol/../src/geom/MultiPolygon.js",
"webpack://ol/../src/render/Feature.js",
"webpack://ol/../src/layer/Vector.js",
"webpack://ol/../../src/geom/flat/geodesic.js",
"webpack://ol/../src/layer/Graticule.js",
"webpack://ol/../src/layer/Heatmap.js",
"webpack://ol/../src/format/Feature.js",
"webpack://ol/../src/format/MVT.js",
"webpack://ol/../src/layer/VectorTile.js",
"webpack://ol/../src/geom/GeometryCollection.js",
"webpack://ol/../src/format/JSONFeature.js",
"webpack://ol/../src/format/GeoJSON.js",
"webpack://ol/../../../node_modules/url/node_modules/punycode/punycode.js",
"webpack://ol/../../../node_modules/url/util.js",
"webpack://ol/../../../node_modules/querystring/decode.js",
"webpack://ol/../../../node_modules/querystring/encode.js",
"webpack://ol/../../../node_modules/querystring/index.js",
"webpack://ol/../../../node_modules/url/url.js",
"webpack://ol/../util/extend.js",
"webpack://ol/../expression/parsing_error.js",
"webpack://ol/../expression/scope.js",
"webpack://ol/../expression/types.js",
"webpack://ol/../../../node_modules/csscolorparser/csscolorparser.js",
"webpack://ol/../util/color.js",
"webpack://ol/../expression/types/collator.js",
"webpack://ol/../expression/types/formatted.js",
"webpack://ol/../expression/types/resolved_image.js",
"webpack://ol/../expression/values.js",
"webpack://ol/../expression/definitions/literal.js",
"webpack://ol/../expression/runtime_error.js",
"webpack://ol/../expression/definitions/assertion.js",
"webpack://ol/../expression/definitions/format.js",
"webpack://ol/../expression/definitions/image.js",
"webpack://ol/../expression/definitions/coercion.js",
"webpack://ol/../expression/evaluation_context.js",
"webpack://ol/../expression/compound_expression.js",
"webpack://ol/../expression/definitions/collator.js",
"webpack://ol/../expression/definitions/within.js",
"webpack://ol/../expression/is_constant.js",
"webpack://ol/../expression/definitions/var.js",
"webpack://ol/../expression/parsing_context.js",
"webpack://ol/../expression/stops.js",
"webpack://ol/../expression/definitions/step.js",
"webpack://ol/../../../node_modules/@mapbox/unitbezier/index.js",
"webpack://ol/../util/interpolate.js",
"webpack://ol/../util/color_spaces.js",
"webpack://ol/../expression/definitions/interpolate.js",
"webpack://ol/../expression/definitions/coalesce.js",
"webpack://ol/../expression/definitions/let.js",
"webpack://ol/../expression/definitions/at.js",
"webpack://ol/../expression/definitions/in.js",
"webpack://ol/../expression/definitions/index_of.js",
"webpack://ol/../expression/definitions/match.js",
"webpack://ol/../expression/definitions/case.js",
"webpack://ol/../expression/definitions/slice.js",
"webpack://ol/../expression/definitions/comparison.js",
"webpack://ol/../expression/definitions/number_format.js",
"webpack://ol/../expression/definitions/index.js",
"webpack://ol/../expression/definitions/length.js",
"webpack://ol/../util/result.js",
"webpack://ol/../util/properties.js",
"webpack://ol/../util/get_type.js",
"webpack://ol/../function/index.js",
"webpack://ol/../expression/index.js",
"webpack://ol/../function/convert.js",
"webpack://ol/../feature_filter/index.js",
"webpack://ol/../util/ref_properties.js",
"webpack://ol/../deref.js",
"webpack://ol/../error/validation_error.js",
"webpack://ol/../error/parsing_error.js",
"webpack://ol/../validate/validate_constants.js",
"webpack://ol/../util/unbundle_jsonlint.js",
"webpack://ol/../validate/validate_object.js",
"webpack://ol/../validate/validate_array.js",
"webpack://ol/../validate/validate_number.js",
"webpack://ol/../validate/validate_function.js",
"webpack://ol/../validate/validate_expression.js",
"webpack://ol/../validate/validate_enum.js",
"webpack://ol/../validate/validate_filter.js",
"webpack://ol/../validate/validate_property.js",
"webpack://ol/../validate/validate_paint_property.js",
"webpack://ol/../validate/validate_layout_property.js",
"webpack://ol/../validate/validate_layer.js",
"webpack://ol/../validate/validate_string.js",
"webpack://ol/../validate/validate_source.js",
"webpack://ol/../validate/validate_light.js",
"webpack://ol/../validate/validate_terrain.js",
"webpack://ol/../validate/validate_fog.js",
"webpack://ol/../validate/validate.js",
"webpack://ol/../validate/validate_boolean.js",
"webpack://ol/../validate/validate_color.js",
"webpack://ol/../validate/validate_formatted.js",
"webpack://ol/../validate/validate_image.js",
"webpack://ol/../validate/validate_glyphs_url.js",
"webpack://ol/../validate_style.min.js",
"webpack://ol/../../../node_modules/@mapbox/jsonlint-lines-primitives/lib/jsonlint.js",
"webpack://ol/../read_style.js",
"webpack://ol/../validate_style.js",
"webpack://ol/../validate_mapbox_api_supported.js",
"webpack://ol/../style-spec.js",
"webpack://ol/../src/util.js",
"webpack://ol/../src/stylefunction.js",
"webpack://ol/../src/index.js",
"webpack://ol/../src/layer/MapboxVector.js",
"webpack://ol/../src/layer/VectorImage.js",
"webpack://ol/../src/layer/WebGLPoints.js",
"webpack://ol/../src/layer/WebGLTile.js",
"webpack://ol/../src/interaction/DragAndDrop.js",
"webpack://ol/../src/interaction/DragRotateAndZoom.js",
"webpack://ol/../src/geom/Circle.js",
"webpack://ol/../src/interaction/Draw.js",
"webpack://ol/../src/interaction/Extent.js",
"webpack://ol/../src/interaction/Modify.js",
"webpack://ol/../src/interaction/Select.js",
"webpack://ol/../src/interaction/Snap.js",
"webpack://ol/../src/interaction/Translate.js",
"webpack://ol/../../src/geom/flat/flip.js",
"webpack://ol/../src/format/EsriJSON.js",
"webpack://ol/../src/format/XMLFeature.js",
"webpack://ol/../src/format/GMLBase.js",
"webpack://ol/../src/format/xsd.js",
"webpack://ol/../src/format/GML2.js",
"webpack://ol/../src/format/GML3.js",
"webpack://ol/../src/format/GML.js",
"webpack://ol/../src/format/GML32.js",
"webpack://ol/../src/format/GPX.js",
"webpack://ol/../src/format/TextFeature.js",
"webpack://ol/../src/format/IGC.js",
"webpack://ol/../src/format/KML.js",
"webpack://ol/../src/format/OSMXML.js",
"webpack://ol/../src/format/XML.js",
"webpack://ol/../src/format/xlink.js",
"webpack://ol/../src/format/OWS.js",
"webpack://ol/../src/format/Polyline.js",
"webpack://ol/../src/format/TopoJSON.js",
"webpack://ol/../../src/format/filter/Filter.js",
"webpack://ol/../../src/format/filter/LogicalNary.js",
"webpack://ol/../../src/format/filter/And.js",
"webpack://ol/../../src/format/filter/Bbox.js",
"webpack://ol/../../src/format/filter/Spatial.js",
"webpack://ol/../../src/format/filter/Contains.js",
"webpack://ol/../../src/format/filter/DWithin.js",
"webpack://ol/../../src/format/filter/Disjoint.js",
"webpack://ol/../../src/format/filter/Comparison.js",
"webpack://ol/../../src/format/filter/During.js",
"webpack://ol/../../src/format/filter/ComparisonBinary.js",
"webpack://ol/../../src/format/filter/EqualTo.js",
"webpack://ol/../../src/format/filter/GreaterThan.js",
"webpack://ol/../../src/format/filter/GreaterThanOrEqualTo.js",
"webpack://ol/../../src/format/filter/Intersects.js",
"webpack://ol/../../src/format/filter/IsBetween.js",
"webpack://ol/../../src/format/filter/IsLike.js",
"webpack://ol/../../src/format/filter/IsNull.js",
"webpack://ol/../../src/format/filter/LessThan.js",
"webpack://ol/../../src/format/filter/LessThanOrEqualTo.js",
"webpack://ol/../../src/format/filter/Not.js",
"webpack://ol/../../src/format/filter/NotEqualTo.js",
"webpack://ol/../../src/format/filter/Or.js",
"webpack://ol/../../src/format/filter/ResourceId.js",
"webpack://ol/../../src/format/filter/Within.js",
"webpack://ol/../src/format/filter.js",
"webpack://ol/../src/format/WFS.js",
"webpack://ol/../src/format/WKB.js",
"webpack://ol/../src/format/WKT.js",
"webpack://ol/../src/format/WMSCapabilities.js",
"webpack://ol/../src/format/WMSGetFeatureInfo.js",
"webpack://ol/../src/format/WMTSCapabilities.js",
"webpack://ol/../src/control/FullScreen.js",
"webpack://ol/../src/control/MousePosition.js",
"webpack://ol/../src/control/OverviewMap.js",
"webpack://ol/../src/control/ScaleLine.js",
"webpack://ol/../src/control/ZoomSlider.js",
"webpack://ol/../src/control/ZoomToExtent.js",
"webpack://ol/./build/index.js",
"webpack://ol/../../src/geom/flat/topology.js",
"webpack://ol/../src/proj/proj4.js",
"webpack://ol/src/source.js",
"webpack://ol/./node_modules/geotiff/dist-module/globals.js",
"webpack://ol/webpack/bootstrap",
"webpack://ol/webpack/runtime/define property getters",
"webpack://ol/webpack/runtime/ensure chunk",
"webpack://ol/webpack/runtime/get javascript chunk filename",
"webpack://ol/webpack/runtime/global",
"webpack://ol/webpack/runtime/hasOwnProperty shorthand",
"webpack://ol/webpack/runtime/make namespace object",
"webpack://ol/webpack/runtime/node module decorator",
"webpack://ol/webpack/runtime/publicPath",
"webpack://ol/webpack/runtime/jsonp chunk loading",
"webpack://ol/webpack/startup"
],
"sourcesContent": [
"(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ol\"] = factory();\n\telse\n\t\troot[\"ol\"] = factory();\n})(self, function() {\nreturn ",
"var inProgress = {};\nvar dataWebpackPrefix = \"ol:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};",
"/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n",
"'use strict'\n\n// A linked list to keep track of recently-used-ness\nconst Yallist = require('yallist')\n\nconst MAX = Symbol('max')\nconst LENGTH = Symbol('length')\nconst LENGTH_CALCULATOR = Symbol('lengthCalculator')\nconst ALLOW_STALE = Symbol('allowStale')\nconst MAX_AGE = Symbol('maxAge')\nconst DISPOSE = Symbol('dispose')\nconst NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')\nconst LRU_LIST = Symbol('lruList')\nconst CACHE = Symbol('cache')\nconst UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')\n\nconst naiveLength = () => 1\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass LRUCache {\n constructor (options) {\n if (typeof options === 'number')\n options = { max: options }\n\n if (!options)\n options = {}\n\n if (options.max && (typeof options.max !== 'number' || options.max < 0))\n throw new TypeError('max must be a non-negative number')\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[MAX] = options.max || Infinity\n\n const lc = options.length || naiveLength\n this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc\n this[ALLOW_STALE] = options.stale || false\n if (options.maxAge && typeof options.maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false\n this.reset()\n }\n\n // resize the cache when the max changes.\n set max (mL) {\n if (typeof mL !== 'number' || mL < 0)\n throw new TypeError('max must be a non-negative number')\n\n this[MAX] = mL || Infinity\n trim(this)\n }\n get max () {\n return this[MAX]\n }\n\n set allowStale (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n }\n get allowStale () {\n return this[ALLOW_STALE]\n }\n\n set maxAge (mA) {\n if (typeof mA !== 'number')\n throw new TypeError('maxAge must be a non-negative number')\n\n this[MAX_AGE] = mA\n trim(this)\n }\n get maxAge () {\n return this[MAX_AGE]\n }\n\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator (lC) {\n if (typeof lC !== 'function')\n lC = naiveLength\n\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(hit => {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n })\n }\n trim(this)\n }\n get lengthCalculator () { return this[LENGTH_CALCULATOR] }\n\n get length () { return this[LENGTH] }\n get itemCount () { return this[LRU_LIST].length }\n\n rforEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].tail; walker !== null;) {\n const prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n }\n\n forEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].head; walker !== null;) {\n const next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n }\n\n keys () {\n return this[LRU_LIST].toArray().map(k => k.key)\n }\n\n values () {\n return this[LRU_LIST].toArray().map(k => k.value)\n }\n\n reset () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n }\n\n dump () {\n return this[LRU_LIST].map(hit =>\n isStale(this, hit) ? false : {\n
"var fontWeights = {\n thin: 100,\n hairline: 100,\n 'ultra-light': 100,\n 'extra-light': 100,\n light: 200,\n book: 300,\n regular: 400,\n normal: 400,\n plain: 400,\n roman: 400,\n standard: 400,\n medium: 500,\n 'semi-bold': 600,\n 'demi-bold': 600,\n bold: 700,\n heavy: 800,\n black: 800,\n 'extra-bold': 800,\n 'ultra-black': 900,\n 'extra-black': 900,\n 'ultra-bold': 900,\n 'heavy-black': 900,\n fat: 900,\n poster: 900\n};\nvar sp = ' ';\nvar italicRE = /(italic|oblique)$/i;\n\nvar fontCache = {};\n\nmodule.exports = function(fonts, size, lineHeight) {\n var cssData = fontCache[fonts];\n if (!cssData) {\n if (!Array.isArray(fonts)) {\n fonts = [fonts];\n }\n var weight = 400;\n var style = 'normal';\n var fontFamilies = [];\n var haveWeight, haveStyle;\n for (var i = 0, ii = fonts.length; i < ii; ++i) {\n var font = fonts[i];\n var parts = font.split(' ');\n var maybeWeight = parts[parts.length - 1].toLowerCase();\n if (maybeWeight == 'normal' || maybeWeight == 'italic' || maybeWeight == 'oblique') {\n style = haveStyle ? style : maybeWeight;\n parts.pop();\n maybeWeight = parts[parts.length - 1].toLowerCase();\n } else if (italicRE.test(maybeWeight)) {\n maybeWeight = maybeWeight.replace(italicRE, '');\n style = haveStyle ? style : parts[parts.length - 1].replace(maybeWeight, '');\n }\n for (var w in fontWeights) {\n var previousPart = parts.length > 1 ? parts[parts.length - 2].toLowerCase() : '';\n if (maybeWeight == w || maybeWeight == w.replace('-', '') || previousPart + '-' + maybeWeight == w) {\n weight = haveWeight ? weight : fontWeights[w];\n parts.pop();\n if (previousPart && w.startsWith(previousPart)) {\n parts.pop();\n }\n break;\n }\n }\n if (!haveWeight && typeof maybeWeight == 'number') {\n weight = maybeWeight;\n }\n var fontFamily = parts.join(sp)\n .replace('Klokantech Noto Sans', 'Noto Sans');\n if (fontFamily.indexOf(sp) !== -1) {\n fontFamily = '\"' + fontFamily + '\"';\n }\n fontFamilies.push(fontFamily);\n }\n // CSS font property: font-style font-weight font-size/line-height font-family\n cssData = fontCache[fonts] = [style, weight, fontFamilies];\n }\n return cssData[0] + sp + cssData[1] + sp + size + 'px' + (lineHeight ? '/' + lineHeight : '') + sp + cssData[2];\n};\n",
"'use strict';\n\nmodule.exports = Pbf;\n\nvar ieee754 = require('ieee754');\n\nfunction Pbf(buf) {\n this.buf = ArrayBuffer.isView && ArrayBuffer.isView(buf) ? buf : new Uint8Array(buf || 0);\n this.pos = 0;\n this.type = 0;\n this.length = this.buf.length;\n}\n\nPbf.Varint = 0; // varint: int32, int64, uint32, uint64, sint32, sint64, bool, enum\nPbf.Fixed64 = 1; // 64-bit: double, fixed64, sfixed64\nPbf.Bytes = 2; // length-delimited: string, bytes, embedded messages, packed repeated fields\nPbf.Fixed32 = 5; // 32-bit: float, fixed32, sfixed32\n\nvar SHIFT_LEFT_32 = (1 << 16) * (1 << 16),\n SHIFT_RIGHT_32 = 1 / SHIFT_LEFT_32;\n\n// Threshold chosen based on both benchmarking and knowledge about browser string\n// data structures (which currently switch structure types at 12 bytes or more)\nvar TEXT_DECODER_MIN_LENGTH = 12;\nvar utf8TextDecoder = typeof TextDecoder === 'undefined' ? null : new TextDecoder('utf8');\n\nPbf.prototype = {\n\n destroy: function() {\n this.buf = null;\n },\n\n // === READING =================================================================\n\n readFields: function(readField, result, end) {\n end = end || this.length;\n\n while (this.pos < end) {\n var val = this.readVarint(),\n tag = val >> 3,\n startPos = this.pos;\n\n this.type = val & 0x7;\n readField(tag, result, this);\n\n if (this.pos === startPos) this.skip(val);\n }\n return result;\n },\n\n readMessage: function(readField, result) {\n return this.readFields(readField, result, this.readVarint() + this.pos);\n },\n\n readFixed32: function() {\n var val = readUInt32(this.buf, this.pos);\n this.pos += 4;\n return val;\n },\n\n readSFixed32: function() {\n var val = readInt32(this.buf, this.pos);\n this.pos += 4;\n return val;\n },\n\n // 64-bit int handling is based on github.com/dpw/node-buffer-more-ints (MIT-licensed)\n\n readFixed64: function() {\n var val = readUInt32(this.buf, this.pos) + readUInt32(this.buf, this.pos + 4) * SHIFT_LEFT_32;\n this.pos += 8;\n return val;\n },\n\n readSFixed64: function() {\n var val = readUInt32(this.buf, this.pos) + readInt32(this.buf, this.pos + 4) * SHIFT_LEFT_32;\n this.pos += 8;\n return val;\n },\n\n readFloat: function() {\n var val = ieee754.read(this.buf, this.pos, true, 23, 4);\n this.pos += 4;\n return val;\n },\n\n readDouble: function() {\n var val = ieee754.read(this.buf, this.pos, true, 52, 8);\n this.pos += 8;\n return val;\n },\n\n readVarint: function(isSigned) {\n var buf = this.buf,\n val, b;\n\n b = buf[this.pos++]; val = b & 0x7f; if (b < 0x80) return val;\n b = buf[this.pos++]; val |= (b & 0x7f) << 7; if (b < 0x80) return val;\n b = buf[this.pos++]; val |= (b & 0x7f) << 14; if (b < 0x80) return val;\n b = buf[this.pos++]; val |= (b & 0x7f) << 21; if (b < 0x80) return val;\n b = buf[this.pos]; val |= (b & 0x0f) << 28;\n\n return readVarintRemainder(val, isSigned, this);\n },\n\n readVarint64: function() { // for compatibility with v2.0.1\n return this.readVarint(true);\n },\n\n readSVarint: function() {\n var num = this.readVarint();\n return num % 2 === 1 ? (num + 1) / -2 : num / 2; // zigzag encoding\n },\n\n readBoolean: function() {\n return Boolean(this.readVarint());\n },\n\n readString: function() {\n var end = this.readVarint() + this.pos;\n var pos = this.pos;\n this.pos = end;\n\n if (end - pos >= TEXT_DECODER_MIN_LENGTH && utf8TextDecoder) {\n // longer strings are fast with the built-in browser TextDecoder API\n return readUtf8TextDecoder(this.buf, pos, end);\n }\n // short strings are fast with our custom implementation\n return readUtf8(this.buf, pos
"!function(t,i){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=i():\"function\"==typeof define&&define.amd?define(i):(t=t||self).RBush=i()}(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),m=Math.max(e,Math.floor(r-s*f/o+u)),c=Math.min(a,Math.floor(r+(o-s)*f/o+u));t(n,r,m,c,h)}var p=n[r],d=e,x=a;for(i(n,e,r),h(n[a],p)>0&&i(n,e,a);d<x;){for(i(n,d,x),d++,x--;h(n[d],p)<0;)d++;for(;h(n[x],p)>0;)x--}0===h(n[e],p)?i(n,e,x):i(n,++x,a),x<=r&&(e=x+1),r<=x&&(a=x-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 t<i?-1:t>i?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<i.length;r++)if(n(t,i[r]))return r;return-1}function a(t,i){h(t,0,t.children.length,i,t)}function h(t,i,n,r,e){e||(e=p(null)),e.minX=1/0,e.minY=1/0,e.maxX=-1/0,e.maxY=-1/0;for(var a=i;a<n;a++){var h=t.children[a];o(e,t.leaf?r(h):h)}return e}function o(t,i){return t.minX=Math.min(t.minX,i.minX),t.minY=Math.min(t.minY,i.minY),t.maxX=Math.max(t.maxX,i.maxX),t.maxY=Math.max(t.maxY,i.maxY),t}function s(t,i){return t.minX-i.minX}function l(t,i){return t.minY-i.minY}function f(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function u(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,i){return t.minX<=i.minX&&t.minY<=i.minY&&i.maxX<=t.maxX&&i.maxY<=t.maxY}function c(t,i){return i.minX<=t.maxX&&i.minY<=t.maxY&&i.maxX>=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<i.children.length;a++){var h=i.children[a],o=i.leaf?r(h):h;c(t,o)&&(i.leaf?n.push(h):m(t,o)?this._all(h,n):e.push(h))}i=e.pop()}return n},r.prototype.collides=function(t){var i=this.data;if(!c(t,i))return!1;for(var n=[];i;){for(var r=0;r<i.children.length;r++){var e=i.children[r],a=i.leaf?this.toBBox(e):e;if(c(t,a)){if(i.leaf||m(t,a))return!0;n.push(e)}}i=n.pop()}return!1},r.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var i=0;i<t.length;i++)this.insert(t[i]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},r.prototype.clear=function(){return this.data=p([]),this},r.prototype.remove=function(t,i){if(!t)return this;for(var n,r,a,h=this.data,o=this.toBBox(t),s=[],l=[];h||s.length;){if(h||(h=s.pop(),r=s[s.length-1],n=l.pop(),a=!0),h.leaf){var f=e(t,h.children,i);if(-1!==f)return h.children.splice(f,1),s.push(h),this._condense(s),this}a||h.leaf||!m(h,o)?r?(n++,h=r.children[n],a=!1):h=null:(s.push(h),l.push(n),n=0,r=h,h=h.children[0])}return this},r.prototype.toBBox=function(t){return t},r.prototype.compareMinX=function(t,i){return t.minX-i.minX},r.prototype.compareMinY=function(t,i){return t.minY-i.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(t){return this.data=t,this},r.prototype._all=function(t,i){for(var n=[];t;)t.leaf?i.push.apply(i,t.children):n.push.apply(n,t.children),t=n.pop();return i},r.prototype._build=function(t,i,n,r){var e,h=n-i+1,o=this._maxEntries;if(h<=o)return a(e=p(t.slice(i,n+1)),this.toBBox),e;r||(r=Math.ceil(Math.log(h)/Math.log(o)),o=Math.ceil(h/Math.pow(o,r-1))),(e=p([])).leaf=!1,e.height=r;var s=Math.ceil(h/o),l=s*Math.ceil(Math.sqrt(o
"/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, \"\");\n } catch (err) {\n define = function(obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n define(IteratorPrototype, iteratorSymbol, function () {\n return this;\n });\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.p
"// Generated by CoffeeScript 1.10.0\n(function() {\n var families;\n\n module.exports = {\n icon: 'icons/google.svg',\n name: 'google',\n title: 'Google Fonts',\n link: 'google.com/fonts',\n getNames: function() {\n return families;\n },\n getLink: function(name) {\n return \"https://fonts.google.com/specimen/\" + (name.replace(/( )/g, '+'));\n },\n normalizeName: function(name) {\n return name;\n }\n };\n\n families = [\"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\", \"Fo
"const indexOfMatch = require(\"./index-of-match.js\");\n\nfunction findTagByName(xml, tagName, options) {\n const debug = (options && options.debug) || false;\n\n const startIndex = (options && options.startIndex) || 0;\n\n if (debug) console.log(\"starting findTagByName with\", tagName, \" and \", options);\n\n const start = indexOfMatch(xml, `\\<${tagName}[ \\>]`, startIndex);\n if (debug) console.log(\"start:\", start);\n if (start === -1) return undefined;\n\n const afterStart = xml.slice(start + tagName.length);\n let relativeEnd = indexOfMatch(afterStart, \"[ /]\" + tagName + \">\", 0);\n const selfClosing = relativeEnd === -1;\n\n if (selfClosing) {\n relativeEnd = indexOfMatch(afterStart, \"[ /]>\", 0);\n }\n\n const end = start + tagName.length + relativeEnd + 1 + (selfClosing ? 0 : tagName.length) + 1;\n if (debug) console.log(\"end:\", end);\n if (end === -1) return undefined;\n\n const outer = xml.slice(start, end);\n // tag is like <gml:identifier codeSpace=\"OGP\">urn:ogc:def:crs:EPSG::32617</gml:identifier>\n\n let inner;\n if (selfClosing) {\n inner = null;\n } else {\n inner = outer.slice(outer.indexOf(\">\") + 1, outer.lastIndexOf(\"<\"));\n }\n\n return { inner, outer, start, end };\n}\n\nmodule.exports = findTagByName;\n",
"const findTagByName = require(\"./find-tag-by-name.js\");\n\nfunction findTagsByName(xml, tagName, options) {\n const tags = [];\n const debug = (options && options.debug) || false;\n let startIndex = (options && options.startIndex) || 0;\n let tag;\n while ((tag = findTagByName(xml, tagName, { debug, startIndex }))) {\n startIndex = tag.end;\n tags.push(tag);\n }\n if (debug) console.log(\"findTagsByName found\", tags.length, \"tags\");\n return tags;\n}\n\nmodule.exports = findTagsByName;\n",
"function getAttribute(tag, attributeName, options) {\n const debug = (options && options.debug) || false;\n if (debug) console.log(\"getting \" + attributeName + \" in \" + tag);\n\n const xml = typeof tag === \"object\" ? tag.outer : tag;\n\n const pattern = `${attributeName}\\\\=\"\\([^\"]*\\)\"`;\n if (debug) console.log(\"pattern:\", pattern);\n\n const re = new RegExp(pattern);\n const match = re.exec(xml);\n if (debug) console.log(\"match:\", match);\n if (match) return match[1];\n}\n\nmodule.exports = getAttribute;\n",
"function indexOfMatch(xml, pattern, startIndex) {\n const re = new RegExp(pattern);\n const match = re.exec(xml.slice(startIndex));\n if (match) return startIndex + match.index;\n else return -1;\n}\n\nmodule.exports = indexOfMatch;\n",
"'use strict'\nmodule.exports = function (Yallist) {\n Yallist.prototype[Symbol.iterator] = function* () {\n for (let walker = this.head; walker; walker = walker.next) {\n yield walker.value\n }\n }\n}\n",
"'use strict'\nmodule.exports = Yallist\n\nYallist.Node = Node\nYallist.create = Yallist\n\nfunction Yallist (list) {\n var self = this\n if (!(self instanceof Yallist)) {\n self = new Yallist()\n }\n\n self.tail = null\n self.head = null\n self.length = 0\n\n if (list && typeof list.forEach === 'function') {\n list.forEach(function (item) {\n self.push(item)\n })\n } else if (arguments.length > 0) {\n for (var i = 0, l = arguments.length; i < l; i++) {\n self.push(arguments[i])\n }\n }\n\n return self\n}\n\nYallist.prototype.removeNode = function (node) {\n if (node.list !== this) {\n throw new Error('removing node which does not belong to this list')\n }\n\n var next = node.next\n var prev = node.prev\n\n if (next) {\n next.prev = prev\n }\n\n if (prev) {\n prev.next = next\n }\n\n if (node === this.head) {\n this.head = next\n }\n if (node === this.tail) {\n this.tail = prev\n }\n\n node.list.length--\n node.next = null\n node.prev = null\n node.list = null\n\n return next\n}\n\nYallist.prototype.unshiftNode = function (node) {\n if (node === this.head) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var head = this.head\n node.list = this\n node.next = head\n if (head) {\n head.prev = node\n }\n\n this.head = node\n if (!this.tail) {\n this.tail = node\n }\n this.length++\n}\n\nYallist.prototype.pushNode = function (node) {\n if (node === this.tail) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var tail = this.tail\n node.list = this\n node.prev = tail\n if (tail) {\n tail.next = node\n }\n\n this.tail = node\n if (!this.head) {\n this.head = node\n }\n this.length++\n}\n\nYallist.prototype.push = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n push(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.unshift = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n unshift(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.pop = function () {\n if (!this.tail) {\n return undefined\n }\n\n var res = this.tail.value\n this.tail = this.tail.prev\n if (this.tail) {\n this.tail.next = null\n } else {\n this.head = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.shift = function () {\n if (!this.head) {\n return undefined\n }\n\n var res = this.head.value\n this.head = this.head.next\n if (this.head) {\n this.head.prev = null\n } else {\n this.tail = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.head, i = 0; walker !== null; i++) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.next\n }\n}\n\nYallist.prototype.forEachReverse = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.prev\n }\n}\n\nYallist.prototype.get = function (n) {\n for (var i = 0, walker = this.head; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.next\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.getReverse = function (n) {\n for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.prev\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.map = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.head; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.next\n }\n return res\n}\n\nYallist.prototype.mapReverse = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.tail; walker !== null;) {\n res.push(fn.call(thisp, walker.valu
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
"// algorithm: http://fox-toolkit.org/ftp/fasthalffloatconversion.pdf\n\nconst buffer = new ArrayBuffer(4);\nconst floatView = new Float32Array(buffer);\nconst uint32View = new Uint32Array(buffer);\n\nconst baseTable = new Uint32Array(512);\nconst shiftTable = new Uint32Array(512);\n\nfor (let i = 0; i < 256; ++i) {\n const e = i - 127;\n\n // very small number (0, -0)\n if (e < -27) {\n baseTable[i] = 0x0000;\n baseTable[i | 0x100] = 0x8000;\n shiftTable[i] = 24;\n shiftTable[i | 0x100] = 24;\n\n // small number (denorm)\n } else if (e < -14) {\n baseTable[i] = 0x0400 >> (-e - 14);\n baseTable[i | 0x100] = (0x0400 >> (-e - 14)) | 0x8000;\n shiftTable[i] = -e - 1;\n shiftTable[i | 0x100] = -e - 1;\n\n // normal number\n } else if (e <= 15) {\n baseTable[i] = (e + 15) << 10;\n baseTable[i | 0x100] = ((e + 15) << 10) | 0x8000;\n shiftTable[i] = 13;\n shiftTable[i | 0x100] = 13;\n\n // large number (Infinity, -Infinity)\n } else if (e < 128) {\n baseTable[i] = 0x7c00;\n baseTable[i | 0x100] = 0xfc00;\n shiftTable[i] = 24;\n shiftTable[i | 0x100] = 24;\n\n // stay (NaN, Infinity, -Infinity)\n } else {\n baseTable[i] = 0x7c00;\n baseTable[i | 0x100] = 0xfc00;\n shiftTable[i] = 13;\n shiftTable[i | 0x100] = 13;\n }\n}\n\n/**\n * round a number to a half float number bits.\n * @param {number} num - double float\n * @returns {number} half float number bits\n */\nexport function roundToFloat16Bits(num) {\n floatView[0] = num;\n const f = uint32View[0];\n const e = (f >> 23) & 0x1ff;\n return baseTable[e] + ((f & 0x007fffff) >> shiftTable[e]);\n}\n\nconst mantissaTable = new Uint32Array(2048);\nconst exponentTable = new Uint32Array(64);\nconst offsetTable = new Uint32Array(64);\n\nmantissaTable[0] = 0;\nfor (let i = 1; i < 1024; ++i) {\n let m = i << 13; // zero pad mantissa bits\n let e = 0; // zero exponent\n\n // normalized\n while((m & 0x00800000) === 0) {\n e -= 0x00800000; // decrement exponent\n m <<= 1;\n }\n\n m &= ~0x00800000; // clear leading 1 bit\n e += 0x38800000; // adjust bias\n\n mantissaTable[i] = m | e;\n}\nfor (let i = 1024; i < 2048; ++i) {\n mantissaTable[i] = 0x38000000 + ((i - 1024) << 13);\n}\n\nexponentTable[0] = 0;\nfor (let i = 1; i < 31; ++i) {\n exponentTable[i] = i << 23;\n}\nexponentTable[31] = 0x47800000;\nexponentTable[32] = 0x80000000;\nfor (let i = 33; i < 63; ++i) {\n exponentTable[i] = 0x80000000 + ((i - 32) << 23);\n}\nexponentTable[63] = 0xc7800000;\n\noffsetTable[0] = 0;\nfor (let i = 1; i < 64; ++i) {\n if (i === 32) {\n offsetTable[i] = 0;\n } else {\n offsetTable[i] = 1024;\n }\n}\n\n/**\n * convert a half float number bits to a number.\n * @param {number} float16bits - half float number bits\n * @returns {number} double float\n */\nexport function convertToNumber(float16bits) {\n const m = float16bits >> 10;\n uint32View[0] = mantissaTable[offsetTable[m] + (float16bits & 0x3ff)] + exponentTable[m];\n return floatView[0];\n}\n",
null,
null,
null,
null,
null,
null,
"/**\n * @param {unknown} value\n * @returns {value is object}\n */\nexport function isObject(value) {\n return (value !== null && typeof value === \"object\") || typeof value === \"function\";\n}\n\n/**\n * @param {unknown} value\n * @returns {value is object}\n */\nexport function isObjectLike(value) {\n return value !== null && typeof value === \"object\";\n}\n\n// Inspired by util.types implementation of Node.js\nconst TypedArrayPrototype = Reflect.getPrototypeOf(Uint8Array).prototype;\nconst getTypedArrayPrototypeSybolToStringTag = Reflect.getOwnPropertyDescriptor(TypedArrayPrototype, Symbol.toStringTag).get;\n\n/**\n * @param {unknown} value\n * @returns {value is Uint8Array|Uint8ClampedArray|Uint16Array|Uint32Array|Int8Array|Int16Array|Int32Array|Float32Array|Float64Array|BigUint64Array|BigInt64Array}\n */\nexport function isTypedArray(value) {\n return getTypedArrayPrototypeSybolToStringTag.call(value) !== undefined;\n}\n\n/**\n * @param {unknown} value\n * @returns {value is Uint16Array}\n */\nexport function isUint16Array(value) {\n return getTypedArrayPrototypeSybolToStringTag.call(value) === \"Uint16Array\";\n}\n\nconst toString = Object.prototype.toString;\n\n/**\n * @param {unknown} value\n * @returns {value is DataView}\n */\nexport function isDataView(value) {\n if (!ArrayBuffer.isView(value)) {\n return false;\n }\n\n if (isTypedArray(value)) {\n return false;\n }\n\n if (toString.call(value) !== \"[object DataView]\") {\n return false;\n }\n\n return true;\n}\n\n/**\n * @param {unknown} value\n * @returns {value is ArrayBuffer}\n */\nexport function isArrayBuffer(value) {\n return isObjectLike(value) && toString.call(value) === \"[object ArrayBuffer]\";\n}\n\n/**\n * @param {unknown} value\n * @returns {value is SharedArrayBuffer}\n */\nexport function isSharedArrayBuffer(value) {\n return isObjectLike(value) && toString.call(value) === \"[object SharedArrayBuffer]\";\n}\n\n/**\n * @param {unknown} value\n * @returns {value is Iterable}\n */\nexport function isIterable(value) {\n return isObject(value) && typeof value[Symbol.iterator] === \"function\";\n}\n\n/**\n * @param {unknown} value\n * @returns {value is any[]}\n */\nexport function isOrdinaryArray(value) {\n if (!Array.isArray(value)) {\n return false;\n }\n\n const iterator = value[Symbol.iterator]();\n if (toString.call(iterator) !== \"[object Array Iterator]\") {\n return false;\n }\n\n return true;\n}\n\n/**\n * @param {unknown} value\n * @returns {value is any[]}\n */\nexport function isOrdinaryTypedArray(value) {\n if (!isTypedArray(value)) {\n return false;\n }\n\n const iterator = value[Symbol.iterator]();\n if (toString.call(iterator) !== \"[object Array Iterator]\") {\n return false;\n }\n\n return true;\n}\n\n/**\n * @param {unknown} value\n * @returns {value is string}\n */\nexport function isCanonicalIntegerIndexString(value) {\n if (typeof value !== \"string\") {\n return false;\n }\n\n const number = Number(value);\n if (value !== number + \"\") {\n return false;\n }\n\n if (!Number.isFinite(number)) {\n return false;\n }\n\n if (number !== Math.trunc(number)) {\n return false;\n }\n\n return true;\n}\n",
"import { convertToNumber, roundToFloat16Bits } from \"./helper/converter.mjs\";\nimport { isDataView } from \"./helper/is.mjs\";\n\n/**\n * returns an unsigned 16-bit float at the specified byte offset from the start of the DataView.\n * @param {DataView} dataView\n * @param {number} byteOffset\n * @param {[boolean]} opts\n * @returns {number}\n */\nexport function getFloat16(dataView, byteOffset, ...opts) {\n if (!isDataView(dataView)) {\n throw new TypeError(\"First argument to getFloat16 function must be a DataView\");\n }\n\n return convertToNumber( dataView.getUint16(byteOffset, ...opts) );\n}\n\n/**\n * stores an unsigned 16-bit float value at the specified byte offset from the start of the DataView.\n * @param {DataView} dataView\n * @param {number} byteOffset\n * @param {number} value\n * @param {[boolean]} opts\n */\nexport function setFloat16(dataView, byteOffset, value, ...opts) {\n if (!isDataView(dataView)) {\n throw new TypeError(\"First argument to setFloat16 function must be a DataView\");\n }\n\n dataView.setUint16(byteOffset, roundToFloat16Bits(value), ...opts);\n}\n",
"export function fromWhiteIsZero(raster, max) {\n const { width, height } = raster;\n const rgbRaster = new Uint8Array(width * height * 3);\n let value;\n for (let i = 0, j = 0; i < raster.length; ++i, j += 3) {\n value = 256 - (raster[i] / max * 256);\n rgbRaster[j] = value;\n rgbRaster[j + 1] = value;\n rgbRaster[j + 2] = value;\n }\n return rgbRaster;\n}\n\nexport function fromBlackIsZero(raster, max) {\n const { width, height } = raster;\n const rgbRaster = new Uint8Array(width * height * 3);\n let value;\n for (let i = 0, j = 0; i < raster.length; ++i, j += 3) {\n value = raster[i] / max * 256;\n rgbRaster[j] = value;\n rgbRaster[j + 1] = value;\n rgbRaster[j + 2] = value;\n }\n return rgbRaster;\n}\n\nexport function fromPalette(raster, colorMap) {\n const { width, height } = raster;\n const rgbRaster = new Uint8Array(width * height * 3);\n const greenOffset = colorMap.length / 3;\n const blueOffset = colorMap.length / 3 * 2;\n for (let i = 0, j = 0; i < raster.length; ++i, j += 3) {\n const mapIndex = raster[i];\n rgbRaster[j] = colorMap[mapIndex] / 65536 * 256;\n rgbRaster[j + 1] = colorMap[mapIndex + greenOffset] / 65536 * 256;\n rgbRaster[j + 2] = colorMap[mapIndex + blueOffset] / 65536 * 256;\n }\n return rgbRaster;\n}\n\nexport function fromCMYK(cmykRaster) {\n const { width, height } = cmykRaster;\n const rgbRaster = new Uint8Array(width * height * 3);\n for (let i = 0, j = 0; i < cmykRaster.length; i += 4, j += 3) {\n const c = cmykRaster[i];\n const m = cmykRaster[i + 1];\n const y = cmykRaster[i + 2];\n const k = cmykRaster[i + 3];\n\n rgbRaster[j] = 255 * ((255 - c) / 256) * ((255 - k) / 256);\n rgbRaster[j + 1] = 255 * ((255 - m) / 256) * ((255 - k) / 256);\n rgbRaster[j + 2] = 255 * ((255 - y) / 256) * ((255 - k) / 256);\n }\n return rgbRaster;\n}\n\nexport function fromYCbCr(yCbCrRaster) {\n const { width, height } = yCbCrRaster;\n const rgbRaster = new Uint8ClampedArray(width * height * 3);\n for (let i = 0, j = 0; i < yCbCrRaster.length; i += 3, j += 3) {\n const y = yCbCrRaster[i];\n const cb = yCbCrRaster[i + 1];\n const cr = yCbCrRaster[i + 2];\n\n rgbRaster[j] = (y + (1.40200 * (cr - 0x80)));\n rgbRaster[j + 1] = (y - (0.34414 * (cb - 0x80)) - (0.71414 * (cr - 0x80)));\n rgbRaster[j + 2] = (y + (1.77200 * (cb - 0x80)));\n }\n return rgbRaster;\n}\n\nconst Xn = 0.95047;\nconst Yn = 1.00000;\nconst Zn = 1.08883;\n\n// from https://github.com/antimatter15/rgb-lab/blob/master/color.js\n\nexport function fromCIELab(cieLabRaster) {\n const { width, height } = cieLabRaster;\n const rgbRaster = new Uint8Array(width * height * 3);\n\n for (let i = 0, j = 0; i < cieLabRaster.length; i += 3, j += 3) {\n const L = cieLabRaster[i + 0];\n const a_ = cieLabRaster[i + 1] << 24 >> 24; // conversion from uint8 to int8\n const b_ = cieLabRaster[i + 2] << 24 >> 24; // same\n\n let y = (L + 16) / 116;\n let x = (a_ / 500) + y;\n let z = y - (b_ / 200);\n let r;\n let g;\n let b;\n\n x = Xn * ((x * x * x > 0.008856) ? x * x * x : (x - (16 / 116)) / 7.787);\n y = Yn * ((y * y * y > 0.008856) ? y * y * y : (y - (16 / 116)) / 7.787);\n z = Zn * ((z * z * z > 0.008856) ? z * z * z : (z - (16 / 116)) / 7.787);\n\n r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n r = (r > 0.0031308) ? ((1.055 * (r ** (1 / 2.4))) - 0.055) : 12.92 * r;\n g = (g > 0.0031308) ? ((1.055 * (g ** (1 / 2.4))) - 0.055) : 12.92 * g;\n b = (b > 0.0031308) ? ((1.055 * (b ** (1 / 2.4))) - 0.055) : 12.92 * b;\n\n rgbRaster[j] = Math.max(0, Math.min(1, r)) * 255;\n rgbRaster[j + 1] = Math.max(0, Math.min(1, g)) * 255;\n rgbRaster[j + 2] = Math.max(0, Math.min(1, b)) * 255;\n }\n return rgbRaster;\n}\n",
"const registry = new Map();\n\nexport function addDecoder(cases, importFn) {\n if (!Array.isArray(cases)) {\n cases = [cases]; // eslint-disable-line no-param-reassign\n }\n cases.forEach((c) => registry.set(c, importFn));\n}\n\nexport async function getDecoder(fileDirectory) {\n const importFn = registry.get(fileDirectory.Compression);\n if (!importFn) {\n throw new Error(`Unknown compression method identifier: ${fileDirectory.Compression}`);\n }\n const Decoder = await importFn();\n return new Decoder(fileDirectory);\n}\n\n// Add default decoders to registry (end-user may override with other implementations)\naddDecoder([undefined, 1], () => import('./raw.js').then((m) => m.default));\naddDecoder(5, () => import('./lzw.js').then((m) => m.default));\naddDecoder(6, () => {\n throw new Error('old style JPEG compression is not supported.');\n});\naddDecoder(7, () => import('./jpeg.js').then((m) => m.default));\naddDecoder([8, 32946], () => import('./deflate.js').then((m) => m.default));\naddDecoder(32773, () => import('./packbits.js').then((m) => m.default));\naddDecoder(34887, () => import('./lerc.js').then((m) => m.default));\naddDecoder(50001, () => import('./webimage.js').then((m) => m.default));\n",
"/**\n * @module resample\n */\n\nfunction copyNewSize(array, width, height, samplesPerPixel = 1) {\n return new (Object.getPrototypeOf(array).constructor)(width * height * samplesPerPixel);\n}\n\n/**\n * Resample the input arrays using nearest neighbor value selection.\n * @param {TypedArray[]} valueArrays The input arrays to resample\n * @param {number} inWidth The width of the input rasters\n * @param {number} inHeight The height of the input rasters\n * @param {number} outWidth The desired width of the output rasters\n * @param {number} outHeight The desired height of the output rasters\n * @returns {TypedArray[]} The resampled rasters\n */\nexport function resampleNearest(valueArrays, inWidth, inHeight, outWidth, outHeight) {\n const relX = inWidth / outWidth;\n const relY = inHeight / outHeight;\n return valueArrays.map((array) => {\n const newArray = copyNewSize(array, outWidth, outHeight);\n for (let y = 0; y < outHeight; ++y) {\n const cy = Math.min(Math.round(relY * y), inHeight - 1);\n for (let x = 0; x < outWidth; ++x) {\n const cx = Math.min(Math.round(relX * x), inWidth - 1);\n const value = array[(cy * inWidth) + cx];\n newArray[(y * outWidth) + x] = value;\n }\n }\n return newArray;\n });\n}\n\n// simple linear interpolation, code from:\n// https://en.wikipedia.org/wiki/Linear_interpolation#Programming_language_support\nfunction lerp(v0, v1, t) {\n return ((1 - t) * v0) + (t * v1);\n}\n\n/**\n * Resample the input arrays using bilinear interpolation.\n * @param {TypedArray[]} valueArrays The input arrays to resample\n * @param {number} inWidth The width of the input rasters\n * @param {number} inHeight The height of the input rasters\n * @param {number} outWidth The desired width of the output rasters\n * @param {number} outHeight The desired height of the output rasters\n * @returns {TypedArray[]} The resampled rasters\n */\nexport function resampleBilinear(valueArrays, inWidth, inHeight, outWidth, outHeight) {\n const relX = inWidth / outWidth;\n const relY = inHeight / outHeight;\n\n return valueArrays.map((array) => {\n const newArray = copyNewSize(array, outWidth, outHeight);\n for (let y = 0; y < outHeight; ++y) {\n const rawY = relY * y;\n\n const yl = Math.floor(rawY);\n const yh = Math.min(Math.ceil(rawY), (inHeight - 1));\n\n for (let x = 0; x < outWidth; ++x) {\n const rawX = relX * x;\n const tx = rawX % 1;\n\n const xl = Math.floor(rawX);\n const xh = Math.min(Math.ceil(rawX), (inWidth - 1));\n\n const ll = array[(yl * inWidth) + xl];\n const hl = array[(yl * inWidth) + xh];\n const lh = array[(yh * inWidth) + xl];\n const hh = array[(yh * inWidth) + xh];\n\n const value = lerp(\n lerp(ll, hl, tx),\n lerp(lh, hh, tx),\n rawY % 1,\n );\n newArray[(y * outWidth) + x] = value;\n }\n }\n return newArray;\n });\n}\n\n/**\n * Resample the input arrays using the selected resampling method.\n * @param {TypedArray[]} valueArrays The input arrays to resample\n * @param {number} inWidth The width of the input rasters\n * @param {number} inHeight The height of the input rasters\n * @param {number} outWidth The desired width of the output rasters\n * @param {number} outHeight The desired height of the output rasters\n * @param {string} [method = 'nearest'] The desired resampling method\n * @returns {TypedArray[]} The resampled rasters\n */\nexport function resample(valueArrays, inWidth, inHeight, outWidth, outHeight, method = 'nearest') {\n switch (method.toLowerCase()) {\n case 'nearest':\n return resampleNearest(valueArrays, inWidth, inHeight, outWidth, outHeight);\n case 'bilinear':\n case 'linear':\n return resampleBilinear(valueArrays, inWidth, inHeight, outWidth, outHeight);\n default:\n throw new Error(`Unsupported resampling method: '${method}'`);\n }\n}\n\n/**\n * Resample the pixel interleaved input array using nearest neighbor value selection.\n * @param {TypedArr
"/** @module geotiffimage */\nimport { getFloat16 } from '@petamoriken/float16';\nimport getAttribute from 'xml-utils/get-attribute.js';\nimport findTagsByName from 'xml-utils/find-tags-by-name.js';\n\nimport { photometricInterpretations, ExtraSamplesValues } from './globals.js';\nimport { fromWhiteIsZero, fromBlackIsZero, fromPalette, fromCMYK, fromYCbCr, fromCIELab } from './rgb.js';\nimport { getDecoder } from './compression/index.js';\nimport { resample, resampleInterleaved } from './resample.js';\n\n/**\n * @typedef {Object} ReadRasterOptions\n * @property {Array<number>} [window=whole window] the subset to read data from in pixels.\n * @property {Array<number>} [bbox=whole image] the subset to read data from in\n * geographical coordinates.\n * @property {Array<number>} [samples=all samples] the selection of samples to read from. Default is all samples.\n * @property {boolean} [interleave=false] whether the data shall be read\n * in one single array or separate\n * arrays.\n * @property {Pool} [pool=null] The optional decoder pool to use.\n * @property {number} [width] The desired width of the output. When the width is not the\n * same as the images, resampling will be performed.\n * @property {number} [height] The desired height of the output. When the width is not the\n * same as the images, resampling will be performed.\n * @property {string} [resampleMethod='nearest'] The desired resampling method.\n * @property {AbortSignal} [signal] An AbortSignal that may be signalled if the request is\n * to be aborted\n * @property {number|number[]} [fillValue] The value to use for parts of the image\n * outside of the images extent. When multiple\n * samples are requested, an array of fill values\n * can be passed.\n */\n\n/** @typedef {import(\"./geotiff.js\").TypedArray} TypedArray */\n\nfunction sum(array, start, end) {\n let s = 0;\n for (let i = start; i < end; ++i) {\n s += array[i];\n }\n return s;\n}\n\nfunction arrayForType(format, bitsPerSample, size) {\n switch (format) {\n case 1: // unsigned integer data\n if (bitsPerSample <= 8) {\n return new Uint8Array(size);\n } else if (bitsPerSample <= 16) {\n return new Uint16Array(size);\n } else if (bitsPerSample <= 32) {\n return new Uint32Array(size);\n }\n break;\n case 2: // twos complement signed integer data\n if (bitsPerSample === 8) {\n return new Int8Array(size);\n } else if (bitsPerSample === 16) {\n return new Int16Array(size);\n } else if (bitsPerSample === 32) {\n return new Int32Array(size);\n }\n break;\n case 3: // floating point data\n switch (bitsPerSample) {\n case 16:\n case 32:\n return new Float32Array(size);\n case 64:\n return new Float64Array(size);\n default:\n break;\n }\n break;\n default:\n break;\n }\n throw Error('Unsupported data format/bitsPerSample');\n}\n\nfunction needsNormalization(format, bitsPerSample) {\n if ((format === 1 || format === 2) && bitsPerSample <= 32 && bitsPerSample % 8 === 0) {\n return false;\n } else if (format === 3 && (bitsPerSample === 16 || bitsPerSample === 32 || bitsPerSample === 64)) {\n return false;\n }\n return true;\n}\n\nfunction normalizeArray(inBuffer, format, planarConfiguration, samplesPerPixel, bitsPerSample, tileWidth, tileHeight) {\n // const inByteArray = new Uint8Array(inBuffer);\n const view = new DataView(inBuffer);\n const outSize = planarConfiguration === 2\n ? tileHeight * tileWidth\n : tileHeight * tileWidth * samplesPerPixel;\n const samplesToTransfer = planarConfiguration === 2\n ? 1 : samplesPerPixel;\n co
"import { getFloat16 } from '@petamoriken/float16';\n\nexport default class DataView64 {\n constructor(arrayBuffer) {\n this._dataView = new DataView(arrayBuffer);\n }\n\n get buffer() {\n return this._dataView.buffer;\n }\n\n getUint64(offset, littleEndian) {\n const left = this.getUint32(offset, littleEndian);\n const right = this.getUint32(offset + 4, littleEndian);\n let combined;\n if (littleEndian) {\n combined = left + ((2 ** 32) * right);\n if (!Number.isSafeInteger(combined)) {\n throw new Error(\n `${combined} exceeds MAX_SAFE_INTEGER. `\n + 'Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues',\n );\n }\n return combined;\n }\n combined = ((2 ** 32) * left) + right;\n if (!Number.isSafeInteger(combined)) {\n throw new Error(\n `${combined} exceeds MAX_SAFE_INTEGER. `\n + 'Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues',\n );\n }\n\n return combined;\n }\n\n // adapted from https://stackoverflow.com/a/55338384/8060591\n getInt64(offset, littleEndian) {\n let value = 0;\n const isNegative = (this._dataView.getUint8(offset + (littleEndian ? 7 : 0)) & 0x80) > 0;\n let carrying = true;\n for (let i = 0; i < 8; i++) {\n let byte = this._dataView.getUint8(offset + (littleEndian ? i : 7 - i));\n if (isNegative) {\n if (carrying) {\n if (byte !== 0x00) {\n byte = ~(byte - 1) & 0xff;\n carrying = false;\n }\n } else {\n byte = ~byte & 0xff;\n }\n }\n value += byte * (256 ** i);\n }\n if (isNegative) {\n value = -value;\n }\n return value;\n }\n\n getUint8(offset, littleEndian) {\n return this._dataView.getUint8(offset, littleEndian);\n }\n\n getInt8(offset, littleEndian) {\n return this._dataView.getInt8(offset, littleEndian);\n }\n\n getUint16(offset, littleEndian) {\n return this._dataView.getUint16(offset, littleEndian);\n }\n\n getInt16(offset, littleEndian) {\n return this._dataView.getInt16(offset, littleEndian);\n }\n\n getUint32(offset, littleEndian) {\n return this._dataView.getUint32(offset, littleEndian);\n }\n\n getInt32(offset, littleEndian) {\n return this._dataView.getInt32(offset, littleEndian);\n }\n\n getFloat16(offset, littleEndian) {\n return getFloat16(this._dataView, offset, littleEndian);\n }\n\n getFloat32(offset, littleEndian) {\n return this._dataView.getFloat32(offset, littleEndian);\n }\n\n getFloat64(offset, littleEndian) {\n return this._dataView.getFloat64(offset, littleEndian);\n }\n}\n",
"export default class DataSlice {\n constructor(arrayBuffer, sliceOffset, littleEndian, bigTiff) {\n this._dataView = new DataView(arrayBuffer);\n this._sliceOffset = sliceOffset;\n this._littleEndian = littleEndian;\n this._bigTiff = bigTiff;\n }\n\n get sliceOffset() {\n return this._sliceOffset;\n }\n\n get sliceTop() {\n return this._sliceOffset + this.buffer.byteLength;\n }\n\n get littleEndian() {\n return this._littleEndian;\n }\n\n get bigTiff() {\n return this._bigTiff;\n }\n\n get buffer() {\n return this._dataView.buffer;\n }\n\n covers(offset, length) {\n return this.sliceOffset <= offset && this.sliceTop >= offset + length;\n }\n\n readUint8(offset) {\n return this._dataView.getUint8(\n offset - this._sliceOffset, this._littleEndian,\n );\n }\n\n readInt8(offset) {\n return this._dataView.getInt8(\n offset - this._sliceOffset, this._littleEndian,\n );\n }\n\n readUint16(offset) {\n return this._dataView.getUint16(\n offset - this._sliceOffset, this._littleEndian,\n );\n }\n\n readInt16(offset) {\n return this._dataView.getInt16(\n offset - this._sliceOffset, this._littleEndian,\n );\n }\n\n readUint32(offset) {\n return this._dataView.getUint32(\n offset - this._sliceOffset, this._littleEndian,\n );\n }\n\n readInt32(offset) {\n return this._dataView.getInt32(\n offset - this._sliceOffset, this._littleEndian,\n );\n }\n\n readFloat32(offset) {\n return this._dataView.getFloat32(\n offset - this._sliceOffset, this._littleEndian,\n );\n }\n\n readFloat64(offset) {\n return this._dataView.getFloat64(\n offset - this._sliceOffset, this._littleEndian,\n );\n }\n\n readUint64(offset) {\n const left = this.readUint32(offset);\n const right = this.readUint32(offset + 4);\n let combined;\n if (this._littleEndian) {\n combined = left + ((2 ** 32) * right);\n if (!Number.isSafeInteger(combined)) {\n throw new Error(\n `${combined} exceeds MAX_SAFE_INTEGER. `\n + 'Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues',\n );\n }\n return combined;\n }\n combined = ((2 ** 32) * left) + right;\n if (!Number.isSafeInteger(combined)) {\n throw new Error(\n `${combined} exceeds MAX_SAFE_INTEGER. `\n + 'Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues',\n );\n }\n\n return combined;\n }\n\n // adapted from https://stackoverflow.com/a/55338384/8060591\n readInt64(offset) {\n let value = 0;\n const isNegative = (this._dataView.getUint8(offset + (this._littleEndian ? 7 : 0)) & 0x80)\n > 0;\n let carrying = true;\n for (let i = 0; i < 8; i++) {\n let byte = this._dataView.getUint8(\n offset + (this._littleEndian ? i : 7 - i),\n );\n if (isNegative) {\n if (carrying) {\n if (byte !== 0x00) {\n byte = ~(byte - 1) & 0xff;\n carrying = false;\n }\n } else {\n byte = ~byte & 0xff;\n }\n }\n value += byte * (256 ** i);\n }\n if (isNegative) {\n value = -value;\n }\n return value;\n }\n\n readOffset(offset) {\n if (this._bigTiff) {\n return this.readUint64(offset);\n }\n return this.readUint32(offset);\n }\n}\n",
"const CRLFCRLF = '\\r\\n\\r\\n';\n\n/*\n * Shim for 'Object.fromEntries'\n */\nfunction itemsToObject(items) {\n if (typeof Object.fromEntries !== 'undefined') {\n return Object.fromEntries(items);\n }\n const obj = {};\n for (const [key, value] of items) {\n obj[key.toLowerCase()] = value;\n }\n return obj;\n}\n\n/**\n * Parse HTTP headers from a given string.\n * @param {String} text the text to parse the headers from\n * @returns {Object} the parsed headers with lowercase keys\n */\nfunction parseHeaders(text) {\n const items = text\n .split('\\r\\n')\n .map((line) => {\n const kv = line.split(':').map((str) => str.trim());\n kv[0] = kv[0].toLowerCase();\n return kv;\n });\n\n return itemsToObject(items);\n}\n\n/**\n * Parse a 'Content-Type' header value to the content-type and parameters\n * @param {String} rawContentType the raw string to parse from\n * @returns {Object} the parsed content type with the fields: type and params\n */\nexport function parseContentType(rawContentType) {\n const [type, ...rawParams] = rawContentType.split(';').map((s) => s.trim());\n const paramsItems = rawParams.map((param) => param.split('='));\n return { type, params: itemsToObject(paramsItems) };\n}\n\n/**\n * Parse a 'Content-Range' header value to its start, end, and total parts\n * @param {String} rawContentRange the raw string to parse from\n * @returns {Object} the parsed parts\n */\nexport function parseContentRange(rawContentRange) {\n let start;\n let end;\n let total;\n\n if (rawContentRange) {\n [, start, end, total] = rawContentRange.match(/bytes (\\d+)-(\\d+)\\/(\\d+)/);\n start = parseInt(start, 10);\n end = parseInt(end, 10);\n total = parseInt(total, 10);\n }\n\n return { start, end, total };\n}\n\n/**\n * Parses a list of byteranges from the given 'multipart/byteranges' HTTP response.\n * Each item in the list has the following properties:\n * - headers: the HTTP headers\n * - data: the sliced ArrayBuffer for that specific part\n * - offset: the offset of the byterange within its originating file\n * - length: the length of the byterange\n * @param {ArrayBuffer} responseArrayBuffer the response to be parsed and split\n * @param {String} boundary the boundary string used to split the sections\n * @returns {Object[]} the parsed byteranges\n */\nexport function parseByteRanges(responseArrayBuffer, boundary) {\n let offset = null;\n const decoder = new TextDecoder('ascii');\n const out = [];\n\n const startBoundary = `--${boundary}`;\n const endBoundary = `${startBoundary}--`;\n\n // search for the initial boundary, may be offset by some bytes\n // TODO: more efficient to check for `--` in bytes directly\n for (let i = 0; i < 10; ++i) {\n const text = decoder.decode(\n new Uint8Array(responseArrayBuffer, i, startBoundary.length),\n );\n if (text === startBoundary) {\n offset = i;\n }\n }\n\n if (offset === null) {\n throw new Error('Could not find initial boundary');\n }\n\n while (offset < responseArrayBuffer.byteLength) {\n const text = decoder.decode(\n new Uint8Array(responseArrayBuffer, offset,\n Math.min(startBoundary.length + 1024, responseArrayBuffer.byteLength - offset),\n ),\n );\n\n // break if we arrived at the end\n if (text.length === 0 || text.startsWith(endBoundary)) {\n break;\n }\n\n // assert that we are actually dealing with a byterange and are at the correct offset\n if (!text.startsWith(startBoundary)) {\n throw new Error('Part does not start with boundary');\n }\n\n // get a substring from where we read the headers\n const innerText = text.substr(startBoundary.length + 2);\n\n if (innerText.length === 0) {\n break;\n }\n\n // find the double linebreak that denotes the end of the headers\n const endOfHeaders = innerText.indexOf(CRLFCRLF);\n\n // parse the headers to get the content range size\n const headers = parseHeaders(innerText.substr(0, endOfHeaders));\n const { start, end, total } = parseContentRange(headers['
"/**\n * @typedef Slice\n * @property {number} offset\n * @property {number} length\n */\n\nexport class BaseSource {\n /**\n *\n * @param {Slice[]} slices\n * @returns {ArrayBuffer[]}\n */\n async fetch(slices, signal = undefined) {\n return Promise.all(\n slices.map((slice) => this.fetchSlice(slice, signal)),\n );\n }\n\n /**\n *\n * @param {Slice} slice\n * @returns {ArrayBuffer}\n */\n async fetchSlice(slice) {\n throw new Error(`fetching of slice ${slice} not possible, not implemented`);\n }\n\n /**\n * Returns the filesize if already determined and null otherwise\n */\n get fileSize() {\n return null;\n }\n\n async close() {\n // no-op by default\n }\n}\n",
"export function assign(target, source) {\n for (const key in source) {\n if (source.hasOwnProperty(key)) {\n target[key] = source[key];\n }\n }\n}\n\nexport function chunk(iterable, length) {\n const results = [];\n const lengthOfIterable = iterable.length;\n for (let i = 0; i < lengthOfIterable; i += length) {\n const chunked = [];\n for (let ci = i; ci < i + length; ci++) {\n chunked.push(iterable[ci]);\n }\n results.push(chunked);\n }\n return results;\n}\n\nexport function endsWith(string, expectedEnding) {\n if (string.length < expectedEnding.length) {\n return false;\n }\n const actualEnding = string.substr(string.length - expectedEnding.length);\n return actualEnding === expectedEnding;\n}\n\nexport function forEach(iterable, func) {\n const { length } = iterable;\n for (let i = 0; i < length; i++) {\n func(iterable[i], i);\n }\n}\n\nexport function invert(oldObj) {\n const newObj = {};\n for (const key in oldObj) {\n if (oldObj.hasOwnProperty(key)) {\n const value = oldObj[key];\n newObj[value] = key;\n }\n }\n return newObj;\n}\n\nexport function range(n) {\n const results = [];\n for (let i = 0; i < n; i++) {\n results.push(i);\n }\n return results;\n}\n\nexport function times(numTimes, func) {\n const results = [];\n for (let i = 0; i < numTimes; i++) {\n results.push(func(i));\n }\n return results;\n}\n\nexport function toArray(iterable) {\n const results = [];\n const { length } = iterable;\n for (let i = 0; i < length; i++) {\n results.push(iterable[i]);\n }\n return results;\n}\n\nexport function toArrayRecursively(input) {\n if (input.length) {\n return toArray(input).map(toArrayRecursively);\n }\n return input;\n}\n\n// copied from https://github.com/academia-de-codigo/parse-content-range-header/blob/master/index.js\nexport function parseContentRange(headerValue) {\n if (!headerValue) {\n return null;\n }\n\n if (typeof headerValue !== 'string') {\n throw new Error('invalid argument');\n }\n\n const parseInt = (number) => Number.parseInt(number, 10);\n\n // Check for presence of unit\n let matches = headerValue.match(/^(\\w*) /);\n const unit = matches && matches[1];\n\n // check for start-end/size header format\n matches = headerValue.match(/(\\d+)-(\\d+)\\/(\\d+|\\*)/);\n if (matches) {\n return {\n unit,\n first: parseInt(matches[1]),\n last: parseInt(matches[2]),\n length: matches[3] === '*' ? null : parseInt(matches[3]),\n };\n }\n\n // check for size header format\n matches = headerValue.match(/(\\d+|\\*)/);\n if (matches) {\n return {\n unit,\n first: null,\n last: null,\n length: matches[1] === '*' ? null : parseInt(matches[1]),\n };\n }\n\n return null;\n}\n\n/*\n * Promisified wrapper around 'setTimeout' to allow 'await'\n */\nexport async function wait(milliseconds) {\n return new Promise((resolve) => setTimeout(resolve, milliseconds));\n}\n\nexport function zip(a, b) {\n const A = Array.isArray(a) ? a : Array.from(a);\n const B = Array.isArray(b) ? b : Array.from(b);\n return A.map((k, i) => [k, B[i]]);\n}\n\n// Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error\nexport class AbortError extends Error {\n constructor(params) {\n // Pass remaining arguments (including vendor specific ones) to parent constructor\n super(params);\n\n // Maintains proper stack trace for where our error was thrown (only available on V8)\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, AbortError);\n }\n\n this.name = 'AbortError';\n }\n}\n\nexport class CustomAggregateError extends Error {\n constructor(errors, message) {\n super(message);\n this.errors = errors;\n this.message = message;\n this.name = 'AggregateError';\n }\n}\n\nexport const AggregateError = CustomAggregateError;\n",
"import LRUCache from 'lru-cache';\nimport { BaseSource } from './basesource.js';\nimport { AbortError, AggregateError, wait, zip } from '../utils.js';\n\nclass Block {\n /**\n *\n * @param {number} offset\n * @param {number} length\n * @param {ArrayBuffer} [data]\n */\n constructor(offset, length, data = null) {\n this.offset = offset;\n this.length = length;\n this.data = data;\n }\n\n /**\n * @returns {number} the top byte border\n */\n get top() {\n return this.offset + this.length;\n }\n}\n\nclass BlockGroup {\n /**\n *\n * @param {number} offset\n * @param {number} length\n * @param {number[]} blockIds\n */\n constructor(offset, length, blockIds) {\n this.offset = offset;\n this.length = length;\n this.blockIds = blockIds;\n }\n}\n\nexport class BlockedSource extends BaseSource {\n /**\n *\n * @param {Source} source The underlying source that shall be blocked and cached\n * @param {object} options\n */\n constructor(source, { blockSize = 65536, cacheSize = 100 } = {}) {\n super();\n this.source = source;\n this.blockSize = blockSize;\n\n this.blockCache = new LRUCache({ max: cacheSize });\n\n // mapping blockId -> Block instance\n this.blockRequests = new Map();\n\n // set of blockIds missing for the current requests\n this.blockIdsToFetch = new Set();\n }\n\n get fileSize() {\n return this.source.fileSize;\n }\n\n /**\n *\n * @param {basesource/Slice[]} slices\n */\n async fetch(slices, signal) {\n const cachedBlocks = new Map();\n const blockRequests = new Map();\n const missingBlockIds = new Set();\n\n for (const { offset, length } of slices) {\n let top = offset + length;\n\n const { fileSize } = this;\n if (fileSize !== null) {\n top = Math.min(top, fileSize);\n }\n\n const firstBlockOffset = Math.floor(offset / this.blockSize) * this.blockSize;\n\n // chunk the current slice into blocks\n for (let current = firstBlockOffset; current < top; current += this.blockSize) {\n // check if the block is cached, being requested or still missing\n const blockId = Math.floor(current / this.blockSize);\n\n if (this.blockCache.has(blockId)) {\n cachedBlocks.set(blockId, this.blockCache.get(blockId));\n } else if (this.blockRequests.has(blockId)) {\n blockRequests.set(blockId, this.blockRequests.get(blockId));\n } else if (this.blockIdsToFetch.has(blockId)) {\n missingBlockIds.add(blockId);\n } else {\n this.blockIdsToFetch.add(blockId);\n missingBlockIds.add(blockId);\n }\n }\n }\n\n // allow additional block requests to accumulate\n await wait();\n this.fetchBlocks(signal);\n\n for (const blockId of missingBlockIds) {\n const block = this.blockRequests.get(blockId);\n const cachedBlock = this.blockCache.get(blockId);\n\n if (block) {\n blockRequests.set(blockId, block);\n } else if (cachedBlock) {\n cachedBlocks.set(blockId, cachedBlock);\n } else {\n throw new Error(`Block ${blockId} is not in the block requests`);\n }\n }\n\n // actually await all pending requests\n let results = await Promise.allSettled(Array.from(blockRequests.values()));\n\n // perform retries if a block was interrupted by a previous signal\n if (results.some((result) => result.status === 'rejected')) {\n const retriedBlockRequests = new Set();\n for (const [blockId, result] of zip(blockRequests.keys(), results)) {\n const { rejected, reason } = result;\n if (rejected) {\n // push some blocks back to the to-fetch list if they were\n // aborted, but only when a different signal was used\n if (reason.name === 'AbortError' && reason.signal !== signal) {\n this.blockIdsToFetch.add(blockId);\n retriedBlockRequests.add(blockId);\n }\n }\n }\n\n // start the retry of some blocks if required\n if (this.blockIdsToFetch.l
"export class BaseResponse {\n /**\n * Returns whether the response has an ok'ish status code\n */\n get ok() {\n return this.status >= 200 && this.status <= 299;\n }\n\n /**\n * Returns the status code of the response\n */\n get status() {\n throw new Error('not implemented');\n }\n\n /**\n * Returns the value of the specified header\n * @param {string} headerName the header name\n * @returns {string} the header value\n */\n getHeader(headerName) { // eslint-disable-line no-unused-vars\n throw new Error('not implemented');\n }\n\n /**\n * @returns {ArrayBuffer} the response data of the request\n */\n async getData() {\n throw new Error('not implemented');\n }\n}\n\nexport class BaseClient {\n constructor(url) {\n this.url = url;\n }\n\n /**\n * Send a request with the options\n * @param {object} [options]\n */\n async request({ headers, credentials, signal } = {}) { // eslint-disable-line no-unused-vars\n throw new Error('request is not implemented');\n }\n}\n",
"import { BaseClient, BaseResponse } from './base.js';\n\nclass FetchResponse extends BaseResponse {\n /**\n * BaseResponse facade for fetch API Response\n * @param {Response} response\n */\n constructor(response) {\n super();\n this.response = response;\n }\n\n get status() {\n return this.response.status;\n }\n\n getHeader(name) {\n return this.response.headers.get(name);\n }\n\n async getData() {\n const data = this.response.arrayBuffer\n ? await this.response.arrayBuffer()\n : (await this.response.buffer()).buffer;\n return data;\n }\n}\n\nexport class FetchClient extends BaseClient {\n constructor(url, credentials) {\n super(url);\n this.credentials = credentials;\n }\n\n async request({ headers, credentials, signal } = {}) {\n const response = await fetch(this.url, {\n headers, credentials, signal,\n });\n return new FetchResponse(response);\n }\n}\n",
"import { BaseClient, BaseResponse } from './base.js';\nimport { AbortError } from '../../utils.js';\n\nclass XHRResponse extends BaseResponse {\n /**\n * BaseResponse facade for XMLHttpRequest\n * @param {XMLHttpRequest} xhr\n * @param {ArrayBuffer} data\n */\n constructor(xhr, data) {\n super();\n this.xhr = xhr;\n this.data = data;\n }\n\n get status() {\n return this.xhr.status;\n }\n\n getHeader(name) {\n return this.xhr.getResponseHeader(name);\n }\n\n async getData() {\n return this.data;\n }\n}\n\nexport class XHRClient extends BaseClient {\n constructRequest(headers, signal) {\n return new Promise((resolve, reject) => {\n const xhr = new XMLHttpRequest();\n xhr.open('GET', this.url);\n xhr.responseType = 'arraybuffer';\n for (const [key, value] of Object.entries(headers)) {\n xhr.setRequestHeader(key, value);\n }\n\n // hook signals\n xhr.onload = () => {\n const data = xhr.response;\n resolve(new XHRResponse(xhr, data));\n };\n xhr.onerror = reject;\n xhr.onabort = () => reject(new AbortError('Request aborted'));\n xhr.send();\n\n if (signal) {\n if (signal.aborted) {\n xhr.abort();\n }\n signal.addEventListener('abort', () => xhr.abort());\n }\n });\n }\n\n async request({ headers, signal } = {}) {\n const response = await this.constructRequest(headers, signal);\n return response;\n }\n}\n",
"import http from 'http';\nimport https from 'https';\nimport urlMod from 'url';\n\nimport { BaseClient, BaseResponse } from './base.js';\nimport { AbortError } from '../../utils.js';\n\nclass HttpResponse extends BaseResponse {\n /**\n * BaseResponse facade for node HTTP/HTTPS API Response\n * @param {http.ServerResponse} response\n */\n constructor(response, dataPromise) {\n super();\n this.response = response;\n this.dataPromise = dataPromise;\n }\n\n get status() {\n return this.response.statusCode;\n }\n\n getHeader(name) {\n return this.response.headers[name];\n }\n\n async getData() {\n const data = await this.dataPromise;\n return data;\n }\n}\n\nexport class HttpClient extends BaseClient {\n constructor(url) {\n super(url);\n this.parsedUrl = urlMod.parse(this.url);\n this.httpApi = (this.parsedUrl.protocol === 'http:' ? http : https);\n }\n\n constructRequest(headers, signal) {\n return new Promise((resolve, reject) => {\n const request = this.httpApi.get(\n {\n ...this.parsedUrl,\n headers,\n },\n (response) => {\n const dataPromise = new Promise((resolveData) => {\n const chunks = [];\n\n // collect chunks\n response.on('data', (chunk) => {\n chunks.push(chunk);\n });\n\n // concatenate all chunks and resolve the promise with the resulting buffer\n response.on('end', () => {\n const data = Buffer.concat(chunks).buffer;\n resolveData(data);\n });\n response.on('error', reject);\n });\n resolve(new HttpResponse(response, dataPromise));\n },\n );\n request.on('error', reject);\n\n if (signal) {\n if (signal.aborted) {\n request.destroy(new AbortError('Request aborted'));\n }\n signal.addEventListener('abort', () => request.destroy(new AbortError('Request aborted')));\n }\n });\n }\n\n async request({ headers, signal } = {}) {\n const response = await this.constructRequest(headers, signal);\n return response;\n }\n}\n",
"import { parseByteRanges, parseContentRange, parseContentType } from './httputils.js';\nimport { BaseSource } from './basesource.js';\nimport { BlockedSource } from './blockedsource.js';\n\nimport { FetchClient } from './client/fetch.js';\nimport { XHRClient } from './client/xhr.js';\nimport { HttpClient } from './client/http.js';\n\nclass RemoteSource extends BaseSource {\n /**\n *\n * @param {BaseClient} client\n * @param {object} headers\n * @param {numbers} maxRanges\n * @param {boolean} allowFullFile\n */\n constructor(client, headers, maxRanges, allowFullFile) {\n super();\n this.client = client;\n this.headers = headers;\n this.maxRanges = maxRanges;\n this.allowFullFile = allowFullFile;\n this._fileSize = null;\n }\n\n /**\n *\n * @param {Slice[]} slices\n */\n async fetch(slices, signal) {\n // if we allow multi-ranges, split the incoming request into that many sub-requests\n // and join them afterwards\n if (this.maxRanges >= slices.length) {\n return this.fetchSlices(slices, signal);\n } else if (this.maxRanges > 0 && slices.length > 1) {\n // TODO: split into multiple multi-range requests\n\n // const subSlicesRequests = [];\n // for (let i = 0; i < slices.length; i += this.maxRanges) {\n // subSlicesRequests.push(\n // this.fetchSlices(slices.slice(i, i + this.maxRanges), signal),\n // );\n // }\n // return (await Promise.all(subSlicesRequests)).flat();\n }\n\n // otherwise make a single request for each slice\n return Promise.all(\n slices.map((slice) => this.fetchSlice(slice, signal)),\n );\n }\n\n async fetchSlices(slices, signal) {\n const response = await this.client.request({\n headers: {\n ...this.headers,\n Range: `bytes=${slices\n .map(({ offset, length }) => `${offset}-${offset + length}`)\n .join(',')\n }`,\n },\n signal,\n });\n\n if (!response.ok) {\n throw new Error('Error fetching data.');\n } else if (response.status === 206) {\n const { type, params } = parseContentType(response.getHeader('content-type'));\n if (type === 'multipart/byteranges') {\n const byteRanges = parseByteRanges(await response.getData(), params.boundary);\n this._fileSize = byteRanges[0].fileSize || null;\n return byteRanges;\n }\n\n const data = await response.getData();\n\n const { start, end, total } = parseContentRange(response.getHeader('content-range'));\n this._fileSize = total || null;\n const first = [{\n data,\n offset: start,\n length: end - start,\n }];\n\n if (slices.length > 1) {\n // we requested more than one slice, but got only the first\n // unfortunately, some HTTP Servers don't support multi-ranges\n // and return onyl the first\n\n // get the rest of the slices and fetch them iteratetively\n const others = await Promise.all(slices.slice(1).map((slice) => this.fetchSlice(slice, signal)));\n return first.concat(others);\n }\n return first;\n } else {\n if (!this.allowFullFile) {\n throw new Error('Server responded with full file');\n }\n const data = await response.getData();\n this._fileSize = data.byteLength;\n return [{\n data,\n offset: 0,\n length: data.byteLength,\n }];\n }\n }\n\n async fetchSlice(slice, signal) {\n const { offset, length } = slice;\n const response = await this.client.request({\n headers: {\n ...this.headers,\n Range: `bytes=${offset}-${offset + length}`,\n },\n signal,\n });\n\n // check the response was okay and if the server actually understands range requests\n if (!response.ok) {\n throw new Error('Error fetching data.');\n } else if (response.status === 206) {\n const data = await response.getData();\n\n const { total } = parseContentRange(response.getHeader('content-range'));\n this._fileSize = total ||
"/** @module geotiff */\nimport GeoTIFFImage from './geotiffimage.js';\nimport DataView64 from './dataview64.js';\nimport DataSlice from './dataslice.js';\nimport Pool from './pool.js';\n\nimport { makeRemoteSource } from './source/remote.js';\nimport { makeBufferSource } from './source/arraybuffer.js';\nimport { makeFileReaderSource } from './source/filereader.js';\nimport { makeFileSource } from './source/file.js';\n\nimport { fieldTypes, fieldTagNames, arrayFields, geoKeyNames } from './globals.js';\nimport { writeGeotiff } from './geotiffwriter.js';\nimport * as globals from './globals.js';\nimport * as rgb from './rgb.js';\nimport { getDecoder, addDecoder } from './compression/index.js';\nimport { setLogger } from './logging.js';\n\nexport { globals };\nexport { rgb };\nexport { getDecoder, addDecoder };\nexport { setLogger };\n\n/**\n * @typedef {Uint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array | Float32Array | Float64Array}\n * TypedArray\n */\n\nfunction getFieldTypeLength(fieldType) {\n switch (fieldType) {\n case fieldTypes.BYTE: case fieldTypes.ASCII: case fieldTypes.SBYTE: case fieldTypes.UNDEFINED:\n return 1;\n case fieldTypes.SHORT: case fieldTypes.SSHORT:\n return 2;\n case fieldTypes.LONG: case fieldTypes.SLONG: case fieldTypes.FLOAT: case fieldTypes.IFD:\n return 4;\n case fieldTypes.RATIONAL: case fieldTypes.SRATIONAL: case fieldTypes.DOUBLE:\n case fieldTypes.LONG8: case fieldTypes.SLONG8: case fieldTypes.IFD8:\n return 8;\n default:\n throw new RangeError(`Invalid field type: ${fieldType}`);\n }\n}\n\nfunction parseGeoKeyDirectory(fileDirectory) {\n const rawGeoKeyDirectory = fileDirectory.GeoKeyDirectory;\n if (!rawGeoKeyDirectory) {\n return null;\n }\n\n const geoKeyDirectory = {};\n for (let i = 4; i <= rawGeoKeyDirectory[3] * 4; i += 4) {\n const key = geoKeyNames[rawGeoKeyDirectory[i]];\n const location = (rawGeoKeyDirectory[i + 1])\n ? (fieldTagNames[rawGeoKeyDirectory[i + 1]]) : null;\n const count = rawGeoKeyDirectory[i + 2];\n const offset = rawGeoKeyDirectory[i + 3];\n\n let value = null;\n if (!location) {\n value = offset;\n } else {\n value = fileDirectory[location];\n if (typeof value === 'undefined' || value === null) {\n throw new Error(`Could not get value of geoKey '${key}'.`);\n } else if (typeof value === 'string') {\n value = value.substring(offset, offset + count - 1);\n } else if (value.subarray) {\n value = value.subarray(offset, offset + count);\n if (count === 1) {\n value = value[0];\n }\n }\n }\n geoKeyDirectory[key] = value;\n }\n return geoKeyDirectory;\n}\n\nfunction getValues(dataSlice, fieldType, count, offset) {\n let values = null;\n let readMethod = null;\n const fieldTypeLength = getFieldTypeLength(fieldType);\n\n switch (fieldType) {\n case fieldTypes.BYTE: case fieldTypes.ASCII: case fieldTypes.UNDEFINED:\n values = new Uint8Array(count); readMethod = dataSlice.readUint8;\n break;\n case fieldTypes.SBYTE:\n values = new Int8Array(count); readMethod = dataSlice.readInt8;\n break;\n case fieldTypes.SHORT:\n values = new Uint16Array(count); readMethod = dataSlice.readUint16;\n break;\n case fieldTypes.SSHORT:\n values = new Int16Array(count); readMethod = dataSlice.readInt16;\n break;\n case fieldTypes.LONG: case fieldTypes.IFD:\n values = new Uint32Array(count); readMethod = dataSlice.readUint32;\n break;\n case fieldTypes.SLONG:\n values = new Int32Array(count); readMethod = dataSlice.readInt32;\n break;\n case fieldTypes.LONG8: case fieldTypes.IFD8:\n values = new Array(count); readMethod = dataSlice.readUint64;\n break;\n case fieldTypes.SLONG8:\n values = new Array(count); readMethod = dataSlice.readInt64;\n break;\n case fieldTypes.RATIONAL:\n values = new Uint32Array(count * 2); readMethod = dataSlice.readUint32;\n break;\n case fieldTypes.SRA
"import { getDecoder } from './compression/index.js';\n\nconst defaultPoolSize = typeof navigator !== 'undefined' ? (navigator.hardwareConcurrency || 2) : 2;\n\n/**\n * @module pool\n */\n\n/**\n * Pool for workers to decode chunks of the images.\n */\nclass Pool {\n /**\n * @constructor\n * @param {Number} [size] The size of the pool. Defaults to the number of CPUs\n * available. When this parameter is `null` or 0, then the\n * decoding will be done in the main thread.\n * @param {function(): Worker} [createWorker] A function that creates the decoder worker.\n * Defaults to a worker with all decoders that ship with geotiff.js. The `createWorker()`\n * function is expected to return a `Worker` compatible with Web Workers. For code that\n * runs in Node, [web-worker](https://www.npmjs.com/package/web-worker) is a good choice.\n *\n * A worker that uses a custom lzw decoder would look like this `my-custom-worker.js` file:\n * ```js\n * import { addDecoder, getDecoder } from 'geotiff';\n * addDecoder(5, () => import ('./my-custom-lzw').then((m) => m.default));\n * self.addEventListener('message', async (e) => {\n * const { id, fileDirectory, buffer } = e.data;\n * const decoder = await getDecoder(fileDirectory);\n * const decoded = await decoder.decode(fileDirectory, buffer);\n * self.postMessage({ decoded, id }, [decoded]);\n * });\n * ```\n * The way the above code is built into a worker by the `createWorker()` function\n * depends on the used bundler. For most bundlers, something like this will work:\n * ```js\n * function createWorker() {\n * return new Worker(new URL('./my-custom-worker.js', import.meta.url));\n * }\n * ```\n */\n constructor(size = defaultPoolSize, createWorker) {\n this.workers = null;\n this._awaitingDecoder = null;\n this.size = size;\n this.messageId = 0;\n if (size) {\n this._awaitingDecoder = createWorker ? Promise.resolve(createWorker) : new Promise((resolve) => {\n import('./worker/decoder.js').then((module) => {\n resolve(module.create);\n });\n });\n this._awaitingDecoder.then((create) => {\n this._awaitingDecoder = null;\n this.workers = [];\n for (let i = 0; i < size; i++) {\n this.workers.push({ worker: create(), idle: true });\n }\n });\n }\n }\n\n /**\n * Decode the given block of bytes with the set compression method.\n * @param {ArrayBuffer} buffer the array buffer of bytes to decode.\n * @returns {Promise<ArrayBuffer>} the decoded result as a `Promise`\n */\n async decode(fileDirectory, buffer) {\n if (this._awaitingDecoder) {\n await this._awaitingDecoder;\n }\n return this.size === 0\n ? getDecoder(fileDirectory).then((decoder) => decoder.decode(fileDirectory, buffer))\n : new Promise((resolve) => {\n const worker = this.workers.find((candidate) => candidate.idle)\n || this.workers[Math.floor(Math.random() * this.size)];\n worker.idle = false;\n const id = this.messageId++;\n const onMessage = (e) => {\n if (e.data.id === id) {\n worker.idle = true;\n resolve(e.data.decoded);\n worker.worker.removeEventListener('message', onMessage);\n }\n };\n worker.worker.addEventListener('message', onMessage);\n worker.worker.postMessage({ fileDirectory, buffer, id }, [buffer]);\n });\n }\n\n destroy() {\n if (this.workers) {\n this.workers.forEach((worker) => {\n worker.worker.terminate();\n });\n this.workers = null;\n }\n }\n}\n\nexport default Pool;\n",
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
"/*! https://mths.be/punycode v1.3.2 by @mathias */\n;(function(root) {\n\n\t/** Detect free variables */\n\tvar freeExports = typeof exports == 'object' && exports &&\n\t\t!exports.nodeType && exports;\n\tvar freeModule = typeof module == 'object' && module &&\n\t\t!module.nodeType && module;\n\tvar freeGlobal = typeof global == 'object' && global;\n\tif (\n\t\tfreeGlobal.global === freeGlobal ||\n\t\tfreeGlobal.window === freeGlobal ||\n\t\tfreeGlobal.self === freeGlobal\n\t) {\n\t\troot = freeGlobal;\n\t}\n\n\t/**\n\t * The `punycode` object.\n\t * @name punycode\n\t * @type Object\n\t */\n\tvar punycode,\n\n\t/** Highest positive signed 32-bit float value */\n\tmaxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1\n\n\t/** Bootstring parameters */\n\tbase = 36,\n\ttMin = 1,\n\ttMax = 26,\n\tskew = 38,\n\tdamp = 700,\n\tinitialBias = 72,\n\tinitialN = 128, // 0x80\n\tdelimiter = '-', // '\\x2D'\n\n\t/** Regular expressions */\n\tregexPunycode = /^xn--/,\n\tregexNonASCII = /[^\\x20-\\x7E]/, // unprintable ASCII chars + non-ASCII chars\n\tregexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g, // RFC 3490 separators\n\n\t/** Error messages */\n\terrors = {\n\t\t'overflow': 'Overflow: input needs wider integers to process',\n\t\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n\t\t'invalid-input': 'Invalid input'\n\t},\n\n\t/** Convenience shortcuts */\n\tbaseMinusTMin = base - tMin,\n\tfloor = Math.floor,\n\tstringFromCharCode = String.fromCharCode,\n\n\t/** Temporary variable */\n\tkey;\n\n\t/*--------------------------------------------------------------------------*/\n\n\t/**\n\t * A generic error utility function.\n\t * @private\n\t * @param {String} type The error type.\n\t * @returns {Error} Throws a `RangeError` with the applicable error message.\n\t */\n\tfunction error(type) {\n\t\tthrow RangeError(errors[type]);\n\t}\n\n\t/**\n\t * A generic `Array#map` utility function.\n\t * @private\n\t * @param {Array} array The array to iterate over.\n\t * @param {Function} callback The function that gets called for every array\n\t * item.\n\t * @returns {Array} A new array of values returned by the callback function.\n\t */\n\tfunction map(array, fn) {\n\t\tvar length = array.length;\n\t\tvar result = [];\n\t\twhile (length--) {\n\t\t\tresult[length] = fn(array[length]);\n\t\t}\n\t\treturn result;\n\t}\n\n\t/**\n\t * A simple `Array#map`-like wrapper to work with domain name strings or email\n\t * addresses.\n\t * @private\n\t * @param {String} domain The domain name or email address.\n\t * @param {Function} callback The function that gets called for every\n\t * character.\n\t * @returns {Array} A new string of characters returned by the callback\n\t * function.\n\t */\n\tfunction mapDomain(string, fn) {\n\t\tvar parts = string.split('@');\n\t\tvar result = '';\n\t\tif (parts.length > 1) {\n\t\t\t// In email addresses, only the domain name should be punycoded. Leave\n\t\t\t// the local part (i.e. everything up to `@`) intact.\n\t\t\tresult = parts[0] + '@';\n\t\t\tstring = parts[1];\n\t\t}\n\t\t// Avoid `split(regex)` for IE8 compatibility. See #17.\n\t\tstring = string.replace(regexSeparators, '\\x2E');\n\t\tvar labels = string.split('.');\n\t\tvar encoded = map(labels, fn).join('.');\n\t\treturn result + encoded;\n\t}\n\n\t/**\n\t * Creates an array containing the numeric code points of each Unicode\n\t * character in the string. While JavaScript uses UCS-2 internally,\n\t * this function will convert a pair of surrogate halves (each of which\n\t * UCS-2 exposes as separate characters) into a single code point,\n\t * matching UTF-16.\n\t * @see `punycode.ucs2.encode`\n\t * @see <https://mathiasbynens.be/notes/javascript-encoding>\n\t * @memberOf punycode.ucs2\n\t * @name decode\n\t * @param {String} string The Unicode input string (UCS-2).\n\t * @returns {Array} The new array of code points.\n\t */\n\tfunction ucs2decode(string) {\n\t\tvar output = [],\n\t\t counter = 0,\n\t\t length = string.length,\n\t\t value,\n\t\t extra;\n\t\twhile (counter < length) {\n\t\t\tvalue = string.charCodeAt(coun
"'use strict';\n\nmodule.exports = {\n isString: function(arg) {\n return typeof(arg) === 'string';\n },\n isObject: function(arg) {\n return typeof(arg) === 'object' && arg !== null;\n },\n isNull: function(arg) {\n return arg === null;\n },\n isNullOrUndefined: function(arg) {\n return arg == null;\n }\n};\n",
"// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n// If obj.hasOwnProperty has been overridden, then calling\n// obj.hasOwnProperty(prop) will break.\n// See: https://github.com/joyent/node/issues/1707\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nmodule.exports = function(qs, sep, eq, options) {\n sep = sep || '&';\n eq = eq || '=';\n var obj = {};\n\n if (typeof qs !== 'string' || qs.length === 0) {\n return obj;\n }\n\n var regexp = /\\+/g;\n qs = qs.split(sep);\n\n var maxKeys = 1000;\n if (options && typeof options.maxKeys === 'number') {\n maxKeys = options.maxKeys;\n }\n\n var len = qs.length;\n // maxKeys <= 0 means that we should not limit keys count\n if (maxKeys > 0 && len > maxKeys) {\n len = maxKeys;\n }\n\n for (var i = 0; i < len; ++i) {\n var x = qs[i].replace(regexp, '%20'),\n idx = x.indexOf(eq),\n kstr, vstr, k, v;\n\n if (idx >= 0) {\n kstr = x.substr(0, idx);\n vstr = x.substr(idx + 1);\n } else {\n kstr = x;\n vstr = '';\n }\n\n k = decodeURIComponent(kstr);\n v = decodeURIComponent(vstr);\n\n if (!hasOwnProperty(obj, k)) {\n obj[k] = v;\n } else if (Array.isArray(obj[k])) {\n obj[k].push(v);\n } else {\n obj[k] = [obj[k], v];\n }\n }\n\n return obj;\n};\n",
"// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar stringifyPrimitive = function(v) {\n switch (typeof v) {\n case 'string':\n return v;\n\n case 'boolean':\n return v ? 'true' : 'false';\n\n case 'number':\n return isFinite(v) ? v : '';\n\n default:\n return '';\n }\n};\n\nmodule.exports = function(obj, sep, eq, name) {\n sep = sep || '&';\n eq = eq || '=';\n if (obj === null) {\n obj = undefined;\n }\n\n if (typeof obj === 'object') {\n return Object.keys(obj).map(function(k) {\n var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;\n if (Array.isArray(obj[k])) {\n return obj[k].map(function(v) {\n return ks + encodeURIComponent(stringifyPrimitive(v));\n }).join(sep);\n } else {\n return ks + encodeURIComponent(stringifyPrimitive(obj[k]));\n }\n }).join(sep);\n\n }\n\n if (!name) return '';\n return encodeURIComponent(stringifyPrimitive(name)) + eq +\n encodeURIComponent(stringifyPrimitive(obj));\n};\n",
"'use strict';\n\nexports.decode = exports.parse = require('./decode');\nexports.encode = exports.stringify = require('./encode');\n",
"// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar punycode = require('punycode');\nvar util = require('./util');\n\nexports.parse = urlParse;\nexports.resolve = urlResolve;\nexports.resolveObject = urlResolveObject;\nexports.format = urlFormat;\n\nexports.Url = Url;\n\nfunction Url() {\n this.protocol = null;\n this.slashes = null;\n this.auth = null;\n this.host = null;\n this.port = null;\n this.hostname = null;\n this.hash = null;\n this.search = null;\n this.query = null;\n this.pathname = null;\n this.path = null;\n this.href = null;\n}\n\n// Reference: RFC 3986, RFC 1808, RFC 2396\n\n// define these here so at least they only have to be\n// compiled once on the first module load.\nvar protocolPattern = /^([a-z0-9.+-]+:)/i,\n portPattern = /:[0-9]*$/,\n\n // Special case for a simple path URL\n simplePathPattern = /^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,\n\n // RFC 2396: characters reserved for delimiting URLs.\n // We actually just auto-escape these.\n delims = ['<', '>', '\"', '`', ' ', '\\r', '\\n', '\\t'],\n\n // RFC 2396: characters not allowed for various reasons.\n unwise = ['{', '}', '|', '\\\\', '^', '`'].concat(delims),\n\n // Allowed by RFCs, but cause of XSS attacks. Always escape these.\n autoEscape = ['\\''].concat(unwise),\n // Characters that are never ever allowed in a hostname.\n // Note that any invalid chars are also handled, but these\n // are the ones that are *expected* to be seen, so we fast-path\n // them.\n nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),\n hostEndingChars = ['/', '?', '#'],\n hostnameMaxLen = 255,\n hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,\n hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,\n // protocols that can allow \"unsafe\" and \"unwise\" chars.\n unsafeProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that never have a hostname.\n hostlessProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that always contain a // bit.\n slashedProtocol = {\n 'http': true,\n 'https': true,\n 'ftp': true,\n 'gopher': true,\n 'file': true,\n 'http:': true,\n 'https:': true,\n 'ftp:': true,\n 'gopher:': true,\n 'file:': true\n },\n querystring = require('querystring');\n\nfunction urlParse(url, parseQueryString, slashesDenoteHost) {\n if (url && util.isObject(url) && url instanceof Url) return url;\n\n var u = new Url;\n u.parse(url, parseQueryString, slashesDenoteHost);\n return u;\n}\n\nUrl.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {\n if (!util.isString(url)) {\n throw new TypeError(\"Parameter 'url' must be a string, not \" + typeof url);\n }\n\n // Copy chrome, IE, opera backslash-handling behavior.\n // Back slashes before the query string get converted to forward slashes\n // See:
"// @flow\n\nexport default function (output: any, ...inputs: Array<any>) {\n for (const input of inputs) {\n for (const k in input) {\n output[k] = input[k];\n }\n }\n return output;\n}\n",
"// @flow\n\nclass ParsingError extends Error {\n key: string;\n message: string;\n constructor(key: string, message: string) {\n super(message);\n this.message = message;\n this.key = key;\n }\n}\n\nexport default ParsingError;\n",
"// @flow\n\nimport type {Expression} from './expression.js';\n\n/**\n * Tracks `let` bindings during expression parsing.\n * @private\n */\nclass Scope {\n parent: ?Scope;\n bindings: {[_: string]: Expression};\n constructor(parent?: Scope, bindings: Array<[string, Expression]> = []) {\n this.parent = parent;\n this.bindings = {};\n for (const [name, expression] of bindings) {\n this.bindings[name] = expression;\n }\n }\n\n concat(bindings: Array<[string, Expression]>) {\n return new Scope(this, bindings);\n }\n\n get(name: string): Expression {\n if (this.bindings[name]) { return this.bindings[name]; }\n if (this.parent) { return this.parent.get(name); }\n throw new Error(`${name} not found in scope.`);\n }\n\n has(name: string): boolean {\n if (this.bindings[name]) return true;\n return this.parent ? this.parent.has(name) : false;\n }\n}\n\nexport default Scope;\n",
"// @flow\n\nexport type NullTypeT = { kind: 'null' };\nexport type NumberTypeT = { kind: 'number' };\nexport type StringTypeT = { kind: 'string' };\nexport type BooleanTypeT = { kind: 'boolean' };\nexport type ColorTypeT = { kind: 'color' };\nexport type ObjectTypeT = { kind: 'object' };\nexport type ValueTypeT = { kind: 'value' };\nexport type ErrorTypeT = { kind: 'error' };\nexport type CollatorTypeT = { kind: 'collator' };\nexport type FormattedTypeT = { kind: 'formatted' };\nexport type ResolvedImageTypeT = { kind: 'resolvedImage' };\n\nexport type EvaluationKind = 'constant' | 'source' | 'camera' | 'composite';\n\nexport type Type =\n NullTypeT |\n NumberTypeT |\n StringTypeT |\n BooleanTypeT |\n ColorTypeT |\n ObjectTypeT |\n ValueTypeT |\n ArrayType | // eslint-disable-line no-use-before-define\n ErrorTypeT |\n CollatorTypeT |\n FormattedTypeT |\n ResolvedImageTypeT\n\nexport type ArrayType = {\n kind: 'array',\n itemType: Type,\n N: ?number\n}\n\nexport type NativeType = 'number' | 'string' | 'boolean' | 'null' | 'array' | 'object'\n\nexport const NullType = {kind: 'null'};\nexport const NumberType = {kind: 'number'};\nexport const StringType = {kind: 'string'};\nexport const BooleanType = {kind: 'boolean'};\nexport const ColorType = {kind: 'color'};\nexport const ObjectType = {kind: 'object'};\nexport const ValueType = {kind: 'value'};\nexport const ErrorType = {kind: 'error'};\nexport const CollatorType = {kind: 'collator'};\nexport const FormattedType = {kind: 'formatted'};\nexport const ResolvedImageType = {kind: 'resolvedImage'};\n\nexport function array(itemType: Type, N: ?number): ArrayType {\n return {\n kind: 'array',\n itemType,\n N\n };\n}\n\nexport function toString(type: Type): string {\n if (type.kind === 'array') {\n const itemType = toString(type.itemType);\n return typeof type.N === 'number' ?\n `array<${itemType}, ${type.N}>` :\n type.itemType.kind === 'value' ? 'array' : `array<${itemType}>`;\n } else {\n return type.kind;\n }\n}\n\nconst valueMemberTypes = [\n NullType,\n NumberType,\n StringType,\n BooleanType,\n ColorType,\n FormattedType,\n ObjectType,\n array(ValueType),\n ResolvedImageType\n];\n\n/**\n * Returns null if `t` is a subtype of `expected`; otherwise returns an\n * error message.\n * @private\n */\nexport function checkSubtype(expected: Type, t: Type): ?string {\n if (t.kind === 'error') {\n // Error is a subtype of every type\n return null;\n } else if (expected.kind === 'array') {\n if (t.kind === 'array' &&\n ((t.N === 0 && t.itemType.kind === 'value') || !checkSubtype(expected.itemType, t.itemType)) &&\n (typeof expected.N !== 'number' || expected.N === t.N)) {\n return null;\n }\n } else if (expected.kind === t.kind) {\n return null;\n } else if (expected.kind === 'value') {\n for (const memberType of valueMemberTypes) {\n if (!checkSubtype(memberType, t)) {\n return null;\n }\n }\n }\n\n return `Expected ${toString(expected)} but found ${toString(t)} instead.`;\n}\n\nexport function isValidType(provided: Type, allowedTypes: Array<Type>): boolean {\n return allowedTypes.some(t => t.kind === provided.kind);\n}\n\nexport function isValidNativeType(provided: any, allowedTypes: Array<NativeType>): boolean {\n return allowedTypes.some(t => {\n if (t === 'null') {\n return provided === null;\n } else if (t === 'array') {\n return Array.isArray(provided);\n } else if (t === 'object') {\n return provided && !Array.isArray(provided) && typeof provided === 'object';\n } else {\n return t === typeof provided;\n }\n });\n}\n",
"// (c) Dean McNamee <dean@gmail.com>, 2012.\n//\n// https://github.com/deanm/css-color-parser-js\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to\n// deal in the Software without restriction, including without limitation the\n// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n// sell copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n// IN THE SOFTWARE.\n\n// http://www.w3.org/TR/css3-color/\nvar kCSSColorTable = {\n \"transparent\":[0,0,0,0], \"aliceblue\":[240,248,255,1],\n \"antiquewhite\":[250,235,215,1], \"aqua\":[0,255,255,1],\n \"aquamarine\":[127,255,212,1], \"azure\":[240,255,255,1],\n \"beige\":[245,245,220,1], \"bisque\":[255,228,196,1],\n \"black\":[0,0,0,1], \"blanchedalmond\":[255,235,205,1],\n \"blue\":[0,0,255,1], \"blueviolet\":[138,43,226,1],\n \"brown\":[165,42,42,1], \"burlywood\":[222,184,135,1],\n \"cadetblue\":[95,158,160,1], \"chartreuse\":[127,255,0,1],\n \"chocolate\":[210,105,30,1], \"coral\":[255,127,80,1],\n \"cornflowerblue\":[100,149,237,1], \"cornsilk\":[255,248,220,1],\n \"crimson\":[220,20,60,1], \"cyan\":[0,255,255,1],\n \"darkblue\":[0,0,139,1], \"darkcyan\":[0,139,139,1],\n \"darkgoldenrod\":[184,134,11,1], \"darkgray\":[169,169,169,1],\n \"darkgreen\":[0,100,0,1], \"darkgrey\":[169,169,169,1],\n \"darkkhaki\":[189,183,107,1], \"darkmagenta\":[139,0,139,1],\n \"darkolivegreen\":[85,107,47,1], \"darkorange\":[255,140,0,1],\n \"darkorchid\":[153,50,204,1], \"darkred\":[139,0,0,1],\n \"darksalmon\":[233,150,122,1], \"darkseagreen\":[143,188,143,1],\n \"darkslateblue\":[72,61,139,1], \"darkslategray\":[47,79,79,1],\n \"darkslategrey\":[47,79,79,1], \"darkturquoise\":[0,206,209,1],\n \"darkviolet\":[148,0,211,1], \"deeppink\":[255,20,147,1],\n \"deepskyblue\":[0,191,255,1], \"dimgray\":[105,105,105,1],\n \"dimgrey\":[105,105,105,1], \"dodgerblue\":[30,144,255,1],\n \"firebrick\":[178,34,34,1], \"floralwhite\":[255,250,240,1],\n \"forestgreen\":[34,139,34,1], \"fuchsia\":[255,0,255,1],\n \"gainsboro\":[220,220,220,1], \"ghostwhite\":[248,248,255,1],\n \"gold\":[255,215,0,1], \"goldenrod\":[218,165,32,1],\n \"gray\":[128,128,128,1], \"green\":[0,128,0,1],\n \"greenyellow\":[173,255,47,1], \"grey\":[128,128,128,1],\n \"honeydew\":[240,255,240,1], \"hotpink\":[255,105,180,1],\n \"indianred\":[205,92,92,1], \"indigo\":[75,0,130,1],\n \"ivory\":[255,255,240,1], \"khaki\":[240,230,140,1],\n \"lavender\":[230,230,250,1], \"lavenderblush\":[255,240,245,1],\n \"lawngreen\":[124,252,0,1], \"lemonchiffon\":[255,250,205,1],\n \"lightblue\":[173,216,230,1], \"lightcoral\":[240,128,128,1],\n \"lightcyan\":[224,255,255,1], \"lightgoldenrodyellow\":[250,250,210,1],\n \"lightgray\":[211,211,211,1], \"lightgreen\":[144,238,144,1],\n \"lightgrey\":[211,211,211,1], \"lightpink\":[255,182,193,1],\n \"lightsalmon\":[255,160,122,1], \"lightseagreen\":[32,178,170,1],\n \"lightskyblue\":[135,206,250,1], \"lightslategray\":[119,136,153,1],\n \"lightslategrey\":[119,136,153,1], \"lightsteelblue\":[176,196,222,1],\n \"lightyellow\":[255,255,224,1], \"lime\":[0,255,0,1],\n \"limegreen\":[50,205,50,1], \"linen\":[250,240,230,1],\n \"magenta\":[255,0,255,1], \"maroon\":[128,0,0,1],\n \"mediumaquamarine\":[102,205,170,1], \"mediumblue\":[0,0,205,1]
"// @flow\n\nimport {parseCSSColor} from 'csscolorparser';\n\n/**\n * An RGBA color value. Create instances from color strings using the static\n * method `Color.parse`. The constructor accepts RGB channel values in the range\n * `[0, 1]`, premultiplied by A.\n *\n * @param {number} r The red channel.\n * @param {number} g The green channel.\n * @param {number} b The blue channel.\n * @param {number} a The alpha channel.\n * @private\n */\nclass Color {\n r: number;\n g: number;\n b: number;\n a: number;\n\n constructor(r: number, g: number, b: number, a: number = 1) {\n this.r = r;\n this.g = g;\n this.b = b;\n this.a = a;\n }\n\n static black: Color;\n static white: Color;\n static transparent: Color;\n static red: Color;\n static blue: Color;\n\n /**\n * Parses valid CSS color strings and returns a `Color` instance.\n * @returns A `Color` instance, or `undefined` if the input is not a valid color string.\n */\n static parse(input?: string | Color | null): Color | void {\n if (!input) {\n return undefined;\n }\n\n if (input instanceof Color) {\n return input;\n }\n\n if (typeof input !== 'string') {\n return undefined;\n }\n\n const rgba = parseCSSColor(input);\n if (!rgba) {\n return undefined;\n }\n\n return new Color(\n rgba[0] / 255 * rgba[3],\n rgba[1] / 255 * rgba[3],\n rgba[2] / 255 * rgba[3],\n rgba[3]\n );\n }\n\n /**\n * Returns an RGBA string representing the color value.\n *\n * @returns An RGBA string.\n * @example\n * var purple = new Color.parse('purple');\n * purple.toString; // = \"rgba(128,0,128,1)\"\n * var translucentGreen = new Color.parse('rgba(26, 207, 26, .73)');\n * translucentGreen.toString(); // = \"rgba(26,207,26,0.73)\"\n */\n toString(): string {\n const [r, g, b, a] = this.toArray();\n return `rgba(${Math.round(r)},${Math.round(g)},${Math.round(b)},${a})`;\n }\n\n toArray(): [number, number, number, number] {\n const {r, g, b, a} = this;\n return a === 0 ? [0, 0, 0, 0] : [\n r * 255 / a,\n g * 255 / a,\n b * 255 / a,\n a\n ];\n }\n}\n\nColor.black = new Color(0, 0, 0, 1);\nColor.white = new Color(1, 1, 1, 1);\nColor.transparent = new Color(0, 0, 0, 0);\nColor.red = new Color(1, 0, 0, 1);\nColor.blue = new Color(0, 0, 1, 1);\n\nexport default Color;\n",
"// @flow\n\n// Flow type declarations for Intl cribbed from\n// https://github.com/facebook/flow/issues/1270\n\ndeclare var Intl: {\n Collator: Class<Intl$Collator>\n};\n\ndeclare class Intl$Collator {\n constructor (\n locales?: string | string[],\n options?: CollatorOptions\n ): Intl$Collator;\n\n static (\n locales?: string | string[],\n options?: CollatorOptions\n ): Intl$Collator;\n\n compare (a: string, b: string): number;\n\n resolvedOptions(): any;\n}\n\ntype CollatorOptions = {\n localeMatcher?: 'lookup' | 'best fit',\n usage?: 'sort' | 'search',\n sensitivity?: 'base' | 'accent' | 'case' | 'variant',\n ignorePunctuation?: boolean,\n numeric?: boolean,\n caseFirst?: 'upper' | 'lower' | 'false'\n}\n\nexport default class Collator {\n locale: string | null;\n sensitivity: 'base' | 'accent' | 'case' | 'variant';\n collator: Intl$Collator;\n\n constructor(caseSensitive: boolean, diacriticSensitive: boolean, locale: string | null) {\n if (caseSensitive)\n this.sensitivity = diacriticSensitive ? 'variant' : 'case';\n else\n this.sensitivity = diacriticSensitive ? 'accent' : 'base';\n\n this.locale = locale;\n this.collator = new Intl.Collator(this.locale ? this.locale : [],\n {sensitivity: this.sensitivity, usage: 'search'});\n }\n\n compare(lhs: string, rhs: string): number {\n return this.collator.compare(lhs, rhs);\n }\n\n resolvedLocale(): string {\n // We create a Collator without \"usage: search\" because we don't want\n // the search options encoded in our result (e.g. \"en-u-co-search\")\n return new Intl.Collator(this.locale ? this.locale : [])\n .resolvedOptions().locale;\n }\n}\n",
"// @flow\nimport type Color from '../../util/color.js';\nimport type ResolvedImage from '../types/resolved_image.js';\n\nexport class FormattedSection {\n text: string;\n image: ResolvedImage | null;\n scale: number | null;\n fontStack: string | null;\n textColor: Color | null;\n\n constructor(text: string, image: ResolvedImage | null, scale: number | null, fontStack: string | null, textColor: Color | null) {\n this.text = text;\n this.image = image;\n this.scale = scale;\n this.fontStack = fontStack;\n this.textColor = textColor;\n }\n}\n\nexport default class Formatted {\n sections: Array<FormattedSection>;\n\n constructor(sections: Array<FormattedSection>) {\n this.sections = sections;\n }\n\n static fromString(unformatted: string): Formatted {\n return new Formatted([new FormattedSection(unformatted, null, null, null, null)]);\n }\n\n isEmpty(): boolean {\n if (this.sections.length === 0) return true;\n return !this.sections.some(section => section.text.length !== 0 ||\n (section.image && section.image.name.length !== 0));\n }\n\n static factory(text: Formatted | string): Formatted {\n if (text instanceof Formatted) {\n return text;\n } else {\n return Formatted.fromString(text);\n }\n }\n\n toString(): string {\n if (this.sections.length === 0) return '';\n return this.sections.map(section => section.text).join('');\n }\n\n serialize(): Array<mixed> {\n const serialized: Array<mixed> = [\"format\"];\n for (const section of this.sections) {\n if (section.image) {\n serialized.push([\"image\", section.image.name]);\n continue;\n }\n serialized.push(section.text);\n const options: { [key: string]: mixed } = {};\n if (section.fontStack) {\n options[\"text-font\"] = [\"literal\", section.fontStack.split(',')];\n }\n if (section.scale) {\n options[\"font-scale\"] = section.scale;\n }\n if (section.textColor) {\n options[\"text-color\"] = ([\"rgba\"]: Array<mixed>).concat(section.textColor.toArray());\n }\n serialized.push(options);\n }\n return serialized;\n }\n}\n",
"// @flow\n\nexport type ResolvedImageOptions = {\n name: string,\n available: boolean\n};\n\nexport default class ResolvedImage {\n name: string;\n available: boolean;\n\n constructor(options: ResolvedImageOptions) {\n this.name = options.name;\n this.available = options.available;\n }\n\n toString(): string {\n return this.name;\n }\n\n static fromString(name: string): ResolvedImage | null {\n if (!name) return null; // treat empty values as no image\n return new ResolvedImage({name, available: false});\n }\n\n serialize(): Array<string> {\n return [\"image\", this.name];\n }\n}\n",
"// @flow\n\nimport assert from 'assert';\n\nimport Color from '../util/color.js';\nimport Collator from './types/collator.js';\nimport Formatted from './types/formatted.js';\nimport ResolvedImage from './types/resolved_image.js';\nimport {NullType, NumberType, StringType, BooleanType, ColorType, ObjectType, ValueType, CollatorType, FormattedType, ResolvedImageType, array} from './types.js';\n\nimport type {Type} from './types.js';\n\nexport function validateRGBA(r: mixed, g: mixed, b: mixed, a?: mixed): string | null {\n if (!(\n typeof r === 'number' && r >= 0 && r <= 255 &&\n typeof g === 'number' && g >= 0 && g <= 255 &&\n typeof b === 'number' && b >= 0 && b <= 255\n )) {\n const value = typeof a === 'number' ? [r, g, b, a] : [r, g, b];\n return `Invalid rgba value [${value.join(', ')}]: 'r', 'g', and 'b' must be between 0 and 255.`;\n }\n\n if (!(\n typeof a === 'undefined' || (typeof a === 'number' && a >= 0 && a <= 1)\n )) {\n return `Invalid rgba value [${[r, g, b, a].join(', ')}]: 'a' must be between 0 and 1.`;\n }\n\n return null;\n}\n\nexport type Value = null | string | boolean | number | Color | Collator | Formatted | ResolvedImage | $ReadOnlyArray<Value> | { +[string]: Value }\n\nexport function isValue(mixed: mixed): boolean {\n if (mixed === null) {\n return true;\n } else if (typeof mixed === 'string') {\n return true;\n } else if (typeof mixed === 'boolean') {\n return true;\n } else if (typeof mixed === 'number') {\n return true;\n } else if (mixed instanceof Color) {\n return true;\n } else if (mixed instanceof Collator) {\n return true;\n } else if (mixed instanceof Formatted) {\n return true;\n } else if (mixed instanceof ResolvedImage) {\n return true;\n } else if (Array.isArray(mixed)) {\n for (const item of mixed) {\n if (!isValue(item)) {\n return false;\n }\n }\n return true;\n } else if (typeof mixed === 'object') {\n for (const key in mixed) {\n if (!isValue(mixed[key])) {\n return false;\n }\n }\n return true;\n } else {\n return false;\n }\n}\n\nexport function typeOf(value: Value): Type {\n if (value === null) {\n return NullType;\n } else if (typeof value === 'string') {\n return StringType;\n } else if (typeof value === 'boolean') {\n return BooleanType;\n } else if (typeof value === 'number') {\n return NumberType;\n } else if (value instanceof Color) {\n return ColorType;\n } else if (value instanceof Collator) {\n return CollatorType;\n } else if (value instanceof Formatted) {\n return FormattedType;\n } else if (value instanceof ResolvedImage) {\n return ResolvedImageType;\n } else if (Array.isArray(value)) {\n const length = value.length;\n let itemType: Type | typeof undefined;\n\n for (const item of value) {\n const t = typeOf(item);\n if (!itemType) {\n itemType = t;\n } else if (itemType === t) {\n continue;\n } else {\n itemType = ValueType;\n break;\n }\n }\n\n return array(itemType || ValueType, length);\n } else {\n assert(typeof value === 'object');\n return ObjectType;\n }\n}\n\nexport function toString(value: Value) {\n const type = typeof value;\n if (value === null) {\n return '';\n } else if (type === 'string' || type === 'number' || type === 'boolean') {\n return String(value);\n } else if (value instanceof Color || value instanceof Formatted || value instanceof ResolvedImage) {\n return value.toString();\n } else {\n return JSON.stringify(value);\n }\n}\n\nexport {Color, Collator};\n",
"// @flow\n\nimport assert from 'assert';\nimport {isValue, typeOf, Color} from '../values.js';\nimport Formatted from '../types/formatted.js';\n\nimport type {Type} from '../types.js';\nimport type {Value} from '../values.js';\nimport type {Expression} from '../expression.js';\nimport type ParsingContext from '../parsing_context.js';\n\nclass Literal implements Expression {\n type: Type;\n value: Value;\n\n constructor(type: Type, value: Value) {\n this.type = type;\n this.value = value;\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext) {\n if (args.length !== 2)\n return context.error(`'literal' expression requires exactly one argument, but found ${args.length - 1} instead.`);\n\n if (!isValue(args[1]))\n return context.error(`invalid value`);\n\n const value = (args[1]: any);\n let type = typeOf(value);\n\n // special case: infer the item type if possible for zero-length arrays\n const expected = context.expectedType;\n if (\n type.kind === 'array' &&\n type.N === 0 &&\n expected &&\n expected.kind === 'array' &&\n (typeof expected.N !== 'number' || expected.N === 0)\n ) {\n type = expected;\n }\n\n return new Literal(type, value);\n }\n\n evaluate() {\n return this.value;\n }\n\n eachChild() {}\n\n outputDefined() {\n return true;\n }\n\n serialize(): Array<mixed> {\n if (this.type.kind === 'array' || this.type.kind === 'object') {\n return [\"literal\", this.value];\n } else if (this.value instanceof Color) {\n // Constant-folding can generate Literal expressions that you\n // couldn't actually generate with a \"literal\" expression,\n // so we have to implement an equivalent serialization here\n return [\"rgba\"].concat(this.value.toArray());\n } else if (this.value instanceof Formatted) {\n // Same as Color\n return this.value.serialize();\n } else {\n assert(this.value === null ||\n typeof this.value === 'string' ||\n typeof this.value === 'number' ||\n typeof this.value === 'boolean');\n return (this.value: any);\n }\n }\n}\n\nexport default Literal;\n",
"// @flow\n\nclass RuntimeError {\n name: string;\n message: string;\n\n constructor(message: string) {\n this.name = 'ExpressionEvaluationError';\n this.message = message;\n }\n\n toJSON() {\n return this.message;\n }\n}\n\nexport default RuntimeError;\n",
"// @flow\n\nimport assert from 'assert';\n\nimport {\n ObjectType,\n ValueType,\n StringType,\n NumberType,\n BooleanType,\n checkSubtype,\n toString,\n array\n} from '../types.js';\nimport RuntimeError from '../runtime_error.js';\nimport {typeOf} from '../values.js';\n\nimport type {Expression} from '../expression.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type EvaluationContext from '../evaluation_context.js';\nimport type {Type} from '../types.js';\n\nconst types = {\n string: StringType,\n number: NumberType,\n boolean: BooleanType,\n object: ObjectType\n};\n\nclass Assertion implements Expression {\n type: Type;\n args: Array<Expression>;\n\n constructor(type: Type, args: Array<Expression>) {\n this.type = type;\n this.args = args;\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext): ?Expression {\n if (args.length < 2)\n return context.error(`Expected at least one argument.`);\n\n let i = 1;\n let type;\n\n const name: string = (args[0]: any);\n if (name === 'array') {\n let itemType;\n if (args.length > 2) {\n const type = args[1];\n if (typeof type !== 'string' || !(type in types) || type === 'object')\n return context.error('The item type argument of \"array\" must be one of string, number, boolean', 1);\n itemType = types[type];\n i++;\n } else {\n itemType = ValueType;\n }\n\n let N;\n if (args.length > 3) {\n if (args[2] !== null &&\n (typeof args[2] !== 'number' ||\n args[2] < 0 ||\n args[2] !== Math.floor(args[2]))\n ) {\n return context.error('The length argument to \"array\" must be a positive integer literal', 2);\n }\n N = args[2];\n i++;\n }\n\n type = array(itemType, N);\n } else {\n assert(types[name], name);\n type = types[name];\n }\n\n const parsed = [];\n for (; i < args.length; i++) {\n const input = context.parse(args[i], i, ValueType);\n if (!input) return null;\n parsed.push(input);\n }\n\n return new Assertion(type, parsed);\n }\n\n evaluate(ctx: EvaluationContext) {\n for (let i = 0; i < this.args.length; i++) {\n const value = this.args[i].evaluate(ctx);\n const error = checkSubtype(this.type, typeOf(value));\n if (!error) {\n return value;\n } else if (i === this.args.length - 1) {\n throw new RuntimeError(`Expected value to be of type ${toString(this.type)}, but found ${toString(typeOf(value))} instead.`);\n }\n }\n\n assert(false);\n return null;\n }\n\n eachChild(fn: (_: Expression) => void) {\n this.args.forEach(fn);\n }\n\n outputDefined(): boolean {\n return this.args.every(arg => arg.outputDefined());\n }\n\n serialize(): Array<mixed> {\n const type = this.type;\n const serialized = [type.kind];\n if (type.kind === 'array') {\n const itemType = type.itemType;\n if (itemType.kind === 'string' ||\n itemType.kind === 'number' ||\n itemType.kind === 'boolean') {\n serialized.push(itemType.kind);\n const N = type.N;\n if (typeof N === 'number' || this.args.length > 1) {\n serialized.push(N);\n }\n }\n }\n return serialized.concat(this.args.map(arg => arg.serialize()));\n }\n}\n\nexport default Assertion;\n",
"// @flow\n\nimport {NumberType, ValueType, FormattedType, array, StringType, ColorType, ResolvedImageType} from '../types.js';\nimport Formatted, {FormattedSection} from '../types/formatted.js';\nimport {toString, typeOf} from '../values.js';\n\nimport type {Expression} from '../expression.js';\nimport type EvaluationContext from '../evaluation_context.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type {Type} from '../types.js';\n\ntype FormattedSectionExpression = {\n // Content of a section may be Image expression or other\n // type of expression that is coercable to 'string'.\n content: Expression,\n scale: Expression | null;\n font: Expression | null;\n textColor: Expression | null;\n}\n\nexport default class FormatExpression implements Expression {\n type: Type;\n sections: Array<FormattedSectionExpression>;\n\n constructor(sections: Array<FormattedSectionExpression>) {\n this.type = FormattedType;\n this.sections = sections;\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext): ?Expression {\n if (args.length < 2) {\n return context.error(`Expected at least one argument.`);\n }\n\n const firstArg = args[1];\n if (!Array.isArray(firstArg) && typeof firstArg === 'object') {\n return context.error(`First argument must be an image or text section.`);\n }\n\n const sections: Array<FormattedSectionExpression> = [];\n let nextTokenMayBeObject = false;\n for (let i = 1; i <= args.length - 1; ++i) {\n const arg = (args[i]: any);\n\n if (nextTokenMayBeObject && typeof arg === \"object\" && !Array.isArray(arg)) {\n nextTokenMayBeObject = false;\n\n let scale = null;\n if (arg['font-scale']) {\n scale = context.parse(arg['font-scale'], 1, NumberType);\n if (!scale) return null;\n }\n\n let font = null;\n if (arg['text-font']) {\n font = context.parse(arg['text-font'], 1, array(StringType));\n if (!font) return null;\n }\n\n let textColor = null;\n if (arg['text-color']) {\n textColor = context.parse(arg['text-color'], 1, ColorType);\n if (!textColor) return null;\n }\n\n const lastExpression = sections[sections.length - 1];\n lastExpression.scale = scale;\n lastExpression.font = font;\n lastExpression.textColor = textColor;\n } else {\n const content = context.parse(args[i], 1, ValueType);\n if (!content) return null;\n\n const kind = content.type.kind;\n if (kind !== 'string' && kind !== 'value' && kind !== 'null' && kind !== 'resolvedImage')\n return context.error(`Formatted text type must be 'string', 'value', 'image' or 'null'.`);\n\n nextTokenMayBeObject = true;\n sections.push({content, scale: null, font: null, textColor: null});\n }\n }\n\n return new FormatExpression(sections);\n }\n\n evaluate(ctx: EvaluationContext) {\n const evaluateSection = section => {\n const evaluatedContent = section.content.evaluate(ctx);\n if (typeOf(evaluatedContent) === ResolvedImageType) {\n return new FormattedSection('', evaluatedContent, null, null, null);\n }\n\n return new FormattedSection(\n toString(evaluatedContent),\n null,\n section.scale ? section.scale.evaluate(ctx) : null,\n section.font ? section.font.evaluate(ctx).join(',') : null,\n section.textColor ? section.textColor.evaluate(ctx) : null\n );\n };\n\n return new Formatted(this.sections.map(evaluateSection));\n }\n\n
"// @flow\n\nimport {ResolvedImageType, StringType} from '../types.js';\nimport ResolvedImage from '../types/resolved_image.js';\n\nimport type {Expression} from '../expression.js';\nimport type EvaluationContext from '../evaluation_context.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type {Type} from '../types.js';\n\nexport default class ImageExpression implements Expression {\n type: Type;\n input: Expression;\n\n constructor(input: Expression) {\n this.type = ResolvedImageType;\n this.input = input;\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext): ?Expression {\n if (args.length !== 2) {\n return context.error(`Expected two arguments.`);\n }\n\n const name = context.parse(args[1], 1, StringType);\n if (!name) return context.error(`No image name provided.`);\n\n return new ImageExpression(name);\n }\n\n evaluate(ctx: EvaluationContext) {\n const evaluatedImageName = this.input.evaluate(ctx);\n\n const value = ResolvedImage.fromString(evaluatedImageName);\n if (value && ctx.availableImages) value.available = ctx.availableImages.indexOf(evaluatedImageName) > -1;\n\n return value;\n }\n\n eachChild(fn: (_: Expression) => void) {\n fn(this.input);\n }\n\n outputDefined() {\n // The output of image is determined by the list of available images in the evaluation context\n return false;\n }\n\n serialize() {\n return [\"image\", this.input.serialize()];\n }\n}\n",
"// @flow\n\nimport assert from 'assert';\n\nimport {BooleanType, ColorType, NumberType, StringType, ValueType} from '../types.js';\nimport {Color, toString as valueToString, validateRGBA} from '../values.js';\nimport RuntimeError from '../runtime_error.js';\nimport Formatted from '../types/formatted.js';\nimport FormatExpression from '../definitions/format.js';\nimport ImageExpression from '../definitions/image.js';\nimport ResolvedImage from '../types/resolved_image.js';\n\nimport type {Expression} from '../expression.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type EvaluationContext from '../evaluation_context.js';\nimport type {Type} from '../types.js';\n\nconst types = {\n 'to-boolean': BooleanType,\n 'to-color': ColorType,\n 'to-number': NumberType,\n 'to-string': StringType\n};\n\n/**\n * Special form for error-coalescing coercion expressions \"to-number\",\n * \"to-color\". Since these coercions can fail at runtime, they accept multiple\n * arguments, only evaluating one at a time until one succeeds.\n *\n * @private\n */\nclass Coercion implements Expression {\n type: Type;\n args: Array<Expression>;\n\n constructor(type: Type, args: Array<Expression>) {\n this.type = type;\n this.args = args;\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext): ?Expression {\n if (args.length < 2)\n return context.error(`Expected at least one argument.`);\n\n const name: string = (args[0]: any);\n assert(types[name], name);\n\n if ((name === 'to-boolean' || name === 'to-string') && args.length !== 2)\n return context.error(`Expected one argument.`);\n\n const type = types[name];\n\n const parsed = [];\n for (let i = 1; i < args.length; i++) {\n const input = context.parse(args[i], i, ValueType);\n if (!input) return null;\n parsed.push(input);\n }\n\n return new Coercion(type, parsed);\n }\n\n evaluate(ctx: EvaluationContext) {\n if (this.type.kind === 'boolean') {\n return Boolean(this.args[0].evaluate(ctx));\n } else if (this.type.kind === 'color') {\n let input;\n let error;\n for (const arg of this.args) {\n input = arg.evaluate(ctx);\n error = null;\n if (input instanceof Color) {\n return input;\n } else if (typeof input === 'string') {\n const c = ctx.parseColor(input);\n if (c) return c;\n } else if (Array.isArray(input)) {\n if (input.length < 3 || input.length > 4) {\n error = `Invalid rbga value ${JSON.stringify(input)}: expected an array containing either three or four numeric values.`;\n } else {\n error = validateRGBA(input[0], input[1], input[2], input[3]);\n }\n if (!error) {\n return new Color((input[0]: any) / 255, (input[1]: any) / 255, (input[2]: any) / 255, (input[3]: any));\n }\n }\n }\n throw new RuntimeError(error || `Could not parse color from value '${typeof input === 'string' ? input : String(JSON.stringify(input))}'`);\n } else if (this.type.kind === 'number') {\n let value = null;\n for (const arg of this.args) {\n value = arg.evaluate(ctx);\n if (value === null) return 0;\n const num = Number(value);\n if (isNaN(num)) continue;\n return num;\n }\n throw new RuntimeError(`Could not convert ${JSON.stringify(value)} to number.`);\n } else if (this.type.kind === 'formatted') {\n // There is no explicit 'to-formatted' but this coercion can be implicitly\n // created by properties that expect the 'formatted' type.\n return Formatted.fromSt
"// @flow\n\nimport {Color} from './values.js';\nimport type {FormattedSection} from './types/formatted.js';\nimport type {GlobalProperties, Feature, FeatureState} from './index.js';\nimport type {CanonicalTileID} from '../../source/tile_id.js';\n\nconst geometryTypes = ['Unknown', 'Point', 'LineString', 'Polygon'];\n\nclass EvaluationContext {\n globals: GlobalProperties;\n feature: ?Feature;\n featureState: ?FeatureState;\n formattedSection: ?FormattedSection;\n availableImages: ?Array<string>;\n canonical: ?CanonicalTileID;\n\n _parseColorCache: {[_: string]: ?Color};\n\n constructor() {\n this.globals = (null: any);\n this.feature = null;\n this.featureState = null;\n this.formattedSection = null;\n this._parseColorCache = {};\n this.availableImages = null;\n this.canonical = null;\n }\n\n id() {\n return this.feature && 'id' in this.feature ? this.feature.id : null;\n }\n\n geometryType() {\n return this.feature ? typeof this.feature.type === 'number' ? geometryTypes[this.feature.type] : this.feature.type : null;\n }\n\n geometry() {\n return this.feature && 'geometry' in this.feature ? this.feature.geometry : null;\n }\n\n canonicalID() {\n return this.canonical;\n }\n\n properties() {\n return this.feature && this.feature.properties || {};\n }\n\n parseColor(input: string): ?Color {\n let cached = this._parseColorCache[input];\n if (!cached) {\n cached = this._parseColorCache[input] = Color.parse(input);\n }\n return cached;\n }\n}\n\nexport default EvaluationContext;\n",
"// @flow\n\nimport {toString} from './types.js';\n\nimport ParsingContext from './parsing_context.js';\nimport EvaluationContext from './evaluation_context.js';\nimport assert from 'assert';\n\nimport type {Expression, ExpressionRegistry} from './expression.js';\nimport type {Type} from './types.js';\nimport type {Value} from './values.js';\n\nexport type Varargs = {| type: Type |};\ntype Signature = Array<Type> | Varargs;\ntype Evaluate = (EvaluationContext, Array<Expression>) => Value;\ntype Definition = [Type, Signature, Evaluate] |\n {|type: Type, overloads: Array<[Signature, Evaluate]>|};\n\nclass CompoundExpression implements Expression {\n name: string;\n type: Type;\n _evaluate: Evaluate;\n args: Array<Expression>;\n\n static definitions: {[_: string]: Definition };\n\n constructor(name: string, type: Type, evaluate: Evaluate, args: Array<Expression>) {\n this.name = name;\n this.type = type;\n this._evaluate = evaluate;\n this.args = args;\n }\n\n evaluate(ctx: EvaluationContext) {\n return this._evaluate(ctx, this.args);\n }\n\n eachChild(fn: (_: Expression) => void) {\n this.args.forEach(fn);\n }\n\n outputDefined() {\n return false;\n }\n\n serialize(): Array<mixed> {\n return [this.name].concat(this.args.map(arg => arg.serialize()));\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext): ?Expression {\n const op: string = (args[0]: any);\n const definition = CompoundExpression.definitions[op];\n if (!definition) {\n return context.error(`Unknown expression \"${op}\". If you wanted a literal array, use [\"literal\", [...]].`, 0);\n }\n\n // Now check argument types against each signature\n const type = Array.isArray(definition) ?\n definition[0] : definition.type;\n\n const availableOverloads = Array.isArray(definition) ?\n [[definition[1], definition[2]]] :\n definition.overloads;\n\n const overloads = availableOverloads.filter(([signature]) => (\n !Array.isArray(signature) || // varags\n signature.length === args.length - 1 // correct param count\n ));\n\n let signatureContext: ParsingContext = (null: any);\n\n for (const [params, evaluate] of overloads) {\n // Use a fresh context for each attempted signature so that, if\n // we eventually succeed, we haven't polluted `context.errors`.\n signatureContext = new ParsingContext(context.registry, context.path, null, context.scope);\n\n // First parse all the args, potentially coercing to the\n // types expected by this overload.\n const parsedArgs: Array<Expression> = [];\n let argParseFailed = false;\n for (let i = 1; i < args.length; i++) {\n const arg = args[i];\n const expectedType = Array.isArray(params) ?\n params[i - 1] :\n params.type;\n\n const parsed = signatureContext.parse(arg, 1 + parsedArgs.length, expectedType);\n if (!parsed) {\n argParseFailed = true;\n break;\n }\n parsedArgs.push(parsed);\n }\n if (argParseFailed) {\n // Couldn't coerce args of this overload to expected type, move\n // on to next one.\n continue;\n }\n\n if (Array.isArray(params)) {\n if (params.length !== parsedArgs.length) {\n signatureContext.error(`Expected ${params.length} arguments, but found ${parsedArgs.length} instead.`);\n continue;\n }\n }\n\n for (let i = 0; i < parsedArgs.length; i++) {\n const expected = Array.isArray(params) ? params[i] : params.type;\n const arg = parsedArgs[i];\n signatureContext.concat(i + 1).checkS
"// @flow\n\nimport {StringType, BooleanType, CollatorType} from '../types.js';\nimport Collator from '../types/collator.js';\n\nimport type {Expression} from '../expression.js';\nimport type EvaluationContext from '../evaluation_context.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type {Type} from '../types.js';\n\nexport default class CollatorExpression implements Expression {\n type: Type;\n caseSensitive: Expression;\n diacriticSensitive: Expression;\n locale: Expression | null;\n\n constructor(caseSensitive: Expression, diacriticSensitive: Expression, locale: Expression | null) {\n this.type = CollatorType;\n this.locale = locale;\n this.caseSensitive = caseSensitive;\n this.diacriticSensitive = diacriticSensitive;\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext): ?Expression {\n if (args.length !== 2)\n return context.error(`Expected one argument.`);\n\n const options = (args[1]: any);\n if (typeof options !== \"object\" || Array.isArray(options))\n return context.error(`Collator options argument must be an object.`);\n\n const caseSensitive = context.parse(\n options['case-sensitive'] === undefined ? false : options['case-sensitive'], 1, BooleanType);\n if (!caseSensitive) return null;\n\n const diacriticSensitive = context.parse(\n options['diacritic-sensitive'] === undefined ? false : options['diacritic-sensitive'], 1, BooleanType);\n if (!diacriticSensitive) return null;\n\n let locale = null;\n if (options['locale']) {\n locale = context.parse(options['locale'], 1, StringType);\n if (!locale) return null;\n }\n\n return new CollatorExpression(caseSensitive, diacriticSensitive, locale);\n }\n\n evaluate(ctx: EvaluationContext) {\n return new Collator(this.caseSensitive.evaluate(ctx), this.diacriticSensitive.evaluate(ctx), this.locale ? this.locale.evaluate(ctx) : null);\n }\n\n eachChild(fn: (_: Expression) => void) {\n fn(this.caseSensitive);\n fn(this.diacriticSensitive);\n if (this.locale) {\n fn(this.locale);\n }\n }\n\n outputDefined() {\n // Technically the set of possible outputs is the combinatoric set of Collators produced\n // by all possible outputs of locale/caseSensitive/diacriticSensitive\n // But for the primary use of Collators in comparison operators, we ignore the Collator's\n // possible outputs anyway, so we can get away with leaving this false for now.\n return false;\n }\n\n serialize() {\n const options = {};\n options['case-sensitive'] = this.caseSensitive.serialize();\n options['diacritic-sensitive'] = this.diacriticSensitive.serialize();\n if (this.locale) {\n options['locale'] = this.locale.serialize();\n }\n return [\"collator\", options];\n }\n}\n",
"// @flow\n\nimport {isValue} from '../values.js';\nimport type {Type} from '../types.js';\nimport {BooleanType} from '../types.js';\nimport type {Expression} from '../expression.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type EvaluationContext from '../evaluation_context.js';\nimport type {GeoJSON, GeoJSONPolygon, GeoJSONMultiPolygon} from '@mapbox/geojson-types';\nimport Point from '@mapbox/point-geometry';\nimport type {CanonicalTileID} from '../../../source/tile_id.js';\n\ntype GeoJSONPolygons =| GeoJSONPolygon | GeoJSONMultiPolygon;\n\n// minX, minY, maxX, maxY\ntype BBox = [number, number, number, number];\nconst EXTENT = 8192;\n\nfunction updateBBox(bbox: BBox, coord: Point) {\n bbox[0] = Math.min(bbox[0], coord[0]);\n bbox[1] = Math.min(bbox[1], coord[1]);\n bbox[2] = Math.max(bbox[2], coord[0]);\n bbox[3] = Math.max(bbox[3], coord[1]);\n}\n\nfunction mercatorXfromLng(lng: number) {\n return (180 + lng) / 360;\n}\n\nfunction mercatorYfromLat(lat: number) {\n return (180 - (180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + lat * Math.PI / 360)))) / 360;\n}\n\nfunction boxWithinBox(bbox1: BBox, bbox2: BBox) {\n if (bbox1[0] <= bbox2[0]) return false;\n if (bbox1[2] >= bbox2[2]) return false;\n if (bbox1[1] <= bbox2[1]) return false;\n if (bbox1[3] >= bbox2[3]) return false;\n return true;\n}\n\nfunction getTileCoordinates(p, canonical: CanonicalTileID) {\n const x = mercatorXfromLng(p[0]);\n const y = mercatorYfromLat(p[1]);\n const tilesAtZoom = Math.pow(2, canonical.z);\n return [Math.round(x * tilesAtZoom * EXTENT), Math.round(y * tilesAtZoom * EXTENT)];\n}\n\nfunction onBoundary(p, p1, p2) {\n const x1 = p[0] - p1[0];\n const y1 = p[1] - p1[1];\n const x2 = p[0] - p2[0];\n const y2 = p[1] - p2[1];\n return (x1 * y2 - x2 * y1 === 0) && (x1 * x2 <= 0) && (y1 * y2 <= 0);\n}\n\nfunction rayIntersect(p, p1, p2) {\n return ((p1[1] > p[1]) !== (p2[1] > p[1])) && (p[0] < (p2[0] - p1[0]) * (p[1] - p1[1]) / (p2[1] - p1[1]) + p1[0]);\n}\n\n// ray casting algorithm for detecting if point is in polygon\nfunction pointWithinPolygon(point, rings) {\n let inside = false;\n for (let i = 0, len = rings.length; i < len; i++) {\n const ring = rings[i];\n for (let j = 0, len2 = ring.length; j < len2 - 1; j++) {\n if (onBoundary(point, ring[j], ring[j + 1])) return false;\n if (rayIntersect(point, ring[j], ring[j + 1])) inside = !inside;\n }\n }\n return inside;\n}\n\nfunction pointWithinPolygons(point, polygons) {\n for (let i = 0; i < polygons.length; i++) {\n if (pointWithinPolygon(point, polygons[i])) return true;\n }\n return false;\n}\n\nfunction perp(v1, v2) {\n return (v1[0] * v2[1] - v1[1] * v2[0]);\n}\n\n// check if p1 and p2 are in different sides of line segment q1->q2\nfunction twoSided(p1, p2, q1, q2) {\n // q1->p1 (x1, y1), q1->p2 (x2, y2), q1->q2 (x3, y3)\n const x1 = p1[0] - q1[0];\n const y1 = p1[1] - q1[1];\n const x2 = p2[0] - q1[0];\n const y2 = p2[1] - q1[1];\n const x3 = q2[0] - q1[0];\n const y3 = q2[1] - q1[1];\n const det1 = (x1 * y3 - x3 * y1);\n const det2 = (x2 * y3 - x3 * y2);\n if ((det1 > 0 && det2 < 0) || (det1 < 0 && det2 > 0)) return true;\n return false;\n}\n// a, b are end points for line segment1, c and d are end points for line segment2\nfunction lineIntersectLine(a, b, c, d) {\n // check if two segments are parallel or not\n // precondition is end point a, b is inside polygon, if line a->b is\n // parallel to polygon edge c->d, then a->b won't intersect with c->d\n const vectorP = [b[0] - a[0], b[1] - a[1]];\n const vectorQ = [d[0] - c[0], d[1] - c[1]];\n if (perp(vectorQ, vectorP) === 0) return false;\n\n // If lines are intersecting with each other, the relative location should be:\n // a and b lie in different sides of segment c->d\n // c and d lie in different sides of segment a->b\n if (twoSided(a, b, c, d) && twoSided(c, d, a, b)) return true;\n return f
"// @flow\n\nimport CompoundExpression from './compound_expression.js';\nimport Within from './definitions/within.js';\nimport type {Expression} from './expression.js';\n\nfunction isFeatureConstant(e: Expression) {\n if (e instanceof CompoundExpression) {\n if (e.name === 'get' && e.args.length === 1) {\n return false;\n } else if (e.name === 'feature-state') {\n return false;\n } else if (e.name === 'has' && e.args.length === 1) {\n return false;\n } else if (\n e.name === 'properties' ||\n e.name === 'geometry-type' ||\n e.name === 'id'\n ) {\n return false;\n } else if (/^filter-/.test(e.name)) {\n return false;\n }\n }\n\n if (e instanceof Within) {\n return false;\n }\n\n let result = true;\n e.eachChild(arg => {\n if (result && !isFeatureConstant(arg)) { result = false; }\n });\n return result;\n}\n\nfunction isStateConstant(e: Expression) {\n if (e instanceof CompoundExpression) {\n if (e.name === 'feature-state') {\n return false;\n }\n }\n let result = true;\n e.eachChild(arg => {\n if (result && !isStateConstant(arg)) { result = false; }\n });\n return result;\n}\n\nfunction isGlobalPropertyConstant(e: Expression, properties: Array<string>) {\n if (e instanceof CompoundExpression && properties.indexOf(e.name) >= 0) { return false; }\n let result = true;\n e.eachChild((arg) => {\n if (result && !isGlobalPropertyConstant(arg, properties)) { result = false; }\n });\n return result;\n}\n\nexport {isFeatureConstant, isGlobalPropertyConstant, isStateConstant};\n",
"// @flow\n\nimport type {Type} from '../types.js';\nimport type {Expression} from '../expression.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type EvaluationContext from '../evaluation_context.js';\n\nclass Var implements Expression {\n type: Type;\n name: string;\n boundExpression: Expression;\n\n constructor(name: string, boundExpression: Expression) {\n this.type = boundExpression.type;\n this.name = name;\n this.boundExpression = boundExpression;\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext) {\n if (args.length !== 2 || typeof args[1] !== 'string')\n return context.error(`'var' expression requires exactly one string literal argument.`);\n\n const name = args[1];\n if (!context.scope.has(name)) {\n return context.error(`Unknown variable \"${name}\". Make sure \"${name}\" has been bound in an enclosing \"let\" expression before using it.`, 1);\n }\n\n return new Var(name, context.scope.get(name));\n }\n\n evaluate(ctx: EvaluationContext) {\n return this.boundExpression.evaluate(ctx);\n }\n\n eachChild() {}\n\n outputDefined() {\n return false;\n }\n\n serialize() {\n return [\"var\", this.name];\n }\n}\n\nexport default Var;\n",
"// @flow\n\nimport Scope from './scope.js';\nimport {checkSubtype} from './types.js';\nimport ParsingError from './parsing_error.js';\nimport Literal from './definitions/literal.js';\nimport Assertion from './definitions/assertion.js';\nimport Coercion from './definitions/coercion.js';\nimport EvaluationContext from './evaluation_context.js';\nimport CompoundExpression from './compound_expression.js';\nimport CollatorExpression from './definitions/collator.js';\nimport Within from './definitions/within.js';\nimport {isGlobalPropertyConstant, isFeatureConstant} from './is_constant.js';\nimport Var from './definitions/var.js';\n\nimport type {Expression, ExpressionRegistry} from './expression.js';\nimport type {Type} from './types.js';\n\n/**\n * State associated parsing at a given point in an expression tree.\n * @private\n */\nclass ParsingContext {\n registry: ExpressionRegistry;\n path: Array<number>;\n key: string;\n scope: Scope;\n errors: Array<ParsingError>;\n\n // The expected type of this expression. Provided only to allow Expression\n // implementations to infer argument types: Expression#parse() need not\n // check that the output type of the parsed expression matches\n // `expectedType`.\n expectedType: ?Type;\n\n constructor(\n registry: ExpressionRegistry,\n path: Array<number> = [],\n expectedType: ?Type,\n scope: Scope = new Scope(),\n errors: Array<ParsingError> = []\n ) {\n this.registry = registry;\n this.path = path;\n this.key = path.map(part => `[${part}]`).join('');\n this.scope = scope;\n this.errors = errors;\n this.expectedType = expectedType;\n }\n\n /**\n * @param expr the JSON expression to parse\n * @param index the optional argument index if this expression is an argument of a parent expression that's being parsed\n * @param options\n * @param options.omitTypeAnnotations set true to omit inferred type annotations. Caller beware: with this option set, the parsed expression's type will NOT satisfy `expectedType` if it would normally be wrapped in an inferred annotation.\n * @private\n */\n parse(\n expr: mixed,\n index?: number,\n expectedType?: ?Type,\n bindings?: Array<[string, Expression]>,\n options: {typeAnnotation?: 'assert' | 'coerce' | 'omit'} = {}\n ): ?Expression {\n if (index) {\n return this.concat(index, expectedType, bindings)._parse(expr, options);\n }\n return this._parse(expr, options);\n }\n\n _parse(expr: mixed, options: {typeAnnotation?: 'assert' | 'coerce' | 'omit'}): ?Expression {\n if (expr === null || typeof expr === 'string' || typeof expr === 'boolean' || typeof expr === 'number') {\n expr = ['literal', expr];\n }\n\n function annotate(parsed, type, typeAnnotation: 'assert' | 'coerce' | 'omit') {\n if (typeAnnotation === 'assert') {\n return new Assertion(type, [parsed]);\n } else if (typeAnnotation === 'coerce') {\n return new Coercion(type, [parsed]);\n } else {\n return parsed;\n }\n }\n\n if (Array.isArray(expr)) {\n if (expr.length === 0) {\n return this.error(`Expected an array with at least one element. If you wanted a literal array, use [\"literal\", []].`);\n }\n\n const op = expr[0];\n if (typeof op !== 'string') {\n this.error(`Expression name must be a string, but found ${typeof op} instead. If you wanted a literal array, use [\"literal\", [...]].`, 0);\n return null;\n }\n\n const Expr = this.registry[op];\n if (Expr) {\n let parsed = Expr.parse(expr, this);\n if (!parsed) return null;\n\n if (this.expectedType) {\n const expected = this.expectedType;\n const actual = parsed.type;\n\n
"// @flow\n\nimport RuntimeError from './runtime_error.js';\n\nimport type {Expression} from './expression.js';\n\nexport type Stops = Array<[number, Expression]>;\n\n/**\n * Returns the index of the last stop <= input, or 0 if it doesn't exist.\n * @private\n */\nexport function findStopLessThanOrEqualTo(stops: Array<number>, input: number) {\n const lastIndex = stops.length - 1;\n let lowerIndex = 0;\n let upperIndex = lastIndex;\n let currentIndex = 0;\n let currentValue, nextValue;\n\n while (lowerIndex <= upperIndex) {\n currentIndex = Math.floor((lowerIndex + upperIndex) / 2);\n currentValue = stops[currentIndex];\n nextValue = stops[currentIndex + 1];\n\n if (currentValue <= input) {\n if (currentIndex === lastIndex || input < nextValue) { // Search complete\n return currentIndex;\n }\n\n lowerIndex = currentIndex + 1;\n } else if (currentValue > input) {\n upperIndex = currentIndex - 1;\n } else {\n throw new RuntimeError('Input is not a number.');\n }\n }\n\n return 0;\n}\n",
"// @flow\n\nimport {NumberType} from '../types.js';\n\nimport {findStopLessThanOrEqualTo} from '../stops.js';\n\nimport type {Stops} from '../stops.js';\nimport type {Expression} from '../expression.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type EvaluationContext from '../evaluation_context.js';\nimport type {Type} from '../types.js';\n\nclass Step implements Expression {\n type: Type;\n\n input: Expression;\n labels: Array<number>;\n outputs: Array<Expression>;\n\n constructor(type: Type, input: Expression, stops: Stops) {\n this.type = type;\n this.input = input;\n\n this.labels = [];\n this.outputs = [];\n for (const [label, expression] of stops) {\n this.labels.push(label);\n this.outputs.push(expression);\n }\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext) {\n if (args.length - 1 < 4) {\n return context.error(`Expected at least 4 arguments, but found only ${args.length - 1}.`);\n }\n\n if ((args.length - 1) % 2 !== 0) {\n return context.error(`Expected an even number of arguments.`);\n }\n\n const input = context.parse(args[1], 1, NumberType);\n if (!input) return null;\n\n const stops: Stops = [];\n\n let outputType: Type = (null: any);\n if (context.expectedType && context.expectedType.kind !== 'value') {\n outputType = context.expectedType;\n }\n\n for (let i = 1; i < args.length; i += 2) {\n const label = i === 1 ? -Infinity : args[i];\n const value = args[i + 1];\n\n const labelKey = i;\n const valueKey = i + 1;\n\n if (typeof label !== 'number') {\n return context.error('Input/output pairs for \"step\" expressions must be defined using literal numeric values (not computed expressions) for the input values.', labelKey);\n }\n\n if (stops.length && stops[stops.length - 1][0] >= label) {\n return context.error('Input/output pairs for \"step\" expressions must be arranged with input values in strictly ascending order.', labelKey);\n }\n\n const parsed = context.parse(value, valueKey, outputType);\n if (!parsed) return null;\n outputType = outputType || parsed.type;\n stops.push([label, parsed]);\n }\n\n return new Step(outputType, input, stops);\n }\n\n evaluate(ctx: EvaluationContext) {\n const labels = this.labels;\n const outputs = this.outputs;\n\n if (labels.length === 1) {\n return outputs[0].evaluate(ctx);\n }\n\n const value = ((this.input.evaluate(ctx): any): number);\n if (value <= labels[0]) {\n return outputs[0].evaluate(ctx);\n }\n\n const stopCount = labels.length;\n if (value >= labels[stopCount - 1]) {\n return outputs[stopCount - 1].evaluate(ctx);\n }\n\n const index = findStopLessThanOrEqualTo(labels, value);\n return outputs[index].evaluate(ctx);\n }\n\n eachChild(fn: (_: Expression) => void) {\n fn(this.input);\n for (const expression of this.outputs) {\n fn(expression);\n }\n }\n\n outputDefined(): boolean {\n return this.outputs.every(out => out.outputDefined());\n }\n\n serialize() {\n const serialized = [\"step\", this.input.serialize()];\n for (let i = 0; i < this.labels.length; i++) {\n if (i > 0) {\n serialized.push(this.labels[i]);\n }\n serialized.push(this.outputs[i].serialize());\n }\n return serialized;\n }\n}\n\nexport default Step;\n",
"/*\n * Copyright (C) 2008 Apple Inc. All Rights Reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\n * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n * Ported from Webkit\n * http://svn.webkit.org/repository/webkit/trunk/Source/WebCore/platform/graphics/UnitBezier.h\n */\n\nmodule.exports = UnitBezier;\n\nfunction UnitBezier(p1x, p1y, p2x, p2y) {\n // Calculate the polynomial coefficients, implicit first and last control points are (0,0) and (1,1).\n this.cx = 3.0 * p1x;\n this.bx = 3.0 * (p2x - p1x) - this.cx;\n this.ax = 1.0 - this.cx - this.bx;\n\n this.cy = 3.0 * p1y;\n this.by = 3.0 * (p2y - p1y) - this.cy;\n this.ay = 1.0 - this.cy - this.by;\n\n this.p1x = p1x;\n this.p1y = p2y;\n this.p2x = p2x;\n this.p2y = p2y;\n}\n\nUnitBezier.prototype.sampleCurveX = function(t) {\n // `ax t^3 + bx t^2 + cx t' expanded using Horner's rule.\n return ((this.ax * t + this.bx) * t + this.cx) * t;\n};\n\nUnitBezier.prototype.sampleCurveY = function(t) {\n return ((this.ay * t + this.by) * t + this.cy) * t;\n};\n\nUnitBezier.prototype.sampleCurveDerivativeX = function(t) {\n return (3.0 * this.ax * t + 2.0 * this.bx) * t + this.cx;\n};\n\nUnitBezier.prototype.solveCurveX = function(x, epsilon) {\n if (typeof epsilon === 'undefined') epsilon = 1e-6;\n\n var t0, t1, t2, x2, i;\n\n // First try a few iterations of Newton's method -- normally very fast.\n for (t2 = x, i = 0; i < 8; i++) {\n\n x2 = this.sampleCurveX(t2) - x;\n if (Math.abs(x2) < epsilon) return t2;\n\n var d2 = this.sampleCurveDerivativeX(t2);\n if (Math.abs(d2) < 1e-6) break;\n\n t2 = t2 - x2 / d2;\n }\n\n // Fall back to the bisection method for reliability.\n t0 = 0.0;\n t1 = 1.0;\n t2 = x;\n\n if (t2 < t0) return t0;\n if (t2 > t1) return t1;\n\n while (t0 < t1) {\n\n x2 = this.sampleCurveX(t2);\n if (Math.abs(x2 - x) < epsilon) return t2;\n\n if (x > x2) {\n t0 = t2;\n } else {\n t1 = t2;\n }\n\n t2 = (t1 - t0) * 0.5 + t0;\n }\n\n // Failure.\n return t2;\n};\n\nUnitBezier.prototype.solve = function(x, epsilon) {\n return this.sampleCurveY(this.solveCurveX(x, epsilon));\n};\n",
"// @flow\n\nimport Color from './color.js';\n\nexport function number(a: number, b: number, t: number) {\n return (a * (1 - t)) + (b * t);\n}\n\nexport function color(from: Color, to: Color, t: number) {\n return new Color(\n number(from.r, to.r, t),\n number(from.g, to.g, t),\n number(from.b, to.b, t),\n number(from.a, to.a, t)\n );\n}\n\nexport function array(from: Array<number>, to: Array<number>, t: number): Array<number> {\n return from.map((d, i) => {\n return number(d, to[i], t);\n });\n}\n",
"// @flow\n\nimport Color from './color.js';\n\nimport {number as interpolateNumber} from './interpolate.js';\n\ntype LABColor = {\n l: number,\n a: number,\n b: number,\n alpha: number\n};\n\ntype HCLColor = {\n h: number,\n c: number,\n l: number,\n alpha: number\n};\n\n// Constants\nconst Xn = 0.950470, // D65 standard referent\n Yn = 1,\n Zn = 1.088830,\n t0 = 4 / 29,\n t1 = 6 / 29,\n t2 = 3 * t1 * t1,\n t3 = t1 * t1 * t1,\n deg2rad = Math.PI / 180,\n rad2deg = 180 / Math.PI;\n\n// Utilities\nfunction xyz2lab(t: number) {\n return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0;\n}\n\nfunction lab2xyz(t: number) {\n return t > t1 ? t * t * t : t2 * (t - t0);\n}\n\nfunction xyz2rgb(x: number) {\n return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);\n}\n\nfunction rgb2xyz(x: number) {\n x /= 255;\n return x <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);\n}\n\n// LAB\nfunction rgbToLab(rgbColor: Color): LABColor {\n const b = rgb2xyz(rgbColor.r),\n a = rgb2xyz(rgbColor.g),\n l = rgb2xyz(rgbColor.b),\n x = xyz2lab((0.4124564 * b + 0.3575761 * a + 0.1804375 * l) / Xn),\n y = xyz2lab((0.2126729 * b + 0.7151522 * a + 0.0721750 * l) / Yn),\n z = xyz2lab((0.0193339 * b + 0.1191920 * a + 0.9503041 * l) / Zn);\n\n return {\n l: 116 * y - 16,\n a: 500 * (x - y),\n b: 200 * (y - z),\n alpha: rgbColor.a\n };\n}\n\nfunction labToRgb(labColor: LABColor): Color {\n let y = (labColor.l + 16) / 116,\n x = isNaN(labColor.a) ? y : y + labColor.a / 500,\n z = isNaN(labColor.b) ? y : y - labColor.b / 200;\n y = Yn * lab2xyz(y);\n x = Xn * lab2xyz(x);\n z = Zn * lab2xyz(z);\n return new Color(\n xyz2rgb(3.2404542 * x - 1.5371385 * y - 0.4985314 * z), // D65 -> sRGB\n xyz2rgb(-0.9692660 * x + 1.8760108 * y + 0.0415560 * z),\n xyz2rgb(0.0556434 * x - 0.2040259 * y + 1.0572252 * z),\n labColor.alpha\n );\n}\n\nfunction interpolateLab(from: LABColor, to: LABColor, t: number) {\n return {\n l: interpolateNumber(from.l, to.l, t),\n a: interpolateNumber(from.a, to.a, t),\n b: interpolateNumber(from.b, to.b, t),\n alpha: interpolateNumber(from.alpha, to.alpha, t)\n };\n}\n\n// HCL\nfunction rgbToHcl(rgbColor: Color): HCLColor {\n const {l, a, b} = rgbToLab(rgbColor);\n const h = Math.atan2(b, a) * rad2deg;\n return {\n h: h < 0 ? h + 360 : h,\n c: Math.sqrt(a * a + b * b),\n l,\n alpha: rgbColor.a\n };\n}\n\nfunction hclToRgb(hclColor: HCLColor): Color {\n const h = hclColor.h * deg2rad,\n c = hclColor.c,\n l = hclColor.l;\n return labToRgb({\n l,\n a: Math.cos(h) * c,\n b: Math.sin(h) * c,\n alpha: hclColor.alpha\n });\n}\n\nfunction interpolateHue(a: number, b: number, t: number) {\n const d = b - a;\n return a + t * (d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d);\n}\n\nfunction interpolateHcl(from: HCLColor, to: HCLColor, t: number) {\n return {\n h: interpolateHue(from.h, to.h, t),\n c: interpolateNumber(from.c, to.c, t),\n l: interpolateNumber(from.l, to.l, t),\n alpha: interpolateNumber(from.alpha, to.alpha, t)\n };\n}\n\nexport const lab = {\n forward: rgbToLab,\n reverse: labToRgb,\n interpolate: interpolateLab\n};\n\nexport const hcl = {\n forward: rgbToHcl,\n reverse: hclToRgb,\n interpolate: interpolateHcl\n};\n",
"// @flow\n\nimport UnitBezier from '@mapbox/unitbezier';\n\nimport * as interpolate from '../../util/interpolate.js';\nimport {toString, NumberType, ColorType} from '../types.js';\nimport {findStopLessThanOrEqualTo} from '../stops.js';\nimport {hcl, lab} from '../../util/color_spaces.js';\n\nimport type {Stops} from '../stops.js';\nimport type {Expression} from '../expression.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type EvaluationContext from '../evaluation_context.js';\nimport type {Type} from '../types.js';\n\nexport type InterpolationType =\n { name: 'linear' } |\n { name: 'exponential', base: number } |\n { name: 'cubic-bezier', controlPoints: [number, number, number, number] };\n\nclass Interpolate implements Expression {\n type: Type;\n\n operator: 'interpolate' | 'interpolate-hcl' | 'interpolate-lab';\n interpolation: InterpolationType;\n input: Expression;\n labels: Array<number>;\n outputs: Array<Expression>;\n\n constructor(type: Type, operator: 'interpolate' | 'interpolate-hcl' | 'interpolate-lab', interpolation: InterpolationType, input: Expression, stops: Stops) {\n this.type = type;\n this.operator = operator;\n this.interpolation = interpolation;\n this.input = input;\n\n this.labels = [];\n this.outputs = [];\n for (const [label, expression] of stops) {\n this.labels.push(label);\n this.outputs.push(expression);\n }\n }\n\n static interpolationFactor(interpolation: InterpolationType, input: number, lower: number, upper: number) {\n let t = 0;\n if (interpolation.name === 'exponential') {\n t = exponentialInterpolation(input, interpolation.base, lower, upper);\n } else if (interpolation.name === 'linear') {\n t = exponentialInterpolation(input, 1, lower, upper);\n } else if (interpolation.name === 'cubic-bezier') {\n const c = interpolation.controlPoints;\n const ub = new UnitBezier(c[0], c[1], c[2], c[3]);\n t = ub.solve(exponentialInterpolation(input, 1, lower, upper));\n }\n return t;\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext) {\n let [operator, interpolation, input, ...rest] = args;\n\n if (!Array.isArray(interpolation) || interpolation.length === 0) {\n return context.error(`Expected an interpolation type expression.`, 1);\n }\n\n if (interpolation[0] === 'linear') {\n interpolation = {name: 'linear'};\n } else if (interpolation[0] === 'exponential') {\n const base = interpolation[1];\n if (typeof base !== 'number')\n return context.error(`Exponential interpolation requires a numeric base.`, 1, 1);\n interpolation = {\n name: 'exponential',\n base\n };\n } else if (interpolation[0] === 'cubic-bezier') {\n const controlPoints = interpolation.slice(1);\n if (\n controlPoints.length !== 4 ||\n controlPoints.some(t => typeof t !== 'number' || t < 0 || t > 1)\n ) {\n return context.error('Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.', 1);\n }\n\n interpolation = {\n name: 'cubic-bezier',\n controlPoints: (controlPoints: any)\n };\n } else {\n return context.error(`Unknown interpolation type ${String(interpolation[0])}`, 1, 0);\n }\n\n if (args.length - 1 < 4) {\n return context.error(`Expected at least 4 arguments, but found only ${args.length - 1}.`);\n }\n\n if ((args.length - 1) % 2 !== 0) {\n return context.error(`Expected an even number of arguments.`);\n }\n\n input = context.parse(input, 2, NumberType);\n if (!input) return null;\n\n const stops: Stops = [];\n\n let outputType: Type =
"// @flow\n\nimport assert from 'assert';\n\nimport {checkSubtype, ValueType} from '../types.js';\nimport ResolvedImage from '../types/resolved_image.js';\n\nimport type {Expression} from '../expression.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type EvaluationContext from '../evaluation_context.js';\nimport type {Type} from '../types.js';\n\nclass Coalesce implements Expression {\n type: Type;\n args: Array<Expression>;\n\n constructor(type: Type, args: Array<Expression>) {\n this.type = type;\n this.args = args;\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext) {\n if (args.length < 2) {\n return context.error(\"Expectected at least one argument.\");\n }\n let outputType: Type = (null: any);\n const expectedType = context.expectedType;\n if (expectedType && expectedType.kind !== 'value') {\n outputType = expectedType;\n }\n const parsedArgs = [];\n\n for (const arg of args.slice(1)) {\n const parsed = context.parse(arg, 1 + parsedArgs.length, outputType, undefined, {typeAnnotation: 'omit'});\n if (!parsed) return null;\n outputType = outputType || parsed.type;\n parsedArgs.push(parsed);\n }\n assert(outputType);\n\n // Above, we parse arguments without inferred type annotation so that\n // they don't produce a runtime error for `null` input, which would\n // preempt the desired null-coalescing behavior.\n // Thus, if any of our arguments would have needed an annotation, we\n // need to wrap the enclosing coalesce expression with it instead.\n const needsAnnotation = expectedType &&\n parsedArgs.some(arg => checkSubtype(expectedType, arg.type));\n\n return needsAnnotation ?\n new Coalesce(ValueType, parsedArgs) :\n new Coalesce((outputType: any), parsedArgs);\n }\n\n evaluate(ctx: EvaluationContext) {\n let result = null;\n let argCount = 0;\n let requestedImageName;\n for (const arg of this.args) {\n argCount++;\n result = arg.evaluate(ctx);\n // we need to keep track of the first requested image in a coalesce statement\n // if coalesce can't find a valid image, we return the first image name so styleimagemissing can fire\n if (result && result instanceof ResolvedImage && !result.available) {\n if (!requestedImageName) {\n requestedImageName = result.name;\n }\n result = null;\n if (argCount === this.args.length) {\n result = requestedImageName;\n }\n }\n\n if (result !== null) break;\n }\n return result;\n }\n\n eachChild(fn: (_: Expression) => void) {\n this.args.forEach(fn);\n }\n\n outputDefined(): boolean {\n return this.args.every(arg => arg.outputDefined());\n }\n\n serialize() {\n const serialized = [\"coalesce\"];\n this.eachChild(child => { serialized.push(child.serialize()); });\n return serialized;\n }\n}\n\nexport default Coalesce;\n",
"// @flow\n\nimport type {Type} from '../types.js';\nimport type {Expression} from '../expression.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type EvaluationContext from '../evaluation_context.js';\n\nclass Let implements Expression {\n type: Type;\n bindings: Array<[string, Expression]>;\n result: Expression;\n\n constructor(bindings: Array<[string, Expression]>, result: Expression) {\n this.type = result.type;\n this.bindings = [].concat(bindings);\n this.result = result;\n }\n\n evaluate(ctx: EvaluationContext) {\n return this.result.evaluate(ctx);\n }\n\n eachChild(fn: (_: Expression) => void) {\n for (const binding of this.bindings) {\n fn(binding[1]);\n }\n fn(this.result);\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext) {\n if (args.length < 4)\n return context.error(`Expected at least 3 arguments, but found ${args.length - 1} instead.`);\n\n const bindings: Array<[string, Expression]> = [];\n for (let i = 1; i < args.length - 1; i += 2) {\n const name = args[i];\n\n if (typeof name !== 'string') {\n return context.error(`Expected string, but found ${typeof name} instead.`, i);\n }\n\n if (/[^a-zA-Z0-9_]/.test(name)) {\n return context.error(`Variable names must contain only alphanumeric characters or '_'.`, i);\n }\n\n const value = context.parse(args[i + 1], i + 1);\n if (!value) return null;\n\n bindings.push([name, value]);\n }\n\n const result = context.parse(args[args.length - 1], args.length - 1, context.expectedType, bindings);\n if (!result) return null;\n\n return new Let(bindings, result);\n }\n\n outputDefined() {\n return this.result.outputDefined();\n }\n\n serialize() {\n const serialized = [\"let\"];\n for (const [name, expr] of this.bindings) {\n serialized.push(name, expr.serialize());\n }\n serialized.push(this.result.serialize());\n return serialized;\n }\n}\n\nexport default Let;\n",
"// @flow\n\nimport {array, ValueType, NumberType} from '../types.js';\n\nimport RuntimeError from '../runtime_error.js';\n\nimport type {Expression} from '../expression.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type EvaluationContext from '../evaluation_context.js';\nimport type {Type, ArrayType} from '../types.js';\nimport type {Value} from '../values.js';\n\nclass At implements Expression {\n type: Type;\n index: Expression;\n input: Expression;\n\n constructor(type: Type, index: Expression, input: Expression) {\n this.type = type;\n this.index = index;\n this.input = input;\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext) {\n if (args.length !== 3)\n return context.error(`Expected 2 arguments, but found ${args.length - 1} instead.`);\n\n const index = context.parse(args[1], 1, NumberType);\n const input = context.parse(args[2], 2, array(context.expectedType || ValueType));\n\n if (!index || !input) return null;\n\n const t: ArrayType = (input.type: any);\n return new At(t.itemType, index, input);\n }\n\n evaluate(ctx: EvaluationContext) {\n const index = ((this.index.evaluate(ctx): any): number);\n const array = ((this.input.evaluate(ctx): any): Array<Value>);\n\n if (index < 0) {\n throw new RuntimeError(`Array index out of bounds: ${index} < 0.`);\n }\n\n if (index >= array.length) {\n throw new RuntimeError(`Array index out of bounds: ${index} > ${array.length - 1}.`);\n }\n\n if (index !== Math.floor(index)) {\n throw new RuntimeError(`Array index must be an integer, but found ${index} instead.`);\n }\n\n return array[index];\n }\n\n eachChild(fn: (_: Expression) => void) {\n fn(this.index);\n fn(this.input);\n }\n\n outputDefined() {\n return false;\n }\n\n serialize() {\n return [\"at\", this.index.serialize(), this.input.serialize()];\n }\n}\n\nexport default At;\n",
"// @flow\n\nimport {BooleanType, StringType, ValueType, NullType, toString, NumberType, isValidType, isValidNativeType} from '../types.js';\nimport RuntimeError from '../runtime_error.js';\nimport {typeOf} from '../values.js';\n\nimport type {Expression} from '../expression.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type EvaluationContext from '../evaluation_context.js';\nimport type {Type} from '../types.js';\n\nclass In implements Expression {\n type: Type;\n needle: Expression;\n haystack: Expression;\n\n constructor(needle: Expression, haystack: Expression) {\n this.type = BooleanType;\n this.needle = needle;\n this.haystack = haystack;\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext) {\n if (args.length !== 3) {\n return context.error(`Expected 2 arguments, but found ${args.length - 1} instead.`);\n }\n\n const needle = context.parse(args[1], 1, ValueType);\n\n const haystack = context.parse(args[2], 2, ValueType);\n\n if (!needle || !haystack) return null;\n\n if (!isValidType(needle.type, [BooleanType, StringType, NumberType, NullType, ValueType])) {\n return context.error(`Expected first argument to be of type boolean, string, number or null, but found ${toString(needle.type)} instead`);\n }\n\n return new In(needle, haystack);\n }\n\n evaluate(ctx: EvaluationContext) {\n const needle = (this.needle.evaluate(ctx): any);\n const haystack = (this.haystack.evaluate(ctx): any);\n\n if (!haystack) return false;\n\n if (!isValidNativeType(needle, ['boolean', 'string', 'number', 'null'])) {\n throw new RuntimeError(`Expected first argument to be of type boolean, string, number or null, but found ${toString(typeOf(needle))} instead.`);\n }\n\n if (!isValidNativeType(haystack, ['string', 'array'])) {\n throw new RuntimeError(`Expected second argument to be of type array or string, but found ${toString(typeOf(haystack))} instead.`);\n }\n\n return haystack.indexOf(needle) >= 0;\n }\n\n eachChild(fn: (_: Expression) => void) {\n fn(this.needle);\n fn(this.haystack);\n }\n\n outputDefined() {\n return true;\n }\n\n serialize() {\n return [\"in\", this.needle.serialize(), this.haystack.serialize()];\n }\n}\n\nexport default In;\n",
"// @flow\n\nimport {BooleanType, StringType, ValueType, NullType, toString, NumberType, isValidType, isValidNativeType} from '../types.js';\nimport RuntimeError from '../runtime_error.js';\nimport {typeOf} from '../values.js';\n\nimport type {Expression} from '../expression.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type EvaluationContext from '../evaluation_context.js';\nimport type {Type} from '../types.js';\n\nclass IndexOf implements Expression {\n type: Type;\n needle: Expression;\n haystack: Expression;\n fromIndex: ?Expression;\n\n constructor(needle: Expression, haystack: Expression, fromIndex?: Expression) {\n this.type = NumberType;\n this.needle = needle;\n this.haystack = haystack;\n this.fromIndex = fromIndex;\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext) {\n if (args.length <= 2 || args.length >= 5) {\n return context.error(`Expected 3 or 4 arguments, but found ${args.length - 1} instead.`);\n }\n\n const needle = context.parse(args[1], 1, ValueType);\n\n const haystack = context.parse(args[2], 2, ValueType);\n\n if (!needle || !haystack) return null;\n if (!isValidType(needle.type, [BooleanType, StringType, NumberType, NullType, ValueType])) {\n return context.error(`Expected first argument to be of type boolean, string, number or null, but found ${toString(needle.type)} instead`);\n }\n\n if (args.length === 4) {\n const fromIndex = context.parse(args[3], 3, NumberType);\n if (!fromIndex) return null;\n return new IndexOf(needle, haystack, fromIndex);\n } else {\n return new IndexOf(needle, haystack);\n }\n }\n\n evaluate(ctx: EvaluationContext) {\n const needle = (this.needle.evaluate(ctx): any);\n const haystack = (this.haystack.evaluate(ctx): any);\n\n if (!isValidNativeType(needle, ['boolean', 'string', 'number', 'null'])) {\n throw new RuntimeError(`Expected first argument to be of type boolean, string, number or null, but found ${toString(typeOf(needle))} instead.`);\n }\n\n if (!isValidNativeType(haystack, ['string', 'array'])) {\n throw new RuntimeError(`Expected second argument to be of type array or string, but found ${toString(typeOf(haystack))} instead.`);\n }\n\n if (this.fromIndex) {\n const fromIndex = (this.fromIndex.evaluate(ctx): number);\n return haystack.indexOf(needle, fromIndex);\n }\n\n return haystack.indexOf(needle);\n }\n\n eachChild(fn: (_: Expression) => void) {\n fn(this.needle);\n fn(this.haystack);\n if (this.fromIndex) {\n fn(this.fromIndex);\n }\n }\n\n outputDefined() {\n return false;\n }\n\n serialize() {\n if (this.fromIndex != null && this.fromIndex !== undefined) {\n const fromIndex = this.fromIndex.serialize();\n return [\"index-of\", this.needle.serialize(), this.haystack.serialize(), fromIndex];\n }\n return [\"index-of\", this.needle.serialize(), this.haystack.serialize()];\n }\n}\n\nexport default IndexOf;\n",
"// @flow\n\nimport assert from 'assert';\n\nimport {typeOf} from '../values.js';\nimport {ValueType, type Type} from '../types.js';\n\nimport type {Expression} from '../expression.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type EvaluationContext from '../evaluation_context.js';\n\n// Map input label values to output expression index\ntype Cases = {[number | string]: number};\n\nclass Match implements Expression {\n type: Type;\n inputType: Type;\n\n input: Expression;\n cases: Cases;\n outputs: Array<Expression>;\n otherwise: Expression;\n\n constructor(inputType: Type, outputType: Type, input: Expression, cases: Cases, outputs: Array<Expression>, otherwise: Expression) {\n this.inputType = inputType;\n this.type = outputType;\n this.input = input;\n this.cases = cases;\n this.outputs = outputs;\n this.otherwise = otherwise;\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext) {\n if (args.length < 5)\n return context.error(`Expected at least 4 arguments, but found only ${args.length - 1}.`);\n if (args.length % 2 !== 1)\n return context.error(`Expected an even number of arguments.`);\n\n let inputType;\n let outputType;\n if (context.expectedType && context.expectedType.kind !== 'value') {\n outputType = context.expectedType;\n }\n const cases = {};\n const outputs = [];\n for (let i = 2; i < args.length - 1; i += 2) {\n let labels = args[i];\n const value = args[i + 1];\n\n if (!Array.isArray(labels)) {\n labels = [labels];\n }\n\n const labelContext = context.concat(i);\n if (labels.length === 0) {\n return labelContext.error('Expected at least one branch label.');\n }\n\n for (const label of labels) {\n if (typeof label !== 'number' && typeof label !== 'string') {\n return labelContext.error(`Branch labels must be numbers or strings.`);\n } else if (typeof label === 'number' && Math.abs(label) > Number.MAX_SAFE_INTEGER) {\n return labelContext.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);\n\n } else if (typeof label === 'number' && Math.floor(label) !== label) {\n return labelContext.error(`Numeric branch labels must be integer values.`);\n\n } else if (!inputType) {\n inputType = typeOf(label);\n } else if (labelContext.checkSubtype(inputType, typeOf(label))) {\n return null;\n }\n\n if (typeof cases[String(label)] !== 'undefined') {\n return labelContext.error('Branch labels must be unique.');\n }\n\n cases[String(label)] = outputs.length;\n }\n\n const result = context.parse(value, i, outputType);\n if (!result) return null;\n outputType = outputType || result.type;\n outputs.push(result);\n }\n\n const input = context.parse(args[1], 1, ValueType);\n if (!input) return null;\n\n const otherwise = context.parse(args[args.length - 1], args.length - 1, outputType);\n if (!otherwise) return null;\n\n assert(inputType && outputType);\n\n if (input.type.kind !== 'value' && context.concat(1).checkSubtype((inputType: any), input.type)) {\n return null;\n }\n\n return new Match((inputType: any), (outputType: any), input, cases, outputs, otherwise);\n }\n\n evaluate(ctx: EvaluationContext) {\n const input = (this.input.evaluate(ctx): any);\n const output = (typeOf(input) === this.inputType && this.outputs[this.cases[input]]) || this.otherwise;\n return output.evaluate(ctx);\n }\n\n eachChild(fn: (_: Expression) => void) {\n fn(this.input);\n
"// @flow\n\nimport assert from 'assert';\n\nimport {BooleanType} from '../types.js';\n\nimport type {Expression} from '../expression.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type EvaluationContext from '../evaluation_context.js';\nimport type {Type} from '../types.js';\n\ntype Branches = Array<[Expression, Expression]>;\n\nclass Case implements Expression {\n type: Type;\n\n branches: Branches;\n otherwise: Expression;\n\n constructor(type: Type, branches: Branches, otherwise: Expression) {\n this.type = type;\n this.branches = branches;\n this.otherwise = otherwise;\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext) {\n if (args.length < 4)\n return context.error(`Expected at least 3 arguments, but found only ${args.length - 1}.`);\n if (args.length % 2 !== 0)\n return context.error(`Expected an odd number of arguments.`);\n\n let outputType: ?Type;\n if (context.expectedType && context.expectedType.kind !== 'value') {\n outputType = context.expectedType;\n }\n\n const branches = [];\n for (let i = 1; i < args.length - 1; i += 2) {\n const test = context.parse(args[i], i, BooleanType);\n if (!test) return null;\n\n const result = context.parse(args[i + 1], i + 1, outputType);\n if (!result) return null;\n\n branches.push([test, result]);\n\n outputType = outputType || result.type;\n }\n\n const otherwise = context.parse(args[args.length - 1], args.length - 1, outputType);\n if (!otherwise) return null;\n\n assert(outputType);\n return new Case((outputType: any), branches, otherwise);\n }\n\n evaluate(ctx: EvaluationContext) {\n for (const [test, expression] of this.branches) {\n if (test.evaluate(ctx)) {\n return expression.evaluate(ctx);\n }\n }\n return this.otherwise.evaluate(ctx);\n }\n\n eachChild(fn: (_: Expression) => void) {\n for (const [test, expression] of this.branches) {\n fn(test);\n fn(expression);\n }\n fn(this.otherwise);\n }\n\n outputDefined(): boolean {\n return this.branches.every(([_, out]) => out.outputDefined()) && this.otherwise.outputDefined();\n }\n\n serialize() {\n const serialized = [\"case\"];\n this.eachChild(child => { serialized.push(child.serialize()); });\n return serialized;\n }\n}\n\nexport default Case;\n",
"// @flow\n\nimport {ValueType, NumberType, StringType, array, toString, isValidType, isValidNativeType} from '../types.js';\nimport RuntimeError from '../runtime_error.js';\nimport {typeOf} from '../values.js';\n\nimport type {Expression} from '../expression.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type EvaluationContext from '../evaluation_context.js';\nimport type {Type} from '../types.js';\n\nclass Slice implements Expression {\n type: Type;\n input: Expression;\n beginIndex: Expression;\n endIndex: ?Expression;\n\n constructor(type: Type, input: Expression, beginIndex: Expression, endIndex?: Expression) {\n this.type = type;\n this.input = input;\n this.beginIndex = beginIndex;\n this.endIndex = endIndex;\n\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext) {\n if (args.length <= 2 || args.length >= 5) {\n return context.error(`Expected 3 or 4 arguments, but found ${args.length - 1} instead.`);\n }\n\n const input = context.parse(args[1], 1, ValueType);\n const beginIndex = context.parse(args[2], 2, NumberType);\n\n if (!input || !beginIndex) return null;\n\n if (!isValidType(input.type, [array(ValueType), StringType, ValueType])) {\n return context.error(`Expected first argument to be of type array or string, but found ${toString(input.type)} instead`);\n }\n\n if (args.length === 4) {\n const endIndex = context.parse(args[3], 3, NumberType);\n if (!endIndex) return null;\n return new Slice(input.type, input, beginIndex, endIndex);\n } else {\n return new Slice(input.type, input, beginIndex);\n }\n }\n\n evaluate(ctx: EvaluationContext) {\n const input = (this.input.evaluate(ctx): any);\n const beginIndex = (this.beginIndex.evaluate(ctx): number);\n\n if (!isValidNativeType(input, ['string', 'array'])) {\n throw new RuntimeError(`Expected first argument to be of type array or string, but found ${toString(typeOf(input))} instead.`);\n }\n\n if (this.endIndex) {\n const endIndex = (this.endIndex.evaluate(ctx): number);\n return input.slice(beginIndex, endIndex);\n }\n\n return input.slice(beginIndex);\n }\n\n eachChild(fn: (_: Expression) => void) {\n fn(this.input);\n fn(this.beginIndex);\n if (this.endIndex) {\n fn(this.endIndex);\n }\n }\n\n outputDefined() {\n return false;\n }\n\n serialize() {\n if (this.endIndex != null && this.endIndex !== undefined) {\n const endIndex = this.endIndex.serialize();\n return [\"slice\", this.input.serialize(), this.beginIndex.serialize(), endIndex];\n }\n return [\"slice\", this.input.serialize(), this.beginIndex.serialize()];\n }\n}\n\nexport default Slice;\n",
"// @flow\n\nimport {toString, ValueType, BooleanType, CollatorType} from '../types.js';\nimport Assertion from './assertion.js';\nimport {typeOf} from '../values.js';\nimport RuntimeError from '../runtime_error.js';\n\nimport type {Expression} from '../expression.js';\nimport type EvaluationContext from '../evaluation_context.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type {Type} from '../types.js';\n\ntype ComparisonOperator = '==' | '!=' | '<' | '>' | '<=' | '>=' ;\n\nfunction isComparableType(op: ComparisonOperator, type: Type) {\n if (op === '==' || op === '!=') {\n // equality operator\n return type.kind === 'boolean' ||\n type.kind === 'string' ||\n type.kind === 'number' ||\n type.kind === 'null' ||\n type.kind === 'value';\n } else {\n // ordering operator\n return type.kind === 'string' ||\n type.kind === 'number' ||\n type.kind === 'value';\n }\n}\n\nfunction eq(ctx, a, b) { return a === b; }\nfunction neq(ctx, a, b) { return a !== b; }\nfunction lt(ctx, a, b) { return a < b; }\nfunction gt(ctx, a, b) { return a > b; }\nfunction lteq(ctx, a, b) { return a <= b; }\nfunction gteq(ctx, a, b) { return a >= b; }\n\nfunction eqCollate(ctx, a, b, c) { return c.compare(a, b) === 0; }\nfunction neqCollate(ctx, a, b, c) { return !eqCollate(ctx, a, b, c); }\nfunction ltCollate(ctx, a, b, c) { return c.compare(a, b) < 0; }\nfunction gtCollate(ctx, a, b, c) { return c.compare(a, b) > 0; }\nfunction lteqCollate(ctx, a, b, c) { return c.compare(a, b) <= 0; }\nfunction gteqCollate(ctx, a, b, c) { return c.compare(a, b) >= 0; }\n\n/**\n * Special form for comparison operators, implementing the signatures:\n * - (T, T, ?Collator) => boolean\n * - (T, value, ?Collator) => boolean\n * - (value, T, ?Collator) => boolean\n *\n * For inequalities, T must be either value, string, or number. For ==/!=, it\n * can also be boolean or null.\n *\n * Equality semantics are equivalent to Javascript's strict equality (===/!==)\n * -- i.e., when the arguments' types don't match, == evaluates to false, != to\n * true.\n *\n * When types don't match in an ordering comparison, a runtime error is thrown.\n *\n * @private\n */\nfunction makeComparison(op: ComparisonOperator, compareBasic, compareWithCollator) {\n const isOrderComparison = op !== '==' && op !== '!=';\n\n return class Comparison implements Expression {\n type: Type;\n lhs: Expression;\n rhs: Expression;\n collator: ?Expression;\n hasUntypedArgument: boolean;\n\n constructor(lhs: Expression, rhs: Expression, collator: ?Expression) {\n this.type = BooleanType;\n this.lhs = lhs;\n this.rhs = rhs;\n this.collator = collator;\n this.hasUntypedArgument = lhs.type.kind === 'value' || rhs.type.kind === 'value';\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext): ?Expression {\n if (args.length !== 3 && args.length !== 4)\n return context.error(`Expected two or three arguments.`);\n\n const op: ComparisonOperator = (args[0]: any);\n\n let lhs = context.parse(args[1], 1, ValueType);\n if (!lhs) return null;\n if (!isComparableType(op, lhs.type)) {\n return context.concat(1).error(`\"${op}\" comparisons are not supported for type '${toString(lhs.type)}'.`);\n }\n let rhs = context.parse(args[2], 2, ValueType);\n if (!rhs) return null;\n if (!isComparableType(op, rhs.type)) {\n return context.concat(2).error(`\"${op}\" comparisons are not supported for type '${toString(rhs.type)}'.`);\n }\n\n if (\n lhs.type.kind !== rhs.type.kind &&\n lhs.type.kind !== 'value' &&\n rhs.type.kind !== 'value'\n ) {\n return context.error(`Cannot compare types '${toString(lhs.type)}' and '${toString(rhs.typ
"// @flow\n\nimport {StringType, NumberType} from '../types.js';\n\nimport type {Expression} from '../expression.js';\nimport type EvaluationContext from '../evaluation_context.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type {Type} from '../types.js';\n\ndeclare var Intl: {\n NumberFormat: Class<Intl$NumberFormat>\n};\n\ndeclare class Intl$NumberFormat {\n constructor (\n locales?: string | string[],\n options?: NumberFormatOptions\n ): Intl$NumberFormat;\n\n static (\n locales?: string | string[],\n options?: NumberFormatOptions\n ): Intl$NumberFormat;\n\n format(a: number): string;\n\n resolvedOptions(): any;\n}\n\ntype NumberFormatOptions = {\n style?: 'decimal' | 'currency' | 'percent';\n currency?: null | string;\n minimumFractionDigits?: null | string;\n maximumFractionDigits?: null | string;\n};\n\nexport default class NumberFormat implements Expression {\n type: Type;\n number: Expression;\n locale: Expression | null; // BCP 47 language tag\n currency: Expression | null; // ISO 4217 currency code, required if style=currency\n minFractionDigits: Expression | null; // Default 0\n maxFractionDigits: Expression | null; // Default 3\n\n constructor(number: Expression,\n locale: Expression | null,\n currency: Expression | null,\n minFractionDigits: Expression | null,\n maxFractionDigits: Expression | null) {\n this.type = StringType;\n this.number = number;\n this.locale = locale;\n this.currency = currency;\n this.minFractionDigits = minFractionDigits;\n this.maxFractionDigits = maxFractionDigits;\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext): ?Expression {\n if (args.length !== 3)\n return context.error(`Expected two arguments.`);\n\n const number = context.parse(args[1], 1, NumberType);\n if (!number) return null;\n\n const options = (args[2]: any);\n if (typeof options !== \"object\" || Array.isArray(options))\n return context.error(`NumberFormat options argument must be an object.`);\n\n let locale = null;\n if (options['locale']) {\n locale = context.parse(options['locale'], 1, StringType);\n if (!locale) return null;\n }\n\n let currency = null;\n if (options['currency']) {\n currency = context.parse(options['currency'], 1, StringType);\n if (!currency) return null;\n }\n\n let minFractionDigits = null;\n if (options['min-fraction-digits']) {\n minFractionDigits = context.parse(options['min-fraction-digits'], 1, NumberType);\n if (!minFractionDigits) return null;\n }\n\n let maxFractionDigits = null;\n if (options['max-fraction-digits']) {\n maxFractionDigits = context.parse(options['max-fraction-digits'], 1, NumberType);\n if (!maxFractionDigits) return null;\n }\n\n return new NumberFormat(number, locale, currency, minFractionDigits, maxFractionDigits);\n }\n\n evaluate(ctx: EvaluationContext) {\n return new Intl.NumberFormat(this.locale ? this.locale.evaluate(ctx) : [],\n {\n style: this.currency ? \"currency\" : \"decimal\",\n currency: this.currency ? this.currency.evaluate(ctx) : undefined,\n minimumFractionDigits: this.minFractionDigits ? this.minFractionDigits.evaluate(ctx) : undefined,\n maximumFractionDigits: this.maxFractionDigits ? this.maxFractionDigits.evaluate(ctx) : undefined,\n }).format(this.number.evaluate(ctx));\n }\n\n eachChild(fn: (_: Expression) => void) {\n fn(this.number);\n if (this.locale) {\n fn(this.locale);\n }\n if (this.currency) {\n fn(this.currency);\n }\n if (this.minFractionDigits) {\n fn(this.minFractionDigits);\n
"// @flow\n\nimport {\n type Type,\n NumberType,\n StringType,\n BooleanType,\n ColorType,\n ObjectType,\n ValueType,\n ErrorType,\n CollatorType,\n array,\n toString as typeToString\n} from '../types.js';\n\nimport {typeOf, Color, validateRGBA, toString as valueToString} from '../values.js';\nimport CompoundExpression from '../compound_expression.js';\nimport RuntimeError from '../runtime_error.js';\nimport Let from './let.js';\nimport Var from './var.js';\nimport Literal from './literal.js';\nimport Assertion from './assertion.js';\nimport Coercion from './coercion.js';\nimport At from './at.js';\nimport In from './in.js';\nimport IndexOf from './index_of.js';\nimport Match from './match.js';\nimport Case from './case.js';\nimport Slice from './slice.js';\nimport Step from './step.js';\nimport Interpolate from './interpolate.js';\nimport Coalesce from './coalesce.js';\nimport {\n Equals,\n NotEquals,\n LessThan,\n GreaterThan,\n LessThanOrEqual,\n GreaterThanOrEqual\n} from './comparison.js';\nimport CollatorExpression from './collator.js';\nimport NumberFormat from './number_format.js';\nimport FormatExpression from './format.js';\nimport ImageExpression from './image.js';\nimport Length from './length.js';\nimport Within from './within.js';\n\nimport type {Varargs} from '../compound_expression.js';\nimport type {ExpressionRegistry} from '../expression.js';\n\nconst expressions: ExpressionRegistry = {\n // special forms\n '==': Equals,\n '!=': NotEquals,\n '>': GreaterThan,\n '<': LessThan,\n '>=': GreaterThanOrEqual,\n '<=': LessThanOrEqual,\n 'array': Assertion,\n 'at': At,\n 'boolean': Assertion,\n 'case': Case,\n 'coalesce': Coalesce,\n 'collator': CollatorExpression,\n 'format': FormatExpression,\n 'image': ImageExpression,\n 'in': In,\n 'index-of': IndexOf,\n 'interpolate': Interpolate,\n 'interpolate-hcl': Interpolate,\n 'interpolate-lab': Interpolate,\n 'length': Length,\n 'let': Let,\n 'literal': Literal,\n 'match': Match,\n 'number': Assertion,\n 'number-format': NumberFormat,\n 'object': Assertion,\n 'slice': Slice,\n 'step': Step,\n 'string': Assertion,\n 'to-boolean': Coercion,\n 'to-color': Coercion,\n 'to-number': Coercion,\n 'to-string': Coercion,\n 'var': Var,\n 'within': Within\n};\n\nfunction rgba(ctx, [r, g, b, a]) {\n r = r.evaluate(ctx);\n g = g.evaluate(ctx);\n b = b.evaluate(ctx);\n const alpha = a ? a.evaluate(ctx) : 1;\n const error = validateRGBA(r, g, b, alpha);\n if (error) throw new RuntimeError(error);\n return new Color(r / 255 * alpha, g / 255 * alpha, b / 255 * alpha, alpha);\n}\n\nfunction has(key, obj) {\n return key in obj;\n}\n\nfunction get(key, obj) {\n const v = obj[key];\n return typeof v === 'undefined' ? null : v;\n}\n\nfunction binarySearch(v, a, i, j) {\n while (i <= j) {\n const m = (i + j) >> 1;\n if (a[m] === v)\n return true;\n if (a[m] > v)\n j = m - 1;\n else\n i = m + 1;\n }\n return false;\n}\n\nfunction varargs(type: Type): Varargs {\n return {type};\n}\n\nCompoundExpression.register(expressions, {\n 'error': [\n ErrorType,\n [StringType],\n (ctx, [v]) => { throw new RuntimeError(v.evaluate(ctx)); }\n ],\n 'typeof': [\n StringType,\n [ValueType],\n (ctx, [v]) => typeToString(typeOf(v.evaluate(ctx)))\n ],\n 'to-rgba': [\n array(NumberType, 4),\n [ColorType],\n (ctx, [v]) => {\n return v.evaluate(ctx).toArray();\n }\n ],\n 'rgb': [\n ColorType,\n [NumberType, NumberType, NumberType],\n rgba\n ],\n 'rgba': [\n ColorType,\n [NumberType, NumberType, NumberType, NumberType],\n rgba\n ],\n 'has': {\n type: BooleanType,\n overloads: [\n [\n [StringType],\n (ctx, [key]) => has(key.evaluate(ctx), ctx.pr
"// @flow\n\nimport {NumberType, toString} from '../types.js';\n\nimport {typeOf} from '../values.js';\nimport RuntimeError from '../runtime_error.js';\n\nimport type {Expression} from '../expression.js';\nimport type ParsingContext from '../parsing_context.js';\nimport type EvaluationContext from '../evaluation_context.js';\nimport type {Type} from '../types.js';\n\nclass Length implements Expression {\n type: Type;\n input: Expression;\n\n constructor(input: Expression) {\n this.type = NumberType;\n this.input = input;\n }\n\n static parse(args: $ReadOnlyArray<mixed>, context: ParsingContext) {\n if (args.length !== 2)\n return context.error(`Expected 1 argument, but found ${args.length - 1} instead.`);\n\n const input = context.parse(args[1], 1);\n if (!input) return null;\n\n if (input.type.kind !== 'array' && input.type.kind !== 'string' && input.type.kind !== 'value')\n return context.error(`Expected argument of type string or array, but found ${toString(input.type)} instead.`);\n\n return new Length(input);\n }\n\n evaluate(ctx: EvaluationContext) {\n const input = this.input.evaluate(ctx);\n if (typeof input === 'string') {\n return input.length;\n } else if (Array.isArray(input)) {\n return input.length;\n } else {\n throw new RuntimeError(`Expected value to be of type string or array, but found ${toString(typeOf(input))} instead.`);\n }\n }\n\n eachChild(fn: (_: Expression) => void) {\n fn(this.input);\n }\n\n outputDefined() {\n return false;\n }\n\n serialize() {\n const serialized = [\"length\"];\n this.eachChild(child => { serialized.push(child.serialize()); });\n return serialized;\n }\n}\n\nexport default Length;\n",
"// @flow\n\n/**\n * A type used for returning and propagating errors. The first element of the union\n * represents success and contains a value, and the second represents an error and\n * contains an error value.\n * @private\n */\nexport type Result<T, E> =\n | {| result: 'success', value: T |}\n | {| result: 'error', value: E |};\n\nexport function success<T, E>(value: T): Result<T, E> {\n return {result: 'success', value};\n}\n\nexport function error<T, E>(value: E): Result<T, E> {\n return {result: 'error', value};\n}\n",
"// @flow\n\nimport type {StylePropertySpecification} from '../style-spec.js';\n\nexport function supportsPropertyExpression(spec: StylePropertySpecification): boolean {\n return spec['property-type'] === 'data-driven' || spec['property-type'] === 'cross-faded-data-driven';\n}\n\nexport function supportsZoomExpression(spec: StylePropertySpecification): boolean {\n return !!spec.expression && spec.expression.parameters.indexOf('zoom') > -1;\n}\n\nexport function supportsInterpolation(spec: StylePropertySpecification): boolean {\n return !!spec.expression && spec.expression.interpolated;\n}\n",
"// @flow\n\nexport default function getType(val: mixed): string {\n if (val instanceof Number) {\n return 'number';\n } else if (val instanceof String) {\n return 'string';\n } else if (val instanceof Boolean) {\n return 'boolean';\n } else if (Array.isArray(val)) {\n return 'array';\n } else if (val === null) {\n return 'null';\n } else {\n return typeof val;\n }\n}\n",
"\nimport * as colorSpaces from '../util/color_spaces.js';\nimport Color from '../util/color.js';\nimport extend from '../util/extend.js';\nimport getType from '../util/get_type.js';\nimport * as interpolate from '../util/interpolate.js';\nimport Interpolate from '../expression/definitions/interpolate.js';\nimport Formatted from '../expression/types/formatted.js';\nimport ResolvedImage from '../expression/types/resolved_image.js';\nimport {supportsInterpolation} from '../util/properties.js';\nimport {findStopLessThanOrEqualTo} from '../expression/stops.js';\n\nexport function isFunction(value) {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\nfunction identityFunction(x) {\n return x;\n}\n\nexport function createFunction(parameters, propertySpec) {\n const isColor = propertySpec.type === 'color';\n const zoomAndFeatureDependent = parameters.stops && typeof parameters.stops[0][0] === 'object';\n const featureDependent = zoomAndFeatureDependent || parameters.property !== undefined;\n const zoomDependent = zoomAndFeatureDependent || !featureDependent;\n const type = parameters.type || (supportsInterpolation(propertySpec) ? 'exponential' : 'interval');\n\n if (isColor) {\n parameters = extend({}, parameters);\n\n if (parameters.stops) {\n parameters.stops = parameters.stops.map((stop) => {\n return [stop[0], Color.parse(stop[1])];\n });\n }\n\n if (parameters.default) {\n parameters.default = Color.parse(parameters.default);\n } else {\n parameters.default = Color.parse(propertySpec.default);\n }\n }\n\n if (parameters.colorSpace && parameters.colorSpace !== 'rgb' && !colorSpaces[parameters.colorSpace]) { // eslint-disable-line import/namespace\n throw new Error(`Unknown color space: ${parameters.colorSpace}`);\n }\n\n let innerFun;\n let hashedStops;\n let categoricalKeyType;\n if (type === 'exponential') {\n innerFun = evaluateExponentialFunction;\n } else if (type === 'interval') {\n innerFun = evaluateIntervalFunction;\n } else if (type === 'categorical') {\n innerFun = evaluateCategoricalFunction;\n\n // For categorical functions, generate an Object as a hashmap of the stops for fast searching\n hashedStops = Object.create(null);\n for (const stop of parameters.stops) {\n hashedStops[stop[0]] = stop[1];\n }\n\n // Infer key type based on first stop key-- used to encforce strict type checking later\n categoricalKeyType = typeof parameters.stops[0][0];\n\n } else if (type === 'identity') {\n innerFun = evaluateIdentityFunction;\n } else {\n throw new Error(`Unknown function type \"${type}\"`);\n }\n\n if (zoomAndFeatureDependent) {\n const featureFunctions = {};\n const zoomStops = [];\n for (let s = 0; s < parameters.stops.length; s++) {\n const stop = parameters.stops[s];\n const zoom = stop[0].zoom;\n if (featureFunctions[zoom] === undefined) {\n featureFunctions[zoom] = {\n zoom,\n type: parameters.type,\n property: parameters.property,\n default: parameters.default,\n stops: []\n };\n zoomStops.push(zoom);\n }\n featureFunctions[zoom].stops.push([stop[0].value, stop[1]]);\n }\n\n const featureFunctionStops = [];\n for (const z of zoomStops) {\n featureFunctionStops.push([featureFunctions[z].zoom, createFunction(featureFunctions[z], propertySpec)]);\n }\n\n const interpolationType = {name: 'linear'};\n return {\n kind: 'composite',\n interpolationType,\n interpolationFactor: Interpolate.interpolationFactor.bind(undefined, interpolationType),\n zoomStops: featureFunctionStops.map(s => s[0]),\n evaluate({
"// @flow\n\nimport assert from 'assert';\n\nimport extend from '../util/extend.js';\nimport ParsingError from './parsing_error.js';\nimport ParsingContext from './parsing_context.js';\nimport EvaluationContext from './evaluation_context.js';\nimport CompoundExpression from './compound_expression.js';\nimport Step from './definitions/step.js';\nimport Interpolate from './definitions/interpolate.js';\nimport Coalesce from './definitions/coalesce.js';\nimport Let from './definitions/let.js';\nimport definitions from './definitions/index.js';\nimport * as isConstant from './is_constant.js';\nimport RuntimeError from './runtime_error.js';\nimport {success, error} from '../util/result.js';\nimport {supportsPropertyExpression, supportsZoomExpression, supportsInterpolation} from '../util/properties.js';\n\nimport type {Type, EvaluationKind} from './types.js';\nimport type {Value} from './values.js';\nimport type {Expression} from './expression.js';\nimport type {StylePropertySpecification} from '../style-spec.js';\nimport type {Result} from '../util/result.js';\nimport type {InterpolationType} from './definitions/interpolate.js';\nimport type {PropertyValueSpecification} from '../types.js';\nimport type {FormattedSection} from './types/formatted.js';\nimport type Point from '@mapbox/point-geometry';\nimport type {CanonicalTileID} from '../../source/tile_id.js';\n\nexport type Feature = {\n +type: 1 | 2 | 3 | 'Unknown' | 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon',\n +id?: any,\n +properties: {[_: string]: any},\n +patterns?: {[_: string]: {\"min\":string, \"mid\":string, \"max\":string}},\n +geometry?: Array<Array<Point>>\n};\n\nexport type FeatureState = {[_: string]: any};\n\nexport type GlobalProperties = $ReadOnly<{\n zoom: number,\n heatmapDensity?: number,\n lineProgress?: number,\n skyRadialProgress?: number,\n isSupportedScript?: (_: string) => boolean,\n accumulated?: Value\n}>;\n\nexport class StyleExpression {\n expression: Expression;\n\n _evaluator: EvaluationContext;\n _defaultValue: Value;\n _warningHistory: {[key: string]: boolean};\n _enumValues: ?{[_: string]: any};\n\n constructor(expression: Expression, propertySpec: ?StylePropertySpecification) {\n this.expression = expression;\n this._warningHistory = {};\n this._evaluator = new EvaluationContext();\n this._defaultValue = propertySpec ? getDefaultValue(propertySpec) : null;\n this._enumValues = propertySpec && propertySpec.type === 'enum' ? propertySpec.values : null;\n }\n\n evaluateWithoutErrorHandling(globals: GlobalProperties, feature?: Feature, featureState?: FeatureState, canonical?: CanonicalTileID, availableImages?: Array<string>, formattedSection?: FormattedSection): any {\n this._evaluator.globals = globals;\n this._evaluator.feature = feature;\n this._evaluator.featureState = featureState;\n this._evaluator.canonical = canonical;\n this._evaluator.availableImages = availableImages || null;\n this._evaluator.formattedSection = formattedSection;\n\n return this.expression.evaluate(this._evaluator);\n }\n\n evaluate(globals: GlobalProperties, feature?: Feature, featureState?: FeatureState, canonical?: CanonicalTileID, availableImages?: Array<string>, formattedSection?: FormattedSection): any {\n this._evaluator.globals = globals;\n this._evaluator.feature = feature || null;\n this._evaluator.featureState = featureState || null;\n this._evaluator.canonical = canonical;\n this._evaluator.availableImages = availableImages || null;\n this._evaluator.formattedSection = formattedSection || null;\n\n try {\n const val = this.expression.evaluate(this._evaluator);\n // eslint-disable-next-line no-self-compare\n if (val === null || val === undefined || (typeof val === 'number' && val !== val)) {\n return this._defaultValue;\n }\n if (this._enumValu
"// @flow\n\nimport assert from 'assert';\nimport type {StylePropertySpecification} from '../style-spec.js';\n\nexport default convertFunction;\n\nfunction convertLiteral(value) {\n return typeof value === 'object' ? ['literal', value] : value;\n}\n\nfunction convertFunction(parameters: any, propertySpec: StylePropertySpecification) {\n let stops = parameters.stops;\n if (!stops) {\n // identity function\n return convertIdentityFunction(parameters, propertySpec);\n }\n\n const zoomAndFeatureDependent = stops && typeof stops[0][0] === 'object';\n const featureDependent = zoomAndFeatureDependent || parameters.property !== undefined;\n const zoomDependent = zoomAndFeatureDependent || !featureDependent;\n\n stops = stops.map((stop) => {\n if (!featureDependent && propertySpec.tokens && typeof stop[1] === 'string') {\n return [stop[0], convertTokenString(stop[1])];\n }\n return [stop[0], convertLiteral(stop[1])];\n });\n\n if (zoomAndFeatureDependent) {\n return convertZoomAndPropertyFunction(parameters, propertySpec, stops);\n } else if (zoomDependent) {\n return convertZoomFunction(parameters, propertySpec, stops);\n } else {\n return convertPropertyFunction(parameters, propertySpec, stops);\n }\n}\n\nfunction convertIdentityFunction(parameters, propertySpec): Array<mixed> {\n const get = ['get', parameters.property];\n\n if (parameters.default === undefined) {\n // By default, expressions for string-valued properties get coerced. To preserve\n // legacy function semantics, insert an explicit assertion instead.\n return propertySpec.type === 'string' ? ['string', get] : get;\n } else if (propertySpec.type === 'enum') {\n return [\n 'match',\n get,\n Object.keys(propertySpec.values),\n get,\n parameters.default\n ];\n } else {\n const expression = [propertySpec.type === 'color' ? 'to-color' : propertySpec.type, get, convertLiteral(parameters.default)];\n if (propertySpec.type === 'array') {\n expression.splice(1, 0, propertySpec.value, propertySpec.length || null);\n }\n return expression;\n }\n}\n\nfunction getInterpolateOperator(parameters) {\n switch (parameters.colorSpace) {\n case 'hcl': return 'interpolate-hcl';\n case 'lab': return 'interpolate-lab';\n default: return 'interpolate';\n }\n}\n\nfunction convertZoomAndPropertyFunction(parameters, propertySpec, stops) {\n const featureFunctionParameters = {};\n const featureFunctionStops = {};\n const zoomStops = [];\n for (let s = 0; s < stops.length; s++) {\n const stop = stops[s];\n const zoom = stop[0].zoom;\n if (featureFunctionParameters[zoom] === undefined) {\n featureFunctionParameters[zoom] = {\n zoom,\n type: parameters.type,\n property: parameters.property,\n default: parameters.default,\n };\n featureFunctionStops[zoom] = [];\n zoomStops.push(zoom);\n }\n featureFunctionStops[zoom].push([stop[0].value, stop[1]]);\n }\n\n // the interpolation type for the zoom dimension of a zoom-and-property\n // function is determined directly from the style property specification\n // for which it's being used: linear for interpolatable properties, step\n // otherwise.\n const functionType = getFunctionType({}, propertySpec);\n if (functionType === 'exponential') {\n const expression = [getInterpolateOperator(parameters), ['linear'], ['zoom']];\n\n for (const z of zoomStops) {\n const output = convertPropertyFunction(featureFunctionParameters[z], propertySpec, featureFunctionStops[z]);\n appendStopPair(expression, z, output, false);\n }\n\n return expression;\n } else {\n const expression = ['step', ['zoom']];\n\n for (const z of zoomStops) {\n const output = con
"// @flow\n\nimport {createExpression} from '../expression/index.js';\nimport type {GlobalProperties, Feature} from '../expression/index.js';\nimport type {CanonicalTileID} from '../../source/tile_id.js';\n\ntype FilterExpression = (globalProperties: GlobalProperties, feature: Feature, canonical?: CanonicalTileID) => boolean;\nexport type FeatureFilter ={filter: FilterExpression, needGeometry: boolean};\n\nexport default createFilter;\nexport {isExpressionFilter};\n\nfunction isExpressionFilter(filter: any) {\n if (filter === true || filter === false) {\n return true;\n }\n\n if (!Array.isArray(filter) || filter.length === 0) {\n return false;\n }\n switch (filter[0]) {\n case 'has':\n return filter.length >= 2 && filter[1] !== '$id' && filter[1] !== '$type';\n\n case 'in':\n return filter.length >= 3 && (typeof filter[1] !== 'string' || Array.isArray(filter[2]));\n\n case '!in':\n case '!has':\n case 'none':\n return false;\n\n case '==':\n case '!=':\n case '>':\n case '>=':\n case '<':\n case '<=':\n return filter.length !== 3 || (Array.isArray(filter[1]) || Array.isArray(filter[2]));\n\n case 'any':\n case 'all':\n for (const f of filter.slice(1)) {\n if (!isExpressionFilter(f) && typeof f !== 'boolean') {\n return false;\n }\n }\n return true;\n\n default:\n return true;\n }\n}\n\nconst filterSpec = {\n 'type': 'boolean',\n 'default': false,\n 'transition': false,\n 'property-type': 'data-driven',\n 'expression': {\n 'interpolated': false,\n 'parameters': ['zoom', 'feature']\n }\n};\n\n/**\n * Given a filter expressed as nested arrays, return a new function\n * that evaluates whether a given feature (with a .properties or .tags property)\n * passes its test.\n *\n * @private\n * @param {Array} filter mapbox gl filter\n * @returns {Function} filter-evaluating function\n */\nfunction createFilter(filter: any): FeatureFilter {\n if (filter === null || filter === undefined) {\n return {filter: () => true, needGeometry: false};\n }\n\n if (!isExpressionFilter(filter)) {\n filter = convertFilter(filter);\n }\n\n const compiled = createExpression(filter, filterSpec);\n if (compiled.result === 'error') {\n throw new Error(compiled.value.map(err => `${err.key}: ${err.message}`).join(', '));\n } else {\n const needGeometry = geometryNeeded(filter);\n return {filter: (globalProperties: GlobalProperties, feature: Feature, canonical?: CanonicalTileID) => compiled.value.evaluate(globalProperties, feature, {}, canonical),\n needGeometry};\n }\n}\n\n// Comparison function to sort numbers and strings\nfunction compare(a, b) {\n return a < b ? -1 : a > b ? 1 : 0;\n}\n\nfunction geometryNeeded(filter) {\n if (!Array.isArray(filter)) return false;\n if (filter[0] === 'within') return true;\n for (let index = 1; index < filter.length; index++) {\n if (geometryNeeded(filter[index])) return true;\n }\n return false;\n}\n\nfunction convertFilter(filter: ?Array<any>): mixed {\n if (!filter) return true;\n const op = filter[0];\n if (filter.length <= 1) return (op !== 'any');\n const converted =\n op === '==' ? convertComparisonOp(filter[1], filter[2], '==') :\n op === '!=' ? convertNegation(convertComparisonOp(filter[1], filter[2], '==')) :\n op === '<' ||\n op === '>' ||\n op === '<=' ||\n op === '>=' ? convertComparisonOp(filter[1], filter[2], op) :\n op === 'any' ? convertDisjunctionOp(filter.slice(1)) :\n op === 'all' ? ['all'].concat(filter.slice(1).map(convertFilter)) :\n op === 'none' ? ['all'].concat(filter.slice(1).map(convertFilter).map(convertNegation)) :\n op === 'in' ? convertInOp(filter[1], filter.slice(2)) :\n op === '!in' ? convertNegation(convertInOp(filter[1], filter.slice(2))) :\n op === 'has' ? convertHasOp(filter[1]) :\n op
"\nexport default ['type', 'source', 'source-layer', 'minzoom', 'maxzoom', 'filter', 'layout'];\n",
"\nimport refProperties from './util/ref_properties.js';\n\nfunction deref(layer, parent) {\n const result = {};\n\n for (const k in layer) {\n if (k !== 'ref') {\n result[k] = layer[k];\n }\n }\n\n refProperties.forEach((k) => {\n if (k in parent) {\n result[k] = parent[k];\n }\n });\n\n return result;\n}\n\nexport default derefLayers;\n\n/**\n * Given an array of layers, some of which may contain `ref` properties\n * whose value is the `id` of another property, return a new array where\n * such layers have been augmented with the 'type', 'source', etc. properties\n * from the parent layer, and the `ref` property has been removed.\n *\n * The input is not modified. The output may contain references to portions\n * of the input.\n *\n * @private\n * @param {Array<Layer>} layers\n * @returns {Array<Layer>}\n */\nfunction derefLayers(layers) {\n layers = layers.slice();\n\n const map = Object.create(null);\n for (let i = 0; i < layers.length; i++) {\n map[layers[i].id] = layers[i];\n }\n\n for (let i = 0; i < layers.length; i++) {\n if ('ref' in layers[i]) {\n layers[i] = deref(layers[i], map[layers[i].ref]);\n }\n }\n\n return layers;\n}\n",
"// @flow\n\n// Note: Do not inherit from Error. It breaks when transpiling to ES5.\n\nexport default class ValidationError {\n message: string;\n identifier: ?string;\n line: ?number;\n\n constructor(key: ?string, value: ?{ __line__: number }, message: string, identifier: ?string) {\n this.message = (key ? `${key}: ` : '') + message;\n if (identifier) this.identifier = identifier;\n\n if (value !== null && value !== undefined && value.__line__) {\n this.line = value.__line__;\n }\n }\n}\n",
"// @flow\n\n// Note: Do not inherit from Error. It breaks when transpiling to ES5.\n\nexport default class ParsingError {\n message: string;\n error: Error;\n line: number;\n\n constructor(error: Error) {\n this.error = error;\n this.message = error.message;\n const match = error.message.match(/line (\\d+)/);\n this.line = match ? parseInt(match[1], 10) : 0;\n }\n}\n",
"\nimport ValidationError from '../error/validation_error.js';\n\nexport default function validateConstants(options) {\n const key = options.key;\n const constants = options.value;\n\n if (constants) {\n return [new ValidationError(key, constants, 'constants have been deprecated as of v8')];\n } else {\n return [];\n }\n}\n",
"// @flow\n\n// Turn jsonlint-lines-primitives objects into primitive objects\nexport function unbundle(value: mixed) {\n if (value instanceof Number || value instanceof String || value instanceof Boolean) {\n return value.valueOf();\n } else {\n return value;\n }\n}\n\nexport function deepUnbundle(value: mixed): mixed {\n if (Array.isArray(value)) {\n return value.map(deepUnbundle);\n } else if (value instanceof Object && !(value instanceof Number || value instanceof String || value instanceof Boolean)) {\n const unbundledValue: { [key: string]: mixed } = {};\n for (const key in value) {\n unbundledValue[key] = deepUnbundle(value[key]);\n }\n return unbundledValue;\n }\n\n return unbundle(value);\n}\n",
"\nimport ValidationError from '../error/validation_error.js';\nimport getType from '../util/get_type.js';\nimport validateSpec from './validate.js';\n\nexport default function validateObject(options) {\n const key = options.key;\n const object = options.value;\n const elementSpecs = options.valueSpec || {};\n const elementValidators = options.objectElementValidators || {};\n const style = options.style;\n const styleSpec = options.styleSpec;\n let errors = [];\n\n const type = getType(object);\n if (type !== 'object') {\n return [new ValidationError(key, object, `object expected, ${type} found`)];\n }\n\n for (const objectKey in object) {\n const elementSpecKey = objectKey.split('.')[0]; // treat 'paint.*' as 'paint'\n const elementSpec = elementSpecs[elementSpecKey] || elementSpecs['*'];\n\n let validateElement;\n if (elementValidators[elementSpecKey]) {\n validateElement = elementValidators[elementSpecKey];\n } else if (elementSpecs[elementSpecKey]) {\n validateElement = validateSpec;\n } else if (elementValidators['*']) {\n validateElement = elementValidators['*'];\n } else if (elementSpecs['*']) {\n validateElement = validateSpec;\n } else {\n errors.push(new ValidationError(key, object[objectKey], `unknown property \"${objectKey}\"`));\n continue;\n }\n\n errors = errors.concat(validateElement({\n key: (key ? `${key}.` : key) + objectKey,\n value: object[objectKey],\n valueSpec: elementSpec,\n style,\n styleSpec,\n object,\n objectKey\n }, object));\n }\n\n for (const elementSpecKey in elementSpecs) {\n // Don't check `required` when there's a custom validator for that property.\n if (elementValidators[elementSpecKey]) {\n continue;\n }\n\n if (elementSpecs[elementSpecKey].required && elementSpecs[elementSpecKey]['default'] === undefined && object[elementSpecKey] === undefined) {\n errors.push(new ValidationError(key, object, `missing required property \"${elementSpecKey}\"`));\n }\n }\n\n return errors;\n}\n",
"\nimport getType from '../util/get_type.js';\nimport validate from './validate.js';\nimport ValidationError from '../error/validation_error.js';\n\nexport default function validateArray(options) {\n const array = options.value;\n const arraySpec = options.valueSpec;\n const style = options.style;\n const styleSpec = options.styleSpec;\n const key = options.key;\n const validateArrayElement = options.arrayElementValidator || validate;\n\n if (getType(array) !== 'array') {\n return [new ValidationError(key, array, `array expected, ${getType(array)} found`)];\n }\n\n if (arraySpec.length && array.length !== arraySpec.length) {\n return [new ValidationError(key, array, `array length ${arraySpec.length} expected, length ${array.length} found`)];\n }\n\n if (arraySpec['min-length'] && array.length < arraySpec['min-length']) {\n return [new ValidationError(key, array, `array length at least ${arraySpec['min-length']} expected, length ${array.length} found`)];\n }\n\n let arrayElementSpec = {\n \"type\":arraySpec.value,\n \"values\":arraySpec.values,\n \"minimum\":arraySpec.minimum,\n \"maximum\":arraySpec.maximum\n };\n\n if (styleSpec.$version < 7) {\n arrayElementSpec.function = arraySpec.function;\n }\n\n if (getType(arraySpec.value) === 'object') {\n arrayElementSpec = arraySpec.value;\n }\n\n let errors = [];\n for (let i = 0; i < array.length; i++) {\n errors = errors.concat(validateArrayElement({\n array,\n arrayIndex: i,\n value: array[i],\n valueSpec: arrayElementSpec,\n style,\n styleSpec,\n key: `${key}[${i}]`\n }));\n }\n return errors;\n}\n",
"\nimport getType from '../util/get_type.js';\nimport ValidationError from '../error/validation_error.js';\n\nexport default function validateNumber(options) {\n const key = options.key;\n const value = options.value;\n const valueSpec = options.valueSpec;\n let type = getType(value);\n\n // eslint-disable-next-line no-self-compare\n if (type === 'number' && value !== value) {\n type = 'NaN';\n }\n\n if (type !== 'number') {\n return [new ValidationError(key, value, `number expected, ${type} found`)];\n }\n\n if ('minimum' in valueSpec) {\n let specMin = valueSpec.minimum;\n if (getType(valueSpec.minimum) === 'array') {\n const i = options.arrayIndex;\n specMin = valueSpec.minimum[i];\n }\n if (value < specMin) {\n return [new ValidationError(key, value, `${value} is less than the minimum value ${specMin}`)];\n }\n }\n\n if ('maximum' in valueSpec) {\n let specMax = valueSpec.maximum;\n if (getType(valueSpec.maximum) === 'array') {\n const i = options.arrayIndex;\n specMax = valueSpec.maximum[i];\n }\n if (value > specMax) {\n return [new ValidationError(key, value, `${value} is greater than the maximum value ${specMax}`)];\n }\n }\n\n return [];\n}\n",
"\nimport ValidationError from '../error/validation_error.js';\nimport getType from '../util/get_type.js';\nimport validate from './validate.js';\nimport validateObject from './validate_object.js';\nimport validateArray from './validate_array.js';\nimport validateNumber from './validate_number.js';\nimport {isExpression} from '../expression/index.js';\nimport {unbundle, deepUnbundle} from '../util/unbundle_jsonlint.js';\nimport {\n supportsPropertyExpression,\n supportsZoomExpression,\n supportsInterpolation\n} from '../util/properties.js';\n\nexport default function validateFunction(options) {\n const functionValueSpec = options.valueSpec;\n const functionType = unbundle(options.value.type);\n let stopKeyType;\n let stopDomainValues = {};\n let previousStopDomainValue;\n let previousStopDomainZoom;\n\n const isZoomFunction = functionType !== 'categorical' && options.value.property === undefined;\n const isPropertyFunction = !isZoomFunction;\n const isZoomAndPropertyFunction =\n getType(options.value.stops) === 'array' &&\n getType(options.value.stops[0]) === 'array' &&\n getType(options.value.stops[0][0]) === 'object';\n\n const errors = validateObject({\n key: options.key,\n value: options.value,\n valueSpec: options.styleSpec.function,\n style: options.style,\n styleSpec: options.styleSpec,\n objectElementValidators: {\n stops: validateFunctionStops,\n default: validateFunctionDefault\n }\n });\n\n if (functionType === 'identity' && isZoomFunction) {\n errors.push(new ValidationError(options.key, options.value, 'missing required property \"property\"'));\n }\n\n if (functionType !== 'identity' && !options.value.stops) {\n errors.push(new ValidationError(options.key, options.value, 'missing required property \"stops\"'));\n }\n\n if (functionType === 'exponential' && options.valueSpec.expression && !supportsInterpolation(options.valueSpec)) {\n errors.push(new ValidationError(options.key, options.value, 'exponential functions not supported'));\n }\n\n if (options.styleSpec.$version >= 8) {\n if (isPropertyFunction && !supportsPropertyExpression(options.valueSpec)) {\n errors.push(new ValidationError(options.key, options.value, 'property functions not supported'));\n } else if (isZoomFunction && !supportsZoomExpression(options.valueSpec)) {\n errors.push(new ValidationError(options.key, options.value, 'zoom functions not supported'));\n }\n }\n\n if ((functionType === 'categorical' || isZoomAndPropertyFunction) && options.value.property === undefined) {\n errors.push(new ValidationError(options.key, options.value, '\"property\" property is required'));\n }\n\n return errors;\n\n function validateFunctionStops(options) {\n if (functionType === 'identity') {\n return [new ValidationError(options.key, options.value, 'identity function may not have a \"stops\" property')];\n }\n\n let errors = [];\n const value = options.value;\n\n errors = errors.concat(validateArray({\n key: options.key,\n value,\n valueSpec: options.valueSpec,\n style: options.style,\n styleSpec: options.styleSpec,\n arrayElementValidator: validateFunctionStop\n }));\n\n if (getType(value) === 'array' && value.length === 0) {\n errors.push(new ValidationError(options.key, value, 'array must have at least one stop'));\n }\n\n return errors;\n }\n\n function validateFunctionStop(options) {\n let errors = [];\n const value = options.value;\n const key = options.key;\n\n if (getType(value) !== 'array') {\n return [new ValidationError(key, value, `array expected, ${getType(value)} found`)];\n }\n\n if (value.length !== 2) {\n return [new ValidationError(key, value, `array length 2 expected, length $
"// @flow\n\nimport ValidationError from '../error/validation_error.js';\n\nimport {createExpression, createPropertyExpression} from '../expression/index.js';\nimport {deepUnbundle} from '../util/unbundle_jsonlint.js';\nimport {isStateConstant, isGlobalPropertyConstant, isFeatureConstant} from '../expression/is_constant.js';\n\nexport default function validateExpression(options: any): Array<ValidationError> {\n const expression = (options.expressionContext === 'property' ? createPropertyExpression : createExpression)(deepUnbundle(options.value), options.valueSpec);\n if (expression.result === 'error') {\n return expression.value.map((error) => {\n return new ValidationError(`${options.key}${error.key}`, options.value, error.message);\n });\n }\n\n const expressionObj = (expression.value: any).expression || (expression.value: any)._styleExpression.expression;\n\n if (options.expressionContext === 'property' && (options.propertyKey === 'text-font') &&\n !expressionObj.outputDefined()) {\n return [new ValidationError(options.key, options.value, `Invalid data expression for \"${options.propertyKey}\". Output values must be contained as literals within the expression.`)];\n }\n\n if (options.expressionContext === 'property' && options.propertyType === 'layout' &&\n (!isStateConstant(expressionObj))) {\n return [new ValidationError(options.key, options.value, '\"feature-state\" data expressions are not supported with layout properties.')];\n }\n\n if (options.expressionContext === 'filter' && !isStateConstant(expressionObj)) {\n return [new ValidationError(options.key, options.value, '\"feature-state\" data expressions are not supported with filters.')];\n }\n\n if (options.expressionContext && options.expressionContext.indexOf('cluster') === 0) {\n if (!isGlobalPropertyConstant(expressionObj, ['zoom', 'feature-state'])) {\n return [new ValidationError(options.key, options.value, '\"zoom\" and \"feature-state\" expressions are not supported with cluster properties.')];\n }\n if (options.expressionContext === 'cluster-initial' && !isFeatureConstant(expressionObj)) {\n return [new ValidationError(options.key, options.value, 'Feature data expressions are not supported with initial expression part of cluster properties.')];\n }\n }\n\n return [];\n}\n",
"\nimport ValidationError from '../error/validation_error.js';\nimport {unbundle} from '../util/unbundle_jsonlint.js';\n\nexport default function validateEnum(options) {\n const key = options.key;\n const value = options.value;\n const valueSpec = options.valueSpec;\n const errors = [];\n\n if (Array.isArray(valueSpec.values)) { // <=v7\n if (valueSpec.values.indexOf(unbundle(value)) === -1) {\n errors.push(new ValidationError(key, value, `expected one of [${valueSpec.values.join(', ')}], ${JSON.stringify(value)} found`));\n }\n } else { // >=v8\n if (Object.keys(valueSpec.values).indexOf(unbundle(value)) === -1) {\n errors.push(new ValidationError(key, value, `expected one of [${Object.keys(valueSpec.values).join(', ')}], ${JSON.stringify(value)} found`));\n }\n }\n return errors;\n}\n",
"\nimport ValidationError from '../error/validation_error.js';\nimport validateExpression from './validate_expression.js';\nimport validateEnum from './validate_enum.js';\nimport getType from '../util/get_type.js';\nimport {unbundle, deepUnbundle} from '../util/unbundle_jsonlint.js';\nimport extend from '../util/extend.js';\nimport {isExpressionFilter} from '../feature_filter/index.js';\n\nexport default function validateFilter(options) {\n if (isExpressionFilter(deepUnbundle(options.value))) {\n return validateExpression(extend({}, options, {\n expressionContext: 'filter',\n valueSpec: {value: 'boolean'}\n }));\n } else {\n return validateNonExpressionFilter(options);\n }\n}\n\nfunction validateNonExpressionFilter(options) {\n const value = options.value;\n const key = options.key;\n\n if (getType(value) !== 'array') {\n return [new ValidationError(key, value, `array expected, ${getType(value)} found`)];\n }\n\n const styleSpec = options.styleSpec;\n let type;\n\n let errors = [];\n\n if (value.length < 1) {\n return [new ValidationError(key, value, 'filter array must have at least 1 element')];\n }\n\n errors = errors.concat(validateEnum({\n key: `${key}[0]`,\n value: value[0],\n valueSpec: styleSpec.filter_operator,\n style: options.style,\n styleSpec: options.styleSpec\n }));\n\n switch (unbundle(value[0])) {\n case '<':\n case '<=':\n case '>':\n case '>=':\n if (value.length >= 2 && unbundle(value[1]) === '$type') {\n errors.push(new ValidationError(key, value, `\"$type\" cannot be use with operator \"${value[0]}\"`));\n }\n /* falls through */\n case '==':\n case '!=':\n if (value.length !== 3) {\n errors.push(new ValidationError(key, value, `filter array for operator \"${value[0]}\" must have 3 elements`));\n }\n /* falls through */\n case 'in':\n case '!in':\n if (value.length >= 2) {\n type = getType(value[1]);\n if (type !== 'string') {\n errors.push(new ValidationError(`${key}[1]`, value[1], `string expected, ${type} found`));\n }\n }\n for (let i = 2; i < value.length; i++) {\n type = getType(value[i]);\n if (unbundle(value[1]) === '$type') {\n errors = errors.concat(validateEnum({\n key: `${key}[${i}]`,\n value: value[i],\n valueSpec: styleSpec.geometry_type,\n style: options.style,\n styleSpec: options.styleSpec\n }));\n } else if (type !== 'string' && type !== 'number' && type !== 'boolean') {\n errors.push(new ValidationError(`${key}[${i}]`, value[i], `string, number, or boolean expected, ${type} found`));\n }\n }\n break;\n\n case 'any':\n case 'all':\n case 'none':\n for (let i = 1; i < value.length; i++) {\n errors = errors.concat(validateNonExpressionFilter({\n key: `${key}[${i}]`,\n value: value[i],\n style: options.style,\n styleSpec: options.styleSpec\n }));\n }\n break;\n\n case 'has':\n case '!has':\n type = getType(value[1]);\n if (value.length !== 2) {\n errors.push(new ValidationError(key, value, `filter array for \"${value[0]}\" operator must have 2 elements`));\n } else if (type !== 'string') {\n errors.push(new ValidationError(`${key}[1]`, value[1], `string expected, ${type} found`));\n }\n break;\n case 'within':\n type = getType(value[1]);\n if (value.length !== 2) {\n errors.push(new ValidationError(key, value, `filter array for \"${value[0]}\" operator must have 2 elements`));\n } else if (type !== 'object') {\n errors.push(new ValidationError(`${key}[1]`, value[1], `object expec
"\nimport validate from './validate.js';\nimport ValidationError from '../error/validation_error.js';\nimport getType from '../util/get_type.js';\nimport {isFunction} from '../function/index.js';\nimport {unbundle, deepUnbundle} from '../util/unbundle_jsonlint.js';\nimport {supportsPropertyExpression} from '../util/properties.js';\n\nexport default function validateProperty(options, propertyType) {\n const key = options.key;\n const style = options.style;\n const styleSpec = options.styleSpec;\n const value = options.value;\n const propertyKey = options.objectKey;\n const layerSpec = styleSpec[`${propertyType}_${options.layerType}`];\n\n if (!layerSpec) return [];\n\n const transitionMatch = propertyKey.match(/^(.*)-transition$/);\n if (propertyType === 'paint' && transitionMatch && layerSpec[transitionMatch[1]] && layerSpec[transitionMatch[1]].transition) {\n return validate({\n key,\n value,\n valueSpec: styleSpec.transition,\n style,\n styleSpec\n });\n }\n\n const valueSpec = options.valueSpec || layerSpec[propertyKey];\n if (!valueSpec) {\n return [new ValidationError(key, value, `unknown property \"${propertyKey}\"`)];\n }\n\n let tokenMatch;\n if (getType(value) === 'string' && supportsPropertyExpression(valueSpec) && !valueSpec.tokens && (tokenMatch = /^{([^}]+)}$/.exec(value))) {\n return [new ValidationError(\n key, value,\n `\"${propertyKey}\" does not support interpolation syntax\\n` +\n `Use an identity property function instead: \\`{ \"type\":\"identity\", \"property\":${JSON.stringify(tokenMatch[1])} }\\`.`)];\n }\n\n const errors = [];\n\n if (options.layerType === 'symbol') {\n if (propertyKey === 'text-field' && style && !style.glyphs) {\n errors.push(new ValidationError(key, value, 'use of \"text-field\" requires a style \"glyphs\" property'));\n }\n if (propertyKey === 'text-font' && isFunction(deepUnbundle(value)) && unbundle(value.type) === 'identity') {\n errors.push(new ValidationError(key, value, '\"text-font\" does not support identity functions'));\n }\n }\n\n return errors.concat(validate({\n key: options.key,\n value,\n valueSpec,\n style,\n styleSpec,\n expressionContext: 'property',\n propertyType,\n propertyKey\n }));\n}\n",
"\nimport validateProperty from './validate_property.js';\n\nexport default function validatePaintProperty(options) {\n return validateProperty(options, 'paint');\n}\n",
"\nimport validateProperty from './validate_property.js';\n\nexport default function validateLayoutProperty(options) {\n return validateProperty(options, 'layout');\n}\n",
"\nimport ValidationError from '../error/validation_error.js';\nimport {unbundle} from '../util/unbundle_jsonlint.js';\nimport validateObject from './validate_object.js';\nimport validateFilter from './validate_filter.js';\nimport validatePaintProperty from './validate_paint_property.js';\nimport validateLayoutProperty from './validate_layout_property.js';\nimport validateSpec from './validate.js';\nimport extend from '../util/extend.js';\n\nexport default function validateLayer(options) {\n let errors = [];\n\n const layer = options.value;\n const key = options.key;\n const style = options.style;\n const styleSpec = options.styleSpec;\n\n if (!layer.type && !layer.ref) {\n errors.push(new ValidationError(key, layer, 'either \"type\" or \"ref\" is required'));\n }\n let type = unbundle(layer.type);\n const ref = unbundle(layer.ref);\n\n if (layer.id) {\n const layerId = unbundle(layer.id);\n for (let i = 0; i < options.arrayIndex; i++) {\n const otherLayer = style.layers[i];\n if (unbundle(otherLayer.id) === layerId) {\n errors.push(new ValidationError(key, layer.id, `duplicate layer id \"${layer.id}\", previously used at line ${otherLayer.id.__line__}`));\n }\n }\n }\n\n if ('ref' in layer) {\n ['type', 'source', 'source-layer', 'filter', 'layout'].forEach((p) => {\n if (p in layer) {\n errors.push(new ValidationError(key, layer[p], `\"${p}\" is prohibited for ref layers`));\n }\n });\n\n let parent;\n\n style.layers.forEach((layer) => {\n if (unbundle(layer.id) === ref) parent = layer;\n });\n\n if (!parent) {\n errors.push(new ValidationError(key, layer.ref, `ref layer \"${ref}\" not found`));\n } else if (parent.ref) {\n errors.push(new ValidationError(key, layer.ref, 'ref cannot reference another ref layer'));\n } else {\n type = unbundle(parent.type);\n }\n } else if (!(type === 'background' || type === 'sky')) {\n if (!layer.source) {\n errors.push(new ValidationError(key, layer, 'missing required property \"source\"'));\n } else {\n const source = style.sources && style.sources[layer.source];\n const sourceType = source && unbundle(source.type);\n if (!source) {\n errors.push(new ValidationError(key, layer.source, `source \"${layer.source}\" not found`));\n } else if (sourceType === 'vector' && type === 'raster') {\n errors.push(new ValidationError(key, layer.source, `layer \"${layer.id}\" requires a raster source`));\n } else if (sourceType === 'raster' && type !== 'raster') {\n errors.push(new ValidationError(key, layer.source, `layer \"${layer.id}\" requires a vector source`));\n } else if (sourceType === 'vector' && !layer['source-layer']) {\n errors.push(new ValidationError(key, layer, `layer \"${layer.id}\" must specify a \"source-layer\"`));\n } else if (sourceType === 'raster-dem' && type !== 'hillshade') {\n errors.push(new ValidationError(key, layer.source, 'raster-dem source can only be used with layer type \\'hillshade\\'.'));\n } else if (type === 'line' && layer.paint && layer.paint['line-gradient'] &&\n (sourceType !== 'geojson' || !source.lineMetrics)) {\n errors.push(new ValidationError(key, layer, `layer \"${layer.id}\" specifies a line-gradient, which requires a GeoJSON source with \\`lineMetrics\\` enabled.`));\n }\n }\n }\n\n errors = errors.concat(validateObject({\n key,\n value: layer,\n valueSpec: styleSpec.layer,\n style: options.style,\n styleSpec: options.styleSpec,\n objectElementValidators: {\n '*'() {\n return [];\n },\n // We don't want to enforce the spec's `\"requires\":true` for backwar
"\nimport getType from '../util/get_type.js';\nimport ValidationError from '../error/validation_error.js';\n\nexport default function validateString(options) {\n const value = options.value;\n const key = options.key;\n const type = getType(value);\n\n if (type !== 'string') {\n return [new ValidationError(key, value, `string expected, ${type} found`)];\n }\n\n return [];\n}\n",
"\nimport ValidationError from '../error/validation_error.js';\nimport {unbundle} from '../util/unbundle_jsonlint.js';\nimport validateObject from './validate_object.js';\nimport validateEnum from './validate_enum.js';\nimport validateExpression from './validate_expression.js';\nimport validateString from './validate_string.js';\nimport getType from '../util/get_type.js';\n\nconst objectElementValidators = {\n promoteId: validatePromoteId\n};\n\nexport default function validateSource(options) {\n const value = options.value;\n const key = options.key;\n const styleSpec = options.styleSpec;\n const style = options.style;\n\n if (!value.type) {\n return [new ValidationError(key, value, '\"type\" is required')];\n }\n\n const type = unbundle(value.type);\n let errors;\n\n switch (type) {\n case 'vector':\n case 'raster':\n case 'raster-dem':\n errors = validateObject({\n key,\n value,\n valueSpec: styleSpec[`source_${type.replace('-', '_')}`],\n style: options.style,\n styleSpec,\n objectElementValidators\n });\n return errors;\n\n case 'geojson':\n errors = validateObject({\n key,\n value,\n valueSpec: styleSpec.source_geojson,\n style,\n styleSpec,\n objectElementValidators\n });\n if (value.cluster) {\n for (const prop in value.clusterProperties) {\n const [operator, mapExpr] = value.clusterProperties[prop];\n const reduceExpr = typeof operator === 'string' ? [operator, ['accumulated'], ['get', prop]] : operator;\n\n errors.push(...validateExpression({\n key: `${key}.${prop}.map`,\n value: mapExpr,\n expressionContext: 'cluster-map'\n }));\n errors.push(...validateExpression({\n key: `${key}.${prop}.reduce`,\n value: reduceExpr,\n expressionContext: 'cluster-reduce'\n }));\n }\n }\n return errors;\n\n case 'video':\n return validateObject({\n key,\n value,\n valueSpec: styleSpec.source_video,\n style,\n styleSpec\n });\n\n case 'image':\n return validateObject({\n key,\n value,\n valueSpec: styleSpec.source_image,\n style,\n styleSpec\n });\n\n case 'canvas':\n return [new ValidationError(key, null, `Please use runtime APIs to add canvas sources, rather than including them in stylesheets.`, 'source.canvas')];\n\n default:\n return validateEnum({\n key: `${key}.type`,\n value: value.type,\n valueSpec: {values: ['vector', 'raster', 'raster-dem', 'geojson', 'video', 'image']},\n style,\n styleSpec\n });\n }\n}\n\nfunction validatePromoteId({key, value}) {\n if (getType(value) === 'string') {\n return validateString({key, value});\n } else {\n const errors = [];\n for (const prop in value) {\n errors.push(...validateString({key: `${key}.${prop}`, value: value[prop]}));\n }\n return errors;\n }\n}\n",
"\nimport ValidationError from '../error/validation_error.js';\nimport getType from '../util/get_type.js';\nimport validate from './validate.js';\n\nexport default function validateLight(options) {\n const light = options.value;\n const styleSpec = options.styleSpec;\n const lightSpec = styleSpec.light;\n const style = options.style;\n\n let errors = [];\n\n const rootType = getType(light);\n if (light === undefined) {\n return errors;\n } else if (rootType !== 'object') {\n errors = errors.concat([new ValidationError('light', light, `object expected, ${rootType} found`)]);\n return errors;\n }\n\n for (const key in light) {\n const transitionMatch = key.match(/^(.*)-transition$/);\n\n if (transitionMatch && lightSpec[transitionMatch[1]] && lightSpec[transitionMatch[1]].transition) {\n errors = errors.concat(validate({\n key,\n value: light[key],\n valueSpec: styleSpec.transition,\n style,\n styleSpec\n }));\n } else if (lightSpec[key]) {\n errors = errors.concat(validate({\n key,\n value: light[key],\n valueSpec: lightSpec[key],\n style,\n styleSpec\n }));\n } else {\n errors = errors.concat([new ValidationError(key, light[key], `unknown property \"${key}\"`)]);\n }\n }\n\n return errors;\n}\n",
"\nimport ValidationError from '../error/validation_error.js';\nimport validate from './validate.js';\nimport getType from '../util/get_type.js';\nimport {unbundle} from '../util/unbundle_jsonlint.js';\n\nexport default function validateTerrain(options) {\n const terrain = options.value;\n const key = options.key;\n const style = options.style;\n const styleSpec = options.styleSpec;\n const terrainSpec = styleSpec.terrain;\n let errors = [];\n\n const rootType = getType(terrain);\n if (terrain === undefined) {\n return errors;\n } else if (rootType !== 'object') {\n errors = errors.concat([new ValidationError('terrain', terrain, `object expected, ${rootType} found`)]);\n return errors;\n }\n\n for (const key in terrain) {\n const transitionMatch = key.match(/^(.*)-transition$/);\n\n if (transitionMatch && terrainSpec[transitionMatch[1]] && terrainSpec[transitionMatch[1]].transition) {\n errors = errors.concat(validate({\n key,\n value: terrain[key],\n valueSpec: styleSpec.transition,\n style,\n styleSpec\n }));\n } else if (terrainSpec[key]) {\n errors = errors.concat(validate({\n key,\n value: terrain[key],\n valueSpec: terrainSpec[key],\n style,\n styleSpec\n }));\n } else {\n errors = errors.concat([new ValidationError(key, terrain[key], `unknown property \"${key}\"`)]);\n }\n }\n\n if (!terrain.source) {\n errors.push(new ValidationError(key, terrain, `terrain is missing required property \"source\"`));\n } else {\n const source = style.sources && style.sources[terrain.source];\n const sourceType = source && unbundle(source.type);\n if (!source) {\n errors.push(new ValidationError(key, terrain.source, `source \"${terrain.source}\" not found`));\n } else if (sourceType !== 'raster-dem') {\n errors.push(new ValidationError(key, terrain.source, `terrain cannot be used with a source of type ${sourceType}, it only be used with a \"raster-dem\" source type`));\n }\n }\n\n return errors;\n}\n",
"\nimport ValidationError from '../error/validation_error.js';\nimport validate from './validate.js';\nimport getType from '../util/get_type.js';\n\nexport default function validateFog(options) {\n const fog = options.value;\n const style = options.style;\n const styleSpec = options.styleSpec;\n const fogSpec = styleSpec.fog;\n let errors = [];\n\n const rootType = getType(fog);\n if (fog === undefined) {\n return errors;\n } else if (rootType !== 'object') {\n errors = errors.concat([new ValidationError('fog', fog, `object expected, ${rootType} found`)]);\n return errors;\n }\n\n for (const key in fog) {\n const transitionMatch = key.match(/^(.*)-transition$/);\n\n if (transitionMatch && fogSpec[transitionMatch[1]] && fogSpec[transitionMatch[1]].transition) {\n errors = errors.concat(validate({\n key,\n value: fog[key],\n valueSpec: styleSpec.transition,\n style,\n styleSpec\n }));\n } else if (fogSpec[key]) {\n errors = errors.concat(validate({\n key,\n value: fog[key],\n valueSpec: fogSpec[key],\n style,\n styleSpec\n }));\n } else {\n errors = errors.concat([new ValidationError(key, fog[key], `unknown property \"${key}\"`)]);\n }\n }\n\n return errors;\n}\n",
"\nimport extend from '../util/extend.js';\nimport {unbundle, deepUnbundle} from '../util/unbundle_jsonlint.js';\nimport {isExpression} from '../expression/index.js';\nimport {isFunction} from '../function/index.js';\n\nimport validateFunction from './validate_function.js';\nimport validateExpression from './validate_expression.js';\nimport validateObject from './validate_object.js';\nimport validateArray from './validate_array.js';\nimport validateBoolean from './validate_boolean.js';\nimport validateNumber from './validate_number.js';\nimport validateColor from './validate_color.js';\nimport validateConstants from './validate_constants.js';\nimport validateEnum from './validate_enum.js';\nimport validateFilter from './validate_filter.js';\nimport validateLayer from './validate_layer.js';\nimport validateSource from './validate_source.js';\nimport validateLight from './validate_light.js';\nimport validateTerrain from './validate_terrain.js';\nimport validateFog from './validate_fog.js';\nimport validateString from './validate_string.js';\nimport validateFormatted from './validate_formatted.js';\nimport validateImage from './validate_image.js';\n\nconst VALIDATORS = {\n '*'() {\n return [];\n },\n 'array': validateArray,\n 'boolean': validateBoolean,\n 'number': validateNumber,\n 'color': validateColor,\n 'constants': validateConstants,\n 'enum': validateEnum,\n 'filter': validateFilter,\n 'function': validateFunction,\n 'layer': validateLayer,\n 'object': validateObject,\n 'source': validateSource,\n 'light': validateLight,\n 'terrain': validateTerrain,\n 'fog': validateFog,\n 'string': validateString,\n 'formatted': validateFormatted,\n 'resolvedImage': validateImage\n};\n\n// Main recursive validation function. Tracks:\n//\n// - key: string representing location of validation in style tree. Used only\n// for more informative error reporting.\n// - value: current value from style being evaluated. May be anything from a\n// high level object that needs to be descended into deeper or a simple\n// scalar value.\n// - valueSpec: current spec being evaluated. Tracks value.\n// - styleSpec: current full spec being evaluated.\n\nexport default function validate(options) {\n const value = options.value;\n const valueSpec = options.valueSpec;\n const styleSpec = options.styleSpec;\n\n if (valueSpec.expression && isFunction(unbundle(value))) {\n return validateFunction(options);\n\n } else if (valueSpec.expression && isExpression(deepUnbundle(value))) {\n return validateExpression(options);\n\n } else if (valueSpec.type && VALIDATORS[valueSpec.type]) {\n return VALIDATORS[valueSpec.type](options);\n\n } else {\n const valid = validateObject(extend({}, options, {\n valueSpec: valueSpec.type ? styleSpec[valueSpec.type] : valueSpec\n }));\n return valid;\n }\n}\n",
"\nimport getType from '../util/get_type.js';\nimport ValidationError from '../error/validation_error.js';\n\nexport default function validateBoolean(options) {\n const value = options.value;\n const key = options.key;\n const type = getType(value);\n\n if (type !== 'boolean') {\n return [new ValidationError(key, value, `boolean expected, ${type} found`)];\n }\n\n return [];\n}\n",
"\nimport ValidationError from '../error/validation_error.js';\nimport getType from '../util/get_type.js';\nimport {parseCSSColor} from 'csscolorparser';\n\nexport default function validateColor(options) {\n const key = options.key;\n const value = options.value;\n const type = getType(value);\n\n if (type !== 'string') {\n return [new ValidationError(key, value, `color expected, ${type} found`)];\n }\n\n if (parseCSSColor(value) === null) {\n return [new ValidationError(key, value, `color expected, \"${value}\" found`)];\n }\n\n return [];\n}\n",
"// @flow\nimport validateExpression from './validate_expression.js';\nimport validateString from './validate_string.js';\n\nexport default function validateFormatted(options: any) {\n if (validateString(options).length === 0) {\n return [];\n }\n\n return validateExpression(options);\n}\n",
"// @flow\nimport validateExpression from './validate_expression.js';\nimport validateString from './validate_string.js';\n\nexport default function validateImage(options: any) {\n if (validateString(options).length === 0) {\n return [];\n }\n\n return validateExpression(options);\n}\n",
"\nimport ValidationError from '../error/validation_error.js';\nimport validateString from './validate_string.js';\n\nexport default function(options) {\n const value = options.value;\n const key = options.key;\n\n const errors = validateString(options);\n if (errors.length) return errors;\n\n if (value.indexOf('{fontstack}') === -1) {\n errors.push(new ValidationError(key, value, '\"glyphs\" url must include a \"{fontstack}\" token'));\n }\n\n if (value.indexOf('{range}') === -1) {\n errors.push(new ValidationError(key, value, '\"glyphs\" url must include a \"{range}\" token'));\n }\n\n return errors;\n}\n",
"\nimport validateConstants from './validate/validate_constants.js';\nimport validate from './validate/validate.js';\nimport latestStyleSpec from './reference/latest.js';\nimport validateGlyphsURL from './validate/validate_glyphs_url.js';\n\nimport validateSource from './validate/validate_source.js';\nimport validateLight from './validate/validate_light.js';\nimport validateTerrain from './validate/validate_terrain.js';\nimport validateFog from './validate/validate_fog.js';\nimport validateLayer from './validate/validate_layer.js';\nimport validateFilter from './validate/validate_filter.js';\nimport validatePaintProperty from './validate/validate_paint_property.js';\nimport validateLayoutProperty from './validate/validate_layout_property.js';\n\n/**\n * Validate a Mapbox GL style against the style specification. This entrypoint,\n * `mapbox-gl-style-spec/lib/validate_style.min`, is designed to produce as\n * small a browserify bundle as possible by omitting unnecessary functionality\n * and legacy style specifications.\n *\n * @private\n * @param {Object} style The style to be validated.\n * @param {Object} [styleSpec] The style specification to validate against.\n * If omitted, the latest style spec is used.\n * @returns {Array<ValidationError>}\n * @example\n * var validate = require('mapbox-gl-style-spec/lib/validate_style.min');\n * var errors = validate(style);\n */\nfunction validateStyleMin(style, styleSpec = latestStyleSpec) {\n\n let errors = [];\n\n errors = errors.concat(validate({\n key: '',\n value: style,\n valueSpec: styleSpec.$root,\n styleSpec,\n style,\n objectElementValidators: {\n glyphs: validateGlyphsURL,\n '*'() {\n return [];\n }\n }\n }));\n\n if (style.constants) {\n errors = errors.concat(validateConstants({\n key: 'constants',\n value: style.constants,\n style,\n styleSpec\n }));\n }\n\n return sortErrors(errors);\n}\n\nvalidateStyleMin.source = wrapCleanErrors(validateSource);\nvalidateStyleMin.light = wrapCleanErrors(validateLight);\nvalidateStyleMin.terrain = wrapCleanErrors(validateTerrain);\nvalidateStyleMin.fog = wrapCleanErrors(validateFog);\nvalidateStyleMin.layer = wrapCleanErrors(validateLayer);\nvalidateStyleMin.filter = wrapCleanErrors(validateFilter);\nvalidateStyleMin.paintProperty = wrapCleanErrors(validatePaintProperty);\nvalidateStyleMin.layoutProperty = wrapCleanErrors(validateLayoutProperty);\n\nfunction sortErrors(errors) {\n return [].concat(errors).sort((a, b) => {\n return a.line - b.line;\n });\n}\n\nfunction wrapCleanErrors(inner) {\n return function(...args) {\n return sortErrors(inner.apply(this, args));\n };\n}\n\nexport default validateStyleMin;\n",
"/* parser generated by jison 0.4.15 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,12],$V1=[1,13],$V2=[1,9],$V3=[1,10],$V4=[1,11],$V5=[1,14],$V6=[1,15],$V7=[14,18,22,24],$V8=[18,22],$V9=[22,24];\nvar parser = {trace: function trace() { },\nyy: {},\nsymbols_: {\"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},\nterminals_: {2:\"error\",4:\"STRING\",6:\"NUMBER\",8:\"NULL\",10:\"TRUE\",11:\"FALSE\",14:\"EOF\",17:\"{\",18:\"}\",21:\":\",22:\",\",23:\"[\",24:\"]\"},\nproductions_: [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]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n // replace escaped characters with actual character\n this.$ = new String(yytext.replace(/\\\\(\\\\|\")/g, \"$\"+\"1\")\n .replace(/\\\\n/g,'\\n')\n .replace(/\\\\r/g,'\\r')\n .replac
"import ParsingError from './error/parsing_error.js';\nimport jsonlint from '@mapbox/jsonlint-lines-primitives';\n\nexport default function readStyle(style) {\n if (style instanceof String || typeof style === 'string' || style instanceof Buffer) {\n try {\n return jsonlint.parse(style.toString());\n } catch (e) {\n throw new ParsingError(e);\n }\n }\n\n return style;\n}\n",
"\nimport validateStyleMin from './validate_style.min.js';\nimport {v8} from './style-spec.js';\nimport readStyle from './read_style.js';\n\n/**\n * Validate a Mapbox GL style against the style specification.\n *\n * @private\n * @alias validate\n * @param {Object|String|Buffer} style The style to be validated. If a `String`\n * or `Buffer` is provided, the returned errors will contain line numbers.\n * @param {Object} [styleSpec] The style specification to validate against.\n * If omitted, the spec version is inferred from the stylesheet.\n * @returns {Array<ValidationError|ParsingError>}\n * @example\n * var validate = require('mapbox-gl-style-spec').validate;\n * var style = fs.readFileSync('./style.json', 'utf8');\n * var errors = validate(style);\n */\n\nexport default function validateStyle(style, styleSpec = v8) {\n let s = style;\n\n try {\n s = readStyle(s);\n } catch (e) {\n return [e];\n }\n\n return validateStyleMin(s, styleSpec);\n}\n\nexport const source = validateStyleMin.source;\nexport const light = validateStyleMin.light;\nexport const layer = validateStyleMin.layer;\nexport const filter = validateStyleMin.filter;\nexport const paintProperty = validateStyleMin.paintProperty;\nexport const layoutProperty = validateStyleMin.layoutProperty;\n",
"// @flow\n\nimport validateStyle from './validate_style.min.js';\nimport {v8} from './style-spec.js';\nimport readStyle from './read_style.js';\nimport ValidationError from './error/validation_error.js';\nimport getType from './util/get_type.js';\n\nconst SUPPORTED_SPEC_VERSION = 8;\nconst MAX_SOURCES_IN_STYLE = 15;\n\nfunction isValid(value: ?string, regex: RegExp): boolean {\n if (!value || getType(value) !== 'string') return true;\n return !!value.match(regex);\n}\n\nfunction getSourceCount(source: Object): number {\n if (source.url) {\n return source.url.split(',').length;\n } else {\n return 0;\n }\n}\n\nfunction getAllowedKeyErrors(obj: Object, keys: Array<*>, path: ?string): Array<?ValidationError> {\n const allowed = new Set(keys);\n const errors = [];\n Object.keys(obj).forEach(k => {\n if (!allowed.has(k)) {\n const prop = path ? `${path}.${k}` : null;\n errors.push(new ValidationError(prop, obj[k], `Unsupported property \"${k}\"`));\n }\n });\n return errors;\n}\n\nconst acceptedSourceTypes = new Set([\"vector\", \"raster\", \"raster-dem\"]);\nfunction getSourceErrors(source: Object, i: number): Array<?ValidationError> {\n const errors = [];\n\n /*\n * Inlined sources are not supported by the Mapbox Styles API, so only\n * \"type\", \"url\", and \"tileSize\" properties are valid\n */\n const sourceKeys = ['type', 'url', 'tileSize'];\n errors.push(...getAllowedKeyErrors(source, sourceKeys, 'source'));\n\n /*\n * \"type\" is required and must be one of \"vector\", \"raster\", \"raster-dem\"\n */\n if (!acceptedSourceTypes.has(String(source.type))) {\n errors.push(new ValidationError(`sources[${i}].type`, source.type, `Expected one of [${Array.from(acceptedSourceTypes).join(\", \")}]`));\n }\n\n /*\n * \"source\" is required. Valid examples:\n * mapbox://mapbox.abcd1234\n * mapbox://penny.abcd1234\n * mapbox://mapbox.abcd1234,penny.abcd1234\n */\n const sourceUrlPattern = /^mapbox:\\/\\/([^/]*)$/;\n if (!source.url || !isValid(source.url, sourceUrlPattern)) {\n errors.push(new ValidationError(`sources[${i}].url`, source.url, 'Expected a valid Mapbox tileset url'));\n }\n\n return errors;\n}\n\nfunction getSourcesErrors(sources: Object): Array<?ValidationError> {\n const errors = [];\n let count = 0;\n\n Object.keys(sources).forEach((s: string, i: number) => {\n const sourceErrors = getSourceErrors(sources[s], i);\n\n // If source has errors, skip counting\n if (!sourceErrors.length) {\n count = count + getSourceCount(sources[s]);\n }\n\n errors.push(...sourceErrors);\n });\n\n if (count > MAX_SOURCES_IN_STYLE) {\n errors.push(new ValidationError('sources', null, `Styles must contain ${MAX_SOURCES_IN_STYLE} or fewer sources`));\n }\n\n return errors;\n}\n\nfunction getRootErrors(style: Object, specKeys: Array<any>): Array<?ValidationError> {\n const errors = [];\n\n /*\n * The following keys are optional but fully managed by the Mapbox Styles\n * API. Values on stylesheet on POST or PATCH will be ignored: \"owner\",\n * \"id\", \"cacheControl\", \"draft\", \"created\", \"modified\"\n *\n * The following keys are optional. The Mapbox Styles API respects value on\n * stylesheet on PATCH, but ignores the value on POST: \"visibility\"\n */\n const optionalRootProperties = [\n 'owner',\n 'id',\n 'cacheControl',\n 'draft',\n 'created',\n 'modified',\n 'visibility'\n ];\n\n const allowedKeyErrors = getAllowedKeyErrors(style, [...specKeys, ...optionalRootProperties]);\n errors.push(...allowedKeyErrors);\n\n if (style.version > SUPPORTED_SPEC_VERSION || style.version < SUPPORTED_SPEC_VERSION) {\n errors.push(new ValidationError('version', style.version, `Style version must be ${SUPPORTED_SPEC_VERSION}`));\n }\n\n /*\n * \"glyphs\" is optional. If present, valid e
"// @flow\n\ntype ExpressionType = 'data-driven' | 'cross-faded' | 'cross-faded-data-driven' | 'color-ramp' | 'data-constant' | 'constant';\ntype ExpressionParameters = Array<'zoom' | 'feature' | 'feature-state' | 'heatmap-density' | 'line-progress' | 'sky-radial-progress'>;\n\ntype ExpressionSpecification = {\n interpolated: boolean,\n parameters: ExpressionParameters\n}\n\nexport type StylePropertySpecification = {\n type: 'number',\n 'property-type': ExpressionType,\n expression?: ExpressionSpecification,\n transition: boolean,\n default?: number\n} | {\n type: 'string',\n 'property-type': ExpressionType,\n expression?: ExpressionSpecification,\n transition: boolean,\n default?: string,\n tokens?: boolean\n} | {\n type: 'boolean',\n 'property-type': ExpressionType,\n expression?: ExpressionSpecification,\n transition: boolean,\n default?: boolean\n} | {\n type: 'enum',\n 'property-type': ExpressionType,\n expression?: ExpressionSpecification,\n values: {[_: string]: {}},\n transition: boolean,\n default?: string\n} | {\n type: 'color',\n 'property-type': ExpressionType,\n expression?: ExpressionSpecification,\n transition: boolean,\n default?: string,\n overridable: boolean\n} | {\n type: 'array',\n value: 'number',\n 'property-type': ExpressionType,\n expression?: ExpressionSpecification,\n length?: number,\n transition: boolean,\n default?: Array<number>\n} | {\n type: 'array',\n value: 'string',\n 'property-type': ExpressionType,\n expression?: ExpressionSpecification,\n length?: number,\n transition: boolean,\n default?: Array<string>\n};\n\nimport v8 from './reference/v8.json';\nimport latest from './reference/latest.js';\nimport format from './format.js';\nimport migrate from './migrate.js';\nimport composite from './composite.js';\nimport derefLayers from './deref.js';\nimport diff from './diff.js';\nimport ValidationError from './error/validation_error.js';\nimport ParsingError from './error/parsing_error.js';\nimport {StyleExpression, isExpression, createExpression, createPropertyExpression, normalizePropertyExpression, ZoomConstantExpression, ZoomDependentExpression, StylePropertyFunction} from './expression/index.js';\nimport featureFilter, {isExpressionFilter} from './feature_filter/index.js';\n\nimport convertFilter from './feature_filter/convert.js';\nimport Color from './util/color.js';\nimport {createFunction, isFunction} from './function/index.js';\nimport convertFunction from './function/convert.js';\nimport {eachSource, eachLayer, eachProperty} from './visit.js';\n\nimport validate from './validate_style.js';\nimport validateMapboxApiSupported from './validate_mapbox_api_supported.js';\n\nconst expression = {\n StyleExpression,\n isExpression,\n isExpressionFilter,\n createExpression,\n createPropertyExpression,\n normalizePropertyExpression,\n ZoomConstantExpression,\n ZoomDependentExpression,\n StylePropertyFunction\n};\n\nconst styleFunction = {\n convertFunction,\n createFunction,\n isFunction\n};\n\nconst visit = {eachSource, eachLayer, eachProperty};\n\nexport {\n v8,\n latest,\n format,\n migrate,\n composite,\n derefLayers,\n diff,\n ValidationError,\n ParsingError,\n expression,\n featureFilter,\n convertFilter,\n Color,\n styleFunction as function,\n validate,\n validateMapboxApiSupported,\n visit\n};\n\nvalidate.parsed = validate;\nvalidate.latest = validate;\n",
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
"import $ol$AssertionError from './ol/AssertionError.js';\nimport {CollectionEvent as _ol_Collection$CollectionEvent} from './ol/Collection.js';\nimport $ol$Collection from './ol/Collection.js';\nimport $ol$DataTile from './ol/DataTile.js';\nimport $ol$Disposable from './ol/Disposable.js';\nimport $ol$Feature from './ol/Feature.js';\nimport {createStyleFunction as _ol_Feature$createStyleFunction} from './ol/Feature.js';\nimport $ol$Geolocation from './ol/Geolocation.js';\nimport $ol$Image from './ol/Image.js';\nimport {listenImage as _ol_Image$listenImage} from './ol/Image.js';\nimport $ol$ImageBase from './ol/ImageBase.js';\nimport $ol$ImageCanvas from './ol/ImageCanvas.js';\nimport $ol$ImageTile from './ol/ImageTile.js';\nimport $ol$Kinetic from './ol/Kinetic.js';\nimport $ol$Map from './ol/Map.js';\nimport $ol$MapBrowserEvent from './ol/MapBrowserEvent.js';\nimport $ol$MapBrowserEventHandler from './ol/MapBrowserEventHandler.js';\nimport $ol$MapEvent from './ol/MapEvent.js';\nimport {ObjectEvent as _ol_Object$ObjectEvent} from './ol/Object.js';\nimport $ol$Object from './ol/Object.js';\nimport $ol$Observable from './ol/Observable.js';\nimport {unByKey as _ol_Observable$unByKey} from './ol/Observable.js';\nimport $ol$Overlay from './ol/Overlay.js';\nimport $ol$PluggableMap from './ol/PluggableMap.js';\nimport $ol$Tile from './ol/Tile.js';\nimport $ol$TileCache from './ol/TileCache.js';\nimport $ol$TileQueue from './ol/TileQueue.js';\nimport {getTilePriority as _ol_TileQueue$getTilePriority} from './ol/TileQueue.js';\nimport $ol$TileRange from './ol/TileRange.js';\nimport {createOrUpdate as _ol_TileRange$createOrUpdate} from './ol/TileRange.js';\nimport $ol$VectorRenderTile from './ol/VectorRenderTile.js';\nimport $ol$VectorTile from './ol/VectorTile.js';\nimport $ol$View from './ol/View.js';\nimport {createCenterConstraint as _ol_View$createCenterConstraint} from './ol/View.js';\nimport {createResolutionConstraint as _ol_View$createResolutionConstraint} from './ol/View.js';\nimport {createRotationConstraint as _ol_View$createRotationConstraint} from './ol/View.js';\nimport {isNoopAnimation as _ol_View$isNoopAnimation} from './ol/View.js';\nimport {binarySearch as _ol_array$binarySearch} from './ol/array.js';\nimport {numberSafeCompareFunction as _ol_array$numberSafeCompareFunction} from './ol/array.js';\nimport {includes as _ol_array$includes} from './ol/array.js';\nimport {linearFindNearest as _ol_array$linearFindNearest} from './ol/array.js';\nimport {reverseSubArray as _ol_array$reverseSubArray} from './ol/array.js';\nimport {extend as _ol_array$extend} from './ol/array.js';\nimport {remove as _ol_array$remove} from './ol/array.js';\nimport {find as _ol_array$find} from './ol/array.js';\nimport {equals as _ol_array$equals} from './ol/array.js';\nimport {stableSort as _ol_array$stableSort} from './ol/array.js';\nimport {findIndex as _ol_array$findIndex} from './ol/array.js';\nimport {isSorted as _ol_array$isSorted} from './ol/array.js';\nimport {assert as _ol_asserts$assert} from './ol/asserts.js';\nimport {createExtent as _ol_centerconstraint$createExtent} from './ol/centerconstraint.js';\nimport {none as _ol_centerconstraint$none} from './ol/centerconstraint.js';\nimport {asString as _ol_color$asString} from './ol/color.js';\nimport {fromString as _ol_color$fromString} from './ol/color.js';\nimport {asArray as _ol_color$asArray} from './ol/color.js';\nimport {normalize as _ol_color$normalize} from './ol/color.js';\nimport {toString as _ol_color$toString} from './ol/color.js';\nimport {isStringColor as _ol_color$isStringColor} from './ol/color.js';\nimport {asColorLike as _ol_colorlike$asColorLike} from './ol/colorlike.js';\nimport {defaults as _ol_control$defaults} from './ol/control.js';\nimport {add as _ol_coordinate$add} from './ol/coordinate.js';\nimport {closestOnCircle as _ol_coordinate$closestOnCircle} from './ol/coordinate.js';\nimport {closestOnSegment as _ol_coordinate$closestOnSegment} from './ol/coordinate.js';\nimport {createStringXY as _ol_coordinate$createStringXY} from './ol/coordinate.js';\n
null,
null,
null,
"export const fieldTagNames = {\n // TIFF Baseline\n 0x013B: 'Artist',\n 0x0102: 'BitsPerSample',\n 0x0109: 'CellLength',\n 0x0108: 'CellWidth',\n 0x0140: 'ColorMap',\n 0x0103: 'Compression',\n 0x8298: 'Copyright',\n 0x0132: 'DateTime',\n 0x0152: 'ExtraSamples',\n 0x010A: 'FillOrder',\n 0x0121: 'FreeByteCounts',\n 0x0120: 'FreeOffsets',\n 0x0123: 'GrayResponseCurve',\n 0x0122: 'GrayResponseUnit',\n 0x013C: 'HostComputer',\n 0x010E: 'ImageDescription',\n 0x0101: 'ImageLength',\n 0x0100: 'ImageWidth',\n 0x010F: 'Make',\n 0x0119: 'MaxSampleValue',\n 0x0118: 'MinSampleValue',\n 0x0110: 'Model',\n 0x00FE: 'NewSubfileType',\n 0x0112: 'Orientation',\n 0x0106: 'PhotometricInterpretation',\n 0x011C: 'PlanarConfiguration',\n 0x0128: 'ResolutionUnit',\n 0x0116: 'RowsPerStrip',\n 0x0115: 'SamplesPerPixel',\n 0x0131: 'Software',\n 0x0117: 'StripByteCounts',\n 0x0111: 'StripOffsets',\n 0x00FF: 'SubfileType',\n 0x0107: 'Threshholding',\n 0x011A: 'XResolution',\n 0x011B: 'YResolution',\n\n // TIFF Extended\n 0x0146: 'BadFaxLines',\n 0x0147: 'CleanFaxData',\n 0x0157: 'ClipPath',\n 0x0148: 'ConsecutiveBadFaxLines',\n 0x01B1: 'Decode',\n 0x01B2: 'DefaultImageColor',\n 0x010D: 'DocumentName',\n 0x0150: 'DotRange',\n 0x0141: 'HalftoneHints',\n 0x015A: 'Indexed',\n 0x015B: 'JPEGTables',\n 0x011D: 'PageName',\n 0x0129: 'PageNumber',\n 0x013D: 'Predictor',\n 0x013F: 'PrimaryChromaticities',\n 0x0214: 'ReferenceBlackWhite',\n 0x0153: 'SampleFormat',\n 0x0154: 'SMinSampleValue',\n 0x0155: 'SMaxSampleValue',\n 0x022F: 'StripRowCounts',\n 0x014A: 'SubIFDs',\n 0x0124: 'T4Options',\n 0x0125: 'T6Options',\n 0x0145: 'TileByteCounts',\n 0x0143: 'TileLength',\n 0x0144: 'TileOffsets',\n 0x0142: 'TileWidth',\n 0x012D: 'TransferFunction',\n 0x013E: 'WhitePoint',\n 0x0158: 'XClipPathUnits',\n 0x011E: 'XPosition',\n 0x0211: 'YCbCrCoefficients',\n 0x0213: 'YCbCrPositioning',\n 0x0212: 'YCbCrSubSampling',\n 0x0159: 'YClipPathUnits',\n 0x011F: 'YPosition',\n\n // EXIF\n 0x9202: 'ApertureValue',\n 0xA001: 'ColorSpace',\n 0x9004: 'DateTimeDigitized',\n 0x9003: 'DateTimeOriginal',\n 0x8769: 'Exif IFD',\n 0x9000: 'ExifVersion',\n 0x829A: 'ExposureTime',\n 0xA300: 'FileSource',\n 0x9209: 'Flash',\n 0xA000: 'FlashpixVersion',\n 0x829D: 'FNumber',\n 0xA420: 'ImageUniqueID',\n 0x9208: 'LightSource',\n 0x927C: 'MakerNote',\n 0x9201: 'ShutterSpeedValue',\n 0x9286: 'UserComment',\n\n // IPTC\n 0x83BB: 'IPTC',\n\n // ICC\n 0x8773: 'ICC Profile',\n\n // XMP\n 0x02BC: 'XMP',\n\n // GDAL\n 0xA480: 'GDAL_METADATA',\n 0xA481: 'GDAL_NODATA',\n\n // Photoshop\n 0x8649: 'Photoshop',\n\n // GeoTiff\n 0x830E: 'ModelPixelScale',\n 0x8482: 'ModelTiepoint',\n 0x85D8: 'ModelTransformation',\n 0x87AF: 'GeoKeyDirectory',\n 0x87B0: 'GeoDoubleParams',\n 0x87B1: 'GeoAsciiParams',\n\n // LERC\n 0xC5F2: 'LercParameters',\n};\n\nexport const fieldTags = {};\nfor (const key in fieldTagNames) {\n if (fieldTagNames.hasOwnProperty(key)) {\n fieldTags[fieldTagNames[key]] = parseInt(key, 10);\n }\n}\n\nexport const fieldTagTypes = {\n 256: 'SHORT',\n 257: 'SHORT',\n 258: 'SHORT',\n 259: 'SHORT',\n 262: 'SHORT',\n 273: 'LONG',\n 274: 'SHORT',\n 277: 'SHORT',\n 278: 'LONG',\n 279: 'LONG',\n 282: 'RATIONAL',\n 283: 'RATIONAL',\n 284: 'SHORT',\n 286: 'SHORT',\n 287: 'RATIONAL',\n 296: 'SHORT',\n 297: 'SHORT',\n 305: 'ASCII',\n 306: 'ASCII',\n 338: 'SHORT',\n 339: 'SHORT',\n 513: 'LONG',\n 514: 'LONG',\n 1024: 'SHORT',\n 1025: 'SHORT',\n 2048: 'SHORT',\n 2049: 'ASCII',\n 3072: 'SHORT',\n 3073: 'ASCII',\n 33550: 'DOUBLE',\n 33922: 'DOUBLE',\n 34665: 'LONG',\n 34735: 'SHORT',\n 34737: 'ASCII',\n 42113: 'ASCII',\n};\n\nexport const arrayFields = [\n fieldTags.BitsPerSample,\n fieldTags.ExtraSamples,\n fieldTags.SampleFormat,\n fieldTags.StripByteCounts,\n fieldTags.StripOffsets,\n fieldTags.StripRowCounts,\n fieldTags.TileByteCounts,\n fieldTags.TileOffsets,\n fieldTags.SubIFDs,\n];\n\nexport const fieldTypeNames = {\n 0x0001: 'BYTE',\n 0x0002
"// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n",
"// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};",
"__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};",
"// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".ol.js\";\n};",
"__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();",
"__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }",
"// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};",
"__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};",
"var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) scriptUrl = scripts[scripts.length - 1].src\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;",
"// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t179: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkol\"] = self[\"webpackChunkol\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));",
"// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\n__webpack_require__(760);\nvar __webpack_exports__ = __webpack_require__(920);\n"
],
"names": [
"root",
"factory",
"exports",
"module",
"define",
"amd",
"self",
"inProgress",
"read",
"buffer",
"offset",
"isLE",
"mLen",
"nBytes",
"e",
"m",
"eLen",
"eMax",
"eBias",
"nBits",
"i",
"d",
"s",
"NaN",
"Infinity",
"Math",
"pow",
"write",
"value",
"c",
"rt",
"abs",
"isNaN",
"floor",
"log",
"LN2",
"Yallist",
"require",
"MAX",
"Symbol",
"LENGTH",
"LENGTH_CALCULATOR",
"ALLOW_STALE",
"MAX_AGE",
"DISPOSE",
"NO_DISPOSE_ON_SET",
"LRU_LIST",
"CACHE",
"UPDATE_AGE_ON_GET",
"naiveLength",
"LRUCache",
"options",
"max",
"TypeError",
"this",
"lc",
"length",
"stale",
"maxAge",
"dispose",
"noDisposeOnSet",
"updateAgeOnGet",
"reset",
"mL",
"trim",
"allowStale",
"mA",
"lC",
"forEach",
"hit",
"key",
"fn",
"thisp",
"walker",
"tail",
"prev",
"forEachStep",
"head",
"next",
"toArray",
"map",
"k",
"Map",
"isStale",
"v",
"now",
"filter",
"h",
"Date",
"len",
"has",
"del",
"get",
"item",
"Entry",
"unshift",
"set",
"node",
"arr",
"l",
"expiresAt",
"doUse",
"unshiftNode",
"diff",
"delete",
"removeNode",
"undefined",
"call",
"fontWeights",
"thin",
"hairline",
"light",
"book",
"regular",
"normal",
"plain",
"roman",
"standard",
"medium",
"bold",
"heavy",
"black",
"fat",
"poster",
"sp",
"italicRE",
"fontCache",
"fonts",
"size",
"lineHeight",
"cssData",
"Array",
"isArray",
"weight",
"style",
"fontFamilies",
"ii",
"parts",
"split",
"maybeWeight",
"toLowerCase",
"w",
"pop",
"test",
"replace",
"previousPart",
"startsWith",
"fontFamily",
"join",
"indexOf",
"push",
"Pbf",
"ieee754",
"buf",
"ArrayBuffer",
"isView",
"Uint8Array",
"pos",
"type",
"Varint",
"Fixed64",
"Bytes",
"Fixed32",
"SHIFT_LEFT_32",
"SHIFT_RIGHT_32",
"utf8TextDecoder",
"TextDecoder",
"readPackedEnd",
"pbf",
"readVarint",
"toNum",
"low",
"high",
"isSigned",
"makeRoomForExtraLength",
"startPos",
"extraLen",
"realloc",
"writePackedVarint",
"writeVarint",
"writePackedSVarint",
"writeSVarint",
"writePackedFloat",
"writeFloat",
"writePackedDouble",
"writeDouble",
"writePackedBoolean",
"writeBoolean",
"writePackedFixed32",
"writeFixed32",
"writePackedSFixed32",
"writeSFixed32",
"writePackedFixed64",
"writeFixed64",
"writePackedSFixed64",
"writeSFixed64",
"readUInt32",
"writeInt32",
"val",
"readInt32",
"prototype",
"destroy",
"readFields",
"readField",
"result",
"end",
"tag",
"skip",
"readMessage",
"readFixed32",
"readSFixed32",
"readFixed64",
"readSFixed64",
"readFloat",
"readDouble",
"b",
"p",
"Error",
"readVarintRemainder",
"readVarint64",
"readSVarint",
"num",
"readBoolean",
"Boolean",
"readString",
"decode",
"subarray",
"readUtf8TextDecoder",
"str",
"b1",
"b2",
"b3",
"b0",
"bytesPerSequence",
"String",
"fromCharCode",
"readUtf8",
"readBytes",
"readPackedVarint",
"readPackedSVarint",
"readPackedBoolean",
"readPackedFloat",
"readPackedDouble",
"readPackedFixed32",
"readPackedSFixed32",
"readPackedFixed64",
"readPackedSFixed64",
"writeTag",
"min",
"finish",
"writeBigVarintLow",
"lsb",
"writeBigVarintHigh",
"writeBigVarint",
"writeString",
"lead",
"charCodeAt",
"writeUtf8",
"writeBytes",
"writeRawMessage",
"obj",
"writeMessage",
"writeBytesField",
"writeFixed32Field",
"writeSFixed32Field",
"writeFixed64Field",
"writeSFixed64Field",
"writeVarintField",
"writeSVarintField",
"writeStringField",
"writeFloatField",
"writeDoubleField",
"writeBooleanField",
"t",
"r",
"a",
"n",
"o",
"f",
"exp",
"u",
"sqrt",
"x",
"_maxEntries",
"_minEntries",
"ceil",
"clear",
"children",
"minX",
"minY",
"maxX",
"maxY",
"leaf",
"height",
"all",
"_all",
"data",
"search",
"toBBox",
"collides",
"load",
"insert",
"_build",
"slice",
"_splitRoot",
"_insert",
"remove",
"splice",
"_condense",
"compareMinX",
"compareMinY",
"toJSON",
"fromJSON",
"apply",
"_chooseSubtree",
"_split",
"_adjustParentBBoxes",
"_chooseSplitAxis",
"_chooseSplitIndex",
"M",
"_allDistMargin",
"sort",
"runtime",
"Op",
"Object",
"hasOwn",
"hasOwnProperty",
"$Symbol",
"iteratorSymbol",
"iterator",
"asyncIteratorSymbol",
"asyncIterator",
"toStringTagSymbol",
"toStringTag",
"defineProperty",
"enumerable",
"configurable",
"writable",
"err",
"wrap",
"innerFn",
"outerFn",
"tryLocsList",
"protoGenerator",
"Generator",
"generator",
"create",
"context",
"Context",
"_invoke",
"state",
"GenStateSuspendedStart",
"method",
"arg",
"GenStateExecuting",
"GenStateCompleted",
"doneResult",
"delegate",
"delegateResult",
"maybeInvokeDelegate",
"ContinueSentinel",
"sent",
"_sent",
"dispatchException",
"abrupt",
"record",
"tryCatch",
"done",
"GenStateSuspendedYield",
"makeInvokeMethod",
"GeneratorFunction",
"GeneratorFunctionPrototype",
"IteratorPrototype",
"getProto",
"getPrototypeOf",
"NativeIteratorPrototype",
"values",
"Gp",
"defineIteratorMethods",
"AsyncIterator",
"PromiseImpl",
"invoke",
"resolve",
"reject",
"__await",
"then",
"unwrapped",
"error",
"previousPromise",
"callInvokeWithMethodAndArg",
"info",
"resultName",
"nextLoc",
"pushTryEntry",
"locs",
"entry",
"tryLoc",
"catchLoc",
"finallyLoc",
"afterLoc",
"tryEntries",
"resetTryEntry",
"completion",
"iterable",
"iteratorMethod",
"displayName",
"isGeneratorFunction",
"genFun",
"ctor",
"constructor",
"name",
"mark",
"setPrototypeOf",
"__proto__",
"awrap",
"async",
"Promise",
"iter",
"keys",
"object",
"reverse",
"skipTempReset",
"charAt",
"stop",
"rootRecord",
"rval",
"exception",
"handle",
"loc",
"caught",
"hasCatch",
"hasFinally",
"finallyEntry",
"complete",
"thrown",
"delegateYield",
"regeneratorRuntime",
"accidentalStrictMode",
"globalThis",
"Function",
"families",
"icon",
"title",
"link",
"getNames",
"getLink",
"normalizeName",
"indexOfMatch",
"xml",
"tagName",
"debug",
"startIndex",
"console",
"start",
"afterStart",
"relativeEnd",
"selfClosing",
"outer",
"inner",
"lastIndexOf",
"findTagByName",
"tags",
"attributeName",
"pattern",
"match",
"RegExp",
"exec",
"index",
"list",
"arguments",
"inserted",
"Node",
"pushNode",
"res",
"shift",
"forEachReverse",
"getReverse",
"mapReverse",
"reduce",
"initial",
"acc",
"reduceReverse",
"toArrayReverse",
"from",
"to",
"ret",
"sliceReverse",
"deleteCount",
"er",
"abstract",
"uidCounter_",
"getUid",
"ol_uid",
"VERSION",
"code",
"message",
"_super",
"_this",
"__extends",
"stopPropagation",
"evt",
"propagationStopped",
"defaultPrevented",
"target",
"BaseEvent",
"disposed",
"Disposable",
"disposeInternal",
"binarySearch",
"haystack",
"needle",
"opt_comparator",
"mid",
"cmp",
"comparator",
"numberSafeCompareFunction",
"found",
"includes",
"linearFindNearest",
"direction",
"reverseSubArray",
"begin",
"tmp",
"extend",
"extension",
"find",
"func",
"equals",
"arr1",
"arr2",
"len1",
"findIndex",
"every",
"el",
"idx",
"isSorted",
"opt_func",
"opt_strict",
"compare",
"currentVal",
"TRUE",
"FALSE",
"VOID",
"memoizeOne",
"lastResult",
"lastArgs",
"lastThis",
"called",
"nextArgs",
"arrayEquals",
"toPromise",
"getter",
"promiseGetter",
"assign",
"var_sources",
"output",
"source",
"property",
"getValues",
"isEmpty",
"opt_target",
"eventTarget_",
"pendingRemovals_",
"dispatching_",
"listeners_",
"Target",
"listener",
"listeners",
"listenersForType",
"event",
"isString",
"Event",
"propagate",
"dispatching",
"pendingRemovals",
"handleEvent",
"pr",
"removeEventListener",
"opt_type",
"listen",
"opt_this",
"opt_once",
"bind",
"originalListener_1",
"eventsKey",
"addEventListener",
"listenOnce",
"unlistenByKey",
"on",
"onInternal",
"once",
"onceInternal",
"un",
"unInternal",
"revision_",
"Observable",
"dispatchEvent",
"EventType",
"ol_key",
"unByKey",
"EventTarget",
"oldValue",
"opt_values",
"values_",
"setProperties",
"BaseObject",
"eventType",
"hasListener",
"ObjectEvent",
"ObjectEventType",
"opt_silent",
"notify",
"Property",
"opt_element",
"opt_index",
"element",
"opt_array",
"opt_options",
"unique_",
"unique",
"array_",
"assertUnique_",
"updateLength_",
"Collection",
"getLength",
"array",
"elem",
"CollectionEvent",
"CollectionEventType",
"removeAt",
"insertAt",
"j",
"opt_except",
"AssertionError",
"easeIn",
"easeOut",
"inAndOut",
"linear",
"tileCoord",
"interimTile",
"transition_",
"transition",
"transitionStarts_",
"interpolate",
"Tile",
"tile",
"getState",
"TileState",
"changed",
"id",
"time",
"delta",
"loader_",
"loader",
"data_",
"error_",
"DataTile",
"catch",
"assert",
"assertion",
"errorCode",
"createStyleFunction",
"styles_1",
"getZIndex",
"opt_geometryOrProperties",
"id_",
"geometryName_",
"style_",
"styleFunction_",
"geometryChangeKey_",
"addChangeListener",
"handleGeometryChanged_",
"getSimplifiedGeometry",
"geometry",
"setGeometry",
"properties",
"Feature",
"clone",
"hasProperties",
"getProperties",
"setGeometryName",
"getGeometryName",
"getGeometry",
"getStyle",
"setStyle",
"handleGeometryChange_",
"opt_style",
"removeChangeListener",
"POINT",
"LINE_STRING",
"LINEAR_RING",
"POLYGON",
"MULTI_POINT",
"MULTI_LINE_STRING",
"MULTI_POLYGON",
"GEOMETRY_COLLECTION",
"CIRCLE",
"Units",
"RADIANS",
"DEGREES",
"FEET",
"METERS",
"PIXELS",
"TILE_PIXELS",
"USFEET",
"unitByCode",
"fromCode",
"METERS_PER_UNIT",
"PI",
"transformStringDiv",
"ua",
"navigator",
"userAgent",
"FIREFOX",
"SAFARI",
"SAFARI_BUG_237906",
"WEBKIT",
"MAC",
"DEVICE_PIXEL_RATIO",
"devicePixelRatio",
"WORKER_OFFSCREEN_CANVAS",
"WorkerGlobalScope",
"OffscreenCanvas",
"IMAGE_DECODE",
"Image",
"PASSIVE_EVENT_LISTENERS",
"passive",
"window",
"tmp_",
"transform",
"multiply",
"transform1",
"transform2",
"a1",
"c1",
"d1",
"e1",
"f1",
"a2",
"c2",
"d2",
"e2",
"f2",
"setFromArray",
"coordinate",
"y",
"rotate",
"angle",
"cos",
"sin",
"scale",
"makeScale",
"translate",
"dx",
"dy",
"compose",
"dx1",
"dy1",
"sx",
"sy",
"dx2",
"dy2",
"makeInverse",
"det",
"determinant",
"mat",
"toString",
"transformString",
"document",
"createElement",
"boundingExtent",
"coordinates",
"extent",
"createEmpty",
"extendCoordinate",
"opt_extent",
"closestSquaredDistanceXY",
"containsCoordinate",
"containsXY",
"containsExtent",
"extent1",
"extent2",
"coordinateRelationship",
"relationship",
"Relationship",
"createOrUpdate",
"createOrUpdateEmpty",
"createOrUpdateFromCoordinate",
"createOrUpdateFromFlatCoordinates",
"flatCoordinates",
"stride",
"extendFlatCoordinates",
"approximatelyEquals",
"tolerance",
"extendCoordinates",
"extendXY",
"extendRings",
"rings",
"forEachCorner",
"callback",
"getBottomLeft",
"getBottomRight",
"getTopRight",
"getTopLeft",
"getArea",
"area",
"getWidth",
"getHeight",
"getCenter",
"getCorner",
"corner",
"Corner",
"getForViewAndSize",
"center",
"resolution",
"rotation",
"cosRotation",
"sinRotation",
"xCos",
"xSin",
"yCos",
"ySin",
"x0",
"x1",
"x2",
"x3",
"y0",
"y1",
"y2",
"y3",
"getIntersection",
"intersection",
"intersects",
"returnOrUpdate",
"scaleFromCenter",
"deltaX",
"deltaY",
"intersectsSegment",
"startRel",
"endRel",
"startX",
"startY",
"endX",
"endY",
"slope",
"applyTransform",
"transformFn",
"opt_stops",
"width",
"xs",
"ys",
"_boundingExtentXYs",
"wrapX",
"projection",
"projectionExtent",
"getExtent",
"canWrapX",
"worldWidth",
"code_",
"units_",
"units",
"extent_",
"worldExtent_",
"worldExtent",
"axisOrientation_",
"axisOrientation",
"global_",
"global",
"canWrapX_",
"getPointResolutionFunc_",
"getPointResolution",
"defaultTileGrid_",
"metersPerUnit_",
"metersPerUnit",
"Projection",
"tileGrid",
"clamp",
"cosh",
"log2",
"LOG2E",
"squaredSegmentDistance",
"squaredDistance",
"solveLinearSystem",
"maxRow",
"maxEl",
"absValue",
"coef",
"toDegrees",
"angleInRadians",
"toRadians",
"angleInDegrees",
"modulo",
"lerp",
"toFixed",
"decimals",
"factor",
"round",
"RADIUS",
"HALF_SIZE",
"EXTENT",
"WORLD_EXTENT",
"MAX_SAFE_Y",
"tan",
"point",
"PROJECTIONS",
"EPSG3857Projection",
"fromEPSG4326",
"input",
"opt_output",
"opt_dimension",
"dimension",
"toEPSG4326",
"atan",
"opt_axisOrientation",
"EPSG4326Projection",
"cache",
"add",
"transforms",
"destination",
"sourceCode",
"getCode",
"destinationCode",
"padNumber",
"number",
"opt_precision",
"numberString",
"decimal",
"compareVersions",
"v1",
"v2",
"s1",
"s2",
"n1",
"parseInt",
"n2",
"closestOnCircle",
"circle",
"getRadius",
"closestOnSegment",
"segment",
"along",
"degreesToStringHDMS",
"hemispheres",
"degrees",
"opt_fractionDigits",
"normalizedDegrees",
"dflPrecision",
"precision",
"deg",
"sec",
"format",
"template",
"coordinate1",
"coordinate2",
"cosAngle",
"sinAngle",
"coord1",
"coord2",
"distance",
"squaredDistanceToSegment",
"toStringXY",
"worldsAway",
"getWorldsAway",
"opt_sourceExtentWidth",
"sourceExtentWidth",
"DEFAULT_RADIUS",
"getDistance",
"opt_radius",
"radius",
"lat1",
"lat2",
"deltaLatBy2",
"deltaLonBy2",
"atan2",
"getLengthInternal",
"getAreaInternal",
"bearing",
"lon1",
"dByR",
"lat",
"asin",
"showCoordinateWarning",
"disableCoordinateWarning",
"opt_disable",
"cloneTransform",
"identityTransform",
"addProjection",
"addProj",
"addTransformFunc",
"addProjections",
"projections",
"projectionLike",
"getProj",
"opt_units",
"pointResolution",
"getPointResolutionFunc",
"getUnits",
"getMetersPerUnit",
"toEPSG4326_1",
"getTransformFromProjections",
"vertices",
"addEquivalentProjections",
"addEquivalentTransforms",
"projections1",
"projections2",
"forwardTransform",
"inverseTransform",
"projection1",
"projection2",
"createProjection",
"defaultCode",
"createTransformFromCoordinateTransform",
"coordTransform",
"addCoordinateTransforms",
"forward",
"inverse",
"sourceProj",
"destProj",
"fromLonLat",
"opt_projection",
"equivalent",
"equalUnits",
"sourceProjection",
"destinationProjection",
"transformFunc",
"getTransformFunc",
"getTransform",
"transformExtent",
"userProjection",
"setUserProjection",
"getUserProjection",
"toUserCoordinate",
"fromUserCoordinate",
"destProjection",
"warn",
"toUserExtent",
"fromUserExtent",
"toUserResolution",
"sourceUnits",
"userUnits",
"fromUserResolution",
"createSafeCoordinateTransform",
"coord",
"transformed",
"sourceX",
"sourceY",
"sourceExtent",
"addCommon",
"EPSG3857_PROJECTIONS",
"EPSG4326_PROJECTIONS",
"transform2D",
"opt_dest",
"dest",
"anchor",
"anchorX",
"anchorY",
"tmpTransform",
"extentRevision_",
"simplifiedGeometryMaxMinSquaredTolerance",
"simplifiedGeometryRevision",
"simplifyTransformedInternal",
"revision",
"squaredTolerance",
"opt_transform",
"Geometry",
"getRevision",
"closestPoint",
"minSquaredDistance",
"getClosestPoint",
"opt_closestPoint",
"closestPointXY",
"computeExtent",
"opt_sy",
"opt_anchor",
"getProjection",
"inCoordinates",
"outCoordinates",
"pixelExtent",
"projectedExtent",
"getWorldExtent",
"composeTransform",
"getStrideForLayout",
"layout",
"GeometryLayout",
"transformGeom2D",
"simpleGeometry",
"getFlatCoordinates",
"getStride",
"SimpleGeometry",
"simplifiedGeometry",
"getSimplifiedGeometryInternal",
"opt_layout",
"nesting",
"getLayoutForStride",
"assignClosest",
"offset1",
"offset2",
"maxSquaredDelta",
"squaredDelta",
"squaredDx",
"arrayMaxSquaredDelta",
"ends",
"multiArrayMaxSquaredDelta",
"endss",
"assignClosestPoint",
"maxDelta",
"isRing",
"opt_tmpPoint",
"tmpPoint",
"assignClosestArrayPoint",
"assignClosestMultiArrayPoint",
"deflateCoordinate",
"deflateCoordinates",
"deflateCoordinatesArray",
"coordinatess",
"opt_ends",
"jj",
"deflateMultiCoordinatesArray",
"coordinatesss",
"opt_endss",
"douglasPeucker",
"simplifiedFlatCoordinates",
"simplifiedOffset",
"markers",
"stack",
"last",
"first",
"maxSquaredDistance",
"squaredDistance_1",
"douglasPeuckerArray",
"simplifiedEnds",
"radialDistance",
"snap",
"quantize",
"quantizeArray",
"quantizeMultiArray",
"simplifiedEndss",
"inflateCoordinates",
"opt_coordinates",
"inflateCoordinatesArray",
"opt_coordinatess",
"inflateMultiCoordinatesArray",
"opt_coordinatesss",
"linearRing",
"twiceArea",
"linearRings",
"linearRingss",
"maxDelta_",
"maxDeltaRevision_",
"setCoordinates",
"setFlatCoordinates",
"LinearRing",
"linearRingArea",
"GeometryType",
"setLayout",
"Point",
"applyProperties",
"linearRingContainsExtent",
"linearRingContainsXY",
"wn",
"linearRingsContainsXY",
"linearRingssContainsXY",
"getInteriorPointOfArray",
"flatCenters",
"flatCentersOffset",
"intersections",
"rr",
"pointX",
"maxSegmentLength",
"segmentLength",
"getInteriorPointsOfMultiArray",
"interiorPoints",
"intersectsLineString",
"coordinatesExtent",
"forEachSegment",
"point1",
"point2",
"intersectsLineStringArray",
"intersectsLinearRing",
"intersectsLinearRingArray",
"intersectsLinearRingMultiArray",
"linearRingIsClockwise",
"edge",
"linearRingsAreOriented",
"opt_right",
"right",
"isClockwise",
"linearRingssAreOriented",
"orientLinearRings",
"reverseCoordinates",
"orientLinearRingsArray",
"inflateEnds",
"prevEndIndex",
"ends_",
"flatInteriorPointRevision_",
"flatInteriorPoint_",
"orientedRevision_",
"orientedFlatCoordinates_",
"Polygon",
"polygon",
"getOrientedFlatCoordinates",
"linearRingsArea",
"flatCenter",
"getFlatInteriorPoint",
"circular",
"opt_n",
"opt_sphereRadius",
"sphereOffset",
"fromExtent",
"fromCircle",
"opt_sides",
"opt_angle",
"sides",
"getLayout",
"arrayLength",
"makeRegular",
"startAngle",
"position_",
"transform_",
"watchId_",
"handleProjectionChanged_",
"handleTrackingChanged_",
"setProjection",
"trackingOptions",
"setTrackingOptions",
"setTracking",
"tracking",
"Geolocation",
"getTracking",
"geolocation",
"watchPosition",
"positionChange_",
"positionError_",
"getTrackingOptions",
"clearWatch",
"position",
"coords",
"accuracy",
"altitude",
"altitudeAccuracy",
"heading",
"longitude",
"latitude",
"projectedPosition",
"speed",
"circularPolygon",
"GeolocationError",
"pixelRatio",
"pixelRatio_",
"ImageBase",
"listenImage",
"image",
"loadHandler",
"errorHandler",
"img",
"listening",
"decoding",
"loaded",
"listenerKeys",
"src",
"crossOrigin",
"imageLoadFunction",
"ImageState",
"src_",
"image_",
"unlisten_",
"imageLoadFunction_",
"ImageWrapper",
"unlistenImage_",
"handleImageLoad_",
"handleImageError_",
"canvas",
"opt_loader",
"canvas_",
"ImageCanvas",
"handleLoad_",
"createCanvasContext2D",
"opt_width",
"opt_height",
"opt_canvasPool",
"opt_Context2DSettings",
"getContext",
"outerWidth",
"offsetWidth",
"getComputedStyle",
"marginLeft",
"marginRight",
"outerHeight",
"offsetHeight",
"marginTop",
"marginBottom",
"replaceNode",
"newNode",
"oldNode",
"parent",
"parentNode",
"replaceChild",
"removeChild",
"removeChildren",
"lastChild",
"replaceChildren",
"oldChildren",
"childNodes",
"oldChild",
"newChild",
"insertBefore",
"appendChild",
"tileLoadFunction",
"crossOrigin_",
"tileLoadFunction_",
"ImageTile",
"ctx",
"fillStyle",
"fillRect",
"naturalWidth",
"naturalHeight",
"decay",
"minVelocity",
"delay",
"decay_",
"minVelocity_",
"delay_",
"points_",
"angle_",
"initialVelocity_",
"Kinetic",
"lastIndex",
"firstIndex",
"duration",
"HEX_COLOR_RE_",
"NAMED_COLOR_RE_",
"asString",
"color",
"fromNamed",
"body",
"rgb",
"fromString",
"cacheSize",
"g",
"hasAlpha",
"substr",
"normalize",
"Number",
"fromStringInternal_",
"asArray",
"isStringColor",
"cache_",
"cacheSize_",
"maxCacheSize_",
"IconImageCache",
"canExpireCache",
"iconImage",
"getKey",
"maxCacheSize",
"expire",
"shared",
"background_",
"background",
"LayerProperty",
"opacity",
"visible",
"zIndex",
"maxResolution",
"minResolution",
"minZoom",
"maxZoom",
"className_",
"className",
"state_",
"BaseLayer",
"opt_managed",
"layer",
"managed",
"getOpacity",
"getVisible",
"getMaxResolution",
"getMinResolution",
"getMinZoom",
"getMaxZoom",
"opt_states",
"opt_background",
"zindex",
"inView",
"layerState",
"viewState",
"zoom",
"baseOptions",
"mapPrecomposeKey_",
"mapRenderKey_",
"sourceChangeKey_",
"renderer_",
"rendered",
"render",
"setMap",
"handleSourcePropertyChange_",
"setSource",
"Layer",
"states",
"getLayerState",
"getSource",
"SourceState",
"handleSourceChange_",
"pixel",
"getFeatures",
"getData",
"frameState",
"layerRenderer",
"getRenderer",
"prepareFrame",
"renderFrame",
"unrender",
"RenderEventType",
"layerStatesArray",
"some",
"arrayLayerState",
"createRenderer",
"expireIconCache",
"iconImageCache",
"map_",
"MapRenderer",
"coordinateToPixelTransform",
"pixelToCoordinateTransform",
"hitTolerance",
"checkWrapped",
"thisArg",
"layerFilter",
"thisArg2",
"forEachFeatureAtCoordinate",
"feature",
"translatedCoordinate",
"offsets",
"layerStates",
"numLayers",
"matches",
"tmpCoord",
"hasRenderer",
"getWrapX",
"callback_1",
"order",
"distanceSq",
"postRenderFunctions",
"opt_inversePixelTransform",
"opt_frameState",
"opt_context",
"inversePixelTransform",
"CLASS_HIDDEN",
"CLASS_SELECTABLE",
"CLASS_UNSELECTABLE",
"CLASS_UNSUPPORTED",
"CLASS_CONTROL",
"CLASS_COLLAPSED",
"fontRegEx",
"fontRegExMatchIndex",
"getFontParameters",
"fontSpec",
"variant",
"family",
"cssOpacity",
"defaultFont",
"defaultFillStyle",
"defaultLineCap",
"defaultLineDash",
"defaultLineJoin",
"defaultMiterLimit",
"defaultStrokeStyle",
"defaultTextAlign",
"defaultTextBaseline",
"defaultPadding",
"checkedFonts",
"labelCache",
"setSize",
"measureFont",
"measureElement",
"measureContext",
"textHeights",
"registerFont",
"interval",
"referenceWidth",
"referenceFonts",
"text",
"isAvailable",
"fontStyle",
"fontWeight",
"available",
"referenceFont",
"measureTextWidth",
"check",
"getKeys",
"font",
"clearInterval",
"setInterval",
"measureTextHeight",
"metrics",
"measureText",
"actualBoundingBoxAscent",
"actualBoundingBoxDescent",
"innerHTML",
"minHeight",
"maxHeight",
"padding",
"border",
"display",
"left",
"measureAndCacheTextWidth",
"getTextDimensions",
"baseStyle",
"chunks",
"widths",
"heights",
"lineWidths",
"lineWidth",
"currentWidth",
"currentHeight",
"drawImageOrLabel",
"labelOrImage",
"originX",
"originY",
"save",
"globalAlpha",
"setTransform",
"contextInstructions",
"label",
"executeLabelInstructions",
"drawImage",
"restore",
"fontChangeListenerKey_",
"redrawText",
"element_",
"container",
"getViewport",
"firstChild",
"children_",
"renderedVisible_",
"CompositeMapRenderer",
"getMap",
"event_1",
"RenderEvent",
"calculateMatrices2D",
"dispatchRenderEvent",
"declutterLayers",
"previousElement",
"layerIndex",
"sourceState",
"getSourceState",
"renderDeclutter",
"scheduleExpireIconCache",
"getDataAtPixel",
"layers",
"layersListenerKeys_",
"listenerKeys_",
"handleLayersChanged_",
"getArray",
"setLayers",
"LayerGroup",
"getLayers",
"handleLayersAdd_",
"handleLayersRemove_",
"layersArray",
"registerLayerListeners_",
"GroupEvent",
"handleLayerChange_",
"handleLayerGroupAdd_",
"handleLayerGroupRemove_",
"collectionEvent",
"collection",
"currentLayers",
"getLayersArray",
"getLayerStatesArray",
"ownLayerState",
"defaultZIndex",
"originalEvent",
"opt_dragging",
"pixel_",
"coordinate_",
"dragging",
"MapBrowserEvent",
"getEventPixel",
"getCoordinateFromPixel",
"preventDefault",
"MapEvent",
"SINGLECLICK",
"CLICK",
"DBLCLICK",
"POINTERDRAG",
"POINTERMOVE",
"POINTERDOWN",
"POINTERUP",
"POINTEROVER",
"POINTEROUT",
"POINTERENTER",
"POINTERLEAVE",
"POINTERCANCEL",
"moveTolerance",
"clickTimeoutId_",
"emulateClicks_",
"dragging_",
"dragListenerKeys_",
"moveTolerance_",
"down_",
"activePointers_",
"trackedTouches_",
"pointerdownListenerKey_",
"PointerEventType",
"handlePointerDown_",
"originalPointerMoveEvent_",
"relayedListenerKey_",
"relayEvent_",
"boundHandleTouchMove_",
"handleTouchMove_",
"MapBrowserEventHandler",
"pointerEvent",
"newEvent",
"MapBrowserEventType",
"clearTimeout",
"setTimeout",
"pointerId",
"updateActivePointers_",
"isMouseActionButton_",
"emulateClick_",
"button",
"doc",
"getOwnerDocument",
"handlePointerMove_",
"handlePointerUp_",
"getRootNode",
"isMoving_",
"cancelable",
"clientX",
"clientY",
"DROP",
"priorityFunction",
"keyFunction",
"priorityFunction_",
"keyFunction_",
"elements_",
"priorities_",
"queuedElements_",
"PriorityQueue",
"elements",
"priorities",
"siftUp_",
"elementKey",
"priority",
"siftDown_",
"isKeyQueued",
"count",
"lIndex",
"getLeftChildIndex_",
"rIndex",
"getRightChildIndex_",
"smallerChildIndex",
"parentIndex",
"getParentIndex_",
"heapify_",
"tilePriorityFunction",
"tileChangeCallback",
"boundHandleTileChange_",
"handleTileChange",
"tileChangeCallback_",
"tilesLoading_",
"tilesLoadingKeys_",
"TileQueue",
"added",
"enqueue",
"tileKey",
"maxTotalLoading",
"maxNewLoads",
"newLoads",
"getCount",
"dequeue",
"getTilePriority",
"tileSourceKey",
"tileCenter",
"tileResolution",
"wantedTiles",
"CENTER",
"RESOLUTION",
"ROTATION",
"DEFAULT_TILE_SIZE",
"createExtent",
"onlyCenter",
"smooth",
"opt_isMoving",
"opt_centerShift",
"viewWidth",
"viewHeight",
"shiftX",
"shiftY",
"ratio",
"none",
"getViewportClampedResolution",
"maxExtent",
"viewportSize",
"showFullExtent",
"xResolution",
"yResolution",
"getSmoothClampedResolution",
"createSnapToResolutions",
"resolutions",
"opt_smooth",
"opt_maxExtent",
"opt_showFullExtent",
"cappedMaxRes",
"capped",
"z",
"createSnapToPower",
"power",
"opt_minResolution",
"minZoomLevel",
"cappedZoomLevel",
"zoomLevel",
"createMinMaxResolution",
"disable",
"createSnapToN",
"theta",
"createSnapToZero",
"opt_tolerance",
"animationCallback",
"returnValue",
"createCenterConstraint",
"smoothExtentConstraint",
"constrainOnlyCenter",
"multiWorld",
"isGlobal",
"centerNone",
"createResolutionConstraint",
"resolutionConstraint",
"zoomFactor",
"smoothResolutionConstraint",
"projExtent",
"constrainResolution",
"defaultMaxResolution",
"defaultMinResolution",
"defaultMaxZoom",
"constraint",
"createRotationConstraint",
"enableRotation",
"constrainRotation",
"rotationNone",
"isNoopAnimation",
"animation",
"sourceCenter",
"targetCenter",
"coordinatesEqual",
"sourceResolution",
"targetResolution",
"sourceRotation",
"targetRotation",
"calculateCenterOn",
"rotX",
"rotY",
"hints_",
"animations_",
"updateAnimationKey_",
"projection_",
"viewportSize_",
"targetCenter_",
"targetResolution_",
"targetRotation_",
"nextCenter_",
"nextResolution_",
"nextRotation_",
"cancelAnchor_",
"applyOptions_",
"View",
"ViewProperty",
"resolutionConstraintInfo",
"maxResolution_",
"minResolution_",
"zoomFactor_",
"resolutions_",
"padding_",
"minZoom_",
"centerConstraint",
"rotationConstraint",
"constraints_",
"setRotation",
"setCenterInternal",
"setResolution",
"setZoom",
"oldPadding",
"newPadding",
"getResolution",
"offsetX",
"offsetY",
"newOptions",
"getZoom",
"getCenterInternal",
"getRotation",
"var_args",
"isDef",
"getAnimating",
"resolveConstraints",
"args",
"animateInternal",
"animationCount",
"series",
"easing",
"getResolutionForZoom",
"setHint",
"ViewHint",
"updateAnimations_",
"cancelAnimationFrame",
"more",
"seriesComplete",
"elapsed",
"fraction",
"progress",
"getViewportSize_",
"constrainedResolution",
"calculateCenterZoom",
"applyTargetState_",
"constrainedRotation",
"calculateCenterRotate",
"requestAnimationFrame",
"currentCenter",
"rotateCoordinate",
"addCoordinate",
"currentResolution",
"opt_rotation",
"opt_size",
"opt_hints",
"calculateExtentInternal",
"getViewportSizeMinusPadding_",
"getZoomForResolution",
"getUpdatedOptions_",
"enabled",
"getResolutionForExtentInternal",
"opt_power",
"getConstrainedResolution",
"logPower",
"reducedSize",
"nextCenter",
"nextResolution",
"nextRotation",
"nearest",
"baseLevel",
"geometryOrExtent",
"polygonFromExtent",
"getType",
"fitInternal",
"minRotX",
"minRotY",
"maxRotX",
"maxRotY",
"rotatedExtent",
"rotatedExtentForGeometry",
"centerRot",
"centerX",
"centerY",
"getConstrainedCenter",
"centerOnInternal",
"centerShift",
"shiftedCenter",
"deltaCoordinates",
"setCenter",
"adjustResolutionInternal",
"isMoving",
"getInteracting",
"newResolution",
"adjustResolution",
"adjustRotationInternal",
"newRotation",
"hint",
"opt_doNotCancelAnims",
"opt_forceMoving",
"newCenter",
"calculateCenterShift",
"cancelAnimations",
"opt_duration",
"opt_resolutionDirection",
"endInteractionInternal",
"opt_targetResolution",
"targetZoom",
"opt_direction",
"targetRes",
"hasArea",
"toSize",
"removeLayerMapProperty",
"setMapInternal",
"setLayerMapProperty",
"optionsInternal",
"keyboardEventTarget",
"getElementById",
"controls",
"interactions",
"overlays",
"layerGroup",
"MapProperty",
"view",
"createOptionsInternal",
"renderComplete_",
"loaded_",
"boundHandleBrowserEvent_",
"handleBrowserEvent",
"maxTilesLoading_",
"maxTilesLoading",
"postRenderTimeoutHandle_",
"animationDelayKey_",
"animationDelay_",
"renderFrame_",
"coordinateToPixelTransform_",
"pixelToCoordinateTransform_",
"frameIndex_",
"frameState_",
"previousExtent_",
"viewPropertyListenerKey_",
"viewChangeListenerKey_",
"layerGroupPropertyListenerKeys_",
"viewport_",
"overflow",
"overlayContainer_",
"pointerEvents",
"overlayContainerStopEvent_",
"mapBrowserEventHandler_",
"keyboardEventTarget_",
"targetChangeHandlerKeys_",
"overlays_",
"overlayIdIndex_",
"postRenderFunctions_",
"tileQueue_",
"handleTileChange_",
"handleLayerGroupChanged_",
"handleViewChanged_",
"handleSizeChanged_",
"handleTargetChanged_",
"viewOptions",
"setView",
"addOverlayInternal_",
"getId",
"control",
"interaction",
"PluggableMap",
"getControls",
"getInteractions",
"getLayerGroup",
"overlay",
"getOverlays",
"setTarget",
"getCoordinateFromPixelInternal",
"features",
"forEachFeatureAtPixel",
"addLayersFrom",
"forEachLayerAtPixel",
"hasFeatureAtCoordinate",
"viewportPosition",
"getBoundingClientRect",
"eventPosition",
"changedTouches",
"top",
"getTarget",
"getView",
"group",
"renderer",
"ready",
"loading",
"viewCoordinate",
"getPixelFromCoordinateInternal",
"targetElement",
"getTargetElement",
"ownerDocument",
"browserEvent",
"mapBrowserEvent",
"handleMapBrowserEvent",
"rootNode",
"contains",
"documentElement",
"interactionsArray",
"getActive",
"tileQueue",
"hints",
"viewHints",
"lowOnFrameBudget",
"getTilesLoading",
"reprioritize",
"loadMoreTiles",
"animate",
"MapEventType",
"defaultView",
"updateSize",
"updateViewportSize_",
"handleViewPropertyChanged_",
"handleLayerAdd_",
"handleLayerRemove_",
"handleFontsChanged",
"getSize",
"previousFrameState",
"getHints",
"declutterTree",
"usedTiles",
"mapId",
"renderTargets",
"nextExtent",
"getLoadingOrNotReady",
"handlePostRender",
"oldLayerGroup",
"computedStyle",
"parseFloat",
"getClientRects",
"setViewportSize",
"target_",
"Control",
"getOverlayContainerStopEvent",
"mapEvent",
"ulElement_",
"collapsed_",
"collapsed",
"userCollapsed_",
"overrideCollapsible_",
"collapsible",
"collapsible_",
"tipLabel",
"expandClassName",
"collapseLabel",
"collapseClassName",
"collapseLabel_",
"textContent",
"label_",
"activeLabel",
"toggleButton_",
"setAttribute",
"handleClick_",
"cssClasses",
"renderedAttributions_",
"Attribution",
"lookup",
"visibleAttributions",
"attributionGetter",
"getAttributions",
"attributions",
"getAttributionsCollapsible",
"setCollapsible",
"collectSourceAttributions_",
"handleToggle_",
"classList",
"toggle",
"updateElement_",
"compassClassName",
"callResetNorth_",
"resetNorth",
"duration_",
"autoHide_",
"autoHide",
"rotation_",
"Rotate",
"resetNorth_",
"zoomInClassName",
"zoomOutClassName",
"zoomInLabel",
"zoomOutLabel",
"zoomInTipLabel",
"zoomOutTipLabel",
"inElement",
"createTextNode",
"outElement",
"Zoom",
"zoomByDelta_",
"currentZoom",
"newZoom",
"getConstrainedZoom",
"defaults",
"zoomOptions",
"rotateOptions",
"attribution",
"attributionOptions",
"pan",
"zoomByDelta",
"setActive",
"Interaction",
"InteractionProperty",
"active",
"delta_",
"DoubleClickZoom",
"stopEvent",
"shiftKey",
"centroid",
"handleDownEvent",
"handleDragEvent",
"handleMoveEvent",
"handleUpEvent",
"stopDown",
"handlingDownUpSequence",
"trackedPointers_",
"targetPointers",
"PointerInteraction",
"updateTrackedPointers_",
"handledUp",
"handled",
"isPointerDraggingEvent",
"conditions",
"pass",
"altKeyOnly",
"altKey",
"metaKey",
"ctrlKey",
"altShiftKeysOnly",
"focus",
"activeElement",
"focusWithTabindex",
"hasAttribute",
"always",
"mouseActionButton",
"never",
"singleClick",
"noModifierKeys",
"shiftKeyOnly",
"targetNotEditable",
"mouseOnly",
"pointerType",
"primaryAction",
"isPrimary",
"kinetic_",
"kinetic",
"lastCentroid",
"lastPointersCount_",
"panning_",
"condition",
"condition_",
"onFocusOnly",
"noKinetic_",
"DragPan",
"beginInteraction",
"centroidFromPointers",
"update",
"scaleCoordinate",
"adjustCenterInternal",
"getAngle",
"centerpx",
"endInteraction",
"lastAngle_",
"DragRotate",
"getConstraints",
"geometry_",
"startPixel_",
"endPixel_",
"RenderBox",
"startPixel",
"endPixel",
"px",
"getOverlayContainer",
"createOrUpdateGeometry",
"render_",
"DragBoxEventType",
"box_",
"minArea_",
"minArea",
"onBoxEnd",
"boxEndCondition_",
"boxEndCondition",
"defaultBoxEndCondition",
"DragBox",
"setPixels",
"DragBoxEvent",
"completeBox",
"out_",
"out",
"DragZoom",
"defaultCondition_",
"pixelDelta_",
"pixelDelta",
"KeyboardPan",
"keyEvent",
"keyCode",
"KeyCode",
"mapUnitsDelta",
"KeyboardZoom",
"charCode",
"Mode",
"totalDelta_",
"lastDelta_",
"timeout_",
"timeout",
"useAnchor_",
"useAnchor",
"constrainResolution_",
"lastAnchor_",
"startTime_",
"timeoutId_",
"mode_",
"trackpadEventGap_",
"trackpadTimeoutId_",
"deltaPerZoom_",
"MouseWheelZoom",
"wheelEvent",
"deltaMode",
"WheelEvent",
"DOM_DELTA_PIXEL",
"DOM_DELTA_LINE",
"getConstrainResolution",
"endInteraction_",
"adjustZoom",
"timeLeft",
"handleWheelZoom_",
"pointerOptions",
"anchor_",
"rotating_",
"rotationDelta_",
"threshold_",
"threshold",
"PinchRotate",
"rotationDelta",
"touch0",
"touch1",
"lastDistance_",
"lastScaleDelta_",
"PinchZoom",
"scaleDelta",
"altShiftDragRotate",
"doubleClickZoom",
"zoomDelta",
"zoomDuration",
"dragPan",
"pinchRotate",
"pinchZoom",
"keyboard",
"mouseWheelZoom",
"shiftDragZoom",
"defaultControls",
"defaultInteractions",
"insertFirst",
"autoPan",
"autoPanAnimation",
"margin",
"autoPanMargin",
"mapPostrenderListenerKey",
"handleElementChanged",
"handleMapChanged",
"handleOffsetChanged",
"handlePositionChanged",
"handlePositioningChanged",
"setElement",
"setOffset",
"setPositioning",
"positioning",
"OverlayPositioning",
"setPosition",
"Overlay",
"getElement",
"updatePixelPosition",
"performAutoPan",
"panIntoView",
"opt_panIntoViewOptions",
"mapRect",
"getRect",
"overlayRect",
"panIntoViewOptions",
"myMargin",
"offsetLeft",
"offsetRight",
"offsetTop",
"offsetBottom",
"centerPx",
"newCenterPx",
"panOptions",
"box",
"pageXOffset",
"pageYOffset",
"getPosition",
"isRendered",
"getPixelFromCoordinate",
"mapSize",
"updateRenderedPosition",
"setVisible",
"getOffset",
"getPositioning",
"posX",
"posY",
"concat",
"msTransform",
"opt_highWaterMark",
"highWaterMark",
"count_",
"entries_",
"oldest_",
"newest_",
"keep",
"value_",
"key_",
"newer",
"older",
"opt_tileCoord",
"getKeyZXY",
"getCacheKeyForTileKey",
"substring",
"fromKey",
"hash",
"withinExtentAndZ",
"tileRange",
"getFullTileRange",
"TileCache",
"peekLast",
"release",
"peekFirstKey",
"TileRange",
"canvasPool",
"urlTileCoord",
"getSourceTiles",
"context_",
"executorGroups",
"declutterExecutorGroups",
"loadingSourceTiles",
"hitDetectionImageData",
"replayState_",
"sourceTiles",
"errorTileKeys",
"wantedResolution",
"wrappedTileCoord",
"VectorRenderTile",
"hasContext",
"dirty",
"renderedRenderOrder",
"renderedResolution",
"renderedRevision",
"renderedTileResolution",
"renderedTileRevision",
"renderedTileZ",
"format_",
"features_",
"url_",
"VectorTile",
"setState",
"dataProjection",
"setFeatures",
"asColorLike",
"withCredentials",
"loadFeaturesXhr",
"url",
"success",
"failure",
"xhr",
"XMLHttpRequest",
"open",
"FormatType",
"responseType",
"onload",
"status",
"responseText",
"responseXML",
"DOMParser",
"parseFromString",
"response",
"readFeatures",
"featureProjection",
"readProjection",
"onerror",
"send",
"addFeatures",
"jsonp",
"opt_errback",
"opt_callbackParam",
"script",
"cleanup",
"timer",
"getElementsByTagName",
"originalXHR",
"client",
"getJSON",
"JSON",
"parse",
"ResponseError",
"ClientError",
"setRequestHeader",
"resolveUrl",
"base",
"URL",
"href",
"VectorContext",
"hitDetectionRenderer",
"circleGeometry",
"geometryCollectionGeometry",
"lineStringGeometry",
"multiLineStringGeometry",
"multiPointGeometry",
"multiPolygonGeometry",
"pointGeometry",
"polygonGeometry",
"strokeStyle",
"imageStyle",
"opt_declutterImageWithText",
"textStyle",
"viewRotation",
"opt_squaredTolerance",
"opt_userTransform",
"viewRotation_",
"squaredTolerance_",
"userTransform_",
"contextFillState_",
"contextStrokeState_",
"contextTextState_",
"fillState_",
"strokeState_",
"imageAnchorX_",
"imageAnchorY_",
"imageHeight_",
"imageOpacity_",
"imageOriginX_",
"imageOriginY_",
"imageRotateWithView_",
"imageRotation_",
"imageScale_",
"imageWidth_",
"text_",
"textOffsetX_",
"textOffsetY_",
"textRotateWithView_",
"textRotation_",
"textScale_",
"textFillState_",
"textStrokeState_",
"textState_",
"pixelCoordinates_",
"tmpLocalTransform_",
"CanvasImmediateRenderer",
"pixelCoordinates",
"localTransform",
"alpha",
"setContextFillState_",
"setContextStrokeState_",
"setContextTextState_",
"strokeText",
"fillText",
"close",
"moveTo",
"lineTo",
"closePath",
"moveToLineTo_",
"beginPath",
"arc",
"fill",
"stroke",
"drawText_",
"setFillStrokeStyle",
"getFill",
"getStroke",
"setImageStyle",
"getImage",
"setTextStyle",
"getText",
"drawPoint",
"drawLineString",
"drawPolygon",
"drawMultiPoint",
"drawMultiLineString",
"drawMultiPolygon",
"drawGeometryCollection",
"drawCircle",
"getGeometryFunction",
"drawGeometry",
"geometries",
"getGeometriesArray",
"simplifyTransformed",
"drawImages_",
"flatMidpoint",
"getFlatMidpoint",
"geometryExtent",
"getEnds",
"flatMidpoints",
"getFlatMidpoints",
"drawRings_",
"flatInteriorPoint",
"getEndss",
"flatInteriorPoints",
"getFlatInteriorPoints",
"fillState",
"contextFillState",
"strokeState",
"contextStrokeState",
"lineCap",
"setLineDash",
"lineDash",
"lineDashOffset",
"lineJoin",
"miterLimit",
"textState",
"contextTextState",
"textAlign",
"textBaseline",
"fillStyleColor",
"getColor",
"strokeStyleColor",
"strokeStyleLineCap",
"getLineCap",
"strokeStyleLineDash",
"getLineDash",
"strokeStyleLineDashOffset",
"getLineDashOffset",
"strokeStyleLineJoin",
"getLineJoin",
"strokeStyleWidth",
"strokeStyleMiterLimit",
"getMiterLimit",
"imageSize",
"imageAnchor",
"getAnchor",
"imageOrigin",
"getOrigin",
"getRotateWithView",
"getScaleArray",
"textFillStyle",
"textFillStyleColor",
"textStrokeStyle",
"textStrokeStyleColor",
"textStrokeStyleLineCap",
"textStrokeStyleLineDash",
"textStrokeStyleLineDashOffset",
"textStrokeStyleLineJoin",
"textStrokeStyleWidth",
"textStrokeStyleMiterLimit",
"textFont",
"getFont",
"textOffsetX",
"getOffsetX",
"textOffsetY",
"getOffsetY",
"textRotateWithView",
"textRotation",
"textScale",
"textText",
"textTextAlign",
"getTextAlign",
"textTextBaseline",
"getTextBaseline",
"GEOMETRY_RENDERERS",
"builderGroup",
"opt_declutterBuilderGroup",
"declutterImageWithText",
"getImageState",
"imageReplay",
"getBuilder",
"BuilderType",
"textReplay",
"drawText",
"lineStringReplay",
"polygonReplay",
"replayGroup",
"geometryRenderer",
"circleReplay",
"defaultOrder",
"feature1",
"feature2",
"getSquaredTolerance",
"getTolerance",
"renderFeature",
"imageState",
"unlistenImageChange",
"listenImageChange",
"renderGeometry",
"renderFeatureInternal",
"drawCustom",
"getHitDetectionRenderer",
"getGeometries",
"getVectorContext",
"CanvasRenderingContext2D",
"userTransform",
"canvasPixelRatio",
"multiplyTransform",
"brokenDiagonalRendering_",
"IMAGE_SMOOTHING_DISABLED",
"imageSmoothingEnabled",
"msImageSmoothingEnabled",
"IMAGE_SMOOTHING_ENABLED",
"drawTestTriangle",
"u1",
"u2",
"clip",
"verifyBrokenDiagonalRendering",
"calculateSourceResolution",
"targetProj",
"targetMetersPerUnit",
"sourceMetersPerUnit",
"compensationFactor",
"isFinite",
"calculateSourceExtentResolution",
"targetExtent",
"triangulation",
"sources",
"gutter",
"opt_renderEdges",
"opt_interpolate",
"pixelRound",
"globalCompositeOperation",
"sourceDataExtent",
"canvasWidthInUnits",
"canvasHeightInUnits",
"stitchContext",
"stitchScale",
"xPos",
"yPos",
"srcWidth",
"srcHeight",
"targetTopLeft",
"getTriangles",
"triangle",
"u0",
"v0",
"sourceNumericalShiftX",
"sourceNumericalShiftY",
"affineCoefs",
"getImageData",
"isBrokenDiagonalRendering",
"ud",
"vd",
"step",
"steps",
"tmpTileCoord",
"origins",
"origin_",
"origin",
"origins_",
"tileSizes_",
"tileSizes",
"tileSize_",
"tileSize",
"fullTileRanges_",
"tmpSize_",
"tmpExtent_",
"sizes",
"restrictedTileRange",
"getTileRangeForExtentAndZ",
"calculateTileRanges_",
"TileGrid",
"opt_tileRange",
"tileCoordExtent",
"getTileCoordExtent",
"createOrUpdateTileRange",
"tileCoordZ",
"tileCoordX",
"tileCoordY",
"getTileSize",
"getTileCoordForXYAndZ_",
"getTileCoordForXYAndResolution_",
"reverseIntersectionPolicy",
"getZForResolution",
"createOrUpdateTileCoord",
"fullTileRanges",
"getForProjection",
"getDefaultTileGrid",
"createForProjection",
"setDefaultTileGrid",
"getTileCoordCenter",
"extentFromProjection",
"getTileCoordForCoordAndZ",
"createForExtent",
"opt_maxZoom",
"opt_tileSize",
"opt_corner",
"resolutionsFromExtent",
"createXYZ",
"xyzOptions",
"gridOptions",
"opt_maxResolution",
"half",
"createFromTemplate",
"zRegEx",
"xRegEx",
"yRegEx",
"dashYRegEx",
"range",
"createFromTemplates",
"templates",
"tileUrlFunctions",
"createFromTileUrlFunctions",
"tileCoordHash",
"nullTileUrlFunction",
"expandUrl",
"urls",
"startCharCode",
"stopCharCode",
"stop_1",
"appendParams",
"uri",
"params",
"keyParams",
"encodeURIComponent",
"qs",
"supportedExtensions",
"ARRAY_BUFFER",
"ELEMENT_ARRAY_BUFFER",
"STATIC_DRAW",
"DYNAMIC_DRAW",
"FLOAT",
"CONTEXT_IDS",
"opt_attributes",
"attributes",
"preserveDrawingBuffer",
"antialias",
"XML_SCHEMA_INSTANCE_URI",
"createElementNS",
"namespaceURI",
"qualifiedName",
"getDocument",
"getAllTextContent",
"normalizeWhitespace",
"getAllTextContent_",
"accumulator",
"nodeType",
"CDATA_SECTION_NODE",
"TEXT_NODE",
"nodeValue",
"nextSibling",
"isDocument",
"getAttributeNS",
"makeArrayExtender",
"valueReader",
"objectStack",
"makeArrayPusher",
"makeReplacer",
"makeObjectPropertyPusher",
"opt_property",
"localName",
"makeObjectPropertySetter",
"makeChildAppender",
"nodeWriter",
"makeArraySerializer",
"serializersNS",
"nodeFactory",
"serializers",
"makeSimpleNodeFactory",
"serialize",
"opt_nodeName",
"opt_namespaceURI",
"fixedNodeName",
"nodeName",
"OBJECT_PROPERTY_NODE_FACTORY",
"makeSequence",
"orderedKeys",
"sequence",
"makeStructureNS",
"namespaceURIs",
"structure",
"opt_structureNS",
"structureNS",
"parseNode",
"parsersNS",
"firstElementChild",
"nextElementSibling",
"parsers",
"parser",
"pushParseAndPop",
"opt_keys",
"pushSerializeAndPop",
"xmlSerializer_",
"getXMLSerializer",
"XMLSerializer",
"document_",
"implementation",
"createDocument",
"BufferUsage",
"getArrayClassForType",
"Float32Array",
"Uint32Array",
"opt_usage",
"usage",
"WebGLArrayBuffer",
"arrayClass",
"gl_",
"webGlContext",
"gl",
"scaleRatio_",
"scaleRatio",
"renderTargetTexture_",
"createTexture",
"renderTargetTextureSize_",
"frameBuffer_",
"createFramebuffer",
"vertexShader",
"createShader",
"VERTEX_SHADER",
"shaderSource",
"compileShader",
"fragmentShader",
"FRAGMENT_SHADER",
"renderTargetProgram_",
"createProgram",
"attachShader",
"linkProgram",
"renderTargetVerticesBuffer_",
"createBuffer",
"bindBuffer",
"bufferData",
"renderTargetAttribLocation_",
"getAttribLocation",
"renderTargetUniformLocation_",
"getUniformLocation",
"renderTargetOpacityLocation_",
"renderTargetTextureLocation_",
"uniforms_",
"uniforms",
"location",
"WebGLPostProcessingPass",
"getGL",
"textureSize",
"drawingBufferWidth",
"drawingBufferHeight",
"bindFramebuffer",
"FRAMEBUFFER",
"getFrameBuffer",
"viewport",
"internalFormat",
"RGBA",
"UNSIGNED_BYTE",
"bindTexture",
"TEXTURE_2D",
"texImage2D",
"texParameteri",
"TEXTURE_MIN_FILTER",
"LINEAR",
"TEXTURE_WRAP_S",
"CLAMP_TO_EDGE",
"TEXTURE_WRAP_T",
"framebufferTexture2D",
"COLOR_ATTACHMENT0",
"nextPass",
"preCompose",
"postCompose",
"activeTexture",
"TEXTURE0",
"canvasId",
"getContextAttributes",
"clearColor",
"COLOR_BUFFER_BIT",
"enable",
"BLEND",
"blendFunc",
"ONE",
"ONE_MINUS_SRC_ALPHA",
"useProgram",
"enableVertexAttribArray",
"vertexAttribPointer",
"uniform2f",
"uniform1i",
"uniform1f",
"applyUniforms",
"drawArrays",
"TRIANGLES",
"textureSlot",
"uniform",
"HTMLCanvasElement",
"ImageData",
"texture",
"uniform3f",
"uniform4f",
"fromTransform",
"mat4",
"DefaultUniform",
"AttributeType",
"UNSIGNED_SHORT",
"UNSIGNED_INT",
"canvasCache",
"getSharedCanvasCacheKey",
"uniqueCanvasCacheKeyCount",
"computeAttributesStride",
"attr",
"getByteSizeFromType",
"BYTES_PER_ELEMENT",
"Uint16Array",
"boundHandleWebGLContextLost_",
"handleWebGLContextLost",
"boundHandleWebGLContextRestored_",
"handleWebGLContextRestored",
"canvasCacheKey_",
"canvasCacheKey",
"cacheItem",
"users",
"getCanvas",
"bufferCache_",
"extensionCache_",
"currentProgram_",
"ContextEventType",
"offsetRotateMatrix_",
"offsetScaleMatrix_",
"tmpMat4_",
"uniformLocations_",
"attribLocations_",
"setUniforms",
"postProcessPasses_",
"postProcesses",
"shaderCompileErrors_",
"WebGLHelper",
"name_1",
"getExtension",
"bufferKey",
"bufferCache",
"webGlBuffer",
"getUsage",
"bufferCacheEntry",
"isContextLost",
"deleteBuffer",
"loseContext",
"releaseCanvas",
"opt_disableAlphaBlend",
"init",
"ZERO",
"applyFrameState",
"renderTarget",
"getFramebuffer",
"getTexture",
"elementType",
"numItems",
"offsetInBytes",
"drawElements",
"offsetScaleMatrix",
"resetTransform",
"scaleTransform",
"offsetRotateMatrix",
"rotateTransform",
"setUniformMatrixValue",
"setUniformFloatValue",
"HTMLImageElement",
"prevValue",
"program",
"shader",
"fragmentShaderSource",
"vertexShaderSource",
"getShaderParameter",
"COMPILE_STATUS",
"getShaderInfoLog",
"deleteShader",
"getProgramParameter",
"LINK_STATUS",
"uniform4fv",
"uniformMatrix4fv",
"attribName",
"getAttributeLocation",
"enableAttributeArray_",
"opt_data",
"opt_texture",
"texture_",
"PaletteTexture",
"NEAREST",
"TEXTURE_MAG_FILTER",
"tmpArray4",
"helper",
"helper_",
"framebuffer_",
"size_",
"dataCacheDirty_",
"updateSize_",
"WebGLRenderTarget",
"readPixels",
"readAll",
"ENABLE_RASTER_REPROJECTION",
"maxSourceExtent",
"errorThreshold",
"opt_destinationResolution",
"sourceProj_",
"targetProj_",
"transformInvCache",
"transformInv",
"transformInv_",
"maxSourceExtent_",
"errorThresholdSquared_",
"triangles_",
"wrapsXInSource_",
"canWrapXInSource_",
"sourceWorldWidth_",
"targetWorldWidth_",
"destinationTopLeft",
"destinationTopRight",
"destinationBottomRight",
"destinationBottomLeft",
"sourceTopLeft",
"sourceTopRight",
"sourceBottomRight",
"sourceBottomLeft",
"maxSubdivision",
"addQuad_",
"leftBound_1",
"newTriangle",
"Triangulation",
"aSrc",
"bSrc",
"cSrc",
"dSrc",
"sourceQuadExtent",
"sourceCoverageX",
"sourceWorldWidth",
"wrapsX",
"needsSubdivision",
"isNotFinite",
"centerSrc",
"bc",
"bcSrc",
"da",
"daSrc",
"ab",
"abSrc",
"cd",
"cdSrc",
"addTriangle_",
"sourceTileGrid",
"targetTileGrid",
"getTileFunction",
"opt_errorThreshold",
"renderEdges_",
"gutter_",
"sourceTileGrid_",
"targetTileGrid_",
"wrappedTileCoord_",
"sourceTiles_",
"sourcesListenerKeys_",
"sourceZ_",
"maxTargetExtent",
"limitedTargetExtent",
"sourceProjExtent",
"errorThresholdInPixels",
"triangulation_",
"calculateSourceExtent",
"sourceRange",
"srcX",
"srcY",
"ReprojTile",
"renderReprojected",
"leftToLoad_1",
"sourceListenKey_1",
"unlistenSources_",
"reproject_",
"bindAndConfigure",
"resampleFilter",
"uploadDataTexture",
"bandCount",
"textureType",
"canInterpolate",
"bytesPerRow",
"byteLength",
"unpackAlignment",
"LUMINANCE",
"LUMINANCE_ALPHA",
"RGB",
"oldUnpackAlignment",
"getParameter",
"UNPACK_ALIGNMENT",
"pixelStorei",
"pixelContext",
"textures",
"grid",
"tilePixelRatio_",
"tilePixelRatio",
"fromArray",
"flushBufferData",
"setTile",
"TileTexture",
"uploadTile_",
"uploadImageTexture",
"pixelSize",
"isFloat",
"pixelCount",
"DataType",
"bytesPerElement",
"textureCount",
"textureDataArrays",
"textureIndex",
"dataIndex",
"rowOffset",
"colCount",
"rowIndex",
"colIndex",
"dataValue",
"pixelIndex",
"bandIndex",
"textureData",
"deleteTexture",
"col",
"row",
"data_1",
"pixelsPerRow",
"DataView",
"bytesPerPixel",
"offset_1",
"clearRect",
"boundHandleImageChange_",
"handleImageChange_",
"layer_",
"declutterExecutorGroup",
"LayerRenderer",
"tiles",
"loadedTileCallback",
"forEachLoadedTile",
"renderIfReadyAndVisible",
"getLayer",
"WebGLWorkerMessageType",
"inversePixelTransform_",
"pixelContext_",
"postProcesses_",
"removeHelper",
"dispatchPreComposeEvent",
"dispatchPostComposeEvent",
"WebGLLayerRenderer",
"event_2",
"getRenderSource",
"incrementGroup",
"groupNumber",
"layerClassName",
"getClassName",
"canvasCacheKeyMatches",
"afterHelperCreated",
"prepareFrameInternal",
"event_3",
"dispatchRenderEvent_",
"renderPixel",
"layerExtent",
"pixelCanvas",
"tmpArray_",
"bufferPositions_",
"vertexPosition",
"indexPosition",
"writePointVertex",
"colorEncodeId",
"radix",
"divide",
"colorDecodeId",
"mult",
"Uniforms",
"TILE_TEXTURE_ARRAY",
"TILE_TRANSFORM",
"TRANSITION_ALPHA",
"DEPTH",
"TEXTURE_PIXEL_WIDTH",
"TEXTURE_PIXEL_HEIGHT",
"TEXTURE_RESOLUTION",
"TEXTURE_ORIGIN_X",
"TEXTURE_ORIGIN_Y",
"RENDER_EXTENT",
"ZOOM",
"Attributes",
"TEXTURE_COORD",
"attributeDescriptions",
"empty",
"depthForZ",
"addTileTextureToLookup",
"tileTexturesByZ",
"tileTexture",
"getRenderExtent",
"gridExtent",
"getTileGridForProjection",
"getCacheKey",
"getTileCoordKey",
"tileLayer",
"renderComplete",
"tileTransform_",
"tempMat4_",
"tempTileRange_",
"tempTileCoord_",
"createTileCoord",
"tempSize_",
"program_",
"vertexShader_",
"fragmentShader_",
"indices_",
"tileTextureCache_",
"paletteTextures_",
"paletteTextures",
"WebGLTileLayerRenderer",
"getProgram",
"tileState",
"useInterimTilesOnError",
"getUseInterimTilesOnError",
"State",
"initialZ",
"tileSource",
"getTilePixelRatio",
"getGutterForProjection",
"tileTextureCache",
"minZ",
"getPreload",
"cacheKey",
"containsKey",
"getTile",
"isDrawableTile_",
"getInterimTile",
"tileQueueKey",
"preRender",
"zDirection",
"targetZ",
"enqueueTiles",
"alphaLookup",
"uid",
"blend",
"tileTextures",
"getAlpha",
"endTransition",
"tileCoordKey",
"findAltTiles_",
"parentZ",
"prepareDraw",
"zs",
"tileZ",
"tileOrigin",
"centerI",
"centerJ",
"tileScale",
"depth",
"tileTextures_1",
"tileCenterI",
"tileCenterJ",
"mat4FromTransform",
"enableAttributes",
"textureProperty",
"uniformName",
"paletteIndex",
"paletteTexture",
"setUniformFloatVec4",
"finalizeDraw",
"expireCache",
"postRender",
"getPixelData",
"altZ",
"getTileRangeForTileCoordAndZ",
"covered",
"deleteProgram",
"ValueTypes",
"Operators",
"getValueType",
"stringify",
"valueArr",
"operator",
"getReturnType",
"isTypeUnique",
"valueType",
"numberToGlsl",
"arrayToGlsl",
"colorToGlsl",
"getStringNumberEquivalent",
"string",
"stringLiteralsMap",
"stringToGlsl",
"expressionToGlsl",
"typeHint",
"toGlsl",
"assertNumber",
"assertNumbers",
"assertString",
"assertBoolean",
"assertArgsCount",
"assertArgsMinCount",
"assertArgsMaxCount",
"assertArgsEven",
"assertUniqueInferredType",
"types",
"uniformNameForVariable",
"variableName",
"inFragmentShader",
"variables",
"PALETTE_TEXTURE_ARRAY",
"colors",
"numColors",
"palette",
"candidate",
"length_1",
"paletteName",
"GET_BAND_VALUE_FUNC",
"getEqualOperator",
"getDecisionOperator",
"band",
"functions",
"ifBlocks",
"colorIndex",
"textureName",
"bandExpression",
"xOffsetExpression",
"yOffsetExpression",
"parsedArgs",
"opt_typeHint",
"interpolation",
"outputType",
"exponent",
"stop1",
"output1",
"stop2",
"output2",
"fallback",
"assertArgsOdd",
"varyings",
"sizeExpression",
"rotationExpression",
"offsetExpression",
"colorExpression",
"texCoordExpression",
"discardExpression",
"rotateWithView",
"ShaderBuilder",
"expression",
"forHitDetection",
"offsetMatrix",
"attribute",
"varying",
"hitDetectionBypass",
"parseLiteralStyle",
"symbStyle",
"symbol",
"texCoord",
"textureCoord",
"vertContext",
"parsedSize",
"parsedOffset",
"parsedTexCoord",
"parsedRotation",
"fragContext",
"parsedColor",
"parsedOpacity",
"opacityFilter",
"visibleSize",
"symbolType",
"st",
"builder",
"setSizeExpression",
"setRotationExpression",
"setSymbolOffsetExpression",
"setTextureCoordinateExpression",
"setSymbolRotateWithView",
"setColorExpression",
"parsedFilter",
"setFragmentDiscardExpression",
"varName",
"addUniform",
"getColorExpression",
"attrName",
"addVarying",
"addAttribute",
"props",
"matrixIds_",
"matrixIds",
"WMTSTileGrid",
"createFromCapabilitiesMatrixSet",
"matrixSet",
"opt_matrixLimits",
"matrixLimits",
"switchOriginXY",
"getAxisOrientation",
"elt",
"elt_ml",
"tileWidth",
"tileHeight",
"opacity_",
"rotateWithView_",
"scale_",
"scaleArray_",
"displacement_",
"displacement",
"ImageStyle",
"getScale",
"getDisplacement",
"hitDetectionCanvas_",
"fill_",
"points",
"radius_",
"radius1",
"radius2_",
"radius2",
"stroke_",
"renderOptions_",
"RegularShape",
"getPoints",
"getRadius2",
"setOpacity",
"createHitDetectionCanvas_",
"renderOptions",
"draw_",
"strokeWidth",
"r1",
"r2",
"miterRatio",
"bevelAdd",
"aa",
"dd",
"innerMiterRatio",
"innerLength",
"calculateLineJoinSize_",
"maxRadius",
"createRenderOptions",
"createPath_",
"drawHitDetectionCanvas_",
"angle0",
"radiusC",
"CircleStyle",
"color_",
"Fill",
"taintedTestContext",
"hitDetectionImage_",
"imageState_",
"tainted_",
"IconImage",
"dispatchChangeEvent_",
"replaceColor_",
"isTainted_",
"imgData",
"putImageData",
"normalizedAnchor_",
"anchorOrigin_",
"anchorOrigin",
"IconOrigin",
"anchorXUnits_",
"anchorXUnits",
"IconAnchorUnits",
"anchorYUnits_",
"anchorYUnits",
"imgSize_",
"imgSize",
"iconImage_",
"getIconImage",
"offset_",
"offsetOrigin_",
"offsetOrigin",
"Icon",
"getSrc",
"getPixelRatio",
"getHitDetectionImage",
"iconImageSize",
"lineCap_",
"lineDash_",
"lineDashOffset_",
"lineJoin_",
"miterLimit_",
"width_",
"Stroke",
"geometryFunction_",
"defaultGeometryFunction",
"hitDetectionRenderer_",
"zIndex_",
"Style",
"toFunction",
"styleFunction",
"defaultStyles",
"createDefaultStyle",
"createEditingStyle",
"styles",
"white",
"blue",
"font_",
"textAlign_",
"textBaseline_",
"maxAngle_",
"maxAngle",
"placement_",
"placement",
"TextPlacement",
"overflow_",
"offsetX_",
"offsetY_",
"backgroundFill_",
"backgroundFill",
"backgroundStroke_",
"backgroundStroke",
"Text",
"getPlacement",
"getMaxAngle",
"getOverflow",
"getBackgroundFill",
"getBackgroundStroke",
"getPadding",
"opt_circular",
"first_",
"last_",
"head_",
"circular_",
"length_",
"LinkedList",
"opt_maxEntries",
"rbush_",
"RBush_",
"items_",
"RBush",
"extents",
"items",
"bbox",
"forEach_",
"getAll",
"getInExtent",
"rbush",
"adaptAttributions",
"attributionLike",
"attributions_",
"attributionsCollapsible_",
"attributionsCollapsible",
"wrapX_",
"interpolate_",
"viewResolver",
"viewRejector",
"viewPromise_",
"Source",
"opaque_",
"opaque",
"tileCache",
"tmpSize",
"tileOptions",
"TileSource",
"getTileCacheForProjection",
"getResolutions",
"scaleSize",
"refresh",
"tileCount",
"generateTileUrlFunction_",
"tileUrlFunction",
"UrlTile",
"setUrls",
"setUrl",
"tileLoadingKeys_",
"TileEventType",
"TileSourceEvent",
"pruneExceptNewestZ",
"setKey",
"setTileUrlFunction",
"defaultTileLoadFunction",
"imageTile",
"imageSmoothing",
"tileClass",
"tileCacheForProjection",
"tileGridForProjection",
"reprojectionErrorThreshold_",
"reprojectionErrorThreshold",
"renderReprojectionEdges_",
"TileImage",
"usedTileCache",
"getGutter",
"getInterpolate",
"getOpaque",
"thisProj",
"projKey",
"getTileCoordForTileUrlFunction",
"tileUrl",
"newTile",
"getTileInternal",
"refreshInterimChain",
"createTile_",
"tilegrid",
"proj",
"quadKey",
"digits",
"mask",
"hidpi",
"hidpi_",
"culture_",
"culture",
"maxZoom_",
"apiKey_",
"imagerySet_",
"imagerySet",
"requestJSONP",
"handleImageryMetadataResponse",
"BingMaps",
"statusCode",
"statusDescription",
"authenticationResultCode",
"resourceSets",
"resources",
"resource",
"zoomMax",
"imageWidth",
"imageHeight",
"zoomMin",
"imageUrlSubdomains",
"subdomain",
"quadKeyTileCoord",
"imageUrl",
"imageryProviders",
"transform_1",
"setAttributions",
"getTileGrid",
"imageryProvider",
"intersecting",
"coverageAreas",
"coverageArea",
"account_",
"account",
"mapId_",
"config_",
"config",
"templateCache_",
"initializeMap_",
"CartoDB",
"paramHash",
"applyTemplate_",
"mapUrl",
"handleInitResponse_",
"handleInitError_",
"tilesUrl",
"cdn_url",
"https",
"layergroupid",
"XYZ",
"opt_feature",
"opt_features",
"overlaps_",
"overlaps",
"strategy_",
"strategy",
"allStrategy",
"useSpatialIndex",
"featuresRtree_",
"loadedExtentsRtree_",
"loadingExtentsCount_",
"nullGeometryFeatures_",
"idIndex_",
"uidIndex_",
"featureChangeKeys_",
"featuresCollection_",
"addFeaturesInternal",
"bindFeaturesCollection_",
"VectorSource",
"addFeatureInternal",
"featureKey",
"addToIndex_",
"setupChangeEvents_",
"VectorSourceEvent",
"VectorEventType",
"handleFeatureChange_",
"valid",
"newFeatures",
"geometryFeatures",
"length_2",
"length_3",
"modifyingCollection",
"addFeature",
"removeFeature",
"opt_fast",
"featureId",
"removeAndIgnoreReturn",
"removeFeatureInternal",
"clearEvent",
"forEachFeatureInExtent",
"intersectsCoordinate",
"forEachInExtent",
"intersectsExtent",
"forEachFeatureAtCoordinateDirect",
"opt_filter",
"closestFeature",
"previousMinSquaredDistance",
"minDistance",
"sid",
"removeFromIdIndex_",
"loadedExtentsRtree",
"extentsToLoad",
"extentToLoad",
"this_1",
"featureChangeKeys",
"removed",
"setLoader",
"interpolationRatio",
"geometryFunction",
"createCustomCluster_",
"createCluster",
"boundRefresh_",
"updateDistance",
"Cluster",
"loadFeatures",
"cluster",
"mapDistance",
"clustered",
"getCoordinates",
"neighbors",
"getFeaturesInExtent",
"neighbor",
"geometry_1",
"searchCenter",
"DataTileSource",
"sourceLoader",
"floatView",
"uint32View",
"baseTable",
"shiftTable",
"mantissaTable",
"exponentTable",
"offsetTable",
"convertToNumber",
"float16bits",
"TypedArrayPrototype",
"Reflect",
"getTypedArrayPrototypeSybolToStringTag",
"getOwnPropertyDescriptor",
"isTypedArray",
"isDataView",
"getFloat16",
"dataView",
"byteOffset",
"opts",
"getUint16",
"fromWhiteIsZero",
"raster",
"rgbRaster",
"fromBlackIsZero",
"fromPalette",
"colorMap",
"greenOffset",
"blueOffset",
"mapIndex",
"fromCMYK",
"cmykRaster",
"fromYCbCr",
"yCbCrRaster",
"Uint8ClampedArray",
"cb",
"cr",
"fromCIELab",
"cieLabRaster",
"registry",
"addDecoder",
"cases",
"importFn",
"getDecoder",
"fileDirectory",
"Compression",
"Decoder",
"copyNewSize",
"samplesPerPixel",
"resampleNearest",
"valueArrays",
"inWidth",
"inHeight",
"outWidth",
"outHeight",
"relX",
"relY",
"newArray",
"cy",
"cx",
"resampleBilinear",
"rawY",
"yl",
"yh",
"rawX",
"tx",
"xl",
"xh",
"ll",
"hl",
"lh",
"hh",
"resample",
"resampleNearestInterleaved",
"valueArray",
"samples",
"resampleBilinearInterleaved",
"resampleInterleaved",
"sum",
"arrayForType",
"bitsPerSample",
"Int8Array",
"Int16Array",
"Int32Array",
"Float64Array",
"needsNormalization",
"normalizeArray",
"inBuffer",
"planarConfiguration",
"samplesToTransfer",
"outArray",
"bitMask",
"repeat",
"bitsPerLine",
"lineBitOffset",
"pixelBitOffset",
"bitOffset",
"outIndex",
"innerBitOffset",
"getUint8",
"raw",
"getUint32",
"default",
"GeoTIFFImage",
"geoKeys",
"littleEndian",
"isTiled",
"StripOffsets",
"PlanarConfiguration",
"ImageWidth",
"ImageLength",
"SamplesPerPixel",
"TileWidth",
"TileLength",
"RowsPerStrip",
"getTileWidth",
"getTileHeight",
"bytes",
"BitsPerSample",
"getSampleByteSize",
"RangeError",
"sampleIndex",
"SampleFormat",
"getInt8",
"getInt16",
"getInt32",
"getFloat32",
"getFloat64",
"getSampleFormat",
"getBitsPerSample",
"sample",
"poolOrDecoder",
"signal",
"numTilesPerRow",
"numTilesPerCol",
"TileOffsets",
"byteCount",
"TileByteCounts",
"StripByteCounts",
"fetch",
"request",
"sampleFormat",
"getSamplesPerPixel",
"getBlockHeight",
"imageWindow",
"interleave",
"resampleMethod",
"minXTile",
"maxXTile",
"minYTile",
"maxYTile",
"windowWidth",
"getBytesPerPixel",
"srcSampleOffsets",
"sampleReaders",
"getReaderForSample",
"promises",
"yTile",
"xTile",
"si",
"promise",
"getTileOrStrip",
"blockHeight",
"firstLine",
"firstCol",
"lastLine",
"lastCol",
"reader",
"ymax",
"xmax",
"pixelOffset",
"windowCoordinate",
"resampled",
"wnd",
"pool",
"fillValue",
"imageWindowWidth",
"imageWindowHeight",
"numPixels",
"getArrayForSample",
"_readRaster",
"enableAlpha",
"pi",
"PhotometricInterpretation",
"photometricInterpretations",
"ExtraSamples",
"ExtraSamplesValues",
"readRasters",
"subOptions",
"ColorMap",
"red",
"green",
"ModelTiepoint",
"tiePoints",
"metadata",
"GDAL_METADATA",
"findTagsByName",
"getAttribute",
"GDAL_NODATA",
"modelTransformation",
"ModelTransformation",
"referenceImage",
"modelPixelScale",
"ModelPixelScale",
"refResX",
"refResY",
"refResZ",
"GTRasterTypeGeoKey",
"DataView64",
"arrayBuffer",
"_dataView",
"combined",
"isSafeInteger",
"isNegative",
"carrying",
"byte",
"DataSlice",
"sliceOffset",
"bigTiff",
"_sliceOffset",
"_littleEndian",
"_bigTiff",
"sliceTop",
"readUint32",
"readUint64",
"CRLFCRLF",
"itemsToObject",
"fromEntries",
"parseHeaders",
"line",
"kv",
"parseContentRange",
"rawContentRange",
"total",
"parseByteRanges",
"responseArrayBuffer",
"boundary",
"decoder",
"startBoundary",
"endBoundary",
"innerText",
"endOfHeaders",
"headers",
"startOfData",
"fileSize",
"BaseSource",
"slices",
"fetchSlice",
"wait",
"milliseconds",
"zip",
"A",
"B",
"AbortError",
"captureStackTrace",
"AggregateError",
"errors",
"Block",
"BlockGroup",
"blockIds",
"BlockedSource",
"blockSize",
"blockCache",
"blockRequests",
"blockIdsToFetch",
"Set",
"cachedBlocks",
"missingBlockIds",
"firstBlockOffset",
"current",
"blockId",
"fetchBlocks",
"block",
"cachedBlock",
"allSettled",
"results",
"retriedBlockRequests",
"rejected",
"reason",
"aborted",
"requiredBlocks",
"readSliceData",
"groups",
"groupBlocks",
"groupRequests",
"groupIndex",
"blockRequest",
"blockOffset",
"sortedBlockIds",
"lastBlockId",
"blocks",
"blockIdLow",
"blockIdHigh",
"sliceData",
"sliceView",
"blockInnerOffset",
"rangeInnerOffset",
"usedBlockLength",
"blockView",
"BaseResponse",
"headerName",
"BaseClient",
"credentials",
"FetchResponse",
"FetchClient",
"XHRResponse",
"getResponseHeader",
"XHRClient",
"entries",
"onabort",
"abort",
"constructRequest",
"HttpResponse",
"dataPromise",
"HttpClient",
"parsedUrl",
"urlMod",
"httpApi",
"protocol",
"http",
"resolveData",
"chunk",
"Buffer",
"RemoteSource",
"maxRanges",
"allowFullFile",
"_fileSize",
"fetchSlices",
"Range",
"ok",
"rawContentType",
"getHeader",
"param",
"byteRanges",
"others",
"maybeWrapInBlockedSource",
"makeFetchSource",
"blockOptions",
"makeXHRSource",
"makeHttpSource",
"makeRemoteSource",
"forceXHR",
"clientOptions",
"getFieldTypeLength",
"fieldType",
"fieldTypes",
"parseGeoKeyDirectory",
"rawGeoKeyDirectory",
"GeoKeyDirectory",
"geoKeyDirectory",
"geoKeyNames",
"fieldTagNames",
"dataSlice",
"readMethod",
"fieldTypeLength",
"readUint8",
"readInt8",
"readUint16",
"readInt16",
"readInt64",
"readFloat32",
"readFloat64",
"ImageFileDirectory",
"nextIFDByteOffset",
"GeoTIFFImageIndexError",
"GeoTIFFBase",
"resX",
"resY",
"firstImage",
"usedImage",
"getImageCount",
"imageCount",
"imgBBox",
"getBoundingBox",
"oX",
"oY",
"rX",
"rY",
"usedBBox",
"allImages",
"subfileType",
"SubfileType",
"newSubfileType",
"NewSubfileType",
"imgResX",
"imgResY",
"imageResX",
"imageResY",
"GeoTIFF",
"firstIFDOffset",
"ifdRequests",
"ghostValues",
"fallbackSize",
"entrySize",
"offsetSize",
"getSlice",
"numDirEntries",
"byteSize",
"covers",
"entryCount",
"fieldTag",
"typeCount",
"fieldValues",
"valueOffset",
"actualOffset",
"readOffset",
"fieldDataSlice",
"arrayFields",
"parseFileDirectoryAt",
"requestIFD",
"previousIfd",
"ifd",
"hasNext",
"heuristicAreaSize",
"detectionString",
"valuesString",
"metadataSize",
"fullString",
"headerData",
"BOM",
"magicNumber",
"getUint64",
"MultiGeoTIFF",
"mainFile",
"overviewFiles",
"imageFiles",
"fileDirectoriesPerFile",
"fileDirectoriesPerFileParsing",
"requests",
"file",
"parseFileDirectoriesPerFile",
"visited",
"relativeIndex",
"imageFile",
"imageCounts",
"ifds",
"fromSource",
"mainUrl",
"overviewUrls",
"workerPool",
"defaultPoolSize",
"hardwareConcurrency",
"Pool",
"createWorker",
"workers",
"_awaitingDecoder",
"messageId",
"worker",
"idle",
"random",
"onMessage",
"decoded",
"postMessage",
"terminate",
"STATISTICS_MAXIMUM",
"STATISTICS_MINIMUM",
"_",
"ProjectedCSTypeGeoKey",
"getCachedProjection",
"unitsFromCode",
"ProjLinearUnitsGeoKey",
"GeographicTypeGeoKey",
"GeogAngularUnitsGeoKey",
"getImagesForTIFF",
"tiff",
"getImagesForSource",
"overviews",
"tiffFromUrls",
"tiffFromUrl",
"assertEqual",
"expected",
"got",
"rejector",
"getMinForDataType",
"getMaxForDataType",
"sourceInfo_",
"numSources",
"sourceOptions_",
"sourceOptions",
"sourceImagery_",
"resolutionFactors_",
"samplesPerPixel_",
"nodataValues_",
"metadata_",
"normalize_",
"addAlpha_",
"readMethod_",
"convertToRGB",
"configure_",
"GeoTIFFSource",
"nodataValues",
"sourceCount",
"sourceIndex",
"images",
"sourceOrigin",
"sourceTileSizes",
"sourceResolutions",
"imageIndex",
"nodataValue",
"getGDALNoData",
"getGDALMetadata",
"wantedSamples",
"bands",
"level",
"resolutionFactor_1",
"scaledSourceResolutions",
"sourceImagery",
"firstSource",
"nodata",
"additionalBands",
"loadTile_",
"addAlpha",
"sourceInfo",
"resolutionFactor",
"this_2",
"pixelBounds",
"bandNumber",
"dataLength",
"sourceSamples",
"transparent",
"gain",
"bias",
"stats",
"sourceValue",
"TierSizeCalculation",
"zoomifyImage_",
"CustomTile",
"tierSizeCalculation",
"tierSizeInTiles",
"tileSizeForTierSizeCalculation",
"tileCountUpToTier",
"tileIndex",
"localContext_1",
"ZoomifyTileClass",
"testTileUrl",
"getTileCoordForCoordAndResolution",
"Versions",
"IIIF_PROFILE_VALUES",
"supports",
"formats",
"qualities",
"COMPLIANCE_VERSION1",
"COMPLIANCE_VERSION2",
"COMPLIANCE_VERSION3",
"versionFunctions",
"iiifInfo",
"levelProfile",
"getComplianceLevelSupportedFeatures",
"imageInfo",
"scale_factors",
"tile_width",
"tile_height",
"additionalProfile",
"profile",
"profileSupports",
"profileFormats",
"profileQualities",
"scaleFactors",
"extraFormats",
"__spreadArray",
"preferredFormat",
"preferredFormats",
"extraFeatures",
"extraQualities",
"setImageInfo",
"IIIFInfo",
"getComplianceLevelEntryFromProfile",
"identifier",
"version",
"getImageApiVersion",
"complianceLevel",
"getComplianceLevelFromProfile",
"opt_preferredOptions",
"imageOptions",
"quality",
"formatPercentage",
"percentage",
"toLocaleString",
"maximumFractionDigits",
"baseUrl",
"supportsListedSizes",
"supportsListedTiles",
"isInteger",
"supportsArbitraryTiling",
"maxScaleFactor",
"ignoredSizesIndex",
"IiifTileClass",
"regionParam",
"sizeParam",
"tileX",
"tileY",
"regionX",
"regionY",
"regionW",
"regionH",
"sizeW",
"sizeH",
"regionWidth",
"regionHeight",
"getImageFunction",
"sourceImage",
"sourcePixelRatio",
"targetExtent_",
"sourceImage_",
"sourcePixelRatio_",
"sourceListenerKey_",
"ReprojImage",
"unlistenSource_",
"ImageSourceEventType",
"defaultImageLoadFunction",
"reprojectedImage_",
"reprojectedRevision_",
"ImageSource",
"getImageInternal",
"ImageSourceEvent",
"params_",
"imageSize_",
"renderedRevision_",
"ratio_",
"ImageArcGISRest",
"findNearestResolution",
"halfWidth",
"halfHeight",
"imageResolution",
"getRequestUrl_",
"handleImageChange",
"srid",
"modifiedUrl",
"canvasFunction_",
"canvasFunction",
"ImageCanvasSource",
"canvasElement",
"displayDpi_",
"displayDpi",
"useOverlay_",
"useOverlay",
"ImageMapGuide",
"getUrl",
"dpi",
"mcsW",
"mcsH",
"devW",
"devH",
"mpp",
"baseParams",
"imageExtent_",
"imageExtent",
"Static",
"extentWidth",
"extentHeight",
"targetWidth",
"targetHeight",
"setImage",
"DEFAULT_WMS_VERSION",
"GETFEATUREINFO_IMAGE_SIZE",
"v13_",
"updateV13_",
"serverType_",
"serverType",
"ImageWMS",
"projectionObj",
"sourceProjectionObj",
"LAYERS",
"mpu",
"viewExtent",
"requestExtent",
"WMSServerType",
"knownMapMediaTypes",
"knownVectorMediaTypes",
"getMapTileUrlTemplate",
"links",
"mediaType",
"tileUrlTemplate",
"fallbackUrlTemplate",
"rel",
"getVectorTileUrlTemplate",
"supportedMediaTypes",
"hrefLookup",
"supportedMediaType",
"parseTileMatrixSet",
"tileMatrixSet",
"tileMatrixSetLimits",
"crs",
"backwards",
"matrices",
"tileMatrices",
"matrixLookup",
"matrix",
"limitLookup",
"limit",
"tileMatrix",
"origin_1",
"pointOfOrigin",
"cellSize",
"matrixWidth",
"matrixHeight",
"tileMapWidth",
"minTileCol",
"maxTileCol",
"tileMapHeight",
"cornerOfOrigin",
"minTileRow",
"maxTileRow",
"intersectExtents",
"urlTemplate",
"urlFunction",
"upsideDown",
"localContext",
"tileCol",
"tileRow",
"getTileSetInfo",
"tileSet",
"dataType",
"tileMatrixSetLink",
"tileMatrixSetDefinition",
"parseTileSetMetadata",
"handleTileSetInfo_",
"handleError_",
"OGCMapTile",
"tileSetInfo",
"defaultLoadFunction",
"sourceTileCache",
"tileGrids_",
"sourceTile",
"tileFeatures",
"usedSourceTiles",
"bufferExtent",
"sourceTileGrid_1",
"sourceZ",
"forEachTileCoord",
"sourceTileCoord",
"sourceTileState",
"listenChange_1",
"sourceTileKey",
"coordKey",
"tileExtent",
"updateCacheSize",
"getFormat",
"onLoad",
"onError",
"OGCVectorTile",
"ATTRIBUTION",
"tempTransform",
"pixelTransform",
"containerReused",
"CanvasLayerRenderer",
"getBackground",
"opt_backgroundColor",
"backgroundColor",
"transformOrigin",
"topLeft",
"topRight",
"bottomRight",
"bottomLeft",
"inverted",
"imageLayer",
"CanvasImageLayerRenderer",
"viewResolution",
"imageSource",
"renderedExtent",
"loadImage",
"imageMapWidth",
"imageMapHeight",
"imagePixelRatio",
"viewCenter",
"size_1",
"canvasTransform",
"toTransformString",
"useContainer",
"clipped",
"clipUnrotated",
"dw",
"dh",
"previousAlpha",
"ImageLayer",
"BaseImageLayer",
"preload",
"setPreload",
"setUseInterimTilesOnError",
"BaseTileLayer",
"TileProperty",
"extentChanged",
"renderedExtent_",
"renderedPixelRatio",
"renderedProjection",
"renderedTiles",
"newTiles_",
"tmpExtent",
"tmpTileRange_",
"CanvasTileLayerRenderer",
"isDrawableTile",
"sourceRevision",
"canvasExtent",
"tilesToDrawByZ",
"findLoadedTiles",
"createLoadedTileFinder",
"tmpTileRange",
"inTransition",
"childTileRange",
"getTileCoordChildTileRange",
"forEachTileCoordParentTileRange",
"canvasScale",
"clips",
"clipZs",
"currentClip",
"currentZ",
"currentTilePixelSize",
"getTilePixelSize",
"currentScale",
"dx_1",
"dy_1",
"originTileCoord",
"originTileExtent",
"tileGutter",
"tilesToDraw",
"xIndex",
"nextX",
"yIndex",
"nextY",
"contextSaved",
"i_1",
"drawTileImage",
"updateUsedTiles",
"manageTilePyramid",
"scheduleExpireCache",
"getTileImage",
"alphaChanged",
"postRenderFunction",
"opt_tileCallback",
"useTile",
"TileLayer",
"hasImageData",
"newImageData",
"imageData",
"createImageData",
"createMinion",
"operation",
"workerHasImageData",
"newWorkerImageData",
"buffers",
"meta",
"imageOps",
"numBuffers",
"numBytes",
"arrays",
"pixels",
"lines",
"lib",
"Worker",
"Blob",
"createObjectURL",
"threads",
"_imageOps",
"_onWorkerMessage",
"minion",
"terminated",
"createFauxWorker",
"_workers",
"_queue",
"_maxQueueLength",
"queue",
"_running",
"_dataLookup",
"_job",
"Processor",
"inputs",
"_enqueue",
"_dispatch",
"job",
"_resolveJob",
"RasterEventType",
"RasterOperationType",
"processor_",
"operationType_",
"operationType",
"threads_",
"layers_",
"createLayer",
"createLayers",
"requestedFrameState_",
"renderedImageCanvas_",
"iMax",
"sourceOrLayer",
"sourceAttribution",
"setOperation",
"RasterSource",
"opt_lib",
"allSourcesReady_",
"updateFrameState_",
"processSources_",
"imageDatas",
"RasterSourceEvent",
"process",
"onWorkerComplete_",
"sharedContext",
"layerOrSource",
"ATTRIBUTIONS",
"OSM_ATTRIBUTION",
"LayerConfig",
"ProviderConfig",
"provider",
"providerConfig",
"layerConfig",
"getKeyForParams_",
"TileArcGISRest",
"getTileCoord",
"strokeRect",
"tileJSON_",
"handleTileJSONResponse",
"handleTileJSONError",
"onXHRLoad_",
"onXHRError_",
"tileJSON",
"TileJSON",
"epsg4326Projection",
"attributionExtent_1",
"TileWMS",
"bufferSize",
"preemptive",
"preemptive_",
"grid_",
"keys_",
"jsonp_",
"xRelative",
"yRelative",
"opt_request",
"loadInternal_",
"json",
"tileUrlFunction_",
"template_",
"UTFGrid",
"forDataAtCoordinate",
"grids",
"requestEncoding",
"WMTSRequestEncoding",
"version_",
"dimensions_",
"dimensions",
"matrixSet_",
"requestEncoding_",
"getKeyForDimensions_",
"createFromWMTSTemplate",
"WMTS",
"getMatrixId",
"renderBuffer",
"updateWhileAnimating",
"updateWhileInteracting",
"declutter_",
"declutter",
"renderBuffer_",
"updateWhileAnimating_",
"updateWhileInteracting_",
"BaseVectorLayer",
"renderOrder",
"toStyleFunction",
"projectionMatrixTransform",
"sourceRevision_",
"verticesBuffer_",
"hitVerticesBuffer_",
"indicesBuffer_",
"hitDetectionEnabled_",
"hitFragmentShader",
"hitVertexShader",
"hitVertexShader_",
"hitFragmentShader_",
"hitProgram_",
"customAttributes",
"hitDetectionAttributes",
"currentTransform_",
"renderTransform_",
"invertRenderTransform_",
"renderInstructions_",
"hitRenderInstructions_",
"hitRenderTarget_",
"generateBuffersRun_",
"worker_",
"createWebGLWorker",
"received",
"projectionTransform",
"hitDetection",
"fromArrayBuffer",
"vertexBuffer",
"indexBuffer",
"makeInverseTransform",
"renderInstructions",
"generateBuffersRun",
"featureCache_",
"featureCount_",
"sourceListenKeys_",
"handleSourceFeatureAdded_",
"handleSourceFeatureChanged_",
"handleSourceFeatureDelete_",
"handleSourceFeatureClear_",
"forEachFeature",
"WebGLPointsLayerRenderer",
"renderCount",
"renderHitDetection",
"clearCachedData",
"vectorSource",
"viewNotMoving",
"sourceChanged",
"BaseVector",
"getRenderBuffer",
"rebuildBuffers_",
"makeProjectionTransform",
"featureCache",
"totalInstructionsCount",
"totalHitInstructionsCount",
"hitColor",
"tmpCoords",
"tmpColor",
"renderIndex",
"hitIndex",
"featureUid",
"customAttributesCount",
"hitMessage",
"readPixel",
"getFeatureByUid",
"prepareDrawToRenderTarget",
"Instruction",
"BEGIN_GEOMETRY",
"BEGIN_PATH",
"CLOSE_PATH",
"CUSTOM",
"DRAW_CHARS",
"DRAW_IMAGE",
"END_GEOMETRY",
"FILL",
"MOVE_TO_LINE_TO",
"SET_FILL_STYLE",
"SET_STROKE_STYLE",
"STROKE",
"fillInstruction",
"strokeInstruction",
"beginPathInstruction",
"closePathInstruction",
"maxLineWidth",
"beginGeometryInstruction1_",
"beginGeometryInstruction2_",
"bufferedMaxExtent_",
"instructions",
"tmpCoordinate_",
"hitDetectionInstructions",
"CanvasBuilder",
"dashArray",
"dash",
"getBufferedMaxExtent",
"myEnd",
"closed",
"skipFirst",
"lastRel",
"nextRel",
"lastXCoord",
"lastYCoord",
"nextCoord",
"skipped",
"builderEnds",
"builderEnd",
"appendFlatLineCoordinates",
"beginGeometry",
"builderEndss",
"builderBegin",
"myEnds",
"drawCustomCoordinates_",
"CanvasInstruction",
"appendFlatPointCoordinates",
"endGeometry",
"instruction",
"createStroke",
"applyPixelRatio",
"createFill",
"currentFillStyle",
"applyStroke",
"currentStrokeStyle",
"currentLineCap",
"currentLineDash",
"currentLineDashOffset",
"currentLineJoin",
"currentLineWidth",
"currentMiterLimit",
"endGeometryInstruction",
"imagePixelRatio_",
"anchorX_",
"anchorY_",
"height_",
"originX_",
"originY_",
"declutterImageWithText_",
"CanvasImageBuilder",
"myBegin",
"reverseHitDetectionInstructions",
"opt_sharedData",
"hitDetectionImage",
"CanvasLineStringBuilder",
"moveToLineToInstruction",
"updateStrokeStyle",
"drawFlatCoordinates_",
"lastStroke",
"CanvasPolygonBuilder",
"numEnds",
"setFillStrokeStyles_",
"circleInstruction",
"drawFlatCoordinatess_",
"updateFillStyle",
"matchingChunk",
"m12",
"m23",
"x12",
"y12",
"x23",
"y23",
"chunkStart",
"chunkEnd",
"chunkM",
"acos",
"TEXT_ALIGN",
"labels_",
"fillStates",
"strokeStates",
"textStates",
"textKey_",
"fillKey_",
"strokeKey_",
"CanvasTextBuilder",
"geometryType",
"geometryWidths",
"beg_1",
"saveTextStates_",
"p0",
"p1",
"p2",
"p3",
"pixelRatio_1",
"flatOffset",
"flatEnd",
"oo",
"drawChars_",
"strokeKey",
"textKey",
"fillKey",
"baseline",
"BATCH_CONSTRUCTORS",
"PolygonBuilder",
"Builder",
"ImageBuilder",
"LineStringBuilder",
"TextBuilder",
"tolerance_",
"maxExtent_",
"resolution_",
"buildersByZIndex_",
"BuilderGroup",
"builderInstructions",
"zKey",
"builders",
"builderKey",
"builderInstruction",
"builderType",
"zIndexKey",
"replays",
"replay",
"Constructor",
"drawTextOnPath",
"startM",
"segmentM",
"advance",
"beginX",
"beginY",
"startOffset",
"startLength",
"endM",
"flat",
"previousAngle",
"singleSegment",
"iStart",
"charLength",
"chars",
"lineStringLength",
"p4",
"getDeclutterBox",
"replayImageOrLabelArgs",
"declutterBox",
"rtlRegEx",
"horizontalTextAlign",
"align",
"createTextChunks",
"alignFill_",
"coordinateCache_",
"renderedTransform_",
"widths_",
"Executor",
"textIsArray",
"renderWidth",
"OffscreenCanvasRenderingContext2D",
"previousFont",
"leftRight",
"strokeInstructions",
"fillInstructions",
"lineOffset",
"widthHeightIndex",
"lineWidthIndex",
"text_1",
"fillStrokeArgs",
"setStrokeStyle_",
"sheetWidth",
"sheetHeight",
"snapToPixel",
"fillStroke",
"boxW",
"boxH",
"boxX",
"boxY",
"drawImageX",
"drawImageY",
"drawImageW",
"drawImageH",
"contextScale",
"imageOrLabel",
"strokePadding",
"replayTextBackground_",
"repeatSize",
"createLabel",
"opt_featureCallback",
"opt_hitExtent",
"opt_declutterTree",
"transformSetFromArray",
"prevX",
"prevY",
"roundX",
"roundY",
"currentGeometry",
"pendingFill",
"pendingStroke",
"lastFillInstruction",
"lastStrokeInstruction",
"coordinateCache",
"viewRotationFromTransform",
"batchSize",
"labelWithAnchor",
"drawLabelWithPointPlacement_",
"widthIndex",
"calculateImageOrLabelDimensions_",
"imageArgs",
"imageDeclutterBox",
"replayImageOrLabel_",
"measurePixelRatio",
"pixelRatioScale",
"cachedWidths",
"pathLength",
"textLength",
"drawChars",
"cc",
"part",
"ii_1",
"execute_",
"ORDER",
"allInstructions",
"opt_renderBuffer",
"executorsByZIndex_",
"hitDetectionContext_",
"hitDetectionTransform_",
"createExecutors_",
"ExecutorGroup",
"flatClipCoords",
"getClipCoords",
"executors",
"instructionByZindex",
"candidates",
"declutteredFeatures",
"contextSize",
"newContext",
"hitExtent",
"indexes",
"getPixelIndexArray",
"featureCallback",
"result_1",
"executor",
"executeHitDetection",
"opt_builderTypes",
"builderTypes",
"execute",
"circlePixelIndexArrayCache",
"maxDistanceSq",
"distances",
"HIT_DETECT_RESOLUTION",
"createHitDetectionImageData",
"featureCount",
"indexFactor",
"featuresByZIndex",
"featureStyleFunction",
"getStyleFunction",
"originalStyle",
"setColor",
"setText",
"getImageSize",
"imgContext",
"byGeometryType",
"zIndexKeys",
"geomAndStyle",
"kk",
"hitDetect",
"resultFeatures",
"vectorLayer",
"boundHandleStyleImageChange_",
"handleStyleImageChange_",
"animatingOrInteracting_",
"dirty_",
"hitDetectionImageData_",
"renderedFeatures_",
"renderedResolution_",
"wrappedRenderedExtent_",
"renderedRotation_",
"renderedCenter_",
"renderedProjection_",
"renderedRenderOrder_",
"replayGroup_",
"replayGroupChanged",
"clipping",
"CanvasVectorLayerRenderer",
"executorGroup",
"endWorld",
"world",
"getRenderTransform",
"renderWorlds",
"transformToString",
"animating",
"interacting",
"getUpdateWhileAnimating",
"getUpdateWhileInteracting",
"frameStateExtent",
"vectorLayerRevision",
"vectorLayerRenderBuffer",
"vectorLayerRenderOrder",
"getRenderOrder",
"defaultRenderOrder",
"loadExtents",
"wrapCoordinateX",
"loadExtent",
"wrapExtentX",
"declutterBuilderGroup",
"CanvasBuilderGroup",
"getRenderTolerance",
"getDeclutter",
"userExtent_1",
"getSquaredRenderTolerance",
"userExtent",
"replayGroupInstructions",
"getOverlaps",
"vectorRenderer_",
"layerImageRatio_",
"getImageRatio",
"coordinateToVectorPixelTransform_",
"renderedPixelToCoordinateTransform_",
"CanvasVectorImageLayerRenderer",
"vectorPixel",
"vectorRenderer",
"imageFrameState_1",
"emptyImage_1",
"image_1",
"IMAGE_REPLAYS",
"ReplayType",
"VECTOR_REPLAYS",
"renderedLayerRevision_",
"tmpTransform_",
"CanvasVectorTileLayerRenderer",
"updateExecutorGroup_",
"tileImageNeedsRender_",
"hifi",
"prepareTile",
"getRenderMode",
"VectorTileRenderType",
"renderTileImage_",
"layerRevision",
"builderState",
"getReplayState",
"layerUid",
"tt",
"sourceTileExtent",
"sharedExtent",
"builderExtent",
"bufferedExtent",
"executorGroupInstructions",
"replayExtent",
"renderingReplayGroup",
"CanvasExecutorGroup",
"extent_1",
"tilePixel",
"getTileRenderTransform",
"worldOffset",
"renderMode",
"replayTypes",
"hasExecutors",
"replayState",
"renderPixelRatio",
"renderScale",
"pixelScale",
"translateTransform",
"MultiPoint",
"multiPoint",
"interpolatePoint",
"cumulativeLengths",
"lineStringCoordinateAtM",
"extrapolate",
"lo",
"hi",
"m0",
"lineStringsCoordinateAtM",
"flatMidpoint_",
"flatMidpointRevision_",
"LineString",
"lineString",
"opt_extrapolate",
"getCoordinateAt",
"lineStrings",
"MultiLineString",
"multiLineString",
"midpoints",
"endss_",
"flatInteriorPointsRevision_",
"flatInteriorPoints_",
"polygons",
"MultiPolygon",
"newEndss",
"multiPolygon",
"linearRingssArea",
"linearRingssCenter",
"prevEnds",
"lastEnds",
"type_",
"flatCoordinates_",
"flatMidpoints_",
"properties_",
"RenderFeature",
"midpoint",
"toGeometry",
"VectorLayer",
"geoM",
"fracA",
"fracB",
"fracM",
"geoA",
"geoB",
"geoStack",
"fractionStack",
"fractions",
"maxIterations",
"meridian",
"lon",
"frac",
"parallel",
"lon2",
"DEFAULT_STROKE_STYLE",
"INTERVALS",
"maxLines",
"targetSize",
"showLabels",
"lonLabelFormatter",
"latLabelFormatter",
"lonLabelPosition",
"latLabelPosition",
"lonLabelStyle",
"latLabelStyle",
"intervals",
"maxLat_",
"maxLon_",
"minLat_",
"minLon_",
"maxX_",
"maxY_",
"minX_",
"minY_",
"targetSize_",
"maxLines_",
"meridians_",
"parallels_",
"strokeStyle_",
"fromLonLatTransform_",
"toLonLatTransform_",
"projectionCenterLonLat_",
"bottomLeft_",
"bottomRight_",
"topLeft_",
"topRight_",
"meridiansLabels_",
"parallelsLabels_",
"lonLabelFormatter_",
"latLabelFormatter_",
"lonLabelPosition_",
"latLabelPosition_",
"lonLabelStyleBase_",
"lonLabelStyle_",
"latLabelStyleBase_",
"latLabelStyle_",
"drawLabels_",
"intervals_",
"loaderFunction",
"strategyFunction",
"featurePool_",
"lineStyle_",
"loadedExtent_",
"setRenderOrder",
"Graticule",
"realWorldExtent",
"removeLoadedExtent",
"renderExtent",
"equivalentProjection",
"updateProjectionInfo_",
"createGraticule_",
"featuresColl",
"getFeaturesCollection",
"poolIndex",
"minLat",
"maxLat",
"getMeridian_",
"geom",
"minLon",
"maxLon",
"getParallel_",
"rotationCenter",
"rotationExtent",
"unrotatedWidth",
"unrotatedHeight",
"startWorld",
"labelsAtStart",
"vectorContext",
"textPoint",
"getMeridianPoint_",
"drawFeature",
"getParallelPoint_",
"getInterval_",
"validCenterP",
"centerLonLat",
"cnt",
"centerLon",
"centerLat",
"validExtentP",
"validExtent",
"addMeridian_",
"addParallel_",
"clampedLat",
"bottom",
"clampedBottom",
"clampedTop",
"clampedLeft",
"clampedRight",
"toLonLatTransform",
"split_1",
"lonLatCoordinates",
"worldExtentP",
"DEFAULT_GRADIENT",
"gradient",
"blur",
"gradient_",
"handleGradientChanged_",
"setGradient",
"setBlur",
"setRadius",
"weightFunction_",
"Heatmap",
"createLinearGradient",
"addColorStop",
"createGradient",
"getGradient",
"u_size",
"u_blurSlope",
"u_gradientTexture",
"u_opacity",
"defaultFeatureProjection",
"FeatureFormat",
"setWorldExtent",
"adaptOptions",
"transformGeometryWithOptions",
"power_1",
"transformExtentWithOptions",
"layersPBFReader",
"layerPBFReader",
"featurePBFReader",
"readRawFeature",
"featureClass_",
"featureClass",
"geometryName",
"layerName_",
"layerName",
"idProperty_",
"idProperty",
"MVT",
"cmd",
"coordsLen",
"currentEnd",
"cmdLen",
"rawFeature",
"readRawGeometry_",
"getGeometryType",
"setId",
"PBF",
"pbfLayers",
"pbfLayer",
"setExtent",
"createFeature_",
"renderMode_",
"setBackground",
"VectorTileLayer",
"cloneGeometries",
"clonedGeometries",
"opt_geometries",
"geometries_",
"changeEventsKeys_",
"listenGeometriesChange_",
"GeometryCollection",
"geometryCollection",
"setGeometries",
"geometriesArray",
"getGeometriesArrayRecursive",
"simplifiedGeometries",
"simplified",
"simplifiedGeometryCollection",
"setGeometriesArray",
"unlistenGeometriesChange_",
"getObject",
"JSONFeature",
"readFeatureFromObject",
"getReadOptions",
"readFeaturesFromObject",
"readGeometryFromObject",
"readProjectionFromObject",
"writeFeatureObject",
"writeFeaturesObject",
"writeGeometryObject",
"readGeometry",
"readPointGeometry",
"readLineStringGeometry",
"readPolygonGeometry",
"readMultiPointGeometry",
"readMultiLineStringGeometry",
"readMultiPolygonGeometry",
"readGeometryCollectionGeometry",
"writeGeometry",
"geoJSON",
"writePointGeometry",
"writeLineStringGeometry",
"rightHanded",
"writePolygonGeometry",
"writeMultiPointGeometry",
"writeMultiLineStringGeometry",
"writeMultiPolygonGeometry",
"writeGeometryCollectionGeometry",
"extractGeometryName_",
"extractGeometryName",
"GeoJSON",
"geoJSONFeature",
"geoJSONFeatures",
"objects",
"freeExports",
"freeModule",
"freeGlobal",
"punycode",
"maxInt",
"regexPunycode",
"regexNonASCII",
"regexSeparators",
"stringFromCharCode",
"mapDomain",
"ucs2decode",
"extra",
"counter",
"ucs2encode",
"digitToBasic",
"digit",
"flag",
"adapt",
"numPoints",
"firstTime",
"baseMinusTMin",
"basic",
"oldi",
"baseMinusT",
"codePoint",
"inputLength",
"encode",
"handledCPCount",
"basicLength",
"q",
"currentValue",
"handledCPCountPlusOne",
"qMinusT",
"prop",
"sep",
"eq",
"regexp",
"maxKeys",
"kstr",
"vstr",
"decodeURIComponent",
"stringifyPrimitive",
"ks",
"require$$0",
"require$$1",
"Url",
"slashes",
"auth",
"host",
"port",
"hostname",
"query",
"pathname",
"path",
"protocolPattern",
"portPattern",
"simplePathPattern",
"unwise",
"autoEscape",
"nonHostChars",
"hostEndingChars",
"hostnamePartPattern",
"hostnamePartStart",
"unsafeProtocol",
"hostlessProtocol",
"slashedProtocol",
"urlParse",
"parseQueryString",
"slashesDenoteHost",
"util",
"queryIndex",
"splitter",
"uSplit",
"rest",
"simplePath",
"querystring",
"proto",
"lowerProto",
"atSign",
"hostEnd",
"hec",
"parseHost",
"ipv6Hostname",
"hostparts",
"newpart",
"validParts",
"notHost",
"bit",
"toASCII",
"ae",
"esc",
"escape",
"qm",
"relative",
"resolveObject",
"tkeys",
"tk",
"tkey",
"rkeys",
"rk",
"rkey",
"relPath",
"isSourceAbs",
"isRelAbs",
"mustEndAbs",
"removeAllDots",
"srcPath",
"psychotic",
"authInHost",
"hasTrailingSlash",
"up",
"isAbsolute",
"ParsingError",
"Scope",
"bindings",
"NullType",
"kind",
"NumberType",
"StringType",
"BooleanType",
"ColorType",
"ObjectType",
"ValueType",
"CollatorType",
"FormattedType",
"ResolvedImageType",
"itemType",
"N",
"valueMemberTypes",
"checkSubtype",
"isValidType",
"provided",
"allowedTypes",
"isValidNativeType",
"kCSSColorTable",
"clamp_css_byte",
"clamp_css_float",
"parse_css_int",
"parse_css_float",
"css_hue_to_rgb",
"m1",
"m2",
"css_str",
"iv",
"op",
"ep",
"fname",
"Color",
"rgba",
"parseCSSColor",
"Collator",
"caseSensitive",
"diacriticSensitive",
"locale",
"sensitivity",
"collator",
"Intl",
"lhs",
"rhs",
"resolvedLocale",
"resolvedOptions",
"FormattedSection",
"fontStack",
"textColor",
"Formatted",
"sections",
"section",
"serialized",
"unformatted",
"ResolvedImage",
"validateRGBA",
"isValue",
"mixed",
"typeOf",
"Literal",
"evaluate",
"eachChild",
"outputDefined",
"expectedType",
"RuntimeError",
"boolean",
"Assertion",
"parsed",
"FormatExpression",
"evaluatedContent",
"content",
"firstArg",
"nextTokenMayBeObject",
"lastExpression",
"ImageExpression",
"evaluatedImageName",
"availableImages",
"Coercion",
"parseColor",
"valueToString",
"child",
"geometryTypes",
"EvaluationContext",
"globals",
"featureState",
"formattedSection",
"_parseColorCache",
"canonical",
"canonicalID",
"cached",
"CompoundExpression",
"_evaluate",
"definition",
"definitions",
"availableOverloads",
"overloads",
"signature",
"signatureContext",
"ParsingContext",
"scope",
"argParseFailed",
"signatures",
"actualTypes",
"CollatorExpression",
"updateBBox",
"boxWithinBox",
"bbox1",
"bbox2",
"getTileCoordinates",
"tilesAtZoom",
"onBoundary",
"rayIntersect",
"pointWithinPolygon",
"inside",
"ring",
"len2",
"pointWithinPolygons",
"twoSided",
"q1",
"q2",
"det1",
"det2",
"lineIntersectPolygon",
"vectorP",
"vectorQ",
"lineStringWithinPolygon",
"lineStringWithinPolygons",
"getTilePolygon",
"getTilePolygons",
"updatePoint",
"polyBBox",
"worldSize",
"halfWorldSize",
"getTilePoints",
"pointBBox",
"shifts",
"tilePoints",
"getTileLines",
"lineBBox",
"tileLines",
"tileLine",
"resetBBox",
"Within",
"geojson",
"tilePolygon",
"tilePolygons",
"pointsWithinPolygons",
"linesWithinPolygons",
"isFeatureConstant",
"isStateConstant",
"isGlobalPropertyConstant",
"Var",
"boundExpression",
"expr",
"_parse",
"annotate",
"typeAnnotation",
"Expr",
"actual",
"isConstant",
"ec",
"isTypeAnnotation",
"childrenConstant",
"findStopLessThanOrEqualTo",
"stops",
"nextValue",
"lowerIndex",
"upperIndex",
"currentIndex",
"Step",
"labels",
"outputs",
"stopCount",
"labelKey",
"valueKey",
"UnitBezier",
"p1x",
"p1y",
"p2x",
"p2y",
"bx",
"ax",
"by",
"ay",
"sampleCurveX",
"sampleCurveY",
"sampleCurveDerivativeX",
"solveCurveX",
"epsilon",
"t0",
"t1",
"t2",
"solve",
"Xn",
"Zn",
"deg2rad",
"rad2deg",
"xyz2lab",
"lab2xyz",
"xyz2rgb",
"rgb2xyz",
"rgbToLab",
"rgbColor",
"labToRgb",
"labColor",
"interpolateHue",
"lab",
"interpolateNumber",
"hcl",
"hclColor",
"Interpolate",
"lower",
"upper",
"interpolationFactor",
"outputLower",
"outputUpper",
"controlPoints",
"exponentialInterpolation",
"lowerValue",
"upperValue",
"difference",
"Coalesce",
"requestedImageName",
"argCount",
"Let",
"At",
"In",
"IndexOf",
"fromIndex",
"Match",
"inputType",
"otherwise",
"groupedByOutput",
"outputLookup",
"outputIndex",
"coerceLabel",
"labelContext",
"MAX_SAFE_INTEGER",
"Case",
"branches",
"Slice",
"beginIndex",
"endIndex",
"isComparableType",
"eqCollate",
"makeComparison",
"compareBasic",
"compareWithCollator",
"isOrderComparison",
"hasUntypedArgument",
"lt",
"Comparison",
"Equals",
"NotEquals",
"LessThan",
"GreaterThan",
"LessThanOrEqual",
"GreaterThanOrEqual",
"NumberFormat",
"currency",
"minFractionDigits",
"maxFractionDigits",
"minimumFractionDigits",
"expressions",
"Length",
"varargs",
"supportsPropertyExpression",
"spec",
"supportsZoomExpression",
"parameters",
"supportsInterpolation",
"interpolated",
"isFunction",
"register",
"typeToString",
"heatmapDensity",
"lineProgress",
"skyRadialProgress",
"accumulated",
"E",
"LN10",
"isSupportedScript",
"toUpperCase",
"StyleExpression",
"propertySpec",
"_warningHistory",
"_evaluator",
"_defaultValue",
"_enumValues",
"evaluateWithoutErrorHandling",
"isExpression",
"createExpression",
"enum",
"formatted",
"resolvedImage",
"getExpectedType",
"ZoomConstantExpression",
"_styleExpression",
"isStateDependent",
"ZoomDependentExpression",
"zoomStops",
"interpolationType",
"createPropertyExpression",
"isZoomConstant",
"zoomCurve",
"findZoomCurve",
"childResult",
"convertLiteral",
"convertFunction",
"convertIdentityFunction",
"zoomAndFeatureDependent",
"featureDependent",
"zoomDependent",
"tokens",
"convertTokenString",
"featureFunctionParameters",
"featureFunctionStops",
"getFunctionType",
"getInterpolateOperator",
"appendStopPair",
"convertPropertyFunction",
"fixupDegenerateStepCurve",
"convertZoomAndPropertyFunction",
"isStep",
"convertZoomFunction",
"colorSpace",
"getFallback",
"defaultValue",
"curve",
"re",
"literal",
"isExpressionFilter",
"filterSpec",
"createFilter",
"needGeometry",
"convertFilter",
"compiled",
"globalProperties",
"geometryNeeded",
"filters",
"convertComparisonOp",
"convertNegation",
"convertInOp",
"convertHasOp",
"deref",
"refProperties",
"ValidationError",
"__line__",
"validateConstants",
"constants",
"unbundle",
"valueOf",
"deepUnbundle",
"unbundledValue",
"validateObject",
"elementSpecs",
"valueSpec",
"elementValidators",
"objectElementValidators",
"styleSpec",
"objectKey",
"elementSpecKey",
"elementSpec",
"validateElement",
"validateSpec",
"required",
"validateArray",
"arraySpec",
"validateArrayElement",
"arrayElementValidator",
"validate",
"arrayElementSpec",
"minimum",
"maximum",
"$version",
"function",
"arrayIndex",
"validateNumber",
"specMin",
"specMax",
"validateFunction",
"stopKeyType",
"previousStopDomainValue",
"previousStopDomainZoom",
"functionValueSpec",
"functionType",
"stopDomainValues",
"isZoomFunction",
"isPropertyFunction",
"isZoomAndPropertyFunction",
"validateFunctionStop",
"validateStopDomainValue",
"reportValue",
"validateExpression",
"expressionContext",
"expressionObj",
"propertyKey",
"propertyType",
"validateEnum",
"validateFilter",
"validateNonExpressionFilter",
"filter_operator",
"geometry_type",
"validateProperty",
"layerSpec",
"layerType",
"transitionMatch",
"tokenMatch",
"glyphs",
"validatePaintProperty",
"validateLayoutProperty",
"validateLayer",
"ref",
"layerId",
"otherLayer",
"sourceType",
"paint",
"lineMetrics",
"validateString",
"promoteId",
"validateSource",
"source_geojson",
"clusterProperties",
"mapExpr",
"reduceExpr",
"source_video",
"source_image",
"validateLight",
"lightSpec",
"rootType",
"validateTerrain",
"terrain",
"terrainSpec",
"validateFog",
"fog",
"fogSpec",
"VALIDATORS",
"validateStyleMin",
"latestStyleSpec",
"$root",
"validateGlyphsURL",
"sortErrors",
"wrapCleanErrors",
"paintProperty",
"layoutProperty",
"$V0",
"$V1",
"$V2",
"$V3",
"$V4",
"$V5",
"$V6",
"$V7",
"$V8",
"$V9",
"trace",
"yy",
"symbols_",
"terminals_",
"productions_",
"performAction",
"yytext",
"yyleng",
"yylineno",
"yystate",
"$$",
"_$",
"$0",
"$",
"first_line",
"table",
"defaultActions",
"parseError",
"recoverable",
"vstack",
"lstack",
"TERROR",
"EOF",
"lexer",
"sharedState",
"setInput",
"yylloc",
"yyloc",
"ranges",
"lex",
"token",
"action",
"newState",
"yyval",
"errStr",
"showPosition",
"last_line",
"first_column",
"last_column",
"_input",
"_more",
"_backtrack",
"matched",
"conditionStack",
"ch",
"unput",
"oldLines",
"backtrack_lexer",
"less",
"pastInput",
"past",
"upcomingInput",
"pre",
"test_match",
"indexed_rule",
"backup",
"tempMatch",
"rules",
"_currentRules",
"flex",
"popState",
"topState",
"pushState",
"stateStackSize",
"yy_",
"$avoiding_name_collisions",
"YY_START",
"Parser",
"readStyle",
"jsonlint",
"validateStyle",
"v8",
"latest",
"defaultResolutions",
"createCanvas",
"hairSpacePool",
"applyLetterSpacing",
"letterSpacing",
"textWithLetterSpacing",
"joinSpaceString",
"getMeasureContext",
"measureCache",
"wrapText",
"em",
"hardLines",
"wrappedText",
"words",
"maxWidth",
"word",
"testLine",
"line_1",
"prevWidth",
"nextWidth",
"line_2",
"lineWords",
"lastWord",
"renderFeatureCoordinates",
"emptyObj",
"zoomObj",
"getValue",
"layoutOrPaint",
"functionCache",
"value_1",
"isExpr",
"compiledExpression",
"rawExpression",
"expressionData",
"renderTransparentEnabled",
"colorWithOpacity",
"templateRegEx",
"fromTemplate",
"recordLayer",
"olLayer",
"glStyle",
"spriteData",
"spriteImageUrl",
"getFonts",
"spriteImage",
"spriteImgSize",
"img_1",
"mapboxSource",
"allLayers",
"derefLayers",
"layersBySourceLayer",
"mapboxLayers",
"patternCache",
"filterCache",
"sourceLayer",
"source_1",
"textHalo",
"featureBelongsToLayer",
"stylesLength",
"layerData",
"visibility",
"minzoom",
"maxzoom",
"evaluateFilter",
"strokeColor",
"fillIcon",
"icon_1",
"setZIndex",
"icon_cache_key",
"spriteImageData",
"createPattern",
"setWidth",
"width_1",
"setLineCap",
"setLineJoin",
"setMiterLimit",
"hasImage",
"placementAngle",
"iconImg",
"skipLabel",
"styleGeom",
"iconRotationAlignment",
"iconSize",
"iconColor",
"spriteImageData_1",
"setAnchor",
"circleRadius",
"circleStrokeColor",
"circleColor",
"circleStrokeWidth",
"cache_key",
"Circle",
"textLineHeight_1",
"textSize_1",
"letterSpacing_1",
"maxTextWidth_1",
"fontArray_1",
"mb2css",
"textField",
"chunkFont",
"i_2",
"ii_2",
"textTransform",
"wrappedLabel",
"setFont",
"textAnchor",
"setPlacement",
"setOverflow",
"textHaloWidth",
"textOffset",
"textTranslate",
"vOffset",
"hOffset",
"setTextAlign",
"textRotationAlignment",
"setRotateWithView",
"setMaxAngle",
"setTextBaseline",
"setOffsetX",
"setOffsetY",
"setFill",
"haloColor",
"halfTextSize",
"setStroke",
"textPadding",
"loadedFontFamilies",
"tilejsonCache",
"fontFamilyRegEx",
"stripQuotesRegEx",
"hasFontFamily",
"styleSheets",
"styleSheet",
"cssRules",
"cssRule",
"cssText",
"processedFontFamilies",
"googleFamilies",
"googleFonts",
"fontsKey",
"googleFontDescriptions",
"googleFontDescription",
"fontUrl",
"querySelector",
"markup",
"spriteRegEx",
"withPath",
"toSpriteUrl",
"applyStyle",
"onChange",
"sprite",
"applyStyleFunction",
"sizeFactor_1",
"spriteUrl_1",
"statusText",
"spritesJson",
"mapOrLayer",
"updateStyle",
"bg",
"_colorWithOpacity",
"extentFromTileJSON",
"bounds",
"tr",
"setupVectorSource",
"glSource",
"tilejson",
"tileJSONDoc",
"getTileJSON",
"decodeURI",
"VectorTileSource",
"mapboxBaseUrl",
"getMapboxPath",
"normalizeSpriteUrl",
"styleUrl",
"mapboxPath",
"normalizeGlyphsUrl",
"normalizeStyleUrl",
"normalizeSourceUrl",
"tokenParam",
"urlObject",
"searchParams",
"SourceType",
"setMaxResolutionFromTileGrid_",
"sourceId",
"accessToken",
"accessTokenParam_",
"fetchStyle",
"MapboxVectorLayer",
"onStyleLoad",
"handleError",
"sourceIdOrLayersList",
"styleSource",
"configureSource",
"targetSource",
"getTileUrlFunction",
"setTileLoadFunction",
"getTileLoadFunction",
"setMaxResolution",
"ErrorEvent",
"imageRatio",
"imageRatio_",
"VectorImageLayer",
"parseResult_",
"styleVariables_",
"hitDetectionDisabled_",
"disableHitDetection",
"WebGLPointsLayer",
"getSymbolVertexShader",
"getSymbolFragmentShader",
"parseStyle",
"pipeline",
"contrast",
"exposure",
"saturation",
"gamma",
"brightness",
"numVariables",
"uniformDeclarations",
"functionDefintions",
"sources_",
"renderedSource_",
"handleSourceUpdate_",
"WebGLTileLayer",
"parsedStyle",
"getSourceBandCount_",
"getSources",
"onChange_1",
"renderSources",
"altSources",
"DragAndDropEventType",
"readAsBuffer_",
"formats_",
"formatConstructors",
"dropListenKeys_",
"source_",
"DragAndDrop",
"tryReadFeatures_",
"DragAndDropEvent",
"dropArea",
"handleDrop",
"handleStop",
"registerListeners_",
"unregisterListeners_",
"files",
"dataTransfer",
"FileReader",
"handleResult_",
"readAsArrayBuffer",
"readAsText",
"dropEffect",
"lastMagnitude_",
"DragRotateAndZoom",
"magnitude",
"angleDelta",
"setCenterAndRadius",
"getRadiusSquared_",
"DrawEventType",
"shouldHandle_",
"downPx_",
"downTimeout_",
"lastDragTime_",
"pointerType_",
"freehand_",
"snapTolerance_",
"snapTolerance",
"getMode",
"stopClick_",
"stopClick",
"minPoints_",
"minPoints",
"maxPoints_",
"maxPoints",
"finishCondition_",
"finishCondition",
"Constructor_1",
"mode_1",
"squaredLength",
"squaredCoordinateDistance",
"dragVertexDelay_",
"dragVertexDelay",
"finishCoordinate_",
"sketchFeature_",
"sketchPoint_",
"sketchCoords_",
"sketchLine_",
"sketchLineCoords_",
"squaredClickTolerance_",
"clickTolerance",
"overlay_",
"freehandCondition_",
"freehand",
"freehandCondition",
"updateState_",
"Draw",
"move",
"addToDrawing_",
"getPointerCount",
"startDrawing_",
"startingToDraw",
"finishDrawing",
"atFinish_",
"abortDrawing",
"downPx",
"clickPx",
"modifyDrawing_",
"createOrUpdateSketchPoint_",
"at",
"potentiallyDone",
"potentiallyFinishCoordinates",
"mode",
"sketchCoords",
"finishCoordinate",
"finishPixel",
"updateSketchFeatures_",
"getLinearRing",
"sketchLineGeom",
"DrawEvent",
"createOrUpdateCustomSketchLine_",
"sketchFeature",
"abortDrawing_",
"newDrawing",
"ending",
"sketchFeatures",
"overlaySource",
"ExtentEventType",
"getDefaultPointerStyleFunction",
"getPointHandler",
"fixedPoint",
"getEdgeHandler",
"fixedP1",
"fixedP2",
"pointerHandler_",
"pixelTolerance_",
"pixelTolerance",
"snappedToVertex_",
"extentFeature_",
"vertexFeature_",
"extentOverlay_",
"boxStyle",
"vertexOverlay_",
"pointerStyle",
"Extent",
"pixelCoordinate",
"getExtentInternal",
"segments",
"getSegments",
"closestSegment",
"vertex",
"vertexPixel",
"coordinateDistance",
"pixel1",
"pixel2",
"squaredDist1",
"squaredDist2",
"dist",
"snapToVertex_",
"createOrUpdatePointerFeature_",
"extentFeature",
"vertexFeature",
"getOpposingPoint",
"x_",
"y_",
"createOrUpdateExtentFeature_",
"ExtentEvent",
"tempExtent",
"tempSegment",
"ModifyEventType",
"compareIndexes",
"projectedDistanceToSegmentDataSquared",
"pointCoordinates",
"segmentData",
"distanceToCenterSquared",
"distanceToCircumference",
"closestOnSegmentData",
"boundHandleFeatureChange_",
"defaultDeleteCondition_",
"deleteCondition_",
"deleteCondition",
"insertVertexCondition_",
"insertVertexCondition",
"vertexSegments_",
"lastPixel_",
"ignoreNextSingleClick_",
"featuresBeingModified_",
"rBush_",
"changingFeature_",
"dragSegments_",
"SEGMENT_WRITERS_",
"writePointGeometry_",
"writeLineStringGeometry_",
"writePolygonGeometry_",
"writeMultiPointGeometry_",
"writeMultiLineStringGeometry_",
"writeMultiPolygonGeometry_",
"writeCircleGeometry_",
"writeGeometryCollectionGeometry_",
"hitDetection_",
"handleSourceAdd_",
"handleSourceRemove_",
"addFeature_",
"handleFeatureAdd_",
"handleFeatureRemove_",
"lastPointerEvent_",
"snapToPointer_",
"snapToPointer",
"Modify",
"writer",
"handlePointerAtPixel_",
"ss",
"ModifyEvent",
"removeFeatureSegmentData_",
"rBush",
"nodesToRemove",
"nodeToRemove",
"removeFeature_",
"centerSegmentData",
"circumferenceSegmentData",
"featureSegments",
"removePoint",
"willModifyFeatures_",
"dragSegment",
"setGeometryCoordinates_",
"createOrUpdateVertexFeature_",
"insertVertices",
"vertexExtent",
"segmentDataMatches",
"componentSegments",
"segmentDataMatch",
"insertVertex_",
"opt_coordinate",
"nodes",
"hitPointGeometry",
"vertexSegments",
"geometryUid",
"rTree",
"updateSegmentIndices_",
"newSegmentData",
"newSegmentData2",
"removeVertex_",
"component",
"newIndex",
"dragSegments",
"segmentsByFeature",
"deleted",
"SelectEventType",
"selected",
"deselected",
"originalFeatureStyles",
"boundAddFeature_",
"boundRemoveFeature_",
"addCondition_",
"addCondition",
"removeCondition_",
"removeCondition",
"toggleCondition_",
"toggleCondition",
"multi_",
"multi",
"filter_",
"hitTolerance_",
"layers_1",
"layerFilter_",
"featureLayerAssociation_",
"Select",
"restorePreviousStyle_",
"applySelectedStyle_",
"getAllLayers",
"hasFeature",
"addFeatureLayerAssociation_",
"removeFeatureLayerAssociation_",
"SelectEvent",
"getFeatureFromEvent",
"vertex_",
"edge_",
"featuresListenerKeys_",
"featureChangeListenerKeys_",
"indexedFeaturesExtents_",
"pendingFeatures_",
"GEOMETRY_SEGMENTERS_",
"segmentPointGemetry_",
"segmentLineStringGemetry_",
"segmentPolygonGemetry_",
"segmentMultiPointGemetry_",
"segmentMultiLineStringGemetry_",
"segmentMultiPolygonGemetry_",
"segmentGeometryCollectionGemetry_",
"segmentCircleGemetry_",
"Snap",
"opt_listen",
"feature_uid",
"segmenter",
"segmentsData",
"snapTo",
"updateFeature_",
"featuresToUpdate",
"opt_unlisten",
"unregister",
"nodesToRemove_1",
"currentMap",
"getFeatures_",
"forEachFeatureRemove_",
"forEachFeatureAdd_",
"segmentsLength",
"closestVertex",
"projectedCoordinate",
"squaredPixelTolerance",
"getResult",
"tempVertexCoord",
"segmentStart",
"segmentEnd",
"TranslateEventType",
"startCoordinate",
"lastCoordinate_",
"startCoordinate_",
"lastFeature_",
"handleActiveChanged_",
"Translate",
"featuresAtPixel_",
"TranslateEvent",
"newCoordinate",
"deltaX_1",
"deltaY_1",
"oldMap",
"flipXY",
"opt_destOffset",
"destOffset",
"GEOMETRY_READERS",
"getGeometryLayout",
"paths",
"GEOMETRY_WRITERS",
"esriJSONPolygon",
"flatRing",
"outerRings",
"holes",
"hole",
"outerRing",
"convertRings",
"_a",
"_b",
"geometryReader",
"hasZ",
"hasM",
"getHasZM",
"geometryWriter",
"esriJSON",
"hasZM",
"EsriJSON",
"opt_idField",
"esriJSONFeature",
"esriJSONFeatures",
"objectIdFieldName",
"wkid",
"XMLFeature",
"readFeatureFromDocument",
"readFeatureFromNode",
"readFeaturesFromDocument",
"readFeaturesFromNode",
"ELEMENT_NODE",
"readGeometryFromDocument",
"readGeometryFromNode",
"readProjectionFromDocument",
"readProjectionFromNode",
"writeFeatureNode",
"serializeToString",
"writeFeaturesNode",
"writeGeometryNode",
"GMLNS",
"ONLY_WHITESPACE_RE",
"featureType",
"featureNS",
"srsName",
"schemaLocation",
"FEATURE_COLLECTION_PARSERS",
"namespace",
"readFeaturesInternal",
"GMLBase",
"ft",
"ns",
"featureTypes",
"readFeatureElement",
"GEOMETRY_PARSERS",
"readGeometryOrExtent",
"asFeature",
"readExtentElement",
"readGeometryElement",
"readFeatureElementInternal",
"_content_",
"attName",
"fid",
"readFlatCoordinatesFromNode",
"MULTIPOINT_PARSERS",
"MULTILINESTRING_PARSERS",
"MULTIPOLYGON_PARSERS",
"POINTMEMBER_PARSERS",
"LINESTRINGMEMBER_PARSERS",
"POLYGONMEMBER_PARSERS",
"GEOMETRY_FLAT_COORDINATES_PARSERS",
"flatLinearRings",
"FLAT_LINEAR_RINGS_PARSERS",
"pointMemberParser",
"lineStringMemberParser",
"polygonMemberParser",
"readLineString",
"readPolygon",
"RING_PARSERS",
"readFlatLinearRing",
"readBooleanString",
"readDateTime",
"dateTime",
"readDecimal",
"readDecimalString",
"readPositiveInteger",
"readNonNegativeIntegerString",
"writeBooleanTextNode",
"bool",
"writeStringTextNode",
"writeCDATASection",
"createCDATASection",
"writeDateTimeTextNode",
"date",
"getUTCFullYear",
"getUTCMonth",
"getUTCDate",
"getUTCHours",
"getUTCMinutes",
"getUTCSeconds",
"writeDecimalTextNode",
"toPrecision",
"writeNonNegativeIntegerTextNode",
"nonNegativeInteger",
"MULTIGEOMETRY_TO_MEMBER_NODENAME",
"GML2",
"containerSrs",
"coordsGroups",
"BOX_PARSERS_",
"flatLinearRing",
"multiSurface",
"surface",
"multiCurve",
"writeGeometryElement",
"createCoordinatesNode_",
"writeCoordinates_",
"writeCurveSegments_",
"GEOMETRY_NODE_FACTORY_",
"writeCurveOrLineString",
"getLineStrings",
"LINESTRINGORCURVEMEMBER_SERIALIZERS",
"MULTIGEOMETRY_MEMBER_NODE_FACTORY_",
"GEOMETRY_SERIALIZERS",
"getCoords_",
"getLinearRings",
"RING_SERIALIZERS",
"RING_NODE_FACTORY_",
"patches",
"writeSurfacePatches_",
"exteriorWritten",
"writeSurfaceOrPolygon",
"writeLinearRing",
"opt_srsName",
"opt_hasZ",
"POINTMEMBER_SERIALIZERS",
"writePoint",
"getPolygons",
"SURFACEORPOLYGONMEMBER_SERIALIZERS",
"ENVELOPE_SERIALIZERS",
"readFlatCoordinates",
"innerBoundaryIsParser",
"outerBoundaryIsParser",
"readBox",
"writeMultiCurveOrLineString",
"writeMultiPoint",
"writeMultiSurfaceOrPolygon",
"writeEnvelope",
"writeLineStringOrCurveMember",
"writeRing",
"writePointMember",
"writeSurfaceOrPolygonMember",
"surface_",
"curve_",
"multiCurve_",
"multiSurface_",
"GML3",
"MULTICURVE_PARSERS",
"MULTISURFACE_PARSERS",
"CURVEMEMBER_PARSERS",
"SURFACEMEMBER_PARSERS",
"PATCHES_PARSERS",
"SEGMENTS_PARSERS",
"SURFACE_PARSERS",
"CURVE_PARSERS",
"ENVELOPE_PARSERS",
"contextDimension",
"dim",
"srsDimension",
"writePos_",
"posList",
"writePosList_",
"writeFeatureElement",
"setAttributeNS",
"writeFeatureMembers_",
"readFlatPos",
"readFlatPosList",
"interiorParser",
"exteriorParser",
"readSurface",
"readMultiSurface",
"readCurve",
"readMultiCurve",
"readEnvelope",
"curveMemberParser",
"surfaceMemberParser",
"readPatch",
"readSegment",
"readPolygonPatch",
"readLineStringSegment",
"writeFeatures",
"GML",
"GML32",
"NAMESPACE_URIS",
"FEATURE_READER",
"readRte",
"readTrk",
"readWpt",
"GPX_PARSERS",
"LINK_PARSERS",
"GPX_SERIALIZERS",
"RTE_SEQUENCE",
"RTE_SERIALIZERS",
"TRK_SEQUENCE",
"TRK_SERIALIZERS",
"writeWptType",
"readExtensions_",
"readExtensions",
"GPX",
"extensionsNode",
"featureReader",
"handleReadExtensions_",
"gpx",
"GPX_NODE_FACTORY",
"RTE_PARSERS",
"parseLink",
"parseExtensions",
"RTEPT_PARSERS",
"rteValues",
"layoutOptions",
"appendCoordinate",
"TRK_PARSERS",
"TRKSEG_PARSERS",
"TRKPT_PARSERS",
"trkValues",
"WPT_PARSERS",
"LINK_SEQUENCE",
"LINK_SERIALIZERS",
"writeLink",
"RTEPT_TYPE_SEQUENCE",
"TRKSEG_SERIALIZERS",
"TRKSEG_NODE_FACTORY",
"WPT_TYPE_SEQUENCE",
"WPT_TYPE_SERIALIZERS",
"GEOMETRY_TYPE_TO_NODENAME",
"applyLayoutOptions",
"TextFeature",
"readFeatureFromText",
"readFeaturesFromText",
"readGeometryFromText",
"readProjectionFromText",
"writeFeatureText",
"writeFeaturesText",
"writeGeometryText",
"IGCZ",
"B_RECORD_RE",
"H_RECORD_RE",
"HFDTE_RECORD_RE",
"NEWLINE_RE",
"altitudeMode_",
"altitudeMode",
"IGC",
"year",
"month",
"day",
"lastDateTime",
"hour",
"minute",
"second",
"UTC",
"DEFAULT_COLOR",
"DEFAULT_IMAGE_STYLE_ANCHOR",
"DEFAULT_IMAGE_STYLE_ANCHOR_X_UNITS",
"DEFAULT_IMAGE_STYLE_ANCHOR_Y_UNITS",
"DEFAULT_IMAGE_STYLE_SIZE",
"DEFAULT_IMAGE_STYLE_SRC",
"GX_NAMESPACE_URIS",
"ICON_ANCHOR_UNITS_MAP",
"PLACEMARK_PARSERS",
"extendedDataParser",
"regionParser",
"readMultiGeometry",
"readLinearRing",
"readPoint",
"styleMapValue",
"readStyleMapValue",
"placemarkObject",
"readStyleURL",
"GX_MULTITRACK_GEOMETRY_PARSERS",
"readGxTrack",
"NETWORK_LINK_PARSERS",
"readURI",
"REGION_PARSERS",
"LAT_LON_ALT_BOX_PARSERS",
"regionObject",
"LOD_PARSERS",
"lodObject",
"KML_SEQUENCE",
"KML_SERIALIZERS",
"DOCUMENT_SERIALIZERS",
"DOCUMENT_NODE_FACTORY",
"writePlacemark",
"DEFAULT_FILL_STYLE",
"DEFAULT_NO_IMAGE_STYLE",
"DEFAULT_IMAGE_STYLE",
"DEFAULT_TEXT_STROKE_STYLE",
"DEFAULT_TEXT_STYLE",
"DEFAULT_STYLE",
"TEXTAREA",
"DEFAULT_STYLE_ARRAY",
"scaleForSize",
"defaultIconUrlFunction",
"defaultStyle_",
"defaultStyle",
"extractStyles_",
"extractStyles",
"writeStyles_",
"writeStyles",
"sharedStyles_",
"showPointNames_",
"showPointNames",
"iconUrlFunction_",
"iconUrlFunction",
"KML",
"readDocumentOrFolder_",
"readPlacemark_",
"readSharedStyle_",
"readSharedStyleMap_",
"sharedStyles",
"drawName",
"multiGeometryPoints",
"featureStyle",
"findStyle",
"nameStyle",
"foundStyle",
"imageScale",
"setScale",
"createNameStyleFunction",
"createFeatureStyleFunction",
"styleUri",
"baseURI",
"fs",
"readNameFromDocument",
"readNameFromNode",
"name_2",
"networkLinks",
"readNetworkLinksFromDocument",
"readNetworkLinksFromNode",
"regions",
"readRegionFromDocument",
"readRegionFromNode",
"kml",
"xmlnsUri",
"styleValue",
"readColor",
"hexColor",
"readScale",
"STYLE_MAP_PARSERS",
"pairObject",
"PAIR_PARSERS",
"ICON_STYLE_PARSERS",
"iconObject",
"ICON_PARSERS",
"xunits",
"yunits",
"LABEL_STYLE_PARSERS",
"LINE_STYLE_PARSERS",
"POLY_STYLE_PARSERS",
"FLAT_LINEAR_RING_PARSERS",
"GX_TRACK_PARSERS",
"whens",
"when",
"gxTrackObject",
"EXTRUDE_AND_ALTITUDE_MODE_PARSERS",
"MULTI_GEOMETRY_PARSERS",
"multiGeometry",
"homogeneous",
"setCommonGeometryProperties",
"innerBoundaryFlatLinearRings",
"INNER_BOUNDARY_IS_PARSERS",
"OUTER_BOUNDARY_IS_PARSERS",
"STYLE_PARSERS",
"styleObject",
"IconObject",
"drawIcon",
"hotSpot",
"imageStyle_1",
"imageScale_1",
"listener_1",
"imageSize_1",
"resizeScale",
"outline",
"hasExtrude",
"hasTessellate",
"hasAltitudeMode",
"extrudes",
"tessellates",
"altitudeModes",
"DATA_PARSERS",
"EXTENDED_DATA_PARSERS",
"featureObject",
"SCHEMA_DATA_PARSERS",
"writeColorTextNode",
"abgr",
"hex",
"EXTENDEDDATA_NODE_SERIALIZERS",
"pair",
"DATA_NODE_FACTORY",
"ICON_SEQUENCE",
"ICON_SERIALIZERS",
"GX_NODE_FACTORY",
"ICON_STYLE_SEQUENCE",
"ICON_STYLE_SERIALIZERS",
"vec2",
"writeScaleTextNode",
"LABEL_STYLE_SEQUENCE",
"LABEL_STYLE_SERIALIZERS",
"LINE_STYLE_SEQUENCE",
"LINE_STYLE_SERIALIZERS",
"GEOMETRY_NODE_FACTORY",
"POINT_NODE_FACTORY",
"LINE_STRING_NODE_FACTORY",
"LINEAR_RING_NODE_FACTORY",
"POLYGON_NODE_FACTORY",
"MULTI_GEOMETRY_SERIALIZERS",
"writePrimitiveGeometry",
"writePolygon",
"writeMultiGeometry",
"BOUNDARY_IS_SERIALIZERS",
"writeBoundaryIs",
"PLACEMARK_SERIALIZERS",
"namesAndValues",
"names",
"pointStyles",
"lineStyles",
"polyStyles",
"STYLE_SEQUENCE",
"STYLE_SERIALIZERS",
"PLACEMARK_SEQUENCE",
"EXTENDEDDATA_NODE_FACTORY",
"styleArray",
"PRIMITIVE_GEOMETRY_SEQUENCE",
"PRIMITIVE_GEOMETRY_SERIALIZERS",
"POLY_STYLE_SEQUENCE",
"POLYGON_SERIALIZERS",
"INNER_BOUNDARY_NODE_FACTORY",
"OUTER_BOUNDARY_NODE_FACTORY",
"POLY_STYLE_SERIALIZERS",
"iconProperties",
"WAY_PARSERS",
"ndrefs",
"readTag",
"PARSERS",
"NODE_PARSERS",
"ways",
"OSMXML",
"XML",
"readFromDocument",
"readFromNode",
"readHref",
"SERVICE_IDENTIFICATION_PARSERS",
"SERVICE_PROVIDER_PARSERS",
"OPERATIONS_METADATA_PARSERS",
"OWS",
"owsObject",
"ADDRESS_PARSERS",
"ALLOWED_VALUES_PARSERS",
"CONSTRAINT_PARSERS",
"CONTACT_INFO_PARSERS",
"PHONE_PARSERS",
"DCP_PARSERS",
"HTTP_PARSERS",
"REQUEST_METHOD_PARSERS",
"OPERATION_PARSERS",
"SERVICE_CONTACT_PARSERS",
"encodeDeltas",
"numbers",
"opt_factor",
"lastNumbers",
"encodeFloats",
"decodeDeltas",
"encoded",
"decodeFloats",
"encodeSignedIntegers",
"decodeSignedIntegers",
"encodeUnsignedIntegers",
"decodeUnsignedIntegers",
"encodeUnsignedInteger",
"factor_",
"geometryLayout_",
"geometryLayout",
"Polyline",
"TopoJSON",
"topoJSONTopology",
"arcs",
"transformArc",
"transformArcs",
"topoJSONFeatures",
"objectName",
"readFeaturesFromGeometryCollection",
"readFeatureFromGeometry",
"transformVertex",
"concatenateArcs",
"polyArray",
"ringCoords",
"indices",
"tagName_",
"Filter",
"LogicalNary",
"Spatial",
"unit",
"propertyName",
"opt_matchCase",
"matchCase",
"ComparisonBinary",
"lowerBoundary",
"upperBoundary",
"opt_wildCard",
"opt_singleChar",
"opt_escapeChar",
"wildCard",
"singleChar",
"escapeChar",
"rid",
"and",
"And",
"Bbox",
"TRANSACTION_SUMMARY_PARSERS",
"TRANSACTION_RESPONSE_PARSERS",
"readTransactionSummary",
"readInsertResults",
"QUERY_SERIALIZERS",
"TRANSACTION_SERIALIZERS",
"writeFeature",
"writeUpdate",
"writeDelete",
"writeProperty",
"writeNative",
"FEATURE_PREFIX",
"XMLNS",
"OGCNS",
"WFSNS",
"FESNS",
"SCHEMA_LOCATIONS",
"GML_FORMATS",
"featureType_",
"featureNS_",
"gmlFormat_",
"gmlFormat",
"schemaLocation_",
"WFS",
"readTransactionResponseFromDocument",
"readTransactionResponseFromNode",
"readFeatureCollectionMetadataFromDocument",
"readFeatureCollectionMetadataFromNode",
"outputFormat",
"maxFeatures",
"resultType",
"viewParams",
"featurePrefix",
"propertyNames",
"combineBboxAndFilter",
"writeGetFeature",
"completeFilter",
"bboxFilter",
"bboxFilterFn",
"andFilterFn",
"inserts",
"updates",
"deletes",
"baseObj",
"gmlOptions",
"gmlVersion",
"createTransactionRequest",
"serializeTransactionRequest",
"nativeElements",
"OGC_FID_PARSERS",
"fidParser",
"INSERT_RESULTS_PARSERS",
"writeOgcFidFilter",
"getTypeName",
"prefix",
"typeName",
"nativeElement",
"vendorId",
"safeToIgnore",
"GETFEATURE_SERIALIZERS",
"writeQuery",
"writeDuringFilter",
"writeLogicalFilter",
"writeNotFilter",
"writeBboxFilter",
"writeSpatialFilter",
"writeDWithinFilter",
"writeComparisonFilter",
"writeIsNullFilter",
"writeIsBetweenFilter",
"writeIsLikeFilter",
"typeNameAttr",
"getFilterNS",
"writeFilterCondition",
"getTagName",
"writePropertyName",
"writeExpression",
"timePeriod",
"writeTimeInstant",
"writeLiteral",
"timeInstant",
"timePosition",
"WKBGeometryType",
"view_",
"pos_",
"initialized_",
"isLittleEndian_",
"hasZ_",
"hasM_",
"srid_",
"layout_",
"WkbReader",
"isLittleEndian",
"numRings",
"expectedTypeId",
"wkbType",
"wkbTypeThousandth",
"hasSRID",
"typeId",
"readMultiPoint",
"readMultiLineString",
"readMultiPolygon",
"readGeometryCollection",
"readWkbPayload",
"readWkbHeader",
"readWkbCollection",
"readWkbBlock",
"isEWKB_",
"ewkb",
"writeQueue_",
"nodata_",
"X",
"Y",
"Z",
"WkbWriter",
"coordsObj",
"axis",
"_i",
"writeUint32",
"writeLineString",
"writeUint8",
"writeWkbHeader",
"geoms",
"findMinimumLayout",
"wkblut",
"geomType",
"writeMultiLineString",
"writeMultiPolygon",
"writeGeometryCollection",
"setUint8",
"setUint32",
"setFloat64",
"getDataView",
"decodeHexString",
"splitCollection",
"viewCache_",
"hex_",
"littleEndian_",
"ewkb_",
"nodataZ_",
"nodataZ",
"nodataM_",
"nodataM",
"WKB",
"getSrid",
"getBuffer",
"encodeHexString",
"GeometryConstructor",
"EMPTY",
"TokenType",
"WKTGeometryType",
"wkt",
"index_",
"Lexer",
"opt_decimal",
"nextChar_",
"isNumeric_",
"readNumber_",
"isAlpha_",
"readText_",
"isWhiteSpace_",
"nextToken",
"scientificNotation",
"lexer_",
"token_",
"isMatch",
"isTokenType",
"consume_",
"parseGeometry_",
"dimToken",
"dimInfo",
"formatErrorMessage_",
"parsePoint_",
"parsePointList_",
"parseLineStringTextList_",
"parsePointTextList_",
"parsePolygonTextList_",
"parsePointText_",
"parseLineStringText_",
"parsePolygonText_",
"parseGeometryLayout_",
"isEmptyGeometry_",
"parseGeometryCollectionText_",
"parseMultiPointText_",
"parseMultiLineStringText_",
"parseMultiPolygonText_",
"splitCollection_",
"WKT",
"parse_",
"encodePointGeometry",
"encodeLineStringGeometry",
"encodePolygonGeometry",
"GeometryEncoder",
"components",
"enc",
"geometryEncoder",
"encodeGeometryLayout",
"SERVICE_PARSERS",
"CAPABILITY_PARSERS",
"REQUEST_PARSERS",
"EXCEPTION_PARSERS",
"layerObject",
"LAYER_PARSERS",
"readLayer",
"WMSCapabilities",
"wmsCapabilityObject",
"readKeywordList",
"CONTACT_INFORMATION_PARSERS",
"CONTACT_PERSON_PARSERS",
"CONTACT_ADDRESS_PARSERS",
"geographicBoundingBox",
"EX_GEOGRAPHIC_BOUNDING_BOX_PARSERS",
"westBoundLongitude",
"southBoundLatitude",
"eastBoundLongitude",
"northBoundLatitude",
"ATTRIBUTION_PARSERS",
"authorityObject",
"readFormatOnlineresource",
"metadataObject",
"readSizedFormatOnlineresource",
"readOperationType",
"OPERATIONTYPE_PARSERS",
"DCPTYPE_PARSERS",
"FORMAT_ONLINERESOURCE_PARSERS",
"KEYWORDLIST_PARSERS",
"parentLayerObject",
"queryable",
"cascaded",
"noSubsets",
"fixedWidth",
"fixedHeight",
"childValue",
"parentValue",
"formatOnlineresource",
"WMSGetFeatureInfo",
"layerElement",
"layerFeatures",
"gmlFeatures",
"readFeatures_",
"OWS_NAMESPACE_URIS",
"CONTENTS_PARSERS",
"owsParser_",
"WMTSCapabilities",
"WMTSCapabilityObject",
"TMS_PARSERS",
"isDefault",
"TMS_LINKS_PARSERS",
"DIMENSION_PARSERS",
"resourceType",
"readBoundingBox",
"legend",
"TMS_LIMITS_LIST_PARSERS",
"TMS_LIMITS_PARSERS",
"WGS84_BBOX_READERS",
"readCoordinates",
"TM_PARSERS",
"events",
"FullScreenEventType",
"isFullScreenSupported",
"requestFullscreen",
"fullscreenEnabled",
"isFullScreen",
"fullscreenElement",
"requestFullScreen",
"isInFullscreen_",
"boundHandleMapTargetChange_",
"handleMapTargetChange_",
"cssClassName_",
"documentListeners_",
"activeClassName_",
"activeClassName",
"inactiveClassName_",
"inactiveClassName",
"labelNode_",
"labelActive",
"labelActiveNode_",
"button_",
"setClassName_",
"FullScreen",
"handleFullScreen_",
"exitFullscreen",
"exitFullScreen",
"requestFullScreenWithKeys",
"wasInFullscreen",
"fullscreen",
"_c",
"_d",
"handleFullScreenChange_",
"PROJECTION",
"COORDINATE_FORMAT",
"coordinateFormat",
"setCoordinateFormat",
"renderOnMouseOut",
"placeholder",
"undefinedHTML",
"placeholder_",
"renderOnMouseOut_",
"renderedHTML_",
"mapProjection_",
"MousePosition",
"updateHTML_",
"handleMouseMove",
"handleMouseOut",
"html",
"getCoordinateFormat",
"MAX_RATIO",
"MIN_RATIO",
"ControlledMap",
"boundHandleRotationChanged_",
"handleRotationChanged_",
"viewExtent_",
"ovmapDiv_",
"ovmap_",
"ovmap",
"addLayer",
"boxSizing",
"boxOverlay_",
"addOverlay",
"overlayBox",
"mousePosition",
"getEventCoordinateInternal",
"endMoving",
"OverviewMap",
"oldView",
"unbindView_",
"handleMapPropertyChange_",
"bindView_",
"resetExtent_",
"updateBoxAfterOvmapIsRendered_",
"newView",
"equalsExtent",
"ovmapSize",
"ovextent",
"topLeftPixel",
"bottomRightPixel",
"boxWidth",
"boxHeight",
"ovmapWidth",
"ovmapHeight",
"recenter_",
"ovview",
"ovresolution",
"ovmapPostrenderKey_",
"updateBox_",
"validateExtent_",
"UNITS_PROP",
"LEADING_DIGITS",
"DEFAULT_DPI",
"bar",
"innerElement_",
"viewState_",
"minWidth_",
"minWidth",
"renderedWidth_",
"handleUnitsChanged_",
"setUnits",
"scaleBar_",
"scaleBarSteps_",
"scaleBarText_",
"dpi_",
"ScaleLine",
"pointResolutionUnits",
"ProjUnits",
"nominalCount",
"suffix",
"metersPerDegree",
"decimalCount",
"createScaleBar",
"mapScale",
"getScaleForResolution",
"scaleSteps",
"stepWidth",
"createMarker",
"createStepText",
"isLast",
"lengthString",
"Direction",
"currentResolution_",
"direction_",
"heightLimit_",
"widthLimit_",
"startX_",
"startY_",
"thumbSize_",
"sliderInitialized_",
"thumbElement",
"containerElement",
"handleDraggerStart_",
"handleDraggerDrag_",
"handleDraggerEnd_",
"handleContainerClick_",
"ZoomSlider",
"containerWidth",
"containerHeight",
"containerStyle",
"thumb",
"thumbStyle",
"thumbWidth",
"thumbHeight",
"relativePosition",
"getRelativePosition_",
"getResolutionForPosition_",
"drag",
"getPositionForResolution_",
"getResolutionForValueFunction",
"getValueForResolutionFunction",
"initSlider_",
"setThumbPosition_",
"ZoomToExtent",
"handleZoomToExtent",
"ol",
"$ol$AssertionError",
"$ol$Collection",
"_ol_Collection$CollectionEvent",
"$ol$DataTile",
"$ol$Disposable",
"$ol$Feature",
"_ol_Feature$createStyleFunction",
"$ol$Geolocation",
"$ol$Image",
"_ol_Image$listenImage",
"$ol$ImageBase",
"$ol$ImageCanvas",
"$ol$ImageTile",
"$ol$Kinetic",
"$ol$Map",
"$ol$MapBrowserEvent",
"$ol$MapBrowserEventHandler",
"$ol$MapEvent",
"$ol$Object",
"_ol_Object$ObjectEvent",
"$ol$Observable",
"_ol_Observable$unByKey",
"$ol$Overlay",
"$ol$PluggableMap",
"$ol$Tile",
"$ol$TileCache",
"$ol$TileQueue",
"_ol_TileQueue$getTilePriority",
"$ol$TileRange",
"_ol_TileRange$createOrUpdate",
"$ol$VectorRenderTile",
"$ol$VectorTile",
"$ol$View",
"_ol_View$createCenterConstraint",
"_ol_View$createResolutionConstraint",
"_ol_View$createRotationConstraint",
"_ol_View$isNoopAnimation",
"_ol_array$binarySearch",
"_ol_array$equals",
"_ol_array$extend",
"_ol_array$find",
"_ol_array$findIndex",
"_ol_array$includes",
"_ol_array$isSorted",
"_ol_array$linearFindNearest",
"_ol_array$numberSafeCompareFunction",
"_ol_array$reverseSubArray",
"stableSort",
"compareFnc",
"asserts",
"_ol_asserts$assert",
"centerconstraint",
"_ol_centerconstraint$createExtent",
"_ol_centerconstraint$none",
"_ol_color$asArray",
"_ol_color$asString",
"_ol_color$fromString",
"_ol_color$isStringColor",
"_ol_color$normalize",
"_ol_color$toString",
"colorlike",
"_ol_colorlike$asColorLike",
"$ol$control$Attribution",
"$ol$control$Control",
"$ol$control$FullScreen",
"$ol$control$MousePosition",
"$ol$control$OverviewMap",
"$ol$control$Rotate",
"$ol$control$ScaleLine",
"$ol$control$Zoom",
"$ol$control$ZoomSlider",
"$ol$control$ZoomToExtent",
"_ol_control$defaults",
"_ol_coordinate$add",
"_ol_coordinate$closestOnCircle",
"_ol_coordinate$closestOnSegment",
"createStringXY",
"_ol_coordinate$degreesToStringHDMS",
"_ol_coordinate$distance",
"_ol_coordinate$equals",
"_ol_coordinate$format",
"_ol_coordinate$getWorldsAway",
"_ol_coordinate$rotate",
"_ol_coordinate$scale",
"_ol_coordinate$squaredDistance",
"_ol_coordinate$squaredDistanceToSegment",
"toStringHDMS",
"_ol_coordinate$toStringXY",
"_ol_coordinate$wrapX",
"css",
"_ol_css$CLASS_COLLAPSED",
"_ol_css$CLASS_CONTROL",
"_ol_css$CLASS_HIDDEN",
"_ol_css$CLASS_SELECTABLE",
"_ol_css$CLASS_UNSELECTABLE",
"_ol_css$CLASS_UNSUPPORTED",
"_ol_css$cssOpacity",
"_ol_css$getFontParameters",
"dom",
"_ol_dom$createCanvasContext2D",
"_ol_dom$outerHeight",
"_ol_dom$outerWidth",
"_ol_dom$removeChildren",
"_ol_dom$removeNode",
"_ol_dom$replaceChildren",
"_ol_dom$replaceNode",
"_ol_easing$easeIn",
"_ol_easing$easeOut",
"_ol_easing$inAndOut",
"_ol_easing$linear",
"upAndDown",
"$ol$events$Event",
"_ol_events_Event$stopPropagation",
"$ol$events$Target",
"_ol_events_condition$all",
"_ol_events_condition$altKeyOnly",
"_ol_events_condition$altShiftKeysOnly",
"_ol_events_condition$always",
"click",
"doubleClick",
"_ol_events_condition$focus",
"_ol_events_condition$focusWithTabindex",
"_ol_events_condition$mouseActionButton",
"_ol_events_condition$mouseOnly",
"_ol_events_condition$never",
"_ol_events_condition$noModifierKeys",
"penOnly",
"pointerEvt",
"platformModifierKeyOnly",
"pointerMove",
"_ol_events_condition$primaryAction",
"_ol_events_condition$shiftKeyOnly",
"_ol_events_condition$singleClick",
"_ol_events_condition$targetNotEditable",
"touchOnly",
"_ol_events$listen",
"_ol_events$listenOnce",
"_ol_events$unlistenByKey",
"_ol_extent$applyTransform",
"_ol_extent$approximatelyEquals",
"_ol_extent$boundingExtent",
"_ol_extent$buffer",
"_ol_extent$clone",
"_ol_extent$closestSquaredDistanceXY",
"_ol_extent$containsCoordinate",
"_ol_extent$containsExtent",
"_ol_extent$containsXY",
"_ol_extent$coordinateRelationship",
"_ol_extent$createEmpty",
"_ol_extent$createOrUpdate",
"_ol_extent$createOrUpdateEmpty",
"_ol_extent$createOrUpdateFromCoordinate",
"createOrUpdateFromCoordinates",
"_ol_extent$createOrUpdateFromFlatCoordinates",
"createOrUpdateFromRings",
"_ol_extent$equals",
"_ol_extent$extend",
"_ol_extent$extendCoordinate",
"_ol_extent$extendCoordinates",
"_ol_extent$extendFlatCoordinates",
"_ol_extent$extendRings",
"_ol_extent$extendXY",
"_ol_extent$forEachCorner",
"_ol_extent$getArea",
"_ol_extent$getBottomLeft",
"_ol_extent$getBottomRight",
"_ol_extent$getCenter",
"_ol_extent$getCorner",
"getEnlargedArea",
"_ol_extent$getForViewAndSize",
"_ol_extent$getHeight",
"_ol_extent$getIntersection",
"getIntersectionArea",
"getMargin",
"_ol_extent$getTopLeft",
"_ol_extent$getTopRight",
"_ol_extent$getWidth",
"_ol_extent$intersects",
"_ol_extent$intersectsSegment",
"_ol_extent$isEmpty",
"_ol_extent$returnOrUpdate",
"_ol_extent$scaleFromCenter",
"_ol_extent$wrapX",
"featureloader",
"_ol_featureloader$loadFeaturesXhr",
"setWithCredentials",
"xhrWithCredentials",
"_ol_featureloader$xhr",
"$ol$format$EsriJSON",
"$ol$format$Feature",
"_ol_format_Feature$transformExtentWithOptions",
"_ol_format_Feature$transformGeometryWithOptions",
"$ol$format$GML",
"$ol$format$GML2",
"$ol$format$GML3",
"$ol$format$GML32",
"$ol$format$GMLBase",
"_ol_format_GMLBase$GMLNS",
"$ol$format$GPX",
"$ol$format$GeoJSON",
"$ol$format$IGC",
"$ol$format$IIIFInfo",
"$ol$format$JSONFeature",
"$ol$format$KML",
"getDefaultFillStyle",
"getDefaultImageStyle",
"getDefaultStrokeStyle",
"getDefaultStyle",
"getDefaultStyleArray",
"getDefaultTextStyle",
"_ol_format_KML$readFlatCoordinates",
"$ol$format$MVT",
"$ol$format$OSMXML",
"$ol$format$OWS",
"$ol$format$Polyline",
"_ol_format_Polyline$decodeDeltas",
"_ol_format_Polyline$decodeFloats",
"_ol_format_Polyline$decodeSignedIntegers",
"_ol_format_Polyline$decodeUnsignedIntegers",
"_ol_format_Polyline$encodeDeltas",
"_ol_format_Polyline$encodeFloats",
"_ol_format_Polyline$encodeSignedIntegers",
"_ol_format_Polyline$encodeUnsignedInteger",
"_ol_format_Polyline$encodeUnsignedIntegers",
"$ol$format$TextFeature",
"$ol$format$TopoJSON",
"$ol$format$WFS",
"writeFilter",
"opt_version",
"$ol$format$WKB",
"$ol$format$WKT",
"$ol$format$WMSCapabilities",
"$ol$format$WMSGetFeatureInfo",
"$ol$format$WMTSCapabilities",
"$ol$format$XML",
"$ol$format$XMLFeature",
"$ol$format$filter$And",
"$ol$format$filter$Bbox",
"$ol$format$filter$Comparison",
"$ol$format$filter$ComparisonBinary",
"Contains",
"$ol$format$filter$Contains",
"DWithin",
"$ol$format$filter$DWithin",
"Disjoint",
"$ol$format$filter$Disjoint",
"During",
"$ol$format$filter$During",
"EqualTo",
"$ol$format$filter$EqualTo",
"$ol$format$filter$Filter",
"$ol$format$filter$GreaterThan",
"GreaterThanOrEqualTo",
"$ol$format$filter$GreaterThanOrEqualTo",
"Intersects",
"$ol$format$filter$Intersects",
"IsBetween",
"$ol$format$filter$IsBetween",
"IsLike",
"$ol$format$filter$IsLike",
"IsNull",
"$ol$format$filter$IsNull",
"$ol$format$filter$LessThan",
"LessThanOrEqualTo",
"$ol$format$filter$LessThanOrEqualTo",
"$ol$format$filter$LogicalNary",
"Not",
"$ol$format$filter$Not",
"NotEqualTo",
"$ol$format$filter$NotEqualTo",
"Or",
"$ol$format$filter$Or",
"ResourceId",
"$ol$format$filter$ResourceId",
"$ol$format$filter$Spatial",
"$ol$format$filter$Within",
"_ol_format_filter$and",
"_ol_format_filter$bbox",
"between",
"disjoint",
"during",
"dwithin",
"equalTo",
"greaterThan",
"greaterThanOrEqualTo",
"isNull",
"lessThan",
"lessThanOrEqualTo",
"like",
"not",
"notEqualTo",
"or",
"resourceId",
"within",
"xlink",
"_ol_format_xlink$readHref",
"xsd",
"_ol_format_xsd$readBoolean",
"_ol_format_xsd$readBooleanString",
"_ol_format_xsd$readDateTime",
"_ol_format_xsd$readDecimal",
"_ol_format_xsd$readDecimalString",
"_ol_format_xsd$readNonNegativeIntegerString",
"_ol_format_xsd$readPositiveInteger",
"_ol_format_xsd$readString",
"_ol_format_xsd$writeBooleanTextNode",
"_ol_format_xsd$writeCDATASection",
"_ol_format_xsd$writeDateTimeTextNode",
"_ol_format_xsd$writeDecimalTextNode",
"_ol_format_xsd$writeNonNegativeIntegerTextNode",
"_ol_format_xsd$writeStringTextNode",
"_ol_functions$FALSE",
"_ol_functions$TRUE",
"_ol_functions$VOID",
"_ol_functions$memoizeOne",
"_ol_functions$toPromise",
"$ol$geom$Circle",
"$ol$geom$Geometry",
"$ol$geom$GeometryCollection",
"$ol$geom$LineString",
"$ol$geom$LinearRing",
"$ol$geom$MultiLineString",
"$ol$geom$MultiPoint",
"$ol$geom$MultiPolygon",
"$ol$geom$Point",
"$ol$geom$Polygon",
"_ol_geom_Polygon$circular",
"_ol_geom_Polygon$fromCircle",
"_ol_geom_Polygon$fromExtent",
"_ol_geom_Polygon$makeRegular",
"$ol$geom$SimpleGeometry",
"_ol_geom_SimpleGeometry$getStrideForLayout",
"_ol_geom_SimpleGeometry$transformGeom2D",
"_ol_geom_flat_area$linearRing",
"_ol_geom_flat_area$linearRings",
"_ol_geom_flat_area$linearRingss",
"_ol_geom_flat_center$linearRingss",
"closest",
"_ol_geom_flat_closest$arrayMaxSquaredDelta",
"_ol_geom_flat_closest$assignClosestArrayPoint",
"_ol_geom_flat_closest$assignClosestMultiArrayPoint",
"_ol_geom_flat_closest$assignClosestPoint",
"_ol_geom_flat_closest$maxSquaredDelta",
"_ol_geom_flat_closest$multiArrayMaxSquaredDelta",
"_ol_geom_flat_contains$linearRingContainsExtent",
"_ol_geom_flat_contains$linearRingContainsXY",
"_ol_geom_flat_contains$linearRingsContainsXY",
"_ol_geom_flat_contains$linearRingssContainsXY",
"deflate",
"_ol_geom_flat_deflate$deflateCoordinate",
"_ol_geom_flat_deflate$deflateCoordinates",
"_ol_geom_flat_deflate$deflateCoordinatesArray",
"_ol_geom_flat_deflate$deflateMultiCoordinatesArray",
"flip",
"_ol_geom_flat_flip$flipXY",
"geodesic",
"greatCircleArc",
"geoProjection",
"cosLat1",
"sinLat1",
"cosLat2",
"sinLat2",
"cosDeltaLon",
"sinDeltaLon",
"D",
"cosD",
"sinD",
"_ol_geom_flat_geodesic$meridian",
"_ol_geom_flat_geodesic$parallel",
"inflate",
"_ol_geom_flat_inflate$inflateCoordinates",
"_ol_geom_flat_inflate$inflateCoordinatesArray",
"_ol_geom_flat_inflate$inflateMultiCoordinatesArray",
"interiorpoint",
"_ol_geom_flat_interiorpoint$getInteriorPointOfArray",
"_ol_geom_flat_interiorpoint$getInteriorPointsOfMultiArray",
"_ol_geom_flat_interpolate$interpolatePoint",
"_ol_geom_flat_interpolate$lineStringCoordinateAtM",
"_ol_geom_flat_interpolate$lineStringsCoordinateAtM",
"intersectsextent",
"_ol_geom_flat_intersectsextent$intersectsLineString",
"_ol_geom_flat_intersectsextent$intersectsLineStringArray",
"_ol_geom_flat_intersectsextent$intersectsLinearRing",
"_ol_geom_flat_intersectsextent$intersectsLinearRingArray",
"_ol_geom_flat_intersectsextent$intersectsLinearRingMultiArray",
"_ol_geom_flat_length$lineStringLength",
"linearRingLength",
"perimeter",
"orient",
"_ol_geom_flat_orient$inflateEnds",
"_ol_geom_flat_orient$linearRingIsClockwise",
"_ol_geom_flat_orient$linearRingsAreOriented",
"_ol_geom_flat_orient$linearRingssAreOriented",
"_ol_geom_flat_orient$orientLinearRings",
"_ol_geom_flat_orient$orientLinearRingsArray",
"_ol_geom_flat_reverse$coordinates",
"_ol_geom_flat_segments$forEach",
"simplify",
"_ol_geom_flat_simplify$douglasPeucker",
"_ol_geom_flat_simplify$douglasPeuckerArray",
"douglasPeuckerMultiArray",
"_ol_geom_flat_simplify$quantize",
"_ol_geom_flat_simplify$quantizeArray",
"_ol_geom_flat_simplify$quantizeMultiArray",
"_ol_geom_flat_simplify$radialDistance",
"simplifyLineString",
"highQuality",
"opt_simplifiedFlatCoordinates",
"_ol_geom_flat_simplify$snap",
"straightchunk",
"_ol_geom_flat_straightchunk$matchingChunk",
"textpath",
"_ol_geom_flat_textpath$drawTextOnPath",
"topology",
"lineStringIsClosed",
"lastCoord",
"_ol_geom_flat_transform$rotate",
"_ol_geom_flat_transform$scale",
"_ol_geom_flat_transform$transform2D",
"_ol_geom_flat_transform$translate",
"_ol_has$DEVICE_PIXEL_RATIO",
"_ol_has$FIREFOX",
"_ol_has$IMAGE_DECODE",
"_ol_has$MAC",
"_ol_has$PASSIVE_EVENT_LISTENERS",
"_ol_has$SAFARI",
"_ol_has$SAFARI_BUG_237906",
"_ol_has$WEBKIT",
"_ol_has$WORKER_OFFSCREEN_CANVAS",
"$ol$interaction$DoubleClickZoom",
"$ol$interaction$DragAndDrop",
"_ol_interaction_DragAndDrop$DragAndDropEvent",
"$ol$interaction$DragBox",
"_ol_interaction_DragBox$DragBoxEvent",
"$ol$interaction$DragPan",
"$ol$interaction$DragRotate",
"$ol$interaction$DragRotateAndZoom",
"$ol$interaction$DragZoom",
"$ol$interaction$Draw",
"_ol_interaction_Draw$DrawEvent",
"createBox",
"opt_geometry",
"boxCoordinates",
"createRegularPolygon",
"$ol$interaction$Extent",
"_ol_interaction_Extent$ExtentEvent",
"$ol$interaction$Interaction",
"_ol_interaction_Interaction$pan",
"_ol_interaction_Interaction$zoomByDelta",
"$ol$interaction$KeyboardPan",
"$ol$interaction$KeyboardZoom",
"$ol$interaction$Modify",
"_ol_interaction_Modify$ModifyEvent",
"$ol$interaction$MouseWheelZoom",
"$ol$interaction$PinchRotate",
"$ol$interaction$PinchZoom",
"Pointer",
"$ol$interaction$Pointer",
"_ol_interaction_Pointer$centroid",
"$ol$interaction$Select",
"_ol_interaction_Select$SelectEvent",
"$ol$interaction$Snap",
"$ol$interaction$Translate",
"_ol_interaction_Translate$TranslateEvent",
"_ol_interaction$defaults",
"Base",
"$ol$layer$Base",
"BaseImage",
"$ol$layer$BaseImage",
"BaseTile",
"$ol$layer$BaseTile",
"$ol$layer$BaseVector",
"$ol$layer$Graticule",
"Group",
"$ol$layer$Group",
"_ol_layer_Group$GroupEvent",
"$ol$layer$Heatmap",
"$ol$layer$Image",
"$ol$layer$Layer",
"_ol_layer_Layer$inView",
"MapboxVector",
"$ol$layer$MapboxVector",
"_ol_layer_MapboxVector$getMapboxPath",
"_ol_layer_MapboxVector$normalizeGlyphsUrl",
"_ol_layer_MapboxVector$normalizeSourceUrl",
"_ol_layer_MapboxVector$normalizeSpriteUrl",
"_ol_layer_MapboxVector$normalizeStyleUrl",
"$ol$layer$Tile",
"Vector",
"$ol$layer$Vector",
"VectorImage",
"$ol$layer$VectorImage",
"$ol$layer$VectorTile",
"WebGLPoints",
"$ol$layer$WebGLPoints",
"WebGLTile",
"$ol$layer$WebGLTile",
"loadingstrategy",
"_ol_loadingstrategy$all",
"math",
"_ol_math$ceil",
"_ol_math$clamp",
"_ol_math$cosh",
"_ol_math$floor",
"_ol_math$lerp",
"_ol_math$log2",
"_ol_math$modulo",
"_ol_math$round",
"_ol_math$solveLinearSystem",
"_ol_math$squaredDistance",
"_ol_math$squaredSegmentDistance",
"_ol_math$toDegrees",
"_ol_math$toFixed",
"_ol_math$toRadians",
"net",
"_ol_net$ClientError",
"_ol_net$ResponseError",
"_ol_net$getJSON",
"_ol_net$jsonp",
"overrideXHR",
"_ol_net$resolveUrl",
"restoreXHR",
"_ol_obj$assign",
"_ol_obj$clear",
"_ol_obj$getValues",
"_ol_obj$isEmpty",
"$ol$proj$Projection",
"_ol_proj_Units$METERS_PER_UNIT",
"_ol_proj_Units$fromCode",
"_ol_proj$addCommon",
"_ol_proj$addCoordinateTransforms",
"_ol_proj$addEquivalentProjections",
"_ol_proj$addEquivalentTransforms",
"_ol_proj$addProjection",
"_ol_proj$addProjections",
"clearAllProjections",
"clearProj",
"clearTransformFuncs",
"clearUserProjection",
"_ol_proj$cloneTransform",
"_ol_proj$createProjection",
"_ol_proj$createSafeCoordinateTransform",
"_ol_proj$createTransformFromCoordinateTransform",
"_ol_proj$disableCoordinateWarning",
"epsg3857",
"_ol_proj_epsg3857$EXTENT",
"_ol_proj_epsg3857$HALF_SIZE",
"_ol_proj_epsg3857$MAX_SAFE_Y",
"_ol_proj_epsg3857$PROJECTIONS",
"_ol_proj_epsg3857$RADIUS",
"_ol_proj_epsg3857$WORLD_EXTENT",
"_ol_proj_epsg3857$fromEPSG4326",
"_ol_proj_epsg3857$toEPSG4326",
"epsg4326",
"_ol_proj_epsg4326$EXTENT",
"_ol_proj_epsg4326$METERS_PER_UNIT",
"_ol_proj_epsg4326$PROJECTIONS",
"_ol_proj_epsg4326$RADIUS",
"_ol_proj$equivalent",
"_ol_proj$fromLonLat",
"_ol_proj$fromUserCoordinate",
"_ol_proj$fromUserExtent",
"_ol_proj$fromUserResolution",
"_ol_proj$get",
"_ol_proj$getPointResolution",
"_ol_proj$getTransform",
"_ol_proj$getTransformFromProjections",
"_ol_proj$getUserProjection",
"_ol_proj$identityTransform",
"proj4",
"projCodes",
"defs",
"def",
"projName",
"to_meter",
"code1",
"proj1",
"code2",
"proj2",
"_ol_proj_projections$add",
"_ol_proj_projections$clear",
"_ol_proj_projections$get",
"_ol_proj$setUserProjection",
"toLonLat",
"lonLat",
"_ol_proj$toUserCoordinate",
"_ol_proj$toUserExtent",
"_ol_proj$toUserResolution",
"_ol_proj$transform",
"_ol_proj$transformExtent",
"transformWithProjections",
"_ol_proj_transforms$add",
"_ol_proj_transforms$clear",
"_ol_proj_transforms$get",
"useGeographic",
"Box",
"$ol$render$Box",
"$ol$render$Event",
"$ol$render$Feature",
"toFeature",
"opt_geometryName",
"_ol_render_Feature$toGeometry",
"$ol$render$VectorContext",
"$ol$render$canvas$Builder",
"$ol$render$canvas$BuilderGroup",
"$ol$render$canvas$Executor",
"$ol$render$canvas$ExecutorGroup",
"_ol_render_canvas_ExecutorGroup$getPixelIndexArray",
"$ol$render$canvas$ImageBuilder",
"Immediate",
"$ol$render$canvas$Immediate",
"_ol_render_canvas_Instruction$beginPathInstruction",
"_ol_render_canvas_Instruction$closePathInstruction",
"_ol_render_canvas_Instruction$fillInstruction",
"_ol_render_canvas_Instruction$strokeInstruction",
"$ol$render$canvas$LineStringBuilder",
"$ol$render$canvas$PolygonBuilder",
"$ol$render$canvas$TextBuilder",
"_ol_render_canvas$checkedFonts",
"_ol_render_canvas$defaultFillStyle",
"_ol_render_canvas$defaultFont",
"_ol_render_canvas$defaultLineCap",
"_ol_render_canvas$defaultLineDash",
"defaultLineDashOffset",
"_ol_render_canvas$defaultLineJoin",
"defaultLineWidth",
"_ol_render_canvas$defaultMiterLimit",
"_ol_render_canvas$defaultPadding",
"_ol_render_canvas$defaultStrokeStyle",
"_ol_render_canvas$defaultTextAlign",
"_ol_render_canvas$defaultTextBaseline",
"_ol_render_canvas$drawImageOrLabel",
"_ol_render_canvas$getTextDimensions",
"hitdetect",
"_ol_render_canvas_hitdetect$HIT_DETECT_RESOLUTION",
"_ol_render_canvas_hitdetect$createHitDetectionImageData",
"_ol_render_canvas_hitdetect$hitDetect",
"_ol_render_canvas$labelCache",
"_ol_render_canvas$measureAndCacheTextWidth",
"_ol_render_canvas$measureTextHeight",
"_ol_render_canvas$measureTextWidth",
"_ol_render_canvas$registerFont",
"rotateAtOffset",
"_ol_render_canvas$textHeights",
"getRenderPixel",
"_ol_render$getVectorContext",
"toContext",
"Composite",
"$ol$renderer$Composite",
"$ol$renderer$Layer",
"$ol$renderer$Map",
"$ol$renderer$canvas$ImageLayer",
"$ol$renderer$canvas$Layer",
"$ol$renderer$canvas$TileLayer",
"$ol$renderer$canvas$VectorImageLayer",
"$ol$renderer$canvas$VectorLayer",
"$ol$renderer$canvas$VectorTileLayer",
"common",
"_ol_renderer_canvas_common$IMAGE_SMOOTHING_DISABLED",
"_ol_renderer_canvas_common$IMAGE_SMOOTHING_ENABLED",
"vector",
"_ol_renderer_vector$defaultOrder",
"_ol_renderer_vector$getSquaredTolerance",
"_ol_renderer_vector$getTolerance",
"_ol_renderer_vector$renderFeature",
"webgl",
"$ol$renderer$webgl$Layer",
"_ol_renderer_webgl_Layer$colorDecodeId",
"_ol_renderer_webgl_Layer$colorEncodeId",
"getBlankImageData",
"writePointFeatureToBuffers",
"elementIndex",
"bufferPositions",
"customAttrs",
"vPos",
"iPos",
"baseIndex",
"PointsLayer",
"$ol$renderer$webgl$PointsLayer",
"$ol$renderer$webgl$TileLayer",
"_ol_renderer_webgl_TileLayer$Attributes",
"_ol_renderer_webgl_TileLayer$Uniforms",
"reproj",
"$ol$reproj$Image",
"$ol$reproj$Tile",
"$ol$reproj$Triangulation",
"_ol_reproj$calculateSourceExtentResolution",
"_ol_reproj$calculateSourceResolution",
"_ol_reproj_common$ENABLE_RASTER_REPROJECTION",
"ERROR_THRESHOLD",
"_ol_reproj$render",
"resolutionconstraint",
"_ol_resolutionconstraint$createMinMaxResolution",
"_ol_resolutionconstraint$createSnapToPower",
"_ol_resolutionconstraint$createSnapToResolutions",
"rotationconstraint",
"_ol_rotationconstraint$createSnapToN",
"_ol_rotationconstraint$createSnapToZero",
"_ol_rotationconstraint$disable",
"_ol_rotationconstraint$none",
"_ol_size$buffer",
"_ol_size$hasArea",
"_ol_size$scale",
"_ol_size$toSize",
"$ol$source$BingMaps",
"_ol_source_BingMaps$quadKey",
"$ol$source$CartoDB",
"$ol$source$Cluster",
"$ol$source$DataTile",
"$ol$source$GeoTIFF",
"IIIF",
"$ol$source$IIIF",
"$ol$source$Image",
"_ol_source_Image$ImageSourceEvent",
"_ol_source_Image$defaultImageLoadFunction",
"$ol$source$ImageArcGISRest",
"$ol$source$ImageCanvas",
"$ol$source$ImageMapGuide",
"ImageStatic",
"$ol$source$ImageStatic",
"$ol$source$ImageWMS",
"$ol$source$OGCMapTile",
"$ol$source$OGCVectorTile",
"OSM",
"$ol$source$OSM",
"_ol_source_OSM$ATTRIBUTION",
"Raster",
"$ol$source$Raster",
"_ol_source_Raster$Processor",
"_ol_source_Raster$RasterSourceEvent",
"_ol_source_Raster$newImageData",
"$ol$source$Source",
"Stamen",
"$ol$source$Stamen",
"$ol$source$Tile",
"_ol_source_Tile$TileSourceEvent",
"$ol$source$TileArcGISRest",
"TileDebug",
"$ol$source$TileDebug",
"$ol$source$TileImage",
"$ol$source$TileJSON",
"$ol$source$TileWMS",
"$ol$source$UTFGrid",
"_ol_source_UTFGrid$CustomTile",
"$ol$source$UrlTile",
"$ol$source$Vector",
"_ol_source_Vector$VectorSourceEvent",
"$ol$source$VectorTile",
"_ol_source_VectorTile$defaultLoadFunction",
"$ol$source$WMTS",
"optionsFromCapabilities",
"wmtsCap",
"tileMatrixSets",
"supportedCRS",
"matrixSetObj",
"projConfig",
"TileMatrix",
"selectedMatrixLimit",
"MinTileCol",
"MinTileRow",
"MaxTileCol",
"MatrixWidth",
"MaxTileRow",
"MatrixHeight",
"tileMatrixValue",
"Identifier",
"ScaleDenominator",
"TopLeftCorner",
"tileSpanX",
"tileSpanY",
"TileHeight",
"matrixSetExtent",
"wgs84BoundingBox",
"wgs84ProjectionExtent",
"wgs84MatrixSetExtent",
"gets",
"encodings",
"$ol$source$XYZ",
"Zoomify",
"$ol$source$Zoomify",
"_ol_source_Zoomify$CustomTile",
"_ol_source_common$DEFAULT_WMS_VERSION",
"ogcTileUtil",
"_ol_source_ogcTileUtil$getMapTileUrlTemplate",
"_ol_source_ogcTileUtil$getTileSetInfo",
"_ol_source_ogcTileUtil$getVectorTileUrlTemplate",
"sourcesFromTileGrid",
"sourceCache",
"tileGridExtent",
"wantedSources",
"sphere",
"_ol_sphere$DEFAULT_RADIUS",
"_ol_sphere$getDistance",
"_ol_sphere$offset",
"_ol_string$compareVersions",
"_ol_string$padNumber",
"structs",
"$ol$structs$LRUCache",
"$ol$structs$LinkedList",
"$ol$structs$PriorityQueue",
"_ol_structs_PriorityQueue$DROP",
"$ol$structs$RBush",
"$ol$style$Circle",
"$ol$style$Fill",
"$ol$style$Icon",
"$ol$style$IconImage",
"_ol_style_IconImage$get",
"$ol$style$IconImageCache",
"_ol_style_IconImageCache$shared",
"$ol$style$Image",
"$ol$style$RegularShape",
"$ol$style$Stroke",
"$ol$style$Style",
"_ol_style_Style$createDefaultStyle",
"_ol_style_Style$createEditingStyle",
"_ol_style_Style$toFunction",
"$ol$style$Text",
"_ol_style_expressions$Operators",
"_ol_style_expressions$PALETTE_TEXTURE_ARRAY",
"_ol_style_expressions$arrayToGlsl",
"_ol_style_expressions$colorToGlsl",
"_ol_style_expressions$expressionToGlsl",
"_ol_style_expressions$getStringNumberEquivalent",
"_ol_style_expressions$getValueType",
"_ol_style_expressions$isTypeUnique",
"_ol_style_expressions$numberToGlsl",
"_ol_style_expressions$stringToGlsl",
"_ol_style_expressions$uniformNameForVariable",
"tilecoord",
"_ol_tilecoord$createOrUpdate",
"_ol_tilecoord$fromKey",
"_ol_tilecoord$getCacheKeyForTileKey",
"_ol_tilecoord$getKey",
"_ol_tilecoord$getKeyZXY",
"_ol_tilecoord$hash",
"_ol_tilecoord$withinExtentAndZ",
"$ol$tilegrid$TileGrid",
"$ol$tilegrid$WMTS",
"_ol_tilegrid_WMTS$createFromCapabilitiesMatrixSet",
"DEFAULT_MAX_ZOOM",
"_ol_tilegrid_common$DEFAULT_TILE_SIZE",
"_ol_tilegrid$createForExtent",
"_ol_tilegrid$createForProjection",
"_ol_tilegrid$createXYZ",
"_ol_tilegrid$extentFromProjection",
"_ol_tilegrid$getForProjection",
"_ol_tilegrid$wrapX",
"tileurlfunction",
"_ol_tileurlfunction$createFromTemplate",
"_ol_tileurlfunction$createFromTemplates",
"_ol_tileurlfunction$createFromTileUrlFunctions",
"_ol_tileurlfunction$expandUrl",
"_ol_tileurlfunction$nullTileUrlFunction",
"_ol_transform$apply",
"_ol_transform$compose",
"composeCssTransform",
"_ol_transform$create",
"_ol_transform$determinant",
"invert",
"_ol_transform$makeInverse",
"_ol_transform$makeScale",
"_ol_transform$multiply",
"_ol_transform$reset",
"_ol_transform$rotate",
"_ol_transform$scale",
"_ol_transform$set",
"_ol_transform$setFromArray",
"_ol_transform$toString",
"_ol_transform$translate",
"_ol_uri$appendParams",
"_ol_util$VERSION",
"_ol_util$abstract",
"_ol_util$getUid",
"vec",
"_ol_vec_mat4$create",
"_ol_vec_mat4$fromTransform",
"_ol_webgl$ARRAY_BUFFER",
"$ol$webgl$Buffer",
"_ol_webgl_Buffer$getArrayClassForType",
"_ol_webgl$DYNAMIC_DRAW",
"_ol_webgl$ELEMENT_ARRAY_BUFFER",
"_ol_webgl$FLOAT",
"Helper",
"$ol$webgl$Helper",
"_ol_webgl_Helper$computeAttributesStride",
"$ol$webgl$PaletteTexture",
"PostProcessingPass",
"$ol$webgl$PostProcessingPass",
"RenderTarget",
"$ol$webgl$RenderTarget",
"_ol_webgl$STATIC_DRAW",
"STREAM_DRAW",
"_ol_webgl_ShaderBuilder$ShaderBuilder",
"_ol_webgl_ShaderBuilder$parseLiteralStyle",
"$ol$webgl$TileTexture",
"_ol_webgl$getContext",
"getSupportedExtensions",
"_ol_xml$OBJECT_PROPERTY_NODE_FACTORY",
"_ol_xml$XML_SCHEMA_INSTANCE_URI",
"_ol_xml$createElementNS",
"_ol_xml$getAllTextContent",
"_ol_xml$getAllTextContent_",
"_ol_xml$getAttributeNS",
"_ol_xml$getDocument",
"_ol_xml$getXMLSerializer",
"_ol_xml$isDocument",
"_ol_xml$makeArrayExtender",
"_ol_xml$makeArrayPusher",
"_ol_xml$makeArraySerializer",
"_ol_xml$makeChildAppender",
"_ol_xml$makeObjectPropertyPusher",
"_ol_xml$makeObjectPropertySetter",
"_ol_xml$makeReplacer",
"_ol_xml$makeSequence",
"_ol_xml$makeSimpleNodeFactory",
"_ol_xml$makeStructureNS",
"_ol_xml$parse",
"_ol_xml$parseNode",
"_ol_xml$pushParseAndPop",
"_ol_xml$pushSerializeAndPop",
"registerDocument",
"registerXMLSerializer",
"xmlSerializer",
"_ol_xml$serialize",
"fieldTags",
"StripRowCounts",
"SubIFDs",
"fieldTypeNames",
"WhiteIsZero",
"BlackIsZero",
"Palette",
"TransparencyMask",
"CMYK",
"YCbCr",
"CIELab",
"ICCLab",
"Unspecified",
"Assocalpha",
"Unassalpha",
"LercParameters",
"Version",
"AddCompression",
"LercAddCompression",
"None",
"Deflate",
"__webpack_module_cache__",
"__webpack_require__",
"moduleId",
"cachedModule",
"__webpack_modules__",
"chunkId",
"needAttach",
"scripts",
"charset",
"nc",
"onScriptComplete",
"doneFns",
"nmd",
"scriptUrl",
"importScripts",
"currentScript",
"installedChunks",
"installedChunkData",
"errorType",
"realSrc",
"webpackJsonpCallback",
"parentChunkLoadingFunction",
"chunkIds",
"moreModules",
"chunkLoadingGlobal",
"__webpack_exports__"
],
"sourceRoot": ""
}