coveo-search-ui
Version:
Coveo JavaScript Search Framework
2 lines • 338 kB
JavaScript
webpackJsonpCoveo__temporary([13,3],{131:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(94),i=function(){function t(){}return t.shouldDrawFacetSlider=function(t,n){return r.ResponsiveDropdownContent.isTargetInsideOpenedDropdown(n)||!this.isSmallFacetActivated(t)},t.isSmallTabsActivated=function(t){return t.hasClass(this.smallTabsClassName)},t.isSmallFacetActivated=function(t){return t.hasClass(this.smallFacetClassName)},t.isSmallRecommendationActivated=function(t){return t.hasClass(this.smallRecommendationClassName)},t.activateSmallTabs=function(t){t.addClass(this.smallTabsClassName)},t.deactivateSmallTabs=function(t){t.removeClass(this.smallTabsClassName)},t.activateSmallFacet=function(t){t.addClass(this.smallFacetClassName)},t.deactivateSmallFacet=function(t){t.removeClass(this.smallFacetClassName)},t.activateSmallRecommendation=function(t){t.addClass(this.smallRecommendationClassName)},t.deactivateSmallRecommendation=function(t){t.removeClass(this.smallRecommendationClassName)},t.smallTabsClassName="coveo-small-tabs",t.smallFacetClassName="coveo-small-facets",t.smallRecommendationClassName="coveo-small-recommendation",t}();n.ResponsiveComponentsUtils=i},187:function(t,n,e){"use strict";function r(){}function i(t,n){var e=new r;if(t instanceof r)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var i,o=-1,u=t.length;if(null==n)for(;++o<u;)e.set(o,t[o]);else for(;++o<u;)e.set(n(i=t[o],o,t),i)}else if(t)for(var a in t)e.set(a,t[a]);return e}function o(){return{}}function u(t,n,e){t[n]=e}function a(){return l()}function s(t,n,e){t.set(n,e)}function c(){}function f(t,n){var e=new c;if(t instanceof c)t.each(function(t){e.add(t)});else if(t){var r=-1,i=t.length;if(null==n)for(;++r<i;)e.add(t[r]);else for(;++r<i;)e.add(n(t[r],r,t))}return e}r.prototype=i.prototype={constructor:r,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var l=i,h=function(){function t(n,i,o,u){if(i>=c.length)return null!=e&&n.sort(e),null!=r?r(n):n;for(var a,s,f,h=-1,d=n.length,p=c[i++],v=l(),g=o();++h<d;)(f=v.get(a=p(s=n[h])+""))?f.push(s):v.set(a,[s]);return v.each(function(n,e){u(g,e,t(n,i,o,u))}),g}function n(t,e){if(++e>c.length)return t;var i,o=f[e-1];return null!=r&&e>=c.length?i=t.entries():(i=[],t.each(function(t,r){i.push({key:r,values:n(t,e)})})),null!=o?i.sort(function(t,n){return o(t.key,n.key)}):i}var e,r,i,c=[],f=[];return i={object:function(n){return t(n,0,o,u)},map:function(n){return t(n,0,a,s)},entries:function(e){return n(t(e,0,a,s),0)},key:function(t){return c.push(t),i},sortKeys:function(t){return f[c.length-1]=t,i},sortValues:function(t){return e=t,i},rollup:function(t){return r=t,i}}},d=l.prototype;c.prototype=f.prototype={constructor:c,has:d.has,add:function(t){return t+="",this["$"+t]=t,this},remove:d.remove,clear:d.clear,values:d.keys,size:d.size,empty:d.empty,each:d.each};var p=f,v=function(t){var n=[];for(var e in t)n.push(e);return n},g=function(t){var n=[];for(var e in t)n.push(t[e]);return n},y=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n};e.d(n,"d",function(){return h}),e.d(n,"e",function(){return p}),e.d(n,"c",function(){return l}),e.d(n,"b",function(){return v}),e.d(n,"f",function(){return g}),e.d(n,"a",function(){return y})},188:function(t,n,e){"use strict";function r(t,n,e,i){function o(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return o.floor=function(n){return t(n=new Date(+n)),n},o.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},o.round=function(t){var n=o(t),e=o.ceil(t);return t-n<e-t?n:e},o.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},o.range=function(e,r,i){var u,a=[];if(e=o.ceil(e),i=null==i?1:Math.floor(i),!(e<r&&i>0))return a;do{a.push(u=new Date(+e)),n(e,i),t(e)}while(u<e&&e<r);return a},o.filter=function(e){return r(function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););})},e&&(o.count=function(n,r){return u.setTime(+n),a.setTime(+r),t(u),t(a),Math.floor(e(u,a))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(i?function(n){return i(n)%t==0}:function(n){return o.count(0,n)%t==0}):o:null}),o}function i(t){return r(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*l)/h})}function o(t){return r(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/h})}var u=new Date,a=new Date,s=r(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):s:null};var c=s,f=s.range,l=6e4,h=6048e5,d=r(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+1e3*n)},function(t,n){return(n-t)/1e3},function(t){return t.getUTCSeconds()}),p=d,v=d.range,g=r(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,n){t.setTime(+t+n*l)},function(t,n){return(n-t)/l},function(t){return t.getMinutes()}),y=g,b=g.range,m=r(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*l)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getHours()}),_=m,x=m.range,w=r(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*l)/864e5},function(t){return t.getDate()-1}),S=w,M=w.range,O=i(0),E=i(1),C=i(2),A=i(3),N=i(4),T=i(5),F=i(6),P=O.range,R=E.range,B=C.range,D=A.range,k=N.range,I=T.range,$=F.range,U=r(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),z=U,L=U.range,q=r(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});q.every=function(t){return isFinite(t=Math.floor(t))&&t>0?r(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};var j=q,V=q.range,G=r(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*l)},function(t,n){return(n-t)/l},function(t){return t.getUTCMinutes()}),Q=G,H=G.range,Y=r(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getUTCHours()}),W=Y,X=Y.range,Z=r(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}),K=Z,J=Z.range,tt=o(0),nt=o(1),et=o(2),rt=o(3),it=o(4),ot=o(5),ut=o(6),at=tt.range,st=nt.range,ct=et.range,ft=rt.range,lt=it.range,ht=ot.range,dt=ut.range,pt=r(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),vt=pt,gt=pt.range,yt=r(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});yt.every=function(t){return isFinite(t=Math.floor(t))&&t>0?r(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};var bt=yt,mt=yt.range;e.d(n,"g",function(){return r}),e.d(n,"h",function(){return c}),e.d(n,"i",function(){return f}),e.d(n,"L",function(){return c}),e.d(n,"M",function(){return f}),e.d(n,"r",function(){return p}),e.d(n,"s",function(){return v}),e.d(n,"V",function(){return p}),e.d(n,"W",function(){return v}),e.d(n,"j",function(){return y}),e.d(n,"k",function(){return b}),e.d(n,"e",function(){return _}),e.d(n,"f",function(){return x}),e.d(n,"a",function(){return S}),e.d(n,"b",function(){return M}),e.d(n,"B",function(){return O}),e.d(n,"C",function(){return P}),e.d(n,"t",function(){return O}),e.d(n,"u",function(){return P}),e.d(n,"l",function(){return E}),e.d(n,"m",function(){return R}),e.d(n,"x",function(){return C}),e.d(n,"y",function(){return B}),e.d(n,"z",function(){return A}),e.d(n,"A",function(){return D}),e.d(n,"v",function(){return N}),e.d(n,"w",function(){return k}),e.d(n,"c",function(){return T}),e.d(n,"d",function(){return I}),e.d(n,"p",function(){return F}),e.d(n,"q",function(){return $}),e.d(n,"n",function(){return z}),e.d(n,"o",function(){return L}),e.d(n,"D",function(){return j}),e.d(n,"E",function(){return V}),e.d(n,"N",function(){return Q}),e.d(n,"O",function(){return H}),e.d(n,"J",function(){return W}),e.d(n,"K",function(){return X}),e.d(n,"F",function(){return K}),e.d(n,"G",function(){return J}),e.d(n,"_5",function(){return tt}),e.d(n,"_6",function(){return at}),e.d(n,"X",function(){return tt}),e.d(n,"Y",function(){return at}),e.d(n,"P",function(){return nt}),e.d(n,"Q",function(){return st}),e.d(n,"_1",function(){return et}),e.d(n,"_2",function(){return ct}),e.d(n,"_3",function(){return rt}),e.d(n,"_4",function(){return ft}),e.d(n,"Z",function(){return it}),e.d(n,"_0",function(){return lt}),e.d(n,"H",function(){return ot}),e.d(n,"I",function(){return ht}),e.d(n,"T",function(){return ut}),e.d(n,"U",function(){return dt}),e.d(n,"R",function(){return vt}),e.d(n,"S",function(){return gt}),e.d(n,"_7",function(){return bt}),e.d(n,"_8",function(){return mt})},199:function(t,n,e){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])};return function(n,e){function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),i=this&&this.__assign||Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};Object.defineProperty(n,"__esModule",{value:!0}),e(615);var o=e(0),u=e(616),a=e(35),s=e(17),c=e(11),f=e(87),l=e(143),h=e(3),d=e(5),p=e(67),v=e(18),g=e(13),y=e(6),b=e(48),m=e(1),_=e(16),x=e(12),w=e(4),S=e(10),M=e(7),O=e(8),E=e(2),C=e(485),A=e(617),N=e(131),T=e(124),F=e(85),P=e(619),R=function(t){function n(e,r,i,o){var a=t.call(this,e,n.ID,i)||this;return a.element=e,a.options=r,a.slider=o,a.isSimpleSliderConfig=!1,a.isFieldValueCompatible=!1,a.isEmpty=!1,a.options=O.ComponentOptions.initComponentOptions(e,n,r),a.isSimpleSliderConfig=null!=a.options.start&&null!=a.options.end,P.ResponsiveFacetSlider.init(a.root,a,a.options),null==a.options.excludeOuterBounds&&(a.options.excludeOuterBounds=!1),a.normalizeStartAndEndOptionsValues(),a.facetQueryController=new u.FacetSliderQueryController(a),a.bindQueryStateEvents(),a.bindQueryEvents(),a.bindResizeEvents(),a.bindBreadcrumbEvents(),a.bind.onRootElement(f.SearchAlertsEvents.searchAlertsPopulateMessage,function(t){return a.handlePopulateSearchAlerts(t)}),a}return r(n,t),n.prototype.isCurrentlyDisplayed=function(){return!!m.$$(this.element).isVisible()&&!m.$$(this.element).hasClass("coveo-disabled-empty")},n.prototype.createDom=function(){this.facetHeader=new C.FacetHeader({field:this.options.field,facetElement:this.element,title:this.options.title,enableClearElement:!0,enableCollapseElement:!0,facetSlider:this}),this.element.appendChild(this.facetHeader.build())},n.prototype.reset=function(){this.slider&&(this.slider.initializeState(),this.updateQueryState(),this.updateAppearanceDependingOnState())},n.prototype.getSelectedValues=function(){return void 0!=this.startOfSlider&&void 0!=this.endOfSlider?[this.startOfSlider,this.endOfSlider]:[void 0,void 0]},n.prototype.setSelectedValues=function(t){this.setupSliderIfNeeded(void 0),this.startOfSlider=t[0],this.endOfSlider=t[1],this.slider.setValues([this.startOfSlider,this.endOfSlider]),this.updateAppearanceDependingOnState()},n.prototype.isActive=function(){return!(isNaN(this.startOfSlider)||isNaN(this.endOfSlider)||isNaN(this.initialStartOfSlider)||isNaN(this.initialEndOfSlider)||this.startOfSlider==this.initialStartOfSlider&&this.endOfSlider==this.initialEndOfSlider)},n.prototype.getSliderBoundaryForQuery=function(){var t=!1;return this.slider?this.slider&&this.isActive()&&(t=!0):t=!0,t?this.generateBoundary():void 0},n.prototype.drawDelayedGraphData=function(){null==this.delayedGraphData||this.isEmpty||this.slider.drawGraph(this.delayedGraphData),this.delayedGraphData=null},n.prototype.hasAGraph=function(){return void 0!=this.options.graph},n.prototype.normalizeStartAndEndOptionsValues=function(){this.options.start&&(this.options.start=this.options.dateField?new Date(this.options.start.replace(/-/g,"/")).getTime():Number(this.options.start)),this.options.end&&(this.options.end=this.options.dateField?new Date(this.options.end.replace(/-/g,"/")).getTime():Number(this.options.end))},n.prototype.bindQueryEvents=function(){var t=this;this.bind.onRootElement(c.QueryEvents.newQuery,function(){return t.handleNewQuery()}),this.bind.onRootElement(c.QueryEvents.noResults,function(){return t.handleNoresults()}),this.bind.onRootElement(c.QueryEvents.deferredQuerySuccess,function(n){return t.handleDeferredQuerySuccess(n)}),this.bind.onRootElement(c.QueryEvents.buildingQuery,function(n){return t.handleBuildingQuery(n)}),this.bind.onRootElement(c.QueryEvents.doneBuildingQuery,function(n){return t.handleDoneBuildingQuery(n)})},n.prototype.bindResizeEvents=function(){var t=this;this.onResize=o.debounce(function(){N.ResponsiveComponentsUtils.shouldDrawFacetSlider(m.$$(t.root),m.$$(t.element))&&t.slider&&!t.isEmpty&&(t.delayedGraphData?t.drawDelayedGraphData():t.slider.drawGraph()),t.slider&&t.slider.onMoving()},250),window.addEventListener("resize",this.onResize),this.bind.onRootElement(T.ResponsiveDropdownEvent.OPEN,this.onResize),this.bind.onRootElement("onPopupOpen",this.onResize),m.$$(this.root).on(s.InitializationEvents.nuke,function(){return t.handleNuke()})},n.prototype.bindBreadcrumbEvents=function(){var t=this;this.bind.onRootElement(a.BreadcrumbEvents.clearBreadcrumb,function(){return t.reset()}),this.bind.onRootElement(a.BreadcrumbEvents.populateBreadcrumb,function(n){return t.handlePopulateBreadcrumb(n)})},n.prototype.handleNoresults=function(){this.isEmpty=!0,this.updateAppearanceDependingOnState()},n.prototype.handleNewQuery=function(){this.isEmpty=!1},n.prototype.handleRangeQueryStateChanged=function(t){this.setupSliderIfNeeded(t),this.startOfSlider=void 0==t.value[0]?this.startOfSlider:t.value[0],this.endOfSlider=void 0==t.value[1]?this.endOfSlider:t.value[1],this.setSelectedValues([this.startOfSlider,this.endOfSlider])},n.prototype.handlePopulateBreadcrumb=function(t){var n=this,e=function(){n.isActive()&&t.breadcrumbs.push({element:n.buildBreadcrumbFacetSlider(t.headingLevel)})};this.slider?e():m.$$(this.root).one(c.QueryEvents.deferredQuerySuccess,function(){e(),m.$$(n.root).trigger(a.BreadcrumbEvents.redrawBreadcrumb)})},n.prototype.handlePopulateSearchAlerts=function(t){this.isActive()&&t.text.push(m.$$(this.buildBreadcrumbFacetSlider()).text())},n.prototype.buildBreadcrumbFacetSlider=function(t){var n=this,e=m.$$("div",{className:"coveo-facet-slider-breadcrumb"}).el,r=m.$$(b.getHeadingTag(t,"span"),{className:"coveo-facet-slider-breadcrumb-title"});r.text(this.options.title+": "),e.appendChild(r.el);var i=m.$$("span",{className:"coveo-facet-slider-breadcrumb-values"});e.appendChild(i.el);var o=m.$$("span",{className:"coveo-facet-slider-breadcrumb-value"}),u=m.$$("span",{className:"coveo-facet-slider-breadcrumb-caption"});u.text(this.slider.getCaption()),o.append(u.el),i.el.appendChild(o.el);var a=m.$$("span",{className:"coveo-facet-slider-breadcrumb-clear"},x.SVGIcons.icons.mainClear);return _.SVGDom.addClassToSVGInContainer(a.el,"coveo-facet-slider-clear-svg"),o.el.appendChild(a.el),o.on("click",function(){n.reset(),n.usageAnalytics.logSearchEvent(S.analyticsActionCauseList.facetClearAll,{facetId:n.options.id,facetField:n.options.field.toString(),facetTitle:n.options.title}),n.queryController.executeQuery()}),e},n.prototype.initSlider=function(){this.buildSlider(),this.slider.initializeState([this.startOfSlider,this.endOfSlider]),this.updateAppearanceDependingOnState()},n.prototype.bindQueryStateEvents=function(){var t=this;this.rangeQueryStateAttribute=g.QueryStateModel.getFacetId(this.options.id)+":range",this.queryStateModel.registerNewAttribute(this.rangeQueryStateAttribute,[void 0,void 0]);var n=this.queryStateModel.getEventName(v.Model.eventTypes.changeOne+this.rangeQueryStateAttribute);this.bind.onRootElement(n,function(n){t.slider?t.handleRangeQueryStateChanged(n):t.setRangeStateSliderStillNotCreated(n)})},n.prototype.setRangeStateSliderStillNotCreated=function(t){this.rangeFromUrlState=this.copyValues(t.value)},n.prototype.buildSlider=function(){var t=this,n=m.$$("div",{className:"coveo-slider-container"}).el;this.hasAGraph()&&m.$$(n).addClass("coveo-with-graph");var e=m.$$("div").el;this.slider=this.slider?this.slider:new A.Slider(e,i({},this.options,{dateField:this.options.dateField}),this.root),m.$$(e).on(l.SliderEvents.endSlide,function(n,e){t.handleEndSlide(e)}),m.$$(e).on(l.SliderEvents.duringSlide,function(n,e){t.handleDuringSlide(e)}),this.hasAGraph()&&m.$$(e).on(l.SliderEvents.graphValueSelected,function(n,e){t.handleGraphValueSelected(e)}),n.appendChild(e),this.element.appendChild(n),this.updateAppearanceDependingOnState()},n.prototype.handleBuildingQuery=function(t){d.Assert.exists(t),d.Assert.exists(t.queryBuilder);var n=this.getSliderBoundaryForQuery();if(void 0!=n){this.facetQueryController.prepareForNewQuery();var e=this.facetQueryController.computeOurFilterExpression(n);w.Utils.isNonEmptyString(e)&&(this.logger.trace("Putting filter in query",e),t.queryBuilder.advancedExpression.add(e))}},n.prototype.handleDoneBuildingQuery=function(t){var n=t.queryBuilder;this.facetQueryController.putGroupByIntoQueryBuilder(n)},n.prototype.handleDeferredQuerySuccess=function(t){this.ensureDom(),this.setupSliderIfNeeded(t);var n=t.results.groupByResults[this.facetQueryController.lastGroupByRequestIndex];this.isEmpty=this.isFacetEmpty(n,t),this.updateAppearanceDependingOnState(),this.hasAGraph()&&this.renderToSliderGraph(t)},n.prototype.handleEndSlide=function(t){var n=t.slider.getValues();this.startOfSlider=n[0],this.endOfSlider=n[1],this.updateQueryState(n)&&(this.updateAppearanceDependingOnState(),this.usageAnalytics.logSearchEvent(S.analyticsActionCauseList.facetRangeSlider,{facetId:this.options.id,facetField:this.options.field.toString(),facetRangeStart:this.startOfSlider.toString(),facetRangeEnd:this.endOfSlider.toString()}),this.queryController.executeQuery())},n.prototype.handleDuringSlide=function(t){var n=t.slider.getValues();this.startOfSlider=n[0],this.endOfSlider=n[1],this.slider.setValues([this.startOfSlider,this.endOfSlider]),this.updateAppearanceDependingOnState(!0)},n.prototype.handleGraphValueSelected=function(t){(this.options.rangeSlider&&this.startOfSlider!=t.start||this.endOfSlider!=t.end)&&(this.options.rangeSlider&&(this.startOfSlider=t.start),this.endOfSlider=t.end,this.slider.setValues([this.startOfSlider,this.endOfSlider]),this.updateQueryState(),this.usageAnalytics.logSearchEvent(S.analyticsActionCauseList.facetRangeGraph,{facetId:this.options.id,facetField:this.options.field.toString(),facetRangeStart:this.startOfSlider.toString(),facetRangeEnd:this.endOfSlider.toString()}),this.queryController.executeQuery())},n.prototype.updateQueryState=function(t,n){void 0===t&&(t=this.slider.getValues()),void 0===n&&(n=!1);var e=this.copyValues(t),r=t[0]+0,i=t[1]+0,o=this.queryStateModel.get(this.rangeQueryStateAttribute);return(null==o||e[0]!=o[0]||e[1]!=o[1])&&(e[0]=r,e[1]=i,this.queryStateModel.set(this.rangeQueryStateAttribute,e,{silent:n}),!0)},n.prototype.copyValues=function(t){var n=[];return n[0]=Number(t[0])+0,n[1]=Number(t[1])+0,n},n.prototype.renderToSliderGraph=function(t){var n,e=this,r=t.results.groupByResults[this.facetQueryController.graphGroupByQueriesIndex],i=0;r&&(n=o.map(r.values,function(t){i+=t.numberOfResults;var n=t.value.split("..")[0],r=t.value.split("..")[1];return e.options.dateField?(n=new Date(n.split("@")[0]).getTime(),r=new Date(r.split("@")[0]).getTime()):(n=Number(n),r=Number(r)),{start:n,y:t.numberOfResults,end:r,isDate:e.options.dateField}})),0==i&&(this.isEmpty=!0,this.updateAppearanceDependingOnState()),void 0==n||this.isDropdownHidden()?void 0!=n&&this.isDropdownHidden()&&(this.delayedGraphData=n):p.Defer.defer(function(){return e.slider.drawGraph(n)})},n.prototype.isDropdownHidden=function(){var t=this.root.querySelector(".coveo-facet-column");if(t)return"none"==m.$$(t).css("display");if(m.$$(this.root).hasClass("CoveoRecommendation")){var n=m.$$(this.root).parents(".coveo-recommendation-column")[0]||this.root;return"none"==m.$$(n).css("display")}return!1},n.prototype.generateBoundary=function(){if(this.slider){var t=this.generateBoundaryFromSlider();return void 0==t[0]&&void 0==t[1]?this.generateBoundaryFromState():t}return this.generateBoundaryFromState()},n.prototype.generateBoundaryFromSlider=function(){var t,n;return void 0!=this.startOfSlider&&(t=this.startOfSlider),void 0!=this.endOfSlider&&(n=this.endOfSlider),[t,n]},n.prototype.generateBoundaryFromState=function(){var t,n,e=this.queryStateModel.get(this.rangeQueryStateAttribute)[0];void 0!=e&&(t=e);var r=this.queryStateModel.get(this.rangeQueryStateAttribute)[1];return void 0!=r&&(n=r),t!=this.queryStateModel.getDefault(this.rangeQueryStateAttribute)[0]||n!=this.queryStateModel.getDefault(this.rangeQueryStateAttribute)[1]?[t,n]:[void 0,void 0]},n.prototype.setupSliderIfNeeded=function(t){if(this.ensureDom(),w.Utils.isNullOrUndefined(this.slider)){this.alreadySetBoundary()||this.trySetSliderBoundaryFromOptions(),this.alreadySetBoundary()||void 0==t||this.trySetSliderBoundaryFromQueryResult(t),this.trySetSliderBoundaryFromState(),this.setupSliderStateVariables();this.verifySetup()?this.logger.warn("Unable to initialize slider with current values",this):(this.initSlider(),this.updateQueryState())}},n.prototype.verifySetup=function(){var t=0;return t+=void 0==this.initialStartOfSlider?1:0,t+=isNaN(this.initialStartOfSlider)?1:0,t+=void 0==this.initialEndOfSlider?1:0,t+=isNaN(this.initialEndOfSlider)?1:0},n.prototype.setupSliderStateVariables=function(){isNaN(this.initialStartOfSlider)||isNaN(this.initialEndOfSlider)?this.logger.warn("Cannnot initialize slider with those values : start: "+this.initialStartOfSlider+" end: "+this.initialEndOfSlider):(this.initialStartOfSlider=Number(this.initialStartOfSlider),this.initialEndOfSlider=Number(this.initialEndOfSlider),this.startOfSlider=void 0!=this.startOfSlider?Number(this.startOfSlider):this.initialStartOfSlider,this.endOfSlider=void 0!=this.endOfSlider?Number(this.endOfSlider):this.initialEndOfSlider,this.options.start=this.initialStartOfSlider,this.options.end=this.initialEndOfSlider,this.queryStateModel.setNewDefault(this.rangeQueryStateAttribute,[this.initialStartOfSlider,this.initialEndOfSlider]))},n.prototype.alreadySetBoundary=function(){return void 0!=this.startOfSlider&&void 0!=this.endOfSlider},n.prototype.trySetSliderBoundaryFromOptions=function(){w.Utils.isNullOrUndefined(this.options.start)||this.setupInitialSliderStateStart(this.options.start),w.Utils.isNullOrUndefined(this.options.end)||this.setupInitialSliderStateEnd(this.options.end)},n.prototype.trySetSliderBoundaryFromState=function(){var t=this.getBoundariesFromState();t&&(this.setupInitialSliderStateStart(t.start),this.setupInitialSliderStateEnd(t.end),this.startOfSlider=t.start,this.endOfSlider=t.end)},n.prototype.trySetSliderBoundaryFromQueryResult=function(t){var n=t.results.groupByResults[this.facetQueryController.lastGroupByRequestForFullRangeIndex];if(n&&!(n.values.length<=0)&&0!=n.values[0].numberOfResults){var e=n.values[0].value.split("..")[0],r=n.values[n.values.length-1].value.split("..")[1];if(this.isValueADate(e)&&this.isValueADate(r))return this.setupInitialSliderStateStart(e),void this.setupInitialSliderStateEnd(r);var i=this.getBoundariesFromState(),o=Number(e),u=Number(r);i&&(o=Math.min(o,i.start),u=Math.max(u,i.end)),this.setupInitialSliderStateStart(o),this.setupInitialSliderStateEnd(u)}},n.prototype.getBoundariesFromState=function(){var t=this.rangeFromUrlState||this.queryStateModel.get(this.rangeQueryStateAttribute);if(t&&void 0!=t[0]&&void 0!=t[1]){var n=Number(t[0]),e=Number(t[1]);if(!isNaN(n)&&!isNaN(e))return{start:n,end:e}}},n.prototype.setupInitialSliderStateStart=function(t){void 0==this.initialStartOfSlider&&(this.initialStartOfSlider=t,this.isValueADate(t)&&(this.initialStartOfSlider=this.getTimeFromAPIResponse(t)))},n.prototype.setupInitialSliderStateEnd=function(t){void 0==this.initialEndOfSlider&&(this.initialEndOfSlider=t,this.isValueADate(t)&&(this.initialEndOfSlider=this.getTimeFromAPIResponse(t)))},n.prototype.getTimeFromAPIResponse=function(t){return new Date(t.replace("@"," ")).getTime()},n.prototype.isValueADate=function(t){return this.options.dateField&&isNaN(t)},n.prototype.updateAppearanceDependingOnState=function(t){var n=this;void 0===t&&(t=!1),p.Defer.defer(function(){!n.isEmpty||n.isActive()||t?(m.$$(n.element).removeClass("coveo-disabled-empty"),m.$$(n.facetHeader.eraserElement).toggle(n.isActive())):m.$$(n.element).addClass("coveo-disabled-empty"),n.isActive()||t?m.$$(n.element).removeClass("coveo-disabled"):m.$$(n.element).addClass("coveo-disabled"),n.isActive()&&n.slider&&n.slider.onMoving()})},n.prototype.handleNuke=function(){window.removeEventListener("resize",this.onResize)},n.prototype.isFacetEmpty=function(t,n){return w.Utils.isNullOrUndefined(t)||o.every(t.values,function(t){return w.Utils.isNullOrUndefined(t)||0===t.numberOfResults})||0==n.results.results.length},n.options=i({title:O.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return y.l("NoTitle")},section:"CommonOptions"}),dateField:O.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"CommonOptions"}),field:O.ComponentOptions.buildFieldOption({groupByField:!0,required:!0,section:"CommonOptions"}),id:O.ComponentOptions.buildStringOption({postProcessing:function(t,n){return t||n.field}}),dateFormat:O.ComponentOptions.buildStringOption({section:"Display"}),queryOverride:O.ComponentOptions.buildQueryExpressionOption({section:"Filtering"}),start:O.ComponentOptions.buildStringOption({section:"Filtering"}),end:O.ComponentOptions.buildStringOption({section:"Filtering"}),excludeOuterBounds:O.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"Filtering"}),rounded:O.ComponentOptions.buildNumberOption({min:0,section:"Filtering"}),steps:O.ComponentOptions.buildNumberOption({min:2}),rangeSlider:O.ComponentOptions.buildBooleanOption(),displayAsValue:O.ComponentOptions.buildObjectOption({subOptions:{enable:O.ComponentOptions.buildBooleanOption({defaultValue:!0}),unitSign:O.ComponentOptions.buildStringOption(),separator:O.ComponentOptions.buildStringOption({defaultValue:"-"})},section:"Display"}),displayAsPercent:O.ComponentOptions.buildObjectOption({subOptions:{enable:O.ComponentOptions.buildBooleanOption({defaultValue:!1}),separator:O.ComponentOptions.buildStringOption({defaultValue:"-"})},section:"Display"}),graph:O.ComponentOptions.buildObjectOption({subOptions:{steps:O.ComponentOptions.buildNumberOption({min:2}),animationDuration:O.ComponentOptions.buildNumberOption({min:0}),margin:O.ComponentOptions.buildObjectOption({subOptions:{top:O.ComponentOptions.buildNumberOption({min:0}),bottom:O.ComponentOptions.buildNumberOption({min:0}),left:O.ComponentOptions.buildNumberOption({min:0}),right:O.ComponentOptions.buildNumberOption({min:0})}})},section:"Graph"}),getSteps:O.ComponentOptions.buildCustomOption(function(){return null}),valueCaption:O.ComponentOptions.buildCustomOption(function(){return null})},F.ResponsiveFacetOptions),n.ID="FacetSlider",n.doExport=function(){h.exportGlobally({FacetSlider:n,Slider:A.Slider})},n.DEBOUNCED_RESIZE_DELAY=250,n}(M.Component);n.FacetSlider=R,E.Initialization.registerAutoCreateComponent(R)},216:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),e(536);var r=e(11),i=e(9),o=e(6),u=e(1),a=e(4),s=e(7),c=e(19),f=e(55),l=e(62),h=e(131),d=e(124),p=e(94),v=e(136),g=e(0),y=e(47),b=e(537),m=e(86),_=e(538),x=function(){function t(t,n,e,r){this.coveoRoot=t,this.ID=n,this.componentsInFacetColumn=[],this.preservePositionOriginalValues=[],this.searchInterface=s.Component.get(this.coveoRoot.el,c.SearchInterface,!1),this.dropdownHeaderLabel=this.getDropdownHeaderLabel(),this.dropdown=this.buildDropdown(r),this.bindDropdownContentEvents(),this.bindFacetsMobileModeEvents(),this.registerOnCloseHandler(),this.registerQueryEvents(),this.initializeBreakpoint(e.responsiveBreakpoint)}return t.init=function(n,e,r,i,o){this.findColumn(e)&&(l.ResponsiveComponentsManager.register(t,u.$$(e),"ResponsiveFacetColumn",r,i),l.ResponsiveComponentsManager.register(n,u.$$(e),o,r,i))},t.findColumn=function(t){var n=u.$$(t).find(".coveo-facet-column");return n||this.logger.info("No element with class coveo-facet-column. Responsive facets cannot be enabled"),n},Object.defineProperty(t.prototype,"facetsMobileModeComponent",{get:function(){return this.searchInterface?this.searchInterface.getComponents(m.FacetsMobileMode.ID)[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"facetsMobileModeOptions",{get:function(){var n=this.facetsMobileModeComponent;return n?n.options:(t.logger.warn('The "FacetsMobileMode" component did not load properly, disabling the ResponsiveFacets modal.'),{isModal:!1,preventScrolling:!1,displayOverlayWhileOpen:!0})},enumerable:!0,configurable:!0}),t.prototype.registerComponent=function(t){return this.componentsInFacetColumn.push(t),this.preservePositionOriginalValues.push(t.options.preservePosition),!0},t.prototype.needDropdownWrapper=function(){return this.needSmallMode()},t.prototype.handleResizeEvent=function(){this.needSmallMode()&&!h.ResponsiveComponentsUtils.isSmallFacetActivated(this.coveoRoot)?this.changeToSmallMode():!this.needSmallMode()&&h.ResponsiveComponentsUtils.isSmallFacetActivated(this.coveoRoot)&&this.changeToLargeMode(),this.dropdown.isOpened&&this.dropdown.dropdownContent.positionDropdown()},t.prototype.dismissFacetSearches=function(){g.each(this.componentsInFacetColumn,function(t){t.facetSearch&&t.facetSearch.currentlyDisplayedResults&&t.facetSearch.dismissSearchResults()})},t.prototype.needSmallMode=function(){if(!this.searchInterface)return this.coveoRoot.width()<=(a.Utils.isNullOrUndefined(this.breakpoint)?(new f.ResponsiveComponents).getMediumScreenWidth():this.breakpoint);switch(this.searchInterface.responsiveComponents.getResponsiveMode()){case"small":case"medium":return!0;case"auto":return this.coveoRoot.width()<=(a.Utils.isNullOrUndefined(this.breakpoint)?this.searchInterface.responsiveComponents.getMediumScreenWidth():this.breakpoint);default:return!1}},t.prototype.changeToSmallMode=function(){this.dropdown.close(),this.disableFacetPreservePosition(),u.$$(this.coveoRoot.find("."+l.ResponsiveComponentsManager.DROPDOWN_HEADER_WRAPPER_CSS_CLASS)).append(this.dropdown.dropdownHeader.element.el),h.ResponsiveComponentsUtils.activateSmallFacet(this.coveoRoot)},t.prototype.changeToLargeMode=function(){this.restoreFacetPreservePositionValue(),this.dropdown.cleanUp(),h.ResponsiveComponentsUtils.deactivateSmallFacet(this.coveoRoot)},t.prototype.buildDropdown=function(t){var n=this.buildDropdownContent(),e=this.buildDropdownHeader(),r=t||new d.ResponsiveDropdown(n,e,this.coveoRoot);return this.facetsMobileModeOptions.displayOverlayWhileOpen||r.disablePopupBackground(),this.facetsMobileModeOptions.preventScrolling&&r.enableScrollLocking(this.facetsMobileModeOptions.scrollContainer),r},t.prototype.buildDropdownContent=function(){var n=this,e=u.$$(this.coveoRoot.find(".coveo-facet-column")),r=u.$$("div",{className:"coveo-facet-header-filter-by-container",style:"display: none"}),i=u.$$("div",{className:"coveo-facet-header-filter-by"});return i.text(o.l("Filter by:")),r.append(i.el),e.prepend(r.el),this.facetsMobileModeOptions.isModal?new b.ResponsiveDropdownModalContent("facet",e,o.l("CloseFiltersDropdown"),function(){return n.dropdown.close()}):new p.ResponsiveDropdownContent("facet",e,this.coveoRoot,t.DROPDOWN_MIN_WIDTH,t.DROPDOWN_WIDTH_RATIO)},t.prototype.buildDropdownHeader=function(){var t=u.$$("a"),n=u.$$("p");return n.text(this.dropdownHeaderLabel),t.el.appendChild(n.el),new v.ResponsiveDropdownHeader("facet",t)},t.prototype.initializeBreakpoint=function(t){var n=this.facetsMobileModeOptions.breakpoint;this.breakpoint=a.Utils.isNullOrUndefined(n)?t:n},t.prototype.registerOnCloseHandler=function(){this.dropdown.registerOnCloseHandler(this.dismissFacetSearches,this)},t.prototype.registerQueryEvents=function(){var t=this;this.coveoRoot.on(r.QueryEvents.noResults,function(){return t.handleNoResults()}),this.coveoRoot.on(r.QueryEvents.querySuccess,function(n,e){return t.handleQuerySuccess(e)}),this.coveoRoot.on(r.QueryEvents.queryError,function(){return t.handleQueryError()})},t.prototype.bindDropdownContentEvents=function(){var n=this;this.dropdown.dropdownContent.element.on("scroll",g.debounce(function(){g.each(n.componentsInFacetColumn,function(t){var e=t.facetSearch;e&&e.currentlyDisplayedResults&&!n.isFacetSearchScrolledIntoView(e.search)?t.facetSearch.positionSearchResults(n.dropdown.dropdownContent.element.el):e&&t.facetSearch.currentlyDisplayedResults&&t.facetSearch.positionSearchResults()})},t.DEBOUNCE_SCROLL_WAIT))},t.prototype.bindFacetsMobileModeEvents=function(){var t=this.facetsMobileModeComponent;t&&(this.dropdown.registerOnOpenHandler(function(){return u.$$(t.element).trigger(_.FacetsMobileModeEvents.popupOpened)},t),this.dropdown.registerOnCloseHandler(function(){return u.$$(t.element).trigger(_.FacetsMobileModeEvents.popupClosed)},t))},t.prototype.restoreFacetPreservePositionValue=function(){var t=this;g.each(this.componentsInFacetColumn,function(n,e){n.options&&(n.options.preservePosition=t.preservePositionOriginalValues[e])})},t.prototype.disableFacetPreservePosition=function(){g.each(this.componentsInFacetColumn,function(t){t.options&&(t.options.preservePosition=!1)})},t.prototype.isFacetSearchScrolledIntoView=function(t){var n=t.getBoundingClientRect().top,e=t.getBoundingClientRect().bottom,r=this.dropdown.dropdownContent.element.el.getBoundingClientRect().top,i=this.dropdown.dropdownContent.element.el.getBoundingClientRect().bottom;return r=r>=0?r:0,n>=r&&e<=i},t.prototype.getDropdownHeaderLabel=function(){var n;return y.ComponentsTypes.getAllFacetInstancesFromElement(this.coveoRoot.find(".coveo-facet-column")).forEach(function(t){var e=t.options;!n&&e.dropdownHeaderLabel&&(n=e.dropdownHeaderLabel)}),n||(n=o.l(t.DROPDOWN_HEADER_LABEL_DEFAULT_VALUE)),n},t.prototype.handleNoResults=function(){this.dropdown.dropdownHeader.hide()},t.prototype.handleQueryError=function(){this.dropdown.dropdownHeader.hide()},t.prototype.handleQuerySuccess=function(t){0===t.results.totalCount?this.dropdown.dropdownHeader.hide():this.dropdown.dropdownHeader.show()},t.DEBOUNCE_SCROLL_WAIT=250,t.logger=new i.Logger("ResponsiveFacets"),t.DROPDOWN_MIN_WIDTH=280,t.DROPDOWN_WIDTH_RATIO=.35,t.DROPDOWN_HEADER_LABEL_DEFAULT_VALUE="Filters",t}();n.ResponsiveFacetColumn=x},233:function(t,n,e){"use strict";function r(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function i(t){if(!(n=l.exec(t)))throw new Error("invalid format: "+t);var n;return new o({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function u(t){return d=S(t),p=d.format,v=d.formatPrefix,d}var a=function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},s=function(t){return t=r(Math.abs(t)),t?t[1]:NaN},c=function(t,n){return function(e,r){for(var i=e.length,o=[],u=0,a=t[0],s=0;i>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),o.push(e.substring(i-=a,i+a)),!((s+=a+1)>r));)a=t[u=(u+1)%t.length];return o.reverse().join(n)}},f=function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}},l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var h,d,p,v,g=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t},y=function(t,n){var e=r(t,n);if(!e)return t+"";var i=e[0],o=e[1],u=o-(h=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=i.length;return u===a?i:u>a?i+new Array(u-a+1).join("0"):u>0?i.slice(0,u)+"."+i.slice(u):"0."+new Array(1-u).join("0")+r(t,Math.max(0,n+u-1))[0]},b=function(t,n){var e=r(t,n);if(!e)return t+"";var i=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")},m={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:a,e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return b(100*t,n)},r:b,s:y,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},_=function(t){return t},x=Array.prototype.map,w=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],S=function(t){function n(t){function n(t){var n,i,o,u=O,f=E;if("c"===M)f=C(t)+f,t="";else{t=+t;var d=t<0||1/t<0;if(t=isNaN(t)?v:C(Math.abs(t),x),S&&(t=g(t)),d&&0==+t&&"+"!==c&&(d=!1),u=(d?"("===c?c:p:"-"===c||"("===c?"":c)+u,f=("s"===M?w[8+h/3]:"")+f+(d&&"("===c?")":""),A)for(n=-1,i=t.length;++n<i;)if(48>(o=t.charCodeAt(n))||o>57){f=(46===o?a+t.slice(n+1):t.slice(n))+f,t=t.slice(0,n);break}}_&&!y&&(t=r(t,1/0));var m=u.length+t.length+f.length,N=m<b?new Array(b-m+1).join(e):"";switch(_&&y&&(t=r(N+t,N.length?b-f.length:1/0),N=""),s){case"<":t=u+t+f+N;break;case"=":t=u+N+t+f;break;case"^":t=N.slice(0,m=N.length>>1)+u+t+f+N.slice(m);break;default:t=N+u+t+f}return l(t)}t=i(t);var e=t.fill,s=t.align,c=t.sign,f=t.symbol,y=t.zero,b=t.width,_=t.comma,x=t.precision,S=t.trim,M=t.type;"n"===M?(_=!0,M="g"):m[M]||(void 0===x&&(x=12),S=!0,M="g"),(y||"0"===e&&"="===s)&&(y=!0,e="0",s="=");var O="$"===f?o:"#"===f&&/[boxX]/.test(M)?"0"+M.toLowerCase():"",E="$"===f?u:/[%p]/.test(M)?d:"",C=m[M],A=/[defgprs%]/.test(M);return x=void 0===x?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),n.toString=function(){return t+""},n}function e(t,e){var r=n((t=i(t),t.type="f",t)),o=3*Math.max(-8,Math.min(8,Math.floor(s(e)/3))),u=Math.pow(10,-o),a=w[8+o/3];return function(t){return r(u*t)+a}}var r=void 0===t.grouping||void 0===t.thousands?_:c(x.call(t.grouping,Number),t.thousands+""),o=void 0===t.currency?"":t.currency[0]+"",u=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?_:f(x.call(t.numerals,String)),d=void 0===t.percent?"%":t.percent+"",p=void 0===t.minus?"-":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";return{format:n,formatPrefix:e}};u({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var M=function(t){return Math.max(0,-s(Math.abs(t)))},O=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(s(n)/3)))-s(Math.abs(t)))},E=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,s(n)-s(t))+1};e.d(n,"c",function(){return u}),e.d(n,"b",function(){return p}),e.d(n,"e",function(){return v}),e.d(n,"d",function(){return S}),e.d(n,"f",function(){return i}),e.d(n,"a",function(){return o}),e.d(n,"g",function(){return M}),e.d(n,"h",function(){return O}),e.d(n,"i",function(){return E})},234:function(t,n,e){"use strict";function r(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function i(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function o(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function u(t){function n(t,n){return function(e){var r,i,o,u=[],a=-1,s=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++a<c;)37===t.charCodeAt(a)&&(u.push(t.slice(s,a)),null!=(i=Nt[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),u.push(r),s=a+1);return u.push(t.slice(s,a)),u.join("")}}function e(t,n){return function(e){var a,s,c=o(1900,void 0,1),f=u(c,t,e+="",0);if(f!=e.length)return null;if("Q"in c)return new Date(c.Q);if("s"in c)return new Date(1e3*c.s+("L"in c?c.L:0));if(!n||"Z"in c||(c.Z=0),"p"in c&&(c.H=c.H%12+12*c.p),void 0===c.m&&(c.m="q"in c?c.q:0),"V"in c){if(c.V<1||c.V>53)return null;"w"in c||(c.w=1),"Z"in c?(a=i(o(c.y,0,1)),s=a.getUTCDay(),a=s>4||0===s?At.P.ceil(a):Object(At.P)(a),a=At.F.offset(a,7*(c.V-1)),c.y=a.getUTCFullYear(),c.m=a.getUTCMonth(),c.d=a.getUTCDate()+(c.w+6)%7):(a=r(o(c.y,0,1)),s=a.getDay(),a=s>4||0===s?At.l.ceil(a):Object(At.l)(a),a=At.a.offset(a,7*(c.V-1)),c.y=a.getFullYear(),c.m=a.getMonth(),c.d=a.getDate()+(c.w+6)%7)}else("W"in c||"U"in c)&&("w"in c||(c.w="u"in c?c.u%7:"W"in c?1:0),s="Z"in c?i(o(c.y,0,1)).getUTCDay():r(o(c.y,0,1)).getDay(),c.m=0,c.d="W"in c?(c.w+6)%7+7*c.W-(s+5)%7:c.w+7*c.U-(s+6)%7);return"Z"in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,i(c)):r(c)}}function u(t,n,e,r){for(var i,o,u=0,a=n.length,s=e.length;u<a;){if(r>=s)return-1;if(37===(i=n.charCodeAt(u++))){if(i=n.charAt(u++),!(o=on[i in Nt?n.charAt(u++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function a(t,n,e){var r=Qt.exec(n.slice(e));return r?(t.p=Ht[r[0].toLowerCase()],e+r[0].length):-1}function s(t,n,e){var r=Xt.exec(n.slice(e));return r?(t.w=Zt[r[0].toLowerCase()],e+r[0].length):-1}function q(t,n,e){var r=Yt.exec(n.slice(e));return r?(t.w=Wt[r[0].toLowerCase()],e+r[0].length):-1}function st(t,n,e){var r=tn.exec(n.slice(e));return r?(t.m=nn[r[0].toLowerCase()],e+r[0].length):-1}function _t(t,n,e){var r=Kt.exec(n.slice(e));return r?(t.m=Jt[r[0].toLowerCase()],e+r[0].length):-1}function xt(t,n,e){return u(t,$t,n,e)}function wt(t,n,e){return u(t,Ut,n,e)}function St(t,n,e){return u(t,zt,n,e)}function Mt(t){return jt[t.getDay()]}function Ot(t){return qt[t.getDay()]}function Et(t){return Gt[t.getMonth()]}function Ct(t){return Vt[t.getMonth()]}function Tt(t){return Lt[+(t.getHours()>=12)]}function Ft(t){return 1+~~(t.getMonth()/3)}function Pt(t){return jt[t.getUTCDay()]}function Rt(t){return qt[t.getUTCDay()]}function Bt(t){return Gt[t.getUTCMonth()]}function Dt(t){return Vt[t.getUTCMonth()]}function kt(t){return Lt[+(t.getUTCHours()>=12)]}function It(t){return 1+~~(t.getUTCMonth()/3)}var $t=t.dateTime,Ut=t.date,zt=t.time,Lt=t.periods,qt=t.days,jt=t.shortDays,Vt=t.months,Gt=t.shortMonths,Qt=c(Lt),Ht=f(Lt),Yt=c(qt),Wt=f(qt),Xt=c(jt),Zt=f(jt),Kt=c(Vt),Jt=f(Vt),tn=c(Gt),nn=f(Gt),en={a:Mt,A:Ot,b:Et,B:Ct,c:null,d:F,e:F,f:k,g:H,G:W,H:P,I:R,j:B,L:D,m:I,M:$,p:Tt,q:Ft,Q:bt,s:mt,S:U,u:z,U:L,V:j,w:V,W:G,x:null,X:null,y:Q,Y:Y,Z:X,"%":yt},rn={a:Pt,A:Rt,b:Bt,B:Dt,c:null,d:Z,e:Z,f:et,g:dt,G:vt,H:K,I:J,j:tt,L:nt,m:rt,M:it,p:kt,q:It,Q:bt,s:mt,S:ot,u:ut,U:at,V:ct,w:ft,W:lt,x:null,X:null,y:ht,Y:pt,Z:gt,"%":yt},on={a:s,A:q,b:st,B:_t,c:xt,d:x,e:x,f:C,g:y,G:g,H:S,I:S,j:w,L:E,m:_,M:M,p:a,q:m,Q:N,s:T,S:O,u:h,U:d,V:p,w:l,W:v,x:wt,X:St,y:y,Y:g,Z:b,"%":A};return en.x=n(Ut,en),en.X=n(zt,en),en.c=n($t,en),rn.x=n(Ut,rn),rn.X=n(zt,rn),rn.c=n($t,rn),{format:function(t){var e=n(t+="",en);return e.toString=function(){return t},e},parse:function(t){var n=e(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var e=n(t+="",rn);return e.toString=function(){return t},e},utcParse:function(t){var n=e(t+="",!0);return n.toString=function(){return t},n}}}function a(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function s(t){return t.replace(Pt,"\\$&")}function c(t){return new RegExp("^(?:"+t.map(s).join("|")+")","i")}function f(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function l(t,n,e){var r=Tt.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function h(t,n,e){var r=Tt.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function d(t,n,e){var r=Tt.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function p(t,n,e){var r=Tt.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function v(t,n,e){var r=Tt.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function g(t,n,e){var r=Tt.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function y(t,n,e){var r=Tt.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function b(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function m(t,n,e){var r=Tt.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function _(t,n,e){var r=Tt.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function x(t,n,e){var r=Tt.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function w(t,n,e){var r=Tt.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function S(t,n,e){var r=Tt.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function M(t,n,e){var r=Tt.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function O(t,n,e){var r=Tt.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function E(t,n,e){var r=Tt.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function C(t,n,e){var r=Tt.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function A(t,n,e){var r=Ft.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function N(t,n,e){var r=Tt.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function T(t,n,e){var r=Tt.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function F(t,n){return a(t.getDate(),n,2)}function P(t,n){return a(t.getHours(),n,2)}function R(t,n){return a(t.getHours()%12||12,n,2)}function B(t,n){return a(1+At.a.count(Object(At.D)(t),t),n,3)}function D(t,n){return a(t.getMilliseconds(),n,3)}function k(t,n){return D(t,n)+"000"}function I(t,n){return a(t.getMonth()+1,n,2)}function $(t,n){return a(t.getMinutes(),n,2)}function U(t,n){return a(t.getSeconds(),n,2)}function z(t){var n=t.getDay();return 0===n?7:n}function L(t,n){return a(At.t.count(Object(At.D)(t)-1,t),n,2)}function q(t){var n=t.getDay();return n>=4||0===n?Object(At.v)(t):At.v.ceil(t)}function j(t,n){return t=q(t),a(At.v.count(Object(At.D)(t),t)+(4===Object(At.D)(t).getDay()),n,2)}function V(t){return t.getDay()}function G(t,n){return a(At.l.count(Object(At.D)(t)-1,t),n,2)}function Q(t,n){return a(t.getFullYear()%100,n,2)}function H(t,n){return t=q(t),a(t.getFullYear()%100,n,2)}function Y(t,n){return a(t.getFullYear()%1e4,n,4)}function W(t,n){var e=t.getDay();return t=e>=4||0===e?Object(At.v)(t):At.v.ceil(t),a(t.getFullYear()%1e4,n,4)}function X(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+a(n/60|0,"0",2)+a(n%60,"0",2)}function Z(t,n){return a(t.getUTCDate(),n,2)}function K(t,n){return a(t.getUTCHours(),n,2)}function J(t,n){return a(t.getUTCHours()%12||12,n,2)}function tt(t,n){return a(1+At.F.count(Object(At._7)(t),t),n,3)}function nt(t,n){return a(t.getUTCMilliseconds(),n,3)}function et(t,n){return nt(t,n)+"000"}function rt(t,n){return a(t.getUTCMonth()+1,n,2)}function it(t,n){return a(t.getUTCMinutes(),n,2)}function ot(t,n){return a(t.getUTCSeconds(),n,2)}function ut(t){var n=t.getUTCDay();return 0===n?7:n}function at(t,n){return a(At.X.count(Object(At._7)(t)-1,t),n,2)}function st(t){var n=t.getUTCDay();return n>=4||0===n?Object(At.Z)(t):At.Z.ceil(t)}function ct(t,n){return t=st(t),a(At.Z.count(Object(At._7)(t),t)+(4===Object(At._7)(t).getUTCDay()),n,2)}function ft(t){return t.getUTCDay()}function lt(t,n){return a(At.P.count(Object(At._7)(t)-1,t),n,2)}function ht(t,n){return a(t.getUTCFullYear()%100,n,2)}function dt(t,n){return t=st(t),a(t.getUTCFullYear()%100,n,2)}function pt(t,n){return a(t.getUTCFullYear()%1e4,n,4)}function vt(t,n){var e=t.getUTCDay();return t=e>=4||0===e?Object(At.Z)(t):At.Z.ceil(t),a(t.getUTCFullYear()%1e4,n,4)}function gt(){return"+0000"}function yt(){return"%"}function bt(t){return+t}function mt(t){return Math.floor(+t/1e3)}function _t(t){return St=u(t),Mt=St.format,Ot=St.parse,Et=St.utcFormat,Ct=St.utcParse,St}function xt(t){return t.toISOString()}function wt(t){var n=new Date(t);return isNaN(n)?null:n}var St,Mt,Ot,Et,Ct,At=e(188),Nt={"-":"",_:" ",0:"0"},Tt=/^\s*\d+/,Ft=/^%/,Pt=/[\\^$*+?|[\]().{}]/g;_t({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",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"]});var Rt=Date.prototype.toISOString?xt:Et("%Y-%m-%dT%H:%M:%S.%LZ"),Bt=Rt,Dt=+new Date("2000-01-01T00:00:00.000Z")?wt:Ct("%Y-%m-%dT%H:%M:%S.%LZ"),kt=Dt;e.d(n,"d",function(){return _t}),e.d(n,"c",function(){return Mt}),e.d(n,"f",function(){return Ot}),e.d(n,"g",function(){return Et}),e.d(n,"h",function(){return Ct}),e.d(n,"e",function(){return u}),e.d(n,"a",function(){return Bt}),e.d(n,"b",function(){return kt})},32:function(t,n,e){"use strict";function r(t){return function(n,e){return s(t(n),e)}}function i(t,n){return[t,n]}function o(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=C?10:o>=A?5:o>=N?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=C?10:o>=A?5:o>=N?2:1)}function u(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=C?i*=10:o>=A?i*=5:o>=N&&(i*=2),n<t?-i:i}function a(t){return t.length}var s=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},c=function(t){return 1===t.length&&(t=r(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}},f=c(s),l=f.right,h=f.left,d=l,p=function(t,n){null==n&&(n=i);for(var e=0,r=t.length-1,o=t[0],u=new Array(r<0?0:r);e<r;)u[e]=n(o,o=t[++e]);return u},v=function(t,n,e){var r,o,u,a,s=t.length,c=n.length,f=new Array(s*c);for(null==e&&(e=i),r=u=0;r<s;++r)for(a=t[r],o=0;o<c;++o,++u)f[u]=e(a,n[o]);return f},g=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},y=function(t){return null===t?NaN:+t},b=function(t,n){var e,r,i=t.length,o=0,u=-1,a=0,s=0;if(null==n)for(;++u<i;)isNaN(e=y(t[u]))||(r=e-a,a+=r/++o,s+=r*(e-a));else for(;++u<i;)isNaN(e=y(n(t[u],u,t)))||(r=e-a,a+=r/++o,s+=r*(e-a));if(o>1)return s/(o-1)},m=function(t,n){var e=b(t,n);return e?Math.sqrt(e):e},_=function(t,n){var e,r,i,o=t.length,u=-1;if(null==n){for(;++u<o;)if(null!=(e=t[u])&&e>=e)for(r=i=e;++u<o;)null!=(e=t[u])&&(r>e&&(r=e),i<e&&(i=e))}else for(;++u<o;)if(null!=(e=n(t[u],u,t))&&e>=e)for(r=i=e;++u<o;)null!=(e=n(t[u],u,t))&&(r>e&&(r=e),i<e&&(i=e));return[r,i]},x=Array.prototype,w=x.slice,S=x.map,M=function(t){return function(){return t}},O=function(t){return t},E=function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o},C=Math.sqrt(50),A=Math.sqrt(10),N=Math.sqrt(2),T=function(t,n,e){var r,i,u,a,s=-1;if(n=+n,t=+t,e=+e,t===n&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(a=o(t,n,e))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),n=Math.floor(n/a),u=new Array(i=Math.ceil(n-t+1));++s<i;)u[s]=(t+s)*a;else for(t=Math.floor(t*a),n=Math.ceil(n*a),u=new Array(i=Math.ceil(t-n+1));++s<i;)u[s]=(t-s)/a;return r&&u.reverse(),u},F=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},P=function(){function t(t){var i,o,a=t.length,s=new Array(a);for(i=0;i<a;++i)s[i]=n(t[i],i,t);var c=e(s),f=c[0],l=c[1],h=r(s,f,l);Array.isArray(h)||(h=u(f,l,h),h=E(Math.ceil(f/h)*h,l,h));for(var p=h.length;h[0]<=f;)h.shift(),--p;for(;h[p-1]>l;)h.pop(),--p;var v,g=new Array(p+1);for(i=0;i<=p;++i)v=g[i]=[],v.x0=i>0?h[i-1]:f,v.x1=i<p?h[i]:l;for(i=0;i<a;++i)o=s[i],f<=o&&o<=l&&g[d(h,o,0,p)].push(t[i]);return g}var n=O,e=_,r=F;return t.value=function(e){return arguments.length?(n="function"==typeof e?e:M(e),t):n},t.domain=function(n){return arguments.length?(e="function"==typeof n?n:M([n[0],n[1]]),t):e},t.thresholds=function(n){return arguments.length?(r="function"==typeof n?n:M(Array.isArray(n)?w.call(n):n),t):r},t},R=function(t,n,e){if(null==e&&(e=y),r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),u=+e(t[o],o,t);return u+(+e(t[o+1],o+1,t)-u)*(i-o)}},B=function(t,n,e){return t=S.call(t,y).sort(s),Math.ceil((e-n)/(2*(R(t,.75)-R(t,.25))*Math.pow(t.length,-1/3)))},D=function(t,n,e){return Math.ceil((e-n)/(3.5*m(t)*Math.pow(t.length,-1/3)))},k=function(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o<i;)if(null!=(e=t[o])&&e>=e)for(r=e;++o<i;)null!=(e=t[o])&&e>r&&(r=e)}else for(;++o<i;)if(null!=(e=n(t[o],o,t))&&e>=e)for(r=e;++o<i;)null!=(e=n(t[o],o,t))&&e>r&&(r=e);return r},I=function(t,n){var e,r=t.length,i=r,o=-1,u=0;if(null==n)for(;++o<r;)isNaN(e=y(t[o]))?--i:u+=e;else for(;++o<r;)isNaN(e=y(n(t[o],o,t)))?--i:u+=e;if(i)return u/i},$=function(t,n){var e,r=t.length,i=-1,o=[];if(null==n)for(;++i<r;)isNaN(e=y(t[i]))||o.push(e);else for(;++i<r;)isNaN(e=y(n(t[i],i,t)))||o.push(e);return R(o.sort(s),.5)},U=function(t){for(var n,e,r,i=t.length,o=-1,u=0;++o<i;)u+=t[o].length;for(e=new Array(u);--i>=0;)for(r=t[i],n=r.length;--n>=0;)e[--u]=r[n];return e},z=function(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o<i;)if(null!=(e=t[o])&&e>=e)for(r=e;++o<i;)null!=(e=t[o])&&r>e&&(r=e)}else for(;++o<i;)if(null!=(e=n(t[o],o,t))&&e>=e)for(r=e;++o<i;)null!=(e=n(t[o],o,t))&&r>e&&(r=e);return r},L=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},q=function(t,n){if(e=t.length){var e,r,i=0,o=0,u=t[o];for(null==n&&(n=s);++i<e;)(n(r=t[i],u)<0||0!==n(u,u))&&(u=r,o=i);return 0===n(u,u)?o:void 0}},j=function(t,n,e){for(var r,i,o=(null==e?t.length:e)-(n=null==n?0:+n);o;)i=Math.random()*o--|0,r=t[o+n],t[o+n]=t[i+n],t[i+n]=r;return t},V=function(t,n){var e,r=t.length,i=-1,o=0;if(null==n)for(;++i<r;)(e=+t[i])&&(o+=e);else for(;++i<r;)(e=+n(t[i],i,t))&&(o+=e);return o},G=function(t){if(!(i=t.length))return[];for(var n=-1,e=z(t,a),r=new Array(e);++n<e;)for(var i,o=-1,u=r[n]=new Array(i);++o<i;)u[o]=t[o][n];return r},Q=function(){return G(arguments)};e.d(n,"b",function(){return d}),e.d(n,"d",function(){return l}),e.d(n,"c",function(){return h}),e.d(n,"a",function(){return s}),e.d(n,"e",function(){return c}),e.d(n,"f",function(){return v}),e.d(n,"g",function(){return g}),e.d(n,"h",function(){return m}),e.d(n,"i",function(){return _}),e.d(n,"j",function(){return P}),e.d(n,"w",function(){return B}),e.d(n,"x",function(){return D}),e.d(n,"y",function(){return F}),e.d(n,"k",function(){return k}),e.d(n,"l",function(){return I}),e.d(n,"m",function(){return $}),e.d(n,"n",function(){return U}),e.d(n,"o",function(){return z}),e.d(n,"p",function(){return p}),e.d(n,"q",function(){return L}),e.d(n,"r",function(){return R}),e.d(n,"s",function(){return E}),e.d(n,"t",function(){return q}),e.d(n,"u",function(){return j}),e.d(n,"v",function(){return V}),e.d(n,"B",function(){return T}),e.d(n,"z",function(){return o}),e.d(n,"A",function(){return u}),e.d(n,"C",function(){return G}),e.d(n,"D",function(){return b}),e.d(n,"E",function(){return Q})},471:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(31),i=e(0),o=e(1),u=function(){function t(t,n){void 0===n&&(n={focusableSelector:"[tabindex], button"}),this.container=t,this.options=n,this.hiddenElements=[],this.enable()}return Object.defineProperty(t.prototype,"focusableElements",{get:function(){return i.chain(o.Dom.nodeListToArray(this.container.querySelectorAll(this.options.focusableSelector))).filter(function(t){return o.$$(t).isVisible()}).sortBy(function(t){return t.tabIndex}).value()},enumerable:!0,configurable:!0}),t.prototype.disable=function(){document.removeEventListener("focusin",this.focusInEvent),document.removeEventListener("focusout",this.focusOutEvent),this.showHiddenElements(),this.enabled=!1},t.prototype.enable=function(){var t=this;document.addEventListener("focusin",this.focusInEvent=function(n){return t.onFocusIn(n)}),document.addEventListener("focusout",this.focusOutEvent=function(n){return t.onFocusOut(n)}),this.hideAllExcept(this.container),this.enabled=!0},t.prototype.showHiddenElements=function(){for(;this.hiddenElements.length;)this.hiddenElements.pop().removeAttribute("aria-hidden")},t.prototype.hideElement=function(t){t.getAttribute("aria-hidden")||(this.hiddenElements.push(t),t.setAttribute("aria-hidden",""+!0))},t.prototype.hideSiblings=function(t){var n=this,e=t.parentElement;e&&i.without(o.$$(e).children(),t).forEach(function(t){n.hideElement(t)})},t.prototype.hideAllExcept=function(t){this.hideSiblings(t);var n=t.parentElement;n&&n!==document.body&&this.hideAllExcept(n)},t.prototype.getFocusableSibling=function(t,n){void 0===n&&(n=!1);var e=this.focusableElements,r=e.indexOf(t);return-1===r?null:e[(r+(n?-1:1)+e.length)%e.length]},t.prototype.focusSibling=function(t,n){void 0===n&&(n=!1);var e=this.getFocusableSibling(t,n);e&&e.focus()},t.prototype.focusFirstElement=function(){var t=this.focusableElements;t.length&&t[0].focus()},t.prototype.elementIsBefore=function(t,n){return!!n&&t.compareDocumentPosition(n)===Node.DOCUMENT_POSITION_PRECEDING},t.prototype.onLosingFocus=function(t,n){var e=this;r.Defer.defer(function(){e.enabled&&(e.enabled=!1,t&&e.focusIsAllowed(t)?e.focusSibling(t,e.elementIsBefore(t,n)):e.focusFirstElement(),e.enabled=!0)})},t.prototype.focusIsAllowed=function(t){return this.container.contains(t)},t.prototype.elementIsInPage=function(t){return t&&t!==document.body.parentElement},t.prototype.onFocusIn=function(t){if(this.enabled){var n=t.relatedTarget;if(!this.elementIsInPage(n)){var e=t.target;this.elementIsInPage(e)&&(this.focusIsAllowed(e)||this.onLosingFocus(null,e))}}},t.prototype.onFocusOut=function(t){if(this.enabled){var n=t.relatedTarget;this.elementIsInPage(n)&&(n&&this.focusIsAllowed(n)||this.onLosingFocus(t.target,n))}},t}();n.FocusTrap=u},485:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(1),i=e(6),o=e(10);e(539);var u=e(12),a=e(16),s=e(15),c=function(){function t(t){this.options=t,this.element=document.createElement("div"),r.$$(this.element).addClass("coveo-facet-header")}return t.prototype.build=function(){var t=r.$$("div",{className:"coveo-facet-header-title-section"});void 0!=this.options.icon&&(this.iconElement=this.buildIcon(),t.append(this.iconElement)),t.append(this.buildTitle()),this.waitElement=this.buildWaitAnimation(),t.append(this.waitElement),this.element.appendChild(t.el);var n=r.$$("div",{className:"coveo-facet-header-settings-section"});return this.eraserElement=this.buildEraser(),n.append(this.eraserElement),this.options.facet&&(this.operatorElement=this.buildOperatorToggle(),n.append(this.operatorElement),r.$$(this.operatorElement).toggle(this.options.facet.options.enableTogglingOperator)),this.options.settingsKlass?(this.sort=this.settings=new this.options.settingsKlass(this.options.availableSorts,this.options.facet),n.append(this.settings.build())):this.options.sortKlass&&(this.sort=new this.options.sortKlass(this.options.availableSorts,this.options.facet)),this.element.appendChild(n.el),this.element},t.prototype.switchToAnd=function(){this.options.facet&&(this.options.facet.options.useAnd=!0,this.rebuildOperatorToggle(),this.updateOperatorQueryStateModel())},t.prototype.switchToOr=function(){this.options.facet&&(this.options.facet.options.useAnd=!1,this.rebuildOperatorToggle(),this.updateOperatorQueryStateModel())},t.prototype.collapseFacet=function(){this.collapseElement&&this.expandElement&&(r.$$(this.collapseElement).hide(),r.$$(this.expandElement).show()),r.$$(this.options.facetElement).addClass("coveo-facet-collapsed")},t.prototype.expandFacet=function(){this.collapseElement&&this.expandElement&&(r.$$(this.expandElement).hide(),r.$$(this.collapseElement).show()),r.$$(this.options.facetElement).removeClass("coveo-facet-collapsed")},t.prototype.updateOperatorQueryStateModel=function(){if(this.options.facet&&this.options.facet.options.enableTogglingOperator){var t="";0==this.options.facet.getSelectedValues().length&&0==this.options.facet.getExcludedValues().length||(t=this.options.facet.options.useAnd?"and":"or"),this.options.facet.queryStateModel.set(this.options.facet.operatorAttributeId,t)}},t.prototype.rebuildOperatorToggle=function(){var t=this.buildOperatorToggle();this.operatorElement&&r.$$(this.operatorElement).replaceWith(t),this.operatorElement=t},t.prototype.buildIcon=function(){var t;return t=this.options.icon?"coveo-icon-custom "+this.options.icon:"coveo-icon "+this.options.field.substr(1),this.iconElement=document.createElement("div"),r.$$(this.iconElement).addClass(t),this.iconElement},t.prototype.buildWaitAnimation=function(){return this.waitElement=r.$$("div",{className:"coveo-facet-header-wait-animation"},u.SVGIcons.icons.loading).el,a.SVGDom.addClassToSVGInContainer(this.waitElement,"coveo-facet-header-wait-animation-svg"),this.waitElement.style.visibility="hidden",this.waitElement},t.prototype.buildOperatorToggle=function(){var t=this,n=i.l("SwitchTo",this.options.facet.options.useAnd?i.l("Or"):i.l("And")),e=r.$$("span",{className:"coveo-"+(this.options.facet.options.useAnd?"and":"or")},u.SVGIcons.icons.orAnd);a.SVGDom.addClassToSVGInContainer(e.el,"coveo-or-and-svg");var o=r.$$("div",{className:"coveo-facet-header-operator",title:n});return o.append(e.el),(new s.AccessibleButton).withElement(o).withLabel(n).withSelectAction(function(){return t.handleOperatorClick()}).build(),o.el},t.prototype.handleOperatorClick=function(){var t=this;if(this.options.facet.options.useAnd?this.options.facet.switchToOr():this.options.facet.switchToAnd(),0!=this.options.facet.getSelectedValues().length){var n=this.options.facet.options.useAnd?"AND":"OR",e=this.options.facet.options.useAnd?"OR":"AND";this.options.facet.triggerNewQuery(function(){return t.options.facet.usageAnalytics.logSearchEvent(o.analyticsActionCauseList.facetToggle,{facetId:t.options.facet.options.id,facetField:t.options.field.toString(),facetOperatorBefore:e,facetOperatorAfter:n,facetTitle:t.options.title})})}},t.prototype.buildTitle=function(){var t=r.$$("div",{className:"coveo-facet-header-title"});return t.text(this.options.title),t.setAttribute("role","heading"),t.setAttribute("aria-level","2"),t.setAttribute("aria-label",i.l("FacetTitle",this.options.title)+"."),t.el},t.prototype.buildEraser=function(){var t=this,n=r.$$("div",{className:"coveo-facet-header-eraser"},u.SVGIcons.icons.mainClear);return a.SVGDom.addClassToSVGInContainer(n.el,"coveo-facet-header-eraser-svg"),(new s.AccessibleButton).withElement(n.el).withLabel(i.l("Clear",this.options.title)).withClickAction(function(){return t.onEraserClick()}).withEnterKeyboardAction(function(){return t.onEraserClick()}).build(),n.el},t.prototype.onEraserClick=function(){var t=this.options.facet||this.options.facetSlider;t.reset(),t.usageAnalytics.logSearchEvent(o.analyticsActionCauseList.facetClearAll,{facetId:t.options.id,facetField:t.options.field.toString(),facetTitle:t.options.title}),t.queryController.executeQuery()},t}();n.FacetHeader=c},524:function(t,n,e){"use strict";function r(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function i(t,n){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(n).domain(t)}return this}function o(){function t(t){var r=t+"",o=n.get(r);if(!o){if(u!==lt)return u;n.set(r,o=e.push(t))}return i[(o-1)%i.length]}var n=Object(at.c)(),e=[],i=[],u=lt;return t.domain=function(r){if(!arguments.length)return e.slice();e=[],n=Object(at.c)();for(var i,o,u=-1,a=r.length;++u<a;)n.has(o=(i=r[u])+"")||n.set(o,e.push(i));return t},t.range=function(n){return arguments.length?(i=ft.call(n),t):i.slice()},t.unknown=function(n){return arguments.length?(u=n,t):u},t.copy=function(){return o(e,i).unknown(u)},r.apply(t,arguments),t}function u(){function t(){var t=a().length,r=c[1]<c[0],i=c[r-0],o=c[1-r];n=(o-i)/Math.max(1,t-l+2*h),f&&(n=Math.floor(n)),i+=(o-i-n*(t-l))*d,e=n*(1-l),f&&(i=Math.round(i),e=Math.round(e));var u=Object(ut.s)(t).map(function(t){return i+n*t});return s(r?u.reverse():u)}var n,e,i=o().unknown(void 0),a=i.domain,s=i.range,c=[0,1],f=!1,l=0,h=0,d=.5;return delete i.unknown,i.domain=function(n){return arguments.length?(a(n),t()):a()},i.range=function(n){return arguments.length?(c=[+n[0],+n[1]],t()):c.slice()},i.rangeRound=function(n){return c=[+n[0],+n[1]],f=!0,t()},i.bandwidth=function(){return e},i.step=function(){return n},i.round=function(n){return arguments.length?(f=!!n,t()):f},i.padding=function(n){return arguments.length?(l=Math.min(1,h=+n),t()):l},i.paddingInner=function(n){return arguments.length?(l=Math.min(1,n),t()):l},i.paddingOuter=function(n){return arguments.length?(h=+n,t()):h},i.align=function(n){return arguments.length?(d=Math.max(0,Math.min(1,n)),t()):d},i.copy=function(){return u(a(),c).round(f).paddingInner(l).paddingOuter(h).align(d)},r.apply(t(),arguments)}function a(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return a(n())},t}function s(){return a(u.apply(null,arguments).paddingInner(1))}function c(t){return t}function f(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:dt(isNaN(n)?NaN:.5)}function l(t){var n,e=t[0],r=t[t.length-1];return e>r&&(n=e,e=r,r=n),function(t){return Math.max(e,Math.min(r,t))}}function h(t,n,e){var r=t[0],i=t[1],o=n[0],u=n[1];return i<r?(r=f(i,r),o=e(u,o)):(r=f(r,i),o=e(o,u)),function(t){return o(r(t))}}function d(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),o=new Array(r),u=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<r;)i[u]=f(t[u],t[u+1]),o[u]=e(n[u],n[u+1]);return function(n){var e=Object(ut.b)(t,n,1,r)-1;return o[e](i[e](n))}}function p(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function v(){function t(){return o=Math.min(s.length,f.length)>2?d:h,u=a=null,n}function n(t){return isNaN(t=+t)?i:(u||(u=o(s.map(e),f,p)))(e(v(t)))}var e,r,i,o,u,a,s=vt,f=vt,p=ht.a,v=c;return n.invert=function(t){return v(r((a||(a=o(f,s.map(e),ht.o)))(t)))},n.domain=function(n){return arguments.length?(s=ct.call(n,pt),v===c||(v=l(s)),t()):s.slice()},n.range=function(n){return arguments.length?(f=ft.call(n),t()):f.slice()},n.rangeRound=function(n){return f=ft.call(n),p=ht.u,t()},n.clamp=function(t){return arguments.length?(v=t?l(s):c,n):v!==c},n.interpolate=function(n){return arguments.length?(p=n,t()):p},n.unknown=function(t){return arguments.length?(i=t,n):i},function(n,i){return e=n,r=i,t()}}function g(t,n){return v()(t,n)}function y(t){var n=t.domain;return t.ticks=function(t){var e=n();return Object(ut.B)(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return yt(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),o=0,u=i.length-1,a=i[o],s=i[u];return s<a&&(r=a,a=s,s=r,r=o,o=u,u=r),r=Object(ut.z)(a,s,e),r>0?(a=Math.floor(a/r)*r,s=Math.ceil(s/r)*r,r=Object(ut.z)(a,s,e)):r<0&&(a=Math.ceil(a*r)/r,s=Math.floor(s*r)/r,r=Object(ut.z)(a,s,e)),r>0?(i[o]=Math.floor(a/r)*r,i[u]=Math.ceil(s/r)*r,n(i)):r<0&&(i[o]=Math.ceil(a*r)/r,i[u]=Math.floor(s*r)/r,n(i)),t},t}function b(){var t=g(c,c);return t.copy=function(){return p(t,b())},r.apply(t,arguments),y(t)}function m(t){function n(t){return isNaN(t=+t)?e:t}var e;return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=ct.call(e,pt),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return m(t).unknown(e)},t=arguments.length?ct.call(t,pt):[0,1],y(n)}function _(t){return Math.log(t)}function x(t){return Math.exp(t)}function w(t){return-Math.log(-t)}function S(t){return-Math.exp(-t)}function M(t){return isFinite(t)?+("1e"+t):t<0?0:t}function O(t){return 10===t?M:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}function E(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}function C(t){return function(n){return-t(-n)}}function A(t){function n(){return e=E(u),r=O(u),o()[0]<0?(e=C(e),r=C(r),t(w,S)):t(_,x),i}var e,r,i=t(_,x),o=i.domain,u=10;return i.base=function(t){return arguments.length?(u=+t,n()):u},i.domain=function(t){return arguments.length?(o(t),n()):o()},i.ticks=function(t){var n,i=o(),a=i[0],s=i[i.length-1];(n=s<a)&&(h=a,a=s,s=h);var c,f,l,h=e(a),d=e(s),p=null==t?10:+t,v=[];if(!(u%1)&&d-h<p){if(h=Math.round(h)-1,d=Math.round(d)+1,a>0){for(;h<d;++h)for(f=1,c=r(h);f<u;++f)if(!((l=c*f)<a)){if(l>s)break;v.push(l)}}else for(;h<d;++h)for(f=u-1,c=r(h);f>=1;--f)if(!((l=c*f)<a)){if(l>s)break;v.push(l)}}else v=Object(ut.B)(h,d,Math.min(d-h,p)).map(r);return n?v.reverse():v},i.tickFormat=function(t,n){if(null==n&&(n=10===u?".0e":","),"function"!=typeof n&&(n=Object(gt.b)(n)),t===1/0)return n;null==t&&(t=10);var o=Math.max(1,u*t/i.ticks().length);return function(t){var i=t/r(Math.round(e(t)));return i*u<u-.5&&(i*=u),i<=o?n(t):""}},i.nice=function(){return o(bt(o(),{floor:function(t){return r(Math.floor(e(t)))},ceil:function(t){return r(Math.ceil(e(t)))}}))},i}function N(){var t=A(v()).domain([1,10]);return t.copy=function(){return p(t,N()).base(t.base())},r.apply(t,arguments),t}function T(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function F(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function P(t){var n=1,e=t(T(n),F(n));return e.constant=function(e){return arguments.length?t(T(n=+e),F(n)):n},y(e)}function R(){var t=P(v());return t.copy=function(){return p(t,R()).constant(t.constant())},r.apply(t,arguments)}function B(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function D(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function k(t){return t<0?-t*t:t*t}function I(t){function n(){return 1===r?t(c,c):.5===r?t(D,k):t(B(r),B(1/r))}var e=t(c,c),r=1;return e.exponent=function(t){return arguments.length?(r=+t,n()):r},y(e)}function $(){var t=I(v());return t.copy=function(){return p(t,$()).exponent(t.exponent())},r.apply(t,arguments),t}function U(){return $.apply(null,arguments).exponent(.5)}function z(){function t(){var t=0,e=Math.max(1,o.length);for(u=new Array(e-1);++t<e;)u[t-1]=Object(ut.r)(i,t/e);return n}function n(t){return isNaN(t=+t)?e:o[Object(ut.b)(u,t)]}var e,i=[],o=[],u=[];return n.invertExtent=function(t){var n=o.indexOf(t);return n<0?[NaN,NaN]:[n>0?u[n-1]:i[0],n<u.length?u[n]:i[i.length-1]]},n.domain=function(n){if(!arguments.length)return i.slice();i=[];for(var e,r=0,o=n.length;r<o;++r)null==(e=n[r])||isNaN(e=+e)||i.push(e);return i.sort(ut.a),t()},n.range=function(n){return arguments.length?(o=ft.call(n),t()):o.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.quantiles=function(){return u.slice()},n.copy=function(){return z().domain(i).range(o).unknown(e)},r.apply(n,arguments)}function L(){function t(t){return t<=t?s[Object(ut.b)(a,t,0,u)]:e}function n(){var n=-1;for(a=new Array(u);++n<u;)a[n]=((n+1)*o-(n-u)*i)/(u+1);return t}var e,i=0,o=1,u=1,a=[.5],s=[0,1];return t.domain=function(t){return arguments.length?(i=+t[0],o=+t[1],n()):[i,o]},t.range=function(t){return arguments.length?(u=(s=ft.call(t)).length-1,n()):s.slice()},t.invertExtent=function(t){var n=s.indexOf(t);return n<0?[NaN,NaN]:n<1?[i,a[0]]:n>=u?[a[u-1],o]:[a[n-1],a[n]]},t.unknown=function(n){return arguments.length?(e=n,t):t},t.thresholds=function(){return a.slice()},t.copy=function(){return L().domain([i,o]).range(s).unknown(e)},r.apply(y(t),arguments)}function q(){function t(t){return t<=t?i[Object(ut.b)(e,t,0,o)]:n}var n,e=[.5],i=[0,1],o=1;return t.domain=function(n){return arguments.length?(e=ft.call(n),o=Math.min(e.length,i.length-1),t):e.slice()},t.range=function(n){return arguments.length?(i=ft.call(n),o=Math.min(e.length,i.length-1),t):i.slice()},t.invertExtent=function(t){var n=i.indexOf(t);return[e[n-1],e[n]]},t.unknown=function(e){return arguments.length?(n=e,t):n},t.copy=function(){return q().domain(e).range(i).unknown(n)},r.apply(t,arguments)}function j(t){return new Date(t)}function V(t){return t instanceof Date?+t:+new Date(+t)}function G(t,n,e,r,i,o,u,a,s){function f(a){return(u(a)<a?y:o(a)<a?b:i(a)<a?m:r(a)<a?_:n(a)<a?e(a)<a?x:w:t(a)<a?S:M)(a)}function l(n,e,r,i){if(null==n&&(n=10),"number"==typeof n){var o=Math.abs(r-e)/n,u=Object(ut.e)(function(t){return t[2]}).right(O,o);u===O.length?(i=Object(ut.A)(e/Ct,r/Ct,n),n=t):u?(u=O[o/O[u-1][2]<O[u][2]/o?u-1:u],i=u[1],n=u[0]):(i=Math.max(Object(ut.A)(e,r,n),1),n=a)}return null==i?n:n.every(i)}var h=g(c,c),d=h.invert,v=h.domain,y=s(".%L"),b=s(":%S"),m=s("%I:%M"),_=s("%I %p"),x=s("%a %d"),w=s("%b %d"),S=s("%B"),M=s("%Y"),O=[[u,1,xt],[u,5,5*xt],[u,15,15*xt],[u,30,30*xt],[o,1,wt],[o,5,5*wt],[o,15,15*wt],[o,30,30*wt],[i,1,St],[i,3,3*St],[i,6,6*St],[i,12,12*St],[r,1,Mt],[r,2,2*Mt],[e,1,Ot],[n,1,Et],[n,3,3*Et],[t,1,Ct]];return h.invert=function(t){return new Date(d(t))},h.domain=function(t){return arguments.length?v(ct.call(t,V)):v().map(j)},h.ticks=function(t,n){var e,r=v(),i=r[0],o=r[r.length-1],u=o<i;return u&&(e=i,i=o,o=e),e=l(t,i,o,n),e=e?e.range(i,o+1):[],u?e.reverse():e},h.tickFormat=function(t,n){return null==n?f:s(n)},h.nice=function(t,n){var e=v();return(t=l(t,e[0],e[e.length-1],n))?v(bt(e,t)):h},h.copy=function(){return p(h,G(t,n,e,r,i,o,u,a,s))},h}function Q(){function t(t){return isNaN(t=+t)?o:s(0===r?.5:(t=(i(t)-n)*r,f?Math.max(0,Math.min(1,t)):t))}var n,e,r,i,o,u=0,a=1,s=c,f=!1;return t.domain=function(o){return arguments.length?(n=i(u=+o[0]),e=i(a=+o[1]),r=n===e?0:1/(e-n),t):[u,a]},t.clamp=function(n){return arguments.length?(f=!!n,t):f},t.interpolator=function(n){return arguments.length?(s=n,t):s},t.unknown=function(n){return arguments.length?(o=n,t):o},function(o){return i=o,n=o(u),e=o(a),r=n===e?0:1/(e-n),t}}function H(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Y(){var t=y(Q()(c));return t.copy=function(){return H(t,Y())},i.apply(t,arguments)}function W(){var t=A(Q()).domain([1,10]);return t.copy=function(){return H(t,W()).base(t.base())},i.apply(t,arguments)}function X(){var t=P(Q());return t.copy=function(){return H(t,X()).constant(t.constant())},i.apply(t,arguments)}function Z(){var t=I(Q());return t.copy=function(){return H(t,Z()).exponent(t.exponent())},i.apply(t,arguments)}function K(){return Z.apply(null,arguments).exponent(.5)}function J(){function t(t){if(!isNaN(t=+t))return e((Object(ut.b)(n,t)-1)/(n.length-1))}var n=[],e=c;return t.domain=function(e){if(!arguments.length)return n.slice();n=[];for(var r,i=0,o=e.length;i<o;++i)null==(r=e[i])||isNaN(r=+r)||n.push(r);return n.sort(ut.a),t},t.interpolator=function(n){return arguments.length?(e=n,t):e},t.copy=function(){return J(e).domain(n)},i.apply(t,arguments)}function tt(){function t(t){return isNaN(t=+t)?a:(t=.5+((t=+u(t))-e)*(t<e?i:o),h(d?Math.max(0,Math.min(1,t)):t))}var n,e,r,i,o,u,a,s=0,f=.5,l=1,h=c,d=!1;return t.domain=function(a){return arguments.length?(n=u(s=+a[0]),e=u(f=+a[1]),r=u(l=+a[2]),i=n===e?0:.5/(e-n),o=e===r?0:.5/(r-e),t):[s,f,l]},t.clamp=function(n){return arguments.length?(d=!!n,t):d},t.interpolator=function(n){return arguments.length?(h=n,t):h},t.unknown=function(n){return arguments.length?(a=n,t):a},function(a){return u=a,n=a(s),e=a(f),r=a(l),i=n===e?0:.5/(e-n),o=e===r?0:.5/(r-e),t}}function nt(){var t=y(tt()(c));return t.copy=function(){return H(t,nt())},i.apply(t,arguments)}function et(){var t=A(tt()).domain([.1,1,10]);return t.copy=function(){return H(t,et()).base(t.base())},i.apply(t,arguments)}function rt(){var t=P(tt());return t.copy=function(){return H(t,rt()).constant(t.constant())},i.apply(t,arguments)}function it(){var t=I(tt());return t.copy=function(){return H(t,it()).exponent(t.exponent())},i.apply(t,arguments)}function ot(){return it.apply(null,arguments).exponent(.5)}Object.defineProperty(n,"__esModule",{value:!0});var ut=e(32),at=e(187),st=Array.prototype,ct=st.map,ft=st.slice,lt={name:"implicit"},ht=e(65),dt=function(t){return function(){return t}},pt=function(t){return+t},vt=[0,1],gt=e(233),yt=function(t,n,e,r){var i,o=Object(ut.A)(t,n,e);switch(r=Object(gt.f)(null==r?",f":r),r.type){case"s":var u=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=Object(gt.h)(o,u))||(r.precision=i),Object(gt.e)(r,u);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Object(gt.i)(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Object(gt.g)(o))||(r.precision=i-2*("%"===r.type))}return Object(gt.b)(r)},bt=function(t,n){t=t.slice();var e,r=0,i=t.length-1,o=t[r],u=t[i];return u<o&&(e=r,r=i,i=e,e=o,o=u,u=e),t[r]=n.floor(o),t[i]=n.ceil(u),t},mt=e(188),_t=e(234),xt=1e3,wt=60*xt,St=60*wt,Mt=24*St,Ot=7*Mt,Et=30*Mt,Ct=365*Mt,At=function(){return r.apply(G(mt.D,mt.n,mt.B,mt.a,mt.e,mt.j,mt.r,mt.h,_t.c).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},Nt=function(){return r.apply(G(mt._7,mt.R,mt._5,mt.F,mt.J,mt.N,mt.V,mt.L,_t.g).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)};e.d(n,"scaleBand",function(){return u}),e.d(n,"scalePoint",function(){return s}),e.d(n,"scaleIdentity",function(){return m}),e.d(n,"scaleLinear",function(){return b}),e.d(n,"scaleLog",function(){return N}),e.d(n,"scaleSymlog",function(){return R}),e.d(n,"scaleOrdinal",function(){return o}),e.d(n,"scaleImplicit",function(){return lt}),e.d(n,"scalePow",function(){return $}),e.d(n,"scaleSqrt",function(){return U}),e.d(n,"scaleQuantile",function(){return z}),e.d(n,"scaleQuantize",function(){return L}),e.d(n,"scaleThreshold",function(){return q}),e.d(n,"scaleTime",function(){return At}),e.d(n,"scaleUtc",function(){return Nt}),e.d(n,"scaleSequential",function(){return Y}),e.d(n,"scaleSequentialLog",function(){return W}),e.d(n,"scaleSequentialPow",function(){return Z}),e.d(n,"scaleSequentialSqrt",function(){return K}),e.d(n,"scaleSequentialSymlog",function(){return X}),e.d(n,"scaleSequentialQuantile",function(){return J}),e.d(n,"scaleDiverging",function(){return nt}),e.d(n,"scaleDivergingLog",function(){return et}),e.d(n,"scaleDivergingPow",function(){return it}),e.d(n,"scaleDivergingSqrt",function(){return ot}),e.d(n,"scaleDivergingSymlog",function(){return rt}),e.d(n,"tickFormat",function(){return yt})},536:function(t,n){},537:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(94),i=e(20),o=e(12),u=e(471),a=function(){function t(t,n,e,r){this.componentName=t,this.element=n,this.closeButtonLabel=e,this.close=r,this.className="coveo-"+this.componentName+"-dropdown-modal-content"}return Object.defineProperty(t.prototype,"hidden",{set:function(t){this.element.toggleClass("coveo-hidden",t)},enumerable:!0,configurable:!0}),t.prototype.positionDropdown=function(){this.element.el.classList.add(this.className,r.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME),this.element.setAttribute("role","group"),this.element.setAttribute("aria-label",i.l("FiltersDropdown")),this.hidden=!1,this.ensureCloseButton(),this.ensureFocusTrap()},t.prototype.hideDropdown=function(){this.element.el.classList.remove(this.className,r.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME),this.element.setAttribute("role",null),this.element.setAttribute("aria-label",null),this.hidden=!0,this.removeCloseButton(),this.removeFocusTrap()},t.prototype.cleanUp=function(){this.hidden=!1},t.prototype.ensureCloseButton=function(){var t=this;this.closeButton||(this.closeButton=i.$$("button",{className:"coveo-facet-modal-close-button",type:"button",ariaLabel:this.closeButtonLabel},o.SVGIcons.icons.mainClear),this.closeButton.on("click",function(){return t.close()}),this.element.prepend(this.closeButton.el))},Object.defineProperty(t.prototype,"focusableSelector",{get:function(){return["[data-field]:not(.coveo-facet-empty) [tabindex]","[data-field]:not(.coveo-hidden) button",".coveo-facet-modal-close-button"].join(" , ")},enumerable:!0,configurable:!0}),t.prototype.ensureFocusTrap=function(){this.focusTrap||(this.focusTrap=new u.FocusTrap(this.element.el,{focusableSelector:this.focusableSelector}))},t.prototype.removeCloseButton=function(){this.closeButton&&(this.closeButton.remove(),this.closeButton=null)},t.prototype.removeFocusTrap=function(){this.focusTrap&&(this.focusTrap.disable(),this.focusTrap=null)},t}();n.ResponsiveDropdownModalContent=a},538:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(){}return t.popupOpened="popupOpened",t.popupClosed="popupClosed",t}();n.FacetsMobileModeEvents=r},539:function(t,n){},54:function(t,n,e){"use strict";function r(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function i(){}function o(){return this.rgb().formatHex()}function u(){return b(this).formatHsl()}function a(){return this.rgb().formatRgb()}function s(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=q.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?c(n):3===e?new d(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?f(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?f(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=j.exec(t))?new d(n[1],n[2],n[3],1):(n=V.exec(t))?new d(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=G.exec(t))?f(n[1],n[2],n[3],n[4]):(n=Q.exec(t))?f(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=H.exec(t))?y(n[1],n[2]/100,n[3]/100,1):(n=Y.exec(t))?y(n[1],n[2]/100,n[3]/100,n[4]):W.hasOwnProperty(t)?c(W[t]):"transparent"===t?new d(NaN,NaN,NaN,0):null}function c(t){return new d(t>>16&255,t>>8&255,255&t,1)}function f(t,n,e,r){return r<=0&&(t=n=e=NaN),new d(t,n,e,r)}function l(t){return t instanceof i||(t=s(t)),t?(t=t.rgb(),new d(t.r,t.g,t.b,t.opacity)):new d}function h(t,n,e,r){return 1===arguments.length?l(t):new d(t,n,e,null==r?1:r)}function d(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function p(){return"#"+g(this.r)+g(this.g)+g(this.b)}function v(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function g(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function y(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new _(t,n,e,r)}function b(t){if(t instanceof _)return new _(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=s(t)),!t)return new _;if(t instanceof _)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,o=Math.min(n,e,r),u=Math.max(n,e,r),a=NaN,c=u-o,f=(u+o)/2;return c?(a=n===u?(e-r)/c+6*(e<r):e===u?(r-n)/c+2:(n-e)/c+4,c/=f<.5?u+o:2-u-o,a*=60):c=f>0&&f<1?0:a,new _(a,c,f,t.opacity)}function m(t,n,e,r){return 1===arguments.length?b(t):new _(t,n,e,null==r?1:r)}function _(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function x(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function w(t){if(t instanceof O)return new O(t.l,t.a,t.b,t.opacity);if(t instanceof R)return B(t);t instanceof d||(t=l(t));var n,e,r=N(t.r),i=N(t.g),o=N(t.b),u=E((.2225045*r+.7168786*i+.0606169*o)/J);return r===i&&i===o?n=e=u:(n=E((.4360747*r+.3850649*i+.1430804*o)/K),e=E((.0139322*r+.0971045*i+.7141733*o)/tt)),new O(116*u-16,500*(n-u),200*(u-e),t.opacity)}function S(t,n){return new O(t,0,0,null==n?1:n)}function M(t,n,e,r){return 1===arguments.length?w(t):new O(t,n,e,null==r?1:r)}function O(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function E(t){return t>it?Math.pow(t,1/3):t/rt+nt}function C(t){return t>et?t*t*t:rt*(t-nt)}function A(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function N(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function T(t){if(t instanceof R)return new R(t.h,t.c,t.l,t.opacity);if(t instanceof O||(t=w(t)),0===t.a&&0===t.b)return new R(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*Z;return new R(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function F(t,n,e,r){return 1===arguments.length?T(t):new R(e,n,t,null==r?1:r)}function P(t,n,e,r){return 1===arguments.length?T(t):new R(t,n,e,null==r?1:r)}function R(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function B(t){if(isNaN(t.h))return new O(t.l,0,0,t.opacity);var n=t.h*X;return new O(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}function D(t){if(t instanceof I)return new I(t.h,t.s,t.l,t.opacity);t instanceof d||(t=l(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(ht*r+ft*n-lt*e)/(ht+ft-lt),o=r-i,u=(ct*(e-i)-at*o)/st,a=Math.sqrt(u*u+o*o)/(ct*i*(1-i)),s=a?Math.atan2(u,o)*Z-120:NaN;return new I(s<0?s+360:s,a,i,t.opacity)}function k(t,n,e,r){return 1===arguments.length?D(t):new I(t,n,e,null==r?1:r)}function I(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}var $=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t},U="\\s*([+-]?\\d+)\\s*",z="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",L="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",q=/^#([0-9a-f]{3,8})$/,j=new RegExp("^rgb\\("+[U,U,U]+"\\)$"),V=new RegExp("^rgb\\("+[L,L,L]+"\\)$"),G=new RegExp("^rgba\\("+[U,U,U,z]+"\\)$"),Q=new RegExp("^rgba\\("+[L,L,L,z]+"\\)$"),H=new RegExp("^hsl\\("+[z,L,L]+"\\)$"),Y=new RegExp("^hsla\\("+[z,L,L,z]+"\\)$"),W={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};$(i,s,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:o,formatHex:o,formatHsl:u,formatRgb:a,toString:a}),$(d,h,r(i,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new d(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new d(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:p,formatHex:p,formatRgb:v,toString:v})),$(_,m,r(i,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new _(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new _(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new d(x(t>=240?t-240:t+120,i,r),x(t,i,r),x(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var X=Math.PI/180,Z=180/Math.PI,K=.96422,J=1,tt=.82521,nt=4/29,et=6/29,rt=3*et*et,it=et*et*et;$(O,M,r(i,{brighter:function(t){return new O(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new O(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return n=K*C(n),t=J*C(t),e=tt*C(e),new d(A(3.1338561*n-1.6168667*t-.4906146*e),A(-.9787684*n+1.9161415*t+.033454*e),A(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),$(R,P,r(i,{brighter:function(t){return new R(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new R(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return B(this).rgb()}}));var ot=-.14861,ut=1.78277,at=-.29227,st=-.90649,ct=1.97294,ft=ct*st,lt=ct*ut,ht=ut*at-st*ot;$(I,k,r(i,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new I(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new I(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*X,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new d(255*(n+e*(ot*r+ut*i)),255*(n+e*(at*r+st*i)),255*(n+e*(ct*r)),this.opacity)}})),e.d(n,"a",function(){return s}),e.d(n,"h",function(){return h}),e.d(n,"e",function(){return m}),e.d(n,"f",function(){return M}),e.d(n,"d",function(){return P}),e.d(n,"g",function(){return F}),e.d(n,"c",function(){return S}),e.d(n,"b",function(){return k})},615:function(t,n){},616:function(t,n,e){"use strict";var r=this&&this.__assign||Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};Object.defineProperty(n,"__esModule",{value:!0});var i=e(0),o=e(11),u=e(9),a=e(75),s=e(49),c=e(33),f=e(21),l=e(4),h=function(){function t(t){var n=this;this.facet=t,this.facet.bind.onRootElement(o.QueryEvents.querySuccess,function(t){return n.handleQuerySuccess(t)})}return t.prototype.prepareForNewQuery=function(){this.lastGroupByRequestIndex=void 0},t.prototype.putGroupByIntoQueryBuilder=function(t){this.facet.options.graph&&this.putGroupByForGraphIntoQueryBuilder(t),this.putGroupByForSliderIntoQueryBuilder(t)},t.prototype.createBasicGroupByRequest=function(){return{field:this.facet.options.field,completeFacetWithStandardValues:!0,allowedValues:void 0}},t.prototype.computeOurFilterExpression=function(t){void 0===t&&(t=[this.facet.startOfSlider,this.facet.endOfSlider]);var n=new a.ExpressionBuilder;return void 0!=t[0]&&void 0!=t[1]&&(this.facet.options.excludeOuterBounds?this.addFilterExpressionWithOuterBoundsExcluded(t[0],t[1],n):this.addFilterExpressionWithOuterBoundsIncluded(t[0],t[1],n)),n.build()},t.prototype.handleQuerySuccess=function(t){var n=this;if(!this.isAValidRangeResponse(t)){var e=new u.Logger(this);return e.error("Cannot instantiate FacetSlider for this field : "+this.facet.options.field+". It needs to be configured as a numerical field in the index"),e.error("Disabling the FacetSlider",this.facet),void this.facet.disable()}if(this.facet.options&&this.facet.options.graph&&void 0==this.rangeValuesForGraphToUse){this.rangeValuesForGraphToUse=[];var r=t.results.groupByResults[this.graphGroupByQueriesIndex],o=r?r.values:[];i.each(o,function(t){var e=t.value.split("..");n.rangeValuesForGraphToUse.push({start:n.facet.options.dateField?n.getISOFormat(e[0].replace("@"," ")):parseInt(e[0],10),end:n.facet.options.dateField?n.getISOFormat(e[1].replace("@"," ")):parseInt(e[1],10)})})}},t.prototype.isAValidRangeResponse=function(t){if(void 0!=this.lastGroupByRequestIndex&&t.results.groupByResults[this.lastGroupByRequestIndex]){var n=t.results.groupByResults[this.lastGroupByRequestIndex].values[0];if(n&&!f.QueryUtils.isRangeString(n.value))return!1}return!0},t.prototype.addFilterExpressionWithOuterBoundsIncluded=function(t,n,e){t==this.facet.options.start&&n==this.facet.options.end||(this.facet.options.dateField&&(t=this.getFilterDateFormat(t),n=this.getFilterDateFormat(n)),e.addFieldExpression(this.facet.options.field,"==",[t+".."+n]))},t.prototype.addFilterExpressionWithOuterBoundsExcluded=function(t,n,e){var r=this.facet.options.start,i=this.facet.options.end,o=t,u=n;this.facet.options.dateField?(o=this.getFilterDateFormat(t),u=this.getFilterDateFormat(n),r=this.getFilterDateFormat(r),i=this.getFilterDateFormat(i)):(o+="",u+="",r+="",i+=""),o!=r&&u==i?e.addFieldExpression(this.facet.options.field,">=",[o]):o==r&&u!=i?e.addFieldExpression(this.facet.options.field,"<=",[u]):this.addFilterExpressionWithOuterBoundsIncluded(t,n,e)},t.prototype.putGroupByForGraphIntoQueryBuilder=function(t){this.graphGroupByQueriesIndex=t.groupByRequests.length;var n=this.createBasicGroupByRequest();this.facet.isSimpleSliderConfig?(n.rangeValues=this.createRangeValuesForGraphUsingStartAndEnd(),n.generateAutomaticRanges=!1):n.generateAutomaticRanges=!0,this.addExpressionToExcludeInvalidDates(n);var e=this.computeOurFilterExpression(this.facet.getSliderBoundaryForQuery());this.processQueryOverride(e,n,t),n.sortCriteria="nosort",n.maximumNumberOfValues=this.facet.options.graph.steps,t.groupByRequests.push(n)},t.prototype.putGroupByForSliderIntoQueryBuilder=function(t){this.lastGroupByRequestIndex=t.groupByRequests.length;var n=this.putGroupByBasicSliderIntoQueryBuilder(t);this.putGroupByForFullRangeSliderIntoQueryBuilder(t,n)},t.prototype.processQueryOverride=function(t,n,e){var r;r=void 0!=t?e.computeCompleteExpressionPartsExcept(t):e.computeCompleteExpressionParts();var i=this.facet.options.queryOverride||"@uri";n.queryOverride=this.appendOrSetGroupByOverrideParam(n.queryOverride,r.basic),n.advancedQueryOverride=this.appendOrSetGroupByOverrideParam(n.advancedQueryOverride,r.advanced),n.constantQueryOverride=this.appendOrSetGroupByOverrideParam(n.constantQueryOverride,r.constant),n.advancedQueryOverride=this.appendOrSetGroupByOverrideParam(n.advancedQueryOverride,i)},t.prototype.createRangeValuesForGraphUsingStartAndEnd=function(){var t=this.getFormattedStartAndEnd(),n=t.start,e=t.end,r={start:n,end:e,endInclusive:!0,label:"Slider"};return void 0==this.facet.options.graph.steps&&(this.facet.options.graph.steps=10),this.facet.options.dateField&&isNaN(this.facet.options.start)&&(this.facet.options.start=new Date(this.facet.options.start).getTime()),this.facet.options.dateField&&isNaN(this.facet.options.end)&&(this.facet.options.end=new Date(this.facet.options.end).getTime()),void 0!=this.rangeValuesForGraphToUse?this.usePrebuiltRange(r):this.buildRange(r)},t.prototype.usePrebuiltRange=function(t){return i.map(this.rangeValuesForGraphToUse,function(n){return{start:n.start,end:n.end,endInclusive:t.endInclusive,label:t.label}})},t.prototype.buildRange=function(t){var n=this,e=this.facet.options.start,r=(this.facet.options.end-this.facet.options.start)/this.facet.options.graph.steps;return i.map(i.range(0,this.facet.options.graph.steps,1),function(i){var o=e+i*r,u=e+(i+1)*r;return n.facet.options.dateField&&(o=n.getISOFormat(o),u=n.getISOFormat(u)),{endInclusive:t.endInclusive,label:t.label,start:o,end:u}})},t.prototype.getFormattedStartAndEnd=function(){var t=this.facet.options.start,n=this.facet.options.end;return this.facet.options.dateField&&(t=this.getISOFormat(t),n=this.getISOFormat(n)),{start:t,end:n}},t.prototype.getISOFormat=function(t){if(t){isNaN(t)||(t=Number(t));var n=new Date(t);return c.DateUtils.isValid(n)||(n=new Date(this.getBrowserCompatibleFormat(t)),c.DateUtils.isValid(n))?n.toISOString():void this.facet.logger.error("Cannot parse this date format.",t,new Date(t))}},t.prototype.getFilterDateFormat=function(t){return t?this.getISOFormat(t).replace("T","@").replace(".000Z","").replace(/-/g,"/"):void 0},t.prototype.getBrowserCompatibleFormat=function(t){return t.replace("@","T").replace(/\//g,"-")},t.prototype.putGroupByForFullRangeSliderIntoQueryBuilder=function(t,n){this.lastGroupByRequestForFullRangeIndex=t.groupByRequests.length;var e=i.clone(n);delete e.queryOverride,delete e.advancedQueryOverride,this.facet.options.queryOverride&&(e.advancedQueryOverride=this.facet.options.queryOverride),this.addExpressionToExcludeInvalidDates(e),void 0===e.queryOverride&&void 0===e.advancedQueryOverride&&void 0===e.constantQueryOverride&&(e.advancedQueryOverride="@uri"),t.groupByRequests.push(e)},t.prototype.putGroupByBasicSliderIntoQueryBuilder=function(t){var n=1;this.facet.hasAGraph()&&(n=this.facet.options.graph.steps);var e;this.facet.isSimpleSliderConfig&&(e=[r({},this.getFormattedStartAndEnd(),{label:"slider",endInclusive:!1})]);var i=this.createBasicGroupByRequest();i.maximumNumberOfValues=n,i.sortCriteria="nosort",i.generateAutomaticRanges=!this.facet.isSimpleSliderConfig,i.rangeValues=e;var o=this.computeOurFilterExpression(this.facet.getSliderBoundaryForQuery());return this.processQueryOverride(o,i,t),this.addExpressionToExcludeInvalidDates(i),t.groupByRequests.push(i),i},t.prototype.addExpressionToExcludeInvalidDates=function(t){if(this.facet.options.dateField){var n=new s.QueryBuilder;n.expression.addFieldExpression(this.facet.options.field,">",[this.getFilterDateFormat(new Date(0))]),t.constantQueryOverride?t.constantQueryOverride+=" "+n.expression.build():t.constantQueryOverride=n.expression.build()}},t.prototype.appendOrSetGroupByOverrideParam=function(t,n){return l.Utils.isNullOrUndefined(n)?t:l.Utils.isNullOrUndefined(t)?n||"":t+" "+(n||"")},t}();n.FacetSliderQueryController=h},617:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(618),i=e(524),o=e(23),u=e(0),a=e(143),s=e(9),c=e(24),f=e(1),l=e(4);n.MAX_NUMBER_OF_STEPS=100;var h=function(){function t(t,n,e){var r=this;if(this.element=t,this.options=n,this.root=e,this.steps=[],this.options.dateField&&(this.options.start=new Date(this.options.start).getTime(),this.options.end=new Date(this.options.end).getTime()),void 0==this.options.rounded&&(this.options.rounded=0),(this.options.steps||this.options.getSteps)&&this.buildSteps(),this.options.graph&&(this.sliderGraph=new y(this)),this.sliderLine=new d(this),u.each(this.sliderLine.build(),function(t){r.element.appendChild(t)}),this.options.rangeSlider)this.sliderRange=new v(this),u.each(this.sliderRange.build(),function(t){r.element.appendChild(t)});else{this.sliderButton=new p(this,1);var i=this.sliderButton.build();f.$$(i).addClass("coveo-no-range-button"),this.element.appendChild(i),this.sliderLine.setActiveWidth(this.sliderButton)}this.sliderCaption=new g(this),this.element.appendChild(this.sliderCaption.build())}return t.prototype.onMoving=function(){this.options.rangeSlider?(this.sliderRange.setBoundary(),this.sliderLine.setActiveWidth(this.sliderRange.firstButton,this.sliderRange.secondButton)):(this.setButtonBoundary(),this.sliderLine.setActiveWidth(this.sliderButton)),this.options.graph&&this.sliderGraph.draw(),this.displayCaption()},t.prototype.initializeState=function(t){void 0===t&&(t=[this.options.start,this.options.end]),this.currentValues=t,this.options.rangeSlider?(this.sliderRange.initializeSliderRangeState(t),this.sliderLine.setActiveWidth(this.sliderRange.firstButton,this.sliderRange.secondButton)):(void 0==t?this.sliderButton.toEnd():this.sliderButton.setValue(t[1]),this.setButtonBoundary(),this.sliderLine.setActiveWidth(this.sliderButton)),this.displayCaption()},t.prototype.getPosition=function(){return this.options.rangeSlider?this.sliderRange.getPosition():[0,this.sliderButton.getPosition()]},t.prototype.getPercentPosition=function(){return this.options.rangeSlider?this.sliderRange.getPercentPosition():[0,this.sliderButton.getPercent()]},t.prototype.getValues=function(){return void 0!=this.currentValues?this.currentValues:this.options.rangeSlider?this.sliderRange.getValue():[this.options.start,this.sliderButton.getValue()]},t.prototype.getCaptionFromValue=function(t){return this.sliderCaption.getCaptionFromValues(t)},t.prototype.getCaption=function(){return this.sliderCaption.getCaption()},t.prototype.setValues=function(t){void 0!=t&&(t[0]=Math.max(t[0],this.options.start),t[1]=Math.min(t[1],this.options.end)),this.currentValues=t,this.options.rangeSlider?(this.sliderRange.setValue(t),this.sliderLine.setActiveWidth(this.sliderRange.firstButton,this.sliderRange.secondButton)):(this.sliderButton.setValue(t[1]),this.sliderLine.setActiveWidth(this.sliderButton)),this.displayCaption()},t.prototype.drawGraph=function(t){this.sliderGraph&&this.sliderGraph.draw(t)},t.prototype.setButtonBoundary=function(){this.sliderButton.leftBoundary=0,this.sliderButton.rightBoundary=this.element.clientWidth},t.prototype.displayCaption=function(){void 0!=this.options.valueCaption?this.sliderCaption.setFromString(this.options.valueCaption(this.getValues())):void 0!=this.options.percentCaption?this.sliderCaption.setFromString(this.options.percentCaption(this.getPercentPosition())):void 0!=this.options.displayAsPercent&&void 0!=this.options.displayAsPercent.separator&&this.options.displayAsPercent.enable?this.sliderCaption.setAsPercent():this.sliderCaption.setAsValue()},t.prototype.buildSteps=function(){if(this.options.getSteps)this.steps=this.options.getSteps(this.options.start,this.options.end);else{this.options.steps>n.MAX_NUMBER_OF_STEPS&&(new s.Logger(this).warn("Maximum number of steps for slider is "+n.MAX_NUMBER_OF_STEPS+" for performance reason"),this.options.steps=n.MAX_NUMBER_OF_STEPS);var t=(this.options.end-this.options.start)/Math.max(1,this.options.steps);if(t>0)for(var e=this.options.start,r=0;e<=this.options.end&&r<=n.MAX_NUMBER_OF_STEPS;)this.steps.push(e),e+=t,r++;else this.steps.push(this.options.start),this.steps.push(this.options.end)}},t}();n.Slider=h;var d=function(){function t(t){this.slider=t}return t.prototype.build=function(){return this.backGround=f.$$("div",{className:"coveo-slider-line coveo-background"}).el,this.activePart=f.$$("div",{className:"coveo-slider-line coveo-active"}).el,[this.backGround,this.activePart]},t.prototype.setActiveWidth=function(t,n){if(this.slider.options.rangeSlider){var e=100*(n.getPercent()-t.getPercent());this.activePart.style.width=e+"%",this.activePart.style.left=100*t.getPercent()+"%",this.activePart.style.right=100*n.getPercent()+"%"}else{var e=100*t.getPercent();this.activePart.style.width=e+"%"}},t}(),p=function(){function t(t,n){this.slider=t,this.which=n,this.eventMouseDown=c.DeviceUtils.isMobileDevice()?"touchstart":"mousedown",this.eventMouseMove=c.DeviceUtils.isMobileDevice()?"touchmove":"mousemove",this.eventMouseUp=c.DeviceUtils.isMobileDevice()?"touchend":"mouseup"}return t.prototype.build=function(){return this.element=f.$$("div",{className:"coveo-slider-button"}).el,this.bindEvents(),this.element.CoveoSliderButton=this,this.element},t.prototype.toBeginning=function(){this.element.style.left="0%"},t.prototype.toEnd=function(){this.element.style.left="100%"},t.prototype.setValue=function(t){var n=this.fromValueToPercent(t);this.element.style.left=Math.round(100*n)+"%"},t.prototype.getPosition=function(){var t=this.element.style.left;return-1!=t.indexOf("%")?parseFloat(t)/100*this.slider.element.clientWidth:parseFloat(t)},t.prototype.getPercent=function(t){return void 0===t&&(t=this.getPosition()),0==this.slider.element.clientWidth?0:+(t/this.slider.element.clientWidth).toFixed(2)},t.prototype.getValue=function(){var t=this.getPercent()*(this.slider.options.end-this.slider.options.start)+this.slider.options.start;return this.slider.options.dateField?Math.round(t):t},t.prototype.fromValueToPercent=function(t){return 1-(this.slider.options.end-t)/(this.slider.options.end-this.slider.options.start)},t.prototype.fromPositionToValue=function(t){var n=this.getPercent(t);return this.slider.options.start+n*(this.slider.options.end-this.slider.options.start)},t.prototype.fromValueToPosition=function(t){var n=this.fromValueToPercent(t);return this.slider.element.clientWidth*n},t.prototype.bindEvents=function(){var t=this;f.$$(this.element).on(this.eventMouseDown,function(n){t.handleStartSlide(n)});var n=this.slider.options.document||document;n.addEventListener(this.eventMouseMove,function(n){"touchmove"==t.eventMouseMove&&t.isMouseDown&&n.preventDefault(),t.handleMoving(n)}),n.addEventListener(this.eventMouseUp,function(){t.handleEndSlide()})},t.prototype.getUserSelect=function(){return void 0!==document.body.style.msUserSelect?"msUserSelect":void 0!==document.body.style.webkitUserSelect?"webkitUserSelect":void 0!==document.body.style.MozUserSelect?"MozUserSelect":"userSelect"},t.prototype.handleStartSlide=function(t){var n=this.getMousePosition(t);this.isMouseDown=!0,this.startPositionX=n.x,this.lastElementLeft=parseInt(this.element.style.left,10)/100*this.slider.element.clientWidth,this.origUserSelect=document.body.style[this.getUserSelect()],this.origCursor=document.body.style.cursor,document.body.style[this.getUserSelect()]="none",document.body.style.cursor="pointer",f.$$(this.element).addClass("coveo-active"),f.$$(this.element).trigger(a.SliderEvents.startSlide,{button:this,slider:this.slider}),t.stopPropagation()},t.prototype.handleMoving=function(t){this.isMouseDown&&(this.slider.onMoving(),this.updatePosition(t),this.handleButtonNearEnd(),f.$$(this.element).trigger(a.SliderEvents.duringSlide,{button:this,slider:this.slider}))},t.prototype.handleEndSlide=function(){this.isMouseDown&&(document.body.style[this.getUserSelect()]=this.origUserSelect,document.body.style.cursor=this.origCursor,f.$$(this.element).removeClass("coveo-active"),f.$$(this.element).trigger(a.SliderEvents.endSlide,{button:this,slider:this.slider})),this.isMouseDown=!1},t.prototype.handleButtonNearEnd=function(){0==this.which&&(void 0==this.origZIndex&&(this.origZIndex=this.element.style.zIndex||"1"),this.currentPos>90?this.element.style.zIndex=this.origZIndex+1:this.element.style.zIndex=this.origZIndex)},t.prototype.getMousePosition=function(t){var n=0,e=0;return t.touches&&t.touches[0]?(n=t.touches[0].pageX,e=t.touches[0].pageY):t.pageX&&t.pageY?(n=t.pageX,e=t.pageY):t.clientX&&t.clientY&&(n=t.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,e=t.clientY+document.body.scrollTop+document.documentElement.scrollTop),{x:n,y:e}},t.prototype.updatePosition=function(t){var n,e=this.getMousePosition(t),r=e.x-this.startPositionX;if(this.currentPos=this.lastElementLeft+r,this.slider.options.steps||this.slider.options.getSteps){var i=this.snapToStep(r);this.currentPos=i.position,n=i.value}this.currentPos=Math.max(this.leftBoundary,this.currentPos),this.currentPos=Math.min(this.rightBoundary,this.currentPos),this.currentPos=100*this.getPercent(this.currentPos),this.currentPos=Math.min(this.currentPos,100),this.currentPos=Math.max(this.currentPos,0),this.element.style.left=Math.round(this.currentPos)+"%",this.slider.options.steps||this.slider.options.getSteps?this.slider.currentValues[this.which]=n:this.slider.currentValues[this.which]=this.getValue()},t.prototype.snapToStep=function(t){var n=this,e=u.map(this.slider.steps,function(t,e){return Math.abs(n.currentPos-n.fromValueToPosition(n.slider.steps[e]))}),r=u.map(this.slider.steps,function(t,e){return Math.abs(n.rightBoundary-n.fromValueToPosition(n.slider.steps[e]))}),i=u.map(this.slider.steps,function(t,e){return Math.abs(n.leftBoundary-n.fromValueToPosition(n.slider.steps[e]))}),o=u.min(e),a=u.min(r),s=u.min(i),c=this.slider.steps[u.indexOf(e,o)],f=this.slider.steps[u.indexOf(r,a)],l=this.slider.steps[u.indexOf(i,s)];return c=Math.min(c,f),c=Math.max(c,l),{position:this.fromValueToPosition(c),value:c}},t}();n.SliderButton=p;var v=function(){function t(t){this.slider=t,this.firstButton=new p(t,0),this.secondButton=new p(t,1)}return t.prototype.build=function(){var t=this.firstButton.build(),n=this.secondButton.build();return f.$$(n).addClass("coveo-range-button"),[t,n]},t.prototype.initializeSliderRangeState=function(t){void 0==t?(this.firstButton.toBeginning(),this.secondButton.toEnd()):(this.firstButton.setValue(t[0]),this.secondButton.setValue(t[1])),this.setBoundary()},t.prototype.setValue=function(t){this.firstButton.setValue(t[0]),this.secondButton.setValue(t[1])},t.prototype.setBoundary=function(){this.firstButton.leftBoundary=0,this.firstButton.rightBoundary=this.secondButton.getPosition(),this.secondButton.leftBoundary=this.firstButton.getPosition(),this.secondButton.rightBoundary=this.slider.element.clientWidth},t.prototype.getPosition=function(){return[this.firstButton.getPosition(),this.secondButton.getPosition()]},t.prototype.getPercentPosition=function(){return[this.firstButton.getPercent(),this.secondButton.getPercent()]},t.prototype.getValue=function(){return[this.firstButton.getValue(),this.secondButton.getValue()]},t}(),g=function(){function t(t){this.slider=t,this.separator="-",this.unitSign="",this.slider.options.displayAsPercent&&this.slider.options.displayAsPercent.enable?this.separator=void 0!=this.slider.options.displayAsPercent.separator?this.slider.options.displayAsPercent.separator:this.separator:this.slider.options.displayAsValue&&this.slider.options.displayAsValue.enable&&(this.separator=void 0!=this.slider.options.displayAsValue.separator?this.slider.options.displayAsValue.separator:this.separator,this.unitSign=void 0!=this.slider.options.displayAsValue.unitSign?this.slider.options.displayAsValue.unitSign:this.unitSign)}return t.prototype.build=function(){return this.caption=f.$$("div",{className:"coveo-slider-caption"}).el,this.caption},t.prototype.getCaption=function(){return f.$$(this.caption).text()},t.prototype.getCaptionFromValues=function(t){return this.getValueCaption(t)},t.prototype.getCaptionFromValuesAsPercent=function(t){return this.getValueCaption(t)},t.prototype.setAsValue=function(){f.$$(this.caption).text(this.getValueCaption())},t.prototype.setAsPercent=function(){var t=this.slider.getPercentPosition();f.$$(this.caption).text([(100*t[0]).toFixed(this.slider.options.rounded),"%",this.separator,(100*t[1]).toFixed(this.slider.options.rounded),"%"].join(" "))},t.prototype.setFromString=function(t){f.$$(this.caption).text(t)},t.prototype.getValueCaption=function(t){void 0===t&&(t=this.slider.getValues());var n=t[0],e=t[1];if(this.slider.options.dateField){var r=new Date(n),i=new Date(e);r.setHours(0,0,0,0),i.setHours(0,0,0,0),n=o.format(r,this.slider.options.dateFormat||"MMM dd, yyyy"),e=o.format(i,this.slider.options.dateFormat||"MMM dd, yyyy"),this.unitSign=""}else n=n.toFixed(this.slider.options.rounded),e=e.toFixed(this.slider.options.rounded);return[n,this.unitSign,this.separator,e,this.unitSign].join(" ")},t}(),y=function(){function t(t){this.slider=t,this.svg=r.select(t.element).append("svg").append("g"),this.x=i.scaleBand(),this.y=i.scaleLinear(),this.slider.options.graph.margin=l.Utils.extendDeep({top:20,right:0,left:0,bottom:20},this.slider.options.graph.margin||{}),this.slider.options.graph.animationDuration=this.slider.options.graph.animationDuration||500,this.slider.options.graph.steps=this.slider.options.graph.steps||10,this.buildTooltip()}return t.prototype.draw=function(t){if(void 0===t&&(t=this.oldData),t){t!=this.oldData&&(t=this.modifyPossibleSinglePointDataIntoValidRange(t));var n=this.slider.element.offsetWidth,e=this.slider.element.offsetHeight,r=n-this.slider.options.graph.margin.left-this.slider.options.graph.margin.right,i=e-this.slider.options.graph.margin.top-this.slider.options.graph.margin.bottom;if(!isNaN(r)&&r>=0&&!isNaN(i)&&i>=0){this.applyTransformOnSvg(r,i),this.setXAndYRange(r,i),this.setXAndYDomain(t);var o=this.svg.selectAll(".coveo-bar").data(t),u=this.slider.getValues();this.renderGraphBars(o,r,i,u),this.setGraphBarsTransition(o,i,u)}this.oldData=t}},t.prototype.buildTooltip=function(){this.tooltip=f.$$("div",{className:"coveo-slider-tooltip"}).el,this.tooltipArrow=f.$$("div",{className:"coveo-slider-tooltip-arrow"}).el,this.tooltipCaption=f.$$("span",{className:"coveo-caption"}).el,this.tooltipCount=f.$$("span",{className:"coveo-count"}).el,f.$$(this.tooltip).append(this.tooltipArrow),f.$$(this.tooltip).append(this.tooltipCaption),f.$$(this.tooltip).append(this.tooltipCount),f.$$(this.tooltip).hide(),f.$$(this.slider.element).append(this.tooltip)},t.prototype.modifyPossibleSinglePointDataIntoValidRange=function(t){var n=this;return u.map(t,function(t){if(t.start==t.end){var e=(n.slider.options.end-n.slider.options.start)/n.slider.options.graph.steps;t.start=Math.round(t.start-e/2),t.end=Math.round(t.end+e/2)}return t})},t.prototype.setXAndYRange=function(t,n){this.x.range([0,t]),this.x.padding(.2),this.y.range([n-this.slider.options.graph.margin.top,0])},t.prototype.setXAndYDomain=function(t){this.padGraphWithEmptyData(t),this.x.domain(u.map(t,function(t){return t.start})),this.y.domain([0,r.max(t,function(t){return t.y})])},t.prototype.calculateOneStepOfGraph=function(t){return Math.abs(t[0].end-t[0].start)||1},t.prototype.padGraphWithEmptyData=function(t){var n=this.calculateOneStepOfGraph(t);this.padBeginningOfGraphWithEmptyData(t,n),this.padEndOfGraphWithEmptyData(t,n)},t.prototype.padBeginningOfGraphWithEmptyData=function(t,e){if(t[0].start>this.slider.options.start&&t[0].start>e)for(var r=t[0].start-this.slider.options.start,i=Math.min(n.MAX_NUMBER_OF_STEPS,Math.round(r/e)),o=t[0].start,u=i;u>0;u--)t.unshift({start:o-e,end:o,y:0}),o-=e},t.prototype.padEndOfGraphWithEmptyData=function(t,e){var r=t.length-1;if(t[r].end<this.slider.options.end)for(var i=this.slider.options.end-t[r].end,o=Math.min(n.MAX_NUMBER_OF_STEPS,Math.round(i/e)),u=t[r].end,a=0;a<o;a++)t.push({start:u,end:u+e,y:0}),u+=e},t.prototype.applyTransformOnSvg=function(t,n){var e=f.$$(this.slider.element).find("svg");e.setAttribute("width",t+"px"),e.setAttribute("height",n+"px"),this.svg.attr("transform","translate("+this.slider.options.graph.margin.left+","+this.slider.options.graph.margin.top+")")},t.prototype.renderGraphBars=function(t,n,e,r){t.enter().append("rect").attr("class",this.getFunctionForClass(r)).attr("width",this.x.bandwidth()).attr("height",this.getFunctionForHeight(e)).attr("x",this.getFunctionForX()).attr("y",this.getFunctionForY()).on("click",this.getFunctionForClick()).on("mouseover",this.getFunctionForMouseOver(e)).on("mouseout",this.getFunctionForMouseOut())},t.prototype.setGraphBarsTransition=function(t,n,e){t.transition().attr("x",this.getFunctionForX()).attr("width",this.x.bandwidth()).attr("class",this.getFunctionForClass(e)).transition().duration(this.slider.options.graph.animationDuration).attr("y",this.getFunctionForY()).attr("height",this.getFunctionForHeight(n))},t.prototype.getBarClass=function(t,n,e){return n.start>=t[0]&&n.end<=t[1]?"coveo-active":t[0]==this.slider.options.start&&0==e?"coveo-active":t[1]==this.slider.options.end&&e==this.slider.options.graph.steps-1?"coveo-active":""},t.prototype.setTooltip=function(t,n){f.$$(this.tooltipCaption).text(this.slider.getCaptionFromValue([t.start,t.end])),f.$$(this.tooltipCount).text(t.y.toString()),f.$$(this.tooltip).show();var e=this.x(t.start)-50,r=this.x.bandwidth()/2,i=50+r-5;this.tooltip.style.left=e+"px",this.tooltip.style.top=this.y(t.y)-n+"px",this.tooltipArrow.style.left=i+"px";var o=this.tooltip.getBoundingClientRect(),u=new f.Win(window).width();if(o.right>u-20){var a=u-o.right-20;this.tooltip.style.left=e+a+"px",this.tooltipArrow.style.left=i-a+"px"}},t.prototype.getFunctionForX=function(){var t=this;return function(n){return t.x(n.start)}},t.prototype.getFunctionForY=function(){var t=this;return function(n){return t.y(n.y)}},t.prototype.getFunctionForHeight=function(t){var n=this;return function(e){return t-n.y(e.y)}},t.prototype.getFunctionForClass=function(t){var n=this;return function(e,r){return"coveo-bar "+n.getBarClass(t,e,r)}},t.prototype.getFunctionForClick=function(){var t=this;return function(n,e){f.$$(t.slider.element).trigger(a.SliderEvents.graphValueSelected,{start:n.start,end:n.end,value:n.y})}},t.prototype.getFunctionForMouseOver=function(t){var n=this;return function(e){return n.setTooltip(e,t)}},t.prototype.getFunctionForMouseOut=function(){var t=this;return function(){return f.$$(t.tooltip).hide()}},t}()},618:function(t,n,e){"use strict";function r(t){return"translate("+(t+.5)+",0)"}function i(t){return"translate(0,"+(t+.5)+")"}function o(t){return function(n){return+t(n)}}function u(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}function a(){return!this.__axis}function s(t,n){function e(e){var r=null==c?n.ticks?n.ticks.apply(n,s):n.domain():c,i=null==f?n.tickFormat?n.tickFormat.apply(n,s):Ha:f,y=Math.max(l,0)+d,b=n.range(),m=+b[0]+.5,_=+b[b.length-1]+.5,x=(n.bandwidth?u:o)(n.copy()),w=e.selection?e.selection():e,S=w.selectAll(".domain").data([null]),M=w.selectAll(".tick").data(r,n).order(),O=M.exit(),E=M.enter().append("g").attr("class","tick"),C=M.select("line"),A=M.select("text");S=S.merge(S.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),M=M.merge(E),C=C.merge(E.append("line").attr("stroke","currentColor").attr(v+"2",p*l)),A=A.merge(E.append("text").attr("fill","currentColor").attr(v,p*y).attr("dy",t===Ya?"0em":t===Xa?"0.71em":"0.32em")),e!==w&&(S=S.transition(e),M=M.transition(e),C=C.transition(e),A=A.transition(e),O=O.transition(e).attr("opacity",Ka).attr("transform",function(t){return isFinite(t=x(t))?g(t):this.getAttribute("transform")}),E.attr("opacity",Ka).attr("transform",function(t){var n=this.parentNode.__axis;return g(n&&isFinite(n=n(t))?n:x(t))})),O.remove(),S.attr("d",t===Za||t==Wa?h?"M"+p*h+","+m+"H0.5V"+_+"H"+p*h:"M0.5,"+m+"V"+_:h?"M"+m+","+p*h+"V0.5H"+_+"V"+p*h:"M"+m+",0.5H"+_),M.attr("opacity",1).attr("transform",function(t){return g(x(t))}),C.attr(v+"2",p*l),A.attr(v,p*y).text(i),w.filter(a).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Wa?"start":t===Za?"end":"middle"),w.each(function(){this.__axis=x})}var s=[],c=null,f=null,l=6,h=6,d=3,p=t===Ya||t===Za?-1:1,v=t===Za||t===Wa?"x":"y",g=t===Ya||t===Xa?r:i;return e.scale=function(t){return arguments.length?(n=t,e):n},e.ticks=function(){return s=Qa.call(arguments),e},e.tickArguments=function(t){return arguments.length?(s=null==t?[]:Qa.call(t),e):s.slice()},e.tickValues=function(t){return arguments.length?(c=null==t?null:Qa.call(t),e):c&&c.slice()},e.tickFormat=function(t){return arguments.length?(f=t,e):f},e.tickSize=function(t){return arguments.length?(l=h=+t,e):l},e.tickSizeInner=function(t){return arguments.length?(l=+t,e):l},e.tickSizeOuter=function(t){return arguments.length?(h=+t,e):h},e.tickPadding=function(t){return arguments.length?(d=+t,e):d},e}function c(t){return s(Ya,t)}function f(t){return s(Wa,t)}function l(t){return s(Xa,t)}function h(t){return s(Za,t)}function d(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new p(r)}function p(t){this._=t}function v(t,n){return t.trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}function g(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function y(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=Ja,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}function b(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===ns&&n.documentElement.namespaceURI===ns?n.createElement(t):n.createElementNS(e,t)}}function m(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function _(){}function x(){return[]}function w(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function S(t,n,e,r,i,o){for(var u,a=0,s=n.length,c=o.length;a<c;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new w(t,o[a]);for(;a<s;++a)(u=n[a])&&(i[a]=u)}function M(t,n,e,r,i,o,u){var a,s,c,f={},l=n.length,h=o.length,d=new Array(l);for(a=0;a<l;++a)(s=n[a])&&(d[a]=c=ps+u.call(s,s.__data__,a,n),c in f?i[a]=s:f[c]=s);for(a=0;a<h;++a)c=ps+u.call(t,o[a],a,o),(s=f[c])?(r[a]=s,s.__data__=o[a],f[c]=null):e[a]=new w(t,o[a]);for(a=0;a<l;++a)(s=n[a])&&f[d[a]]===s&&(i[a]=s)}function O(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function E(t){return function(){this.removeAttribute(t)}}function C(t){return function(){this.removeAttributeNS(t.space,t.local)}}function A(t,n){return function(){this.setAttribute(t,n)}}function N(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function T(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function F(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function P(t){return function(){this.style.removeProperty(t)}}function R(t,n,e){return function(){this.style.setProperty(t,n,e)}}function B(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function D(t,n){return t.style.getPropertyValue(n)||As(t).getComputedStyle(t,null).getPropertyValue(n)}function k(t){return function(){delete this[t]}}function I(t,n){return function(){this[t]=n}}function $(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function U(t){return t.trim().split(/^|\s+/)}function z(t){return t.classList||new L(t)}function L(t){this._node=t,this._names=U(t.getAttribute("class")||"")}function q(t,n){for(var e=z(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function j(t,n){for(var e=z(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function V(t){return function(){q(this,t)}}function G(t){return function(){j(this,t)}}function Q(t,n){return function(){(n.apply(this,arguments)?q:j)(this,t)}}function H(){this.textContent=""}function Y(t){return function(){this.textContent=t}}function W(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function X(){this.innerHTML=""}function Z(t){return function(){this.innerHTML=t}}function K(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function J(){this.nextSibling&&this.parentNode.appendChild(this)}function tt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function nt(){return null}function et(){var t=this.parentNode;t&&t.removeChild(this)}function rt(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function it(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ot(t,n,e){return t=ut(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function ut(t,n,e){return function(r){var i=qs;qs=r;try{t.call(this,this.__data__,n,e)}finally{qs=i}}}function at(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}function st(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function ct(t,n,e){var r=Ls.hasOwnProperty(t.type)?ot:ut;return function(i,o,u){var a,s=this.__on,c=r(n,o,u);if(s)for(var f=0,l=s.length;f<l;++f)if((a=s[f]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=c,a.capture=e),void(a.value=n);this.addEventListener(t.type,c,e),a={type:t.type,name:t.name,value:n,listener:c,capture:e},s?s.push(a):this.__on=[a]}}function ft(t,n,e,r){var i=qs;t.sourceEvent=qs,qs=t;try{return n.apply(e,r)}finally{qs=i}}function lt(t,n,e){var r=As(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function ht(t,n){return function(){return lt(this,t,n)}}function dt(t,n){return function(){return lt(this,t,n.apply(this,arguments))}}function pt(t,n){this._groups=t,this._parents=n}function vt(){return new pt([[document.documentElement]],Gs)}function gt(){return new yt}function yt(){this._="@"+(++Ws).toString(36)}function bt(){qs.stopImmediatePropagation()}function mt(t,n){var e=t.document.documentElement,r=Hs(t).on("dragstart.drag",null);n&&(r.on("click.drag",ec,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function _t(t,n,e,r,i,o,u,a,s,c){this.target=t,this.type=n,this.subject=e,this.identifier=r,this.active=i,this.x=o,this.y=u,this.dx=a,this.dy=s,this._=c}function xt(){return!qs.ctrlKey&&!qs.button}function wt(){return this.parentNode}function St(t){return null==t?{x:qs.x,y:qs.y}:t}function Mt(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ot(){return pc||(yc(Et),pc=gc.now()+vc)}function Et(){pc=0}function Ct(){this._call=this._time=this._next=null}function At(t,n,e){var r=new Ct;return r.restart(t,n,e),r}function Nt(){Ot(),++cc;for(var t,n=oc;n;)(t=pc-n._time)>=0&&n._call.call(null,t),n=n._next;--cc}function Tt(){pc=(dc=gc.now())+vc,cc=fc=0;try{Nt()}finally{cc=0,Pt(),pc=0}}function Ft(){var t=gc.now(),n=t-dc;n>hc&&(vc-=n,dc=t)}function Pt(){for(var t,n,e=oc,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:oc=n);uc=t,Rt(r)}function Rt(t){if(!cc){fc&&(fc=clearTimeout(fc));t-pc>24?(t<1/0&&(fc=setTimeout(Tt,t-gc.now()-vc)),lc&&(lc=clearInterval(lc))):(lc||(dc=gc.now(),lc=setInterval(Ft,hc)),cc=1,yc(Tt))}}function Bt(t,n){var e=kt(t,n);if(e.state>wc)throw new Error("too late; already scheduled");return e}function Dt(t,n){var e=kt(t,n);if(e.state>Oc)throw new Error("too late; already running");return e}function kt(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function It(t,n,e){function r(t){e.state=Sc,e.timer.restart(i,e.delay,e.time),e.delay<=t&&i(t-e.delay)}function i(r){var c,f,l,h;if(e.state!==Sc)return u();for(c in s)if(h=s[c],h.name===e.name){if(h.state===Oc)return bc(i);h.state===Ec?(h.state=Ac,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete s[c]):+c<n&&(h.state=Ac,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete s[c])}if(bc(function(){e.state===Oc&&(e.state=Ec,e.timer.restart(o,e.delay,e.time),o(r))}),e.state=Mc,e.on.call("start",t,t.__data__,e.index,e.group),e.state===Mc){for(e.state=Oc,a=new Array(l=e.tween.length),c=0,f=-1;c<l;++c)(h=e.tween[c].value.call(t,t.__data__,e.index,e.group))&&(a[++f]=h);a.length=f+1}}function o(n){for(var r=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(u),e.state=Cc,1),i=-1,o=a.length;++i<o;)a[i].call(t,r);e.state===Cc&&(e.on.call("end",t,t.__data__,e.index,e.group),u())}function u(){e.state=Ac,e.timer.stop(),delete s[n];for(var r in s)return;delete t.__transition}var a,s=t.__transition;s[n]=e,e.timer=At(r,0,e.time)}function $t(t,n){var e,r;return function(){var i=Dt(this,t),o=i.tween;if(o!==e){r=e=o;for(var u=0,a=r.length;u<a;++u)if(r[u].name===n){r=r.slice(),r.splice(u,1);break}}i.tween=r}}function Ut(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=Dt(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},s=0,c=i.length;s<c;++s)if(i[s].name===n){i[s]=a;break}s===c&&i.push(a)}o.tween=i}}function zt(t,n,e){var r=t._id;return t.each(function(){var t=Dt(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return kt(t,r).value[n]}}function Lt(t){return function(){this.removeAttribute(t)}}function qt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function jt(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=n(r=u,e)}}function Vt(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=n(r=u,e)}}function Gt(t,n,e){var r,i,o;return function(){var u,a,s=e(this);return null==s?void this.removeAttribute(t):(u=this.getAttribute(t),a=s+"",u===a?null:u===r&&a===i?o:(i=a,o=n(r=u,s)))}}function Qt(t,n,e){var r,i,o;return function(){var u,a,s=e(this);return null==s?void this.removeAttributeNS(t.space,t.local):(u=this.getAttributeNS(t.space,t.local),a=s+"",u===a?null:u===r&&a===i?o:(i=a,o=n(r=u,s)))}}function Ht(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function Yt(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function Wt(t,n){function e(){var e=n.apply(this,arguments);return e!==i&&(r=(i=e)&&Yt(t,e)),r}var r,i;return e._value=n,e}function Xt(t,n){function e(){var e=n.apply(this,arguments);return e!==i&&(r=(i=e)&&Ht(t,e)),r}var r,i;return e._value=n,e}function Zt(t,n){return function(){Bt(this,t).delay=+n.apply(this,arguments)}}function Kt(t,n){return n=+n,function(){Bt(this,t).delay=n}}function Jt(t,n){return function(){Dt(this,t).duration=+n.apply(this,arguments)}}function tn(t,n){return n=+n,function(){Dt(this,t).duration=n}}function nn(t,n){if("function"!=typeof n)throw new Error;return function(){Dt(this,t).ease=n}}function en(t){return(t+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t})}function rn(t,n,e){var r,i,o=en(n)?Bt:Dt;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}function on(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function un(t,n){var e,r,i;return function(){var o=D(this,t),u=(this.style.removeProperty(t),D(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}function an(t){return function(){this.style.removeProperty(t)}}function sn(t,n,e){var r,i,o=e+"";return function(){var u=D(this,t);return u===o?null:u===r?i:i=n(r=u,e)}}function cn(t,n,e){var r,i,o;return function(){var u=D(this,t),a=e(this),s=a+"";return null==a&&(this.style.removeProperty(t),s=a=D(this,t)),u===s?null:u===r&&s===i?o:(i=s,o=n(r=u,a))}}function fn(t,n){var e,r,i,o,u="style."+n,a="end."+u;return function(){var s=Dt(this,t),c=s.on,f=null==s.value[u]?o||(o=an(n)):void 0;c===e&&i===f||(r=(e=c).copy()).on(a,i=f),s.on=r}}function ln(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function hn(t,n,e){function r(){var r=n.apply(this,arguments);return r!==o&&(i=(o=r)&&ln(t,r,e)),i}var i,o;return r._value=n,r}function dn(t){return function(){this.textContent=t}}function pn(t){return function(){var n=t(this);this.textContent=null==n?"":n}}function vn(t){return function(n){this.textContent=t.call(this,n)}}function gn(t){function n(){var n=t.apply(this,arguments);return n!==r&&(e=(r=n)&&vn(n)),e}var e,r;return n._value=t,n}function yn(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function bn(t){return Qs().transition(t)}function mn(){return++tf}function _n(t){return+t}function xn(t){return t*t}function wn(t){return t*(2-t)}function Sn(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Mn(t){return t*t*t}function On(t){return--t*t*t+1}function En(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function Cn(t){return 1==+t?1:1-Math.cos(t*af)}function An(t){return Math.sin(t*af)}function Nn(t){return(1-Math.cos(uf*t))/2}function Tn(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Fn(t){return Tn(1-+t)}function Pn(t){return 1-Tn(t)}function Rn(t){return((t*=2)<=1?Tn(1-t):2-Tn(t-1))/2}function Bn(t){return 1-Math.sqrt(1-t*t)}function Dn(t){return Math.sqrt(1- --t*t)}function kn(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function In(t){return 1-$n(1-t)}function $n(t){return(t=+t)<sf?yf*t*t:t<ff?yf*(t-=cf)*t+lf:t<df?yf*(t-=hf)*t+pf:yf*(t-=vf)*t+gf}function Un(t){return((t*=2)<=1?1-$n(1-t):$n(t-1)+1)/2}function zn(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return Of.time=Ot(),Of;return e}function Ln(){qs.stopImmediatePropagation()}function qn(t){return[+t[0],+t[1]]}function jn(t){return[qn(t[0]),qn(t[1])]}function Vn(t){return function(n){return tc(n,qs.touches,t)}}function Gn(t){return{type:t}}function Qn(){return!qs.ctrlKey&&!qs.button}function Hn(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Yn(){return navigator.maxTouchPoints||"ontouchstart"in this}function Wn(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Xn(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Zn(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function Kn(){return te(kf)}function Jn(){return te(If)}function te(t){function n(n){var r=n.property("__brush",s).selectAll(".overlay").data([Gn("overlay")]);r.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Uf.overlay).merge(r).each(function(){var t=Wn(this).extent;Hs(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])}),n.selectAll(".selection").data([Gn("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Uf.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=n.selectAll(".handle").data(t.handles,function(t){return t.type});i.exit().remove(),i.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return Uf[t.type]}),n.each(e).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",o).filter(h).on("touchstart.brush",o).on("touchmove.brush",u).on("touchend.brush touchcancel.brush",a).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(){var t=Hs(this),n=Wn(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?n[1][0]-v/2:n[0][0]-v/2}).attr("y",function(t){return"s"===t.type[0]?n[1][1]-v/2:n[0][1]-v/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+v:v}).attr("height",function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+v:v})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function r(t,n,e){var r=t.__brush.emitter;return!r||e&&r.clean?new i(t,n,e):r}function i(t,n,e){this.that=t,this.args=n,this.state=t.__brush,this.active=0,this.clean=e}function o(){function n(){var t=I(w);!k||_||x||(Math.abs(t[0]-U[0])>Math.abs(t[1]-U[1])?x=!0:_=!0),U=t,m=!0,Ff(),i()}function i(){var t;switch(B=U[0]-$[0],D=U[1]-$[1],M){case Rf:case Pf:O&&(B=Math.max(T-s,Math.min(P-v,B)),f=s+B,g=v+B),E&&(D=Math.max(F-h,Math.min(R-y,D)),p=h+D,b=y+D);break;case Bf:O<0?(B=Math.max(T-s,Math.min(P-s,B)),f=s+B,g=v):O>0&&(B=Math.max(T-v,Math.min(P-v,B)),f=s,g=v+B),E<0?(D=Math.max(F-h,Math.min(R-h,D)),p=h+D,b=y):E>0&&(D=Math.max(F-y,Math.min(R-y,D)),p=h,b=y+D);break;case Df:O&&(f=Math.max(T,Math.min(P,s-B*O)),g=Math.max(T,Math.min(P,v+B*O))),E&&(p=Math.max(F,Math.min(R,h-D*E)),b=Math.max(F,Math.min(R,y+D*E)))}g<f&&(O*=-1,t=s,s=v,v=t,t=f,f=g,g=t,S in zf&&q.attr("cursor",Uf[S=zf[S]])),b<p&&(E*=-1,t=h,h=y,y=t,t=p,p=b,b=t,S in Lf&&q.attr("cursor",Uf[S=Lf[S]])),C.selection&&(N=C.selection),_&&(f=N[0][0],g=N[1][0]),x&&(p=N[0][1],b=N[1][1]),N[0][0]===f&&N[0][1]===p&&N[1][0]===g&&N[1][1]===b||(C.selection=[[f,p],[g,b]],e.call(w),z.brush())}function o(){if(Ln(),qs.touches){if(qs.touches.length)return;c&&clearTimeout(c),c=setTimeout(function(){c=null},500)}else mt(qs.view,m),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);L.attr("pointer-events","all"),q.attr("cursor",Uf.overlay),C.selection&&(N=C.selection),Xn(N)&&(C.selection=null,e.call(w)),z.end()}function u(){switch(qs.keyCode){case 16:k=O&&E;break;case 18:M===Bf&&(O&&(v=g-B*O,s=f+B*O),E&&(y=b-D*E,h=p+D*E),M=Df,i());break;case 32:M!==Bf&&M!==Df||(O<0?v=g-B:O>0&&(s=f-B),E<0?y=b-D:E>0&&(h=p-D),M=Rf,q.attr("cursor",Uf.selection),i());break;default:return}Ff()}function a(){switch(qs.keyCode){case 16:k&&(_=x=k=!1,i());break;case 18:M===Df&&(O<0?v=g:O>0&&(s=f),E<0?y=b:E>0&&(h=p),M=Bf,i());break;case 32:M===Rf&&(qs.altKey?(O&&(v=g-B*O,s=f+B*O),E&&(y=b-D*E,h=p+D*E),M=Df):(O<0?v=g:O>0&&(s=f),E<0?y=b:E>0&&(h=p),M=Bf),q.attr("cursor",Uf[S]),i());break;default:return}Ff()}if((!c||qs.touches)&&l.apply(this,arguments)){var s,f,h,p,v,g,y,b,m,_,x,w=this,S=qs.target.__data__.type,M="selection"===(d&&qs.metaKey?S="overlay":S)?Pf:d&&qs.altKey?Df:Bf,O=t===If?null:qf[S],E=t===kf?null:jf[S],C=Wn(w),A=C.extent,N=C.selection,T=A[0][0],F=A[0][1],P=A[1][0],R=A[1][1],B=0,D=0,k=O&&E&&d&&qs.shiftKey,I=qs.touches?Vn(qs.changedTouches[0].identifier):Ks,$=I(w),U=$,z=r(w,arguments,!0).beforestart();"overlay"===S?(N&&(m=!0),C.selection=N=[[s=t===If?T:$[0],h=t===kf?F:$[1]],[v=t===If?P:s,y=t===kf?R:h]]):(s=N[0][0],h=N[0][1],v=N[1][0],y=N[1][1]),f=s,p=h,g=v,b=y;var L=Hs(w).attr("pointer-events","none"),q=L.selectAll(".overlay").attr("cursor",Uf[S]);if(qs.touches)z.moved=n,z.ended=o;else{var j=Hs(qs.view).on("mousemove.brush",n,!0).on("mouseup.brush",o,!0);d&&j.on("keydown.brush",u,!0).on("keyup.brush",a,!0),rc(qs.view)}Ln(),Tc(w),e.call(w),z.start()}}function u(){r(this,arguments).moved()}function a(){r(this,arguments).ended()}function s(){var n=this.__brush||{selection:null};return n.extent=jn(f.apply(this,arguments)),n.dim=t,n}var c,f=Hn,l=Qn,h=Yn,d=!0,p=ts("start","brush","end"),v=6;return n.move=function(n,i){n.selection?n.on("start.brush",function(){r(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){r(this,arguments).end()}).tween("brush",function(){function n(t){u.selection=1===t&&null===c?null:f(t),e.call(o),a.brush()}var o=this,u=o.__brush,a=r(o,arguments),s=u.selection,c=t.input("function"==typeof i?i.apply(this,arguments):i,u.extent),f=Object(sc.a)(s,c);return null!==s&&null!==c?n:n(1)}):n.each(function(){var n=this,o=arguments,u=n.__brush,a=t.input("function"==typeof i?i.apply(n,o):i,u.extent),s=r(n,o).beforestart();Tc(n),u.selection=null===a?null:a,e.call(n),s.start().brush().end()})},n.clear=function(t){n.move(t,null)},i.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){ft(new Tf(n,e,t.output(this.state.selection)),p.apply,p,[e,this.that,this.args])}},n.extent=function(t){return arguments.length?(f="function"==typeof t?t:Nf(jn(t)),n):f},n.filter=function(t){return arguments.length?(l="function"==typeof t?t:Nf(!!t),n):l},n.touchable=function(t){return arguments.length?(h="function"==typeof t?t:Nf(!!t),n):h},n.handleSize=function(t){return arguments.length?(v=+t,n):v},n.keyModifiers=function(t){return arguments.length?(d=!!t,n):d},n.on=function(){var t=p.on.apply(p,arguments);return t===p?n:t},n}function ne(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}function ee(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function re(){return new ee}function ie(t){return t.source}function oe(t){return t.target}function ue(t){return t.radius}function ae(t){return t.startAngle}function se(t){return t.endAngle}function ce(t,n){for(var e=n[0],r=n[1],i=-1,o=0,u=t.length,a=u-1;o<u;a=o++){var s=t[o],c=s[0],f=s[1],l=t[a],h=l[0],d=l[1];if(fe(s,l,n))return 0;f>r!=d>r&&e<(h-c)*(r-f)/(d-f)+c&&(i=-i)}return i}function fe(t,n,e){var r;return le(t,n,e)&&he(t[r=+(t[0]===n[0])],e[r],n[r])}function le(t,n,e){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])}function he(t,n,e){return t<=n&&n<=e||e<=n&&n<=t}function de(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),u=0;u<i;++u)for(var a=0,s=0;a<r+e;++a)a<r&&(s+=t.data[a+u*r]),a>=e&&(a>=o&&(s-=t.data[a-o+u*r]),n.data[a-e+u*r]=s/Math.min(a+1,r-1+o-a,o))}function pe(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),u=0;u<r;++u)for(var a=0,s=0;a<i+e;++a)a<i&&(s+=t.data[u+a*r]),a>=e&&(a>=o&&(s-=t.data[u+(a-o)*r]),n.data[u+(a-e)*r]=s/Math.min(a+1,i-1+o-a,o))}function ve(t){return t[0]}function ge(t){return t[1]}function ye(){return 1}function be(t){return new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'}).join(",")+"}")}function me(t,n){var e=be(t);return function(r,i){return n(e(r),i,t)}}function _e(t){var n=Object.create(null),e=[];return t.forEach(function(t){for(var r in t)r in n||e.push(n[r]=r)}),e}function xe(t,n){var e=t+"",r=e.length;return r<n?new Array(n-r+1).join(0)+e:e}function we(t){return t<0?"-"+xe(-t,6):t>9999?"+"+xe(t,6):xe(t,4)}function Se(t){var n=t.getUTCHours(),e=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":we(t.getUTCFullYear(),4)+"-"+xe(t.getUTCMonth()+1,2)+"-"+xe(t.getUTCDate(),2)+(i?"T"+xe(n,2)+":"+xe(e,2)+":"+xe(r,2)+"."+xe(i,3)+"Z":r?"T"+xe(n,2)+":"+xe(e,2)+":"+xe(r,2)+"Z":e||n?"T"+xe(n,2)+":"+xe(e,2)+"Z":"")}function Me(t){for(var n in t){var e,r,i=t[n].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(e=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;$l&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=e;else i=null;t[n]=i}return t}function Oe(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function Ee(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function Ce(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function Ae(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=void 0),Ll(n,e).then(function(n){return t(n,r)})}}function Ne(t,n,e,r){3===arguments.length&&"function"==typeof e&&(r=e,e=void 0);var i=xl(t);return Ll(n,e).then(function(t){return i.parse(t,r)})}function Te(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function Fe(t){return function(n,e){return Ll(n,e).then(function(n){return(new DOMParser).parseFromString(n,t)})}}function Pe(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,u,a,s,c,f,l,h,d=t._root,p={data:r},v=t._x0,g=t._y0,y=t._x1,b=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((c=n>=(o=(v+y)/2))?v=o:y=o,(f=e>=(u=(g+b)/2))?g=u:b=u,i=d,!(d=d[l=f<<1|c]))return i[l]=p,t;if(a=+t._x.call(null,d.data),s=+t._y.call(null,d.data),n===a&&e===s)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(c=n>=(o=(v+y)/2))?v=o:y=o,(f=e>=(u=(g+b)/2))?g=u:b=u}while((l=f<<1|c)==(h=(s>=u)<<1|a>=o));return i[h]=d,i[l]=p,t}function Re(t){var n,e,r,i,o=t.length,u=new Array(o),a=new Array(o),s=1/0,c=1/0,f=-1/0,l=-1/0;for(e=0;e<o;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(u[e]=r,a[e]=i,r<s&&(s=r),r>f&&(f=r),i<c&&(c=i),i>l&&(l=i));if(s>f||c>l)return this;for(this.cover(s,c).cover(f,l),e=0;e<o;++e)Pe(this,u[e],a[e],t[e]);return this}function Be(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this}function De(t){return t[0]}function ke(t){return t[1]}function Ie(t,n,e){var r=new $e(null==n?De:n,null==e?ke:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function $e(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Ue(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}function ze(t){return t.x+t.vx}function Le(t){return t.y+t.vy}function qe(t){return t.index}function je(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}function Ve(t){return t.x}function Ge(t){return t.y}function Qe(){this.reset()}function He(t,n,e){var r=t.s=n+e,i=r-n,o=r-i;t.t=n-o+(e-i)}function Ye(t){return t>1?0:t<-1?rd:Math.acos(t)}function We(t){return t>1?id:t<-1?-id:Math.asin(t)}function Xe(t){return(t=yd(t/2))*t}function Ze(){}function Ke(t,n){t&&wd.hasOwnProperty(t.type)&&wd[t.type](t,n)}function Je(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++i<o;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function tr(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)Je(t[e],n,1);n.polygonEnd()}function nr(){Ed.point=rr}function er(){ir(Sh,Mh)}function rr(t,n){Ed.point=ir,Sh=t,Mh=n,t*=sd,n*=sd,Oh=t,Eh=hd(n=n/2+od),Ch=yd(n)}function ir(t,n){t*=sd,n*=sd,n=n/2+od;var e=t-Oh,r=e>=0?1:-1,i=r*e,o=hd(n),u=yd(n),a=Ch*u,s=Eh*o+a*hd(i),c=a*r*yd(i);Md.add(ld(c,s)),Oh=t,Eh=o,Ch=u}function or(t){return[ld(t[1],t[0]),We(t[2])]}function ur(t){var n=t[0],e=t[1],r=hd(e);return[r*hd(n),r*yd(n),yd(e)]}function ar(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function sr(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function cr(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function fr(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function lr(t){var n=md(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}function hr(t,n){kh.push(Ih=[Ah=t,Th=t]),n<Nh&&(Nh=n),n>Fh&&(Fh=n)}function dr(t,n){var e=ur([t*sd,n*sd]);if(Dh){var r=sr(Dh,e),i=[r[1],-r[0],0],o=sr(i,r);lr(o),o=or(o);var u,a=t-Ph,s=a>0?1:-1,c=o[0]*ad*s,f=cd(a)>180;f^(s*Ph<c&&c<s*t)?(u=o[1]*ad)>Fh&&(Fh=u):(c=(c+360)%360-180,f^(s*Ph<c&&c<s*t)?(u=-o[1]*ad)<Nh&&(Nh=u):(n<Nh&&(Nh=n),n>Fh&&(Fh=n))),f?t<Ph?mr(Ah,t)>mr(Ah,Th)&&(Th=t):mr(t,Th)>mr(Ah,Th)&&(Ah=t):Th>=Ah?(t<Ah&&(Ah=t),t>Th&&(Th=t)):t>Ph?mr(Ah,t)>mr(Ah,Th)&&(Th=t):mr(t,Th)>mr(Ah,Th)&&(Ah=t)}else kh.push(Ih=[Ah=t,Th=t]);n<Nh&&(Nh=n),n>Fh&&(Fh=n),Dh=e,Ph=t}function pr(){Nd.point=dr}function vr(){Ih[0]=Ah,Ih[1]=Th,Nd.point=hr,Dh=null}function gr(t,n){if(Dh){var e=t-Ph;Ad.add(cd(e)>180?e+(e>0?360:-360):e)}else Rh=t,Bh=n;Ed.point(t,n),dr(t,n)}function yr(){Ed.lineStart()}function br(){gr(Rh,Bh),Ed.lineEnd(),cd(Ad)>nd&&(Ah=-(Th=180)),Ih[0]=Ah,Ih[1]=Th,Dh=null}function mr(t,n){return(n-=t)<0?n+360:n}function _r(t,n){return t[0]-n[0]}function xr(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}function wr(t,n){t*=sd,n*=sd;var e=hd(n);Sr(e*hd(t),e*yd(t),yd(n))}function Sr(t,n,e){++$h,zh+=(t-zh)/$h,Lh+=(n-Lh)/$h,qh+=(e-qh)/$h}function Mr(){Fd.point=Or}function Or(t,n){t*=sd,n*=sd;var e=hd(n);Zh=e*hd(t),Kh=e*yd(t),Jh=yd(n),Fd.point=Er,Sr(Zh,Kh,Jh)}function Er(t,n){t*=sd,n*=sd;var e=hd(n),r=e*hd(t),i=e*yd(t),o=yd(n),u=ld(md((u=Kh*o-Jh*i)*u+(u=Jh*r-Zh*o)*u+(u=Zh*i-Kh*r)*u),Zh*r+Kh*i+Jh*o);Uh+=u,jh+=u*(Zh+(Zh=r)),Vh+=u*(Kh+(Kh=i)),Gh+=u*(Jh+(Jh=o)),Sr(Zh,Kh,Jh)}function Cr(){Fd.point=wr}function Ar(){Fd.point=Tr}function Nr(){Fr(Wh,Xh),Fd.point=wr}function Tr(t,n){Wh=t,Xh=n,t*=sd,n*=sd,Fd.point=Fr;var e=hd(n);Zh=e*hd(t),Kh=e*yd(t),Jh=yd(n),Sr(Zh,Kh,Jh)}function Fr(t,n){t*=sd,n*=sd;var e=hd(n),r=e*hd(t),i=e*yd(t),o=yd(n),u=Kh*o-Jh*i,a=Jh*r-Zh*o,s=Zh*i-Kh*r,c=md(u*u+a*a+s*s),f=We(c),l=c&&-f/c;Qh+=l*u,Hh+=l*a,Yh+=l*s,Uh+=f,jh+=f*(Zh+(Zh=r)),Vh+=f*(Kh+(Kh=i)),Gh+=f*(Jh+(Jh=o)),Sr(Zh,Kh,Jh)}function Pr(t,n){return[cd(t)>rd?t+Math.round(-t/ud)*ud:t,n]}function Rr(t,n,e){return(t%=ud)?n||e?Bd(Dr(t),kr(n,e)):Dr(t):n||e?kr(n,e):Pr}function Br(t){return function(n,e){return n+=t,[n>rd?n-ud:n<-rd?n+ud:n,e]}}function Dr(t){var n=Br(t);return n.invert=Br(-t),n}function kr(t,n){function e(t,n){var e=hd(n),a=hd(t)*e,s=yd(t)*e,c=yd(n),f=c*r+a*i;return[ld(s*o-f*u,a*r-c*i),We(f*o+s*u)]}var r=hd(t),i=yd(t),o=hd(n),u=yd(n);return e.invert=function(t,n){var e=hd(n),a=hd(t)*e,s=yd(t)*e,c=yd(n),f=c*o-s*u;return[ld(s*o+c*u,a*r+f*i),We(f*r-a*i)]},e}function Ir(t,n,e,r,i,o){if(e){var u=hd(n),a=yd(n),s=r*e;null==i?(i=n+r*ud,o=n-s/2):(i=$r(u,i),o=$r(u,o),(r>0?i<o:i>o)&&(i+=r*ud));for(var c,f=i;r>0?f>o:f<o;f-=s)c=or([u,-a*hd(f),-a*yd(f)]),t.point(c[0],c[1])}}function $r(t,n){n=ur(n),n[0]-=t,lr(n);var e=Ye(-n[1]);return((-n[2]<0?-e:e)+ud-nd)%ud}function Ur(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function zr(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function Lr(t){return cd(t[0])<=rd?t[0]:bd(t[0])*((cd(t[0])+rd)%ud-rd)}function qr(t){return t.length>1}function jr(t,n){return((t=t.x)[0]<0?t[1]-id-nd:id-t[1])-((n=n.x)[0]<0?n[1]-id-nd:id-n[1])}function Vr(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,u){var a=o>0?rd:-rd,s=cd(o-e);cd(s-rd)<nd?(t.point(e,r=(r+u)/2>0?id:-id),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(o,r),n=0):i!==a&&s>=rd&&(cd(e-i)<nd&&(e-=i*nd),cd(o-a)<nd&&(o-=a*nd),r=Gr(e,r,o,u),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),n=0),t.point(e=o,r=u),i=a},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}function Gr(t,n,e,r){var i,o,u=yd(t-e);return cd(u)>nd?fd((yd(n)*(o=hd(r))*yd(e)-yd(r)*(i=hd(n))*yd(t))/(i*o*u)):(n+r)/2}function Qr(t,n,e,r){var i;if(null==t)i=e*id,r.point(-rd,i),r.point(0,i),r.point(rd,i),r.point(rd,0),r.point(rd,-i),r.point(0,-i),r.point(-rd,-i),r.point(-rd,0),r.point(-rd,i);else if(cd(t[0]-n[0])>nd){var o=t[0]<n[0]?rd:-rd;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}function Hr(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,a,c){var f=0,l=0;if(null==i||(f=u(i,a))!==(l=u(o,a))||s(i,o)<0^a>0)do{c.point(0===f||3===f?t:e,f>1?r:n)}while((f=(f+a+4)%4)!==l);else c.point(o[0],o[1])}function u(r,i){return cd(r[0]-t)<nd?i>0?0:3:cd(r[0]-e)<nd?i>0?2:1:cd(r[1]-n)<nd?i>0?1:0:i>0?3:2}function a(t,n){return s(t.x,n.x)}function s(t,n){var e=u(t,1),r=u(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(u){function s(t,n){i(t,n)&&E.point(t,n)}function c(){for(var n=0,e=0,i=g.length;e<i;++e)for(var o,u,a=g[e],s=1,c=a.length,f=a[0],l=f[0],h=f[1];s<c;++s)o=l,u=h,f=a[s],l=f[0],h=f[1],u<=r?h>r&&(l-o)*(r-u)>(h-u)*(t-o)&&++n:h<=r&&(l-o)*(r-u)<(h-u)*(t-o)&&--n;return n}function f(){E=C,v=[],g=[],O=!0}function l(){var t=c(),n=O&&t,e=(v=Object(Ga.n)(v)).length;(n||e)&&(u.polygonStart(),n&&(u.lineStart(),o(null,null,1,u),u.lineEnd()),e&&Xd(v,a,t,o,u),u.polygonEnd()),E=u,v=g=y=null}function h(){A.point=p,g&&g.push(y=[]),M=!0,S=!1,x=w=NaN}function d(){v&&(p(b,m),_&&S&&C.rejoin(),v.push(C.result())),A.point=s,S&&E.lineEnd()}function p(o,u){var a=i(o,u);if(g&&y.push([o,u]),M)b=o,m=u,_=a,M=!1,a&&(E.lineStart(),E.point(o,u));else if(a&&S)E.point(o,u);else{var s=[x=Math.max(ip,Math.min(rp,x)),w=Math.max(ip,Math.min(rp,w))],c=[o=Math.max(ip,Math.min(rp,o)),u=Math.max(ip,Math.min(rp,u))];ep(s,c,t,n,e,r)?(S||(E.lineStart(),E.point(s[0],s[1])),E.point(c[0],c[1]),a||E.lineEnd(),O=!1):a&&(E.lineStart(),E.point(o,u),O=!1)}x=o,w=u,S=a}var v,g,y,b,m,_,x,w,S,M,O,E=u,C=Yd(),A={point:s,lineStart:h,lineEnd:d,polygonStart:f,polygonEnd:l};return A}}function Yr(){ap.point=Xr,ap.lineEnd=Wr}function Wr(){ap.point=ap.lineEnd=Ze}function Xr(t,n){t*=sd,n*=sd,Dd=t,kd=yd(n),Id=hd(n),ap.point=Zr}function Zr(t,n){t*=sd,n*=sd;var e=yd(n),r=hd(n),i=cd(t-Dd),o=hd(i),u=yd(i),a=r*u,s=Id*e-kd*r*o,c=kd*e+Id*r*o;up.add(ld(md(a*a+s*s),c)),Dd=t,kd=e,Id=r}function Kr(t,n){return!(!t||!dp.hasOwnProperty(t.type))&&dp[t.type](t,n)}function Jr(t,n){return 0===lp(t,n)}function ti(t,n){for(var e,r,i,o=0,u=t.length;o<u;o++){if(0===(r=lp(t[o],n)))return!0;if(o>0&&(i=lp(t[o],t[o-1]))>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))<ed*i)return!0;e=r}return!1}function ni(t,n){return!!Kd(t.map(ei),ri(n))}function ei(t){return t=t.map(ri),t.pop(),t}function ri(t){return[t[0]*sd,t[1]*sd]}function ii(t,n,e){var r=Object(Ga.s)(t,n-nd,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function oi(t,n,e){var r=Object(Ga.s)(t,n-nd,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function ui(){function t(){return{type:"MultiLineString",coordinates:n()}}function n(){return Object(Ga.s)(dd(o/g)*g,i,g).map(h).concat(Object(Ga.s)(dd(c/y)*y,s,y).map(d)).concat(Object(Ga.s)(dd(r/p)*p,e,p).filter(function(t){return cd(t%g)>nd}).map(f)).concat(Object(Ga.s)(dd(a/v)*v,u,v).filter(function(t){return cd(t%y)>nd}).map(l))}var e,r,i,o,u,a,s,c,f,l,h,d,p=10,v=p,g=90,y=360,b=2.5;return t.lines=function(){return n().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[h(o).concat(d(s).slice(1),h(i).reverse().slice(1),d(c).reverse().slice(1))]}},t.extent=function(n){return arguments.length?t.extentMajor(n).extentMinor(n):t.extentMinor()},t.extentMajor=function(n){return arguments.length?(o=+n[0][0],i=+n[1][0],c=+n[0][1],s=+n[1][1],o>i&&(n=o,o=i,i=n),c>s&&(n=c,c=s,s=n),t.precision(b)):[[o,c],[i,s]]},t.extentMinor=function(n){return arguments.length?(r=+n[0][0],e=+n[1][0],a=+n[0][1],u=+n[1][1],r>e&&(n=r,r=e,e=n),a>u&&(n=a,a=u,u=n),t.precision(b)):[[r,a],[e,u]]},t.step=function(n){return arguments.length?t.stepMajor(n).stepMinor(n):t.stepMinor()},t.stepMajor=function(n){return arguments.length?(g=+n[0],y=+n[1],t):[g,y]},t.stepMinor=function(n){return arguments.length?(p=+n[0],v=+n[1],t):[p,v]},t.precision=function(n){return arguments.length?(b=+n,f=ii(a,u,90),l=oi(r,e,b),h=ii(c,s,90),d=oi(o,i,b),t):b},t.extentMajor([[-180,-90+nd],[180,90-nd]]).extentMinor([[-180,-80-nd],[180,80+nd]])}function ai(){return ui()()}function si(){mp.point=ci}function ci(t,n){mp.point=fi,$d=zd=t,Ud=Ld=n}function fi(t,n){bp.add(Ld*t-zd*n),zd=t,Ld=n}function li(){fi($d,Ud)}function hi(t,n){t<xp&&(xp=t),t>Sp&&(Sp=t),n<wp&&(wp=n),n>Mp&&(Mp=n)}function di(t,n){Cp+=t,Ap+=n,++Np}function pi(){kp.point=vi}function vi(t,n){kp.point=gi,di(Vd=t,Gd=n)}function gi(t,n){var e=t-Vd,r=n-Gd,i=md(e*e+r*r);Tp+=i*(Vd+t)/2,Fp+=i*(Gd+n)/2,Pp+=i,di(Vd=t,Gd=n)}function yi(){kp.point=di}function bi(){kp.point=_i}function mi(){xi(qd,jd)}function _i(t,n){kp.point=xi,di(qd=Vd=t,jd=Gd=n)}function xi(t,n){var e=t-Vd,r=n-Gd,i=md(e*e+r*r);Tp+=i*(Vd+t)/2,Fp+=i*(Gd+n)/2,Pp+=i,i=Gd*t-Vd*n,Rp+=i*(Vd+t),Bp+=i*(Gd+n),Dp+=3*i,di(Vd=t,Gd=n)}function wi(t){this._context=t}function Si(t,n){Vp.point=Mi,Up=Lp=t,zp=qp=n}function Mi(t,n){Lp-=t,qp-=n,jp.add(md(Lp*Lp+qp*qp)),Lp=t,qp=n}function Oi(){this._string=[]}function Ei(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Ci(t){return function(n){var e=new Ai;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Ai(){}function Ni(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Sd(e,t.stream(Ep)),n(Ep.result()),null!=r&&t.clipExtent(r),t}function Ti(t,n,e){return Ni(t,function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),u=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,a=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([u,a])},e)}function Fi(t,n,e){return Ti(t,[[0,0],n],e)}function Pi(t,n,e){return Ni(t,function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,u=-i*e[0][1];t.scale(150*i).translate([o,u])},e)}function Ri(t,n,e){return Ni(t,function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],u=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,u])},e)}function Bi(t){return Ci({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}function Di(t,n){function e(r,i,o,u,a,s,c,f,l,h,d,p,v,g){var y=c-r,b=f-i,m=y*y+b*b;if(m>4*n&&v--){var _=u+h,x=a+d,w=s+p,S=md(_*_+x*x+w*w),M=We(w/=S),O=cd(cd(w)-1)<nd||cd(o-l)<nd?(o+l)/2:ld(x,_),E=t(O,M),C=E[0],A=E[1],N=C-r,T=A-i,F=b*N-y*T;(F*F/m>n||cd((y*N+b*T)/m-.5)>.3||u*h+a*d+s*p<Wp)&&(e(r,i,o,u,a,s,C,A,O,_/=S,x/=S,w,v,g),g.point(C,A),e(C,A,O,_,x,w,c,f,l,h,d,p,v,g))}}return function(n){function r(e,r){e=t(e,r),n.point(e[0],e[1])}function i(){y=NaN,w.point=o,n.lineStart()}function o(r,i){var o=ur([r,i]),u=t(r,i);e(y,b,g,m,_,x,y=u[0],b=u[1],g=r,m=o[0],_=o[1],x=o[2],Yp,n),n.point(y,b)}function u(){w.point=r,n.lineEnd()}function a(){i(),w.point=s,w.lineEnd=c}function s(t,n){o(f=t,n),l=y,h=b,d=m,p=_,v=x,w.point=o}function c(){e(y,b,g,m,_,x,l,h,f,d,p,v,Yp,n),w.lineEnd=u,u()}var f,l,h,d,p,v,g,y,b,m,_,x,w={point:r,lineStart:i,lineEnd:u,polygonStart:function(){n.polygonStart(),w.lineStart=a},polygonEnd:function(){n.polygonEnd(),w.lineStart=i}};return w}}function ki(t){return Ci({point:function(n,e){var r=t(n,e);return this.stream.point(r[0],r[1])}})}function Ii(t,n,e,r,i){function o(o,u){return o*=r,u*=i,[n+t*o,e-t*u]}return o.invert=function(o,u){return[(o-n)/t*r,(e-u)/t*i]},o}function $i(t,n,e,r,i,o){function u(t,o){return t*=r,o*=i,[c*t-f*o+n,e-f*t-c*o]}var a=hd(o),s=yd(o),c=a*t,f=s*t,l=a/t,h=s/t,d=(s*e-a*n)/t,p=(s*n+a*e)/t;return u.invert=function(t,n){return[r*(l*t-h*n+d),i*(p-h*t-l*n)]},u}function Ui(t){return zi(function(){return t})()}function zi(t){function n(t){return h(t[0]*sd,t[1]*sd)}function e(t){return(t=h.invert(t[0],t[1]))&&[t[0]*ad,t[1]*ad]}function r(){var t=$i(v,0,0,M,O,S).apply(null,o(b,m)),n=(S?$i:Ii)(v,g-t[0],y-t[1],M,O,S);return u=Rr(_,x,w),l=Bd(o,n),h=Bd(u,l),f=Xp(l,T),i()}function i(){return d=p=null,n}var o,u,a,s,c,f,l,h,d,p,v=150,g=480,y=250,b=0,m=0,_=0,x=0,w=0,S=0,M=1,O=1,E=null,C=tp,A=null,N=gp,T=.5;return n.stream=function(t){return d&&p===t?d:d=Zp(ki(u)(C(f(N(p=t)))))},n.preclip=function(t){return arguments.length?(C=t,E=void 0,i()):C},n.postclip=function(t){return arguments.length?(N=t,A=a=s=c=null,i()):N},n.clipAngle=function(t){return arguments.length?(C=+t?np(E=t*sd):(E=null,tp),i()):E*ad},n.clipExtent=function(t){return arguments.length?(N=null==t?(A=a=s=c=null,gp):Hr(A=+t[0][0],a=+t[0][1],s=+t[1][0],c=+t[1][1]),i()):null==A?null:[[A,a],[s,c]]},n.scale=function(t){return arguments.length?(v=+t,r()):v},n.translate=function(t){return arguments.length?(g=+t[0],y=+t[1],r()):[g,y]},n.center=function(t){return arguments.length?(b=t[0]%360*sd,m=t[1]%360*sd,r()):[b*ad,m*ad]},n.rotate=function(t){return arguments.length?(_=t[0]%360*sd,x=t[1]%360*sd,w=t.length>2?t[2]%360*sd:0,r()):[_*ad,x*ad,w*ad]},n.angle=function(t){return arguments.length?(S=t%360*sd,r()):S*ad},n.reflectX=function(t){return arguments.length?(M=t?-1:1,r()):M<0},n.reflectY=function(t){return arguments.length?(O=t?-1:1,r()):O<0},n.precision=function(t){return arguments.length?(f=Xp(l,T=t*t),i()):md(T)},n.fitExtent=function(t,e){return Ti(n,t,e)},n.fitSize=function(t,e){return Fi(n,t,e)},n.fitWidth=function(t,e){return Pi(n,t,e)},n.fitHeight=function(t,e){return Ri(n,t,e)},function(){return o=t.apply(this,arguments),n.invert=o.invert&&e,r()}}function Li(t){var n=0,e=rd/3,r=zi(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*sd,e=t[1]*sd):[n*ad,e*ad]},i}function qi(t){function n(t,n){return[t*e,yd(n)/e]}var e=hd(t);return n.invert=function(t,n){return[t/e,We(n*e)]},n}function ji(t,n){function e(t,n){var e=md(o-2*i*yd(n))/i;return[e*yd(t*=i),u-e*hd(t)]}var r=yd(t),i=(r+yd(n))/2;if(cd(i)<nd)return qi(t);var o=1+r*(2*i-r),u=md(o)/i;return e.invert=function(t,n){var e=u-n,r=ld(t,cd(e))*bd(e);return e*i<0&&(r-=rd*bd(t)*bd(e)),[r/i,We((o-(t*t+e*e)*i*i)/(2*i))]},e}function Vi(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i<n;)t[i].point(e,r)},sphere:function(){for(var e=-1;++e<n;)t[e].sphere()},lineStart:function(){for(var e=-1;++e<n;)t[e].lineStart()},lineEnd:function(){for(var e=-1;++e<n;)t[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<n;)t[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<n;)t[e].polygonEnd()}}}function Gi(t){return function(n,e){var r=hd(n),i=hd(e),o=t(r*i);return[o*i*yd(n),o*yd(e)]}}function Qi(t){return function(n,e){var r=md(n*n+e*e),i=t(r),o=yd(i),u=hd(i);return[ld(n*o,r*u),We(r&&e*o/r)]}}function Hi(t,n){return[t,vd(_d((id+n)/2))]}function Yi(t){function n(){var n=rd*a(),u=o(Qd(o.rotate()).invert([0,0]));return c(null==f?[[u[0]-n,u[1]-n],[u[0]+n,u[1]+n]]:t===Hi?[[Math.max(u[0]-n,f),e],[Math.min(u[0]+n,r),i]]:[[f,Math.max(u[1]-n,e)],[r,Math.min(u[1]+n,i)]])}var e,r,i,o=Ui(t),u=o.center,a=o.scale,s=o.translate,c=o.clipExtent,f=null;return o.scale=function(t){return arguments.length?(a(t),n()):a()},o.translate=function(t){return arguments.length?(s(t),n()):s()},o.center=function(t){return arguments.length?(u(t),n()):u()},o.clipExtent=function(t){return arguments.length?(null==t?f=e=r=i=null:(f=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),n()):null==f?null:[[f,e],[r,i]]},n()}function Wi(t){return _d((id+t)/2)}function Xi(t,n){function e(t,n){o>0?n<-id+nd&&(n=-id+nd):n>id-nd&&(n=id-nd);var e=o/gd(Wi(n),i);return[e*yd(i*t),o-e*hd(i*t)]}var r=hd(t),i=t===n?yd(t):vd(r/hd(n))/vd(Wi(n)/Wi(t)),o=r*gd(Wi(t),i)/i;return i?(e.invert=function(t,n){var e=o-n,r=bd(i)*md(t*t+e*e),u=ld(t,cd(e))*bd(e);return e*i<0&&(u-=rd*bd(t)*bd(e)),[u/i,2*fd(gd(o/r,1/i))-id]},e):Hi}function Zi(t,n){return[t,n]}function Ki(t,n){function e(t,n){var e=o-n,r=i*t;return[e*yd(r),o-e*hd(r)]}var r=hd(t),i=t===n?yd(t):(r-hd(n))/(n-t),o=r/i+t;return cd(i)<nd?Zi:(e.invert=function(t,n){var e=o-n,r=ld(t,cd(e))*bd(e);return e*i<0&&(r-=rd*bd(t)*bd(e)),[r/i,o-bd(i)*md(t*t+e*e)]},e)}function Ji(t,n){var e=We(dv*yd(n)),r=e*e,i=r*r*r;return[t*hd(e)/(dv*(cv+3*fv*r+i*(7*lv+9*hv*r))),e*(cv+fv*r+i*(lv+hv*r))]}function to(t,n){var e=hd(n),r=hd(t)*e;return[e*yd(t)/r,yd(n)/r]}function no(t,n){var e=n*n,r=e*e;return[t*(.8707-.131979*e+r*(r*(.003971*e-.001529*r)-.013791)),n*(1.007226+e*(.015085+r*(.028874*e-.044475-.005916*r)))]}function eo(t,n){return[hd(n)*yd(t),yd(n)]}function ro(t,n){var e=hd(n),r=1+hd(t)*e;return[e*yd(t)/r,yd(n)/r]}function io(t,n){return[vd(_d((id+n)/2)),-t]}function oo(t,n){return t.parent===n.parent?1:2}function uo(t){return t.reduce(ao,0)/t.length}function ao(t,n){return t+n.x}function so(t){return 1+t.reduce(co,0)}function co(t,n){return Math.max(t,n.y)}function fo(t){for(var n;n=t.children;)t=n[0];return t}function lo(t){for(var n;n=t.children;)t=n[n.length-1];return t}function ho(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function po(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}function vo(t,n){var e,r,i,o,u,a=new _o(t),s=+t.value&&(a.value=t.value),c=[a];for(null==n&&(n=yo);e=c.pop();)if(s&&(e.value=+e.data.value),(i=n(e.data))&&(u=i.length))for(e.children=new Array(u),o=u-1;o>=0;--o)c.push(r=e.children[o]=new _o(i[o])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(mo)}function go(){return vo(this).eachBefore(bo)}function yo(t){return t.children}function bo(t){t.data=t.data.data}function mo(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function _o(t){this.data=t,this.depth=this.height=0,this.parent=null}function xo(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}function wo(t,n){var e,r;if(Oo(n,t))return[n];for(e=0;e<t.length;++e)if(So(n,t[e])&&Oo(Ao(t[e],n),t))return[t[e],n];for(e=0;e<t.length-1;++e)for(r=e+1;r<t.length;++r)if(So(Ao(t[e],t[r]),n)&&So(Ao(t[e],n),t[r])&&So(Ao(t[r],n),t[e])&&Oo(No(t[e],t[r],n),t))return[t[e],t[r],n];throw new Error}function So(t,n){var e=t.r-n.r,r=n.x-t.x,i=n.y-t.y;return e<0||e*e<r*r+i*i}function Mo(t,n){var e=t.r-n.r+1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function Oo(t,n){for(var e=0;e<n.length;++e)if(!Mo(t,n[e]))return!1;return!0}function Eo(t){switch(t.length){case 1:return Co(t[0]);case 2:return Ao(t[0],t[1]);case 3:return No(t[0],t[1],t[2])}}function Co(t){return{x:t.x,y:t.y,r:t.r}}function Ao(t,n){var e=t.x,r=t.y,i=t.r,o=n.x,u=n.y,a=n.r,s=o-e,c=u-r,f=a-i,l=Math.sqrt(s*s+c*c);return{x:(e+o+s/l*f)/2,y:(r+u+c/l*f)/2,r:(l+i+a)/2}}function No(t,n,e){var r=t.x,i=t.y,o=t.r,u=n.x,a=n.y,s=n.r,c=e.x,f=e.y,l=e.r,h=r-u,d=r-c,p=i-a,v=i-f,g=s-o,y=l-o,b=r*r+i*i-o*o,m=b-u*u-a*a+s*s,_=b-c*c-f*f+l*l,x=d*p-h*v,w=(p*_-v*m)/(2*x)-r,S=(v*g-p*y)/x,M=(d*m-h*_)/(2*x)-i,O=(h*y-d*g)/x,E=S*S+O*O-1,C=2*(o+w*S+M*O),A=w*w+M*M-o*o,N=-(E?(C+Math.sqrt(C*C-4*E*A))/(2*E):A/C);return{x:r+w+S*N,y:i+M+O*N,r:N}}function To(t,n,e){var r,i,o,u,a=t.x-n.x,s=t.y-n.y,c=a*a+s*s;c?(i=n.r+e.r,i*=i,u=t.r+e.r,u*=u,i>u?(r=(c+u-i)/(2*c),o=Math.sqrt(Math.max(0,u/c-r*r)),e.x=t.x-r*a-o*s,e.y=t.y-r*s+o*a):(r=(c+i-u)/(2*c),o=Math.sqrt(Math.max(0,i/c-r*r)),e.x=n.x+r*a-o*s,e.y=n.y+r*s+o*a)):(e.x=n.x+e.r,e.y=n.y)}function Fo(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function Po(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function Ro(t){this._=t,this.next=null,this.previous=null}function Bo(t){if(!(i=t.length))return 0;var n,e,r,i,o,u,a,s,c,f,l;if(n=t[0],n.x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;To(e,n,r=t[2]),n=new Ro(n),e=new Ro(e),r=new Ro(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(a=3;a<i;++a){To(n._,e._,r=t[a]),r=new Ro(r),s=e.next,c=n.previous,f=e._.r,l=n._.r;do{if(f<=l){if(Fo(s._,r._)){e=s,n.next=e,e.previous=n,--a;continue t}f+=s._.r,s=s.next}else{if(Fo(c._,r._)){n=c,n.next=e,e.previous=n,--a;continue t}l+=c._.r,c=c.previous}}while(s!==c.next);for(r.previous=n,r.next=e,n.next=e.previous=e=r,o=Po(n);(r=r.next)!==e;)(u=Po(r))<o&&(n=r,o=u);e=n.next}for(n=[e._],r=e;(r=r.next)!==e;)n.push(r._);for(r=Bv(n),a=0;a<i;++a)n=t[a],n.x-=r.x,n.y-=r.y;return r.r}function Do(t){return null==t?null:ko(t)}function ko(t){if("function"!=typeof t)throw new Error;return t}function Io(){return 0}function $o(t){return Math.sqrt(t.value)}function Uo(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function zo(t,n){return function(e){if(r=e.children){var r,i,o,u=r.length,a=t(e)*n||0;if(a)for(i=0;i<u;++i)r[i].r+=a;if(o=Bo(r),a)for(i=0;i<u;++i)r[i].r-=a;e.r=o+a}}}function Lo(t){return function(n){var e=n.parent;n.r*=t,e&&(n.x=e.x+t*n.x,n.y=e.y+t*n.y)}}function qo(t){return t.id}function jo(t){return t.parentId}function Vo(t,n){return t.parent===n.parent?1:2}function Go(t){var n=t.children;return n?n[0]:t.t}function Qo(t){var n=t.children;return n?n[n.length-1]:t.t}function Ho(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Yo(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)n=i[o],n.z+=e,n.m+=e,e+=n.s+(r+=n.c)}function Wo(t,n,e){return t.a.parent===n.parent?t.a:e}function Xo(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}function Zo(t){for(var n,e,r,i,o,u=new Xo(t,0),a=[u];n=a.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)a.push(e=n.children[i]=new Xo(r[i],i)),e.parent=n;return(u.parent=new Xo(null,0)).children=[u],u}function Ko(t,n,e,r,i,o){for(var u,a,s,c,f,l,h,d,p,v,g,y=[],b=n.children,m=0,_=0,x=b.length,w=n.value;m<x;){s=i-e,c=o-r;do{f=b[_++].value}while(!f&&_<x);for(l=h=f,v=Math.max(c/s,s/c)/(w*t),g=f*f*v,p=Math.max(h/g,g/l);_<x;++_){if(f+=a=b[_].value,a<l&&(l=a),a>h&&(h=a),g=f*f*v,(d=Math.max(h/g,g/l))>p){f-=a;break}p=d}y.push(u={value:f,dice:s<c,children:b.slice(m,_)}),u.dice?Uv(u,e,r,i,w?r+=c*f/w:o):Qv(u,e,r,w?e+=s*f/w:i,o),w-=f,m=_}return y}function Jo(t,n){return t[0]-n[0]||t[1]-n[1]}function tu(t){for(var n=t.length,e=[0,1],r=2,i=2;i<n;++i){for(;r>1&&ng(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function nu(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}function eu(t){return t>1?0:t<-1?Wy:Math.acos(t)}function ru(t){return t>=1?Xy:t<=-1?-Xy:Math.asin(t)}function iu(t){return t.innerRadius}function ou(t){return t.outerRadius}function uu(t){return t.startAngle}function au(t){return t.endAngle}function su(t){return t&&t.padAngle}function cu(t,n,e,r,i,o,u,a){var s=e-t,c=r-n,f=u-i,l=a-o,h=l*s-f*c;if(!(h*h<Yy))return h=(f*(n-o)-l*(t-i))/h,[t+h*s,n+h*c]}function fu(t,n,e,r,i,o,u){var a=t-e,s=n-r,c=(u?o:-o)/Hy(a*a+s*s),f=c*s,l=-c*a,h=t+f,d=n+l,p=e+f,v=r+l,g=(h+p)/2,y=(d+v)/2,b=p-h,m=v-d,_=b*b+m*m,x=i-o,w=h*v-p*d,S=(m<0?-1:1)*Hy(Vy(0,x*x*_-w*w)),M=(w*m-b*S)/_,O=(-w*b-m*S)/_,E=(w*m+b*S)/_,C=(-w*b+m*S)/_,A=M-g,N=O-y,T=E-g,F=C-y;return A*A+N*N>T*T+F*F&&(M=E,O=C),{cx:M,cy:O,x01:-f,y01:-l,x11:M*(i/x-1),y11:O*(i/x-1)}}function lu(t){this._context=t}function hu(t){return t[0]}function du(t){return t[1]}function pu(t){this._curve=t}function vu(t){function n(n){return new pu(t(n))}return n._curve=t,n}function gu(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(vu(t)):n()._curve},t}function yu(t){return t.source}function bu(t){return t.target}function mu(t){function n(){var n,a=cb.call(arguments),s=e.apply(this,a),c=r.apply(this,a);if(u||(u=n=rl()),t(u,+i.apply(this,(a[0]=s,a)),+o.apply(this,a),+i.apply(this,(a[0]=c,a)),+o.apply(this,a)),n)return u=null,n+""||null}var e=yu,r=bu,i=hu,o=du,u=null;return n.source=function(t){return arguments.length?(e=t,n):e},n.target=function(t){return arguments.length?(r=t,n):r},n.x=function(t){return arguments.length?(i="function"==typeof t?t:zy(+t),n):i},n.y=function(t){return arguments.length?(o="function"==typeof t?t:zy(+t),n):o},n.context=function(t){return arguments.length?(u=null==t?null:t,n):u},n}function _u(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function xu(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function wu(t,n,e,r,i){var o=sb(n,e),u=sb(n,e=(e+i)/2),a=sb(r,e),s=sb(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(u[0],u[1],a[0],a[1],s[0],s[1])}function Su(){return mu(_u)}function Mu(){return mu(xu)}function Ou(){var t=mu(wu);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}function Eu(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Cu(t){this._context=t}function Au(t){this._context=t}function Nu(t){this._context=t}function Tu(t,n){this._basis=new Cu(t),this._beta=n}function Fu(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function Pu(t,n){this._context=t,this._k=(1-n)/6}function Ru(t,n){this._context=t,this._k=(1-n)/6}function Bu(t,n){this._context=t,this._k=(1-n)/6}function Du(t,n,e){var r=t._x1,i=t._y1,o=t._x2,u=t._y2;if(t._l01_a>Yy){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>Yy){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-n*t._l12_2a)/f,u=(u*c+t._y1*t._l23_2a-e*t._l12_2a)/f}t._context.bezierCurveTo(r,i,o,u,t._x2,t._y2)}function ku(t,n){this._context=t,this._alpha=n}function Iu(t,n){this._context=t,this._alpha=n}function $u(t,n){this._context=t,this._alpha=n}function Uu(t){this._context=t}function zu(t){return t<0?-1:1}function Lu(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),u=(e-t._y1)/(i||r<0&&-0),a=(o*i+u*r)/(r+i);return(zu(o)+zu(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function qu(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function ju(t,n,e){var r=t._x0,i=t._y0,o=t._x1,u=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*n,o-a,u-a*e,o,u)}function Vu(t){this._context=t}function Gu(t){this._context=new Qu(t)}function Qu(t){this._context=t}function Hu(t){return new Vu(t)}function Yu(t){return new Gu(t)}function Wu(t){this._context=t}function Xu(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),u=new Array(r);for(i[0]=0,o[0]=2,u[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,u[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,u[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,u[n]-=e*u[n-1];for(i[r-1]=u[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(u[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}function Zu(t,n){this._context=t,this._t=n}function Ku(t){return new Zu(t,0)}function Ju(t){return new Zu(t,1)}function ta(t,n){return t[n]}function na(t){for(var n,e=-1,r=0,i=t.length,o=-1/0;++e<i;)(n=+t[e][1])>o&&(o=n,r=e);return r}function ea(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function ra(t){return t[0]}function ia(t){return t[1]}function oa(){this._=null}function ua(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function aa(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function sa(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function ca(t){for(;t.L;)t=t.L;return t}function fa(t,n,e,r){var i=[null,null],o=am.push(i)-1;return i.left=t,i.right=n,e&&ha(i,t,n,e),r&&ha(i,n,t,r),om[t.index].halfedges.push(o),om[n.index].halfedges.push(o),i}function la(t,n,e){var r=[n,e];return r.left=t,r}function ha(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function da(t,n,e,r,i){var o,u=t[0],a=t[1],s=u[0],c=u[1],f=a[0],l=a[1],h=0,d=1,p=f-s,v=l-c;if(o=n-s,p||!(o>0)){if(o/=p,p<0){if(o<h)return;o<d&&(d=o)}else if(p>0){if(o>d)return;o>h&&(h=o)}if(o=r-s,p||!(o<0)){if(o/=p,p<0){if(o>d)return;o>h&&(h=o)}else if(p>0){if(o<h)return;o<d&&(d=o)}if(o=e-c,v||!(o>0)){if(o/=v,v<0){if(o<h)return;o<d&&(d=o)}else if(v>0){if(o>d)return;o>h&&(h=o)}if(o=i-c,v||!(o<0)){if(o/=v,v<0){if(o>d)return;o>h&&(h=o)}else if(v>0){if(o<h)return;o<d&&(d=o)}return!(h>0||d<1)||(h>0&&(t[0]=[s+h*p,c+h*v]),d<1&&(t[1]=[s+d*p,c+d*v]),!0)}}}}}function pa(t,n,e,r,i){var o=t[1];if(o)return!0;var u,a,s=t[0],c=t.left,f=t.right,l=c[0],h=c[1],d=f[0],p=f[1],v=(l+d)/2,g=(h+p)/2;if(p===h){if(v<n||v>=r)return;if(l>d){if(s){if(s[1]>=i)return}else s=[v,e];o=[v,i]}else{if(s){if(s[1]<e)return}else s=[v,i];o=[v,e]}}else if(u=(l-d)/(p-h),a=g-u*v,u<-1||u>1)if(l>d){if(s){if(s[1]>=i)return}else s=[(e-a)/u,e];o=[(i-a)/u,i]}else{if(s){if(s[1]<e)return}else s=[(i-a)/u,i];o=[(e-a)/u,e]}else if(h<p){if(s){if(s[0]>=r)return}else s=[n,u*n+a];o=[r,u*r+a]}else{if(s){if(s[0]<n)return}else s=[r,u*r+a];o=[n,u*n+a]}return t[0]=s,t[1]=o,!0}function va(t,n,e,r){for(var i,o=am.length;o--;)pa(i=am[o],t,n,e,r)&&da(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>lm||Math.abs(i[0][1]-i[1][1])>lm)||delete am[o]}function ga(t){return om[t.index]={site:t,halfedges:[]}}function ya(t,n){var e=t.site,r=n.left,i=n.right;return e===i&&(i=r,r=e),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(e===r?(r=n[1],i=n[0]):(r=n[0],i=n[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function ba(t,n){return n[+(n.left!==t.site)]}function ma(t,n){return n[+(n.left===t.site)]}function _a(){for(var t,n,e,r,i=0,o=om.length;i<o;++i)if((t=om[i])&&(r=(n=t.halfedges).length)){var u=new Array(r),a=new Array(r);for(e=0;e<r;++e)u[e]=e,a[e]=ya(t,am[n[e]]);for(u.sort(function(t,n){return a[n]-a[t]}),e=0;e<r;++e)a[e]=n[u[e]];for(e=0;e<r;++e)n[e]=a[e]}}function xa(t,n,e,r){var i,o,u,a,s,c,f,l,h,d,p,v,g=om.length,y=!0;for(i=0;i<g;++i)if(o=om[i]){for(u=o.site,s=o.halfedges,a=s.length;a--;)am[s[a]]||s.splice(a,1);for(a=0,c=s.length;a<c;)d=ma(o,am[s[a]]),p=d[0],v=d[1],f=ba(o,am[s[++a%c]]),l=f[0],h=f[1],(Math.abs(p-l)>lm||Math.abs(v-h)>lm)&&(s.splice(a,0,am.push(la(u,d,Math.abs(p-t)<lm&&r-v>lm?[t,Math.abs(l-t)<lm?h:r]:Math.abs(v-r)<lm&&e-p>lm?[Math.abs(h-r)<lm?l:e,r]:Math.abs(p-e)<lm&&v-n>lm?[e,Math.abs(l-e)<lm?h:n]:Math.abs(v-n)<lm&&p-t>lm?[Math.abs(h-n)<lm?l:t,n]:null))-1),++c);c&&(y=!1)}if(y){var b,m,_,x=1/0;for(i=0,y=null;i<g;++i)(o=om[i])&&(u=o.site,b=u[0]-t,m=u[1]-n,(_=b*b+m*m)<x&&(x=_,y=o));if(y){var w=[t,n],S=[t,r],M=[e,r],O=[e,n];y.halfedges.push(am.push(la(u=y.site,w,S))-1,am.push(la(u,S,M))-1,am.push(la(u,M,O))-1,am.push(la(u,O,w))-1)}}for(i=0;i<g;++i)(o=om[i])&&(o.halfedges.length||delete om[i])}function wa(){ua(this),this.x=this.y=this.arc=this.site=this.cy=null}function Sa(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,o=e.site;if(r!==o){var u=i[0],a=i[1],s=r[0]-u,c=r[1]-a,f=o[0]-u,l=o[1]-a,h=2*(s*l-c*f);if(!(h>=-hm)){var d=s*s+c*c,p=f*f+l*l,v=(l*d-c*p)/h,g=(s*p-f*d)/h,y=cm.pop()||new wa;y.arc=t,y.site=i,y.x=v+u,y.y=(y.cy=g+a)+Math.sqrt(v*v+g*g),t.circle=y;for(var b=null,m=um._;m;)if(y.y<m.y||y.y===m.y&&y.x<=m.x){if(!m.L){b=m.P;break}m=m.L}else{if(!m.R){b=m;break}m=m.R}um.insert(b,y),b||(rm=y)}}}}function Ma(t){var n=t.circle;n&&(n.P||(rm=n.N),um.remove(n),cm.push(n),ua(n),t.circle=null)}function Oa(){ua(this),this.edge=this.site=this.circle=null}function Ea(t){var n=fm.pop()||new Oa;return n.site=t,n}function Ca(t){Ma(t),im.remove(t),fm.push(t),ua(t)}function Aa(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,u=t.N,a=[t];Ca(t);for(var s=o;s.circle&&Math.abs(e-s.circle.x)<lm&&Math.abs(r-s.circle.cy)<lm;)o=s.P,a.unshift(s),Ca(s),s=o;a.unshift(s),Ma(s);for(var c=u;c.circle&&Math.abs(e-c.circle.x)<lm&&Math.abs(r-c.circle.cy)<lm;)u=c.N,a.push(c),Ca(c),c=u;a.push(c),Ma(c);var f,l=a.length;for(f=1;f<l;++f)c=a[f],s=a[f-1],ha(c.edge,s.site,c.site,i);s=a[0],c=a[l-1],c.edge=fa(s.site,c.site,null,i),Sa(s),Sa(c)}function Na(t){for(var n,e,r,i,o=t[0],u=t[1],a=im._;a;)if((r=Ta(a,u)-o)>lm)a=a.L;else{if(!((i=o-Fa(a,u))>lm)){r>-lm?(n=a.P,e=a):i>-lm?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}ga(t);var s=Ea(t);if(im.insert(n,s),n||e){if(n===e)return Ma(n),e=Ea(n.site),im.insert(s,e),s.edge=e.edge=fa(n.site,s.site),Sa(n),void Sa(e);if(!e)return void(s.edge=fa(n.site,s.site));Ma(n),Ma(e);var c=n.site,f=c[0],l=c[1],h=t[0]-f,d=t[1]-l,p=e.site,v=p[0]-f,g=p[1]-l,y=2*(h*g-d*v),b=h*h+d*d,m=v*v+g*g,_=[(g*b-d*m)/y+f,(h*m-v*b)/y+l];ha(e.edge,c,p,_),s.edge=fa(c,t,null,_),e.edge=fa(t,p,null,_),Sa(n),Sa(e)}}function Ta(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var u=t.P;if(!u)return-1/0;e=u.site;var a=e[0],s=e[1],c=s-n;if(!c)return a;var f=a-r,l=1/o-1/c,h=f/c;return l?(-h+Math.sqrt(h*h-2*l*(f*f/(-2*c)-s+c/2+i-o/2)))/l+r:(r+a)/2}function Fa(t,n){var e=t.N;if(e)return Ta(e,n);var r=t.site;return r[1]===n?r[0]:1/0}function Pa(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function Ra(t,n){return n[1]-t[1]||n[0]-t[0]}function Ba(t,n){var e,r,i,o=t.sort(Ra).pop();for(am=[],om=new Array(t.length),im=new sm,um=new sm;;)if(i=rm,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===e&&o[1]===r||(Na(o),e=o[0],r=o[1]),o=t.pop();else{if(!i)break;Aa(i.arc)}if(_a(),n){var u=+n[0][0],a=+n[0][1],s=+n[1][0],c=+n[1][1];va(u,a,s,c),xa(u,a,s,c)}this.edges=am,this.cells=om,im=um=am=om=null}function Da(t,n,e){this.target=t,this.type=n,this.transform=e}function ka(t,n,e){this.k=t,this.x=n,this.y=e}function Ia(t){for(;!t.__zoom;)if(!(t=t.parentNode))return vm;return t.__zoom}function $a(){qs.stopImmediatePropagation()}function Ua(){return!qs.ctrlKey&&!qs.button}function za(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function La(){return this.__zoom||vm}function qa(){return-qs.deltaY*(1===qs.deltaMode?.05:qs.deltaMode?1:.002)}function ja(){return navigator.maxTouchPoints||"ontouchstart"in this}function Va(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}Object.defineProperty(n,"__esModule",{value:!0});var Ga=e(32),Qa=Array.prototype.slice,Ha=function(t){return t},Ya=1,Wa=2,Xa=3,Za=4,Ka=1e-6,Ja={value:function(){}};p.prototype=d.prototype={constructor:p,on:function(t,n){var e,r=this._,i=v(t+"",r),o=-1,u=i.length;{if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<u;)if(e=(t=i[o]).type)r[e]=y(r[e],t.name,n);else if(null==n)for(e in r)r[e]=y(r[e],t.name,null);return this}for(;++o<u;)if((e=(t=i[o]).type)&&(e=g(r[e],t.name)))return e}},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new p(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,e=r.length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var ts=d,ns="http://www.w3.org/1999/xhtml",es={svg:"http://www.w3.org/2000/svg",xhtml:ns,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},rs=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),es.hasOwnProperty(n)?{space:es[n],local:t}:t},is=function(t){var n=rs(t);return(n.local?m:b)(n)},os=function(t){return null==t?_:function(){return this.querySelector(t)}},us=function(t){"function"!=typeof t&&(t=os(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],s=a.length,c=r[i]=new Array(s),f=0;f<s;++f)(o=a[f])&&(u=t.call(o,o.__data__,f,a))&&("__data__"in o&&(u.__data__=o.__data__),c[f]=u);return new pt(r,this._parents)},as=function(t){return null==t?x:function(){return this.querySelectorAll(t)}},ss=function(t){"function"!=typeof t&&(t=as(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],s=a.length,c=0;c<s;++c)(u=a[c])&&(r.push(t.call(u,u.__data__,c,a)),i.push(u));return new pt(r,i)},cs=function(t){return function(){return this.matches(t)}},fs=function(t){"function"!=typeof t&&(t=cs(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,s=r[i]=[],c=0;c<a;++c)(o=u[c])&&t.call(o,o.__data__,c,u)&&s.push(o);return new pt(r,this._parents)},ls=function(t){return new Array(t.length)},hs=function(){return new pt(this._enter||this._groups.map(ls),this._parents)};w.prototype={constructor:w,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var ds=function(t){return function(){return t}},ps="$",vs=function(t,n){if(!t)return d=new Array(this.size()),c=-1,this.each(function(t){d[++c]=t}),d;var e=n?M:S,r=this._parents,i=this._groups;"function"!=typeof t&&(t=ds(t));for(var o=i.length,u=new Array(o),a=new Array(o),s=new Array(o),c=0;c<o;++c){var f=r[c],l=i[c],h=l.length,d=t.call(f,f&&f.__data__,c,r),p=d.length,v=a[c]=new Array(p),g=u[c]=new Array(p);e(f,l,v,g,s[c]=new Array(h),d,n);for(var y,b,m=0,_=0;m<p;++m)if(y=v[m]){for(m>=_&&(_=m+1);!(b=g[_])&&++_<p;);y._next=b||null}}return u=new pt(u,r),u._enter=a,u._exit=s,u},gs=function(){return new pt(this._exit||this._groups.map(ls),this._parents)},ys=function(t,n,e){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},bs=function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var s,c=n[a],f=e[a],l=c.length,h=u[a]=new Array(l),d=0;d<l;++d)(s=c[d]||f[d])&&(h[d]=s);for(;a<r;++a)u[a]=n[a];return new pt(u,this._parents)},ms=function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},_s=function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=O);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],s=a.length,c=i[o]=new Array(s),f=0;f<s;++f)(u=a[f])&&(c[f]=u);c.sort(n)}return new pt(i,this._parents).order()},xs=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},ws=function(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},Ss=function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},Ms=function(){var t=0;return this.each(function(){++t}),t},Os=function(){return!this.node()},Es=function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},Cs=function(t,n){var e=rs(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?C:E:"function"==typeof n?e.local?F:T:e.local?N:A)(e,n))},As=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView},Ns=function(t,n,e){return arguments.length>1?this.each((null==n?P:"function"==typeof n?B:R)(t,n,null==e?"":e)):D(this.node(),t)},Ts=function(t,n){return arguments.length>1?this.each((null==n?k:"function"==typeof n?$:I)(t,n)):this.node()[t]};L.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Fs=function(t,n){var e=U(t+"");if(arguments.length<2){for(var r=z(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?Q:n?V:G)(e,n))},Ps=function(t){return arguments.length?this.each(null==t?H:("function"==typeof t?W:Y)(t)):this.node().textContent},Rs=function(t){return arguments.length?this.each(null==t?X:("function"==typeof t?K:Z)(t)):this.node().innerHTML},Bs=function(){return this.each(J)},Ds=function(){return this.each(tt)},ks=function(t){var n="function"==typeof t?t:is(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},Is=function(t,n){var e="function"==typeof t?t:is(t),r=null==n?nt:"function"==typeof n?n:os(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},$s=function(){return this.each(et)},Us=function(t){return this.select(t?it:rt)},zs=function(t){return arguments.length?this.property("__data__",t):this.node().__data__},Ls={},qs=null;if("undefined"!=typeof document){"onmouseenter"in document.documentElement||(Ls={mouseenter:"mouseover",mouseleave:"mouseout"})}var js=function(t,n,e){var r,i,o=at(t+""),u=o.length;{if(!(arguments.length<2)){for(a=n?ct:st,null==e&&(e=!1),r=0;r<u;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var s,c=0,f=a.length;c<f;++c)for(r=0,s=a[c];r<u;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value}},Vs=function(t,n){return this.each(("function"==typeof n?dt:ht)(t,n))},Gs=[null];pt.prototype=vt.prototype={constructor:pt,select:us,selectAll:ss,filter:fs,data:vs,enter:hs,exit:gs,join:ys,merge:bs,order:ms,sort:_s,call:xs,nodes:ws,node:Ss,size:Ms,empty:Os,each:Es,attr:Cs,style:Ns,property:Ts,classed:Fs,text:Ps,html:Rs,raise:Bs,lower:Ds,append:ks,insert:Is,remove:$s,clone:Us,datum:zs,on:js,dispatch:Vs};var Qs=vt,Hs=function(t){return"string"==typeof t?new pt([[document.querySelector(t)]],[document.documentElement]):new pt([[t]],Gs)},Ys=function(t){return Hs(is(t).call(document.documentElement))},Ws=0;yt.prototype=gt.prototype={constructor:yt,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Xs=function(){for(var t,n=qs;t=n.sourceEvent;)n=t;return n},Zs=function(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]},Ks=function(t){var n=Xs();return n.changedTouches&&(n=n.changedTouches[0]),Zs(t,n)},Js=function(t){return"string"==typeof t?new pt([document.querySelectorAll(t)],[document.documentElement]):new pt([null==t?[]:t],Gs)},tc=function(t,n,e){arguments.length<3&&(e=n,n=Xs().changedTouches);for(var r,i=0,o=n?n.length:0;i<o;++i)if((r=n[i]).identifier===e)return Zs(t,r);return null},nc=function(t,n){null==n&&(n=Xs().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e<r;++e)i[e]=Zs(t,n[e]);return i},ec=function(){qs.preventDefault(),qs.stopImmediatePropagation()},rc=function(t){var n=t.document.documentElement,e=Hs(t).on("dragstart.drag",ec,!0);"onselectstart"in n?e.on("selectstart.drag",ec,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")},ic=function(t){return function(){return t}};_t.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var oc,uc,ac=function(){function t(t){t.on("mousedown.drag",n).filter(v).on("touchstart.drag",i).on("touchmove.drag",o).on("touchend.drag touchcancel.drag",u).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function n(){if(!l&&h.apply(this,arguments)){var t=a("mouse",d.apply(this,arguments),Ks,this,arguments);t&&(Hs(qs.view).on("mousemove.drag",e,!0).on("mouseup.drag",r,!0),rc(qs.view),bt(),f=!1,s=qs.clientX,c=qs.clientY,t("start"))}}function e(){if(ec(),!f){var t=qs.clientX-s,n=qs.clientY-c;f=t*t+n*n>m}g.mouse("drag")}function r(){Hs(qs.view).on("mousemove.drag mouseup.drag",null),mt(qs.view,f),ec(),g.mouse("end")}function i(){if(h.apply(this,arguments)){var t,n,e=qs.changedTouches,r=d.apply(this,arguments),i=e.length;for(t=0;t<i;++t)(n=a(e[t].identifier,r,tc,this,arguments))&&(bt(),n("start"))}}function o(){var t,n,e=qs.changedTouches,r=e.length;for(t=0;t<r;++t)(n=g[e[t].identifier])&&(ec(),n("drag"))}function u(){var t,n,e=qs.changedTouches,r=e.length;for(l&&clearTimeout(l),l=setTimeout(function(){l=null},500),t=0;t<r;++t)(n=g[e[t].identifier])&&(bt(),n("end"))}function a(n,e,r,i,o){var u,a,s,c=r(e,n),f=y.copy();if(ft(new _t(t,"beforestart",u,n,b,c[0],c[1],0,0,f),function(){return null!=(qs.subject=u=p.apply(i,o))&&(a=u.x-c[0]||0,s=u.y-c[1]||0,!0)}))return function l(h){var d,p=c;switch(h){case"start":g[n]=l,d=b++;break;case"end":delete g[n],--b;case"drag":c=r(e,n),d=b}ft(new _t(t,h,u,n,d,c[0]+a,c[1]+s,c[0]-p[0],c[1]-p[1],f),f.apply,f,[h,i,o])}}var s,c,f,l,h=xt,d=wt,p=St,v=Mt,g={},y=ts("start","drag","end"),b=0,m=0;return t.filter=function(n){return arguments.length?(h="function"==typeof n?n:ic(!!n),t):h},t.container=function(n){return arguments.length?(d="function"==typeof n?n:ic(n),t):d},t.subject=function(n){return arguments.length?(p="function"==typeof n?n:ic(n),t):p},t.touchable=function(n){return arguments.length?(v="function"==typeof n?n:ic(!!n),t):v},t.on=function(){var n=y.on.apply(y,arguments);return n===y?t:n},t.clickDistance=function(n){return arguments.length?(m=(n=+n)*n,t):Math.sqrt(m)},t},sc=e(65),cc=0,fc=0,lc=0,hc=1e3,dc=0,pc=0,vc=0,gc="object"==typeof performance&&performance.now?performance:Date,yc="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};Ct.prototype=At.prototype={constructor:Ct,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Ot():+e)+(null==n?0:+n),this._next||uc===this||(uc?uc._next=this:oc=this,uc=this),this._call=t,this._time=e,Rt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Rt())}};var bc=function(t,n,e){var r=new Ct;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r},mc=function(t,n,e){var r=new Ct,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?Ot():+e,r.restart(function o(u){u+=i,r.restart(o,i+=n,e),t(u)},n,e),r)},_c=ts("start","end","cancel","interrupt"),xc=[],wc=0,Sc=1,Mc=2,Oc=3,Ec=4,Cc=5,Ac=6,Nc=function(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};It(t,e,{name:n,index:r,group:i,on:_c,tween:xc,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:wc})},Tc=function(t,n){var e,r,i,o=t.__transition,u=!0;if(o){n=null==n?null:n+"";for(i in o)(e=o[i]).name===n?(r=e.state>Mc&&e.state<Cc,e.state=Ac,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}},Fc=function(t){return this.each(function(){Tc(this,t)})},Pc=function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=kt(this.node(),e).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?$t:Ut)(e,t,n))},Rc=e(54),Bc=function(t,n){var e;return("number"==typeof n?sc.o:n instanceof Rc.a?sc.r:(e=Object(Rc.a)(n))?(n=e,sc.r):sc.v)(t,n)},Dc=function(t,n){var e=rs(t),r="transform"===e?sc.x:Bc;return this.attrTween(t,"function"==typeof n?(e.local?Qt:Gt)(e,r,zt(this,"attr."+t,n)):null==n?(e.local?qt:Lt)(e):(e.local?Vt:jt)(e,r,n))},kc=function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=rs(t);return this.tween(e,(r.local?Wt:Xt)(r,n))},Ic=function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Zt:Kt)(n,t)):kt(this.node(),n).delay},$c=function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Jt:tn)(n,t)):kt(this.node(),n).duration},Uc=function(t){var n=this._id;return arguments.length?this.each(nn(n,t)):kt(this.node(),n).ease},zc=function(t){"function"!=typeof t&&(t=cs(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,s=r[i]=[],c=0;c<a;++c)(o=u[c])&&t.call(o,o.__data__,c,u)&&s.push(o);return new yn(r,this._parents,this._name,this._id)},Lc=function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var s,c=n[a],f=e[a],l=c.length,h=u[a]=new Array(l),d=0;d<l;++d)(s=c[d]||f[d])&&(h[d]=s);for(;a<r;++a)u[a]=n[a];return new yn(u,this._parents,this._name,this._id)},qc=function(t,n){var e=this._id;return arguments.length<2?kt(this.node(),e).on.on(t):this.each(rn(e,t,n))},jc=function(){return this.on("end.remove",on(this._id))},Vc=function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=os(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,s,c=r[u],f=c.length,l=o[u]=new Array(f),h=0;h<f;++h)(a=c[h])&&(s=t.call(a,a.__data__,h,c))&&("__data__"in a&&(s.__data__=a.__data__),l[h]=s,Nc(l[h],n,e,h,l,kt(a,e)));return new yn(o,this._parents,n,e)},Gc=function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=as(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var s,c=r[a],f=c.length,l=0;l<f;++l)if(s=c[l]){for(var h,d=t.call(s,s.__data__,l,c),p=kt(s,e),v=0,g=d.length;v<g;++v)(h=d[v])&&Nc(h,n,e,v,d,p);o.push(d),u.push(s)}return new yn(o,u,n,e)},Qc=Qs.prototype.constructor,Hc=function(){return new Qc(this._groups,this._parents)},Yc=function(t,n,e){var r="transform"==(t+="")?sc.w:Bc;return null==n?this.styleTween(t,un(t,r)).on("end.style."+t,an(t)):"function"==typeof n?this.styleTween(t,cn(t,r,zt(this,"style."+t,n))).each(fn(this._id,t)):this.styleTween(t,sn(t,r,n),e).on("end.style."+t,null)},Wc=function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,hn(t,n,null==e?"":e))},Xc=function(t){return this.tween("text","function"==typeof t?pn(zt(this,"text",t)):dn(null==t?"":t+""))},Zc=function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,gn(t))},Kc=function(){for(var t=this._name,n=this._id,e=mn(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,c=0;c<s;++c)if(u=a[c]){var f=kt(u,n);Nc(u,t,e,c,a,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new yn(r,this._parents,t,e)},Jc=function(){var t,n,e=this,r=e._id,i=e.size();return new Promise(function(o,u){var a={value:u},s={value:function(){0==--i&&o()}};e.each(function(){var e=Dt(this,r),i=e.on;i!==t&&(n=(t=i).copy(),n._.cancel.push(a),n._.interrupt.push(a),n._.end.push(s)),e.on=n})})},tf=0,nf=Qs.prototype;yn.prototype=bn.prototype={constructor:yn,select:Vc,selectAll:Gc,filter:zc,merge:Lc,selection:Hc,transition:Kc,call:nf.call,nodes:nf.nodes,node:nf.node,size:nf.size,empty:nf.empty,each:nf.each,on:qc,attr:Dc,attrTween:kc,style:Yc,styleTween:Wc,text:Xc,textTween:Zc,remove:jc,tween:Pc,delay:Ic,duration:$c,ease:Uc,end:Jc};var ef=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),rf=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),of=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),uf=Math.PI,af=uf/2,sf=4/11,cf=6/11,ff=8/11,lf=.75,hf=9/11,df=10/11,pf=.9375,vf=21/22,gf=63/64,yf=1/sf/sf,bf=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(1.70158),mf=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(1.70158),_f=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(1.70158),xf=2*Math.PI,wf=function t(n,e){function r(t){return n*Tn(- --t)*Math.sin((i-t)/e)}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=xf);return r.amplitude=function(n){return t(n,e*xf)},r.period=function(e){return t(n,e)},r}(1,.3),Sf=function t(n,e){function r(t){return 1-n*Tn(t=+t)*Math.sin((t+i)/e)}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=xf);return r.amplitude=function(n){return t(n,e*xf)},r.period=function(e){return t(n,e)},r}(1,.3),Mf=function t(n,e){function r(t){return((t=2*t-1)<0?n*Tn(-t)*Math.sin((i-t)/e):2-n*Tn(t)*Math.sin((i+t)/e))/2}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=xf);return r.amplitude=function(n){return t(n,e*xf)},r.period=function(e){return t(n,e)},r}(1,.3),Of={time:null,delay:0,duration:250,ease:En},Ef=function(t){var n,e;t instanceof yn?(n=t._id,t=t._name):(n=mn(),(e=Of).time=Ot(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,c=0;c<s;++c)(u=a[c])&&Nc(u,t,n,c,a,e||zn(u,n));return new yn(r,this._parents,t,n)};Qs.prototype.interrupt=Fc,Qs.prototype.transition=Ef;var Cf=[null],Af=function(t,n){var e,r,i=t.__transition;if(i){n=null==n?null:n+"";for(r in i)if((e=i[r]).state>Sc&&e.name===n)return new yn([[t]],Cf,n,+r)}return null},Nf=function(t){return function(){return t}},Tf=function(t,n,e){this.target=t,this.type=n,this.selection=e},Ff=function(){qs.preventDefault(),qs.stopImmediatePropagation()},Pf={name:"drag"},Rf={name:"space"},Bf={name:"handle"},Df={name:"center"},kf={name:"x",handles:["w","e"].map(Gn),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},If={name:"y",handles:["n","s"].map(Gn),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},$f={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Gn),input:function(t){return null==t?null:jn(t)},output:function(t){return t}},Uf={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},zf={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Lf={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},qf={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},jf={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},Vf=function(){return te($f)},Gf=Math.cos,Qf=Math.sin,Hf=Math.PI,Yf=Hf/2,Wf=2*Hf,Xf=Math.max,Zf=function(){function t(t){var o,u,a,s,c,f,l=t.length,h=[],d=Object(Ga.s)(l),p=[],v=[],g=v.groups=new Array(l),y=new Array(l*l);for(o=0,c=-1;++c<l;){for(u=0,f=-1;++f<l;)u+=t[c][f];h.push(u),p.push(Object(Ga.s)(l)),o+=u}for(e&&d.sort(function(t,n){return e(h[t],h[n])}),r&&p.forEach(function(n,e){n.sort(function(n,i){return r(t[e][n],t[e][i])})}),o=Xf(0,Wf-n*l)/o,s=o?n:Wf/l,u=0,c=-1;++c<l;){for(a=u,f=-1;++f<l;){var b=d[c],m=p[b][f],_=t[b][m],x=u,w=u+=_*o;y[m*l+b]={index:b,subindex:m,startAngle:x,endAngle:w,value:_}}g[b]={index:b,startAngle:a,endAngle:u,value:h[b]},u+=s}for(c=-1;++c<l;)for(f=c-1;++f<l;){var S=y[f*l+c],M=y[c*l+f];(S.value||M.value)&&v.push(S.value<M.value?{source:M,target:S}:{source:S,target:M})}return i?v.sort(i):v}var n=0,e=null,r=null,i=null;return t.padAngle=function(e){return arguments.length?(n=Xf(0,e),t):n},t.sortGroups=function(n){return arguments.length?(e=n,t):e},t.sortSubgroups=function(n){return arguments.length?(r=n,t):r},t.sortChords=function(n){return arguments.length?(null==n?i=null:(i=ne(n))._=n,t):i&&i._},t},Kf=Array.prototype.slice,Jf=function(t){return function(){return t}},tl=Math.PI,nl=2*tl,el=nl-1e-6;ee.prototype=re.prototype={constructor:ee,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,u=this._y1,a=e-t,s=r-n,c=o-t,f=u-n,l=c*c+f*f;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(l>1e-6)if(Math.abs(f*a-s*c)>1e-6&&i){var h=e-o,d=r-u,p=a*a+s*s,v=h*h+d*d,g=Math.sqrt(p),y=Math.sqrt(l),b=i*Math.tan((tl-Math.acos((p+l-v)/(2*g*y)))/2),m=b/y,_=b/g;Math.abs(m-1)>1e-6&&(this._+="L"+(t+m*c)+","+(n+m*f)),this._+="A"+i+","+i+",0,0,"+ +(f*h>c*d)+","+(this._x1=t+_*a)+","+(this._y1=n+_*s)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,o){t=+t,n=+n,e=+e,o=!!o;var u=e*Math.cos(r),a=e*Math.sin(r),s=t+u,c=n+a,f=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+s+","+c:(Math.abs(this._x1-s)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+s+","+c),e&&(l<0&&(l=l%nl+nl),l>el?this._+="A"+e+","+e+",0,1,"+f+","+(t-u)+","+(n-a)+"A"+e+","+e+",0,1,"+f+","+(this._x1=s)+","+(this._y1=c):l>1e-6&&(this._+="A"+e+","+e+",0,"+ +(l>=tl)+","+f+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var rl=re,il=function(){function t(){var t,a=Kf.call(arguments),s=n.apply(this,a),c=e.apply(this,a),f=+r.apply(this,(a[0]=s,a)),l=i.apply(this,a)-Yf,h=o.apply(this,a)-Yf,d=f*Gf(l),p=f*Qf(l),v=+r.apply(this,(a[0]=c,a)),g=i.apply(this,a)-Yf,y=o.apply(this,a)-Yf;if(u||(u=t=rl()),u.moveTo(d,p),u.arc(0,0,f,l,h),l===g&&h===y||(u.quadraticCurveTo(0,0,v*Gf(g),v*Qf(g)),u.arc(0,0,v,g,y)),u.quadraticCurveTo(0,0,d,p),u.closePath(),t)return u=null,t+""||null}var n=ie,e=oe,r=ue,i=ae,o=se,u=null;return t.radius=function(n){return arguments.length?(r="function"==typeof n?n:Jf(+n),t):r},t.startAngle=function(n){return arguments.length?(i="function"==typeof n?n:Jf(+n),t):i},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:Jf(+n),t):o},t.source=function(e){return arguments.length?(n=e,t):n},t.target=function(n){return arguments.length?(e=n,t):e},t.context=function(n){return arguments.length?(u=null==n?null:n,t):u},t},ol=e(187),ul=Array.prototype,al=ul.slice,sl=function(t,n){return t-n},cl=function(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n<e;)r+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1];return r},fl=function(t){return function(){return t}},ll=function(t,n){for(var e,r=-1,i=n.length;++r<i;)if(e=ce(t,n[r]))return e;return 0},hl=function(){},dl=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],pl=function(){function t(t){var e=a(t);if(Array.isArray(e))e=e.slice().sort(sl);else{var r=Object(Ga.i)(t),i=r[0],o=r[1];e=Object(Ga.A)(i,o,e),e=Object(Ga.s)(Math.floor(i/e)*e,Math.floor(o/e)*e,e)}return e.map(function(e){return n(t,e)})}function n(t,n){var r=[],i=[];return e(t,n,function(e){s(e,t,n),cl(e)>0?r.push([e]):i.push(e)}),i.forEach(function(t){for(var n,e=0,i=r.length;e<i;++e)if(-1!==ll((n=r[e])[0],t))return void n.push(t)}),{type:"MultiPolygon",value:n,coordinates:r}}function e(t,n,e){function i(t){var n,i,o=[t[0][0]+a,t[0][1]+s],u=[t[1][0]+a,t[1][1]+s],c=r(o),f=r(u);(n=p[c])?(i=d[f])?(delete p[n.end],delete d[i.start],n===i?(n.ring.push(u),e(n.ring)):d[n.start]=p[i.end]={start:n.start,end:i.end,ring:n.ring.concat(i.ring)}):(delete p[n.end],n.ring.push(u),p[n.end=f]=n):(n=d[f])?(i=p[c])?(delete d[n.start],delete p[i.end],n===i?(n.ring.push(u),e(n.ring)):d[i.start]=p[n.end]={start:i.start,end:n.end,ring:i.ring.concat(n.ring)}):(delete d[n.start],n.ring.unshift(o),d[n.start=c]=n):d[c]=p[f]={start:c,end:f,ring:[o,u]}}var a,s,c,f,l,h,d=new Array,p=new Array;for(a=s=-1,f=t[0]>=n,dl[f<<1].forEach(i);++a<o-1;)c=f,f=t[a+1]>=n,dl[c|f<<1].forEach(i);for(dl[f<<0].forEach(i);++s<u-1;){for(a=-1,f=t[s*o+o]>=n,l=t[s*o]>=n,dl[f<<1|l<<2].forEach(i);++a<o-1;)c=f,f=t[s*o+o+a+1]>=n,h=l,l=t[s*o+a+1]>=n,dl[c|f<<1|l<<2|h<<3].forEach(i);dl[f|l<<3].forEach(i)}for(a=-1,l=t[s*o]>=n,dl[l<<2].forEach(i);++a<o-1;)h=l,l=t[s*o+a+1]>=n,dl[l<<2|h<<3].forEach(i);dl[l<<3].forEach(i)}function r(t){return 2*t[0]+t[1]*(o+1)*4}function i(t,n,e){t.forEach(function(t){var r,i=t[0],a=t[1],s=0|i,c=0|a,f=n[c*o+s];i>0&&i<o&&s===i&&(r=n[c*o+s-1],t[0]=i+(e-r)/(f-r)-.5),a>0&&a<u&&c===a&&(r=n[(c-1)*o+s],t[1]=a+(e-r)/(f-r)-.5)})}var o=1,u=1,a=Ga.y,s=i;return t.contour=n,t.size=function(n){if(!arguments.length)return[o,u];var e=Math.ceil(n[0]),r=Math.ceil(n[1]);if(!(e>0&&r>0))throw new Error("invalid size");return o=e,u=r,t},t.thresholds=function(n){return arguments.length?(a="function"==typeof n?n:fl(Array.isArray(n)?al.call(n):n),t):a},t.smooth=function(n){return arguments.length?(s=n?i:hl,t):s===i},t},vl=function(){function t(t){var e=new Float32Array(p*v),r=new Float32Array(p*v);t.forEach(function(t,n,r){var i=+u(t,n,r)+d>>h,o=+a(t,n,r)+d>>h,c=+s(t,n,r);i>=0&&i<p&&o>=0&&o<v&&(e[i+o*p]+=c)}),de({width:p,height:v,data:e},{width:p,height:v,data:r},l>>h),pe({width:p,height:v,data:r},{width:p,height:v,data:e},l>>h),de({width:p,height:v,data:e},{width:p,height:v,data:r},l>>h),pe({width:p,height:v,data:r},{width:p,height:v,data:e},l>>h),de({width:p,height:v,data:e},{width:p,height:v,data:r},l>>h),pe({width:p,height:v,data:r},{width:p,height:v,data:e},l>>h);var i=g(e);if(!Array.isArray(i)){var o=Object(Ga.k)(e);i=Object(Ga.A)(0,o,i),i=Object(Ga.s)(0,Math.floor(o/i)*i,i),i.shift()}return pl().thresholds(i).size([p,v])(e).map(n)}function n(t){return t.value*=Math.pow(2,-2*h),t.coordinates.forEach(e),t}function e(t){t.forEach(r)}function r(t){t.forEach(i)}function i(t){t[0]=t[0]*Math.pow(2,h)-d,t[1]=t[1]*Math.pow(2,h)-d}function o(){return d=3*l,p=c+2*d>>h,v=f+2*d>>h,t}var u=ve,a=ge,s=ye,c=960,f=500,l=20,h=2,d=3*l,p=c+2*d>>h,v=f+2*d>>h,g=fl(20);return t.x=function(n){return arguments.length?(u="function"==typeof n?n:fl(+n),t):u},t.y=function(n){return arguments.length?(a="function"==typeof n?n:fl(+n),t):a},t.weight=function(n){return arguments.length?(s="function"==typeof n?n:fl(+n),t):s},t.size=function(t){if(!arguments.length)return[c,f];var n=Math.ceil(t[0]),e=Math.ceil(t[1]);if(!(n>=0||n>=0))throw new Error("invalid size");return c=n,f=e,o()},t.cellSize=function(t){if(!arguments.length)return 1<<h;if(!((t=+t)>=1))throw new Error("invalid cell size");return h=Math.floor(Math.log(t)/Math.LN2),o()},t.thresholds=function(n){return arguments.length?(g="function"==typeof n?n:fl(Array.isArray(n)?al.call(n):n),t):g},t.bandwidth=function(t){if(!arguments.length)return Math.sqrt(l*(l+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return l=Math.round((Math.sqrt(4*t*t+1)-1)/2),o()},t},gl={},yl={},bl=34,ml=10,_l=13,xl=function(t){function n(t,n){var r,i,o=e(t,function(t,e){if(r)return r(t,e-1);i=t,r=n?me(t,n):be(t)});return o.columns=i||[],o}function e(t,n){function e(){if(s)return yl;if(c)return c=!1,gl;var n,e,r=u;if(t.charCodeAt(r)===bl){for(;u++<o&&t.charCodeAt(u)!==bl||t.charCodeAt(++u)===bl;);return(n=u)>=o?s=!0:(e=t.charCodeAt(u++))===ml?c=!0:e===_l&&(c=!0,t.charCodeAt(u)===ml&&++u),t.slice(r+1,n-1).replace(/""/g,'"')}for(;u<o;){if((e=t.charCodeAt(n=u++))===ml)c=!0;else if(e===_l)c=!0,t.charCodeAt(u)===ml&&++u;else if(e!==f)continue;return t.slice(r,n)}return s=!0,t.slice(r,o)}var r,i=[],o=t.length,u=0,a=0,s=o<=0,c=!1;for(t.charCodeAt(o-1)===ml&&--o,t.charCodeAt(o-1)===_l&&--o;(r=e())!==yl;){for(var l=[];r!==gl&&r!==yl;)l.push(r),r=e();n&&null==(l=n(l,a++))||i.push(l)}return i}function r(n,e){return n.map(function(n){return e.map(function(t){return s(n[t])}).join(t)})}function i(n,e){return null==e&&(e=_e(n)),[e.map(s).join(t)].concat(r(n,e)).join("\n")}function o(t,n){return null==n&&(n=_e(t)),r(t,n).join("\n")}function u(t){return t.map(a).join("\n")}function a(n){return n.map(s).join(t)}function s(t){return null==t?"":t instanceof Date?Se(t):c.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}var c=new RegExp('["'+t+"\n\r]"),f=t.charCodeAt(0);return{parse:n,parseRows:e,format:i,formatBody:o,formatRows:u,formatRow:a,formatValue:s}},wl=xl(","),Sl=wl.parse,Ml=wl.parseRows,Ol=wl.format,El=wl.formatBody,Cl=wl.formatRows,Al=wl.formatRow,Nl=wl.formatValue,Tl=xl("\t"),Fl=Tl.parse,Pl=Tl.parseRows,Rl=Tl.format,Bl=Tl.formatBody,Dl=Tl.formatRows,kl=Tl.formatRow,Il=Tl.formatValue,$l=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),Ul=function(t,n){return fetch(t,n).then(Oe)},zl=function(t,n){return fetch(t,n).then(Ee)},Ll=function(t,n){return fetch(t,n).then(Ce)},ql=Ae(Sl),jl=Ae(Fl),Vl=function(t,n){return new Promise(function(e,r){var i=new Image;for(var o in n)i[o]=n[o];i.onerror=r,i.onload=function(){e(i)},i.src=t})},Gl=function(t,n){return fetch(t,n).then(Te)},Ql=Fe("application/xml"),Hl=Fe("text/html"),Yl=Fe("image/svg+xml"),Wl=function(t,n){function e(){var e,i,o=r.length,u=0,a=0;for(e=0;e<o;++e)i=r[e],u+=i.x,a+=i.y;for(u=u/o-t,a=a/o-n,e=0;e<o;++e)i=r[e],i.x-=u,i.y-=a}var r;return null==t&&(t=0),null==n&&(n=0),e.initialize=function(t){r=t},e.x=function(n){return arguments.length?(t=+n,e):t},e.y=function(t){return arguments.length?(n=+t,e):n},e},Xl=function(t){return function(){return t}},Zl=function(){return 1e-6*(Math.random()-.5)},Kl=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return Pe(this.cover(n,e),n,e,t)},Jl=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{for(var u,a,s=i-e,c=this._root;e>t||t>=i||r>n||n>=o;)switch(a=(n<r)<<1|t<e,u=new Array(4),u[a]=c,c=u,s*=2,a){case 0:i=e+s,o=r+s;break;case 1:e=i-s,o=r+s;break;case 2:i=e+s,r=o-s;break;case 3:e=i-s,r=o-s}this._root&&this._root.length&&(this._root=c)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},th=function(){var t=[];return this.visit(function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)}),t},nh=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},eh=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i},rh=function(t,n,e){var r,i,o,u,a,s,c,f=this._x0,l=this._y0,h=this._x1,d=this._y1,p=[],v=this._root;for(v&&p.push(new eh(v,f,l,h,d)),null==e?e=1/0:(f=t-e,l=n-e,h=t+e,d=n+e,e*=e);s=p.pop();)if(!(!(v=s.node)||(i=s.x0)>h||(o=s.y0)>d||(u=s.x1)<f||(a=s.y1)<l))if(v.length){var g=(i+u)/2,y=(o+a)/2;p.push(new eh(v[3],g,y,u,a),new eh(v[2],i,y,g,a),new eh(v[1],g,o,u,y),new eh(v[0],i,o,g,y)),(c=(n>=y)<<1|t>=g)&&(s=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=s)}else{var b=t-+this._x.call(null,v.data),m=n-+this._y.call(null,v.data),_=b*b+m*m;if(_<e){var x=Math.sqrt(e=_);f=t-x,l=n-x,h=t+x,d=n+x,r=v.data}}return r},ih=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(u=+this._y.call(null,t)))return this;var n,e,r,i,o,u,a,s,c,f,l,h,d=this._root,p=this._x0,v=this._y0,g=this._x1,y=this._y1;if(!d)return this;if(d.length)for(;;){if((c=o>=(a=(p+g)/2))?p=a:g=a,(f=u>=(s=(v+y)/2))?v=s:y=s,n=d,!(d=d[l=f<<1|c]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},oh=function(){return this._root},uh=function(){var t=0;return this.visit(function(n){if(!n.length)do{++t}while(n=n.next)}),t},ah=function(t){var n,e,r,i,o,u,a=[],s=this._root;for(s&&a.push(new eh(s,this._x0,this._y0,this._x1,this._y1));n=a.pop();)if(!t(s=n.node,r=n.x0,i=n.y0,o=n.x1,u=n.y1)&&s.length){var c=(r+o)/2,f=(i+u)/2;(e=s[3])&&a.push(new eh(e,c,f,o,u)),(e=s[2])&&a.push(new eh(e,r,f,c,u)),(e=s[1])&&a.push(new eh(e,c,i,o,f)),(e=s[0])&&a.push(new eh(e,r,i,c,f))}return this},sh=function(t){var n,e=[],r=[];for(this._root&&e.push(new eh(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var o,u=n.x0,a=n.y0,s=n.x1,c=n.y1,f=(u+s)/2,l=(a+c)/2;(o=i[0])&&e.push(new eh(o,u,a,f,l)),(o=i[1])&&e.push(new eh(o,f,a,s,l)),(o=i[2])&&e.push(new eh(o,u,l,f,c)),(o=i[3])&&e.push(new eh(o,f,l,s,c))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},ch=function(t){return arguments.length?(this._x=t,this):this._x},fh=function(t){return arguments.length?(this._y=t,this):this._y},lh=Ie.prototype=$e.prototype;lh.copy=function(){var t,n,e=new $e(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=Ue(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=Ue(n));return e},lh.add=Kl,lh.addAll=Re,lh.cover=Jl,lh.data=th,lh.extent=nh,lh.find=rh,lh.remove=ih,lh.removeAll=Be,lh.root=oh,lh.size=uh,lh.visit=ah,lh.visitAfter=sh,lh.x=ch,lh.y=fh;var hh=function(t){function n(){function t(t,n,e,r,i){var o=t.data,a=t.r,d=l+a;{if(!o)return n>c+d||r<c-d||e>f+d||i<f-d;if(o.index>s.index){var p=c-o.x-o.vx,v=f-o.y-o.vy,g=p*p+v*v;g<d*d&&(0===p&&(p=Zl(),g+=p*p),0===v&&(v=Zl(),g+=v*v),g=(d-(g=Math.sqrt(g)))/g*u,s.vx+=(p*=g)*(d=(a*=a)/(h+a)),s.vy+=(v*=g)*d,o.vx-=p*(d=1-d),o.vy-=v*d)}}}for(var n,r,s,c,f,l,h,d=i.length,p=0;p<a;++p)for(r=Ie(i,ze,Le).visitAfter(e),n=0;n<d;++n)s=i[n],l=o[s.index],h=l*l,c=s.x+s.vx,f=s.y+s.vy,r.visit(t)}function e(t){if(t.data)return t.r=o[t.data.index];for(var n=t.r=0;n<4;++n)t[n]&&t[n].r>t.r&&(t.r=t[n].r)}function r(){if(i){var n,e,r=i.length;for(o=new Array(r),n=0;n<r;++n)e=i[n],o[e.index]=+t(e,n,i)}}var i,o,u=1,a=1;return"function"!=typeof t&&(t=Xl(null==t?1:+t)),n.initialize=function(t){i=t,r()},n.iterations=function(t){return arguments.length?(a=+t,n):a},n.strength=function(t){return arguments.length?(u=+t,n):u},n.radius=function(e){return arguments.length?(t="function"==typeof e?e:Xl(+e),r(),n):t},n},dh=function(t){function n(t){return 1/Math.min(c[t.source.index],c[t.target.index])}function e(n){for(var e=0,r=t.length;e<p;++e)for(var i,o,s,c,l,h,d,v=0;v<r;++v)i=t[v],o=i.source,s=i.target,c=s.x+s.vx-o.x-o.vx||Zl(),l=s.y+s.vy-o.y-o.vy||Zl(),h=Math.sqrt(c*c+l*l),h=(h-a[v])/h*n*u[v],c*=h,l*=h,s.vx-=c*(d=f[v]),s.vy-=l*d,o.vx+=c*(d=1-d),o.vy+=l*d}function r(){if(s){var n,e,r=s.length,h=t.length,d=Object(ol.c)(s,l);for(n=0,c=new Array(r);n<h;++n)e=t[n],e.index=n,"object"!=typeof e.source&&(e.source=je(d,e.source)),"object"!=typeof e.target&&(e.target=je(d,e.target)),c[e.source.index]=(c[e.source.index]||0)+1,c[e.target.index]=(c[e.target.index]||0)+1;for(n=0,f=new Array(h);n<h;++n)e=t[n],f[n]=c[e.source.index]/(c[e.source.index]+c[e.target.index]);u=new Array(h),i(),a=new Array(h),o()}}function i(){if(s)for(var n=0,e=t.length;n<e;++n)u[n]=+h(t[n],n,t)}function o(){if(s)for(var n=0,e=t.length;n<e;++n)a[n]=+d(t[n],n,t)}var u,a,s,c,f,l=qe,h=n,d=Xl(30),p=1;return null==t&&(t=[]),e.initialize=function(t){s=t,r()},e.links=function(n){return arguments.length?(t=n,r(),e):t},e.id=function(t){return arguments.length?(l=t,e):l},e.iterations=function(t){return arguments.length?(p=+t,e):p},e.strength=function(t){return arguments.length?(h="function"==typeof t?t:Xl(+t),i(),e):h},e.distance=function(t){return arguments.length?(d="function"==typeof t?t:Xl(+t),o(),e):d},e},ph=10,vh=Math.PI*(3-Math.sqrt(5)),gh=function(t){function n(){e(),d.call("tick",o),u<a&&(h.stop(),d.call("end",o))}function e(n){var e,r,i=t.length;void 0===n&&(n=1);for(var a=0;a<n;++a)for(u+=(c-u)*s,l.each(function(t){t(u)}),e=0;e<i;++e)r=t[e],null==r.fx?r.x+=r.vx*=f:(r.x=r.fx,r.vx=0),null==r.fy?r.y+=r.vy*=f:(r.y=r.fy,r.vy=0);return o}function r(){for(var n,e=0,r=t.length;e<r;++e){if(n=t[e],n.index=e,null!=n.fx&&(n.x=n.fx),null!=n.fy&&(n.y=n.fy),isNaN(n.x)||isNaN(n.y)){var i=ph*Math.sqrt(e),o=e*vh;n.x=i*Math.cos(o),n.y=i*Math.sin(o)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function i(n){return n.initialize&&n.initialize(t),n}var o,u=1,a=.001,s=1-Math.pow(a,1/300),c=0,f=.6,l=Object(ol.c)(),h=At(n),d=ts("tick","end");return null==t&&(t=[]),r(),o={tick:e,restart:function(){return h.restart(n),o},stop:function(){return h.stop(),o},nodes:function(n){return arguments.length?(t=n,r(),l.each(i),o):t},alpha:function(t){return arguments.length?(u=+t,o):u},alphaMin:function(t){return arguments.length?(a=+t,o):a},alphaDecay:function(t){return arguments.length?(s=+t,o):+s},alphaTarget:function(t){return arguments.length?(c=+t,o):c},velocityDecay:function(t){return arguments.length?(f=1-t,o):1-f},force:function(t,n){return arguments.length>1?(null==n?l.remove(t):l.set(t,i(n)),o):l.get(t)},find:function(n,e,r){var i,o,u,a,s,c=0,f=t.length;for(null==r?r=1/0:r*=r,c=0;c<f;++c)a=t[c],i=n-a.x,o=e-a.y,(u=i*i+o*o)<r&&(s=a,r=u);return s},on:function(t,n){return arguments.length>1?(d.on(t,n),o):d.on(t)}}},yh=function(){function t(t){var n,a=i.length,s=Ie(i,Ve,Ge).visitAfter(e);for(u=t,n=0;n<a;++n)o=i[n],s.visit(r)}function n(){if(i){var t,n,e=i.length;for(a=new Array(e),t=0;t<e;++t)n=i[t],a[n.index]=+s(n,t,i)}}function e(t){var n,e,r,i,o,u=0,s=0;if(t.length){for(r=i=o=0;o<4;++o)(n=t[o])&&(e=Math.abs(n.value))&&(u+=n.value,s+=e,r+=e*n.x,i+=e*n.y);t.x=r/s,t.y=i/s}else{n=t,n.x=n.data.x,n.y=n.data.y;do{u+=a[n.data.index]}while(n=n.next)}t.value=u}function r(t,n,e,r){if(!t.value)return!0;var i=t.x-o.x,s=t.y-o.y,h=r-n,d=i*i+s*s;if(h*h/l<d)return d<f&&(0===i&&(i=Zl(),d+=i*i),0===s&&(s=Zl(),d+=s*s),d<c&&(d=Math.sqrt(c*d)),o.vx+=i*t.value*u/d,o.vy+=s*t.value*u/d),!0;if(!(t.length||d>=f)){(t.data!==o||t.next)&&(0===i&&(i=Zl(),d+=i*i),0===s&&(s=Zl(),d+=s*s),d<c&&(d=Math.sqrt(c*d)));do{t.data!==o&&(h=a[t.data.index]*u/d,o.vx+=i*h,o.vy+=s*h)}while(t=t.next)}}var i,o,u,a,s=Xl(-30),c=1,f=1/0,l=.81;return t.initialize=function(t){i=t,n()},t.strength=function(e){return arguments.length?(s="function"==typeof e?e:Xl(+e),n(),t):s},t.distanceMin=function(n){return arguments.length?(c=n*n,t):Math.sqrt(c)},t.distanceMax=function(n){return arguments.length?(f=n*n,t):Math.sqrt(f)},t.theta=function(n){return arguments.length?(l=n*n,t):Math.sqrt(l)},t},bh=function(t,n,e){function r(t){for(var r=0,i=o.length;r<i;++r){var s=o[r],c=s.x-n||1e-6,f=s.y-e||1e-6,l=Math.sqrt(c*c+f*f),h=(a[r]-l)*u[r]*t/l;s.vx+=c*h,s.vy+=f*h}}function i(){if(o){var n,e=o.length;for(u=new Array(e),a=new Array(e),n=0;n<e;++n)a[n]=+t(o[n],n,o),u[n]=isNaN(a[n])?0:+s(o[n],n,o)}}var o,u,a,s=Xl(.1);return"function"!=typeof t&&(t=Xl(+t)),null==n&&(n=0),null==e&&(e=0),r.initialize=function(t){o=t,i()},r.strength=function(t){return arguments.length?(s="function"==typeof t?t:Xl(+t),i(),r):s},r.radius=function(n){return arguments.length?(t="function"==typeof n?n:Xl(+n),i(),r):t},r.x=function(t){return arguments.length?(n=+t,r):n},r.y=function(t){return arguments.length?(e=+t,r):e},r},mh=function(t){function n(t){for(var n,e=0,u=r.length;e<u;++e)n=r[e],n.vx+=(o[e]-n.x)*i[e]*t}function e(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)i[n]=isNaN(o[n]=+t(r[n],n,r))?0:+u(r[n],n,r)}}var r,i,o,u=Xl(.1);return"function"!=typeof t&&(t=Xl(null==t?0:+t)),n.initialize=function(t){r=t,e()},n.strength=function(t){return arguments.length?(u="function"==typeof t?t:Xl(+t),e(),n):u},n.x=function(r){return arguments.length?(t="function"==typeof r?r:Xl(+r),e(),n):t},n},_h=function(t){function n(t){for(var n,e=0,u=r.length;e<u;++e)n=r[e],n.vy+=(o[e]-n.y)*i[e]*t}function e(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)i[n]=isNaN(o[n]=+t(r[n],n,r))?0:+u(r[n],n,r)}}var r,i,o,u=Xl(.1);return"function"!=typeof t&&(t=Xl(null==t?0:+t)),n.initialize=function(t){r=t,e()},n.strength=function(t){return arguments.length?(u="function"==typeof t?t:Xl(+t),e(),n):u},n.y=function(r){return arguments.length?(t="function"==typeof r?r:Xl(+r),e(),n):t},n},xh=e(233),wh=function(){return new Qe};Qe.prototype={constructor:Qe,reset:function(){this.s=this.t=0},add:function(t){He(td,t,this.t),He(this,td.s,this.s),this.s?this.t+=td.t:this.s=td.t},valueOf:function(){return this.s}};var Sh,Mh,Oh,Eh,Ch,Ah,Nh,Th,Fh,Ph,Rh,Bh,Dh,kh,Ih,$h,Uh,zh,Lh,qh,jh,Vh,Gh,Qh,Hh,Yh,Wh,Xh,Zh,Kh,Jh,td=new Qe,nd=1e-6,ed=1e-12,rd=Math.PI,id=rd/2,od=rd/4,ud=2*rd,ad=180/rd,sd=rd/180,cd=Math.abs,fd=Math.atan,ld=Math.atan2,hd=Math.cos,dd=Math.ceil,pd=Math.exp,vd=(Math.floor,Math.log),gd=Math.pow,yd=Math.sin,bd=Math.sign||function(t){return t>0?1:t<0?-1:0},md=Math.sqrt,_d=Math.tan,xd={Feature:function(t,n){Ke(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)Ke(e[r].geometry,n)}},wd={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){Je(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Je(e[r],n,0)},Polygon:function(t,n){tr(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)tr(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)Ke(e[r],n)}},Sd=function(t,n){t&&xd.hasOwnProperty(t.type)?xd[t.type](t,n):Ke(t,n)},Md=wh(),Od=wh(),Ed={point:Ze,lineStart:Ze,lineEnd:Ze,polygonStart:function(){Md.reset(),Ed.lineStart=nr,Ed.lineEnd=er},polygonEnd:function(){var t=+Md;Od.add(t<0?ud+t:t),this.lineStart=this.lineEnd=this.point=Ze},sphere:function(){Od.add(ud)}},Cd=function(t){return Od.reset(),Sd(t,Ed),2*Od},Ad=wh(),Nd={point:hr,lineStart:pr,lineEnd:vr,polygonStart:function(){Nd.point=gr,Nd.lineStart=yr,Nd.lineEnd=br,Ad.reset(),Ed.polygonStart()},polygonEnd:function(){Ed.polygonEnd(),Nd.point=hr,Nd.lineStart=pr,Nd.lineEnd=vr,Md<0?(Ah=-(Th=180),Nh=-(Fh=90)):Ad>nd?Fh=90:Ad<-nd&&(Nh=-90),Ih[0]=Ah,Ih[1]=Th},sphere:function(){Ah=-(Th=180),Nh=-(Fh=90)}},Td=function(t){var n,e,r,i,o,u,a;if(Fh=Th=-(Ah=Nh=1/0),kh=[],Sd(t,Nd),e=kh.length){for(kh.sort(_r),n=1,r=kh[0],o=[r];n<e;++n)i=kh[n],xr(r,i[0])||xr(r,i[1])?(mr(r[0],i[1])>mr(r[0],r[1])&&(r[1]=i[1]),mr(i[0],r[1])>mr(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(u=-1/0,e=o.length-1,n=0,r=o[e];n<=e;r=i,++n)i=o[n],(a=mr(r[1],i[0]))>u&&(u=a,Ah=i[0],Th=r[1])}return kh=Ih=null,Ah===1/0||Nh===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ah,Nh],[Th,Fh]]},Fd={sphere:Ze,point:wr,lineStart:Mr,lineEnd:Cr,polygonStart:function(){Fd.lineStart=Ar,Fd.lineEnd=Nr},polygonEnd:function(){Fd.lineStart=Mr,Fd.lineEnd=Cr}},Pd=function(t){$h=Uh=zh=Lh=qh=jh=Vh=Gh=Qh=Hh=Yh=0,Sd(t,Fd);var n=Qh,e=Hh,r=Yh,i=n*n+e*e+r*r;return i<ed&&(n=jh,e=Vh,r=Gh,Uh<nd&&(n=zh,e=Lh,r=qh),(i=n*n+e*e+r*r)<ed)?[NaN,NaN]:[ld(e,n)*ad,We(r/md(i))*ad]},Rd=function(t){return function(){return t}},Bd=function(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return(e=n.invert(e,r))&&t.invert(e[0],e[1])}),e};Pr.invert=Pr;var Dd,kd,Id,$d,Ud,zd,Ld,qd,jd,Vd,Gd,Qd=function(t){function n(n){return n=t(n[0]*sd,n[1]*sd),n[0]*=ad,n[1]*=ad,n}return t=Rr(t[0]*sd,t[1]*sd,t.length>2?t[2]*sd:0),n.invert=function(n){return n=t.invert(n[0]*sd,n[1]*sd),n[0]*=ad,n[1]*=ad,n},n},Hd=function(){function t(t,n){e.push(t=r(t,n)),t[0]*=ad,t[1]*=ad}function n(){var t=i.apply(this,arguments),n=o.apply(this,arguments)*sd,s=u.apply(this,arguments)*sd;return e=[],r=Rr(-t[0]*sd,-t[1]*sd,0).invert,Ir(a,n,s,1),t={type:"Polygon",coordinates:[e]},e=r=null,t}var e,r,i=Rd([0,0]),o=Rd(90),u=Rd(6),a={point:t};return n.center=function(t){return arguments.length?(i="function"==typeof t?t:Rd([+t[0],+t[1]]),n):i},n.radius=function(t){return arguments.length?(o="function"==typeof t?t:Rd(+t),n):o},n.precision=function(t){return arguments.length?(u="function"==typeof t?t:Rd(+t),n):u},n},Yd=function(){var t,n=[];return{point:function(n,e,r){t.push([n,e,r])},lineStart:function(){n.push(t=[])},lineEnd:Ze,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}},Wd=function(t,n){return cd(t[0]-n[0])<nd&&cd(t[1]-n[1])<nd},Xd=function(t,n,e,r,i){var o,u,a=[],s=[];if(t.forEach(function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],u=t[n];if(Wd(r,u)){if(!r[2]&&!u[2]){for(i.lineStart(),o=0;o<n;++o)i.point((r=t[o])[0],r[1]);return void i.lineEnd()}u[0]+=2*nd}a.push(e=new Ur(r,t,null,!0)),s.push(e.o=new Ur(r,null,e,!1)),a.push(e=new Ur(u,t,null,!1)),s.push(e.o=new Ur(u,null,e,!0))}}),a.length){for(s.sort(n),zr(a),zr(s),o=0,u=s.length;o<u;++o)s[o].e=e=!e;for(var c,f,l=a[0];;){for(var h=l,d=!0;h.v;)if((h=h.n)===l)return;c=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(o=0,u=c.length;o<u;++o)i.point((f=c[o])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(c=h.p.z,o=c.length-1;o>=0;--o)i.point((f=c[o])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,c=h.z,d=!d}while(!h.v);i.lineEnd()}}},Zd=wh(),Kd=function(t,n){var e=Lr(n),r=n[1],i=yd(r),o=[yd(e),-hd(e),0],u=0,a=0;Zd.reset(),1===i?r=id+nd:-1===i&&(r=-id-nd);for(var s=0,c=t.length;s<c;++s)if(l=(f=t[s]).length)for(var f,l,h=f[l-1],d=Lr(h),p=h[1]/2+od,v=yd(p),g=hd(p),y=0;y<l;++y,d=m,v=x,g=w,h=b){var b=f[y],m=Lr(b),_=b[1]/2+od,x=yd(_),w=hd(_),S=m-d,M=S>=0?1:-1,O=M*S,E=O>rd,C=v*x;if(Zd.add(ld(C*M*yd(O),g*w+C*hd(O))),u+=E?S+M*ud:S,E^d>=e^m>=e){var A=sr(ur(h),ur(b));lr(A);var N=sr(o,A);lr(N);var T=(E^S>=0?-1:1)*We(N[2]);(r>T||r===T&&(A[0]||A[1]))&&(a+=E^S>=0?1:-1)}}return(u<-nd||u<nd&&Zd<-nd)^1&a},Jd=function(t,n,e,r){return function(i){function o(n,e){t(n,e)&&i.point(n,e)}function u(t,n){v.point(t,n)}function a(){m.point=u,v.lineStart()}function s(){m.point=o,v.lineEnd()}function c(t,n){p.push([t,n]),y.point(t,n)}function f(){y.lineStart(),p=[]}function l(){c(p[0][0],p[0][1]),y.lineEnd();var t,n,e,r,o=y.clean(),u=g.result(),a=u.length;if(p.pop(),h.push(p),p=null,a)if(1&o){if(e=u[0],(n=e.length-1)>0){for(b||(i.polygonStart(),b=!0),i.lineStart(),t=0;t<n;++t)i.point((r=e[t])[0],r[1]);i.lineEnd()}}else a>1&&2&o&&u.push(u.pop().concat(u.shift())),d.push(u.filter(qr))}var h,d,p,v=n(i),g=Yd(),y=n(g),b=!1,m={point:o,lineStart:a,lineEnd:s,polygonStart:function(){m.point=c,m.lineStart=f,m.lineEnd=l,d=[],h=[]},polygonEnd:function(){m.point=o,m.lineStart=a,m.lineEnd=s,d=Object(Ga.n)(d);var t=Kd(h,r);d.length?(b||(i.polygonStart(),b=!0),Xd(d,jr,t,e,i)):t&&(b||(i.polygonStart(),b=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),b&&(i.polygonEnd(),b=!1),d=h=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};return m}},tp=Jd(function(){return!0},Vr,Qr,[-rd,-id]),np=function(t){function n(n,e,r,i){Ir(i,t,a,r,n,e)}function e(t,n){return hd(t)*hd(n)>u}function r(t){var n,r,u,a,f;return{lineStart:function(){a=u=!1,f=1},point:function(l,h){var d,p=[l,h],v=e(l,h),g=s?v?0:o(l,h):v?o(l+(l<0?rd:-rd),h):0;if(!n&&(a=u=v)&&t.lineStart(),v!==u&&(!(d=i(n,p))||Wd(n,d)||Wd(p,d))&&(p[2]=1),v!==u)f=0,v?(t.lineStart(),d=i(p,n),t.point(d[0],d[1])):(d=i(n,p),t.point(d[0],d[1],2),t.lineEnd()),n=d;else if(c&&n&&s^v){var y;g&r||!(y=i(p,n,!0))||(f=0,s?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!v||n&&Wd(n,p)||t.point(p[0],p[1]),n=p,u=v,r=g},lineEnd:function(){u&&t.lineEnd(),n=null},clean:function(){return f|(a&&u)<<1}}}function i(t,n,e){var r=ur(t),i=ur(n),o=[1,0,0],a=sr(r,i),s=ar(a,a),c=a[0],f=s-c*c;if(!f)return!e&&t;var l=u*s/f,h=-u*c/f,d=sr(o,a),p=fr(o,l);cr(p,fr(a,h));var v=d,g=ar(p,v),y=ar(v,v),b=g*g-y*(ar(p,p)-1);if(!(b<0)){var m=md(b),_=fr(v,(-g-m)/y);if(cr(_,p),_=or(_),!e)return _;var x,w=t[0],S=n[0],M=t[1],O=n[1];S<w&&(x=w,w=S,S=x);var E=S-w,C=cd(E-rd)<nd,A=C||E<nd;if(!C&&O<M&&(x=M,M=O,O=x),A?C?M+O>0^_[1]<(cd(_[0]-w)<nd?M:O):M<=_[1]&&_[1]<=O:E>rd^(w<=_[0]&&_[0]<=S)){var N=fr(v,(-g+m)/y);return cr(N,p),[_,or(N)]}}}function o(n,e){var r=s?t:rd-t,i=0;return n<-r?i|=1:n>r&&(i|=2),e<-r?i|=4:e>r&&(i|=8),i}var u=hd(t),a=6*sd,s=u>0,c=cd(u)>nd;return Jd(e,r,n,s?[0,-t]:[-rd,t-rd])},ep=function(t,n,e,r,i,o){var u,a=t[0],s=t[1],c=n[0],f=n[1],l=0,h=1,d=c-a,p=f-s;if(u=e-a,d||!(u>0)){if(u/=d,d<0){if(u<l)return;u<h&&(h=u)}else if(d>0){if(u>h)return;u>l&&(l=u)}if(u=i-a,d||!(u<0)){if(u/=d,d<0){if(u>h)return;u>l&&(l=u)}else if(d>0){if(u<l)return;u<h&&(h=u)}if(u=r-s,p||!(u>0)){if(u/=p,p<0){if(u<l)return;u<h&&(h=u)}else if(p>0){if(u>h)return;u>l&&(l=u)}if(u=o-s,p||!(u<0)){if(u/=p,p<0){if(u>h)return;u>l&&(l=u)}else if(p>0){if(u<l)return;u<h&&(h=u)}return l>0&&(t[0]=a+l*d,t[1]=s+l*p),h<1&&(n[0]=a+h*d,n[1]=s+h*p),!0}}}}},rp=1e9,ip=-rp,op=function(){var t,n,e,r=0,i=0,o=960,u=500;return e={stream:function(e){return t&&n===e?t:t=Hr(r,i,o,u)(n=e)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],o=+a[1][0],u=+a[1][1],t=n=null,e):[[r,i],[o,u]]}}},up=wh(),ap={sphere:Ze,point:Ze,lineStart:Yr,lineEnd:Ze,polygonStart:Ze,polygonEnd:Ze},sp=function(t){return up.reset(),Sd(t,ap),+up},cp=[null,null],fp={type:"LineString",coordinates:cp},lp=function(t,n){return cp[0]=t,cp[1]=n,sp(fp)},hp={Feature:function(t,n){return Kr(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)if(Kr(e[r].geometry,n))return!0;return!1}},dp={Sphere:function(){return!0},Point:function(t,n){return Jr(t.coordinates,n)},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Jr(e[r],n))return!0;return!1},LineString:function(t,n){return ti(t.coordinates,n)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(ti(e[r],n))return!0;return!1},Polygon:function(t,n){return ni(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(ni(e[r],n))return!0;return!1},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)if(Kr(e[r],n))return!0;return!1}},pp=function(t,n){return(t&&hp.hasOwnProperty(t.type)?hp[t.type]:Kr)(t,n)},vp=function(t,n){var e=t[0]*sd,r=t[1]*sd,i=n[0]*sd,o=n[1]*sd,u=hd(r),a=yd(r),s=hd(o),c=yd(o),f=u*hd(e),l=u*yd(e),h=s*hd(i),d=s*yd(i),p=2*We(md(Xe(o-r)+u*s*Xe(i-e))),v=yd(p),g=p?function(t){var n=yd(t*=p)/v,e=yd(p-t)/v,r=e*f+n*h,i=e*l+n*d,o=e*a+n*c;return[ld(i,r)*ad,ld(o,md(r*r+i*i))*ad]}:function(){return[e*ad,r*ad]};return g.distance=p,g},gp=function(t){return t},yp=wh(),bp=wh(),mp={point:Ze,lineStart:Ze,lineEnd:Ze,polygonStart:function(){mp.lineStart=si,mp.lineEnd=li},polygonEnd:function(){mp.lineStart=mp.lineEnd=mp.point=Ze,yp.add(cd(bp)),bp.reset()},result:function(){var t=yp/2;return yp.reset(),t}},_p=mp,xp=1/0,wp=xp,Sp=-xp,Mp=Sp,Op={point:hi,lineStart:Ze,lineEnd:Ze,polygonStart:Ze,polygonEnd:Ze,result:function(){var t=[[xp,wp],[Sp,Mp]];return Sp=Mp=-(wp=xp=1/0),t}},Ep=Op,Cp=0,Ap=0,Np=0,Tp=0,Fp=0,Pp=0,Rp=0,Bp=0,Dp=0,kp={point:di,lineStart:pi,lineEnd:yi,polygonStart:function(){kp.lineStart=bi,kp.lineEnd=mi},polygonEnd:function(){kp.point=di,kp.lineStart=pi,kp.lineEnd=yi},result:function(){var t=Dp?[Rp/Dp,Bp/Dp]:Pp?[Tp/Pp,Fp/Pp]:Np?[Cp/Np,Ap/Np]:[NaN,NaN];return Cp=Ap=Np=Tp=Fp=Pp=Rp=Bp=Dp=0,t}},Ip=kp;wi.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,ud)}},result:Ze};var $p,Up,zp,Lp,qp,jp=wh(),Vp={point:Ze,lineStart:function(){Vp.point=Si},lineEnd:function(){$p&&Mi(Up,zp),Vp.point=Ze},polygonStart:function(){$p=!0},polygonEnd:function(){$p=null},result:function(){var t=+jp;return jp.reset(),t}},Gp=Vp;Oi.prototype={_radius:4.5,_circle:Ei(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=Ei(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var Qp=function(t,n){function e(t){return t&&("function"==typeof o&&i.pointRadius(+o.apply(this,arguments)),Sd(t,r(i))),i.result()}var r,i,o=4.5;return e.area=function(t){return Sd(t,r(_p)),_p.result()},e.measure=function(t){return Sd(t,r(Gp)),Gp.result()},e.bounds=function(t){return Sd(t,r(Ep)),Ep.result()},e.centroid=function(t){return Sd(t,r(Ip)),Ip.result()},e.projection=function(n){return arguments.length?(r=null==n?(t=null,gp):(t=n).stream,e):t},e.context=function(t){return arguments.length?(i=null==t?(n=null,new Oi):new wi(n=t),"function"!=typeof o&&i.pointRadius(o),e):n},e.pointRadius=function(t){return arguments.length?(o="function"==typeof t?t:(i.pointRadius(+t),+t),e):o},e.projection(t).context(n)},Hp=function(t){return{stream:Ci(t)}};Ai.prototype={constructor:Ai,point:function(t,n){this.stream.point(t,n)},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()}};var Yp=16,Wp=hd(30*sd),Xp=function(t,n){return+n?Di(t,n):Bi(t)},Zp=Ci({point:function(t,n){this.stream.point(t*sd,n*sd)}}),Kp=function(){return Li(ji).scale(155.424).center([0,33.6442])},Jp=function(){return Kp().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},tv=function(){function t(t){var n=t[0],e=t[1];return a=null,i.point(n,e),a||(o.point(n,e),a)||(u.point(n,e),a)}function n(){return e=r=null,t}var e,r,i,o,u,a,s=Jp(),c=Kp().rotate([154,0]).center([-2,58.5]).parallels([55,65]),f=Kp().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,n){a=[t,n]}};return t.invert=function(t){var n=s.scale(),e=s.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?c:i>=.166&&i<.234&&r>=-.214&&r<-.115?f:s).invert(t)},t.stream=function(t){return e&&r===t?e:e=Vi([s.stream(r=t),c.stream(t),f.stream(t)])},t.precision=function(t){return arguments.length?(s.precision(t),c.precision(t),f.precision(t),n()):s.precision()},t.scale=function(n){return arguments.length?(s.scale(n),c.scale(.35*n),f.scale(n),t.translate(s.translate())):s.scale()},t.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),r=+t[0],a=+t[1];return i=s.translate(t).clipExtent([[r-.455*e,a-.238*e],[r+.455*e,a+.238*e]]).stream(l),o=c.translate([r-.307*e,a+.201*e]).clipExtent([[r-.425*e+nd,a+.12*e+nd],[r-.214*e-nd,a+.234*e-nd]]).stream(l),u=f.translate([r-.205*e,a+.212*e]).clipExtent([[r-.214*e+nd,a+.166*e+nd],[r-.115*e-nd,a+.234*e-nd]]).stream(l),n()},t.fitExtent=function(n,e){return Ti(t,n,e)},t.fitSize=function(n,e){return Fi(t,n,e)},t.fitWidth=function(n,e){return Pi(t,n,e)},t.fitHeight=function(n,e){return Ri(t,n,e)},t.scale(1070)},nv=Gi(function(t){return md(2/(1+t))});nv.invert=Qi(function(t){return 2*We(t/2)});var ev=function(){return Ui(nv).scale(124.75).clipAngle(179.999)},rv=Gi(function(t){return(t=Ye(t))&&t/yd(t)});rv.invert=Qi(function(t){return t});var iv=function(){return Ui(rv).scale(79.4188).clipAngle(179.999)};Hi.invert=function(t,n){return[t,2*fd(pd(n))-id]};var ov=function(){return Yi(Hi).scale(961/ud)},uv=function(){return Li(Xi).scale(109.5).parallels([30,30])};Zi.invert=Zi;var av=function(){return Ui(Zi).scale(152.63)},sv=function(){return Li(Ki).scale(131.154).center([0,13.9389])},cv=1.340264,fv=-.081106,lv=893e-6,hv=.003796,dv=md(3)/2;Ji.invert=function(t,n){for(var e,r,i,o=n,u=o*o,a=u*u*u,s=0;s<12&&(r=o*(cv+fv*u+a*(lv+hv*u))-n,i=cv+3*fv*u+a*(7*lv+9*hv*u),o-=e=r/i,u=o*o,a=u*u*u,!(cd(e)<ed));++s);return[dv*t*(cv+3*fv*u+a*(7*lv+9*hv*u))/hd(o),We(yd(o)/dv)]};var pv=function(){return Ui(Ji).scale(177.158)};to.invert=Qi(fd);var vv=function(){return Ui(to).scale(144.049).clipAngle(60)},gv=function(){function t(){return g=c*h,y=c*d,a=s=null,n}function n(t){var n=t[0]*g,i=t[1]*y;if(p){var o=i*e-n*r;n=n*e+i*r,i=o}return[n+f,i+l]}var e,r,i,o,u,a,s,c=1,f=0,l=0,h=1,d=1,p=0,v=null,g=1,y=1,b=Ci({point:function(t,e){var r=n([t,e]);this.stream.point(r[0],r[1])}}),m=gp;return n.invert=function(t){var n=t[0]-f,i=t[1]-l;if(p){var o=i*e+n*r;n=n*e-i*r,i=o}return[n/g,i/y]},n.stream=function(t){return a&&s===t?a:a=b(m(s=t))},n.postclip=function(n){return arguments.length?(m=n,v=i=o=u=null,t()):m},n.clipExtent=function(n){return arguments.length?(m=null==n?(v=i=o=u=null,gp):Hr(v=+n[0][0],i=+n[0][1],o=+n[1][0],u=+n[1][1]),t()):null==v?null:[[v,i],[o,u]]},n.scale=function(n){return arguments.length?(c=+n,t()):c},n.translate=function(n){return arguments.length?(f=+n[0],l=+n[1],t()):[f,l]},n.angle=function(n){return arguments.length?(p=n%360*sd,r=yd(p),e=hd(p),t()):p*ad},n.reflectX=function(n){return arguments.length?(h=n?-1:1,t()):h<0},n.reflectY=function(n){return arguments.length?(d=n?-1:1,t()):d<0},n.fitExtent=function(t,e){return Ti(n,t,e)},n.fitSize=function(t,e){return Fi(n,t,e)},n.fitWidth=function(t,e){return Pi(n,t,e)},n.fitHeight=function(t,e){return Ri(n,t,e)},n};no.invert=function(t,n){var e,r=n,i=25;do{var o=r*r,u=o*o;r-=e=(r*(1.007226+o*(.015085+u*(.028874*o-.044475-.005916*u)))-n)/(1.007226+o*(.045255+u*(.259866*o-.311325-.005916*11*u)))}while(cd(e)>nd&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};var yv=function(){return Ui(no).scale(175.295)};eo.invert=Qi(We);var bv=function(){return Ui(eo).scale(249.5).clipAngle(90+nd)};ro.invert=Qi(function(t){return 2*fd(t)});var mv=function(){return Ui(ro).scale(250).clipAngle(142)};io.invert=function(t,n){return[-n,2*fd(pd(t))-id]};var _v=function(){var t=Yi(io),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):(t=n(),[t[1],-t[0]])},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):(t=e(),[t[0],t[1],t[2]-90])},e([0,0,90]).scale(159.155)},xv=function(){function t(t){var o,u=0;t.eachAfter(function(t){var e=t.children;e?(t.x=uo(e),t.y=so(e)):(t.x=o?u+=n(t,o):0,t.y=0,o=t)});var a=fo(t),s=lo(t),c=a.x-n(a,s)/2,f=s.x+n(s,a)/2;return t.eachAfter(i?function(n){n.x=(n.x-t.x)*e,n.y=(t.y-n.y)*r}:function(n){n.x=(n.x-c)/(f-c)*e,n.y=(1-(t.y?n.y/t.y:1))*r})}var n=oo,e=1,r=1,i=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(n){return arguments.length?(i=!1,e=+n[0],r=+n[1],t):i?null:[e,r]},t.nodeSize=function(n){return arguments.length?(i=!0,e=+n[0],r=+n[1],t):i?[e,r]:null},t},wv=function(){return this.eachAfter(ho)},Sv=function(t){var n,e,r,i,o=this,u=[o];do{for(n=u.reverse(),u=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;r<i;++r)u.push(e[r])}while(u.length);return this},Mv=function(t){for(var n,e,r=this,i=[r];r=i.pop();)if(t(r),n=r.children)for(e=n.length-1;e>=0;--e)i.push(n[e]);return this},Ov=function(t){for(var n,e,r,i=this,o=[i],u=[];i=o.pop();)if(u.push(i),n=i.children)for(e=0,r=n.length;e<r;++e)o.push(n[e]);for(;i=u.pop();)t(i);return this},Ev=function(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e})},Cv=function(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},Av=function(t){for(var n=this,e=po(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},Nv=function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},Tv=function(){var t=[];return this.each(function(n){t.push(n)}),t},Fv=function(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},Pv=function(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n};_o.prototype=vo.prototype={constructor:_o,count:wv,each:Sv,eachAfter:Ov,eachBefore:Mv,sum:Ev,sort:Cv,path:Av,ancestors:Nv,descendants:Tv,leaves:Fv,links:Pv,copy:go};var Rv=Array.prototype.slice,Bv=function(t){for(var n,e,r=0,i=(t=xo(Rv.call(t))).length,o=[];r<i;)n=t[r],e&&Mo(e,n)?++r:(e=Eo(o=wo(o,n)),r=0);return e},Dv=function(t){return Bo(t),t},kv=function(t){return function(){return t}},Iv=function(){function t(t){return t.x=e/2,t.y=r/2,n?t.eachBefore(Uo(n)).eachAfter(zo(i,.5)).eachBefore(Lo(1)):t.eachBefore(Uo($o)).eachAfter(zo(Io,1)).eachAfter(zo(i,t.r/Math.min(e,r))).eachBefore(Lo(Math.min(e,r)/(2*t.r))),t}var n=null,e=1,r=1,i=Io;return t.radius=function(e){return arguments.length?(n=Do(e),t):n},t.size=function(n){return arguments.length?(e=+n[0],r=+n[1],t):[e,r]},t.padding=function(n){return arguments.length?(i="function"==typeof n?n:kv(+n),t):i},t},$v=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},Uv=function(t,n,e,r,i){for(var o,u=t.children,a=-1,s=u.length,c=t.value&&(r-n)/t.value;++a<s;)o=u[a],o.y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*c},zv=function(){function t(t){var u=t.height+1;return t.x0=t.y0=i,t.x1=e,t.y1=r/u,t.eachBefore(n(r,u)),o&&t.eachBefore($v),t}function n(t,n){return function(e){e.children&&Uv(e,e.x0,t*(e.depth+1)/n,e.x1,t*(e.depth+2)/n);var r=e.x0,o=e.y0,u=e.x1-i,a=e.y1-i;u<r&&(r=u=(r+u)/2),a<o&&(o=a=(o+a)/2),e.x0=r,e.y0=o,e.x1=u,e.y1=a}}var e=1,r=1,i=0,o=!1;return t.round=function(n){return arguments.length?(o=!!n,t):o},t.size=function(n){return arguments.length?(e=+n[0],r=+n[1],t):[e,r]},t.padding=function(n){return arguments.length?(i=+n,t):i},t},Lv="$",qv={depth:-1},jv={},Vv=function(){function t(t){var r,i,o,u,a,s,c,f=t.length,l=new Array(f),h={};for(i=0;i<f;++i)r=t[i],a=l[i]=new _o(r),null!=(s=n(r,i,t))&&(s+="")&&(c=Lv+(a.id=s),h[c]=c in h?jv:a);for(i=0;i<f;++i)if(a=l[i],null!=(s=e(t[i],i,t))&&(s+="")){if(!(u=h[Lv+s]))throw new Error("missing: "+s);if(u===jv)throw new Error("ambiguous: "+s);u.children?u.children.push(a):u.children=[a],a.parent=u}else{if(o)throw new Error("multiple roots");o=a}if(!o)throw new Error("no root");if(o.parent=qv,o.eachBefore(function(t){t.depth=t.parent.depth+1,--f}).eachBefore(mo),o.parent=null,f>0)throw new Error("cycle");return o}var n=qo,e=jo;return t.id=function(e){return arguments.length?(n=ko(e),t):n},t.parentId=function(n){return arguments.length?(e=ko(n),t):e},t};Xo.prototype=Object.create(_o.prototype);var Gv=function(){function t(t){var r=Zo(t);if(r.eachAfter(n),r.parent.m=-r.z,r.eachBefore(e),s)t.eachBefore(i);else{var c=t,f=t,l=t;t.eachBefore(function(t){t.x<c.x&&(c=t),t.x>f.x&&(f=t),t.depth>l.depth&&(l=t)});var h=c===f?1:o(c,f)/2,d=h-c.x,p=u/(f.x+h+d),v=a/(l.depth||1);t.eachBefore(function(t){t.x=(t.x+d)*p,t.y=t.depth*v})}return t}function n(t){var n=t.children,e=t.parent.children,i=t.i?e[t.i-1]:null;if(n){Yo(t);var u=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+o(t._,i._),t.m=t.z-u):t.z=u}else i&&(t.z=i.z+o(t._,i._));t.parent.A=r(t,i,t.parent.A||e[0])}function e(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function r(t,n,e){if(n){for(var r,i=t,u=t,a=n,s=i.parent.children[0],c=i.m,f=u.m,l=a.m,h=s.m;a=Qo(a),i=Go(i),a&&i;)s=Go(s),u=Qo(u),u.a=t,r=a.z+l-i.z-c+o(a._,i._),r>0&&(Ho(Wo(a,t,e),t,r),c+=r,f+=r),l+=a.m,c+=i.m,h+=s.m,f+=u.m;a&&!Qo(u)&&(u.t=a,u.m+=l-f),i&&!Go(s)&&(s.t=i,s.m+=c-h,e=t)}return e}function i(t){t.x*=u,t.y=t.depth*a}var o=Vo,u=1,a=1,s=null;return t.separation=function(n){return arguments.length?(o=n,t):o},t.size=function(n){return arguments.length?(s=!1,u=+n[0],a=+n[1],t):s?null:[u,a]},t.nodeSize=function(n){return arguments.length?(s=!0,u=+n[0],a=+n[1],t):s?[u,a]:null},t},Qv=function(t,n,e,r,i){for(var o,u=t.children,a=-1,s=u.length,c=t.value&&(i-e)/t.value;++a<s;)o=u[a],o.x0=n,o.x1=r,o.y0=e,o.y1=e+=o.value*c},Hv=(1+Math.sqrt(5))/2,Yv=function t(n){function e(t,e,r,i,o){Ko(n,t,e,r,i,o)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Hv),Wv=function(){function t(t){return t.x0=t.y0=0,t.x1=i,t.y1=o,t.eachBefore(n),u=[0],r&&t.eachBefore($v),t}function n(t){var n=u[t.depth],r=t.x0+n,i=t.y0+n,o=t.x1-n,h=t.y1-n;o<r&&(r=o=(r+o)/2),h<i&&(i=h=(i+h)/2),t.x0=r,t.y0=i,t.x1=o,t.y1=h,t.children&&(n=u[t.depth+1]=a(t)/2,r+=l(t)-n,i+=s(t)-n,o-=c(t)-n,h-=f(t)-n,o<r&&(r=o=(r+o)/2),h<i&&(i=h=(i+h)/2),e(t,r,i,o,h))}var e=Yv,r=!1,i=1,o=1,u=[0],a=Io,s=Io,c=Io,f=Io,l=Io;return t.round=function(n){return arguments.length?(r=!!n,t):r},t.size=function(n){return arguments.length?(i=+n[0],o=+n[1],t):[i,o]},t.tile=function(n){return arguments.length?(e=ko(n),t):e},t.padding=function(n){return arguments.length?t.paddingInner(n).paddingOuter(n):t.paddingInner()},t.paddingInner=function(n){return arguments.length?(a="function"==typeof n?n:kv(+n),t):a},t.paddingOuter=function(n){return arguments.length?t.paddingTop(n).paddingRight(n).paddingBottom(n).paddingLeft(n):t.paddingTop()},t.paddingTop=function(n){return arguments.length?(s="function"==typeof n?n:kv(+n),t):s},t.paddingRight=function(n){return arguments.length?(c="function"==typeof n?n:kv(+n),t):c},t.paddingBottom=function(n){return arguments.length?(f="function"==typeof n?n:kv(+n),t):f},t.paddingLeft=function(n){return arguments.length?(l="function"==typeof n?n:kv(+n),t):l},t},Xv=function(t,n,e,r,i){function o(t,n,e,r,i,u,a){if(t>=n-1){var c=s[t];return c.x0=r,c.y0=i,c.x1=u,c.y1=a,void 0}for(var l=f[t],h=e/2+l,d=t+1,p=n-1;d<p;){var v=d+p>>>1;f[v]<h?d=v+1:p=v}h-f[d-1]<f[d]-h&&t+1<d&&--d;var g=f[d]-l,y=e-g;if(u-r>a-i){var b=(r*y+u*g)/e;o(t,d,g,r,i,b,a),o(d,n,y,b,i,u,a)}else{var m=(i*y+a*g)/e;o(t,d,g,r,i,u,m),o(d,n,y,r,m,u,a)}}var u,a,s=t.children,c=s.length,f=new Array(c+1);for(f[0]=a=u=0;u<c;++u)f[u+1]=a+=s[u].value;o(0,c,t.value,n,e,r,i)},Zv=function(t,n,e,r,i){(1&t.depth?Qv:Uv)(t,n,e,r,i)},Kv=function t(n){function e(t,e,r,i,o){if((u=t._squarify)&&u.ratio===n)for(var u,a,s,c,f,l=-1,h=u.length,d=t.value;++l<h;){for(a=u[l],s=a.children,c=a.value=0,f=s.length;c<f;++c)a.value+=s[c].value;a.dice?Uv(a,e,r,i,r+=(o-r)*a.value/d):Qv(a,e,r,e+=(i-e)*a.value/d,o),d-=a.value}else t._squarify=u=Ko(n,t,e,r,i,o),u.ratio=n}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Hv),Jv=function(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e<r;)n=i,i=t[e],o+=n[1]*i[0]-n[0]*i[1];return o/2},tg=function(t){for(var n,e,r=-1,i=t.length,o=0,u=0,a=t[i-1],s=0;++r<i;)n=a,a=t[r],s+=e=n[0]*a[1]-a[0]*n[1],o+=(n[0]+a[0])*e,u+=(n[1]+a[1])*e;return s*=3,[o/s,u/s]},ng=function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])},eg=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n<e;++n)r[n]=[+t[n][0],+t[n][1],n];for(r.sort(Jo),n=0;n<e;++n)i[n]=[r[n][0],-r[n][1]];var o=tu(r),u=tu(i),a=u[0]===o[0],s=u[u.length-1]===o[o.length-1],c=[];for(n=o.length-1;n>=0;--n)c.push(t[r[o[n]][2]]);for(n=+a;n<u.length-s;++n)c.push(t[r[u[n]][2]]);return c},rg=function(t,n){for(var e,r,i=t.length,o=t[i-1],u=n[0],a=n[1],s=o[0],c=o[1],f=!1,l=0;l<i;++l)o=t[l],e=o[0],r=o[1],r>a!=c>a&&u<(s-e)*(a-r)/(c-r)+e&&(f=!f),s=e,c=r;return f},ig=function(t){for(var n,e,r=-1,i=t.length,o=t[i-1],u=o[0],a=o[1],s=0;++r<i;)n=u,e=a,o=t[r],u=o[0],a=o[1],n-=u,e-=a,s+=Math.sqrt(n*n+e*e);return s},og=function(){return Math.random()},ug=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(og),ag=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(og),sg=function t(n){function e(){var t=ag.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(og),cg=function t(n){function e(t){return function(){for(var e=0,r=0;r<t;++r)e+=n();return e}}return e.source=t,e}(og),fg=function t(n){function e(t){var e=cg.source(n)(t);return function(){return e()/t}}return e.source=t,e}(og),lg=function t(n){function e(t){return function(){return-Math.log(1-n())/t}}return e.source=t,e}(og),hg=e(524),dg=function(t){for(var n=t.length/6|0,e=new Array(n),r=0;r<n;)e[r]="#"+t.slice(6*r,6*++r);return e},pg=dg("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),vg=dg("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),gg=dg("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),yg=dg("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),bg=dg("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),mg=dg("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),_g=dg("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),xg=dg("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),wg=dg("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Sg=dg("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Mg=function(t){return Object(sc.s)(t[t.length-1])},Og=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(dg),Eg=Mg(Og),Cg=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(dg),Ag=Mg(Cg),Ng=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(dg),Tg=Mg(Ng),Fg=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(dg),Pg=Mg(Fg),Rg=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(dg),Bg=Mg(Rg),Dg=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(dg),kg=Mg(Dg),Ig=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(dg),$g=Mg(Ig),Ug=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(dg),zg=Mg(Ug),Lg=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(dg),qg=Mg(Lg),jg=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(dg),Vg=Mg(jg),Gg=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(dg),Qg=Mg(Gg),Hg=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(dg),Yg=Mg(Hg),Wg=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(dg),Xg=Mg(Wg),Zg=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(dg),Kg=Mg(Zg),Jg=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(dg),ty=Mg(Jg),ny=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(dg),ey=Mg(ny),ry=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(dg),iy=Mg(ry),oy=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(dg),uy=Mg(oy),ay=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(dg),sy=Mg(ay),cy=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(dg),fy=Mg(cy),ly=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(dg),hy=Mg(ly),dy=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(dg),py=Mg(dy),vy=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(dg),gy=Mg(vy),yy=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(dg),by=Mg(yy),my=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(dg),_y=Mg(my),xy=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(dg),wy=Mg(xy),Sy=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(dg),My=Mg(Sy),Oy=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"},Ey=Object(sc.f)(Object(Rc.b)(300,.5,0),Object(Rc.b)(-240,.5,1)),Cy=Object(sc.f)(Object(Rc.b)(-100,.75,.35),Object(Rc.b)(80,1.5,.8)),Ay=Object(sc.f)(Object(Rc.b)(260,.75,.35),Object(Rc.b)(80,1.5,.8)),Ny=Object(Rc.b)(),Ty=function(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return Ny.h=360*t-100,Ny.s=1.5-1.5*n,Ny.l=.8-.9*n,Ny+""},Fy=Object(Rc.h)(),Py=Math.PI/3,Ry=2*Math.PI/3,By=function(t){var n;return t=(.5-t)*Math.PI,Fy.r=255*(n=Math.sin(t))*n,Fy.g=255*(n=Math.sin(t+Py))*n,Fy.b=255*(n=Math.sin(t+Ry))*n,Fy+""},Dy=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"},ky=nu(dg("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Iy=nu(dg("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),$y=nu(dg("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Uy=nu(dg("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),zy=function(t){return function(){return t}},Ly=Math.abs,qy=Math.atan2,jy=Math.cos,Vy=Math.max,Gy=Math.min,Qy=Math.sin,Hy=Math.sqrt,Yy=1e-12,Wy=Math.PI,Xy=Wy/2,Zy=2*Wy,Ky=function(){function t(){var t,c,f=+n.apply(this,arguments),l=+e.apply(this,arguments),h=o.apply(this,arguments)-Xy,d=u.apply(this,arguments)-Xy,p=Ly(d-h),v=d>h;if(s||(s=t=rl()),l<f&&(c=l,l=f,f=c),l>Yy)if(p>Zy-Yy)s.moveTo(l*jy(h),l*Qy(h)),s.arc(0,0,l,h,d,!v),f>Yy&&(s.moveTo(f*jy(d),f*Qy(d)),s.arc(0,0,f,d,h,v));else{var g,y,b=h,m=d,_=h,x=d,w=p,S=p,M=a.apply(this,arguments)/2,O=M>Yy&&(i?+i.apply(this,arguments):Hy(f*f+l*l)),E=Gy(Ly(l-f)/2,+r.apply(this,arguments)),C=E,A=E;if(O>Yy){var N=ru(O/f*Qy(M)),T=ru(O/l*Qy(M));(w-=2*N)>Yy?(N*=v?1:-1,_+=N,x-=N):(w=0,_=x=(h+d)/2),(S-=2*T)>Yy?(T*=v?1:-1,b+=T,m-=T):(S=0,b=m=(h+d)/2)}var F=l*jy(b),P=l*Qy(b),R=f*jy(x),B=f*Qy(x);if(E>Yy){var D,k=l*jy(m),I=l*Qy(m),$=f*jy(_),U=f*Qy(_);if(p<Wy&&(D=cu(F,P,$,U,k,I,R,B))){var z=F-D[0],L=P-D[1],q=k-D[0],j=I-D[1],V=1/Qy(eu((z*q+L*j)/(Hy(z*z+L*L)*Hy(q*q+j*j)))/2),G=Hy(D[0]*D[0]+D[1]*D[1]);C=Gy(E,(f-G)/(V-1)),A=Gy(E,(l-G)/(V+1))}}S>Yy?A>Yy?(g=fu($,U,F,P,l,A,v),y=fu(k,I,R,B,l,A,v),s.moveTo(g.cx+g.x01,g.cy+g.y01),A<E?s.arc(g.cx,g.cy,A,qy(g.y01,g.x01),qy(y.y01,y.x01),!v):(s.arc(g.cx,g.cy,A,qy(g.y01,g.x01),qy(g.y11,g.x11),!v),s.arc(0,0,l,qy(g.cy+g.y11,g.cx+g.x11),qy(y.cy+y.y11,y.cx+y.x11),!v),s.arc(y.cx,y.cy,A,qy(y.y11,y.x11),qy(y.y01,y.x01),!v))):(s.moveTo(F,P),s.arc(0,0,l,b,m,!v)):s.moveTo(F,P),f>Yy&&w>Yy?C>Yy?(g=fu(R,B,k,I,f,-C,v),y=fu(F,P,$,U,f,-C,v),s.lineTo(g.cx+g.x01,g.cy+g.y01),C<E?s.arc(g.cx,g.cy,C,qy(g.y01,g.x01),qy(y.y01,y.x01),!v):(s.arc(g.cx,g.cy,C,qy(g.y01,g.x01),qy(g.y11,g.x11),!v),s.arc(0,0,f,qy(g.cy+g.y11,g.cx+g.x11),qy(y.cy+y.y11,y.cx+y.x11),v),s.arc(y.cx,y.cy,C,qy(y.y11,y.x11),qy(y.y01,y.x01),!v))):s.arc(0,0,f,x,_,v):s.lineTo(R,B)}else s.moveTo(0,0);if(s.closePath(),t)return s=null,t+""||null}var n=iu,e=ou,r=zy(0),i=null,o=uu,u=au,a=su,s=null;return t.centroid=function(){var t=(+n.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +u.apply(this,arguments))/2-Wy/2;return[jy(r)*t,Qy(r)*t]},t.innerRadius=function(e){return arguments.length?(n="function"==typeof e?e:zy(+e),t):n},t.outerRadius=function(n){return arguments.length?(e="function"==typeof n?n:zy(+n),t):e},t.cornerRadius=function(n){return arguments.length?(r="function"==typeof n?n:zy(+n),t):r},t.padRadius=function(n){return arguments.length?(i=null==n?null:"function"==typeof n?n:zy(+n),t):i},t.startAngle=function(n){return arguments.length?(o="function"==typeof n?n:zy(+n),t):o},t.endAngle=function(n){return arguments.length?(u="function"==typeof n?n:zy(+n),t):u},t.padAngle=function(n){return arguments.length?(a="function"==typeof n?n:zy(+n),t):a},t.context=function(n){return arguments.length?(s=null==n?null:n,t):s},t};lu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Jy=function(t){return new lu(t)},tb=function(){function t(t){var a,s,c,f=t.length,l=!1;for(null==i&&(u=o(c=rl())),a=0;a<=f;++a)!(a<f&&r(s=t[a],a,t))===l&&((l=!l)?u.lineStart():u.lineEnd()),l&&u.point(+n(s,a,t),+e(s,a,t));if(c)return u=null,c+""||null}var n=hu,e=du,r=zy(!0),i=null,o=Jy,u=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:zy(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:zy(+n),t):e},t.defined=function(n){return arguments.length?(r="function"==typeof n?n:zy(!!n),t):r},t.curve=function(n){return arguments.length?(o=n,null!=i&&(u=o(i)),t):o},t.context=function(n){return arguments.length?(null==n?i=u=null:u=o(i=n),t):i},t},nb=function(){function t(t){var n,f,l,h,d,p=t.length,v=!1,g=new Array(p),y=new Array(p);for(null==a&&(c=s(d=rl())),n=0;n<=p;++n){if(!(n<p&&u(h=t[n],n,t))===v)if(v=!v)f=n,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),l=n-1;l>=f;--l)c.point(g[l],y[l]);c.lineEnd(),c.areaEnd()}v&&(g[n]=+e(h,n,t),y[n]=+i(h,n,t),c.point(r?+r(h,n,t):g[n],o?+o(h,n,t):y[n]))}if(d)return c=null,d+""||null}function n(){return tb().defined(u).curve(s).context(a)}var e=hu,r=null,i=zy(0),o=du,u=zy(!0),a=null,s=Jy,c=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:zy(+n),r=null,t):e},t.x0=function(n){return arguments.length?(e="function"==typeof n?n:zy(+n),t):e},t.x1=function(n){return arguments.length?(r=null==n?null:"function"==typeof n?n:zy(+n),t):r},t.y=function(n){return arguments.length?(i="function"==typeof n?n:zy(+n),o=null,t):i},t.y0=function(n){return arguments.length?(i="function"==typeof n?n:zy(+n),t):i},t.y1=function(n){return arguments.length?(o=null==n?null:"function"==typeof n?n:zy(+n),t):o},t.lineX0=t.lineY0=function(){return n().x(e).y(i)},t.lineY1=function(){return n().x(e).y(o)},t.lineX1=function(){return n().x(r).y(i)},t.defined=function(n){return arguments.length?(u="function"==typeof n?n:zy(!!n),t):u},t.curve=function(n){return arguments.length?(s=n,null!=a&&(c=s(a)),t):s},t.context=function(n){return arguments.length?(null==n?a=c=null:c=s(a=n),t):a},t},eb=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},rb=function(t){return t},ib=function(){function t(t){var a,s,c,f,l,h=t.length,d=0,p=new Array(h),v=new Array(h),g=+i.apply(this,arguments),y=Math.min(Zy,Math.max(-Zy,o.apply(this,arguments)-g)),b=Math.min(Math.abs(y)/h,u.apply(this,arguments)),m=b*(y<0?-1:1);for(a=0;a<h;++a)(l=v[p[a]=a]=+n(t[a],a,t))>0&&(d+=l);for(null!=e?p.sort(function(t,n){return e(v[t],v[n])}):null!=r&&p.sort(function(n,e){return r(t[n],t[e])}),a=0,c=d?(y-h*m)/d:0;a<h;++a,g=f)s=p[a],l=v[s],f=g+(l>0?l*c:0)+m,v[s]={data:t[s],index:a,value:l,startAngle:g,endAngle:f,padAngle:b};return v}var n=rb,e=eb,r=null,i=zy(0),o=zy(Zy),u=zy(0);return t.value=function(e){return arguments.length?(n="function"==typeof e?e:zy(+e),t):n},t.sortValues=function(n){return arguments.length?(e=n,r=null,t):e},t.sort=function(n){return arguments.length?(r=n,e=null,t):r},t.startAngle=function(n){return arguments.length?(i="function"==typeof n?n:zy(+n),t):i},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:zy(+n),t):o},t.padAngle=function(n){return arguments.length?(u="function"==typeof n?n:zy(+n),t):u},t},ob=vu(Jy);pu.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var ub=function(){return gu(tb().curve(ob))},ab=function(){var t=nb().curve(ob),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return gu(e())},delete t.lineX0,t.lineEndAngle=function(){return gu(r())},delete t.lineX1,t.lineInnerRadius=function(){return gu(i())},delete t.lineY0,t.lineOuterRadius=function(){return gu(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(vu(t)):n()._curve},t},sb=function(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]},cb=Array.prototype.slice,fb={draw:function(t,n){var e=Math.sqrt(n/Wy);t.moveTo(e,0),t.arc(0,0,e,0,Zy)}},lb={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},hb=Math.sqrt(1/3),db=2*hb,pb={draw:function(t,n){var e=Math.sqrt(n/db),r=e*hb;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},vb=Math.sin(Wy/10)/Math.sin(7*Wy/10),gb=Math.sin(Zy/10)*vb,yb=-Math.cos(Zy/10)*vb,bb={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=gb*e,i=yb*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var u=Zy*o/5,a=Math.cos(u),s=Math.sin(u);t.lineTo(s*e,-a*e),t.lineTo(a*r-s*i,s*r+a*i)}t.closePath()}},mb={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},_b=Math.sqrt(3),xb={draw:function(t,n){var e=-Math.sqrt(n/(3*_b));t.moveTo(0,2*e),t.lineTo(-_b*e,-e),t.lineTo(_b*e,-e),t.closePath()}},wb=Math.sqrt(3)/2,Sb=1/Math.sqrt(12),Mb=3*(Sb/2+1),Ob={draw:function(t,n){var e=Math.sqrt(n/Mb),r=e/2,i=e*Sb,o=r,u=e*Sb+e,a=-o,s=u;t.moveTo(r,i),t.lineTo(o,u),t.lineTo(a,s),t.lineTo(-.5*r-wb*i,wb*r+-.5*i),t.lineTo(-.5*o-wb*u,wb*o+-.5*u),t.lineTo(-.5*a-wb*s,wb*a+-.5*s),t.lineTo(-.5*r+wb*i,-.5*i-wb*r),t.lineTo(-.5*o+wb*u,-.5*u-wb*o),t.lineTo(-.5*a+wb*s,-.5*s-wb*a),t.closePath()}},Eb=[fb,lb,pb,mb,bb,xb,Ob],Cb=function(){function t(){var t;if(r||(r=t=rl()),n.apply(this,arguments).draw(r,+e.apply(this,arguments)),t)return r=null,t+""||null}var n=zy(fb),e=zy(64),r=null;return t.type=function(e){return arguments.length?(n="function"==typeof e?e:zy(e),t):n},t.size=function(n){return arguments.length?(e="function"==typeof n?n:zy(+n),t):e},t.context=function(n){return arguments.length?(r=null==n?null:n,t):r},t},Ab=function(){};Cu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Eu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Eu(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Nb=function(t){return new Cu(t)};Au.prototype={areaStart:Ab,areaEnd:Ab,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:Eu(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Tb=function(t){return new Au(t)};Nu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:Eu(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Fb=function(t){return new Nu(t)};Tu.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],u=t[e]-i,a=n[e]-o,s=-1;++s<=e;)r=s/e,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+r*u),this._beta*n[s]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var Pb=function t(n){function e(t){return 1===n?new Cu(t):new Tu(t,n)}return e.beta=function(n){return t(+n)},e}(.85);Pu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Fu(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Fu(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Rb=function t(n){function e(t){return new Pu(t,n)}return e.tension=function(n){return t(+n)},e}(0);Ru.prototype={areaStart:Ab,areaEnd:Ab,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Fu(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Bb=function t(n){function e(t){return new Ru(t,n)}return e.tension=function(n){return t(+n)},e}(0);Bu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Fu(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Db=function t(n){function e(t){return new Bu(t,n)}return e.tension=function(n){return t(+n)},e}(0);ku.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Du(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var kb=function t(n){function e(t){return n?new ku(t,n):new Pu(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);Iu.prototype={areaStart:Ab,areaEnd:Ab,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Du(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ib=function t(n){function e(t){return n?new Iu(t,n):new Ru(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);$u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Du(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var $b=function t(n){function e(t){return n?new $u(t,n):new Bu(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);Uu.prototype={areaStart:Ab,areaEnd:Ab,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}};var Ub=function(t){return new Uu(t)};Vu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ju(this,this._t0,qu(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(t=+t,n=+n,t!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,ju(this,qu(this,e=Lu(this,t,n)),e);break;default:ju(this,this._t0,e=Lu(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(Gu.prototype=Object.create(Vu.prototype)).point=function(t,n){Vu.prototype.point.call(this,n,t)},Qu.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},Wu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=Xu(t),i=Xu(n),o=0,u=1;u<e;++o,++u)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[u],n[u]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var zb=function(t){return new Wu(t)};Zu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var Lb=function(t){return new Zu(t,.5)},qb=function(t,n){if((i=t.length)>1)for(var e,r,i,o=1,u=t[n[0]],a=u.length;o<i;++o)for(r=u,u=t[n[o]],e=0;e<a;++e)u[e][1]+=u[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]},jb=function(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e},Vb=function(){function t(t){var o,u,a=n.apply(this,arguments),s=t.length,c=a.length,f=new Array(c);for(o=0;o<c;++o){for(var l,h=a[o],d=f[o]=new Array(s),p=0;p<s;++p)d[p]=l=[0,+i(t[p],h,p,t)],l.data=t[p];d.key=h}for(o=0,u=e(f);o<c;++o)f[u[o]].index=o;return r(f,u),f}var n=zy([]),e=jb,r=qb,i=ta;return t.keys=function(e){return arguments.length?(n="function"==typeof e?e:zy(cb.call(e)),t):n},t.value=function(n){return arguments.length?(i="function"==typeof n?n:zy(+n),t):i},t.order=function(n){return arguments.length?(e=null==n?jb:"function"==typeof n?n:zy(cb.call(n)),t):e},t.offset=function(n){return arguments.length?(r=null==n?qb:n,t):r},t},Gb=function(t,n){if((r=t.length)>0){for(var e,r,i,o=0,u=t[0].length;o<u;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}qb(t,n)}},Qb=function(t,n){if((a=t.length)>0)for(var e,r,i,o,u,a,s=0,c=t[n[0]].length;s<c;++s)for(o=u=0,e=0;e<a;++e)(i=(r=t[n[e]][s])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):(r[0]=0,r[1]=i)},Hb=function(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var u=0,a=0;u<e;++u)a+=t[u][r][1]||0;i[r][1]+=i[r][0]=-a/2}qb(t,n)}},Yb=function(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,u=1;u<r;++u){for(var a=0,s=0,c=0;a<i;++a){for(var f=t[n[a]],l=f[u][1]||0,h=f[u-1][1]||0,d=(l-h)/2,p=0;p<a;++p){var v=t[n[p]];d+=(v[u][1]||0)-(v[u-1][1]||0)}s+=l,c+=d*l}e[u-1][1]+=e[u-1][0]=o,s&&(o-=c/s)}e[u-1][1]+=e[u-1][0]=o,qb(t,n)}},Wb=function(t){var n=t.map(na);return jb(t).sort(function(t,e){return n[t]-n[e]})},Xb=function(t){var n=t.map(ea);return jb(t).sort(function(t,e){return n[t]-n[e]})},Zb=function(t){return Xb(t).reverse()},Kb=function(t){var n,e,r=t.length,i=t.map(ea),o=Wb(t),u=0,a=0,s=[],c=[];for(n=0;n<r;++n)e=o[n],u<a?(u+=i[e],s.push(e)):(a+=i[e],c.push(e));return c.reverse().concat(s)},Jb=function(t){return jb(t).reverse()},tm=e(188),nm=e(234),em=function(t){return function(){return t}};oa.prototype={constructor:oa,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=ca(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)r=e.U,e===r.L?(i=r.R,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(aa(this,e),t=e,e=t.U),e.C=!1,r.C=!0,sa(this,r))):(i=r.L,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(sa(this,e),t=e,e=t.U),e.C=!1,r.C=!0,aa(this,r))),e=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 n,e,r,i=t.U,o=t.L,u=t.R;if(e=o?u?ca(u):o:u,i?i.L===t?i.L=e:i.R=e:this._=e,o&&u?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==u?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=u,u.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(n=i.R,n.C&&(n.C=!1,i.C=!0,aa(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,sa(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,aa(this,i),t=this._;break}}else if(n=i.L,n.C&&(n.C=!1,i.C=!0,sa(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,aa(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,sa(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var rm,im,om,um,am,sm=oa,cm=[],fm=[],lm=1e-6,hm=1e-12;Ba.prototype={constructor:Ba,polygons:function(){var t=this.edges;return this.cells.map(function(n){var e=n.halfedges.map(function(e){return ba(n,t[e])});return e.data=n.site.data,e})},triangles:function(){var t=[],n=this.edges;return this.cells.forEach(function(e,r){if(o=(i=e.halfedges).length)for(var i,o,u,a=e.site,s=-1,c=n[i[o-1]],f=c.left===a?c.right:c.left;++s<o;)u=f,c=n[i[s]],f=c.left===a?c.right:c.left,u&&f&&r<u.index&&r<f.index&&Pa(a,u,f)<0&&t.push([a.data,u.data,f.data])}),t},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(t,n,e){for(var r,i,o=this,u=o._found||0,a=o.cells.length;!(i=o.cells[u]);)if(++u>=a)return null;var s=t-i.site[0],c=n-i.site[1],f=s*s+c*c;do{i=o.cells[r=u],u=null,i.halfedges.forEach(function(e){var r=o.edges[e],a=r.left;if(a!==i.site&&a||(a=r.right)){var s=t-a[0],c=n-a[1],l=s*s+c*c;l<f&&(f=l,u=a.index)}})}while(null!==u);return o._found=r,null==e||f<=e*e?i.site:null}};var dm=function(){function t(t){return new Ba(t.map(function(r,i){var o=[Math.round(n(r,i,t)/lm)*lm,Math.round(e(r,i,t)/lm)*lm];return o.index=i,o.data=r,o}),r)}var n=ra,e=ia,r=null;return t.polygons=function(n){return t(n).polygons()},t.links=function(n){return t(n).links()},t.triangles=function(n){return t(n).triangles()},t.x=function(e){return arguments.length?(n="function"==typeof e?e:em(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:em(+n),t):e},t.extent=function(n){return arguments.length?(r=null==n?null:[[+n[0][0],+n[0][1]],[+n[1][0],+n[1][1]]],t):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},t.size=function(n){return arguments.length?(r=null==n?null:[[0,0],[+n[0],+n[1]]],t):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},t},pm=function(t){return function(){return t}};ka.prototype={constructor:ka,scale:function(t){return 1===t?this:new ka(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new ka(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var vm=new ka(1,0,0);Ia.prototype=ka.prototype;var gm=function(){qs.preventDefault(),qs.stopImmediatePropagation()},ym=function(){function t(t){t.property("__zoom",La).on("wheel.zoom",a).on("mousedown.zoom",s).on("dblclick.zoom",c).filter(m).on("touchstart.zoom",f).on("touchmove.zoom",l).on("touchend.zoom touchcancel.zoom",h).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function n(t,n){return n=Math.max(_[0],Math.min(_[1],n)),n===t.k?t:new ka(n,t.x,t.y)}function e(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new ka(t.k,r,i)}function r(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function i(t,n,e){t.on("start.zoom",function(){o(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){o(this,arguments).end()}).tween("zoom",function(){var t=this,i=arguments,u=o(t,i),a=g.apply(t,i),s=null==e?r(a):"function"==typeof e?e.apply(t,i):e,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),f=t.__zoom,l="function"==typeof n?n.apply(t,i):n,h=S(f.invert(s).concat(c/f.k),l.invert(s).concat(c/l.k));return function(t){if(1===t)t=l;else{var n=h(t),e=c/n[2];t=new ka(e,s[0]-n[0]*e,s[1]-n[1]*e)}u.zoom(null,t)}})}function o(t,n,e){return!e&&t.__zooming||new u(t,n)}function u(t,n){this.that=t,this.args=n,this.active=0,this.extent=g.apply(t,n),this.taps=0}function a(){function t(){r.wheel=null,r.end()}if(v.apply(this,arguments)){var r=o(this,arguments),i=this.__zoom,u=Math.max(_[0],Math.min(_[1],i.k*Math.pow(2,b.apply(this,arguments)))),a=Ks(this);if(r.wheel)r.mouse[0][0]===a[0]&&r.mouse[0][1]===a[1]||(r.mouse[1]=i.invert(r.mouse[0]=a)),clearTimeout(r.wheel);else{if(i.k===u)return;r.mouse=[a,i.invert(a)],Tc(this),r.start()}gm(),r.wheel=setTimeout(t,E),r.zoom("mouse",y(e(n(i,u),r.mouse[0],r.mouse[1]),r.extent,x))}}function s(){function t(){if(gm(),!r.moved){var t=qs.clientX-a,n=qs.clientY-s;r.moved=t*t+n*n>C}r.zoom("mouse",y(e(r.that.__zoom,r.mouse[0]=Ks(r.that),r.mouse[1]),r.extent,x))}function n(){i.on("mousemove.zoom mouseup.zoom",null),mt(qs.view,r.moved),gm(),r.end()}if(!p&&v.apply(this,arguments)){var r=o(this,arguments,!0),i=Hs(qs.view).on("mousemove.zoom",t,!0).on("mouseup.zoom",n,!0),u=Ks(this),a=qs.clientX,s=qs.clientY;rc(qs.view),$a(),r.mouse=[u,this.__zoom.invert(u)],Tc(this),r.start()}}function c(){if(v.apply(this,arguments)){var r=this.__zoom,o=Ks(this),u=r.invert(o),a=r.k*(qs.shiftKey?.5:2),s=y(e(n(r,a),o,u),g.apply(this,arguments),x);gm(),w>0?Hs(this).transition().duration(w).call(i,s,o):Hs(this).call(t.transform,s)}}function f(){if(v.apply(this,arguments)){var t,n,e,r,i=qs.touches,u=i.length,a=o(this,arguments,qs.changedTouches.length===u);for($a(),n=0;n<u;++n)e=i[n],r=tc(this,i,e.identifier),r=[r,this.__zoom.invert(r),e.identifier],a.touch0?a.touch1||a.touch0[2]===r[2]||(a.touch1=r,a.taps=0):(a.touch0=r,t=!0,a.taps=1+!!d);d&&(d=clearTimeout(d)),t&&(a.taps<2&&(d=setTimeout(function(){d=null},O)),Tc(this),a.start())}}function l(){if(this.__zooming){var t,r,i,u,a=o(this,arguments),s=qs.changedTouches,c=s.length;for(gm(),d&&(d=clearTimeout(d)),a.taps=0,t=0;t<c;++t)r=s[t],i=tc(this,s,r.identifier),a.touch0&&a.touch0[2]===r.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===r.identifier&&(a.touch1[0]=i);if(r=a.that.__zoom,a.touch1){var f=a.touch0[0],l=a.touch0[1],h=a.touch1[0],p=a.touch1[1],v=(v=h[0]-f[0])*v+(v=h[1]-f[1])*v,g=(g=p[0]-l[0])*g+(g=p[1]-l[1])*g;r=n(r,Math.sqrt(v/g)),i=[(f[0]+h[0])/2,(f[1]+h[1])/2],u=[(l[0]+p[0])/2,(l[1]+p[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],u=a.touch0[1]}a.zoom("touch",y(e(r,i,u),a.extent,x))}}function h(){if(this.__zooming){var t,n,e=o(this,arguments),r=qs.changedTouches,i=r.length;for($a(),p&&clearTimeout(p),p=setTimeout(function(){p=null},O),t=0;t<i;++t)n=r[t],e.touch0&&e.touch0[2]===n.identifier?delete e.touch0:e.touch1&&e.touch1[2]===n.identifier&&delete e.touch1;if(e.touch1&&!e.touch0&&(e.touch0=e.touch1,delete e.touch1),e.touch0)e.touch0[1]=this.__zoom.invert(e.touch0[0]);else if(e.end(),2===e.taps){var u=Hs(this).on("dblclick.zoom");u&&u.apply(this,arguments)}}}var d,p,v=Ua,g=za,y=Va,b=qa,m=ja,_=[0,1/0],x=[[-1/0,-1/0],[1/0,1/0]],w=250,S=sc.y,M=ts("start","zoom","end"),O=500,E=150,C=0;return t.transform=function(t,n,e){var r=t.selection?t.selection():t;r.property("__zoom",La),t!==r?i(t,n,e):r.interrupt().each(function(){o(this,arguments).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()})},t.scaleBy=function(n,e,r){t.scaleTo(n,function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)},r)},t.scaleTo=function(i,o,u){t.transform(i,function(){var t=g.apply(this,arguments),i=this.__zoom,a=null==u?r(t):"function"==typeof u?u.apply(this,arguments):u,s=i.invert(a),c="function"==typeof o?o.apply(this,arguments):o;return y(e(n(i,c),a,s),t,x)},u)},t.translateBy=function(n,e,r){t.transform(n,function(){return y(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof r?r.apply(this,arguments):r),g.apply(this,arguments),x)})},t.translateTo=function(n,e,i,o){t.transform(n,function(){var t=g.apply(this,arguments),n=this.__zoom,u=null==o?r(t):"function"==typeof o?o.apply(this,arguments):o;return y(vm.translate(u[0],u[1]).scale(n.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof i?-i.apply(this,arguments):-i),t,x)},o)},u.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(n){ft(new Da(t,n,this.that.__zoom),M.apply,M,[n,this.that,this.args])}},t.wheelDelta=function(n){return arguments.length?(b="function"==typeof n?n:pm(+n),t):b},t.filter=function(n){return arguments.length?(v="function"==typeof n?n:pm(!!n),t):v},t.touchable=function(n){return arguments.length?(m="function"==typeof n?n:pm(!!n),t):m},t.extent=function(n){return arguments.length?(g="function"==typeof n?n:pm([[+n[0][0],+n[0][1]],[+n[1][0],+n[1][1]]]),t):g},t.scaleExtent=function(n){return arguments.length?(_[0]=+n[0],_[1]=+n[1],t):[_[0],_[1]]},t.translateExtent=function(n){return arguments.length?(x[0][0]=+n[0][0],x[1][0]=+n[1][0],x[0][1]=+n[0][1],x[1][1]=+n[1][1],t):[[x[0][0],x[0][1]],[x[1][0],x[1][1]]]},t.constrain=function(n){return arguments.length?(y=n,t):y},t.duration=function(n){return arguments.length?(w=+n,t):w},t.interpolate=function(n){return arguments.length?(S=n,t):S},t.on=function(){var n=M.on.apply(M,arguments);return n===M?t:n},t.clickDistance=function(n){return arguments.length?(C=(n=+n)*n,t):Math.sqrt(C)},t};e.d(n,"version",function(){return"5.16.0"}),e.d(n,"bisect",function(){return Ga.b}),e.d(n,"bisectRight",function(){return Ga.d}),e.d(n,"bisectLeft",function(){return Ga.c}),e.d(n,"ascending",function(){return Ga.a}),e.d(n,"bisector",function(){return Ga.e}),e.d(n,"cross",function(){return Ga.f}),e.d(n,"descending",function(){return Ga.g}),e.d(n,"deviation",function(){return Ga.h}),e.d(n,"extent",function(){return Ga.i}),e.d(n,"histogram",function(){return Ga.j}),e.d(n,"thresholdFreedmanDiaconis",function(){return Ga.w}),e.d(n,"thresholdScott",function(){return Ga.x}),e.d(n,"thresholdSturges",function(){return Ga.y}),e.d(n,"max",function(){return Ga.k}),e.d(n,"mean",function(){return Ga.l}),e.d(n,"median",function(){return Ga.m}),e.d(n,"merge",function(){return Ga.n}),e.d(n,"min",function(){return Ga.o}),e.d(n,"pairs",function(){return Ga.p}),e.d(n,"permute",function(){return Ga.q}),e.d(n,"quantile",function(){return Ga.r}),e.d(n,"range",function(){return Ga.s}),e.d(n,"scan",function(){return Ga.t}),e.d(n,"shuffle",function(){return Ga.u}),e.d(n,"sum",function(){return Ga.v}),e.d(n,"ticks",function(){return Ga.B}),e.d(n,"tickIncrement",function(){return Ga.z}),e.d(n,"tickStep",function(){return Ga.A}),e.d(n,"transpose",function(){return Ga.C}),e.d(n,"variance",function(){return Ga.D}),e.d(n,"zip",function(){return Ga.E}),e.d(n,"axisTop",function(){return c}),e.d(n,"axisRight",function(){return f}),e.d(n,"axisBottom",function(){return l}),e.d(n,"axisLeft",function(){return h}),e.d(n,"brush",function(){return Vf}),e.d(n,"brushX",function(){return Kn}),e.d(n,"brushY",function(){return Jn}),e.d(n,"brushSelection",function(){return Zn}),e.d(n,"chord",function(){return Zf}),e.d(n,"ribbon",function(){return il}),e.d(n,"nest",function(){return ol.d}),e.d(n,"set",function(){return ol.e}),e.d(n,"map",function(){return ol.c}),e.d(n,"keys",function(){return ol.b}),e.d(n,"values",function(){return ol.f}),e.d(n,"entries",function(){return ol.a}),e.d(n,"color",function(){return Rc.a}),e.d(n,"rgb",function(){return Rc.h}),e.d(n,"hsl",function(){return Rc.e}),e.d(n,"lab",function(){return Rc.f}),e.d(n,"hcl",function(){return Rc.d}),e.d(n,"lch",function(){return Rc.g}),e.d(n,"gray",function(){return Rc.c}),e.d(n,"cubehelix",function(){return Rc.b}),e.d(n,"contours",function(){return pl}),e.d(n,"contourDensity",function(){return vl}),e.d(n,"dispatch",function(){return ts}),e.d(n,"drag",function(){return ac}),e.d(n,"dragDisable",function(){return rc}),e.d(n,"dragEnable",function(){return mt}),e.d(n,"dsvFormat",function(){return xl}),e.d(n,"csvParse",function(){return Sl}),e.d(n,"csvParseRows",function(){return Ml}),e.d(n,"csvFormat",function(){return Ol}),e.d(n,"csvFormatBody",function(){return El}),e.d(n,"csvFormatRows",function(){return Cl}),e.d(n,"csvFormatRow",function(){return Al}),e.d(n,"csvFormatValue",function(){return Nl}),e.d(n,"tsvParse",function(){return Fl}),e.d(n,"tsvParseRows",function(){return Pl}),e.d(n,"tsvFormat",function(){return Rl}),e.d(n,"tsvFormatBody",function(){return Bl}),e.d(n,"tsvFormatRows",function(){return Dl}),e.d(n,"tsvFormatRow",function(){return kl}),e.d(n,"tsvFormatValue",function(){return Il}),e.d(n,"autoType",function(){return Me}),e.d(n,"easeLinear",function(){return _n}),e.d(n,"easeQuad",function(){return Sn}),e.d(n,"easeQuadIn",function(){return xn}),e.d(n,"easeQuadOut",function(){return wn}),e.d(n,"easeQuadInOut",function(){return Sn}),e.d(n,"easeCubic",function(){return En}),e.d(n,"easeCubicIn",function(){return Mn}),e.d(n,"easeCubicOut",function(){return On}),e.d(n,"easeCubicInOut",function(){return En}),e.d(n,"easePoly",function(){return of}),e.d(n,"easePolyIn",function(){return ef}),e.d(n,"easePolyOut",function(){return rf}),e.d(n,"easePolyInOut",function(){return of}),e.d(n,"easeSin",function(){return Nn}),e.d(n,"easeSinIn",function(){return Cn}),e.d(n,"easeSinOut",function(){return An}),e.d(n,"easeSinInOut",function(){return Nn}),e.d(n,"easeExp",function(){return Rn}),e.d(n,"easeExpIn",function(){return Fn}),e.d(n,"easeExpOut",function(){return Pn}),e.d(n,"easeExpInOut",function(){return Rn}),e.d(n,"easeCircle",function(){return kn}),e.d(n,"easeCircleIn",function(){return Bn}),e.d(n,"easeCircleOut",function(){return Dn}),e.d(n,"easeCircleInOut",function(){return kn}),e.d(n,"easeBounce",function(){return $n}),e.d(n,"easeBounceIn",function(){return In}),e.d(n,"easeBounceOut",function(){return $n}),e.d(n,"easeBounceInOut",function(){return Un}),e.d(n,"easeBack",function(){return _f}),e.d(n,"easeBackIn",function(){return bf}),e.d(n,"easeBackOut",function(){return mf}),e.d(n,"easeBackInOut",function(){return _f}),e.d(n,"easeElastic",function(){return Sf}),e.d(n,"easeElasticIn",function(){return wf}),e.d(n,"easeElasticOut",function(){return Sf}),e.d(n,"easeElasticInOut",function(){return Mf}),e.d(n,"blob",function(){return Ul}),e.d(n,"buffer",function(){return zl}),e.d(n,"dsv",function(){return Ne}),e.d(n,"csv",function(){return ql}),e.d(n,"tsv",function(){return jl}),e.d(n,"image",function(){return Vl}),e.d(n,"json",function(){return Gl}),e.d(n,"text",function(){return Ll}),e.d(n,"xml",function(){return Ql}),e.d(n,"html",function(){return Hl}),e.d(n,"svg",function(){return Yl}),e.d(n,"forceCenter",function(){return Wl}),e.d(n,"forceCollide",function(){return hh}),e.d(n,"forceLink",function(){return dh}),e.d(n,"forceManyBody",function(){return yh}),e.d(n,"forceRadial",function(){return bh}),e.d(n,"forceSimulation",function(){return gh}),e.d(n,"forceX",function(){return mh}),e.d(n,"forceY",function(){return _h}),e.d(n,"formatDefaultLocale",function(){return xh.c}),e.d(n,"format",function(){return xh.b}),e.d(n,"formatPrefix",function(){return xh.e}),e.d(n,"formatLocale",function(){return xh.d}),e.d(n,"formatSpecifier",function(){return xh.f}),e.d(n,"FormatSpecifier",function(){return xh.a}),e.d(n,"precisionFixed",function(){return xh.g}),e.d(n,"precisionPrefix",function(){return xh.h}),e.d(n,"precisionRound",function(){return xh.i}),e.d(n,"geoArea",function(){return Cd}),e.d(n,"geoBounds",function(){return Td}),e.d(n,"geoCentroid",function(){return Pd}),e.d(n,"geoCircle",function(){return Hd}),e.d(n,"geoClipAntimeridian",function(){return tp}),e.d(n,"geoClipCircle",function(){return np}),e.d(n,"geoClipExtent",function(){return op}),e.d(n,"geoClipRectangle",function(){return Hr}),e.d(n,"geoContains",function(){return pp}),e.d(n,"geoDistance",function(){return lp}),e.d(n,"geoGraticule",function(){return ui}),e.d(n,"geoGraticule10",function(){return ai}),e.d(n,"geoInterpolate",function(){return vp}),e.d(n,"geoLength",function(){return sp}),e.d(n,"geoPath",function(){return Qp}),e.d(n,"geoAlbers",function(){return Jp}),e.d(n,"geoAlbersUsa",function(){return tv}),e.d(n,"geoAzimuthalEqualArea",function(){return ev}),e.d(n,"geoAzimuthalEqualAreaRaw",function(){return nv}),e.d(n,"geoAzimuthalEquidistant",function(){return iv}),e.d(n,"geoAzimuthalEquidistantRaw",function(){return rv}),e.d(n,"geoConicConformal",function(){return uv}),e.d(n,"geoConicConformalRaw",function(){return Xi}),e.d(n,"geoConicEqualArea",function(){return Kp}),e.d(n,"geoConicEqualAreaRaw",function(){return ji}),e.d(n,"geoConicEquidistant",function(){return sv}),e.d(n,"geoConicEquidistantRaw",function(){return Ki}),e.d(n,"geoEqualEarth",function(){return pv}),e.d(n,"geoEqualEarthRaw",function(){return Ji}),e.d(n,"geoEquirectangular",function(){return av}),e.d(n,"geoEquirectangularRaw",function(){return Zi}),e.d(n,"geoGnomonic",function(){return vv}),e.d(n,"geoGnomonicRaw",function(){return to}),e.d(n,"geoIdentity",function(){return gv}),e.d(n,"geoProjection",function(){return Ui}),e.d(n,"geoProjectionMutator",function(){return zi}),e.d(n,"geoMercator",function(){return ov}),e.d(n,"geoMercatorRaw",function(){return Hi}),e.d(n,"geoNaturalEarth1",function(){return yv}),e.d(n,"geoNaturalEarth1Raw",function(){return no}),e.d(n,"geoOrthographic",function(){return bv}),e.d(n,"geoOrthographicRaw",function(){return eo}),e.d(n,"geoStereographic",function(){return mv}),e.d(n,"geoStereographicRaw",function(){return ro}),e.d(n,"geoTransverseMercator",function(){return _v}),e.d(n,"geoTransverseMercatorRaw",function(){return io}),e.d(n,"geoRotation",function(){return Qd}),e.d(n,"geoStream",function(){return Sd}),e.d(n,"geoTransform",function(){return Hp}),e.d(n,"cluster",function(){return xv}),e.d(n,"hierarchy",function(){return vo}),e.d(n,"pack",function(){return Iv}),e.d(n,"packSiblings",function(){return Dv}),e.d(n,"packEnclose",function(){return Bv}),e.d(n,"partition",function(){return zv}),e.d(n,"stratify",function(){return Vv}),e.d(n,"tree",function(){return Gv});e.d(n,"treemap",function(){return Wv}),e.d(n,"treemapBinary",function(){return Xv}),e.d(n,"treemapDice",function(){return Uv}),e.d(n,"treemapSlice",function(){return Qv}),e.d(n,"treemapSliceDice",function(){return Zv}),e.d(n,"treemapSquarify",function(){return Yv}),e.d(n,"treemapResquarify",function(){return Kv}),e.d(n,"interpolate",function(){return sc.a}),e.d(n,"interpolateArray",function(){return sc.b}),e.d(n,"interpolateBasis",function(){return sc.c}),e.d(n,"interpolateBasisClosed",function(){return sc.d}),e.d(n,"interpolateDate",function(){return sc.g}),e.d(n,"interpolateDiscrete",function(){return sc.h}),e.d(n,"interpolateHue",function(){return sc.m}),e.d(n,"interpolateNumber",function(){return sc.o}),e.d(n,"interpolateNumberArray",function(){return sc.p}),e.d(n,"interpolateObject",function(){return sc.q}),e.d(n,"interpolateRound",function(){return sc.u}),e.d(n,"interpolateString",function(){return sc.v}),e.d(n,"interpolateTransformCss",function(){return sc.w}),e.d(n,"interpolateTransformSvg",function(){return sc.x}),e.d(n,"interpolateZoom",function(){return sc.y}),e.d(n,"interpolateRgb",function(){return sc.r}),e.d(n,"interpolateRgbBasis",function(){return sc.s}),e.d(n,"interpolateRgbBasisClosed",function(){return sc.t}),e.d(n,"interpolateHsl",function(){return sc.k}),e.d(n,"interpolateHslLong",function(){return sc.l}),e.d(n,"interpolateLab",function(){return sc.n}),e.d(n,"interpolateHcl",function(){return sc.i}),e.d(n,"interpolateHclLong",function(){return sc.j}),e.d(n,"interpolateCubehelix",function(){return sc.e}),e.d(n,"interpolateCubehelixLong",function(){return sc.f}),e.d(n,"piecewise",function(){return sc.z}),e.d(n,"quantize",function(){return sc.A}),e.d(n,"path",function(){return rl}),e.d(n,"polygonArea",function(){return Jv}),e.d(n,"polygonCentroid",function(){return tg}),e.d(n,"polygonHull",function(){return eg}),e.d(n,"polygonContains",function(){return rg}),e.d(n,"polygonLength",function(){return ig}),e.d(n,"quadtree",function(){return Ie}),e.d(n,"randomUniform",function(){return ug}),e.d(n,"randomNormal",function(){return ag}),e.d(n,"randomLogNormal",function(){return sg}),e.d(n,"randomBates",function(){return fg}),e.d(n,"randomIrwinHall",function(){return cg}),e.d(n,"randomExponential",function(){return lg}),e.d(n,"scaleBand",function(){return hg.scaleBand}),e.d(n,"scalePoint",function(){return hg.scalePoint}),e.d(n,"scaleIdentity",function(){return hg.scaleIdentity}),e.d(n,"scaleLinear",function(){return hg.scaleLinear}),e.d(n,"scaleLog",function(){return hg.scaleLog}),e.d(n,"scaleSymlog",function(){return hg.scaleSymlog}),e.d(n,"scaleOrdinal",function(){return hg.scaleOrdinal}),e.d(n,"scaleImplicit",function(){return hg.scaleImplicit}),e.d(n,"scalePow",function(){return hg.scalePow}),e.d(n,"scaleSqrt",function(){return hg.scaleSqrt}),e.d(n,"scaleQuantile",function(){return hg.scaleQuantile}),e.d(n,"scaleQuantize",function(){return hg.scaleQuantize}),e.d(n,"scaleThreshold",function(){return hg.scaleThreshold}),e.d(n,"scaleTime",function(){return hg.scaleTime}),e.d(n,"scaleUtc",function(){return hg.scaleUtc}),e.d(n,"scaleSequential",function(){return hg.scaleSequential}),e.d(n,"scaleSequentialLog",function(){return hg.scaleSequentialLog}),e.d(n,"scaleSequentialPow",function(){return hg.scaleSequentialPow}),e.d(n,"scaleSequentialSqrt",function(){return hg.scaleSequentialSqrt}),e.d(n,"scaleSequentialSymlog",function(){return hg.scaleSequentialSymlog}),e.d(n,"scaleSequentialQuantile",function(){return hg.scaleSequentialQuantile}),e.d(n,"scaleDiverging",function(){return hg.scaleDiverging}),e.d(n,"scaleDivergingLog",function(){return hg.scaleDivergingLog}),e.d(n,"scaleDivergingPow",function(){return hg.scaleDivergingPow}),e.d(n,"scaleDivergingSqrt",function(){return hg.scaleDivergingSqrt}),e.d(n,"scaleDivergingSymlog",function(){return hg.scaleDivergingSymlog}),e.d(n,"tickFormat",function(){return hg.tickFormat}),e.d(n,"schemeCategory10",function(){return pg}),e.d(n,"schemeAccent",function(){return vg}),e.d(n,"schemeDark2",function(){return gg}),e.d(n,"schemePaired",function(){return yg}),e.d(n,"schemePastel1",function(){return bg}),e.d(n,"schemePastel2",function(){return mg}),e.d(n,"schemeSet1",function(){return _g}),e.d(n,"schemeSet2",function(){return xg}),e.d(n,"schemeSet3",function(){return wg}),e.d(n,"schemeTableau10",function(){return Sg}),e.d(n,"interpolateBrBG",function(){return Eg}),e.d(n,"schemeBrBG",function(){return Og}),e.d(n,"interpolatePRGn",function(){return Ag}),e.d(n,"schemePRGn",function(){return Cg}),e.d(n,"interpolatePiYG",function(){return Tg}),e.d(n,"schemePiYG",function(){return Ng}),e.d(n,"interpolatePuOr",function(){return Pg}),e.d(n,"schemePuOr",function(){return Fg}),e.d(n,"interpolateRdBu",function(){return Bg}),e.d(n,"schemeRdBu",function(){return Rg}),e.d(n,"interpolateRdGy",function(){return kg}),e.d(n,"schemeRdGy",function(){return Dg}),e.d(n,"interpolateRdYlBu",function(){return $g}),e.d(n,"schemeRdYlBu",function(){return Ig}),e.d(n,"interpolateRdYlGn",function(){return zg}),e.d(n,"schemeRdYlGn",function(){return Ug}),e.d(n,"interpolateSpectral",function(){return qg}),e.d(n,"schemeSpectral",function(){return Lg}),e.d(n,"interpolateBuGn",function(){return Vg}),e.d(n,"schemeBuGn",function(){return jg}),e.d(n,"interpolateBuPu",function(){return Qg}),e.d(n,"schemeBuPu",function(){return Gg}),e.d(n,"interpolateGnBu",function(){return Yg}),e.d(n,"schemeGnBu",function(){return Hg}),e.d(n,"interpolateOrRd",function(){return Xg}),e.d(n,"schemeOrRd",function(){return Wg}),e.d(n,"interpolatePuBuGn",function(){return Kg}),e.d(n,"schemePuBuGn",function(){return Zg}),e.d(n,"interpolatePuBu",function(){return ty}),e.d(n,"schemePuBu",function(){return Jg}),e.d(n,"interpolatePuRd",function(){return ey}),e.d(n,"schemePuRd",function(){return ny}),e.d(n,"interpolateRdPu",function(){return iy}),e.d(n,"schemeRdPu",function(){return ry}),e.d(n,"interpolateYlGnBu",function(){return uy}),e.d(n,"schemeYlGnBu",function(){return oy}),e.d(n,"interpolateYlGn",function(){return sy}),e.d(n,"schemeYlGn",function(){return ay}),e.d(n,"interpolateYlOrBr",function(){return fy}),e.d(n,"schemeYlOrBr",function(){return cy}),e.d(n,"interpolateYlOrRd",function(){return hy}),e.d(n,"schemeYlOrRd",function(){return ly}),e.d(n,"interpolateBlues",function(){return py}),e.d(n,"schemeBlues",function(){return dy}),e.d(n,"interpolateGreens",function(){return gy}),e.d(n,"schemeGreens",function(){return vy}),e.d(n,"interpolateGreys",function(){return by}),e.d(n,"schemeGreys",function(){return yy}),e.d(n,"interpolatePurples",function(){return _y}),e.d(n,"schemePurples",function(){return my}),e.d(n,"interpolateReds",function(){return wy}),e.d(n,"schemeReds",function(){return xy}),e.d(n,"interpolateOranges",function(){return My}),e.d(n,"schemeOranges",function(){return Sy}),e.d(n,"interpolateCividis",function(){return Oy}),e.d(n,"interpolateCubehelixDefault",function(){return Ey}),e.d(n,"interpolateRainbow",function(){return Ty}),e.d(n,"interpolateWarm",function(){return Cy}),e.d(n,"interpolateCool",function(){return Ay}),e.d(n,"interpolateSinebow",function(){return By}),e.d(n,"interpolateTurbo",function(){return Dy}),e.d(n,"interpolateViridis",function(){return ky}),e.d(n,"interpolateMagma",function(){return Iy}),e.d(n,"interpolateInferno",function(){return $y}),e.d(n,"interpolatePlasma",function(){return Uy}),e.d(n,"create",function(){return Ys}),e.d(n,"creator",function(){return is}),e.d(n,"local",function(){return gt}),e.d(n,"matcher",function(){return cs}),e.d(n,"mouse",function(){return Ks}),e.d(n,"namespace",function(){return rs}),e.d(n,"namespaces",function(){return es}),e.d(n,"clientPoint",function(){return Zs}),e.d(n,"select",function(){return Hs}),e.d(n,"selectAll",function(){return Js}),e.d(n,"selection",function(){return Qs}),e.d(n,"selector",function(){return os}),e.d(n,"selectorAll",function(){return as}),e.d(n,"style",function(){return D}),e.d(n,"touch",function(){return tc}),e.d(n,"touches",function(){return nc}),e.d(n,"window",function(){return As}),e.d(n,"event",function(){return qs}),e.d(n,"customEvent",function(){return ft}),e.d(n,"arc",function(){return Ky}),e.d(n,"area",function(){return nb}),e.d(n,"line",function(){return tb}),e.d(n,"pie",function(){return ib}),e.d(n,"areaRadial",function(){return ab}),e.d(n,"radialArea",function(){return ab}),e.d(n,"lineRadial",function(){return ub}),e.d(n,"radialLine",function(){return ub}),e.d(n,"pointRadial",function(){return sb}),e.d(n,"linkHorizontal",function(){return Su}),e.d(n,"linkVertical",function(){return Mu}),e.d(n,"linkRadial",function(){return Ou}),e.d(n,"symbol",function(){return Cb}),e.d(n,"symbols",function(){return Eb}),e.d(n,"symbolCircle",function(){return fb}),e.d(n,"symbolCross",function(){return lb}),e.d(n,"symbolDiamond",function(){return pb}),e.d(n,"symbolSquare",function(){return mb}),e.d(n,"symbolStar",function(){return bb}),e.d(n,"symbolTriangle",function(){return xb}),e.d(n,"symbolWye",function(){return Ob}),e.d(n,"curveBasisClosed",function(){return Tb}),e.d(n,"curveBasisOpen",function(){return Fb}),e.d(n,"curveBasis",function(){return Nb}),e.d(n,"curveBundle",function(){return Pb}),e.d(n,"curveCardinalClosed",function(){return Bb}),e.d(n,"curveCardinalOpen",function(){return Db}),e.d(n,"curveCardinal",function(){return Rb}),e.d(n,"curveCatmullRomClosed",function(){return Ib}),e.d(n,"curveCatmullRomOpen",function(){return $b}),e.d(n,"curveCatmullRom",function(){return kb}),e.d(n,"curveLinearClosed",function(){return Ub});e.d(n,"curveLinear",function(){return Jy}),e.d(n,"curveMonotoneX",function(){return Hu}),e.d(n,"curveMonotoneY",function(){return Yu}),e.d(n,"curveNatural",function(){return zb}),e.d(n,"curveStep",function(){return Lb}),e.d(n,"curveStepAfter",function(){return Ju}),e.d(n,"curveStepBefore",function(){return Ku}),e.d(n,"stack",function(){return Vb}),e.d(n,"stackOffsetExpand",function(){return Gb}),e.d(n,"stackOffsetDiverging",function(){return Qb}),e.d(n,"stackOffsetNone",function(){return qb}),e.d(n,"stackOffsetSilhouette",function(){return Hb}),e.d(n,"stackOffsetWiggle",function(){return Yb}),e.d(n,"stackOrderAppearance",function(){return Wb}),e.d(n,"stackOrderAscending",function(){return Xb}),e.d(n,"stackOrderDescending",function(){return Zb}),e.d(n,"stackOrderInsideOut",function(){return Kb}),e.d(n,"stackOrderNone",function(){return jb}),e.d(n,"stackOrderReverse",function(){return Jb}),e.d(n,"timeInterval",function(){return tm.g}),e.d(n,"timeMillisecond",function(){return tm.h}),e.d(n,"timeMilliseconds",function(){return tm.i}),e.d(n,"utcMillisecond",function(){return tm.L}),e.d(n,"utcMilliseconds",function(){return tm.M}),e.d(n,"timeSecond",function(){return tm.r}),e.d(n,"timeSeconds",function(){return tm.s}),e.d(n,"utcSecond",function(){return tm.V}),e.d(n,"utcSeconds",function(){return tm.W}),e.d(n,"timeMinute",function(){return tm.j}),e.d(n,"timeMinutes",function(){return tm.k}),e.d(n,"timeHour",function(){return tm.e}),e.d(n,"timeHours",function(){return tm.f}),e.d(n,"timeDay",function(){return tm.a}),e.d(n,"timeDays",function(){return tm.b}),e.d(n,"timeWeek",function(){return tm.B}),e.d(n,"timeWeeks",function(){return tm.C}),e.d(n,"timeSunday",function(){return tm.t}),e.d(n,"timeSundays",function(){return tm.u}),e.d(n,"timeMonday",function(){return tm.l}),e.d(n,"timeMondays",function(){return tm.m}),e.d(n,"timeTuesday",function(){return tm.x}),e.d(n,"timeTuesdays",function(){return tm.y}),e.d(n,"timeWednesday",function(){return tm.z}),e.d(n,"timeWednesdays",function(){return tm.A}),e.d(n,"timeThursday",function(){return tm.v}),e.d(n,"timeThursdays",function(){return tm.w}),e.d(n,"timeFriday",function(){return tm.c}),e.d(n,"timeFridays",function(){return tm.d}),e.d(n,"timeSaturday",function(){return tm.p}),e.d(n,"timeSaturdays",function(){return tm.q}),e.d(n,"timeMonth",function(){return tm.n}),e.d(n,"timeMonths",function(){return tm.o}),e.d(n,"timeYear",function(){return tm.D}),e.d(n,"timeYears",function(){return tm.E}),e.d(n,"utcMinute",function(){return tm.N}),e.d(n,"utcMinutes",function(){return tm.O}),e.d(n,"utcHour",function(){return tm.J}),e.d(n,"utcHours",function(){return tm.K}),e.d(n,"utcDay",function(){return tm.F}),e.d(n,"utcDays",function(){return tm.G}),e.d(n,"utcWeek",function(){return tm._5}),e.d(n,"utcWeeks",function(){return tm._6}),e.d(n,"utcSunday",function(){return tm.X}),e.d(n,"utcSundays",function(){return tm.Y}),e.d(n,"utcMonday",function(){return tm.P}),e.d(n,"utcMondays",function(){return tm.Q}),e.d(n,"utcTuesday",function(){return tm._1}),e.d(n,"utcTuesdays",function(){return tm._2}),e.d(n,"utcWednesday",function(){return tm._3}),e.d(n,"utcWednesdays",function(){return tm._4}),e.d(n,"utcThursday",function(){return tm.Z}),e.d(n,"utcThursdays",function(){return tm._0}),e.d(n,"utcFriday",function(){return tm.H}),e.d(n,"utcFridays",function(){return tm.I}),e.d(n,"utcSaturday",function(){return tm.T}),e.d(n,"utcSaturdays",function(){return tm.U}),e.d(n,"utcMonth",function(){return tm.R}),e.d(n,"utcMonths",function(){return tm.S}),e.d(n,"utcYear",function(){return tm._7}),e.d(n,"utcYears",function(){return tm._8}),e.d(n,"timeFormatDefaultLocale",function(){return nm.d}),e.d(n,"timeFormat",function(){return nm.c}),e.d(n,"timeParse",function(){return nm.f}),e.d(n,"utcFormat",function(){return nm.g}),e.d(n,"utcParse",function(){return nm.h}),e.d(n,"timeFormatLocale",function(){return nm.e}),e.d(n,"isoFormat",function(){return nm.a}),e.d(n,"isoParse",function(){return nm.b}),e.d(n,"now",function(){return Ot}),e.d(n,"timer",function(){return At}),e.d(n,"timerFlush",function(){return Nt}),e.d(n,"timeout",function(){return bc}),e.d(n,"interval",function(){return mc}),e.d(n,"transition",function(){return bn}),e.d(n,"active",function(){return Af}),e.d(n,"interrupt",function(){return Tc}),e.d(n,"voronoi",function(){return dm}),e.d(n,"zoom",function(){return ym}),e.d(n,"zoomTransform",function(){return Ia}),e.d(n,"zoomIdentity",function(){return vm})},619:function(t,n,e){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])};return function(n,e){function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}();Object.defineProperty(n,"__esModule",{value:!0});var i=e(216),o=e(199),u=e(0),a=function(t){function n(n,e,r,i){var o=t.call(this,n,e,r,i)||this;return o.coveoRoot=n,o.ID=e,o.facetSliders=[],o.registerOnOpenHandler(),o}return r(n,t),n.init=function(t,e,r){i.ResponsiveFacetColumn.init(n,t,e,r,o.FacetSlider.ID)},n.prototype.registerComponent=function(n){return t.prototype.registerComponent.call(this,n),n instanceof o.FacetSlider&&(this.facetSliders.push(n),!0)},n.prototype.registerOnOpenHandler=function(){this.dropdown.registerOnOpenHandler(this.drawFacetSliderGraphs,this)},n.prototype.drawFacetSliderGraphs=function(){u.each(this.facetSliders,function(t){return t.drawDelayedGraphData()})},n}(i.ResponsiveFacetColumn);n.ResponsiveFacetSlider=a},65:function(t,n,e){"use strict";function r(t,n,e,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*e+(1+3*t+3*o-3*u)*r+u*i)/6}function i(t,n){return function(e){return t+e*n}}function o(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function u(t,n){var e=n-t;return e?i(t,e>180||e<-180?e-360*Math.round(e/360):e):P(isNaN(t)?n:t)}function a(t){return 1==(t=+t)?s:function(n,e){return e-n?o(n,e,t):P(isNaN(n)?e:n)}}function s(t,n){var e=n-t;return e?i(t,e):P(isNaN(t)?n:t)}function c(t){return function(n){var e,r,i=n.length,o=new Array(i),u=new Array(i),a=new Array(i);for(e=0;e<i;++e)r=Object(N.h)(n[e]),o[e]=r.r||0,u[e]=r.g||0,a[e]=r.b||0;return o=t(o),u=t(u),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=u(t),r.b=a(t),r+""}}}function f(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function l(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),u=new Array(r);for(e=0;e<i;++e)o[e]=V(t[e],n[e]);for(;e<r;++e)u[e]=n[e];return function(t){for(e=0;e<i;++e)u[e]=o[e](t);return u}}function h(t){return function(){return t}}function d(t){return function(n){return t(n)+""}}function p(t){return"none"===t?W:(O||(O=document.createElement("DIV"),E=document.documentElement,C=document.defaultView),O.style.transform=t,t=C.getComputedStyle(E.appendChild(O),null).getPropertyValue("transform"),E.removeChild(O),t=t.slice(7,-1).split(","),X(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function v(t){return null==t?W:(A||(A=document.createElementNS("http://www.w3.org/2000/svg","g")),A.setAttribute("transform",t),(t=A.transform.baseVal.consolidate())?(t=t.matrix,X(t.a,t.b,t.c,t.d,t.e,t.f)):W)}function g(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}function o(t,r,i,o,u,a){if(t!==i||r!==o){var s=u.push("translate(",null,n,null,e);a.push({i:s-4,x:U(t,i)},{i:s-2,x:U(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}function u(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:U(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}function a(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:U(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}function s(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:U(t,e)},{i:a-2,x:U(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}return function(n,e){var r=[],i=[];return n=t(n),e=t(e),o(n.translateX,n.translateY,e.translateX,e.translateY,r,i),u(n.rotate,e.rotate,r,i),a(n.skewX,e.skewX,r,i),s(n.scaleX,n.scaleY,e.scaleX,e.scaleY,r,i),n=e=null,function(t){for(var n,e=-1,o=i.length;++e<o;)r[(n=i[e]).i]=n.x(t);return r.join("")}}}function y(t){return((t=Math.exp(t))+1/t)/2}function b(t){return((t=Math.exp(t))-1/t)/2}function m(t){return((t=Math.exp(2*t))-1)/(t+1)}function _(t){return function(n,e){var r=t((n=Object(N.e)(n)).h,(e=Object(N.e)(e)).h),i=s(n.s,e.s),o=s(n.l,e.l),u=s(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=o(t),n.opacity=u(t),n+""}}}function x(t,n){var e=s((t=Object(N.f)(t)).l,(n=Object(N.f)(n)).l),r=s(t.a,n.a),i=s(t.b,n.b),o=s(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=o(n),t+""}}function w(t){return function(n,e){var r=t((n=Object(N.d)(n)).h,(e=Object(N.d)(e)).h),i=s(n.c,e.c),o=s(n.l,e.l),u=s(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=o(t),n.opacity=u(t),n+""}}}function S(t){return function n(e){function r(n,r){var i=t((n=Object(N.b)(n)).h,(r=Object(N.b)(r)).h),o=s(n.s,r.s),u=s(n.l,r.l),a=s(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=u(Math.pow(t,e)),n.opacity=a(t),n+""}}return e=+e,r.gamma=n,r}(1)}function M(t,n){for(var e=0,r=n.length-1,i=n[0],o=new Array(r<0?0:r);e<r;)o[e]=t(i,i=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[n](t-n)}}var O,E,C,A,N=e(54),T=function(t){var n=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),o=t[i],u=t[i+1],a=i>0?t[i-1]:2*o-u,s=i<n-1?t[i+2]:2*u-o;return r((e-i/n)*n,a,o,u,s)}},F=function(t){var n=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*n),o=t[(i+n-1)%n],u=t[i%n],a=t[(i+1)%n],s=t[(i+2)%n];return r((e-i/n)*n,o,u,a,s)}},P=function(t){return function(){return t}},R=function t(n){function e(t,n){var e=r((t=Object(N.h)(t)).r,(n=Object(N.h)(n)).r),i=r(t.g,n.g),o=r(t.b,n.b),u=s(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}var r=a(n);return e.gamma=t,e}(1),B=c(T),D=c(F),k=function(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}},I=function(t,n){return(f(n)?k:l)(t,n)},$=function(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}},U=function(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}},z=function(t,n){var e,r={},i={};null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={});for(e in n)e in t?r[e]=V(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},L=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,q=new RegExp(L.source,"g"),j=function(t,n){var e,r,i,o=L.lastIndex=q.lastIndex=0,u=-1,a=[],s=[];for(t+="",n+="";(e=L.exec(t))&&(r=q.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,s.push({i:u,x:U(e,r)})),o=q.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?s[0]?d(s[0].x):h(n):(n=s.length,function(t){for(var e,r=0;r<n;++r)a[(e=s[r]).i]=e.x(t);return a.join("")})},V=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?P(n):("number"===r?U:"string"===r?(e=Object(N.a)(n))?(n=e,R):j:n instanceof N.a?R:n instanceof Date?$:f(n)?k:Array.isArray(n)?l:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?z:U)(t,n)},G=function(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}},Q=function(t,n){var e=u(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}},H=function(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}},Y=180/Math.PI,W={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},X=function(t,n,e,r,i,o){var u,a,s;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,s/=a),t*r<n*e&&(t=-t,n=-n,s=-s,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*Y,skewX:Math.atan(s)*Y,scaleX:u,scaleY:a}},Z=g(p,"px, ","px)","deg)"),K=g(v,", ",")",")"),J=Math.SQRT2,tt=function(t,n){var e,r,i=t[0],o=t[1],u=t[2],a=n[0],s=n[1],c=n[2],f=a-i,l=s-o,h=f*f+l*l;if(h<1e-12)r=Math.log(c/u)/J,e=function(t){return[i+t*f,o+t*l,u*Math.exp(J*t*r)]};else{var d=Math.sqrt(h),p=(c*c-u*u+4*h)/(2*u*2*d),v=(c*c-u*u-4*h)/(2*c*2*d),g=Math.log(Math.sqrt(p*p+1)-p),_=Math.log(Math.sqrt(v*v+1)-v);r=(_-g)/J,e=function(t){var n=t*r,e=y(g),a=u/(2*d)*(e*m(J*n+g)-b(g));return[i+a*f,o+a*l,u*e/y(J*n+g)]}}return e.duration=1e3*r,e},nt=_(u),et=_(s),rt=w(u),it=w(s),ot=S(u),ut=S(s),at=function(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e};e.d(n,"a",function(){return V}),e.d(n,"b",function(){return I}),e.d(n,"c",function(){return T}),e.d(n,"d",function(){return F}),e.d(n,"g",function(){return $}),e.d(n,"h",function(){return G}),e.d(n,"m",function(){return Q}),e.d(n,"o",function(){return U}),e.d(n,"p",function(){return k}),e.d(n,"q",function(){return z}),e.d(n,"u",function(){return H}),e.d(n,"v",function(){return j}),e.d(n,"w",function(){return Z}),e.d(n,"x",function(){return K}),e.d(n,"y",function(){return tt}),e.d(n,"r",function(){return R}),e.d(n,"s",function(){return B}),e.d(n,"t",function(){return D}),e.d(n,"k",function(){return nt}),e.d(n,"l",function(){return et}),e.d(n,"n",function(){return x}),e.d(n,"i",function(){return rt}),e.d(n,"j",function(){return it}),e.d(n,"e",function(){return ot}),e.d(n,"f",function(){return ut}),e.d(n,"z",function(){return M}),e.d(n,"A",function(){return at})},85:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(8);n.ResponsiveFacetOptions={enableResponsiveMode:r.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"ResponsiveOptions"}),responsiveBreakpoint:r.ComponentOptions.buildNumberOption({deprecated:"This option is exposed for legacy reasons. It is not recommended to use this option. Instead, use `SearchInterface.options.responsiveMediumBreakpoint` options exposed on the `SearchInterface`."}),dropdownHeaderLabel:r.ComponentOptions.buildLocalizedStringOption({section:"ResponsiveOptions"})}},86:function(t,n,e){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])};return function(n,e){function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}();Object.defineProperty(n,"__esModule",{value:!0});var i=e(7),o=e(8),u=e(3),a=e(20),s=e(2),c=function(t){function n(e,r,i){var u=t.call(this,e,n.ID,i)||this;if(u.element=e,u.options=o.ComponentOptions.initComponentOptions(e,n,r),u.options.preventScrolling){var a=u.options.scrollContainer||u.searchInterface.element;u.options.scrollContainer=o.ComponentOptions.findParentScrollLockable(a)}return u}return r(n,t),n.ID="FacetsMobileMode",n.options={breakpoint:o.ComponentOptions.buildNumberOption(),isModal:o.ComponentOptions.buildBooleanOption({defaultValue:!0}),displayOverlayWhileOpen:o.ComponentOptions.buildBooleanOption({postProcessing:function(t,n){return a.Utils.isNullOrUndefined(t)?!n.isModal:t}}),preventScrolling:o.ComponentOptions.buildBooleanOption({postProcessing:function(t,n){return a.Utils.isNullOrUndefined(t)?n.isModal:t}}),scrollContainer:o.ComponentOptions.buildChildHtmlElementOption({depend:"preventScrolling"})},n.doExport=function(){u.exportGlobally({FacetsMobileMode:n})},n}(i.Component);n.FacetsMobileMode=c,s.Initialization.registerAutoCreateComponent(c)}});
//# sourceMappingURL=FacetSlider.min__e5bf021b8d4fabc51251.js.map