-
Notifications
You must be signed in to change notification settings - Fork 0
/
Grafico_peoes.html
43 lines (40 loc) · 741 KB
/
Grafico_peoes.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html><html><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="static/choices/styles/css/choices.min.css">
<link rel="stylesheet" type="text/css" href="static/style.css">
<style id="choices-styles"></style>
<title>Tipo de Rua V1</title></head>
<!-- translateZ(0) is a workaround fix for an old bug that resurfaced in Chromium v.89 that causes visualisations embedded
in story slides to become invisible when they are scrolled out of view. See https://bugs.chromium.org/p/chromium/issues/detail?id=335442 -->
<body style="transform: translateZ(0);">
<!-- This empty element starts both weights of fonts to load, avoiding a transition interruption when the fontWatcher is called -->
<p style="position: fixed; visibility: hidden; left: -10000px; top: -10000px"><strong>-</strong></p>
<script>window.Flourish = {"static_prefix":"static","environment":"preview","is_read_only":true};</script><script>var template=function(t){"use strict";var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},E=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof i&&i)||function(){return this}()||Function("return this")(),y=function(t){try{return!!t()}catch(t){return!0}},S=!y(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),o={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,s,l,h={f:a&&!o.call({1:2},1)?function t(e){var e=a(this,e);return!!e&&e.enumerable}:o},c=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},u={}.toString,d=function(t){return u.call(t).slice(8,-1)},f="".split,b=y(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==d(t)?f.call(t,""):Object(t)}:Object,m=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},p=function(t){return b(m(t))},L=function(t){return"object"==typeof t?null!==t:"function"==typeof t},D=function(t,e){if(!L(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!L(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!L(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!L(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},x=function(t){return Object(m(t))},g={}.hasOwnProperty,C=function t(e,n){return g.call(x(e),n)},_=E.document,v=L(_)&&L(_.createElement),w=function(t){return v?_.createElement(t):{}},M=!S&&!y(function(){return 7!=Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a}),k=Object.getOwnPropertyDescriptor,j,O={f:S?k:function t(e,n){if(e=p(e),n=D(n,!0),M)try{return k(e,n)}catch(t){}if(C(e,n))return c(!h.f.call(e,n),e[n])}},A=function(t){if(!L(t))throw TypeError(String(t)+" is not an object");return t},I=Object.defineProperty,T,P={f:S?I:function t(e,n,r){if(A(e),n=D(n,!0),A(r),M)try{return I(e,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[n]=r.value),e}},R=S?function(t,e,n){return P.f(t,e,c(1,n))}:function(t,e,n){return t[e]=n,t},N=function(e,n){try{R(E,e,n)}catch(t){E[e]=n}return n},z="__core-js_shared__",Y,U=E[z]||N(z,{}),B=Function.toString;"function"!=typeof U.inspectSource&&(U.inspectSource=function(t){return B.call(t)});var F=U.inspectSource,Z=E.WeakMap,H="function"==typeof Z&&/native code/.test(F(Z)),G=!1,Q=n(function(t){(t.exports=function(t,e){return U[t]||(U[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.11.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),q=0,V=Math.random(),W=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++q+V).toString(36)},$=Q("keys"),X=function(t){return $[t]||($[t]=W(t))},J={},K="Object already initialized",tt=E.WeakMap,et,nt,rt,it=function(t){return rt(t)?nt(t):et(t,{})},ot=function(n){return function(t){var e;if(!L(t)||(e=nt(t)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return e}},at,st,lt,ct,et,nt,rt,ut;rt=H?(at=U.state||(U.state=new tt),st=at.get,lt=at.has,ct=at.set,et=function(t,e){if(lt.call(at,t))throw new TypeError(K);return e.facade=t,ct.call(at,t,e),e},nt=function(t){return st.call(at,t)||{}},function(t){return lt.call(at,t)}):(ut=X("state"),J[ut]=!0,et=function(t,e){if(C(t,ut))throw new TypeError(K);return e.facade=t,R(t,ut,e),e},nt=function(t){return C(t,ut)?t[ut]:{}},function(t){return C(t,ut)});var dt={set:et,get:nt,has:rt,enforce:it,getterFor:ot},ft=n(function(t){var e=dt.get,s=dt.enforce,l=String(String).split("String");(t.exports=function(t,e,n,r){var i=!!r&&!!r.unsafe,o=!!r&&!!r.enumerable,a=!!r&&!!r.noTargetGet,r;"function"==typeof n&&("string"!=typeof e||C(n,"name")||R(n,"name",e),(r=s(n)).source||(r.source=l.join("string"==typeof e?e:""))),t!==E?(i?!a&&t[e]&&(o=!0):delete t[e],o?t[e]=n:R(t,e,n)):o?t[e]=n:N(e,n)})(Function.prototype,"toString",function t(){return"function"==typeof this&&e(this).source||F(this)})}),ht=E,pt=function(t){return"function"==typeof t?t:void 0},gt=function(t,e){return arguments.length<2?pt(ht[t])||pt(E[t]):ht[t]&&ht[t][e]||E[t]&&E[t][e]},_t=Math.ceil,yt=Math.floor,mt=function(t){return isNaN(t=+t)?0:(0<t?yt:_t)(t)},vt=Math.min,bt=function(t){return 0<t?vt(mt(t),9007199254740991):0},xt=Math.max,wt=Math.min,Mt=function(t,e){var t=mt(t);return t<0?xt(t+e,0):wt(t,e)},kt=function(s){return function(t,e,n){var r=p(t),i=bt(r.length),o=Mt(n,i),a;if(s&&e!=e){for(;o<i;)if((a=r[o++])!=a)return!0}else for(;o<i;o++)if((s||o in r)&&r[o]===e)return s||o||0;return!s&&-1}},jt={includes:kt(!0),indexOf:kt(!1)},At=jt.indexOf,It=function(t,e){var n=p(t),r=0,i=[],o;for(o in n)!C(J,o)&&C(n,o)&&i.push(o);for(;e.length>r;)C(n,o=e[r++])&&(~At(i,o)||i.push(o));return i},Tt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nt=Tt.concat("length","prototype"),zt,Et={f:Object.getOwnPropertyNames||function t(e){return It(e,Nt)}},St,Lt={f:Object.getOwnPropertySymbols},Dt=gt("Reflect","ownKeys")||function t(e){var n=Et.f(A(e)),r=Lt.f;return r?n.concat(r(e)):n},Ct=function(t,e){for(var n=Dt(e),r=P.f,i=O.f,o=0;o<n.length;o++){var a=n[o];C(t,a)||r(t,a,i(e,a))}},Ot=/#|\.prototype\./,Pt=function(t,e){var t=Yt[Rt(t)];return t==Bt||t!=Ut&&("function"==typeof e?y(e):!!e)},Rt=Pt.normalize=function(t){return String(t).replace(Ot,".").toLowerCase()},Yt=Pt.data={},Ut=Pt.NATIVE="N",Bt=Pt.POLYFILL="P",Ft=Pt,Zt=O.f,Ht=function(t,e){var n=t.target,r=t.global,i=t.stat,o,a,s,l,c,l,a=r?E:i?E[n]||N(n,{}):(E[n]||{}).prototype;if(a)for(s in e){if(c=e[s],l=t.noTargetGet?(l=Zt(a,s))&&l.value:a[s],!(o=Ft(r?s:n+(i?".":"#")+s,t.forced))&&void 0!==l){if(typeof c==typeof l)continue;Ct(c,l)}(t.sham||l&&l.sham)&&R(c,"sham",!0),ft(a,s,c,t)}},Gt="process"==d(E.process),Qt=gt("navigator","userAgent")||"",qt=E.process,Vt=qt&&qt.versions,Wt=Vt&&Vt.v8,$t,Xt;Wt?Xt=($t=Wt.split("."))[0]+$t[1]:Qt&&(!($t=Qt.match(/Edge\/(\d+)/))||74<=$t[1])&&($t=Qt.match(/Chrome\/(\d+)/))&&(Xt=$t[1]);var Jt=Xt&&+Xt,Kt=!!Object.getOwnPropertySymbols&&!y(function(){return!Symbol.sham&&(Gt?38===Jt:37<Jt&&Jt<41)}),te=Kt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ee=Array.isArray||function t(e){return"Array"==d(e)},ne=Object.keys||function t(e){return It(e,Tt)},re=S?Object.defineProperties:function t(e,n){A(e);for(var r=ne(n),i=r.length,o=0,a;o<i;)P.f(e,a=r[o++],n[a]);return e},ie=gt("document","documentElement"),oe=">",ae="<",se="prototype",le="script",ce=X("IE_PROTO"),ue=function(){},de=function(t){return ae+le+oe+t+ae+"/"+le+oe},fe=function(t){t.write(de("")),t.close();var e=t.parentWindow.Object;return t=null,e},he=function(){var t=w("iframe"),e="javascript:",t;return t.style.display="none",ie.appendChild(t),t.src=String(e),(t=t.contentWindow.document).open(),t.write(de("document.F=Object")),t.close(),t.F},pe,ge=function(){try{pe=document.domain&&new ActiveXObject("htmlfile")}catch(t){}ge=pe?fe(pe):he();for(var t=Tt.length;t--;)delete ge[se][Tt[t]];return ge()};J[ce]=!0;var _e=Object.create||function t(e,n){var r;return null!==e?(ue[se]=A(e),r=new ue,ue[se]=null,r[ce]=e):r=ge(),void 0===n?r:re(r,n)},ye=Et.f,me={}.toString,ve="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],be=function(t){try{return ye(t)}catch(t){return ve.slice()}},xe,we={f:function t(e){return ve&&"[object Window]"==me.call(e)?be(e):ye(p(e))}},Me=Q("wks"),ke=E.Symbol,je=te?ke:ke&&ke.withoutSetter||W,Ae=function(t){return C(Me,t)&&(Kt||"string"==typeof Me[t])||(Kt&&C(ke,t)?Me[t]=ke[t]:Me[t]=je("Symbol."+t)),Me[t]},Ie,Te={f:Ae},Ne=P.f,ze=function(t){var e=ht.Symbol||(ht.Symbol={});C(e,t)||Ne(e,t,{value:Te.f(t)})},Ee=P.f,Se=Ae("toStringTag"),Le=function(t,e,n){t&&!C(t=n?t:t.prototype,Se)&&Ee(t,Se,{configurable:!0,value:e})},De=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Ce=function(r,i,t){if(De(r),void 0===i)return r;switch(t){case 0:return function(){return r.call(i)};case 1:return function(t){return r.call(i,t)};case 2:return function(t,e){return r.call(i,t,e)};case 3:return function(t,e,n){return r.call(i,t,e,n)}}return function(){return r.apply(i,arguments)}},Oe=Ae("species"),Pe=function(t,e){var n;return new(void 0===(n=ee(t)&&("function"==typeof(n=t.constructor)&&(n===Array||ee(n.prototype))||L(n)&&null===(n=n[Oe]))?void 0:n)?Array:n)(0===e?0:e)},Re=[].push,Ye=function(f){var h=1==f,p=2==f,g=3==f,_=4==f,y=6==f,m=7==f,v=5==f||y;return function(t,e,n,r){for(var i=x(t),o=b(i),a=Ce(e,n,3),s=bt(o.length),l=0,r=r||Pe,c=h?r(t,s):p||m?r(t,0):void 0,u,d;l<s;l++)if((v||l in o)&&(d=a(u=o[l],l,i),f))if(h)c[l]=d;else if(d)switch(f){case 3:return!0;case 5:return u;case 6:return l;case 2:Re.call(c,u)}else switch(f){case 4:return!1;case 7:Re.call(c,u)}return y?-1:g||_?_:c}},Ue={forEach:Ye(0),map:Ye(1),filter:Ye(2),some:Ye(3),every:Ye(4),find:Ye(5),findIndex:Ye(6),filterOut:Ye(7)},Be=Ue.forEach,Fe=X("hidden"),Ze="Symbol",He="prototype",Ge=Ae("toPrimitive"),Qe=dt.set,qe=dt.getterFor(Ze),Ve=Object[He],We=E.Symbol,$e=gt("JSON","stringify"),Xe=O.f,Je=P.f,Ke=we.f,tn=h.f,en=Q("symbols"),nn=Q("op-symbols"),rn=Q("string-to-symbol-registry"),on=Q("symbol-to-string-registry"),an=Q("wks"),sn=E.QObject,ln=!sn||!sn[He]||!sn[He].findChild,cn=S&&y(function(){return 7!=_e(Je({},"a",{get:function(){return Je(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=Xe(Ve,e);r&&delete Ve[e],Je(t,e,n),r&&t!==Ve&&Je(Ve,e,r)}:Je,un=function(t,e){var n=en[t]=_e(We[He]);return Qe(n,{type:Ze,tag:t,description:e}),S||(n.description=e),n},dn=te?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof We},fn=function t(e,n,r){e===Ve&&fn(nn,n,r),A(e);var n=D(n,!0);return A(r),C(en,n)?(r.enumerable?(C(e,Fe)&&e[Fe][n]&&(e[Fe][n]=!1),r=_e(r,{enumerable:c(0,!1)})):(C(e,Fe)||Je(e,Fe,c(1,{})),e[Fe][n]=!0),cn(e,n,r)):Je(e,n,r)},hn=function t(e,n){A(e);var r=p(n),n=ne(r).concat(_n(r));return Be(n,function(t){S&&!gn.call(r,t)||fn(e,t,r[t])}),e},pn=function t(e,n){return void 0===n?_e(e):hn(_e(e),n)},gn=function t(e){var n=D(e,!0),e=tn.call(this,n);return!(this===Ve&&C(en,n)&&!C(nn,n))&&(!(e||!C(this,n)||!C(en,n)||C(this,Fe)&&this[Fe][n])||e)},r=function t(e,n){var r=p(e),e=D(n,!0);if(r!==Ve||!C(en,e)||C(nn,e)){var n=Xe(r,e);return!n||!C(en,e)||C(r,Fe)&&r[Fe][e]||(n.enumerable=!0),n}},o=function t(e){var e=Ke(p(e)),n=[];return Be(e,function(t){C(en,t)||C(J,t)||n.push(t)}),n},_n=function t(e){var n=e===Ve,e=Ke(n?nn:p(e)),r=[];return Be(e,function(t){!C(en,t)||n&&!C(Ve,t)||r.push(en[t])}),r},yn;Kt||(ft((We=function t(){if(this instanceof We)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,n=W(e),r=function(t){this===Ve&&r.call(nn,t),C(this,Fe)&&C(this[Fe],n)&&(this[Fe][n]=!1),cn(this,n,c(1,t))};return S&&ln&&cn(Ve,n,{configurable:!0,set:r}),un(n,e)})[He],"toString",function t(){return qe(this).tag}),ft(We,"withoutSetter",function(t){return un(W(t),t)}),h.f=gn,P.f=fn,O.f=r,Et.f=we.f=o,Lt.f=_n,Te.f=function(t){return un(Ae(t),t)},S&&(Je(We[He],"description",{configurable:!0,get:function t(){return qe(this).description}}),ft(Ve,"propertyIsEnumerable",gn,{unsafe:!0}))),Ht({global:!0,wrap:!0,forced:!Kt,sham:!Kt},{Symbol:We}),Be(ne(an),function(t){ze(t)}),Ht({target:Ze,stat:!0,forced:!Kt},{for:function(t){var e=String(t);if(C(rn,e))return rn[e];var t=We(e);return rn[e]=t,on[t]=e,t},keyFor:function t(e){if(!dn(e))throw TypeError(e+" is not a symbol");if(C(on,e))return on[e]},useSetter:function(){ln=!0},useSimple:function(){ln=!1}}),Ht({target:"Object",stat:!0,forced:!Kt,sham:!S},{create:pn,defineProperty:fn,defineProperties:hn,getOwnPropertyDescriptor:r}),Ht({target:"Object",stat:!0,forced:!Kt},{getOwnPropertyNames:o,getOwnPropertySymbols:_n}),Ht({target:"Object",stat:!0,forced:y(function(){Lt.f(1)})},{getOwnPropertySymbols:function t(e){return Lt.f(x(e))}}),$e&&(yn=!Kt||y(function(){var t=We();return"[null]"!=$e([t])||"{}"!=$e({a:t})||"{}"!=$e(Object(t))}),Ht({target:"JSON",stat:!0,forced:yn},{stringify:function t(e,n,r){for(var i=[e],o=1,a;o<arguments.length;)i.push(arguments[o++]);if((L(a=n)||void 0!==e)&&!dn(e))return ee(n)||(n=function(t,e){if("function"==typeof a&&(e=a.call(this,t,e)),!dn(e))return e}),i[1]=n,$e.apply(null,i)}})),We[He][Ge]||R(We[He],Ge,We[He].valueOf),Le(We,Ze),J[Fe]=!0;var z=P.f,mn=E.Symbol,vn,bn,xn,wn,Mn,kn;!S||"function"!=typeof mn||"description"in mn.prototype&&void 0===mn().description||(vn={},Ct(bn=function t(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),n=this instanceof bn?new mn(e):void 0===e?mn():mn(e);return""===e&&(vn[n]=!0),n},mn),(xn=bn.prototype=mn.prototype).constructor=bn,wn=xn.toString,Mn="Symbol(test)"==String(mn("test")),kn=/^Symbol\((.*)\)[^)]+$/,z(xn,"description",{configurable:!0,get:function t(){var e=L(this)?this.valueOf():this,n=wn.call(e);if(C(vn,e))return"";var n=Mn?n.slice(7,-1):n.replace(kn,"$1");return""===n?void 0:n}}),Ht({global:!0,forced:!0},{Symbol:bn})),ze("asyncIterator"),ze("hasInstance"),ze("isConcatSpreadable"),ze("iterator"),ze("match"),ze("matchAll"),ze("replace"),ze("search"),ze("species"),ze("split"),ze("toPrimitive"),ze("toStringTag"),ze("unscopables");var Z=!y(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),jn=X("IE_PROTO"),An=Object.prototype,In=Z?Object.getPrototypeOf:function(t){return t=x(t),C(t,jn)?t[jn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?An:null},Tn=function(t){if(!L(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},Nn=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,t={},i;try{(i=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),r=t instanceof Array}catch(t){}return function t(e,n){return A(e),Tn(n),r?i.call(e,n):e.__proto__=n,e}}():void 0),zn={},En=Ae("iterator"),Sn=Array.prototype,Ln=function(t){return void 0!==t&&(zn.Array===t||Sn[En]===t)},Dn,tt={};tt[Ae("toStringTag")]="z";var it="[object z]"===String(tt),Cn=Ae("toStringTag"),On="Arguments"==d(function(){return arguments}()),Pn=function(t,e){try{return t[e]}catch(t){}},Rn=it?d:function(t){var e,t,t;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(t=Pn(e=Object(t),Cn))?t:On?d(e):"Object"==(t=d(e))&&"function"==typeof e.callee?"Arguments":t},Yn=Ae("iterator"),Un=function(t){if(null!=t)return t[Yn]||t["@@iterator"]||zn[Rn(t)]},Bn=function(t){var e=t.return;if(void 0!==e)return A(e.call(t)).value},Fn=function(t,e){this.stopped=t,this.result=e},Zn=function(t,e,n){var r=n&&n.that,i=!(!n||!n.AS_ENTRIES),o=!(!n||!n.IS_ITERATOR),a=!(!n||!n.INTERRUPTED),s=Ce(e,r,1+i+a),l,o,c,u,d,f,h,p=function(t){return l&&Bn(l),new Fn(!0,t)},g=function(t){return i?(A(t),a?s(t[0],t[1],p):s(t[0],t[1])):a?s(t,p):s(t)};if(o)l=t;else{if("function"!=typeof(o=Un(t)))throw TypeError("Target is not iterable");if(Ln(o)){for(c=0,u=bt(t.length);c<u;c++)if((d=g(t[c]))&&d instanceof Fn)return d;return new Fn(!1)}l=o.call(t)}for(f=l.next;!(h=f.call(l)).done;){try{d=g(h.value)}catch(t){throw Bn(l),t}if("object"==typeof d&&d&&d instanceof Fn)return d}return new Fn(!1)},Hn=function t(e,n){var r=this;if(!(r instanceof Hn))return new Hn(e,n);Nn&&(r=Nn(new Error(void 0),In(r))),void 0!==n&&R(r,"message",String(n));var n=[];return Zn(e,n.push,{that:n}),R(r,"errors",n),r};Hn.prototype=_e(Error.prototype,{constructor:c(5,Hn),message:c(5,""),name:c(5,"AggregateError")}),Ht({global:!0},{AggregateError:Hn});var Gn=function(t,e,n){var e=D(e);e in t?P.f(t,e,c(0,n)):t[e]=n},Qn=Ae("species"),ot=function(n){return 51<=Jt||!y(function(){var t=[],e;return(t.constructor={})[Qn]=function(){return{foo:1}},1!==t[n](Boolean).foo})},qn=Ae("isConcatSpreadable"),Vn=9007199254740991,Wn="Maximum allowed index exceeded",kt=51<=Jt||!y(function(){var t=[];return t[qn]=!1,t.concat()[0]!==t}),Pt=ot("concat"),$n=function(t){if(!L(t))return!1;var e=t[qn];return void 0!==e?!!e:ee(t)},Xn;Ht({target:"Array",proto:!0,forced:!kt||!Pt},{concat:function t(e){for(var n=x(this),r=Pe(n,0),i=0,o,a,s,l,c,o=-1,s=arguments.length;o<s;o++)if($n(c=-1===o?n:arguments[o])){if(l=bt(c.length),Vn<i+l)throw TypeError(Wn);for(a=0;a<l;a++,i++)a in c&&Gn(r,i,c[a])}else{if(Vn<=i)throw TypeError(Wn);Gn(r,i++,c)}return r.length=i,r}});var Jn=Math.min,Kn=[].copyWithin||function t(e,n){var r=x(this),i=bt(r.length),o=Mt(e,i),a=Mt(n,i),n=2<arguments.length?arguments[2]:void 0,s=Jn((void 0===n?i:Mt(n,i))-a,i-o),l=1;for(a<o&&o<a+s&&(l=-1,a+=s-1,o+=s-1);0<s--;)a in r?r[o]=r[a]:delete r[o],o+=l,a+=l;return r},tr=Ae("unscopables"),er=Array.prototype;null==er[tr]&&P.f(er,tr,{configurable:!0,value:_e(null)});var qt=function(t){er[tr][t]=!0};Ht({target:"Array",proto:!0},{copyWithin:Kn}),qt("copyWithin");var Vt=function(t,e){var n=[][t];return!!n&&y(function(){n.call(null,e||function(){throw 1},1)})},nr=Ue.every,Wt=Vt("every");Ht({target:"Array",proto:!0,forced:!Wt},{every:function t(e){return nr(this,e,1<arguments.length?arguments[1]:void 0)}});var rr=function t(e){for(var n=x(this),r=bt(n.length),i=arguments.length,o=Mt(1<i?arguments[1]:void 0,r),i=2<i?arguments[2]:void 0,a=void 0===i?r:Mt(i,r);o<a;)n[o++]=e;return n};Ht({target:"Array",proto:!0},{fill:rr}),qt("fill");var ir=Ue.filter,$t=ot("filter");Ht({target:"Array",proto:!0,forced:!$t},{filter:function t(e){return ir(this,e,1<arguments.length?arguments[1]:void 0)}});var or=Ue.find,Xt="find",ar=!0;Xt in[]&&Array(1)[Xt](function(){ar=!1}),Ht({target:"Array",proto:!0,forced:ar},{find:function t(e){return or(this,e,1<arguments.length?arguments[1]:void 0)}}),qt(Xt);var sr=Ue.findIndex,Ye="findIndex",lr=!0;Ye in[]&&Array(1)[Ye](function(){lr=!1}),Ht({target:"Array",proto:!0,forced:lr},{findIndex:function t(e){return sr(this,e,1<arguments.length?arguments[1]:void 0)}}),qt(Ye);var cr=function(t,e,n,r,i,o,a,s){for(var l=i,c=0,u=!!a&&Ce(a,s,3),d;c<r;){if(c in n){if(d=u?u(n[c],c,e):n[c],0<o&&ee(d))l=cr(t,e,d,bt(d.length),l,o-1)-1;else{if(9007199254740991<=l)throw TypeError("Exceed the acceptable array length");t[l]=d}l++}c++}return l},ur=cr;Ht({target:"Array",proto:!0},{flat:function t(){var e=arguments.length?arguments[0]:void 0,n=x(this),r=bt(n.length),i=Pe(n,0);return i.length=ur(i,n,n,r,0,void 0===e?1:mt(e)),i}}),Ht({target:"Array",proto:!0},{flatMap:function t(e){var n=x(this),r=bt(n.length),i;return De(e),(i=Pe(n,0)).length=ur(i,n,n,r,0,1,e,1<arguments.length?arguments[1]:void 0),i}});var dr=Ue.forEach,fr,hr=Vt("forEach")?[].forEach:function t(e){return dr(this,e,1<arguments.length?arguments[1]:void 0)};Ht({target:"Array",proto:!0,forced:[].forEach!=hr},{forEach:hr});var pr=function(e,t,n,r){try{return r?t(A(n)[0],n[1]):t(n)}catch(t){throw Bn(e),t}},gr=function t(e){var n=x(e),r="function"==typeof this?this:Array,i=arguments.length,o=1<i?arguments[1]:void 0,a=void 0!==o,e=Un(n),s=0,l,c,u,d,f,h;if(a&&(o=Ce(o,2<i?arguments[2]:void 0,2)),null==e||r==Array&&Ln(e))for(c=new r(l=bt(n.length));s<l;s++)h=a?o(n[s],s):n[s],Gn(c,s,h);else for(f=(d=e.call(n)).next,c=new r;!(u=f.call(d)).done;s++)h=a?pr(d,o,[u.value,s],!0):u.value,Gn(c,s,h);return c.length=s,c},_r=Ae("iterator"),yr=!1;try{var mr=0,vr={next:function(){return{done:!!mr++}},return:function(){yr=!0}};vr[_r]=function(){return this},Array.from(vr,function(){throw 2})}catch(t){}var br=function(t,e){if(!e&&!yr)return!1;var n=!1;try{var r={};r[_r]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},sn=!br(function(t){Array.from(t)});Ht({target:"Array",stat:!0,forced:sn},{from:gr});var xr=jt.includes;Ht({target:"Array",proto:!0},{includes:function t(e){return xr(this,e,1<arguments.length?arguments[1]:void 0)}}),qt("includes");var wr=jt.indexOf,Mr=[].indexOf,kr=!!Mr&&1/[1].indexOf(1,-0)<0,te=Vt("indexOf");Ht({target:"Array",proto:!0,forced:kr||!te},{indexOf:function t(e){return kr?Mr.apply(this,arguments)||0:wr(this,e,1<arguments.length?arguments[1]:void 0)}}),Ht({target:"Array",stat:!0},{isArray:ee});var jr=Ae("iterator"),an=!1,pn=function(){return this},Ar,Ir,Tr;[].keys&&("next"in(Tr=[].keys())?(Ir=In(In(Tr)))!==Object.prototype&&(Ar=Ir):an=!0);var r=null==Ar||y(function(){var t={};return Ar[jr].call(t)!==t});C(Ar=r?{}:Ar,jr)||R(Ar,jr,pn);var o={IteratorPrototype:Ar,BUGGY_SAFARI_ITERATORS:an},Nr=o.IteratorPrototype,zr=function(){return this},Er=function(t,e,n){var e=e+" Iterator";return t.prototype=_e(Nr,{next:c(1,n)}),Le(t,e,!1),zn[e]=zr,t},Sr=o.IteratorPrototype,Lr=o.BUGGY_SAFARI_ITERATORS,Dr=Ae("iterator"),Cr="keys",Or="values",Pr="entries",Rr=function(){return this},Yr=function(t,e,n,r,i,o,a){Er(n,e,r);var s=function(e){if(e===i&&f)return f;if(!Lr&&e in u)return u[e];switch(e){case Cr:return function t(){return new n(this,e)};case Or:return function t(){return new n(this,e)};case Pr:return function t(){return new n(this,e)}}return function(){return new n(this)}},l=e+" Iterator",c=!1,u=t.prototype,d=u[Dr]||u["@@iterator"]||i&&u[i],f=!Lr&&d||s(i),r="Array"==e&&u.entries||d,t,h,p;if(r&&(t=In(r.call(new t)),Sr!==Object.prototype&&t.next&&(In(t)!==Sr&&(Nn?Nn(t,Sr):"function"!=typeof t[Dr]&&R(t,Dr,Rr)),Le(t,l,!0))),i==Or&&d&&d.name!==Or&&(c=!0,f=function t(){return d.call(this)}),u[Dr]!==f&&R(u,Dr,f),zn[e]=f,i)if(h={values:s(Or),keys:o?f:s(Cr),entries:s(Pr)},a)for(p in h)!Lr&&!c&&p in u||ft(u,p,h[p]);else Ht({target:e,proto:!0,forced:Lr||c},h);return h},Ur="Array Iterator",Br=dt.set,Fr=dt.getterFor(Ur),Zr=Yr(Array,"Array",function(t,e){Br(this,{type:Ur,target:p(t),index:0,kind:e})},function(){var t=Fr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?{value:t.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");zn.Arguments=zn.Array,qt("keys"),qt("values"),qt("entries");var Hr=[].join,yn=b!=Object,Ge=Vt("join",",");Ht({target:"Array",proto:!0,forced:yn||!Ge},{join:function t(e){return Hr.call(p(this),void 0===e?",":e)}});var Gr=Math.min,Qr=[].lastIndexOf,qr=!!Qr&&1/[1].lastIndexOf(1,-0)<0,z=Vt("lastIndexOf"),Vr,Wr=qr||!z?function t(e){if(qr)return Qr.apply(this,arguments)||0;var n=p(this),r=bt(n.length),i=r-1;for((i=1<arguments.length?Gr(i,mt(arguments[1])):i)<0&&(i=r+i);0<=i;i--)if(i in n&&n[i]===e)return i||0;return-1}:Qr;Ht({target:"Array",proto:!0,forced:Wr!==[].lastIndexOf},{lastIndexOf:Wr});var $r=Ue.map,xn=ot("map");Ht({target:"Array",proto:!0,forced:!xn},{map:function t(e){return $r(this,e,1<arguments.length?arguments[1]:void 0)}});var X=y(function(){function t(){}return!(Array.of.call(t)instanceof t)});Ht({target:"Array",stat:!0,forced:X},{of:function t(){for(var e=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);e<n;)Gn(r,e,arguments[e++]);return r.length=n,r}});var tt=function(c){return function(t,e,n,r){De(e);var i=x(t),o=b(i),a=bt(i.length),s=c?a-1:0,l=c?-1:1;if(n<2)for(;;){if(s in o){r=o[s],s+=l;break}if(s+=l,c?s<0:a<=s)throw TypeError("Reduce of empty array with no initial value")}for(;c?0<=s:s<a;s+=l)s in o&&(r=e(r,o[s],s,i));return r}},kt={left:tt(!1),right:tt(!0)},Xr=kt.left,Pt=Vt("reduce"),Jr;Ht({target:"Array",proto:!0,forced:!Pt||!Gt&&79<Jt&&Jt<83},{reduce:function t(e){return Xr(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}});var Kr=kt.right,Wt=Vt("reduceRight"),ti;Ht({target:"Array",proto:!0,forced:!Wt||!Gt&&79<Jt&&Jt<83},{reduceRight:function t(e){return Kr(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}});var ei=[].reverse,$t=[1,2];Ht({target:"Array",proto:!0,forced:String($t)===String($t.reverse())},{reverse:function t(){return ee(this)&&(this.length=this.length),ei.call(this)}});var Xt=ot("slice"),ni=Ae("species"),ri=[].slice,ii=Math.max;Ht({target:"Array",proto:!0,forced:!Xt},{slice:function t(e,n){var r=p(this),i=bt(r.length),o=Mt(e,i),a=Mt(void 0===n?i:n,i),s,l,c;if(ee(r)&&((s="function"==typeof(s=r.constructor)&&(s===Array||ee(s.prototype))||L(s)&&null===(s=s[ni])?void 0:s)===Array||void 0===s))return ri.call(r,o,a);for(l=new(void 0===s?Array:s)(ii(a-o,0)),c=0;o<a;o++,c++)o in r&&Gn(l,c,r[o]);return l.length=c,l}});var oi=Ue.some,Ye=Vt("some");Ht({target:"Array",proto:!0,forced:!Ye},{some:function t(e){return oi(this,e,1<arguments.length?arguments[1]:void 0)}});var ai=[],si=ai.sort,vr=y(function(){ai.sort(void 0)}),sn=y(function(){ai.sort(null)}),te=Vt("sort"),li;Ht({target:"Array",proto:!0,forced:vr||!sn||!te},{sort:function t(e){return void 0===e?si.call(x(this)):si.call(x(this),De(e))}});var ci=Ae("species"),ui=function(t){var e=gt(t),t=P.f;S&&e&&!e[ci]&&t(e,ci,{configurable:!0,get:function(){return this}})};ui("Array");var Tr=ot("splice"),di=Math.max,fi=Math.min,hi=9007199254740991,pi="Maximum allowed length exceeded";Ht({target:"Array",proto:!0,forced:!Tr},{splice:function t(e,n){var r=x(this),i=bt(r.length),o=Mt(e,i),e=arguments.length,a,s,l,c,u,d;if(0===e?a=s=0:s=1===e?(a=0,i-o):(a=e-2,fi(di(mt(n),0),i-o)),hi<i+a-s)throw TypeError(pi);for(l=Pe(r,s),c=0;c<s;c++)(u=o+c)in r&&Gn(l,c,r[u]);if(a<(l.length=s)){for(c=o;c<i-s;c++)d=c+a,(u=c+s)in r?r[d]=r[u]:delete r[d];for(c=i;i-s+a<c;c--)delete r[c-1]}else if(s<a)for(c=i-s;o<c;c--)d=c+a-1,(u=c+s-1)in r?r[d]=r[u]:delete r[d];for(c=0;c<a;c++)r[c+o]=arguments[c+2];return r.length=i-s+a,l}}),qt("flat"),qt("flatMap");var Ir="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,gi=function(t,e,n){for(var r in e)ft(t,r,e[r],n);return t},_i=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},yi=function(t){if(void 0===t)return 0;var e=mt(t),t=bt(e);if(e!==t)throw RangeError("Wrong length or index");return t},mi=Math.abs,vi=Math.pow,bi=Math.floor,xi=Math.log,wi=Math.LN2,Mi,ki,ji,Ai,r=Et.f,Ii=P.f,Ti=dt.get,Ni=dt.set,zi="ArrayBuffer",Ei="DataView",Si="prototype",Li="Wrong length",Di="Wrong index",Ci=E[zi],Oi=Ci,Pi=E[Ei],pn=Pi&&Pi[Si],an=Object.prototype,Ri=E.RangeError,Yi=function(t,e,n){var r=new Array(n),i=8*n-e-1,o=(1<<i)-1,a=o>>1,s=23===e?vi(2,-24)-vi(2,-77):0,l=t<0||0===t&&1/t<0?1:0,c=0,u,d,n;for((t=mi(t))!=t||t===1/0?(d=t!=t?1:0,u=o):(u=bi(xi(t)/wi),t*(n=vi(2,-u))<1&&(u--,n*=2),2<=(t+=1<=u+a?s/n:s*vi(2,1-a))*n&&(u++,n/=2),o<=u+a?(d=0,u=o):1<=u+a?(d=(t*n-1)*vi(2,e),u+=a):(d=t*vi(2,a-1)*vi(2,e),u=0));8<=e;r[c++]=255&d,d/=256,e-=8);for(u=u<<e|d,i+=e;0<i;r[c++]=255&u,u/=256,i-=8);return r[--c]|=128*l,r},Ui=function(t,e){var n=t.length,r=8*n-e-1,i=(1<<r)-1,o=i>>1,a=r-7,s=n-1,n=t[s--],l=127&n,c;for(n>>=7;0<a;l=256*l+t[s],s--,a-=8);for(c=l&(1<<-a)-1,l>>=-a,a+=e;0<a;c=256*c+t[s],s--,a-=8);if(0===l)l=1-o;else{if(l===i)return c?NaN:n?-1/0:1/0;c+=vi(2,e),l-=o}return(n?-1:1)*c*vi(2,l-e)},Bi=function(t){return[255&t]},Fi=function(t){return[255&t,t>>8&255]},Zi=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Hi=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},Gi=function(t){return Yi(t,23,4)},Qi=function(t){return Yi(t,52,8)},o=function(t,e){Ii(t[Si],e,{get:function(){return Ti(this)[e]}})},qi=function(t,e,n,r){var i=yi(n),n=Ti(t);if(i+e>n.byteLength)throw Ri(Di);var t=Ti(n.buffer).bytes,n=i+n.byteOffset,e=t.slice(n,n+e);return r?e:e.reverse()},Vi=function(t,e,n,r,i,o){var n=yi(n),t=Ti(t);if(n+e>t.byteLength)throw Ri(Di);for(var a=Ti(t.buffer).bytes,s=n+t.byteOffset,l=r(+i),c=0;c<e;c++)a[s+c]=l[o?c:e-c-1]};if(Ir){if(!y(function(){Ci(1)})||!y(function(){new Ci(-1)})||y(function(){return new Ci,new Ci(1.5),new Ci(NaN),Ci.name!=zi})){for(var Oi,Wi=(Oi=function t(e){return _i(this,Oi),new Ci(yi(e))})[Si]=Ci[Si],$i=r(Ci),Xi=0,Ji;$i.length>Xi;)(Ji=$i[Xi++])in Oi||R(Oi,Ji,Ci[Ji]);Wi.constructor=Oi}Nn&&In(pn)!==an&&Nn(pn,an);var Ki=new Pi(new Oi(2)),to=pn.setInt8;Ki.setInt8(0,2147483648),Ki.setInt8(1,2147483649),!Ki.getInt8(0)&&Ki.getInt8(1)||gi(pn,{setInt8:function t(e,n){to.call(this,e,n<<24>>24)},setUint8:function t(e,n){to.call(this,e,n<<24>>24)}},{unsafe:!0})}else Oi=function t(e){_i(this,Oi,zi);var e=yi(e);Ni(this,{bytes:rr.call(new Array(e),0),byteLength:e}),S||(this.byteLength=e)},Pi=function t(e,n,r){_i(this,Pi,Ei),_i(e,Oi,Ei);var i=Ti(e).byteLength,n=mt(n);if(n<0||i<n)throw Ri("Wrong offset");if(i<n+(r=void 0===r?i-n:bt(r)))throw Ri(Li);Ni(this,{buffer:e,byteLength:r,byteOffset:n}),S||(this.buffer=e,this.byteLength=r,this.byteOffset=n)},S&&(o(Oi,"byteLength"),o(Pi,"buffer"),o(Pi,"byteLength"),o(Pi,"byteOffset")),gi(Pi[Si],{getInt8:function t(e){return qi(this,1,e)[0]<<24>>24},getUint8:function t(e){return qi(this,1,e)[0]},getInt16:function t(e){var e=qi(this,2,e,1<arguments.length?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function t(e){var e=qi(this,2,e,1<arguments.length?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function t(e){return Hi(qi(this,4,e,1<arguments.length?arguments[1]:void 0))},getUint32:function t(e){return Hi(qi(this,4,e,1<arguments.length?arguments[1]:void 0))>>>0},getFloat32:function t(e){return Ui(qi(this,4,e,1<arguments.length?arguments[1]:void 0),23)},getFloat64:function t(e){return Ui(qi(this,8,e,1<arguments.length?arguments[1]:void 0),52)},setInt8:function t(e,n){Vi(this,1,e,Bi,n)},setUint8:function t(e,n){Vi(this,1,e,Bi,n)},setInt16:function t(e,n){Vi(this,2,e,Fi,n,2<arguments.length?arguments[2]:void 0)},setUint16:function t(e,n){Vi(this,2,e,Fi,n,2<arguments.length?arguments[2]:void 0)},setInt32:function t(e,n){Vi(this,4,e,Zi,n,2<arguments.length?arguments[2]:void 0)},setUint32:function t(e,n){Vi(this,4,e,Zi,n,2<arguments.length?arguments[2]:void 0)},setFloat32:function t(e,n){Vi(this,4,e,Gi,n,2<arguments.length?arguments[2]:void 0)},setFloat64:function t(e,n){Vi(this,8,e,Qi,n,2<arguments.length?arguments[2]:void 0)}});Le(Oi,zi),Le(Pi,Ei);var eo={ArrayBuffer:Oi,DataView:Pi},yn="ArrayBuffer",Ge=eo[yn],z=E[yn];Ht({global:!0,forced:z!==Ge},{ArrayBuffer:Ge}),ui(yn);var xn=P.f,X=E.Int8Array,no=X&&X.prototype,tt=E.Uint8ClampedArray,Pt=tt&&tt.prototype,ro=X&&In(X),io=no&&In(no),Wt=Object.prototype,oo=Wt.isPrototypeOf,$t=Ae("toStringTag"),ao=W("TYPED_ARRAY_TAG"),so=Ir&&!!Nn&&"Opera"!==Rn(E.opera),Xt=!1,lo,co={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},uo={BigInt64Array:8,BigUint64Array:8},Ye=function t(e){if(!L(e))return!1;var e=Rn(e);return"DataView"===e||C(co,e)||C(uo,e)},fo=function(t){if(!L(t))return!1;var t=Rn(t);return C(co,t)||C(uo,t)},Vt=function(t){if(fo(t))return t;throw TypeError("Target is not a typed array")},vr=function(t){if(Nn){if(oo.call(ro,t))return t}else for(var e in co)if(C(co,lo)){var e=E[e];if(e&&(t===e||oo.call(e,t)))return t}throw TypeError("Target is not a typed array constructor")},sn=function(t,e,n){if(S){if(n)for(var r in co){var r=E[r];if(r&&C(r.prototype,t))try{delete r.prototype[t]}catch(t){}}io[t]&&!n||ft(io,t,!n&&so&&no[t]||e)}},te=function(t,e,n){var r,i;if(S){if(Nn){if(n)for(r in co)if((i=E[r])&&C(i,t))try{delete i[t]}catch(t){}if(ro[t]&&!n)return;try{return ft(ro,t,!n&&so&&ro[t]||e)}catch(t){}}for(r in co)!(i=E[r])||i[t]&&!n||ft(i,t,e)}};for(lo in co)E[lo]||(so=!1);if((!so||"function"!=typeof ro||ro===Function.prototype)&&(ro=function t(){throw TypeError("Incorrect invocation")},so))for(lo in co)E[lo]&&Nn(E[lo],ro);if((!so||!io||io===Wt)&&(io=ro.prototype,so))for(lo in co)E[lo]&&Nn(E[lo].prototype,io);if(so&&In(Pt)!==io&&Nn(Pt,io),S&&!C(io,$t))for(lo in Xt=!0,xn(io,$t,{get:function(){return L(this)?this[ao]:void 0}}),co)E[lo]&&R(E[lo],ao,lo);var ho={NATIVE_ARRAY_BUFFER_VIEWS:so,TYPED_ARRAY_TAG:Xt&&ao,aTypedArray:Vt,aTypedArrayConstructor:vr,exportTypedArrayMethod:sn,exportTypedArrayStaticMethod:te,isView:Ye,isTypedArray:fo,TypedArray:ro,TypedArrayPrototype:io},po;Ht({target:"ArrayBuffer",stat:!0,forced:!ho.NATIVE_ARRAY_BUFFER_VIEWS},{isView:ho.isView});var go=Ae("species"),_o=function(t,e){var t=A(t).constructor,n;return void 0===t||null==(n=A(t)[go])?e:De(n)},yo=eo.ArrayBuffer,mo=eo.DataView,vo=yo.prototype.slice,ot=y(function(){return!new yo(2).slice(1,void 0).byteLength});Ht({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ot},{slice:function t(e,n){if(void 0!==vo&&void 0===n)return vo.call(A(this),e);for(var r=A(this).byteLength,i=Mt(e,r),o=Mt(void 0===n?r:n,r),r=new(_o(this,yo))(bt(o-i)),a=new mo(this),s=new mo(r),l=0;i<o;)s.setUint8(l++,a.getUint8(i++));return r}}),Ht({global:!0,forced:!Ir},{DataView:eo.DataView}),Ht({target:"Date",stat:!0},{now:function t(){return(new Date).getTime()}});var bo=function t(e){var n=String(m(this)),r="",i=mt(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;0<i;(i>>>=1)&&(n+=n))1&i&&(r+=n);return r},xo=Math.ceil,Tr=function(i){return function(t,e,n){var r=String(m(t)),t=r.length,n=void 0===n?" ":String(n),e=bt(e),t,n;return e<=t||""==n?r:((n=bo.call(n,xo((t=e-t)/n.length))).length>t&&(n=n.slice(0,t)),i?r+n:n+r)}},qt={start:Tr(!1),end:Tr(!0)},wo=qt.start,Mo=Math.abs,r=Date.prototype,ko=r.getTime,jo=r.toISOString,Wi=y(function(){return"0385-07-25T07:06:39.999Z"!=jo.call(new Date(-5e13-1))})||!y(function(){jo.call(new Date(NaN))})?function t(){if(!isFinite(ko.call(this)))throw RangeError("Invalid time value");var e=this,n=e.getUTCFullYear(),r=e.getUTCMilliseconds(),i=n<0?"-":9999<n?"+":"";return i+wo(Mo(n),i?6:4,0)+"-"+wo(e.getUTCMonth()+1,2,0)+"-"+wo(e.getUTCDate(),2,0)+"T"+wo(e.getUTCHours(),2,0)+":"+wo(e.getUTCMinutes(),2,0)+":"+wo(e.getUTCSeconds(),2,0)+"."+wo(r,3,0)+"Z"}:jo;Ht({target:"Date",proto:!0,forced:Date.prototype.toISOString!==Wi},{toISOString:Wi});var an=y(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})});Ht({target:"Date",proto:!0,forced:an},{toJSON:function t(e){var n=x(this),r=D(n);return"number"!=typeof r||isFinite(r)?n.toISOString():null}});var Ki=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return D(A(this),"number"!==t)},pn=Ae("toPrimitive"),o=Date.prototype;pn in o||R(o,pn,Ki);var z=Date.prototype,Ao="Invalid Date",Ge="toString",Io=z[Ge],To=z.getTime;new Date(NaN)+""!=Ao&&ft(z,Ge,function t(){var e=To.call(this);return e==e?Io.call(this):Ao});var No=[].slice,zo={},Eo=function(t,e,n){if(!(e in zo)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";zo[e]=Function("C,a","return new C("+r.join(",")+")")}return zo[e](t,n)},So=Function.bind||function t(n){var r=De(this),i=No.call(arguments,1),o=function t(){var e=i.concat(No.call(arguments));return this instanceof o?Eo(r,e.length,e):r.apply(n,e)};return L(r.prototype)&&(o.prototype=r.prototype),o};Ht({target:"Function",proto:!0},{bind:So});var yn=Ae("hasInstance"),tt=Function.prototype;yn in tt||P.f(tt,yn,{value:function(t){if("function"!=typeof this||!L(t))return!1;if(!L(this.prototype))return t instanceof this;for(;t=In(t);)if(this.prototype===t)return!0;return!1}});var X=P.f,Wt=Function.prototype,Lo=Wt.toString,Do=/^\s*function ([^ (]*)/,Pt="name";!S||Pt in Wt||X(Wt,Pt,{configurable:!0,get:function(){try{return Lo.call(this).match(Do)[1]}catch(t){return""}}}),Ht({global:!0},{globalThis:E});var Co=gt("JSON","stringify"),Oo=/[\uD800-\uDFFF]/g,Po=/^[\uD800-\uDBFF]$/,Ro=/^[\uDC00-\uDFFF]$/,Yo=function(t,e,n){var r=n.charAt(e-1),e=n.charAt(e+1);return Po.test(t)&&!Ro.test(e)||Ro.test(t)&&!Po.test(r)?"\\u"+t.charCodeAt(0).toString(16):t},xn=y(function(){return'"\\udf06\\ud834"'!==Co("\udf06\ud834")||'"\\udead"'!==Co("\udead")});Co&&Ht({target:"JSON",stat:!0,forced:xn},{stringify:function t(e,n,r){var i=Co.apply(null,arguments);return"string"==typeof i?i.replace(Oo,Yo):i}}),Le(E.JSON,"JSON",!0);var Uo=!y(function(){return Object.isExtensible(Object.preventExtensions({}))}),Bo=n(function(t){var e=P.f,n=W("meta"),r=0,i=Object.isExtensible||function(){return!0},o=function(t){e(t,n,{value:{objectID:"O"+ ++r,weakData:{}}})},a,s,l,c=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!L(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!C(t,n)){if(!i(t))return"F";if(!e)return"E";o(t)}return t[n].objectID},getWeakData:function(t,e){if(!C(t,n)){if(!i(t))return!0;if(!e)return!1;o(t)}return t[n].weakData},onFreeze:function(t){return Uo&&c.REQUIRED&&i(t)&&!C(t,n)&&o(t),t}};J[n]=!0}),Fo=Bo.REQUIRED,Zo=Bo.fastKey,Ho=Bo.getWeakData,Go=Bo.onFreeze,Qo=function(t,e,n){var r,i;return Nn&&"function"==typeof(r=e.constructor)&&r!==n&&L(i=r.prototype)&&i!==n.prototype&&Nn(t,i),t},qo=function(n,t,e){var r=-1!==n.indexOf("Map"),i=-1!==n.indexOf("Weak"),o=r?"set":"add",a=E[n],s=a&&a.prototype,l=a,c={},u=function(t){var r=s[t];ft(s,t,"add"==t?function t(e){return r.call(this,0===e?0:e),this}:"delete"==t?function(t){return!(i&&!L(t))&&r.call(this,0===t?0:t)}:"get"==t?function t(e){return i&&!L(e)?void 0:r.call(this,0===e?0:e)}:"has"==t?function t(e){return!(i&&!L(e))&&r.call(this,0===e?0:e)}:function t(e,n){return r.call(this,0===e?0:e,n),this})},d,f,h,p,g,_;return Ft(n,"function"!=typeof a||!(i||s.forEach&&!y(function(){(new a).entries().next()})))?(l=e.getConstructor(t,n,r,o),Bo.REQUIRED=!0):Ft(n,!0)&&(h=(f=new l)[o](i?{}:-0,1)!=f,p=y(function(){f.has(1)}),g=br(function(t){new a(t)}),_=!i&&y(function(){for(var t=new a,e=5;e--;)t[o](e,e);return!t.has(-0)}),g||(((l=t(function(t,e){_i(t,l,n);var t=Qo(new a,t,l);return null!=e&&Zn(e,t[o],{that:t,AS_ENTRIES:r}),t})).prototype=s).constructor=l),(p||_)&&(u("delete"),u("has"),r&&u("get")),(_||h)&&u(o),i&&s.clear&&delete s.clear),c[n]=l,Ht({global:!0,forced:l!=a},c),Le(l,n),i||e.setStrong(l,n,r),l},Vo=P.f,Wo=Bo.fastKey,$o=dt.set,Xo=dt.getterFor,$t={getConstructor:function(t,n,r,i){var o=t(function(t,e){_i(t,o,n),$o(t,{type:n,index:_e(null),first:void 0,last:void 0,size:0}),S||(t.size=0),null!=e&&Zn(e,t[i],{that:t,AS_ENTRIES:r})}),a=Xo(n),s=function(t,e,n){var r=a(t),i=l(t,e),n,o;return i?i.value=n:(r.last=i={index:o=Wo(e,!0),key:e,value:n,previous:n=r.last,next:void 0,removed:!1},r.first||(r.first=i),n&&(n.next=i),S?r.size++:t.size++,"F"!==o&&(r.index[o]=i)),t},l=function(t,e){var n=a(t),t=Wo(e),r;if("F"!==t)return n.index[t];for(r=n.first;r;r=r.next)if(r.key==e)return r};return gi(o.prototype,{clear:function t(){for(var e=this,n=a(e),r=n.index,i=n.first;i;)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete r[i.index],i=i.next;n.first=n.last=void 0,S?n.size=0:e.size=0},delete:function(t){var e=this,n=a(e),r=l(e,t),i,t;return r&&(i=r.next,t=r.previous,delete n.index[r.index],r.removed=!0,t&&(t.next=i),i&&(i.previous=t),n.first==r&&(n.first=i),n.last==r&&(n.last=t),S?n.size--:e.size--),!!r},forEach:function t(e){for(var n=a(this),r=Ce(e,1<arguments.length?arguments[1]:void 0,3),i;i=i?i.next:n.first;)for(r(i.value,i.key,this);i&&i.removed;)i=i.previous},has:function t(e){return!!l(this,e)}}),gi(o.prototype,r?{get:function t(e){var e=l(this,e);return e&&e.value},set:function t(e,n){return s(this,0===e?0:e,n)}}:{add:function t(e){return s(this,e=0===e?0:e,e)}}),S&&Vo(o.prototype,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",i=Xo(e),o=Xo(r);Yr(t,e,function(t,e){$o(this,{type:r,target:t,state:i(t),kind:e,last:void 0})},function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:{value:t.target=void 0,done:!0}},n?"entries":"values",!n,!0),ui(e)}},Jo=qo("Map",function(e){return function t(){return e(this,arguments.length?arguments[0]:void 0)}},$t),Ko=Math.log,ta=Math.log1p||function t(e){return-1e-8<(e=+e)&&e<1e-8?e-e*e/2:Ko(1+e)},Xt=Math.acosh,ea=Math.log,na=Math.sqrt,ra=Math.LN2,Vt=!Xt||710!=Math.floor(Xt(Number.MAX_VALUE))||Xt(1/0)!=1/0;Ht({target:"Math",stat:!0,forced:Vt},{acosh:function t(e){return(e=+e)<1?NaN:94906265.62425156<e?ea(e)+ra:ta(e-1+na(e-1)*na(e+1))}});var vr=Math.asinh,ia=Math.log,oa=Math.sqrt;function aa(t){return isFinite(t=+t)&&0!=t?t<0?-aa(-t):ia(t+oa(t*t+1)):t}Ht({target:"Math",stat:!0,forced:!(vr&&0<1/vr(0))},{asinh:aa});var sn=Math.atanh,sa=Math.log;Ht({target:"Math",stat:!0,forced:!(sn&&1/sn(-0)<0)},{atanh:function t(e){return 0==(e=+e)?e:sa((1+e)/(1-e))/2}});var la=Math.sign||function t(e){return 0==(e=+e)||e!=e?e:e<0?-1:1},ca=Math.abs,ua=Math.pow;Ht({target:"Math",stat:!0},{cbrt:function t(e){return la(e=+e)*ua(ca(e),1/3)}});var da=Math.floor,fa=Math.log,ha=Math.LOG2E;Ht({target:"Math",stat:!0},{clz32:function t(e){return(e>>>=0)?31-da(fa(e+.5)*ha):32}});var te=Math.expm1,pa=Math.exp,ga=!te||22025.465794806718<te(10)||te(10)<22025.465794806718||-2e-17!=te(-2e-17)?function t(e){return 0==(e=+e)?e:-1e-6<e&&e<1e-6?e+e*e/2:pa(e)-1}:te,Ye=Math.cosh,_a=Math.abs,ya=Math.E;Ht({target:"Math",stat:!0,forced:!Ye||Ye(710)===1/0},{cosh:function t(e){var e=ga(_a(e)-1)+1;return(e+1/(e*ya*ya))*(ya/2)}}),Ht({target:"Math",stat:!0,forced:ga!=Math.expm1},{expm1:ga});var ma=Math.abs,ot=Math.pow,va=ot(2,-52),ba=ot(2,-23),xa=ot(2,127)*(2-ba),wa=ot(2,-126),Ma=function(t){return t+1/va-1/va},Ir=Math.fround||function t(e){var n=ma(e),r=la(e),e,n;return n<wa?r*Ma(n/wa/ba)*wa*ba:xa<(n=(e=(1+ba/va)*n)-(e-n))||n!=n?r*(1/0):r*n};Ht({target:"Math",stat:!0},{fround:Ir});var Tr=Math.hypot,ka=Math.abs,ja=Math.sqrt,r=!!Tr&&Tr(1/0,NaN)!==1/0;Ht({target:"Math",stat:!0,forced:r},{hypot:function t(e,n){for(var r=0,i=0,o=arguments.length,a=0,s,l;i<o;)a<(s=ka(arguments[i++]))?(r=r*(l=a/s)*l+1,a=s):r+=0<s?(l=s/a)*l:s;return a===1/0?1/0:a*ja(r)}});var Aa=Math.imul,Wi=y(function(){return-5!=Aa(4294967295,5)||2!=Aa.length});Ht({target:"Math",stat:!0,forced:Wi},{imul:function t(e,n){var r=65535,i=+e,o=+n,e=r&i,n=r&o;return 0|e*n+((r&i>>>16)*n+e*(r&o>>>16)<<16>>>0)}});var Ia=Math.log,Ta=Math.LOG10E;Ht({target:"Math",stat:!0},{log10:function t(e){return Ia(e)*Ta}}),Ht({target:"Math",stat:!0},{log1p:ta});var Na=Math.log,za=Math.LN2;Ht({target:"Math",stat:!0},{log2:function t(e){return Na(e)/za}}),Ht({target:"Math",stat:!0},{sign:la});var Ea=Math.abs,Sa=Math.exp,La=Math.E,an=y(function(){return-2e-17!=Math.sinh(-2e-17)});Ht({target:"Math",stat:!0,forced:an},{sinh:function t(e){return Ea(e=+e)<1?(ga(e)-ga(-e))/2:(Sa(e-1)-Sa(-e-1))*(La/2)}});var Da=Math.exp;Ht({target:"Math",stat:!0},{tanh:function t(e){var n=ga(e=+e),r=ga(-e);return n==1/0?1:r==1/0?-1:(n-r)/(Da(e)+Da(-e))}}),Le(Math,"Math",!0);var Ca=Math.ceil,Oa=Math.floor;Ht({target:"Math",stat:!0},{trunc:function t(e){return(0<e?Oa:Ca)(e)}});var Pa="\t\n\v\f\r \u2028\u2029\ufeff",o="["+Pa+"]",Ra=RegExp("^"+o+o+"*"),Ya=RegExp(o+o+"*$"),pn=function(e){return function(t){var t=String(m(t));return 1&e&&(t=t.replace(Ra,"")),t=2&e?t.replace(Ya,""):t}},Ki={start:pn(1),end:pn(2),trim:pn(3)},z=Et.f,Ua=O.f,Ba=P.f,Fa=Ki.trim,Za="Number",Ha=E[Za],Ga=Ha.prototype,Qa=d(_e(Ga))==Za,qa=function(t){var e=D(t,!1),n,t,r,i,o,a,s,l;if("string"==typeof e&&2<e.length)if(43===(n=(e=Fa(e)).charCodeAt(0))||45===n){if(88===(t=e.charCodeAt(2))||120===t)return NaN}else if(48===n){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(a=(o=e.slice(2)).length,s=0;s<a;s++)if((l=o.charCodeAt(s))<48||i<l)return NaN;return parseInt(o,r)}return+e};if(Ft(Za,!Ha(" 0o1")||!Ha("0b1")||Ha("+0x1"))){for(var Va=function t(e){var e=arguments.length<1?0:e,n=this;return n instanceof Va&&(Qa?y(function(){Ga.valueOf.call(n)}):d(n)!=Za)?Qo(new Ha(qa(e)),n,Va):qa(e)},Wa=S?z(Ha):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),$a=0,Xa;Wa.length>$a;$a++)C(Ha,Xa=Wa[$a])&&!C(Va,Xa)&&Ba(Va,Xa,Ua(Ha,Xa));(Va.prototype=Ga).constructor=Va,ft(E,Za,Va)}Ht({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)});var Ja=E.isFinite,Ge=Number.isFinite||function t(e){return"number"==typeof e&&Ja(e)};Ht({target:"Number",stat:!0},{isFinite:Ge});var Ka=Math.floor,ts=function t(e){return!L(e)&&isFinite(e)&&Ka(e)===e};Ht({target:"Number",stat:!0},{isInteger:ts}),Ht({target:"Number",stat:!0},{isNaN:function t(e){return e!=e}});var es=Math.abs;Ht({target:"Number",stat:!0},{isSafeInteger:function t(e){return ts(e)&&es(e)<=9007199254740991}}),Ht({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991}),Ht({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991});var ns=Ki.trim,rs=E.parseFloat,is,tt=1/rs(Pa+"-0")!=-1/0?function t(e){var n=ns(String(e)),e=rs(n);return 0===e&&"-"==n.charAt(0)?-0:e}:rs;Ht({target:"Number",stat:!0,forced:Number.parseFloat!=tt},{parseFloat:tt});var os=Ki.trim,as=E.parseInt,ss=/^[+-]?0[Xx]/,ls,yn=8!==as(Pa+"08")||22!==as(Pa+"0x16")?function t(e,n){var e=os(String(e));return as(e,n>>>0||(ss.test(e)?16:10))}:as;Ht({target:"Number",stat:!0,forced:Number.parseInt!=yn},{parseInt:yn});var cs=function(t){if("number"!=typeof t&&"Number"!=d(t))throw TypeError("Incorrect invocation");return+t},us=1..toFixed,ds=Math.floor,fs=function(t,e,n){return 0===e?n:e%2==1?fs(t,e-1,n*t):fs(t*t,e/2,n)},hs=function(t){for(var e=0,n=t;4096<=n;)e+=12,n/=4096;for(;2<=n;)e+=1,n/=2;return e},ps=function(t,e,n){for(var r=-1,i=n;++r<6;)i+=e*t[r],t[r]=i%1e7,i=ds(i/1e7)},gs=function(t,e){for(var n=6,r=0;0<=--n;)r+=t[n],t[n]=ds(r/e),r=r%e*1e7},_s=function(t){for(var e=6,n="",r,n;0<=--e;){""===n&&0!==e&&0===t[e]||(r=String(t[e]),n=""===n?r:n+bo.call("0",7-r.length)+r)}return n},X=us&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0))||!y(function(){us.call({})});Ht({target:"Number",proto:!0,forced:X},{toFixed:function t(e){var n=cs(this),r=mt(e),i=[0,0,0,0,0,0],o="",e="0",a,n,s,a;if(r<0||20<r)throw RangeError("Incorrect fraction digits");if(n!=n)return"NaN";if(n<=-1e21||1e21<=n)return String(n);if(n<0&&(o="-",n=-n),1e-21<n)if(n=(a=hs(n*fs(2,69,1))-69)<0?n*fs(2,-a,1):n/fs(2,a,1),n*=4503599627370496,0<(a=52-a)){for(ps(i,0,n),s=r;7<=s;)ps(i,1e7,0),s-=7;for(ps(i,fs(10,s,1),0),s=a-1;23<=s;)gs(i,1<<23),s-=23;gs(i,1<<s),ps(i,1,1),gs(i,2),e=_s(i)}else ps(i,0,n),ps(i,1<<-a,0),e=_s(i)+bo.call("0",r);return e=0<r?o+((a=e.length)<=r?"0."+bo.call("0",r-a)+e:e.slice(0,a-r)+"."+e.slice(a-r)):o+e}});var ys=1..toPrecision,Wt=y(function(){return"1"!==ys.call(1,void 0)})||!y(function(){ys.call({})});Ht({target:"Number",proto:!0,forced:Wt},{toPrecision:function t(e){return void 0===e?ys.call(cs(this)):ys.call(cs(this),e)}});var ms=Object.assign,vs=Object.defineProperty,Pt=!ms||y(function(){if(S&&1!==ms({b:1},ms(vs({},"a",{enumerable:!0,get:function(){vs(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return 1;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=ms({},t)[n]||ne(ms({},e)).join("")!=r})?function t(e,n){for(var r=x(e),i=arguments.length,o=1,a=Lt.f,s=h.f;o<i;)for(var l=b(arguments[o++]),c=a?ne(l).concat(a(l)):ne(l),u=c.length,d=0,f;d<u;)f=c[d++],S&&!s.call(l,f)||(r[f]=l[f]);return r}:ms;Ht({target:"Object",stat:!0,forced:Object.assign!==Pt},{assign:Pt}),Ht({target:"Object",stat:!0,sham:!S},{create:_e});var xn=!y(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete E[t]});S&&Ht({target:"Object",proto:!0,forced:xn},{__defineGetter__:function t(e,n){P.f(x(this),e,{get:De(n),enumerable:!0,configurable:!0})}}),Ht({target:"Object",stat:!0,forced:!S,sham:!S},{defineProperties:re}),Ht({target:"Object",stat:!0,forced:!S,sham:!S},{defineProperty:P.f}),S&&Ht({target:"Object",proto:!0,forced:xn},{__defineSetter__:function t(e,n){P.f(x(this),e,{set:De(n),enumerable:!0,configurable:!0})}});var bs=h.f,Xt=function(s){return function(t){for(var e=p(t),n=ne(e),r=n.length,i=0,o=[],a;i<r;)a=n[i++],S&&!bs.call(e,a)||o.push(s?[a,e[a]]:e[a]);return o}},Vt={entries:Xt(!0),values:Xt(!1)},xs=Vt.entries;Ht({target:"Object",stat:!0},{entries:function t(e){return xs(e)}});var ws=Bo.onFreeze,Ms=Object.freeze,vr=y(function(){Ms(1)});Ht({target:"Object",stat:!0,forced:vr,sham:!Uo},{freeze:function t(e){return Ms&&L(e)?Ms(ws(e)):e}}),Ht({target:"Object",stat:!0},{fromEntries:function t(e){var n={};return Zn(e,function(t,e){Gn(n,t,e)},{AS_ENTRIES:!0}),n}});var ks=O.f,sn=y(function(){ks(1)}),js;Ht({target:"Object",stat:!0,forced:!S||sn,sham:!S},{getOwnPropertyDescriptor:function t(e,n){return ks(p(e),n)}}),Ht({target:"Object",stat:!0,sham:!S},{getOwnPropertyDescriptors:function t(e){for(var n=p(e),r=O.f,i=Dt(n),o={},a=0,s,l;i.length>a;)void 0!==(l=r(n,s=i[a++]))&&Gn(o,s,l);return o}});var te=we.f,Ye=y(function(){return!Object.getOwnPropertyNames(1)});Ht({target:"Object",stat:!0,forced:Ye},{getOwnPropertyNames:te});var ot=y(function(){In(1)});Ht({target:"Object",stat:!0,forced:ot,sham:!Z},{getPrototypeOf:function t(e){return In(x(e))}});var As=Object.is||function t(e,n){return e===n?0!==e||1/e==1/n:e!=e&&n!=n};Ht({target:"Object",stat:!0},{is:As});var Is=Object.isExtensible,Ir=y(function(){Is(1)});Ht({target:"Object",stat:!0,forced:Ir},{isExtensible:function t(e){return!!L(e)&&(!Is||Is(e))}});var Ts=Object.isFrozen,Tr=y(function(){Ts(1)});Ht({target:"Object",stat:!0,forced:Tr},{isFrozen:function t(e){return!L(e)||!!Ts&&Ts(e)}});var Ns=Object.isSealed,r=y(function(){Ns(1)});Ht({target:"Object",stat:!0,forced:r},{isSealed:function t(e){return!L(e)||!!Ns&&Ns(e)}});var Wi=y(function(){ne(1)});Ht({target:"Object",stat:!0,forced:Wi},{keys:function t(e){return ne(x(e))}});var zs=O.f;S&&Ht({target:"Object",proto:!0,forced:xn},{__lookupGetter__:function t(e){var n=x(this),r=D(e,!0),i;do{if(i=zs(n,r))return i.get}while(n=In(n))}});var Es=O.f;S&&Ht({target:"Object",proto:!0,forced:xn},{__lookupSetter__:function t(e){var n=x(this),r=D(e,!0),i;do{if(i=Es(n,r))return i.set}while(n=In(n))}});var Ss=Bo.onFreeze,Ls=Object.preventExtensions,an=y(function(){Ls(1)});Ht({target:"Object",stat:!0,forced:an,sham:!Uo},{preventExtensions:function t(e){return Ls&&L(e)?Ls(Ss(e)):e}});var Ds=Bo.onFreeze,Cs=Object.seal,o=y(function(){Cs(1)}),Os;Ht({target:"Object",stat:!0,forced:o,sham:!Uo},{seal:function t(e){return Cs&&L(e)?Cs(Ds(e)):e}}),Ht({target:"Object",stat:!0},{setPrototypeOf:Nn}),it||ft(Object.prototype,"toString",it?{}.toString:function t(){return"[object "+Rn(this)+"]"},{unsafe:!0});var Ps=Vt.values;Ht({target:"Object",stat:!0},{values:function t(e){return Ps(e)}}),Ht({global:!0,forced:parseFloat!=tt},{parseFloat:tt}),Ht({global:!0,forced:parseInt!=yn},{parseInt:yn});var Rs=E.Promise,pn=/(?:iphone|ipod|ipad).*applewebkit/i.test(Qt),Ys=E.location,z=E.setImmediate,Ge=E.clearImmediate,Us=E.process,X=E.MessageChannel,Bs=E.Dispatch,Fs=0,Zs={},Hs="onreadystatechange",Gs,Qs,qs,Vs=function(t){var e;Zs.hasOwnProperty(t)&&(e=Zs[t],delete Zs[t],e())},Ws=function(t){return function(){Vs(t)}},Wt=function(t){Vs(t.data)},Xt=function(t){E.postMessage(t+"",Ys.protocol+"//"+Ys.host)};z&&Ge||(z=function t(e){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);return Zs[++Fs]=function(){("function"==typeof e?e:Function(e)).apply(void 0,n)},Gs(Fs),Fs},Ge=function t(e){delete Zs[e]},Gt?Gs=function(t){Us.nextTick(Ws(t))}:Bs&&Bs.now?Gs=function(t){Bs.now(Ws(t))}:X&&!pn?(qs=(Qs=new X).port2,Qs.port1.onmessage=Wt,Gs=Ce(qs.postMessage,qs,1)):E.addEventListener&&"function"==typeof postMessage&&!E.importScripts&&Ys&&"file:"!==Ys.protocol&&!y(Xt)?(Gs=Xt,E.addEventListener("message",Wt,!1)):Gs=Hs in w("script")?function(t){ie.appendChild(w("script"))[Hs]=function(){ie.removeChild(this),Vs(t)}}:function(t){setTimeout(Ws(t),0)});var vr={set:z,clear:Ge},sn=/web0s(?!.*chrome)/i.test(Qt),we=O.f,$s=vr.set,Ye=E.MutationObserver||E.WebKitMutationObserver,te=E.document,Xs=E.process,ot=E.Promise,Ir=we(E,"queueMicrotask"),Tr=Ir&&Ir.value,Js,Ks,tl,el,nl,rl,il,ol;Tr||(Js=function(){var t,e;for(Gt&&(t=Xs.domain)&&t.exit();Ks;){e=Ks.fn,Ks=Ks.next;try{e()}catch(t){throw Ks?el():tl=void 0,t}}tl=void 0,t&&t.enter()},el=pn||Gt||sn||!Ye||!te?ot&&ot.resolve?((il=ot.resolve(void 0)).constructor=ot,ol=il.then,function(){ol.call(il,Js)}):Gt?function(){Xs.nextTick(Js)}:function(){$s.call(E,Js)}:(nl=!0,rl=te.createTextNode(""),new Ye(Js).observe(rl,{characterData:!0}),function(){rl.data=nl=!nl}));var al=Tr||function(t){var t={fn:t,next:void 0};tl&&(tl.next=t),Ks||(Ks=t,el()),tl=t},sl=function(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=De(n),this.reject=De(r)},ll,cl={f:function(t){return new sl(t)}},ul=function(t,e){if(A(t),L(e)&&e.constructor===t)return e;var t=cl.f(t),n;return(0,t.resolve)(e),t.promise},dl=function(t,e){var n=E.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))},fl=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},hl="object"==typeof window,pl=vr.set,gl=Ae("species"),_l="Promise",yl=dt.get,ml=dt.set,vl=dt.getterFor(_l),r=Rs&&Rs.prototype,bl=Rs,xl=E.TypeError,wl=E.document,Ml=E.process,kl=cl.f,jl=kl,Al=!!(wl&&wl.createEvent&&E.dispatchEvent),Il="function"==typeof PromiseRejectionEvent,Tl="unhandledrejection",Nl="rejectionhandled",zl=0,El=1,Sl=2,Ll=1,Dl=2,Cl=!1,Ol,Pl,Rl,Yl,Wi=Ft(_l,function(){var t=F(bl)!==String(bl);if(!t&&66===Jt)return!0;if(51<=Jt&&/native code/.test(bl))return!1;var e=new bl(function(t){t(1)}),n=function(t){t(function(){},function(){})},r;return(e.constructor={})[gl]=n,!(Cl=e.then(function(){})instanceof n)||!t&&hl&&!Il}),xn=Wi||!br(function(t){bl.all(t).catch(function(){})}),Ul=function(t){var e;return!(!L(t)||"function"!=typeof(e=t.then))&&e},Bl=function(d,f){var h;d.notified||(d.notified=!0,h=d.reactions,al(function(){for(var t=d.value,e=1==d.state,n=0;h.length>n;){var r=h[n++],i=e?r.ok:r.fail,o=r.resolve,a=r.reject,s=r.domain,l,c,u;try{i?(e||(2===d.rejection&&Gl(d),d.rejection=1),!0===i?l=t:(s&&s.enter(),l=i(t),s&&(s.exit(),u=!0)),l===r.promise?a(xl("Promise-chain cycle")):(c=Ul(l))?c.call(l,o,a):o(l)):a(t)}catch(t){s&&!u&&s.exit(),a(t)}}d.reactions=[],d.notified=!1,f&&!d.rejection&&Zl(d)}))},Fl=function(t,e,n){var r,i;Al?((r=wl.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),E.dispatchEvent(r)):r={promise:e,reason:n},!Il&&(i=E["on"+t])?i(r):t===Tl&&dl("Unhandled promise rejection",n)},Zl=function(i){pl.call(E,function(){var t=i.facade,e=i.value,n=Hl(i),r;if(n&&(r=fl(function(){Gt?Ml.emit("unhandledRejection",e,t):Fl(Tl,t,e)}),i.rejection=Gt||Hl(i)?2:1,r.error))throw r.value})},Hl=function(t){return 1!==t.rejection&&!t.parent},Gl=function(e){pl.call(E,function(){var t=e.facade;Gt?Ml.emit("rejectionHandled",t):Fl(Nl,t,e.value)})},Ql=function(e,n,r){return function(t){e(n,t,r)}},ql=function(t,e,n){t.done||(t.done=!0,(t=n?n:t).value=e,t.state=2,Bl(t,!0))},Vl=function(n,t,e){if(!n.done){n.done=!0,e&&(n=e);try{if(n.facade===t)throw xl("Promise can't be resolved itself");var r=Ul(t);r?al(function(){var e={done:!1};try{r.call(t,Ql(Vl,e,n),Ql(ql,e,n))}catch(t){ql(e,t,n)}}):(n.value=t,n.state=1,Bl(n,!1))}catch(t){ql({done:!1},t,n)}}};if(Wi&&(bl=function t(e){_i(this,bl,_l),De(e),Ol.call(this);var n=yl(this);try{e(Ql(Vl,n),Ql(ql,n))}catch(t){ql(n,t)}},(Ol=function t(e){ml(this,{type:_l,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=gi(bl.prototype,{then:function t(e,n){var r=vl(this),i=kl(_o(this,bl));return i.ok="function"!=typeof e||e,i.fail="function"==typeof n&&n,i.domain=Gt?Ml.domain:void 0,r.parent=!0,r.reactions.push(i),0!=r.state&&Bl(r,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),Pl=function(){var t=new Ol,e=yl(t);this.promise=t,this.resolve=Ql(Vl,e),this.reject=Ql(ql,e)},cl.f=kl=function(t){return t===bl||t===Rl?new Pl(t):jl(t)},"function"==typeof Rs&&r!==Object.prototype)){Yl=r.then,Cl||ft(r,"then",function t(e,n){var r=this;return new bl(function(t,e){Yl.call(r,t,e)}).then(e,n)},{unsafe:!0});try{delete r.constructor}catch(t){}Nn&&Nn(r,bl.prototype)}Ht({global:!0,wrap:!0,forced:Wi},{Promise:bl}),Le(bl,_l,!1),ui(_l),Rl=gt(_l),Ht({target:_l,stat:!0,forced:Wi},{reject:function t(e){var n=kl(this);return n.reject.call(void 0,e),n.promise}}),Ht({target:_l,stat:!0,forced:Wi},{resolve:function t(e){return ul(this,e)}}),Ht({target:_l,stat:!0,forced:xn},{all:function t(e){var s=this,n=kl(s),l=n.resolve,c=n.reject,r=fl(function(){var r=De(s.resolve),i=[],o=0,a=1;Zn(e,function(t){var e=o++,n=!1;i.push(void 0),a++,r.call(s,t).then(function(t){n||(n=!0,i[e]=t,--a||l(i))},c)}),--a||l(i)});return r.error&&c(r.value),n.promise},race:function t(n){var r=this,i=kl(r),o=i.reject,e=fl(function(){var e=De(r.resolve);Zn(n,function(t){e.call(r,t).then(i.resolve,o)})});return e.error&&o(e.value),i.promise}}),Ht({target:"Promise",stat:!0},{allSettled:function t(e){var s=this,n=cl.f(s),l=n.resolve,r=n.reject,i=fl(function(){var r=De(s.resolve),i=[],o=0,a=1;Zn(e,function(t){var e=o++,n=!1;i.push(void 0),a++,r.call(s,t).then(function(t){n||(n=!0,i[e]={status:"fulfilled",value:t},--a||l(i))},function(t){n||(n=!0,i[e]={status:"rejected",reason:t},--a||l(i))})}),--a||l(i)});return i.error&&r(i.value),n.promise}});var Wl="No one promise resolved";Ht({target:"Promise",stat:!0},{any:function t(e){var l=this,n=cl.f(l),c=n.resolve,u=n.reject,r=fl(function(){var r=De(l.resolve),i=[],o=0,a=1,s=!1;Zn(e,function(t){var e=o++,n=!1;i.push(void 0),a++,r.call(l,t).then(function(t){n||s||(s=!0,c(t))},function(t){n||s||(n=!0,i[e]=t,--a||u(new(gt("AggregateError"))(i,Wl)))})}),--a||u(new(gt("AggregateError"))(i,Wl))});return r.error&&u(r.value),n.promise}});var an=!!Rs&&y(function(){Rs.prototype.finally.call({then:function(){}},function(){})});Ht({target:"Promise",proto:!0,real:!0,forced:an},{finally:function(e){var n=_o(this,gt("Promise")),t="function"==typeof e;return this.then(t?function(t){return ul(n,e()).then(function(){return t})}:e,t?function(t){return ul(n,e()).then(function(){throw t})}:e)}}),"function"!=typeof Rs||Rs.prototype.finally||ft(Rs.prototype,"finally",gt("Promise").prototype.finally);var $l=gt("Reflect","apply"),Xl=Function.apply,o=!y(function(){$l(function(){})});Ht({target:"Reflect",stat:!0,forced:o},{apply:function t(e,n,r){return De(e),A(r),$l?$l(e,n,r):Xl.call(e,n,r)}});var Jl=gt("Reflect","construct"),Kl=y(function(){function t(){}return!(Jl(function(){},[],t)instanceof t)}),tc=!y(function(){Jl(function(){})}),it=Kl||tc;Ht({target:"Reflect",stat:!0,forced:it,sham:it},{construct:function t(e,n){De(e),A(n);var r=arguments.length<3?e:De(arguments[2]);if(tc&&!Kl)return Jl(e,n,r);if(e==r){switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3])}var i=[null];return i.push.apply(i,n),new(So.apply(e,i))}var i=r.prototype,r=_e(L(i)?i:Object.prototype),i=Function.apply.call(e,r,n);return L(i)?i:r}});var Vt=y(function(){Reflect.defineProperty(P.f({},1,{value:1}),1,{value:2})});Ht({target:"Reflect",stat:!0,forced:Vt,sham:!S},{defineProperty:function t(e,n,r){A(e);var n=D(n,!0);A(r);try{return P.f(e,n,r),!0}catch(t){return!1}}});var ec=O.f;function nc(t,e){var n=arguments.length<3?t:arguments[2],r,t;return A(t)===n?t[e]:(r=O.f(t,e))?C(r,"value")?r.value:void 0===r.get?void 0:r.get.call(n):L(t=In(t))?nc(t,e,n):void 0}Ht({target:"Reflect",stat:!0},{deleteProperty:function t(e,n){var r=ec(A(e),n);return!(r&&!r.configurable)&&delete e[n]}}),Ht({target:"Reflect",stat:!0},{get:nc}),Ht({target:"Reflect",stat:!0,sham:!S},{getOwnPropertyDescriptor:function t(e,n){return O.f(A(e),n)}}),Ht({target:"Reflect",stat:!0,sham:!Z},{getPrototypeOf:function t(e){return In(A(e))}}),Ht({target:"Reflect",stat:!0},{has:function t(e,n){return n in e}});var rc=Object.isExtensible;function ic(t,e,n){var r=arguments.length<4?t:arguments[3],i=O.f(A(t),e),o,o;if(!i){if(L(o=In(t)))return ic(o,e,n,r);i=c(0)}if(C(i,"value")){if(!1===i.writable||!L(r))return!1;if(o=O.f(r,e)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,P.f(r,e,o)}else P.f(r,e,c(0,n));return!0}return void 0!==i.set&&(i.set.call(r,n),!0)}Ht({target:"Reflect",stat:!0},{isExtensible:function t(e){return A(e),!rc||rc(e)}}),Ht({target:"Reflect",stat:!0},{ownKeys:Dt}),Ht({target:"Reflect",stat:!0,sham:!Uo},{preventExtensions:function t(e){A(e);try{var n=gt("Object","preventExtensions");return n&&n(e),!0}catch(t){return!1}}});var tt=y(function(){var t=function(){},e=P.f(new t,"a",{configurable:!0});return!1!==Reflect.set(t.prototype,"a",1,e)});Ht({target:"Reflect",stat:!0,forced:tt},{set:ic}),Nn&&Ht({target:"Reflect",stat:!0},{setPrototypeOf:function t(e,n){A(e),Tn(n);try{return Nn(e,n),!0}catch(t){return!1}}}),Ht({global:!0},{Reflect:{}}),Le(E.Reflect,"Reflect",!0);var oc=Ae("match"),ac=function(t){var e;return L(t)&&(void 0!==(e=t[oc])?!!e:"RegExp"==d(t))},sc=function(){var t=A(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function lc(t,e){return RegExp(t,e)}var cc,uc,yn={UNSUPPORTED_Y:y(function(){var t=lc("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),BROKEN_CARET:y(function(){var t=lc("^r","gy");return t.lastIndex=2,null!=t.exec("str")})},dc=P.f,X=Et.f,fc=dt.enforce,hc=Ae("match"),pc=E.RegExp,gc=pc.prototype,_c=/a/g,yc=/a/g,mc=new pc(_c)!==_c,vc=yn.UNSUPPORTED_Y,bc;if(S&&Ft("RegExp",!mc||vc||y(function(){return yc[hc]=!1,pc(_c)!=_c||pc(yc)==yc||"/a/i"!=pc(_c,"i")}))){for(var xc=function t(e,n){var r=this instanceof xc,i=ac(e),o=void 0===n,a;if(!r&&i&&e.constructor===xc&&o)return e;mc?i&&!o&&(e=e.source):e instanceof xc&&(o&&(n=sc.call(e)),e=e.source),vc&&(a=!!n&&-1<n.indexOf("y"))&&(n=n.replace(/y/g,""));var r=Qo(mc?new pc(e,n):pc(e,n),r?this:gc,xc),s;return vc&&a&&(fc(r).sticky=!0),r},wc=function(e){e in xc||dc(xc,e,{configurable:!0,get:function(){return pc[e]},set:function(t){pc[e]=t}})},Mc=X(pc),kc=0;Mc.length>kc;)wc(Mc[kc++]);(gc.constructor=xc).prototype=gc,ft(E,"RegExp",xc)}ui("RegExp");var jc=RegExp.prototype.exec,Ac=Q("native-string-replace",String.prototype.replace),Qs=jc,Ic=(qs=/a/,Xt=/b*/g,jc.call(qs,"a"),jc.call(Xt,"a"),0!==qs.lastIndex||0!==Xt.lastIndex),qs,Xt,Tc=yn.UNSUPPORTED_Y||yn.BROKEN_CARET,Nc=void 0!==/()??/.exec("")[1],zc,Ec=Qs=Ic||Nc||Tc?function t(e){var n=this,r,i,o,a,s=Tc&&n.sticky,l=sc.call(n),c=n.source,u=0,d=e;return s&&(-1===(l=l.replace("y","")).indexOf("g")&&(l+="g"),d=String(e).slice(n.lastIndex),0<n.lastIndex&&(!n.multiline||n.multiline&&"\n"!==e[n.lastIndex-1])&&(c="(?: "+c+")",d=" "+d,u++),i=new RegExp("^(?:"+c+")",l)),Nc&&(i=new RegExp("^"+c+"$(?!\\s)",l)),Ic&&(r=n.lastIndex),o=jc.call(s?i:n,d),s?o?(o.input=o.input.slice(u),o[0]=o[0].slice(u),o.index=n.lastIndex,n.lastIndex+=o[0].length):n.lastIndex=0:Ic&&o&&(n.lastIndex=n.global?o.index+o[0].length:r),Nc&&o&&1<o.length&&Ac.call(o[0],i,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)}),o}:Qs,Sc;Ht({target:"RegExp",proto:!0,forced:/./.exec!==Ec},{exec:Ec}),S&&("g"!=/./g.flags||yn.UNSUPPORTED_Y)&&P.f(RegExp.prototype,"flags",{configurable:!0,get:sc});var Lc,Wt=P.f,Dc=dt.get,Cc=RegExp.prototype;S&&yn.UNSUPPORTED_Y&&Wt(RegExp.prototype,"sticky",{configurable:!0,get:function(){if(this!==Cc){if(this instanceof RegExp)return!!Dc(this).sticky;throw TypeError("Incompatible receiver, RegExp required")}}});var Ge=(Oc=!1,(z=/[ac]/).exec=function(){return Oc=!0,/./.exec.apply(this,arguments)},!0===z.test("abc")&&Oc),Oc,z,Pc=/./.test;Ht({target:"RegExp",proto:!0,forced:!Ge},{test:function(t){if("function"!=typeof this.exec)return Pc.call(this,t);var t=this.exec(t);if(null!==t&&!L(t))throw new Error("RegExp exec method returned something other than an Object or null");return!!t}});var we="toString",Rc=RegExp.prototype,Yc=Rc[we],Ir=y(function(){return"/a/b"!=Yc.call({source:"a",flags:"b"})}),pn=Yc.name!=we;(Ir||pn)&&ft(RegExp.prototype,we,function t(){var e=A(this),n=String(e.source),r=e.flags,i;return"/"+n+"/"+String(void 0===r&&e instanceof RegExp&&!("flags"in Rc)?sc.call(e):r)},{unsafe:!0});var Uc=qo("Set",function(e){return function t(){return e(this,arguments.length?arguments[0]:void 0)}},$t),sn=function(o){return function(t,e){var n=String(m(t)),r=mt(e),t=n.length,e,i;return r<0||t<=r?o?"":void 0:(e=n.charCodeAt(r))<55296||56319<e||r+1===t||(i=n.charCodeAt(r+1))<56320||57343<i?o?n.charAt(r):e:o?n.slice(r,r+2):i-56320+(e-55296<<10)+65536}},ot={codeAt:sn(!1),charAt:sn(!0)},Bc=ot.codeAt;Ht({target:"String",proto:!0},{codePointAt:function t(e){return Bc(this,e)}});var Fc=function(t){if(ac(t))throw TypeError("The method doesn't accept regular expressions");return t},Zc=Ae("match"),te=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[Zc]=!1,"/./"[e](n)}catch(t){}}return!1},Ye=O.f,Hc="".endsWith,Gc=Math.min,Tr=te("endsWith"),r=!(Tr||(!(Qc=Ye(String.prototype,"endsWith"))||Qc.writable)),Qc;Ht({target:"String",proto:!0,forced:!r&&!Tr},{endsWith:function t(e){var n=String(m(this));Fc(e);var r=1<arguments.length?arguments[1]:void 0,i=bt(n.length),i=void 0===r?i:Gc(bt(r),i),e=String(e);return Hc?Hc.call(n,e,i):n.slice(i-e.length,i)===e}});var qc=String.fromCharCode,Wi=String.fromCodePoint,xn=!!Wi&&1!=Wi.length;Ht({target:"String",stat:!0,forced:xn},{fromCodePoint:function t(e){for(var n=[],r=arguments.length,i=0,o;i<r;){if(o=+arguments[i++],Mt(o,1114111)!==o)throw RangeError(o+" is not a valid code point");n.push(o<65536?qc(o):qc(55296+((o-=65536)>>10),o%1024+56320))}return n.join("")}}),Ht({target:"String",proto:!0,forced:!te("includes")},{includes:function t(e){return!!~String(m(this)).indexOf(Fc(e),1<arguments.length?arguments[1]:void 0)}});var Vc=ot.charAt,Wc="String Iterator",$c=dt.set,Xc=dt.getterFor(Wc);Yr(String,"String",function(t){$c(this,{type:Wc,string:String(t),index:0})},function t(){var e=Xc(this),n=e.string,r=e.index,r;return r>=n.length?{value:void 0,done:!0}:(r=Vc(n,r),e.index+=r.length,{value:r,done:!1})});var Jc=Ae("species"),Kc=!y(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),tu="$0"==="a".replace(/./,"$0"),an=Ae("replace"),eu=!!/./[an]&&""===/./[an]("a","$0"),nu=!y(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var t="ab".split(t);return 2!==t.length||"a"!==t[0]||"b"!==t[1]}),o=function(n,t,e,r){var i=Ae(n),o=!y(function(){var t={};return t[i]=function(){return 7},7!=""[n](t)}),a=o&&!y(function(){var t=!1,e=/a/;return"split"===n&&((e={constructor:{}}).constructor[Jc]=function(){return e},e.flags="",e[i]=/./[i]),e.exec=function(){return t=!0,null},e[i](""),!t}),s,a,e,l;o&&a&&("replace"!==n||Kc&&tu&&!eu)&&("split"!==n||nu)||(s=/./[i],e=(a=e(i,""[n],function(t,e,n,r,i){return e.exec===RegExp.prototype.exec?o&&!i?{done:!0,value:s.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}},{REPLACE_KEEPS_$0:tu,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:eu}))[0],l=a[1],ft(String.prototype,n,e),ft(RegExp.prototype,i,2==t?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)})),r&&R(RegExp.prototype[i],"sham",!0)},ru=ot.charAt,iu=function(t,e,n){return e+(n?ru(t,e).length:1)},ou=function(t,e){var n=t.exec;if("function"==typeof n){var n=n.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==d(t))throw TypeError("RegExp#exec called on incompatible receiver");return Ec.call(t,e)};o("match",1,function(i,l,c){return[function t(e){var n=m(this),r=null==e?void 0:e[i];return void 0!==r?r.call(e,n):new RegExp(e)[i](String(n))},function(t){var e=c(l,t,this);if(e.done)return e.value;var n=A(t),r=String(this);if(!n.global)return ou(n,r);for(var i=n.unicode,o=[],a=n.lastIndex=0,s;null!==(s=ou(n,r));){var s=String(s[0]);""===(o[a]=s)&&(n.lastIndex=iu(r,bt(n.lastIndex),i)),a++}return 0===a?null:o}]});var au=Ae("matchAll"),it="RegExp String",su=it+" Iterator",lu=dt.set,cu=dt.getterFor(su),uu=RegExp.prototype,du=uu.exec,fu="".matchAll,hu=!!fu&&!y(function(){"a".matchAll(/./)}),pu=function(t,e){var n=t.exec,e;if("function"!=typeof n)return du.call(t,e);if("object"!=typeof(e=n.call(t,e)))throw TypeError("Incorrect exec result");return e},gu=Er(function t(e,n,r,i){lu(this,{type:su,regexp:e,string:n,global:r,unicode:i,done:!1})},it,function t(){var e=cu(this);if(e.done)return{value:void 0,done:!0};var n=e.regexp,r=e.string,i=pu(n,r);return null===i?{value:void 0,done:e.done=!0}:e.global?(""==String(i[0])&&(n.lastIndex=iu(r,bt(n.lastIndex),e.unicode)),{value:i,done:!1}):{value:i,done:!(e.done=!0)}}),Vt=function(t){var e=A(this),n=String(t),r,i,t,i,r,t,r=_o(e,RegExp),i=e.flags,t=void 0===(i=void 0===i&&e instanceof RegExp&&!("flags"in uu)?sc.call(e):i)?"":String(i),i=new r(r===RegExp?e.source:e,t),r=!!~t.indexOf("g"),t=!!~t.indexOf("u");return i.lastIndex=bt(e.lastIndex),new gu(i,n,r,t)};Ht({target:"String",proto:!0,forced:hu},{matchAll:function t(e){var n=m(this),r,n,i,o;if(null!=e){if(ac(e)&&!~(r=String(m("flags"in uu?e.flags:sc.call(e)))).indexOf("g"))throw TypeError("`.matchAll` does not allow non-global regexes");if(hu)return fu.apply(n,arguments);if(null!=(i=e[au]))return De(i).call(e,n)}else if(hu)return fu.apply(n,arguments);return n=String(n),(o=new RegExp(e,"g"))[au](n)}}),au in uu||R(uu,au,Vt);var Z=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(Qt),_u=qt.end;Ht({target:"String",proto:!0,forced:Z},{padEnd:function t(e){return _u(this,e,1<arguments.length?arguments[1]:void 0)}});var yu=qt.start;Ht({target:"String",proto:!0,forced:Z},{padStart:function t(e){return yu(this,e,1<arguments.length?arguments[1]:void 0)}}),Ht({target:"String",stat:!0},{raw:function t(e){for(var n=p(e.raw),r=bt(n.length),i=arguments.length,o=[],a=0;a<r;)o.push(String(n[a++])),a<i&&o.push(String(arguments[a]));return o.join("")}}),Ht({target:"String",proto:!0},{repeat:bo});var mu=Math.floor,vu="".replace,bu=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,xu=/\$([$&'`]|\d{1,2})/g,wu=function(o,a,s,l,c,t){var u=s+o.length,d=l.length,e=xu;return void 0!==c&&(c=x(c),e=bu),vu.call(t,e,function(t,e){var n;switch(e.charAt(0)){case"$":return"$";case"&":return o;case"`":return a.slice(0,s);case"'":return a.slice(u);case"<":n=c[e.slice(1,-1)];break;default:var r=+e;if(0==r)return t;if(d<r){var i=mu(r/10);return 0===i?t:i<=d?void 0===l[i-1]?e.charAt(1):l[i-1]+e.charAt(1):t}n=l[r-1]}return void 0===n?"":n})},Mu=Math.max,ku=Math.min,ju=function(t){return void 0===t?t:String(t)};o("replace",2,function(o,b,x,t){var w=t.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,M=t.REPLACE_KEEPS_$0,k=w?"$":"$0";return[function t(e,n){var r=m(this),i=null==e?void 0:e[o];return void 0!==i?i.call(e,r,n):b.call(String(r),e,n)},function(t,e){if(!w&&M||"string"==typeof e&&-1===e.indexOf(k)){var n=x(b,t,this,e);if(n.done)return n.value}var r=A(t),i=String(this),o="function"==typeof e;o||(e=String(e));var a=r.global,s;a&&(s=r.unicode,r.lastIndex=0);for(var l=[];;){var c=ou(r,i),u;if(null===c)break;if(l.push(c),!a)break;""===String(c[0])&&(r.lastIndex=iu(i,bt(r.lastIndex),s))}for(var d="",f=0,h=0;h<l.length;h++){for(var c=l[h],p=String(c[0]),g=Mu(ku(mt(c.index),i.length),0),_=[],y=1;y<c.length;y++)_.push(ju(c[y]));var m=c.groups,v,m,m=o?(v=[p].concat(_,g,i),void 0!==m&&v.push(m),String(e.apply(void 0,v))):wu(p,i,g,_,m,e);f<=g&&(d+=i.slice(f,g)+m,f=g+p.length)}return d+i.slice(f)}]});var Au=Ae("replace"),Iu=RegExp.prototype,Tu=Math.max,Nu=function(t,e,n){return n>t.length?-1:""===e?n:t.indexOf(e,n)};Ht({target:"String",proto:!0},{replaceAll:function t(e,n){var r=m(this),i,o,a,s,l,c,u,d,f,h=0,p=0,g="";if(null!=e){if((i=ac(e))&&!~(o=String(m("flags"in Iu?e.flags:sc.call(e)))).indexOf("g"))throw TypeError("`.replaceAll` does not allow non-global regexes");if(void 0!==(a=e[Au]))return a.call(e,r,n)}for(s=String(r),l=String(e),(c="function"==typeof n)||(n=String(n)),u=l.length,d=Tu(1,u),h=Nu(s,l,0);-1!==h;)f=c?String(n(l,h,s)):wu(l,s,h,[],void 0,n),g+=s.slice(p,h)+f,p=h+u,h=Nu(s,l,h+d);return p<s.length&&(g+=s.slice(p)),g}}),o("search",1,function(i,r,o){return[function t(e){var n=m(this),r=null==e?void 0:e[i];return void 0!==r?r.call(e,n):new RegExp(e)[i](String(n))},function(t){var e=o(r,t,this);if(e.done)return e.value;var n=A(t),e=String(this),t=n.lastIndex;As(t,0)||(n.lastIndex=0);var e=ou(n,e);return As(n.lastIndex,t)||(n.lastIndex=t),null===e?-1:e.index}]});var zu=yn.UNSUPPORTED_Y,Eu=[].push,Su=Math.min,Lu=4294967295;o("split",2,function(o,p,g){var _,_="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(t,e){var n=String(m(this)),r=void 0===e?Lu:e>>>0;if(0==r)return[];if(void 0===t)return[n];if(!ac(t))return p.call(n,t,r);for(var i=[],e=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),o=0,a=new RegExp(t.source,e+"g"),s,l,c;(s=Ec.call(a,n))&&!(o<(l=a.lastIndex)&&(i.push(n.slice(o,s.index)),1<s.length&&s.index<n.length&&Eu.apply(i,s.slice(1)),c=s[0].length,o=l,i.length>=r));)a.lastIndex===s.index&&a.lastIndex++;return o===n.length?!c&&a.test("")||i.push(""):i.push(n.slice(o)),i.length>r?i.slice(0,r):i}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:p.call(this,t,e)}:p;return[function t(e,n){var r=m(this),i=null==e?void 0:e[o];return void 0!==i?i.call(e,r,n):_.call(String(r),e,n)},function(t,e){var n=g(_,t,this,e,_!==p);if(n.done)return n.value;var r=A(t),i=String(this),n=_o(r,RegExp),o=r.unicode,t=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(zu?"g":"y"),a=new n(zu?"^(?:"+r.source+")":r,t),s=void 0===e?Lu:e>>>0;if(0==s)return[];if(0===i.length)return null===ou(a,i)?[i]:[];for(var l=0,c=0,u=[];c<i.length;){a.lastIndex=zu?0:c;var d=ou(a,zu?i.slice(c):i),f;if(null===d||(f=Su(bt(a.lastIndex+(zu?c:0)),i.length))===l)c=iu(i,c,o);else{if(u.push(i.slice(l,c)),u.length===s)return u;for(var h=1;h<=d.length-1;h++)if(u.push(d[h]),u.length===s)return u;c=l=f}}return u.push(i.slice(l)),u}]},zu);var tt=O.f,Du="".startsWith,Cu=Math.min,X=te("startsWith"),Q=!(X||(!(Ou=tt(String.prototype,"startsWith"))||Ou.writable)),Ou;Ht({target:"String",proto:!0,forced:!Q&&!X},{startsWith:function t(e){var n=String(m(this));Fc(e);var r=bt(Cu(1<arguments.length?arguments[1]:void 0,n.length)),e=String(e);return Du?Du.call(n,e,r):n.slice(r,r+e.length)===e}});var Pu="
",qs=function(t){return y(function(){return Pa[t]()||Pu[t]()!=Pu||Pa[t].name!==t})},Ru=Ki.trim;Ht({target:"String",proto:!0,forced:qs("trim")},{trim:function t(){return Ru(this)}});var Yu=Ki.end,Xt=qs("trimEnd"),Qs=Xt?function t(){return Yu(this)}:"".trimEnd;Ht({target:"String",proto:!0,forced:Xt},{trimEnd:Qs,trimRight:Qs});var Uu=Ki.start,Wt=qs("trimStart"),z=Wt?function t(){return Uu(this)}:"".trimStart;Ht({target:"String",proto:!0,forced:Wt},{trimStart:z,trimLeft:z});var Bu=/"/g,Fu=function(t,e,n,r){var i=String(m(t)),t="<"+e;return""!==n&&(t+=" "+n+'="'+String(r).replace(Bu,""")+'"'),t+">"+i+"</"+e+">"},Ge=function(e){return y(function(){var t=""[e]('"');return t!==t.toLowerCase()||3<t.split('"').length})};Ht({target:"String",proto:!0,forced:Ge("anchor")},{anchor:function t(e){return Fu(this,"a","name",e)}}),Ht({target:"String",proto:!0,forced:Ge("big")},{big:function t(){return Fu(this,"big","","")}}),Ht({target:"String",proto:!0,forced:Ge("blink")},{blink:function t(){return Fu(this,"blink","","")}}),Ht({target:"String",proto:!0,forced:Ge("bold")},{bold:function t(){return Fu(this,"b","","")}}),Ht({target:"String",proto:!0,forced:Ge("fixed")},{fixed:function t(){return Fu(this,"tt","","")}}),Ht({target:"String",proto:!0,forced:Ge("fontcolor")},{fontcolor:function t(e){return Fu(this,"font","color",e)}}),Ht({target:"String",proto:!0,forced:Ge("fontsize")},{fontsize:function t(e){return Fu(this,"font","size",e)}}),Ht({target:"String",proto:!0,forced:Ge("italics")},{italics:function t(){return Fu(this,"i","","")}}),Ht({target:"String",proto:!0,forced:Ge("link")},{link:function t(e){return Fu(this,"a","href",e)}}),Ht({target:"String",proto:!0,forced:Ge("small")},{small:function t(){return Fu(this,"small","","")}}),Ht({target:"String",proto:!0,forced:Ge("strike")},{strike:function t(){return Fu(this,"strike","","")}}),Ht({target:"String",proto:!0,forced:Ge("sub")},{sub:function t(){return Fu(this,"sub","","")}}),Ht({target:"String",proto:!0,forced:Ge("sup")},{sup:function t(){return Fu(this,"sup","","")}});var Zu,Hu=E.ArrayBuffer,Gu=E.Int8Array,Qu=!ho.NATIVE_ARRAY_BUFFER_VIEWS||!y(function(){Gu(1)})||!y(function(){new Gu(-1)})||!br(function(t){new Gu,new Gu(null),new Gu(1.5),new Gu(t)},!0)||y(function(){return 1!==new Gu(new Hu(2),1,void 0).length}),qu=function(t){var t=mt(t);if(t<0)throw RangeError("The argument can't be less than 0");return t},Vu=function(t,e){var t=qu(t);if(t%e)throw RangeError("Wrong offset");return t},Wu=ho.aTypedArrayConstructor,$u=function t(e){var n=x(e),r=arguments.length,i=1<r?arguments[1]:void 0,o=void 0!==i,e=Un(n),a,s,l,c,u,d;if(null!=e&&!Ln(e))for(d=(u=e.call(n)).next,n=[];!(c=d.call(u)).done;)n.push(c.value);for(o&&2<r&&(i=Ce(i,arguments[2],2)),s=bt(n.length),l=new(Wu(this))(s),a=0;a<s;a++)l[a]=o?i(n[a],a):n[a];return l},Ir=n(function(t){var h=Et.f,p=Ue.forEach,g=dt.get,_=dt.set,y=P.f,r=O.f,m=Math.round,v=E.RangeError,b=eo.ArrayBuffer,x=eo.DataView,w=ho.NATIVE_ARRAY_BUFFER_VIEWS,M=ho.TYPED_ARRAY_TAG,k=ho.TypedArray,j=ho.TypedArrayPrototype,o=ho.aTypedArrayConstructor,A=ho.isTypedArray,I="BYTES_PER_ELEMENT",T="Wrong length",N=function(t,e){for(var n=0,r=e.length,i=new(o(t))(r);n<r;)i[n]=e[n++];return i},e=function(t,e){y(t,e,{get:function(){return g(this)[e]}})},z=function(t){var e;return t instanceof b||"ArrayBuffer"==(e=Rn(t))||"SharedArrayBuffer"==e},i=function(t,e){return A(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},n=function t(e,n){return i(e,n=D(n,!0))?c(2,e[n]):r(e,n)},a=function t(e,n,r){return!(i(e,n=D(n,!0))&&L(r)&&C(r,"value"))||C(r,"get")||C(r,"set")||r.configurable||C(r,"writable")&&!r.writable||C(r,"enumerable")&&!r.enumerable?y(e,n,r):(e[n]=r.value,e)};S?(w||(O.f=n,P.f=a,e(j,"buffer"),e(j,"byteOffset"),e(j,"byteLength"),e(j,"length")),Ht({target:"Object",stat:!0,forced:!w},{getOwnPropertyDescriptor:n,defineProperty:a}),t.exports=function(t,e,r){var c=t.match(/\d+$/)[0]/8,u=t+(r?"Clamped":"")+"Array",n="get"+t,i="set"+t,o=E[u],d=o,a=d&&d.prototype,t={},s=function(t,e){var t=g(t);return t.view[n](e*c+t.byteOffset,!0)},l=function(t,e,n){var t=g(t);r&&(n=(n=m(n))<0?0:255<n?255:255&n),t.view[i](e*c+t.byteOffset,n,!0)},f=function(t,e){y(t,e,{get:function(){return s(this,e)},set:function(t){return l(this,e,t)},enumerable:!0})};w?Qu&&(d=e(function(t,e,n,r){return _i(t,d,u),Qo(L(e)?z(e)?void 0!==r?new o(e,Vu(n,c),r):void 0!==n?new o(e,Vu(n,c)):new o(e):A(e)?N(d,e):$u.call(d,e):new o(yi(e)),t,d)}),Nn&&Nn(d,k),p(h(o),function(t){t in d||R(d,t,o[t])}),d.prototype=a):(d=e(function(t,e,n,r){_i(t,d,u);var i=0,o=0,a,s,l;if(L(e)){if(!z(e))return A(e)?N(d,e):$u.call(d,e);var a=e,o=Vu(n,c),n=e.byteLength;if(void 0===r){if(n%c)throw v(T);if((s=n-o)<0)throw v(T)}else if(n<(s=bt(r)*c)+o)throw v(T);l=s/c}else l=yi(e),a=new b(s=l*c);for(_(t,{buffer:a,byteOffset:o,byteLength:s,length:l,view:new x(a)});i<l;)f(t,i++)}),Nn&&Nn(d,k),a=d.prototype=_e(j)),a.constructor!==d&&R(a,"constructor",d),M&&R(a,M,u),t[u]=d,Ht({global:!0,forced:d!=o,sham:!w},t),I in d||R(d,I,c),I in a||R(a,I,c),ui(u)}):t.exports=function(){}});Ir("Float32",function(i){return function t(e,n,r){return i(this,e,n,r)}}),Ir("Float64",function(i){return function t(e,n,r){return i(this,e,n,r)}}),Ir("Int8",function(i){return function t(e,n,r){return i(this,e,n,r)}}),Ir("Int16",function(i){return function t(e,n,r){return i(this,e,n,r)}}),Ir("Int32",function(i){return function t(e,n,r){return i(this,e,n,r)}}),Ir("Uint8",function(i){return function t(e,n,r){return i(this,e,n,r)}}),Ir("Uint8",function(i){return function t(e,n,r){return i(this,e,n,r)}},!0),Ir("Uint16",function(i){return function t(e,n,r){return i(this,e,n,r)}}),Ir("Uint32",function(i){return function t(e,n,r){return i(this,e,n,r)}});var Xu=ho.aTypedArray,Ju;(0,ho.exportTypedArrayMethod)("copyWithin",function t(e,n){return Kn.call(Xu(this),e,n,2<arguments.length?arguments[2]:void 0)});var Ku=Ue.every,td=ho.aTypedArray,ed;(0,ho.exportTypedArrayMethod)("every",function t(e){return Ku(td(this),e,1<arguments.length?arguments[1]:void 0)});var nd=ho.aTypedArray,rd;(0,ho.exportTypedArrayMethod)("fill",function t(e){return rr.apply(nd(this),arguments)});var id=ho.aTypedArrayConstructor,od=function(t,e){for(var t=_o(t,t.constructor),n=0,r=e.length,i=new(id(t))(r);n<r;)i[n]=e[n++];return i},ad=Ue.filter,sd=ho.aTypedArray,ld;(0,ho.exportTypedArrayMethod)("filter",function t(e){var e=ad(sd(this),e,1<arguments.length?arguments[1]:void 0);return od(this,e)});var cd=Ue.find,ud=ho.aTypedArray,dd;(0,ho.exportTypedArrayMethod)("find",function t(e){return cd(ud(this),e,1<arguments.length?arguments[1]:void 0)});var fd=Ue.findIndex,hd=ho.aTypedArray,pd;(0,ho.exportTypedArrayMethod)("findIndex",function t(e){return fd(hd(this),e,1<arguments.length?arguments[1]:void 0)});var gd=Ue.forEach,_d=ho.aTypedArray,yd,md;(0,ho.exportTypedArrayMethod)("forEach",function t(e){gd(_d(this),e,1<arguments.length?arguments[1]:void 0)}),(0,ho.exportTypedArrayStaticMethod)("from",$u,Qu);var vd=jt.includes,bd=ho.aTypedArray,xd;(0,ho.exportTypedArrayMethod)("includes",function t(e){return vd(bd(this),e,1<arguments.length?arguments[1]:void 0)});var wd=jt.indexOf,Md=ho.aTypedArray,kd;(0,ho.exportTypedArrayMethod)("indexOf",function t(e){return wd(Md(this),e,1<arguments.length?arguments[1]:void 0)});var pn=Ae("iterator"),we=E.Uint8Array,jd=Zr.values,Ad=Zr.keys,Id=Zr.entries,Td=ho.aTypedArray,$t=ho.exportTypedArrayMethod,sn=we&&we.prototype[pn],Ye=!!sn&&("values"==sn.name||null==sn.name),Qc=function t(){return jd.call(Td(this))};$t("entries",function t(){return Id.call(Td(this))}),$t("keys",function t(){return Ad.call(Td(this))}),$t("values",Qc,!Ye),$t(pn,Qc,!Ye);var Nd=ho.aTypedArray,zd,Ed=[].join;(0,ho.exportTypedArrayMethod)("join",function t(e){return Ed.apply(Nd(this),arguments)});var Sd=ho.aTypedArray,Ld;(0,ho.exportTypedArrayMethod)("lastIndexOf",function t(e){return Wr.apply(Sd(this),arguments)});var Dd=Ue.map,Cd=ho.aTypedArray,Od=ho.aTypedArrayConstructor,Pd;(0,ho.exportTypedArrayMethod)("map",function t(e){return Dd(Cd(this),e,1<arguments.length?arguments[1]:void 0,function(t,e){return new(Od(_o(t,t.constructor)))(e)})});var Rd=ho.aTypedArrayConstructor,Yd;(0,ho.exportTypedArrayStaticMethod)("of",function t(){for(var e=0,n=arguments.length,r=new(Rd(this))(n);e<n;)r[e]=arguments[e++];return r},Qu);var Ud=kt.left,Bd=ho.aTypedArray,Fd;(0,ho.exportTypedArrayMethod)("reduce",function t(e){return Ud(Bd(this),e,arguments.length,1<arguments.length?arguments[1]:void 0)});var Zd=kt.right,Hd=ho.aTypedArray,Gd;(0,ho.exportTypedArrayMethod)("reduceRight",function t(e){return Zd(Hd(this),e,arguments.length,1<arguments.length?arguments[1]:void 0)});var Qd=ho.aTypedArray,qd,Vd=Math.floor;(0,ho.exportTypedArrayMethod)("reverse",function t(){for(var e=this,n=Qd(e).length,r=Vd(n/2),i=0,o;i<r;)o=e[i],e[i++]=e[--n],e[n]=o;return e});var Wd=ho.aTypedArray,$d,Xd;(0,ho.exportTypedArrayMethod)("set",function t(e){Wd(this);var n=Vu(1<arguments.length?arguments[1]:void 0,1),r=this.length,i=x(e),o=bt(i.length),a=0;if(r<o+n)throw RangeError("Wrong length");for(;a<o;)this[n+a]=i[a++]},y(function(){new Int8Array(1).set({})}));var Jd=ho.aTypedArray,Kd=ho.aTypedArrayConstructor,tf,ef=[].slice,nf;(0,ho.exportTypedArrayMethod)("slice",function t(e,n){for(var r=ef.call(Jd(this),e,n),n=_o(this,this.constructor),i=0,o=r.length,a=new(Kd(n))(o);i<o;)a[i]=r[i++];return a},y(function(){new Int8Array(1).slice()}));var rf=Ue.some,of=ho.aTypedArray,af;(0,ho.exportTypedArrayMethod)("some",function t(e){return rf(of(this),e,1<arguments.length?arguments[1]:void 0)});var sf=ho.aTypedArray,lf,cf=[].sort;(0,ho.exportTypedArrayMethod)("sort",function t(e){return cf.call(sf(this),e)});var uf=ho.aTypedArray,df;(0,ho.exportTypedArrayMethod)("subarray",function t(e,n){var r=uf(this),i=r.length,e=Mt(e,i);return new(_o(r,r.constructor))(r.buffer,r.byteOffset+e*r.BYTES_PER_ELEMENT,bt((void 0===n?i:Mt(n,i))-e))});var ff=E.Int8Array,hf=ho.aTypedArray,r=ho.exportTypedArrayMethod,pf=[].toLocaleString,gf=[].slice,_f=!!ff&&y(function(){pf.call(new ff(1))}),yf;r("toLocaleString",function t(){return pf.apply(_f?gf.call(hf(this)):hf(this),arguments)},y(function(){return[1,2].toLocaleString()!=new ff([1,2]).toLocaleString()})||!y(function(){ff.prototype.toLocaleString.call([1,2])}));var Tr=ho.exportTypedArrayMethod,Wi=E.Uint8Array,xn=Wi&&Wi.prototype||{},mf=[].toString,vf=[].join;y(function(){mf.call({})})&&(mf=function t(){return vf.call(this)});var an=xn.toString!=mf;Tr("toString",mf,an);var bf=Bo.getWeakData,xf=dt.set,wf=dt.getterFor,Mf=Ue.find,kf=Ue.findIndex,jf=0,Af=function(t){return t.frozen||(t.frozen=new If)},If=function(){this.entries=[]},Tf=function(t,e){return Mf(t.entries,function(t){return t[0]===e})};If.prototype={get:function(t){var t=Tf(this,t);if(t)return t[1]},has:function(t){return!!Tf(this,t)},set:function(t,e){var n=Tf(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(e){var t=kf(this.entries,function(t){return t[0]===e});return~t&&this.entries.splice(t,1),!!~t}};var Nf={getConstructor:function(t,n,r,i){var o=t(function(t,e){_i(t,o,n),xf(t,{type:n,id:jf++,frozen:void 0}),null!=e&&Zn(e,t[i],{that:t,AS_ENTRIES:r})}),a=wf(n),s=function(t,e,n){var r=a(t),i=bf(A(e),!0);return!0===i?Af(r).set(e,n):i[r.id]=n,t};return gi(o.prototype,{delete:function(t){var e=a(this);if(!L(t))return!1;var n=bf(t);return!0===n?Af(e).delete(t):n&&C(n,e.id)&&delete n[e.id]},has:function t(e){var n=a(this);if(!L(e))return!1;var r=bf(e);return!0===r?Af(n).has(e):r&&C(r,n.id)}}),gi(o.prototype,r?{get:function t(e){var n=a(this);if(L(e)){var r=bf(e);return!0===r?Af(n).get(e):r?r[n.id]:void 0}},set:function t(e,n){return s(this,e,n)}}:{add:function t(e){return s(this,e,!0)}}),o}},zf=n(function(t){var i=dt.enforce,e=!E.ActiveXObject&&"ActiveXObject"in E,o=Object.isExtensible,a,n=function(e){return function t(){return e(this,arguments.length?arguments[0]:void 0)}},t=t.exports=qo("WeakMap",n,Nf),t,r,s,l,c;H&&e&&(a=Nf.getConstructor(n,"WeakMap",!0),Bo.REQUIRED=!0,t=t.prototype,r=t.delete,s=t.has,l=t.get,c=t.set,gi(t,{delete:function(t){if(!L(t)||o(t))return r.call(this,t);var e=i(this);return e.frozen||(e.frozen=new a),r.call(this,t)||e.frozen.delete(t)},has:function t(e){if(!L(e)||o(e))return s.call(this,e);var n=i(this);return n.frozen||(n.frozen=new a),s.call(this,e)||n.frozen.has(e)},get:function t(e){if(!L(e)||o(e))return l.call(this,e);var n=i(this);return n.frozen||(n.frozen=new a),s.call(this,e)?l.call(this,e):n.frozen.get(e)},set:function t(e,n){var r;return L(e)&&!o(e)?((r=i(this)).frozen||(r.frozen=new a),s.call(this,e)?c.call(this,e,n):r.frozen.set(e,n)):c.call(this,e,n),this}}))});qo("WeakSet",function(e){return function t(){return e(this,arguments.length?arguments[0]:void 0)}},Nf);var Ef={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Sf;for(Sf in Ef){var Lf=E[Sf],Lf=Lf&&Lf.prototype;if(Lf&&Lf.forEach!==hr)try{R(Lf,"forEach",hr)}catch(t){Lf.forEach=hr}}var Df=Ae("iterator"),Cf=Ae("toStringTag"),Of=Zr.values,Pf;for(Pf in Ef){var Rf=E[Pf],Yf=Rf&&Rf.prototype;if(Yf){if(Yf[Df]!==Of)try{R(Yf,Df,Of)}catch(t){Yf[Df]=Of}if(Yf[Cf]||R(Yf,Cf,Pf),Ef[Pf])for(var Uf in Zr)if(Yf[Uf]!==Zr[Uf])try{R(Yf,Uf,Zr[Uf])}catch(t){Yf[Uf]=Zr[Uf]}}}var it=!E.setImmediate||!E.clearImmediate;Ht({global:!0,bind:!0,enumerable:!0,forced:it},{setImmediate:vr.set,clearImmediate:vr.clear});var Bf=E.process;Ht({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function t(e){var n=Gt&&Bf.domain;al(n?n.bind(e):e)}});var Ff=[].slice,Vt=/MSIE .\./.test(Qt),qt=function(i){return function(t,e){var n=2<arguments.length,r=n?Ff.call(arguments,2):void 0;return i(n?function(){("function"==typeof t?t:Function(t)).apply(this,r)}:t,e)}};Ht({global:!0,bind:!0,forced:Vt},{setTimeout:qt(E.setTimeout),setInterval:qt(E.setInterval)});var Zf=Ae("iterator"),Z=!y(function(){var t=new URL("b?a=1&b=2&c=3","http://a"),n=t.searchParams,r="";return t.pathname="c%20d",n.forEach(function(t,e){n.delete("b"),r+=e+t}),!n.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==n.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!n[Zf]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}),Hf=2147483647,Gf=36,Qf=1,qf=26,Vf=38,Wf=700,$f=72,Xf=128,Jf="-",Kf=/[^\0-\u007E]/,th=/[.\u3002\uFF0E\uFF61]/g,eh="Overflow: input needs wider integers to process",nh=35,rh=Math.floor,ih=String.fromCharCode,oh=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++),o;55296<=i&&i<=56319&&n<r?56320==(64512&(o=t.charCodeAt(n++)))?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),n--):e.push(i)}return e},ah=function(t){return t+22+75*(t<26)},sh=function(t,e,n){var r=0;for(t=n?rh(t/Wf):t>>1,t+=rh(t/e);455<t;r+=36)t=rh(t/35);return rh(r+36*t/(t+38))},lh=function(t){var e=[],n=(t=oh(t)).length,r=Xf,i=0,o=72,a,s;for(a=0;a<t.length;a++)(s=t[a])<128&&e.push(ih(s));var l=e.length,c=l;for(l&&e.push(Jf);c<n;){for(var u=Hf,a=0;a<t.length;a++)r<=(s=t[a])&&s<u&&(u=s);var d=c+1;if(u-r>rh((Hf-i)/d))throw RangeError(eh);for(i+=(u-r)*d,r=u,a=0;a<t.length;a++){if((s=t[a])<r&&++i>Hf)throw RangeError(eh);if(s==r){for(var f=i,h=36;;h+=36){var p=h<=o?1:o+26<=h?26:h-o;if(f<p)break;var g=f-p,_=36-p;e.push(ih(ah(p+g%_))),f=rh(g/_)}e.push(ih(ah(f))),o=sh(i,d,c==l),i=0,++c}}++i,++r}return e.join("")},ch=function(t){for(var e=[],n=t.toLowerCase().replace(th,".").split("."),r,i,r=0;r<n.length;r++)i=n[r],e.push(Kf.test(i)?"xn--"+lh(i):i);return e.join(".")},uh=function(t){var e=Un(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return A(e.call(t))},dh=gt("fetch"),fh=gt("Headers"),yn=Ae("iterator"),hh="URLSearchParams",ph=hh+"Iterator",gh=dt.set,_h=dt.getterFor(hh),yh=dt.getterFor(ph),mh=/\+/g,vh=Array(4),bh=function(t){return vh[t-1]||(vh[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},xh=function(e){try{return decodeURIComponent(e)}catch(t){return e}},wh=function(t){var e=t.replace(mh," "),n=4;try{return decodeURIComponent(e)}catch(t){for(;n;)e=e.replace(bh(n--),xh);return e}},Mh=/[!'()~]|%20/g,kh={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},jh=function(t){return kh[t]},Ah=function(t){return encodeURIComponent(t).replace(Mh,jh)},Ih=function(t,e){if(e)for(var n=e.split("&"),r=0,i,i;r<n.length;)(i=n[r++]).length&&(i=i.split("="),t.push({key:wh(i.shift()),value:wh(i.join("="))}))},Th=function(t){this.entries.length=0,Ih(this.entries,t)},Nh=function(t,e){if(t<e)throw TypeError("Not enough arguments")},zh=Er(function t(e,n){gh(this,{type:ph,iterator:uh(_h(e).entries),kind:n})},"Iterator",function t(){var e=yh(this),n=e.kind,r=e.iterator.next(),e=r.value;return r.done||(r.value="keys"===n?e.key:"values"===n?e.value:[e.key,e.value]),r}),Eh=function t(){_i(this,Eh,hh);var e=0<arguments.length?arguments[0]:void 0,n,r=[],i,o,a,s,l,c,s,u,d;if(gh(this,{type:hh,entries:r,updateURL:function(){},updateSearchParams:Th}),void 0!==e)if(L(e))if("function"==typeof(i=Un(e)))for(a=(o=i.call(e)).next;!(s=a.call(o)).done;){if((s=(c=(l=uh(A(s.value))).next).call(l)).done||(u=c.call(l)).done||!c.call(l).done)throw TypeError("Expected sequence with length 2");r.push({key:s.value+"",value:u.value+""})}else for(d in e)C(e,d)&&r.push({key:d,value:e[d]+""});else Ih(r,"string"==typeof e?"?"===e.charAt(0)?e.slice(1):e:e+"")},o=Eh.prototype;gi(o,{append:function t(e,n){Nh(arguments.length,2);var r=_h(this);r.entries.push({key:e+"",value:n+""}),r.updateURL()},delete:function(t){Nh(arguments.length,1);for(var e=_h(this),n=e.entries,r=t+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;e.updateURL()},get:function t(e){Nh(arguments.length,1);for(var n=_h(this).entries,r=e+"",i=0;i<n.length;i++)if(n[i].key===r)return n[i].value;return null},getAll:function t(e){Nh(arguments.length,1);for(var n=_h(this).entries,r=e+"",i=[],o=0;o<n.length;o++)n[o].key===r&&i.push(n[o].value);return i},has:function t(e){Nh(arguments.length,1);for(var n=_h(this).entries,r=e+"",i=0;i<n.length;)if(n[i++].key===r)return!0;return!1},set:function t(e,n){Nh(arguments.length,1);for(var r=_h(this),i=r.entries,o=!1,a=e+"",s=n+"",l=0,c;l<i.length;l++)(c=i[l]).key===a&&(o?i.splice(l--,1):(o=!0,c.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function t(){for(var e=_h(this),n=e.entries,r=n.slice(),i,o,a,a=n.length=0;a<r.length;a++){for(i=r[a],o=0;o<a;o++)if(n[o].key>i.key){n.splice(o,0,i);break}o===a&&n.push(i)}e.updateURL()},forEach:function t(e){for(var n=_h(this).entries,r=Ce(e,1<arguments.length?arguments[1]:void 0,3),i=0,o;i<n.length;)r((o=n[i++]).value,o.key,this)},keys:function t(){return new zh(this,"keys")},values:function t(){return new zh(this,"values")},entries:function t(){return new zh(this,"entries")}},{enumerable:!0}),ft(o,yn,o.entries),ft(o,"toString",function t(){for(var e=_h(this).entries,n=[],r=0,i;r<e.length;)i=e[r++],n.push(Ah(i.key)+"="+Ah(i.value));return n.join("&")},{enumerable:!0}),Le(Eh,hh),Ht({global:!0,forced:!Z},{URLSearchParams:Eh}),Z||"function"!=typeof dh||"function"!=typeof fh||Ht({global:!0,enumerable:!0,forced:!0},{fetch:function t(e){var n=[e],r,i,e;return 1<arguments.length&&(L(r=arguments[1])&&(i=r.body,Rn(i)===hh&&((e=r.headers?new fh(r.headers):new fh).has("content-type")||e.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),r=_e(r,{body:c(0,String(i)),headers:c(0,e)}))),n.push(r)),dh.apply(this,n)}});var te={URLSearchParams:Eh,getState:_h},Sh=ot.codeAt,Lh=E.URL,Dh=te.URLSearchParams,Ch=te.getState,Oh=dt.set,Ph=dt.getterFor("URL"),Rh=Math.floor,Yh=Math.pow,Uh="Invalid authority",Bh="Invalid scheme",Fh="Invalid host",Zh="Invalid port",Hh=/[A-Za-z]/,Gh=/[\d+-.A-Za-z]/,Qh=/\d/,qh=/^(0x|0X)/,Vh=/^[0-7]+$/,Wh=/^\d+$/,$h=/^[\dA-Fa-f]+$/,Xh=/[\0\t\n\r #%/:?@[\\]]/,Jh=/[\0\t\n\r #/:?@[\\]]/,Kh=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,tp=/[\t\n\r]/g,ep,np=function(t,e){var n,r,i;if("["==e.charAt(0))return"]"==e.charAt(e.length-1)&&(n=ip(e.slice(1,-1)))?void(t.host=n):Fh;if(hp(t))return e=ch(e),Xh.test(e)||null===(n=rp(e))?Fh:void(t.host=n);if(Jh.test(e))return Fh;for(n="",r=gr(e),i=0;i<r.length;i++)n+=dp(r[i],sp);t.host=n},rp=function(t){var e=t.split("."),n,r,i,o,a,s,l;if(e.length&&""==e[e.length-1]&&e.pop(),4<(n=e.length))return t;for(r=[],i=0;i<n;i++){if(""==(o=e[i]))return t;if(a=10,1<o.length&&"0"==o.charAt(0)&&(a=qh.test(o)?16:8,o=o.slice(8==a?1:2)),""===o)s=0;else{if(!(10==a?Wh:8==a?Vh:$h).test(o))return t;s=parseInt(o,a)}r.push(s)}for(i=0;i<n;i++)if(s=r[i],i==n-1){if(s>=Yh(256,5-n))return null}else if(255<s)return null;for(l=r.pop(),i=0;i<r.length;i++)l+=r[i]*Yh(256,3-i);return l},ip=function(t){var e=[0,0,0,0,0,0,0,0],n=0,r=null,i=0,o,a,s,l,c,u,d,f=function(){return t.charAt(i)};if(":"==f()){if(":"!=t.charAt(1))return;i+=2,r=++n}for(;f();){if(8==n)return;if(":"!=f()){for(o=a=0;a<4&&$h.test(f());)o=16*o+parseInt(f(),16),i++,a++;if("."==f()){if(0==a)return;if(i-=a,6<n)return;for(s=0;f();){if(l=null,0<s){if(!("."==f()&&s<4))return;i++}if(!Qh.test(f()))return;for(;Qh.test(f());){if(c=parseInt(f(),10),null===l)l=c;else{if(0==l)return;l=10*l+c}if(255<l)return;i++}e[n]=256*e[n]+l,2!=++s&&4!=s||n++}if(4!=s)return;break}if(":"==f()){if(i++,!f())return}else if(f())return;e[n++]=o}else{if(null!==r)return;i++,r=++n}}if(null!==r)for(u=n-r,n=7;0!=n&&0<u;)d=e[n],e[n--]=e[r+u-1],e[r+--u]=d;else if(8!=n)return;return e},op=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(n<i&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return n<i&&(e=r,n=i),e},ap=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=Rh(t/256);return e.join(".")}if("object"!=typeof t)return t;for(e="",r=op(t),n=0;n<8;n++)i&&0===t[n]||(i=i&&!1,r===n?(e+=n?":":"::",i=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"},sp={},lp=Pt({},sp,{" ":1,'"':1,"<":1,">":1,"`":1}),cp=Pt({},lp,{"#":1,"?":1,"{":1,"}":1}),up=Pt({},cp,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),dp=function(t,e){var n=Sh(t,0);return 32<n&&n<127&&!C(e,t)?t:encodeURIComponent(t)},fp={ftp:21,file:null,http:80,https:443,ws:80,wss:443},hp=function(t){return C(fp,t.scheme)},pp=function(t){return""!=t.username||""!=t.password},gp=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},_p=function(t,e){var t;return 2==t.length&&Hh.test(t.charAt(0))&&(":"==(t=t.charAt(1))||!e&&"|"==t)},yp=function(t){var e;return 1<t.length&&_p(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},mp=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&_p(e[0],!0)||e.pop()},vp=function(t){return"."===t||"%2e"===t.toLowerCase()},bp=function(t){return".."===(t=t.toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t},xp={},wp={},Mp={},kp={},jp={},Ap={},Ip={},Tp={},Np={},zp={},Ep={},Sp={},Lp={},Dp={},Cp={},Op={},Pp={},Rp={},Yp={},Up={},Bp={},Fp=function(t,e,n,r){var i=n||xp,o=0,a="",s=!1,l=!1,c=!1,u,d,f,h;for(n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(Kh,"")),e=e.replace(tp,""),u=gr(e);o<=u.length;){switch(d=u[o],i){case xp:if(!d||!Hh.test(d)){if(n)return Bh;i=Mp;continue}a+=d.toLowerCase(),i=wp;break;case wp:if(d&&(Gh.test(d)||"+"==d||"-"==d||"."==d))a+=d.toLowerCase();else{if(":"!=d){if(n)return Bh;a="",i=Mp,o=0;continue}if(n&&(hp(t)!=C(fp,a)||"file"==a&&(pp(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=a,n)return void(hp(t)&&fp[t.scheme]==t.port&&(t.port=null));a="","file"==t.scheme?i=Dp:hp(t)&&r&&r.scheme==t.scheme?i=kp:hp(t)?i=Tp:"/"==u[o+1]?(i=jp,o++):(t.cannotBeABaseURL=!0,t.path.push(""),i=Yp)}break;case Mp:if(!r||r.cannotBeABaseURL&&"#"!=d)return Bh;if(r.cannotBeABaseURL&&"#"==d){t.scheme=r.scheme,t.path=r.path.slice(),t.query=r.query,t.fragment="",t.cannotBeABaseURL=!0,i=Bp;break}i="file"==r.scheme?Dp:Ap;continue;case kp:if("/"!=d||"/"!=u[o+1]){i=Ap;continue}i=Np,o++;break;case jp:if("/"==d){i=zp;break}i=Rp;continue;case Ap:if(t.scheme=r.scheme,d==ep)t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.query=r.query;else if("/"==d||"\\"==d&&hp(t))i=Ip;else if("?"==d)t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.query="",i=Up;else{if("#"!=d){t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.path.pop(),i=Rp;continue}t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.query=r.query,t.fragment="",i=Bp}break;case Ip:if(!hp(t)||"/"!=d&&"\\"!=d){if("/"!=d){t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,i=Rp;continue}i=zp}else i=Np;break;case Tp:if(i=Np,"/"!=d||"/"!=a.charAt(o+1))continue;o++;break;case Np:if("/"==d||"\\"==d)break;i=zp;continue;case zp:if("@"==d){s&&(a="%40"+a);for(var s=!0,f=gr(a),p=0;p<f.length;p++){var g=f[p],g;":"!=g||c?(g=dp(g,up),c?t.password+=g:t.username+=g):c=!0}a=""}else if(d==ep||"/"==d||"?"==d||"#"==d||"\\"==d&&hp(t)){if(s&&""==a)return Uh;o-=gr(a).length+1,a="",i=Ep}else a+=d;break;case Ep:case Sp:if(n&&"file"==t.scheme){i=Op;continue}if(":"!=d||l){if(d==ep||"/"==d||"?"==d||"#"==d||"\\"==d&&hp(t)){if(hp(t)&&""==a)return Fh;if(n&&""==a&&(pp(t)||null!==t.port))return;if(h=np(t,a))return h;if(a="",i=Pp,n)return;continue}"["==d?l=!0:"]"==d&&(l=!1),a+=d}else{if(""==a)return Fh;if(h=np(t,a))return h;if(a="",i=Lp,n==Sp)return}break;case Lp:if(!Qh.test(d)){if(d==ep||"/"==d||"?"==d||"#"==d||"\\"==d&&hp(t)||n){if(""!=a){var _=parseInt(a,10);if(65535<_)return Zh;t.port=hp(t)&&_===fp[t.scheme]?null:_,a=""}if(n)return;i=Pp;continue}return Zh}a+=d;break;case Dp:if(t.scheme="file","/"==d||"\\"==d)i=Cp;else{if(!r||"file"!=r.scheme){i=Rp;continue}if(d==ep)t.host=r.host,t.path=r.path.slice(),t.query=r.query;else if("?"==d)t.host=r.host,t.path=r.path.slice(),t.query="",i=Up;else{if("#"!=d){yp(u.slice(o).join(""))||(t.host=r.host,t.path=r.path.slice(),mp(t)),i=Rp;continue}t.host=r.host,t.path=r.path.slice(),t.query=r.query,t.fragment="",i=Bp}}break;case Cp:if("/"==d||"\\"==d){i=Op;break}r&&"file"==r.scheme&&!yp(u.slice(o).join(""))&&(_p(r.path[0],!0)?t.path.push(r.path[0]):t.host=r.host),i=Rp;continue;case Op:if(d==ep||"/"==d||"\\"==d||"?"==d||"#"==d){if(!n&&_p(a))i=Rp;else if(""==a){if(t.host="",n)return;i=Pp}else{if(h=np(t,a))return h;if("localhost"==t.host&&(t.host=""),n)return;a="",i=Pp}continue}a+=d;break;case Pp:if(hp(t)){if(i=Rp,"/"!=d&&"\\"!=d)continue}else if(n||"?"!=d)if(n||"#"!=d){if(d!=ep&&(i=Rp,"/"!=d))continue}else t.fragment="",i=Bp;else t.query="",i=Up;break;case Rp:if(d==ep||"/"==d||"\\"==d&&hp(t)||!n&&("?"==d||"#"==d)){if(bp(a)?(mp(t),"/"==d||"\\"==d&&hp(t)||t.path.push("")):vp(a)?"/"==d||"\\"==d&&hp(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&_p(a)&&(t.host&&(t.host=""),a=a.charAt(0)+":"),t.path.push(a)),a="","file"==t.scheme&&(d==ep||"?"==d||"#"==d))for(;1<t.path.length&&""===t.path[0];)t.path.shift();"?"==d?(t.query="",i=Up):"#"==d&&(t.fragment="",i=Bp)}else a+=dp(d,cp);break;case Yp:"?"==d?(t.query="",i=Up):"#"==d?(t.fragment="",i=Bp):d!=ep&&(t.path[0]+=dp(d,sp));break;case Up:n||"#"!=d?d!=ep&&("'"==d&&hp(t)?t.query+="%27":t.query+="#"==d?"%23":dp(d,sp)):(t.fragment="",i=Bp);break;case Bp:d!=ep&&(t.fragment+=dp(d,lp))}o++}},Zp=function t(e){var n=_i(this,Zp,"URL"),r=1<arguments.length?arguments[1]:void 0,e=String(e),i=Oh(n,{type:"URL"}),o,a;if(void 0!==r)if(r instanceof Zp)o=Ph(r);else if(a=Fp(o={},String(r)))throw TypeError(a);if(a=Fp(i,e,null,o))throw TypeError(a);var s=i.searchParams=new Dh,a=Ch(s);a.updateSearchParams(i.query),a.updateURL=function(){i.query=String(s)||null},S||(n.href=Hp.call(n),n.origin=Gp.call(n),n.protocol=Qp.call(n),n.username=qp.call(n),n.password=Vp.call(n),n.host=Wp.call(n),n.hostname=$p.call(n),n.port=Xp.call(n),n.pathname=Jp.call(n),n.search=Kp.call(n),n.searchParams=tg.call(n),n.hash=eg.call(n))},tt=Zp.prototype,Hp=function(){var t=Ph(this),e=t.scheme,n=t.username,r=t.password,i=t.host,o=t.port,a=t.path,s=t.query,l=t.fragment,c=e+":";return null!==i?(c+="//",pp(t)&&(c+=n+(r?":"+r:"")+"@"),c+=ap(i),null!==o&&(c+=":"+o)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},Gp=function(){var t=Ph(this),e=t.scheme,n=t.port;if("blob"==e)try{return new Zp(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&hp(t)?e+"://"+ap(t.host)+(null!==n?":"+n:""):"null"},Qp=function(){return Ph(this).scheme+":"},qp=function(){return Ph(this).username},Vp=function(){return Ph(this).password},Wp=function(){var t=Ph(this),e=t.host,t=t.port;return null===e?"":null===t?ap(e):ap(e)+":"+t},$p=function(){var t=Ph(this).host;return null===t?"":ap(t)},Xp=function(){var t=Ph(this).port;return null===t?"":String(t)},Jp=function(){var t=Ph(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Kp=function(){var t=Ph(this).query;return t?"?"+t:""},tg=function(){return Ph(this).searchParams},eg=function(){var t=Ph(this).fragment;return t?"#"+t:""},Ou=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}},ng,rg;function ig(t){return(ig="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function og(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ag(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sg(t,e,n){return e&&ag(t.prototype,e),n&&ag(t,n),t}function lg(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ug(t,e)}function cg(t){return(cg=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)})(t)}function ug(t,e){return(ug=Object.setPrototypeOf||function t(e,n){return e.__proto__=n,e})(t,e)}function dg(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function fg(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hg(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?fg(t):e}function pg(i){var o=dg();return function t(){var e=cg(i),n,r,n;return hg(this,n=o?(r=cg(this).constructor,Reflect.construct(e,arguments,r)):e.apply(this,arguments))}}function gg(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=cg(t)););return t}function _g(t,e,n){return(_g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function t(e,n,r){var e=gg(e,n);if(e){var n=Object.getOwnPropertyDescriptor(e,n);return n.get?n.get.call(r):n.value}})(t,e,n||t)}function yg(t,e){return bg(t)||wg(t,e)||Mg(t,e)||Ag()}function mg(t){return vg(t)||xg(t)||Mg(t)||jg()}function vg(t){if(Array.isArray(t))return kg(t)}function bg(t){if(Array.isArray(t))return t}function xg(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function wg(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(r.push(a.value),!e||r.length!==e);i=!0);}catch(t){o=!0,s=t}finally{try{i||null==n.return||n.return()}finally{if(o)throw s}}return r}}function Mg(t,e){if(t){if("string"==typeof t)return kg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kg(t,e):void 0}}function kg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jg(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ag(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ig(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Mg(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,e=function(){};return{s:e,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i=!0,o=!1,a;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){o=!0,a=t},f:function(){try{i||null==n.return||n.return()}finally{if(o)throw a}}}}S&&re(tt,{href:Ou(Hp,function(t){var e=Ph(this),t=String(t),t=Fp(e,t);if(t)throw TypeError(t);Ch(e.searchParams).updateSearchParams(e.query)}),origin:Ou(Gp),protocol:Ou(Qp,function(t){var e=Ph(this);Fp(e,String(t)+":",xp)}),username:Ou(qp,function(t){var e=Ph(this),n=gr(String(t));if(!gp(e)){e.username="";for(var r=0;r<n.length;r++)e.username+=dp(n[r],up)}}),password:Ou(Vp,function(t){var e=Ph(this),n=gr(String(t));if(!gp(e)){e.password="";for(var r=0;r<n.length;r++)e.password+=dp(n[r],up)}}),host:Ou(Wp,function(t){var e=Ph(this);e.cannotBeABaseURL||Fp(e,String(t),Ep)}),hostname:Ou($p,function(t){var e=Ph(this);e.cannotBeABaseURL||Fp(e,String(t),Sp)}),port:Ou(Xp,function(t){var e=Ph(this);gp(e)||(""==(t=String(t))?e.port=null:Fp(e,t,Lp))}),pathname:Ou(Jp,function(t){var e=Ph(this);e.cannotBeABaseURL||(e.path=[],Fp(e,t+"",Pp))}),search:Ou(Kp,function(t){var e=Ph(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",Fp(e,t,Up)),Ch(e.searchParams).updateSearchParams(e.query)}),searchParams:Ou(tg),hash:Ou(eg,function(t){var e=Ph(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",Fp(e,t,Bp)):e.fragment=null})}),ft(tt,"toJSON",function t(){return Hp.call(this)},{enumerable:!0}),ft(tt,"toString",function t(){return Hp.call(this)},{enumerable:!0}),Lh&&(ng=Lh.createObjectURL,rg=Lh.revokeObjectURL,ng&&ft(Zp,"createObjectURL",function t(e){return ng.apply(Lh,arguments)}),rg&&ft(Zp,"revokeObjectURL",function t(e){return rg.apply(Lh,arguments)})),Le(Zp,"URL"),Ht({global:!0,forced:!Z,sham:!S},{URL:Zp}),Ht({target:"URL",proto:!0,enumerable:!0},{toJSON:function t(){return URL.prototype.toString.call(this)}});var Tg=n(function(e){var e=function(a){var t=Object.prototype,c=t.hasOwnProperty,u,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function t(e,n,r){return e[n]=r}}function s(t,e,n,r){var e=e&&e.prototype instanceof l?e:l,e=Object.create(e.prototype),r=new I(r||[]);return e._invoke=M(t,n,r),e}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var f="suspendedStart",h="suspendedYield",p="executing",g="completed",_={};function l(){}function y(){}function m(){}var v={};v[r]=function(){return this};var e=Object.getPrototypeOf,e=e&&e(e(T([])));e&&e!==t&&c.call(e,r)&&(v=e);var b=m.prototype=l.prototype=Object.create(v);function x(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function w(o,a){function s(t,e,n,r){var t=d(o[t],o,e);if("throw"!==t.type){var i=t.arg,e=i.value;return e&&"object"===ig(e)&&c.call(e,"__await")?a.resolve(e.__await).then(function(t){s("next",t,n,r)},function(t){s("throw",t,n,r)}):a.resolve(e).then(function(t){i.value=t,n(i)},function(t){return s("throw",t,n,r)})}r(t.arg)}var e;function t(n,r){function t(){return new a(function(t,e){s(n,r,t,e)})}return e=e?e.then(t,t):t()}this._invoke=t}function M(o,a,s){var l=f;return function t(e,n){if(l===p)throw new Error("Generator is already running");if(l===g){if("throw"===e)throw n;return N()}for(s.method=e,s.arg=n;;){var r=s.delegate;if(r){var i=k(r,s);if(i){if(i===_)continue;return i}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(l===f)throw l=g,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);l=p;var i=d(o,a,s);if("normal"===i.type){if(l=s.done?g:h,i.arg!==_)return{value:i.arg,done:s.done}}else"throw"===i.type&&(l=g,s.method="throw",s.arg=i.arg)}}}function k(t,e){var n=t.iterator[e.method];if(n===u){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=u,k(t,e),"throw"===e.method))return _;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return _}var n=d(n,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,_;var n=n.arg;return n?n.done?(e[t.resultName]=n.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=u),e.delegate=null,_):n:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,_)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,t=function t(){for(;++n<e.length;)if(c.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=u,t.done=!0,t};return t.next=t}}return{next:N}}function N(){return{value:u,done:!0}}return((y.prototype=b.constructor=m).constructor=y).displayName=o(m,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){var t="function"==typeof t&&t.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,o(t,i,"GeneratorFunction")),t.prototype=Object.create(b),t},a.awrap=function(t){return{__await:t}},x(w.prototype),w.prototype[n]=function(){return this},a.AsyncIterator=w,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new w(s(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},x(b),o(b,i,"Generator"),b[r]=function(){return this},b.toString=function(){return"[object Generator]"},a.keys=function(n){var r=[],t;for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=T,I.prototype={constructor:I,reset:function t(e){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(A),!e)for(var n in this)"t"===n.charAt(0)&&c.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=u)},stop:function t(){this.done=!0;var e,n=this.tryEntries[0].completion;if("throw"===n.type)throw n.arg;return this.rval},dispatchException:function t(n){if(this.done)throw n;var r=this;function e(t,e){return a.type="throw",a.arg=n,r.next=t,e&&(r.method="next",r.arg=u),!!e}for(var i=this.tryEntries.length-1;0<=i;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var s=c.call(o,"catchLoc"),l=c.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function t(e,n){for(var r=this.tryEntries.length-1;0<=r;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&c.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}var a=(o=o&&("break"===e||"continue"===e)&&o.tryLoc<=n&&n<=o.finallyLoc?null:o)?o.completion:{};return a.type=e,a.arg=n,o?(this.method="next",this.next=o.finallyLoc,_):this.complete(a)},complete:function t(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),_},finish:function t(e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),_}},catch:function t(e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc===e){var i=r.completion,o;return"throw"===i.type&&(o=i.arg,A(r)),o}}throw new Error("illegal catch attempt")},delegateYield:function t(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=u),_}},a}(e.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}),Ng="http://www.w3.org/1999/xhtml",zg={svg:"http://www.w3.org/2000/svg",xhtml:Ng,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Eg(t){var e=t+="",n=e.indexOf(":");return 0<=n&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),zg.hasOwnProperty(e)?{space:zg[e],local:t}:t}function Sg(n){return function(){var t=this.ownerDocument,e=this.namespaceURI;return e===Ng&&t.documentElement.namespaceURI===Ng?t.createElement(n):t.createElementNS(e,n)}}function Lg(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Dg(t){var t=Eg(t);return(t.local?Lg:Sg)(t)}function Cg(){}function Og(t){return null==t?Cg:function(){return this.querySelector(t)}}function Pg(t){"function"!=typeof t&&(t=Og(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=new Array(a),l,c,u=0;u<a;++u)(l=o[u])&&(c=t.call(l,l.__data__,u,o))&&("__data__"in l&&(c.__data__=l.__data__),s[u]=c);return new _y(r,this._parents)}function Rg(){return[]}function Yg(t){return null==t?Rg:function(){return this.querySelectorAll(t)}}function Ug(t){"function"!=typeof t&&(t=Yg(t));for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a=e[o],s=a.length,l,c=0;c<s;++c)(l=a[c])&&(r.push(t.call(l,l.__data__,c,a)),i.push(l));return new _y(r,i)}function Bg(t){return function(){return this.matches(t)}}function Fg(t){"function"!=typeof t&&(t=Bg(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=[],l,c=0;c<a;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&s.push(l);return new _y(r,this._parents)}function Zg(t){return new Array(t.length)}function Hg(){return new _y(this._enter||this._groups.map(Zg),this._parents)}function Gg(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Qg(t){return function(){return t}}Gg.prototype={constructor:Gg,appendChild:function t(e){return this._parent.insertBefore(e,this._next)},insertBefore:function t(e,n){return this._parent.insertBefore(e,n)},querySelector:function t(e){return this._parent.querySelector(e)},querySelectorAll:function t(e){return this._parent.querySelectorAll(e)}};var qg="$";function Vg(t,e,n,r,i,o){for(var a=0,s,l=e.length,c=o.length;a<c;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new Gg(t,o[a]);for(;a<l;++a)(s=e[a])&&(i[a]=s)}function Wg(t,e,n,r,i,o,a){for(var s,l,c={},u=e.length,d=o.length,f=new Array(u),h,s=0;s<u;++s)(l=e[s])&&(f[s]=h=qg+a.call(l,l.__data__,s,e),h in c?i[s]=l:c[h]=l);for(s=0;s<d;++s)(l=c[h=qg+a.call(t,o[s],s,o)])?((r[s]=l).__data__=o[s],c[h]=null):n[s]=new Gg(t,o[s]);for(s=0;s<u;++s)(l=e[s])&&c[f[s]]===l&&(i[s]=l)}function $g(t,e){if(!t)return h=new Array(this.size()),c=-1,this.each(function(t){h[++c]=t}),h;var n=e?Wg:Vg,r=this._parents,i=this._groups;"function"!=typeof t&&(t=Qg(t));for(var o=i.length,a=new Array(o),s=new Array(o),l=new Array(o),c=0;c<o;++c){var u=r[c],d=i[c],f=d.length,h=t.call(u,u&&u.__data__,c,r),p=h.length,g=s[c]=new Array(p),_=a[c]=new Array(p),y;n(u,d,g,_,l[c]=new Array(f),h,e);for(var m=0,v=0,b,x;m<p;++m)if(b=g[m]){for(v<=m&&(v=m+1);!(x=_[v])&&++v<p;);b._next=x||null}}return(a=new _y(a,r))._enter=s,a._exit=l,a}function Xg(){return new _y(this._exit||this._groups.map(Zg),this._parents)}function Jg(t,e,n){var r=this.enter(),i=this,o=this.exit(),r="function"==typeof t?t(r):r.append(t+"");return null!=e&&(i=e(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i}function Kg(t){for(var e=this._groups,n=t._groups,r=e.length,t=n.length,i=Math.min(r,t),o=new Array(r),a=0;a<i;++a)for(var s=e[a],l=n[a],c=s.length,u=o[a]=new Array(c),d,f=0;f<c;++f)(d=s[f]||l[f])&&(u[f]=d);for(;a<r;++a)o[a]=e[a];return new _y(o,this._parents)}function t_(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],a;0<=--i;)(a=r[i])&&(o&&4^a.compareDocumentPosition(o)&&o.parentNode.insertBefore(a,o),o=a);return this}function e_(n){function t(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}n=n||n_;for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a=e[o],s=a.length,l=i[o]=new Array(s),c,u=0;u<s;++u)(c=a[u])&&(l[u]=c);l.sort(t)}return new _y(i,this._parents).order()}function n_(t,e){return t<e?-1:e<t?1:e<=t?0:NaN}function r_(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function i_(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t}function o_(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function a_(){var t=0;return this.each(function(){++t}),t}function s_(){return!this.node()}function l_(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&t.call(s,s.__data__,o,i);return this}function c_(t){return function(){this.removeAttribute(t)}}function u_(t){return function(){this.removeAttributeNS(t.space,t.local)}}function d_(t,e){return function(){this.setAttribute(t,e)}}function f_(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function h_(e,n){return function(){var t=n.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}}function p_(e,n){return function(){var t=n.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}function g_(t,e){var n=Eg(t);if(arguments.length<2){var t=this.node();return n.local?t.getAttributeNS(n.space,n.local):t.getAttribute(n)}return this.each((null==e?n.local?u_:c_:"function"==typeof e?n.local?p_:h_:n.local?f_:d_)(n,e))}function __(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function y_(t){return function(){this.style.removeProperty(t)}}function m_(t,e,n){return function(){this.style.setProperty(t,e,n)}}function v_(e,n,r){return function(){var t=n.apply(this,arguments);null==t?this.style.removeProperty(e):this.style.setProperty(e,t,r)}}function b_(t,e,n){return 1<arguments.length?this.each((null==e?y_:"function"==typeof e?v_:m_)(t,e,null==n?"":n)):x_(this.node(),t)}function x_(t,e){return t.style.getPropertyValue(e)||__(t).getComputedStyle(t,null).getPropertyValue(e)}function w_(t){return function(){delete this[t]}}function M_(t,e){return function(){this[t]=e}}function k_(e,n){return function(){var t=n.apply(this,arguments);null==t?delete this[e]:this[e]=t}}function j_(t,e){return 1<arguments.length?this.each((null==e?w_:"function"==typeof e?k_:M_)(t,e)):this.node()[t]}function A_(t){return t.trim().split(/^|\s+/)}function I_(t){return t.classList||new T_(t)}function T_(t){this._node=t,this._names=A_(t.getAttribute("class")||"")}function N_(t,e){for(var n=I_(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function z_(t,e){for(var n=I_(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function E_(t){return function(){N_(this,t)}}function S_(t){return function(){z_(this,t)}}function L_(t,e){return function(){(e.apply(this,arguments)?N_:z_)(this,t)}}function D_(t,e){var n=A_(t+"");if(arguments.length<2){for(var r=I_(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?L_:e?E_:S_)(n,e))}function C_(){this.textContent=""}function O_(t){return function(){this.textContent=t}}function P_(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function R_(t){return arguments.length?this.each(null==t?C_:("function"==typeof t?P_:O_)(t)):this.node().textContent}function Y_(){this.innerHTML=""}function U_(t){return function(){this.innerHTML=t}}function B_(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function F_(t){return arguments.length?this.each(null==t?Y_:("function"==typeof t?B_:U_)(t)):this.node().innerHTML}function Z_(){this.nextSibling&&this.parentNode.appendChild(this)}function H_(){return this.each(Z_)}function G_(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Q_(){return this.each(G_)}function q_(t){var e="function"==typeof t?t:Dg(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function V_(){return null}function W_(t,e){var n="function"==typeof t?t:Dg(t),r=null==e?V_:"function"==typeof e?e:Og(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function $_(){var t=this.parentNode;t&&t.removeChild(this)}function X_(){return this.each($_)}function J_(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function K_(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ty(t){return this.select(t?K_:J_)}function ey(t){return arguments.length?this.property("__data__",t):this.node().__data__}T_.prototype={add:function t(e){var n;this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function t(e){var e=this._names.indexOf(e);0<=e&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function t(e){return 0<=this._names.indexOf(e)}};var ny={},ry=null,iy;function oy(n,t,e){return n=ay(n,t,e),function(t){var e=t.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||n.call(this,t)}}function ay(n,r,i){return function(t){var e=ry;ry=t;try{n.call(this,this.__data__,r,i)}finally{ry=e}}}function sy(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return 0<=n&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function ly(o){return function(){var t=this.__on;if(t){for(var e=0,n=-1,r=t.length,i;e<r;++e)i=t[e],o.type&&i.type!==o.type||i.name!==o.name?t[++n]=i:this.removeEventListener(i.type,i.listener,i.capture);++n?t.length=n:delete this.__on}}}function cy(l,c,u){var d=ny.hasOwnProperty(l.type)?oy:ay;return function(t,e,n){var r=this.__on,i,o=d(c,e,n);if(r)for(var a=0,s=r.length;a<s;++a)if((i=r[a]).type===l.type&&i.name===l.name)return this.removeEventListener(i.type,i.listener,i.capture),this.addEventListener(i.type,i.listener=o,i.capture=u),void(i.value=c);this.addEventListener(l.type,o,u),i={type:l.type,name:l.name,value:c,listener:o,capture:u},r?r.push(i):this.__on=[i]}}function uy(t,e,n){var r=sy(t+""),i,o=r.length,a;if(!(arguments.length<2)){for(s=e?cy:ly,null==n&&(n=!1),i=0;i<o;++i)this.each(s(r[i],e,n));return this}var s=this.node().__on;if(s)for(var l=0,c=s.length,u;l<c;++l)for(i=0,u=s[l];i<o;++i)if((a=r[i]).type===u.type&&a.name===u.name)return u.value}function dy(t,e,n){var r=__(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function fy(t,e){return function(){return dy(this,t,e)}}function hy(t,e){return function(){return dy(this,t,e.apply(this,arguments))}}function py(t,e){return this.each(("function"==typeof e?hy:fy)(t,e))}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ny={mouseenter:"mouseover",mouseleave:"mouseout"}));var gy=[null];function _y(t,e){this._groups=t,this._parents=e}function yy(){return new _y([[document.documentElement]],gy)}function my(t){return"string"==typeof t?new _y([[document.querySelector(t)]],[document.documentElement]):new _y([[t]],gy)}function vy(){for(var t=ry,e;e=t.sourceEvent;)t=e;return t}function by(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var r=t.getBoundingClientRect();return[e.clientX-r.left-t.clientLeft,e.clientY-r.top-t.clientTop]}function xy(t){var e=vy();return by(t,e=e.changedTouches?e.changedTouches[0]:e)}function wy(e,n){return Object.keys(n).forEach(function(t){void 0===e[t]&&(e[t]=n[t])}),e}_y.prototype=yy.prototype={constructor:_y,select:Pg,selectAll:Ug,filter:Fg,data:$g,enter:Hg,exit:Xg,join:Jg,merge:Kg,order:t_,sort:e_,call:r_,nodes:i_,node:o_,size:a_,empty:s_,each:l_,attr:g_,style:b_,property:j_,classed:D_,text:R_,html:F_,raise:H_,lower:Q_,append:q_,insert:W_,remove:X_,clone:ty,datum:ey,on:uy,dispatch:py};var My=Object.freeze({axis_position:"bottom",y_axis_position:"",numeric_scale_type:"linear",nice:!0,zero_axis:"auto",linear_min:null,linear_max:null,log_min:null,log_max:null,datetime_min:"",datetime_max:"",line_visible:!0,line_and_tick_color:"#eeeeee",line_and_tick_width:.1,tick_side:"out",tick_mode:"auto",tick_number:5,tick_custom:"",tick_length:.5,tick_padding:.25,edge_padding:50,tick_label_position:"default",tick_label_size:.9,tick_label_color:"#aaaaaa",tick_label_angle:"45",tick_label_weight:"normal",tick_label_space_mode:"auto",tick_label_space:10,tick_label_max_lines:2,tick_label_line_height:1.1,gridlines_visible:!1,gridline_color:"#eeeeee",gridline_width:.1,gridline_style:"solid",gridline_category_dividers:!1,gridline_category_dividers_extend:!1,title_mode:"auto",title:"",title_color:"#aaaaaa",title_size:1.1,title_weight:"normal",title_padding:.6}),ky=Object.freeze({axis_visible:!0,numeric_scale_type:"linear",nice:!0,zero_axis:"auto",linear_min:null,linear_max:null,log_min:null,log_max:null,datetime_min:"",datetime_max:"",line_visible:!0,line_and_tick_color:"#eeeeee",line_and_tick_width:.1,tick_side:"out",tick_mode:"auto",tick_number:5,tick_custom:"",tick_length:.5,tick_padding:.25,edge_padding:50,tick_label_position:"default",tick_label_size:.9,tick_label_color:"#aaaaaa",tick_label_angle:"0",tick_label_weight:"normal",tick_label_space_mode:"auto",tick_label_space:10,tick_label_max_lines:2,tick_label_line_height:1.1,gridlines_visible:!0,gridline_color:"#eeeeee",gridline_width:.1,gridline_style:"solid",gridline_category_dividers:!1,gridline_category_dividers_extend:!1,title_mode:"auto",title:"",title_color:"#aaaaaa",title_size:1.1,title_weight:"normal",title_padding:.6}),jy=Object.freeze(wy({axis_visible:!1},ky)),Ay=Object.freeze({background_color_enabled:!1,background_color:"#f5f5f5",background_image_enabled:!1,background_image_src:"",background_image_size:"stretch",background_image_position:"xMidYMid"});function Iy(t,e,n){t[e]||(t[e]={}),wy(t[e],n)}function Ty(t){var e=Iy.bind(null,t=t||{});return e("x",My),e("y",ky),e("y2",jy),e("background",Ay),t}function Ny(t){return"svg"===t.tagName.toLowerCase()}function zy(t){var n,n=t&&t.select&&t.selectAll?my(t.node()):my(t),r=n.node();if(!r)throw new Error("Chart layout instance must have a target");var i=Ny(r),e;return{container:n,getSvg:function t(){if(i)return n;for(var e=r.parentElement;e&&!Ny(e);)e=e.parentElement;if(!Ny(e))throw new Error("target must be an SVG or a descendant of an SVG");return my(e)}}}function Ey(t){var t=t.append("g").attr("class","fl-chart-background");t.append("rect").attr("class","fl-chart-fill"),t.append("image").attr("class","fl-chart-image"),t.append("rect").attr("class","fl-chart-interaction").style("opacity",0)}function Sy(t){var t=t.append("g").attr("class","fl-gridlines").style("pointer-events","none");t.append("g").attr("class","fl-gridlines-vertical"),t.append("g").attr("class","fl-gridlines-horizontal")}function Ly(t){var e=t.append("g").attr("class","fl-axes"),n=e.append("g").attr("class","fl-x-axes"),t=e.append("g").attr("class","fl-y-axes"),e=n.append("g").attr("class","fl-axis fl-x-axis fl-bottom-axis");e.append("g").attr("class","fl-axis-line"),e.append("g").attr("class","fl-axis-ticks"),e.append("g").attr("class","fl-axis-title");var n=n.append("g").attr("class","fl-axis fl-x-axis fl-top-axis");n.append("g").attr("class","fl-axis-line"),n.append("g").attr("class","fl-axis-ticks"),n.append("g").attr("class","fl-axis-title");var n=t.append("g").attr("class","fl-axis fl-y-axis fl-left-axis");n.append("g").attr("class","fl-axis-line"),n.append("g").attr("class","fl-axis-ticks"),n.append("g").attr("class","fl-axis-title");var t=t.append("g").attr("class","fl-axis fl-y-axis fl-right-axis");t.append("g").attr("class","fl-axis-line"),t.append("g").attr("class","fl-axis-ticks"),t.append("g").attr("class","fl-axis-title")}function Dy(t){var t=t.container.append("g").attr("class","fl-chart");return t.append("clipPath").attr("class","fl-data-clip-path").append("rect"),t.append("clipPath").attr("class","fl-grid-clip-path").append("rect"),Ey(t),t.append("g").attr("class","fl-data-background"),Sy(t),Ly(t),t.append("g").attr("class","fl-data-foreground"),t}var Cy=0;function Oy(e){var n="fl-chart-layout-"+Cy++;return function(t){return void 0===t?n:(n=t,e)}}var Py=Object.freeze({left:!0,top:!0,right:!0,bottom:!0}),Ry=Object.freeze({left:!1,top:!1,right:!1,bottom:!1});function Yy(e){var n=Py;return function(t){return void 0===t?n:(n=t?"object"!==ig(t)?Py:Object.freeze({left:!!t.left,top:!!t.top,right:!!t.right,bottom:!!t.bottom}):Ry,e)}}var Uy={value:function t(){}};function By(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Fy(n)}function Fy(t){this._=t}function Zy(t,r){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(0<=n&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}function Hy(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function Gy(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Uy,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Fy.prototype=By.prototype={constructor:Fy,on:function t(e,n){var r=this._,i=Zy(e+"",r),o,a=-1,s=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++a<s;)if(o=(e=i[a]).type)r[o]=Gy(r[o],e.name,n);else if(null==n)for(o in r)r[o]=Gy(r[o],e.name,null);return this}for(;++a<s;)if((o=(e=i[a]).type)&&(o=Hy(r[o],e.name)))return o},copy:function t(){var t={},e=this._,n;for(n in e)t[n]=e[n].slice();return new Fy(t)},call:function t(e,n){if(0<(o=arguments.length-2))for(var r=new Array(o),i=0,o,a;i<o;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=0,o=(a=this._[e]).length;i<o;++i)a[i].value.apply(n,r)},apply:function t(e,n,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,a=i.length;o<a;++o)i[o].value.apply(n,r)}};var Qy=0,qy=0,Vy=0,Wy=1e3,$y,Xy,Jy=0,Ky=0,tm=0,em="object"===("undefined"==typeof performance?"undefined":ig(performance))&&performance.now?performance:Date,nm="object"===("undefined"==typeof window?"undefined":ig(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function rm(){return Ky||(nm(im),Ky=em.now()+tm)}function im(){Ky=0}function om(){this._call=this._time=this._next=null}function am(t,e,n){var r=new om;return r.restart(t,e,n),r}function sm(){rm(),++Qy;for(var t=$y,e;t;)0<=(e=Ky-t._time)&&t._call.call(null,e),t=t._next;--Qy}function lm(){Ky=(Jy=em.now())+tm,Qy=qy=0;try{sm()}finally{Qy=0,um(),Ky=0}}function cm(){var t=em.now(),e=t-Jy;Wy<e&&(tm-=e,Jy=t)}function um(){for(var t,e=$y,n,r=1/0;e;)e=e._call?(r>e._time&&(r=e._time),(t=e)._next):(n=e._next,e._next=null,t?t._next=n:$y=n);Xy=t,dm(r)}function dm(t){var e;Qy||(qy=qy&&clearTimeout(qy),24<t-Ky?(t<1/0&&(qy=setTimeout(lm,t-em.now()-tm)),Vy=Vy&&clearInterval(Vy)):(Vy||(Jy=em.now(),Vy=setInterval(cm,Wy)),Qy=1,nm(lm)))}function fm(e,n,t){var r=new om;return r.restart(function(t){r.stop(),e(t+n)},n=null==n?0:+n,t),r}om.prototype=am.prototype={constructor:om,restart:function t(e,n,r){if("function"!=typeof e)throw new TypeError("callback is not a function");r=(null==r?rm():+r)+(null==n?0:+n),this._next||Xy===this||(Xy?Xy._next=this:$y=this,Xy=this),this._call=e,this._time=r,dm()},stop:function t(){this._call&&(this._call=null,this._time=1/0,dm())}};var hm=By("start","end","cancel","interrupt"),pm=[],gm=0,_m=1,ym=2,mm=3,vm=4,bm=5,xm=6;function wm(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};Am(t,n,{name:e,index:r,group:i,on:hm,tween:pm,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:gm})}function Mm(t,e){var e=jm(t,e);if(e.state>gm)throw new Error("too late; already scheduled");return e}function km(t,e){var e=jm(t,e);if(e.state>mm)throw new Error("too late; already running");return e}function jm(t,e){var t=t.__transition;if(!t||!(t=t[e]))throw new Error("transition not found");return t}function Am(o,a,s){var l=o.__transition,c;function t(t){s.state=_m,s.timer.restart(u,s.delay,s.time),s.delay<=t&&u(t-s.delay)}function u(t){var e,n,r,i;if(s.state!==_m)return f();for(e in l)if((i=l[e]).name===s.name){if(i.state===mm)return fm(u);i.state===vm?(i.state=xm,i.timer.stop(),i.on.call("interrupt",o,o.__data__,i.index,i.group),delete l[e]):+e<a&&(i.state=xm,i.timer.stop(),i.on.call("cancel",o,o.__data__,i.index,i.group),delete l[e])}if(fm(function(){s.state===mm&&(s.state=vm,s.timer.restart(d,s.delay,s.time),d(t))}),s.state=ym,s.on.call("start",o,o.__data__,s.index,s.group),s.state===ym){for(s.state=mm,c=new Array(r=s.tween.length),e=0,n=-1;e<r;++e)(i=s.tween[e].value.call(o,o.__data__,s.index,s.group))&&(c[++n]=i);c.length=n+1}}function d(t){for(var e=t<s.duration?s.ease.call(null,t/s.duration):(s.timer.restart(f),s.state=bm,1),n=-1,r=c.length;++n<r;)c[n].call(o,e);s.state===bm&&(s.on.call("end",o,o.__data__,s.index,s.group),f())}function f(){for(var t in s.state=xm,s.timer.stop(),delete l[a],l)return;delete o.__transition}(l[a]=s).timer=am(t,0,s.time)}function Im(t,e){var n=t.__transition,r,i,o=!0,a;if(n){for(a in e=null==e?null:e+"",n)(r=n[a]).name===e?(i=r.state>ym&&r.state<bm,r.state=xm,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[a]):o=!1;o&&delete t.__transition}}function Tm(t){return this.each(function(){Im(this,t)})}function Nm(t,e,n){(t.prototype=e.prototype=n).constructor=t}function zm(t,e){var n=Object.create(t.prototype),r;for(r in e)n[r]=e[r];return n}function Em(){}var Sm=.7,Lm=1/.7,Q="\\s*([+-]?\\d+)\\s*",X="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Dm=/^#([0-9a-f]{3,8})$/,Cm=new RegExp("^rgb\\("+[Q,Q,Q]+"\\)$"),Om=new RegExp("^rgb\\("+[Xt,Xt,Xt]+"\\)$"),Pm=new RegExp("^rgba\\("+[Q,Q,Q,X]+"\\)$"),Rm=new RegExp("^rgba\\("+[Xt,Xt,Xt,X]+"\\)$"),Ym=new RegExp("^hsl\\("+[X,Xt,Xt]+"\\)$"),Um=new RegExp("^hsla\\("+[X,Xt,Xt,X]+"\\)$"),Bm={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Fm(){return this.rgb().formatHex()}function Zm(){return ev(this).formatHsl()}function Hm(){return this.rgb().formatRgb()}function Gm(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Dm.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Qm(e):3===n?new $m(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?qm(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?qm(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Cm.exec(t))?new $m(e[1],e[2],e[3],1):(e=Om.exec(t))?new $m(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Pm.exec(t))?qm(e[1],e[2],e[3],e[4]):(e=Rm.exec(t))?qm(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ym.exec(t))?tv(e[1],e[2]/100,e[3]/100,1):(e=Um.exec(t))?tv(e[1],e[2]/100,e[3]/100,e[4]):Bm.hasOwnProperty(t)?Qm(Bm[t]):"transparent"===t?new $m(NaN,NaN,NaN,0):null}function Qm(t){return new $m(t>>16&255,t>>8&255,255&t,1)}function qm(t,e,n,r){return new $m(t=r<=0?e=n=NaN:t,e,n,r)}function Vm(t){return(t=t instanceof Em?t:Gm(t))?new $m((t=t.rgb()).r,t.g,t.b,t.opacity):new $m}function Wm(t,e,n,r){return 1===arguments.length?Vm(t):new $m(t,e,n,null==r?1:r)}function $m(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Xm(){return"#"+Km(this.r)+Km(this.g)+Km(this.b)}function Jm(){var t=this.opacity,t;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Km(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function tv(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||1<=n?t=e=NaN:e<=0&&(t=NaN),new rv(t,e,n,r)}function ev(t){if(t instanceof rv)return new rv(t.h,t.s,t.l,t.opacity);if(!(t=!(t instanceof Em)?Gm(t):t))return new rv;if(t instanceof rv)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=0<l&&l<1?0:a,new rv(a,s,l,t.opacity)}function nv(t,e,n,r){return 1===arguments.length?ev(t):new rv(t,e,n,null==r?1:r)}function rv(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function iv(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Nm(Em,Gm,{copy:function t(e){return Object.assign(new this.constructor,this,e)},displayable:function t(){return this.rgb().displayable()},hex:Fm,formatHex:Fm,formatHsl:Zm,formatRgb:Hm,toString:Hm}),Nm($m,Wm,zm(Em,{brighter:function t(e){return e=null==e?Lm:Math.pow(Lm,e),new $m(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function t(e){return e=null==e?.7:Math.pow(.7,e),new $m(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function t(){return this},displayable:function t(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xm,formatHex:Xm,formatRgb:Jm,toString:Jm})),Nm(rv,nv,zm(Em,{brighter:function t(e){return e=null==e?Lm:Math.pow(Lm,e),new rv(this.h,this.s,this.l*e,this.opacity)},darker:function t(e){return e=null==e?.7:Math.pow(.7,e),new rv(this.h,this.s,this.l*e,this.opacity)},rgb:function t(){var e=this.h%360+360*(this.h<0),n=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*n,r=2*r-n;return new $m(iv(240<=e?e-240:120+e,r,n),iv(e,r,n),iv(e<120?240+e:e-120,r,n),this.opacity)},displayable:function t(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function t(){var e=this.opacity,e;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var ov=Math.PI/180,av=180/Math.PI,sv=18,lv=.96422,cv=1,uv=.82521,dv=4/29,fv=6/29,hv=3*fv*fv,pv=fv*fv*fv;function gv(t){if(t instanceof yv)return new yv(t.l,t.a,t.b,t.opacity);if(t instanceof kv)return jv(t);var e=xv((t=!(t instanceof $m)?Vm(t):t).r),n=xv(t.g),r=xv(t.b),i=mv((.2225045*e+.7168786*n+.0606169*r)/cv),o,a;return e===n&&n===r?o=a=i:(o=mv((.4360747*e+.3850649*n+.1430804*r)/lv),a=mv((.0139322*e+.0971045*n+.7141733*r)/uv)),new yv(116*i-16,500*(o-i),200*(i-a),t.opacity)}function _v(t,e,n,r){return 1===arguments.length?gv(t):new yv(t,e,n,null==r?1:r)}function yv(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function mv(t){return pv<t?Math.pow(t,1/3):t/hv+dv}function vv(t){return fv<t?t*t*t:hv*(t-dv)}function bv(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function xv(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function wv(t){if(t instanceof kv)return new kv(t.h,t.c,t.l,t.opacity);if(0===(t=!(t instanceof yv)?gv(t):t).a&&0===t.b)return new kv(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*av;return new kv(e<0?360+e:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Mv(t,e,n,r){return 1===arguments.length?wv(t):new kv(t,e,n,null==r?1:r)}function kv(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function jv(t){if(isNaN(t.h))return new yv(t.l,0,0,t.opacity);var e=t.h*ov;return new yv(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Nm(yv,_v,zm(Em,{brighter:function t(e){return new yv(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function t(e){return new yv(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function t(){var e=(this.l+16)/116,n=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200,n,e,r;return new $m(bv(3.1338561*(n=lv*vv(n))-1.6168667*(e=cv*vv(e))-.4906146*(r=uv*vv(r))),bv(-.9787684*n+1.9161415*e+.033454*r),bv(.0719453*n-.2289914*e+1.4052427*r),this.opacity)}})),Nm(kv,Mv,zm(Em,{brighter:function t(e){return new kv(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function t(e){return new kv(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function t(){return jv(this).rgb()}}));var Av=-.14861,Iv=1.78277,Tv=-.29227,Nv=-.90649,zv=1.97294,Ev=zv*Nv,Sv=zv*Iv,Lv=Iv*Tv-Nv*Av;function Dv(t){if(t instanceof Ov)return new Ov(t.h,t.s,t.l,t.opacity);var e=(t=!(t instanceof $m)?Vm(t):t).r/255,n=t.g/255,r=t.b/255,i=(Lv*r+Ev*e-Sv*n)/(Lv+Ev-Sv),e=r-i,r=(zv*(n-i)-Tv*e)/Nv,n=Math.sqrt(r*r+e*e)/(zv*i*(1-i)),e=n?Math.atan2(r,e)*av-120:NaN;return new Ov(e<0?e+360:e,n,i,t.opacity)}function Cv(t,e,n,r){return 1===arguments.length?Dv(t):new Ov(t,e,n,null==r?1:r)}function Ov(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Pv(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function Rv(a){var s=a.length-1;return function(t){var e=t<=0?t=0:1<=t?s-(t=1):Math.floor(t*s),n=a[e],r=a[e+1],i=0<e?a[e-1]:2*n-r,o=e<s-1?a[e+2]:2*r-n;return Pv((t-e/s)*s,i,n,r,o)}}function Yv(t){return function(){return t}}function Uv(e,n){return function(t){return e+t*n}}function Bv(e,n,r){return e=Math.pow(e,r),n=Math.pow(n,r)-e,r=1/r,function(t){return Math.pow(e+t*n,r)}}function Fv(t,e){var n=e-t;return n?Uv(t,180<n||n<-180?n-360*Math.round(n/360):n):Yv(isNaN(t)?e:t)}function Zv(n){return 1==(n=+n)?Hv:function(t,e){return e-t?Bv(t,e,n):Yv(isNaN(t)?e:t)}}function Hv(t,e){var n=e-t;return n?Uv(t,n):Yv(isNaN(t)?e:t)}Nm(Ov,Cv,zm(Em,{brighter:function t(e){return e=null==e?Lm:Math.pow(Lm,e),new Ov(this.h,this.s,this.l*e,this.opacity)},darker:function t(e){return e=null==e?.7:Math.pow(.7,e),new Ov(this.h,this.s,this.l*e,this.opacity)},rgb:function t(){var e=isNaN(this.h)?0:(this.h+120)*ov,n=+this.l,r=isNaN(this.s)?0:this.s*n*(1-n),i=Math.cos(e),e=Math.sin(e);return new $m(255*(n+r*(Av*i+Iv*e)),255*(n+r*(Tv*i+Nv*e)),255*(n+zv*i*r),this.opacity)}}));var Gv=function t(e){var a=Zv(e);function n(e,t){var n=a((e=Wm(e)).r,(t=Wm(t)).r),r=a(e.g,t.g),i=a(e.b,t.b),o=Hv(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=r(t),e.b=i(t),e.opacity=o(t),e+""}}return n.gamma=t,n}(1);function Qv(s){return function(t){for(var e=t.length,n=new Array(e),r=new Array(e),i=new Array(e),o,a,o=0;o<e;++o)a=Wm(t[o]),n[o]=a.r||0,r[o]=a.g||0,i[o]=a.b||0;return n=s(n),r=s(r),i=s(i),a.opacity=1,function(t){return a.r=n(t),a.g=r(t),a.b=i(t),a+""}}}var qv=Qv(Rv);function Vv(e,n){n=n||[];var r=e?Math.min(n.length,e.length):0,i=n.slice(),o;return function(t){for(o=0;o<r;++o)i[o]=e[o]*(1-t)+n[o]*t;return i}}function Wv(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function $v(t,e){for(var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),a,a=0;a<r;++a)i[a]=ob(t[a],e[a]);for(;a<n;++a)o[a]=e[a];return function(t){for(a=0;a<r;++a)o[a]=i[a](t);return o}}function Xv(e,n){var r=new Date;return e=+e,n=+n,function(t){return r.setTime(e*(1-t)+n*t),r}}function Jv(e,n){return e=+e,n=+n,function(t){return e*(1-t)+n*t}}function Kv(t,e){var n={},r={},i;for(i in null!==t&&"object"===ig(t)||(t={}),e=null===e||"object"!==ig(e)?{}:e)i in t?n[i]=ob(t[i],e[i]):r[i]=e[i];return function(t){for(i in n)r[i]=n[i](t);return r}}var tb=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eb=new RegExp(tb.source,"g");function nb(t){return function(){return t}}function rb(e){return function(t){return e(t)+""}}function ib(t,r){var e=tb.lastIndex=eb.lastIndex=0,n,i,o,a=-1,s=[],l=[];for(t+="",r+="";(n=tb.exec(t))&&(i=eb.exec(r));)(o=i.index)>e&&(o=r.slice(e,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Jv(n,i)})),e=eb.lastIndex;return e<r.length&&(o=r.slice(e),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?rb(l[0].x):nb(r):(r=l.length,function(t){for(var e=0,n;e<r;++e)s[(n=l[e]).i]=n.x(t);return s.join("")})}function ob(t,e){var n=ig(e),n;return null==e||"boolean"===n?Yv(e):("number"===n?Jv:"string"===n?(n=Gm(e))?(e=n,Gv):ib:e instanceof Gm?Gv:e instanceof Date?Xv:Wv(e)?Vv:Array.isArray(e)?$v:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Kv:Jv)(t,e)}function ab(e,n){return e=+e,n=+n,function(t){return Math.round(e*(1-t)+n*t)}}var sb=180/Math.PI,lb={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},cb,ub,db,fb;function hb(t,e,n,r,i,o){var a,s,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),t*r<e*n&&(t=-t,e=-e,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*sb,skewX:Math.atan(l)*sb,scaleX:a,scaleY:s}}function pb(t){return"none"===t?lb:(cb||(cb=document.createElement("DIV"),ub=document.documentElement,db=document.defaultView),cb.style.transform=t,t=db.getComputedStyle(ub.appendChild(cb),null).getPropertyValue("transform"),ub.removeChild(cb),hb(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function gb(t){return null==t?lb:((fb=fb||document.createElementNS("http://www.w3.org/2000/svg","g")).setAttribute("transform",t),(t=fb.transform.baseVal.consolidate())?hb((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):lb)}function _b(n,s,l,i){function c(t){return t.length?t.pop()+" ":""}function r(t,e,n,r,i,o){var a;t!==n||e!==r?(a=i.push("translate(",null,s,null,l),o.push({i:a-4,x:Jv(t,n)},{i:a-2,x:Jv(e,r)})):(n||r)&&i.push("translate("+n+s+r+l)}function a(t,e,n,r){t!==e?(180<t-e?e+=360:180<e-t&&(t+=360),r.push({i:n.push(c(n)+"rotate(",null,i)-2,x:Jv(t,e)})):e&&n.push(c(n)+"rotate("+e+i)}function u(t,e,n,r){t!==e?r.push({i:n.push(c(n)+"skewX(",null,i)-2,x:Jv(t,e)}):e&&n.push(c(n)+"skewX("+e+i)}function d(t,e,n,r,i,o){var a;t!==n||e!==r?(a=i.push(c(i)+"scale(",null,",",null,")"),o.push({i:a-4,x:Jv(t,n)},{i:a-2,x:Jv(e,r)})):1===n&&1===r||i.push(c(i)+"scale("+n+","+r+")")}return function(t,e){var i=[],o=[];return t=n(t),e=n(e),r(t.translateX,t.translateY,e.translateX,e.translateY,i,o),a(t.rotate,e.rotate,i,o),u(t.skewX,e.skewX,i,o),d(t.scaleX,t.scaleY,e.scaleX,e.scaleY,i,o),t=e=null,function(t){for(var e=-1,n=o.length,r;++e<n;)i[(r=o[e]).i]=r.x(t);return i.join("")}}}var yb=_b(pb,"px, ","px)","deg)"),mb=_b(gb,", ",")",")");function vb(a){return function(e,t){var n=a((e=nv(e)).h,(t=nv(t)).h),r=Hv(e.s,t.s),i=Hv(e.l,t.l),o=Hv(e.opacity,t.opacity);return function(t){return e.h=n(t),e.s=r(t),e.l=i(t),e.opacity=o(t),e+""}}}var Qs=vb(Fv);function bb(e,t){var n=Hv((e=_v(e)).l,(t=_v(t)).l),r=Hv(e.a,t.a),i=Hv(e.b,t.b),o=Hv(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=i(t),e.opacity=o(t),e+""}}function xb(a){return function(e,t){var n=a((e=Mv(e)).h,(t=Mv(t)).h),r=Hv(e.c,t.c),i=Hv(e.l,t.l),o=Hv(e.opacity,t.opacity);return function(t){return e.h=n(t),e.c=r(t),e.l=i(t),e.opacity=o(t),e+""}}}var Ki=xb(Fv);function wb(s){return function t(a){function e(e,t){var n=s((e=Cv(e)).h,(t=Cv(t)).h),r=Hv(e.s,t.s),i=Hv(e.l,t.l),o=Hv(e.opacity,t.opacity);return function(t){return e.h=n(t),e.s=r(t),e.l=i(Math.pow(t,a)),e.opacity=o(t),e+""}}return a=+a,e.gamma=t,e}(1)}wb(Fv);var qs=wb(Hv);function Mb(t,e){for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[e](t-e)}}function kb(i,o){var a,s;return function(){var t=km(this,i),e=t.tween;if(e!==a)for(var n=0,r=(s=a=e).length;n<r;++n)if(s[n].name===o){(s=s.slice()).splice(n,1);break}t.tween=s}}function jb(o,a,s){var l,c;if("function"!=typeof s)throw new Error;return function(){var t=km(this,o),e=t.tween;if(e!==l){c=(l=e).slice();for(var n={name:a,value:s},r=0,i=c.length;r<i;++r)if(c[r].name===a){c[r]=n;break}r===i&&c.push(n)}t.tween=c}}function Ab(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=jm(this.node(),n).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===t)return a.value;return null}return this.each((null==e?kb:jb)(n,t,e))}function Ib(t,e,n){var r=t._id;return t.each(function(){var t=km(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return jm(t,r).value[e]}}function Tb(t,e){var n;return("number"==typeof e?Jv:e instanceof Gm?Gv:(n=Gm(e))?(e=n,Gv):ib)(t,e)}function Nb(t){return function(){this.removeAttribute(t)}}function zb(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Eb(e,n,r){var i,o=r+"",a;return function(){var t=this.getAttribute(e);return t===o?null:t===i?a:a=n(i=t,r)}}function Sb(e,n,r){var i,o=r+"",a;return function(){var t=this.getAttributeNS(e.space,e.local);return t===o?null:t===i?a:a=n(i=t,r)}}function Lb(r,i,o){var a,s,l;return function(){var t,e=o(this),n;if(null!=e)return(t=this.getAttribute(r))===(n=e+"")?null:t===a&&n===s?l:(s=n,l=i(a=t,e));this.removeAttribute(r)}}function Db(r,i,o){var a,s,l;return function(){var t,e=o(this),n;if(null!=e)return(t=this.getAttributeNS(r.space,r.local))===(n=e+"")?null:t===a&&n===s?l:(s=n,l=i(a=t,e));this.removeAttributeNS(r.space,r.local)}}function Cb(t,e){var n=Eg(t),r="transform"===n?mb:Tb;return this.attrTween(t,"function"==typeof e?(n.local?Db:Lb)(n,r,Ib(this,"attr."+t,e)):null==e?(n.local?zb:Nb)(n):(n.local?Sb:Eb)(n,r,e))}function Ob(e,n){return function(t){this.setAttribute(e,n.call(this,t))}}function Pb(e,n){return function(t){this.setAttributeNS(e.space,e.local,n.call(this,t))}}function Rb(e,n){var r,i;function t(){var t=n.apply(this,arguments);return r=t!==i?(i=t)&&Pb(e,t):r}return t._value=n,t}function Yb(e,n){var r,i;function t(){var t=n.apply(this,arguments);return r=t!==i?(i=t)&&Ob(e,t):r}return t._value=n,t}function Ub(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var t=Eg(t);return this.tween(n,(t.local?Rb:Yb)(t,e))}function Bb(t,e){return function(){Mm(this,t).delay=+e.apply(this,arguments)}}function Fb(t,e){return e=+e,function(){Mm(this,t).delay=e}}function Zb(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Bb:Fb)(e,t)):jm(this.node(),e).delay}function Hb(t,e){return function(){km(this,t).duration=+e.apply(this,arguments)}}function Gb(t,e){return e=+e,function(){km(this,t).duration=e}}function Qb(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Hb:Gb)(e,t)):jm(this.node(),e).duration}function qb(t,e){if("function"!=typeof e)throw new Error;return function(){km(this,t).ease=e}}function Vb(t){var e=this._id;return arguments.length?this.each(qb(e,t)):jm(this.node(),e).ease}function Wb(t){"function"!=typeof t&&(t=Bg(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=[],l,c=0;c<a;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&s.push(l);return new kx(r,this._parents,this._name,this._id)}function $b(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,t=n.length,i=Math.min(r,t),o=new Array(r),a=0;a<i;++a)for(var s=e[a],l=n[a],c=s.length,u=o[a]=new Array(c),d,f=0;f<c;++f)(d=s[f]||l[f])&&(u[f]=d);for(;a<r;++a)o[a]=e[a];return new kx(o,this._parents,this._name,this._id)}function Xb(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return!(t=0<=e?t.slice(0,e):t)||"start"===t})}function Jb(n,r,i){var o,a,s=Xb(r)?Mm:km;return function(){var t=s(this,n),e=t.on;e!==o&&(a=(o=e).copy()).on(r,i),t.on=a}}function Kb(t,e){var n=this._id;return arguments.length<2?jm(this.node(),n).on.on(t):this.each(Jb(n,t,e))}function tx(n){return function(){var t=this.parentNode,e;for(e in this.__transition)if(+e!==n)return;t&&t.removeChild(this)}}function ex(){return this.on("end.remove",tx(this._id))}function nx(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Og(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s=r[a],l=s.length,c=o[a]=new Array(l),u,d,f=0;f<l;++f)(u=s[f])&&(d=t.call(u,u.__data__,f,s))&&("__data__"in u&&(d.__data__=u.__data__),c[f]=d,wm(c[f],e,n,f,c,jm(u,n)));return new kx(o,this._parents,e,n)}function rx(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Yg(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var l=r[s],c=l.length,u,d=0;d<c;++d)if(u=l[d]){for(var f=t.call(u,u.__data__,d,l),h,p=jm(u,n),g=0,_=f.length;g<_;++g)(h=f[g])&&wm(h,e,n,g,f,p);o.push(f),a.push(u)}return new kx(o,a,e,n)}var ix=yy.prototype.constructor;function ox(){return new ix(this._groups,this._parents)}function ax(n,r){var i,o,a;return function(){var t=x_(this,n),e=(this.style.removeProperty(n),x_(this,n));return t===e?null:t===i&&e===o?a:a=r(i=t,o=e)}}function sx(t){return function(){this.style.removeProperty(t)}}function lx(e,n,r){var i,o=r+"",a;return function(){var t=x_(this,e);return t===o?null:t===i?a:a=n(i=t,r)}}function cx(r,i,o){var a,s,l;return function(){var t=x_(this,r),e=o(this),n=e+"";return null==e&&(this.style.removeProperty(r),n=e=x_(this,r)),t===n?null:t===a&&n===s?l:(s=n,l=i(a=t,e))}}function ux(r,i){var o,a,s,l="style."+i,c="end."+l,u;return function(){var t=km(this,r),e=t.on,n=null==t.value[l]?u=u||sx(i):void 0;e===o&&s===n||(a=(o=e).copy()).on(c,s=n),t.on=a}}function dx(t,e,n){var r="transform"==(t+="")?yb:Tb;return null==e?this.styleTween(t,ax(t,r)).on("end.style."+t,sx(t)):"function"==typeof e?this.styleTween(t,cx(t,r,Ib(this,"style."+t,e))).each(ux(this._id,t)):this.styleTween(t,lx(t,r,e),n).on("end.style."+t,null)}function fx(e,n,r){return function(t){this.style.setProperty(e,n.call(this,t),r)}}function hx(e,n,r){var i,o;function t(){var t=n.apply(this,arguments);return i=t!==o?(o=t)&&fx(e,t,r):i}return t._value=n,t}function px(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,hx(t,e,null==n?"":n))}function gx(t){return function(){this.textContent=t}}function _x(e){return function(){var t=e(this);this.textContent=null==t?"":t}}function yx(t){return this.tween("text","function"==typeof t?_x(Ib(this,"text",t)):gx(null==t?"":t+""))}function mx(e){return function(t){this.textContent=e.call(this,t)}}function vx(e){var n,r;function t(){var t=e.apply(this,arguments);return n=t!==r?(r=t)&&mx(t):n}return t._value=e,t}function bx(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,vx(t))}function xx(){for(var t=this._name,e=this._id,n=++Mx,r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,l,c=0,l;c<s;++c){(l=a[c])&&wm(l,t,n,c,a,{time:(l=jm(l,e)).time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new kx(r,this._parents,t,n)}function wx(){var i,o,a=this,s=a._id,l=a.size();return new Promise(function(e,t){var n={value:t},r={value:function t(){0==--l&&e()}};a.each(function(){var t=km(this,s),e=t.on;e!==i&&((o=(i=e).copy())._.cancel.push(n),o._.interrupt.push(n),o._.end.push(r)),t.on=o})})}var Mx=0;function kx(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function jx(t){return yy().transition(t)}function Ax(){return++Mx}var Wt=yy.prototype;function Ix(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}kx.prototype=jx.prototype={constructor:kx,select:nx,selectAll:rx,filter:Wb,merge:$b,selection:ox,transition:xx,call:Wt.call,nodes:Wt.nodes,node:Wt.node,size:Wt.size,empty:Wt.empty,each:Wt.each,on:Kb,attr:Cb,attrTween:Ub,style:dx,styleTween:px,text:yx,textTween:bx,remove:ex,tween:Ab,delay:Zb,duration:Qb,ease:Vb,end:wx};var Tx={time:null,delay:0,duration:250,ease:Ix};function Nx(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return Tx.time=rm(),Tx;return n}function zx(t){var e,n;t=t instanceof kx?(e=t._id,t._name):(e=++Mx,(n=Tx).time=rm(),null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,l,c=0;c<s;++c)(l=a[c])&&wm(l,t,e,c,a,n||Nx(l,e));return new kx(r,this._parents,t,e)}function Ex(e){var n=0;return function(t){return void 0===t?n:(n=t,e)}}function Sx(t){return""+t}function Lx(e){var n=Sx;return function(t){return void 0===t?n||Sx:(n=t,e)}}yy.prototype.interrupt=Tm,yy.prototype.transition=zx;var Dx=new Date,Cx=new Date;function Ox(o,a,n,r){function s(t){return o(t=0===arguments.length?new Date:new Date(+t)),t}return s.floor=function(t){return o(t=new Date(+t)),t},s.ceil=function(t){return o(t=new Date(t-1)),a(t,1),o(t),t},s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n},s.offset=function(t,e){return a(t=new Date(+t),null==e?1:Math.floor(e)),t},s.range=function(t,e,n){var r=[],i;if(t=s.ceil(t),n=null==n?1:Math.floor(n),!(t<e&&0<n))return r;for(;r.push(i=new Date(+t)),a(t,n),o(t),i<t&&t<e;);return r},s.filter=function(n){return Ox(function(t){if(t<=t)for(;o(t),!n(t);)t.setTime(t-1)},function(t,e){if(t<=t)if(e<0)for(;++e<=0;)for(;a(t,-1),!n(t););else for(;0<=--e;)for(;a(t,1),!n(t););})},n&&(s.count=function(t,e){return Dx.setTime(+t),Cx.setTime(+e),o(Dx),o(Cx),Math.floor(n(Dx,Cx))},s.every=function(e){return e=Math.floor(e),isFinite(e)&&0<e?1<e?s.filter(r?function(t){return r(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}var Px=Ox(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Px.every=function(n){return n=Math.floor(n),isFinite(n)&&0<n?1<n?Ox(function(t){t.setTime(Math.floor(t/n)*n)},function(t,e){t.setTime(+t+e*n)},function(t,e){return(e-t)/n}):Px:null};var Rx=1e3,Yx=6e4,Ux=36e5,Bx=864e5,Fx=6048e5,Zx=Ox(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*Rx)},function(t,e){return(e-t)/Rx},function(t){return t.getUTCSeconds()}),Hx=Ox(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Rx)},function(t,e){t.setTime(+t+e*Yx)},function(t,e){return(e-t)/Yx},function(t){return t.getMinutes()}),Gx=Ox(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Rx-t.getMinutes()*Yx)},function(t,e){t.setTime(+t+e*Ux)},function(t,e){return(e-t)/Ux},function(t){return t.getHours()}),Qx=Ox(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Yx)/Bx},function(t){return t.getDate()-1});function qx(e){return Ox(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Yx)/Fx})}var Vx=qx(0),Wx=qx(1),$x=qx(2),Xx=qx(3),Jx=qx(4),Kx=qx(5),tw=qx(6),ew=Ox(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),nw=Ox(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});nw.every=function(n){return isFinite(n=Math.floor(n))&&0<n?Ox(function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e*n)}):null};var rw=Ox(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Bx},function(t){return t.getUTCDate()-1});function iw(e){return Ox(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/Fx})}var ow=iw(0),aw=iw(1),sw=iw(2),lw=iw(3),cw=iw(4),uw=iw(5),dw=iw(6),fw=Ox(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});function hw(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function pw(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function gw(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function _w(t){var r=t.dateTime,i=t.date,o=t.time,e=t.periods,n=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,c=Tw(e),u=Nw(e),d=Tw(n),f=Nw(n),h=Tw(a),p=Nw(a),g=Tw(s),_=Nw(s),y=Tw(l),m=Nw(l),v={a:L,A:D,b:C,B:O,c:null,d:$w,e:$w,f:eM,g:fM,G:pM,H:Xw,I:Jw,j:Kw,L:tM,m:nM,M:rM,p:P,q:R,Q:PM,s:RM,S:iM,u:oM,U:aM,V:lM,w:cM,W:uM,x:null,X:null,y:dM,Y:hM,Z:gM,"%":OM},b={a:Y,A:U,b:B,B:F,c:null,d:_M,e:_M,f:xM,g:SM,G:DM,H:yM,I:mM,j:vM,L:bM,m:wM,M:MM,p:Z,q:H,Q:PM,s:RM,S:kM,u:jM,U:AM,V:TM,w:NM,W:zM,x:null,X:null,y:EM,Y:LM,Z:CM,"%":OM},x={a:A,A:I,b:T,B:N,c:z,d:Uw,e:Uw,f:Qw,g:Ow,G:Cw,H:Fw,I:Fw,j:Bw,L:Gw,m:Yw,M:Zw,p:j,q:Rw,Q:Vw,s:Ww,S:Hw,u:Ew,U:Sw,V:Lw,w:zw,W:Dw,x:E,X:S,y:Ow,Y:Cw,Z:Pw,"%":qw};function w(l,c){return function(t){var e=[],n=-1,r=0,i=l.length,o,a,s;for(t instanceof Date||(t=new Date(+t));++n<i;)37===l.charCodeAt(n)&&(e.push(l.slice(r,n)),null!=(a=yw[o=l.charAt(++n)])?o=l.charAt(++n):a="e"===o?" ":"0",(s=c[o])&&(o=s(t,a)),e.push(o),r=n+1);return e.push(l.slice(r,n)),e.join("")}}function M(o,a){return function(t){var e=gw(1900,void 0,1),n,r,i;if(k(e,o,t+="",0)!=t.length)return null;if("Q"in e)return new Date(e.Q);if("s"in e)return new Date(1e3*e.s+("L"in e?e.L:0));if(!a||"Z"in e||(e.Z=0),"p"in e&&(e.H=e.H%12+12*e.p),void 0===e.m&&(e.m="q"in e?e.q:0),"V"in e){if(e.V<1||53<e.V)return null;"w"in e||(e.w=1),"Z"in e?(r=4<(i=(r=pw(gw(e.y,0,1))).getUTCDay())||0===i?aw.ceil(r):aw(r),r=rw.offset(r,7*(e.V-1)),e.y=r.getUTCFullYear(),e.m=r.getUTCMonth(),e.d=r.getUTCDate()+(e.w+6)%7):(r=4<(i=(r=hw(gw(e.y,0,1))).getDay())||0===i?Wx.ceil(r):Wx(r),r=Qx.offset(r,7*(e.V-1)),e.y=r.getFullYear(),e.m=r.getMonth(),e.d=r.getDate()+(e.w+6)%7)}else("W"in e||"U"in e)&&("w"in e||(e.w="u"in e?e.u%7:"W"in e?1:0),i="Z"in e?pw(gw(e.y,0,1)).getUTCDay():hw(gw(e.y,0,1)).getDay(),e.m=0,e.d="W"in e?(e.w+6)%7+7*e.W-(i+5)%7:e.w+7*e.U-(i+6)%7);return"Z"in e?(e.H+=e.Z/100|0,e.M+=e.Z%100,pw(e)):hw(e)}}function k(t,e,n,r){for(var i=0,o=e.length,a=n.length,s,l;i<o;){if(a<=r)return-1;if(37===(s=e.charCodeAt(i++))){if(s=e.charAt(i++),!(l=x[s in yw?e.charAt(i++):s])||(r=l(t,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function j(t,e,n){var e=c.exec(e.slice(n));return e?(t.p=u[e[0].toLowerCase()],n+e[0].length):-1}function A(t,e,n){var e=h.exec(e.slice(n));return e?(t.w=p[e[0].toLowerCase()],n+e[0].length):-1}function I(t,e,n){var e=d.exec(e.slice(n));return e?(t.w=f[e[0].toLowerCase()],n+e[0].length):-1}function T(t,e,n){var e=y.exec(e.slice(n));return e?(t.m=m[e[0].toLowerCase()],n+e[0].length):-1}function N(t,e,n){var e=g.exec(e.slice(n));return e?(t.m=_[e[0].toLowerCase()],n+e[0].length):-1}function z(t,e,n){return k(t,r,e,n)}function E(t,e,n){return k(t,i,e,n)}function S(t,e,n){return k(t,o,e,n)}function L(t){return a[t.getDay()]}function D(t){return n[t.getDay()]}function C(t){return l[t.getMonth()]}function O(t){return s[t.getMonth()]}function P(t){return e[+(12<=t.getHours())]}function R(t){return 1+~~(t.getMonth()/3)}function Y(t){return a[t.getUTCDay()]}function U(t){return n[t.getUTCDay()]}function B(t){return l[t.getUTCMonth()]}function F(t){return s[t.getUTCMonth()]}function Z(t){return e[+(12<=t.getUTCHours())]}function H(t){return 1+~~(t.getUTCMonth()/3)}return v.x=w(i,v),v.X=w(o,v),v.c=w(r,v),b.x=w(i,b),b.X=w(o,b),b.c=w(r,b),{format:function t(e){var n=w(e+="",v);return n.toString=function(){return e},n},parse:function t(e){var n=M(e+="",!1);return n.toString=function(){return e},n},utcFormat:function t(e){var n=w(e+="",b);return n.toString=function(){return e},n},utcParse:function t(e){var n=M(e+="",!0);return n.toString=function(){return e},n}}}fw.every=function(n){return isFinite(n=Math.floor(n))&&0<n?Ox(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e*n)}):null};var yw={"-":"",_:" ",0:"0"},mw=/^\s*\d+/,vw=/^%/,bw=/[\\^$*+?|[\]().{}]/g,xw,ww,Mw,kw,jw;function Aw(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",t=i.length;return r+(t<n?new Array(n-t+1).join(e)+i:i)}function Iw(t){return t.replace(bw,"\\$&")}function Tw(t){return new RegExp("^(?:"+t.map(Iw).join("|")+")","i")}function Nw(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function zw(t,e,n){var e=mw.exec(e.slice(n,n+1));return e?(t.w=+e[0],n+e[0].length):-1}function Ew(t,e,n){var e=mw.exec(e.slice(n,n+1));return e?(t.u=+e[0],n+e[0].length):-1}function Sw(t,e,n){var e=mw.exec(e.slice(n,n+2));return e?(t.U=+e[0],n+e[0].length):-1}function Lw(t,e,n){var e=mw.exec(e.slice(n,n+2));return e?(t.V=+e[0],n+e[0].length):-1}function Dw(t,e,n){var e=mw.exec(e.slice(n,n+2));return e?(t.W=+e[0],n+e[0].length):-1}function Cw(t,e,n){var e=mw.exec(e.slice(n,n+4));return e?(t.y=+e[0],n+e[0].length):-1}function Ow(t,e,n){var e=mw.exec(e.slice(n,n+2));return e?(t.y=+e[0]+(68<+e[0]?1900:2e3),n+e[0].length):-1}function Pw(t,e,n){var e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return e?(t.Z=e[1]?0:-(e[2]+(e[3]||"00")),n+e[0].length):-1}function Rw(t,e,n){var e=mw.exec(e.slice(n,n+1));return e?(t.q=3*e[0]-3,n+e[0].length):-1}function Yw(t,e,n){var e=mw.exec(e.slice(n,n+2));return e?(t.m=e[0]-1,n+e[0].length):-1}function Uw(t,e,n){var e=mw.exec(e.slice(n,n+2));return e?(t.d=+e[0],n+e[0].length):-1}function Bw(t,e,n){var e=mw.exec(e.slice(n,n+3));return e?(t.m=0,t.d=+e[0],n+e[0].length):-1}function Fw(t,e,n){var e=mw.exec(e.slice(n,n+2));return e?(t.H=+e[0],n+e[0].length):-1}function Zw(t,e,n){var e=mw.exec(e.slice(n,n+2));return e?(t.M=+e[0],n+e[0].length):-1}function Hw(t,e,n){var e=mw.exec(e.slice(n,n+2));return e?(t.S=+e[0],n+e[0].length):-1}function Gw(t,e,n){var e=mw.exec(e.slice(n,n+3));return e?(t.L=+e[0],n+e[0].length):-1}function Qw(t,e,n){var e=mw.exec(e.slice(n,n+6));return e?(t.L=Math.floor(e[0]/1e3),n+e[0].length):-1}function qw(t,e,n){var e=vw.exec(e.slice(n,n+1));return e?n+e[0].length:-1}function Vw(t,e,n){var e=mw.exec(e.slice(n));return e?(t.Q=+e[0],n+e[0].length):-1}function Ww(t,e,n){var e=mw.exec(e.slice(n));return e?(t.s=+e[0],n+e[0].length):-1}function $w(t,e){return Aw(t.getDate(),e,2)}function Xw(t,e){return Aw(t.getHours(),e,2)}function Jw(t,e){return Aw(t.getHours()%12||12,e,2)}function Kw(t,e){return Aw(1+Qx.count(nw(t),t),e,3)}function tM(t,e){return Aw(t.getMilliseconds(),e,3)}function eM(t,e){return tM(t,e)+"000"}function nM(t,e){return Aw(t.getMonth()+1,e,2)}function rM(t,e){return Aw(t.getMinutes(),e,2)}function iM(t,e){return Aw(t.getSeconds(),e,2)}function oM(t){var t=t.getDay();return 0===t?7:t}function aM(t,e){return Aw(Vx.count(nw(t)-1,t),e,2)}function sM(t){var e=t.getDay();return 4<=e||0===e?Jx(t):Jx.ceil(t)}function lM(t,e){return t=sM(t),Aw(Jx.count(nw(t),t)+(4===nw(t).getDay()),e,2)}function cM(t){return t.getDay()}function uM(t,e){return Aw(Wx.count(nw(t)-1,t),e,2)}function dM(t,e){return Aw(t.getFullYear()%100,e,2)}function fM(t,e){return Aw((t=sM(t)).getFullYear()%100,e,2)}function hM(t,e){return Aw(t.getFullYear()%1e4,e,4)}function pM(t,e){var n=t.getDay();return Aw((t=4<=n||0===n?Jx(t):Jx.ceil(t)).getFullYear()%1e4,e,4)}function gM(t){var t=t.getTimezoneOffset();return(0<t?"-":(t*=-1,"+"))+Aw(t/60|0,"0",2)+Aw(t%60,"0",2)}function _M(t,e){return Aw(t.getUTCDate(),e,2)}function yM(t,e){return Aw(t.getUTCHours(),e,2)}function mM(t,e){return Aw(t.getUTCHours()%12||12,e,2)}function vM(t,e){return Aw(1+rw.count(fw(t),t),e,3)}function bM(t,e){return Aw(t.getUTCMilliseconds(),e,3)}function xM(t,e){return bM(t,e)+"000"}function wM(t,e){return Aw(t.getUTCMonth()+1,e,2)}function MM(t,e){return Aw(t.getUTCMinutes(),e,2)}function kM(t,e){return Aw(t.getUTCSeconds(),e,2)}function jM(t){var t=t.getUTCDay();return 0===t?7:t}function AM(t,e){return Aw(ow.count(fw(t)-1,t),e,2)}function IM(t){var e=t.getUTCDay();return 4<=e||0===e?cw(t):cw.ceil(t)}function TM(t,e){return t=IM(t),Aw(cw.count(fw(t),t)+(4===fw(t).getUTCDay()),e,2)}function NM(t){return t.getUTCDay()}function zM(t,e){return Aw(aw.count(fw(t)-1,t),e,2)}function EM(t,e){return Aw(t.getUTCFullYear()%100,e,2)}function SM(t,e){return Aw((t=IM(t)).getUTCFullYear()%100,e,2)}function LM(t,e){return Aw(t.getUTCFullYear()%1e4,e,4)}function DM(t,e){var n=t.getUTCDay();return Aw((t=4<=n||0===n?cw(t):cw.ceil(t)).getUTCFullYear()%1e4,e,4)}function CM(){return"+0000"}function OM(){return"%"}function PM(t){return+t}function RM(t){return Math.floor(+t/1e3)}function YM(t){return xw=_w(t),ww=xw.format,Mw=xw.parse,kw=xw.utcFormat,jw=xw.utcParse,xw}YM({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var UM=parseFloat,BM=Mw("%Y-%m-%d");function FM(e){var n=UM;return function(t){return void 0===t?n||UM:(n=t,e)}}function ZM(e){var n=BM;return function(t){return void 0===t?n||BM:(n=t,e)}}function HM(e){var n={},r=null,i=null,o=null;return n.width=function(t){return void 0===t?null!==r?r:e.svg.node().getBoundingClientRect().width:(r=t,e)},n.height=function(t){return void 0===t?null!==i?i:null!==o?n.plotHeight()+e.margins.top+e.margins.bottom:null!==i?i:e.svg.node().getBoundingClientRect().height:(i=t,o=null,e)},n.plotAspect=function(t){return void 0===t?null!==o?o:n.plotWidth()/n.plotHeight():(i=null,o=t,e)},n.plotWidth=function(){return e.width()-(e.margins.right+e.margins.left)},n.plotHeight=function(){return null===o?n.height()-(e.margins.top+e.margins.bottom):n.plotWidth()/o},n}function GM(e){var n=0;return function(t){return void 0===t?n:(n=t,e)}}function QM(e){var n=0;return function(t){return void 0===t?n:(n=t,e)}}function qM(t){var e=[],n=[];return t.forEach(function(t){n[t]||(e.push(t),n[t]=!0)}),e}var VM=Array.isArray;function WM(t){return t}function $M(r){var t,e,n;return{prop:function t(e,n){Object.defineProperty(r,e,{value:n,enumerable:!0})},getter:function t(e,n){Object.defineProperty(r,e,{get:n,enumerable:!0})},method:function t(e,n){Object.defineProperty(r,e,{value:n})}}}function XM(t,e){var n,r=1;return t[e?"reduce":"reduceRight"](function(t,e){return t[e]||(t[e]=r),r+=1,t},{})}function JM(t,e){var n,r=1;return t[e?"reduce":"reduceRight"](function(t,e){return t[e]=r++,t},{})}function KM(t,e){var n,r=1;return t[e?"reduce":"reduceRight"](function(t,e){return t[e]||(t[e]=r++),t},{})}function tk(t,e){var n=XM(t,e),r=JM(t,e);return Object.keys(n).reduce(function(t,e){return t[e]=(n[e]+r[e])/2,t},{})}function ek(t,e,n,r){var i,i=("dense"===r?KM:"fractional"===r?tk:"worst"===r?JM:XM)(e,n),o;return t.map("ordinal"===r?function t(e){return i[e]++}:function t(e){return i[e]})}function nk(n){return n=n||Math.random,function(t,e){var e=e-t+1;return Math.floor(n()*e)+t}}function rk(t,e){var n;return t[nk(e)(0,t.length-1)]}function ik(t,e,n,r){var i=t.length,o;if(n=void 0!==e&&n,e=void 0!==e?Math.floor(e):i,!i||e<1)return[];var a=nk(r);if(n||1===e){for(var o=[],s=0;s<e;s++)o.push(t[a(0,i-1)]);return o}o=t.slice();for(var l=Math.min(i,e),s=0;s<l;s++){var c=a(s,i-1),u,d;c!==s&&(u=o[c],d=o[s],o[s]=u,o[c]=d)}return o.length=l,o}function ok(t,n,r){if(!n.length)return t.slice();for(var i=0,e=t.reduce(function(t,e){for(;t.length===n[i];)t.push(r),i++;return t.push(e),t},[]);n[i++];)e.push(r);return e}function ak(t){t.method("unsorted",function(){return this.values.slice()}),t.method("ascending",function(){return this.sorted_values.slice()}),t.method("descending",function(){return this.sorted_values.slice().reverse()}),t.method("unique",function(){return qM(this.values)}),t.method("uniqueAscending",function(){return qM(this.sorted_values)}),t.method("uniqueDescending",function(){return qM(this.sorted_values).reverse()})}function sk(t,e){return t<e?-1:e<t?1:e<=t?0:NaN}function lk(a){return 1===a.length&&(a=ck(a)),{left:function t(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;a(e[o],n)<0?r=1+o:i=o}return r},right:function t(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;0<a(e[o],n)?i=o:r=1+o}return r}}}function ck(n){return function(t,e){return sk(n(t),e)}}var uk,dk=lk(sk).right;function fk(t,e){return e<t?-1:t<e?1:t<=e?0:NaN}function hk(t){return null===t?NaN:+t}function pk(t,e){var n=t.length,r=0,i=-1,o=0,a,s,l=0;if(null==e)for(;++i<n;)isNaN(a=hk(t[i]))||(l+=(s=a-o)*(a-(o+=s/++r)));else for(;++i<n;)isNaN(a=hk(e(t[i],i,t)))||(l+=(s=a-o)*(a-(o+=s/++r)));if(1<r)return l/(r-1)}function gk(t,e){var n=t.length,r=-1,i,o,a;if(null==e){for(;++r<n;)if(null!=(i=t[r])&&i<=i)for(o=a=i;++r<n;)null!=(i=t[r])&&(i<o&&(o=i),a<i&&(a=i))}else for(;++r<n;)if(null!=(i=e(t[r],r,t))&&i<=i)for(o=a=i;++r<n;)null!=(i=e(t[r],r,t))&&(i<o&&(o=i),a<i&&(a=i));return[o,a]}function _k(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}var yk=Math.sqrt(50),mk=Math.sqrt(10),vk=Math.sqrt(2);function bk(t,e,n){var r,i=-1,o,a,s;if(n=+n,(t=+t)===(e=+e)&&0<n)return[t];if((r=e<t)&&(o=t,t=e,e=o),0===(s=xk(t,e,n))||!isFinite(s))return[];if(0<s)for(t=Math.ceil(t/s),e=Math.floor(e/s),a=new Array(o=Math.ceil(e-t+1));++i<o;)a[i]=(t+i)*s;else for(t=Math.floor(t*s),e=Math.ceil(e*s),a=new Array(o=Math.ceil(t-e+1));++i<o;)a[i]=(t-i)/s;return r&&a.reverse(),a}function xk(t,e,n){var t=(e-t)/Math.max(0,n),n=Math.floor(Math.log(t)/Math.LN10),t=t/Math.pow(10,n);return 0<=n?(yk<=t?10:mk<=t?5:vk<=t?2:1)*Math.pow(10,n):-Math.pow(10,-n)/(yk<=t?10:mk<=t?5:vk<=t?2:1)}function wk(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),n=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),r=r/n;return yk<=r?n*=10:mk<=r?n*=5:vk<=r&&(n*=2),e<t?-n:n}function Mk(t,e,n){if(null==n&&(n=hk),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(1<=e)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,r=Math.floor(i),e=+n(t[r],r,t),o;return e+(+n(t[r+1],r+1,t)-e)*(i-r)}}function kk(t,e){var n=t.length,r=-1,i,o;if(null==e){for(;++r<n;)if(null!=(i=t[r])&&i<=i)for(o=i;++r<n;)null!=(i=t[r])&&o<i&&(o=i)}else for(;++r<n;)if(null!=(i=e(t[r],r,t))&&i<=i)for(o=i;++r<n;)null!=(i=e(t[r],r,t))&&o<i&&(o=i);return o}function jk(t,e){var n=t.length,r=-1,i,o;if(null==e){for(;++r<n;)if(null!=(i=t[r])&&i<=i)for(o=i;++r<n;)null!=(i=t[r])&&i<o&&(o=i)}else for(;++r<n;)if(null!=(i=e(t[r],r,t))&&i<=i)for(o=i;++r<n;)null!=(i=e(t[r],r,t))&&i<o&&(o=i);return o}function Ak(e,t){return VM(t)?t.map(function(t){return Mk(e,t)}):Mk(e,t)}function Ik(t){var e,n=function t(){return Math.sqrt(this.variance)},r=function t(){return Ak(this.sorted_values,[.25,.5,.75])},i=function t(){return Ak(this.sorted_values,.5)},o=function t(){var e=Ak(this.sorted_values,[.25,.75]);return e[1]-e[0]};t.getter("variance",function t(){return pk(this.values)}),t.getter("sd",n),t.getter("median",i),t.getter("iqr",o),t.method("quantiles",function(t){return Ak(this.sorted_values,t)}),t.method("quartiles",r)}function Tk(t){t.method("random",function(t){return rk(this.values,t)}),t.method("sample",function(t,e,n){return ik(this.values,t,e,n)})}function Nk(t){t.method("rank",function(t,e){return ek(this.values,this.sorted_values,t,e)})}function zk(t){t.method("unclean",function(t){if(t&&t.length<this.values.length)throw new RangeError("dataset is too short");if(t&&t.length>this.values.length)throw new RangeError("dataset is too long");return ok(t=t||this.values,this.dropped_indexes,NaN)})}function Ek(){var t={},e=$M(t);return ak(e),Ik(e),Tk(e),Nk(e),zk(e),t}function Sk(t){var e=-1/0;return t.every(function(t){if(e<=t)return e=t,!0})}function Lk(t){var e=1/0;return t.every(function(t){if(t<=e)return e=t,!0})}function Dk(t,e,r){r=r||WM;var i=1/0,o=-1/0,n=null,a=0,s=[],l=Object.freeze(e.reduce(function(t,e,n){var e=r(e);return"number"!=typeof e||isNaN(e)?s.push(n):(t.push(e),i=Math.min(i,e),o=Math.max(o,e),a+=e),t},[])),e=$M(t);return e.prop("enhanced_array",!0),e.prop("numeric_array",!0),e.prop("values",l),e.prop("min",l.length?i:null),e.prop("max",l.length?o:null),e.prop("sum",a),e.prop("mean",l.length?a/l.length:null),e.prop("range",l.length?o-i:null),e.prop("length",l.length),e.prop("dropped_indexes",Object.freeze(s)),e.method("extent",function(){return[this.min,this.max]}),e.getter("sorted_values",function(){return n||(Sk(l)&&(n=l),n=Lk(l)?Object.freeze(l.slice().reverse()):Object.freeze(l.slice().sort(sk))),n}),t}var Ck=Ek();function Ok(t,e){var n=Object.create(Ck);return Dk(n,t,e),n}var Pk=Object.freeze(["min","max","mean"]),Rk=Object.freeze(["extent","random","sample","unsorted","ascending","descending","unique","uniqueAscending","uniqueDescending","quartiles","quantiles","unclean"]);function Yk(t){return"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t.getTime())}function Uk(t){return"number"!=typeof t?null:new Date(t)}function Bk(e,n){return function(){var t=e[n].apply(e,arguments);return Array.isArray(t)?t.map(Uk):Uk(t)}}function Fk(t,e,n){n=n||WM;var r=Ok(e.map(function(t){var t=n(t);return Yk(t)?t.getTime():null})),i=$M(t);i.prop("enhanced_array",!0),i.prop("datetime_array",!0),i.getter("values",function(){return Object.freeze(r.values.map(Uk))}),i.getter("sorted_values",function(){return Object.freeze(r.sorted_values.map(Uk))}),i.getter("median",function(){return Uk(r.median)}),i.prop("length",r.values.length),i.prop("dropped_indexes",r.dropped_indexes),i.method("rank",function(){return r.rank(arguments)});var o=Bk.bind(null,r);return Pk.forEach(function(t){i.prop(t,Uk(r[t]))}),Rk.forEach(function(t){i.method(t,o(t))}),t}function Zk(t,e){var n={};return Fk(n,t,e),n}function Hk(t){t.method("unsorted",function(){return this.values.slice()}),t.method("ascending",function(){return this.sorted_values.slice()}),t.method("descending",function(){return this.sorted_values.slice().reverse()}),t.method("unique",function(){return qM(this.values)}),t.method("uniqueAscending",function(){return qM(this.sorted_values)}),t.method("uniqueDescending",function(){return qM(this.sorted_values).reverse()})}function Gk(t){t.method("random",function(t){return rk(this.values,t)}),t.method("sample",function(t,e,n){return ik(this.values,t,e,n)})}function Qk(t){t.method("rank",function(t,e){return ek(this.values,this.sorted_values,t,e)})}function qk(t){t.method("unclean",function(t){if(t&&t.length<this.values.length)throw new RangeError("dataset is too short");if(t&&t.length>this.values.length)throw new RangeError("dataset is too long");return ok(t=t||this.values,this.dropped_indexes)})}function Vk(){var t={},e=$M(t);return Hk(e),Gk(e),Qk(e),qk(e),t}function Wk(t){if(t.length<2)return 1;var e=t[0];return t.every(function(t){if(e<=t)return e=t,!0})}function $k(t){if(t.length<2)return 1;var e=t[0];return t.every(function(t){if(t<=e)return e=t,!0})}function Xk(t,e,r){r=r||WM;for(var n=null,i=[],o=0,a=null,s=0;null===a&&s<e.length;){var l=r(e[s++]);"string"==typeof l&&(a=l)}var c=a,u=Object.freeze(e.reduce(function(t,e,n){var e=r(e);return"string"==typeof e?(t.push(e),a=e<a?e:a,c=c<e?e:c,e||o++):i.push(n),t},[])),d=$M(t);return d.prop("enhanced_array",!0),d.prop("string_array",!0),d.prop("values",u),d.prop("min",a),d.prop("max",c),d.prop("length",u.length),d.prop("dropped_indexes",Object.freeze(i)),d.prop("n_empty",o),d.method("extent",function(){return[this.min,this.max]}),d.getter("sorted_values",function(){return n||(Wk(u)&&(n=u),n=$k(u)?Object.freeze(u.slice().reverse()):Object.freeze(u.slice().sort())),n}),t}var Jk=Vk(),Kk;function tj(t,e){var n=Object.create(Jk);return Xk(n,t,e),n}function ej(){var r=parseFloat(getComputedStyle(document.documentElement).fontSize),i=window.devicePixelRatio;Kk=function t(e,n){return e?n?Math.max(Math.round(e*r*i),1)/i:e*r:0}}function nj(t,e,n){var t=getComputedStyle(t.node()).fontFamily,r,i,o;return(n?n+" ":"")+(Kk(e)+"px ")+t}function rj(t,e){return"translate("+t+","+e+")"}function ij(t,e,n){return"rotate("+t+","+(e=e||0)+","+(n=n||0)+")"}var oj=Math.log10||function(t){return Math.log(t)*Math.LOG10E};function aj(t){return Math.floor(oj(Math.abs(t)))}function sj(t){if(0===t)return 0;for(var e=Math.abs(String(t).replace(".",""));0!==e&&e%10==0;)e/=10;return aj(e)+1}function lj(t,e){var n=t[0][0],r=t[1][0],i=e[0][0],o=e[1][0],a=t[0][1],s=t[1][1],l=e[0][1],t=e[1][1],e=(n-r)*(l-t)-(i-o)*(a-s);if(!e)return!(n<i&&n<o&&r<i&&r<o||i<n&&o<n&&i<r&&o<r||a<l&&a<t&&s<l&&s<t||l<a&&t<a&&l<s&&t<s);var o=((n-i)*(l-t)-(a-l)*(i-o))/e;if(!(o<0||1<o)){var e=-((n-r)*(a-l)-(a-s)*(n-i))/e;return e<0||1<e?void 0:1}}function cj(t){return t&&"number"==typeof t?0<t?1:-1:0}function uj(i){var o=i.type;(i=i.copy()).type=o;var a=-1e6,t,n=function t(e){var n=i(e),r,r,e,r;return!isNaN(n)&&Math.abs(n)!==1/0||(r=i.range(),r="numeric"!==o?r[0]>r[1]:cj((e=i.domain())[1]-e[0])!==cj(r[1]-r[0]),n=a*(r?-1:1)),n};return["domain","range"].forEach(function(e){n[e]=function(){var t=i[e].apply(i,arguments);return t===i?n:t}}),n.copy=function(){return uj(i)},n.type=i.type,n.step=i.step,n}function dj(t){return"[object Date]"===Object.prototype.toString.call(t)}function fj(t){return dj(t)&&!isNaN(t.getTime())}function hj(t){return t.split("\n").filter(function(t){return t}).map(function(t){return t.trim()})}var pj="Input data must be an array or Flourish array";function gj(t,e){if(!t)throw new TypeError(pj);if(t.enhanced_array)return t;if(!Array.isArray(t))throw new TypeError(pj);for(var n=e||function(t){return t},r=0;r<t.length;r++){var i=n(t[r]),o=ig(i);if("number"===o)return Ok(t,e);if("string"===o)return tj(t,e);if(dj(i))return Zk(t,e)}return Ok(t,e)}function _j(n){var r=gj([]);return function(t,e){return void 0===t?r:(r=gj(t,e),n)}}var yj="Testing";function mj(t){return t*(Math.PI/180)}function vj(t,e){var n;return t.filter(function(t){var t=e(t);if(t!==n)return n=t,!0})}function bj(t){var e=void 0!==t.max_space?t.max_space:100,n=void 0!==t.text_height?t.text_height:Kk(1),p=t.max_lines,r=t.angle||0,i,g=document.createElement("canvas").getContext("2d");g.font=t.font;var _=e,r=mj(r),_=(e-n*Math.sin(r))/Math.cos(r);return function(t){var e=[],n=0,r=g.measureText(t).width;if(r<=_)e.push(t),n=r;else{for(var i=t.trim().split(/\s+/g),o="",a=0;a<i.length;a++){var s=i[a],l=o+(o?" ":"")+s,c=g.measureText(l).width;if(!(c<=_)){var u=e.length+1==p,d;if(!u&&o)if(e.push(o),g.measureText(s).width<=_){o=s;continue}for(var f=1,h=l;h=l.substring(0,l.length-f)+"…",c=g.measureText(h).width,_<c&&++f<l.length;);n=Math.max(n,c),o=h;break}o=l,n=Math.max(n,c)}e.push(o)}return{lines:e,text_width:n}}}function xj(r,i){var n=["px","rem","fraction"];i=i||"width";var o=.3,a="fraction",s=function t(){var e=r[i](),n="px"===a?o:"rem"===a?Kk(o):o*e;return{px:n,rem:"rem"===a?o:n/Kk(1),fraction:"fraction"===a?o:n/e,unit:a}};return function(t,e){return void 0===t?s():(o=Math.max(t,0),a=-1!==n.indexOf(e)?e:"px",r)}}function wj(o,t){var w=t.x,a=Object.freeze([]),s=o.chart.select(".fl-x-axes"),e,t=function t(){return a};return t._update=function t(e){var g=o.xData().string_array?"string":"numeric",n=nj(my(".fl-x-axes"),w.tick_label_size,w.tick_label_weight),_="default"===w.tick_label_position?+w.tick_label_angle:90,y=0,m=o.xFormat(),v,b=Kk(w.tick_label_size);s.append("text").style("opacity",0).style("font",n).each(function(){var t=my(this).text(yj).node().getBoundingClientRect();v=t.height}).remove(),"object"===ig(e[0])&&(e=vj(e,m));var r=Kk(w.tick_label_space);"auto"===w.tick_label_space_mode&&(r=o.xTicks.autoLabelSpace().px);var i,x=bj({text_height:v,max_space:r,font:n,angle:90-_,max_lines:w.tick_label_max_lines});return(a=e.map(function(t,e){var n=x(m(t)),r=n.lines,i=n.text_width,o,a,s,l,c,u,d=0,f=v*r.length+(r.length-1)*w.tick_label_line_height,h,n,h,s,l,c,u,o,a,p;0==_||90==_?(s=l=(o=0==_?i+Kk(.5):f)/2,u=c=a=0==_?f:i,90==_&&(d=r.length<2?0:(r.length-1)/2*(b*w.tick_label_line_height))):(h=mj(_),n=Math.sin(h),o=(s=i*(h=Math.cos(h)))+(l=f*n),a=(c=i*n)+(u=f*h)),"top"!==w.axis_position&&"float-above"!==w.axis_position||(p=s,s=l,l=p,p=c,c=u,u=p,0!=_&&90!=_&&(d=r.length<2?0:(r.length-1)*(b*w.tick_label_line_height))),y=Math.max(y,a);var h="numeric"==g?sj(t):null,p="numeric"==g?aj(t):null;return Object.freeze({index:e,value:t,lines:r,significant_digits:h,exponent:p,text_width:i,text_height:v,box_width:o,box_height:a,box_width_left:s,box_width_right:l,box_height_left:c,box_height_right:u,multiline_offset:d})})).type=g,a.max_box_height="fixed"===w.tick_label_space_mode?Kk(w.tick_label_space):y,Object.freeze(a),o},t.autoLabelSpace=xj(o,"height"),t}function Mj(o,t,e){var b=t[e],a=e+"Data",s=e+"Format",l=e+"Ticks",c=Object.freeze([]),u=o.chart.select(".fl-y-axes"),n,e=function t(){return c};return e._update=function t(e){var p=o[a]().string_array?"string":"numeric",n=nj(my(".fl-y-axes"),b.tick_label_size,b.tick_label_weight),g="default"===b.tick_label_position?+b.tick_label_angle:0,_=0,y=o[s](),m;u.append("text").style("opacity",0).style("font",n).each(function(){var t=my(this).text(yj).node().getBoundingClientRect();m=t.height}).remove(),"object"===ig(e[0])&&(e=vj(e,y));var r=Kk(b.tick_label_space);"auto"===b.tick_label_space_mode&&(r=o[l].autoLabelSpace().px);var i,v=bj({text_height:m,max_space:r,font:n,angle:g,max_lines:g?1:b.tick_label_max_lines});return(c=e.map(function(t,e){var n=v(y(t)),r=n.lines,i=n.text_width,o,a,s,l,c,u,d=0,n=m*r.length+(r.length-1)*b.tick_label_line_height,f,h,f,s,l,c,u,o,a;0==g||90==g?(l=s=o=g?n:i,c=u=(a=g?i+Kk(.5):n)/2,0==g&&(d=r.length<2?0:(r.length-1)/2*(m*b.tick_label_line_height))):(f=mj(g),o=(s=n*(h=Math.sin(f)))+(l=i*(f=Math.cos(f))),a=(c=n*f)+(u=i*h)),_=Math.max(_,o);var f="numeric"==p?sj(t):null,h="numeric"==p?aj(t):null;return Object.freeze({index:e,value:t,lines:r,type:p,significant_digits:f,exponent:h,text_width:i,text_height:m,box_width:o,box_height:a,box_width_above:s,box_width_below:l,box_height_above:c,box_height_below:u,multiline_offset:d})})).type=p,c.max_box_width="fixed"===b.tick_label_space_mode?Kk(b.tick_label_space):_,Object.freeze(c),o},e.autoLabelSpace=xj(o),e}function kj(t,e){return Mj(t,e,"y")}function jj(t,e){return Mj(t,e,"y2")}function Aj(e){var n="";return function(t){return void 0===t?n:(n=t,e)}}function Ij(e,n){return e.xAutoTitle=Aj(e),e.xAutoTitle("X"),function(){var t;return("auto"===n.x.title_mode?e.xAutoTitle():n.x.title).trim()}}function Tj(e,n){return e.yAutoTitle=Aj(e),e.yAutoTitle("Y"),function(){var t;return("auto"===n.y.title_mode?e.yAutoTitle():n.y.title).trim()}}function Nj(e,n){return e.y2AutoTitle=Aj(e),e.y2AutoTitle("Y2"),function(){var t;return("auto"===n.y2.title_mode?e.y2AutoTitle():n.y2.title).trim()}}function zj(t,e){var n=e.x,r=t.xTitle();if("off"===n.axis_visible||!r)return 0;var e=t.chart.select(".fl-x-axis .fl-axis-title"),t=nj(e,n.title_size,n.title_weight),r=e.append("text").text(r).style("opacity",0).style("font",t),t=r.node().getBoundingClientRect().height;return r.remove(),t+2*Kk(n.title_padding)}function Ej(t,e){var n=e.y,r=t.yTitle();if(!n.axis_visible||!r)return 0;var e=t.chart.select(".fl-left-axis .fl-axis-title"),t=nj(e,n.title_size,n.title_weight),r=e.append("text").text(r).style("opacity",0).style("font",t),t=r.node().getBoundingClientRect().height;return r.remove(),t+2*Kk(n.title_padding)}function Sj(t,e){var n=e.y2,r=t.y2Title();if(!n.axis_visible||!r)return 0;var e=t.chart.select(".fl-right-axis .fl-axis-title"),t=nj(e,n.title_size,n.title_weight),r=e.append("text").text(r).style("opacity",0).style("font",t),t=r.node().getBoundingClientRect().height;return r.remove(),t+2*Kk(n.title_padding)}function Lj(t,e){var n=e.x,r=n.axis_position;if("off"===r)return 0;var i=0,o=0,a=0,r,i,a,o,s;return"top"!==r&&"bottom"!=r||(i=(r=t.xTicks()).length&&"out"===n.tick_side&&"default"===n.tick_label_position?Kk(n.tick_length):0,a=r.max_box_height||0,o=r.length?Kk(n.tick_padding):0),i+o+a+zj(t,e)}function Dj(t,e){var n=e.x,r=0;t.xHide()||-1===["top","float-above"].indexOf(n.axis_position)||(r=Lj(t,e));var i=0,o=0,n=t.yHide()?[]:t.yTicks(),n;n.length&&(n=n[n.length-1],"default"==e.y.tick_label_position?i=.9*n.box_height_above:"above"==e.y.tick_label_position&&(i+=n.box_height));var t=t.y2Hide()?[]:t.y2Ticks(),t;t.length&&(t=t[t.length-1],"default"==e.y2.tick_label_position?o=.9*t.box_height_above:"above"==e.y2.tick_label_position&&(o+=t.box_height));var o=Math.max(Kk(.25),i,o);return Math.max(r,o)}function Cj(t,e){var n=e.x,r=0;t.xHide()||-1===["bottom","float-below"].indexOf(n.axis_position)||(r=Lj(t,e));var i=0,o=0,n=t.yHide()?[]:t.yTicks(),n;n.length&&(n=n[0],"default"==e.y.tick_label_position?i=.9*n.box_height_below:"below"==e.y.tick_label_position&&(i+=n.box_height));var t=t.y2Hide()?[]:t.y2Ticks(),t;t.length&&(t=t[0],"default"==e.y2.tick_label_position?o=.9*t.box_height_below:"below"==e.y2.tick_label_position&&(o+=t.box_height));var o=Math.max(Kk(.25),i,o);return Math.max(r,o)}function Oj(t,e){var n=e.y,r=0,i,o,a,s,l,r;n.axis_visible&&(r=((i=t.yHide()?[]:t.yTicks()).length&&"out"===n.tick_side&&"default"===n.tick_label_position?Kk(n.tick_length):0)+(i.length?Kk(n.tick_padding):0)+(i.max_box_width||0)+(t.yHide()?0:Ej(t,e)));var n=Kk(.25),i=0,t=t.xHide()?[]:t.xTicks(),t;return t.length&&(t=t[0],"default"==e.x.tick_label_position?i=.9*t.box_width_left:"left"==e.x.tick_label_position&&(i=t.box_width),n=Math.max(n,i)),Math.max(r,n)}function Pj(t,e){var n=e.y2,r=0,i,o,a,s,l,r;n.axis_visible&&(r=((i=t.y2Hide()?[]:t.y2Ticks()).length&&"out"===n.tick_side&&"default"===n.tick_label_position?Kk(n.tick_length):0)+(i.length?Kk(n.tick_padding):0)+(i.max_box_width||0)+(t.y2Hide()?0:Sj(t,e)));var n=Kk(.25),i=0,t=t.xHide()?[]:t.xTicks(),t;return t.length&&(t=t[t.length-1],"default"==e.x.tick_label_position?i=.9*t.box_width_right:"right"==e.x.tick_label_position&&(i=t.box_width),n=Math.max(n,i)),Math.max(r,n)}function Rj(n,r){var i,o,a,s,t,e=function t(){return{top:i,right:o,bottom:a,left:s}};return e._update=function t(e){i=void 0!==(e=e||{}).top?e.top:Dj(n,r),o=void 0!==e.right?e.right:Pj(n,r),a=void 0!==e.bottom?e.bottom:Cj(n,r),s=void 0!==e.left?e.left:Oj(n,r)},Object.defineProperty(e,"top",{get:function t(){return i}}),Object.defineProperty(e,"right",{get:function t(){return o}}),Object.defineProperty(e,"bottom",{get:function t(){return a}}),Object.defineProperty(e,"left",{get:function t(){return s}}),e}var Yj="$";function Uj(){}function Bj(t,e){var n=new Uj;if(t instanceof Uj)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var r=-1,i=t.length,o;if(null==e)for(;++r<i;)n.set(r,t[r]);else for(;++r<i;)n.set(e(o=t[r],r,t),o)}else if(t)for(var a in t)n.set(a,t[a]);return n}function Fj(){var f=[],o=[],h,p,n;function g(t,n,r,i){if(n>=f.length)return null!=h&&t.sort(h),null!=p?p(t):t;for(var e=-1,o=t.length,a=f[n++],s,l,c=Bj(),u,d=r();++e<o;)(u=c.get(s=a(l=t[e])+""))?u.push(l):c.set(s,[l]);return c.each(function(t,e){i(d,e,g(t,n,r,i))}),d}function a(t,n){if(++n>f.length)return t;var r,i=o[n-1];return null!=p&&n>=f.length?r=t.entries():(r=[],t.each(function(t,e){r.push({key:e,values:a(t,n)})})),null!=i?r.sort(function(t,e){return i(t.key,e.key)}):r}return n={object:function t(e){return g(e,0,Zj,Hj)},map:function t(e){return g(e,0,Gj,Qj)},entries:function t(e){return a(g(e,0,Gj,Qj),0)},key:function t(e){return f.push(e),n},sortKeys:function t(e){return o[f.length-1]=e,n},sortValues:function t(e){return h=e,n},rollup:function t(e){return p=e,n}}}function Zj(){return{}}function Hj(t,e,n){t[e]=n}function Gj(){return Bj()}function Qj(t,e,n){t.set(e,n)}function qj(){}Uj.prototype=Bj.prototype={constructor:Uj,has:function t(e){return Yj+e in this},get:function t(e){return this[Yj+e]},set:function t(e,n){return this[Yj+e]=n,this},remove:function t(e){var e=Yj+e;return e in this&&delete this[e]},clear:function t(){for(var e in this)e[0]===Yj&&delete this[e]},keys:function t(){var t=[],e;for(e in this)e[0]===Yj&&t.push(e.slice(1));return t},values:function t(){var t=[],e;for(e in this)e[0]===Yj&&t.push(this[e]);return t},entries:function t(){var t=[],e;for(e in this)e[0]===Yj&&t.push({key:e.slice(1),value:this[e]});return t},size:function t(){var t=0,e;for(e in this)e[0]===Yj&&++t;return t},empty:function t(){for(var e in this)if(e[0]===Yj)return!1;return!0},each:function t(e){for(var n in this)n[0]===Yj&&e(this[n],n.slice(1),this)}};var z=Bj.prototype;function Vj(t,e){var n=new qj;if(t instanceof qj)t.each(function(t){n.add(t)});else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}qj.prototype=Vj.prototype={constructor:qj,has:z.has,add:function t(e){return this[Yj+(e+="")]=e,this},remove:z.remove,clear:z.clear,values:z.keys,size:z.size,empty:z.empty,each:z.each};var Ge=Array.prototype,Wj=Ge.map,$j=Ge.slice,Xj={name:"implicit"};function Jj(r){var o=Bj(),a=[],i=Xj;function s(t){var e=t+"",n=o.get(e);if(!n){if(i!==Xj)return i;o.set(e,n=a.push(t))}return r[(n-1)%r.length]}return r=null==r?[]:$j.call(r),s.domain=function(t){if(!arguments.length)return a.slice();a=[],o=Bj();for(var e=-1,n=t.length,r,i;++e<n;)o.has(i=(r=t[e])+"")||o.set(i,a.push(r));return s},s.range=function(t){return arguments.length?(r=$j.call(t),s):r.slice()},s.unknown=function(t){return arguments.length?(i=t,s):i},s.copy=function(){return Jj().domain(a).range(r).unknown(i)},s}function Kj(){var t=Jj().unknown(void 0),i=t.domain,o=t.range,a=[0,1],s,l,c=!1,u=0,d=0,f=.5;function e(){var t=i().length,e=a[1]<a[0],n=a[+e],r=a[1-e];s=(r-n)/Math.max(1,t-u+2*d),c&&(s=Math.floor(s)),n+=(r-n-s*(t-u))*f,l=s*(1-u),c&&(n=Math.round(n),l=Math.round(l));var t=_k(t).map(function(t){return n+s*t});return o(e?t.reverse():t)}return delete t.unknown,t.domain=function(t){return arguments.length?(i(t),e()):i()},t.range=function(t){return arguments.length?(a=[+t[0],+t[1]],e()):a.slice()},t.rangeRound=function(t){return a=[+t[0],+t[1]],c=!0,e()},t.bandwidth=function(){return l},t.step=function(){return s},t.round=function(t){return arguments.length?(c=!!t,e()):c},t.padding=function(t){return arguments.length?(u=d=Math.max(0,Math.min(1,t)),e()):u},t.paddingInner=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),e()):u},t.paddingOuter=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),e()):d},t.align=function(t){return arguments.length?(f=Math.max(0,Math.min(1,t)),e()):f},t.copy=function(){return Kj().domain(i()).range(a).round(c).paddingInner(u).paddingOuter(d).align(f)},e()}function tA(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return tA(e())},t}function eA(){return tA(Kj().paddingInner(1))}function nA(t){return function(){return t}}function rA(t){return+t}var iA=[0,1];function oA(e,n){return(n-=e=+e)?function(t){return(t-e)/n}:nA(n)}function aA(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:n<=t?1:r(t)}}}function sA(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:1<=t?n:r(t)}}}function lA(t,e,n,r){var i=t[0],t=t[1],o=e[0],e=e[1],o=t<i?(i=n(t,i),r(e,o)):(i=n(i,t),r(o,e));return function(t){return o(i(t))}}function cA(n,t,e,r){var i=Math.min(n.length,t.length)-1,o=new Array(i),a=new Array(i),s=-1;for(n[i]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=e(n[s],n[s+1]),a[s]=r(t[s],t[s+1]);return function(t){var e=dk(n,t,1,i)-1;return a[e](o[e](t))}}function uA(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function dA(e,n){var r=iA,i=iA,o=ob,a=!1,s,l,c;function u(){return s=2<Math.min(r.length,i.length)?cA:lA,l=c=null,t}function t(t){return(l=l||s(r,i,a?aA(e):e,o))(+t)}return t.invert=function(t){return(c=c||s(i,r,oA,a?sA(n):n))(+t)},t.domain=function(t){return arguments.length?(r=Wj.call(t,rA),u()):r.slice()},t.range=function(t){return arguments.length?(i=$j.call(t),u()):i.slice()},t.rangeRound=function(t){return i=$j.call(t),o=ab,u()},t.clamp=function(t){return arguments.length?(a=!!t,u()):a},t.interpolate=function(t){return arguments.length?(o=t,u()):o},u()}function fA(t){return 1e21<=Math.abs(t=Math.round(t))?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function hA(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,e=t.slice(0,n);return[1<e.length?e[0]+e.slice(2):e,+t.slice(n+1)]}function pA(t){return(t=hA(Math.abs(t)))?t[1]:NaN}function gA(s,l){return function(t,e){for(var n=t.length,r=[],i=0,o=s[0],a=0;0<n&&0<o&&(e<a+o+1&&(o=Math.max(1,e-a)),r.push(t.substring(n-=o,n+o)),!((a+=o+1)>e));)o=s[i=(i+1)%s.length];return r.reverse().join(l)}}function _A(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var yA=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,mA;function vA(t){if(!(e=yA.exec(t)))throw new Error("invalid format: "+t);var e;return new bA({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function bA(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function xA(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":0===r&&(r=n),i=n;break;default:if(!+t[n])break t;0<r&&(r=0)}return 0<r?t.slice(0,r)+t.slice(i+1):t}function wA(t,e){var n=hA(t,e);if(!n)return t+"";var r=n[0],i=n[1],n=i-(mA=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,i=r.length;return n===i?r:i<n?r+new Array(n-i+1).join("0"):0<n?r.slice(0,n)+"."+r.slice(n):"0."+new Array(1-n).join("0")+hA(t,Math.max(0,e+n-1))[0]}function MA(t,e){var e=hA(t,e);if(!e)return t+"";var t=e[0],e=e[1];return e<0?"0."+new Array(-e).join("0")+t:t.length>e+1?t.slice(0,e+1)+"."+t.slice(e+1):t+new Array(e-t.length+2).join("0")}vA.prototype=bA.prototype,bA.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var kA={"%":function t(e,n){return(100*e).toFixed(n)},b:function t(e){return Math.round(e).toString(2)},c:function t(e){return e+""},d:fA,e:function t(e,n){return e.toExponential(n)},f:function t(e,n){return e.toFixed(n)},g:function t(e,n){return e.toPrecision(n)},o:function t(e){return Math.round(e).toString(8)},p:function t(e,n){return MA(100*e,n)},r:MA,s:wA,X:function t(e){return Math.round(e).toString(16).toUpperCase()},x:function t(e){return Math.round(e).toString(16)}};function jA(t){return t}var AA=Array.prototype.map,IA=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],TA,NA,zA;function EA(t){var w=void 0===t.grouping||void 0===t.thousands?jA:gA(AA.call(t.grouping,Number),t.thousands+""),r=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",M=void 0===t.decimal?".":t.decimal+"",k=void 0===t.numerals?jA:_A(AA.call(t.numerals,String)),o=void 0===t.percent?"%":t.percent+"",j=void 0===t.minus?"-":t.minus+"",A=void 0===t.nan?"NaN":t.nan+"";function a(t){var c=(t=vA(t)).fill,u=t.align,d=t.sign,e=t.symbol,f=t.zero,h=t.width,p=t.comma,g=t.precision,_=t.trim,y=t.type;"n"===y?(p=!0,y="g"):kA[y]||(void 0===g&&(g=12),_=!0,y="g"),(f||"0"===c&&"="===u)&&(f=!0,c="0",u="=");var m="$"===e?r:"#"===e&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",v="$"===e?i:/[%p]/.test(y)?o:"",b=kA[y],x=/[defgprs%]/.test(y);function n(t){var e=m,n=v,r,i,o;if("c"===y)n=b(t)+n,t="";else{var a=(t=+t)<0||1/t<0;if(t=isNaN(t)?A:b(Math.abs(t),g),_&&(t=xA(t)),e=((a=a&&0==+t&&"+"!==d?!1:a)?"("===d?d:j:"-"===d||"("===d?"":d)+e,n=("s"===y?IA[8+mA/3]:"")+n+(a&&"("===d?")":""),x)for(r=-1,i=t.length;++r<i;)if((o=t.charCodeAt(r))<48||57<o){n=(46===o?M+t.slice(r+1):t.slice(r))+n,t=t.slice(0,r);break}}p&&!f&&(t=w(t,1/0));var s=e.length+t.length+n.length,l=s<h?new Array(h-s+1).join(c):"";switch(p&&f&&(t=w(l+t,l.length?h-n.length:1/0),l=""),u){case"<":t=e+t+n+l;break;case"=":t=e+l+t+n;break;case"^":t=l.slice(0,s=l.length>>1)+e+t+n+l.slice(s);break;default:t=l+e+t+n}return k(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),n.toString=function(){return t+""},n}function e(t,e){var n=a(((t=vA(t)).type="f",t)),e=3*Math.max(-8,Math.min(8,Math.floor(pA(e)/3))),r=Math.pow(10,-e),i=IA[8+e/3];return function(t){return n(r*t)+i}}return{format:a,formatPrefix:e}}function SA(t){return TA=EA(t),NA=TA.format,zA=TA.formatPrefix,TA}function LA(t){return Math.max(0,-pA(Math.abs(t)))}function DA(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(pA(e)/3)))-pA(Math.abs(t)))}function CA(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,pA(e)-pA(t))+1}function OA(t,e,n){var r=t[0],i=t[t.length-1],o=wk(r,i,null==e?10:e),a;switch((n=vA(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(r),Math.abs(i));return null!=n.precision||isNaN(a=DA(o,s))||(n.precision=a),zA(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(a=CA(o,Math.max(Math.abs(r),Math.abs(i))))||(n.precision=a-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(a=LA(o))||(n.precision=a-2*("%"===n.type))}return NA(n)}function PA(s){var l=s.domain;return s.ticks=function(t){var e=l();return bk(e[0],e[e.length-1],null==t?10:t)},s.tickFormat=function(t,e){return OA(l(),t,e)},s.nice=function(t){null==t&&(t=10);var e=l(),n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=i,i=o,o=a,a=n,n=r,r=a),0<(a=xk(i,o,t))?a=xk(i=Math.floor(i/a)*a,o=Math.ceil(o/a)*a,t):a<0&&(a=xk(i=Math.ceil(i*a)/a,o=Math.floor(o*a)/a,t)),0<a?(e[n]=Math.floor(i/a)*a,e[r]=Math.ceil(o/a)*a,l(e)):a<0&&(e[n]=Math.ceil(i*a)/a,e[r]=Math.floor(o*a)/a,l(e)),s},s}function RA(){var t=dA(oA,Jv);return t.copy=function(){return uA(t,RA())},PA(t)}function YA(t,e){var n=0,r=(t=t.slice()).length-1,i=t[n],o=t[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),t[n]=e.floor(i),t[r]=e.ceil(o),t}function UA(e,n){return(n=Math.log(n/e))?function(t){return Math.log(t/e)/n}:nA(n)}function BA(e,n){return e<0?function(t){return-Math.pow(-n,t)*Math.pow(-e,1-t)}:function(t){return Math.pow(n,t)*Math.pow(e,1-t)}}function FA(t){return isFinite(t)?+("1e"+t):t<0?0:t}function ZA(e){return 10===e?FA:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function HA(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function GA(e){return function(t){return-e(-t)}}function QA(){var e=dA(UA,BA).domain([1,10]),u=e.domain,d=10,f=HA(10),h=ZA(10);function n(){return f=HA(d),h=ZA(d),u()[0]<0&&(f=GA(f),h=GA(h)),e}return e.base=function(t){return arguments.length?(d=+t,n()):d},e.domain=function(t){return arguments.length?(u(t),n()):u()},e.ticks=function(t){var e=u(),n=e[0],r=e[e.length-1],e;(e=r<n)&&(i=n,n=r,r=i);var i=f(n),o=f(r),a,s,l,t=null==t?10:+t,c=[];if(!(d%1)&&o-i<t){if(i=Math.round(i)-1,o=Math.round(o)+1,0<n){for(;i<o;++i)for(s=1,a=h(i);s<d;++s)if(!((l=a*s)<n)){if(r<l)break;c.push(l)}}else for(;i<o;++i)for(s=d-1,a=h(i);1<=s;--s)if(!((l=a*s)<n)){if(r<l)break;c.push(l)}}else c=bk(i,o,Math.min(o-i,t)).map(h);return e?c.reverse():c},e.tickFormat=function(t,n){if("function"!=typeof(n=null==n?10===d?".0e":",":n)&&(n=NA(n)),t===1/0)return n;null==t&&(t=10);var r=Math.max(1,d*t/e.ticks().length);return function(t){var e=t/h(Math.round(f(t)));return e*d<d-.5&&(e*=d),e<=r?n(t):""}},e.nice=function(){return u(YA(u(),{floor:function t(e){return h(Math.floor(f(e)))},ceil:function t(e){return h(Math.ceil(f(e)))}}))},e.copy=function(){return uA(e,QA().base(d))},e}SA({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var qA=1e3,VA=60*qA,WA=60*VA,$A=24*WA,XA=7*$A,JA=30*$A,KA=365*$A;function tI(t){return new Date(t)}function eI(t){return t instanceof Date?+t:+new Date(+t)}function nI(a,e,n,r,i,o,s,l,c){var u=dA(oA,Jv),d=u.invert,f=u.domain,h=c(".%L"),p=c(":%S"),g=c("%I:%M"),_=c("%I %p"),y=c("%a %d"),m=c("%b %d"),v=c("%B"),b=c("%Y"),x=[[s,1,qA],[s,5,5*qA],[s,15,15*qA],[s,30,30*qA],[o,1,VA],[o,5,5*VA],[o,15,15*VA],[o,30,30*VA],[i,1,WA],[i,3,3*WA],[i,6,6*WA],[i,12,12*WA],[r,1,$A],[r,2,2*$A],[n,1,XA],[e,1,JA],[e,3,3*JA],[a,1,KA]];function w(t){return(s(t)<t?h:o(t)<t?p:i(t)<t?g:r(t)<t?_:e(t)<t?n(t)<t?y:m:a(t)<t?v:b)(t)}function M(t,e,n,r){var i,o;return"number"==typeof(t=null==t?10:t)&&(i=Math.abs(n-e)/t,t=(o=lk(function(t){return t[2]}).right(x,i))===x.length?(r=wk(e/KA,n/KA,t),a):o?(r=(o=x[i/x[o-1][2]<x[o][2]/i?o-1:o])[1],o[0]):(r=Math.max(wk(e,n,t),1),l)),null==r?t:t.every(r)}return u.invert=function(t){return new Date(d(t))},u.domain=function(t){return arguments.length?f(Wj.call(t,eI)):f().map(tI)},u.ticks=function(t,e){var n=f(),r=n[0],i=n[n.length-1],n=i<r,o;return n&&(o=r,r=i,i=o),o=(o=M(t,r,i,e))?o.range(r,i+1):[],n?o.reverse():o},u.tickFormat=function(t,e){return null==e?w:c(e)},u.nice=function(t,e){var n=f();return(t=M(t,n[0],n[n.length-1],e))?f(YA(n,t)):u},u.copy=function(){return uA(u,nI(a,e,n,r,i,o,s,l,c))},u}function rI(){return nI(nw,ew,Vx,Qx,Gx,Hx,Zx,Px,ww).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}var iI=1e3;function oI(t,e){var e=e.edge_padding,e=eA().domain(t.unique()).padding(e/100);return e.type="ordinal",e}function aI(t,e){var n=e.min,r=e.max,i=e.include_zero,e=e.nice,o=100,a,i,a;return null!==(n=n===r?r=null:n)&&null!==r?[n,r]:(t.range?(a=t.extent(),e&&(a=RA().domain(a).nice().domain()),i&&(0<=a[0]?a[0]=0:a[1]<0&&(a[1]=0))):a=t.length?0<(i=t.min)?[0,2*i]:i<0?[2*i,0]:[-50,50]:[0,100],null!==n?(a[0]=n,a[0]===a[1]&&(a[1]=n+(t.range||100))):null!==r&&(a[1]=r,a[0]===a[1]&&(a[0]=r-(t.range||100))),a)}function sI(t,e){var e=aI(t,e),e=RA().domain(e);return e.type="numeric",e}function lI(t,e){var n=e.min,r=e.max,e=e.nice,t=t.extent();t[0]<=0&&(0<t[1]?t[0]=Math.min(1,t[1]/iI):t[0]=1),t[1]<=t[0]&&(t[1]=iI*t[0]);var t=QA().domain(t);e&&t.nice();var e=t.domain();return 0<(n=n===r?r=null:n)&&(e[0]=n),0<r&&(e[1]=r),t.domain(e),t.type="numeric",t}function cI(t,e){var n=e.min,r=e.max,i=e.format,e=e.nice,t=t.extent(),t=rI().domain(t);e&&t.nice(),i&&t.tickFormat(null,i);var e=t.domain();return(n=n===r?r=null:n)&&(e[0]=i(n)),r&&(e[1]=i(r)),t.domain(e),t.type="datetime",t}function uI(e){var n=!1;return function(t){return void 0===t?n:(n=!!t,e)}}function dI(o,t){var a=t.x;return function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=o.xData(),n={nice:a.nice},r;e.string_array?(r=oI,n.edge_padding=a.edge_padding):e.datetime_array?(r=cI,n.min=a.datetime_min,n.max=a.datetime_max,n.format=o.xDatetimeParse()):"log"===a.numeric_scale_type?(r=lI,n.min=a.log_min,n.max=a.log_max):(r=sI,n.min=a.linear_min,n.max=a.linear_max,n.include_zero="off"!==a.zero_axis&&("on"===a.zero_axis||o.xZeroAxis()));var r=r(e,n);if(t.domain_only)return r;var e=o.plot_width,n=o.margins.left,i=t.global&&o.offsetLeft(),e=[n,n+e];return i&&(e=e.map(function(t){return t+i})),r.range(e)}}function fI(o,t){var a=t.y;return function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=o.yData(),n={nice:a.nice},r;e.string_array?(r=oI,n.edge_padding=a.edge_padding):e.datetime_array?(r=cI,n.min=a.datetime_min,n.max=a.datetime_max,n.format=o.yDatetimeParse()):"log"===a.numeric_scale_type?(r=lI,n.min=a.log_min,n.max=a.log_max):(r=sI,n.min=a.linear_min,n.max=a.linear_max,n.include_zero="off"!==a.zero_axis&&("on"===a.zero_axis||o.yZeroAxis()));var r=r(e,n);if(t.domain_only)return r;var e=o.plot_height,n=o.margins.top,i=t.global&&o.offsetTop(),e=[n,n+e];return i&&(e=e.map(function(t){return t+i})),r.range(e.reverse())}}function hI(o,t){var a=t.y2;return function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=o.y2Data(),n={nice:a.nice},r;e.string_array?(r=oI,n.edge_padding=a.edge_padding):e.datetime_array?(r=cI,n.min=a.datetime_min,n.max=a.datetime_max,n.format=o.y2DatetimeParse()):"log"===a.numeric_scale_type?(r=lI,n.min=a.log_min,n.max=a.log_max):(r=sI,n.min=a.linear_min,n.max=a.linear_max,n.include_zero="off"!==a.zero_axis&&("on"===a.zero_axis||o.y2ZeroAxis()));var r=r(e,n);if(t.domain_only)return r;var e=o.plot_height,n=o.margins.top,i=t.global&&o.offsetTop(),e=[n,n+e];return i&&(e=e.map(function(t){return t+i})),r.range(e.reverse())}}function pI(e){var n=!1,r=!1;return function(t){return void 0===t?!!n&&{keep_gridlines:r}:(n=!!t,r=!(!t||"object"!==ig(t)||!t.keep_gridlines),e)}}function gI(a,s){var l=a.chart.select("clipPath.fl-data-clip-path"),c=l.select("rect"),u=a.chart.select("clipPath.fl-grid-clip-path"),d=u.select("rect"),f=a.chart.select(".fl-data-background"),h=a.chart.select(".fl-data-foreground"),p=a.chart.select(".fl-gridlines");return function(){var t=a.identifier()+"-clip-path",e="url(#"+t+")";l.attr("id",t);var n=a.identifier()+"-grid-clip-path",r="url(#"+n+")";u.attr("id",n),f.attr("clip-path",e),h.attr("clip-path",e),p.attr("clip-path",r);var i=a.xScale().range(),o=a.yScale().range(),t=a.clip(),n=t.left?i[0]:0,e=t.top?o[1]:0,r=Math.max((t.right?i[1]:a.width())-n,1),t=Math.max((t.bottom?o[0]:a.height())-e,1);c.attr("x",n).attr("y",e).attr("width",r).attr("height",t);var r=Kk(s.x.gridline_width,!0),t=Kk(s.y.gridline_width,!0);d.transition().duration(a.animationDuration()).attr("x",i[0]-r).attr("y",o[1]-t).attr("width",i[1]-i[0]+2*r).attr("height",o[0]-o[1]+2*t)}}function _I(i,t){var o=t.background,a=i.chart.select("rect.fl-chart-fill"),s=i.chart.select("image.fl-chart-image"),l=i.chart.select("rect.fl-chart-interaction");return function(){var t=i.xScale().range(),e=i.yScale().range(),n=t[0],r=e[1],t=Math.max(i.plot_width,1),e=Math.max(i.plot_height,1);a.attr("x",n).attr("y",r).attr("width",t).attr("height",e).attr("fill",o.background_color_enabled?o.background_color:"none"),s.attr("x",n).attr("y",r).attr("width",t).attr("height",e).attr("xlink:href",o.background_image_enabled?o.background_image_src:null).attr("preserveAspectRatio",function(){return"stretch"==o.background_image_size?"none":o.background_image_position+" "+o.background_image_size}),l.attr("x",n).attr("y",r).attr("width",t).attr("height",e)}}function yI(t,e){var n=t.significant_digits-e.significant_digits;return n||((n=e.exponent-t.exponent)||(n=Math.abs(e.value)-Math.abs(t.value))?n:n=e.value-t.value)}function mI(t){t.style("user-select","none").style("-moz-user-select","none").style("-webkit-user-select","none").style("-ms-user-select","none").style("cursor","default")}function vI(p,g){var _=g.x,y,m,v,b,x,w,M,k,j,A,I,T,i,N,z,E;function n(){y=uj(p.xScale()),m=uj(p.yScale()),v=i?p.animationDuration():0;var t=y.range();T=(t[0]+t[1])/2,N=(i=i||y).type===y.type&&"ordinal"!==y.type?i:y,z=i.type===y.type&&"ordinal"!==i.type?y:i,b=_.line_and_tick_color,x=Kk(_.line_and_tick_width,!0),w=_.tick_label_color;var e="default"===_.tick_label_position,n=p.xTicks(),r=n.max_box_height,t=n.length?Kk(_.tick_padding):0;"top"!=_.axis_position&&"bottom"!=_.axis_position||(r+=t);var n="out"===_.tick_side;M=e?Kk(_.tick_length)*(n?1:-1):r,k=Kk(_.tick_label_size),j=(n&&e?M:0)+t,A=Kk(_.title_size),I=p.xTitle()}var r=(t=p.chart.select("g.fl-bottom-axis"),S=t.select("g.fl-axis-line"),L=t.select("g.fl-axis-ticks"),D=t.select("g.fl-axis-title"),function(){var d=_.axis_position,t={pos:d},e=!p.xHide()&&-1!==["bottom","float-below"].indexOf(d),n=e?p.xTicks():[],r=m.range()[0],i=(E||m).range()[0],o=r+Kk(_.title_padding);function a(t,e){return void 0===t||isNaN(t)?e:t}"bottom"===d&&(o+=j+n.max_box_height,t.extended_gridline=r+j+n.max_box_height);var s=i,l=r;"float-below"===d&&(s=a((E||m)(_.y_axis_position),i),l=a(m(_.y_axis_position),r));var i=S.selectAll("line").data(e&&_.line_visible?[y.domain()]:[]);i.exit().style("stroke",b).style("stroke-width",x).transition().duration(v).attr("x1",function(t){return z(t[0])}).attr("x2",function(t){return z(t[1])}).attr("y1",l).attr("y2",l).style("opacity",0).remove();var r=i.enter().append("line").style("shape-rendering","crispEdges").style("stroke-linecap","square").style("stroke-width",x).attr("x1",function(t){return N(t[0])}).attr("x2",function(t){return N(t[1])}).attr("y1",s).attr("y2",s).style("opacity",0);i.merge(r).style("stroke",b).style("stroke-width",x).transition().duration(v).attr("x1",y.range()[0]).attr("x2",y.range()[1]).attr("y1",l).attr("y2",l).style("opacity",1);var r=e?n:[];"numeric"===n.type&&"custom"!==_.tick_mode&&(r=n.slice().sort(yI));var c=function t(e){var n="default"==_.tick_label_position?-_.tick_label_angle:-90,r=ij(n,0,0);if("default"===_.tick_label_position)return 0==n?rj(e.text_width/2,j+.66*k):-90==n?rj(0,j)+" "+r+" "+rj(0,.33*k-e.multiline_offset):rj(0,j)+" "+r+" "+rj(0,.66*k);var e="left"===_.tick_label_position?-.3:1;return rj(0,j)+" "+r+" "+rj(0,k*e)},n=L.selectAll("g").data(r,function(t){return t.type+"-"+t.value}),r=n.exit();r.transition().duration(v).attr("transform",function(t){return rj(z(t.value),l)}).style("opacity",0).remove(),r.each(function(){var t=my(this);t.select("line").style("stroke",b).style("stroke-width",x).transition().duration(v).attr("y2",M),t.select("text").style("fill",w).style("font-size",k+"px").style("font-weight",_.tick_label_weight).attr("transform",c).transition().duration(v)});var r=n.enter().append("g").style("opacity",0);r.attr("transform",function(t){return rj(N(t.value),s)}),r.each(function(){var t=my(this);t.append("line").attr("y2",M),t.append("text").attr("text-anchor","middle").attr("transform",c).call(mI)});var r=n.merge(r);r.transition().duration(v).style("opacity",1).attr("transform",function(t){return rj(y(t.value),l)});var u=(f=[],h=l+j,function(t){var e=y(t.value);if("float-below"===d){var n=y.range(),r,i;if(g.y.axis_visible)if(e-t.box_width_left<n[0])return 0;if(g.y2.axis_visible)if(e+t.box_width_right>n[1])return 0}for(var n=[e,h],o,a,s=[n,[e+t.box_width_right,h+t.box_height_right]],l=[n,[e-t.box_width_left,h+t.box_height_left]],c=0;c<f.length;c++){var u=f[c];if(e<=u.x_anchor){if(lj(s,u.q))return 0}else if(lj(u.p,l))return 0}return f.push({x_anchor:e,p:s,q:l}),1}),f,h;r.each(function(){var t=my(this);t.select("line").style("stroke",b).style("stroke-width",x).transition().duration(v).attr("y2",M),t.select("text").each(function(){var t=my(this).selectAll("tspan").data(function(t){return t.lines});t.merge(t.enter().append("tspan")).attr("x",0).attr("dy",function(t,e){return e?_.tick_label_line_height+"em":0}).text(function(t){return t}),t.exit().remove()}).attr("text-anchor","end").style("fill",w).style("font-size",k+"px").style("font-weight",_.tick_label_weight).transition().duration(v).style("opacity",u).attr("transform",c)});var e=D.selectAll("text").data(e&&I?[I]:[]);return e.exit().remove(),e.enter().append("text").attr("text-anchor","middle").style("font-size",A+"px").style("fill",_.title_color).style("font-weight",_.title_weight).call(mI).transition().duration(0).delay(v).text(function(t){return t}).attr("x",T).attr("y",o).attr("dy",A),e.text(function(t){return t}).style("fill",_.title_color).style("font-size",A+"px").style("font-weight",_.title_weight).transition().duration(v).attr("x",T).attr("y",o).attr("dy",A),"bottom"==d?t:null}),t,S,L,D,o=(t=p.chart.select("g.fl-top-axis"),u=t.select("g.fl-axis-line"),C=t.select("g.fl-axis-ticks"),O=t.select("g.fl-axis-title"),function(){var d=_.axis_position,t={pos:d},e=!p.xHide()&&-1!==["top","float-above"].indexOf(d),n=e?p.xTicks():[],r=m.range()[1],i=(E||m).range()[1],o=r-Kk(_.title_padding);"top"===d&&(o-=j+n.max_box_height,t.extended_gridline=r-(j+n.max_box_height));var a="float-above"===d?(E||m)(_.y_axis_position):i,s="float-above"===d?m(_.y_axis_position):r,i=u.selectAll("line").data(e&&_.line_visible?[y.domain()]:[]);i.exit().style("stroke",b).style("stroke-width",x).transition().duration(v).attr("x1",function(t){return z(t[0])}).attr("x2",function(t){return z(t[1])}).attr("y1",s).attr("y2",s).style("opacity",0).remove();var r=i.enter().append("line").style("shape-rendering","crispEdges").style("stroke-linecap","square").style("stroke-width",x).attr("x1",function(t){return N(t[0])}).attr("x2",function(t){return N(t[1])}).attr("y1",a).attr("y2",a).style("opacity",0);i.merge(r).style("stroke",b).style("stroke-width",x).transition().duration(v).attr("x1",y.range()[0]).attr("x2",y.range()[1]).attr("y1",s).attr("y2",s).style("opacity",1);var r=[];e&&(r="numeric"===n.type?n.slice().sort(yI):n);var l=function t(e){var n="default"==_.tick_label_position?-_.tick_label_angle:-90,r=ij(n,0,0);if("default"===_.tick_label_position)return 0==n?rj(-e.text_width/2,-(j+.33*k)):-90==n?rj(0,-j)+" "+r+" "+rj(0,.33*k-e.multiline_offset):rj(0,-j)+" "+r+rj(0,-e.multiline_offset);var e="left"===_.tick_label_position?-.3:1;return rj(0,-j)+" "+r+" "+rj(0,k*e)},n=C.selectAll("g").data(r,function(t){return t.type+"-"+t.value}),r=n.exit();r.transition().duration(v).attr("transform",function(t){return rj(z(t.value),s)}).style("opacity",0).remove(),r.each(function(){var t=my(this);t.select("line").style("stroke",b).style("stroke-width",x).transition().duration(v).attr("y2",-M),t.select("text").style("fill",w).style("font-size",k+"px").style("font-weight",_.tick_label_weight).attr("transform",l).transition().duration(v)});var r=n.enter().append("g").style("opacity",0);r.attr("transform",function(t){return rj(N(t.value),a)}),r.each(function(){var t=my(this);t.append("line").attr("y2",-M),t.append("text").attr("text-anchor","middle").attr("transform",l).call(mI)});var r=n.merge(r);r.transition().duration(v).style("opacity",1).attr("transform",function(t){return rj(y(t.value),s)});var c=(f=[],h=s+j,function(t){var e=y(t.value);if("float-above"===d){var n=y.range(),r,i;if(g.y.axis_visible)if(e-t.box_width_left<n[0])return 0;if(g.y2.axis_visible)if(e+t.box_width_right>n[1])return 0}for(var n=[e,h],o,a,s=[n,[e-t.box_width_left,h-t.box_height_left]],l=[n,[e+t.box_width_right,h-t.box_height_right]],c=0;c<f.length;c++){var u=f[c];if(e<=u.x_anchor){if(lj(l,u.p))return 0}else if(lj(s,u.q))return 0}return f.push({x_anchor:e,p:s,q:l}),1}),f,h;r.each(function(){var t=my(this);t.select("line").style("stroke",b).style("stroke-width",x).transition().duration(v).attr("y2",-M),t.select("text").each(function(){var t=my(this).selectAll("tspan").data(function(t){return t.lines});t.merge(t.enter().append("tspan")).attr("x",0).attr("dy",function(t,e){return e?_.tick_label_line_height+"em":0}).text(function(t){return t}),t.exit().remove()}).attr("text-anchor","start").style("fill",w).style("font-size",k+"px").style("font-weight",_.tick_label_weight).transition().duration(v).style("opacity",c).attr("transform",l)});var e=O.selectAll("text").data(e&&I?[I]:[]);return e.exit().remove(),e.enter().append("text").attr("text-anchor","middle").style("font-size",A+"px").style("fill",_.title_color).style("font-weight",_.title_weight).call(mI).transition().duration(0).delay(v).text(function(t){return t}).attr("x",T).attr("y",o).attr("dy",-.33*A),e.text(function(t){return t}).style("fill",_.title_color).style("font-size",A+"px").style("font-weight",_.title_weight).transition().duration(v).attr("x",T).attr("y",o).attr("dy",-.33*A),"top"==d?t:null}),t,u,C,O;return function(){n();var t=r(),e=o();return i=y,E=m,t||e}}function bI(A,t){var e=A.chart.select("g.fl-left-axis"),I=e.select("g.fl-axis-line"),T=e.select("g.fl-axis-ticks"),N=e.select("g.fl-axis-title"),z=t.y,E,S;return function(){var t={},e=z.axis_visible&&!A.yHide(),n=uj(A.xScale()),c=uj(A.yScale()),o=e?A.yTicks():[],r=E?A.animationDuration():0;E=E||n,S=S||c;var i=n.range()[0],a=(E||n).range()[0],s=S.type===c.type&&"ordinal"!==c.type?S:c,l=S.type===c.type&&"ordinal"!==S.type?c:S,u=z.line_and_tick_color,d=Kk(z.line_and_tick_width,!0),f=z.tick_label_color,h="default"===z.tick_label_position,p="out"===z.tick_side,g=Kk(z.tick_padding),_=A.yTicks().max_box_width+g,y=h?Kk(z.tick_length)*(p?1:-1):_,m=Kk(z.tick_label_size),v=(p&&h?y:0)+g,_=A.yTitle(),p=Kk(z.title_size),b=v+o.max_box_width+Kk(z.title_padding)+.33*p;t.extended_gridline=i-(v+o.max_box_width);var h=c.range(),x=(h[0]+h[1])/2,g=I.selectAll("line").data(e&&z.line_visible?[c.domain()]:[]);g.exit().style("stroke",u).style("stroke-width",d).transition().duration(r).attr("x1",i).attr("x2",i).attr("y1",function(t){return l(t[1])}).attr("y2",function(t){return l(t[0])}).style("opacity",0).remove();var h=g.enter().append("line").style("shape-rendering","crispEdges").style("stroke-linecap","square").style("stroke-width",d).attr("x1",a).attr("x2",a).attr("y1",function(t){return s(t[1])}).attr("y2",function(t){return s(t[0])}).style("opacity",0);g.merge(h).style("stroke",u).style("stroke-width",d).transition().duration(r).attr("x1",i).attr("x2",i).attr("y1",function(t){return c(t[1])}).attr("y2",function(t){return c(t[0])}).style("opacity",1);var g=e?o:[];function w(t){var e,n;if("default"!==z.tick_label_position)return rj(-v-(o.max_box_width-t.box_width),("above"===z.tick_label_position?-.3:1)*m);var r=-z.tick_label_angle;if(0==r)return rj(-v,.33*m-t.multiline_offset);var i=rj(-v,0)+" "+ij(r);return-90==r&&(i+=" "+rj(t.text_width/2,0)),i}"numeric"===o.type&&"custom"!==z.tick_mode&&(g=o.slice().sort(yI));var h=T.selectAll("g").data(g,function(t){return t.type+"-"+t.value}),g=h.exit();g.transition().duration(r).attr("transform",function(t){return rj(i,l(t.value))}).style("opacity",0).remove(),g.each(function(){var t=my(this);t.select("line").style("stroke",u).style("stroke-width",d).transition().duration(r).attr("x2",-y),t.select("text").style("fill",f).style("font-size",m+"px").style("font-weight",z.tick_label_weight).attr("transform",w).transition().duration(r)});var g=h.enter().append("g").style("opacity",0);g.attr("transform",function(t){return rj(a,s(t.value))}),g.each(function(){var t=my(this);t.append("line").attr("x2",-y),t.append("text").attr("text-anchor","end").attr("transform",w).call(mI)});var g=h.merge(g);g.transition().duration(r).style("opacity",1).attr("transform",function(t){return rj(i,c(t.value))});var M=(k=[],j=i-v,function(t){for(var e=c(t.value),n=[j,e],r,i,o=[n,[j-t.box_width_above,e-t.box_height_above]],a=[n,[j-t.box_width_below,e+t.box_height_below]],s=0;s<k.length;s++){var l=k[s];if(e>=l.y_anchor){if(lj(o,l.q))return 0}else if(lj(l.p,a))return 0}return k.push({y_anchor:e,p:o,q:a}),1}),k,j;g.each(function(){var t=my(this);t.select("line").style("stroke",u).style("stroke-width",d).transition().duration(r).attr("x2",-y),t.select("text").each(function(){var t=my(this).selectAll("tspan").data(function(t){return t.lines});t.merge(t.enter().append("tspan")).attr("x",0).attr("dy",function(t,e){return e?z.tick_label_line_height+"em":0}).text(function(t){return t}),t.exit().remove()}).style("fill",f).style("font-size",m+"px").style("font-weight",z.tick_label_weight).transition().duration(r).style("opacity",M).attr("transform",w)});var e=N.selectAll("text").data(e&&_?[_]:[]);e.exit().remove();var _=function t(){return rj(i,x)+" "+ij(-90)+" "+rj(0,-b)};return e.enter().append("text").attr("text-anchor","middle").style("font-size",p+"px").style("fill",z.title_color).style("font-weight",z.title_weight).call(mI).transition().duration(0).delay(r).text(function(t){return t}).attr("x",0).attr("y",0).attr("transform",_),e.text(function(t){return t}).style("fill",z.title_color).style("font-size",p+"px").style("font-weight",z.title_weight).transition().duration(r).attr("x",0).attr("y",0).attr("transform",_),E=n,S=c,t}}function xI(A,t){var e=A.chart.select("g.fl-right-axis"),I=e.select("g.fl-axis-line"),T=e.select("g.fl-axis-ticks"),N=e.select("g.fl-axis-title"),z=t.y2,E,S;return function(){var t={},e=z.axis_visible&&!A.y2Hide(),n=uj(A.xScale()),c=uj(A.y2Scale()),o=e?A.y2Ticks():[],r=E?A.animationDuration():0;E=E||n,S=S||c;var i=n.range()[1],a=(E||n).range()[1],s=S.type===c.type&&"ordinal"!==c.type?S:c,l=S.type===c.type&&"ordinal"!==S.type?c:S,u=z.line_and_tick_color,d=Kk(z.line_and_tick_width,!0),f=z.tick_label_color,h="default"===z.tick_label_position,p="out"===z.tick_side,g=Kk(z.tick_padding),_=A.y2Ticks().max_box_width+g,y=h?Kk(z.tick_length)*(p?1:-1):_,m=Kk(z.tick_label_size),v=(p&&h?y:0)+g,_=A.y2Title(),p=Kk(z.title_size),b=v+o.max_box_width+Kk(z.title_padding)+.85*p;t.extended_gridline=i+v+o.max_box_width;var h=c.range(),x=(h[0]+h[1])/2,g=I.selectAll("line").data(e&&z.line_visible?[c.domain()]:[]);g.exit().style("stroke",u).style("stroke-width",d).transition().duration(r).attr("x1",i).attr("x2",i).attr("y1",function(t){return l(t[1])}).attr("y2",function(t){return l(t[0])}).style("opacity",0).remove();var h=g.enter().append("line").style("shape-rendering","crispEdges").style("stroke-linecap","square").style("stroke-width",d).attr("x1",a).attr("x2",a).attr("y1",function(t){return s(t[1])}).attr("y2",function(t){return s(t[0])}).style("opacity",0);g.merge(h).style("stroke",u).style("stroke-width",d).transition().duration(r).attr("x1",i).attr("x2",i).attr("y1",function(t){return c(t[1])}).attr("y2",function(t){return c(t[0])}).style("opacity",1);var g="numeric"===o.type?o.slice().sort(yI):o;function w(t){var e,n;if("default"!==z.tick_label_position)return rj(v+(o.max_box_width-t.box_width),("above"===z.tick_label_position?-.3:1)*m);var r=-z.tick_label_angle;if(0==r)return rj(v,.33*m-t.multiline_offset);var i=rj(v,0)+" "+ij(r);return-90==r&&(i+=" "+rj(t.text_width/2,0)),i}var h=T.selectAll("g").data(g,function(t){return t.type+"-"+t.value}),g=h.exit();g.transition().duration(r).attr("transform",function(t){return rj(i,l(t.value))}).style("opacity",0).remove(),g.each(function(){var t=my(this);t.select("line").style("stroke",u).style("stroke-width",d).transition().duration(r).attr("x2",-y),t.select("text").style("fill",f).style("font-size",m+"px").style("font-weight",z.tick_label_weight).attr("transform",w).transition().duration(r)});var g=h.enter().append("g").style("opacity",0);g.attr("transform",function(t){return rj(a,s(t.value))}),g.each(function(){var t=my(this);t.append("line").attr("x2",y),t.append("text").attr("text-anchor","start").attr("transform",w).call(mI)});var g=h.merge(g);g.transition().duration(r).style("opacity",1).attr("transform",function(t){return rj(i,c(t.value))});var M=(k=[],j=i+v,function(t){for(var e=c(t.value),n=[j,e],r,i,o=[n,[j-t.box_width_above,e-t.box_height_above]],a=[n,[j-t.box_width_below,e+t.box_height_below]],s=0;s<k.length;s++){var l=k[s];if(e>=l.y_anchor){if(lj(o,l.q))return 0}else if(lj(l.p,a))return 0}return k.push({y_anchor:e,p:o,q:a}),1}),k,j;g.each(function(){var t=my(this);t.select("line").style("stroke",u).style("stroke-width",d).transition().duration(r).attr("x2",y),t.select("text").each(function(){var t=my(this).selectAll("tspan").data(function(t){return t.lines});t.merge(t.enter().append("tspan")).attr("x",0).attr("dy",function(t,e){return e?z.tick_label_line_height+"em":0}).text(function(t){return t}),t.exit().remove()}).style("fill",f).style("font-size",m+"px").style("font-weight",z.tick_label_weight).transition().duration(r).style("opacity",M).attr("transform",w)});var e=N.selectAll("text").data(e&&_?[_]:[]);e.exit().remove();var _=function t(){return rj(i,x)+" "+ij(-90)+" "+rj(0,b)};return e.enter().append("text").attr("text-anchor","middle").style("font-size",p+"px").style("fill",z.title_color).style("font-weight",z.title_weight).call(mI).transition().duration(0).delay(r).text(function(t){return t}).attr("x",0).attr("y",0).attr("transform",_),e.text(function(t){return t}).style("fill",z.title_color).style("font-size",p+"px").style("font-weight",z.title_weight).transition().duration(r).attr("x",0).attr("y",0).attr("transform",_),E=n,S=c,t}}function wI(t,e){var r=vI(t,e),i=bI(t,e),o=xI(t,e);return function(){var t,e,n;return{x:r(),y:i(),y2:o()}}}var MI={solid:null,dash:[4,1],dot:[1,1],dot_dash:[4,1,1,1]};function kI(t){if("solid"===t)return null;var e=Kk(1)/4;return MI[t].map(function(t){return t*e}).join(" ")}function jI(y,m){var v=m.x,b=m.y,x=m.y2,w=y.chart.select("g.fl-gridlines-vertical"),M=y.chart.select("g.fl-gridlines-horizontal"),k,j,A;return function(r){var e=uj(y.xScale()),n=uj(y.yScale()),i=uj(y.y2Scale());j=j||n,A=A||i;var o=(k=k||e).type===e.type&&"ordinal"!==e.type?k:e,a=k.type===e.type&&"ordinal"!==k.type?e:k,s=j.type===n.type&&"ordinal"!==n.type?j:n,l=j.type===n.type&&"ordinal"!==j.type?n:j,c=A.type===i.type&&"ordinal"!==i.type?A:i,u=A.type===i.type&&"ordinal"!==A.type?i:A,t=k?y.animationDuration():0,d=function t(e){if("x"===e&&"off"===m.x.axis_position)return[];if("x"!==e&&!m[e].axis_visible)return[];if(!m[e].gridlines_visible)return[];var n=y[e+"Hide"]();return n&&!n.keep_gridlines?[]:y[e+"Ticks"]()},f=d("x"),h=d("y"),d=d("y2"),f=f.map(function(t){return{type:t.type,value:t.value,dasharray:kI(v.gridline_style),stroke:v.gridline_color,width:Kk(v.gridline_width,!0),x_enter:o(t.value),y1_enter:s.range()[1],y2_enter:s.range()[0],x:e(t.value),y1:n.range()[1],y2:n.range()[0]}}),p;v.gridline_category_dividers&&e.step&&(p=e.step(),f.pop(),f.forEach(function(t){var e,n;t.x_enter+=p/2,t.x+=p/2,v.gridline_category_dividers_extend&&(e=r.x&&"top"==r.x.pos,n=r.x&&"bottom"==r.x.pos,e?t.y2=r.x.extended_gridline:n&&(t.y1=r.x.extended_gridline))}));var h=h.map(function(t){return{axis:"y",type:t.type,value:t.value,dasharray:kI(b.gridline_style),stroke:b.gridline_color,width:Kk(b.gridline_width,!0),x1_enter:o.range()[0],x2_enter:o.range()[1],y_enter:s(t.value),x1:e.range()[0],x2:e.range()[1],y:n(t.value)}}),g;b.gridline_category_dividers&&n.step&&(g=n.step(),h.pop(),h.forEach(function(t){t.y_enter-=g/2,t.y-=g/2,b.gridline_category_dividers_extend&&(t.x1=r.y.extended_gridline)}));var d=d.map(function(t){return{axis:"y2",type:t.type,value:t.value,dasharray:kI(x.gridline_style),stroke:x.gridline_color,width:Kk(x.gridline_width),x1_enter:o.range()[0],x2_enter:o.range()[1],y_enter:c(t.value),x1:e.range()[0],x2:e.range()[1],y:i(t.value)}}),_;x.gridline_category_dividers&&i.step&&(_=i.step(),d.pop(),d.forEach(function(t){t.y_enter-=_/2,t.y-=_/2,x.gridline_category_dividers_extend&&(t.x2=r.y2.extended_gridline)}));var h=h.concat(d),d=w.selectAll("line").data(f,function(t){return t.type+"-"+t.value});d.exit().attr("stroke-dasharray",function(t){return t.dasharray}).style("stroke",function(t){return t.stroke}).style("stroke-width",function(t){return t.width}).transition().duration(t).attr("x1",function(t){return a(t.value)}).attr("x2",function(t){return a(t.value)}).attr("y1",l.range()[1]).attr("y2",l.range()[0]).style("opacity",0).remove();var f=d.enter().append("line").style("shape-rendering","crispEdges").attr("x1",function(t){return t.x_enter}).attr("x2",function(t){return t.x_enter}).attr("y1",function(t){return t.y1_enter}).attr("y2",function(t){return t.y2_enter}).style("opacity",0);d.merge(f).attr("stroke-dasharray",function(t){return t.dasharray}).style("stroke",function(t){return t.stroke}).style("stroke-width",function(t){return t.width}).transition().duration(t).attr("x1",function(t){return t.x}).attr("x2",function(t){return t.x}).attr("y1",function(t){return t.y1}).attr("y2",function(t){return t.y2}).style("opacity",1);var f=M.selectAll("line").data(h,function(t){return t.axis+"-"+t.type+"-"+t.value});f.exit().attr("stroke-dasharray",function(t){return t.dasharray}).style("stroke",function(t){return t.stroke}).style("stroke-width",function(t){return t.width}).transition().duration(t).attr("x1",a.range()[0]).attr("x2",a.range()[1]).attr("y1",function(t){return("y"===t.axis?l:u)(t.value)}).attr("y2",function(t){return("y"===t.axis?l:u)(t.value)}).style("opacity",0).remove();var h=f.enter().append("line").style("shape-rendering","crispEdges").attr("x1",function(t){return t.x1_enter}).attr("x2",function(t){return t.x2_enter}).attr("y1",function(t){return t.y_enter}).attr("y2",function(t){return t.y_enter}).style("opacity",0);f.merge(h).attr("stroke-dasharray",function(t){return t.dasharray}).style("stroke",function(t){return t.stroke}).style("stroke-width",function(t){return t.width}).transition().duration(t).attr("x1",function(t){return t.x1}).attr("x2",function(t){return t.x2}).attr("y1",function(t){return t.y}).attr("y2",function(t){return t.y}).style("opacity",1),k=e,j=n,A=i}}function AI(l,c){var e=function t(){var e=null;(l.offsetLeft()||l.offsetTop())&&(e="translate("+l.offsetLeft()+","+l.offsetTop()+")"),l.chart.attr("transform",e)},n=function t(){var e=l.xScale({domain_only:!0}),n=l.xData(),e,r,i,o,a,s,e;e=n.string_array?e.domain():"number"===c.x.tick_mode?e.ticks(c.x.tick_number):"custom"===c.x.tick_mode?(r=hj(c.x.tick_custom),i=e.domain(),o=i[0]<i[1]?i[0]:i[1],a=i[0]>i[1]?i[0]:i[1],n.datetime_array?(s=l.xDatetimeParse(),r.map(function(t){return s(t)}).filter(function(t){return fj(t)&&o<=t&&t<=a})):(s=l.xNumberParse(),r.map(function(t){return s(t)}).filter(function(t){return!isNaN(t)&&o<=t&&t<=a}))):e.ticks(),l.xTicks._update(e)},r=function t(){var e=l.yScale({domain_only:!0}),n=l.yData(),e,r,i,o,a,s,e;e=n.string_array?e.domain():"number"===c.y.tick_mode?e.ticks(c.y.tick_number):"custom"===c.y.tick_mode?(r=hj(c.y.tick_custom),i=e.domain(),o=i[0]<i[1]?i[0]:i[1],a=i[0]>i[1]?i[0]:i[1],n.datetime_array?(s=l.yDatetimeParse(),r.map(function(t){return s(t)}).filter(function(t){return fj(t)&&o<=t&&t<=a})):(s=l.yNumberParse(),r.map(function(t){return s(t)}).filter(function(t){return!isNaN(t)&&o<=t&&t<=a}))):e.ticks(),l.yTicks._update(e)},i=function t(){var e=l.y2Scale({domain_only:!0}),n=l.y2Data(),e,r,i,o,a,s,e;e=n.string_array?e.domain():"number"===c.y2.tick_mode?e.ticks(c.y2.tick_number):"custom"===c.y2.tick_mode?(r=hj(c.y2.tick_custom),i=e.domain(),o=i[0]<i[1]?i[0]:i[1],a=i[0]>i[1]?i[0]:i[1],n.datetime_array?(s=l.y2DatetimeParse(),r.map(function(t){return s(t)}).filter(function(t){return fj(t)&&o<=t&&t<=a})):(s=l.y2NumberParse(),r.map(function(t){return s(t)}).filter(function(t){return!isNaN(t)&&o<=t&&t<=a}))):e.ticks(),l.y2Ticks._update(e)},o=function t(e){l.margins._update(e)},a=gI(l,c),s=_I(l,c),u=wI(l,c),d=jI(l,c);return function(t){if(t=t||{},ej(),e(),n(),r(),i(),o(t.margins),t.skip_rendering)return l;a(),s();var t=u();return d(t),l}}function II(t,e){e=Ty(e);var n={},t=zy(t);Object.defineProperty(n,"svg",{get:t.getSvg}),n.container=t.container,n.chart=Dy(n),n.data_background=n.chart.select("g.fl-data-background"),n.data_foreground=n.chart.select("g.fl-data-foreground"),n.identifier=Oy(n),n.clip=Yy(n),n.animationDuration=Ex(n);var t=HM(n);return n.width=t.width,n.height=t.height,n.plotAspect=t.plotAspect,Object.defineProperty(n,"plot_width",{get:t.plotWidth}),Object.defineProperty(n,"plot_height",{get:t.plotHeight}),n.offsetLeft=GM(n),n.offsetTop=QM(n),n.margins=Rj(n,e),n.xData=_j(n),n.yData=_j(n),n.y2Data=_j(n),n.xFormat=Lx(n),n.yFormat=Lx(n),n.y2Format=Lx(n),n.xNumberParse=FM(n),n.yNumberParse=FM(n),n.y2NumberParse=FM(n),n.xDatetimeParse=ZM(n),n.yDatetimeParse=ZM(n),n.y2DatetimeParse=ZM(n),n.xTitle=Ij(n,e),n.yTitle=Tj(n,e),n.y2Title=Nj(n,e),n.xTicks=wj(n,e),n.yTicks=kj(n,e),n.y2Ticks=jj(n,e),n.xScale=dI(n,e),n.yScale=fI(n,e),n.y2Scale=hI(n,e),n.xZeroAxis=uI(n),n.yZeroAxis=uI(n),n.y2ZeroAxis=uI(n),n.xHide=pI(n),n.yHide=pI(n),n.y2Hide=pI(n),n.y2Hide(!0),n.update=AI(n,e),n}var TI={height_mode:"auto",facet_layout:"single",facet_aspect:66,facet_aspect_mobile:100,facet_aspect_breakpoint:500,facet_by_series:null,facet_min_w:100,facet_fixed_cols:!1,facet_cols:2,facet_gutter_w:1.5,facet_gutter_h:1.5,facet_header_color_mode:"auto",facet_header_color:null,facet_header_font_size:1.25,facet_header_padding:.25,facet_header_bg:"none",facet_header_bg_mode:"fixed",facet_header_bg_color:"#eeeeee",facet_title_align:"auto",chart_type:"line",dual_axis:!0,secondary_series:1,sort_mode:"data",sort_direction:"ascending",series_filter_mode:"none",series_control_single:{button_group_width_mode:"auto"},series_control_single_all:!1,series_control_single_all_text:"All",series_filter:[],series_control_multi_text:"Enter series to show",series_control_multi_none_text:"No more series to show",series_control_select_text:"Press to select",max_series:50,series_control_background:null,series_control_border:"#eeeeee",series_control_text:null,series_control_pill_background:"#333333",series_control_pill_text:"#ffffff",series_control_pill_radius:20,row_filter:[],row_filter_control:{button_group_width_mode:"auto"},row_filter_control_all:!1,row_filter_control_all_text:"All",label_filter:[],controls_style:{},dropdown_style:{},button_style:{},log_control_y_visible:!1,log_control_y_text_linear:"Linear",log_control_y_text_log:"Log",log_control_y:{control_type:"buttons",button_group_width_fixed:10},popup:{},popup_series_text:"",popup_color_headers:!0,highlighted:null,current_series:0,color_mode:"column",color:{},bg_color_style:"none",bg_color:"#f7f7f7",legend_mode:"auto",legend:{title_mode:"fixed"},legend_position:"above",legend_filter_mode:"filter-out",text_legend:"off",text_legend_title:!0,text_legend_subtitle:!0,text_legend_bold:!0,labels:!1,labels_hide_overlaps:!0,labels_font_size_mode:"auto",labels_font_size:.9,labels_bg_mode:"auto",labels_bg_size:30,labels_font_weight:600,labels_color_mode:"auto",labels_fixed_color:null,labels_content:"auto",labels_dot_center:!1,labels_bar_autohide:!0,labels_bar_align:"right",labels_column_align:"top",labels_column_padding:.3,stack_labels:!1,stack_labels_font_size_mode:"auto",stack_labels_font_size:.9,stack_labels_color:null,stack_labels_weight:600,line_width:.2,line_opacity:1,line_curve:"curveMonotoneX",line_interpolate:!0,line_end_labels:!1,line_labels:{},line_dash_items:"",line_dash_width:5,line_dash_space_width:2,area_opacity:.7,shade_between_lines:!1,shade_between_lines_config:"",shade_between_lines_color:"#aaaaaa",shade_between_lines_opacity:"0.3",donut_inner_radius:30,donut_pad_angle:.5,donut_corner_radius:0,donut_auto_scale:!1,column_opacity:.9,column_padding_inner:25,column_padding_in_group:15,column_padding_stack:.5,bar_height:1,uniform_bar_height:!1,uniform_column_width:!1,dot_mode:"auto",dot_mode_auto_max:250,dot_radius:.25,dot_radius_last:100,dot_opacity:1,dot_hollow:!1,data_trans_duration:800,data_trans_delay:0,data_trans_stagger:0,data_trans_bind_series:!0,data_trans_bind_data_points:!0,animate_on_load:!0,label_data_type:"auto",x:{title_mode:"custom"},x_axis_matching:!0,x_axis_date_format:"auto",x_axis_last_row_only:!0,y:{title_mode:"custom"},y_axis_matching:!0,y_axis_first_col_only:!0,bar_labels_above:!0,bar_labels_color:null,bar_labels_font_size:.9,bar_labels_weight:400,y2:{axis_visible:!0,gridlines_visible:!1,title_mode:"custom"},y_secondary_axis_matching:!0,y_secondary_axis_last_col_only:!0,chart_bg:{},annotations:{},anno_x_enabled:!1,anno_x_lines:"",anno_x_line_color:"#333333",anno_x_font_size:.9,anno_x_line_width:2,anno_x_line_dash:"2",anno_x_areas:"",anno_x_fill_color:"#555555",anno_x_fill_opacity:.1,anno_x_label_align:"top",anno_x_label_vertical:!0,anno_x_label_color:"#888888",anno_x_stack:"above",anno_y_enabled:!1,anno_y_lines:"",anno_y_line_color:"#333333",anno_y_font_size:.9,anno_y_line_width:2,anno_y_line_dash:"2",anno_y_areas:"",anno_y_fill_color:"#555555",anno_y_fill_opacity:.1,anno_y_label_align:"right",anno_y_label_color:"#888888",anno_y_stack:"above",layout:{},localization:{},number_format:{},number_format_secondary:{},number_format_prop:!0,url_state:{},datetime_input_format:"auto"};function NI(){var t;zI(my(jF.getSection("primary")).append("svg").attr("id","graphic").append("g").attr("class","facets").node()).chart.remove()}function zI(t){var e;return II(t,{x:TI.x,y:TI.y,y2:TI.y2,background:TI.chart_bg})}var EI=25,SI=5,LI=10,DI=10,CI={},OI,PI;function RI(t,e,n,r,i,o,a){var s,l=n+t/2+10,i=t/2+Math.min(0,n-t/2-10-i.left)+Math.max(0,l-i.right),o,o=i-10<5?[-i,-15*o,Math.max(10,5-i),-10*o]:t-5<i+10?[Math.min(-10,t-i-5),-10*o,Math.min(10,t-i),-15*o]:[-10,-10*o,10,-10*o];return{pos:[i,a],shape:o}}function YI(t,e,n,r,i,o,a){var s,l=r+e/2+10,i=e/2+Math.min(0,r-e/2-10-i.top)+Math.max(0,l-i.bottom),o,o=i-10<5?[-15*o,-i,-10*o,Math.max(10,5-i)]:e-5<i+10?[-10*o,Math.min(-10,e-i-5),-15*o,Math.min(10,e-i)]:[-10*o,-10,-10*o,10];return{pos:[a,i],shape:o}}function UI(t,e,n,r,i,o){var o=CI[t](e,n,r,i,o),r=r-EI-o.pos[0],o=i-EI-o.pos[1];return{left:r,top:o,right:r+e+2*EI,bottom:o+n+2*EI}}function BI(t,e,n,r,i,o,a,s,l,c){var c=CI[t](r,i,s,l,c);e.left=o-EI-c.pos[0]+"px",e.top=a-EI-c.pos[1]+"px",n.setAttribute("d","M0,0L"+c.shape.join(",")+"Z"),n.setAttribute("transform","translate("+(c.pos[0]+EI)+","+(c.pos[1]+EI)+")")}function FI(){var e=this;function t(t){return e._maxWidth.match(/^\d+(?:\.\d+)?%$/)?t.width*parseFloat(e._maxWidth)/100:e._maxWidth.match(/^\d+(?:\.\d+)?(?:px)?$/)?parseFloat(e._maxWidth):(null!=e._maxWidth&&console.error("Popup: Unknown value for maxWidth: "+e._maxWidth),t.width)}if(e.is_visible=!0,e._point){var n=document.documentElement.getBoundingClientRect(),r=e._point[0],i=e._point[1],o=e._container.getBoundingClientRect();r<o.left?r=o.left:r>o.right&&(r=o.right),i<o.top?i=o.top:i>o.bottom&&(i=o.bottom);var a=r-n.left,s=i-n.top,l=e._getElement(),c=l.style,u=l.querySelector(".flourish-popup-svg"),d=u.querySelector("g"),n=d.querySelector("rect"),d=d.querySelector("path"),f=l.querySelector(".flourish-popup-content");c.display="block",f.style.maxWidth=t(o)+"px",e._inner_html!=e._html&&(f.innerHTML=e._inner_html=e._html);for(var h=f.getBoundingClientRect(),p,g;p=Math.ceil(h.width),g=Math.ceil(h.height),c.width=p+2*EI+"px",c.height=g+2*EI+"px",h=f.getBoundingClientRect(),p!=Math.ceil(h.width)||g!=Math.ceil(h.height););n.setAttribute("width",p),n.setAttribute("height",g),u.setAttribute("width",p+2*EI),u.setAttribute("height",g+2*EI);for(var _=EI-10,y=null,m=null,v=null,b=1/0,x=1/0,w,M,k=0;k<e._directions.length;k++){var j=e._directions[k],A=UI(j,p,g,r,i,o),I=Math.max(0,Math.floor(o.left)-A.left-_)+Math.max(0,A.right-Math.ceil(o.right)-_),A=Math.max(0,Math.floor(o.top)-A.top-_)+Math.max(0,A.bottom-Math.ceil(o.bottom)-_);if(0==I&&0==A){y=j;break}(I<b||I==b&&A<w)&&(b=I,w=A,m=j),(A<x||A==x&&I<M)&&(x=A,M=I,v=j)}return BI(j=y||("horizontal"==e._fallbackFit?m:"vertical"==e._fallbackFit?v:(console.warn("Popup: failed to point box of size ("+p+", "+g+") at ("+r+", "+i+") within ("+o.left+", "+o.top+", "+o.right+", "+o.bottom+")"),e._directions[0])),c,d,p,g,a,s,r,i,o),e}console.error("Popup: cannot draw popup till point() has been specified")}function ZI(t,e,n){var r=document.createElementNS("http://www.w3.org/2000/svg",t),i;if(e)for(i in e)r.setAttribute(i,e[i]);var o=r.style;if(n)for(i in n)o[i]=n[i];return r}function HI(){var e=this,t="flourish-popup-"+e.unique_id,n=document.getElementById(t),r,i,o,t,t,o,i;return n||((n=document.createElement("div")).className="flourish-popup",n.id=t,(r=n.style).display="none",r.margin=r.padding=0,r.position="absolute",r.width="80px",r.height="40px",r.boxSizing="border-box",n.addEventListener("click",function(t){e.fire("click",t)},!1),i=ZI("svg",{class:"flourish-popup-svg"},{position:"absolute",top:0,left:0,bottom:0,right:0}),(o=ZI("filter",{id:"dropshadow-"+e.unique_id,height:"130%"})).appendChild(ZI("feGaussianBlur",{in:"SourceAlpha",stdDeviation:5})),o.appendChild(ZI("feOffset",{dx:0,dy:2,result:"offsetblur"})),(t=ZI("feComponentTransfer")).appendChild(ZI("feFuncA",{type:"linear",slope:.2})),o.appendChild(t),t=ZI("feMerge"),o.appendChild(t),t.appendChild(ZI("feMergeNode")),t.appendChild(ZI("feMergeNode",{in:"SourceGraphic"})),i.appendChild(o),(o=ZI("g",{filter:"url(#dropshadow-"+e.unique_id+")",fill:"white",stroke:"none"})).appendChild(ZI("rect",{x:EI,y:EI,rx:5})),o.appendChild(ZI("path")),i.appendChild(o),n.appendChild(i),(i=document.createElement("div")).className="flourish-popup-content",(r=i.style).position="absolute",r.top=r.left=EI+"px",r.padding="10px",n.appendChild(i),e._getConstrainer().appendChild(n)),e._resizeConstrainer(),n}function GI(){return OI||((OI=document.createElement("div")).id="flourish-popup-constrainer",(PI=OI.style).overflow="hidden",PI.pointerEvents="none",PI.position="absolute",PI.left="0",PI.top="0",PI.margin="0",PI.padding="0",document.body.appendChild(OI),this._resizeConstrainer(),OI)}function QI(){OI||GI.call(this);var t=PI.display;PI.display="none",PI.width=document.documentElement.scrollWidth+"px",PI.height=document.documentElement.scrollHeight+"px",PI.display=t}CI.bottom=function t(e,n){return{shape:[-10,-10,10,-10],pos:[e/2,n+10]}},CI.top=function t(e,n){return{shape:[-10,10,10,10],pos:[e/2,-10]}},CI.left=function t(e,n){return{shape:[10,10,10,-10],pos:[-10,n/2]}},CI.right=function t(e,n){return{shape:[-10,10,-10,-10],pos:[e+10,n/2]}},CI.topLeft=function t(e,n){return{shape:[15,10,10,15],pos:[-10,-10]}},CI.bottomLeft=function t(e,n){return{shape:[15,-10,10,-15],pos:[-10,n+10]}},CI.topRight=function t(e,n){return{shape:[-15,10,-10,15],pos:[e+10,-10]}},CI.bottomRight=function t(e,n){return{shape:[-15,-10,-10,-15],pos:[e+10,n+10]}},CI.bottomFlexible=function t(e,n,r,i,o){return RI(e,n,r,i,o,1,n+10)},CI.topFlexible=function t(e,n,r,i,o){return RI(e,n,r,i,o,-1,-10)},CI.rightFlexible=function t(e,n,r,i,o){return YI(e,n,r,i,o,1,e+10)},CI.leftFlexible=function t(e,n,r,i,o){return YI(e,n,r,i,o,-1,-10)};var Ir="2.1.5",qI=1,VI={container:document.body,maxWidth:"70%",point:null,html:null,directions:["bottom","top","left","right","topLeft","bottomLeft","topRight","bottomRight","bottomFlexible","topFlexible","leftFlexible","rightFlexible"],fallbackFit:"horizontal"},WI;function $I(){for(var t in this.unique_id=qI++,this.is_visible=!0,VI)this["_"+t]=VI[t];this.handlers={click:[]}}function XI(e){$I.prototype[e]=function(t){return void 0===t?this["_"+e]:(this["_"+e]=t,this)}}for(WI in VI)XI(WI);function JI(t){return t.replace(/[&<>]/g,function(t){return{"&":"&","<":"<",">":">"}[t]})}function KI(){return new $I}$I.prototype.point=function(t,e){return void 0===t?this._point:(Array.isArray(t)?this._point=[t[0],t[1]]:void 0!==e?this._point=[t,e]:t instanceof HTMLElement||t instanceof SVGElement?(t=t.getBoundingClientRect(),this._point=[Math.floor(t.left+t.width/2),Math.floor(t.top+t.height/2)]):console.error("Popup: could not understand argument"),this);var t},$I.prototype.directions=function(t){return void 0===t?this._directions:(this._directions=(t="string"==typeof t?[t]:t).slice(),this)},$I.prototype.text=function t(e){return this._html=JI(e),this},$I.prototype.on=function t(e,n){if(!(e in this.handlers))throw new Error("Popup.on: No such event: "+e);return this.handlers[e].push(n),this},$I.prototype.fire=function t(e,n){if(!(e in this.handlers))throw new Error("Popup.fire: No such event: "+e);for(var r=this.handlers[e],i=0;i<r.length;i++)r[i].call(this,n);return this},$I.prototype._getElement=HI,$I.prototype._getConstrainer=GI,$I.prototype._resizeConstrainer=QI,$I.prototype.draw=FI,$I.prototype.hide=function t(){return this.is_visible&&(this.is_visible=!1,this._getElement().style.display="none"),this};var tT={show_popups:!0,text_color:"#333333",align:"left",font_size:12,fill_color:"#ffffff",opacity:1,padding:10,border_radius:3,show_pointer:!0,show_shadow:!0,is_custom:!(KI.version=Ir),style_popups:!1};function eT(t){if("number"!=typeof t)return t;var e=Math.round(t*Math.pow(10,2))/100;return 4==Math.round(t).toString().length?e:NA(",")(e)}function nT(){var t;document.querySelector("#popup-styles")||((t=document.createElement("style")).id="popup-styles",t.type="text/css",t.innerHTML=".flourish-popup { pointer-events: none; }.flourish-popup .flourish-popup-content { pointer-events: auto; }.flourish-popup h1 { margin: 0; font-size: inherit; }.flourish-popup h2 { font-weight: normal; font-size: inherit; margin: 0; }.flourish-popup h2 .name { font-weight: bold; }.flourish-popup ul { padding: 0; margin: 0; }.flourish-popup li { font-size: inherit; list-style: none; }",document.head.appendChild(t))}function rT(t,e,n,r){for(var i in this._state=e,this._default_template=n,this._first_load=!0,this._title_binding=r||"id",tT)null==e[i]&&(e[i]=tT[i]);nT(),this.popup=KI().container(t).point(0,0).draw().hide()}function iT(t,e,n,r){return new rT(t,e,n,r)}function oT(t){throw new TypeError("Expected a value of type string but got a value of type "+ig(t))}function aT(e){return function(t){return"string"!=typeof t&&oT(t),(t=t.trim())?e(t):null}}function sT(t,e){var n=Mw(t),r=ww(t),i,i=aT("function"==typeof e?function(t){return null!==n(t)&&e(t)}:function(t){return null!==n(t)});return Object.freeze({test:i,parse:aT(function(t){return n(t)}),format:function t(e){return r(e)},type:"datetime",description:t,id:"datetime$"+t})}rT.prototype.addColumnNames=function(t){if(this._column_names=t,!this._state.custom_template&&this._first_load){for(var e in this._column_names)if(!Array.isArray(this._column_names[e])){var e=this._column_names[e];this._state.custom_template=e+": {{"+e+"}}";break}this._first_load=!1}return this},rT.prototype.hide=function(){return this.popup.hide(),this},rT.prototype.point=function(t,e){var n;return 1==arguments.length&&(t=(n=t.getBoundingClientRect()).left+n.width/2,e=n.top),this.popup.point(t,e),this},rT.prototype.html=function(t){return this.popup.html(t),this},rT.prototype.updateStyle=function(){var t=this.popup._getElement(),e=t.querySelector(".flourish-popup-content");e.style.padding=this._state.padding+"px",e.style.textAlign=this._state.align;var t=t.querySelector(".flourish-popup-svg g");return t.style.fill=this._state.fill_color,t.style.opacity=this._state.opacity,0==this._state.show_shadow?t.removeAttribute("filter"):t.setAttribute("filter","url(#dropshadow-"+this.popup.unique_id+")"),t.querySelector("rect").setAttribute("rx",this._state.border_radius),t.querySelector("path").style.display=this._state.show_pointer?"block":"none",this},rT.prototype.draw=function(i,t){if(this._state.show_popups){var o=this;if(this.updateStyle(),!arguments.length)return this.popup.draw(),t&&t(this.popup._getElement()),this;var n="<div style='color: "+this._state.text_color+"; font-size: "+this._state.font_size+"px; text-align:"+this._state.align+";'>";if(this._state.is_custom||this._default_template)!this._state.is_custom&&this._default_template?n+=this._default_template.replace(/\{\{((?:[^}]|\}[^}])*)\}\}/g,function(t,n){var r;if(Array.isArray(o._column_names[n])){var e=o._column_names[n];if(0==e.length)return"";r="<ul>",e.forEach(function(t,e){r+="<li>"+t+": "+i[n][e]+"</li>"}),r+="</ul>"}else r=i[n];return void 0!==r?eT(r):""}):n+=this._state.custom_template.replace(/\{\{((?:[^}]|\}[^}])*)\}\}/g,function(t,n){var r;return Object.keys(o._column_names).some(function(t){if(Array.isArray(o._column_names[t])){var e=o._column_names[t].indexOf(n);if(0<=e)return r=i[t][e],!0}else if(o._column_names[t]==n)return r=i[t],!0}),void 0!==r?eT(r):""});else{i[this._title_binding]&&(n+="<h1>"+i[this._title_binding]+"</h1>");var e={},r,a;for(r in this._column_names){if(r!=this._title_binding)if("metadata"==r){if(!Array.isArray(i.metadata))return;for(var s=0;s<i.metadata.length;s++)e[a=this._column_names.metadata[s]]||(e[a]=!0,n+="<h2><span class='name' data-binding='metadata'>"+a+"</span>: "+eT(i.metadata[s])+"</h2>")}else a=this._column_names[r],Array.isArray(a)?a.forEach(function(t,e){n+="<h2><span class='name' data-binding='"+r+"'>"+t+"</span>: "+eT(i[r][e])+"</h2>"}):e[a]||(e[a]=!0,n+="<h2><span class='name' data-binding='"+r+"'>"+a+"</span>: "+eT(i[r])+"</h2>")}n+="</div>"}return this.popup.html(n).draw(),t&&t(this.popup._getElement()),this}},rT.prototype.directions=function(t){return this.popup.directions(t),this},rT.prototype.container=function(t){return this.popup.container(t),this};var jt=Object.freeze([sT("%Y-%m-%dT%H:%M:%S.%LZ"),sT("%Y-%m-%d"),sT("%m/%d/%y",function(t){var t=t.split("/").map(parseFloat);return 0<t[0]&&t[0]<=12&&0<t[1]&&t[1]<=31&&!isNaN(t[2])}),sT("%d/%m/%y",function(t){var t=t.split("/").map(parseFloat);return 0<t[0]&&t[0]<=31&&0<t[1]&&t[1]<=12&&!isNaN(t[2])}),sT("%m/%d/%Y",function(t){var t=t.split("/").map(parseFloat);return 0<t[0]&&t[0]<=12&&0<t[1]&&t[1]<=31&&1e3<=t[2]}),sT("%d/%m/%Y",function(t){var t=t.split("/").map(parseFloat);return 0<t[0]&&t[0]<=31&&0<t[1]&&t[1]<=12&&1e3<=t[2]}),sT("%d-%b-%y"),sT("%m/%y"),sT("%m/%Y"),sT("%b %Y"),sT("%B %d"),sT("%d %b"),sT("%Y",function(t){var t=parseFloat(t);return 1499<t&&t<2200}),sT("%B"),sT("%b"),sT("%X"),sT("%I:%M %p"),sT("%-I%p"),sT("%H:%M"),sT("Q%q %Y",function(t){return 6===t.replace(/\s/g,"").length}),sT("%Y Q%q",function(t){return 6===t.replace(/\s/g,"").length})]);function lT(t){var e,n,r=EA({decimal:t.decimal_mark,thousands:t.thousand_separator,grouping:[3],currency:["",""]}),i,o;return function(t,e){return(e=e||",.2f")!==o&&(o=e,i=r.format(o)),i(t)}}var cT={test:aT(function(t){return/^(\+|-)?\d{1,3}(,\d{3})*(\.\d+)?((e|E)(\+|-)?\d+)?$/.test(t.trim())}),parse:aT(function(t){return parseFloat(t.replace(/,/g,""))}),description:"Comma thousand separator, point decimal mark",thousand_separator:",",decimal_mark:".",id:"number$comma_point"},uT={test:aT(function(t){return/^(\+|-)?\d{1,3}(\s\d{3})*(\.\d+)?((e|E)(\+|-)?\d+)?$/.test(t.trim())}),parse:aT(function(t){return parseFloat(t.replace(/\s/g,""))}),description:"Space thousand separator, point decimal mark",thousand_separator:" ",decimal_mark:".",id:"number$space_point"},dT={test:aT(function(t){return/^(\+|-)?\d+(\.\d+)?((e|E)(\+|-)?\d+)?$/.test(t.trim())}),parse:aT(function(t){return parseFloat(t)}),description:"No thousand separator, point decimal mark",thousand_separator:"",decimal_mark:".",id:"number$none_point"},fT={test:aT(function(t){return/^(\+|-)?\d{1,3}(\.\d{3})*(,\d+)?((e|E)(\+|-)?\d+)?$/.test(t.trim())}),parse:aT(function(t){return parseFloat(t.replace(/\./g,"").replace(/,/,"."))}),description:"Point thousand separator, comma decimal mark",thousand_separator:".",decimal_mark:",",id:"number$point_comma"},hT={test:aT(function(t){return/^(\+|-)?\d{1,3}(\s\d{3})*(,\d+)?((e|E)(\+|-)?\d+)?$/.test(t.trim())}),parse:aT(function(t){return parseFloat(t.replace(/\s/g,"").replace(/,/,"."))}),description:"Space thousand separator, comma decimal mark",thousand_separator:" ",decimal_mark:",",id:"number$space_comma"},pT={test:aT(function(t){return/^(\+|-)?\d+(,\d+)?((e|E)(\+|-)?\d+)?$/.test(t.trim())}),parse:aT(function(t){return parseFloat(t.replace(/,/,"."))}),description:"No thousand separator, comma decimal mark",thousand_separator:"",decimal_mark:",",id:"number$none_comma"},we={test:function t(e){return dT.test(e)||cT.test(e)},parse:cT.parse,description:"Optional comma separator, point decimal mark",thousand_separator:",",decimal_mark:".",id:"number$opt_comma_point"},sn={test:function t(e){return pT.test(e)||fT.test(e)},parse:fT.parse,description:"Optional point thousand separator, comma decimal mark",thousand_separator:".",decimal_mark:",",id:"number$opt_point_comma"},$t={test:function t(e){return pT.test(e)||hT.test(e)},parse:hT.parse,description:"Optional space thousand separator, comma decimal mark",thousand_separator:" ",decimal_mark:",",id:"number$opt_space_comma"},pn={test:function t(e){return dT.test(e)||uT.test(e)},parse:uT.parse,description:"Optional space separator, point decimal mark",thousand_separator:",",decimal_mark:".",id:"number$opt_space_point"},Qc=Object.freeze([cT,uT,fT,hT,dT,pT,we,sn,$t,pn]);Qc.forEach(function(t){t.type="number",t.format=lT(t),Object.freeze(t)});var gT=Object.freeze({test:function t(e){return"string"==typeof e||oT(e)},parse:function t(e){return"string"==typeof e?e:oT(e)},format:function t(e){if("string"==typeof e)return e},type:"string",description:"Arbitrary string",id:"string$arbitrary_string"}),_T=Object.freeze({datetime:jt,number:Qc}),yT=Object.freeze(["datetime","number","string"]),mT=Object.freeze({n_max:250,n_failing_values:0,failure_fraction:.05,sort:!0}),vT=Object.freeze(Object.keys(mT)),bT,xT,wT;function MT(t){return t.replace(/_(\w)/g,function(t,e){return e.toUpperCase()})}function kT(t,e){return t.index-e.index}function jT(t,e){return e.n_success-t.n_success||kT(t,e)}function AT(t){return(""+t).trim()}function IT(n){return void 0===n?AT:"function"==typeof n?function(t,e){return AT(n(t,e))}:function(t){return AT(t[""+n])}}function TT(t){t?Array.isArray(t)||(t=[t]):t=yT;var r=t.reduce(function(t,e){var e=_T[e];return e&&Array.prototype.push.apply(t,e),t},[]),i=-1!==t.indexOf("string"),o=vT.reduce(function(t,e){return t[e]=mT[e],t},{}),n=function t(e,n){n=IT(n);var c=e.map(n).filter(function(t){return t});if(!c.length)return i?[gT]:[];var u=Math.min(o.n_max,c.length),d=Math.floor(u*o.failure_fraction),f=o.n_failing_values,n=o.sort?jT:kT,n=r.slice().reduce(function(t,e,n){for(var r=a=0,i=[],o=!1,a=0;a<u;a++){var s=c[a],l=e.test(s);if(!l&&(++r>d?o=!0:-1===i.indexOf(s)&&(i.push(s),i.length>f&&(o=!0)),o))break}return o||t.push({interp:e,n_success:u-r,index:n}),t},[]).sort(n).map(function(t){return t.interp});return i&&n.push(gT),n};return vT.forEach(function(e){n[MT(e)]=function(t){return void 0===t?o[e]:(o[e]=t,n)}}),n}function NT(){(wT=document.createElement("style")).id="flourish-page-styles",wT.type="text/css",document.head.appendChild(wT)}function zT(){var t,r="";["mobile_small","mobile_big","tablet","desktop","big_screen"].forEach(function(t,e){var n="@media(min-width: "+lN["breakpoint_"+t]+"px) {\n",t="html { font-size:"+lN["font_size_"+t]+"%; }";r+=(0==e?"":n)+t+(0==e?"":"\n}")+"\n\n"}),wT.innerHTML=r;var e=[lN.body_font,lN.title_font,lN.subtitle_font,lN.footer_font];e.forEach(function(t){if(t){for(var e=!1,n=document.head.querySelectorAll("link.layout-font"),r=0,i,o;r<n.length;r++){n[r].href==t.url&&(e=!0)}e||((o=document.createElement("link")).setAttribute("rel","stylesheet"),o.setAttribute("href",t.url),o.className="layout-font",document.head.appendChild(o))}});for(var n=document.head.querySelectorAll("link.layout-font"),i=0;i<n.length;i++){var o=n[i],a=!1;e.forEach(function(t){t&&t.url==o.href&&(a=!0)}),a||o.parentElement.removeChild(o)}document.body.style.fontFamily=lN.body_font.name}TT.DATETIME_IDS=Object.freeze(jt.map(function(t){return t.id})),TT.NUMBER_IDS=Object.freeze(Qc.map(function(t){return t.id})),TT.STRING_IDS=Object.freeze([gT.id]),TT.getInterpretation=(xT=jt.concat(Qc,gT).reduce(function(t,e){return t[e.id]=e,t},{}),function(t){return xT[t]}),TT._createAccessorFunction=IT;var ET=Object.freeze({"stack-default":["header","controls","primary","footer"],"stack-2":["primary","header","controls","footer"],"stack-3":["header","primary","controls","footer"],"stack-4":["controls","primary","header","footer"]}),ST=(LT=document.createElement("canvas").getContext("2d"),function(t,e){var n;return LT.font=e||"10px sans-serif",LT.measureText(t).width}),LT,DT,CT,OT,PT,RT,YT,UT,BT,FT;function ZT(t){return"string"==typeof t&&null!=t.match(/^(https?:\/\/|data:)/i)}function HT(){(DT=document.createElement("header")).className="flourish-header";var t=document.createElement("hgroup");return CT=document.createElement("h1"),OT=document.createElement("h2"),PT=document.createElement("p"),RT=document.createElement("img"),DT.appendChild(RT),DT.appendChild(t),t.appendChild(CT),t.appendChild(OT),DT.appendChild(PT),DT}function GT(){DT.style.textAlign=lN.header_align,DT.style.margin=0,DT.style.borderTop="top"==lN.header_border?lN.header_border_width+"px "+lN.header_border_style+" "+lN.header_border_color:null,DT.style.borderBottom="bottom"==lN.header_border?lN.header_border_width+"px "+lN.header_border_style+" "+lN.header_border_color:null,DT.style.paddingTop="top"==lN.header_border?lN.header_border_space+"rem":"",DT.style.paddingBottom="bottom"==lN.header_border?lN.header_border_space+"rem":"",CT.innerHTML=lN.title||"",CT.style.fontFamily=lN.title_font?lN.title_font.name:"inherit",CT.style.fontSize=("custom"!=lN.title_size?lN.title_size:lN.title_size_custom)+"rem",CT.style.lineHeight=lN.title_line_height,CT.style.fontWeight=lN.title_weight,CT.style.color=lN.title_color||lN.font_color,CT.style.margin=0,CT.style.paddingTop=lN.title?("custom"==lN.title_space_above?lN.title_space_above_custom:lN.title_space_above)+"rem":0,OT.innerHTML=lN.subtitle||"",OT.style.fontFamily=lN.subtitle_font?lN.subtitle_font.name:"inherit",OT.style.fontSize=("custom"!=lN.subtitle_size?lN.subtitle_size:lN.subtitle_size_custom)+"rem",OT.style.lineHeight=lN.subtitle_line_height,OT.style.fontWeight=lN.subtitle_weight,OT.style.color=lN.subtitle_color||lN.font_color,OT.style.margin=0,OT.style.paddingTop=lN.subtitle?("custom"==lN.subtitle_space_above?lN.subtitle_space_above_custom:lN.subtitle_space_above)+"rem":0,PT.innerHTML=lN.header_text||"",PT.style.fontSize=("custom"!=lN.header_text_size?lN.header_text_size:lN.header_text_size_custom)+"rem",PT.style.lineHeight=lN.header_text_line_height,PT.style.fontWeight=lN.header_text_weight,PT.style.margin=0,PT.style.color=lN.header_text_color||lN.font_color,PT.style.paddingTop=lN.header_text?("custom"==lN.header_text_space_above?lN.header_text_space_above_custom:lN.header_text_space_above)+"rem":0,RT.style.display=lN.header_logo_enabled&&ZT(lN.header_logo_src)?"":"none",RT.style.position="inside"==lN.header_logo_align?"":"fixed",RT.style.height=lN.header_logo_height+"rem",RT.style.top="outside"==lN.header_logo_align?0:"",RT.style.left="outside"==lN.header_logo_align&&"left"==lN.header_logo_position_outside?0:"",RT.style.right="outside"==lN.header_logo_align&&"right"==lN.header_logo_position_outside?0:"",RT.style.marginTop=lN.header_logo_margin_top+"rem",RT.style.marginBottom=lN.header_logo_margin_bottom+"rem",RT.style.marginLeft=lN.header_logo_margin_left+"rem",RT.style.marginRight=lN.header_logo_margin_right+"rem",RT.style.float="top"==lN.header_logo_position_inside||"outside"==lN.header_logo_align?"":lN.header_logo_position_inside,RT.style.width="auto",RT.src=ZT(lN.header_logo_src)?lN.header_logo_src:""}var QT=!1;function qT(){var t=document.createElement("style");t.type="text/css",t.innerHTML=".flourish-footer { margin: 0; } .flourish-footer p { margin: 0; display: inline; } .flourish-footer p:empty { height: 0; } .flourish-footer a { color: inherit; }",document.head.appendChild(t)}function VT(t){return 0!==t.indexOf("http://")&&0!==t.indexOf("https://")?"http://"+t:t}function WT(){return qT(),(YT=document.createElement("footer")).className="flourish-footer",(UT=document.createElement("div")).className="flourish-footer-text",(FT=document.createElement("a")).target="_blank",(BT=document.createElement("img")).className="flourish-footer-logo",FT.appendChild(BT),YT.appendChild(UT),YT.appendChild(FT),YT}function $T(t){if(t){var e=Gm(t);return 195<Math.round(299*e.r+587*e.g+114*e.b)/1e3}console.warn("No valid color",t)}function XT(){return lN.background_color_enabled&&!$T(lN.background_color)}function JT(){var t=ZT(lN.footer_logo_src)?lN.footer_logo_src:"";return t=ZT(lN.footer_logo_src_light)&&XT()?lN.footer_logo_src_light:t}function KT(){return lN.footer_logo_enabled&&JT()}function tN(){var t=[{name:lN.source_name,url:lN.source_url},{name:lN.multiple_sources?lN.source_name_2:"",url:lN.multiple_sources?lN.source_url_2:""},{name:lN.multiple_sources?lN.source_name_3:"",url:lN.multiple_sources?lN.source_url_3:""}].filter(function(t){return t.name||t.url});QT=0<t.length||lN.footer_note||lN.footer_note_secondary||KT(),YT.style.display="flex",YT.style.height=QT?null:0,YT.style.width="100%",YT.style.paddingTop="top"==lN.footer_border?lN.footer_border_space+"rem":"",YT.style.paddingBottom="bottom"==lN.footer_border?lN.footer_border_space+"rem":"",YT.style.borderTop="top"==lN.footer_border?lN.footer_border_width+"px "+lN.footer_border_style+" "+lN.footer_border_color:"",YT.style.borderBottom="bottom"==lN.footer_border?lN.footer_border_width+"px "+lN.footer_border_style+" "+lN.footer_border_color:"",YT.style.fontFamily=lN.footer_font?lN.footer_font.name:"inherit","justify"==lN.footer_align?YT.style.justifyContent="space-between":"left"==lN.footer_align?YT.style.justifyContent="flex-start":"right"==lN.footer_align?YT.style.justifyContent="flex-end":"center"==lN.footer_align&&(YT.style.justifyContent="center"),YT.style.fontSize=lN.footer_text_size+"rem",YT.style.color=lN.footer_text_color||lN.font_color,YT.style.alignItems=lN.footer_align_vertical;var r=document.createElement("span");t.forEach(function(t,e){var n=document.createElement("p"),e;0<e&&(n.innerText=", "),t.url?((e=document.createElement("a")).innerText=t.name||t.url,e.href=VT(t.url),e.target="_blank",n.appendChild(e)):n.innerText+=t.name||t.url,r.innerHTML+=n.innerHTML}),UT.style.order="left"==lN.footer_logo_order?2:"",UT.style.textAlign="justify"==lN.footer_align?"":lN.footer_align;var t="<p>";t+=""!==r.innerHTML?lN.source_label+" "+r.innerHTML:"",t+=lN.footer_note?(""!==r.innerHTML?" • ":"")+lN.footer_note:"",t+="</p>",t+=lN.footer_note_secondary?"<br /><p>"+lN.footer_note_secondary+"</p>":"",UT.innerHTML=t,BT.src=JT(),BT.style.height=lN.footer_logo_height+"rem",BT.style.marginLeft="right"==lN.footer_logo_order?lN.footer_logo_margin+"rem":"",BT.style.marginRight="left"==lN.footer_logo_order?lN.footer_logo_margin+"rem":"",BT.style.verticalAlign=lN.footer_align_vertical,BT.style.display=KT()?"":"none",FT.href=""==lN.footer_logo_link_url?"":VT(lN.footer_logo_link_url),FT.style.cursor=""==lN.footer_logo_link_url?"default":"pointer"}function eN(t){t||zT(),GT(),tN(),nN();var e=fN.wrapper.style;e.height="100vh",e.color=lN.font_color,e.maxWidth="wrapper"==lN.max_width_target?lN.max_width+"px":"",e.marginLeft="wrapper"==lN.max_width_target&&"left"!=lN.max_width_align?"auto":"",e.marginRight="wrapper"==lN.max_width_target&&"right"!=lN.max_width_align?"auto":"",e.padding=lN.margin_top+"rem "+lN.margin_right+"rem "+lN.margin_bottom+"rem "+lN.margin_left+"rem",e.borderTop=lN.border.enabled?lN.border.top.width+"px "+lN.border.top.style+" "+lN.border.top.color:"",e.borderRight=lN.border.enabled?lN.border.right.width+"px "+lN.border.right.style+" "+lN.border.right.color:"",e.borderBottom=lN.border.enabled?lN.border.bottom.width+"px "+lN.border.bottom.style+" "+lN.border.bottom.color:"",e.borderLeft=lN.border.enabled?lN.border.left.width+"px "+lN.border.left.style+" "+lN.border.left.color:"";var n=fN.primary.outer.style,t=fN.legend.outer.style,e=parseFloat(n.order)>parseFloat(t.order)?"above":"below";ET[lN.layout_order].forEach(function(t,e){fN[t].outer.style.order=10*e}),n.flex="1 1 auto",n.height=null,LN(e),t.textAlign=lN.header_align,fN.controls.outer.style.textAlign=lN.header_align,fN.primary.outer.style.maxWidth="primary"==lN.max_width_target?lN.max_width+"px":"",fN.primary.outer.style.marginLeft="primary"==lN.max_width_target&&"left"!=lN.max_width_align?"auto":"",fN.primary.outer.style.marginRight="primary"==lN.max_width_target&&"right"!=lN.max_width_align?"auto":"";var t=lN.screenreader_hide_primary&&""!=lN.screenreader_text_primary,r,i;document.getElementById("fl-layout-primary-description").innerText=lN.screenreader_hide_primary?lN.screenreader_text_primary:"",t?fN.primary.outer.setAttribute("aria-describedBy","fl-layout-primary-description"):fN.primary.outer.removeAttribute("aria-describedBy"),lN.screenreader_hide_primary?fN.primary.inner.setAttribute("aria-hidden",!0):fN.primary.inner.removeAttribute("aria-hidden");var i,o=(i="custom"==lN.space_between_sections?lN.space_between_sections_custom:lN.space_between_sections)/2+"rem";uN.map(function(t){var e=fN[t],n=e.outer.style,r;return{name:t,height:pN(e.inner),order:parseFloat(n.order),style:n}}).sort(function(t,e){return t.order-e.order}).filter(function(t){return!!t.height||(t.style.paddingBottom="",void(t.style.paddingTop=""))}).forEach(function(t,e,n){t.style.paddingTop=e?o:"",t.style.paddingBottom=e<n.length-1?o:""})}function nN(){document.body.style.backgroundColor=lN.background_color_enabled?lN.background_color:"transparent",document.body.style.backgroundImage=lN.background_image_enabled?"url("+lN.background_image_src+")":"",document.body.style.backgroundSize=lN.background_image_size,document.body.style.backgroundRepeat="no-repeat",document.body.style.backgroundPosition=lN.background_image_position}var rN=Object.freeze({body_font:{name:"Source Sans Pro",url:"https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700"},title_font:null,subtitle_font:null,footer_font:null,border:{enabled:!1,top:{width:1,color:"#dddddd",style:"solid"},right:{width:1,color:"#dddddd",style:"solid"},bottom:{width:1,color:"#dddddd",style:"solid"},left:{width:1,color:"#dddddd",style:"solid"}},layout_order:"stack-default",margin_top:.75,margin_right:.75,margin_bottom:.75,margin_left:.75,space_between_sections:1,space_between_sections_custom:1,background_color_enabled:!0,background_color:"#ffffff",background_image_enabled:!1,background_image_src:"",background_image_size:"cover",background_image_position:"center center",max_width:600,max_width_target:"none",max_width_align:"center",breakpoint_mobile_small:0,breakpoint_mobile_big:380,breakpoint_tablet:580,breakpoint_desktop:1080,breakpoint_big_screen:1280,font_color:"#333333",font_size_mobile_small:62.5,font_size_mobile_big:75,font_size_tablet:87.5,font_size_desktop:100,font_size_big_screen:120,header_align:"left",header_border:"none",header_border_width:1,header_border_color:"#dddddd",header_border_style:"solid",header_border_space:.5,header_logo_enabled:!1,header_logo_align:"inside",header_logo_src:"",header_logo_height:3,header_logo_position_inside:"left",header_logo_position_outside:"left",header_logo_margin_top:.25,header_logo_margin_right:.5,header_logo_margin_bottom:0,header_logo_margin_left:0,title:"",title_size:1.6,title_size_custom:1.6,title_line_height:1.2,title_color:null,title_weight:"bold",title_space_above:0,title_space_above_custom:1.5,title_styling:!1,subtitle:"",subtitle_size:1.6,subtitle_size_custom:1.6,subtitle_line_height:1.2,subtitle_color:null,subtitle_weight:"normal",subtitle_space_above:0,subtitle_space_above_custom:1.5,subtitle_styling:!1,header_text:"",header_text_size:1.2,header_text_size_custom:1.2,header_text_line_height:1.2,header_text_color:null,header_text_weight:"normal",header_text_space_above:.5,header_text_space_above_custom:1.5,source_label:"Source: ",source_name:"",source_url:"",source_name_2:"",source_url_2:"",source_name_3:"",source_url_3:"",footer_note:"",footer_note_secondary:"",footer_text_size:1,footer_text_color:null,footer_styling:!1,footer_align:"justify",footer_align_vertical:"center",footer_border:"none",footer_border_width:1,footer_border_color:"#dddddd",footer_border_style:"solid",footer_border_space:.5,footer_logo_enabled:!1,footer_logo_src:"",footer_logo_src_light:"",footer_logo_link_url:"",footer_logo_height:1.5,footer_logo_margin:.25,footer_logo_order:"right",screenreader_hide_primary:!0,screenreader_text_primary:""});function iN(){if(Flourish.fixed_height)return window.innerHeight;var t=window.innerWidth;return 999<t?650:599<t?575:400}var oN="Your web browser does not support the features used by this content. Consider updating to a modern browser.",aN,sN,lN;function cN(t){return window.innerWidth!==aN&&(aN=window.innerWidth,sN=parseFloat(getComputedStyle(document.documentElement).fontSize)),t*sN}var uN=["header","controls","legend","primary","footer"],dN,fN={};function hN(t){return t.getBoundingClientRect().width}function pN(t){return t.getBoundingClientRect().height}function gN(){var t=document.createElement("div");t.id="fl-layout-wrapper-outer",t.style.display="flex";var e=document.createElement("main");e.id="fl-layout-wrapper",e.style.display="flex",e.style.flexGrow="1",e.style.flexDirection="column",e.style.boxSizing="border-box",e.style.overflow="hidden";var n=document.createElement("aside");return n.id="fl-layout-sidebar",n.style.position="relative",fN.sidebar=n,t.appendChild(e),t.appendChild(n),document.body.appendChild(t),e}function _N(t,e){var n="fl-layout-"+t,r=document.createElement("section");r.className="fl-layout-container",r.id=n+"-container",r.style.width="100%",r.style.position="relative",r.style.order=e;var e=document.createElement("div");return e.className="fl-layout-inner",e.id=n,e.style.width="100%",e.style.position="relative","primary"==t&&(r.style.display="flex",yN(r)),"controls"!=t&&"legend"!=t||e.setAttribute("aria-hidden",!0),r.appendChild(e),fN.wrapper.appendChild(r),{outer:r,inner:e}}function yN(t){var e=document.createElement("p");e.id="fl-layout-primary-description";var n=e.style;return n.border="0",n.height="1px",n.width="1px",n.margin="-1px",n.overflow="hidden",n.padding="0",n.position="absolute",n.clip="rect(0 0 0 0)",t.appendChild(e),e}function mN(){var t=fN.primary.outer;t.style.position="relative",(dN=document.createElement("div")).id="fl-layout-overlay";var e=dN.style;e.position="absolute",e.display="none",e.width="100%",e.height="100%",e.top=0,e.left=0,e.backgroundColor="rgb(200,200,200)",e.zIndex=999999,e.pointerEvents="none";var n=document.createElement("p");return n.className="fl-layout-overlay-message",(e=n.style).color="#333333",e.fontSize="1.5rem",e.paddingLeft="15%",e.paddingRight="15%",e.width="100%",e.boxSizing="border-box",e.position="absolute",e.top="50%",e.transform="translate(0, -50%)",e.margin="0",e.textAlign="center",dN.appendChild(n),t.appendChild(dN),dN}function vN(){return fN.wrapper}function bN(){return fN.sidebar}function xN(t){return-1!==uN.indexOf(t)?fN[t].inner:null}function wN(t){return fN[t]||void 0===t?hN("wrapper"==t||void 0===t?fN.wrapper:fN[t].outer):null}function MN(t){return fN[t]||void 0===t?"wrapper"==t||void 0===t?hN(fN.wrapper)-zN("horizontal")-EN("horizontal"):hN(fN[t].inner):null}function kN(t){return fN[t]||void 0===t?pN("wrapper"==t||void 0===t?fN.wrapper:fN[t].outer):null}function jN(t){return fN[t]||void 0===t?"wrapper"==t||void 0===t?pN(fN.wrapper)-zN("vertical")-EN("vertical"):pN(fN[t].inner):null}function AN(){return pN(fN.primary.outer)-TN(fN.primary.outer)}function IN(){return hN(fN.primary.inner)}function TN(t){var e,n;return(parseFloat(getComputedStyle(t).paddingTop)||0)+(parseFloat(getComputedStyle(t).paddingBottom)||0)}function NN(){var t,e,n;return iN()-zN("vertical")-EN("vertical")-["header","controls","legend","footer"].reduce(function(t,e){return t+kN(e)},0)-TN(fN.primary.outer)}function zN(t){var e;return"left"==t?e=lN.margin_left:"right"==t?e=lN.margin_right:"top"==t?e=lN.margin_top:"bottom"==t?e=lN.margin_bottom:"horizontal"==t?e=lN.margin_left+lN.margin_right:"vertical"==t&&(e=lN.margin_top+lN.margin_bottom),cN(e)}function EN(t){return lN.border.enabled?"vertical"==t?lN.border.top.width+lN.border.bottom.width:"horizontal"==t?lN.border.left.width+lN.border.right.width:null:0}function SN(t){var e=fN.primary,n,t;Flourish.fixed_height||void 0===Flourish.fixed_height?e.inner.style.height="":(t=(n=null===t)?NN():t)+TN(fN.primary.outer)!==parseFloat(e.outer.style.height)&&(fN.wrapper.style.height="",e.outer.style.flex="",e.inner.style.height=t+"px",Flourish.setHeight(n?null:kN()))}function LN(t){var e=parseFloat(fN.primary.outer.style.order);fN.legend.outer.style.order=e+("below"===t.trim().toLowerCase()?1:-1)}function DN(t){var e=dN.querySelector(".fl-layout-overlay-message"),n;t?(dN.style.display="block",e.innerHTML="string"==typeof t?t:oN):(e.textContent="",dN.style.display="none")}function CN(){return dN}function ON(t){for(var e in lN=t,rN)void 0===lN[e]&&(lN[e]=rN[e]);return NT(),fN.wrapper=gN(),uN.forEach(function(t,e){fN[t]=_N(t,e)}),xN("header").appendChild(HT()),xN("footer").appendChild(WT()),fN.primary.outer.style.overflow="hidden",mN(),eN(!0),{update:eN,getWrapper:vN,getSidebar:bN,getSection:xN,getOuterWidth:wN,getInnerWidth:MN,getOuterHeight:kN,getInnerHeight:jN,getPrimaryHeight:AN,getPrimaryWidth:IN,getDefaultPrimaryHeight:NN,setHeight:SN,setLegendPosition:LN,showOverlay:DN,remToPx:cN,getOverlay:CN}}function PN(){return this.declarations=[],this}function RN(t){return this.selector=t,this.styles=[],this}PN.prototype.select=function(t){if(!t)return this;var t=new RN(t,this);return(t.parent=this).addDeclaration(t),t},PN.prototype.addDeclaration=function(t){return this.declarations.push(t),this},PN.prototype.print=function(){var e="";return this.declarations.forEach(function(t){e+=t.selector+" {\n",t.styles.forEach(function(t){e+="\t"+t[0]+": "+t[1]+";\n"}),e+="}\n\n"}),e},PN.prototype.clear=function(){return this.declarations=[],this},RN.prototype.style=function(t,e){var e="function"==typeof value_?e():e;return""!==e&&null!=e&&this.styles.push([t,e]),this},RN.prototype.select=function(t){return this.parent.select(this.selector+" "+t)};var YN=Object.freeze({font_size:1,font_weight:"bold",padding:.4});function UN(t,e,n){for(var r in this._state=t,YN)void 0===this._state[r]&&(this._state[r]=YN[r]);return this._layout=n||{},this._styles=new PN,this._selector=e,this._createStylesheet(),this}UN.prototype._createStylesheet=function(){this._stylesheet=document.createElement("style"),this._stylesheet.className="fl-ui-styles-controls",document.head.appendChild(this._stylesheet)},UN.prototype.update=function(){this._styles.clear(),this._styles.select(this._selector+".hidden").style("display","none"),this._styles.select(this._selector).style("vertical-align","middle").style("position","relative").style("font-size",this._state.font_size+"rem").style("font-weight",this._state.font_weight),this._styles.select(".fl-controls-title").style("font-size",this._state.font_size+"rem").style("font-weight",this._state.font_weight).style("vertical-align","middle"),this._styles.select(this._selector+".fl-control .button").style("padding",this._state.padding+"rem "+2*this._state.padding+"rem"),this._styles.select(this._selector+" .list-item").style("padding",Math.max(this._state.padding,.5)+"rem"),this._styles.select(this._selector+"-dropdown .main").style("padding",this._state.padding+"rem "+1.5*this._state.padding+"rem"),this._styles.select(this._selector+"-slider .slider-end-labels").style("font-size",this._state.font_size+"rem").style("font-weight",this._state.font_weight),this._styles.select(this._selector+"-slider").style("padding",this._state.padding+"rem 0"),this._stylesheet.innerHTML=this._styles.print()};var BN=(FN=document.createElement("canvas").getContext("2d"),function(t,e){var n;return FN.font=e||"10px sans-serif",FN.measureText(t).width}),FN;function ZN(t,e){if("string"!=typeof t)return!1;var t=Gm(t);return t.opacity=void 0!==e?e:1,t}function HN(t,e){var e=ZN(t,e);return!!e&&e.toString()}var GN=Object.freeze({background:null,font_color:null,background_selected:"#2886b2",font_color_selected:"#ffffff",background_hover:null,font_color_hover:null,border_width:1,border_transparency:.25,border_color:null,border_radius:3});function QN(t,e,n){for(var r in this._state=t,GN)void 0===this._state[r]&&(this._state[r]=GN[r]);return this._layout=n||{},this._styles=new PN,this._selector=e,this._createStylesheet(),this}QN.prototype._createStylesheet=function(){this._stylesheet=document.createElement("style"),this._stylesheet.className="fl-ui-styles-button",document.head.appendChild(this._stylesheet)},QN.prototype.update=function(){this._styles.clear();var t=this._state.background||this._layout.background_color||"#ffffff",e=this._state.font_color||this._layout.font_color||"#333333",n=HN(this._state.border_color||e,this._state.border_transparency);this._styles.select(this._selector+".fl-control.hidden").style("display","none"),this._styles.select(this._selector+".fl-control .button").style("overflow","hidden").style("white-space","nowrap").style("box-sizing","content-box").style("margin","0 2px 0 0 !important").style("background-color",t).style("color",e).style("border",this._state.border_width+"px solid "+n).style("border-radius",this._state.border_radius+"px"),this._styles.select(this._selector+".fl-control .button:hover").style("background-color",this._state.background_hover||t).style("color",this._state.font_color_hover||e),this._styles.select(this._selector+".fl-control .button.selected").style("background-color",this._state.background_selected).style("color",this._state.font_color_selected),this._styles.select(this._selector+".grouped.fl-control .button").style("border-right","none").style("border-radius","0").style("margin","0"),this._styles.select(this._selector+".grouped.fl-control .button:first-child").style("border-radius",this._state.border_radius+"px 0 0 "+this._state.border_radius+"px"),this._styles.select(this._selector+".grouped.fl-control .button:last-child").style("border-radius","0 "+this._state.border_radius+"px "+this._state.border_radius+"px 0").style("border-right",this._state.border_width+"px solid "+n),this._styles.select(this._selector+".grouped.fl-control.fixed-width:not(.hidden)").style("width",this._state.grouped_width+"%"),this._stylesheet.innerHTML=this._styles.print()};var qN=Object.freeze({background:null,font_color:null,border_style:"bottom",border_width:1,border_color:null,border_transparency:.25,border_radius:3});function VN(t,e,n){for(var r in this._state=t,qN)void 0===this._state[r]&&(this._state[r]=qN[r]);return this._layout=n||{},this._styles=new PN,this._selector=e,this._createStylesheet(),this}function WN(t,e,n){return new UN(t,e,n)}function $N(t,e,n){return new QN(t,e,n)}function XN(t,e,n){return new VN(t,e,n)}VN.prototype._createStylesheet=function(){this._stylesheet=document.createElement("style"),this._stylesheet.className="fl-ui-styles-dropdown",document.head.appendChild(this._stylesheet)},VN.prototype.update=function(){this._styles.clear();var t=this._state.background||this._layout.background_color||"#ffffff",e=this._state.font_color||this._layout.font_color||"#333333",n=HN(this._state.border_color||e,this._state.border_transparency);this._styles.select(this._selector+" .heading").style("margin-bottom","0.4em"),this._styles.select(this._selector).style("pointer-events","all"),this._styles.select(this._selector+" .main").style("display","inline-block").style("cursor","pointer").style("overflow","hidden").style("white-space","nowrap").style("position","relative").style("background-color",t).style("color",e).style("border","bottom"==this._state.border_style?this._state.border_width+"px solid transparent":this._state.border_width+"px solid "+n).style("border-bottom","bottom"==this._state.border_style?this._state.border_width+"px solid "+n:null).style("border-radius","bottom"==this._state.border_style?null:this._state.border_radius+"px"),this._styles.select(this._selector+" .main .symbol").style("float","right").select("div").style("border-top-color",e+" !important"),this._styles.select(this._selector+" .main .current").style("line-height","1em").style("height","100%").style("max-width","88%").style("display","inline-block").style("overflow","hidden").style("vertical-align","top"),this._styles.select(this._selector+" .list").style("top","2px").style("min-width","100%").style("padding","2px").style("display","none").style("max-height","200px").style("overflow-y","auto").style("box-shadow","0 1px 4px rgba(0, 0, 0, .1)").style("margin-top","2px").select(".list-item").style("line-height","1em").style("cursor","pointer").style("font-weight","normal").style("color",e),this._styles.select(this._selector+".open .list").style("display","block").style("border",this._state.border_width+"px solid "+n).style("background-color",t).style("z-index","1").style("animation","dropdown-out 200ms"),this._styles.select(this._selector+" .list-item:hover").style("opacity","0.6"),this._styles.select(this._selector+" .list-item.selected, "+this._selector+" .list-item.selected:hover").style("opacity","1").style("cursor","default"),"bottom"==this._state.border_style&&this._styles.select(this._selector+" .main").style("padding-left",0).style("padding-right","0.1rem"),this._stylesheet.innerHTML=this._styles.print()};var JN=Object.freeze({input_decimal_separator:".",output_separators:",."});function KN(t,e){return{decimal:t,thousands:e,grouping:[3],currency:["",""]}}function tz(e){var n=new RegExp("[^-0-9eE"+e+"]","g");return function(t){return"number"==typeof t?t:""===t||void 0===t?NaN:parseFloat(t.replace(n,"").replace(e,"."))}}function ez(t){var e=1<t.length,n=e?t.charAt(1):t.charAt(0),e=e?t.charAt(0):"",t=EA(KN(n,e)).format;return t.decimal=n,t.thousands=e,t}function nz(e){for(var t in JN)void 0===e[t]&&(e[t]=JN[t]);return{getParser:function t(){return tz(e.input_decimal_separator)},getFormatterFunction:function t(){return ez(e.output_separators)}}}var rz=Object.freeze({transform_labels:!1,transform:"multiply",multiply_divide_constant:1,exponentiate_constant:0,multiplier:1,prefix:"",n_dec:2,suffix:"",strip_zeros:!0,strip_separator:!0,negative_sign:"-$nk"});function iz(t,e){if(!(e=0<e?Math.floor(e):Math.ceil(e)))return Math.round(t);var n=Math.pow(10,Math.abs(e));return 0<e?Math.round(t*n)/n:Math.round(t/n)*n}function oz(t){var e=1;return t.transform_labels&&(e="multiply"===t.transform?t.multiply_divide_constant:"divide"===t.transform?1/t.multiply_divide_constant:Math.pow(10,t.exponentiate_constant)),function(t){return t*e}}function az(r,t){var i=0<=r.n_dec?Math.floor(r.n_dec):Math.ceil(r.n_dec),o=t(",."+(0<i?i:"0")+"f"),e=t.decimal,a=t.thousands,s=r.strip_zeros&&0<i?new RegExp("\\"+e+"?0+$"):null,l=r.strip_separator&&a,c=r.negative_sign,u=oz(r);return function(t){var e=0<=i?u(t):iz(u(t),i),n=e<0,t=Math.abs(e),e=l&&a&&1e3<=t&&t<1e4,t=o(t);return s&&(t=t.replace(s,"")),e&&(t=t.replace(a,"")),n&&"none"!==c?"-$nk"===c?"-"+r.prefix+t+r.suffix:"$-nk"===c?r.prefix+"-"+t+r.suffix:"($nk)"===c?"("+r.prefix+t+r.suffix+")":r.prefix+"("+t+")"+r.suffix:r.prefix+t+r.suffix}}function sz(e){for(var t in rz)void 0===e[t]&&(e[t]=rz[t]);return function(t){return az(e,t)}}function lz(t){var t;return t.appendChild(this._container.node()),document.querySelector("#legend-styles")||((t=document.createElement("style")).id="legend-styles",t.type="text/css",t.innerHTML=".fl-legend-container.interactive .fl-legend-item:hover { opacity: 0.75; cursor: pointer; }",document.head.appendChild(t)),this}function cz(t){return this._formatFunction=t,this}function uz(){return this._container}function dz(t){return void 0===t?this._visible:(this._visible=t,this)}function fz(t){return void 0===t?this._auto_title:(this._auto_title=t,this)}function hz(){var t=this,e="auto"==t._state.title_mode?t.autoTitle():t._state.title;this._container.select(".fl-legend-title").text(e).style("display",function(){return e.trim()?void 0===t._state.orientation||"horizontal"==t._state.orientation?"inline-block":"block":"none"}).style("font-weight",this._state.title_weight).style("color",this._state.text_color).style("vertical-align","middle").style("font-size",this._state.text_size+"rem").style("line-height","1.25rem").style("margin-top",0).style("margin-bottom",0).style("margin-right",this._state.text_size+"rem")}var pz=0,gz=Object.freeze({show_legend:!0,title_mode:"auto",title:"",title_weight:"bold",swatch_width:.75,swatch_height:1,swatch_radius:3,order_override:"",orientation:"horizontal",text_color:null,text_size:1,text_weight:"normal"});function _z(t){for(var e in this._state=t,gz)void 0===this._state[e]&&(this._state[e]=gz[e]);return this._colorFunction=void 0,this._formatFunction=void 0,this._legend_items=[],this._filtered_items=[],this._eventListeners=[],this._id="fl-legend-discrete-color-"+pz,this._visible=!0,this._auto_title="",this._container=my(document.createElement("div")).attr("class","fl-legend-container").attr("id",this._id),this._container.append("p").attr("class","fl-legend-title"),pz++,this}function yz(t,e){for(var n={},r=e.split(/\s*\n\s*/),i=0,o;i<r.length;i++){n[r[i]]=i}for(var a=[],s=0;s<t.length;s++){var l=t[s],c=n[l.label];void 0!==c&&(a[c]=l)}return a.filter(function(t){return void 0!==t})}function mz(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function vz(t,e){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(e).domain(t)}return this}_z.prototype.appendTo=lz,_z.prototype.format=cz,_z.prototype.getContainer=uz,_z.prototype.visible=dz,_z.prototype.autoTitle=fz,_z.prototype._updateTitle=hz,_z.prototype.data=function(t,n){return this._colorFunction=n,t||n?(n?Array.isArray(t)?this._legend_items=t.slice().map(function(t,e){var t="object"==ig(t)?t.label||"":t;return t?{label:t,color:n(t,e),index:e}:null}).filter(function(t){return null!==t}):this._legend_items=[]:this._legend_items=Array.isArray(t)?t.slice():[],this):this._legend_items.slice()},_z.prototype.filtered=function(t){return t?(this._filtered_items=Array.isArray(t)?t.slice():[],this):this._filtered_items.slice()},_z.prototype.on=function(t,n){return this._container&&(n&&this._eventListeners.indexOf(t)<0?this._eventListeners.push(t):n||this._eventListeners.splice(this._eventListeners.indexOf[t],1),this._container.classed("interactive",0<this._eventListeners.length),n?this._container.on(t,function(){var t=ry.target,e=t.parentNode,t=t.classList.contains("fl-legend-item")?t:e.classList.contains("fl-legend-item")?e:null,e;t&&(e=my(t).datum(),n.call(t,e,e.index))}):this._container.on(t,null)),this},_z.prototype.update=function(){var t=this._state.show_legend&&this._visible&&0<this._legend_items.length;return this._container.style("display",t?"":"none"),t&&(this._updateTitle(),this._updateLegend()),this},_z.prototype._updateLegend=function(){var e=this,n=this._formatFunction,t;this._container.style("line-height","1.25rem").style("display","inline-flex").style("flex-wrap","wrap").style("align-items","horizontal"==this._state.orientation?"center":"start").style("flex-direction","horizontal"==this._state.orientation?null:"column");var t=this._state.order_override.trim()?yz(this._legend_items,this._state.order_override):this._legend_items,r=this._container.selectAll(".fl-legend-item").data(t),t=r.enter().append("div").attr("class","fl-legend-item");t.append("div").attr("class","fl-legend-swatch"),t.append("p").attr("class","fl-legend-label");var t=r.merge(t);return t.style("display","horizontal"==this._state.orientation?"inline-block":"block").style("opacity",function(t){return-1<e._filtered_items.indexOf(t.label)?.2:""}).style("line-height","0").style("vertical-align","middle").style("margin-right","horizontal"==this._state.orientation?.5*this._state.text_size+"rem":""),t.select(".fl-legend-swatch").style("height",this._state.swatch_height+"rem").style("width",this._state.swatch_width+"rem").style("margin-right",.25*this._state.text_size+"rem").style("border-radius",this._state.swatch_radius+"px").style("background-color",function(t){return t.color}).style("vertical-align","middle").style("display","inline-block"),t.select(".fl-legend-label").style("font-size",this._state.text_size+"rem").style("color",this._state.text_color).text(function(t){return n?n(t.label):t.label}).style("margin",0).style("vertical-align","middle").style("user-select","none").style("line-height","1.25rem").style("font-weight",this._state.text_weight).style("display","inline-block"),r.exit().remove(),this._legend_item_els=t,this};var bz,xz=Array.prototype.slice;function wz(t){return t}function Mz(t,e,n,r){var i=wk(t,e,n),o;switch((r=vA(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=DA(i,a))||(r.precision=o),zA(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=CA(i,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=LA(i))||(r.precision=o-2*("%"===r.type))}return NA(r)}function kz(s){var l=s.domain;return s.ticks=function(t){var e=l();return bk(e[0],e[e.length-1],null==t?10:t)},s.tickFormat=function(t,e){var n=l();return Mz(n[0],n[n.length-1],null==t?10:t,e)},s.nice=function(t){null==t&&(t=10);var e=l(),n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=i,i=o,o=a,a=n,n=r,r=a),0<(a=xk(i,o,t))?a=xk(i=Math.floor(i/a)*a,o=Math.ceil(o/a)*a,t):a<0&&(a=xk(i=Math.ceil(i*a)/a,o=Math.floor(o*a)/a,t)),0<a?(e[n]=Math.floor(i/a)*a,e[r]=Math.ceil(o/a)*a,l(e)):a<0&&(e[n]=Math.ceil(i*a)/a,e[r]=Math.floor(o*a)/a,l(e)),s},s}function jz(){var i=[],n=[],r=[],e;function o(){var t=0,e=Math.max(1,n.length);for(r=new Array(e-1);++t<e;)r[t-1]=Mk(i,t/e);return a}function a(t){return isNaN(t=+t)?e:n[dk(r,t)]}return a.invertExtent=function(t){var t=n.indexOf(t);return t<0?[NaN,NaN]:[0<t?r[t-1]:i[0],t<r.length?r[t]:i[i.length-1]]},a.domain=function(t){if(!arguments.length)return i.slice();i=[];for(var e=0,n=t.length,r;e<n;++e)null==(r=t[e])||isNaN(r=+r)||i.push(r);return i.sort(sk),o()},a.range=function(t){return arguments.length?(n=xz.call(t),o()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return r.slice()},a.copy=function(){return jz().domain(i).range(n).unknown(e)},mz.apply(a,arguments)}function Az(){var e=0,n=1,r=1,i=[.5],o=[0,1],a;function s(t){return t<=t?o[dk(i,t,0,r)]:a}function l(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*n-(t-r)*e)/(r+1);return s}return s.domain=function(t){return arguments.length?(e=+t[0],n=+t[1],l()):[e,n]},s.range=function(t){return arguments.length?(r=(o=xz.call(t)).length-1,l()):o.slice()},s.invertExtent=function(t){var t=o.indexOf(t);return t<0?[NaN,NaN]:t<1?[e,i[0]]:r<=t?[i[r-1],n]:[i[t-1],i[t]]},s.unknown=function(t){return arguments.length&&(a=t),s},s.thresholds=function(){return i.slice()},s.copy=function(){return Az().domain([e,n]).range(o).unknown(a)},mz.apply(kz(s),arguments)}function Iz(){var e=[.5],n=[0,1],r,i=1;function o(t){return t<=t?n[dk(e,t,0,i)]:r}return o.domain=function(t){return arguments.length?(e=xz.call(t),i=Math.min(e.length,n.length-1),o):e.slice()},o.range=function(t){return arguments.length?(n=xz.call(t),i=Math.min(e.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var t=n.indexOf(t);return[e[t-1],e[t]]},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return Iz().domain(e).range(n).unknown(r)},mz.apply(o,arguments)}function Tz(){var e=0,n=1,r,i,o,a,s=wz,l=!1,c;function u(t){return isNaN(t=+t)?c:s(0===o?.5:(t=(a(t)-r)*o,l?Math.max(0,Math.min(1,t)):t))}return u.domain=function(t){return arguments.length?(r=a(e=+t[0]),i=a(n=+t[1]),o=r===i?0:1/(i-r),u):[e,n]},u.clamp=function(t){return arguments.length?(l=!!t,u):l},u.interpolator=function(t){return arguments.length?(s=t,u):s},u.unknown=function(t){return arguments.length?(c=t,u):c},function(t){return r=(a=t)(e),i=t(n),o=r===i?0:1/(i-r),u}}function Nz(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function zz(){var t=kz(Tz()(wz));return t.copy=function(){return Nz(t,zz())},vz.apply(t,arguments)}function Ez(){var e=0,n=.5,r=1,i,o,a,s,l,c=wz,u,d=!1,f;function h(t){return isNaN(t=+t)?f:(t=.5+((t=+u(t))-o)*(t<o?s:l),c(d?Math.max(0,Math.min(1,t)):t))}return h.domain=function(t){return arguments.length?(i=u(e=+t[0]),o=u(n=+t[1]),a=u(r=+t[2]),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),h):[e,n,r]},h.clamp=function(t){return arguments.length?(d=!!t,h):d},h.interpolator=function(t){return arguments.length?(c=t,h):c},h.unknown=function(t){return arguments.length?(f=t,h):f},function(t){return i=(u=t)(e),o=t(n),a=t(r),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),h}}function Sz(){var t=kz(Ez()(wz));return t.copy=function(){return Nz(t,Sz())},vz.apply(t,arguments)}var Lz=Object.freeze({show_legend:!0,title_mode:"auto",title:"",title_weight:"bold",color_band_width:8,color_band_height:1,color_band_radius:3,binned_label_mode:"thresholds",binned_label_custom:"",legend_min:null,legend_max:null,text_color:null,text_size:1,text_weight:"normal"}),Dz=Object.freeze({show_legend:!0,title_mode:"auto",title:"",title_weight:"bold",clip_height:1,small_circle_size:.5,shape_fill:"#eeeeee",shape_stroke:"#555555",text_color:null,text_size:1,text_weight:"normal"});function Cz(t){return new _z(t)}function Oz(){return parseFloat}function Pz(){return function(t){return t.toString()}}function Rz(t){return t.toLowerCase()}function Yz(t,e){return t<e?-1:e<t?1:e<=t?0:NaN}function Uz(t,e,n,r){var i="numeric"===e.sort,o="temporal"===e.sort,a=Rz;i?a=n:o&&(a=Mw(e.sort_temporal_format));var t=t.map(function(t,e){var n=a(t);return{value:t,options_index:e,parsed:n,display:i&&!isNaN(n)?r(n):t}});return"unsorted"==e.sort?t:t.sort(function(t,e){return Yz(t.parsed,e.parsed)})}function Bz(){return this.declarations=[],this}function Fz(t){return this.selector=t,this.styles=[],this}function Zz(){var t=new Bz;return t.select(".fl-controls-container").style("display","inline-block").style("line-height","1em"),t.select(".fl-controls-title").style("display","inline-block").style("margin","0px 0.5em 0px 0px"),t.select(".fl-controls-container, .fl-controls-container *").style("box-sizing","border-box"),t.select(".slider-holder").style("margin-bottom","20px"),t.select(".fl-controls-slider, .slider-play").style("pointer-events","all").style("display","inline-block").style("vertical-align","middle"),t.select(".slider-play svg").style("height","100%").style("width","100%").style("cursor"," pointer",""),t.select(".slider-play:hover").style("opacity","0.6"),t.select(".fl-control-slider").style("width","100%").style("bottom","0"),t.select(".fl-control").style("position","relative"),t.select(".fl-control.hidden").style("display","none"),t.select(".fl-control .button").style("display","inline-block").style("background","#eee").style("padding","0.5em").style("margin-right","0.25em").style("margin-bottom","0.25em").style("line-height","1em"),t.select(".fl-control.grouped:not(.hidden)").style("display","inline-table").style("table-layout","fixed").select(".button").style("display","table-cell").style("margin","0").style("text-align","center"),t.select(".fl-control .button.selected").style("background","#ddd"),t.select(".fl-control-dropdown").style("line-height","1em").select(".list").style("display","none").style("position","absolute").style("background-color","white").style("z-index","100").style("border","1px solid #eee").select(".list-item").style("cursor","pointer").style("padding","0.5rem"),t.select(".fl-control-dropdown.open .list").style("display","block"),t.select(".fl-control-dropdown .main").style("position","relative"),t.select(".fl-control-dropdown .symbol").style("float","right").select("div").style("border-top-color","#333333"),t.print()}Bz.prototype.select=function(t){if(!t)return this;var t=new Fz(t,this);return(t.parent=this).addDeclaration(t),t},Bz.prototype.addDeclaration=function(t){return this.declarations.push(t),this},Bz.prototype.print=function(){var e="";return this.declarations.forEach(function(t){e+=t.selector+" {\n",t.styles.forEach(function(t){e+="\t"+t[0]+": "+t[1]+";\n"}),e+="}\n\n"}),e},Bz.prototype.clear=function(){return this.declarations=[],this},Fz.prototype.style=function(t,e){var e="function"==typeof value_?e():e;return""!==e&&null!=e&&this.styles.push([t,e]),this};var Hz=!(Fz.prototype.select=function(t){return this.parent.select(this.selector+" "+t)});function Gz(){var t,e,n;Hz||"undefined"==typeof document||(t=Zz(),e=document.head||document.getElementsByTagName("head")[0],(n=document.createElement("style")).type="text/css",n.className="flourish-controls",e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t)),Hz=!0)}var Qz=(qz=document.createElement("canvas").getContext("2d"),function(t,e){var n;return qz.font=e||"10px sans-serif",qz.measureText(t).width}),qz,Vz;function Wz(){var n=parseFloat(getComputedStyle(document.documentElement).fontSize)||16;Vz=function t(e){return e*n}}var $z=90;function Xz(i,o,r){var a={},s=document.body,l=my(r).append("div").attr("class","fl-control fl-control-dropdown"),c=l.node(),t=l.append("div").attr("class","main"),u=t.append("span").attr("class","current");t.append("span").attr("class","symbol").style("width","10px").append("div").style("border-left","5px solid transparent").style("border-right","5px solid transparent").style("border-bottom","5px solid transparent").style("border-top-style","solid").style("border-top-width","5px").style("top","50%").style("position","absolute").style("margin-top","-2.5px");var d=l.append("div").attr("class","list"),e=function t(){l.classed("open",!0),d.style("top","100%"),d.style("bottom",null),d.style("display",null),d.style("overflow","auto");var e=s.getBoundingClientRect(),n=d.node().getBoundingClientRect(),r,e;0<n.bottom-e.bottom&&(e=e.bottom-n.top-30,$z<e?d.style("max-height",e+"px"):d.style("top","auto").style("bottom","100%")),n.right>window.innerWidth&&d.style("right",0)},f=function t(){l.classed("open",!1),d.style("right",null),d.style("max-height",null),d.style("display","none")},n=function t(){(l.classed("open")?f:e)()};t.on("click",function(){n()});var h=function t(){if(l.classed("open")){for(var e=event.target,n=e.parentElement;n;){if(e===c)return;n=(e=n).parentElement}f()}},p=function t(e){var n="100%";"auto"==o.dropdown_width_mode?n=Math.min(e+40,Vz(20))+"px":"fixed"==o.dropdown_width_mode&&(n=Vz(o.dropdown_width_fixed)+"px"),r.style.width="full"==o.dropdown_width_mode?n:"",l.style("width",n).style("display","full"!==o.dropdown_width_mode?"inline-table":null),l.select(".main").style("width",n)},g=function t(){f(),l.style("display","none")};return a.appendedToDOM=function(t){return t&&(s=t),document.querySelector("body").addEventListener("click",h,!1),a},a.removedFromDOM=function(){return document.querySelector("body").removeEventListener("click",h),a},a.show=p,a.hide=g,a.update=function(t){d.text("");var e=window.getComputedStyle(l.node()).fontSize;if(!i.n_options||"dropdown"!==o.control_type)return g(),a;var n="";d.text("").selectAll(".list-item").data(t).enter().append("div").attr("class","list-item").text(function(t){return t.display.length>n.length&&(n=t.display),t.display}).on("click",function(t){f();var e=t.options_index;e!==i.index()&&(i.index(e),u.text(t.display).attr("title",t.display),i.trigger("change"))});var e=Qz(n,e+" sans-serif"),r,t=t[i.getSortedIndex()].display;return u.text(t).attr("title",t),p(e),a},a}function Jz(r,i,t){var o={},a=my(t).append("div").attr("class","fl-control fl-control-buttons"),s=function t(){a.classed("hidden",!1)},l=function t(){a.classed("hidden",!0)};return o.show=s,o.hide=l,o.update=function(t){if(a.text(""),!r.n_options||"buttons"!==i.control_type)return l(),o;var e=r.index();a.classed("grouped",i.button_group),a.classed("fixed-width","fixed"==i.button_group_width_mode||"full"==i.button_group_width_mode),a.style("width",i.button_group&&"fixed"==i.button_group_width_mode?Vz(i.button_group_width_fixed)+"px":"full"==i.button_group_width_mode?"100%":null);var n=a.selectAll(".button").data(t).enter().append("div");n.attr("class","button").style("cursor","pointer").classed("selected",function(t){return t.options_index===e}).on("click",function(t){var e=t.options_index;e!==r.index()&&(r.index(e),n.classed("selected",function(t){return t.options_index===e}),r.trigger("change"))}).append("span").text(function(t){return t.display}),s()},o}var Kz=Array.prototype.slice;function tE(t){return t}var eE=1,nE=2,rE=3,iE=4,oE=1e-6;function aE(t){return"translate("+(t+.5)+",0)"}function sE(t){return"translate(0,"+(t+.5)+")"}function lE(e){return function(t){return+e(t)}}function cE(e){var n=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(n=Math.round(n)),function(t){return+e(t)+n}}function uE(){return!this.__axis}function dE(h,p){var g=[],_=null,y=null,m=6,v=6,b=3,x=h===eE||h===iE?-1:1,w=h===iE||h===nE?"x":"y",M=h===eE||h===rE?aE:sE;function e(t){var e=null==_?p.ticks?p.ticks.apply(p,g):p.domain():_,n=null==y?p.tickFormat?p.tickFormat.apply(p,g):tE:y,r=Math.max(m,0)+b,i=p.range(),o=+i[0]+.5,a=+i[i.length-1]+.5,s=(p.bandwidth?cE:lE)(p.copy()),l=t.selection?t.selection():t,c=l.selectAll(".domain").data([null]),u,d=(u=l.selectAll(".tick").data(e,p).order()).exit(),f=u.enter().append("g").attr("class","tick"),i=u.select("line"),e=u.select("text"),c=c.merge(c.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),u=u.merge(f),i=i.merge(f.append("line").attr("stroke","currentColor").attr(w+"2",x*m)),e=e.merge(f.append("text").attr("fill","currentColor").attr(w,x*r).attr("dy",h===eE?"0em":h===rE?"0.71em":"0.32em"));t!==l&&(c=c.transition(t),u=u.transition(t),i=i.transition(t),e=e.transition(t),d=d.transition(t).attr("opacity",oE).attr("transform",function(t){return isFinite(t=s(t))?M(t):this.getAttribute("transform")}),f.attr("opacity",oE).attr("transform",function(t){var e=this.parentNode.__axis;return M(e&&isFinite(e=e(t))?e:s(t))})),d.remove(),c.attr("d",h===iE||h==nE?v?"M"+x*v+","+o+"H0.5V"+a+"H"+x*v:"M0.5,"+o+"V"+a:v?"M"+o+","+x*v+"V0.5H"+a+"V"+x*v:"M"+o+",0.5H"+a),u.attr("opacity",1).attr("transform",function(t){return M(s(t))}),i.attr(w+"2",x*m),e.attr(w,x*r).text(n),l.filter(uE).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",h===nE?"start":h===iE?"end":"middle"),l.each(function(){this.__axis=s})}return e.scale=function(t){return arguments.length?(p=t,e):p},e.ticks=function(){return g=Kz.call(arguments),e},e.tickArguments=function(t){return arguments.length?(g=null==t?[]:Kz.call(t),e):g.slice()},e.tickValues=function(t){return arguments.length?(_=null==t?null:Kz.call(t),e):_&&_.slice()},e.tickFormat=function(t){return arguments.length?(y=t,e):y},e.tickSize=function(t){return arguments.length?(m=v=+t,e):m},e.tickSizeInner=function(t){return arguments.length?(m=+t,e):m},e.tickSizeOuter=function(t){return arguments.length?(v=+t,e):v},e.tickPadding=function(t){return arguments.length?(b=+t,e):b},e}function fE(t){return dE(rE,t)}var Ye=Array.prototype,hE=Ye.map,pE=Ye.slice;function gE(t){return function(){return t}}function _E(t){return+t}var yE=[0,1];function mE(e,n){return(n-=e=+e)?function(t){return(t-e)/n}:gE(n)}function vE(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:n<=t?1:r(t)}}}function bE(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:1<=t?n:r(t)}}}function xE(t,e,n,r){var i=t[0],t=t[1],o=e[0],e=e[1],o=t<i?(i=n(t,i),r(e,o)):(i=n(i,t),r(o,e));return function(t){return o(i(t))}}function wE(n,t,e,r){var i=Math.min(n.length,t.length)-1,o=new Array(i),a=new Array(i),s=-1;for(n[i]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=e(n[s],n[s+1]),a[s]=r(t[s],t[s+1]);return function(t){var e=dk(n,t,1,i)-1;return a[e](o[e](t))}}function ME(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function kE(e,n){var r=yE,i=yE,o=ob,a=!1,s,l,c;function u(){return s=2<Math.min(r.length,i.length)?wE:xE,l=c=null,t}function t(t){return(l=l||s(r,i,a?vE(e):e,o))(+t)}return t.invert=function(t){return(c=c||s(i,r,mE,a?bE(n):n))(+t)},t.domain=function(t){return arguments.length?(r=hE.call(t,_E),u()):r.slice()},t.range=function(t){return arguments.length?(i=pE.call(t),u()):i.slice()},t.rangeRound=function(t){return i=pE.call(t),o=ab,u()},t.clamp=function(t){return arguments.length?(a=!!t,u()):a},t.interpolate=function(t){return arguments.length?(o=t,u()):o},u()}function jE(t,e,n){var r=t[0],i=t[t.length-1],o=wk(r,i,null==e?10:e),a;switch((n=vA(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(r),Math.abs(i));return null!=n.precision||isNaN(a=DA(o,s))||(n.precision=a),zA(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(a=CA(o,Math.max(Math.abs(r),Math.abs(i))))||(n.precision=a-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(a=LA(o))||(n.precision=a-2*("%"===n.type))}return NA(n)}function AE(s){var l=s.domain;return s.ticks=function(t){var e=l();return bk(e[0],e[e.length-1],null==t?10:t)},s.tickFormat=function(t,e){return jE(l(),t,e)},s.nice=function(t){null==t&&(t=10);var e=l(),n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=i,i=o,o=a,a=n,n=r,r=a),0<(a=xk(i,o,t))?a=xk(i=Math.floor(i/a)*a,o=Math.ceil(o/a)*a,t):a<0&&(a=xk(i=Math.ceil(i*a)/a,o=Math.floor(o*a)/a,t)),0<a?(e[n]=Math.floor(i/a)*a,e[r]=Math.ceil(o/a)*a,l(e)):a<0&&(e[n]=Math.ceil(i*a)/a,e[r]=Math.floor(o*a)/a,l(e)),s},s}function IE(){var t=kE(mE,Jv);return t.copy=function(){return ME(t,IE())},AE(t)}var kt="1.3.2",TE,NE;function zE(t){this.container=my(t),this._width=null,this._height=null,this._handleRadius=15,this._channelHeight=5,this._channelRadius=null,this._handleFill="black",this._channelFill="#eee",this._margin={top:null,left:null,right:null},this._domain=[0,1],this._value=null,this._snap=!1,this._scale=null,this._axis=!1,this._ticks=null,this._tickFormat=null,this._tickSize=null,this._label=null,this._labelSize=18,this._startLabel=null,this._startLabelBelow=!1,this._endLabel=null,this._endLabelBelow=!1,this._startEndLabelSize=16,this.handlers={change:[]}}function EE(e){0<e.length&&"_"==e.charAt(0)&&(zE.prototype[e.substr(1)]=function(t){return void 0===t?this[e]:(this[e]=t,this)})}for(NE in new zE)EE(NE);function SE(t,e,n,r){if((r=void 0===r?t.length:r)-(n=void 0===n?0:n)==0)return e;if(r-n==1)return t[n];var i,o;if(r-n==2)return Math.abs(t[n]-e)<=Math.abs(t[n+1]-e)?t[n]:t[n+1];var a=n+Math.floor((r-n)/2),s=t[a],l,c=t[a-1];return c<=e&&e<=s?Math.abs(c-e)<=Math.abs(s-e)?c:s:s<=e?SE(t,e,a,r):SE(t,e,n,a)}function LE(t,e){return"boolean"==typeof t?t?Math.round(e):e:SE(t,e)}function DE(t){return new zE(t)}function CE(t){var e,n;return'<svg width="25px" height="30px" viewBox="0 0 25 30"> <polygon fill="'+t+'" stroke="none" points="25 15 0 30 0 0"></polygon> </svg>'}function OE(t){var e,n;return'<svg width="26px" height="30px" viewBox="0 0 26 30"> <g stroke="none" stroke-width="1" fill="'+t+'"><rect x="2" y="2" width="9" height="26"></rect> <rect x="15" y="2" width="9" height="26"></rect> </g> </svg>'}function PE(o,a,t){var n={},i=my(t).append("div").attr("class","fl-control fl-control-slider animatable"),s=i.append("div").attr("class","slider-play"),l=i.append("div").attr("class","fl-controls-slider"),e,r,c,u,d,f,h,p=null,g=function t(){clearTimeout(p),p=null},_=function t(e){var e=u[e];e.options_index!==o.index()&&(o.index(e.options_index),o.trigger("change"))},y=DE(l.node()).snap(!0).on("change",function(t){var e=null!==p;e&&g(),_(t),e&&v()}),m=function t(){g(),i.classed("playing",!1),s.html(e),o._isPlaying_(!1),h=!1},v=function t(){var e=o.getSortedIndex(),n=d[e],r=o.n_options-1,i=e<r?e+1:0;p=setTimeout(function(){_(i),(a.slider_loop||i<r?t:m)()},n)},b=function t(){i.classed("playing",!0),s.html(r),v(),o._isPlaying_(!0),h=!0};s.on("click",function(){(null===p?b:m)()});var x=function t(){var e=Math.round(Vz(a.slider_handle_height)/2);i.style("width",Math.round(Vz(a.slider_width))+"px"),s.style("height",2*e+"px").style("width",2*e+"px").style("display",a.slider_play_button?null:"none");var n=i.node().getBoundingClientRect().width,r=s.node().getBoundingClientRect().width;l.style("width",Math.max(n-r,1)+"px").style("height",2*e+"px"),y.handleRadius(e).margin({left:e+5,right:e+Vz(a.slider_margin),top:e})},w=function t(){a.slider_play_button?i.classed("animatable",!0):(m(),i.classed("animatable",!1)),c!==a.slider_handle_color&&(y.update(),c=a.slider_handle_color||"currentColor",i.select(".slider-handle").style("fill",c),e=CE(c),r=OE(c),s.html(p?r:e))},M=function t(){return i.style("display","inline-block"),x(),w(),n},k=function t(){return m(),i.style("display","none"),n};return n.show=M,n.hide=k,n.update=function(t){if(u=t,!o.n_options||"slider"!==a.control_type)return k(),n;M();var r=o.n_options,i=a.slider_loop;d=u.map(function(t,e){var n;return 1e3*(a.slider_step_time+(i&&e===r-1?a.slider_restart_pause:0))});var e=o.getSortedIndex(),t=u[e];return y.domain([0,r-1]).value(e).endLabel(t.display).channelHeight(Math.round(Vz(a.slider_track_height))).channelFill(a.slider_background_color).update(),y.container.select("svg").attr("fill","currentColor"),(f=f||l.select("text.slider-end-labels")).style("fill",a.slider_font_color).attr("y","0").attr("dy","0.25em"),o._isPlaying_()&&!h?b():!o._isPlaying_()&&h&&m(),n},n}zE.prototype.margin=function t(e){if(!e)return this._margin;for(NE in e){if(!(NE in this._margin))throw"Slider.margin: unrecognised option "+NE;this._margin[NE]=e[NE]}return this},zE.prototype.on=function t(e,n){if(!(e in this.handlers))throw"Slider.on: No such event: "+e;return this.handlers[e].push(n),this},zE.prototype.fire=function t(e,n){if(!(e in this.handlers))throw"Slider.fire: No such event: "+e;for(var r=this.handlers[e],i=0;i<r.length;i++)r[i].call(this,n);return this},zE.prototype.update=zE.prototype.draw=function t(){var n=this,e=this._width,r=this._height,i=this.container.node();if(!e){var o=i.getBoundingClientRect();if(!o||0==o.width)return this;e=o.width,r=o.height}var a=null==this._channelRadius?this._channelHeight/2:this._channelRadius,s=null==this._margin.left?Math.max(this._handleRadius,a):this._margin.left,l=null==this._margin.right?Math.max(this._handleRadius,a):this._margin.right,c=null==this._margin.top?Math.max(this._handleRadius,this._channelHeight/2):this._margin.top,u=e-s-l,o=u+2*a,l=1.5*this._labelSize,d;null!=this._label&&null==this._margin.top&&(c+=l),"http://www.w3.org/2000/svg"==i.namespaceURI?d=this.container:((d=this.container.selectAll("svg").data([{width:e,height:r}])).exit().remove(),(d=d.enter().append("svg").merge(d)).attr("width",function(t){return t.width}).attr("height",function(t){return t.height}));var d=d.selectAll("g.slider-container").data([{left:s,top:c,id:this._id}]);d.exit().remove(),(d=d.enter().append("g").attr("class","slider-container").merge(d)).attr("transform",function(t){return"translate("+t.left+","+t.top+")"}).attr("id",function(t){return t.id}),this.scale=(this._scale?this._scale():IE()).domain(this._domain).range([0,u]),null==this._value||this._value<this._domain[0]?this._value=this._domain[0]:this._value>this._domain[1]&&(this._value=this._domain[1]),this._snap&&(this._value=LE(this._snap,this._value));var s=[],c,c;this._axis&&(c="boolean"!=typeof this._axis?this._axis(this.scale):fE().scale(this.scale).tickPadding(6),this._ticks&&c.ticks(this._ticks),this._tickFormat&&c.tickFormat(this._tickFormat),this._tickSize?c.tickSize(this._tickSize):c.tickSize(Math.max(5,this._handleRadius-this._channelHeight-2)),s.push(c));var f,s=d.selectAll(".slider-axis").data(s).enter(),o,h,p,g;function _(t){document.addEventListener("mouseup",y,!1),document.addEventListener("mousemove",m,!1),p=t.clientX,g=n.scale(n._value)}function y(){document.removeEventListener("mouseup",y,!1),document.removeEventListener("mousemove",m,!1)}function m(t){w(t.clientX-p)}function v(t){1==t.touches.length&&(document.addEventListener("touchend",b,!1),document.addEventListener("touchmove",x,!1),p=t.touches[0].clientX,g=n.scale(n._value))}function b(){document.removeEventListener("touchend",b,!1),document.removeEventListener("touchmove",x,!1)}function x(t){1==t.touches.length&&w(t.touches[0].clientX-p)}function w(t){var e,t=Math.max(0,Math.min(u,g+t)),t=n.scale.invert(t);n._snap&&(t=LE(n._snap,t)),h.attr("cx",n.scale(t)),t!=n._value&&(n._value=t,n.fire("change",n._value))}s.append("g").attr("class","slider-axis").attr("transform","translate(0,"+this._channelHeight/2+")").each(function(t){t(my(this))}),s.select(".domain").attr("fill","none"),s.selectAll(".tick line").attr("stroke","black"),s.exit().remove(),(o=d.selectAll(".slider-channel").data([{width:o,height:this._channelHeight,channel_r:a}])).exit().remove(),(o=o.enter().append("rect").attr("class","slider-channel").attr("cursor","pointer").on("click",function(){var t=Math.max(0,Math.min(u,xy(this)[0]));n._value=n.scale.invert(t),n._snap&&(n._value=LE(n._snap,n._value)),h.attr("cx",n.scale(n._value)),n.fire("change",n._value)}).merge(o)).attr("width",function(t){return t.width}).attr("fill",this._channelFill).attr("height",function(t){return t.height}).attr("y",function(t){return-t.height/2}).attr("x",function(t){return-t.channel_r}).attr("rx",function(t){return t.channel_r}),(h=(h=d.selectAll(".slider-handle").data([{v:this._value,x:this.scale(this._value)}])).enter().append("circle").attr("class","slider-handle").attr("cursor","col-resize").merge(h)).attr("cx",function(t){return t.x}).attr("r",this._handleRadius).attr("fill",this._handleFill).on("mousedown",function(){ry.preventDefault(),_(ry)}).on("touchstart",function(){ry.preventDefault(),v(ry)});var o=[];this._label&&o.push({label:this._label,x:u/2,y:-l,font_size:this._labelSize});var o=d.selectAll(".slider-label").data(o);o.exit().remove(),(o=o.enter().append("text").attr("class","slider-label").attr("text-anchor","middle").attr("cursor","default").merge(o)).text(function(t){return t.label}).attr("x",function(t){return t.x}).attr("y",function(t){return t.y}).attr("font-size",this._labelSize);var o=[];this._startLabel&&o.push({label:this._startLabel,x:this._startLabelBelow?0:-(a+5+Math.max(0,this._handleRadius-a)),y:this._startLabelBelow?a+15:this._startEndLabelSize/1.75-a/2,anchor:this._startLabelBelow?"middle":"end",font_size:this._startEndLabelSize}),this._endLabel&&o.push({label:this._endLabel,x:this._endLabelBelow?u:u+(a+Math.max(0,this._handleRadius-a)+5),y:this._startLabelBelow?a+15:this._startEndLabelSize/1.75-a/2,anchor:this._endLabelBelow?"middle":"start",font_size:this._startEndLabelSize});var o=d.selectAll(".slider-end-labels").data(o);return o.exit().remove(),(o=o.enter().append("text").attr("class","slider-end-labels").attr("pointer-events","none").merge(o)).text(function(t){return t.label}).attr("font-size",function(t){return t.font_size}).attr("x",function(t){return t.x}).attr("y",function(t){return t.y}).attr("text-anchor",function(t){return t.anchor}),this},DE.version=kt;var RE=Object.freeze({control_type:"dropdown",control_title:"",dropdown_width_mode:"auto",dropdown_width_fixed:20,button_group:!0,button_group_width_mode:"fixed",button_group_width_fixed:20,slider_width:15,slider_handle_color:null,slider_font_color:null,slider_background_color:"#dddddd",slider_handle_height:1,slider_track_height:.2,slider_margin:4.5,slider_play_button:!0,slider_step_time:2,slider_loop:!0,slider_restart_pause:0,sort:"unsorted",sort_temporal_format:"%Y",_index_:null,_is_playing_:!1});function YE(i,t,e){var r={};t=t||Oz,e=e||Pz;var o=[],a=[],s=[],n=document.createElement("div");n.setAttribute("class","fl-controls-container");var l=my(n).append("div").attr("class","fl-controls-title"),c=Xz(r,i,n),u=Jz(r,i,n),d=PE(r,i,n),f;for(f in RE)void 0===i[f]&&(i[f]=RE[f]);var h=i._index_,p=function t(e){return o.length&&0<=e&&e<o.length},g=function t(e){n.style.display=1<e.length?null:"none",n.style.width="",l.node().innerHTML=i.control_title,l.node().style.display=""===i.control_title?"none":"inline-block",d.update(e),c.update(e),u.update(e)};r.appendTo=function(t,e){return Gz(),my(t).node().appendChild(n),c.appendedToDOM(e),r};var _=function t(){var e=y(),n=o[e];return s.forEach(function(t){t(n,e)}),r};r.remove=function(){return n.parentElement&&n.parentElement.removeChild(n),c.removedFromDOM(),r},r.options=function(t){if(void 0===t)return o.slice();if(!Array.isArray(t))return r;var e=(o=t.slice()).length,t=y();return e?(null===t||e<=t)&&y(0):y(null),r},Object.defineProperty(r,"n_options",{get:function t(){return o.length}});var y=function t(e){return void 0===e?h=i._is_playing_?h:i._index_:(null===e||p(e)?(h=e,i._is_playing_||(i._index_=h)):console.warn("Invalid index, ignoring update call"),r)},m;return r.index=y,r.getSortedIndex=function(){var n=y(),r;return"unsorted"==i.sort?n:(a.some(function(t,e){if(t.options_index===n)return r=e,!0}),r)},r.value=function(t){if(void 0===t)return o[y()];var t=o.indexOf(t);return-1!==t&&y(t),r},r.on=function(t,e){return"change"===t&&s.push(e.bind(r)),r},r.update=function(){return Wz(),a=Uz(o,i,t(),e()),g(a),r},r.trigger=function(t){return"change"===t&&_(),r},r._isPlaying_=function t(e){if(void 0===e)return i._is_playing_;i._is_playing_=!!e,e||y(h)},r}var UE=(BE=document.createElement("canvas").getContext("2d"),function(t,e){var n;return BE.font=e||"10px sans-serif",BE.measureText(t).width}),BE;function FE(t,e,n,r){var i=[],o=0,a,s=document.createElement("canvas").getContext("2d");s.font=e;var e=s.measureText(t).width;if(e<=r)i.push(t),o=e;else{for(var l=t.trim().split(/\s+/g),c="",u=0;u<l.length;u++){var d=l[u],f=c+(c?" ":"")+d,h=s.measureText(f).width;if(!(h<=r)){var p=i.length+1==n,g;if(!p&&c)if(i.push(c),s.measureText(d).width<=r){c=d;continue}for(var _=1,y=f;y=f.substring(0,f.length-_)+"…",r<(h=s.measureText(y).width)&&++_<f.length;);o=Math.max(o,h),c=y;break}c=f,o=Math.max(o,h)}i.push(c)}return i.widest_line=o,i}var ZE={max_width:8,position:"spread-y",hide_overlaps:!0,text_color:null,text_size:1,text_bg_size:25,text_bg_color:null,text_weight:700,text_line_height:.9,text_max_lines:3,text_padding_vertical:.5,text_padding_horizontal:.5,lines:"auto",line_padding:.25,line_color:"#aaaaaa",line_width:.075,line_style:"step"};function HE(t,e){for(var n in ZE)t.hasOwnProperty(n)||(t[n]=ZE[n]);return this._data=[],this._container=void 0!==e?e:null,this._state=t,this._duration=1e3,this._delay=1e3,this._y_bounds=[-1/0,1/0],this._group=null,this._background_color=null,this._foreground_color="black",this._aria_hidden=!1,this}function GE(t,e){t.top+=e,t.bottom+=e,t.y_offset+=e}function QE(t,e,n){for(var r=t.sort(function(t,e){return sk(t.y,e.y)}),i=[],o=0;o<r.length;o++){var a=r[o],s=r[o-1]||null,l=s?a.top-(s.bottom+n):a.top-e[0],c;0==o||0<l?i.push([a]):i[i.length-1].push(a)}for(var o=0;o<i.length;o++)for(var c=i[o],u=0;u<c.length;u++){var a=c[u],s=c[u-1]||null;(l=s?a.top-(s.bottom+n):a.top-e[0])<0&&GE(a,-l)}for(var o=i.length-1;0<=o;o--){var c=i[o],d=i[o+1]?i[o+1][0].top:e[1],f;(f=d-c[c.length-1].bottom-n)<0&&c.forEach(function(t){GE(t,f)})}for(var o=0;o<i.length;o++){var c=i[o],h=i[o-1]?i[o-1][i[o-1].length-1].bottom+n:e[0],l=c[0].top-h,d,f=(d=e[1])-c[c.length-1].bottom;l<0&&0<f&&c.forEach(function(t){var e;GE(t,Math.min(-l,f))})}for(var o=0;o<i.length;o++){var c=i[o],h=i[o-1]?i[o-1][i[o-1].length-1].bottom+n:e[0],l=c[0].top-h,d,f=(d=i[o+1]?i[o+1][0].top:e[1])-c[c.length-1].bottom,p=0;c.forEach(function(t){p+=t.y_offset});var g,_=-(p/c.length),y=_<0?Math.max(_,-l):Math.min(_,f),m=0,v=0;c.forEach(function(t){GE(t,y),t.y_offset<0&&(t.positive_index=m++),0<t.y_offset&&(t.negative_index=v++)}),c.forEach(function(t){t.y_offset<0?(t.step_line_x_index=t.positive_index,t.step_line_x_count=m):0<t.y_offset&&(t.step_line_x_index=v-t.negative_index-1,t.step_line_x_count=v)})}t.any_offsets=t}function qE(t,e){for(var n=t.sort(function(t,e){return sk(t.y,e.y)}),r=e[0],i=0;i<n.length;i++){var o=n[i];o.top<r||o.bottom>e[1]?o.hidden=!0:r=o.bottom}}function VE(r,t,i,o,a){var s=0,t=t.map(function(t){var e=FE(t.text,i,o,a);s=Math.max(s,e.widest_line);var n={};n.x=t.x,n.y=t.y,n.text=t.text,n.color=t.color,n.lines=e;var e=r._group&&"undefined"!==t[r._group];return n.group=e?t[r._group]:"",n});return t.widest_label=s,t}function WE(t){var e,n;return void 0!==window.innerWidth&&(e=window.innerWidth,n=parseFloat(getComputedStyle(document.documentElement).fontSize)),t*n}function $E(t){return new HE(t)}HE.prototype.container=function(t){return void 0!==t?(this._container=t,this):this._container},HE.prototype.data=function(t){return void 0!==t?(this._data=t,this):this._data},HE.prototype.group=function(t){return void 0!==t?(this._group=t,this):this._group},HE.prototype.backgroundColor=function(t){return void 0!==t?(this._background_color=t,this):this._background_color},HE.prototype.foregroundColor=function(t){return void 0!==t?(this._foreground_color=t,this):this._foreground_color},HE.prototype.duration=function(t){return void 0!==t?(this._duration=t,this):this._duration},HE.prototype.delay=function(t){return void 0!==t?(this._delay=t,this):this._delay},HE.prototype.yBounds=function(t){return void 0!==t?(this._y_bounds=t,this):this._y_bounds},HE.prototype.ariaHidden=function(t){return void 0!==t?(this._aria_hidden=t,this):this._aria_hidden},HE.prototype.getWidth=function(){return this.update(!0)},HE.prototype.update=function(t){if(null!=this._container){var e=this,r=this._state,n=this._duration,i=this._delay,o=this._container,a=this._data,s=this._y_bounds,l=this._screenreadable,c=this._background_color,u=this._foreground_color,d=WE(r.text_size),f=k(o,d,r),h=d*r.text_line_height,p=WE(r.text_padding_vertical),g=WE(r.text_padding_horizontal),o=Math.min(g/2,WE(r.line_padding)),_=g-o,f=VE(e,a,f,r.text_max_lines,WE(r.max_width));if(t)return f.widest_label+g;f.forEach(j);var y={};e._group?f.forEach(function(t){var e=t.group;e in y||(y[e]=[]),y[e].push(t)}):y=[f];var m=!1,v,v;if("spread-y"==r.position)for(var b in y){QE(v=y[b],s,p),v.any_offsets&&(m=!0)}if(r.hide_overlaps)for(var b in y){qE(v=y[b],s)}var x=!0;"off"!=r.lines&&("auto"!=r.lines||m)||(x=!1);var f=f.filter(function(t){return!t.hidden}),e=my(this._container).selectAll(".fl-label").data(f,function(t){return t.text}),f=e.enter().append("g").attr("class","fl-label").attr("transform",function(t){return"translate("+t.x+","+t.y+")"}).attr("font-size",d).attr("font-weight",r.text_weight).attr("opacity",0);f.append("path").attr("fill","none").attr("d",M).attr("stroke-width",r.line_width+"rem").attr("stroke",r.line_color||u),f.append("text").attr("class","bg").attr("transform",w),f.append("text").attr("class","fg").attr("transform",w);var f=e.merge(f);f.attr("aria-hidden",!l).transition().duration(n).delay(i).attr("transform",function(t){return"translate("+t.x+","+t.y+")"}).attr("font-size",d).attr("font-weight",r.text_weight).attr("opacity",1),f.select("path").transition().duration(n).delay(i).attr("d",M).attr("stroke-width",r.line_width+"rem").attr("stroke",r.line_color||u),f.select("text.bg").transition().duration(n).delay(i).attr("transform",w),f.select("text.fg").transition().duration(n).delay(i).attr("transform",w),e.exit().remove();var e=f.select("text.bg").selectAll("tspan").data(function(t){return t.lines});e.merge(e.enter().append("tspan")).text(function(t){return t}).transition().duration(n).delay(i).attr("x",0).attr("fill","none").attr("stroke",r.text_bg_color||c).attr("stroke-width",d*r.text_bg_size/100).attr("dy",function(t,e){return e?h+"px":0}),e.exit().remove();var f=f.select("text.fg").selectAll("tspan").data(function(t){return t.lines});return f.merge(f.enter().append("tspan")).transition().duration(n).delay(i).attr("x",0).attr("fill",function(t){return r.text_color||this.parentNode.__data__.color||"black"}).attr("dy",function(t,e){return e?h+"px":0}).text(function(t){return t}),f.exit().remove(),this}function w(t){return"translate("+g+","+(t.y_offset+t.dy)+")"}function M(t){if(!x)return"";var e=t.step_line_x_index||0,n=(t.step_line_x_count||0)+1,n=_/n,n=n+n*e,e="M 0,0 l ";return"step"==r.line_style?(e+=n+",0 l ",e+="0,"+t.y_offset+" l ",e+=_-n+",0"):e+=_+","+t.y_offset,e}function k(t,e,n){var r,i,o;return n.text_weight+" "+(e+"px ")+getComputedStyle(t).fontFamily}function j(t,e){var n=.33*d-h*(t.lines.length-1)/2;t.dy=n;var r=0,n=h-t.dy,n=t.y-n-s[0];n<0&&(r=-n);var n=h*(t.lines.length-1)- -t.dy,n=s[1]-t.y-n;n<0&&(r-=-n),t.y_offset=r,t.height=h*t.lines.length,t.top=t.y+t.y_offset-t.height/2,t.bottom=t.top+t.height}console.error("@flourish/labels: you must set a container for your labels using the .container() method. This should be an SVG group.")},"classList"in SVGElement.prototype||Object.defineProperty(SVGElement.prototype,"classList",{get:function t(){var r=this;return{contains:function t(e){return-1!==r.className.baseVal.split(" ").indexOf(e)},add:function t(e){return r.setAttribute("class",(r.getAttribute("class")||"")+" "+e)},remove:function t(e){var n=r.getAttribute("class").replace(new RegExp("(\\s|^)".concat(e,"(\\s|$)"),"g"),"$2");r.classList.contains(e)&&r.setAttribute("class",n)},toggle:function t(e){this.contains(e)?this.remove(e):this.add(e)}}}});var r=document.createElement("style");r.innerHTML='body.fl-cursor-custom,body.fl-cursor-custom *{cursor:none!important}body.fl-cursor-pointer,body.fl-cursor-pointer *{cursor:pointer!important}body.fl-cursor-default .fl-annotations .fl-annotations-cursor,body.fl-cursor-pointer .fl-annotations .fl-annotations-cursor{visibility:hidden}.fl-annotations{position:absolute;top:0;left:0;width:100%;height:100%;background:hsla(0,0%,100%,0);cursor:pointer;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;-webkit-transition:opacity .25s;transition:opacity .25s}.fl-annotations,.fl-annotations.is-dragging,.fl-annotations.is-dragging *{pointer-events:none}.flourish-popup{z-index:100000}.fl-project-editor{font-family:Source Sans Pro,sans-serif;color:#333;margin:0;font-size:16px;height:100%;-webkit-font-smoothing:antialiased}.fl-project-editor *{box-sizing:border-box}.fl-project-editor .no-select{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fl-project-editor h1,.fl-project-editor h2,.fl-project-editor h3,.fl-project-editor h4,.fl-project-editor p{margin:0;font-weight:400}.fl-project-editor input,.fl-project-editor select,.fl-project-editor textarea{font-family:Source Sans Pro,sans-serif}.fl-project-editor a:link,.fl-project-editor a:visited{color:inherit;text-decoration:none}.fl-project-editor a:active,.fl-project-editor a:hover{opacity:.75}.fl-project-editor header{display:block;position:absolute;top:0;left:0;width:100%}.fl-project-editor main{display:block;position:absolute;top:80px;left:0;width:100%;height:calc(100vh - 80px);overflow-y:auto;-webkit-transition:height .5s ease,top .5s ease;transition:height .5s ease,top .5s ease}@media(min-width:420px){.fl-project-editor main{top:92px;height:calc(100vh - 92px)}}.fl-project-editor .hide-editor-bar main{top:50px;height:calc(100vh - 50px)}@media(min-width:420px){.fl-project-editor .hide-editor-bar main{top:62px;height:calc(100vh - 62px)}}.fl-project-editor .user-nav{float:right;padding-top:0;display:none}@media(min-width:820px){.fl-project-editor .user-nav{display:block;margin-top:13px;height:36px}.fl-project-editor .user-nav .dropdown-head #current-picture{height:36px;width:36px;border-radius:9999px;margin-left:10px}.fl-project-editor .user-nav .dropdown-list{left:auto;right:-5px;margin-top:-5px}}.fl-project-editor .visualisation-editor{overflow-x:hidden}.fl-project-editor .visualisation-editor .template-chooser.visible+.tab-panes{display:none}.fl-project-editor .visualisation-editor .tab-panes{height:100%;width:100%}.fl-project-editor .visualisation-editor .tab-panes #visualisation,.fl-project-editor .visualisation-editor .tab-panes .row-inner,.fl-project-editor .visualisation-editor .tab-panes .row.editor,.fl-project-editor .visualisation-editor .tab-panes .tab-pane{height:100%}.fl-project-editor .visualisation-editor .tab-panes #visualisation .editor-core,.fl-project-editor .visualisation-editor .tab-panes .row-inner .editor-core,.fl-project-editor .visualisation-editor .tab-panes .row.editor .editor-core,.fl-project-editor .visualisation-editor .tab-panes .tab-pane .editor-core{position:relative}@media (min-width:820px){.fl-project-editor .visualisation-editor .tab-panes #visualisation .editor-core,.fl-project-editor .visualisation-editor .tab-panes .row-inner .editor-core,.fl-project-editor .visualisation-editor .tab-panes .row.editor .editor-core,.fl-project-editor .visualisation-editor .tab-panes .tab-pane .editor-core{min-height:100%;padding-bottom:40px}}.fl-project-editor .visualisation-editor .tab-panes .tab-pane .side-panel{display:none}.fl-project-editor .visualisation-editor .tab-panes .tab-pane.active .side-panel{display:block}.fl-project-editor .visualisation-editor .tab-panes .tab-pane:not(.active) #spreadsheet-container input{display:none}.fl-project-editor .story-editor,.fl-project-editor .visualisation-editor{background:#f9f9f9}.fl-project-editor .row.editor{padding:0}.no-template .fl-project-editor .row.editor{display:none}.fl-project-editor .row.editor .row-inner{max-width:none;padding:0 10px}.fl-project-editor .row.editor #visibility-status .label,.fl-project-editor .row.editor .blueprint-tag{display:inline-block;margin-left:2px}.fl-project-editor .row.editor #story,.fl-project-editor .row.editor #visualisation{height:100%;width:100%;-webkit-transition:height .5s ease;transition:height .5s ease;position:relative}.fl-project-editor .row.editor #story .editor-core,.fl-project-editor .row.editor #visualisation .editor-core{width:100%;height:auto;overflow:visible;-webkit-transition:width .5s ease;transition:width .5s ease;position:relative;text-align:center}.fl-project-editor .row.editor #story .editor-core .preview-holder,.fl-project-editor .row.editor #visualisation .editor-core .preview-holder{width:100%;height:100%;padding-right:4px;min-width:100px;min-height:100px;-webkit-transition:margin-left .5s ease,width .5s ease,opacity 1s;transition:margin-left .5s ease,width .5s ease,opacity 1s;position:relative;background:#fff;display:inline-block;box-shadow:0 0 2px rgba(0,0,0,.2)}.fl-project-editor .row.editor #story .editor-core .preview-holder #preview,.fl-project-editor .row.editor #visualisation .editor-core .preview-holder #preview{max-height:100%;overflow-y:auto;min-width:100px;text-align:right;border:none;background:#fff;display:block;width:100%;height:100%}.fl-project-editor .row.editor #story .editor-core .preview-holder #preview iframe,.fl-project-editor .row.editor #visualisation .editor-core .preview-holder #preview iframe{width:100vw;border:none;position:relative}.fl-project-editor .row.editor #story .editor-core .preview-holder #preview #blank-slide,.fl-project-editor .row.editor #story .editor-core .preview-holder #preview iframe,.fl-project-editor .row.editor #visualisation .editor-core .preview-holder #preview #blank-slide,.fl-project-editor .row.editor #visualisation .editor-core .preview-holder #preview iframe{height:100%;width:100%;min-width:100px;border:none;-webkit-box-flex:1;flex:1}.fl-project-editor .row.editor #story .editor-core .preview-holder .loading-spinner,.fl-project-editor .row.editor #visualisation .editor-core .preview-holder .loading-spinner{position:absolute;left:50%;top:50%;width:27px;height:27px;opacity:0;pointer-events:none;z-index:5;margin-top:-13.5px;margin-left:-13.5px}.fl-project-editor .row.editor #story .editor-core .preview-holder .unsupported-notice,.fl-project-editor .row.editor #visualisation .editor-core .preview-holder .unsupported-notice{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#f9f9f9;padding:20px;z-index:10}.fl-project-editor .row.editor #story .editor-core #resize-overlay,.fl-project-editor .row.editor #visualisation .editor-core #resize-overlay{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.fl-project-editor .row.editor #story .editor-core #resize-overlay.dragging,.fl-project-editor .row.editor #visualisation .editor-core #resize-overlay.dragging{display:block}.fl-project-editor .row.editor #story .editor-core #resize-handle-container,.fl-project-editor .row.editor #visualisation .editor-core #resize-handle-container{position:absolute;width:4px;bottom:0;top:0;right:0;margin-bottom:0;display:none;z-index:100;-webkit-transition:width .2s;transition:width .2s}.fl-project-editor .row.editor #story .editor-core #resize-handle-container #resize-handle,.fl-project-editor .row.editor #visualisation .editor-core #resize-handle-container #resize-handle{cursor:ew-resize;position:absolute;width:4px;bottom:0;top:0;right:0;background:#eee;-webkit-transition:width .1s,background .1s;transition:width .1s,background .1s}.fl-project-editor .row.editor #story .editor-core #resize-handle-container #resize-handle:after,.fl-project-editor .row.editor #visualisation .editor-core #resize-handle-container #resize-handle:after{display:block;content:"";position:absolute;top:0;bottom:0;left:-4px;background:transparent;right:0;width:auto}.fl-project-editor .row.editor #story .editor-core #resize-handle-container .resize-handle-icon,.fl-project-editor .row.editor #visualisation .editor-core #resize-handle-container .resize-handle-icon{position:absolute;right:3px;top:50%;margin-top:-15px;opacity:.8;pointer-events:none;-webkit-transition:right .1s;transition:right .1s;display:none}.fl-project-editor .row.editor #story .editor-core #resize-handle-container>i,.fl-project-editor .row.editor #visualisation .editor-core #resize-handle-container>i{position:absolute;top:5px;left:5px}.fl-project-editor .row.editor #story .editor-core #resize-handle-container:hover,.fl-project-editor .row.editor #visualisation .editor-core #resize-handle-container:hover{width:6px}.fl-project-editor .row.editor #story .editor-core #resize-handle-container:hover #resize-handle,.fl-project-editor .row.editor #visualisation .editor-core #resize-handle-container:hover #resize-handle{width:6px;background:#ddd}.fl-project-editor .row.editor #story .editor-core #resize-handle-container:hover #resize-handle:after,.fl-project-editor .row.editor #visualisation .editor-core #resize-handle-container:hover #resize-handle:after{left:-10px}.fl-project-editor .row.editor #story .editor-core #resize-handle-container:hover .resize-handle-icon,.fl-project-editor .row.editor #visualisation .editor-core #resize-handle-container:hover .resize-handle-icon{right:2px;display:block}.fl-project-editor .row.editor #story .editor-core #resize-handle-container.dragging #resize-handle:after,.fl-project-editor .row.editor #visualisation .editor-core #resize-handle-container.dragging #resize-handle:after{left:-200px;right:0}@media(min-width:770px){.fl-project-editor .row.editor #story .editor-core,.fl-project-editor .row.editor #visualisation .editor-core{padding:0}.fl-project-editor .row.editor #story .editor-core #resize-handle-container,.fl-project-editor .row.editor #visualisation .editor-core #resize-handle-container{display:block}}@media(min-width:820px){.fl-project-editor .row.editor #story .editor-core,.fl-project-editor .row.editor #visualisation .editor-core{padding:0 10px 0 0}}.fl-project-editor .row.editor #visualisation{padding:10px 0 0}.fl-project-editor .row.editor #visualisation .editor-core .preview-holder iframe#preview{-webkit-transform-origin:left top;transform-origin:left top}.fl-project-editor .row.editor #visualisation .editor-core .preview-holder iframe#preview.mini-preview{z-index:1000;opacity:1;box-shadow:none;-webkit-animation:fadeIn .5s;animation:fadeIn .5s;overflow:hidden;pointer-events:none}@-webkit-keyframes fadeIn{0%{opacity:0}1%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}1%{opacity:0}to{opacity:1}}@media(min-width:820px){.fl-project-editor .row.editor #visualisation .editor-core .preview-holder iframe#preview{width:100%}}.fl-project-editor .row.editor #story .editor-core .preview-holder #preview iframe{height:calc(100% - 64px)}.fl-project-editor .row.editor #story .editor-core .preview-holder #preview.nav-style-none iframe{height:100%}@media(min-width:820px){.fl-project-editor .row.editor #story .editor-core{max-width:calc(100% - 220px);margin-left:220px;min-height:calc(100vh - 94px)}}.fl-project-editor .row.editor.mobile #story .editor-core .preview-holder,.fl-project-editor .row.editor.mobile #story .editor-core .preview-holder iframe,.fl-project-editor .row.editor.mobile #visualisation .editor-core .preview-holder,.fl-project-editor .row.editor.mobile #visualisation .editor-core .preview-holder iframe{width:320px}.fl-project-editor .row.editor.mobile.landscape #story .editor-core .preview-holder,.fl-project-editor .row.editor.mobile.landscape #story .editor-core .preview-holder iframe,.fl-project-editor .row.editor.mobile.landscape #visualisation .editor-core .preview-holder,.fl-project-editor .row.editor.mobile.landscape #visualisation .editor-core .preview-holder iframe{width:500px}.fl-project-editor .row.editor.tablet #story .editor-core .preview-holder,.fl-project-editor .row.editor.tablet #story .editor-core .preview-holder iframe,.fl-project-editor .row.editor.tablet #visualisation .editor-core .preview-holder,.fl-project-editor .row.editor.tablet #visualisation .editor-core .preview-holder iframe{width:768px}.fl-project-editor .row.editor.tablet.landscape #story .editor-core .preview-holder,.fl-project-editor .row.editor.tablet.landscape #story .editor-core .preview-holder iframe,.fl-project-editor .row.editor.tablet.landscape #visualisation .editor-core .preview-holder,.fl-project-editor .row.editor.tablet.landscape #visualisation .editor-core .preview-holder iframe{width:1024px}@media(min-width:820px){.fl-project-editor .row.editor #visualisation .editor-core{max-width:calc(100% - 350px)}}.fl-project-editor .project-header{padding:0 10px;position:absolute;top:2px;left:48px;right:0;width:auto}@media(min-width:420px){.fl-project-editor .project-header{left:60px}.fl-project-editor .project-header:after{clear:both;display:block;content:""}}@media(min-width:620px){.fl-project-editor .project-header{height:60px;z-index:110}}.fl-project-editor .project-header #visibility-status,.fl-project-editor .project-header .blueprint-tag,.fl-project-editor .project-header .read-only{text-align:left;margin:-1px 0 0 3px;height:auto;line-height:1em;display:inline-block;border-radius:3px;vertical-align:top}@media(min-width:420px){.fl-project-editor .project-header #visibility-status,.fl-project-editor .project-header .blueprint-tag,.fl-project-editor .project-header .read-only{font-size:11px;padding:2px 3px 1px}}.fl-project-editor .project-header #visibility-status{cursor:pointer}.fl-project-editor .project-header #visibility-status:hover{color:#333}.fl-project-editor .project-header #visibility-status,.fl-project-editor .project-header .read-only{color:#aaa;font-weight:400;padding:1px 3px 2px;background:#eee}.fl-project-editor .project-header #visibility-status.public,.fl-project-editor .project-header .read-only.public{background:#ffdc98;color:#000}.fl-project-editor .project-header #visibility-status.public:hover,.fl-project-editor .project-header .read-only.public:hover{background:#eec26d;color:#000}.fl-project-editor .project-header .blueprint-tag{font-size:9px;font-weight:700;background:#2886b2;color:#fff;text-transform:uppercase;padding:1px 5px 2px;cursor:default}.fl-project-editor .project-header .project-settings{margin-left:10px;font-size:14px;font-weight:400;line-height:0;vertical-align:top;margin-bottom:-3px;display:inline-block;margin-top:-2px;z-index:110;height:auto}.fl-project-editor .project-header .project-settings .dropdown-head{padding-right:5px;padding-left:5px;padding-bottom:10px;font-size:16px}.fl-project-editor .project-header .project-settings .dropdown-list{margin-right:0}@media(min-width:420px){.fl-project-editor .project-header .project-settings{top:0;margin-top:-4px;padding-top:19px}}@media(min-width:620px){.fl-project-editor .project-header .project-settings{padding-top:18px}}.fl-project-editor .project-header .has-name+.project-settings{margin-left:0}.fl-project-editor .project-header .name{position:relative;vertical-align:top;font-weight:400;font-style:italic;height:23px;margin-left:0;width:auto;display:inline-block;font-size:16px;z-index:110;margin-top:3px}@media(min-width:420px){.fl-project-editor .project-header .name{margin-top:5px;height:26px}}@media(min-width:620px){.fl-project-editor .project-header .name{font-size:18px}}@media(min-width:820px){.fl-project-editor .project-header .name{font-size:18px}}.fl-project-editor .project-header .name input{font-size:1em;font-size:inherit;border:none;border-bottom:1px solid #ccc;border-radius:0;background:#fff;font-style:italic;padding:0;display:inline-block;color:#aaa;position:absolute;left:0;top:0;box-sizing:content-box;outline:none;height:23px}@media(min-width:420px){.fl-project-editor .project-header .name input{height:26px}}.fl-project-editor .project-header .name .name-width-setter{font-size:inherit;padding:0;display:inline-block;opacity:0;pointer-events:none;max-width:140px;min-width:40px;white-space:pre}@media(min-width:420px){.fl-project-editor .project-header .name .name-width-setter{max-width:240px}}@media(min-width:620px){.fl-project-editor .project-header .name .name-width-setter{max-width:340px}}@media(min-width:820px){.fl-project-editor .project-header .name .name-width-setter{max-width:340px}}.fl-project-editor .project-header .name.not-editable input{border-color:transparent;color:#333;top:0;background:transparent;font-style:normal}.fl-project-editor .project-header .name.has-name .name-width-setter,.fl-project-editor .project-header .name.has-name input{font-style:normal;background:none}.fl-project-editor .project-header .name.has-name input{color:#333;border-color:#ccc;top:0;font-style:normal}.fl-project-editor .project-header .name.has-name .name-overlay{display:block;top:0}.fl-project-editor .project-header .name .name-overlay{display:none;content:"";position:absolute;left:125px;top:0;width:20px;height:100%;background:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(80%,#fff));background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff 80%)}@media(min-width:420px){.fl-project-editor .project-header .name .name-overlay{left:225px}}@media(min-width:620px){.fl-project-editor .project-header .name .name-overlay{left:325px}}@media(min-width:820px){.fl-project-editor .project-header .name .name-overlay{left:325px}}.fl-project-editor .project-header .project-author{color:#aaa;font-weight:400;top:30px;font-size:11px;line-height:1em;position:absolute}@media(min-width:420px){.fl-project-editor .project-header .project-author{top:38px;font-size:12px}}@media(min-width:820px){.fl-project-editor .project-header .project-author{font-size:12px}}.fl-project-editor .project-header .project-author+.dropdown .dropdown-head{display:inline-block}.fl-project-editor .project-header .project-author+.dropdown .badge{top:-14px}.fl-project-editor .project-header .project-author+.dropdown .dropdown-list .badge{position:absolute;right:10px;top:12px;pointer-events:none}.fl-project-editor .project-header #export-btn-group{float:right;margin-bottom:0;margin-right:0;margin-top:9px}.fl-project-editor .project-header #export-btn-group #story-btn,.fl-project-editor .project-header #export-btn-group .export-btn{width:30px;height:30px;padding:0;text-align:center}.fl-project-editor .project-header #export-btn-group #story-btn span,.fl-project-editor .project-header #export-btn-group .export-btn span{display:none}.fl-project-editor .project-header #export-btn-group #story-btn i,.fl-project-editor .project-header #export-btn-group .export-btn i{margin-right:0}@media(min-width:420px){.fl-project-editor .project-header #export-btn-group #story-btn,.fl-project-editor .project-header #export-btn-group .export-btn{width:30px;height:30px}}@media(min-width:820px){.fl-project-editor .project-header #export-btn-group #story-btn,.fl-project-editor .project-header #export-btn-group .export-btn{padding:0 8px;height:36px;width:auto}.fl-project-editor .project-header #export-btn-group #story-btn span,.fl-project-editor .project-header #export-btn-group .export-btn span{display:inline}.fl-project-editor .project-header #export-btn-group #story-btn i,.fl-project-editor .project-header #export-btn-group .export-btn i{margin-right:3px}}.fl-project-editor .project-header #export-btn-group #create-btn{height:36px;line-height:34px}.visualisation-editor.no-template .fl-project-editor .project-header #export-btn-group{display:none}.fl-project-editor .project-header #export-btn-group #story-btn-form{display:inline-block}.fl-project-editor .project-header #export-btn-group #story-btn{border:1px solid #ddd;background-color:#eee;color:#333;font-family:Source Sans Pro;margin-right:8px;overflow:visible}@media(min-width:420px){.fl-project-editor .project-header #export-btn-group{margin-top:15px}}@media(min-width:820px){.fl-project-editor .project-header #export-btn-group{margin-top:12px}}.fl-project-editor .row.editor-bar{background:#e3e3e3;height:30px;font-size:12px;padding:0 10px}.fl-project-editor .row.editor-bar #visualisation-tabs{z-index:110;width:calc(100% - 120px);margin-left:60px;text-align:center}.fl-project-editor .row.editor-bar #visualisation-tabs button{font-size:12px;line-height:1em}.fl-project-editor .row.editor-bar #visualisation-tabs button i{margin-right:3px;font-size:11px}.fl-project-editor .row.editor-bar #visibility-status,.fl-project-editor .row.editor-bar .read-only{display:inline-block;float:left;font-weight:700;color:#aaa;margin-top:7px}.fl-project-editor .row.editor-bar .confirm-saved{float:right;margin-top:8px;margin-left:0;width:60px}@media(min-width:820px){.fl-project-editor .row.editor-bar #visualisation-tabs{width:calc(100% - 380px);margin-left:0}}.fl-project-editor .tab-data .tab-preview{position:fixed;z-index:2}.fl-project-editor .tab-data #preview-menu{opacity:0;pointer-events:none}.fl-project-editor .side-panel{text-align:left;position:relative;background:#f9f9f9;line-height:1.1;margin-left:0;padding:10px 0 1px;width:100%}.fl-project-editor .side-panel.closed{margin-left:-300px}.fl-project-editor .side-panel .side-panel-inner{margin-bottom:87px;background:#fff}@media(min-width:820px){.fl-project-editor .side-panel .side-panel-inner{border:none;background:transparent}}.fl-project-editor .side-panel .side-panel-close{position:absolute;top:15px;right:10px;font-size:1.25em;width:1.5em;height:1.5em;padding:.1em;text-align:center;border:1px solid rgba(0,0,0,.4);border-radius:3px;background:#eaeaea;-webkit-transition:right .5s ease;transition:right .5s ease;z-index:1}.fl-project-editor .side-panel .side-panel-close.opener{right:calc(-1.5em + 1px);border-bottom-left-radius:0;border-top-left-radius:0}.fl-project-editor .side-panel .side-panel-close:hover{opacity:1}.fl-project-editor .side-panel .side-panel-close:hover i{opacity:.7}.fl-project-editor .side-panel#slides-panel{height:100%;padding:0;background:#fff;margin-top:20px}.fl-project-editor .side-panel#slides-panel .side-panel-scrollbox{padding:0 15px 10px}@media(min-width:820px){.fl-project-editor .side-panel#slides-panel{max-width:200px;right:auto;position:absolute;top:0;margin-top:0;border-right:1px solid #ddd}}.fl-project-editor .side-panel .side-panel-scrollbox{width:100%;height:100%;padding:10px 10px 20px;overflow-y:scroll}.fl-project-editor .side-panel .side-panel-scrollbox .side-panel-inner{width:100%}@media(min-width:1220px){.fl-project-editor .side-panel .side-panel-scrollbox{padding:20px}}.fl-project-editor .side-panel h1{margin:1em 0 .5em;font-size:.9em;opacity:.5;cursor:default}.fl-project-editor .side-panel h2{font-size:13px;letter-spacing:0;font-weight:500;margin:0 0 .6em;position:relative;color:#333;word-wrap:break-word}.fl-project-editor .side-panel .toplevel-settings-block{padding:0 5px 20px}.fl-project-editor .side-panel .toplevel-settings-block .settings-option{display:inline-block}.fl-project-editor .side-panel .toplevel-settings-block .settings-option:first-child{margin-top:9px}.fl-project-editor .side-panel .settings-divider{margin:1rem -10px 0;clear:both;width:calc(100% + 20px);height:1px;background:#eee}.fl-project-editor .side-panel .settings-subhead{text-transform:uppercase;font-size:.7rem;font-weight:700;color:#999;padding:.5rem 5px .25rem;margin:0;width:100%}.fl-project-editor .side-panel .settings-block{margin:0;display:inline-block;width:100%;background-color:#fff;padding:0 10px;min-height:24px}.fl-project-editor .side-panel .settings-block h2{margin:0 -10px;font-size:.8rem;padding:.75em 30px;font-weight:700;background-color:#f5f5f5;border-top:1px solid #ddd;cursor:pointer;color:#535e65}.fl-project-editor .side-panel .settings-block h2:focus{outline:none}.fl-project-editor .side-panel .settings-block h2:focus,.fl-project-editor .side-panel .settings-block h2:hover{background:#e8e8e8}.fl-project-editor .side-panel .settings-block h2:after{content:"";width:.6rem;height:.8rem;position:absolute;left:15px;background-repeat:no-repeat;background-position:50%;background-image:url(data:image/svg+xml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgZGF0YS1wcmVmaXg9ImZhcyIgZGF0YS1pY29uPSJjYXJldC1yaWdodCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTkyIDUxMiIgY2xhc3M9InN2Zy1pbmxpbmUtLWZhIGZhLWNhcmV0LXJpZ2h0IGZhLXctNiBmYS0zeCI+PHBhdGggZmlsbD0iIzUzNWU2NSIgZD0iTTAgMzg0LjY2MlYxMjcuMzM4YzAtMTcuODE4IDIxLjU0My0yNi43NDEgMzQuMTQyLTE0LjE0MmwxMjguNjYyIDEyOC42NjJjNy44MSA3LjgxIDcuODEgMjAuNDc0IDAgMjguMjg0TDM0LjE0MiAzOTguODA0QzIxLjU0MyA0MTEuNDA0IDAgNDAyLjQ4IDAgMzg0LjY2MnoiLz48L3N2Zz4=)}.fl-project-editor .side-panel .settings-block .settings-divider,.fl-project-editor .side-panel .settings-block .settings-option,.fl-project-editor .side-panel .settings-block .settings-subhead{display:none}.fl-project-editor .side-panel .settings-block input::-webkit-contacts-auto-fill-button{visibility:hidden;display:none!important;pointer-events:none;position:absolute;right:0}.fl-project-editor .side-panel .settings-block.open{padding-bottom:1rem}.fl-project-editor .side-panel .settings-block.open h2:after{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fl-project-editor .side-panel .settings-block.open .settings-option{display:inline-block}.fl-project-editor .side-panel .settings-block.open .settings-option.hidden{display:none}.fl-project-editor .side-panel .settings-block.open .settings-option.option-type-color.width-quarter .color-picker{vertical-align:top;line-height:0;position:relative}.fl-project-editor .side-panel .settings-block.open .settings-option.option-type-color.width-quarter .color-picker:hover:not(.is-null) .cancel-setting{-webkit-transform:translateX(27px);transform:translateX(27px)}.fl-project-editor .side-panel .settings-block.open .settings-option.option-type-color.width-quarter .color-picker.is-null .color-wrapper input{opacity:0}.fl-project-editor .side-panel .settings-block.open .settings-option.option-type-color.width-quarter .color-picker .cancel-setting{width:30px;border:1px solid #ddd;background:#fff;position:absolute;padding:0;height:30px;vertical-align:top;left:0;-webkit-transition:-webkit-transform .2s;transition:-webkit-transform .2s;transition:transform .2s;transition:transform .2s,-webkit-transform .2s}.fl-project-editor .side-panel .settings-block.open .settings-option.option-type-color.width-quarter .color-picker .cancel-setting svg{margin-left:2px;width:8px;height:8px;pointer-events:none;-webkit-transition:opacity .2s;transition:opacity .2s}.fl-project-editor .side-panel .settings-block.open .settings-option.option-type-color.width-quarter .color-picker .cancel-setting:focus{border:1px solid #ddd}.fl-project-editor .side-panel .settings-block.open .settings-option.option-type-color.width-quarter .color-picker .cancel-setting:hover svg{opacity:.4}.fl-project-editor .side-panel .settings-block.open .settings-divider,.fl-project-editor .side-panel .settings-block.open .settings-subhead{display:block}.fl-project-editor .side-panel .settings-block.open h2+.settings-divider{background:transparent;margin-top:.25rem}.fl-project-editor .side-panel .settings-block.hidden{display:none}.fl-project-editor .side-panel h3{font-size:.8rem;line-height:1.2em;font-weight:400;margin-top:0;margin-bottom:3px;color:#333;display:inline-block;cursor:default;overflow:hidden;vertical-align:top;background:#fff;text-overflow:ellipsis}.fl-project-editor .side-panel p{font-size:12px;margin-top:0;font-weight:300}.fl-project-editor .side-panel .settings-option{position:relative;margin-top:.75rem;display:none;vertical-align:bottom;width:100%;padding:0 5px}.fl-project-editor .side-panel .settings-option label{font-size:13px;display:inline-block;vertical-align:top;width:100%}.fl-project-editor .side-panel .settings-option label .help-tip{margin-left:3px;color:#d0d0d0;font-style:normal}.fl-project-editor .side-panel .settings-option label .help-tip:hover{color:#aaa}.fl-project-editor .side-panel .settings-option label:hover{z-index:2;position:relative}.fl-project-editor .side-panel .settings-option label:hover h3{padding-right:1px}.fl-project-editor .side-panel .settings-option button,.fl-project-editor .side-panel .settings-option input,.fl-project-editor .side-panel .settings-option select,.fl-project-editor .side-panel .settings-option textarea{border-radius:3px;border:1px solid #ddd;padding:.2em .1em .2em .3em;min-height:30px;font-size:13px;display:block;outline:none;-webkit-transition:border .2s linear;transition:border .2s linear;max-width:100%}.fl-project-editor .side-panel .settings-option button:focus,.fl-project-editor .side-panel .settings-option input:focus,.fl-project-editor .side-panel .settings-option select:focus,.fl-project-editor .side-panel .settings-option textarea:focus{border:1px solid #777}.fl-project-editor .side-panel .settings-option ::-webkit-input-placeholder{color:#ddd}.fl-project-editor .side-panel .settings-option :-ms-input-placeholder{color:#ddd}.fl-project-editor .side-panel .settings-option ::-ms-input-placeholder{color:#ddd}.fl-project-editor .side-panel .settings-option .autocomplete .dropdown-list .dropdown-item{font-size:13px;padding:10px 10px 10px 6px}.fl-project-editor .side-panel .settings-option .color-wrapper{width:30px;height:30px;overflow:hidden;border-radius:3px;position:relative;display:inline-block;background-color:#fff}.fl-project-editor .side-panel .settings-option .color-wrapper input{-webkit-transform:scale(10);transform:scale(10);position:absolute}.fl-project-editor .side-panel .settings-option .color-wrapper:before{display:block;position:absolute;content:"";top:0;bottom:-10px;left:0;width:1px;pointer-events:none;background:rgba(0,0,0,.1);-webkit-transform-origin:top;transform-origin:top;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.fl-project-editor .side-panel .settings-option .color-wrapper:after{display:block;position:absolute;content:"";border:1px solid rgba(0,0,0,.1);left:0;right:0;top:0;bottom:0;pointer-events:none}.fl-project-editor .side-panel .settings-option .color-wrapper:invalid{box-shadow:none}.fl-project-editor .side-panel .settings-option .single-button{background:#eee;color:#333;width:100%;border:none;padding:0;cursor:pointer;-webkit-transition:background-color .2s linear;transition:background-color .2s linear}.fl-project-editor .side-panel .settings-option .single-button:hover{background-color:#e0e0e0}.fl-project-editor .side-panel .settings-option .single-button:focus{border:none}.fl-project-editor .side-panel .settings-option .buttons-container{display:-webkit-box;display:flex}.fl-project-editor .side-panel .settings-option .buttons-container input[type=radio]{width:0;height:0;opacity:0;margin:0;display:inline-block;display:none}.fl-project-editor .side-panel .settings-option .buttons-container input[type=radio]+label{font-size:13px;background:#eee;color:#333;display:inline-block;height:30px;cursor:pointer;text-align:center;padding-top:8px;border-right:1px solid #fff;border-bottom:1px solid #fff;background-size:cover;background-position:50% 50%;-webkit-transition:background-color .2s linear;transition:background-color .2s linear}.fl-project-editor .side-panel .settings-option .buttons-container input[type=radio]+label i{color:#555}.fl-project-editor .side-panel .settings-option .buttons-container input[type=radio]+label img{margin-top:-8px}.fl-project-editor .side-panel .settings-option .buttons-container.large input[type=radio]+label{height:60px}.fl-project-editor .side-panel .settings-option .buttons-container input[type=radio]:not([disabled])+label:hover{background-color:#e0e0e0}.fl-project-editor .side-panel .settings-option .buttons-container input[type=radio]:disabled+label{cursor:default}.fl-project-editor .side-panel .settings-option .buttons-container input[type=radio]:checked+label{background-color:#ccdee6;cursor:default;position:relative}.fl-project-editor .side-panel .settings-option .buttons-container input[type=radio]:checked+label:hover{background-color:#ccdee6}.fl-project-editor .side-panel .settings-option .buttons-container input[type=radio]:checked+label:after{width:100%;height:2px;background:#2886b2;bottom:0;position:absolute;content:"";left:0}.fl-project-editor .side-panel .settings-option input[data-autocomplete]+.fa{position:absolute;right:10px;margin-top:-21px;font-size:12px;pointer-events:none}.fl-project-editor .side-panel .settings-option select{width:100%;height:30px}.fl-project-editor .side-panel .settings-option.option-type-color input{padding:0;background:#fff}.fl-project-editor .side-panel .settings-option.option-type-color,.fl-project-editor .side-panel .settings-option.option-type-number,.fl-project-editor .side-panel .settings-option.option-type-rows{width:50%}.fl-project-editor .side-panel .settings-option.option-type-color.width-quarter input,.fl-project-editor .side-panel .settings-option.option-type-number.width-quarter input,.fl-project-editor .side-panel .settings-option.option-type-rows.width-quarter input{width:100%}.fl-project-editor .side-panel .settings-option.option-type-color input,.fl-project-editor .side-panel .settings-option.option-type-number input,.fl-project-editor .side-panel .settings-option.option-type-rows input{width:calc((100% - 10px)/2);min-width:40px}.fl-project-editor .side-panel .settings-option.option-type-boolean:not(.settings-buttons).settings-buttons>label{height:auto}.fl-project-editor .side-panel .settings-option.option-type-boolean:not(.settings-buttons) input{display:none}.fl-project-editor .side-panel .settings-option.option-type-boolean:not(.settings-buttons)>label:first-child{position:absolute;padding-left:37px;padding-top:7px;width:auto;right:5px;left:5px}.fl-project-editor .side-panel .settings-option.option-type-boolean:not(.settings-buttons) .slider{position:relative;cursor:pointer;width:33px;height:30px;background:transparent;padding-left:0;padding-top:0}.fl-project-editor .side-panel .settings-option.option-type-boolean:not(.settings-buttons) .slider:hover:after{border-color:#bbb}.fl-project-editor .side-panel .settings-option.option-type-boolean:not(.settings-buttons) .slider:before{position:absolute;content:"";height:12px;width:33px;top:9px;left:0;border-radius:6px;background-color:#ddd;-webkit-transition:.1s;transition:.1s}.fl-project-editor .side-panel .settings-option.option-type-boolean:not(.settings-buttons) .slider:after{position:absolute;content:"";height:24px;width:24px;left:0;bottom:3px;border-radius:50%;background-color:#fff;border:1px solid #ddd;box-sizing:border-box;-webkit-transition:.1s;transition:.1s}.fl-project-editor .side-panel .settings-option.option-type-boolean:not(.settings-buttons) input:checked+.slider:before{background:#ccdee6}.fl-project-editor .side-panel .settings-option.option-type-boolean:not(.settings-buttons) input:checked+.slider:after{left:9px;background:#2886b2;border-color:#2886b2}.fl-project-editor .side-panel .settings-option.option-type-boolean:not(.settings-buttons) input:checked+.slider:hover:after{background-color:#2886b2;border-color:#2886b2}.fl-project-editor .side-panel .settings-option.option-type-code textarea,.fl-project-editor .side-panel .settings-option.option-type-string input,.fl-project-editor .side-panel .settings-option.option-type-text textarea,.fl-project-editor .side-panel .settings-option.option-type-url input{width:100%}.fl-project-editor .side-panel .settings-option.option-type-code textarea.size-large,.fl-project-editor .side-panel .settings-option.option-type-text textarea.size-large{height:50vh}.fl-project-editor .side-panel .settings-option.option-type-code label{width:calc(100% - 18px)}.fl-project-editor .side-panel .settings-option.option-type-code .wrap-control{font-size:.7em;color:#999;-webkit-transform:scaleY(-1);transform:scaleY(-1);margin-bottom:.3em;display:inline-block;vertical-align:bottom;-webkit-transition:-webkit-transform .1s ease;transition:-webkit-transform .1s ease;transition:transform .1s ease;transition:transform .1s ease,-webkit-transform .1s ease}.fl-project-editor .side-panel .settings-option.option-type-code .wrap-control.selected{-webkit-transform:scale(-1);transform:scale(-1);cursor:pointer}.fl-project-editor .side-panel .settings-option.option-type-code textarea{font-family:monospace;font-size:13px}.fl-project-editor .side-panel .settings-option.option-type-font input.font-menu{width:100%;outline:none}.fl-project-editor .side-panel .settings-option.option-type-colors input{width:100%;margin:0;z-index:1;cursor:pointer}.fl-project-editor .side-panel .settings-option.option-type-colors .color-swatches,.fl-project-editor .side-panel .settings-option.option-type-colors .dropdown-item{display:-webkit-box;display:flex;-webkit-box-align:stretch;align-items:stretch;min-height:30px;overflow:hidden}.fl-project-editor .side-panel .settings-option.option-type-colors .color-swatches em,.fl-project-editor .side-panel .settings-option.option-type-colors .dropdown-item em{font-style:normal;color:#777;display:block;padding:8px;pointer-events:none}.fl-project-editor .side-panel .settings-option.option-type-colors .color-swatches span,.fl-project-editor .side-panel .settings-option.option-type-colors .dropdown-item span{display:inline-block;height:30px;-webkit-box-flex:1;flex:1}.fl-project-editor .side-panel .settings-option.option-type-colors .color-swatches span:nth-child(n+13):nth-child(-n+99),.fl-project-editor .side-panel .settings-option.option-type-colors .dropdown-item span:nth-child(n+13):nth-child(-n+99){display:none}.fl-project-editor .side-panel .settings-option.option-type-colors .color-swatches{padding:0;position:absolute;left:4px;right:26px;z-index:0;pointer-events:none}.fl-project-editor .side-panel .settings-option.option-type-colors .dropdown-item{padding:2px 0!important;width:100%}.fl-project-editor .side-panel .settings-option.option-type-colors .dropdown-item label{position:absolute;top:6px;left:8px;color:hsla(0,0%,98%,.9);pointer-events:none}.fl-project-editor .side-panel .settings-option.option-type-colors .dropdown-item span{pointer-events:none}.fl-project-editor .side-panel .settings-option.option-type-colors.custom input{opacity:0}.fl-project-editor .side-panel .settings-option.option-type-colors.custom .color-swatches{-webkit-box-align:start;align-items:flex-start}.fl-project-editor .side-panel .settings-option.option-type-colors.custom .color-swatches span{max-width:28px;pointer-events:auto;-webkit-transition:-webkit-transform .1s;transition:-webkit-transform .1s;transition:transform .1s;transition:transform .1s,-webkit-transform .1s;-webkit-transform-origin:center center;transform-origin:center center}.fl-project-editor .side-panel .settings-option.option-type-colors.custom .color-swatches span:hover{-webkit-transform:scale(1.2);transform:scale(1.2)}.fl-project-editor .side-panel .settings-option.option-type-colors.custom .color-swatches span.fa{font-size:24px;color:#ccc;margin-left:4px}.fl-project-editor .side-panel .settings-option.option-type-colors.custom .color-swatches span.fa:before{position:relative;top:2px}.fl-project-editor .side-panel .settings-option.hidden{display:none}.fl-project-editor .side-panel .settings-option.width-full{width:100%!important}.fl-project-editor .side-panel .settings-option.width-half{width:50%!important}.fl-project-editor .side-panel .settings-option.width-quarter{width:25%!important}.fl-project-editor .side-panel .settings-option.width-three-quarters{width:75%!important}.fl-project-editor .side-panel .settings-option .description-link{cursor:pointer;color:#dd4141}.fl-project-editor .side-panel .detailed-settings h2{margin-bottom:.75rem}.fl-project-editor .side-panel .detailed-settings h2:after{content:""}.fl-project-editor .side-panel .palette{max-height:calc(100vh - 210px);overflow-y:auto;padding:1px}.fl-project-editor .side-panel .palette .swatch-color,.fl-project-editor .side-panel .palette button,.fl-project-editor .side-panel .palette input[type=color]{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;display:inline-block;width:28px;height:28px;padding:0;margin:1px;border:none;outline:none;background:transparent}.fl-project-editor .side-panel .palette .swatch-color.fa-plus-square:before,.fl-project-editor .side-panel .palette button.fa-plus-square:before,.fl-project-editor .side-panel .palette input[type=color].fa-plus-square:before{font-size:32px;color:#ddd;margin-left:1px}.fl-project-editor .side-panel .palette .swatch-color.fa-times,.fl-project-editor .side-panel .palette button.fa-times,.fl-project-editor .side-panel .palette input[type=color].fa-times{position:absolute;right:0;opacity:0;color:#aaa}.fl-project-editor .side-panel .palette .swatch-color.fa-times:hover,.fl-project-editor .side-panel .palette button.fa-times:hover,.fl-project-editor .side-panel .palette input[type=color].fa-times:hover{color:#888}.fl-project-editor .side-panel .palette .swatch-color::-webkit-color-swatch-wrapper,.fl-project-editor .side-panel .palette button::-webkit-color-swatch-wrapper,.fl-project-editor .side-panel .palette input[type=color]::-webkit-color-swatch-wrapper{padding:0}.fl-project-editor .side-panel .palette .swatch-color::-webkit-color-swatch,.fl-project-editor .side-panel .palette button::-webkit-color-swatch,.fl-project-editor .side-panel .palette input[type=color]::-webkit-color-swatch{border:none}.fl-project-editor .side-panel .palette [draggable]{cursor:move;cursor:grab;cursor:-webkit-grab}.fl-project-editor .side-panel .palette [draggable]:active{cursor:grabbing;cursor:-webkit-grabbing}.fl-project-editor .side-panel .palette .swatch-handle{display:block;width:15px;height:28px;color:#ddd;position:absolute;left:1px;top:7px;text-align:center;font-size:18px;font-weight:700;line-height:5.5px;pointer-events:none}.fl-project-editor .side-panel .palette input[type=text]{width:120px;width:calc(100% - 52px);background:transparent;padding:5px 8px;border-width:0;margin:0}.fl-project-editor .side-panel .palette p{position:relative;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;margin:0;padding:5px 5px 5px 20px;border-bottom:1px solid #eee}.fl-project-editor .side-panel .palette p:first-child{border-top:1px solid #eee}.fl-project-editor .side-panel .palette p:hover button.fa-times{opacity:.5}.fl-project-editor .side-panel .palette p:hover [draggable]:before{opacity:1}.fl-project-editor .side-panel .side-panel-top{border-top:none;border-bottom:1px solid rgba(0,0,0,.1);margin-top:0;padding:17px 10px 20px;font-size:1em}.fl-project-editor .side-panel .side-panel-top.shadow{box-shadow:3px 3px 5px rgba(0,0,0,.1)}.fl-project-editor .side-panel .side-panel-top .side-panel-top-menu .side-panel-icon-btn{color:#fff;background:#9a9a9a;padding:7px 0 0;border-radius:9999px;width:30px;height:30px;text-align:center;margin:0}.fl-project-editor .side-panel .side-panel-top .side-panel-top-menu .separator{margin:0 .4em;height:1em;border-left:1px solid rgba(0,0,0,.25);display:inline-block;vertical-align:middle}#story .fl-project-editor .side-panel .side-panel-top .side-panel-top-menu .separator{margin:0 .25em}.fl-project-editor .side-panel .current-template{margin:0;opacity:0;-webkit-transition:opacity .2s;transition:opacity .2s;position:relative;padding:10px 10px 0;min-height:56px;border-bottom:1px solid #ddd}.fl-project-editor .side-panel .current-template h1{padding-right:76px;opacity:1;font-size:12px;font-weight:400;min-height:36px;margin:0;padding-top:3px}.fl-project-editor .side-panel .current-template h1>span{display:block;font-weight:700;font-size:16px}.fl-project-editor .side-panel .current-template h3{margin-top:.7em}.fl-project-editor .side-panel .current-template h3 i{margin-left:.2em;color:rgba(0,0,0,.5)}.fl-project-editor .side-panel .current-template .current-template-title{position:relative}.fl-project-editor .side-panel .current-template .current-template-title .current-template-version{margin-left:4px;font-size:12px}.fl-project-editor .side-panel .current-template .current-template-thumbnail{position:absolute;right:-10px;top:-10px;width:76px;height:calc(100% + 19px);background-size:cover;background-position:50%;background-repeat:no-repeat}.fl-project-editor .side-panel .current-template .current-template-thumbnail:after{width:20px;height:100%;position:absolute;left:0;right:0;background:-webkit-gradient(linear,left top,right top,from(#fff),to(hsla(0,0%,100%,0)));background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0));content:"";display:block}.fl-project-editor .side-panel .template-theme button#reset-to-theme:disabled{color:#d3d3d3}@media (min-width:620px) and (max-width:819px){.fl-project-editor .side-panel .side-panel-inner{max-width:500px;margin:20px auto}}@media(min-width:820px){.fl-project-editor .side-panel{max-width:size(3.5);position:fixed;right:0;top:93px;background:#fff;overflow-y:auto;height:calc(100vh - 93px);border-left:1px solid #ddd}.fl-project-editor .side-panel .current-template{padding-top:0;min-height:46px}}.fl-project-editor .tab-preview #visualisation .editor-core{overflow:visible!important}.fl-project-editor .tab-preview.active #visualisation .editor-core{overflow:auto!important}.fl-project-editor body.full-screen .row.editor #story,.fl-project-editor body.full-screen .row.editor #visualisation{position:fixed!important;top:0!important;left:0!important;width:100%!important;height:100%!important}.fl-project-editor body.full-screen .row.editor #story .editor-core #preview,.fl-project-editor body.full-screen .row.editor #visualisation .editor-core #preview{width:100%!important}.fl-project-editor body.full-screen .row.editor #story #exit-full-screen,.fl-project-editor body.full-screen .row.editor #visualisation #exit-full-screen{display:block}.fl-project-editor body.loading .loading-spinner{opacity:1!important;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:1.2s;animation-duration:1.2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-transform-origin:center center;transform-origin:center center}.fl-project-editor body.loading .content{min-height:100vh}.fl-project-editor body.loading .preview-holder{pointer-events:none;background-color:#f3f3f3}.fl-project-editor body.loading .preview-holder #preview{background:transparent!important}.fl-project-editor body.loading .preview-holder iframe{opacity:.1}.fl-project-editor body.loading #blank-slide,.fl-project-editor body.loading .row.data{opacity:0;pointer-events:none}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fl-project-editor #private-publishing{display:inline-block;padding-right:15px;margin-top:10px;width:100%}.fl-project-editor #private-publishing+input{width:100%;padding:5px}.fl-project-editor #private-publishing+input.hidden{display:none}.fl-project-editor #private-publishing+input.error{border-color:#dd4141}.fl-project-editor #private-publishing.upgrade-btn{width:auto;color:#999}.fl-project-editor #private-publishing.upgrade-btn:after{top:4px}.fl-annotations-source-element{position:absolute;left:-3rem;width:3rem;height:3rem;z-index:9999;background:#333;background-position:50%;background-size:40%;background-repeat:no-repeat;border:none;border-radius:100% 0 0 100%;top:.25rem;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg data-prefix=\'fas\' data-icon=\'pencil-alt\' xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 512 512\'%3E%3Cpath fill=\'%23fff\' d=\'M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z\'/%3E%3C/svg%3E")}.fl-annotations-add-element,.fl-annotations-source-element{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;pointer-events:all}.fl-annotations-add-element{display:block;border:none;margin:1rem;border-radius:2rem;color:#fff;font-weight:700;text-align:center;padding-left:1.5rem;padding-right:0;font-size:1rem;height:2.5rem;line-height:2.5rem;background:#333;background-position:.5rem;background-size:1.5rem;background-repeat:no-repeat;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 36 36\'%3E%3Cstyle%3E.fl-annotations-cursor rect{fill:%23fff}%3C/style%3E%3Cg xmlns=\'http://www.w3.org/2000/svg\' class=\'fl-annotations-cursor\' transform=\'translate(18 18)\'%3E%3Ccircle r=\'16\' style=\'transition:stroke .25s\' fill=\'none\' stroke=\'%23fff\' stroke-width=\'2\' stroke-dasharray=\'4,4\'/%3E%3Cpath fill=\'%23FFF\' d=\'M-1-6h2V6h-2z\'/%3E%3Cpath fill=\'%23FFF\' d=\'M-6-1H6v2H-6z\'/%3E%3C/g%3E%3C/svg%3E")}.fl-annotations .fl-annotations-node{pointer-events:none}.fl-annotations .fl-annotations-node.fl-connector-popup,.fl-annotations.is-editing .fl-annotations-node{pointer-events:all}.fl-annotations .fl-annotations-node.fl-marker text,.fl-annotations .fl-annotations-node.fl-point text{fill:#fff;text-anchor:middle;dominant-baseline:middle;alignment-baseline:middle;font-size:.8rem;font-weight:800}.fl-annotations .fl-annotations-node.fl-marker.selected circle{fill:#333}.fl-annotations .fl-notch{fill:none;stroke-dasharray:4,4;pointer-events:none}.fl-annotations.is-editing .fl-notch{pointer-events:all}.fl-annotations .fl-annotations-node .fl-connector,.fl-annotations .fl-annotations-node text,.fl-annotations.is-editing.is-dragging .fl-notch{pointer-events:none}.fl-annotations .fl-annotations-inline a,.fl-annotations.is-editing .fl-annotations-inline{pointer-events:all}.fl-annotations .fl-annotations-cursor{visibility:hidden;pointer-events:none}.fl-annotations.is-edit-add .fl-annotations-cursor{visibility:visible}.fl-annotations .fl-annotations-cursor circle{fill:none;stroke:#eee;stroke-width:2px;stroke-dasharray:4,4;-webkit-transition:stroke .25s;transition:stroke .25s}.fl-annotations .fl-annotations-cursor.is-valid circle{stroke:#333;-webkit-animation:cursorRotate 5s linear 0s infinite normal;animation:cursorRotate 5s linear 0s infinite normal}.fl-annotations .fl-annotations-cursor line{stroke:#eee;stroke-width:2px;-webkit-transition:stroke .25s;transition:stroke .25s}.fl-annotations .fl-annotations-cursor.is-valid line{stroke:#333}.fl-annotations .fl-annotations-cursor.inner-outline circle,.fl-annotations .fl-annotations-cursor.is-valid.inner-outline circle{stroke-dasharray:6,2;stroke-dashoffset:1}.fl-annotations .fl-annotations-cursor.inner-outline circle,.fl-annotations .fl-annotations-cursor.inner-outline line,.fl-annotations .fl-annotations-cursor.is-valid.inner-outline circle,.fl-annotations .fl-annotations-cursor.is-valid.inner-outline line{stroke:#fff;stroke-width:4px}@-webkit-keyframes cursorRotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes cursorRotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fl-project-editor .fl-annotation-list{list-style-type:none;margin:0;padding:1rem;border-bottom:1px solid #eee}.fl-project-editor .fl-annotation-list:empty{padding:0}.fl-annotation-list-wrap{background:#fff;margin:0;font-size:.8rem;max-height:10rem;overflow:auto;position:relative;box-shadow:inset 0 -10px 10px -10px rgba(0,0,0,.25);-webkit-transition:box-shadow .5s;transition:box-shadow .5s}.fl-annotation-list-wrap.scroll-end{box-shadow:inset 0 -10px 10px -10px transparent}.fl-project-editor .fl-annotation-list>li{display:-webkit-box;display:flex;position:relative;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;-webkit-box-align:center;align-items:center;-webkit-box-pack:justify;justify-content:space-between;list-style-type:none;line-height:1.35rem;color:#b1b1b1;cursor:pointer}.fl-project-editor .fl-annotation-list .drop-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;display:none}.fl-project-editor .fl-annotation-list.dragging .drop-overlay{display:-webkit-box;display:flex}.fl-project-editor .fl-annotation-list .drop-above,.fl-project-editor .fl-annotation-list .drop-below{-webkit-box-flex:1;flex-grow:1}.fl-project-editor .fl-annotation-list .drop-above{border-top:1px solid #fff}.fl-project-editor .fl-annotation-list .drop-below{border-bottom:1px solid #fff}.fl-project-editor .fl-annotation-list .drop-above.dropping{border-top:1px solid #666}.fl-project-editor .fl-annotation-list .drop-below.dropping{border-bottom:1px solid #666}.fl-project-editor .fl-annotation-list>li .text{display:block;overflow:hidden;text-overflow:ellipsis;-webkit-box-flex:1;flex-grow:1;white-space:nowrap}.fl-project-editor .fl-annotation-list>li .icon{display:none;margin-left:.5rem;color:#333;opacity:0;flex-shrink:0}.fl-project-editor .fl-annotation-list>li.selected .icon,.fl-project-editor .fl-annotation-list>li:hover .icon{display:inline-block;margin-left:.5rem;opacity:.5}.fl-project-editor .fl-annotation-list>li .icon:hover{opacity:1}.fl-project-editor .fl-annotation-list>li:hover{color:#000}.fl-project-editor .fl-annotation-list>li:before{content:"";width:.75rem;height:.75rem;display:inline-block;background:#b1b1b1;vertical-align:middle;margin-right:.5rem;border-radius:100%;flex-shrink:0}.fl-project-editor .fl-annotation-list>li.selected{cursor:default}.fl-project-editor .fl-annotation-list>li.selected:before{background:#333}.fl-project-editor .fl-annotation-list>li.selected .text{color:#333}.fl-annotation-list li.drag-over{background:red}.icon-pencil{width:10px;height:10px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTguNjYgNC4wODZMOS43NTYgMi45OUEuODA5LjgwOSAwIDAwMTAgMi4zOTZhLjg0NS44NDUgMCAwMC0uMjQ0LS42TDguMjA1LjI1QS44Mi44MiAwIDAwNy42MDQgMGEuNzg0Ljc4NCAwIDAwLS41OTQuMjVMNS45MTQgMS4zNCA4LjY2IDQuMDg2ek0yLjc0NiAxMGw1LjQ5Mi01LjQ5Mi0yLjc0Ni0yLjc0NkwwIDcuMjU0VjEwaDIuNzQ2em0tLjYzNC0zLjIzNGMtLjA5NyAwLS4xNDUtLjA0OS0uMTQ1LS4xNDYgMC0uMDQ0LjAxNS0uMDguMDQ2LS4xMTJsMy41NzgtMy41NzdhLjE1My4xNTMgMCAwMS4xMTItLjA0N2MuMDk3IDAgLjE0NS4wNDkuMTQ1LjE0NmEuMTUzLjE1MyAwIDAxLS4wNDYuMTEyTDIuMjI0IDYuNzE5YS4xNTMuMTUzIDAgMDEtLjExMi4wNDd6bS4yODQgMi4zOUgxLjY5VjguMzFILjg0NXYtLjcwNmwuNi0uNiAxLjU1MiAxLjU1LS42MDEuNjAxeiIgZmlsbD0iIzMzMyIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9zdmc+")}.icon-clone{width:10px;height:10px;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg aria-hidden="true" data-prefix="fas" data-icon="clone" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-clone fa-w-16 fa-3x"><path fill="currentColor" d="M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"/></svg>\')}.icon-trash{width:10px;height:10px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEiIGhlaWdodD0iMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTguMjg2IDEwLjg1N2MuMjk0IDAgLjU0Ny0uMTM1Ljc1Ni0uNDA1LjIxLS4yNy4zMTUtLjU5LjMxNS0uOTZ2LTYuMzVIMTBjLjA2MyAwIC4xMTQtLjAyLjE1NC0uMDYuMDQtLjA0LjA2LS4wOS4wNi0uMTUzVjIuNWEuMjA5LjIwOSAwIDAwLS4wNi0uMTU0LjIwOS4yMDkgMCAwMC0uMTU0LS4wNkg3LjkzbC0uNDY4LTEuMTE5QS45MjguOTI4IDAgMDA3LjEuNzQ2Ljk0NS45NDUgMCAwMDYuNTcxLjU3SDQuNDNhLjk0NS45NDUgMCAwMC0uNTMuMTc1LjkyOC45MjggMCAwMC0uMzYxLjQyMWwtLjQ2OSAxLjExOUgxYS4yMDkuMjA5IDAgMDAtLjE1NC4wNi4yMDkuMjA5IDAgMDAtLjA2LjE1NHYuNDI5YzAgLjA2Mi4wMi4xMTMuMDYuMTU0LjA0LjA0LjA5Mi4wNi4xNTQuMDZoLjY0M3Y2LjM3NWMwIC4zNy4xMDUuNjg2LjMxNS45NDcuMjEuMjYyLjQ2Mi4zOTIuNzU2LjM5Mmg1LjU3MnpNNyAyLjI4Nkg0bC4zMjgtLjc4NGEuMTg5LjE4OSAwIDAxLjExNC0uMDczaDIuMTIzYS4xODkuMTg5IDAgMDEuMTE0LjA3M0w3IDIuMjg2ek00IDkuMTQzaC0uNDI5YS4yMDkuMjA5IDAgMDEtLjE1NC0uMDYuMjA5LjIwOSAwIDAxLS4wNi0uMTU0VjQuMjE0YzAtLjA2Mi4wMi0uMTE0LjA2LS4xNTQuMDQtLjA0LjA5Mi0uMDYuMTU0LS4wNkg0Yy4wNjMgMCAuMTE0LjAyLjE1NC4wNi4wNC4wNC4wNi4wOTIuMDYuMTU0VjguOTNjMCAuMDYyLS4wMi4xMTMtLjA2LjE1NGEuMjA5LjIwOSAwIDAxLS4xNTQuMDZ6bTEuNzE0IDBoLS40MjhhLjIwOS4yMDkgMCAwMS0uMTU0LS4wNi4yMDkuMjA5IDAgMDEtLjA2LS4xNTRWNC4yMTRjMC0uMDYyLjAyLS4xMTQuMDYtLjE1NC4wNC0uMDQuMDkxLS4wNi4xNTQtLjA2aC40MjhjLjA2MyAwIC4xMTQuMDIuMTU0LjA2LjA0LjA0LjA2LjA5Mi4wNi4xNTRWOC45M2MwIC4wNjItLjAyLjExMy0uMDYuMTU0YS4yMDkuMjA5IDAgMDEtLjE1NC4wNnptMS43MTUgMEg3YS4yMDkuMjA5IDAgMDEtLjE1NC0uMDYuMjA5LjIwOSAwIDAxLS4wNi0uMTU0VjQuMjE0YzAtLjA2Mi4wMi0uMTE0LjA2LS4xNTQuMDQtLjA0LjA5MS0uMDYuMTU0LS4wNmguNDI5Yy4wNjIgMCAuMTEzLjAyLjE1NC4wNi4wNC4wNC4wNi4wOTIuMDYuMTU0VjguOTNjMCAuMDYyLS4wMi4xMTMtLjA2LjE1NGEuMjA5LjIwOSAwIDAxLS4xNTQuMDZ6IiBmaWxsPSIjMzMzIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=")}.fl-project-editor .side-panel .help-tip{display:inline-block;position:relative;width:.7rem;height:.7rem;-webkit-transform:translateY(1px);transform:translateY(1px);opacity:.6;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBjbGFzcz0ic3ZnLWlubGluZS0tZmEgZmEtcXVlc3Rpb24tY2lyY2xlIGZhLXctMTYgZmEtM3giPjxwYXRoIGZpbGw9IiNhYWEiIGQ9Ik01MDQgMjU2YzAgMTM2Ljk5Ny0xMTEuMDQzIDI0OC0yNDggMjQ4UzggMzkyLjk5NyA4IDI1NkM4IDExOS4wODMgMTE5LjA0MyA4IDI1NiA4czI0OCAxMTEuMDgzIDI0OCAyNDh6TTI2Mi42NTUgOTBjLTU0LjQ5NyAwLTg5LjI1NSAyMi45NTctMTE2LjU0OSA2My43NTgtMy41MzYgNS4yODYtMi4zNTMgMTIuNDE1IDIuNzE1IDE2LjI1OGwzNC42OTkgMjYuMzFjNS4yMDUgMy45NDcgMTIuNjIxIDMuMDA4IDE2LjY2NS0yLjEyMiAxNy44NjQtMjIuNjU4IDMwLjExMy0zNS43OTcgNTcuMzAzLTM1Ljc5NyAyMC40MjkgMCA0NS42OTggMTMuMTQ4IDQ1LjY5OCAzMi45NTggMCAxNC45NzYtMTIuMzYzIDIyLjY2Ny0zMi41MzQgMzMuOTc2QzI0Ny4xMjggMjM4LjUyOCAyMTYgMjU0Ljk0MSAyMTYgMjk2djRjMCA2LjYyNyA1LjM3MyAxMiAxMiAxMmg1NmM2LjYyNyAwIDEyLTUuMzczIDEyLTEydi0xLjMzM2MwLTI4LjQ2MiA4My4xODYtMjkuNjQ3IDgzLjE4Ni0xMDYuNjY3IDAtNTguMDAyLTYwLjE2NS0xMDItMTE2LjUzMS0xMDJ6TTI1NiAzMzhjLTI1LjM2NSAwLTQ2IDIwLjYzNS00NiA0NiAwIDI1LjM2NCAyMC42MzUgNDYgNDYgNDZzNDYtMjAuNjM2IDQ2LTQ2YzAtMjUuMzY1LTIwLjYzNS00Ni00Ni00NnoiLz48L3N2Zz4=)}.fl-project-editor .side-panel .help-tip:hover{opacity:1}.fl-project-editor .side-panel .help-tip:after{content:attr(data-popup-body);position:absolute;bottom:100%;left:50%;-webkit-transform:translate(-50%);transform:translate(-50%)}.fl-annotations-tip{font-family:Source Sans Pro,sans-serif;max-width:15rem;background:#fff;color:#333;box-shadow:0 0 8px rgba(0,0,0,.2);border-radius:.5rem;padding:.625rem;font-size:.72rem;line-height:1.25em;position:absolute;z-index:999999;pointer-events:none}.fl-annotations-tip:after{content:"";position:absolute;bottom:-8px;left:50%;margin-left:-8px;width:0;height:0;border-color:#fff transparent transparent;border-style:solid;border-width:8px 8px 0}.fl-annotations-tip.hidden{display:none}.fl-disable-selection,.fl-disable-selection *{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.fl-project-editor{z-index:100000;overflow-y:auto;width:18rem;background:#fff;box-shadow:0 -2px 5px 0 rgba(0,0,0,.2);height:100vh;overflow:auto}.fl-project-editor .side-panel .side-panel-inner{margin:0;max-width:none}.fl-project-editor .side-panel{padding:0;background:transparent;height:auto;position:static;overflow:none}.fl-annotation-settings{border-top:1px solid #eee}.fl-annotation-contents :first-child{margin-top:0}.fl-annotation-contents :last-child{margin-bottom:0}.fl-annotation-contents a{color:inherit;-webkit-text-stroke-color:inherit}.fl-annotation-contents img{-webkit-user-drag:none;-khtml-user-drag:none;-moz-user-drag:none;-o-user-drag:none;user-drag:none;pointer-events:none}.empty-annotation-message{padding:1rem;font-size:1rem;text-align:center;color:#aaa}.fl-project-editor .fl-annotation-settings .settings-block,.fl-project-editor .fl-annotation-settings .toplevel-settings-block{display:none}.fl-project-editor.active-annotation .fl-annotation-settings .settings-block,.fl-project-editor.active-annotation .fl-annotation-settings .toplevel-settings-block{display:block}.fl-project-editor.active-annotation .fl-annotation-settings .empty-annotation-message{display:none}@media screen and (min-width:521px){.fl-annotations-add-element{display:none}}@media screen and (max-width:520px){.fl-project-editor{right:0;position:absolute}.is-edit-settings .fl-annotations-add-element,.is-edit-settings.is-editing .fl-annotations-source-element{left:-21rem}}',document.head.appendChild(r);var XE=JE;function JE(t,e){for("function"!=typeof(e="string"==typeof e?KE(e):e)&&(e=tS(e));t&&!e(t);)t=t.parentNode;return t||null}function KE(e){return e=String(e).toUpperCase(),function(t){return e===t.nodeName}}function tS(e){return function(t){return e===t}}function eS(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var nS=eS;function rS(t){return"function"==typeof t}function iS(t){return"number"==typeof t}function oS(t){return"object"===ig(t)&&null!==t}function aS(t){return void 0===t}(eS.EventEmitter=eS).prototype._events=void 0,eS.prototype._maxListeners=void 0,eS.defaultMaxListeners=10,eS.prototype.setMaxListeners=function(t){if(!iS(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},eS.prototype.emit=function(t){var e,n,r,i,o,a;if(this._events||(this._events={}),"error"===t&&(!this._events.error||oS(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var s=new Error('Uncaught, unspecified "error" event. ('+e+")");throw s.context=e,s}if(aS(n=this._events[t]))return!1;if(rS(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),n.apply(this,i)}else if(oS(n))for(i=Array.prototype.slice.call(arguments,1),r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i);return!0},eS.prototype.on=eS.prototype.addListener=function(t,e){var n;if(!rS(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,rS(e.listener)?e.listener:e),this._events[t]?oS(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,oS(this._events[t])&&!this._events[t].warned&&(n=aS(this._maxListeners)?eS.defaultMaxListeners:this._maxListeners)&&0<n&&this._events[t].length>n&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},eS.prototype.once=function(t,e){if(!rS(e))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(t,r),n||(n=!0,e.apply(this,arguments))}return r.listener=e,this.on(t,r),this},eS.prototype.removeListener=function(t,e){var n,r,i,o;if(!rS(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(n=this._events[t]).length,r=-1,n===e||rS(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(oS(n)){for(o=i;0<o--;)if(n[o]===e||n[o].listener&&n[o].listener===e){r=o;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},eS.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(rS(n=this._events[t]))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},eS.prototype.listeners=function(t){var t,t=this._events&&this._events[t]?rS(this._events[t])?[this._events[t]]:this._events[t].slice():[];return t},eS.prototype.listenerCount=function(t){if(this._events){var t=this._events[t];if(rS(t))return 1;if(t)return t.length}return 0},eS.listenerCount=function(t,e){return t.listenerCount(e)};var sS=["touchstart","touchmove","touchend","touchcancel","mousedown","mousemove","mouseup"],lS={left:0,top:0},cS=function t(e,o){o=o||{},e=e||window;var a=new nS;a.target=o.target||e;var r=null,s=o.filtered,n=sS,i=(n="string"==typeof o.type?sS.filter(function(t){return 0===t.indexOf(o.type)}):n).map(function(r){var i=gS(r),t;return{type:r,listener:function t(e){var n=e,n;/^touch/.test(r)&&(/^touchend$/.test(r)&&!1!==o.preventSimulated&&e.preventDefault(),n=s?l(e,r):fS(e.changedTouches,a.target)),n&&(n=dS(n,a.target),a.emit(i,e,n))}}});return a.enable=function t(){return i.forEach(pS(e,!0)),a},a.disable=function t(){return r=null,i.forEach(pS(e,!1)),a},a.enable(),a;function l(t,e){var n;return r&&/^touch(end|cancel)/.test(e)?(n=hS(t.changedTouches,r.identifier||0))&&(r=null):!r&&/^touchstart/.test(e)?r=n=fS(t.changedTouches,a.target):r&&(n=hS(t.changedTouches,r.identifier||0)),n}},uS;function dS(t,e){var n=t.clientX||0,t=t.clientY||0,e=_S(e);return[n-e.left,t-e.top]}function fS(t,e){return Array.prototype.slice.call(t).filter(function(t){return t.target===e})[0]||t[0]}function hS(t,e){for(var n=0;n<t.length;n++)if(t[n].identifier===e)return t[n];return null}function pS(e,n){return function(t){n?e.addEventListener(t.type,t.listener,{passive:!1}):e.removeEventListener(t.type,t.listener,{passive:!1})}}function gS(t){return t.replace(/^(touch|mouse)/,"").replace(/up$/,"end").replace(/down$/,"start")}function _S(t){return t===window||t===document||t===document.body?lS:t.getBoundingClientRect()}var yS=void 0!==i&&(i.crypto||i.msCrypto),mS,uS,vS;yS&&yS.getRandomValues&&(mS=new Uint8Array(16),uS=function t(){return yS.getRandomValues(mS),mS}),uS||(vS=new Array(16),uS=function t(){for(var e=0,n;e<16;e++)0==(3&e)&&(n=4294967296*Math.random()),vS[e]=n>>>((3&e)<<3)&255;return vS});for(var bS=uS,xS=[],wS=0;wS<256;++wS)xS[wS]=(wS+256).toString(16).substr(1);function MS(t,e){var e=e||0,n;return xS[t[e++]]+xS[t[e++]]+xS[t[e++]]+xS[t[e++]]+"-"+xS[t[e++]]+xS[t[e++]]+"-"+xS[t[e++]]+xS[t[e++]]+"-"+xS[t[e++]]+xS[t[e++]]+"-"+xS[t[e++]]+xS[t[e++]]+xS[t[e++]]+xS[t[e++]]+xS[t[e++]]+xS[t[e++]]}var kS=MS;function jS(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null);var i=(t=t||{}).random||(t.rng||bS)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e)for(var o=0;o<16;++o)e[r+o]=i[o];return e||kS(i)}var AS=jS,IS={origin:[0,0],content_offset:[.025,.025]},TS=function t(e,n){og(this,t),this.id="",this.position=e,this.device_visibility="all",this.text_size=1,this.text_color="#333333",this.text_bg="#ffffff",this.text_weight="bold",this.text_line_height=1.25,this.label_width=10,this.popup_position="center",this.popup_bg="#ffffff",this.line_marker="none",this.stroke_color="#333333",this.stroke_opacity=1,this.stroke_width=2,this.subject_fill="#333333",this.point_radius=.5,this.point_text="",this.point_text_color="#FFFFFF",this.subject_fill_opacity=0,this.subject_type="none",this.connector_type="direct",this.connector_extend_line="enabled",this.contents="Type your annotation...",n&&Object.assign(this,n),this.view=Object.assign({},IS),this.view.origin=this.view.origin.slice(),this.view.content_offset=this.view.content_offset.slice()},NS,zS;function ES(){var t=new TS,t=Object.assign({},t);return delete t.view,delete t.position,delete t.id,delete t.contents,t}TS.getDefaultSettings=ES;var SS=520;function LS(){return window.innerWidth!==NS&&(NS=window.innerWidth,zS=NS<=SS),zS}function DS(t){var t=t.device_visibility;return"all"==t||("mobile"==t?LS():"desktop"!=t||!LS())}var CS=n(function(t,e){var n,r;n=i,r=function(){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function e(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){var n;if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator])return(n=t[Symbol.iterator]()).next.bind(n);if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(t){var e={exports:{}};return t(e,e.exports),e.exports}var n=t(function(e){function t(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function n(t){e.exports.defaults=t}e.exports={defaults:t(),getDefaults:t,changeDefaults:n}}),a=/[&<>"']/,s=/[&<>"']/g,l=/[<>"']|&(?!#?\w+;)/,c=/[<>"']|&(?!#?\w+;)/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"},d=function t(e){return u[e]};function h(t,e){if(e){if(a.test(t))return t.replace(s,d)}else if(l.test(t))return t.replace(c,d);return t}var p=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function g(t){return t.replace(p,function(t,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""})}var _=/(^|[^\[])\^/g;function y(r,e){r=r.source||r,e=e||"";var i={replace:function t(e,n){return n=(n=n.source||n).replace(_,"$1"),r=r.replace(e,n),i},getRegex:function t(){return new RegExp(r,e)}};return i}var m=/[^\w:]/g,v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function b(t,e,n){if(t){var r;try{r=decodeURIComponent(g(n)).replace(m,"").toLowerCase()}catch(t){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}e&&!v.test(n)&&(n=A(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n}var x={},w=/^[^:]+:\/*[^/]*$/,M=/^([^:]+:)[\s\S]*$/,k=/^([^:]+:\/*[^/]*)[\s\S]*$/,j;function A(t,e){x[" "+t]||(w.test(t)?x[" "+t]=t+"/":x[" "+t]=N(t,"/",!0));var n=-1===(t=x[" "+t]).indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(M,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(k,"$1")+e:t+e}function I(t){for(var e=1,n,r;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}function T(t,e){var n,r=t.replace(/\|/g,function(t,e,n){for(var r=!1,i=e;0<=--i&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/),i=0;if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(/\\\|/g,"|");return r}function N(t,e,n){var r=t.length;if(0===r)return"";for(var i=0;i<r;){var o=t.charAt(r-i-1);if(o!==e||n){if(o===e||!n)break;i++}else i++}return t.substr(0,r-i)}function z(t,e){if(-1===t.indexOf(e[1]))return-1;for(var n=t.length,r=0,i=0;i<n;i++)if("\\"===t[i])i++;else if(t[i]===e[0])r++;else if(t[i]===e[1]&&--r<0)return i;return-1}function E(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function S(t,e){if(e<1)return"";for(var n="";1<e;)1&e&&(n+=t),e>>=1,t+=t;return n+t}var L=h,D=g,C=y,O=b,P=A,R={exec:function t(){}},Y=I,U,B,F,Z=E,H=S,G=n.defaults,Q=N,q=T,V=L,W=z;function $(t,e,n){var r=e.href,i=e.title?V(e.title):null,e=t[1].replace(/\\([\[\]])/g,"$1");return"!"!==t[0].charAt(0)?{type:"link",raw:n,href:r,title:i,text:e}:{type:"image",raw:n,href:r,title:i,text:V(e)}}function X(t,e){var t=t.match(/^(\s+)(?:```)/);if(null===t)return e;var r=t[1];return e.split("\n").map(function(t){var e=t.match(/^\s+/),n;return null!==e&&e[0].length>=r.length?t.slice(r.length):t}).join("\n")}var J=function(){function t(t){this.options=t||G}var e=t.prototype;return e.space=function t(e){var e=this.rules.block.newline.exec(e);if(e)return 1<e[0].length?{type:"space",raw:e[0]}:{raw:"\n"}},e.code=function t(e,n){var e=this.rules.block.code.exec(e);if(e){var n=n[n.length-1];if(n&&"paragraph"===n.type)return{raw:e[0],text:e[0].trimRight()};var n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Q(n,"\n")}}},e.fences=function t(e){var n=this.rules.block.fences.exec(e);if(n){var r=n[0],e=X(r,n[3]||"");return{type:"code",raw:r,lang:n[2]&&n[2].trim(),text:e}}},e.heading=function t(e){var n=this.rules.block.heading.exec(e);if(n){var r=n[2].trim(),e;return/#$/.test(r)&&(e=Q(r,"#"),!this.options.pedantic&&e&&!/ $/.test(e)||(r=e.trim())),{type:"heading",raw:n[0],depth:n[1].length,text:r}}},e.nptable=function t(e){var e=this.rules.block.nptable.exec(e);if(e){var n={type:"table",header:q(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(n.header.length===n.align.length){for(var r=n.align.length,i,i=0;i<r;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(r=n.cells.length,i=0;i<r;i++)n.cells[i]=q(n.cells[i],n.header.length);return n}}},e.hr=function t(e){var e=this.rules.block.hr.exec(e);if(e)return{type:"hr",raw:e[0]}},e.blockquote=function t(e){var n=this.rules.block.blockquote.exec(e);if(n){var e=n[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:n[0],text:e}}},e.list=function t(e){var e=this.rules.block.list.exec(e);if(e){for(var n=e[0],r=e[2],i=1<r.length,t={type:"list",raw:n,ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]},o=e[0].match(this.rules.block.item),a=!1,s,l,c,l,u,l,d,f,h=o.length,c=this.rules.block.listItemStart.exec(o[0]),p=0;p<h;p++){if(n=s=o[p],p!==h-1){if(l=this.rules.block.listItemStart.exec(o[p+1]),this.options.pedantic?l[1].length>c[1].length:l[1].length>c[0].length||3<l[1].length){o.splice(p,2,o[p]+"\n"+o[p+1]),p--,h--;continue}(!this.options.pedantic||this.options.smartLists?l[2][l[2].length-1]!==r[r.length-1]:i==(1===l[2].length))&&(u=o.slice(p+1).join("\n"),t.raw=t.raw.substring(0,t.raw.length-u.length),p=h-1),c=l}l=s.length,~(s=s.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(l-=s.length,s=this.options.pedantic?s.replace(/^ {1,4}/gm,""):s.replace(new RegExp("^ {1,"+l+"}","gm"),"")),l=a||/\n\n(?!\s*$)/.test(s),p!==h-1&&(a="\n"===s.charAt(s.length-1),l=l||a),l&&(t.loose=!0),this.options.gfm&&(f=void 0,(d=/^\[[ xX]\] /.test(s))&&(f=" "!==s[1],s=s.replace(/^\[[ xX]\] +/,""))),t.items.push({type:"list_item",raw:n,task:d,checked:f,loose:l,text:s})}return t}},e.html=function t(e){var e=this.rules.block.html.exec(e);if(e)return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):V(e[0]):e[0]}},e.def=function t(e){var e=this.rules.block.def.exec(e),n;if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},e.table=function t(e){var e=this.rules.block.table.exec(e);if(e){var n={type:"table",header:q(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=e[0];for(var r=n.align.length,i,i=0;i<r;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(r=n.cells.length,i=0;i<r;i++)n.cells[i]=q(n.cells[i].replace(/^ *\| *| *\| *$/g,""),n.header.length);return n}}},e.lheading=function t(e){var e=this.rules.block.lheading.exec(e);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1]}},e.paragraph=function t(e){var e=this.rules.block.paragraph.exec(e);if(e)return{type:"paragraph",raw:e[0],text:"\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1]}},e.text=function t(e,n){var e=this.rules.block.text.exec(e);if(e){var n=n[n.length-1];return n&&"text"===n.type?{raw:e[0],text:e[0]}:{type:"text",raw:e[0],text:e[0]}}},e.escape=function t(e){var e=this.rules.inline.escape.exec(e);if(e)return{type:"escape",raw:e[0],text:V(e[1])}},e.tag=function t(e,n,r){var e=this.rules.inline.tag.exec(e);if(e)return!n&&/^<a /i.test(e[0])?n=!0:n&&/^<\/a>/i.test(e[0])&&(n=!1),!r&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?r=!0:r&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(r=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:n,inRawBlock:r,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):V(e[0]):e[0]}},e.link=function t(e){var n=this.rules.inline.link.exec(e);if(n){var r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;var e=Q(r.slice(0,-1),"\\");if((r.length-e.length)%2==0)return}else{var i=W(n[2],"()"),o,a;-1<i&&(a=(0===n[0].indexOf("!")?5:4)+n[1].length+i,n[2]=n[2].substring(0,i),n[0]=n[0].substring(0,a).trim(),n[3]="")}var i=n[2],a="",t;return this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i))&&(i=t[1],a=t[3]):a=n[3]?n[3].slice(1,-1):"",i=i.trim(),$(n,{href:(i=/^</.test(i)?this.options.pedantic&&!/>$/.test(r)?i.slice(1):i.slice(1,-1):i)&&i.replace(this.rules.inline._escapes,"$1"),title:a&&a.replace(this.rules.inline._escapes,"$1")},n[0])}},e.reflink=function t(e,n){var r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){var e=(r[2]||r[1]).replace(/\s+/g," "),e;if((e=n[e.toLowerCase()])&&e.href)return $(r,e,r[0]);var r=r[0].charAt(0);return{type:"text",raw:r,text:r}}},e.strong=function t(e,n,r){void 0===r&&(r="");var i=this.rules.inline.strong.start.exec(e);if(i&&(!i[1]||i[1]&&(""===r||this.rules.inline.punctuation.exec(r)))){n=n.slice(-1*e.length);var o="**"===i[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd,a;for(o.lastIndex=0;null!=(i=o.exec(n));)if(a=this.rules.inline.strong.middle.exec(n.slice(0,i.index+3)))return{type:"strong",raw:e.slice(0,a[0].length),text:e.slice(2,a[0].length-2)}}},e.em=function t(e,n,r){void 0===r&&(r="");var i=this.rules.inline.em.start.exec(e);if(i&&(!i[1]||i[1]&&(""===r||this.rules.inline.punctuation.exec(r)))){n=n.slice(-1*e.length);var o="*"===i[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd,a;for(o.lastIndex=0;null!=(i=o.exec(n));)if(a=this.rules.inline.em.middle.exec(n.slice(0,i.index+2)))return{type:"em",raw:e.slice(0,a[0].length),text:e.slice(1,a[0].length-1)}}},e.codespan=function t(e){var n=this.rules.inline.code.exec(e);if(n){var r=n[2].replace(/\n/g," "),i=/[^ ]/.test(r),e=/^ /.test(r)&&/ $/.test(r);return i&&e&&(r=r.substring(1,r.length-1)),r=V(r,!0),{type:"codespan",raw:n[0],text:r}}},e.br=function t(e){var e=this.rules.inline.br.exec(e);if(e)return{type:"br",raw:e[0]}},e.del=function t(e){var e=this.rules.inline.del.exec(e);if(e)return{type:"del",raw:e[0],text:e[2]}},e.autolink=function t(e,n){var e=this.rules.inline.autolink.exec(e);if(e){var r,n,n="@"===e[2]?"mailto:"+(r=V(this.options.mangle?n(e[1]):e[1])):r=V(e[1]);return{type:"link",raw:e[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}},e.url=function t(e,n){var r,i,o,a;if(r=this.rules.inline.url.exec(e)){if("@"===r[2])o="mailto:"+(i=V(this.options.mangle?n(r[0]):r[0]));else{for(;a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0],a!==r[0];);i=V(r[0]),o="www."===r[1]?"http://"+i:i}return{type:"link",raw:r[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}},e.inlineText=function t(e,n,r){var e=this.rules.inline.text.exec(e);if(e){var r,r=n?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):V(e[0]):e[0]:V(this.options.smartypants?r(e[0]):e[0]);return{type:"text",raw:e[0],text:r}}},t}(),K=R,tt=C,R=Y,C={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:K,table:K,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};C.def=tt(C.def).replace("label",C._label).replace("title",C._title).getRegex(),C.bullet=/(?:[*+-]|\d{1,9}[.)])/,C.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,C.item=tt(C.item,"gm").replace(/bull/g,C.bullet).getRegex(),C.listItemStart=tt(/^( *)(bull)/).replace("bull",C.bullet).getRegex(),C.list=tt(C.list).replace(/bull/g,C.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+C.def.source+")").getRegex(),C._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",C._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,C.html=tt(C.html,"i").replace("comment",C._comment).replace("tag",C._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),C.paragraph=tt(C._paragraph).replace("hr",C.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",C._tag).getRegex(),C.blockquote=tt(C.blockquote).replace("paragraph",C.paragraph).getRegex(),C.normal=R({},C),C.gfm=R({},C.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),C.gfm.nptable=tt(C.gfm.nptable).replace("hr",C.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",C._tag).getRegex(),C.gfm.table=tt(C.gfm.table).replace("hr",C.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",C._tag).getRegex(),C.pedantic=R({},C.normal,{html:tt("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",C._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:K,paragraph:tt(C.normal._paragraph).replace("hr",C.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",C.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var K={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:K,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation*\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation*\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:K,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\s*punctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};K.punctuation=tt(K.punctuation).replace(/punctuation/g,K._punctuation).getRegex(),K._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",K._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",K._comment=tt(C._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),K.em.start=tt(K.em.start).replace(/punctuation/g,K._punctuation).getRegex(),K.em.middle=tt(K.em.middle).replace(/punctuation/g,K._punctuation).replace(/overlapSkip/g,K._overlapSkip).getRegex(),K.em.endAst=tt(K.em.endAst,"g").replace(/punctuation/g,K._punctuation).getRegex(),K.em.endUnd=tt(K.em.endUnd,"g").replace(/punctuation/g,K._punctuation).getRegex(),K.strong.start=tt(K.strong.start).replace(/punctuation/g,K._punctuation).getRegex(),K.strong.middle=tt(K.strong.middle).replace(/punctuation/g,K._punctuation).replace(/overlapSkip/g,K._overlapSkip).getRegex(),K.strong.endAst=tt(K.strong.endAst,"g").replace(/punctuation/g,K._punctuation).getRegex(),K.strong.endUnd=tt(K.strong.endUnd,"g").replace(/punctuation/g,K._punctuation).getRegex(),K.blockSkip=tt(K._blockSkip,"g").getRegex(),K.overlapSkip=tt(K._overlapSkip,"g").getRegex(),K._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,K._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,K._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,K.autolink=tt(K.autolink).replace("scheme",K._scheme).replace("email",K._email).getRegex(),K._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,K.tag=tt(K.tag).replace("comment",K._comment).replace("attribute",K._attribute).getRegex(),K._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,K._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,K._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,K.link=tt(K.link).replace("label",K._label).replace("href",K._href).replace("title",K._title).getRegex(),K.reflink=tt(K.reflink).replace("label",K._label).getRegex(),K.reflinkSearch=tt(K.reflinkSearch,"g").replace("reflink",K.reflink).replace("nolink",K.nolink).getRegex(),K.normal=R({},K),K.pedantic=R({},K.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:tt(/^!?\[(label)\]\((.*?)\)/).replace("label",K._label).getRegex(),reflink:tt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",K._label).getRegex()}),K.gfm=R({},K.normal,{escape:tt(K.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),K.gfm.url=tt(K.gfm.url,"i").replace("email",K.gfm._extended_email).getRegex(),K.breaks=R({},K.gfm,{br:tt(K.br).replace("{2,}","*").getRegex(),text:tt(K.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var K={block:C,inline:K},et=n.defaults,nt=K.block,rt=K.inline,it=H;function ot(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function at(t){for(var e="",n,r,i=t.length,n=0;n<i;n++)r=t.charCodeAt(n),e+="&#"+(r=.5<Math.random()?"x"+r.toString(16):r)+";";return e}var st=function(){function i(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||et,this.options.tokenizer=this.options.tokenizer||new J,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:nt.normal,inline:rt.normal};this.options.pedantic?(t.block=nt.pedantic,t.inline=rt.pedantic):this.options.gfm&&(t.block=nt.gfm,this.options.breaks?t.inline=rt.breaks:t.inline=rt.gfm),this.tokenizer.rules=t}i.lex=function t(e,n){var r;return new i(n).lex(e)},i.lexInline=function t(e,n){var r;return new i(n).inlineTokens(e)};var t=i.prototype;return t.lex=function t(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},t.blockTokens=function t(e,n,r){var i,o,a,s;for(void 0===n&&(n=[]),void 0===r&&(r=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&n.push(i);else if(i=this.tokenizer.code(e,n))e=e.substring(i.raw.length),i.type?n.push(i):((s=n[n.length-1]).raw+="\n"+i.raw,s.text+="\n"+i.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),n.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),n.push(i);else if(i=this.tokenizer.nptable(e))e=e.substring(i.raw.length),n.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),n.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),i.tokens=this.blockTokens(i.text,[],r),n.push(i);else if(i=this.tokenizer.list(e)){for(e=e.substring(i.raw.length),a=i.items.length,o=0;o<a;o++)i.items[o].tokens=this.blockTokens(i.items[o].text,[],!1);n.push(i)}else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),n.push(i);else if(r&&(i=this.tokenizer.def(e)))e=e.substring(i.raw.length),this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),n.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),n.push(i);else if(r&&(i=this.tokenizer.paragraph(e)))e=e.substring(i.raw.length),n.push(i);else if(i=this.tokenizer.text(e,n))e=e.substring(i.raw.length),i.type?n.push(i):((s=n[n.length-1]).raw+="\n"+i.raw,s.text+="\n"+i.text);else if(e){var l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}throw new Error(l)}return n},t.inline=function t(e){for(var n,r,i,o,a,s,l=e.length,n=0;n<l;n++)switch((s=e[n]).type){case"paragraph":case"text":case"heading":s.tokens=[],this.inlineTokens(s.text,s.tokens);break;case"table":for(s.tokens={header:[],cells:[]},o=s.header.length,r=0;r<o;r++)s.tokens.header[r]=[],this.inlineTokens(s.header[r],s.tokens.header[r]);for(o=s.cells.length,r=0;r<o;r++)for(a=s.cells[r],s.tokens.cells[r]=[],i=0;i<a.length;i++)s.tokens.cells[r][i]=[],this.inlineTokens(a[i],s.tokens.cells[r][i]);break;case"blockquote":this.inline(s.tokens);break;case"list":for(o=s.items.length,r=0;r<o;r++)this.inline(s.items[r].tokens)}return e},t.inlineTokens=function t(e,n,r,i){var o;void 0===n&&(n=[]),void 0===r&&(r=!1),void 0===i&&(i=!1);var a=e,s,l,c;if(this.tokens.links){var u=Object.keys(this.tokens.links);if(0<u.length)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(a));)u.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+it("a",s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,s.index)+"["+it("a",s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;e;)if(l||(c=""),l=!1,o=this.tokenizer.escape(e))e=e.substring(o.raw.length),n.push(o);else if(o=this.tokenizer.tag(e,r,i))e=e.substring(o.raw.length),r=o.inLink,i=o.inRawBlock,n.push(o);else if(o=this.tokenizer.link(e))e=e.substring(o.raw.length),"link"===o.type&&(o.tokens=this.inlineTokens(o.text,[],!0,i)),n.push(o);else if(o=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(o.raw.length),"link"===o.type&&(o.tokens=this.inlineTokens(o.text,[],!0,i)),n.push(o);else if(o=this.tokenizer.strong(e,a,c))e=e.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],r,i),n.push(o);else if(o=this.tokenizer.em(e,a,c))e=e.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],r,i),n.push(o);else if(o=this.tokenizer.codespan(e))e=e.substring(o.raw.length),n.push(o);else if(o=this.tokenizer.br(e))e=e.substring(o.raw.length),n.push(o);else if(o=this.tokenizer.del(e))e=e.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],r,i),n.push(o);else if(o=this.tokenizer.autolink(e,at))e=e.substring(o.raw.length),n.push(o);else if(r||!(o=this.tokenizer.url(e,at))){if(o=this.tokenizer.inlineText(e,i,ot))e=e.substring(o.raw.length),c=o.raw.slice(-1),l=!0,n.push(o);else if(e){var d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}else e=e.substring(o.raw.length),n.push(o);return n},e(i,null,[{key:"rules",get:function t(){return{block:nt,inline:rt}}}]),i}(),lt=n.defaults,ct=O,ut=L,dt=function(){function t(t){this.options=t||lt}var e=t.prototype;return e.code=function t(e,n,r){var i=(n||"").match(/\S*/)[0],n;return!this.options.highlight||null!=(n=this.options.highlight(e,i))&&n!==e&&(r=!0,e=n),e=e.replace(/\n$/,"")+"\n",i?'<pre><code class="'+this.options.langPrefix+ut(i,!0)+'">'+(r?e:ut(e,!0))+"</code></pre>\n":"<pre><code>"+(r?e:ut(e,!0))+"</code></pre>\n"},e.blockquote=function t(e){return"<blockquote>\n"+e+"</blockquote>\n"},e.html=function t(e){return e},e.heading=function t(e,n,r,i){return this.options.headerIds?"<h"+n+' id="'+this.options.headerPrefix+i.slug(r)+'">'+e+"</h"+n+">\n":"<h"+n+">"+e+"</h"+n+">\n"},e.hr=function t(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},e.list=function t(e,n,r){var i=n?"ol":"ul",o;return"<"+i+(n&&1!==r?' start="'+r+'"':"")+">\n"+e+"</"+i+">\n"},e.listitem=function t(e){return"<li>"+e+"</li>\n"},e.checkbox=function t(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},e.paragraph=function t(e){return"<p>"+e+"</p>\n"},e.table=function t(e,n){return"<table>\n<thead>\n"+e+"</thead>\n"+(n=n&&"<tbody>"+n+"</tbody>")+"</table>\n"},e.tablerow=function t(e){return"<tr>\n"+e+"</tr>\n"},e.tablecell=function t(e,n){var r=n.header?"th":"td",i;return(n.align?"<"+r+' align="'+n.align+'">':"<"+r+">")+e+"</"+r+">\n"},e.strong=function t(e){return"<strong>"+e+"</strong>"},e.em=function t(e){return"<em>"+e+"</em>"},e.codespan=function t(e){return"<code>"+e+"</code>"},e.br=function t(){return this.options.xhtml?"<br/>":"<br>"},e.del=function t(e){return"<del>"+e+"</del>"},e.link=function t(e,n,r){if(null===(e=ct(this.options.sanitize,this.options.baseUrl,e)))return r;var e='<a href="'+ut(e)+'"';return n&&(e+=' title="'+n+'"'),e+=">"+r+"</a>"},e.image=function t(e,n,r){if(null===(e=ct(this.options.sanitize,this.options.baseUrl,e)))return r;var r='<img src="'+e+'" alt="'+r+'"';return n&&(r+=' title="'+n+'"'),r+=this.options.xhtml?"/>":">"},e.text=function t(e){return e},t}(),ft=function(){function t(){}var e=t.prototype;return e.strong=function t(e){return e},e.em=function t(e){return e},e.codespan=function t(e){return e},e.del=function t(e){return e},e.html=function t(e){return e},e.text=function t(e){return e},e.link=function t(e,n,r){return""+r},e.image=function t(e,n,r){return""+r},e.br=function t(){return""},t}(),ht=function(){function t(){this.seen={}}var e=t.prototype;return e.serialize=function t(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},e.getNextSafeSlug=function t(e,n){var r=e,i=0;if(this.seen.hasOwnProperty(r))for(i=this.seen[e];r=e+"-"+ ++i,this.seen.hasOwnProperty(r););return n||(this.seen[e]=i,this.seen[r]=0),r},e.slug=function t(e,n){void 0===n&&(n={});var t=this.serialize(e);return this.getNextSafeSlug(t,n.dryrun)},t}(),pt=n.defaults,gt=D,_t=function(){function i(t){this.options=t||pt,this.options.renderer=this.options.renderer||new dt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ft,this.slugger=new ht}i.parse=function t(e,n){var r;return new i(n).parse(e)},i.parseInline=function t(e,n){var r;return new i(n).parseInline(e)};var t=i.prototype;return t.parse=function t(e,n){void 0===n&&(n=!0);for(var r="",i,o,a,s,l,c,u,d,f,h,d,p,g,_,y,m,v,b,x=e.length,i=0;i<x;i++)switch((h=e[i]).type){case"space":continue;case"hr":r+=this.renderer.hr();continue;case"heading":r+=this.renderer.heading(this.parseInline(h.tokens),h.depth,gt(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":r+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(u=d="",s=h.header.length,o=0;o<s;o++)u+=this.renderer.tablecell(this.parseInline(h.tokens.header[o]),{header:!0,align:h.align[o]});for(d+=this.renderer.tablerow(u),f="",s=h.cells.length,o=0;o<s;o++){for(u="",l=(c=h.tokens.cells[o]).length,a=0;a<l;a++)u+=this.renderer.tablecell(this.parseInline(c[a]),{header:!1,align:h.align[a]});f+=this.renderer.tablerow(u)}r+=this.renderer.table(d,f);continue;case"blockquote":f=this.parse(h.tokens),r+=this.renderer.blockquote(f);continue;case"list":for(d=h.ordered,p=h.start,g=h.loose,s=h.items.length,f="",o=0;o<s;o++)m=(y=h.items[o]).checked,v=y.task,_="",y.task&&(b=this.renderer.checkbox(m),g?0<y.tokens.length&&"text"===y.tokens[0].type?(y.tokens[0].text=b+" "+y.tokens[0].text,y.tokens[0].tokens&&0<y.tokens[0].tokens.length&&"text"===y.tokens[0].tokens[0].type&&(y.tokens[0].tokens[0].text=b+" "+y.tokens[0].tokens[0].text)):y.tokens.unshift({type:"text",text:b}):_+=b),_+=this.parse(y.tokens,g),f+=this.renderer.listitem(_,v,m);r+=this.renderer.list(f,d,p);continue;case"html":r+=this.renderer.html(h.text);continue;case"paragraph":r+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(f=h.tokens?this.parseInline(h.tokens):h.text;i+1<x&&"text"===e[i+1].type;)f+="\n"+((h=e[++i]).tokens?this.parseInline(h.tokens):h.text);r+=n?this.renderer.paragraph(f):f;continue;default:var p='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(p);throw new Error(p)}return r},t.parseInline=function t(e,n){n=n||this.renderer;for(var r="",i,o,a=e.length,i=0;i<a;i++)switch((o=e[i]).type){case"escape":r+=n.text(o.text);break;case"html":r+=n.html(o.text);break;case"link":r+=n.link(o.href,o.title,this.parseInline(o.tokens,n));break;case"image":r+=n.image(o.href,o.title,o.text);break;case"strong":r+=n.strong(this.parseInline(o.tokens,n));break;case"em":r+=n.em(this.parseInline(o.tokens,n));break;case"codespan":r+=n.codespan(o.text);break;case"br":r+=n.br();break;case"del":r+=n.del(this.parseInline(o.tokens,n));break;case"text":r+=n.text(o.text);break;default:var s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return void console.error(s);throw new Error(s)}return r},i}(),yt=Y,mt=Z,vt=L,L=n.getDefaults,bt=n.changeDefaults,n=n.defaults,xt;function wt(t,r,i){if(null==t)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");if("function"==typeof r&&(i=r,r=null),r=yt({},wt.defaults,r||{}),mt(r),i){var o=r.highlight,a;try{a=st.lex(t,r)}catch(t){return i(t)}var s=function t(e){var n;if(!e)try{n=_t.parse(a,r)}catch(t){e=t}return r.highlight=o,e?i(e):i(null,n)};if(!o||o.length<3)return s();if(delete r.highlight,!a.length)return s();var l=0;return wt.walkTokens(a,function(n){"code"===n.type&&(l++,setTimeout(function(){o(n.text,n.lang,function(t,e){return t?s(t):(null!=e&&e!==n.text&&(n.text=e,n.escaped=!0),void(0===--l&&s()))})},0))}),void(0===l&&s())}try{var e=st.lex(t,r);return r.walkTokens&&wt.walkTokens(e,r.walkTokens),_t.parse(e,r)}catch(t){if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",r.silent)return"<p>An error occurred:</p><pre>"+vt(t.message+"",!0)+"</pre>";throw t}}return wt.options=wt.setOptions=function(t){return yt(wt.defaults,t),bt(wt.defaults),wt},wt.getDefaults=L,wt.defaults=n,wt.use=function(s){var n=yt({},s),e;s.renderer&&function(){var a=wt.defaults.renderer||new dt,t=function t(i){var o=a[i];a[i]=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=s.renderer[i].apply(a,e);return r=!1===r?o.apply(a,e):r}},e;for(e in s.renderer)t(e);n.renderer=a}(),s.tokenizer&&function(){var a=wt.defaults.tokenizer||new J,t=function t(i){var o=a[i];a[i]=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=s.tokenizer[i].apply(a,e);return r=!1===r?o.apply(a,e):r}},e;for(e in s.tokenizer)t(e);n.tokenizer=a}(),s.walkTokens&&(e=wt.defaults.walkTokens,n.walkTokens=function(t){s.walkTokens(t),e&&e(t)}),wt.setOptions(n)},wt.walkTokens=function(t,e){for(var n=f(t),r;!(r=n()).done;){var i=r.value;switch(e(i),i.type){case"table":for(var o=f(i.tokens.header),a;!(a=o()).done;){var a=a.value;wt.walkTokens(a,e)}for(var s=f(i.tokens.cells),l;!(l=s()).done;)for(var c,u=f(l.value),d;!(d=u()).done;){var d=d.value;wt.walkTokens(d,e)}break;case"list":wt.walkTokens(i.items,e);break;default:i.tokens&&wt.walkTokens(i.tokens,e)}}},wt.parseInline=function(t,e){if(null==t)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");e=yt({},wt.defaults,e||{}),mt(e);try{var n=st.lexInline(t,e);return e.walkTokens&&wt.walkTokens(n,e.walkTokens),_t.parseInline(n,e)}catch(t){if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+vt(t.message+"",!0)+"</pre>";throw t}},wt.Parser=_t,wt.parser=_t.parse,wt.Renderer=dt,wt.TextRenderer=ft,wt.Lexer=st,wt.lexer=st.lex,wt.Tokenizer=J,wt.Slugger=ht,wt.parse=wt},t.exports=r()}),OS={gfm:!0,breaks:!0};function PS(t){return t=String(t||""),"<div class='fl-annotation-contents'>"+(t=CS(t,OS))+"</div>"}var Wi=function t(){var e;if("function"!=typeof Symbol)return!1;e=Symbol("test symbol");try{String(e)}catch(t){return!1}return"symbol"===ig(Symbol.iterator)||"object"===ig(Symbol.isConcatSpreadable)&&("object"===ig(Symbol.iterator)&&("object"===ig(Symbol.toPrimitive)&&("object"===ig(Symbol.toStringTag)&&"object"===ig(Symbol.unscopables))))},xn=function t(){var e=Object.assign,e;return"function"==typeof e&&(e(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")},Tr=function t(){try{return Object.keys("primitive"),!0}catch(t){return!1}},RS=function t(){},YS=void 0,US=function t(e){return e!==YS&&null!==e},BS=Object.keys,an=function t(e){return BS(US(e)?Object(e):e)},FS=Tr()?Object.keys:an,ZS=function t(e){if(!US(e))throw new TypeError("Cannot use null or undefined");return e},HS=Math.max,it=function t(n,r){var i,e,o=HS(arguments.length,2),a;for(n=Object(ZS(n)),a=function t(e){try{n[e]=r[e]}catch(t){i=i||t}},e=1;e<o;++e)FS(r=arguments[e]).forEach(a);if(void 0!==i)throw i;return n},GS=xn()?Object.assign:it,QS=Array.prototype.forEach,qS=Object.create,VS=function t(e,n){var r;for(r in e)n[r]=e[r]},WS=function t(e){var n=qS(null);return QS.call(arguments,function(t){US(t)&&VS(Object(t),n)}),n},$S=function t(e){return"function"==typeof e},XS="razdwatrzy",JS,KS=String.prototype.indexOf,vr=function t(e){return-1<KS.call(this,e,arguments[1])},tL=function t(){return"function"==typeof XS.contains&&(!0===XS.contains("dwa")&&!1===XS.contains("foo"))}()?String.prototype.contains:vr,eL=n(function(t){var e,e;(t.exports=function(t,e){var n,r,i,o,i;return arguments.length<2||"string"!=typeof t?(o=e,e=t,t=null):o=arguments[2],null==t?r=!(n=i=!0):(n=tL.call(t,"c"),r=tL.call(t,"e"),i=tL.call(t,"w")),i={value:e,configurable:n,enumerable:r,writable:i},o?GS(WS(o),i):i}).gs=function(t,e,n){var r,t,i,t;return"string"!=typeof t?(i=n,n=e,e=t,t=null):i=arguments[3],null==e?e=void 0:$S(e)?null==n?n=void 0:$S(n)||(i=n,n=void 0):(i=e,e=n=void 0),t=null==t?!(r=!0):(r=tL.call(t,"c"),tL.call(t,"e")),t={get:e,set:n,configurable:r,enumerable:t},i?GS(WS(i),t):t}}),nL=function t(e){return e&&("symbol"===ig(e)||"Symbol"===e["@@toStringTag"])||!1},rL=function t(e){if(!nL(e))throw new TypeError(e+" is not a symbol");return e},iL=Object.create,oL=Object.defineProperties,aL=Object.defineProperty,sL=Object.prototype,lL,cL,uL=iL(null),dL=(fL=iL(null),function(t){for(var e=0,n;fL[t+(e||"")];)++e;return fL[t+=e||""]=!0,aL(sL,n="@@"+t,eL.gs(null,function(t){aL(this,n,eL(t))})),n}),fL,cL=function t(e){if(this instanceof cL)throw new TypeError("TypeError: Symbol is not a constructor");return t()},Qt=lL=function t(e){var n;if(this instanceof t)throw new TypeError("TypeError: Symbol is not a constructor");return n=iL(cL.prototype),e=void 0===e?"":String(e),oL(n,{__description__:eL("",e),__name__:eL("",dL(e))})};oL(lL,{for:eL(function(t){return uL[t]||(uL[t]=lL(String(t)))}),keyFor:eL(function(t){var e;for(e in rL(t),uL)if(uL[e]===t)return e}),hasInstance:eL("",lL("hasInstance")),isConcatSpreadable:eL("",lL("isConcatSpreadable")),iterator:eL("",lL("iterator")),match:eL("",lL("match")),replace:eL("",lL("replace")),search:eL("",lL("search")),species:eL("",lL("species")),split:eL("",lL("split")),toPrimitive:eL("",lL("toPrimitive")),toStringTag:eL("",lL("toStringTag")),unscopables:eL("",lL("unscopables"))}),oL(cL.prototype,{constructor:eL(lL),toString:eL("",function(){return this.__name__})}),oL(lL.prototype,{toString:eL(function(){return"Symbol ("+rL(this).__description__+")"}),valueOf:eL(function(){return rL(this)})}),aL(lL.prototype,lL.toPrimitive,eL("",function(){return rL(this)})),aL(lL.prototype,lL.toStringTag,eL("c","Symbol")),aL(cL.prototype,lL.toPrimitive,eL("c",lL.prototype[lL.toPrimitive])),aL(cL.prototype,lL.toStringTag,eL("c",lL.prototype[lL.toStringTag]));var Vt=Wi()?Symbol:Qt,hL=gL,qt=_L,pL=Vt("see-change-array");function gL(o){for(var a=[],t=0;t<o.length;t++)a[t]=o[t]();return e;function e(){for(var t=!1,e=0;e<o.length;e++){var n=o[e],r=n(),i;n[pL]?r&&(t=!0,a[e]=r):r!==a[e]&&(t=!0,a[e]=r)}return t}}function _L(n){var t=n.length,r;return i(),e[pL]=!0,e;function e(){return n.length!==t?(t=n.length,i(),!0):r()}function i(){for(var t=[],e=0;e<n.length;e++)!function(e){t[e]=function t(){return n[e]}}(e);r=gL(t)}}function yL(t,e,n,r){var i=e[0],o=n[0],a=e[1],s=n[1],l=n[2],c=n[3],u=o-i,d=s-a,f=!!r.extend_line,n=vL(t,e,n,f),h,p,u,d;!f&&u<0&&n<=0&&(u=(o+=l/(2+n))-i),"rect"===t&&(h=r.radius_x+r.radius_pad,p=r.radius_y+r.radius_pad,u=o,d=s,(0<h&&-h<u||h<0&&u<+h)&&(i=Math.abs(h)>Math.abs(u)?0:h),(0<p&&-p<d||p<0&&d<+p)&&(a=Math.abs(p)>Math.abs(d)?0:p)),s<0&&(s+=c),i===l/2&&a===c/2&&(i=o,a=s),u=o-i,d=s-a;var h=o,p=s,c=s<a&&i<o||o<i&&a<s?-1:1,g;if(Math.abs(u)<Math.abs(d)?(h=o,p=a+u*c):(p=s,h=i+d*c),"circle"!==t&&"point"!==t||!r.radius)return mL(f?[[[i,a],[h,p],[o,s]],[[o,s],[o+l,s]]]:[[[i,a],[h,p],[o,s]]]);var c=r.radius,t=Math.sqrt(u*u+d*d);t<c-r.radius_pad?c-=r.radius_pad:t>c+r.radius_pad&&(c+=r.radius_pad);var r=c/Math.sqrt(2),_;if(Math.abs(u)>r&&Math.abs(d)>r)return i=r*(o<0?-1:1),a=r*(s<0?-1:1),mL(_=f?[[[i,a],[h,p],[o,s]],[[o,s],[o+l,s]]]:[[[i,a],[h,p],[o,s]]]);if(Math.abs(u)>Math.abs(d)){var d=Math.asin(-s/c),i=Math.abs(Math.cos(d)*c)*(o<0?-1:1),y;return mL(f?[[[i,s],[o,s]],[[o,s],[o+l,s]]]:[[[i,s],[o,s]]])}var i=Math.acos(o/c),a=Math.abs(Math.sin(i)*c)*(s<0?-1:1),m;return mL(f?[[[o,a],[o,s]],[[o,s],[o+l,s]]]:[[[o,a],[o,s]]])}function mL(t){for(var e=[],n=0;n<t.length;n++)for(var r=0;r<t[n].length;r++){var i,o=t[n][r][0],a=t[n][r][1];e.push((0===r?"M":"L")+o+","+a)}return e.join(" ")}function vL(t,e,n,r){var i=e[0],e=n[0],n=n[2],o;return!!r||0<e-i?1:e-i<-n?-1:0}function bL(t,e,n,r){var i=e[0]-t[0],o=e[1]-t[1],a=r[0]-n[0],s=r[1]-n[1],e=i*s-o*a;if(0==e)return 1/0;var r=n[0]-t[0],t=n[1]-t[1],a=(r*s-t*a)/e;if(a<0||1<a)return 1/0;var e=(r*o-t*i)/e;return e<0||1<e?1/0:a}function xL(t,e,n,r){var i=n[1][1],o=n[0][1],a=n[0][0],s=n[1][0],l=bL(t,e,[i,a],[i,s]),n=bL(t,e,[i,a],[o,a]),a=bL(t,e,[o,a],[o,s]),s=bL(t,e,[i,s],[o,s]),i;return!(1/0<=(i=Math.min(l,n,a,s)))&&(r&&(r[0]=t[0]+(e[0]-t[0])*i,r[1]=t[1]+(e[1]-t[1])*i),1)}hL.array=qt,yL.align=vL;var wL=[0,0];function ML(t,e,n,r){var i=e[0],o=n[0],a=e[1],s=n[1],l=n[2],c=n[3],n=jL(t,e,n),u,d,f,h;if((o-i<0&&n<=0&&(o+=l/(2+n)),s<-c?s+=c:s<0&&(s+=c/2),"rect"===t)&&xL([o,s],[0,0],[[-r.radius_x-r.radius_pad,-r.radius_y-r.radius_pad],[+r.radius_x+r.radius_pad,+r.radius_y+r.radius_pad]],wL))return kL([[wL,[o,s]]]);if("circle"!==t&&"point"!==t||!r.radius)return kL([[[i,a],[o,s]]]);var i=Math.sqrt(o*o+s*s),a=r.radius+r.radius_pad,p,r=a*s/i;return wL[0]=a*o/i,wL[1]=r,kL([[wL,[o,s]]])}function kL(t){for(var e=[],n=0;n<t.length;n++)for(var r=0;r<t[n].length;r++){var i,o=t[n][r][0],a=t[n][r][1];e.push((0===r?"M":"L")+o+","+a)}return e.join(" ")}function jL(t,e,n,r){var i=e[0],e=n[0],n=n[2];return 0<=e-i?1:e-i<=-n?-1:0}function AL(t,e,n,r){var i=e[0],o=n[0],a=e[1],s=n[1],l=n[2],c=n[3],u=o-i,d=s-a,f=!!r.extend_line,h=TL(t,e,n,f),e,n,u,d,p,a;if(!f&&u<0&&0===h&&(u=(o+=l/2)-i),"rect"===t&&(e=r.radius_x+2*r.radius_pad,n=r.radius_y+2*r.radius_pad,d=s,a=(p=(u=o)<e&&-e<u+l)?(i=0,Math.sign(d)*n):(i=Math.sign(u)*e,0)),s<0&&(s+=c),i===l/2&&a===c/2&&(i=o,a=s),"rect"===t){if(p)return IL(f?[[[0,a],[0,s]],[[Math.min(o,0),s],[Math.max(0,o+l),s]]]:[[[0,a],[0,s]],[[0,s],[o,s]]]);var g,p=o<0?(i+o+l)/2:(i+o)/2,_;return IL(f?[[[i,a],[p,a],[p,s],[o,s]],[[o,s],[o+l,s]]]:[[[i,a],[p,a],[p,s],[-1===h?o+l:o,s]]])}if(u=o-i,d=s-a,"circle"!==t&&"point"!==t&&"none"!==t)throw new Error("Unexpected annotation type for getStep()");var t=r.radius||0,d=Math.sqrt(u*u+d*d);d<t-r.radius_pad?t-=r.radius_pad:d>t+r.radius_pad&&(t+=r.radius_pad);var d=1;if(Math.abs(o)>t&&(0<o||o<-t-l)){o<-t&&(d*=-1,o+=l);var r=((i=t*(o<(a=0)?-1:1))+o)/2;return IL(f?[[[i,a],[r,a],[r,s],[o,s]],[[o,s],[o+l*d,s]]]:0===h?[[[i,a],[o,a],[o,s]]]:[[[i,a],[r,a],[r,s],[o,s]]])}return a=t*(s<0?-1:1),IL(f?[[[i,a],[i,s],[o,s]],[[o,s],[o+l*d,s]]]:-1===h?[[[i,a],[i,s],[o+l,s]]]:[[[i,a],[i,s],[o,s]]])}function IL(t){for(var e=[],n=0;n<t.length;n++)for(var r=0;r<t[n].length;r++){var i,o=t[n][r][0],a=t[n][r][1];e.push((0===r?"M":"L")+o+","+a)}return e.join(" ")}function TL(t,e,n,r){var i=e[0],e=n[0],n=n[2],o;return!!r||0<e-i?1:e-i<-n?-1:0}ML.align=jL,AL.align=TL;var NL={polyline:yL,direct:ML,step:AL,none:function t(){return""},popup:function t(){return""}},zL;function EL(t){var e=(t=t||window).innerWidth,t=t.innerHeight;return Math.sqrt(e*e+t*t)}function SL(t){zL=my(t).append("defs")}var LL={},DL={arrowhead:function t(e,n,r){return e.append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX","7.5").attr("refY","5").attr("markerWidth","5").attr("markerHeight","5").attr("orient","auto-start-reverse").attr("fill",r).append("path").attr("d","M 0 0 L 10 5 L 0 10 z")}};function CL(t,e){var n=LL[t];if(!n)return null;var r,i="marker-"+t+"-"+OL(e);return n[e]=n[e]||DL[t](zL,i,e),"url(#"+i+")"}function OL(t){return t.replace(/[^a-f0-9]/gi,"-").toLowerCase()}Object.keys(DL).forEach(function(t){return LL[t]={}});var PL=Object.create?Object.create(null):{},RL=function(){function o(t,e,n,r){var i=this;og(this,o),this.id=t,this.state=e.view,this.parent=n,this.parent_svg=r,this.settings=e,this.selected=!1,this.editable=!1,this.active=!0,this.shouldUpdatePath=hL(this.pathDependencies().concat([function(){return i.state.content_offset[0]},function(){return i.state.content_offset[1]},function(){return i.settings.contents},function(){return i.settings.text_size},function(){return i.settings.label_width},function(){return i.settings.stroke_color},function(){return i.settings.connector_type},function(){return i.settings.subject_type},function(){return i.settings.line_marker},function(){return window.innerWidth},function(){return window.innerHeight},function t(){var e=!1;return function(){return e||!(e=!0)}}()])),this.element=my(r).append("g").attr("data-annotation-id",this.id).attr("data-annotation-interactive",!0).classed("fl-annotations-node",!0).node(),this.el_path=my(this.element).append("path").style("stroke",this.settings.stroke_color).style("stroke-width",this.settings.stroke_width).style("fill","none").classed("fl-connector",!0),this.el_content=my(n).append("aside").attr("data-annotation-content","true").style("position","absolute").classed("fl-annotations-inline",!0),this.el_content_bg=this.el_content.append("span").style("position","absolute").classed("fl-label-bg",!0),this.el_content_fg=this.el_content.append("span").style("position","absolute").classed("fl-label-fg",!0),this.id&&(PL[this.id]=this),this._updateContents()}return sg(o,[{key:"pathDependencies",value:function t(){return[]}},{key:"updatePath",value:function t(e,n,r){var i=NL[this.getConnectorType()],o="disabled"!==this.settings.connector_extend_line,a=i.align?i.align(this.type,e,n,o):1,a=a<0?"right":0<a?"left":"center";Object.assign(r,{extend_line:o});var n=i(this.type,e,n,r);this.el_path.attr("d",n),this.el_path.attr("visibility",this._displayPath()?"visible":"hidden"),this.el_content_bg.style("text-align",a),this.el_content_fg.style("text-align",a);var a=this.settings.stroke_color;this.el_path.style("stroke",this.settings.stroke_color).style("stroke-opacity",this.settings.stroke_opacity).style("stroke-width",r.connector_width||this.settings.stroke_width).style("stroke-linecap","square").style("stroke-dasharray",r.connector_dash?"4, 4":null).attr("marker-start",CL(this.settings.line_marker,a))}},{key:"ofType",value:function t(e){if(e===this.constructor)return this;var n=this.id,r=this.settings,i=this.parent,o=this.parent_svg;return this.destroy(),new e(n,r,i,o)}},{key:"type",get:function t(){return String(this.constructor.name)}},{key:"onDragStart",value:function t(e,n){return!0}},{key:"onDragMove",value:function t(e,n){return!0}},{key:"onDragEnd",value:function t(e,n){return!0}},{key:"update",value:function t(){var e=this.getConnectorType(),n=this.state.origin[0],r=this.state.origin[1];my(this.element).attr("transform","translate(".concat(n," ").concat(r,")")).classed("fl-connector-popup","popup"==e).classed("fl-connector-line","polyline"==e||"step"==e),this._updateContents()}},{key:"_displayEditorInterface",value:function t(){return this.editable&&this.active}},{key:"_displayPath",value:function t(){var e=this.getConnectorType();return"none"!==e&&"popup"!==e&&this._displayContent()}},{key:"_displayContent",value:function t(){return this.active&&"popup"!==this.getConnectorType()&&!this.popup_mobile_mode}},{key:"_updateContents",value:function t(){this._displayContent()&&(this._updateContentsMarkup(),this._updateContentsDom())}},{key:"_updateContentsMarkup",value:function t(){var e=PS(this.settings.contents);this.el_content_bg.html(e),this.el_content_fg.html(e)}},{key:"_updateContentsDom",value:function t(){var e=EL(),n=this.state.content_offset[0]*e,r=this.state.content_offset[1]*e,i=this.state.origin[0],e=this.state.origin[1];this.el_content.style("left",i+n+"px").style("top",e+r+"px").style("width","100%").style("color",this.settings.text_color).style("visibility",this._displayContent()).style("font-size",this.settings.text_size+"rem").style("font-weight",this.settings.text_weight).style("line-height",this.settings.text_line_height+"em"),this.el_content_bg.style("-webkit-text-stroke-width",.15*this.settings.text_size+"rem").style("-webkit-text-stroke-color",this.settings.text_bg||"transparent").style("max-width",this.settings.label_width+"rem"),this.el_content_fg.style("max-width",this.settings.label_width+"rem")}},{key:"getPopupPosition",value:function t(e){return[0,0]}},{key:"getConnectorType",value:function t(){var e;return"popup"==this.settings.device_visibility&&LS()?"popup":this.settings.connector_type}},{key:"destroy",value:function t(e){e&&e.stayInDOM||!this.element.parentNode||this.element.parentNode.removeChild(this.element),this.state=null,this.element=null,this.settings=null,delete PL[this.id]}},{key:"setSelected",value:function t(e){return this.selected!==(e=!!e)&&((this.selected=e)?this.element.classList.add("selected"):this.element.classList.remove("selected"),!0)}},{key:"setActive",value:function t(e){return this.active!==(e=!!e)&&(this.active=e,this.element.style.visibility=e?"visible":"hidden",this.el_content.style("visibility",this._displayContent()?"visible":"hidden"),this.el_path.attr("visibility",this._displayPath()?"visible":"hidden"),!0)}}]),o}(),YL,UL,BL;function FL(t){return ZL(),t*BL}function ZL(){window.innerWidth!==UL&&(UL=window.innerWidth,BL=parseFloat(getComputedStyle(document.documentElement).fontSize))}RL.getByID=function t(e){return PL[e]||null};var HL,GL=8,QL,qL,VL={circle:function(t){lg(s,t);var i=pg(s);function s(t,e,n,r){var e;og(this,s);var e=i.call(this,t,e,n,r),n=EL();return e.state.radius="radius"in e.state?e.state.radius:.05,e.el_content.attr("data-annotation-type","circle"),e.group=my(e.element).classed("fl-circle",!0),e.el_circle=e.group.append("circle").classed("main-circle",!0).attr("fill","none").attr("stroke",e.settings.stroke_color).attr("stroke-width",e.settings.stroke_width).attr("cx",0).attr("cy",0).style("opacity",0).attr("r",e.state.radius*n+10),e.el_circle.transition().style("opacity",1).attr("r",e.state.radius*n),e.el_notch_radius=e.group.append("circle").classed("fl-notch",!0).attr("r",8).attr("cx",e.state.radius*n),e.el_notch_origin=e.group.append("circle").classed("fl-notch",!0).attr("r",8),e.el_content.attr("data-annotation-id",e.id),e.svg=r,e._is_drag_custom=!1,e._drag_mode_offset=!1,e._drag_mode_radius=!1,e._drag_start=[0,0],e._drag_base_position=[0,0],e._has_run=!1,e.updatePath(e.state.content_offset[0],e.state.content_offset[1]),e}return sg(s,[{key:"type",get:function t(){return"circle"}},{key:"pathDependencies",value:function t(){var e=this;return[function(){return e.state.radius}]}},{key:"setActive",value:function t(e){return!!_g(cg(s.prototype),"setActive",this).call(this,e)&&(this.updateNotchVisibility(),!0)}},{key:"onDragStart",value:function t(e,n){var r=EL();return this._drag_mode_offset=!!XE(e.target,function(t){return t.hasAttribute&&t.hasAttribute("data-annotation-content")}),this._drag_mode_radius=e.target===this.el_notch_radius.node(),this._drag_start[0]=n[0],this._drag_start[1]=n[1],this._drag_base_position[0]=r*this.state.content_offset[0],this._drag_base_position[1]=r*this.state.content_offset[1],this._is_drag_custom=this._drag_mode_offset||this._drag_mode_radius,!this._is_drag_custom}},{key:"onDragMove",value:function t(e,n){return!this._is_drag_custom||(this._drag_mode_radius?(r=n[0]-this.state.origin[0],i=n[1]-this.state.origin[1],r=Math.sqrt(r*r+i*i),this.state.radius=r/EL()):(i=n[0]-this._drag_start[0],r=n[1]-this._drag_start[1],n=EL(),this.state.content_offset[0]=(i+this._drag_base_position[0])/n,this.state.content_offset[1]=(r+this._drag_base_position[1])/n),this.update(),!1);var r,i,r,i,r,n}},{key:"onDragEnd",value:function t(e,n){return this.onDragMove(e,n)}},{key:"update",value:function t(){_g(cg(s.prototype),"update",this).call(this);var e,n=EL()*this.state.radius,r=this.settings.stroke_color;this.el_circle.style("opacity",1).attr("stroke",r).attr("stroke-opacity",this.settings.stroke_opacity).attr("stroke-width",this.settings.stroke_width).attr("fill",this.settings.subject_fill).attr("fill-opacity",this.settings.subject_fill_opacity).attr("r",n).interrupt(),this.el_notch_origin.attr("stroke",r),this.el_notch_radius.attr("stroke",r).attr("cx",n),this.updateNotchVisibility(),this.updatePath()}},{key:"updatePath",value:function t(){var e=EL(),n=e*this.state.radius,r=5,i=e*this.state.content_offset[0],o=e*this.state.content_offset[1],a,e,a;this.shouldUpdatePath()&&(a=this.el_content_fg.node().getBoundingClientRect(),e=[0,0],a=[i,o,Math.max(a.width,1),Math.max(a.height,1)],_g(cg(s.prototype),"updatePath",this).call(this,e,a,{radius:n,radius_pad:5}))}},{key:"updateNotchVisibility",value:function t(){var e=this._displayEditorInterface()?"visible":"hidden";this.el_notch_origin.style("visibility",e),this.el_notch_radius.style("visibility",e)}},{key:"getPopupPosition",value:function t(e){var n=this.state.radius*EL();switch(e){case"left":return[-n,0];case"right":return[+n,0];case"top":return[0,-n];case"bottom":return[0,+n];default:return[0,0]}}},{key:"destroy",value:function t(){var e=this.element,n=this.state.radius;_g(cg(s.prototype),"destroy",this).call(this,{stayInDOM:!0}),this.el_circle.transition().attr("r",n*EL()+10),this.el_content.remove(),this.group.transition().style("opacity",0).on("end",function(){return my(e).remove()})}}]),s}(RL),point:function(t){lg(s,t);var i=pg(s);function s(t,e,n,r){var n;return og(this,s),(n=i.call(this,t,e,n,r)).el_content.attr("data-annotation-type","point"),n.group=my(n.element).classed("fl-point",!0),n.el_circle=n.group.append("circle").classed("main-point",!0).attr("cx",0).attr("cy",0).attr("r",0),n.el_circle.transition().attr("r",FL(n.settings.point_radius)),n.el_notch_circle=n.group.append("circle").attr("cx",0).attr("cy",0).classed("fl-notch",!0).attr("r",0),n.el_notch_circle.transition().attr("r",FL(n.settings.point_radius)+3),n.el_label=n.group.append("text"),n.el_content.attr("data-annotation-id",n.id),n.svg=r,n._drag_offset=!1,n._drag_offset_start=[0,0],n._drag_offset_base_position=[0,0],n}return sg(s,[{key:"type",get:function t(){return"point"}},{key:"setActive",value:function t(e){return!!_g(cg(s.prototype),"setActive",this).call(this,e)&&(this.el_notch_circle.attr("visibility",this._displayEditorInterface()?"visible":"hidden"),!0)}},{key:"onDragStart",value:function t(e,n){var r=EL();return this._drag_offset=!!XE(e.target,function(t){return t.hasAttribute&&t.hasAttribute("data-annotation-content")}),this._drag_offset_start[0]=n[0],this._drag_offset_start[1]=n[1],this._drag_offset_base_position[0]=r*this.state.content_offset[0],this._drag_offset_base_position[1]=r*this.state.content_offset[1],!this._drag_offset}},{key:"onDragMove",value:function t(e,n){if(!this._drag_offset)return!0;var r=n[0]-this._drag_offset_start[0],i=n[1]-this._drag_offset_start[1],n=EL();return this.state.content_offset[0]=(r+this._drag_offset_base_position[0])/n,this.state.content_offset[1]=(i+this._drag_offset_base_position[1])/n,this.update(),!1}},{key:"onDragEnd",value:function t(e,n){return this.onDragMove(e,n)}},{key:"update",value:function t(){_g(cg(s.prototype),"update",this).call(this),this.el_circle.style("opacity",1).style("fill",this.settings.subject_fill).transition().attr("r",FL(this.settings.point_radius)),this.el_label.text(this.settings.point_text).style("font-size",Math.min(FL(this.settings.text_size),1.15*FL(this.settings.point_radius))).style("fill",this.settings.point_text_color),this.el_notch_circle.attr("visibility",this._displayEditorInterface()?"visible":"hidden").attr("stroke",this.settings.stroke_color).attr("r",FL(this.settings.point_radius)+3),this.updatePath()}},{key:"updatePath",value:function t(){var e=EL(),n=FL(this.settings.point_radius),r=5,i=this.state.content_offset[0]*e,o=this.state.content_offset[1]*e,a,e,a;this.shouldUpdatePath()&&(a=this.el_content_fg.node().getBoundingClientRect(),e=[0,0],a=[i,o,Math.max(a.width,1),Math.max(a.height,1)],_g(cg(s.prototype),"updatePath",this).call(this,e,a,{radius:n,radius_pad:5}))}},{key:"getPopupPosition",value:function t(e){var n=FL(this.settings.point_radius);switch(e){case"left":return[-n,0];case"right":return[+n,0];case"top":return[0,-n];case"bottom":return[0,+n];default:return[0,0]}}},{key:"destroy",value:function t(){var e=this.element;_g(cg(s.prototype),"destroy",this).call(this,{stayInDOM:!0}),this.el_circle.transition().attr("r",0),this.el_notch_circle.transition().attr("r",0),this.el_content.style("opacity",1).transition().style("opacity",0).remove(),this.group.style("opacity",1).transition().style("opacity",0).on("end",function(){return my(e).remove()})}}]),s}(RL),none:function(t){lg(c,t);var i=pg(c);function c(t,e,n,r){var n;return og(this,c),(n=i.call(this,t,e,n,r)).el_content.attr("data-annotation-type","none"),n.group=my(n.element).classed("fl-point",!0),n.el_notch_origin=n.group.append("circle").attr("cx",0).attr("cy",0).classed("fl-notch",!0).attr("r",0),n.el_notch_origin.transition().attr("r",GL),n.el_label=n.group.append("text"),n.el_content.attr("data-annotation-id",n.id),n.svg=r,n._drag_offset=!1,n._drag_offset_start=[0,0],n._drag_offset_base_position=[0,0],n}return sg(c,[{key:"type",get:function t(){return"point"}},{key:"setActive",value:function t(e){return!!_g(cg(c.prototype),"setActive",this).call(this,e)&&(this.el_notch_origin.attr("visibility",this._displayEditorInterface()?"visible":"hidden"),!0)}},{key:"_displayEditorInterface",value:function t(){return this.editable&&this.active}},{key:"_displayPath",value:function t(){return(this._displayEditorInterface()||"none"!==_g(cg(c.prototype),"getConnectorType",this).call(this))&&this._displayContent()}},{key:"_displayContent",value:function t(){return this.active&&"popup"!==this.getConnectorType()&&!this.popup_mobile_mode}},{key:"onDragStart",value:function t(e,n){var r=EL();return this._drag_offset=!!XE(e.target,function(t){return t.hasAttribute&&t.hasAttribute("data-annotation-content")}),this._drag_offset_start[0]=n[0],this._drag_offset_start[1]=n[1],this._drag_offset_base_position[0]=r*this.state.content_offset[0],this._drag_offset_base_position[1]=r*this.state.content_offset[1],!this._drag_offset}},{key:"onDragMove",value:function t(e,n){if(!this._drag_offset)return!0;var r=n[0]-this._drag_offset_start[0],i=n[1]-this._drag_offset_start[1],n=EL();return this.state.content_offset[0]=(r+this._drag_offset_base_position[0])/n,this.state.content_offset[1]=(i+this._drag_offset_base_position[1])/n,this.update(),!1}},{key:"onDragEnd",value:function t(e,n){return this.onDragMove(e,n)}},{key:"update",value:function t(){_g(cg(c.prototype),"update",this).call(this),this.el_label.text(this.settings.point_text).style("font-size",Math.min(FL(this.settings.text_size),1.15*FL(this.settings.point_radius))).style("fill",this.settings.point_text_color),this.el_notch_origin.attr("visibility",this._displayEditorInterface()?"visible":"hidden").attr("stroke",this.settings.stroke_color).attr("r",GL),this.updatePath()}},{key:"getConnectorType",value:function t(){var e=_g(cg(c.prototype),"getConnectorType",this).call(this);return"none"===e?"direct":e}},{key:"pathDependencies",value:function t(){var e=this;return[function(){return e.editable},function(){return e.active},function(){return _g(cg(c.prototype),"getConnectorType",e).call(e)}]}},{key:"updatePath",value:function t(){var e="none"===_g(cg(c.prototype),"getConnectorType",this).call(this),n=e?1:this.settings.stroke_width,r=EL(),i=e?GL:0,o=e?5:0,a=this.state.content_offset[0]*r,s=this.state.content_offset[1]*r,l,r,l;this.shouldUpdatePath()&&(l=this.el_content_fg.node().getBoundingClientRect(),r=[0,0],l=[a,s,Math.max(l.width,1),Math.max(l.height,1)],_g(cg(c.prototype),"updatePath",this).call(this,r,l,{radius:i,radius_pad:o,connector_dash:e,connector_width:n}))}},{key:"getPopupPosition",value:function t(e){var n=FL(this.settings.point_radius);switch(e){case"left":return[-n,0];case"right":return[+n,0];case"top":return[0,-n];case"bottom":return[0,+n];default:return[0,0]}}},{key:"destroy",value:function t(){var e=this.element;_g(cg(c.prototype),"destroy",this).call(this,{stayInDOM:!0}),this.el_notch_origin.transition().attr("r",0),this.el_content.style("opacity",1).transition().style("opacity",0).remove(),this.group.style("opacity",1).transition().style("opacity",0).on("end",function(){return my(e).remove()})}}]),c}(RL),box:function(t){lg(l,t);var i=pg(l);function l(t,e,n,r){var e;og(this,l);var e=i.call(this,t,e,n,r),n=EL();return e.state.radius_x="radius_x"in e.state?e.state.radius_x:.05,e.state.radius_y="radius_y"in e.state?e.state.radius_y:.05,e.el_content.attr("data-annotation-type","box"),e.group=my(e.element).classed("fl-circle",!0),e.el_box=e.group.append("rect").classed("main-circle",!0).attr("fill","none").attr("stroke","#000").attr("stroke-opacity",e.settings.stroke_color_opacity).attr("stroke-width",e.settings.stroke_width).attr("x",-e.state.radius_x*n+10).attr("y",-e.state.radius_y*n+10).style("opacity",0).attr("width",2*(e.state.radius_x*n+10)).attr("height",2*(e.state.radius_y*n+10)),e.el_box.transition().style("opacity",1).attr("width",e.state.radius_x*n).attr("height",e.state.radius_y*n),e.el_notch_radius_x=e.group.append("circle").classed("fl-notch",!0).attr("r",8).attr("cx",e.state.radius_x*n),e.el_notch_radius_y=e.group.append("circle").classed("fl-notch",!0).attr("r",8).attr("cy",e.state.radius_y*n),e.el_notch_origin=e.group.append("circle").classed("fl-notch",!0).attr("r",8),e.el_content.attr("data-annotation-id",e.id),e.svg=r,e._is_drag_custom=!1,e._drag_mode_offset=!1,e._drag_mode_radius_x=!1,e._drag_mode_radius_y=!1,e._drag_start=[0,0],e._drag_base_position=[0,0],e._has_run=!1,e.updatePath(),e}return sg(l,[{key:"type",get:function t(){return"rect"}},{key:"pathDependencies",value:function t(){var e=this;return[function(){return e.state.radius_x},function(){return e.state.radius_y}]}},{key:"setActive",value:function t(e){return!!_g(cg(l.prototype),"setActive",this).call(this,e)&&(this.updateNotchVisibility(),!0)}},{key:"onDragStart",value:function t(e,n){var r=EL();return this._drag_mode_offset=!!XE(e.target,function(t){return t.hasAttribute&&t.hasAttribute("data-annotation-content")}),this._drag_mode_radius_x=e.target===this.el_notch_radius_x.node(),this._drag_mode_radius_y=e.target===this.el_notch_radius_y.node(),this._drag_start[0]=n[0],this._drag_start[1]=n[1],this._drag_base_position[0]=r*this.state.content_offset[0],this._drag_base_position[1]=r*this.state.content_offset[1],this._is_drag_custom=this._drag_mode_offset||this._drag_mode_radius_x||this._drag_mode_radius_y,!this._is_drag_custom}},{key:"onDragMove",value:function t(e,n){if(!this._is_drag_custom)return!0;var r=EL(),i,o,o,n;return this._drag_mode_radius_x?(i=n[0]-this.state.origin[0],this.state.radius_x=Math.abs(i/EL())):this._drag_mode_radius_y?(o=n[1]-this.state.origin[1],this.state.radius_y=Math.abs(o/EL())):(o=n[0]-this._drag_start[0],n=n[1]-this._drag_start[1],this.state.content_offset[0]=(o+this._drag_base_position[0])/r,this.state.content_offset[1]=(n+this._drag_base_position[1])/r),this.update(),!1}},{key:"onDragEnd",value:function t(e,n){return this.onDragMove(e,n)}},{key:"updateNotchVisibility",value:function t(){var e=this._displayEditorInterface()?"visible":"hidden";this.el_notch_origin.style("visibility",e),this.el_notch_radius_x.style("visibility",e),this.el_notch_radius_y.style("visibility",e)}},{key:"update",value:function t(){_g(cg(l.prototype),"update",this).call(this);var e=EL(),n=e*this.state.radius_x,r=e*this.state.radius_y,e=this.settings.stroke_color;this.el_box.style("opacity",1).attr("stroke",e).attr("stroke-opacity",this.settings.stroke_opacity).attr("stroke-width",this.settings.stroke_width).attr("fill",this.settings.subject_fill).attr("fill-opacity",this.settings.subject_fill_opacity).attr("x",-n).attr("y",-r).attr("width",2*n).attr("height",2*r).interrupt(),this.el_notch_origin.attr("stroke",e),this.el_notch_radius_x.attr("stroke",e).attr("cx",n),this.el_notch_radius_y.attr("stroke",e).attr("cy",r),this.updateNotchVisibility(),this.updatePath()}},{key:"updatePath",value:function t(){var e=EL(),n=e*this.state.radius_x,r=e*this.state.radius_y,i=5,o=this.state.content_offset[0]*e,a=this.state.content_offset[1]*e,s,e,s;this.shouldUpdatePath()&&(s=this.el_content_fg.node().getBoundingClientRect(),e=[-n-5,-r-5],s=[o,a,Math.max(s.width,1),Math.max(s.height,1)],_g(cg(l.prototype),"updatePath",this).call(this,e,s,{radius_x:n,radius_y:r,radius_pad:5}))}},{key:"getPopupPosition",value:function t(e){var n=this.state.radius_x*EL(),r=this.state.radius_y*EL();switch(e){case"left":return[-n,0];case"right":return[+n,0];case"top":return[0,-r];case"bottom":return[0,+r];default:return[0,0]}}},{key:"destroy",value:function t(){var e=this.element,n=this.state,r=n.radius_x,n=n.radius_y;_g(cg(l.prototype),"destroy",this).call(this,{stayInDOM:!0}),this.el_box.transition().attr("width",r*EL()+10).attr("height",n*EL()+10),this.el_content.remove(),this.group.transition().style("opacity",0).on("end",function(){return my(e).remove()})}}]),l}(RL)},WL=document.createElement("img");function $L(o,t,i,a){var s=[],r=my(t).insert("div",":first-child").classed("fl-annotation-list-wrap",!0),l=r.append("ul").classed("fl-annotation-list",!0),c=null,u=0,e=!1,n=-1,d=-1,f=a();return r.node().addEventListener("scroll",M,{passive:!0}),l.on("mouseleave",function(){u=0}),o.on("change",h),h;function h(){s.length=0,f=a();for(var t=0;t<f.length;t++){var e=i[f[t]];e&&s.push(e)}var n=l.selectAll("li").data(s,m).join(b).classed("selected",x).on("click",w).on("dragstart",p).on("dragenter",g).on("dragleave",_).on("dragend",y).attr("draggable",!0).attr("data-index",function(t,e){return e}),r=[];n.each(function(t,e){return r.push(e)}),n.select(".text").text(v),M()}function p(){var t=XE(ry.target,function(t){return t.hasAttribute&&t.hasAttribute("data-index")});n=parseInt(t.getAttribute("data-index"),10),ry.dataTransfer&&ry.dataTransfer.setDragImage(WL,0,0),l.classed("dragging",!0),d=-1}function g(){ry.target.classList.add("dropping"),e=ry.target.hasAttribute("data-above");var t=XE(ry.target,function(t){return t.hasAttribute&&t.hasAttribute("data-index")});d=parseInt(t.getAttribute("data-index"),10)}function _(){ry.target.classList.remove("dropping")}function y(){l.classed("dragging",!1),l.select(".dropping").classed("dropping",!1),-1!==n&&-1!==d&&n!==d&&(d=e?(d-=+(n<d),Math.max(0,d)):(d-=+(n<d),Math.min(d+1,f.length-1)),f.splice(d,0,f.splice(n,1)[0]),o.update())}function m(t){return t.id}function v(t){return t.contents||"(empty annotation)"}function b(t){var e=t.append("li");e.append("span").classed("text",!0),e.append("span").attr("class","icon-pencil icon"),e.append("span").attr("class","icon-clone icon").attr("data-action","clone"),e.append("span").attr("class","icon-trash icon").attr("data-action","delete");var t=e.append("div").classed("drop-overlay",!0).attr("draggable",!0);return t.append("div").classed("drop-above",!0).attr("data-above",!0),t.append("div").classed("drop-below",!0).attr("data-below",!0),e}function x(t){return RL.getByID(t.id).selected}function w(t){var e=ry.target.getAttribute("data-action")||"edit",n,r,i,e,i;c!==this&&(u=0,c=this),"delete"===e?(RL.getByID(t.id).destroy(),delete o.state.annotations[t.id],o.update(),o.emit("change",o.state.annotations)):"clone"===e?(n=JSON.parse(JSON.stringify(o.state.annotations[t.id])),r=AS(),i=16*++u,e=o.getPositionFromData(n.position),i=o.getDataFromCursor({target:null,offsetX:e[0]+i,offsetY:e[1]+i},[e[0]+i,e[1]+i]),n.id=r,i&&(n.position=i),o.state.annotations[r]=n,o.state.annotation_order.push(r),o.update(),o.emit("create",o.state.annotations[r]),o.emit("change",o.state.annotations),o.select(r)):o.select(t.id)}function M(){var t=l.node().getBoundingClientRect(),e=r.node().getBoundingClientRect(),n,t=r.node().scrollTop+e.height>=t.height;r.classed("scroll-end",t)}}WL.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";var XL={dropdown:function t(e,n){for(var r=0;r<n.choices.length;r++){var i=n.choices[r][0],o=n.choices[r][1],a,s,l;"buttons"==n.style?(e.classed("buttons-container",!0),e.append("input").attr("type","radio").attr("name",n.property).attr("id","".concat(n.property,"-").concat(r)).attr("value",o).on("change",function(){e.node().value=ry.target.value}),a=e.append("label").attr("for","".concat(n.property,"-").concat(r)),s=i.match(/fa-(\S*)/g),l=i.match(/^data:image\/(svg|svg\+xml|png|jpg)(?:;base64)?,.+$/),s?a.append("i").attr("class","fa "+s[0]):l?a.append("img").attr("src",i):a.text(i)):e.append("option").attr("value",o).text(i)}},color:function t(e,n,r){var i=my(e.node().parentNode).append("div").classed("color-picker",!0),o,a;null!=r&&(o='<svg><path stroke="#252525" stroke-width="2" fill="none" fill-rule="evenodd" stroke-linecap="square" d="M1.45012627,1.45012627 L6.39987373,6.39987373 M1.45012627,6.39987373 L6.39987373,1.44987373" transform="translate(3.925000, 3.924874) rotate(-270.000000) translate(-3.925000, -3.924874) "></path></svg>',i.append("button").classed("cancel-setting",!0).html(o).on("click",function(){my(this.parentNode).classed("is-null",!0),r()})),i.append("div",function(){return e.node()}).classed("color-wrapper",!0).append(function(){return e.node()}).attr("type","color").on("change",function(){e.node().value=this.value,my(this.parentNode.parentNode).classed("is-null",!1)}).on("focus",function(){my(this.parentNode.parentNode).classed("active",!0)}).on("blur",function(){my(this.parentNode.parentNode).classed("active",!1)})},number:function t(e,n){e.attr("type","number"),null!=n.min&&e.attr("min",n.min),null!=n.max&&e.attr("max",n.max),n.step&&e.attr("step",n.step)},boolean:function t(e,n){e.attr("type","checkbox"),my(e.node().parentNode).append("label").classed("slide",!0).attr("for","setting-"+n.property)},code:function t(e){e.attr("type","text"),e.attr("wrap","off"),e.on("keydown.tab",function(t){var t;9===t.keyCode&&(t.altKey||t.metaKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),t=this.selectionStart,this.value=this.value.substring(0,t)+"\t"+this.value.substring(this.selectionEnd),this.selectionEnd=t+1))})}};function JL(t,s,d){s=KL(s);var f=null,h={},p={},e=null,n=null,g="{}",_=s.reduce(function(t,e){return t[e.property]=e,t},{}),r=my(t).append("div").classed("fl-project-editor",!0),l=r.append("div").classed("side-panel",!0).append("div").classed("side-panel-inner",!0);function a(){if(f){for(var t in p)"color"===p[t].type&&my(p[t].parentNode.parentNode).classed("is-null")?f[t]=null:f[t]=p[t].value;y()}}return c(),l.node().addEventListener("change",a,!1),l.node().addEventListener("keyup",a,!1),l.node().addEventListener("paste",a,!1),{container:l.node(),root:r.node(),update:c,render:y,setActive:i,setVisible:o};function i(t){e!==(t=!!t)&&(e=t,r.classed("active-annotation",e))}function o(t){var t;n!==(t=!!t)&&(n=t,r.style("display",n?"block":"none"),(t=window.document.createEvent("UIEvents")).initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t))}function c(){p={},h={},l.html("");var t=l.append("div").attr("class","fl-annotation-settings");t.append("p").attr("class","empty-annotation-message").text("Select an annotation or create a new annotation by clicking anywhere in the visualisation");for(var e=null,n=null,r=0,i=0;i<s.length;i++){var o=s[i],a,a;"string"!=typeof o?("object"!==ig(o)||e||n||(r++,n=t.append("div").classed("toplevel-settings-block",!0)),"hidden"!==o.type&&(a=e||n,o.new_section&&(a.append("div").classed("settings-divider",!0),"string"==typeof o.new_section&&a.append("h3").classed("settings-subhead",!0).text(o.new_section)),a=m(a.append("div"),o),p[o.property]=a,h[o.property]=XE(a,function(t){return t.classList.contains("settings-option")}))):(n=null,(e=t.append("div").classed("settings-block",!0).classed("open",r<1)).append("h2").classed("no-select",!0).attr("tabindex","0").text(o).on("click",u).on("keyup",function(){13===ry.keyCode&&u.call(this)}),"State documentation"===o&&e.style("display","none"),r++)}}function u(){this.parentNode.classList.toggle("open")}function y(t){if(t!==f||JSON.stringify(f)!==g){for(var e in t&&(f=t),g=JSON.stringify(f),p){var n=p[e],r=_[e];if("buttons"==r.style&&f[e])for(var i=n.querySelectorAll("input[type=radio]"),o=n.querySelectorAll("label[for]"),a=r.choices,s=0;s<i.length;s++){var l=i[s],c=o[s],u=l.value==f[e];l.checked=u,a[s][2]&&(a[s][2](f)?c.style.display=null:c.style.display="none")}n.value=f[e],r.optional&&"color"===r.type&&(null===f[e]?n.parentNode.parentNode.classList.add("is-null"):n.parentNode.parentNode.classList.remove("is-null")),r.show_if&&(r.show_if(f)?h[e].classList.remove("hidden"):h[e].classList.add("hidden"))}d()}}function m(t,e){var n=e.choices&&("buttons"===e.style||"boolean"===e.type),r="color"===e.type&&!!e.optional;t.classed("settings-option",!0).classed("option-type-"+e.type,!0).classed("settings-buttons",n);var i=t.append("label").attr("for","setting-"+e.property).classed("hidden",null===e.name).append("h3").text(e.name).classed("no-select",!0);e.description&&i.append("i").attr("class","fl-annotations-desc help-tip").style("font-family","FontAwesome, 'Font Awesome 5 Free'").attr("data-popup-body",e.description.replace(/\[\[/g,"").replace(/\]\]/g,"")).attr("data-popup-position","top"),e.width&&t.classed("width-"+e.width.replace(/ /g,"-"),!0);var i="input",o;e.choices?i=n?"div":"select":"text"!==e.type&&"code"!==e.type||(i="textarea"),"code"===e.type&&(o=!1,t.append("i").attr("class","popup fa fa-reply clickable wrap-control").attr("data-popup-body","Wrap/unwrap text").attr("data-popup-position","top").on("click",function(){o=!o,my(this.parentNode).select("textarea").attr("wrap",o?null:"off"),my(this).classed("selected",o)}));var t=t.append(i).attr("id","setting-"+e.property).attr("name",e.property),i=e.choices?XL.dropdown:XL[e.type];return i?r?i(t,e,a):i(t,e):t.attr("type","text"),e.placeholder&&t.attr("placeholder",e.placeholder),e.size&&t.classed("size-"+e.size),t.node()}}function KL(t){return t.forEach(function(t){var n;function e(t){for(var e in n)if(Array.isArray(n[e])){if(-1===n[e].indexOf(t[e]))return!1}else if(n[e]!=t[e])return!1;return!0}t.show_if&&"function"!=typeof t.show_if&&(n=t.show_if,t.show_if=e)}),t}var tD="{{html}}",eD={},nD;function rD(){(nD=iT(document.body,eD,tD)).addColumnNames({html:""})}var iD=!window.Flourish||("sdk"===window.Flourish.environment||"story_editor"===window.Flourish.environment),oD=function(){function e(t){og(this,e),this.mode="DEFAULT",this.pos=[0,0],this.flag_editing=!1,this.flag_inside_settings_panel=!1,this.flag_inside_add_button=!1,this.flag_over_annotation_node=!1,this.flag_can_place=!1,this.body=my(document.body),this.cursor_outline=aD(t).classed("inner-outline",!0),this.cursor_element=aD(t)}return sg(e,[{key:"update",value:function t(){var e=this.getMode(),n=this.mode;this.mode=e;var r="CUSTOM_ADD"===this.mode,i="CUSTOM_DISABLED"===this.mode,i=r||i;i&&(this.cursor_outline.style("transform","translate(".concat(this.pos[0],"px, ").concat(this.pos[1],"px)")),this.cursor_element.style("transform","translate(".concat(this.pos[0],"px, ").concat(this.pos[1],"px)"))),e!==n&&(this.cursor_element.classed("is-valid",r),this.cursor_outline.classed("is-valid",r),this.body.classed("fl-cursor-custom",i),this.body.classed("fl-cursor-pointer","POINTER"===this.mode),this.body.classed("fl-cursor-default","DEFAULT"===this.mode))}},{key:"getMode",value:function t(){return!this.flag_inside_settings_panel&&!this.flag_inside_add_button&&this.flag_editing?this.flag_over_annotation_node?"POINTER":this.flag_can_place?"CUSTOM_ADD":"CUSTOM_DISABLED":"DEFAULT"}}]),e}();function aD(t){var t=my(t).append("g").classed("fl-annotations-cursor",!0);return t.append("circle").attr("r",16),t.append("line").attr("x1",-6).attr("x2",6),t.append("line").attr("y1",-6).attr("y2",6),t}var sD,lD,cD,uD,dD,fD,hD,pD,gD,_D,yD,mD,vD,bD,yn=[{property:"text_weight",type:"string",name:"Weight",width:"quarter",style:"buttons",choices:[["data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iN3B4IiBoZWlnaHQ9IjMwcHgiIHZpZXdCb3g9IjAgMCA3IDMwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA2My4xICg5MjQ1MikgLSBodHRwczovL3NrZXRjaC5jb20gLS0+CiAgICA8dGl0bGU+bm9ybWFsPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9Im5vcm1hbCIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTEuMTA1OTQ3OTYsMTkgTDEuOTI1NjUwNTYsMTYuNTYwOTc1NiBMNS4wMzUzMTU5OSwxNi41NjA5NzU2IEw1Ljg0MjAwNzQzLDE5IEw3LDE5IEw0LjExMTUyNDE2LDExIEwyLjg4ODQ3NTg0LDExIEwwLDE5IEwxLjEwNTk0Nzk2LDE5IFogTTQuNzYyMDgxNzgsMTUuNzQzOTAyNCBMMi4xOTg4ODQ3NiwxNS43NDM5MDI0IEwyLjYwMjIzMDQ4LDE0LjUyNDM5MDIgQzIuNzU4MzY0MzEsMTQuMDc3MjM1OCAyLjkwNTgyNDA0LDEzLjYzMjExMzggMy4wNDQ2MDk2NywxMy4xODkwMjQ0IEMzLjE4MzM5NTI5LDEyLjc0NTkzNSAzLjMxNzg0Mzg3LDEyLjI5MjY4MjkgMy40NDc5NTUzOSwxMS44MjkyNjgzIEwzLjQ0Nzk1NTM5LDExLjgyOTI2ODMgTDMuNSwxMS44MjkyNjgzIEMzLjYzODc4NTYzLDEyLjI5MjY4MjkgMy43Nzc1NzEyNSwxMi43NDU5MzUgMy45MTYzNTY4OCwxMy4xODkwMjQ0IEM0LjA1NTE0MjUsMTMuNjMyMTEzOCA0LjIwMjYwMjIzLDE0LjA3NzIzNTggNC4zNTg3MzYwNiwxNC41MjQzOTAyIEw0LjM1ODczNjA2LDE0LjUyNDM5MDIgTDQuNzYyMDgxNzgsMTUuNzQzOTAyNCBaIiBpZD0iQSIgZmlsbD0iIzMzMzMzMyIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==","normal"],["data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iOHB4IiBoZWlnaHQ9IjMwcHgiIHZpZXdCb3g9IjAgMCA4IDMwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA2My4xICg5MjQ1MikgLSBodHRwczovL3NrZXRjaC5jb20gLS0+CiAgICA8dGl0bGU+Ym9sZDwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJib2xkIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMi4zMzExMjU4MywxOSBMMi43NTQ5NjY4OSwxNy4wODkyMzA4IEw1LjE2NTU2MjkxLDE3LjA4OTIzMDggTDUuNTg5NDAzOTcsMTkgTDgsMTkgTDUuMzc3NDgzNDQsMTAgTDIuNjIyNTE2NTYsMTAgTDAsMTkgTDIuMzMxMTI1ODMsMTkgWiBNNC43NTQ5NjY4OSwxNS4yNDc2OTIzIEwzLjE2NTU2MjkxLDE1LjI0NzY5MjMgTDMuMzExMjU4MjgsMTQuNjI0NjE1NCBDMy40MTcyMTg1NCwxNC4xOTA3NjkyIDMuNTIwOTcxMywxMy43MjIzMDc3IDMuNjIyNTE2NTYsMTMuMjE5MjMwOCBDMy43MjQwNjE4MSwxMi43MTYxNTM4IDMuODIzMzk5NTYsMTIuMjMzODQ2MiAzLjkyMDUyOTgsMTEuNzcyMzA3NyBMMy45MjA1Mjk4LDExLjc3MjMwNzcgTDMuOTczNTA5OTMsMTEuNzcyMzA3NyBDNC4wNzk0NzAyLDEyLjIyNDYxNTQgNC4xODU0MzA0NiwxMi43MDQ2MTU0IDQuMjkxMzkwNzMsMTMuMjEyMzA3NyBDNC4zOTczNTA5OSwxMy43MiA0LjUwMzMxMTI2LDE0LjE5MDc2OTIgNC42MDkyNzE1MiwxNC42MjQ2MTU0IEw0LjYwOTI3MTUyLDE0LjYyNDYxNTQgTDQuNzU0OTY2ODksMTUuMjQ3NjkyMyBaIiBpZD0iQSIgZmlsbD0iIzMzMzMzMyIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==","bold"]]},{property:"text_size",type:"number",name:"Text size",width:"quarter",step:.1},{property:"label_width",step:1,min:2,max:20,type:"number",name:"Max text width",show_if:{connector_type:["none","polyline","step","direct"]}},{property:"line_marker",type:"string",width:"half",name:"Line marker",style:"buttons",show_if:{connector_type:["polyline","step","direct"]},choices:[["None","none"],["data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIzMHB4IiB2aWV3Qm94PSIwIDAgMTIgMzAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDYzLjEgKDkyNDUyKSAtIGh0dHBzOi8vc2tldGNoLmNvbSAtLT4KICAgIDx0aXRsZT5jaXJjbGUgY29weSAzPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9ImNpcmNsZS1jb3B5LTMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNS4wMDAwMDAsIDEzLjAwMDAwMCkgcm90YXRlKC00NS4wMDAwMDApIHRyYW5zbGF0ZSgtNS4wMDAwMDAsIC0xMy4wMDAwMDApIHRyYW5zbGF0ZSgxLjAwMDAwMCwgNi4wMDAwMDApIj4KICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlRyaWFuZ2xlIiBmaWxsPSIjMzMzMzMzIiBwb2ludHM9IjQgMCA4IDggMCA4Ij48L3BvbHlnb24+CiAgICAgICAgICAgIDxsaW5lIHgxPSI0IiB5MT0iOCIgeDI9IjQiIHkyPSIxNCIgaWQ9IlBhdGgtMiIgc3Ryb2tlPSIjMzMzMzMzIiBvcGFjaXR5PSIwLjIwMDAwMDAwMyIgc3Ryb2tlLWxpbmVjYXA9InNxdWFyZSI+PC9saW5lPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+","arrowhead"]]},{property:"connector_extend_line",type:"string",width:"half",name:"Extend line",style:"buttons",show_if:{connector_type:["polyline","step"]},choices:[["Enable","enabled"],["Disable","disabled"]]},{property:"stroke_width",step:.25,min:0,max:4,type:"number",width:"half",name:"Stroke width",show_if:function t(e){return wD(e)||"point"!==e.subject_type&&"none"!==e.subject_type}},{property:"text_line_height",name:"Line height",type:"number",width:"half",step:.05,min:.5,max:3},{property:"popup_position",type:"string",width:"three quarters",name:"Popup position",show_if:{connector_type:"popup"},choices:[["Center","center"],["Left","left"],["Right","right"],["Top","top"],["Bottom","bottom"]]},{new_section:"Colors",property:"text_color",type:"color",name:"Text",width:"quarter"},{property:"text_bg",type:"color",name:"Text Outline",width:"quarter",show_if:{connector_type:["none","polyline","step","direct"]},optional:!0},{property:"point_text_color",type:"color",name:"Label",width:"quarter",show_if:{subject_type:"point"}},{property:"popup_bg",type:"color",width:"quarter",name:"Popup",show_if:{connector_type:"popup"}},{property:"stroke_color",type:"color",name:"Stroke",width:"quarter",show_if:function t(e){return wD(e)||"point"!==e.subject_type&&"none"!==e.subject_type}},{property:"subject_fill",type:"color",name:"Fill",width:"quarter",show_if:{subject_type:["point","circle","box"]}},{property:"subject_fill_opacity",step:.01,min:0,max:1,type:"number",width:"quarter",name:"Fill opacity",show_if:{subject_type:["circle","box"]}}],xD=[{property:"contents",type:"text",name:"Annotation text"},{property:"device_visibility",type:"text",name:"Show",description:"Choose between Always, Desktop, Mobile or Popup on mobile",style:"buttons",choices:[["Always","all"],["data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTlweCIgaGVpZ2h0PSIzMHB4IiB2aWV3Qm94PSIwIDAgMTkgMzAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDYzLjEgKDkyNDUyKSAtIGh0dHBzOi8vc2tldGNoLmNvbSAtLT4KICAgIDx0aXRsZT5BcnRib2FyZDwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJBcnRib2FyZCIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTEyLjAzMzMzMzMsMjMgQzEyLjIwNDg2MTEsMjMgMTIuMzUzMjk4NiwyMi45MzUyOTY1IDEyLjQ3ODY0NTgsMjIuODA1ODg5NCBDMTIuNjAzOTkzMSwyMi42NzY0ODI0IDEyLjY2NjY2NjcsMjIuNTIzMjM3MiAxMi42NjY2NjY3LDIyLjM0NjE1MzggQzEyLjY2NjY2NjcsMjIuMjU3NjEyMiAxMi42MTM4ODg5LDIyLjEwOTQ3NTIgMTIuNTA4MzMzMywyMS45MDE3NDI4IEMxMi40MDI3Nzc4LDIxLjY5NDAxMDQgMTIuMjk3MjIyMiwyMS40NTIyMjM2IDEyLjE5MTY2NjcsMjEuMTc2MzgyMiBDMTIuMDg2MTExMSwyMC45MDA1NDA5IDEyLjAzMzMzMzMsMjAuNjM2NjE4NiAxMi4wMzMzMzMzLDIwLjM4NDYxNTQgTDEyLjAzMzMzMzMsMjAuMzg0NjE1NCBMMTcuNDE2NjY2NywyMC4zODQ2MTU0IEMxNy44NTIwODMzLDIwLjM4NDYxNTQgMTguMjI0ODI2NCwyMC4yMjQ1NTkzIDE4LjUzNDg5NTgsMTkuOTA0NDQ3MSBDMTguODQ0OTY1MywxOS41ODQzMzQ5IDE5LDE5LjE5OTUxOTIgMTksMTguNzUgTDE5LDE4Ljc1IEwxOSw3LjYzNDYxNTM4IEMxOSw3LjE4NTA5NjE1IDE4Ljg0NDk2NTMsNi44MDAyODA0NSAxOC41MzQ4OTU4LDYuNDgwMTY4MjcgQzE4LjIyNDgyNjQsNi4xNjAwNTYwOSAxNy44NTIwODMzLDYgMTcuNDE2NjY2Nyw2IEwxNy40MTY2NjY3LDYgTDEuNTgzMzMzMzMsNiBDMS4xNDc5MTY2Nyw2IDAuNzc1MTczNjExLDYuMTYwMDU2MDkgMC40NjUxMDQxNjcsNi40ODAxNjgyNyBDMC4xNTUwMzQ3MjIsNi44MDAyODA0NSAwLDcuMTg1MDk2MTUgMCw3LjYzNDYxNTM4IEwwLDcuNjM0NjE1MzggTDAsMTguNzUgQzAsMTkuMTk5NTE5MiAwLjE1NTAzNDcyMiwxOS41ODQzMzQ5IDAuNDY1MTA0MTY3LDE5LjkwNDQ0NzEgQzAuNzc1MTczNjExLDIwLjIyNDU1OTMgMS4xNDc5MTY2NywyMC4zODQ2MTU0IDEuNTgzMzMzMzMsMjAuMzg0NjE1NCBMMS41ODMzMzMzMywyMC4zODQ2MTU0IEw2Ljk2NjY2NjY3LDIwLjM4NDYxNTQgQzYuOTY2NjY2NjcsMjAuNjQzNDI5NSA2LjkxMzg4ODg5LDIwLjkwOTA1NDUgNi44MDgzMzMzMywyMS4xODE0OTA0IEM2LjcwMjc3Nzc4LDIxLjQ1MzkyNjMgNi41OTcyMjIyMiwyMS42OTIzMDc3IDYuNDkxNjY2NjcsMjEuODk2NjM0NiBDNi4zODYxMTExMSwyMi4xMDA5NjE1IDYuMzMzMzMzMzMsMjIuMjUwODAxMyA2LjMzMzMzMzMzLDIyLjM0NjE1MzggQzYuMzMzMzMzMzMsMjIuNTIzMjM3MiA2LjM5NjAwNjk0LDIyLjY3NjQ4MjQgNi41MjEzNTQxNywyMi44MDU4ODk0IEM2LjY0NjcwMTM5LDIyLjkzNTI5NjUgNi43OTUxMzg4OSwyMyA2Ljk2NjY2NjY3LDIzIEw2Ljk2NjY2NjY3LDIzIEwxMi4wMzMzMzMzLDIzIFogTTE3LjQxNjY2NjcsMTYuNDYxNTM4NSBMMS41ODMzMzMzMywxNi40NjE1Mzg1IEMxLjQ5NzU2OTQ0LDE2LjQ2MTUzODUgMS40MjMzNTA2OSwxNi40MjkxODY3IDEuMzYwNjc3MDgsMTYuMzY0NDgzMiBDMS4yOTgwMDM0NywxNi4yOTk3Nzk2IDEuMjY2NjY2NjcsMTYuMjIzMTU3MSAxLjI2NjY2NjY3LDE2LjEzNDYxNTQgTDEuMjY2NjY2NjcsMTYuMTM0NjE1NCBMMS4yNjY2NjY2Nyw3LjYzNDYxNTM4IEMxLjI2NjY2NjY3LDcuNTQ2MDczNzIgMS4yOTgwMDM0Nyw3LjQ2OTQ1MTEyIDEuMzYwNjc3MDgsNy40MDQ3NDc2IEMxLjQyMzM1MDY5LDcuMzQwMDQ0MDcgMS40OTc1Njk0NCw3LjMwNzY5MjMxIDEuNTgzMzMzMzMsNy4zMDc2OTIzMSBMMS41ODMzMzMzMyw3LjMwNzY5MjMxIEwxNy40MTY2NjY3LDcuMzA3NjkyMzEgQzE3LjUwMjQzMDYsNy4zMDc2OTIzMSAxNy41NzY2NDkzLDcuMzQwMDQ0MDcgMTcuNjM5MzIyOSw3LjQwNDc0NzYgQzE3LjcwMTk5NjUsNy40Njk0NTExMiAxNy43MzMzMzMzLDcuNTQ2MDczNzIgMTcuNzMzMzMzMyw3LjYzNDYxNTM4IEwxNy43MzMzMzMzLDcuNjM0NjE1MzggTDE3LjczMzMzMzMsMTYuMTM0NjE1NCBDMTcuNzMzMzMzMywxNi4yMjMxNTcxIDE3LjcwMTk5NjUsMTYuMjk5Nzc5NiAxNy42MzkzMjI5LDE2LjM2NDQ4MzIgQzE3LjU3NjY0OTMsMTYuNDI5MTg2NyAxNy41MDI0MzA2LDE2LjQ2MTUzODUgMTcuNDE2NjY2NywxNi40NjE1Mzg1IEwxNy40MTY2NjY3LDE2LjQ2MTUzODUgWiIgaWQ9Iu+EiCIgZmlsbD0iIzMzMzMzMyIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==","desktop"],["data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iOHB4IiBoZWlnaHQ9IjMwcHgiIHZpZXdCb3g9IjAgMCA4IDMwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA2My4xICg5MjQ1MikgLSBodHRwczovL3NrZXRjaC5jb20gLS0+CiAgICA8dGl0bGU+QXJ0Ym9hcmQgQ29weTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJBcnRib2FyZC1Db3B5IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNNi42NjY2NjY2NywyMSBDNy4wMjc3Nzc3OCwyMSA3LjM0MDI3Nzc4LDIwLjg3MTM1NDIgNy42MDQxNjY2NywyMC42MTQwNjI1IEM3Ljg2ODA1NTU2LDIwLjM1Njc3MDggOCwyMC4wNTIwODMzIDgsMTkuNyBMOCwxOS43IEw4LDkuMyBDOCw4Ljk0NzkxNjY3IDcuODY4MDU1NTYsOC42NDMyMjkxNyA3LjYwNDE2NjY3LDguMzg1OTM3NSBDNy4zNDAyNzc3OCw4LjEyODY0NTgzIDcuMDI3Nzc3NzgsOCA2LjY2NjY2NjY3LDggTDYuNjY2NjY2NjcsOCBMMS4zMzMzMzMzMyw4IEMwLjk3MjIyMjIyMiw4IDAuNjU5NzIyMjIyLDguMTI4NjQ1ODMgMC4zOTU4MzMzMzMsOC4zODU5Mzc1IEMwLjEzMTk0NDQ0NCw4LjY0MzIyOTE3IDAsOC45NDc5MTY2NyAwLDkuMyBMMCw5LjMgTDAsMTkuNyBDMCwyMC4wNTIwODMzIDAuMTMxOTQ0NDQ0LDIwLjM1Njc3MDggMC4zOTU4MzMzMzMsMjAuNjE0MDYyNSBDMC42NTk3MjIyMjIsMjAuODcxMzU0MiAwLjk3MjIyMjIyMiwyMSAxLjMzMzMzMzMzLDIxIEwxLjMzMzMzMzMzLDIxIEw2LjY2NjY2NjY3LDIxIFogTTQuODMzMzMzMzMsOS42MjUgTDMuMTY2NjY2NjcsOS42MjUgQzMuMDU1NTU1NTYsOS42MjUgMyw5LjU3MDgzMzMzIDMsOS40NjI1IEMzLDkuMzU0MTY2NjcgMy4wNTU1NTU1Niw5LjMgMy4xNjY2NjY2Nyw5LjMgTDMuMTY2NjY2NjcsOS4zIEw0LjgzMzMzMzMzLDkuMyBDNC45NDQ0NDQ0NCw5LjMgNSw5LjM1NDE2NjY3IDUsOS40NjI1IEM1LDkuNTcwODMzMzMgNC45NDQ0NDQ0NCw5LjYyNSA0LjgzMzMzMzMzLDkuNjI1IEw0LjgzMzMzMzMzLDkuNjI1IFogTTYuNjY2NjY2NjcsMTguNCBMMS4zMzMzMzMzMywxOC40IEMxLjI0MzA1NTU2LDE4LjQgMS4xNjQ5MzA1NiwxOC4zNjc4Mzg1IDEuMDk4OTU4MzMsMTguMzAzNTE1NiBDMS4wMzI5ODYxMSwxOC4yMzkxOTI3IDEsMTguMTYzMDIwOCAxLDE4LjA3NSBMMSwxOC4wNzUgTDEsMTAuOTI1IEMxLDEwLjgzNjk3OTIgMS4wMzI5ODYxMSwxMC43NjA4MDczIDEuMDk4OTU4MzMsMTAuNjk2NDg0NCBDMS4xNjQ5MzA1NiwxMC42MzIxNjE1IDEuMjQzMDU1NTYsMTAuNiAxLjMzMzMzMzMzLDEwLjYgTDEuMzMzMzMzMzMsMTAuNiBMNi42NjY2NjY2NywxMC42IEM2Ljc1Njk0NDQ0LDEwLjYgNi44MzUwNjk0NCwxMC42MzIxNjE1IDYuOTAxMDQxNjcsMTAuNjk2NDg0NCBDNi45NjcwMTM4OSwxMC43NjA4MDczIDcsMTAuODM2OTc5MiA3LDEwLjkyNSBMNywxMC45MjUgTDcsMTguMDc1IEM3LDE4LjE2MzAyMDggNi45NjcwMTM4OSwxOC4yMzkxOTI3IDYuOTAxMDQxNjcsMTguMzAzNTE1NiBDNi44MzUwNjk0NCwxOC4zNjc4Mzg1IDYuNzU2OTQ0NDQsMTguNCA2LjY2NjY2NjY3LDE4LjQgTDYuNjY2NjY2NjcsMTguNCBaIE00LDIwLjUxMjUgQzMuNzcwODMzMzMsMjAuNTEyNSAzLjU3NDY1Mjc4LDIwLjQzMjk0MjcgMy40MTE0NTgzMywyMC4yNzM4MjgxIEMzLjI0ODI2Mzg5LDIwLjExNDcxMzUgMy4xNjY2NjY2NywxOS45MjM0Mzc1IDMuMTY2NjY2NjcsMTkuNyBDMy4xNjY2NjY2NywxOS40NzY1NjI1IDMuMjQ4MjYzODksMTkuMjg1Mjg2NSAzLjQxMTQ1ODMzLDE5LjEyNjE3MTkgQzMuNTc0NjUyNzgsMTguOTY3MDU3MyAzLjc3MDgzMzMzLDE4Ljg4NzUgNCwxOC44ODc1IEM0LjIyOTE2NjY3LDE4Ljg4NzUgNC40MjUzNDcyMiwxOC45NjcwNTczIDQuNTg4NTQxNjcsMTkuMTI2MTcxOSBDNC43NTE3MzYxMSwxOS4yODUyODY1IDQuODMzMzMzMzMsMTkuNDc2NTYyNSA0LjgzMzMzMzMzLDE5LjcgQzQuODMzMzMzMzMsMTkuOTIzNDM3NSA0Ljc1LDIwLjExNjQwNjIgNC41ODMzMzMzMywyMC4yNzg5MDYyIEM0LjQyMzYxMTExLDIwLjQzNDYzNTQgNC4yMjkxNjY2NywyMC41MTI1IDQsMjAuNTEyNSBaIiBpZD0i74SLIiBmaWxsPSIjMzMzMzMzIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+","mobile"],["data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTBweCIgaGVpZ2h0PSIzMHB4IiB2aWV3Qm94PSIwIDAgMTAgMzAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDYzLjEgKDkyNDUyKSAtIGh0dHBzOi8vc2tldGNoLmNvbSAtLT4KICAgIDx0aXRsZT5BcnRib2FyZCBDb3B5IDI8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iQXJ0Ym9hcmQtQ29weS0yIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMS4wMDAxODYwMSw4IEwxLDEwLjg4NSBMMSwxMC44OTQwMDI5IEwxLDE4LjA2NjAwMDggTDEuMDA2MTg0OSwxOC4xMjk5OTEgQzEuMDE4NTU0NjksMTguMTkxNzUyNyAxLjA0OTQ3OTE3LDE4LjI0NjgyODkgMS4wOTg5NTgzMywxOC4yOTUyMTk1IEMxLjE2NDkzMDU2LDE4LjM1OTc0MDMgMS4yNDMwNTU1NiwxOC4zOTIwMDA3IDEuMzMzMzMzMzMsMTguMzkyMDAwNyBMMS4zMzMzMzMzMywxOC4zOTIwMDA3IEw2LjY2NjY2NjY3LDE4LjM5MjAwMDcgQzYuNzU2OTQ0NDQsMTguMzkyMDAwNyA2LjgzNTA2OTQ0LDE4LjM1OTc0MDMgNi45MDEwNDE2NywxOC4yOTUyMTk1IEM2Ljk2NzAxMzg5LDE4LjIzMDY5ODcgNywxOC4xNTQyOTI1IDcsMTguMDY2MDAwOCBMNywxOC4wNjYwMDA4IEw3LDEzLjY2OCBMNy41LDEzLjAxMjM3OTggTDgsMTMuMDEyIEw4LDE5LjY5NjAwMDQgTDcuOTkxOTIxNzcsMTkuODQ0NDQ2OCBDNy45NTk2MDg4NCwyMC4xMzU1MTgxIDcuODMwMzU3MTQsMjAuMzkxNjYwOSA3LjYwNDE2NjY3LDIwLjYxMjg3NTEgQzcuMzQwMjc3NzgsMjAuODcwOTU4NCA3LjAyNzc3Nzc4LDIxIDYuNjY2NjY2NjcsMjEgTDYuNjY2NjY2NjcsMjEgTDEuMzMzMzMzMzMsMjEgTDEuMTgxNTQ3NjIsMjAuOTkyMDk5NSBDMC44ODM5Mjg1NzEsMjAuOTYwNDk3NSAwLjYyMjAyMzgxLDIwLjgzNDA4OTMgMC4zOTU4MzMzMzMsMjAuNjEyODc1MSBDMC4xMzE5NDQ0NDQsMjAuMzU0NzkxOCAwLDIwLjA0OTE2NjkgMCwxOS42OTYwMDA0IEwwLDE5LjY5NjAwMDQgTDAsOS4yNjQwMDMzMSBMMC4wMDgwNzgyMzEyOSw5LjExNTU1NjkyIEMwLjA0MDM5MTE1NjUsOC44MjQ0ODU1OCAwLjE2OTY0Mjg1Nyw4LjU2ODM0Mjc5IDAuMzk1ODMzMzMzLDguMzQ3MTI4NTcgQzAuNTc0OTAwNzk0LDguMTcyMDAwNjQgMC43NzYzNTE2ODcsOC4wNTYyOTExMiAxLjAwMDE4NjAxLDggWiBNNCwxOC44ODEwMDA2IEMzLjc3MDgzMzMzLDE4Ljg4MTAwMDYgMy41NzQ2NTI3OCwxOC45NjA4MDI3IDMuNDExNDU4MzMsMTkuMTIwNDA2OCBDMy4yNDgyNjM4OSwxOS4yODAwMTA5IDMuMTY2NjY2NjcsMTkuNDcxODc1NCAzLjE2NjY2NjY3LDE5LjY5NjAwMDQgQzMuMTY2NjY2NjcsMTkuOTIwMTI1MyAzLjI0ODI2Mzg5LDIwLjExMTk4OTggMy40MTE0NTgzMywyMC4yNzE1OTQgQzMuNTc0NjUyNzgsMjAuNDMxMTk4MSAzLjc3MDgzMzMzLDIwLjUxMTAwMDEgNCwyMC41MTEwMDAxIEM0LjIyOTE2NjY3LDIwLjUxMTAwMDEgNC40MjM2MTExMSwyMC40MzI4OTYgNC41ODMzMzMzMywyMC4yNzY2ODc3IEM0Ljc1LDIwLjExMzY4NzggNC44MzMzMzMzMywxOS45MjAxMjUzIDQuODMzMzMzMzMsMTkuNjk2MDAwNCBDNC44MzMzMzMzMywxOS40NzE4NzU0IDQuNzUxNzM2MTEsMTkuMjgwMDEwOSA0LjU4ODU0MTY3LDE5LjEyMDQwNjggQzQuNDI1MzQ3MjIsMTguOTYwODAyNyA0LjIyOTE2NjY3LDE4Ljg4MTAwMDYgNCwxOC44ODEwMDA2IFoiIGlkPSJDb21iaW5lZC1TaGFwZSIgZmlsbD0iIzMzMzMzMyIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTMsNiBMOSw2IEM5LjU1MjI4NDc1LDYgMTAsNi40NDc3MTUyNSAxMCw3IEwxMCwxMS4wMzY4Nzk0IEMxMCwxMS41ODkxNjQyIDkuNTUyMjg0NzUsMTIuMDM2ODc5NCA5LDEyLjAzNjg3OTQgTDcuNSwxMi4wMzY4Nzk0IEw3LjUsMTIuMDM2ODc5NCBMNiwxNCBMNC41LDEyLjAzNjg3OTQgTDMsMTIuMDM2ODc5NCBDMi40NDc3MTUyNSwxMi4wMzY4Nzk0IDIsMTEuNTg5MTY0MiAyLDExLjAzNjg3OTQgTDIsNyBDMiw2LjQ0NzcxNTI1IDIuNDQ3NzE1MjUsNiAzLDYgWiIgaWQ9IlJlY3RhbmdsZSIgZmlsbD0iIzMzMzMzMyI+PC9wYXRoPgogICAgPC9nPgo8L3N2Zz4=","popup"]]},{property:"subject_type",type:"text",name:"Marker Type",style:"buttons",width:"full",choices:[["None","none"],["data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNnB4IiBoZWlnaHQ9IjMwcHgiIHZpZXdCb3g9IjAgMCA2IDMwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA2My4xICg5MjQ1MikgLSBodHRwczovL3NrZXRjaC5jb20gLS0+CiAgICA8dGl0bGU+cG9pbnQ8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0icG9pbnQiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwiIGZpbGw9IiMzMzMzMzMiIGN4PSIzIiBjeT0iMTUiIHI9IjMiPjwvY2lyY2xlPgogICAgPC9nPgo8L3N2Zz4=","point"],["data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTZweCIgaGVpZ2h0PSIzMHB4IiB2aWV3Qm94PSIwIDAgMTYgMzAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDYzLjEgKDkyNDUyKSAtIGh0dHBzOi8vc2tldGNoLmNvbSAtLT4KICAgIDx0aXRsZT5jaXJjbGU8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iY2lyY2xlIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLUNvcHkiIHN0cm9rZT0iIzMzMzMzMyIgY3g9IjgiIGN5PSIxNSIgcj0iNy41Ij48L2NpcmNsZT4KICAgIDwvZz4KPC9zdmc+","circle"],["data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTZweCIgaGVpZ2h0PSIzMHB4IiB2aWV3Qm94PSIwIDAgMTYgMzAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDYzLjEgKDkyNDUyKSAtIGh0dHBzOi8vc2tldGNoLmNvbSAtLT4KICAgIDx0aXRsZT5zcXVhcmU8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0ic3F1YXJlIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlIiBzdHJva2U9IiMzMzMzMzMiIHg9IjAuNSIgeT0iNy41IiB3aWR0aD0iMTUiIGhlaWdodD0iMTUiPjwvcmVjdD4KICAgIDwvZz4KPC9zdmc+","box"]]},{property:"connector_type",type:"text",width:"full",name:"Connector Type",style:"buttons",choices:[["None","none"],["data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzNweCIgaGVpZ2h0PSIzMHB4IiB2aWV3Qm94PSIwIDAgMzMgMzAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDYzLjEgKDkyNDUyKSAtIGh0dHBzOi8vc2tldGNoLmNvbSAtLT4KICAgIDx0aXRsZT5jaXJjbGUgY29weTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJjaXJjbGUtY29weSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlLWxpbmVjYXA9InNxdWFyZSI+CiAgICAgICAgPHBvbHlsaW5lIGlkPSJQYXRoLTIiIHN0cm9rZT0iIzMzMzMzMyIgc3Ryb2tlLXdpZHRoPSIyIiBwb2ludHM9IjUgOSAxMi4xNDIxODIxIDE2IDI4IDE2Ij48L3BvbHlsaW5lPgogICAgPC9nPgo8L3N2Zz4=","polyline"],['data:image/svg+xml,%3Csvg width="33px" height="30px" viewBox="0 0 33 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"%3E%3Cg id="circle-copy" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="square"%3E%3Cpolyline id="Path-2" stroke="%23333333" stroke-width="2" points="5 9 15 9 15 16 28 16"/%3E%3C/g%3E%3C/svg%3E',"step"],['data:image/svg+xml,%3Csvg width="33px" height="30px" viewBox="0 0 33 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"%3E%3Cg id="circle-copy" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="square"%3E%3Cpolyline id="Path-2" stroke="%23333333" stroke-width="2" points="5 9 28 16"/%3E%3C/g%3E%3C/svg%3E',"direct"],["data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzNweCIgaGVpZ2h0PSIzMHB4IiB2aWV3Qm94PSIwIDAgMzMgMzAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDYzLjEgKDkyNDUyKSAtIGh0dHBzOi8vc2tldGNoLmNvbSAtLT4KICAgIDx0aXRsZT5jaXJjbGUgY29weSAyPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9ImNpcmNsZS1jb3B5LTIiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGQ9Ik03LDUgTDI2LDUgQzI2LjU1MjI4NDcsNSAyNyw1LjQ0NzcxNTI1IDI3LDYgTDI3LDE4LjAzNjg3OTQgQzI3LDE4LjU4OTE2NDIgMjYuNTUyMjg0NywxOS4wMzY4Nzk0IDI2LDE5LjAzNjg3OTQgTDE5LjE4NzUsMTkuMDM2ODc5NCBMMTkuMTg3NSwxOS4wMzY4Nzk0IEwxNi41LDIyIEwxMy44MTI1LDE5LjAzNjg3OTQgTDcsMTkuMDM2ODc5NCBDNi40NDc3MTUyNSwxOS4wMzY4Nzk0IDYsMTguNTg5MTY0MiA2LDE4LjAzNjg3OTQgTDYsNiBDNiw1LjQ0NzcxNTI1IDYuNDQ3NzE1MjUsNSA3LDUgWiIgaWQ9IlJlY3RhbmdsZSIgZmlsbD0iIzMzMzMzMyI+PC9wYXRoPgogICAgPC9nPgo8L3N2Zz4=","popup",function(t){return"none"!==t.subject_type}]]},{property:"point_text",type:"quarter",width:"half",name:"Marker Label",show_if:{subject_type:"point"}},{property:"point_radius",type:"number",width:"half",name:"Marker Radius",step:.25,show_if:{subject_type:"point"}}].concat("Advanced").concat(yn);function wD(t){return"polyline"===t.connector_type||"step"===t.connector_type||"direct"===t.connector_type}var MD=function t(e){var n=this;og(this,t),this.tooltip=document.body.appendChild(document.createElement("div")),this.tooltip.classList.add("fl-annotations-tip"),this.tooltip.classList.add("hidden"),this.container=e,this.container.addEventListener("mouseover",function(t){var e,t;t.target.classList.contains("fl-annotations-desc")&&(n.tooltip.classList.remove("hidden"),n.tooltip.textContent=t.target.getAttribute("data-popup-body"),e=t.target.getBoundingClientRect(),t=n.tooltip.getBoundingClientRect(),n.tooltip.style.top=e.top-t.height-4+"px",n.tooltip.style.left=e.left+e.width/2-t.width/2+"px")},!1),this.container.addEventListener("mouseout",function(t){t.target.classList.contains("fl-annotations-desc")&&n.tooltip.classList.add("hidden")},!1)},kD={annotations:{},annotation_order:[],popup:{},annotation_selected_id:"",defaults:TS.getDefaultSettings()},jD={left:zD("right"),right:zD("left"),top:zD("bottom"),bottom:zD("top"),center:zD("center")},AD=function(t){lg(a,t);var o=pg(a);function a(t,e,n,r){var i;return og(this,a),(i=o.call(this)).target=t,i.settings_container=e,i.rendering=!1,i.prev_annotation_ids=[],i.state=Object.assign(n,kD,Object.assign({},n)),i.state.defaults=Object.assign({},i.state.defaults),i.is_user_editable=!!iD,i.source_element=iD&&(r.source_element||ID(e,r.source_offset)),i.add_element=iD&&(r.add_element||TD(e,r.add_offset)),i.settings=iD&&JL(e,xD,function(){i.rendering||i.update()}),r.source_element&&!iD&&(r.source_element.style.display="none"),r.add_element&&!iD&&(r.add_element.style.display="none"),i.settings?(i.settings.container.insertBefore(i.add_element,i.settings.container.firstChild),i._updateAnnotationList=$L(fg(i),i.settings.container,i.state.annotations,function(){return i.state.annotation_order}),i.settings_popup=new MD(i.settings.container)):i._updateAnnotationList=function(){},i.getDataFromCursor=r.getDataFromCursor,i.getPositionFromData=r.getPositionFromData,i.filterByData=r.filterByData||function(){return!0},i.filterByPosition=r.filterByPosition||function(){return!0},i.container_svg=t.appendChild(document.createElementNS("http://www.w3.org/2000/svg","svg")),i.container_svg.classList.add("fl-annotations"),i.container=t.appendChild(document.createElement("div")),i.container.classList.add("fl-annotations"),SL(i.container_svg),rD(),i.touches=cS(window,{preventSimulated:!1,filtered:!0,target:i.target}),i.touches.on("start",i._onCursorStart=i._onCursorStart.bind(fg(i))),i.touches.on("move",i._onCursorMove=i._onCursorMove.bind(fg(i))),i.touches.on("end",i._onCursorEnd=i._onCursorEnd.bind(fg(i))),i.cursor=new oD(i.container_svg),ND(fg(i),"_is_editing",[i.container_svg,i.container,e],"is-editing",!1),ND(fg(i),"_is_edit_settings",[i.container_svg,i.container,e],"is-edit-settings",!1),ND(fg(i),"_is_edit_add",[i.container_svg,i.container,e],"is-edit-add",!1),ND(fg(i),"_is_dragging",[i.container_svg,i.container,e],"is-dragging",!1),i._is_dragging_beneath=!1,i._drag_start_time=Date.now(),i._drag_start_position=[0,0],i._is_cursor_down=!1,i._dragging_id="",i._clicking_id="",i._prev_dragging_id="",i._prev_selected_id="",i._edit_mode="settings",i._ignore_next_mouseup=!1,i._getByID=RL.getByID.bind(fg(i)),i.update(),i}return sg(a,[{key:"isEditing",value:function t(){return this._is_editing}},{key:"isDragging",value:function t(){return this._is_dragging}},{key:"_onCursorStart",value:function t(e,n){var r=this._findupAnnotation(e.target),i=this._findupEditorButton(e.target),o,a,s,l,c,s,i,r;this._findupEditor(e.target)&&!i||this._findupLink(e.target)||(s=!!i,l=!!r,this._is_dragging=!1,this._is_dragging_beneath=!1,this._dragging_id="",this._drag_start_time=Date.now(),this._drag_start_position[0]=n[0],this._drag_start_position[1]=n[1],s?(c=i===this.source_element,s=i===this.add_element,i=!this._is_editing||c&&"add"===this._edit_mode||s&&"settings"===this._edit_mode,this._is_editing=i,this._is_editing?(this.target.classList.add("fl-disable-selection"),c?this.setEditMode("settings"):s&&this.setEditMode("add")):(this.target.classList.remove("fl-disable-selection"),this.select(null),this.setEditMode(null)),this._ignore_next_mouseup=!0,this.render(),e.preventDefault()):l&&(r=r.getAttribute("data-annotation-id"),this._dragging_id=r,document.body.classList.add("fl-disable-selection"),this._is_editing&&RL.getByID(r).onDragStart(e,n),this.render(),this.emit("update",this.state.annotations[this._dragging_id]),this.emit("change",this.state.annotations)))}},{key:"_onCursorMove",value:function t(e,n){var r=this._is_editing&&!this._dragging_id,i=this._is_editing&&!this._is_dragging_beneath,o=this._dragging_id&&this._is_dragging,a,i,a,i,s,l,o,c,u,d;r&&this._setCursorPosition(e,n),i?(a=n[0]-this._drag_start_position[0],i=n[1]-this._drag_start_position[1],a=Math.sqrt(a*a+i*i),i=Date.now()-this._drag_start_time,this._is_dragging_beneath=!iD||300<i||25<a,this._is_dragging=this._is_dragging_beneath&&!r):o&&(o=RL.getByID(this._dragging_id),this._is_editing&&!1!==o.onDragMove(e,n)&&(u=this.getDataFromCursor(e,n)||null)&&this.getPositionFromData(u)&&(this.state.annotations[this._dragging_id].position=u),this.render(),this.emit("update",this.state.annotations[this._dragging_id]),this.emit("change",this.state.annotations))}},{key:"_onCursorEnd",value:function t(e,n){var r;if(!this._findupLink(e.target)){var i=this._findupEditor(e.target)||this._findupEditorButton(e.target)||this._ignore_next_mouseup,i,o,i,a;if(this.target!==document.body&&document.body.classList.remove("fl-disable-selection"),i)return this._ignore_next_mouseup=!1,this._dragging_id="",this._is_dragging=!1,this._is_dragging_beneath=!1,this.render(),void this._setCursorPosition(e,n);if(this._dragging_id)this._is_dragging&&this._is_editing?(i=RL.getByID(this._dragging_id),this._is_editing&&!1!==i.onDragMove(e,n)&&((i=this.getDataFromCursor(e,n)||null)&&this.getPositionFromData(i)&&(this.state.annotations[this._dragging_id].position=i),this.emit("update",this.state.annotations[this._dragging_id]),this.emit("change",this.state.annotations))):this._is_dragging||this.select(this._dragging_id),this._dragging_id="",this._is_dragging=!1,this._is_dragging_beneath=!1,this.render(),this._setCursorPosition(e,n);else if(!this._is_dragging_beneath&&this._is_editing&&this.isEditMode("add")){var n=this.getDataFromCursor(e,n);if(n){var e=this._findupAnnotation(e.target);if(e)return this.select(e.getAttribute("data-annotation-id"));var n=this._createAnnotation(n);this.setEditMode("settings"),this.select(n),this.update(),this.emit("create",this.state.annotations[n]),this.emit("change",this.state.annotations)}}else this._is_dragging_beneath||this.select(null)}}},{key:"select",value:function t(e){this.state.annotation_selected_id=e,this._prev_selected_id!==e&&(this._prev_selected_id=e,this.state.annotations[e]&&(this.emit("select",this.state.annotations[e]),this.emit("change",this.state.annotations))),this.render()}},{key:"update",value:function t(){this._clearRemovedAnnotations(),this.render(),this._updateAnnotationList(this.state.annotations)}},{key:"_clearRemovedAnnotations",value:function t(){for(var e=this,n=0;n<this.prev_annotation_ids.length;n++){var r=this.prev_annotation_ids[n],r;r in this.state.annotations||(r=RL.getByID(r))&&r.destroy()}this.prev_annotation_ids=Object.keys(this.state.annotations);for(var i=this.state.annotation_order.filter(function(t){return t in e.state.annotations}),n=0,o;n<i.length;n++)this.state.annotation_order[n]=i[n];for(o in this.state.annotation_order.length=i.length,this.state.annotations)Object.hasOwnProperty.call(this.state.annotations,o)&&-1===this.state.annotation_order.indexOf(o)&&this.state.annotation_order.push(o)}},{key:"render",value:function t(){var e;this.rendering=!0,iD&&(e=this.isEditMode("settings"),this.settings.setVisible(e),this.settings.setActive(e&&this.state.annotation_selected_id&&this.prev_annotation_ids.length)),this._renderMarkers(),this.rendering=!1}},{key:"isEditMode",value:function t(e){return this._is_editing&&(!LS()||this._edit_mode===e)}},{key:"setEditMode",value:function t(e){var n=!LS();this._edit_mode=e,this._is_edit_settings=n||"settings"===e,this._is_edit_add=n||"add"===e}},{key:"_renderMarkers",value:function t(){for(var e in this.state.annotations){var n=RL.getByID(e),r=this.state.annotations[e].subject_type,n=n||new VL[r](e,this.state.annotations[e],this.container,this.container_svg),i=this.state.annotations[e].position,r=!!i,r;(r=(r=(r=(r=r&&this.filterByData(i))&&!!(i=this.getPositionFromData(i)))&&this.filterByPosition(i))&&DS(this.state.annotations[e]))?((n=n.ofType(VL[this.state.annotations[e].subject_type])).state.origin[0]=i[0],n.state.origin[1]=i[1],n.editable=this._is_editing,n.update(),n.setActive(!0)):n.setActive(!1),e!==this.state.annotation_selected_id&&n.setSelected(!1)}var o=RL.getByID(this.state.annotation_selected_id),a,s,l,s,l,o;o?(nD.container(this.target),o.setSelected(!0),this.emit("update",this.state.annotations[this.state.annotation_selected_id]),this.emit("change",this.state.annotations),iD&&this.settings.render(this.state.annotations[this.state.annotation_selected_id]),a=o.settings,s=o.element,"popup"===o.getConnectorType()?(eD.font_size=FL(a.text_size),eD.text_color=a.text_color,eD.fill_color=a.popup_bg,l=PS(a.contents),"bold"==a.text_weight&&(l="<strong>"+l+"</strong>"),s=s.parentNode.getBoundingClientRect(),l={html:l},o=o.getPopupPosition(a.popup_position),nD.directions(jD[a.popup_position]),nD.point(a.view.origin[0]+o[0]+s.left,a.view.origin[1]+o[1]+s.top),nD.draw(l)):nD.hide()):nD.hide()}},{key:"_setCursorPosition",value:function t(e,n){var r=this.getDataFromCursor(e,n)||null,i=r&&this.getPositionFromData(r),r=this._findupAnnotation(e.target);this.cursor.pos[0]=(i||n)[0],this.cursor.pos[1]=(i||n)[1],this.cursor.flag_editing=this.isEditMode("add"),this.cursor.flag_over_annotation_node=!!r,this.cursor.flag_inside_add_button=!!this._findupEditorButton(e.target),this.cursor.flag_inside_settings_panel=!!this._findupEditor(e.target),this.cursor.flag_can_place=!!i,this.cursor.update()}},{key:"_createAnnotation",value:function t(e){var n=AS(),r=this.state.annotations[n]=new TS(e,this.state.defaults);this.state.annotation_order.push(n),r.id=n;var e=r.subject_type;return new VL[e](n,r,this.container,this.container_svg),this.prev_annotation_ids.push(n),this.render(),n}},{key:"_findupAnnotation",value:function t(e){return XE(e,function(t){return t.hasAttribute&&t.hasAttribute("data-annotation-id")})}},{key:"_findupEditor",value:function t(e){return iD&&XE(e,this.settings.root)}},{key:"_findupEditorButton",value:function t(e){var n=this;return iD&&XE(e,function(t){return t===n.source_element||t===n.add_element})}},{key:"_findupLink",value:function t(e){return!this._is_editing&&XE(e,function(t){return t&&"A"===(t.nodeName||"").toUpperCase()})}}]),a}(nS);function ID(t,e){var t=t.appendChild(document.createElement("button"));return t.classList.add("fl-annotations-source-element"),e&&(t.style.marginRight=e[0],t.style.marginTop=e[1]),t}function TD(t,e){var t=t.appendChild(document.createElement("a"));return t.classList.add("fl-annotations-add-element"),t.textContent="Add/move annotations",e&&(t.style.marginRight=e[0],t.style.marginTop=e[1]),t}function ND(t,e,n,r,i){function o(t){i!==(t=!!t)&&(i=t,a())}function a(){if(i)for(var t=0;t<n.length;t++)n[t].classList.add(r);else for(var t=0;t<n.length;t++)n[t].classList.remove(r)}n=Array.isArray(n)?n:[n],a(),Object.defineProperty(t,e,{get:function t(){return i},set:o})}function zD(t){var e=["bottom","top","left","right","topLeft","bottomLeft","topRight","bottomRight","bottomFlexible","topFlexible","leftFlexible","rightFlexible"];return"center"!==t&&(e.splice(e.indexOf(t),1),e.unshift(t)),e}function ED(t,e,n,r){var f,i;return r=Object.assign({},r||{},{getDataFromCursor:o,getPositionFromData:a}),new(function(t){lg(r,t);var e=pg(r);function r(){return og(this,r),e.apply(this,arguments)}return sg(r,[{key:"update",value:function t(n){f=Object.keys(n||{}).reduce(function(t,e){return t[e]=s(n[e]),t},{}),_g(cg(r.prototype),"update",this).call(this)}}]),r}(AD))(t,e,n,r);function o(t,e){for(var n in f){var r=f[n];if(!(e[0]<r.x_range[0]+r.x)&&!(e[0]>r.x_range[1]+r.x||e[1]>r.y_range[0]+r.y||e[1]<r.y_range[1]+r.y)){var i=e[0]-r.x,o=e[1]-r.y,a=r.x_range[1]-r.x_range[0],s=r.y_range[0]-r.y_range[1],l=(i-r.x_range[0])/a,c=(o-r.y_range[1])/s,a=LD(r.x_scale,r.x_domain),s=LD(r.y_scale,r.y_domain),u,d;return{facet_id:n,x:"ordinal"!=a?r.x_scale.invert(i):SD(i,r.x_range,r.x_domain),y:"ordinal"!=s?r.y_scale.invert(o):SD(o,r.y_range,r.y_domain),x_fallback:l,y_fallback:c,x_type:a,y_type:s}}}}function a(t){var e=f[t.facet_id];if(e){var n,t,n=LD(e.x_scale,e.x_domain),r=LD(e.y_scale,e.y_domain),n=n==t.x_type?"ordinal"==t.x_type?e.x_scale(t.x.id)+e.x_scale.step()*t.x.offset:e.x_scale(t.x):t.x_fallback*(e.x_range[1]-e.x_range[0])+e.x_range[0],t=r==t.y_type?"ordinal"==t.y_type?e.y_scale(t.y.id)+e.y_scale.step()*-t.y.offset:e.y_scale(t.y):t.y_fallback*(e.y_range[0]-e.y_range[1])+e.y_range[1];return[e.x+n,e.y+t]}}function s(t){var e=t.xScale({global:!0}),n=t.yScale({global:!0}),r=e.range(),i=n.range(),o=e.domain(),a=n.domain();return{x:t.offsetLeft(),y:t.offsetTop(),x_scale:e,y_scale:n,x_range:r,y_range:i,x_domain:o,y_domain:a}}}function SD(t,e,n){var r=e[e.length-1]-e[0],t=(t-=e[0])/r,r=n.length,i,o;return{id:n[Math.floor(t*r)],offset:t*r%1-.5,ordinal:!0}}function LD(t,e){return t.invert?"number"!=typeof e[0]?"date":"number":"ordinal";var n,r}AD.chartLayout=ED;var DD={},CD={line:{mode:"line",has_lines:!0,stack:!1,has_axes:!0},area:{mode:"line",has_lines:!0,stack:!1,has_axes:!0,area:!0},area_single:{mode:"line",has_lines:!0,stack:!1,has_axes:!0,area:!0,single_series:!0},area_stacked:{mode:"line",stack:!0,has_lines:!0,has_axes:!0,area:!0,has_stack_labels:!0},area_prop:{mode:"line",stack:!0,has_lines:!0,proportional:!0,has_axes:!0,area:!0},area_stacked_stream:{mode:"line",stack:!0,has_lines:!0,has_axes:!0,hide_y_axis:!0,area:!0,stack_offset:!0},donut:{mode:"donut",stack:!1,has_axes:!1,legend_type:"row",single_series:!0},bar_grouped:{mode:"bar",stack:!1,has_axes:!0,legend_type:"either",values_on_x:!0},bar_stacked:{mode:"bar",stack:!0,has_axes:!0,legend_type:"either",values_on_x:!0,has_stack_labels:!0},bar_stacked_prop:{mode:"bar",stack:!0,legend_type:"either",proportional:!0,has_axes:!0,values_on_x:!0},column_grouped:{mode:"column",stack:!1,legend_type:"either",has_axes:!0},column_stacked:{mode:"column",stack:!0,legend_type:"either",has_axes:!0,has_stack_labels:!0},column_stacked_prop:{mode:"column",stack:!0,legend_type:"either",proportional:!0,has_axes:!0},column_grouped_line:{mode:"column",has_lines:!0,stack:!1,legend_type:"either",has_axes:!0,combo_chart:!0},column_stacked_line:{mode:"column",has_lines:!0,stack:!0,legend_type:"either",has_axes:!0,combo_chart:!0,has_stack_labels:!0},column_stacked_prop_line:{mode:"column",has_lines:!0,stack:!0,legend_type:"either",proportional:!0,has_axes:!0,combo_chart:!0,dual_axis:!0},area_stacked_line:{mode:"line",has_lines:!0,stack:!0,has_axes:!0,area:!0,combo_chart:!0},line_line:{mode:"line",has_lines:!0,stack:!1,has_axes:!0,combo_chart:!0,dual_axis:!0}},OD={},PD;function RD(){var e=CD[TI.chart_type],t=e.proportional?"data_points_stack_prop":e.stack_offset?"data_points_stack_stream":e.stack?"data_points_stack":"data_points";function n(t){return!t&&e.proportional?"data_points_stack_prop":!t&&e.stack_offset?"data_points_stack_stream":!t&&e.stack?"data_points_stack":TI.line_interpolate?"data_points":"data_points_with_blanks"}var r="facets"===TI.facet_layout;OD={mode:e.mode,has_lines:e.has_lines,area:e.area,stack:e.stack,stack_offset:e.stack_offset,proportional:e.proportional,has_axes:e.has_axes,hide_y_axis:e.hide_y_axis,dual_axis:e.dual_axis||e.combo_chart&&TI.dual_axis,combo_chart:e.combo_chart,single_series:e.single_series,legend_type:e.legend_type||"column",facets_show:r,facet_by_series:r&&!("facet"in DD.data.column_names),values_on_x:e.values_on_x,data_points:t,getLineDataPoints:n,prev_mode:PD||e.mode,has_bar_labels:"bar"==e.mode&&TI.bar_labels_above,has_stack_labels:e.has_stack_labels,force_categorical:"bar"==e.mode||"column"==e.mode},PD=e.mode}var YD=Object.freeze({scale_type:"categorical",categorical_type:"palette",categorical_palette:["#1D6996","#EDAD08","#73AF48","#94346E","#38A6A5","#E17C05","#5F4690","#0F8554","#6F4070","#CC503E","#994E95","#666666"],categorical_extend:!0,categorical_custom_palette:"",numeric_type:"sequential",sequential_palette:"Blues",sequential_custom_min:"#FFFFFF",sequential_custom_max:"#000000",sequential_color_space:"rgb",sequential_reverse:!1,sequential_custom_domain:!1,sequential_domain_min:0,sequential_domain_max:1,diverging_palette:"RdBu",diverging_custom_min:"#67001f",diverging_custom_mid:"#f7f7f7",diverging_custom_max:"#053061",diverging_color_space:"rgb",diverging_reverse:!1,diverging_custom_domain:!1,diverging_domain_min:0,diverging_domain_mid:.5,diverging_domain_max:1,binning:!1,bin_count:4,bin_mode:"fixed",bin_thresholds:""}),UD=null,BD,FD=360/((1+Math.sqrt(5))/2),ZD="#FF0000";function HD(l,c,u){return function(t,r){Array.isArray(t)||(t=t?[t]:[ZD]),r=void 0!==r?r:FD;var e=t.map(function(t){return l(t)}).filter(function(t){return!isNaN(t[c])&&!isNaN(t[u])});e.length||(e=[l(ZD)]);for(var t=e.length,i=e.reduce(function(t,e){return t+e[c]},0)/t,o=e.reduce(function(t,e){return t+e[u]},0)/t,n=t,a;a=e[--n].h,isNaN(a)&&0<n;);var s=0;return function t(){var e=++s*r,n;return Gm(l((a+e)%360,i,o)).hex()}}}var GD,QD,qD={hcl:HD(Mv,"c","l"),hsl:HD(nv,"s","l")};function VD(t,e){var r={},n=Vj(e).values(),i=t.categorical_palette,o=i.length,e,a,s;t.categorical_extend?(e=YD.rotation_angle,a="hcl",s=qD.hcl(i,e),n.forEach(function(t,e){r[t]=e<o?i[e]:s()})):n.forEach(function(t,e){r[t]=i[e%o]}),t.categorical_custom_palette.split("\n").filter(function(t){return t}).forEach(function(t){var e=t.lastIndexOf(":"),n,e;-1!==e&&(n=t.slice(0,e).trim(),e=t.slice(e+1).trim(),n&&e&&(r[n]=e))});var t=function t(e){return r[e]};return t.domain=n.slice(),t.colors=n.map(function(t){return r[t]}),t.items=n.map(function(t){return{label:t,color:r[t]}}),t}function WD(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}function $D(t){return qv(t[t.length-1])}var XD,o=$D(new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(WD)),JD,ot=$D(new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(WD)),KD,te=$D(new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(WD)),tC,Pt=$D(new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(WD)),eC,Ou=$D(new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(WD)),nC,tt=$D(new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(WD)),rC,Z=$D(new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(WD)),iC,Q=$D(new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(WD)),oC,Xt=$D(new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(WD)),aC,X=$D(new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(WD)),sC,Wt=$D(new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(WD)),lC,z=$D(new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(WD)),cC,Ge=$D(new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(WD)),uC,Ir=$D(new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(WD)),dC,we=$D(new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(WD)),fC,sn=$D(new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(WD)),hC,$t=$D(new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(WD)),pC,pn=$D(new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(WD)),gC,jt=$D(new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(WD)),_C,Qc=$D(new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(WD)),yC,Ye=$D(new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(WD)),mC,kt=$D(new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(WD)),vC,r=$D(new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(WD)),bC,uS=$D(new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(WD)),xC,Tr=$D(new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(WD)),wC,an=$D(new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(WD)),MC,xn=$D(new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(WD)),it=qs(Cv(300,.5,0),Cv(-240,.5,1)),vr=qs(Cv(-100,.75,.35),Cv(80,1.5,.8)),Wi=qs(Cv(260,.75,.35),Cv(80,1.5,.8)),kC=Cv();function jC(e){var n=e.length;return function(t){return e[Math.max(0,Math.min(n-1,Math.floor(t*n)))]}}var Qt=jC(WD("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Vt=jC(WD("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),qt=jC(WD("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),yn=jC(WD("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function AC(t,e,n,r){var i=e[0],o=e[e.length-1],a=[],s,l;"custom"==t.bin_mode?l=(s=t.bin_thresholds.split(";").map(parseFloat).filter(function(t){return!isNaN(t)&&(i<t&&t<o)}).sort(TC)).length+1:(l=Math.floor(t.bin_count),s=[]);var l=IC(r,l,e),c,c="fixed"==t.bin_mode?Az().domain([i,o]):"quantile"==t.bin_mode?jz().domain(n):Iz().domain(s);c.range(l.colors),s.length||l.colors.forEach(function(t,e){e&&s.push(c.invertExtent(t)[0])}),s.forEach(function(t,e){e<s.length-1&&a.push((s[e+1]+t)/2)});var l=function t(e){return isNaN(e)?null:c(e)};return l.domain=Object.freeze(e),l.thresholds=Object.freeze(s),l.centers=Object.freeze(a),l}function IC(t,e,n){for(var r=1/e,i=[],o=0;o<e;o++){var a,s=n[0]+(o/e+r/2)*(n[n.length-1]-n[0]);i.push(s)}var t=i.map(t);return{positions:i,colors:t}}function TC(t,e){return t-e}function NC(t){var e;return Array.isArray(t)?gk(t):[0,1]}var qs=Object.freeze(["#efeca4","#e9e28f","#dccf64","#e3b23c","#e49547","#e37746","#dc5b36","#cb4144","#bb2244","#972545","#6a2c4f"]),zC=Object.freeze({Blues:kt,BuGn:X,BuPu:Wt,Carrots:qv(qs),Cool:Wi,CubehelixDefault:it,GnBu:z,Greens:r,Greys:uS,Inferno:qt,Magma:Vt,Oranges:xn,OrRd:Ge,Plasma:yn,PuBu:we,PuBuGn:Ir,PuRd:sn,Purples:Tr,RdPu:$t,Reds:an,Viridis:Qt,Warm:vr,YlGn:jt,YlGnBu:pn,YlOrBr:Qc,YlOrRd:Ye}),EC={hcl:Ki,hsl:Qs,lab:bb,rgb:Gv};function SC(t){var e=t.sequential_color_space,n=t.sequential_custom_min,t=t.sequential_custom_max;return EC[e](n,t)}function LC(r,t){var e=r.sequential_custom_domain&&!r.binning?[r.sequential_domain_min,r.sequential_domain_max]:NC(t),n,i=zz(function t(e){var n=zC[r.sequential_palette]||SC(r);return r.sequential_reverse?n(1-e):n(e)}).domain(e),o=function t(e){return isNaN(e)?null:i(e)};return o.domain=Object.freeze(e),r.binning?AC(r,e,t,o):o}var DC=Object.freeze({BrBG:o,PiYG:te,PRGn:ot,PuOr:Pt,RdBu:Ou,RdGy:tt,RdYlBu:Z,RdYlGn:Q,Spectral:Xt}),CC={hcl:Ki,hsl:Qs,lab:bb,rgb:Gv},OC;function PC(t){var e=t.diverging_color_space,n=t.diverging_custom_min,r=t.diverging_custom_mid,t=t.diverging_custom_max;return Mb(CC[e],[n,r,t])}function RC(r,t){var e=NC(t),n=e[0]<0&&0<e[1]?0:(e[0]+e[1])/2,i=[e[0],n,e[1]];r.diverging_custom_domain&&(r.binning?i[1]=r.diverging_domain_mid:i=[r.diverging_domain_min,r.diverging_domain_mid,r.diverging_domain_max]);var o,a=Sz(function t(e){var n=DC[r.diverging_palette]||PC(r);return r.diverging_reverse?n(1-e):n(e)}).domain(i),e=function t(e){return isNaN(e)?null:a(e)};return e.domain=Object.freeze(i),e.midpoint=r.diverging_custom_domain?r.diverging_domain_mid:n,r.binning?AC(r,i,t,e):e}function YC(n){var r=null,t;for(t in YD)void 0===n[t]&&(n[t]=YD[t]);var i=UD,e=function t(e){return"categorical"===n.scale_type?r=VD(n,e):"sequential"===n.numeric_type?r=LC(n,e):"diverging"===n.numeric_type&&(r=RC(n,e)),a.thresholds=r.thresholds,a.centers=r.centers,a.midpoint=r.midpoint,a.domain=r.domain,a.colors=r.colors,a.items=r.items,this},o,a=function t(e){return r&&r(e)||i};return{getColor:a,updateColorScale:e,fallback:function t(e){return void 0===e?i:(i="default"===e?UD:e,this)}}}function UC(t){var t;hF.isEditing()||hF.state.annotation_selected_id?TI.highlighted&&(KC(),TI.highlighted=null):(ry.stopPropagation(),TI.highlighted?(KC(),TI.highlighted=null):(t=this||document.getElementById(t),TI.popup.show_popups&&t.getAttribute("data-type")&&(TI.highlighted=t.id,KO(!0))))}function BC(t){var e;!TI.popup.show_popups||TI.highlighted||hF.isEditing()||hF.state.annotation_selected_id||ZC(this||document.getElementById(t)||document.getElementById(t+"-secondary"))}function FC(){!TI.popup.show_popups||TI.highlighted||hF.isEditing()||hF.state.annotation_selected_id||KC()}function ZC(t){TI.popup.show_popups&&(("arc"==t.getAttribute("data-type")?JC:$C)(t),document.querySelector("#flourish-popup-"+IF.popup.unique_id+" .flourish-popup-content").style.pointerEvents=TI.highlighted?"":"none")}function HC(t){return(t.secondary?NO:TO)(t.value_display)}function GC(t,e,n,r){if(void 0===t)return"";var i="";return i+="<"+t+" style='"+(r=void 0===r?"":r)+"'>",i+=e?"<strong>"+e+": </strong>":"",i+=n,i+="</"+t+">"}function QC(){return"<div style='font-size: "+TI.popup.font_size+"px; color: "+TI.popup.text_color+"'>"}function qC(){return"</div>"}function VC(t,e,n){var r="";if(r+=QC(),r+=GC("h1",void 0,e,"color: "+(n=!TI.popup_color_headers?"inherit":n)),e in zO.series_popup_text&&(r+=GC("h2",null,zO.series_popup_text[e])),r+=GC("h2",zO.labelFormat(t.label),HC(t)),"metadata"in zO.column_names)for(var i=zO.column_names.metadata,o=0;o<i.length;o++){var a=(t.metadata||t.data.metadata)[o];a&&(r+=GC("h2",i[o],a))}return r+=qC(),r+="</div>"}function WC(){var t={},e;for(e in zO.column_names)t[e]=zO.column_names[e];return t.row_values=zO.column_names.value,t.value_display="VALUE",t.label_formatted=t.label,delete t.label,t.SERIES="SERIES",t}function $C(t){var e=t.__data__||{},n=t.parentNode.__data__,r="row"==OD.legend_type?yP(e.index):_P(n.index),r=VC(e,n.name,r),e;TI.popup.is_custom?(e=Object.assign({},e,{value_display:HC(e)}),IF.addColumnNames(WC()),IF.point(t).draw(e)):IF.point(t).html(r).draw()}function XC(t){var t=t*(8/Math.PI);return t<1||15<t?["bottom","top"]:t<3?["bottomLeft","topRight"]:t<5?["left","right"]:t<7?["topLeft","bottomRight"]:t<9?["top","bottom"]:t<11?["topRight","bottomLeft"]:t<13?["right","left"]:["bottomRight","topLeft"]}function JC(t){var e=t.__data__||{},n=t.parentNode.__data__,r=e.startAngle+(e.endAngle-e.startAngle)/2,i=t.parentNode.getBoundingClientRect(),o=t.__centroid__,t=i.left+i.width/2+o[0],i=i.top+i.height/2+o[1],o="row"===OD.legend_type?yP(e.data.label):_P(n.index),n=VC(e.data,n.name,o),o=IF.popup.directions();IF.directions(XC(r)),TI.popup.is_custom?(IF.addColumnNames(WC()),IF.point(t,i).draw(e)):IF.point(t,i).html(n).draw(),IF.directions(o)}function KC(){IF.hide()}function tO(e){document.fonts&&(e=e||function(){window.template.update()},document.fonts.ready.then(function(t){e(t),document.fonts.addEventListener("loadingdone",function(){e(t)})}).catch(function(t){console.log("Error loading fonts",t)}))}function eO(t,e,n){for(var r in e){var i=e[r],o,a;"object"!=ig(i)||null===i||Array.isArray(i)?-1<n.indexOf(r)?t[r]=i:Flourish.warn("State property `"+r+"` not whitelisted for use in URL"):(o=r.length,a=n.filter(function(t){return t.substring(0,o)==r}).map(function(t){return t.substring(o+1)}),eO(t[r],i,a))}}function nO(t,e){var n=location.hash.substring(1),r;if(""!=n){try{r=JSON.parse(decodeURIComponent(n))}catch(t){Flourish.warn({message:"Invalid JSON passed to template URL hash",explanation:t})}r&&eO(t,r,e)}}function rO(t,e,n){var r,i={enabled:t.enabled||!1,whitelist:t.whitelist||""}.whitelist.split(/\n/);nO(e,i),window.addEventListener("hashchange",function(){nO(e,i),n&&n()})}function iO(){KO()}function oO(){tO(),rO(TI.url_state,TI,iO),my("body").on("click",UC),my(jF.getSection("controls")).append("select").attr("id","series-filter").attr("multiple",!0),(OC=my("#graphic").attr("fill","currentColor")).append("g").attr("class","annotations below"),OC.append("g").attr("id","areas"),OC.append("g").attr("id","lines"),OC.append("g").attr("id","data-points"),OC.append("g").attr("id","lines-secondary"),OC.append("g").attr("id","data-point-labels"),OC.append("g").attr("id","stack-labels"),OC.append("g").attr("class","annotations above"),CF.container(document.getElementById("lines")),IF.container(jF.getWrapper()),TF.appendTo(jF.getSection("legend")),NF.appendTo(jF.getSection("controls")).on("change",function(t){t==TI.log_control_y_text_linear?TI.y.numeric_scale_type="linear":t==TI.log_control_y_text_log&&(TI.y.numeric_scale_type="log"),KO()}),EF.appendTo(jF.getSection("controls")).on("change",function(t){TI.row_filter=t==TI.row_filter_control_all_text?[]:[t],KO()}),zF.appendTo(jF.getSection("controls")).on("change",function(t){TI.series_filter=t==TI.series_control_single_all_text?[]:[t],KO()}),KO(!TI.animate_on_load||"except-data-points");var n=document.querySelector("#fl-layout-wrapper-outer"),r=n.getBoundingClientRect().width,i=jF.getWrapper(),o=i.getBoundingClientRect().width;function t(){var t=n.getBoundingClientRect().width,e=i.getBoundingClientRect().width;t==r&&e==o&&!Flourish.fixed_height||(KO(!0),r=t,o=e)}window.addEventListener("resize",t,!1)}var Qs=n(function(t,e){var n,r;n=i,r=function(){return i={},n.m=r=[function(t,e,n){t.exports=n(1)},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t},o,a=r(n(2)),s,c=r(n(3)),u,d=r(n(4)),f=n(31),j=n(32);function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n(33);var i=(i(p,[{key:"init",value:function t(){var e;!0!==this.initialised&&(e=this.config.callbackOnInit,this.initialised=!0,this._createTemplates(),this._createInput(),this.store.subscribe(this.render),this.render(),this._addEventListeners(),e&&(0,j.isType)("Function",e)&&e.call(this))}},{key:"destroy",value:function t(){var e;!1!==this.initialised&&(this._removeEventListeners(),this.passedElement.classList.remove(this.config.classNames.input,this.config.classNames.hiddenState),this.passedElement.removeAttribute("tabindex"),e=this.passedElement.getAttribute("data-choice-orig-style"),Boolean(e)?(this.passedElement.removeAttribute("data-choice-orig-style"),this.passedElement.setAttribute("style",e)):this.passedElement.removeAttribute("style"),this.passedElement.removeAttribute("aria-hidden"),this.passedElement.removeAttribute("data-choice"),this.passedElement.value=this.passedElement.value,this.containerOuter.parentNode.insertBefore(this.passedElement,this.containerOuter),this.containerOuter.parentNode.removeChild(this.containerOuter),this.clearStore(),this.config.templates=null,this.initialised=!1)}},{key:"renderGroups",value:function t(e,r,n){var i=this,o=n||document.createDocumentFragment(),n=this.config.sortFilter;return this.config.shouldSort&&e.sort(n),e.forEach(function(e){var t=r.filter(function(t){return i.isSelectOneElement?t.groupId===e.id:t.groupId===e.id&&!t.selected}),n;1<=t.length&&(n=i._getTemplate("choiceGroup",e),o.appendChild(n),i.renderChoices(t,o,!0))}),o}},{key:"renderChoices",value:function t(e,n){var r=this,i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],o=n||document.createDocumentFragment(),a=this.config,s=a.renderSelectedChoices,l=a.searchResultLimit,c=a.renderChoiceLimit,u=this.isSearching?j.sortByScore:this.config.sortFilter,d=function t(e){var n,e;"auto"===s&&!r.isSelectOneElement&&e.selected||(e=r._getTemplate("choice",e),o.appendChild(e))},n=e,a=(n="auto"===s&&!this.isSelectOneElement?e.filter(function(t){return!t.selected}):n).reduce(function(t,e){return(e.placeholder?t.placeholderChoices:t.normalChoices).push(e),t},{placeholderChoices:[],normalChoices:[]}),e=a.placeholderChoices,a=a.normalChoices;(this.config.shouldSort||this.isSearching)&&a.sort(u);var f=n.length,h=[].concat(g(e),g(a));this.isSearching?f=l:0<c&&!i&&(f=c);for(var p=0;p<f;p++)h[p]&&d(h[p]);return o}},{key:"renderItems",value:function t(e){var n=this,r,i=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:null)||document.createDocumentFragment(),o,a,s;return this.config.shouldSortItems&&!this.isSelectOneElement&&e.sort(this.config.sortFilter),this.isTextElement?(a=this.store.getItemsReducedToValues(e).join(this.config.delimiter),this.passedElement.setAttribute("value",a),this.passedElement.value=a):(s=document.createDocumentFragment(),e.forEach(function(t){var t=n._getTemplate("option",t);s.appendChild(t)}),this.passedElement.innerHTML="",this.passedElement.appendChild(s)),e.forEach(function(t){var t=n._getTemplate("item",t);i.appendChild(t)}),i}},{key:"render",value:function t(){var e,n,r,n,n,i,n,i,i,o;this.store.isLoading()||(this.currentState=this.store.getState(),this.currentState===this.prevState)||(this.currentState.choices===this.prevState.choices&&this.currentState.groups===this.prevState.groups&&this.currentState.items===this.prevState.items||!this.isSelectElement||(e=this.store.getGroupsFilteredByActive(),n=this.store.getChoicesFilteredByActive(),r=document.createDocumentFragment(),this.choiceList.innerHTML="",this.config.resetScrollPosition&&(this.choiceList.scrollTop=0),1<=e.length&&!0!==this.isSearching?r=this.renderGroups(e,n,r):1<=n.length&&(r=this.renderChoices(n,r)),n=this.store.getItemsFilteredByActive(),n=this._canAddItem(n,this.input.value),r.childNodes&&0<r.childNodes.length?n.response?(this.choiceList.appendChild(r),this._highlightChoice()):this.choiceList.appendChild(this._getTemplate("notice",n.notice)):(n=i=void 0,i=this.isSearching?(n=(0,j.isType)("Function",this.config.noResultsText)?this.config.noResultsText():this.config.noResultsText,this._getTemplate("notice",n,"no-results")):(n=(0,j.isType)("Function",this.config.noChoicesText)?this.config.noChoicesText():this.config.noChoicesText,this._getTemplate("notice",n,"no-choices")),this.choiceList.appendChild(i))),this.currentState.items!==this.prevState.items&&(i=this.store.getItemsFilteredByActive(),this.itemList.innerHTML="",i&&i&&(o=this.renderItems(i)).childNodes&&this.itemList.appendChild(o)),this.prevState=this.currentState)}},{key:"highlightItem",value:function t(e){var n=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];if(!e)return this;var r=e.id,i=e.groupId,i=0<=i?this.store.getGroupById(i):null;return this.store.dispatch((0,f.highlightItem)(r,!0)),n&&(i&&i.value?(0,j.triggerEvent)(this.passedElement,"highlightItem",{id:r,value:e.value,label:e.label,groupValue:i.value}):(0,j.triggerEvent)(this.passedElement,"highlightItem",{id:r,value:e.value,label:e.label})),this}},{key:"unhighlightItem",value:function t(e){if(!e)return this;var n=e.id,r=e.groupId,r=0<=r?this.store.getGroupById(r):null;return this.store.dispatch((0,f.highlightItem)(n,!1)),r&&r.value?(0,j.triggerEvent)(this.passedElement,"unhighlightItem",{id:n,value:e.value,label:e.label,groupValue:r.value}):(0,j.triggerEvent)(this.passedElement,"unhighlightItem",{id:n,value:e.value,label:e.label}),this}},{key:"highlightAll",value:function t(){var e=this,n;return this.store.getItems().forEach(function(t){e.highlightItem(t)}),this}},{key:"unhighlightAll",value:function t(){var e=this,n;return this.store.getItems().forEach(function(t){e.unhighlightItem(t)}),this}},{key:"removeItemsByValue",value:function t(e){var n=this,r;return e&&(0,j.isType)("String",e)&&this.store.getItemsFilteredByActive().forEach(function(t){t.value===e&&n._removeItem(t)}),this}},{key:"removeActiveItems",value:function t(e){var n=this,r;return this.store.getItemsFilteredByActive().forEach(function(t){t.active&&e!==t.id&&n._removeItem(t)}),this}},{key:"removeHighlightedItems",value:function t(){var e=this,n=0<arguments.length&&void 0!==arguments[0]&&arguments[0],r;return this.store.getItemsFilteredByActive().forEach(function(t){t.highlighted&&t.active&&(e._removeItem(t),n&&e._triggerChange(t.value))}),this}},{key:"showDropdown",value:function t(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],n=document.body,r=document.documentElement,i=Math.max(n.scrollHeight,n.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight);this.containerOuter.classList.add(this.config.classNames.openState),this.containerOuter.setAttribute("aria-expanded","true"),this.dropdown.classList.add(this.config.classNames.activeState),this.dropdown.setAttribute("aria-expanded","true");var n=this.dropdown.getBoundingClientRect(),r=Math.ceil(n.top+window.scrollY+this.dropdown.offsetHeight),n=!1;return"auto"===this.config.position?n=i<=r:"top"===this.config.position&&(n=!0),n&&this.containerOuter.classList.add(this.config.classNames.flippedState),e&&this.canSearch&&document.activeElement!==this.input&&this.input.focus(),(0,j.triggerEvent)(this.passedElement,"showDropdown",{}),this}},{key:"hideDropdown",value:function t(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],n=this.containerOuter.classList.contains(this.config.classNames.flippedState);return this.containerOuter.classList.remove(this.config.classNames.openState),this.containerOuter.setAttribute("aria-expanded","false"),this.dropdown.classList.remove(this.config.classNames.activeState),this.dropdown.setAttribute("aria-expanded","false"),n&&this.containerOuter.classList.remove(this.config.classNames.flippedState),e&&this.canSearch&&document.activeElement===this.input&&this.input.blur(),(0,j.triggerEvent)(this.passedElement,"hideDropdown",{}),this}},{key:"toggleDropdown",value:function t(){var e;return this.dropdown.classList.contains(this.config.classNames.activeState)?this.hideDropdown():this.showDropdown(!0),this}},{key:"getValue",value:function t(){var e=this,n=0<arguments.length&&void 0!==arguments[0]&&arguments[0],r=this.store.getItemsFilteredByActive(),i=[];return r.forEach(function(t){(e.isTextElement||t.active)&&i.push(n?t.value:t)}),this.isSelectOneElement?i[0]:i}},{key:"setValue",value:function t(e){var r=this,e,n;return!0===this.initialised&&(e=[].concat(g(e)),n=function t(e){var n=(0,j.getType)(e);"Object"===n?e.value&&(r.isTextElement?r._addItem(e.value,e.label,e.id,void 0,e.customProperties,e.placeholder):r._addChoice(e.value,e.label,!0,!1,-1,e.customProperties,e.placeholder)):"String"===n&&(r.isTextElement?r._addItem(e):r._addChoice(e,e,!0,!1,-1,null))},1<e.length?e.forEach(function(t){n(t)}):n(e[0])),this}},{key:"setValueByChoice",value:function t(e){var n=this,r,i;return this.isTextElement||(r=this.store.getChoices(),((0,j.isType)("Array",e)?e:[e]).forEach(function(e){var t=r.find(function(t){return n.config.itemComparer(t.value,e)});t?t.selected?n.config.silent||console.warn("Attempting to select choice already selected"):n._addItem(t.value,t.label,t.id,t.groupId,t.customProperties,t.placeholder,t.keyCode):n.config.silent||console.warn("Attempting to select choice that does not exist")})),this}},{key:"setChoices",value:function t(e,n,r){var i=this,o=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(!0===this.initialised&&this.isSelectElement){if(!(0,j.isType)("Array",e)||!n)return this;o&&this._clearChoices(),this._setLoading(!0),e&&e.length&&(this.containerOuter.classList.remove(this.config.classNames.loadingState),e.forEach(function(t){t.choices?i._addGroup(t,t.id||null,n,r):i._addChoice(t[n],t[r],t.selected,t.disabled,void 0,t.customProperties,t.placeholder)})),this._setLoading(!1)}return this}},{key:"clearStore",value:function t(){return this.store.dispatch((0,f.clearAll)()),this}},{key:"clearInput",value:function t(){return this.input.value&&(this.input.value=""),this.isSelectOneElement||this._setInputWidth(),!this.isTextElement&&this.config.searchEnabled&&(this.isSearching=!1,this.store.dispatch((0,f.activateChoices)(!0))),this}},{key:"enable",value:function t(){var e;return this.initialised&&(this.passedElement.disabled=!1,this.containerOuter.classList.contains(this.config.classNames.disabledState)&&(this._addEventListeners(),this.passedElement.removeAttribute("disabled"),this.input.removeAttribute("disabled"),this.containerOuter.classList.remove(this.config.classNames.disabledState),this.containerOuter.removeAttribute("aria-disabled"),this.isSelectOneElement&&this.containerOuter.setAttribute("tabindex","0"))),this}},{key:"disable",value:function t(){var e;return this.initialised&&(this.passedElement.disabled=!0,this.containerOuter.classList.contains(this.config.classNames.disabledState)||(this._removeEventListeners(),this.passedElement.setAttribute("disabled",""),this.input.setAttribute("disabled",""),this.containerOuter.classList.add(this.config.classNames.disabledState),this.containerOuter.setAttribute("aria-disabled","true"),this.isSelectOneElement&&this.containerOuter.setAttribute("tabindex","-1"))),this}},{key:"ajax",value:function t(e){var n=this;return!0===this.initialised&&this.isSelectElement&&(requestAnimationFrame(function(){n._handleLoadingState(!0)}),e(this._ajaxCallback())),this}},{key:"_triggerChange",value:function t(e){e&&(0,j.triggerEvent)(this.passedElement,"change",{value:e})}},{key:"_handleButtonAction",value:function t(e,n){var r,e;e&&n&&this.config.removeItems&&this.config.removeItemButton&&(r=n.parentNode.getAttribute("data-id"),e=e.find(function(t){return t.id===parseInt(r,10)}),this._removeItem(e),this._triggerChange(e.value),this.isSelectOneElement&&this._selectPlaceholderChoice())}},{key:"_selectPlaceholderChoice",value:function t(){var e=this.store.getPlaceholderChoice();e&&(this._addItem(e.value,e.label,e.id,e.groupId,null,e.placeholder),this._triggerChange(e.value))}},{key:"_handleItemAction",value:function t(e,n){var r=this,i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],o;e&&n&&this.config.removeItems&&!this.isSelectOneElement&&(o=n.getAttribute("data-id"),e.forEach(function(t){t.id!==parseInt(o,10)||t.highlighted?i||t.highlighted&&r.unhighlightItem(t):r.highlightItem(t)}),document.activeElement!==this.input&&this.input.focus())}},{key:"_handleChoiceAction",value:function t(e,n){var r,i,n,r,o;e&&n&&(r=n.getAttribute("data-id"),i=this.store.getChoiceById(r),n=e[0]&&e[0].keyCode?e[0].keyCode:null,r=this.dropdown.classList.contains(this.config.classNames.activeState),i.keyCode=n,(0,j.triggerEvent)(this.passedElement,"choice",{choice:i}),!i||i.selected||i.disabled||this._canAddItem(e,i.value).response&&(this._addItem(i.value,i.label,i.id,i.groupId,i.customProperties,i.placeholder,i.keyCode),this._triggerChange(i.value)),this.clearInput(),r&&this.isSelectOneElement&&(this.hideDropdown(),this.containerOuter.focus()))}},{key:"_handleBackspace",value:function t(e){var n,e;this.config.removeItems&&e&&(n=e[e.length-1],e=e.some(function(t){return t.highlighted}),this.config.editItems&&!e&&n?(this.input.value=n.value,this._setInputWidth(),this._removeItem(n),this._triggerChange(n.value)):(e||this.highlightItem(n,!1),this.removeHighlightedItems(!0)))}},{key:"_canAddItem",value:function t(e,n){var r=!0,i=(0,j.isType)("Function",this.config.addItemText)?this.config.addItemText(n):this.config.addItemText,o;return(this.isSelectMultipleElement||this.isTextElement)&&0<this.config.maxItemCount&&this.config.maxItemCount<=e.length&&(i=(r=!1,j.isType)("Function",this.config.maxItemText)?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),this.isTextElement&&this.config.addItems&&r&&this.config.regexFilter&&(r=this._regexFilter(n)),!e.some(function(t){return(0,j.isType)("String",n)?t.value===n.trim():t.value===n})||this.config.duplicateItems||this.isSelectOneElement||!r||(i=(r=!1,j.isType)("Function",this.config.uniqueItemText)?this.config.uniqueItemText(n):this.config.uniqueItemText),{response:r,notice:i}}},{key:"_handleLoadingState",value:function t(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],n=this.itemList.querySelector("."+this.config.classNames.placeholder);e?(this.containerOuter.classList.add(this.config.classNames.loadingState),this.containerOuter.setAttribute("aria-busy","true"),this.isSelectOneElement?n?n.innerHTML=this.config.loadingText:(n=this._getTemplate("placeholder",this.config.loadingText),this.itemList.appendChild(n)):this.input.placeholder=this.config.loadingText):(this.containerOuter.classList.remove(this.config.classNames.loadingState),this.isSelectOneElement?n.innerHTML=this.placeholder||"":this.input.placeholder=this.placeholder||"")}},{key:"_ajaxCallback",value:function t(){var i=this;return function(t,n,r){var t;t&&n&&((t=(0,j.isType)("Object",t)?[t]:t)&&(0,j.isType)("Array",t)&&t.length?(i._handleLoadingState(!1),i._setLoading(!0),t.forEach(function(t){var e;t.choices?(e=t.id||null,i._addGroup(t,e,n,r)):i._addChoice(t[n],t[r],t.selected,t.disabled,void 0,t.customProperties,t.placeholder)}),i._setLoading(!1),i.isSelectOneElement&&i._selectPlaceholderChoice()):i._handleLoadingState(!1),i.containerOuter.removeAttribute("aria-busy"))}}},{key:"_searchChoices",value:function t(e){var n=(0,j.isType)("String",e)?e.trim():e,r=(0,j.isType)("String",this.currentValue)?this.currentValue.trim():this.currentValue;if(1<=n.length&&n!==r+" "){var i=this.store.getSearchableChoices(),e=n,r=(0,j.isType)("Array",this.config.searchFields)?this.config.searchFields:[this.config.searchFields],r=Object.assign(this.config.fuseOptions,{keys:r}),o,e=new a.default(i,r).search(e);return this.currentValue=n,this.highlightPosition=0,this.isSearching=!0,this.store.dispatch((0,f.filterChoices)(e)),e.length}return 0}},{key:"_handleSearch",value:function t(e){var n,r,i;e&&(r=this.store.getChoices().some(function(t){return!t.active}),this.input===document.activeElement&&(e&&e.length>=this.config.searchFloor?(i=0,this.config.searchChoices&&(i=this._searchChoices(e)),(0,j.triggerEvent)(this.passedElement,"search",{value:e,resultCount:i})):r&&(this.isSearching=!1,this.store.dispatch((0,f.activateChoices)(!0)))))}},{key:"_addEventListeners",value:function t(){document.addEventListener("keyup",this._onKeyUp),document.addEventListener("keydown",this._onKeyDown),document.addEventListener("click",this._onClick),document.addEventListener("touchmove",this._onTouchMove),document.addEventListener("touchend",this._onTouchEnd),document.addEventListener("mousedown",this._onMouseDown),document.addEventListener("mouseover",this._onMouseOver),this.isSelectOneElement&&(this.containerOuter.addEventListener("focus",this._onFocus),this.containerOuter.addEventListener("blur",this._onBlur)),this.input.addEventListener("input",this._onInput),this.input.addEventListener("paste",this._onPaste),this.input.addEventListener("focus",this._onFocus),this.input.addEventListener("blur",this._onBlur)}},{key:"_removeEventListeners",value:function t(){document.removeEventListener("keyup",this._onKeyUp),document.removeEventListener("keydown",this._onKeyDown),document.removeEventListener("click",this._onClick),document.removeEventListener("touchmove",this._onTouchMove),document.removeEventListener("touchend",this._onTouchEnd),document.removeEventListener("mousedown",this._onMouseDown),document.removeEventListener("mouseover",this._onMouseOver),this.isSelectOneElement&&(this.containerOuter.removeEventListener("focus",this._onFocus),this.containerOuter.removeEventListener("blur",this._onBlur)),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("paste",this._onPaste),this.input.removeEventListener("focus",this._onFocus),this.input.removeEventListener("blur",this._onBlur)}},{key:"_setInputWidth",value:function t(){(!this.placeholder||this.input.value&&this.input.value.length>=this.placeholder.length/1.25)&&(this.input.style.width=(0,j.getWidthOfInput)(this.input))}},{key:"_onKeyDown",value:function t(o){var e,a=this,r,i,n,s,l,e,c,u,d,f,h,p,g,_,y,m,v,b,x,w,M,e;o.target!==this.input&&!this.containerOuter.contains(o.target)||(r=o.target,i=this.store.getItemsFilteredByActive(),n=this.input===document.activeElement,s=this.dropdown.classList.contains(this.config.classNames.activeState),l=this.itemList&&this.itemList.children,e=String.fromCharCode(o.keyCode),c=46,u=8,d=13,f=65,h=27,p=38,g=40,_=33,y=34,m=o.ctrlKey||o.metaKey,this.isTextElement||!/[a-zA-Z0-9-_ ]/.test(e)||s||this.showDropdown(!0),this.canSearch=this.config.searchEnabled,b=function t(){var e,n,e;a.isTextElement&&r.value&&(e=a.input.value,a._canAddItem(i,e).response&&(s&&a.hideDropdown(),a._addItem(e),a._triggerChange(e),a.clearInput())),r.hasAttribute("data-button")&&(a._handleButtonAction(i,r),o.preventDefault()),s?(o.preventDefault(),(e=a.dropdown.querySelector("."+a.config.classNames.highlightedState))&&(i[0]&&(i[0].keyCode=13),a._handleChoiceAction(i,e))):a.isSelectOneElement&&(s||(a.showDropdown(!0),o.preventDefault()))},x=function t(){s&&(a.toggleDropdown(),a.containerOuter.focus())},w=function t(){var e,n,r,i,r;(s||a.isSelectOneElement)&&(s||a.showDropdown(!0),a.canSearch=!1,e=40===o.keyCode||34===o.keyCode?1:-1,r=void 0,(r=o.metaKey||34===o.keyCode||33===o.keyCode?0<e?Array.from(a.dropdown.querySelectorAll("[data-choice-selectable]")).pop():a.dropdown.querySelector("[data-choice-selectable]"):(i=a.dropdown.querySelector("."+a.config.classNames.highlightedState))?(0,j.getAdjacentEl)(i,"[data-choice-selectable]",e):a.dropdown.querySelector("[data-choice-selectable]"))&&((0,j.isScrolledIntoView)(r,a.choiceList,e)||a._scrollToChoice(r,e),a._highlightChoice(r)),o.preventDefault())},M=function t(){!n||o.target.value||a.isSelectOneElement||(a._handleBackspace(i),o.preventDefault())},k(e={},65,function t(){m&&l&&(a.canSearch=!1,a.config.removeItems&&!a.input.value&&a.input===document.activeElement&&a.highlightAll())}),k(e,13,b),k(e,27,x),k(e,38,w),k(e,33,w),k(e,40,w),k(e,34,w),k(e,8,M),k(e,46,M),(e=e)[o.keyCode]&&e[o.keyCode]())}},{key:"_onKeyUp",value:function t(e){var n,r,i,r,n,o,a;e.target===this.input&&(n=this.input.value,r=this.store.getItemsFilteredByActive(),i=this._canAddItem(r,n),this.isTextElement?(r=this.dropdown.classList.contains(this.config.classNames.activeState),n?(i.notice&&(n=this._getTemplate("notice",i.notice),this.dropdown.innerHTML=n.outerHTML),!0===i.response?r||this.showDropdown():!i.notice&&r&&this.hideDropdown()):r&&this.hideDropdown()):(a=8,(o=46)!==e.keyCode&&8!==e.keyCode||e.target.value?this.canSearch&&i.response&&this._handleSearch(this.input.value):!this.isTextElement&&this.isSearching&&(this.isSearching=!1,this.store.dispatch((0,f.activateChoices)(!0)))),this.canSearch=this.config.searchEnabled)}},{key:"_onInput",value:function t(){this.isSelectOneElement||this._setInputWidth()}},{key:"_onTouchMove",value:function t(){!0===this.wasTap&&(this.wasTap=!1)}},{key:"_onTouchEnd",value:function t(e){var n=e.target||e.touches[0].target,r=this.dropdown.classList.contains(this.config.classNames.activeState);!0===this.wasTap&&this.containerOuter.contains(n)&&(n!==this.containerOuter&&n!==this.containerInner||this.isSelectOneElement||(this.isTextElement?document.activeElement!==this.input&&this.input.focus():r||this.showDropdown(!0)),e.stopPropagation()),this.wasTap=!0}},{key:"_onMouseDown",value:function t(e){var n=e.target,r,i,o;n===this.choiceList&&this.isIe11&&(this.isScrollingOnIe=!0),this.containerOuter.contains(n)&&n!==this.input&&(r=void 0,i=this.store.getItemsFilteredByActive(),o=e.shiftKey,(r=(0,j.findAncestorByAttrName)(n,"data-button"))?this._handleButtonAction(i,r):(r=(0,j.findAncestorByAttrName)(n,"data-item"))?this._handleItemAction(i,r,o):(r=(0,j.findAncestorByAttrName)(n,"data-choice"))&&this._handleChoiceAction(i,r),e.preventDefault())}},{key:"_onClick",value:function t(e){var n=e.target,r=this.dropdown.classList.contains(this.config.classNames.activeState),e=this.store.getItemsFilteredByActive(),i;this.containerOuter.contains(n)?(n.hasAttribute("data-button")&&this._handleButtonAction(e,n),r?this.isSelectOneElement&&n!==this.input&&!this.dropdown.contains(n)&&this.hideDropdown(!0):this.isTextElement?document.activeElement!==this.input&&this.input.focus():this.canSearch?this.showDropdown(!0):(this.showDropdown(),this.containerOuter.focus())):(e.some(function(t){return t.highlighted})&&this.unhighlightAll(),this.containerOuter.classList.remove(this.config.classNames.focusState),r&&this.hideDropdown())}},{key:"_onMouseOver",value:function t(e){(e.target===this.dropdown||this.dropdown.contains(e.target))&&e.target.hasAttribute("data-choice")&&this._highlightChoice(e.target)}},{key:"_onPaste",value:function t(e){e.target!==this.input||this.config.paste||e.preventDefault()}},{key:"_onFocus",value:function t(e){var n=this,r=e.target,i,o;this.containerOuter.contains(r)&&(i=this.dropdown.classList.contains(this.config.classNames.activeState),{text:function t(){r===n.input&&n.containerOuter.classList.add(n.config.classNames.focusState)},"select-one":function t(){n.containerOuter.classList.add(n.config.classNames.focusState),r===n.input&&(i||n.showDropdown())},"select-multiple":function t(){r===n.input&&(n.containerOuter.classList.add(n.config.classNames.focusState),i||n.showDropdown(!0))}}[this.passedElement.type]())}},{key:"_onBlur",value:function t(e){var n=this,r=e.target,e,i,o,a;this.containerOuter.contains(r)&&!this.isScrollingOnIe?(e=this.store.getItemsFilteredByActive(),i=this.dropdown.classList.contains(this.config.classNames.activeState),o=e.some(function(t){return t.highlighted}),{text:function t(){r===n.input&&(n.containerOuter.classList.remove(n.config.classNames.focusState),o&&n.unhighlightAll(),i&&n.hideDropdown())},"select-one":function t(){n.containerOuter.classList.remove(n.config.classNames.focusState),r===n.containerOuter&&i&&!n.canSearch&&n.hideDropdown(),r===n.input&&i&&n.hideDropdown()},"select-multiple":function t(){r===n.input&&(n.containerOuter.classList.remove(n.config.classNames.focusState),i&&n.hideDropdown(),o&&n.unhighlightAll())}}[this.passedElement.type]()):(this.isScrollingOnIe=!1,this.input.focus())}},{key:"_regexFilter",value:function t(e){if(!e)return!1;var n=this.config.regexFilter,r;return new RegExp(n.source,"i").test(e)}},{key:"_scrollToChoice",value:function t(e,a){var s=this,n,r,r,n,l,i;e&&(n=this.choiceList.offsetHeight,r=e.offsetHeight,r=e.offsetTop+r,n=this.choiceList.scrollTop+n,l=0<a?this.choiceList.scrollTop+r-n:e.offsetTop,i=function e(){var t=4,n=s.choiceList.scrollTop,r=!1,i=void 0,o=void 0;0<a?(s.choiceList.scrollTop=n+(o=1<(i=(l-n)/4)?i:1),n<l&&(r=!0)):(s.choiceList.scrollTop=n-(o=1<(i=(n-l)/4)?i:1),l<n&&(r=!0)),r&&requestAnimationFrame(function(t){e()})},requestAnimationFrame(function(t){i(t,l,a)}))}},{key:"_highlightChoice",value:function t(){var e=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,r=Array.from(this.dropdown.querySelectorAll("[data-choice-selectable]")),n=n,i;r&&r.length&&(Array.from(this.dropdown.querySelectorAll("."+this.config.classNames.highlightedState)).forEach(function(t){t.classList.remove(e.config.classNames.highlightedState),t.setAttribute("aria-selected","false")}),n?this.highlightPosition=r.indexOf(n):n=(n=r.length>this.highlightPosition?r[this.highlightPosition]:r[r.length-1])||r[0],n.classList.add(this.config.classNames.highlightedState),n.setAttribute("aria-selected","true"),this.containerOuter.setAttribute("aria-activedescendant",n.id))}},{key:"_addItem",value:function t(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:-1,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:-1,o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:null,a=5<arguments.length&&void 0!==arguments[5]&&arguments[5],s=6<arguments.length&&void 0!==arguments[6]?arguments[6]:null,l=(0,j.isType)("String",e)?e.trim():e,c=s,e=this.store.getItems(),s=n||l,n=parseInt(r,10)||-1,r=0<=i?this.store.getGroupById(i):null,e=e?e.length+1:1;return this.config.prependValue&&(l=this.config.prependValue+l.toString()),this.config.appendValue&&(l+=this.config.appendValue.toString()),this.store.dispatch((0,f.addItem)(l,s,e,n,i,o,a,c)),this.isSelectOneElement&&this.removeActiveItems(e),r&&r.value?(0,j.triggerEvent)(this.passedElement,"addItem",{id:e,value:l,label:s,groupValue:r.value,keyCode:c}):(0,j.triggerEvent)(this.passedElement,"addItem",{id:e,value:l,label:s,keyCode:c}),this}},{key:"_removeItem",value:function t(e){if(!e||!(0,j.isType)("Object",e))return this;var n=e.id,r=e.value,i=e.label,o=e.choiceId,e=e.groupId,e=0<=e?this.store.getGroupById(e):null;return this.store.dispatch((0,f.removeItem)(n,o)),e&&e.value?(0,j.triggerEvent)(this.passedElement,"removeItem",{id:n,value:r,label:i,groupValue:e.value}):(0,j.triggerEvent)(this.passedElement,"removeItem",{id:n,value:r,label:i}),this}},{key:"_addChoice",value:function t(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=3<arguments.length&&void 0!==arguments[3]&&arguments[3],o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:-1,a=5<arguments.length&&void 0!==arguments[5]?arguments[5]:null,s=6<arguments.length&&void 0!==arguments[6]&&arguments[6],l=7<arguments.length&&void 0!==arguments[7]?arguments[7]:null,c,n,u,c;null!=e&&(u=(c=this.store.getChoices())?c.length+1:1,c=this.baseId+"-"+this.idNames.itemChoice+"-"+u,this.store.dispatch((0,f.addChoice)(e,n=n||e,u,o,i,c,a,s,l)),r&&this._addItem(e,n,u,void 0,a,s,l))}},{key:"_clearChoices",value:function t(){this.store.dispatch((0,f.clearChoices)())}},{key:"_addGroup",value:function t(e,n){var r=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"value",o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"label",a=(0,j.isType)("Object",e)?e.choices:Array.from(e.getElementsByTagName("OPTION")),s=n||Math.floor((new Date).valueOf()*Math.random()),n=!!e.disabled&&e.disabled;a?(this.store.dispatch((0,f.addGroup)(e.label,s,!0,n)),a.forEach(function(t){var e=t.disabled||t.parentNode&&t.parentNode.disabled;r._addChoice(t[i],(0,j.isType)("Object",t)?t[o]:t.innerHTML,t.selected,e,s,t.customProperties,t.placeholder)})):this.store.dispatch((0,f.addGroup)(e.label,e.id,!1,e.disabled))}},{key:"_getTemplate",value:function t(e){if(!e)return null;for(var n=this.config.templates,r=arguments.length,i=Array(1<r?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n[e].apply(n,i)}},{key:"_createTemplates",value:function t(){var i=this,o=this.config.classNames,e={containerOuter:function t(e){return(0,j.strToEl)('\n <div\n class="'+o.containerOuter+'"\n '+(i.isSelectElement?i.config.searchEnabled?'role="combobox" aria-autocomplete="list"':'role="listbox"':"")+'\n data-type="'+i.passedElement.type+'"\n '+(i.isSelectOneElement?'tabindex="0"':"")+'\n aria-haspopup="true"\n aria-expanded="false"\n dir="'+e+'"\n >\n </div>\n ')},containerInner:function t(){return(0,j.strToEl)('\n <div class="'+o.containerInner+'"></div>\n ')},itemList:function t(){var e,e=(0,c.default)(o.list,(k(e={},o.listSingle,i.isSelectOneElement),k(e,o.listItems,!i.isSelectOneElement),e));return(0,j.strToEl)('\n <div class="'+e+'"></div>\n ')},placeholder:function t(e){return(0,j.strToEl)('\n <div class="'+o.placeholder+'">\n '+e+"\n </div>\n ")},item:function t(e){var n,r=(0,c.default)(o.item,(k(n={},o.highlightedState,e.highlighted),k(n,o.itemSelectable,!e.highlighted),k(n,o.placeholder,e.placeholder),n));if(i.config.removeItemButton){var n,r=(0,c.default)(o.item,(k(n={},o.highlightedState,e.highlighted),k(n,o.itemSelectable,!e.disabled),k(n,o.placeholder,e.placeholder),n));return(0,j.strToEl)('\n <div\n class="'+r+'"\n data-item\n data-id="'+e.id+'"\n data-value="'+e.value+'"\n data-deletable\n '+(e.active?'aria-selected="true"':"")+"\n "+(e.disabled?'aria-disabled="true"':"")+"\n >\n "+e.label+'\x3c!--\n --\x3e<button\n type="button"\n class="'+o.button+'"\n data-button\n aria-label="Remove item: \''+e.value+"'\"\n >\n Remove item\n </button>\n </div>\n ")}return(0,j.strToEl)('\n <div\n class="'+r+'"\n data-item\n data-id="'+e.id+'"\n data-value="'+e.value+'"\n '+(e.active?'aria-selected="true"':"")+"\n "+(e.disabled?'aria-disabled="true"':"")+"\n >\n "+e.label+"\n </div>\n ")},choiceList:function t(){return(0,j.strToEl)('\n <div\n class="'+o.list+'"\n dir="ltr"\n role="listbox"\n '+(i.isSelectOneElement?"":'aria-multiselectable="true"')+"\n >\n </div>\n ")},choiceGroup:function t(e){var n=(0,c.default)(o.group,k({},o.itemDisabled,e.disabled));return(0,j.strToEl)('\n <div\n class="'+n+'"\n data-group\n data-id="'+e.id+'"\n data-value="'+e.value+'"\n role="group"\n '+(e.disabled?'aria-disabled="true"':"")+'\n >\n <div class="'+o.groupHeading+'">'+e.value+"</div>\n </div>\n ")},choice:function t(e){var n,n=(0,c.default)(o.item,o.itemChoice,(k(n={},o.itemDisabled,e.disabled),k(n,o.itemSelectable,!e.disabled),k(n,o.placeholder,e.placeholder),n));return(0,j.strToEl)('\n <div\n class="'+n+'"\n data-select-text="'+i.config.itemSelectText+'"\n data-choice\n data-id="'+e.id+'"\n data-value="'+e.value+'"\n '+(e.disabled?'data-choice-disabled aria-disabled="true"':"data-choice-selectable")+'\n id="'+e.elementId+'"\n '+(0<e.groupId?'role="treeitem"':'role="option"')+"\n >\n "+e.label+"\n </div>\n ")},input:function t(){var e=(0,c.default)(o.input,o.inputCloned);return(0,j.strToEl)('\n <input\n type="text"\n class="'+e+'"\n autocomplete="off"\n autocapitalize="off"\n spellcheck="false"\n role="textbox"\n aria-autocomplete="list"\n >\n ')},dropdown:function t(){var e=(0,c.default)(o.list,o.listDropdown);return(0,j.strToEl)('\n <div\n class="'+e+'"\n aria-expanded="false"\n >\n </div>\n ')},notice:function t(e){var n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=(0,c.default)(o.item,o.itemChoice,(k(n={},o.noResults,"no-results"===r),k(n,o.noChoices,"no-choices"===r),n));return(0,j.strToEl)('\n <div class="'+n+'">\n '+e+"\n </div>\n ")},option:function t(e){return(0,j.strToEl)('\n <option value="'+e.value+'" selected>'+e.label+"</option>\n ")}},n=this.config.callbackOnCreateTemplates,r={};n&&(0,j.isType)("Function",n)&&(r=n.call(this,j.strToEl)),this.config.templates=(0,j.extend)(e,r)}},{key:"_setLoading",value:function t(e){this.store.dispatch((0,f.setIsLoading)(e))}},{key:"_createInput",value:function t(){var n=this,e=this.passedElement.getAttribute("dir")||"ltr",r=this._getTemplate("containerOuter",e),i=this._getTemplate("containerInner"),o=this._getTemplate("itemList"),a=this._getTemplate("choiceList"),s=this._getTemplate("input"),l=this._getTemplate("dropdown");this.containerOuter=r,this.containerInner=i,this.input=s,this.choiceList=a,this.itemList=o,this.dropdown=l,this.passedElement.classList.add(this.config.classNames.input,this.config.classNames.hiddenState),this.passedElement.tabIndex="-1";var e=this.passedElement.getAttribute("style"),s,l,s,c,u;Boolean(e)&&this.passedElement.setAttribute("data-choice-orig-style",e),this.passedElement.setAttribute("style","display:none;"),this.passedElement.setAttribute("aria-hidden","true"),this.passedElement.setAttribute("data-choice","active"),(0,j.wrap)(this.passedElement,i),(0,j.wrap)(i,r),this.isSelectOneElement?s.placeholder=this.config.searchPlaceholderValue||"":this.placeholder&&(s.placeholder=this.placeholder,s.style.width=(0,j.getWidthOfInput)(s)),this.config.addItems||this.disable(),r.appendChild(i),r.appendChild(l),i.appendChild(o),this.isTextElement||l.appendChild(a),this.isSelectMultipleElement||this.isTextElement?i.appendChild(s):this.canSearch&&l.insertBefore(s,l.firstChild),this.isSelectElement?(s=Array.from(this.passedElement.getElementsByTagName("OPTGROUP")),this.highlightPosition=0,this.isSearching=!1,this._setLoading(!0),s&&s.length?s.forEach(function(t){n._addGroup(t,t.id||null)}):(l=Array.from(this.passedElement.options),s=this.config.sortFilter,c=this.presetChoices,l.forEach(function(t){c.push({value:t.value,label:t.innerHTML,selected:t.selected,disabled:t.disabled||t.parentNode.disabled,placeholder:t.hasAttribute("placeholder")})}),this.config.shouldSort&&c.sort(s),u=c.some(function(t){return t.selected}),c.forEach(function(t,e){var e;n.isSelectOneElement?n._addChoice(t.value,t.label,!(e=u||!u&&0<e)||t.selected,!!e&&t.disabled,void 0,t.customProperties,t.placeholder):n._addChoice(t.value,t.label,t.selected,t.disabled,void 0,t.customProperties,t.placeholder)})),this._setLoading(!1)):this.isTextElement&&this.presetItems.forEach(function(t){var e=(0,j.getType)(t);"Object"===e?t.value&&n._addItem(t.value,t.label,t.id,void 0,t.customProperties,t.placeholder):"String"===e&&n._addItem(t)})}}]),p);function p(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"[data-choice]",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(l(this,p),(0,j.isType)("String",t)){var n=document.querySelectorAll(t),r;if(1<n.length)for(var i=1;i<n.length;i++){new p(n[i],e)}}var o={silent:!1,items:[],choices:[],renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,removeItems:!0,removeItemButton:!1,editItems:!1,duplicateItems:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,regexFilter:null,shouldSort:!0,shouldSortItems:!1,sortFilter:j.sortByAlpha,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",addItemText:function t(e){return'Press Enter to add <b>"'+(0,j.stripHTML)(e)+'"</b>'},maxItemText:function t(e){return"Only "+e+" values can be added."},itemComparer:function t(e,n){return e===n},uniqueItemText:"Only unique values can be added.",classNames:{containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",hiddenState:"is-hidden",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},fuseOptions:{include:"score"},callbackOnInit:null,callbackOnCreateTemplates:null},a,s;this.idNames={itemChoice:"item-choice"},this.config=(0,j.extend)(o,e),"auto"!==this.config.renderSelectedChoices&&"always"!==this.config.renderSelectedChoices&&(this.config.silent||console.warn("renderSelectedChoices: Possible values are 'auto' and 'always'. Falling back to 'auto'."),this.config.renderSelectedChoices="auto"),this.store=new d.default(this.render),this.initialised=!1,this.currentState={},this.prevState={},this.currentValue="",this.element=t,this.passedElement=(0,j.isType)("String",t)?document.querySelector(t):t,this.passedElement?(this.isTextElement="text"===this.passedElement.type,this.isSelectOneElement="select-one"===this.passedElement.type,this.isSelectMultipleElement="select-multiple"===this.passedElement.type,this.isSelectElement=this.isSelectOneElement||this.isSelectMultipleElement,this.isValidElementType=this.isTextElement||this.isSelectElement,this.isIe11=!(!navigator.userAgent.match(/Trident/)||!navigator.userAgent.match(/rv[ :]11/)),!(this.isScrollingOnIe=!1)===this.config.shouldSortItems&&this.isSelectOneElement&&(this.config.silent||console.warn("shouldSortElements: Type of passed element is 'select-one', falling back to false.")),this.highlightPosition=0,this.canSearch=this.config.searchEnabled,this.placeholder=!1,this.isSelectOneElement||(this.placeholder=!!this.config.placeholder&&(this.config.placeholderValue||this.passedElement.getAttribute("placeholder"))),this.presetChoices=this.config.choices,this.presetItems=this.config.items,this.passedElement.value&&(this.presetItems=this.presetItems.concat(this.passedElement.value.split(this.config.delimiter))),this.baseId=(0,j.generateId)(this.passedElement,"choices-"),this.render=this.render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this.wasTap=!0,"classList"in document.documentElement||this.config.silent||console.error("Choices: Your browser doesn't support Choices"),(0,j.isElement)(this.passedElement)&&this.isValidElementType?"active"!==this.passedElement.getAttribute("data-choice")&&this.init():this.config.silent||console.error("Incompatible input passed")):this.config.silent||console.error("Passed element not found")}t.exports=i},function(t,e,n){function w(){console.log.apply(console,arguments)}function r(t,e){var n;for(n in this.list=t,this.options=e=e||{},a)a.hasOwnProperty(n)&&("boolean"==typeof a[n]?this.options[n]=(n in e?e:a)[n]:this.options[n]=e[n]||a[n])}function c(t,e,n){var r,i,o,a,s,l;if(e){if(-1!==(o=e.indexOf("."))?(r=e.slice(0,o),i=e.slice(o+1)):r=e,null!=(a=t[r]))if(i||"string"!=typeof a&&"number"!=typeof a)if(M(a))for(s=0,l=a.length;s<l;s++)c(a[s],i,n);else i&&c(a,i,n);else n.push(a)}else n.push(t);return n}function M(t){return"[object Array]"===Object.prototype.toString.call(t)}function i(t,e){this.options=e=e||{},this.options.location=e.location||i.defaultOptions.location,this.options.distance=("distance"in e?e:i.defaultOptions).distance,this.options.threshold=("threshold"in e?e:i.defaultOptions).threshold,this.options.maxPatternLength=e.maxPatternLength||i.defaultOptions.maxPatternLength,this.pattern=e.caseSensitive?t:t.toLowerCase(),this.patternLen=t.length,this.patternLen<=this.options.maxPatternLength&&(this.matchmask=1<<this.patternLen-1,this.patternAlphabet=this._calculatePatternAlphabet())}var o,a;a={id:null,caseSensitive:!1,include:[],shouldSort:!0,searchFn:i,sortFn:function t(e,n){return e.score-n.score},getFn:c,keys:[],verbose:!1,tokenize:!1,matchAllTokens:!1,tokenSeparator:/ +/g,minMatchCharLength:1,findAllMatches:!1},r.VERSION="2.7.3",r.prototype.set=function(t){return this.list=t},r.prototype.search=function(t){var e;return this.options.verbose&&w("\nSearch term:",t,"\n"),this.pattern=t,this.results=[],this.resultMap={},this._keyMap=null,this._prepareSearchers(),this._startSearch(),this._computeScore(),this._sort(),this._format()},r.prototype._prepareSearchers=function(){var t=this.options,e=this.pattern,n=t.searchFn,r=e.split(t.tokenSeparator),i=0,o=r.length;if(this.options.tokenize)for(this.tokenSearchers=[];i<o;i++)this.tokenSearchers.push(new n(r[i],t));this.fullSeacher=new n(e,t)},r.prototype._startSearch=function(){var t,e,n,r,i,o=this.options.getFn,a=this.list,s=a.length,l=this.options.keys,c=l.length,u=null;if("string"==typeof a[0])for(n=0;n<s;n++)this._analyze("",a[n],n,n);else for(this._keyMap={},n=0;n<s;n++)for(u=a[n],r=0;r<c;r++){if("string"!=typeof(t=l[r])){if(e=1-t.weight||1,this._keyMap[t.name]={weight:e},t.weight<=0||1<t.weight)throw new Error("Key weight has to be > 0 and <= 1");t=t.name}else this._keyMap[t]={weight:1};this._analyze(t,o(u,t,[]),u,n)}},r.prototype._analyze=function(t,e,n,r){var i,o,a,s,l,c,u,d,f,h,p,g,a,_,y,m=this.options,v=!1;if(null!=e){var o=[],b=0;if("string"==typeof e){if(i=e.split(m.tokenSeparator),m.verbose&&w("---------\nKey:",t),this.options.tokenize){for(_=0;_<this.tokenSearchers.length;_++){for(d=this.tokenSearchers[_],m.verbose&&w("Pattern:",d.pattern),g=!(f=[]),y=0;y<i.length;y++){var h=i[y],p,x={};(p=d.search(h)).isMatch?(x[h]=p.score,g=v=!0,o.push(p.score)):(x[h]=1,this.options.matchAllTokens||o.push(1)),f.push(x)}g&&b++,m.verbose&&w("Token scores:",f)}for(s=o[0],c=o.length,_=1;_<c;_++)s+=o[_];s/=c,m.verbose&&w("Token score average:",s)}u=this.fullSeacher.search(e),m.verbose&&w("Full text score:",u.score),l=u.score,void 0!==s&&(l=(l+s)/2),m.verbose&&w("Score average:",l),a=!this.options.tokenize||!this.options.matchAllTokens||b>=this.tokenSearchers.length,m.verbose&&w("Check Matches",a),(v||u.isMatch)&&a&&((a=this.resultMap[r])?a.output.push({key:t,score:l,matchedIndices:u.matchedIndices}):(this.resultMap[r]={item:n,output:[{key:t,score:l,matchedIndices:u.matchedIndices}]},this.results.push(this.resultMap[r])))}else if(M(e))for(_=0;_<e.length;_++)this._analyze(t,e[_],n,r)}},r.prototype._computeScore=function(){var t,e,n,r,i,o,a,s,l,c=this._keyMap,u=this.results;for(this.options.verbose&&w("\n\nComputing score:\n"),t=0;t<u.length;t++){for(i=(r=u[t].output).length,s=1,e=n=0;e<i;e++)l=(o=r[e].score)*(a=c?c[r[e].key].weight:1),1!==a?s=Math.min(s,l):(n+=l,r[e].nScore=l);u[t].score=1===s?n/i:s,this.options.verbose&&w(u[t])}},r.prototype._sort=function(){var t=this.options;t.shouldSort&&(t.verbose&&w("\n\nSorting...."),this.results.sort(t.sortFn))},r.prototype._format=function(){var t,e,n,r,i=this.options,o=i.getFn,a=[],s=this.results,l=i.include;for(i.verbose&&w("\n\nOutput:\n\n",s),n=i.id?function(t){s[t].item=o(s[t].item,i.id,[])[0]}:function(){},r=function t(e){var n,r,i,t,o,a=s[e];if(0<l.length){if(n={item:a.item},-1!==l.indexOf("matches"))for(i=a.output,n.matches=[],r=0;r<i.length;r++)o={indices:(t=i[r]).matchedIndices},t.key&&(o.key=t.key),n.matches.push(o);-1!==l.indexOf("score")&&(n.score=s[e].score)}else n=a.item;return n},t=0,e=s.length;t<e;t++)n(t),a.push(r(t));return a},i.defaultOptions={location:0,distance:100,threshold:.6,maxPatternLength:32},i.prototype._calculatePatternAlphabet=function(){for(var t={},e=0,e=0;e<this.patternLen;e++)t[this.pattern.charAt(e)]=0;for(e=0;e<this.patternLen;e++)t[this.pattern.charAt(e)]|=1<<this.pattern.length-e-1;return t},i.prototype._bitapScore=function(t,e){var t=t/this.patternLen,e=Math.abs(this.options.location-e);return this.options.distance?t+e/this.options.distance:e?1:t},i.prototype.search=function(t){var e,n,r,i,o,a,s,l,c,u,d,f,h,p,g,_,y,m,v,b,x,w,M,k=this.options;if(t=k.caseSensitive?t:t.toLowerCase(),this.pattern===t)return{isMatch:!0,score:0,matchedIndices:[[0,t.length-1]]};if(this.patternLen>k.maxPatternLength){if(v=!!(m=t.match(new RegExp(this.pattern.replace(k.tokenSeparator,"|")))))for(x=[],e=0,w=m.length;e<w;e++)M=m[e],x.push([t.indexOf(M),M.length-1]);return{isMatch:v,score:v?.5:1,matchedIndices:x}}for(i=k.findAllMatches,o=k.location,r=t.length,a=k.threshold,s=t.indexOf(this.pattern,o),b=[],e=0;e<r;e++)b[e]=0;for(-1!=s&&(a=Math.min(this._bitapScore(0,s),a),-1!=(s=t.lastIndexOf(this.pattern,o+this.patternLen))&&(a=Math.min(this._bitapScore(0,s),a))),s=-1,_=1,y=[],u=this.patternLen+r,e=0;e<this.patternLen;e++){for(l=0,c=u;l<c;)this._bitapScore(e,o+c)<=a?l=c:u=c,c=Math.floor((u-l)/2+l);for(u=c,d=Math.max(1,o-c+1),f=i?r:Math.min(o+c,r)+this.patternLen,(h=Array(f+2))[f+1]=(1<<e)-1,n=f;d<=n;n--)if((g=this.patternAlphabet[t.charAt(n-1)])&&(b[n-1]=1),h[n]=(h[n+1]<<1|1)&g,0!==e&&(h[n]|=(p[n+1]|p[n])<<1|1|p[n+1]),h[n]&this.matchmask&&(_=this._bitapScore(e,n-1))<=a){if(a=_,y.push(s=n-1),s<=o)break;d=Math.max(1,2*o-s)}if(this._bitapScore(e+1,o)>a)break;p=h}return{isMatch:0<=s,score:0===_?.001:_,matchedIndices:x=this._getMatchedIndices(b)}},i.prototype._getMatchedIndices=function(t){for(var e,n=[],r=-1,i=-1,o=0,a=t.length;o<a;o++)(e=t[o])&&-1===r?r=o:e||-1===r||((i=o-1)-r+1>=this.options.minMatchCharLength&&n.push([r,i]),r=-1);return t[o-1]&&o-1-r+1>=this.options.minMatchCharLength&&n.push([r,o-1]),n},t.exports=r},function(t,e,n){var r,e,o;function a(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var r=ig(n);if("string"===r||"number"===r)t.push(n);else if(Array.isArray(n))t.push(a.apply(null,n));else if("object"===r)for(var i in n)o.call(n,i)&&n[i]&&t.push(i)}}return t.join(" ")}o={}.hasOwnProperty,void 0!==t&&t.exports?t.exports=a:void 0===(e=function(){return a}.apply(e,r=[]))||(t.exports=e)},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t},s=n(5),l,c=r(n(26)),a=(a(u,[{key:"getState",value:function t(){return this.store.getState()}},{key:"dispatch",value:function t(e){this.store.dispatch(e)}},{key:"subscribe",value:function t(e){this.store.subscribe(e)}},{key:"isLoading",value:function t(){var e;return this.store.getState().general.loading}},{key:"getItems",value:function t(){var e;return this.store.getState().items}},{key:"getItemsFilteredByActive",value:function t(){var e,n;return this.getItems().filter(function(t){return!0===t.active},[])}},{key:"getItemsReducedToValues",value:function t(){var e,n;return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getItems()).reduce(function(t,e){return t.push(e.value),t},[])}},{key:"getChoices",value:function t(){var e;return this.store.getState().choices}},{key:"getChoicesFilteredByActive",value:function t(){var e,n;return this.getChoices().filter(function(t){return!0===t.active})}},{key:"getChoicesFilteredBySelectable",value:function t(){var e,n;return this.getChoices().filter(function(t){return!0!==t.disabled})}},{key:"getSearchableChoices",value:function t(){var e;return this.getChoicesFilteredBySelectable().filter(function(t){return!0!==t.placeholder})}},{key:"getChoiceById",value:function t(e){var n,r;return!!e&&this.getChoicesFilteredByActive().find(function(t){return t.id===parseInt(e,10)})}},{key:"getGroups",value:function t(){var e;return this.store.getState().groups}},{key:"getGroupsFilteredByActive",value:function t(){var e=this.getGroups(),n=this.getChoices(),r;return e.filter(function(t){var e=!0===t.active&&!1===t.disabled,t=n.some(function(t){return!0===t.active&&!1===t.disabled});return e&&t},[])}},{key:"getGroupById",value:function t(e){var n,r;return this.getGroups().find(function(t){return t.id===e})}},{key:"getPlaceholderChoice",value:function t(){var e=this.getChoices(),n;return[].concat(i(e)).reverse().find(function(t){return!0===t.placeholder})}}]),u);function u(){o(this,u),this.store=(0,s.createStore)(c.default,window.devToolsExtension?window.devToolsExtension():void 0)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}e.default=a,t.exports=a},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.compose=e.applyMiddleware=e.bindActionCreators=e.combineReducers=e.createStore=void 0;var i,o=r(n(6)),a,s=r(n(21)),l,c=r(n(23)),u,d=r(n(24)),f,h=r(n(25)),p;r(n(22)),e.createStore=o.default,e.combineReducers=s.default,e.bindActionCreators=c.default,e.applyMiddleware=d.default,e.compose=h.default},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function p(t,e,n){function r(){f===d&&(f=d.slice())}function i(){return u}function o(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var n=!0;return r(),f.push(e),function(){var t;n&&(n=!1,r(),t=f.indexOf(e),f.splice(t,1))}}function a(t){if(!(0,g.default)(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(h)throw new Error("Reducers may not dispatch actions.");try{h=!0,u=c(u,t)}finally{h=!1}for(var e=d=f,n=0,r;n<e.length;n++){(0,e[n])()}return t}function s(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");c=t,a({type:y.INIT})}function l(){var t,i=o,t={subscribe:function t(e){function n(){e.next&&e.next(u)}if("object"!=ig(e))throw new TypeError("Expected the observer to be an object.");var r;return n(),{unsubscribe:i(n)}}};return t[_.default]=function(){return this},t}var e;if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(p)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var c=t,u=e,d=[],f=d,h=!1;return a({type:y.INIT}),(e={dispatch:a,subscribe:o,getState:i,replaceReducer:s})[_.default]=l,e}e.__esModule=!0,e.ActionTypes=void 0,e.default=p;var i,g=r(n(7)),o,_=r(n(17)),y=e.ActionTypes={INIT:"@@redux/INIT"}},function(t,e,n){function r(t){if(!a(t)||i(t)!=s)return!1;var t=o(t);if(null===t)return!0;var t=u.call(t,"constructor")&&t.constructor;return"function"==typeof t&&t instanceof t&&c.call(t)==d}var i=n(8),o=n(14),a=n(16),s="[object Object]",l=Function.prototype,n=Object.prototype,c=l.toString,u=n.hasOwnProperty,d=c.call(Object);t.exports=r},function(t,e,n){function r(t){return null==t?void 0===t?l:s:(c&&c in Object(t)?o:a)(t)}var i=n(9),o=n(12),a=n(13),s="[object Null]",l="[object Undefined]",c=i?i.toStringTag:void 0;t.exports=r},function(t,e,n){var r,n=n(10).Symbol;t.exports=n},function(t,e,n){var r=n(11),n="object"==("undefined"==typeof self?"undefined":ig(self))&&self&&self.Object===Object&&self,n=r||n||Function("return this")();t.exports=n},function(e,t){!function(t){var t="object"==ig(t)&&t&&t.Object===Object&&t;e.exports=t}.call(t,function(){return this}())},function(t,e,n){function r(t){var e=o.call(t,s),n=t[s];try{var r=!(t[s]=void 0)}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}var i=n(9),n=Object.prototype,o=n.hasOwnProperty,a=n.toString,s=i?i.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return i.call(t)}var r,i=Object.prototype.toString;t.exports=n},function(t,e,n){var r,n=n(15)(Object.getPrototypeOf,Object);t.exports=n},function(t,e){function n(e,n){return function(t){return e(n(t))}}t.exports=n},function(t,e){function n(t){return null!=t&&"object"==ig(t)}t.exports=n},function(t,e,n){t.exports=n(18)},function(t,o,a){!function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(o,"__esModule",{value:!0});var e,r,i=n(a(20)),e="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:e,e=(0,i.default)(e);o.default=e}.call(o,function(){return this}(),a(19)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){function n(t){var e,t=t.Symbol;return"function"==typeof t?t.observable?e=t.observable:(e=t("observable"),t.observable=e):e="@@observable",e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function f(t,e){var e=e&&e.type,n;return"Given action "+(e&&'"'+e.toString()+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function i(i){Object.keys(i).forEach(function(t){var e=i[t],n,r;if(void 0===e(void 0,{type:a.ActionTypes.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===e(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+a.ActionTypes.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function o(t){for(var e=Object.keys(t),c={},n=0;n<e.length;n++){var r=e[n];"function"==typeof t[r]&&(c[r]=t[r])}var u=Object.keys(c),d=void 0;try{i(c)}catch(t){d=t}return function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];if(d)throw d;for(var n=!1,r={},i=0;i<u.length;i++){var o=u[i],a=c[o],s=t[o],l=a(s,e);if(void 0===l){var a=f(o,e);throw new Error(a)}r[o]=l,n=n||l!==s}return n?r:t}}e.__esModule=!0,e.default=o;var a=n(6),s,n=(r(n(7)),n(22));r(n)},function(t,e){function n(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}e.__esModule=!0,e.default=n},function(t,e){function s(t,e){return function(){return e(t.apply(void 0,arguments))}}function n(t,e){if("function"==typeof t)return s(t,e);if("object"!=ig(t)||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":ig(t))+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(t),r={},i=0;i<n.length;i++){var o=n[i],a=t[o];"function"==typeof a&&(r[o]=s(a,e))}return r}e.__esModule=!0,e.default=n},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function i(){for(var t=arguments.length,a=Array(t),e=0;e<t;e++)a[e]=arguments[e];return function(o){return function(t,e,n){var e=o(t,e,n),r=e.dispatch,n=[],i={getState:e.getState,dispatch:function t(e){return r(e)}},n=a.map(function(t){return t(i)}),r=l.default.apply(void 0,n)(e.dispatch);return s({},e,{dispatch:r})}}}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e],r;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.default=i;var o,l=r(n(25))},function(t,e){function n(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce(function(t,e){return function(){return t(e.apply(void 0,arguments))}})}e.__esModule=!0,e.default=n},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o,a=r(n(27)),s,l=r(n(28)),c,u=r(n(29)),d,n=r(n(30)),f=(0,i.combineReducers)({items:a.default,groups:l.default,choices:u.default,general:n.default}),h;e.default=function t(e,n){var e=e;return"CLEAR_ALL"===n.type&&(e=void 0),f(e,n)}},function(t,e){function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],n=arguments[1],t;switch(n.type){case"ADD_ITEM":return[].concat(r(e),[{id:n.id,choiceId:n.choiceId,groupId:n.groupId,value:n.value,label:n.label,active:!0,highlighted:!1,customProperties:n.customProperties,placeholder:n.placeholder||!1,keyCode:null}]).map(function(t){return t.highlighted&&(t.highlighted=!1),t});case"REMOVE_ITEM":return e.map(function(t){return t.id===n.id&&(t.active=!1),t});case"HIGHLIGHT_ITEM":return e.map(function(t){return t.id===n.id&&(t.highlighted=n.highlighted),t});default:return e}}},function(t,e){function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],n=arguments[1];switch(n.type){case"ADD_GROUP":return[].concat(r(e),[{id:n.id,value:n.value,active:n.active,disabled:n.disabled}]);case"CLEAR_CHOICES":return e.groups=[];default:return e}}},function(t,e){function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],n=arguments[1];switch(n.type){case"ADD_CHOICE":return[].concat(o(e),[{id:n.id,elementId:n.elementId,groupId:n.groupId,value:n.value,label:n.label||n.value,disabled:n.disabled||!1,selected:!1,active:!0,score:9999,customProperties:n.customProperties,placeholder:n.placeholder||!1,keyCode:null}]);case"ADD_ITEM":var t=e;return n.activateOptions&&(t=e.map(function(t){return t.active=n.active,t})),t=-1<n.choiceId?e.map(function(t){return t.id===parseInt(n.choiceId,10)&&(t.selected=!0),t}):t;case"REMOVE_ITEM":return-1<n.choiceId?e.map(function(t){return t.id===parseInt(n.choiceId,10)&&(t.selected=!1),t}):e;case"FILTER_CHOICES":var r=n.results,i;return e.map(function(e){return e.active=r.some(function(t){return t.item.id===e.id&&(e.score=t.score,!0)}),e});case"ACTIVATE_CHOICES":return e.map(function(t){return t.active=n.active,t});case"CLEAR_CHOICES":return e.choices=[];default:return e}}},function(t,e){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{loading:!1},n=arguments[1];return"LOADING"!==n.type?e:{loading:n.isLoading}}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.addItem=function(t,e,n,r,i,o,a,s){return{type:"ADD_ITEM",value:t,label:e,id:n,choiceId:r,groupId:i,customProperties:o,placeholder:a,keyCode:s}},e.removeItem=function(t,e){return{type:"REMOVE_ITEM",id:t,choiceId:e}},e.highlightItem=function(t,e){return{type:"HIGHLIGHT_ITEM",id:t,highlighted:e}},e.addChoice=function(t,e,n,r,i,o,a,s,l){return{type:"ADD_CHOICE",value:t,label:e,id:n,groupId:r,disabled:i,elementId:o,customProperties:a,placeholder:s,keyCode:l}},e.filterChoices=function(t){return{type:"FILTER_CHOICES",results:t}},e.activateChoices=function(){var t;return{type:"ACTIVATE_CHOICES",active:!(0<arguments.length&&void 0!==arguments[0])||arguments[0]}},e.clearChoices=function(){return{type:"CLEAR_CHOICES"}},e.addGroup=function(t,e,n,r){return{type:"ADD_GROUP",value:t,id:e,active:n,disabled:r}},e.clearAll=function(){return{type:"CLEAR_ALL"}},e.setIsLoading=function(t){return{type:"LOADING",isLoading:t}}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==ig(Symbol.iterator)?function(t){return ig(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":ig(t)},r=(e.capitalise=function(t){return t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()})},e.generateChars=function(t){for(var e="",n=0,r;n<t;n++){e+=l(0,36).toString(36)}return e}),i=(e.generateId=function(t,e){var t=t.id||t.name&&t.name+"-"+r(2)||r(4),t;return e+(t=t.replace(/(:|\.|\[|\]|,)/g,""))},e.getType=function(t){return Object.prototype.toString.call(t).slice(8,-1)}),a=e.isType=function(t,e){var n=i(e);return null!=e&&n===t},o=(e.isNode=function(t){return"object"===("undefined"==typeof Node?"undefined":n(Node))?t instanceof Node:t&&"object"===(void 0===t?"undefined":n(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},e.isElement=function(t){return"object"===("undefined"==typeof HTMLElement?"undefined":n(HTMLElement))?t instanceof HTMLElement:t&&"object"===(void 0===t?"undefined":n(t))&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName},e.extend=function n(){for(var r={},t=arguments.length,e=function t(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a("Object",e[t])?r[t]=n(!0,r[t],e[t]):r[t]=e[t])},i=0;i<t;i++){var o=arguments[i];a("Object",o)&&e(o)}return r},e.whichTransitionEvent=function(){var t,e=document.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in n)if(void 0!==e.style[t])return n[t]},e.whichAnimationEvent=function(){var t,e=document.createElement("fakeelement"),n={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(t in n)if(void 0!==e.style[t])return n[t]}),s=(e.getParentsUntil=function(t,e,n){for(var r=[],i;t&&t!==document;t=t.parentNode){if(e){var i=e.charAt(0);if("."===i&&t.classList.contains(e.substr(1)))break;if("#"===i&&t.id===e.substr(1))break;if("["===i&&t.hasAttribute(e.substr(1,e.length-1)))break;if(t.tagName.toLowerCase()===e)break}n?("."===(i=n.charAt(0))&&t.classList.contains(n.substr(1))&&r.push(t),"#"===i&&t.id===n.substr(1)&&r.push(t),"["===i&&t.hasAttribute(n.substr(1,n.length-1))&&r.push(t),t.tagName.toLowerCase()===n&&r.push(t)):r.push(t)}return 0===r.length?null:r},e.wrap=function(t,e){return e=e||document.createElement("div"),t.nextSibling?t.parentNode.insertBefore(e,t.nextSibling):t.parentNode.appendChild(e),e.appendChild(t)},e.getSiblings=function(t){for(var e=[],n=t.parentNode.firstChild;n;n=n.nextSibling)1===n.nodeType&&n!==t&&e.push(n);return e},e.findAncestor=function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t},e.findAncestorByAttrName=function(t,e){for(var n=t;n;){if(n.hasAttribute(e))return n;n=n.parentElement}return null},e.debounce=function(i,o,a){var s;return function(){var e=this,n=arguments,t=function t(){s=null,a||i.apply(e,n)},r=a&&!s;clearTimeout(s),s=setTimeout(t,o),r&&i.apply(e,n)}},e.getElemDistance=function(t){var e=0;if(t.offsetParent)for(;e+=t.offsetTop,t=t.offsetParent;);return 0<=e?e:0},e.getElementOffset=function(t,e){var e=e;return 0<(e=1<e?1:e)&&(e=0),Math.max(t.offsetHeight*e)},e.getAdjacentEl=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;if(t&&e){var r=t.parentNode.parentNode,e=Array.from(r.querySelectorAll(e)),t=e.indexOf(t),i;return e[t+(0<n?1:-1)]}},e.getScrollPosition=function(t){return"bottom"===t?Math.max((window.scrollY||window.pageYOffset)+(window.innerHeight||document.documentElement.clientHeight)):window.scrollY||window.pageYOffset},e.isInView=function(t,e,n){return this.getScrollPosition(e)>this.getElemDistance(t)+this.getElementOffset(t,n)},e.isScrolledIntoView=function(t,e){var n;if(t){var r=void 0;return 0<(2<arguments.length&&void 0!==arguments[2]?arguments[2]:1)?e.scrollTop+e.offsetHeight>=t.offsetTop+t.offsetHeight:t.offsetTop>=e.scrollTop}},e.stripHTML=function(t){return t.replace(/&/g,"&").replace(/>/g,"&rt;").replace(/</g,"<").replace(/"/g,""")}),l=(e.addAnimation=function(e,n){var r=o(),t=function t(){e.classList.remove(n),e.removeEventListener(r,t,!1)};e.classList.add(n),e.addEventListener(r,t,!1)},e.getRandomNumber=function(t,e){return Math.floor(Math.random()*(e-t)+t)}),c=e.strToEl=(u=document.createElement("div"),function(t){var e=t.trim(),t=void 0;for(u.innerHTML=e,t=u.children[0];u.firstChild;)u.removeChild(u.firstChild);return t}),u;e.getWidthOfInput=function(t){var e=t.value||t.placeholder,n=t.offsetWidth,r,i;return e&&((r=c("<span>"+s(e)+"</span>")).style.position="absolute",r.style.padding="0",r.style.top="-9999px",r.style.left="-9999px",r.style.width="auto",r.style.whiteSpace="pre",document.body.contains(t)&&window.getComputedStyle&&(i=window.getComputedStyle(t))&&(r.style.fontSize=i.fontSize,r.style.fontFamily=i.fontFamily,r.style.fontWeight=i.fontWeight,r.style.fontStyle=i.fontStyle,r.style.letterSpacing=i.letterSpacing,r.style.textTransform=i.textTransform,r.style.padding=i.padding),document.body.appendChild(r),e&&r.offsetWidth!==t.offsetWidth&&(n=r.offsetWidth+4),document.body.removeChild(r)),n+"px"},e.sortByAlpha=function(t,e){var t=(t.label||t.value).toLowerCase(),e=(e.label||e.value).toLowerCase();return t<e?-1:e<t?1:0},e.sortByScore=function(t,e){return t.score-e.score},e.triggerEvent=function(t,e){var n,e=new CustomEvent(e,{detail:2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,bubbles:!0,cancelable:!0});return t.dispatchEvent(e)}},function(t,e){function n(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}var r,c,i,o,u;Array.from||(Array.from=(r=Object.prototype.toString,c=function t(e){return"function"==typeof e||"[object Function]"===r.call(e)},i=function t(e){var e=Number(e);return isNaN(e)?0:0!==e&&isFinite(e)?(0<e?1:-1)*Math.floor(Math.abs(e)):e},o=Math.pow(2,53)-1,u=function t(e){var e=i(e);return Math.min(Math.max(e,0),o)},function(t){var e=this,n=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,i=1<arguments.length?arguments[1]:void 0;if(void 0!==i){if(!c(i))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(r=arguments[2])}for(var o,a=u(n.length),s=c(e)?Object(new e(a)):new Array(a),l=0;l<a;)o=n[l],s[l]=i?void 0===r?i(o,l):i.call(r,o,l):o,l+=1;return s.length=a,s})),Array.prototype.find||(Array.prototype.find=function(t){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(e=n[o],t.call(i,e,o,n))return e}),n.prototype=window.Event.prototype,window.CustomEvent=n}],n.c=i,n.p="/assets/scripts/dist/",n(0);function n(t){if(i[t])return i[t].exports;var e=i[t]={exports:{},id:t,loaded:!1};return r[t].call(e.exports,e,e.exports,n),e.loaded=!0,e.exports}var r,i},t.exports=r()}),aO=e(Qs),sO=Qs.Choices,lO,cO,uO,dO=new Bz,fO,hO,pO,gO,_O,yO;function mO(){bO(),lO.style.display="block",(uO=new aO(lO,{removeItemButton:!0,placeholderValue:TI.series_control_multi_text,noChoicesText:TI.series_control_multi_none_text,maxItemCount:TI.max_series,position:"stack-2"==TI.layout.layout_order||"stack-3"==TI.layout.layout_order?"top":"bottom",itemSelectText:TI.series_control_select_text})).setValueByChoice(TI.series_filter);var t=(cO=document.querySelector(".choices")).querySelector("div.choices__inner");t.style.display="flex";var t=t.querySelector("input.choices__input").style;t.width=null,t.flex="1 1 auto",t.flexShrink="0",t.overflow="hidden",t.textOverflow="ellipsis",t.whiteSpace="nowrap",t.minWidth=0,lO.addEventListener("change",function(){TI.series_filter=uO.getValue().map(function(t){return t.value}),iO()})}function vO(){uO&&uO.destroy(),lO.style.display="none",uO=null}function bO(){var t=my(lO).selectAll("option").data(DD.data.column_names.value),e=t.enter().append("option");t.merge(e).attr("value",function(t){return t}).text(function(t){return t}),t.exit().remove()}function xO(){lO=lO||document.getElementById("series-filter");var t=fO!=TI.series_control_multi_text||hO!=TI.series_control_multi_none_text||pO!=TI.series_control_select_text||gO!=TI.max_series||yO!=TI.layout.layout_order,e=DD.data.column_names.value.join("")!=_O;"multi"==TI.series_filter_mode?(uO?(t||e)&&(uO.destroy(),mO()):mO(),uO.removeActiveItems(),uO.setValueByChoice(TI.series_filter),fO=TI.series_control_multi_text,hO=TI.series_control_multi_none_text,pO=TI.series_control_select_text,gO=TI.max_series,_O=DD.data.column_names.value.join(""),yO=TI.layout.layout_order,dO.select(".choices__inner").style("background",TI.series_control_background||TI.layout.background_color).style("border-color",TI.series_control_border),dO.select(".choices__input").style("background",TI.series_control_background||TI.layout.background_color).style("color",TI.series_control_text||TI.layout.font_color).style("font-size","1rem").style("margin-bottom","2px"),dO.select("::placeholder").style("color",TI.series_control_text||TI.layout.font_color),dO.select(".choices__list").style("color","#333333"),dO.select(".choices__list--dropdown .choices__item").style("font-size","1rem"),dO.select(".choices .choices__inner .choices__item").style("color",TI.series_control_pill_text).style("background-color",TI.series_control_pill_background).style("border-color",TI.series_control_pill_text).style("border-radius",TI.series_control_pill_radius+"px").style("font-size","1rem"),document.head.querySelector("#choices-styles").innerHTML=dO.print(),dO.clear()):vO()}function wO(){var t="single"==TI.series_filter_mode?DD.data.column_names.value:[];t.length&&TI.series_control_single_all&&(t=[TI.series_control_single_all_text].concat(t)),zF.options(t).value(TI.series_filter[0]||t[0]||null).update()}function MO(){var t=zO.row_filter_values;t.length&&TI.row_filter_control_all&&(t=[TI.row_filter_control_all_text].concat(t)),EF.options(t).value(TI.row_filter).update()}function kO(){var t=TI.log_control_y_visible&&"line"==OD.mode;NF.options(t?[TI.log_control_y_text_linear,TI.log_control_y_text_log]:[]).value("log"==TI.y.numeric_scale_type?TI.log_control_y_text_log:TI.log_control_y_text_linear).update()}function jO(){wO(),xO(),MO(),kO()}var AO=TI.line_curve,IO=OD.mode,TO,NO,zO,EO,SO,LO,DO,CO,OO,PO,RO,YO,UO,BO,FO,ZO,HO,GO,QO,qO,VO,WO,$O,XO,JO;function KO(t){TO=MF(wF.getFormatterFunction()),NO=kF(wF.getFormatterFunction()),document.body.setAttribute("class","chart-type-"+TI.chart_type.replace(/_/g,"-")),RD();var t=t||"line"==OD.mode&&"line"===IO&&TI.line_curve!==AO;AO=TI.line_curve,IO=OD.mode,rP(),jO(),gP(),tP(),jF.update(),wP(),pF(t),OC.attr("font-family",TI.layout.body_font.name),tP(),_F()}function tP(){SF.update(),LF.update(),DF.update()}function eP(t){if("number"==zO.label_type){var e=HO(t);return!isNaN(e)&&OD.force_categorical?e.toString():isNaN(e)?null:e}if("datetime"!=zO.label_type)return""==t?null:t;var t=zO.labelParse(t);return OD.force_categorical?t?t.toString():null:t||null}function nP(t,e){return"data"==TI.sort_mode?[fk,sk]["ascending"==TI.sort_direction?1:0](t.row_index,e.row_index):"label"==TI.sort_mode?[fk,sk]["ascending"==TI.sort_direction?1:0](t.label,e.label):"value"==TI.sort_mode?[fk,sk]["ascending"==TI.sort_direction?1:0](t.value,e.value):void 0}function rP(){HO=wF.getParser();var t=OD.combo_chart||!1,b=OD.dual_axis||!1;if(!DD.data.processed||EO!=OD.facets_show||TI.localization.input_decimal_separator!=SO||TI.series_filter.toString()!=DO||TI.label_filter.toString()!=CO||TI.series_filter_mode!=RO||TI.max_series!=LO||TI.label_data_type!=OO||TI.datetime_input_format!=PO||t!=FO||b!=BO||TI.secondary_series!=ZO||OD.force_categorical!=GO||TI.sort_mode!=QO||TI.sort_direction!=qO||TI.row_filter!=YO||TI.row_filter_all!=UO||TI.number_format_prop!=VO||TI.popup_series_text!=WO||TI.uniform_bar_thickness!=$O||TI.uniform_column_width!=XO||TI.chart_type!=JO){var n="filter"in DD.data.column_names,r={},i=[];DD.data.forEach(function(t,e){t.row_index=e,n&&!r[t.filter]&&""!==t.filter&&(r[t.filter]=!0,i.push(t.filter))}),DD.data.column_names.value.forEach(function(t,e){DD.data.column_names.value[e]=""==t?"Series "+(e+1):t.trim()});var x={};if(t)for(var e=0;e<TI.secondary_series;e++)x[DD.data.column_names.value[e]]=!0;"single"==TI.series_filter_mode&&(0!=TI.series_filter.length||TI.series_control_single_all?TI.series_filter=TI.series_filter.slice(0,1):TI.series_filter=[DD.data.column_names.value[0]]),"none"==TI.legend_filter_mode&&"none"==TI.series_filter_mode&&RO&&"none"!=RO&&(TI.series_filter=[]);for(var o=0<TI.series_filter.length,a={},e=0;e<TI.series_filter.length;e++){var s=DD.data.column_names.value.indexOf(TI.series_filter[e]);a[s]=!0}var w=DD.data.map(function(t){var e=o?t.value.filter(function(t,e){return a[e]}):t.value,e={row_index:t.row_index,label:t.label,value:e.slice(0,TI.max_series),metadata:t.metadata};return"facet"in t&&(e.facet=t.facet),"filter"in t&&(e.filter=t.filter),e}),M=function t(e){return w.column_names.value[e]},l;if(n?(0!=TI.row_filter.length||TI.row_filter_control_all||TI.row_filter.push(i[0]),w=w.filter(function(t){return null==t.filter||0==TI.row_filter.length||t.filter==TI.row_filter})):TI.row_filter=[],0<TI.label_filter.length){for(var c={},e=0;e<TI.label_filter.length;e++)c[TI.label_filter[e]]=!0;w=w.filter(function(t){return c[t.label]})}for(l in w.column_names={},DD.data.column_names)"value"!=l?w.column_names[l]=DD.data.column_names[l]:w.column_names.value=DD.data.column_names.value.filter(function(t,e){return!o||a[e]}).slice(0,TI.max_series);if(zO=[],OD.facet_by_series)for(var u=0;u<w.column_names.value.length;u++)zO.push({key:w.column_names.value[u],values:w.slice()});else zO=Fj().key(function(t){return t.facet||""}).entries(w),OD.facets_show||(zO=[zO[0]||{key:"",values:[]}]);var d=AF(w,"label")[0],f,f="auto"==TI.label_data_type?"line"!=OD.mode?"categorical":d.type:TI.label_data_type;zO.label_type=f,zO.label_description=d.description,zO.labelTest=d.test,zO.labelParse=function(t){return"auto"==TI.datetime_input_format?d.parse(t):Mw(TI.datetime_input_format)(t)},zO.labelFormat=function(t){if("number"==zO.label_type)return OD.force_categorical?t:TO(t);if("datetime"!=zO.label_type)return t;var e,e="auto"==TI.x_axis_date_format?"auto"===TI.datetime_input_format?zO.label_description:TI.datetime_input_format:TI.x_axis_date_format;return OD.force_categorical?ww(e)(new Date(t)):ww(e)(t)},zO.label_extent=gk(w,function(t){return eP(t.label)}),zO.label_domain=[];var k={},h,f,h,f,h=jk(w,function(t){return jk(t.value.map(function(t,e){return b&&x[M(e)]?null:HO(t)}))}),f=kk(w,function(t){return kk(t.value.map(function(t,e){return b&&x[M(e)]?null:HO(t)}))});void 0===h&&(h=0),void 0===f&&(f=Math.max(h+100,100)),zO.value_extent=[h,f],zO.value_extent_stack=[h,f],h=jk(w,function(t){return jk(t.value.map(function(t,e){return b&&x[M(e)]?HO(t):null}))}),f=kk(w,function(t){return kk(t.value.map(function(t,e){return b&&x[M(e)]?HO(t):null}))}),zO.value_extent_secondary=[h,f],zO.stack_labels=[],zO.forEach(function(t,e){t.name=t.key,t.index=e,t.series=[],t.series_primary=[],t.series_secondary=[],t.label_extent=zO.label_extent.slice(),t.label_type=zO.label_type,t.label_domain_to_sort=[],t.dataset_label_domain=zO.label_domain,t.dataset_value_extent_stack=zO.value_extent_stack,t.dataset_value_extent=zO.value_extent,t.dataset_value_extent_secondary=zO.value_extent_secondary,t.value_extent=[0,0],t.value_extent_stack=[0,0],t.value_extent_secondary=[0,0],t.value_extent_stack_secondary=[0,0],t.stack_totals_lookup={};for(var n=0,r=OD.facet_by_series?e:0;r<(OD.facet_by_series?e+1:w.column_names.value.length);r++){for(var i=M(r),o={name:i,index:r,index_primary:x[i]?null:n++,data_points:[],data_points_with_blanks:[],data_points_stack:[],data_points_stack_prop:[],data_points_stack_stream:[],data_points_positive_sum:0,data_point_stack_max:0,secondary:x[i]},a=0;a<t.values.length;a++){var s,l=eP((s=t.values[a]).label),c=HO(s.value[r]),u,d;null!=l&&(isNaN(c)?o.data_points_with_blanks.push(null):(d={label:l,label_formatted:zO.labelFormat(l),row_values:s.value,value:c,value_display:c,series:r,series_primary:o.index_primary,secondary:o.secondary,index:a,facet:t,row_index:s.row_index,metadata:s.metadata,SERIES:o.name},o.data_points.push(d),o.data_points_with_blanks.push(d)),0<c&&(o.data_points_positive_sum+=c),!b||b&&!o.secondary?(c<t.value_extent[0]&&(t.value_extent[0]=c),c>t.value_extent[1]&&(t.value_extent[1]=c)):(c<t.value_extent_secondary[0]&&(t.value_extent_secondary[0]=c),c>t.value_extent_secondary[1]&&(t.value_extent_secondary[1]=c)))}(o.secondary?t.series_secondary:t.series_primary).push(o),t.series.push(o)}for(var a=0;a<t.values.length;a++){for(var s,f=0,h=0,l=eP((s=t.values[a]).label),p=0,r=OD.facet_by_series?e:0;r<(OD.facet_by_series?e+1:w.column_names.value.length);r++)x[M(r)]||(p+=Math.max(0,HO(s.value[r])||0));for(var g=100/p,_=p/2,r=OD.facet_by_series?e:0,c,y,m,o;r<(OD.facet_by_series?e+1:w.column_names.value.length);r++){x[M(r)]||(y=(c=HO(s.value[r])||0)<0?h:f,m=w.column_names.value[r],null!=l&&((o=t.series[OD.facet_by_series?0:r]).data_points_stack.push({label:l,label_formatted:zO.labelFormat(l),row_values:s.value,value:y+c,value_display:c,value_base:y,series:r,series_primary:o.series_primary,index:a,facet:t,row_index:s.row_index,metadata:s.metadata,SERIES:m}),isFinite(g)&&(o.data_points_stack_prop.push({label:l,label_formatted:zO.labelFormat(l),row_values:s.value,value:g*(Math.max(0,c)+f),value_display:c*(TI.number_format_prop?g:1),value_base:g*f,series:r,series_primary:o.series_primary,index:a,facet:t,row_index:s.row_index,metadata:s.metadata,SERIES:m}),o.data_points_stack_stream.push({label:l,label_formatted:zO.labelFormat(l),row_values:s.value,value:Math.max(0,c)+f-_,value_display:c,value_base:f-_,series:r,series_primary:o.series_primary,index:a,facet:t,row_index:s.row_index,metadata:s.metadata,SERIES:m})),c<0?h+=c:f+=c,h<t.value_extent_stack[0]&&(t.value_extent_stack[0]=h),f>t.value_extent_stack[1]&&(t.value_extent_stack[1]=f),h<zO.value_extent_stack[0]&&(zO.value_extent_stack[0]=h),f>zO.value_extent_stack[1]&&(zO.value_extent_stack[1]=f)))}var v=f+h;t.label_domain_to_sort.push({label:l,value:v,row_index:s.row_index}),k[l]?k[l].value+=v:k[l]={label:l,value:v,row_index:s.row_index},0<f&&zO.stack_labels.push({label:l,value:f,facet:t,stack_label:!0}),h<0&&zO.stack_labels.push({label:l,value:h,facet:t,stack_label:!0}),t.stack_totals_lookup[l]=[h,f]}t.label_domain=t.label_domain_to_sort.sort(function(t,e){return OD.force_categorical?nP(t,e):sk(t.row_index,e.row_index)}).map(function(t){return t.label}).filter(function(t){return null!=t})});var p=[],g,_;for(g in k)p.push(k[g]);p.sort(function(t,e){return OD.force_categorical?nP(t,e):sk(t.row_index,e.row_index)}).map(function(t){return t.label}).filter(function(t){return null!=t}).forEach(function(t){zO.label_domain.push(t)});var y=kk(zO,function(t){return kk(t.series.map(function(t){return t.data_points_positive_sum||null}))});zO.forEach(function(t){return t.dataset_max_series_sum=y,t}),zO.series_names=w.column_names.value,zO.unfiltered_series_names=DD.data.column_names.value;var m={},v;for(v in zO.row_names=[],w.forEach(function(t){m[t.label]||(m[t.label]=!0)}),m){var j=zO.labelFormat(eP(v));zO.row_names.push(j)}var A={},v;for(v in zO.unfiltered_row_names=[],DD.data.forEach(function(t){A[t.label]||(A[t.label]=!0)}),A){var j=zO.labelFormat(eP(v));zO.unfiltered_row_names.push(j)}zO.row_filter_values=i,zO.series=[],zO.series_primary=[],zO.series_secondary=[];var I=0;zO.forEach(function(e){var n=0;e.series.forEach(function(t){++n<=TI.max_series&&(t.facet=e,zO.series.push(t),I+=t.data_points.length,(t.secondary?zO.series_secondary:zO.series_primary).push(t))})}),zO.num_points_visible=I,zO.column_names=DD.data.column_names,zO.series_popup_text={},TI.popup_series_text&&TI.popup_series_text.split(/\n/).forEach(function(t){var t=t.replace(/\s*::\s*/,"::").split("::");zO.series_popup_text[t[0]]=t[1]}),EO=OD.facets_show,SO=TI.localization.input_decimal_separator,DO=TI.series_filter.toString(),CO=TI.label_filter.toString(),RO=TI.series_filter_mode,LO=TI.max_series,OO=TI.label_data_type,PO=TI.datetime_input_format,BO=b,FO=t,ZO=TI.secondary_series,GO=OD.force_categorical,QO=TI.sort_mode,qO=TI.sort_direction,YO=TI.row_filter,UO=TI.row_filter_all,VO=TI.number_format_prop,WO=TI.popup_series_text,$O=TI.uniform_bar_height,XO=TI.uniform_column_width,JO=TI.chart_type,DD.data.processed=!0}}var iP="A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",oP="fl-spanner",aP=oP+"-";function sP(t,e,n){return"<"+t+" class='"+aP+n+"'>"+e+"</"+t+">"}function lP(r){("string"==typeof r||r instanceof HTMLElement)&&(r=my(r));var c={data:[],element:null,ignore_case:!0,text:function t(e){return e},class:oP},i=function t(e,n){var r=c.text(e,n);if(!r||"string"!=typeof r)return null;var i=r.trim();return i?{original:r,trimmed:i,length:i.length,d:e,i:n}:null},a=function t(e,n){var r=n.trimmed.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i,o,a,s,l,n=c.ignore_case?"gi":"g";return new RegExp("<"+e+".*?<\\/"+e+">"+"|(?:"+("(^|[^"+iP+"])"+"("+r+")"+("($|[^"+iP+"])"))+")",n)},e=function t(){var e=r.node(),n=r.text(),o,o=(o=c.element)||(e instanceof SVGElement||"svg"===e.nodeName.toLowerCase()?"tspan":"span");return c.data.map(i).filter(function(t){return t}).sort(function(t,e){return e.length-t.length||t.i-e.i}).forEach(function(i){var t=a(o,i);n=n.replace(t,function(t,e,n,r){return n?e+sP(o,n,i.i)+r:t})}),r.html(n),r.selectAll(o).each(function(){var t=c.data[this.getAttribute("class").slice(aP.length)];my(this).datum(t).attr("class",c.class)})};return e.data=function(t){return void 0===t?c.data:(c.data=Array.isArray(t)?t:[t],e)},e.element=function(t){return void 0===t?c.element:(c.element=t,e)},e.ignoreCase=function(t){return void 0===t?c.ignore_case:(c.ignore_case=!!t,e)},e.text=function(t){return void 0===t?c.text:(c.text=t,e)},e.class=function(t){return void 0===t?c.class:(c.class=t,e)},e}function cP(t,e,n,r){lP(t).data(e)().style("color",function(t){return n(t)}).style("font-weight",r)}function uP(t,e){var n;"off"!=TI.text_legend&&(n=TI.text_legend_bold?"bold":null,"auto"!=TI.text_legend&&!TI.text_legend_title||cP(my("#fl-layout-header h1"),t,e,n),"auto"!=TI.text_legend&&!TI.text_legend_subtitle||cP(my("#fl-layout-header h2"),t,e,n))}var dP=YC(TI.color),fP=[],hP;function pP(){return"row"==OD.legend_type||"either"==OD.legend_type&&"row"==TI.color_mode}function gP(){var t=(hP=pP())?zO.unfiltered_row_names:zO.unfiltered_series_names;dP.updateColorScale(t),fP=hP?"filter"in DD.data.column_names?zO.row_names:zO.unfiltered_row_names:"none"==TI.series_filter_mode?zO.unfiltered_series_names:zO.series_names,bP()}function _P(t){return dP.getColor(zO.series_names[t])}function yP(t){return dP.getColor(zO.labelFormat(t).toString())}function mP(t){return hP?yP(t.label):_P(t.series)}function vP(t){return hP?"rgba(0,0,0,0.5)":_P(t.index)}function bP(){var t="off"==TI.legend_mode||"auto"==TI.legend_mode&&OD.facet_by_series&&!hP,e="none"!=TI.legend_filter_mode&&"none"==TI.series_filter_mode&&!hP,n="none"!=TI.legend_filter_mode&&!("filter"in DD.data.column_names)&&hP,r=[];e&&(r=zO.unfiltered_series_names.filter(function(t){return 0<TI.series_filter.length&&TI.series_filter.indexOf(t)<0})),n&&(r=zO.unfiltered_row_names.filter(function(t){return 0<TI.label_filter.length&&TI.label_filter.indexOf(t)<0})),TF.data(t?[]:fP,dP.getColor).filtered(r).on("click",e||n?function(t){var e="filter-in"==TI.legend_filter_mode;n?xP(t.label,TI.label_filter,zO.unfiltered_row_names,e):xP(t.label,TI.series_filter,zO.unfiltered_series_names,e),KO()}:null).update(),jF.setLegendPosition(TI.legend_position)}function xP(e,n,t,r){var i=n.indexOf(e);r||1==n.length&&n[0]==e?(n.splice(0,n.length),-1==i&&n.push(e)):0==n.length?t.forEach(function(t){t!=e&&n.push(t)}):-1!=i?n.splice(i,1):n.length+1==t.length?n.splice(0,n.length):n.push(e)}function wP(){uP(fP,dP.getColor)}function MP(t,e){var t=(void 0!==t.label?t:t.data).label_formatted;return TI.data_trans_bind_data_points?t:e}function kP(t,e){var n=OD.facets_show&&!OD.facet_by_series?"-"+t.facet.index:"";return TI.data_trans_bind_series?t.name+n:e}function jP(t){for(var e=-1,n=t.length,r,i=t[n-1],o=0;++e<n;)r=i,i=t[e],o+=r[1]*i[0]-r[0]*i[1];return o/2}function AP(t){for(var e=-1,n=t.length,r=0,i=0,o,a=t[n-1],s,l=0;++e<n;)o=a,a=t[e],l+=s=o[0]*a[1]-a[0]*o[1],r+=(o[0]+a[0])*s,i+=(o[1]+a[1])*s;return[r/(l*=3),i/l]}function IP(t){for(var e=-1,n=t.length,r=t[n-1],i,o,a=r[0],s=r[1],l=0;++e<n;)i=a,o=s,i-=a=(r=t[e])[0],o-=s=r[1],l+=Math.sqrt(i*i+o*o);return l}var TP={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},NP=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function zP(t){return 10===t||13===t||8232===t||8233===t||32===t||9===t||11===t||12===t||160===t||5760<=t&&0<=NP.indexOf(t)}function EP(t){switch(32|t){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return 1}}function SP(t){return 97==(32|t)}function LP(t){return 48<=t&&t<=57}function DP(t){return 48<=t&&t<=57||43===t||45===t||46===t}function CP(t){this.index=0,this.path=t,this.max=t.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function OP(t){for(;t.index<t.max&&zP(t.path.charCodeAt(t.index));)t.index++}function PP(t){var e=t.path.charCodeAt(t.index);return 48===e?(t.param=0,void t.index++):49===e?(t.param=1,void t.index++):void(t.err="SvgPath: arc flag can be 0 or 1 only (at pos "+t.index+")")}function RP(t){var e=t.index,n=e,r=t.max,i=!1,o=!1,a=!1,s=!1,l;if(r<=n)t.err="SvgPath: missed param (at pos "+n+")";else if(LP(l=43===(l=t.path.charCodeAt(n))||45===l?++n<r?t.path.charCodeAt(n):0:l)||46===l){if(46!==l){if(i=48===l,l=++n<r?t.path.charCodeAt(n):0,i&&n<r&&l&&LP(l))return void(t.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+e+")");for(;n<r&&LP(t.path.charCodeAt(n));)n++,o=!0;l=n<r?t.path.charCodeAt(n):0}if(46===l){for(s=!0,n++;LP(t.path.charCodeAt(n));)n++,a=!0;l=n<r?t.path.charCodeAt(n):0}if(101===l||69===l){if(s&&!o&&!a)return void(t.err="SvgPath: invalid float exponent (at pos "+n+")");if(43!==(l=++n<r?t.path.charCodeAt(n):0)&&45!==l||n++,!(n<r&&LP(t.path.charCodeAt(n))))return void(t.err="SvgPath: invalid float exponent (at pos "+n+")");for(;n<r&&LP(t.path.charCodeAt(n));)n++}t.index=n,t.param=parseFloat(t.path.slice(e,n))+0}else t.err="SvgPath: param should start with 0..9 or `.` (at pos "+n+")"}function YP(t){var e,n,e=t.path[t.segmentStart],n=e.toLowerCase(),r=t.data;if("m"===n&&2<r.length&&(t.result.push([e,r[0],r[1]]),r=r.slice(2),n="l",e="m"===e?"l":"L"),"r"===n)t.result.push([e].concat(r));else for(;r.length>=TP[n]&&(t.result.push([e].concat(r.splice(0,TP[n]))),TP[n]););}function UP(t){var e=t.max,n,r,i,o,a;if(t.segmentStart=t.index,r=SP(n=t.path.charCodeAt(t.index)),EP(n))if(o=TP[t.path[t.index].toLowerCase()],t.index++,OP(t),t.data=[],o){for(i=!1;;){for(a=o;0<a;a--){if((!r||3!==a&&4!==a?RP:PP)(t),t.err.length)return;t.data.push(t.param),OP(t),i=!1,t.index<e&&44===t.path.charCodeAt(t.index)&&(t.index++,OP(t),i=!0)}if(!i){if(t.index>=t.max)break;if(!DP(t.path.charCodeAt(t.index)))break}}YP(t)}else YP(t);else t.err="SvgPath: bad command "+t.path[t.index]+" (at pos "+t.index+")"}var BP=function t(e){var n=new CP(e),r=n.max;for(OP(n);n.index<r&&!n.err.length;)UP(n);return n.err.length?n.result=[]:n.result.length&&("mM".indexOf(n.result[0][0])<0?(n.err="SvgPath: string should start with `M` or `m`",n.result=[]):n.result[0][0]="M"),{err:n.err,segments:n.result}};function FP(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}function ZP(){if(!(this instanceof ZP))return new ZP;this.queue=[],this.cache=null}ZP.prototype.matrix=function(t){return 1===t[0]&&0===t[1]&&0===t[2]&&1===t[3]&&0===t[4]&&0===t[5]||(this.cache=null,this.queue.push(t)),this},ZP.prototype.translate=function(t,e){return 0===t&&0===e||(this.cache=null,this.queue.push([1,0,0,1,t,e])),this},ZP.prototype.scale=function(t,e){return 1===t&&1===e||(this.cache=null,this.queue.push([t,0,0,e,0,0])),this},ZP.prototype.rotate=function(t,e,n){var r,t,r;return 0!==t&&(this.translate(e,n),r=t*Math.PI/180,t=Math.cos(r),r=Math.sin(r),this.queue.push([t,r,-r,t,0,0]),this.cache=null,this.translate(-e,-n)),this},ZP.prototype.skewX=function(t){return 0!==t&&(this.cache=null,this.queue.push([1,0,Math.tan(t*Math.PI/180),1,0,0])),this},ZP.prototype.skewY=function(t){return 0!==t&&(this.cache=null,this.queue.push([1,Math.tan(t*Math.PI/180),0,1,0,0])),this},ZP.prototype.toArray=function(){if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],1===this.queue.length)return this.cache;for(var t=1;t<this.queue.length;t++)this.cache=FP(this.cache,this.queue[t]);return this.cache},ZP.prototype.calc=function(t,e,n){var r;return this.queue.length?(this.cache||(this.cache=this.toArray()),[t*(r=this.cache)[0]+e*r[2]+(n?0:r[4]),t*r[1]+e*r[3]+(n?0:r[5])]):[t,e]};var HP=ZP,GP={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},QP=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,qP=/[\s,]+/,VP=function t(e){var n=new HP,r,i;return e.split(QP).forEach(function(t){if(t.length)if(void 0===GP[t])switch(i=t.split(qP).map(function(t){return+t||0}),r){case"matrix":return void(6===i.length&&n.matrix(i));case"scale":return void(1===i.length?n.scale(i[0],i[0]):2===i.length&&n.scale(i[0],i[1]));case"rotate":return void(1===i.length?n.rotate(i[0],0,0):3===i.length&&n.rotate(i[0],i[1],i[2]));case"translate":return void(1===i.length?n.translate(i[0],0):2===i.length&&n.translate(i[0],i[1]));case"skewX":return void(1===i.length&&n.skewX(i[0]));case"skewY":return void(1===i.length&&n.skewY(i[0]))}else r=t}),n},WP=2*Math.PI;function $P(t,e,n,r){var i,o=t*n+e*r;return(o=1<o?1:o)<-1&&(o=-1),(t*r-e*n<0?-1:1)*Math.acos(o)}function XP(t,e,n,r,i,o,a,s,l,c){var u=c*(t-n)/2+l*(e-r)/2,d=-l*(t-n)/2+c*(e-r)/2,f=a*a,h=s*s,p=u*u,g=d*d,_=f*h-f*g-h*p;_<0&&(_=0),_/=f*g+h*p;var _,i=(_=Math.sqrt(_)*(i===o?-1:1))*a/s*d,_=_*-s/a*u,n=c*i-l*_+(t+n)/2,c=l*i+c*_+(e+r)/2,e=(u-i)/a,r=(d-_)/s,a=(-u-i)/a,_=(-d-_)/s,s=$P(1,0,e,r),_=$P(e,r,a,_);return 0===o&&0<_&&(_-=WP),1===o&&_<0&&(_+=WP),[n,c,s,_]}function JP(t,e){var n=4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),e=Math.sin(t+e);return[r,i,r-i*n,i+r*n,o+e*n,e-o*n,o,e]}var KP=function t(e,n,r,i,o,a,s,l,c){var u=Math.sin(c*WP/360),d=Math.cos(c*WP/360),f=d*(e-r)/2+u*(n-i)/2,c=-u*(e-r)/2+d*(n-i)/2;if(0==f&&0==c)return[];if(0===s||0===l)return[];s=Math.abs(s),l=Math.abs(l);var c=f*f/(s*s)+c*c/(l*l);1<c&&(s*=Math.sqrt(c),l*=Math.sqrt(c));var h=XP(e,n,r,i,o,a,s,l,u,d),p=[],g=h[2],_=h[3],y=Math.max(Math.ceil(Math.abs(_)/(WP/4)),1);_/=y;for(var m=0;m<y;m++)p.push(JP(g,_)),g+=_;return p.map(function(t){for(var e=0;e<t.length;e+=2){var n=t[e+0],r=t[e+1],i,o=u*(n*=s)+d*(r*=l);t[e+0]=d*n-u*r+h[0],t[e+1]=o+h[1]}return t})},tR=1e-10,eR=Math.PI/180;function nR(t,e,n){if(!(this instanceof nR))return new nR(t,e,n);this.rx=t,this.ry=e,this.ax=n}nR.prototype.transform=function(t){var e=Math.cos(this.ax*eR),n=Math.sin(this.ax*eR),r=[this.rx*(t[0]*e+t[2]*n),this.rx*(t[1]*e+t[3]*n),this.ry*(-t[0]*n+t[2]*e),this.ry*(-t[1]*n+t[3]*e)],i=r[0]*r[0]+r[2]*r[2],o=r[1]*r[1]+r[3]*r[3],n=((r[0]-r[3])*(r[0]-r[3])+(r[2]+r[1])*(r[2]+r[1]))*((r[0]+r[3])*(r[0]+r[3])+(r[2]-r[1])*(r[2]-r[1])),t=(i+o)/2;if(n<tR*t)return this.rx=this.ry=Math.sqrt(t),this.ax=0,this;var e=r[0]*r[1]+r[2]*r[3],n,r=t+(n=Math.sqrt(n))/2,n=t-n/2;return this.ax=Math.abs(e)<tR&&Math.abs(r-o)<tR?90:180*Math.atan(Math.abs(e)>Math.abs(r-o)?(r-i)/e:e/(r-o))/Math.PI,0<=this.ax?(this.rx=Math.sqrt(r),this.ry=Math.sqrt(n)):(this.ax+=90,this.rx=Math.sqrt(n),this.ry=Math.sqrt(r)),this},nR.prototype.isDegenerate=function(){return this.rx<tR*this.ry||this.ry<tR*this.rx};var rR=nR;function iR(t){if(!(this instanceof iR))return new iR(t);var t=BP(t);this.segments=t.segments,this.err=t.err,this.__stack=[]}iR.from=function(t){if("string"==typeof t)return new iR(t);if(t instanceof iR){var e=new iR("");return e.err=t.err,e.segments=t.segments.map(function(t){return t.slice()}),e.__stack=t.__stack.map(function(t){return HP().matrix(t.toArray())}),e}throw new Error("SvgPath.from: invalid param type "+t)},iR.prototype.__matrix=function(c){var u=this,d;c.queue.length&&this.iterate(function(t,e,n,r){var i,o,a,s;switch(t[0]){case"v":o=0===(i=c.calc(0,t[1],!0))[0]?["v",i[1]]:["l",i[0],i[1]];break;case"V":o=(i=c.calc(n,t[1],!1))[0]===c.calc(n,r,!1)[0]?["V",i[1]]:["L",i[0],i[1]];break;case"h":o=0===(i=c.calc(t[1],0,!0))[1]?["h",i[0]]:["l",i[0],i[1]];break;case"H":o=(i=c.calc(t[1],r,!1))[1]===c.calc(n,r,!1)[1]?["H",i[0]]:["L",i[0],i[1]];break;case"a":case"A":var l=c.toArray(),a=rR(t[1],t[2],t[3]).transform(l);if(l[0]*l[3]-l[1]*l[2]<0&&(t[5]=t[5]?"0":"1"),i=c.calc(t[6],t[7],"a"===t[0]),"A"===t[0]&&t[6]===n&&t[7]===r||"a"===t[0]&&0===t[6]&&0===t[7]){o=["a"===t[0]?"l":"L",i[0],i[1]];break}o=a.isDegenerate()?["a"===t[0]?"l":"L",i[0],i[1]]:[t[0],a.rx,a.ry,a.ax,t[4],t[5],i[0],i[1]];break;case"m":o=["m",(i=c.calc(t[1],t[2],s=0<e))[0],i[1]];break;default:for(o=[a=t[0]],s=a.toLowerCase()===a,d=1;d<t.length;d+=2)i=c.calc(t[d],t[d+1],s),o.push(i[0],i[1])}u.segments[e]=o},!0)},iR.prototype.__evaluateStack=function(){var t,e;if(this.__stack.length){if(1===this.__stack.length)return this.__matrix(this.__stack[0]),void(this.__stack=[]);for(t=HP(),e=this.__stack.length;0<=--e;)t.matrix(this.__stack[e].toArray());this.__matrix(t),this.__stack=[]}},iR.prototype.toString=function(){var t=[],e,e;this.__evaluateStack();for(var n=0;n<this.segments.length;n++)e=this.segments[n][0],e=0<n&&"m"!==e&&"M"!==e&&e===this.segments[n-1][0],t=t.concat(e?this.segments[n].slice(1):this.segments[n]);return t.join(" ").replace(/ ?([achlmqrstvz]) ?/gi,"$1").replace(/ \-/g,"-").replace(/zm/g,"z m")},iR.prototype.translate=function(t,e){return this.__stack.push(HP().translate(t,e||0)),this},iR.prototype.scale=function(t,e){return this.__stack.push(HP().scale(t,e||0===e?e:t)),this},iR.prototype.rotate=function(t,e,n){return this.__stack.push(HP().rotate(t,e||0,n||0)),this},iR.prototype.skewX=function(t){return this.__stack.push(HP().skewX(t)),this},iR.prototype.skewY=function(t){return this.__stack.push(HP().skewY(t)),this},iR.prototype.matrix=function(t){return this.__stack.push(HP().matrix(t)),this},iR.prototype.transform=function(t){return t.trim()&&this.__stack.push(VP(t)),this},iR.prototype.round=function(r){var e=0,i=0,o=0,a=0,s;return r=r||0,this.__evaluateStack(),this.segments.forEach(function(n){var t=n[0].toLowerCase()===n[0];switch(n[0]){case"H":case"h":return t&&(n[1]+=o),o=n[1]-n[1].toFixed(r),void(n[1]=+n[1].toFixed(r));case"V":case"v":return t&&(n[1]+=a),a=n[1]-n[1].toFixed(r),void(n[1]=+n[1].toFixed(r));case"Z":case"z":return o=e,void(a=i);case"M":case"m":return t&&(n[1]+=o,n[2]+=a),o=n[1]-n[1].toFixed(r),a=n[2]-n[2].toFixed(r),e=o,i=a,n[1]=+n[1].toFixed(r),void(n[2]=+n[2].toFixed(r));case"A":case"a":return t&&(n[6]+=o,n[7]+=a),o=n[6]-n[6].toFixed(r),a=n[7]-n[7].toFixed(r),n[1]=+n[1].toFixed(r),n[2]=+n[2].toFixed(r),n[3]=+n[3].toFixed(r+2),n[6]=+n[6].toFixed(r),void(n[7]=+n[7].toFixed(r));default:return s=n.length,t&&(n[s-2]+=o,n[s-1]+=a),o=n[s-2]-n[s-2].toFixed(r),a=n[s-1]-n[s-1].toFixed(r),void n.forEach(function(t,e){e&&(n[e]=+n[e].toFixed(r))})}}),this},iR.prototype.iterate=function(i,t){var e=this.segments,o={},a=!1,s=0,l=0,c=0,u=0,n,r,d;if(t||this.__evaluateStack(),e.forEach(function(t,e){var n=i(t,e,s,l);Array.isArray(n)&&(o[e]=n,a=!0);var r=t[0]===t[0].toLowerCase();switch(t[0]){case"m":case"M":return s=t[1]+(r?s:0),l=t[2]+(r?l:0),c=s,void(u=l);case"h":case"H":return void(s=t[1]+(r?s:0));case"v":case"V":return void(l=t[1]+(r?l:0));case"z":case"Z":return s=c,void(l=u);default:s=t[t.length-2]+(r?s:0),l=t[t.length-1]+(r?l:0)}}),!a)return this;for(d=[],n=0;n<e.length;n++)if(void 0!==o[n])for(r=0;r<o[n].length;r++)d.push(o[n][r]);else d.push(e[n]);return this.segments=d,this},iR.prototype.abs=function(){return this.iterate(function(t,e,n,r){var i=t[0],o=i.toUpperCase(),a;if(i!==o)switch(t[0]=o,i){case"v":return void(t[1]+=r);case"a":return t[6]+=n,void(t[7]+=r);default:for(a=1;a<t.length;a++)t[a]+=a%2?n:r}},!0),this},iR.prototype.rel=function(){return this.iterate(function(t,e,n,r){var i=t[0],o=i.toLowerCase(),a;if(i!==o&&(0!==e||"M"!==i))switch(t[0]=o,i){case"V":return void(t[1]-=r);case"A":return t[6]-=n,void(t[7]-=r);default:for(a=1;a<t.length;a++)t[a]-=a%2?n:r}},!0),this},iR.prototype.unarc=function(){return this.iterate(function(t,e,n,r){var i,o,i,a=[],i=t[0];return"A"!==i&&"a"!==i?null:(i="a"===i?(o=n+t[6],r+t[7]):(o=t[6],t[7]),0===(i=KP(n,r,o,i,t[4],t[5],t[1],t[2],t[3])).length?[["a"===t[0]?"l":"L",t[6],t[7]]]:(i.forEach(function(t){a.push(["C",t[2],t[3],t[4],t[5],t[6],t[7]])}),a))}),this},iR.prototype.unshort=function(){var s=this.segments,l,c,u,d,f;return this.iterate(function(t,e,n,r){var i=t[0],o=i.toUpperCase(),a;e&&("T"===o?(u=s[e-1],c="Q"===u[0]?(l=u[1]-n,u[2]-r):"q"===u[0]?(l=u[1]-u[3],u[2]-u[4]):l=0,d=-l,f=-c,(a="t"===i)||(d+=n,f+=r),s[e]=[a?"q":"Q",d,f,t[1],t[2]]):"S"===o&&(u=s[e-1],c="C"===u[0]?(l=u[3]-n,u[4]-r):"c"===u[0]?(l=u[3]-u[5],u[4]-u[6]):l=0,d=-l,f=-c,(a="s"===i)||(d+=n,f+=r),s[e]=[a?"c":"C",d,f,t[1],t[2],t[3],t[4]]))}),this};var oR,aR=iR,sR={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},lR=/([astvzqmhlc])([^astvzqmhlc]*)/gi;function cR(t){var i=[];return t.replace(lR,function(t,e,n){var r=e.toLowerCase();for(n=dR(n),"m"===r&&2<n.length&&(i.push([e].concat(n.splice(0,2))),r="l",e="m"===e?"l":"L");0<=n.length;){if(n.length===sR[r])return n.unshift(e),i.push(n);if(n.length<sR[r])throw new Error("malformed path data");i.push([e].concat(n.splice(0,sR[r])))}}),i}var uR=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function dR(t){var t=t.match(uR);return t?t.map(Number):[]}function fR(t,e,n,r,i,o,a,s){return new hR(t,e,n,r,i,o,a,s)}function hR(t,e,n,r,i,o,a,s){this.a={x:t,y:e},this.b={x:n,y:r},this.c={x:i,y:o},this.d={x:a,y:s},null!=a&&null!=s?(this.getArcLength=AR,this.getPoint=mR,this.getDerivative=gR):(this.getArcLength=vR,this.getPoint=yR,this.getDerivative=pR),this.init()}function pR(t,e,n){return{x:2*(1-n)*(t[1]-t[0])+2*n*(t[2]-t[1]),y:2*(1-n)*(e[1]-e[0])+2*n*(e[2]-e[1])}}function gR(t,e,n){var r;return yR([3*(t[1]-t[0]),3*(t[2]-t[1]),3*(t[3]-t[2])],[3*(e[1]-e[0]),3*(e[2]-e[1]),3*(e[3]-e[2])],n)}function _R(t,e,n,r,i){for(var o=1,a=t/e,s=(t-n(r,i,a))/e;.001<o;){var l=n(r,i,a+s),c=n(r,i,a-s),l=Math.abs(t-l)/e,c=Math.abs(t-c)/e;l<o?(o=l,a+=s):c<o?(o=c,a-=s):s/=2}return a}function yR(t,e,n){var r,i;return{x:(1-n)*(1-n)*t[0]+2*(1-n)*n*t[1]+n*n*t[2],y:(1-n)*(1-n)*e[0]+2*(1-n)*n*e[1]+n*n*e[2]}}function mR(t,e,n){var r,i;return{x:(1-n)*(1-n)*(1-n)*t[0]+3*(1-n)*(1-n)*n*t[1]+3*(1-n)*n*n*t[2]+n*n*n*t[3],y:(1-n)*(1-n)*(1-n)*e[0]+3*(1-n)*(1-n)*n*e[1]+3*(1-n)*n*n*e[2]+n*n*n*e[3]}}function vR(t,e,n){void 0===n&&(n=1);var r=t[0]-2*t[1]+t[2],i=e[0]-2*e[1]+e[2],o=2*t[1]-2*t[0],a=2*e[1]-2*e[0],s=4*(r*r+i*i),i=4*(r*o+i*a),a=o*o+a*a;if(0==s)return n*Math.sqrt(Math.pow(t[2]-t[0],2)+Math.pow(e[2]-e[0],2));var i=i/(2*s),l,n=n+i,a=a/s-i*i;return Math.sqrt(s)/2*(n*Math.sqrt(n*n+a)-i*Math.sqrt(i*i+a)+a*Math.log(Math.abs((n+Math.sqrt(n*n+a))/(i+Math.sqrt(i*i+a)))))}hR.prototype={constructor:hR,init:function t(){this.length=this.getArcLength([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y])},getTotalLength:function t(){return this.length},getPointAtLength:function t(e){var e=_R(e,this.length,this.getArcLength,[this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y]);return this.getPoint([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y],e)},getTangentAtLength:function t(e){var n=_R(e,this.length,this.getArcLength,[this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y]),e=this.getDerivative([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y],n),n=Math.sqrt(e.x*e.x+e.y*e.y),n,n=0<n?{x:e.x/n,y:e.y/n}:{x:0,y:0};return n},getPropertiesAtLength:function t(e){var n=_R(e,this.length,this.getArcLength,[this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y]),r=this.getDerivative([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y],n),e=Math.sqrt(r.x*r.x+r.y*r.y),e,e=0<e?{x:r.x/e,y:r.y/e}:{x:0,y:0},n=this.getPoint([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y],n);return{x:n.x,y:n.y,tangentX:e.x,tangentY:e.y}}};var bR=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],xR=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],wR=[[1],[1,1],[1,2,1],[1,3,3,1]];function MR(t,e){return wR[t][e]}function kR(t,e,n){var r=n.length-1,i,o,a;if(0==r)return 0;if(0===t){for(a=o=0;a<=r;a++)o+=MR(r,a)*Math.pow(1-e,r-a)*Math.pow(e,a)*n[a];return o}for(i=new Array(r),a=0;a<r;a++)i[a]=r*(n[a+1]-n[a]);return kR(t-1,e,i)}function jR(t,e,n){var t=kR(1,n,t),e=kR(1,n,e),r;return Math.sqrt(t*t+e*e)}function AR(t,e,n){for(var r,i,o,a,s=20,r=(n=void 0===n?1:n)/2,i=0,o=0;o<20;o++)a=r*bR[20][o]+r,i+=xR[20][o]*jR(t,e,a);return r*i}var IR=2*Math.PI;function TR(t,e,n,r){var i,o=t*n+e*r;return(o=1<o?1:o)<-1&&(o=-1),(t*r-e*n<0?-1:1)*Math.acos(o)}function NR(t,e,n,r,i,o,a,s,l,c){var u=c*(t-n)/2+l*(e-r)/2,d=-l*(t-n)/2+c*(e-r)/2,f=a*a,h=s*s,p=u*u,g=d*d,_=f*h-f*g-h*p;_<0&&(_=0),_/=f*g+h*p;var _,i=(_=Math.sqrt(_)*(i===o?-1:1))*a/s*d,_=_*-s/a*u,n=c*i-l*_+(t+n)/2,c=l*i+c*_+(e+r)/2,e=(u-i)/a,r=(d-_)/s,a=(-u-i)/a,_=(-d-_)/s,s=TR(1,0,e,r),_=TR(e,r,a,_);return 0===o&&0<_&&(_-=IR),1===o&&_<0&&(_+=IR),[n,c,s,_]}function zR(t,e){var n=4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),e=Math.sin(t+e);return[r,i,r-i*n,i+r*n,o+e*n,e-o*n,o,e]}function ER(t,e,a,s,n,r,i,o,l){var c=Math.sin(n*IR/360),u=Math.cos(n*IR/360),d=u*(t-o)/2+c*(e-l)/2,n=-c*(t-o)/2+u*(e-l)/2;if(0==d&&0==n)return[];if(0===a||0===s)return[];a=Math.abs(a),s=Math.abs(s);var n=d*d/(a*a)+n*n/(s*s);1<n&&(a*=Math.sqrt(n),s*=Math.sqrt(n));var f=NR(t,e,o,l,r,i,a,s,c,u),h=[],p=f[2],g=f[3],_=Math.max(Math.ceil(Math.abs(g)/(IR/4)),1);g/=_;for(var y=0;y<_;y++)h.push(zR(p,g)),p+=g;return h.map(function(t){for(var e=0;e<t.length;e+=2){var n=t[e+0],r=t[e+1],i,o=c*(n*=a)+u*(r*=s);t[e+0]=u*n-c*r+f[0],t[e+1]=o+f[1]}return t})}function SR(t,e,n,r,i,o,a,s,l){return new LR(t,e,n,r,i,o,a,s,l)}function LR(t,e,n,r,i,o,a,s,l){var c=0,u=[],d=[],f;ER(t,e,n,r,i,o,a,s,l).forEach(function(t){var e=new fR(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),t=e.getTotalLength();c+=t,u.push(t),d.push(e)}),this.length=c,this.partialLengths=u,this.curves=d}function DR(t,e,n,r){return new CR(t,e,n,r)}function CR(t,e,n,r){this.x0=t,this.x1=e,this.y0=n,this.y1=r}function OR(t){var s=0,l=[],c=[];function u(t){if(!t)return null;for(var e=cR(t),n=[0,0],r=[0,0],i,o,a=0;a<e.length;a++)"M"===e[a][0]?(o=[(n=[e[a][1],e[a][2]])[0],n[1]],c.push(null)):"m"===e[a][0]?(o=[(n=[e[a][1]+n[0],e[a][2]+n[1]])[0],n[1]],c.push(null)):"L"===e[a][0]?(s+=Math.sqrt(Math.pow(n[0]-e[a][1],2)+Math.pow(n[1]-e[a][2],2)),c.push(new DR(n[0],e[a][1],n[1],e[a][2])),n=[e[a][1],e[a][2]]):"l"===e[a][0]?(s+=Math.sqrt(Math.pow(e[a][1],2)+Math.pow(e[a][2],2)),c.push(new DR(n[0],e[a][1]+n[0],n[1],e[a][2]+n[1])),n=[e[a][1]+n[0],e[a][2]+n[1]]):"H"===e[a][0]?(s+=Math.abs(n[0]-e[a][1]),c.push(new DR(n[0],e[a][1],n[1],n[1])),n[0]=e[a][1]):"h"===e[a][0]?(s+=Math.abs(e[a][1]),c.push(new DR(n[0],n[0]+e[a][1],n[1],n[1])),n[0]=e[a][1]+n[0]):"V"===e[a][0]?(s+=Math.abs(n[1]-e[a][1]),c.push(new DR(n[0],n[0],n[1],e[a][1])),n[1]=e[a][1]):"v"===e[a][0]?(s+=Math.abs(e[a][1]),c.push(new DR(n[0],n[0],n[1],n[1]+e[a][1])),n[1]=e[a][1]+n[1]):"z"===e[a][0]||"Z"===e[a][0]?(s+=Math.sqrt(Math.pow(o[0]-n[0],2)+Math.pow(o[1]-n[1],2)),c.push(new DR(n[0],o[0],n[1],o[1])),n=[o[0],o[1]]):"C"===e[a][0]?(i=new fR(n[0],n[1],e[a][1],e[a][2],e[a][3],e[a][4],e[a][5],e[a][6]),s+=i.getTotalLength(),n=[e[a][5],e[a][6]],c.push(i)):"c"===e[a][0]?(i=new fR(n[0],n[1],n[0]+e[a][1],n[1]+e[a][2],n[0]+e[a][3],n[1]+e[a][4],n[0]+e[a][5],n[1]+e[a][6]),s+=i.getTotalLength(),n=[e[a][5]+n[0],e[a][6]+n[1]],c.push(i)):"S"===e[a][0]?(i=0<a&&-1<["C","c","S","s"].indexOf(e[a-1][0])?new fR(n[0],n[1],2*n[0]-e[a-1][e[a-1].length-4],2*n[1]-e[a-1][e[a-1].length-3],e[a][1],e[a][2],e[a][3],e[a][4]):new fR(n[0],n[1],n[0],n[1],e[a][1],e[a][2],e[a][3],e[a][4]),s+=i.getTotalLength(),n=[e[a][3],e[a][4]],c.push(i)):"s"===e[a][0]?(i=0<a&&-1<["C","c","S","s"].indexOf(e[a-1][0])?new fR(n[0],n[1],n[0]+i.d.x-i.c.x,n[1]+i.d.y-i.c.y,n[0]+e[a][1],n[1]+e[a][2],n[0]+e[a][3],n[1]+e[a][4]):new fR(n[0],n[1],n[0],n[1],n[0]+e[a][1],n[1]+e[a][2],n[0]+e[a][3],n[1]+e[a][4]),s+=i.getTotalLength(),n=[e[a][3]+n[0],e[a][4]+n[1]],c.push(i)):"Q"===e[a][0]?(i=n[0]!=e[a][1]&&n[1]!=e[a][2]?new fR(n[0],n[1],e[a][1],e[a][2],e[a][3],e[a][4]):new DR(e[a][1],e[a][3],e[a][2],e[a][4]),s+=i.getTotalLength(),c.push(i),n=[e[a][3],e[a][4]],r=[e[a][1],e[a][2]]):"q"===e[a][0]?(i=0!=e[a][1]||0!=e[a][2]?new fR(n[0],n[1],n[0]+e[a][1],n[1]+e[a][2],n[0]+e[a][3],n[1]+e[a][4]):new DR(n[0]+e[a][1],n[0]+e[a][3],n[1]+e[a][2],n[1]+e[a][4]),s+=i.getTotalLength(),r=[n[0]+e[a][1],n[1]+e[a][2]],n=[e[a][3]+n[0],e[a][4]+n[1]],c.push(i)):"T"===e[a][0]?(i=0<a&&-1<["Q","q","T","t"].indexOf(e[a-1][0])?new fR(n[0],n[1],2*n[0]-r[0],2*n[1]-r[1],e[a][1],e[a][2]):new DR(n[0],e[a][1],n[1],e[a][2]),c.push(i),s+=i.getTotalLength(),r=[2*n[0]-r[0],2*n[1]-r[1]],n=[e[a][1],e[a][2]]):"t"===e[a][0]?(i=0<a&&-1<["Q","q","T","t"].indexOf(e[a-1][0])?new fR(n[0],n[1],2*n[0]-r[0],2*n[1]-r[1],n[0]+e[a][1],n[1]+e[a][2]):new DR(n[0],n[0]+e[a][1],n[1],n[1]+e[a][2]),s+=i.getTotalLength(),r=[2*n[0]-r[0],2*n[1]-r[1]],n=[e[a][1]+n[0],e[a][2]+n[0]],c.push(i)):"A"===e[a][0]?(i=new SR(n[0],n[1],e[a][1],e[a][2],e[a][3],e[a][4],e[a][5],e[a][6],e[a][7]),s+=i.getTotalLength(),n=[e[a][6],e[a][7]],c.push(i)):"a"===e[a][0]&&(i=new SR(n[0],n[1],e[a][1],e[a][2],e[a][3],e[a][4],e[a][5],n[0]+e[a][6],n[1]+e[a][7]),s+=i.getTotalLength(),n=[n[0]+e[a][6],n[1]+e[a][7]],c.push(i)),l.push(s);return u}u.getTotalLength=function(){return s},u.getPointAtLength=function(t){var t=e(t);return c[t.i].getPointAtLength(t.fraction)},u.getTangentAtLength=function(t){var t=e(t);return c[t.i].getTangentAtLength(t.fraction)},u.getPropertiesAtLength=function(t){var t=e(t);return c[t.i].getPropertiesAtLength(t.fraction)};var e=function t(e){e<0?e=0:s<e&&(e=s);for(var n=l.length-1;l[n]>=e&&0<l[n];)n--;return{fraction:e-l[++n-1],i:n}};return u(t)}function PR(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function RR(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function YR(t,e){return PR(t,e)<1e-9}function UR(t,n,r){var i=t.map(function(t,e){return BR(t,n[e])});return function(e){var t=i.map(function(t){return t(e)});return r?VR(t):t}}function BR(t,r){return function(n){return t.map(function(t,e){return t+n*(r[e]-t)})}}function FR(t){return"number"==typeof t&&isFinite(t)}function ZR(t){return HR(t)?AP(t):[(t[0][0]+t[t.length-1][0])/2,(t[0][1]+t[t.length-1][1])/2]}function HR(t){for(var e=0;e<t.length-2;e++){var n=t[e],r=t[e+1],i=t[e+2];if(n[0]*(r[1]-i[1])+r[0]*(i[1]-n[1])+i[0]*(n[1]-r[1]))return 1}}LR.prototype={constructor:LR,init:function t(){},getTotalLength:function t(){return this.length},getPointAtLength:function t(e){e<0?e=0:e>this.length&&(e=this.length);for(var n=this.partialLengths.length-1;this.partialLengths[n]>=e&&0<this.partialLengths[n];)n--;n<this.partialLengths.length-1&&n++;for(var r=0,i=0;i<n;i++)r+=this.partialLengths[i];return this.curves[n].getPointAtLength(e-r)},getTangentAtLength:function t(e){e<0?e=0:e>this.length&&(e=this.length);for(var n=this.partialLengths.length-1;this.partialLengths[n]>=e&&0<this.partialLengths[n];)n--;n<this.partialLengths.length-1&&n++;for(var r=0,i=0;i<n;i++)r+=this.partialLengths[i];return this.curves[n].getTangentAtLength(e-r)},getPropertiesAtLength:function t(e){var n=this.getTangentAtLength(e),e=this.getPointAtLength(e);return{x:e.x,y:e.y,tangentX:n.x,tangentY:n.y}}},CR.prototype.getTotalLength=function(){return Math.sqrt(Math.pow(this.x0-this.x1,2)+Math.pow(this.y0-this.y1,2))},CR.prototype.getPointAtLength=function(t){var e=t/Math.sqrt(Math.pow(this.x0-this.x1,2)+Math.pow(this.y0-this.y1,2)),t=(this.x1-this.x0)*e,e=(this.y1-this.y0)*e;return{x:this.x0+t,y:this.y0+e}},CR.prototype.getTangentAtLength=function(){var t=Math.sqrt((this.x1-this.x0)*(this.x1-this.x0)+(this.y1-this.y0)*(this.y1-this.y0));return{x:(this.x1-this.x0)/t,y:(this.y1-this.y0)/t}},CR.prototype.getPropertiesAtLength=function(t){var e=this.getPointAtLength(t),t=this.getTangentAtLength();return{x:e.x,y:e.y,tangentX:t.x,tangentY:t.y}};var GR='All shapes must be supplied as arrays of [x, y] points or an SVG path string (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d).\nExample valid ways of supplying a shape would be:\n[[0, 0], [10, 0], [10, 10]]\n"M0,0 L10,0 L10,10Z"\n';function QR(t){return new aR(t).abs()}function qR(t){return t.toString().split("M").map(function(t,e){return t=t.trim(),e&&t?"M"+t:t}).filter(function(t){return t})}function VR(t){return"M"+t.join("L")+"Z"}function WR(t,e){var t=QR(t);return $R(t)||XR(t,e)}function $R(t){var e=t.segments||[],n=[];if(!e.length||"M"!==e[0][0])return!1;for(var r=0;r<e.length;r++){var i=yg(e[r],3),o=i[0],a=i[1],i=i[2];if("M"===o&&r||"Z"===o)break;if("M"===o||"L"===o)n.push([a,i]);else if("H"===o)n.push([a,n[n.length-1][1]]);else{if("V"!==o)return!1;n.push([n[n.length-1][0],a])}}return!!n.length&&{ring:n}}function XR(t,e){var t=qR(t)[0],n=[],r,i,o=3;if(!t)throw new TypeError(GR);r=(i=JR(t)).getTotalLength(),e&&FR(e)&&0<e&&(o=Math.max(o,Math.ceil(r/e)));for(var a=0;a<o;a++){var s=i.getPointAtLength(r*a/o);n.push([s.x,s.y])}return{ring:n,skipBisect:!0}}function JR(t){if("undefined"!=typeof window&&window&&window.document)try{var e=window.document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttributeNS(null,"d",t),e}catch(t){}return OR(t)}function KR(t,e){for(var n=t.length+e,r=IP(t)/e,i=0,o=0,a=r/2;t.length<n;){var s=t[i],l=t[(i+1)%t.length],c=PR(s,l);a<=o+c?(t.splice(i+1,0,c?RR(s,l,(a-o)/c):s.slice(0)),a+=r):(o+=c,i++)}}function tY(t,e){for(var n=1<arguments.length&&void 0!==e?e:1/0,r=0;r<t.length;r++)for(var i=t[r],o=r===t.length-1?t[0]:t[r+1];PR(i,o)>n;)o=RR(i,o,.5),t.splice(r+1,0,o)}function eY(t,e){var t,n,r;if("string"==typeof t){var r=WR(t,e);t=r.ring,r=r.skipBisect}else if(!Array.isArray(t))throw new TypeError(GR);if(!nY(t=t.slice(0)))throw new TypeError(GR);return 1<t.length&&YR(t[0],t[t.length-1])&&t.pop(),0<(n=jP(t))&&t.reverse(),!r&&e&&FR(e)&&0<e&&tY(t,e),t}function nY(t){return t.every(function(t){return Array.isArray(t)&&2<=t.length&&FR(t[0])&&FR(t[1])})}function rY(r,e){for(var i=r.length,o=1/0,a,s,t,n=function t(n){s=0,e.forEach(function(t,e){var t=PR(r[(n+e)%i],t);s+=t*t}),s<o&&(o=s,a=n)},l=0;l<i;l++)n(l);a&&(t=r.splice(0,a),r.splice.apply(r,[r.length,0].concat(mg(t))))}function iY(e,n,t){var r=2<arguments.length&&void 0!==t?t:{},t=r.maxSegmentLength,t=void 0===t?10:t,r=r.string,r=void 0===r||r,i,o,a=oY(eY(e,t),eY(n,t),r);return!r||"string"!=typeof e&&"string"!=typeof n?a:function(t){return t<1e-4&&"string"==typeof e?e:1-t<1e-4&&"string"==typeof n?n:a(t)}}function oY(t,e,n){var r,r=t.length-e.length;return KR(t,r<0?-1*r:0),KR(e,0<r?r:0),rY(t,e),UR(t,e,n)}function aY(t,e,n,r,i){return uY(dY(t,e,n),r,pY(t,e,n),2*Math.PI*n,i)}function sY(t,e,n,r,i){var o=aY(e,n,r,t,i);return function(t){return o(1-t)}}function lY(t,e,n,r,i,o){return uY(fY(t,e,n,r),i,gY(t,e,n,r),2*n+2*r,o)}function cY(t,e,n,r,i,o){var a=lY(e,n,r,i,t,o);return function(t){return a(1-t)}}function uY(t,e,n,r,i){var o=4<arguments.length&&void 0!==i?i:{},i=o.maxSegmentLength,i=void 0===i?10:i,o=o.string,o=void 0===o||o,e=eY(e,i),t,a;return FR(r)&&e.length<r/i&&KR(e,Math.ceil(r/i-e.length)),t=t(e),a=UR(t,e,o),o?function(t){return t<1e-4?n:a(t)}:a}function dY(a,s,l){return function(n){var t=ZR(n),r=IP([].concat(mg(n),[n[0]])),i=Math.atan2(n[0][1]-t[1],n[0][0]-t[0]),o=0;return n.map(function(t,e){var e;return e&&(o+=PR(t,n[e-1])),e=i+2*Math.PI*(r?o/r:e/n.length),[Math.cos(e)*l+a,Math.sin(e)*l+s]})}}function fY(a,s,l,c){return function(n){var t=ZR(n),r=IP([].concat(mg(n),[n[0]])),t=Math.atan2(n[0][1]-t[1],n[0][0]-t[0]),i=0,o=(t=t<0?2*Math.PI+t:t)/(2*Math.PI);return n.map(function(t,e){e&&(i+=PR(t,n[e-1]));var e=hY((o+(r?i/r:e/n.length))%1);return[a+e[0]*l,s+e[1]*c]})}}function hY(t){return t<=1/8?[1,.5+4*t]:t<=3/8?[1.5-4*t,1]:t<=5/8?[0,2.5-4*t]:t<=7/8?[4*t-2.5,0]:[1,4*t-3.5]}function pY(t,e,n){var r=t-n+","+e,i,o="A"+n+","+n+",0,1,1,";return"M"+r+o+(t+n+","+e)+o+r+"Z"}function gY(t,e,n,r){var n=t+n,r=e+r;return"M"+t+","+e+"L"+n+","+e+"L"+n+","+r+"L"+t+","+r+"Z"}function _Y(t){var e=t.split(/[A-Z]/).filter(function(t){return""!=t});return 2==e.length?t="M"+e[0]+"L"+e[0]+"L"+e[1]+"Z":1==e.length&&(t="M"+e[0]+"L"+e[0]+"L"+e[0]+"Z"),t}function yY(t){return"log"==TI.y.numeric_scale_type&&t<=0?.01:t}function mY(t,e,n){var r=Math.max(TI.dot_radius,.01);return(!0===t||n&&"series"in t&&n.parentNode&&e==n.parentNode.__data__.data_points.length-1)&&(r*=TI.dot_radius_last/100),jF.remToPx(r)}function vY(t,e){var n=TI.chart_bg.background_color_enabled?TI.chart_bg.background_color:TI.layout.background_color_enabled?TI.layout.background_color:"white";return TI.dot_hollow&&!t.secondary?n:mP(t)}function bY(t,e){return TI.dot_hollow&&!t.secondary?mP(t):null}function xY(t){return TI.dot_hollow&&!t.secondary?jF.remToPx(TI.line_width):null}function wY(t,e,n,a){var r=a?"-secondary":"",i="on"==TI.dot_mode||"auto"==TI.dot_mode&&zO.num_points_visible<TI.dot_mode_auto_max,o=i||TI.popup.show_popups,s=t.selectAll(".data-point"+r).data(function(t){var e=[];return e=o?a?t.data_points:t[OD.data_points]:e},MP),t=s.enter().append("path").attr("class","data-point"+r).attr("visibility",i?"visible":"hidden").attr("fill",vY).attr("stroke",bY).attr("stroke-width",xY).attr("data-type","point").attr("transform","translate(0, 0)").attr("d",l).attr("opacity",0).on("mouseout",FC).on("click",UC),t=s.merge(t).on("mouseover",BC).attr("id",function(t){return"point-"+t.series+"-"+t.row_index+r});function l(t,e){var n=a?t.facet.scales.value_secondary:t.facet.scales.value,r=t.facet.scales.label,i=mY(t,e,this),e=r(t.label),r=n(yY(t.value)),n=e-i+","+r,o,t="A"+i+","+i+",0,1,1,";return"M"+n+t+(e+i+","+r)+t+n+"Z"}i?t.attr("visibility","visible").transition().duration(e?0:TI.data_trans_duration).delay(n).attr("opacity",TI.dot_opacity).attr("transform","translate(0, 0)").attr("fill",vY).attr("stroke",bY).attr("stroke-width",xY).attrTween("d",function(t,e){var n=a?t.facet.scales.value_secondary:t.facet.scales.value,r=t.facet.scales.label,e=mY(t,e,this),r=r(t.label),t=n(yY(t.value)),i;return sY(_Y(this.getAttribute("d")),r,t,e,{maxSegmentLength:1})}).on("end",function(){this.setAttribute("data-type","point")}):t.attr("visibility","hidden").attr("d",l).attr("opacity",0).attr("data-type","point"),s.exit().remove()}function MY(t,e,n){var r=t.selectAll(".data-point").data(function(t){return t[OD.data_points]},MP),t=r.enter().append("path").attr("class","data-point").attr("data-type","bar").attr("opacity",TI.column_opacity).attr("fill",mP).attr("stroke-width",0).attr("d",function(t,e){var n=s(t),r,i=0,o;return d(t.facet.scales.value(t.value_base||0),n,0,t.facet.scales.col_w)}).attr("transform","translate(0, 0)").on("click",UC).on("mouseout",FC),i;function s(t){var e=t.facet.scales;if(OD.stack)return e.label(t.label)-e.group_w/2;var n=OD.facet_by_series?0:t.series,r,i;return e.label(t.label)+e.col_padding/2+(n*(e.col_w+e.col_padding)-e.group_w/2)}function l(t){return Math.abs(t.facet.scales.value(OD.stack?t.value_base:0)-t.facet.scales.value(t.value))}function c(t){var e=t.value<0;return OD.stack?t.facet.scales.value(t.value_base)-(e?l(t):0):e?t.facet.scales.value(0)-l(t):t.facet.scales.value(0)}function u(t){var e=jF.remToPx(TI.column_padding_stack)/10,n=0,r=0,i,o;return OD.stack&&(i=t.facet.stack_totals_lookup[t.label],o=t.facet.value_extent[0]<0&&0<t.facet.value_extent[1],0<t.value?(n=0!=t.value_base||o?e:0,r=t.value==i[1]?0:e):t.value<0&&(n=t.value==i[0]?0:e,r=0!=t.value_base||o?e:0)),[n,r]}function o(t,e){var n=u(t),r=this.getAttribute("d"),i=c(t)+n[0],o=s(t),a=t.facet.scales.col_w,t,t=OD.stack&&OD.proportional&&t.value_display<0?0:Math.max(0,l(t)-n[0]-n[1]),n=this.getAttribute("data-type");return"bar"==n||"column"==n?ob(r,d(i,o,t,a)):cY(_Y(r),i,o,t,a,{maxSegmentLength:1})}function d(t,e,n,r){var n=t+n,r=e+r;return"M"+t+","+e+"L"+n+","+e+"L"+n+","+r+"L"+t+","+r+"Z"}r.merge(t).attr("visibility","visible").on("mouseover",BC).attr("id",function(t){return"point-"+t.series+"-"+t.row_index}).transition().duration(e?0:TI.data_trans_duration).delay(n).attr("transform","translate(0, 0)").attr("opacity",TI.column_opacity).attr("fill",mP).attr("stroke-width",0).attrTween("d",o).on("end",function(){this.setAttribute("data-type","bar")}),r.exit().remove()}function kY(t,e,n){var r=t.selectAll(".data-point").data(function(t){return t[OD.data_points]},MP),t=r.enter().append("path").attr("class","data-point").attr("data-type","column").attr("opacity",TI.column_opacity).attr("fill",mP).attr("stroke-width",0).attr("d",function(t,e){var n,r,i,o=0;return u(s(t),t.facet.scales.value(t.value_base||0),t.facet.scales.col_w,0)}).attr("transform","translate(0, 0)").on("click",UC).on("mouseout",FC),i;function s(t){var e=t.facet.scales;if(OD.stack)return e.label(t.label)-e.group_w/2;var n=OD.facet_by_series?0:t.series_primary,r,i;return e.label(t.label)+e.col_padding/2+(n*(e.col_w+e.col_padding)-e.group_w/2)}function l(t){var e=t.facet.scales.value.domain(),n=e[0]>e[1],e=t.value<0;return OD.stack?e==n?t.facet.scales.value(t.value_base)-(t.facet.scales.value(t.value_base)-t.facet.scales.value(t.value)):t.facet.scales.value(t.value_base):e==n?t.facet.scales.h+t.facet.chart_layout.margins().top-(t.facet.scales.value(t.facet.scales.value.domain()[0])-t.facet.scales.value(t.value)):t.facet.scales.value(0)}function c(t){var e=jF.remToPx(TI.column_padding_stack)/10,n=0,r=0,i,o;return OD.stack&&(i=t.facet.stack_totals_lookup[t.label],o=t.facet.value_extent[0]<0&&0<t.facet.value_extent[1],0<t.value?(n=t.value==i[1]?0:e,r=0!=t.value_base||o?e:0):t.value<0&&(n=(0!=t.value_base||o?1:0)*e,r=t.value==i[0]?0:e)),[n,r]}function o(t,e){var n=c(t),r=this.getAttribute("d"),i=s(t),o=l(t)+n[0],a=t.facet.scales.col_w,t,t=OD.stack&&OD.proportional&&t.value_display<0?0:Math.max(0,Math.abs(t.facet.scales.value(OD.stack?t.value_base:0)-t.facet.scales.value(t.value))-n[0]-n[1]),n=this.getAttribute("data-type");return"column"==n||"bar"==n?ob(r,u(i,o,a,t)):cY(_Y(r),i,o,a,t,{maxSegmentLength:1})}function u(t,e,n,r){var n=t+n,r=e+r;return"M"+t+","+e+"L"+n+","+e+"L"+n+","+r+"L"+t+","+r+"Z"}r.merge(t).attr("visibility","visible").on("mouseover",BC).attr("id",function(t){return"point-"+t.series+"-"+t.row_index}).transition().duration(e?0:TI.data_trans_duration).delay(n).attr("transform","translate(0, 0)").attr("opacity",TI.column_opacity).attr("fill",mP).attr("stroke-width",0).attrTween("d",o).on("end",function(){this.setAttribute("data-type","column")}),r.exit().remove()}var jY=Math.PI,AY=2*jY,IY=1e-6,TY=AY-IY;function NY(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function zY(){return new NY}function EY(e){return function t(){return e}}NY.prototype=zY.prototype={constructor:NY,moveTo:function t(e,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+n)},closePath:function t(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function t(e,n){this._+="L"+(this._x1=+e)+","+(this._y1=+n)},quadraticCurveTo:function t(e,n,r,i){this._+="Q"+ +e+","+ +n+","+(this._x1=+r)+","+(this._y1=+i)},bezierCurveTo:function t(e,n,r,i,o,a){this._+="C"+ +e+","+ +n+","+ +r+","+ +i+","+(this._x1=+o)+","+(this._y1=+a)},arcTo:function t(e,n,r,i,o){var a=this._x1,s=this._y1,l=(r=+r)-(e=+e),c=(i=+i)-(n=+n),u=a-e,d=s-n,f=u*u+d*d,h,r,p,a,i,s,a,s,i;if((o=+o)<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+(this._x1=e)+","+(this._y1=n):IY<f&&(Math.abs(d*l-c*u)>IY&&o?(p=l*l+c*c,a=(h=r-a)*h+(r=i-s)*r,i=Math.sqrt(p),s=Math.sqrt(f),s=(a=o*Math.tan((jY-Math.acos((p+f-a)/(2*i*s)))/2))/s,i=a/i,Math.abs(s-1)>IY&&(this._+="L"+(e+s*u)+","+(n+s*d)),this._+="A"+o+","+o+",0,0,"+ +(u*r<d*h)+","+(this._x1=e+i*l)+","+(this._y1=n+i*c)):this._+="L"+(this._x1=e)+","+(this._y1=n))},arc:function t(e,n,r,i,o,a){e=+e,n=+n,a=!!a;var s=(r=+r)*Math.cos(i),l=r*Math.sin(i),c=e+s,u=n+l,d=1^a,i=a?i-o:o-i;if(r<0)throw new Error("negative radius: "+r);null===this._x1?this._+="M"+c+","+u:(Math.abs(this._x1-c)>IY||Math.abs(this._y1-u)>IY)&&(this._+="L"+c+","+u),r&&(TY<(i=i<0?i%AY+AY:i)?this._+="A"+r+","+r+",0,1,"+d+","+(e-s)+","+(n-l)+"A"+r+","+r+",0,1,"+d+","+(this._x1=c)+","+(this._y1=u):IY<i&&(this._+="A"+r+","+r+",0,"+ +(jY<=i)+","+d+","+(this._x1=e+r*Math.cos(o))+","+(this._y1=n+r*Math.sin(o))))},rect:function t(e,n,r,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+n)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},toString:function t(){return this._}};var SY=Math.abs,LY=Math.atan2,DY=Math.cos,CY=Math.max,OY=Math.min,PY=Math.sin,RY=Math.sqrt,YY=1e-12,UY=Math.PI,BY=UY/2,FY=2*UY;function ZY(t){return 1<t?0:t<-1?UY:Math.acos(t)}function HY(t){return 1<=t?BY:t<=-1?-BY:Math.asin(t)}function GY(t){return t.innerRadius}function QY(t){return t.outerRadius}function qY(t){return t.startAngle}function VY(t){return t.endAngle}function WY(t){return t&&t.padAngle}function $Y(t,e,n,r,i,o,a,s){var l=n-t,n=r-e,r=a-i,a=s-o,s=a*l-r*n;if(!(s*s<YY))return[t+(s=(r*(e-o)-a*(t-i))/s)*l,e+s*n]}function XY(t,e,n,r,i,o,a){var s=t-n,l=e-r,c=(a?o:-o)/RY(s*s+l*l),u=c*l,d=-c*s,f=t+u,h=e+d,a=n+u,l=r+d,c=(f+a)/2,s=(h+l)/2,t=a-f,e=l-h,n=t*t+e*e,r=i-o,o=f*l-a*h,f=(e<0?-1:1)*RY(CY(0,r*r*n-o*o)),l=(o*e-t*f)/n,a=(-o*t-e*f)/n,h=(o*e+t*f)/n,e=(-o*t+e*f)/n,f=l-c,n=a-s,c=h-c,s=e-s;return c*c+s*s<f*f+n*n&&(l=h,a=e),{cx:l,cy:a,x01:-u,y01:-d,x11:l*(i/r-1),y11:a*(i/r-1)}}function JY(){var T=GY,N=QY,z=EY(0),E=null,S=qY,L=VY,D=WY,C=null;function e(){var t,e,n=+T.apply(this,arguments),r=+N.apply(this,arguments),i=S.apply(this,arguments)-BY,o=L.apply(this,arguments)-BY,a=SY(o-i),s=i<o,l,c,u,d,f,h,p,g,_,y,m,v,b,x,w,e,g,p,x,M,k,j,A,I,w,i,o,a,a,I,y,m;if(C=C||(t=zY()),r<n&&(e=r,r=n,n=e),YY<r?FY-YY<a?(C.moveTo(r*DY(i),r*PY(i)),C.arc(0,0,r,i,o,!s),YY<n&&(C.moveTo(n*DY(o),n*PY(o)),C.arc(0,0,n,o,i,s))):(u=l=i,d=c=o,h=f=a,p=D.apply(this,arguments)/2,g=YY<p&&(E?+E.apply(this,arguments):RY(n*n+r*r)),m=y=_=OY(SY(r-n)/2,+z.apply(this,arguments)),YY<g&&(x=HY(g/n*PY(p)),w=HY(g/r*PY(p)),(f-=2*x)>YY?(u+=x*=s?1:-1,d-=x):(f=0,u=d=(i+o)/2),(h-=2*w)>YY?(l+=w*=s?1:-1,c-=w):(h=0,l=c=(i+o)/2)),e=r*DY(l),g=r*PY(l),p=n*DY(d),x=n*PY(d),YY<_&&(M=r*DY(c),k=r*PY(c),j=n*DY(u),A=n*PY(u),a<UY&&(I=$Y(e,g,j,A,M,k,p,x))&&(w=e-I[0],i=g-I[1],o=M-I[0],a=k-I[1],a=1/PY(ZY((w*o+i*a)/(RY(w*w+i*i)*RY(o*o+a*a)))/2),I=RY(I[0]*I[0]+I[1]*I[1]),y=OY(_,(n-I)/(a-1)),m=OY(_,(r-I)/(1+a)))),YY<h?YY<m?(v=XY(j,A,e,g,r,m,s),b=XY(M,k,p,x,r,m,s),C.moveTo(v.cx+v.x01,v.cy+v.y01),m<_?C.arc(v.cx,v.cy,m,LY(v.y01,v.x01),LY(b.y01,b.x01),!s):(C.arc(v.cx,v.cy,m,LY(v.y01,v.x01),LY(v.y11,v.x11),!s),C.arc(0,0,r,LY(v.cy+v.y11,v.cx+v.x11),LY(b.cy+b.y11,b.cx+b.x11),!s),C.arc(b.cx,b.cy,m,LY(b.y11,b.x11),LY(b.y01,b.x01),!s))):(C.moveTo(e,g),C.arc(0,0,r,l,c,!s)):C.moveTo(e,g),YY<n&&YY<f?YY<y?(v=XY(p,x,M,k,n,-y,s),b=XY(e,g,j,A,n,-y,s),C.lineTo(v.cx+v.x01,v.cy+v.y01),y<_?C.arc(v.cx,v.cy,y,LY(v.y01,v.x01),LY(b.y01,b.x01),!s):(C.arc(v.cx,v.cy,y,LY(v.y01,v.x01),LY(v.y11,v.x11),!s),C.arc(0,0,n,LY(v.cy+v.y11,v.cx+v.x11),LY(b.cy+b.y11,b.cx+b.x11),s),C.arc(b.cx,b.cy,y,LY(b.y11,b.x11),LY(b.y01,b.x01),!s))):C.arc(0,0,n,d,u,s):C.lineTo(p,x)):C.moveTo(0,0),C.closePath(),t)return C=null,t+""||null}return e.centroid=function(){var t=(+T.apply(this,arguments)+ +N.apply(this,arguments))/2,e=(+S.apply(this,arguments)+ +L.apply(this,arguments))/2-UY/2;return[DY(e)*t,PY(e)*t]},e.innerRadius=function(t){return arguments.length?(T="function"==typeof t?t:EY(+t),e):T},e.outerRadius=function(t){return arguments.length?(N="function"==typeof t?t:EY(+t),e):N},e.cornerRadius=function(t){return arguments.length?(z="function"==typeof t?t:EY(+t),e):z},e.padRadius=function(t){return arguments.length?(E=null==t?null:"function"==typeof t?t:EY(+t),e):E},e.startAngle=function(t){return arguments.length?(S="function"==typeof t?t:EY(+t),e):S},e.endAngle=function(t){return arguments.length?(L="function"==typeof t?t:EY(+t),e):L},e.padAngle=function(t){return arguments.length?(D="function"==typeof t?t:EY(+t),e):D},e.context=function(t){return arguments.length?(C=null==t?null:t,e):C},e}function KY(t){this._context=t}function tU(t){return new KY(t)}function eU(t){return t[0]}function nU(t){return t[1]}function rU(){var a=eU,s=nU,l=EY(!0),c=null,u=tU,d=null;function e(t){var e,n=t.length,r,i=!1,o;for(null==c&&(d=u(o=zY())),e=0;e<=n;++e)!(e<n&&l(r=t[e],e,t))===i&&((i=!i)?d.lineStart():d.lineEnd()),i&&d.point(+a(r,e,t),+s(r,e,t));if(o)return d=null,o+""||null}return e.x=function(t){return arguments.length?(a="function"==typeof t?t:EY(+t),e):a},e.y=function(t){return arguments.length?(s="function"==typeof t?t:EY(+t),e):s},e.defined=function(t){return arguments.length?(l="function"==typeof t?t:EY(!!t),e):l},e.curve=function(t){return arguments.length?(u=t,null!=c&&(d=u(c)),e):u},e.context=function(t){return arguments.length?(null==t?c=d=null:d=u(c=t),e):c},e}function iU(){var u=eU,d=null,f=EY(0),h=nU,p=EY(!0),g=null,_=tU,y=null;function e(t){var e,n,r,i=t.length,o,a=!1,s,l=new Array(i),c=new Array(i);for(null==g&&(y=_(s=zY())),e=0;e<=i;++e){if(!(e<i&&p(o=t[e],e,t))===a)if(a=!a)n=e,y.areaStart(),y.lineStart();else{for(y.lineEnd(),y.lineStart(),r=e-1;n<=r;--r)y.point(l[r],c[r]);y.lineEnd(),y.areaEnd()}a&&(l[e]=+u(o,e,t),c[e]=+f(o,e,t),y.point(d?+d(o,e,t):l[e],h?+h(o,e,t):c[e]))}if(s)return y=null,s+""||null}function t(){return rU().defined(p).curve(_).context(g)}return e.x=function(t){return arguments.length?(u="function"==typeof t?t:EY(+t),d=null,e):u},e.x0=function(t){return arguments.length?(u="function"==typeof t?t:EY(+t),e):u},e.x1=function(t){return arguments.length?(d=null==t?null:"function"==typeof t?t:EY(+t),e):d},e.y=function(t){return arguments.length?(f="function"==typeof t?t:EY(+t),h=null,e):f},e.y0=function(t){return arguments.length?(f="function"==typeof t?t:EY(+t),e):f},e.y1=function(t){return arguments.length?(h=null==t?null:"function"==typeof t?t:EY(+t),e):h},e.lineX0=e.lineY0=function(){return t().x(u).y(f)},e.lineY1=function(){return t().x(u).y(h)},e.lineX1=function(){return t().x(d).y(f)},e.defined=function(t){return arguments.length?(p="function"==typeof t?t:EY(!!t),e):p},e.curve=function(t){return arguments.length?(_=t,null!=g&&(y=_(g)),e):_},e.context=function(t){return arguments.length?(null==t?g=y=null:y=_(g=t),e):g},e}function oU(t,e){return e<t?-1:t<e?1:t<=e?0:NaN}function aU(t){return t}function sU(){var h=aU,p=oU,g=null,_=EY(0),y=EY(FY),m=EY(0);function e(n){for(var t,e=n.length,r,i,o=0,a=new Array(e),s=new Array(e),l=+_.apply(this,arguments),c=Math.min(FY,Math.max(-FY,y.apply(this,arguments)-l)),r,u=Math.min(Math.abs(c)/e,m.apply(this,arguments)),d=u*(c<0?-1:1),f,t=0;t<e;++t)0<(f=s[a[t]=t]=+h(n[t],t,n))&&(o+=f);for(null!=p?a.sort(function(t,e){return p(s[t],s[e])}):null!=g&&a.sort(function(t,e){return g(n[t],n[e])}),t=0,i=o?(c-e*d)/o:0;t<e;++t,l=r)r=a[t],f=s[r],s[r]={data:n[r],index:t,value:f,startAngle:l,endAngle:r=l+(0<f?f*i:0)+d,padAngle:u};return s}return e.value=function(t){return arguments.length?(h="function"==typeof t?t:EY(+t),e):h},e.sortValues=function(t){return arguments.length?(p=t,g=null,e):p},e.sort=function(t){return arguments.length?(g=t,p=null,e):g},e.startAngle=function(t){return arguments.length?(_="function"==typeof t?t:EY(+t),e):_},e.endAngle=function(t){return arguments.length?(y="function"==typeof t?t:EY(+t),e):y},e.padAngle=function(t){return arguments.length?(m="function"==typeof t?t:EY(+t),e):m},e}function lU(t){return t<0?-1:1}function cU(t,e,n){var r=t._x1-t._x0,i=e-t._x1,e=(t._y1-t._y0)/(r||i<0&&-0),t=(n-t._y1)/(i||r<0&&-0),i=(e*i+t*r)/(r+i);return(lU(e)+lU(t))*Math.min(Math.abs(e),Math.abs(t),.5*Math.abs(i))||0}function uU(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function dU(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function fU(t){this._context=t}function hU(t){this._context=new pU(t)}function pU(t){this._context=t}function gU(t){return new fU(t)}function _U(t){this._context=t}function yU(t){var e,n=t.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(o[i[0]=0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/o[e-1],o[e]-=r,a[e]-=r*a[e-1];for(i[n-1]=a[n-1]/o[n-1],e=n-2;0<=e;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function mU(t){return new _U(t)}function vU(t,e){this._context=t,this._t=e}function bU(t){return new vU(t,.5)}function xU(t){return new vU(t,0)}function wU(t){return new vU(t,1)}KY.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._point=0},lineEnd:function t(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function t(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:this._context.lineTo(e,n)}}},fU.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function t(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:dU(this,this._t0,uU(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function t(e,n){var r=NaN;if(n=+n,(e=+e)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3,dU(this,uU(this,r=cU(this,e,n)),r);break;default:dU(this,this._t0,r=cU(this,e,n))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n,this._t0=r}}},(hU.prototype=Object.create(fU.prototype)).point=function(t,e){fU.prototype.point.call(this,e,t)},pU.prototype={moveTo:function t(e,n){this._context.moveTo(n,e)},closePath:function t(){this._context.closePath()},lineTo:function t(e,n){this._context.lineTo(n,e)},bezierCurveTo:function t(e,n,r,i,o,a){this._context.bezierCurveTo(n,e,i,r,a,o)}},_U.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x=[],this._y=[]},lineEnd:function t(){var e=this._x,n=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],n[0]):this._context.moveTo(e[0],n[0]),2===r)this._context.lineTo(e[1],n[1]);else for(var i=yU(e),o=yU(n),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(i[0][a],o[0][a],i[1][a],o[1][a],e[s],n[s]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function t(e,n){this._x.push(+e),this._y.push(+n)}},vU.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x=this._y=NaN,this._point=0},lineEnd:function t(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),0<=this._line&&(this._t=1-this._t,this._line=1-this._line)},point:function t(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:var r;this._t<=0?(this._context.lineTo(this._x,n),this._context.lineTo(e,n)):(r=this._x*(1-this._t)+e*this._t,this._context.lineTo(r,this._y),this._context.lineTo(r,n))}this._x=e,this._y=n}};var MU=sU().value(function(t){return t.value}).sort(nP);function kU(t){var t=MU(t);return t.forEach(function(t){t.label_formatted=t.data.label_formatted,t.metadata=t.data.metadata,t.row_values=t.data.row_values,t.value_display=t.data.value_display,t.SERIES=t.data.SERIES}),t}function jU(t,e,n,r){var i=ob((e=e||this)._current,{startAngle:t.startAngle,endAngle:t.endAngle});e._current=i(0);var o=ob(e._prev_r,n);return function(t){var e=o(t);return r.outerRadius(e).innerRadius(e*TI.donut_inner_radius/100),r(i(t))}}function AU(t){var e,n;return"translate("+(t.data.facet.scales.w/2+t.data.facet.chart_layout.margins.left)+","+(t.data.facet.scales.h/2+t.data.facet.chart_layout.margins.top)+")"}function IU(t){return Math.min(t.data.facet.scales.h,t.data.facet.scales.w)/2*Math.sqrt(t.data.facet.scales.sum_scale_ratio)}function TU(t,e,n){var r=JY().outerRadius(IU).innerRadius(function(t){return IU(t)*TI.donut_inner_radius/100}).cornerRadius(TI.donut_corner_radius).padAngle(TI.donut_pad_angle*Math.PI/180),i=t.selectAll(".data-point").data(function(t){return kU(t.data_points)},MP),t=i.enter().append("path").attr("class","data-point").attr("data-type","arc").each(function(t){this._current={startAngle:0,endAngle:0},this._prev_r=IU(t)}).attr("fill",function(t){return mP(t.data)}).attr("opacity",0).attr("d",r).attr("stroke-width",0).attr("transform",AU).on("click",UC).on("mouseout",FC);i.merge(t).on("mouseover",BC).attr("visibility","visible").each(function(t){this.__centroid__=r.centroid(t)}).attr("id",function(t){return"point-"+t.data.series+"-"+t.data.row_index}).transition().duration(e?0:TI.data_trans_duration).delay(n).attr("fill",function(t){return mP(t.data)}).attr("transform",AU).attr("opacity",1).attr("stroke-width",0).attrTween("d",function(t){var e=IU(t);return"arc"==this.getAttribute("data-type")?jU(t,this,e,r,t.data.facet.index):iY(this.getAttribute("d"),_Y(r(t)),{maxSegmentLength:1})}).on("end",function(t){this.setAttribute("data-type","arc"),this._prev_r=IU(t),this._current=t}),i.exit().each(function(t){my(this).attr("id",null),(t.data?my(this).transition().duration(e?0:TI.data_trans_duration).attrTween("d",function(t){return jU({startAngle:2*Math.PI,endAngle:2*Math.PI},this,IU(t),r)}):my(this)).remove()})}var NU={area:iU,line:rU,curveLinear:tU,curveMonotoneX:gU,curveNatural:mU,curveStep:bU,curveStepAfter:wU,curveStepBefore:xU};function zU(t){return"log"==TI.y.numeric_scale_type&&t<=0?.01:t}function EU(t){return"translate("+t.facet.layout.x+","+t.facet.layout.y+")"}function SU(e){return NU.line().x(function(t){var e;return(0,t.facet.scales.label)(t.label)}).y(function(t){return t.facet.scales[e?"value_secondary":"value"](zU(t.value))}).curve(NU[TI.line_curve]||NU.curveLinear).defined(function(t){return null!==t})}function LU(t,e,n,r,a){var i=SU(a),o=a?"-secondary":"",s=my("#lines"+o).selectAll(".series"+o).data(t,kP),l=s,c=jF.remToPx(TI.line_width),u=s.exit(),u;u.attr("class",null).transition().duration(e?0:TI.data_trans_duration).delay(n).style("opacity",0).remove(),u.select("path").attr("clip-path",function(){return"url(#clip-"+this.getAttribute("clip-path-id")+"-exiting)"}),u.select("clipPath").attr("id",function(){return this.getAttribute("id")+"-exiting"}),OD.has_lines&&((u=s.enter().append("g").attr("class","series"+o)).append("clipPath").attr("id",function(t,e){return"clip-"+t.facet.index+"-"+e+o}).append("rect").attr("width",0).attr("x",function(t){return t.facet.chart_layout.margins().left}).attr("y",h).attr("height",p),u.append("path").attr("class","line").attr("opacity",TI.line_opacity).attr("pointer-events","none").attr("fill","none").attr("stroke-dasharray",UU).attr("stroke",vP).attr("stroke-width",c).attr("transform",EU).attr("clip-path",function(t,e){return"url(#clip-"+t.facet.index+"-"+e+o+")"}),l=s.merge(u));var d=3*l.size();function f(){OD.has_lines||0==--d&&l.remove()}l.select("clipPath").attr("id",function(t,e){return"clip-"+t.facet.index+"-"+e+o}).select("rect").transition().duration(e?0:TI.data_trans_duration).delay(e?0:r).attr("x",function(t){return t.facet.chart_layout.margins().left}).attr("y",h).attr("height",p).attr("width",function(t){return a||"line"==OD.mode?t.facet.layout.plot_w:0}).on("interrupt",function(t){my(this).attr("height",p).transition().duration(e?0:TI.data_trans_duration).delay(e?0:r).attr("width",a||"line"==OD.mode?t.facet.layout.plot_w:0).attr("x",function(t){return t.facet.chart_layout.margins().left}).attr("y",h)}).on("end",f),l.select("path.line").attr("clip-path",function(t,e){return"url(#clip-"+t.facet.index+"-"+e+o+")"}).attr("clip-path-id",function(t,e){return t.facet.index+"-"+e+o}).transition().duration(e?0:TI.data_trans_duration).delay(n).attr("opacity",TI.line_opacity).attr("fill","none").attr("stroke-dasharray",UU).attr("stroke",vP).attr("stroke-width",c).attr("transform",EU).attr("d",function(t){return i(t[OD.getLineDataPoints(a)])}).on("end",f);var n=[];function h(t){return t.facet.chart_layout.margins().top-c}function p(t){return t.facet.layout.plot_h+2*c}OD.combo_chart||(n=t.map(function(t){for(var e=t[OD.getLineDataPoints(a)],n=null,r=e.length-1;0<=r;r--)if(e[r]){n=e[r];break}if(!n)return null;var i=t.facet.scales.label,o=mY(!0);return{x:i(n.label)+t.facet.layout.x+o+2,y:t.facet.scales[a?"value_secondary":"value"](n.value)+t.facet.layout.y,text:t.name,color:vP(t),group:t.facet.layout.x}}).filter(function(t){return null!==t})),a||CF.duration(e?0:TI.data_trans_duration).backgroundColor(TI.layout.background_color).foregroundColor(TI.layout.font_color).delay(r).group("group").data("line"==OD.mode&&TI.line_end_labels?n:[]).yBounds([0,jF.getPrimaryHeight()]).update()}function DU(t,e){return"area"==e?0:"value_base"in t?t.value_base:t.value}var CU=null,OU,PU;function RU(e){return NU.area().x(function(t){return t.facet.scales.label(t.label)}).y0(function(t){return t.facet.scales.value(zU(t.value))}).y1(function(t){return t.facet.scales.value(zU(DU(t,e)))}).curve(NU[TI.line_curve]||NU.curveLinear).defined(function(t){return null!==t})}function YU(t,e,n){var r=RU(CU),i=RU(TI.chart_type),o=my(".lines-secondary").selectAll(".series-secondary").size(),a=my("#lines").selectAll(".series").data(),s=my("#areas").selectAll(".series").data(t,kP),l=s,c,t;OD.area&&(t=(c=s.enter().append("g").attr("class","series").attr("pointer-events","none")).append("path").attr("class","area").attr("transform",EU).attr("fill-opacity",0).attr("fill",vP).attr("clip-path",function(t,e){return"url(#clip-"+t.facet.index+"-"+e+")"}),a&&a.length&&t.attr("d",function(t,e){var e=a[o+e];return e?r(e.data_points):null}),l=s.merge(c));var u=l.size();l.select("path.area").attr("clip-path",function(t,e){return"url(#clip-"+t.facet.index+"-"+e+")"}).attr("clip-path-id",function(t,e){return t.facet.index+"-"+e}).transition().duration(e?0:TI.data_trans_duration).delay(n).attr("transform",EU).attr("fill-opacity",OD.area?TI.area_opacity:0).attr("fill",vP).attr("d",function(t){return i(t[OD.getLineDataPoints()])}).on("end",function(){OD.area||0!=--u||l.remove()});var s=s.exit();s.attr("class",null).transition().duration(e?0:TI.data_trans_duration).delay(n).style("opacity",0).remove(),s.select("path").attr("clip-path",function(){return"url(#clip-"+this.getAttribute("clip-path-id")+"-exiting)"}),CU=TI.chart_type}function UU(t){var e;return-1<TI.line_dash_items.split("\n").map(function(t){return t.trim()}).indexOf(t.name)?TI.line_dash_width+" "+TI.line_dash_space_width:null}function BU(t,e){var n=t[OD.getLineDataPoints()],r=e[OD.getLineDataPoints()].slice().reverse(),i,o;return SU(t.secondary)(n)+"L"+SU(e.secondary)(r).substring(1)}function FU(t,e,n){var o=[],r,i;OD.has_lines&&!OD.area&&TI.shade_between_lines&&(r=[],TI.shade_between_lines_config.split(/\n/).forEach(function(t){var t=t.replace(/\s*::\s*/g,"::").trim().split("::");1<t.length&&r.push({a:t[0],b:t[1],color:t[2]||TI.shade_between_lines_color,opacity:+t[3]||TI.shade_between_lines_opacity})}),r.forEach(function(i){t.forEach(function(t,e){var n,r;t.series.forEach(function(t){t.name==i.a&&(n=t),t.name==i.b&&(r=t)}),n&&r&&o.push({a:n,b:r,facet:e,color:i.color,opacity:i.opacity})})}));var a=my("#areas").selectAll(".shading").data(o),s=a.enter().append("path").attr("class","shading").attr("d",function(t){var e;return BU(t.a,t.b)}).attr("transform",function(t){return EU(t.a)}).attr("opacity",0).attr("pointer-events","none");a.merge(s).attr("clip-path",function(t){var e=t.a.secondary?"-secondary":"";return"url(#clip-"+t.facet+"-"+t.a.index+e+")"}).transition().duration(e?0:TI.data_trans_duration).delay(n).attr("d",function(t){var e;return BU(t.a,t.b)}).attr("transform",function(t){return EU(t.a)}).attr("fill",function(t){return t.color}).attr("opacity",function(t){return t.opacity}),a.exit().remove()}function ZU(t,e,n,r,i){i||(YU(t,e,n),FU(zO,e,n)),LU(t,e,n,r,i)}function HU(t,e,n){var r=jF.remToPx(TI.bar_labels_font_size),i=t.selectAll(".bar-label").data(OD.has_bar_labels?e.label_domain:[]),t=i.enter().append("text").attr("class","bar-label").attr("transform",o).attr("font-weight",TI.bar_labels_weight).attr("font-size",r).attr("fill",TI.bar_labels_color||"currentColor").attr("opacity",0).text(a),t=i.merge(t).attr("font-weight",TI.bar_labels_weight).attr("fill",TI.bar_labels_color||"currentColor").text(a),n=n?0:TI.data_trans_duration;function o(t){var t=e.scales.label(t)-e.scales.group_w/2-.2*r;return"translate("+e.chart_layout.margins.left+","+t+")"}function a(t){return zO.labelFormat(t)}t.transition().duration(n).attr("font-size",r).attr("transform",o).attr("opacity",1),i.exit().remove()}function GU(){return jF.remToPx(TI.anno_x_font_size)}function QU(){return jF.remToPx(TI.anno_y_font_size)}function qU(t){return t.replace(/\s*::\s*/g,"::").split("::")}function VU(t){return t.replace(/\s*>>\s*/,">>").split(">>")}function WU(t){return t.color}function $U(t,e){var n,e,n;return n="number"===e?isNaN(OU(t))?OU(t):t:"datetime"===e?zO.labelTest(t)?zO.labelParse(t):(e=AF([t])[0],Flourish.warn({message:"Axis highlight date/time format did not match the input data",explanation:"Interpretting this annotation in the format "+e.description+"."}),e.parse(t)):t}function XU(t,i,e,n){var r=i.scales,o=i.chart_layout.margins.left,a=i.chart_layout.margins.top,s=r.h,l=TI.anno_x_label_align,c=TI.anno_x_label_vertical,u=OD.values_on_x?r.value:r.label,d=OD.values_on_x?"number":zO.label_type,f=[];TI.anno_x_enabled&&OD.has_axes&&TI.anno_x_lines&&n==TI.anno_x_stack&&TI.anno_x_lines.split("\n").forEach(function(t){var e=qU(t),n=e[0],r=e[1],t,e;void 0!==r&&(t=e[2]||TI.anno_x_line_color,(e=e[3]||null)&&i.name!=e||f.push({label:n,x:$U(r,d),color:t}))});var n=my(t).selectAll("g.line.x").data(f),t=n.enter().append("g").attr("class","line x").attr("transform",function(t){return"translate("+(u(t.x)||o)+", "+a+")"});t.append("line"),t.append("text");var t=n.merge(t);t.transition().duration(PU).attr("transform",function(t){return"translate("+(u(t.x)||o)+", "+a+")"}),t.select("line").attr("stroke-dasharray",TI.anno_x_line_dash+" "+TI.anno_x_line_dash).attr("stroke",WU).attr("stroke-width",TI.anno_x_line_width).attr("y2",s),t.select("text").text(function(t){return t.label}).attr("fill",TI.anno_x_line_color).attr("font-size",GU()).attr("transform",function(t){var e=c?6:1.25*GU(),n="bottom"==l?s-e:"top"==l?e:s/2;if(c)return"translate("+.5*GU()+", "+n+") rotate("+(c?-90:0)+")";var r=this.getBoundingClientRect(),e=-GU()/2;return(u(t.x)||o)-r.width-GU()/2<u.range()[0]&&(e+=r.width+GU()),"translate("+e+", "+n+")"}).attr("text-anchor",function(){return c?"bottom"==l?"start":"top"==l?"end":"middle":"end"}).attr("dy",function(t){return c?(u(t.x)||0)<GU()+o?"0.75em":"-1em":null}),n.exit().remove()}function JU(t,i,e,n){var r=i.scales,o=i.chart_layout.margins.left,a=i.chart_layout.margins.top,s=r.h,l=TI.anno_x_label_align,c=TI.anno_x_label_vertical,u=OD.values_on_x?r.value:r.label,d=OD.values_on_x?"number":zO.label_type,f=[];TI.anno_x_enabled&&OD.has_axes&&TI.anno_x_areas&&n==TI.anno_x_stack&&TI.anno_x_areas.split("\n").map(function(t){var e=qU(t),n,r,t,e;e.length<2||(n=e[0],r=VU(e[1]).map(function(t,e){var t=u($U(t,d));return"column"==OD.mode&&(t+=u.step()/2*(0==e?-1:1)),t}),t=e[2]||TI.anno_x_fill_color,(e=e[3]||null)&&i.name!=e||1<r.length&&f.push({label:n,range:r,color:t}))});var n=my(t).selectAll("g.area.x").data(f),t=n.enter().append("g").attr("class","area x").attr("transform",function(t){return"translate("+(Math.min(t.range[0],t.range[1])||o)+", "+a+")"});t.append("rect").attr("height",s).attr("width",function(t){return Math.abs(t.range[1]-t.range[0])||0}),t.append("text");var t=n.merge(t);t.transition().duration(PU).attr("transform",function(t){return"translate("+(Math.min(t.range[0],t.range[1])||o)+", "+a+")"}),t.select("rect").attr("width",function(t){return Math.abs(t.range[1]-t.range[0])||0}).attr("fill",WU).attr("opacity",TI.anno_x_fill_opacity).attr("height",s),t.select("text").text(function(t){return t.label}).attr("fill",TI.anno_x_label_color).attr("font-size",GU()).attr("transform",function(){var t=c?6:1.25*GU(),t="bottom"==l?s-t:"top"==l?t:s/2;return"translate("+.5*GU()+", "+t+") rotate("+(c?-90:0)+")"}).attr("text-anchor",function(){return!c||"bottom"==l?"start":"top"==l?"end":"middle"}).attr("dy",c?"0.75em":null),n.exit().remove()}function KU(t,i,e,n){var r=i.scales,o=r.w,a=TI.anno_y_label_align,s=i.chart_layout.margins.left,l=i.chart_layout.margins.top,c=OD.values_on_x?r.label:r.value,u=OD.values_on_x?zO.label_type:"number",d=[];TI.anno_y_enabled&&OD.has_axes&&!OD.hide_y_axis&&TI.anno_y_lines&&n==TI.anno_y_stack&&TI.anno_y_lines.split("\n").forEach(function(t){var e=qU(t),n=e[0],r=e[1],t,e;void 0!==r&&(t=e[2]||TI.anno_y_line_color,(e=e[3]||null)&&i.name!=e||d.push({label:n,y:$U(r,u),color:t}))});var n=my(t).selectAll("g.line.y").data(d),t=n.enter().append("g").attr("class","line y").attr("transform",function(t){return"translate("+s+", "+(c(t.y)||0)+")"});t.append("line").attr("width",0),t.append("text");var t=n.merge(t);t.transition().duration(PU).attr("transform",function(t){return"translate("+s+", "+(c(t.y)||0)+")"}),t.select("line").attr("stroke-dasharray",TI.anno_y_line_dash+" "+TI.anno_y_line_dash).attr("stroke",WU).attr("stroke-width",TI.anno_y_line_width).attr("x2",o),t.select("text").text(function(t){return t.label}).attr("fill",TI.anno_y_line_color).attr("x","left"==a?10:"right"==a?o-6:o/2).attr("text-anchor","left"==a?"start":"right"==a?"end":"middle").attr("dy",function(t){return(c(t.y)||0)<GU()+l?"1.25em":"-0.5em"}).attr("font-size",QU()),n.exit().remove()}function tB(t,i,e,n){var r=i.scales,o=r.w,a=TI.anno_y_label_align,s=i.chart_layout.margins.left,l=OD.values_on_x?r.label:r.value,c=OD.values_on_x?zO.label_type:"number",u=[];TI.anno_y_enabled&&OD.has_axes&&!OD.hide_y_axis&&TI.anno_y_areas&&n==TI.anno_y_stack&&TI.anno_y_areas.split("\n").map(function(t){var e=qU(t),n,r,t,e;e.length<2||(n=e[0],r=VU(e[1]).map(function(t,e){var t=l($U(t,c));return"bar"==OD.mode&&(t+=l.step()/2*(0==e?1:-1)),t}),t=e[2]||TI.anno_y_fill_color,(e=e[3]||null)&&i.name!=e||1<r.length&&u.push({label:n,range:r,color:t}))});var n=my(t).selectAll("g.area.y").data(u),t=n.enter().append("g").attr("class","area y").attr("transform",function(t){return"translate("+s+", "+Math.min(t.range[0],t.range[1])+")"});t.append("rect").attr("width",o).attr("height",function(t){return Math.abs(t.range[1]-t.range[0])}),t.append("text");var t=n.merge(t);t.transition().duration(PU).attr("transform",function(t){return"translate("+s+", "+Math.min(t.range[0],t.range[1])+")"}),t.select("rect").attr("height",function(t){return Math.abs(t.range[1]-t.range[0])}).attr("fill",WU).attr("opacity",TI.anno_y_fill_opacity).attr("width",o),t.select("text").text(function(t){return t.label}).attr("fill",TI.anno_y_label_color).attr("x","left"==a?10:"right"==a?o-6:o/2).attr("text-anchor","left"==a?"start":"right"==a?"end":"middle").attr("dominant-baseline","hanging").attr("dy","0.33em").attr("font-size",QU()),n.exit().remove()}function eB(t,n,r){var e=my(".annotations."+r).selectAll("g.axis-highlights").data(zO),i=e.enter().append("g").attr("class","axis-highlights").attr("transform",function(t){return"translate("+t.layout.x+", "+t.layout.y+")"}).style("opacity",0);e.merge(i).transition().duration(n?0:TI.data_trans_duration).style("opacity",1).attr("transform",function(t){return"translate("+t.layout.x+", "+t.layout.y+")"}).each(function(t){var e=this;XU(e,t,n,r),JU(e,t,n,r),KU(e,t,n,r),tB(e,t,n,r)}),e.exit().remove()}function nB(t,e){PU=e?0:TI.data_trans_duration,OU=wF.getParser(),eB(t,e,"above"),eB(t,e,"below")}var rB=Math.pow(2,-52),iB=new Uint32Array(512),oB=function(){function l(t){og(this,l);var e=t.length>>1;if(0<e&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;var t=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*t),this._halfedges=new Int32Array(3*t),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()}return sg(l,[{key:"update",value:function t(){for(var e=this.coords,n=this._hullPrev,r=this._hullNext,i=this._hullTri,o=this._hullHash,a=e.length>>1,s=1/0,l=1/0,c=-1/0,u=-1/0,d=0;d<a;d++){var f=e[2*d],h=e[2*d+1];f<s&&(s=f),h<l&&(l=h),c<f&&(c=f),u<h&&(u=h),this._ids[d]=d}for(var p=(s+c)/2,g=(l+u)/2,_=1/0,y,m,v,b=0;b<a;b++){var x=sB(p,g,e[2*b],e[2*b+1]);x<_&&(y=b,_=x)}for(var w=e[2*y],M=e[2*y+1],_=1/0,k=0,j;k<a;k++){k!==y&&((j=sB(w,M,e[2*k],e[2*k+1]))<_&&0<j&&(m=k,_=j))}for(var A=e[2*m],I=e[2*m+1],T=1/0,N=0,z;N<a;N++){N!==y&&N!==m&&((z=dB(w,M,A,I,e[2*N],e[2*N+1]))<T&&(v=N,T=z))}var E=e[2*v],S=e[2*v+1],L,D,C,m,A,I,v,E,S;if(T===1/0){for(var O=0;O<a;O++)this._dists[O]=e[2*O]-e[0]||e[2*O+1]-e[1];hB(this._ids,this._dists,0,a-1);for(var P=new Uint32Array(a),R=0,Y=0,U=-1/0;Y<a;Y++){var B=this._ids[Y];this._dists[B]>U&&(P[R++]=B,U=this._dists[B])}return this.hull=P.subarray(0,R),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}cB(w,M,A,I,E,S)&&(L=m,D=A,C=I,m=v,A=E,I=S,v=L,E=D,S=C);var F=fB(w,M,A,I,E,S);this._cx=F.x,this._cy=F.y;for(var Z=0;Z<a;Z++)this._dists[Z]=sB(e[2*Z],e[2*Z+1],F.x,F.y);hB(this._ids,this._dists,0,a-1);var H=3;r[this._hullStart=y]=n[v]=m,r[m]=n[y]=v,i[r[v]=n[m]=y]=0,i[m]=1,i[v]=2,o.fill(-1),o[this._hashKey(w,M)]=y,o[this._hashKey(A,I)]=m,o[this._hashKey(E,S)]=v,this.trianglesLen=0,this._addTriangle(y,m,v,-1,-1,-1);for(var G=0,Q,q;G<this._ids.length;G++){var V=this._ids[G],W=e[2*V],$=e[2*V+1];if(!(0<G&&Math.abs(W-Q)<=rB&&Math.abs($-q)<=rB)&&(Q=W,q=$,V!==y&&V!==m&&V!==v)){for(var X=0,J=0,K=this._hashKey(W,$);J<this._hashSize&&(-1===(X=o[(K+J)%this._hashSize])||X===r[X]);J++);for(var X,tt=X=n[X],et=void 0;et=r[tt],!cB(W,$,e[2*tt],e[2*tt+1],e[2*et],e[2*et+1]);)if((tt=et)===X){tt=-1;break}if(-1!==tt){var nt=this._addTriangle(tt,V,r[tt],-1,-1,i[tt]);i[V]=this._legalize(nt+2),i[tt]=nt,H++;for(var rt=r[tt];et=r[rt],cB(W,$,e[2*rt],e[2*rt+1],e[2*et],e[2*et+1]);)nt=this._addTriangle(rt,V,et,i[V],-1,i[rt]),i[V]=this._legalize(nt+2),r[rt]=rt,H--,rt=et;if(tt===X)for(;cB(W,$,e[2*(et=n[tt])],e[2*et+1],e[2*tt],e[2*tt+1]);)nt=this._addTriangle(et,V,tt,-1,i[tt],i[et]),this._legalize(nt+2),i[et]=nt,r[tt]=tt,H--,tt=et;r[this._hullStart=n[V]=tt]=n[rt]=V,r[V]=rt,o[this._hashKey(W,$)]=V,o[this._hashKey(e[2*tt],e[2*tt+1])]=tt}}}this.hull=new Uint32Array(H);for(var it=0,ot=this._hullStart;it<H;it++)ot=r[this.hull[it]=ot];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}},{key:"_hashKey",value:function t(e,n){return Math.floor(aB(e-this._cx,n-this._cy)*this._hashSize)%this._hashSize}},{key:"_legalize",value:function t(e){for(var n=this._triangles,r=this._halfedges,i=this.coords,o=0,a=0;;){var s=r[e],l=e-e%3,a=l+(e+2)%3;if(-1!==s){var c=s-s%3,u,d=c+(s+2)%3,f=n[a],h=n[e],p=n[l+(e+1)%3],l=n[d],g;if(uB(i[2*f],i[2*f+1],i[2*h],i[2*h+1],i[2*p],i[2*p+1],i[2*l],i[2*l+1])){n[e]=l,n[s]=f;var f=r[d],_;if(-1===f){var y=this._hullStart;do{if(this._hullTri[y]===d){this._hullTri[y]=e;break}}while((y=this._hullPrev[y])!==this._hullStart)}this._link(e,f),this._link(s,r[a]),this._link(a,d),o<iB.length&&(iB[o++]=c+(s+1)%3)}else{if(0===o)break;e=iB[--o]}}else{if(0===o)break;e=iB[--o]}}return a}},{key:"_link",value:function t(e,n){-1!==(this._halfedges[e]=n)&&(this._halfedges[n]=e)}},{key:"_addTriangle",value:function t(e,n,r,i,o,a){var s=this.trianglesLen;return this._triangles[s]=e,this._triangles[s+1]=n,this._triangles[s+2]=r,this._link(s,i),this._link(s+1,o),this._link(s+2,a),this.trianglesLen+=3,s}}],[{key:"from",value:function t(e){for(var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:gB,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:_B,i=e.length,o=new Float64Array(2*i),a=0;a<i;a++){var s=e[a];o[2*a]=n(s),o[2*a+1]=r(s)}return new l(o)}}]),l}();function aB(t,e){var t=t/(Math.abs(t)+Math.abs(e));return(0<e?3-t:1+t)/4}function sB(t,e,n,r){var n=t-n,r=e-r;return n*n+r*r}function lB(t,e,n,r,i,o){var i=(r-e)*(i-t),e=(n-t)*(o-e);return Math.abs(i-e)>=33306690738754716e-32*Math.abs(i+e)?i-e:0}function cB(t,e,n,r,i,o){var a;return(lB(i,o,t,e,n,r)||lB(t,e,n,r,i,o)||lB(n,r,i,o,t,e))<0}function uB(t,e,n,r,i,o,a,s){var t=t-a,e=e-s,n=n-a,r=r-s,i=i-a,a=o-s,l,o=n*n+r*r,s=i*i+a*a;return t*(r*s-o*a)-e*(n*s-o*i)+(t*t+e*e)*(n*a-r*i)<0}function dB(t,e,n,r,i,o){var a=n-t,n=r-e,r=i-t,i=o-e,t=a*a+n*n,o=r*r+i*i,e=.5/(a*i-n*r),n=(i*t-n*o)*e,e=(a*o-r*t)*e;return n*n+e*e}function fB(t,e,n,r,i,o){var a=n-t,s=r-e,l=i-t,n=o-e,r=a*a+s*s,i=l*l+n*n,o=.5/(a*n-s*l),c,u;return{x:t+(n*r-s*i)*o,y:e+(a*i-l*r)*o}}function hB(t,e,n,r){if(r-n<=20)for(var i=n+1;i<=r;i++){for(var o=t[i],a=e[o],s=i-1;n<=s&&e[t[s]]>a;)t[s+1]=t[s--];t[s+1]=o}else{var l,c=n+1,u=r;pB(t,n+r>>1,c),e[t[n]]>e[t[r]]&&pB(t,n,r),e[t[c]]>e[t[r]]&&pB(t,c,r),e[t[n]]>e[t[c]]&&pB(t,n,c);for(var d=t[c],f=e[d];;){for(;e[t[++c]]<f;);for(;e[t[--u]]>f;);if(u<c)break;pB(t,c,u)}t[n+1]=t[u],t[u]=d,u-n<=r-c+1?(hB(t,e,c,r),hB(t,e,n,u-1)):(hB(t,e,n,u-1),hB(t,e,c,r))}}function pB(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function gB(t){return t[0]}function _B(t){return t[1]}var yB=1e-6,mB=function(){function t(){og(this,t),this._x0=this._y0=this._x1=this._y1=null,this._=""}return sg(t,[{key:"moveTo",value:function t(e,n){this._+="M".concat(this._x0=this._x1=+e,",").concat(this._y0=this._y1=+n)}},{key:"closePath",value:function t(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}},{key:"lineTo",value:function t(e,n){this._+="L".concat(this._x1=+e,",").concat(this._y1=+n)}},{key:"arc",value:function t(e,n,r){var i=(e=+e)+(r=+r),o=n=+n;if(r<0)throw new Error("negative radius");null===this._x1?this._+="M".concat(i,",").concat(o):(Math.abs(this._x1-i)>yB||Math.abs(this._y1-o)>yB)&&(this._+="L"+i+","+o),r&&(this._+="A".concat(r,",").concat(r,",0,1,1,").concat(e-r,",").concat(n,"A").concat(r,",").concat(r,",0,1,1,").concat(this._x1=i,",").concat(this._y1=o))}},{key:"rect",value:function t(e,n,r,i){this._+="M".concat(this._x0=this._x1=+e,",").concat(this._y0=this._y1=+n,"h").concat(+r,"v").concat(+i,"h").concat(-r,"Z")}},{key:"value",value:function t(){return this._||null}}]),t}(),vB=function(){function t(){og(this,t),this._=[]}return sg(t,[{key:"moveTo",value:function t(e,n){this._.push([e,n])}},{key:"closePath",value:function t(){this._.push(this._[0].slice())}},{key:"lineTo",value:function t(e,n){this._.push([e,n])}},{key:"value",value:function t(){return this._.length?this._:null}}]),t}(),bB=function(){function a(t){var e,n=yg(1<arguments.length&&void 0!==arguments[1]?arguments[1]:[0,0,960,500],4),r=n[0],i=n[1],o=n[2],n=n[3];if(og(this,a),!((o=+o)>=(r=+r)&&(n=+n)>=(i=+i)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=o,this.xmin=r,this.ymax=n,this.ymin=i,this._init()}return sg(a,[{key:"update",value:function t(){return this.delaunay.update(),this._init(),this}},{key:"_init",value:function t(){for(var e=this.delaunay,n=e.points,r=e.hull,i=e.triangles,o=this.vectors,a=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2),s=0,l=0,c=i.length,u,d;s<c;s+=3,l+=2){var d=2*i[s],f=2*i[s+1],h=2*i[s+2],p=n[d],g=n[1+d],_=n[f],y=n[1+f],m=n[h],v=n[1+h],b=_-p,x=y-g,d=m-p,f=v-g,h=b*b+x*x,_=d*d+f*f,y=2*(b*f-x*d),y,u,d;d=y?Math.abs(y)<1e-8?(u=(p+m)/2,(g+v)/2):(u=p+(f*h-x*_)*(y=1/y),g+(b*_-d*h)*y):(u=(p+m)/2-1e8*f,(g+v)/2+1e8*d),a[l]=u,a[l+1]=d}var w=r[r.length-1],M,k=4*w,j,A=n[2*w],I,T=n[2*w+1];o.fill(0);for(var N=0;N<r.length;++N)j=A,I=T,A=n[2*(w=r[N])],T=n[2*w+1],o[(M=k)+2]=o[k=4*w]=I-T,o[M+3]=o[k+1]=A-j}},{key:"render",value:function t(e){var n=null==e?e=new mB:void 0,r=this.delaunay,i=r.halfedges,o=r.inedges,a=r.hull,s=this.circumcenters,l=this.vectors;if(a.length<=1)return null;for(var c=0,u=i.length;c<u;++c){var d=i[c],f,h,p,d,f,h;d<c||(f=2*Math.floor(c/3),h=2*Math.floor(d/3),p=s[f],d=s[1+f],f=s[h],h=s[1+h],this._renderSegment(p,d,f,h,e))}for(var g,_=a[a.length-1],y=0;y<a.length;++y){var g=_,_=a[y],m=2*Math.floor(o[_]/3),v=s[m],m=s[1+m],g=4*g,g=this._project(v,m,l[2+g],l[3+g]);g&&this._renderSegment(v,m,g[0],g[1],e)}return n&&n.value()}},{key:"renderBounds",value:function t(e){var n=null==e?e=new mB:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}},{key:"renderCell",value:function t(e,n){var r=null==n?n=new mB:void 0,i=this._clip(e);if(null!==i&&i.length){n.moveTo(i[0],i[1]);for(var o=i.length;i[0]===i[o-2]&&i[1]===i[o-1]&&1<o;)o-=2;for(var a=2;a<o;a+=2)i[a]===i[a-2]&&i[a+1]===i[a-1]||n.lineTo(i[a],i[a+1]);return n.closePath(),r&&r.value()}}},{key:"cellPolygons",value:regeneratorRuntime.mark(function t(){var n,r,i,n;return regeneratorRuntime.wrap(function t(e){for(;;)switch(e.prev=e.next){case 0:n=this.delaunay.points,r=0,i=n.length/2;case 2:if(!(r<i)){e.next=11;break}if(n=this.cellPolygon(r))return n.index=r,e.next=8,n;e.next=8;break;case 8:++r,e.next=2;break;case 11:case"end":return e.stop()}},t,this)})},{key:"cellPolygon",value:function t(e){var n=new vB;return this.renderCell(e,n),n.value()}},{key:"_renderSegment",value:function t(e,n,r,i,o){var a,s=this._regioncode(e,n),a=this._regioncode(r,i);0===s&&0===a?(o.moveTo(e,n),o.lineTo(r,i)):(a=this._clipSegment(e,n,r,i,s,a))&&(o.moveTo(a[0],a[1]),o.lineTo(a[2],a[3]))}},{key:"contains",value:function t(e,n,r){return(n=+n)==n&&(r=+r)==r&&this.delaunay._step(e,n,r)===e}},{key:"neighbors",value:regeneratorRuntime.mark(function t(n){var r,i,o,a,s,l,c,u,d;return regeneratorRuntime.wrap(function t(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this._clip(n))){e.next=33;break}i=Ig(this.delaunay.neighbors(n)),e.prev=3,i.s();case 5:if((o=i.n()).done){e.next=25;break}if(a=o.value,!(s=this._clip(a))){e.next=23;break}l=0,c=r.length;case 10:if(!(l<c)){e.next=23;break}u=0,d=s.length;case 12:if(!(u<d)){e.next=20;break}if(r[l]==s[u]&&r[l+1]==s[u+1]&&r[(l+2)%c]==s[(u+d-2)%d]&&r[(l+3)%c]==s[(u+d-1)%d])return e.next=16,a;e.next=17;break;case 16:return e.abrupt("break",23);case 17:u+=2,e.next=12;break;case 20:l+=2,e.next=10;break;case 23:e.next=5;break;case 25:e.next=30;break;case 27:e.prev=27,e.t0=e.catch(3),i.e(e.t0);case 30:return e.prev=30,i.f(),e.finish(30);case 33:case"end":return e.stop()}},t,this,[[3,27,30,33]])})},{key:"_cell",value:function t(e){var n=this.circumcenters,r=this.delaunay,i=r.inedges,o=r.halfedges,a=r.triangles,s=i[e];if(-1===s)return null;var l=[],c=s;do{var u=Math.floor(c/3)}while((l.push(n[2*u],n[2*u+1]),a[c=c%3==2?c-2:c+1]===e)&&((c=o[c])!==s&&-1!==c));return l}},{key:"_clip",value:function t(e){if(0===e&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];var n=this._cell(e);if(null===n)return null;var r=this.vectors,i=4*e;return r[i]||r[1+i]?this._clipInfinite(e,n,r[i],r[1+i],r[2+i],r[3+i]):this._clipFinite(e,n)}},{key:"_clipFinite",value:function t(e,n){for(var r=n.length,i=null,o,a,s=n[r-2],l=n[r-1],c,u=this._regioncode(s,l),d,f,h=0;h<r;h+=2)if(o=s,a=l,s=n[h],l=n[h+1],c=u,u=this._regioncode(s,l),0===c&&0===u)d=f,f=0,i?i.push(s,l):i=[s,l];else{var p=void 0,g=void 0,_=void 0,y=void 0,m=void 0;if(0===c){if(null===(p=this._clipSegment(o,a,s,l,c,u)))continue;var v,b=yg(p,4),g=b[0],_=b[1],y=b[2],m=b[3]}else{if(null===(p=this._clipSegment(s,l,o,a,u,c)))continue;var x,p=yg(p,4);y=p[0],m=p[1],g=p[2],_=p[3],d=f,f=this._edgecode(g,_),d&&f&&this._edge(e,d,f,i,i.length),i?i.push(g,_):i=[g,_]}d=f,f=this._edgecode(y,m),d&&f&&this._edge(e,d,f,i,i.length),i?i.push(y,m):i=[y,m]}if(i)d=f,f=this._edgecode(i[0],i[1]),d&&f&&this._edge(e,d,f,i,i.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}},{key:"_clipSegment",value:function t(e,n,r,i,o,a){for(;;){if(0===o&&0===a)return[e,n,r,i];if(o&a)return null;var s=void 0,l=void 0,c=o||a;8&c?(s=e+(r-e)*(this.ymax-n)/(i-n),l=this.ymax):4&c?(s=e+(r-e)*(this.ymin-n)/(i-n),l=this.ymin):s=2&c?(l=n+(i-n)*(this.xmax-e)/(r-e),this.xmax):(l=n+(i-n)*(this.xmin-e)/(r-e),this.xmin),o?o=this._regioncode(e=s,n=l):a=this._regioncode(r=s,i=l)}}},{key:"_clipInfinite",value:function t(e,n,r,i,o,a){var s=Array.from(n),i;if((i=this._project(s[0],s[1],r,i))&&s.unshift(i[0],i[1]),(i=this._project(s[s.length-2],s[s.length-1],o,a))&&s.push(i[0],i[1]),s=this._clipFinite(e,s))for(var l=0,c=s.length,u,d=this._edgecode(s[c-2],s[c-1]);l<c;l+=2)u=d,d=this._edgecode(s[l],s[l+1]),u&&d&&(l=this._edge(e,u,d,s,l),c=s.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}},{key:"_edge",value:function t(e,n,r,i,o){for(;n!==r;){var a=void 0,s=void 0;switch(n){case 5:n=4;continue;case 4:n=6,a=this.xmax,s=this.ymin;break;case 6:n=2;continue;case 2:n=10,a=this.xmax,s=this.ymax;break;case 10:n=8;continue;case 8:n=9,a=this.xmin,s=this.ymax;break;case 9:n=1;continue;case 1:n=5,a=this.xmin,s=this.ymin}i[o]===a&&i[o+1]===s||!this.contains(e,a,s)||(i.splice(o,0,a,s),o+=2)}if(4<i.length)for(var l=0;l<i.length;l+=2){var c=(l+2)%i.length,u=(l+4)%i.length;(i[l]===i[c]&&i[c]===i[u]||i[l+1]===i[1+c]&&i[1+c]===i[1+u])&&(i.splice(c,2),l-=2)}return o}},{key:"_project",value:function t(e,n,r,i){var o=1/0,a,s,l;if(i<0){if(n<=this.ymin)return null;(a=(this.ymin-n)/i)<o&&(l=this.ymin,s=e+(o=a)*r)}else if(0<i){if(n>=this.ymax)return null;(a=(this.ymax-n)/i)<o&&(l=this.ymax,s=e+(o=a)*r)}if(0<r){if(e>=this.xmax)return null;(a=(this.xmax-e)/r)<o&&(s=this.xmax,l=n+(o=a)*i)}else if(r<0){if(e<=this.xmin)return null;(a=(this.xmin-e)/r)<o&&(s=this.xmin,l=n+(o=a)*i)}return[s,l]}},{key:"_edgecode",value:function t(e,n){return(e===this.xmin?1:e===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}},{key:"_regioncode",value:function t(e,n){return(e<this.xmin?1:e>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}}]),a}(),xB=regeneratorRuntime.mark(zB),wB=2*Math.PI,MB=Math.pow;function kB(t){return t[0]}function jB(t){return t[1]}function AB(t){for(var e=t.triangles,n=t.coords,r=0;r<e.length;r+=3){var i=2*e[r],o=2*e[r+1],a=2*e[r+2],s;if(1e-10<(n[a]-n[i])*(n[1+o]-n[1+i])-(n[o]-n[i])*(n[1+a]-n[1+i]))return}return 1}function IB(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}var TB=function(){function o(t){og(this,o),this._delaunator=new oB(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}return sg(o,[{key:"update",value:function t(){return this._delaunator.update(),this._init(),this}},{key:"_init",value:function t(){var e=this._delaunator,n=this.points;if(e.hull&&2<e.hull.length&&AB(e)){this.collinear=Int32Array.from({length:n.length/2},function(t,e){return e}).sort(function(t,e){return n[2*t]-n[2*e]||n[2*t+1]-n[2*e+1]});for(var r=this.collinear[0],e=this.collinear[this.collinear.length-1],e=[n[2*r],n[2*r+1],n[2*e],n[2*e+1]],i=1e-8*Math.hypot(e[3]-e[1],e[2]-e[0]),o=0,a=n.length/2;o<a;++o){var s=IB(n[2*o],n[2*o+1],i);n[2*o]=s[0],n[2*o+1]=s[1]}this._delaunator=new oB(n)}else delete this.collinear;for(var l=this.halfedges=this._delaunator.halfedges,c=this.hull=this._delaunator.hull,u=this.triangles=this._delaunator.triangles,d=this.inedges.fill(-1),f=this._hullIndex.fill(-1),h=0,p=l.length;h<p;++h){var g=u[h%3==2?h-2:h+1];-1!==l[h]&&-1!==d[g]||(d[g]=h)}for(var _=0,y=c.length;_<y;++_)f[c[_]]=_;c.length<=2&&0<c.length&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=c[0],this.triangles[1]=c[1],this.triangles[2]=c[1],d[c[0]]=1,2===c.length&&(d[c[1]]=0))}},{key:"voronoi",value:function t(e){return new bB(this,e)}},{key:"neighbors",value:regeneratorRuntime.mark(function t(n){var r,i,o,a,s,l,c,u,d,f,h;return regeneratorRuntime.wrap(function t(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.inedges,i=this.hull,o=this._hullIndex,a=this.halfedges,s=this.triangles,!(l=this.collinear)){e.next=10;break}if(0<(c=l.indexOf(n)))return e.next=6,l[c-1];e.next=6;break;case 6:if(c<l.length-1)return e.next=9,l[c+1];e.next=9;break;case 9:return e.abrupt("return");case 10:if(-1===(u=r[n]))return e.abrupt("return");e.next=13;break;case 13:d=u,f=-1;case 14:return e.next=16,f=s[d];case 16:if(s[d=d%3==2?d-2:d+1]!==n)return e.abrupt("return");e.next=19;break;case 19:if(-1!==(d=a[d])){e.next=26;break}if((h=i[(o[n]+1)%i.length])!==f)return e.next=25,h;e.next=25;break;case 25:return e.abrupt("return");case 26:if(d!==u){e.next=14;break}case 27:case"end":return e.stop()}},t,this)})},{key:"find",value:function t(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if((e=+e)!=e||(n=+n)!=n)return-1;for(var i=r,o;0<=(o=this._step(r,e,n))&&o!==r&&o!==i;)r=o;return o}},{key:"_step",value:function t(e,n,r){var i=this.inedges,o=this.hull,a=this._hullIndex,s=this.halfedges,l=this.triangles,c=this.points;if(-1===i[e]||!c.length)return(e+1)%(c.length>>1);var u=e,d=MB(n-c[2*e],2)+MB(r-c[2*e+1],2),f=i[e],h=f;do{var p=l[h],g=MB(n-c[2*p],2)+MB(r-c[2*p+1],2);if(g<d&&(d=g,u=p),l[h=h%3==2?h-2:h+1]!==e)break;if(-1===(h=s[h])){if((h=o[(a[e]+1)%o.length])!==p&&MB(n-c[2*h],2)+MB(r-c[2*h+1],2)<d)return h;break}}while(h!==f);return u}},{key:"render",value:function t(e){for(var n=null==e?e=new mB:void 0,r=this.points,i=this.halfedges,o=this.triangles,a=0,s=i.length;a<s;++a){var l=i[a],c,l;l<a||(c=2*o[a],l=2*o[l],e.moveTo(r[c],r[1+c]),e.lineTo(r[l],r[1+l]))}return this.renderHull(e),n&&n.value()}},{key:"renderPoints",value:function t(e){for(var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:2,r=null==e?e=new mB:void 0,i=this.points,o=0,a=i.length;o<a;o+=2){var s=i[o],l=i[o+1];e.moveTo(s+n,l),e.arc(s,l,n,0,wB)}return r&&r.value()}},{key:"renderHull",value:function t(e){var n=null==e?e=new mB:void 0,r=this.hull,i=this.points,o=2*r[0],a=r.length;e.moveTo(i[o],i[1+o]);for(var s=1;s<a;++s){var l=2*r[s];e.lineTo(i[l],i[1+l])}return e.closePath(),n&&n.value()}},{key:"hullPolygon",value:function t(){var e=new vB;return this.renderHull(e),e.value()}},{key:"renderTriangle",value:function t(e,n){var r=null==n?n=new mB:void 0,i=this.points,o=this.triangles,a=2*o[e*=3],s=2*o[e+1],e=2*o[e+2];return n.moveTo(i[a],i[1+a]),n.lineTo(i[s],i[1+s]),n.lineTo(i[e],i[1+e]),n.closePath(),r&&r.value()}},{key:"trianglePolygons",value:regeneratorRuntime.mark(function t(){var n,r,n;return regeneratorRuntime.wrap(function t(e){for(;;)switch(e.prev=e.next){case 0:n=this.triangles,r=0,n=n.length/3;case 2:if(r<n)return e.next=5,this.trianglePolygon(r);e.next=8;break;case 5:++r,e.next=2;break;case 8:case"end":return e.stop()}},t,this)})},{key:"trianglePolygon",value:function t(e){var n=new vB;return this.renderTriangle(e,n),n.value()}}],[{key:"from",value:function t(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:kB,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:jB,i=3<arguments.length?arguments[3]:void 0;return new o("length"in e?NB(e,n,r,i):Float64Array.from(zB(e,n,r,i)))}}]),o}();function NB(t,e,n,r){for(var i=t.length,o=new Float64Array(2*i),a=0;a<i;++a){var s=t[a];o[2*a]=e.call(r,s,a,t),o[2*a+1]=n.call(r,s,a,t)}return o}function zB(n,r,i,o){var a,s,l,c;return regeneratorRuntime.wrap(function t(e){for(;;)switch(e.prev=e.next){case 0:a=0,s=Ig(n),e.prev=2,s.s();case 4:if((l=s.n()).done){e.next=13;break}return c=l.value,e.next=8,r.call(o,c,a,n);case 8:return e.next=10,i.call(o,c,a,n);case 10:++a;case 11:e.next=4;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(2),s.e(e.t0);case 18:return e.prev=18,s.f(),e.finish(18);case 21:case"end":return e.stop()}},xB,null,[[2,15,18,21]])}function EB(t){t.on("mousemove",null),t.on("click",null),t.on("mouseout",null)}function SB(t,e,n){var r,i;OD.has_lines&&TI.popup.show_popups?(r=[],t.forEach(function(t){var e;"line"!=OD.mode&&!t.secondary||(e=t.secondary?"data_points":OD.data_points,Array.prototype.push.apply(r,t[e]))}),r.length?(i=TB.from(r,function(t){return e.label(t.label)},function(t){return e[t.secondary?"value_secondary":"value"](t.value)}),n.on("mousemove",function(){LB(this,i,r)}),n.on("click",function(){DB(this,i,r)}),n.on("mouseout",FC)):EB(n)):EB(n)}function LB(t,e,n){var t=xy(t),r,t=n[e.find(t[0],t[1])];BC("point-"+t.series+"-"+t.row_index)}function DB(t,e,n){var t=xy(t),r,t=n[e.find(t[0],t[1])];UC("point-"+t.series+"-"+t.row_index)}var CB=Object.freeze({limit_top:-1/0,limit_right:1/0,limit_bottom:1/0,limit_left:-1/0,padding_top_bottom:0,padding_left_right:0}),OB,PB;function RB(t,e){return!(t.bottom<e.top||t.top>e.bottom)&&!(t.right<e.left||t.left>e.right)}function YB(t){var e,a=Object.assign({},CB,0<arguments.length&&void 0!==t?t:{}),s=[],n=function t(e){if(!e||!e.getBoundingClientRect)return!0;var n=e.getBoundingClientRect();if(n.top<a.limit_top||n.bottom>a.limit_bottom)return!0;if(n.left<a.limit_left||n.right>a.limit_right)return!0;var r=Ig(s),i,o;try{for(r.s();!(i=r.n()).done;){if(RB(n,i.value))return!0}}catch(t){r.e(t)}finally{r.f()}return s.push({top:n.top-a.padding_top_bottom,right:n.right+a.padding_left_right,bottom:n.bottom+a.padding_top_bottom,left:n.left-a.padding_left_right}),!1};return function t(e){return e&&e.getBoundingClientRect?n(e):(e=!Array.isArray(e)?Array.from(e):e).map(n)}}function UB(t){return TI.y_axis_log&&t<=0?.01:t}function BB(t){return t.stack_label&&"auto"!=TI.stack_labels_font_size_mode?jF.remToPx(TI.stack_labels_font_size):t.slack_label||"auto"==TI.labels_font_size_mode?"bar"==OD.mode?Math.min(.8*t.facet.scales.col_w,jF.remToPx(1.25)):jF.remToPx(.9):jF.remToPx(TI.labels_font_size)}function FB(t){if("off"==TI.labels_bg_mode)return 0;var t=BB(t)/(100/TI.labels_bg_size);return"on"!=TI.labels_bg_mode&&"data"!=TI.labels_color_mode&&"contrast"!=TI.labels_color_mode&&"bar"==OD.mode?0:t}function ZB(t){var e,e=TI.chart_bg.background_color_enabled?TI.chart_bg.background_color:TI.layout.background_color_enabled?TI.layout.background_color:"white",n=!1;return"column"==OD.mode&&(n=!OD.stack&&"above"==TI.labels_column_align||t.too_tall),"bar"==OD.mode&&(n=!OD.stack&&"out"==TI.labels_bar_align),"line"!=OD.mode||OD.area||TI.labels_dot_center||(n=!0),"contrast"!=TI.labels_color_mode||n?e:VB(this,t.label)}function HB(t,e){return t.getBBox().width*e/parseFloat(t.getAttribute("font-size"))}function GB(t,e){var n=mY(t,e,this),r=BB(t),i=HB(this,r),o=t.facet.scales,a=t.facet.scales.label(t.label),s=t.facet.scales[t.secondary?"value_secondary":"value"](UB(t.value))+.33*r,e=OD.facet_by_series?0:t.series_primary,l,c,u,a,d,f,o,c;if(t.secondary||"line"==OD.mode)TI.labels_dot_center&&!t.stack_label||(l=n+.66*r,c=t.value<=0,(s+=t.stack_label&&!c||!t.stack_label&&c?-l:l)<r/2&&(s+=2*l),s-r/2>t.facet.scales.h&&(s-=2*l),a<i/2+t.facet.chart_layout.margins.left&&(a+=i/2),a>t.facet.scales.w-i/2&&(a-=i/2));else if("column"==OD.mode){var n=o.value(t.value_base||0),l=Math.abs(s-.33*r-n),n=r*(.5+(0==t.value?0:TI.labels_column_padding)),c=t.value<=0;t.stack_label||!OD.stack&&"above"==TI.labels_column_align||t.too_tall?s+=c?n:-n:"top"==TI.labels_column_align||"above"==TI.labels_column_align?s+=c?-n:n:"middle"==TI.labels_column_align?s+=c?-l/2:l/2:"bottom"==TI.labels_column_align&&(s+=c?n-l:l-n),a+=t.facet.scales.col_w/2+t.facet.scales.col_padding/2-t.facet.scales.group_w/2,OD.stack||(a+=e*(t.facet.scales.col_w+t.facet.scales.col_padding))}else{if("donut"==OD.mode){var d="point-"+t.series+"-"+t.row_index,f=document.getElementById(d).__centroid__;return"translate("+(f[0]+t.facet.scales.w/2+t.facet.chart_layout.margins.left)+","+(f[1]+t.facet.scales.h/2+t.facet.chart_layout.margins.top)+")"}"bar"==OD.mode&&(a=o.value(t.value),d=o.value(t.value_base||0),f=Math.abs(a-d),o=r/4,c=0<=t.value,a=t.stack_label||!OD.stack&&"out"==TI.labels_bar_align?c?a+i/2+o:a-i/2-o:"left"==TI.labels_bar_align?c?d+o+i/2:d-o-i/2:"right"==TI.labels_bar_align||"out"==TI.labels_bar_align?c?a-i/2-o:a+i/2+o:c?a-f/2:a+f/2,s=t.facet.scales.label(t.label)-t.facet.scales.group_w/2+.33*r,s+=t.facet.scales.col_w/2+t.facet.scales.col_padding/2,OD.stack||(s+=e*(t.facet.scales.col_w+t.facet.scales.col_padding)))}return"translate("+a+","+s+")"}function QB(t){return zO.labelFormat(t.label)}function qB(t){return t.secondary?NO(t.value):!t.stack_label&&OD.stack?TO(t.value_display):TO(t.value)}function VB(t,e){return hP?yP(e):_P(t.parentNode.__data__.series)}function WB(t){if(t){var e=Gm(t);return 195<Math.round(299*e.r+587*e.g+114*e.b)/1e3}console.warn("No valid color",t)}function $B(t,e){return e?"currentColor":WB(t)?"black":"white"}function XB(){return TI.labels_fixed_color||TI.layout.font_color}function JB(t){if("fixed"==TI.labels_color_mode)return XB();var e=VB(this,t.label),n=!1,n=!1;return"column"==OD.mode&&(n=!OD.stack&&"above"==TI.labels_column_align||t.too_tall),"bar"==OD.mode&&(n=!OD.stack&&"out"==TI.labels_bar_align),"line"!=OD.mode||OD.area||TI.labels_dot_center||(n=!0),"contrast"==TI.labels_color_mode?$B(e,n):"data"==TI.labels_color_mode||"line"==OD.mode?e:"bar"==OD.mode?$B(e,n):XB()}function KB(t,e){var n=e.facet.scales.value,r=BB(e),n=Math.abs(n(e.value)-n(e.value_base||0)),n=!(e.stack_label||!OD.stack&&"out"==TI.labels_bar_align)&&HB(t,r)>.9*n,r=e.facet.scales.col_w<r;return n||r}function tF(t,e){var n=e.facet.scales.value,r=BB(e),i="top"==TI.labels_column_align||"bottom"==TI.labels_column_align?jF.remToPx(TI.labels_column_padding):0,o,a;return.75*Math.abs(n(e.value)-n(e.value_base||0))<r+i}function eF(t,e){return"bar"==OD.mode&&KB(e,t)&&!t.stack_label&&TI.labels_bar_autohide||"column"==OD.mode&&OD.stack&&t.too_tall?0:1}function nF(t){t.too_tall=tF(this,t)}function rF(t,e,n){var r=e?0:TI.data_trans_duration,i=t.selectAll(".data-label").data(function(t){return TI.labels?t[t.secondary?"data_points":OD.data_points]:[]},MP),o=i.enter().append("g").attr("class","data-label").attr("text-anchor","middle").attr("font-weight",TI.labels_font_weight).attr("font-size",function(t){return BB(t)+"px"}).attr("pointer-events","none").attr("opacity",0),a=o.append("text").attr("class","back").attr("stroke-width",FB).attr("stroke",ZB),s=o.append("text").attr("class","front").attr("fill",JB),e=TI.labels_content,t="label"==e||"both"==e||"auto"==e&&"donut"==OD.mode,e="value"==e||"both"==e||"auto"==e&&"donut"!=OD.mode;s.append("tspan").attr("class","label").text(t?QB:""),s.append("tspan").attr("class","value").text(e?qB:"").attr("x",0).attr("dy",t?"1.05em":0),a.append("tspan").attr("class","label").text(t?QB:""),a.append("tspan").attr("class","value").text(e?qB:"").attr("x",0).attr("dy",t?"1.05em":0),o.each(nF).attr("transform",GB);var l=i.merge(o).each(nF).attr("font-weight",TI.labels_font_weight),a=l.select(".back").transition().duration(r).delay(n).attr("stroke-width",FB).attr("stroke",ZB),o=l.select(".front").transition().duration(r).delay(n).attr("fill",JB);o.select("tspan.label").text(t?QB:""),o.select("tspan.value").text(e?qB:"").attr("x",0).attr("dy",t?"1.05em":0),a.select("tspan.label").text(t?QB:""),a.select("tspan.value").text(e?qB:"").attr("x",0).attr("dy",t?"1.05em":0);var c=YB();l.transition().duration(r).delay(n).attr("font-size",function(t){return BB(t)+"px"}).attr("transform",GB).end().then(function(){l.each(function(t){eF(t,this)&&my(this).style("visibility",TI.labels_hide_overlaps&&c(this)?"hidden":null)})},function(){console.warn("Label transition-end rejection")}),l.transition("opacity").duration(.5*r).delay(n+.8*r).attr("opacity",function(t){return eF(t,this)}),i.exit().remove()}function iF(t,e,n){var r=e?0:TI.data_trans_duration,e=TI.stack_labels&&OD.has_stack_labels,e=my("#stack-labels").selectAll(".stack-label").data(e?t.stack_labels:[]),t=e.enter().append("text").attr("class","stack-label").attr("text-anchor","middle").attr("font-size",function(t){return BB(t)+"px"}).attr("pointer-events","none").attr("opacity",0).attr("fill",TI.stack_labels_color||"currentColor").attr("transform",GB).attr("x",function(t){return t.facet.layout.x}).attr("y",function(t){return t.facet.layout.y}),t=e.merge(t);t.text(qB).attr("font-weight",TI.stack_labels_weight).transition().duration(r).delay(n).attr("fill",TI.stack_labels_color||"currentColor").attr("font-size",function(t){return BB(t)+"px"}).attr("transform",GB).attr("x",function(t){return t.facet.layout.x}).attr("y",function(t){return t.facet.layout.y}),t.transition("opacity").duration(.5*r).delay(n+.8*r).attr("opacity",function(t){return eF(t,this)}),e.exit().remove()}function oF(t){var e;KC(),TI.highlighted&&(e=document.getElementById(TI.highlighted),setTimeout(function(){e&&ZC(e)},t))}function aF(t,e,n,r){var i=e.scales,o=my(t);"_mode"in t||(t._mode=OD.mode);var a=OD.single_series?TI.current_series:0,t=OD.single_series?a+1:void 0,s=e.series.slice(a,t);switch(OD.mode){case"bar":case"column":i.num_series=e.series_primary.length;var l=OD.stack||i.num_series<2,c=i.label.step?i.label.step():0,u=OD.has_bar_labels?jF.remToPx(1.2*TI.bar_labels_font_size):0,d=c*(1-TI.column_padding_inner/100)-u,c=d,u=0,c,f;l||(c=d/i.num_series,c-=u+=c*(TI.column_padding_in_group/100)),i.group_w=Math.max(1,d),i.col_w=Math.max(1,c),i.col_padding=Math.max(0,u);break;case"line":break;case"donut":i.sum_scale_ratio=TI.donut_auto_scale?s[0].data_points_positive_sum/e.dataset_max_series_sum:1}SB(s,i,o),HU(o,e,r)}function sF(t){var e,n;return"translate("+t.facet.layout.x+","+t.facet.layout.y+")"}function lF(t,e){var n=e&&"except-data-points"!=e,r=OD.single_series&&!OD.facet_by_series,i=t.series_primary.filter(function(t){return!r||t.index==TI.current_series}),o=0,a=0;"line"!=OB&&"line"==OD.mode&&(a=TI.data_trans_duration),"line"==OB&&"line"!=OD.mode&&(o=TI.data_trans_duration);var s=my("#data-points").selectAll(".series").data(i,kP),l=s.enter().append("g").attr("class","series").attr("transform",sF).attr("clip-path",function(t){return"url(#facet-clip-"+t.facet.index+")"}),c=s.merge(l);c.transition().duration(e?0:TI.data_trans_duration).delay(o).attr("transform",sF).attr("clip-path",function(t){return"url(#facet-clip-"+t.facet.index+")"}).style("opacity",1).on("end",function(){OB=OD.mode});var u=s.exit();u.selectAll(".data-point").attr("id",null),u.transition().duration(e?0:TI.data_trans_duration).delay(o).style("opacity",0).remove();var l=t.series.filter(function(t){return!r||t.index==TI.current_series}),s=my("#data-point-labels").selectAll(".series").data(l,kP),u=s.enter().append("g").attr("class","series").attr("transform",sF).attr("clip-path",function(t){return"url(#facet-clip-"+t.facet.index+")"}),l=s.merge(u);l.transition().duration(e?0:TI.data_trans_duration).delay(o).attr("transform",sF).attr("clip-path",function(t){return"url(#facet-clip-"+t.facet.index+")"}),s.exit().transition().duration(e?0:TI.data_trans_duration).delay(o).style("opacity",0).remove();var u=my("#data-points").selectAll(".series-secondary").data(t.series_secondary,function(t){return"secondary-"+t.name}),s=u.enter().append("g").attr("class","series-secondary").attr("transform",sF),s=u.merge(s);s.transition().duration(e?0:TI.data_trans_duration).delay(o).attr("transform",sF).style("opacity",1);var u=u.exit();switch(u.selectAll(".data-point").attr("id",null),u.transition().duration(e?0:TI.data_trans_duration).delay(o).style("opacity",0).remove(),OD.mode){case"bar":MY(c,n,o);break;case"column":kY(c,n,o);break;case"line":wY(c,n,o);break;case"donut":TU(c,n,o)}ZU(i,n,o,a),oF(e?0:o+TI.data_trans_duration),iF(t,n,o),wY(s,n,o,!0),ZU(t.series_secondary,n,o,a,!0),rF(l,n,o)}function cF(t,e){nB(t,e)}function uF(t){return"translate("+t.layout.x+","+t.layout.y+")"}function dF(t){return jF.remToPx(t)}var fF=!1,hF;function pF(n){PB={};var u=OD.values_on_x,l=n?0:TI.data_trans_duration,t=my(".facets").selectAll(".facet").data(zO),e=t.enter().append("g").attr("class","facet").each(function(){this._chart_layout=zI(this)}),d={top:0,right:0,bottom:0,left:0},f=zO.reduce(function(t,e){return e.label_domain.length>t.label_domain.length?e:t},{label_domain:[]}).label_domain,h="bar"==OD.mode&&TI.uniform_bar_height,p="column"==OD.mode&&TI.uniform_column_width,g="facets"===TI.facet_layout&&!OD.facet_by_series,r=t.merge(e).each(function(t){var e,n=u?TI.x_axis_matching:TI.y_axis_matching,e=OD.proportional?[0,100]:(n?OD.stack?t.dataset_value_extent_stack:t.dataset_value_extent:OD.stack?t.value_extent_stack:t.value_extent).slice();OD.stack_offset&&(e[0]=-e[1]/2,e[1]=e[1]/2);var n=u?TI.y_axis_matching:TI.x_axis_matching,r=n?t.dataset_label_domain:t.label_domain,i;if((h||p)&&g&&!n&&r.length<f.length)for(var o=r.length;o<f.length;o++){for(var a="",s=0;s<o;s++)a+="";r.push(a)}var n=[],n=OD.dual_axis?TI.y_secondary_axis_matching?t.dataset_value_extent_secondary:t.value_extent_secondary:e;"line"!=OD.mode&&(TI.y.numeric_scale_type="linear"),t.chart_layout=this._chart_layout,t.chart_layout.xData(u?e:r).yData(u?r:e).y2Data(n).xFormat(function(t){return u?TO(t):zO.labelFormat(t)}).yFormat(function(t){return u?zO.labelFormat(t):TO(t)}).y2Format(function(t){return NO(t)}).xAutoTitle("").yAutoTitle("").y2AutoTitle("").xZeroAxis(!!u).yZeroAxis(!u).xHide(!1).yHide(!TI.y.axis_visible||OD.has_bar_labels||!!OD.hide_y_axis).y2Hide(!OD.dual_axis||!TI.y2.axis_visible||!zO.series_secondary.length).animationDuration(0).width(jF.getPrimaryWidth()).height(jF.getPrimaryHeight()).xDatetimeParse(zO.labelParse||"").update({skip_rendering:!0});var l=t.chart_layout.margins(),c;for(c in l)OD.has_axes&&(d[c]=Math.max(d[c],l[c]))}),i=jF.getPrimaryWidth(),o=zO.length,a=0,s,a;"line"==OD.mode&&TI.line_end_labels&&!OD.dual_axis&&(s=zO.series_primary.map(function(t){return{text:t.name}}),a=CF.data(s).getWidth(),a+=mY(!0));var c=dF(TI.facet_gutter_w)+a,_=TI.y_axis_first_col_only&&TI.y_axis_matching,y=TI.y_secondary_axis_last_col_only&&TI.y_secondary_axis_matching;_||(c+=d.left),!y&&OD.dual_axis&&(c+=d.right);var a=i-d.left-d.right-a,m,v;if("facets"==TI.facet_layout&&TI.facet_fixed_cols)m=Math.floor(TI.facet_cols),v=Math.ceil(o/m);else for(var b=Math.floor((a+c)/(TI.facet_min_w+c)),m=Math.max(1,Math.min(b,o)),v=Math.ceil(o/m),x=m;0<x&&Math.ceil(o/(m-1))==v;x--)m--;var b=o%m!=0&&m<o,w=(a-c*(m-1))/m,M=Math.abs(d.top-d.bottom),k=Math.min(d.top,d.bottom),j="facets"==TI.facet_layout?1.5*dF(TI.facet_header_font_size):0,A=dF(TI.facet_gutter_h),I=1==v||TI.x_axis_last_row_only&&TI.x_axis_matching&&!b&&("bottom"==TI.x.axis_position||"top"==TI.x.axis_position),T=I&&"top"==TI.x.axis_position,a=OD.has_axes?I?1:v:0,N,z,E=w*(i<=TI.facet_aspect_breakpoint?TI.facet_aspect_mobile:TI.facet_aspect)/100,S,L=v*(E+j+A+2*k)+a*M-A,b=(jF.remToPx(TI.bar_height)*(OD.stack?1:zO[0].series.length)*(100+TI.column_padding_in_group)/100+(TI.bar_labels_above?dF(TI.y.tick_label_size):0))*(100+TI.column_padding_inner)/100,D=zO.row_names.length*b,C,O=v*(D+j+A+2*k)+a*M-A,P=Math.max(jF.getDefaultPrimaryHeight(),1),R,Y=(Math.max(P,1)-v*(j+2*k)-a*M-(v-1)*A)/v,U;function B(){jF.setHeight(null),z=P,N=Y}function F(){z=L,N=E,jF.setHeight(z)}function Z(){z=O,N=D,jF.setHeight(z)}(Flourish.fixed_height||"fill_space"==TI.height_mode?B:"aspect"==TI.height_mode?F:"bar"==OD.mode?Z:(w<TI.facet_min_w||Y<100)&&P<L?F:B)();var w=Math.max(w,0),N=Math.max(N,0),H=j+N+2*k+A;!T&&I||(H+=M);var G=j+N+2*k+A;T||I||(G+=M),my("#graphic").transition().duration(l).attr("width",i).attr("height",z);for(var x=0;x<o;x++){var Q=Math.ceil(x%m),q=Math.floor(x/m),V=zO[x].layout={};V.row=q,V.has_y_axis=OD.has_axes&&!OD.hide_y_axis&&(0==Q||!_)&&!OD.has_bar_labels,V.has_y_secondary_axis=OD.dual_axis&&zO.series_secondary.length&&(Q==m-1||!y),V.has_x_axis=OD.has_axes&&(T&&0==q||!T&&q==v-1||!I),V.x=Q*(w+c),V.y=j+(0==q?0:H+(q-1)*G),V.w=w+(V.has_y_axis?d.left:0)+(V.has_y_secondary_axis?d.right:0),V.h=j+N+(V.has_x_axis?M:0),V.plot_h=N,V.plot_w=w}var W=dF(TI.facet_header_padding*TI.facet_header_font_size),$="center"==TI.facet_title_align||"auto"==TI.facet_title_align&&"donut"==TI.chart_type;e.attr("transform",function(t){return uF(fF?zO[0]:t)}).attr("opacity",0);var i=e.append("g").attr("class","facet-title").attr("transform","translate(0, "+-j+")"),X;i.append("rect").attr("class","facet-title-bg"),i.append("text").attr("class","facet-title-text").attr("font-size",dF(TI.facet_header_font_size)).attr("font-weight","bold").attr("dx",$||"none"==TI.facet_header_bg?0:W).attr("dy",.7*j).each(it).attr("x",J).attr("fill",tt),e.select(".facet-title-bg").attr("width",nt).attr("height",j).attr("fill",et).attr("x",K),e.append("clipPath").attr("class","facet-clip").attr("id",function(t,e){return"facet-clip-"+e}).append("rect").attr("transform",rt).attr("width",function(t){return t.layout.w+c}).attr("height",function(t){return t.layout.h+A}),r.each(function(t){var e=t.layout.has_y_axis,n=t.layout.has_y_secondary_axis,r=t.layout.has_x_axis,i={},o;for(o in d)i[o]=d[o];T&&0<t.layout.row&&(i.top=k);var a={keep_gridlines:OD.has_axes},s={keep_gridlines:OD.has_axes&&!OD.hide_y_axis&&!OD.has_bar_labels};t.chart_layout.xHide(!r&&a).yHide(!e&&s).y2Hide(!n&&a).width(t.layout.plot_w+i.left+i.right).height(t.layout.plot_h+i.bottom+i.top).animationDuration(l).update({margins:i}),PB[t.key]=yF(t.layout.x,t.layout.y,t.chart_layout)}).transition().duration(l).attr("transform",uF).attr("opacity",1);var e=r.select(".facet-title");function J(t){var t=t.chart_layout.margins().left;return $?t+w/2-this.parentNode.__title_width__/2:t}function K(t){var t=t.chart_layout.margins().left;return"full"!=TI.facet_header_bg&&$?t+w/2-this.parentNode.__title_width__/2-W:t}function tt(t,e){var n;return"fixed"==TI.facet_header_color_mode||"row"==OD.legend_type||!OD.facet_by_series?TI.facet_header_color:_P(e)}function et(t,e){var n;return"fixed"==TI.facet_header_bg_mode||"row"==OD.legend_type||!OD.facet_by_series?TI.facet_header_bg_color:_P(e)}function nt(){if("none"!=TI.facet_header_bg)return"full"==TI.facet_header_bg?w:this.parentNode.__title_width__+2*W}function rt(t){var e=-c/2;return t.layout.has_y_axis||(e+=t.chart_layout.margins().left),"translate("+e+", "+-(j+A/2)+")"}function it(){var t=this.getBBox().width,e=parseFloat(this.getAttribute("font-size")),n=dF(TI.facet_header_font_size);this.parentNode.__title_width__=t*n/e}e.transition().duration(l).attr("transform","translate(0, "+-j+")"),e.select(".facet-title-text").text(function(t){return t.name}).transition().duration(l).attr("font-size",dF(TI.facet_header_font_size)).attr("clip-path",function(t,e){return"url(#facet-clip-"+e+")"}).attr("fill",tt).attr("opacity","facets"==TI.facet_layout?1:0).attr("dx",$||"none"==TI.facet_header_bg?0:W).attr("dy",.7*j).each(it).attr("x",J),e.select(".facet-title-bg").attr("clip-path",function(t,e){return"url(#facet-clip-"+e+")"}).transition().duration(l).attr("height",j).attr("width",nt).attr("fill",et).attr("x",K),r.select(".facet-clip").attr("id",function(t,e){return"facet-clip-"+e}).select("rect").transition().duration(l).attr("transform",rt).attr("width",function(t){return t.layout.w+c}).attr("height",function(t){return t.layout.h+A}),r.select(".fl-chart").each(function(t,e){t.scales={},t.scales.w=Math.max(0,t.chart_layout.plot_width),t.scales.h=Math.max(0,t.chart_layout.plot_height),t.scales.label_type=zO.label_type,t.scales.label=u?t.chart_layout.yScale({global:!0}):t.chart_layout.xScale({global:!0}),t.scales.value=u?t.chart_layout.xScale({global:!0}):t.chart_layout.yScale({global:!0}),t.scales.value_secondary=OD.dual_axis?t.chart_layout.y2Scale({global:!0}):t.scales.value,aF(this,t,e,n)}),t.exit().transition().duration(l).attr("transform",function(){return uF(zO[zO.length-1])}).attr("opacity",0).remove(),lF(zO,n),cF(zO,n),fF=1==zO.length}function gF(){var t=jF.getSection("primary"),e=jF.getSidebar();hF=new AD(t,e,TI.annotations,{getDataFromCursor:mF,getPositionFromData:vF})}function _F(){hF.update()}function yF(t,e,n){var r=n.xScale({global:!0}),i=n.yScale({global:!0}),o=r.range(),a=i.range(),s=r.domain(),n=i.domain();return{x:t,y:e,x_scale:r,y_scale:i,x_range:o,y_range:a,x_domain:s,y_domain:n}}function mF(t,e){for(var n in PB){var r=PB[n];if(!(e[0]<r.x_range[0]+r.x)&&!(e[0]>r.x_range[1]+r.x||e[1]>r.y_range[0]+r.y||e[1]<r.y_range[1]+r.y)){var i=e[0]-r.x,o=e[1]-r.y,a=r.x_range[1]-r.x_range[0],s=r.y_range[0]-r.y_range[1],l=(i-r.x_range[0])/a,c=(o-r.y_range[1])/s,a=xF(r.x_scale,r.x_domain),s=xF(r.y_scale,r.y_domain),u,d;return{facet_id:n,x:"ordinal"!=a?r.x_scale.invert(i):bF(i,r.x_range,r.x_domain),y:"ordinal"!=s?r.y_scale.invert(o):bF(o,r.y_range,r.y_domain),x_fallback:l,y_fallback:c,x_type:a,y_type:s}}}}function vF(t){var e=PB[t.facet_id];if(e){var n,t,n=xF(e.x_scale,e.x_domain),r=xF(e.y_scale,e.y_domain),n=n==t.x_type?"ordinal"==t.x_type?e.x_scale(t.x.id)+e.x_scale.step()*t.x.offset:"date"==t.x_type?e.x_scale(new Date(t.x)):e.x_scale(t.x):t.x_fallback*(e.x_range[1]-e.x_range[0])+e.x_range[0],t=r==t.y_type?"ordinal"==t.y_type?e.y_scale(t.y.id)+e.y_scale.step()*-t.y.offset:"date"==t.y_type?e.y_scale(new Date(t.y)):e.y_scale(t.y):t.y_fallback*(e.y_range[0]-e.y_range[1])+e.y_range[1];return[e.x+n,e.y+t]}}function bF(t,e,n){var r=e[e.length-1]-e[0],t=(t-=e[0])/r,r=n.length,i,o;return{id:n[Math.floor(t*r)],offset:t*r%1-.5,ordinal:!0}}function xF(t,e){return t.invert?"number"!=typeof e[0]?"date":"number":"ordinal";var n,r}var wF=nz(TI.localization),MF=sz(TI.number_format),kF=sz(TI.number_format_secondary),jF=ON(TI.layout),AF=TT(),IF=iT(document.body,TI.popup),TF=Cz(TI.legend),NF=YE(TI.log_control_y),zF=YE(TI.series_control_single),EF=YE(TI.row_filter_control),SF=WN(TI.controls_style,".fl-control",TI.layout),LF=XN(TI.dropdown_style,".fl-control-dropdown",TI.layout),DF=$N(TI.button_style,".fl-control-buttons",TI.layout),CF=$E(TI.line_labels);return NI(),gF(),"font_size"in TI.popup&&"text_color"in TI.popup&&"show_popups"in TI.popup&&"is_custom"in TI.popup||console.error("popup.js relies on data-popup module having `font_size`, `text_color` and `popups_show` properties."),t.data=DD,t.draw=oO,t.state=TI,t.update=iO,t}({});
//# sourceMappingURL=template.js.map
</script><script src="https://public.flourish.studio/resources/v3/embedded.js"></script><script>
function _Flourish_unflattenInto(dest, src) {
dest = dest || {};
for (var k in src) {
var t = dest;
for (var i = k.indexOf("."), p = 0; i >= 0; i = k.indexOf(".", p = i+1)) {
var s = k.substring(p, i);
if (!(s in t)) t[s] = {};
t = t[s];
}
t[k.substring(p)] = src[k];
}
return dest;
}
var _Flourish_settings = {"chart_type":"column_stacked","color.categorical_palette":["#D77663","#edad08","#73af48","#94346e","#38a6a5","#e17c05","#5f4690","#0f8554","#6f4070","#cc503e","#994e95","#666666"],"facet_layout":"facets","height_mode":"auto","labels":true,"labels_bg_size":28,"labels_column_align":"top","labels_column_padding":-1.3,"labels_content":"auto","labels_hide_overlaps":true,"layout.header_text":"Selecione abaixo o tipo de vítima que pretende visualizar","layout.source_label":"Fonte: ","layout.source_name":"Autoridade Nacional de Segurança Rodoviária","layout.source_url":"http://www.ansr.pt/","layout.subtitle":"","layout.subtitle_styling":true,"layout.title":"Evolução Anual do Nº de Vítimas (Peões) por Tipo de Via Dentro das Localidades","layout.title_styling":false,"legend.title":"","sort_mode":"data"};
_Flourish_unflattenInto(window.template.state, _Flourish_settings);
var _Flourish_data_column_names = {"data":{"facet":"Tipo","filter":"Tipo de Acidente","label":"Ano","value":["Valor"]}},
_Flourish_data_metadata = {"data":{"value":[null]}},
_Flourish_data = {"data":[{"facet":"Arruamento","filter":"Total de Vítimas","label":"2015","value":["4802"]},{"facet":"Estrada Municipal","filter":"Total de Vítimas","label":"2015","value":["308"]},{"facet":"Estrada Nacional","filter":"Total de Vítimas","label":"2015","value":["10"]},{"facet":"IP/IC","filter":"Total de Vítimas","label":"2015","value":["22"]},{"facet":"Outra","filter":"Total de Vítimas","label":"2015","value":["95"]},{"facet":"Arruamento","filter":"Total de Vítimas","label":"2016","value":["4928"]},{"facet":"Estrada Municipal","filter":"Total de Vítimas","label":"2016","value":["311"]},{"facet":"Estrada Nacional","filter":"Total de Vítimas","label":"2016","value":["5"]},{"facet":"IP/IC","filter":"Total de Vítimas","label":"2016","value":["52"]},{"facet":"Outra","filter":"Total de Vítimas","label":"2016","value":["89"]},{"facet":"Arruamento","filter":"Total de Vítimas","label":"2017","value":["4935"]},{"facet":"Estrada Municipal","filter":"Total de Vítimas","label":"2017","value":["341"]},{"facet":"Estrada Nacional","filter":"Total de Vítimas","label":"2017","value":["9"]},{"facet":"IP/IC","filter":"Total de Vítimas","label":"2017","value":["111"]},{"facet":"Outra","filter":"Total de Vítimas","label":"2017","value":["96"]},{"facet":"Arruamento","filter":"Total de Vítimas","label":"2018","value":["5011"]},{"facet":"Estrada Municipal","filter":"Total de Vítimas","label":"2018","value":["308"]},{"facet":"Estrada Nacional","filter":"Total de Vítimas","label":"2018","value":["9"]},{"facet":"IP/IC","filter":"Total de Vítimas","label":"2018","value":["65"]},{"facet":"Outra","filter":"Total de Vítimas","label":"2018","value":["85"]},{"facet":"Arruamento","filter":"Total de Vítimas","label":"2019","value":["5142"]},{"facet":"Estrada Municipal","filter":"Total de Vítimas","label":"2019","value":["29"]},{"facet":"Estrada Nacional","filter":"Total de Vítimas","label":"2019","value":["262"]},{"facet":"IP/IC","filter":"Total de Vítimas","label":"2019","value":["8"]},{"facet":"Outra","filter":"Total de Vítimas","label":"2019","value":["117"]},{"facet":"Arruamento","filter":"Vítimas mortais","label":"2015","value":["86"]},{"facet":"Estrada Municipal","filter":"Vítimas mortais","label":"2015","value":["20"]},{"facet":"Estrada Nacional","filter":"Vítimas mortais","label":"2015","value":["1"]},{"facet":"IP/IC","filter":"Vítimas mortais","label":"2015","value":["1"]},{"facet":"Outra","filter":"Vítimas mortais","label":"2015","value":["3"]},{"facet":"Arruamento","filter":"Feridos graves","label":"2015","value":["342"]},{"facet":"Estrada Municipal","filter":"Feridos graves","label":"2015","value":["45"]},{"facet":"Estrada Nacional","filter":"Feridos graves","label":"2015","value":["0"]},{"facet":"IP/IC","filter":"Feridos graves","label":"2015","value":["5"]},{"facet":"Outra","filter":"Feridos graves","label":"2015","value":["9"]},{"facet":"Arruamento","filter":"Feridos leves","label":"2015","value":["4374"]},{"facet":"Estrada Municipal","filter":"Feridos leves","label":"2015","value":["243"]},{"facet":"Estrada Nacional","filter":"Feridos leves","label":"2015","value":["9"]},{"facet":"IP/IC","filter":"Feridos leves","label":"2015","value":["16"]},{"facet":"Outra","filter":"Feridos leves","label":"2015","value":["83"]},{"facet":"Arruamento","filter":"Vítimas mortais","label":"2016","value":["80"]},{"facet":"Estrada Municipal","filter":"Vítimas mortais","label":"2016","value":["13"]},{"facet":"Estrada Nacional","filter":"Vítimas mortais","label":"2016","value":["2"]},{"facet":"IP/IC","filter":"Vítimas mortais","label":"2016","value":["2"]},{"facet":"Outra","filter":"Vítimas mortais","label":"2016","value":["0"]},{"facet":"Arruamento","filter":"Feridos graves","label":"2016","value":["314"]},{"facet":"Estrada Municipal","filter":"Feridos graves","label":"2016","value":["37"]},{"facet":"Estrada Nacional","filter":"Feridos graves","label":"2016","value":["1"]},{"facet":"IP/IC","filter":"Feridos graves","label":"2016","value":["7"]},{"facet":"Outra","filter":"Feridos graves","label":"2016","value":["3"]},{"facet":"Arruamento","filter":"Feridos leves","label":"2016","value":["4534"]},{"facet":"Estrada Municipal","filter":"Feridos leves","label":"2016","value":["261"]},{"facet":"Estrada Nacional","filter":"Feridos leves","label":"2016","value":["2"]},{"facet":"IP/IC","filter":"Feridos leves","label":"2016","value":["43"]},{"facet":"Outra","filter":"Feridos leves","label":"2016","value":["86"]},{"facet":"Arruamento","filter":"Vítimas mortais","label":"2017","value":["66"]},{"facet":"Estrada Municipal","filter":"Vítimas mortais","label":"2017","value":["27"]},{"facet":"Estrada Nacional","filter":"Vítimas mortais","label":"2017","value":["2"]},{"facet":"IP/IC","filter":"Vítimas mortais","label":"2017","value":["3"]},{"facet":"Outra","filter":"Vítimas mortais","label":"2017","value":["3"]},{"facet":"Arruamento","filter":"Feridos graves","label":"2017","value":["303"]},{"facet":"Estrada Municipal","filter":"Feridos graves","label":"2017","value":["33"]},{"facet":"Estrada Nacional","filter":"Feridos graves","label":"2017","value":["1"]},{"facet":"IP/IC","filter":"Feridos graves","label":"2017","value":["13"]},{"facet":"Outra","filter":"Feridos graves","label":"2017","value":["6"]},{"facet":"Arruamento","filter":"Feridos leves","label":"2017","value":["4566"]},{"facet":"Estrada Municipal","filter":"Feridos leves","label":"2017","value":["281"]},{"facet":"Estrada Nacional","filter":"Feridos leves","label":"2017","value":["6"]},{"facet":"IP/IC","filter":"Feridos leves","label":"2017","value":["95"]},{"facet":"Outra","filter":"Feridos leves","label":"2017","value":["87"]},{"facet":"Arruamento","filter":"Vítimas mortais","label":"2018","value":["103"]},{"facet":"Estrada Municipal","filter":"Vítimas mortais","label":"2018","value":["18"]},{"facet":"Estrada Nacional","filter":"Vítimas mortais","label":"2018","value":["1"]},{"facet":"IP/IC","filter":"Vítimas mortais","label":"2018","value":["2"]},{"facet":"Outra","filter":"Vítimas mortais","label":"2018","value":["2"]},{"facet":"Arruamento","filter":"Feridos graves","label":"2018","value":["315"]},{"facet":"Estrada Municipal","filter":"Feridos graves","label":"2018","value":["28"]},{"facet":"Estrada Nacional","filter":"Feridos graves","label":"2018","value":["1"]},{"facet":"IP/IC","filter":"Feridos graves","label":"2018","value":["8"]},{"facet":"Outra","filter":"Feridos graves","label":"2018","value":["7"]},{"facet":"Arruamento","filter":"Feridos leves","label":"2018","value":["4593"]},{"facet":"Estrada Municipal","filter":"Feridos leves","label":"2018","value":["262"]},{"facet":"Estrada Nacional","filter":"Feridos leves","label":"2018","value":["7"]},{"facet":"IP/IC","filter":"Feridos leves","label":"2018","value":["55"]},{"facet":"Outra","filter":"Feridos leves","label":"2018","value":["76"]},{"facet":"Arruamento","filter":"Vítimas mortais","label":"2019","value":["85"]},{"facet":"Estrada Municipal","filter":"Vítimas mortais","label":"2019","value":["3"]},{"facet":"Estrada Nacional","filter":"Vítimas mortais","label":"2019","value":["16"]},{"facet":"IP/IC","filter":"Vítimas mortais","label":"2019","value":["1"]},{"facet":"Outra","filter":"Vítimas mortais","label":"2019","value":["4"]},{"facet":"Arruamento","filter":"Feridos graves","label":"2019","value":["310"]},{"facet":"Estrada Municipal","filter":"Feridos graves","label":"2019","value":["4"]},{"facet":"Estrada Nacional","filter":"Feridos graves","label":"2019","value":["39"]},{"facet":"IP/IC","filter":"Feridos graves","label":"2019","value":["2"]},{"facet":"Outra","filter":"Feridos graves","label":"2019","value":["15"]},{"facet":"Arruamento","filter":"Feridos leves","label":"2019","value":["4747"]},{"facet":"Estrada Municipal","filter":"Feridos leves","label":"2019","value":["22"]},{"facet":"Estrada Nacional","filter":"Feridos leves","label":"2019","value":["207"]},{"facet":"IP/IC","filter":"Feridos leves","label":"2019","value":["5"]},{"facet":"Outra","filter":"Feridos leves","label":"2019","value":["98"]}]};
for (var _Flourish_dataset in _Flourish_data) {
window.template.data[_Flourish_dataset] = _Flourish_data[_Flourish_dataset];
window.template.data[_Flourish_dataset].column_names = _Flourish_data_column_names[_Flourish_dataset];
window.template.data[_Flourish_dataset].metadata = _Flourish_data_metadata[_Flourish_dataset];
}
window.template.draw();
</script></body></html>