northdata-viz 1.505.11 → 1.505.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "northdata-viz",
3
- "version": "1.505.11",
3
+ "version": "1.505.12",
4
4
  "description": "North Data Widget API",
5
5
  "main": "viz.min.js",
6
6
  "module": "viz.esm.js",
package/viz.esm.js CHANGED
@@ -2777,8 +2777,7 @@ function ao(e) {
2777
2777
  //#endregion
2778
2778
  //#region node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.js
2779
2779
  function oo(e, t) {
2780
- var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
2781
- for (o = 0; o < r; ++o) i[o] = ho(e[o], t[o]);
2780
+ for (var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o = 0; o < r; ++o) i[o] = ho(e[o], t[o]);
2782
2781
  for (; o < n; ++o) a[o] = t[o];
2783
2782
  return function(e) {
2784
2783
  for (o = 0; o < r; ++o) a[o] = i[o](e);
package/viz.min.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /*! northdata-viz v0-0-0-SNAPSHOT */
2
2
  (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.NorthData=t())})(this,function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));typeof Object.assign!=`function`&&(function(){Object.assign=function(e){if(console.info(`installing Object.assign polyfill`),e==null)throw TypeError(`Cannot convert undefined or null to object`);let t=Object(e);for(let e=1;e<arguments.length;e++){let n=arguments[e];if(n!=null)for(let e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t}})(),String.prototype.includes||(console.info(`installing String.includes polyfill`),String.prototype.includes=function(e,t){"use strict";return typeof t!=`number`&&(t=0),t+e.length>this.length?!1:this.indexOf(e,t)!==-1}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return this.substr(!t||t<0?0:+t,e.length)===e});function l(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})}function u(e){return new this(function(t,n){if(!(e&&e.length!==void 0))return n(TypeError(typeof e+` `+e+` is not iterable(cannot read property Symbol(Symbol.iterator))`));var r=Array.prototype.slice.call(e);if(r.length===0)return t([]);var i=r.length;function a(e,n){if(n&&(typeof n==`object`||typeof n==`function`)){var o=n.then;if(typeof o==`function`){o.call(n,function(t){a(e,t)},function(n){r[e]={status:`rejected`,reason:n},--i===0&&t(r)});return}}r[e]={status:`fulfilled`,value:n},--i===0&&t(r)}for(var o=0;o<r.length;o++)a(o,r[o])})}function d(e,t){this.name=`AggregateError`,this.errors=e,this.message=t||``}d.prototype=Error.prototype;function f(e){var t=this;return new t(function(n,r){if(!(e&&e.length!==void 0))return r(TypeError(`Promise.any accepts an array`));var i=Array.prototype.slice.call(e);if(i.length===0)return r();for(var a=[],o=0;o<i.length;o++)try{t.resolve(i[o]).then(n).catch(function(e){a.push(e),a.length===i.length&&r(new d(a,`All promises were rejected`))})}catch(e){r(e)}})}var p=setTimeout;function m(e){return!!(e&&e.length!==void 0)}function h(){}function g(e,t){return function(){e.apply(t,arguments)}}function _(e){if(!(this instanceof _))throw TypeError(`Promises must be constructed via new`);if(typeof e!=`function`)throw TypeError(`not a function`);this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],C(e,this)}function v(e,t){for(;e._state===3;)e=e._value;if(e._state===0){e._deferreds.push(t);return}e._handled=!0,_._immediateFn(function(){var n=e._state===1?t.onFulfilled:t.onRejected;if(n===null){(e._state===1?y:b)(t.promise,e._value);return}var r;try{r=n(e._value)}catch(e){b(t.promise,e);return}y(t.promise,r)})}function y(e,t){try{if(t===e)throw TypeError(`A promise cannot be resolved with itself.`);if(t&&(typeof t==`object`||typeof t==`function`)){var n=t.then;if(t instanceof _){e._state=3,e._value=t,x(e);return}if(typeof n==`function`){C(g(n,t),e);return}}e._state=1,e._value=t,x(e)}catch(t){b(e,t)}}function b(e,t){e._state=2,e._value=t,x(e)}function x(e){e._state===2&&e._deferreds.length===0&&_._immediateFn(function(){e._handled||_._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)v(e,e._deferreds[t]);e._deferreds=null}function S(e,t,n){this.onFulfilled=typeof e==`function`?e:null,this.onRejected=typeof t==`function`?t:null,this.promise=n}function C(e,t){var n=!1;try{e(function(e){n||(n=!0,y(t,e))},function(e){n||(n=!0,b(t,e))})}catch(e){if(n)return;n=!0,b(t,e)}}_.prototype.catch=function(e){return this.then(null,e)},_.prototype.then=function(e,t){var n=new this.constructor(h);return v(this,new S(e,t,n)),n},_.prototype.finally=l,_.all=function(e){return new _(function(t,n){if(!m(e))return n(TypeError(`Promise.all accepts an array`));var r=Array.prototype.slice.call(e);if(r.length===0)return t([]);var i=r.length;function a(e,o){try{if(o&&(typeof o==`object`||typeof o==`function`)){var s=o.then;if(typeof s==`function`){s.call(o,function(t){a(e,t)},n);return}}r[e]=o,--i===0&&t(r)}catch(e){n(e)}}for(var o=0;o<r.length;o++)a(o,r[o])})},_.any=f,_.allSettled=u,_.resolve=function(e){return e&&typeof e==`object`&&e.constructor===_?e:new _(function(t){t(e)})},_.reject=function(e){return new _(function(t,n){n(e)})},_.race=function(e){return new _(function(t,n){if(!m(e))return n(TypeError(`Promise.race accepts an array`));for(var r=0,i=e.length;r<i;r++)_.resolve(e[r]).then(t,n)})},_._immediateFn=typeof setImmediate==`function`&&function(e){setImmediate(e)}||function(e){p(e,0)},_._unhandledRejectionFn=function(e){typeof console<`u`&&console&&console.warn(`Possible Unhandled Promise Rejection:`,e)};var w=(function(){if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw Error(`unable to locate global object`)})();typeof w.Promise==`function`?(w.Promise.prototype.finally||(w.Promise.prototype.finally=l),w.Promise.allSettled||(w.Promise.allSettled=u),w.Promise.any||(w.Promise.any=f)):w.Promise=_,self.fetch||(self.fetch=function(e,t){return t||={},new Promise(function(n,r){var i=new XMLHttpRequest,a=[],o={},s=function e(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:e,headers:{keys:function(){return a},entries:function(){return a.map(function(e){return[e,i.getResponseHeader(e)]})},get:function(e){return i.getResponseHeader(e)},has:function(e){return i.getResponseHeader(e)!=null}}}};for(var c in i.open(t.method||`get`,e,!0),i.onload=function(){i.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(e,t){o[t]||a.push(o[t]=t)}),n(s())},i.onerror=r,i.withCredentials=t.credentials==`include`,t.headers)i.setRequestHeader(c,t.headers[c]);i.send(t.body||null)})}),(function(e){typeof define==`function`&&define.amd?define(e):e()})((function(){"use strict";function e(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function n(e,t,n){return t=c(t),d(e,u()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,g(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=_(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function s(){return s=typeof Reflect<`u`&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=p(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},s.apply(null,arguments)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function l(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u=function(){return!!e})()}function d(e,n){if(n&&(typeof n==`object`||typeof n==`function`))return n;if(n!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return t(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=c(e))!==null;);return e}function m(e,t,n,r){var i=s(c(1&r?e.prototype:e),t,n);return 2&r&&typeof i==`function`?function(e){return i.apply(n,e)}:i}function h(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function g(e){var t=h(e,`string`);return typeof t==`symbol`?t:t+``}function _(t,n){if(t){if(typeof t==`string`)return e(t,n);var r={}.toString.call(t).slice(8,-1);return r===`Object`&&t.constructor&&(r=t.constructor.name),r===`Map`||r===`Set`?Array.from(t):r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(function(e){return{NativeAbortSignal:e.AbortSignal,NativeAbortController:e.AbortController}})(typeof self<`u`?self:global);function v(e){var t;try{t=new Event(`abort`)}catch{typeof document<`u`?document.createEvent?(t=document.createEvent(`Event`),t.initEvent(`abort`,!1,!1)):(t=document.createEventObject(),t.type=`abort`):t={type:`abort`,bubbles:!1,cancelable:!1}}return t.reason=e,t}function y(e){if(e===void 0){if(typeof document>`u`)e=Error(`This operation was aborted`),e.name=`AbortError`;else try{e=new DOMException(`signal is aborted without reason`),Object.defineProperty(e,"name",{value:`AbortError`})}catch{e=Error(`This operation was aborted`),e.name=`AbortError`}}return e}var b=function(){function e(){r(this,e),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return a(e,[{key:`addEventListener`,value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}},{key:`removeEventListener`,value:function(e,t){if(e in this.listeners){for(var n=this.listeners[e],r=0,i=n.length;r<i;r++)if(n[r].callback===t){n.splice(r,1);return}}}},{key:`dispatchEvent`,value:function(e){var t=this;if(e.type in this.listeners){for(var n=this.listeners[e.type].slice(),r=function(){var r=n[i];try{r.callback.call(t,e)}catch(e){Promise.resolve().then(function(){throw e})}r.options&&r.options.once&&t.removeEventListener(e.type,r.callback)},i=0,a=n.length;i<a;i++)r();return!e.defaultPrevented}}}])}(),x=function(e){function t(){var e;return r(this,t),e=n(this,t),e.listeners||b.call(e),Object.defineProperty(e,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(e,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(e,"reason",{value:void 0,writable:!0,configurable:!0}),e}return l(t,e),a(t,[{key:`toString`,value:function(){return`[object AbortSignal]`}},{key:`dispatchEvent`,value:function(e){e.type===`abort`&&(this.aborted=!0,typeof this.onabort==`function`&&this.onabort.call(this,e)),m(t,`dispatchEvent`,this,3)([e])}},{key:`throwIfAborted`,value:function(){var e=this.aborted,t=this.reason,n=t===void 0?`Aborted`:t;if(e)throw n}}],[{key:`timeout`,value:function(e){var t=new S;return setTimeout(function(){return t.abort(new DOMException(`This signal is timeout in ${e}ms`,`TimeoutError`))},e),t.signal}},{key:`any`,value:function(e){var t=new S;function n(){t.abort(this.reason),r()}function r(){var t=o(e),r;try{for(t.s();!(r=t.n()).done;)r.value.removeEventListener(`abort`,n)}catch(e){t.e(e)}finally{t.f()}}var i=o(e),a;try{for(i.s();!(a=i.n()).done;){var s=a.value;if(s.aborted){t.abort(s.reason);break}s.addEventListener(`abort`,n)}}catch(e){i.e(e)}finally{i.f()}return t.signal}}])}(b),S=function(){function e(){r(this,e),Object.defineProperty(this,"signal",{value:new x,writable:!0,configurable:!0})}return a(e,[{key:`abort`,value:function(e){var t=y(e),n=v(t);this.signal.reason=t,this.signal.dispatchEvent(n)}},{key:`toString`,value:function(){return`[object AbortController]`}}])}();typeof Symbol<`u`&&Symbol.toStringTag&&(S.prototype[Symbol.toStringTag]=`AbortController`,x.prototype[Symbol.toStringTag]=`AbortSignal`);function C(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log(`__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill`),!0):typeof e.Request==`function`&&!e.Request.prototype.hasOwnProperty(`signal`)||!e.AbortController}function w(e){typeof e==`function`&&(e={fetch:e});var t=e,n=t.fetch,r=t.Request,i=r===void 0?n.Request:r,a=t.AbortController,o=t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,s=o!==void 0&&o;if(!C({fetch:n,Request:i,AbortController:a,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:s}))return{fetch:n,Request:c};var c=i;(c&&!c.prototype.hasOwnProperty(`signal`)||s)&&(c=function(e,t){var n;t&&t.signal&&(n=t.signal,delete t.signal);var r=new i(e,t);return n&&Object.defineProperty(r,"signal",{writable:!1,enumerable:!1,configurable:!0,value:n}),r},c.prototype=i.prototype);var l=n;return{fetch:function(e,t){var n=c&&c.prototype.isPrototypeOf(e)?e.signal:t?t.signal:void 0;if(n){var r;try{r=new DOMException(`Aborted`,`AbortError`)}catch{r=Error(`Aborted`),r.name=`AbortError`}if(n.aborted)return Promise.reject(r);var i=new Promise(function(e,t){n.addEventListener(`abort`,function(){return t(r)},{once:!0})});return t&&t.signal&&delete t.signal,Promise.race([i,l(e,t)])}return l(e,t)},Request:c}}(function(e){if(C(e)){if(!e.fetch){console.warn(`fetch() is not available, cannot install abortcontroller-polyfill`);return}var t=w(e),n=t.fetch,r=t.Request;e.fetch=n,e.Request=r,Object.defineProperty(e,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:S}),Object.defineProperty(e,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:x})}})(typeof self<`u`?self:global)}));var T=`0.0.0-SNAPSHOT`;function E(e,t){return Object.assign(e,t),e}var D={draw(){}},O={};function ee(e){E(O,e)}function te(e){return O[e]}function k(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function A(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function j(){}var M=.7,ne=1/M,re=`\\s*([+-]?\\d+)\\s*`,N=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,P=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,ie=/^#([0-9a-f]{3,8})$/,ae=RegExp(`^rgb\\(${re},${re},${re}\\)$`),oe=RegExp(`^rgb\\(${P},${P},${P}\\)$`),se=RegExp(`^rgba\\(${re},${re},${re},${N}\\)$`),ce=RegExp(`^rgba\\(${P},${P},${P},${N}\\)$`),le=RegExp(`^hsl\\(${N},${P},${P}\\)$`),ue=RegExp(`^hsla\\(${N},${P},${P},${N}\\)$`),de={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};k(j,ge,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:fe,formatHex:fe,formatHex8:pe,formatHsl:me,formatRgb:he,toString:he});function fe(){return this.rgb().formatHex()}function pe(){return this.rgb().formatHex8()}function me(){return Oe(this).formatHsl()}function he(){return this.rgb().formatRgb()}function ge(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=ie.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?_e(t):n===3?new F(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ve(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ve(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ae.exec(e))?new F(t[1],t[2],t[3],1):(t=oe.exec(e))?new F(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=se.exec(e))?ve(t[1],t[2],t[3],t[4]):(t=ce.exec(e))?ve(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=le.exec(e))?De(t[1],t[2]/100,t[3]/100,1):(t=ue.exec(e))?De(t[1],t[2]/100,t[3]/100,t[4]):de.hasOwnProperty(e)?_e(de[e]):e===`transparent`?new F(NaN,NaN,NaN,0):null}function _e(e){return new F(e>>16&255,e>>8&255,e&255,1)}function ve(e,t,n,r){return r<=0&&(e=t=n=NaN),new F(e,t,n,r)}function ye(e){return e instanceof j||(e=ge(e)),e?(e=e.rgb(),new F(e.r,e.g,e.b,e.opacity)):new F}function be(e,t,n,r){return arguments.length===1?ye(e):new F(e,t,n,r??1)}function F(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}k(F,be,A(j,{brighter(e){return e=e==null?ne:ne**+e,new F(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new F(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new F(Te(this.r),Te(this.g),Te(this.b),we(this.opacity))},displayable(){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:xe,formatHex:xe,formatHex8:Se,formatRgb:Ce,toString:Ce}));function xe(){return`#${Ee(this.r)}${Ee(this.g)}${Ee(this.b)}`}function Se(){return`#${Ee(this.r)}${Ee(this.g)}${Ee(this.b)}${Ee((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ce(){let e=we(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Te(this.r)}, ${Te(this.g)}, ${Te(this.b)}${e===1?`)`:`, ${e})`}`}function we(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Te(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ee(e){return e=Te(e),(e<16?`0`:``)+e.toString(16)}function De(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new I(e,t,n,r)}function Oe(e){if(e instanceof I)return new I(e.h,e.s,e.l,e.opacity);if(e instanceof j||(e=ge(e)),!e)return new I;if(e instanceof I)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new I(o,s,c,e.opacity)}function ke(e,t,n,r){return arguments.length===1?Oe(e):new I(e,t,n,r??1)}function I(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}k(I,ke,A(j,{brighter(e){return e=e==null?ne:ne**+e,new I(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new I(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new F(Me(e>=240?e-240:e+120,i,r),Me(e,i,r),Me(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new I(Ae(this.h),je(this.s),je(this.l),we(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=we(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Ae(this.h)}, ${je(this.s)*100}%, ${je(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function Ae(e){return e=(e||0)%360,e<0?e+360:e}function je(e){return Math.max(0,Math.min(1,e||0))}function Me(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Ne={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function Pe(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),Ne.hasOwnProperty(t)?{space:Ne[t],local:e}:e}function Fe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function Ie(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Le(e){var t=Pe(e);return(t.local?Ie:Fe)(t)}function Re(){}function ze(e){return e==null?Re:function(){return this.querySelector(e)}}function Be(e){typeof e!=`function`&&(e=ze(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new L(r,this._parents)}function Ve(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function He(){return[]}function Ue(e){return e==null?He:function(){return this.querySelectorAll(e)}}function We(e){return function(){return Ve(e.apply(this,arguments))}}function Ge(e){e=typeof e==`function`?We(e):Ue(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new L(r,i)}function Ke(e){return function(){return this.matches(e)}}function qe(e){return function(t){return t.matches(e)}}var Je=Array.prototype.find;function Ye(e){return function(){return Je.call(this.children,e)}}function Xe(){return this.firstElementChild}function Ze(e){return this.select(e==null?Xe:Ye(typeof e==`function`?e:qe(e)))}var Qe=Array.prototype.filter;function $e(){return Array.from(this.children)}function et(e){return function(){return Qe.call(this.children,e)}}function tt(e){return this.selectAll(e==null?$e:et(typeof e==`function`?e:qe(e)))}function nt(e){typeof e!=`function`&&(e=Ke(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new L(r,this._parents)}function rt(e){return Array(e.length)}function it(){return new L(this._enter||this._groups.map(rt),this._parents)}function at(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}at.prototype={constructor:at,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ot(e){return function(){return e}}function st(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new at(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function ct(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new at(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function lt(e){return e.__data__}function ut(e,t){if(!arguments.length)return Array.from(this,lt);var n=t?ct:st,r=this._parents,i=this._groups;typeof e!=`function`&&(e=ot(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=dt(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new L(o,r),o._enter=s,o._exit=c,o}function dt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function ft(){return new L(this._exit||this._groups.map(rt),this._parents)}function pt(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function mt(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new L(s,this._parents)}function ht(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function gt(e){e||=_t;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new L(i,this._parents).order()}function _t(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function vt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function yt(){return Array.from(this)}function bt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function xt(){let e=0;for(let t of this)++e;return e}function St(){return!this.node()}function Ct(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function wt(e){return function(){this.removeAttribute(e)}}function Tt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Et(e,t){return function(){this.setAttribute(e,t)}}function Dt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ot(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function kt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function At(e,t){var n=Pe(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Tt:wt:typeof t==`function`?n.local?kt:Ot:n.local?Dt:Et)(n,t))}function jt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Mt(e){return function(){this.style.removeProperty(e)}}function Nt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Pt(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ft(e,t,n){return arguments.length>1?this.each((t==null?Mt:typeof t==`function`?Pt:Nt)(e,t,n??``)):It(this.node(),e)}function It(e,t){return e.style.getPropertyValue(t)||jt(e).getComputedStyle(e,null).getPropertyValue(t)}function Lt(e){return function(){delete this[e]}}function Rt(e,t){return function(){this[e]=t}}function zt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Bt(e,t){return arguments.length>1?this.each((t==null?Lt:typeof t==`function`?zt:Rt)(e,t)):this.node()[e]}function Vt(e){return e.trim().split(/^|\s+/)}function Ht(e){return e.classList||new Ut(e)}function Ut(e){this._node=e,this._names=Vt(e.getAttribute(`class`)||``)}Ut.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function Wt(e,t){for(var n=Ht(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Gt(e,t){for(var n=Ht(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Kt(e){return function(){Wt(this,e)}}function qt(e){return function(){Gt(this,e)}}function Jt(e,t){return function(){(t.apply(this,arguments)?Wt:Gt)(this,e)}}function Yt(e,t){var n=Vt(e+``);if(arguments.length<2){for(var r=Ht(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?Jt:t?Kt:qt)(n,t))}function Xt(){this.textContent=``}function Zt(e){return function(){this.textContent=e}}function Qt(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function $t(e){return arguments.length?this.each(e==null?Xt:(typeof e==`function`?Qt:Zt)(e)):this.node().textContent}function en(){this.innerHTML=``}function tn(e){return function(){this.innerHTML=e}}function nn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function rn(e){return arguments.length?this.each(e==null?en:(typeof e==`function`?nn:tn)(e)):this.node().innerHTML}function an(){this.nextSibling&&this.parentNode.appendChild(this)}function on(){return this.each(an)}function sn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cn(){return this.each(sn)}function ln(e){var t=typeof e==`function`?e:Le(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function un(){return null}function dn(e,t){var n=typeof e==`function`?e:Le(e),r=t==null?un:typeof t==`function`?t:ze(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function fn(){var e=this.parentNode;e&&e.removeChild(this)}function pn(){return this.each(fn)}function mn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function hn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function gn(e){return this.select(e?hn:mn)}function _n(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function vn(e){return function(t){e.call(this,t,this.__data__)}}function yn(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function bn(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function xn(e,t,n){return function(){var r=this.__on,i,a=vn(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Sn(e,t,n){var r=yn(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?xn:bn,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Cn(e,t,n){var r=jt(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function wn(e,t){return function(){return Cn(this,e,t)}}function Tn(e,t){return function(){return Cn(this,e,t.apply(this,arguments))}}function En(e,t){return this.each((typeof t==`function`?Tn:wn)(e,t))}function*Dn(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var On=[null];function L(e,t){this._groups=e,this._parents=t}function kn(){return new L([[document.documentElement]],On)}function An(){return this}L.prototype=kn.prototype={constructor:L,select:Be,selectAll:Ge,selectChild:Ze,selectChildren:tt,filter:nt,data:ut,enter:it,exit:ft,join:pt,merge:mt,selection:An,order:ht,sort:gt,call:vt,nodes:yt,node:bt,size:xt,empty:St,each:Ct,attr:At,style:Ft,property:Bt,classed:Yt,text:$t,html:rn,raise:on,lower:cn,append:ln,insert:dn,remove:pn,clone:gn,datum:_n,on:Sn,dispatch:En,[Symbol.iterator]:Dn};function R(e){return typeof e==`string`?new L([[document.querySelector(e)]],[document.documentElement]):new L([[e]],On)}function jn(e){return R(Le(e).call(document.documentElement))}function Mn(e){return typeof e==`string`?new L([document.querySelectorAll(e)],[document.documentElement]):new L([Ve(e)],On)}function Nn(e){return[e.width,e.height]}function Pn(e,t){R(e).style(`height`,t+`px`)}function Fn(e,t){let n,r=[];return e.each(function(){let e=this;for(;typeof e.parentNode.matches==`function`&&!n;)e=e.parentNode,e.matches(t)&&(n=e,r.push(n));n=void 0}),Mn(r)}function In(e,t){for(;;){if(!e||!t)return!1;if(e.isSameNode(t))return!0;e=e.parentNode}}function Ln(e,t,n,r){R(t).on(e,function(e){try{let i;i=typeof n==`string`?R(t).selectAll(n):n,i.each(function(){let t=this;In(e.target,t)&&r.bind(t)(R(t).data()[0])})}catch(e){throw console.error(e),e}})}function Rn(){let e=window.navigator.userAgent;return e.indexOf(`MSIE `)>=0||e.indexOf(`Edge `)>=0||e.indexOf(`Trident`)>=0}function zn(e){return e&&e.trim()}function Bn(e){return e&&=encodeURIComponent(e).replace(/%20/g,`+`),e}function Vn(e){return e.replace(/-([a-z])/g,e=>e[1].toUpperCase())}function Hn(e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];typeof r==`object`&&(r=JSON.stringify(r)),(typeof r==`string`||typeof r==`number`)&&t.push(Bn(n)+`=`+Bn(r))}return t.join(`&`)}function Un(){let e=document.scripts;for(let t=0;t<e.length;++t){let n=e[t].src;if(n&&n.indexOf(`/viz.`)>=0){let e=n.indexOf(`/`,9);if(e>=0)return n.substring(0,e)}}return``}function Wn(e){if(!e.ok)throw Error(e.status+` `+e.statusText);if(e.status!==204&&e.status!==205)return e.json()}function Gn(e,t){return fetch(e,t).then(Wn)}var Kn=(function(){let e=[];function t(t,n,a){let o={options:t,success:n,error:a};t.immediate?r([o]):(e.push(o),window.setTimeout(i))}function n(e,t,n){let r=($.options.detectDataDomain?Un():void 0)||$.options.dataDomain,i=(window.dataDomain||r)+`/data.json`,a={"Content-Type":`application/json; charset=UTF-8`,...e&&{"X-Api-Key":e}};if(t.options.length===1&&t.options[0].useGet===`true`){var o=new URLSearchParams;Object.keys(t.options[0]).filter(e=>e!==`useGet`).filter(e=>e!==`apiKey`).filter(e=>{let n=t.options[0][e];return typeof n==`string`||typeof n==`boolean`||typeof n==`number`}).forEach(e=>{o.set(e,t.options[0][e])}),t.options[0].type===`graph`&&(o.delete(`width`),o.delete(`height`)),Gn(`${i}?${o.toString()}`,{headers:a,method:`GET`}).then(e=>n(null,e)).catch(e=>n(e,void 0));return}Gn(i,{headers:a,method:`POST`,body:JSON.stringify(t)}).then(e=>n(null,e)).catch(e=>n(e,void 0))}function r(e){let t=[],r;for(let n of e)t.push(n.options),r??=n.options.apiKey;if(t.length>0){let i={options:t,origin:document.location.hostname,v:$.version};n(r,i,function(t,n){if(t)for(let n of e)n.error(t.message);else{let t=n.result;e.forEach((e,n)=>{let r=t[n],i=r.error;i?e.error(i.message):e.success(r)})}})}}function i(){r(e),e=[]}return{requestData:t}})(),qn=new Date,Jn=new Date;function z(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>z(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(qn.setTime(+t),Jn.setTime(+r),e(qn),e(Jn),Math.floor(n(qn,Jn))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var Yn=z(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Yn.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?z(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Yn),Yn.range;var B=1e3,V=B*60,H=V*60,U=H*24,Xn=U*7,Zn=U*30,Qn=U*365,$n=z(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*B)},(e,t)=>(t-e)/B,e=>e.getUTCSeconds());$n.range;var er=z(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*B)},(e,t)=>{e.setTime(+e+t*V)},(e,t)=>(t-e)/V,e=>e.getMinutes());er.range;var tr=z(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*V)},(e,t)=>(t-e)/V,e=>e.getUTCMinutes());tr.range;var nr=z(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*B-e.getMinutes()*V)},(e,t)=>{e.setTime(+e+t*H)},(e,t)=>(t-e)/H,e=>e.getHours());nr.range;var rr=z(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*H)},(e,t)=>(t-e)/H,e=>e.getUTCHours());rr.range;var ir=z(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*V)/U,e=>e.getDate()-1);ir.range;var ar=z(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/U,e=>e.getUTCDate()-1);ar.range;var or=z(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/U,e=>Math.floor(e/U));or.range;function sr(e){return z(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*V)/Xn)}var cr=sr(0),lr=sr(1),ur=sr(2),dr=sr(3),fr=sr(4),pr=sr(5),mr=sr(6);cr.range,lr.range,ur.range,dr.range,fr.range,pr.range,mr.range;function hr(e){return z(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/Xn)}var gr=hr(0),_r=hr(1),vr=hr(2),yr=hr(3),br=hr(4),xr=hr(5),Sr=hr(6);gr.range,_r.range,vr.range,yr.range,br.range,xr.range,Sr.range;var Cr=z(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Cr.range;var wr=z(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());wr.range;var W=z(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());W.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:z(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),W.range;var G=z(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());G.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:z(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),G.range;function Tr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Er(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Dr(e){let t,n,r;e.length===2?(t=e===Tr||e===Er?e:Or,n=e,r=e):(t=Tr,n=(t,n)=>Tr(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function Or(){return 0}function kr(e){return e===null?NaN:+e}var Ar=Dr(Tr),jr=Ar.right;Ar.left,Dr(kr).center;function Mr(e,t){let n,r;if(t===void 0)for(let t of e)t!=null&&(n===void 0?t>=t&&(n=r=t):(n>t&&(n=t),r<t&&(r=t)));else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}var Nr=class extends Map{constructor(e,t=Lr){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(Pr(this,e))}has(e){return super.has(Pr(this,e))}set(e,t){return super.set(Fr(this,e),t)}delete(e){return super.delete(Ir(this,e))}};function Pr({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function Fr({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Ir({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Lr(e){return typeof e==`object`&&e?e.valueOf():e}var Rr=Math.sqrt(50),zr=Math.sqrt(10),Br=Math.sqrt(2);function Vr(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=Rr?10:a>=zr?5:a>=Br?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?Vr(e,t,n*2):[s,c,l]}function Hr(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?Vr(t,e,n):Vr(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function Ur(e,t,n){return t=+t,e=+e,n=+n,Vr(e,t,n)[2]}function Wr(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?Ur(t,e,n):Ur(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Gr(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Kr(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function qr(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function Jr(e,t,n,r,i,a){let o=[[$n,1,B],[$n,5,5*B],[$n,15,15*B],[$n,30,30*B],[a,1,V],[a,5,5*V],[a,15,15*V],[a,30,30*V],[i,1,H],[i,3,3*H],[i,6,6*H],[i,12,12*H],[r,1,U],[r,2,2*U],[n,1,Xn],[t,1,Zn],[t,3,3*Zn],[e,1,Qn]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=Dr(([,,e])=>e).right(o,i);if(a===o.length)return e.every(Wr(t/Qn,n/Qn,r));if(a===0)return Yn.every(Math.max(Wr(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[Yr,Xr]=Jr(G,wr,gr,or,rr,tr),[Zr,Qr]=Jr(W,Cr,cr,ir,nr,er);function $r(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ei(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ti(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function ni(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=si(i),u=ci(i),d=si(a),f=ci(a),p=si(o),m=ci(o),h=si(s),g=ci(s),_=si(c),v=ci(c),y={a:j,A:M,b:ne,B:re,c:null,d:ki,e:ki,f:Pi,g:Gi,G:qi,H:Ai,I:ji,j:Mi,L:Ni,m:Fi,M:Ii,p:N,q:P,Q:ga,s:_a,S:Li,u:Ri,U:zi,V:Vi,w:Hi,W:Ui,x:null,X:null,y:Wi,Y:Ki,Z:Ji,"%":ha},b={a:ie,A:ae,b:oe,B:se,c:null,d:Yi,e:Yi,f:ea,g:da,G:pa,H:Xi,I:Zi,j:Qi,L:$i,m:ta,M:na,p:ce,q:le,Q:ga,s:_a,S:ra,u:ia,U:aa,V:sa,w:ca,W:la,x:null,X:null,y:ua,Y:fa,Z:ma,"%":ha},x={a:E,A:D,b:O,B:ee,c:te,d:yi,e:yi,f:Ti,g:hi,G:mi,H:xi,I:xi,j:bi,L:wi,m:vi,M:Si,p:T,q:_i,Q:Di,s:Oi,S:Ci,u:ui,U:di,V:fi,w:li,W:pi,x:k,X:A,y:hi,Y:mi,Z:gi,"%":Ei};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=ri[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=ti(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=ei(ti(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?_r.ceil(a):_r(a),a=ar.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=$r(ti(r.y,0,1)),o=a.getDay(),a=o>4||o===0?lr.ceil(a):lr(a),a=ir.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?ei(ti(r.y,0,1)).getUTCDay():$r(ti(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,ei(r)):$r(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in ri?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function ee(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function te(e,n,r){return w(e,t,n,r)}function k(e,t,r){return w(e,n,t,r)}function A(e,t,n){return w(e,r,t,n)}function j(e){return o[e.getDay()]}function M(e){return a[e.getDay()]}function ne(e){return c[e.getMonth()]}function re(e){return s[e.getMonth()]}function N(e){return i[+(e.getHours()>=12)]}function P(e){return 1+~~(e.getMonth()/3)}function ie(e){return o[e.getUTCDay()]}function ae(e){return a[e.getUTCDay()]}function oe(e){return c[e.getUTCMonth()]}function se(e){return s[e.getUTCMonth()]}function ce(e){return i[+(e.getUTCHours()>=12)]}function le(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var ri={"-":``,_:` `,0:`0`},K=/^\s*\d+/,ii=/^%/,ai=/[\\^$*+?|[\]().{}]/g;function q(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function oi(e){return e.replace(ai,`\\$&`)}function si(e){return RegExp(`^(?:`+e.map(oi).join(`|`)+`)`,`i`)}function ci(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function li(e,t,n){var r=K.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ui(e,t,n){var r=K.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function di(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function fi(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function pi(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function mi(e,t,n){var r=K.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function hi(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function gi(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function _i(e,t,n){var r=K.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function vi(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function yi(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function bi(e,t,n){var r=K.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function xi(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Si(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ci(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function wi(e,t,n){var r=K.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ti(e,t,n){var r=K.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ei(e,t,n){var r=ii.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Di(e,t,n){var r=K.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Oi(e,t,n){var r=K.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ki(e,t){return q(e.getDate(),t,2)}function Ai(e,t){return q(e.getHours(),t,2)}function ji(e,t){return q(e.getHours()%12||12,t,2)}function Mi(e,t){return q(1+ir.count(W(e),e),t,3)}function Ni(e,t){return q(e.getMilliseconds(),t,3)}function Pi(e,t){return Ni(e,t)+`000`}function Fi(e,t){return q(e.getMonth()+1,t,2)}function Ii(e,t){return q(e.getMinutes(),t,2)}function Li(e,t){return q(e.getSeconds(),t,2)}function Ri(e){var t=e.getDay();return t===0?7:t}function zi(e,t){return q(cr.count(W(e)-1,e),t,2)}function Bi(e){var t=e.getDay();return t>=4||t===0?fr(e):fr.ceil(e)}function Vi(e,t){return e=Bi(e),q(fr.count(W(e),e)+(W(e).getDay()===4),t,2)}function Hi(e){return e.getDay()}function Ui(e,t){return q(lr.count(W(e)-1,e),t,2)}function Wi(e,t){return q(e.getFullYear()%100,t,2)}function Gi(e,t){return e=Bi(e),q(e.getFullYear()%100,t,2)}function Ki(e,t){return q(e.getFullYear()%1e4,t,4)}function qi(e,t){var n=e.getDay();return e=n>=4||n===0?fr(e):fr.ceil(e),q(e.getFullYear()%1e4,t,4)}function Ji(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+q(t/60|0,`0`,2)+q(t%60,`0`,2)}function Yi(e,t){return q(e.getUTCDate(),t,2)}function Xi(e,t){return q(e.getUTCHours(),t,2)}function Zi(e,t){return q(e.getUTCHours()%12||12,t,2)}function Qi(e,t){return q(1+ar.count(G(e),e),t,3)}function $i(e,t){return q(e.getUTCMilliseconds(),t,3)}function ea(e,t){return $i(e,t)+`000`}function ta(e,t){return q(e.getUTCMonth()+1,t,2)}function na(e,t){return q(e.getUTCMinutes(),t,2)}function ra(e,t){return q(e.getUTCSeconds(),t,2)}function ia(e){var t=e.getUTCDay();return t===0?7:t}function aa(e,t){return q(gr.count(G(e)-1,e),t,2)}function oa(e){var t=e.getUTCDay();return t>=4||t===0?br(e):br.ceil(e)}function sa(e,t){return e=oa(e),q(br.count(G(e),e)+(G(e).getUTCDay()===4),t,2)}function ca(e){return e.getUTCDay()}function la(e,t){return q(_r.count(G(e)-1,e),t,2)}function ua(e,t){return q(e.getUTCFullYear()%100,t,2)}function da(e,t){return e=oa(e),q(e.getUTCFullYear()%100,t,2)}function fa(e,t){return q(e.getUTCFullYear()%1e4,t,4)}function pa(e,t){var n=e.getUTCDay();return e=n>=4||n===0?br(e):br.ceil(e),q(e.getUTCFullYear()%1e4,t,4)}function ma(){return`+0000`}function ha(){return`%`}function ga(e){return+e}function _a(e){return Math.floor(e/1e3)}var va,ya;ba({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`]});function ba(e){return va=ni(e),ya=va.format,va.parse,va.utcFormat,va.utcParse,va}function xa(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function Sa(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ca(e){return e=Sa(Math.abs(e)),e?e[1]:NaN}function wa(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Ta(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var Ea=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Da(e){if(!(t=Ea.exec(e)))throw Error(`invalid format: `+e);var t;return new Oa({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Da.prototype=Oa.prototype;function Oa(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}Oa.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function ka(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var Aa;function ja(e,t){var n=Sa(e,t);if(!n)return Aa=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(Aa=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+Sa(e,Math.max(0,t+a-1))[0]}function Ma(e,t){var n=Sa(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var Na={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:xa,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Ma(e*100,t),r:Ma,s:ja,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Pa(e){return e}var Fa=Array.prototype.map,Ia=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function La(e){var t=e.grouping===void 0||e.thousands===void 0?Pa:wa(Fa.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?Pa:Ta(Fa.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=Da(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):Na[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=Na[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=ka(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&Aa!==void 0?Ia[8+Aa/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(Ca(t)/3)))*3,r=10**-n,i=l((e=Da(e),e.type=`f`,e),{suffix:Ia[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var Ra,za,Ba;Va({thousands:`,`,grouping:[3],currency:[`$`,``]});function Va(e){return Ra=La(e),za=Ra.format,Ba=Ra.formatPrefix,Ra}function Ha(e){return Math.max(0,-Ca(Math.abs(e)))}function Ua(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ca(t)/3)))*3-Ca(Math.abs(e)))}function Wa(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ca(t)-Ca(e))+1}var Ga={dateTime:`%A, der %e. %B %Y, %X`,date:`%d.%m.%Y`,time:`%H:%M:%S`,periods:[`AM`,`PM`],days:[`Sonntag`,`Montag`,`Dienstag`,`Mittwoch`,`Donnerstag`,`Freitag`,`Samstag`],shortDays:[`So`,`Mo`,`Di`,`Mi`,`Do`,`Fr`,`Sa`],months:[`Januar`,`Februar`,`März`,`April`,`Mai`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`],shortMonths:[`Jan`,`Feb`,`Mrz`,`Apr`,`Mai`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Dez`]},Ka={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`]},qa={dateTime:`%A %e %B %Y à %X`,date:`%d/%m/%Y`,time:`%H:%M:%S`,periods:[`AM`,`PM`],days:[`dimanche`,`lundi`,`mardi`,`mercredi`,`jeudi`,`vendredi`,`samedi`],shortDays:[`dim.`,`lun.`,`mar.`,`mer.`,`jeu.`,`ven.`,`sam.`],months:[`janvier`,`février`,`mars`,`avril`,`mai`,`juin`,`juillet`,`août`,`septembre`,`octobre`,`novembre`,`décembre`],shortMonths:[`janv.`,`févr.`,`mars`,`avr.`,`mai`,`juin`,`juil.`,`août`,`sept.`,`oct.`,`nov.`,`déc.`]},Ja={decimal:`,`,thousands:`.`,grouping:[3],currency:[``,`\xA0€`]},Ya={decimal:`.`,thousands:`,`,grouping:[3],currency:[`$`,``]},Xa={decimal:`,`,thousands:`\xA0`,grouping:[3],currency:[``,`\xA0€`],percent:` %`},Za=document.documentElement.lang===`en`?`en`:document.documentElement.lang===`fr`?`fr`:`de`;function Qa(){return Za}function $a(e,t,n=``){return Qa()===`de`?t:Qa()===`fr`?n:e}function eo(e){let t=e.format(`.%L`),n=e.format(`:%S`),r=e.format(`%I:%M`),i=e.format(`%I %p`),a=e.format(`%a %d`),o=e.format(`%b %d`),s=e.format(`%B`),c=e.format(`%Y`);return e=>($n(e)<e?t:er(e)<e?n:nr(e)<e?r:ir(e)<e?i:Cr(e)<e?cr(e)<e?a:o:W(e)<e?s:c)(e)}function to(e,t){let n=ni(e),r=La(t),i=e=>Math.round(e*100)/100,a=r.format(`,.2f`),o=r.format(`,.0f`),s=n.format(e.date);return{timeFormatLocaleDefinition:e,numberFormatLocaleDefinition:t,createNumberFormatter:function(e,t){let n=e.accuracy,i=r.format(t);return t=>e.prefix+i(t/n)+e.postfix},decimalFormatter:e=>a(i(e)),numberFormatter:e=>o(Math.round(e)),dateFormatter:e=>e?(typeof e==`string`&&(e=new Date(e)),s(e)):``,timeScaleFormatter:eo(n)}}var no=to(Ga,{...Ja,currency:[`€`,``]}),ro=to({...Ka,date:`%Y-%m-%d`},{...Ya,currency:[`€`,``]}),io=to(qa,{...Xa,currency:[`€`,``]}),ao=class{data;chart;container;widgetType;options;items=[];constructor(e,t){let n=typeof e==`string`?document.getElementById(e):e;if(!n)throw Error(`container node undefined or null`);this.container=n,this.options=oo(t,this.container);let r=this.stringValue(`type`)||this.stringValue(`layout`);if(!r)throw Error(`no widget type specified`);this.widgetType=r,this.options.type=r,(r==`graph`||r==`contact`)&&(this.options.immediate=!0);let i=this.load.bind(this);this.data=this.objectValue(`data`),this.data?window.setTimeout(i):Kn.requestData(this.options,i,this.fail.bind(this))}getType(){return this.widgetType}fail(e){let t=this.handlerValue(`error`);t?t(e):$.log(`error`,e)}load(e){this.data=this.data||e;try{let e=te(this.widgetType);if(!e)throw Error(`invalid widget type: `+this.widgetType);this.chart=e(this,this.data),this.container.setAttribute(`data-layout`,this.widgetType),this.draw()}catch(e){this.fail(e);return}let t=this.handlerValue(`success`);t&&t()}showItem(e,t){let n=(this.handlerValue(`handleItem`)||((e,t)=>{if(this.stringValue(`subject`))return t;let n=document.createElement(`div`),r=document.createElement(`h2`);return r.textContent=e,n.appendChild(r),n.appendChild(t),n}))(e,t);n&&(this.container.appendChild(n),this.items.push(n))}adjustSize(e){let t=e.getBoundingClientRect(),n=this.numberValue(`width`)||t.width,r=this.numberValue(`height`)||t.height,i=this.numberValue(`ratio`),a=this.numberValue(`minHeight`),o=this.numberValue(`maxHeight`),s=r;i&&(s=n*i),a&&(s=Math.max(s,a)),o&&(s=Math.min(s,o)),r!=s&&Pn(e,s)}draw(){this.adjustSize(this.container),this.chart&&(this.chart.draw(),R(this.container).selectAll(`*`).each(function(){let e=this.getAttribute(`transform`);e||(e=getComputedStyle(this).getPropertyValue(`transform`),e&&e!=`none`&&this.setAttribute(`transform`,e))}))}markup(e){let t=this.handlerValue(`companyClick`);t&&e.selectAll(`.company`).attr(`data-clickable`,!0);let n=this.handlerValue(`personClick`);n&&e.selectAll(`.person`).attr(`data-clickable`,!0);let r=this.handlerValue(`addressClick`);r&&e.selectAll(`address`).attr(`data-clickable`,!0);let i=this.handlerValue(`registerClick`);i&&e.selectAll(`.register`).attr(`data-clickable`,!0);let a=this.handlerValue(`filingClick`);a&&e.selectAll(`.filing`).attr(`data-clickable`,!0),e.on(`click`,function(e){let o=e.target,s=so(o),c;t&&o.classList.contains(`company`)&&(t(s),c=!0),n&&o.classList.contains(`person`)&&(n(s),c=!0),r&&o.tagName==`ADDRESS`&&(r({query:o.textContent}),c=!0),i&&o.classList.contains(`register`)&&(i({query:o.textContent}),c=!0),a&&o.classList.contains(`filing`)&&(a({query:o.textContent}),c=!0),c&&e.preventDefault()})}invokeClickHandler(e,t){let n=this.getClickHandler(t);return n?(n(e),!0):!1}getClickHandler(e){if(e)switch(e.toString().toLowerCase()[0]){case`c`:return this.handlerValue(`companyClick`);case`p`:return this.handlerValue(`personClick`);case`h`:return this.handlerValue(`publicationClick`)}}getLinkifier(){return this.handlerValue(`linkify`)||co}getRootColor(){return ke(this.stringValue(`rootColor`)||`#00dddd`)}isReverseChronology(){return this.stringValue(`chronology`)===`reverse`}getLanguage(){return this.stringValue(`language`)||`de`}i18n(){return this.getLanguage()==`de`?no:this.getLanguage()==`fr`?io:ro}trilingual(e,t,n){return this.getLanguage()==`de`?t:this.getLanguage()==`fr`?n:e}isPrint(){return document.documentElement.classList&&document.documentElement.classList.contains(`print`)}numberValue(e){let t=this.options[e];if(typeof t==`function`)return t();if(typeof t==`number`)return t;if(typeof t==`string`)return Number(t)}stringValue(e){let t=this.options[e];if(typeof t==`function`)return t();if(typeof t==`string`)return t}booleanValue(e){return this.stringValue(e)?.toLowerCase()===`true`}nodeValue(e){let t=this.options[e];if(typeof t==`object`)return t;if(typeof t==`function`)return t();if(typeof t==`string`)return R(this.container).select(t).node()}objectValue(e){let t=this.options[e];if(typeof t==`function`)return t();if(typeof t==`object`)return t===null?void 0:t;if(typeof t==`string`)return JSON.parse(t)}handlerValue(e){let t=this.options[e];if(typeof t==`function`)return t.bind(this)}};function oo(e,t){let n={};Object.assign(n,e);for(let e=0;e<t.attributes.length;++e){let r=t.attributes[e],i=r.name;if(i.indexOf(`data-`)===0){let e=Vn(i.substring(5));n[e]=n[e]||r.value}}return n}function so(e){return oo({},e)}var co=()=>null;function lo(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var uo=Symbol(`implicit`);function fo(){var e=new Nr,t=[],n=[],r=uo;function i(i){let a=e.get(i);if(a===void 0){if(r!==uo)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Nr;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return fo(t,n).unknown(r)},lo.apply(i,arguments),i}function po(){var e=fo().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=qr(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return po(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},lo.apply(d(),arguments)}var mo=e=>()=>e;function ho(e,t){return function(n){return e+n*t}}function go(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function _o(e){return(e=+e)==1?vo:function(t,n){return n-t?go(t,n,e):mo(isNaN(t)?n:t)}}function vo(e,t){var n=t-e;return n?ho(e,n):mo(isNaN(e)?t:e)}var yo=(function e(t){var n=_o(t);function r(e,t){var r=n((e=be(e)).r,(t=be(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=vo(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function bo(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function xo(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function So(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=Ao(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function Co(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function J(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function wo(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=Ao(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var To=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Eo=new RegExp(To.source,`g`);function Do(e){return function(){return e}}function Oo(e){return function(t){return e(t)+``}}function ko(e,t){var n=To.lastIndex=Eo.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=To.exec(e))&&(i=Eo.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:J(r,i)})),n=Eo.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Oo(c[0].x):Do(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function Ao(e,t){var n=typeof t,r;return t==null||n===`boolean`?mo(t):(n===`number`?J:n===`string`?(r=ge(t))?(t=r,yo):ko:t instanceof ge?yo:t instanceof Date?Co:xo(t)?bo:Array.isArray(t)?So:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?wo:J)(e,t)}function jo(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Mo=180/Math.PI,No={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Po(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Mo,skewX:Math.atan(c)*Mo,scaleX:o,scaleY:s}}var Fo;function Io(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?No:Po(t.a,t.b,t.c,t.d,t.e,t.f)}function Lo(e){return e==null||(Fo||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Fo.setAttribute(`transform`,e),!(e=Fo.transform.baseVal.consolidate()))?No:(e=e.matrix,Po(e.a,e.b,e.c,e.d,e.e,e.f))}function Ro(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:J(e,i)},{i:c-2,x:J(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:J(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:J(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:J(e,n)},{i:s-2,x:J(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var zo=Ro(Io,`px, `,`px)`,`deg)`),Bo=Ro(Lo,`, `,`)`,`)`);function Vo(e){return function(){return e}}function Ho(e){return+e}var Uo=[0,1];function Wo(e){return e}function Go(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Vo(isNaN(t)?NaN:.5)}function Ko(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function qo(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Go(i,r),a=n(o,a)):(r=Go(r,i),a=n(a,o)),function(e){return a(r(e))}}function Jo(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Go(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=jr(e,t,1,r)-1;return a[n](i[n](t))}}function Yo(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Xo(){var e=Uo,t=Uo,n=Ao,r,i,a,o=Wo,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==Wo&&(o=Ko(e[0],e[n-1])),s=n>2?Jo:qo,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),J))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,Ho),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=jo,u()},d.clamp=function(e){return arguments.length?(o=e?!0:Wo,u()):o!==Wo},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function Zo(){return Xo()(Wo,Wo)}function Qo(e,t,n,r){var i=Wr(e,t,n),a;switch(r=Da(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Ua(i,o))&&(r.precision=a),Ba(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=Wa(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=Ha(i))&&(r.precision=a-(r.type===`%`)*2)}return za(r)}function $o(e){var t=e.domain;return e.ticks=function(e){var n=t();return Hr(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return Qo(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=Ur(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function es(){var e=Zo();return e.copy=function(){return Yo(e,es())},lo.apply(e,arguments),$o(e)}function ts(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function ns(e){return new Date(e)}function rs(e){return e instanceof Date?+e:+new Date(+e)}function is(e,t,n,r,i,a,o,s,c,l){var u=Zo(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,rs)):f().map(ns)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(ts(n,e)):u},u.copy=function(){return Yo(u,is(e,t,n,r,i,a,o,s,c,l))},u}function as(){return lo.apply(is(Zr,Qr,W,Cr,cr,ir,nr,er,$n,ya).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function os(e){return e}var ss=1,cs=2,ls=3,us=4,ds=1e-6;function fs(e){return`translate(`+e+`,0)`}function ps(e){return`translate(0,`+e+`)`}function ms(e){return t=>+e(t)}function hs(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function gs(){return!this.__axis}function _s(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,c=typeof window<`u`&&window.devicePixelRatio>1?0:.5,l=e===ss||e===us?-1:1,u=e===us||e===cs?`x`:`y`,d=e===ss||e===ls?fs:ps;function f(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):os),h=Math.max(a,0)+s,g=t.range(),_=+g[0]+c,v=+g[g.length-1]+c,y=(t.bandwidth?hs:ms)(t.copy(),c),b=f.selection?f.selection():f,x=b.selectAll(`.domain`).data([null]),S=b.selectAll(`.tick`).data(p,t).order(),C=S.exit(),w=S.enter().append(`g`).attr(`class`,`tick`),T=S.select(`line`),E=S.select(`text`);x=x.merge(x.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),S=S.merge(w),T=T.merge(w.append(`line`).attr(`stroke`,`currentColor`).attr(u+`2`,l*a)),E=E.merge(w.append(`text`).attr(`fill`,`currentColor`).attr(u,l*h).attr(`dy`,e===ss?`0em`:e===ls?`0.71em`:`0.32em`)),f!==b&&(x=x.transition(f),S=S.transition(f),T=T.transition(f),E=E.transition(f),C=C.transition(f).attr(`opacity`,ds).attr(`transform`,function(e){return isFinite(e=y(e))?d(e+c):this.getAttribute(`transform`)}),w.attr(`opacity`,ds).attr(`transform`,function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:y(e))+c)})),C.remove(),x.attr(`d`,e===us||e===cs?o?`M`+l*o+`,`+_+`H`+c+`V`+v+`H`+l*o:`M`+c+`,`+_+`V`+v:o?`M`+_+`,`+l*o+`V`+c+`H`+v+`V`+l*o:`M`+_+`,`+c+`H`+v),S.attr(`opacity`,1).attr(`transform`,function(e){return d(y(e)+c)}),T.attr(u+`2`,l*a),E.attr(u,l*h).text(m),b.filter(gs).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===cs?`start`:e===us?`end`:`middle`),b.each(function(){this.__axis=y})}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(a=o=+e,f):a},f.tickSizeInner=function(e){return arguments.length?(a=+e,f):a},f.tickSizeOuter=function(e){return arguments.length?(o=+e,f):o},f.tickPadding=function(e){return arguments.length?(s=+e,f):s},f.offset=function(e){return arguments.length?(c=+e,f):c},f}function vs(e){return _s(ls,e)}function ys(e){return _s(us,e)}function bs(){let e=R(`body`).append(`div`).attr(`class`,`tooltip ui basic black label`).style(`position`,`fixed`).style(`top`,0).style(`left`,0).style(`pointer-events`,`none`).style(`visibility`,`hidden`);return{position(t,n){let r=document.documentElement.clientWidth,i=e.node().offsetWidth,a=e.node().offsetHeight,o=t+i+16<r,s=o?t+16:t-i-16,c=n-a/2;return e.style(`transform`,`translate(${s}px, ${c}px)`).classed(`left right pointing`,!1).classed(o?`left`:`right`,!0).classed(`pointing`,!0),this},visible(t){return e.interrupt().transition().delay(t?0:100).duration(0).style(`visibility`,()=>t?null:`hidden`),this},content(t){return e.html(t),this}}}var xs=function(e,t){let n=[],r=t.note;if((!t.item||t.item.length==0)&&!r)throw Error(`no data`);let i={top:15,right:10,bottom:50,left:15},a=bs();function o(t,n){let r=t.note?`<span class='note'>`+t.note+`</span>`:``,i=t.source&&t.source.publicationTitle?`<span class='source'>`+e.trilingual(`Source: `,`Quelle: `,`Source: `)+t.source.publicationTitle+`</span>`:``;return`<span class='name'>`+n+` `+t.year+`</span><span class='value'>`+t.formattedValue+`</span>`+r+i}for(let r of t.item){let t=r.data;if(!t)continue;let s=e.options.colors,c=typeof s==`string`?s.split(`|`):s;c??=t.colors;let l=t.title.substring(0,3),u=[],d=t.colorIndexes;for(let e=0;e<d.length;++e){let n=d[e],r=t.estimate[e]?`url(#diag`+l+n+`)`:c[n];u.push(r)}let f=jn(`svg:defs`);f.selectAll(`pattern`).data(c).join(`svg:pattern`).attr(`id`,(e,t)=>`diag${l}${t}`).attr(`width`,10).attr(`height`,10).attr(`patternTransform`,`rotate(45 0 0)`).attr(`patternUnits`,`userSpaceOnUse`).attr(`transform`,`matrix(0.707107, 0.707107, -0.707107, 0.707107, 0, 0)`).append(`svg:line`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,0).attr(`y2`,10).style(`stroke`,e=>e).style(`stroke-width`,15);let[p,m]=Mr(t.data,e=>e.value0);m=Math.max(m,1),p=Math.min(p,0);let h=Math.min(5,Math.floor(Math.max(Math.abs(p),m))),g=document.createElement(`div`);g.setAttribute(`data-item`,r.item),e.showItem(r.title,g);let _=R(g).style(`height`,`100%`).append(`svg`).attr(`width`,`100%`).attr(`height`,`100%`);_.attr(`aria-label`,r.title),_.append(()=>f.node());let v=po().domain(t.data.map(e=>e.year)).padding(.2),y=vs(v),b=_.append(`g`).classed(`x-axis`,!0),x=es().domain([p,m]),S=ys(x).tickSizeInner(0).tickSizeOuter(0).ticks(h).tickFormat(e.i18n().createNumberFormatter(t.numberFormat,`,.0f`)),C=_.append(`g`).classed(`y-axis`,!0),w=_.append(`g`),T=_.append(`g`);n.push(()=>{let{width:e,height:n}=g.getBoundingClientRect();_.attr(`viewBox`,`0 0 ${e} ${n}`),x.range([n-i.bottom,i.top]),C.call(S).attr(`font-size`,null).attr(`font-family`,null).call(e=>e.selectAll(`.tick`).classed(`zero`,e=>e===0));let s=45;C.selectAll(`.tick > text`).each(function(){s=Math.max(s,this.getBBox().width)});let c=i.left+s;C.attr(`transform`,`translate(${c},0)`).selectAll(`.tick > line`).attr(`x2`,e-c-i.right),v.range([c,e-i.right]),y.tickSizeInner(-(n-i.top-i.bottom)),b.attr(`transform`,`translate(0,${n-i.bottom})`).call(y).call(e=>e.select(`.domain`).remove()).attr(`font-size`,null).attr(`font-family`,null);let l=e=>Math.abs(x(0)-x(e));T.selectAll(`rect`).data(t.data).join(`rect`).attr(`x`,e=>v(e.year)).attr(`y`,e=>x(Math.max(e.value0,0))).attr(`height`,e=>Math.max(l(e.value0),1)).attr(`width`,v.bandwidth()).attr(`fill`,(e,t)=>u[t]),w.selectAll(`rect`).data(t.data.filter(e=>l(e.value0)<45)).join(`rect`).attr(`x`,e=>v(e.year)).attr(`y`,e=>{let t=e.value0>0?45:0;return x(0)-t}).attr(`height`,45).attr(`width`,v.bandwidth()).attr(`fill`,`transparent`),_.selectAll(`g > rect`).on(`mousemove`,e=>{a.position(e.clientX,e.clientY)}).on(`mouseover`,(e,t)=>{a.content(o(t,r.title)).visible(!0)}).on(`mouseout`,()=>{a.visible(!1)})})}if(r){let t=document.createElement(`div`),n=R(t).classed(`note`,!0).html(r);e.markup(n),e.container.appendChild(t)}return{draw:function(){for(let e of n)e()}}},Ss=function(e,t){if(t){let n=e.handlerValue(`load`);n&&n(t)}return D};function Cs(e,t){return e.parent===t.parent?1:2}function ws(e){return e.reduce(Ts,0)/e.length}function Ts(e,t){return e+t.x}function Es(e){return 1+e.reduce(Ds,0)}function Ds(e,t){return Math.max(e,t.y)}function Os(e){for(var t;t=e.children;)e=t[0];return e}function ks(e){for(var t;t=e.children;)e=t[t.length-1];return e}function As(){var e=Cs,t=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter(function(t){var n=t.children;n?(t.x=ws(n),t.y=Es(n)):(t.x=a?o+=e(t,a):0,t.y=0,a=t)});var s=Os(i),c=ks(i),l=s.x-e(s,c)/2,u=c.x+e(c,s)/2;return i.eachAfter(r?function(e){e.x=(e.x-i.x)*t,e.y=(i.y-e.y)*n}:function(e){e.x=(e.x-l)/(u-l)*t,e.y=(1-(i.y?e.y/i.y:1))*n})}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}function js(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function Ms(){return this.eachAfter(js)}function Ns(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function Ps(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function Fs(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function Is(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function Ls(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function Rs(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function zs(e){for(var t=this,n=Bs(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function Bs(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function Vs(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Hs(){return Array.from(this)}function Us(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Ws(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*Gs(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function Ks(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Ys)):t===void 0&&(t=Js);for(var n=new Qs(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new Qs(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(Zs)}function qs(){return Ks(this).eachBefore(Xs)}function Js(e){return e.children}function Ys(e){return Array.isArray(e)?e[1]:null}function Xs(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Zs(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Qs(e){this.data=e,this.depth=this.height=0,this.parent=null}Qs.prototype=Ks.prototype={constructor:Qs,count:Ms,each:Ns,eachAfter:Fs,eachBefore:Ps,find:Is,sum:Ls,sort:Rs,path:zs,ancestors:Vs,descendants:Hs,leaves:Us,links:Ws,copy:qs,[Symbol.iterator]:Gs};function $s(e){if(typeof e!=`function`)throw Error();return e}function ec(){return 0}function tc(e){return function(){return e}}function nc(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function rc(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++s<c;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function ic(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(i-n)/e.value;++s<c;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var ac=(1+Math.sqrt(5))/2;function oc(e,t,n,r,i,a){for(var o=[],s=t.children,c,l,u=0,d=0,f=s.length,p,m,h=t.value,g,_,v,y,b,x,S;u<f;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);for(_=v=g,x=Math.max(m/p,p/m)/(h*e),S=g*g*x,b=Math.max(v/S,S/_);d<f;++d){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?rc(c,n,r,i,h?r+=m*g/h:a):ic(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var sc=(function e(t){function n(e,n,r,i,a){oc(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(ac);function cc(){var e=sc,t=!1,n=1,r=1,i=[0],a=ec,o=ec,s=ec,c=ec,l=ec;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(nc),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=a(t)/2,r+=l(t)-n,u+=o(t)-n,d-=s(t)-n,f-=c(t)-n,d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=$s(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:tc(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:tc(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:tc(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:tc(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:tc(+e),u):l},u}function lc(e){return function(){return e}}var uc=Math.PI,dc=2*uc,fc=1e-6,pc=dc-fc;function mc(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function hc(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return mc;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var gc=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?mc:hc(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>fc){if(!(Math.abs(u*s-c*l)>fc)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((uc-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>fc&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>fc||Math.abs(this._y1-l)>fc)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%dc+dc),d>pc?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>fc&&this._append`A${n},${n},0,${+(d>=uc)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};gc.prototype;function _c(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new gc(t)}var vc=Array.prototype.slice;function yc(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function bc(e){this._context=e}bc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function xc(e){return new bc(e)}function Sc(e){return e[0]}function Cc(e){return e[1]}function wc(e,t){var n=lc(!0),r=null,i=xc,a=null,o=_c(s);e=typeof e==`function`?e:e===void 0?Sc:lc(e),t=typeof t==`function`?t:t===void 0?Cc:lc(t);function s(s){var c,l=(s=yc(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:lc(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:lc(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:lc(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}var Tc=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function Ec(e){return new Tc(e,!0)}function Dc(e){return e.source}function Oc(e){return e.target}function kc(e){let t=Dc,n=Oc,r=Sc,i=Cc,a=null,o=null,s=_c(c);function c(){let c,l=vc.call(arguments),u=t.apply(this,l),d=n.apply(this,l);if(a??(o=e(c=s())),o.lineStart(),l[0]=u,o.point(+r.apply(this,l),+i.apply(this,l)),l[0]=d,o.point(+r.apply(this,l),+i.apply(this,l)),o.lineEnd(),c)return o=null,c+``||null}return c.source=function(e){return arguments.length?(t=e,c):t},c.target=function(e){return arguments.length?(n=e,c):n},c.x=function(e){return arguments.length?(r=typeof e==`function`?e:lc(+e),c):r},c.y=function(e){return arguments.length?(i=typeof e==`function`?e:lc(+e),c):i},c.context=function(t){return arguments.length?(t==null?a=o=null:o=e(a=t),c):a},c}function Ac(){return kc(Ec)}function jc(e){return wc().x(function(t){return e*t.x}).y(function(t){return e*t.y}).curve(xc)([{x:0,y:0},{x:1,y:.5},{x:1,y:-.5},{x:0,y:0}])}function Mc(e,t,n,r,i,a,o=0){e.each(function(){let e=R(this),s=e.select(t).node(),c=e.select(n).node();if(s&&c&&s.textContent){let t=s.getBBox(),n=Number(e.attr(`data-dx`));if(n!=0){let e=t.x,i=-n+r,o=a-r-t.width-n;e<i?(t.x=i,R(s).attr(`x`,i-e)):e>o&&(t.x=o,R(s).attr(`x`,o-e))}R(c).attr(`width`,t.width+r*2).attr(`height`,t.height+i*2).attr(`x`,t.x-r).attr(`y`,t.y-i).attr(`rx`,o).attr(`ry`,o)}})}function Nc(e,t=!1){if(Rn())return;e.reverse();let n=[],r=[];for(let i of e){let e=t&&i.classList.contains(`link`)?r:n;e.includes(i)||e.push(i)}if(r.reverse(),n.reverse(),Pc(r))for(let e of r)e.parentNode?.appendChild(e);if(Pc(n))for(let e of n)e.parentNode?.appendChild(e)}function Pc(e){let t=e[0];if(!t)return!1;let n=e.length,r=t.parentNode?.childNodes??[];for(let t=0;t<n;++t)if(r[r.length-n+t]!=e[t])return!0;return!1}function Fc(e,t,n,r,i={}){let a=e.container.getBoundingClientRect().width;function o(e){return t.select(`.node[data-id='`+e+`']`)}function s(){return t.select(`[data-root]`)}let c;function l(e){let n=e.id,s=n==r?`root`:`node`,l=o(n).attr(`data-highlight`,s).classed(`hovered`,!0);l.select(`.text`).text(e.desc),Mc(l,`.text`,`.text-bg`,i.denseLeaves?2:5,2,a);let u=t.selectAll(`[data-source-id='`+n+`'],[data-target-id='`+n+`']`).attr(`data-highlight`,s);Mc(u,`.desc`,`.desc-bg`,3,2,a),window.clearTimeout(c);let d=[];u.each(function(e){d.push(this);function t(e){e!=n&&d.push(o(e).node())}t(e.source.id),t(e.target.id)}),d.push(l.node()),Nc(d,i.separateLinksContainer)}function u(){let e=[];t.select(`.node`).each(function(){e.push(this)}),e.push(s().node()),Nc(e)}function d(e){t.selectAll(`[data-highlight]`).attr(`data-highlight`,`false`).classed(`hovered`,!1),t.select(`.node[data-id='`+e.id+`']`).select(`.text`).text(e.text).attr(`x`,0),c=window.setTimeout(u,1e3)}let f=t.select(`g.nodes`);f.empty()&&(f=t.append(`g`).attr(`class`,`nodes`)),f.style(`pointer-events`,`all`);let p=f.selectAll(`.node`).data(n),m=e=>e.clickable||!e.root,h=p.enter().append(`svg:a`).attr(`class`,`node`).attr(`data-leaf`,e=>!e.children||e.children.length==0).attr(`data-id`,e=>e.id).attr(`data-root`,e=>e.root).attr(`data-old`,e=>e.old??null).attr(`data-warning`,e=>e.warning??null).attr(`data-color`,e=>e.color??null).attr(`data-d`,e=>e.distance??null).attr(`xlink:href`,function(e){return e.url||``}).attr(`data-clickable`,t=>m(t)&&e.getClickHandler(t.type)?!0:null).on(`click`,function(t,n){m(n)&&e.invokeClickHandler(n.query,n.type)&&t.preventDefault()});return Ln(`mouseover`,f.node(),h,l),Ln(`mouseout`,f.node(),h,d),h.append(`circle`).attr(`r`,20),h.append(`text`).attr(`class`,`icon`).text(e=>e.icon),h.append(`rect`).attr(`class`,`text-bg`),h.append(`text`).attr(`class`,`text`).text(e=>e.text),h.filter(`[data-warning]`).append(`circle`).attr(`r`,7).attr(`data-warn`,!0).attr(`transform`,`translate(20, -20)`),h.filter(`[data-warning]`).append(`text`).attr(`r`,8).attr(`class`,`icon`).text(``).attr(`data-warn`,!0).append(`title`).text(e=>e.warning??``),u(),h}function Ic(e,t,n){let r=e.container.getBoundingClientRect().width,i=t.select(`g.nodes`),a=t.append(`g`).attr(`class`,`highlight-container`).attr(`style`,`pointer-events: none;`);function o(e){return t.select(`.node[data-id='`+e+`']`)}function s(){return t.select(`[data-root]`)}let c;function l(e){let t=e.getAttribute(`data-id`),a=e.getAttribute(`data-root`)==`true`?`root`:`node`;R(e).attr(`data-highlight`,a).classed(`hovered`,!0);var s=e.querySelector(`.text`);s&&(s.textContent=e.getAttribute(`data-description`)),Mc(R(e),`.text`,`.text-bg`,n?2:5,2,r);let l=i.selectAll(`.link[data-source-id='`+t+`'],.link[data-target-id='`+t+`']`).attr(`data-highlight`,a);Mc(l,`.desc`,`.desc-bg`,3,2,r),window.clearTimeout(c);let u=[];l.each(function(){var e=this;u.push(e);function n(e){e!=t&&u.push(o(e).node())}n(e.getAttribute(`data-source-id`)||``),n(e.getAttribute(`data-target-id`)||``)}),u.push(e),Nc(u)}function u(e){let t=R(e).clone(!0);t.attr(`data-highlight`,`link`).selectAll(`:not(.desc, .desc-bg)`).remove();let n=t.node();n&&(a.html(null),a.node()?.append(n))}function d(){t.selectAll(`[data-highlight]`).attr(`data-highlight`,`false`).classed(`hovered`,!1)}function f(){let e=[];t.select(`.node`).each(function(){e.push(this)}),e.push(s().node()),Nc(e)}function p(e){d();let n=e.getAttribute(`data-id`);t.select(`.node[data-id='`+n+`']`).select(`.text`).text(e.getAttribute(`data-text`)||``).attr(`x`,0),c=window.setTimeout(f,1e3)}i.selectAll(`.node`).each(function(){let t=this,n=t.getAttribute(`data-root`)==`true`,r=e.getLinkifier();if(!n){let n=t.getAttribute(`data-type`)||``,i=t.getAttribute(`data-query`)||``;R(t).attr(`xlink:href`,r(t)).attr(`data-clickable`,e.getClickHandler(n)?`true`:`false`).on(`click`,function(t){e.invokeClickHandler(i,n)&&t.preventDefault()})}}),i.selectAll(`.node`).on(`mouseover`,function(){l(this)}).on(`mouseout`,function(){p(this)}),i.selectAll(`.link`).on(`mouseover`,function(){u(this)}).on(`mouseout`,function(){d()}),f()}var Lc=function(e,t){let n=e.container;R(n).selectAll(`.shake`).style(`display`,`none`);let r=t.size>=10,i=t.scope,a=R(n).append(`svg`).attr(`class`,t.svgClass).attr(`data-dense`,r).attr(`aria-label`,t.desc);function o(){let o=n.getBoundingClientRect().width,s={left:-o/6,right:o/6,top:-20,bottom:38},c={left:-8,right:o/3-8,top:-8,bottom:8},l=r?c:s,u=s,d=[s.bottom-s.top,s.right-s.left],f=[c.bottom-c.top,c.right-c.left],p=r?f:d,m=r?7:12,h=1.5,g=As().nodeSize(p).separation(function(e,t){let n=e.parent==t.parent;if(r){if(n)return 1;{let n=(e.parent.children.length+t.parent.children.length)*1/2+h,r=5-n;return n<5?h+r:h}}return n?1:1.4})(Ks(t)),_=e=>({...e.data,x:e.x,y:e.y,depth:e.depth}),v=g.descendants().map(_),y=g.links().map(e=>({target:_(e.target),source:_(e.source)})),b,x=0;for(let e of v)e.root&&(b=e,i===`publication`&&(e.clickable=!0)),x=Math.max(x,e.depth);a.select(`g`).remove();let S=a.append(`g`),C=S.append(`g`).selectAll(`.link`).data(y),w=e=>e.target.edge,T=C.enter().append(`g`).attr(`class`,`link`).attr(`data-source-id`,e=>e.source.id).attr(`data-target-id`,e=>e.target.id).attr(`data-old`,e=>w(e)?.old??null).attr(`data-warn`,e=>w(e)?.warn??null).attr(`data-color`,e=>w(e)?.color??null).attr(`data-head`,e=>w(e)?.head??null).attr(`data-tail`,e=>w(e)?.tail??null);T.append(`path`).attr(`class`,`line`),T.append(`path`).attr(`class`,`head`).attr(`d`,jc(m)),T.append(`path`).attr(`class`,`tail`).attr(`d`,jc(m));let E=Fc(e,S,v,b?b.id:void 0,{denseLeaves:r,separateLinksContainer:!0}),D=(e,t)=>`translate(`+e+`,`+t+`)`,O=function(e){let t=e=>!e.children||e.children.length===0,n=e=>t(e)?l:u,i=e=>e.y+n(e).left,a=e=>e.y+n(e).right,o=e=>e.x+n(e).top,s=e=>e.x+n(e).bottom,c=[Kr(v,i),Gr(v,a)],d=Kr(v,o),f=Gr(v,s),p=Mr(v,e=>e.x),m=p[1]-p[0],h=es().domain(c).range([0,e]),g=es().domain(p).range([0,m]),_=e=>h(r&&t(e)?i(e):e.y),y=e=>g(e.x),b=e=>D(_(e),y(e)),x=Ac().x(e=>_(e)).y(e=>y(e)),S=Math.max(10,(150-(f-d))/2),C=f-p[1]+S,w=p[0]-d+S;return{height:m+C+w,diagonal:x,nodeTransform:b,headTransform:e=>b(e.target)+` `+D(r&&t(e.target)?0:-20,0)+` rotate(180)`,tailTransform:e=>b(e.source)+` `+D(20,0),canvasTransform:D(0,w)}}(o);Pn(n,O.height),a.attr(`width`,`100%`).attr(`height`,`100%`).attr(`viewBox`,`0 0 ${o} ${O.height}`),S.attr(`transform`,O.canvasTransform),E.attr(`transform`,O.nodeTransform),T.select(`.line`).attr(`d`,O.diagonal),T.select(`.head`).attr(`transform`,O.headTransform),T.select(`.tail`).attr(`transform`,O.tailTransform)}return{draw:o}},Rc=function(e,t){if(!t.item||t.item.length==0)throw Error(`no data`);let n=[];for(let r of t.item){let t=r.data,i=document.createElement(`div`),a=R(i).attr(`data-item`,r.item).attr(`class`,`root`),o=a.append(`div`).attr(`class`,`box-parent`);e.showItem(r.title,i);let s=R(e.nodeValue(`legend1`)??null);s.empty()&&(s=a.selectAll(`.legend1`));let c=R(e.nodeValue(`legend2`)??null);c.empty()&&(c=a.selectAll(`.legend2`));let l=R(e.nodeValue(`legend3`)??null);if(l.empty()&&(l=a.selectAll(`.legend3`)),s.empty()||c.empty()||l.empty()){let e=a.selectAll(`.legends`);e.empty()&&(e=a.append(`div`).attr(`class`,`legends`)),s.empty()&&(s=e.append(`span`).attr(`class`,`legend1`)),c.empty()&&(c=e.append(`span`).attr(`class`,`legend2`)),l.empty()&&(l=e.append(`span`).attr(`class`,`legend3`))}e.booleanValue(`hideLegend1`)&&s.classed(`hidden`,!0),e.booleanValue(`hideLegend2`)&&c.classed(`hidden`,!0),e.booleanValue(`hideLegend3`)&&l.classed(`hidden`,!0),l.text($a(`As of: `,`Stand: `,`Date de `)+r.date);let u=e.i18n().createNumberFormatter(t.numberFormat,`,.3r`),d=null,f=function(e,t){t.children||(!d||d==t)&&(o.classed(`highlighting`,!0),Mn(`.highlighted`).classed(`highlighted`,!1),R(e).classed(`highlighted`,!0),g(t))},p=function(){d||(o.classed(`highlighting`,!1),Mn(`.highlighted`).classed(`highlighted`,!1),g(t.default??t.root))},m=function(e,t){d==t?(d=null,p()):(d=t,f(e,t))},h=function(e){return!!e&&e.indexOf(`Fehlbetrag`)>=0},g=function(e){s.text((e.formattedValue??u(e.raw))+` `),c.text(e.name)};p(),function(t){function n(e,t,r,i){e.color=t.toString();let a=r;if(e.children){let o=e.children.length+1;if(o>0){let s=(i-r)/o;for(let r of e.children)t.h=a%360,n(r,t,a,a+s),a+=s}}}let r=e.getRootColor();n(t,r,r.h,r.h+360)}(t.root),n.push(function(){let e=o.node().getBoundingClientRect();if(e.width==0||e.height==0)return;let n=Ks(t.root).sum(e=>e.children?0:Math.abs(e.raw)).sort((e,t)=>Tr(e.value,t.value)),r=cc().size(Nn(e)).round(!0)(n),i=e=>e.x1-e.x0,a=e=>e.y1-e.y0,s=o.selectAll(`.box`).data(r.descendants()),c=s.enter().append(`div`).attr(`class`,`box`).on(`mouseenter`,function(e,t){f(this,t.data)}).on(`mouseleave`,p).on(`click`,function(e,t){m(this,t.data)}).attr(`data-neg`,e=>!!(e.data.raw<0||h(e.data.name)));c.append(`div`).attr(`class`,`value`).text(e=>e.children?null:e?.data?.formattedValue??u(e.value)),c.append(`div`).attr(`class`,`desc`).text(e=>e.children?null:e.data.name),c.merge(s).attr(`data-small`,e=>i(e)<40||a(e)<32||null).attr(`data-leaf`,e=>!e.children||null).style(`left`,e=>e.x0+`px`).style(`top`,e=>e.y0+`px`).style(`width`,e=>Math.max(0,i(e)-1)+`px`).style(`height`,e=>Math.max(0,a(e)-1)+`px`).style(`background`,e=>e.children?`white`:e.data.color)})}return{draw:function(){for(let e of n)e()}}},zc=function(e,t){let n=t&&t.financials&&t.financials.filter(e=>e.items.length>0),r=e.isReverseChronology();if(n&&n.length>0&&n[0].items.length>0){let a=document.createElement(`table`),o=R(a).attr(`class`,`ui bizq very compact celled small unstackable striped selectable first stuck table`),s=o.append(`thead`).append(`tr`),c=o.append(`tbody`),l=o.append(`tfoot`).append(`tr`);var i={};for(let e of n){e.itemsById={};for(let t of e.items)e.itemsById[t.id]=t,i[t.id]=t}let u=n[n.length-1];r&&n.reverse();let d=e.stringValue(`title`),f=s.append(`th`).attr(`class`,`first`);e.booleanValue(`hideTitleCell`)||f.text(d),f.append(`a`).attr(`href`,t.csvUrl).attr(`download`,`download`).attr(`title`,`CSV/Excel Download`).classed(`screen-only`,!0).append(`i`).attr(`class`,`download icon`);for(let e of n)s.append(`th`).text(e.formattedDate);for(let t in i){let r=c.append(`tr`).attr(`class`,`active-on-hover`),a=i[t];r.append(`td`).text(a.name);for(let i of n){let n=i.itemsById[t],a=r.append(`td`);if(n){let t=n.value>=0?`pos`:`neg`,r=n.formattedValue;a.append(`span`).attr(`class`,t+` value`).text(r),n.estimate&&a.append(`a`).attr(`href`,`javascript:void()`).attr(`title`,e.trilingual(`Unsafe value (estimation or indirect determination)`,`Indirekte oder unsichere Bestimmungsmethode`,`Valeur non sûre (estimation ou détermination indirecte)`)).html(` *&nbsp;`),n.note&&a.append(`span`).attr(`class`,`note`).text(n.note)}else a.append(`span`).text(`N/A`)}}if(u.source){if(u.source.auditorName){let t=c.append(`tr`).attr(`class`,`active-on-hover`);t.append(`td`).text(e.trilingual(`Auditor`,`Prüfer`,`Auditeur`));for(let e of n){let n=e.source&&e.source.auditorName;t.append(`td`).append(`span`).attr(`class`,`auditor value`).text(n||`N/A`)}}if(u.source&&u.source.publicationDate){let t=c.append(`tr`).attr(`class`,`active-on-hover`);t.append(`td`).text(e.trilingual(`Publication date`,`Veröffentlichungs­datum`,`Date de publication`));for(let r of n){let n=r.source&&r.source.publicationDate;t.append(`td`).append(`span`).attr(`class`,`date value`).text(n?e.i18n().dateFormatter(new Date(n)):`N/A`)}}l.append(`th`).text(e.trilingual(`Source`,`Quelle`,`Source`));let t=e.handlerValue(`sourceClick`);for(let e of n){let n=l.append(`th`);n.html(e.note.html),t&&n.selectAll(`a`).attr(`href`,`javascript:void(0);`).on(`click`,function(n){n.preventDefault(),t(e.source)})}}e.showItem(d,a)}else throw Error(`no data available`);return D},Bc=function(e,t){if(t.children)return Lc(e,t);if(!t.nodes||t.nodes.length<2||!t.links||t.links.length===0)return{empty:!0,draw(){}};let n=t.type==`orgchart`,r=e.container;if(t.html)return r.innerHTML=t.html,t.legendHtml||R(r).selectAll(`foreignObject:has(> .extended-legend-button)`).remove(),Mc(R(r).selectAll(`.link`),`.desc`,`.desc-bg`,3,3,1e3),Ic(e,R(r).select(`svg`),!1),{draw:function(){}};let i,a={},o=t.nodes.length,s=!1;for(let e of t.nodes)e.root&&(i=e),e.warning&&(s=!0),a[e.id]=e;for(let e of t.links)e.source=a[e.source],e.target=a[e.target],(!e.source||!e.target)&&$.log(`error`,`broken link: `,e);let c=R(r).append(`svg`).attr(`width`,`100%`).attr(`height`,`100%`).attr(`aria-label`,$a(`Network`,`Netzwerk`,`Réseau`)),l=c.append(`g`).attr(`class`,`nodes`).selectAll(`.link`).data(t.links),u=c.append(`g`).attr(`class`,`legend`);n||(u.append(`line`).attr(`data-old`,!1),u.append(`line`).attr(`data-old`,!0)),s&&u.append(`line`).attr(`data-warn`,!0),u.append(`text`).attr(`data-old`,!1).text(e.trilingual(`currently`,`aktuell`,`actuel`)),u.append(`text`).attr(`data-old`,!0).text(e.trilingual(`previously`,`vormals`,`auparavant`)),s&&u.append(`text`).attr(`data-warn`,!0).text(e.trilingual(`politically exposed`,`politisch exponiert`,`politiquement exposé`));function d(e){if(e.type==`SameAddress`)return`3, 3`;if(e.type==`CommonFiling`)return`6, 6`}let f=l.enter().append(`g`).attr(`class`,`link`).attr(`data-source-id`,e=>e.source.id).attr(`data-target-id`,e=>e.target.id).attr(`data-head`,e=>e.head).attr(`data-tail`,e=>e.tail).attr(`data-old`,e=>e.old).attr(`data-warn`,e=>e.warn).attr(`data-length`,e=>e.length).attr(`data-helper`,e=>e.helper);if(n)for(var p=0;p<3;++p)f.append(`line`).attr(`class`,`line`).attr(`class`,`segment`+p).attr(`stroke-width`,1).attr(`stroke`,`#000000`);else f.append(`line`).attr(`class`,`line`).attr(`stroke-width`,1).attr(`stroke`,`#000000`).attr(`stroke-dasharray`,e=>d(e));f.append(`rect`).attr(`class`,`desc-bg`),f.append(`text`).attr(`class`,`desc`).attr(`text-anchor`,`middle`).text(e=>e.text),f.append(`path`).attr(`class`,`head`).attr(`d`,jc(12)),f.append(`path`).attr(`class`,`tail`).attr(`d`,jc(12));let m=Fc(e,c,t.nodes,i.id),h=0,g=!0,_=function(){if(g||h++%3!=0)return;function e(e,t){return(t[1]-t[0])/(e[1]-e[0])}function i(e){return(e[1]+e[0])/2}let a=r.getBoundingClientRect(),s=a.width,l=a.height,u=Mr(t.nodes,e=>e.x),d=Mr(t.nodes,e=>e.y),p=[100,s-100],_=n?d:[40,(o==2?120:l)-60],v=i(u),y=i(p),b=i(d),x=i(_),S=e(u,p),C=e(d,_),w=o==2?2:t.diameter*1.1;S=Math.min(S,C*w),o==2&&(C=0,S*=2,Pn(r,120));let T=e=>(e-v)*S+y,E=e=>(e-b)*C+x,D=e=>T(e.source.x),O=e=>T(e.target.x),ee=e=>E(e.source.y),te=e=>E(e.target.y),k=e=>O(e)-D(e),A=e=>te(e)-ee(e),j=e=>(O(e)-D(e))/2,M=e=>(te(e)-ee(e))/2,ne=e=>180/Math.PI*Math.atan2(A(e),k(e)),re=e=>{let t=180/Math.PI*Math.atan2(A(e),k(e));return t>90&&t<270?t-=180:t<-90&&t>-270&&(t+=180),t};f.attr(`transform`,e=>`translate(`+D(e)+` `+ee(e)+`)`),f.select(`line`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,k).attr(`y2`,A),f.select(`.segment0`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,0).attr(`y2`,M),f.select(`.segment1`).attr(`x1`,0).attr(`y1`,M).attr(`x2`,k).attr(`y2`,M),f.select(`.segment2`).attr(`x1`,k).attr(`y1`,M).attr(`x2`,k).attr(`y2`,A);let N=e=>`rotate(`+re(e)+` `+j(e)+` `+M(e)+` ) translate(0 -7)`;if(f.select(`.desc`).attr(`x`,j).attr(`y`,M).attr(`transform`,N),f.select(`.desc-bg`).attr(`x`,j).attr(`y`,M).attr(`transform`,N),!n){let e=e=>k(e)+0,t=e=>A(e)+0;f.select(`.tail`).attr(`transform`,e=>`rotate(`+ne(e)+`) translate(20 0)`),f.select(`.head`).attr(`transform`,n=>`translate(`+e(n)+` `+t(n)+`) rotate(`+(180+ne(n))+`) translate(20 0)`)}let P=_[1]+20,ie=P-18,ae=P+18;c.selectAll(`.legend line`).attr(`x1`,50).attr(`x2`,90),c.selectAll(`.legend line[data-old='false'`).attr(`y1`,ie).attr(`y2`,ie),c.selectAll(`.legend line[data-old='true'`).attr(`y1`,P).attr(`y2`,P),c.selectAll(`.legend line[data-warn='true'`).attr(`y1`,ae).attr(`y2`,ae),c.selectAll(`.legend text`).attr(`x`,95),c.selectAll(`.legend text[data-old='false'`).attr(`y`,ie+3),c.selectAll(`.legend text[data-old='true'`).attr(`y`,P+3),c.selectAll(`.legend text[data-warn='true'`).attr(`y`,ae+3),Mc(f,`.desc`,`.desc-bg`,3,3,1e3),m.attr(`data-dx`,e=>T(e.x)).attr(`transform`,e=>`translate(`+T(e.x)+`,`+E(e.y)+`)`)};function v(){let[e,t]=Nn(r.getBoundingClientRect());c.attr(`viewBox`,`0 0 `+e+` `+t),g=!1,_()}return{draw:v}},Vc={value:()=>{}};function Hc(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new Uc(n)}function Uc(e){this._=e}function Wc(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}Uc.prototype=Hc.prototype={constructor:Uc,on:function(e,t){var n=this._,r=Wc(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Gc(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=Kc(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Kc(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Uc(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Gc(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Kc(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Vc,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var qc=0,Jc=0,Yc=0,Xc=1e3,Zc,Qc,$c=0,el=0,tl=0,nl=typeof performance==`object`&&performance.now?performance:Date,rl=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function il(){return el||=(rl(al),nl.now()+tl)}function al(){el=0}function ol(){this._call=this._time=this._next=null}ol.prototype=sl.prototype={constructor:ol,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?il():+n)+(t==null?0:+t),!this._next&&Qc!==this&&(Qc?Qc._next=this:Zc=this,Qc=this),this._call=e,this._time=n,fl()},stop:function(){this._call&&(this._call=null,this._time=1/0,fl())}};function sl(e,t,n){var r=new ol;return r.restart(e,t,n),r}function cl(){il(),++qc;for(var e=Zc,t;e;)(t=el-e._time)>=0&&e._call.call(void 0,t),e=e._next;--qc}function ll(){el=($c=nl.now())+tl,qc=Jc=0;try{cl()}finally{qc=0,dl(),el=0}}function ul(){var e=nl.now(),t=e-$c;t>Xc&&(tl-=t,$c=e)}function dl(){for(var e,t=Zc,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Zc=n);Qc=e,fl(r)}function fl(e){qc||(Jc&&=clearTimeout(Jc),e-el>24?(e<1/0&&(Jc=setTimeout(ll,e-nl.now()-tl)),Yc&&=clearInterval(Yc)):(Yc||=($c=nl.now(),setInterval(ul,Xc)),qc=1,rl(ll)))}function pl(e,t,n){var r=new ol;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var ml=Hc(`start`,`end`,`cancel`,`interrupt`),hl=[];function gl(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;vl(e,n,{name:t,index:r,group:i,on:ml,tween:hl,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function _l(e,t){var n=X(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Y(e,t){var n=X(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function X(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function vl(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=sl(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return pl(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(pl(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function yl(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function bl(e){return this.each(function(){yl(this,e)})}function xl(e,t){var n,r;return function(){var i=Y(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Sl(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Y(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Cl(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=X(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?xl:Sl)(n,e,t))}function wl(e,t,n){var r=e._id;return e.each(function(){var e=Y(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return X(e,r).value[t]}}function Tl(e,t){var n;return(typeof t==`number`?J:t instanceof ge?yo:(n=ge(t))?(t=n,yo):ko)(e,t)}function El(e){return function(){this.removeAttribute(e)}}function Dl(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ol(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function kl(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Al(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function jl(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Ml(e,t){var n=Pe(e),r=n===`transform`?Bo:Tl;return this.attrTween(e,typeof t==`function`?(n.local?jl:Al)(n,r,wl(this,`attr.`+e,t)):t==null?(n.local?Dl:El)(n):(n.local?kl:Ol)(n,r,t))}function Nl(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Pl(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Fl(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Pl(e,i)),n}return i._value=t,i}function Il(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Nl(e,i)),n}return i._value=t,i}function Ll(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=Pe(e);return this.tween(n,(r.local?Fl:Il)(r,t))}function Rl(e,t){return function(){_l(this,e).delay=+t.apply(this,arguments)}}function zl(e,t){return t=+t,function(){_l(this,e).delay=t}}function Bl(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Rl:zl)(t,e)):X(this.node(),t).delay}function Vl(e,t){return function(){Y(this,e).duration=+t.apply(this,arguments)}}function Hl(e,t){return t=+t,function(){Y(this,e).duration=t}}function Ul(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Vl:Hl)(t,e)):X(this.node(),t).duration}function Wl(e,t){if(typeof t!=`function`)throw Error();return function(){Y(this,e).ease=t}}function Gl(e){var t=this._id;return arguments.length?this.each(Wl(t,e)):X(this.node(),t).ease}function Kl(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Y(this,e).ease=n}}function ql(e){if(typeof e!=`function`)throw Error();return this.each(Kl(this._id,e))}function Jl(e){typeof e!=`function`&&(e=Ke(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Z(r,this._parents,this._name,this._id)}function Yl(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Z(o,this._parents,this._name,this._id)}function Xl(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function Zl(e,t,n){var r,i,a=Xl(t)?_l:Y;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Ql(e,t){var n=this._id;return arguments.length<2?X(this.node(),n).on.on(e):this.each(Zl(n,e,t))}function $l(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function eu(){return this.on(`end.remove`,$l(this._id))}function tu(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=ze(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,gl(l[f],t,n,f,l,X(u,n)));return new Z(a,this._parents,t,n)}function nu(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Ue(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=X(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&gl(p,t,n,h,f,m);a.push(f),o.push(u)}return new Z(a,o,t,n)}var ru=kn.prototype.constructor;function iu(){return new ru(this._groups,this._parents)}function au(e,t){var n,r,i;return function(){var a=It(this,e),o=(this.style.removeProperty(e),It(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function ou(e){return function(){this.style.removeProperty(e)}}function su(e,t,n){var r,i=n+``,a;return function(){var o=It(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function cu(e,t,n){var r,i,a;return function(){var o=It(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),It(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function lu(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Y(this,e),l=c.on,u=c.value[a]==null?s||=ou(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function uu(e,t,n){var r=(e+=``)==`transform`?zo:Tl;return t==null?this.styleTween(e,au(e,r)).on(`end.style.`+e,ou(e)):typeof t==`function`?this.styleTween(e,cu(e,r,wl(this,`style.`+e,t))).each(lu(this._id,e)):this.styleTween(e,su(e,r,t),n).on(`end.style.`+e,null)}function du(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function fu(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&du(e,a,n)),r}return a._value=t,a}function pu(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,fu(e,t,n??``))}function mu(e){return function(){this.textContent=e}}function hu(e){return function(){var t=e(this);this.textContent=t??``}}function gu(e){return this.tween(`text`,typeof e==`function`?hu(wl(this,`text`,e)):mu(e==null?``:e+``))}function _u(e){return function(t){this.textContent=e.call(this,t)}}function vu(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&_u(r)),t}return r._value=e,r}function yu(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,vu(e))}function bu(){for(var e=this._name,t=this._id,n=Cu(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=X(c,t);gl(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Z(r,this._parents,e,n)}function xu(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Y(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var Su=0;function Z(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Cu(){return++Su}var Q=kn.prototype;Z.prototype={constructor:Z,select:tu,selectAll:nu,selectChild:Q.selectChild,selectChildren:Q.selectChildren,filter:Jl,merge:Yl,selection:iu,transition:bu,call:Q.call,nodes:Q.nodes,node:Q.node,size:Q.size,empty:Q.empty,each:Q.each,on:Ql,attr:Ml,attrTween:Ll,style:uu,styleTween:pu,text:gu,textTween:yu,remove:eu,tween:Cl,delay:Bl,duration:Ul,ease:Gl,easeVarying:ql,end:xu,[Symbol.iterator]:Q[Symbol.iterator]};function wu(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Tu={time:null,delay:0,duration:250,ease:wu};function Eu(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Du(e){var t,n;e instanceof Z?(t=e._id,e=e._name):(t=Cu(),(n=Tu).time=il(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&gl(c,e,t,l,o,n||Eu(c,t));return new Z(r,this._parents,e,t)}kn.prototype.interrupt=bl,kn.prototype.transition=Du;var Ou=o(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.labella=r():n.labella=r()})(e,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p=``,t(0)}([function(e,t,n){"use strict";e.exports={Node:n(1),Force:n(2),Distributor:n(3),Renderer:n(10)}},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();e.exports=function(){function e(t,r,i){n(this,e),this.idealPos=t,this.currentPos=t,this.width=r,this.data=i,this.layerIndex=0}return r(e,[{key:`distanceFrom`,value:function(e){var t=this.width/2,n=e.width/2;return Math.max(this.currentPos-t,e.currentPos-n)-Math.min(this.currentPos+t,e.currentPos+n)}},{key:`moveToIdealPosition`,value:function(){return this.currentPos=this.idealPos,this}},{key:`displacement`,value:function(){return this.idealPos-this.currentPos}},{key:`overlapWithNode`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this.distanceFrom(e)-t<0}},{key:`overlapWithPoint`,value:function(e){var t=this.width/2;return e>=this.currentPos-t&&e<=this.currentPos+t}},{key:`positionBefore`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.currentLeft()-this.width/2-t}},{key:`positionAfter`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.currentRight()+this.width/2+t}},{key:`currentRight`,value:function(){return this.currentPos+this.width/2}},{key:`currentLeft`,value:function(){return this.currentPos-this.width/2}},{key:`idealRight`,value:function(){return this.idealPos+this.width/2}},{key:`idealLeft`,value:function(){return this.idealPos-this.width/2}},{key:`createStub`,value:function(t){var n=new e(this.idealPos,t,this.data);return n.currentPos=this.currentPos,n.child=this,this.parent=n,n}},{key:`removeStub`,value:function(){return this.parent&&=(this.parent.child=null,null),this}},{key:`isStub`,value:function(){return!!this.child}},{key:`getPathToRoot`,value:function(){for(var e=[],t=this;t;)e.push(t),t=t.parent;return e}},{key:`getPathFromRoot`,value:function(){return this.getPathToRoot().reverse()}},{key:`getPathToRootLength`,value:function(){for(var e=0,t=this;t;){var n=t.parent?t.parent.currentPos:t.idealPos;e+=Math.abs(t.currentPos-n),t=t.parent}return e}},{key:`getRoot`,value:function(){for(var e=this,t=this;t;)e=t,t=t.parent;return e}},{key:`getLayerIndex`,value:function(){return this.layerIndex}},{key:`clone`,value:function(){var t=new e(this.idealPos,this.width,this.data);return t.currentPos=this.currentPos,t.layerIndex=this.layerIndex,t}}]),e}()},function(e,t,n){"use strict";var r=n(3),i=n(4),a=n(8),o={nodeSpacing:3,minPos:0,maxPos:null,algorithm:`overlap`,removeOverlap:!0,density:.85,stubWidth:1},s=function(e){var t={},n=i.extend({},o),s=new r,c=[],l=null;return t.nodes=function(e){return arguments.length?(c=e,l=[e.concat()],t):c},t.getLayers=function(){return l},t.options=function(e){if(!arguments.length)return n;n=i.extend(n,e);var a=i.pick(n,Object.keys(r.DEFAULT_OPTIONS));return a.layerWidth=i.isDefined(n.minPos)&&i.isDefined(n.maxPos)?n.maxPos-n.minPos:null,s.options(a),t},t.options(e),t.compute=function(){var e=i.pick(n,Object.keys(a.DEFAULT_OPTIONS));return c.forEach(function(e){e.removeStub()}),l=s.distribute(c),l.map(function(t,r){t.forEach(function(e){e.layerIndex=r}),n.removeOverlap&&a(t,e)}),t},t.start=function(){console.log(`[warning] force.start() is deprecated. Please use force.compute() instead.`)},t};s.DEFAULT_OPTIONS=o,e.exports=s},function(e,t,n){"use strict";var r=n(4),i=n(6),a={algorithm:`overlap`,layerWidth:1e3,density:.75,nodeSpacing:3,stubWidth:1},o=function(e){var t={};e=r.extend({},a,e),t.options=function(n){return arguments.length?(e=r.extend(e,n),t):e},t.computeRequiredWidth=function(t){return r.sum(t,function(t){return t.width+e.nodeSpacing})-e.nodeSpacing},t.maxWidthPerLayer=function(){return e.density*e.layerWidth},t.needToSplit=function(e){return t.estimateRequiredLayers(e)>1},t.estimateRequiredLayers=function(n){return e.layerWidth?Math.ceil(t.computeRequiredWidth(n)/t.maxWidthPerLayer()):1};var n={simple:function(n){for(var r=t.estimateRequiredLayers(n),i=[],a=0;a<r;a++)i.push([]);return n.forEach(function(t,n){var a=n%r;i[a].push(t);for(var o=t,s=a-1;s>=0;s--)o=o.createStub(e.stubWidth),i[s].push(o)}),i},roundRobin:function(e){return[]},overlap:function(n){for(var r=[],i=t.maxWidthPerLayer(),a=n.concat(),o=t.computeRequiredWidth(a);o>i;){t.countIdealOverlaps(a);var s=a.concat(),c=o;for(a=[];s.length>2&&c>i;){s.sort(function(e,t){return t.overlapCount-e.overlapCount});var l=s.shift();c-=l.width,c+=e.stubWidth,l.overlaps.forEach(function(e){e.overlapCount--}),a.push(l)}r.push(s),o=t.computeRequiredWidth(a)}a.length>0&&r.push(a);for(var u=r.length-1;u>=1;u--)for(var d=r[u],f=0;f<d.length;f++){var p=d[f];if(!p.isStub())for(var m=p,h=u-1;h>=0;h--)m=m.createStub(e.stubWidth),r[h].push(m)}return r}};return t.countIdealOverlaps=function(t){var n=new i(e.layerWidth/2);return t.forEach(function(e){n.add([e.idealLeft(),e.idealRight(),e])}),t.forEach(function(e){var t=n.search(e.idealLeft(),e.idealRight());e.overlaps=t.map(function(e){return e.data[2]}),e.overlapCount=t.length}),t},t.distribute=function(i){if(!i||i.length===0)return[];if(e.algorithm==`none`||!r.isDefined(e.algorithm)||!t.needToSplit(i))return[i];var a=i.concat().sort(function(e,t){return e.idealPos-t.idealPos});if(typeof e.algorithm==`function`)return e.algorithm(a,e);if(n.hasOwnProperty(e.algorithm))return n[e.algorithm](a);throw`Unknown algorithm: `+e.algorithm},t};o.DEFAULT_OPTIONS=a,e.exports=o},function(e,t,n){"use strict";var r={isDefined:function(e){return e!=null},last:function(e){return e.length>0?e[e.length-1]:null},pick:function(e,t){return t.reduce(function(t,n){return t[n]=e[n],t},{})},sum:function(e,t){return e.map(t).reduce(function(e,t){return e+t},0)}};r.extend=n(5),e.exports=r},function(e,t){"use strict";var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=function(e){return typeof Array.isArray==`function`?Array.isArray(e):i.call(e)===`[object Array]`},o=function(e){if(!e||i.call(e)!==`[object Object]`)return!1;var t=r.call(e,`constructor`),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!n)return!1;for(var a in e);return a===void 0||r.call(e,a)};e.exports=function e(){var t,r,i,s,c,l,u=arguments[0],d=1,f=arguments.length,p=!1;for(typeof u==`boolean`?(p=u,u=arguments[1]||{},d=2):((u===void 0?`undefined`:n(u))!==`object`&&typeof u!=`function`||u==null)&&(u={});d<f;++d)if(t=arguments[d],t!=null)for(r in t)i=u[r],s=t[r],u!==s&&(p&&s&&(o(s)||(c=a(s)))?(c?(c=!1,l=i&&a(i)?i:[]):l=i&&o(i)?i:{},u[r]=e(p,l,s)):s!==void 0&&(u[r]=s));return u}},function(e,t,n){"use strict";function r(e,t){if(t||={},this.startKey=t.startKey||0,this.endKey=t.endKey||1,this.intervalHash={},this.pointTree=new l({compare:function(e,t){if(e==null)return-1;if(t==null)return 1;var n=e[0]-t[0];return n>0?1:n==0?0:-1}}),this._autoIncrement=0,!e||typeof e!=`number`)throw Error(`you must specify center index as the 2nd argument.`);this.root=new s(e,this)}function i(e,t){return t.end<e.idx?(e.left||=new s(t.start+t.end>>1,this),i.call(this,e.left,t)):e.idx<t.start?(e.right||=new s(t.start+t.end>>1,this),i.call(this,e.right,t)):e.insert(t)}function a(e,t,n){if(e)return t<e.idx?(e.starts.every(function(e){var r=e.start<=t;return r&&n.push(e.result()),r}),a.call(this,e.left,t,n)):t>e.idx?(e.ends.every(function(e){var r=e.end>=t;return r&&n.push(e.result()),r}),a.call(this,e.right,t,n)):void e.starts.map(function(e){n.push(e.result())})}function o(e,t,n){if(t-e<=0)throw Error(`end must be greater than start. start: `+e+`, end: `+t);var r={},i=[];a.call(this,this.root,e+t>>1,i,!0),i.forEach(function(e){r[e.id]=!0});for(var o=this.pointTree.bsearch([e,null]),s=this.pointTree;o>=0&&s[o][0]==e;)o--;var c=this.pointTree.bsearch([t,null]);if(c>=0){for(var l=s.length-1;c<=l&&s[c][0]<=t;)c++;s.slice(o+1,c).forEach(function(e){var t=e[1];r[t]=!0},this),Object.keys(r).forEach(function(r){var i=this.intervalHash[r];n.push(i.result(e,t))},this)}}function s(e){this.idx=e,this.starts=new l({compare:function(e,t){if(e==null)return-1;if(t==null)return 1;var n=e.start-t.start;return n>0?1:n==0?0:-1}}),this.ends=new l({compare:function(e,t){if(e==null)return-1;if(t==null)return 1;var n=e.end-t.end;return n<0?1:n==0?0:-1}})}function c(e,t,n,r){if(this.id=t,this.start=e[n],this.end=e[r],this.data=e,typeof this.start!=`number`||typeof this.end!=`number`)throw Error(`start, end must be number. start: `+this.start+`, end: `+this.end);if(this.start>=this.end)throw Error(`start must be smaller than end. start: `+this.start+`, end: `+this.end)}var l=n(7);r.prototype.add=function(e,t){if(this.intervalHash[t])throw Error(`id `+t+` is already registered.`);if(t==null){for(;this.intervalHash[this._autoIncrement];)this._autoIncrement++;t=this._autoIncrement}var n=new c(e,t,this.startKey,this.endKey);this.pointTree.insert([n.start,t]),this.pointTree.insert([n.end,t]),this.intervalHash[t]=n,this._autoIncrement++,i.call(this,this.root,n)},r.prototype.search=function(e,t){var n=[];if(typeof e!=`number`)throw Error(e+`: invalid input`);if(t==null)a.call(this,this.root,e,n);else{if(typeof t!=`number`)throw Error(e+`,`+t+`: invalid input`);o.call(this,e,t,n)}return n},r.prototype.remove=function(e){},s.prototype.insert=function(e){this.starts.insert(e),this.ends.insert(e)},c.prototype.result=function(e,t){var n={id:this.id,data:this.data};if(typeof e==`number`&&typeof t==`number`){var r=Math.max(this.start,e),i=Math.min(this.end,t)-r;n.rate1=i/(t-e),n.rate2=i/(this.end-this.start)}return n},e.exports=r},function(e,t){"use strict";var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r=function e(){var t=null,r={},i=arguments;[`0`,`1`].forEach(function(e){var a=i[e];Array.isArray(a)?t=a:a&&(a===void 0?`undefined`:n(a))==`object`&&(r=a)}),typeof r.filter==`function`&&(this._filter=r.filter),typeof r.compare==`function`?this._compare=r.compare:typeof r.compare==`string`&&e.compares[r.compare]&&(this._compare=e.compares[r.compare]),this._unique=!!r.unique,r.resume&&t?t.forEach(function(e,t){this.push(e)},this):t&&this.insert.apply(this,t)};r.create=function(e,t){return new r(e,t)},r.prototype=[],r.prototype.constructor=Array.prototype.constructor,r.prototype.insertOne=function(e){var t=this.bsearch(e);return(!this._unique||this.key(e,t)==null)&&!!this._filter(e,t)&&(this.splice(t+1,0,e),t+1)},r.prototype.insert=function(){return Array.prototype.map.call(arguments,function(e){return this.insertOne(e)},this)},r.prototype.remove=function(e){return this.splice(e,1),this},r.prototype.bsearch=function(e){if(!this.length)return-1;for(var t,n=0,r=this.length;r-n>1;){t=Math.floor((n+r)/2);var i=this[t],a=this._compare(e,i);if(a==0)return t;a>0?n=t:r=t}return n==0&&this._compare(this[0],e)>0?-1:n},r.prototype.key=function(e,t){t??=this.bsearch(e);var n=t;if(n==-1||this._compare(this[n],e)<0)return n+1<this.length&&this._compare(this[n+1],e)==0?n+1:null;for(;n>=1&&this._compare(this[n-1],e)==0;)n--;return n},r.prototype.keys=function(e,t){var n=[];t??=this.bsearch(e);for(var r=t;r>=0&&this._compare(this[r],e)==0;)n.push(r),r--;var i=this.length;for(r=t+1;r<i&&this._compare(this[r],e)==0;)n.push(r),r++;return n.length?n:null},r.prototype.unique=function(e){if(e)return this.filter(function(e,t){return t==0||this._compare(this[t-1],e)!=0},this);var t=0;return this.map(function(e,n){return n==0||this._compare(this[n-1],e)!=0?null:n-t++},this).forEach(function(e){e!=null&&this.remove(e)},this),this},r.prototype.toArray=function(){return this.slice()},r.prototype._filter=function(e,t){return!0},r.compares={number:function(e,t){var n=e-t;return n>0?1:n==0?0:-1},string:function(e,t){return e>t?1:e==t?0:-1}},r.prototype._compare=r.compares.string,e.exports=r},function(e,t,n){"use strict";function r(e){var t=new o.Variable(e.targetPos);return t.node=e,t}function i(e,t){if(e.length>0){t=a.extend(s,t),e.forEach(function(e,t){e.targetPos=e.parent?e.parent.currentPos:e.idealPos,e.index=t});for(var n=e.concat().sort(function(e,t){var n=e.targetPos-t.targetPos;if(n!==0)return n;var r=e.isStub()-t.isStub();return r===0?e.index-t.index:r}).map(r),i=[],c=1;c<n.length;c++){var l=n[c-1],u=n[c],d=void 0;d=l.node.isStub()&&u.node.isStub()?(l.node.width+u.node.width)/2+t.lineSpacing:(l.node.width+u.node.width)/2+t.nodeSpacing,i.push(new o.Constraint(l,u,d))}if(a.isDefined(t.minPos)){var f=new o.Variable(t.minPos,1e10),p=n[0];i.push(new o.Constraint(f,p,p.node.width/2)),n.unshift(f)}if(a.isDefined(t.maxPos)){var m=new o.Variable(t.maxPos,1e10),h=a.last(n);i.push(new o.Constraint(h,m,h.node.width/2)),n.push(m)}new o.Solver(n,i).solve(),n.filter(function(e){return e.node}).map(function(e){return e.node.currentPos=Math.round(e.position()),e})}return e}var a=n(4),o=n(9),s={lineSpacing:2,nodeSpacing:3,minPos:0,maxPos:null};i.DEFAULT_OPTIONS=s,e.exports=i},function(e,t){"use strict";var n={},r=function(){function e(e){this.scale=e,this.AB=0,this.AD=0,this.A2=0}return e.prototype.addVariable=function(e){var t=this.scale/e.scale,n=e.offset/e.scale,r=e.weight;this.AB+=r*t*n,this.AD+=r*t*e.desiredPosition,this.A2+=r*t*t},e.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},e}();n.PositionStats=r,n.Constraint=function(){function e(e,t,n,r){r===void 0&&(r=!1),this.left=e,this.right=t,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=e,this.right=t,this.gap=n,this.equality=r}return e.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},e}(),n.Variable=function(){function e(e,t,n){t===void 0&&(t=1),n===void 0&&(n=1),this.desiredPosition=e,this.weight=t,this.scale=n,this.offset=0}return e.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},e.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},e.prototype.visitNeighbours=function(e,t){var n=function(n,r){return n.active&&e!==r&&t(n,r)};this.cOut.forEach(function(e){return n(e,e.right)}),this.cIn.forEach(function(e){return n(e,e.left)})},e}();var i=function(){function e(e){this.vars=[],e.offset=0,this.ps=new r(e.scale),this.addVariable(e)}return e.prototype.addVariable=function(e){e.block=this,this.vars.push(e),this.ps.addVariable(e),this.posn=this.ps.getPosn()},e.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var e=0,t=this.vars.length;e<t;++e)this.ps.addVariable(this.vars[e]);this.posn=this.ps.getPosn()},e.prototype.compute_lm=function(e,t,n){var r=this,i=e.dfdv();return e.visitNeighbours(t,function(t,a){var o=r.compute_lm(a,e,n);a===t.right?(i+=o*t.left.scale,t.lm=o):(i+=o*t.right.scale,t.lm=-o),n(t)}),i/e.scale},e.prototype.populateSplitBlock=function(e,t){var n=this;e.visitNeighbours(t,function(t,r){r.offset=e.offset+(r===t.right?t.gap:-t.gap),n.addVariable(r),n.populateSplitBlock(r,e)})},e.prototype.traverse=function(e,t,n,r){var i=this;n===void 0&&(n=this.vars[0]),r===void 0&&(r=null),n.visitNeighbours(r,function(r,a){t.push(e(r)),i.traverse(e,t,a,n)})},e.prototype.findMinLM=function(){var e=null;return this.compute_lm(this.vars[0],null,function(t){!t.equality&&(e===null||t.lm<e.lm)&&(e=t)}),e},e.prototype.findMinLMBetween=function(e,t){this.compute_lm(e,null,function(){});var n=null;return this.findPath(e,null,t,function(e,t){!e.equality&&e.right===t&&(n===null||e.lm<n.lm)&&(n=e)}),n},e.prototype.findPath=function(e,t,n,r){var i=this,a=!1;return e.visitNeighbours(t,function(t,o){a||o!==n&&!i.findPath(o,e,n,r)||(a=!0,r(t,o))}),a},e.prototype.isActiveDirectedPathBetween=function(e,t){if(e===t)return!0;for(var n=e.cOut.length;n--;){var r=e.cOut[n];if(r.active&&this.isActiveDirectedPathBetween(r.right,t))return!0}return!1},e.split=function(t){return t.active=!1,[e.createSplitBlock(t.left),e.createSplitBlock(t.right)]},e.createSplitBlock=function(t){var n=new e(t);return n.populateSplitBlock(t,null),n},e.prototype.splitBetween=function(t,n){var r=this.findMinLMBetween(t,n);if(r!==null){var i=e.split(r);return{constraint:r,lb:i[0],rb:i[1]}}return null},e.prototype.mergeAcross=function(e,t,n){t.active=!0;for(var r=0,i=e.vars.length;r<i;++r){var a=e.vars[r];a.offset+=n,this.addVariable(a)}this.posn=this.ps.getPosn()},e.prototype.cost=function(){for(var e=0,t=this.vars.length;t--;){var n=this.vars[t],r=n.position()-n.desiredPosition;e+=r*r*n.weight}return e},e}();n.Block=i;var a=function(){function e(e){this.vs=e;var t=e.length;for(this.list=Array(t);t--;){var n=new i(e[t]);this.list[t]=n,n.blockInd=t}}return e.prototype.cost=function(){for(var e=0,t=this.list.length;t--;)e+=this.list[t].cost();return e},e.prototype.insert=function(e){e.blockInd=this.list.length,this.list.push(e)},e.prototype.remove=function(e){var t=this.list.length-1,n=this.list[t];this.list.length=t,e!==n&&(this.list[e.blockInd]=n,n.blockInd=e.blockInd)},e.prototype.merge=function(e){var t=e.left.block,n=e.right.block,r=e.right.offset-e.left.offset-e.gap;t.vars.length<n.vars.length?(n.mergeAcross(t,e,r),this.remove(t)):(t.mergeAcross(n,e,-r),this.remove(n))},e.prototype.forEach=function(e){this.list.forEach(e)},e.prototype.updateBlockPositions=function(){this.list.forEach(function(e){return e.updateWeightedPosition()})},e.prototype.split=function(e){var t=this;this.updateBlockPositions(),this.list.forEach(function(n){var r=n.findMinLM();r!==null&&r.lm<o.LAGRANGIAN_TOLERANCE&&(n=r.left.block,i.split(r).forEach(function(e){return t.insert(e)}),t.remove(n),e.push(r))})},e}();n.Blocks=a;var o=function(){function e(e,t){this.vs=e,this.cs=t,this.vs=e,e.forEach(function(e){e.cIn=[],e.cOut=[]}),this.cs=t,t.forEach(function(e){e.left.cOut.push(e),e.right.cIn.push(e)}),this.inactive=t.map(function(e){return e.active=!1,e}),this.bs=null}return e.prototype.cost=function(){return this.bs.cost()},e.prototype.setStartingPositions=function(e){this.inactive=this.cs.map(function(e){return e.active=!1,e}),this.bs=new a(this.vs),this.bs.forEach(function(t,n){return t.posn=e[n]})},e.prototype.setDesiredPositions=function(e){this.vs.forEach(function(t,n){return t.desiredPosition=e[n]})},e.prototype.mostViolated=function(){for(var t=Number.MAX_VALUE,n=null,r=this.inactive,i=r.length,a=i,o=0;o<i;++o){var s=r[o];if(!s.unsatisfiable){var c=s.slack();if((s.equality||c<t)&&(t=c,n=s,a=o,s.equality))break}}return a!==i&&(t<e.ZERO_UPPERBOUND&&!n.active||n.equality)&&(r[a]=r[i-1],r.length=i-1),n},e.prototype.satisfy=function(){this.bs??=new a(this.vs),this.bs.split(this.inactive);for(var t=null;(t=this.mostViolated())&&(t.equality||t.slack()<e.ZERO_UPPERBOUND&&!t.active);){var n=t.left.block;if(n!==t.right.block)this.bs.merge(t);else{if(n.isActiveDirectedPathBetween(t.right,t.left)){t.unsatisfiable=!0;continue}var r=n.splitBetween(t.left,t.right);if(r===null){t.unsatisfiable=!0;continue}this.bs.insert(r.lb),this.bs.insert(r.rb),this.bs.remove(n),this.inactive.push(r.constraint),t.slack()>=0?this.inactive.push(t):this.bs.merge(t)}}},e.prototype.solve=function(){this.satisfy();for(var e=Number.MAX_VALUE,t=this.bs.cost();Math.abs(e-t)>1e-4;)this.satisfy(),e=t,t=this.bs.cost();return t},e.LAGRANGIAN_TOLERANCE=-1e-4,e.ZERO_UPPERBOUND=-1e-10,e}();n.Solver=o,e.exports=n},function(e,t,n){"use strict";function r(e){this.options=l.extend({layerGap:60,nodeHeight:10,direction:`down`},e)}function i(e){return`L `+e.join(` `)}function a(e){return`M `+e.join(` `)}function o(e,t,n){return`C `+e.join(` `)+` `+t.join(` `)+` `+n.join(` `)}function s(e,t){var n=(e[1]+t[1])/2;return o([e[0],n],[t[0],n],t)}function c(e,t){var n=(e[0]+t[0])/2;return o([n,e[1]],[n,t[1]],t)}var l=n(4);r.lineTo=i,r.moveTo=a,r.curveTo=o,r.vCurveBetween=s,r.hCurveBetween=c,r.prototype.getWaypoints=function(e){var t=this.options,n=t.direction,r=e.getPathFromRoot(),i=t.nodeHeight+t.layerGap;return n===`left`?[[[0,r[0].idealPos]]].concat(r.map(function(e,n){var r=i*(n+1)*-1;return[[r+t.nodeHeight,e.currentPos],[r,e.currentPos]]})):n===`right`?[[[0,r[0].idealPos]]].concat(r.map(function(e,n){var r=i*(n+1);return[[r-t.nodeHeight,e.currentPos],[r,e.currentPos]]})):n===`up`?[[[r[0].idealPos,0]]].concat(r.map(function(e,n){var r=i*(n+1)*-1;return[[e.currentPos,r+t.nodeHeight],[e.currentPos,r]]})):[[[r[0].idealPos,0]]].concat(r.map(function(e,n){var r=i*(n+1);return[[e.currentPos,r-t.nodeHeight],[e.currentPos,r]]}))},r.prototype.layout=function(e){var t=this.options,n=t.layerGap+t.nodeHeight;switch(t.direction){case`left`:e.forEach(function(e){e.x=-(e.getLayerIndex()*n+t.layerGap)-t.nodeHeight,e.y=e.currentPos,e.dx=t.nodeHeight,e.dy=e.width});break;case`right`:e.forEach(function(e){e.x=e.getLayerIndex()*n+t.layerGap,e.y=e.currentPos,e.dx=t.nodeHeight,e.dy=e.width});break;case`up`:e.forEach(function(e){var r=e.getLayerIndex()*n+t.layerGap;e.x=e.currentPos,e.y=-r-t.nodeHeight,e.dx=e.width,e.dy=t.nodeHeight});break;default:case`down`:e.forEach(function(e){var r=e.getLayerIndex()*n+t.layerGap;e.x=e.currentPos,e.y=r,e.dx=e.width,e.dy=t.nodeHeight})}return e},r.prototype.generatePath=function(e){var t=this.options.direction,n=this.getWaypoints(e,t),r=[a(n[0][0])];return t===`left`||t===`right`?n.reduce(function(e,t,a){return r.push(c(e[e.length-1],t[0])),a<n.length-1&&r.push(i(t[1])),t}):n.reduce(function(e,t,a){return r.push(s(e[e.length-1],t[0])),a<n.length-1&&r.push(i(t[1])),t}),r.join(` `)},e.exports=r}])})})),ku=o(((e,t)=>{var n=NaN,r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,c=typeof global==`object`&&global&&global.Object===Object&&global,l=typeof self==`object`&&self&&self.Object===Object&&self,u=c||l||Function(`return this`)(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return u.Date.now()};function h(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,h=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=y(t)||0,g(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?f(y(n.maxWait)||0,t):a,h=`trailing`in n?!!n.trailing:h);function _(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function v(e){return l=e,s=setTimeout(S,t),u?_(e):o}function b(e){var n=e-c,r=e-l,i=t-n;return d?p(i,a-r):i}function x(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function S(){var e=m();if(x(e))return C(e);s=setTimeout(S,b(e))}function C(e){return s=void 0,h&&r?_(e):(r=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function T(){return s===void 0?o:C(m())}function E(){var e=m(),n=x(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return v(c);if(d)return s=setTimeout(S,t),_(c)}return s===void 0&&(s=setTimeout(S,t)),o}return E.cancel=w,E.flush=T,E}function g(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _(e){return!!e&&typeof e==`object`}function v(e){return typeof e==`symbol`||_(e)&&d.call(e)==`[object Symbol]`}function y(e){if(typeof e==`number`)return e;if(v(e))return n;if(g(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=g(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(r,``);var c=a.test(e);return c||o.test(e)?s(e.slice(2),c?2:8):i.test(e)?n:+e}t.exports=h})),Au=c(Ou()),ju=c(ku());function Mu(e){return{standard:e.toString(),light:e.brighter(1.15).toString(),bright:ke(e.h,e.s*1.3,e.l*.9).toString()}}function Nu(e,t){let n=[],r=360/t+1,i=e.h;for(let a=0;a<t;++a)e.h=(i+a*r)%360,n.push(Mu(e));return n}function Pu(e,t){let n=Nu(e,t),r=Mu(ke(`#888888`));return function(e){return e.old?r:n[e.cat%t]}}var Fu=function(e,t){let n=t.event,r=1;n.forEach(e=>e.id=r++),e.container.innerHTML=``;let i=new Date(t.minDate),a=new Date(t.maxDate),o=Pu(e.getRootColor(),12),s=e=>o(e).standard,c={alternatingTickLength:10,initialHeight:50,initialWidth:400,direction:`horizontal`,domain:[i,a],dotRadius:5,linkColor:s,dotColor:s,labelBgColor:s,layerGap:20,textStyle:{fill:`#fff`},margin:{left:12,right:15,top:5,bottom:35},labelPadding:{left:4,right:4,top:3,bottom:2},textYOffset:`0.85em`,timeFn:e=>new Date(e.date),textFn:e=>e.text,formatAxis:t=>{let n=a.getFullYear()-i.getFullYear();return t.tickFormat(e.i18n().timeScaleFormatter).tickSizeInner(8).tickSizeOuter(10).ticks(n<=4?2*n:void 0)}},l={innerWidth:0,innerHeight:0,width:c.initialWidth,height:c.initialHeight},u=new Au.default.Force,d=as(),f=R(e.container);f.style(`line-height`,0);let p=f.append(`div`).style(`display`,`inline-block`).style(`position`,`relative`).style(`line-height`,0),m=p.append(`svg`).style(`position`,`absolute`).style(`top`,0).style(`left`,0),h=m.append(`g`);function g(e,t){return e.append(`g`).attr(`name`,t)}let _=g(h,`dummy`),v=g(h,`main`),y=g(v,`main/axis`),b=g(v,`main/link`),x=g(v,`main/label`),S=g(v,`main/dot`);y.classed(`axis`,!0);function C(){let{width:e,height:t}=l,n=f.node(),r=n?.clientWidth??0,i=n?.clientHeight??0,a=!1;e!==r&&(l.width=r,a=!0),t>i&&(l.height=i,a=!0),a&&(T(),T.flush())}function w(){let e=u.nodes(),t;switch(c.direction){case`horizontal`:t=Gr(e,e=>Math.abs(e.y))??0,l.height=t+c.margin.top+c.margin.bottom;break;case`vertical`:t=Gr(e,e=>Math.abs(e.x+e.dx))??0,l.width=t+c.margin.left+c.margin.right}}let T=(0,ju.default)(function(){let{width:e,height:t}=l,{margin:n}=c,{top:r,right:i,bottom:a,left:o}=n;l.innerWidth=e-o-i,l.innerHeight=t-r-a,p.style(`width`,`${e}px`).style(`height`,`${t}px`),m.attr(`width`,e).attr(`height`,t),h.attr(`transform`,`translate(${o}, ${r})`),k()},1);function E(e,t){let n=typeof t==`function`?t:()=>t;e.attr(`dy`,c.textYOffset).attr(`x`,c.labelPadding.left).attr(`y`,c.labelPadding.top).style(`fill`,c.textStyle.fill).text(e=>c.textFn(n(e)))}function D(){let e;switch(c.direction){case`vertical`:e=ys(d),v.attr(`transform`,`translate(0,0)`);break;case`horizontal`:e=vs(d),v.attr(`transform`,`translate(0,`+l.innerHeight+`)`)}c.formatAxis?.(e),y.call(e).attr(`font-family`,null).attr(`font-size`,null)}function O(e){let t=c.direction===`vertical`?`cy`:`cx`,n=e=>d(c.timeFn(e)),r=S.selectAll(`circle.dot`).data(e);r.enter().append(`circle`).classed(`dot`,!0).style(`fill`,c.dotColor).attr(`r`,c.dotRadius).attr(t,n),r.transition().style(`fill`,c.dotColor).attr(`r`,c.dotRadius).attr(t,n),r.exit().remove()}function ee(e){let t;t=c.direction===`vertical`?Gr(e,e=>e.w):Gr(e,e=>e.h);let n=new Au.default.Renderer({nodeHeight:t??0,layerGap:c.layerGap,direction:c.direction===`horizontal`?`up`:`right`});n.layout(e);function r(e){if(isNaN(e.x)||isNaN(e.y))return null;switch(c.direction){case`vertical`:return`translate(`+e.x+`,`+(e.y-e.dy/2)+`)`;case`horizontal`:return`translate(`+(e.x-e.dx/2)+`,`+e.y+`)`}}let i=x.selectAll(`g.label-g`).data(e),a=i.enter().append(`g`).classed(`label-g`,!0).attr(`transform`,r);a.append(`rect`).classed(`label-bg`,!0).attr(`rx`,2).attr(`ry`,2).attr(`width`,e=>e.w).attr(`height`,e=>e.h).style(`fill`,e=>c.labelBgColor(e.data)),a.append(`text`).classed(`label-text`,!0).call(E,e=>e.data);let o=i.transition().attr(`transform`,r);o.select(`rect`).attr(`width`,e=>e.w).attr(`height`,e=>e.h).style(`fill`,e=>c.labelBgColor(e.data)),o.select(`text.label-text`).call(E,e=>e.data),i.exit().remove();let s=b.selectAll(`path.link`).data(e);s.enter().append(`path`).classed(`link`,!0).attr(`d`,e=>n.generatePath(e)).style(`stroke`,e=>c.linkColor(e.data)).style(`fill`,`none`),s.transition().attr(`d`,e=>n.generatePath(e)).style(`stroke`,e=>c.linkColor(e.data)),s.exit().remove()}let te=!0;function k(){if(!n||l.innerWidth<=0&&l.innerHeight<=0)return;let e=n||[];u=new Au.default.Force,d.domain(c.domain),d.range([0,c.direction===`vertical`?l.innerHeight:l.innerWidth]);let t=_.append(`text`).classed(`label-text`,!0),r=e.map(e=>{let n=t.call(E,e).node().getBBox(),r=n.width+c.labelPadding.left+c.labelPadding.right,i=n.height+c.labelPadding.top+c.labelPadding.bottom,a=new Au.default.Node(d(c.timeFn(e)),c.direction===`vertical`?i:r,e);return a.w=r,a.h=i,a});t.remove();let{left:i,right:a}=c.margin;u.options({maxPos:l.width-(i+a)}).nodes(r).compute(),D(),O(e),ee(u.nodes()),te&&(te=!1,A()),j()}function A(){m.insert(`title`,`:first-child`).text(t.title),x.selectAll(`g.label-g`).each(function(){let e=R(this),t=e.selectAll(`g.label-g > *`).remove(),n=e.append(`svg:a`).attr(`class`,e=>e.data.class).attr(`xlink:href`,e=>e.data.href).attr(`xlink:title`,e=>e.data.desc??null);n.append(`title`).text(e=>e.data.desc??null),t.each(function(){n.append(()=>this)})});let n=e.handlerValue(`publicationClick`),r=!!n;x.selectAll(`.label-g`).attr(`data-clickable`,()=>r||null).on(`click`,function(e,t){n&&(n(t.data.query),e.preventDefault())}).on(`mouseenter touchstart`,function(e,t){if(!e.target)return;let n=o(t.data);R(e.target).select(`rect`).style(`fill`,n.bright);let r=t.data.id;b.selectAll(`path.link`).filter(e=>e.data.id===r).attr(`data-highlighted`,!0);let i=t.data.query&&t.data.query.id;i&&Mn(`[data-publication-id='`+i+`']`).style(`background-color`,n.light)}).on(`mouseleave touchend`,function(e,t){if(!e.target)return;let n=o(t.data);R(e.target).select(`rect`).style(`fill`,n.standard),b.selectAll(`path.link`).attr(`data-highlighted`,!1);let r=t.data.query&&t.data.query.id;r&&Mn(`[data-publication-id='`+r+`']`).style(`background-color`,null)})}function j(){let e=y.selectAll(`g.tick`);l.width/e.size()<=32&&e.each(function(e,t){if(t%2!=0)return;let n=R(this),r=n.select(`text`),i=n.select(`line`);r.attr(`y`,Number(r.attr(`y`))+c.alternatingTickLength),i.attr(`y2`,Number(i.attr(`y2`))+c.alternatingTickLength)})}return{draw:function(){C(),w(),T(),T.flush()}}},Iu=function(e,t){if(t){let n=e.handlerValue(`load`);n&&n(t)}return D},Lu=function(e,t){let n=e=>e?new Date(e):null,r=e=>n(e)?.toLocaleDateString(),i=R(e.container).append(`table`).attr(`class`,`ui bizq very compact celled small unstackable striped table`),a=i.append(`tbody`);$.debug(`data`,t);for(let e of[`current`,`former`]){e==`former`&&a.append(`tr`).append(`td`).attr(`class`,`first`).attr(`colspan`,2).text(`Vormals`);let n=t.current;for(let e of n){$.debug(`group`,e);let t=e.name,n=e.entries;a.append(`tr`).append(`td`).attr(`class`,`first`).attr(`colspan`,2).text(t);for(let e of n){$.debug(`entry`,e);let t=a.append(`tr`),n=e.person,i=t.append(`td`).append(`span`).text(n.name).attr(`class`,`person`);for(let e in n.query)i.attr(e,n.query[e]);let o=t.append(`td`);for(let t of e.chunks){let e;!t.start&&t.end?e=`bis `+r(t.end):t.start&&!t.end?e=`seit `+r(t.start):t.start&&t.end&&(e=r(t.start)+` – `+r(t.end)),o.append(`span`).text(e)}}}}return e.markup(i),D},Ru;function zu(e){if(e){Ru=document.querySelectorAll(`button:not([disabled])`);for(let e=0;e<Ru.length;++e)Ru[e].disabled=!0}else if(Ru)for(let e=0;e<Ru.length;++e)Ru[e].disabled=!1;document.body.classList.toggle(`waiting`,e)}var Bu=function(e,t){return Ln(`click`,e.container,`*`,function(){zu(!0);let t=new XMLHttpRequest;t.open(`POST`,`/_api/shop/v1/products`),t.setRequestHeader(`Content-Type`,`application/json`);function n(e){$.log(`error`,`cannot list pubs`,e)}return t.onerror=function(e){zu(!1),n(e)},t.onload=function(){zu(!1),$.debug(t.status),t.status>=400&&n(t.responseText||t.statusText),$.debug(`ok`,t.responseText);let e=JSON.parse(t.responseText);$.debug(`data`,e)},t.send(JSON.stringify(e.options)),!1}),D},Vu=function(e,t){let n=R(e.container).selectAll(`.publication`).data(t.publications).enter().append(`div`).attr(`class`,`pub`).attr(`data-publication-id`,e=>e.id),r=n.append(`h2`);return r.append(`span`).attr(`class`,`icon`).text(e=>e.internal.icon),r.append(`span`).attr(`class`,`date`).text(e=>e.internal.formattedDate),r.append(`a`).attr(`href`,`#`).html(e=>e.internal.htmlTitle).on(`click`,function(e){e.target?.parentElement?.parentElement?.classList?.toggle(`expanded`),e.preventDefault()}),n.append(`div`).attr(`class`,`text`).html(e=>e.html),e.markup(n),D},Hu=function(e,t){let n=R(e.container),r=n.append(`ul`).attr(`class`,`search-results`),i=t.cursor;function a(e){let t={},n=e.subject,r=n.name[0].name,i=n.address&&n.address[0],a=i&&i.city,o={query:t,address:i,name:r,details:e.formattedDetails},s=n.tag;switch(s&&s.terminated&&(o.terminated=!0),e.targetType){case`Company`:o.type=`c`,t.address=a,t.name=r;let i=n.register&&n.register[0];i&&i.id&&(i.city&&(t.registerCity=i.city),t.registerId=i.id);break;case`Person`:o.type=`p`;let s=r.split(`,`);t.lastName=s[0],t.firstName=zn(s[1]),t.birthDate=n.birthDate,t.address=a,(!t.address||!t.birthDate)&&(t.id=e.targetId)}return o}let o=n.append(`div`).attr(`class`,`more`),s=o.append(`p`),c=o.append(`a`).attr(`href`,`#`).on(`click`,function(t){let n=E(e.options,{offset:c.attr(`data-offset`),position:c.attr(`data-position`)});Kn.requestData(n,function(e){f(e)},e.fail.bind(e)),t.preventDefault()}),l=i.items.length==0,u=e.handlerValue(`noResults`),d=e.handlerValue(`oneResult`);l?u?u():n.append(`p`).text(`Keine Resultate zu dieser Suche.`):i.items.length==1&&d?d(a(i.items[0])):f(t);function f(t){let n=t.cursor;for(let i of n.items){let n=a(i),o=n.query,s=o.address,c=o.name;c||=o.lastName+`, `+o.firstName,s&&(c+=`, `+s);let l=r.append(`li`).attr(`class`,`search-result`);l.append(`span`).attr(`class`,`icon`).text(i.targetType==`Company`?``:``);let u=l.append(`div`).attr(`class`,`body`),d=u.append(`a`).attr(`href`,document.location.pathname+`?`+Hn(o)).text(c).on(`click`,function(n){e.invokeClickHandler(t)&&n.preventDefault()});n.terminated&&d.append(`sup`).attr(`title`,`erloschen`).text(`✝︎`),u.append(`div`).attr(`class`,`detail`).text(n.detail);for(let e of i.formattedDetails)u.append(`div`).attr(`class`,`detail`).text(e)}o.attr(`data-total`,n.total);let i=Number(n.offset+n.items.length).toLocaleString();n.total?i+=` Resultate von `+Number(n.total).toLocaleString()+` insgesamt.`:i+=` Resultate.`,s.text(i),c.text(n.lastPage?``:`Weitere Resultate anzeigen`).attr(`data-offset`,n.offset+n.limit).attr(`data-position`,t.properties.nextPosition)}return D};function Uu(e){return!isNaN(parseFloat(e))&&isFinite(e)}var Wu=function(e,t){if(!t.sheet)throw Error(`no data`);for(let n of t.sheet){if(!n){let t=e.stringValue(`subject`)||`assets`;throw Error(`no data for subject '`+t+`'`)}let t=n.column,r=n.row,i=e.isReverseChronology(),a=e.numberValue(`maxYears`)||5;i&&t.reverse();let o=function(e){return i?e<a:e>=t.length-a};if(t.length<=0)break;let s=t[0].currency,l=1,u=s.unit,d=e.i18n().numberFormatter;if(s){let t=0,n=0,i=0;for(let e of r)for(let r of e.cell)if(Uu(r.value)){let e=Math.abs(r.value);e>1e5&&(++i,e>1e7&&(++n,e>1e10&&++t))}let a=t>=5,o=n>=5;if(i<5&&(d=e.i18n().decimalFormatter),o){u==`EUR`&&(u=`€`),u==`USD`&&(u=`$`),u==`GBP`&&(u=`£`);let e=$a(`K`,`Tsd. `,`K`);l=1e3,a&&(l=1e6,e=$a(`M`,`Mio. `,`M`)),e.length==1&&u.length==1&&(u=` `+u),u=e+u}}let f=document.createElement(`table`),p=R(f).attr(`class`,`ui bizq very compact celled small unstackable selectable first stuck table`),m=p.append(`thead`).append(`tr`),h=m.append(`th`).attr(`class`,`first`);h.text(u),h.append(`a`).attr(`href`,n.info.csvUrl).attr(`download`,`download`).attr(`title`,`CSV/Excel Download`).classed(`screen-only`,!0).append(`i`).attr(`class`,`download icon`),t.forEach((n,r)=>{o(r)&&m.append(`th`).text(n.date?e.i18n().dateFormatter(n.date):``).attr(`data-col`,t.length-r).attr(`data-source-title`,n.info.publication.title).attr(`data-source-date`,n.info.publication.date)});let g=(e,t)=>e&&e.semantics&&e.semantics.indexOf(t)>=0,_=e=>g(e,`SUMMARY`),v=e=>g(e,`CUSTOM`),y=p.append(`tbody`);r.forEach(n=>{if(!g(n,`HELPER`)){let r=0,a=e.isPrint()?2:1,s=n.level&&n.level.value,u=s<a?`expanded`:`closed`;s>a&&(u+=` hidden`);let f=R(document.createElement(`tr`)).attr(`class`,u+` active-on-hover`).attr(`data-row`,n.info&&n.info.id).attr(`data-level`,s).attr(`data-parent-row`,n.info?n.info.parentId:null).attr(`data-child-count`,()=>n.info&&typeof n.info.childCount==`number`&&n.info.childCount>0?n.info.childCount:null).attr(`data-summary`,_(n)).attr(`data-custom`,v(n)).on(`click`,function(e){c(e&&e.target),e.preventDefault()});f.append(`td`).attr(`class`,`first`).text(n.text??n.name),i&&n.cell.reverse(),n.cell.forEach((e,n)=>{if(o(n)){let i=e.value===void 0?``:d(e.value/l);i&&r++,f.append(`td`).attr(`data-col`,t.length-n).text(i)}}),r>0?y.node().appendChild(f.node()):n.info?.parentId&&y.select(`tr[data-row="${n.info.parentId}"][data-child-count]`).attr(`data-child-count`,function(){let e=parseInt(R(this).attr(`data-child-count`))-1;return e>0?e:null})}});let b=p.append(`tfoot`).append(`tr`);b.append(`th`).attr(`class`,`first`).text(e.trilingual(`Source`,`Quelle`,`Source`));let x=e.handlerValue(`sourceClick`);t.forEach((e,n)=>{if(o(n)){let r=b.append(`th`).attr(`data-col`,t.length-n);if(r.html(e.info.noteHtml),x){let t=e.info.publication,n=typeof e.info.source==`string`?[e.info.source]:e.info.source;r.selectAll(`a`).attr(`href`,`javascript:void(0);`).on(`click`,function(e){e.preventDefault(),x({publication:t,source:n})})}}}),f.setAttribute(`data-item`,n.info.item),e.showItem(n.info.title,f)}let n=`expanded`,r=`closed`;function i(e){let t=R(e);return e.matches(`tr`)?t:Fn(t,`tr`)}function a(e){let t=e.size()==0?`?`:e.attr(`data-row`);return Fn(e,`table`).selectAll(`[data-parent-row='`+t+`']`)}function o(e){let t=i(e);t.classed(r,!1).classed(n,!0),a(t).classed(`hidden`,!1)}function s(e){let t=i(e);t.classed(r,!0).classed(n,!1),a(t).classed(`hidden`,!0).each(function(){s(this)})}function c(e){i(e).classed(n)?s(e):o(e)}return D},Gu=function(e,t){let n=e.container,r=e.i18n().timeScaleFormatter,i={chartLeft:12,right:15,top:0,bottom:0},a=.5,o=12.78,s=t.lines;if(!s||!s.length)throw Error(`vita empty`);let c=s.length,l=i.top+23*c+5,u=new Date(t.startDate).getTime(),d=new Date(t.endDate).getTime(),f=e=>e?new Date(e):null,p=R(e.container).append(`svg`);p.append(`title`).text($a(`History`,`Historie`,`Historique`));let m=e=>e?e.toLocaleDateString():``;return{draw:function(){p.select(`g`).remove();let t=p.append(`g`),c=n.getBoundingClientRect().width;p.attr(`width`,c);let h=function(){let e=[];for(let t of s)for(let n of t.bars)e.push(n.role.abbr),e.push(n.role.abbr+` `+t.text);let n={};return t.selectAll(`.textWidthDummy`).data(e).enter().append(`text`).text(function(e){return e}).each(function(e){n[e]=this.getComputedTextLength(),this.remove()}),n}(),g=function(e,t,n){if(t){let r=e+` `+t,i=h[r],a=n-8;if(i!==void 0&&a>i)return{text:r,width:i,containsSuffix:!0}}let r=h[e];return r!==void 0&&n>r?{text:e,width:r}:{text:`…`,width:0}},_=function(){if(c>=600)return!0;let e=2592e6;for(let t of s)for(let n of t.bars){let t=f(n.assumedStart),r=f(n.end)||new Date;if(!t||Math.abs(t.getTime()-u)<e||Math.abs(d-r.getTime())<e)return!0}return!1},v=as().domain([u,d]).range([i.chartLeft,c-i.right]);_()&&(v=v.nice());let y=vs(v).tickFormat(r).tickSizeInner(8).tickSizeOuter(10).ticks(Math.min(c/100,10));t.append(`g`).attr(`class`,`axis`).attr(`transform`,`translate(0,`+l+`)`).call(y).attr(`font-size`,null).attr(`font-family`,null),t.append(`g`).attr(`class`,`axis grid`).attr(`transform`,`translate(0,`+l+`)`).call(y.tickSizeInner(-l).tickSizeOuter(0)).call(e=>e.selectAll(`.tick text`).remove());let b=i.chartLeft,x=c-i.right,S=0;for(let n of s){let r=i.top+23*S+5,s=r+18,c=r+13.5-1,l=(r+s)/2;t.append(`line`).attr(`x1`,b).attr(`x2`,x).attr(`y1`,l).attr(`y2`,l).attr(`class`,`grid`);let u=n.bars.length,d=0,p=!1,m=0,h=0;for(let s of n.bars){let l=f(s.assumedStart),_=f(s.end)||new Date,y=l?v(l):i.chartLeft+o,S=!s.start;y+=S?o:a;let C=v(_);s.openEnded&&s.end?C-=o:C-=a,C=Math.max(y,C);let w=C-y,T=y+w/2;w<10&&(S&&!s.openEnded?T-=3:s.openEnded&&!S&&(T+=3));let E=g(s.role.abbr,p?void 0:n.text,w);if(E.containsSuffix&&(p=!0),d==0){let e=S?y-o:y;m=(E.width?Math.min(T-E.width/2,e):e)-b-2}if(d==u-1){let e=s.openEnded?C+o:C;h=x-(E.width?Math.max(T+E.width/2,e):e)-2}let D=t.append(`svg:a`).attr(`xlink:href`,s.url||``).attr(`xlink:title`,s.title).attr(`data-old`,s.end?!0:null).attr(`data-clickable`,()=>e.getClickHandler(`p`)?!0:null).on(`click`,function(t){e.invokeClickHandler(s)&&t.preventDefault()});if(D.append(`title`).text(s.title),S){let e=y-o,t=y,n=r,i=r+18,a=[t+`,`+n,t+`,`+i,e+`,`+(n+i)/2];D.append(`polygon`).attr(`points`,a.join(` `)).attr(`class`,`in c`+s.role.cat)}if(s.openEnded){let e=C,t=Math.min(o+e,x),n=r,i=r+18,a=[e+`,`+n,e+`,`+i,t+`,`+(n+i)/2];D.append(`polygon`).attr(`points`,a.join(` `)).attr(`class`,`out c`+s.role.cat)}D.append(`rect`).attr(`x`,y).attr(`y`,r).attr(`width`,w).attr(`height`,18).attr(`class`,`c`+s.role.cat),D.append(`text`).attr(`x`,T).attr(`y`,c).attr(`class`,`label-text c`+s.role.cat).text(E.text),++d}p||(m>h?m>200&&t.append(`text`).attr(`x`,b+m).attr(`y`,c).attr(`class`,`left extra`).text(n.text):h>200&&t.append(`text`).attr(`x`,x-h).attr(`y`,c).attr(`class`,`right extra`).text(n.text)),++S}let C=new Date,w=`Heute, `+m(C),T=v(C),E=t.append(`svg:a`).attr(`xlink:title`,w);E.append(`title`).text(w),E.append(`line`).attr(`class`,`today`).attr(`x1`,T).attr(`y1`,0).attr(`x2`,T).attr(`y2`,l+15),p.attr(`height`,l+30)}}},Ku;(function(e){e.Widget=ao,e.version=T;let t=e.options={dataDomain:``,detectDataDomain:!0,__debug:!0};function n(e){t.__debug=!1,e===void 0?(t.dataDomain=`https://www.northdata.de`,t.detectDataDomain=!1):(t.dataDomain=e.dataDomain??t.dataDomain,t.detectDataDomain=e.detectDataDomain??t.detectDataDomain)}e.initialize=n;function r(...e){i(`info`,...e)}e.debug=r;function i(e,...n){t.__debug&&console[e](...n)}e.log=i,ee({barChart:xs,drillDown:Rc,graph:Bc,dendrogram:Lc,history:Fu,vita:Gu,pubTable:Vu,pubShop:Bu,personTable:Lu,sheet:Wu,financials:zc,contact:Ss,overview:Iu,searchResults:Hu})})(Ku||={});var $=Ku;return{Widget:Ku.Widget,version:Ku.version,initialize:Ku.initialize}});
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function s(){return s=typeof Reflect<`u`&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=p(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},s.apply(null,arguments)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function l(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u=function(){return!!e})()}function d(e,n){if(n&&(typeof n==`object`||typeof n==`function`))return n;if(n!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return t(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=c(e))!==null;);return e}function m(e,t,n,r){var i=s(c(1&r?e.prototype:e),t,n);return 2&r&&typeof i==`function`?function(e){return i.apply(n,e)}:i}function h(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function g(e){var t=h(e,`string`);return typeof t==`symbol`?t:t+``}function _(t,n){if(t){if(typeof t==`string`)return e(t,n);var r={}.toString.call(t).slice(8,-1);return r===`Object`&&t.constructor&&(r=t.constructor.name),r===`Map`||r===`Set`?Array.from(t):r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(function(e){return{NativeAbortSignal:e.AbortSignal,NativeAbortController:e.AbortController}})(typeof self<`u`?self:global);function v(e){var t;try{t=new Event(`abort`)}catch{typeof document<`u`?document.createEvent?(t=document.createEvent(`Event`),t.initEvent(`abort`,!1,!1)):(t=document.createEventObject(),t.type=`abort`):t={type:`abort`,bubbles:!1,cancelable:!1}}return t.reason=e,t}function y(e){if(e===void 0){if(typeof document>`u`)e=Error(`This operation was aborted`),e.name=`AbortError`;else try{e=new DOMException(`signal is aborted without reason`),Object.defineProperty(e,"name",{value:`AbortError`})}catch{e=Error(`This operation was aborted`),e.name=`AbortError`}}return e}var b=function(){function e(){r(this,e),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return a(e,[{key:`addEventListener`,value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}},{key:`removeEventListener`,value:function(e,t){if(e in this.listeners){for(var n=this.listeners[e],r=0,i=n.length;r<i;r++)if(n[r].callback===t){n.splice(r,1);return}}}},{key:`dispatchEvent`,value:function(e){var t=this;if(e.type in this.listeners){for(var n=this.listeners[e.type].slice(),r=function(){var r=n[i];try{r.callback.call(t,e)}catch(e){Promise.resolve().then(function(){throw e})}r.options&&r.options.once&&t.removeEventListener(e.type,r.callback)},i=0,a=n.length;i<a;i++)r();return!e.defaultPrevented}}}])}(),x=function(e){function t(){var e;return r(this,t),e=n(this,t),e.listeners||b.call(e),Object.defineProperty(e,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(e,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(e,"reason",{value:void 0,writable:!0,configurable:!0}),e}return l(t,e),a(t,[{key:`toString`,value:function(){return`[object AbortSignal]`}},{key:`dispatchEvent`,value:function(e){e.type===`abort`&&(this.aborted=!0,typeof this.onabort==`function`&&this.onabort.call(this,e)),m(t,`dispatchEvent`,this,3)([e])}},{key:`throwIfAborted`,value:function(){var e=this.aborted,t=this.reason,n=t===void 0?`Aborted`:t;if(e)throw n}}],[{key:`timeout`,value:function(e){var t=new S;return setTimeout(function(){return t.abort(new DOMException(`This signal is timeout in ${e}ms`,`TimeoutError`))},e),t.signal}},{key:`any`,value:function(e){var t=new S;function n(){t.abort(this.reason),r()}function r(){var t=o(e),r;try{for(t.s();!(r=t.n()).done;)r.value.removeEventListener(`abort`,n)}catch(e){t.e(e)}finally{t.f()}}var i=o(e),a;try{for(i.s();!(a=i.n()).done;){var s=a.value;if(s.aborted){t.abort(s.reason);break}s.addEventListener(`abort`,n)}}catch(e){i.e(e)}finally{i.f()}return t.signal}}])}(b),S=function(){function e(){r(this,e),Object.defineProperty(this,"signal",{value:new x,writable:!0,configurable:!0})}return a(e,[{key:`abort`,value:function(e){var t=y(e),n=v(t);this.signal.reason=t,this.signal.dispatchEvent(n)}},{key:`toString`,value:function(){return`[object AbortController]`}}])}();typeof Symbol<`u`&&Symbol.toStringTag&&(S.prototype[Symbol.toStringTag]=`AbortController`,x.prototype[Symbol.toStringTag]=`AbortSignal`);function C(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log(`__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill`),!0):typeof e.Request==`function`&&!e.Request.prototype.hasOwnProperty(`signal`)||!e.AbortController}function w(e){typeof e==`function`&&(e={fetch:e});var t=e,n=t.fetch,r=t.Request,i=r===void 0?n.Request:r,a=t.AbortController,o=t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,s=o!==void 0&&o;if(!C({fetch:n,Request:i,AbortController:a,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:s}))return{fetch:n,Request:c};var c=i;(c&&!c.prototype.hasOwnProperty(`signal`)||s)&&(c=function(e,t){var n;t&&t.signal&&(n=t.signal,delete t.signal);var r=new i(e,t);return n&&Object.defineProperty(r,"signal",{writable:!1,enumerable:!1,configurable:!0,value:n}),r},c.prototype=i.prototype);var l=n;return{fetch:function(e,t){var n=c&&c.prototype.isPrototypeOf(e)?e.signal:t?t.signal:void 0;if(n){var r;try{r=new DOMException(`Aborted`,`AbortError`)}catch{r=Error(`Aborted`),r.name=`AbortError`}if(n.aborted)return Promise.reject(r);var i=new Promise(function(e,t){n.addEventListener(`abort`,function(){return t(r)},{once:!0})});return t&&t.signal&&delete t.signal,Promise.race([i,l(e,t)])}return l(e,t)},Request:c}}(function(e){if(C(e)){if(!e.fetch){console.warn(`fetch() is not available, cannot install abortcontroller-polyfill`);return}var t=w(e),n=t.fetch,r=t.Request;e.fetch=n,e.Request=r,Object.defineProperty(e,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:S}),Object.defineProperty(e,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:x})}})(typeof self<`u`?self:global)}));var T=`0.0.0-SNAPSHOT`;function E(e,t){return Object.assign(e,t),e}var D={draw(){}},O={};function ee(e){E(O,e)}function te(e){return O[e]}function k(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function A(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function j(){}var M=.7,ne=1/M,re=`\\s*([+-]?\\d+)\\s*`,N=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,P=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,ie=/^#([0-9a-f]{3,8})$/,ae=RegExp(`^rgb\\(${re},${re},${re}\\)$`),oe=RegExp(`^rgb\\(${P},${P},${P}\\)$`),se=RegExp(`^rgba\\(${re},${re},${re},${N}\\)$`),ce=RegExp(`^rgba\\(${P},${P},${P},${N}\\)$`),le=RegExp(`^hsl\\(${N},${P},${P}\\)$`),ue=RegExp(`^hsla\\(${N},${P},${P},${N}\\)$`),de={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};k(j,ge,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:fe,formatHex:fe,formatHex8:pe,formatHsl:me,formatRgb:he,toString:he});function fe(){return this.rgb().formatHex()}function pe(){return this.rgb().formatHex8()}function me(){return Oe(this).formatHsl()}function he(){return this.rgb().formatRgb()}function ge(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=ie.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?_e(t):n===3?new F(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ve(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ve(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ae.exec(e))?new F(t[1],t[2],t[3],1):(t=oe.exec(e))?new F(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=se.exec(e))?ve(t[1],t[2],t[3],t[4]):(t=ce.exec(e))?ve(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=le.exec(e))?De(t[1],t[2]/100,t[3]/100,1):(t=ue.exec(e))?De(t[1],t[2]/100,t[3]/100,t[4]):de.hasOwnProperty(e)?_e(de[e]):e===`transparent`?new F(NaN,NaN,NaN,0):null}function _e(e){return new F(e>>16&255,e>>8&255,e&255,1)}function ve(e,t,n,r){return r<=0&&(e=t=n=NaN),new F(e,t,n,r)}function ye(e){return e instanceof j||(e=ge(e)),e?(e=e.rgb(),new F(e.r,e.g,e.b,e.opacity)):new F}function be(e,t,n,r){return arguments.length===1?ye(e):new F(e,t,n,r??1)}function F(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}k(F,be,A(j,{brighter(e){return e=e==null?ne:ne**+e,new F(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new F(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new F(Te(this.r),Te(this.g),Te(this.b),we(this.opacity))},displayable(){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:xe,formatHex:xe,formatHex8:Se,formatRgb:Ce,toString:Ce}));function xe(){return`#${Ee(this.r)}${Ee(this.g)}${Ee(this.b)}`}function Se(){return`#${Ee(this.r)}${Ee(this.g)}${Ee(this.b)}${Ee((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ce(){let e=we(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Te(this.r)}, ${Te(this.g)}, ${Te(this.b)}${e===1?`)`:`, ${e})`}`}function we(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Te(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ee(e){return e=Te(e),(e<16?`0`:``)+e.toString(16)}function De(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new I(e,t,n,r)}function Oe(e){if(e instanceof I)return new I(e.h,e.s,e.l,e.opacity);if(e instanceof j||(e=ge(e)),!e)return new I;if(e instanceof I)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new I(o,s,c,e.opacity)}function ke(e,t,n,r){return arguments.length===1?Oe(e):new I(e,t,n,r??1)}function I(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}k(I,ke,A(j,{brighter(e){return e=e==null?ne:ne**+e,new I(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new I(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new F(Me(e>=240?e-240:e+120,i,r),Me(e,i,r),Me(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new I(Ae(this.h),je(this.s),je(this.l),we(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=we(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Ae(this.h)}, ${je(this.s)*100}%, ${je(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function Ae(e){return e=(e||0)%360,e<0?e+360:e}function je(e){return Math.max(0,Math.min(1,e||0))}function Me(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Ne={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function Pe(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),Ne.hasOwnProperty(t)?{space:Ne[t],local:e}:e}function Fe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function Ie(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Le(e){var t=Pe(e);return(t.local?Ie:Fe)(t)}function Re(){}function ze(e){return e==null?Re:function(){return this.querySelector(e)}}function Be(e){typeof e!=`function`&&(e=ze(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new L(r,this._parents)}function Ve(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function He(){return[]}function Ue(e){return e==null?He:function(){return this.querySelectorAll(e)}}function We(e){return function(){return Ve(e.apply(this,arguments))}}function Ge(e){e=typeof e==`function`?We(e):Ue(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new L(r,i)}function Ke(e){return function(){return this.matches(e)}}function qe(e){return function(t){return t.matches(e)}}var Je=Array.prototype.find;function Ye(e){return function(){return Je.call(this.children,e)}}function Xe(){return this.firstElementChild}function Ze(e){return this.select(e==null?Xe:Ye(typeof e==`function`?e:qe(e)))}var Qe=Array.prototype.filter;function $e(){return Array.from(this.children)}function et(e){return function(){return Qe.call(this.children,e)}}function tt(e){return this.selectAll(e==null?$e:et(typeof e==`function`?e:qe(e)))}function nt(e){typeof e!=`function`&&(e=Ke(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new L(r,this._parents)}function rt(e){return Array(e.length)}function it(){return new L(this._enter||this._groups.map(rt),this._parents)}function at(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}at.prototype={constructor:at,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ot(e){return function(){return e}}function st(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new at(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function ct(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new at(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function lt(e){return e.__data__}function ut(e,t){if(!arguments.length)return Array.from(this,lt);var n=t?ct:st,r=this._parents,i=this._groups;typeof e!=`function`&&(e=ot(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=dt(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new L(o,r),o._enter=s,o._exit=c,o}function dt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function ft(){return new L(this._exit||this._groups.map(rt),this._parents)}function pt(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function mt(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new L(s,this._parents)}function ht(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function gt(e){e||=_t;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new L(i,this._parents).order()}function _t(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function vt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function yt(){return Array.from(this)}function bt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function xt(){let e=0;for(let t of this)++e;return e}function St(){return!this.node()}function Ct(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function wt(e){return function(){this.removeAttribute(e)}}function Tt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Et(e,t){return function(){this.setAttribute(e,t)}}function Dt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ot(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function kt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function At(e,t){var n=Pe(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Tt:wt:typeof t==`function`?n.local?kt:Ot:n.local?Dt:Et)(n,t))}function jt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Mt(e){return function(){this.style.removeProperty(e)}}function Nt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Pt(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ft(e,t,n){return arguments.length>1?this.each((t==null?Mt:typeof t==`function`?Pt:Nt)(e,t,n??``)):It(this.node(),e)}function It(e,t){return e.style.getPropertyValue(t)||jt(e).getComputedStyle(e,null).getPropertyValue(t)}function Lt(e){return function(){delete this[e]}}function Rt(e,t){return function(){this[e]=t}}function zt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Bt(e,t){return arguments.length>1?this.each((t==null?Lt:typeof t==`function`?zt:Rt)(e,t)):this.node()[e]}function Vt(e){return e.trim().split(/^|\s+/)}function Ht(e){return e.classList||new Ut(e)}function Ut(e){this._node=e,this._names=Vt(e.getAttribute(`class`)||``)}Ut.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function Wt(e,t){for(var n=Ht(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Gt(e,t){for(var n=Ht(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Kt(e){return function(){Wt(this,e)}}function qt(e){return function(){Gt(this,e)}}function Jt(e,t){return function(){(t.apply(this,arguments)?Wt:Gt)(this,e)}}function Yt(e,t){var n=Vt(e+``);if(arguments.length<2){for(var r=Ht(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?Jt:t?Kt:qt)(n,t))}function Xt(){this.textContent=``}function Zt(e){return function(){this.textContent=e}}function Qt(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function $t(e){return arguments.length?this.each(e==null?Xt:(typeof e==`function`?Qt:Zt)(e)):this.node().textContent}function en(){this.innerHTML=``}function tn(e){return function(){this.innerHTML=e}}function nn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function rn(e){return arguments.length?this.each(e==null?en:(typeof e==`function`?nn:tn)(e)):this.node().innerHTML}function an(){this.nextSibling&&this.parentNode.appendChild(this)}function on(){return this.each(an)}function sn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cn(){return this.each(sn)}function ln(e){var t=typeof e==`function`?e:Le(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function un(){return null}function dn(e,t){var n=typeof e==`function`?e:Le(e),r=t==null?un:typeof t==`function`?t:ze(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function fn(){var e=this.parentNode;e&&e.removeChild(this)}function pn(){return this.each(fn)}function mn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function hn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function gn(e){return this.select(e?hn:mn)}function _n(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function vn(e){return function(t){e.call(this,t,this.__data__)}}function yn(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function bn(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function xn(e,t,n){return function(){var r=this.__on,i,a=vn(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Sn(e,t,n){var r=yn(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?xn:bn,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Cn(e,t,n){var r=jt(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function wn(e,t){return function(){return Cn(this,e,t)}}function Tn(e,t){return function(){return Cn(this,e,t.apply(this,arguments))}}function En(e,t){return this.each((typeof t==`function`?Tn:wn)(e,t))}function*Dn(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var On=[null];function L(e,t){this._groups=e,this._parents=t}function kn(){return new L([[document.documentElement]],On)}function An(){return this}L.prototype=kn.prototype={constructor:L,select:Be,selectAll:Ge,selectChild:Ze,selectChildren:tt,filter:nt,data:ut,enter:it,exit:ft,join:pt,merge:mt,selection:An,order:ht,sort:gt,call:vt,nodes:yt,node:bt,size:xt,empty:St,each:Ct,attr:At,style:Ft,property:Bt,classed:Yt,text:$t,html:rn,raise:on,lower:cn,append:ln,insert:dn,remove:pn,clone:gn,datum:_n,on:Sn,dispatch:En,[Symbol.iterator]:Dn};function R(e){return typeof e==`string`?new L([[document.querySelector(e)]],[document.documentElement]):new L([[e]],On)}function jn(e){return R(Le(e).call(document.documentElement))}function Mn(e){return typeof e==`string`?new L([document.querySelectorAll(e)],[document.documentElement]):new L([Ve(e)],On)}function Nn(e){return[e.width,e.height]}function Pn(e,t){R(e).style(`height`,t+`px`)}function Fn(e,t){let n,r=[];return e.each(function(){let e=this;for(;typeof e.parentNode.matches==`function`&&!n;)e=e.parentNode,e.matches(t)&&(n=e,r.push(n));n=void 0}),Mn(r)}function In(e,t){for(;;){if(!e||!t)return!1;if(e.isSameNode(t))return!0;e=e.parentNode}}function Ln(e,t,n,r){R(t).on(e,function(e){try{let i;i=typeof n==`string`?R(t).selectAll(n):n,i.each(function(){let t=this;In(e.target,t)&&r.bind(t)(R(t).data()[0])})}catch(e){throw console.error(e),e}})}function Rn(){let e=window.navigator.userAgent;return e.indexOf(`MSIE `)>=0||e.indexOf(`Edge `)>=0||e.indexOf(`Trident`)>=0}function zn(e){return e&&e.trim()}function Bn(e){return e&&=encodeURIComponent(e).replace(/%20/g,`+`),e}function Vn(e){return e.replace(/-([a-z])/g,e=>e[1].toUpperCase())}function Hn(e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];typeof r==`object`&&(r=JSON.stringify(r)),(typeof r==`string`||typeof r==`number`)&&t.push(Bn(n)+`=`+Bn(r))}return t.join(`&`)}function Un(){let e=document.scripts;for(let t=0;t<e.length;++t){let n=e[t].src;if(n&&n.indexOf(`/viz.`)>=0){let e=n.indexOf(`/`,9);if(e>=0)return n.substring(0,e)}}return``}function Wn(e){if(!e.ok)throw Error(e.status+` `+e.statusText);if(e.status!==204&&e.status!==205)return e.json()}function Gn(e,t){return fetch(e,t).then(Wn)}var Kn=(function(){let e=[];function t(t,n,a){let o={options:t,success:n,error:a};t.immediate?r([o]):(e.push(o),window.setTimeout(i))}function n(e,t,n){let r=($.options.detectDataDomain?Un():void 0)||$.options.dataDomain,i=(window.dataDomain||r)+`/data.json`,a={"Content-Type":`application/json; charset=UTF-8`,...e&&{"X-Api-Key":e}};if(t.options.length===1&&t.options[0].useGet===`true`){var o=new URLSearchParams;Object.keys(t.options[0]).filter(e=>e!==`useGet`).filter(e=>e!==`apiKey`).filter(e=>{let n=t.options[0][e];return typeof n==`string`||typeof n==`boolean`||typeof n==`number`}).forEach(e=>{o.set(e,t.options[0][e])}),t.options[0].type===`graph`&&(o.delete(`width`),o.delete(`height`)),Gn(`${i}?${o.toString()}`,{headers:a,method:`GET`}).then(e=>n(null,e)).catch(e=>n(e,void 0));return}Gn(i,{headers:a,method:`POST`,body:JSON.stringify(t)}).then(e=>n(null,e)).catch(e=>n(e,void 0))}function r(e){let t=[],r;for(let n of e)t.push(n.options),r??=n.options.apiKey;if(t.length>0){let i={options:t,origin:document.location.hostname,v:$.version};n(r,i,function(t,n){if(t)for(let n of e)n.error(t.message);else{let t=n.result;e.forEach((e,n)=>{let r=t[n],i=r.error;i?e.error(i.message):e.success(r)})}})}}function i(){r(e),e=[]}return{requestData:t}})(),qn=new Date,Jn=new Date;function z(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>z(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(qn.setTime(+t),Jn.setTime(+r),e(qn),e(Jn),Math.floor(n(qn,Jn))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var Yn=z(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Yn.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?z(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Yn),Yn.range;var B=1e3,V=B*60,H=V*60,U=H*24,Xn=U*7,Zn=U*30,Qn=U*365,$n=z(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*B)},(e,t)=>(t-e)/B,e=>e.getUTCSeconds());$n.range;var er=z(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*B)},(e,t)=>{e.setTime(+e+t*V)},(e,t)=>(t-e)/V,e=>e.getMinutes());er.range;var tr=z(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*V)},(e,t)=>(t-e)/V,e=>e.getUTCMinutes());tr.range;var nr=z(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*B-e.getMinutes()*V)},(e,t)=>{e.setTime(+e+t*H)},(e,t)=>(t-e)/H,e=>e.getHours());nr.range;var rr=z(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*H)},(e,t)=>(t-e)/H,e=>e.getUTCHours());rr.range;var ir=z(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*V)/U,e=>e.getDate()-1);ir.range;var ar=z(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/U,e=>e.getUTCDate()-1);ar.range;var or=z(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/U,e=>Math.floor(e/U));or.range;function sr(e){return z(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*V)/Xn)}var cr=sr(0),lr=sr(1),ur=sr(2),dr=sr(3),fr=sr(4),pr=sr(5),mr=sr(6);cr.range,lr.range,ur.range,dr.range,fr.range,pr.range,mr.range;function hr(e){return z(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/Xn)}var gr=hr(0),_r=hr(1),vr=hr(2),yr=hr(3),br=hr(4),xr=hr(5),Sr=hr(6);gr.range,_r.range,vr.range,yr.range,br.range,xr.range,Sr.range;var Cr=z(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Cr.range;var wr=z(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());wr.range;var W=z(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());W.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:z(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),W.range;var G=z(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());G.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:z(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),G.range;function Tr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Er(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Dr(e){let t,n,r;e.length===2?(t=e===Tr||e===Er?e:Or,n=e,r=e):(t=Tr,n=(t,n)=>Tr(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function Or(){return 0}function kr(e){return e===null?NaN:+e}var Ar=Dr(Tr),jr=Ar.right;Ar.left,Dr(kr).center;function Mr(e,t){let n,r;if(t===void 0)for(let t of e)t!=null&&(n===void 0?t>=t&&(n=r=t):(n>t&&(n=t),r<t&&(r=t)));else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}var Nr=class extends Map{constructor(e,t=Lr){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(Pr(this,e))}has(e){return super.has(Pr(this,e))}set(e,t){return super.set(Fr(this,e),t)}delete(e){return super.delete(Ir(this,e))}};function Pr({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function Fr({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Ir({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Lr(e){return typeof e==`object`&&e?e.valueOf():e}var Rr=Math.sqrt(50),zr=Math.sqrt(10),Br=Math.sqrt(2);function Vr(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=Rr?10:a>=zr?5:a>=Br?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?Vr(e,t,n*2):[s,c,l]}function Hr(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?Vr(t,e,n):Vr(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function Ur(e,t,n){return t=+t,e=+e,n=+n,Vr(e,t,n)[2]}function Wr(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?Ur(t,e,n):Ur(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Gr(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Kr(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function qr(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function Jr(e,t,n,r,i,a){let o=[[$n,1,B],[$n,5,5*B],[$n,15,15*B],[$n,30,30*B],[a,1,V],[a,5,5*V],[a,15,15*V],[a,30,30*V],[i,1,H],[i,3,3*H],[i,6,6*H],[i,12,12*H],[r,1,U],[r,2,2*U],[n,1,Xn],[t,1,Zn],[t,3,3*Zn],[e,1,Qn]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=Dr(([,,e])=>e).right(o,i);if(a===o.length)return e.every(Wr(t/Qn,n/Qn,r));if(a===0)return Yn.every(Math.max(Wr(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[Yr,Xr]=Jr(G,wr,gr,or,rr,tr),[Zr,Qr]=Jr(W,Cr,cr,ir,nr,er);function $r(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ei(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ti(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function ni(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=si(i),u=ci(i),d=si(a),f=ci(a),p=si(o),m=ci(o),h=si(s),g=ci(s),_=si(c),v=ci(c),y={a:j,A:M,b:ne,B:re,c:null,d:ki,e:ki,f:Pi,g:Gi,G:qi,H:Ai,I:ji,j:Mi,L:Ni,m:Fi,M:Ii,p:N,q:P,Q:ga,s:_a,S:Li,u:Ri,U:zi,V:Vi,w:Hi,W:Ui,x:null,X:null,y:Wi,Y:Ki,Z:Ji,"%":ha},b={a:ie,A:ae,b:oe,B:se,c:null,d:Yi,e:Yi,f:ea,g:da,G:pa,H:Xi,I:Zi,j:Qi,L:$i,m:ta,M:na,p:ce,q:le,Q:ga,s:_a,S:ra,u:ia,U:aa,V:sa,w:ca,W:la,x:null,X:null,y:ua,Y:fa,Z:ma,"%":ha},x={a:E,A:D,b:O,B:ee,c:te,d:yi,e:yi,f:Ti,g:hi,G:mi,H:xi,I:xi,j:bi,L:wi,m:vi,M:Si,p:T,q:_i,Q:Di,s:Oi,S:Ci,u:ui,U:di,V:fi,w:li,W:pi,x:k,X:A,y:hi,Y:mi,Z:gi,"%":Ei};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=ri[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=ti(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=ei(ti(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?_r.ceil(a):_r(a),a=ar.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=$r(ti(r.y,0,1)),o=a.getDay(),a=o>4||o===0?lr.ceil(a):lr(a),a=ir.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?ei(ti(r.y,0,1)).getUTCDay():$r(ti(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,ei(r)):$r(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in ri?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function ee(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function te(e,n,r){return w(e,t,n,r)}function k(e,t,r){return w(e,n,t,r)}function A(e,t,n){return w(e,r,t,n)}function j(e){return o[e.getDay()]}function M(e){return a[e.getDay()]}function ne(e){return c[e.getMonth()]}function re(e){return s[e.getMonth()]}function N(e){return i[+(e.getHours()>=12)]}function P(e){return 1+~~(e.getMonth()/3)}function ie(e){return o[e.getUTCDay()]}function ae(e){return a[e.getUTCDay()]}function oe(e){return c[e.getUTCMonth()]}function se(e){return s[e.getUTCMonth()]}function ce(e){return i[+(e.getUTCHours()>=12)]}function le(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var ri={"-":``,_:` `,0:`0`},K=/^\s*\d+/,ii=/^%/,ai=/[\\^$*+?|[\]().{}]/g;function q(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function oi(e){return e.replace(ai,`\\$&`)}function si(e){return RegExp(`^(?:`+e.map(oi).join(`|`)+`)`,`i`)}function ci(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function li(e,t,n){var r=K.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ui(e,t,n){var r=K.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function di(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function fi(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function pi(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function mi(e,t,n){var r=K.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function hi(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function gi(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function _i(e,t,n){var r=K.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function vi(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function yi(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function bi(e,t,n){var r=K.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function xi(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Si(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ci(e,t,n){var r=K.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function wi(e,t,n){var r=K.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ti(e,t,n){var r=K.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ei(e,t,n){var r=ii.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Di(e,t,n){var r=K.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Oi(e,t,n){var r=K.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ki(e,t){return q(e.getDate(),t,2)}function Ai(e,t){return q(e.getHours(),t,2)}function ji(e,t){return q(e.getHours()%12||12,t,2)}function Mi(e,t){return q(1+ir.count(W(e),e),t,3)}function Ni(e,t){return q(e.getMilliseconds(),t,3)}function Pi(e,t){return Ni(e,t)+`000`}function Fi(e,t){return q(e.getMonth()+1,t,2)}function Ii(e,t){return q(e.getMinutes(),t,2)}function Li(e,t){return q(e.getSeconds(),t,2)}function Ri(e){var t=e.getDay();return t===0?7:t}function zi(e,t){return q(cr.count(W(e)-1,e),t,2)}function Bi(e){var t=e.getDay();return t>=4||t===0?fr(e):fr.ceil(e)}function Vi(e,t){return e=Bi(e),q(fr.count(W(e),e)+(W(e).getDay()===4),t,2)}function Hi(e){return e.getDay()}function Ui(e,t){return q(lr.count(W(e)-1,e),t,2)}function Wi(e,t){return q(e.getFullYear()%100,t,2)}function Gi(e,t){return e=Bi(e),q(e.getFullYear()%100,t,2)}function Ki(e,t){return q(e.getFullYear()%1e4,t,4)}function qi(e,t){var n=e.getDay();return e=n>=4||n===0?fr(e):fr.ceil(e),q(e.getFullYear()%1e4,t,4)}function Ji(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+q(t/60|0,`0`,2)+q(t%60,`0`,2)}function Yi(e,t){return q(e.getUTCDate(),t,2)}function Xi(e,t){return q(e.getUTCHours(),t,2)}function Zi(e,t){return q(e.getUTCHours()%12||12,t,2)}function Qi(e,t){return q(1+ar.count(G(e),e),t,3)}function $i(e,t){return q(e.getUTCMilliseconds(),t,3)}function ea(e,t){return $i(e,t)+`000`}function ta(e,t){return q(e.getUTCMonth()+1,t,2)}function na(e,t){return q(e.getUTCMinutes(),t,2)}function ra(e,t){return q(e.getUTCSeconds(),t,2)}function ia(e){var t=e.getUTCDay();return t===0?7:t}function aa(e,t){return q(gr.count(G(e)-1,e),t,2)}function oa(e){var t=e.getUTCDay();return t>=4||t===0?br(e):br.ceil(e)}function sa(e,t){return e=oa(e),q(br.count(G(e),e)+(G(e).getUTCDay()===4),t,2)}function ca(e){return e.getUTCDay()}function la(e,t){return q(_r.count(G(e)-1,e),t,2)}function ua(e,t){return q(e.getUTCFullYear()%100,t,2)}function da(e,t){return e=oa(e),q(e.getUTCFullYear()%100,t,2)}function fa(e,t){return q(e.getUTCFullYear()%1e4,t,4)}function pa(e,t){var n=e.getUTCDay();return e=n>=4||n===0?br(e):br.ceil(e),q(e.getUTCFullYear()%1e4,t,4)}function ma(){return`+0000`}function ha(){return`%`}function ga(e){return+e}function _a(e){return Math.floor(e/1e3)}var va,ya;ba({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`]});function ba(e){return va=ni(e),ya=va.format,va.parse,va.utcFormat,va.utcParse,va}function xa(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function Sa(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ca(e){return e=Sa(Math.abs(e)),e?e[1]:NaN}function wa(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Ta(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var Ea=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Da(e){if(!(t=Ea.exec(e)))throw Error(`invalid format: `+e);var t;return new Oa({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Da.prototype=Oa.prototype;function Oa(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}Oa.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function ka(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var Aa;function ja(e,t){var n=Sa(e,t);if(!n)return Aa=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(Aa=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+Sa(e,Math.max(0,t+a-1))[0]}function Ma(e,t){var n=Sa(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var Na={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:xa,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Ma(e*100,t),r:Ma,s:ja,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Pa(e){return e}var Fa=Array.prototype.map,Ia=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function La(e){var t=e.grouping===void 0||e.thousands===void 0?Pa:wa(Fa.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?Pa:Ta(Fa.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=Da(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):Na[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=Na[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=ka(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&Aa!==void 0?Ia[8+Aa/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(Ca(t)/3)))*3,r=10**-n,i=l((e=Da(e),e.type=`f`,e),{suffix:Ia[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var Ra,za,Ba;Va({thousands:`,`,grouping:[3],currency:[`$`,``]});function Va(e){return Ra=La(e),za=Ra.format,Ba=Ra.formatPrefix,Ra}function Ha(e){return Math.max(0,-Ca(Math.abs(e)))}function Ua(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ca(t)/3)))*3-Ca(Math.abs(e)))}function Wa(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ca(t)-Ca(e))+1}var Ga={dateTime:`%A, der %e. %B %Y, %X`,date:`%d.%m.%Y`,time:`%H:%M:%S`,periods:[`AM`,`PM`],days:[`Sonntag`,`Montag`,`Dienstag`,`Mittwoch`,`Donnerstag`,`Freitag`,`Samstag`],shortDays:[`So`,`Mo`,`Di`,`Mi`,`Do`,`Fr`,`Sa`],months:[`Januar`,`Februar`,`März`,`April`,`Mai`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`],shortMonths:[`Jan`,`Feb`,`Mrz`,`Apr`,`Mai`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Dez`]},Ka={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`]},qa={dateTime:`%A %e %B %Y à %X`,date:`%d/%m/%Y`,time:`%H:%M:%S`,periods:[`AM`,`PM`],days:[`dimanche`,`lundi`,`mardi`,`mercredi`,`jeudi`,`vendredi`,`samedi`],shortDays:[`dim.`,`lun.`,`mar.`,`mer.`,`jeu.`,`ven.`,`sam.`],months:[`janvier`,`février`,`mars`,`avril`,`mai`,`juin`,`juillet`,`août`,`septembre`,`octobre`,`novembre`,`décembre`],shortMonths:[`janv.`,`févr.`,`mars`,`avr.`,`mai`,`juin`,`juil.`,`août`,`sept.`,`oct.`,`nov.`,`déc.`]},Ja={decimal:`,`,thousands:`.`,grouping:[3],currency:[``,`\xA0€`]},Ya={decimal:`.`,thousands:`,`,grouping:[3],currency:[`$`,``]},Xa={decimal:`,`,thousands:`\xA0`,grouping:[3],currency:[``,`\xA0€`],percent:` %`},Za=document.documentElement.lang===`en`?`en`:document.documentElement.lang===`fr`?`fr`:`de`;function Qa(){return Za}function $a(e,t,n=``){return Qa()===`de`?t:Qa()===`fr`?n:e}function eo(e){let t=e.format(`.%L`),n=e.format(`:%S`),r=e.format(`%I:%M`),i=e.format(`%I %p`),a=e.format(`%a %d`),o=e.format(`%b %d`),s=e.format(`%B`),c=e.format(`%Y`);return e=>($n(e)<e?t:er(e)<e?n:nr(e)<e?r:ir(e)<e?i:Cr(e)<e?cr(e)<e?a:o:W(e)<e?s:c)(e)}function to(e,t){let n=ni(e),r=La(t),i=e=>Math.round(e*100)/100,a=r.format(`,.2f`),o=r.format(`,.0f`),s=n.format(e.date);return{timeFormatLocaleDefinition:e,numberFormatLocaleDefinition:t,createNumberFormatter:function(e,t){let n=e.accuracy,i=r.format(t);return t=>e.prefix+i(t/n)+e.postfix},decimalFormatter:e=>a(i(e)),numberFormatter:e=>o(Math.round(e)),dateFormatter:e=>e?(typeof e==`string`&&(e=new Date(e)),s(e)):``,timeScaleFormatter:eo(n)}}var no=to(Ga,{...Ja,currency:[`€`,``]}),ro=to({...Ka,date:`%Y-%m-%d`},{...Ya,currency:[`€`,``]}),io=to(qa,{...Xa,currency:[`€`,``]}),ao=class{data;chart;container;widgetType;options;items=[];constructor(e,t){let n=typeof e==`string`?document.getElementById(e):e;if(!n)throw Error(`container node undefined or null`);this.container=n,this.options=oo(t,this.container);let r=this.stringValue(`type`)||this.stringValue(`layout`);if(!r)throw Error(`no widget type specified`);this.widgetType=r,this.options.type=r,(r==`graph`||r==`contact`)&&(this.options.immediate=!0);let i=this.load.bind(this);this.data=this.objectValue(`data`),this.data?window.setTimeout(i):Kn.requestData(this.options,i,this.fail.bind(this))}getType(){return this.widgetType}fail(e){let t=this.handlerValue(`error`);t?t(e):$.log(`error`,e)}load(e){this.data=this.data||e;try{let e=te(this.widgetType);if(!e)throw Error(`invalid widget type: `+this.widgetType);this.chart=e(this,this.data),this.container.setAttribute(`data-layout`,this.widgetType),this.draw()}catch(e){this.fail(e);return}let t=this.handlerValue(`success`);t&&t()}showItem(e,t){let n=(this.handlerValue(`handleItem`)||((e,t)=>{if(this.stringValue(`subject`))return t;let n=document.createElement(`div`),r=document.createElement(`h2`);return r.textContent=e,n.appendChild(r),n.appendChild(t),n}))(e,t);n&&(this.container.appendChild(n),this.items.push(n))}adjustSize(e){let t=e.getBoundingClientRect(),n=this.numberValue(`width`)||t.width,r=this.numberValue(`height`)||t.height,i=this.numberValue(`ratio`),a=this.numberValue(`minHeight`),o=this.numberValue(`maxHeight`),s=r;i&&(s=n*i),a&&(s=Math.max(s,a)),o&&(s=Math.min(s,o)),r!=s&&Pn(e,s)}draw(){this.adjustSize(this.container),this.chart&&(this.chart.draw(),R(this.container).selectAll(`*`).each(function(){let e=this.getAttribute(`transform`);e||(e=getComputedStyle(this).getPropertyValue(`transform`),e&&e!=`none`&&this.setAttribute(`transform`,e))}))}markup(e){let t=this.handlerValue(`companyClick`);t&&e.selectAll(`.company`).attr(`data-clickable`,!0);let n=this.handlerValue(`personClick`);n&&e.selectAll(`.person`).attr(`data-clickable`,!0);let r=this.handlerValue(`addressClick`);r&&e.selectAll(`address`).attr(`data-clickable`,!0);let i=this.handlerValue(`registerClick`);i&&e.selectAll(`.register`).attr(`data-clickable`,!0);let a=this.handlerValue(`filingClick`);a&&e.selectAll(`.filing`).attr(`data-clickable`,!0),e.on(`click`,function(e){let o=e.target,s=so(o),c;t&&o.classList.contains(`company`)&&(t(s),c=!0),n&&o.classList.contains(`person`)&&(n(s),c=!0),r&&o.tagName==`ADDRESS`&&(r({query:o.textContent}),c=!0),i&&o.classList.contains(`register`)&&(i({query:o.textContent}),c=!0),a&&o.classList.contains(`filing`)&&(a({query:o.textContent}),c=!0),c&&e.preventDefault()})}invokeClickHandler(e,t){let n=this.getClickHandler(t);return n?(n(e),!0):!1}getClickHandler(e){if(e)switch(e.toString().toLowerCase()[0]){case`c`:return this.handlerValue(`companyClick`);case`p`:return this.handlerValue(`personClick`);case`h`:return this.handlerValue(`publicationClick`)}}getLinkifier(){return this.handlerValue(`linkify`)||co}getRootColor(){return ke(this.stringValue(`rootColor`)||`#00dddd`)}isReverseChronology(){return this.stringValue(`chronology`)===`reverse`}getLanguage(){return this.stringValue(`language`)||`de`}i18n(){return this.getLanguage()==`de`?no:this.getLanguage()==`fr`?io:ro}trilingual(e,t,n){return this.getLanguage()==`de`?t:this.getLanguage()==`fr`?n:e}isPrint(){return document.documentElement.classList&&document.documentElement.classList.contains(`print`)}numberValue(e){let t=this.options[e];if(typeof t==`function`)return t();if(typeof t==`number`)return t;if(typeof t==`string`)return Number(t)}stringValue(e){let t=this.options[e];if(typeof t==`function`)return t();if(typeof t==`string`)return t}booleanValue(e){return this.stringValue(e)?.toLowerCase()===`true`}nodeValue(e){let t=this.options[e];if(typeof t==`object`)return t;if(typeof t==`function`)return t();if(typeof t==`string`)return R(this.container).select(t).node()}objectValue(e){let t=this.options[e];if(typeof t==`function`)return t();if(typeof t==`object`)return t===null?void 0:t;if(typeof t==`string`)return JSON.parse(t)}handlerValue(e){let t=this.options[e];if(typeof t==`function`)return t.bind(this)}};function oo(e,t){let n={};Object.assign(n,e);for(let e=0;e<t.attributes.length;++e){let r=t.attributes[e],i=r.name;if(i.indexOf(`data-`)===0){let e=Vn(i.substring(5));n[e]=n[e]||r.value}}return n}function so(e){return oo({},e)}var co=()=>null;function lo(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var uo=Symbol(`implicit`);function fo(){var e=new Nr,t=[],n=[],r=uo;function i(i){let a=e.get(i);if(a===void 0){if(r!==uo)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Nr;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return fo(t,n).unknown(r)},lo.apply(i,arguments),i}function po(){var e=fo().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=qr(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return po(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},lo.apply(d(),arguments)}var mo=e=>()=>e;function ho(e,t){return function(n){return e+n*t}}function go(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function _o(e){return(e=+e)==1?vo:function(t,n){return n-t?go(t,n,e):mo(isNaN(t)?n:t)}}function vo(e,t){var n=t-e;return n?ho(e,n):mo(isNaN(e)?t:e)}var yo=(function e(t){var n=_o(t);function r(e,t){var r=n((e=be(e)).r,(t=be(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=vo(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function bo(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function xo(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function So(e,t){for(var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o=0;o<r;++o)i[o]=Ao(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function Co(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function J(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function wo(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=Ao(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var To=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Eo=new RegExp(To.source,`g`);function Do(e){return function(){return e}}function Oo(e){return function(t){return e(t)+``}}function ko(e,t){var n=To.lastIndex=Eo.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=To.exec(e))&&(i=Eo.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:J(r,i)})),n=Eo.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Oo(c[0].x):Do(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function Ao(e,t){var n=typeof t,r;return t==null||n===`boolean`?mo(t):(n===`number`?J:n===`string`?(r=ge(t))?(t=r,yo):ko:t instanceof ge?yo:t instanceof Date?Co:xo(t)?bo:Array.isArray(t)?So:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?wo:J)(e,t)}function jo(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Mo=180/Math.PI,No={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Po(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Mo,skewX:Math.atan(c)*Mo,scaleX:o,scaleY:s}}var Fo;function Io(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?No:Po(t.a,t.b,t.c,t.d,t.e,t.f)}function Lo(e){return e==null||(Fo||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Fo.setAttribute(`transform`,e),!(e=Fo.transform.baseVal.consolidate()))?No:(e=e.matrix,Po(e.a,e.b,e.c,e.d,e.e,e.f))}function Ro(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:J(e,i)},{i:c-2,x:J(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:J(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:J(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:J(e,n)},{i:s-2,x:J(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var zo=Ro(Io,`px, `,`px)`,`deg)`),Bo=Ro(Lo,`, `,`)`,`)`);function Vo(e){return function(){return e}}function Ho(e){return+e}var Uo=[0,1];function Wo(e){return e}function Go(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Vo(isNaN(t)?NaN:.5)}function Ko(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function qo(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Go(i,r),a=n(o,a)):(r=Go(r,i),a=n(a,o)),function(e){return a(r(e))}}function Jo(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Go(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=jr(e,t,1,r)-1;return a[n](i[n](t))}}function Yo(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Xo(){var e=Uo,t=Uo,n=Ao,r,i,a,o=Wo,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==Wo&&(o=Ko(e[0],e[n-1])),s=n>2?Jo:qo,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),J))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,Ho),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=jo,u()},d.clamp=function(e){return arguments.length?(o=e?!0:Wo,u()):o!==Wo},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function Zo(){return Xo()(Wo,Wo)}function Qo(e,t,n,r){var i=Wr(e,t,n),a;switch(r=Da(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Ua(i,o))&&(r.precision=a),Ba(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=Wa(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=Ha(i))&&(r.precision=a-(r.type===`%`)*2)}return za(r)}function $o(e){var t=e.domain;return e.ticks=function(e){var n=t();return Hr(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return Qo(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=Ur(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function es(){var e=Zo();return e.copy=function(){return Yo(e,es())},lo.apply(e,arguments),$o(e)}function ts(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function ns(e){return new Date(e)}function rs(e){return e instanceof Date?+e:+new Date(+e)}function is(e,t,n,r,i,a,o,s,c,l){var u=Zo(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,rs)):f().map(ns)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(ts(n,e)):u},u.copy=function(){return Yo(u,is(e,t,n,r,i,a,o,s,c,l))},u}function as(){return lo.apply(is(Zr,Qr,W,Cr,cr,ir,nr,er,$n,ya).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function os(e){return e}var ss=1,cs=2,ls=3,us=4,ds=1e-6;function fs(e){return`translate(`+e+`,0)`}function ps(e){return`translate(0,`+e+`)`}function ms(e){return t=>+e(t)}function hs(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function gs(){return!this.__axis}function _s(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,c=typeof window<`u`&&window.devicePixelRatio>1?0:.5,l=e===ss||e===us?-1:1,u=e===us||e===cs?`x`:`y`,d=e===ss||e===ls?fs:ps;function f(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):os),h=Math.max(a,0)+s,g=t.range(),_=+g[0]+c,v=+g[g.length-1]+c,y=(t.bandwidth?hs:ms)(t.copy(),c),b=f.selection?f.selection():f,x=b.selectAll(`.domain`).data([null]),S=b.selectAll(`.tick`).data(p,t).order(),C=S.exit(),w=S.enter().append(`g`).attr(`class`,`tick`),T=S.select(`line`),E=S.select(`text`);x=x.merge(x.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),S=S.merge(w),T=T.merge(w.append(`line`).attr(`stroke`,`currentColor`).attr(u+`2`,l*a)),E=E.merge(w.append(`text`).attr(`fill`,`currentColor`).attr(u,l*h).attr(`dy`,e===ss?`0em`:e===ls?`0.71em`:`0.32em`)),f!==b&&(x=x.transition(f),S=S.transition(f),T=T.transition(f),E=E.transition(f),C=C.transition(f).attr(`opacity`,ds).attr(`transform`,function(e){return isFinite(e=y(e))?d(e+c):this.getAttribute(`transform`)}),w.attr(`opacity`,ds).attr(`transform`,function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:y(e))+c)})),C.remove(),x.attr(`d`,e===us||e===cs?o?`M`+l*o+`,`+_+`H`+c+`V`+v+`H`+l*o:`M`+c+`,`+_+`V`+v:o?`M`+_+`,`+l*o+`V`+c+`H`+v+`V`+l*o:`M`+_+`,`+c+`H`+v),S.attr(`opacity`,1).attr(`transform`,function(e){return d(y(e)+c)}),T.attr(u+`2`,l*a),E.attr(u,l*h).text(m),b.filter(gs).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===cs?`start`:e===us?`end`:`middle`),b.each(function(){this.__axis=y})}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(a=o=+e,f):a},f.tickSizeInner=function(e){return arguments.length?(a=+e,f):a},f.tickSizeOuter=function(e){return arguments.length?(o=+e,f):o},f.tickPadding=function(e){return arguments.length?(s=+e,f):s},f.offset=function(e){return arguments.length?(c=+e,f):c},f}function vs(e){return _s(ls,e)}function ys(e){return _s(us,e)}function bs(){let e=R(`body`).append(`div`).attr(`class`,`tooltip ui basic black label`).style(`position`,`fixed`).style(`top`,0).style(`left`,0).style(`pointer-events`,`none`).style(`visibility`,`hidden`);return{position(t,n){let r=document.documentElement.clientWidth,i=e.node().offsetWidth,a=e.node().offsetHeight,o=t+i+16<r,s=o?t+16:t-i-16,c=n-a/2;return e.style(`transform`,`translate(${s}px, ${c}px)`).classed(`left right pointing`,!1).classed(o?`left`:`right`,!0).classed(`pointing`,!0),this},visible(t){return e.interrupt().transition().delay(t?0:100).duration(0).style(`visibility`,()=>t?null:`hidden`),this},content(t){return e.html(t),this}}}var xs=function(e,t){let n=[],r=t.note;if((!t.item||t.item.length==0)&&!r)throw Error(`no data`);let i={top:15,right:10,bottom:50,left:15},a=bs();function o(t,n){let r=t.note?`<span class='note'>`+t.note+`</span>`:``,i=t.source&&t.source.publicationTitle?`<span class='source'>`+e.trilingual(`Source: `,`Quelle: `,`Source: `)+t.source.publicationTitle+`</span>`:``;return`<span class='name'>`+n+` `+t.year+`</span><span class='value'>`+t.formattedValue+`</span>`+r+i}for(let r of t.item){let t=r.data;if(!t)continue;let s=e.options.colors,c=typeof s==`string`?s.split(`|`):s;c??=t.colors;let l=t.title.substring(0,3),u=[],d=t.colorIndexes;for(let e=0;e<d.length;++e){let n=d[e],r=t.estimate[e]?`url(#diag`+l+n+`)`:c[n];u.push(r)}let f=jn(`svg:defs`);f.selectAll(`pattern`).data(c).join(`svg:pattern`).attr(`id`,(e,t)=>`diag${l}${t}`).attr(`width`,10).attr(`height`,10).attr(`patternTransform`,`rotate(45 0 0)`).attr(`patternUnits`,`userSpaceOnUse`).attr(`transform`,`matrix(0.707107, 0.707107, -0.707107, 0.707107, 0, 0)`).append(`svg:line`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,0).attr(`y2`,10).style(`stroke`,e=>e).style(`stroke-width`,15);let[p,m]=Mr(t.data,e=>e.value0);m=Math.max(m,1),p=Math.min(p,0);let h=Math.min(5,Math.floor(Math.max(Math.abs(p),m))),g=document.createElement(`div`);g.setAttribute(`data-item`,r.item),e.showItem(r.title,g);let _=R(g).style(`height`,`100%`).append(`svg`).attr(`width`,`100%`).attr(`height`,`100%`);_.attr(`aria-label`,r.title),_.append(()=>f.node());let v=po().domain(t.data.map(e=>e.year)).padding(.2),y=vs(v),b=_.append(`g`).classed(`x-axis`,!0),x=es().domain([p,m]),S=ys(x).tickSizeInner(0).tickSizeOuter(0).ticks(h).tickFormat(e.i18n().createNumberFormatter(t.numberFormat,`,.0f`)),C=_.append(`g`).classed(`y-axis`,!0),w=_.append(`g`),T=_.append(`g`);n.push(()=>{let{width:e,height:n}=g.getBoundingClientRect();_.attr(`viewBox`,`0 0 ${e} ${n}`),x.range([n-i.bottom,i.top]),C.call(S).attr(`font-size`,null).attr(`font-family`,null).call(e=>e.selectAll(`.tick`).classed(`zero`,e=>e===0));let s=45;C.selectAll(`.tick > text`).each(function(){s=Math.max(s,this.getBBox().width)});let c=i.left+s;C.attr(`transform`,`translate(${c},0)`).selectAll(`.tick > line`).attr(`x2`,e-c-i.right),v.range([c,e-i.right]),y.tickSizeInner(-(n-i.top-i.bottom)),b.attr(`transform`,`translate(0,${n-i.bottom})`).call(y).call(e=>e.select(`.domain`).remove()).attr(`font-size`,null).attr(`font-family`,null);let l=e=>Math.abs(x(0)-x(e));T.selectAll(`rect`).data(t.data).join(`rect`).attr(`x`,e=>v(e.year)).attr(`y`,e=>x(Math.max(e.value0,0))).attr(`height`,e=>Math.max(l(e.value0),1)).attr(`width`,v.bandwidth()).attr(`fill`,(e,t)=>u[t]),w.selectAll(`rect`).data(t.data.filter(e=>l(e.value0)<45)).join(`rect`).attr(`x`,e=>v(e.year)).attr(`y`,e=>{let t=e.value0>0?45:0;return x(0)-t}).attr(`height`,45).attr(`width`,v.bandwidth()).attr(`fill`,`transparent`),_.selectAll(`g > rect`).on(`mousemove`,e=>{a.position(e.clientX,e.clientY)}).on(`mouseover`,(e,t)=>{a.content(o(t,r.title)).visible(!0)}).on(`mouseout`,()=>{a.visible(!1)})})}if(r){let t=document.createElement(`div`),n=R(t).classed(`note`,!0).html(r);e.markup(n),e.container.appendChild(t)}return{draw:function(){for(let e of n)e()}}},Ss=function(e,t){if(t){let n=e.handlerValue(`load`);n&&n(t)}return D};function Cs(e,t){return e.parent===t.parent?1:2}function ws(e){return e.reduce(Ts,0)/e.length}function Ts(e,t){return e+t.x}function Es(e){return 1+e.reduce(Ds,0)}function Ds(e,t){return Math.max(e,t.y)}function Os(e){for(var t;t=e.children;)e=t[0];return e}function ks(e){for(var t;t=e.children;)e=t[t.length-1];return e}function As(){var e=Cs,t=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter(function(t){var n=t.children;n?(t.x=ws(n),t.y=Es(n)):(t.x=a?o+=e(t,a):0,t.y=0,a=t)});var s=Os(i),c=ks(i),l=s.x-e(s,c)/2,u=c.x+e(c,s)/2;return i.eachAfter(r?function(e){e.x=(e.x-i.x)*t,e.y=(i.y-e.y)*n}:function(e){e.x=(e.x-l)/(u-l)*t,e.y=(1-(i.y?e.y/i.y:1))*n})}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}function js(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function Ms(){return this.eachAfter(js)}function Ns(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function Ps(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function Fs(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function Is(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function Ls(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function Rs(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function zs(e){for(var t=this,n=Bs(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function Bs(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function Vs(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Hs(){return Array.from(this)}function Us(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Ws(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*Gs(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function Ks(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Ys)):t===void 0&&(t=Js);for(var n=new Qs(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new Qs(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(Zs)}function qs(){return Ks(this).eachBefore(Xs)}function Js(e){return e.children}function Ys(e){return Array.isArray(e)?e[1]:null}function Xs(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Zs(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Qs(e){this.data=e,this.depth=this.height=0,this.parent=null}Qs.prototype=Ks.prototype={constructor:Qs,count:Ms,each:Ns,eachAfter:Fs,eachBefore:Ps,find:Is,sum:Ls,sort:Rs,path:zs,ancestors:Vs,descendants:Hs,leaves:Us,links:Ws,copy:qs,[Symbol.iterator]:Gs};function $s(e){if(typeof e!=`function`)throw Error();return e}function ec(){return 0}function tc(e){return function(){return e}}function nc(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function rc(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++s<c;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function ic(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(i-n)/e.value;++s<c;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var ac=(1+Math.sqrt(5))/2;function oc(e,t,n,r,i,a){for(var o=[],s=t.children,c,l,u=0,d=0,f=s.length,p,m,h=t.value,g,_,v,y,b,x,S;u<f;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);for(_=v=g,x=Math.max(m/p,p/m)/(h*e),S=g*g*x,b=Math.max(v/S,S/_);d<f;++d){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?rc(c,n,r,i,h?r+=m*g/h:a):ic(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var sc=(function e(t){function n(e,n,r,i,a){oc(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(ac);function cc(){var e=sc,t=!1,n=1,r=1,i=[0],a=ec,o=ec,s=ec,c=ec,l=ec;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(nc),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=a(t)/2,r+=l(t)-n,u+=o(t)-n,d-=s(t)-n,f-=c(t)-n,d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=$s(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:tc(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:tc(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:tc(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:tc(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:tc(+e),u):l},u}function lc(e){return function(){return e}}var uc=Math.PI,dc=2*uc,fc=1e-6,pc=dc-fc;function mc(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function hc(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return mc;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var gc=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?mc:hc(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>fc){if(!(Math.abs(u*s-c*l)>fc)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((uc-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>fc&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>fc||Math.abs(this._y1-l)>fc)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%dc+dc),d>pc?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>fc&&this._append`A${n},${n},0,${+(d>=uc)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};gc.prototype;function _c(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new gc(t)}var vc=Array.prototype.slice;function yc(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function bc(e){this._context=e}bc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function xc(e){return new bc(e)}function Sc(e){return e[0]}function Cc(e){return e[1]}function wc(e,t){var n=lc(!0),r=null,i=xc,a=null,o=_c(s);e=typeof e==`function`?e:e===void 0?Sc:lc(e),t=typeof t==`function`?t:t===void 0?Cc:lc(t);function s(s){var c,l=(s=yc(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:lc(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:lc(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:lc(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}var Tc=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function Ec(e){return new Tc(e,!0)}function Dc(e){return e.source}function Oc(e){return e.target}function kc(e){let t=Dc,n=Oc,r=Sc,i=Cc,a=null,o=null,s=_c(c);function c(){let c,l=vc.call(arguments),u=t.apply(this,l),d=n.apply(this,l);if(a??(o=e(c=s())),o.lineStart(),l[0]=u,o.point(+r.apply(this,l),+i.apply(this,l)),l[0]=d,o.point(+r.apply(this,l),+i.apply(this,l)),o.lineEnd(),c)return o=null,c+``||null}return c.source=function(e){return arguments.length?(t=e,c):t},c.target=function(e){return arguments.length?(n=e,c):n},c.x=function(e){return arguments.length?(r=typeof e==`function`?e:lc(+e),c):r},c.y=function(e){return arguments.length?(i=typeof e==`function`?e:lc(+e),c):i},c.context=function(t){return arguments.length?(t==null?a=o=null:o=e(a=t),c):a},c}function Ac(){return kc(Ec)}function jc(e){return wc().x(function(t){return e*t.x}).y(function(t){return e*t.y}).curve(xc)([{x:0,y:0},{x:1,y:.5},{x:1,y:-.5},{x:0,y:0}])}function Mc(e,t,n,r,i,a,o=0){e.each(function(){let e=R(this),s=e.select(t).node(),c=e.select(n).node();if(s&&c&&s.textContent){let t=s.getBBox(),n=Number(e.attr(`data-dx`));if(n!=0){let e=t.x,i=-n+r,o=a-r-t.width-n;e<i?(t.x=i,R(s).attr(`x`,i-e)):e>o&&(t.x=o,R(s).attr(`x`,o-e))}R(c).attr(`width`,t.width+r*2).attr(`height`,t.height+i*2).attr(`x`,t.x-r).attr(`y`,t.y-i).attr(`rx`,o).attr(`ry`,o)}})}function Nc(e,t=!1){if(Rn())return;e.reverse();let n=[],r=[];for(let i of e){let e=t&&i.classList.contains(`link`)?r:n;e.includes(i)||e.push(i)}if(r.reverse(),n.reverse(),Pc(r))for(let e of r)e.parentNode?.appendChild(e);if(Pc(n))for(let e of n)e.parentNode?.appendChild(e)}function Pc(e){let t=e[0];if(!t)return!1;let n=e.length,r=t.parentNode?.childNodes??[];for(let t=0;t<n;++t)if(r[r.length-n+t]!=e[t])return!0;return!1}function Fc(e,t,n,r,i={}){let a=e.container.getBoundingClientRect().width;function o(e){return t.select(`.node[data-id='`+e+`']`)}function s(){return t.select(`[data-root]`)}let c;function l(e){let n=e.id,s=n==r?`root`:`node`,l=o(n).attr(`data-highlight`,s).classed(`hovered`,!0);l.select(`.text`).text(e.desc),Mc(l,`.text`,`.text-bg`,i.denseLeaves?2:5,2,a);let u=t.selectAll(`[data-source-id='`+n+`'],[data-target-id='`+n+`']`).attr(`data-highlight`,s);Mc(u,`.desc`,`.desc-bg`,3,2,a),window.clearTimeout(c);let d=[];u.each(function(e){d.push(this);function t(e){e!=n&&d.push(o(e).node())}t(e.source.id),t(e.target.id)}),d.push(l.node()),Nc(d,i.separateLinksContainer)}function u(){let e=[];t.select(`.node`).each(function(){e.push(this)}),e.push(s().node()),Nc(e)}function d(e){t.selectAll(`[data-highlight]`).attr(`data-highlight`,`false`).classed(`hovered`,!1),t.select(`.node[data-id='`+e.id+`']`).select(`.text`).text(e.text).attr(`x`,0),c=window.setTimeout(u,1e3)}let f=t.select(`g.nodes`);f.empty()&&(f=t.append(`g`).attr(`class`,`nodes`)),f.style(`pointer-events`,`all`);let p=f.selectAll(`.node`).data(n),m=e=>e.clickable||!e.root,h=p.enter().append(`svg:a`).attr(`class`,`node`).attr(`data-leaf`,e=>!e.children||e.children.length==0).attr(`data-id`,e=>e.id).attr(`data-root`,e=>e.root).attr(`data-old`,e=>e.old??null).attr(`data-warning`,e=>e.warning??null).attr(`data-color`,e=>e.color??null).attr(`data-d`,e=>e.distance??null).attr(`xlink:href`,function(e){return e.url||``}).attr(`data-clickable`,t=>m(t)&&e.getClickHandler(t.type)?!0:null).on(`click`,function(t,n){m(n)&&e.invokeClickHandler(n.query,n.type)&&t.preventDefault()});return Ln(`mouseover`,f.node(),h,l),Ln(`mouseout`,f.node(),h,d),h.append(`circle`).attr(`r`,20),h.append(`text`).attr(`class`,`icon`).text(e=>e.icon),h.append(`rect`).attr(`class`,`text-bg`),h.append(`text`).attr(`class`,`text`).text(e=>e.text),h.filter(`[data-warning]`).append(`circle`).attr(`r`,7).attr(`data-warn`,!0).attr(`transform`,`translate(20, -20)`),h.filter(`[data-warning]`).append(`text`).attr(`r`,8).attr(`class`,`icon`).text(``).attr(`data-warn`,!0).append(`title`).text(e=>e.warning??``),u(),h}function Ic(e,t,n){let r=e.container.getBoundingClientRect().width,i=t.select(`g.nodes`),a=t.append(`g`).attr(`class`,`highlight-container`).attr(`style`,`pointer-events: none;`);function o(e){return t.select(`.node[data-id='`+e+`']`)}function s(){return t.select(`[data-root]`)}let c;function l(e){let t=e.getAttribute(`data-id`),a=e.getAttribute(`data-root`)==`true`?`root`:`node`;R(e).attr(`data-highlight`,a).classed(`hovered`,!0);var s=e.querySelector(`.text`);s&&(s.textContent=e.getAttribute(`data-description`)),Mc(R(e),`.text`,`.text-bg`,n?2:5,2,r);let l=i.selectAll(`.link[data-source-id='`+t+`'],.link[data-target-id='`+t+`']`).attr(`data-highlight`,a);Mc(l,`.desc`,`.desc-bg`,3,2,r),window.clearTimeout(c);let u=[];l.each(function(){var e=this;u.push(e);function n(e){e!=t&&u.push(o(e).node())}n(e.getAttribute(`data-source-id`)||``),n(e.getAttribute(`data-target-id`)||``)}),u.push(e),Nc(u)}function u(e){let t=R(e).clone(!0);t.attr(`data-highlight`,`link`).selectAll(`:not(.desc, .desc-bg)`).remove();let n=t.node();n&&(a.html(null),a.node()?.append(n))}function d(){t.selectAll(`[data-highlight]`).attr(`data-highlight`,`false`).classed(`hovered`,!1)}function f(){let e=[];t.select(`.node`).each(function(){e.push(this)}),e.push(s().node()),Nc(e)}function p(e){d();let n=e.getAttribute(`data-id`);t.select(`.node[data-id='`+n+`']`).select(`.text`).text(e.getAttribute(`data-text`)||``).attr(`x`,0),c=window.setTimeout(f,1e3)}i.selectAll(`.node`).each(function(){let t=this,n=t.getAttribute(`data-root`)==`true`,r=e.getLinkifier();if(!n){let n=t.getAttribute(`data-type`)||``,i=t.getAttribute(`data-query`)||``;R(t).attr(`xlink:href`,r(t)).attr(`data-clickable`,e.getClickHandler(n)?`true`:`false`).on(`click`,function(t){e.invokeClickHandler(i,n)&&t.preventDefault()})}}),i.selectAll(`.node`).on(`mouseover`,function(){l(this)}).on(`mouseout`,function(){p(this)}),i.selectAll(`.link`).on(`mouseover`,function(){u(this)}).on(`mouseout`,function(){d()}),f()}var Lc=function(e,t){let n=e.container;R(n).selectAll(`.shake`).style(`display`,`none`);let r=t.size>=10,i=t.scope,a=R(n).append(`svg`).attr(`class`,t.svgClass).attr(`data-dense`,r).attr(`aria-label`,t.desc);function o(){let o=n.getBoundingClientRect().width,s={left:-o/6,right:o/6,top:-20,bottom:38},c={left:-8,right:o/3-8,top:-8,bottom:8},l=r?c:s,u=s,d=[s.bottom-s.top,s.right-s.left],f=[c.bottom-c.top,c.right-c.left],p=r?f:d,m=r?7:12,h=1.5,g=As().nodeSize(p).separation(function(e,t){let n=e.parent==t.parent;if(r){if(n)return 1;{let n=(e.parent.children.length+t.parent.children.length)*1/2+h,r=5-n;return n<5?h+r:h}}return n?1:1.4})(Ks(t)),_=e=>({...e.data,x:e.x,y:e.y,depth:e.depth}),v=g.descendants().map(_),y=g.links().map(e=>({target:_(e.target),source:_(e.source)})),b,x=0;for(let e of v)e.root&&(b=e,i===`publication`&&(e.clickable=!0)),x=Math.max(x,e.depth);a.select(`g`).remove();let S=a.append(`g`),C=S.append(`g`).selectAll(`.link`).data(y),w=e=>e.target.edge,T=C.enter().append(`g`).attr(`class`,`link`).attr(`data-source-id`,e=>e.source.id).attr(`data-target-id`,e=>e.target.id).attr(`data-old`,e=>w(e)?.old??null).attr(`data-warn`,e=>w(e)?.warn??null).attr(`data-color`,e=>w(e)?.color??null).attr(`data-head`,e=>w(e)?.head??null).attr(`data-tail`,e=>w(e)?.tail??null);T.append(`path`).attr(`class`,`line`),T.append(`path`).attr(`class`,`head`).attr(`d`,jc(m)),T.append(`path`).attr(`class`,`tail`).attr(`d`,jc(m));let E=Fc(e,S,v,b?b.id:void 0,{denseLeaves:r,separateLinksContainer:!0}),D=(e,t)=>`translate(`+e+`,`+t+`)`,O=function(e){let t=e=>!e.children||e.children.length===0,n=e=>t(e)?l:u,i=e=>e.y+n(e).left,a=e=>e.y+n(e).right,o=e=>e.x+n(e).top,s=e=>e.x+n(e).bottom,c=[Kr(v,i),Gr(v,a)],d=Kr(v,o),f=Gr(v,s),p=Mr(v,e=>e.x),m=p[1]-p[0],h=es().domain(c).range([0,e]),g=es().domain(p).range([0,m]),_=e=>h(r&&t(e)?i(e):e.y),y=e=>g(e.x),b=e=>D(_(e),y(e)),x=Ac().x(e=>_(e)).y(e=>y(e)),S=Math.max(10,(150-(f-d))/2),C=f-p[1]+S,w=p[0]-d+S;return{height:m+C+w,diagonal:x,nodeTransform:b,headTransform:e=>b(e.target)+` `+D(r&&t(e.target)?0:-20,0)+` rotate(180)`,tailTransform:e=>b(e.source)+` `+D(20,0),canvasTransform:D(0,w)}}(o);Pn(n,O.height),a.attr(`width`,`100%`).attr(`height`,`100%`).attr(`viewBox`,`0 0 ${o} ${O.height}`),S.attr(`transform`,O.canvasTransform),E.attr(`transform`,O.nodeTransform),T.select(`.line`).attr(`d`,O.diagonal),T.select(`.head`).attr(`transform`,O.headTransform),T.select(`.tail`).attr(`transform`,O.tailTransform)}return{draw:o}},Rc=function(e,t){if(!t.item||t.item.length==0)throw Error(`no data`);let n=[];for(let r of t.item){let t=r.data,i=document.createElement(`div`),a=R(i).attr(`data-item`,r.item).attr(`class`,`root`),o=a.append(`div`).attr(`class`,`box-parent`);e.showItem(r.title,i);let s=R(e.nodeValue(`legend1`)??null);s.empty()&&(s=a.selectAll(`.legend1`));let c=R(e.nodeValue(`legend2`)??null);c.empty()&&(c=a.selectAll(`.legend2`));let l=R(e.nodeValue(`legend3`)??null);if(l.empty()&&(l=a.selectAll(`.legend3`)),s.empty()||c.empty()||l.empty()){let e=a.selectAll(`.legends`);e.empty()&&(e=a.append(`div`).attr(`class`,`legends`)),s.empty()&&(s=e.append(`span`).attr(`class`,`legend1`)),c.empty()&&(c=e.append(`span`).attr(`class`,`legend2`)),l.empty()&&(l=e.append(`span`).attr(`class`,`legend3`))}e.booleanValue(`hideLegend1`)&&s.classed(`hidden`,!0),e.booleanValue(`hideLegend2`)&&c.classed(`hidden`,!0),e.booleanValue(`hideLegend3`)&&l.classed(`hidden`,!0),l.text($a(`As of: `,`Stand: `,`Date de `)+r.date);let u=e.i18n().createNumberFormatter(t.numberFormat,`,.3r`),d=null,f=function(e,t){t.children||(!d||d==t)&&(o.classed(`highlighting`,!0),Mn(`.highlighted`).classed(`highlighted`,!1),R(e).classed(`highlighted`,!0),g(t))},p=function(){d||(o.classed(`highlighting`,!1),Mn(`.highlighted`).classed(`highlighted`,!1),g(t.default??t.root))},m=function(e,t){d==t?(d=null,p()):(d=t,f(e,t))},h=function(e){return!!e&&e.indexOf(`Fehlbetrag`)>=0},g=function(e){s.text((e.formattedValue??u(e.raw))+` `),c.text(e.name)};p(),function(t){function n(e,t,r,i){e.color=t.toString();let a=r;if(e.children){let o=e.children.length+1;if(o>0){let s=(i-r)/o;for(let r of e.children)t.h=a%360,n(r,t,a,a+s),a+=s}}}let r=e.getRootColor();n(t,r,r.h,r.h+360)}(t.root),n.push(function(){let e=o.node().getBoundingClientRect();if(e.width==0||e.height==0)return;let n=Ks(t.root).sum(e=>e.children?0:Math.abs(e.raw)).sort((e,t)=>Tr(e.value,t.value)),r=cc().size(Nn(e)).round(!0)(n),i=e=>e.x1-e.x0,a=e=>e.y1-e.y0,s=o.selectAll(`.box`).data(r.descendants()),c=s.enter().append(`div`).attr(`class`,`box`).on(`mouseenter`,function(e,t){f(this,t.data)}).on(`mouseleave`,p).on(`click`,function(e,t){m(this,t.data)}).attr(`data-neg`,e=>!!(e.data.raw<0||h(e.data.name)));c.append(`div`).attr(`class`,`value`).text(e=>e.children?null:e?.data?.formattedValue??u(e.value)),c.append(`div`).attr(`class`,`desc`).text(e=>e.children?null:e.data.name),c.merge(s).attr(`data-small`,e=>i(e)<40||a(e)<32||null).attr(`data-leaf`,e=>!e.children||null).style(`left`,e=>e.x0+`px`).style(`top`,e=>e.y0+`px`).style(`width`,e=>Math.max(0,i(e)-1)+`px`).style(`height`,e=>Math.max(0,a(e)-1)+`px`).style(`background`,e=>e.children?`white`:e.data.color)})}return{draw:function(){for(let e of n)e()}}},zc=function(e,t){let n=t&&t.financials&&t.financials.filter(e=>e.items.length>0),r=e.isReverseChronology();if(n&&n.length>0&&n[0].items.length>0){let a=document.createElement(`table`),o=R(a).attr(`class`,`ui bizq very compact celled small unstackable striped selectable first stuck table`),s=o.append(`thead`).append(`tr`),c=o.append(`tbody`),l=o.append(`tfoot`).append(`tr`);var i={};for(let e of n){e.itemsById={};for(let t of e.items)e.itemsById[t.id]=t,i[t.id]=t}let u=n[n.length-1];r&&n.reverse();let d=e.stringValue(`title`),f=s.append(`th`).attr(`class`,`first`);e.booleanValue(`hideTitleCell`)||f.text(d),f.append(`a`).attr(`href`,t.csvUrl).attr(`download`,`download`).attr(`title`,`CSV/Excel Download`).classed(`screen-only`,!0).append(`i`).attr(`class`,`download icon`);for(let e of n)s.append(`th`).text(e.formattedDate);for(let t in i){let r=c.append(`tr`).attr(`class`,`active-on-hover`),a=i[t];r.append(`td`).text(a.name);for(let i of n){let n=i.itemsById[t],a=r.append(`td`);if(n){let t=n.value>=0?`pos`:`neg`,r=n.formattedValue;a.append(`span`).attr(`class`,t+` value`).text(r),n.estimate&&a.append(`a`).attr(`href`,`javascript:void()`).attr(`title`,e.trilingual(`Unsafe value (estimation or indirect determination)`,`Indirekte oder unsichere Bestimmungsmethode`,`Valeur non sûre (estimation ou détermination indirecte)`)).html(` *&nbsp;`),n.note&&a.append(`span`).attr(`class`,`note`).text(n.note)}else a.append(`span`).text(`N/A`)}}if(u.source){if(u.source.auditorName){let t=c.append(`tr`).attr(`class`,`active-on-hover`);t.append(`td`).text(e.trilingual(`Auditor`,`Prüfer`,`Auditeur`));for(let e of n){let n=e.source&&e.source.auditorName;t.append(`td`).append(`span`).attr(`class`,`auditor value`).text(n||`N/A`)}}if(u.source&&u.source.publicationDate){let t=c.append(`tr`).attr(`class`,`active-on-hover`);t.append(`td`).text(e.trilingual(`Publication date`,`Veröffentlichungs­datum`,`Date de publication`));for(let r of n){let n=r.source&&r.source.publicationDate;t.append(`td`).append(`span`).attr(`class`,`date value`).text(n?e.i18n().dateFormatter(new Date(n)):`N/A`)}}l.append(`th`).text(e.trilingual(`Source`,`Quelle`,`Source`));let t=e.handlerValue(`sourceClick`);for(let e of n){let n=l.append(`th`);n.html(e.note.html),t&&n.selectAll(`a`).attr(`href`,`javascript:void(0);`).on(`click`,function(n){n.preventDefault(),t(e.source)})}}e.showItem(d,a)}else throw Error(`no data available`);return D},Bc=function(e,t){if(t.children)return Lc(e,t);if(!t.nodes||t.nodes.length<2||!t.links||t.links.length===0)return{empty:!0,draw(){}};let n=t.type==`orgchart`,r=e.container;if(t.html)return r.innerHTML=t.html,t.legendHtml||R(r).selectAll(`foreignObject:has(> .extended-legend-button)`).remove(),Mc(R(r).selectAll(`.link`),`.desc`,`.desc-bg`,3,3,1e3),Ic(e,R(r).select(`svg`),!1),{draw:function(){}};let i,a={},o=t.nodes.length,s=!1;for(let e of t.nodes)e.root&&(i=e),e.warning&&(s=!0),a[e.id]=e;for(let e of t.links)e.source=a[e.source],e.target=a[e.target],(!e.source||!e.target)&&$.log(`error`,`broken link: `,e);let c=R(r).append(`svg`).attr(`width`,`100%`).attr(`height`,`100%`).attr(`aria-label`,$a(`Network`,`Netzwerk`,`Réseau`)),l=c.append(`g`).attr(`class`,`nodes`).selectAll(`.link`).data(t.links),u=c.append(`g`).attr(`class`,`legend`);n||(u.append(`line`).attr(`data-old`,!1),u.append(`line`).attr(`data-old`,!0)),s&&u.append(`line`).attr(`data-warn`,!0),u.append(`text`).attr(`data-old`,!1).text(e.trilingual(`currently`,`aktuell`,`actuel`)),u.append(`text`).attr(`data-old`,!0).text(e.trilingual(`previously`,`vormals`,`auparavant`)),s&&u.append(`text`).attr(`data-warn`,!0).text(e.trilingual(`politically exposed`,`politisch exponiert`,`politiquement exposé`));function d(e){if(e.type==`SameAddress`)return`3, 3`;if(e.type==`CommonFiling`)return`6, 6`}let f=l.enter().append(`g`).attr(`class`,`link`).attr(`data-source-id`,e=>e.source.id).attr(`data-target-id`,e=>e.target.id).attr(`data-head`,e=>e.head).attr(`data-tail`,e=>e.tail).attr(`data-old`,e=>e.old).attr(`data-warn`,e=>e.warn).attr(`data-length`,e=>e.length).attr(`data-helper`,e=>e.helper);if(n)for(var p=0;p<3;++p)f.append(`line`).attr(`class`,`line`).attr(`class`,`segment`+p).attr(`stroke-width`,1).attr(`stroke`,`#000000`);else f.append(`line`).attr(`class`,`line`).attr(`stroke-width`,1).attr(`stroke`,`#000000`).attr(`stroke-dasharray`,e=>d(e));f.append(`rect`).attr(`class`,`desc-bg`),f.append(`text`).attr(`class`,`desc`).attr(`text-anchor`,`middle`).text(e=>e.text),f.append(`path`).attr(`class`,`head`).attr(`d`,jc(12)),f.append(`path`).attr(`class`,`tail`).attr(`d`,jc(12));let m=Fc(e,c,t.nodes,i.id),h=0,g=!0,_=function(){if(g||h++%3!=0)return;function e(e,t){return(t[1]-t[0])/(e[1]-e[0])}function i(e){return(e[1]+e[0])/2}let a=r.getBoundingClientRect(),s=a.width,l=a.height,u=Mr(t.nodes,e=>e.x),d=Mr(t.nodes,e=>e.y),p=[100,s-100],_=n?d:[40,(o==2?120:l)-60],v=i(u),y=i(p),b=i(d),x=i(_),S=e(u,p),C=e(d,_),w=o==2?2:t.diameter*1.1;S=Math.min(S,C*w),o==2&&(C=0,S*=2,Pn(r,120));let T=e=>(e-v)*S+y,E=e=>(e-b)*C+x,D=e=>T(e.source.x),O=e=>T(e.target.x),ee=e=>E(e.source.y),te=e=>E(e.target.y),k=e=>O(e)-D(e),A=e=>te(e)-ee(e),j=e=>(O(e)-D(e))/2,M=e=>(te(e)-ee(e))/2,ne=e=>180/Math.PI*Math.atan2(A(e),k(e)),re=e=>{let t=180/Math.PI*Math.atan2(A(e),k(e));return t>90&&t<270?t-=180:t<-90&&t>-270&&(t+=180),t};f.attr(`transform`,e=>`translate(`+D(e)+` `+ee(e)+`)`),f.select(`line`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,k).attr(`y2`,A),f.select(`.segment0`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,0).attr(`y2`,M),f.select(`.segment1`).attr(`x1`,0).attr(`y1`,M).attr(`x2`,k).attr(`y2`,M),f.select(`.segment2`).attr(`x1`,k).attr(`y1`,M).attr(`x2`,k).attr(`y2`,A);let N=e=>`rotate(`+re(e)+` `+j(e)+` `+M(e)+` ) translate(0 -7)`;if(f.select(`.desc`).attr(`x`,j).attr(`y`,M).attr(`transform`,N),f.select(`.desc-bg`).attr(`x`,j).attr(`y`,M).attr(`transform`,N),!n){let e=e=>k(e)+0,t=e=>A(e)+0;f.select(`.tail`).attr(`transform`,e=>`rotate(`+ne(e)+`) translate(20 0)`),f.select(`.head`).attr(`transform`,n=>`translate(`+e(n)+` `+t(n)+`) rotate(`+(180+ne(n))+`) translate(20 0)`)}let P=_[1]+20,ie=P-18,ae=P+18;c.selectAll(`.legend line`).attr(`x1`,50).attr(`x2`,90),c.selectAll(`.legend line[data-old='false'`).attr(`y1`,ie).attr(`y2`,ie),c.selectAll(`.legend line[data-old='true'`).attr(`y1`,P).attr(`y2`,P),c.selectAll(`.legend line[data-warn='true'`).attr(`y1`,ae).attr(`y2`,ae),c.selectAll(`.legend text`).attr(`x`,95),c.selectAll(`.legend text[data-old='false'`).attr(`y`,ie+3),c.selectAll(`.legend text[data-old='true'`).attr(`y`,P+3),c.selectAll(`.legend text[data-warn='true'`).attr(`y`,ae+3),Mc(f,`.desc`,`.desc-bg`,3,3,1e3),m.attr(`data-dx`,e=>T(e.x)).attr(`transform`,e=>`translate(`+T(e.x)+`,`+E(e.y)+`)`)};function v(){let[e,t]=Nn(r.getBoundingClientRect());c.attr(`viewBox`,`0 0 `+e+` `+t),g=!1,_()}return{draw:v}},Vc={value:()=>{}};function Hc(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new Uc(n)}function Uc(e){this._=e}function Wc(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}Uc.prototype=Hc.prototype={constructor:Uc,on:function(e,t){var n=this._,r=Wc(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Gc(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=Kc(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Kc(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Uc(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Gc(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Kc(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Vc,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var qc=0,Jc=0,Yc=0,Xc=1e3,Zc,Qc,$c=0,el=0,tl=0,nl=typeof performance==`object`&&performance.now?performance:Date,rl=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function il(){return el||=(rl(al),nl.now()+tl)}function al(){el=0}function ol(){this._call=this._time=this._next=null}ol.prototype=sl.prototype={constructor:ol,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?il():+n)+(t==null?0:+t),!this._next&&Qc!==this&&(Qc?Qc._next=this:Zc=this,Qc=this),this._call=e,this._time=n,fl()},stop:function(){this._call&&(this._call=null,this._time=1/0,fl())}};function sl(e,t,n){var r=new ol;return r.restart(e,t,n),r}function cl(){il(),++qc;for(var e=Zc,t;e;)(t=el-e._time)>=0&&e._call.call(void 0,t),e=e._next;--qc}function ll(){el=($c=nl.now())+tl,qc=Jc=0;try{cl()}finally{qc=0,dl(),el=0}}function ul(){var e=nl.now(),t=e-$c;t>Xc&&(tl-=t,$c=e)}function dl(){for(var e,t=Zc,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Zc=n);Qc=e,fl(r)}function fl(e){qc||(Jc&&=clearTimeout(Jc),e-el>24?(e<1/0&&(Jc=setTimeout(ll,e-nl.now()-tl)),Yc&&=clearInterval(Yc)):(Yc||=($c=nl.now(),setInterval(ul,Xc)),qc=1,rl(ll)))}function pl(e,t,n){var r=new ol;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var ml=Hc(`start`,`end`,`cancel`,`interrupt`),hl=[];function gl(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;vl(e,n,{name:t,index:r,group:i,on:ml,tween:hl,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function _l(e,t){var n=X(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Y(e,t){var n=X(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function X(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function vl(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=sl(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return pl(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(pl(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function yl(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function bl(e){return this.each(function(){yl(this,e)})}function xl(e,t){var n,r;return function(){var i=Y(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Sl(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Y(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Cl(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=X(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?xl:Sl)(n,e,t))}function wl(e,t,n){var r=e._id;return e.each(function(){var e=Y(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return X(e,r).value[t]}}function Tl(e,t){var n;return(typeof t==`number`?J:t instanceof ge?yo:(n=ge(t))?(t=n,yo):ko)(e,t)}function El(e){return function(){this.removeAttribute(e)}}function Dl(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ol(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function kl(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Al(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function jl(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Ml(e,t){var n=Pe(e),r=n===`transform`?Bo:Tl;return this.attrTween(e,typeof t==`function`?(n.local?jl:Al)(n,r,wl(this,`attr.`+e,t)):t==null?(n.local?Dl:El)(n):(n.local?kl:Ol)(n,r,t))}function Nl(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Pl(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Fl(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Pl(e,i)),n}return i._value=t,i}function Il(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Nl(e,i)),n}return i._value=t,i}function Ll(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=Pe(e);return this.tween(n,(r.local?Fl:Il)(r,t))}function Rl(e,t){return function(){_l(this,e).delay=+t.apply(this,arguments)}}function zl(e,t){return t=+t,function(){_l(this,e).delay=t}}function Bl(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Rl:zl)(t,e)):X(this.node(),t).delay}function Vl(e,t){return function(){Y(this,e).duration=+t.apply(this,arguments)}}function Hl(e,t){return t=+t,function(){Y(this,e).duration=t}}function Ul(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Vl:Hl)(t,e)):X(this.node(),t).duration}function Wl(e,t){if(typeof t!=`function`)throw Error();return function(){Y(this,e).ease=t}}function Gl(e){var t=this._id;return arguments.length?this.each(Wl(t,e)):X(this.node(),t).ease}function Kl(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Y(this,e).ease=n}}function ql(e){if(typeof e!=`function`)throw Error();return this.each(Kl(this._id,e))}function Jl(e){typeof e!=`function`&&(e=Ke(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Z(r,this._parents,this._name,this._id)}function Yl(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Z(o,this._parents,this._name,this._id)}function Xl(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function Zl(e,t,n){var r,i,a=Xl(t)?_l:Y;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Ql(e,t){var n=this._id;return arguments.length<2?X(this.node(),n).on.on(e):this.each(Zl(n,e,t))}function $l(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function eu(){return this.on(`end.remove`,$l(this._id))}function tu(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=ze(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,gl(l[f],t,n,f,l,X(u,n)));return new Z(a,this._parents,t,n)}function nu(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Ue(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=X(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&gl(p,t,n,h,f,m);a.push(f),o.push(u)}return new Z(a,o,t,n)}var ru=kn.prototype.constructor;function iu(){return new ru(this._groups,this._parents)}function au(e,t){var n,r,i;return function(){var a=It(this,e),o=(this.style.removeProperty(e),It(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function ou(e){return function(){this.style.removeProperty(e)}}function su(e,t,n){var r,i=n+``,a;return function(){var o=It(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function cu(e,t,n){var r,i,a;return function(){var o=It(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),It(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function lu(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Y(this,e),l=c.on,u=c.value[a]==null?s||=ou(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function uu(e,t,n){var r=(e+=``)==`transform`?zo:Tl;return t==null?this.styleTween(e,au(e,r)).on(`end.style.`+e,ou(e)):typeof t==`function`?this.styleTween(e,cu(e,r,wl(this,`style.`+e,t))).each(lu(this._id,e)):this.styleTween(e,su(e,r,t),n).on(`end.style.`+e,null)}function du(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function fu(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&du(e,a,n)),r}return a._value=t,a}function pu(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,fu(e,t,n??``))}function mu(e){return function(){this.textContent=e}}function hu(e){return function(){var t=e(this);this.textContent=t??``}}function gu(e){return this.tween(`text`,typeof e==`function`?hu(wl(this,`text`,e)):mu(e==null?``:e+``))}function _u(e){return function(t){this.textContent=e.call(this,t)}}function vu(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&_u(r)),t}return r._value=e,r}function yu(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,vu(e))}function bu(){for(var e=this._name,t=this._id,n=Cu(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=X(c,t);gl(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Z(r,this._parents,e,n)}function xu(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Y(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var Su=0;function Z(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Cu(){return++Su}var Q=kn.prototype;Z.prototype={constructor:Z,select:tu,selectAll:nu,selectChild:Q.selectChild,selectChildren:Q.selectChildren,filter:Jl,merge:Yl,selection:iu,transition:bu,call:Q.call,nodes:Q.nodes,node:Q.node,size:Q.size,empty:Q.empty,each:Q.each,on:Ql,attr:Ml,attrTween:Ll,style:uu,styleTween:pu,text:gu,textTween:yu,remove:eu,tween:Cl,delay:Bl,duration:Ul,ease:Gl,easeVarying:ql,end:xu,[Symbol.iterator]:Q[Symbol.iterator]};function wu(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Tu={time:null,delay:0,duration:250,ease:wu};function Eu(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Du(e){var t,n;e instanceof Z?(t=e._id,e=e._name):(t=Cu(),(n=Tu).time=il(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&gl(c,e,t,l,o,n||Eu(c,t));return new Z(r,this._parents,e,t)}kn.prototype.interrupt=bl,kn.prototype.transition=Du;var Ou=o(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.labella=r():n.labella=r()})(e,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p=``,t(0)}([function(e,t,n){"use strict";e.exports={Node:n(1),Force:n(2),Distributor:n(3),Renderer:n(10)}},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();e.exports=function(){function e(t,r,i){n(this,e),this.idealPos=t,this.currentPos=t,this.width=r,this.data=i,this.layerIndex=0}return r(e,[{key:`distanceFrom`,value:function(e){var t=this.width/2,n=e.width/2;return Math.max(this.currentPos-t,e.currentPos-n)-Math.min(this.currentPos+t,e.currentPos+n)}},{key:`moveToIdealPosition`,value:function(){return this.currentPos=this.idealPos,this}},{key:`displacement`,value:function(){return this.idealPos-this.currentPos}},{key:`overlapWithNode`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this.distanceFrom(e)-t<0}},{key:`overlapWithPoint`,value:function(e){var t=this.width/2;return e>=this.currentPos-t&&e<=this.currentPos+t}},{key:`positionBefore`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.currentLeft()-this.width/2-t}},{key:`positionAfter`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.currentRight()+this.width/2+t}},{key:`currentRight`,value:function(){return this.currentPos+this.width/2}},{key:`currentLeft`,value:function(){return this.currentPos-this.width/2}},{key:`idealRight`,value:function(){return this.idealPos+this.width/2}},{key:`idealLeft`,value:function(){return this.idealPos-this.width/2}},{key:`createStub`,value:function(t){var n=new e(this.idealPos,t,this.data);return n.currentPos=this.currentPos,n.child=this,this.parent=n,n}},{key:`removeStub`,value:function(){return this.parent&&=(this.parent.child=null,null),this}},{key:`isStub`,value:function(){return!!this.child}},{key:`getPathToRoot`,value:function(){for(var e=[],t=this;t;)e.push(t),t=t.parent;return e}},{key:`getPathFromRoot`,value:function(){return this.getPathToRoot().reverse()}},{key:`getPathToRootLength`,value:function(){for(var e=0,t=this;t;){var n=t.parent?t.parent.currentPos:t.idealPos;e+=Math.abs(t.currentPos-n),t=t.parent}return e}},{key:`getRoot`,value:function(){for(var e=this,t=this;t;)e=t,t=t.parent;return e}},{key:`getLayerIndex`,value:function(){return this.layerIndex}},{key:`clone`,value:function(){var t=new e(this.idealPos,this.width,this.data);return t.currentPos=this.currentPos,t.layerIndex=this.layerIndex,t}}]),e}()},function(e,t,n){"use strict";var r=n(3),i=n(4),a=n(8),o={nodeSpacing:3,minPos:0,maxPos:null,algorithm:`overlap`,removeOverlap:!0,density:.85,stubWidth:1},s=function(e){var t={},n=i.extend({},o),s=new r,c=[],l=null;return t.nodes=function(e){return arguments.length?(c=e,l=[e.concat()],t):c},t.getLayers=function(){return l},t.options=function(e){if(!arguments.length)return n;n=i.extend(n,e);var a=i.pick(n,Object.keys(r.DEFAULT_OPTIONS));return a.layerWidth=i.isDefined(n.minPos)&&i.isDefined(n.maxPos)?n.maxPos-n.minPos:null,s.options(a),t},t.options(e),t.compute=function(){var e=i.pick(n,Object.keys(a.DEFAULT_OPTIONS));return c.forEach(function(e){e.removeStub()}),l=s.distribute(c),l.map(function(t,r){t.forEach(function(e){e.layerIndex=r}),n.removeOverlap&&a(t,e)}),t},t.start=function(){console.log(`[warning] force.start() is deprecated. Please use force.compute() instead.`)},t};s.DEFAULT_OPTIONS=o,e.exports=s},function(e,t,n){"use strict";var r=n(4),i=n(6),a={algorithm:`overlap`,layerWidth:1e3,density:.75,nodeSpacing:3,stubWidth:1},o=function(e){var t={};e=r.extend({},a,e),t.options=function(n){return arguments.length?(e=r.extend(e,n),t):e},t.computeRequiredWidth=function(t){return r.sum(t,function(t){return t.width+e.nodeSpacing})-e.nodeSpacing},t.maxWidthPerLayer=function(){return e.density*e.layerWidth},t.needToSplit=function(e){return t.estimateRequiredLayers(e)>1},t.estimateRequiredLayers=function(n){return e.layerWidth?Math.ceil(t.computeRequiredWidth(n)/t.maxWidthPerLayer()):1};var n={simple:function(n){for(var r=t.estimateRequiredLayers(n),i=[],a=0;a<r;a++)i.push([]);return n.forEach(function(t,n){var a=n%r;i[a].push(t);for(var o=t,s=a-1;s>=0;s--)o=o.createStub(e.stubWidth),i[s].push(o)}),i},roundRobin:function(e){return[]},overlap:function(n){for(var r=[],i=t.maxWidthPerLayer(),a=n.concat(),o=t.computeRequiredWidth(a);o>i;){t.countIdealOverlaps(a);var s=a.concat(),c=o;for(a=[];s.length>2&&c>i;){s.sort(function(e,t){return t.overlapCount-e.overlapCount});var l=s.shift();c-=l.width,c+=e.stubWidth,l.overlaps.forEach(function(e){e.overlapCount--}),a.push(l)}r.push(s),o=t.computeRequiredWidth(a)}a.length>0&&r.push(a);for(var u=r.length-1;u>=1;u--)for(var d=r[u],f=0;f<d.length;f++){var p=d[f];if(!p.isStub())for(var m=p,h=u-1;h>=0;h--)m=m.createStub(e.stubWidth),r[h].push(m)}return r}};return t.countIdealOverlaps=function(t){var n=new i(e.layerWidth/2);return t.forEach(function(e){n.add([e.idealLeft(),e.idealRight(),e])}),t.forEach(function(e){var t=n.search(e.idealLeft(),e.idealRight());e.overlaps=t.map(function(e){return e.data[2]}),e.overlapCount=t.length}),t},t.distribute=function(i){if(!i||i.length===0)return[];if(e.algorithm==`none`||!r.isDefined(e.algorithm)||!t.needToSplit(i))return[i];var a=i.concat().sort(function(e,t){return e.idealPos-t.idealPos});if(typeof e.algorithm==`function`)return e.algorithm(a,e);if(n.hasOwnProperty(e.algorithm))return n[e.algorithm](a);throw`Unknown algorithm: `+e.algorithm},t};o.DEFAULT_OPTIONS=a,e.exports=o},function(e,t,n){"use strict";var r={isDefined:function(e){return e!=null},last:function(e){return e.length>0?e[e.length-1]:null},pick:function(e,t){return t.reduce(function(t,n){return t[n]=e[n],t},{})},sum:function(e,t){return e.map(t).reduce(function(e,t){return e+t},0)}};r.extend=n(5),e.exports=r},function(e,t){"use strict";var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=function(e){return typeof Array.isArray==`function`?Array.isArray(e):i.call(e)===`[object Array]`},o=function(e){if(!e||i.call(e)!==`[object Object]`)return!1;var t=r.call(e,`constructor`),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!n)return!1;for(var a in e);return a===void 0||r.call(e,a)};e.exports=function e(){var t,r,i,s,c,l,u=arguments[0],d=1,f=arguments.length,p=!1;for(typeof u==`boolean`?(p=u,u=arguments[1]||{},d=2):((u===void 0?`undefined`:n(u))!==`object`&&typeof u!=`function`||u==null)&&(u={});d<f;++d)if(t=arguments[d],t!=null)for(r in t)i=u[r],s=t[r],u!==s&&(p&&s&&(o(s)||(c=a(s)))?(c?(c=!1,l=i&&a(i)?i:[]):l=i&&o(i)?i:{},u[r]=e(p,l,s)):s!==void 0&&(u[r]=s));return u}},function(e,t,n){"use strict";function r(e,t){if(t||={},this.startKey=t.startKey||0,this.endKey=t.endKey||1,this.intervalHash={},this.pointTree=new l({compare:function(e,t){if(e==null)return-1;if(t==null)return 1;var n=e[0]-t[0];return n>0?1:n==0?0:-1}}),this._autoIncrement=0,!e||typeof e!=`number`)throw Error(`you must specify center index as the 2nd argument.`);this.root=new s(e,this)}function i(e,t){return t.end<e.idx?(e.left||=new s(t.start+t.end>>1,this),i.call(this,e.left,t)):e.idx<t.start?(e.right||=new s(t.start+t.end>>1,this),i.call(this,e.right,t)):e.insert(t)}function a(e,t,n){if(e)return t<e.idx?(e.starts.every(function(e){var r=e.start<=t;return r&&n.push(e.result()),r}),a.call(this,e.left,t,n)):t>e.idx?(e.ends.every(function(e){var r=e.end>=t;return r&&n.push(e.result()),r}),a.call(this,e.right,t,n)):void e.starts.map(function(e){n.push(e.result())})}function o(e,t,n){if(t-e<=0)throw Error(`end must be greater than start. start: `+e+`, end: `+t);var r={},i=[];a.call(this,this.root,e+t>>1,i,!0),i.forEach(function(e){r[e.id]=!0});for(var o=this.pointTree.bsearch([e,null]),s=this.pointTree;o>=0&&s[o][0]==e;)o--;var c=this.pointTree.bsearch([t,null]);if(c>=0){for(var l=s.length-1;c<=l&&s[c][0]<=t;)c++;s.slice(o+1,c).forEach(function(e){var t=e[1];r[t]=!0},this),Object.keys(r).forEach(function(r){var i=this.intervalHash[r];n.push(i.result(e,t))},this)}}function s(e){this.idx=e,this.starts=new l({compare:function(e,t){if(e==null)return-1;if(t==null)return 1;var n=e.start-t.start;return n>0?1:n==0?0:-1}}),this.ends=new l({compare:function(e,t){if(e==null)return-1;if(t==null)return 1;var n=e.end-t.end;return n<0?1:n==0?0:-1}})}function c(e,t,n,r){if(this.id=t,this.start=e[n],this.end=e[r],this.data=e,typeof this.start!=`number`||typeof this.end!=`number`)throw Error(`start, end must be number. start: `+this.start+`, end: `+this.end);if(this.start>=this.end)throw Error(`start must be smaller than end. start: `+this.start+`, end: `+this.end)}var l=n(7);r.prototype.add=function(e,t){if(this.intervalHash[t])throw Error(`id `+t+` is already registered.`);if(t==null){for(;this.intervalHash[this._autoIncrement];)this._autoIncrement++;t=this._autoIncrement}var n=new c(e,t,this.startKey,this.endKey);this.pointTree.insert([n.start,t]),this.pointTree.insert([n.end,t]),this.intervalHash[t]=n,this._autoIncrement++,i.call(this,this.root,n)},r.prototype.search=function(e,t){var n=[];if(typeof e!=`number`)throw Error(e+`: invalid input`);if(t==null)a.call(this,this.root,e,n);else{if(typeof t!=`number`)throw Error(e+`,`+t+`: invalid input`);o.call(this,e,t,n)}return n},r.prototype.remove=function(e){},s.prototype.insert=function(e){this.starts.insert(e),this.ends.insert(e)},c.prototype.result=function(e,t){var n={id:this.id,data:this.data};if(typeof e==`number`&&typeof t==`number`){var r=Math.max(this.start,e),i=Math.min(this.end,t)-r;n.rate1=i/(t-e),n.rate2=i/(this.end-this.start)}return n},e.exports=r},function(e,t){"use strict";var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r=function e(){var t=null,r={},i=arguments;[`0`,`1`].forEach(function(e){var a=i[e];Array.isArray(a)?t=a:a&&(a===void 0?`undefined`:n(a))==`object`&&(r=a)}),typeof r.filter==`function`&&(this._filter=r.filter),typeof r.compare==`function`?this._compare=r.compare:typeof r.compare==`string`&&e.compares[r.compare]&&(this._compare=e.compares[r.compare]),this._unique=!!r.unique,r.resume&&t?t.forEach(function(e,t){this.push(e)},this):t&&this.insert.apply(this,t)};r.create=function(e,t){return new r(e,t)},r.prototype=[],r.prototype.constructor=Array.prototype.constructor,r.prototype.insertOne=function(e){var t=this.bsearch(e);return(!this._unique||this.key(e,t)==null)&&!!this._filter(e,t)&&(this.splice(t+1,0,e),t+1)},r.prototype.insert=function(){return Array.prototype.map.call(arguments,function(e){return this.insertOne(e)},this)},r.prototype.remove=function(e){return this.splice(e,1),this},r.prototype.bsearch=function(e){if(!this.length)return-1;for(var t,n=0,r=this.length;r-n>1;){t=Math.floor((n+r)/2);var i=this[t],a=this._compare(e,i);if(a==0)return t;a>0?n=t:r=t}return n==0&&this._compare(this[0],e)>0?-1:n},r.prototype.key=function(e,t){t??=this.bsearch(e);var n=t;if(n==-1||this._compare(this[n],e)<0)return n+1<this.length&&this._compare(this[n+1],e)==0?n+1:null;for(;n>=1&&this._compare(this[n-1],e)==0;)n--;return n},r.prototype.keys=function(e,t){var n=[];t??=this.bsearch(e);for(var r=t;r>=0&&this._compare(this[r],e)==0;)n.push(r),r--;var i=this.length;for(r=t+1;r<i&&this._compare(this[r],e)==0;)n.push(r),r++;return n.length?n:null},r.prototype.unique=function(e){if(e)return this.filter(function(e,t){return t==0||this._compare(this[t-1],e)!=0},this);var t=0;return this.map(function(e,n){return n==0||this._compare(this[n-1],e)!=0?null:n-t++},this).forEach(function(e){e!=null&&this.remove(e)},this),this},r.prototype.toArray=function(){return this.slice()},r.prototype._filter=function(e,t){return!0},r.compares={number:function(e,t){var n=e-t;return n>0?1:n==0?0:-1},string:function(e,t){return e>t?1:e==t?0:-1}},r.prototype._compare=r.compares.string,e.exports=r},function(e,t,n){"use strict";function r(e){var t=new o.Variable(e.targetPos);return t.node=e,t}function i(e,t){if(e.length>0){t=a.extend(s,t),e.forEach(function(e,t){e.targetPos=e.parent?e.parent.currentPos:e.idealPos,e.index=t});for(var n=e.concat().sort(function(e,t){var n=e.targetPos-t.targetPos;if(n!==0)return n;var r=e.isStub()-t.isStub();return r===0?e.index-t.index:r}).map(r),i=[],c=1;c<n.length;c++){var l=n[c-1],u=n[c],d=void 0;d=l.node.isStub()&&u.node.isStub()?(l.node.width+u.node.width)/2+t.lineSpacing:(l.node.width+u.node.width)/2+t.nodeSpacing,i.push(new o.Constraint(l,u,d))}if(a.isDefined(t.minPos)){var f=new o.Variable(t.minPos,1e10),p=n[0];i.push(new o.Constraint(f,p,p.node.width/2)),n.unshift(f)}if(a.isDefined(t.maxPos)){var m=new o.Variable(t.maxPos,1e10),h=a.last(n);i.push(new o.Constraint(h,m,h.node.width/2)),n.push(m)}new o.Solver(n,i).solve(),n.filter(function(e){return e.node}).map(function(e){return e.node.currentPos=Math.round(e.position()),e})}return e}var a=n(4),o=n(9),s={lineSpacing:2,nodeSpacing:3,minPos:0,maxPos:null};i.DEFAULT_OPTIONS=s,e.exports=i},function(e,t){"use strict";var n={},r=function(){function e(e){this.scale=e,this.AB=0,this.AD=0,this.A2=0}return e.prototype.addVariable=function(e){var t=this.scale/e.scale,n=e.offset/e.scale,r=e.weight;this.AB+=r*t*n,this.AD+=r*t*e.desiredPosition,this.A2+=r*t*t},e.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},e}();n.PositionStats=r,n.Constraint=function(){function e(e,t,n,r){r===void 0&&(r=!1),this.left=e,this.right=t,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=e,this.right=t,this.gap=n,this.equality=r}return e.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},e}(),n.Variable=function(){function e(e,t,n){t===void 0&&(t=1),n===void 0&&(n=1),this.desiredPosition=e,this.weight=t,this.scale=n,this.offset=0}return e.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},e.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},e.prototype.visitNeighbours=function(e,t){var n=function(n,r){return n.active&&e!==r&&t(n,r)};this.cOut.forEach(function(e){return n(e,e.right)}),this.cIn.forEach(function(e){return n(e,e.left)})},e}();var i=function(){function e(e){this.vars=[],e.offset=0,this.ps=new r(e.scale),this.addVariable(e)}return e.prototype.addVariable=function(e){e.block=this,this.vars.push(e),this.ps.addVariable(e),this.posn=this.ps.getPosn()},e.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var e=0,t=this.vars.length;e<t;++e)this.ps.addVariable(this.vars[e]);this.posn=this.ps.getPosn()},e.prototype.compute_lm=function(e,t,n){var r=this,i=e.dfdv();return e.visitNeighbours(t,function(t,a){var o=r.compute_lm(a,e,n);a===t.right?(i+=o*t.left.scale,t.lm=o):(i+=o*t.right.scale,t.lm=-o),n(t)}),i/e.scale},e.prototype.populateSplitBlock=function(e,t){var n=this;e.visitNeighbours(t,function(t,r){r.offset=e.offset+(r===t.right?t.gap:-t.gap),n.addVariable(r),n.populateSplitBlock(r,e)})},e.prototype.traverse=function(e,t,n,r){var i=this;n===void 0&&(n=this.vars[0]),r===void 0&&(r=null),n.visitNeighbours(r,function(r,a){t.push(e(r)),i.traverse(e,t,a,n)})},e.prototype.findMinLM=function(){var e=null;return this.compute_lm(this.vars[0],null,function(t){!t.equality&&(e===null||t.lm<e.lm)&&(e=t)}),e},e.prototype.findMinLMBetween=function(e,t){this.compute_lm(e,null,function(){});var n=null;return this.findPath(e,null,t,function(e,t){!e.equality&&e.right===t&&(n===null||e.lm<n.lm)&&(n=e)}),n},e.prototype.findPath=function(e,t,n,r){var i=this,a=!1;return e.visitNeighbours(t,function(t,o){a||o!==n&&!i.findPath(o,e,n,r)||(a=!0,r(t,o))}),a},e.prototype.isActiveDirectedPathBetween=function(e,t){if(e===t)return!0;for(var n=e.cOut.length;n--;){var r=e.cOut[n];if(r.active&&this.isActiveDirectedPathBetween(r.right,t))return!0}return!1},e.split=function(t){return t.active=!1,[e.createSplitBlock(t.left),e.createSplitBlock(t.right)]},e.createSplitBlock=function(t){var n=new e(t);return n.populateSplitBlock(t,null),n},e.prototype.splitBetween=function(t,n){var r=this.findMinLMBetween(t,n);if(r!==null){var i=e.split(r);return{constraint:r,lb:i[0],rb:i[1]}}return null},e.prototype.mergeAcross=function(e,t,n){t.active=!0;for(var r=0,i=e.vars.length;r<i;++r){var a=e.vars[r];a.offset+=n,this.addVariable(a)}this.posn=this.ps.getPosn()},e.prototype.cost=function(){for(var e=0,t=this.vars.length;t--;){var n=this.vars[t],r=n.position()-n.desiredPosition;e+=r*r*n.weight}return e},e}();n.Block=i;var a=function(){function e(e){this.vs=e;var t=e.length;for(this.list=Array(t);t--;){var n=new i(e[t]);this.list[t]=n,n.blockInd=t}}return e.prototype.cost=function(){for(var e=0,t=this.list.length;t--;)e+=this.list[t].cost();return e},e.prototype.insert=function(e){e.blockInd=this.list.length,this.list.push(e)},e.prototype.remove=function(e){var t=this.list.length-1,n=this.list[t];this.list.length=t,e!==n&&(this.list[e.blockInd]=n,n.blockInd=e.blockInd)},e.prototype.merge=function(e){var t=e.left.block,n=e.right.block,r=e.right.offset-e.left.offset-e.gap;t.vars.length<n.vars.length?(n.mergeAcross(t,e,r),this.remove(t)):(t.mergeAcross(n,e,-r),this.remove(n))},e.prototype.forEach=function(e){this.list.forEach(e)},e.prototype.updateBlockPositions=function(){this.list.forEach(function(e){return e.updateWeightedPosition()})},e.prototype.split=function(e){var t=this;this.updateBlockPositions(),this.list.forEach(function(n){var r=n.findMinLM();r!==null&&r.lm<o.LAGRANGIAN_TOLERANCE&&(n=r.left.block,i.split(r).forEach(function(e){return t.insert(e)}),t.remove(n),e.push(r))})},e}();n.Blocks=a;var o=function(){function e(e,t){this.vs=e,this.cs=t,this.vs=e,e.forEach(function(e){e.cIn=[],e.cOut=[]}),this.cs=t,t.forEach(function(e){e.left.cOut.push(e),e.right.cIn.push(e)}),this.inactive=t.map(function(e){return e.active=!1,e}),this.bs=null}return e.prototype.cost=function(){return this.bs.cost()},e.prototype.setStartingPositions=function(e){this.inactive=this.cs.map(function(e){return e.active=!1,e}),this.bs=new a(this.vs),this.bs.forEach(function(t,n){return t.posn=e[n]})},e.prototype.setDesiredPositions=function(e){this.vs.forEach(function(t,n){return t.desiredPosition=e[n]})},e.prototype.mostViolated=function(){for(var t=Number.MAX_VALUE,n=null,r=this.inactive,i=r.length,a=i,o=0;o<i;++o){var s=r[o];if(!s.unsatisfiable){var c=s.slack();if((s.equality||c<t)&&(t=c,n=s,a=o,s.equality))break}}return a!==i&&(t<e.ZERO_UPPERBOUND&&!n.active||n.equality)&&(r[a]=r[i-1],r.length=i-1),n},e.prototype.satisfy=function(){this.bs??=new a(this.vs),this.bs.split(this.inactive);for(var t=null;(t=this.mostViolated())&&(t.equality||t.slack()<e.ZERO_UPPERBOUND&&!t.active);){var n=t.left.block;if(n!==t.right.block)this.bs.merge(t);else{if(n.isActiveDirectedPathBetween(t.right,t.left)){t.unsatisfiable=!0;continue}var r=n.splitBetween(t.left,t.right);if(r===null){t.unsatisfiable=!0;continue}this.bs.insert(r.lb),this.bs.insert(r.rb),this.bs.remove(n),this.inactive.push(r.constraint),t.slack()>=0?this.inactive.push(t):this.bs.merge(t)}}},e.prototype.solve=function(){this.satisfy();for(var e=Number.MAX_VALUE,t=this.bs.cost();Math.abs(e-t)>1e-4;)this.satisfy(),e=t,t=this.bs.cost();return t},e.LAGRANGIAN_TOLERANCE=-1e-4,e.ZERO_UPPERBOUND=-1e-10,e}();n.Solver=o,e.exports=n},function(e,t,n){"use strict";function r(e){this.options=l.extend({layerGap:60,nodeHeight:10,direction:`down`},e)}function i(e){return`L `+e.join(` `)}function a(e){return`M `+e.join(` `)}function o(e,t,n){return`C `+e.join(` `)+` `+t.join(` `)+` `+n.join(` `)}function s(e,t){var n=(e[1]+t[1])/2;return o([e[0],n],[t[0],n],t)}function c(e,t){var n=(e[0]+t[0])/2;return o([n,e[1]],[n,t[1]],t)}var l=n(4);r.lineTo=i,r.moveTo=a,r.curveTo=o,r.vCurveBetween=s,r.hCurveBetween=c,r.prototype.getWaypoints=function(e){var t=this.options,n=t.direction,r=e.getPathFromRoot(),i=t.nodeHeight+t.layerGap;return n===`left`?[[[0,r[0].idealPos]]].concat(r.map(function(e,n){var r=i*(n+1)*-1;return[[r+t.nodeHeight,e.currentPos],[r,e.currentPos]]})):n===`right`?[[[0,r[0].idealPos]]].concat(r.map(function(e,n){var r=i*(n+1);return[[r-t.nodeHeight,e.currentPos],[r,e.currentPos]]})):n===`up`?[[[r[0].idealPos,0]]].concat(r.map(function(e,n){var r=i*(n+1)*-1;return[[e.currentPos,r+t.nodeHeight],[e.currentPos,r]]})):[[[r[0].idealPos,0]]].concat(r.map(function(e,n){var r=i*(n+1);return[[e.currentPos,r-t.nodeHeight],[e.currentPos,r]]}))},r.prototype.layout=function(e){var t=this.options,n=t.layerGap+t.nodeHeight;switch(t.direction){case`left`:e.forEach(function(e){e.x=-(e.getLayerIndex()*n+t.layerGap)-t.nodeHeight,e.y=e.currentPos,e.dx=t.nodeHeight,e.dy=e.width});break;case`right`:e.forEach(function(e){e.x=e.getLayerIndex()*n+t.layerGap,e.y=e.currentPos,e.dx=t.nodeHeight,e.dy=e.width});break;case`up`:e.forEach(function(e){var r=e.getLayerIndex()*n+t.layerGap;e.x=e.currentPos,e.y=-r-t.nodeHeight,e.dx=e.width,e.dy=t.nodeHeight});break;default:case`down`:e.forEach(function(e){var r=e.getLayerIndex()*n+t.layerGap;e.x=e.currentPos,e.y=r,e.dx=e.width,e.dy=t.nodeHeight})}return e},r.prototype.generatePath=function(e){var t=this.options.direction,n=this.getWaypoints(e,t),r=[a(n[0][0])];return t===`left`||t===`right`?n.reduce(function(e,t,a){return r.push(c(e[e.length-1],t[0])),a<n.length-1&&r.push(i(t[1])),t}):n.reduce(function(e,t,a){return r.push(s(e[e.length-1],t[0])),a<n.length-1&&r.push(i(t[1])),t}),r.join(` `)},e.exports=r}])})})),ku=o(((e,t)=>{var n=NaN,r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,c=typeof global==`object`&&global&&global.Object===Object&&global,l=typeof self==`object`&&self&&self.Object===Object&&self,u=c||l||Function(`return this`)(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return u.Date.now()};function h(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,h=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=y(t)||0,g(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?f(y(n.maxWait)||0,t):a,h=`trailing`in n?!!n.trailing:h);function _(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function v(e){return l=e,s=setTimeout(S,t),u?_(e):o}function b(e){var n=e-c,r=e-l,i=t-n;return d?p(i,a-r):i}function x(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function S(){var e=m();if(x(e))return C(e);s=setTimeout(S,b(e))}function C(e){return s=void 0,h&&r?_(e):(r=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function T(){return s===void 0?o:C(m())}function E(){var e=m(),n=x(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return v(c);if(d)return s=setTimeout(S,t),_(c)}return s===void 0&&(s=setTimeout(S,t)),o}return E.cancel=w,E.flush=T,E}function g(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _(e){return!!e&&typeof e==`object`}function v(e){return typeof e==`symbol`||_(e)&&d.call(e)==`[object Symbol]`}function y(e){if(typeof e==`number`)return e;if(v(e))return n;if(g(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=g(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(r,``);var c=a.test(e);return c||o.test(e)?s(e.slice(2),c?2:8):i.test(e)?n:+e}t.exports=h})),Au=c(Ou()),ju=c(ku());function Mu(e){return{standard:e.toString(),light:e.brighter(1.15).toString(),bright:ke(e.h,e.s*1.3,e.l*.9).toString()}}function Nu(e,t){let n=[],r=360/t+1,i=e.h;for(let a=0;a<t;++a)e.h=(i+a*r)%360,n.push(Mu(e));return n}function Pu(e,t){let n=Nu(e,t),r=Mu(ke(`#888888`));return function(e){return e.old?r:n[e.cat%t]}}var Fu=function(e,t){let n=t.event,r=1;n.forEach(e=>e.id=r++),e.container.innerHTML=``;let i=new Date(t.minDate),a=new Date(t.maxDate),o=Pu(e.getRootColor(),12),s=e=>o(e).standard,c={alternatingTickLength:10,initialHeight:50,initialWidth:400,direction:`horizontal`,domain:[i,a],dotRadius:5,linkColor:s,dotColor:s,labelBgColor:s,layerGap:20,textStyle:{fill:`#fff`},margin:{left:12,right:15,top:5,bottom:35},labelPadding:{left:4,right:4,top:3,bottom:2},textYOffset:`0.85em`,timeFn:e=>new Date(e.date),textFn:e=>e.text,formatAxis:t=>{let n=a.getFullYear()-i.getFullYear();return t.tickFormat(e.i18n().timeScaleFormatter).tickSizeInner(8).tickSizeOuter(10).ticks(n<=4?2*n:void 0)}},l={innerWidth:0,innerHeight:0,width:c.initialWidth,height:c.initialHeight},u=new Au.default.Force,d=as(),f=R(e.container);f.style(`line-height`,0);let p=f.append(`div`).style(`display`,`inline-block`).style(`position`,`relative`).style(`line-height`,0),m=p.append(`svg`).style(`position`,`absolute`).style(`top`,0).style(`left`,0),h=m.append(`g`);function g(e,t){return e.append(`g`).attr(`name`,t)}let _=g(h,`dummy`),v=g(h,`main`),y=g(v,`main/axis`),b=g(v,`main/link`),x=g(v,`main/label`),S=g(v,`main/dot`);y.classed(`axis`,!0);function C(){let{width:e,height:t}=l,n=f.node(),r=n?.clientWidth??0,i=n?.clientHeight??0,a=!1;e!==r&&(l.width=r,a=!0),t>i&&(l.height=i,a=!0),a&&(T(),T.flush())}function w(){let e=u.nodes(),t;switch(c.direction){case`horizontal`:t=Gr(e,e=>Math.abs(e.y))??0,l.height=t+c.margin.top+c.margin.bottom;break;case`vertical`:t=Gr(e,e=>Math.abs(e.x+e.dx))??0,l.width=t+c.margin.left+c.margin.right}}let T=(0,ju.default)(function(){let{width:e,height:t}=l,{margin:n}=c,{top:r,right:i,bottom:a,left:o}=n;l.innerWidth=e-o-i,l.innerHeight=t-r-a,p.style(`width`,`${e}px`).style(`height`,`${t}px`),m.attr(`width`,e).attr(`height`,t),h.attr(`transform`,`translate(${o}, ${r})`),k()},1);function E(e,t){let n=typeof t==`function`?t:()=>t;e.attr(`dy`,c.textYOffset).attr(`x`,c.labelPadding.left).attr(`y`,c.labelPadding.top).style(`fill`,c.textStyle.fill).text(e=>c.textFn(n(e)))}function D(){let e;switch(c.direction){case`vertical`:e=ys(d),v.attr(`transform`,`translate(0,0)`);break;case`horizontal`:e=vs(d),v.attr(`transform`,`translate(0,`+l.innerHeight+`)`)}c.formatAxis?.(e),y.call(e).attr(`font-family`,null).attr(`font-size`,null)}function O(e){let t=c.direction===`vertical`?`cy`:`cx`,n=e=>d(c.timeFn(e)),r=S.selectAll(`circle.dot`).data(e);r.enter().append(`circle`).classed(`dot`,!0).style(`fill`,c.dotColor).attr(`r`,c.dotRadius).attr(t,n),r.transition().style(`fill`,c.dotColor).attr(`r`,c.dotRadius).attr(t,n),r.exit().remove()}function ee(e){let t;t=c.direction===`vertical`?Gr(e,e=>e.w):Gr(e,e=>e.h);let n=new Au.default.Renderer({nodeHeight:t??0,layerGap:c.layerGap,direction:c.direction===`horizontal`?`up`:`right`});n.layout(e);function r(e){if(isNaN(e.x)||isNaN(e.y))return null;switch(c.direction){case`vertical`:return`translate(`+e.x+`,`+(e.y-e.dy/2)+`)`;case`horizontal`:return`translate(`+(e.x-e.dx/2)+`,`+e.y+`)`}}let i=x.selectAll(`g.label-g`).data(e),a=i.enter().append(`g`).classed(`label-g`,!0).attr(`transform`,r);a.append(`rect`).classed(`label-bg`,!0).attr(`rx`,2).attr(`ry`,2).attr(`width`,e=>e.w).attr(`height`,e=>e.h).style(`fill`,e=>c.labelBgColor(e.data)),a.append(`text`).classed(`label-text`,!0).call(E,e=>e.data);let o=i.transition().attr(`transform`,r);o.select(`rect`).attr(`width`,e=>e.w).attr(`height`,e=>e.h).style(`fill`,e=>c.labelBgColor(e.data)),o.select(`text.label-text`).call(E,e=>e.data),i.exit().remove();let s=b.selectAll(`path.link`).data(e);s.enter().append(`path`).classed(`link`,!0).attr(`d`,e=>n.generatePath(e)).style(`stroke`,e=>c.linkColor(e.data)).style(`fill`,`none`),s.transition().attr(`d`,e=>n.generatePath(e)).style(`stroke`,e=>c.linkColor(e.data)),s.exit().remove()}let te=!0;function k(){if(!n||l.innerWidth<=0&&l.innerHeight<=0)return;let e=n||[];u=new Au.default.Force,d.domain(c.domain),d.range([0,c.direction===`vertical`?l.innerHeight:l.innerWidth]);let t=_.append(`text`).classed(`label-text`,!0),r=e.map(e=>{let n=t.call(E,e).node().getBBox(),r=n.width+c.labelPadding.left+c.labelPadding.right,i=n.height+c.labelPadding.top+c.labelPadding.bottom,a=new Au.default.Node(d(c.timeFn(e)),c.direction===`vertical`?i:r,e);return a.w=r,a.h=i,a});t.remove();let{left:i,right:a}=c.margin;u.options({maxPos:l.width-(i+a)}).nodes(r).compute(),D(),O(e),ee(u.nodes()),te&&(te=!1,A()),j()}function A(){m.insert(`title`,`:first-child`).text(t.title),x.selectAll(`g.label-g`).each(function(){let e=R(this),t=e.selectAll(`g.label-g > *`).remove(),n=e.append(`svg:a`).attr(`class`,e=>e.data.class).attr(`xlink:href`,e=>e.data.href).attr(`xlink:title`,e=>e.data.desc??null);n.append(`title`).text(e=>e.data.desc??null),t.each(function(){n.append(()=>this)})});let n=e.handlerValue(`publicationClick`),r=!!n;x.selectAll(`.label-g`).attr(`data-clickable`,()=>r||null).on(`click`,function(e,t){n&&(n(t.data.query),e.preventDefault())}).on(`mouseenter touchstart`,function(e,t){if(!e.target)return;let n=o(t.data);R(e.target).select(`rect`).style(`fill`,n.bright);let r=t.data.id;b.selectAll(`path.link`).filter(e=>e.data.id===r).attr(`data-highlighted`,!0);let i=t.data.query&&t.data.query.id;i&&Mn(`[data-publication-id='`+i+`']`).style(`background-color`,n.light)}).on(`mouseleave touchend`,function(e,t){if(!e.target)return;let n=o(t.data);R(e.target).select(`rect`).style(`fill`,n.standard),b.selectAll(`path.link`).attr(`data-highlighted`,!1);let r=t.data.query&&t.data.query.id;r&&Mn(`[data-publication-id='`+r+`']`).style(`background-color`,null)})}function j(){let e=y.selectAll(`g.tick`);l.width/e.size()<=32&&e.each(function(e,t){if(t%2!=0)return;let n=R(this),r=n.select(`text`),i=n.select(`line`);r.attr(`y`,Number(r.attr(`y`))+c.alternatingTickLength),i.attr(`y2`,Number(i.attr(`y2`))+c.alternatingTickLength)})}return{draw:function(){C(),w(),T(),T.flush()}}},Iu=function(e,t){if(t){let n=e.handlerValue(`load`);n&&n(t)}return D},Lu=function(e,t){let n=e=>e?new Date(e):null,r=e=>n(e)?.toLocaleDateString(),i=R(e.container).append(`table`).attr(`class`,`ui bizq very compact celled small unstackable striped table`),a=i.append(`tbody`);$.debug(`data`,t);for(let e of[`current`,`former`]){e==`former`&&a.append(`tr`).append(`td`).attr(`class`,`first`).attr(`colspan`,2).text(`Vormals`);let n=t.current;for(let e of n){$.debug(`group`,e);let t=e.name,n=e.entries;a.append(`tr`).append(`td`).attr(`class`,`first`).attr(`colspan`,2).text(t);for(let e of n){$.debug(`entry`,e);let t=a.append(`tr`),n=e.person,i=t.append(`td`).append(`span`).text(n.name).attr(`class`,`person`);for(let e in n.query)i.attr(e,n.query[e]);let o=t.append(`td`);for(let t of e.chunks){let e;!t.start&&t.end?e=`bis `+r(t.end):t.start&&!t.end?e=`seit `+r(t.start):t.start&&t.end&&(e=r(t.start)+` – `+r(t.end)),o.append(`span`).text(e)}}}}return e.markup(i),D},Ru;function zu(e){if(e){Ru=document.querySelectorAll(`button:not([disabled])`);for(let e=0;e<Ru.length;++e)Ru[e].disabled=!0}else if(Ru)for(let e=0;e<Ru.length;++e)Ru[e].disabled=!1;document.body.classList.toggle(`waiting`,e)}var Bu=function(e,t){return Ln(`click`,e.container,`*`,function(){zu(!0);let t=new XMLHttpRequest;t.open(`POST`,`/_api/shop/v1/products`),t.setRequestHeader(`Content-Type`,`application/json`);function n(e){$.log(`error`,`cannot list pubs`,e)}return t.onerror=function(e){zu(!1),n(e)},t.onload=function(){zu(!1),$.debug(t.status),t.status>=400&&n(t.responseText||t.statusText),$.debug(`ok`,t.responseText);let e=JSON.parse(t.responseText);$.debug(`data`,e)},t.send(JSON.stringify(e.options)),!1}),D},Vu=function(e,t){let n=R(e.container).selectAll(`.publication`).data(t.publications).enter().append(`div`).attr(`class`,`pub`).attr(`data-publication-id`,e=>e.id),r=n.append(`h2`);return r.append(`span`).attr(`class`,`icon`).text(e=>e.internal.icon),r.append(`span`).attr(`class`,`date`).text(e=>e.internal.formattedDate),r.append(`a`).attr(`href`,`#`).html(e=>e.internal.htmlTitle).on(`click`,function(e){e.target?.parentElement?.parentElement?.classList?.toggle(`expanded`),e.preventDefault()}),n.append(`div`).attr(`class`,`text`).html(e=>e.html),e.markup(n),D},Hu=function(e,t){let n=R(e.container),r=n.append(`ul`).attr(`class`,`search-results`),i=t.cursor;function a(e){let t={},n=e.subject,r=n.name[0].name,i=n.address&&n.address[0],a=i&&i.city,o={query:t,address:i,name:r,details:e.formattedDetails},s=n.tag;switch(s&&s.terminated&&(o.terminated=!0),e.targetType){case`Company`:o.type=`c`,t.address=a,t.name=r;let i=n.register&&n.register[0];i&&i.id&&(i.city&&(t.registerCity=i.city),t.registerId=i.id);break;case`Person`:o.type=`p`;let s=r.split(`,`);t.lastName=s[0],t.firstName=zn(s[1]),t.birthDate=n.birthDate,t.address=a,(!t.address||!t.birthDate)&&(t.id=e.targetId)}return o}let o=n.append(`div`).attr(`class`,`more`),s=o.append(`p`),c=o.append(`a`).attr(`href`,`#`).on(`click`,function(t){let n=E(e.options,{offset:c.attr(`data-offset`),position:c.attr(`data-position`)});Kn.requestData(n,function(e){f(e)},e.fail.bind(e)),t.preventDefault()}),l=i.items.length==0,u=e.handlerValue(`noResults`),d=e.handlerValue(`oneResult`);l?u?u():n.append(`p`).text(`Keine Resultate zu dieser Suche.`):i.items.length==1&&d?d(a(i.items[0])):f(t);function f(t){let n=t.cursor;for(let i of n.items){let n=a(i),o=n.query,s=o.address,c=o.name;c||=o.lastName+`, `+o.firstName,s&&(c+=`, `+s);let l=r.append(`li`).attr(`class`,`search-result`);l.append(`span`).attr(`class`,`icon`).text(i.targetType==`Company`?``:``);let u=l.append(`div`).attr(`class`,`body`),d=u.append(`a`).attr(`href`,document.location.pathname+`?`+Hn(o)).text(c).on(`click`,function(n){e.invokeClickHandler(t)&&n.preventDefault()});n.terminated&&d.append(`sup`).attr(`title`,`erloschen`).text(`✝︎`),u.append(`div`).attr(`class`,`detail`).text(n.detail);for(let e of i.formattedDetails)u.append(`div`).attr(`class`,`detail`).text(e)}o.attr(`data-total`,n.total);let i=Number(n.offset+n.items.length).toLocaleString();n.total?i+=` Resultate von `+Number(n.total).toLocaleString()+` insgesamt.`:i+=` Resultate.`,s.text(i),c.text(n.lastPage?``:`Weitere Resultate anzeigen`).attr(`data-offset`,n.offset+n.limit).attr(`data-position`,t.properties.nextPosition)}return D};function Uu(e){return!isNaN(parseFloat(e))&&isFinite(e)}var Wu=function(e,t){if(!t.sheet)throw Error(`no data`);for(let n of t.sheet){if(!n){let t=e.stringValue(`subject`)||`assets`;throw Error(`no data for subject '`+t+`'`)}let t=n.column,r=n.row,i=e.isReverseChronology(),a=e.numberValue(`maxYears`)||5;i&&t.reverse();let o=function(e){return i?e<a:e>=t.length-a};if(t.length<=0)break;let s=t[0].currency,l=1,u=s.unit,d=e.i18n().numberFormatter;if(s){let t=0,n=0,i=0;for(let e of r)for(let r of e.cell)if(Uu(r.value)){let e=Math.abs(r.value);e>1e5&&(++i,e>1e7&&(++n,e>1e10&&++t))}let a=t>=5,o=n>=5;if(i<5&&(d=e.i18n().decimalFormatter),o){u==`EUR`&&(u=`€`),u==`USD`&&(u=`$`),u==`GBP`&&(u=`£`);let e=$a(`K`,`Tsd. `,`K`);l=1e3,a&&(l=1e6,e=$a(`M`,`Mio. `,`M`)),e.length==1&&u.length==1&&(u=` `+u),u=e+u}}let f=document.createElement(`table`),p=R(f).attr(`class`,`ui bizq very compact celled small unstackable selectable first stuck table`),m=p.append(`thead`).append(`tr`),h=m.append(`th`).attr(`class`,`first`);h.text(u),h.append(`a`).attr(`href`,n.info.csvUrl).attr(`download`,`download`).attr(`title`,`CSV/Excel Download`).classed(`screen-only`,!0).append(`i`).attr(`class`,`download icon`),t.forEach((n,r)=>{o(r)&&m.append(`th`).text(n.date?e.i18n().dateFormatter(n.date):``).attr(`data-col`,t.length-r).attr(`data-source-title`,n.info.publication.title).attr(`data-source-date`,n.info.publication.date)});let g=(e,t)=>e&&e.semantics&&e.semantics.indexOf(t)>=0,_=e=>g(e,`SUMMARY`),v=e=>g(e,`CUSTOM`),y=p.append(`tbody`);r.forEach(n=>{if(!g(n,`HELPER`)){let r=0,a=e.isPrint()?2:1,s=n.level&&n.level.value,u=s<a?`expanded`:`closed`;s>a&&(u+=` hidden`);let f=R(document.createElement(`tr`)).attr(`class`,u+` active-on-hover`).attr(`data-row`,n.info&&n.info.id).attr(`data-level`,s).attr(`data-parent-row`,n.info?n.info.parentId:null).attr(`data-child-count`,()=>n.info&&typeof n.info.childCount==`number`&&n.info.childCount>0?n.info.childCount:null).attr(`data-summary`,_(n)).attr(`data-custom`,v(n)).on(`click`,function(e){c(e&&e.target),e.preventDefault()});f.append(`td`).attr(`class`,`first`).text(n.text??n.name),i&&n.cell.reverse(),n.cell.forEach((e,n)=>{if(o(n)){let i=e.value===void 0?``:d(e.value/l);i&&r++,f.append(`td`).attr(`data-col`,t.length-n).text(i)}}),r>0?y.node().appendChild(f.node()):n.info?.parentId&&y.select(`tr[data-row="${n.info.parentId}"][data-child-count]`).attr(`data-child-count`,function(){let e=parseInt(R(this).attr(`data-child-count`))-1;return e>0?e:null})}});let b=p.append(`tfoot`).append(`tr`);b.append(`th`).attr(`class`,`first`).text(e.trilingual(`Source`,`Quelle`,`Source`));let x=e.handlerValue(`sourceClick`);t.forEach((e,n)=>{if(o(n)){let r=b.append(`th`).attr(`data-col`,t.length-n);if(r.html(e.info.noteHtml),x){let t=e.info.publication,n=typeof e.info.source==`string`?[e.info.source]:e.info.source;r.selectAll(`a`).attr(`href`,`javascript:void(0);`).on(`click`,function(e){e.preventDefault(),x({publication:t,source:n})})}}}),f.setAttribute(`data-item`,n.info.item),e.showItem(n.info.title,f)}let n=`expanded`,r=`closed`;function i(e){let t=R(e);return e.matches(`tr`)?t:Fn(t,`tr`)}function a(e){let t=e.size()==0?`?`:e.attr(`data-row`);return Fn(e,`table`).selectAll(`[data-parent-row='`+t+`']`)}function o(e){let t=i(e);t.classed(r,!1).classed(n,!0),a(t).classed(`hidden`,!1)}function s(e){let t=i(e);t.classed(r,!0).classed(n,!1),a(t).classed(`hidden`,!0).each(function(){s(this)})}function c(e){i(e).classed(n)?s(e):o(e)}return D},Gu=function(e,t){let n=e.container,r=e.i18n().timeScaleFormatter,i={chartLeft:12,right:15,top:0,bottom:0},a=.5,o=12.78,s=t.lines;if(!s||!s.length)throw Error(`vita empty`);let c=s.length,l=i.top+23*c+5,u=new Date(t.startDate).getTime(),d=new Date(t.endDate).getTime(),f=e=>e?new Date(e):null,p=R(e.container).append(`svg`);p.append(`title`).text($a(`History`,`Historie`,`Historique`));let m=e=>e?e.toLocaleDateString():``;return{draw:function(){p.select(`g`).remove();let t=p.append(`g`),c=n.getBoundingClientRect().width;p.attr(`width`,c);let h=function(){let e=[];for(let t of s)for(let n of t.bars)e.push(n.role.abbr),e.push(n.role.abbr+` `+t.text);let n={};return t.selectAll(`.textWidthDummy`).data(e).enter().append(`text`).text(function(e){return e}).each(function(e){n[e]=this.getComputedTextLength(),this.remove()}),n}(),g=function(e,t,n){if(t){let r=e+` `+t,i=h[r],a=n-8;if(i!==void 0&&a>i)return{text:r,width:i,containsSuffix:!0}}let r=h[e];return r!==void 0&&n>r?{text:e,width:r}:{text:`…`,width:0}},_=function(){if(c>=600)return!0;let e=2592e6;for(let t of s)for(let n of t.bars){let t=f(n.assumedStart),r=f(n.end)||new Date;if(!t||Math.abs(t.getTime()-u)<e||Math.abs(d-r.getTime())<e)return!0}return!1},v=as().domain([u,d]).range([i.chartLeft,c-i.right]);_()&&(v=v.nice());let y=vs(v).tickFormat(r).tickSizeInner(8).tickSizeOuter(10).ticks(Math.min(c/100,10));t.append(`g`).attr(`class`,`axis`).attr(`transform`,`translate(0,`+l+`)`).call(y).attr(`font-size`,null).attr(`font-family`,null),t.append(`g`).attr(`class`,`axis grid`).attr(`transform`,`translate(0,`+l+`)`).call(y.tickSizeInner(-l).tickSizeOuter(0)).call(e=>e.selectAll(`.tick text`).remove());let b=i.chartLeft,x=c-i.right,S=0;for(let n of s){let r=i.top+23*S+5,s=r+18,c=r+13.5-1,l=(r+s)/2;t.append(`line`).attr(`x1`,b).attr(`x2`,x).attr(`y1`,l).attr(`y2`,l).attr(`class`,`grid`);let u=n.bars.length,d=0,p=!1,m=0,h=0;for(let s of n.bars){let l=f(s.assumedStart),_=f(s.end)||new Date,y=l?v(l):i.chartLeft+o,S=!s.start;y+=S?o:a;let C=v(_);s.openEnded&&s.end?C-=o:C-=a,C=Math.max(y,C);let w=C-y,T=y+w/2;w<10&&(S&&!s.openEnded?T-=3:s.openEnded&&!S&&(T+=3));let E=g(s.role.abbr,p?void 0:n.text,w);if(E.containsSuffix&&(p=!0),d==0){let e=S?y-o:y;m=(E.width?Math.min(T-E.width/2,e):e)-b-2}if(d==u-1){let e=s.openEnded?C+o:C;h=x-(E.width?Math.max(T+E.width/2,e):e)-2}let D=t.append(`svg:a`).attr(`xlink:href`,s.url||``).attr(`xlink:title`,s.title).attr(`data-old`,s.end?!0:null).attr(`data-clickable`,()=>e.getClickHandler(`p`)?!0:null).on(`click`,function(t){e.invokeClickHandler(s)&&t.preventDefault()});if(D.append(`title`).text(s.title),S){let e=y-o,t=y,n=r,i=r+18,a=[t+`,`+n,t+`,`+i,e+`,`+(n+i)/2];D.append(`polygon`).attr(`points`,a.join(` `)).attr(`class`,`in c`+s.role.cat)}if(s.openEnded){let e=C,t=Math.min(o+e,x),n=r,i=r+18,a=[e+`,`+n,e+`,`+i,t+`,`+(n+i)/2];D.append(`polygon`).attr(`points`,a.join(` `)).attr(`class`,`out c`+s.role.cat)}D.append(`rect`).attr(`x`,y).attr(`y`,r).attr(`width`,w).attr(`height`,18).attr(`class`,`c`+s.role.cat),D.append(`text`).attr(`x`,T).attr(`y`,c).attr(`class`,`label-text c`+s.role.cat).text(E.text),++d}p||(m>h?m>200&&t.append(`text`).attr(`x`,b+m).attr(`y`,c).attr(`class`,`left extra`).text(n.text):h>200&&t.append(`text`).attr(`x`,x-h).attr(`y`,c).attr(`class`,`right extra`).text(n.text)),++S}let C=new Date,w=`Heute, `+m(C),T=v(C),E=t.append(`svg:a`).attr(`xlink:title`,w);E.append(`title`).text(w),E.append(`line`).attr(`class`,`today`).attr(`x1`,T).attr(`y1`,0).attr(`x2`,T).attr(`y2`,l+15),p.attr(`height`,l+30)}}},Ku;(function(e){e.Widget=ao,e.version=T;let t=e.options={dataDomain:``,detectDataDomain:!0,__debug:!0};function n(e){t.__debug=!1,e===void 0?(t.dataDomain=`https://www.northdata.de`,t.detectDataDomain=!1):(t.dataDomain=e.dataDomain??t.dataDomain,t.detectDataDomain=e.detectDataDomain??t.detectDataDomain)}e.initialize=n;function r(...e){i(`info`,...e)}e.debug=r;function i(e,...n){t.__debug&&console[e](...n)}e.log=i,ee({barChart:xs,drillDown:Rc,graph:Bc,dendrogram:Lc,history:Fu,vita:Gu,pubTable:Vu,pubShop:Bu,personTable:Lu,sheet:Wu,financials:zc,contact:Ss,overview:Iu,searchResults:Hu})})(Ku||={});var $=Ku;return{Widget:Ku.Widget,version:Ku.version,initialize:Ku.initialize}});