amis.define("8f26151",function(e,t){"use strict";function n(e,t,n){function i(t){var n=o(t),r=n.map(function(t){return{range:f.Range.create(e.positionAt(t[0]),e.positionAt(t[1])),kind:a.SelectionRangeKind.Statement}});return r}function o(t){var f=n.findChildAtOffset(e.offsetAt(t),!0);if(!f)return[];for(var a=[];f;)f.parent&&f.offset===f.parent.offset&&f.end===f.parent.end?f=f.parent:(a.push(f.type===r.NodeType.Declarations?[f.offset+1,f.end-1]:[f.offset,f.end]),f=f.parent);return a}return t.map(i)}Object.defineProperty(t,"__esModule",{value:!0});var f=e("bbb15f3"),r=e("f5750f9"),a=e("d515c96");t.getSelectionRanges=n});