text: !function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){var n=e[a][1][t];return i(n?n:t)},c,c.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){"use strict";var r=t("d3"),i=t("./components/compile-page"),o=t("./components/filter-cards"),a=t("./components/update-views"),s=t("./components/selectized"),u=t("./components/bind-listeners");r.json("./data/AllSets.json",function(t,e){i(e),o.filterCards(),a.updateViews(!0),s.populate(),u.init()})},{"./components/bind-listeners":4,"./components/compile-page":8,"./components/filter-cards":9,"./components/selectized":11,"./components/update-views":12,d3:21}],2:[function(t,e,n){"use strict";n.allCards=[],n.allSets={},n.currentCards=[],n.filteredCards=[],n.isBrushed=!1,n.currentRollups=[],n.currentSlice=0,n.dimensionMaxima={},n.domains={},n.vizWidth=0,n.stickyNavTop=0,n.colors=["white","blue","black","red","green","multicolor","colorless"],n.dimensions=["cmc","power","toughness","rarity","set","types","subtypes"],n.filterEls=[],n.defaultSet="Modern Masters 2015 Edition",n.filters=[{dimension:"set",values:[n.defaultSet]},{dimension:"rarity",values:[]},{dimension:"types",values:[]},{dimension:"subtypes",values:[]},{dimension:"artist",values:[]}]},{}],3:[function(t,e,n){"use strict";function r(t){i.selectAll(".brush").filter(function(e){return e.brush!=t}).each(function(t){i.select(this).call(t.brush.clear())})}var i=(t("jquery"),t("d3")),o=t("../utils"),a=t("../app-state"),s=t("./bind-listeners"),u={top:15,bottom:15},l=100-u.top-u.bottom,c=["0","1","2","3","4","5","6","7","8","9+","*"],f=i.scale.ordinal().domain(c),h=i.scale.linear().range([0,l]),p=i.svg.axis().scale(f).outerTickSize(0).orient("bottom"),d=function(t,e){h.domain([0,a.dimensionMaxima[e]]),f.rangeRoundBands([0,a.vizWidth],.33,0);var n=i.select("#color__graph--"+e+"--"+t).append("svg").attr("width",a.vizWidth).attr("height",l+u.top+u.bottom),r=n.append("g").attr("width",a.vizWidth).attr("height",l).attr("class","chart").attr("transform","translate( 0,"+u.top+" )"),o=n.append("g").attr("class","axis axis__x").attr("transform","translate( 0,"+(l+u.top)+" )").call(p);o.selectAll("text").attr("y",5).attr("class","axis__x__label"),o.selectAll("path").attr("class","axis__x__path");var c=r.selectAll("g").data(a.currentRollups[t][e].rollup),d=c.enter().append("g");c.transition().attr({"class":"bar__wrap",transform:function(t){return"translate("+f(t.key)+", 0)"}}),c.exit().remove(),d.append("rect");var g=c.selectAll("rect").data(function(t){return[t]});g.attr({y:function(t){return l-h(t.values.count)},height:function(t){return h(t.values.count)},width:f.rangeBand(),"class":"bar__rect"}),d.append("text"),c.selectAll("text").text(function(t){return t.values.count}).attr({x:f.rangeBand()/2,y:function(t){return l-h(t.values.count)-4},"class":"bar__label"});var m=i.svg.brush().x(f),v=n.append("g").attr("class","brush").call(m);v.selectAll("rect").attr("height",l+u.top),v.datum({brush:m}),s.bindBrushListeners(m,f)},g=function(t,e){h.domain([0,a.dimensionMaxima[e]]),f.rangeRoundBands([0,a.vizWidth],.33,0);var n=i.selectAll("#color__graph--"+e+"--"+t+" .chart").selectAll("g").data(a.currentRollups[t][e].rollup),r=n.enter().append("g");n.transition().attr({"class":"bar__wrap",transform:function(t){return"translate("+f(t.key)+", 0 )"}}),n.exit().remove(),r.append("rect");var c=n.selectAll("rect").data(function(t){return[t]});c.transition().attr({y:function(t){return l-h(t.values.count)},height:function(t){return h(t.values.count)},width:f.rangeBand(),"class":"bar__rect"}),r.append("text"),n.selectAll("text").data(function(t){return[t]}).text(function(t){return o.formatCommas(t.values.count)}).transition().attr({x:f.rangeBand()/2,y:function(t){return l-h(t.values.count)-4},"class":"bar__label"});var p=i.svg.brush().x(f),d=i.select(n[0].parentNode.parentNode).append("g").attr("class","brush").call(p);d.selectAll("rect").attr("height",l+u.top),d.datum({brush:p}),s.bindBrushListeners(p,f)};n.initViz=d,n.updateViz=g,n.clearBrushes=r},{"../app-state":2,"../utils":20,"./bind-listeners":4,d3:21,jquery:31}],4:[function(t,e,n){"use strict";function r(){i(),a(),s(),u()}function i(){d.filterEls.on("change",function(){p.each(d.filterEls,function(t,e){d.filters[e].values=t.selectize.getValue()}),g.filterCards(),m.updateViews()})}function o(){f(window).scrollTop()>d.stickyNavTop?(f(".site__header__stickymod").addClass("stickymod--is--sticky"),f(".stream").addClass("stream--is--sticky")):(f(".site__header__stickymod").removeClass("stickymod--is--sticky"),f(".stream").removeClass("stream--is--sticky"))}function a(){d.stickyNavTop=f(".site__header__stickymod").offset().top;var t=p.throttle(o,1);f(window).scroll(t)}function s(){f(".site__header__stickymod").on("click",".cards__btn--cardview--open",function(){f(".site__header__stickymod").toggleClass("stickymod--is--open"),f("html").toggleClass("is--frozen"),v.addImages()}),f(".site__header__stickymod").on("click",".cards__btn--cardview--close",function(){f(".site__header__stickymod").toggleClass("stickymod--is--open"),f("html").toggleClass("is--frozen")})}function u(){f(".cards__btn--add").on("click",function(){v.addImages()})}function l(t,e){t.on("brushend",function(){if(y.clearBrushes(t),t.empty())return void c();var n=this.parentElement,r=h.select(n).selectAll(".bar__wrap").data(),i=t.extent(),o=[];p.map(r,function(t){var n=e(t.key);n>i[0]-e.rangeBand()&&n<i[1]&&o.push.apply(o,t.values.ids)}),g.getCardsById(o),v.update()})}function c(){d.isBrushed&&(d.isBrushed=!1,d.currentCards=d.filteredCards,m.updateViews())}var f=t("jquery"),h=t("d3"),p=t("underscore"),d=t("../app-state"),g=t("./filter-cards"),m=t("./update-views"),v=t("./cards"),y=t("./bars");n.init=r,n.bindBrushListeners=l},{"../app-state":2,"./bars":3,"./cards":6,"./filter-cards":9,"./update-views":12,d3:21,jquery:31,underscore:40}],5:[function(t,e,n){"use strict";var r=t("d3"),i=t("../utils"),o=t("../app-state"),a=r.scale.ordinal(),s=r.scale.sqrt(),u=function(t,e){var n=o.domains[e],i=o.vizWidth,u=(i/2+20)*n.length,l={top:i/4+20,bottom:i/4};a.domain(o.domains.rarity).rangeRoundBands([0,u],.75,0),s.domain([0,o.dimensionMaxima[e]]).range([0,i/4]);var c=r.select("#color__graph--"+e+"--"+t).append("svg").attr("width",i).attr("height",u+l.top+l.bottom).attr("class","svg"),f=c.append("g").attr("width",i).attr("height",u).attr("class","chart").attr("transform","translate( 0,"+l.top+")"),h=f.selectAll("g").data(o.currentRollups[t][e].rollup),p=h.enter().append("g");h.transition().attr({"class":"bubble__wrap",transform:function(t){return"translate("+i/2+", "+a(t.key)+")"}}),h.exit().remove(),p.append("circle");var d=h.selectAll("circle").data(function(t){return[t]});d.attr({r:function(t){return s(t.values.count)},"class":"bubble__circle"}),p.append("text").attr("class","bubble__label bubble__label--value"),h.selectAll(".bubble__label--value").text(function(t){return t.values.count}).attr("y",3),p.append("text").attr("class","bubble__label bubble__label--key"),h.selectAll(".bubble__label--key").text(function(t){return t.key}).attr("y",-i/4-10)},l=function(t,e){var n=o.domains[e],u=o.vizWidth,l=(u/2+20)*n.length,c={top:u/4+20,bottom:u/4};a.domain(o.domains.rarity).rangeRoundBands([0,l],.75,0),s.domain([0,o.dimensionMaxima[e]]).range([0,u/4]);var f=r.select("#color__graph--"+e+"--"+t+" .svg").transition().attr("height",l+c.top+c.bottom);f.select(".chart").transition().attr("height",l);var h=r.selectAll("#color__graph--"+e+"--"+t+" .chart").selectAll("g").data(o.currentRollups[t][e].rollup),p=h.enter().append("g");h.transition().attr({"class":"bubble__wrap",transform:function(t){return"translate("+u/2+", "+a(t.key)+")"}}),h.exit().remove(),p.append("circle");var d=h.selectAll("circle").data(function(t){return[t]});d.transition().attr({r:function(t){return s(t.values.count)},"class":"bubble__circle"}),p.append("text").attr("class","bubble__label bubble__label--value"),h.selectAll(".bubble__label--value").data(function(t){return[t]}).text(function(t){return i.formatCommas(t.values.count)}).attr("y",3),p.append("text").attr("class","bubble__label bubble__label--key"),h.selectAll(".bubble__label--key").data(function(t){return[t]}).text(function(t){return t.key}).attr("y",-u/4-10)};n.initViz=u,n.updateViz=l},{"../app-state":2,"../utils":20,d3:21}],6:[function(t,e,n){"use strict";function r(){i(),o()}function i(){c.currentSlice=0,u(".cards__grid").empty(),s()}function o(){document.querySelector(".cards__selected").innerHTML=l.formatCommas(c.currentCards.length)}function a(){c.currentCards.length<=c.currentSlice?u(".cards__btn--add").addClass("cards__btn--add--finished"):u(".cards__btn--add").removeClass("cards__btn--add--finished")}function s(){var t=c.currentCards,e=t.slice(c.currentSlice,c.currentSlice+7);u(".cards__grid").append(f({cards:e})),c.currentSlice+=e.length,a()}var u=t("jquery"),l=t("../utils"),c=t("../app-state"),f=t("../templates/components/cards.hbs");n.update=r,n.updateText=o,n.addImages=s},{"../app-state":2,"../templates/components/cards.hbs":14,"../utils":20,jquery:31}],7:[function(t,e,n){"use strict";function r(){b=d.groupBy(m.currentCards,function(t){return t.colors&&d.contains(m.colors,t.colors.toString().toLowerCase())?t.colors.toString().toLowerCase():d.isUndefined(t.colors)?"colorless":"multicolor"})}function i(t){document.querySelector("#card__total--"+t).innerHTML=b[t]?g.formatCommas(b[t].length):0}function o(){var t={};return d.each(m.colors,function(e){t[e]={},d.each(m.dimensions,function(n){t[e][n]={},t[e][n].undefined=0,"cmc"===n||"power"===n||"toughness"===n?t[e][n].rollup=a(e,n,t):(t[e][n].rollup=s(e,n,t),t=u(e,n,t)),t[e][n].undefined&&(t[e][n].rollup=d.reject(t[e][n].rollup,function(t){return"undefined"===t.key}))})}),t}function a(t,e,n){var r=[];return b[t]&&(r=p.nest().key(function(r){return r[e]?d.isNaN(+r[e])||!g.isInt(+r[e])||+r[e]<0?"*":+r[e]>=9?"9+":r[e]:(n[t][e].undefined+=1,"undefined")}).rollup(function(t){return{count:t.length,ids:d.pluck(t,"multiverseid")}}).entries(b[t])),r}function s(t,e,n){var r=[];return b[t]&&(r=p.nest().key(function(r){return r[e]?r[e]:(n[t][e].undefined+=1,"undefined")}).sortValues(function(t,e){return t.length-e.length}).rollup(function(t){return{count:t.length,ids:d.pluck(t,"multiverseid")}}).entries(b[t])),r}function u(t,e,n){return n[t][e].rollup.sort(function(t,e){return e.values.count-t.values.count}),n}function l(){d.each(m.dimensions,function(t){var e=[];d.each(m.currentRollups,function(n){var r=d.map(n[t].rollup,function(t){return t.values.count});e=d.union(e,r)}),m.dimensionMaxima[t]=p.max(e)})}function c(){d.each(m.dimensions,function(t){var e=[];d.each(m.currentRollups,function(n){var r=d.pluck(n[t].rollup,"key");e=d.union(e,r)}),m.domains[t]=e})}function f(t,e){var n=document.querySelector("#card__undefined--"+e+"--"+t);n&&(n.innerHTML=g.formatCommas(m.currentRollups[t][e].undefined))}function h(t,e,n){"cmc"===e||"power"===e||"toughness"===e?n?v.initViz(t,e):v.updateViz(t,e):"rarity"===e?n?y.initViz(t,e):y.updateViz(t,e):_.updateInventory(t,e)}var p=t("d3"),d=t("underscore"),g=t("../utils"),m=t("../app-state"),v=t("./bars"),y=t("./bubbles"),_=t("./inventory"),b={},x=function(){r(),m.currentRollups=o(),l(),c()},w=function(t){d.each(m.colors,function(e){i(e),d.each(m.dimensions,function(n){f(e,n),h(e,n,t)})})};n.prepData=x,n.updateViews=w},{"../app-state":2,"../utils":20,"./bars":3,"./bubbles":5,"./inventory":10,d3:21,underscore:40}],8:[function(t,e,n){"use strict";function r(t){i(),c.init(),f.getAllCards(t),f.getAllSets(t),o(),a()}function i(){document.body.innerHTML=h()}function o(){var t=s.object(l.colors,[!0,!0,!0,!0,!0,!1,!1]);document.querySelector("#colors").innerHTML+=p({color:t})}function a(){l.vizWidth=document.querySelector(".color__graph__wrap").clientWidth}var s=t("underscore"),u=t("hbsfy/runtime"),l=t("../app-state"),c=t("./selectized"),f=t("./wrangle-data"),h=t("../templates/index.hbs"),p=t("../templates/components/colors.hbs");u.registerPartial("filter",t("../templates/components/filters.hbs")),u.registerPartial("cards",t("../templates/components/cards.hbs")),u.registerPartial("footer",t("../templates/components/footer.hbs")),e.exports=r},{"../app-state":2,"../templates/components/cards.hbs":14,"../templates/components/colors.hbs":15,"../templates/components/filters.hbs":16,"../templates/components/footer.hbs":17,"../templates/index.hbs":18,"./selectized":11,"./wrangle-data":13,"hbsfy/runtime":30,underscore:40}],9:[function(t,e,n){"use strict";function r(){var t=a.allCards;s.each(a.filters,function(e){var n=[];e.values.length&&(s.each(e.values,function(r){var i={};i[e.dimension]=r,n.push.apply(n,s.where(t,i))}),t=n)}),t=o(t),a.isBrushed=!1,a.filteredCards=t,a.currentCards=t}function i(t){var e=s.filter(a.filteredCards,function(e){return e.multiverseid&&-1!==t.indexOf(e.multiverseid)});a.isBrushed=!0,a.currentCards=o(e)}function o(t){var e=s.sortBy(t,function(t){return u[t.rarity]});return e}var a=t("../app-state"),s=t("underscore"),u={"Mythic Rare":1,Rare:2,Uncommon:3,Common:4,Special:5,"Basic Land":6};n.filterCards=r,n.getCardsById=i},{"../app-state":2,underscore:40}],10:[function(t,e,n){"use strict";var r=t("underscore"),i=t("../utils"),o=t("../app-state"),a=t("../templates/partials/colors-inventory.hbs"),s=function(t,e){var n="",s=document.querySelector("#color__graph__ol--"+e+"--"+t);r.each(o.currentRollups[t][e].rollup,function(t){n+=a({key:t.key,value:i.formatCommas(t.values.count)})}),s.innerHTML=n};n.updateInventory=s},{"../app-state":2,"../templates/partials/colors-inventory.hbs":19,"../utils":20,underscore:40}],11:[function(t,e,n){"use strict";function r(){p.filterEls=l(".filter__select--sets").selectize({render:{option:function(t,e){return'<div class="option"><img src="./images/boosters/booster_'+t.code.toLowerCase()+'.jpg" class="filter__opt__img" onerror="this.style.display=&quot;none&quot;"><div class="filter__opt__textwrap"><span class="filter__opt__name">'+e(t.text)+"</span>"+(t.block?'<span class="filter__opt__metadata filter__opt__text--block">Block: '+e(t.block)+"</span>":"")+(t.release_date?'<span class="filter__opt__metadata filter__opt__text--release">Released: '+e(t.release_date)+"</span>":"")+"</div></div>"}},searchField:["text","block","release_date"]})}function i(){l.merge(p.filterEls,l(".filter__select--no--meta").selectize())}function o(){c.each(c.keys(d),function(t){var e=[];c.each(d[t],function(t){e.push({text:t,value:t})}),p.filterEls.filter("#filter__select--multi--"+t)[0].selectize.load(function(t){t(e)})})}function a(){var t=p.filterEls.filter("#filter__select--multi--set")[0];c.each(p.allSets,function(e){t.selectize.addOptionGroup(e.key,{label:h(e.key)}),c.each(e.values,function(n){t.selectize.addOption({text:n.name,value:n.name,block:n.block,code:n.code,release_date:f(n.releaseDate).format("MMM. [’]YY"),optgroup:e.key})})}),s(t)}function s(t){t.selectize.setValue(p.defaultSet)}function u(){c.each(c.keys(d),function(t){d[t]=c.chain(p.allCards).pluck(t).uniq().sort().value()})}var l=t("jquery"),c=t("underscore"),f=t("moment"),h=t("titleCase"),p=(t("selectize"),t("../app-state")),d={types:[],subtypes:[],artist:[]};n.init=function(){r(),i()},n.populate=function(){u(),a(),o()}},{"../app-state":2,jquery:31,moment:32,selectize:33,titleCase:39,underscore:40}],12:[function(t,e,n){"use strict";var r=t("./colors"),i=t("./cards"),o=t("./bars");n.updateViews=function(t){r.prepData(),r.updateViews(t),i.update(),o.clearBrushes()}},{"./bars":3,"./cards":6,"./colors":7}],13:[function(t,e,n){"use strict";var r=t("underscore"),i=t("d3"),o=t("../app-state");n.getAllCards=function(t){var e=r.each(t,function(t){r.each(t.cards,function(e){e.set=t.name,e.magicCardsInfoCode=t.magicCardsInfoCode,r.isArray(e.types)&&(e.types=e.types.join(" ")),r.isArray(e.subtypes)&&(e.subtypes=e.subtypes.join(" "))})});e=r.chain(e).pluck("cards").flatten(!0).value(),o.allCards=e},n.getAllSets=function(t){var e=["expansion","core","reprint","un"];r.map(t,function(t){delete t.booster,delete t.cards}),t=r.toArray(t);var n=i.nest().key(function(t){return t.type}).sortKeys(function(t,n){var i=r.contains(e,t)?e.indexOf(t):100,o=r.contains(e,n)?e.indexOf(n):100;return i-o}).sortValues(function(t,e){return new Date(e.releaseDate).getTime()-new Date(t.releaseDate).getTime()}).entries(t);o.allSets=n}},{"../app-state":2,d3:21,underscore:40}],14:[function(t,e,n){var r=t("hbsfy/runtime");e.exports=r.template({1:function(t,e,n,r){var i;return null!=(i=e["if"].call(t,null!=t?t.magicCardsInfoCode:t,{name:"if",hash:{},fn:this.program(2,r,0),inverse:this.program(10,r,0),data:r}))?i:""},2:function(t,e,n,r){var i;return null!=(i=e["if"].call(t,null!=t?t.number:t,{name:"if",hash:{},fn:this.program(3,r,0),inverse:this.program(5,r,0),data:r}))?i:""},3:function(t,e,n,r){var i=this.lambda,o=this.escapeExpression;return'    <li class="cards__item">\n     <a href="http://magiccards.info/'+o(i(null!=t?t.magicCardsInfoCode:t,t))+"/en/"+o(i(null!=t?t.number:t,t))+'.html" class="card__link">\n       <img class="cards__img cards__img--info" src="http://magiccards.info/scans/en/'+o(i(null!=t?t.magicCardsInfoCode:t,t))+"/"+o(i(null!=t?t.number:t,t))+'.jpg" alt="'+o(i(null!=t?t.name:t,t))+'">\n     </a>\n    </li>\n'},5:function(t,e,n,r){var i;return null!=(i=e["if"].call(t,null!=t?t.multiverseid:t,{name:"if",hash:{},fn:this.program(6,r,0),inverse:this.program(8,r,0),data:r}))?i:""},6:function(t,e,n,r){var i=this.lambda,o=this.escapeExpression;return'        <li class="cards__item">\n          <a href="http://gatherer.wizards.com/Pages/Card/Details.aspx?multiverseid='+o(i(null!=t?t.multiverseid:t,t))+'" class="card__link">\n            <img class="cards__img cards__img--gatherer" src="http://gatherer.wizards.com/Handlers/Image.ashx?multiverseid='+o(i(null!=t?t.multiverseid:t,t))+'&type=card" alt="'+o(i(null!=t?t.name:t,t))+'">\n          </a>\n        </li>\n'},8:function(t,e,n,r){var i=this.lambda,o=this.escapeExpression;return'        <li class="cards__item">\n          <div class="cards--proxy">\n            <p class="cards__item__name--proxy">'+o(i(null!=t?t.name:t,t))+'</p>\n            <h4 class="cards__item__label--proxy">'+o(i(null!=t?t.set:t,t))+"</h4>\n          </div>\n        </li>\n"},10:function(t,e,n,r){var i=this.lambda,o=this.escapeExpression;return'    <li class="cards__item">\n      <div class="cards--proxy">\n        <p class="cards__item__name--proxy">'+o(i(null!=t?t.name:t,t))+'</p>\n        <h4 class="cards__item__label--proxy">'+o(i(null!=t?t.set:t,t))+"</h4>\n      </div>\n    </li>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,n,r){var i;return null!=(i=e.each.call(t,null!=t?t.cards:t,{name:"each",hash:{},fn:this.program(1,r,0),inverse:this.noop,data:r}))?i:""},useData:!0})},{"hbsfy/runtime":30}],15:[function(t,e,n){var r=t("hbsfy/runtime");e.exports=r.template({1:function(t,e,n,r){var i,o=e.helperMissing,a="function",s=this.escapeExpression;return'      <th class="color__column__header">\n        <h3 class="color__head">'+s((i=null!=(i=e.key||r&&r.key)?i:o,typeof i===a?i.call(t,{name:"key",hash:{},data:r}):i))+'</h3>\n        <h4 class="color__subhead"><span id="card__total--'+s((i=null!=(i=e.key||r&&r.key)?i:o,typeof i===a?i.call(t,{name:"key",hash:{},data:r}):i))+'">TK</span> cards</h4>\n      </th>\n'},3:function(t,e,n,r){var i,o,a=e.helperMissing,s="function",u=this.escapeExpression;return'        <td class="color__graph color__graph--cmc">\n          <div class="color__graph__wrap">\n            <header class="color__graph__header">\n              <h4 class="color__graph__head color__graph__name--cmc">'+(null!=(i=e["if"].call(t,r&&r.first,{name:"if",hash:{},fn:this.program(4,r,0),inverse:this.noop,data:r}))?i:"")+'</h4>\n            </header>\n            <div id="color__graph--cmc--'+u((o=null!=(o=e.key||r&&r.key)?o:a,typeof o===s?o.call(t,{name:"key",hash:{},data:r}):o))+'"></div>\n            <aside class="color__graph__aside">\n              <h5 class="color__graph__subhead color__graph__subhead--cmc">Undefined for <span id="card__undefined--cmc--'+u((o=null!=(o=e.key||r&&r.key)?o:a,typeof o===s?o.call(t,{name:"key",hash:{},data:r}):o))+'">0</span> cards</h5>\n            </aside>\n          </div>\n        </td>\n'},4:function(t,e,n,r){return"Mana cost"},6:function(t,e,n,r){var i,o,a=e.helperMissing,s="function",u=this.escapeExpression;return'        <td class="color__graph color__graph--power">\n          <div class="color__graph__wrap">\n            <header class="color__graph__header">\n              <h4 class="color__graph__head color__graph__name--power">'+(null!=(i=e["if"].call(t,r&&r.first,{name:"if",hash:{},fn:this.program(7,r,0),inverse:this.noop,data:r}))?i:"")+'</h4>\n            </header>\n            <div id="color__graph--power--'+u((o=null!=(o=e.key||r&&r.key)?o:a,typeof o===s?o.call(t,{name:"key",hash:{},data:r}):o))+'"></div>\n            <aside class="color__graph__aside">\n              <h5 class="color__graph__subhead color__graph__subhead--power">Undefined for <span id="card__undefined--power--'+u((o=null!=(o=e.key||r&&r.key)?o:a,typeof o===s?o.call(t,{name:"key",hash:{},data:r}):o))+'">0</span> cards</h5>\n            </aside>\n          </div>\n        </td>\n'},7:function(t,e,n,r){return"Power"},9:function(t,e,n,r){var i,o,a=e.helperMissing,s="function",u=this.escapeExpression;return'        <td class="color__graph color__graph--toughness">\n          <div class="color__graph__wrap">\n            <header class="color__graph__header">\n              <h4 class="color__graph__head color__graph__name--toughness">'+(null!=(i=e["if"].call(t,r&&r.first,{name:"if",hash:{},fn:this.program(10,r,0),inverse:this.noop,data:r}))?i:"")+'</h4>\n            </header>\n            <div id="color__graph--toughness--'+u((o=null!=(o=e.key||r&&r.key)?o:a,typeof o===s?o.call(t,{name:"key",hash:{},data:r}):o))+'"></div>\n            <aside class="color__graph__aside">\n              <h5 class="color__graph__subhead color__graph__subhead--toughness">Undefined for <span id="card__undefined--toughness--'+u((o=null!=(o=e.key||r&&r.key)?o:a,typeof o===s?o.call(t,{name:"key",hash:{},data:r}):o))+'">0</span> cards</h5>\n            </aside>\n          </div>\n        </td>\n'},10:function(t,e,n,r){return"Toughness"},12:function(t,e,n,r){var i,o;return'        <td class="color__graph color__graph--rarity">\n          <div class="color__graph__wrap">\n            <header class="color__graph__header">\n              <h4 class="color__graph__head color__graph__name--rarity">'+(null!=(i=e["if"].call(t,r&&r.first,{name:"if",hash:{},fn:this.program(13,r,0),inverse:this.noop,data:r}))?i:"")+'</h4>\n            </header>\n            <div id="color__graph--rarity--'+this.escapeExpression((o=null!=(o=e.key||r&&r.key)?o:e.helperMissing,"function"==typeof o?o.call(t,{name:"key",hash:{},data:r}):o))+'"></div>\n          </div>\n        </td>\n'},13:function(t,e,n,r){return"Rarity"},15:function(t,e,n,r){var i,o,a=e.helperMissing,s="function",u=this.escapeExpression;return'        <td class="color__graph color__graph--set" id="color__graph--set--'+u((o=null!=(o=e.key||r&&r.key)?o:a,typeof o===s?o.call(t,{name:"key",hash:{},data:r}):o))+'">\n          <div class="color__graph__wrap">\n            <header class="color__graph__header">\n              <h4 class="color__graph__head color__graph__name--set">'+(null!=(i=e["if"].call(t,r&&r.first,{name:"if",hash:{},fn:this.program(16,r,0),inverse:this.noop,data:r}))?i:"")+'</h4>\n            </header>\n            <ol class="color__graph__list" id="color__graph__ol--set--'+u((o=null!=(o=e.key||r&&r.key)?o:a,typeof o===s?o.call(t,{name:"key",hash:{},data:r}):o))+'"></ol>\n          </div>\n        </td>\n'},16:function(t,e,n,r){return"Set"},18:function(t,e,n,r){var i,o,a=e.helperMissing,s="function",u=this.escapeExpression;return'        <td class="color__graph color__graph--types" id="color__graph--types--'+u((o=null!=(o=e.key||r&&r.key)?o:a,typeof o===s?o.call(t,{name:"key",hash:{},data:r}):o))+'">\n          <div class="color__graph__wrap">\n            <header class="color__graph__header">\n              <h4 class="color__graph__head color__graph__name--types">'+(null!=(i=e["if"].call(t,r&&r.first,{name:"if",hash:{},fn:this.program(19,r,0),inverse:this.noop,data:r}))?i:"")+'</h4>\n            </header>\n            <ol class="color__graph__list" id="color__graph__ol--types--'+u((o=null!=(o=e.key||r&&r.key)?o:a,typeof o===s?o.call(t,{name:"key",hash:{},data:r}):o))+'"></ol>\n          </div>\n        </td>\n'},19:function(t,e,n,r){return"Types"},21:function(t,e,n,r){var i,o,a=e.helperMissing,s="function",u=this.escapeExpression;return'        <td class="color__graph color__graph--subtypes" id="color__graph--subtypes--'+u((o=null!=(o=e.key||r&&r.key)?o:a,typeof o===s?o.call(t,{name:"key",hash:{},data:r}):o))+'">\n          <div class="color__graph__wrap">\n            <header class="color__graph__header">\n              <h4 class="color__graph__head color__graph__name--subtypes">'+(null!=(i=e["if"].call(t,r&&r.first,{name:"if",hash:{},fn:this.program(22,r,0),inverse:this.noop,data:r}))?i:"")+'</h4>\n            </header>\n            <ol class="color__graph__list" id="color__graph__ol--subtypes--'+u((o=null!=(o=e.key||r&&r.key)?o:a,typeof o===s?o.call(t,{name:"key",hash:{},data:r}):o))+'"></ol>\n          </div>\n          <aside class="color__graph__aside">\n            <h5 class="color__graph__subhead color__graph__subhead--subtypes">Undefined for <span id="card__undefined--subtypes--'+u((o=null!=(o=e.key||r&&r.key)?o:a,typeof o===s?o.call(t,{name:"key",hash:{},data:r}):o))+'">0</span> cards</h5>\n          </aside>\n        </td>\n'},22:function(t,e,n,r){return"Subtypes"},compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,n,r){var i;return'<table class="color__table">\n  <thead>\n    <tr class="color__table__row color__table__row--header">\n'+(null!=(i=e.each.call(t,null!=t?t.color:t,{name:"each",hash:{},fn:this.program(1,r,0),inverse:this.noop,data:r}))?i:"")+'    </tr>\n  </thead>\n  <tbody>\n    <tr class="color__table__row color__table__row--body">\n'+(null!=(i=e.each.call(t,null!=t?t.color:t,{name:"each",hash:{},fn:this.program(3,r,0),inverse:this.noop,data:r}))?i:"")+'    </tr>\n    <tr class="color__table__row color__table__row--body">\n'+(null!=(i=e.each.call(t,null!=t?t.color:t,{name:"each",hash:{},fn:this.program(6,r,0),inverse:this.noop,data:r}))?i:"")+'    </tr>\n    <tr class="color__table__row color__table__row--body">\n'+(null!=(i=e.each.call(t,null!=t?t.color:t,{name:"each",hash:{},fn:this.program(9,r,0),inverse:this.noop,data:r}))?i:"")+'    </tr>\n    <tr class="color__table__row color__table__row--body">\n'+(null!=(i=e.each.call(t,null!=t?t.color:t,{name:"each",hash:{},fn:this.program(12,r,0),inverse:this.noop,data:r}))?i:"")+'    </tr>\n    <tr class="color__table__row color__table__row--body">\n'+(null!=(i=e.each.call(t,null!=t?t.color:t,{name:"each",hash:{},fn:this.program(15,r,0),inverse:this.noop,data:r}))?i:"")+'    </tr>\n    <tr class="color__table__row color__table__row--body">\n'+(null!=(i=e.each.call(t,null!=t?t.color:t,{name:"each",hash:{},fn:this.program(18,r,0),inverse:this.noop,data:r}))?i:"")+'    </tr>\n    <tr class="color__table__row color__table__row--body">\n'+(null!=(i=e.each.call(t,null!=t?t.color:t,{name:"each",hash:{},fn:this.program(21,r,0),inverse:this.noop,data:r}))?i:"")+"    </tr>\n  </tbody>\n</table>\n"},useData:!0})},{"hbsfy/runtime":30}],16:[function(t,e,n){var r=t("hbsfy/runtime");e.exports=r.template({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,n,r){return'<form class="filter">\n  <fieldset class="filter__fieldset">\n    <select class="filter__select--multi filter__select--sets" id="filter__select--multi--set" multiple="multiple" placeholder="Filter by sets...">\n    </select>\n  </fieldset>\n  <fieldset class="filter__fieldset">\n    <select class="filter__select--multi filter__select--no--meta" id="filter__select--multi--rarity" multiple="multiple" placeholder="Filter by rarity...">\n      <option value="Common">Common</option>\n      <option value="Uncommon">Uncommon</option>\n      <option value="Rare">Rare</option>\n      <option value="Mythic Rare">Mythic Rare</option>\n      <option value="Special">Special</option>\n      <option value="Basic Land">Basic Land</option>\n    </select>\n  </fieldset>\n  <fieldset class="filter__fieldset">\n    <select class="filter__select--multi filter__select--no--meta" id="filter__select--multi--types" multiple="multiple" placeholder="Filter by type...">\n    </select>\n  </fieldset>\n  <fieldset class="filter__fieldset">\n    <select class="filter__select--multi filter__select--no--meta" id="filter__select--multi--subtypes" multiple="multiple" placeholder="Filter by subtype...">\n    </select>\n  </fieldset>\n  <fieldset class="filter__fieldset">\n    <select class="filter__select--multi filter__select--no--meta" id="filter__select--multi--artist" multiple="multiple" placeholder="Filter by artist...">\n    </select>\n  </fieldset>\n</form>\n'},useData:!0})},{"hbsfy/runtime":30}],17:[function(t,e,n){var r=t("hbsfy/runtime");e.exports=r.template({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,n,r){return'<footer class="footer">\n  <p class="footer__text">The information presented on this site, both literal and graphical, is copyrighted by <a href="http://company.wizards.com/" class="footer__link">Wizards of the Coast</a>. This website is not affiliated with Wizards of the Coast in any way.</p>\n  <p class="footer__text">Many thanks to <a href="http://mtgjson.com/" class="footer__link">MTG JSON</a> for the card data and <a href="http://magiccards.info/" class="footer__link">magiccards.info</a> for the images.</p>\n</footer>'},useData:!0})},{"hbsfy/runtime":30}],18:[function(t,e,n){var r=t("hbsfy/runtime");e.exports=r.template({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,n,r){var i;return'<main class="main">\n  <header class="site__header">\n    <h1 class="site__head">Magic: The Graphening</h1>\n    <h3 class="site__subhead">What color will you play?</h3>\n    <div class="site__header__stickymod">\n      <h2 class="cards__head"><span class="cards__selected">0</span> cards selected</h2>\n      <button class="cards__btn cards__btn--cardview cards__btn--cardview--open">↓ Show selected cards</button>\n      <button class="cards__btn cards__btn--cardview cards__btn--cardview--close">↑ Hide selected cards</button>\n'+(null!=(i=this.invokePartial(n.filter,t,{name:"filter",data:r,indent:"      ",helpers:e,partials:n}))?i:"")+'      <aside class="cards">\n        <ul class="cards__grid">\n        </ul>\n        <button class="cards__btn cards__btn--add">+ Load more</button>\n      </aside>\n    </div>\n  </header>\n\n  <article class="stream">\n    <section class="colors" id="colors">\n      <!-- Color grid renders here when data is ready -->\n    </section>\n  </article>\n\n</main>\n'+(null!=(i=this.invokePartial(n.footer,t,{name:"footer",data:r,helpers:e,partials:n}))?i:"")},usePartial:!0,useData:!0})},{"hbsfy/runtime":30}],19:[function(t,e,n){var r=t("hbsfy/runtime");e.exports=r.template({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,n,r){var i,o=e.helperMissing,a="function",s=this.escapeExpression;return'<li class="color__graph__li">'+s((i=null!=(i=e.value||(null!=t?t.value:t))?i:o,typeof i===a?i.call(t,{name:"value",hash:{},data:r}):i))+"&nbsp;x&nbsp;"+s((i=null!=(i=e.key||(null!=t?t.key:t))?i:o,typeof i===a?i.call(t,{name:"key",hash:{},data:r}):i))+"</li>\n"},useData:!0})},{"hbsfy/runtime":30}],20:[function(t,e,n){"use strict";var r=t("d3");n.isInt=function(t){return parseInt(t)===t},n.formatCommas=r.format("0,000")},{d3:21}],21:[function(t,e,n){!function(){function t(t){return t&&(t.ownerDocument||t.document||t).documentElement;
  
  }function n(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function r(t,e){return e>t?-1:t>e?1:t>=e?0:0/0}function i(t){return null===t?0/0:+t}function o(t){return!isNaN(t)}function a(t){return{left:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);i>r;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);i>r;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}function s(t){return t.length}function u(t){for(var e=1;t*e%1;)e*=10;return e}function l(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function c(){this._=Object.create(null)}function f(t){return(t+="")===ma||t[0]===va?va+t:t}function h(t){return(t+="")[0]===va?t.slice(1):t}function p(t){return f(t)in this._}function d(t){return(t=f(t))in this._&&delete this._[t]}function g(){var t=[];for(var e in this._)t.push(h(e));return t}function m(){var t=0;for(var e in this._)++t;return t}function v(){for(var t in this._)return!1;return!0}function y(){this._=Object.create(null)}function _(t){return t}function b(t,e,n){return function(){var r=n.apply(e,arguments);return r===e?t:r}}function x(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0,r=ya.length;r>n;++n){var i=ya[n]+e;if(i in t)return i}}function w(){}function M(){}function k(t){function e(){for(var e,r=n,i=-1,o=r.length;++i<o;)(e=r[i].on)&&e.apply(this,arguments);return t}var n=[],r=new c;return e.on=function(e,i){var o,a=r.get(e);return arguments.length<2?a&&a.on:(a&&(a.on=null,n=n.slice(0,o=n.indexOf(a)).concat(n.slice(o+1)),r.remove(e)),i&&n.push(r.set(e,{on:i})),t)},e}function C(){ra.event.preventDefault()}function S(){for(var t,e=ra.event;t=e.sourceEvent;)e=t;return e}function T(t){for(var e=new M,n=0,r=arguments.length;++n<r;)e[arguments[n]]=k(e);return e.of=function(n,r){return function(i){try{var o=i.sourceEvent=ra.event;i.target=t,ra.event=i,e[i.type].apply(n,r)}finally{ra.event=o}}},e}function D(t){return ba(t,ka),t}function O(t){return"function"==typeof t?t:function(){return xa(t,this)}}function E(t){return"function"==typeof t?t:function(){return wa(t,this)}}function A(t,e){function n(){this.removeAttribute(t)}function r(){this.removeAttributeNS(t.space,t.local)}function i(){this.setAttribute(t,e)}function o(){this.setAttributeNS(t.space,t.local,e)}function a(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}function s(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}return t=ra.ns.qualify(t),null==e?t.local?r:n:"function"==typeof e?t.local?s:a:t.local?o:i}function N(t){return t.trim().replace(/\s+/g," ")}function j(t){return new RegExp("(?:^|\\s+)"+ra.requote(t)+"(?:\\s+|$)","g")}function L(t){return(t+"").trim().split(/^|\s+/)}function F(t,e){function n(){for(var n=-1;++n<i;)t[n](this,e)}function r(){for(var n=-1,r=e.apply(this,arguments);++n<i;)t[n](this,r)}t=L(t).map(P);var i=t.length;return"function"==typeof e?r:n}function P(t){var e=j(t);return function(n,r){if(i=n.classList)return r?i.add(t):i.remove(t);var i=n.getAttribute("class")||"";r?(e.lastIndex=0,e.test(i)||n.setAttribute("class",N(i+" "+t))):n.setAttribute("class",N(i.replace(e," ")))}}function q(t,e,n){function r(){this.style.removeProperty(t)}function i(){this.style.setProperty(t,e,n)}function o(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}return null==e?r:"function"==typeof e?o:i}function I(t,e){function n(){delete this[t]}function r(){this[t]=e}function i(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}return null==e?n:"function"==typeof e?i:r}function $(t){function e(){var e=this.ownerDocument,n=this.namespaceURI;return n?e.createElementNS(n,t):e.createElement(t)}function n(){return this.ownerDocument.createElementNS(t.space,t.local)}return"function"==typeof t?t:(t=ra.ns.qualify(t)).local?n:e}function z(){var t=this.parentNode;t&&t.removeChild(this)}function H(t){return{__data__:t}}function R(t){return function(){return Ma(this,t)}}function Y(t){return arguments.length||(t=r),function(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}}function U(t,e){for(var n=0,r=t.length;r>n;n++)for(var i,o=t[n],a=0,s=o.length;s>a;a++)(i=o[a])&&e(i,a,n);return t}function W(t){return ba(t,Sa),t}function B(t){var e,n;return function(r,i,o){var a,s=t[o].update,u=s.length;for(o!=n&&(n=o,e=0),i>=e&&(e=i+1);!(a=s[e])&&++e<u;);return a}}function V(t,e,n){function r(){var e=this[a];e&&(this.removeEventListener(t,e,e.$),delete this[a])}function i(){var i=u(e,oa(arguments));r.call(this),this.addEventListener(t,this[a]=i,i.$=n),i._=e}function o(){var e,n=new RegExp("^__on([^.]+)"+ra.requote(t)+"$");for(var r in this)if(e=r.match(n)){var i=this[r];this.removeEventListener(e[1],i,i.$),delete this[r]}}var a="__on"+t,s=t.indexOf("."),u=G;s>0&&(t=t.slice(0,s));var l=Ta.get(t);return l&&(t=l,u=Z),s?e?i:r:e?w:o}function G(t,e){return function(n){var r=ra.event;ra.event=n,e[0]=this.__data__;try{t.apply(this,e)}finally{ra.event=r}}}function Z(t,e){var n=G(t,e);return function(t){var e=this,r=t.relatedTarget;r&&(r===e||8&r.compareDocumentPosition(e))||n.call(e,t)}}function X(e){var r=".dragsuppress-"+ ++Oa,i="click"+r,o=ra.select(n(e)).on("touchmove"+r,C).on("dragstart"+r,C).on("selectstart"+r,C);if(null==Da&&(Da="onselectstart"in e?!1:x(e.style,"userSelect")),Da){var a=t(e).style,s=a[Da];a[Da]="none"}return function(t){if(o.on(r,null),Da&&(a[Da]=s),t){var e=function(){o.on(i,null)};o.on(i,function(){C(),e()},!0),setTimeout(e,0)}}}function K(t,e){e.changedTouches&&(e=e.changedTouches[0]);var r=t.ownerSVGElement||t;if(r.createSVGPoint){var i=r.createSVGPoint();if(0>Ea){var o=n(t);if(o.scrollX||o.scrollY){r=ra.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var a=r[0][0].getScreenCTM();Ea=!(a.f||a.e),r.remove()}}return Ea?(i.x=e.pageX,i.y=e.pageY):(i.x=e.clientX,i.y=e.clientY),i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}function Q(){return ra.event.changedTouches[0].identifier}function J(t){return t>0?1:0>t?-1:0}function tt(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function et(t){return t>1?0:-1>t?ja:Math.acos(t)}function nt(t){return t>1?Pa:-1>t?-Pa:Math.asin(t)}function rt(t){return((t=Math.exp(t))-1/t)/2}function it(t){return((t=Math.exp(t))+1/t)/2}function ot(t){return((t=Math.exp(2*t))-1)/(t+1)}function at(t){return(t=Math.sin(t/2))*t}function st(){}function ut(t,e,n){return this instanceof ut?(this.h=+t,this.s=+e,void(this.l=+n)):arguments.length<2?t instanceof ut?new ut(t.h,t.s,t.l):wt(""+t,Mt,ut):new ut(t,e,n)}function lt(t,e,n){function r(t){return t>360?t-=360:0>t&&(t+=360),60>t?o+(a-o)*t/60:180>t?a:240>t?o+(a-o)*(240-t)/60:o}function i(t){return Math.round(255*r(t))}var o,a;return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:0>e?0:e>1?1:e,n=0>n?0:n>1?1:n,a=.5>=n?n*(1+e):n+e-n*e,o=2*n-a,new yt(i(t+120),i(t),i(t-120))}function ct(t,e,n){return this instanceof ct?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof ct?new ct(t.h,t.c,t.l):t instanceof ht?dt(t.l,t.a,t.b):dt((t=kt((t=ra.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new ct(t,e,n)}function ft(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new ht(n,Math.cos(t*=qa)*e,Math.sin(t)*e)}function ht(t,e,n){return this instanceof ht?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof ht?new ht(t.l,t.a,t.b):t instanceof ct?ft(t.h,t.c,t.l):kt((t=yt(t)).r,t.g,t.b):new ht(t,e,n)}function pt(t,e,n){var r=(t+16)/116,i=r+e/500,o=r-n/200;return i=gt(i)*Ga,r=gt(r)*Za,o=gt(o)*Xa,new yt(vt(3.2404542*i-1.5371385*r-.4985314*o),vt(-.969266*i+1.8760108*r+.041556*o),vt(.0556434*i-.2040259*r+1.0572252*o))}function dt(t,e,n){return t>0?new ct(Math.atan2(n,e)*Ia,Math.sqrt(e*e+n*n),t):new ct(0/0,0/0,t)}function gt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function mt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function vt(t){return Math.round(255*(.00304>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function yt(t,e,n){return this instanceof yt?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof yt?new yt(t.r,t.g,t.b):wt(""+t,yt,lt):new yt(t,e,n)}function _t(t){return new yt(t>>16,t>>8&255,255&t)}function bt(t){return _t(t)+""}function xt(t){return 16>t?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function wt(t,e,n){var r,i,o,a=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/i.exec(t))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(St(i[0]),St(i[1]),St(i[2]))}return(o=Ja.get(t.toLowerCase()))?e(o.r,o.g,o.b):(null==t||"#"!==t.charAt(0)||isNaN(o=parseInt(t.slice(1),16))||(4===t.length?(a=(3840&o)>>4,a=a>>4|a,s=240&o,s=s>>4|s,u=15&o,u=u<<4|u):7===t.length&&(a=(16711680&o)>>16,s=(65280&o)>>8,u=255&o)),e(a,s,u))}function Mt(t,e,n){var r,i,o=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),s=a-o,u=(a+o)/2;return s?(i=.5>u?s/(a+o):s/(2-a-o),r=t==a?(e-n)/s+(n>e?6:0):e==a?(n-t)/s+2:(t-e)/s+4,r*=60):(r=0/0,i=u>0&&1>u?0:r),new ut(r,i,u)}function kt(t,e,n){t=Ct(t),e=Ct(e),n=Ct(n);var r=mt((.4124564*t+.3575761*e+.1804375*n)/Ga),i=mt((.2126729*t+.7151522*e+.072175*n)/Za),o=mt((.0193339*t+.119192*e+.9503041*n)/Xa);return ht(116*i-16,500*(r-i),200*(i-o))}function Ct(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function St(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}function Tt(t){return"function"==typeof t?t:function(){return t}}function Dt(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),Ot(e,n,t,r)}}function Ot(t,e,n,r){function i(){var t,e=u.status;if(!e&&At(u)||e>=200&&300>e||304===e){try{t=n.call(o,u)}catch(r){return void a.error.call(o,r)}a.load.call(o,t)}else a.error.call(o,u)}var o={},a=ra.dispatch("beforesend","progress","load","error"),s={},u=new XMLHttpRequest,l=null;return!this.XDomainRequest||"withCredentials"in u||!/^(http(s)?:)?\/\//.test(t)||(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=i:u.onreadystatechange=function(){u.readyState>3&&i()},u.onprogress=function(t){var e=ra.event;ra.event=t;try{a.progress.call(o,u)}finally{ra.event=e}},o.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?s[t]:(null==e?delete s[t]:s[t]=e+"",o)},o.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",o):e},o.responseType=function(t){return arguments.length?(l=t,o):l},o.response=function(t){return n=t,o},["get","post"].forEach(function(t){o[t]=function(){return o.send.apply(o,[t].concat(oa(arguments)))}}),o.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),u.open(n,t,!0),null==e||"accept"in s||(s.accept=e+",*/*"),u.setRequestHeader)for(var c in s)u.setRequestHeader(c,s[c]);return null!=e&&u.overrideMimeType&&u.overrideMimeType(e),null!=l&&(u.responseType=l),null!=i&&o.on("error",i).on("load",function(t){i(null,t)}),a.beforesend.call(o,u),u.send(null==r?null:r),o},o.abort=function(){return u.abort(),o},ra.rebind(o,a,"on"),null==r?o:o.get(Et(r))}function Et(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}function At(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}function Nt(){var t=jt(),e=Lt()-t;e>24?(isFinite(e)&&(clearTimeout(rs),rs=setTimeout(Nt,e)),ns=0):(ns=1,os(Nt))}function jt(){var t=Date.now();for(is=ts;is;)t>=is.t&&(is.f=is.c(t-is.t)),is=is.n;return t}function Lt(){for(var t,e=ts,n=1/0;e;)e.f?e=t?t.n=e.n:ts=e.n:(e.t<n&&(n=e.t),e=(t=e).n);return es=t,n}function Ft(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function Pt(t,e){var n=Math.pow(10,3*ga(8-e));return{scale:e>8?function(t){return t/n}:function(t){return t*n},symbol:t}}function qt(t){var e=t.decimal,n=t.thousands,r=t.grouping,i=t.currency,o=r&&n?function(t,e){for(var i=t.length,o=[],a=0,s=r[0],u=0;i>0&&s>0&&(u+s+1>e&&(s=Math.max(1,e-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>e));)s=r[a=(a+1)%r.length];return o.reverse().join(n)}:_;return function(t){var n=ss.exec(t),r=n[1]||" ",a=n[2]||">",s=n[3]||"-",u=n[4]||"",l=n[5],c=+n[6],f=n[7],h=n[8],p=n[9],d=1,g="",m="",v=!1,y=!0;switch(h&&(h=+h.substring(1)),(l||"0"===r&&"="===a)&&(l=r="0",a="="),p){case"n":f=!0,p="g";break;case"%":d=100,m="%",p="f";break;case"p":d=100,m="%",p="r";break;case"b":case"o":case"x":case"X":"#"===u&&(g="0"+p.toLowerCase());case"c":y=!1;case"d":v=!0,h=0;break;case"s":d=-1,p="r"}"$"===u&&(g=i[0],m=i[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):("e"==p||"f"==p)&&(h=Math.max(0,Math.min(20,h)))),p=us.get(p)||It;var _=l&&f;return function(t){var n=m;if(v&&t%1)return"";var i=0>t||0===t&&0>1/t?(t=-t,"-"):"-"===s?"":s;if(0>d){var u=ra.formatPrefix(t,h);t=u.scale(t),n=u.symbol+m}else t*=d;t=p(t,h);var b,x,w=t.lastIndexOf(".");if(0>w){var M=y?t.lastIndexOf("e"):-1;0>M?(b=t,x=""):(b=t.substring(0,M),x=t.substring(M))}else b=t.substring(0,w),x=e+t.substring(w+1);!l&&f&&(b=o(b,1/0));var k=g.length+b.length+x.length+(_?0:i.length),C=c>k?new Array(k=c-k+1).join(r):"";return _&&(b=o(C+b,C.length?c-x.length:1/0)),i+=g,t=b+x,("<"===a?i+t+C:">"===a?C+i+t:"^"===a?C.substring(0,k>>=1)+i+t+C.substring(k):i+(_?t:C+t))+n}}}function It(t){return t+""}function $t(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function zt(t,e,n){function r(e){var n=t(e),r=o(n,1);return r-e>e-n?n:r}function i(n){return e(n=t(new cs(n-1)),1),n}function o(t,n){return e(t=new cs(+t),n),t}function a(t,r,o){var a=i(t),s=[];if(o>1)for(;r>a;)n(a)%o||s.push(new Date(+a)),e(a,1);else for(;r>a;)s.push(new Date(+a)),e(a,1);return s}function s(t,e,n){try{cs=$t;var r=new $t;return r._=t,a(r,e,n)}finally{cs=Date}}t.floor=t,t.round=r,t.ceil=i,t.offset=o,t.range=a;var u=t.utc=Ht(t);return u.floor=u,u.round=Ht(r),u.ceil=Ht(i),u.offset=Ht(o),u.range=s,t}function Ht(t){return function(e,n){try{cs=$t;var r=new $t;return r._=e,t(r,n)._}finally{cs=Date}}}function Rt(t){function e(t){function e(e){for(var n,i,o,a=[],s=-1,u=0;++s<r;)37===t.charCodeAt(s)&&(a.push(t.slice(u,s)),null!=(i=hs[n=t.charAt(++s)])&&(n=t.charAt(++s)),(o=D[n])&&(n=o(e,null==i?"e"===n?" ":"0":i)),a.push(n),u=s+1);return a.push(t.slice(u,s)),a.join("")}var r=t.length;return e.parse=function(e){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},i=n(r,t,e,0);if(i!=e.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var o=null!=r.Z&&cs!==$t,a=new(o?$t:cs);return"j"in r?a.setFullYear(r.y,0,r.j):"w"in r&&("W"in r||"U"in r)?(a.setFullYear(r.y,0,1),a.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(a.getDay()+5)%7:r.w+7*r.U-(a.getDay()+6)%7)):a.setFullYear(r.y,r.m,r.d),a.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),o?a._:a},e.toString=function(){return t},e}function n(t,e,n,r){for(var i,o,a,s=0,u=e.length,l=n.length;u>s;){if(r>=l)return-1;if(i=e.charCodeAt(s++),37===i){if(a=e.charAt(s++),o=O[a in hs?e.charAt(s++):a],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function r(t,e,n){w.lastIndex=0;var r=w.exec(e.slice(n));return r?(t.w=M.get(r[0].toLowerCase()),n+r[0].length):-1}function i(t,e,n){b.lastIndex=0;var r=b.exec(e.slice(n));return r?(t.w=x.get(r[0].toLowerCase()),n+r[0].length):-1}function o(t,e,n){S.lastIndex=0;var r=S.exec(e.slice(n));return r?(t.m=T.get(r[0].toLowerCase()),n+r[0].length):-1}function a(t,e,n){k.lastIndex=0;var r=k.exec(e.slice(n));return r?(t.m=C.get(r[0].toLowerCase()),n+r[0].length):-1}function s(t,e,r){return n(t,D.c.toString(),e,r)}function u(t,e,r){return n(t,D.x.toString(),e,r)}function l(t,e,r){return n(t,D.X.toString(),e,r)}function c(t,e,n){var r=_.get(e.slice(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)}var f=t.dateTime,h=t.date,p=t.time,d=t.periods,g=t.days,m=t.shortDays,v=t.months,y=t.shortMonths;e.utc=function(t){function n(t){try{cs=$t;var e=new cs;return e._=t,r(e)}finally{cs=Date}}var r=e(t);return n.parse=function(t){try{cs=$t;var e=r.parse(t);return e&&e._}finally{cs=Date}},n.toString=r.toString,n},e.multi=e.utc.multi=ue;var _=ra.map(),b=Ut(g),x=Wt(g),w=Ut(m),M=Wt(m),k=Ut(v),C=Wt(v),S=Ut(y),T=Wt(y);d.forEach(function(t,e){_.set(t.toLowerCase(),e)});var D={a:function(t){return m[t.getDay()]},A:function(t){return g[t.getDay()]},b:function(t){return y[t.getMonth()]},B:function(t){return v[t.getMonth()]},c:e(f),d:function(t,e){return Yt(t.getDate(),e,2)},e:function(t,e){return Yt(t.getDate(),e,2)},H:function(t,e){return Yt(t.getHours(),e,2)},I:function(t,e){return Yt(t.getHours()%12||12,e,2)},j:function(t,e){return Yt(1+ls.dayOfYear(t),e,3)},L:function(t,e){return Yt(t.getMilliseconds(),e,3)},m:function(t,e){return Yt(t.getMonth()+1,e,2)},M:function(t,e){return Yt(t.getMinutes(),e,2)},p:function(t){return d[+(t.getHours()>=12)]},S:function(t,e){return Yt(t.getSeconds(),e,2)},U:function(t,e){return Yt(ls.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Yt(ls.mondayOfYear(t),e,2)},x:e(h),X:e(p),y:function(t,e){return Yt(t.getFullYear()%100,e,2)},Y:function(t,e){return Yt(t.getFullYear()%1e4,e,4)},Z:ae,"%":function(){return"%"}},O={a:r,A:i,b:o,B:a,c:s,d:te,e:te,H:ne,I:ne,j:ee,L:oe,m:Jt,M:re,p:c,S:ie,U:Vt,w:Bt,W:Gt,x:u,X:l,y:Xt,Y:Zt,Z:Kt,"%":se};return e}function Yt(t,e,n){var r=0>t?"-":"",i=(r?-t:t)+"",o=i.length;return r+(n>o?new Array(n-o+1).join(e)+i:i)}function Ut(t){return new RegExp("^(?:"+t.map(ra.requote).join("|")+")","i")}function Wt(t){for(var e=new c,n=-1,r=t.length;++n<r;)e.set(t[n].toLowerCase(),n);return e}function Bt(t,e,n){ps.lastIndex=0;var r=ps.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Vt(t,e,n){ps.lastIndex=0;var r=ps.exec(e.slice(n));return r?(t.U=+r[0],n+r[0].length):-1}function Gt(t,e,n){ps.lastIndex=0;var r=ps.exec(e.slice(n));return r?(t.W=+r[0],n+r[0].length):-1}function Zt(t,e,n){ps.lastIndex=0;var r=ps.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Xt(t,e,n){ps.lastIndex=0;var r=ps.exec(e.slice(n,n+2));return r?(t.y=Qt(+r[0]),n+r[0].length):-1}function Kt(t,e,n){return/^[+-]\d{4}$/.test(e=e.slice(n,n+5))?(t.Z=-e,n+5):-1}function Qt(t){return t+(t>68?1900:2e3)}function Jt(t,e,n){ps.lastIndex=0;var r=ps.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function te(t,e,n){ps.lastIndex=0;var r=ps.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function ee(t,e,n){ps.lastIndex=0;var r=ps.exec(e.slice(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function ne(t,e,n){ps.lastIndex=0;var r=ps.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function re(t,e,n){ps.lastIndex=0;var r=ps.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ie(t,e,n){ps.lastIndex=0;var r=ps.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function oe(t,e,n){ps.lastIndex=0;var r=ps.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function ae(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=ga(e)/60|0,i=ga(e)%60;return n+Yt(r,"0",2)+Yt(i,"0",2)}function se(t,e,n){ds.lastIndex=0;var r=ds.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function ue(t){for(var e=t.length,n=-1;++n<e;)t[n][0]=this(t[n][0]);return function(e){for(var n=0,r=t[n];!r[1](e);)r=t[++n];return r[0](e)}}function le(){}function ce(t,e,n){var r=n.s=t+e,i=r-t,o=r-i;n.t=t-o+(e-i)}function fe(t,e){t&&ys.hasOwnProperty(t.type)&&ys[t.type](t,e)}function he(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function pe(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)he(t[n],e,1);e.polygonEnd()}function de(){function t(t,e){t*=qa,e=e*qa/2+ja/4;var n=t-r,a=n>=0?1:-1,s=a*n,u=Math.cos(e),l=Math.sin(e),c=o*l,f=i*u+c*Math.cos(s),h=c*a*Math.sin(s);bs.add(Math.atan2(h,f)),r=t,i=u,o=l}var e,n,r,i,o;xs.point=function(a,s){xs.point=t,r=(e=a)*qa,i=Math.cos(s=(n=s)*qa/2+ja/4),o=Math.sin(s)},xs.lineEnd=function(){t(e,n)}}function ge(t){var e=t[0],n=t[1],r=Math.cos(n);return[r*Math.cos(e),r*Math.sin(e),Math.sin(n)]}function me(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function ve(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function ye(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function _e(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function be(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function xe(t){return[Math.atan2(t[1],t[0]),nt(t[2])]}function we(t,e){return ga(t[0]-e[0])<Aa&&ga(t[1]-e[1])<Aa}function Me(t,e){t*=qa;var n=Math.cos(e*=qa);ke(n*Math.cos(t),n*Math.sin(t),Math.sin(e))}function ke(t,e,n){++ws,ks+=(t-ks)/ws,Cs+=(e-Cs)/ws,Ss+=(n-Ss)/ws}function Ce(){function t(t,i){t*=qa;var o=Math.cos(i*=qa),a=o*Math.cos(t),s=o*Math.sin(t),u=Math.sin(i),l=Math.atan2(Math.sqrt((l=n*u-r*s)*l+(l=r*a-e*u)*l+(l=e*s-n*a)*l),e*a+n*s+r*u);Ms+=l,Ts+=l*(e+(e=a)),Ds+=l*(n+(n=s)),Os+=l*(r+(r=u)),ke(e,n,r)}var e,n,r;js.point=function(i,o){i*=qa;var a=Math.cos(o*=qa);e=a*Math.cos(i),n=a*Math.sin(i),r=Math.sin(o),js.point=t,ke(e,n,r)}}function Se(){js.point=Me}function Te(){function t(t,e){t*=qa;var n=Math.cos(e*=qa),a=n*Math.cos(t),s=n*Math.sin(t),u=Math.sin(e),l=i*u-o*s,c=o*a-r*u,f=r*s-i*a,h=Math.sqrt(l*l+c*c+f*f),p=r*a+i*s+o*u,d=h&&-et(p)/h,g=Math.atan2(h,p);Es+=d*l,As+=d*c,Ns+=d*f,Ms+=g,Ts+=g*(r+(r=a)),Ds+=g*(i+(i=s)),Os+=g*(o+(o=u)),ke(r,i,o)}var e,n,r,i,o;js.point=function(a,s){e=a,n=s,js.point=t,a*=qa;var u=Math.cos(s*=qa);r=u*Math.cos(a),i=u*Math.sin(a),o=Math.sin(s),ke(r,i,o)},js.lineEnd=function(){t(e,n),js.lineEnd=Se,js.point=Me}}function De(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return n=e.invert(n,r),n&&t.invert(n[0],n[1])}),n}function Oe(){return!0}function Ee(t,e,n,r,i){var o=[],a=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n=t[0],r=t[e];if(we(n,r)){i.lineStart();for(var s=0;e>s;++s)i.point((n=t[s])[0],n[1]);return void i.lineEnd()}var u=new Ne(n,t,null,!0),l=new Ne(n,null,u,!1);u.o=l,o.push(u),a.push(l),u=new Ne(r,t,null,!1),l=new Ne(r,null,u,!0),u.o=l,o.push(u),a.push(l)}}),a.sort(e),Ae(o),Ae(a),o.length){for(var s=0,u=n,l=a.length;l>s;++s)a[s].e=u=!u;for(var c,f,h=o[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;c=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(var s=0,l=c.length;l>s;++s)i.point((f=c[s])[0],f[1]);else r(p.x,p.n.x,1,i);p=p.n}else{if(d){c=p.p.z;for(var s=c.length-1;s>=0;--s)i.point((f=c[s])[0],f[1])}else r(p.x,p.p.x,-1,i);p=p.p}p=p.o,c=p.z,d=!d}while(!p.v);i.lineEnd()}}}function Ae(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function Ne(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function je(t,e,n,r){return function(i,o){function a(e,n){var r=i(e,n);t(e=r[0],n=r[1])&&o.point(e,n)}function s(t,e){var n=i(t,e);m.point(n[0],n[1])}function u(){y.point=s,m.lineStart()}function l(){y.point=a,m.lineEnd()}function c(t,e){g.push([t,e]);var n=i(t,e);b.point(n[0],n[1])}function f(){b.lineStart(),g=[]}function h(){c(g[0][0],g[0][1]),b.lineEnd();var t,e=b.clean(),n=_.buffer(),r=n.length;if(g.pop(),d.push(g),g=null,r)if(1&e){t=n[0];var i,r=t.length-1,a=-1;if(r>0){for(x||(o.polygonStart(),x=!0),o.lineStart();++a<r;)o.point((i=t[a])[0],i[1]);o.lineEnd()}}else r>1&&2&e&&n.push(n.pop().concat(n.shift())),p.push(n.filter(Le))}var p,d,g,m=e(o),v=i.invert(r[0],r[1]),y={point:a,lineStart:u,lineEnd:l,polygonStart:function(){y.point=c,y.lineStart=f,y.lineEnd=h,p=[],d=[]},polygonEnd:function(){y.point=a,y.lineStart=u,y.lineEnd=l,p=ra.merge(p);var t=ze(v,d);p.length?(x||(o.polygonStart(),x=!0),Ee(p,Pe,t,n,o)):t&&(x||(o.polygonStart(),x=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),x&&(o.polygonEnd(),x=!1),p=d=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}},_=Fe(),b=e(_),x=!1;return y}}function Le(t){return t.length>1}function Fe(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:w,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function Pe(t,e){return((t=t.x)[0]<0?t[1]-Pa-Aa:Pa-t[1])-((e=e.x)[0]<0?e[1]-Pa-Aa:Pa-e[1])}function qe(t){var e,n=0/0,r=0/0,i=0/0;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var s=o>0?ja:-ja,u=ga(o-n);ga(u-ja)<Aa?(t.point(n,r=(r+a)/2>0?Pa:-Pa),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(o,r),e=0):i!==s&&u>=ja&&(ga(n-i)<Aa&&(n-=i*Aa),ga(o-s)<Aa&&(o-=s*Aa),r=Ie(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=o,r=a),i=s},lineEnd:function(){t.lineEnd(),n=r=0/0},clean:function(){return 2-e}}}function Ie(t,e,n,r){var i,o,a=Math.sin(t-n);return ga(a)>Aa?Math.atan((Math.sin(e)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(e))*Math.sin(t))/(i*o*a)):(e+r)/2}function $e(t,e,n,r){var i;if(null==t)i=n*Pa,r.point(-ja,i),r.point(0,i),r.point(ja,i),r.point(ja,0),r.point(ja,-i),r.point(0,-i),r.point(-ja,-i),r.point(-ja,0),r.point(-ja,i);else if(ga(t[0]-e[0])>Aa){var o=t[0]<e[0]?ja:-ja;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])}function ze(t,e){var n=t[0],r=t[1],i=[Math.sin(n),-Math.cos(n),0],o=0,a=0;bs.reset();for(var s=0,u=e.length;u>s;++s){var l=e[s],c=l.length;if(c)for(var f=l[0],h=f[0],p=f[1]/2+ja/4,d=Math.sin(p),g=Math.cos(p),m=1;;){m===c&&(m=0),t=l[m];var v=t[0],y=t[1]/2+ja/4,_=Math.sin(y),b=Math.cos(y),x=v-h,w=x>=0?1:-1,M=w*x,k=M>ja,C=d*_;if(bs.add(Math.atan2(C*w*Math.sin(M),g*b+C*Math.cos(M))),o+=k?x+w*La:x,k^h>=n^v>=n){var S=ve(ge(f),ge(t));be(S);var T=ve(i,S);be(T);var D=(k^x>=0?-1:1)*nt(T[2]);(r>D||r===D&&(S[0]||S[1]))&&(a+=k^x>=0?1:-1)}if(!m++)break;h=v,d=_,g=b,f=t}}return(-Aa>o||Aa>o&&0>bs)^1&a}function He(t){function e(t,e){return Math.cos(t)*Math.cos(e)>o}function n(t){var n,o,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(f,h){var p,d=[f,h],g=e(f,h),m=a?g?0:i(f,h):g?i(f+(0>f?ja:-ja),h):0;if(!n&&(l=u=g)&&t.lineStart(),g!==u&&(p=r(n,d),(we(n,p)||we(d,p))&&(d[0]+=Aa,d[1]+=Aa,g=e(d[0],d[1]))),g!==u)c=0,g?(t.lineStart(),p=r(d,n),t.point(p[0],p[1])):(p=r(n,d),t.point(p[0],p[1]),t.lineEnd()),n=p;else if(s&&n&&a^g){var v;m&o||!(v=r(d,n,!0))||(c=0,a?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!g||n&&we(n,d)||t.point(d[0],d[1]),n=d,u=g,o=m},lineEnd:function(){u&&t.lineEnd(),n=null},clean:function(){return c|(l&&u)<<1}}}function r(t,e,n){var r=ge(t),i=ge(e),a=[1,0,0],s=ve(r,i),u=me(s,s),l=s[0],c=u-l*l;if(!c)return!n&&t;var f=o*u/c,h=-o*l/c,p=ve(a,s),d=_e(a,f),g=_e(s,h);ye(d,g);var m=p,v=me(d,m),y=me(m,m),_=v*v-y*(me(d,d)-1);if(!(0>_)){var b=Math.sqrt(_),x=_e(m,(-v-b)/y);if(ye(x,d),x=xe(x),!n)return x;var w,M=t[0],k=e[0],C=t[1],S=e[1];M>k&&(w=M,M=k,k=w);var T=k-M,D=ga(T-ja)<Aa,O=D||Aa>T;if(!D&&C>S&&(w=C,C=S,S=w),O?D?C+S>0^x[1]<(ga(x[0]-M)<Aa?C:S):C<=x[1]&&x[1]<=S:T>ja^(M<=x[0]&&x[0]<=k)){var E=_e(m,(-v+b)/y);return ye(E,d),[x,xe(E)]}}}function i(e,n){var r=a?t:ja-t,i=0;return-r>e?i|=1:e>r&&(i|=2),-r>n?i|=4:n>r&&(i|=8),i}var o=Math.cos(t),a=o>0,s=ga(o)>Aa,u=gn(t,6*qa);return je(e,n,u,a?[0,-t]:[-ja,t-ja])}function Re(t,e,n,r){return function(i){var o,a=i.a,s=i.b,u=a.x,l=a.y,c=s.x,f=s.y,h=0,p=1,d=c-u,g=f-l;if(o=t-u,d||!(o>0)){if(o/=d,0>d){if(h>o)return;p>o&&(p=o)}else if(d>0){if(o>p)return;o>h&&(h=o)}if(o=n-u,d||!(0>o)){if(o/=d,0>d){if(o>p)return;o>h&&(h=o)}else if(d>0){if(h>o)return;p>o&&(p=o)}if(o=e-l,g||!(o>0)){if(o/=g,0>g){if(h>o)return;p>o&&(p=o)}else if(g>0){if(o>p)return;o>h&&(h=o)}if(o=r-l,g||!(0>o)){if(o/=g,0>g){if(o>p)return;o>h&&(h=o)}else if(g>0){if(h>o)return;p>o&&(p=o)}return h>0&&(i.a={x:u+h*d,y:l+h*g}),1>p&&(i.b={x:u+p*d,y:l+p*g}),i}}}}}}function Ye(t,e,n,r){function i(r,i){return ga(r[0]-t)<Aa?i>0?0:3:ga(r[0]-n)<Aa?i>0?2:1:ga(r[1]-e)<Aa?i>0?1:0:i>0?3:2}function o(t,e){return a(t.x,e.x)}function a(t,e){var n=i(t,1),r=i(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(s){function u(t){for(var e=0,n=m.length,r=t[1],i=0;n>i;++i)for(var o,a=1,s=m[i],u=s.length,l=s[0];u>a;++a)o=s[a],l[1]<=r?o[1]>r&&tt(l,o,t)>0&&++e:o[1]<=r&&tt(l,o,t)<0&&--e,l=o;return 0!==e}function l(o,s,u,l){var c=0,f=0;if(null==o||(c=i(o,u))!==(f=i(s,u))||a(o,s)<0^u>0){do l.point(0===c||3===c?t:n,c>1?r:e);while((c=(c+u+4)%4)!==f)}else l.point(s[0],s[1])}function c(i,o){return i>=t&&n>=i&&o>=e&&r>=o}function f(t,e){c(t,e)&&s.point(t,e)}function h(){O.point=d,m&&m.push(v=[]),k=!0,M=!1,x=w=0/0}function p(){g&&(d(y,_),b&&M&&T.rejoin(),g.push(T.buffer())),O.point=f,M&&s.lineEnd()}function d(t,e){t=Math.max(-Fs,Math.min(Fs,t)),e=Math.max(-Fs,Math.min(Fs,e));var n=c(t,e);if(m&&v.push([t,e]),k)y=t,_=e,b=n,k=!1,n&&(s.lineStart(),s.point(t,e));else if(n&&M)s.point(t,e);else{var r={a:{x:x,y:w},b:{x:t,y:e}};D(r)?(M||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),C=!1):n&&(s.lineStart(),s.point(t,e),C=!1)}x=t,w=e,M=n}var g,m,v,y,_,b,x,w,M,k,C,S=s,T=Fe(),D=Re(t,e,n,r),O={point:f,lineStart:h,lineEnd:p,polygonStart:function(){s=T,g=[],m=[],C=!0},polygonEnd:function(){s=S,g=ra.merge(g);var e=u([t,r]),n=C&&e,i=g.length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),l(null,null,1,s),s.lineEnd()),i&&Ee(g,o,e,l,s),s.polygonEnd()),g=m=v=null}};return O}}function Ue(t){var e=0,n=ja/3,r=sn(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*ja/180,n=t[1]*ja/180):[e/ja*180,n/ja*180]},i}function We(t,e){function n(t,e){var n=Math.sqrt(o-2*i*Math.sin(e))/i;return[n*Math.sin(t*=i),a-n*Math.cos(t)]}var r=Math.sin(t),i=(r+Math.sin(e))/2,o=1+r*(2*i-r),a=Math.sqrt(o)/i;return n.invert=function(t,e){var n=a-e;return[Math.atan2(t,n)/i,nt((o-(t*t+n*n)*i*i)/(2*i))]},n}function Be(){function t(t,e){qs+=i*t-r*e,r=t,i=e}var e,n,r,i;Rs.point=function(o,a){Rs.point=t,e=r=o,n=i=a},Rs.lineEnd=function(){t(e,n)}}function Ve(t,e){Is>t&&(Is=t),t>zs&&(zs=t),$s>e&&($s=e),e>Hs&&(Hs=e)}function Ge(){function t(t,e){a.push("M",t,",",e,o)}function e(t,e){a.push("M",t,",",e),s.point=n}function n(t,e){a.push("L",t,",",e)}function r(){s.point=t}function i(){a.push("Z")}var o=Ze(4.5),a=[],s={point:t,lineStart:function(){s.point=e},lineEnd:r,polygonStart:function(){s.lineEnd=i},polygonEnd:function(){s.lineEnd=r,s.point=t},pointRadius:function(t){return o=Ze(t),s},result:function(){if(a.length){var t=a.join("");return a=[],t}}};return s}function Ze(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Xe(t,e){ks+=t,Cs+=e,++Ss}function Ke(){function t(t,r){var i=t-e,o=r-n,a=Math.sqrt(i*i+o*o);Ts+=a*(e+t)/2,Ds+=a*(n+r)/2,Os+=a,Xe(e=t,n=r)}var e,n;Us.point=function(r,i){Us.point=t,Xe(e=r,n=i)}}function Qe(){Us.point=Xe}function Je(){function t(t,e){var n=t-r,o=e-i,a=Math.sqrt(n*n+o*o);Ts+=a*(r+t)/2,Ds+=a*(i+e)/2,Os+=a,a=i*t-r*e,Es+=a*(r+t),As+=a*(i+e),Ns+=3*a,Xe(r=t,i=e)}var e,n,r,i;Us.point=function(o,a){Us.point=t,Xe(e=r=o,n=i=a)},Us.lineEnd=function(){t(e,n)}}function tn(t){function e(e,n){t.moveTo(e+a,n),t.arc(e,n,a,0,La)}function n(e,n){t.moveTo(e,n),s.point=r}function r(e,n){t.lineTo(e,n)}function i(){s.point=e}function o(){t.closePath()}var a=4.5,s={point:e,lineStart:function(){s.point=n},lineEnd:i,polygonStart:function(){s.lineEnd=o},polygonEnd:function(){s.lineEnd=i,s.point=e},pointRadius:function(t){return a=t,s},result:w};return s}function en(t){function e(t){return(s?r:n)(t)}function n(e){return on(e,function(n,r){n=t(n,r),e.point(n[0],n[1])})}function r(e){function n(n,r){n=t(n,r),e.point(n[0],n[1])}function r(){_=0/0,k.point=o,e.lineStart()}function o(n,r){var o=ge([n,r]),a=t(n,r);i(_,b,y,x,w,M,_=a[0],b=a[1],y=n,x=o[0],w=o[1],M=o[2],s,e),e.point(_,b)}function a(){k.point=n,e.lineEnd()}function u(){r(),k.point=l,k.lineEnd=c}function l(t,e){o(f=t,h=e),p=_,d=b,g=x,m=w,v=M,k.point=o}function c(){i(_,b,y,x,w,M,p,d,f,g,m,v,s,e),k.lineEnd=a,a()}var f,h,p,d,g,m,v,y,_,b,x,w,M,k={point:n,lineStart:r,lineEnd:a,polygonStart:function(){e.polygonStart(),k.lineStart=u},polygonEnd:function(){e.polygonEnd(),
  k.lineStart=r}};return k}function i(e,n,r,s,u,l,c,f,h,p,d,g,m,v){var y=c-e,_=f-n,b=y*y+_*_;if(b>4*o&&m--){var x=s+p,w=u+d,M=l+g,k=Math.sqrt(x*x+w*w+M*M),C=Math.asin(M/=k),S=ga(ga(M)-1)<Aa||ga(r-h)<Aa?(r+h)/2:Math.atan2(w,x),T=t(S,C),D=T[0],O=T[1],E=D-e,A=O-n,N=_*E-y*A;(N*N/b>o||ga((y*E+_*A)/b-.5)>.3||a>s*p+u*d+l*g)&&(i(e,n,r,s,u,l,D,O,S,x/=k,w/=k,M,m,v),v.point(D,O),i(D,O,S,x,w,M,c,f,h,p,d,g,m,v))}}var o=.5,a=Math.cos(30*qa),s=16;return e.precision=function(t){return arguments.length?(s=(o=t*t)>0&&16,e):Math.sqrt(o)},e}function nn(t){var e=en(function(e,n){return t([e*Ia,n*Ia])});return function(t){return un(e(t))}}function rn(t){this.stream=t}function on(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function an(t){return sn(function(){return t})()}function sn(t){function e(t){return t=s(t[0]*qa,t[1]*qa),[t[0]*h+u,l-t[1]*h]}function n(t){return t=s.invert((t[0]-u)/h,(l-t[1])/h),t&&[t[0]*Ia,t[1]*Ia]}function r(){s=De(a=fn(v,y,b),o);var t=o(g,m);return u=p-t[0]*h,l=d+t[1]*h,i()}function i(){return c&&(c.valid=!1,c=null),e}var o,a,s,u,l,c,f=en(function(t,e){return t=o(t,e),[t[0]*h+u,l-t[1]*h]}),h=150,p=480,d=250,g=0,m=0,v=0,y=0,b=0,x=Ls,w=_,M=null,k=null;return e.stream=function(t){return c&&(c.valid=!1),c=un(x(a,f(w(t)))),c.valid=!0,c},e.clipAngle=function(t){return arguments.length?(x=null==t?(M=t,Ls):He((M=+t)*qa),i()):M},e.clipExtent=function(t){return arguments.length?(k=t,w=t?Ye(t[0][0],t[0][1],t[1][0],t[1][1]):_,i()):k},e.scale=function(t){return arguments.length?(h=+t,r()):h},e.translate=function(t){return arguments.length?(p=+t[0],d=+t[1],r()):[p,d]},e.center=function(t){return arguments.length?(g=t[0]%360*qa,m=t[1]%360*qa,r()):[g*Ia,m*Ia]},e.rotate=function(t){return arguments.length?(v=t[0]%360*qa,y=t[1]%360*qa,b=t.length>2?t[2]%360*qa:0,r()):[v*Ia,y*Ia,b*Ia]},ra.rebind(e,f,"precision"),function(){return o=t.apply(this,arguments),e.invert=o.invert&&n,r()}}function un(t){return on(t,function(e,n){t.point(e*qa,n*qa)})}function ln(t,e){return[t,e]}function cn(t,e){return[t>ja?t-La:-ja>t?t+La:t,e]}function fn(t,e,n){return t?e||n?De(pn(t),dn(e,n)):pn(t):e||n?dn(e,n):cn}function hn(t){return function(e,n){return e+=t,[e>ja?e-La:-ja>e?e+La:e,n]}}function pn(t){var e=hn(t);return e.invert=hn(-t),e}function dn(t,e){function n(t,e){var n=Math.cos(e),s=Math.cos(t)*n,u=Math.sin(t)*n,l=Math.sin(e),c=l*r+s*i;return[Math.atan2(u*o-c*a,s*r-l*i),nt(c*o+u*a)]}var r=Math.cos(t),i=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return n.invert=function(t,e){var n=Math.cos(e),s=Math.cos(t)*n,u=Math.sin(t)*n,l=Math.sin(e),c=l*o-u*a;return[Math.atan2(u*o+l*a,s*r+c*i),nt(c*r-s*i)]},n}function gn(t,e){var n=Math.cos(t),r=Math.sin(t);return function(i,o,a,s){var u=a*e;null!=i?(i=mn(n,i),o=mn(n,o),(a>0?o>i:i>o)&&(i+=a*La)):(i=t+a*La,o=t-.5*u);for(var l,c=i;a>0?c>o:o>c;c-=u)s.point((l=xe([n,-r*Math.cos(c),-r*Math.sin(c)]))[0],l[1])}}function mn(t,e){var n=ge(e);n[0]-=t,be(n);var r=et(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Aa)%(2*Math.PI)}function vn(t,e,n){var r=ra.range(t,e-Aa,n).concat(e);return function(t){return r.map(function(e){return[t,e]})}}function yn(t,e,n){var r=ra.range(t,e-Aa,n).concat(e);return function(t){return r.map(function(e){return[e,t]})}}function _n(t){return t.source}function bn(t){return t.target}function xn(t,e,n,r){var i=Math.cos(e),o=Math.sin(e),a=Math.cos(r),s=Math.sin(r),u=i*Math.cos(t),l=i*Math.sin(t),c=a*Math.cos(n),f=a*Math.sin(n),h=2*Math.asin(Math.sqrt(at(r-e)+i*a*at(n-t))),p=1/Math.sin(h),d=h?function(t){var e=Math.sin(t*=h)*p,n=Math.sin(h-t)*p,r=n*u+e*c,i=n*l+e*f,a=n*o+e*s;return[Math.atan2(i,r)*Ia,Math.atan2(a,Math.sqrt(r*r+i*i))*Ia]}:function(){return[t*Ia,e*Ia]};return d.distance=h,d}function wn(){function t(t,i){var o=Math.sin(i*=qa),a=Math.cos(i),s=ga((t*=qa)-e),u=Math.cos(s);Ws+=Math.atan2(Math.sqrt((s=a*Math.sin(s))*s+(s=r*o-n*a*u)*s),n*o+r*a*u),e=t,n=o,r=a}var e,n,r;Bs.point=function(i,o){e=i*qa,n=Math.sin(o*=qa),r=Math.cos(o),Bs.point=t},Bs.lineEnd=function(){Bs.point=Bs.lineEnd=w}}function Mn(t,e){function n(e,n){var r=Math.cos(e),i=Math.cos(n),o=t(r*i);return[o*i*Math.sin(e),o*Math.sin(n)]}return n.invert=function(t,n){var r=Math.sqrt(t*t+n*n),i=e(r),o=Math.sin(i),a=Math.cos(i);return[Math.atan2(t*o,r*a),Math.asin(r&&n*o/r)]},n}function kn(t,e){function n(t,e){a>0?-Pa+Aa>e&&(e=-Pa+Aa):e>Pa-Aa&&(e=Pa-Aa);var n=a/Math.pow(i(e),o);return[n*Math.sin(o*t),a-n*Math.cos(o*t)]}var r=Math.cos(t),i=function(t){return Math.tan(ja/4+t/2)},o=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(i(e)/i(t)),a=r*Math.pow(i(t),o)/o;return o?(n.invert=function(t,e){var n=a-e,r=J(o)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/o,2*Math.atan(Math.pow(a/r,1/o))-Pa]},n):Sn}function Cn(t,e){function n(t,e){var n=o-e;return[n*Math.sin(i*t),o-n*Math.cos(i*t)]}var r=Math.cos(t),i=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),o=r/i+t;return ga(i)<Aa?ln:(n.invert=function(t,e){var n=o-e;return[Math.atan2(t,n)/i,o-J(i)*Math.sqrt(t*t+n*n)]},n)}function Sn(t,e){return[t,Math.log(Math.tan(ja/4+e/2))]}function Tn(t){var e,n=an(t),r=n.scale,i=n.translate,o=n.clipExtent;return n.scale=function(){var t=r.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.translate=function(){var t=i.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.clipExtent=function(t){var a=o.apply(n,arguments);if(a===n){if(e=null==t){var s=ja*r(),u=i();o([[u[0]-s,u[1]-s],[u[0]+s,u[1]+s]])}}else e&&(a=null);return a},n.clipExtent(null)}function Dn(t,e){return[Math.log(Math.tan(ja/4+e/2)),-t]}function On(t){return t[0]}function En(t){return t[1]}function An(t){for(var e=t.length,n=[0,1],r=2,i=2;e>i;i++){for(;r>1&&tt(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function Nn(t,e){return t[0]-e[0]||t[1]-e[1]}function jn(t,e,n){return(n[0]-e[0])*(t[1]-e[1])<(n[1]-e[1])*(t[0]-e[0])}function Ln(t,e,n,r){var i=t[0],o=n[0],a=e[0]-i,s=r[0]-o,u=t[1],l=n[1],c=e[1]-u,f=r[1]-l,h=(s*(u-l)-f*(i-o))/(f*a-s*c);return[i+h*a,u+h*c]}function Fn(t){var e=t[0],n=t[t.length-1];return!(e[0]-n[0]||e[1]-n[1])}function Pn(){rr(this),this.edge=this.site=this.circle=null}function qn(t){var e=iu.pop()||new Pn;return e.site=t,e}function In(t){Gn(t),eu.remove(t),iu.push(t),rr(t)}function $n(t){var e=t.circle,n=e.x,r=e.cy,i={x:n,y:r},o=t.P,a=t.N,s=[t];In(t);for(var u=o;u.circle&&ga(n-u.circle.x)<Aa&&ga(r-u.circle.cy)<Aa;)o=u.P,s.unshift(u),In(u),u=o;s.unshift(u),Gn(u);for(var l=a;l.circle&&ga(n-l.circle.x)<Aa&&ga(r-l.circle.cy)<Aa;)a=l.N,s.push(l),In(l),l=a;s.push(l),Gn(l);var c,f=s.length;for(c=1;f>c;++c)l=s[c],u=s[c-1],tr(l.edge,u.site,l.site,i);u=s[0],l=s[f-1],l.edge=Qn(u.site,l.site,null,i),Vn(u),Vn(l)}function zn(t){for(var e,n,r,i,o=t.x,a=t.y,s=eu._;s;)if(r=Hn(s,a)-o,r>Aa)s=s.L;else{if(i=o-Rn(s,a),!(i>Aa)){r>-Aa?(e=s.P,n=s):i>-Aa?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}var u=qn(t);if(eu.insert(e,u),e||n){if(e===n)return Gn(e),n=qn(e.site),eu.insert(u,n),u.edge=n.edge=Qn(e.site,u.site),Vn(e),void Vn(n);if(!n)return void(u.edge=Qn(e.site,u.site));Gn(e),Gn(n);var l=e.site,c=l.x,f=l.y,h=t.x-c,p=t.y-f,d=n.site,g=d.x-c,m=d.y-f,v=2*(h*m-p*g),y=h*h+p*p,_=g*g+m*m,b={x:(m*y-p*_)/v+c,y:(h*_-g*y)/v+f};tr(n.edge,l,d,b),u.edge=Qn(l,t,null,b),n.edge=Qn(t,d,null,b),Vn(e),Vn(n)}}function Hn(t,e){var n=t.site,r=n.x,i=n.y,o=i-e;if(!o)return r;var a=t.P;if(!a)return-(1/0);n=a.site;var s=n.x,u=n.y,l=u-e;if(!l)return s;var c=s-r,f=1/o-1/l,h=c/l;return f?(-h+Math.sqrt(h*h-2*f*(c*c/(-2*l)-u+l/2+i-o/2)))/f+r:(r+s)/2}function Rn(t,e){var n=t.N;if(n)return Hn(n,e);var r=t.site;return r.y===e?r.x:1/0}function Yn(t){this.site=t,this.edges=[]}function Un(t){for(var e,n,r,i,o,a,s,u,l,c,f=t[0][0],h=t[1][0],p=t[0][1],d=t[1][1],g=tu,m=g.length;m--;)if(o=g[m],o&&o.prepare())for(s=o.edges,u=s.length,a=0;u>a;)c=s[a].end(),r=c.x,i=c.y,l=s[++a%u].start(),e=l.x,n=l.y,(ga(r-e)>Aa||ga(i-n)>Aa)&&(s.splice(a,0,new er(Jn(o.site,c,ga(r-f)<Aa&&d-i>Aa?{x:f,y:ga(e-f)<Aa?n:d}:ga(i-d)<Aa&&h-r>Aa?{x:ga(n-d)<Aa?e:h,y:d}:ga(r-h)<Aa&&i-p>Aa?{x:h,y:ga(e-h)<Aa?n:p}:ga(i-p)<Aa&&r-f>Aa?{x:ga(n-p)<Aa?e:f,y:p}:null),o.site,null)),++u)}function Wn(t,e){return e.angle-t.angle}function Bn(){rr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Vn(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,o=n.site;if(r!==o){var a=i.x,s=i.y,u=r.x-a,l=r.y-s,c=o.x-a,f=o.y-s,h=2*(u*f-l*c);if(!(h>=-Na)){var p=u*u+l*l,d=c*c+f*f,g=(f*p-l*d)/h,m=(u*d-c*p)/h,f=m+s,v=ou.pop()||new Bn;v.arc=t,v.site=i,v.x=g+a,v.y=f+Math.sqrt(g*g+m*m),v.cy=f,t.circle=v;for(var y=null,_=ru._;_;)if(v.y<_.y||v.y===_.y&&v.x<=_.x){if(!_.L){y=_.P;break}_=_.L}else{if(!_.R){y=_;break}_=_.R}ru.insert(y,v),y||(nu=v)}}}}function Gn(t){var e=t.circle;e&&(e.P||(nu=e.N),ru.remove(e),ou.push(e),rr(e),t.circle=null)}function Zn(t){for(var e,n=Js,r=Re(t[0][0],t[0][1],t[1][0],t[1][1]),i=n.length;i--;)e=n[i],(!Xn(e,t)||!r(e)||ga(e.a.x-e.b.x)<Aa&&ga(e.a.y-e.b.y)<Aa)&&(e.a=e.b=null,n.splice(i,1))}function Xn(t,e){var n=t.b;if(n)return!0;var r,i,o=t.a,a=e[0][0],s=e[1][0],u=e[0][1],l=e[1][1],c=t.l,f=t.r,h=c.x,p=c.y,d=f.x,g=f.y,m=(h+d)/2,v=(p+g)/2;if(g===p){if(a>m||m>=s)return;if(h>d){if(o){if(o.y>=l)return}else o={x:m,y:u};n={x:m,y:l}}else{if(o){if(o.y<u)return}else o={x:m,y:l};n={x:m,y:u}}}else if(r=(h-d)/(g-p),i=v-r*m,-1>r||r>1)if(h>d){if(o){if(o.y>=l)return}else o={x:(u-i)/r,y:u};n={x:(l-i)/r,y:l}}else{if(o){if(o.y<u)return}else o={x:(l-i)/r,y:l};n={x:(u-i)/r,y:u}}else if(g>p){if(o){if(o.x>=s)return}else o={x:a,y:r*a+i};n={x:s,y:r*s+i}}else{if(o){if(o.x<a)return}else o={x:s,y:r*s+i};n={x:a,y:r*a+i}}return t.a=o,t.b=n,!0}function Kn(t,e){this.l=t,this.r=e,this.a=this.b=null}function Qn(t,e,n,r){var i=new Kn(t,e);return Js.push(i),n&&tr(i,t,e,n),r&&tr(i,e,t,r),tu[t.i].edges.push(new er(i,t,e)),tu[e.i].edges.push(new er(i,e,t)),i}function Jn(t,e,n){var r=new Kn(t,null);return r.a=e,r.b=n,Js.push(r),r}function tr(t,e,n,r){t.a||t.b?t.l===n?t.b=r:t.a=r:(t.a=r,t.l=e,t.r=n)}function er(t,e,n){var r=t.a,i=t.b;this.edge=t,this.site=e,this.angle=n?Math.atan2(n.y-e.y,n.x-e.x):t.l===e?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function nr(){this._=null}function rr(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function ir(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function or(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function ar(t){for(;t.L;)t=t.L;return t}function sr(t,e){var n,r,i,o=t.sort(ur).pop();for(Js=[],tu=new Array(t.length),eu=new nr,ru=new nr;;)if(i=nu,o&&(!i||o.y<i.y||o.y===i.y&&o.x<i.x))(o.x!==n||o.y!==r)&&(tu[o.i]=new Yn(o),zn(o),n=o.x,r=o.y),o=t.pop();else{if(!i)break;$n(i.arc)}e&&(Zn(e),Un(e));var a={cells:tu,edges:Js};return eu=ru=Js=tu=null,a}function ur(t,e){return e.y-t.y||e.x-t.x}function lr(t,e,n){return(t.x-n.x)*(e.y-t.y)-(t.x-e.x)*(n.y-t.y)}function cr(t){return t.x}function fr(t){return t.y}function hr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function pr(t,e,n,r,i,o){if(!t(e,n,r,i,o)){var a=.5*(n+i),s=.5*(r+o),u=e.nodes;u[0]&&pr(t,u[0],n,r,a,s),u[1]&&pr(t,u[1],a,r,i,s),u[2]&&pr(t,u[2],n,s,a,o),u[3]&&pr(t,u[3],a,s,i,o)}}function dr(t,e,n,r,i,o,a){var s,u=1/0;return function l(t,c,f,h,p){if(!(c>o||f>a||r>h||i>p)){if(d=t.point){var d,g=e-t.x,m=n-t.y,v=g*g+m*m;if(u>v){var y=Math.sqrt(u=v);r=e-y,i=n-y,o=e+y,a=n+y,s=d}}for(var _=t.nodes,b=.5*(c+h),x=.5*(f+p),w=e>=b,M=n>=x,k=M<<1|w,C=k+4;C>k;++k)if(t=_[3&k])switch(3&k){case 0:l(t,c,f,b,x);break;case 1:l(t,b,f,h,x);break;case 2:l(t,c,x,b,p);break;case 3:l(t,b,x,h,p)}}}(t,r,i,o,a),s}function gr(t,e){t=ra.rgb(t),e=ra.rgb(e);var n=t.r,r=t.g,i=t.b,o=e.r-n,a=e.g-r,s=e.b-i;return function(t){return"#"+xt(Math.round(n+o*t))+xt(Math.round(r+a*t))+xt(Math.round(i+s*t))}}function mr(t,e){var n,r={},i={};for(n in t)n in e?r[n]=_r(t[n],e[n]):i[n]=t[n];for(n in e)n in t||(i[n]=e[n]);return function(t){for(n in r)i[n]=r[n](t);return i}}function vr(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function yr(t,e){var n,r,i,o=su.lastIndex=uu.lastIndex=0,a=-1,s=[],u=[];for(t+="",e+="";(n=su.exec(t))&&(r=uu.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:vr(n,r)})),o=uu.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?(e=u[0].x,function(t){return e(t)+""}):function(){return e}:(e=u.length,function(t){for(var n,r=0;e>r;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})}function _r(t,e){for(var n,r=ra.interpolators.length;--r>=0&&!(n=ra.interpolators[r](t,e)););return n}function br(t,e){var n,r=[],i=[],o=t.length,a=e.length,s=Math.min(t.length,e.length);for(n=0;s>n;++n)r.push(_r(t[n],e[n]));for(;o>n;++n)i[n]=t[n];for(;a>n;++n)i[n]=e[n];return function(t){for(n=0;s>n;++n)i[n]=r[n](t);return i}}function xr(t){return function(e){return 0>=e?0:e>=1?1:t(e)}}function wr(t){return function(e){return 1-t(1-e)}}function Mr(t){return function(e){return.5*(.5>e?t(2*e):2-t(2-2*e))}}function kr(t){return t*t}function Cr(t){return t*t*t}function Sr(t){if(0>=t)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(.5>t?n:3*(t-e)+n-.75)}function Tr(t){return function(e){return Math.pow(e,t)}}function Dr(t){return 1-Math.cos(t*Pa)}function Or(t){return Math.pow(2,10*(t-1))}function Er(t){return 1-Math.sqrt(1-t*t)}function Ar(t,e){var n;return arguments.length<2&&(e=.45),arguments.length?n=e/La*Math.asin(1/t):(t=1,n=e/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-n)*La/e)}}function Nr(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function jr(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Lr(t,e){t=ra.hcl(t),e=ra.hcl(e);var n=t.h,r=t.c,i=t.l,o=e.h-n,a=e.c-r,s=e.l-i;return isNaN(a)&&(a=0,r=isNaN(r)?e.c:r),isNaN(o)?(o=0,n=isNaN(n)?e.h:n):o>180?o-=360:-180>o&&(o+=360),function(t){return ft(n+o*t,r+a*t,i+s*t)+""}}function Fr(t,e){t=ra.hsl(t),e=ra.hsl(e);var n=t.h,r=t.s,i=t.l,o=e.h-n,a=e.s-r,s=e.l-i;return isNaN(a)&&(a=0,r=isNaN(r)?e.s:r),isNaN(o)?(o=0,n=isNaN(n)?e.h:n):o>180?o-=360:-180>o&&(o+=360),function(t){return lt(n+o*t,r+a*t,i+s*t)+""}}function Pr(t,e){t=ra.lab(t),e=ra.lab(e);var n=t.l,r=t.a,i=t.b,o=e.l-n,a=e.a-r,s=e.b-i;return function(t){return pt(n+o*t,r+a*t,i+s*t)+""}}function qr(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function Ir(t){var e=[t.a,t.b],n=[t.c,t.d],r=zr(e),i=$r(e,n),o=zr(Hr(n,e,-i))||0;e[0]*n[1]<n[0]*e[1]&&(e[0]*=-1,e[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(e[1],e[0]):Math.atan2(-n[0],n[1]))*Ia,this.translate=[t.e,t.f],this.scale=[r,o],this.skew=o?Math.atan2(i,o)*Ia:0}function $r(t,e){return t[0]*e[0]+t[1]*e[1]}function zr(t){var e=Math.sqrt($r(t,t));return e&&(t[0]/=e,t[1]/=e),e}function Hr(t,e,n){return t[0]+=n*e[0],t[1]+=n*e[1],t}function Rr(t,e){var n,r=[],i=[],o=ra.transform(t),a=ra.transform(e),s=o.translate,u=a.translate,l=o.rotate,c=a.rotate,f=o.skew,h=a.skew,p=o.scale,d=a.scale;return s[0]!=u[0]||s[1]!=u[1]?(r.push("translate(",null,",",null,")"),i.push({i:1,x:vr(s[0],u[0])},{i:3,x:vr(s[1],u[1])})):r.push(u[0]||u[1]?"translate("+u+")":""),l!=c?(l-c>180?c+=360:c-l>180&&(l+=360),i.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:vr(l,c)})):c&&r.push(r.pop()+"rotate("+c+")"),f!=h?i.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:vr(f,h)}):h&&r.push(r.pop()+"skewX("+h+")"),p[0]!=d[0]||p[1]!=d[1]?(n=r.push(r.pop()+"scale(",null,",",null,")"),i.push({i:n-4,x:vr(p[0],d[0])},{i:n-2,x:vr(p[1],d[1])})):(1!=d[0]||1!=d[1])&&r.push(r.pop()+"scale("+d+")"),n=i.length,function(t){for(var e,o=-1;++o<n;)r[(e=i[o]).i]=e.x(t);return r.join("")}}function Yr(t,e){return e=(e-=t=+t)||1/e,function(n){return(n-t)/e}}function Ur(t,e){return e=(e-=t=+t)||1/e,function(n){return Math.max(0,Math.min(1,(n-t)/e))}}function Wr(t){for(var e=t.source,n=t.target,r=Vr(e,n),i=[e];e!==r;)e=e.parent,i.push(e);for(var o=i.length;n!==r;)i.splice(o,0,n),n=n.parent;return i}function Br(t){for(var e=[],n=t.parent;null!=n;)e.push(t),t=n,n=n.parent;return e.push(t),e}function Vr(t,e){if(t===e)return t;for(var n=Br(t),r=Br(e),i=n.pop(),o=r.pop(),a=null;i===o;)a=i,i=n.pop(),o=r.pop();return a}function Gr(t){t.fixed|=2}function Zr(t){t.fixed&=-7}function Xr(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Kr(t){t.fixed&=-5}function Qr(t,e,n){var r=0,i=0;if(t.charge=0,!t.leaf)for(var o,a=t.nodes,s=a.length,u=-1;++u<s;)o=a[u],null!=o&&(Qr(o,e,n),t.charge+=o.charge,r+=o.charge*o.cx,i+=o.charge*o.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var l=e*n[t.point.index];t.charge+=t.pointCharge=l,r+=l*t.point.x,i+=l*t.point.y}t.cx=r/t.charge,t.cy=i/t.charge}function Jr(t,e){return ra.rebind(t,e,"sort","children","value"),t.nodes=t,t.links=oi,t}function ti(t,e){for(var n=[t];null!=(t=n.pop());)if(e(t),(i=t.children)&&(r=i.length))for(var r,i;--r>=0;)n.push(i[r])}function ei(t,e){for(var n=[t],r=[];null!=(t=n.pop());)if(r.push(t),(o=t.children)&&(i=o.length))for(var i,o,a=-1;++a<i;)n.push(o[a]);for(;null!=(t=r.pop());)e(t)}function ni(t){return t.children}function ri(t){return t.value}function ii(t,e){return e.value-t.value}function oi(t){return ra.merge(t.map(function(t){return(t.children||[]).map(function(e){return{source:t,target:e}})}))}function ai(t){return t.x}function si(t){return t.y}function ui(t,e,n){t.y0=e,t.y=n}function li(t){return ra.range(t.length)}function ci(t){for(var e=-1,n=t[0].length,r=[];++e<n;)r[e]=0;return r}function fi(t){for(var e,n=1,r=0,i=t[0][1],o=t.length;o>n;++n)(e=t[n][1])>i&&(r=n,i=e);return r}function hi(t){return t.reduce(pi,0)}function pi(t,e){return t+e[1]}function di(t,e){return gi(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function gi(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,o=[];++n<=e;)o[n]=i*n+r;return o}function mi(t){return[ra.min(t),ra.max(t)]}function vi(t,e){return t.value-e.value}function yi(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function _i(t,e){t._pack_next=e,e._pack_prev=t}function bi(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return.999*i*i>n*n+r*r}function xi(t){function e(t){c=Math.min(t.x-t.r,c),f=Math.max(t.x+t.r,f),h=Math.min(t.y-t.r,h),p=Math.max(t.y+t.r,p)}if((n=t.children)&&(l=n.length)){var n,r,i,o,a,s,u,l,c=1/0,f=-(1/0),h=1/0,p=-(1/0);if(n.forEach(wi),r=n[0],r.x=-r.r,r.y=0,e(r),l>1&&(i=n[1],i.x=i.r,i.y=0,e(i),l>2))for(o=n[2],Ci(r,i,o),e(o),yi(r,o),r._pack_prev=o,yi(o,i),i=r._pack_next,a=3;l>a;a++){Ci(r,i,o=n[a]);var d=0,g=1,m=1;for(s=i._pack_next;s!==i;s=s._pack_next,g++)if(bi(s,o)){d=1;break}if(1==d)for(u=r._pack_prev;u!==s._pack_prev&&!bi(u,o);u=u._pack_prev,m++);d?(m>g||g==m&&i.r<r.r?_i(r,i=s):_i(r=u,i),a--):(yi(r,o),i=o,e(o))}var v=(c+f)/2,y=(h+p)/2,_=0;for(a=0;l>a;a++)o=n[a],o.x-=v,o.y-=y,_=Math.max(_,o.r+Math.sqrt(o.x*o.x+o.y*o.y));t.r=_,n.forEach(Mi)}}function wi(t){t._pack_next=t._pack_prev=t}function Mi(t){delete t._pack_next,delete t._pack_prev}function ki(t,e,n,r){var i=t.children;if(t.x=e+=r*t.x,t.y=n+=r*t.y,t.r*=r,i)for(var o=-1,a=i.length;++o<a;)ki(i[o],e,n,r)}function Ci(t,e,n){var r=t.r+n.r,i=e.x-t.x,o=e.y-t.y;if(r&&(i||o)){var a=e.r+n.r,s=i*i+o*o;a*=a,r*=r;var u=.5+(r-a)/(2*s),l=Math.sqrt(Math.max(0,2*a*(r+s)-(r-=s)*r-a*a))/(2*s);n.x=t.x+u*i+l*o,n.y=t.y+u*o-l*i}else n.x=t.x+r,n.y=t.y}function Si(t,e){return t.parent==e.parent?1:2}function Ti(t){var e=t.children;return e.length?e[0]:t.t}function Di(t){var e,n=t.children;return(e=n.length)?n[e-1]:t.t}function Oi(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Ei(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)e=i[o],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}function Ai(t,e,n){return t.a.parent===e.parent?t.a:n}function Ni(t){return 1+ra.max(t,function(t){return t.y})}function ji(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}function Li(t){var e=t.children;return e&&e.length?Li(e[0]):t}function Fi(t){var e,n=t.children;return n&&(e=n.length)?Fi(n[e-1]):t}function Pi(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function qi(t,e){var n=t.x+e[3],r=t.y+e[0],i=t.dx-e[1]-e[3],o=t.dy-e[0]-e[2];return 0>i&&(n+=i/2,i=0),0>o&&(r+=o/2,o=0),{x:n,y:r,dx:i,dy:o}}function Ii(t){var e=t[0],n=t[t.length-1];return n>e?[e,n]:[n,e]}function $i(t){return t.rangeExtent?t.rangeExtent():Ii(t.range())}function zi(t,e,n,r){var i=n(t[0],t[1]),o=r(e[0],e[1]);return function(t){return o(i(t))}}function Hi(t,e){var n,r=0,i=t.length-1,o=t[r],a=t[i];return o>a&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}function Ri(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:_u}function Yi(t,e,n,r){var i=[],o=[],a=0,s=Math.min(t.length,e.length)-1;for(t[s]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<=s;)i.push(n(t[a-1],t[a])),o.push(r(e[a-1],e[a]));return function(e){var n=ra.bisect(t,e,1,s)-1;return o[n](i[n](e))}}function Ui(t,e,n,r){function i(){var i=Math.min(t.length,e.length)>2?Yi:zi,u=r?Ur:Yr;return a=i(t,e,u,n),s=i(e,t,u,_r),o}function o(t){return a(t)}var a,s;return o.invert=function(t){return s(t)},o.domain=function(e){return arguments.length?(t=e.map(Number),i()):t},o.range=function(t){return arguments.length?(e=t,i()):e},o.rangeRound=function(t){return o.range(t).interpolate(qr)},o.clamp=function(t){return arguments.length?(r=t,i()):r},o.interpolate=function(t){return arguments.length?(n=t,i()):n},o.ticks=function(e){return Gi(t,e)},o.tickFormat=function(e,n){return Zi(t,e,n)},o.nice=function(e){return Bi(t,e),i()},o.copy=function(){return Ui(t,e,n,r)},i()}function Wi(t,e){return ra.rebind(t,e,"range","rangeRound","interpolate","clamp")}function Bi(t,e){return Hi(t,Ri(Vi(t,e)[2]))}function Vi(t,e){null==e&&(e=10);var n=Ii(t),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),o=e/r*i;return.15>=o?i*=10:.35>=o?i*=5:.75>=o&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function Gi(t,e){return ra.range.apply(ra,Vi(t,e))}function Zi(t,e,n){var r=Vi(t,e);if(n){var i=ss.exec(n);if(i.shift(),"s"===i[8]){var o=ra.formatPrefix(Math.max(ga(r[0]),ga(r[1])));return i[7]||(i[7]="."+Xi(o.scale(r[2]))),i[8]="f",n=ra.format(i.join("")),function(t){return n(o.scale(t))+o.symbol}}i[7]||(i[7]="."+Ki(i[8],r)),n=i.join("")}else n=",."+Xi(r[2])+"f";return ra.format(n)}function Xi(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function Ki(t,e){var n=Xi(e[2]);return t in bu?Math.abs(n-Xi(Math.max(ga(e[0]),ga(e[1]))))+ +("e"!==t):n-2*("%"===t)}function Qi(t,e,n,r){function i(t){return(n?Math.log(0>t?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function o(t){return n?Math.pow(e,t):-Math.pow(e,-t)}function a(e){return t(i(e))}return a.invert=function(e){return o(t.invert(e))},a.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((r=e.map(Number)).map(i)),a):r},a.base=function(n){return arguments.length?(e=+n,t.domain(r.map(i)),a):e},a.nice=function(){var e=Hi(r.map(i),n?Math:wu);return t.domain(e),r=e.map(o),a},a.ticks=function(){var t=Ii(r),a=[],s=t[0],u=t[1],l=Math.floor(i(s)),c=Math.ceil(i(u)),f=e%1?2:e;if(isFinite(c-l)){if(n){for(;c>l;l++)for(var h=1;f>h;h++)a.push(o(l)*h);a.push(o(l))}else for(a.push(o(l));l++<c;)for(var h=f-1;h>0;h--)a.push(o(l)*h);for(l=0;a[l]<s;l++);for(c=a.length;a[c-1]>u;c--);a=a.slice(l,c)}return a},a.tickFormat=function(t,e){if(!arguments.length)return xu;arguments.length<2?e=xu:"function"!=typeof e&&(e=ra.format(e));var r,s=Math.max(.1,t/a.ticks().length),u=n?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(t){return t/o(u(i(t)+r))<=s?e(t):""}},a.copy=function(){return Qi(t.copy(),e,n,r)},Wi(a,t)}function Ji(t,e,n){function r(e){return t(i(e))}var i=to(e),o=to(1/e);return r.invert=function(e){return o(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain((n=e.map(Number)).map(i)),r):n},r.ticks=function(t){return Gi(n,t)},r.tickFormat=function(t,e){return Zi(n,t,e)},r.nice=function(t){return r.domain(Bi(n,t))},r.exponent=function(a){return arguments.length?(i=to(e=a),o=to(1/e),t.domain(n.map(i)),r):e},r.copy=function(){return Ji(t.copy(),e,n)},Wi(r,t)}function to(t){return function(e){return 0>e?-Math.pow(-e,t):Math.pow(e,t)}}function eo(t,e){function n(n){return o[((i.get(n)||("range"===e.t?i.set(n,t.push(n)):0/0))-1)%o.length]}function r(e,n){return ra.range(t.length).map(function(t){return e+n*t})}var i,o,a;return n.domain=function(r){if(!arguments.length)return t;t=[],i=new c;for(var o,a=-1,s=r.length;++a<s;)i.has(o=r[a])||i.set(o,t.push(o));return n[e.t].apply(n,e.a)},n.range=function(t){return arguments.length?(o=t,a=0,e={t:"range",a:arguments},n):o},n.rangePoints=function(i,s){arguments.length<2&&(s=0);var u=i[0],l=i[1],c=t.length<2?(u=(u+l)/2,0):(l-u)/(t.length-1+s);return o=r(u+c*s/2,c),a=0,e={t:"rangePoints",a:arguments},n},n.rangeRoundPoints=function(i,s){arguments.length<2&&(s=0);var u=i[0],l=i[1],c=t.length<2?(u=l=Math.round((u+l)/2),0):(l-u)/(t.length-1+s)|0;return o=r(u+Math.round(c*s/2+(l-u-(t.length-1+s)*c)/2),c),a=0,e={t:"rangeRoundPoints",a:arguments},n},n.rangeBands=function(i,s,u){arguments.length<2&&(s=0),arguments.length<3&&(u=s);var l=i[1]<i[0],c=i[l-0],f=i[1-l],h=(f-c)/(t.length-s+2*u);return o=r(c+h*u,h),l&&o.reverse(),a=h*(1-s),e={t:"rangeBands",a:arguments},n},n.rangeRoundBands=function(i,s,u){arguments.length<2&&(s=0),arguments.length<3&&(u=s);var l=i[1]<i[0],c=i[l-0],f=i[1-l],h=Math.floor((f-c)/(t.length-s+2*u));return o=r(c+Math.round((f-c-(t.length-s)*h)/2),h),l&&o.reverse(),a=Math.round(h*(1-s)),e={t:"rangeRoundBands",a:arguments},n},n.rangeBand=function(){return a},n.rangeExtent=function(){return Ii(e.a[0])},n.copy=function(){return eo(t,e)},n.domain(t)}function no(t,e){function n(){var n=0,r=e.length;for(s=[];++n<r;)s[n-1]=ra.quantile(t,n/r);return a}function a(t){return isNaN(t=+t)?void 0:e[ra.bisect(s,t)]}var s;return a.domain=function(e){return arguments.length?(t=e.map(i).filter(o).sort(r),n()):t},a.range=function(t){return arguments.length?(e=t,n()):e},a.quantiles=function(){return s},a.invertExtent=function(n){return n=e.indexOf(n),0>n?[0/0,0/0]:[n>0?s[n-1]:t[0],n<s.length?s[n]:t[t.length-1]]},a.copy=function(){return no(t,e)},n()}function ro(t,e,n){function r(e){return n[Math.max(0,Math.min(a,Math.floor(o*(e-t))))]}function i(){return o=n.length/(e-t),a=n.length-1,r}var o,a;return r.domain=function(n){return arguments.length?(t=+n[0],e=+n[n.length-1],i()):[t,e]},r.range=function(t){return arguments.length?(n=t,i()):n},r.invertExtent=function(e){return e=n.indexOf(e),e=0>e?0/0:e/o+t,[e,e+1/o]},r.copy=function(){return ro(t,e,n)},i()}function io(t,e){function n(n){return n>=n?e[ra.bisect(t,n)]:void 0}return n.domain=function(e){return arguments.length?(t=e,n):t},n.range=function(t){return arguments.length?(e=t,n):e},n.invertExtent=function(n){return n=e.indexOf(n),[t[n-1],t[n]]},n.copy=function(){return io(t,e)},n}function oo(t){function e(t){return+t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=n.map(e),e):t},e.ticks=function(e){return Gi(t,e)},e.tickFormat=function(e,n){return Zi(t,e,n)},e.copy=function(){return oo(t)},e}function ao(){return 0}function so(t){return t.innerRadius}function uo(t){return t.outerRadius}function lo(t){return t.startAngle}function co(t){return t.endAngle}function fo(t){return t&&t.padAngle}function ho(t,e,n,r){return(t-n)*e-(e-r)*t>0?0:1}function po(t,e,n,r,i){var o=t[0]-e[0],a=t[1]-e[1],s=(i?r:-r)/Math.sqrt(o*o+a*a),u=s*a,l=-s*o,c=t[0]+u,f=t[1]+l,h=e[0]+u,p=e[1]+l,d=(c+h)/2,g=(f+p)/2,m=h-c,v=p-f,y=m*m+v*v,_=n-r,b=c*p-h*f,x=(0>v?-1:1)*Math.sqrt(_*_*y-b*b),w=(b*v-m*x)/y,M=(-b*m-v*x)/y,k=(b*v+m*x)/y,C=(-b*m+v*x)/y,S=w-d,T=M-g,D=k-d,O=C-g;return S*S+T*T>D*D+O*O&&(w=k,M=C),[[w-u,M-l],[w*n/_,M*n/_]]}function go(t){function e(e){function a(){l.push("M",o(t(c),s))}for(var u,l=[],c=[],f=-1,h=e.length,p=Tt(n),d=Tt(r);++f<h;)i.call(this,u=e[f],f)?c.push([+p.call(this,u,f),+d.call(this,u,f)]):c.length&&(a(),c=[]);return c.length&&a(),l.length?l.join(""):null}var n=On,r=En,i=Oe,o=mo,a=o.key,s=.7;return e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(r=t,e):r},e.defined=function(t){return arguments.length?(i=t,e):i},e.interpolate=function(t){return arguments.length?(a="function"==typeof t?o=t:(o=Du.get(t)||mo).key,e):a},e.tension=function(t){return arguments.length?(s=t,e):s},e}function mo(t){return t.join("L")}function vo(t){return mo(t)+"Z"}function yo(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r[0]+(r=t[e])[0])/2,"V",r[1]);return n>1&&i.push("H",r[0]),i.join("")}function _o(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("V",(r=t[e])[1],"H",r[0]);return i.join("")}function bo(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r=t[e])[0],"V",r[1]);return i.join("")}function xo(t,e){return t.length<4?mo(t):t[1]+ko(t.slice(1,-1),Co(t,e))}function wo(t,e){return t.length<3?mo(t):t[0]+ko((t.push(t[0]),t),Co([t[t.length-2]].concat(t,[t[1]]),e))}function Mo(t,e){return t.length<3?mo(t):t[0]+ko(t,Co(t,e))}function ko(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return mo(t);var n=t.length!=e.length,r="",i=t[0],o=t[1],a=e[0],s=a,u=1;if(n&&(r+="Q"+(o[0]-2*a[0]/3)+","+(o[1]-2*a[1]/3)+","+o[0]+","+o[1],i=t[1],u=2),e.length>1){s=e[1],o=t[u],u++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(o[0]-s[0])+","+(o[1]-s[1])+","+o[0]+","+o[1];for(var l=2;l<e.length;l++,u++)o=t[u],s=e[l],r+="S"+(o[0]-s[0])+","+(o[1]-s[1])+","+o[0]+","+o[1]}if(n){var c=t[u];r+="Q"+(o[0]+2*s[0]/3)+","+(o[1]+2*s[1]/3)+","+c[0]+","+c[1]}return r}function Co(t,e){for(var n,r=[],i=(1-e)/2,o=t[0],a=t[1],s=1,u=t.length;++s<u;)n=o,o=a,a=t[s],r.push([i*(a[0]-n[0]),i*(a[1]-n[1])]);return r}function So(t){if(t.length<3)return mo(t);var e=1,n=t.length,r=t[0],i=r[0],o=r[1],a=[i,i,i,(r=t[1])[0]],s=[o,o,o,r[1]],u=[i,",",o,"L",Eo(Au,a),",",Eo(Au,s)];for(t.push(t[n-1]);++e<=n;)r=t[e],a.shift(),a.push(r[0]),s.shift(),s.push(r[1]),Ao(u,a,s);return t.pop(),u.push("L",r),u.join("")}function To(t){if(t.length<4)return mo(t);for(var e,n=[],r=-1,i=t.length,o=[0],a=[0];++r<3;)e=t[r],o.push(e[0]),a.push(e[1]);for(n.push(Eo(Au,o)+","+Eo(Au,a)),--r;++r<i;)e=t[r],o.shift(),o.push(e[0]),a.shift(),a.push(e[1]),Ao(n,o,a);return n.join("")}function Do(t){for(var e,n,r=-1,i=t.length,o=i+4,a=[],s=[];++r<4;)n=t[r%i],a.push(n[0]),s.push(n[1]);for(e=[Eo(Au,a),",",Eo(Au,s)],--r;++r<o;)n=t[r%i],a.shift(),a.push(n[0]),s.shift(),s.push(n[1]),Ao(e,a,s);return e.join("")}function Oo(t,e){var n=t.length-1;if(n)for(var r,i,o=t[0][0],a=t[0][1],s=t[n][0]-o,u=t[n][1]-a,l=-1;++l<=n;)r=t[l],i=l/n,r[0]=e*r[0]+(1-e)*(o+i*s),r[1]=e*r[1]+(1-e)*(a+i*u);return So(t)}function Eo(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function Ao(t,e,n){t.push("C",Eo(Ou,e),",",Eo(Ou,n),",",Eo(Eu,e),",",Eo(Eu,n),",",Eo(Au,e),",",Eo(Au,n))}function No(t,e){return(e[1]-t[1])/(e[0]-t[0])}function jo(t){for(var e=0,n=t.length-1,r=[],i=t[0],o=t[1],a=r[0]=No(i,o);++e<n;)r[e]=(a+(a=No(i=o,o=t[e+1])))/2;return r[e]=a,r}function Lo(t){for(var e,n,r,i,o=[],a=jo(t),s=-1,u=t.length-1;++s<u;)e=No(t[s],t[s+1]),ga(e)<Aa?a[s]=a[s+1]=0:(n=a[s]/e,r=a[s+1]/e,i=n*n+r*r,i>9&&(i=3*e/Math.sqrt(i),a[s]=i*n,a[s+1]=i*r));for(s=-1;++s<=u;)i=(t[Math.min(u,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),o.push([i||0,a[s]*i||0]);return o}function Fo(t){return t.length<3?mo(t):t[0]+ko(t,Lo(t))}function Po(t){for(var e,n,r,i=-1,o=t.length;++i<o;)e=t[i],n=e[0],r=e[1]-Pa,e[0]=n*Math.cos(r),e[1]=n*Math.sin(r);return t}function qo(t){function e(e){function u(){g.push("M",s(t(v),f),c,l(t(m.reverse()),f),"Z")}for(var h,p,d,g=[],m=[],v=[],y=-1,_=e.length,b=Tt(n),x=Tt(i),w=n===r?function(){return p}:Tt(r),M=i===o?function(){return d}:Tt(o);++y<_;)a.call(this,h=e[y],y)?(m.push([p=+b.call(this,h,y),d=+x.call(this,h,y)]),v.push([+w.call(this,h,y),+M.call(this,h,y)])):m.length&&(u(),m=[],v=[]);return m.length&&u(),g.length?g.join(""):null}var n=On,r=On,i=0,o=En,a=Oe,s=mo,u=s.key,l=s,c="L",f=.7;return e.x=function(t){return arguments.length?(n=r=t,e):r},e.x0=function(t){return arguments.length?(n=t,e):n},e.x1=function(t){return arguments.length?(r=t,e):r;
  
  },e.y=function(t){return arguments.length?(i=o=t,e):o},e.y0=function(t){return arguments.length?(i=t,e):i},e.y1=function(t){return arguments.length?(o=t,e):o},e.defined=function(t){return arguments.length?(a=t,e):a},e.interpolate=function(t){return arguments.length?(u="function"==typeof t?s=t:(s=Du.get(t)||mo).key,l=s.reverse||s,c=s.closed?"M":"L",e):u},e.tension=function(t){return arguments.length?(f=t,e):f},e}function Io(t){return t.radius}function $o(t){return[t.x,t.y]}function zo(t){return function(){var e=t.apply(this,arguments),n=e[0],r=e[1]-Pa;return[n*Math.cos(r),n*Math.sin(r)]}}function Ho(){return 64}function Ro(){return"circle"}function Yo(t){var e=Math.sqrt(t/ja);return"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"Z"}function Uo(t){return function(){var e,n;(e=this[t])&&(n=e[e.active])&&(--e.count?delete e[e.active]:delete this[t],e.active+=.5,n.event&&n.event.interrupt.call(this,this.__data__,n.index))}}function Wo(t,e,n){return ba(t,Iu),t.namespace=e,t.id=n,t}function Bo(t,e,n,r){var i=t.id,o=t.namespace;return U(t,"function"==typeof n?function(t,a,s){t[o][i].tween.set(e,r(n.call(t,t.__data__,a,s)))}:(n=r(n),function(t){t[o][i].tween.set(e,n)}))}function Vo(t){return null==t&&(t=""),function(){this.textContent=t}}function Go(t){return null==t?"__transition__":"__transition_"+t+"__"}function Zo(t,e,n,r,i){var o=t[n]||(t[n]={active:0,count:0}),a=o[r];if(!a){var s=i.time;a=o[r]={tween:new c,time:s,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++o.count,ra.timer(function(i){function u(n){if(o.active>r)return c();var i=o[o.active];i&&(--o.count,delete o[o.active],i.event&&i.event.interrupt.call(t,t.__data__,i.index)),o.active=r,a.event&&a.event.start.call(t,t.__data__,e),a.tween.forEach(function(n,r){(r=r.call(t,t.__data__,e))&&g.push(r)}),h=a.ease,f=a.duration,ra.timer(function(){return d.c=l(n||1)?Oe:l,1},0,s)}function l(n){if(o.active!==r)return 1;for(var i=n/f,s=h(i),u=g.length;u>0;)g[--u].call(t,s);return i>=1?(a.event&&a.event.end.call(t,t.__data__,e),c()):void 0}function c(){return--o.count?delete o[r]:delete t[n],1}var f,h,p=a.delay,d=is,g=[];return d.t=p+s,i>=p?u(i-p):void(d.c=u)},0,s)}}function Xo(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate("+(isFinite(r)?r:n(t))+",0)"})}function Ko(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate(0,"+(isFinite(r)?r:n(t))+")"})}function Qo(t){return t.toISOString()}function Jo(t,e,n){function r(e){return t(e)}function i(t,n){var r=t[1]-t[0],i=r/n,o=ra.bisect(Vu,i);return o==Vu.length?[e.year,Vi(t.map(function(t){return t/31536e6}),n)[2]]:o?e[i/Vu[o-1]<Vu[o]/i?o-1:o]:[Xu,Vi(t,n)[2]]}return r.invert=function(e){return ta(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain(e),r):t.domain().map(ta)},r.nice=function(t,e){function n(n){return!isNaN(n)&&!t.range(n,ta(+n+1),e).length}var o=r.domain(),a=Ii(o),s=null==t?i(a,10):"number"==typeof t&&i(a,t);return s&&(t=s[0],e=s[1]),r.domain(Hi(o,e>1?{floor:function(e){for(;n(e=t.floor(e));)e=ta(e-1);return e},ceil:function(e){for(;n(e=t.ceil(e));)e=ta(+e+1);return e}}:t))},r.ticks=function(t,e){var n=Ii(r.domain()),o=null==t?i(n,10):"number"==typeof t?i(n,t):!t.range&&[{range:t},e];return o&&(t=o[0],e=o[1]),t.range(n[0],ta(+n[1]+1),1>e?1:e)},r.tickFormat=function(){return n},r.copy=function(){return Jo(t.copy(),e,n)},Wi(r,t)}function ta(t){return new Date(t)}function ea(t){return JSON.parse(t.responseText)}function na(t){var e=aa.createRange();return e.selectNode(aa.body),e.createContextualFragment(t.responseText)}var ra={version:"3.5.5"},ia=[].slice,oa=function(t){return ia.call(t)},aa=this.document;if(aa)try{oa(aa.documentElement.childNodes)[0].nodeType}catch(sa){oa=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}if(Date.now||(Date.now=function(){return+new Date}),aa)try{aa.createElement("DIV").style.setProperty("opacity",0,"")}catch(ua){var la=this.Element.prototype,ca=la.setAttribute,fa=la.setAttributeNS,ha=this.CSSStyleDeclaration.prototype,pa=ha.setProperty;la.setAttribute=function(t,e){ca.call(this,t,e+"")},la.setAttributeNS=function(t,e,n){fa.call(this,t,e,n+"")},ha.setProperty=function(t,e,n){pa.call(this,t,e+"",n)}}ra.ascending=r,ra.descending=function(t,e){return t>e?-1:e>t?1:e>=t?0:0/0},ra.min=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=t[i])&&r>=r){n=r;break}for(;++i<o;)null!=(r=t[i])&&n>r&&(n=r)}else{for(;++i<o;)if(null!=(r=e.call(t,t[i],i))&&r>=r){n=r;break}for(;++i<o;)null!=(r=e.call(t,t[i],i))&&n>r&&(n=r)}return n},ra.max=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=t[i])&&r>=r){n=r;break}for(;++i<o;)null!=(r=t[i])&&r>n&&(n=r)}else{for(;++i<o;)if(null!=(r=e.call(t,t[i],i))&&r>=r){n=r;break}for(;++i<o;)null!=(r=e.call(t,t[i],i))&&r>n&&(n=r)}return n},ra.extent=function(t,e){var n,r,i,o=-1,a=t.length;if(1===arguments.length){for(;++o<a;)if(null!=(r=t[o])&&r>=r){n=i=r;break}for(;++o<a;)null!=(r=t[o])&&(n>r&&(n=r),r>i&&(i=r))}else{for(;++o<a;)if(null!=(r=e.call(t,t[o],o))&&r>=r){n=i=r;break}for(;++o<a;)null!=(r=e.call(t,t[o],o))&&(n>r&&(n=r),r>i&&(i=r))}return[n,i]},ra.sum=function(t,e){var n,r=0,i=t.length,a=-1;if(1===arguments.length)for(;++a<i;)o(n=+t[a])&&(r+=n);else for(;++a<i;)o(n=+e.call(t,t[a],a))&&(r+=n);return r},ra.mean=function(t,e){var n,r=0,a=t.length,s=-1,u=a;if(1===arguments.length)for(;++s<a;)o(n=i(t[s]))?r+=n:--u;else for(;++s<a;)o(n=i(e.call(t,t[s],s)))?r+=n:--u;return u?r/u:void 0},ra.quantile=function(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i},ra.median=function(t,e){var n,a=[],s=t.length,u=-1;if(1===arguments.length)for(;++u<s;)o(n=i(t[u]))&&a.push(n);else for(;++u<s;)o(n=i(e.call(t,t[u],u)))&&a.push(n);return a.length?ra.quantile(a.sort(r),.5):void 0},ra.variance=function(t,e){var n,r,a=t.length,s=0,u=0,l=-1,c=0;if(1===arguments.length)for(;++l<a;)o(n=i(t[l]))&&(r=n-s,s+=r/++c,u+=r*(n-s));else for(;++l<a;)o(n=i(e.call(t,t[l],l)))&&(r=n-s,s+=r/++c,u+=r*(n-s));return c>1?u/(c-1):void 0},ra.deviation=function(){var t=ra.variance.apply(this,arguments);return t?Math.sqrt(t):t};var da=a(r);ra.bisectLeft=da.left,ra.bisect=ra.bisectRight=da.right,ra.bisector=function(t){return a(1===t.length?function(e,n){return r(t(e),n)}:t)},ra.shuffle=function(t,e,n){(o=arguments.length)<3&&(n=t.length,2>o&&(e=0));for(var r,i,o=n-e;o;)i=Math.random()*o--|0,r=t[o+e],t[o+e]=t[i+e],t[i+e]=r;return t},ra.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},ra.pairs=function(t){for(var e,n=0,r=t.length-1,i=t[0],o=new Array(0>r?0:r);r>n;)o[n]=[e=i,i=t[++n]];return o},ra.zip=function(){if(!(r=arguments.length))return[];for(var t=-1,e=ra.min(arguments,s),n=new Array(e);++t<e;)for(var r,i=-1,o=n[t]=new Array(r);++i<r;)o[i]=arguments[i][t];return n},ra.transpose=function(t){return ra.zip.apply(ra,t)},ra.keys=function(t){var e=[];for(var n in t)e.push(n);return e},ra.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},ra.entries=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},ra.merge=function(t){for(var e,n,r,i=t.length,o=-1,a=0;++o<i;)a+=t[o].length;for(n=new Array(a);--i>=0;)for(r=t[i],e=r.length;--e>=0;)n[--a]=r[e];return n};var ga=Math.abs;ra.range=function(t,e,n){if(arguments.length<3&&(n=1,arguments.length<2&&(e=t,t=0)),(e-t)/n===1/0)throw new Error("infinite range");var r,i=[],o=u(ga(n)),a=-1;if(t*=o,e*=o,n*=o,0>n)for(;(r=t+n*++a)>e;)i.push(r/o);else for(;(r=t+n*++a)<e;)i.push(r/o);return i},ra.map=function(t,e){var n=new c;if(t instanceof c)t.forEach(function(t,e){n.set(t,e)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(1===arguments.length)for(;++i<o;)n.set(i,t[i]);else for(;++i<o;)n.set(e.call(t,r=t[i],i),r)}else for(var a in t)n.set(a,t[a]);return n};var ma="__proto__",va="\x00";l(c,{has:p,get:function(t){return this._[f(t)]},set:function(t,e){return this._[f(t)]=e},remove:d,keys:g,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:h(e),value:this._[e]});return t},size:m,empty:v,forEach:function(t){for(var e in this._)t.call(this,h(e),this._[e])}}),ra.nest=function(){function t(e,a,s){if(s>=o.length)return r?r.call(i,a):n?a.sort(n):a;for(var u,l,f,h,p=-1,d=a.length,g=o[s++],m=new c;++p<d;)(h=m.get(u=g(l=a[p])))?h.push(l):m.set(u,[l]);return e?(l=e(),f=function(n,r){l.set(n,t(e,r,s))}):(l={},f=function(n,r){l[n]=t(e,r,s)}),m.forEach(f),l}function e(t,n){if(n>=o.length)return t;var r=[],i=a[n++];return t.forEach(function(t,i){r.push({key:t,values:e(i,n)})}),i?r.sort(function(t,e){return i(t.key,e.key)}):r}var n,r,i={},o=[],a=[];return i.map=function(e,n){return t(n,e,0)},i.entries=function(n){return e(t(ra.map,n,0),0)},i.key=function(t){return o.push(t),i},i.sortKeys=function(t){return a[o.length-1]=t,i},i.sortValues=function(t){return n=t,i},i.rollup=function(t){return r=t,i},i},ra.set=function(t){var e=new y;if(t)for(var n=0,r=t.length;r>n;++n)e.add(t[n]);return e},l(y,{has:p,add:function(t){return this._[f(t+="")]=!0,t},remove:d,values:g,size:m,empty:v,forEach:function(t){for(var e in this._)t.call(this,h(e))}}),ra.behavior={},ra.rebind=function(t,e){for(var n,r=1,i=arguments.length;++r<i;)t[n=arguments[r]]=b(t,e,e[n]);return t};var ya=["webkit","ms","moz","Moz","o","O"];ra.dispatch=function(){for(var t=new M,e=-1,n=arguments.length;++e<n;)t[arguments[e]]=k(t);return t},M.prototype.on=function(t,e){var n=t.indexOf("."),r="";if(n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),t)return arguments.length<2?this[t].on(r):this[t].on(r,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},ra.event=null,ra.requote=function(t){return t.replace(_a,"\\$&")};var _a=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,ba={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]},xa=function(t,e){return e.querySelector(t)},wa=function(t,e){return e.querySelectorAll(t)},Ma=function(t,e){var n=t.matches||t[x(t,"matchesSelector")];return(Ma=function(t,e){return n.call(t,e)})(t,e)};"function"==typeof Sizzle&&(xa=function(t,e){return Sizzle(t,e)[0]||null},wa=Sizzle,Ma=Sizzle.matchesSelector),ra.selection=function(){return ra.select(aa.documentElement)};var ka=ra.selection.prototype=[];ka.select=function(t){var e,n,r,i,o=[];t=O(t);for(var a=-1,s=this.length;++a<s;){o.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var u=-1,l=r.length;++u<l;)(i=r[u])?(e.push(n=t.call(i,i.__data__,u,a)),n&&"__data__"in i&&(n.__data__=i.__data__)):e.push(null)}return D(o)},ka.selectAll=function(t){var e,n,r=[];t=E(t);for(var i=-1,o=this.length;++i<o;)for(var a=this[i],s=-1,u=a.length;++s<u;)(n=a[s])&&(r.push(e=oa(t.call(n,n.__data__,s,i))),e.parentNode=n);return D(r)};var Ca={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};ra.ns={prefix:Ca,qualify:function(t){var e=t.indexOf(":"),n=t;return e>=0&&(n=t.slice(0,e),t=t.slice(e+1)),Ca.hasOwnProperty(n)?{space:Ca[n],local:t}:t}},ka.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return t=ra.ns.qualify(t),t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(A(e,t[e]));return this}return this.each(A(t,e))},ka.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=L(t)).length,i=-1;if(e=n.classList){for(;++i<r;)if(!e.contains(t[i]))return!1}else for(e=n.getAttribute("class");++i<r;)if(!j(t[i]).test(e))return!1;return!0}for(e in t)this.each(F(e,t[e]));return this}return this.each(F(t,e))},ka.style=function(t,e,r){var i=arguments.length;if(3>i){if("string"!=typeof t){2>i&&(e="");for(r in t)this.each(q(r,t[r],e));return this}if(2>i){var o=this.node();return n(o).getComputedStyle(o,null).getPropertyValue(t)}r=""}return this.each(q(t,e,r))},ka.property=function(t,e){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(e in t)this.each(I(e,t[e]));return this}return this.each(I(t,e))},ka.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},ka.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},ka.append=function(t){return t=$(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},ka.insert=function(t,e){return t=$(t),e=O(e),this.select(function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)})},ka.remove=function(){return this.each(z)},ka.data=function(t,e){function n(t,n){var r,i,o,a=t.length,f=n.length,h=Math.min(a,f),p=new Array(f),d=new Array(f),g=new Array(a);if(e){var m,v=new c,y=new Array(a);for(r=-1;++r<a;)v.has(m=e.call(i=t[r],i.__data__,r))?g[r]=i:v.set(m,i),y[r]=m;for(r=-1;++r<f;)(i=v.get(m=e.call(n,o=n[r],r)))?i!==!0&&(p[r]=i,i.__data__=o):d[r]=H(o),v.set(m,!0);for(r=-1;++r<a;)v.get(y[r])!==!0&&(g[r]=t[r])}else{for(r=-1;++r<h;)i=t[r],o=n[r],i?(i.__data__=o,p[r]=i):d[r]=H(o);for(;f>r;++r)d[r]=H(n[r]);for(;a>r;++r)g[r]=t[r]}d.update=p,d.parentNode=p.parentNode=g.parentNode=t.parentNode,s.push(d),u.push(p),l.push(g)}var r,i,o=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(r=this[0]).length);++o<a;)(i=r[o])&&(t[o]=i.__data__);return t}var s=W([]),u=D([]),l=D([]);if("function"==typeof t)for(;++o<a;)n(r=this[o],t.call(r,r.parentNode.__data__,o));else for(;++o<a;)n(r=this[o],t);return u.enter=function(){return s},u.exit=function(){return l},u},ka.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},ka.filter=function(t){var e,n,r,i=[];"function"!=typeof t&&(t=R(t));for(var o=0,a=this.length;a>o;o++){i.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var s=0,u=n.length;u>s;s++)(r=n[s])&&t.call(r,r.__data__,s,o)&&e.push(r)}return D(i)},ka.order=function(){for(var t=-1,e=this.length;++t<e;)for(var n,r=this[t],i=r.length-1,o=r[i];--i>=0;)(n=r[i])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},ka.sort=function(t){t=Y.apply(this,arguments);for(var e=-1,n=this.length;++e<n;)this[e].sort(t);return this.order()},ka.each=function(t){return U(this,function(e,n,r){t.call(e,e.__data__,n,r)})},ka.call=function(t){var e=oa(arguments);return t.apply(e[0]=this,e),this},ka.empty=function(){return!this.node()},ka.node=function(){for(var t=0,e=this.length;e>t;t++)for(var n=this[t],r=0,i=n.length;i>r;r++){var o=n[r];if(o)return o}return null},ka.size=function(){var t=0;return U(this,function(){++t}),t};var Sa=[];ra.selection.enter=W,ra.selection.enter.prototype=Sa,Sa.append=ka.append,Sa.empty=ka.empty,Sa.node=ka.node,Sa.call=ka.call,Sa.size=ka.size,Sa.select=function(t){for(var e,n,r,i,o,a=[],s=-1,u=this.length;++s<u;){r=(i=this[s]).update,a.push(e=[]),e.parentNode=i.parentNode;for(var l=-1,c=i.length;++l<c;)(o=i[l])?(e.push(r[l]=n=t.call(i.parentNode,o.__data__,l,s)),n.__data__=o.__data__):e.push(null)}return D(a)},Sa.insert=function(t,e){return arguments.length<2&&(e=B(this)),ka.insert.call(this,t,e)},ra.select=function(e){var n;return"string"==typeof e?(n=[xa(e,aa)],n.parentNode=aa.documentElement):(n=[e],n.parentNode=t(e)),D([n])},ra.selectAll=function(t){var e;return"string"==typeof t?(e=oa(wa(t,aa)),e.parentNode=aa.documentElement):(e=t,e.parentNode=null),D([e])},ka.on=function(t,e,n){var r=arguments.length;if(3>r){if("string"!=typeof t){2>r&&(e=!1);for(n in t)this.each(V(n,t[n],e));return this}if(2>r)return(r=this.node()["__on"+t])&&r._;n=!1}return this.each(V(t,e,n))};var Ta=ra.map({mouseenter:"mouseover",mouseleave:"mouseout"});aa&&Ta.forEach(function(t){"on"+t in aa&&Ta.remove(t)});var Da,Oa=0;ra.mouse=function(t){return K(t,S())};var Ea=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;ra.touch=function(t,e,n){if(arguments.length<3&&(n=e,e=S().changedTouches),e)for(var r,i=0,o=e.length;o>i;++i)if((r=e[i]).identifier===n)return K(t,r)},ra.behavior.drag=function(){function t(){this.on("mousedown.drag",o).on("touchstart.drag",a)}function e(t,e,n,o,a){return function(){function s(){var t,n,r=e(h,g);r&&(t=r[0]-_[0],n=r[1]-_[1],d|=t|n,_=r,p({type:"drag",x:r[0]+l[0],y:r[1]+l[1],dx:t,dy:n}))}function u(){e(h,g)&&(v.on(o+m,null).on(a+m,null),y(d&&ra.event.target===f),p({type:"dragend"}))}var l,c=this,f=ra.event.target,h=c.parentNode,p=r.of(c,arguments),d=0,g=t(),m=".drag"+(null==g?"":"-"+g),v=ra.select(n(f)).on(o+m,s).on(a+m,u),y=X(f),_=e(h,g);i?(l=i.apply(c,arguments),l=[l.x-_[0],l.y-_[1]]):l=[0,0],p({type:"dragstart"})}}var r=T(t,"drag","dragstart","dragend"),i=null,o=e(w,ra.mouse,n,"mousemove","mouseup"),a=e(Q,ra.touch,_,"touchmove","touchend");return t.origin=function(e){return arguments.length?(i=e,t):i},ra.rebind(t,r,"on")},ra.touches=function(t,e){return arguments.length<2&&(e=S().touches),e?oa(e).map(function(e){var n=K(t,e);return n.identifier=e.identifier,n}):[]};var Aa=1e-6,Na=Aa*Aa,ja=Math.PI,La=2*ja,Fa=La-Aa,Pa=ja/2,qa=ja/180,Ia=180/ja,$a=Math.SQRT2,za=2,Ha=4;ra.interpolateZoom=function(t,e){function n(t){var e=t*y;if(v){var n=it(g),a=o/(za*h)*(n*ot($a*e+g)-rt(g));return[r+a*l,i+a*c,o*n/it($a*e+g)]}return[r+t*l,i+t*c,o*Math.exp($a*e)]}var r=t[0],i=t[1],o=t[2],a=e[0],s=e[1],u=e[2],l=a-r,c=s-i,f=l*l+c*c,h=Math.sqrt(f),p=(u*u-o*o+Ha*f)/(2*o*za*h),d=(u*u-o*o-Ha*f)/(2*u*za*h),g=Math.log(Math.sqrt(p*p+1)-p),m=Math.log(Math.sqrt(d*d+1)-d),v=m-g,y=(v||Math.log(u/o))/$a;return n.duration=1e3*y,n},ra.behavior.zoom=function(){function t(t){t.on(A,f).on(Ya+".zoom",p).on("dblclick.zoom",d).on(L,h)}function e(t){return[(t[0]-k.x)/k.k,(t[1]-k.y)/k.k]}function r(t){return[t[0]*k.k+k.x,t[1]*k.k+k.y]}function i(t){k.k=Math.max(D[0],Math.min(D[1],t))}function o(t,e){e=r(e),k.x+=t[0]-e[0],k.y+=t[1]-e[1]}function a(e,n,r,a){e.__chart__={x:k.x,y:k.y,k:k.k},i(Math.pow(2,a)),o(m=n,r),e=ra.select(e),O>0&&(e=e.transition().duration(O)),e.call(t.event)}function s(){x&&x.domain(b.range().map(function(t){return(t-k.x)/k.k}).map(b.invert)),M&&M.domain(w.range().map(function(t){return(t-k.y)/k.k}).map(w.invert))}function u(t){E++||t({type:"zoomstart"})}function l(t){s(),t({type:"zoom",scale:k.k,translate:[k.x,k.y]})}function c(t){--E||t({type:"zoomend"}),m=null}function f(){function t(){f=1,o(ra.mouse(i),p),l(s)}function r(){h.on(N,null).on(j,null),d(f&&ra.event.target===a),c(s)}var i=this,a=ra.event.target,s=F.of(i,arguments),f=0,h=ra.select(n(i)).on(N,t).on(j,r),p=e(ra.mouse(i)),d=X(i);qu.call(i),u(s)}function h(){function t(){var t=ra.touches(d);return p=k.k,t.forEach(function(t){t.identifier in m&&(m[t.identifier]=e(t))}),t}function n(){var e=ra.event.target;ra.select(e).on(b,r).on(x,s),w.push(e);for(var n=ra.event.changedTouches,i=0,o=n.length;o>i;++i)m[n[i].identifier]=null;var u=t(),l=Date.now();if(1===u.length){if(500>l-_){var c=u[0];a(d,c,m[c.identifier],Math.floor(Math.log(k.k)/Math.LN2)+1),C()}_=l}else if(u.length>1){var c=u[0],f=u[1],h=c[0]-f[0],p=c[1]-f[1];v=h*h+p*p}}function r(){var t,e,n,r,a=ra.touches(d);qu.call(d);for(var s=0,u=a.length;u>s;++s,r=null)if(n=a[s],r=m[n.identifier]){if(e)break;t=n,e=r}if(r){var c=(c=n[0]-t[0])*c+(c=n[1]-t[1])*c,f=v&&Math.sqrt(c/v);t=[(t[0]+n[0])/2,(t[1]+n[1])/2],e=[(e[0]+r[0])/2,(e[1]+r[1])/2],i(f*p)}_=null,o(t,e),l(g)}function s(){if(ra.event.touches.length){for(var e=ra.event.changedTouches,n=0,r=e.length;r>n;++n)delete m[e[n].identifier];for(var i in m)return void t()}ra.selectAll(w).on(y,null),M.on(A,f).on(L,h),S(),c(g)}var p,d=this,g=F.of(d,arguments),m={},v=0,y=".zoom-"+ra.event.changedTouches[0].identifier,b="touchmove"+y,x="touchend"+y,w=[],M=ra.select(d),S=X(d);n(),u(g),M.on(A,null).on(L,n)}function p(){var t=F.of(this,arguments);y?clearTimeout(y):(g=e(m=v||ra.mouse(this)),qu.call(this),u(t)),y=setTimeout(function(){y=null,c(t)},50),C(),i(Math.pow(2,.002*Ra())*k.k),o(m,g),l(t)}function d(){var t=ra.mouse(this),n=Math.log(k.k)/Math.LN2;a(this,t,e(t),ra.event.shiftKey?Math.ceil(n)-1:Math.floor(n)+1)}var g,m,v,y,_,b,x,w,M,k={x:0,y:0,k:1},S=[960,500],D=Ua,O=250,E=0,A="mousedown.zoom",N="mousemove.zoom",j="mouseup.zoom",L="touchstart.zoom",F=T(t,"zoomstart","zoom","zoomend");return Ya||(Ya="onwheel"in aa?(Ra=function(){return-ra.event.deltaY*(ra.event.deltaMode?120:1)},"wheel"):"onmousewheel"in aa?(Ra=function(){return ra.event.wheelDelta},"mousewheel"):(Ra=function(){return-ra.event.detail},"MozMousePixelScroll")),t.event=function(t){t.each(function(){var t=F.of(this,arguments),e=k;Fu?ra.select(this).transition().each("start.zoom",function(){k=this.__chart__||{x:0,y:0,k:1},u(t)}).tween("zoom:zoom",function(){var n=S[0],r=S[1],i=m?m[0]:n/2,o=m?m[1]:r/2,a=ra.interpolateZoom([(i-k.x)/k.k,(o-k.y)/k.k,n/k.k],[(i-e.x)/e.k,(o-e.y)/e.k,n/e.k]);return function(e){var r=a(e),s=n/r[2];this.__chart__=k={x:i-r[0]*s,y:o-r[1]*s,k:s},l(t)}}).each("interrupt.zoom",function(){c(t)}).each("end.zoom",function(){c(t)}):(this.__chart__=k,u(t),l(t),c(t))})},t.translate=function(e){return arguments.length?(k={x:+e[0],y:+e[1],k:k.k},s(),t):[k.x,k.y]},t.scale=function(e){return arguments.length?(k={x:k.x,y:k.y,k:+e},s(),t):k.k},t.scaleExtent=function(e){return arguments.length?(D=null==e?Ua:[+e[0],+e[1]],t):D},t.center=function(e){return arguments.length?(v=e&&[+e[0],+e[1]],t):v},t.size=function(e){return arguments.length?(S=e&&[+e[0],+e[1]],t):S},t.duration=function(e){return arguments.length?(O=+e,t):O},t.x=function(e){return arguments.length?(x=e,b=e.copy(),k={x:0,y:0,k:1},t):x},t.y=function(e){return arguments.length?(M=e,w=e.copy(),k={x:0,y:0,k:1},t):M},ra.rebind(t,F,"on")};var Ra,Ya,Ua=[0,1/0];ra.color=st,st.prototype.toString=function(){return this.rgb()+""},ra.hsl=ut;var Wa=ut.prototype=new st;Wa.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new ut(this.h,this.s,this.l/t)},Wa.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new ut(this.h,this.s,t*this.l)},Wa.rgb=function(){return lt(this.h,this.s,this.l)},ra.hcl=ct;var Ba=ct.prototype=new st;Ba.brighter=function(t){return new ct(this.h,this.c,Math.min(100,this.l+Va*(arguments.length?t:1)))},Ba.darker=function(t){return new ct(this.h,this.c,Math.max(0,this.l-Va*(arguments.length?t:1)))},Ba.rgb=function(){return ft(this.h,this.c,this.l).rgb()},ra.lab=ht;var Va=18,Ga=.95047,Za=1,Xa=1.08883,Ka=ht.prototype=new st;Ka.brighter=function(t){return new ht(Math.min(100,this.l+Va*(arguments.length?t:1)),this.a,this.b)},Ka.darker=function(t){return new ht(Math.max(0,this.l-Va*(arguments.length?t:1)),this.a,this.b)},Ka.rgb=function(){return pt(this.l,this.a,this.b)},ra.rgb=yt;var Qa=yt.prototype=new st;Qa.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,n=this.g,r=this.b,i=30;return e||n||r?(e&&i>e&&(e=i),n&&i>n&&(n=i),r&&i>r&&(r=i),new yt(Math.min(255,e/t),Math.min(255,n/t),Math.min(255,r/t))):new yt(i,i,i)},Qa.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new yt(t*this.r,t*this.g,t*this.b)},Qa.hsl=function(){return Mt(this.r,this.g,this.b)},Qa.toString=function(){return"#"+xt(this.r)+xt(this.g)+xt(this.b)};var Ja=ra.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Ja.forEach(function(t,e){Ja.set(t,_t(e))}),ra.functor=Tt,ra.xhr=Dt(_),ra.dsv=function(t,e){function n(t,n,o){arguments.length<3&&(o=n,n=null);var a=Ot(t,e,null==n?r:i(n),o);return a.row=function(t){return arguments.length?a.response(null==(n=t)?r:i(t)):n},a}function r(t){return n.parse(t.responseText)}function i(t){return function(e){return n.parse(e.responseText,t)}}function o(e){return e.map(a).join(t)}function a(t){return s.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var s=new RegExp('["'+t+"\n]"),u=t.charCodeAt(0);return n.parse=function(t,e){var r;return n.parseRows(t,function(t,n){if(r)return r(t,n-1);var i=new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}");r=e?function(t,n){return e(i(t),n)}:i})},n.parseRows=function(t,e){function n(){if(c>=l)return a;if(i)return i=!1,o;var e=c;if(34===t.charCodeAt(e)){for(var n=e;n++<l;)if(34===t.charCodeAt(n)){if(34!==t.charCodeAt(n+1))break;++n}c=n+2;var r=t.charCodeAt(n+1);return 13===r?(i=!0,10===t.charCodeAt(n+2)&&++c):10===r&&(i=!0),t.slice(e+1,n).replace(/""/g,'"')}for(;l>c;){var r=t.charCodeAt(c++),s=1;if(10===r)i=!0;else if(13===r)i=!0,10===t.charCodeAt(c)&&(++c,++s);else if(r!==u)continue;return t.slice(e,c-s)}return t.slice(e)}for(var r,i,o={},a={},s=[],l=t.length,c=0,f=0;(r=n())!==a;){for(var h=[];r!==o&&r!==a;)h.push(r),r=n();e&&null==(h=e(h,f++))||s.push(h)}return s},n.format=function(e){if(Array.isArray(e[0]))return n.formatRows(e);var r=new y,i=[];return e.forEach(function(t){for(var e in t)r.has(e)||i.push(r.add(e))}),[i.map(a).join(t)].concat(e.map(function(e){return i.map(function(t){return a(e[t])}).join(t)})).join("\n")},n.formatRows=function(t){return t.map(o).join("\n")},n},ra.csv=ra.dsv(",","text/csv"),ra.tsv=ra.dsv("	","text/tab-separated-values");var ts,es,ns,rs,is,os=this[x(this,"requestAnimationFrame")]||function(t){setTimeout(t,17)};ra.timer=function(t,e,n){var r=arguments.length;2>r&&(e=0),3>r&&(n=Date.now());var i=n+e,o={c:t,t:i,f:!1,n:null};es?es.n=o:ts=o,es=o,ns||(rs=clearTimeout(rs),ns=1,os(Nt))},ra.timer.flush=function(){jt(),Lt()},ra.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var as=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(Pt);ra.formatPrefix=function(t,e){var n=0;return t&&(0>t&&(t*=-1),e&&(t=ra.round(t,Ft(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),as[8+n/3]};var ss=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,us=ra.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=ra.round(t,Ft(t,e))).toFixed(Math.max(0,Math.min(20,Ft(t*(1+1e-15),e))))}}),ls=ra.time={},cs=Date;$t.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){fs.setUTCDate.apply(this._,arguments)},setDay:function(){fs.setUTCDay.apply(this._,arguments)},setFullYear:function(){fs.setUTCFullYear.apply(this._,arguments)},setHours:function(){fs.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){fs.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){fs.setUTCMinutes.apply(this._,arguments)},setMonth:function(){fs.setUTCMonth.apply(this._,arguments)},setSeconds:function(){fs.setUTCSeconds.apply(this._,arguments)},setTime:function(){fs.setTime.apply(this._,arguments)}};var fs=Date.prototype;ls.year=zt(function(t){return t=ls.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),ls.years=ls.year.range,ls.years.utc=ls.year.utc.range,ls.day=zt(function(t){var e=new cs(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),ls.days=ls.day.range,ls.days.utc=ls.day.utc.range,ls.dayOfYear=function(t){var e=ls.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,e){e=7-e;var n=ls[t]=zt(function(t){return(t=ls.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var n=ls.year(t).getDay();return Math.floor((ls.dayOfYear(t)+(n+e)%7)/7)-(n!==e)});ls[t+"s"]=n.range,ls[t+"s"].utc=n.utc.range,ls[t+"OfYear"]=function(t){var n=ls.year(t).getDay();return Math.floor((ls.dayOfYear(t)+(n+e)%7)/7)}}),ls.week=ls.sunday,ls.weeks=ls.sunday.range,ls.weeks.utc=ls.sunday.utc.range,ls.weekOfYear=ls.sundayOfYear;var hs={"-":"",_:" ",0:"0"},ps=/^\s*\d+/,ds=/^%/;ra.locale=function(t){return{numberFormat:qt(t),timeFormat:Rt(t)}};var gs=ra.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});ra.format=gs.numberFormat,ra.geo={},le.prototype={s:0,t:0,add:function(t){ce(t,this.t,ms),ce(ms.s,this.s,this),this.s?this.t+=ms.t:this.s=ms.t;
  
  },reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var ms=new le;ra.geo.stream=function(t,e){t&&vs.hasOwnProperty(t.type)?vs[t.type](t,e):fe(t,e)};var vs={Feature:function(t,e){fe(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)fe(n[r].geometry,e)}},ys={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){he(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)he(n[r],e,0)},Polygon:function(t,e){pe(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)pe(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)fe(n[r],e)}};ra.geo.area=function(t){return _s=0,ra.geo.stream(t,xs),_s};var _s,bs=new le,xs={sphere:function(){_s+=4*ja},point:w,lineStart:w,lineEnd:w,polygonStart:function(){bs.reset(),xs.lineStart=de},polygonEnd:function(){var t=2*bs;_s+=0>t?4*ja+t:t,xs.lineStart=xs.lineEnd=xs.point=w}};ra.geo.bounds=function(){function t(t,e){_.push(b=[c=t,h=t]),f>e&&(f=e),e>p&&(p=e)}function e(e,n){var r=ge([e*qa,n*qa]);if(v){var i=ve(v,r),o=[i[1],-i[0],0],a=ve(o,i);be(a),a=xe(a);var u=e-d,l=u>0?1:-1,g=a[0]*Ia*l,m=ga(u)>180;if(m^(g>l*d&&l*e>g)){var y=a[1]*Ia;y>p&&(p=y)}else if(g=(g+360)%360-180,m^(g>l*d&&l*e>g)){var y=-a[1]*Ia;f>y&&(f=y)}else f>n&&(f=n),n>p&&(p=n);m?d>e?s(c,e)>s(c,h)&&(h=e):s(e,h)>s(c,h)&&(c=e):h>=c?(c>e&&(c=e),e>h&&(h=e)):e>d?s(c,e)>s(c,h)&&(h=e):s(e,h)>s(c,h)&&(c=e)}else t(e,n);v=r,d=e}function n(){x.point=e}function r(){b[0]=c,b[1]=h,x.point=t,v=null}function i(t,n){if(v){var r=t-d;y+=ga(r)>180?r+(r>0?360:-360):r}else g=t,m=n;xs.point(t,n),e(t,n)}function o(){xs.lineStart()}function a(){i(g,m),xs.lineEnd(),ga(y)>Aa&&(c=-(h=180)),b[0]=c,b[1]=h,v=null}function s(t,e){return(e-=t)<0?e+360:e}function u(t,e){return t[0]-e[0]}function l(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var c,f,h,p,d,g,m,v,y,_,b,x={point:t,lineStart:n,lineEnd:r,polygonStart:function(){x.point=i,x.lineStart=o,x.lineEnd=a,y=0,xs.polygonStart()},polygonEnd:function(){xs.polygonEnd(),x.point=t,x.lineStart=n,x.lineEnd=r,0>bs?(c=-(h=180),f=-(p=90)):y>Aa?p=90:-Aa>y&&(f=-90),b[0]=c,b[1]=h}};return function(t){p=h=-(c=f=1/0),_=[],ra.geo.stream(t,x);var e=_.length;if(e){_.sort(u);for(var n,r=1,i=_[0],o=[i];e>r;++r)n=_[r],l(n[0],i)||l(n[1],i)?(s(i[0],n[1])>s(i[0],i[1])&&(i[1]=n[1]),s(n[0],i[1])>s(i[0],i[1])&&(i[0]=n[0])):o.push(i=n);for(var a,n,d=-(1/0),e=o.length-1,r=0,i=o[e];e>=r;i=n,++r)n=o[r],(a=s(i[1],n[0]))>d&&(d=a,c=n[0],h=i[1])}return _=b=null,c===1/0||f===1/0?[[0/0,0/0],[0/0,0/0]]:[[c,f],[h,p]]}}(),ra.geo.centroid=function(t){ws=Ms=ks=Cs=Ss=Ts=Ds=Os=Es=As=Ns=0,ra.geo.stream(t,js);var e=Es,n=As,r=Ns,i=e*e+n*n+r*r;return Na>i&&(e=Ts,n=Ds,r=Os,Aa>Ms&&(e=ks,n=Cs,r=Ss),i=e*e+n*n+r*r,Na>i)?[0/0,0/0]:[Math.atan2(n,e)*Ia,nt(r/Math.sqrt(i))*Ia]};var ws,Ms,ks,Cs,Ss,Ts,Ds,Os,Es,As,Ns,js={sphere:w,point:Me,lineStart:Ce,lineEnd:Se,polygonStart:function(){js.lineStart=Te},polygonEnd:function(){js.lineStart=Ce}},Ls=je(Oe,qe,$e,[-ja,-ja/2]),Fs=1e9;ra.geo.clipExtent=function(){var t,e,n,r,i,o,a={stream:function(t){return i&&(i.valid=!1),i=o(t),i.valid=!0,i},extent:function(s){return arguments.length?(o=Ye(t=+s[0][0],e=+s[0][1],n=+s[1][0],r=+s[1][1]),i&&(i.valid=!1,i=null),a):[[t,e],[n,r]]}};return a.extent([[0,0],[960,500]])},(ra.geo.conicEqualArea=function(){return Ue(We)}).raw=We,ra.geo.albers=function(){return ra.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},ra.geo.albersUsa=function(){function t(t){var o=t[0],a=t[1];return e=null,n(o,a),e||(r(o,a),e)||i(o,a),e}var e,n,r,i,o=ra.geo.albers(),a=ra.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=ra.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,n){e=[t,n]}};return t.invert=function(t){var e=o.scale(),n=o.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?a:i>=.166&&.234>i&&r>=-.214&&-.115>r?s:o).invert(t)},t.stream=function(t){var e=o.stream(t),n=a.stream(t),r=s.stream(t);return{point:function(t,i){e.point(t,i),n.point(t,i),r.point(t,i)},sphere:function(){e.sphere(),n.sphere(),r.sphere()},lineStart:function(){e.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){e.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){e.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){e.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},t.precision=function(e){return arguments.length?(o.precision(e),a.precision(e),s.precision(e),t):o.precision()},t.scale=function(e){return arguments.length?(o.scale(e),a.scale(.35*e),s.scale(e),t.translate(o.translate())):o.scale()},t.translate=function(e){if(!arguments.length)return o.translate();var l=o.scale(),c=+e[0],f=+e[1];return n=o.translate(e).clipExtent([[c-.455*l,f-.238*l],[c+.455*l,f+.238*l]]).stream(u).point,r=a.translate([c-.307*l,f+.201*l]).clipExtent([[c-.425*l+Aa,f+.12*l+Aa],[c-.214*l-Aa,f+.234*l-Aa]]).stream(u).point,i=s.translate([c-.205*l,f+.212*l]).clipExtent([[c-.214*l+Aa,f+.166*l+Aa],[c-.115*l-Aa,f+.234*l-Aa]]).stream(u).point,t},t.scale(1070)};var Ps,qs,Is,$s,zs,Hs,Rs={point:w,lineStart:w,lineEnd:w,polygonStart:function(){qs=0,Rs.lineStart=Be},polygonEnd:function(){Rs.lineStart=Rs.lineEnd=Rs.point=w,Ps+=ga(qs/2)}},Ys={point:Ve,lineStart:w,lineEnd:w,polygonStart:w,polygonEnd:w},Us={point:Xe,lineStart:Ke,lineEnd:Qe,polygonStart:function(){Us.lineStart=Je},polygonEnd:function(){Us.point=Xe,Us.lineStart=Ke,Us.lineEnd=Qe}};ra.geo.path=function(){function t(t){return t&&("function"==typeof s&&o.pointRadius(+s.apply(this,arguments)),a&&a.valid||(a=i(o)),ra.geo.stream(t,a)),o.result()}function e(){return a=null,t}var n,r,i,o,a,s=4.5;return t.area=function(t){return Ps=0,ra.geo.stream(t,i(Rs)),Ps},t.centroid=function(t){return ks=Cs=Ss=Ts=Ds=Os=Es=As=Ns=0,ra.geo.stream(t,i(Us)),Ns?[Es/Ns,As/Ns]:Os?[Ts/Os,Ds/Os]:Ss?[ks/Ss,Cs/Ss]:[0/0,0/0]},t.bounds=function(t){return zs=Hs=-(Is=$s=1/0),ra.geo.stream(t,i(Ys)),[[Is,$s],[zs,Hs]]},t.projection=function(t){return arguments.length?(i=(n=t)?t.stream||nn(t):_,e()):n},t.context=function(t){return arguments.length?(o=null==(r=t)?new Ge:new tn(t),"function"!=typeof s&&o.pointRadius(s),e()):r},t.pointRadius=function(e){return arguments.length?(s="function"==typeof e?e:(o.pointRadius(+e),+e),t):s},t.projection(ra.geo.albersUsa()).context(null)},ra.geo.transform=function(t){return{stream:function(e){var n=new rn(e);for(var r in t)n[r]=t[r];return n}}},rn.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},ra.geo.projection=an,ra.geo.projectionMutator=sn,(ra.geo.equirectangular=function(){return an(ln)}).raw=ln.invert=ln,ra.geo.rotation=function(t){function e(e){return e=t(e[0]*qa,e[1]*qa),e[0]*=Ia,e[1]*=Ia,e}return t=fn(t[0]%360*qa,t[1]*qa,t.length>2?t[2]*qa:0),e.invert=function(e){return e=t.invert(e[0]*qa,e[1]*qa),e[0]*=Ia,e[1]*=Ia,e},e},cn.invert=ln,ra.geo.circle=function(){function t(){var t="function"==typeof r?r.apply(this,arguments):r,e=fn(-t[0]*qa,-t[1]*qa,0).invert,i=[];return n(null,null,1,{point:function(t,n){i.push(t=e(t,n)),t[0]*=Ia,t[1]*=Ia}}),{type:"Polygon",coordinates:[i]}}var e,n,r=[0,0],i=6;return t.origin=function(e){return arguments.length?(r=e,t):r},t.angle=function(r){return arguments.length?(n=gn((e=+r)*qa,i*qa),t):e},t.precision=function(r){return arguments.length?(n=gn(e*qa,(i=+r)*qa),t):i},t.angle(90)},ra.geo.distance=function(t,e){var n,r=(e[0]-t[0])*qa,i=t[1]*qa,o=e[1]*qa,a=Math.sin(r),s=Math.cos(r),u=Math.sin(i),l=Math.cos(i),c=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((n=f*a)*n+(n=l*c-u*f*s)*n),u*c+l*f*s)},ra.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return ra.range(Math.ceil(o/m)*m,i,m).map(h).concat(ra.range(Math.ceil(l/v)*v,u,v).map(p)).concat(ra.range(Math.ceil(r/d)*d,n,d).filter(function(t){return ga(t%m)>Aa}).map(c)).concat(ra.range(Math.ceil(s/g)*g,a,g).filter(function(t){return ga(t%v)>Aa}).map(f))}var n,r,i,o,a,s,u,l,c,f,h,p,d=10,g=d,m=90,v=360,y=2.5;return t.lines=function(){return e().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[h(o).concat(p(u).slice(1),h(i).reverse().slice(1),p(l).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.majorExtent(e).minorExtent(e):t.minorExtent()},t.majorExtent=function(e){return arguments.length?(o=+e[0][0],i=+e[1][0],l=+e[0][1],u=+e[1][1],o>i&&(e=o,o=i,i=e),l>u&&(e=l,l=u,u=e),t.precision(y)):[[o,l],[i,u]]},t.minorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),t.precision(y)):[[r,s],[n,a]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(m=+e[0],v=+e[1],t):[m,v]},t.minorStep=function(e){return arguments.length?(d=+e[0],g=+e[1],t):[d,g]},t.precision=function(e){return arguments.length?(y=+e,c=vn(s,a,90),f=yn(r,n,y),h=vn(l,u,90),p=yn(o,i,y),t):y},t.majorExtent([[-180,-90+Aa],[180,90-Aa]]).minorExtent([[-180,-80-Aa],[180,80+Aa]])},ra.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[e||r.apply(this,arguments),n||i.apply(this,arguments)]}}var e,n,r=_n,i=bn;return t.distance=function(){return ra.geo.distance(e||r.apply(this,arguments),n||i.apply(this,arguments))},t.source=function(n){return arguments.length?(r=n,e="function"==typeof n?null:n,t):r},t.target=function(e){return arguments.length?(i=e,n="function"==typeof e?null:e,t):i},t.precision=function(){return arguments.length?t:0},t},ra.geo.interpolate=function(t,e){return xn(t[0]*qa,t[1]*qa,e[0]*qa,e[1]*qa)},ra.geo.length=function(t){return Ws=0,ra.geo.stream(t,Bs),Ws};var Ws,Bs={sphere:w,point:w,lineStart:wn,lineEnd:w,polygonStart:w,polygonEnd:w},Vs=Mn(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(ra.geo.azimuthalEqualArea=function(){return an(Vs)}).raw=Vs;var Gs=Mn(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},_);(ra.geo.azimuthalEquidistant=function(){return an(Gs)}).raw=Gs,(ra.geo.conicConformal=function(){return Ue(kn)}).raw=kn,(ra.geo.conicEquidistant=function(){return Ue(Cn)}).raw=Cn;var Zs=Mn(function(t){return 1/t},Math.atan);(ra.geo.gnomonic=function(){return an(Zs)}).raw=Zs,Sn.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Pa]},(ra.geo.mercator=function(){return Tn(Sn)}).raw=Sn;var Xs=Mn(function(){return 1},Math.asin);(ra.geo.orthographic=function(){return an(Xs)}).raw=Xs;var Ks=Mn(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(ra.geo.stereographic=function(){return an(Ks)}).raw=Ks,Dn.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Pa]},(ra.geo.transverseMercator=function(){var t=Tn(Dn),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90])}).raw=Dn,ra.geom={},ra.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,i=Tt(n),o=Tt(r),a=t.length,s=[],u=[];for(e=0;a>e;e++)s.push([+i.call(this,t[e],e),+o.call(this,t[e],e),e]);for(s.sort(Nn),e=0;a>e;e++)u.push([s[e][0],-s[e][1]]);var l=An(s),c=An(u),f=c[0]===l[0],h=c[c.length-1]===l[l.length-1],p=[];for(e=l.length-1;e>=0;--e)p.push(t[s[l[e]][2]]);for(e=+f;e<c.length-h;++e)p.push(t[s[c[e]][2]]);return p}var n=On,r=En;return arguments.length?e(t):(e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(r=t,e):r},e)},ra.geom.polygon=function(t){return ba(t,Qs),t};var Qs=ra.geom.polygon.prototype=[];Qs.area=function(){for(var t,e=-1,n=this.length,r=this[n-1],i=0;++e<n;)t=r,r=this[e],i+=t[1]*r[0]-t[0]*r[1];return.5*i},Qs.centroid=function(t){var e,n,r=-1,i=this.length,o=0,a=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++r<i;)e=s,s=this[r],n=e[0]*s[1]-s[0]*e[1],o+=(e[0]+s[0])*n,a+=(e[1]+s[1])*n;return[o*t,a*t]},Qs.clip=function(t){for(var e,n,r,i,o,a,s=Fn(t),u=-1,l=this.length-Fn(this),c=this[l-1];++u<l;){for(e=t.slice(),t.length=0,i=this[u],o=e[(r=e.length-s)-1],n=-1;++n<r;)a=e[n],jn(a,c,i)?(jn(o,c,i)||t.push(Ln(o,a,c,i)),t.push(a)):jn(o,c,i)&&t.push(Ln(o,a,c,i)),o=a;s&&t.push(t[0]),c=i}return t};var Js,tu,eu,nu,ru,iu=[],ou=[];Yn.prototype.prepare=function(){for(var t,e=this.edges,n=e.length;n--;)t=e[n].edge,t.b&&t.a||e.splice(n,1);return e.sort(Wn),e.length},er.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},nr.prototype={insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=ar(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)r=n.U,n===r.L?(i=r.R,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(ir(this,n),t=n,n=t.U),n.C=!1,r.C=!0,or(this,r))):(i=r.L,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(or(this,n),t=n,n=t.U),n.C=!1,r.C=!0,ir(this,r))),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,o=t.L,a=t.R;if(n=o?a?ar(a):o:a,i?i.L===t?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=t.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=a,a.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(e=i.R,e.C&&(e.C=!1,i.C=!0,ir(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,or(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,ir(this,i),t=this._;break}}else if(e=i.L,e.C&&(e.C=!1,i.C=!0,or(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,ir(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,or(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},ra.geom.voronoi=function(t){function e(t){var e=new Array(t.length),r=s[0][0],i=s[0][1],o=s[1][0],a=s[1][1];return sr(n(t),s).cells.forEach(function(n,s){var u=n.edges,l=n.site,c=e[s]=u.length?u.map(function(t){var e=t.start();return[e.x,e.y]}):l.x>=r&&l.x<=o&&l.y>=i&&l.y<=a?[[r,a],[o,a],[o,i],[r,i]]:[];c.point=t[s]}),e}function n(t){return t.map(function(t,e){return{x:Math.round(o(t,e)/Aa)*Aa,y:Math.round(a(t,e)/Aa)*Aa,i:e}})}var r=On,i=En,o=r,a=i,s=au;return t?e(t):(e.links=function(t){return sr(n(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},e.triangles=function(t){var e=[];return sr(n(t)).cells.forEach(function(n,r){for(var i,o,a=n.site,s=n.edges.sort(Wn),u=-1,l=s.length,c=s[l-1].edge,f=c.l===a?c.r:c.l;++u<l;)i=c,o=f,c=s[u].edge,f=c.l===a?c.r:c.l,r<o.i&&r<f.i&&lr(a,o,f)<0&&e.push([t[r],t[o.i],t[f.i]])}),e},e.x=function(t){return arguments.length?(o=Tt(r=t),e):r},e.y=function(t){return arguments.length?(a=Tt(i=t),e):i},e.clipExtent=function(t){return arguments.length?(s=null==t?au:t,e):s===au?null:s},e.size=function(t){return arguments.length?e.clipExtent(t&&[[0,0],t]):s===au?null:s&&s[1]},e)};var au=[[-1e6,-1e6],[1e6,1e6]];ra.geom.delaunay=function(t){return ra.geom.voronoi().triangles(t)},ra.geom.quadtree=function(t,e,n,r,i){function o(t){function o(t,e,n,r,i,o,a,s){if(!isNaN(n)&&!isNaN(r))if(t.leaf){var u=t.x,c=t.y;if(null!=u)if(ga(u-n)+ga(c-r)<.01)l(t,e,n,r,i,o,a,s);else{var f=t.point;t.x=t.y=t.point=null,l(t,f,u,c,i,o,a,s),l(t,e,n,r,i,o,a,s)}else t.x=n,t.y=r,t.point=e}else l(t,e,n,r,i,o,a,s)}function l(t,e,n,r,i,a,s,u){var l=.5*(i+s),c=.5*(a+u),f=n>=l,h=r>=c,p=h<<1|f;t.leaf=!1,t=t.nodes[p]||(t.nodes[p]=hr()),f?i=l:s=l,h?a=c:u=c,o(t,e,n,r,i,a,s,u)}var c,f,h,p,d,g,m,v,y,_=Tt(s),b=Tt(u);if(null!=e)g=e,m=n,v=r,y=i;else if(v=y=-(g=m=1/0),f=[],h=[],d=t.length,a)for(p=0;d>p;++p)c=t[p],c.x<g&&(g=c.x),c.y<m&&(m=c.y),c.x>v&&(v=c.x),c.y>y&&(y=c.y),f.push(c.x),h.push(c.y);else for(p=0;d>p;++p){var x=+_(c=t[p],p),w=+b(c,p);g>x&&(g=x),m>w&&(m=w),x>v&&(v=x),w>y&&(y=w),f.push(x),h.push(w)}var M=v-g,k=y-m;M>k?y=m+M:v=g+k;var C=hr();if(C.add=function(t){o(C,t,+_(t,++p),+b(t,p),g,m,v,y)},C.visit=function(t){pr(t,C,g,m,v,y)},C.find=function(t){return dr(C,t[0],t[1],g,m,v,y)},p=-1,null==e){for(;++p<d;)o(C,t[p],f[p],h[p],g,m,v,y);--p}else t.forEach(C.add);return f=h=t=c=null,C}var a,s=On,u=En;return(a=arguments.length)?(s=cr,u=fr,3===a&&(i=n,r=e,n=e=0),o(t)):(o.x=function(t){return arguments.length?(s=t,o):s},o.y=function(t){return arguments.length?(u=t,o):u},o.extent=function(t){return arguments.length?(null==t?e=n=r=i=null:(e=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),o):null==e?null:[[e,n],[r,i]]},o.size=function(t){return arguments.length?(null==t?e=n=r=i=null:(e=n=0,r=+t[0],i=+t[1]),o):null==e?null:[r-e,i-n]},o)},ra.interpolateRgb=gr,ra.interpolateObject=mr,ra.interpolateNumber=vr,ra.interpolateString=yr;var su=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,uu=new RegExp(su.source,"g");ra.interpolate=_r,ra.interpolators=[function(t,e){var n=typeof e;return("string"===n?Ja.has(e)||/^(#|rgb\(|hsl\()/.test(e)?gr:yr:e instanceof st?gr:Array.isArray(e)?br:"object"===n&&isNaN(e)?mr:vr)(t,e)}],ra.interpolateArray=br;var lu=function(){return _},cu=ra.map({linear:lu,poly:Tr,quad:function(){return kr},cubic:function(){return Cr},sin:function(){return Dr},exp:function(){return Or},circle:function(){return Er},elastic:Ar,back:Nr,bounce:function(){return jr}}),fu=ra.map({"in":_,out:wr,"in-out":Mr,"out-in":function(t){return Mr(wr(t))}});ra.ease=function(t){var e=t.indexOf("-"),n=e>=0?t.slice(0,e):t,r=e>=0?t.slice(e+1):"in";return n=cu.get(n)||lu,r=fu.get(r)||_,xr(r(n.apply(null,ia.call(arguments,1))))},ra.interpolateHcl=Lr,ra.interpolateHsl=Fr,ra.interpolateLab=Pr,ra.interpolateRound=qr,ra.transform=function(t){var e=aa.createElementNS(ra.ns.prefix.svg,"g");return(ra.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new Ir(n?n.matrix:hu)})(t)},Ir.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var hu={a:1,b:0,c:0,d:1,e:0,f:0};ra.interpolateTransform=Rr,ra.layout={},ra.layout.bundle=function(){return function(t){for(var e=[],n=-1,r=t.length;++n<r;)e.push(Wr(t[n]));return e}},ra.layout.chord=function(){function t(){var t,l,f,h,p,d={},g=[],m=ra.range(o),v=[];for(n=[],r=[],t=0,h=-1;++h<o;){for(l=0,p=-1;++p<o;)l+=i[h][p];g.push(l),v.push(ra.range(o)),t+=l}for(a&&m.sort(function(t,e){return a(g[t],g[e])}),s&&v.forEach(function(t,e){t.sort(function(t,n){return s(i[e][t],i[e][n])})}),t=(La-c*o)/t,l=0,h=-1;++h<o;){for(f=l,p=-1;++p<o;){var y=m[h],_=v[y][p],b=i[y][_],x=l,w=l+=b*t;d[y+"-"+_]={index:y,subindex:_,startAngle:x,endAngle:w,value:b}}r[y]={index:y,startAngle:f,endAngle:l,value:(l-f)/t},l+=c}for(h=-1;++h<o;)for(p=h-1;++p<o;){var M=d[h+"-"+p],k=d[p+"-"+h];(M.value||k.value)&&n.push(M.value<k.value?{source:k,target:M}:{source:M,target:k})}u&&e()}function e(){n.sort(function(t,e){return u((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)})}var n,r,i,o,a,s,u,l={},c=0;return l.matrix=function(t){return arguments.length?(o=(i=t)&&i.length,n=r=null,l):i},l.padding=function(t){return arguments.length?(c=t,n=r=null,l):c},l.sortGroups=function(t){return arguments.length?(a=t,n=r=null,l):a},l.sortSubgroups=function(t){return arguments.length?(s=t,n=null,l):s},l.sortChords=function(t){return arguments.length?(u=t,n&&e(),l):u},l.chords=function(){return n||t(),n},l.groups=function(){return r||t(),r},l},ra.layout.force=function(){function t(t){return function(e,n,r,i){if(e.point!==t){var o=e.cx-t.x,a=e.cy-t.y,s=i-n,u=o*o+a*a;if(u>s*s/m){if(d>u){var l=e.charge/u;t.px-=o*l,t.py-=a*l}return!0}if(e.point&&u&&d>u){var l=e.pointCharge/u;t.px-=o*l,t.py-=a*l}}return!e.charge}}function e(t){t.px=ra.event.x,t.py=ra.event.y,s.resume()}var n,r,i,o,a,s={},u=ra.dispatch("start","tick","end"),l=[1,1],c=.9,f=pu,h=du,p=-30,d=gu,g=.1,m=.64,v=[],y=[];return s.tick=function(){if((r*=.99)<.005)return u.end({type:"end",alpha:r=0}),!0;var e,n,s,f,h,d,m,_,b,x=v.length,w=y.length;for(n=0;w>n;++n)s=y[n],f=s.source,h=s.target,_=h.x-f.x,b=h.y-f.y,(d=_*_+b*b)&&(d=r*o[n]*((d=Math.sqrt(d))-i[n])/d,_*=d,b*=d,h.x-=_*(m=f.weight/(h.weight+f.weight)),h.y-=b*m,f.x+=_*(m=1-m),f.y+=b*m);if((m=r*g)&&(_=l[0]/2,b=l[1]/2,n=-1,m))for(;++n<x;)s=v[n],s.x+=(_-s.x)*m,s.y+=(b-s.y)*m;if(p)for(Qr(e=ra.geom.quadtree(v),r,a),n=-1;++n<x;)(s=v[n]).fixed||e.visit(t(s));for(n=-1;++n<x;)s=v[n],s.fixed?(s.x=s.px,s.y=s.py):(s.x-=(s.px-(s.px=s.x))*c,s.y-=(s.py-(s.py=s.y))*c);u.tick({type:"tick",alpha:r})},s.nodes=function(t){return arguments.length?(v=t,s):v},s.links=function(t){return arguments.length?(y=t,s):y},s.size=function(t){return arguments.length?(l=t,s):l},s.linkDistance=function(t){return arguments.length?(f="function"==typeof t?t:+t,s):f},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(h="function"==typeof t?t:+t,s):h},s.friction=function(t){return arguments.length?(c=+t,s):c},s.charge=function(t){return arguments.length?(p="function"==typeof t?t:+t,s):p},s.chargeDistance=function(t){return arguments.length?(d=t*t,s):Math.sqrt(d)},s.gravity=function(t){return arguments.length?(g=+t,s):g},s.theta=function(t){return arguments.length?(m=t*t,s):Math.sqrt(m)},s.alpha=function(t){return arguments.length?(t=+t,r?r=t>0?t:0:t>0&&(u.start({type:"start",alpha:r=t}),ra.timer(s.tick)),s):r},s.start=function(){function t(t,r){if(!n){for(n=new Array(u),s=0;u>s;++s)n[s]=[];for(s=0;c>s;++s){var i=y[s];n[i.source.index].push(i.target),n[i.target.index].push(i.source)}}for(var o,a=n[e],s=-1,l=a.length;++s<l;)if(!isNaN(o=a[s][t]))return o;return Math.random()*r}var e,n,r,u=v.length,c=y.length,d=l[0],g=l[1];for(e=0;u>e;++e)(r=v[e]).index=e,r.weight=0;for(e=0;c>e;++e)r=y[e],"number"==typeof r.source&&(r.source=v[r.source]),"number"==typeof r.target&&(r.target=v[r.target]),++r.source.weight,++r.target.weight;for(e=0;u>e;++e)r=v[e],isNaN(r.x)&&(r.x=t("x",d)),isNaN(r.y)&&(r.y=t("y",g)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],"function"==typeof f)for(e=0;c>e;++e)i[e]=+f.call(this,y[e],e);else for(e=0;c>e;++e)i[e]=f;if(o=[],"function"==typeof h)for(e=0;c>e;++e)o[e]=+h.call(this,y[e],e);else for(e=0;c>e;++e)o[e]=h;if(a=[],"function"==typeof p)for(e=0;u>e;++e)a[e]=+p.call(this,v[e],e);else for(e=0;u>e;++e)a[e]=p;return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){return n||(n=ra.behavior.drag().origin(_).on("dragstart.force",Gr).on("drag.force",e).on("dragend.force",Zr)),arguments.length?void this.on("mouseover.force",Xr).on("mouseout.force",Kr).call(n):n},ra.rebind(s,u,"on")};var pu=20,du=1,gu=1/0;ra.layout.hierarchy=function(){function t(i){var o,a=[i],s=[];for(i.depth=0;null!=(o=a.pop());)if(s.push(o),(l=n.call(t,o,o.depth))&&(u=l.length)){for(var u,l,c;--u>=0;)a.push(c=l[u]),c.parent=o,c.depth=o.depth+1;r&&(o.value=0),o.children=l}else r&&(o.value=+r.call(t,o,o.depth)||0),delete o.children;return ei(i,function(t){var n,i;e&&(n=t.children)&&n.sort(e),r&&(i=t.parent)&&(i.value+=t.value)}),s}var e=ii,n=ni,r=ri;return t.sort=function(n){return arguments.length?(e=n,t):e},t.children=function(e){return arguments.length?(n=e,t):n},t.value=function(e){return arguments.length?(r=e,t):r},t.revalue=function(e){return r&&(ti(e,function(t){t.children&&(t.value=0)}),ei(e,function(e){var n;e.children||(e.value=+r.call(t,e,e.depth)||0),(n=e.parent)&&(n.value+=e.value)})),e},t},ra.layout.partition=function(){function t(e,n,r,i){var o=e.children;if(e.x=n,e.y=e.depth*i,e.dx=r,e.dy=i,o&&(a=o.length)){var a,s,u,l=-1;for(r=e.value?r/e.value:0;++l<a;)t(s=o[l],n,u=s.value*r,i),n+=u}}function e(t){var n=t.children,r=0;if(n&&(i=n.length))for(var i,o=-1;++o<i;)r=Math.max(r,e(n[o]));return 1+r}function n(n,o){var a=r.call(this,n,o);return t(a[0],0,i[0],i[1]/e(a[0])),a}var r=ra.layout.hierarchy(),i=[1,1];return n.size=function(t){return arguments.length?(i=t,n):i},Jr(n,r)},ra.layout.pie=function(){function t(a){var s,u=a.length,l=a.map(function(n,r){return+e.call(t,n,r)}),c=+("function"==typeof r?r.apply(this,arguments):r),f=("function"==typeof i?i.apply(this,arguments):i)-c,h=Math.min(Math.abs(f)/u,+("function"==typeof o?o.apply(this,arguments):o)),p=h*(0>f?-1:1),d=(f-u*p)/ra.sum(l),g=ra.range(u),m=[];return null!=n&&g.sort(n===mu?function(t,e){return l[e]-l[t]}:function(t,e){return n(a[t],a[e])}),g.forEach(function(t){m[t]={data:a[t],value:s=l[t],startAngle:c,endAngle:c+=s*d+p,padAngle:h}}),m}var e=Number,n=mu,r=0,i=La,o=0;return t.value=function(n){return arguments.length?(e=n,t):e},t.sort=function(e){return arguments.length?(n=e,t):n},t.startAngle=function(e){return arguments.length?(r=e,t):r},t.endAngle=function(e){return arguments.length?(i=e,t):i},t.padAngle=function(e){return arguments.length?(o=e,t):o},t};var mu={};ra.layout.stack=function(){function t(s,u){if(!(h=s.length))return s;var l=s.map(function(n,r){return e.call(t,n,r)}),c=l.map(function(e){return e.map(function(e,n){return[o.call(t,e,n),a.call(t,e,n)]})}),f=n.call(t,c,u);l=ra.permute(l,f),c=ra.permute(c,f);var h,p,d,g,m=r.call(t,c,u),v=l[0].length;for(d=0;v>d;++d)for(i.call(t,l[0][d],g=m[d],c[0][d][1]),p=1;h>p;++p)i.call(t,l[p][d],g+=c[p-1][d][1],c[p][d][1]);return s}var e=_,n=li,r=ci,i=ui,o=ai,a=si;return t.values=function(n){return arguments.length?(e=n,t):e},t.order=function(e){return arguments.length?(n="function"==typeof e?e:vu.get(e)||li,t):n},t.offset=function(e){return arguments.length?(r="function"==typeof e?e:yu.get(e)||ci,t):r},t.x=function(e){return arguments.length?(o=e,t):o},t.y=function(e){return arguments.length?(a=e,t):a},t.out=function(e){return arguments.length?(i=e,t):i},t};var vu=ra.map({"inside-out":function(t){var e,n,r=t.length,i=t.map(fi),o=t.map(hi),a=ra.range(r).sort(function(t,e){return i[t]-i[e]}),s=0,u=0,l=[],c=[];for(e=0;r>e;++e)n=a[e],u>s?(s+=o[n],l.push(n)):(u+=o[n],c.push(n));return c.reverse().concat(l)},reverse:function(t){return ra.range(t.length).reverse()},"default":li}),yu=ra.map({silhouette:function(t){var e,n,r,i=t.length,o=t[0].length,a=[],s=0,u=[];for(n=0;o>n;++n){for(e=0,r=0;i>e;e++)r+=t[e][n][1];r>s&&(s=r),a.push(r)}for(n=0;o>n;++n)u[n]=(s-a[n])/2;return u},wiggle:function(t){var e,n,r,i,o,a,s,u,l,c=t.length,f=t[0],h=f.length,p=[];for(p[0]=u=l=0,n=1;h>n;++n){for(e=0,i=0;c>e;++e)i+=t[e][n][1];for(e=0,o=0,s=f[n][0]-f[n-1][0];c>e;++e){for(r=0,a=(t[e][n][1]-t[e][n-1][1])/(2*s);e>r;++r)a+=(t[r][n][1]-t[r][n-1][1])/s;o+=a*t[e][n][1]}p[n]=u-=i?o/i*s:0,l>u&&(l=u)}for(n=0;h>n;++n)p[n]-=l;return p},expand:function(t){var e,n,r,i=t.length,o=t[0].length,a=1/i,s=[];for(n=0;o>n;++n){for(e=0,r=0;i>e;e++)r+=t[e][n][1];if(r)for(e=0;i>e;e++)t[e][n][1]/=r;else for(e=0;i>e;e++)t[e][n][1]=a}for(n=0;o>n;++n)s[n]=0;return s},zero:ci});ra.layout.histogram=function(){function t(t,o){for(var a,s,u=[],l=t.map(n,this),c=r.call(this,l,o),f=i.call(this,c,l,o),o=-1,h=l.length,p=f.length-1,d=e?1:1/h;++o<p;)a=u[o]=[],a.dx=f[o+1]-(a.x=f[o]),a.y=0;if(p>0)for(o=-1;++o<h;)s=l[o],s>=c[0]&&s<=c[1]&&(a=u[ra.bisect(f,s,1,p)-1],a.y+=d,a.push(t[o]));return u}var e=!0,n=Number,r=mi,i=di;return t.value=function(e){return arguments.length?(n=e,t):n},t.range=function(e){return arguments.length?(r=Tt(e),t):r},t.bins=function(e){return arguments.length?(i="number"==typeof e?function(t){return gi(t,e)}:Tt(e),t):i},t.frequency=function(n){return arguments.length?(e=!!n,t):e},t},ra.layout.pack=function(){function t(t,o){var a=n.call(this,t,o),s=a[0],u=i[0],l=i[1],c=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(s.x=s.y=0,ei(s,function(t){t.r=+c(t.value)}),ei(s,xi),r){var f=r*(e?1:Math.max(2*s.r/u,2*s.r/l))/2;ei(s,function(t){t.r+=f}),ei(s,xi),ei(s,function(t){t.r-=f})}return ki(s,u/2,l/2,e?1:1/Math.max(2*s.r/u,2*s.r/l)),a}var e,n=ra.layout.hierarchy().sort(vi),r=0,i=[1,1];return t.size=function(e){return arguments.length?(i=e,t):i},t.radius=function(n){return arguments.length?(e=null==n||"function"==typeof n?n:+n,t):e},t.padding=function(e){return arguments.length?(r=+e,t):r},Jr(t,n)},ra.layout.tree=function(){function t(t,i){var c=a.call(this,t,i),f=c[0],h=e(f);if(ei(h,n),h.parent.m=-h.z,ti(h,r),l)ti(f,o);else{var p=f,d=f,g=f;ti(f,function(t){t.x<p.x&&(p=t),t.x>d.x&&(d=t),t.depth>g.depth&&(g=t)});var m=s(p,d)/2-p.x,v=u[0]/(d.x+s(d,p)/2+m),y=u[1]/(g.depth||1);ti(f,function(t){t.x=(t.x+m)*v,t.y=t.depth*y})}return c}function e(t){for(var e,n={A:null,children:[t]},r=[n];null!=(e=r.pop());)for(var i,o=e.children,a=0,s=o.length;s>a;++a)r.push((o[a]=i={_:o[a],parent:e,children:(i=o[a].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=i);return n.children[0]}function n(t){var e=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(e.length){Ei(t);var o=(e[0].z+e[e.length-1].z)/2;r?(t.z=r.z+s(t._,r._),t.m=t.z-o):t.z=o}else r&&(t.z=r.z+s(t._,r._));t.parent.A=i(t,r,t.parent.A||n[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function i(t,e,n){if(e){for(var r,i=t,o=t,a=e,u=i.parent.children[0],l=i.m,c=o.m,f=a.m,h=u.m;a=Di(a),i=Ti(i),a&&i;)u=Ti(u),o=Di(o),o.a=t,r=a.z+f-i.z-l+s(a._,i._),r>0&&(Oi(Ai(a,t,n),t,r),l+=r,c+=r),f+=a.m,l+=i.m,h+=u.m,c+=o.m;a&&!Di(o)&&(o.t=a,o.m+=f-c),i&&!Ti(u)&&(u.t=i,u.m+=l-h,n=t)}return n}function o(t){t.x*=u[0],t.y=t.depth*u[1]}var a=ra.layout.hierarchy().sort(null).value(null),s=Si,u=[1,1],l=null;return t.separation=function(e){return arguments.length?(s=e,t):s},t.size=function(e){return arguments.length?(l=null==(u=e)?o:null,t):l?null:u},t.nodeSize=function(e){return arguments.length?(l=null==(u=e)?null:o,t):l?u:null},Jr(t,a)},ra.layout.cluster=function(){function t(t,o){var a,s=e.call(this,t,o),u=s[0],l=0;ei(u,function(t){var e=t.children;e&&e.length?(t.x=ji(e),t.y=Ni(e)):(t.x=a?l+=n(t,a):0,t.y=0,a=t)});var c=Li(u),f=Fi(u),h=c.x-n(c,f)/2,p=f.x+n(f,c)/2;return ei(u,i?function(t){t.x=(t.x-u.x)*r[0],t.y=(u.y-t.y)*r[1]}:function(t){t.x=(t.x-h)/(p-h)*r[0],t.y=(1-(u.y?t.y/u.y:1))*r[1]}),s}var e=ra.layout.hierarchy().sort(null).value(null),n=Si,r=[1,1],i=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(i=null==(r=e),t):i?null:r},t.nodeSize=function(e){return arguments.length?(i=null!=(r=e),t):i?r:null},Jr(t,e)},ra.layout.treemap=function(){function t(t,e){for(var n,r,i=-1,o=t.length;++i<o;)r=(n=t[i]).value*(0>e?0:e),n.area=isNaN(r)||0>=r?0:r}function e(n){var o=n.children;if(o&&o.length){var a,s,u,l=f(n),c=[],h=o.slice(),d=1/0,g="slice"===p?l.dx:"dice"===p?l.dy:"slice-dice"===p?1&n.depth?l.dy:l.dx:Math.min(l.dx,l.dy);for(t(h,l.dx*l.dy/n.value),c.area=0;(u=h.length)>0;)c.push(a=h[u-1]),c.area+=a.area,"squarify"!==p||(s=r(c,g))<=d?(h.pop(),d=s):(c.area-=c.pop().area,i(c,g,l,!1),g=Math.min(l.dx,l.dy),c.length=c.area=0,d=1/0);c.length&&(i(c,g,l,!0),c.length=c.area=0),o.forEach(e)}}function n(e){var r=e.children;if(r&&r.length){var o,a=f(e),s=r.slice(),u=[];for(t(s,a.dx*a.dy/e.value),u.area=0;o=s.pop();)u.push(o),u.area+=o.area,null!=o.z&&(i(u,o.z?a.dx:a.dy,a,!s.length),u.length=u.area=0);r.forEach(n)}}function r(t,e){for(var n,r=t.area,i=0,o=1/0,a=-1,s=t.length;++a<s;)(n=t[a].area)&&(o>n&&(o=n),n>i&&(i=n));return r*=r,e*=e,r?Math.max(e*i*d/r,r/(e*o*d)):1/0}function i(t,e,n,r){var i,o=-1,a=t.length,s=n.x,l=n.y,c=e?u(t.area/e):0;if(e==n.dx){for((r||c>n.dy)&&(c=n.dy);++o<a;)i=t[o],i.x=s,i.y=l,i.dy=c,s+=i.dx=Math.min(n.x+n.dx-s,c?u(i.area/c):0);i.z=!0,i.dx+=n.x+n.dx-s,n.y+=c,n.dy-=c}else{for((r||c>n.dx)&&(c=n.dx);++o<a;)i=t[o],i.x=s,i.y=l,i.dx=c,l+=i.dy=Math.min(n.y+n.dy-l,c?u(i.area/c):0);i.z=!1,i.dy+=n.y+n.dy-l,n.x+=c,n.dx-=c}}function o(r){var i=a||s(r),o=i[0];return o.x=0,o.y=0,o.dx=l[0],o.dy=l[1],a&&s.revalue(o),t([o],o.dx*o.dy/o.value),(a?n:e)(o),h&&(a=i),i}var a,s=ra.layout.hierarchy(),u=Math.round,l=[1,1],c=null,f=Pi,h=!1,p="squarify",d=.5*(1+Math.sqrt(5));
  
  return o.size=function(t){return arguments.length?(l=t,o):l},o.padding=function(t){function e(e){var n=t.call(o,e,e.depth);return null==n?Pi(e):qi(e,"number"==typeof n?[n,n,n,n]:n)}function n(e){return qi(e,t)}if(!arguments.length)return c;var r;return f=null==(c=t)?Pi:"function"==(r=typeof t)?e:"number"===r?(t=[t,t,t,t],n):n,o},o.round=function(t){return arguments.length?(u=t?Math.round:Number,o):u!=Number},o.sticky=function(t){return arguments.length?(h=t,a=null,o):h},o.ratio=function(t){return arguments.length?(d=t,o):d},o.mode=function(t){return arguments.length?(p=t+"",o):p},Jr(o,s)},ra.random={normal:function(t,e){var n=arguments.length;return 2>n&&(e=1),1>n&&(t=0),function(){var n,r,i;do n=2*Math.random()-1,r=2*Math.random()-1,i=n*n+r*r;while(!i||i>1);return t+e*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=ra.random.normal.apply(ra,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=ra.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;t>n;n++)e+=Math.random();return e}}},ra.scale={};var _u={floor:_,ceil:_};ra.scale.linear=function(){return Ui([0,1],[0,1],_r,!1)};var bu={s:1,g:1,p:1,r:1,e:1};ra.scale.log=function(){return Qi(ra.scale.linear().domain([0,1]),10,!0,[1,10])};var xu=ra.format(".0e"),wu={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};ra.scale.pow=function(){return Ji(ra.scale.linear(),1,[0,1])},ra.scale.sqrt=function(){return ra.scale.pow().exponent(.5)},ra.scale.ordinal=function(){return eo([],{t:"range",a:[[]]})},ra.scale.category10=function(){return ra.scale.ordinal().range(Mu)},ra.scale.category20=function(){return ra.scale.ordinal().range(ku)},ra.scale.category20b=function(){return ra.scale.ordinal().range(Cu)},ra.scale.category20c=function(){return ra.scale.ordinal().range(Su)};var Mu=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(bt),ku=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(bt),Cu=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(bt),Su=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(bt);ra.scale.quantile=function(){return no([],[])},ra.scale.quantize=function(){return ro(0,1,[0,1])},ra.scale.threshold=function(){return io([.5],[0,1])},ra.scale.identity=function(){return oo([0,1])},ra.svg={},ra.svg.arc=function(){function t(){var t=Math.max(0,+n.apply(this,arguments)),l=Math.max(0,+r.apply(this,arguments)),c=a.apply(this,arguments)-Pa,f=s.apply(this,arguments)-Pa,h=Math.abs(f-c),p=c>f?0:1;if(t>l&&(d=l,l=t,t=d),h>=Fa)return e(l,p)+(t?e(t,1-p):"")+"Z";var d,g,m,v,y,_,b,x,w,M,k,C,S=0,T=0,D=[];if((v=(+u.apply(this,arguments)||0)/2)&&(m=o===Tu?Math.sqrt(t*t+l*l):+o.apply(this,arguments),p||(T*=-1),l&&(T=nt(m/l*Math.sin(v))),t&&(S=nt(m/t*Math.sin(v)))),l){y=l*Math.cos(c+T),_=l*Math.sin(c+T),b=l*Math.cos(f-T),x=l*Math.sin(f-T);var O=Math.abs(f-c-2*T)<=ja?0:1;if(T&&ho(y,_,b,x)===p^O){var E=(c+f)/2;y=l*Math.cos(E),_=l*Math.sin(E),b=x=null}}else y=_=0;if(t){w=t*Math.cos(f-S),M=t*Math.sin(f-S),k=t*Math.cos(c+S),C=t*Math.sin(c+S);var A=Math.abs(c-f+2*S)<=ja?0:1;if(S&&ho(w,M,k,C)===1-p^A){var N=(c+f)/2;w=t*Math.cos(N),M=t*Math.sin(N),k=C=null}}else w=M=0;if((d=Math.min(Math.abs(l-t)/2,+i.apply(this,arguments)))>.001){g=l>t^p?0:1;var j=null==k?[w,M]:null==b?[y,_]:Ln([y,_],[k,C],[b,x],[w,M]),L=y-j[0],F=_-j[1],P=b-j[0],q=x-j[1],I=1/Math.sin(Math.acos((L*P+F*q)/(Math.sqrt(L*L+F*F)*Math.sqrt(P*P+q*q)))/2),$=Math.sqrt(j[0]*j[0]+j[1]*j[1]);if(null!=b){var z=Math.min(d,(l-$)/(I+1)),H=po(null==k?[w,M]:[k,C],[y,_],l,z,p),R=po([b,x],[w,M],l,z,p);d===z?D.push("M",H[0],"A",z,",",z," 0 0,",g," ",H[1],"A",l,",",l," 0 ",1-p^ho(H[1][0],H[1][1],R[1][0],R[1][1]),",",p," ",R[1],"A",z,",",z," 0 0,",g," ",R[0]):D.push("M",H[0],"A",z,",",z," 0 1,",g," ",R[0])}else D.push("M",y,",",_);if(null!=k){var Y=Math.min(d,(t-$)/(I-1)),U=po([y,_],[k,C],t,-Y,p),W=po([w,M],null==b?[y,_]:[b,x],t,-Y,p);d===Y?D.push("L",W[0],"A",Y,",",Y," 0 0,",g," ",W[1],"A",t,",",t," 0 ",p^ho(W[1][0],W[1][1],U[1][0],U[1][1]),",",1-p," ",U[1],"A",Y,",",Y," 0 0,",g," ",U[0]):D.push("L",W[0],"A",Y,",",Y," 0 0,",g," ",U[0])}else D.push("L",w,",",M)}else D.push("M",y,",",_),null!=b&&D.push("A",l,",",l," 0 ",O,",",p," ",b,",",x),D.push("L",w,",",M),null!=k&&D.push("A",t,",",t," 0 ",A,",",1-p," ",k,",",C);return D.push("Z"),D.join("")}function e(t,e){return"M0,"+t+"A"+t+","+t+" 0 1,"+e+" 0,"+-t+"A"+t+","+t+" 0 1,"+e+" 0,"+t}var n=so,r=uo,i=ao,o=Tu,a=lo,s=co,u=fo;return t.innerRadius=function(e){return arguments.length?(n=Tt(e),t):n},t.outerRadius=function(e){return arguments.length?(r=Tt(e),t):r},t.cornerRadius=function(e){return arguments.length?(i=Tt(e),t):i},t.padRadius=function(e){return arguments.length?(o=e==Tu?Tu:Tt(e),t):o},t.startAngle=function(e){return arguments.length?(a=Tt(e),t):a},t.endAngle=function(e){return arguments.length?(s=Tt(e),t):s},t.padAngle=function(e){return arguments.length?(u=Tt(e),t):u},t.centroid=function(){var t=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,e=(+a.apply(this,arguments)+ +s.apply(this,arguments))/2-Pa;return[Math.cos(e)*t,Math.sin(e)*t]},t};var Tu="auto";ra.svg.line=function(){return go(_)};var Du=ra.map({linear:mo,"linear-closed":vo,step:yo,"step-before":_o,"step-after":bo,basis:So,"basis-open":To,"basis-closed":Do,bundle:Oo,cardinal:Mo,"cardinal-open":xo,"cardinal-closed":wo,monotone:Fo});Du.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var Ou=[0,2/3,1/3,0],Eu=[0,1/3,2/3,0],Au=[0,1/6,2/3,1/6];ra.svg.line.radial=function(){var t=go(Po);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},_o.reverse=bo,bo.reverse=_o,ra.svg.area=function(){return qo(_)},ra.svg.area.radial=function(){var t=qo(Po);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},ra.svg.chord=function(){function t(t,s){var u=e(this,o,t,s),l=e(this,a,t,s);return"M"+u.p0+r(u.r,u.p1,u.a1-u.a0)+(n(u,l)?i(u.r,u.p1,u.r,u.p0):i(u.r,u.p1,l.r,l.p0)+r(l.r,l.p1,l.a1-l.a0)+i(l.r,l.p1,u.r,u.p0))+"Z"}function e(t,e,n,r){var i=e.call(t,n,r),o=s.call(t,i,r),a=u.call(t,i,r)-Pa,c=l.call(t,i,r)-Pa;return{r:o,a0:a,a1:c,p0:[o*Math.cos(a),o*Math.sin(a)],p1:[o*Math.cos(c),o*Math.sin(c)]}}function n(t,e){return t.a0==e.a0&&t.a1==e.a1}function r(t,e,n){return"A"+t+","+t+" 0 "+ +(n>ja)+",1 "+e}function i(t,e,n,r){return"Q 0,0 "+r}var o=_n,a=bn,s=Io,u=lo,l=co;return t.radius=function(e){return arguments.length?(s=Tt(e),t):s},t.source=function(e){return arguments.length?(o=Tt(e),t):o},t.target=function(e){return arguments.length?(a=Tt(e),t):a},t.startAngle=function(e){return arguments.length?(u=Tt(e),t):u},t.endAngle=function(e){return arguments.length?(l=Tt(e),t):l},t},ra.svg.diagonal=function(){function t(t,i){var o=e.call(this,t,i),a=n.call(this,t,i),s=(o.y+a.y)/2,u=[o,{x:o.x,y:s},{x:a.x,y:s},a];return u=u.map(r),"M"+u[0]+"C"+u[1]+" "+u[2]+" "+u[3]}var e=_n,n=bn,r=$o;return t.source=function(n){return arguments.length?(e=Tt(n),t):e},t.target=function(e){return arguments.length?(n=Tt(e),t):n},t.projection=function(e){return arguments.length?(r=e,t):r},t},ra.svg.diagonal.radial=function(){var t=ra.svg.diagonal(),e=$o,n=t.projection;return t.projection=function(t){return arguments.length?n(zo(e=t)):e},t},ra.svg.symbol=function(){function t(t,r){return(Nu.get(e.call(this,t,r))||Yo)(n.call(this,t,r))}var e=Ro,n=Ho;return t.type=function(n){return arguments.length?(e=Tt(n),t):e},t.size=function(e){return arguments.length?(n=Tt(e),t):n},t};var Nu=ra.map({circle:Yo,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*Lu)),n=e*Lu;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/ju),n=e*ju/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/ju),n=e*ju/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});ra.svg.symbolTypes=Nu.keys();var ju=Math.sqrt(3),Lu=Math.tan(30*qa);ka.transition=function(t){for(var e,n,r=Fu||++$u,i=Go(t),o=[],a=Pu||{time:Date.now(),ease:Sr,delay:0,duration:250},s=-1,u=this.length;++s<u;){o.push(e=[]);for(var l=this[s],c=-1,f=l.length;++c<f;)(n=l[c])&&Zo(n,c,i,r,a),e.push(n)}return Wo(o,i,r)},ka.interrupt=function(t){return this.each(null==t?qu:Uo(Go(t)))};var Fu,Pu,qu=Uo(Go()),Iu=[],$u=0;Iu.call=ka.call,Iu.empty=ka.empty,Iu.node=ka.node,Iu.size=ka.size,ra.transition=function(t,e){return t&&t.transition?Fu?t.transition(e):t:ra.selection().transition(t)},ra.transition.prototype=Iu,Iu.select=function(t){var e,n,r,i=this.id,o=this.namespace,a=[];t=O(t);for(var s=-1,u=this.length;++s<u;){a.push(e=[]);for(var l=this[s],c=-1,f=l.length;++c<f;)(r=l[c])&&(n=t.call(r,r.__data__,c,s))?("__data__"in r&&(n.__data__=r.__data__),Zo(n,c,o,i,r[o][i]),e.push(n)):e.push(null)}return Wo(a,o,i)},Iu.selectAll=function(t){var e,n,r,i,o,a=this.id,s=this.namespace,u=[];t=E(t);for(var l=-1,c=this.length;++l<c;)for(var f=this[l],h=-1,p=f.length;++h<p;)if(r=f[h]){o=r[s][a],n=t.call(r,r.__data__,h,l),u.push(e=[]);for(var d=-1,g=n.length;++d<g;)(i=n[d])&&Zo(i,d,s,a,o),e.push(i)}return Wo(u,s,a)},Iu.filter=function(t){var e,n,r,i=[];"function"!=typeof t&&(t=R(t));for(var o=0,a=this.length;a>o;o++){i.push(e=[]);for(var n=this[o],s=0,u=n.length;u>s;s++)(r=n[s])&&t.call(r,r.__data__,s,o)&&e.push(r)}return Wo(i,this.namespace,this.id)},Iu.tween=function(t,e){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(t):U(this,null==e?function(e){e[r][n].tween.remove(t)}:function(i){i[r][n].tween.set(t,e)})},Iu.attr=function(t,e){function n(){this.removeAttribute(s)}function r(){this.removeAttributeNS(s.space,s.local)}function i(t){return null==t?n:(t+="",function(){var e,n=this.getAttribute(s);return n!==t&&(e=a(n,t),function(t){this.setAttribute(s,e(t))})})}function o(t){return null==t?r:(t+="",function(){var e,n=this.getAttributeNS(s.space,s.local);return n!==t&&(e=a(n,t),function(t){this.setAttributeNS(s.space,s.local,e(t))})})}if(arguments.length<2){for(e in t)this.attr(e,t[e]);return this}var a="transform"==t?Rr:_r,s=ra.ns.qualify(t);return Bo(this,"attr."+t,e,s.local?o:i)},Iu.attrTween=function(t,e){function n(t,n){var r=e.call(this,t,n,this.getAttribute(i));return r&&function(t){this.setAttribute(i,r(t))}}function r(t,n){var r=e.call(this,t,n,this.getAttributeNS(i.space,i.local));return r&&function(t){this.setAttributeNS(i.space,i.local,r(t))}}var i=ra.ns.qualify(t);return this.tween("attr."+t,i.local?r:n)},Iu.style=function(t,e,r){function i(){this.style.removeProperty(t)}function o(e){return null==e?i:(e+="",function(){var i,o=n(this).getComputedStyle(this,null).getPropertyValue(t);return o!==e&&(i=_r(o,e),function(e){this.style.setProperty(t,i(e),r)})})}var a=arguments.length;if(3>a){if("string"!=typeof t){2>a&&(e="");for(r in t)this.style(r,t[r],e);return this}r=""}return Bo(this,"style."+t,e,o)},Iu.styleTween=function(t,e,r){function i(i,o){var a=e.call(this,i,o,n(this).getComputedStyle(this,null).getPropertyValue(t));return a&&function(e){this.style.setProperty(t,a(e),r)}}return arguments.length<3&&(r=""),this.tween("style."+t,i)},Iu.text=function(t){return Bo(this,"text",t,Vo)},Iu.remove=function(){var t=this.namespace;return this.each("end.transition",function(){var e;this[t].count<2&&(e=this.parentNode)&&e.removeChild(this)})},Iu.ease=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].ease:("function"!=typeof t&&(t=ra.ease.apply(ra,arguments)),U(this,function(r){r[n][e].ease=t}))},Iu.delay=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].delay:U(this,"function"==typeof t?function(r,i,o){r[n][e].delay=+t.call(r,r.__data__,i,o)}:(t=+t,function(r){r[n][e].delay=t}))},Iu.duration=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].duration:U(this,"function"==typeof t?function(r,i,o){r[n][e].duration=Math.max(1,t.call(r,r.__data__,i,o))}:(t=Math.max(1,t),function(r){r[n][e].duration=t}))},Iu.each=function(t,e){var n=this.id,r=this.namespace;if(arguments.length<2){var i=Pu,o=Fu;try{Fu=n,U(this,function(e,i,o){Pu=e[r][n],t.call(e,e.__data__,i,o)})}finally{Pu=i,Fu=o}}else U(this,function(i){var o=i[r][n];(o.event||(o.event=ra.dispatch("start","end","interrupt"))).on(t,e)});return this},Iu.transition=function(){for(var t,e,n,r,i=this.id,o=++$u,a=this.namespace,s=[],u=0,l=this.length;l>u;u++){s.push(t=[]);for(var e=this[u],c=0,f=e.length;f>c;c++)(n=e[c])&&(r=n[a][i],Zo(n,c,a,o,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),t.push(n)}return Wo(s,a,o)},ra.svg.axis=function(){function t(t){t.each(function(){var t,l=ra.select(this),c=this.__chart__||n,f=this.__chart__=n.copy(),h=null==u?f.ticks?f.ticks.apply(f,s):f.domain():u,p=null==e?f.tickFormat?f.tickFormat.apply(f,s):_:e,d=l.selectAll(".tick").data(h,f),g=d.enter().insert("g",".domain").attr("class","tick").style("opacity",Aa),m=ra.transition(d.exit()).style("opacity",Aa).remove(),v=ra.transition(d.order()).style("opacity",1),y=Math.max(i,0)+a,b=$i(f),x=l.selectAll(".domain").data([0]),w=(x.enter().append("path").attr("class","domain"),ra.transition(x));g.append("line"),g.append("text");var M,k,C,S,T=g.select("line"),D=v.select("line"),O=d.select("text").text(p),E=g.select("text"),A=v.select("text"),N="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(t=Xo,M="x",C="y",k="x2",S="y2",O.attr("dy",0>N?"0em":".71em").style("text-anchor","middle"),w.attr("d","M"+b[0]+","+N*o+"V0H"+b[1]+"V"+N*o)):(t=Ko,M="y",C="x",k="y2",S="x2",O.attr("dy",".32em").style("text-anchor",0>N?"end":"start"),w.attr("d","M"+N*o+","+b[0]+"H0V"+b[1]+"H"+N*o)),T.attr(S,N*i),E.attr(C,N*y),D.attr(k,0).attr(S,N*i),A.attr(M,0).attr(C,N*y),f.rangeBand){var j=f,L=j.rangeBand()/2;c=f=function(t){return j(t)+L}}else c.rangeBand?c=f:m.call(t,f,c);g.call(t,c,f),v.call(t,f,f)})}var e,n=ra.scale.linear(),r=zu,i=6,o=6,a=3,s=[10],u=null;return t.scale=function(e){return arguments.length?(n=e,t):n},t.orient=function(e){return arguments.length?(r=e in Hu?e+"":zu,t):r},t.ticks=function(){return arguments.length?(s=arguments,t):s},t.tickValues=function(e){return arguments.length?(u=e,t):u},t.tickFormat=function(n){return arguments.length?(e=n,t):e},t.tickSize=function(e){var n=arguments.length;return n?(i=+e,o=+arguments[n-1],t):i},t.innerTickSize=function(e){return arguments.length?(i=+e,t):i},t.outerTickSize=function(e){return arguments.length?(o=+e,t):o},t.tickPadding=function(e){return arguments.length?(a=+e,t):a},t.tickSubdivide=function(){return arguments.length&&t},t};var zu="bottom",Hu={top:1,right:1,bottom:1,left:1};ra.svg.brush=function(){function t(n){n.each(function(){var n=ra.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",o).on("touchstart.brush",o),a=n.selectAll(".background").data([0]);a.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),n.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var s=n.selectAll(".resize").data(g,_);s.exit().remove(),s.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Ru[t]}).append("rect").attr("x",function(t){return/[ew]$/.test(t)?-3:null}).attr("y",function(t){return/^[ns]/.test(t)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),s.style("display",t.empty()?"none":null);var u,f=ra.transition(n),h=ra.transition(a);l&&(u=$i(l),h.attr("x",u[0]).attr("width",u[1]-u[0]),r(f)),c&&(u=$i(c),h.attr("y",u[0]).attr("height",u[1]-u[0]),i(f)),e(f)})}function e(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+f[+/e$/.test(t)]+","+h[+/^s/.test(t)]+")"})}function r(t){t.select(".extent").attr("x",f[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",f[1]-f[0])}function i(t){t.select(".extent").attr("y",h[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function o(){function o(){32==ra.event.keyCode&&(O||(_=null,A[0]-=f[1],A[1]-=h[1],O=2),C())}function g(){32==ra.event.keyCode&&2==O&&(A[0]+=f[1],A[1]+=h[1],O=0,C())}function m(){var t=ra.mouse(x),n=!1;b&&(t[0]+=b[0],t[1]+=b[1]),O||(ra.event.altKey?(_||(_=[(f[0]+f[1])/2,(h[0]+h[1])/2]),A[0]=f[+(t[0]<_[0])],A[1]=h[+(t[1]<_[1])]):_=null),T&&v(t,l,0)&&(r(k),n=!0),D&&v(t,c,1)&&(i(k),n=!0),n&&(e(k),M({type:"brush",mode:O?"move":"resize"}))}function v(t,e,n){var r,i,o=$i(e),u=o[0],l=o[1],c=A[n],g=n?h:f,m=g[1]-g[0];return O&&(u-=c,l-=m+c),r=(n?d:p)?Math.max(u,Math.min(l,t[n])):t[n],O?i=(r+=c)+m:(_&&(c=Math.max(u,Math.min(l,2*_[n]-r))),r>c?(i=r,r=c):i=c),g[0]!=r||g[1]!=i?(n?s=null:a=null,g[0]=r,g[1]=i,!0):void 0}function y(){m(),k.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),ra.select("body").style("cursor",null),N.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),E(),M({type:"brushend"})}var _,b,x=this,w=ra.select(ra.event.target),M=u.of(x,arguments),k=ra.select(x),S=w.datum(),T=!/^(n|s)$/.test(S)&&l,D=!/^(e|w)$/.test(S)&&c,O=w.classed("extent"),E=X(x),A=ra.mouse(x),N=ra.select(n(x)).on("keydown.brush",o).on("keyup.brush",g);if(ra.event.changedTouches?N.on("touchmove.brush",m).on("touchend.brush",y):N.on("mousemove.brush",m).on("mouseup.brush",y),k.interrupt().selectAll("*").interrupt(),O)A[0]=f[0]-A[0],A[1]=h[0]-A[1];else if(S){var j=+/w$/.test(S),L=+/^n/.test(S);b=[f[1-j]-A[0],h[1-L]-A[1]],A[0]=f[j],A[1]=h[L]}else ra.event.altKey&&(_=A.slice());k.style("pointer-events","none").selectAll(".resize").style("display",null),ra.select("body").style("cursor",w.style("cursor")),M({type:"brushstart"}),m()}var a,s,u=T(t,"brushstart","brush","brushend"),l=null,c=null,f=[0,0],h=[0,0],p=!0,d=!0,g=Yu[0];return t.event=function(t){t.each(function(){var t=u.of(this,arguments),e={x:f,y:h,i:a,j:s},n=this.__chart__||e;this.__chart__=e,Fu?ra.select(this).transition().each("start.brush",function(){a=n.i,s=n.j,f=n.x,h=n.y,t({type:"brushstart"})}).tween("brush:brush",function(){var n=br(f,e.x),r=br(h,e.y);return a=s=null,function(i){f=e.x=n(i),h=e.y=r(i),t({type:"brush",mode:"resize"})}}).each("end.brush",function(){a=e.i,s=e.j,t({type:"brush",mode:"resize"}),t({type:"brushend"})}):(t({type:"brushstart"}),t({type:"brush",mode:"resize"}),t({type:"brushend"}))})},t.x=function(e){return arguments.length?(l=e,g=Yu[!l<<1|!c],t):l},t.y=function(e){return arguments.length?(c=e,g=Yu[!l<<1|!c],t):c},t.clamp=function(e){return arguments.length?(l&&c?(p=!!e[0],d=!!e[1]):l?p=!!e:c&&(d=!!e),t):l&&c?[p,d]:l?p:c?d:null},t.extent=function(e){var n,r,i,o,u;return arguments.length?(l&&(n=e[0],r=e[1],c&&(n=n[0],r=r[0]),a=[n,r],l.invert&&(n=l(n),r=l(r)),n>r&&(u=n,n=r,r=u),(n!=f[0]||r!=f[1])&&(f=[n,r])),c&&(i=e[0],o=e[1],l&&(i=i[1],o=o[1]),s=[i,o],c.invert&&(i=c(i),o=c(o)),i>o&&(u=i,i=o,o=u),(i!=h[0]||o!=h[1])&&(h=[i,o])),t):(l&&(a?(n=a[0],r=a[1]):(n=f[0],r=f[1],l.invert&&(n=l.invert(n),r=l.invert(r)),n>r&&(u=n,n=r,r=u))),c&&(s?(i=s[0],o=s[1]):(i=h[0],o=h[1],c.invert&&(i=c.invert(i),o=c.invert(o)),i>o&&(u=i,i=o,o=u))),l&&c?[[n,i],[r,o]]:l?[n,r]:c&&[i,o])},t.clear=function(){return t.empty()||(f=[0,0],h=[0,0],a=s=null),t},t.empty=function(){return!!l&&f[0]==f[1]||!!c&&h[0]==h[1]},ra.rebind(t,u,"on")};var Ru={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Yu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Uu=ls.format=gs.timeFormat,Wu=Uu.utc,Bu=Wu("%Y-%m-%dT%H:%M:%S.%LZ");Uu.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Qo:Bu,Qo.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},Qo.toString=Bu.toString,ls.second=zt(function(t){return new cs(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),ls.seconds=ls.second.range,ls.seconds.utc=ls.second.utc.range,ls.minute=zt(function(t){return new cs(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),ls.minutes=ls.minute.range,ls.minutes.utc=ls.minute.utc.range,ls.hour=zt(function(t){var e=t.getTimezoneOffset()/60;return new cs(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),ls.hours=ls.hour.range,ls.hours.utc=ls.hour.utc.range,ls.month=zt(function(t){return t=ls.day(t),t.setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),ls.months=ls.month.range,ls.months.utc=ls.month.utc.range;var Vu=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Gu=[[ls.second,1],[ls.second,5],[ls.second,15],[ls.second,30],[ls.minute,1],[ls.minute,5],[ls.minute,15],[ls.minute,30],[ls.hour,1],[ls.hour,3],[ls.hour,6],[ls.hour,12],[ls.day,1],[ls.day,2],[ls.week,1],[ls.month,1],[ls.month,3],[ls.year,1]],Zu=Uu.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",Oe]]),Xu={range:function(t,e,n){return ra.range(Math.ceil(t/n)*n,+e,n).map(ta)},floor:_,ceil:_};Gu.year=ls.year,ls.scale=function(){return Jo(ra.scale.linear(),Gu,Zu)};var Ku=Gu.map(function(t){return[t[0].utc,t[1]]}),Qu=Wu.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",Oe]]);Ku.year=ls.year.utc,ls.scale.utc=function(){return Jo(ra.scale.linear(),Ku,Qu)},ra.text=Dt(function(t){return t.responseText}),ra.json=function(t,e){return Ot(t,"application/json",ea,e)},ra.html=function(t,e){return Ot(t,"text/html",na,e)},ra.xml=Dt(function(t){return t.responseXML}),"function"==typeof define&&define.amd?define(ra):"object"==typeof e&&e.exports&&(e.exports=ra),this.d3=ra}()},{}],22:[function(t,e,n){"use strict";function r(){var t=new a.HandlebarsEnvironment;return h.extend(t,a),t.SafeString=u["default"],t.Exception=c["default"],t.Utils=h,t.escapeExpression=h.escapeExpression,t.VM=d,t.template=function(e){return d.template(e,t)},t}var i=function(t){return t&&t.__esModule?t:{"default":t}};n.__esModule=!0;var o=t("./handlebars/base"),a=i(o),s=t("./handlebars/safe-string"),u=i(s),l=t("./handlebars/exception"),c=i(l),f=t("./handlebars/utils"),h=i(f),p=t("./handlebars/runtime"),d=i(p),g=t("./handlebars/no-conflict"),m=i(g),v=r();v.create=r,m["default"](v),v["default"]=v,n["default"]=v,e.exports=n["default"]},{"./handlebars/base":23,"./handlebars/exception":24,"./handlebars/no-conflict":25,"./handlebars/runtime":26,"./handlebars/safe-string":27,"./handlebars/utils":28}],23:[function(t,e,n){"use strict";function r(t,e){this.helpers=t||{},this.partials=e||{},i(this)}function i(t){t.registerHelper("helperMissing",function(){if(1===arguments.length)return void 0;throw new c["default"]('Missing helper: "'+arguments[arguments.length-1].name+'"')}),t.registerHelper("blockHelperMissing",function(e,n){var r=n.inverse,i=n.fn;if(e===!0)return i(this);if(e===!1||null==e)return r(this);if(d(e))return e.length>0?(n.ids&&(n.ids=[n.name]),t.helpers.each(e,n)):r(this);if(n.data&&n.ids){var a=o(n.data);a.contextPath=u.appendContextPath(n.data.contextPath,n.name),n={data:a}}return i(e,n)}),t.registerHelper("each",function(t,e){function n(e,n,i){l&&(l.key=e,l.index=n,l.first=0===n,l.last=!!i,f&&(l.contextPath=f+e)),s+=r(t[e],{data:l,blockParams:u.blockParams([t[e],e],[f+e,null])})}if(!e)throw new c["default"]("Must pass iterator to #each");var r=e.fn,i=e.inverse,a=0,s="",l=void 0,f=void 0;if(e.data&&e.ids&&(f=u.appendContextPath(e.data.contextPath,e.ids[0])+"."),g(t)&&(t=t.call(this)),e.data&&(l=o(e.data)),t&&"object"==typeof t)if(d(t))for(var h=t.length;h>a;a++)n(a,a,a===t.length-1);else{var p=void 0;for(var m in t)t.hasOwnProperty(m)&&(p&&n(p,a-1),p=m,a++);p&&n(p,a-1,!0)}return 0===a&&(s=i(this)),s}),t.registerHelper("if",function(t,e){return g(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||u.isEmpty(t)?e.inverse(this):e.fn(this)}),t.registerHelper("unless",function(e,n){return t.helpers["if"].call(this,e,{fn:n.inverse,inverse:n.fn,hash:n.hash})}),t.registerHelper("with",function(t,e){g(t)&&(t=t.call(this));var n=e.fn;if(u.isEmpty(t))return e.inverse(this);if(e.data&&e.ids){var r=o(e.data);r.contextPath=u.appendContextPath(e.data.contextPath,e.ids[0]),e={data:r}}return n(t,e)}),t.registerHelper("log",function(e,n){var r=n.data&&null!=n.data.level?parseInt(n.data.level,10):1;t.log(r,e)}),t.registerHelper("lookup",function(t,e){return t&&t[e]})}function o(t){var e=u.extend({},t);return e._parent=t,e}var a=function(t){return t&&t.__esModule?t:{"default":t}};n.__esModule=!0,n.HandlebarsEnvironment=r,n.createFrame=o;var s=t("./utils"),u=a(s),l=t("./exception"),c=a(l),f="3.0.1";n.VERSION=f;var h=6;n.COMPILER_REVISION=h;var p={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1"};n.REVISION_CHANGES=p;var d=u.isArray,g=u.isFunction,m=u.toString,v="[object Object]";r.prototype={constructor:r,logger:y,log:_,registerHelper:function(t,e){if(m.call(t)===v){if(e)throw new c["default"]("Arg not supported with multiple helpers");u.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if(m.call(t)===v)u.extend(this.partials,t);else{if("undefined"==typeof e)throw new c["default"]("Attempting to register a partial as undefined");this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]}};var y={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:1,log:function(t,e){if("undefined"!=typeof console&&y.level<=t){var n=y.methodMap[t];(console[n]||console.log).call(console,e)}}};n.logger=y;var _=y.log;n.log=_},{"./exception":24,"./utils":28}],24:[function(t,e,n){"use strict";function r(t,e){var n=e&&e.loc,o=void 0,a=void 0;n&&(o=n.start.line,a=n.start.column,t+=" - "+o+":"+a);for(var s=Error.prototype.constructor.call(this,t),u=0;u<i.length;u++)this[i[u]]=s[i[u]];Error.captureStackTrace&&Error.captureStackTrace(this,r),n&&(this.lineNumber=o,this.column=a)}n.__esModule=!0;var i=["description","fileName","lineNumber","message","name","number","stack"];r.prototype=new Error,n["default"]=r,e.exports=n["default"]},{}],25:[function(t,e,n){(function(t){"use strict";n.__esModule=!0,n["default"]=function(e){var n="undefined"!=typeof t?t:window,r=n.Handlebars;e.noConflict=function(){n.Handlebars===e&&(n.Handlebars=r)}},e.exports=n["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],26:[function(t,e,n){"use strict";function r(t){var e=t&&t[0]||1,n=g.COMPILER_REVISION;if(e!==n){if(n>e){var r=g.REVISION_CHANGES[n],i=g.REVISION_CHANGES[e];throw new d["default"]("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+i+").")}throw new d["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}}function i(t,e){function n(n,r,i){i.hash&&(r=h.extend({},r,i.hash)),n=e.VM.resolvePartial.call(this,n,r,i);var o=e.VM.invokePartial.call(this,n,r,i);if(null==o&&e.compile&&(i.partials[i.name]=e.compile(n,t.compilerOptions,e),o=i.partials[i.name](r,i)),null!=o){if(i.indent){for(var a=o.split("\n"),s=0,u=a.length;u>s&&(a[s]||s+1!==u);s++)a[s]=i.indent+a[s];o=a.join("\n")}return o}throw new d["default"]("The partial "+i.name+" could not be compiled when running in runtime-only mode")}function r(e){var n=void 0===arguments[1]?{}:arguments[1],o=n.data;r._setup(n),!n.partial&&t.useData&&(o=l(e,o));var a=void 0,s=t.useBlockParams?[]:void 0;return t.useDepths&&(a=n.depths?[e].concat(n.depths):[e]),t.main.call(i,e,i.helpers,i.partials,o,s,a)}if(!e)throw new d["default"]("No environment passed to template");if(!t||!t.main)throw new d["default"]("Unknown template object: "+typeof t);e.VM.checkRevision(t.compiler);var i={strict:function(t,e){if(!(e in t))throw new d["default"]('"'+e+'" not defined in '+t);return t[e]},lookup:function(t,e){for(var n=t.length,r=0;n>r;r++)if(t[r]&&null!=t[r][e])return t[r][e]},lambda:function(t,e){return"function"==typeof t?t.call(e):t},escapeExpression:h.escapeExpression,invokePartial:n,fn:function(e){return t[e]},programs:[],program:function(t,e,n,r,i){var a=this.programs[t],s=this.fn(t);return e||i||r||n?a=o(this,t,s,e,n,r,i):a||(a=this.programs[t]=o(this,t,s)),a},data:function(t,e){for(;t&&e--;)t=t._parent;return t},merge:function(t,e){var n=t||e;return t&&e&&t!==e&&(n=h.extend({},e,t)),n},noop:e.VM.noop,compilerInfo:t.compiler};return r.isTop=!0,r._setup=function(n){n.partial?(i.helpers=n.helpers,i.partials=n.partials):(i.helpers=i.merge(n.helpers,e.helpers),t.usePartial&&(i.partials=i.merge(n.partials,e.partials)))},r._child=function(e,n,r,a){if(t.useBlockParams&&!r)throw new d["default"]("must pass block params");if(t.useDepths&&!a)throw new d["default"]("must pass parent depths");return o(i,e,t[e],n,0,r,a)},r}function o(t,e,n,r,i,o,a){function s(e){var i=void 0===arguments[1]?{}:arguments[1];return n.call(t,e,t.helpers,t.partials,i.data||r,o&&[i.blockParams].concat(o),a&&[e].concat(a))}return s.program=e,s.depth=a?a.length:0,s.blockParams=i||0,s}function a(t,e,n){return t?t.call||n.name||(n.name=t,t=n.partials[t]):t=n.partials[n.name],t}function s(t,e,n){if(n.partial=!0,void 0===t)throw new d["default"]("The partial "+n.name+" could not be found");return t instanceof Function?t(e,n):void 0}function u(){return""}function l(t,e){return e&&"root"in e||(e=e?g.createFrame(e):{},e.root=t),e}var c=function(t){return t&&t.__esModule?t:{"default":t}};n.__esModule=!0,n.checkRevision=r,n.template=i,n.wrapProgram=o,n.resolvePartial=a,n.invokePartial=s,n.noop=u;var f=t("./utils"),h=c(f),p=t("./exception"),d=c(p),g=t("./base")},{"./base":23,"./exception":24,"./utils":28}],27:[function(t,e,n){"use strict";function r(t){this.string=t}n.__esModule=!0,r.prototype.toString=r.prototype.toHTML=function(){return""+this.string},n["default"]=r,e.exports=n["default"]},{}],28:[function(t,e,n){"use strict";function r(t){return c[t]}function i(t){for(var e=1;e<arguments.length;e++)for(var n in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],n)&&(t[n]=arguments[e][n]);return t}function o(t,e){for(var n=0,r=t.length;r>n;n++)if(t[n]===e)return n;return-1}function a(t){if("string"!=typeof t){if(t&&t.toHTML)return t.toHTML();if(null==t)return"";if(!t)return t+"";t=""+t}return h.test(t)?t.replace(f,r):t}function s(t){return t||0===t?g(t)&&0===t.length?!0:!1:!0}function u(t,e){return t.path=e,t}function l(t,e){return(t?t+".":"")+e}n.__esModule=!0,n.extend=i,n.indexOf=o,n.escapeExpression=a,n.isEmpty=s,n.blockParams=u,n.appendContextPath=l;var c={
  "&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},f=/[&<>"'`]/g,h=/[&<>"'`]/,p=Object.prototype.toString;n.toString=p;var d=function(t){return"function"==typeof t};d(/x/)&&(n.isFunction=d=function(t){return"function"==typeof t&&"[object Function]"===p.call(t)});var d;n.isFunction=d;var g=Array.isArray||function(t){return t&&"object"==typeof t?"[object Array]"===p.call(t):!1};n.isArray=g},{}],29:[function(t,e,n){e.exports=t("./dist/cjs/handlebars.runtime")["default"]},{"./dist/cjs/handlebars.runtime":22}],30:[function(t,e,n){e.exports=t("handlebars/runtime")["default"]},{"handlebars/runtime":29}],31:[function(t,e,n){/*!
   * jQuery JavaScript Library v2.1.4
   * http://jquery.com/
   *
   * Includes Sizzle.js
   * http://sizzlejs.com/
   *
   * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
   * Released under the MIT license
   * http://jquery.org/license
   *
   * Date: 2015-04-28T16:01Z
   */
  !function(t,n){"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e="length"in t&&t.length,n=J.type(t);return"function"===n||J.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function r(t,e,n){if(J.isFunction(e))return J.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return J.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(st.test(e))return J.filter(e,t,n);e=J.filter(e,t)}return J.grep(t,function(t){return B.call(e,t)>=0!==n})}function i(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function o(t){var e=dt[t]={};return J.each(t.match(pt)||[],function(t,n){e[n]=!0}),e}function a(){K.removeEventListener("DOMContentLoaded",a,!1),t.removeEventListener("load",a,!1),J.ready()}function s(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=J.expando+s.uid++}function u(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(bt,"-$1").toLowerCase(),n=t.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:_t.test(n)?J.parseJSON(n):n}catch(i){}yt.set(t,e,n)}else n=void 0;return n}function l(){return!0}function c(){return!1}function f(){try{return K.activeElement}catch(t){}}function h(t,e){return J.nodeName(t,"table")&&J.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function p(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function d(t){var e=Pt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function g(t,e){for(var n=0,r=t.length;r>n;n++)vt.set(t[n],"globalEval",!e||vt.get(e[n],"globalEval"))}function m(t,e){var n,r,i,o,a,s,u,l;if(1===e.nodeType){if(vt.hasData(t)&&(o=vt.access(t),a=vt.set(e,o),l=o.events)){delete a.handle,a.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)J.event.add(e,i,l[i][n])}yt.hasData(t)&&(s=yt.access(t),u=J.extend({},s),yt.set(e,u))}}function v(t,e){var n=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&J.nodeName(t,e)?J.merge([t],n):n}function y(t,e){var n=e.nodeName.toLowerCase();"input"===n&&kt.test(t.type)?e.checked=t.checked:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}function _(e,n){var r,i=J(n.createElement(e)).appendTo(n.body),o=t.getDefaultComputedStyle&&(r=t.getDefaultComputedStyle(i[0]))?r.display:J.css(i[0],"display");return i.detach(),o}function b(t){var e=K,n=zt[t];return n||(n=_(t,e),"none"!==n&&n||($t=($t||J("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=$t[0].contentDocument,e.write(),e.close(),n=_(t,e),$t.detach()),zt[t]=n),n}function x(t,e,n){var r,i,o,a,s=t.style;return n=n||Yt(t),n&&(a=n.getPropertyValue(e)||n[e]),n&&(""!==a||J.contains(t.ownerDocument,t)||(a=J.style(t,e)),Rt.test(a)&&Ht.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function w(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function M(t,e){if(e in t)return e;for(var n=e[0].toUpperCase()+e.slice(1),r=e,i=Zt.length;i--;)if(e=Zt[i]+n,e in t)return e;return r}function k(t,e,n){var r=Wt.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function C(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=J.css(t,n+wt[o],!0,i)),r?("content"===n&&(a-=J.css(t,"padding"+wt[o],!0,i)),"margin"!==n&&(a-=J.css(t,"border"+wt[o]+"Width",!0,i))):(a+=J.css(t,"padding"+wt[o],!0,i),"padding"!==n&&(a+=J.css(t,"border"+wt[o]+"Width",!0,i)));return a}function S(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=Yt(t),a="border-box"===J.css(t,"boxSizing",!1,o);if(0>=i||null==i){if(i=x(t,e,o),(0>i||null==i)&&(i=t.style[e]),Rt.test(i))return i;r=a&&(X.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+C(t,e,n||(a?"border":"content"),r,o)+"px"}function T(t,e){for(var n,r,i,o=[],a=0,s=t.length;s>a;a++)r=t[a],r.style&&(o[a]=vt.get(r,"olddisplay"),n=r.style.display,e?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Mt(r)&&(o[a]=vt.access(r,"olddisplay",b(r.nodeName)))):(i=Mt(r),"none"===n&&i||vt.set(r,"olddisplay",i?n:J.css(r,"display"))));for(a=0;s>a;a++)r=t[a],r.style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[a]||"":"none"));return t}function D(t,e,n,r,i){return new D.prototype.init(t,e,n,r,i)}function O(){return setTimeout(function(){Xt=void 0}),Xt=J.now()}function E(t,e){var n,r=0,i={height:t};for(e=e?1:0;4>r;r+=2-e)n=wt[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function A(t,e,n){for(var r,i=(ne[e]||[]).concat(ne["*"]),o=0,a=i.length;a>o;o++)if(r=i[o].call(n,e,t))return r}function N(t,e,n){var r,i,o,a,s,u,l,c,f=this,h={},p=t.style,d=t.nodeType&&Mt(t),g=vt.get(t,"fxshow");n.queue||(s=J._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,J.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],l=J.css(t,"display"),c="none"===l?vt.get(t,"olddisplay")||b(t.nodeName):l,"inline"===c&&"none"===J.css(t,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in e)if(i=e[r],Qt.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(d?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;d=!0}h[r]=g&&g[r]||J.style(t,r)}else l=void 0;if(J.isEmptyObject(h))"inline"===("none"===l?b(t.nodeName):l)&&(p.display=l);else{g?"hidden"in g&&(d=g.hidden):g=vt.access(t,"fxshow",{}),o&&(g.hidden=!d),d?J(t).show():f.done(function(){J(t).hide()}),f.done(function(){var e;vt.remove(t,"fxshow");for(e in h)J.style(t,e,h[e])});for(r in h)a=A(d?g[r]:0,r,f),r in g||(g[r]=a.start,d&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function j(t,e){var n,r,i,o,a;for(n in t)if(r=J.camelCase(n),i=e[r],o=t[n],J.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),a=J.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete t[r];for(n in o)n in t||(t[n]=o[n],e[n]=i)}else e[r]=i}function L(t,e,n){var r,i,o=0,a=ee.length,s=J.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=Xt||O(),n=Math.max(0,l.startTime+l.duration-e),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;u>a;a++)l.tweens[a].run(o);return s.notifyWith(t,[l,o,n]),1>o&&u?n:(s.resolveWith(t,[l]),!1)},l=s.promise({elem:t,props:J.extend({},e),opts:J.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Xt||O(),duration:n.duration,tweens:[],createTween:function(e,n){var r=J.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(r),r},stop:function(e){var n=0,r=e?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return e?s.resolveWith(t,[l,e]):s.rejectWith(t,[l,e]),this}}),c=l.props;for(j(c,l.opts.specialEasing);a>o;o++)if(r=ee[o].call(l,t,c,l.opts))return r;return J.map(c,A,l),J.isFunction(l.opts.start)&&l.opts.start.call(t,l),J.fx.timer(J.extend(u,{elem:t,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function F(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(pt)||[];if(J.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function P(t,e,n,r){function i(s){var u;return o[s]=!0,J.each(t[s]||[],function(t,s){var l=s(e,n,r);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(e.dataTypes.unshift(l),i(l),!1)}),u}var o={},a=t===_e;return i(e.dataTypes[0])||!o["*"]&&i("*")}function q(t,e){var n,r,i=J.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&J.extend(!0,t,r),t}function I(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}return o?(o!==u[0]&&u.unshift(o),n[o]):void 0}function $(t,e,n,r){var i,o,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=l[u+" "+o]||l["* "+o],!a)for(i in l)if(s=i.split(" "),s[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){a===!0?a=l[i]:l[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&t["throws"])e=a(e);else try{e=a(e)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}function z(t,e,n,r){var i;if(J.isArray(e))J.each(e,function(e,i){n||ke.test(t)?r(t,i):z(t+"["+("object"==typeof i?e:"")+"]",i,n,r)});else if(n||"object"!==J.type(e))r(t,e);else for(i in e)z(t+"["+i+"]",e[i],n,r)}function H(t){return J.isWindow(t)?t:9===t.nodeType&&t.defaultView}var R=[],Y=R.slice,U=R.concat,W=R.push,B=R.indexOf,V={},G=V.toString,Z=V.hasOwnProperty,X={},K=t.document,Q="2.1.4",J=function(t,e){return new J.fn.init(t,e)},tt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,et=/^-ms-/,nt=/-([\da-z])/gi,rt=function(t,e){return e.toUpperCase()};J.fn=J.prototype={jquery:Q,constructor:J,selector:"",length:0,toArray:function(){return Y.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:Y.call(this)},pushStack:function(t){var e=J.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return J.each(this,t,e)},map:function(t){return this.pushStack(J.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(Y.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:W,sort:R.sort,splice:R.splice},J.extend=J.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||J.isFunction(a)||(a={}),s===u&&(a=this,s--);u>s;s++)if(null!=(t=arguments[s]))for(e in t)n=a[e],r=t[e],a!==r&&(l&&r&&(J.isPlainObject(r)||(i=J.isArray(r)))?(i?(i=!1,o=n&&J.isArray(n)?n:[]):o=n&&J.isPlainObject(n)?n:{},a[e]=J.extend(l,o,r)):void 0!==r&&(a[e]=r));return a},J.extend({expando:"jQuery"+(Q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===J.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!J.isArray(t)&&t-parseFloat(t)+1>=0},isPlainObject:function(t){return"object"!==J.type(t)||t.nodeType||J.isWindow(t)?!1:t.constructor&&!Z.call(t.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?V[G.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;t=J.trim(t),t&&(1===t.indexOf("use strict")?(e=K.createElement("script"),e.text=t,K.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(et,"ms-").replace(nt,rt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,r){var i,o=0,a=t.length,s=n(t);if(r){if(s)for(;a>o&&(i=e.apply(t[o],r),i!==!1);o++);else for(o in t)if(i=e.apply(t[o],r),i===!1)break}else if(s)for(;a>o&&(i=e.call(t[o],o,t[o]),i!==!1);o++);else for(o in t)if(i=e.call(t[o],o,t[o]),i===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(tt,"")},makeArray:function(t,e){var r=e||[];return null!=t&&(n(Object(t))?J.merge(r,"string"==typeof t?[t]:t):W.call(r,t)),r},inArray:function(t,e,n){return null==e?-1:B.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;n>r;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r,i=[],o=0,a=t.length,s=!n;a>o;o++)r=!e(t[o],o),r!==s&&i.push(t[o]);return i},map:function(t,e,r){var i,o=0,a=t.length,s=n(t),u=[];if(s)for(;a>o;o++)i=e(t[o],o,r),null!=i&&u.push(i);else for(o in t)i=e(t[o],o,r),null!=i&&u.push(i);return U.apply([],u)},guid:1,proxy:function(t,e){var n,r,i;return"string"==typeof e&&(n=t[e],e=t,t=n),J.isFunction(t)?(r=Y.call(arguments,2),i=function(){return t.apply(e||this,r.concat(Y.call(arguments)))},i.guid=t.guid=t.guid||J.guid++,i):void 0},now:Date.now,support:X}),J.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){V["[object "+e+"]"]=e.toLowerCase()});var it=/*!
   * Sizzle CSS Selector Engine v2.2.0-pre
   * http://sizzlejs.com/
   *
   * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
   * Released under the MIT license
   * http://jquery.org/license
   *
   * Date: 2014-12-16
   */
  function(t){function e(t,e,n,r){var i,o,a,s,u,l,f,p,d,g;if((e?e.ownerDocument||e:z)!==N&&A(e),e=e||N,n=n||[],s=e.nodeType,"string"!=typeof t||!t||1!==s&&9!==s&&11!==s)return n;if(!r&&L){if(11!==s&&(i=yt.exec(t)))if(a=i[1]){if(9===s){if(o=e.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(a))&&I(e,o)&&o.id===a)return n.push(o),n}else{if(i[2])return Q.apply(n,e.getElementsByTagName(t)),n;if((a=i[3])&&x.getElementsByClassName)return Q.apply(n,e.getElementsByClassName(a)),n}if(x.qsa&&(!F||!F.test(t))){if(p=f=$,d=e,g=1!==s&&t,1===s&&"object"!==e.nodeName.toLowerCase()){for(l=C(t),(f=e.getAttribute("id"))?p=f.replace(bt,"\\$&"):e.setAttribute("id",p),p="[id='"+p+"'] ",u=l.length;u--;)l[u]=p+h(l[u]);d=_t.test(t)&&c(e.parentNode)||e,g=l.join(",")}if(g)try{return Q.apply(n,d.querySelectorAll(g)),n}catch(m){}finally{f||e.removeAttribute("id")}}}return T(t.replace(ut,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>w.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[$]=!0,t}function i(t){var e=N.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),r=t.length;r--;)w.attrHandle[n[r]]=e}function a(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||V)-(~t.sourceIndex||V);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function u(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function l(t){return r(function(e){return e=+e,r(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function f(){}function h(t){for(var e=0,n=t.length,r="";n>e;e++)r+=t[e].value;return r}function p(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=R++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,a){var s,u,l=[H,o];if(a){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,a))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(u=e[$]||(e[$]={}),(s=u[r])&&s[0]===H&&s[1]===o)return l[2]=s[2];if(u[r]=l,l[2]=t(e,n,a))return!0}}}function d(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function g(t,n,r){for(var i=0,o=n.length;o>i;i++)e(t,n[i],r);return r}function m(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;u>s;s++)(o=t[s])&&(!n||n(o,r,i))&&(a.push(o),l&&e.push(s));return a}function v(t,e,n,i,o,a){return i&&!i[$]&&(i=v(i)),o&&!o[$]&&(o=v(o,a)),r(function(r,a,s,u){var l,c,f,h=[],p=[],d=a.length,v=r||g(e||"*",s.nodeType?[s]:s,[]),y=!t||!r&&e?v:m(v,h,t,s,u),_=n?o||(r?t:d||i)?[]:a:y;if(n&&n(y,_,s,u),i)for(l=m(_,p),i(l,[],s,u),c=l.length;c--;)(f=l[c])&&(_[p[c]]=!(y[p[c]]=f));if(r){if(o||t){if(o){for(l=[],c=_.length;c--;)(f=_[c])&&l.push(y[c]=f);o(null,_=[],l,u)}for(c=_.length;c--;)(f=_[c])&&(l=o?tt(r,f):h[c])>-1&&(r[l]=!(a[l]=f))}}else _=m(_===a?_.splice(d,_.length):_),o?o(null,a,_,u):Q.apply(a,_)})}function y(t){for(var e,n,r,i=t.length,o=w.relative[t[0].type],a=o||w.relative[" "],s=o?1:0,u=p(function(t){return t===e},a,!0),l=p(function(t){return tt(e,t)>-1},a,!0),c=[function(t,n,r){var i=!o&&(r||n!==D)||((e=n).nodeType?u(t,n,r):l(t,n,r));return e=null,i}];i>s;s++)if(n=w.relative[t[s].type])c=[p(d(c),n)];else{if(n=w.filter[t[s].type].apply(null,t[s].matches),n[$]){for(r=++s;i>r&&!w.relative[t[r].type];r++);return v(s>1&&d(c),s>1&&h(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(ut,"$1"),n,r>s&&y(t.slice(s,r)),i>r&&y(t=t.slice(r)),i>r&&h(t))}c.push(n)}return d(c)}function _(t,n){var i=n.length>0,o=t.length>0,a=function(r,a,s,u,l){var c,f,h,p=0,d="0",g=r&&[],v=[],y=D,_=r||o&&w.find.TAG("*",l),b=H+=null==y?1:Math.random()||.1,x=_.length;for(l&&(D=a!==N&&a);d!==x&&null!=(c=_[d]);d++){if(o&&c){for(f=0;h=t[f++];)if(h(c,a,s)){u.push(c);break}l&&(H=b)}i&&((c=!h&&c)&&p--,r&&g.push(c))}if(p+=d,i&&d!==p){for(f=0;h=n[f++];)h(g,v,a,s);if(r){if(p>0)for(;d--;)g[d]||v[d]||(v[d]=X.call(u));v=m(v)}Q.apply(u,v),l&&!r&&v.length>0&&p+n.length>1&&e.uniqueSort(u)}return l&&(H=b,D=y),g};return i?r(a):a}var b,x,w,M,k,C,S,T,D,O,E,A,N,j,L,F,P,q,I,$="sizzle"+1*new Date,z=t.document,H=0,R=0,Y=n(),U=n(),W=n(),B=function(t,e){return t===e&&(E=!0),0},V=1<<31,G={}.hasOwnProperty,Z=[],X=Z.pop,K=Z.push,Q=Z.push,J=Z.slice,tt=function(t,e){for(var n=0,r=t.length;r>n;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",it=rt.replace("w","w#"),ot="\\["+nt+"*("+rt+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+nt+"*\\]",at=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ot+")*)|.*)\\)|)",st=new RegExp(nt+"+","g"),ut=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),lt=new RegExp("^"+nt+"*,"+nt+"*"),ct=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ft=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),ht=new RegExp(at),pt=new RegExp("^"+it+"$"),dt={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt.replace("w","w*")+")"),ATTR:new RegExp("^"+ot),PSEUDO:new RegExp("^"+at),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},gt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_t=/[+~]/,bt=/'|\\/g,xt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),wt=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Mt=function(){A()};try{Q.apply(Z=J.call(z.childNodes),z.childNodes),Z[z.childNodes.length].nodeType}catch(kt){Q={apply:Z.length?function(t,e){K.apply(t,J.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}x=e.support={},k=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},A=e.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:z;return r!==N&&9===r.nodeType&&r.documentElement?(N=r,j=r.documentElement,n=r.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",Mt,!1):n.attachEvent&&n.attachEvent("onunload",Mt)),L=!k(r),x.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),x.getElementsByTagName=i(function(t){return t.appendChild(r.createComment("")),!t.getElementsByTagName("*").length}),x.getElementsByClassName=vt.test(r.getElementsByClassName),x.getById=i(function(t){return j.appendChild(t).id=$,!r.getElementsByName||!r.getElementsByName($).length}),x.getById?(w.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&L){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},w.filter.ID=function(t){var e=t.replace(xt,wt);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var e=t.replace(xt,wt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),w.find.TAG=x.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):x.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},w.find.CLASS=x.getElementsByClassName&&function(t,e){return L?e.getElementsByClassName(t):void 0},P=[],F=[],(x.qsa=vt.test(r.querySelectorAll))&&(i(function(t){j.appendChild(t).innerHTML="<a id='"+$+"'></a><select id='"+$+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||F.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+$+"-]").length||F.push("~="),t.querySelectorAll(":checked").length||F.push(":checked"),t.querySelectorAll("a#"+$+"+*").length||F.push(".#.+[+~]")}),i(function(t){var e=r.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&F.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||F.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),F.push(",.*:")})),(x.matchesSelector=vt.test(q=j.matches||j.webkitMatchesSelector||j.mozMatchesSelector||j.oMatchesSelector||j.msMatchesSelector))&&i(function(t){x.disconnectedMatch=q.call(t,"div"),q.call(t,"[s!='']:x"),P.push("!=",at)}),F=F.length&&new RegExp(F.join("|")),P=P.length&&new RegExp(P.join("|")),e=vt.test(j.compareDocumentPosition),I=e||vt.test(j.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},B=e?function(t,e){if(t===e)return E=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!x.sortDetached&&e.compareDocumentPosition(t)===n?t===r||t.ownerDocument===z&&I(z,t)?-1:e===r||e.ownerDocument===z&&I(z,e)?1:O?tt(O,t)-tt(O,e):0:4&n?-1:1)}:function(t,e){if(t===e)return E=!0,0;var n,i=0,o=t.parentNode,s=e.parentNode,u=[t],l=[e];if(!o||!s)return t===r?-1:e===r?1:o?-1:s?1:O?tt(O,t)-tt(O,e):0;if(o===s)return a(t,e);for(n=t;n=n.parentNode;)u.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;u[i]===l[i];)i++;return i?a(u[i],l[i]):u[i]===z?-1:l[i]===z?1:0},r):N},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==N&&A(t),n=n.replace(ft,"='$1']"),!(!x.matchesSelector||!L||P&&P.test(n)||F&&F.test(n)))try{var r=q.call(t,n);if(r||x.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(i){}return e(n,N,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==N&&A(t),I(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==N&&A(t);var n=w.attrHandle[e.toLowerCase()],r=n&&G.call(w.attrHandle,e.toLowerCase())?n(t,e,!L):void 0;return void 0!==r?r:x.attributes||!L?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(E=!x.detectDuplicates,O=!x.sortStable&&t.slice(0),t.sort(B),E){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return O=null,t},M=e.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=M(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=M(e);return n},w=e.selectors={cacheLength:50,createPseudo:r,match:dt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(xt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(xt,wt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return dt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ht.test(n)&&(e=C(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(xt,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=Y[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&Y(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:n?(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(st," ")+" ").indexOf(r)>-1:"|="===n?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,h,p,d,g=o!==a?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!u&&!s;if(m){if(o){for(;g;){for(f=e;f=f[g];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;d=g="only"===t&&!d&&"nextSibling"}return!0}if(d=[a?m.firstChild:m.lastChild],a&&y){for(c=m[$]||(m[$]={}),l=c[t]||[],p=l[0]===H&&l[1],h=l[0]===H&&l[2],f=p&&m.childNodes[p];f=++p&&f&&f[g]||(h=p=0)||d.pop();)if(1===f.nodeType&&++h&&f===e){c[t]=[H,p,h];break}}else if(y&&(l=(e[$]||(e[$]={}))[t])&&l[0]===H)h=l[1];else for(;(f=++p&&f&&f[g]||(h=p=0)||d.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++h||(y&&((f[$]||(f[$]={}))[t]=[H,h]),f!==e)););return h-=i,h===r||h%r===0&&h/r>=0}}},PSEUDO:function(t,n){var i,o=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[$]?o(n):o.length>1?(i=[t,t,"",n],w.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),a=i.length;a--;)r=tt(t,i[a]),t[r]=!(e[r]=i[a])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=S(t.replace(ut,"$1"));return i[$]?r(function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return t=t.replace(xt,wt),function(e){return(e.textContent||e.innerText||M(e)).indexOf(t)>-1}}),lang:r(function(t){return pt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(xt,wt).toLowerCase(),function(e){var n;do if(n=L?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===j},focus:function(t){return t===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return gt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[0>n?n+e:n]}),even:l(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:l(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:l(function(t,e,n){for(var r=0>n?n+e:n;--r>=0;)t.push(r);return t}),gt:l(function(t,e,n){for(var r=0>n?n+e:n;++r<e;)t.push(r);return t})}},w.pseudos.nth=w.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[b]=s(b);for(b in{submit:!0,reset:!0})w.pseudos[b]=u(b);return f.prototype=w.filters=w.pseudos,w.setFilters=new f,C=e.tokenize=function(t,n){var r,i,o,a,s,u,l,c=U[t+" "];if(c)return n?0:c.slice(0);for(s=t,u=[],l=w.preFilter;s;){(!r||(i=lt.exec(s)))&&(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=ct.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ut," ")}),s=s.slice(r.length));for(a in w.filter)!(i=dt[a].exec(s))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?e.error(t):U(t,u).slice(0)},S=e.compile=function(t,e){var n,r=[],i=[],o=W[t+" "];if(!o){for(e||(e=C(t)),n=e.length;n--;)o=y(e[n]),o[$]?r.push(o):i.push(o);o=W(t,_(i,r)),o.selector=t}return o},T=e.select=function(t,e,n,r){var i,o,a,s,u,l="function"==typeof t&&t,f=!r&&C(t=l.selector||t);if(n=n||[],1===f.length){if(o=f[0]=f[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&x.getById&&9===e.nodeType&&L&&w.relative[o[1].type]){if(e=(w.find.ID(a.matches[0].replace(xt,wt),e)||[])[0],!e)return n;l&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=dt.needsContext.test(t)?0:o.length;i--&&(a=o[i],!w.relative[s=a.type]);)if((u=w.find[s])&&(r=u(a.matches[0].replace(xt,wt),_t.test(o[0].type)&&c(e.parentNode)||e))){if(o.splice(i,1),t=r.length&&h(o),!t)return Q.apply(n,r),n;break}}return(l||S(t,f))(r,e,!L,n,_t.test(t)&&c(e.parentNode)||e),n},x.sortStable=$.split("").sort(B).join("")===$,x.detectDuplicates=!!E,A(),x.sortDetached=i(function(t){return 1&t.compareDocumentPosition(N.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),x.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,n){var r;return n?void 0:t[e]===!0?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(t);J.find=it,J.expr=it.selectors,J.expr[":"]=J.expr.pseudos,J.unique=it.uniqueSort,J.text=it.getText,J.isXMLDoc=it.isXML,J.contains=it.contains;var ot=J.expr.match.needsContext,at=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,st=/^.[^:#\[\.,]*$/;J.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?J.find.matchesSelector(r,t)?[r]:[]:J.find.matches(t,J.grep(e,function(t){return 1===t.nodeType}))},J.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(J(t).filter(function(){for(e=0;n>e;e++)if(J.contains(i[e],this))return!0}));for(e=0;n>e;e++)J.find(t,i[e],r);return r=this.pushStack(n>1?J.unique(r):r),r.selector=this.selector?this.selector+" "+t:t,r},filter:function(t){return this.pushStack(r(this,t||[],!1))},not:function(t){return this.pushStack(r(this,t||[],!0))},is:function(t){return!!r(this,"string"==typeof t&&ot.test(t)?J(t):t||[],!1).length}});var ut,lt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ct=J.fn.init=function(t,e){var n,r;if(!t)return this;if("string"==typeof t){if(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:lt.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||ut).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof J?e[0]:e,J.merge(this,J.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:K,!0)),at.test(n[1])&&J.isPlainObject(e))for(n in e)J.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return r=K.getElementById(n[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=K,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):J.isFunction(t)?"undefined"!=typeof ut.ready?ut.ready(t):t(J):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),J.makeArray(t,this))};ct.prototype=J.fn,ut=J(K);var ft=/^(?:parents|prev(?:Until|All))/,ht={children:!0,contents:!0,next:!0,prev:!0};J.extend({dir:function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&J(t).is(n))break;r.push(t)}return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),J.fn.extend({has:function(t){var e=J(t,this),n=e.length;return this.filter(function(){for(var t=0;n>t;t++)if(J.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=ot.test(t)||"string"!=typeof t?J(t,e||this.context):0;i>r;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&J.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?J.unique(o):o)},index:function(t){return t?"string"==typeof t?B.call(J(t),this[0]):B.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(J.unique(J.merge(this.get(),J(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),J.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return J.dir(t,"parentNode")},parentsUntil:function(t,e,n){return J.dir(t,"parentNode",n)},next:function(t){return i(t,"nextSibling")},prev:function(t){return i(t,"previousSibling")},nextAll:function(t){return J.dir(t,"nextSibling")},prevAll:function(t){return J.dir(t,"previousSibling")},nextUntil:function(t,e,n){return J.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return J.dir(t,"previousSibling",n)},siblings:function(t){return J.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return J.sibling(t.firstChild)},contents:function(t){return t.contentDocument||J.merge([],t.childNodes)}},function(t,e){J.fn[t]=function(n,r){var i=J.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=J.filter(r,i)),this.length>1&&(ht[t]||J.unique(i),ft.test(t)&&i.reverse()),this.pushStack(i)}});var pt=/\S+/g,dt={};J.Callbacks=function(t){t="string"==typeof t?dt[t]||o(t):J.extend({},t);var e,n,r,i,a,s,u=[],l=!t.once&&[],c=function(o){for(e=t.memory&&o,n=!0,s=i||0,i=0,a=u.length,r=!0;u&&a>s;s++)if(u[s].apply(o[0],o[1])===!1&&t.stopOnFalse){e=!1;break}r=!1,u&&(l?l.length&&c(l.shift()):e?u=[]:f.disable())},f={add:function(){if(u){var n=u.length;!function o(e){J.each(e,function(e,n){var r=J.type(n);"function"===r?t.unique&&f.has(n)||u.push(n):n&&n.length&&"string"!==r&&o(n)})}(arguments),r?a=u.length:e&&(i=n,c(e))}return this},remove:function(){return u&&J.each(arguments,function(t,e){for(var n;(n=J.inArray(e,u,n))>-1;)u.splice(n,1),r&&(a>=n&&a--,s>=n&&s--)}),this},has:function(t){return t?J.inArray(t,u)>-1:!(!u||!u.length)},empty:function(){return u=[],a=0,this},disable:function(){return u=l=e=void 0,this},disabled:function(){return!u},lock:function(){return l=void 0,e||f.disable(),this},locked:function(){return!l},fireWith:function(t,e){return!u||n&&!l||(e=e||[],e=[t,e.slice?e.slice():e],r?l.push(e):c(e)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!n}};return f},J.extend({Deferred:function(t){var e=[["resolve","done",J.Callbacks("once memory"),"resolved"],["reject","fail",J.Callbacks("once memory"),"rejected"],["notify","progress",J.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return J.Deferred(function(n){J.each(e,function(e,o){var a=J.isFunction(t[e])&&t[e];i[o[1]](function(){var t=a&&a.apply(this,arguments);t&&J.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?J.extend(t,r):r}},i={};return r.pipe=r.then,J.each(e,function(t,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=Y.call(arguments),a=o.length,s=1!==a||t&&J.isFunction(t.promise)?a:0,u=1===s?t:J.Deferred(),l=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?Y.call(arguments):i,r===e?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(e=new Array(a),n=new Array(a),r=new Array(a);a>i;i++)o[i]&&J.isFunction(o[i].promise)?o[i].promise().done(l(i,r,o)).fail(u.reject).progress(l(i,n,e)):--s;return s||u.resolveWith(r,o),u.promise()}});var gt;J.fn.ready=function(t){return J.ready.promise().done(t),this},J.extend({isReady:!1,readyWait:1,holdReady:function(t){t?J.readyWait++:J.ready(!0)},ready:function(t){(t===!0?--J.readyWait:J.isReady)||(J.isReady=!0,t!==!0&&--J.readyWait>0||(gt.resolveWith(K,[J]),J.fn.triggerHandler&&(J(K).triggerHandler("ready"),J(K).off("ready"))))}}),J.ready.promise=function(e){return gt||(gt=J.Deferred(),"complete"===K.readyState?setTimeout(J.ready):(K.addEventListener("DOMContentLoaded",a,!1),t.addEventListener("load",a,!1))),gt.promise(e)},J.ready.promise();var mt=J.access=function(t,e,n,r,i,o,a){var s=0,u=t.length,l=null==n;if("object"===J.type(n)){i=!0;for(s in n)J.access(t,e,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,J.isFunction(r)||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(J(t),n)})),e))for(;u>s;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:l?e.call(t):u?e(t[0],n):o};J.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},s.uid=1,s.accepts=J.acceptData,s.prototype={key:function(t){if(!s.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=s.uid++;try{e[this.expando]={value:n},Object.defineProperties(t,e)}catch(r){e[this.expando]=n,J.extend(t,e)}}return this.cache[n]||(this.cache[n]={}),n},set:function(t,e,n){var r,i=this.key(t),o=this.cache[i];if("string"==typeof e)o[e]=n;else if(J.isEmptyObject(o))J.extend(this.cache[i],e);else for(r in e)o[r]=e[r];return o},get:function(t,e){var n=this.cache[this.key(t)];return void 0===e?n:n[e]},access:function(t,e,n){var r;return void 0===e||e&&"string"==typeof e&&void 0===n?(r=this.get(t,e),void 0!==r?r:this.get(t,J.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r,i,o=this.key(t),a=this.cache[o];if(void 0===e)this.cache[o]={};else{J.isArray(e)?r=e.concat(e.map(J.camelCase)):(i=J.camelCase(e),e in a?r=[e,i]:(r=i,r=r in a?[r]:r.match(pt)||[])),n=r.length;for(;n--;)delete a[r[n]]}},hasData:function(t){return!J.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var vt=new s,yt=new s,_t=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,bt=/([A-Z])/g;J.extend({hasData:function(t){return yt.hasData(t)||vt.hasData(t)},data:function(t,e,n){return yt.access(t,e,n)},removeData:function(t,e){yt.remove(t,e)},_data:function(t,e,n){return vt.access(t,e,n)},_removeData:function(t,e){vt.remove(t,e)}}),J.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=yt.get(o),1===o.nodeType&&!vt.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=J.camelCase(r.slice(5)),u(o,r,i[r])));vt.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){yt.set(this,t)}):mt(this,function(e){var n,r=J.camelCase(t);if(o&&void 0===e){if(n=yt.get(o,t),void 0!==n)return n;if(n=yt.get(o,r),void 0!==n)return n;if(n=u(o,r,void 0),void 0!==n)return n}else this.each(function(){var n=yt.get(this,r);yt.set(this,r,e),-1!==t.indexOf("-")&&void 0!==n&&yt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){yt.remove(this,t)})}}),J.extend({queue:function(t,e,n){var r;return t?(e=(e||"fx")+"queue",r=vt.get(t,e),n&&(!r||J.isArray(n)?r=vt.access(t,e,J.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=J.queue(t,e),r=n.length,i=n.shift(),o=J._queueHooks(t,e),a=function(){J.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return vt.get(t,n)||vt.access(t,n,{empty:J.Callbacks("once memory").add(function(){vt.remove(t,[e+"queue",n])})})}}),J.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?J.queue(this[0],t):void 0===e?this:this.each(function(){var n=J.queue(this,t,e);J._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&J.dequeue(this,t)})},dequeue:function(t){return this.each(function(){J.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=J.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)n=vt.get(o[a],t+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var xt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,wt=["Top","Right","Bottom","Left"],Mt=function(t,e){return t=e||t,"none"===J.css(t,"display")||!J.contains(t.ownerDocument,t)},kt=/^(?:checkbox|radio)$/i;!function(){var t=K.createDocumentFragment(),e=t.appendChild(K.createElement("div")),n=K.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),X.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",X.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Ct="undefined";X.focusinBubbles="onfocusin"in t;var St=/^key/,Tt=/^(?:mouse|pointer|contextmenu)|click/,Dt=/^(?:focusinfocus|focusoutblur)$/,Ot=/^([^.]*)(?:\.(.+)|)$/;J.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,p,d,g,m=vt.get(t);if(m)for(n.handler&&(o=n,n=o.handler,i=o.selector),n.guid||(n.guid=J.guid++),(u=m.events)||(u=m.events={}),(a=m.handle)||(a=m.handle=function(e){return typeof J!==Ct&&J.event.triggered!==e.type?J.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(pt)||[""],l=e.length;l--;)s=Ot.exec(e[l])||[],p=g=s[1],d=(s[2]||"").split(".").sort(),p&&(f=J.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=J.event.special[p]||{},c=J.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&J.expr.match.needsContext.test(i),namespace:d.join(".")},o),(h=u[p])||(h=u[p]=[],h.delegateCount=0,f.setup&&f.setup.call(t,r,d,a)!==!1||t.addEventListener&&t.addEventListener(p,a,!1)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),J.event.global[p]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,p,d,g,m=vt.hasData(t)&&vt.get(t);if(m&&(u=m.events)){for(e=(e||"").match(pt)||[""],l=e.length;l--;)if(s=Ot.exec(e[l])||[],p=g=s[1],d=(s[2]||"").split(".").sort(),p){for(f=J.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,h=u[p]||[],s=s[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(t,c));a&&!h.length&&(f.teardown&&f.teardown.call(t,d,m.handle)!==!1||J.removeEvent(t,p,m.handle),delete u[p])}else for(p in u)J.event.remove(t,p+e[l],n,r,!0);J.isEmptyObject(u)&&(delete m.handle,vt.remove(t,"events"))}},trigger:function(e,n,r,i){var o,a,s,u,l,c,f,h=[r||K],p=Z.call(e,"type")?e.type:e,d=Z.call(e,"namespace")?e.namespace.split("."):[];if(a=s=r=r||K,3!==r.nodeType&&8!==r.nodeType&&!Dt.test(p+J.event.triggered)&&(p.indexOf(".")>=0&&(d=p.split("."),p=d.shift(),d.sort()),l=p.indexOf(":")<0&&"on"+p,e=e[J.expando]?e:new J.Event(p,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=d.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),
  n=null==n?[e]:J.makeArray(n,[e]),f=J.event.special[p]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!J.isWindow(r)){for(u=f.delegateType||p,Dt.test(u+p)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(r.ownerDocument||K)&&h.push(s.defaultView||s.parentWindow||t)}for(o=0;(a=h[o++])&&!e.isPropagationStopped();)e.type=o>1?u:f.bindType||p,c=(vt.get(a,"events")||{})[e.type]&&vt.get(a,"handle"),c&&c.apply(a,n),c=l&&a[l],c&&c.apply&&J.acceptData(a)&&(e.result=c.apply(a,n),e.result===!1&&e.preventDefault());return e.type=p,i||e.isDefaultPrevented()||f._default&&f._default.apply(h.pop(),n)!==!1||!J.acceptData(r)||l&&J.isFunction(r[p])&&!J.isWindow(r)&&(s=r[l],s&&(r[l]=null),J.event.triggered=p,r[p](),J.event.triggered=void 0,s&&(r[l]=s)),e.result}},dispatch:function(t){t=J.event.fix(t);var e,n,r,i,o,a=[],s=Y.call(arguments),u=(vt.get(this,"events")||{})[t.type]||[],l=J.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,t)!==!1){for(a=J.event.handlers.call(this,t,u),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(o.namespace))&&(t.handleObj=o,t.data=o.data,r=((J.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&(t.result=r)===!1&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||"click"!==t.type){for(r=[],n=0;s>n;n++)o=e[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?J(i,this).index(u)>=0:J.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||K,r=n.documentElement,i=n.body,t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[J.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Tt.test(i)?this.mouseHooks:St.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new J.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=K),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==f()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===f()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&J.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return J.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=J.extend(new J.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?J.event.trigger(i,null,e):J.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},J.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},J.Event=function(t,e){return this instanceof J.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?l:c):this.type=t,e&&J.extend(this,e),this.timeStamp=t&&t.timeStamp||J.now(),void(this[J.expando]=!0)):new J.Event(t,e)},J.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=l,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=l,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=l,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},J.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){J.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return(!i||i!==r&&!J.contains(r,i))&&(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),X.focusinBubbles||J.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){J.event.simulate(e,t.target,J.event.fix(t),!0)};J.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=vt.access(r,e);i||r.addEventListener(t,n,!0),vt.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=vt.access(r,e)-1;i?vt.access(r,e,i):(r.removeEventListener(t,n,!0),vt.remove(r,e))}}}),J.fn.extend({on:function(t,e,n,r,i){var o,a;if("object"==typeof t){"string"!=typeof e&&(n=n||e,e=void 0);for(a in t)this.on(a,e,n,t[a],i);return this}if(null==n&&null==r?(r=e,n=e=void 0):null==r&&("string"==typeof e?(r=n,n=void 0):(r=n,n=e,e=void 0)),r===!1)r=c;else if(!r)return this;return 1===i&&(o=r,r=function(t){return J().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=J.guid++)),this.each(function(){J.event.add(this,t,r,n,e)})},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,J(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return(e===!1||"function"==typeof e)&&(n=e,e=void 0),n===!1&&(n=c),this.each(function(){J.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){J.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?J.event.trigger(t,e,n,!0):void 0}});var Et=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,At=/<([\w:]+)/,Nt=/<|&#?\w+;/,jt=/<(?:script|style|link)/i,Lt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ft=/^$|\/(?:java|ecma)script/i,Pt=/^true\/(.*)/,qt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,It={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};It.optgroup=It.option,It.tbody=It.tfoot=It.colgroup=It.caption=It.thead,It.th=It.td,J.extend({clone:function(t,e,n){var r,i,o,a,s=t.cloneNode(!0),u=J.contains(t.ownerDocument,t);if(!(X.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||J.isXMLDoc(t)))for(a=v(s),o=v(t),r=0,i=o.length;i>r;r++)y(o[r],a[r]);if(e)if(n)for(o=o||v(t),a=a||v(s),r=0,i=o.length;i>r;r++)m(o[r],a[r]);else m(t,s);return a=v(s,"script"),a.length>0&&g(a,!u&&v(t,"script")),s},buildFragment:function(t,e,n,r){for(var i,o,a,s,u,l,c=e.createDocumentFragment(),f=[],h=0,p=t.length;p>h;h++)if(i=t[h],i||0===i)if("object"===J.type(i))J.merge(f,i.nodeType?[i]:i);else if(Nt.test(i)){for(o=o||c.appendChild(e.createElement("div")),a=(At.exec(i)||["",""])[1].toLowerCase(),s=It[a]||It._default,o.innerHTML=s[1]+i.replace(Et,"<$1></$2>")+s[2],l=s[0];l--;)o=o.lastChild;J.merge(f,o.childNodes),o=c.firstChild,o.textContent=""}else f.push(e.createTextNode(i));for(c.textContent="",h=0;i=f[h++];)if((!r||-1===J.inArray(i,r))&&(u=J.contains(i.ownerDocument,i),o=v(c.appendChild(i),"script"),u&&g(o),n))for(l=0;i=o[l++];)Ft.test(i.type||"")&&n.push(i);return c},cleanData:function(t){for(var e,n,r,i,o=J.event.special,a=0;void 0!==(n=t[a]);a++){if(J.acceptData(n)&&(i=n[vt.expando],i&&(e=vt.cache[i]))){if(e.events)for(r in e.events)o[r]?J.event.remove(n,r):J.removeEvent(n,r,e.handle);vt.cache[i]&&delete vt.cache[i]}delete yt.cache[n[yt.expando]]}}}),J.fn.extend({text:function(t){return mt(this,function(t){return void 0===t?J.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=t)})},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=h(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=h(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,r=t?J.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||J.cleanData(v(n)),n.parentNode&&(e&&J.contains(n.ownerDocument,n)&&g(v(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(J.cleanData(v(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return J.clone(this,t,e)})},html:function(t){return mt(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!jt.test(t)&&!It[(At.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Et,"<$1></$2>");try{for(;r>n;n++)e=this[n]||{},1===e.nodeType&&(J.cleanData(v(e,!1)),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,J.cleanData(v(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=U.apply([],t);var n,r,i,o,a,s,u=0,l=this.length,c=this,f=l-1,h=t[0],g=J.isFunction(h);if(g||l>1&&"string"==typeof h&&!X.checkClone&&Lt.test(h))return this.each(function(n){var r=c.eq(n);g&&(t[0]=h.call(this,n,r.html())),r.domManip(t,e)});if(l&&(n=J.buildFragment(t,this[0].ownerDocument,!1,this),r=n.firstChild,1===n.childNodes.length&&(n=r),r)){for(i=J.map(v(n,"script"),p),o=i.length;l>u;u++)a=n,u!==f&&(a=J.clone(a,!0,!0),o&&J.merge(i,v(a,"script"))),e.call(this[u],a,u);if(o)for(s=i[i.length-1].ownerDocument,J.map(i,d),u=0;o>u;u++)a=i[u],Ft.test(a.type||"")&&!vt.access(a,"globalEval")&&J.contains(s,a)&&(a.src?J._evalUrl&&J._evalUrl(a.src):J.globalEval(a.textContent.replace(qt,"")))}return this}}),J.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){J.fn[t]=function(t){for(var n,r=[],i=J(t),o=i.length-1,a=0;o>=a;a++)n=a===o?this:this.clone(!0),J(i[a])[e](n),W.apply(r,n.get());return this.pushStack(r)}});var $t,zt={},Ht=/^margin/,Rt=new RegExp("^("+xt+")(?!px)[a-z%]+$","i"),Yt=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)};!function(){function e(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",a.innerHTML="",i.appendChild(o);var e=t.getComputedStyle(a,null);n="1%"!==e.top,r="4px"===e.width,i.removeChild(o)}var n,r,i=K.documentElement,o=K.createElement("div"),a=K.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",X.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",o.appendChild(a),t.getComputedStyle&&J.extend(X,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return null==r&&e(),r},reliableMarginRight:function(){var e,n=a.appendChild(K.createElement("div"));return n.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",a.style.width="1px",i.appendChild(o),e=!parseFloat(t.getComputedStyle(n,null).marginRight),i.removeChild(o),a.removeChild(n),e}}))}(),J.swap=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];i=n.apply(t,r||[]);for(o in e)t.style[o]=a[o];return i};var Ut=/^(none|table(?!-c[ea]).+)/,Wt=new RegExp("^("+xt+")(.*)$","i"),Bt=new RegExp("^([+-])=("+xt+")","i"),Vt={position:"absolute",visibility:"hidden",display:"block"},Gt={letterSpacing:"0",fontWeight:"400"},Zt=["Webkit","O","Moz","ms"];J.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=x(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=J.camelCase(e),u=t.style;return e=J.cssProps[s]||(J.cssProps[s]=M(u,s)),a=J.cssHooks[e]||J.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:u[e]:(o=typeof n,"string"===o&&(i=Bt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(J.css(t,e)),o="number"),null!=n&&n===n&&("number"!==o||J.cssNumber[s]||(n+="px"),X.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(u[e]=n)),void 0)}},css:function(t,e,n,r){var i,o,a,s=J.camelCase(e);return e=J.cssProps[s]||(J.cssProps[s]=M(t.style,s)),a=J.cssHooks[e]||J.cssHooks[s],a&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=x(t,e,r)),"normal"===i&&e in Gt&&(i=Gt[e]),""===n||n?(o=parseFloat(i),n===!0||J.isNumeric(o)?o||0:i):i}}),J.each(["height","width"],function(t,e){J.cssHooks[e]={get:function(t,n,r){return n?Ut.test(J.css(t,"display"))&&0===t.offsetWidth?J.swap(t,Vt,function(){return S(t,e,r)}):S(t,e,r):void 0},set:function(t,n,r){var i=r&&Yt(t);return k(t,n,r?C(t,e,r,"border-box"===J.css(t,"boxSizing",!1,i),i):0)}}}),J.cssHooks.marginRight=w(X.reliableMarginRight,function(t,e){return e?J.swap(t,{display:"inline-block"},x,[t,"marginRight"]):void 0}),J.each({margin:"",padding:"",border:"Width"},function(t,e){J.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[t+wt[r]+e]=o[r]||o[r-2]||o[0];return i}},Ht.test(t)||(J.cssHooks[t+e].set=k)}),J.fn.extend({css:function(t,e){return mt(this,function(t,e,n){var r,i,o={},a=0;if(J.isArray(e)){for(r=Yt(t),i=e.length;i>a;a++)o[e[a]]=J.css(t,e[a],!1,r);return o}return void 0!==n?J.style(t,e,n):J.css(t,e)},t,e,arguments.length>1)},show:function(){return T(this,!0)},hide:function(){return T(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Mt(this)?J(this).show():J(this).hide()})}}),J.Tween=D,D.prototype={constructor:D,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(J.cssNumber[n]?"":"px")},cur:function(){var t=D.propHooks[this.prop];return t&&t.get?t.get(this):D.propHooks._default.get(this)},run:function(t){var e,n=D.propHooks[this.prop];return this.pos=e=this.options.duration?J.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):D.propHooks._default.set(this),this}},D.prototype.init.prototype=D.prototype,D.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=J.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){J.fx.step[t.prop]?J.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[J.cssProps[t.prop]]||J.cssHooks[t.prop])?J.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},D.propHooks.scrollTop=D.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},J.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},J.fx=D.prototype.init,J.fx.step={};var Xt,Kt,Qt=/^(?:toggle|show|hide)$/,Jt=new RegExp("^(?:([+-])=|)("+xt+")([a-z%]*)$","i"),te=/queueHooks$/,ee=[N],ne={"*":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=Jt.exec(e),o=i&&i[3]||(J.cssNumber[t]?"":"px"),a=(J.cssNumber[t]||"px"!==o&&+r)&&Jt.exec(J.css(n.elem,t)),s=1,u=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,J.style(n.elem,t,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--u)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};J.Animation=J.extend(L,{tweener:function(t,e){J.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,r=0,i=t.length;i>r;r++)n=t[r],ne[n]=ne[n]||[],ne[n].unshift(e)},prefilter:function(t,e){e?ee.unshift(t):ee.push(t)}}),J.speed=function(t,e,n){var r=t&&"object"==typeof t?J.extend({},t):{complete:n||!n&&e||J.isFunction(t)&&t,duration:t,easing:n&&e||e&&!J.isFunction(e)&&e};return r.duration=J.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in J.fx.speeds?J.fx.speeds[r.duration]:J.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){J.isFunction(r.old)&&r.old.call(this),r.queue&&J.dequeue(this,r.queue)},r},J.fn.extend({fadeTo:function(t,e,n,r){return this.filter(Mt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=J.isEmptyObject(t),o=J.speed(e,n,r),a=function(){var e=L(this,J.extend({},t),o);(i||vt.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=J.timers,a=vt.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&te.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));(e||!n)&&J.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=vt.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=J.timers,a=r?r.length:0;for(n.finish=!0,J.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;a>e;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),J.each(["toggle","show","hide"],function(t,e){var n=J.fn[e];J.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(E(e,!0),t,r,i)}}),J.each({slideDown:E("show"),slideUp:E("hide"),slideToggle:E("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){J.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),J.timers=[],J.fx.tick=function(){var t,e=0,n=J.timers;for(Xt=J.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||J.fx.stop(),Xt=void 0},J.fx.timer=function(t){J.timers.push(t),t()?J.fx.start():J.timers.pop()},J.fx.interval=13,J.fx.start=function(){Kt||(Kt=setInterval(J.fx.tick,J.fx.interval))},J.fx.stop=function(){clearInterval(Kt),Kt=null},J.fx.speeds={slow:600,fast:200,_default:400},J.fn.delay=function(t,e){return t=J.fx?J.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout(r)}})},function(){var t=K.createElement("input"),e=K.createElement("select"),n=e.appendChild(K.createElement("option"));t.type="checkbox",X.checkOn=""!==t.value,X.optSelected=n.selected,e.disabled=!0,X.optDisabled=!n.disabled,t=K.createElement("input"),t.value="t",t.type="radio",X.radioValue="t"===t.value}();var re,ie,oe=J.expr.attrHandle;J.fn.extend({attr:function(t,e){return mt(this,J.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){J.removeAttr(this,t)})}}),J.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===Ct?J.prop(t,e,n):(1===o&&J.isXMLDoc(t)||(e=e.toLowerCase(),r=J.attrHooks[e]||(J.expr.match.bool.test(e)?ie:re)),void 0===n?r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=J.find.attr(t,e),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):void J.removeAttr(t,e))},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(pt);if(o&&1===t.nodeType)for(;n=o[i++];)r=J.propFix[n]||n,J.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!X.radioValue&&"radio"===e&&J.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),ie={set:function(t,e,n){return e===!1?J.removeAttr(t,n):t.setAttribute(n,n),n}},J.each(J.expr.match.bool.source.match(/\w+/g),function(t,e){var n=oe[e]||J.find.attr;oe[e]=function(t,e,r){var i,o;return r||(o=oe[e],oe[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,oe[e]=o),i}});var ae=/^(?:input|select|textarea|button)$/i;J.fn.extend({prop:function(t,e){return mt(this,J.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[J.propFix[t]||t]})}}),J.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,n){var r,i,o,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return o=1!==a||!J.isXMLDoc(t),o&&(e=J.propFix[e]||e,i=J.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||ae.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),X.optSelected||(J.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),J.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){J.propFix[this.toLowerCase()]=this});var se=/[\t\r\n\f]/g;J.fn.extend({addClass:function(t){var e,n,r,i,o,a,s="string"==typeof t&&t,u=0,l=this.length;if(J.isFunction(t))return this.each(function(e){J(this).addClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(pt)||[];l>u;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(se," "):" ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=J.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(t){var e,n,r,i,o,a,s=0===arguments.length||"string"==typeof t&&t,u=0,l=this.length;if(J.isFunction(t))return this.each(function(e){J(this).removeClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(pt)||[];l>u;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(se," "):"")){for(o=0;i=e[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=t?J.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):this.each(J.isFunction(t)?function(n){J(this).toggleClass(t.call(this,n,this.className,e),e)}:function(){if("string"===n)for(var e,r=0,i=J(this),o=t.match(pt)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else(n===Ct||"boolean"===n)&&(this.className&&vt.set(this,"__className__",this.className),this.className=this.className||t===!1?"":vt.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(se," ").indexOf(e)>=0)return!0;return!1}});var ue=/\r/g;J.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=J.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,J(this).val()):t,null==i?i="":"number"==typeof i?i+="":J.isArray(i)&&(i=J.map(i,function(t){return null==t?"":t+""})),e=J.valHooks[this.type]||J.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))});if(i)return e=J.valHooks[i.type]||J.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(ue,""):null==n?"":n)}}}),J.extend({valHooks:{option:{get:function(t){var e=J.find.attr(t,"value");return null!=e?e:J.trim(J.text(t))}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||0>i,a=o?null:[],s=o?i+1:r.length,u=0>i?s:o?i:0;s>u;u++)if(n=r[u],!(!n.selected&&u!==i||(X.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&J.nodeName(n.parentNode,"optgroup"))){if(e=J(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=J.makeArray(e),a=i.length;a--;)r=i[a],(r.selected=J.inArray(r.value,o)>=0)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),J.each(["radio","checkbox"],function(){J.valHooks[this]={set:function(t,e){return J.isArray(e)?t.checked=J.inArray(J(t).val(),e)>=0:void 0}},X.checkOn||(J.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),J.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){J.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),J.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var le=J.now(),ce=/\?/;J.parseJSON=function(t){return JSON.parse(t+"")},J.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{n=new DOMParser,e=n.parseFromString(t,"text/xml")}catch(r){e=void 0}return(!e||e.getElementsByTagName("parsererror").length)&&J.error("Invalid XML: "+t),e};var fe=/#.*$/,he=/([?&])_=[^&]*/,pe=/^(.*?):[ \t]*([^\r\n]*)$/gm,de=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ge=/^(?:GET|HEAD)$/,me=/^\/\//,ve=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ye={},_e={},be="*/".concat("*"),xe=t.location.href,we=ve.exec(xe.toLowerCase())||[];J.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xe,type:"GET",isLocal:de.test(we[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":be,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":J.parseJSON,"text xml":J.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?q(q(t,J.ajaxSettings),e):q(J.ajaxSettings,t)},ajaxPrefilter:F(ye),ajaxTransport:F(_e),ajax:function(t,e){function n(t,e,n,a){var u,c,v,y,b,w=e;2!==_&&(_=2,s&&clearTimeout(s),r=void 0,o=a||"",x.readyState=t>0?4:0,u=t>=200&&300>t||304===t,n&&(y=I(f,x,n)),y=$(f,y,x,u),u?(f.ifModified&&(b=x.getResponseHeader("Last-Modified"),b&&(J.lastModified[i]=b),b=x.getResponseHeader("etag"),b&&(J.etag[i]=b)),204===t||"HEAD"===f.type?w="nocontent":304===t?w="notmodified":(w=y.state,c=y.data,v=y.error,u=!v)):(v=w,(t||!w)&&(w="error",0>t&&(t=0))),x.status=t,x.statusText=(e||w)+"",u?d.resolveWith(h,[c,w,x]):d.rejectWith(h,[x,w,v]),x.statusCode(m),m=void 0,l&&p.trigger(u?"ajaxSuccess":"ajaxError",[x,f,u?c:v]),g.fireWith(h,[x,w]),l&&(p.trigger("ajaxComplete",[x,f]),--J.active||J.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,a,s,u,l,c,f=J.ajaxSetup({},e),h=f.context||f,p=f.context&&(h.nodeType||h.jquery)?J(h):J.event,d=J.Deferred(),g=J.Callbacks("once memory"),m=f.statusCode||{},v={},y={},_=0,b="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===_){if(!a)for(a={};e=pe.exec(o);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===_?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return _||(t=y[n]=y[n]||t,v[t]=e),this},overrideMimeType:function(t){return _||(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>_)for(e in t)m[e]=[m[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||b;return r&&r.abort(e),n(0,e),this}};if(d.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,f.url=((t||f.url||xe)+"").replace(fe,"").replace(me,we[1]+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=J.trim(f.dataType||"*").toLowerCase().match(pt)||[""],null==f.crossDomain&&(u=ve.exec(f.url.toLowerCase()),f.crossDomain=!(!u||u[1]===we[1]&&u[2]===we[2]&&(u[3]||("http:"===u[1]?"80":"443"))===(we[3]||("http:"===we[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=J.param(f.data,f.traditional)),P(ye,f,e,x),2===_)return x;l=J.event&&f.global,l&&0===J.active++&&J.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!ge.test(f.type),i=f.url,f.hasContent||(f.data&&(i=f.url+=(ce.test(i)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=he.test(i)?i.replace(he,"$1_="+le++):i+(ce.test(i)?"&":"?")+"_="+le++)),f.ifModified&&(J.lastModified[i]&&x.setRequestHeader("If-Modified-Since",J.lastModified[i]),J.etag[i]&&x.setRequestHeader("If-None-Match",J.etag[i])),(f.data&&f.hasContent&&f.contentType!==!1||e.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+be+"; q=0.01":""):f.accepts["*"]);for(c in f.headers)x.setRequestHeader(c,f.headers[c]);if(f.beforeSend&&(f.beforeSend.call(h,x,f)===!1||2===_))return x.abort();b="abort";for(c in{success:1,error:1,complete:1})x[c](f[c]);if(r=P(_e,f,e,x)){x.readyState=1,l&&p.trigger("ajaxSend",[x,f]),f.async&&f.timeout>0&&(s=setTimeout(function(){x.abort("timeout")},f.timeout));try{_=1,r.send(v,n)}catch(w){if(!(2>_))throw w;n(-1,w)}}else n(-1,"No Transport");return x},getJSON:function(t,e,n){return J.get(t,e,n,"json")},getScript:function(t,e){return J.get(t,void 0,e,"script")}}),J.each(["get","post"],function(t,e){J[e]=function(t,n,r,i){return J.isFunction(n)&&(i=i||r,r=n,n=void 0),J.ajax({url:t,type:e,dataType:i,data:n,success:r})}}),J._evalUrl=function(t){return J.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},J.fn.extend({wrapAll:function(t){var e;return J.isFunction(t)?this.each(function(e){J(this).wrapAll(t.call(this,e))}):(this[0]&&(e=J(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return this.each(J.isFunction(t)?function(e){J(this).wrapInner(t.call(this,e))}:function(){var e=J(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=J.isFunction(t);return this.each(function(n){J(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){J.nodeName(this,"body")||J(this).replaceWith(this.childNodes)}).end()}}),J.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},J.expr.filters.visible=function(t){return!J.expr.filters.hidden(t)};var Me=/%20/g,ke=/\[\]$/,Ce=/\r?\n/g,Se=/^(?:submit|button|image|reset|file)$/i,Te=/^(?:input|select|textarea|keygen)/i;J.param=function(t,e){var n,r=[],i=function(t,e){e=J.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e);
  
  };if(void 0===e&&(e=J.ajaxSettings&&J.ajaxSettings.traditional),J.isArray(t)||t.jquery&&!J.isPlainObject(t))J.each(t,function(){i(this.name,this.value)});else for(n in t)z(n,t[n],e,i);return r.join("&").replace(Me,"+")},J.fn.extend({serialize:function(){return J.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=J.prop(this,"elements");return t?J.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!J(this).is(":disabled")&&Te.test(this.nodeName)&&!Se.test(t)&&(this.checked||!kt.test(t))}).map(function(t,e){var n=J(this).val();return null==n?null:J.isArray(n)?J.map(n,function(t){return{name:e.name,value:t.replace(Ce,"\r\n")}}):{name:e.name,value:n.replace(Ce,"\r\n")}}).get()}}),J.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var De=0,Oe={},Ee={0:200,1223:204},Ae=J.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in Oe)Oe[t]()}),X.cors=!!Ae&&"withCredentials"in Ae,X.ajax=Ae=!!Ae,J.ajaxTransport(function(t){var e;return X.cors||Ae&&!t.crossDomain?{send:function(n,r){var i,o=t.xhr(),a=++De;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)o[i]=t.xhrFields[i];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)o.setRequestHeader(i,n[i]);e=function(t){return function(){e&&(delete Oe[a],e=o.onload=o.onerror=null,"abort"===t?o.abort():"error"===t?r(o.status,o.statusText):r(Ee[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=e(),o.onerror=e("error"),e=Oe[a]=e("abort");try{o.send(t.hasContent&&t.data||null)}catch(s){if(e)throw s}},abort:function(){e&&e()}}:void 0}),J.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return J.globalEval(t),t}}}),J.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),J.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=J("<script>").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),K.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Ne=[],je=/(=)\?(?=&|$)|\?\?/;J.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ne.pop()||J.expando+"_"+le++;return this[t]=!0,t}}),J.ajaxPrefilter("json jsonp",function(e,n,r){var i,o,a,s=e.jsonp!==!1&&(je.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&je.test(e.data)&&"data");return s||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=J.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(je,"$1"+i):e.jsonp!==!1&&(e.url+=(ce.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||J.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=t[i],t[i]=function(){a=arguments},r.always(function(){t[i]=o,e[i]&&(e.jsonpCallback=n.jsonpCallback,Ne.push(i)),a&&J.isFunction(o)&&o(a[0]),a=o=void 0}),"script"):void 0}),J.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||K;var r=at.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=J.buildFragment([t],e,i),i&&i.length&&J(i).remove(),J.merge([],r.childNodes))};var Le=J.fn.load;J.fn.load=function(t,e,n){if("string"!=typeof t&&Le)return Le.apply(this,arguments);var r,i,o,a=this,s=t.indexOf(" ");return s>=0&&(r=J.trim(t.slice(s)),t=t.slice(0,s)),J.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),a.length>0&&J.ajax({url:t,type:i,dataType:"html",data:e}).done(function(t){o=arguments,a.html(r?J("<div>").append(J.parseHTML(t)).find(r):t)}).complete(n&&function(t,e){a.each(n,o||[t.responseText,e,t])}),this},J.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){J.fn[e]=function(t){return this.on(e,t)}}),J.expr.filters.animated=function(t){return J.grep(J.timers,function(e){return t===e.elem}).length};var Fe=t.document.documentElement;J.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,l,c=J.css(t,"position"),f=J(t),h={};"static"===c&&(t.style.position="relative"),s=f.offset(),o=J.css(t,"top"),u=J.css(t,"left"),l=("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),J.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+i),"using"in e?e.using.call(t,h):f.css(h)}},J.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){J.offset.setOffset(this,t,e)});var e,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;if(o)return e=o.documentElement,J.contains(e,r)?(typeof r.getBoundingClientRect!==Ct&&(i=r.getBoundingClientRect()),n=H(o),{top:i.top+n.pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}):i},position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===J.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),J.nodeName(t[0],"html")||(r=t.offset()),r.top+=J.css(t[0],"borderTopWidth",!0),r.left+=J.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-J.css(n,"marginTop",!0),left:e.left-r.left-J.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Fe;t&&!J.nodeName(t,"html")&&"static"===J.css(t,"position");)t=t.offsetParent;return t||Fe})}}),J.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r="pageYOffset"===n;J.fn[e]=function(i){return mt(this,function(e,i,o){var a=H(e);return void 0===o?a?a[n]:e[i]:void(a?a.scrollTo(r?t.pageXOffset:o,r?o:t.pageYOffset):e[i]=o)},e,i,arguments.length,null)}}),J.each(["top","left"],function(t,e){J.cssHooks[e]=w(X.pixelPosition,function(t,n){return n?(n=x(t,e),Rt.test(n)?J(t).position()[e]+"px":n):void 0})}),J.each({Height:"height",Width:"width"},function(t,e){J.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){J.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return mt(this,function(e,n,r){var i;return J.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?J.css(e,n,a):J.style(e,n,r,a)},e,o?r:void 0,o,null)}})}),J.fn.size=function(){return this.length},J.fn.andSelf=J.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return J});var Pe=t.jQuery,qe=t.$;return J.noConflict=function(e){return t.$===J&&(t.$=qe),e&&t.jQuery===J&&(t.jQuery=Pe),J},typeof e===Ct&&(t.jQuery=t.$=J),J})},{}],32:[function(t,e,n){
  //! moment.js
  //! version : 2.10.3
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  //! license : MIT
  //! momentjs.com
  !function(t,r){"object"==typeof n&&"undefined"!=typeof e?e.exports=r():"function"==typeof define&&define.amd?define(r):t.moment=r()}(this,function(){"use strict";function n(){return Nn.apply(null,arguments)}function r(t){Nn=t}function i(t){return"[object Array]"===Object.prototype.toString.call(t)}function o(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function a(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t,e){for(var n in e)s(e,n)&&(t[n]=e[n]);return s(e,"toString")&&(t.toString=e.toString),s(e,"valueOf")&&(t.valueOf=e.valueOf),t}function l(t,e,n,r){return Tt(t,e,n,r,!0).utc()}function c(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function f(t){return null==t._pf&&(t._pf=c()),t._pf}function h(t){if(null==t._isValid){var e=f(t);t._isValid=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function p(t){var e=l(0/0);return null!=t?u(f(e),t):f(e).userInvalidated=!0,e}function d(t,e){var n,r,i;if("undefined"!=typeof e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),"undefined"!=typeof e._i&&(t._i=e._i),"undefined"!=typeof e._f&&(t._f=e._f),"undefined"!=typeof e._l&&(t._l=e._l),"undefined"!=typeof e._strict&&(t._strict=e._strict),"undefined"!=typeof e._tzm&&(t._tzm=e._tzm),"undefined"!=typeof e._isUTC&&(t._isUTC=e._isUTC),"undefined"!=typeof e._offset&&(t._offset=e._offset),"undefined"!=typeof e._pf&&(t._pf=f(e)),"undefined"!=typeof e._locale&&(t._locale=e._locale),Ln.length>0)for(n in Ln)r=Ln[n],i=e[r],"undefined"!=typeof i&&(t[r]=i);return t}function g(t){d(this,t),this._d=new Date(+t._d),Fn===!1&&(Fn=!0,n.updateOffset(this),Fn=!1)}function m(t){return t instanceof g||null!=t&&null!=t._isAMomentObject}function v(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function y(t,e,n){var r,i=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(r=0;i>r;r++)(n&&t[r]!==e[r]||!n&&v(t[r])!==v(e[r]))&&a++;return a+o}function _(){}function b(t){return t?t.toLowerCase().replace("_","-"):t}function x(t){for(var e,n,r,i,o=0;o<t.length;){for(i=b(t[o]).split("-"),e=i.length,n=b(t[o+1]),n=n?n.split("-"):null;e>0;){if(r=w(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&y(i,n,!0)>=e-1)break;e--}o++}return null}function w(n){var r=null;if(!Pn[n]&&"undefined"!=typeof e&&e&&e.exports)try{r=jn._abbr,t("./locale/"+n),M(r)}catch(i){}return Pn[n]}function M(t,e){var n;return t&&(n="undefined"==typeof e?C(t):k(t,e),n&&(jn=n)),jn._abbr}function k(t,e){return null!==e?(e.abbr=t,Pn[t]||(Pn[t]=new _),Pn[t].set(e),M(t),Pn[t]):(delete Pn[t],null)}function C(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return jn;if(!i(t)){if(e=w(t))return e;t=[t]}return x(t)}function S(t,e){var n=t.toLowerCase();qn[n]=qn[n+"s"]=qn[e]=t}function T(t){return"string"==typeof t?qn[t]||qn[t.toLowerCase()]:void 0}function D(t){var e,n,r={};for(n in t)s(t,n)&&(e=T(n),e&&(r[e]=t[n]));return r}function O(t,e){return function(r){return null!=r?(A(this,t,r),n.updateOffset(this,e),this):E(this,t)}}function E(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function A(t,e,n){return t._d["set"+(t._isUTC?"UTC":"")+e](n)}function N(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else if(t=T(t),"function"==typeof this[t])return this[t](e);return this}function j(t,e,n){for(var r=""+Math.abs(t),i=t>=0;r.length<e;)r="0"+r;return(i?n?"+":"":"-")+r}function L(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(Hn[t]=i),e&&(Hn[e[0]]=function(){return j(i.apply(this,arguments),e[1],e[2])}),n&&(Hn[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function F(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function P(t){var e,n,r=t.match(In);for(e=0,n=r.length;n>e;e++)r[e]=Hn[r[e]]?Hn[r[e]]:F(r[e]);return function(i){var o="";for(e=0;n>e;e++)o+=r[e]instanceof Function?r[e].call(i,t):r[e];return o}}function q(t,e){return t.isValid()?(e=I(e,t.localeData()),zn[e]||(zn[e]=P(e)),zn[e](t)):t.localeData().invalidDate()}function I(t,e){function n(t){return e.longDateFormat(t)||t}var r=5;for($n.lastIndex=0;r>=0&&$n.test(t);)t=t.replace($n,n),$n.lastIndex=0,r-=1;return t}function $(t,e,n){nr[t]="function"==typeof e?e:function(t){return t&&n?n:e}}function z(t,e){return s(nr,t)?nr[t](e._strict,e._locale):new RegExp(H(t))}function H(t){return t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function R(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(r=function(t,n){n[e]=v(t)}),n=0;n<t.length;n++)rr[t[n]]=r}function Y(t,e){R(t,function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)})}function U(t,e,n){null!=e&&s(rr,t)&&rr[t](e,n._a,n,t)}function W(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function B(t){return this._months[t.month()]}function V(t){return this._monthsShort[t.month()]}function G(t,e,n){var r,i,o;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;12>r;r++){if(i=l([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function Z(t,e){var n;return"string"==typeof e&&(e=t.localeData().monthsParse(e),"number"!=typeof e)?t:(n=Math.min(t.date(),W(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t)}function X(t){return null!=t?(Z(this,t),n.updateOffset(this,!0),this):E(this,"Month")}function K(){return W(this.year(),this.month())}function Q(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[or]<0||n[or]>11?or:n[ar]<1||n[ar]>W(n[ir],n[or])?ar:n[sr]<0||n[sr]>24||24===n[sr]&&(0!==n[ur]||0!==n[lr]||0!==n[cr])?sr:n[ur]<0||n[ur]>59?ur:n[lr]<0||n[lr]>59?lr:n[cr]<0||n[cr]>999?cr:-1,f(t)._overflowDayOfYear&&(ir>e||e>ar)&&(e=ar),f(t).overflow=e),t}function J(t){n.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function tt(t,e){var n=!0,r=t+"\n"+(new Error).stack;return u(function(){return n&&(J(r),n=!1),e.apply(this,arguments)},e)}function et(t,e){pr[t]||(J(e),pr[t]=!0)}function nt(t){var e,n,r=t._i,i=dr.exec(r);if(i){for(f(t).iso=!0,e=0,n=gr.length;n>e;e++)if(gr[e][1].exec(r)){t._f=gr[e][0]+(i[6]||" ");break}for(e=0,n=mr.length;n>e;e++)if(mr[e][1].exec(r)){t._f+=mr[e][0];break}r.match(Jn)&&(t._f+="Z"),xt(t)}else t._isValid=!1}function rt(t){var e=vr.exec(t._i);return null!==e?void(t._d=new Date(+e[1])):(nt(t),void(t._isValid===!1&&(delete t._isValid,n.createFromInputFallback(t))))}function it(t,e,n,r,i,o,a){var s=new Date(t,e,n,r,i,o,a);return 1970>t&&s.setFullYear(t),s}function ot(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function at(t){return st(t)?366:365}function st(t){return t%4===0&&t%100!==0||t%400===0}function ut(){return st(this.year())}function lt(t,e,n){var r,i=n-e,o=n-t.day();return o>i&&(o-=7),i-7>o&&(o+=7),r=Dt(t).add(o,"d"),{week:Math.ceil(r.dayOfYear()/7),year:r.year()}}function ct(t){return lt(t,this._week.dow,this._week.doy).week}function ft(){return this._week.dow}function ht(){return this._week.doy}function pt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function dt(t){var e=lt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function gt(t,e,n,r,i){var o,a,s=ot(t,0,1).getUTCDay();return s=0===s?7:s,n=null!=n?n:i,o=i-s+(s>r?7:0)-(i>s?7:0),a=7*(e-1)+(n-i)+o+1,{year:a>0?t:t-1,dayOfYear:a>0?a:at(t-1)+a}}function mt(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function vt(t,e,n){return null!=t?t:null!=e?e:n}function yt(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function _t(t){var e,n,r,i,o=[];if(!t._d){for(r=yt(t),t._w&&null==t._a[ar]&&null==t._a[or]&&bt(t),t._dayOfYear&&(i=vt(t._a[ir],r[ir]),t._dayOfYear>at(i)&&(f(t)._overflowDayOfYear=!0),n=ot(i,0,t._dayOfYear),t._a[or]=n.getUTCMonth(),t._a[ar]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=o[e]=r[e];for(;7>e;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[sr]&&0===t._a[ur]&&0===t._a[lr]&&0===t._a[cr]&&(t._nextDay=!0,t._a[sr]=0),t._d=(t._useUTC?ot:it).apply(null,o),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[sr]=24)}}function bt(t){var e,n,r,i,o,a,s;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(o=1,a=4,n=vt(e.GG,t._a[ir],lt(Dt(),1,4).year),r=vt(e.W,1),i=vt(e.E,1)):(o=t._locale._week.dow,a=t._locale._week.doy,n=vt(e.gg,t._a[ir],lt(Dt(),o,a).year),r=vt(e.w,1),null!=e.d?(i=e.d,o>i&&++r):i=null!=e.e?e.e+o:o),s=gt(n,r,i,a,o),t._a[ir]=s.year,t._dayOfYear=s.dayOfYear}function xt(t){if(t._f===n.ISO_8601)return void nt(t);t._a=[],f(t).empty=!0;var e,r,i,o,a,s=""+t._i,u=s.length,l=0;for(i=I(t._f,t._locale).match(In)||[],e=0;e<i.length;e++)o=i[e],r=(s.match(z(o,t))||[])[0],r&&(a=s.substr(0,s.indexOf(r)),a.length>0&&f(t).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),l+=r.length),Hn[o]?(r?f(t).empty=!1:f(t).unusedTokens.push(o),U(o,r,t)):t._strict&&!r&&f(t).unusedTokens.push(o);f(t).charsLeftOver=u-l,s.length>0&&f(t).unusedInput.push(s),f(t).bigHour===!0&&t._a[sr]<=12&&t._a[sr]>0&&(f(t).bigHour=void 0),t._a[sr]=wt(t._locale,t._a[sr],t._meridiem),_t(t),Q(t)}function wt(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(r=t.isPM(n),r&&12>e&&(e+=12),r||12!==e||(e=0),e):e}function Mt(t){var e,n,r,i,o;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(0/0));for(i=0;i<t._f.length;i++)o=0,e=d({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],xt(e),h(e)&&(o+=f(e).charsLeftOver,o+=10*f(e).unusedTokens.length,f(e).score=o,(null==r||r>o)&&(r=o,n=e));u(t,n||e)}function kt(t){if(!t._d){var e=D(t._i);t._a=[e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],_t(t)}}function Ct(t){var e,n=t._i,r=t._f;return t._locale=t._locale||C(t._l),null===n||void 0===r&&""===n?p({nullInput:!0}):("string"==typeof n&&(t._i=n=t._locale.preparse(n)),m(n)?new g(Q(n)):(i(r)?Mt(t):r?xt(t):o(n)?t._d=n:St(t),e=new g(Q(t)),e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e))}function St(t){var e=t._i;void 0===e?t._d=new Date:o(e)?t._d=new Date(+e):"string"==typeof e?rt(t):i(e)?(t._a=a(e.slice(0),function(t){return parseInt(t,10)}),_t(t)):"object"==typeof e?kt(t):"number"==typeof e?t._d=new Date(e):n.createFromInputFallback(t)}function Tt(t,e,n,r,i){var o={};return"boolean"==typeof n&&(r=n,n=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=t,o._f=e,o._strict=r,Ct(o)}function Dt(t,e,n,r){return Tt(t,e,n,r,!1)}function Ot(t,e){var n,r;if(1===e.length&&i(e[0])&&(e=e[0]),!e.length)return Dt();for(n=e[0],r=1;r<e.length;++r)e[r][t](n)&&(n=e[r]);return n}function Et(){var t=[].slice.call(arguments,0);return Ot("isBefore",t)}function At(){var t=[].slice.call(arguments,0);return Ot("isAfter",t)}function Nt(t){var e=D(t),n=e.year||0,r=e.quarter||0,i=e.month||0,o=e.week||0,a=e.day||0,s=e.hour||0,u=e.minute||0,l=e.second||0,c=e.millisecond||0;this._milliseconds=+c+1e3*l+6e4*u+36e5*s,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=C(),this._bubble()}function jt(t){return t instanceof Nt}function Lt(t,e){L(t,0,0,function(){var t=this.utcOffset(),n="+";return 0>t&&(t=-t,n="-"),n+j(~~(t/60),2)+e+j(~~t%60,2)})}function Ft(t){var e=(t||"").match(Jn)||[],n=e[e.length-1]||[],r=(n+"").match(wr)||["-",0,0],i=+(60*r[1])+v(r[2]);return"+"===r[0]?i:-i}function Pt(t,e){var r,i;return e._isUTC?(r=e.clone(),i=(m(t)||o(t)?+t:+Dt(t))-+r,r._d.setTime(+r._d+i),n.updateOffset(r,!1),r):Dt(t).local()}function qt(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function It(t,e){var r,i=this._offset||0;return null!=t?("string"==typeof t&&(t=Ft(t)),Math.abs(t)<16&&(t=60*t),!this._isUTC&&e&&(r=qt(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==t&&(!e||this._changeInProgress?te(this,Zt(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:qt(this)}function $t(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function zt(t){return this.utcOffset(0,t)}function Ht(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(qt(this),"m")),this}function Rt(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Ft(this._i)),this}function Yt(t){return t=t?Dt(t).utcOffset():0,(this.utcOffset()-t)%60===0}function Ut(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Wt(){if(this._a){var t=this._isUTC?l(this._a):Dt(this._a);return this.isValid()&&y(this._a,t.toArray())>0}return!1}function Bt(){return!this._isUTC}function Vt(){return this._isUTC}function Gt(){return this._isUTC&&0===this._offset}function Zt(t,e){var n,r,i,o=t,a=null;return jt(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(o={},e?o[e]=t:o.milliseconds=t):(a=Mr.exec(t))?(n="-"===a[1]?-1:1,o={y:0,d:v(a[ar])*n,h:v(a[sr])*n,m:v(a[ur])*n,s:v(a[lr])*n,ms:v(a[cr])*n}):(a=kr.exec(t))?(n="-"===a[1]?-1:1,o={y:Xt(a[2],n),M:Xt(a[3],n),d:Xt(a[4],n),h:Xt(a[5],n),m:Xt(a[6],n),s:Xt(a[7],n),w:Xt(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Qt(Dt(o.from),Dt(o.to)),o={},o.ms=i.milliseconds,o.M=i.months),r=new Nt(o),jt(t)&&s(t,"_locale")&&(r._locale=t._locale),r}function Xt(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Kt(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Qt(t,e){var n;return e=Pt(e,t),t.isBefore(e)?n=Kt(t,e):(n=Kt(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function Jt(t,e){return function(n,r){var i,o;return null===r||isNaN(+r)||(et(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period)."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=Zt(n,r),te(this,i,t),this}}function te(t,e,r,i){var o=e._milliseconds,a=e._days,s=e._months;i=null==i?!0:i,o&&t._d.setTime(+t._d+o*r),a&&A(t,"Date",E(t,"Date")+a*r),s&&Z(t,E(t,"Month")+s*r),i&&n.updateOffset(t,a||s)}function ee(t){var e=t||Dt(),n=Pt(e,this).startOf("day"),r=this.diff(n,"days",!0),i=-6>r?"sameElse":-1>r?"lastWeek":0>r?"lastDay":1>r?"sameDay":2>r?"nextDay":7>r?"nextWeek":"sameElse";return this.format(this.localeData().calendar(i,this,Dt(e)))}function ne(){return new g(this)}function re(t,e){var n;return e=T("undefined"!=typeof e?e:"millisecond"),"millisecond"===e?(t=m(t)?t:Dt(t),+this>+t):(n=m(t)?+t:+Dt(t),n<+this.clone().startOf(e))}function ie(t,e){var n;return e=T("undefined"!=typeof e?e:"millisecond"),"millisecond"===e?(t=m(t)?t:Dt(t),+t>+this):(n=m(t)?+t:+Dt(t),+this.clone().endOf(e)<n)}function oe(t,e,n){return this.isAfter(t,n)&&this.isBefore(e,n)}function ae(t,e){var n;return e=T(e||"millisecond"),"millisecond"===e?(t=m(t)?t:Dt(t),+this===+t):(n=+Dt(t),+this.clone().startOf(e)<=n&&n<=+this.clone().endOf(e))}function se(t){return 0>t?Math.ceil(t):Math.floor(t)}function ue(t,e,n){var r,i,o=Pt(t,this),a=6e4*(o.utcOffset()-this.utcOffset());return e=T(e),"year"===e||"month"===e||"quarter"===e?(i=le(this,o),"quarter"===e?i/=3:"year"===e&&(i/=12)):(r=this-o,i="second"===e?r/1e3:"minute"===e?r/6e4:"hour"===e?r/36e5:"day"===e?(r-a)/864e5:"week"===e?(r-a)/6048e5:r),n?i:se(i)}function le(t,e){var n,r,i=12*(e.year()-t.year())+(e.month()-t.month()),o=t.clone().add(i,"months");return 0>e-o?(n=t.clone().add(i-1,"months"),r=(e-o)/(o-n)):(n=t.clone().add(i+1,"months"),r=(e-o)/(n-o)),-(i+r)}function ce(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function fe(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():q(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):q(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function he(t){var e=q(this,t||n.defaultFormat);return this.localeData().postformat(e)}function pe(t,e){return this.isValid()?Zt({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function de(t){return this.from(Dt(),t)}function ge(t,e){return this.isValid()?Zt({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function me(t){return this.to(Dt(),t)}function ve(t){var e;return void 0===t?this._locale._abbr:(e=C(t),null!=e&&(this._locale=e),this)}function ye(){return this._locale}function _e(t){switch(t=T(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function be(t){return t=T(t),void 0===t||"millisecond"===t?this:this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")}function xe(){return+this._d-6e4*(this._offset||0)}function we(){return Math.floor(+this/1e3)}function Me(){return this._offset?new Date(+this):this._d}function ke(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Ce(){return h(this)}function Se(){return u({},f(this))}function Te(){return f(this).overflow}function De(t,e){L(0,[t,t.length],0,e)}function Oe(t,e,n){return lt(Dt([t,11,31+e-n]),e,n).week}function Ee(t){var e=lt(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")}function Ae(t){var e=lt(this,1,4).year;return null==t?e:this.add(t-e,"y")}function Ne(){return Oe(this.year(),1,4)}function je(){var t=this.localeData()._week;return Oe(this.year(),t.dow,t.doy)}function Le(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Fe(t,e){if("string"==typeof t)if(isNaN(t)){if(t=e.weekdaysParse(t),"number"!=typeof t)return null}else t=parseInt(t,10);return t}function Pe(t){return this._weekdays[t.day()]}function qe(t){return this._weekdaysShort[t.day()]}function Ie(t){return this._weekdaysMin[t.day()]}function $e(t){var e,n,r;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(n=Dt([2e3,1]).day(e),r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(r.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e}function ze(t){var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Fe(t,this.localeData()),this.add(t-e,"d")):e}function He(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Re(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)}function Ye(t,e){L(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Ue(t,e){return e._meridiemParse}function We(t){return"p"===(t+"").toLowerCase().charAt(0)}function Be(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Ve(t){L(0,[t,3],0,"millisecond")}function Ge(){return this._isUTC?"UTC":""}function Ze(){return this._isUTC?"Coordinated Universal Time":""}function Xe(t){return Dt(1e3*t)}function Ke(){return Dt.apply(null,arguments).parseZone()}function Qe(t,e,n){var r=this._calendar[t];return"function"==typeof r?r.call(e,n):r}function Je(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e}function tn(){return this._invalidDate}function en(t){return this._ordinal.replace("%d",t)}function nn(t){return t}function rn(t,e,n,r){var i=this._relativeTime[n];return"function"==typeof i?i(t,e,n,r):i.replace(/%d/i,t)}function on(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)}function an(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function sn(t,e,n,r){var i=C(),o=l().set(r,e);return i[n](o,t)}function un(t,e,n,r,i){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return sn(t,e,n,i);var o,a=[];for(o=0;r>o;o++)a[o]=sn(t,o,n,i);return a}function ln(t,e){return un(t,e,"months",12,"month")}function cn(t,e){return un(t,e,"monthsShort",12,"month")}function fn(t,e){return un(t,e,"weekdays",7,"day")}function hn(t,e){return un(t,e,"weekdaysShort",7,"day")}function pn(t,e){return un(t,e,"weekdaysMin",7,"day")}function dn(){var t=this._data;return this._milliseconds=Br(this._milliseconds),this._days=Br(this._days),this._months=Br(this._months),t.milliseconds=Br(t.milliseconds),t.seconds=Br(t.seconds),t.minutes=Br(t.minutes),t.hours=Br(t.hours),t.months=Br(t.months),t.years=Br(t.years),this}function gn(t,e,n,r){var i=Zt(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function mn(t,e){return gn(this,t,e,1)}function vn(t,e){return gn(this,t,e,-1)}function yn(){var t,e,n,r=this._milliseconds,i=this._days,o=this._months,a=this._data,s=0;return a.milliseconds=r%1e3,t=se(r/1e3),a.seconds=t%60,e=se(t/60),a.minutes=e%60,n=se(e/60),a.hours=n%24,i+=se(n/24),s=se(_n(i)),i-=se(bn(s)),o+=se(i/30),i%=30,s+=se(o/12),o%=12,a.days=i,a.months=o,a.years=s,this}function _n(t){return 400*t/146097}function bn(t){return 146097*t/400}function xn(t){var e,n,r=this._milliseconds;if(t=T(t),"month"===t||"year"===t)return e=this._days+r/864e5,n=this._months+12*_n(e),"month"===t?n:n/12;switch(e=this._days+Math.round(bn(this._months/12)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function wn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*v(this._months/12)}function Mn(t){return function(){return this.as(t)}}function kn(t){return t=T(t),this[t+"s"]()}function Cn(t){return function(){return this._data[t]}}function Sn(){return se(this.days()/7)}function Tn(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function Dn(t,e,n){var r=Zt(t).abs(),i=ui(r.as("s")),o=ui(r.as("m")),a=ui(r.as("h")),s=ui(r.as("d")),u=ui(r.as("M")),l=ui(r.as("y")),c=i<li.s&&["s",i]||1===o&&["m"]||o<li.m&&["mm",o]||1===a&&["h"]||a<li.h&&["hh",a]||1===s&&["d"]||s<li.d&&["dd",s]||1===u&&["M"]||u<li.M&&["MM",u]||1===l&&["y"]||["yy",l];return c[2]=e,c[3]=+t>0,c[4]=n,Tn.apply(null,c)}function On(t,e){return void 0===li[t]?!1:void 0===e?li[t]:(li[t]=e,!0)}function En(t){var e=this.localeData(),n=Dn(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function An(){var t=ci(this.years()),e=ci(this.months()),n=ci(this.days()),r=ci(this.hours()),i=ci(this.minutes()),o=ci(this.seconds()+this.milliseconds()/1e3),a=this.asSeconds();return a?(0>a?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(n?n+"D":"")+(r||i||o?"T":"")+(r?r+"H":"")+(i?i+"M":"")+(o?o+"S":""):"P0D"}var Nn,jn,Ln=n.momentProperties=[],Fn=!1,Pn={},qn={},In=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,$n=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,zn={},Hn={},Rn=/\d/,Yn=/\d\d/,Un=/\d{3}/,Wn=/\d{4}/,Bn=/[+-]?\d{6}/,Vn=/\d\d?/,Gn=/\d{1,3}/,Zn=/\d{1,4}/,Xn=/[+-]?\d{1,6}/,Kn=/\d+/,Qn=/[+-]?\d+/,Jn=/Z|[+-]\d\d:?\d\d/gi,tr=/[+-]?\d+(\.\d{1,3})?/,er=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,nr={},rr={},ir=0,or=1,ar=2,sr=3,ur=4,lr=5,cr=6;L("M",["MM",2],"Mo",function(){return this.month()+1}),L("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),L("MMMM",0,0,function(t){return this.localeData().months(this,t)}),S("month","M"),$("M",Vn),$("MM",Vn,Yn),$("MMM",er),$("MMMM",er),R(["M","MM"],function(t,e){e[or]=v(t)-1}),R(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[or]=i:f(n).invalidMonth=t});var fr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),hr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),pr={};n.suppressDeprecationWarnings=!1;var dr=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],mr=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],vr=/^\/?Date\((\-?\d+)/i;n.createFromInputFallback=tt("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),L(0,["YY",2],0,function(){return this.year()%100}),L(0,["YYYY",4],0,"year"),L(0,["YYYYY",5],0,"year"),L(0,["YYYYYY",6,!0],0,"year"),S("year","y"),$("Y",Qn),$("YY",Vn,Yn),$("YYYY",Zn,Wn),$("YYYYY",Xn,Bn),$("YYYYYY",Xn,Bn),R(["YYYY","YYYYY","YYYYYY"],ir),R("YY",function(t,e){e[ir]=n.parseTwoDigitYear(t)}),n.parseTwoDigitYear=function(t){return v(t)+(v(t)>68?1900:2e3)};var yr=O("FullYear",!1);L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),S("week","w"),S("isoWeek","W"),$("w",Vn),$("ww",Vn,Yn),$("W",Vn),$("WW",Vn,Yn),Y(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=v(t)});var _r={dow:0,doy:6};L("DDD",["DDDD",3],"DDDo","dayOfYear"),S("dayOfYear","DDD"),$("DDD",Gn),$("DDDD",Un),R(["DDD","DDDD"],function(t,e,n){n._dayOfYear=v(t)}),n.ISO_8601=function(){};var br=tt("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=Dt.apply(null,arguments);return this>t?this:t}),xr=tt("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var t=Dt.apply(null,arguments);return t>this?this:t});Lt("Z",":"),Lt("ZZ",""),$("Z",Jn),$("ZZ",Jn),R(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ft(t)});var wr=/([\+\-]|\d\d)/gi;n.updateOffset=function(){};var Mr=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,kr=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Zt.fn=Nt.prototype;var Cr=Jt(1,"add"),Sr=Jt(-1,"subtract");n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Tr=tt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});L(0,["gg",2],0,function(){return this.weekYear()%100}),L(0,["GG",2],0,function(){return this.isoWeekYear()%100}),De("gggg","weekYear"),De("ggggg","weekYear"),De("GGGG","isoWeekYear"),De("GGGGG","isoWeekYear"),S("weekYear","gg"),S("isoWeekYear","GG"),$("G",Qn),$("g",Qn),$("GG",Vn,Yn),$("gg",Vn,Yn),$("GGGG",Zn,Wn),$("gggg",Zn,Wn),$("GGGGG",Xn,Bn),$("ggggg",Xn,Bn),Y(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=v(t)}),Y(["gg","GG"],function(t,e,r,i){e[i]=n.parseTwoDigitYear(t)}),L("Q",0,0,"quarter"),S("quarter","Q"),$("Q",Rn),R("Q",function(t,e){e[or]=3*(v(t)-1)}),L("D",["DD",2],"Do","date"),S("date","D"),$("D",Vn),$("DD",Vn,Yn),$("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),R(["D","DD"],ar),R("Do",function(t,e){e[ar]=v(t.match(Vn)[0],10)});var Dr=O("Date",!0);L("d",0,"do","day"),L("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),L("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),L("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),S("day","d"),S("weekday","e"),S("isoWeekday","E"),$("d",Vn),$("e",Vn),$("E",Vn),$("dd",er),$("ddd",er),$("dddd",er),Y(["dd","ddd","dddd"],function(t,e,n){var r=n._locale.weekdaysParse(t);null!=r?e.d=r:f(n).invalidWeekday=t}),Y(["d","e","E"],function(t,e,n,r){e[r]=v(t)});var Or="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Er="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ar="Su_Mo_Tu_We_Th_Fr_Sa".split("_");L("H",["HH",2],0,"hour"),L("h",["hh",2],0,function(){return this.hours()%12||12}),Ye("a",!0),Ye("A",!1),S("hour","h"),$("a",Ue),$("A",Ue),$("H",Vn),$("h",Vn),$("HH",Vn,Yn),$("hh",Vn,Yn),R(["H","HH"],sr),R(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),R(["h","hh"],function(t,e,n){e[sr]=v(t),f(n).bigHour=!0});var Nr=/[ap]\.?m?\.?/i,jr=O("Hours",!0);L("m",["mm",2],0,"minute"),S("minute","m"),$("m",Vn),$("mm",Vn,Yn),R(["m","mm"],ur);var Lr=O("Minutes",!1);L("s",["ss",2],0,"second"),S("second","s"),$("s",Vn),$("ss",Vn,Yn),R(["s","ss"],lr);var Fr=O("Seconds",!1);L("S",0,0,function(){return~~(this.millisecond()/100)}),L(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ve("SSS"),Ve("SSSS"),S("millisecond","ms"),$("S",Gn,Rn),$("SS",Gn,Yn),$("SSS",Gn,Un),$("SSSS",Kn),R(["S","SS","SSS","SSSS"],function(t,e){e[cr]=v(1e3*("0."+t))});var Pr=O("Milliseconds",!1);L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName");var qr=g.prototype;qr.add=Cr,qr.calendar=ee,qr.clone=ne,qr.diff=ue,qr.endOf=be,qr.format=he,qr.from=pe,qr.fromNow=de,qr.to=ge,qr.toNow=me,qr.get=N,qr.invalidAt=Te,qr.isAfter=re,qr.isBefore=ie,qr.isBetween=oe,qr.isSame=ae,qr.isValid=Ce,qr.lang=Tr,qr.locale=ve,qr.localeData=ye,qr.max=xr,qr.min=br,qr.parsingFlags=Se,qr.set=N,qr.startOf=_e,qr.subtract=Sr,qr.toArray=ke,qr.toDate=Me,qr.toISOString=fe,qr.toJSON=fe,qr.toString=ce,qr.unix=we,qr.valueOf=xe,qr.year=yr,qr.isLeapYear=ut,qr.weekYear=Ee,qr.isoWeekYear=Ae,qr.quarter=qr.quarters=Le,qr.month=X,qr.daysInMonth=K,qr.week=qr.weeks=pt,qr.isoWeek=qr.isoWeeks=dt,qr.weeksInYear=je,qr.isoWeeksInYear=Ne,qr.date=Dr,qr.day=qr.days=ze,qr.weekday=He,qr.isoWeekday=Re,qr.dayOfYear=mt,qr.hour=qr.hours=jr,qr.minute=qr.minutes=Lr,qr.second=qr.seconds=Fr,qr.millisecond=qr.milliseconds=Pr,qr.utcOffset=It,qr.utc=zt,qr.local=Ht,qr.parseZone=Rt,qr.hasAlignedHourOffset=Yt,qr.isDST=Ut,qr.isDSTShifted=Wt,qr.isLocal=Bt,qr.isUtcOffset=Vt,qr.isUtc=Gt,qr.isUTC=Gt,qr.zoneAbbr=Ge,qr.zoneName=Ze,qr.dates=tt("dates accessor is deprecated. Use date instead.",Dr),qr.months=tt("months accessor is deprecated. Use month instead",X),qr.years=tt("years accessor is deprecated. Use year instead",yr),qr.zone=tt("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",$t);var Ir=qr,$r={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},zr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},Hr="Invalid date",Rr="%d",Yr=/\d{1,2}/,Ur={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"
  },Wr=_.prototype;Wr._calendar=$r,Wr.calendar=Qe,Wr._longDateFormat=zr,Wr.longDateFormat=Je,Wr._invalidDate=Hr,Wr.invalidDate=tn,Wr._ordinal=Rr,Wr.ordinal=en,Wr._ordinalParse=Yr,Wr.preparse=nn,Wr.postformat=nn,Wr._relativeTime=Ur,Wr.relativeTime=rn,Wr.pastFuture=on,Wr.set=an,Wr.months=B,Wr._months=fr,Wr.monthsShort=V,Wr._monthsShort=hr,Wr.monthsParse=G,Wr.week=ct,Wr._week=_r,Wr.firstDayOfYear=ht,Wr.firstDayOfWeek=ft,Wr.weekdays=Pe,Wr._weekdays=Or,Wr.weekdaysMin=Ie,Wr._weekdaysMin=Ar,Wr.weekdaysShort=qe,Wr._weekdaysShort=Er,Wr.weekdaysParse=$e,Wr.isPM=We,Wr._meridiemParse=Nr,Wr.meridiem=Be,M("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===v(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),n.lang=tt("moment.lang is deprecated. Use moment.locale instead.",M),n.langData=tt("moment.langData is deprecated. Use moment.localeData instead.",C);var Br=Math.abs,Vr=Mn("ms"),Gr=Mn("s"),Zr=Mn("m"),Xr=Mn("h"),Kr=Mn("d"),Qr=Mn("w"),Jr=Mn("M"),ti=Mn("y"),ei=Cn("milliseconds"),ni=Cn("seconds"),ri=Cn("minutes"),ii=Cn("hours"),oi=Cn("days"),ai=Cn("months"),si=Cn("years"),ui=Math.round,li={s:45,m:45,h:22,d:26,M:11},ci=Math.abs,fi=Nt.prototype;fi.abs=dn,fi.add=mn,fi.subtract=vn,fi.as=xn,fi.asMilliseconds=Vr,fi.asSeconds=Gr,fi.asMinutes=Zr,fi.asHours=Xr,fi.asDays=Kr,fi.asWeeks=Qr,fi.asMonths=Jr,fi.asYears=ti,fi.valueOf=wn,fi._bubble=yn,fi.get=kn,fi.milliseconds=ei,fi.seconds=ni,fi.minutes=ri,fi.hours=ii,fi.days=oi,fi.weeks=Sn,fi.months=ai,fi.years=si,fi.humanize=En,fi.toISOString=An,fi.toString=An,fi.toJSON=An,fi.locale=ve,fi.localeData=ye,fi.toIsoString=tt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",An),fi.lang=Tr,L("X",0,0,"unix"),L("x",0,0,"valueOf"),$("x",Qn),$("X",tr),R("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),R("x",function(t,e,n){n._d=new Date(v(t))}),n.version="2.10.3",r(Dt),n.fn=Ir,n.min=Et,n.max=At,n.utc=l,n.unix=Xe,n.months=ln,n.isDate=o,n.locale=M,n.invalid=p,n.duration=Zt,n.isMoment=m,n.weekdays=fn,n.parseZone=Ke,n.localeData=C,n.isDuration=jt,n.monthsShort=cn,n.weekdaysMin=pn,n.defineLocale=k,n.weekdaysShort=hn,n.normalizeUnits=T,n.relativeTimeThreshold=On;var hi=n;return hi})},{}],33:[function(t,e,n){!function(r,i){"function"==typeof define&&define.amd?define(["jquery","sifter","microplugin"],i):"object"==typeof n?e.exports=i(t("jquery"),t("sifter"),t("microplugin")):r.Selectize=i(r.jQuery,r.Sifter,r.MicroPlugin)}(this,function(t,e,n){"use strict";var r=function(t,e){if("string"!=typeof e||e.length){var n="string"==typeof e?new RegExp(e,"i"):e,r=function(t){var e=0;if(3===t.nodeType){var i=t.data.search(n);if(i>=0&&t.data.length>0){var o=t.data.match(n),a=document.createElement("span");a.className="highlight";var s=t.splitText(i),u=(s.splitText(o[0].length),s.cloneNode(!0));a.appendChild(u),s.parentNode.replaceChild(a,s),e=1}}else if(1===t.nodeType&&t.childNodes&&!/(script|style)/i.test(t.tagName))for(var l=0;l<t.childNodes.length;++l)l+=r(t.childNodes[l]);return e};return t.each(function(){r(this)})}},i=function(){};i.prototype={on:function(t,e){this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e)},off:function(t,e){var n=arguments.length;return 0===n?delete this._events:1===n?delete this._events[t]:(this._events=this._events||{},void(t in this._events!=!1&&this._events[t].splice(this._events[t].indexOf(e),1)))},trigger:function(t){if(this._events=this._events||{},t in this._events!=!1)for(var e=0;e<this._events[t].length;e++)this._events[t][e].apply(this,Array.prototype.slice.call(arguments,1))}},i.mixin=function(t){for(var e=["on","off","trigger"],n=0;n<e.length;n++)t.prototype[e[n]]=i.prototype[e[n]]};var o=/Mac/.test(navigator.userAgent),a=65,s=13,u=27,l=37,c=38,f=80,h=39,p=40,d=78,g=8,m=46,v=16,y=o?91:17,_=o?18:17,b=9,x=1,w=2,M=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("form").validity,k=function(t){return"undefined"!=typeof t},C=function(t){return"undefined"==typeof t||null===t?null:"boolean"==typeof t?t?"1":"0":t+""},S=function(t){return(t+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},T=function(t){return(t+"").replace(/\$/g,"$$$$")},D={};D.before=function(t,e,n){var r=t[e];t[e]=function(){return n.apply(t,arguments),r.apply(t,arguments)}},D.after=function(t,e,n){var r=t[e];t[e]=function(){var e=r.apply(t,arguments);return n.apply(t,arguments),e}};var O=function(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}},E=function(t,e){var n;return function(){var r=this,i=arguments;window.clearTimeout(n),n=window.setTimeout(function(){t.apply(r,i)},e)}},A=function(t,e,n){var r,i=t.trigger,o={};t.trigger=function(){var n=arguments[0];return-1===e.indexOf(n)?i.apply(t,arguments):void(o[n]=arguments)},n.apply(t,[]),t.trigger=i;for(r in o)o.hasOwnProperty(r)&&i.apply(t,o[r])},N=function(t,e,n,r){t.on(e,n,function(e){for(var n=e.target;n&&n.parentNode!==t[0];)n=n.parentNode;return e.currentTarget=n,r.apply(this,[e])})},j=function(t){var e={};if("selectionStart"in t)e.start=t.selectionStart,e.length=t.selectionEnd-e.start;else if(document.selection){t.focus();var n=document.selection.createRange(),r=document.selection.createRange().text.length;n.moveStart("character",-t.value.length),e.start=n.text.length-r,e.length=r}return e},L=function(t,e,n){var r,i,o={};if(n)for(r=0,i=n.length;i>r;r++)o[n[r]]=t.css(n[r]);else o=t.css();e.css(o)},F=function(e,n){if(!e)return 0;var r=t("<test>").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).text(e).appendTo("body");L(n,r,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]);var i=r.width();return r.remove(),i},P=function(t){var e=null,n=function(n,r){var i,o,a,s,u,l,c,f;n=n||window.event||{},r=r||{},n.metaKey||n.altKey||(r.force||t.data("grow")!==!1)&&(i=t.val(),n.type&&"keydown"===n.type.toLowerCase()&&(o=n.keyCode,a=o>=97&&122>=o||o>=65&&90>=o||o>=48&&57>=o||32===o,o===m||o===g?(f=j(t[0]),f.length?i=i.substring(0,f.start)+i.substring(f.start+f.length):o===g&&f.start?i=i.substring(0,f.start-1)+i.substring(f.start+1):o===m&&"undefined"!=typeof f.start&&(i=i.substring(0,f.start)+i.substring(f.start+1))):a&&(l=n.shiftKey,c=String.fromCharCode(n.keyCode),c=l?c.toUpperCase():c.toLowerCase(),i+=c)),s=t.attr("placeholder"),!i&&s&&(i=s),u=F(i,t)+4,u!==e&&(e=u,t.width(u),t.triggerHandler("resize")))};t.on("keydown keyup update blur",n),n()},q=function(n,r){var i,o,a,s,u=this;s=n[0],s.selectize=u;var l=window.getComputedStyle&&window.getComputedStyle(s,null);if(a=l?l.getPropertyValue("direction"):s.currentStyle&&s.currentStyle.direction,a=a||n.parents("[dir]:first").attr("dir")||"",t.extend(u,{order:0,settings:r,$input:n,tabIndex:n.attr("tabindex")||"",tagType:"select"===s.tagName.toLowerCase()?x:w,rtl:/rtl/i.test(a),eventNS:".selectize"+ ++q.count,highlightedValue:null,isOpen:!1,isDisabled:!1,isRequired:n.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===r.loadThrottle?u.onSearchChange:E(u.onSearchChange,r.loadThrottle)}),u.sifter=new e(this.options,{diacritics:r.diacritics}),u.settings.options){for(i=0,o=u.settings.options.length;o>i;i++)u.registerOption(u.settings.options[i]);delete u.settings.options}if(u.settings.optgroups){for(i=0,o=u.settings.optgroups.length;o>i;i++)u.registerOptionGroup(u.settings.optgroups[i]);delete u.settings.optgroups}u.settings.mode=u.settings.mode||(1===u.settings.maxItems?"single":"multi"),"boolean"!=typeof u.settings.hideSelected&&(u.settings.hideSelected="multi"===u.settings.mode),u.initializePlugins(u.settings.plugins),u.setupCallbacks(),u.setupTemplates(),u.setup()};return i.mixin(q),n.mixin(q),t.extend(q.prototype,{setup:function(){var e,n,r,i,a,s,u,l,c,f=this,h=f.settings,p=f.eventNS,d=t(window),g=t(document),m=f.$input;if(u=f.settings.mode,l=m.attr("class")||"",e=t("<div>").addClass(h.wrapperClass).addClass(l).addClass(u),n=t("<div>").addClass(h.inputClass).addClass("items").appendTo(e),r=t('<input type="text" autocomplete="off" />').appendTo(n).attr("tabindex",m.is(":disabled")?"-1":f.tabIndex),s=t(h.dropdownParent||e),i=t("<div>").addClass(h.dropdownClass).addClass(u).hide().appendTo(s),a=t("<div>").addClass(h.dropdownContentClass).appendTo(i),f.settings.copyClassesToDropdown&&i.addClass(l),e.css({width:m[0].style.width}),f.plugins.names.length&&(c="plugin-"+f.plugins.names.join(" plugin-"),e.addClass(c),i.addClass(c)),(null===h.maxItems||h.maxItems>1)&&f.tagType===x&&m.attr("multiple","multiple"),f.settings.placeholder&&r.attr("placeholder",h.placeholder),!f.settings.splitOn&&f.settings.delimiter){var b=f.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");f.settings.splitOn=new RegExp("\\s*"+b+"+\\s*")}m.attr("autocorrect")&&r.attr("autocorrect",m.attr("autocorrect")),m.attr("autocapitalize")&&r.attr("autocapitalize",m.attr("autocapitalize")),f.$wrapper=e,f.$control=n,f.$control_input=r,f.$dropdown=i,f.$dropdown_content=a,i.on("mouseenter","[data-selectable]",function(){return f.onOptionHover.apply(f,arguments)}),i.on("mousedown click","[data-selectable]",function(){return f.onOptionSelect.apply(f,arguments)}),N(n,"mousedown","*:not(input)",function(){return f.onItemSelect.apply(f,arguments)}),P(r),n.on({mousedown:function(){return f.onMouseDown.apply(f,arguments)},click:function(){return f.onClick.apply(f,arguments)}}),r.on({mousedown:function(t){t.stopPropagation()},keydown:function(){return f.onKeyDown.apply(f,arguments)},keyup:function(){return f.onKeyUp.apply(f,arguments)},keypress:function(){return f.onKeyPress.apply(f,arguments)},resize:function(){f.positionDropdown.apply(f,[])},blur:function(){return f.onBlur.apply(f,arguments)},focus:function(){return f.ignoreBlur=!1,f.onFocus.apply(f,arguments)},paste:function(){return f.onPaste.apply(f,arguments)}}),g.on("keydown"+p,function(t){f.isCmdDown=t[o?"metaKey":"ctrlKey"],f.isCtrlDown=t[o?"altKey":"ctrlKey"],f.isShiftDown=t.shiftKey}),g.on("keyup"+p,function(t){t.keyCode===_&&(f.isCtrlDown=!1),t.keyCode===v&&(f.isShiftDown=!1),t.keyCode===y&&(f.isCmdDown=!1)}),g.on("mousedown"+p,function(t){if(f.isFocused){if(t.target===f.$dropdown[0]||t.target.parentNode===f.$dropdown[0])return!1;f.$control.has(t.target).length||t.target===f.$control[0]||f.blur(t.target)}}),d.on(["scroll"+p,"resize"+p].join(" "),function(){f.isOpen&&f.positionDropdown.apply(f,arguments)}),d.on("mousemove"+p,function(){f.ignoreHover=!1}),this.revertSettings={$children:m.children().detach(),tabindex:m.attr("tabindex")},m.attr("tabindex",-1).hide().after(f.$wrapper),t.isArray(h.items)&&(f.setValue(h.items),delete h.items),M&&m.on("invalid"+p,function(t){t.preventDefault(),f.isInvalid=!0,f.refreshState()}),f.updateOriginalInput(),f.refreshItems(),f.refreshState(),f.updatePlaceholder(),f.isSetup=!0,m.is(":disabled")&&f.disable(),f.on("change",this.onChange),m.data("selectize",f),m.addClass("selectized"),f.trigger("initialize"),h.preload===!0&&f.onSearchChange("")},setupTemplates:function(){var e=this,n=e.settings.labelField,r=e.settings.optgroupLabelField,i={optgroup:function(t){return'<div class="optgroup">'+t.html+"</div>"},optgroup_header:function(t,e){return'<div class="optgroup-header">'+e(t[r])+"</div>"},option:function(t,e){return'<div class="option">'+e(t[n])+"</div>"},item:function(t,e){return'<div class="item">'+e(t[n])+"</div>"},option_create:function(t,e){return'<div class="create">Add <strong>'+e(t.input)+"</strong>&hellip;</div>"}};e.settings.render=t.extend({},i,e.settings.render)},setupCallbacks:function(){var t,e,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(t in n)n.hasOwnProperty(t)&&(e=this.settings[n[t]],e&&this.on(t,e))},onClick:function(t){var e=this;e.isFocused||(e.focus(),t.preventDefault())},onMouseDown:function(e){{var n=this,r=e.isDefaultPrevented();t(e.target)}if(n.isFocused){if(e.target!==n.$control_input[0])return"single"===n.settings.mode?n.isOpen?n.close():n.open():r||n.setActiveItem(null),!1}else r||window.setTimeout(function(){n.focus()},0)},onChange:function(){this.$input.trigger("change")},onPaste:function(e){var n=this;n.isFull()||n.isInputHidden||n.isLocked?e.preventDefault():n.settings.splitOn&&setTimeout(function(){for(var e=t.trim(n.$control_input.val()||"").split(n.settings.splitOn),r=0,i=e.length;i>r;r++)n.createItem(e[r])},0)},onKeyPress:function(t){if(this.isLocked)return t&&t.preventDefault();var e=String.fromCharCode(t.keyCode||t.which);return this.settings.create&&"multi"===this.settings.mode&&e===this.settings.delimiter?(this.createItem(),t.preventDefault(),!1):void 0},onKeyDown:function(t){var e=(t.target===this.$control_input[0],this);if(e.isLocked)return void(t.keyCode!==b&&t.preventDefault());switch(t.keyCode){case a:if(e.isCmdDown)return void e.selectAll();break;case u:return void(e.isOpen&&(t.preventDefault(),t.stopPropagation(),e.close()));case d:if(!t.ctrlKey||t.altKey)break;case p:if(!e.isOpen&&e.hasOptions)e.open();else if(e.$activeOption){e.ignoreHover=!0;var n=e.getAdjacentOption(e.$activeOption,1);n.length&&e.setActiveOption(n,!0,!0)}return void t.preventDefault();case f:if(!t.ctrlKey||t.altKey)break;case c:if(e.$activeOption){e.ignoreHover=!0;var r=e.getAdjacentOption(e.$activeOption,-1);r.length&&e.setActiveOption(r,!0,!0)}return void t.preventDefault();case s:return void(e.isOpen&&e.$activeOption&&(e.onOptionSelect({currentTarget:e.$activeOption}),t.preventDefault()));case l:return void e.advanceSelection(-1,t);case h:return void e.advanceSelection(1,t);case b:return e.settings.selectOnTab&&e.isOpen&&e.$activeOption&&(e.onOptionSelect({currentTarget:e.$activeOption}),e.isFull()||t.preventDefault()),void(e.settings.create&&e.createItem()&&t.preventDefault());case g:case m:return void e.deleteSelection(t)}return!e.isFull()&&!e.isInputHidden||(o?t.metaKey:t.ctrlKey)?void 0:void t.preventDefault()},onKeyUp:function(t){var e=this;if(e.isLocked)return t&&t.preventDefault();var n=e.$control_input.val()||"";e.lastValue!==n&&(e.lastValue=n,e.onSearchChange(n),e.refreshOptions(),e.trigger("type",n))},onSearchChange:function(t){var e=this,n=e.settings.load;n&&(e.loadedSearches.hasOwnProperty(t)||(e.loadedSearches[t]=!0,e.load(function(r){n.apply(e,[t,r])})))},onFocus:function(t){var e=this,n=e.isFocused;return e.isDisabled?(e.blur(),t&&t.preventDefault(),!1):void(e.ignoreFocus||(e.isFocused=!0,"focus"===e.settings.preload&&e.onSearchChange(""),n||e.trigger("focus"),e.$activeItems.length||(e.showInput(),e.setActiveItem(null),e.refreshOptions(!!e.settings.openOnFocus)),e.refreshState()))},onBlur:function(t,e){var n=this;if(n.isFocused&&(n.isFocused=!1,!n.ignoreFocus)){if(!n.ignoreBlur&&document.activeElement===n.$dropdown_content[0])return n.ignoreBlur=!0,void n.onFocus(t);var r=function(){n.close(),n.setTextboxValue(""),n.setActiveItem(null),n.setActiveOption(null),n.setCaret(n.items.length),n.refreshState(),(e||document.body).focus(),n.ignoreFocus=!1,n.trigger("blur")};n.ignoreFocus=!0,n.settings.create&&n.settings.createOnBlur?n.createItem(null,!1,r):r()}},onOptionHover:function(t){this.ignoreHover||this.setActiveOption(t.currentTarget,!1)},onOptionSelect:function(e){var n,r,i=this;e.preventDefault&&(e.preventDefault(),e.stopPropagation()),r=t(e.currentTarget),r.hasClass("create")?i.createItem(null,function(){i.settings.closeAfterSelect&&i.close()}):(n=r.attr("data-value"),"undefined"!=typeof n&&(i.lastQuery=null,i.setTextboxValue(""),i.addItem(n),i.settings.closeAfterSelect?i.close():!i.settings.hideSelected&&e.type&&/mouse/.test(e.type)&&i.setActiveOption(i.getOption(n))))},onItemSelect:function(t){var e=this;e.isLocked||"multi"===e.settings.mode&&(t.preventDefault(),e.setActiveItem(t.currentTarget,t))},load:function(t){var e=this,n=e.$wrapper.addClass(e.settings.loadingClass);e.loading++,t.apply(e,[function(t){e.loading=Math.max(e.loading-1,0),t&&t.length&&(e.addOption(t),e.refreshOptions(e.isFocused&&!e.isInputHidden)),e.loading||n.removeClass(e.settings.loadingClass),e.trigger("load",t)}])},setTextboxValue:function(t){var e=this.$control_input,n=e.val()!==t;n&&(e.val(t).triggerHandler("update"),this.lastValue=t)},getValue:function(){return this.tagType===x&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(t,e){var n=e?[]:["change"];A(this,n,function(){this.clear(e),this.addItems(t,e)})},setActiveItem:function(e,n){var r,i,o,a,s,u,l,c,f=this;if("single"!==f.settings.mode){if(e=t(e),!e.length)return t(f.$activeItems).removeClass("active"),f.$activeItems=[],void(f.isFocused&&f.showInput());if(r=n&&n.type.toLowerCase(),"mousedown"===r&&f.isShiftDown&&f.$activeItems.length){for(c=f.$control.children(".active:last"),a=Array.prototype.indexOf.apply(f.$control[0].childNodes,[c[0]]),s=Array.prototype.indexOf.apply(f.$control[0].childNodes,[e[0]]),a>s&&(l=a,a=s,s=l),i=a;s>=i;i++)u=f.$control[0].childNodes[i],-1===f.$activeItems.indexOf(u)&&(t(u).addClass("active"),f.$activeItems.push(u));n.preventDefault()}else"mousedown"===r&&f.isCtrlDown||"keydown"===r&&this.isShiftDown?e.hasClass("active")?(o=f.$activeItems.indexOf(e[0]),f.$activeItems.splice(o,1),e.removeClass("active")):f.$activeItems.push(e.addClass("active")[0]):(t(f.$activeItems).removeClass("active"),f.$activeItems=[e.addClass("active")[0]]);f.hideInput(),this.isFocused||f.focus()}},setActiveOption:function(e,n,r){var i,o,a,s,u,l=this;l.$activeOption&&l.$activeOption.removeClass("active"),l.$activeOption=null,e=t(e),e.length&&(l.$activeOption=e.addClass("active"),(n||!k(n))&&(i=l.$dropdown_content.height(),o=l.$activeOption.outerHeight(!0),n=l.$dropdown_content.scrollTop()||0,a=l.$activeOption.offset().top-l.$dropdown_content.offset().top+n,s=a,u=a-i+o,a+o>i+n?l.$dropdown_content.stop().animate({scrollTop:u},r?l.settings.scrollDuration:0):n>a&&l.$dropdown_content.stop().animate({scrollTop:s},r?l.settings.scrollDuration:0)))},selectAll:function(){var t=this;"single"!==t.settings.mode&&(t.$activeItems=Array.prototype.slice.apply(t.$control.children(":not(input)").addClass("active")),t.$activeItems.length&&(t.hideInput(),t.close()),t.focus())},hideInput:function(){var t=this;t.setTextboxValue(""),t.$control_input.css({opacity:0,position:"absolute",left:t.rtl?1e4:-1e4}),t.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var t=this;t.isDisabled||(t.ignoreFocus=!0,t.$control_input[0].focus(),window.setTimeout(function(){t.ignoreFocus=!1,t.onFocus()},0))},blur:function(t){this.$control_input[0].blur(),this.onBlur(null,t)},getScoreFunction:function(t){return this.sifter.getScoreFunction(t,this.getSearchOptions())},getSearchOptions:function(){var t=this.settings,e=t.sortField;return"string"==typeof e&&(e=[{field:e}]),{fields:t.searchField,conjunction:t.searchConjunction,sort:e}},search:function(e){var n,r,i,o=this,a=o.settings,s=this.getSearchOptions();if(a.score&&(i=o.settings.score.apply(this,[e]),"function"!=typeof i))throw new Error('Selectize "score" setting must be a function that returns a function');if(e!==o.lastQuery?(o.lastQuery=e,r=o.sifter.search(e,t.extend(s,{score:i})),o.currentResults=r):r=t.extend(!0,{},o.currentResults),a.hideSelected)for(n=r.items.length-1;n>=0;n--)-1!==o.items.indexOf(C(r.items[n].id))&&r.items.splice(n,1);return r},refreshOptions:function(e){var n,i,o,a,s,u,l,c,f,h,p,d,g,m,v,y;"undefined"==typeof e&&(e=!0);var _=this,b=t.trim(_.$control_input.val()),x=_.search(b),w=_.$dropdown_content,M=_.$activeOption&&C(_.$activeOption.attr("data-value"));for(a=x.items.length,"number"==typeof _.settings.maxOptions&&(a=Math.min(a,_.settings.maxOptions)),s={},u=[],n=0;a>n;n++)for(l=_.options[x.items[n].id],c=_.render("option",l),f=l[_.settings.optgroupField]||"",h=t.isArray(f)?f:[f],i=0,o=h&&h.length;o>i;i++)f=h[i],_.optgroups.hasOwnProperty(f)||(f=""),s.hasOwnProperty(f)||(s[f]=[],u.push(f)),s[f].push(c);for(this.settings.lockOptgroupOrder&&u.sort(function(t,e){var n=_.optgroups[t].$order||0,r=_.optgroups[e].$order||0;return n-r}),p=[],n=0,a=u.length;a>n;n++)f=u[n],_.optgroups.hasOwnProperty(f)&&s[f].length?(d=_.render("optgroup_header",_.optgroups[f])||"",d+=s[f].join(""),p.push(_.render("optgroup",t.extend({},_.optgroups[f],{html:d})))):p.push(s[f].join(""));if(w.html(p.join("")),_.settings.highlight&&x.query.length&&x.tokens.length)for(n=0,a=x.tokens.length;a>n;n++)r(w,x.tokens[n].regex);if(!_.settings.hideSelected)for(n=0,a=_.items.length;a>n;n++)_.getOption(_.items[n]).addClass("selected");g=_.canCreate(b),g&&(w.prepend(_.render("option_create",{input:b})),y=t(w[0].childNodes[0])),_.hasOptions=x.items.length>0||g,_.hasOptions?(x.items.length>0?(v=M&&_.getOption(M),v&&v.length?m=v:"single"===_.settings.mode&&_.items.length&&(m=_.getOption(_.items[0])),m&&m.length||(m=y&&!_.settings.addPrecedence?_.getAdjacentOption(y,1):w.find("[data-selectable]:first"))):m=y,_.setActiveOption(m),e&&!_.isOpen&&_.open()):(_.setActiveOption(null),e&&_.isOpen&&_.close())},addOption:function(e){var n,r,i,o=this;if(t.isArray(e))for(n=0,r=e.length;r>n;n++)o.addOption(e[n]);else(i=o.registerOption(e))&&(o.userOptions[i]=!0,o.lastQuery=null,o.trigger("option_add",i,e))},registerOption:function(t){var e=C(t[this.settings.valueField]);return!e||this.options.hasOwnProperty(e)?!1:(t.$order=t.$order||++this.order,this.options[e]=t,e)},registerOptionGroup:function(t){var e=C(t[this.settings.optgroupValueField]);return e?(t.$order=t.$order||++this.order,this.optgroups[e]=t,e):!1},addOptionGroup:function(t,e){e[this.settings.optgroupValueField]=t,(t=this.registerOptionGroup(e))&&this.trigger("optgroup_add",t,e)},removeOptionGroup:function(t){this.optgroups.hasOwnProperty(t)&&(delete this.optgroups[t],this.renderCache={},this.trigger("optgroup_remove",t))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(e,n){var r,i,o,a,s,u,l,c=this;if(e=C(e),o=C(n[c.settings.valueField]),null!==e&&c.options.hasOwnProperty(e)){if("string"!=typeof o)throw new Error("Value must be set in option data");l=c.options[e].$order,o!==e&&(delete c.options[e],a=c.items.indexOf(e),-1!==a&&c.items.splice(a,1,o)),n.$order=n.$order||l,c.options[o]=n,s=c.renderCache.item,u=c.renderCache.option,s&&(delete s[e],delete s[o]),u&&(delete u[e],delete u[o]),-1!==c.items.indexOf(o)&&(r=c.getItem(e),i=t(c.render("item",n)),r.hasClass("active")&&i.addClass("active"),r.replaceWith(i)),c.lastQuery=null,c.isOpen&&c.refreshOptions(!1)}},removeOption:function(t,e){var n=this;t=C(t);var r=n.renderCache.item,i=n.renderCache.option;r&&delete r[t],i&&delete i[t],delete n.userOptions[t],delete n.options[t],n.lastQuery=null,n.trigger("option_remove",t),n.removeItem(t,e)},clearOptions:function(){var t=this;t.loadedSearches={},t.userOptions={},t.renderCache={},t.options=t.sifter.items={},t.lastQuery=null,t.trigger("option_clear"),t.clear()},getOption:function(t){return this.getElementWithValue(t,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(e,n){var r=this.$dropdown.find("[data-selectable]"),i=r.index(e)+n;return i>=0&&i<r.length?r.eq(i):t()},getElementWithValue:function(e,n){if(e=C(e),"undefined"!=typeof e&&null!==e)for(var r=0,i=n.length;i>r;r++)if(n[r].getAttribute("data-value")===e)return t(n[r]);return t()},getItem:function(t){return this.getElementWithValue(t,this.$control.children())},addItems:function(e,n){for(var r=t.isArray(e)?e:[e],i=0,o=r.length;o>i;i++)this.isPending=o-1>i,this.addItem(r[i],n)},addItem:function(e,n){var r=n?[]:["change"];A(this,r,function(){var r,i,o,a,s,u=this,l=u.settings.mode;return e=C(e),-1!==u.items.indexOf(e)?void("single"===l&&u.close()):void(u.options.hasOwnProperty(e)&&("single"===l&&u.clear(n),"multi"===l&&u.isFull()||(r=t(u.render("item",u.options[e])),s=u.isFull(),u.items.splice(u.caretPos,0,e),u.insertAtCaret(r),(!u.isPending||!s&&u.isFull())&&u.refreshState(),u.isSetup&&(o=u.$dropdown_content.find("[data-selectable]"),u.isPending||(i=u.getOption(e),a=u.getAdjacentOption(i,1).attr("data-value"),u.refreshOptions(u.isFocused&&"single"!==l),a&&u.setActiveOption(u.getOption(a))),!o.length||u.isFull()?u.close():u.positionDropdown(),u.updatePlaceholder(),u.trigger("item_add",e,r),u.updateOriginalInput({silent:n})))))})},removeItem:function(t,e){var n,r,i,o=this;n="object"==typeof t?t:o.getItem(t),t=C(n.attr("data-value")),r=o.items.indexOf(t),-1!==r&&(n.remove(),n.hasClass("active")&&(i=o.$activeItems.indexOf(n[0]),o.$activeItems.splice(i,1)),o.items.splice(r,1),o.lastQuery=null,!o.settings.persist&&o.userOptions.hasOwnProperty(t)&&o.removeOption(t,e),r<o.caretPos&&o.setCaret(o.caretPos-1),o.refreshState(),o.updatePlaceholder(),o.updateOriginalInput({silent:e}),o.positionDropdown(),o.trigger("item_remove",t,n))},createItem:function(e,n){var r=this,i=r.caretPos;e=e||t.trim(r.$control_input.val()||"");var o=arguments[arguments.length-1];if("function"!=typeof o&&(o=function(){}),"boolean"!=typeof n&&(n=!0),!r.canCreate(e))return o(),!1;r.lock();var a="function"==typeof r.settings.create?this.settings.create:function(t){var e={};return e[r.settings.labelField]=t,e[r.settings.valueField]=t,e},s=O(function(t){if(r.unlock(),!t||"object"!=typeof t)return o();var e=C(t[r.settings.valueField]);return"string"!=typeof e?o():(r.setTextboxValue(""),r.addOption(t),r.setCaret(i),r.addItem(e),r.refreshOptions(n&&"single"!==r.settings.mode),void o(t))}),u=a.apply(this,[e,s]);return"undefined"!=typeof u&&s(u),!0},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){var t,e=this;e.isRequired&&(e.items.length&&(e.isInvalid=!1),e.$control_input.prop("required",t)),e.refreshClasses()},refreshClasses:function(){var e=this,n=e.isFull(),r=e.isLocked;e.$wrapper.toggleClass("rtl",e.rtl),e.$control.toggleClass("focus",e.isFocused).toggleClass("disabled",e.isDisabled).toggleClass("required",e.isRequired).toggleClass("invalid",e.isInvalid).toggleClass("locked",r).toggleClass("full",n).toggleClass("not-full",!n).toggleClass("input-active",e.isFocused&&!e.isInputHidden).toggleClass("dropdown-active",e.isOpen).toggleClass("has-options",!t.isEmptyObject(e.options)).toggleClass("has-items",e.items.length>0),e.$control_input.data("grow",!n&&!r)},isFull:function(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(t){var e,n,r,i,o=this;if(t=t||{},o.tagType===x){for(r=[],e=0,n=o.items.length;n>e;e++)i=o.options[o.items[e]][o.settings.labelField]||"",r.push('<option value="'+S(o.items[e])+'" selected="selected">'+S(i)+"</option>");r.length||this.$input.attr("multiple")||r.push('<option value="" selected="selected"></option>'),o.$input.html(r.join(""))}else o.$input.val(o.getValue()),o.$input.attr("value",o.$input.val());o.isSetup&&(t.silent||o.trigger("change",o.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var t=this.$control_input;this.items.length?t.removeAttr("placeholder"):t.attr("placeholder",this.settings.placeholder),t.triggerHandler("update",{force:!0})}},open:function(){var t=this;t.isLocked||t.isOpen||"multi"===t.settings.mode&&t.isFull()||(t.focus(),t.isOpen=!0,t.refreshState(),t.$dropdown.css({visibility:"hidden",display:"block"}),t.positionDropdown(),t.$dropdown.css({visibility:"visible"}),t.trigger("dropdown_open",t.$dropdown))},close:function(){var t=this,e=t.isOpen;"single"===t.settings.mode&&t.items.length&&t.hideInput(),t.isOpen=!1,t.$dropdown.hide(),t.setActiveOption(null),t.refreshState(),e&&t.trigger("dropdown_close",t.$dropdown)},positionDropdown:function(){var t=this.$control,e="body"===this.settings.dropdownParent?t.offset():t.position();e.top+=t.outerHeight(!0),this.$dropdown.css({width:t.outerWidth(),top:e.top,left:e.left})},clear:function(t){var e=this;e.items.length&&(e.$control.children(":not(input)").remove(),e.items=[],e.lastQuery=null,e.setCaret(0),e.setActiveItem(null),e.updatePlaceholder(),e.updateOriginalInput({silent:t}),e.refreshState(),e.showInput(),e.trigger("clear"))},insertAtCaret:function(e){var n=Math.min(this.caretPos,this.items.length);0===n?this.$control.prepend(e):t(this.$control[0].childNodes[n]).before(e),this.setCaret(n+1)},deleteSelection:function(e){var n,r,i,o,a,s,u,l,c,f=this;if(i=e&&e.keyCode===g?-1:1,o=j(f.$control_input[0]),f.$activeOption&&!f.settings.hideSelected&&(u=f.getAdjacentOption(f.$activeOption,-1).attr("data-value")),a=[],f.$activeItems.length){for(c=f.$control.children(".active:"+(i>0?"last":"first")),s=f.$control.children(":not(input)").index(c),i>0&&s++,n=0,r=f.$activeItems.length;r>n;n++)a.push(t(f.$activeItems[n]).attr("data-value"));e&&(e.preventDefault(),e.stopPropagation())}else(f.isFocused||"single"===f.settings.mode)&&f.items.length&&(0>i&&0===o.start&&0===o.length?a.push(f.items[f.caretPos-1]):i>0&&o.start===f.$control_input.val().length&&a.push(f.items[f.caretPos]));if(!a.length||"function"==typeof f.settings.onDelete&&f.settings.onDelete.apply(f,[a])===!1)return!1;for("undefined"!=typeof s&&f.setCaret(s);a.length;)f.removeItem(a.pop());return f.showInput(),f.positionDropdown(),f.refreshOptions(!0),u&&(l=f.getOption(u),l.length&&f.setActiveOption(l)),!0},advanceSelection:function(t,e){var n,r,i,o,a,s,u=this;0!==t&&(u.rtl&&(t*=-1),n=t>0?"last":"first",r=j(u.$control_input[0]),u.isFocused&&!u.isInputHidden?(o=u.$control_input.val().length,a=0>t?0===r.start&&0===r.length:r.start===o,a&&!o&&u.advanceCaret(t,e)):(s=u.$control.children(".active:"+n),s.length&&(i=u.$control.children(":not(input)").index(s),u.setActiveItem(null),u.setCaret(t>0?i+1:i))))},advanceCaret:function(t,e){var n,r,i=this;0!==t&&(n=t>0?"next":"prev",i.isShiftDown?(r=i.$control_input[n](),r.length&&(i.hideInput(),i.setActiveItem(r),e&&e.preventDefault())):i.setCaret(i.caretPos+t))},setCaret:function(e){var n=this;if(e="single"===n.settings.mode?n.items.length:Math.max(0,Math.min(n.items.length,e)),!n.isPending){var r,i,o,a;for(o=n.$control.children(":not(input)"),r=0,i=o.length;i>r;r++)a=t(o[r]).detach(),e>r?n.$control_input.before(a):n.$control.append(a)}n.caretPos=e},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var t=this;t.$input.prop("disabled",!0),t.$control_input.prop("disabled",!0).prop("tabindex",-1),t.isDisabled=!0,t.lock()},enable:function(){var t=this;t.$input.prop("disabled",!1),t.$control_input.prop("disabled",!1).prop("tabindex",t.tabIndex),t.isDisabled=!1,t.unlock()},destroy:function(){var e=this,n=e.eventNS,r=e.revertSettings;e.trigger("destroy"),e.off(),e.$wrapper.remove(),e.$dropdown.remove(),e.$input.html("").append(r.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:r.tabindex}).show(),e.$control_input.removeData("grow"),e.$input.removeData("selectize"),t(window).off(n),t(document).off(n),t(document.body).off(n),delete e.$input[0].selectize},render:function(t,e){var n,r,i="",o=!1,a=this,s=/^[\t \r\n]*<([a-z][a-z0-9\-_]*(?:\:[a-z][a-z0-9\-_]*)?)/i;return("option"===t||"item"===t)&&(n=C(e[a.settings.valueField]),o=!!n),o&&(k(a.renderCache[t])||(a.renderCache[t]={}),a.renderCache[t].hasOwnProperty(n))?a.renderCache[t][n]:(i=a.settings.render[t].apply(this,[e,S]),("option"===t||"option_create"===t)&&(i=i.replace(s,"<$1 data-selectable")),"optgroup"===t&&(r=e[a.settings.optgroupValueField]||"",
  i=i.replace(s,'<$1 data-group="'+T(S(r))+'"')),("option"===t||"item"===t)&&(i=i.replace(s,'<$1 data-value="'+T(S(n||""))+'"')),o&&(a.renderCache[t][n]=i),i)},clearCache:function(t){var e=this;"undefined"==typeof t?e.renderCache={}:delete e.renderCache[t]},canCreate:function(t){var e=this;if(!e.settings.create)return!1;var n=e.settings.createFilter;return!(!t.length||"function"==typeof n&&!n.apply(e,[t])||"string"==typeof n&&!new RegExp(n).test(t)||n instanceof RegExp&&!n.test(t))}}),q.count=0,q.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!1,preload:!1,allowEmptyOption:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},t.fn.selectize=function(e){var n=t.fn.selectize.defaults,r=t.extend({},n,e),i=r.dataAttr,o=r.labelField,a=r.valueField,s=r.optgroupField,u=r.optgroupLabelField,l=r.optgroupValueField,c=function(e,n){var s,u,l,c,f=e.attr(i);if(f)for(n.options=JSON.parse(f),s=0,u=n.options.length;u>s;s++)n.items.push(n.options[s][a]);else{var h=t.trim(e.val()||"");if(!r.allowEmptyOption&&!h.length)return;for(l=h.split(r.delimiter),s=0,u=l.length;u>s;s++)c={},c[o]=l[s],c[a]=l[s],n.options.push(c);n.items=l}},f=function(e,n){var c,f,h,p,d=n.options,g={},m=function(t){var e=i&&t.attr(i);return"string"==typeof e&&e.length?JSON.parse(e):null},v=function(e,i){e=t(e);var u=C(e.attr("value"));if(u||r.allowEmptyOption)if(g.hasOwnProperty(u)){if(i){var l=g[u][s];l?t.isArray(l)?l.push(i):g[u][s]=[l,i]:g[u][s]=i}}else{var c=m(e)||{};c[o]=c[o]||e.text(),c[a]=c[a]||u,c[s]=c[s]||i,g[u]=c,d.push(c),e.is(":selected")&&n.items.push(u)}},y=function(e){var r,i,o,a,s;for(e=t(e),o=e.attr("label"),o&&(a=m(e)||{},a[u]=o,a[l]=o,n.optgroups.push(a)),s=t("option",e),r=0,i=s.length;i>r;r++)v(s[r],o)};for(n.maxItems=e.attr("multiple")?null:1,p=e.children(),c=0,f=p.length;f>c;c++)h=p[c].tagName.toLowerCase(),"optgroup"===h?y(p[c]):"option"===h&&v(p[c])};return this.each(function(){if(!this.selectize){var i,o=t(this),a=this.tagName.toLowerCase(),s=o.attr("placeholder")||o.attr("data-placeholder");s||r.allowEmptyOption||(s=o.children('option[value=""]').text());var u={placeholder:s,options:[],optgroups:[],items:[]};"select"===a?f(o,u):c(o,u),i=new q(o,t.extend(!0,{},n,u,e))}})},t.fn.selectize.defaults=q.defaults,t.fn.selectize.support={validity:M},q.define("drag_drop",function(e){if(!t.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if("multi"===this.settings.mode){var n=this;n.lock=function(){var t=n.lock;return function(){var e=n.$control.data("sortable");return e&&e.disable(),t.apply(n,arguments)}}(),n.unlock=function(){var t=n.unlock;return function(){var e=n.$control.data("sortable");return e&&e.enable(),t.apply(n,arguments)}}(),n.setup=function(){var e=n.setup;return function(){e.apply(this,arguments);var r=n.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:n.isLocked,start:function(t,e){e.placeholder.css("width",e.helper.css("width")),r.css({overflow:"visible"})},stop:function(){r.css({overflow:"hidden"});var e=n.$activeItems?n.$activeItems.slice():null,i=[];r.children("[data-value]").each(function(){i.push(t(this).attr("data-value"))}),n.setValue(i),n.setActiveItem(e)}})}}()}}),q.define("dropdown_header",function(e){var n=this;e=t.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(t){return'<div class="'+t.headerClass+'"><div class="'+t.titleRowClass+'"><span class="'+t.labelClass+'">'+t.title+'</span><a href="javascript:void(0)" class="'+t.closeClass+'">&times;</a></div></div>'}},e),n.setup=function(){var r=n.setup;return function(){r.apply(n,arguments),n.$dropdown_header=t(e.html(e)),n.$dropdown.prepend(n.$dropdown_header)}}()}),q.define("optgroup_columns",function(e){var n=this;e=t.extend({equalizeWidth:!0,equalizeHeight:!0},e),this.getAdjacentOption=function(e,n){var r=e.closest("[data-group]").find("[data-selectable]"),i=r.index(e)+n;return i>=0&&i<r.length?r.eq(i):t()},this.onKeyDown=function(){var t=n.onKeyDown;return function(e){var r,i,o,a;return!this.isOpen||e.keyCode!==l&&e.keyCode!==h?t.apply(this,arguments):(n.ignoreHover=!0,a=this.$activeOption.closest("[data-group]"),r=a.find("[data-selectable]").index(this.$activeOption),a=e.keyCode===l?a.prev("[data-group]"):a.next("[data-group]"),o=a.find("[data-selectable]"),i=o.eq(Math.min(o.length-1,r)),void(i.length&&this.setActiveOption(i)))}}();var r=function(){var t,e=r.width,n=document;return"undefined"==typeof e&&(t=n.createElement("div"),t.innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',t=t.firstChild,n.body.appendChild(t),e=r.width=t.offsetWidth-t.clientWidth,n.body.removeChild(t)),e},i=function(){var i,o,a,s,u,l,c;if(c=t("[data-group]",n.$dropdown_content),o=c.length,o&&n.$dropdown_content.width()){if(e.equalizeHeight){for(a=0,i=0;o>i;i++)a=Math.max(a,c.eq(i).height());c.css({height:a})}e.equalizeWidth&&(l=n.$dropdown_content.innerWidth()-r(),s=Math.round(l/o),c.css({width:s}),o>1&&(u=l-s*(o-1),c.eq(o-1).css({width:u})))}};(e.equalizeHeight||e.equalizeWidth)&&(D.after(this,"positionDropdown",i),D.after(this,"refreshOptions",i))}),q.define("remove_button",function(e){if("single"!==this.settings.mode){e=t.extend({label:"&times;",title:"Remove",className:"remove",append:!0},e);var n=this,r='<a href="javascript:void(0)" class="'+e.className+'" tabindex="-1" title="'+S(e.title)+'">'+e.label+"</a>",i=function(t,e){var n=t.search(/(<\/[^>]+>\s*)$/);return t.substring(0,n)+e+t.substring(n)};this.setup=function(){var o=n.setup;return function(){if(e.append){var a=n.settings.render.item;n.settings.render.item=function(t){return i(a.apply(this,arguments),r)}}o.apply(this,arguments),this.$control.on("click","."+e.className,function(e){if(e.preventDefault(),!n.isLocked){var r=t(e.currentTarget).parent();n.setActiveItem(r),n.deleteSelection()&&n.setCaret(n.items.length)}})}}()}}),q.define("restore_on_backspace",function(t){var e=this;t.text=t.text||function(t){return t[this.settings.labelField]},this.onKeyDown=function(){var n=e.onKeyDown;return function(e){var r,i;return e.keyCode===g&&""===this.$control_input.val()&&!this.$activeItems.length&&(r=this.caretPos-1,r>=0&&r<this.items.length)?(i=this.options[this.items[r]],this.deleteSelection(e)&&(this.setTextboxValue(t.text.apply(this,[i])),this.refreshOptions(!0)),void e.preventDefault()):n.apply(this,arguments)}}()}),q})},{jquery:31,microplugin:34,sifter:35}],34:[function(t,e,n){!function(t,r){"function"==typeof define&&define.amd?define(r):"object"==typeof n?e.exports=r():t.MicroPlugin=r()}(this,function(){var t={};t.mixin=function(t){t.plugins={},t.prototype.initializePlugins=function(t){var n,r,i,o=this,a=[];if(o.plugins={names:[],settings:{},requested:{},loaded:{}},e.isArray(t))for(n=0,r=t.length;r>n;n++)"string"==typeof t[n]?a.push(t[n]):(o.plugins.settings[t[n].name]=t[n].options,a.push(t[n].name));else if(t)for(i in t)t.hasOwnProperty(i)&&(o.plugins.settings[i]=t[i],a.push(i));for(;a.length;)o.require(a.shift())},t.prototype.loadPlugin=function(e){var n=this,r=n.plugins,i=t.plugins[e];if(!t.plugins.hasOwnProperty(e))throw new Error('Unable to find "'+e+'" plugin');r.requested[e]=!0,r.loaded[e]=i.fn.apply(n,[n.plugins.settings[e]||{}]),r.names.push(e)},t.prototype.require=function(t){var e=this,n=e.plugins;if(!e.plugins.loaded.hasOwnProperty(t)){if(n.requested[t])throw new Error('Plugin has circular dependency ("'+t+'")');e.loadPlugin(t)}return n.loaded[t]},t.define=function(e,n){t.plugins[e]={name:e,fn:n}}};var e={isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}};return t})},{}],35:[function(t,e,n){!function(t,r){"function"==typeof define&&define.amd?define(r):"object"==typeof n?e.exports=r():t.Sifter=r()}(this,function(){var t=function(t,e){this.items=t,this.settings=e||{diacritics:!0}};t.prototype.tokenize=function(t){if(t=r(String(t||"").toLowerCase()),!t||!t.length)return[];var e,n,o,s,u=[],l=t.split(/ +/);for(e=0,n=l.length;n>e;e++){if(o=i(l[e]),this.settings.diacritics)for(s in a)a.hasOwnProperty(s)&&(o=o.replace(new RegExp(s,"g"),a[s]));u.push({string:l[e],regex:new RegExp(o,"i")})}return u},t.prototype.iterator=function(t,e){var n;n=o(t)?Array.prototype.forEach||function(t){for(var e=0,n=this.length;n>e;e++)t(this[e],e,this)}:function(t){for(var e in this)this.hasOwnProperty(e)&&t(this[e],e,this)},n.apply(t,[e])},t.prototype.getScoreFunction=function(t,e){var n,r,i,o;n=this,t=n.prepareSearch(t,e),i=t.tokens,r=t.options.fields,o=i.length;var a=function(t,e){var n,r;return t?(t=String(t||""),r=t.search(e.regex),-1===r?0:(n=e.string.length/t.length,0===r&&(n+=.5),n)):0},s=function(){var t=r.length;return t?1===t?function(t,e){return a(e[r[0]],t)}:function(e,n){for(var i=0,o=0;t>i;i++)o+=a(n[r[i]],e);return o/t}:function(){return 0}}();return o?1===o?function(t){return s(i[0],t)}:"and"===t.options.conjunction?function(t){for(var e,n=0,r=0;o>n;n++){if(e=s(i[n],t),0>=e)return 0;r+=e}return r/o}:function(t){for(var e=0,n=0;o>e;e++)n+=s(i[e],t);return n/o}:function(){return 0}},t.prototype.getSortFunction=function(t,n){var r,i,o,a,s,u,l,c,f,h,p;if(o=this,t=o.prepareSearch(t,n),p=!t.query&&n.sort_empty||n.sort,f=function(t,e){return"$score"===t?e.score:o.items[e.id][t]},s=[],p)for(r=0,i=p.length;i>r;r++)(t.query||"$score"!==p[r].field)&&s.push(p[r]);if(t.query){for(h=!0,r=0,i=s.length;i>r;r++)if("$score"===s[r].field){h=!1;break}h&&s.unshift({field:"$score",direction:"desc"})}else for(r=0,i=s.length;i>r;r++)if("$score"===s[r].field){s.splice(r,1);break}for(c=[],r=0,i=s.length;i>r;r++)c.push("desc"===s[r].direction?-1:1);return u=s.length,u?1===u?(a=s[0].field,l=c[0],function(t,n){return l*e(f(a,t),f(a,n))}):function(t,n){var r,i,o;for(r=0;u>r;r++)if(o=s[r].field,i=c[r]*e(f(o,t),f(o,n)))return i;return 0}:null},t.prototype.prepareSearch=function(t,e){if("object"==typeof t)return t;e=n({},e);var r=e.fields,i=e.sort,a=e.sort_empty;return r&&!o(r)&&(e.fields=[r]),i&&!o(i)&&(e.sort=[i]),a&&!o(a)&&(e.sort_empty=[a]),{options:e,query:String(t||"").toLowerCase(),tokens:this.tokenize(t),total:0,items:[]}},t.prototype.search=function(t,e){var n,r,i,o,a=this;return r=this.prepareSearch(t,e),e=r.options,t=r.query,o=e.score||a.getScoreFunction(r),t.length?a.iterator(a.items,function(t,i){n=o(t),(e.filter===!1||n>0)&&r.items.push({score:n,id:i})}):a.iterator(a.items,function(t,e){r.items.push({score:1,id:e})}),i=a.getSortFunction(r,e),i&&r.items.sort(i),r.total=r.items.length,"number"==typeof e.limit&&(r.items=r.items.slice(0,e.limit)),r};var e=function(t,e){return"number"==typeof t&&"number"==typeof e?t>e?1:e>t?-1:0:(t=s(String(t||"")),e=s(String(e||"")),t>e?1:e>t?-1:0)},n=function(t,e){var n,r,i,o;for(n=1,r=arguments.length;r>n;n++)if(o=arguments[n])for(i in o)o.hasOwnProperty(i)&&(t[i]=o[i]);return t},r=function(t){return(t+"").replace(/^\s+|\s+$|/g,"")},i=function(t){return(t+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},o=Array.isArray||$&&$.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},a={a:"[aÀÁÂÃÄÅàáâãäåĀāąĄ]",c:"[cÇçćĆčČ]",d:"[dđĐďĎ]",e:"[eÈÉÊËèéêëěĚĒēęĘ]",i:"[iÌÍÎÏìíîïĪī]",l:"[lłŁ]",n:"[nÑñňŇńŃ]",o:"[oÒÓÔÕÕÖØòóôõöøŌō]",r:"[rřŘ]",s:"[sŠšśŚ]",t:"[tťŤ]",u:"[uÙÚÛÜùúûüůŮŪū]",y:"[yŸÿýÝ]",z:"[zŽžżŻźŹ]"},s=function(){var t,e,n,r,i="",o={};for(n in a)if(a.hasOwnProperty(n))for(r=a[n].substring(2,a[n].length-1),i+=r,t=0,e=r.length;e>t;t++)o[r.charAt(t)]=n;var s=new RegExp("["+i+"]","g");return function(t){return t.replace(s,function(t){return o[t]}).toLowerCase()}}();return t})},{}],36:[function(t,e,n){e.exports=["the","a","an","some"]},{}],37:[function(t,e,n){e.exports=["as","because","for","and","nor","but","or","yet","so"]},{}],38:[function(t,e,n){e.exports=["a","abaft","aboard","about","above","absent","across","afore","after","against","along","alongside","amid","amidst","among","amongst","an","apropos","apud","around","as","aside","astride","at","athwart","atop","barring","before","behind","below","beneath","beside","besides","between","beyond","but","by","circa","concerning","despite","down","during","except","excluding","failing","following","for","forenenst","from","given","in","including","inside","into","like","mid","midst","minus","modulo","near","next","notwithstanding","o'","of","off","on","onto","opposite","out","outside","over","pace","past","per","plus","pro","qua","regarding","round","sans","save","since","than","through","throughout","thru","thruout","till","times","to","toward","towards","under","underneath","unlike","until","unto","up","upon","versus","via","vice","vis-à-vis","with","within","without","worth"]},{}],39:[function(t,e,n){function r(t,e){return t?t.replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(t,n,r){return n>0&&n+t.length!==r.length&&t.search(e)>-1&&":"!==r.charAt(n-2)&&("-"!==r.charAt(n+t.length)||"-"===r.charAt(n-1))&&r.charAt(n-1).search(/[^\s-]/)<0?t.toLowerCase():t.substr(1).search(/[A-Z]|\../)>-1?t:t.charAt(0).toUpperCase()+t.substr(1)}):t}var i=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;e.exports=function(t){return r(t,i)},e.exports.toTitleCase=e.exports;var o=t("./articles").concat(t("./prepositions")).concat(t("./conjunctions")).concat(i.source.replace(/(^\^\(|\)\$$)/g,"").split("|")).concat(["is"]),a=new RegExp("^("+o.join("|")+")$","i");e.exports.toLaxTitleCase=function(t){return r(t,a)}},{"./articles":36,"./conjunctions":37,"./prepositions":38}],40:[function(t,e,n){(function(){function t(t){function e(e,n,r,i,o,a){for(;o>=0&&a>o;o+=t){var s=i?i[o]:o;r=n(r,e[s],s,e)}return r}return function(n,r,i,o){r=x(r,o,4);var a=!D(n)&&b.keys(n),s=(a||n).length,u=t>0?0:s-1;return arguments.length<3&&(i=n[a?a[u]:u],u+=t),e(n,r,i,a,u,s)}}function r(t){return function(e,n,r){n=w(n,r);for(var i=T(e),o=t>0?0:i-1;o>=0&&i>o;o+=t)if(n(e[o],o,e))return o;return-1}}function i(t,e,n){return function(r,i,o){var a=0,s=T(r);if("number"==typeof o)t>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return o=n(r,i),r[o]===i?o:-1;if(i!==i)return o=e(h.call(r,a,s),b.isNaN),o>=0?o+a:-1;for(o=t>0?a:s-1;o>=0&&s>o;o+=t)if(r[o]===i)return o;return-1}}function o(t,e){var n=j.length,r=t.constructor,i=b.isFunction(r)&&r.prototype||l,o="constructor";for(b.has(t,o)&&!b.contains(e,o)&&e.push(o);n--;)o=j[n],o in t&&t[o]!==i[o]&&!b.contains(e,o)&&e.push(o)}var a=this,s=a._,u=Array.prototype,l=Object.prototype,c=Function.prototype,f=u.push,h=u.slice,p=l.toString,d=l.hasOwnProperty,g=Array.isArray,m=Object.keys,v=c.bind,y=Object.create,_=function(){},b=function(t){return t instanceof b?t:this instanceof b?void(this._wrapped=t):new b(t)};"undefined"!=typeof n?("undefined"!=typeof e&&e.exports&&(n=e.exports=b),n._=b):a._=b,b.VERSION="1.8.3";var x=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)}}return function(){return t.apply(e,arguments)}},w=function(t,e,n){return null==t?b.identity:b.isFunction(t)?x(t,e,n):b.isObject(t)?b.matcher(t):b.property(t)};b.iteratee=function(t,e){return w(t,e,1/0)};var M=function(t,e){return function(n){var r=arguments.length;if(2>r||null==n)return n;for(var i=1;r>i;i++)for(var o=arguments[i],a=t(o),s=a.length,u=0;s>u;u++){var l=a[u];e&&void 0!==n[l]||(n[l]=o[l])}return n}},k=function(t){if(!b.isObject(t))return{};if(y)return y(t);_.prototype=t;var e=new _;return _.prototype=null,e},C=function(t){return function(e){return null==e?void 0:e[t]}},S=Math.pow(2,53)-1,T=C("length"),D=function(t){var e=T(t);return"number"==typeof e&&e>=0&&S>=e};b.each=b.forEach=function(t,e,n){e=x(e,n);var r,i;if(D(t))for(r=0,i=t.length;i>r;r++)e(t[r],r,t);else{var o=b.keys(t);for(r=0,i=o.length;i>r;r++)e(t[o[r]],o[r],t)}return t},b.map=b.collect=function(t,e,n){e=w(e,n);for(var r=!D(t)&&b.keys(t),i=(r||t).length,o=Array(i),a=0;i>a;a++){var s=r?r[a]:a;o[a]=e(t[s],s,t)}return o},b.reduce=b.foldl=b.inject=t(1),b.reduceRight=b.foldr=t(-1),b.find=b.detect=function(t,e,n){var r;return r=D(t)?b.findIndex(t,e,n):b.findKey(t,e,n),void 0!==r&&-1!==r?t[r]:void 0},b.filter=b.select=function(t,e,n){var r=[];return e=w(e,n),b.each(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r},b.reject=function(t,e,n){return b.filter(t,b.negate(w(e)),n)},b.every=b.all=function(t,e,n){e=w(e,n);for(var r=!D(t)&&b.keys(t),i=(r||t).length,o=0;i>o;o++){var a=r?r[o]:o;if(!e(t[a],a,t))return!1}return!0},b.some=b.any=function(t,e,n){e=w(e,n);for(var r=!D(t)&&b.keys(t),i=(r||t).length,o=0;i>o;o++){var a=r?r[o]:o;if(e(t[a],a,t))return!0}return!1},b.contains=b.includes=b.include=function(t,e,n,r){return D(t)||(t=b.values(t)),("number"!=typeof n||r)&&(n=0),b.indexOf(t,e,n)>=0},b.invoke=function(t,e){var n=h.call(arguments,2),r=b.isFunction(e);return b.map(t,function(t){var i=r?e:t[e];return null==i?i:i.apply(t,n)})},b.pluck=function(t,e){return b.map(t,b.property(e))},b.where=function(t,e){return b.filter(t,b.matcher(e))},b.findWhere=function(t,e){return b.find(t,b.matcher(e))},b.max=function(t,e,n){var r,i,o=-(1/0),a=-(1/0);if(null==e&&null!=t){t=D(t)?t:b.values(t);for(var s=0,u=t.length;u>s;s++)r=t[s],r>o&&(o=r)}else e=w(e,n),b.each(t,function(t,n,r){i=e(t,n,r),(i>a||i===-(1/0)&&o===-(1/0))&&(o=t,a=i)});return o},b.min=function(t,e,n){var r,i,o=1/0,a=1/0;if(null==e&&null!=t){t=D(t)?t:b.values(t);for(var s=0,u=t.length;u>s;s++)r=t[s],o>r&&(o=r)}else e=w(e,n),b.each(t,function(t,n,r){i=e(t,n,r),(a>i||i===1/0&&o===1/0)&&(o=t,a=i)});return o},b.shuffle=function(t){for(var e,n=D(t)?t:b.values(t),r=n.length,i=Array(r),o=0;r>o;o++)e=b.random(0,o),e!==o&&(i[o]=i[e]),i[e]=n[o];return i},b.sample=function(t,e,n){return null==e||n?(D(t)||(t=b.values(t)),t[b.random(t.length-1)]):b.shuffle(t).slice(0,Math.max(0,e))},b.sortBy=function(t,e,n){return e=w(e,n),b.pluck(b.map(t,function(t,n,r){return{value:t,index:n,criteria:e(t,n,r)}}).sort(function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(r>n||void 0===r)return-1}return t.index-e.index}),"value")};var O=function(t){return function(e,n,r){var i={};return n=w(n,r),b.each(e,function(r,o){var a=n(r,o,e);t(i,r,a)}),i}};b.groupBy=O(function(t,e,n){b.has(t,n)?t[n].push(e):t[n]=[e]}),b.indexBy=O(function(t,e,n){t[n]=e}),b.countBy=O(function(t,e,n){b.has(t,n)?t[n]++:t[n]=1}),b.toArray=function(t){return t?b.isArray(t)?h.call(t):D(t)?b.map(t,b.identity):b.values(t):[]},b.size=function(t){return null==t?0:D(t)?t.length:b.keys(t).length},b.partition=function(t,e,n){e=w(e,n);var r=[],i=[];return b.each(t,function(t,n,o){(e(t,n,o)?r:i).push(t)}),[r,i]},b.first=b.head=b.take=function(t,e,n){return null==t?void 0:null==e||n?t[0]:b.initial(t,t.length-e)},b.initial=function(t,e,n){return h.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},b.last=function(t,e,n){return null==t?void 0:null==e||n?t[t.length-1]:b.rest(t,Math.max(0,t.length-e))},b.rest=b.tail=b.drop=function(t,e,n){return h.call(t,null==e||n?1:e)},b.compact=function(t){return b.filter(t,b.identity)};var E=function(t,e,n,r){for(var i=[],o=0,a=r||0,s=T(t);s>a;a++){var u=t[a];if(D(u)&&(b.isArray(u)||b.isArguments(u))){e||(u=E(u,e,n));var l=0,c=u.length;for(i.length+=c;c>l;)i[o++]=u[l++]}else n||(i[o++]=u)}return i};b.flatten=function(t,e){return E(t,e,!1)},b.without=function(t){return b.difference(t,h.call(arguments,1))},b.uniq=b.unique=function(t,e,n,r){b.isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=w(n,r));for(var i=[],o=[],a=0,s=T(t);s>a;a++){var u=t[a],l=n?n(u,a,t):u;e?(a&&o===l||i.push(u),o=l):n?b.contains(o,l)||(o.push(l),i.push(u)):b.contains(i,u)||i.push(u)}return i},b.union=function(){return b.uniq(E(arguments,!0,!0))},b.intersection=function(t){for(var e=[],n=arguments.length,r=0,i=T(t);i>r;r++){var o=t[r];if(!b.contains(e,o)){for(var a=1;n>a&&b.contains(arguments[a],o);a++);a===n&&e.push(o)}}return e},b.difference=function(t){var e=E(arguments,!0,!0,1);return b.filter(t,function(t){return!b.contains(e,t)})},b.zip=function(){return b.unzip(arguments)},b.unzip=function(t){for(var e=t&&b.max(t,T).length||0,n=Array(e),r=0;e>r;r++)n[r]=b.pluck(t,r);return n},b.object=function(t,e){for(var n={},r=0,i=T(t);i>r;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n},b.findIndex=r(1),b.findLastIndex=r(-1),b.sortedIndex=function(t,e,n,r){n=w(n,r,1);for(var i=n(e),o=0,a=T(t);a>o;){var s=Math.floor((o+a)/2);n(t[s])<i?o=s+1:a=s}return o},b.indexOf=i(1,b.findIndex,b.sortedIndex),b.lastIndexOf=i(-1,b.findLastIndex),b.range=function(t,e,n){null==e&&(e=t||0,t=0),n=n||1;for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array(r),o=0;r>o;o++,t+=n)i[o]=t;return i};var A=function(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);var o=k(t.prototype),a=t.apply(o,i);return b.isObject(a)?a:o};b.bind=function(t,e){if(v&&t.bind===v)return v.apply(t,h.call(arguments,1));if(!b.isFunction(t))throw new TypeError("Bind must be called on a function");var n=h.call(arguments,2),r=function(){return A(t,r,e,this,n.concat(h.call(arguments)))};return r},b.partial=function(t){var e=h.call(arguments,1),n=function(){for(var r=0,i=e.length,o=Array(i),a=0;i>a;a++)o[a]=e[a]===b?arguments[r++]:e[a];for(;r<arguments.length;)o.push(arguments[r++]);return A(t,n,this,this,o)};return n},b.bindAll=function(t){var e,n,r=arguments.length;if(1>=r)throw new Error("bindAll must be passed function names");for(e=1;r>e;e++)n=arguments[e],t[n]=b.bind(t[n],t);return t},b.memoize=function(t,e){var n=function(r){var i=n.cache,o=""+(e?e.apply(this,arguments):r);return b.has(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return n.cache={},n},b.delay=function(t,e){var n=h.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},b.defer=b.partial(b.delay,b,1),b.throttle=function(t,e,n){var r,i,o,a=null,s=0;n||(n={});var u=function(){s=n.leading===!1?0:b.now(),a=null,o=t.apply(r,i),a||(r=i=null)};return function(){var l=b.now();s||n.leading!==!1||(s=l);var c=e-(l-s);return r=this,i=arguments,0>=c||c>e?(a&&(clearTimeout(a),a=null),s=l,o=t.apply(r,i),a||(r=i=null)):a||n.trailing===!1||(a=setTimeout(u,c)),o}},b.debounce=function(t,e,n){var r,i,o,a,s,u=function(){var l=b.now()-a;e>l&&l>=0?r=setTimeout(u,e-l):(r=null,n||(s=t.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,a=b.now();var l=n&&!r;return r||(r=setTimeout(u,e)),l&&(s=t.apply(o,i),o=i=null),s}},b.wrap=function(t,e){return b.partial(e,t)},b.negate=function(t){return function(){return!t.apply(this,arguments)}},b.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},b.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},b.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),1>=t&&(e=null),n}},b.once=b.partial(b.before,2);var N=!{toString:null}.propertyIsEnumerable("toString"),j=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];b.keys=function(t){if(!b.isObject(t))return[];if(m)return m(t);var e=[];for(var n in t)b.has(t,n)&&e.push(n);return N&&o(t,e),e},b.allKeys=function(t){if(!b.isObject(t))return[];var e=[];for(var n in t)e.push(n);return N&&o(t,e),e},b.values=function(t){for(var e=b.keys(t),n=e.length,r=Array(n),i=0;n>i;i++)r[i]=t[e[i]];return r},b.mapObject=function(t,e,n){e=w(e,n);for(var r,i=b.keys(t),o=i.length,a={},s=0;o>s;s++)r=i[s],a[r]=e(t[r],r,t);return a},b.pairs=function(t){for(var e=b.keys(t),n=e.length,r=Array(n),i=0;n>i;i++)r[i]=[e[i],t[e[i]]];return r},b.invert=function(t){for(var e={},n=b.keys(t),r=0,i=n.length;i>r;r++)e[t[n[r]]]=n[r];return e},b.functions=b.methods=function(t){var e=[];for(var n in t)b.isFunction(t[n])&&e.push(n);return e.sort()},b.extend=M(b.allKeys),b.extendOwn=b.assign=M(b.keys),b.findKey=function(t,e,n){e=w(e,n);for(var r,i=b.keys(t),o=0,a=i.length;a>o;o++)if(r=i[o],e(t[r],r,t))return r},b.pick=function(t,e,n){var r,i,o={},a=t;if(null==a)return o;b.isFunction(e)?(i=b.allKeys(a),r=x(e,n)):(i=E(arguments,!1,!1,1),r=function(t,e,n){return e in n},a=Object(a));for(var s=0,u=i.length;u>s;s++){var l=i[s],c=a[l];r(c,l,a)&&(o[l]=c)}return o},b.omit=function(t,e,n){if(b.isFunction(e))e=b.negate(e);else{var r=b.map(E(arguments,!1,!1,1),String);e=function(t,e){return!b.contains(r,e)}}return b.pick(t,e,n)},b.defaults=M(b.allKeys,!0),b.create=function(t,e){var n=k(t);return e&&b.extendOwn(n,e),n},b.clone=function(t){return b.isObject(t)?b.isArray(t)?t.slice():b.extend({},t):t},b.tap=function(t,e){return e(t),t},b.isMatch=function(t,e){var n=b.keys(e),r=n.length;if(null==t)return!r;for(var i=Object(t),o=0;r>o;o++){var a=n[o];if(e[a]!==i[a]||!(a in i))return!1}return!0};var L=function(t,e,n,r){if(t===e)return 0!==t||1/t===1/e;if(null==t||null==e)return t===e;t instanceof b&&(t=t._wrapped),e instanceof b&&(e=e._wrapped);var i=p.call(t);if(i!==p.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!==+t?+e!==+e:0===+t?1/+t===1/e:+t===+e;case"[object Date]":case"[object Boolean]":return+t===+e}var o="[object Array]"===i;if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(b.isFunction(a)&&a instanceof a&&b.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===t)return r[u]===e;if(n.push(t),r.push(e),o){if(u=t.length,u!==e.length)return!1;for(;u--;)if(!L(t[u],e[u],n,r))return!1}else{var l,c=b.keys(t);if(u=c.length,b.keys(e).length!==u)return!1;for(;u--;)if(l=c[u],!b.has(e,l)||!L(t[l],e[l],n,r))return!1}return n.pop(),r.pop(),!0};b.isEqual=function(t,e){return L(t,e)},b.isEmpty=function(t){return null==t?!0:D(t)&&(b.isArray(t)||b.isString(t)||b.isArguments(t))?0===t.length:0===b.keys(t).length},b.isElement=function(t){return!(!t||1!==t.nodeType)},b.isArray=g||function(t){return"[object Array]"===p.call(t)},b.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},b.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){b["is"+t]=function(e){return p.call(e)==="[object "+t+"]"}}),b.isArguments(arguments)||(b.isArguments=function(t){return b.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(b.isFunction=function(t){return"function"==typeof t||!1}),b.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},b.isNaN=function(t){return b.isNumber(t)&&t!==+t},b.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"===p.call(t)},b.isNull=function(t){return null===t},b.isUndefined=function(t){return void 0===t},b.has=function(t,e){return null!=t&&d.call(t,e)},b.noConflict=function(){return a._=s,this},b.identity=function(t){return t},b.constant=function(t){return function(){return t}},b.noop=function(){},b.property=C,b.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},b.matcher=b.matches=function(t){return t=b.extendOwn({},t),function(e){return b.isMatch(e,t)}},b.times=function(t,e,n){var r=Array(Math.max(0,t));e=x(e,n,1);for(var i=0;t>i;i++)r[i]=e(i);return r},b.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},b.now=Date.now||function(){return(new Date).getTime()};var F={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},P=b.invert(F),q=function(t){var e=function(e){return t[e]},n="(?:"+b.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}};b.escape=q(F),b.unescape=q(P),b.result=function(t,e,n){var r=null==t?void 0:t[e];return void 0===r&&(r=n),b.isFunction(r)?r.call(t):r};var I=0;b.uniqueId=function(t){var e=++I+"";return t?t+e:e},b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var $=/(.)^/,z={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},H=/\\|'|\r|\n|\u2028|\u2029/g,R=function(t){return"\\"+z[t]};b.template=function(t,e,n){!e&&n&&(e=n),e=b.defaults({},e,b.templateSettings);var r=RegExp([(e.escape||$).source,(e.interpolate||$).source,(e.evaluate||$).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,function(e,n,r,a,s){return o+=t.slice(i,s).replace(H,R),i=s+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var a=new Function(e.variable||"obj","_",o)}catch(s){throw s.source=o,s}var u=function(t){return a.call(this,t,b)},l=e.variable||"obj";return u.source="function("+l+"){\n"+o+"}",u},b.chain=function(t){var e=b(t);return e._chain=!0,e};var Y=function(t,e){return t._chain?b(e).chain():e};b.mixin=function(t){b.each(b.functions(t),function(e){var n=b[e]=t[e];b.prototype[e]=function(){var t=[this._wrapped];return f.apply(t,arguments),Y(this,n.apply(b,t))}})},b.mixin(b),b.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=u[t];b.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],Y(this,n)}}),b.each(["concat","join","slice"],function(t){var e=u[t];b.prototype[t]=function(){return Y(this,e.apply(this._wrapped,arguments))}}),b.prototype.value=function(){return this._wrapped},b.prototype.valueOf=b.prototype.toJSON=b.prototype.value,b.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return b})}).call(this)},{}]},{},[1]);