amis.define("08f16e5",function(e,t){"use strict";function n(e,t,n){function s(t){var r=e.offsetAt(t),a=n.getNodeFromOffset(r,!0);if(!a)return[];for(var o=[];a;){switch(a.type){case"string":case"object":case"array":var s=a.offset+1,i=a.offset+a.length-1;i>s&&r>=s&&i>=r&&o.push(f(s,i)),o.push(f(a.offset,a.offset+a.length));break;case"number":case"boolean":case"null":case"property":o.push(f(a.offset,a.offset+a.length))}if("property"===a.type||a.parent&&"array"===a.parent.type){var u=c(a.offset+a.length,5);-1!==u&&o.push(f(a.offset,u))}a=a.parent}return o}function f(t,n){return{range:r.Range.create(e.positionAt(t),e.positionAt(n)),kind:o.SelectionRangeKind.Declaration}}function c(e,t){i.setPosition(e);var n=i.scan();return n===t?i.getTokenOffset()+i.getTokenLength():-1}var i=a.createScanner(e.getText(),!0);return t.map(s)}Object.defineProperty(t,"__esModule",{value:!0});var r=e("737c70e"),a=e("26128d7"),o=e("683e3e1");t.getSelectionRanges=n});