From 2c7ffcc0aca85c6b74f571215ac35c4a55c817a3 Mon Sep 17 00:00:00 2001 From: sachdeva-shrey Date: Mon, 23 Aug 2021 14:20:22 +0530 Subject: [PATCH] chore: update build Signed-off-by: sachdeva-shrey --- dist/feature-viewer.bundle.js | 6 +++--- dist/feature-viewer.min.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/feature-viewer.bundle.js b/dist/feature-viewer.bundle.js index 62eae7c..a6f7676 100644 --- a/dist/feature-viewer.bundle.js +++ b/dist/feature-viewer.bundle.js @@ -1,4 +1,4 @@ -var FeatureViewer;(()=>{var t={568:(t,e,n)=>{n(755),n(662);n.g.jQuery=n(755),n(662),n(949),n(813),n(892);const r=n(228),i=n(219),o=n(788).NXUtils,a=n(788).NXViewerUtils,s=n(623);n(810).mixin(r.prototype),t.exports={createFeature:r,Nextprot:i,NXUtils:o,NXViewerUtils:a,nxFeatureViewer:s}},713:function(t,e){!function(){var n=Array.prototype.forEach,r=Object.prototype.hasOwnProperty,i=Array.prototype.slice,o=0;var a,s={keys:Object.keys||function(t){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("keys() called on a non-object");var e,n=[];for(e in t)t.hasOwnProperty(e)&&(n[n.length]=e);return n},uniqueId:function(t){var e=++o+"";return t?t+e:e},has:function(t,e){return r.call(t,e)},each:function(t,e,r){if(null!=t)if(n&&t.forEach===n)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,o=t.length;i{t.exports=n(713)},810:(t,e,n)=>{var r=n(979);r.onAll=function(t,e){return this.on("all",t,e),this},r.oldMixin=r.mixin,r.mixin=function(t){r.oldMixin(t);for(var e=["onAll"],n=0;n{"use strict";n.d(e,{Z:()=>r});const r={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const n=[];let r=t.parentNode;for(;r&&r.nodeType===Node.ELEMENT_NODE&&3!==r.nodeType;)r.matches(e)&&n.push(r),r=r.parentNode;return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]}}},813:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var r=n(147),i=n(357),o=n(949);const a=new RegExp("(^|\\s)bs-popover\\S+","g"),s={...o.default.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},u={...o.default.DefaultType,content:"(string|element|function)"},l={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},c=".popover-header",f=".popover-body";class p extends o.default{static get Default(){return s}static get NAME(){return"popover"}static get Event(){return l}static get DefaultType(){return u}isWithContent(){return this.getTitle()||this._getContent()}getTipElement(){return this.tip||(this.tip=super.getTipElement(),this.getTitle()||i.Z.findOne(c,this.tip).remove(),this._getContent()||i.Z.findOne(f,this.tip).remove()),this.tip}setContent(){const t=this.getTipElement();this.setElementContent(i.Z.findOne(c,t),this.getTitle());let e=this._getContent();"function"==typeof e&&(e=e.call(this._element)),this.setElementContent(i.Z.findOne(f,t),e),t.classList.remove("fade","show")}_addAttachmentClass(t){this.getTipElement().classList.add(`bs-popover-${this.updateAttachment(t)}`)}_getContent(){return this._element.getAttribute("data-bs-content")||this._config.content}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(a);null!==e&&e.length>0&&e.map((t=>t.trim())).forEach((e=>t.classList.remove(e)))}static jQueryInterface(t){return this.each((function(){const e=p.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}(0,r.pF)(p);const h=p},949:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>_e});var r={};n.r(r),n.d(r,{afterMain:()=>M,afterRead:()=>b,afterWrite:()=>T,applyStyles:()=>L,arrow:()=>K,auto:()=>u,basePlacements:()=>l,beforeMain:()=>w,beforeRead:()=>y,beforeWrite:()=>_,bottom:()=>o,clippingParents:()=>p,computeStyles:()=>tt,createPopper:()=>Dt,createPopperBase:()=>Nt,createPopperLite:()=>Ot,detectOverflow:()=>mt,end:()=>f,eventListeners:()=>nt,flip:()=>yt,hide:()=>wt,left:()=>s,main:()=>E,modifierPhases:()=>A,offset:()=>Et,placements:()=>m,popper:()=>d,popperGenerator:()=>St,popperOffsets:()=>Mt,preventOverflow:()=>_t,read:()=>x,reference:()=>g,right:()=>a,start:()=>c,top:()=>i,variationPlacements:()=>v,viewport:()=>h,write:()=>k});var i="top",o="bottom",a="right",s="left",u="auto",l=[i,o,a,s],c="start",f="end",p="clippingParents",h="viewport",d="popper",g="reference",v=l.reduce((function(t,e){return t.concat([e+"-"+c,e+"-"+f])}),[]),m=[].concat(l,[u]).reduce((function(t,e){return t.concat([e,e+"-"+c,e+"-"+f])}),[]),y="beforeRead",x="read",b="afterRead",w="beforeMain",E="main",M="afterMain",_="beforeWrite",k="write",T="afterWrite",A=[y,x,b,w,E,M,_,k,T];function C(t){return t?(t.nodeName||"").toLowerCase():null}function S(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function N(t){return t instanceof S(t).Element||t instanceof Element}function D(t){return t instanceof S(t).HTMLElement||t instanceof HTMLElement}function O(t){return"undefined"!=typeof ShadowRoot&&(t instanceof S(t).ShadowRoot||t instanceof ShadowRoot)}const L={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];D(i)&&C(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});D(r)&&C(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]};function q(t){return t.split("-")[0]}function j(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function P(t){var e=j(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function z(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&O(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function I(t){return S(t).getComputedStyle(t)}function R(t){return["table","td","th"].indexOf(C(t))>=0}function F(t){return((N(t)?t.ownerDocument:t.document)||window.document).documentElement}function H(t){return"html"===C(t)?t:t.assignedSlot||t.parentNode||(O(t)?t.host:null)||F(t)}function B(t){return D(t)&&"fixed"!==I(t).position?t.offsetParent:null}function U(t){for(var e=S(t),n=B(t);n&&R(n)&&"static"===I(n).position;)n=B(n);return n&&("html"===C(n)||"body"===C(n)&&"static"===I(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&D(t)&&"fixed"===I(t).position)return null;for(var n=H(t);D(n)&&["html","body"].indexOf(C(n))<0;){var r=I(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(t)||e}function W(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var V=Math.max,$=Math.min,X=Math.round;function Y(t,e,n){return V(t,$(e,n))}function Z(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function G(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}const K={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,r=t.name,u=t.options,c=n.elements.arrow,f=n.modifiersData.popperOffsets,p=q(n.placement),h=W(p),d=[s,a].indexOf(p)>=0?"height":"width";if(c&&f){var g=function(t,e){return Z("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:G(t,l))}(u.padding,n),v=P(c),m="y"===h?i:s,y="y"===h?o:a,x=n.rects.reference[d]+n.rects.reference[h]-f[h]-n.rects.popper[d],b=f[h]-n.rects.reference[h],w=U(c),E=w?"y"===h?w.clientHeight||0:w.clientWidth||0:0,M=x/2-b/2,_=g[m],k=E-v[d]-g[y],T=E/2-v[d]/2+M,A=Y(_,T,k),C=h;n.modifiersData[r]=((e={})[C]=A,e.centerOffset=A-T,e)}},effect:function(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&z(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(t){var e,n=t.popper,r=t.popperRect,u=t.placement,l=t.offsets,c=t.position,f=t.gpuAcceleration,p=t.adaptive,h=t.roundOffsets,d=!0===h?function(t){var e=t.x,n=t.y,r=window.devicePixelRatio||1;return{x:X(X(e*r)/r)||0,y:X(X(n*r)/r)||0}}(l):"function"==typeof h?h(l):l,g=d.x,v=void 0===g?0:g,m=d.y,y=void 0===m?0:m,x=l.hasOwnProperty("x"),b=l.hasOwnProperty("y"),w=s,E=i,M=window;if(p){var _=U(n),k="clientHeight",T="clientWidth";_===S(n)&&"static"!==I(_=F(n)).position&&(k="scrollHeight",T="scrollWidth"),_=_,u===i&&(E=o,y-=_[k]-r.height,y*=f?1:-1),u===s&&(w=a,v-=_[T]-r.width,v*=f?1:-1)}var A,C=Object.assign({position:c},p&&Q);return f?Object.assign({},C,((A={})[E]=b?"0":"",A[w]=x?"0":"",A.transform=(M.devicePixelRatio||1)<2?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",A)):Object.assign({},C,((e={})[E]=b?y+"px":"",e[w]=x?v+"px":"",e.transform="",e))}const tt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,l={placement:q(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,J(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,J(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var et={passive:!0};const nt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,u=S(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&l.forEach((function(t){t.addEventListener("scroll",n.update,et)})),s&&u.addEventListener("resize",n.update,et),function(){o&&l.forEach((function(t){t.removeEventListener("scroll",n.update,et)})),s&&u.removeEventListener("resize",n.update,et)}},data:{}};var rt={left:"right",right:"left",bottom:"top",top:"bottom"};function it(t){return t.replace(/left|right|bottom|top/g,(function(t){return rt[t]}))}var ot={start:"end",end:"start"};function at(t){return t.replace(/start|end/g,(function(t){return ot[t]}))}function st(t){var e=S(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ut(t){return j(F(t)).left+st(t).scrollLeft}function lt(t){var e=I(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ct(t){return["html","body","#document"].indexOf(C(t))>=0?t.ownerDocument.body:D(t)&<(t)?t:ct(H(t))}function ft(t,e){var n;void 0===e&&(e=[]);var r=ct(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),o=S(r),a=i?[o].concat(o.visualViewport||[],lt(r)?r:[]):r,s=e.concat(a);return i?s:s.concat(ft(H(a)))}function pt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ht(t,e){return e===h?pt(function(t){var e=S(t),n=F(t),r=e.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+ut(t),y:s}}(t)):D(e)?function(t){var e=j(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):pt(function(t){var e,n=F(t),r=st(t),i=null==(e=t.ownerDocument)?void 0:e.body,o=V(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=V(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+ut(t),u=-r.scrollTop;return"rtl"===I(i||n).direction&&(s+=V(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}(F(t)))}function dt(t,e,n){var r="clippingParents"===e?function(t){var e=ft(H(t)),n=["absolute","fixed"].indexOf(I(t).position)>=0&&D(t)?U(t):t;return N(n)?e.filter((function(t){return N(t)&&z(t,n)&&"body"!==C(t)})):[]}(t):[].concat(e),i=[].concat(r,[n]),o=i[0],a=i.reduce((function(e,n){var r=ht(t,n);return e.top=V(r.top,e.top),e.right=$(r.right,e.right),e.bottom=$(r.bottom,e.bottom),e.left=V(r.left,e.left),e}),ht(t,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function gt(t){return t.split("-")[1]}function vt(t){var e,n=t.reference,r=t.element,u=t.placement,l=u?q(u):null,p=u?gt(u):null,h=n.x+n.width/2-r.width/2,d=n.y+n.height/2-r.height/2;switch(l){case i:e={x:h,y:n.y-r.height};break;case o:e={x:h,y:n.y+n.height};break;case a:e={x:n.x+n.width,y:d};break;case s:e={x:n.x-r.width,y:d};break;default:e={x:n.x,y:n.y}}var g=l?W(l):null;if(null!=g){var v="y"===g?"height":"width";switch(p){case c:e[g]=e[g]-(n[v]/2-r[v]/2);break;case f:e[g]=e[g]+(n[v]/2-r[v]/2)}}return e}function mt(t,e){void 0===e&&(e={});var n=e,r=n.placement,s=void 0===r?t.placement:r,u=n.boundary,c=void 0===u?p:u,f=n.rootBoundary,v=void 0===f?h:f,m=n.elementContext,y=void 0===m?d:m,x=n.altBoundary,b=void 0!==x&&x,w=n.padding,E=void 0===w?0:w,M=Z("number"!=typeof E?E:G(E,l)),_=y===d?g:d,k=t.elements.reference,T=t.rects.popper,A=t.elements[b?_:y],C=dt(N(A)?A:A.contextElement||F(t.elements.popper),c,v),S=j(k),D=vt({reference:S,element:T,strategy:"absolute",placement:s}),O=pt(Object.assign({},T,D)),L=y===d?O:S,q={top:C.top-L.top+M.top,bottom:L.bottom-C.bottom+M.bottom,left:C.left-L.left+M.left,right:L.right-C.right+M.right},P=t.modifiersData.offset;if(y===d&&P){var z=P[s];Object.keys(q).forEach((function(t){var e=[a,o].indexOf(t)>=0?1:-1,n=[i,o].indexOf(t)>=0?"y":"x";q[t]+=z[n]*e}))}return q}const yt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var f=n.mainAxis,p=void 0===f||f,h=n.altAxis,d=void 0===h||h,g=n.fallbackPlacements,y=n.padding,x=n.boundary,b=n.rootBoundary,w=n.altBoundary,E=n.flipVariations,M=void 0===E||E,_=n.allowedAutoPlacements,k=e.options.placement,T=q(k),A=g||(T===k||!M?[it(k)]:function(t){if(q(t)===u)return[];var e=it(t);return[at(t),e,at(e)]}(k)),C=[k].concat(A).reduce((function(t,n){return t.concat(q(n)===u?function(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?m:u,f=gt(r),p=f?s?v:v.filter((function(t){return gt(t)===f})):l,h=p.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=p);var d=h.reduce((function(e,n){return e[n]=mt(t,{placement:n,boundary:i,rootBoundary:o,padding:a})[q(n)],e}),{});return Object.keys(d).sort((function(t,e){return d[t]-d[e]}))}(e,{placement:n,boundary:x,rootBoundary:b,padding:y,flipVariations:M,allowedAutoPlacements:_}):n)}),[]),S=e.rects.reference,N=e.rects.popper,D=new Map,O=!0,L=C[0],j=0;j=0,F=R?"width":"height",H=mt(e,{placement:P,boundary:x,rootBoundary:b,altBoundary:w,padding:y}),B=R?I?a:s:I?o:i;S[F]>N[F]&&(B=it(B));var U=it(B),W=[];if(p&&W.push(H[z]<=0),d&&W.push(H[B]<=0,H[U]<=0),W.every((function(t){return t}))){L=P,O=!1;break}D.set(P,W)}if(O)for(var V=function(t){var e=C.find((function(e){var n=D.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return L=e,"break"},$=M?3:1;$>0;$--){if("break"===V($))break}e.placement!==L&&(e.modifiersData[r]._skip=!0,e.placement=L,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function xt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function bt(t){return[i,a,o,s].some((function(e){return t[e]>=0}))}const wt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=mt(e,{elementContext:"reference"}),s=mt(e,{altBoundary:!0}),u=xt(a,r),l=xt(s,i,o),c=bt(u),f=bt(l);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}};const Et={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,o=n.offset,u=void 0===o?[0,0]:o,l=m.reduce((function(t,n){return t[n]=function(t,e,n){var r=q(t),o=[s,i].indexOf(r)>=0?-1:1,u="function"==typeof n?n(Object.assign({},e,{placement:t})):n,l=u[0],c=u[1];return l=l||0,c=(c||0)*o,[s,a].indexOf(r)>=0?{x:c,y:l}:{x:l,y:c}}(n,e.rects,u),t}),{}),c=l[e.placement],f=c.x,p=c.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=p),e.modifiersData[r]=l}};const Mt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=vt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};const _t={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,u=n.mainAxis,l=void 0===u||u,f=n.altAxis,p=void 0!==f&&f,h=n.boundary,d=n.rootBoundary,g=n.altBoundary,v=n.padding,m=n.tether,y=void 0===m||m,x=n.tetherOffset,b=void 0===x?0:x,w=mt(e,{boundary:h,rootBoundary:d,padding:v,altBoundary:g}),E=q(e.placement),M=gt(e.placement),_=!M,k=W(E),T="x"===k?"y":"x",A=e.modifiersData.popperOffsets,C=e.rects.reference,S=e.rects.popper,N="function"==typeof b?b(Object.assign({},e.rects,{placement:e.placement})):b,D={x:0,y:0};if(A){if(l||p){var O="y"===k?i:s,L="y"===k?o:a,j="y"===k?"height":"width",z=A[k],I=A[k]+w[O],R=A[k]-w[L],F=y?-S[j]/2:0,H=M===c?C[j]:S[j],B=M===c?-S[j]:-C[j],X=e.elements.arrow,Z=y&&X?P(X):{width:0,height:0},G=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=G[O],Q=G[L],J=Y(0,C[j],Z[j]),tt=_?C[j]/2-F-J-K-N:H-J-K-N,et=_?-C[j]/2+F+J+Q+N:B+J+Q+N,nt=e.elements.arrow&&U(e.elements.arrow),rt=nt?"y"===k?nt.clientTop||0:nt.clientLeft||0:0,it=e.modifiersData.offset?e.modifiersData.offset[e.placement][k]:0,ot=A[k]+tt-it-rt,at=A[k]+et-it;if(l){var st=Y(y?$(I,ot):I,z,y?V(R,at):R);A[k]=st,D[k]=st-z}if(p){var ut="x"===k?i:s,lt="x"===k?o:a,ct=A[T],ft=ct+w[ut],pt=ct-w[lt],ht=Y(y?$(ft,ot):ft,ct,y?V(pt,at):pt);A[T]=ht,D[T]=ht-ct}}e.modifiersData[r]=D}},requiresIfExists:["offset"]};function kt(t,e,n){void 0===n&&(n=!1);var r,i,o=F(e),a=j(t),s=D(e),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&(("body"!==C(e)||lt(o))&&(u=(r=e)!==S(r)&&D(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:st(r)),D(e)?((l=j(e)).x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=ut(o))),{x:a.left+u.scrollLeft-l.x,y:a.top+u.scrollTop-l.y,width:a.width,height:a.height}}function Tt(t){var e=new Map,n=new Set,r=[];function i(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var r=e.get(t);r&&i(r)}})),r.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||i(t)})),r}var At={placement:"bottom",modifiers:[],strategy:"absolute"};function Ct(){for(var t=arguments.length,e=new Array(t),n=0;n{const n=t.nodeName.toLowerCase();if(e.includes(n))return!qt.has(n)||Boolean(jt.test(t.nodeValue)||Pt.test(t.nodeValue));const r=e.filter((t=>t instanceof RegExp));for(let t=0,e=r.length;t{zt(t,s)||n.removeAttribute(t.nodeName)}))}return r.body.innerHTML}const Ft=new Map,Ht={set(t,e,n){Ft.has(t)||Ft.set(t,new Map);const r=Ft.get(t);r.has(e)||0===r.size?r.set(e,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(t,e)=>Ft.has(t)&&Ft.get(t).get(e)||null,remove(t,e){if(!Ft.has(t))return;const n=Ft.get(t);n.delete(e),0===n.size&&Ft.delete(t)}},Bt=/[^.]*(?=\..*)\.|.*/,Ut=/\..*/,Wt=/::\d+$/,Vt={};let $t=1;const Xt={mouseenter:"mouseover",mouseleave:"mouseout"},Yt=/^(mouseenter|mouseleave)/i,Zt=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Gt(t,e){return e&&`${e}::${$t++}`||t.uidEvent||$t++}function Kt(t){const e=Gt(t);return t.uidEvent=e,Vt[e]=Vt[e]||{},Vt[e]}function Qt(t,e,n=null){const r=Object.keys(t);for(let i=0,o=r.length;ifunction(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r?r=t(r):n=t(n)}const[o,a,s]=Jt(e,n,r),u=Kt(t),l=u[s]||(u[s]={}),c=Qt(l,a,o?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const f=Gt(a,e.replace(Bt,"")),p=o?function(t,e,n){return function r(i){const o=t.querySelectorAll(e);for(let{target:a}=i;a&&a!==this;a=a.parentNode)for(let s=o.length;s--;)if(o[s]===a)return i.delegateTarget=a,r.oneOff&&re.off(t,i.type,e,n),n.apply(a,[i]);return null}}(t,n,r):function(t,e){return function n(r){return r.delegateTarget=t,n.oneOff&&re.off(t,r.type,e),e.apply(t,[r])}}(t,n);p.delegationSelector=o?n:null,p.originalHandler=a,p.oneOff=i,p.uidEvent=f,l[f]=p,t.addEventListener(s,p,o)}function ee(t,e,n,r,i){const o=Qt(e[n],r,i);o&&(t.removeEventListener(n,o,Boolean(i)),delete e[n][o.uidEvent])}function ne(t){return t=t.replace(Ut,""),Xt[t]||t}const re={on(t,e,n,r){te(t,e,n,r,!1)},one(t,e,n,r){te(t,e,n,r,!0)},off(t,e,n,r){if("string"!=typeof e||!t)return;const[i,o,a]=Jt(e,n,r),s=a!==e,u=Kt(t),l=e.startsWith(".");if(void 0!==o){if(!u||!u[a])return;return void ee(t,u,a,o,i?n:null)}l&&Object.keys(u).forEach((n=>{!function(t,e,n,r){const i=e[n]||{};Object.keys(i).forEach((o=>{if(o.includes(r)){const r=i[o];ee(t,e,n,r.originalHandler,r.delegationSelector)}}))}(t,u,n,e.slice(1))}));const c=u[a]||{};Object.keys(c).forEach((n=>{const r=n.replace(Wt,"");if(!s||e.includes(r)){const e=c[n];ee(t,u,a,e.originalHandler,e.delegationSelector)}}))},trigger(t,e,n){if("string"!=typeof e||!t)return null;const r=(0,Lt.KF)(),i=ne(e),o=e!==i,a=Zt.has(i);let s,u=!0,l=!0,c=!1,f=null;return o&&r&&(s=r.Event(e,n),r(t).trigger(s),u=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),c=s.isDefaultPrevented()),a?(f=document.createEvent("HTMLEvents"),f.initEvent(i,u,!0)):f=new CustomEvent(e,{bubbles:u,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((t=>{Object.defineProperty(f,t,{get:()=>n[t]})})),c&&f.preventDefault(),l&&t.dispatchEvent(f),f.defaultPrevented&&void 0!==s&&s.preventDefault(),f}},ie=re;function oe(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function ae(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const se={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${ae(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${ae(e)}`)},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter((t=>t.startsWith("bs"))).forEach((n=>{let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),e[r]=oe(t.dataset[n])})),e},getDataAttribute:(t,e)=>oe(t.getAttribute(`data-bs-${ae(e)}`)),offset(t){const e=t.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},position:t=>({top:t.offsetTop,left:t.offsetLeft})};var ue=n(357);const le=class{constructor(t){(t=(0,Lt.sb)(t))&&(this._element=t,Ht.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ht.remove(this._element,this.constructor.DATA_KEY),ie.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((t=>{this[t]=null}))}_queueCallback(t,e,n=!0){(0,Lt.e0)(t,e,n)}static getInstance(t){return Ht.get(t,this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.0.2"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}},ce="tooltip",fe=new RegExp("(^|\\s)bs-tooltip\\S+","g"),pe=new Set(["sanitize","allowList","sanitizeFn"]),he={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},de={AUTO:"auto",TOP:"top",RIGHT:(0,Lt.dZ)()?"left":"right",BOTTOM:"bottom",LEFT:(0,Lt.dZ)()?"right":"left"},ge={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:It,popperConfig:null},ve={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},me="fade",ye="show",xe="show",be="out",we="hover",Ee="focus";class Me extends le{constructor(t,e){if(void 0===r)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return ge}static get NAME(){return ce}static get Event(){return ve}static get DefaultType(){return he}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(ye))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),ie.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const t=ie.trigger(this._element,this.constructor.Event.SHOW),e=(0,Lt.L8)(this._element),n=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!n)return;const r=this.getTipElement(),i=(0,Lt.Kr)(this.constructor.NAME);r.setAttribute("id",i),this._element.setAttribute("aria-describedby",i),this.setContent(),this._config.animation&&r.classList.add(me);const o="function"==typeof this._config.placement?this._config.placement.call(this,r,this._element):this._config.placement,a=this._getAttachment(o);this._addAttachmentClass(a);const{container:s}=this._config;Ht.set(r,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(s.appendChild(r),ie.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Dt(this._element,r,this._getPopperConfig(a)),r.classList.add(ye);const u="function"==typeof this._config.customClass?this._config.customClass():this._config.customClass;u&&r.classList.add(...u.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>{ie.on(t,"mouseover",Lt.ZT)}));const l=this.tip.classList.contains(me);this._queueCallback((()=>{const t=this._hoverState;this._hoverState=null,ie.trigger(this._element,this.constructor.Event.SHOWN),t===be&&this._leave(null,this)}),this.tip,l)}hide(){if(!this._popper)return;const t=this.getTipElement();if(ie.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(ye),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>ie.off(t,"mouseover",Lt.ZT))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const e=this.tip.classList.contains(me);this._queueCallback((()=>{this._isWithActiveTrigger()||(this._hoverState!==xe&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),ie.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))}),this.tip,e),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");return t.innerHTML=this._config.template,this.tip=t.children[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(ue.Z.findOne(".tooltip-inner",t),this.getTitle()),t.classList.remove(me,ye)}setElementContent(t,e){if(null!==t)return(0,Lt.kK)(e)?(e=(0,Lt.sb)(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=Rt(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){let t=this._element.getAttribute("data-bs-original-title");return t||(t="function"==typeof this._config.title?this._config.title.call(this._element):this._config.title),t}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){const n=this.constructor.DATA_KEY;return(e=e||Ht.get(t.delegateTarget,n))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),Ht.set(t.delegateTarget,n,e)),e}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(`bs-tooltip-${this.updateAttachment(t)}`)}_getAttachment(t){return de[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((t=>{if("click"===t)ie.on(this._element,this.constructor.Event.CLICK,this._config.selector,(t=>this.toggle(t)));else if("manual"!==t){const e=t===we?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=t===we?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;ie.on(this._element,e,this._config.selector,(t=>this._enter(t))),ie.on(this._element,n,this._config.selector,(t=>this._leave(t)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},ie.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?Ee:we]=!0),e.getTipElement().classList.contains(ye)||e._hoverState===xe?e._hoverState=xe:(clearTimeout(e._timeout),e._hoverState=xe,e._config.delay&&e._config.delay.show?e._timeout=setTimeout((()=>{e._hoverState===xe&&e.show()}),e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?Ee:we]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=be,e._config.delay&&e._config.delay.hide?e._timeout=setTimeout((()=>{e._hoverState===be&&e.hide()}),e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=se.getDataAttributes(this._element);return Object.keys(e).forEach((t=>{pe.has(t)&&delete e[t]})),(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:(0,Lt.sb)(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),(0,Lt.zE)(ce,t,this.constructor.DefaultType),t.sanitize&&(t.template=Rt(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};if(this._config)for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(fe);null!==e&&e.length>0&&e.map((t=>t.trim())).forEach((e=>t.classList.remove(e)))}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}static jQueryInterface(t){return this.each((function(){const e=Me.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}(0,Lt.pF)(Me);const _e=Me},147:(t,e,n)=>{"use strict";n.d(e,{sb:()=>s,Kr:()=>o,kK:()=>a,zE:()=>u,L8:()=>l,ZT:()=>c,KF:()=>f,dZ:()=>h,pF:()=>d,e0:()=>v});var r=n(357);const i="transitionend",o=t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t},a=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),s=t=>a(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?r.Z.findOne(t):null,u=(t,e,n)=>{Object.keys(n).forEach((r=>{const i=n[r],o=e[r],s=o&&a(o)?"element":null==(u=o)?`${u}`:{}.toString.call(u).match(/\s([a-z]+)/i)[1].toLowerCase();var u;if(!new RegExp(i).test(s))throw new TypeError(`${t.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${i}".`)}))},l=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?l(t.parentNode):null},c=()=>{},f=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},p=[],h=()=>"rtl"===document.documentElement.dir,d=t=>{var e;e=()=>{const e=f();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}},"loading"===document.readyState?(p.length||document.addEventListener("DOMContentLoaded",(()=>{p.forEach((t=>t()))})),p.push(e)):e()},g=t=>{"function"==typeof t&&t()},v=(t,e,n=!0)=>{if(!n)return void g(t);const r=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const r=Number.parseFloat(e),i=Number.parseFloat(n);return r||i?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0})(e)+5;let o=!1;const a=({target:n})=>{n===e&&(o=!0,e.removeEventListener(i,a),g(t))};e.addEventListener(i,a),setTimeout((()=>{o||e.dispatchEvent(new Event(i))}),r)}},174:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(645),i=n.n(r)()((function(t){return t[1]}));i.push([t.id,'.variant{\r\n stroke:rgba(0,255,154,0.6);\r\n stroke-width:1px;\r\n}\r\n\r\na:focus {\r\n outline:0 !important;\r\n}\r\n\r\n.active {\r\n z-index: 1;\r\n}\r\n.brush .extent{\r\n stroke: #fff;\r\n fill-opacity: .125;\r\n shape-rendering: crispEdges;\r\n}\r\n\r\n\r\n.point {\r\n fill: #2f225d;\r\n stroke: #afa2dc;\r\n}\r\n\r\n.selected {\r\n fill: #afa2dc;\r\n stroke: #2f225d;\r\n}\r\n\r\n.clear-button {\r\n font: 14px sans-serif;\r\n cursor: pointer;\r\n}\r\n\r\n.axis path,\r\n.axis line {\r\n fill: none;\r\n stroke: #000;\r\n shape-rendering: crispEdges;\r\n}\r\n\r\n.axis {\r\n font: 10px sans-serif;\r\n}\r\n.d3-tip {\r\n line-height: 1;\r\n font-weight: bold;\r\n padding: 12px;\r\n/* background: rgba(0, 0, 0, 0.8);*/\r\n background: #eee;\r\n/* color: #fff;*/\r\n color: black;\r\n border-radius: 2px;\r\n}\r\n\r\n/*Creates a small triangle extender for the tooltip - left*/\r\n.tooltip2:after {\r\n box-sizing: border-box;\r\n display: inline;\r\n font-size: 10px;\r\n width: 100%;\r\n line-height: 1;\r\n color: #eee;\r\n content: "\\25BC";\r\n position: absolute;\r\n text-align: left;\r\n margin: -1px 0 0 0;\r\n bottom: -8px;\r\n left: 10px;\r\n z-index:11;\r\n}\r\n/*Creates a small triangle extender for the tooltip - left */\r\n.tooltip2:before {\r\n box-sizing: border-box;\r\n display: inline;\r\n font-size: 10px;\r\n width: 100%;\r\n line-height: 1;\r\n color: rgba(0, 0, 0, 0.6);\r\n content: "\\25BC";\r\n position: absolute;\r\n text-align: left;\r\n margin: -1px 0 0 0;\r\n bottom: -9px;\r\n left: 10px;\r\n z-index:10;\r\n}\r\n.tooltip3:after {\r\n box-sizing: border-box;\r\n display: inline;\r\n font-size: 10px;\r\n width: 100%;\r\n line-height: 1;\r\n color: #eee;\r\n content: "\\25BC";\r\n position: absolute;\r\n text-align: right;\r\n margin: -1px 0 0 0;\r\n bottom: -8px;\r\n right: 10px;\r\n z-index:11;\r\n}\r\n.tooltip3:before {\r\n box-sizing: border-box;\r\n display: inline;\r\n font-size: 10px;\r\n width: 100%;\r\n line-height: 1;\r\n color: rgba(0, 0, 0, 0.6);\r\n content: "\\25BC";\r\n position: absolute;\r\n text-align: right;\r\n margin: -1px 0 0 0;\r\n bottom: -9px;\r\n right: 10px;\r\n z-index:10;\r\n}\r\n\r\n.yaxis{\r\n background-color:green;\r\n}\r\n\r\n.header-help{\r\n/* color: #C50063;*/\r\n/*\r\n color: #108D9F;\r\n border-color:#0F8292;\r\n*/\r\n}\r\n.header-help .state{\r\n min-width:26px;\r\n display:inline-block;\r\n}\r\n\r\n.header-help:hover{\r\n/* color: #98004C;*/\r\n/* color: #0F8292;*/\r\n cursor: pointer;\r\n text-decoration: none;\r\n}\r\n\r\n.header-help:focus{\r\n/* color: #0F8292;*/\r\n}\r\n\r\n.popover-title{\r\n text-align: center;\r\n/* background-color: rgba(197, 0, 99, 0.1);*/\r\n}\r\n\r\n.label-as-badge {\r\n/*\r\n border-radius: 1em;\r\n font-size:0.7em;\r\n*/\r\n/* background-color: #C50063;*/\r\n}\r\n\r\npath.domain {\r\n fill:none;\r\n}\r\n\r\nrect{\r\n rx:2;\r\n}\r\n\r\n/* Styles for variant popups */\r\n\r\n.multiple-variant-popup {\r\n background-color: #FFF;\r\n border-radius: 0.6rem;\r\n color: #000;\r\n z-index: 10;\r\n display: none;\r\n position: absolute;\r\n margin-top: 2.5rem;\r\n right: 10rem;\r\n top: 3rem;\r\n padding: 1rem 2rem;\r\n box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;\r\n}\r\n\r\n.multiple-variant-container { \r\n display: flex;\r\n}\r\n\r\n.single-variant-popup {\r\n position: absolute;\r\n display: none;\r\n background-color: #FFF;\r\n border-radius: 0.6rem;\r\n color: #000;\r\n margin-top: 2.5rem;\r\n padding: 1rem 2rem;\r\n box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;\r\n}\r\n\r\n.single-variant-popup > div > p{\r\n margin: 1rem 0;\r\n}\r\n\r\n.cancel-icon {\r\n position: absolute;\r\n top: 1rem;\r\n right: 1rem;\r\n cursor: pointer;\r\n margin: 1rem;\r\n cursor: pointer;\r\n}\r\n\r\n\r\n.multiple-variant-popup > .header {\r\n display: flex;\r\n align-items: center;\r\n align-content: center;\r\n}\r\n\r\n.multiple-variant-popup > .header > p {\r\n flex: 1;\r\n text-align: center;\r\n}\r\n\r\n.multiple-variant-popup > span {\r\n text-align: center;\r\n}\r\n\r\n.header > p, .properties-row > .title {\r\n color: #726f6f;\r\n text-transform: uppercase;\r\n font-size: 0.9rem;\r\n}\r\n\r\n.properties-row > .title {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.popup-input {\r\n width: 5rem !important;\r\n border-radius: 0.3rem;\r\n height: 2rem !important;\r\n outline: none;\r\n padding: 0.3rem;\r\n text-align: center; \r\n background-color: #f9f9f9;\r\n border: 2px solid rgb(230, 230, 230);\r\n outline: none;\r\n}\r\n\r\n.popup-input:focus {\r\n border: 2px solid #166FF8;\r\n}\r\n\r\n.multiple-variant-btn-container {\r\n display: flex;\r\n justify-content: center;\r\n margin: 2rem 0;\r\n column-gap: 1rem;\r\n}\r\n\r\n.properties-row {\r\n display: flex;\r\n min-height: 3rem;\r\n width: 15rem;\r\n}\r\n\r\n.properties-row > div {\r\n margin-left: auto;\r\n margin-top: 0.6rem;\r\n}\r\n\r\n.add-variant-btn, .single-add-variant-btn {\r\n background-color: #166FF8;\r\n color: #FFF;\r\n border: none;\r\n border-radius: 0.4rem;\r\n cursor: pointer;\r\n display: flex;\r\n padding: 1rem 2rem;\r\n font-size: 0.9rem;\r\n}\r\n\r\n.single-add-variant-btn {\r\n margin: 2rem auto 1rem auto;\r\n width: 100%;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n\r\n.single-add-variant-btn:disabled, \r\n.add-variant-btn:disabled, \r\n.get-predictions-btn\r\n {\r\n background-color: #7D7D7D;\r\n color: #DFDFDF;\r\n cursor: not-allowed;\r\n }\r\n.get-predictions-btn {\r\n display: inline-block;\r\n background-color: #166FF8;\r\n color: #FFF;\r\n border-radius: 0.4rem;\r\n cursor: pointer;\r\n padding: 1rem 2rem;\r\n font-size: 0.9rem;\r\n}\r\n\r\n#single-variant-input {\r\n width: 3rem;\r\n}\r\n\r\n#single-variant-input:focus {\r\n border: 2px solid #166FF8;\r\n}\r\n\r\n.input-container {\r\n min-height: 3rem;\r\n}\r\n\r\n.input-container > div {\r\n display: flex;\r\n column-gap: 2rem;\r\n padding: 1rem 0;\r\n border-top: 1px solid #eee;\r\n}\r\n\r\n.input-container > div > input {\r\n flex: 1;\r\n align-self: center;\r\n}\r\n\r\n#single-entry-add-variant {\r\n display: flex;\r\n text-align: center;\r\n justify-content: center;\r\n margin: 2rem 0;\r\n}\r\n\r\n #dropdown-search-input {\r\n box-sizing: border-box;\r\n background-position: 14px 12px;\r\n background-repeat: no-repeat;\r\n padding: 14px 10px 12px 10px;\r\n border: none;\r\n border-bottom: 1px solid #ddd;\r\n width: 150px;\r\n }\r\n\r\n .dropdown {\r\n position: relative;\r\n display: flex;\r\n }\r\n \r\n .dropdown-content, #single-dropdown-content {\r\n display: none;\r\n position: absolute;\r\n background-color: #f6f6f6;\r\n width: 150px;\r\n border: 1px solid #ddd;\r\n z-index: 1;\r\n }\r\n\r\n .dropdown-option-container{\r\n max-height: 20rem;\r\n overflow-y: auto;\r\n }\r\n\r\n .dropdown-btn {\r\n display: flex;\r\n align-items: center;\r\n background-color: #F9f9f9;\r\n border: 2px solid rgb(230, 230, 230);\r\n padding: 0.6rem 1rem;\r\n border-radius: 0.3rem;\r\n width: 8rem;\r\n border-radius: 0.3rem;\r\n cursor: pointer;\r\n outline: none;\r\n }\r\n\r\n .dropdown-btn:focus {\r\n border: 2px solid #166FF8;\r\n }\r\n\r\n .dropdown-options, .single-dropdown-options {\r\n border-bottom: 1px solid #eee;\r\n padding: 0.6rem 0;\r\n text-align: center;\r\n font-size: 0.9rem;\r\n cursor: pointer;\r\n margin-block-start: 0em;\r\n margin-block-end: 0em;\r\n background-color: #fff;\r\n color: rgb(26, 26, 26);\r\n }\r\n\r\n .dropdown-options:hover, .single-dropdown-options:hover {\r\n background-color: #f3f9fd;\r\n color: #000;\r\n }\r\n\r\n .delete-icon {\r\n height: 1.3rem;\r\n width: 1.3rem;\r\n cursor: pointer;\r\n }\r\n \r\n\r\n .bottom-arrow-icon {\r\n height: 0.5rem;\r\n width: 0.5rem;\r\n padding-left: 0.3rem;\r\n margin-top: 0.1rem;\r\n position: absolute;\r\n right: 10px;\r\n top: 8px;\r\n }\r\n\r\n .original-input {\r\n margin-top: 0.5rem;\r\n min-width: 4rem;\r\n text-align: center;\r\n }',""]);const o=i},645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o{var r,i;!function(){var o={version:"3.5.6"},a=[].slice,s=function(t){return a.call(t)},u=this.document;function l(t){return t&&(t.ownerDocument||t.document||t).documentElement}function c(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}if(u)try{s(u.documentElement.childNodes)[0].nodeType}catch(t){s=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}if(Date.now||(Date.now=function(){return+new Date}),u)try{u.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var f=this.Element.prototype,p=f.setAttribute,h=f.setAttributeNS,d=this.CSSStyleDeclaration.prototype,g=d.setProperty;f.setAttribute=function(t,e){p.call(this,t,e+"")},f.setAttributeNS=function(t,e,n){h.call(this,t,e,n+"")},d.setProperty=function(t,e,n){g.call(this,t,e+"",n)}}function v(t,e){return te?1:t>=e?0:NaN}function m(t){return null===t?NaN:+t}function y(t){return!isNaN(t)}function x(t){return{left:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);r>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);r>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}o.ascending=v,o.descending=function(t,e){return et?1:e>=t?0:NaN},o.min=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++ir&&(n=r)}else{for(;++i=r){n=r;break}for(;++ir&&(n=r)}return n},o.max=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++in&&(n=r)}else{for(;++i=r){n=r;break}for(;++in&&(n=r)}return n},o.extent=function(t,e){var n,r,i,o=-1,a=t.length;if(1===arguments.length){for(;++o=r){n=i=r;break}for(;++or&&(n=r),i=r){n=i=r;break}for(;++or&&(n=r),i1)return a/(u-1)},o.deviation=function(){var t=o.variance.apply(this,arguments);return t?Math.sqrt(t):t};var b=x(v);function w(t){return t.length}o.bisectLeft=b.left,o.bisect=o.bisectRight=b.right,o.bisector=function(t){return x(1===t.length?function(e,n){return v(t(e),n)}:t)},o.shuffle=function(t,e,n){(o=arguments.length)<3&&(n=t.length,o<2&&(e=0));for(var r,i,o=n-e;o;)i=Math.random()*o--|0,r=t[o+e],t[o+e]=t[i+e],t[i+e]=r;return t},o.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},o.pairs=function(t){for(var e=0,n=t.length-1,r=t[0],i=new Array(n<0?0:n);e=0;)for(e=(r=t[i]).length;--e>=0;)n[--a]=r[e];return n};var E=Math.abs;function M(t){for(var e=1;t*e%1;)e*=10;return e}function _(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function k(){this._=Object.create(null)}o.range=function(t,e,n){if(arguments.length<3&&(n=1,arguments.length<2&&(e=t,t=0)),(e-t)/n==1/0)throw new Error("infinite range");var r,i=[],o=M(E(n)),a=-1;if(t*=o,e*=o,(n*=o)<0)for(;(r=t+n*++a)>e;)i.push(r/o);else for(;(r=t+n*++a)=r.length)return e?e.call(n,o):t?o.sort(t):o;for(var u,l,c,f,p=-1,h=o.length,d=r[s++],g=new k;++p=r.length)return t;var n=[],o=i[e++];return t.forEach((function(t,r){n.push({key:t,values:s(r,e)})})),o?n.sort((function(t,e){return o(t.key,e.key)})):n}return n.map=function(t,e){return a(e,t,0)},n.entries=function(t){return s(a(o.map,t,0),0)},n.key=function(t){return r.push(t),n},n.sortKeys=function(t){return i[r.length-1]=t,n},n.sortValues=function(e){return t=e,n},n.rollup=function(t){return e=t,n},n},o.set=function(t){var e=new L;if(t)for(var n=0,r=t.length;n=0&&(r=t.slice(n+1),t=t.slice(0,n)),t)return arguments.length<2?this[t].on(r):this[t].on(r,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},o.event=null,o.requote=function(t){return t.replace(W,"\\$&")};var W=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,V={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]};function $(t){return V(t,G),t}var X=function(t,e){return e.querySelector(t)},Y=function(t,e){return e.querySelectorAll(t)},Z=function(t,e){var n=t.matches||t[P(t,"matchesSelector")];return(Z=function(t,e){return n.call(t,e)})(t,e)};"function"==typeof Sizzle&&(X=function(t,e){return Sizzle(t,e)[0]||null},Y=Sizzle,Z=Sizzle.matchesSelector),o.selection=function(){return o.select(u.documentElement)};var G=o.selection.prototype=[];function K(t){return"function"==typeof t?t:function(){return X(t,this)}}function Q(t){return"function"==typeof t?t:function(){return Y(t,this)}}G.select=function(t){var e,n,r,i,o=[];t=K(t);for(var a=-1,s=this.length;++a=0&&(n=t.slice(0,e),t=t.slice(e+1)),J.hasOwnProperty(n)?{space:J[n],local:t}:t}},G.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return(t=o.ns.qualify(t)).local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(tt(e,t[e]));return this}return this.each(tt(t,e))},G.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=rt(t)).length,i=-1;if(e=n.classList){for(;++i=0;)(n=r[i])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},G.sort=function(t){t=pt.apply(this,arguments);for(var e=-1,n=this.length;++e=e&&(e=i+1);!(a=s[e])&&++e0&&(t=t.slice(0,i));var u=yt.get(t);function l(){var e=this[r];e&&(this.removeEventListener(t,e,e.$),delete this[r])}return u&&(t=u,a=bt),i?e?function(){var i=a(e,s(arguments));l.call(this),this.addEventListener(t,this[r]=i,i.$=n),i._=e}:l:e?I:function(){var e,n=new RegExp("^__on([^.]+)"+o.requote(t)+"$");for(var r in this)if(e=r.match(n)){var i=this[r];this.removeEventListener(e[1],i,i.$),delete this[r]}}}o.selection.enter=dt,o.selection.enter.prototype=gt,gt.append=G.append,gt.empty=G.empty,gt.node=G.node,gt.call=G.call,gt.size=G.size,gt.select=function(t){for(var e,n,r,i,o,a=[],s=-1,u=this.length;++s0?1:t<0?-1:0}function Pt(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function zt(t){return t>1?0:t<-1?St:Math.acos(t)}function It(t){return t>1?Ot:t<-1?-Ot:Math.asin(t)}function Rt(t){return((t=Math.exp(t))+1/t)/2}function Ft(t){return(t=Math.sin(t/2))*t}var Ht=Math.SQRT2;o.interpolateZoom=function(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2],u=o-n,l=a-r,c=u*u+l*l,f=Math.sqrt(c),p=(s*s-i*i+4*c)/(2*i*2*f),h=(s*s-i*i-4*c)/(2*s*2*f),d=Math.log(Math.sqrt(p*p+1)-p),g=Math.log(Math.sqrt(h*h+1)-h)-d,v=(g||Math.log(s/i))/Ht;function m(t){var e,o=t*v;if(g){var a=Rt(d),s=i/(2*f)*(a*(e=Ht*o+d,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(d));return[n+s*u,r+s*l,i*a/Rt(Ht*o+d)]}return[n+t*u,r+t*l,i*Math.exp(Ht*o)]}return m.duration=1e3*v,m},o.behavior.zoom=function(){var t,e,n,r,i,a,s,l,f,p={x:0,y:0,k:1},h=[960,500],d=Wt,g=250,v=0,m="mousedown.zoom",y="mousemove.zoom",x="mouseup.zoom",b="touchstart.zoom",w=U(E,"zoomstart","zoom","zoomend");function E(t){t.on(m,D).on(Ut+".zoom",L).on("dblclick.zoom",q).on(b,O)}function M(t){return[(t[0]-p.x)/p.k,(t[1]-p.y)/p.k]}function _(t){p.k=Math.max(d[0],Math.min(d[1],t))}function k(t,e){e=function(t){return[t[0]*p.k+p.x,t[1]*p.k+p.y]}(e),p.x+=t[0]-e[0],p.y+=t[1]-e[1]}function T(t,n,r,i){t.__chart__={x:p.x,y:p.y,k:p.k},_(Math.pow(2,i)),k(e=n,r),t=o.select(t),g>0&&(t=t.transition().duration(g)),t.call(E.event)}function A(){s&&s.domain(a.range().map((function(t){return(t-p.x)/p.k})).map(a.invert)),f&&f.domain(l.range().map((function(t){return(t-p.y)/p.k})).map(l.invert))}function C(t){v++||t({type:"zoomstart"})}function S(t){A(),t({type:"zoom",scale:p.k,translate:[p.x,p.y]})}function N(t){--v||(t({type:"zoomend"}),e=null)}function D(){var t=this,e=o.event.target,n=w.of(t,arguments),r=0,i=o.select(c(t)).on(y,u).on(x,l),a=M(o.mouse(t)),s=Mt(t);function u(){r=1,k(o.mouse(t),a),S(n)}function l(){i.on(y,null).on(x,null),s(r&&o.event.target===e),N(n)}Os.call(t),C(n)}function O(){var t,e=this,n=w.of(e,arguments),r={},a=0,s=".zoom-"+o.event.changedTouches[0].identifier,u="touchmove"+s,l="touchend"+s,c=[],f=o.select(e),h=Mt(e);function d(){var n=o.touches(e);return t=p.k,n.forEach((function(t){t.identifier in r&&(r[t.identifier]=M(t))})),n}function g(){var t=o.event.target;o.select(t).on(u,v).on(l,y),c.push(t);for(var n=o.event.changedTouches,s=0,f=n.length;s1){m=h[0];var x=h[1],b=m[0]-x[0],w=m[1]-x[1];a=b*b+w*w}}function v(){var s,u,l,c,f=o.touches(e);Os.call(e);for(var p=0,h=f.length;p360?t-=360:t<0&&(t+=360),t<60?r+(i-r)*t/60:t<180?i:t<240?r+(i-r)*(240-t)/60:r}(t))}return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)||e<0?0:e>1?1:e,r=2*(n=n<0?0:n>1?1:n)-(i=n<=.5?n*(1+e):n+e-n*e),new ue(o(t+120),o(t),o(t-120))}function Zt(t,e,n){return this instanceof Zt?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof Zt?new Zt(t.h,t.c,t.l):ie(t instanceof Qt?t.l:(t=ge((t=o.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new Zt(t,e,n)}Xt.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new $t(this.h,this.s,this.l/t)},Xt.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new $t(this.h,this.s,t*this.l)},Xt.rgb=function(){return Yt(this.h,this.s,this.l)},o.hcl=Zt;var Gt=Zt.prototype=new Vt;function Kt(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new Qt(n,Math.cos(t*=Lt)*e,Math.sin(t)*e)}function Qt(t,e,n){return this instanceof Qt?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof Qt?new Qt(t.l,t.a,t.b):t instanceof Zt?Kt(t.h,t.c,t.l):ge((t=ue(t)).r,t.g,t.b):new Qt(t,e,n)}Gt.brighter=function(t){return new Zt(this.h,this.c,Math.min(100,this.l+Jt*(arguments.length?t:1)))},Gt.darker=function(t){return new Zt(this.h,this.c,Math.max(0,this.l-Jt*(arguments.length?t:1)))},Gt.rgb=function(){return Kt(this.h,this.c,this.l).rgb()},o.lab=Qt;var Jt=18,te=.95047,ee=1.08883,ne=Qt.prototype=new Vt;function re(t,e,n){var r=(t+16)/116,i=r+e/500,o=r-n/200;return new ue(se(3.2404542*(i=oe(i)*te)-1.5371385*(r=1*oe(r))-.4985314*(o=oe(o)*ee)),se(-.969266*i+1.8760108*r+.041556*o),se(.0556434*i-.2040259*r+1.0572252*o))}function ie(t,e,n){return t>0?new Zt(Math.atan2(n,e)*qt,Math.sqrt(e*e+n*n),t):new Zt(NaN,NaN,t)}function oe(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function ae(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function se(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function ue(t,e,n){return this instanceof ue?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof ue?new ue(t.r,t.g,t.b):he(""+t,ue,Yt):new ue(t,e,n)}function le(t){return new ue(t>>16,t>>8&255,255&t)}function ce(t){return le(t)+""}ne.brighter=function(t){return new Qt(Math.min(100,this.l+Jt*(arguments.length?t:1)),this.a,this.b)},ne.darker=function(t){return new Qt(Math.max(0,this.l-Jt*(arguments.length?t:1)),this.a,this.b)},ne.rgb=function(){return re(this.l,this.a,this.b)},o.rgb=ue;var fe=ue.prototype=new Vt;function pe(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function he(t,e,n){t=t.toLowerCase();var r,i,o,a=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/.exec(t))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(me(i[0]),me(i[1]),me(i[2]))}return(o=ye.get(t))?e(o.r,o.g,o.b):(null==t||"#"!==t.charAt(0)||isNaN(o=parseInt(t.slice(1),16))||(4===t.length?(a=(3840&o)>>4,a|=a>>4,s=240&o,s|=s>>4,u=15&o,u|=u<<4):7===t.length&&(a=(16711680&o)>>16,s=(65280&o)>>8,u=255&o)),e(a,s,u))}function de(t,e,n){var r,i,o=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),s=a-o,u=(a+o)/2;return s?(i=u<.5?s/(a+o):s/(2-a-o),r=t==a?(e-n)/s+(e0&&u<1?0:r),new $t(r,i,u)}function ge(t,e,n){var r=ae((.4124564*(t=ve(t))+.3575761*(e=ve(e))+.1804375*(n=ve(n)))/te),i=ae((.2126729*t+.7151522*e+.072175*n)/1);return Qt(116*i-16,500*(r-i),200*(i-ae((.0193339*t+.119192*e+.9503041*n)/ee)))}function ve(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function me(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}fe.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,n=this.g,r=this.b,i=30;return e||n||r?(e&&e=200&&e<300||304===e){try{t=n.call(i,l)}catch(t){return void a.error.call(i,t)}a.load.call(i,t)}else a.error.call(i,l)}return this.XDomainRequest&&!("withCredentials"in l)&&/^(http(s)?:)?\/\//.test(t)&&(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=f:l.onreadystatechange=function(){l.readyState>3&&f()},l.onprogress=function(t){var e=o.event;o.event=t;try{a.progress.call(i,l)}finally{o.event=e}},i.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?u[t]:(null==e?delete u[t]:u[t]=e+"",i)},i.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",i):e},i.responseType=function(t){return arguments.length?(c=t,i):c},i.response=function(t){return n=t,i},["get","post"].forEach((function(t){i[t]=function(){return i.send.apply(i,[t].concat(s(arguments)))}})),i.send=function(n,r,o){if(2===arguments.length&&"function"==typeof r&&(o=r,r=null),l.open(n,t,!0),null==e||"accept"in u||(u.accept=e+",*/*"),l.setRequestHeader)for(var s in u)l.setRequestHeader(s,u[s]);return null!=e&&l.overrideMimeType&&l.overrideMimeType(e),null!=c&&(l.responseType=c),null!=o&&i.on("error",o).on("load",(function(t){o(null,t)})),a.beforesend.call(i,l),l.send(null==r?null:r),i},i.abort=function(){return l.abort(),i},o.rebind(i,a,"on"),null==r?i:i.get(function(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}(r))}ye.forEach((function(t,e){ye.set(t,le(e))})),o.functor=xe,o.xhr=be(q),o.dsv=function(t,e){var n=new RegExp('["'+t+"\n]"),r=t.charCodeAt(0);function i(t,n,r){arguments.length<3&&(r=n,n=null);var i=we(t,e,null==n?o:a(n),r);return i.row=function(t){return arguments.length?i.response(null==(n=t)?o:a(t)):n},i}function o(t){return i.parse(t.responseText)}function a(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(u).join(t)}function u(t){return n.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}return i.parse=function(t,e){var n;return i.parseRows(t,(function(t,r){if(n)return n(t,r-1);var i=new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+"]"})).join(",")+"}");n=e?function(t,n){return e(i(t),n)}:i}))},i.parseRows=function(t,e){var n,i,o={},a={},s=[],u=t.length,l=0,c=0;function f(){if(l>=u)return a;if(i)return i=!1,o;var e=l;if(34===t.charCodeAt(e)){for(var n=e;n++24?(isFinite(e)&&(clearTimeout(ke),ke=setTimeout(Ce,e)),_e=0):(_e=1,Ae(Ce))}function Se(){var t=Date.now();for(Te=Ee;Te;)t>=Te.t&&(Te.f=Te.c(t-Te.t)),Te=Te.n;return t}function Ne(){for(var t,e=Ee,n=1/0;e;)e.f?e=t?t.n=e.n:Ee=e.n:(e.t8?function(t){return t/n}:function(t){return t*n},symbol:t}}));function Le(t){var e=t.decimal,n=t.thousands,r=t.grouping,i=t.currency,a=r&&n?function(t,e){for(var i=t.length,o=[],a=0,s=r[0],u=0;i>0&&s>0&&(u+s+1>e&&(s=Math.max(1,e-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>e));)s=r[a=(a+1)%r.length];return o.reverse().join(n)}:q;return function(t){var n=qe.exec(t),r=n[1]||" ",s=n[2]||">",u=n[3]||"-",l=n[4]||"",c=n[5],f=+n[6],p=n[7],h=n[8],d=n[9],g=1,v="",m="",y=!1,x=!0;switch(h&&(h=+h.substring(1)),(c||"0"===r&&"="===s)&&(c=r="0",s="="),d){case"n":p=!0,d="g";break;case"%":g=100,m="%",d="f";break;case"p":g=100,m="%",d="r";break;case"b":case"o":case"x":case"X":"#"===l&&(v="0"+d.toLowerCase());case"c":x=!1;case"d":y=!0,h=0;break;case"s":g=-1,d="r"}"$"===l&&(v=i[0],m=i[1]),"r"!=d||h||(d="g"),null!=h&&("g"==d?h=Math.max(1,Math.min(21,h)):"e"!=d&&"f"!=d||(h=Math.max(0,Math.min(20,h)))),d=je.get(d)||Pe;var b=c&&p;return function(t){var n=m;if(y&&t%1)return"";var i=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===u?"":u;if(g<0){var l=o.formatPrefix(t,h);t=l.scale(t),n=l.symbol+m}else t*=g;var w,E,M=(t=d(t,h)).lastIndexOf(".");if(M<0){var _=x?t.lastIndexOf("e"):-1;_<0?(w=t,E=""):(w=t.substring(0,_),E=t.substring(_))}else w=t.substring(0,M),E=e+t.substring(M+1);!c&&p&&(w=a(w,1/0));var k=v.length+w.length+E.length+(b?0:i.length),T=k"===s?T+i+t:"^"===s?T.substring(0,k>>=1)+i+t+T.substring(k):i+(b?t:T+t))+n}}}o.formatPrefix=function(t,e){var n=0;return t&&(t<0&&(t*=-1),e&&(t=o.round(t,De(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Oe[8+n/3]};var qe=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,je=o.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=o.round(t,De(t,e))).toFixed(Math.max(0,Math.min(20,De(t*(1+1e-15),e))))}});function Pe(t){return t+""}var ze=o.time={},Ie=Date;function Re(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Re.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Fe.setUTCDate.apply(this._,arguments)},setDay:function(){Fe.setUTCDay.apply(this._,arguments)},setFullYear:function(){Fe.setUTCFullYear.apply(this._,arguments)},setHours:function(){Fe.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Fe.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Fe.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Fe.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Fe.setUTCSeconds.apply(this._,arguments)},setTime:function(){Fe.setTime.apply(this._,arguments)}};var Fe=Date.prototype;function He(t,e,n){function r(e){var n=t(e),r=o(n,1);return e-n1)for(;a=l)return-1;if(37===(i=e.charCodeAt(s++))){if(a=e.charAt(s++),!(o=E[a in We?e.charAt(s++):a])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}c.utc=function(t){var e=c(t);function n(t){try{var n=new(Ie=Re);return n._=t,e(n)}finally{Ie=Date}}return n.parse=function(t){try{Ie=Re;var n=e.parse(t);return n&&n._}finally{Ie=Date}},n.toString=e.toString,n},c.multi=c.utc.multi=pn;var p=o.map(),h=Ye(a),d=Ze(a),g=Ye(s),v=Ze(s),m=Ye(u),y=Ze(u),x=Ye(l),b=Ze(l);i.forEach((function(t,e){p.set(t.toLowerCase(),e)}));var w={a:function(t){return s[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:c(e),d:function(t,e){return Xe(t.getDate(),e,2)},e:function(t,e){return Xe(t.getDate(),e,2)},H:function(t,e){return Xe(t.getHours(),e,2)},I:function(t,e){return Xe(t.getHours()%12||12,e,2)},j:function(t,e){return Xe(1+ze.dayOfYear(t),e,3)},L:function(t,e){return Xe(t.getMilliseconds(),e,3)},m:function(t,e){return Xe(t.getMonth()+1,e,2)},M:function(t,e){return Xe(t.getMinutes(),e,2)},p:function(t){return i[+(t.getHours()>=12)]},S:function(t,e){return Xe(t.getSeconds(),e,2)},U:function(t,e){return Xe(ze.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Xe(ze.mondayOfYear(t),e,2)},x:c(n),X:c(r),y:function(t,e){return Xe(t.getFullYear()%100,e,2)},Y:function(t,e){return Xe(t.getFullYear()%1e4,e,4)},Z:cn,"%":function(){return"%"}},E={a:function(t,e,n){g.lastIndex=0;var r=g.exec(e.slice(n));return r?(t.w=v.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){h.lastIndex=0;var r=h.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){x.lastIndex=0;var r=x.exec(e.slice(n));return r?(t.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){m.lastIndex=0;var r=m.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,e,n){return f(t,w.c.toString(),e,n)},d:rn,e:rn,H:an,I:an,j:on,L:ln,m:nn,M:sn,p:function(t,e,n){var r=p.get(e.slice(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)},S:un,U:Ke,w:Ge,W:Qe,x:function(t,e,n){return f(t,w.x.toString(),e,n)},X:function(t,e,n){return f(t,w.X.toString(),e,n)},y:tn,Y:Je,Z:en,"%":fn};return c}ze.year=He((function(t){return(t=ze.day(t)).setMonth(0,1),t}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t){return t.getFullYear()})),ze.years=ze.year.range,ze.years.utc=ze.year.utc.range,ze.day=He((function(t){var e=new Ie(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t){return t.getDate()-1})),ze.days=ze.day.range,ze.days.utc=ze.day.utc.range,ze.dayOfYear=function(t){var e=ze.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((function(t,e){e=7-e;var n=ze[t]=He((function(t){return(t=ze.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t}),(function(t,e){t.setDate(t.getDate()+7*Math.floor(e))}),(function(t){var n=ze.year(t).getDay();return Math.floor((ze.dayOfYear(t)+(n+e)%7)/7)-(n!==e)}));ze[t+"s"]=n.range,ze[t+"s"].utc=n.utc.range,ze[t+"OfYear"]=function(t){var n=ze.year(t).getDay();return Math.floor((ze.dayOfYear(t)+(n+e)%7)/7)}})),ze.week=ze.sunday,ze.weeks=ze.sunday.range,ze.weeks.utc=ze.sunday.utc.range,ze.weekOfYear=ze.sundayOfYear;var We={"-":"",_:" ",0:"0"},Ve=/^\s*\d+/,$e=/^%/;function Xe(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3)}(+r[0]),n+r[0].length):-1}function en(t,e,n){return/^[+-]\d{4}$/.test(e=e.slice(n,n+5))?(t.Z=-e,n+5):-1}function nn(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function rn(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function on(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function an(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function sn(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function un(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ln(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function cn(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=E(e)/60|0,i=E(e)%60;return n+Xe(r,"0",2)+Xe(i,"0",2)}function fn(t,e,n){$e.lastIndex=0;var r=$e.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function pn(t){for(var e=t.length,n=-1;++n=0?1:-1,s=a*o,u=Math.cos(e),l=Math.sin(e),c=i*l,f=r*u+c*Math.cos(s),p=c*a*Math.sin(s);qn.add(Math.atan2(p,f)),n=t,r=u,i=l}jn.point=function(a,s){jn.point=o,n=(t=a)*Lt,r=Math.cos(s=(e=s)*Lt/2+St/4),i=Math.sin(s)},jn.lineEnd=function(){o(t,e)}}function zn(t){var e=t[0],n=t[1],r=Math.cos(n);return[r*Math.cos(e),r*Math.sin(e),Math.sin(n)]}function In(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Rn(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Fn(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Hn(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Bn(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Un(t){return[Math.atan2(t[1],t[0]),It(t[2])]}function Wn(t,e){return E(t[0]-e[0])At?r=90:l<-At&&(e=-90),f[0]=t,f[1]=n}};function h(i,o){c.push(f=[t=i,n=i]),or&&(r=o)}function d(o,a){var s=zn([o*Lt,a*Lt]);if(u){var l=Rn(u,s),c=Rn([l[1],-l[0],0],l);Bn(c),c=Un(c);var f=o-i,p=f>0?1:-1,d=c[0]*qt*p,g=E(f)>180;if(g^(p*ir&&(r=v);else if(g^(p*i<(d=(d+360)%360-180)&&dr&&(r=a);g?ob(t,n)&&(n=o):b(o,n)>b(t,n)&&(t=o):n>=t?(on&&(n=o)):o>i?b(t,o)>b(t,n)&&(n=o):b(o,n)>b(t,n)&&(t=o)}else h(o,a);u=s,i=o}function g(){p.point=d}function v(){f[0]=t,f[1]=n,p.point=h,u=null}function m(t,e){if(u){var n=t-i;l+=E(n)>180?n+(n>0?360:-360):n}else a=t,s=e;jn.point(t,e),d(t,e)}function y(){jn.lineStart()}function x(){m(a,s),jn.lineEnd(),E(l)>At&&(t=-(n=180)),f[0]=t,f[1]=n,u=null}function b(t,e){return(e-=t)<0?e+360:e}function w(t,e){return t[0]-e[0]}function M(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tb(g[0],g[1])&&(g[1]=h[1]),b(h[0],g[1])>b(g[0],g[1])&&(g[0]=h[0])):s.push(g=h);for(var u,l,h,d=-1/0,g=(a=0,s[l=s.length-1]);a<=l;g=h,++a)h=s[a],(u=b(g[1],h[0]))>d&&(d=u,t=h[0],n=g[1])}return c=f=null,t===1/0||e===1/0?[[NaN,NaN],[NaN,NaN]]:[[t,e],[n,r]]}}(),o.geo.centroid=function(t){Mn=_n=kn=Tn=An=Cn=Sn=Nn=Dn=On=Ln=0,o.geo.stream(t,Vn);var e=Dn,n=On,r=Ln,i=e*e+n*n+r*r;return i=0;--s)i.point((f=c[s])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}c=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function tr(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,M=E*w,_=M>St,k=d*x;if(qn.add(Math.atan2(k*E*Math.sin(M),g*b+k*Math.cos(M))),o+=_?w+E*Nt:w,_^p>=n^m>=n){var T=Rn(zn(f),zn(t));Bn(T);var A=Rn(i,T);Bn(A);var C=(_^w>=0?-1:1)*It(A[2]);(r>C||r===C&&(T[0]||T[1]))&&(a+=_^w>=0?1:-1)}if(!v++)break;p=m,d=x,g=b,f=t}}return(o<-At||o0){for(x||(a.polygonStart(),x=!0),a.lineStart();++o1&&2&e&&n.push(n.pop().concat(n.shift())),s.push(n.filter(rr))}return c}}function rr(t){return t.length>1}function ir(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:I,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function or(t,e){return((t=t.x)[0]<0?t[1]-Ot-At:Ot-t[1])-((e=e.x)[0]<0?e[1]-Ot-At:Ot-e[1])}var ar=nr(Qn,(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var s=o>0?St:-St,u=E(o-n);E(u-St)0?Ot:-Ot),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(o,r),e=0):i!==s&&u>=St&&(E(n-i)At?Math.atan((Math.sin(e)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(e))*Math.sin(t))/(i*o*a)):(e+r)/2}(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=o,r=a),i=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*Ot,r.point(-St,i),r.point(0,i),r.point(St,i),r.point(St,0),r.point(St,-i),r.point(0,-i),r.point(-St,-i),r.point(-St,0),r.point(-St,i);else if(E(t[0]-e[0])>At){var o=t[0]0,r=E(e)>At;return nr(i,(function(t){var e,s,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(f,p){var h,d=[f,p],g=i(f,p),v=n?g?0:a(f,p):g?a(f+(f<0?St:-St),p):0;if(!e&&(l=u=g)&&t.lineStart(),g!==u&&(h=o(e,d),(Wn(e,h)||Wn(d,h))&&(d[0]+=At,d[1]+=At,g=i(d[0],d[1]))),g!==u)c=0,g?(t.lineStart(),h=o(d,e),t.point(h[0],h[1])):(h=o(e,d),t.point(h[0],h[1]),t.lineEnd()),e=h;else if(r&&e&&n^g){var m;v&s||!(m=o(d,e,!0))||(c=0,n?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!g||e&&Wn(e,d)||t.point(d[0],d[1]),e=d,u=g,s=v},lineEnd:function(){u&&t.lineEnd(),e=null},clean:function(){return c|(l&&u)<<1}}}),Wr(t,6*Lt),n?[0,-t]:[-St,t-St]);function i(t,n){return Math.cos(t)*Math.cos(n)>e}function o(t,n,r){var i=[1,0,0],o=Rn(zn(t),zn(n)),a=In(o,o),s=o[0],u=a-s*s;if(!u)return!r&&t;var l=e*a/u,c=-e*s/u,f=Rn(i,o),p=Hn(i,l);Fn(p,Hn(o,c));var h=f,d=In(p,h),g=In(h,h),v=d*d-g*(In(p,p)-1);if(!(v<0)){var m=Math.sqrt(v),y=Hn(h,(-d-m)/g);if(Fn(y,p),y=Un(y),!r)return y;var x,b=t[0],w=n[0],M=t[1],_=n[1];w0^y[1]<(E(y[0]-b)St^(b<=y[0]&&y[0]<=w)){var A=Hn(h,(-d+m)/g);return Fn(A,p),[y,Un(A)]}}}function a(e,r){var i=n?t:St-t,o=0;return e<-i?o|=1:e>i&&(o|=2),r<-i?o|=4:r>i&&(o|=8),o}}function ur(t,e,n,r){return function(i){var o,a=i.a,s=i.b,u=a.x,l=a.y,c=0,f=1,p=s.x-u,h=s.y-l;if(o=t-u,p||!(o>0)){if(o/=p,p<0){if(o0){if(o>f)return;o>c&&(c=o)}if(o=n-u,p||!(o<0)){if(o/=p,p<0){if(o>f)return;o>c&&(c=o)}else if(p>0){if(o0)){if(o/=h,h<0){if(o0){if(o>f)return;o>c&&(c=o)}if(o=r-l,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>c&&(c=o)}else if(h>0){if(o0&&(i.a={x:u+c*p,y:l+c*h}),f<1&&(i.b={x:u+f*p,y:l+f*h}),i}}}}}}var lr=1e9;function cr(t,e,n,r){return function(u){var l,c,f,p,h,d,g,v,m,y,x,b=u,w=ir(),E=ur(t,e,n,r),M={point:T,lineStart:function(){M.point=A,c&&c.push(f=[]);y=!0,m=!1,g=v=NaN},lineEnd:function(){l&&(A(p,h),d&&m&&w.rejoin(),l.push(w.buffer()));M.point=T,m&&u.lineEnd()},polygonStart:function(){u=w,l=[],c=[],x=!0},polygonEnd:function(){u=b,l=o.merge(l);var e=function(t){for(var e=0,n=c.length,r=t[1],i=0;ir&&Pt(l,o,t)>0&&++e:o[1]<=r&&Pt(l,o,t)<0&&--e,l=o;return 0!==e}([t,r]),n=x&&e,i=l.length;(n||i)&&(u.polygonStart(),n&&(u.lineStart(),_(null,null,1,u),u.lineEnd()),i&&Jn(l,a,e,_,u),u.polygonEnd()),l=c=f=null}};function _(o,a,u,l){var c=0,f=0;if(null==o||(c=i(o,u))!==(f=i(a,u))||s(o,a)<0^u>0)do{l.point(0===c||3===c?t:n,c>1?r:e)}while((c=(c+u+4)%4)!==f);else l.point(a[0],a[1])}function k(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function T(t,e){k(t,e)&&u.point(t,e)}function A(t,e){var n=k(t=Math.max(-1e9,Math.min(lr,t)),e=Math.max(-1e9,Math.min(lr,e)));if(c&&f.push([t,e]),y)p=t,h=e,d=n,y=!1,n&&(u.lineStart(),u.point(t,e));else if(n&&m)u.point(t,e);else{var r={a:{x:g,y:v},b:{x:t,y:e}};E(r)?(m||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),n||u.lineEnd(),x=!1):n&&(u.lineStart(),u.point(t,e),x=!1)}g=t,v=e,m=n}return M};function i(r,i){return E(r[0]-t)0?0:3:E(r[0]-n)0?2:1:E(r[1]-e)0?1:0:i>0?3:2}function a(t,e){return s(t.x,e.x)}function s(t,e){var n=i(t,1),r=i(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}}function fr(t){var e=0,n=St/3,r=Pr(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*St/180,n=t[1]*St/180):[e/St*180,n/St*180]},i}function pr(t,e){var n=Math.sin(t),r=(n+Math.sin(e))/2,i=1+n*(2*r-n),o=Math.sqrt(i)/r;function a(t,e){var n=Math.sqrt(i-2*r*Math.sin(e))/r;return[n*Math.sin(t*=r),o-n*Math.cos(t)]}return a.invert=function(t,e){var n=o-e;return[Math.atan2(t,n)/r,It((i-(t*t+n*n)*r*r)/(2*r))]},a}o.geo.clipExtent=function(){var t,e,n,r,i,o,a={stream:function(t){return i&&(i.valid=!1),(i=o(t)).valid=!0,i},extent:function(s){return arguments.length?(o=cr(t=+s[0][0],e=+s[0][1],n=+s[1][0],r=+s[1][1]),i&&(i.valid=!1,i=null),a):[[t,e],[n,r]]}};return a.extent([[0,0],[960,500]])},(o.geo.conicEqualArea=function(){return fr(pr)}).raw=pr,o.geo.albers=function(){return o.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},o.geo.albersUsa=function(){var t,e,n,r,i=o.geo.albers(),a=o.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=o.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(e,n){t=[e,n]}};function l(i){var o=i[0],a=i[1];return t=null,e(o,a),t||(n(o,a),t)||r(o,a),t}return l.invert=function(t){var e=i.scale(),n=i.translate(),r=(t[0]-n[0])/e,o=(t[1]-n[1])/e;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?s:i).invert(t)},l.stream=function(t){var e=i.stream(t),n=a.stream(t),r=s.stream(t);return{point:function(t,i){e.point(t,i),n.point(t,i),r.point(t,i)},sphere:function(){e.sphere(),n.sphere(),r.sphere()},lineStart:function(){e.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){e.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){e.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){e.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},l.precision=function(t){return arguments.length?(i.precision(t),a.precision(t),s.precision(t),l):i.precision()},l.scale=function(t){return arguments.length?(i.scale(t),a.scale(.35*t),s.scale(t),l.translate(i.translate())):i.scale()},l.translate=function(t){if(!arguments.length)return i.translate();var o=i.scale(),c=+t[0],f=+t[1];return e=i.translate(t).clipExtent([[c-.455*o,f-.238*o],[c+.455*o,f+.238*o]]).stream(u).point,n=a.translate([c-.307*o,f+.201*o]).clipExtent([[c-.425*o+At,f+.12*o+At],[c-.214*o-At,f+.234*o-At]]).stream(u).point,r=s.translate([c-.205*o,f+.212*o]).clipExtent([[c-.214*o+At,f+.166*o+At],[c-.115*o-At,f+.234*o-At]]).stream(u).point,l},l.scale(1070)};var hr,dr,gr,vr,mr,yr,xr={point:I,lineStart:I,lineEnd:I,polygonStart:function(){dr=0,xr.lineStart=br},polygonEnd:function(){xr.lineStart=xr.lineEnd=xr.point=I,hr+=E(dr/2)}};function br(){var t,e,n,r;function i(t,e){dr+=r*t-n*e,n=t,r=e}xr.point=function(o,a){xr.point=i,t=n=o,e=r=a},xr.lineEnd=function(){i(t,e)}}var wr={point:function(t,e){tmr&&(mr=t);eyr&&(yr=e)},lineStart:I,lineEnd:I,polygonStart:I,polygonEnd:I};function Er(){var t=Mr(4.5),e=[],n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(e){return t=Mr(e),n},result:function(){if(e.length){var t=e.join("");return e=[],t}}};function r(n,r){e.push("M",n,",",r,t)}function i(t,r){e.push("M",t,",",r),n.point=o}function o(t,n){e.push("L",t,",",n)}function a(){n.point=r}function s(){e.push("Z")}return n}function Mr(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}var _r,kr={point:Tr,lineStart:Ar,lineEnd:Cr,polygonStart:function(){kr.lineStart=Sr},polygonEnd:function(){kr.point=Tr,kr.lineStart=Ar,kr.lineEnd=Cr}};function Tr(t,e){kn+=t,Tn+=e,++An}function Ar(){var t,e;function n(n,r){var i=n-t,o=r-e,a=Math.sqrt(i*i+o*o);Cn+=a*(t+n)/2,Sn+=a*(e+r)/2,Nn+=a,Tr(t=n,e=r)}kr.point=function(r,i){kr.point=n,Tr(t=r,e=i)}}function Cr(){kr.point=Tr}function Sr(){var t,e,n,r;function i(t,e){var i=t-n,o=e-r,a=Math.sqrt(i*i+o*o);Cn+=a*(n+t)/2,Sn+=a*(r+e)/2,Nn+=a,Dn+=(a=r*t-n*e)*(n+t),On+=a*(r+e),Ln+=3*a,Tr(n=t,r=e)}kr.point=function(o,a){kr.point=i,Tr(t=n=o,e=r=a)},kr.lineEnd=function(){i(t,e)}}function Nr(t){var e=4.5,n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(t){return e=t,n},result:I};function r(n,r){t.moveTo(n+e,r),t.arc(n,r,e,0,Nt)}function i(e,r){t.moveTo(e,r),n.point=o}function o(e,n){t.lineTo(e,n)}function a(){n.point=r}function s(){t.closePath()}return n}function Dr(t){var e=.5,n=Math.cos(30*Lt),r=16;function i(t){return(r?a:o)(t)}function o(e){return qr(e,(function(n,r){n=t(n,r),e.point(n[0],n[1])}))}function a(e){var n,i,o,a,u,l,c,f,p,h,d,g,v={point:m,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),v.lineStart=w},polygonEnd:function(){e.polygonEnd(),v.lineStart=y}};function m(n,r){n=t(n,r),e.point(n[0],n[1])}function y(){f=NaN,v.point=x,e.lineStart()}function x(n,i){var o=zn([n,i]),a=t(n,i);s(f,p,c,h,d,g,f=a[0],p=a[1],c=n,h=o[0],d=o[1],g=o[2],r,e),e.point(f,p)}function b(){v.point=m,e.lineEnd()}function w(){y(),v.point=E,v.lineEnd=M}function E(t,e){x(n=t,e),i=f,o=p,a=h,u=d,l=g,v.point=x}function M(){s(f,p,c,h,d,g,i,o,n,a,u,l,r,e),v.lineEnd=b,b()}return v}function s(r,i,o,a,u,l,c,f,p,h,d,g,v,m){var y=c-r,x=f-i,b=y*y+x*x;if(b>4*e&&v--){var w=a+h,M=u+d,_=l+g,k=Math.sqrt(w*w+M*M+_*_),T=Math.asin(_/=k),A=E(E(_)-1)e||E((y*D+x*O)/b-.5)>.3||a*h+u*d+l*g0&&16,i):Math.sqrt(e)},i}function Or(t){var e=Dr((function(e,n){return t([e*qt,n*qt])}));return function(t){return zr(e(t))}}function Lr(t){this.stream=t}function qr(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function jr(t){return Pr((function(){return t}))()}function Pr(t){var e,n,r,i,a,s,u=Dr((function(t,n){return[(t=e(t,n))[0]*l+i,a-t[1]*l]})),l=150,c=480,f=250,p=0,h=0,d=0,g=0,v=0,m=ar,y=q,x=null,b=null;function w(t){return[(t=r(t[0]*Lt,t[1]*Lt))[0]*l+i,a-t[1]*l]}function E(t){return(t=r.invert((t[0]-i)/l,(a-t[1])/l))&&[t[0]*qt,t[1]*qt]}function M(){r=Kn(n=Fr(d,g,v),e);var t=e(p,h);return i=c-t[0]*l,a=f+t[1]*l,_()}function _(){return s&&(s.valid=!1,s=null),w}return w.stream=function(t){return s&&(s.valid=!1),(s=zr(m(n,u(y(t))))).valid=!0,s},w.clipAngle=function(t){return arguments.length?(m=null==t?(x=t,ar):sr((x=+t)*Lt),_()):x},w.clipExtent=function(t){return arguments.length?(b=t,y=t?cr(t[0][0],t[0][1],t[1][0],t[1][1]):q,_()):b},w.scale=function(t){return arguments.length?(l=+t,M()):l},w.translate=function(t){return arguments.length?(c=+t[0],f=+t[1],M()):[c,f]},w.center=function(t){return arguments.length?(p=t[0]%360*Lt,h=t[1]%360*Lt,M()):[p*qt,h*qt]},w.rotate=function(t){return arguments.length?(d=t[0]%360*Lt,g=t[1]%360*Lt,v=t.length>2?t[2]%360*Lt:0,M()):[d*qt,g*qt,v*qt]},o.rebind(w,u,"precision"),function(){return e=t.apply(this,arguments),w.invert=e.invert&&E,M()}}function zr(t){return qr(t,(function(e,n){t.point(e*Lt,n*Lt)}))}function Ir(t,e){return[t,e]}function Rr(t,e){return[t>St?t-Nt:t<-St?t+Nt:t,e]}function Fr(t,e,n){return t?e||n?Kn(Br(t),Ur(e,n)):Br(t):e||n?Ur(e,n):Rr}function Hr(t){return function(e,n){return[(e+=t)>St?e-Nt:e<-St?e+Nt:e,n]}}function Br(t){var e=Hr(t);return e.invert=Hr(-t),e}function Ur(t,e){var n=Math.cos(t),r=Math.sin(t),i=Math.cos(e),o=Math.sin(e);function a(t,e){var a=Math.cos(e),s=Math.cos(t)*a,u=Math.sin(t)*a,l=Math.sin(e),c=l*n+s*r;return[Math.atan2(u*i-c*o,s*n-l*r),It(c*i+u*o)]}return a.invert=function(t,e){var a=Math.cos(e),s=Math.cos(t)*a,u=Math.sin(t)*a,l=Math.sin(e),c=l*i-u*o;return[Math.atan2(u*i+l*o,s*n+c*r),It(c*n-s*r)]},a}function Wr(t,e){var n=Math.cos(t),r=Math.sin(t);return function(i,o,a,s){var u=a*e;null!=i?(i=Vr(n,i),o=Vr(n,o),(a>0?io)&&(i+=a*Nt)):(i=t+a*Nt,o=t-.5*u);for(var l,c=i;a>0?c>o:c2?t[2]*Lt:0),e.invert=function(e){return(e=t.invert(e[0]*Lt,e[1]*Lt))[0]*=qt,e[1]*=qt,e},e},Rr.invert=Ir,o.geo.circle=function(){var t,e,n=[0,0],r=6;function i(){var t="function"==typeof n?n.apply(this,arguments):n,r=Fr(-t[0]*Lt,-t[1]*Lt,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=r(t,e)),t[0]*=qt,t[1]*=qt}}),{type:"Polygon",coordinates:[i]}}return i.origin=function(t){return arguments.length?(n=t,i):n},i.angle=function(n){return arguments.length?(e=Wr((t=+n)*Lt,r*Lt),i):t},i.precision=function(n){return arguments.length?(e=Wr(t*Lt,(r=+n)*Lt),i):r},i.angle(90)},o.geo.distance=function(t,e){var n,r=(e[0]-t[0])*Lt,i=t[1]*Lt,o=e[1]*Lt,a=Math.sin(r),s=Math.cos(r),u=Math.sin(i),l=Math.cos(i),c=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((n=f*a)*n+(n=l*c-u*f*s)*n),u*c+l*f*s)},o.geo.graticule=function(){var t,e,n,r,i,a,s,u,l,c,f,p,h=10,d=h,g=90,v=360,m=2.5;function y(){return{type:"MultiLineString",coordinates:x()}}function x(){return o.range(Math.ceil(r/g)*g,n,g).map(f).concat(o.range(Math.ceil(u/v)*v,s,v).map(p)).concat(o.range(Math.ceil(e/h)*h,t,h).filter((function(t){return E(t%g)>At})).map(l)).concat(o.range(Math.ceil(a/d)*d,i,d).filter((function(t){return E(t%v)>At})).map(c))}return y.lines=function(){return x().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(p(s).slice(1),f(n).reverse().slice(1),p(u).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.majorExtent(t).minorExtent(t):y.minorExtent()},y.majorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],u=+t[0][1],s=+t[1][1],r>n&&(t=r,r=n,n=t),u>s&&(t=u,u=s,s=t),y.precision(m)):[[r,u],[n,s]]},y.minorExtent=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),a>i&&(n=a,a=i,i=n),y.precision(m)):[[e,a],[t,i]]},y.step=function(t){return arguments.length?y.majorStep(t).minorStep(t):y.minorStep()},y.majorStep=function(t){return arguments.length?(g=+t[0],v=+t[1],y):[g,v]},y.minorStep=function(t){return arguments.length?(h=+t[0],d=+t[1],y):[h,d]},y.precision=function(o){return arguments.length?(m=+o,l=$r(a,i,90),c=Xr(e,t,m),f=$r(u,s,90),p=Xr(r,n,m),y):m},y.majorExtent([[-180,-90+At],[180,90-At]]).minorExtent([[-180,-80-At],[180,80+At]])},o.geo.greatArc=function(){var t,e,n=Yr,r=Zr;function i(){return{type:"LineString",coordinates:[t||n.apply(this,arguments),e||r.apply(this,arguments)]}}return i.distance=function(){return o.geo.distance(t||n.apply(this,arguments),e||r.apply(this,arguments))},i.source=function(e){return arguments.length?(n=e,t="function"==typeof e?null:e,i):n},i.target=function(t){return arguments.length?(r=t,e="function"==typeof t?null:t,i):r},i.precision=function(){return arguments.length?i:0},i},o.geo.interpolate=function(t,e){return function(t,e,n,r){var i=Math.cos(e),o=Math.sin(e),a=Math.cos(r),s=Math.sin(r),u=i*Math.cos(t),l=i*Math.sin(t),c=a*Math.cos(n),f=a*Math.sin(n),p=2*Math.asin(Math.sqrt(Ft(r-e)+i*a*Ft(n-t))),h=1/Math.sin(p),d=p?function(t){var e=Math.sin(t*=p)*h,n=Math.sin(p-t)*h,r=n*u+e*c,i=n*l+e*f,a=n*o+e*s;return[Math.atan2(i,r)*qt,Math.atan2(a,Math.sqrt(r*r+i*i))*qt]}:function(){return[t*qt,e*qt]};return d.distance=p,d}(t[0]*Lt,t[1]*Lt,e[0]*Lt,e[1]*Lt)},o.geo.length=function(t){return _r=0,o.geo.stream(t,Gr),_r};var Gr={sphere:I,point:I,lineStart:function(){var t,e,n;function r(r,i){var o=Math.sin(i*=Lt),a=Math.cos(i),s=E((r*=Lt)-t),u=Math.cos(s);_r+=Math.atan2(Math.sqrt((s=a*Math.sin(s))*s+(s=n*o-e*a*u)*s),e*o+n*a*u),t=r,e=o,n=a}Gr.point=function(i,o){t=i*Lt,e=Math.sin(o*=Lt),n=Math.cos(o),Gr.point=r},Gr.lineEnd=function(){Gr.point=Gr.lineEnd=I}},lineEnd:I,polygonStart:I,polygonEnd:I};function Kr(t,e){function n(e,n){var r=Math.cos(e),i=Math.cos(n),o=t(r*i);return[o*i*Math.sin(e),o*Math.sin(n)]}return n.invert=function(t,n){var r=Math.sqrt(t*t+n*n),i=e(r),o=Math.sin(i),a=Math.cos(i);return[Math.atan2(t*o,r*a),Math.asin(r&&n*o/r)]},n}var Qr=Kr((function(t){return Math.sqrt(2/(1+t))}),(function(t){return 2*Math.asin(t/2)}));(o.geo.azimuthalEqualArea=function(){return jr(Qr)}).raw=Qr;var Jr=Kr((function(t){var e=Math.acos(t);return e&&e/Math.sin(e)}),q);function ti(t,e){var n=Math.cos(t),r=function(t){return Math.tan(St/4+t/2)},i=t===e?Math.sin(t):Math.log(n/Math.cos(e))/Math.log(r(e)/r(t)),o=n*Math.pow(r(t),i)/i;if(!i)return ri;function a(t,e){o>0?e<-Ot+At&&(e=-Ot+At):e>Ot-At&&(e=Ot-At);var n=o/Math.pow(r(e),i);return[n*Math.sin(i*t),o-n*Math.cos(i*t)]}return a.invert=function(t,e){var n=o-e,r=jt(i)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/i,2*Math.atan(Math.pow(o/r,1/i))-Ot]},a}function ei(t,e){var n=Math.cos(t),r=t===e?Math.sin(t):(n-Math.cos(e))/(e-t),i=n/r+t;if(E(r)1&&Pt(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function fi(t,e){return t[0]-e[0]||t[1]-e[1]}(o.geo.stereographic=function(){return jr(ai)}).raw=ai,si.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Ot]},(o.geo.transverseMercator=function(){var t=ii(si),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90])}).raw=si,o.geom={},o.geom.hull=function(t){var e=ui,n=li;if(arguments.length)return r(t);function r(t){if(t.length<3)return[];var r,i=xe(e),o=xe(n),a=t.length,s=[],u=[];for(r=0;r=0;--r)h.push(t[s[l[r]][2]]);for(r=+f;rAt)s=s.L;else{if(!((i=o-Si(s,a))>At)){r>-At?(e=s.P,n=s):i>-At?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}var u=_i(t);if(yi.insert(e,u),e||n){if(e===n)return qi(e),n=_i(e.site),yi.insert(u,n),u.edge=n.edge=zi(e.site,u.site),Li(e),void Li(n);if(n){qi(e),qi(n);var l=e.site,c=l.x,f=l.y,p=t.x-c,h=t.y-f,d=n.site,g=d.x-c,v=d.y-f,m=2*(p*v-h*g),y=p*p+h*h,x=g*g+v*v,b={x:(v*y-h*x)/m+c,y:(p*x-g*y)/m+f};Ri(n.edge,l,d,b),u.edge=zi(l,t,null,b),n.edge=zi(t,d,null,b),Li(e),Li(n)}else u.edge=zi(e.site,u.site)}}function Ci(t,e){var n=t.site,r=n.x,i=n.y,o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var s=(n=a.site).x,u=n.y,l=u-e;if(!l)return s;var c=s-r,f=1/o-1/l,p=c/l;return f?(-p+Math.sqrt(p*p-2*f*(c*c/(-2*l)-u+l/2+i-o/2)))/f+r:(r+s)/2}function Si(t,e){var n=t.N;if(n)return Ci(n,e);var r=t.site;return r.y===e?r.x:1/0}function Ni(t){this.site=t,this.edges=[]}function Di(t,e){return e.angle-t.angle}function Oi(){Bi(this),this.x=this.y=this.arc=this.site=this.cy=null}function Li(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,o=n.site;if(r!==o){var a=i.x,s=i.y,u=r.x-a,l=r.y-s,c=o.x-a,f=2*(u*(v=o.y-s)-l*c);if(!(f>=-Ct)){var p=u*u+l*l,h=c*c+v*v,d=(v*p-l*h)/f,g=(u*h-c*p)/f,v=g+s,m=Ei.pop()||new Oi;m.arc=t,m.site=i,m.x=d+a,m.y=v+Math.sqrt(d*d+g*g),m.cy=v,t.circle=m;for(var y=null,x=bi._;x;)if(m.y=s)return;if(p>d){if(o){if(o.y>=l)return}else o={x:v,y:u};n={x:v,y:l}}else{if(o){if(o.y1)if(p>d){if(o){if(o.y>=l)return}else o={x:(u-i)/r,y:u};n={x:(l-i)/r,y:l}}else{if(o){if(o.y=s)return}else o={x:a,y:r*a+i};n={x:s,y:r*s+i}}else{if(o){if(o.xAt||E(i-n)>At)&&(s.splice(a,0,new Fi(Ii(o.site,c,E(r-f)At?{x:f,y:E(e-f)At?{x:E(n-d)At?{x:p,y:E(e-p)At?{x:E(n-h)=n&&l.x<=i&&l.y>=r&&l.y<=a?[[n,a],[i,a],[i,r],[n,r]]:[]).point=t[s]})),e}function s(t){return t.map((function(t,e){return{x:Math.round(r(t,e)/At)*At,y:Math.round(i(t,e)/At)*At,i:e}}))}return a.links=function(t){return $i(s(t)).edges.filter((function(t){return t.l&&t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},a.triangles=function(t){var e=[];return $i(s(t)).cells.forEach((function(n,r){for(var i,o,a,s,u=n.site,l=n.edges.sort(Di),c=-1,f=l.length,p=l[f-1].edge,h=p.l===u?p.r:p.l;++co||f>a||p=w)<<1|e>=b,M=E+4;Eo&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:eo(n,r)})),o=io.lastIndex;return og&&(g=u.x),u.y>v&&(v=u.y),l.push(u.x),c.push(u.y);else for(f=0;fg&&(g=x),b>v&&(v=b),l.push(x),c.push(b)}var w=g-h,M=v-d;function _(t,e,n,r,i,o,a,s){if(!isNaN(n)&&!isNaN(r))if(t.leaf){var u=t.x,l=t.y;if(null!=u)if(E(u-n)+E(l-r)<.01)k(t,e,n,r,i,o,a,s);else{var c=t.point;t.x=t.y=t.point=null,k(t,c,u,l,i,o,a,s),k(t,e,n,r,i,o,a,s)}else t.x=n,t.y=r,t.point=e}else k(t,e,n,r,i,o,a,s)}function k(t,e,n,r,i,o,a,s){var u=.5*(i+a),l=.5*(o+s),c=n>=u,f=r>=l,p=f<<1|c;t.leaf=!1,c?i=u:a=u,f?o=l:s=l,_(t=t.nodes[p]||(t.nodes[p]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,n,r,i,o,a,s)}w>M?v=d+w:g=h+M;var T={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){_(T,t,+m(t,++f),+y(t,f),h,d,g,v)},visit:function(t){Ki(t,T,h,d,g,v)},find:function(t){return Qi(T,t[0],t[1],h,d,g,v)}};if(f=-1,null==e){for(;++f=0&&!(n=o.interpolators[r](t,e)););return n}function ao(t,e){var n,r=[],i=[],o=t.length,a=e.length,s=Math.min(t.length,e.length);for(n=0;n=1?1:t(e)}}function fo(t){return function(e){return 1-t(1-e)}}function po(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function ho(t){return t*t}function go(t){return t*t*t}function vo(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}function mo(t){return 1-Math.cos(t*Ot)}function yo(t){return Math.pow(2,10*(t-1))}function xo(t){return 1-Math.sqrt(1-t*t)}function bo(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function wo(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function Eo(t){var e,n,r,i=[t.a,t.b],o=[t.c,t.d],a=_o(i),s=Mo(i,o),u=_o(((e=o)[0]+=(r=-s)*(n=i)[0],e[1]+=r*n[1],e))||0;i[0]*o[1]=0?t.slice(0,e):t,r=e>=0?t.slice(e+1):"in";return n=uo.get(n)||so,co((r=lo.get(r)||q)(n.apply(null,a.call(arguments,1))))},o.interpolateHcl=function(t,e){t=o.hcl(t),e=o.hcl(e);var n=t.h,r=t.c,i=t.l,a=e.h-n,s=e.c-r,u=e.l-i;isNaN(s)&&(s=0,r=isNaN(r)?e.c:r);isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:a<-180&&(a+=360);return function(t){return Kt(n+a*t,r+s*t,i+u*t)+""}},o.interpolateHsl=function(t,e){t=o.hsl(t),e=o.hsl(e);var n=t.h,r=t.s,i=t.l,a=e.h-n,s=e.s-r,u=e.l-i;isNaN(s)&&(s=0,r=isNaN(r)?e.s:r);isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:a<-180&&(a+=360);return function(t){return Yt(n+a*t,r+s*t,i+u*t)+""}},o.interpolateLab=function(t,e){t=o.lab(t),e=o.lab(e);var n=t.l,r=t.a,i=t.b,a=e.l-n,s=e.a-r,u=e.b-i;return function(t){return re(n+a*t,r+s*t,i+u*t)+""}},o.interpolateRound=wo,o.transform=function(t){var e=u.createElementNS(o.ns.prefix.svg,"g");return(o.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new Eo(n?n.matrix:ko)})(t)},Eo.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var ko={a:1,b:0,c:0,d:1,e:0,f:0};function To(t,e){var n,r=[],i=[],a=o.transform(t),s=o.transform(e),u=a.translate,l=s.translate,c=a.rotate,f=s.rotate,p=a.skew,h=s.skew,d=a.scale,g=s.scale;return u[0]!=l[0]||u[1]!=l[1]?(r.push("translate(",null,",",null,")"),i.push({i:1,x:eo(u[0],l[0])},{i:3,x:eo(u[1],l[1])})):l[0]||l[1]?r.push("translate("+l+")"):r.push(""),c!=f?(c-f>180?f+=360:f-c>180&&(c+=360),i.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:eo(c,f)})):f&&r.push(r.pop()+"rotate("+f+")"),p!=h?i.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:eo(p,h)}):h&&r.push(r.pop()+"skewX("+h+")"),d[0]!=g[0]||d[1]!=g[1]?(n=r.push(r.pop()+"scale(",null,",",null,")"),i.push({i:n-4,x:eo(d[0],g[0])},{i:n-2,x:eo(d[1],g[1])})):1==g[0]&&1==g[1]||r.push(r.pop()+"scale("+g+")"),n=i.length,function(t){for(var e,o=-1;++o0?t:0:t>0&&(s.start({type:"start",alpha:e=t}),o.timer(a.tick)),a):e},a.start=function(){var t,e,o,s=v.length,l=m.length,h=u[0],d=u[1];for(t=0;t=0;)n.push(i[r])}function Ho(t,e){for(var n=[t],r=[];null!=(t=n.pop());)if(r.push(t),(o=t.children)&&(i=o.length))for(var i,o,a=-1;++a=0;)a.push(c=l[u]),c.parent=o,c.depth=o.depth+1;n&&(o.value=0),o.children=l}else n&&(o.value=+n.call(r,o,o.depth)||0),delete o.children;return Ho(i,(function(e){var r,i;t&&(r=e.children)&&r.sort(t),n&&(i=e.parent)&&(i.value+=e.value)})),s}return r.sort=function(e){return arguments.length?(t=e,r):t},r.children=function(t){return arguments.length?(e=t,r):e},r.value=function(t){return arguments.length?(n=t,r):n},r.revalue=function(t){return n&&(Fo(t,(function(t){t.children&&(t.value=0)})),Ho(t,(function(t){var e;t.children||(t.value=+n.call(r,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)}))),t},r},o.layout.partition=function(){var t=o.layout.hierarchy(),e=[1,1];function n(t,e,r,i){var o=t.children;if(t.x=e,t.y=t.depth*i,t.dx=r,t.dy=i,o&&(a=o.length)){var a,s,u,l=-1;for(r=t.value?r/t.value:0;++ls&&(s=r),a.push(r)}for(n=0;ni&&(r=n,i=e);return r}function ea(t){return t.reduce(na,0)}function na(t,e){return t+e[1]}function ra(t,e){return ia(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function ia(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,o=[];++n<=e;)o[n]=i*n+r;return o}function oa(t){return[o.min(t),o.max(t)]}function aa(t,e){return t.value-e.value}function sa(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function ua(t,e){t._pack_next=e,e._pack_prev=t}function la(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return.999*i*i>n*n+r*r}function ca(t){if((e=t.children)&&(u=e.length)){var e,n,r,i,o,a,s,u,l=1/0,c=-1/0,f=1/0,p=-1/0;if(e.forEach(fa),(n=e[0]).x=-n.r,n.y=0,x(n),u>1&&((r=e[1]).x=r.r,r.y=0,x(r),u>2))for(da(n,r,i=e[2]),x(i),sa(n,i),n._pack_prev=i,sa(i,r),r=n._pack_next,o=3;o0)for(a=-1;++a=f[0]&&u<=f[1]&&((s=l[o.bisect(p,u,1,d)-1]).y+=g,s.push(i[a]));return l}return i.value=function(t){return arguments.length?(e=t,i):e},i.range=function(t){return arguments.length?(n=xe(t),i):n},i.bins=function(t){return arguments.length?(r="number"==typeof t?function(e){return ia(e,t)}:xe(t),i):r},i.frequency=function(e){return arguments.length?(t=!!e,i):t},i},o.layout.pack=function(){var t,e=o.layout.hierarchy().sort(aa),n=0,r=[1,1];function i(i,o){var a=e.call(this,i,o),s=a[0],u=r[0],l=r[1],c=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(s.x=s.y=0,Ho(s,(function(t){t.r=+c(t.value)})),Ho(s,ca),n){var f=n*(t?1:Math.max(2*s.r/u,2*s.r/l))/2;Ho(s,(function(t){t.r+=f})),Ho(s,ca),Ho(s,(function(t){t.r-=f}))}return ha(s,u/2,l/2,t?1:1/Math.max(2*s.r/u,2*s.r/l)),a}return i.size=function(t){return arguments.length?(r=t,i):r},i.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,i):t},i.padding=function(t){return arguments.length?(n=+t,i):n},Ro(i,e)},o.layout.tree=function(){var t=o.layout.hierarchy().sort(null).value(null),e=ga,n=[1,1],r=null;function i(i,o){var l=t.call(this,i,o),c=l[0],f=function(t){var e,n={A:null,children:[t]},r=[n];for(;null!=(e=r.pop());)for(var i,o=e.children,a=0,s=o.length;ah.x&&(h=t),t.depth>d.depth&&(d=t)}));var g=e(p,h)/2-p.x,v=n[0]/(h.x+e(h,p)/2+g),m=n[1]/(d.depth||1);Fo(c,(function(t){t.x=(t.x+g)*v,t.y=t.depth*m}))}return l}function a(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n.length){!function(t){var e,n=0,r=0,i=t.children,o=i.length;for(;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,s=n,u=o.parent.children[0],l=o.m,c=a.m,f=s.m,p=u.m;s=ma(s),o=va(o),s&&o;)u=va(u),(a=ma(a)).a=t,(i=s.z+f-o.z-l+e(s._,o._))>0&&(ya(xa(s,t,r),t,i),l+=i,c+=i),f+=s.m,l+=o.m,p+=u.m,c+=a.m;s&&!ma(a)&&(a.t=s,a.m+=f-c),o&&!va(u)&&(u.t=o,u.m+=l-p,r=t)}return r}(t,i,t.parent.A||r[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n[0],t.y=t.depth*n[1]}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(t){return arguments.length?(r=null==(n=t)?u:null,i):r?null:n},i.nodeSize=function(t){return arguments.length?(r=null==(n=t)?null:u,i):r?n:null},Ro(i,t)},o.layout.cluster=function(){var t=o.layout.hierarchy().sort(null).value(null),e=ga,n=[1,1],r=!1;function i(i,a){var s,u=t.call(this,i,a),l=u[0],c=0;Ho(l,(function(t){var n=t.children;n&&n.length?(t.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(n),t.y=function(t){return 1+o.max(t,(function(t){return t.y}))}(n)):(t.x=s?c+=e(t,s):0,t.y=0,s=t)}));var f=ba(l),p=wa(l),h=f.x-e(f,p)/2,d=p.x+e(p,f)/2;return Ho(l,r?function(t){t.x=(t.x-l.x)*n[0],t.y=(l.y-t.y)*n[1]}:function(t){t.x=(t.x-h)/(d-h)*n[0],t.y=(1-(l.y?t.y/l.y:1))*n[1]}),u}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(t){return arguments.length?(r=null==(n=t),i):r?null:n},i.nodeSize=function(t){return arguments.length?(r=null!=(n=t),i):r?n:null},Ro(i,t)},o.layout.treemap=function(){var t,e=o.layout.hierarchy(),n=Math.round,r=[1,1],i=null,a=Ea,s=!1,u="squarify",l=.5*(1+Math.sqrt(5));function c(t,e){for(var n,r,i=-1,o=t.length;++i0;)s.push(n=l[i-1]),s.area+=n.area,"squarify"!==u||(r=h(s,g))<=p?(l.pop(),p=r):(s.area-=s.pop().area,d(s,g,o,!1),g=Math.min(o.dx,o.dy),s.length=s.area=0,p=1/0);s.length&&(d(s,g,o,!0),s.length=s.area=0),e.forEach(f)}}function p(t){var e=t.children;if(e&&e.length){var n,r=a(t),i=e.slice(),o=[];for(c(i,r.dx*r.dy/t.value),o.area=0;n=i.pop();)o.push(n),o.area+=n.area,null!=n.z&&(d(o,n.z?r.dx:r.dy,r,!i.length),o.length=o.area=0);e.forEach(p)}}function h(t,e){for(var n,r=t.area,i=0,o=1/0,a=-1,s=t.length;++ai&&(i=n));return e*=e,(r*=r)?Math.max(e*i*l/r,r/(e*o*l)):1/0}function d(t,e,r,i){var o,a=-1,s=t.length,u=r.x,l=r.y,c=e?n(t.area/e):0;if(e==r.dx){for((i||c>r.dy)&&(c=r.dy);++ar.dx)&&(c=r.dx);++a1);return t+e*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=o.random.normal.apply(o,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=o.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;n2?Sa:Ta,u=r?Co:Ao;return i=a(t,e,u,n),o=a(e,t,u,oo),s}function s(t){return i(t)}return s.invert=function(t){return o(t)},s.domain=function(e){return arguments.length?(t=e.map(Number),a()):t},s.range=function(t){return arguments.length?(e=t,a()):e},s.rangeRound=function(t){return s.range(t).interpolate(wo)},s.clamp=function(t){return arguments.length?(r=t,a()):r},s.interpolate=function(t){return arguments.length?(n=t,a()):n},s.ticks=function(e){return qa(t,e)},s.tickFormat=function(e,n){return ja(t,e,n)},s.nice=function(e){return Oa(t,e),a()},s.copy=function(){return Na(t,e,n,r)},a()}function Da(t,e){return o.rebind(t,e,"range","rangeRound","interpolate","clamp")}function Oa(t,e){return Aa(t,(n=La(t,e)[2])?{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}:Ca);var n}function La(t,e){null==e&&(e=10);var n=_a(t),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),o=e/r*i;return o<=.15?i*=10:o<=.35?i*=5:o<=.75&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function qa(t,e){return o.range.apply(o,La(t,e))}function ja(t,e,n){var r=La(t,e);if(n){var i=qe.exec(n);if(i.shift(),"s"===i[8]){var a=o.formatPrefix(Math.max(E(r[0]),E(r[1])));return i[7]||(i[7]="."+za(a.scale(r[2]))),i[8]="f",n=o.format(i.join("")),function(t){return n(a.scale(t))+a.symbol}}i[7]||(i[7]="."+function(t,e){var n=za(e[2]);return t in Pa?Math.abs(n-za(Math.max(E(e[0]),E(e[1]))))+ +("e"!==t):n-2*("%"===t)}(i[8],r)),n=i.join("")}else n=",."+za(r[2])+"f";return o.format(n)}o.scale.linear=function(){return Na([0,1],[0,1],oo,!1)};var Pa={s:1,g:1,p:1,r:1,e:1};function za(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function Ia(t,e,n,r){function i(t){return(n?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function a(t){return n?Math.pow(e,t):-Math.pow(e,-t)}function s(e){return t(i(e))}return s.invert=function(e){return a(t.invert(e))},s.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((r=e.map(Number)).map(i)),s):r},s.base=function(n){return arguments.length?(e=+n,t.domain(r.map(i)),s):e},s.nice=function(){var e=Aa(r.map(i),n?Math:Fa);return t.domain(e),r=e.map(a),s},s.ticks=function(){var t=_a(r),o=[],s=t[0],u=t[1],l=Math.floor(i(s)),c=Math.ceil(i(u)),f=e%1?2:e;if(isFinite(c-l)){if(n){for(;l0;p--)o.push(a(l)*p);for(l=0;o[l]u;c--);o=o.slice(l,c)}return o},s.tickFormat=function(t,e){if(!arguments.length)return Ra;arguments.length<2?e=Ra:"function"!=typeof e&&(e=o.format(e));var r,u=Math.max(.1,t/s.ticks().length),l=n?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(t){return t/a(l(i(t)+r))<=u?e(t):""}},s.copy=function(){return Ia(t.copy(),e,n,r)},Da(s,t)}o.scale.log=function(){return Ia(o.scale.linear().domain([0,1]),10,!0,[1,10])};var Ra=o.format(".0e"),Fa={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Ha(t,e,n){var r=Ba(e),i=Ba(1/e);function o(e){return t(r(e))}return o.invert=function(e){return i(t.invert(e))},o.domain=function(e){return arguments.length?(t.domain((n=e.map(Number)).map(r)),o):n},o.ticks=function(t){return qa(n,t)},o.tickFormat=function(t,e){return ja(n,t,e)},o.nice=function(t){return o.domain(Oa(n,t))},o.exponent=function(a){return arguments.length?(r=Ba(e=a),i=Ba(1/e),t.domain(n.map(r)),o):e},o.copy=function(){return Ha(t.copy(),e,n)},Da(o,t)}function Ba(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Ua(t,e){var n,r,i;function a(i){return r[((n.get(i)||("range"===e.t?n.set(i,t.push(i)):NaN))-1)%r.length]}function s(e,n){return o.range(t.length).map((function(t){return e+n*t}))}return a.domain=function(r){if(!arguments.length)return t;t=[],n=new k;for(var i,o=-1,s=r.length;++o0?n[r-1]:t[0],rf?0:1;if(l=Dt)return u(l,h)+(s?u(s,1-h):"")+"Z";var d,g,v,m,y,x,b,w,E,M,_,k,T=0,A=0,C=[];if((m=(+a.apply(this,arguments)||0)/2)&&(v=r===Ja?Math.sqrt(s*s+l*l):+r.apply(this,arguments),h||(A*=-1),l&&(A=It(v/l*Math.sin(m))),s&&(T=It(v/s*Math.sin(m)))),l){y=l*Math.cos(c+A),x=l*Math.sin(c+A),b=l*Math.cos(f-A),w=l*Math.sin(f-A);var S=Math.abs(f-c-2*A)<=St?0:1;if(A&&os(y,x,b,w)===h^S){var N=(c+f)/2;y=l*Math.cos(N),x=l*Math.sin(N),b=w=null}}else y=x=0;if(s){E=s*Math.cos(f-T),M=s*Math.sin(f-T),_=s*Math.cos(c+T),k=s*Math.sin(c+T);var D=Math.abs(c-f+2*T)<=St?0:1;if(T&&os(E,M,_,k)===1-h^D){var O=(c+f)/2;E=s*Math.cos(O),M=s*Math.sin(O),_=k=null}}else E=M=0;if((d=Math.min(Math.abs(l-s)/2,+n.apply(this,arguments)))>.001){g=s0?0:1}function as(t,e,n,r,i){var o=t[0]-e[0],a=t[1]-e[1],s=(i?r:-r)/Math.sqrt(o*o+a*a),u=s*a,l=-s*o,c=t[0]+u,f=t[1]+l,p=e[0]+u,h=e[1]+l,d=(c+p)/2,g=(f+h)/2,v=p-c,m=h-f,y=v*v+m*m,x=n-r,b=c*h-p*f,w=(m<0?-1:1)*Math.sqrt(x*x*y-b*b),E=(b*m-v*w)/y,M=(-b*v-m*w)/y,_=(b*m+v*w)/y,k=(-b*v+m*w)/y,T=E-d,A=M-g,C=_-d,S=k-g;return T*T+A*A>C*C+S*S&&(E=_,M=k),[[E-u,M-l],[E*n/x,M*n/x]]}function ss(t){var e=ui,n=li,r=Qn,i=ls,o=i.key,a=.7;function s(o){var s,u=[],l=[],c=-1,f=o.length,p=xe(e),h=xe(n);function d(){u.push("M",i(t(l),a))}for(;++c1&&i.push("H",r[0]);return i.join("")},"step-before":cs,"step-after":fs,basis:ds,"basis-open":function(t){if(t.length<4)return ls(t);var e,n=[],r=-1,i=t.length,o=[0],a=[0];for(;++r<3;)e=t[r],o.push(e[0]),a.push(e[1]);n.push(gs(ys,o)+","+gs(ys,a)),--r;for(;++r9&&(i=3*e/Math.sqrt(i),a[s]=i*n,a[s+1]=i*r);s=-1;for(;++s<=u;)i=(t[Math.min(u,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),o.push([i||0,a[s]*i||0]);return o}(t))}});function ls(t){return t.join("L")}function cs(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e1){s=e[1],o=t[u],u++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(o[0]-s[0])+","+(o[1]-s[1])+","+o[0]+","+o[1];for(var l=2;lSt)+",1 "+e}function u(t,e,n,r){return"Q 0,0 "+r}return o.radius=function(t){return arguments.length?(n=xe(t),o):n},o.source=function(e){return arguments.length?(t=xe(e),o):t},o.target=function(t){return arguments.length?(e=xe(t),o):e},o.startAngle=function(t){return arguments.length?(r=xe(t),o):r},o.endAngle=function(t){return arguments.length?(i=xe(t),o):i},o},o.svg.diagonal=function(){var t=Yr,e=Zr,n=_s;function r(r,i){var o=t.call(this,r,i),a=e.call(this,r,i),s=(o.y+a.y)/2,u=[o,{x:o.x,y:s},{x:a.x,y:s},a];return"M"+(u=u.map(n))[0]+"C"+u[1]+" "+u[2]+" "+u[3]}return r.source=function(e){return arguments.length?(t=xe(e),r):t},r.target=function(t){return arguments.length?(e=xe(t),r):e},r.projection=function(t){return arguments.length?(n=t,r):n},r},o.svg.diagonal.radial=function(){var t=o.svg.diagonal(),e=_s,n=t.projection;return t.projection=function(t){return arguments.length?n(ks(e=t)):e},t},o.svg.symbol=function(){var t=As,e=Ts;function n(n,r){return(Ss.get(t.call(this,n,r))||Cs)(e.call(this,n,r))}return n.type=function(e){return arguments.length?(t=xe(e),n):t},n.size=function(t){return arguments.length?(e=xe(t),n):e},n};var Ss=o.map({circle:Cs,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*Ds)),n=e*Ds;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/Ns),n=e*Ns/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/Ns),n=e*Ns/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});o.svg.symbolTypes=Ss.keys();var Ns=Math.sqrt(3),Ds=Math.tan(30*Lt);G.transition=function(t){for(var e,n,r=js||++Is,i=Hs(t),o=[],a=Ps||{time:Date.now(),ease:vo,delay:0,duration:250},s=-1,u=this.length;++sr)return v();var i=a[a.active];i&&(--a.count,delete a[a.active],i.event&&i.event.interrupt.call(t,t.__data__,i.index)),a.active=r,s.event&&s.event.start.call(t,t.__data__,e),s.tween.forEach((function(n,r){(r=r.call(t,t.__data__,e))&&h.push(r)})),c=s.ease,l=s.duration,o.timer((function(){return p.c=g(n||1)?Qn:g,1}),0,u)}function g(n){if(a.active!==r)return 1;for(var i=n/l,o=c(i),u=h.length;u>0;)h[--u].call(t,o);return i>=1?(s.event&&s.event.end.call(t,t.__data__,e),v()):void 0}function v(){return--a.count?delete a[r]:delete t[n],1}p.c=d}),0,u)}}zs.call=G.call,zs.empty=G.empty,zs.node=G.node,zs.size=G.size,o.transition=function(t,e){return t&&t.transition?js?t.transition(e):t:o.selection().transition(t)},o.transition.prototype=zs,zs.select=function(t){var e,n,r,i=this.id,o=this.namespace,a=[];t=K(t);for(var s=-1,u=this.length;++srect,.s>rect").attr("width",a[1]-a[0])}function g(t){t.select(".extent").attr("y",s[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",s[1]-s[0])}function v(){var f,v,m=this,y=o.select(o.event.target),x=n.of(m,arguments),b=o.select(m),w=y.datum(),E=!/^(n|s)$/.test(w)&&r,M=!/^(e|w)$/.test(w)&&i,_=y.classed("extent"),k=Mt(m),T=o.mouse(m),A=o.select(c(m)).on("keydown.brush",N).on("keyup.brush",D);if(o.event.changedTouches?A.on("touchmove.brush",O).on("touchend.brush",q):A.on("mousemove.brush",O).on("mouseup.brush",q),b.interrupt().selectAll("*").interrupt(),_)T[0]=a[0]-T[0],T[1]=s[0]-T[1];else if(w){var C=+/w$/.test(w),S=+/^n/.test(w);v=[a[1-C]-T[0],s[1-S]-T[1]],T[0]=a[C],T[1]=s[S]}else o.event.altKey&&(f=T.slice());function N(){32==o.event.keyCode&&(_||(f=null,T[0]-=a[1],T[1]-=s[1],_=2),H())}function D(){32==o.event.keyCode&&2==_&&(T[0]+=a[1],T[1]+=s[1],_=0,H())}function O(){var t=o.mouse(m),e=!1;v&&(t[0]+=v[0],t[1]+=v[1]),_||(o.event.altKey?(f||(f=[(a[0]+a[1])/2,(s[0]+s[1])/2]),T[0]=a[+(t[0]1?{floor:function(e){for(;s(e=t.floor(e));)e=tu(e-1);return e},ceil:function(e){for(;s(e=t.ceil(e));)e=tu(+e+1);return e}}:t))},r.ticks=function(t,e){var n=_a(r.domain()),o=null==t?i(n,10):"number"==typeof t?i(n,t):!t.range&&[{range:t},e];return o&&(t=o[0],e=o[1]),t.range(n[0],tu(+n[1]+1),e<1?1:e)},r.tickFormat=function(){return n},r.copy=function(){return Js(t.copy(),e,n)},Da(r,t)}function tu(t){return new Date(t)}Zs.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Qs:Ks,Qs.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},Qs.toString=Ks.toString,ze.second=He((function(t){return new Ie(1e3*Math.floor(t/1e3))}),(function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))}),(function(t){return t.getSeconds()})),ze.seconds=ze.second.range,ze.seconds.utc=ze.second.utc.range,ze.minute=He((function(t){return new Ie(6e4*Math.floor(t/6e4))}),(function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))}),(function(t){return t.getMinutes()})),ze.minutes=ze.minute.range,ze.minutes.utc=ze.minute.utc.range,ze.hour=He((function(t){var e=t.getTimezoneOffset()/60;return new Ie(36e5*(Math.floor(t/36e5-e)+e))}),(function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))}),(function(t){return t.getHours()})),ze.hours=ze.hour.range,ze.hours.utc=ze.hour.utc.range,ze.month=He((function(t){return(t=ze.day(t)).setDate(1),t}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t){return t.getMonth()})),ze.months=ze.month.range,ze.months.utc=ze.month.utc.range;var eu=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],nu=[[ze.second,1],[ze.second,5],[ze.second,15],[ze.second,30],[ze.minute,1],[ze.minute,5],[ze.minute,15],[ze.minute,30],[ze.hour,1],[ze.hour,3],[ze.hour,6],[ze.hour,12],[ze.day,1],[ze.day,2],[ze.week,1],[ze.month,1],[ze.month,3],[ze.year,1]],ru=Zs.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",Qn]]),iu={range:function(t,e,n){return o.range(Math.ceil(t/n)*n,+e,n).map(tu)},floor:q,ceil:q};nu.year=ze.year,ze.scale=function(){return Js(o.scale.linear(),nu,ru)};var ou=nu.map((function(t){return[t[0].utc,t[1]]})),au=Gs.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",Qn]]);function su(t){return JSON.parse(t.responseText)}function uu(t){var e=u.createRange();return e.selectNode(u.body),e.createContextualFragment(t.responseText)}ou.year=ze.year.utc,ze.scale.utc=function(){return Js(o.scale.linear(),ou,au)},o.text=be((function(t){return t.responseText})),o.json=function(t,e){return we(t,"application/json",su,e)},o.html=function(t,e){return we(t,"text/html",uu,e)},o.xml=be((function(t){return t.responseXML})),void 0===(i="function"==typeof(r=o)?r.call(e,n,e,t):r)||(t.exports=i),this.d3=o}()},662:(t,e,n)=>{var r={};"d3"in n.g&&(r.d3=n.g.d3),t.exports=n(78),"d3"in r?n.g.d3=r.d3:delete n.g.d3},755:function(t,e){var n; +var FeatureViewer;(()=>{var t={568:(t,e,n)=>{n(755),n(662);n.g.jQuery=n(755),n(662),n(244),n(813),n(892);const r=n(228),i=n(219),o=n(788).NXUtils,a=n(788).NXViewerUtils,s=n(623);n(810).mixin(r.prototype),t.exports={createFeature:r,Nextprot:i,NXUtils:o,NXViewerUtils:a,nxFeatureViewer:s}},713:function(t,e){!function(){var n=Array.prototype.forEach,r=Object.prototype.hasOwnProperty,i=Array.prototype.slice,o=0;var a,s={keys:Object.keys||function(t){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("keys() called on a non-object");var e,n=[];for(e in t)t.hasOwnProperty(e)&&(n[n.length]=e);return n},uniqueId:function(t){var e=++o+"";return t?t+e:e},has:function(t,e){return r.call(t,e)},each:function(t,e,r){if(null!=t)if(n&&t.forEach===n)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,o=t.length;i{t.exports=n(713)},810:(t,e,n)=>{var r=n(979);r.onAll=function(t,e){return this.on("all",t,e),this},r.oldMixin=r.mixin,r.mixin=function(t){r.oldMixin(t);for(var e=["onAll"],n=0;n{"use strict";n.r(e),n.d(e,{default:()=>l});var r=n(147),i=n(244);const o={...i.default.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},a={...i.default.DefaultType,content:"(string|element|function)"},s={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class u extends i.default{static get Default(){return o}static get NAME(){return"popover"}static get Event(){return s}static get DefaultType(){return a}isWithContent(){return this.getTitle()||this._getContent()}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(t,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(t){return this.each((function(){const e=u.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}(0,r.pF)(u);const l=u},244:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>ke});var r={};n.r(r),n.d(r,{afterMain:()=>E,afterRead:()=>b,afterWrite:()=>k,applyStyles:()=>L,arrow:()=>Q,auto:()=>u,basePlacements:()=>l,beforeMain:()=>w,beforeRead:()=>y,beforeWrite:()=>_,bottom:()=>o,clippingParents:()=>p,computeStyles:()=>et,createPopper:()=>Ot,createPopperBase:()=>Dt,createPopperLite:()=>Lt,detectOverflow:()=>yt,end:()=>f,eventListeners:()=>rt,flip:()=>xt,hide:()=>Mt,left:()=>s,main:()=>M,modifierPhases:()=>T,offset:()=>Et,placements:()=>m,popper:()=>d,popperGenerator:()=>Nt,popperOffsets:()=>_t,preventOverflow:()=>At,read:()=>x,reference:()=>g,right:()=>a,start:()=>c,top:()=>i,variationPlacements:()=>v,viewport:()=>h,write:()=>A});var i="top",o="bottom",a="right",s="left",u="auto",l=[i,o,a,s],c="start",f="end",p="clippingParents",h="viewport",d="popper",g="reference",v=l.reduce((function(t,e){return t.concat([e+"-"+c,e+"-"+f])}),[]),m=[].concat(l,[u]).reduce((function(t,e){return t.concat([e,e+"-"+c,e+"-"+f])}),[]),y="beforeRead",x="read",b="afterRead",w="beforeMain",M="main",E="afterMain",_="beforeWrite",A="write",k="afterWrite",T=[y,x,b,w,M,E,_,A,k];function C(t){return t?(t.nodeName||"").toLowerCase():null}function S(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function N(t){return t instanceof S(t).Element||t instanceof Element}function D(t){return t instanceof S(t).HTMLElement||t instanceof HTMLElement}function O(t){return"undefined"!=typeof ShadowRoot&&(t instanceof S(t).ShadowRoot||t instanceof ShadowRoot)}const L={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];D(i)&&C(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});D(r)&&C(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]};function q(t){return t.split("-")[0]}var j=Math.round;function P(t,e){void 0===e&&(e=!1);var n=t.getBoundingClientRect(),r=1,i=1;return D(t)&&e&&(r=n.width/t.offsetWidth||1,i=n.height/t.offsetHeight||1),{width:j(n.width/r),height:j(n.height/i),top:j(n.top/i),right:j(n.right/r),bottom:j(n.bottom/i),left:j(n.left/r),x:j(n.left/r),y:j(n.top/i)}}function z(t){var e=P(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function I(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&O(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function R(t){return S(t).getComputedStyle(t)}function F(t){return["table","td","th"].indexOf(C(t))>=0}function H(t){return((N(t)?t.ownerDocument:t.document)||window.document).documentElement}function B(t){return"html"===C(t)?t:t.assignedSlot||t.parentNode||(O(t)?t.host:null)||H(t)}function U(t){return D(t)&&"fixed"!==R(t).position?t.offsetParent:null}function W(t){for(var e=S(t),n=U(t);n&&F(n)&&"static"===R(n).position;)n=U(n);return n&&("html"===C(n)||"body"===C(n)&&"static"===R(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&D(t)&&"fixed"===R(t).position)return null;for(var n=B(t);D(n)&&["html","body"].indexOf(C(n))<0;){var r=R(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(t)||e}function V(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var $=Math.max,X=Math.min,Y=Math.round;function G(t,e,n){return $(t,X(e,n))}function Z(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function K(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}const Q={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,r=t.name,u=t.options,c=n.elements.arrow,f=n.modifiersData.popperOffsets,p=q(n.placement),h=V(p),d=[s,a].indexOf(p)>=0?"height":"width";if(c&&f){var g=function(t,e){return Z("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:K(t,l))}(u.padding,n),v=z(c),m="y"===h?i:s,y="y"===h?o:a,x=n.rects.reference[d]+n.rects.reference[h]-f[h]-n.rects.popper[d],b=f[h]-n.rects.reference[h],w=W(c),M=w?"y"===h?w.clientHeight||0:w.clientWidth||0:0,E=x/2-b/2,_=g[m],A=M-v[d]-g[y],k=M/2-v[d]/2+E,T=G(_,k,A),C=h;n.modifiersData[r]=((e={})[C]=T,e.centerOffset=T-k,e)}},effect:function(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&I(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var J={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tt(t){var e,n=t.popper,r=t.popperRect,u=t.placement,l=t.offsets,c=t.position,f=t.gpuAcceleration,p=t.adaptive,h=t.roundOffsets,d=!0===h?function(t){var e=t.x,n=t.y,r=window.devicePixelRatio||1;return{x:Y(Y(e*r)/r)||0,y:Y(Y(n*r)/r)||0}}(l):"function"==typeof h?h(l):l,g=d.x,v=void 0===g?0:g,m=d.y,y=void 0===m?0:m,x=l.hasOwnProperty("x"),b=l.hasOwnProperty("y"),w=s,M=i,E=window;if(p){var _=W(n),A="clientHeight",k="clientWidth";_===S(n)&&"static"!==R(_=H(n)).position&&(A="scrollHeight",k="scrollWidth"),_=_,u===i&&(M=o,y-=_[A]-r.height,y*=f?1:-1),u===s&&(w=a,v-=_[k]-r.width,v*=f?1:-1)}var T,C=Object.assign({position:c},p&&J);return f?Object.assign({},C,((T={})[M]=b?"0":"",T[w]=x?"0":"",T.transform=(E.devicePixelRatio||1)<2?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",T)):Object.assign({},C,((e={})[M]=b?y+"px":"",e[w]=x?v+"px":"",e.transform="",e))}const et={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,l={placement:q(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,tt(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,tt(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var nt={passive:!0};const rt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,u=S(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&l.forEach((function(t){t.addEventListener("scroll",n.update,nt)})),s&&u.addEventListener("resize",n.update,nt),function(){o&&l.forEach((function(t){t.removeEventListener("scroll",n.update,nt)})),s&&u.removeEventListener("resize",n.update,nt)}},data:{}};var it={left:"right",right:"left",bottom:"top",top:"bottom"};function ot(t){return t.replace(/left|right|bottom|top/g,(function(t){return it[t]}))}var at={start:"end",end:"start"};function st(t){return t.replace(/start|end/g,(function(t){return at[t]}))}function ut(t){var e=S(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lt(t){return P(H(t)).left+ut(t).scrollLeft}function ct(t){var e=R(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ft(t){return["html","body","#document"].indexOf(C(t))>=0?t.ownerDocument.body:D(t)&&ct(t)?t:ft(B(t))}function pt(t,e){var n;void 0===e&&(e=[]);var r=ft(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),o=S(r),a=i?[o].concat(o.visualViewport||[],ct(r)?r:[]):r,s=e.concat(a);return i?s:s.concat(pt(B(a)))}function ht(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function dt(t,e){return e===h?ht(function(t){var e=S(t),n=H(t),r=e.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+lt(t),y:s}}(t)):D(e)?function(t){var e=P(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):ht(function(t){var e,n=H(t),r=ut(t),i=null==(e=t.ownerDocument)?void 0:e.body,o=$(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=$(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+lt(t),u=-r.scrollTop;return"rtl"===R(i||n).direction&&(s+=$(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}(H(t)))}function gt(t,e,n){var r="clippingParents"===e?function(t){var e=pt(B(t)),n=["absolute","fixed"].indexOf(R(t).position)>=0&&D(t)?W(t):t;return N(n)?e.filter((function(t){return N(t)&&I(t,n)&&"body"!==C(t)})):[]}(t):[].concat(e),i=[].concat(r,[n]),o=i[0],a=i.reduce((function(e,n){var r=dt(t,n);return e.top=$(r.top,e.top),e.right=X(r.right,e.right),e.bottom=X(r.bottom,e.bottom),e.left=$(r.left,e.left),e}),dt(t,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function vt(t){return t.split("-")[1]}function mt(t){var e,n=t.reference,r=t.element,u=t.placement,l=u?q(u):null,p=u?vt(u):null,h=n.x+n.width/2-r.width/2,d=n.y+n.height/2-r.height/2;switch(l){case i:e={x:h,y:n.y-r.height};break;case o:e={x:h,y:n.y+n.height};break;case a:e={x:n.x+n.width,y:d};break;case s:e={x:n.x-r.width,y:d};break;default:e={x:n.x,y:n.y}}var g=l?V(l):null;if(null!=g){var v="y"===g?"height":"width";switch(p){case c:e[g]=e[g]-(n[v]/2-r[v]/2);break;case f:e[g]=e[g]+(n[v]/2-r[v]/2)}}return e}function yt(t,e){void 0===e&&(e={});var n=e,r=n.placement,s=void 0===r?t.placement:r,u=n.boundary,c=void 0===u?p:u,f=n.rootBoundary,v=void 0===f?h:f,m=n.elementContext,y=void 0===m?d:m,x=n.altBoundary,b=void 0!==x&&x,w=n.padding,M=void 0===w?0:w,E=Z("number"!=typeof M?M:K(M,l)),_=y===d?g:d,A=t.elements.reference,k=t.rects.popper,T=t.elements[b?_:y],C=gt(N(T)?T:T.contextElement||H(t.elements.popper),c,v),S=P(A),D=mt({reference:S,element:k,strategy:"absolute",placement:s}),O=ht(Object.assign({},k,D)),L=y===d?O:S,q={top:C.top-L.top+E.top,bottom:L.bottom-C.bottom+E.bottom,left:C.left-L.left+E.left,right:L.right-C.right+E.right},j=t.modifiersData.offset;if(y===d&&j){var z=j[s];Object.keys(q).forEach((function(t){var e=[a,o].indexOf(t)>=0?1:-1,n=[i,o].indexOf(t)>=0?"y":"x";q[t]+=z[n]*e}))}return q}const xt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var f=n.mainAxis,p=void 0===f||f,h=n.altAxis,d=void 0===h||h,g=n.fallbackPlacements,y=n.padding,x=n.boundary,b=n.rootBoundary,w=n.altBoundary,M=n.flipVariations,E=void 0===M||M,_=n.allowedAutoPlacements,A=e.options.placement,k=q(A),T=g||(k===A||!E?[ot(A)]:function(t){if(q(t)===u)return[];var e=ot(t);return[st(t),e,st(e)]}(A)),C=[A].concat(T).reduce((function(t,n){return t.concat(q(n)===u?function(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?m:u,f=vt(r),p=f?s?v:v.filter((function(t){return vt(t)===f})):l,h=p.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=p);var d=h.reduce((function(e,n){return e[n]=yt(t,{placement:n,boundary:i,rootBoundary:o,padding:a})[q(n)],e}),{});return Object.keys(d).sort((function(t,e){return d[t]-d[e]}))}(e,{placement:n,boundary:x,rootBoundary:b,padding:y,flipVariations:E,allowedAutoPlacements:_}):n)}),[]),S=e.rects.reference,N=e.rects.popper,D=new Map,O=!0,L=C[0],j=0;j=0,F=R?"width":"height",H=yt(e,{placement:P,boundary:x,rootBoundary:b,altBoundary:w,padding:y}),B=R?I?a:s:I?o:i;S[F]>N[F]&&(B=ot(B));var U=ot(B),W=[];if(p&&W.push(H[z]<=0),d&&W.push(H[B]<=0,H[U]<=0),W.every((function(t){return t}))){L=P,O=!1;break}D.set(P,W)}if(O)for(var V=function(t){var e=C.find((function(e){var n=D.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return L=e,"break"},$=E?3:1;$>0;$--){if("break"===V($))break}e.placement!==L&&(e.modifiersData[r]._skip=!0,e.placement=L,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function bt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function wt(t){return[i,a,o,s].some((function(e){return t[e]>=0}))}const Mt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=yt(e,{elementContext:"reference"}),s=yt(e,{altBoundary:!0}),u=bt(a,r),l=bt(s,i,o),c=wt(u),f=wt(l);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}};const Et={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,o=n.offset,u=void 0===o?[0,0]:o,l=m.reduce((function(t,n){return t[n]=function(t,e,n){var r=q(t),o=[s,i].indexOf(r)>=0?-1:1,u="function"==typeof n?n(Object.assign({},e,{placement:t})):n,l=u[0],c=u[1];return l=l||0,c=(c||0)*o,[s,a].indexOf(r)>=0?{x:c,y:l}:{x:l,y:c}}(n,e.rects,u),t}),{}),c=l[e.placement],f=c.x,p=c.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=p),e.modifiersData[r]=l}};const _t={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=mt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};const At={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,u=n.mainAxis,l=void 0===u||u,f=n.altAxis,p=void 0!==f&&f,h=n.boundary,d=n.rootBoundary,g=n.altBoundary,v=n.padding,m=n.tether,y=void 0===m||m,x=n.tetherOffset,b=void 0===x?0:x,w=yt(e,{boundary:h,rootBoundary:d,padding:v,altBoundary:g}),M=q(e.placement),E=vt(e.placement),_=!E,A=V(M),k="x"===A?"y":"x",T=e.modifiersData.popperOffsets,C=e.rects.reference,S=e.rects.popper,N="function"==typeof b?b(Object.assign({},e.rects,{placement:e.placement})):b,D={x:0,y:0};if(T){if(l||p){var O="y"===A?i:s,L="y"===A?o:a,j="y"===A?"height":"width",P=T[A],I=T[A]+w[O],R=T[A]-w[L],F=y?-S[j]/2:0,H=E===c?C[j]:S[j],B=E===c?-S[j]:-C[j],U=e.elements.arrow,Y=y&&U?z(U):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=Z[O],Q=Z[L],J=G(0,C[j],Y[j]),tt=_?C[j]/2-F-J-K-N:H-J-K-N,et=_?-C[j]/2+F+J+Q+N:B+J+Q+N,nt=e.elements.arrow&&W(e.elements.arrow),rt=nt?"y"===A?nt.clientTop||0:nt.clientLeft||0:0,it=e.modifiersData.offset?e.modifiersData.offset[e.placement][A]:0,ot=T[A]+tt-it-rt,at=T[A]+et-it;if(l){var st=G(y?X(I,ot):I,P,y?$(R,at):R);T[A]=st,D[A]=st-P}if(p){var ut="x"===A?i:s,lt="x"===A?o:a,ct=T[k],ft=ct+w[ut],pt=ct-w[lt],ht=G(y?X(ft,ot):ft,ct,y?$(pt,at):pt);T[k]=ht,D[k]=ht-ct}}e.modifiersData[r]=D}},requiresIfExists:["offset"]};function kt(t,e,n){void 0===n&&(n=!1);var r,i,o=D(e),a=D(e)&&function(t){var e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return 1!==n||1!==r}(e),s=H(e),u=P(t,a),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&(("body"!==C(e)||ct(s))&&(l=(r=e)!==S(r)&&D(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:ut(r)),D(e)?((c=P(e,!0)).x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=lt(s))),{x:u.left+l.scrollLeft-c.x,y:u.top+l.scrollTop-c.y,width:u.width,height:u.height}}function Tt(t){var e=new Map,n=new Set,r=[];function i(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var r=e.get(t);r&&i(r)}})),r.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||i(t)})),r}var Ct={placement:"bottom",modifiers:[],strategy:"absolute"};function St(){for(var t=arguments.length,e=new Array(t),n=0;n{const n=t.nodeName.toLowerCase();if(e.includes(n))return!jt.has(n)||Boolean(Pt.test(t.nodeValue)||zt.test(t.nodeValue));const r=e.filter((t=>t instanceof RegExp));for(let t=0,e=r.length;t{It(t,s)||n.removeAttribute(t.nodeName)}))}return r.body.innerHTML}const Ht=new Map,Bt={set(t,e,n){Ht.has(t)||Ht.set(t,new Map);const r=Ht.get(t);r.has(e)||0===r.size?r.set(e,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(t,e)=>Ht.has(t)&&Ht.get(t).get(e)||null,remove(t,e){if(!Ht.has(t))return;const n=Ht.get(t);n.delete(e),0===n.size&&Ht.delete(t)}},Ut=/[^.]*(?=\..*)\.|.*/,Wt=/\..*/,Vt=/::\d+$/,$t={};let Xt=1;const Yt={mouseenter:"mouseover",mouseleave:"mouseout"},Gt=/^(mouseenter|mouseleave)/i,Zt=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Kt(t,e){return e&&`${e}::${Xt++}`||t.uidEvent||Xt++}function Qt(t){const e=Kt(t);return t.uidEvent=e,$t[e]=$t[e]||{},$t[e]}function Jt(t,e,n=null){const r=Object.keys(t);for(let i=0,o=r.length;ifunction(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r?r=t(r):n=t(n)}const[o,a,s]=te(e,n,r),u=Qt(t),l=u[s]||(u[s]={}),c=Jt(l,a,o?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const f=Kt(a,e.replace(Ut,"")),p=o?function(t,e,n){return function r(i){const o=t.querySelectorAll(e);for(let{target:a}=i;a&&a!==this;a=a.parentNode)for(let s=o.length;s--;)if(o[s]===a)return i.delegateTarget=a,r.oneOff&&ie.off(t,i.type,e,n),n.apply(a,[i]);return null}}(t,n,r):function(t,e){return function n(r){return r.delegateTarget=t,n.oneOff&&ie.off(t,r.type,e),e.apply(t,[r])}}(t,n);p.delegationSelector=o?n:null,p.originalHandler=a,p.oneOff=i,p.uidEvent=f,l[f]=p,t.addEventListener(s,p,o)}function ne(t,e,n,r,i){const o=Jt(e[n],r,i);o&&(t.removeEventListener(n,o,Boolean(i)),delete e[n][o.uidEvent])}function re(t){return t=t.replace(Wt,""),Yt[t]||t}const ie={on(t,e,n,r){ee(t,e,n,r,!1)},one(t,e,n,r){ee(t,e,n,r,!0)},off(t,e,n,r){if("string"!=typeof e||!t)return;const[i,o,a]=te(e,n,r),s=a!==e,u=Qt(t),l=e.startsWith(".");if(void 0!==o){if(!u||!u[a])return;return void ne(t,u,a,o,i?n:null)}l&&Object.keys(u).forEach((n=>{!function(t,e,n,r){const i=e[n]||{};Object.keys(i).forEach((o=>{if(o.includes(r)){const r=i[o];ne(t,e,n,r.originalHandler,r.delegationSelector)}}))}(t,u,n,e.slice(1))}));const c=u[a]||{};Object.keys(c).forEach((n=>{const r=n.replace(Vt,"");if(!s||e.includes(r)){const e=c[n];ne(t,u,a,e.originalHandler,e.delegationSelector)}}))},trigger(t,e,n){if("string"!=typeof e||!t)return null;const r=(0,qt.KF)(),i=re(e),o=e!==i,a=Zt.has(i);let s,u=!0,l=!0,c=!1,f=null;return o&&r&&(s=r.Event(e,n),r(t).trigger(s),u=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),c=s.isDefaultPrevented()),a?(f=document.createEvent("HTMLEvents"),f.initEvent(i,u,!0)):f=new CustomEvent(e,{bubbles:u,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((t=>{Object.defineProperty(f,t,{get:()=>n[t]})})),c&&f.preventDefault(),l&&t.dispatchEvent(f),f.defaultPrevented&&void 0!==s&&s.preventDefault(),f}},oe=ie;function ae(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function se(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const ue={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${se(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${se(e)}`)},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter((t=>t.startsWith("bs"))).forEach((n=>{let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),e[r]=ae(t.dataset[n])})),e},getDataAttribute:(t,e)=>ae(t.getAttribute(`data-bs-${se(e)}`)),offset(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},position:t=>({top:t.offsetTop,left:t.offsetLeft})},le={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const n=[];let r=t.parentNode;for(;r&&r.nodeType===Node.ELEMENT_NODE&&3!==r.nodeType;)r.matches(e)&&n.push(r),r=r.parentNode;return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(", ");return this.find(e,t).filter((t=>!(0,qt.pK)(t)&&(0,qt.pn)(t)))}};const ce=class{constructor(t){(t=(0,qt.sb)(t))&&(this._element=t,Bt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Bt.remove(this._element,this.constructor.DATA_KEY),oe.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((t=>{this[t]=null}))}_queueCallback(t,e,n=!0){(0,qt.e0)(t,e,n)}static getInstance(t){return Bt.get((0,qt.sb)(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.1.0"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}},fe="tooltip",pe=new Set(["sanitize","allowList","sanitizeFn"]),he={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},de={AUTO:"auto",TOP:"top",RIGHT:(0,qt.dZ)()?"left":"right",BOTTOM:"bottom",LEFT:(0,qt.dZ)()?"right":"left"},ge={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:Rt,popperConfig:null},ve={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},me="fade",ye="show",xe="show",be="out",we=".modal",Me="hide.bs.modal",Ee="hover",_e="focus";class Ae extends ce{constructor(t,e){if(void 0===r)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return ge}static get NAME(){return fe}static get Event(){return ve}static get DefaultType(){return he}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(ye))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),oe.off(this._element.closest(we),Me,this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const t=oe.trigger(this._element,this.constructor.Event.SHOW),e=(0,qt.L8)(this._element),n=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!n)return;const r=this.getTipElement(),i=(0,qt.Kr)(this.constructor.NAME);r.setAttribute("id",i),this._element.setAttribute("aria-describedby",i),this._config.animation&&r.classList.add(me);const o="function"==typeof this._config.placement?this._config.placement.call(this,r,this._element):this._config.placement,a=this._getAttachment(o);this._addAttachmentClass(a);const{container:s}=this._config;Bt.set(r,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(r),oe.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Ot(this._element,r,this._getPopperConfig(a)),r.classList.add(ye);const u=this._resolvePossibleFunction(this._config.customClass);u&&r.classList.add(...u.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>{oe.on(t,"mouseover",qt.ZT)}));const l=this.tip.classList.contains(me);this._queueCallback((()=>{const t=this._hoverState;this._hoverState=null,oe.trigger(this._element,this.constructor.Event.SHOWN),t===be&&this._leave(null,this)}),this.tip,l)}hide(){if(!this._popper)return;const t=this.getTipElement();if(oe.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(ye),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>oe.off(t,"mouseover",qt.ZT))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const e=this.tip.classList.contains(me);this._queueCallback((()=>{this._isWithActiveTrigger()||(this._hoverState!==xe&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),oe.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))}),this.tip,e),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");t.innerHTML=this._config.template;const e=t.children[0];return this.setContent(e),e.classList.remove(me,ye),this.tip=e,this.tip}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),".tooltip-inner")}_sanitizeAndSetContent(t,e,n){const r=le.findOne(n,t);e||!r?this.setElementContent(r,e):r.remove()}setElementContent(t,e){if(null!==t)return(0,qt.kK)(e)?(e=(0,qt.sb)(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.append(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=Ft(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){const t=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(t)}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){return e||this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(t)}`)}_getAttachment(t){return de[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((t=>{if("click"===t)oe.on(this._element,this.constructor.Event.CLICK,this._config.selector,(t=>this.toggle(t)));else if("manual"!==t){const e=t===Ee?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=t===Ee?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;oe.on(this._element,e,this._config.selector,(t=>this._enter(t))),oe.on(this._element,n,this._config.selector,(t=>this._leave(t)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},oe.on(this._element.closest(we),Me,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?_e:Ee]=!0),e.getTipElement().classList.contains(ye)||e._hoverState===xe?e._hoverState=xe:(clearTimeout(e._timeout),e._hoverState=xe,e._config.delay&&e._config.delay.show?e._timeout=setTimeout((()=>{e._hoverState===xe&&e.show()}),e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?_e:Ee]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=be,e._config.delay&&e._config.delay.hide?e._timeout=setTimeout((()=>{e._hoverState===be&&e.hide()}),e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=ue.getDataAttributes(this._element);return Object.keys(e).forEach((t=>{pe.has(t)&&delete e[t]})),(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:(0,qt.sb)(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),(0,qt.zE)(fe,t,this.constructor.DefaultType),t.sanitize&&(t.template=Ft(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),n=t.getAttribute("class").match(e);null!==n&&n.length>0&&n.map((t=>t.trim())).forEach((e=>t.classList.remove(e)))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}static jQueryInterface(t){return this.each((function(){const e=Ae.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}(0,qt.pF)(Ae);const ke=Ae},147:(t,e,n)=>{"use strict";n.d(e,{sb:()=>a,Kr:()=>i,kK:()=>o,zE:()=>s,pn:()=>u,pK:()=>l,L8:()=>c,ZT:()=>f,KF:()=>p,dZ:()=>d,pF:()=>g,e0:()=>m});const r="transitionend",i=t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t},o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),a=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,s=(t,e,n)=>{Object.keys(n).forEach((r=>{const i=n[r],a=e[r],s=a&&o(a)?"element":null==(u=a)?`${u}`:{}.toString.call(u).match(/\s([a-z]+)/i)[1].toLowerCase();var u;if(!new RegExp(i).test(s))throw new TypeError(`${t.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${i}".`)}))},u=t=>!(!o(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),l=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),c=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?c(t.parentNode):null},f=()=>{},p=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},h=[],d=()=>"rtl"===document.documentElement.dir,g=t=>{var e;e=()=>{const e=p();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}},"loading"===document.readyState?(h.length||document.addEventListener("DOMContentLoaded",(()=>{h.forEach((t=>t()))})),h.push(e)):e()},v=t=>{"function"==typeof t&&t()},m=(t,e,n=!0)=>{if(!n)return void v(t);const i=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const r=Number.parseFloat(e),i=Number.parseFloat(n);return r||i?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0})(e)+5;let o=!1;const a=({target:n})=>{n===e&&(o=!0,e.removeEventListener(r,a),v(t))};e.addEventListener(r,a),setTimeout((()=>{o||e.dispatchEvent(new Event(r))}),i)}},174:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(645),i=n.n(r)()((function(t){return t[1]}));i.push([t.id,'.variant{\r\n stroke:rgba(0,255,154,0.6);\r\n stroke-width:1px;\r\n}\r\n\r\na:focus {\r\n outline:0 !important;\r\n}\r\n\r\n.active {\r\n z-index: 1;\r\n}\r\n.brush .extent{\r\n stroke: #fff;\r\n fill-opacity: .125;\r\n shape-rendering: crispEdges;\r\n}\r\n\r\n\r\n.point {\r\n fill: #2f225d;\r\n stroke: #afa2dc;\r\n}\r\n\r\n.selected {\r\n fill: #afa2dc;\r\n stroke: #2f225d;\r\n}\r\n\r\n.clear-button {\r\n font: 14px sans-serif;\r\n cursor: pointer;\r\n}\r\n\r\n.axis path,\r\n.axis line {\r\n fill: none;\r\n stroke: #000;\r\n shape-rendering: crispEdges;\r\n}\r\n\r\n.axis {\r\n font: 10px sans-serif;\r\n}\r\n.d3-tip {\r\n line-height: 1;\r\n font-weight: bold;\r\n padding: 12px;\r\n/* background: rgba(0, 0, 0, 0.8);*/\r\n background: #eee;\r\n/* color: #fff;*/\r\n color: black;\r\n border-radius: 2px;\r\n}\r\n\r\n/*Creates a small triangle extender for the tooltip - left*/\r\n.tooltip2:after {\r\n box-sizing: border-box;\r\n display: inline;\r\n font-size: 10px;\r\n width: 100%;\r\n line-height: 1;\r\n color: #eee;\r\n content: "\\25BC";\r\n position: absolute;\r\n text-align: left;\r\n margin: -1px 0 0 0;\r\n bottom: -8px;\r\n left: 10px;\r\n z-index:11;\r\n}\r\n/*Creates a small triangle extender for the tooltip - left */\r\n.tooltip2:before {\r\n box-sizing: border-box;\r\n display: inline;\r\n font-size: 10px;\r\n width: 100%;\r\n line-height: 1;\r\n color: rgba(0, 0, 0, 0.6);\r\n content: "\\25BC";\r\n position: absolute;\r\n text-align: left;\r\n margin: -1px 0 0 0;\r\n bottom: -9px;\r\n left: 10px;\r\n z-index:10;\r\n}\r\n.tooltip3:after {\r\n box-sizing: border-box;\r\n display: inline;\r\n font-size: 10px;\r\n width: 100%;\r\n line-height: 1;\r\n color: #eee;\r\n content: "\\25BC";\r\n position: absolute;\r\n text-align: right;\r\n margin: -1px 0 0 0;\r\n bottom: -8px;\r\n right: 10px;\r\n z-index:11;\r\n}\r\n.tooltip3:before {\r\n box-sizing: border-box;\r\n display: inline;\r\n font-size: 10px;\r\n width: 100%;\r\n line-height: 1;\r\n color: rgba(0, 0, 0, 0.6);\r\n content: "\\25BC";\r\n position: absolute;\r\n text-align: right;\r\n margin: -1px 0 0 0;\r\n bottom: -9px;\r\n right: 10px;\r\n z-index:10;\r\n}\r\n\r\n.yaxis{\r\n background-color:green;\r\n}\r\n\r\n.header-help{\r\n/* color: #C50063;*/\r\n/*\r\n color: #108D9F;\r\n border-color:#0F8292;\r\n*/\r\n}\r\n.header-help .state{\r\n min-width:26px;\r\n display:inline-block;\r\n}\r\n\r\n.header-help:hover{\r\n/* color: #98004C;*/\r\n/* color: #0F8292;*/\r\n cursor: pointer;\r\n text-decoration: none;\r\n}\r\n\r\n.header-help:focus{\r\n/* color: #0F8292;*/\r\n}\r\n\r\n.popover-title{\r\n text-align: center;\r\n/* background-color: rgba(197, 0, 99, 0.1);*/\r\n}\r\n\r\n.label-as-badge {\r\n/*\r\n border-radius: 1em;\r\n font-size:0.7em;\r\n*/\r\n/* background-color: #C50063;*/\r\n}\r\n\r\npath.domain {\r\n fill:none;\r\n}\r\n\r\nrect{\r\n rx:2;\r\n}\r\n\r\n/* Styles for variant popups */\r\n\r\n.multiple-variant-popup {\r\n background-color: #FFF;\r\n border-radius: 0.6rem;\r\n color: #000;\r\n z-index: 10;\r\n display: none;\r\n position: absolute;\r\n margin-top: 2.5rem;\r\n right: 10rem;\r\n top: 3rem;\r\n padding: 1rem 2rem;\r\n box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;\r\n}\r\n\r\n.multiple-variant-container { \r\n display: flex;\r\n}\r\n\r\n.single-variant-popup {\r\n position: absolute;\r\n display: none;\r\n background-color: #FFF;\r\n border-radius: 0.6rem;\r\n color: #000;\r\n margin-top: 2.5rem;\r\n padding: 1rem 2rem;\r\n box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;\r\n}\r\n\r\n.single-variant-popup > div > p{\r\n margin: 1rem 0;\r\n}\r\n\r\n.cancel-icon {\r\n position: absolute;\r\n top: 1rem;\r\n right: 1rem;\r\n cursor: pointer;\r\n margin: 1rem;\r\n cursor: pointer;\r\n}\r\n\r\n\r\n.multiple-variant-popup > .header {\r\n display: flex;\r\n align-items: center;\r\n align-content: center;\r\n}\r\n\r\n.multiple-variant-popup > .header > p {\r\n flex: 1;\r\n text-align: center;\r\n}\r\n\r\n.multiple-variant-popup > span {\r\n text-align: center;\r\n}\r\n\r\n.header > p, .properties-row > .title {\r\n color: #726f6f;\r\n text-transform: uppercase;\r\n font-size: 0.9rem;\r\n}\r\n\r\n.properties-row > .title {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.popup-input {\r\n width: 5rem !important;\r\n border-radius: 0.3rem;\r\n height: 2rem !important;\r\n outline: none;\r\n padding: 0.3rem;\r\n text-align: center; \r\n background-color: #f9f9f9;\r\n border: 2px solid rgb(230, 230, 230);\r\n outline: none;\r\n}\r\n\r\n.popup-input:focus {\r\n border: 2px solid #166FF8;\r\n}\r\n\r\n.multiple-variant-btn-container {\r\n display: flex;\r\n justify-content: center;\r\n margin: 2rem 0;\r\n column-gap: 1rem;\r\n}\r\n\r\n.properties-row {\r\n display: flex;\r\n min-height: 3rem;\r\n width: 15rem;\r\n}\r\n\r\n.properties-row > div {\r\n margin-left: auto;\r\n margin-top: 0.6rem;\r\n}\r\n\r\n.add-variant-btn, .single-add-variant-btn {\r\n background-color: #166FF8;\r\n color: #FFF;\r\n border: none;\r\n border-radius: 0.4rem;\r\n cursor: pointer;\r\n display: flex;\r\n padding: 1rem 2rem;\r\n font-size: 0.9rem;\r\n}\r\n\r\n.single-add-variant-btn {\r\n margin: 2rem auto 1rem auto;\r\n width: 100%;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n\r\n.single-add-variant-btn:disabled, \r\n.add-variant-btn:disabled, \r\n.get-predictions-btn\r\n {\r\n background-color: #7D7D7D;\r\n color: #DFDFDF;\r\n cursor: not-allowed;\r\n }\r\n.get-predictions-btn {\r\n display: inline-block;\r\n background-color: #166FF8;\r\n color: #FFF;\r\n border-radius: 0.4rem;\r\n cursor: pointer;\r\n padding: 1rem 2rem;\r\n font-size: 0.9rem;\r\n}\r\n\r\n#single-variant-input {\r\n width: 3rem;\r\n}\r\n\r\n#single-variant-input:focus {\r\n border: 2px solid #166FF8;\r\n}\r\n\r\n.input-container {\r\n min-height: 3rem;\r\n}\r\n\r\n.input-container > div {\r\n display: flex;\r\n column-gap: 2rem;\r\n padding: 1rem 0;\r\n border-top: 1px solid #eee;\r\n}\r\n\r\n.input-container > div > input {\r\n flex: 1;\r\n align-self: center;\r\n}\r\n\r\n#single-entry-add-variant {\r\n display: flex;\r\n text-align: center;\r\n justify-content: center;\r\n margin: 2rem 0;\r\n}\r\n\r\n #dropdown-search-input {\r\n box-sizing: border-box;\r\n background-position: 14px 12px;\r\n background-repeat: no-repeat;\r\n padding: 14px 10px 12px 10px;\r\n border: none;\r\n border-bottom: 1px solid #ddd;\r\n width: 150px;\r\n }\r\n\r\n .dropdown {\r\n position: relative;\r\n display: flex;\r\n }\r\n \r\n .dropdown-content, #single-dropdown-content {\r\n display: none;\r\n position: absolute;\r\n background-color: #f6f6f6;\r\n width: 150px;\r\n border: 1px solid #ddd;\r\n z-index: 1;\r\n }\r\n\r\n .dropdown-option-container{\r\n max-height: 20rem;\r\n overflow-y: auto;\r\n }\r\n\r\n .dropdown-btn {\r\n display: flex;\r\n align-items: center;\r\n background-color: #F9f9f9;\r\n border: 2px solid rgb(230, 230, 230);\r\n padding: 0.6rem 1rem;\r\n border-radius: 0.3rem;\r\n width: 8rem;\r\n border-radius: 0.3rem;\r\n cursor: pointer;\r\n outline: none;\r\n }\r\n\r\n .dropdown-btn:focus {\r\n border: 2px solid #166FF8;\r\n }\r\n\r\n .dropdown-options, .single-dropdown-options {\r\n border-bottom: 1px solid #eee;\r\n padding: 0.6rem 0;\r\n text-align: center;\r\n font-size: 0.9rem;\r\n cursor: pointer;\r\n margin-block-start: 0em;\r\n margin-block-end: 0em;\r\n background-color: #fff;\r\n color: rgb(26, 26, 26);\r\n }\r\n\r\n .dropdown-options:hover, .single-dropdown-options:hover {\r\n background-color: #f3f9fd;\r\n color: #000;\r\n }\r\n\r\n .delete-icon {\r\n height: 1.3rem;\r\n width: 1.3rem;\r\n cursor: pointer;\r\n }\r\n \r\n\r\n .bottom-arrow-icon {\r\n height: 0.5rem;\r\n width: 0.5rem;\r\n padding-left: 0.3rem;\r\n margin-top: 0.1rem;\r\n position: absolute;\r\n right: 10px;\r\n top: 8px;\r\n }\r\n\r\n .original-input {\r\n margin-top: 0.5rem;\r\n min-width: 4rem;\r\n text-align: center;\r\n }\r\n\r\n #variant-error, .error {\r\n color: red;\r\n font-size: 0.8rem;\r\n margin: 1rem 0 0 0; \r\n }',""]);const o=i},645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o{var r,i;!function(){var o={version:"3.5.6"},a=[].slice,s=function(t){return a.call(t)},u=this.document;function l(t){return t&&(t.ownerDocument||t.document||t).documentElement}function c(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}if(u)try{s(u.documentElement.childNodes)[0].nodeType}catch(t){s=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}if(Date.now||(Date.now=function(){return+new Date}),u)try{u.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var f=this.Element.prototype,p=f.setAttribute,h=f.setAttributeNS,d=this.CSSStyleDeclaration.prototype,g=d.setProperty;f.setAttribute=function(t,e){p.call(this,t,e+"")},f.setAttributeNS=function(t,e,n){h.call(this,t,e,n+"")},d.setProperty=function(t,e,n){g.call(this,t,e+"",n)}}function v(t,e){return te?1:t>=e?0:NaN}function m(t){return null===t?NaN:+t}function y(t){return!isNaN(t)}function x(t){return{left:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);r>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);r>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}o.ascending=v,o.descending=function(t,e){return et?1:e>=t?0:NaN},o.min=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++ir&&(n=r)}else{for(;++i=r){n=r;break}for(;++ir&&(n=r)}return n},o.max=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++in&&(n=r)}else{for(;++i=r){n=r;break}for(;++in&&(n=r)}return n},o.extent=function(t,e){var n,r,i,o=-1,a=t.length;if(1===arguments.length){for(;++o=r){n=i=r;break}for(;++or&&(n=r),i=r){n=i=r;break}for(;++or&&(n=r),i1)return a/(u-1)},o.deviation=function(){var t=o.variance.apply(this,arguments);return t?Math.sqrt(t):t};var b=x(v);function w(t){return t.length}o.bisectLeft=b.left,o.bisect=o.bisectRight=b.right,o.bisector=function(t){return x(1===t.length?function(e,n){return v(t(e),n)}:t)},o.shuffle=function(t,e,n){(o=arguments.length)<3&&(n=t.length,o<2&&(e=0));for(var r,i,o=n-e;o;)i=Math.random()*o--|0,r=t[o+e],t[o+e]=t[i+e],t[i+e]=r;return t},o.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},o.pairs=function(t){for(var e=0,n=t.length-1,r=t[0],i=new Array(n<0?0:n);e=0;)for(e=(r=t[i]).length;--e>=0;)n[--a]=r[e];return n};var M=Math.abs;function E(t){for(var e=1;t*e%1;)e*=10;return e}function _(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function A(){this._=Object.create(null)}o.range=function(t,e,n){if(arguments.length<3&&(n=1,arguments.length<2&&(e=t,t=0)),(e-t)/n==1/0)throw new Error("infinite range");var r,i=[],o=E(M(n)),a=-1;if(t*=o,e*=o,(n*=o)<0)for(;(r=t+n*++a)>e;)i.push(r/o);else for(;(r=t+n*++a)=r.length)return e?e.call(n,o):t?o.sort(t):o;for(var u,l,c,f,p=-1,h=o.length,d=r[s++],g=new A;++p=r.length)return t;var n=[],o=i[e++];return t.forEach((function(t,r){n.push({key:t,values:s(r,e)})})),o?n.sort((function(t,e){return o(t.key,e.key)})):n}return n.map=function(t,e){return a(e,t,0)},n.entries=function(t){return s(a(o.map,t,0),0)},n.key=function(t){return r.push(t),n},n.sortKeys=function(t){return i[r.length-1]=t,n},n.sortValues=function(e){return t=e,n},n.rollup=function(t){return e=t,n},n},o.set=function(t){var e=new L;if(t)for(var n=0,r=t.length;n=0&&(r=t.slice(n+1),t=t.slice(0,n)),t)return arguments.length<2?this[t].on(r):this[t].on(r,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},o.event=null,o.requote=function(t){return t.replace(W,"\\$&")};var W=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,V={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]};function $(t){return V(t,Z),t}var X=function(t,e){return e.querySelector(t)},Y=function(t,e){return e.querySelectorAll(t)},G=function(t,e){var n=t.matches||t[P(t,"matchesSelector")];return(G=function(t,e){return n.call(t,e)})(t,e)};"function"==typeof Sizzle&&(X=function(t,e){return Sizzle(t,e)[0]||null},Y=Sizzle,G=Sizzle.matchesSelector),o.selection=function(){return o.select(u.documentElement)};var Z=o.selection.prototype=[];function K(t){return"function"==typeof t?t:function(){return X(t,this)}}function Q(t){return"function"==typeof t?t:function(){return Y(t,this)}}Z.select=function(t){var e,n,r,i,o=[];t=K(t);for(var a=-1,s=this.length;++a=0&&(n=t.slice(0,e),t=t.slice(e+1)),J.hasOwnProperty(n)?{space:J[n],local:t}:t}},Z.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return(t=o.ns.qualify(t)).local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(tt(e,t[e]));return this}return this.each(tt(t,e))},Z.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=rt(t)).length,i=-1;if(e=n.classList){for(;++i=0;)(n=r[i])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},Z.sort=function(t){t=pt.apply(this,arguments);for(var e=-1,n=this.length;++e=e&&(e=i+1);!(a=s[e])&&++e0&&(t=t.slice(0,i));var u=yt.get(t);function l(){var e=this[r];e&&(this.removeEventListener(t,e,e.$),delete this[r])}return u&&(t=u,a=bt),i?e?function(){var i=a(e,s(arguments));l.call(this),this.addEventListener(t,this[r]=i,i.$=n),i._=e}:l:e?I:function(){var e,n=new RegExp("^__on([^.]+)"+o.requote(t)+"$");for(var r in this)if(e=r.match(n)){var i=this[r];this.removeEventListener(e[1],i,i.$),delete this[r]}}}o.selection.enter=dt,o.selection.enter.prototype=gt,gt.append=Z.append,gt.empty=Z.empty,gt.node=Z.node,gt.call=Z.call,gt.size=Z.size,gt.select=function(t){for(var e,n,r,i,o,a=[],s=-1,u=this.length;++s0?1:t<0?-1:0}function Pt(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function zt(t){return t>1?0:t<-1?St:Math.acos(t)}function It(t){return t>1?Ot:t<-1?-Ot:Math.asin(t)}function Rt(t){return((t=Math.exp(t))+1/t)/2}function Ft(t){return(t=Math.sin(t/2))*t}var Ht=Math.SQRT2;o.interpolateZoom=function(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2],u=o-n,l=a-r,c=u*u+l*l,f=Math.sqrt(c),p=(s*s-i*i+4*c)/(2*i*2*f),h=(s*s-i*i-4*c)/(2*s*2*f),d=Math.log(Math.sqrt(p*p+1)-p),g=Math.log(Math.sqrt(h*h+1)-h)-d,v=(g||Math.log(s/i))/Ht;function m(t){var e,o=t*v;if(g){var a=Rt(d),s=i/(2*f)*(a*(e=Ht*o+d,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(d));return[n+s*u,r+s*l,i*a/Rt(Ht*o+d)]}return[n+t*u,r+t*l,i*Math.exp(Ht*o)]}return m.duration=1e3*v,m},o.behavior.zoom=function(){var t,e,n,r,i,a,s,l,f,p={x:0,y:0,k:1},h=[960,500],d=Wt,g=250,v=0,m="mousedown.zoom",y="mousemove.zoom",x="mouseup.zoom",b="touchstart.zoom",w=U(M,"zoomstart","zoom","zoomend");function M(t){t.on(m,D).on(Ut+".zoom",L).on("dblclick.zoom",q).on(b,O)}function E(t){return[(t[0]-p.x)/p.k,(t[1]-p.y)/p.k]}function _(t){p.k=Math.max(d[0],Math.min(d[1],t))}function A(t,e){e=function(t){return[t[0]*p.k+p.x,t[1]*p.k+p.y]}(e),p.x+=t[0]-e[0],p.y+=t[1]-e[1]}function k(t,n,r,i){t.__chart__={x:p.x,y:p.y,k:p.k},_(Math.pow(2,i)),A(e=n,r),t=o.select(t),g>0&&(t=t.transition().duration(g)),t.call(M.event)}function T(){s&&s.domain(a.range().map((function(t){return(t-p.x)/p.k})).map(a.invert)),f&&f.domain(l.range().map((function(t){return(t-p.y)/p.k})).map(l.invert))}function C(t){v++||t({type:"zoomstart"})}function S(t){T(),t({type:"zoom",scale:p.k,translate:[p.x,p.y]})}function N(t){--v||(t({type:"zoomend"}),e=null)}function D(){var t=this,e=o.event.target,n=w.of(t,arguments),r=0,i=o.select(c(t)).on(y,u).on(x,l),a=E(o.mouse(t)),s=Et(t);function u(){r=1,A(o.mouse(t),a),S(n)}function l(){i.on(y,null).on(x,null),s(r&&o.event.target===e),N(n)}Os.call(t),C(n)}function O(){var t,e=this,n=w.of(e,arguments),r={},a=0,s=".zoom-"+o.event.changedTouches[0].identifier,u="touchmove"+s,l="touchend"+s,c=[],f=o.select(e),h=Et(e);function d(){var n=o.touches(e);return t=p.k,n.forEach((function(t){t.identifier in r&&(r[t.identifier]=E(t))})),n}function g(){var t=o.event.target;o.select(t).on(u,v).on(l,y),c.push(t);for(var n=o.event.changedTouches,s=0,f=n.length;s1){m=h[0];var x=h[1],b=m[0]-x[0],w=m[1]-x[1];a=b*b+w*w}}function v(){var s,u,l,c,f=o.touches(e);Os.call(e);for(var p=0,h=f.length;p360?t-=360:t<0&&(t+=360),t<60?r+(i-r)*t/60:t<180?i:t<240?r+(i-r)*(240-t)/60:r}(t))}return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)||e<0?0:e>1?1:e,r=2*(n=n<0?0:n>1?1:n)-(i=n<=.5?n*(1+e):n+e-n*e),new ue(o(t+120),o(t),o(t-120))}function Gt(t,e,n){return this instanceof Gt?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof Gt?new Gt(t.h,t.c,t.l):ie(t instanceof Qt?t.l:(t=ge((t=o.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new Gt(t,e,n)}Xt.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new $t(this.h,this.s,this.l/t)},Xt.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new $t(this.h,this.s,t*this.l)},Xt.rgb=function(){return Yt(this.h,this.s,this.l)},o.hcl=Gt;var Zt=Gt.prototype=new Vt;function Kt(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new Qt(n,Math.cos(t*=Lt)*e,Math.sin(t)*e)}function Qt(t,e,n){return this instanceof Qt?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof Qt?new Qt(t.l,t.a,t.b):t instanceof Gt?Kt(t.h,t.c,t.l):ge((t=ue(t)).r,t.g,t.b):new Qt(t,e,n)}Zt.brighter=function(t){return new Gt(this.h,this.c,Math.min(100,this.l+Jt*(arguments.length?t:1)))},Zt.darker=function(t){return new Gt(this.h,this.c,Math.max(0,this.l-Jt*(arguments.length?t:1)))},Zt.rgb=function(){return Kt(this.h,this.c,this.l).rgb()},o.lab=Qt;var Jt=18,te=.95047,ee=1.08883,ne=Qt.prototype=new Vt;function re(t,e,n){var r=(t+16)/116,i=r+e/500,o=r-n/200;return new ue(se(3.2404542*(i=oe(i)*te)-1.5371385*(r=1*oe(r))-.4985314*(o=oe(o)*ee)),se(-.969266*i+1.8760108*r+.041556*o),se(.0556434*i-.2040259*r+1.0572252*o))}function ie(t,e,n){return t>0?new Gt(Math.atan2(n,e)*qt,Math.sqrt(e*e+n*n),t):new Gt(NaN,NaN,t)}function oe(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function ae(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function se(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function ue(t,e,n){return this instanceof ue?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof ue?new ue(t.r,t.g,t.b):he(""+t,ue,Yt):new ue(t,e,n)}function le(t){return new ue(t>>16,t>>8&255,255&t)}function ce(t){return le(t)+""}ne.brighter=function(t){return new Qt(Math.min(100,this.l+Jt*(arguments.length?t:1)),this.a,this.b)},ne.darker=function(t){return new Qt(Math.max(0,this.l-Jt*(arguments.length?t:1)),this.a,this.b)},ne.rgb=function(){return re(this.l,this.a,this.b)},o.rgb=ue;var fe=ue.prototype=new Vt;function pe(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function he(t,e,n){t=t.toLowerCase();var r,i,o,a=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/.exec(t))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(me(i[0]),me(i[1]),me(i[2]))}return(o=ye.get(t))?e(o.r,o.g,o.b):(null==t||"#"!==t.charAt(0)||isNaN(o=parseInt(t.slice(1),16))||(4===t.length?(a=(3840&o)>>4,a|=a>>4,s=240&o,s|=s>>4,u=15&o,u|=u<<4):7===t.length&&(a=(16711680&o)>>16,s=(65280&o)>>8,u=255&o)),e(a,s,u))}function de(t,e,n){var r,i,o=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),s=a-o,u=(a+o)/2;return s?(i=u<.5?s/(a+o):s/(2-a-o),r=t==a?(e-n)/s+(e0&&u<1?0:r),new $t(r,i,u)}function ge(t,e,n){var r=ae((.4124564*(t=ve(t))+.3575761*(e=ve(e))+.1804375*(n=ve(n)))/te),i=ae((.2126729*t+.7151522*e+.072175*n)/1);return Qt(116*i-16,500*(r-i),200*(i-ae((.0193339*t+.119192*e+.9503041*n)/ee)))}function ve(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function me(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}fe.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,n=this.g,r=this.b,i=30;return e||n||r?(e&&e=200&&e<300||304===e){try{t=n.call(i,l)}catch(t){return void a.error.call(i,t)}a.load.call(i,t)}else a.error.call(i,l)}return this.XDomainRequest&&!("withCredentials"in l)&&/^(http(s)?:)?\/\//.test(t)&&(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=f:l.onreadystatechange=function(){l.readyState>3&&f()},l.onprogress=function(t){var e=o.event;o.event=t;try{a.progress.call(i,l)}finally{o.event=e}},i.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?u[t]:(null==e?delete u[t]:u[t]=e+"",i)},i.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",i):e},i.responseType=function(t){return arguments.length?(c=t,i):c},i.response=function(t){return n=t,i},["get","post"].forEach((function(t){i[t]=function(){return i.send.apply(i,[t].concat(s(arguments)))}})),i.send=function(n,r,o){if(2===arguments.length&&"function"==typeof r&&(o=r,r=null),l.open(n,t,!0),null==e||"accept"in u||(u.accept=e+",*/*"),l.setRequestHeader)for(var s in u)l.setRequestHeader(s,u[s]);return null!=e&&l.overrideMimeType&&l.overrideMimeType(e),null!=c&&(l.responseType=c),null!=o&&i.on("error",o).on("load",(function(t){o(null,t)})),a.beforesend.call(i,l),l.send(null==r?null:r),i},i.abort=function(){return l.abort(),i},o.rebind(i,a,"on"),null==r?i:i.get(function(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}(r))}ye.forEach((function(t,e){ye.set(t,le(e))})),o.functor=xe,o.xhr=be(q),o.dsv=function(t,e){var n=new RegExp('["'+t+"\n]"),r=t.charCodeAt(0);function i(t,n,r){arguments.length<3&&(r=n,n=null);var i=we(t,e,null==n?o:a(n),r);return i.row=function(t){return arguments.length?i.response(null==(n=t)?o:a(t)):n},i}function o(t){return i.parse(t.responseText)}function a(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(u).join(t)}function u(t){return n.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}return i.parse=function(t,e){var n;return i.parseRows(t,(function(t,r){if(n)return n(t,r-1);var i=new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+"]"})).join(",")+"}");n=e?function(t,n){return e(i(t),n)}:i}))},i.parseRows=function(t,e){var n,i,o={},a={},s=[],u=t.length,l=0,c=0;function f(){if(l>=u)return a;if(i)return i=!1,o;var e=l;if(34===t.charCodeAt(e)){for(var n=e;n++24?(isFinite(e)&&(clearTimeout(Ae),Ae=setTimeout(Ce,e)),_e=0):(_e=1,Te(Ce))}function Se(){var t=Date.now();for(ke=Me;ke;)t>=ke.t&&(ke.f=ke.c(t-ke.t)),ke=ke.n;return t}function Ne(){for(var t,e=Me,n=1/0;e;)e.f?e=t?t.n=e.n:Me=e.n:(e.t8?function(t){return t/n}:function(t){return t*n},symbol:t}}));function Le(t){var e=t.decimal,n=t.thousands,r=t.grouping,i=t.currency,a=r&&n?function(t,e){for(var i=t.length,o=[],a=0,s=r[0],u=0;i>0&&s>0&&(u+s+1>e&&(s=Math.max(1,e-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>e));)s=r[a=(a+1)%r.length];return o.reverse().join(n)}:q;return function(t){var n=qe.exec(t),r=n[1]||" ",s=n[2]||">",u=n[3]||"-",l=n[4]||"",c=n[5],f=+n[6],p=n[7],h=n[8],d=n[9],g=1,v="",m="",y=!1,x=!0;switch(h&&(h=+h.substring(1)),(c||"0"===r&&"="===s)&&(c=r="0",s="="),d){case"n":p=!0,d="g";break;case"%":g=100,m="%",d="f";break;case"p":g=100,m="%",d="r";break;case"b":case"o":case"x":case"X":"#"===l&&(v="0"+d.toLowerCase());case"c":x=!1;case"d":y=!0,h=0;break;case"s":g=-1,d="r"}"$"===l&&(v=i[0],m=i[1]),"r"!=d||h||(d="g"),null!=h&&("g"==d?h=Math.max(1,Math.min(21,h)):"e"!=d&&"f"!=d||(h=Math.max(0,Math.min(20,h)))),d=je.get(d)||Pe;var b=c&&p;return function(t){var n=m;if(y&&t%1)return"";var i=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===u?"":u;if(g<0){var l=o.formatPrefix(t,h);t=l.scale(t),n=l.symbol+m}else t*=g;var w,M,E=(t=d(t,h)).lastIndexOf(".");if(E<0){var _=x?t.lastIndexOf("e"):-1;_<0?(w=t,M=""):(w=t.substring(0,_),M=t.substring(_))}else w=t.substring(0,E),M=e+t.substring(E+1);!c&&p&&(w=a(w,1/0));var A=v.length+w.length+M.length+(b?0:i.length),k=A"===s?k+i+t:"^"===s?k.substring(0,A>>=1)+i+t+k.substring(A):i+(b?t:k+t))+n}}}o.formatPrefix=function(t,e){var n=0;return t&&(t<0&&(t*=-1),e&&(t=o.round(t,De(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Oe[8+n/3]};var qe=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,je=o.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=o.round(t,De(t,e))).toFixed(Math.max(0,Math.min(20,De(t*(1+1e-15),e))))}});function Pe(t){return t+""}var ze=o.time={},Ie=Date;function Re(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Re.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Fe.setUTCDate.apply(this._,arguments)},setDay:function(){Fe.setUTCDay.apply(this._,arguments)},setFullYear:function(){Fe.setUTCFullYear.apply(this._,arguments)},setHours:function(){Fe.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Fe.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Fe.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Fe.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Fe.setUTCSeconds.apply(this._,arguments)},setTime:function(){Fe.setTime.apply(this._,arguments)}};var Fe=Date.prototype;function He(t,e,n){function r(e){var n=t(e),r=o(n,1);return e-n1)for(;a=l)return-1;if(37===(i=e.charCodeAt(s++))){if(a=e.charAt(s++),!(o=M[a in We?e.charAt(s++):a])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}c.utc=function(t){var e=c(t);function n(t){try{var n=new(Ie=Re);return n._=t,e(n)}finally{Ie=Date}}return n.parse=function(t){try{Ie=Re;var n=e.parse(t);return n&&n._}finally{Ie=Date}},n.toString=e.toString,n},c.multi=c.utc.multi=pn;var p=o.map(),h=Ye(a),d=Ge(a),g=Ye(s),v=Ge(s),m=Ye(u),y=Ge(u),x=Ye(l),b=Ge(l);i.forEach((function(t,e){p.set(t.toLowerCase(),e)}));var w={a:function(t){return s[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:c(e),d:function(t,e){return Xe(t.getDate(),e,2)},e:function(t,e){return Xe(t.getDate(),e,2)},H:function(t,e){return Xe(t.getHours(),e,2)},I:function(t,e){return Xe(t.getHours()%12||12,e,2)},j:function(t,e){return Xe(1+ze.dayOfYear(t),e,3)},L:function(t,e){return Xe(t.getMilliseconds(),e,3)},m:function(t,e){return Xe(t.getMonth()+1,e,2)},M:function(t,e){return Xe(t.getMinutes(),e,2)},p:function(t){return i[+(t.getHours()>=12)]},S:function(t,e){return Xe(t.getSeconds(),e,2)},U:function(t,e){return Xe(ze.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Xe(ze.mondayOfYear(t),e,2)},x:c(n),X:c(r),y:function(t,e){return Xe(t.getFullYear()%100,e,2)},Y:function(t,e){return Xe(t.getFullYear()%1e4,e,4)},Z:cn,"%":function(){return"%"}},M={a:function(t,e,n){g.lastIndex=0;var r=g.exec(e.slice(n));return r?(t.w=v.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){h.lastIndex=0;var r=h.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){x.lastIndex=0;var r=x.exec(e.slice(n));return r?(t.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){m.lastIndex=0;var r=m.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,e,n){return f(t,w.c.toString(),e,n)},d:rn,e:rn,H:an,I:an,j:on,L:ln,m:nn,M:sn,p:function(t,e,n){var r=p.get(e.slice(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)},S:un,U:Ke,w:Ze,W:Qe,x:function(t,e,n){return f(t,w.x.toString(),e,n)},X:function(t,e,n){return f(t,w.X.toString(),e,n)},y:tn,Y:Je,Z:en,"%":fn};return c}ze.year=He((function(t){return(t=ze.day(t)).setMonth(0,1),t}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t){return t.getFullYear()})),ze.years=ze.year.range,ze.years.utc=ze.year.utc.range,ze.day=He((function(t){var e=new Ie(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t){return t.getDate()-1})),ze.days=ze.day.range,ze.days.utc=ze.day.utc.range,ze.dayOfYear=function(t){var e=ze.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((function(t,e){e=7-e;var n=ze[t]=He((function(t){return(t=ze.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t}),(function(t,e){t.setDate(t.getDate()+7*Math.floor(e))}),(function(t){var n=ze.year(t).getDay();return Math.floor((ze.dayOfYear(t)+(n+e)%7)/7)-(n!==e)}));ze[t+"s"]=n.range,ze[t+"s"].utc=n.utc.range,ze[t+"OfYear"]=function(t){var n=ze.year(t).getDay();return Math.floor((ze.dayOfYear(t)+(n+e)%7)/7)}})),ze.week=ze.sunday,ze.weeks=ze.sunday.range,ze.weeks.utc=ze.sunday.utc.range,ze.weekOfYear=ze.sundayOfYear;var We={"-":"",_:" ",0:"0"},Ve=/^\s*\d+/,$e=/^%/;function Xe(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3)}(+r[0]),n+r[0].length):-1}function en(t,e,n){return/^[+-]\d{4}$/.test(e=e.slice(n,n+5))?(t.Z=-e,n+5):-1}function nn(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function rn(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function on(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function an(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function sn(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function un(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ln(t,e,n){Ve.lastIndex=0;var r=Ve.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function cn(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=M(e)/60|0,i=M(e)%60;return n+Xe(r,"0",2)+Xe(i,"0",2)}function fn(t,e,n){$e.lastIndex=0;var r=$e.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function pn(t){for(var e=t.length,n=-1;++n=0?1:-1,s=a*o,u=Math.cos(e),l=Math.sin(e),c=i*l,f=r*u+c*Math.cos(s),p=c*a*Math.sin(s);qn.add(Math.atan2(p,f)),n=t,r=u,i=l}jn.point=function(a,s){jn.point=o,n=(t=a)*Lt,r=Math.cos(s=(e=s)*Lt/2+St/4),i=Math.sin(s)},jn.lineEnd=function(){o(t,e)}}function zn(t){var e=t[0],n=t[1],r=Math.cos(n);return[r*Math.cos(e),r*Math.sin(e),Math.sin(n)]}function In(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Rn(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Fn(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Hn(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Bn(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Un(t){return[Math.atan2(t[1],t[0]),It(t[2])]}function Wn(t,e){return M(t[0]-e[0])Tt?r=90:l<-Tt&&(e=-90),f[0]=t,f[1]=n}};function h(i,o){c.push(f=[t=i,n=i]),or&&(r=o)}function d(o,a){var s=zn([o*Lt,a*Lt]);if(u){var l=Rn(u,s),c=Rn([l[1],-l[0],0],l);Bn(c),c=Un(c);var f=o-i,p=f>0?1:-1,d=c[0]*qt*p,g=M(f)>180;if(g^(p*ir&&(r=v);else if(g^(p*i<(d=(d+360)%360-180)&&dr&&(r=a);g?ob(t,n)&&(n=o):b(o,n)>b(t,n)&&(t=o):n>=t?(on&&(n=o)):o>i?b(t,o)>b(t,n)&&(n=o):b(o,n)>b(t,n)&&(t=o)}else h(o,a);u=s,i=o}function g(){p.point=d}function v(){f[0]=t,f[1]=n,p.point=h,u=null}function m(t,e){if(u){var n=t-i;l+=M(n)>180?n+(n>0?360:-360):n}else a=t,s=e;jn.point(t,e),d(t,e)}function y(){jn.lineStart()}function x(){m(a,s),jn.lineEnd(),M(l)>Tt&&(t=-(n=180)),f[0]=t,f[1]=n,u=null}function b(t,e){return(e-=t)<0?e+360:e}function w(t,e){return t[0]-e[0]}function E(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tb(g[0],g[1])&&(g[1]=h[1]),b(h[0],g[1])>b(g[0],g[1])&&(g[0]=h[0])):s.push(g=h);for(var u,l,h,d=-1/0,g=(a=0,s[l=s.length-1]);a<=l;g=h,++a)h=s[a],(u=b(g[1],h[0]))>d&&(d=u,t=h[0],n=g[1])}return c=f=null,t===1/0||e===1/0?[[NaN,NaN],[NaN,NaN]]:[[t,e],[n,r]]}}(),o.geo.centroid=function(t){En=_n=An=kn=Tn=Cn=Sn=Nn=Dn=On=Ln=0,o.geo.stream(t,Vn);var e=Dn,n=On,r=Ln,i=e*e+n*n+r*r;return i=0;--s)i.point((f=c[s])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}c=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function tr(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,E=M*w,_=E>St,A=d*x;if(qn.add(Math.atan2(A*M*Math.sin(E),g*b+A*Math.cos(E))),o+=_?w+M*Nt:w,_^p>=n^m>=n){var k=Rn(zn(f),zn(t));Bn(k);var T=Rn(i,k);Bn(T);var C=(_^w>=0?-1:1)*It(T[2]);(r>C||r===C&&(k[0]||k[1]))&&(a+=_^w>=0?1:-1)}if(!v++)break;p=m,d=x,g=b,f=t}}return(o<-Tt||o0){for(x||(a.polygonStart(),x=!0),a.lineStart();++o1&&2&e&&n.push(n.pop().concat(n.shift())),s.push(n.filter(rr))}return c}}function rr(t){return t.length>1}function ir(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:I,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function or(t,e){return((t=t.x)[0]<0?t[1]-Ot-Tt:Ot-t[1])-((e=e.x)[0]<0?e[1]-Ot-Tt:Ot-e[1])}var ar=nr(Qn,(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var s=o>0?St:-St,u=M(o-n);M(u-St)0?Ot:-Ot),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(o,r),e=0):i!==s&&u>=St&&(M(n-i)Tt?Math.atan((Math.sin(e)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(e))*Math.sin(t))/(i*o*a)):(e+r)/2}(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=o,r=a),i=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*Ot,r.point(-St,i),r.point(0,i),r.point(St,i),r.point(St,0),r.point(St,-i),r.point(0,-i),r.point(-St,-i),r.point(-St,0),r.point(-St,i);else if(M(t[0]-e[0])>Tt){var o=t[0]0,r=M(e)>Tt;return nr(i,(function(t){var e,s,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(f,p){var h,d=[f,p],g=i(f,p),v=n?g?0:a(f,p):g?a(f+(f<0?St:-St),p):0;if(!e&&(l=u=g)&&t.lineStart(),g!==u&&(h=o(e,d),(Wn(e,h)||Wn(d,h))&&(d[0]+=Tt,d[1]+=Tt,g=i(d[0],d[1]))),g!==u)c=0,g?(t.lineStart(),h=o(d,e),t.point(h[0],h[1])):(h=o(e,d),t.point(h[0],h[1]),t.lineEnd()),e=h;else if(r&&e&&n^g){var m;v&s||!(m=o(d,e,!0))||(c=0,n?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!g||e&&Wn(e,d)||t.point(d[0],d[1]),e=d,u=g,s=v},lineEnd:function(){u&&t.lineEnd(),e=null},clean:function(){return c|(l&&u)<<1}}}),Wr(t,6*Lt),n?[0,-t]:[-St,t-St]);function i(t,n){return Math.cos(t)*Math.cos(n)>e}function o(t,n,r){var i=[1,0,0],o=Rn(zn(t),zn(n)),a=In(o,o),s=o[0],u=a-s*s;if(!u)return!r&&t;var l=e*a/u,c=-e*s/u,f=Rn(i,o),p=Hn(i,l);Fn(p,Hn(o,c));var h=f,d=In(p,h),g=In(h,h),v=d*d-g*(In(p,p)-1);if(!(v<0)){var m=Math.sqrt(v),y=Hn(h,(-d-m)/g);if(Fn(y,p),y=Un(y),!r)return y;var x,b=t[0],w=n[0],E=t[1],_=n[1];w0^y[1]<(M(y[0]-b)St^(b<=y[0]&&y[0]<=w)){var T=Hn(h,(-d+m)/g);return Fn(T,p),[y,Un(T)]}}}function a(e,r){var i=n?t:St-t,o=0;return e<-i?o|=1:e>i&&(o|=2),r<-i?o|=4:r>i&&(o|=8),o}}function ur(t,e,n,r){return function(i){var o,a=i.a,s=i.b,u=a.x,l=a.y,c=0,f=1,p=s.x-u,h=s.y-l;if(o=t-u,p||!(o>0)){if(o/=p,p<0){if(o0){if(o>f)return;o>c&&(c=o)}if(o=n-u,p||!(o<0)){if(o/=p,p<0){if(o>f)return;o>c&&(c=o)}else if(p>0){if(o0)){if(o/=h,h<0){if(o0){if(o>f)return;o>c&&(c=o)}if(o=r-l,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>c&&(c=o)}else if(h>0){if(o0&&(i.a={x:u+c*p,y:l+c*h}),f<1&&(i.b={x:u+f*p,y:l+f*h}),i}}}}}}var lr=1e9;function cr(t,e,n,r){return function(u){var l,c,f,p,h,d,g,v,m,y,x,b=u,w=ir(),M=ur(t,e,n,r),E={point:k,lineStart:function(){E.point=T,c&&c.push(f=[]);y=!0,m=!1,g=v=NaN},lineEnd:function(){l&&(T(p,h),d&&m&&w.rejoin(),l.push(w.buffer()));E.point=k,m&&u.lineEnd()},polygonStart:function(){u=w,l=[],c=[],x=!0},polygonEnd:function(){u=b,l=o.merge(l);var e=function(t){for(var e=0,n=c.length,r=t[1],i=0;ir&&Pt(l,o,t)>0&&++e:o[1]<=r&&Pt(l,o,t)<0&&--e,l=o;return 0!==e}([t,r]),n=x&&e,i=l.length;(n||i)&&(u.polygonStart(),n&&(u.lineStart(),_(null,null,1,u),u.lineEnd()),i&&Jn(l,a,e,_,u),u.polygonEnd()),l=c=f=null}};function _(o,a,u,l){var c=0,f=0;if(null==o||(c=i(o,u))!==(f=i(a,u))||s(o,a)<0^u>0)do{l.point(0===c||3===c?t:n,c>1?r:e)}while((c=(c+u+4)%4)!==f);else l.point(a[0],a[1])}function A(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function k(t,e){A(t,e)&&u.point(t,e)}function T(t,e){var n=A(t=Math.max(-1e9,Math.min(lr,t)),e=Math.max(-1e9,Math.min(lr,e)));if(c&&f.push([t,e]),y)p=t,h=e,d=n,y=!1,n&&(u.lineStart(),u.point(t,e));else if(n&&m)u.point(t,e);else{var r={a:{x:g,y:v},b:{x:t,y:e}};M(r)?(m||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),n||u.lineEnd(),x=!1):n&&(u.lineStart(),u.point(t,e),x=!1)}g=t,v=e,m=n}return E};function i(r,i){return M(r[0]-t)0?0:3:M(r[0]-n)0?2:1:M(r[1]-e)0?1:0:i>0?3:2}function a(t,e){return s(t.x,e.x)}function s(t,e){var n=i(t,1),r=i(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}}function fr(t){var e=0,n=St/3,r=Pr(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*St/180,n=t[1]*St/180):[e/St*180,n/St*180]},i}function pr(t,e){var n=Math.sin(t),r=(n+Math.sin(e))/2,i=1+n*(2*r-n),o=Math.sqrt(i)/r;function a(t,e){var n=Math.sqrt(i-2*r*Math.sin(e))/r;return[n*Math.sin(t*=r),o-n*Math.cos(t)]}return a.invert=function(t,e){var n=o-e;return[Math.atan2(t,n)/r,It((i-(t*t+n*n)*r*r)/(2*r))]},a}o.geo.clipExtent=function(){var t,e,n,r,i,o,a={stream:function(t){return i&&(i.valid=!1),(i=o(t)).valid=!0,i},extent:function(s){return arguments.length?(o=cr(t=+s[0][0],e=+s[0][1],n=+s[1][0],r=+s[1][1]),i&&(i.valid=!1,i=null),a):[[t,e],[n,r]]}};return a.extent([[0,0],[960,500]])},(o.geo.conicEqualArea=function(){return fr(pr)}).raw=pr,o.geo.albers=function(){return o.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},o.geo.albersUsa=function(){var t,e,n,r,i=o.geo.albers(),a=o.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=o.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(e,n){t=[e,n]}};function l(i){var o=i[0],a=i[1];return t=null,e(o,a),t||(n(o,a),t)||r(o,a),t}return l.invert=function(t){var e=i.scale(),n=i.translate(),r=(t[0]-n[0])/e,o=(t[1]-n[1])/e;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?s:i).invert(t)},l.stream=function(t){var e=i.stream(t),n=a.stream(t),r=s.stream(t);return{point:function(t,i){e.point(t,i),n.point(t,i),r.point(t,i)},sphere:function(){e.sphere(),n.sphere(),r.sphere()},lineStart:function(){e.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){e.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){e.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){e.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},l.precision=function(t){return arguments.length?(i.precision(t),a.precision(t),s.precision(t),l):i.precision()},l.scale=function(t){return arguments.length?(i.scale(t),a.scale(.35*t),s.scale(t),l.translate(i.translate())):i.scale()},l.translate=function(t){if(!arguments.length)return i.translate();var o=i.scale(),c=+t[0],f=+t[1];return e=i.translate(t).clipExtent([[c-.455*o,f-.238*o],[c+.455*o,f+.238*o]]).stream(u).point,n=a.translate([c-.307*o,f+.201*o]).clipExtent([[c-.425*o+Tt,f+.12*o+Tt],[c-.214*o-Tt,f+.234*o-Tt]]).stream(u).point,r=s.translate([c-.205*o,f+.212*o]).clipExtent([[c-.214*o+Tt,f+.166*o+Tt],[c-.115*o-Tt,f+.234*o-Tt]]).stream(u).point,l},l.scale(1070)};var hr,dr,gr,vr,mr,yr,xr={point:I,lineStart:I,lineEnd:I,polygonStart:function(){dr=0,xr.lineStart=br},polygonEnd:function(){xr.lineStart=xr.lineEnd=xr.point=I,hr+=M(dr/2)}};function br(){var t,e,n,r;function i(t,e){dr+=r*t-n*e,n=t,r=e}xr.point=function(o,a){xr.point=i,t=n=o,e=r=a},xr.lineEnd=function(){i(t,e)}}var wr={point:function(t,e){tmr&&(mr=t);eyr&&(yr=e)},lineStart:I,lineEnd:I,polygonStart:I,polygonEnd:I};function Mr(){var t=Er(4.5),e=[],n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(e){return t=Er(e),n},result:function(){if(e.length){var t=e.join("");return e=[],t}}};function r(n,r){e.push("M",n,",",r,t)}function i(t,r){e.push("M",t,",",r),n.point=o}function o(t,n){e.push("L",t,",",n)}function a(){n.point=r}function s(){e.push("Z")}return n}function Er(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}var _r,Ar={point:kr,lineStart:Tr,lineEnd:Cr,polygonStart:function(){Ar.lineStart=Sr},polygonEnd:function(){Ar.point=kr,Ar.lineStart=Tr,Ar.lineEnd=Cr}};function kr(t,e){An+=t,kn+=e,++Tn}function Tr(){var t,e;function n(n,r){var i=n-t,o=r-e,a=Math.sqrt(i*i+o*o);Cn+=a*(t+n)/2,Sn+=a*(e+r)/2,Nn+=a,kr(t=n,e=r)}Ar.point=function(r,i){Ar.point=n,kr(t=r,e=i)}}function Cr(){Ar.point=kr}function Sr(){var t,e,n,r;function i(t,e){var i=t-n,o=e-r,a=Math.sqrt(i*i+o*o);Cn+=a*(n+t)/2,Sn+=a*(r+e)/2,Nn+=a,Dn+=(a=r*t-n*e)*(n+t),On+=a*(r+e),Ln+=3*a,kr(n=t,r=e)}Ar.point=function(o,a){Ar.point=i,kr(t=n=o,e=r=a)},Ar.lineEnd=function(){i(t,e)}}function Nr(t){var e=4.5,n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(t){return e=t,n},result:I};function r(n,r){t.moveTo(n+e,r),t.arc(n,r,e,0,Nt)}function i(e,r){t.moveTo(e,r),n.point=o}function o(e,n){t.lineTo(e,n)}function a(){n.point=r}function s(){t.closePath()}return n}function Dr(t){var e=.5,n=Math.cos(30*Lt),r=16;function i(t){return(r?a:o)(t)}function o(e){return qr(e,(function(n,r){n=t(n,r),e.point(n[0],n[1])}))}function a(e){var n,i,o,a,u,l,c,f,p,h,d,g,v={point:m,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),v.lineStart=w},polygonEnd:function(){e.polygonEnd(),v.lineStart=y}};function m(n,r){n=t(n,r),e.point(n[0],n[1])}function y(){f=NaN,v.point=x,e.lineStart()}function x(n,i){var o=zn([n,i]),a=t(n,i);s(f,p,c,h,d,g,f=a[0],p=a[1],c=n,h=o[0],d=o[1],g=o[2],r,e),e.point(f,p)}function b(){v.point=m,e.lineEnd()}function w(){y(),v.point=M,v.lineEnd=E}function M(t,e){x(n=t,e),i=f,o=p,a=h,u=d,l=g,v.point=x}function E(){s(f,p,c,h,d,g,i,o,n,a,u,l,r,e),v.lineEnd=b,b()}return v}function s(r,i,o,a,u,l,c,f,p,h,d,g,v,m){var y=c-r,x=f-i,b=y*y+x*x;if(b>4*e&&v--){var w=a+h,E=u+d,_=l+g,A=Math.sqrt(w*w+E*E+_*_),k=Math.asin(_/=A),T=M(M(_)-1)e||M((y*D+x*O)/b-.5)>.3||a*h+u*d+l*g0&&16,i):Math.sqrt(e)},i}function Or(t){var e=Dr((function(e,n){return t([e*qt,n*qt])}));return function(t){return zr(e(t))}}function Lr(t){this.stream=t}function qr(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function jr(t){return Pr((function(){return t}))()}function Pr(t){var e,n,r,i,a,s,u=Dr((function(t,n){return[(t=e(t,n))[0]*l+i,a-t[1]*l]})),l=150,c=480,f=250,p=0,h=0,d=0,g=0,v=0,m=ar,y=q,x=null,b=null;function w(t){return[(t=r(t[0]*Lt,t[1]*Lt))[0]*l+i,a-t[1]*l]}function M(t){return(t=r.invert((t[0]-i)/l,(a-t[1])/l))&&[t[0]*qt,t[1]*qt]}function E(){r=Kn(n=Fr(d,g,v),e);var t=e(p,h);return i=c-t[0]*l,a=f+t[1]*l,_()}function _(){return s&&(s.valid=!1,s=null),w}return w.stream=function(t){return s&&(s.valid=!1),(s=zr(m(n,u(y(t))))).valid=!0,s},w.clipAngle=function(t){return arguments.length?(m=null==t?(x=t,ar):sr((x=+t)*Lt),_()):x},w.clipExtent=function(t){return arguments.length?(b=t,y=t?cr(t[0][0],t[0][1],t[1][0],t[1][1]):q,_()):b},w.scale=function(t){return arguments.length?(l=+t,E()):l},w.translate=function(t){return arguments.length?(c=+t[0],f=+t[1],E()):[c,f]},w.center=function(t){return arguments.length?(p=t[0]%360*Lt,h=t[1]%360*Lt,E()):[p*qt,h*qt]},w.rotate=function(t){return arguments.length?(d=t[0]%360*Lt,g=t[1]%360*Lt,v=t.length>2?t[2]%360*Lt:0,E()):[d*qt,g*qt,v*qt]},o.rebind(w,u,"precision"),function(){return e=t.apply(this,arguments),w.invert=e.invert&&M,E()}}function zr(t){return qr(t,(function(e,n){t.point(e*Lt,n*Lt)}))}function Ir(t,e){return[t,e]}function Rr(t,e){return[t>St?t-Nt:t<-St?t+Nt:t,e]}function Fr(t,e,n){return t?e||n?Kn(Br(t),Ur(e,n)):Br(t):e||n?Ur(e,n):Rr}function Hr(t){return function(e,n){return[(e+=t)>St?e-Nt:e<-St?e+Nt:e,n]}}function Br(t){var e=Hr(t);return e.invert=Hr(-t),e}function Ur(t,e){var n=Math.cos(t),r=Math.sin(t),i=Math.cos(e),o=Math.sin(e);function a(t,e){var a=Math.cos(e),s=Math.cos(t)*a,u=Math.sin(t)*a,l=Math.sin(e),c=l*n+s*r;return[Math.atan2(u*i-c*o,s*n-l*r),It(c*i+u*o)]}return a.invert=function(t,e){var a=Math.cos(e),s=Math.cos(t)*a,u=Math.sin(t)*a,l=Math.sin(e),c=l*i-u*o;return[Math.atan2(u*i+l*o,s*n+c*r),It(c*n-s*r)]},a}function Wr(t,e){var n=Math.cos(t),r=Math.sin(t);return function(i,o,a,s){var u=a*e;null!=i?(i=Vr(n,i),o=Vr(n,o),(a>0?io)&&(i+=a*Nt)):(i=t+a*Nt,o=t-.5*u);for(var l,c=i;a>0?c>o:c2?t[2]*Lt:0),e.invert=function(e){return(e=t.invert(e[0]*Lt,e[1]*Lt))[0]*=qt,e[1]*=qt,e},e},Rr.invert=Ir,o.geo.circle=function(){var t,e,n=[0,0],r=6;function i(){var t="function"==typeof n?n.apply(this,arguments):n,r=Fr(-t[0]*Lt,-t[1]*Lt,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=r(t,e)),t[0]*=qt,t[1]*=qt}}),{type:"Polygon",coordinates:[i]}}return i.origin=function(t){return arguments.length?(n=t,i):n},i.angle=function(n){return arguments.length?(e=Wr((t=+n)*Lt,r*Lt),i):t},i.precision=function(n){return arguments.length?(e=Wr(t*Lt,(r=+n)*Lt),i):r},i.angle(90)},o.geo.distance=function(t,e){var n,r=(e[0]-t[0])*Lt,i=t[1]*Lt,o=e[1]*Lt,a=Math.sin(r),s=Math.cos(r),u=Math.sin(i),l=Math.cos(i),c=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((n=f*a)*n+(n=l*c-u*f*s)*n),u*c+l*f*s)},o.geo.graticule=function(){var t,e,n,r,i,a,s,u,l,c,f,p,h=10,d=h,g=90,v=360,m=2.5;function y(){return{type:"MultiLineString",coordinates:x()}}function x(){return o.range(Math.ceil(r/g)*g,n,g).map(f).concat(o.range(Math.ceil(u/v)*v,s,v).map(p)).concat(o.range(Math.ceil(e/h)*h,t,h).filter((function(t){return M(t%g)>Tt})).map(l)).concat(o.range(Math.ceil(a/d)*d,i,d).filter((function(t){return M(t%v)>Tt})).map(c))}return y.lines=function(){return x().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(p(s).slice(1),f(n).reverse().slice(1),p(u).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.majorExtent(t).minorExtent(t):y.minorExtent()},y.majorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],u=+t[0][1],s=+t[1][1],r>n&&(t=r,r=n,n=t),u>s&&(t=u,u=s,s=t),y.precision(m)):[[r,u],[n,s]]},y.minorExtent=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),a>i&&(n=a,a=i,i=n),y.precision(m)):[[e,a],[t,i]]},y.step=function(t){return arguments.length?y.majorStep(t).minorStep(t):y.minorStep()},y.majorStep=function(t){return arguments.length?(g=+t[0],v=+t[1],y):[g,v]},y.minorStep=function(t){return arguments.length?(h=+t[0],d=+t[1],y):[h,d]},y.precision=function(o){return arguments.length?(m=+o,l=$r(a,i,90),c=Xr(e,t,m),f=$r(u,s,90),p=Xr(r,n,m),y):m},y.majorExtent([[-180,-90+Tt],[180,90-Tt]]).minorExtent([[-180,-80-Tt],[180,80+Tt]])},o.geo.greatArc=function(){var t,e,n=Yr,r=Gr;function i(){return{type:"LineString",coordinates:[t||n.apply(this,arguments),e||r.apply(this,arguments)]}}return i.distance=function(){return o.geo.distance(t||n.apply(this,arguments),e||r.apply(this,arguments))},i.source=function(e){return arguments.length?(n=e,t="function"==typeof e?null:e,i):n},i.target=function(t){return arguments.length?(r=t,e="function"==typeof t?null:t,i):r},i.precision=function(){return arguments.length?i:0},i},o.geo.interpolate=function(t,e){return function(t,e,n,r){var i=Math.cos(e),o=Math.sin(e),a=Math.cos(r),s=Math.sin(r),u=i*Math.cos(t),l=i*Math.sin(t),c=a*Math.cos(n),f=a*Math.sin(n),p=2*Math.asin(Math.sqrt(Ft(r-e)+i*a*Ft(n-t))),h=1/Math.sin(p),d=p?function(t){var e=Math.sin(t*=p)*h,n=Math.sin(p-t)*h,r=n*u+e*c,i=n*l+e*f,a=n*o+e*s;return[Math.atan2(i,r)*qt,Math.atan2(a,Math.sqrt(r*r+i*i))*qt]}:function(){return[t*qt,e*qt]};return d.distance=p,d}(t[0]*Lt,t[1]*Lt,e[0]*Lt,e[1]*Lt)},o.geo.length=function(t){return _r=0,o.geo.stream(t,Zr),_r};var Zr={sphere:I,point:I,lineStart:function(){var t,e,n;function r(r,i){var o=Math.sin(i*=Lt),a=Math.cos(i),s=M((r*=Lt)-t),u=Math.cos(s);_r+=Math.atan2(Math.sqrt((s=a*Math.sin(s))*s+(s=n*o-e*a*u)*s),e*o+n*a*u),t=r,e=o,n=a}Zr.point=function(i,o){t=i*Lt,e=Math.sin(o*=Lt),n=Math.cos(o),Zr.point=r},Zr.lineEnd=function(){Zr.point=Zr.lineEnd=I}},lineEnd:I,polygonStart:I,polygonEnd:I};function Kr(t,e){function n(e,n){var r=Math.cos(e),i=Math.cos(n),o=t(r*i);return[o*i*Math.sin(e),o*Math.sin(n)]}return n.invert=function(t,n){var r=Math.sqrt(t*t+n*n),i=e(r),o=Math.sin(i),a=Math.cos(i);return[Math.atan2(t*o,r*a),Math.asin(r&&n*o/r)]},n}var Qr=Kr((function(t){return Math.sqrt(2/(1+t))}),(function(t){return 2*Math.asin(t/2)}));(o.geo.azimuthalEqualArea=function(){return jr(Qr)}).raw=Qr;var Jr=Kr((function(t){var e=Math.acos(t);return e&&e/Math.sin(e)}),q);function ti(t,e){var n=Math.cos(t),r=function(t){return Math.tan(St/4+t/2)},i=t===e?Math.sin(t):Math.log(n/Math.cos(e))/Math.log(r(e)/r(t)),o=n*Math.pow(r(t),i)/i;if(!i)return ri;function a(t,e){o>0?e<-Ot+Tt&&(e=-Ot+Tt):e>Ot-Tt&&(e=Ot-Tt);var n=o/Math.pow(r(e),i);return[n*Math.sin(i*t),o-n*Math.cos(i*t)]}return a.invert=function(t,e){var n=o-e,r=jt(i)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/i,2*Math.atan(Math.pow(o/r,1/i))-Ot]},a}function ei(t,e){var n=Math.cos(t),r=t===e?Math.sin(t):(n-Math.cos(e))/(e-t),i=n/r+t;if(M(r)1&&Pt(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function fi(t,e){return t[0]-e[0]||t[1]-e[1]}(o.geo.stereographic=function(){return jr(ai)}).raw=ai,si.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Ot]},(o.geo.transverseMercator=function(){var t=ii(si),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90])}).raw=si,o.geom={},o.geom.hull=function(t){var e=ui,n=li;if(arguments.length)return r(t);function r(t){if(t.length<3)return[];var r,i=xe(e),o=xe(n),a=t.length,s=[],u=[];for(r=0;r=0;--r)h.push(t[s[l[r]][2]]);for(r=+f;rTt)s=s.L;else{if(!((i=o-Si(s,a))>Tt)){r>-Tt?(e=s.P,n=s):i>-Tt?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}var u=_i(t);if(yi.insert(e,u),e||n){if(e===n)return qi(e),n=_i(e.site),yi.insert(u,n),u.edge=n.edge=zi(e.site,u.site),Li(e),void Li(n);if(n){qi(e),qi(n);var l=e.site,c=l.x,f=l.y,p=t.x-c,h=t.y-f,d=n.site,g=d.x-c,v=d.y-f,m=2*(p*v-h*g),y=p*p+h*h,x=g*g+v*v,b={x:(v*y-h*x)/m+c,y:(p*x-g*y)/m+f};Ri(n.edge,l,d,b),u.edge=zi(l,t,null,b),n.edge=zi(t,d,null,b),Li(e),Li(n)}else u.edge=zi(e.site,u.site)}}function Ci(t,e){var n=t.site,r=n.x,i=n.y,o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var s=(n=a.site).x,u=n.y,l=u-e;if(!l)return s;var c=s-r,f=1/o-1/l,p=c/l;return f?(-p+Math.sqrt(p*p-2*f*(c*c/(-2*l)-u+l/2+i-o/2)))/f+r:(r+s)/2}function Si(t,e){var n=t.N;if(n)return Ci(n,e);var r=t.site;return r.y===e?r.x:1/0}function Ni(t){this.site=t,this.edges=[]}function Di(t,e){return e.angle-t.angle}function Oi(){Bi(this),this.x=this.y=this.arc=this.site=this.cy=null}function Li(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,o=n.site;if(r!==o){var a=i.x,s=i.y,u=r.x-a,l=r.y-s,c=o.x-a,f=2*(u*(v=o.y-s)-l*c);if(!(f>=-Ct)){var p=u*u+l*l,h=c*c+v*v,d=(v*p-l*h)/f,g=(u*h-c*p)/f,v=g+s,m=Mi.pop()||new Oi;m.arc=t,m.site=i,m.x=d+a,m.y=v+Math.sqrt(d*d+g*g),m.cy=v,t.circle=m;for(var y=null,x=bi._;x;)if(m.y=s)return;if(p>d){if(o){if(o.y>=l)return}else o={x:v,y:u};n={x:v,y:l}}else{if(o){if(o.y1)if(p>d){if(o){if(o.y>=l)return}else o={x:(u-i)/r,y:u};n={x:(l-i)/r,y:l}}else{if(o){if(o.y=s)return}else o={x:a,y:r*a+i};n={x:s,y:r*s+i}}else{if(o){if(o.xTt||M(i-n)>Tt)&&(s.splice(a,0,new Fi(Ii(o.site,c,M(r-f)Tt?{x:f,y:M(e-f)Tt?{x:M(n-d)Tt?{x:p,y:M(e-p)Tt?{x:M(n-h)=n&&l.x<=i&&l.y>=r&&l.y<=a?[[n,a],[i,a],[i,r],[n,r]]:[]).point=t[s]})),e}function s(t){return t.map((function(t,e){return{x:Math.round(r(t,e)/Tt)*Tt,y:Math.round(i(t,e)/Tt)*Tt,i:e}}))}return a.links=function(t){return $i(s(t)).edges.filter((function(t){return t.l&&t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},a.triangles=function(t){var e=[];return $i(s(t)).cells.forEach((function(n,r){for(var i,o,a,s,u=n.site,l=n.edges.sort(Di),c=-1,f=l.length,p=l[f-1].edge,h=p.l===u?p.r:p.l;++co||f>a||p=w)<<1|e>=b,E=M+4;Mo&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:eo(n,r)})),o=io.lastIndex;return og&&(g=u.x),u.y>v&&(v=u.y),l.push(u.x),c.push(u.y);else for(f=0;fg&&(g=x),b>v&&(v=b),l.push(x),c.push(b)}var w=g-h,E=v-d;function _(t,e,n,r,i,o,a,s){if(!isNaN(n)&&!isNaN(r))if(t.leaf){var u=t.x,l=t.y;if(null!=u)if(M(u-n)+M(l-r)<.01)A(t,e,n,r,i,o,a,s);else{var c=t.point;t.x=t.y=t.point=null,A(t,c,u,l,i,o,a,s),A(t,e,n,r,i,o,a,s)}else t.x=n,t.y=r,t.point=e}else A(t,e,n,r,i,o,a,s)}function A(t,e,n,r,i,o,a,s){var u=.5*(i+a),l=.5*(o+s),c=n>=u,f=r>=l,p=f<<1|c;t.leaf=!1,c?i=u:a=u,f?o=l:s=l,_(t=t.nodes[p]||(t.nodes[p]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,n,r,i,o,a,s)}w>E?v=d+w:g=h+E;var k={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){_(k,t,+m(t,++f),+y(t,f),h,d,g,v)},visit:function(t){Ki(t,k,h,d,g,v)},find:function(t){return Qi(k,t[0],t[1],h,d,g,v)}};if(f=-1,null==e){for(;++f=0&&!(n=o.interpolators[r](t,e)););return n}function ao(t,e){var n,r=[],i=[],o=t.length,a=e.length,s=Math.min(t.length,e.length);for(n=0;n=1?1:t(e)}}function fo(t){return function(e){return 1-t(1-e)}}function po(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function ho(t){return t*t}function go(t){return t*t*t}function vo(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}function mo(t){return 1-Math.cos(t*Ot)}function yo(t){return Math.pow(2,10*(t-1))}function xo(t){return 1-Math.sqrt(1-t*t)}function bo(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function wo(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function Mo(t){var e,n,r,i=[t.a,t.b],o=[t.c,t.d],a=_o(i),s=Eo(i,o),u=_o(((e=o)[0]+=(r=-s)*(n=i)[0],e[1]+=r*n[1],e))||0;i[0]*o[1]=0?t.slice(0,e):t,r=e>=0?t.slice(e+1):"in";return n=uo.get(n)||so,co((r=lo.get(r)||q)(n.apply(null,a.call(arguments,1))))},o.interpolateHcl=function(t,e){t=o.hcl(t),e=o.hcl(e);var n=t.h,r=t.c,i=t.l,a=e.h-n,s=e.c-r,u=e.l-i;isNaN(s)&&(s=0,r=isNaN(r)?e.c:r);isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:a<-180&&(a+=360);return function(t){return Kt(n+a*t,r+s*t,i+u*t)+""}},o.interpolateHsl=function(t,e){t=o.hsl(t),e=o.hsl(e);var n=t.h,r=t.s,i=t.l,a=e.h-n,s=e.s-r,u=e.l-i;isNaN(s)&&(s=0,r=isNaN(r)?e.s:r);isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:a<-180&&(a+=360);return function(t){return Yt(n+a*t,r+s*t,i+u*t)+""}},o.interpolateLab=function(t,e){t=o.lab(t),e=o.lab(e);var n=t.l,r=t.a,i=t.b,a=e.l-n,s=e.a-r,u=e.b-i;return function(t){return re(n+a*t,r+s*t,i+u*t)+""}},o.interpolateRound=wo,o.transform=function(t){var e=u.createElementNS(o.ns.prefix.svg,"g");return(o.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new Mo(n?n.matrix:Ao)})(t)},Mo.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Ao={a:1,b:0,c:0,d:1,e:0,f:0};function ko(t,e){var n,r=[],i=[],a=o.transform(t),s=o.transform(e),u=a.translate,l=s.translate,c=a.rotate,f=s.rotate,p=a.skew,h=s.skew,d=a.scale,g=s.scale;return u[0]!=l[0]||u[1]!=l[1]?(r.push("translate(",null,",",null,")"),i.push({i:1,x:eo(u[0],l[0])},{i:3,x:eo(u[1],l[1])})):l[0]||l[1]?r.push("translate("+l+")"):r.push(""),c!=f?(c-f>180?f+=360:f-c>180&&(c+=360),i.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:eo(c,f)})):f&&r.push(r.pop()+"rotate("+f+")"),p!=h?i.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:eo(p,h)}):h&&r.push(r.pop()+"skewX("+h+")"),d[0]!=g[0]||d[1]!=g[1]?(n=r.push(r.pop()+"scale(",null,",",null,")"),i.push({i:n-4,x:eo(d[0],g[0])},{i:n-2,x:eo(d[1],g[1])})):1==g[0]&&1==g[1]||r.push(r.pop()+"scale("+g+")"),n=i.length,function(t){for(var e,o=-1;++o0?t:0:t>0&&(s.start({type:"start",alpha:e=t}),o.timer(a.tick)),a):e},a.start=function(){var t,e,o,s=v.length,l=m.length,h=u[0],d=u[1];for(t=0;t=0;)n.push(i[r])}function Ho(t,e){for(var n=[t],r=[];null!=(t=n.pop());)if(r.push(t),(o=t.children)&&(i=o.length))for(var i,o,a=-1;++a=0;)a.push(c=l[u]),c.parent=o,c.depth=o.depth+1;n&&(o.value=0),o.children=l}else n&&(o.value=+n.call(r,o,o.depth)||0),delete o.children;return Ho(i,(function(e){var r,i;t&&(r=e.children)&&r.sort(t),n&&(i=e.parent)&&(i.value+=e.value)})),s}return r.sort=function(e){return arguments.length?(t=e,r):t},r.children=function(t){return arguments.length?(e=t,r):e},r.value=function(t){return arguments.length?(n=t,r):n},r.revalue=function(t){return n&&(Fo(t,(function(t){t.children&&(t.value=0)})),Ho(t,(function(t){var e;t.children||(t.value=+n.call(r,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)}))),t},r},o.layout.partition=function(){var t=o.layout.hierarchy(),e=[1,1];function n(t,e,r,i){var o=t.children;if(t.x=e,t.y=t.depth*i,t.dx=r,t.dy=i,o&&(a=o.length)){var a,s,u,l=-1;for(r=t.value?r/t.value:0;++ls&&(s=r),a.push(r)}for(n=0;ni&&(r=n,i=e);return r}function ea(t){return t.reduce(na,0)}function na(t,e){return t+e[1]}function ra(t,e){return ia(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function ia(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,o=[];++n<=e;)o[n]=i*n+r;return o}function oa(t){return[o.min(t),o.max(t)]}function aa(t,e){return t.value-e.value}function sa(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function ua(t,e){t._pack_next=e,e._pack_prev=t}function la(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return.999*i*i>n*n+r*r}function ca(t){if((e=t.children)&&(u=e.length)){var e,n,r,i,o,a,s,u,l=1/0,c=-1/0,f=1/0,p=-1/0;if(e.forEach(fa),(n=e[0]).x=-n.r,n.y=0,x(n),u>1&&((r=e[1]).x=r.r,r.y=0,x(r),u>2))for(da(n,r,i=e[2]),x(i),sa(n,i),n._pack_prev=i,sa(i,r),r=n._pack_next,o=3;o0)for(a=-1;++a=f[0]&&u<=f[1]&&((s=l[o.bisect(p,u,1,d)-1]).y+=g,s.push(i[a]));return l}return i.value=function(t){return arguments.length?(e=t,i):e},i.range=function(t){return arguments.length?(n=xe(t),i):n},i.bins=function(t){return arguments.length?(r="number"==typeof t?function(e){return ia(e,t)}:xe(t),i):r},i.frequency=function(e){return arguments.length?(t=!!e,i):t},i},o.layout.pack=function(){var t,e=o.layout.hierarchy().sort(aa),n=0,r=[1,1];function i(i,o){var a=e.call(this,i,o),s=a[0],u=r[0],l=r[1],c=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(s.x=s.y=0,Ho(s,(function(t){t.r=+c(t.value)})),Ho(s,ca),n){var f=n*(t?1:Math.max(2*s.r/u,2*s.r/l))/2;Ho(s,(function(t){t.r+=f})),Ho(s,ca),Ho(s,(function(t){t.r-=f}))}return ha(s,u/2,l/2,t?1:1/Math.max(2*s.r/u,2*s.r/l)),a}return i.size=function(t){return arguments.length?(r=t,i):r},i.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,i):t},i.padding=function(t){return arguments.length?(n=+t,i):n},Ro(i,e)},o.layout.tree=function(){var t=o.layout.hierarchy().sort(null).value(null),e=ga,n=[1,1],r=null;function i(i,o){var l=t.call(this,i,o),c=l[0],f=function(t){var e,n={A:null,children:[t]},r=[n];for(;null!=(e=r.pop());)for(var i,o=e.children,a=0,s=o.length;ah.x&&(h=t),t.depth>d.depth&&(d=t)}));var g=e(p,h)/2-p.x,v=n[0]/(h.x+e(h,p)/2+g),m=n[1]/(d.depth||1);Fo(c,(function(t){t.x=(t.x+g)*v,t.y=t.depth*m}))}return l}function a(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n.length){!function(t){var e,n=0,r=0,i=t.children,o=i.length;for(;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,s=n,u=o.parent.children[0],l=o.m,c=a.m,f=s.m,p=u.m;s=ma(s),o=va(o),s&&o;)u=va(u),(a=ma(a)).a=t,(i=s.z+f-o.z-l+e(s._,o._))>0&&(ya(xa(s,t,r),t,i),l+=i,c+=i),f+=s.m,l+=o.m,p+=u.m,c+=a.m;s&&!ma(a)&&(a.t=s,a.m+=f-c),o&&!va(u)&&(u.t=o,u.m+=l-p,r=t)}return r}(t,i,t.parent.A||r[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n[0],t.y=t.depth*n[1]}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(t){return arguments.length?(r=null==(n=t)?u:null,i):r?null:n},i.nodeSize=function(t){return arguments.length?(r=null==(n=t)?null:u,i):r?n:null},Ro(i,t)},o.layout.cluster=function(){var t=o.layout.hierarchy().sort(null).value(null),e=ga,n=[1,1],r=!1;function i(i,a){var s,u=t.call(this,i,a),l=u[0],c=0;Ho(l,(function(t){var n=t.children;n&&n.length?(t.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(n),t.y=function(t){return 1+o.max(t,(function(t){return t.y}))}(n)):(t.x=s?c+=e(t,s):0,t.y=0,s=t)}));var f=ba(l),p=wa(l),h=f.x-e(f,p)/2,d=p.x+e(p,f)/2;return Ho(l,r?function(t){t.x=(t.x-l.x)*n[0],t.y=(l.y-t.y)*n[1]}:function(t){t.x=(t.x-h)/(d-h)*n[0],t.y=(1-(l.y?t.y/l.y:1))*n[1]}),u}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(t){return arguments.length?(r=null==(n=t),i):r?null:n},i.nodeSize=function(t){return arguments.length?(r=null!=(n=t),i):r?n:null},Ro(i,t)},o.layout.treemap=function(){var t,e=o.layout.hierarchy(),n=Math.round,r=[1,1],i=null,a=Ma,s=!1,u="squarify",l=.5*(1+Math.sqrt(5));function c(t,e){for(var n,r,i=-1,o=t.length;++i0;)s.push(n=l[i-1]),s.area+=n.area,"squarify"!==u||(r=h(s,g))<=p?(l.pop(),p=r):(s.area-=s.pop().area,d(s,g,o,!1),g=Math.min(o.dx,o.dy),s.length=s.area=0,p=1/0);s.length&&(d(s,g,o,!0),s.length=s.area=0),e.forEach(f)}}function p(t){var e=t.children;if(e&&e.length){var n,r=a(t),i=e.slice(),o=[];for(c(i,r.dx*r.dy/t.value),o.area=0;n=i.pop();)o.push(n),o.area+=n.area,null!=n.z&&(d(o,n.z?r.dx:r.dy,r,!i.length),o.length=o.area=0);e.forEach(p)}}function h(t,e){for(var n,r=t.area,i=0,o=1/0,a=-1,s=t.length;++ai&&(i=n));return e*=e,(r*=r)?Math.max(e*i*l/r,r/(e*o*l)):1/0}function d(t,e,r,i){var o,a=-1,s=t.length,u=r.x,l=r.y,c=e?n(t.area/e):0;if(e==r.dx){for((i||c>r.dy)&&(c=r.dy);++ar.dx)&&(c=r.dx);++a1);return t+e*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=o.random.normal.apply(o,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=o.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;n2?Sa:ka,u=r?Co:To;return i=a(t,e,u,n),o=a(e,t,u,oo),s}function s(t){return i(t)}return s.invert=function(t){return o(t)},s.domain=function(e){return arguments.length?(t=e.map(Number),a()):t},s.range=function(t){return arguments.length?(e=t,a()):e},s.rangeRound=function(t){return s.range(t).interpolate(wo)},s.clamp=function(t){return arguments.length?(r=t,a()):r},s.interpolate=function(t){return arguments.length?(n=t,a()):n},s.ticks=function(e){return qa(t,e)},s.tickFormat=function(e,n){return ja(t,e,n)},s.nice=function(e){return Oa(t,e),a()},s.copy=function(){return Na(t,e,n,r)},a()}function Da(t,e){return o.rebind(t,e,"range","rangeRound","interpolate","clamp")}function Oa(t,e){return Ta(t,(n=La(t,e)[2])?{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}:Ca);var n}function La(t,e){null==e&&(e=10);var n=_a(t),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),o=e/r*i;return o<=.15?i*=10:o<=.35?i*=5:o<=.75&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function qa(t,e){return o.range.apply(o,La(t,e))}function ja(t,e,n){var r=La(t,e);if(n){var i=qe.exec(n);if(i.shift(),"s"===i[8]){var a=o.formatPrefix(Math.max(M(r[0]),M(r[1])));return i[7]||(i[7]="."+za(a.scale(r[2]))),i[8]="f",n=o.format(i.join("")),function(t){return n(a.scale(t))+a.symbol}}i[7]||(i[7]="."+function(t,e){var n=za(e[2]);return t in Pa?Math.abs(n-za(Math.max(M(e[0]),M(e[1]))))+ +("e"!==t):n-2*("%"===t)}(i[8],r)),n=i.join("")}else n=",."+za(r[2])+"f";return o.format(n)}o.scale.linear=function(){return Na([0,1],[0,1],oo,!1)};var Pa={s:1,g:1,p:1,r:1,e:1};function za(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function Ia(t,e,n,r){function i(t){return(n?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function a(t){return n?Math.pow(e,t):-Math.pow(e,-t)}function s(e){return t(i(e))}return s.invert=function(e){return a(t.invert(e))},s.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((r=e.map(Number)).map(i)),s):r},s.base=function(n){return arguments.length?(e=+n,t.domain(r.map(i)),s):e},s.nice=function(){var e=Ta(r.map(i),n?Math:Fa);return t.domain(e),r=e.map(a),s},s.ticks=function(){var t=_a(r),o=[],s=t[0],u=t[1],l=Math.floor(i(s)),c=Math.ceil(i(u)),f=e%1?2:e;if(isFinite(c-l)){if(n){for(;l0;p--)o.push(a(l)*p);for(l=0;o[l]u;c--);o=o.slice(l,c)}return o},s.tickFormat=function(t,e){if(!arguments.length)return Ra;arguments.length<2?e=Ra:"function"!=typeof e&&(e=o.format(e));var r,u=Math.max(.1,t/s.ticks().length),l=n?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(t){return t/a(l(i(t)+r))<=u?e(t):""}},s.copy=function(){return Ia(t.copy(),e,n,r)},Da(s,t)}o.scale.log=function(){return Ia(o.scale.linear().domain([0,1]),10,!0,[1,10])};var Ra=o.format(".0e"),Fa={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Ha(t,e,n){var r=Ba(e),i=Ba(1/e);function o(e){return t(r(e))}return o.invert=function(e){return i(t.invert(e))},o.domain=function(e){return arguments.length?(t.domain((n=e.map(Number)).map(r)),o):n},o.ticks=function(t){return qa(n,t)},o.tickFormat=function(t,e){return ja(n,t,e)},o.nice=function(t){return o.domain(Oa(n,t))},o.exponent=function(a){return arguments.length?(r=Ba(e=a),i=Ba(1/e),t.domain(n.map(r)),o):e},o.copy=function(){return Ha(t.copy(),e,n)},Da(o,t)}function Ba(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Ua(t,e){var n,r,i;function a(i){return r[((n.get(i)||("range"===e.t?n.set(i,t.push(i)):NaN))-1)%r.length]}function s(e,n){return o.range(t.length).map((function(t){return e+n*t}))}return a.domain=function(r){if(!arguments.length)return t;t=[],n=new A;for(var i,o=-1,s=r.length;++o0?n[r-1]:t[0],rf?0:1;if(l=Dt)return u(l,h)+(s?u(s,1-h):"")+"Z";var d,g,v,m,y,x,b,w,M,E,_,A,k=0,T=0,C=[];if((m=(+a.apply(this,arguments)||0)/2)&&(v=r===Ja?Math.sqrt(s*s+l*l):+r.apply(this,arguments),h||(T*=-1),l&&(T=It(v/l*Math.sin(m))),s&&(k=It(v/s*Math.sin(m)))),l){y=l*Math.cos(c+T),x=l*Math.sin(c+T),b=l*Math.cos(f-T),w=l*Math.sin(f-T);var S=Math.abs(f-c-2*T)<=St?0:1;if(T&&os(y,x,b,w)===h^S){var N=(c+f)/2;y=l*Math.cos(N),x=l*Math.sin(N),b=w=null}}else y=x=0;if(s){M=s*Math.cos(f-k),E=s*Math.sin(f-k),_=s*Math.cos(c+k),A=s*Math.sin(c+k);var D=Math.abs(c-f+2*k)<=St?0:1;if(k&&os(M,E,_,A)===1-h^D){var O=(c+f)/2;M=s*Math.cos(O),E=s*Math.sin(O),_=A=null}}else M=E=0;if((d=Math.min(Math.abs(l-s)/2,+n.apply(this,arguments)))>.001){g=s0?0:1}function as(t,e,n,r,i){var o=t[0]-e[0],a=t[1]-e[1],s=(i?r:-r)/Math.sqrt(o*o+a*a),u=s*a,l=-s*o,c=t[0]+u,f=t[1]+l,p=e[0]+u,h=e[1]+l,d=(c+p)/2,g=(f+h)/2,v=p-c,m=h-f,y=v*v+m*m,x=n-r,b=c*h-p*f,w=(m<0?-1:1)*Math.sqrt(x*x*y-b*b),M=(b*m-v*w)/y,E=(-b*v-m*w)/y,_=(b*m+v*w)/y,A=(-b*v+m*w)/y,k=M-d,T=E-g,C=_-d,S=A-g;return k*k+T*T>C*C+S*S&&(M=_,E=A),[[M-u,E-l],[M*n/x,E*n/x]]}function ss(t){var e=ui,n=li,r=Qn,i=ls,o=i.key,a=.7;function s(o){var s,u=[],l=[],c=-1,f=o.length,p=xe(e),h=xe(n);function d(){u.push("M",i(t(l),a))}for(;++c1&&i.push("H",r[0]);return i.join("")},"step-before":cs,"step-after":fs,basis:ds,"basis-open":function(t){if(t.length<4)return ls(t);var e,n=[],r=-1,i=t.length,o=[0],a=[0];for(;++r<3;)e=t[r],o.push(e[0]),a.push(e[1]);n.push(gs(ys,o)+","+gs(ys,a)),--r;for(;++r9&&(i=3*e/Math.sqrt(i),a[s]=i*n,a[s+1]=i*r);s=-1;for(;++s<=u;)i=(t[Math.min(u,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),o.push([i||0,a[s]*i||0]);return o}(t))}});function ls(t){return t.join("L")}function cs(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e1){s=e[1],o=t[u],u++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(o[0]-s[0])+","+(o[1]-s[1])+","+o[0]+","+o[1];for(var l=2;lSt)+",1 "+e}function u(t,e,n,r){return"Q 0,0 "+r}return o.radius=function(t){return arguments.length?(n=xe(t),o):n},o.source=function(e){return arguments.length?(t=xe(e),o):t},o.target=function(t){return arguments.length?(e=xe(t),o):e},o.startAngle=function(t){return arguments.length?(r=xe(t),o):r},o.endAngle=function(t){return arguments.length?(i=xe(t),o):i},o},o.svg.diagonal=function(){var t=Yr,e=Gr,n=_s;function r(r,i){var o=t.call(this,r,i),a=e.call(this,r,i),s=(o.y+a.y)/2,u=[o,{x:o.x,y:s},{x:a.x,y:s},a];return"M"+(u=u.map(n))[0]+"C"+u[1]+" "+u[2]+" "+u[3]}return r.source=function(e){return arguments.length?(t=xe(e),r):t},r.target=function(t){return arguments.length?(e=xe(t),r):e},r.projection=function(t){return arguments.length?(n=t,r):n},r},o.svg.diagonal.radial=function(){var t=o.svg.diagonal(),e=_s,n=t.projection;return t.projection=function(t){return arguments.length?n(As(e=t)):e},t},o.svg.symbol=function(){var t=Ts,e=ks;function n(n,r){return(Ss.get(t.call(this,n,r))||Cs)(e.call(this,n,r))}return n.type=function(e){return arguments.length?(t=xe(e),n):t},n.size=function(t){return arguments.length?(e=xe(t),n):e},n};var Ss=o.map({circle:Cs,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*Ds)),n=e*Ds;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/Ns),n=e*Ns/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/Ns),n=e*Ns/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});o.svg.symbolTypes=Ss.keys();var Ns=Math.sqrt(3),Ds=Math.tan(30*Lt);Z.transition=function(t){for(var e,n,r=js||++Is,i=Hs(t),o=[],a=Ps||{time:Date.now(),ease:vo,delay:0,duration:250},s=-1,u=this.length;++sr)return v();var i=a[a.active];i&&(--a.count,delete a[a.active],i.event&&i.event.interrupt.call(t,t.__data__,i.index)),a.active=r,s.event&&s.event.start.call(t,t.__data__,e),s.tween.forEach((function(n,r){(r=r.call(t,t.__data__,e))&&h.push(r)})),c=s.ease,l=s.duration,o.timer((function(){return p.c=g(n||1)?Qn:g,1}),0,u)}function g(n){if(a.active!==r)return 1;for(var i=n/l,o=c(i),u=h.length;u>0;)h[--u].call(t,o);return i>=1?(s.event&&s.event.end.call(t,t.__data__,e),v()):void 0}function v(){return--a.count?delete a[r]:delete t[n],1}p.c=d}),0,u)}}zs.call=Z.call,zs.empty=Z.empty,zs.node=Z.node,zs.size=Z.size,o.transition=function(t,e){return t&&t.transition?js?t.transition(e):t:o.selection().transition(t)},o.transition.prototype=zs,zs.select=function(t){var e,n,r,i=this.id,o=this.namespace,a=[];t=K(t);for(var s=-1,u=this.length;++srect,.s>rect").attr("width",a[1]-a[0])}function g(t){t.select(".extent").attr("y",s[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",s[1]-s[0])}function v(){var f,v,m=this,y=o.select(o.event.target),x=n.of(m,arguments),b=o.select(m),w=y.datum(),M=!/^(n|s)$/.test(w)&&r,E=!/^(e|w)$/.test(w)&&i,_=y.classed("extent"),A=Et(m),k=o.mouse(m),T=o.select(c(m)).on("keydown.brush",N).on("keyup.brush",D);if(o.event.changedTouches?T.on("touchmove.brush",O).on("touchend.brush",q):T.on("mousemove.brush",O).on("mouseup.brush",q),b.interrupt().selectAll("*").interrupt(),_)k[0]=a[0]-k[0],k[1]=s[0]-k[1];else if(w){var C=+/w$/.test(w),S=+/^n/.test(w);v=[a[1-C]-k[0],s[1-S]-k[1]],k[0]=a[C],k[1]=s[S]}else o.event.altKey&&(f=k.slice());function N(){32==o.event.keyCode&&(_||(f=null,k[0]-=a[1],k[1]-=s[1],_=2),H())}function D(){32==o.event.keyCode&&2==_&&(k[0]+=a[1],k[1]+=s[1],_=0,H())}function O(){var t=o.mouse(m),e=!1;v&&(t[0]+=v[0],t[1]+=v[1]),_||(o.event.altKey?(f||(f=[(a[0]+a[1])/2,(s[0]+s[1])/2]),k[0]=a[+(t[0]1?{floor:function(e){for(;s(e=t.floor(e));)e=tu(e-1);return e},ceil:function(e){for(;s(e=t.ceil(e));)e=tu(+e+1);return e}}:t))},r.ticks=function(t,e){var n=_a(r.domain()),o=null==t?i(n,10):"number"==typeof t?i(n,t):!t.range&&[{range:t},e];return o&&(t=o[0],e=o[1]),t.range(n[0],tu(+n[1]+1),e<1?1:e)},r.tickFormat=function(){return n},r.copy=function(){return Js(t.copy(),e,n)},Da(r,t)}function tu(t){return new Date(t)}Gs.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Qs:Ks,Qs.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},Qs.toString=Ks.toString,ze.second=He((function(t){return new Ie(1e3*Math.floor(t/1e3))}),(function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))}),(function(t){return t.getSeconds()})),ze.seconds=ze.second.range,ze.seconds.utc=ze.second.utc.range,ze.minute=He((function(t){return new Ie(6e4*Math.floor(t/6e4))}),(function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))}),(function(t){return t.getMinutes()})),ze.minutes=ze.minute.range,ze.minutes.utc=ze.minute.utc.range,ze.hour=He((function(t){var e=t.getTimezoneOffset()/60;return new Ie(36e5*(Math.floor(t/36e5-e)+e))}),(function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))}),(function(t){return t.getHours()})),ze.hours=ze.hour.range,ze.hours.utc=ze.hour.utc.range,ze.month=He((function(t){return(t=ze.day(t)).setDate(1),t}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t){return t.getMonth()})),ze.months=ze.month.range,ze.months.utc=ze.month.utc.range;var eu=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],nu=[[ze.second,1],[ze.second,5],[ze.second,15],[ze.second,30],[ze.minute,1],[ze.minute,5],[ze.minute,15],[ze.minute,30],[ze.hour,1],[ze.hour,3],[ze.hour,6],[ze.hour,12],[ze.day,1],[ze.day,2],[ze.week,1],[ze.month,1],[ze.month,3],[ze.year,1]],ru=Gs.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",Qn]]),iu={range:function(t,e,n){return o.range(Math.ceil(t/n)*n,+e,n).map(tu)},floor:q,ceil:q};nu.year=ze.year,ze.scale=function(){return Js(o.scale.linear(),nu,ru)};var ou=nu.map((function(t){return[t[0].utc,t[1]]})),au=Zs.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",Qn]]);function su(t){return JSON.parse(t.responseText)}function uu(t){var e=u.createRange();return e.selectNode(u.body),e.createContextualFragment(t.responseText)}ou.year=ze.year.utc,ze.scale.utc=function(){return Js(o.scale.linear(),ou,au)},o.text=be((function(t){return t.responseText})),o.json=function(t,e){return we(t,"application/json",su,e)},o.html=function(t,e){return we(t,"text/html",uu,e)},o.xml=be((function(t){return t.responseXML})),void 0===(i="function"==typeof(r=o)?r.call(e,n,e,t):r)||(t.exports=i),this.d3=o}()},662:(t,e,n)=>{var r={};"d3"in n.g&&(r.d3=n.g.d3),t.exports=n(78),"d3"in r?n.g.d3=r.d3:delete n.g.d3},755:function(t,e){var n; /*! * jQuery JavaScript Library v3.6.0 * https://jquery.com/ @@ -11,7 +11,7 @@ var FeatureViewer;(()=>{var t={568:(t,e,n)=>{n(755),n(662);n.g.jQuery=n(755),n(6 * https://jquery.org/license * * Date: 2021-03-02T17:08Z - */!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,u=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},l=o.push,c=o.indexOf,f={},p=f.toString,h=f.hasOwnProperty,d=h.toString,g=d.call(Object),v={},m=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},x=r.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function w(t,e,n){var r,i,o=(n=n||x).createElement("script");if(o.text=t,e)for(r in b)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function E(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?f[p.call(t)]||"object":typeof t}var M="3.6.0",_=function(t,e){return new _.fn.init(t,e)};function k(t){var e=!!t&&"length"in t&&t.length,n=E(t);return!m(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}_.fn=_.prototype={jquery:M,constructor:_,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=_.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return _.each(this,t)},map:function(t){return this.pushStack(_.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(_.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n0&&e-1 in t)}_.fn=_.prototype={jquery:E,constructor:_,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=_.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return _.each(this,t)},map:function(t){return this.pushStack(_.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(_.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n{var t={568:(t,e,n)=>{n(755),n(662);n.g.jQuery=n(755),n(6 * * Date: 2021-02-16 */ -function(t){var e,n,r,i,o,a,s,u,l,c,f,p,h,d,g,v,m,y,x,b="sizzle"+1*new Date,w=t.document,E=0,M=0,_=ut(),k=ut(),T=ut(),A=ut(),C=function(t,e){return t===e&&(f=!0),0},S={}.hasOwnProperty,N=[],D=N.pop,O=N.push,L=N.push,q=N.slice,j=function(t,e){for(var n=0,r=t.length;n+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),V=new RegExp(z+"|>"),$=new RegExp(F),X=new RegExp("^"+I+"$"),Y={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Z=/HTML$/i,G=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){p()},at=bt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{L.apply(N=q.call(w.childNodes),w.childNodes),N[w.childNodes.length].nodeType}catch(t){L={apply:N.length?function(t,e){O.apply(t,q.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function st(t,e,r,i){var o,s,l,c,f,d,m,y=e&&e.ownerDocument,w=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==w&&9!==w&&11!==w)return r;if(!i&&(p(e),e=e||h,g)){if(11!==w&&(f=J.exec(t)))if(o=f[1]){if(9===w){if(!(l=e.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(y&&(l=y.getElementById(o))&&x(e,l)&&l.id===o)return r.push(l),r}else{if(f[2])return L.apply(r,e.getElementsByTagName(t)),r;if((o=f[3])&&n.getElementsByClassName&&e.getElementsByClassName)return L.apply(r,e.getElementsByClassName(o)),r}if(n.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==w||"object"!==e.nodeName.toLowerCase())){if(m=t,y=e,1===w&&(V.test(t)||W.test(t))){for((y=tt.test(t)&&mt(e.parentNode)||e)===e&&n.scope||((c=e.getAttribute("id"))?c=c.replace(rt,it):e.setAttribute("id",c=b)),s=(d=a(t)).length;s--;)d[s]=(c?"#"+c:":scope")+" "+xt(d[s]);m=d.join(",")}try{return L.apply(r,y.querySelectorAll(m)),r}catch(e){A(t,!0)}finally{c===b&&e.removeAttribute("id")}}}return u(t.replace(B,"$1"),e,r,i)}function ut(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function lt(t){return t[b]=!0,t}function ct(t){var e=h.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ft(t,e){for(var n=t.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=e}function pt(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ht(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function gt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function vt(t){return lt((function(e){return e=+e,lt((function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=st.support={},o=st.isXML=function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!Z.test(e||n&&n.nodeName||"HTML")},p=st.setDocument=function(t){var e,i,a=t?t.ownerDocument||t:w;return a!=h&&9===a.nodeType&&a.documentElement?(d=(h=a).documentElement,g=!o(h),w!=h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ot,!1):i.attachEvent&&i.attachEvent("onunload",ot)),n.scope=ct((function(t){return d.appendChild(t).appendChild(h.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=ct((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ct((function(t){return t.appendChild(h.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=Q.test(h.getElementsByClassName),n.getById=ct((function(t){return d.appendChild(t).id=b,!h.getElementsByName||!h.getElementsByName(b).length})),n.getById?(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},m=[],v=[],(n.qsa=Q.test(h.querySelectorAll))&&(ct((function(t){var e;d.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+P+")"),t.querySelectorAll("[id~="+b+"-]").length||v.push("~="),(e=h.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||v.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll(":checked").length||v.push(":checked"),t.querySelectorAll("a#"+b+"+*").length||v.push(".#.+[+~]"),t.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")})),ct((function(t){t.innerHTML="";var e=h.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&v.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),d.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")}))),(n.matchesSelector=Q.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ct((function(t){n.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),m.push("!=",F)})),v=v.length&&new RegExp(v.join("|")),m=m.length&&new RegExp(m.join("|")),e=Q.test(d.compareDocumentPosition),x=e||Q.test(d.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},C=e?function(t,e){if(t===e)return f=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t==h||t.ownerDocument==w&&x(w,t)?-1:e==h||e.ownerDocument==w&&x(w,e)?1:c?j(c,t)-j(c,e):0:4&r?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t==h?-1:e==h?1:i?-1:o?1:c?j(c,t)-j(c,e):0;if(i===o)return pt(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pt(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0},h):h},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(p(t),n.matchesSelector&&g&&!A[e+" "]&&(!m||!m.test(e))&&(!v||!v.test(e)))try{var r=y.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){A(e,!0)}return st(e,h,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=h&&p(t),x(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=h&&p(t);var i=r.attrHandle[e.toLowerCase()],o=i&&S.call(r.attrHandle,e.toLowerCase())?i(t,e,!g):void 0;return void 0!==o?o:n.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},st.escape=function(t){return(t+"").replace(rt,it)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(C),f){for(;e=t[o++];)e===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return c=null,t},i=st.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},(r=st.selectors={cacheLength:50,createPseudo:lt,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&$.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=_[t+" "];return e||(e=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+z+"|$)"))&&_(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=st.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(H," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,p,h,d,g=o!==a?"nextSibling":"previousSibling",v=e.parentNode,m=s&&e.nodeName.toLowerCase(),y=!u&&!s,x=!1;if(v){if(o){for(;g;){for(p=e;p=p[g];)if(s?p.nodeName.toLowerCase()===m:1===p.nodeType)return!1;d=g="only"===t&&!d&&"nextSibling"}return!0}if(d=[a?v.firstChild:v.lastChild],a&&y){for(x=(h=(l=(c=(f=(p=v)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[t]||[])[0]===E&&l[1])&&l[2],p=h&&v.childNodes[h];p=++h&&p&&p[g]||(x=h=0)||d.pop();)if(1===p.nodeType&&++x&&p===e){c[t]=[E,h,x];break}}else if(y&&(x=h=(l=(c=(f=(p=e)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[t]||[])[0]===E&&l[1]),!1===x)for(;(p=++h&&p&&p[g]||(x=h=0)||d.pop())&&((s?p.nodeName.toLowerCase()!==m:1!==p.nodeType)||!++x||(y&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[t]=[E,x]),p!==e)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return i[b]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?lt((function(t,n){for(var r,o=i(t,e),a=o.length;a--;)t[r=j(t,o[a])]=!(n[r]=o[a])})):function(t){return i(t,0,n)}):i}},pseudos:{not:lt((function(t){var e=[],n=[],r=s(t.replace(B,"$1"));return r[b]?lt((function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}})),has:lt((function(t){return function(e){return st(t,e).length>0}})),contains:lt((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||i(e)).indexOf(t)>-1}})),lang:lt((function(t){return X.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===d},focus:function(t){return t===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return G.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:vt((function(){return[0]})),last:vt((function(t,e){return[e-1]})),eq:vt((function(t,e,n){return[n<0?n+e:n]})),even:vt((function(t,e){for(var n=0;ne?e:n;--r>=0;)t.push(r);return t})),gt:vt((function(t,e,n){for(var r=n<0?n+e:n;++r1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function Et(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;s-1&&(o[l]=!(a[l]=f))}}else m=Et(m===a?m.splice(d,m.length):m),i?i(null,a,m,u):L.apply(a,m)}))}function _t(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],s=a||r.relative[" "],u=a?1:0,c=bt((function(t){return t===e}),s,!0),f=bt((function(t){return j(e,t)>-1}),s,!0),p=[function(t,n,r){var i=!a&&(r||n!==l)||((e=n).nodeType?c(t,n,r):f(t,n,r));return e=null,i}];u1&&wt(p),u>1&&xt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(B,"$1"),n,u0,i=t.length>0,o=function(o,a,s,u,c){var f,d,v,m=0,y="0",x=o&&[],b=[],w=l,M=o||i&&r.find.TAG("*",c),_=E+=null==w?1:Math.random()||.1,k=M.length;for(c&&(l=a==h||a||c);y!==k&&null!=(f=M[y]);y++){if(i&&f){for(d=0,a||f.ownerDocument==h||(p(f),s=!g);v=t[d++];)if(v(f,a||h,s)){u.push(f);break}c&&(E=_)}n&&((f=!v&&f)&&m--,o&&x.push(f))}if(m+=y,n&&y!==m){for(d=0;v=e[d++];)v(x,b,a,s);if(o){if(m>0)for(;y--;)x[y]||b[y]||(b[y]=D.call(u));b=Et(b)}L.apply(u,b),c&&!o&&b.length>0&&m+e.length>1&&st.uniqueSort(u)}return c&&(E=_,l=w),x};return n?lt(o):o}(o,i))).selector=t}return s},u=st.select=function(t,e,n,i){var o,u,l,c,f,p="function"==typeof t&&t,h=!i&&a(t=p.selector||t);if(n=n||[],1===h.length){if((u=h[0]=h[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===e.nodeType&&g&&r.relative[u[1].type]){if(!(e=(r.find.ID(l.matches[0].replace(et,nt),e)||[])[0]))return n;p&&(e=e.parentNode),t=t.slice(u.shift().value.length)}for(o=Y.needsContext.test(t)?0:u.length;o--&&(l=u[o],!r.relative[c=l.type]);)if((f=r.find[c])&&(i=f(l.matches[0].replace(et,nt),tt.test(u[0].type)&&mt(e.parentNode)||e))){if(u.splice(o,1),!(t=i.length&&xt(u)))return L.apply(n,i),n;break}}return(p||s(t,h))(i,e,!g,n,!e||tt.test(t)&&mt(e.parentNode)||e),n},n.sortStable=b.split("").sort(C).join("")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ct((function(t){return 1&t.compareDocumentPosition(h.createElement("fieldset"))})),ct((function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")}))||ft("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&ct((function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ft("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ct((function(t){return null==t.getAttribute("disabled")}))||ft(P,(function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null})),st}(r);_.find=T,_.expr=T.selectors,_.expr[":"]=_.expr.pseudos,_.uniqueSort=_.unique=T.uniqueSort,_.text=T.getText,_.isXMLDoc=T.isXML,_.contains=T.contains,_.escapeSelector=T.escape;var A=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&_(t).is(n))break;r.push(t)}return r},C=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},S=_.expr.match.needsContext;function N(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(t,e,n){return m(e)?_.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?_.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?_.grep(t,(function(t){return c.call(e,t)>-1!==n})):_.filter(e,t,n)}_.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?_.find.matchesSelector(r,t)?[r]:[]:_.find.matches(t,_.grep(e,(function(t){return 1===t.nodeType})))},_.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(_(t).filter((function(){for(e=0;e1?_.uniqueSort(n):n},filter:function(t){return this.pushStack(O(this,t||[],!1))},not:function(t){return this.pushStack(O(this,t||[],!0))},is:function(t){return!!O(this,"string"==typeof t&&S.test(t)?_(t):t||[],!1).length}});var L,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||L,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:q.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof _?e[0]:e,_.merge(this,_.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:x,!0)),D.test(r[1])&&_.isPlainObject(e))for(r in e)m(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=x.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):m(t)?void 0!==n.ready?n.ready(t):t(_):_.makeArray(t,this)}).prototype=_.fn,L=_(x);var j=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function z(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}_.fn.extend({has:function(t){var e=_(t,this),n=e.length;return this.filter((function(){for(var t=0;t-1:1===n.nodeType&&_.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?_.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(_(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),_.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return A(t,"parentNode")},parentsUntil:function(t,e,n){return A(t,"parentNode",n)},next:function(t){return z(t,"nextSibling")},prev:function(t){return z(t,"previousSibling")},nextAll:function(t){return A(t,"nextSibling")},prevAll:function(t){return A(t,"previousSibling")},nextUntil:function(t,e,n){return A(t,"nextSibling",n)},prevUntil:function(t,e,n){return A(t,"previousSibling",n)},siblings:function(t){return C((t.parentNode||{}).firstChild,t)},children:function(t){return C(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(N(t,"template")&&(t=t.content||t),_.merge([],t.childNodes))}},(function(t,e){_.fn[t]=function(n,r){var i=_.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=_.filter(r,i)),this.length>1&&(P[t]||_.uniqueSort(i),j.test(t)&&i.reverse()),this.pushStack(i)}}));var I=/[^\x20\t\r\n\f]+/g;function R(t){return t}function F(t){throw t}function H(t,e,n,r){var i;try{t&&m(i=t.promise)?i.call(t).done(e).fail(n):t&&m(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}_.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return _.each(t.match(I)||[],(function(t,n){e[n]=!0})),e}(t):_.extend({},t);var e,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||t.once,r=e=!0;a.length;s=-1)for(n=a.shift();++s-1;)o.splice(n,1),n<=s&&s--})),this},has:function(t){return t?_.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},_.extend({Deferred:function(t){var e=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return _.Deferred((function(n){_.each(e,(function(e,r){var i=m(t[r[4]])&&t[r[4]];o[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&m(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,i){var o=0;function a(t,e,n,i){return function(){var s=this,u=arguments,l=function(){var r,l;if(!(t=o&&(n!==F&&(s=void 0,u=[r]),e.rejectWith(s,u))}};t?c():(_.Deferred.getStackHook&&(c.stackTrace=_.Deferred.getStackHook()),r.setTimeout(c))}}return _.Deferred((function(r){e[0][3].add(a(0,r,m(i)?i:R,r.notifyWith)),e[1][3].add(a(0,r,m(t)?t:R)),e[2][3].add(a(0,r,m(n)?n:F))})).promise()},promise:function(t){return null!=t?_.extend(t,i):i}},o={};return _.each(e,(function(t,r){var a=r[2],s=r[5];i[r[1]]=a.add,s&&a.add((function(){n=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=s.call(arguments),o=_.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?s.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(H(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||m(i[n]&&i[n].then)))return o.then();for(;n--;)H(i[n],a(n),o.reject);return o.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&B.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},_.readyException=function(t){r.setTimeout((function(){throw t}))};var U=_.Deferred();function W(){x.removeEventListener("DOMContentLoaded",W),r.removeEventListener("load",W),_.ready()}_.fn.ready=function(t){return U.then(t).catch((function(t){_.readyException(t)})),this},_.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==t&&--_.readyWait>0||U.resolveWith(x,[_]))}}),_.ready.then=U.then,"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?r.setTimeout(_.ready):(x.addEventListener("DOMContentLoaded",W),r.addEventListener("load",W));var V=function(t,e,n,r,i,o,a){var s=0,u=t.length,l=null==n;if("object"===E(n))for(s in i=!0,n)V(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(_(t),n)})),e))for(;s1,null,!0)},removeData:function(t){return this.each((function(){J.remove(this,t)}))}}),_.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=Q.get(t,e),n&&(!r||Array.isArray(n)?r=Q.access(t,e,_.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=_.queue(t,e),r=n.length,i=n.shift(),o=_._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,(function(){_.dequeue(t,e)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Q.get(t,n)||Q.access(t,n,{empty:_.Callbacks("once memory").add((function(){Q.remove(t,[e+"queue",n])}))})}}),_.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]*)/i,yt=/^$|^module$|\/(?:java|ecma)script/i;dt=x.createDocumentFragment().appendChild(x.createElement("div")),(gt=x.createElement("input")).setAttribute("type","radio"),gt.setAttribute("checked","checked"),gt.setAttribute("name","t"),dt.appendChild(gt),v.checkClone=dt.cloneNode(!0).cloneNode(!0).lastChild.checked,dt.innerHTML="",v.noCloneChecked=!!dt.cloneNode(!0).lastChild.defaultValue,dt.innerHTML="",v.option=!!dt.lastChild;var xt={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function bt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&N(t,e)?_.merge([t],n):n}function wt(t,e){for(var n=0,r=t.length;n",""]);var Et=/<|&#?\w+;/;function Mt(t,e,n,r,i){for(var o,a,s,u,l,c,f=e.createDocumentFragment(),p=[],h=0,d=t.length;h-1)i&&i.push(o);else if(l=st(o),a=bt(f.appendChild(o),"script"),l&&wt(a),n)for(c=0;o=a[c++];)yt.test(o.type||"")&&n.push(o);return f}var _t=/^([^.]*)(?:\.(.+)|)/;function kt(){return!0}function Tt(){return!1}function At(t,e){return t===function(){try{return x.activeElement}catch(t){}}()==("focus"===e)}function Ct(t,e,n,r,i,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(r=r||n,n=void 0),e)Ct(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Tt;else if(!i)return t;return 1===o&&(a=i,(i=function(t){return _().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=_.guid++)),t.each((function(){_.event.add(this,e,i,r,n)}))}function St(t,e,n){n?(Q.set(t,e,!1),_.event.add(t,e,{namespace:!1,handler:function(t){var r,i,o=Q.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(_.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=s.call(arguments),Q.set(this,e,o),r=n(this,e),this[e](),o!==(i=Q.get(this,e))||r?Q.set(this,e,!1):i={},o!==i)return t.stopImmediatePropagation(),t.preventDefault(),i&&i.value}else o.length&&(Q.set(this,e,{value:_.event.trigger(_.extend(o[0],_.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===Q.get(t,e)&&_.event.add(t,e,kt)}_.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,h,d,g,v=Q.get(t);if(G(t))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&_.find.matchesSelector(at,i),n.guid||(n.guid=_.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return void 0!==_&&_.event.triggered!==e.type?_.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(I)||[""]).length;l--;)h=g=(s=_t.exec(e[l])||[])[1],d=(s[2]||"").split(".").sort(),h&&(f=_.event.special[h]||{},h=(i?f.delegateType:f.bindType)||h,f=_.event.special[h]||{},c=_.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&_.expr.match.needsContext.test(i),namespace:d.join(".")},o),(p=u[h])||((p=u[h]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,d,a)||t.addEventListener&&t.addEventListener(h,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),_.event.global[h]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,h,d,g,v=Q.hasData(t)&&Q.get(t);if(v&&(u=v.events)){for(l=(e=(e||"").match(I)||[""]).length;l--;)if(h=g=(s=_t.exec(e[l])||[])[1],d=(s[2]||"").split(".").sort(),h){for(f=_.event.special[h]||{},p=u[h=(r?f.delegateType:f.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(t,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(t,d,v.handle)||_.removeEvent(t,h,v.handle),delete u[h])}else for(h in u)_.event.remove(t,h+e[l],n,r,!0);_.isEmptyObject(u)&&Q.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,s=new Array(arguments.length),u=_.event.fix(t),l=(Q.get(this,"events")||Object.create(null))[u.type]||[],c=_.event.special[u.type]||{};for(s[0]=u,e=1;e=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(o=[],a={},n=0;n-1:_.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u\s*$/g;function Lt(t,e){return N(t,"table")&&N(11!==e.nodeType?e:e.firstChild,"tr")&&_(t).children("tbody")[0]||t}function qt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function jt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Pt(t,e){var n,r,i,o,a,s;if(1===e.nodeType){if(Q.hasData(t)&&(s=Q.get(t).events))for(i in Q.remove(e,"handle events"),s)for(n=0,r=s[i].length;n1&&"string"==typeof d&&!v.checkClone&&Dt.test(d))return t.each((function(i){var o=t.eq(i);g&&(e[0]=d.call(this,i,o.html())),It(o,e,n,r)}));if(p&&(o=(i=Mt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=_.map(bt(i,"script"),qt)).length;f0&&wt(a,!u&&bt(t,"script")),s},cleanData:function(t){for(var e,n,r,i=_.event.special,o=0;void 0!==(n=t[o]);o++)if(G(n)){if(e=n[Q.expando]){if(e.events)for(r in e.events)i[r]?_.event.remove(n,r):_.removeEvent(n,r,e.handle);n[Q.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),_.fn.extend({detach:function(t){return Rt(this,t,!0)},remove:function(t){return Rt(this,t)},text:function(t){return V(this,(function(t){return void 0===t?_.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return It(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Lt(this,t).appendChild(t)}))},prepend:function(){return It(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Lt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return It(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return It(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(_.cleanData(bt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return _.clone(this,t,e)}))},html:function(t){return V(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Nt.test(t)&&!xt[(mt.exec(t)||["",""])[1].toLowerCase()]){t=_.htmlPrefilter(t);try{for(;n=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-u-s-.5))||0),u}function ne(t,e,n){var r=Ht(t),i=(!v.boxSizingReliable()||n)&&"border-box"===_.css(t,"boxSizing",!1,r),o=i,a=Wt(t,e,r),s="offset"+e[0].toUpperCase()+e.slice(1);if(Ft.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&i||!v.reliableTrDimensions()&&N(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===_.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===_.css(t,"boxSizing",!1,r),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+ee(t,e,n||(i?"border":"content"),o,r,a)+"px"}function re(t,e,n,r,i){return new re.prototype.init(t,e,n,r,i)}_.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Wt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=Z(e),u=Kt.test(e),l=t.style;if(u||(e=Zt(s)),a=_.cssHooks[e]||_.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:l[e];"string"===(o=typeof n)&&(i=it.exec(n))&&i[1]&&(n=ct(t,e,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(_.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(u?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,r){var i,o,a,s=Z(e);return Kt.test(e)||(e=Zt(s)),(a=_.cssHooks[e]||_.cssHooks[s])&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=Wt(t,e,r)),"normal"===i&&e in Jt&&(i=Jt[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),_.each(["height","width"],(function(t,e){_.cssHooks[e]={get:function(t,n,r){if(n)return!Gt.test(_.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ne(t,e,r):Bt(t,Qt,(function(){return ne(t,e,r)}))},set:function(t,n,r){var i,o=Ht(t),a=!v.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===_.css(t,"boxSizing",!1,o),u=r?ee(t,e,r,s,o):0;return s&&a&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ee(t,e,"border",!1,o)-.5)),u&&(i=it.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=_.css(t,e)),te(0,n,u)}}})),_.cssHooks.marginLeft=Vt(v.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Wt(t,"marginLeft"))||t.getBoundingClientRect().left-Bt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),_.each({margin:"",padding:"",border:"Width"},(function(t,e){_.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+ot[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(_.cssHooks[t+e].set=te)})),_.fn.extend({css:function(t,e){return V(this,(function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=Ht(t),i=e.length;a1)}}),_.Tween=re,re.prototype={constructor:re,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||_.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(_.cssNumber[n]?"":"px")},cur:function(){var t=re.propHooks[this.prop];return t&&t.get?t.get(this):re.propHooks._default.get(this)},run:function(t){var e,n=re.propHooks[this.prop];return this.options.duration?this.pos=e=_.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):re.propHooks._default.set(this),this}},re.prototype.init.prototype=re.prototype,re.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=_.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){_.fx.step[t.prop]?_.fx.step[t.prop](t):1!==t.elem.nodeType||!_.cssHooks[t.prop]&&null==t.elem.style[Zt(t.prop)]?t.elem[t.prop]=t.now:_.style(t.elem,t.prop,t.now+t.unit)}}},re.propHooks.scrollTop=re.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},_.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},_.fx=re.prototype.init,_.fx.step={};var ie,oe,ae=/^(?:toggle|show|hide)$/,se=/queueHooks$/;function ue(){oe&&(!1===x.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ue):r.setTimeout(ue,_.fx.interval),_.fx.tick())}function le(){return r.setTimeout((function(){ie=void 0})),ie=Date.now()}function ce(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=ot[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function fe(t,e,n){for(var r,i=(pe.tweeners[e]||[]).concat(pe.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(t){return this.each((function(){_.removeAttr(this,t)}))}}),_.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?_.prop(t,e,n):(1===o&&_.isXMLDoc(t)||(i=_.attrHooks[e.toLowerCase()]||(_.expr.match.bool.test(e)?he:void 0)),void 0!==n?null===n?void _.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=_.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&N(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(I);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),he={set:function(t,e,n){return!1===e?_.removeAttr(t,n):t.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=de[e]||_.find.attr;de[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=de[a],de[a]=i,i=null!=n(t,e,r)?a:null,de[a]=o),i}}));var ge=/^(?:input|select|textarea|button)$/i,ve=/^(?:a|area)$/i;function me(t){return(t.match(I)||[]).join(" ")}function ye(t){return t.getAttribute&&t.getAttribute("class")||""}function xe(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(I)||[]}_.fn.extend({prop:function(t,e){return V(this,_.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[_.propFix[t]||t]}))}}),_.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&_.isXMLDoc(t)||(e=_.propFix[e]||e,i=_.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=_.find.attr(t,"tabindex");return e?parseInt(e,10):ge.test(t.nodeName)||ve.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(_.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each((function(e){_(this).addClass(t.call(this,e,ye(this)))}));if((e=xe(t)).length)for(;n=this[u++];)if(i=ye(n),r=1===n.nodeType&&" "+me(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=me(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each((function(e){_(this).removeClass(t.call(this,e,ye(this)))}));if(!arguments.length)return this.attr("class","");if((e=xe(t)).length)for(;n=this[u++];)if(i=ye(n),r=1===n.nodeType&&" "+me(i)+" "){for(a=0;o=e[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=me(r))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):m(t)?this.each((function(n){_(this).toggleClass(t.call(this,n,ye(this),e),e)})):this.each((function(){var e,i,o,a;if(r)for(i=0,o=_(this),a=xe(t);e=a[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=ye(this))&&Q.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Q.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+me(ye(n))+" ").indexOf(e)>-1)return!0;return!1}});var be=/\r/g;_.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=m(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,_(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=_.map(i,(function(t){return null==t?"":t+""}))),(e=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=_.valHooks[i.type]||_.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(be,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(t){var e=_.find.attr(t,"value");return null!=e?e:me(_.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=_.inArray(_(t).val(),e)>-1}},v.checkOn||(_.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),v.focusin="onfocusin"in r;var we=/^(?:focusinfocus|focusoutblur)$/,Ee=function(t){t.stopPropagation()};_.extend(_.event,{trigger:function(t,e,n,i){var o,a,s,u,l,c,f,p,d=[n||x],g=h.call(t,"type")?t.type:t,v=h.call(t,"namespace")?t.namespace.split("."):[];if(a=p=s=n=n||x,3!==n.nodeType&&8!==n.nodeType&&!we.test(g+_.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),l=g.indexOf(":")<0&&"on"+g,(t=t[_.expando]?t:new _.Event(g,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:_.makeArray(e,[t]),f=_.event.special[g]||{},i||!f.trigger||!1!==f.trigger.apply(n,e))){if(!i&&!f.noBubble&&!y(n)){for(u=f.delegateType||g,we.test(u+g)||(a=a.parentNode);a;a=a.parentNode)d.push(a),s=a;s===(n.ownerDocument||x)&&d.push(s.defaultView||s.parentWindow||r)}for(o=0;(a=d[o++])&&!t.isPropagationStopped();)p=a,t.type=o>1?u:f.bindType||g,(c=(Q.get(a,"events")||Object.create(null))[t.type]&&Q.get(a,"handle"))&&c.apply(a,e),(c=l&&a[l])&&c.apply&&G(a)&&(t.result=c.apply(a,e),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(d.pop(),e)||!G(n)||l&&m(n[g])&&!y(n)&&((s=n[l])&&(n[l]=null),_.event.triggered=g,t.isPropagationStopped()&&p.addEventListener(g,Ee),n[g](),t.isPropagationStopped()&&p.removeEventListener(g,Ee),_.event.triggered=void 0,s&&(n[l]=s)),t.result}},simulate:function(t,e,n){var r=_.extend(new _.Event,n,{type:t,isSimulated:!0});_.event.trigger(r,null,e)}}),_.fn.extend({trigger:function(t,e){return this.each((function(){_.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return _.event.trigger(t,e,n,!0)}}),v.focusin||_.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){_.event.simulate(e,t.target,_.event.fix(t))};_.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=Q.access(r,e);i||r.addEventListener(t,n,!0),Q.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=Q.access(r,e)-1;i?Q.access(r,e,i):(r.removeEventListener(t,n,!0),Q.remove(r,e))}}}));var Me=r.location,_e={guid:Date.now()},ke=/\?/;_.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||_.error("Invalid XML: "+(n?_.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Te=/\[\]$/,Ae=/\r?\n/g,Ce=/^(?:submit|button|image|reset|file)$/i,Se=/^(?:input|select|textarea|keygen)/i;function Ne(t,e,n,r){var i;if(Array.isArray(e))_.each(e,(function(e,i){n||Te.test(t)?r(t,i):Ne(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==E(e))r(t,e);else for(i in e)Ne(t+"["+i+"]",e[i],n,r)}_.param=function(t,e){var n,r=[],i=function(t,e){var n=m(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!_.isPlainObject(t))_.each(t,(function(){i(this.name,this.value)}));else for(n in t)Ne(n,t[n],e,i);return r.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=_.prop(this,"elements");return t?_.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!_(this).is(":disabled")&&Se.test(this.nodeName)&&!Ce.test(t)&&(this.checked||!vt.test(t))})).map((function(t,e){var n=_(this).val();return null==n?null:Array.isArray(n)?_.map(n,(function(t){return{name:e.name,value:t.replace(Ae,"\r\n")}})):{name:e.name,value:n.replace(Ae,"\r\n")}})).get()}});var De=/%20/g,Oe=/#.*$/,Le=/([?&])_=[^&]*/,qe=/^(.*?):[ \t]*([^\r\n]*)$/gm,je=/^(?:GET|HEAD)$/,Pe=/^\/\//,ze={},Ie={},Re="*/".concat("*"),Fe=x.createElement("a");function He(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(I)||[];if(m(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Be(t,e,n,r){var i={},o=t===Ie;function a(s){var u;return i[s]=!0,_.each(t[s]||[],(function(t,s){var l=s(e,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(e.dataTypes.unshift(l),a(l),!1)})),u}return a(e.dataTypes[0])||!i["*"]&&a("*")}function Ue(t,e){var n,r,i=_.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&_.extend(!0,t,r),t}Fe.href=Me.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Me.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Me.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Re,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ue(Ue(t,_.ajaxSettings),e):Ue(_.ajaxSettings,t)},ajaxPrefilter:He(ze),ajaxTransport:He(Ie),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i,o,a,s,u,l,c,f,p,h=_.ajaxSetup({},e),d=h.context||h,g=h.context&&(d.nodeType||d.jquery)?_(d):_.event,v=_.Deferred(),m=_.Callbacks("once memory"),y=h.statusCode||{},b={},w={},E="canceled",M={readyState:0,getResponseHeader:function(t){var e;if(l){if(!a)for(a={};e=qe.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(t,e){return null==l&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==l&&(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)M.always(t[M.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||E;return n&&n.abort(e),k(0,e),this}};if(v.promise(M),h.url=((t||h.url||Me.href)+"").replace(Pe,Me.protocol+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(I)||[""],null==h.crossDomain){u=x.createElement("a");try{u.href=h.url,u.href=u.href,h.crossDomain=Fe.protocol+"//"+Fe.host!=u.protocol+"//"+u.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=_.param(h.data,h.traditional)),Be(ze,h,e,M),l)return M;for(f in(c=_.event&&h.global)&&0==_.active++&&_.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!je.test(h.type),i=h.url.replace(Oe,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(De,"+")):(p=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(ke.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(Le,"$1"),p=(ke.test(i)?"&":"?")+"_="+_e.guid+++p),h.url=i+p),h.ifModified&&(_.lastModified[i]&&M.setRequestHeader("If-Modified-Since",_.lastModified[i]),_.etag[i]&&M.setRequestHeader("If-None-Match",_.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||e.contentType)&&M.setRequestHeader("Content-Type",h.contentType),M.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Re+"; q=0.01":""):h.accepts["*"]),h.headers)M.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(!1===h.beforeSend.call(d,M,h)||l))return M.abort();if(E="abort",m.add(h.complete),M.done(h.success),M.fail(h.error),n=Be(Ie,h,e,M)){if(M.readyState=1,c&&g.trigger("ajaxSend",[M,h]),l)return M;h.async&&h.timeout>0&&(s=r.setTimeout((function(){M.abort("timeout")}),h.timeout));try{l=!1,n.send(b,k)}catch(t){if(l)throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,e,a,u){var f,p,x,b,w,E=e;l||(l=!0,s&&r.clearTimeout(s),n=void 0,o=u||"",M.readyState=t>0?4:0,f=t>=200&&t<300||304===t,a&&(b=function(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(h,M,a)),!f&&_.inArray("script",h.dataTypes)>-1&&_.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),b=function(t,e,n,r){var i,o,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}(h,b,M,f),f?(h.ifModified&&((w=M.getResponseHeader("Last-Modified"))&&(_.lastModified[i]=w),(w=M.getResponseHeader("etag"))&&(_.etag[i]=w)),204===t||"HEAD"===h.type?E="nocontent":304===t?E="notmodified":(E=b.state,p=b.data,f=!(x=b.error))):(x=E,!t&&E||(E="error",t<0&&(t=0))),M.status=t,M.statusText=(e||E)+"",f?v.resolveWith(d,[p,E,M]):v.rejectWith(d,[M,E,x]),M.statusCode(y),y=void 0,c&&g.trigger(f?"ajaxSuccess":"ajaxError",[M,h,f?p:x]),m.fireWith(d,[M,E]),c&&(g.trigger("ajaxComplete",[M,h]),--_.active||_.event.trigger("ajaxStop")))}return M},getJSON:function(t,e,n){return _.get(t,e,n,"json")},getScript:function(t,e){return _.get(t,void 0,e,"script")}}),_.each(["get","post"],(function(t,e){_[e]=function(t,n,r,i){return m(n)&&(i=i||r,r=n,n=void 0),_.ajax(_.extend({url:t,type:e,dataType:i,data:n,success:r},_.isPlainObject(t)&&t))}})),_.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),_._evalUrl=function(t,e,n){return _.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){_.globalEval(t,e,n)}})},_.fn.extend({wrapAll:function(t){var e;return this[0]&&(m(t)&&(t=t.call(this[0])),e=_(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return m(t)?this.each((function(e){_(this).wrapInner(t.call(this,e))})):this.each((function(){var e=_(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=m(t);return this.each((function(n){_(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(t){return!_.expr.pseudos.visible(t)},_.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var We={0:200,1223:204},Ve=_.ajaxSettings.xhr();v.cors=!!Ve&&"withCredentials"in Ve,v.ajax=Ve=!!Ve,_.ajaxTransport((function(t){var e,n;if(v.cors||Ve&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(We[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){e&&n()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),_.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return _.globalEval(t),t}}}),_.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),_.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=_("