1(function(){function t(n){var t,i;if(typeof n.length!="number"||n.length===0)return[];t=[];for(i in n[0])t.push({headerText:i,rowText:i});return t}ko.simpleGrid={viewModel:function(n){this.data=n.data;this.currentPageIndex=ko.observable(0);this.pageSize=n.pageSize||5;this.columns=n.columns||t(ko.utils.unwrapObservable(this.data));this.itemsOnCurrentPage=ko.computed(function(){var n=this.pageSize*this.currentPageIndex();return ko.utils.unwrapObservable(this.data).slice(n,n+this.pageSize)},this);this.maxPageIndex=ko.computed(function(){return Math.ceil(ko.utils.unwrapObservable(this.data).length/this.pageSize)-1},this)}};var n=new ko.nativeTemplateEngine;n.addTemplate=function(n,t){document.write("<script type='text/html' id='"+n+"'>"+t+"<\/script>")};n.addTemplate("ko_simpleGrid_grid",' <table class="ko-grid" cellspacing="0"> <thead> <tr data-bind="foreach: columns"> <th data-bind="text: headerText"><\/th> <\/tr> <\/thead> <tbody data-bind="foreach: itemsOnCurrentPage"> <tr data-bind="foreach: $parent.columns"> <td data-bind="text: typeof rowText == \'function\' ? rowText($parent) : $parent[rowText] "><\/td> <\/tr> <\/tbody> <\/table>');n.addTemplate("ko_simpleGrid_pageLinks",' <div class="ko-grid-pageLinks"> <span>Page:<\/span> <!-- ko foreach: ko.utils.range(0, maxPageIndex) --> <a href="#" data-bind="text: $data + 1, click: function() { $root.currentPageIndex($data) }, css: { selected: $data == $root.currentPageIndex() }"> <\/a> <!-- /ko --> <\/div>');ko.bindingHandlers.simpleGrid={init:function(){return{controlsDescendantBindings:!0}},update:function(t,i,r){for(var u=i(),f=r(),e;t.firstChild;)ko.removeNode(t.firstChild);var o=f.simpleGridTemplate||"ko_simpleGrid_grid",s=f.simpleGridPagerTemplate||"ko_simpleGrid_pageLinks",h=t.appendChild(document.createElement("DIV"));ko.renderTemplate(o,u,{templateEngine:n},h,"replaceNode");e=t.appendChild(document.createElement("DIV"));ko.renderTemplate(s,u,{templateEngine:n},e,"replaceNode")}}})()
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.