{"version":3,"sources":["/home/runner/work/turf/turf/packages/turf-boolean-within/dist/cjs/index.cjs","../../index.ts"],"names":[],"mappings":"AAAA;ACCA,yDAAgC;AAkBhC,SAAS,aAAA,CACP,QAAA,EACA,QAAA,EACS;AACT,EAAA,OAAO,8CAAA,QAAgB,EAAU,QAAQ,CAAA;AAC3C;AAGA,IAAO,cAAA,EAAQ,aAAA;ADrBf;AACE;AACA;AACF,uEAAC","file":"/home/runner/work/turf/turf/packages/turf-boolean-within/dist/cjs/index.cjs","sourcesContent":[null,"import { Feature, Geometry } from \"geojson\";\nimport { booleanContains } from \"@turf/boolean-contains\";\n\n/**\n * Tests whether geometry a is contained by geometry b.\n * The interiors of both geometries must intersect, and the interior and boundary of geometry a must not intersect the exterior of geometry b.\n * booleanWithin(a, b) is equivalent to booleanContains(b, a)\n *\n * @function\n * @param {Geometry|Feature<any>} feature1 GeoJSON Feature or Geometry\n * @param {Geometry|Feature<any>} feature2 GeoJSON Feature or Geometry\n * @returns {boolean} true/false\n * @example\n * var line = turf.lineString([[1, 1], [1, 2], [1, 3], [1, 4]]);\n * var point = turf.point([1, 2]);\n *\n * turf.booleanWithin(point, line);\n * //=true\n */\nfunction booleanWithin(\n  feature1: Feature<any> | Geometry,\n  feature2: Feature<any> | Geometry\n): boolean {\n  return booleanContains(feature2, feature1);\n}\n\nexport { booleanWithin };\nexport default booleanWithin;\n"]}