amis.define("e011258",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("11ed2ab"),o=r.__importStar(e("f5750f9")),n=r.__importStar(e("60fb112")),i=e("8ee4125"),a=e("9326e76"),s=e("bbb15f3"),c=r.__importStar(e("df29dc9")),d=c.loadMessageBundle(),f=function(){function e(){}return e.prototype.doCodeActions=function(e,t,r,o){return this.doCodeActions2(e,t,r,o).map(function(t){return s.Command.create(t.title,"_css.applyCodeAction",e.uri,e.version,t.edit.documentChanges[0].edits)})},e.prototype.doCodeActions2=function(e,t,r,o){var n=[];if(r.diagnostics)for(var i=0,a=r.diagnostics;i<a.length;i++){var s=a[i];this.appendFixesForMarker(e,o,s,n)}return n},e.prototype.getFixesForUnknownProperty=function(e,t,r,o){var a=t.getName(),c=[];n.cssDataManager.getProperties().forEach(function(e){var t=i.difference(a,e.name);t>=a.length/2&&c.push({property:e.name,score:t})}),c.sort(function(e,t){return t.score-e.score});for(var f=3,p=0,u=c;p<u.length;p++){var g=u[p],m=g.property,v=d("css.codeaction.rename","Rename to '{0}'",m),h=s.TextEdit.replace(r.range,m),l=s.VersionedTextDocumentIdentifier.create(e.uri,e.version),y={documentChanges:[s.TextDocumentEdit.create(l,[h])]},C=s.CodeAction.create(v,y,s.CodeActionKind.QuickFix);if(C.diagnostics=[r],o.push(C),--f<=0)return}},e.prototype.appendFixesForMarker=function(e,t,r,n){if(r.code===a.Rules.UnknownProperty.id)for(var i=e.offsetAt(r.range.start),s=e.offsetAt(r.range.end),c=o.getNodePath(t,i),d=c.length-1;d>=0;d--){var f=c[d];if(f instanceof o.Declaration){var p=f.getProperty();if(p&&p.offset===i&&p.end===s)return void this.getFixesForUnknownProperty(e,p,r,n)}}},e}();t.CSSCodeActions=f});