/*! knockout-bootstrap version: 0.3.1 * 2015-04-18 * Author: Bill Pullen * Website: http://billpull.github.com/knockout-bootstrap * MIT License http://www.opensource.org/licenses/mit-license.php */ function setupKoBootstrap(a,b){"use strict";var c=function(a){return function(){return a()+a()+"-"+a()+"-"+a()+"-"+a()+"-"+a()+a()+a()}}(function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)});b.fn.outerHtml||(b.fn.outerHtml=function(){if(0===this.length)return!1;var a=this[0],c=a.tagName.toLowerCase();if(a.outerHTML)return a.outerHTML;var d=b.map(a.attributes,function(a){return a.name+'="'+a.value+'"'});return"<"+c+(d.length>0?" "+d.join(" "):"")+">"+a.innerHTML+""}),a.bindingHandlers.typeahead={init:function(c,d,e){var f=b(c),g=e(),h=function(a){return function(c,d){var e,f;e=[],f=new RegExp(c,"i"),b.each(a,function(a,b){f.test(b)&&e.push({value:b})}),d(e)}},i={source:h(a.utils.unwrapObservable(d()))};g.typeaheadOptions&&b.each(g.typeaheadOptions,function(b,c){i[b]=a.utils.unwrapObservable(c)}),f.attr("autocomplete","off").typeahead({hint:!0,highlight:!0,minLength:1},i)}},a.bindingHandlers.progress={init:function(d,e,f,g){var h=b(d),i=b("
",{"class":"progress-bar","data-bind":"style: { width:"+e()+" }"});h.attr("id",c()).addClass("progress progress-info").append(i),a.applyBindingsToDescendants(g,h[0])}},a.bindingHandlers.alert={init:function(c,d){var e=b(c),f=a.utils.unwrapObservable(d()),g=b("