import{Geometry as c}from"../mongo-builder/Geo";var d=function(){function i(r,t){if(t===void 0){t=""}this.data=r;this.prefix=t}i.prototype.stringify=function(){var r=this;if(Array.isArray(this.data)){return this.data.map(function(o,h){return new i(o,"".concat(r.prefix,".$.").concat(h)).stringify()})}if(this.data instanceof c){return this.data.toJSON()}if(this.data===null||this.data instanceof Date){return this.data}if(typeof this.data==="object"){var t={};for(var a in this.data){var s=this.prefix?"".concat(this.prefix,".").concat(a):a;var e=this.data[a];var f=new i(e,s);var n=f.stringify();if(n!==void 0){t[a]=n}}return t}return this.data};return i}();export{d as GeoRequest};