"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../segment-config/index.js"),n=function(e){var n=new Map;return e.forEach((function(e){var r=e.chain;r.forEach((function(e,t){t>0&&n.set(e,r.slice(0,t))}))})),n},r=function(e){var n=new Map;return e.forEach((function(e){var r=e.chain;r.forEach((function(e,t){t<r.length-1&&n.set(e,r.slice(t+1))}))})),n},t=function(t){var i=[{chain:e.getSegmentConfig(t).cascadeChain}];return{hierarchies:i,upstream:n(i),downstream:r(i)}},i={drilling:t("drilling"),intervention:t("intervention")};exports.buildDownstreamMap=r,exports.buildUpstreamMap=n,exports.getCascadeMaps=function(e){return i[e]};
//# sourceMappingURL=cascade-hierarchies.js.map
