{"version":3,"sources":["jsdelivr-header.js","/npm/react-leaflet-geojson-patterns@1.1.0/node_modules/lodash.isfunction/index.js","/npm/react-leaflet-geojson-patterns@1.1.0/src/GeoJSONFillable.js","/npm/react-leaflet-geojson-patterns@1.1.0/src/patterns/leaflet.pattern.js","/npm/react-leaflet-geojson-patterns@1.1.0/src/patterns/StripePattern.js","/npm/react-leaflet-geojson-patterns@1.1.0/src/patterns/BasePattern.js","/npm/react-leaflet-geojson-patterns@1.1.0/src/patterns/CirclePattern.js","/npm/react-leaflet-geojson-patterns@1.1.0/src/patterns/RectPattern.js","/npm/react-leaflet-geojson-patterns@1.1.0/src/patterns/PathPattern.js","/npm/react-leaflet-geojson-patterns@1.1.0/src/patterns/CheckerBoardPattern.js","/npm/react-leaflet-geojson-patterns@1.1.0/src/patterns/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,6PCII,SAAW,yBACX,QAAU,oBACV,OAAS,6BACT,QAAU,gBACV,SAAW,iBACX,aAAe,qBAGf,WAA8B,iBAAV,gBAAsB,gBAAU,eAAO,SAAW,QAAU,eAGhF,SAA0B,iBAAR,MAAoB,MAAQ,KAAK,SAAW,QAAU,KAGxE,KAAO,YAAc,UAAY,SAAS,cAAT,GAGjC,YAAc,OAAO,UAGrB,eAAiB,YAAY,eAO7B,qBAAuB,YAAY,SAGnC,SAAS,KAAK,OACd,eAAiB,SAAS,SAAO,iBAAc,EASnD,SAAS,WAAW,GAClB,OAAa,MAAT,OACe,IAAV,EAAsB,aAAe,QAEtC,gBAAkB,kBAAkB,OAAO,GAC/C,UAAU,GACV,eAAe,E,CAUrB,SAAS,UAAU,GACjB,IAAI,EAAQ,eAAe,KAAK,EAAO,gBACnC,EAAM,EAAM,gBAEhB,IACE,EAAM,qBAAkB,C,CAExB,MAAO,GAAG,CAEZ,IAAI,EAAS,qBAAqB,KAAK,GAQvC,OANM,EACF,EAAM,gBAAkB,SAEjB,EAAM,gBAGV,C,CAUT,SAAS,eAAe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OAAO,EAcJ,cAAgB,SAAA,G,OAAW,IAAI,IAAE,cAAc,E,ECdtD,IAAI,OAAO,EACJ,YAAc,SAAC,EAAS,G,IAC7B,EAAQ,IAAI,EAAM,GAClB,EAAU,IAAI,IAAE,QAAQ,G,SACtB,SAAS,GACV,C,ECHH,IAAI,OAAO,EAWJ,cAAgB,SAAA,G,OAAW,YAAY,EAAS,IAAE,c,ECXzD,IAAI,OAAO,EAcJ,YAAc,SAAA,G,OAAW,YAAY,EAAS,IAAE,Y,ECdvD,IAAI,OAAO,EAQJ,YAAc,SAAA,G,OAAW,YAAY,EAAS,IAAE,Y,ECVvD,IAAI,OAAO,EAWJ,oBAAsB,SAAC,G,OAAY,IAAI,IAAE,oBAAoB,E,ECL1E,MAAe,CAAE,4BAAe,4BAAe,wBAAa,wBAAa,yC","file":"/npm/react-leaflet-geojson-patterns@1.1.0/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-leaflet-geojson-patterns@1.1.0/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/**\n * Lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright JS Foundation and other contributors <https://js.foundation/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n    funcTag = '[object Function]',\n    genTag = '[object GeneratorFunction]',\n    nullTag = '[object Null]',\n    proxyTag = '[object Proxy]',\n    undefinedTag = '[object Undefined]';\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar Symbol = root.Symbol,\n    symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n  if (value == null) {\n    return value === undefined ? undefinedTag : nullTag;\n  }\n  return (symToStringTag && symToStringTag in Object(value))\n    ? getRawTag(value)\n    : objectToString(value);\n}\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n  var isOwn = hasOwnProperty.call(value, symToStringTag),\n      tag = value[symToStringTag];\n\n  try {\n    value[symToStringTag] = undefined;\n    var unmasked = true;\n  } catch (e) {}\n\n  var result = nativeObjectToString.call(value);\n  if (unmasked) {\n    if (isOwn) {\n      value[symToStringTag] = tag;\n    } else {\n      delete value[symToStringTag];\n    }\n  }\n  return result;\n}\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n  return nativeObjectToString.call(value);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n  if (!isObject(value)) {\n    return false;\n  }\n  // The use of `Object#toString` avoids issues with the `typeof` operator\n  // in Safari 9 which returns 'object' for typed arrays and other constructors.\n  var tag = baseGetTag(value);\n  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n  var type = typeof value;\n  return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isFunction;\n","import { Path, withLeaflet } from 'react-leaflet';\nimport { GeoJSON as LeafletGeoJSON } from 'leaflet';\nimport isFunction from 'lodash.isfunction';\n\n/**\n * GeoJSON supported fillPattern style\n */\nclass GeoJSONFillable extends Path {\n  createLeafletElement(props) {\n    const el = new LeafletGeoJSON(props.data, this.getOptions(props));\n    el.once('add', e => {\n      this.addedNotExistedPatterns(e.target.getLayers(), props.style);\n    });\n    return el;\n  }\n\n  updateLeafletElement(fromProps, toProps) {\n    if (isFunction(toProps.style)) {\n      this.addedNotExistedPatterns(\n        this.leafletElement.getLayers(),\n        toProps.style\n      );\n      this.setStyle(toProps.style);\n    } else {\n      if (fromProps.style.fillPattern !== toProps.style.fillPattern) {\n        this.addPatternToLayer(toProps.style.fillPattern, this);\n      }\n      this.setStyleIfChanged(fromProps, toProps);\n    }\n  }\n\n  addedNotExistedPatterns = (layers, style) => {\n    const {\n      leaflet: { map },\n    } = this.props;\n    if (!style) return;\n    if (isFunction(style))\n      layers.forEach(layer => {\n        const featureStyle = style(layer.feature);\n        if (\n          featureStyle.fillPattern &&\n          !map.hasPattern(featureStyle.fillPattern)\n        ) {\n          map.once('patternadd', ({ pattern }) => {\n            // console.log('added', pattern, layer);\n            setTimeout(() => layer.setStyle({ fillPattern: pattern }), 0);\n          });\n          map.addPattern(featureStyle.fillPattern);\n        }\n      });\n    else if (style.fillPattern) {\n      this.addPatternToLayer(style.fillPattern, this);\n    }\n  };\n  addPatternToLayer = (pattern, layer) => {\n    const {\n      leaflet: { map },\n    } = this.props;\n    if (!map.hasPattern(pattern)) {\n      map.once('patternadd', ({ pattern }) => {\n        setTimeout(() => layer.setStyle({ fillPattern: pattern }), 0);\n      });\n      map.addPattern(pattern);\n    } else {\n      layer.setStyle({ fillPattern: pattern });\n    }\n  };\n}\n/** @component */\nexport default withLeaflet(GeoJSONFillable);\n","/*\n Leaflet.pattern, Provides tools to set the backgrounds of vector shapes in Leaflet to be patterns.\n https://github.com/teastman/Leaflet.pattern\n (c) 2015, Tyler Eastman\n*/\nlet getId = value => {\n  const id = value.options.key || L.stamp(value)\n  return id\n}\nlet L = window.L;\n\n(function(window, document, undefined) {\n  /*\n * L.Pattern is the base class for fill patterns for leaflet Paths.\n */\n\n  L.Pattern = L.Class.extend({\n    includes: L.Evented.prototype || L.Mixin.Events,\n\n    options: {\n      x: 0,\n      y: 0,\n      width: 8,\n      height: 8,\n      patternUnits: 'userSpaceOnUse',\n      patternContentUnits: 'userSpaceOnUse',\n      key: ''\n      // angle: <0 - 360>\n      // patternTransform: <transform-list>\n    },\n\n    _addShapes: L.Util.falseFn,\n    _update: L.Util.falseFn,\n\n    initialize: function(options) {\n      this._shapes = {}\n      if (!options.key) throw Error('Should define a unique option key')\n      L.setOptions(this, options)\n    },\n\n    onAdd: function(map) {\n      this._map = map.target ? map.target : map\n      if (!this._map._initDefRoot) {\n        debugger\n      }\n      this._map._initDefRoot()\n\n      // Create the DOM Object for the pattern.\n      this._initDom()\n\n      // Any shapes that were added before this was added to the map need to have their onAdd called.\n      for (var i in this._shapes) {\n        this._shapes[i].onAdd(this)\n      }\n\n      // Call any children that want to add their own shapes.\n      this._addShapes()\n\n      // Add the DOM Object to the DOM Tree\n      this._addDom()\n      this.redraw()\n\n      if (this.getEvents) {\n        this._map.on(this.getEvents(), this)\n      }\n      this.fire('add')\n      this._map.fire('patternadd', { pattern: this })\n    },\n\n    onRemove: function() {\n      this._removeDom()\n    },\n\n    redraw: function() {\n      if (this._map) {\n        this._update()\n        for (var i in this._shapes) {\n          this._shapes[i].redraw()\n        }\n      }\n      return this\n    },\n\n    setStyle: function(style) {\n      L.setOptions(this, style)\n      if (this._map) {\n        this._updateStyle()\n        this.redraw()\n      }\n      return this\n    },\n\n    addTo: function(map) {\n      map.addPattern(this)\n      return this\n    },\n\n    remove: function() {\n      return this.removeFrom(this._map)\n    },\n\n    removeFrom: function(map) {\n      if (map) {\n        map.removePattern(this)\n      }\n      return this\n    }\n  })\n\n  L.Map.addInitHook(function() {\n    this._patterns = {}\n  })\n\n  L.Map.include({\n    addPattern: function(pattern) {\n      var id = getId(pattern)\n      if (this._patterns[id]) {\n        return pattern\n      }\n      this._patterns[id] = pattern\n\n      this.whenReady(pattern.onAdd, pattern)\n      return this\n    },\n\n    removePattern: function(pattern) {\n      var id = getId(pattern)\n      if (!this._patterns[id]) {\n        return this\n      }\n\n      if (this._loaded) {\n        pattern.onRemove(this)\n      }\n\n      if (pattern.getEvents) {\n        this.off(pattern.getEvents(), pattern)\n      }\n\n      delete this._patterns[id]\n\n      if (this._loaded) {\n        this.fire('patternremove', { pattern: pattern })\n        pattern.fire('remove')\n      }\n\n      pattern._map = null\n      return this\n    },\n\n    hasPattern: function(pattern) {\n      return !!pattern && getId(pattern) in this._patterns\n    }\n  })\n\n  L.Pattern.SVG_NS = 'http://www.w3.org/2000/svg'\n\n  L.Pattern = L.Pattern.extend({\n    _createElement: function(name) {\n      return document.createElementNS(L.Pattern.SVG_NS, name)\n    },\n\n    _initDom: function() {\n      this._dom = this._createElement('pattern')\n      if (this.options.className) {\n        L.DomUtil.addClass(this._dom, this.options.className)\n      }\n      this._updateStyle()\n    },\n\n    _addDom: function() {\n      this._map._defRoot.appendChild(this._dom)\n    },\n\n    _removeDom: function() {\n      L.DomUtil.remove(this._dom)\n    },\n\n    _updateStyle: function() {\n      var dom = this._dom\n\n      var options = this.options\n\n      if (!dom) {\n        return\n      }\n\n      dom.setAttribute('id', getId(this))\n      dom.setAttribute('x', options.x)\n      dom.setAttribute('y', options.y)\n      dom.setAttribute('width', options.width)\n      dom.setAttribute('height', options.height)\n      dom.setAttribute('patternUnits', options.patternUnits)\n      dom.setAttribute('patternContentUnits', options.patternContentUnits)\n\n      if (options.patternTransform || options.angle) {\n        var transform = options.patternTransform\n          ? options.patternTransform + ' '\n          : ''\n        transform += options.angle ? 'rotate(' + options.angle + ') ' : ''\n        dom.setAttribute('patternTransform', transform)\n      } else {\n        dom.removeAttribute('patternTransform')\n      }\n\n      for (var i in this._shapes) {\n        this._shapes[i]._updateStyle()\n      }\n    }\n  })\n\n  L.Map.include({\n    _initDefRoot: function() {\n      if (!this._defRoot) {\n        if (typeof this.getRenderer === 'function') {\n          var renderer = this.getRenderer(this)\n          this._defRoot = L.Pattern.prototype._createElement('defs')\n          renderer._container.appendChild(this._defRoot)\n        } else {\n          if (!this._pathRoot) {\n            this._initPathRoot()\n          }\n          this._defRoot = L.Pattern.prototype._createElement('defs')\n          this._pathRoot.appendChild(this._defRoot)\n        }\n      }\n    }\n  })\n\n  if (L.SVG) {\n    L.SVG.include({\n      _superUpdateStyle: L.SVG.prototype._updateStyle,\n\n      _updateStyle: function(layer) {\n        this._superUpdateStyle(layer)\n\n        if (layer.options.fill && layer.options.fillPattern) {\n          layer._path.setAttribute(\n            'fill',\n            'url(#' + getId(layer.options.fillPattern) + ')'\n          )\n        }\n      }\n    })\n  } else {\n    L.Path.include({\n      _superUpdateStyle: L.Path.prototype._updateStyle,\n\n      _updateStyle: function() {\n        this._superUpdateStyle()\n\n        if (this.options.fill && this.options.fillPattern) {\n          this._path.setAttribute(\n            'fill',\n            'url(#' + getId(this.options.fillPattern) + ')'\n          )\n        }\n      }\n    })\n  }\n\n  /*\n     * L.StripePattern is an implementation of Pattern that creates stripes.\n     */\n\n  L.StripePattern = L.Pattern.extend({\n    options: {\n      weight: 4,\n      spaceWeight: 4,\n      color: '#000000',\n      spaceColor: '#ffffff',\n      opacity: 1.0,\n      spaceOpacity: 0.0\n    },\n\n    _addShapes: function() {\n      this._stripe = new L.PatternPath({\n        stroke: true,\n        weight: this.options.weight,\n        color: this.options.color,\n        opacity: this.options.opacity\n      })\n\n      this._space = new L.PatternPath({\n        stroke: true,\n        weight: this.options.spaceWeight,\n        color: this.options.spaceColor,\n        opacity: this.options.spaceOpacity\n      })\n\n      this.addShape(this._stripe)\n      this.addShape(this._space)\n\n      this._update()\n    },\n\n    _update: function() {\n      this._stripe.options.d =\n        'M0 ' + this._stripe.options.weight / 2 + ' H ' + this.options.width\n      this._space.options.d =\n        'M0 ' +\n        (this._stripe.options.weight + this._space.options.weight / 2) +\n        ' H ' +\n        this.options.width\n    },\n\n    setStyle: L.Pattern.prototype.setStyle\n  })\n\n  L.stripePattern = function(options) {\n    return new L.StripePattern(options)\n  }\n\n  /*\n     * L.PatternShape is the base class that is used to define the shapes in Patterns.\n     */\n\n  L.PatternShape = L.Class.extend({\n    options: {\n      stroke: true,\n      color: '#3388ff',\n      weight: 3,\n      opacity: 1,\n      lineCap: 'round',\n      lineJoin: 'round',\n      // dashArray: null\n      // dashOffset: null\n\n      // fill: false\n      // fillColor: same as color by default\n      fillOpacity: 0.2,\n      fillRule: 'evenodd'\n      // fillPattern: L.Pattern\n    },\n\n    initialize: function(options) {\n      L.setOptions(this, options)\n    },\n\n    // Called when the parent Pattern get's added to the map,\n    // or when added to a Pattern that is already on the map.\n    onAdd: function(pattern) {\n      this._pattern = pattern\n      if (this._pattern._dom) {\n        this._initDom() // This function is implemented by it's children.\n        this._addDom()\n      }\n    },\n\n    addTo: function(pattern) {\n      pattern.addShape(this)\n      return this\n    },\n\n    redraw: function() {\n      if (this._pattern) {\n        this._updateShape() // This function is implemented by it's children.\n      }\n      return this\n    },\n\n    setStyle: function(style) {\n      L.setOptions(this, style)\n      if (this._pattern) {\n        this._updateStyle()\n      }\n      return this\n    },\n\n    setShape: function(shape) {\n      this.options = L.extend({}, this.options, shape)\n      this._updateShape()\n    }\n  })\n\n  L.Pattern.include({\n    addShape: function(shape) {\n      var id = getId(shape)\n      if (this._shapes[id]) {\n        return shape\n      }\n      this._shapes[id] = shape\n      shape.onAdd(this)\n    }\n  })\n\n  L.PatternShape.SVG_NS = 'http://www.w3.org/2000/svg'\n\n  L.PatternShape = L.PatternShape.extend({\n    _createElement: function(name) {\n      return document.createElementNS(L.PatternShape.SVG_NS, name)\n    },\n\n    _initDom: L.Util.falseFn,\n    _updateShape: L.Util.falseFn,\n\n    _initDomElement: function(type) {\n      this._dom = this._createElement(type)\n      if (this.options.className) {\n        L.DomUtil.addClass(this._dom, this.options.className)\n      }\n      this._updateStyle()\n    },\n\n    _addDom: function() {\n      this._pattern._dom.appendChild(this._dom)\n    },\n\n    _updateStyle: function() {\n      var dom = this._dom\n\n      var options = this.options\n\n      if (!dom) {\n        return\n      }\n\n      if (options.stroke) {\n        dom.setAttribute('stroke', options.color)\n        dom.setAttribute('stroke-opacity', options.opacity)\n        dom.setAttribute('stroke-width', options.weight)\n        dom.setAttribute('stroke-linecap', options.lineCap)\n        dom.setAttribute('stroke-linejoin', options.lineJoin)\n\n        if (options.dashArray) {\n          dom.setAttribute('stroke-dasharray', options.dashArray)\n        } else {\n          dom.removeAttribute('stroke-dasharray')\n        }\n\n        if (options.dashOffset) {\n          dom.setAttribute('stroke-dashoffset', options.dashOffset)\n        } else {\n          dom.removeAttribute('stroke-dashoffset')\n        }\n      } else {\n        dom.setAttribute('stroke', 'none')\n      }\n\n      if (options.fill) {\n        if (options.fillPattern) {\n          dom.setAttribute('fill', 'url(#' + getId(options.fillPattern) + ')')\n        } else {\n          dom.setAttribute('fill', options.fillColor || options.color)\n        }\n        dom.setAttribute('fill-opacity', options.fillOpacity)\n        dom.setAttribute('fill-rule', options.fillRule || 'evenodd')\n      } else {\n        dom.setAttribute('fill', 'none')\n      }\n\n      dom.setAttribute(\n        'pointer-events',\n        options.pointerEvents ||\n          (options.interactive ? 'visiblePainted' : 'none')\n      )\n    }\n  })\n\n  /*\n     * L.PatternPath is the implementation of PatternShape for adding Paths\n     */\n\n  L.PatternPath = L.PatternShape.extend({\n    //\toptions: {\n    // d: <svg path code>\n    //\t},\n\n    _initDom: function() {\n      this._initDomElement('path')\n    },\n\n    _updateShape: function() {\n      if (!this._dom) {\n        return\n      }\n      this._dom.setAttribute('d', this.options.d)\n    }\n  })\n\n  /*\n     * L.PatternCircle is the implementation of PatternShape for adding Circles\n     */\n\n  L.PatternCircle = L.PatternShape.extend({\n    options: {\n      x: 0,\n      y: 0,\n      radius: 0\n    },\n\n    _initDom: function() {\n      this._initDomElement('circle')\n    },\n\n    _updateShape: function() {\n      if (!this._dom) {\n        return\n      }\n      this._dom.setAttribute('cx', this.options.x)\n      this._dom.setAttribute('cy', this.options.y)\n      this._dom.setAttribute('r', this.options.radius)\n    }\n  })\n\n  /*\n     * L.PatternRect is the implementation of PatternShape for adding Rectangles\n     */\n\n  L.PatternRect = L.PatternShape.extend({\n    options: {\n      x: 0,\n      y: 0,\n      width: 10,\n      height: 10\n      // rx: x radius for rounded corners\n      // ry: y radius for rounded corners\n    },\n\n    _initDom: function() {\n      this._initDomElement('rect')\n    },\n\n    _updateShape: function() {\n      if (!this._dom) {\n        return\n      }\n      this._dom.setAttribute('x', this.options.x)\n      this._dom.setAttribute('y', this.options.y)\n      this._dom.setAttribute('width', this.options.width)\n      this._dom.setAttribute('height', this.options.height)\n      if (this.options.rx) {\n        this._dom.setAttribute('rx', this.options.rx)\n      }\n      if (this.options.ry) {\n        this._dom.setAttribute('ry', this.options.ry)\n      }\n    }\n  })\n\n  L.CheckerBoardPattern = L.Pattern.extend({\n    options: {\n      color: '#000000',\n      fillOpacity: 1\n    },\n\n    _addShapes: function() {\n      this._shape1 = new L.PatternRect({\n        stroke: false,\n        fillOpacity: this.options.fillOpacity,\n        color: this.options.color,\n        fill: this.options.color,\n        x: 0,\n        y: 0,\n        width: this.options.width / 2,\n        height: this.options.height / 2\n      })\n\n      this._shape2 = new L.PatternRect({\n        stroke: false,\n        fillOpacity: this.options.fillOpacity,\n        color: this.options.color,\n        fill: this.options.color,\n        x: this.options.width / 2,\n        y: this.options.height / 2,\n        width: this.options.width / 2,\n        height: this.options.height / 2\n      })\n\n      this.addShape(this._shape1)\n      this.addShape(this._shape2)\n\n      this._update()\n    },\n\n    _update: function() {\n\n    },\n\n    setStyle: L.Pattern.prototype.setStyle\n  })\n})(window, document)\n","const L = window.L;\n\n/**\n * **key**: {string} - required.<br/>\n * **weight**: {number} (default: 4) - The width of the primary stripe.<br/>\n * **spaceWeight**: {number} (default: 4) - The width of the secondaty stripe, typically an empty space.<br/>\n * **color**: {color} (default: #000000) - The color of the primary stripe.<br/>\n * **spaceColor**: {color} (default: #ffffff) - The color of the secondary stripe.<br/>\n * **opacity**: {0.0 - 1.0} (default: 1.0) - The opacity of the primary stripe.<br/>\n * **spaceOpacity**: {0.0 - 1.0} (default: 0.0) - The opacity of the secondary stripe.<br/>\n *\n * @see See [API](https://github.com/teastman/Leaflet.pattern#stripes) for a list of properties\n * @component\n */\nexport const StripePattern = options => new L.StripePattern(options);\n","const L = window.L\nexport const BasePattern = (options, Shape) => {\n  const shape = new Shape(options)\n  const pattern = new L.Pattern(options)\n  pattern.addShape(shape)\n  return pattern\n}\n","import { BasePattern } from './BasePattern'\n\nconst L = window.L\n\n/**\n * **key**: {string} - required.<br/>\n * **x**: {number} (default: 0) - x offset of the circle.<br/>\n * **y**: {number} (default: 0) - y offset of the circle.<br/>\n * **radius**: {number} (default: 0) - radius of the circle.<br/>\n\n * @see See [API](https://github.com/teastman/Leaflet.pattern#circle) for a list of properties\n * @component\n */\nexport const CirclePattern = options => BasePattern(options, L.PatternCircle);\n","import { BasePattern } from './BasePattern';\n\nconst L = window.L;\n\n/**\n * **key**: {string} - required.<br/>\n * **x**: {number} (default: 0) - x offset of the rectangle.<br/>\n * **y**: {number} (default: 0) - y offset of the rectangle.<br/>\n * **width**: {number} (default: 10) - width of the rectangle.<br/>\n * **height**: {number} (default: 10) - height of the rectangle.<br/>\n * **rx**: {number} (default: null) - x radius for rounded corners.<br/>\n * **ry**: {number} (default: null) - y radius for rounded corners.<br/>\n\n * @see See [API](https://github.com/teastman/Leaflet.pattern#rectangle) for a list of properties\n * @component\n */\nexport const RectPattern = options => BasePattern(options, L.PatternRect);\n","import { BasePattern } from './BasePattern';\n\nconst L = window.L;\n\n/**\n * **key** {string} - required.<br/>\n * **d** {path} (default: null) - The SVG path definition.\n * @see See [API](https://github.com/teastman/Leaflet.pattern#path) for a list of properties\n * @component\n */\nexport const PathPattern = options => BasePattern(options, L.PatternPath);\n","const L = window.L\n\n/**\n * **key**: {string} - required.<br/>\n * **width**: {number} (default: 12) - The width of the square.<br/>\n * **height**: {number} (default: 12) - The height of the square.<br/>\n * **color**: {color} (default: #000000) - The color of the square.<br/>\n * **fillOpacity**: {number} (default: 1) - The opacity of the primary square.<br/>\n\n * @component\n */\nexport const CheckerBoardPattern = (options) => new L.CheckerBoardPattern(options)\n","import './leaflet.pattern'\nimport { StripePattern } from './StripePattern'\nimport { CirclePattern } from './CirclePattern'\nimport { RectPattern } from './RectPattern'\nimport { PathPattern } from './PathPattern'\nimport {CheckerBoardPattern} from './CheckerBoardPattern'\nexport default { StripePattern, CirclePattern, RectPattern, PathPattern, CheckerBoardPattern }\n"]}