!function(){"use strict";var s=function(e){return(e="number"==typeof e?{precision:e}:e||{}).precision=e.precision||5,e.factor=e.factor||Math.pow(10,e.precision),e.dimension=e.dimension||2,e},o={encode:function(e,n){n=s(n);for(var o=[],r=0,t=e.length;r>1):t>>1}return n},encodeUnsignedIntegers:function(e){for(var n="",o=0,r=e.length;o>=5;return n=e+63,o+=String.fromCharCode(n)}};if("object"==typeof module&&"object"==typeof module.exports&&(module.exports=o),"object"==typeof L){L.Polyline.prototype.fromEncoded||(L.Polyline.fromEncoded=function(e,n){return L.polyline(o.decode(e),n)}),L.Polygon.prototype.fromEncoded||(L.Polygon.fromEncoded=function(e,n){return L.polygon(o.decode(e),n)});var e={encodePath:function(){return o.encode(this.getLatLngs())}};L.Polyline.prototype.encodePath||L.Polyline.include(e),L.Polygon.prototype.encodePath||L.Polygon.include(e),L.PolylineUtil=o}}();