mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-03-11 10:03:47 +00:00
2 lines
1.5 MiB
2 lines
1.5 MiB
/*! For license information please see main.e3ef0d82.js.LICENSE.txt */
|
|
(()=>{var e={2427:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Breakpoints=t.BreakpointConstraint=void 0;var r,i=n(2225);function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(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)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.BreakpointConstraint=r,function(e){e.at="at",e.lessThan="lessThan",e.greaterThan="greaterThan",e.greaterThanOrEqual="greaterThanOrEqual",e.between="between"}(r||(t.BreakpointConstraint=r={}));var d=function(){function e(t){var n,i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,"_sortedBreakpoints",void 0),f(this,"_breakpoints",void 0),f(this,"_mediaQueries",void 0),f(this,"findBreakpointsForWidths",(function(e,t){var n=i.findBreakpointAtWidth(e);if(n){var r=i.findBreakpointAtWidth(t);return r&&n!==r?i._sortedBreakpoints.slice(i._sortedBreakpoints.indexOf(n),i._sortedBreakpoints.indexOf(r)+1):[n]}})),f(this,"findBreakpointAtWidth",(function(e){return i._sortedBreakpoints.find((function(t,n){var r=i._sortedBreakpoints[n+1];return r?e>=i._breakpoints[t]&&e<i._breakpoints[r]:e>=i._breakpoints[t]}))})),f(this,"valuesWithBreakpointProps",(function(e){var t,n=e.length,r=[];return i._sortedBreakpoints.forEach((function(i,o){var a=e[o];o<n&&(!t||t[0]!==a)?(t=[a,[i]],r.push(t)):t[1].push(i)})),r.map((function(e,t){var n=a(e,2),i=n[0],o=n[1],s={};return t===r.length-1?s.greaterThanOrEqual=o[0]:1===o.length?s.at=o[0]:s.between=[o[0],r[t+1][1][0]],[i,s]}))})),this._breakpoints=t,this._sortedBreakpoints=Object.keys(t).map((function(e){return[e,t[e]]})).sort((function(e,t){return e[1]<t[1]?-1:1})).map((function(e){return e[0]}));var s=this._sortedBreakpoints.slice(0,-1).reduce((function(e,t,n){return o(e).concat(o(i._sortedBreakpoints.slice(n+1).map((function(e){return[t,e]}))))}),[]);this._mediaQueries=(f(n={},r.at,this._createBreakpointQueries(r.at,this._sortedBreakpoints)),f(n,r.lessThan,this._createBreakpointQueries(r.lessThan,this._sortedBreakpoints.slice(1))),f(n,r.greaterThan,this._createBreakpointQueries(r.greaterThan,this._sortedBreakpoints.slice(0,-1))),f(n,r.greaterThanOrEqual,this._createBreakpointQueries(r.greaterThanOrEqual,this._sortedBreakpoints)),f(n,r.between,this._createBreakpointQueries(r.between,s)),n)}return c(e,null,[{key:"validKeys",value:function(){return[r.at,r.lessThan,r.greaterThan,r.greaterThanOrEqual,r.between]}}]),c(e,[{key:"toVisibleAtBreakpointSet",value:function(e){if((e=this._normalizeProps(e)).lessThan){var t=this.sortedBreakpoints.findIndex((function(t){return t===e.lessThan}));return this.sortedBreakpoints.slice(0,t)}if(e.greaterThan){var n=this.sortedBreakpoints.findIndex((function(t){return t===e.greaterThan}));return this.sortedBreakpoints.slice(n+1)}if(e.greaterThanOrEqual){var r=this.sortedBreakpoints.findIndex((function(t){return t===e.greaterThanOrEqual}));return this.sortedBreakpoints.slice(r)}if(e.between){var i=e.between,o=this.sortedBreakpoints.findIndex((function(e){return e===i[0]})),a=this.sortedBreakpoints.findIndex((function(e){return e===i[1]}));return this.sortedBreakpoints.slice(o,a)}return[]}},{key:"toRuleSets",value:function(){var t=this,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.validKeys()).reduce((function(e,n){return e[n]=t._mediaQueries[n],e}),{});return Object.entries(n).reduce((function(e,t){var n=a(t,2),r=n[0];return n[1].forEach((function(t,n){e.push((0,i.createRuleSet)((0,i.createClassName)(r,n),"not all and ".concat(t)))})),e}),[])}},{key:"shouldRenderMediaQuery",value:function(e,t){var n=this;if((e=this._normalizeProps(e)).lessThan){var r=this._breakpoints[e.lessThan];return Math.min.apply(Math,o(t.map((function(e){return n._breakpoints[e]}))))<r}if(e.greaterThan){var i=this._breakpoints[this._findNextBreakpoint(e.greaterThan)];return Math.max.apply(Math,o(t.map((function(e){return n._breakpoints[e]}))))>=i}if(e.greaterThanOrEqual){var a=this._breakpoints[e.greaterThanOrEqual];return Math.max.apply(Math,o(t.map((function(e){return n._breakpoints[e]}))))>=a}if(e.between){var s=this._breakpoints[e.between[0]],u=this._breakpoints[e.between[1]],l=t.map((function(e){return n._breakpoints[e]}));return!(Math.max.apply(Math,o(l))<s||Math.min.apply(Math,o(l))>=u)}return!1}},{key:"_normalizeProps",value:function(e){if(e.at){var t=this._sortedBreakpoints.indexOf(e.at),n=this._sortedBreakpoints[t+1];return n?{between:[e.at,n]}:{greaterThanOrEqual:e.at}}return e}},{key:"_createBreakpointQuery",value:function(e){if((e=this._normalizeProps(e)).lessThan){var t=this._breakpoints[e.lessThan];return"(max-width:".concat(t-.02,"px)")}if(e.greaterThan){var n=this._breakpoints[this._findNextBreakpoint(e.greaterThan)];return"(min-width:".concat(n,"px)")}if(e.greaterThanOrEqual){var r=this._breakpoints[e.greaterThanOrEqual];return"(min-width:".concat(r,"px)")}if(e.between){var i=this._breakpoints[e.between[0]],o=this._breakpoints[e.between[1]];return"(min-width:".concat(i,"px) and (max-width:").concat(o-.02,"px)")}throw new Error("Unexpected breakpoint props: ".concat(JSON.stringify(e)))}},{key:"_createBreakpointQueries",value:function(e,t){var n=this;return t.reduce((function(t,r){return t.set(function(e){return Array.isArray(e)?e.join("-"):e}(r),n._createBreakpointQuery(f({},e,r))),t}),new Map)}},{key:"_findNextBreakpoint",value:function(e){var t=this._sortedBreakpoints[this._sortedBreakpoints.indexOf(e)+1];if(!t)throw new Error("There is no breakpoint larger than ".concat(e));return t}},{key:"sortedBreakpoints",get:function(){return this._sortedBreakpoints}},{key:"dynamicResponsiveMediaQueries",get:function(){return Array.from(this._mediaQueries[r.at].entries()).reduce((function(e,t){var n=a(t,2);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){f(e,t,n[t])}))}return e}({},e,f({},n[0],n[1]))}),{})}},{key:"largestBreakpoint",get:function(){return this._sortedBreakpoints[this._sortedBreakpoints.length-1]}}]),e}();t.Breakpoints=d},8100:(e,t,n)=>{"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createResponsiveComponents=function(){var e=o.default.createContext({});return e.displayName="Media.DynamicContext",{Consumer:e.Consumer,Provider:function(t){function n(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}(this,u(n).call(this,e)),f(c(c(t)),"isSupportedEnvironment",(function(){return"undefined"!==typeof window&&"undefined"!==typeof window.matchMedia})),f(c(c(t)),"setupMatchers",(function(e){return Object.keys(e).reduce((function(t,n){return a({},t,f({},n,window.matchMedia(e[n])))}),{})})),f(c(c(t)),"checkMatchers",(function(e){return Object.keys(e).reduce((function(t,n){return a({},t,f({},n,e[n].matches))}),{})})),f(c(c(t)),"mediaQueryStatusChangedCallback",(function(){var e=t.checkMatchers(t.state.mediaQueryMatchers);t.setState({mediaQueryMatches:e})}));var i,o=void 0;return t.isSupportedEnvironment()?(o=t.setupMatchers(e.mediaQueries),i=t.checkMatchers(o)):i=Object.keys(e.mediaQueries).reduce((function(t,n){return a({},t,f({},n,!!e.initialMatchingMediaQueries&&e.initialMatchingMediaQueries.includes(n)))}),{}),t.state={mediaQueryMatchers:o,mediaQueryMatches:i},t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,t),function(e,t,n){t&&s(e.prototype,t);n&&s(e,n)}(n,[{key:"componentDidMount",value:function(){if(this.state.mediaQueryMatchers){var e=this.mediaQueryStatusChangedCallback;Object.values(this.state.mediaQueryMatchers).forEach((function(t){t.addListener(e)}))}}},{key:"componentWillUnmount",value:function(){if(this.state.mediaQueryMatchers){var e=this.mediaQueryStatusChangedCallback;Object.values(this.state.mediaQueryMatchers).forEach((function(t){return t.removeListener(e)}))}}},{key:"shouldComponentUpdate",value:function(e,t){return!!this.state.mediaQueryMatchers&&(e.children!==this.props.children||!d(this.state.mediaQueryMatches,t.mediaQueryMatches))}},{key:"render",value:function(){return o.default.createElement(e.Provider,{value:this.state.mediaQueryMatches},this.props.children)}}]),n}(o.default.Component)}};var i,o=(i=n(9950))&&i.__esModule?i:{default:i};function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){f(e,t,n[t])}))}return e}function s(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)}}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(e,t){for(var n in e)if(e[n]!==t[n])return!1;return!0}},794:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Interactions=t.InteractionKey=void 0;var r,i=n(2225);function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(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)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.InteractionKey=r,function(e){e.interaction="interaction"}(r||(t.InteractionKey=r={}));var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,"_interactions",void 0),this._interactions=t}return c(e,null,[{key:"validKeys",value:function(){return[r.interaction]}}]),c(e,[{key:"toRuleSets",value:function(){return Object.entries(this._interactions).reduce((function(e,t){var n=a(t,2),s=n[0],u=n[1];return o(e).concat([(0,i.createRuleSet)((0,i.createClassName)(r.interaction,s),u)])}),[])}},{key:"shouldRenderMediaQuery",value:function(e,t){return!(!t||!t.includes(e))}},{key:"interactions",get:function(){return Object.keys(this._interactions)}},{key:"dynamicResponsiveMediaQueries",get:function(){return Object.entries(this._interactions).reduce((function(e,t){var n=a(t,2);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){f(e,t,n[t])}))}return e}({},e,f({},n[0],n[1]))}),{})}}]),e}();t.Interactions=d},1579:(e,t,n)=>{"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMedia=function(e){var t,n,i=(0,u.castBreakpointsToIntegers)(e.breakpoints),h=new s.MediaQueries(i,e.interactions||{}),w=(0,a.createResponsiveComponents)(),_=o.default.createContext({});_.displayName="Media.Context";var x=o.default.createContext({hasParentMedia:!1,breakpointProps:{}});_.displayName="MediaParent.Context";var E=(0,u.memoize)((function(e){return{onlyMatch:e}}));return{Media:(n=t=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}(this,m(t).call(this,e)),v(y(y(n)),"getMediaParentContextValue",(0,u.memoize)((function(e){return{hasParentMedia:!0,breakpointProps:e}}))),function(e){var t=Object.keys(e).filter((function(e){return b.includes(e)}));if(t.length<1)throw new Error("1 of ".concat(b.join(", ")," is required."));if(t.length>1)throw new Error("Only 1 of ".concat(t.join(", ")," is allowed at a time."))}(e),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,e),function(e,t,n){t&&p(e.prototype,t);n&&p(e,n)}(t,[{key:"render",value:function(){var e=this,t=this.props,n=(t.children,t.className),r=t.style,i=t.interaction,a=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,["children","className","style","interaction"]),s=this.getMediaParentContextValue(a);return o.default.createElement(x.Consumer,null,(function(l){return o.default.createElement(x.Provider,{value:s},o.default.createElement(_.Consumer,null,(function(){var s,c=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onlyMatch;if(t.interaction)s=(0,u.createClassName)("interaction",t.interaction);else{if(t.at){var f=h.breakpoints.largestBreakpoint;if(t.at===f){var d=null;try{var p=e._reactInternalFiber._debugOwner.type;d=p.displayName||p.name}catch(b){}console.warn("[@artsy/fresnel] `at` is being used with the largest breakpoint. Consider using `<Media greaterThanOrEqual="+'"'.concat(f,'">` to account for future ')+"breakpoint definitions outside of this range.".concat(d?" It is being used in the ".concat(d," component."):""))}}var m=(0,u.propKey)(a),g=a[m];s=(0,u.createClassName)(m,g)}var y=(!l.hasParentMedia||(0,u.intersection)(h.breakpoints.toVisibleAtBreakpointSet(l.breakpointProps),h.breakpoints.toVisibleAtBreakpointSet(a)).length>0)&&(void 0===c||h.shouldRenderMediaQuery(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){v(e,t,n[t])}))}return e}({},a,{interaction:i}),c));return t.children instanceof Function?t.children(s,y):o.default.createElement("div",{className:"fresnel-container ".concat(s," ").concat(n),style:r,suppressHydrationWarning:!y},y?t.children:null)})))}))}}]),t}(o.default.Component),v(t,"defaultProps",{className:"",style:{}}),v(t,"contextType",x),n),MediaContextProvider:function(e){var t=e.disableDynamicMediaQueries,n=e.onlyMatch,r=e.children;if(t){var i=E(n);return o.default.createElement(_.Provider,{value:i},r)}return o.default.createElement(w.Provider,{mediaQueries:h.dynamicResponsiveMediaQueries,initialMatchingMediaQueries:(0,u.intersection)(h.mediaQueryTypes,n)},o.default.createElement(w.Consumer,null,(function(e){var t=Object.keys(e).filter((function(t){return e[t]})),i=E((0,u.intersection)(t,n));return o.default.createElement(_.Provider,{value:i},r)})))},createMediaStyle:h.toStyle,SortedBreakpoints:(k=h.breakpoints.sortedBreakpoints,d(k)||f(k)||c(k)||l()),findBreakpointAtWidth:h.breakpoints.findBreakpointAtWidth,findBreakpointsForWidths:h.breakpoints.findBreakpointsForWidths,valuesWithBreakpointProps:h.breakpoints.valuesWithBreakpointProps};var k};var i,o=(i=n(9950))&&i.__esModule?i:{default:i},a=n(8100),s=n(2539),u=n(2225);function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){if(e){if("string"===typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function f(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(e){if(Array.isArray(e))return h(e)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(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)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=s.MediaQueries.validKeys()},2539:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MediaQueries=void 0;var r=n(2427),i=n(794),o=n(2225);function a(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(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)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(){function e(t,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,"_breakpoints",void 0),f(this,"_interactions",void 0),f(this,"toStyle",(function(e){return[".fresnel-container{margin:0;padding:0;}"].concat(s(o._breakpoints.toRuleSets(e)),s(o._interactions.toRuleSets())).join("\n")})),this._breakpoints=new r.Breakpoints(t),this._interactions=new i.Interactions(n||{})}return c(e,null,[{key:"validKeys",value:function(){return s(r.Breakpoints.validKeys()).concat(s(i.Interactions.validKeys()))}}]),c(e,[{key:"shouldRenderMediaQuery",value:function(e,t){var n=e.interaction,r=a(e,["interaction"]);if(n)return this._interactions.shouldRenderMediaQuery(n,t);var i=(0,o.intersection)(t,this._breakpoints.sortedBreakpoints);return this._breakpoints.shouldRenderMediaQuery(r,i)}},{key:"breakpoints",get:function(){return this._breakpoints}},{key:"mediaQueryTypes",get:function(){return s(this._breakpoints.sortedBreakpoints).concat(s(this._interactions.interactions))}},{key:"dynamicResponsiveMediaQueries",get:function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){f(e,t,n[t])}))}return e}({},this._breakpoints.dynamicResponsiveMediaQueries,this._interactions.dynamicResponsiveMediaQueries)}}]),e}();t.MediaQueries=d},2225:(e,t)=>{"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.propKey=function(e){return Object.keys(e)[0]},t.intersection=function(e,t){return t?e.filter((function(e){return t.indexOf(e)>=0})):r(e)},t.createRuleSet=function(e,t){return"@media ".concat(t,"{.").concat(e,"{display:none!important;}}")},t.createClassName=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return["fresnel"].concat(r(t.reduce((function(e,t){return Array.isArray(t)?r(e).concat(r(t)):r(e).concat([t])}),[]))).join("-")},t.castBreakpointsToIntegers=function(e){var t=Object.keys(e);return t.reduce((function(r,i,o){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&i.push.apply(i,Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach((function(t){n(e,t,r[t])}))}return e}({},r,n({},t[o],Math.round(Number(e[i]))))}),{})},t.memoize=function(e){var t={};return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=JSON.stringify(r);return t[o]||(t[o]=e.apply(void 0,r)),t[o]}}},3187:(e,t,n)=>{"use strict";Object.defineProperty(t,"H",{enumerable:!0,get:function(){return r.createMedia}});var r=n(1579),i=n(2427)},7901:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case g:case m:case u:return e;default:return t}}case i:return t}}}function x(e){return _(e)===f}t.isForwardRef=function(e){return _(e)===d}},7329:(e,t,n)=>{"use strict";e.exports=n(7901)},8657:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(789);n(1942);var i=n(9950);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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)}}function u(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var h=function(){function e(t){a(this,e),l(this,"handlers",void 0),this.handlers=t.slice(0)}return u(e,[{key:"addHandlers",value:function(t){for(var n=this.handlers.slice(0),r=t.length,i=0;i<r;i+=1)n.push(t[i]);return new e(n)}},{key:"dispatchEvent",value:function(e,t){var n=this.handlers.length-1;if(t){for(var r=n;r>=0;r-=1)this.handlers[r].called||(this.handlers[r].called=!0,this.handlers[r](e));for(var i=n;i>=0;i-=1)this.handlers[i].called=!1}else(0,this.handlers[n])(e)}},{key:"hasHandlers",value:function(){return this.handlers.length>0}},{key:"removeHandlers",value:function(t){for(var n=[],r=this.handlers.length,i=0;i<r;i+=1){var o=this.handlers[i];-1===t.indexOf(o)&&n.push(o)}return new e(n)}}]),e}();function p(e){var t=new Map;return e.forEach((function(e,n){t.set(n,e)})),t}function m(e){return Array.isArray(e)?e:[e]}function g(e){return"document"===e?document:"window"===e?window:function(e){return null!==e&&"object"===o(e)&&e.hasOwnProperty("current")}(e)?e.current||document:e||document}var y=function(){function e(t,n){a(this,e),l(this,"handlerSets",void 0),l(this,"poolName",void 0),this.handlerSets=n,this.poolName=t}return u(e,[{key:"addHandlers",value:function(t,n){var r=p(this.handlerSets);if(r.has(t)){var i=r.get(t);r.set(t,i.addHandlers(n))}else r.set(t,new h(n));return new e(this.poolName,r)}},{key:"dispatchEvent",value:function(e,t){var n=this.handlerSets.get(e),r="default"===this.poolName;n&&n.dispatchEvent(t,r)}},{key:"hasHandlers",value:function(e){if(!e)return this.handlerSets.size>0;var t=this.handlerSets.get(e);return!!t&&t.hasHandlers()}},{key:"removeHandlers",value:function(t,n){var r=p(this.handlerSets);if(!r.has(t))return new e(this.poolName,r);var i=r.get(t).removeHandlers(n);return i.hasHandlers()?r.set(t,i):r.delete(t),new e(this.poolName,r)}}]),e}();l(y,"createByType",(function(e,t,n){var r=new Map;return r.set(t,new h(n)),new y(e,r)}));var v=function(){function e(t){var n=this;a(this,e),l(this,"handlers",new Map),l(this,"pools",new Map),l(this,"target",void 0),l(this,"createEmitter",(function(e){return function(t){n.pools.forEach((function(n){n.dispatchEvent(e,t)}))}})),this.target=t}return u(e,[{key:"addHandlers",value:function(e,t,n){if(this.pools.has(e)){var r=this.pools.get(e);this.pools.set(e,r.addHandlers(t,n))}else this.pools.set(e,y.createByType(e,t,n));this.handlers.has(t)||this.addTargetHandler(t)}},{key:"hasHandlers",value:function(){return this.handlers.size>0}},{key:"removeHandlers",value:function(e,t,n){if(this.pools.has(e)){var r=this.pools.get(e).removeHandlers(t,n);r.hasHandlers()?this.pools.set(e,r):this.pools.delete(e);var i=!1;this.pools.forEach((function(e){return i=i||e.hasHandlers(t)})),i||this.removeTargetHandler(t)}}},{key:"addTargetHandler",value:function(e){var t=this.createEmitter(e);this.handlers.set(e,t),this.target.addEventListener(e,t,!0)}},{key:"removeTargetHandler",value:function(e){this.handlers.has(e)&&(this.target.removeEventListener(e,this.handlers.get(e),!0),this.handlers.delete(e))}}]),e}(),b=new(function(){function e(){var t=this;a(this,e),l(this,"targets",new Map),l(this,"getTarget",(function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=g(e);if(t.targets.has(r))return t.targets.get(r);if(!n)return null;var i=new v(r);return t.targets.set(r,i),i})),l(this,"removeTarget",(function(e){t.targets.delete(g(e))}))}return u(e,[{key:"sub",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r.canUseDOM){var i=n.target,o=void 0===i?document:i,a=n.pool,s=void 0===a?"default":a;this.getTarget(o).addHandlers(s,e,m(t))}}},{key:"unsub",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r.canUseDOM){var i=n.target,o=void 0===i?document:i,a=n.pool,s=void 0===a?"default":a,u=this.getTarget(o,!1);u&&(u.removeHandlers(s,e,m(t)),u.hasHandlers()||this.removeTarget(o))}}}]),e}()),w=function(){function e(){return a(this,e),d(this,c(e).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(e,i.PureComponent),u(e,[{key:"componentDidMount",value:function(){this.subscribe(this.props)}},{key:"componentDidUpdate",value:function(e){this.unsubscribe(e),this.subscribe(this.props)}},{key:"componentWillUnmount",value:function(){this.unsubscribe(this.props)}},{key:"subscribe",value:function(e){var t=e.name,n=e.on,r=e.pool,i=e.target;b.sub(t,n,{pool:r,target:i})}},{key:"unsubscribe",value:function(e){var t=e.name,n=e.on,r=e.pool,i=e.target;b.unsub(t,n,{pool:r,target:i})}},{key:"render",value:function(){return null}}]),e}();l(w,"defaultProps",{pool:"default",target:"document"}),w.propTypes={},t.instance=b,t.default=w},3302:(e,t,n)=>{"use strict";var r;r=n(8657),e.exports=r.default,e.exports.instance=r.instance},1475:(e,t,n)=>{"use strict";var r=n(4679),i=n(451),o=n(9932),a=n(9690),s=n(2215),u=n(2072);e.exports=function(e){var t,n=u(this),l=s(o(n,"length"));if(!a(e))throw new TypeError("mapperFunction must be a function");arguments.length>1&&(t=arguments[1]);var c=r(n,0);return i(c,n,l,0,1,e,t),c}},6573:(e,t,n)=>{"use strict";var r=n(8726),i=n(3629),o=n(1475),a=n(7674),s=a(),u=n(6232),l=i(s);r(l,{getPolyfill:a,implementation:o,shim:u}),e.exports=l},7674:(e,t,n)=>{"use strict";var r=n(1475);e.exports=function(){return Array.prototype.flatMap||r}},6232:(e,t,n)=>{"use strict";var r=n(8726),i=n(5241),o=n(7674);e.exports=function(){var e=o();return r(Array.prototype,{flatMap:e},{flatMap:function(){return Array.prototype.flatMap!==e}}),i("flatMap"),e}},6676:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],u=o[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,u)),c=0,f=u>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===u&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t);1===u&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,l=r-i;s<l;s+=a)o.push(u(e,s,s+a>l?l:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},3325:(e,t,n)=>{"use strict";const r=n(6676),i=n(6897),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=u,t.IS=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return l(e,t,n)}function l(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);const i=function(e){if(u.isBuffer(e)){const t=0|p(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||Y(e.length)?s(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return c(e),s(e<0?0:0|p(e))}function d(e){const t=e.length<0?0:0|p(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function p(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(i)return r?-1:V(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;o<s;o++)if(l(e,o)===l(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===u)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){let n=!0;for(let r=0;r<u;r++)if(l(e,o+r)!==l(t,r)){n=!1;break}if(n)return o}return-1}function w(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(Y(r))return a;e[n+a]=r}return a}function _(e,t,n,r){return $(V(t,e.length-n),e,n,r)}function x(e,t,n,r){return $(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n,r){return $(Q(t),e,n,r)}function k(e,t,n,r){return $(function(e,t){let n,r,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,u;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128===(192&n)&&(u=(31&t)<<6|63&n,u>127&&(o=u));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(u=(15&t)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(u=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=C));return n}(r)}u.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return function(e,t,n){return c(e),e<=0?s(e):void 0!==t?"string"===typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},u.allocUnsafe=function(e){return f(e)},u.allocUnsafeSlow=function(e){return f(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(K(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=u.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(K(t,Uint8Array))i+t.length>r.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},u.byteLength=m,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):g.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let e="";const n=t.IS;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n);for(let u=0;u<s;++u)if(l[u]!==c[u]){o=l[u],a=c[u];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function D(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function M(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function F(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let o=t;o<n;++o)i+=X[e[o]];return i}function O(e,t,n){const r=e.slice(t,n);let i="";for(let o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function T(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function P(e,t,n,r,i){H(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function I(e,t,n,r,i){H(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function R(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,o){return t=+t,n>>>=0,o||R(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return t=+t,n>>>=0,o||R(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=Z((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),u.prototype.readBigUInt64BE=Z((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=Z((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),u.prototype.readBigInt64BE=Z((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=Z((function(e){return P(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=Z((function(e){return I(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=Z((function(e){return P(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=Z((function(e){return I(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=u.isBuffer(e)?e:u.from(e,r),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}return this};const B={};function z(e,t,n){B[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name="".concat(this.name," [").concat(e,"]"),this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}}function U(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function H(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"===typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(o+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(o+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(o+1)-1).concat(r):">= ".concat(t).concat(r," and <= ").concat(n).concat(r),new B.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||G(t,e.length-(n+1))}(r,i,o)}function q(e,t){if("number"!==typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function G(e,t,n){if(Math.floor(e)!==e)throw q(e,n),new B.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}z("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),z("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),z("ERR_OUT_OF_RANGE",(function(e,t,n){let r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=U(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=U(i)),i+="n"),r+=" It must be ".concat(t,". Received ").concat(i),r}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function V(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Q(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function $(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!==e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Z(e){return"undefined"===typeof BigInt?J:e}function J(){throw new Error("BigInt not supported")}},3110:(e,t,n)=>{"use strict";var r=n(6989),i=n(1264),o=n(7858),a=n(6265);e.exports=a||r.call(o,i)},3887:(e,t,n)=>{"use strict";var r=n(6989),i=n(1264),o=n(3110);e.exports=function(){return o(r,i,arguments)}},1264:e=>{"use strict";e.exports=Function.prototype.apply},7858:e=>{"use strict";e.exports=Function.prototype.call},9460:(e,t,n)=>{"use strict";var r=n(6989),i=n(7277),o=n(7858),a=n(3110);e.exports=function(e){if(e.length<1||"function"!==typeof e[0])throw new i("a function is required");return a(r,o,e)}},6265:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect&&Reflect.apply},3629:(e,t,n)=>{"use strict";var r=n(8259),i=n(6709),o=n(9460),a=n(3887);e.exports=function(e){var t=o(arguments),n=e.length-(arguments.length-1);return r(t,1+(n>0?n:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},690:(e,t,n)=>{"use strict";var r=n(7375),i=n(9460),o=i([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i([n]):n}},5685:function(){!function(e){"use strict";var t,n=e.Uint8Array,r=e.HTMLCanvasElement,i=r&&r.prototype,o=/\s*;\s*base64\s*(?:;|$)/i,a="toDataURL",s=function(e){for(var r,i,o=e.length,a=new n(o/4*3|0),s=0,u=0,l=[0,0],c=0,f=0;o--;)i=e.charCodeAt(s++),255!==(r=t[i-43])&&undefined!==r&&(l[1]=l[0],l[0]=i,f=f<<6|r,4===++c&&(a[u++]=f>>>16,61!==l[1]&&(a[u++]=f>>>8),61!==l[0]&&(a[u++]=f),c=0));return a};n&&(t=new n([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),!r||i.toBlob&&i.toBlobHD||(i.toBlob||(i.toBlob=function(e,t){if(t||(t="image/png"),this.mozGetAsFile)e(this.mozGetAsFile("canvas",t));else if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(t))e(this.msToBlob());else{var r,i=Array.prototype.slice.call(arguments,1),u=this[a].apply(this,i),l=u.indexOf(","),c=u.substring(l+1),f=o.test(u.substring(0,l));Blob.fake?((r=new Blob).encoding=f?"base64":"URI",r.data=c,r.size=c.length):n&&(r=f?new Blob([s(c)],{type:t}):new Blob([decodeURIComponent(c)],{type:t})),e(r)}}),!i.toBlobHD&&i.toDataURLHD?i.toBlobHD=function(){a="toDataURLHD";var e=this.toBlob();return a="toDataURL",e}:i.toBlobHD=i.toBlob)}("undefined"!==typeof self&&self||"undefined"!==typeof window&&window||this.content||this)},4309:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=t},6487:(e,t,n)=>{var r="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof self&&self||"undefined"!==typeof n.g&&n.g,i=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var r="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||"undefined"!==typeof n.g&&n.g||{},i="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,a="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,u="ArrayBuffer"in r;if(u)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function f(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!==typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():u&&a&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=m(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(a)return this.blob().then(y);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=g(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8";return t.readAsText(e,i),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=f(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[f(e)]},p.prototype.get=function(e){return e=f(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(f(e))},p.prototype.set=function(e,t){this.map[f(e)]=d(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},o&&(p.prototype[Symbol.iterator]=p.prototype.entries);var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=function(e){var t=e.toUpperCase();return w.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function x(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function E(e){var t=new p;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(o){console.warn("Response "+o.message)}}})),t}function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},k.error=function(){var e=new k(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var S=[301,302,303,307,308];k.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new k(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(C){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function A(e,n){return new Promise((function(i,o){var s=new _(e,n);if(s.signal&&s.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function c(){l.abort()}if(l.onload=function(){var e={statusText:l.statusText,headers:E(l.getAllResponseHeaders()||"")};0===s.url.indexOf("file://")&&(l.status<200||l.status>599)?e.status=200:e.status=l.status,e.url="responseURL"in l?l.responseURL:e.headers.get("X-Request-URL");var t="response"in l?l.response:l.responseText;setTimeout((function(){i(new k(t,e))}),0)},l.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request timed out"))}),0)},l.onabort=function(){setTimeout((function(){o(new t.DOMException("Aborted","AbortError"))}),0)},l.open(s.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?l.withCredentials=!0:"omit"===s.credentials&&(l.withCredentials=!1),"responseType"in l&&(a?l.responseType="blob":u&&(l.responseType="arraybuffer")),n&&"object"===typeof n.headers&&!(n.headers instanceof p||r.Headers&&n.headers instanceof r.Headers)){var h=[];Object.getOwnPropertyNames(n.headers).forEach((function(e){h.push(f(e)),l.setRequestHeader(e,d(n.headers[e]))})),s.headers.forEach((function(e,t){-1===h.indexOf(t)&&l.setRequestHeader(t,e)}))}else s.headers.forEach((function(e,t){l.setRequestHeader(t,e)}));s.signal&&(s.signal.addEventListener("abort",c),l.onreadystatechange=function(){4===l.readyState&&s.signal.removeEventListener("abort",c)}),l.send("undefined"===typeof s._bodyInit?null:s._bodyInit)}))}A.polyfill=!0,r.fetch||(r.fetch=A,r.Headers=p,r.Request=_,r.Response=k),t.Headers=p,t.Request=_,t.Response=k,t.fetch=A,Object.defineProperty(t,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=r.fetch?r:i;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},8729:e=>{!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var i=e[r]<<16|e[r+1]<<8|e[r+2],o=0;o<4;o++)8*r+6*o<=8*e.length?n.push(t.charAt(i>>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r<e.length;i=++r%4)0!=i&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(r))>>>6-2*i);return n}};e.exports=n}()},1082:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r={value:()=>{}};function i(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new o(r)}function o(e){this._=e}function a(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function s(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=r,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=n&&e.push({name:t,value:n}),e}o.prototype=i.prototype={constructor:o,on:function(e,t){var n,r,i=this._,o=(r=i,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),u=-1,l=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++u<l;)if(n=(e=o[u]).type)i[n]=s(i[n],e.name,t);else if(null==t)for(n in i)i[n]=s(i[n],e.name,null);return this}for(;++u<l;)if((n=(e=o[u]).type)&&(n=a(i[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new o(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};const u=i},5574:(e,t,n)=>{"use strict";function r(){}function i(e){return null==e?r:function(){return this.querySelector(e)}}function o(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function a(){return[]}function s(e){return function(t){return t.matches(e)}}n.d(t,{A:()=>fe});var u=Array.prototype.find;function l(){return this.firstElementChild}var c=Array.prototype.filter;function f(){return this.children}function d(e){return new Array(e.length)}function h(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function p(e,t,n,r,i,o){for(var a,s=0,u=t.length,l=o.length;s<l;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new h(e,o[s]);for(;s<u;++s)(a=t[s])&&(i[s]=a)}function m(e,t,n,r,i,o,a){var s,u,l,c=new Map,f=t.length,d=o.length,p=new Array(f);for(s=0;s<f;++s)(u=t[s])&&(p[s]=l=a.call(u,u.__data__,s,t)+"",c.has(l)?i[s]=u:c.set(l,u));for(s=0;s<d;++s)l=a.call(e,o[s],s,o)+"",(u=c.get(l))?(r[s]=u,u.__data__=o[s],c.delete(l)):n[s]=new h(e,o[s]);for(s=0;s<f;++s)(u=t[s])&&c.get(p[s])===u&&(i[s]=u)}function g(e){return e.__data__}function y(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}h.prototype={constructor:h,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)}};var v="http://www.w3.org/1999/xhtml";const b={svg:"http://www.w3.org/2000/svg",xhtml:v,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function w(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),b.hasOwnProperty(t)?{space:b[t],local:e}:e}function _(e){return function(){this.removeAttribute(e)}}function x(e){return function(){this.removeAttributeNS(e.space,e.local)}}function E(e,t){return function(){this.setAttribute(e,t)}}function k(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function S(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function A(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function C(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function D(e){return function(){this.style.removeProperty(e)}}function M(e,t,n){return function(){this.style.setProperty(e,t,n)}}function F(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function O(e){return function(){delete this[e]}}function T(e,t){return function(){this[e]=t}}function N(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function P(e){return e.trim().split(/^|\s+/)}function I(e){return e.classList||new R(e)}function R(e){this._node=e,this._names=P(e.getAttribute("class")||"")}function j(e,t){for(var n=I(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function L(e,t){for(var n=I(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function B(e){return function(){j(this,e)}}function z(e){return function(){L(this,e)}}function U(e,t){return function(){(t.apply(this,arguments)?j:L)(this,e)}}function H(){this.textContent=""}function q(e){return function(){this.textContent=e}}function G(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function W(){this.innerHTML=""}function V(e){return function(){this.innerHTML=e}}function Q(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function $(){this.nextSibling&&this.parentNode.appendChild(this)}function K(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Y(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===v&&t.documentElement.namespaceURI===v?t.createElement(e):t.createElementNS(n,e)}}function X(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Z(e){var t=w(e);return(t.local?X:Y)(t)}function J(){return null}function ee(){var e=this.parentNode;e&&e.removeChild(this)}function te(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ne(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function re(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function ie(e,t,n){return function(){var r,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function oe(e,t,n){var r=C(e),i=r.CustomEvent;"function"===typeof i?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 ae(e,t){return function(){return oe(this,e,t)}}function se(e,t){return function(){return oe(this,e,t.apply(this,arguments))}}R.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}};var ue=[null];function le(e,t){this._groups=e,this._parents=t}function ce(){return new le([[document.documentElement]],ue)}le.prototype=ce.prototype={constructor:le,select:function(e){"function"!==typeof e&&(e=i(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a,s,u=t[o],l=u.length,c=r[o]=new Array(l),f=0;f<l;++f)(a=u[f])&&(s=e.call(a,a.__data__,f,u))&&("__data__"in a&&(s.__data__=a.__data__),c[f]=s);return new le(r,this._parents)},selectAll:function(e){e="function"===typeof e?function(e){return function(){var t=e.apply(this,arguments);return null==t?[]:o(t)}}(e):function(e){return null==e?a:function(){return this.querySelectorAll(e)}}(e);for(var t=this._groups,n=t.length,r=[],i=[],s=0;s<n;++s)for(var u,l=t[s],c=l.length,f=0;f<c;++f)(u=l[f])&&(r.push(e.call(u,u.__data__,f,l)),i.push(u));return new le(r,i)},selectChild:function(e){return this.select(null==e?l:function(e){return function(){return u.call(this.children,e)}}("function"===typeof e?e:s(e)))},selectChildren:function(e){return this.selectAll(null==e?f:function(e){return function(){return c.call(this.children,e)}}("function"===typeof e?e:s(e)))},filter:function(e){"function"!==typeof e&&(e=function(e){return function(){return this.matches(e)}}(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new le(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,g);var n,r=t?m:p,i=this._parents,a=this._groups;"function"!==typeof e&&(n=e,e=function(){return n});for(var s=a.length,u=new Array(s),l=new Array(s),c=new Array(s),f=0;f<s;++f){var d=i[f],h=a[f],y=h.length,v=o(e.call(d,d&&d.__data__,f,i)),b=v.length,w=l[f]=new Array(b),_=u[f]=new Array(b);r(d,h,w,_,c[f]=new Array(y),v,t);for(var x,E,k=0,S=0;k<b;++k)if(x=w[k]){for(k>=S&&(S=k+1);!(E=_[S])&&++S<b;);x._next=E||null}}return(u=new le(u,i))._enter=l,u._exit=c,u},enter:function(){return new le(this._enter||this._groups.map(d),this._parents)},exit:function(){return new le(this._exit||this._groups.map(d),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return r="function"===typeof e?e(r):r.append(e+""),null!=t&&(i=t(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){if(!(e instanceof le))throw new Error("invalid merge");for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],f=l.length,d=a[s]=new Array(f),h=0;h<f;++h)(u=l[h]||c[h])&&(d[h]=u);for(;s<r;++s)a[s]=t[s];return new le(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=y);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,l=i[o]=new Array(u),c=0;c<u;++c)(a=s[c])&&(l[c]=a);l.sort(t)}return new le(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=w(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?x:_:"function"===typeof t?n.local?A:S:n.local?k:E)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?D:"function"===typeof t?F:M)(e,t,null==n?"":n)):function(e,t){return e.style.getPropertyValue(t)||C(e).getComputedStyle(e,null).getPropertyValue(t)}(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?O:"function"===typeof t?N:T)(e,t)):this.node()[e]},classed:function(e,t){var n=P(e+"");if(arguments.length<2){for(var r=I(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof t?U:t?B:z)(n,t))},text:function(e){return arguments.length?this.each(null==e?H:("function"===typeof e?G:q)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?W:("function"===typeof e?Q:V)(e)):this.node().innerHTML},raise:function(){return this.each($)},lower:function(){return this.each(K)},append:function(e){var t="function"===typeof e?e:Z(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:Z(e),r=null==t?J:"function"===typeof t?t:i(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(ee)},clone:function(e){return this.select(e?ne:te)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=function(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}}))}(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?ie:re,r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var u,l=0,c=s.length;l<c;++l)for(r=0,u=s[l];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(e,t){return this.each(("function"===typeof t?se:ae)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};function fe(e){return"string"===typeof e?new le([[document.querySelector(e)]],[document.documentElement]):new le([[e]],ue)}},4221:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,y:()=>a});var r=n(5574),i=n(2319);function o(e){var t=e.document.documentElement,n=(0,r.A)(e).on("dragstart.drag",i.A,!0);"onselectstart"in t?n.on("selectstart.drag",i.A,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function a(e,t){var n=e.document.documentElement,o=(0,r.A)(e).on("dragstart.drag",null);t&&(o.on("click.drag",i.A,!0),setTimeout((function(){o.on("click.drag",null)}),0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}},2319:(e,t,n)=>{"use strict";function r(e){e.stopImmediatePropagation()}function i(e){e.preventDefault(),e.stopImmediatePropagation()}n.d(t,{A:()=>i,G:()=>r})},412:(e,t,n)=>{"use strict";function r(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function i(e,t){var n,r,i,a,l,c=new u(e),f=+e.value&&(c.value=e.value),d=[c];for(null==t&&(t=o);n=d.pop();)if(f&&(n.value=+n.data.value),(i=t(n.data))&&(l=i.length))for(n.children=new Array(l),a=l-1;a>=0;--a)d.push(r=n.children[a]=new u(i[a])),r.parent=n,r.depth=n.depth+1;return c.eachBefore(s)}function o(e){return e.children}function a(e){e.data=e.data.data}function s(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function u(e){this.data=e,this.depth=this.height=0,this.parent=null}n.r(t),n.d(t,{flextree:()=>f}),u.prototype=i.prototype={constructor:u,count:function(){return this.eachAfter(r)},each:function(e){var t,n,r,i,o=this,a=[o];do{for(t=a.reverse(),a=[];o=t.pop();)if(e(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this},eachAfter:function(e){for(var t,n,r,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n]);for(;i=a.pop();)e(i);return this},eachBefore:function(e){for(var t,n,r=this,i=[r];r=i.pop();)if(e(r),t=r.children)for(n=t.length-1;n>=0;--n)i.push(t[n]);return this},sum:function(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}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(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},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each((function(t){e.push(t)})),e},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return i(this).eachBefore(a)}};const{rE:l}={rE:"2.1.2"},c=Object.freeze({children:e=>e.children,nodeSize:e=>e.data.size,spacing:0});function f(e){const t=Object.assign({},c,e);function n(e){const n=t[e];return"function"===typeof n?n:()=>n}function r(e){const t=a(function(){const e=o(),t=n("nodeSize"),r=n("spacing");return class extends e{constructor(e){super(e),Object.assign(this,{x:0,y:0,relX:0,prelim:0,shift:0,change:0,lExt:this,lExtRelX:0,lThr:null,rExt:this,rExtRelX:0,rThr:null})}get size(){return t(this.data)}spacing(e){return r(this.data,e.data)}get x(){return this.data.x}set x(e){this.data.x=e}get y(){return this.data.y}set y(e){this.data.y=e}update(){return d(this),h(this),this}}}(),e,(e=>e.children));return t.update(),t.data}function o(){const e=n("nodeSize"),t=n("spacing");return class n extends i.prototype.constructor{constructor(e){super(e)}copy(){const e=a(this.constructor,this,(e=>e.children));return e.each((e=>e.data=e.data.data)),e}get size(){return e(this)}spacing(e){return t(this,e)}get nodes(){return this.descendants()}get xSize(){return this.size[0]}get ySize(){return this.size[1]}get top(){return this.y}get bottom(){return this.y+this.ySize}get left(){return this.x-this.xSize/2}get right(){return this.x+this.xSize/2}get root(){const e=this.ancestors();return e[e.length-1]}get numChildren(){return this.hasChildren?this.children.length:0}get hasChildren(){return!this.noChildren}get noChildren(){return null===this.children}get firstChild(){return this.hasChildren?this.children[0]:null}get lastChild(){return this.hasChildren?this.children[this.numChildren-1]:null}get extents(){return(this.children||[]).reduce(((e,t)=>n.maxExtents(e,t.extents)),this.nodeExtents)}get nodeExtents(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}static maxExtents(e,t){return{top:Math.min(e.top,t.top),bottom:Math.max(e.bottom,t.bottom),left:Math.min(e.left,t.left),right:Math.max(e.right,t.right)}}}}function a(e,t,n){const r=(t,i)=>{const o=new e(t);Object.assign(o,{parent:i,depth:null===i?0:i.depth+1,height:0,length:1});const a=n(t)||[];return o.children=0===a.length?null:a.map((e=>r(e,o))),o.children&&Object.assign(o,o.children.reduce(((e,t)=>({height:Math.max(e.height,t.height+1),length:e.length+t.length})),o)),o};return r(t,null)}return Object.assign(r,{nodeSize(e){return arguments.length?(t.nodeSize=e,r):t.nodeSize},spacing(e){return arguments.length?(t.spacing=e,r):t.spacing},children(e){return arguments.length?(t.children=e,r):t.children},hierarchy(e,n){const r="undefined"===typeof n?t.children:n;return a(o(),e,r)},dump(e){const t=n("nodeSize"),r=e=>n=>{const i=e+" ",o=e+" ",{x:a,y:s}=n,u=t(n),l=n.children||[],c=0===l.length?" ":",".concat(i,"children: [").concat(o).concat(l.map(r(o)).join(o)).concat(i,"],").concat(e);return"{ size: [".concat(u.join(", "),"],").concat(i,"x: ").concat(a,", y: ").concat(s).concat(c,"},")};return r("\n")(e)}}),r}f.version=l;const d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.y=t,(e.children||[]).reduce(((t,n)=>{const[r,i]=t;d(n,e.y+e.ySize);const o=(0===r?n.lExt:n.rExt).bottom;0!==r&&m(e,r,i);return[r+1,E(o,r,i)]}),[0,null]),p(e),x(e),e},h=(e,t,n)=>{"undefined"===typeof t&&(t=-e.relX-e.prelim,n=0);const r=t+e.relX;return e.relX=r+e.prelim-n,e.prelim=0,e.x=n+e.relX,(e.children||[]).forEach((t=>h(t,r,e.x))),e},p=e=>{(e.children||[]).reduce(((e,t)=>{const[n,r]=e,i=n+t.shift,o=r+i+t.change;return t.relX+=o,[i,o]}),[0,0])},m=(e,t,n)=>{const r=e.children[t-1],i=e.children[t];let o=r,a=r.relX,s=i,u=i.relX,l=!0;for(;o&&s;){o.bottom>n.lowY&&(n=n.next);const r=a+o.prelim-(u+s.prelim)+o.xSize/2+s.xSize/2+o.spacing(s);(r>0||r<0&&l)&&(u+=r,g(i,r),y(e,t,n.index,r)),l=!1;const c=o.bottom,f=s.bottom;c<=f&&(o=b(o),o&&(a+=o.relX)),c>=f&&(s=v(s),s&&(u+=s.relX))}!o&&s?w(e,t,s,u):o&&!s&&_(e,t,o,a)},g=(e,t)=>{e.relX+=t,e.lExtRelX+=t,e.rExtRelX+=t},y=(e,t,n,r)=>{const i=e.children[t],o=t-n;if(o>1){const t=r/o;e.children[n+1].shift+=t,i.shift-=t,i.change-=r-t}},v=e=>e.hasChildren?e.firstChild:e.lThr,b=e=>e.hasChildren?e.lastChild:e.rThr,w=(e,t,n,r)=>{const i=e.firstChild,o=i.lExt,a=e.children[t];o.lThr=n;const s=r-n.relX-i.lExtRelX;o.relX+=s,o.prelim-=s,i.lExt=a.lExt,i.lExtRelX=a.lExtRelX},_=(e,t,n,r)=>{const i=e.children[t],o=i.rExt,a=e.children[t-1];o.rThr=n;const s=r-n.relX-i.rExtRelX;o.relX+=s,o.prelim-=s,i.rExt=a.rExt,i.rExtRelX=a.rExtRelX},x=e=>{if(e.hasChildren){const t=e.firstChild,n=e.lastChild,r=(t.prelim+t.relX-t.xSize/2+n.relX+n.prelim+n.xSize/2)/2;Object.assign(e,{prelim:r,lExt:t.lExt,lExtRelX:t.lExtRelX,rExt:n.rExt,rExtRelX:n.rExtRelX})}},E=(e,t,n)=>{for(;null!==n&&e>=n.lowY;)n=n.next;return{lowY:e,index:t,next:n}}},409:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Adder:()=>x,Delaunay:()=>ws,FormatSpecifier:()=>uc,InternMap:()=>S.B,InternSet:()=>S.v,Voronoi:()=>ps,active:()=>jF,arc:()=>MC,area:()=>jC,areaRadial:()=>VC,ascending:()=>i,autoType:()=>ru,axisBottom:()=>Xe,axisLeft:()=>Ze,axisRight:()=>Ye,axisTop:()=>Ke,bin:()=>K,bisect:()=>f,bisectCenter:()=>c,bisectLeft:()=>l,bisectRight:()=>u,bisector:()=>o,blob:()=>Ku,brush:()=>Ui,brushSelection:()=>Li,brushX:()=>Bi,brushY:()=>zi,buffer:()=>Xu,chord:()=>Zi,chordDirected:()=>eo,chordTranspose:()=>Ji,cluster:()=>Sm,color:()=>zo,contourDensity:()=>Za,contours:()=>Va,count:()=>d,create:()=>nC,creator:()=>$S,cross:()=>g,csv:()=>nl,csvFormat:()=>Gs,csvFormatBody:()=>Ws,csvFormatRow:()=>Qs,csvFormatRows:()=>Vs,csvFormatValue:()=>$s,csvParse:()=>Hs,csvParseRows:()=>qs,cubehelix:()=>Fa,cumsum:()=>y,curveBasis:()=>SD,curveBasisClosed:()=>CD,curveBasisOpen:()=>MD,curveBumpX:()=>OD,curveBumpY:()=>TD,curveBundle:()=>PD,curveCardinal:()=>jD,curveCardinalClosed:()=>BD,curveCardinalOpen:()=>UD,curveCatmullRom:()=>GD,curveCatmullRomClosed:()=>VD,curveCatmullRomOpen:()=>$D,curveLinear:()=>NC,curveLinearClosed:()=>YD,curveMonotoneX:()=>iM,curveMonotoneY:()=>oM,curveNatural:()=>uM,curveStep:()=>cM,curveStepAfter:()=>dM,curveStepBefore:()=>fM,descending:()=>v,deviation:()=>w,difference:()=>Me,disjoint:()=>Fe,dispatch:()=>Je.A,drag:()=>Fs,dragDisable:()=>et.A,dragEnable:()=>et.y,dsv:()=>tl,dsvFormat:()=>zs,easeBack:()=>qu,easeBackIn:()=>Uu,easeBackInOut:()=>qu,easeBackOut:()=>Hu,easeBounce:()=>Lu,easeBounceIn:()=>ju,easeBounceInOut:()=>Bu,easeBounceOut:()=>Lu,easeCircle:()=>Au,easeCircleIn:()=>ku,easeCircleInOut:()=>Au,easeCircleOut:()=>Su,easeCubic:()=>fu,easeCubicIn:()=>lu,easeCubicInOut:()=>fu,easeCubicOut:()=>cu,easeElastic:()=>Vu,easeElasticIn:()=>Wu,easeElasticInOut:()=>Qu,easeElasticOut:()=>Vu,easeExp:()=>Eu,easeExpIn:()=>_u,easeExpInOut:()=>Eu,easeExpOut:()=>xu,easeLinear:()=>ou,easePoly:()=>pu,easePolyIn:()=>du,easePolyInOut:()=>pu,easePolyOut:()=>hu,easeQuad:()=>uu,easeQuadIn:()=>au,easeQuadInOut:()=>uu,easeQuadOut:()=>su,easeSin:()=>bu,easeSinIn:()=>yu,easeSinInOut:()=>bu,easeSinOut:()=>vu,every:()=>Ee,extent:()=>_,fcumsum:()=>k,filter:()=>Se,forceCenter:()=>fl,forceCollide:()=>kl,forceLink:()=>Cl,forceManyBody:()=>Jl,forceRadial:()=>ec,forceSimulation:()=>Zl,forceX:()=>tc,forceY:()=>nc,format:()=>hc,formatDefaultLocale:()=>vc,formatLocale:()=>yc,formatPrefix:()=>pc,formatSpecifier:()=>sc,fsum:()=>E,geoAlbers:()=>zp,geoAlbersUsa:()=>Up,geoArea:()=>kf,geoAzimuthalEqualArea:()=>Wp,geoAzimuthalEqualAreaRaw:()=>Gp,geoAzimuthalEquidistant:()=>Qp,geoAzimuthalEquidistantRaw:()=>Vp,geoBounds:()=>od,geoCentroid:()=>yd,geoCircle:()=>Dd,geoClipAntimeridian:()=>zd,geoClipCircle:()=>Ud,geoClipExtent:()=>Kd,geoClipRectangle:()=>$d,geoConicConformal:()=>Jp,geoConicConformalRaw:()=>Zp,geoConicEqualArea:()=>Bp,geoConicEqualAreaRaw:()=>Lp,geoConicEquidistant:()=>rm,geoConicEquidistantRaw:()=>nm,geoContains:()=>dh,geoDistance:()=>rh,geoEqualEarth:()=>cm,geoEqualEarthRaw:()=>lm,geoEquirectangular:()=>tm,geoEquirectangularRaw:()=>em,geoGnomonic:()=>dm,geoGnomonicRaw:()=>fm,geoGraticule:()=>gh,geoGraticule10:()=>yh,geoIdentity:()=>hm,geoInterpolate:()=>vh,geoLength:()=>eh,geoMercator:()=>Kp,geoMercatorRaw:()=>$p,geoNaturalEarth1:()=>mm,geoNaturalEarth1Raw:()=>pm,geoOrthographic:()=>ym,geoOrthographicRaw:()=>gm,geoPath:()=>_p,geoProjection:()=>Ip,geoProjectionMutator:()=>Rp,geoRotation:()=>Sd,geoStereographic:()=>bm,geoStereographicRaw:()=>vm,geoStream:()=>Jc,geoTransform:()=>xp,geoTransverseMercator:()=>_m,geoTransverseMercatorRaw:()=>wm,gray:()=>ca,greatest:()=>pe,greatestIndex:()=>me,group:()=>C,groupSort:()=>j,groups:()=>D,hcl:()=>ba,hierarchy:()=>Cm,histogram:()=>K,hsl:()=>Xo,html:()=>ll,image:()=>il,index:()=>O,indexes:()=>T,interpolate:()=>Vg,interpolateArray:()=>Lg,interpolateBasis:()=>Sg,interpolateBasisClosed:()=>Ag,interpolateBlues:()=>nS,interpolateBrBG:()=>pk,interpolateBuGn:()=>Tk,interpolateBuPu:()=>Pk,interpolateCividis:()=>hS,interpolateCool:()=>FS,interpolateCubehelix:()=>hy,interpolateCubehelixDefault:()=>DS,interpolateCubehelixLong:()=>py,interpolateDate:()=>zg,interpolateDiscrete:()=>Qg,interpolateGnBu:()=>Rk,interpolateGreens:()=>iS,interpolateGreys:()=>aS,interpolateHcl:()=>cy,interpolateHclLong:()=>fy,interpolateHsl:()=>ay,interpolateHslLong:()=>sy,interpolateHue:()=>$g,interpolateInferno:()=>US,interpolateLab:()=>uy,interpolateMagma:()=>zS,interpolateNumber:()=>Ug,interpolateNumberArray:()=>Rg,interpolateObject:()=>Hg,interpolateOrRd:()=>Lk,interpolateOranges:()=>dS,interpolatePRGn:()=>gk,interpolatePiYG:()=>vk,interpolatePlasma:()=>HS,interpolatePuBu:()=>Hk,interpolatePuBuGn:()=>zk,interpolatePuOr:()=>wk,interpolatePuRd:()=>Gk,interpolatePurples:()=>uS,interpolateRainbow:()=>TS,interpolateRdBu:()=>xk,interpolateRdGy:()=>kk,interpolateRdPu:()=>Vk,interpolateRdYlBu:()=>Ak,interpolateRdYlGn:()=>Dk,interpolateReds:()=>cS,interpolateRgb:()=>Tg,interpolateRgbBasis:()=>Pg,interpolateRgbBasisClosed:()=>Ig,interpolateRound:()=>Kg,interpolateSinebow:()=>RS,interpolateSpectral:()=>Fk,interpolateString:()=>Wg,interpolateTransformCss:()=>ty,interpolateTransformSvg:()=>ny,interpolateTurbo:()=>jS,interpolateViridis:()=>BS,interpolateWarm:()=>MS,interpolateYlGn:()=>Yk,interpolateYlGnBu:()=>$k,interpolateYlOrBr:()=>Zk,interpolateYlOrRd:()=>eS,interpolateZoom:()=>iy,interrupt:()=>cF,intersection:()=>Te,interval:()=>JM,isoFormat:()=>OM,isoParse:()=>NM,json:()=>al,lab:()=>fa,lch:()=>va,least:()=>de,leastIndex:()=>he,line:()=>RC,lineRadial:()=>WC,linkHorizontal:()=>eD,linkRadial:()=>nD,linkVertical:()=>tD,local:()=>iC,map:()=>Ae,matcher:()=>eA,max:()=>Y,maxIndex:()=>ie,mean:()=>oe,median:()=>ae,merge:()=>se,min:()=>X,minIndex:()=>ue,namespace:()=>WS,namespaces:()=>GS,nice:()=>Q,now:()=>GM,pack:()=>Xm,packEnclose:()=>Nm,packSiblings:()=>Vm,pairs:()=>le,partition:()=>rg,path:()=>uo,permute:()=>I,pie:()=>zC,piecewise:()=>my,pointRadial:()=>QC,pointer:()=>sC,pointers:()=>uC,polygonArea:()=>yy,polygonCentroid:()=>vy,polygonContains:()=>Ey,polygonHull:()=>xy,polygonLength:()=>ky,precisionFixed:()=>bc,precisionPrefix:()=>wc,precisionRound:()=>_c,quadtree:()=>gl,quantile:()=>ee,quantileSorted:()=>te,quantize:()=>gy,quickselect:()=>Z,radialArea:()=>VC,radialLine:()=>WC,randomBates:()=>Oy,randomBernoulli:()=>Py,randomBeta:()=>jy,randomBinomial:()=>Ly,randomCauchy:()=>zy,randomExponential:()=>Ty,randomGamma:()=>Ry,randomGeometric:()=>Iy,randomInt:()=>Cy,randomIrwinHall:()=>Fy,randomLcg:()=>Vy,randomLogNormal:()=>My,randomLogistic:()=>Uy,randomNormal:()=>Dy,randomPareto:()=>Ny,randomPoisson:()=>Hy,randomUniform:()=>Ay,randomWeibull:()=>By,range:()=>fe,reduce:()=>Ce,reverse:()=>De,rgb:()=>Go,ribbon:()=>wo,ribbonArrow:()=>_o,rollup:()=>M,rollups:()=>F,scaleBand:()=>Xy,scaleDiverging:()=>dE,scaleDivergingLog:()=>hE,scaleDivergingPow:()=>mE,scaleDivergingSqrt:()=>gE,scaleDivergingSymlog:()=>pE,scaleIdentity:()=>gb,scaleImplicit:()=>Ky,scaleLinear:()=>mb,scaleLog:()=>Sb,scaleOrdinal:()=>Yy,scalePoint:()=>Jy,scalePow:()=>Pb,scaleQuantile:()=>Gb,scaleQuantize:()=>Wb,scaleRadial:()=>jb,scaleSequential:()=>oE,scaleSequentialLog:()=>aE,scaleSequentialPow:()=>uE,scaleSequentialQuantile:()=>cE,scaleSequentialSqrt:()=>lE,scaleSequentialSymlog:()=>sE,scaleSqrt:()=>Ib,scaleSymlog:()=>Mb,scaleThreshold:()=>Vb,scaleTime:()=>tE,scaleUtc:()=>nE,scan:()=>ge,schemeAccent:()=>bE,schemeBlues:()=>tS,schemeBrBG:()=>hk,schemeBuGn:()=>Ok,schemeBuPu:()=>Nk,schemeCategory10:()=>vE,schemeDark2:()=>wE,schemeGnBu:()=>Ik,schemeGreens:()=>rS,schemeGreys:()=>oS,schemeOrRd:()=>jk,schemeOranges:()=>fS,schemePRGn:()=>mk,schemePaired:()=>_E,schemePastel1:()=>xE,schemePastel2:()=>EE,schemePiYG:()=>yk,schemePuBu:()=>Uk,schemePuBuGn:()=>Bk,schemePuOr:()=>bk,schemePuRd:()=>qk,schemePurples:()=>sS,schemeRdBu:()=>_k,schemeRdGy:()=>Ek,schemeRdPu:()=>Wk,schemeRdYlBu:()=>Sk,schemeRdYlGn:()=>Ck,schemeReds:()=>lS,schemeSet1:()=>kE,schemeSet2:()=>SE,schemeSet3:()=>AE,schemeSpectral:()=>Mk,schemeTableau10:()=>CE,schemeYlGn:()=>Kk,schemeYlGnBu:()=>Qk,schemeYlOrBr:()=>Xk,schemeYlOrRd:()=>Jk,select:()=>tC,selectAll:()=>lC,selection:()=>eC,selector:()=>YS,selectorAll:()=>JS,shuffle:()=>ye,shuffler:()=>ve,some:()=>ke,sort:()=>R,stack:()=>yM,stackOffsetDiverging:()=>bM,stackOffsetExpand:()=>vM,stackOffsetNone:()=>hM,stackOffsetSilhouette:()=>wM,stackOffsetWiggle:()=>_M,stackOrderAppearance:()=>xM,stackOrderAscending:()=>kM,stackOrderDescending:()=>AM,stackOrderInsideOut:()=>CM,stackOrderNone:()=>pM,stackOrderReverse:()=>DM,stratify:()=>ug,style:()=>xA,subset:()=>Pe,sum:()=>be,superset:()=>Ne,svg:()=>cl,symbol:()=>_D,symbolCircle:()=>rD,symbolCross:()=>iD,symbolDiamond:()=>sD,symbolSquare:()=>dD,symbolStar:()=>fD,symbolTriangle:()=>pD,symbolWye:()=>bD,symbols:()=>wD,text:()=>Ju,thresholdFreedmanDiaconis:()=>ne,thresholdScott:()=>re,thresholdSturges:()=>$,tickFormat:()=>hb,tickIncrement:()=>W,tickStep:()=>V,ticks:()=>G,timeDay:()=>_w,timeDays:()=>xw,timeFormat:()=>F_,timeFormatDefaultLocale:()=>Xx,timeFormatLocale:()=>D_,timeFriday:()=>Mw,timeFridays:()=>Rw,timeHour:()=>vw,timeHours:()=>bw,timeInterval:()=>sw,timeMillisecond:()=>lw,timeMilliseconds:()=>cw,timeMinute:()=>mw,timeMinutes:()=>gw,timeMonday:()=>Sw,timeMondays:()=>Tw,timeMonth:()=>Bw,timeMonths:()=>zw,timeParse:()=>O_,timeSaturday:()=>Fw,timeSaturdays:()=>jw,timeSecond:()=>dw,timeSeconds:()=>hw,timeSunday:()=>kw,timeSundays:()=>Ow,timeThursday:()=>Dw,timeThursdays:()=>Iw,timeTickInterval:()=>k_,timeTicks:()=>E_,timeTuesday:()=>Aw,timeTuesdays:()=>Nw,timeWednesday:()=>Cw,timeWednesdays:()=>Pw,timeWeek:()=>kw,timeWeeks:()=>Ow,timeYear:()=>Hw,timeYears:()=>qw,timeout:()=>ZM,timer:()=>QM,timerFlush:()=>$M,transition:()=>OF,transpose:()=>we,tree:()=>mg,treemap:()=>wg,treemapBinary:()=>_g,treemapDice:()=>ng,treemapResquarify:()=>Eg,treemapSlice:()=>gg,treemapSliceDice:()=>xg,treemapSquarify:()=>bg,tsv:()=>rl,tsvFormat:()=>Zs,tsvFormatBody:()=>Js,tsvFormatRow:()=>tu,tsvFormatRows:()=>eu,tsvFormatValue:()=>nu,tsvParse:()=>Ys,tsvParseRows:()=>Xs,union:()=>Ie,utcDay:()=>Xw,utcDays:()=>Zw,utcFormat:()=>T_,utcFriday:()=>o_,utcFridays:()=>d_,utcHour:()=>$w,utcHours:()=>Kw,utcMillisecond:()=>lw,utcMilliseconds:()=>cw,utcMinute:()=>Ww,utcMinutes:()=>Vw,utcMonday:()=>t_,utcMondays:()=>u_,utcMonth:()=>m_,utcMonths:()=>g_,utcParse:()=>N_,utcSaturday:()=>a_,utcSaturdays:()=>h_,utcSecond:()=>dw,utcSeconds:()=>hw,utcSunday:()=>e_,utcSundays:()=>s_,utcThursday:()=>i_,utcThursdays:()=>f_,utcTickInterval:()=>x_,utcTicks:()=>__,utcTuesday:()=>n_,utcTuesdays:()=>l_,utcWednesday:()=>r_,utcWednesdays:()=>c_,utcWeek:()=>e_,utcWeeks:()=>s_,utcYear:()=>v_,utcYears:()=>b_,variance:()=>b,version:()=>r,window:()=>vA,xml:()=>ul,zip:()=>xe,zoom:()=>XF,zoomIdentity:()=>UF,zoomTransform:()=>HF});var r="6.7.0";function i(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function o(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>i(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}function a(e){return null===e?NaN:+e}const s=o(i),u=s.right,l=s.left,c=o(a).center,f=u;function d(e,t){let n=0;if(void 0===t)for(let r of e)null!=r&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(i=+i)>=i&&++n}return n}function h(e){return 0|e.length}function p(e){return!(e>0)}function m(e){return"object"!==typeof e||"length"in e?e:Array.from(e)}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r="function"===typeof t[t.length-1]&&function(e){return t=>e(...t)}(t.pop()),i=(t=t.map(m)).map(h),o=t.length-1,a=new Array(o+1).fill(0),s=[];if(o<0||i.some(p))return s;for(;;){s.push(a.map(((e,n)=>t[n][e])));let e=o;for(;++a[e]===i[e];){if(0===e)return r?s.map(r):s;a[e--]=0}}}function y(e,t){var n=0,r=0;return Float64Array.from(e,void 0===t?e=>n+=+e||0:i=>n+=+t(i,r++,e)||0)}function v(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function b(e,t){let n,r=0,i=0,o=0;if(void 0===t)for(let a of e)null!=a&&(a=+a)>=a&&(n=a-i,i+=n/++r,o+=n*(a-i));else{let a=-1;for(let s of e)null!=(s=t(s,++a,e))&&(s=+s)>=s&&(n=s-i,i+=n/++r,o+=n*(s-i))}if(r>1)return o/(r-1)}function w(e,t){const n=b(e,t);return n?Math.sqrt(n):n}function _(e,t){let n,r;if(void 0===t)for(const i of e)null!=i&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let o of e)null!=(o=t(o,++i,e))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}class x{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const i=t[r],o=e+i,a=Math.abs(e)<Math.abs(i)?e-(o-i):i-(o-e);a&&(t[n++]=a),e=o}return t[n]=e,this._n=n+1,this}valueOf(){const e=this._partials;let t,n,r,i=this._n,o=0;if(i>0){for(o=e[--i];i>0&&(t=o,n=e[--i],o=t+n,r=n-(o-t),!r););i>0&&(r<0&&e[i-1]<0||r>0&&e[i-1]>0)&&(n=2*r,t=o+n,n==t-o&&(o=t))}return o}}function E(e,t){const n=new x;if(void 0===t)for(let r of e)(r=+r)&&n.add(r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&n.add(i)}return+n}function k(e,t){const n=new x;let r=-1;return Float64Array.from(e,void 0===t?e=>n.add(+e||0):i=>n.add(+t(i,++r,e)||0))}var S=n(150);function A(e){return e}function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return P(e,A,A,n)}function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return P(e,Array.from,A,n)}function M(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return P(e,A,t,r)}function F(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return P(e,Array.from,t,r)}function O(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return P(e,A,N,n)}function T(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return P(e,Array.from,N,n)}function N(e){if(1!==e.length)throw new Error("duplicate key");return e[0]}function P(e,t,n,r){return function e(i,o){if(o>=r.length)return n(i);const a=new S.B,s=r[o++];let u=-1;for(const t of i){const e=s(t,++u,i),n=a.get(e);n?n.push(t):a.set(e,[t])}for(const[t,n]of a)a.set(t,e(n,o));return t(a)}(e,0)}function I(e,t){return Array.from(t,(t=>e[t]))}function R(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("function"!==typeof e[Symbol.iterator])throw new TypeError("values is not iterable");e=Array.from(e);let[o=i]=n;if(1===o.length||n.length>1){const t=Uint32Array.from(e,((e,t)=>t));return n.length>1?(n=n.map((t=>e.map(t))),t.sort(((e,t)=>{for(const r of n){const n=i(r[e],r[t]);if(n)return n}}))):(o=e.map(o),t.sort(((e,t)=>i(o[e],o[t])))),I(e,t)}return e.sort(o)}function j(e,t,n){return(1===t.length?R(M(e,t,n),((e,t)=>{let[n,r]=e,[o,a]=t;return i(r,a)||i(n,o)})):R(C(e,n),((e,n)=>{let[r,o]=e,[a,s]=n;return t(o,s)||i(r,a)}))).map((e=>{let[t]=e;return t}))}var L=Array.prototype,B=L.slice;L.map;function z(e){return function(){return e}}var U=Math.sqrt(50),H=Math.sqrt(10),q=Math.sqrt(2);function G(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=W(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)/a}return r&&o.reverse(),o}function W(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=U?10:o>=H?5:o>=q?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=U?10:o>=H?5:o>=q?2:1)}function V(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=U?i*=10:o>=H?i*=5:o>=q&&(i*=2),t<e?-i:i}function Q(e,t,n){let r;for(;;){const i=W(e,t,n);if(i===r||0===i||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function $(e){return Math.ceil(Math.log(d(e))/Math.LN2)+1}function K(){var e=A,t=_,n=$;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a=r.length,s=new Array(a);for(i=0;i<a;++i)s[i]=e(r[i],i,r);var u=t(s),l=u[0],c=u[1],d=n(s,l,c);if(!Array.isArray(d)){const e=c,n=+d;if(t===_&&([l,c]=Q(l,c,n)),(d=G(l,c,n))[d.length-1]>=c)if(e>=c&&t===_){const e=W(l,c,n);isFinite(e)&&(e>0?c=(Math.floor(c/e)+1)*e:e<0&&(c=(Math.ceil(c*-e)+1)/-e))}else d.pop()}for(var h=d.length;d[0]<=l;)d.shift(),--h;for(;d[h-1]>c;)d.pop(),--h;var p,m=new Array(h+1);for(i=0;i<=h;++i)(p=m[i]=[]).x0=i>0?d[i-1]:l,p.x1=i<h?d[i]:c;for(i=0;i<a;++i)l<=(o=s[i])&&o<=c&&m[f(d,o,0,h)].push(r[i]);return m}return r.value=function(t){return arguments.length?(e="function"===typeof t?t:z(t),r):e},r.domain=function(e){return arguments.length?(t="function"===typeof e?e:z([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"===typeof e?e:Array.isArray(e)?z(B.call(e)):z(e),r):n},r}function Y(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function X(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function Z(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i;for(;r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,s=Math.log(i),u=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*u*(i-u)/i)*(a-i/2<0?-1:1);Z(e,t,Math.max(n,Math.floor(t-a*u/i+l)),Math.min(r,Math.floor(t+(i-a)*u/i+l)),o)}const i=e[t];let a=n,s=r;for(J(e,n,t),o(e[r],i)>0&&J(e,n,r);a<s;){for(J(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?J(e,n,s):(++s,J(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function J(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ee(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let n of e)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),r=e.length){if((t=+t)<=0||r<2)return X(e);if(t>=1)return Y(e);var r,i=(r-1)*t,o=Math.floor(i),a=Y(Z(e,o).subarray(0,o+1));return a+(X(e.subarray(o+1))-a)*(i-o)}}function te(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a;if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),s=+n(e[o],o,e);return s+(+n(e[o+1],o+1,e)-s)*(i-o)}}function ne(e,t,n){return Math.ceil((n-t)/(2*(ee(e,.75)-ee(e,.25))*Math.pow(d(e),-1/3)))}function re(e,t,n){return Math.ceil((n-t)/(3.5*w(e)*Math.pow(d(e),-1/3)))}function ie(e,t){let n,r=-1,i=-1;if(void 0===t)for(const o of e)++i,null!=o&&(n<o||void 0===n&&o>=o)&&(n=o,r=i);else for(let o of e)null!=(o=t(o,++i,e))&&(n<o||void 0===n&&o>=o)&&(n=o,r=i);return r}function oe(e,t){let n=0,r=0;if(void 0===t)for(let i of e)null!=i&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let o of e)null!=(o=t(o,++i,e))&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function ae(e,t){return ee(e,.5,t)}function se(e){return Array.from(function*(e){for(const t of e)yield*t}(e))}function ue(e,t){let n,r=-1,i=-1;if(void 0===t)for(const o of e)++i,null!=o&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);else for(let o of e)null!=(o=t(o,++i,e))&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);return r}function le(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ce;const n=[];let r,i=!1;for(const o of e)i&&n.push(t(r,o)),r=o,i=!0;return n}function ce(e,t){return[e,t]}function fe(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=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}function de(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,r=!1;if(1===n.length){let o;for(const a of e){const e=n(a);(r?i(e,o)<0:0===i(e,e))&&(t=a,o=e,r=!0)}}else for(const i of e)(r?n(i,t)<0:0===n(i,i))&&(t=i,r=!0);return t}function he(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(1===n.length)return ue(e,n);let r=-1,o=-1;for(const i of e)++o,(r<0?0===n(i,i):n(i,t)<0)&&(t=i,r=o);return r}function pe(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,r=!1;if(1===n.length){let o;for(const a of e){const e=n(a);(r?i(e,o)>0:0===i(e,e))&&(t=a,o=e,r=!0)}}else for(const i of e)(r?n(i,t)>0:0===n(i,i))&&(t=i,r=!0);return t}function me(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(1===n.length)return ie(e,n);let r=-1,o=-1;for(const i of e)++o,(r<0?0===n(i,i):n(i,t)>0)&&(t=i,r=o);return r}function ge(e,t){const n=he(e,t);return n<0?void 0:n}const ye=ve(Math.random);function ve(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length)-(n=+n);for(;r;){const i=e()*r--|0,o=t[r+n];t[r+n]=t[i+n],t[i+n]=o}return t}}function be(e,t){let n=0;if(void 0===t)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function we(e){if(!(i=e.length))return[];for(var t=-1,n=X(e,_e),r=new Array(n);++t<n;)for(var i,o=-1,a=r[t]=new Array(i);++o<i;)a[o]=e[o][t];return r}function _e(e){return e.length}function xe(){return we(arguments)}function Ee(e,t){if("function"!==typeof t)throw new TypeError("test is not a function");let n=-1;for(const r of e)if(!t(r,++n,e))return!1;return!0}function ke(e,t){if("function"!==typeof t)throw new TypeError("test is not a function");let n=-1;for(const r of e)if(t(r,++n,e))return!0;return!1}function Se(e,t){if("function"!==typeof t)throw new TypeError("test is not a function");const n=[];let r=-1;for(const i of e)t(i,++r,e)&&n.push(i);return n}function Ae(e,t){if("function"!==typeof e[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!==typeof t)throw new TypeError("mapper is not a function");return Array.from(e,((n,r)=>t(n,r,e)))}function Ce(e,t,n){if("function"!==typeof t)throw new TypeError("reducer is not a function");const r=e[Symbol.iterator]();let i,o,a=-1;if(arguments.length<3){if(({done:i,value:n}=r.next()),i)return;++a}for(;({done:i,value:o}=r.next()),!i;)n=t(n,o,++a,e);return n}function De(e){if("function"!==typeof e[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(e).reverse()}function Me(e){e=new Set(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(const i of n)for(const t of i)e.delete(t);return e}function Fe(e,t){const n=t[Symbol.iterator](),r=new Set;for(const i of e){if(r.has(i))return!1;let e,t;for(;({value:e,done:t}=n.next())&&!t;){if(Object.is(i,e))return!1;r.add(e)}}return!0}function Oe(e){return e instanceof Set?e:new Set(e)}function Te(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e=new Set(e),n=n.map(Oe);e:for(const i of e)for(const t of n)if(!t.has(i)){e.delete(i);continue e}return e}function Ne(e,t){const n=e[Symbol.iterator](),r=new Set;for(const i of t){if(r.has(i))continue;let e,t;for(;({value:e,done:t}=n.next());){if(t)return!1;if(r.add(e),Object.is(i,e))break}}return!0}function Pe(e,t){return Ne(t,e)}function Ie(){const e=new Set;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const i of n)for(const t of i)e.add(t);return e}var Re=Array.prototype.slice;function je(e){return e}var Le=1,Be=2,ze=3,Ue=4,He=1e-6;function qe(e){return"translate("+e+",0)"}function Ge(e){return"translate(0,"+e+")"}function We(e){return t=>+e(t)}function Ve(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function Qe(){return!this.__axis}function $e(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,u="undefined"!==typeof window&&window.devicePixelRatio>1?0:.5,l=e===Le||e===Ue?-1:1,c=e===Ue||e===Be?"x":"y",f=e===Le||e===ze?qe:Ge;function d(d){var h=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,p=null==i?t.tickFormat?t.tickFormat.apply(t,n):je:i,m=Math.max(o,0)+s,g=t.range(),y=+g[0]+u,v=+g[g.length-1]+u,b=(t.bandwidth?Ve:We)(t.copy(),u),w=d.selection?d.selection():d,_=w.selectAll(".domain").data([null]),x=w.selectAll(".tick").data(h,t).order(),E=x.exit(),k=x.enter().append("g").attr("class","tick"),S=x.select("line"),A=x.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(k),S=S.merge(k.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),A=A.merge(k.append("text").attr("fill","currentColor").attr(c,l*m).attr("dy",e===Le?"0em":e===ze?"0.71em":"0.32em")),d!==w&&(_=_.transition(d),x=x.transition(d),S=S.transition(d),A=A.transition(d),E=E.transition(d).attr("opacity",He).attr("transform",(function(e){return isFinite(e=b(e))?f(e+u):this.getAttribute("transform")})),k.attr("opacity",He).attr("transform",(function(e){var t=this.parentNode.__axis;return f((t&&isFinite(t=t(e))?t:b(e))+u)}))),E.remove(),_.attr("d",e===Ue||e===Be?a?"M"+l*a+","+y+"H"+u+"V"+v+"H"+l*a:"M"+u+","+y+"V"+v:a?"M"+y+","+l*a+"V"+u+"H"+v+"V"+l*a:"M"+y+","+u+"H"+v),x.attr("opacity",1).attr("transform",(function(e){return f(b(e)+u)})),S.attr(c+"2",l*o),A.attr(c,l*m).text(p),w.filter(Qe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Be?"start":e===Ue?"end":"middle"),w.each((function(){this.__axis=b}))}return d.scale=function(e){return arguments.length?(t=e,d):t},d.ticks=function(){return n=Re.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:Re.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:Re.call(e),d):r&&r.slice()},d.tickFormat=function(e){return arguments.length?(i=e,d):i},d.tickSize=function(e){return arguments.length?(o=a=+e,d):o},d.tickSizeInner=function(e){return arguments.length?(o=+e,d):o},d.tickSizeOuter=function(e){return arguments.length?(a=+e,d):a},d.tickPadding=function(e){return arguments.length?(s=+e,d):s},d.offset=function(e){return arguments.length?(u=+e,d):u},d}function Ke(e){return $e(Le,e)}function Ye(e){return $e(Be,e)}function Xe(e){return $e(ze,e)}function Ze(e){return $e(Ue,e)}var Je=n(1082),et=n(4221);function tt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function nt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function rt(){}var it=.7,ot=1/it,at="\\s*([+-]?\\d+)\\s*",st="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ut="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lt=/^#([0-9a-f]{3,8})$/,ct=new RegExp("^rgb\\("+[at,at,at]+"\\)$"),ft=new RegExp("^rgb\\("+[ut,ut,ut]+"\\)$"),dt=new RegExp("^rgba\\("+[at,at,at,st]+"\\)$"),ht=new RegExp("^rgba\\("+[ut,ut,ut,st]+"\\)$"),pt=new RegExp("^hsl\\("+[st,ut,ut]+"\\)$"),mt=new RegExp("^hsla\\("+[st,ut,ut,st]+"\\)$"),gt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function yt(){return this.rgb().formatHex()}function vt(){return this.rgb().formatRgb()}function bt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=lt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?wt(t):3===n?new Et(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?_t(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?_t(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ct.exec(e))?new Et(t[1],t[2],t[3],1):(t=ft.exec(e))?new Et(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=dt.exec(e))?_t(t[1],t[2],t[3],t[4]):(t=ht.exec(e))?_t(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=pt.exec(e))?Ct(t[1],t[2]/100,t[3]/100,1):(t=mt.exec(e))?Ct(t[1],t[2]/100,t[3]/100,t[4]):gt.hasOwnProperty(e)?wt(gt[e]):"transparent"===e?new Et(NaN,NaN,NaN,0):null}function wt(e){return new Et(e>>16&255,e>>8&255,255&e,1)}function _t(e,t,n,r){return r<=0&&(e=t=n=NaN),new Et(e,t,n,r)}function xt(e,t,n,r){return 1===arguments.length?((i=e)instanceof rt||(i=bt(i)),i?new Et((i=i.rgb()).r,i.g,i.b,i.opacity):new Et):new Et(e,t,n,null==r?1:r);var i}function Et(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function kt(){return"#"+At(this.r)+At(this.g)+At(this.b)}function St(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function At(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Ct(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mt(e,t,n,r)}function Dt(e){if(e instanceof Mt)return new Mt(e.h,e.s,e.l,e.opacity);if(e instanceof rt||(e=bt(e)),!e)return new Mt;if(e instanceof Mt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new Mt(a,s,u,e.opacity)}function Mt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ft(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Ot(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}tt(rt,bt,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:yt,formatHex:yt,formatHsl:function(){return Dt(this).formatHsl()},formatRgb:vt,toString:vt}),tt(Et,xt,nt(rt,{brighter:function(e){return e=null==e?ot:Math.pow(ot,e),new Et(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?it:Math.pow(it,e),new Et(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:kt,formatHex:kt,formatRgb:St,toString:St})),tt(Mt,(function(e,t,n,r){return 1===arguments.length?Dt(e):new Mt(e,t,n,null==r?1:r)}),nt(rt,{brighter:function(e){return e=null==e?ot:Math.pow(ot,e),new Mt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?it:Math.pow(it,e),new Mt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),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 Et(Ft(e>=240?e-240:e+120,i,r),Ft(e,i,r),Ft(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const Tt=e=>()=>e;function Nt(e,t){return function(n){return e+n*t}}function Pt(e){return 1===(e=+e)?It:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Tt(isNaN(t)?n:t)}}function It(e,t){var n=t-e;return n?Nt(e,n):Tt(isNaN(e)?t:e)}const Rt=function e(t){var n=Pt(t);function r(e,t){var r=n((e=xt(e)).r,(t=xt(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=It(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function jt(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=xt(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}jt((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return Ot((n-r/t)*t,a,i,o,s)}})),jt((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return Ot((n-r/t)*t,i,o,a,s)}}));function Lt(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Vt(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function Bt(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function zt(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Ut(e,t){var n,r={},i={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?r[n]=Vt(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var Ht=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qt=new RegExp(Ht.source,"g");function Gt(e,t){var n,r,i,o=Ht.lastIndex=qt.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=Ht.exec(e))&&(r=qt.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:zt(n,r)})),o=qt.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})}function Wt(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function Vt(e,t){var n,r=typeof t;return null==t||"boolean"===r?Tt(t):("number"===r?zt:"string"===r?(n=bt(t))?(t=n,Rt):Gt:t instanceof bt?Rt:t instanceof Date?Bt:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Wt:Array.isArray(t)?Lt:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?Ut:zt)(e,t)}function Qt(){}function $t(e){return null==e?Qt:function(){return this.querySelector(e)}}function Kt(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Yt(){return[]}function Xt(e){return null==e?Yt:function(){return this.querySelectorAll(e)}}function Zt(e){return function(){return this.matches(e)}}function Jt(e){return function(t){return t.matches(e)}}var en=Array.prototype.find;function tn(){return this.firstElementChild}var nn=Array.prototype.filter;function rn(){return this.children}function on(e){return new Array(e.length)}function an(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function sn(e,t,n,r,i,o){for(var a,s=0,u=t.length,l=o.length;s<l;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new an(e,o[s]);for(;s<u;++s)(a=t[s])&&(i[s]=a)}function un(e,t,n,r,i,o,a){var s,u,l,c=new Map,f=t.length,d=o.length,h=new Array(f);for(s=0;s<f;++s)(u=t[s])&&(h[s]=l=a.call(u,u.__data__,s,t)+"",c.has(l)?i[s]=u:c.set(l,u));for(s=0;s<d;++s)l=a.call(e,o[s],s,o)+"",(u=c.get(l))?(r[s]=u,u.__data__=o[s],c.delete(l)):n[s]=new an(e,o[s]);for(s=0;s<f;++s)(u=t[s])&&c.get(h[s])===u&&(i[s]=u)}function ln(e){return e.__data__}function cn(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}an.prototype={constructor:an,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)}};var fn="http://www.w3.org/1999/xhtml";const dn={svg:"http://www.w3.org/2000/svg",xhtml:fn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function hn(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),dn.hasOwnProperty(t)?{space:dn[t],local:e}:e}function pn(e){return function(){this.removeAttribute(e)}}function mn(e){return function(){this.removeAttributeNS(e.space,e.local)}}function gn(e,t){return function(){this.setAttribute(e,t)}}function yn(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function vn(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function bn(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function wn(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function _n(e){return function(){this.style.removeProperty(e)}}function xn(e,t,n){return function(){this.style.setProperty(e,t,n)}}function En(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function kn(e,t){return e.style.getPropertyValue(t)||wn(e).getComputedStyle(e,null).getPropertyValue(t)}function Sn(e){return function(){delete this[e]}}function An(e,t){return function(){this[e]=t}}function Cn(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Dn(e){return e.trim().split(/^|\s+/)}function Mn(e){return e.classList||new Fn(e)}function Fn(e){this._node=e,this._names=Dn(e.getAttribute("class")||"")}function On(e,t){for(var n=Mn(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Tn(e,t){for(var n=Mn(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Nn(e){return function(){On(this,e)}}function Pn(e){return function(){Tn(this,e)}}function In(e,t){return function(){(t.apply(this,arguments)?On:Tn)(this,e)}}function Rn(){this.textContent=""}function jn(e){return function(){this.textContent=e}}function Ln(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Bn(){this.innerHTML=""}function zn(e){return function(){this.innerHTML=e}}function Un(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Hn(){this.nextSibling&&this.parentNode.appendChild(this)}function qn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Gn(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===fn&&t.documentElement.namespaceURI===fn?t.createElement(e):t.createElementNS(n,e)}}function Wn(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Vn(e){var t=hn(e);return(t.local?Wn:Gn)(t)}function Qn(){return null}function $n(){var e=this.parentNode;e&&e.removeChild(this)}function Kn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Yn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Xn(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function Zn(e,t,n){return function(){var r,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function Jn(e,t,n){var r=wn(e),i=r.CustomEvent;"function"===typeof i?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 er(e,t){return function(){return Jn(this,e,t)}}function tr(e,t){return function(){return Jn(this,e,t.apply(this,arguments))}}Fn.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}};var nr=[null];function rr(e,t){this._groups=e,this._parents=t}function ir(){return new rr([[document.documentElement]],nr)}rr.prototype=ir.prototype={constructor:rr,select:function(e){"function"!==typeof e&&(e=$t(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],u=s.length,l=r[i]=new Array(u),c=0;c<u;++c)(o=s[c])&&(a=e.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new rr(r,this._parents)},selectAll:function(e){e="function"===typeof e?function(e){return function(){var t=e.apply(this,arguments);return null==t?[]:Kt(t)}}(e):Xt(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],u=s.length,l=0;l<u;++l)(a=s[l])&&(r.push(e.call(a,a.__data__,l,s)),i.push(a));return new rr(r,i)},selectChild:function(e){return this.select(null==e?tn:function(e){return function(){return en.call(this.children,e)}}("function"===typeof e?e:Jt(e)))},selectChildren:function(e){return this.selectAll(null==e?rn:function(e){return function(){return nn.call(this.children,e)}}("function"===typeof e?e:Jt(e)))},filter:function(e){"function"!==typeof e&&(e=Zt(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new rr(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,ln);var n=t?un:sn,r=this._parents,i=this._groups;"function"!==typeof e&&(e=function(e){return function(){return e}}(e));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),l=0;l<o;++l){var c=r[l],f=i[l],d=f.length,h=Kt(e.call(c,c&&c.__data__,l,r)),p=h.length,m=s[l]=new Array(p),g=a[l]=new Array(p);n(c,f,m,g,u[l]=new Array(d),h,t);for(var y,v,b=0,w=0;b<p;++b)if(y=m[b]){for(b>=w&&(w=b+1);!(v=g[w])&&++w<p;);y._next=v||null}}return(a=new rr(a,r))._enter=s,a._exit=u,a},enter:function(){return new rr(this._enter||this._groups.map(on),this._parents)},exit:function(){return new rr(this._exit||this._groups.map(on),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return r="function"===typeof e?e(r):r.append(e+""),null!=t&&(i=t(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){if(!(e instanceof rr))throw new Error("invalid merge");for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],f=l.length,d=a[s]=new Array(f),h=0;h<f;++h)(u=l[h]||c[h])&&(d[h]=u);for(;s<r;++s)a[s]=t[s];return new rr(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=cn);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,l=i[o]=new Array(u),c=0;c<u;++c)(a=s[c])&&(l[c]=a);l.sort(t)}return new rr(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=hn(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?mn:pn:"function"===typeof t?n.local?bn:vn:n.local?yn:gn)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?_n:"function"===typeof t?En:xn)(e,t,null==n?"":n)):kn(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Sn:"function"===typeof t?Cn:An)(e,t)):this.node()[e]},classed:function(e,t){var n=Dn(e+"");if(arguments.length<2){for(var r=Mn(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof t?In:t?Nn:Pn)(n,t))},text:function(e){return arguments.length?this.each(null==e?Rn:("function"===typeof e?Ln:jn)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Bn:("function"===typeof e?Un:zn)(e)):this.node().innerHTML},raise:function(){return this.each(Hn)},lower:function(){return this.each(qn)},append:function(e){var t="function"===typeof e?e:Vn(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:Vn(e),r=null==t?Qn:"function"===typeof t?t:$t(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each($n)},clone:function(e){return this.select(e?Yn:Kn)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=function(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}}))}(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?Zn:Xn,r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var u,l=0,c=s.length;l<c;++l)for(r=0,u=s[l];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(e,t){return this.each(("function"===typeof t?tr:er)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};const or=ir;function ar(e){return"string"===typeof e?new rr([[document.querySelector(e)]],[document.documentElement]):new rr([[e]],nr)}function sr(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var ur,lr,cr=0,fr=0,dr=0,hr=0,pr=0,mr=0,gr="object"===typeof performance&&performance.now?performance:Date,yr="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function vr(){return pr||(yr(br),pr=gr.now()+mr)}function br(){pr=0}function wr(){this._call=this._time=this._next=null}function _r(e,t,n){var r=new wr;return r.restart(e,t,n),r}function xr(){pr=(hr=gr.now())+mr,cr=fr=0;try{!function(){vr(),++cr;for(var e,t=ur;t;)(e=pr-t._time)>=0&&t._call.call(null,e),t=t._next;--cr}()}finally{cr=0,function(){var e,t,n=ur,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:ur=t);lr=e,kr(r)}(),pr=0}}function Er(){var e=gr.now(),t=e-hr;t>1e3&&(mr-=t,hr=e)}function kr(e){cr||(fr&&(fr=clearTimeout(fr)),e-pr>24?(e<1/0&&(fr=setTimeout(xr,e-gr.now()-mr)),dr&&(dr=clearInterval(dr))):(dr||(hr=gr.now(),dr=setInterval(Er,1e3)),cr=1,yr(xr)))}function Sr(e,t,n){var r=new wr;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}wr.prototype=_r.prototype={constructor:wr,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?vr():+n)+(null==t?0:+t),this._next||lr===this||(lr?lr._next=this:ur=this,lr=this),this._call=e,this._time=n,kr()},stop:function(){this._call&&(this._call=null,this._time=1/0,kr())}};var Ar=(0,Je.A)("start","end","cancel","interrupt"),Cr=[],Dr=2,Mr=5,Fr=6;function Or(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var l,c,f,d;if(1!==n.state)return u();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return Sr(a);4===d.state?(d.state=Fr,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[l]):+l<t&&(d.state=Fr,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[l])}if(Sr((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=Dr,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Dr){for(n.state=3,r=new Array(f=n.tween.length),l=0,c=-1;l<f;++l)(d=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=d);r.length=c+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(u),n.state=Mr,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);n.state===Mr&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){for(var r in n.state=Fr,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=_r(o,0,n.time)}(e,n,{name:t,index:r,group:i,on:Ar,tween:Cr,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Tr(e,t){var n=Pr(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function Nr(e,t){var n=Pr(e,t);if(n.state>3)throw new Error("too late; already running");return n}function Pr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Ir(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>Dr&&n.state<Mr,n.state=Fr,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}var Rr,jr=180/Math.PI,Lr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Br(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*jr,skewX:Math.atan(u)*jr,scaleX:a,scaleY:s}}function zr(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],u=[];return o=e(o),a=e(a),function(e,r,i,o,a,s){if(e!==i||r!==o){var u=a.push("translate(",null,t,null,n);s.push({i:u-4,x:zt(e,i)},{i:u-2,x:zt(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,u),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:zt(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,u),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:zt(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,u),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:zt(e,n)},{i:s-2,x:zt(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(e){for(var t,n=-1,r=u.length;++n<r;)s[(t=u[n]).i]=t.x(e);return s.join("")}}}var Ur=zr((function(e){const t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Lr:Br(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Hr=zr((function(e){return null==e?Lr:(Rr||(Rr=document.createElementNS("http://www.w3.org/2000/svg","g")),Rr.setAttribute("transform",e),(e=Rr.transform.baseVal.consolidate())?Br((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Lr)}),", ",")",")");function qr(e,t){var n,r;return function(){var i=Nr(this,e),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}function Gr(e,t,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=Nr(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}o.tween=i}}function Wr(e,t,n){var r=e._id;return e.each((function(){var e=Nr(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return Pr(e,r).value[t]}}function Vr(e,t){var n;return("number"===typeof t?zt:t instanceof bt?Rt:(n=bt(t))?(t=n,Rt):Gt)(e,t)}function Qr(e){return function(){this.removeAttribute(e)}}function $r(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Kr(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function Yr(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function Xr(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttribute(e))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttribute(e)}}function Zr(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttributeNS(e.space,e.local))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttributeNS(e.space,e.local)}}function Jr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,i)),n}return i._value=t,i}function ei(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,i)),n}return i._value=t,i}function ti(e,t){return function(){Tr(this,e).delay=+t.apply(this,arguments)}}function ni(e,t){return t=+t,function(){Tr(this,e).delay=t}}function ri(e,t){return function(){Nr(this,e).duration=+t.apply(this,arguments)}}function ii(e,t){return t=+t,function(){Nr(this,e).duration=t}}var oi=or.prototype.constructor;function ai(e){return function(){this.style.removeProperty(e)}}var si=0;function ui(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function li(){return++si}var ci=or.prototype;ui.prototype=function(e){return or().transition(e)}.prototype={constructor:ui,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=$t(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,l=r[a],c=l.length,f=o[a]=new Array(c),d=0;d<c;++d)(s=l[d])&&(u=e.call(s,s.__data__,d,l))&&("__data__"in s&&(u.__data__=s.__data__),f[d]=u,Or(f[d],t,n,d,f,Pr(s,n)));return new ui(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=Xt(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,l=r[s],c=l.length,f=0;f<c;++f)if(u=l[f]){for(var d,h=e.call(u,u.__data__,f,l),p=Pr(u,n),m=0,g=h.length;m<g;++m)(d=h[m])&&Or(d,t,n,m,h,p);o.push(h),a.push(u)}return new ui(o,a,t,n)},filter:function(e){"function"!==typeof e&&(e=Zt(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new ui(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],f=l.length,d=a[s]=new Array(f),h=0;h<f;++h)(u=l[h]||c[h])&&(d[h]=u);for(;s<r;++s)a[s]=t[s];return new ui(a,this._parents,this._name,this._id)},selection:function(){return new oi(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=li(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)if(a=s[l]){var c=Pr(a,t);Or(a,e,n,l,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new ui(r,this._parents,e,n)},call:ci.call,nodes:ci.nodes,node:ci.node,size:ci.size,empty:ci.empty,each:ci.each,on:function(e,t){var n=this._id;return arguments.length<2?Pr(this.node(),n).on.on(e):this.each(function(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?Tr:Nr;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}(n,e,t))},attr:function(e,t){var n=hn(e),r="transform"===n?Hr:Vr;return this.attrTween(e,"function"===typeof t?(n.local?Zr:Xr)(n,r,Wr(this,"attr."+e,t)):null==t?(n.local?$r:Qr)(n):(n.local?Yr:Kr)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=hn(e);return this.tween(n,(r.local?Jr:ei)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?Ur:Vr;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=kn(this,e),a=(this.style.removeProperty(e),kn(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,ai(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=kn(this,e),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(e),u=s=kn(this,e)),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}(e,r,Wr(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var u=Nr(this,e),l=u.on,c=null==u.value[a]?o||(o=ai(t)):void 0;l===n&&i===c||(r=(n=l).copy()).on(s,i=c),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=kn(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,o,n)),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Wr(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=Pr(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?qr:Gr)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?ti:ni)(t,e)):Pr(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?ri:ii)(t,e)):Pr(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!==typeof t)throw new Error;return function(){Nr(this,e).ease=t}}(t,e)):Pr(this.node(),t).ease},easeVarying:function(e){if("function"!==typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;Nr(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0===--i&&o()}};n.each((function(){var n=Nr(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),n.on=t})),0===i&&o()}))},[Symbol.iterator]:ci[Symbol.iterator]};var fi={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function di(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error("transition ".concat(t," not found"));return n}or.prototype.interrupt=function(e){return this.each((function(){Ir(this,e)}))},or.prototype.transition=function(e){var t,n;e instanceof ui?(t=e._id,e=e._name):(t=li(),(n=fi).time=vr(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)(a=s[l])&&Or(a,e,t,l,s,n||di(a,t));return new ui(r,this._parents,e,t)};const hi=e=>()=>e;function pi(e,t){let{sourceEvent:n,target:r,selection:i,mode:o,dispatch:a}=t;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:i,enumerable:!0,configurable:!0},mode:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function mi(e){e.preventDefault(),e.stopImmediatePropagation()}var gi={name:"drag"},yi={name:"space"},vi={name:"handle"},bi={name:"center"};const{abs:wi,max:_i,min:xi}=Math;function Ei(e){return[+e[0],+e[1]]}function ki(e){return[Ei(e[0]),Ei(e[1])]}var Si={name:"x",handles:["w","e"].map(Ni),input:function(e,t){return null==e?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Ai={name:"y",handles:["n","s"].map(Ni),input:function(e,t){return null==e?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},Ci={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Ni),input:function(e){return null==e?null:ki(e)},output:function(e){return e}},Di={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Mi={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Fi={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Oi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ti={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Ni(e){return{type:e}}function Pi(e){return!e.ctrlKey&&!e.button}function Ii(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function Ri(){return navigator.maxTouchPoints||"ontouchstart"in this}function ji(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Li(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function Bi(){return Hi(Si)}function zi(){return Hi(Ai)}function Ui(){return Hi(Ci)}function Hi(e){var t,n=Ii,r=Pi,i=Ri,o=!0,a=(0,Je.A)("start","brush","end"),s=6;function u(t){var n=t.property("__brush",m).selectAll(".overlay").data([Ni("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Di.overlay).merge(n).each((function(){var e=ji(this).extent;ar(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])})),t.selectAll(".selection").data([Ni("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Di.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=t.selectAll(".handle").data(e.handles,(function(e){return e.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(e){return"handle handle--"+e.type})).attr("cursor",(function(e){return Di[e.type]})),t.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",d).filter(i).on("touchstart.brush",d).on("touchmove.brush",h).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function l(){var e=ar(this),t=ji(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",(function(e){return"e"===e.type[e.type.length-1]?t[1][0]-s/2:t[0][0]-s/2})).attr("y",(function(e){return"s"===e.type[0]?t[1][1]-s/2:t[0][1]-s/2})).attr("width",(function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+s:s})).attr("height",(function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+s:s}))):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(e,t,n){var r=e.__brush.emitter;return!r||n&&r.clean?new f(e,t,n):r}function f(e,t,n){this.that=e,this.args=t,this.state=e.__brush,this.active=0,this.clean=n}function d(n){if((!t||n.touches)&&r.apply(this,arguments)){var i,a,s,u,f,d,h,p,m,g,y,v=this,b=n.target.__data__.type,w="selection"===(o&&n.metaKey?b="overlay":b)?gi:o&&n.altKey?bi:vi,_=e===Ai?null:Oi[b],x=e===Si?null:Ti[b],E=ji(v),k=E.extent,S=E.selection,A=k[0][0],C=k[0][1],D=k[1][0],M=k[1][1],F=0,O=0,T=_&&x&&o&&n.shiftKey,N=Array.from(n.touches||[n],(e=>{const t=e.identifier;return(e=sr(e,v)).point0=e.slice(),e.identifier=t,e}));if("overlay"===b){S&&(m=!0);const t=[N[0],N[1]||N[0]];E.selection=S=[[i=e===Ai?A:xi(t[0][0],t[1][0]),s=e===Si?C:xi(t[0][1],t[1][1])],[f=e===Ai?D:_i(t[0][0],t[1][0]),h=e===Si?M:_i(t[0][1],t[1][1])]],N.length>1&&B()}else i=S[0][0],s=S[0][1],f=S[1][0],h=S[1][1];a=i,u=s,d=f,p=h;var P=ar(v).attr("pointer-events","none"),I=P.selectAll(".overlay").attr("cursor",Di[b]);Ir(v);var R=c(v,arguments,!0).beforestart();if(n.touches)R.moved=L,R.ended=z;else{var j=ar(n.view).on("mousemove.brush",L,!0).on("mouseup.brush",z,!0);o&&j.on("keydown.brush",(function(e){switch(e.keyCode){case 16:T=_&&x;break;case 18:w===vi&&(_&&(f=d-F*_,i=a+F*_),x&&(h=p-O*x,s=u+O*x),w=bi,B());break;case 32:w!==vi&&w!==bi||(_<0?f=d-F:_>0&&(i=a-F),x<0?h=p-O:x>0&&(s=u-O),w=yi,I.attr("cursor",Di.selection),B());break;default:return}mi(e)}),!0).on("keyup.brush",(function(e){switch(e.keyCode){case 16:T&&(g=y=T=!1,B());break;case 18:w===bi&&(_<0?f=d:_>0&&(i=a),x<0?h=p:x>0&&(s=u),w=vi,B());break;case 32:w===yi&&(e.altKey?(_&&(f=d-F*_,i=a+F*_),x&&(h=p-O*x,s=u+O*x),w=bi):(_<0?f=d:_>0&&(i=a),x<0?h=p:x>0&&(s=u),w=vi),I.attr("cursor",Di[b]),B());break;default:return}mi(e)}),!0),(0,et.A)(n.view)}l.call(v),R.start(n,w.name)}function L(e){for(const t of e.changedTouches||[e])for(const e of N)e.identifier===t.identifier&&(e.cur=sr(t,v));if(T&&!g&&!y&&1===N.length){const e=N[0];wi(e.cur[0]-e[0])>wi(e.cur[1]-e[1])?y=!0:g=!0}for(const t of N)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);m=!0,mi(e),B(e)}function B(e){const t=N[0],n=t.point0;var r;switch(F=t[0]-n[0],O=t[1]-n[1],w){case yi:case gi:_&&(F=_i(A-i,xi(D-f,F)),a=i+F,d=f+F),x&&(O=_i(C-s,xi(M-h,O)),u=s+O,p=h+O);break;case vi:N[1]?(_&&(a=_i(A,xi(D,N[0][0])),d=_i(A,xi(D,N[1][0])),_=1),x&&(u=_i(C,xi(M,N[0][1])),p=_i(C,xi(M,N[1][1])),x=1)):(_<0?(F=_i(A-i,xi(D-i,F)),a=i+F,d=f):_>0&&(F=_i(A-f,xi(D-f,F)),a=i,d=f+F),x<0?(O=_i(C-s,xi(M-s,O)),u=s+O,p=h):x>0&&(O=_i(C-h,xi(M-h,O)),u=s,p=h+O));break;case bi:_&&(a=_i(A,xi(D,i-F*_)),d=_i(A,xi(D,f+F*_))),x&&(u=_i(C,xi(M,s-O*x)),p=_i(C,xi(M,h+O*x)))}d<a&&(_*=-1,r=i,i=f,f=r,r=a,a=d,d=r,b in Mi&&I.attr("cursor",Di[b=Mi[b]])),p<u&&(x*=-1,r=s,s=h,h=r,r=u,u=p,p=r,b in Fi&&I.attr("cursor",Di[b=Fi[b]])),E.selection&&(S=E.selection),g&&(a=S[0][0],d=S[1][0]),y&&(u=S[0][1],p=S[1][1]),S[0][0]===a&&S[0][1]===u&&S[1][0]===d&&S[1][1]===p||(E.selection=[[a,u],[d,p]],l.call(v),R.brush(e,w.name))}function z(e){if(function(e){e.stopImmediatePropagation()}(e),e.touches){if(e.touches.length)return;t&&clearTimeout(t),t=setTimeout((function(){t=null}),500)}else(0,et.y)(e.view,m),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);P.attr("pointer-events","all"),I.attr("cursor",Di.overlay),E.selection&&(S=E.selection),function(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}(S)&&(E.selection=null,l.call(v)),R.end(e,w.name)}}function h(e){c(this,arguments).moved(e)}function p(e){c(this,arguments).ended(e)}function m(){var t=this.__brush||{selection:null};return t.extent=ki(n.apply(this,arguments)),t.dim=e,t}return u.move=function(t,n){t.tween?t.on("start.brush",(function(e){c(this,arguments).beforestart().start(e)})).on("interrupt.brush end.brush",(function(e){c(this,arguments).end(e)})).tween("brush",(function(){var t=this,r=t.__brush,i=c(t,arguments),o=r.selection,a=e.input("function"===typeof n?n.apply(this,arguments):n,r.extent),s=Vt(o,a);function u(e){r.selection=1===e&&null===a?null:s(e),l.call(t),i.brush()}return null!==o&&null!==a?u:u(1)})):t.each((function(){var t=this,r=arguments,i=t.__brush,o=e.input("function"===typeof n?n.apply(t,r):n,i.extent),a=c(t,r).beforestart();Ir(t),i.selection=null===o?null:o,l.call(t),a.start().brush().end()}))},u.clear=function(e){u.move(e,null)},f.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(e,t){return this.starting?(this.starting=!1,this.emit("start",e,t)):this.emit("brush",e),this},brush:function(e,t){return this.emit("brush",e,t),this},end:function(e,t){return 0===--this.active&&(delete this.state.emitter,this.emit("end",e,t)),this},emit:function(t,n,r){var i=ar(this.that).datum();a.call(t,this.that,new pi(t,{sourceEvent:n,target:u,selection:e.output(this.state.selection),mode:r,dispatch:a}),i)}},u.extent=function(e){return arguments.length?(n="function"===typeof e?e:hi(ki(e)),u):n},u.filter=function(e){return arguments.length?(r="function"===typeof e?e:hi(!!e),u):r},u.touchable=function(e){return arguments.length?(i="function"===typeof e?e:hi(!!e),u):i},u.handleSize=function(e){return arguments.length?(s=+e,u):s},u.keyModifiers=function(e){return arguments.length?(o=!!e,u):o},u.on=function(){var e=a.on.apply(a,arguments);return e===a?u:e},u}var qi=Math.abs,Gi=Math.cos,Wi=Math.sin,Vi=Math.PI,Qi=Vi/2,$i=2*Vi,Ki=Math.max,Yi=1e-12;function Xi(e,t){return Array.from({length:t-e},((t,n)=>e+n))}function Zi(){return to(!1,!1)}function Ji(){return to(!1,!0)}function eo(){return to(!0,!1)}function to(e,t){var n=0,r=null,i=null,o=null;function a(a){var s,u=a.length,l=new Array(u),c=Xi(0,u),f=new Array(u*u),d=new Array(u),h=0;a=Float64Array.from({length:u*u},t?(e,t)=>a[t%u][t/u|0]:(e,t)=>a[t/u|0][t%u]);for(let t=0;t<u;++t){let n=0;for(let r=0;r<u;++r)n+=a[t*u+r]+e*a[r*u+t];h+=l[t]=n}s=(h=Ki(0,$i-n*u)/h)?n:$i/u;{let t=0;r&&c.sort(((e,t)=>r(l[e],l[t])));for(const n of c){const r=t;if(e){const e=Xi(1+~u,u).filter((e=>e<0?a[~e*u+n]:a[n*u+e]));i&&e.sort(((e,t)=>i(e<0?-a[~e*u+n]:a[n*u+e],t<0?-a[~t*u+n]:a[n*u+t])));for(const r of e)if(r<0){(f[~r*u+n]||(f[~r*u+n]={source:null,target:null})).target={index:n,startAngle:t,endAngle:t+=a[~r*u+n]*h,value:a[~r*u+n]}}else{(f[n*u+r]||(f[n*u+r]={source:null,target:null})).source={index:n,startAngle:t,endAngle:t+=a[n*u+r]*h,value:a[n*u+r]}}d[n]={index:n,startAngle:r,endAngle:t,value:l[n]}}else{const e=Xi(0,u).filter((e=>a[n*u+e]||a[e*u+n]));i&&e.sort(((e,t)=>i(a[n*u+e],a[n*u+t])));for(const r of e){let e;if(n<r?(e=f[n*u+r]||(f[n*u+r]={source:null,target:null}),e.source={index:n,startAngle:t,endAngle:t+=a[n*u+r]*h,value:a[n*u+r]}):(e=f[r*u+n]||(f[r*u+n]={source:null,target:null}),e.target={index:n,startAngle:t,endAngle:t+=a[n*u+r]*h,value:a[n*u+r]},n===r&&(e.source=e.target)),e.source&&e.target&&e.source.value<e.target.value){const t=e.source;e.source=e.target,e.target=t}}d[n]={index:n,startAngle:r,endAngle:t,value:l[n]}}t+=s}}return(f=Object.values(f)).groups=d,o?f.sort(o):f}return a.padAngle=function(e){return arguments.length?(n=Ki(0,e),a):n},a.sortGroups=function(e){return arguments.length?(r=e,a):r},a.sortSubgroups=function(e){return arguments.length?(i=e,a):i},a.sortChords=function(e){return arguments.length?(null==e?o=null:(t=e,o=function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)})._=e,a):o&&o._;var t},a}const no=Math.PI,ro=2*no,io=1e-6,oo=ro-io;function ao(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function so(){return new ao}ao.prototype=so.prototype={constructor:ao,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,u=r-t,l=o-e,c=a-t,f=l*l+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>io)if(Math.abs(c*s-u*l)>io&&i){var d=n-o,h=r-a,p=s*s+u*u,m=d*d+h*h,g=Math.sqrt(p),y=Math.sqrt(f),v=i*Math.tan((no-Math.acos((p+f-m)/(2*g*y)))/2),b=v/y,w=v/g;Math.abs(b-1)>io&&(this._+="L"+(e+b*l)+","+(t+b*c)),this._+="A"+i+","+i+",0,0,"+ +(c*d>l*h)+","+(this._x1=e+w*s)+","+(this._y1=t+w*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=e+a,l=t+s,c=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+l:(Math.abs(this._x1-u)>io||Math.abs(this._y1-l)>io)&&(this._+="L"+u+","+l),n&&(f<0&&(f=f%ro+ro),f>oo?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):f>io&&(this._+="A"+n+","+n+",0,"+ +(f>=no)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const uo=so;var lo=Array.prototype.slice;function co(e){return function(){return e}}function fo(e){return e.source}function ho(e){return e.target}function po(e){return e.radius}function mo(e){return e.startAngle}function go(e){return e.endAngle}function yo(){return 0}function vo(){return 10}function bo(e){var t=fo,n=ho,r=po,i=po,o=mo,a=go,s=yo,u=null;function l(){var l,c=t.apply(this,arguments),f=n.apply(this,arguments),d=s.apply(this,arguments)/2,h=lo.call(arguments),p=+r.apply(this,(h[0]=c,h)),m=o.apply(this,h)-Qi,g=a.apply(this,h)-Qi,y=+i.apply(this,(h[0]=f,h)),v=o.apply(this,h)-Qi,b=a.apply(this,h)-Qi;if(u||(u=l=uo()),d>Yi&&(qi(g-m)>2*d+Yi?g>m?(m+=d,g-=d):(m-=d,g+=d):m=g=(m+g)/2,qi(b-v)>2*d+Yi?b>v?(v+=d,b-=d):(v-=d,b+=d):v=b=(v+b)/2),u.moveTo(p*Gi(m),p*Wi(m)),u.arc(0,0,p,m,g),m!==v||g!==b)if(e){var w=y-+e.apply(this,arguments),_=(v+b)/2;u.quadraticCurveTo(0,0,w*Gi(v),w*Wi(v)),u.lineTo(y*Gi(_),y*Wi(_)),u.lineTo(w*Gi(b),w*Wi(b))}else u.quadraticCurveTo(0,0,y*Gi(v),y*Wi(v)),u.arc(0,0,y,v,b);if(u.quadraticCurveTo(0,0,p*Gi(m),p*Wi(m)),u.closePath(),l)return u=null,l+""||null}return e&&(l.headRadius=function(t){return arguments.length?(e="function"===typeof t?t:co(+t),l):e}),l.radius=function(e){return arguments.length?(r=i="function"===typeof e?e:co(+e),l):r},l.sourceRadius=function(e){return arguments.length?(r="function"===typeof e?e:co(+e),l):r},l.targetRadius=function(e){return arguments.length?(i="function"===typeof e?e:co(+e),l):i},l.startAngle=function(e){return arguments.length?(o="function"===typeof e?e:co(+e),l):o},l.endAngle=function(e){return arguments.length?(a="function"===typeof e?e:co(+e),l):a},l.padAngle=function(e){return arguments.length?(s="function"===typeof e?e:co(+e),l):s},l.source=function(e){return arguments.length?(t=e,l):t},l.target=function(e){return arguments.length?(n=e,l):n},l.context=function(e){return arguments.length?(u=null==e?null:e,l):u},l}function wo(){return bo()}function _o(){return bo(vo)}function xo(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Eo(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ko(){}var So=.7,Ao=1/So,Co="\\s*([+-]?\\d+)\\s*",Do="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Mo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fo=/^#([0-9a-f]{3,8})$/,Oo=new RegExp("^rgb\\("+[Co,Co,Co]+"\\)$"),To=new RegExp("^rgb\\("+[Mo,Mo,Mo]+"\\)$"),No=new RegExp("^rgba\\("+[Co,Co,Co,Do]+"\\)$"),Po=new RegExp("^rgba\\("+[Mo,Mo,Mo,Do]+"\\)$"),Io=new RegExp("^hsl\\("+[Do,Mo,Mo]+"\\)$"),Ro=new RegExp("^hsla\\("+[Do,Mo,Mo,Do]+"\\)$"),jo={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Lo(){return this.rgb().formatHex()}function Bo(){return this.rgb().formatRgb()}function zo(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Fo.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Uo(t):3===n?new Wo(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ho(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ho(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Oo.exec(e))?new Wo(t[1],t[2],t[3],1):(t=To.exec(e))?new Wo(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=No.exec(e))?Ho(t[1],t[2],t[3],t[4]):(t=Po.exec(e))?Ho(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Io.exec(e))?Ko(t[1],t[2]/100,t[3]/100,1):(t=Ro.exec(e))?Ko(t[1],t[2]/100,t[3]/100,t[4]):jo.hasOwnProperty(e)?Uo(jo[e]):"transparent"===e?new Wo(NaN,NaN,NaN,0):null}function Uo(e){return new Wo(e>>16&255,e>>8&255,255&e,1)}function Ho(e,t,n,r){return r<=0&&(e=t=n=NaN),new Wo(e,t,n,r)}function qo(e){return e instanceof ko||(e=zo(e)),e?new Wo((e=e.rgb()).r,e.g,e.b,e.opacity):new Wo}function Go(e,t,n,r){return 1===arguments.length?qo(e):new Wo(e,t,n,null==r?1:r)}function Wo(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Vo(){return"#"+$o(this.r)+$o(this.g)+$o(this.b)}function Qo(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function $o(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Ko(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Zo(e,t,n,r)}function Yo(e){if(e instanceof Zo)return new Zo(e.h,e.s,e.l,e.opacity);if(e instanceof ko||(e=zo(e)),!e)return new Zo;if(e instanceof Zo)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new Zo(a,s,u,e.opacity)}function Xo(e,t,n,r){return 1===arguments.length?Yo(e):new Zo(e,t,n,null==r?1:r)}function Zo(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Jo(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}xo(ko,zo,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Lo,formatHex:Lo,formatHsl:function(){return Yo(this).formatHsl()},formatRgb:Bo,toString:Bo}),xo(Wo,Go,Eo(ko,{brighter:function(e){return e=null==e?Ao:Math.pow(Ao,e),new Wo(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?So:Math.pow(So,e),new Wo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Vo,formatHex:Vo,formatRgb:Qo,toString:Qo})),xo(Zo,Xo,Eo(ko,{brighter:function(e){return e=null==e?Ao:Math.pow(Ao,e),new Zo(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?So:Math.pow(So,e),new Zo(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),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 Wo(Jo(e>=240?e-240:e+120,i,r),Jo(e,i,r),Jo(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const ea=Math.PI/180,ta=180/Math.PI,na=.96422,ra=1,ia=.82521,oa=4/29,aa=6/29,sa=3*aa*aa,ua=aa*aa*aa;function la(e){if(e instanceof da)return new da(e.l,e.a,e.b,e.opacity);if(e instanceof wa)return _a(e);e instanceof Wo||(e=qo(e));var t,n,r=ga(e.r),i=ga(e.g),o=ga(e.b),a=ha((.2225045*r+.7168786*i+.0606169*o)/ra);return r===i&&i===o?t=n=a:(t=ha((.4360747*r+.3850649*i+.1430804*o)/na),n=ha((.0139322*r+.0971045*i+.7141733*o)/ia)),new da(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ca(e,t){return new da(e,0,0,null==t?1:t)}function fa(e,t,n,r){return 1===arguments.length?la(e):new da(e,t,n,null==r?1:r)}function da(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ha(e){return e>ua?Math.pow(e,1/3):e/sa+oa}function pa(e){return e>aa?e*e*e:sa*(e-oa)}function ma(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ga(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ya(e){if(e instanceof wa)return new wa(e.h,e.c,e.l,e.opacity);if(e instanceof da||(e=la(e)),0===e.a&&0===e.b)return new wa(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ta;return new wa(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function va(e,t,n,r){return 1===arguments.length?ya(e):new wa(n,t,e,null==r?1:r)}function ba(e,t,n,r){return 1===arguments.length?ya(e):new wa(e,t,n,null==r?1:r)}function wa(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function _a(e){if(isNaN(e.h))return new da(e.l,0,0,e.opacity);var t=e.h*ea;return new da(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}xo(da,fa,Eo(ko,{brighter:function(e){return new da(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new da(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Wo(ma(3.1338561*(t=na*pa(t))-1.6168667*(e=ra*pa(e))-.4906146*(n=ia*pa(n))),ma(-.9787684*t+1.9161415*e+.033454*n),ma(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),xo(wa,ba,Eo(ko,{brighter:function(e){return new wa(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new wa(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return _a(this).rgb()}}));var xa=-.14861,Ea=1.78277,ka=-.29227,Sa=-.90649,Aa=1.97294,Ca=Aa*Sa,Da=Aa*Ea,Ma=Ea*ka-Sa*xa;function Fa(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Oa)return new Oa(e.h,e.s,e.l,e.opacity);e instanceof Wo||(e=qo(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Ma*r+Ca*t-Da*n)/(Ma+Ca-Da),o=r-i,a=(Aa*(n-i)-ka*o)/Sa,s=Math.sqrt(a*a+o*o)/(Aa*i*(1-i)),u=s?Math.atan2(a,o)*ta-120:NaN;return new Oa(u<0?u+360:u,s,i,e.opacity)}(e):new Oa(e,t,n,null==r?1:r)}function Oa(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ta(e){return Math.ceil(Math.log(function(e,t){let n=0;if(void 0===t)for(let r of e)null!=r&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(i=+i)>=i&&++n}return n}(e))/Math.LN2)+1}xo(Oa,Fa,Eo(ko,{brighter:function(e){return e=null==e?Ao:Math.pow(Ao,e),new Oa(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?So:Math.pow(So,e),new Oa(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*ea,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Wo(255*(t+n*(xa*r+Ea*i)),255*(t+n*(ka*r+Sa*i)),255*(t+n*(Aa*r)),this.opacity)}}));var Na=Math.sqrt(50),Pa=Math.sqrt(10),Ia=Math.sqrt(2);function Ra(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Na?i*=10:o>=Pa?i*=5:o>=Ia&&(i*=2),t<e?-i:i}function ja(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=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}var La=Array.prototype.slice;function Ba(e,t){return e-t}const za=e=>()=>e;function Ua(e,t){for(var n,r=-1,i=t.length;++r<i;)if(n=Ha(e,t[r]))return n;return 0}function Ha(e,t){for(var n=t[0],r=t[1],i=-1,o=0,a=e.length,s=a-1;o<a;s=o++){var u=e[o],l=u[0],c=u[1],f=e[s],d=f[0],h=f[1];if(qa(u,f,t))return 0;c>r!==h>r&&n<(d-l)*(r-c)/(h-c)+l&&(i=-i)}return i}function qa(e,t,n){var r,i,o,a;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])===(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(i=e[r=+(e[0]===t[0])],o=n[r],a=t[r],i<=o&&o<=a||a<=o&&o<=i)}function Ga(){}var Wa=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Va(){var e=1,t=1,n=Ta,r=s;function i(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(Ba);else{var r=function(e,t){let n,r;if(void 0===t)for(const i of e)null!=i&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let o of e)null!=(o=t(o,++i,e))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}(e),i=r[0],a=r[1];t=Ra(i,a,t),t=ja(Math.floor(i/t)*t,Math.floor(a/t)*t,t)}return t.map((function(t){return o(e,t)}))}function o(n,i){var o=[],s=[];return function(n,r,i){var o,s,u,l,c,f,d=new Array,h=new Array;o=s=-1,l=n[0]>=r,Wa[l<<1].forEach(p);for(;++o<e-1;)u=l,l=n[o+1]>=r,Wa[u|l<<1].forEach(p);Wa[l|0].forEach(p);for(;++s<t-1;){for(o=-1,l=n[s*e+e]>=r,c=n[s*e]>=r,Wa[l<<1|c<<2].forEach(p);++o<e-1;)u=l,l=n[s*e+e+o+1]>=r,f=c,c=n[s*e+o+1]>=r,Wa[u|l<<1|c<<2|f<<3].forEach(p);Wa[l|c<<3].forEach(p)}o=-1,c=n[s*e]>=r,Wa[c<<2].forEach(p);for(;++o<e-1;)f=c,c=n[s*e+o+1]>=r,Wa[c<<2|f<<3].forEach(p);function p(e){var t,n,r=[e[0][0]+o,e[0][1]+s],u=[e[1][0]+o,e[1][1]+s],l=a(r),c=a(u);(t=h[l])?(n=d[c])?(delete h[t.end],delete d[n.start],t===n?(t.ring.push(u),i(t.ring)):d[t.start]=h[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete h[t.end],t.ring.push(u),h[t.end=c]=t):(t=d[c])?(n=h[l])?(delete d[t.start],delete h[n.end],t===n?(t.ring.push(u),i(t.ring)):d[n.start]=h[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete d[t.start],t.ring.unshift(r),d[t.start=l]=t):d[l]=h[c]={start:l,end:c,ring:[r,u]}}Wa[c<<3].forEach(p)}(n,i,(function(e){r(e,n,i),function(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)r+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return r}(e)>0?o.push([e]):s.push(e)})),s.forEach((function(e){for(var t,n=0,r=o.length;n<r;++n)if(-1!==Ua((t=o[n])[0],e))return void t.push(e)})),{type:"MultiPolygon",value:i,coordinates:o}}function a(t){return 2*t[0]+t[1]*(e+1)*4}function s(n,r,i){n.forEach((function(n){var o,a=n[0],s=n[1],u=0|a,l=0|s,c=r[l*e+u];a>0&&a<e&&u===a&&(o=r[l*e+u-1],n[0]=a+(i-o)/(c-o)-.5),s>0&&s<t&&l===s&&(o=r[(l-1)*e+u],n[1]=s+(i-o)/(c-o)-.5)}))}return i.contour=o,i.size=function(n){if(!arguments.length)return[e,t];var r=Math.floor(n[0]),o=Math.floor(n[1]);if(!(r>=0&&o>=0))throw new Error("invalid size");return e=r,t=o,i},i.thresholds=function(e){return arguments.length?(n="function"===typeof e?e:Array.isArray(e)?za(La.call(e)):za(e),i):n},i.smooth=function(e){return arguments.length?(r=e?s:Ga,i):r===s},i}function Qa(e,t,n){for(var r=e.width,i=e.height,o=1+(n<<1),a=0;a<i;++a)for(var s=0,u=0;s<r+n;++s)s<r&&(u+=e.data[s+a*r]),s>=n&&(s>=o&&(u-=e.data[s-o+a*r]),t.data[s-n+a*r]=u/Math.min(s+1,r-1+o-s,o))}function $a(e,t,n){for(var r=e.width,i=e.height,o=1+(n<<1),a=0;a<r;++a)for(var s=0,u=0;s<i+n;++s)s<i&&(u+=e.data[a+s*r]),s>=n&&(s>=o&&(u-=e.data[a+(s-o)*r]),t.data[a+(s-n)*r]=u/Math.min(s+1,i-1+o-s,o))}function Ka(e){return e[0]}function Ya(e){return e[1]}function Xa(){return 1}function Za(){var e=Ka,t=Ya,n=Xa,r=960,i=500,o=20,a=2,s=3*o,u=r+2*s>>a,l=i+2*s>>a,c=za(20);function f(r){var i=new Float32Array(u*l),f=new Float32Array(u*l);r.forEach((function(r,o,c){var f=+e(r,o,c)+s>>a,d=+t(r,o,c)+s>>a,h=+n(r,o,c);f>=0&&f<u&&d>=0&&d<l&&(i[f+d*u]+=h)})),Qa({width:u,height:l,data:i},{width:u,height:l,data:f},o>>a),$a({width:u,height:l,data:f},{width:u,height:l,data:i},o>>a),Qa({width:u,height:l,data:i},{width:u,height:l,data:f},o>>a),$a({width:u,height:l,data:f},{width:u,height:l,data:i},o>>a),Qa({width:u,height:l,data:i},{width:u,height:l,data:f},o>>a),$a({width:u,height:l,data:f},{width:u,height:l,data:i},o>>a);var h=c(i);if(!Array.isArray(h)){var p=function(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}(i);h=Ra(0,p,h),(h=ja(0,Math.floor(p/h)*h,h)).shift()}return Va().thresholds(h).size([u,l])(i).map(d)}function d(e){return e.value*=Math.pow(2,-2*a),e.coordinates.forEach(h),e}function h(e){e.forEach(p)}function p(e){e.forEach(m)}function m(e){e[0]=e[0]*Math.pow(2,a)-s,e[1]=e[1]*Math.pow(2,a)-s}function g(){return u=r+2*(s=3*o)>>a,l=i+2*s>>a,f}return f.x=function(t){return arguments.length?(e="function"===typeof t?t:za(+t),f):e},f.y=function(e){return arguments.length?(t="function"===typeof e?e:za(+e),f):t},f.weight=function(e){return arguments.length?(n="function"===typeof e?e:za(+e),f):n},f.size=function(e){if(!arguments.length)return[r,i];var t=+e[0],n=+e[1];if(!(t>=0&&n>=0))throw new Error("invalid size");return r=t,i=n,g()},f.cellSize=function(e){if(!arguments.length)return 1<<a;if(!((e=+e)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(e)/Math.LN2),g()},f.thresholds=function(e){return arguments.length?(c="function"===typeof e?e:Array.isArray(e)?za(La.call(e)):za(e),f):c},f.bandwidth=function(e){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*e*e+1)-1)/2),g()},f}const Ja=Math.pow(2,-52),es=new Uint32Array(512);class ts{static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ls,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:cs;const r=e.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=e[o];i[2*o]=t(r),i[2*o+1]=n(r)}return new ts(i)}constructor(e){const t=e.length>>1;if(t>0&&"number"!==typeof e[0])throw new Error("Expected coords to contain numbers.");this.coords=e;const n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){const{coords:e,_hullPrev:t,_hullNext:n,_hullTri:r,_hullHash:i}=this,o=e.length>>1;let a=1/0,s=1/0,u=-1/0,l=-1/0;for(let S=0;S<o;S++){const t=e[2*S],n=e[2*S+1];t<a&&(a=t),n<s&&(s=n),t>u&&(u=t),n>l&&(l=n),this._ids[S]=S}const c=(a+u)/2,f=(s+l)/2;let d,h,p,m=1/0;for(let S=0;S<o;S++){const t=ns(c,f,e[2*S],e[2*S+1]);t<m&&(d=S,m=t)}const g=e[2*d],y=e[2*d+1];m=1/0;for(let S=0;S<o;S++){if(S===d)continue;const t=ns(g,y,e[2*S],e[2*S+1]);t<m&&t>0&&(h=S,m=t)}let v=e[2*h],b=e[2*h+1],w=1/0;for(let S=0;S<o;S++){if(S===d||S===h)continue;const t=as(g,y,v,b,e[2*S],e[2*S+1]);t<w&&(p=S,w=t)}let _=e[2*p],x=e[2*p+1];if(w===1/0){for(let r=0;r<o;r++)this._dists[r]=e[2*r]-e[0]||e[2*r+1]-e[1];ss(this._ids,this._dists,0,o-1);const t=new Uint32Array(o);let n=0;for(let e=0,r=-1/0;e<o;e++){const i=this._ids[e];this._dists[i]>r&&(t[n++]=i,r=this._dists[i])}return this.hull=t.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(is(g,y,v,b,_,x)){const e=h,t=v,n=b;h=p,v=_,b=x,p=e,_=t,x=n}const E=function(e,t,n,r,i,o){const a=n-e,s=r-t,u=i-e,l=o-t,c=a*a+s*s,f=u*u+l*l,d=.5/(a*l-s*u),h=e+(l*c-s*f)*d,p=t+(a*f-u*c)*d;return{x:h,y:p}}(g,y,v,b,_,x);this._cx=E.x,this._cy=E.y;for(let S=0;S<o;S++)this._dists[S]=ns(e[2*S],e[2*S+1],E.x,E.y);ss(this._ids,this._dists,0,o-1),this._hullStart=d;let k=3;n[d]=t[p]=h,n[h]=t[d]=p,n[p]=t[h]=d,r[d]=0,r[h]=1,r[p]=2,i.fill(-1),i[this._hashKey(g,y)]=d,i[this._hashKey(v,b)]=h,i[this._hashKey(_,x)]=p,this.trianglesLen=0,this._addTriangle(d,h,p,-1,-1,-1);for(let S,A,C=0;C<this._ids.length;C++){const o=this._ids[C],a=e[2*o],s=e[2*o+1];if(C>0&&Math.abs(a-S)<=Ja&&Math.abs(s-A)<=Ja)continue;if(S=a,A=s,o===d||o===h||o===p)continue;let u=0;for(let e=0,t=this._hashKey(a,s);e<this._hashSize&&(u=i[(t+e)%this._hashSize],-1===u||u===n[u]);e++);u=t[u];let l,c=u;for(;l=n[c],!is(a,s,e[2*c],e[2*c+1],e[2*l],e[2*l+1]);)if(c=l,c===u){c=-1;break}if(-1===c)continue;let f=this._addTriangle(c,o,n[c],-1,-1,r[c]);r[o]=this._legalize(f+2),r[c]=f,k++;let m=n[c];for(;l=n[m],is(a,s,e[2*m],e[2*m+1],e[2*l],e[2*l+1]);)f=this._addTriangle(m,o,l,r[o],-1,r[m]),r[o]=this._legalize(f+2),n[m]=m,k--,m=l;if(c===u)for(;l=t[c],is(a,s,e[2*l],e[2*l+1],e[2*c],e[2*c+1]);)f=this._addTriangle(l,o,c,-1,r[c],r[l]),this._legalize(f+2),r[l]=f,n[c]=c,k--,c=l;this._hullStart=t[o]=c,n[c]=t[m]=o,n[o]=m,i[this._hashKey(a,s)]=o,i[this._hashKey(e[2*c],e[2*c+1])]=c}this.hull=new Uint32Array(k);for(let S=0,A=this._hullStart;S<k;S++)this.hull[S]=A,A=n[A];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,t){return Math.floor(function(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:t,_halfedges:n,coords:r}=this;let i=0,o=0;for(;;){const a=n[e],s=e-e%3;if(o=s+(e+2)%3,-1===a){if(0===i)break;e=es[--i];continue}const u=a-a%3,l=s+(e+1)%3,c=u+(a+2)%3,f=t[o],d=t[e],h=t[l],p=t[c];if(os(r[2*f],r[2*f+1],r[2*d],r[2*d+1],r[2*h],r[2*h+1],r[2*p],r[2*p+1])){t[e]=p,t[a]=f;const r=n[c];if(-1===r){let t=this._hullStart;do{if(this._hullTri[t]===c){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,r),this._link(a,n[o]),this._link(o,c);const s=u+(a+1)%3;i<es.length&&(es[i++]=s)}else{if(0===i)break;e=es[--i]}}return o}_link(e,t){this._halfedges[e]=t,-1!==t&&(this._halfedges[t]=e)}_addTriangle(e,t,n,r,i,o){const a=this.trianglesLen;return this._triangles[a]=e,this._triangles[a+1]=t,this._triangles[a+2]=n,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a}}function ns(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function rs(e,t,n,r,i,o){const a=(r-t)*(i-e),s=(n-e)*(o-t);return Math.abs(a-s)>=33306690738754716e-32*Math.abs(a+s)?a-s:0}function is(e,t,n,r,i,o){return(rs(i,o,e,t,n,r)||rs(e,t,n,r,i,o)||rs(n,r,i,o,e,t))<0}function os(e,t,n,r,i,o,a,s){const u=e-a,l=t-s,c=n-a,f=r-s,d=i-a,h=o-s,p=c*c+f*f,m=d*d+h*h;return u*(f*m-p*h)-l*(c*m-p*d)+(u*u+l*l)*(c*h-f*d)<0}function as(e,t,n,r,i,o){const a=n-e,s=r-t,u=i-e,l=o-t,c=a*a+s*s,f=u*u+l*l,d=.5/(a*l-s*u),h=(l*c-s*f)*d,p=(a*f-u*c)*d;return h*h+p*p}function ss(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const r=e[i],o=t[r];let a=i-1;for(;a>=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=r}else{let i=n+1,o=r;us(e,n+r>>1,i),t[e[n]]>t[e[r]]&&us(e,n,r),t[e[i]]>t[e[r]]&&us(e,i,r),t[e[n]]>t[e[i]]&&us(e,n,i);const a=e[i],s=t[a];for(;;){do{i++}while(t[e[i]]<s);do{o--}while(t[e[o]]>s);if(o<i)break;us(e,i,o)}e[n+1]=e[o],e[o]=a,r-i+1>=o-n?(ss(e,t,i,r),ss(e,t,n,o-1)):(ss(e,t,n,o-1),ss(e,t,i,r))}}function us(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ls(e){return e[0]}function cs(e){return e[1]}const fs=1e-6;class ds{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,t){this._+="M".concat(this._x0=this._x1=+e,",").concat(this._y0=this._y1=+t)}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,t){this._+="L".concat(this._x1=+e,",").concat(this._y1=+t)}arc(e,t,n){const r=(e=+e)+(n=+n),i=t=+t;if(n<0)throw new Error("negative radius");null===this._x1?this._+="M".concat(r,",").concat(i):(Math.abs(this._x1-r)>fs||Math.abs(this._y1-i)>fs)&&(this._+="L"+r+","+i),n&&(this._+="A".concat(n,",").concat(n,",0,1,1,").concat(e-n,",").concat(t,"A").concat(n,",").concat(n,",0,1,1,").concat(this._x1=r,",").concat(this._y1=i))}rect(e,t,n,r){this._+="M".concat(this._x0=this._x1=+e,",").concat(this._y0=this._y1=+t,"h").concat(+n,"v").concat(+r,"h").concat(-n,"Z")}value(){return this._||null}}class hs{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class ps{constructor(e){let[t,n,r,i]=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,960,500];if(!((r=+r)>=(t=+t))||!((i=+i)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=r,this.xmin=t,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:t,triangles:n},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let d,h,p=0,m=0,g=n.length;p<g;p+=3,m+=2){const t=2*n[p],r=2*n[p+1],o=2*n[p+2],a=e[t],s=e[t+1],u=e[r],l=e[r+1],c=e[o],f=e[o+1],g=u-a,y=l-s,v=c-a,b=f-s,w=g*g+y*y,_=v*v+b*b,x=2*(g*b-y*v);if(x)if(Math.abs(x)<1e-8)d=(a+c)/2,h=(s+f)/2;else{const e=1/x;d=a+(b*w-y*_)*e,h=s+(g*_-v*w)*e}else d=(a+c)/2-1e8*b,h=(s+f)/2+1e8*v;i[m]=d,i[m+1]=h}let o,a,s,u=t[t.length-1],l=4*u,c=e[2*u],f=e[2*u+1];r.fill(0);for(let d=0;d<t.length;++d)u=t[d],o=l,a=c,s=f,l=4*u,c=e[2*u],f=e[2*u+1],r[o+2]=r[l]=s-f,r[o+3]=r[l+1]=c-a}render(e){const t=null==e?e=new ds:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:o,vectors:a}=this;if(i.length<=1)return null;for(let l=0,c=n.length;l<c;++l){const t=n[l];if(t<l)continue;const r=2*Math.floor(l/3),i=2*Math.floor(t/3),a=o[r],s=o[r+1],u=o[i],c=o[i+1];this._renderSegment(a,s,u,c,e)}let s,u=i[i.length-1];for(let l=0;l<i.length;++l){s=u,u=i[l];const t=2*Math.floor(r[u]/3),n=o[t],c=o[t+1],f=4*s,d=this._project(n,c,a[f+2],a[f+3]);d&&this._renderSegment(n,c,d[0],d[1],e)}return t&&t.value()}renderBounds(e){const t=null==e?e=new ds:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),t&&t.value()}renderCell(e,t){const n=null==t?t=new ds:void 0,r=this._clip(e);if(null===r||!r.length)return;t.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let o=2;o<i;o+=2)r[o]===r[o-2]&&r[o+1]===r[o-1]||t.lineTo(r[o],r[o+1]);return t.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:e}}=this;for(let t=0,n=e.length/2;t<n;++t){const e=this.cellPolygon(t);e&&(e.index=t,yield e)}}cellPolygon(e){const t=new hs;return this.renderCell(e,t),t.value()}_renderSegment(e,t,n,r,i){let o;const a=this._regioncode(e,t),s=this._regioncode(n,r);0===a&&0===s?(i.moveTo(e,t),i.lineTo(n,r)):(o=this._clipSegment(e,t,n,r,a,s))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(e,t,n){return(t=+t)===t&&(n=+n)===n&&this.delaunay._step(e,t,n)===e}*neighbors(e){const t=this._clip(e);if(t)for(const n of this.delaunay.neighbors(e)){const e=this._clip(n);if(e)e:for(let r=0,i=t.length;r<i;r+=2)for(let o=0,a=e.length;o<a;o+=2)if(t[r]==e[o]&&t[r+1]==e[o+1]&&t[(r+2)%i]==e[(o+a-2)%a]&&t[(r+3)%i]==e[(o+a-1)%a]){yield n;break e}}}_cell(e){const{circumcenters:t,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,o=n[e];if(-1===o)return null;const a=[];let s=o;do{const n=Math.floor(s/3);if(a.push(t[2*n],t[2*n+1]),s=s%3===2?s-2:s+1,i[s]!==e)break;s=r[s]}while(s!==o&&-1!==s);return a}_clip(e){if(0===e&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const t=this._cell(e);if(null===t)return null;const{vectors:n}=this,r=4*e;return n[r]||n[r+1]?this._clipInfinite(e,t,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(e,t)}_clipFinite(e,t){const n=t.length;let r,i,o,a,s,u=null,l=t[n-2],c=t[n-1],f=this._regioncode(l,c);for(let d=0;d<n;d+=2)if(r=l,i=c,l=t[d],c=t[d+1],o=f,f=this._regioncode(l,c),0===o&&0===f)a=s,s=0,u?u.push(l,c):u=[l,c];else{let t,n,d,h,p;if(0===o){if(null===(t=this._clipSegment(r,i,l,c,o,f)))continue;[n,d,h,p]=t}else{if(null===(t=this._clipSegment(l,c,r,i,f,o)))continue;[h,p,n,d]=t,a=s,s=this._edgecode(n,d),a&&s&&this._edge(e,a,s,u,u.length),u?u.push(n,d):u=[n,d]}a=s,s=this._edgecode(h,p),a&&s&&this._edge(e,a,s,u,u.length),u?u.push(h,p):u=[h,p]}if(u)a=s,s=this._edgecode(u[0],u[1]),a&&s&&this._edge(e,a,s,u,u.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return u}_clipSegment(e,t,n,r,i,o){for(;;){if(0===i&&0===o)return[e,t,n,r];if(i&o)return null;let a,s,u=i||o;8&u?(a=e+(n-e)*(this.ymax-t)/(r-t),s=this.ymax):4&u?(a=e+(n-e)*(this.ymin-t)/(r-t),s=this.ymin):2&u?(s=t+(r-t)*(this.xmax-e)/(n-e),a=this.xmax):(s=t+(r-t)*(this.xmin-e)/(n-e),a=this.xmin),i?(e=a,t=s,i=this._regioncode(e,t)):(n=a,r=s,o=this._regioncode(n,r))}}_clipInfinite(e,t,n,r,i,o){let a,s=Array.from(t);if((a=this._project(s[0],s[1],n,r))&&s.unshift(a[0],a[1]),(a=this._project(s[s.length-2],s[s.length-1],i,o))&&s.push(a[0],a[1]),s=this._clipFinite(e,s))for(let u,l=0,c=s.length,f=this._edgecode(s[c-2],s[c-1]);l<c;l+=2)u=f,f=this._edgecode(s[l],s[l+1]),u&&f&&(l=this._edge(e,u,f,s,l),c=s.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(e,t,n,r,i){for(;t!==n;){let n,o;switch(t){case 5:t=4;continue;case 4:t=6,n=this.xmax,o=this.ymin;break;case 6:t=2;continue;case 2:t=10,n=this.xmax,o=this.ymax;break;case 10:t=8;continue;case 8:t=9,n=this.xmin,o=this.ymax;break;case 9:t=1;continue;case 1:t=5,n=this.xmin,o=this.ymin}r[i]===n&&r[i+1]===o||!this.contains(e,n,o)||(r.splice(i,0,n,o),i+=2)}if(r.length>4)for(let o=0;o<r.length;o+=2){const e=(o+2)%r.length,t=(o+4)%r.length;(r[o]===r[e]&&r[e]===r[t]||r[o+1]===r[e+1]&&r[e+1]===r[t+1])&&(r.splice(e,2),o-=2)}return i}_project(e,t,n,r){let i,o,a,s=1/0;if(r<0){if(t<=this.ymin)return null;(i=(this.ymin-t)/r)<s&&(a=this.ymin,o=e+(s=i)*n)}else if(r>0){if(t>=this.ymax)return null;(i=(this.ymax-t)/r)<s&&(a=this.ymax,o=e+(s=i)*n)}if(n>0){if(e>=this.xmax)return null;(i=(this.xmax-e)/n)<s&&(o=this.xmax,a=t+(s=i)*r)}else if(n<0){if(e<=this.xmin)return null;(i=(this.xmin-e)/n)<s&&(o=this.xmin,a=t+(s=i)*r)}return[o,a]}_edgecode(e,t){return(e===this.xmin?1:e===this.xmax?2:0)|(t===this.ymin?4:t===this.ymax?8:0)}_regioncode(e,t){return(e<this.xmin?1:e>this.xmax?2:0)|(t<this.ymin?4:t>this.ymax?8:0)}}const ms=2*Math.PI,gs=Math.pow;function ys(e){return e[0]}function vs(e){return e[1]}function bs(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class ws{static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ys,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vs,r=arguments.length>3?arguments[3]:void 0;return new ws("length"in e?function(e,t,n,r){const i=e.length,o=new Float64Array(2*i);for(let a=0;a<i;++a){const i=e[a];o[2*a]=t.call(r,i,a,e),o[2*a+1]=n.call(r,i,a,e)}return o}(e,t,n,r):Float64Array.from(function*(e,t,n,r){let i=0;for(const o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}(e,t,n,r)))}constructor(e){this._delaunator=new ts(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const e=this._delaunator,t=this.points;if(e.hull&&e.hull.length>2&&function(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const e=2*t[r],i=2*t[r+1],o=2*t[r+2];if((n[o]-n[e])*(n[i+1]-n[e+1])-(n[i]-n[e])*(n[o+1]-n[e+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},((e,t)=>t)).sort(((e,n)=>t[2*e]-t[2*n]||t[2*e+1]-t[2*n+1]));const e=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[t[2*e],t[2*e+1],t[2*n],t[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let o=0,a=t.length/2;o<a;++o){const e=bs(t[2*o],t[2*o+1],i);t[2*o]=e[0],t[2*o+1]=e[1]}this._delaunator=new ts(t)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),a=this._hullIndex.fill(-1);for(let s=0,u=n.length;s<u;++s){const e=i[s%3===2?s-2:s+1];-1!==n[s]&&-1!==o[e]||(o[e]=s)}for(let s=0,u=r.length;s<u;++s)a[r[s]]=s;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],this.triangles[1]=r[1],this.triangles[2]=r[1],o[r[0]]=1,2===r.length&&(o[r[1]]=0))}voronoi(e){return new ps(this,e)}*neighbors(e){const{inedges:t,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){const t=a.indexOf(e);return t>0&&(yield a[t-1]),void(t<a.length-1&&(yield a[t+1]))}const s=t[e];if(-1===s)return;let u=s,l=-1;do{if(yield l=o[u],u=u%3===2?u-2:u+1,o[u]!==e)return;if(u=i[u],-1===u){const t=n[(r[e]+1)%n.length];return void(t!==l&&(yield t))}}while(u!==s)}find(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((e=+e)!==e||(t=+t)!==t)return-1;const r=n;let i;for(;(i=this._step(n,e,t))>=0&&i!==n&&i!==r;)n=i;return i}_step(e,t,n){const{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:u}=this;if(-1===r[e]||!u.length)return(e+1)%(u.length>>1);let l=e,c=gs(t-u[2*e],2)+gs(n-u[2*e+1],2);const f=r[e];let d=f;do{let r=s[d];const f=gs(t-u[2*r],2)+gs(n-u[2*r+1],2);if(f<c&&(c=f,l=r),d=d%3===2?d-2:d+1,s[d]!==e)break;if(d=a[d],-1===d){if(d=i[(o[e]+1)%i.length],d!==r&&gs(t-u[2*d],2)+gs(n-u[2*d+1],2)<c)return d;break}}while(d!==f);return l}render(e){const t=null==e?e=new ds:void 0,{points:n,halfedges:r,triangles:i}=this;for(let o=0,a=r.length;o<a;++o){const t=r[o];if(t<o)continue;const a=2*i[o],s=2*i[t];e.moveTo(n[a],n[a+1]),e.lineTo(n[s],n[s+1])}return this.renderHull(e),t&&t.value()}renderPoints(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const n=null==e?e=new ds:void 0,{points:r}=this;for(let i=0,o=r.length;i<o;i+=2){const n=r[i],o=r[i+1];e.moveTo(n+t,o),e.arc(n,o,t,0,ms)}return n&&n.value()}renderHull(e){const t=null==e?e=new ds:void 0,{hull:n,points:r}=this,i=2*n[0],o=n.length;e.moveTo(r[i],r[i+1]);for(let a=1;a<o;++a){const t=2*n[a];e.lineTo(r[t],r[t+1])}return e.closePath(),t&&t.value()}hullPolygon(){const e=new hs;return this.renderHull(e),e.value()}renderTriangle(e,t){const n=null==t?t=new ds:void 0,{points:r,triangles:i}=this,o=2*i[e*=3],a=2*i[e+1],s=2*i[e+2];return t.moveTo(r[o],r[o+1]),t.lineTo(r[a],r[a+1]),t.lineTo(r[s],r[s+1]),t.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:e}=this;for(let t=0,n=e.length/3;t<n;++t)yield this.trianglePolygon(t)}trianglePolygon(e){const t=new hs;return this.renderTriangle(e,t),t.value()}}var _s=n(5574);function xs(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var Es=n(2319);const ks=e=>()=>e;function Ss(e,t){let{sourceEvent:n,subject:r,target:i,identifier:o,active:a,x:s,y:u,dx:l,dy:c,dispatch:f}=t;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:f}})}function As(e){return!e.ctrlKey&&!e.button}function Cs(){return this.parentNode}function Ds(e,t){return null==t?{x:e.x,y:e.y}:t}function Ms(){return navigator.maxTouchPoints||"ontouchstart"in this}function Fs(){var e,t,n,r,i=As,o=Cs,a=Ds,s=Ms,u={},l=(0,Je.A)("start","drag","end"),c=0,f=0;function d(e){e.on("mousedown.drag",h).filter(s).on("touchstart.drag",g).on("touchmove.drag",y).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(a,s){if(!r&&i.call(this,a,s)){var u=b(this,o.call(this,a,s),a,s,"mouse");u&&((0,_s.A)(a.view).on("mousemove.drag",p,!0).on("mouseup.drag",m,!0),(0,et.A)(a.view),(0,Es.G)(a),n=!1,e=a.clientX,t=a.clientY,u("start",a))}}function p(r){if((0,Es.A)(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>f}u.mouse("drag",r)}function m(e){(0,_s.A)(e.view).on("mousemove.drag mouseup.drag",null),(0,et.y)(e.view,n),(0,Es.A)(e),u.mouse("end",e)}function g(e,t){if(i.call(this,e,t)){var n,r,a=e.changedTouches,s=o.call(this,e,t),u=a.length;for(n=0;n<u;++n)(r=b(this,s,e,t,a[n].identifier,a[n]))&&((0,Es.G)(e),r("start",e,a[n]))}}function y(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=u[r[t].identifier])&&((0,Es.A)(e),n("drag",e,r[t]))}function v(e){var t,n,i=e.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),t=0;t<o;++t)(n=u[i[t].identifier])&&((0,Es.G)(e),n("end",e,i[t]))}function b(e,t,n,r,i,o){var s,f,h,p=l.copy(),m=xs(o||n,t);if(null!=(h=a.call(e,new Ss("beforestart",{sourceEvent:n,target:d,identifier:i,active:c,x:m[0],y:m[1],dx:0,dy:0,dispatch:p}),r)))return s=h.x-m[0]||0,f=h.y-m[1]||0,function n(o,a,l){var g,y=m;switch(o){case"start":u[i]=n,g=c++;break;case"end":delete u[i],--c;case"drag":m=xs(l||a,t),g=c}p.call(o,e,new Ss(o,{sourceEvent:a,subject:h,target:d,identifier:i,active:g,x:m[0]+s,y:m[1]+f,dx:m[0]-y[0],dy:m[1]-y[1],dispatch:p}),r)}}return d.filter=function(e){return arguments.length?(i="function"===typeof e?e:ks(!!e),d):i},d.container=function(e){return arguments.length?(o="function"===typeof e?e:ks(e),d):o},d.subject=function(e){return arguments.length?(a="function"===typeof e?e:ks(e),d):a},d.touchable=function(e){return arguments.length?(s="function"===typeof e?e:ks(!!e),d):s},d.on=function(){var e=l.on.apply(l,arguments);return e===l?d:e},d.clickDistance=function(e){return arguments.length?(f=(e=+e)*e,d):Math.sqrt(f)},d}Ss.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var Os={},Ts={},Ns=34,Ps=10,Is=13;function Rs(e){return new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'})).join(",")+"}")}function js(e){var t=Object.create(null),n=[];return e.forEach((function(e){for(var r in e)r in t||n.push(t[r]=r)})),n}function Ls(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}function Bs(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),r=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":function(e){return e<0?"-"+Ls(-e,6):e>9999?"+"+Ls(e,6):Ls(e,4)}(e.getUTCFullYear())+"-"+Ls(e.getUTCMonth()+1,2)+"-"+Ls(e.getUTCDate(),2)+(i?"T"+Ls(t,2)+":"+Ls(n,2)+":"+Ls(r,2)+"."+Ls(i,3)+"Z":r?"T"+Ls(t,2)+":"+Ls(n,2)+":"+Ls(r,2)+"Z":n||t?"T"+Ls(t,2)+":"+Ls(n,2)+"Z":"")}function zs(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var r,i=[],o=e.length,a=0,s=0,u=o<=0,l=!1;function c(){if(u)return Ts;if(l)return l=!1,Os;var t,r,i=a;if(e.charCodeAt(i)===Ns){for(;a++<o&&e.charCodeAt(a)!==Ns||e.charCodeAt(++a)===Ns;);return(t=a)>=o?u=!0:(r=e.charCodeAt(a++))===Ps?l=!0:r===Is&&(l=!0,e.charCodeAt(a)===Ps&&++a),e.slice(i+1,t-1).replace(/""/g,'"')}for(;a<o;){if((r=e.charCodeAt(t=a++))===Ps)l=!0;else if(r===Is)l=!0,e.charCodeAt(a)===Ps&&++a;else if(r!==n)continue;return e.slice(i,t)}return u=!0,e.slice(i,o)}for(e.charCodeAt(o-1)===Ps&&--o,e.charCodeAt(o-1)===Is&&--o;(r=c())!==Ts;){for(var f=[];r!==Os&&r!==Ts;)f.push(r),r=c();t&&null==(f=t(f,s++))||i.push(f)}return i}function i(t,n){return t.map((function(t){return n.map((function(e){return a(t[e])})).join(e)}))}function o(t){return t.map(a).join(e)}function a(e){return null==e?"":e instanceof Date?Bs(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,i,o=r(e,(function(e,r){if(n)return n(e,r-1);i=e,n=t?function(e,t){var n=Rs(e);return function(r,i){return t(n(r),i,e)}}(e,t):Rs(e)}));return o.columns=i||[],o},parseRows:r,format:function(t,n){return null==n&&(n=js(t)),[n.map(a).join(e)].concat(i(t,n)).join("\n")},formatBody:function(e,t){return null==t&&(t=js(e)),i(e,t).join("\n")},formatRows:function(e){return e.map(o).join("\n")},formatRow:o,formatValue:a}}var Us=zs(","),Hs=Us.parse,qs=Us.parseRows,Gs=Us.format,Ws=Us.formatBody,Vs=Us.formatRows,Qs=Us.formatRow,$s=Us.formatValue,Ks=zs("\t"),Ys=Ks.parse,Xs=Ks.parseRows,Zs=Ks.format,Js=Ks.formatBody,eu=Ks.formatRows,tu=Ks.formatRow,nu=Ks.formatValue;function ru(e){for(var t in e){var n,r,i=e[t].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;iu&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;e[t]=i}return e}const iu=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),ou=e=>+e;function au(e){return e*e}function su(e){return e*(2-e)}function uu(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function lu(e){return e*e*e}function cu(e){return--e*e*e+1}function fu(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var du=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),hu=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),pu=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),mu=Math.PI,gu=mu/2;function yu(e){return 1===+e?1:1-Math.cos(e*gu)}function vu(e){return Math.sin(e*gu)}function bu(e){return(1-Math.cos(mu*e))/2}function wu(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}function _u(e){return wu(1-+e)}function xu(e){return 1-wu(e)}function Eu(e){return((e*=2)<=1?wu(1-e):2-wu(e-1))/2}function ku(e){return 1-Math.sqrt(1-e*e)}function Su(e){return Math.sqrt(1- --e*e)}function Au(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var Cu=4/11,Du=6/11,Mu=8/11,Fu=3/4,Ou=9/11,Tu=10/11,Nu=15/16,Pu=21/22,Iu=63/64,Ru=1/Cu/Cu;function ju(e){return 1-Lu(1-e)}function Lu(e){return(e=+e)<Cu?Ru*e*e:e<Mu?Ru*(e-=Du)*e+Fu:e<Tu?Ru*(e-=Ou)*e+Nu:Ru*(e-=Pu)*e+Iu}function Bu(e){return((e*=2)<=1?1-Lu(1-e):Lu(e-1)+1)/2}var zu=1.70158,Uu=function e(t){function n(e){return(e=+e)*e*(t*(e-1)+e)}return t=+t,n.overshoot=e,n}(zu),Hu=function e(t){function n(e){return--e*e*((e+1)*t+e)+1}return t=+t,n.overshoot=e,n}(zu),qu=function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(zu),Gu=2*Math.PI,Wu=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Gu);function i(e){return t*wu(- --e)*Math.sin((r-e)/n)}return i.amplitude=function(t){return e(t,n*Gu)},i.period=function(n){return e(t,n)},i}(1,.3),Vu=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Gu);function i(e){return 1-t*wu(e=+e)*Math.sin((e+r)/n)}return i.amplitude=function(t){return e(t,n*Gu)},i.period=function(n){return e(t,n)},i}(1,.3),Qu=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Gu);function i(e){return((e=2*e-1)<0?t*wu(-e)*Math.sin((r-e)/n):2-t*wu(e)*Math.sin((r+e)/n))/2}return i.amplitude=function(t){return e(t,n*Gu)},i.period=function(n){return e(t,n)},i}(1,.3);function $u(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}function Ku(e,t){return fetch(e,t).then($u)}function Yu(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}function Xu(e,t){return fetch(e,t).then(Yu)}function Zu(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function Ju(e,t){return fetch(e,t).then(Zu)}function el(e){return function(t,n,r){return 2===arguments.length&&"function"===typeof n&&(r=n,n=void 0),Ju(t,n).then((function(t){return e(t,r)}))}}function tl(e,t,n,r){3===arguments.length&&"function"===typeof n&&(r=n,n=void 0);var i=zs(e);return Ju(t,n).then((function(e){return i.parse(e,r)}))}var nl=el(Hs),rl=el(Ys);function il(e,t){return new Promise((function(n,r){var i=new Image;for(var o in t)i[o]=t[o];i.onerror=r,i.onload=function(){n(i)},i.src=e}))}function ol(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);if(204!==e.status&&205!==e.status)return e.json()}function al(e,t){return fetch(e,t).then(ol)}function sl(e){return(t,n)=>Ju(t,n).then((t=>(new DOMParser).parseFromString(t,e)))}const ul=sl("application/xml");var ll=sl("text/html"),cl=sl("image/svg+xml");function fl(e,t){var n,r=1;function i(){var i,o,a=n.length,s=0,u=0;for(i=0;i<a;++i)s+=(o=n[i]).x,u+=o.y;for(s=(s/a-e)*r,u=(u/a-t)*r,i=0;i<a;++i)(o=n[i]).x-=s,o.y-=u}return null==e&&(e=0),null==t&&(t=0),i.initialize=function(e){n=e},i.x=function(t){return arguments.length?(e=+t,i):e},i.y=function(e){return arguments.length?(t=+e,i):t},i.strength=function(e){return arguments.length?(r=+e,i):r},i}function dl(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o,a,s,u,l,c,f,d,h=e._root,p={data:r},m=e._x0,g=e._y0,y=e._x1,v=e._y1;if(!h)return e._root=p,e;for(;h.length;)if((l=t>=(o=(m+y)/2))?m=o:y=o,(c=n>=(a=(g+v)/2))?g=a:v=a,i=h,!(h=h[f=c<<1|l]))return i[f]=p,e;if(s=+e._x.call(null,h.data),u=+e._y.call(null,h.data),t===s&&n===u)return p.next=h,i?i[f]=p:e._root=p,e;do{i=i?i[f]=new Array(4):e._root=new Array(4),(l=t>=(o=(m+y)/2))?m=o:y=o,(c=n>=(a=(g+v)/2))?g=a:v=a}while((f=c<<1|l)===(d=(u>=a)<<1|s>=o));return i[d]=h,i[f]=p,e}function hl(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function pl(e){return e[0]}function ml(e){return e[1]}function gl(e,t,n){var r=new yl(null==t?pl:t,null==n?ml:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function yl(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function vl(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var bl=gl.prototype=yl.prototype;function wl(e){return function(){return e}}function _l(e){return 1e-6*(e()-.5)}function xl(e){return e.x+e.vx}function El(e){return e.y+e.vy}function kl(e){var t,n,r,i=1,o=1;function a(){for(var e,a,u,l,c,f,d,h=t.length,p=0;p<o;++p)for(a=gl(t,xl,El).visitAfter(s),e=0;e<h;++e)u=t[e],f=n[u.index],d=f*f,l=u.x+u.vx,c=u.y+u.vy,a.visit(m);function m(e,t,n,o,a){var s=e.data,h=e.r,p=f+h;if(!s)return t>l+p||o<l-p||n>c+p||a<c-p;if(s.index>u.index){var m=l-s.x-s.vx,g=c-s.y-s.vy,y=m*m+g*g;y<p*p&&(0===m&&(y+=(m=_l(r))*m),0===g&&(y+=(g=_l(r))*g),y=(p-(y=Math.sqrt(y)))/y*i,u.vx+=(m*=y)*(p=(h*=h)/(d+h)),u.vy+=(g*=y)*p,s.vx-=m*(p=1-p),s.vy-=g*p)}}}function s(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function u(){if(t){var r,i,o=t.length;for(n=new Array(o),r=0;r<o;++r)i=t[r],n[i.index]=+e(i,r,t)}}return"function"!==typeof e&&(e=wl(null==e?1:+e)),a.initialize=function(e,n){t=e,r=n,u()},a.iterations=function(e){return arguments.length?(o=+e,a):o},a.strength=function(e){return arguments.length?(i=+e,a):i},a.radius=function(t){return arguments.length?(e="function"===typeof t?t:wl(+t),u(),a):e},a}function Sl(e){return e.index}function Al(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function Cl(e){var t,n,r,i,o,a,s=Sl,u=function(e){return 1/Math.min(i[e.source.index],i[e.target.index])},l=wl(30),c=1;function f(r){for(var i=0,s=e.length;i<c;++i)for(var u,l,f,d,h,p,m,g=0;g<s;++g)l=(u=e[g]).source,d=(f=u.target).x+f.vx-l.x-l.vx||_l(a),h=f.y+f.vy-l.y-l.vy||_l(a),d*=p=((p=Math.sqrt(d*d+h*h))-n[g])/p*r*t[g],h*=p,f.vx-=d*(m=o[g]),f.vy-=h*m,l.vx+=d*(m=1-m),l.vy+=h*m}function d(){if(r){var a,u,l=r.length,c=e.length,f=new Map(r.map(((e,t)=>[s(e,t,r),e])));for(a=0,i=new Array(l);a<c;++a)(u=e[a]).index=a,"object"!==typeof u.source&&(u.source=Al(f,u.source)),"object"!==typeof u.target&&(u.target=Al(f,u.target)),i[u.source.index]=(i[u.source.index]||0)+1,i[u.target.index]=(i[u.target.index]||0)+1;for(a=0,o=new Array(c);a<c;++a)u=e[a],o[a]=i[u.source.index]/(i[u.source.index]+i[u.target.index]);t=new Array(c),h(),n=new Array(c),p()}}function h(){if(r)for(var n=0,i=e.length;n<i;++n)t[n]=+u(e[n],n,e)}function p(){if(r)for(var t=0,i=e.length;t<i;++t)n[t]=+l(e[t],t,e)}return null==e&&(e=[]),f.initialize=function(e,t){r=e,a=t,d()},f.links=function(t){return arguments.length?(e=t,d(),f):e},f.id=function(e){return arguments.length?(s=e,f):s},f.iterations=function(e){return arguments.length?(c=+e,f):c},f.strength=function(e){return arguments.length?(u="function"===typeof e?e:wl(+e),h(),f):u},f.distance=function(e){return arguments.length?(l="function"===typeof e?e:wl(+e),p(),f):l},f}bl.copy=function(){var e,t,n=new yl(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=vl(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=vl(t));return n},bl.add=function(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return dl(this.cover(t,n),t,n,e)},bl.addAll=function(e){var t,n,r,i,o=e.length,a=new Array(o),s=new Array(o),u=1/0,l=1/0,c=-1/0,f=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(a[n]=r,s[n]=i,r<u&&(u=r),r>c&&(c=r),i<l&&(l=i),i>f&&(f=i));if(u>c||l>f)return this;for(this.cover(u,l).cover(c,f),n=0;n<o;++n)dl(this,a[n],s[n],e[n]);return this},bl.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{for(var a,s,u=i-n||1,l=this._root;n>e||e>=i||r>t||t>=o;)switch(s=(t<r)<<1|e<n,(a=new Array(4))[s]=l,l=a,u*=2,s){case 0:i=n+u,o=r+u;break;case 1:n=i-u,o=r+u;break;case 2:i=n+u,r=o-u;break;case 3:n=i-u,r=o-u}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},bl.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},bl.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},bl.find=function(e,t,n){var r,i,o,a,s,u,l,c=this._x0,f=this._y0,d=this._x1,h=this._y1,p=[],m=this._root;for(m&&p.push(new hl(m,c,f,d,h)),null==n?n=1/0:(c=e-n,f=t-n,d=e+n,h=t+n,n*=n);u=p.pop();)if(!(!(m=u.node)||(i=u.x0)>d||(o=u.y0)>h||(a=u.x1)<c||(s=u.y1)<f))if(m.length){var g=(i+a)/2,y=(o+s)/2;p.push(new hl(m[3],g,y,a,s),new hl(m[2],i,y,g,s),new hl(m[1],g,o,a,y),new hl(m[0],i,o,g,y)),(l=(t>=y)<<1|e>=g)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=u)}else{var v=e-+this._x.call(null,m.data),b=t-+this._y.call(null,m.data),w=v*v+b*b;if(w<n){var _=Math.sqrt(n=w);c=e-_,f=t-_,d=e+_,h=t+_,r=m.data}}return r},bl.remove=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e)))return this;var t,n,r,i,o,a,s,u,l,c,f,d,h=this._root,p=this._x0,m=this._y0,g=this._x1,y=this._y1;if(!h)return this;if(h.length)for(;;){if((l=o>=(s=(p+g)/2))?p=s:g=s,(c=a>=(u=(m+y)/2))?m=u:y=u,t=h,!(h=h[f=c<<1|l]))return this;if(!h.length)break;(t[f+1&3]||t[f+2&3]||t[f+3&3])&&(n=t,d=f)}for(;h.data!==e;)if(r=h,!(h=h.next))return this;return(i=h.next)&&delete h.next,r?(i?r.next=i:delete r.next,this):t?(i?t[f]=i:delete t[f],(h=t[0]||t[1]||t[2]||t[3])&&h===(t[3]||t[2]||t[1]||t[0])&&!h.length&&(n?n[d]=h:this._root=h),this):(this._root=i,this)},bl.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},bl.root=function(){return this._root},bl.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},bl.visit=function(e){var t,n,r,i,o,a,s=[],u=this._root;for(u&&s.push(new hl(u,this._x0,this._y0,this._x1,this._y1));t=s.pop();)if(!e(u=t.node,r=t.x0,i=t.y0,o=t.x1,a=t.y1)&&u.length){var l=(r+o)/2,c=(i+a)/2;(n=u[3])&&s.push(new hl(n,l,c,o,a)),(n=u[2])&&s.push(new hl(n,r,c,l,a)),(n=u[1])&&s.push(new hl(n,l,i,o,c)),(n=u[0])&&s.push(new hl(n,r,i,l,c))}return this},bl.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new hl(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var i=t.node;if(i.length){var o,a=t.x0,s=t.y0,u=t.x1,l=t.y1,c=(a+u)/2,f=(s+l)/2;(o=i[0])&&n.push(new hl(o,a,s,c,f)),(o=i[1])&&n.push(new hl(o,c,s,u,f)),(o=i[2])&&n.push(new hl(o,a,f,c,l)),(o=i[3])&&n.push(new hl(o,c,f,u,l))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},bl.x=function(e){return arguments.length?(this._x=e,this):this._x},bl.y=function(e){return arguments.length?(this._y=e,this):this._y};var Dl,Ml,Fl=0,Ol=0,Tl=0,Nl=0,Pl=0,Il=0,Rl="object"===typeof performance&&performance.now?performance:Date,jl="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ll(){return Pl||(jl(Bl),Pl=Rl.now()+Il)}function Bl(){Pl=0}function zl(){this._call=this._time=this._next=null}function Ul(e,t,n){var r=new zl;return r.restart(e,t,n),r}function Hl(){Pl=(Nl=Rl.now())+Il,Fl=Ol=0;try{!function(){Ll(),++Fl;for(var e,t=Dl;t;)(e=Pl-t._time)>=0&&t._call.call(null,e),t=t._next;--Fl}()}finally{Fl=0,function(){var e,t,n=Dl,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Dl=t);Ml=e,Gl(r)}(),Pl=0}}function ql(){var e=Rl.now(),t=e-Nl;t>1e3&&(Il-=t,Nl=e)}function Gl(e){Fl||(Ol&&(Ol=clearTimeout(Ol)),e-Pl>24?(e<1/0&&(Ol=setTimeout(Hl,e-Rl.now()-Il)),Tl&&(Tl=clearInterval(Tl))):(Tl||(Nl=Rl.now(),Tl=setInterval(ql,1e3)),Fl=1,jl(Hl)))}zl.prototype=Ul.prototype={constructor:zl,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?Ll():+n)+(null==t?0:+t),this._next||Ml===this||(Ml?Ml._next=this:Dl=this,Ml=this),this._call=e,this._time=n,Gl()},stop:function(){this._call&&(this._call=null,this._time=1/0,Gl())}};const Wl=1664525,Vl=1013904223,Ql=4294967296;function $l(e){return e.x}function Kl(e){return e.y}var Yl=10,Xl=Math.PI*(3-Math.sqrt(5));function Zl(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,s=new Map,u=Ul(f),l=(0,Je.A)("tick","end"),c=function(){let e=1;return()=>(e=(Wl*e+Vl)%Ql)/Ql}();function f(){d(),l.call("tick",t),n<r&&(u.stop(),l.call("end",t))}function d(r){var u,l,c=e.length;void 0===r&&(r=1);for(var f=0;f<r;++f)for(n+=(o-n)*i,s.forEach((function(e){e(n)})),u=0;u<c;++u)null==(l=e[u]).fx?l.x+=l.vx*=a:(l.x=l.fx,l.vx=0),null==l.fy?l.y+=l.vy*=a:(l.y=l.fy,l.vy=0);return t}function h(){for(var t,n=0,r=e.length;n<r;++n){if((t=e[n]).index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y)){var i=Yl*Math.sqrt(.5+n),o=n*Xl;t.x=i*Math.cos(o),t.y=i*Math.sin(o)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function p(t){return t.initialize&&t.initialize(e,c),t}return null==e&&(e=[]),h(),t={tick:d,restart:function(){return u.restart(f),t},stop:function(){return u.stop(),t},nodes:function(n){return arguments.length?(e=n,h(),s.forEach(p),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(r=+e,t):r},alphaDecay:function(e){return arguments.length?(i=+e,t):+i},alphaTarget:function(e){return arguments.length?(o=+e,t):o},velocityDecay:function(e){return arguments.length?(a=1-e,t):1-a},randomSource:function(e){return arguments.length?(c=e,s.forEach(p),t):c},force:function(e,n){return arguments.length>1?(null==n?s.delete(e):s.set(e,p(n)),t):s.get(e)},find:function(t,n,r){var i,o,a,s,u,l=0,c=e.length;for(null==r?r=1/0:r*=r,l=0;l<c;++l)(a=(i=t-(s=e[l]).x)*i+(o=n-s.y)*o)<r&&(u=s,r=a);return u},on:function(e,n){return arguments.length>1?(l.on(e,n),t):l.on(e)}}}function Jl(){var e,t,n,r,i,o=wl(-30),a=1,s=1/0,u=.81;function l(n){var i,o=e.length,a=gl(e,$l,Kl).visitAfter(f);for(r=n,i=0;i<o;++i)t=e[i],a.visit(d)}function c(){if(e){var t,n,r=e.length;for(i=new Array(r),t=0;t<r;++t)n=e[t],i[n.index]=+o(n,t,e)}}function f(e){var t,n,r,o,a,s=0,u=0;if(e.length){for(r=o=a=0;a<4;++a)(t=e[a])&&(n=Math.abs(t.value))&&(s+=t.value,u+=n,r+=n*t.x,o+=n*t.y);e.x=r/u,e.y=o/u}else{(t=e).x=t.data.x,t.y=t.data.y;do{s+=i[t.data.index]}while(t=t.next)}e.value=s}function d(e,o,l,c){if(!e.value)return!0;var f=e.x-t.x,d=e.y-t.y,h=c-o,p=f*f+d*d;if(h*h/u<p)return p<s&&(0===f&&(p+=(f=_l(n))*f),0===d&&(p+=(d=_l(n))*d),p<a&&(p=Math.sqrt(a*p)),t.vx+=f*e.value*r/p,t.vy+=d*e.value*r/p),!0;if(!(e.length||p>=s)){(e.data!==t||e.next)&&(0===f&&(p+=(f=_l(n))*f),0===d&&(p+=(d=_l(n))*d),p<a&&(p=Math.sqrt(a*p)));do{e.data!==t&&(h=i[e.data.index]*r/p,t.vx+=f*h,t.vy+=d*h)}while(e=e.next)}}return l.initialize=function(t,r){e=t,n=r,c()},l.strength=function(e){return arguments.length?(o="function"===typeof e?e:wl(+e),c(),l):o},l.distanceMin=function(e){return arguments.length?(a=e*e,l):Math.sqrt(a)},l.distanceMax=function(e){return arguments.length?(s=e*e,l):Math.sqrt(s)},l.theta=function(e){return arguments.length?(u=e*e,l):Math.sqrt(u)},l}function ec(e,t,n){var r,i,o,a=wl(.1);function s(e){for(var a=0,s=r.length;a<s;++a){var u=r[a],l=u.x-t||1e-6,c=u.y-n||1e-6,f=Math.sqrt(l*l+c*c),d=(o[a]-f)*i[a]*e/f;u.vx+=l*d,u.vy+=c*d}}function u(){if(r){var t,n=r.length;for(i=new Array(n),o=new Array(n),t=0;t<n;++t)o[t]=+e(r[t],t,r),i[t]=isNaN(o[t])?0:+a(r[t],t,r)}}return"function"!==typeof e&&(e=wl(+e)),null==t&&(t=0),null==n&&(n=0),s.initialize=function(e){r=e,u()},s.strength=function(e){return arguments.length?(a="function"===typeof e?e:wl(+e),u(),s):a},s.radius=function(t){return arguments.length?(e="function"===typeof t?t:wl(+t),u(),s):e},s.x=function(e){return arguments.length?(t=+e,s):t},s.y=function(e){return arguments.length?(n=+e,s):n},s}function tc(e){var t,n,r,i=wl(.1);function o(e){for(var i,o=0,a=t.length;o<a;++o)(i=t[o]).vx+=(r[o]-i.x)*n[o]*e}function a(){if(t){var o,a=t.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!==typeof e&&(e=wl(null==e?0:+e)),o.initialize=function(e){t=e,a()},o.strength=function(e){return arguments.length?(i="function"===typeof e?e:wl(+e),a(),o):i},o.x=function(t){return arguments.length?(e="function"===typeof t?t:wl(+t),a(),o):e},o}function nc(e){var t,n,r,i=wl(.1);function o(e){for(var i,o=0,a=t.length;o<a;++o)(i=t[o]).vy+=(r[o]-i.y)*n[o]*e}function a(){if(t){var o,a=t.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!==typeof e&&(e=wl(null==e?0:+e)),o.initialize=function(e){t=e,a()},o.strength=function(e){return arguments.length?(i="function"===typeof e?e:wl(+e),a(),o):i},o.y=function(t){return arguments.length?(e="function"===typeof t?t:wl(+t),a(),o):e},o}function rc(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ic(e){return(e=rc(Math.abs(e)))?e[1]:NaN}var oc,ac=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function sc(e){if(!(t=ac.exec(e)))throw new Error("invalid format: "+e);var t;return new uc({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]})}function uc(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function lc(e,t){var n=rc(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}sc.prototype=uc.prototype,uc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const cc={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},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)=>lc(100*e,t),r:lc,s:function(e,t){var n=rc(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(oc=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+rc(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function fc(e){return e}var dc,hc,pc,mc=Array.prototype.map,gc=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function yc(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?fc:(t=mc.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(e.substring(i-=s,i+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?fc:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(mc.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"\u2212":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=sc(e)).fill,n=e.align,f=e.sign,d=e.symbol,h=e.zero,p=e.width,m=e.comma,g=e.precision,y=e.trim,v=e.type;"n"===v?(m=!0,v="g"):cc[v]||(void 0===g&&(g=12),y=!0,v="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var b="$"===d?i:"#"===d&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",w="$"===d?o:/[%p]/.test(v)?u:"",_=cc[v],x=/[defgprs%]/.test(v);function E(e){var i,o,u,d=b,E=w;if("c"===v)E=_(e)+E,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:_(Math.abs(e),g),y&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),k&&0===+e&&"+"!==f&&(k=!1),d=(k?"("===f?f:l:"-"===f||"("===f?"":f)+d,E=("s"===v?gc[8+oc/3]:"")+E+(k&&"("===f?")":""),x)for(i=-1,o=e.length;++i<o;)if(48>(u=e.charCodeAt(i))||u>57){E=(46===u?a+e.slice(i+1):e.slice(i))+E,e=e.slice(0,i);break}}m&&!h&&(e=r(e,1/0));var S=d.length+e.length+E.length,A=S<p?new Array(p-S+1).join(t):"";switch(m&&h&&(e=r(A+e,A.length?p-E.length:1/0),A=""),n){case"<":e=d+e+E+A;break;case"=":e=d+A+e+E;break;case"^":e=A.slice(0,S=A.length>>1)+d+e+E+A.slice(S);break;default:e=A+d+e+E}return s(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),E.toString=function(){return e+""},E}return{format:f,formatPrefix:function(e,t){var n=f(((e=sc(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(ic(t)/3))),i=Math.pow(10,-r),o=gc[8+r/3];return function(e){return n(i*e)+o}}}}function vc(e){return dc=yc(e),hc=dc.format,pc=dc.formatPrefix,dc}function bc(e){return Math.max(0,-ic(Math.abs(e)))}function wc(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ic(t)/3)))-ic(Math.abs(e)))}function _c(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ic(t)-ic(e))+1}vc({thousands:",",grouping:[3],currency:["$",""]});class xc{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const i=t[r],o=e+i,a=Math.abs(e)<Math.abs(i)?e-(o-i):i-(o-e);a&&(t[n++]=a),e=o}return t[n]=e,this._n=n+1,this}valueOf(){const e=this._partials;let t,n,r,i=this._n,o=0;if(i>0){for(o=e[--i];i>0&&(t=o,n=e[--i],o=t+n,r=n-(o-t),!r););i>0&&(r<0&&e[i-1]<0||r>0&&e[i-1]>0)&&(n=2*r,t=o+n,n==t-o&&(o=t))}return o}}var Ec=1e-6,kc=1e-12,Sc=Math.PI,Ac=Sc/2,Cc=Sc/4,Dc=2*Sc,Mc=180/Sc,Fc=Sc/180,Oc=Math.abs,Tc=Math.atan,Nc=Math.atan2,Pc=Math.cos,Ic=Math.ceil,Rc=Math.exp,jc=(Math.floor,Math.hypot),Lc=Math.log,Bc=Math.pow,zc=Math.sin,Uc=Math.sign||function(e){return e>0?1:e<0?-1:0},Hc=Math.sqrt,qc=Math.tan;function Gc(e){return e>1?0:e<-1?Sc:Math.acos(e)}function Wc(e){return e>1?Ac:e<-1?-Ac:Math.asin(e)}function Vc(e){return(e=zc(e/2))*e}function Qc(){}function $c(e,t){e&&Yc.hasOwnProperty(e.type)&&Yc[e.type](e,t)}var Kc={Feature:function(e,t){$c(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)$c(n[r].geometry,t)}},Yc={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){Xc(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)Xc(n[r],t,0)},Polygon:function(e,t){Zc(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)Zc(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)$c(n[r],t)}};function Xc(e,t,n){var r,i=-1,o=e.length-n;for(t.lineStart();++i<o;)r=e[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function Zc(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)Xc(e[n],t,1);t.polygonEnd()}function Jc(e,t){e&&Kc.hasOwnProperty(e.type)?Kc[e.type](e,t):$c(e,t)}var ef,tf,nf,rf,of,af,sf,uf,lf,cf,ff,df,hf,pf,mf,gf,yf=new xc,vf=new xc,bf={point:Qc,lineStart:Qc,lineEnd:Qc,polygonStart:function(){yf=new xc,bf.lineStart=wf,bf.lineEnd=_f},polygonEnd:function(){var e=+yf;vf.add(e<0?Dc+e:e),this.lineStart=this.lineEnd=this.point=Qc},sphere:function(){vf.add(Dc)}};function wf(){bf.point=xf}function _f(){Ef(ef,tf)}function xf(e,t){bf.point=Ef,ef=e,tf=t,nf=e*=Fc,rf=Pc(t=(t*=Fc)/2+Cc),of=zc(t)}function Ef(e,t){var n=(e*=Fc)-nf,r=n>=0?1:-1,i=r*n,o=Pc(t=(t*=Fc)/2+Cc),a=zc(t),s=of*a,u=rf*o+s*Pc(i),l=s*r*zc(i);yf.add(Nc(l,u)),nf=e,rf=o,of=a}function kf(e){return vf=new xc,Jc(e,bf),2*vf}function Sf(e){return[Nc(e[1],e[0]),Wc(e[2])]}function Af(e){var t=e[0],n=e[1],r=Pc(n);return[r*Pc(t),r*zc(t),zc(n)]}function Cf(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Df(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Mf(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Ff(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Of(e){var t=Hc(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Tf,Nf,Pf,If,Rf,jf,Lf,Bf,zf,Uf,Hf,qf,Gf,Wf,Vf,Qf,$f={point:Kf,lineStart:Xf,lineEnd:Zf,polygonStart:function(){$f.point=Jf,$f.lineStart=ed,$f.lineEnd=td,pf=new xc,bf.polygonStart()},polygonEnd:function(){bf.polygonEnd(),$f.point=Kf,$f.lineStart=Xf,$f.lineEnd=Zf,yf<0?(af=-(uf=180),sf=-(lf=90)):pf>Ec?lf=90:pf<-Ec&&(sf=-90),gf[0]=af,gf[1]=uf},sphere:function(){af=-(uf=180),sf=-(lf=90)}};function Kf(e,t){mf.push(gf=[af=e,uf=e]),t<sf&&(sf=t),t>lf&&(lf=t)}function Yf(e,t){var n=Af([e*Fc,t*Fc]);if(hf){var r=Df(hf,n),i=Df([r[1],-r[0],0],r);Of(i),i=Sf(i);var o,a=e-cf,s=a>0?1:-1,u=i[0]*Mc*s,l=Oc(a)>180;l^(s*cf<u&&u<s*e)?(o=i[1]*Mc)>lf&&(lf=o):l^(s*cf<(u=(u+360)%360-180)&&u<s*e)?(o=-i[1]*Mc)<sf&&(sf=o):(t<sf&&(sf=t),t>lf&&(lf=t)),l?e<cf?nd(af,e)>nd(af,uf)&&(uf=e):nd(e,uf)>nd(af,uf)&&(af=e):uf>=af?(e<af&&(af=e),e>uf&&(uf=e)):e>cf?nd(af,e)>nd(af,uf)&&(uf=e):nd(e,uf)>nd(af,uf)&&(af=e)}else mf.push(gf=[af=e,uf=e]);t<sf&&(sf=t),t>lf&&(lf=t),hf=n,cf=e}function Xf(){$f.point=Yf}function Zf(){gf[0]=af,gf[1]=uf,$f.point=Kf,hf=null}function Jf(e,t){if(hf){var n=e-cf;pf.add(Oc(n)>180?n+(n>0?360:-360):n)}else ff=e,df=t;bf.point(e,t),Yf(e,t)}function ed(){bf.lineStart()}function td(){Jf(ff,df),bf.lineEnd(),Oc(pf)>Ec&&(af=-(uf=180)),gf[0]=af,gf[1]=uf,hf=null}function nd(e,t){return(t-=e)<0?t+360:t}function rd(e,t){return e[0]-t[0]}function id(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}function od(e){var t,n,r,i,o,a,s;if(lf=uf=-(af=sf=1/0),mf=[],Jc(e,$f),n=mf.length){for(mf.sort(rd),t=1,o=[r=mf[0]];t<n;++t)id(r,(i=mf[t])[0])||id(r,i[1])?(nd(r[0],i[1])>nd(r[0],r[1])&&(r[1]=i[1]),nd(i[0],r[1])>nd(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,t=0,r=o[n=o.length-1];t<=n;r=i,++t)i=o[t],(s=nd(r[1],i[0]))>a&&(a=s,af=i[0],uf=r[1])}return mf=gf=null,af===1/0||sf===1/0?[[NaN,NaN],[NaN,NaN]]:[[af,sf],[uf,lf]]}var ad={sphere:Qc,point:sd,lineStart:ld,lineEnd:dd,polygonStart:function(){ad.lineStart=hd,ad.lineEnd=pd},polygonEnd:function(){ad.lineStart=ld,ad.lineEnd=dd}};function sd(e,t){e*=Fc;var n=Pc(t*=Fc);ud(n*Pc(e),n*zc(e),zc(t))}function ud(e,t,n){++Tf,Pf+=(e-Pf)/Tf,If+=(t-If)/Tf,Rf+=(n-Rf)/Tf}function ld(){ad.point=cd}function cd(e,t){e*=Fc;var n=Pc(t*=Fc);Wf=n*Pc(e),Vf=n*zc(e),Qf=zc(t),ad.point=fd,ud(Wf,Vf,Qf)}function fd(e,t){e*=Fc;var n=Pc(t*=Fc),r=n*Pc(e),i=n*zc(e),o=zc(t),a=Nc(Hc((a=Vf*o-Qf*i)*a+(a=Qf*r-Wf*o)*a+(a=Wf*i-Vf*r)*a),Wf*r+Vf*i+Qf*o);Nf+=a,jf+=a*(Wf+(Wf=r)),Lf+=a*(Vf+(Vf=i)),Bf+=a*(Qf+(Qf=o)),ud(Wf,Vf,Qf)}function dd(){ad.point=sd}function hd(){ad.point=md}function pd(){gd(qf,Gf),ad.point=sd}function md(e,t){qf=e,Gf=t,e*=Fc,t*=Fc,ad.point=gd;var n=Pc(t);Wf=n*Pc(e),Vf=n*zc(e),Qf=zc(t),ud(Wf,Vf,Qf)}function gd(e,t){e*=Fc;var n=Pc(t*=Fc),r=n*Pc(e),i=n*zc(e),o=zc(t),a=Vf*o-Qf*i,s=Qf*r-Wf*o,u=Wf*i-Vf*r,l=jc(a,s,u),c=Wc(l),f=l&&-c/l;zf.add(f*a),Uf.add(f*s),Hf.add(f*u),Nf+=c,jf+=c*(Wf+(Wf=r)),Lf+=c*(Vf+(Vf=i)),Bf+=c*(Qf+(Qf=o)),ud(Wf,Vf,Qf)}function yd(e){Tf=Nf=Pf=If=Rf=jf=Lf=Bf=0,zf=new xc,Uf=new xc,Hf=new xc,Jc(e,ad);var t=+zf,n=+Uf,r=+Hf,i=jc(t,n,r);return i<kc&&(t=jf,n=Lf,r=Bf,Nf<Ec&&(t=Pf,n=If,r=Rf),(i=jc(t,n,r))<kc)?[NaN,NaN]:[Nc(n,t)*Mc,Wc(r/i)*Mc]}function vd(e){return function(){return e}}function bd(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return(n=t.invert(n,r))&&e.invert(n[0],n[1])}),n}function wd(e,t){return[Oc(e)>Sc?e+Math.round(-e/Dc)*Dc:e,t]}function _d(e,t,n){return(e%=Dc)?t||n?bd(Ed(e),kd(t,n)):Ed(e):t||n?kd(t,n):wd}function xd(e){return function(t,n){return[(t+=e)>Sc?t-Dc:t<-Sc?t+Dc:t,n]}}function Ed(e){var t=xd(e);return t.invert=xd(-e),t}function kd(e,t){var n=Pc(e),r=zc(e),i=Pc(t),o=zc(t);function a(e,t){var a=Pc(t),s=Pc(e)*a,u=zc(e)*a,l=zc(t),c=l*n+s*r;return[Nc(u*i-c*o,s*n-l*r),Wc(c*i+u*o)]}return a.invert=function(e,t){var a=Pc(t),s=Pc(e)*a,u=zc(e)*a,l=zc(t),c=l*i-u*o;return[Nc(u*i+l*o,s*n+c*r),Wc(c*n-s*r)]},a}function Sd(e){function t(t){return(t=e(t[0]*Fc,t[1]*Fc))[0]*=Mc,t[1]*=Mc,t}return e=_d(e[0]*Fc,e[1]*Fc,e.length>2?e[2]*Fc:0),t.invert=function(t){return(t=e.invert(t[0]*Fc,t[1]*Fc))[0]*=Mc,t[1]*=Mc,t},t}function Ad(e,t,n,r,i,o){if(n){var a=Pc(t),s=zc(t),u=r*n;null==i?(i=t+r*Dc,o=t-u/2):(i=Cd(a,i),o=Cd(a,o),(r>0?i<o:i>o)&&(i+=r*Dc));for(var l,c=i;r>0?c>o:c<o;c-=u)l=Sf([a,-s*Pc(c),-s*zc(c)]),e.point(l[0],l[1])}}function Cd(e,t){(t=Af(t))[0]-=e,Of(t);var n=Gc(-t[1]);return((-t[2]<0?-n:n)+Dc-Ec)%Dc}function Dd(){var e,t,n=vd([0,0]),r=vd(90),i=vd(6),o={point:function(n,r){e.push(n=t(n,r)),n[0]*=Mc,n[1]*=Mc}};function a(){var a=n.apply(this,arguments),s=r.apply(this,arguments)*Fc,u=i.apply(this,arguments)*Fc;return e=[],t=_d(-a[0]*Fc,-a[1]*Fc,0).invert,Ad(o,s,u,1),a={type:"Polygon",coordinates:[e]},e=t=null,a}return a.center=function(e){return arguments.length?(n="function"===typeof e?e:vd([+e[0],+e[1]]),a):n},a.radius=function(e){return arguments.length?(r="function"===typeof e?e:vd(+e),a):r},a.precision=function(e){return arguments.length?(i="function"===typeof e?e:vd(+e),a):i},a}function Md(){var e,t=[];return{point:function(t,n,r){e.push([t,n,r])},lineStart:function(){t.push(e=[])},lineEnd:Qc,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function Fd(e,t){return Oc(e[0]-t[0])<Ec&&Oc(e[1]-t[1])<Ec}function Od(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Td(e,t,n,r,i){var o,a,s=[],u=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,n,r=e[0],a=e[t];if(Fd(r,a)){if(!r[2]&&!a[2]){for(i.lineStart(),o=0;o<t;++o)i.point((r=e[o])[0],r[1]);return void i.lineEnd()}a[0]+=2*Ec}s.push(n=new Od(r,e,null,!0)),u.push(n.o=new Od(r,null,n,!1)),s.push(n=new Od(a,e,null,!1)),u.push(n.o=new Od(a,null,n,!0))}})),s.length){for(u.sort(t),Nd(s),Nd(u),o=0,a=u.length;o<a;++o)u[o].e=n=!n;for(var l,c,f=s[0];;){for(var d=f,h=!0;d.v;)if((d=d.n)===f)return;l=d.z,i.lineStart();do{if(d.v=d.o.v=!0,d.e){if(h)for(o=0,a=l.length;o<a;++o)i.point((c=l[o])[0],c[1]);else r(d.x,d.n.x,1,i);d=d.n}else{if(h)for(l=d.p.z,o=l.length-1;o>=0;--o)i.point((c=l[o])[0],c[1]);else r(d.x,d.p.x,-1,i);d=d.p}l=(d=d.o).z,h=!h}while(!d.v);i.lineEnd()}}}function Nd(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r<t;)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}function Pd(e){return Oc(e[0])<=Sc?e[0]:Uc(e[0])*((Oc(e[0])+Sc)%Dc-Sc)}function Id(e,t){var n=Pd(t),r=t[1],i=zc(r),o=[zc(n),-Pc(n),0],a=0,s=0,u=new xc;1===i?r=Ac+Ec:-1===i&&(r=-Ac-Ec);for(var l=0,c=e.length;l<c;++l)if(d=(f=e[l]).length)for(var f,d,h=f[d-1],p=Pd(h),m=h[1]/2+Cc,g=zc(m),y=Pc(m),v=0;v<d;++v,p=w,g=x,y=E,h=b){var b=f[v],w=Pd(b),_=b[1]/2+Cc,x=zc(_),E=Pc(_),k=w-p,S=k>=0?1:-1,A=S*k,C=A>Sc,D=g*x;if(u.add(Nc(D*S*zc(A),y*E+D*Pc(A))),a+=C?k+S*Dc:k,C^p>=n^w>=n){var M=Df(Af(h),Af(b));Of(M);var F=Df(o,M);Of(F);var O=(C^k>=0?-1:1)*Wc(F[2]);(r>O||r===O&&(M[0]||M[1]))&&(s+=C^k>=0?1:-1)}}return(a<-Ec||a<Ec&&u<-kc)^1&s}function Rd(e){return Array.from(function*(e){for(const t of e)yield*t}(e))}function jd(e,t,n,r){return function(i){var o,a,s,u=t(i),l=Md(),c=t(l),f=!1,d={point:h,lineStart:m,lineEnd:g,polygonStart:function(){d.point=y,d.lineStart=v,d.lineEnd=b,a=[],o=[]},polygonEnd:function(){d.point=h,d.lineStart=m,d.lineEnd=g,a=Rd(a);var e=Id(o,r);a.length?(f||(i.polygonStart(),f=!0),Td(a,Bd,e,n,i)):e&&(f||(i.polygonStart(),f=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),f&&(i.polygonEnd(),f=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function h(t,n){e(t,n)&&i.point(t,n)}function p(e,t){u.point(e,t)}function m(){d.point=p,u.lineStart()}function g(){d.point=h,u.lineEnd()}function y(e,t){s.push([e,t]),c.point(e,t)}function v(){c.lineStart(),s=[]}function b(){y(s[0][0],s[0][1]),c.lineEnd();var e,t,n,r,u=c.clean(),d=l.result(),h=d.length;if(s.pop(),o.push(s),s=null,h)if(1&u){if((t=(n=d[0]).length-1)>0){for(f||(i.polygonStart(),f=!0),i.lineStart(),e=0;e<t;++e)i.point((r=n[e])[0],r[1]);i.lineEnd()}}else h>1&&2&u&&d.push(d.pop().concat(d.shift())),a.push(d.filter(Ld))}return d}}function Ld(e){return e.length>1}function Bd(e,t){return((e=e.x)[0]<0?e[1]-Ac-Ec:Ac-e[1])-((t=t.x)[0]<0?t[1]-Ac-Ec:Ac-t[1])}wd.invert=wd;const zd=jd((function(){return!0}),(function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?Sc:-Sc,u=Oc(o-n);Oc(u-Sc)<Ec?(e.point(n,r=(r+a)/2>0?Ac:-Ac),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(o,r),t=0):i!==s&&u>=Sc&&(Oc(n-i)<Ec&&(n-=i*Ec),Oc(o-s)<Ec&&(o-=s*Ec),r=function(e,t,n,r){var i,o,a=zc(e-n);return Oc(a)>Ec?Tc((zc(t)*(o=Pc(r))*zc(n)-zc(r)*(i=Pc(t))*zc(e))/(i*o*a)):(t+r)/2}(n,r,o,a),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=o,r=a),i=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var i;if(null==e)i=n*Ac,r.point(-Sc,i),r.point(0,i),r.point(Sc,i),r.point(Sc,0),r.point(Sc,-i),r.point(0,-i),r.point(-Sc,-i),r.point(-Sc,0),r.point(-Sc,i);else if(Oc(e[0]-t[0])>Ec){var o=e[0]<t[0]?Sc:-Sc;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])}),[-Sc,-Ac]);function Ud(e){var t=Pc(e),n=6*Fc,r=t>0,i=Oc(t)>Ec;function o(e,n){return Pc(e)*Pc(n)>t}function a(e,n,r){var i=[1,0,0],o=Df(Af(e),Af(n)),a=Cf(o,o),s=o[0],u=a-s*s;if(!u)return!r&&e;var l=t*a/u,c=-t*s/u,f=Df(i,o),d=Ff(i,l);Mf(d,Ff(o,c));var h=f,p=Cf(d,h),m=Cf(h,h),g=p*p-m*(Cf(d,d)-1);if(!(g<0)){var y=Hc(g),v=Ff(h,(-p-y)/m);if(Mf(v,d),v=Sf(v),!r)return v;var b,w=e[0],_=n[0],x=e[1],E=n[1];_<w&&(b=w,w=_,_=b);var k=_-w,S=Oc(k-Sc)<Ec;if(!S&&E<x&&(b=x,x=E,E=b),S||k<Ec?S?x+E>0^v[1]<(Oc(v[0]-w)<Ec?x:E):x<=v[1]&&v[1]<=E:k>Sc^(w<=v[0]&&v[0]<=_)){var A=Ff(h,(-p+y)/m);return Mf(A,d),[v,Sf(A)]}}}function s(t,n){var i=r?e:Sc-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return jd(o,(function(e){var t,n,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(f,d){var h,p=[f,d],m=o(f,d),g=r?m?0:s(f,d):m?s(f+(f<0?Sc:-Sc),d):0;if(!t&&(l=u=m)&&e.lineStart(),m!==u&&(!(h=a(t,p))||Fd(t,h)||Fd(p,h))&&(p[2]=1),m!==u)c=0,m?(e.lineStart(),h=a(p,t),e.point(h[0],h[1])):(h=a(t,p),e.point(h[0],h[1],2),e.lineEnd()),t=h;else if(i&&t&&r^m){var y;g&n||!(y=a(p,t,!0))||(c=0,r?(e.lineStart(),e.point(y[0][0],y[0][1]),e.point(y[1][0],y[1][1]),e.lineEnd()):(e.point(y[1][0],y[1][1]),e.lineEnd(),e.lineStart(),e.point(y[0][0],y[0][1],3)))}!m||t&&Fd(t,p)||e.point(p[0],p[1]),t=p,u=m,n=g},lineEnd:function(){u&&e.lineEnd(),t=null},clean:function(){return c|(l&&u)<<1}}}),(function(t,r,i,o){Ad(o,e,n,i,t,r)}),r?[0,-e]:[-Sc,e-Sc])}var Hd,qd,Gd,Wd,Vd=1e9,Qd=-Vd;function $d(e,t,n,r){function i(i,o){return e<=i&&i<=n&&t<=o&&o<=r}function o(i,o,s,l){var c=0,f=0;if(null==i||(c=a(i,s))!==(f=a(o,s))||u(i,o)<0^s>0)do{l.point(0===c||3===c?e:n,c>1?r:t)}while((c=(c+s+4)%4)!==f);else l.point(o[0],o[1])}function a(r,i){return Oc(r[0]-e)<Ec?i>0?0:3:Oc(r[0]-n)<Ec?i>0?2:1:Oc(r[1]-t)<Ec?i>0?1:0:i>0?3:2}function s(e,t){return u(e.x,t.x)}function u(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var u,l,c,f,d,h,p,m,g,y,v,b=a,w=Md(),_={point:x,lineStart:function(){_.point=E,l&&l.push(c=[]);y=!0,g=!1,p=m=NaN},lineEnd:function(){u&&(E(f,d),h&&g&&w.rejoin(),u.push(w.result()));_.point=x,g&&b.lineEnd()},polygonStart:function(){b=w,u=[],l=[],v=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,i=l.length;n<i;++n)for(var o,a,s=l[n],u=1,c=s.length,f=s[0],d=f[0],h=f[1];u<c;++u)o=d,a=h,d=(f=s[u])[0],h=f[1],a<=r?h>r&&(d-o)*(r-a)>(h-a)*(e-o)&&++t:h<=r&&(d-o)*(r-a)<(h-a)*(e-o)&&--t;return t}(),n=v&&t,i=(u=Rd(u)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&Td(u,s,t,o,a),a.polygonEnd());b=a,u=l=c=null}};function x(e,t){i(e,t)&&b.point(e,t)}function E(o,a){var s=i(o,a);if(l&&c.push([o,a]),y)f=o,d=a,h=s,y=!1,s&&(b.lineStart(),b.point(o,a));else if(s&&g)b.point(o,a);else{var u=[p=Math.max(Qd,Math.min(Vd,p)),m=Math.max(Qd,Math.min(Vd,m))],w=[o=Math.max(Qd,Math.min(Vd,o)),a=Math.max(Qd,Math.min(Vd,a))];!function(e,t,n,r,i,o){var a,s=e[0],u=e[1],l=0,c=1,f=t[0]-s,d=t[1]-u;if(a=n-s,f||!(a>0)){if(a/=f,f<0){if(a<l)return;a<c&&(c=a)}else if(f>0){if(a>c)return;a>l&&(l=a)}if(a=i-s,f||!(a<0)){if(a/=f,f<0){if(a>c)return;a>l&&(l=a)}else if(f>0){if(a<l)return;a<c&&(c=a)}if(a=r-u,d||!(a>0)){if(a/=d,d<0){if(a<l)return;a<c&&(c=a)}else if(d>0){if(a>c)return;a>l&&(l=a)}if(a=o-u,d||!(a<0)){if(a/=d,d<0){if(a>c)return;a>l&&(l=a)}else if(d>0){if(a<l)return;a<c&&(c=a)}return l>0&&(e[0]=s+l*f,e[1]=u+l*d),c<1&&(t[0]=s+c*f,t[1]=u+c*d),!0}}}}}(u,w,e,t,n,r)?s&&(b.lineStart(),b.point(o,a),v=!1):(g||(b.lineStart(),b.point(u[0],u[1])),b.point(w[0],w[1]),s||b.lineEnd(),v=!1)}p=o,m=a,g=s}return _}}function Kd(){var e,t,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return e&&t===n?e:e=$d(r,i,o,a)(t=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],o=+s[1][0],a=+s[1][1],e=t=null,n):[[r,i],[o,a]]}}}var Yd={sphere:Qc,point:Qc,lineStart:function(){Yd.point=Zd,Yd.lineEnd=Xd},lineEnd:Qc,polygonStart:Qc,polygonEnd:Qc};function Xd(){Yd.point=Yd.lineEnd=Qc}function Zd(e,t){qd=e*=Fc,Gd=zc(t*=Fc),Wd=Pc(t),Yd.point=Jd}function Jd(e,t){e*=Fc;var n=zc(t*=Fc),r=Pc(t),i=Oc(e-qd),o=Pc(i),a=r*zc(i),s=Wd*n-Gd*r*o,u=Gd*n+Wd*r*o;Hd.add(Nc(Hc(a*a+s*s),u)),qd=e,Gd=n,Wd=r}function eh(e){return Hd=new xc,Jc(e,Yd),+Hd}var th=[null,null],nh={type:"LineString",coordinates:th};function rh(e,t){return th[0]=e,th[1]=t,eh(nh)}var ih={Feature:function(e,t){return ah(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(ah(n[r].geometry,t))return!0;return!1}},oh={Sphere:function(){return!0},Point:function(e,t){return sh(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(sh(n[r],t))return!0;return!1},LineString:function(e,t){return uh(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(uh(n[r],t))return!0;return!1},Polygon:function(e,t){return lh(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(lh(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(ah(n[r],t))return!0;return!1}};function ah(e,t){return!(!e||!oh.hasOwnProperty(e.type))&&oh[e.type](e,t)}function sh(e,t){return 0===rh(e,t)}function uh(e,t){for(var n,r,i,o=0,a=e.length;o<a;o++){if(0===(r=rh(e[o],t)))return!0;if(o>0&&(i=rh(e[o],e[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<kc*i)return!0;n=r}return!1}function lh(e,t){return!!Id(e.map(ch),fh(t))}function ch(e){return(e=e.map(fh)).pop(),e}function fh(e){return[e[0]*Fc,e[1]*Fc]}function dh(e,t){return(e&&ih.hasOwnProperty(e.type)?ih[e.type]:ah)(e,t)}function hh(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=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}function ph(e,t,n){var r=hh(e,t-Ec,n).concat(t);return function(e){return r.map((function(t){return[e,t]}))}}function mh(e,t,n){var r=hh(e,t-Ec,n).concat(t);return function(e){return r.map((function(t){return[t,e]}))}}function gh(){var e,t,n,r,i,o,a,s,u,l,c,f,d=10,h=d,p=90,m=360,g=2.5;function y(){return{type:"MultiLineString",coordinates:v()}}function v(){return hh(Ic(r/p)*p,n,p).map(c).concat(hh(Ic(s/m)*m,a,m).map(f)).concat(hh(Ic(t/d)*d,e,d).filter((function(e){return Oc(e%p)>Ec})).map(u)).concat(hh(Ic(o/h)*h,i,h).filter((function(e){return Oc(e%m)>Ec})).map(l))}return y.lines=function(){return v().map((function(e){return{type:"LineString",coordinates:e}}))},y.outline=function(){return{type:"Polygon",coordinates:[c(r).concat(f(a).slice(1),c(n).reverse().slice(1),f(s).reverse().slice(1))]}},y.extent=function(e){return arguments.length?y.extentMajor(e).extentMinor(e):y.extentMinor()},y.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),y.precision(g)):[[r,s],[n,a]]},y.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],o=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),o>i&&(n=o,o=i,i=n),y.precision(g)):[[t,o],[e,i]]},y.step=function(e){return arguments.length?y.stepMajor(e).stepMinor(e):y.stepMinor()},y.stepMajor=function(e){return arguments.length?(p=+e[0],m=+e[1],y):[p,m]},y.stepMinor=function(e){return arguments.length?(d=+e[0],h=+e[1],y):[d,h]},y.precision=function(d){return arguments.length?(g=+d,u=ph(o,i,90),l=mh(t,e,g),c=ph(s,a,90),f=mh(r,n,g),y):g},y.extentMajor([[-180,-90+Ec],[180,90-Ec]]).extentMinor([[-180,-80-Ec],[180,80+Ec]])}function yh(){return gh()()}function vh(e,t){var n=e[0]*Fc,r=e[1]*Fc,i=t[0]*Fc,o=t[1]*Fc,a=Pc(r),s=zc(r),u=Pc(o),l=zc(o),c=a*Pc(n),f=a*zc(n),d=u*Pc(i),h=u*zc(i),p=2*Wc(Hc(Vc(o-r)+a*u*Vc(i-n))),m=zc(p),g=p?function(e){var t=zc(e*=p)/m,n=zc(p-e)/m,r=n*c+t*d,i=n*f+t*h,o=n*s+t*l;return[Nc(i,r)*Mc,Nc(o,Hc(r*r+i*i))*Mc]}:function(){return[n*Mc,r*Mc]};return g.distance=p,g}const bh=e=>e;var wh,_h,xh,Eh,kh=new xc,Sh=new xc,Ah={point:Qc,lineStart:Qc,lineEnd:Qc,polygonStart:function(){Ah.lineStart=Ch,Ah.lineEnd=Fh},polygonEnd:function(){Ah.lineStart=Ah.lineEnd=Ah.point=Qc,kh.add(Oc(Sh)),Sh=new xc},result:function(){var e=kh/2;return kh=new xc,e}};function Ch(){Ah.point=Dh}function Dh(e,t){Ah.point=Mh,wh=xh=e,_h=Eh=t}function Mh(e,t){Sh.add(Eh*e-xh*t),xh=e,Eh=t}function Fh(){Mh(wh,_h)}const Oh=Ah;var Th=1/0,Nh=Th,Ph=-Th,Ih=Ph,Rh={point:function(e,t){e<Th&&(Th=e);e>Ph&&(Ph=e);t<Nh&&(Nh=t);t>Ih&&(Ih=t)},lineStart:Qc,lineEnd:Qc,polygonStart:Qc,polygonEnd:Qc,result:function(){var e=[[Th,Nh],[Ph,Ih]];return Ph=Ih=-(Nh=Th=1/0),e}};const jh=Rh;var Lh,Bh,zh,Uh,Hh=0,qh=0,Gh=0,Wh=0,Vh=0,Qh=0,$h=0,Kh=0,Yh=0,Xh={point:Zh,lineStart:Jh,lineEnd:np,polygonStart:function(){Xh.lineStart=rp,Xh.lineEnd=ip},polygonEnd:function(){Xh.point=Zh,Xh.lineStart=Jh,Xh.lineEnd=np},result:function(){var e=Yh?[$h/Yh,Kh/Yh]:Qh?[Wh/Qh,Vh/Qh]:Gh?[Hh/Gh,qh/Gh]:[NaN,NaN];return Hh=qh=Gh=Wh=Vh=Qh=$h=Kh=Yh=0,e}};function Zh(e,t){Hh+=e,qh+=t,++Gh}function Jh(){Xh.point=ep}function ep(e,t){Xh.point=tp,Zh(zh=e,Uh=t)}function tp(e,t){var n=e-zh,r=t-Uh,i=Hc(n*n+r*r);Wh+=i*(zh+e)/2,Vh+=i*(Uh+t)/2,Qh+=i,Zh(zh=e,Uh=t)}function np(){Xh.point=Zh}function rp(){Xh.point=op}function ip(){ap(Lh,Bh)}function op(e,t){Xh.point=ap,Zh(Lh=zh=e,Bh=Uh=t)}function ap(e,t){var n=e-zh,r=t-Uh,i=Hc(n*n+r*r);Wh+=i*(zh+e)/2,Vh+=i*(Uh+t)/2,Qh+=i,$h+=(i=Uh*e-zh*t)*(zh+e),Kh+=i*(Uh+t),Yh+=3*i,Zh(zh=e,Uh=t)}const sp=Xh;function up(e){this._context=e}up.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,Dc)}},result:Qc};var lp,cp,fp,dp,hp,pp=new xc,mp={point:Qc,lineStart:function(){mp.point=gp},lineEnd:function(){lp&&yp(cp,fp),mp.point=Qc},polygonStart:function(){lp=!0},polygonEnd:function(){lp=null},result:function(){var e=+pp;return pp=new xc,e}};function gp(e,t){mp.point=yp,cp=dp=e,fp=hp=t}function yp(e,t){dp-=e,hp-=t,pp.add(Hc(dp*dp+hp*hp)),dp=e,hp=t}const vp=mp;function bp(){this._string=[]}function wp(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function _p(e,t){var n,r,i=4.5;function o(e){return e&&("function"===typeof i&&r.pointRadius(+i.apply(this,arguments)),Jc(e,n(r))),r.result()}return o.area=function(e){return Jc(e,n(Oh)),Oh.result()},o.measure=function(e){return Jc(e,n(vp)),vp.result()},o.bounds=function(e){return Jc(e,n(jh)),jh.result()},o.centroid=function(e){return Jc(e,n(sp)),sp.result()},o.projection=function(t){return arguments.length?(n=null==t?(e=null,bh):(e=t).stream,o):e},o.context=function(e){return arguments.length?(r=null==e?(t=null,new bp):new up(t=e),"function"!==typeof i&&r.pointRadius(i),o):t},o.pointRadius=function(e){return arguments.length?(i="function"===typeof e?e:(r.pointRadius(+e),+e),o):i},o.projection(e).context(t)}function xp(e){return{stream:Ep(e)}}function Ep(e){return function(t){var n=new kp;for(var r in e)n[r]=e[r];return n.stream=t,n}}function kp(){}function Sp(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),Jc(n,e.stream(jh)),t(jh.result()),null!=r&&e.clipExtent(r),e}function Ap(e,t,n){return Sp(e,(function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+t[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(i-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([a,s])}),n)}function Cp(e,t,n){return Ap(e,[[0,0],t],n)}function Dp(e,t,n){return Sp(e,(function(n){var r=+t,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];e.scale(150*i).translate([o,a])}),n)}function Mp(e,t,n){return Sp(e,(function(n){var r=+t,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([o,a])}),n)}bp.prototype={_radius:4.5,_circle:wp(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=wp(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}},kp.prototype={constructor:kp,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Fp=16,Op=Pc(30*Fc);function Tp(e,t){return+t?function(e,t){function n(r,i,o,a,s,u,l,c,f,d,h,p,m,g){var y=l-r,v=c-i,b=y*y+v*v;if(b>4*t&&m--){var w=a+d,_=s+h,x=u+p,E=Hc(w*w+_*_+x*x),k=Wc(x/=E),S=Oc(Oc(x)-1)<Ec||Oc(o-f)<Ec?(o+f)/2:Nc(_,w),A=e(S,k),C=A[0],D=A[1],M=C-r,F=D-i,O=v*M-y*F;(O*O/b>t||Oc((y*M+v*F)/b-.5)>.3||a*d+s*h+u*p<Op)&&(n(r,i,o,a,s,u,C,D,S,w/=E,_/=E,x,m,g),g.point(C,D),n(C,D,S,w,_,x,l,c,f,d,h,p,m,g))}}return function(t){var r,i,o,a,s,u,l,c,f,d,h,p,m={point:g,lineStart:y,lineEnd:b,polygonStart:function(){t.polygonStart(),m.lineStart=w},polygonEnd:function(){t.polygonEnd(),m.lineStart=y}};function g(n,r){n=e(n,r),t.point(n[0],n[1])}function y(){c=NaN,m.point=v,t.lineStart()}function v(r,i){var o=Af([r,i]),a=e(r,i);n(c,f,l,d,h,p,c=a[0],f=a[1],l=r,d=o[0],h=o[1],p=o[2],Fp,t),t.point(c,f)}function b(){m.point=g,t.lineEnd()}function w(){y(),m.point=_,m.lineEnd=x}function _(e,t){v(r=e,t),i=c,o=f,a=d,s=h,u=p,m.point=v}function x(){n(c,f,l,d,h,p,i,o,r,a,s,u,Fp,t),m.lineEnd=b,b()}return m}}(e,t):function(e){return Ep({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}(e)}var Np=Ep({point:function(e,t){this.stream.point(e*Fc,t*Fc)}});function Pp(e,t,n,r,i,o){if(!o)return function(e,t,n,r,i){function o(o,a){return[t+e*(o*=r),n-e*(a*=i)]}return o.invert=function(o,a){return[(o-t)/e*r,(n-a)/e*i]},o}(e,t,n,r,i);var a=Pc(o),s=zc(o),u=a*e,l=s*e,c=a/e,f=s/e,d=(s*n-a*t)/e,h=(s*t+a*n)/e;function p(e,o){return[u*(e*=r)-l*(o*=i)+t,n-l*e-u*o]}return p.invert=function(e,t){return[r*(c*e-f*t+d),i*(h-f*e-c*t)]},p}function Ip(e){return Rp((function(){return e}))()}function Rp(e){var t,n,r,i,o,a,s,u,l,c,f=150,d=480,h=250,p=0,m=0,g=0,y=0,v=0,b=0,w=1,_=1,x=null,E=zd,k=null,S=bh,A=.5;function C(e){return u(e[0]*Fc,e[1]*Fc)}function D(e){return(e=u.invert(e[0],e[1]))&&[e[0]*Mc,e[1]*Mc]}function M(){var e=Pp(f,0,0,w,_,b).apply(null,t(p,m)),r=Pp(f,d-e[0],h-e[1],w,_,b);return n=_d(g,y,v),s=bd(t,r),u=bd(n,s),a=Tp(s,A),F()}function F(){return l=c=null,C}return C.stream=function(e){return l&&c===e?l:l=Np(function(e){return Ep({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}(n)(E(a(S(c=e)))))},C.preclip=function(e){return arguments.length?(E=e,x=void 0,F()):E},C.postclip=function(e){return arguments.length?(S=e,k=r=i=o=null,F()):S},C.clipAngle=function(e){return arguments.length?(E=+e?Ud(x=e*Fc):(x=null,zd),F()):x*Mc},C.clipExtent=function(e){return arguments.length?(S=null==e?(k=r=i=o=null,bh):$d(k=+e[0][0],r=+e[0][1],i=+e[1][0],o=+e[1][1]),F()):null==k?null:[[k,r],[i,o]]},C.scale=function(e){return arguments.length?(f=+e,M()):f},C.translate=function(e){return arguments.length?(d=+e[0],h=+e[1],M()):[d,h]},C.center=function(e){return arguments.length?(p=e[0]%360*Fc,m=e[1]%360*Fc,M()):[p*Mc,m*Mc]},C.rotate=function(e){return arguments.length?(g=e[0]%360*Fc,y=e[1]%360*Fc,v=e.length>2?e[2]%360*Fc:0,M()):[g*Mc,y*Mc,v*Mc]},C.angle=function(e){return arguments.length?(b=e%360*Fc,M()):b*Mc},C.reflectX=function(e){return arguments.length?(w=e?-1:1,M()):w<0},C.reflectY=function(e){return arguments.length?(_=e?-1:1,M()):_<0},C.precision=function(e){return arguments.length?(a=Tp(s,A=e*e),F()):Hc(A)},C.fitExtent=function(e,t){return Ap(C,e,t)},C.fitSize=function(e,t){return Cp(C,e,t)},C.fitWidth=function(e,t){return Dp(C,e,t)},C.fitHeight=function(e,t){return Mp(C,e,t)},function(){return t=e.apply(this,arguments),C.invert=t.invert&&D,M()}}function jp(e){var t=0,n=Sc/3,r=Rp(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Fc,n=e[1]*Fc):[t*Mc,n*Mc]},i}function Lp(e,t){var n=zc(e),r=(n+zc(t))/2;if(Oc(r)<Ec)return function(e){var t=Pc(e);function n(e,n){return[e*t,zc(n)/t]}return n.invert=function(e,n){return[e/t,Wc(n*t)]},n}(e);var i=1+n*(2*r-n),o=Hc(i)/r;function a(e,t){var n=Hc(i-2*r*zc(t))/r;return[n*zc(e*=r),o-n*Pc(e)]}return a.invert=function(e,t){var n=o-t,a=Nc(e,Oc(n))*Uc(n);return n*r<0&&(a-=Sc*Uc(e)*Uc(n)),[a/r,Wc((i-(e*e+n*n)*r*r)/(2*r))]},a}function Bp(){return jp(Lp).scale(155.424).center([0,33.6442])}function zp(){return Bp().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Up(){var e,t,n,r,i,o,a=zp(),s=Bp().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=Bp().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(e,t){o=[e,t]}};function c(e){var t=e[0],a=e[1];return o=null,n.point(t,a),o||(r.point(t,a),o)||(i.point(t,a),o)}function f(){return e=t=null,c}return c.invert=function(e){var t=a.scale(),n=a.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?u:a).invert(e)},c.stream=function(n){return e&&t===n?e:e=function(e){var t=e.length;return{point:function(n,r){for(var i=-1;++i<t;)e[i].point(n,r)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}([a.stream(t=n),s.stream(n),u.stream(n)])},c.precision=function(e){return arguments.length?(a.precision(e),s.precision(e),u.precision(e),f()):a.precision()},c.scale=function(e){return arguments.length?(a.scale(e),s.scale(.35*e),u.scale(e),c.translate(a.translate())):a.scale()},c.translate=function(e){if(!arguments.length)return a.translate();var t=a.scale(),o=+e[0],c=+e[1];return n=a.translate(e).clipExtent([[o-.455*t,c-.238*t],[o+.455*t,c+.238*t]]).stream(l),r=s.translate([o-.307*t,c+.201*t]).clipExtent([[o-.425*t+Ec,c+.12*t+Ec],[o-.214*t-Ec,c+.234*t-Ec]]).stream(l),i=u.translate([o-.205*t,c+.212*t]).clipExtent([[o-.214*t+Ec,c+.166*t+Ec],[o-.115*t-Ec,c+.234*t-Ec]]).stream(l),f()},c.fitExtent=function(e,t){return Ap(c,e,t)},c.fitSize=function(e,t){return Cp(c,e,t)},c.fitWidth=function(e,t){return Dp(c,e,t)},c.fitHeight=function(e,t){return Mp(c,e,t)},c.scale(1070)}function Hp(e){return function(t,n){var r=Pc(t),i=Pc(n),o=e(r*i);return o===1/0?[2,0]:[o*i*zc(t),o*zc(n)]}}function qp(e){return function(t,n){var r=Hc(t*t+n*n),i=e(r),o=zc(i),a=Pc(i);return[Nc(t*o,r*a),Wc(r&&n*o/r)]}}var Gp=Hp((function(e){return Hc(2/(1+e))}));function Wp(){return Ip(Gp).scale(124.75).clipAngle(179.999)}Gp.invert=qp((function(e){return 2*Wc(e/2)}));var Vp=Hp((function(e){return(e=Gc(e))&&e/zc(e)}));function Qp(){return Ip(Vp).scale(79.4188).clipAngle(179.999)}function $p(e,t){return[e,Lc(qc((Ac+t)/2))]}function Kp(){return Yp($p).scale(961/Dc)}function Yp(e){var t,n,r,i=Ip(e),o=i.center,a=i.scale,s=i.translate,u=i.clipExtent,l=null;function c(){var o=Sc*a(),s=i(Sd(i.rotate()).invert([0,0]));return u(null==l?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:e===$p?[[Math.max(s[0]-o,l),t],[Math.min(s[0]+o,n),r]]:[[l,Math.max(s[1]-o,t)],[n,Math.min(s[1]+o,r)]])}return i.scale=function(e){return arguments.length?(a(e),c()):a()},i.translate=function(e){return arguments.length?(s(e),c()):s()},i.center=function(e){return arguments.length?(o(e),c()):o()},i.clipExtent=function(e){return arguments.length?(null==e?l=t=n=r=null:(l=+e[0][0],t=+e[0][1],n=+e[1][0],r=+e[1][1]),c()):null==l?null:[[l,t],[n,r]]},c()}function Xp(e){return qc((Ac+e)/2)}function Zp(e,t){var n=Pc(e),r=e===t?zc(e):Lc(n/Pc(t))/Lc(Xp(t)/Xp(e)),i=n*Bc(Xp(e),r)/r;if(!r)return $p;function o(e,t){i>0?t<-Ac+Ec&&(t=-Ac+Ec):t>Ac-Ec&&(t=Ac-Ec);var n=i/Bc(Xp(t),r);return[n*zc(r*e),i-n*Pc(r*e)]}return o.invert=function(e,t){var n=i-t,o=Uc(r)*Hc(e*e+n*n),a=Nc(e,Oc(n))*Uc(n);return n*r<0&&(a-=Sc*Uc(e)*Uc(n)),[a/r,2*Tc(Bc(i/o,1/r))-Ac]},o}function Jp(){return jp(Zp).scale(109.5).parallels([30,30])}function em(e,t){return[e,t]}function tm(){return Ip(em).scale(152.63)}function nm(e,t){var n=Pc(e),r=e===t?zc(e):(n-Pc(t))/(t-e),i=n/r+e;if(Oc(r)<Ec)return em;function o(e,t){var n=i-t,o=r*e;return[n*zc(o),i-n*Pc(o)]}return o.invert=function(e,t){var n=i-t,o=Nc(e,Oc(n))*Uc(n);return n*r<0&&(o-=Sc*Uc(e)*Uc(n)),[o/r,i-Uc(r)*Hc(e*e+n*n)]},o}function rm(){return jp(nm).scale(131.154).center([0,13.9389])}Vp.invert=qp((function(e){return e})),$p.invert=function(e,t){return[e,2*Tc(Rc(t))-Ac]},em.invert=em;var im=1.340264,om=-.081106,am=893e-6,sm=.003796,um=Hc(3)/2;function lm(e,t){var n=Wc(um*zc(t)),r=n*n,i=r*r*r;return[e*Pc(n)/(um*(im+3*om*r+i*(7*am+9*sm*r))),n*(im+om*r+i*(am+sm*r))]}function cm(){return Ip(lm).scale(177.158)}function fm(e,t){var n=Pc(t),r=Pc(e)*n;return[n*zc(e)/r,zc(t)/r]}function dm(){return Ip(fm).scale(144.049).clipAngle(60)}function hm(){var e,t,n,r,i,o,a,s=1,u=0,l=0,c=1,f=1,d=0,h=null,p=1,m=1,g=Ep({point:function(e,t){var n=b([e,t]);this.stream.point(n[0],n[1])}}),y=bh;function v(){return p=s*c,m=s*f,o=a=null,b}function b(n){var r=n[0]*p,i=n[1]*m;if(d){var o=i*e-r*t;r=r*e+i*t,i=o}return[r+u,i+l]}return b.invert=function(n){var r=n[0]-u,i=n[1]-l;if(d){var o=i*e+r*t;r=r*e-i*t,i=o}return[r/p,i/m]},b.stream=function(e){return o&&a===e?o:o=g(y(a=e))},b.postclip=function(e){return arguments.length?(y=e,h=n=r=i=null,v()):y},b.clipExtent=function(e){return arguments.length?(y=null==e?(h=n=r=i=null,bh):$d(h=+e[0][0],n=+e[0][1],r=+e[1][0],i=+e[1][1]),v()):null==h?null:[[h,n],[r,i]]},b.scale=function(e){return arguments.length?(s=+e,v()):s},b.translate=function(e){return arguments.length?(u=+e[0],l=+e[1],v()):[u,l]},b.angle=function(n){return arguments.length?(t=zc(d=n%360*Fc),e=Pc(d),v()):d*Mc},b.reflectX=function(e){return arguments.length?(c=e?-1:1,v()):c<0},b.reflectY=function(e){return arguments.length?(f=e?-1:1,v()):f<0},b.fitExtent=function(e,t){return Ap(b,e,t)},b.fitSize=function(e,t){return Cp(b,e,t)},b.fitWidth=function(e,t){return Dp(b,e,t)},b.fitHeight=function(e,t){return Mp(b,e,t)},b}function pm(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function mm(){return Ip(pm).scale(175.295)}function gm(e,t){return[Pc(t)*zc(e),zc(t)]}function ym(){return Ip(gm).scale(249.5).clipAngle(90+Ec)}function vm(e,t){var n=Pc(t),r=1+Pc(e)*n;return[n*zc(e)/r,zc(t)/r]}function bm(){return Ip(vm).scale(250).clipAngle(142)}function wm(e,t){return[Lc(qc((Ac+t)/2)),-e]}function _m(){var e=Yp(wm),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)}function xm(e,t){return e.parent===t.parent?1:2}function Em(e,t){return e+t.x}function km(e,t){return Math.max(e,t.y)}function Sm(){var e=xm,t=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(t){var n=t.children;n?(t.x=function(e){return e.reduce(Em,0)/e.length}(n),t.y=function(e){return 1+e.reduce(km,0)}(n)):(t.x=o?a+=e(t,o):0,t.y=0,o=t)}));var s=function(e){for(var t;t=e.children;)e=t[0];return e}(i),u=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(i),l=s.x-e(s,u)/2,c=u.x+e(u,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)/(c-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 Am(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Cm(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Mm)):void 0===t&&(t=Dm);for(var n,r,i,o,a,s=new Tm(e),u=[s];n=u.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)u.push(r=i[o]=new Tm(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Om)}function Dm(e){return e.children}function Mm(e){return Array.isArray(e)?e[1]:null}function Fm(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Om(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Tm(e){this.data=e,this.depth=this.height=0,this.parent=null}function Nm(e){for(var t,n,r=0,i=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(Array.from(e))).length,o=[];r<i;)t=e[r],n&&Rm(n,t)?++r:(n=Lm(o=Pm(o,t)),r=0);return n}function Pm(e,t){var n,r;if(jm(t,e))return[t];for(n=0;n<e.length;++n)if(Im(t,e[n])&&jm(Bm(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(Im(Bm(e[n],e[r]),t)&&Im(Bm(e[n],t),e[r])&&Im(Bm(e[r],t),e[n])&&jm(zm(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function Im(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function Rm(e,t){var n=e.r-t.r+1e-9*Math.max(e.r,t.r,1),r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function jm(e,t){for(var n=0;n<t.length;++n)if(!Rm(e,t[n]))return!1;return!0}function Lm(e){switch(e.length){case 1:return function(e){return{x:e.x,y:e.y,r:e.r}}(e[0]);case 2:return Bm(e[0],e[1]);case 3:return zm(e[0],e[1],e[2])}}function Bm(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,a=t.y,s=t.r,u=o-n,l=a-r,c=s-i,f=Math.sqrt(u*u+l*l);return{x:(n+o+u/f*c)/2,y:(r+a+l/f*c)/2,r:(f+i+s)/2}}function zm(e,t,n){var r=e.x,i=e.y,o=e.r,a=t.x,s=t.y,u=t.r,l=n.x,c=n.y,f=n.r,d=r-a,h=r-l,p=i-s,m=i-c,g=u-o,y=f-o,v=r*r+i*i-o*o,b=v-a*a-s*s+u*u,w=v-l*l-c*c+f*f,_=h*p-d*m,x=(p*w-m*b)/(2*_)-r,E=(m*g-p*y)/_,k=(h*b-d*w)/(2*_)-i,S=(d*y-h*g)/_,A=E*E+S*S-1,C=2*(o+x*E+k*S),D=x*x+k*k-o*o,M=-(A?(C+Math.sqrt(C*C-4*A*D))/(2*A):D/C);return{x:r+x+E*M,y:i+k+S*M,r:M}}function Um(e,t,n){var r,i,o,a,s=e.x-t.x,u=e.y-t.y,l=s*s+u*u;l?(i=t.r+n.r,i*=i,a=e.r+n.r,i>(a*=a)?(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),n.x=e.x-r*s-o*u,n.y=e.y-r*u+o*s):(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=t.x+r*s-o*u,n.y=t.y+r*u+o*s)):(n.x=t.x+n.r,n.y=t.y)}function Hm(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function qm(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function Gm(e){this._=e,this.next=null,this.previous=null}function Wm(e){if(!(i=(e=function(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}(e)).length))return 0;var t,n,r,i,o,a,s,u,l,c,f;if((t=e[0]).x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;Um(n,t,r=e[2]),t=new Gm(t),n=new Gm(n),r=new Gm(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;s<i;++s){Um(t._,n._,r=e[s]),r=new Gm(r),u=n.next,l=t.previous,c=n._.r,f=t._.r;do{if(c<=f){if(Hm(u._,r._)){n=u,t.next=n,n.previous=t,--s;continue e}c+=u._.r,u=u.next}else{if(Hm(l._,r._)){(t=l).next=n,n.previous=t,--s;continue e}f+=l._.r,l=l.previous}}while(u!==l.next);for(r.previous=t,r.next=n,t.next=n.previous=n=r,o=qm(t);(r=r.next)!==n;)(a=qm(r))<o&&(t=r,o=a);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=Nm(t),s=0;s<i;++s)(t=e[s]).x-=r.x,t.y-=r.y;return r.r}function Vm(e){return Wm(e),e}function Qm(e){if("function"!==typeof e)throw new Error;return e}function $m(){return 0}function Km(e){return function(){return e}}function Ym(e){return Math.sqrt(e.value)}function Xm(){var e=null,t=1,n=1,r=$m;function i(i){return i.x=t/2,i.y=n/2,e?i.eachBefore(Zm(e)).eachAfter(Jm(r,.5)).eachBefore(eg(1)):i.eachBefore(Zm(Ym)).eachAfter(Jm($m,1)).eachAfter(Jm(r,i.r/Math.min(t,n))).eachBefore(eg(Math.min(t,n)/(2*i.r))),i}return i.radius=function(t){return arguments.length?(e=null==(n=t)?null:Qm(n),i):e;var n},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(e){return arguments.length?(r="function"===typeof e?e:Km(+e),i):r},i}function Zm(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Jm(e,t){return function(n){if(r=n.children){var r,i,o,a=r.length,s=e(n)*t||0;if(s)for(i=0;i<a;++i)r[i].r+=s;if(o=Wm(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function eg(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function tg(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 ng(e,t,n,r,i){for(var o,a=e.children,s=-1,u=a.length,l=e.value&&(r-t)/e.value;++s<u;)(o=a[s]).y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function rg(){var e=1,t=1,n=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=n,i.x1=e,i.y1=t/o,i.eachBefore(function(e,t){return function(r){r.children&&ng(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var i=r.x0,o=r.y0,a=r.x1-n,s=r.y1-n;a<i&&(i=a=(i+a)/2),s<o&&(o=s=(o+s)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=s}}(t,o)),r&&i.eachBefore(tg),i}return i.round=function(e){return arguments.length?(r=!!e,i):r},i.size=function(n){return arguments.length?(e=+n[0],t=+n[1],i):[e,t]},i.padding=function(e){return arguments.length?(n=+e,i):n},i}lm.invert=function(e,t){for(var n,r=t,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=n=(r*(im+om*i+o*(am+sm*i))-t)/(im+3*om*i+o*(7*am+9*sm*i)))*r)*i*i,!(Oc(n)<kc));++a);return[um*e*(im+3*om*i+o*(7*am+9*sm*i))/Pc(r),Wc(zc(r)/um)]},fm.invert=qp(Tc),pm.invert=function(e,t){var n,r=t,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-t)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(Oc(n)>Ec&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},gm.invert=qp(Wc),vm.invert=qp((function(e){return 2*Tc(e)})),wm.invert=function(e,t){return[-t,2*Tc(Rc(e))-Ac]},Tm.prototype=Cm.prototype={constructor:Tm,count:function(){return this.eachAfter(Am)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],u=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++u,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(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}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(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},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Cm(this).eachBefore(Fm)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}};var ig={depth:-1},og={};function ag(e){return e.id}function sg(e){return e.parentId}function ug(){var e=ag,t=sg;function n(n){var r,i,o,a,s,u,l,c=Array.from(n),f=c.length,d=new Map;for(i=0;i<f;++i)r=c[i],s=c[i]=new Tm(r),null!=(u=e(r,i,n))&&(u+="")&&(l=s.id=u,d.set(l,d.has(l)?og:s)),null!=(u=t(r,i,n))&&(u+="")&&(s.parent=u);for(i=0;i<f;++i)if(u=(s=c[i]).parent){if(!(a=d.get(u)))throw new Error("missing: "+u);if(a===og)throw new Error("ambiguous: "+u);a.children?a.children.push(s):a.children=[s],s.parent=a}else{if(o)throw new Error("multiple roots");o=s}if(!o)throw new Error("no root");if(o.parent=ig,o.eachBefore((function(e){e.depth=e.parent.depth+1,--f})).eachBefore(Om),o.parent=null,f>0)throw new Error("cycle");return o}return n.id=function(t){return arguments.length?(e=Qm(t),n):e},n.parentId=function(e){return arguments.length?(t=Qm(e),n):t},n}function lg(e,t){return e.parent===t.parent?1:2}function cg(e){var t=e.children;return t?t[0]:e.t}function fg(e){var t=e.children;return t?t[t.length-1]:e.t}function dg(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function hg(e,t,n){return e.a.parent===t.parent?e.a:n}function pg(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function mg(){var e=lg,t=1,n=1,r=null;function i(i){var u=function(e){for(var t,n,r,i,o,a=new pg(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=t.children[i]=new pg(r[i],i)),n.parent=t;return(a.parent=new pg(null,0)).children=[a],a}(i);if(u.eachAfter(o),u.parent.m=-u.z,u.eachBefore(a),r)i.eachBefore(s);else{var l=i,c=i,f=i;i.eachBefore((function(e){e.x<l.x&&(l=e),e.x>c.x&&(c=e),e.depth>f.depth&&(f=e)}));var d=l===c?1:e(l,c)/2,h=d-l.x,p=t/(c.x+d+h),m=n/(f.depth||1);i.eachBefore((function(e){e.x=(e.x+h)*p,e.y=e.depth*m}))}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,s=n,u=o.parent.children[0],l=o.m,c=a.m,f=s.m,d=u.m;s=fg(s),o=cg(o),s&&o;)u=cg(u),(a=fg(a)).a=t,(i=s.z+f-o.z-l+e(s._,o._))>0&&(dg(hg(s,t,r),t,i),l+=i,c+=i),f+=s.m,l+=o.m,d+=u.m,c+=a.m;s&&!fg(a)&&(a.t=s,a.m+=f-c),o&&!cg(u)&&(u.t=o,u.m+=l-d,r=t)}return r}(t,i,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*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 gg(e,t,n,r,i){for(var o,a=e.children,s=-1,u=a.length,l=e.value&&(i-n)/e.value;++s<u;)(o=a[s]).x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}pg.prototype=Object.create(Tm.prototype);var yg=(1+Math.sqrt(5))/2;function vg(e,t,n,r,i,o){for(var a,s,u,l,c,f,d,h,p,m,g,y=[],v=t.children,b=0,w=0,_=v.length,x=t.value;b<_;){u=i-n,l=o-r;do{c=v[w++].value}while(!c&&w<_);for(f=d=c,g=c*c*(m=Math.max(l/u,u/l)/(x*e)),p=Math.max(d/g,g/f);w<_;++w){if(c+=s=v[w].value,s<f&&(f=s),s>d&&(d=s),g=c*c*m,(h=Math.max(d/g,g/f))>p){c-=s;break}p=h}y.push(a={value:c,dice:u<l,children:v.slice(b,w)}),a.dice?ng(a,n,r,i,x?r+=l*c/x:o):gg(a,n,r,x?n+=u*c/x:i,o),x-=c,b=w}return y}const bg=function e(t){function n(e,n,r,i,o){vg(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(yg);function wg(){var e=bg,t=!1,n=1,r=1,i=[0],o=$m,a=$m,s=$m,u=$m,l=$m;function c(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(f),i=[0],t&&e.eachBefore(tg),e}function f(t){var n=i[t.depth],r=t.x0+n,c=t.y0+n,f=t.x1-n,d=t.y1-n;f<r&&(r=f=(r+f)/2),d<c&&(c=d=(c+d)/2),t.x0=r,t.y0=c,t.x1=f,t.y1=d,t.children&&(n=i[t.depth+1]=o(t)/2,r+=l(t)-n,c+=a(t)-n,(f-=s(t)-n)<r&&(r=f=(r+f)/2),(d-=u(t)-n)<c&&(c=d=(c+d)/2),e(t,r,c,f,d))}return c.round=function(e){return arguments.length?(t=!!e,c):t},c.size=function(e){return arguments.length?(n=+e[0],r=+e[1],c):[n,r]},c.tile=function(t){return arguments.length?(e=Qm(t),c):e},c.padding=function(e){return arguments.length?c.paddingInner(e).paddingOuter(e):c.paddingInner()},c.paddingInner=function(e){return arguments.length?(o="function"===typeof e?e:Km(+e),c):o},c.paddingOuter=function(e){return arguments.length?c.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):c.paddingTop()},c.paddingTop=function(e){return arguments.length?(a="function"===typeof e?e:Km(+e),c):a},c.paddingRight=function(e){return arguments.length?(s="function"===typeof e?e:Km(+e),c):s},c.paddingBottom=function(e){return arguments.length?(u="function"===typeof e?e:Km(+e),c):u},c.paddingLeft=function(e){return arguments.length?(l="function"===typeof e?e:Km(+e),c):l},c}function _g(e,t,n,r,i){var o,a,s=e.children,u=s.length,l=new Array(u+1);for(l[0]=a=o=0;o<u;++o)l[o+1]=a+=s[o].value;!function e(t,n,r,i,o,a,u){if(t>=n-1){var c=s[t];return c.x0=i,c.y0=o,c.x1=a,void(c.y1=u)}var f=l[t],d=r/2+f,h=t+1,p=n-1;for(;h<p;){var m=h+p>>>1;l[m]<d?h=m+1:p=m}d-l[h-1]<l[h]-d&&t+1<h&&--h;var g=l[h]-f,y=r-g;if(a-i>u-o){var v=r?(i*y+a*g)/r:a;e(t,h,g,i,o,v,u),e(h,n,y,v,o,a,u)}else{var b=r?(o*y+u*g)/r:u;e(t,h,g,i,o,a,b),e(h,n,y,i,b,a,u)}}(0,u,e.value,t,n,r,i)}function xg(e,t,n,r,i){(1&e.depth?gg:ng)(e,t,n,r,i)}const Eg=function e(t){function n(e,n,r,i,o){if((a=e._squarify)&&a.ratio===t)for(var a,s,u,l,c,f=-1,d=a.length,h=e.value;++f<d;){for(u=(s=a[f]).children,l=s.value=0,c=u.length;l<c;++l)s.value+=u[l].value;s.dice?ng(s,n,r,i,h?r+=(o-r)*s.value/h:o):gg(s,n,r,h?n+=(i-n)*s.value/h:i,o),h-=s.value}else e._squarify=a=vg(t,e,n,r,i,o),a.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(yg);function kg(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function Sg(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return kg((n-r/t)*t,a,i,o,s)}}function Ag(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return kg((n-r/t)*t,i,o,a,s)}}const Cg=e=>()=>e;function Dg(e,t){return function(n){return e+n*t}}function Mg(e,t){var n=t-e;return n?Dg(e,n>180||n<-180?n-360*Math.round(n/360):n):Cg(isNaN(e)?t:e)}function Fg(e){return 1===(e=+e)?Og:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Cg(isNaN(t)?n:t)}}function Og(e,t){var n=t-e;return n?Dg(e,n):Cg(isNaN(e)?t:e)}const Tg=function e(t){var n=Fg(t);function r(e,t){var r=n((e=Go(e)).r,(t=Go(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Og(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Ng(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Go(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}var Pg=Ng(Sg),Ig=Ng(Ag);function Rg(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function jg(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Lg(e,t){return(jg(t)?Rg:Bg)(e,t)}function Bg(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Vg(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function zg(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ug(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Hg(e,t){var n,r={},i={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?r[n]=Vg(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var qg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gg=new RegExp(qg.source,"g");function Wg(e,t){var n,r,i,o=qg.lastIndex=Gg.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=qg.exec(e))&&(r=Gg.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Ug(n,r)})),o=Gg.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})}function Vg(e,t){var n,r=typeof t;return null==t||"boolean"===r?Cg(t):("number"===r?Ug:"string"===r?(n=zo(t))?(t=n,Tg):Wg:t instanceof zo?Tg:t instanceof Date?zg:jg(t)?Rg:Array.isArray(t)?Bg:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?Hg:Ug)(e,t)}function Qg(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function $g(e,t){var n=Mg(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}function Kg(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Yg,Xg=180/Math.PI,Zg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Jg(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*Xg,skewX:Math.atan(u)*Xg,scaleX:a,scaleY:s}}function ey(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],u=[];return o=e(o),a=e(a),function(e,r,i,o,a,s){if(e!==i||r!==o){var u=a.push("translate(",null,t,null,n);s.push({i:u-4,x:Ug(e,i)},{i:u-2,x:Ug(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,u),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Ug(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,u),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Ug(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,u),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Ug(e,n)},{i:s-2,x:Ug(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(e){for(var t,n=-1,r=u.length;++n<r;)s[(t=u[n]).i]=t.x(e);return s.join("")}}}var ty=ey((function(e){const t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Zg:Jg(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),ny=ey((function(e){return null==e?Zg:(Yg||(Yg=document.createElementNS("http://www.w3.org/2000/svg","g")),Yg.setAttribute("transform",e),(e=Yg.transform.baseVal.consolidate())?Jg((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Zg)}),", ",")",")");function ry(e){return((e=Math.exp(e))+1/e)/2}const iy=function e(t,n,r){function i(e,i){var o,a,s=e[0],u=e[1],l=e[2],c=i[0],f=i[1],d=i[2],h=c-s,p=f-u,m=h*h+p*p;if(m<1e-12)a=Math.log(d/l)/t,o=function(e){return[s+e*h,u+e*p,l*Math.exp(t*e*a)]};else{var g=Math.sqrt(m),y=(d*d-l*l+r*m)/(2*l*n*g),v=(d*d-l*l-r*m)/(2*d*n*g),b=Math.log(Math.sqrt(y*y+1)-y),w=Math.log(Math.sqrt(v*v+1)-v);a=(w-b)/t,o=function(e){var r=e*a,i=ry(b),o=l/(n*g)*(i*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+o*h,u+o*p,l*i/ry(t*r+b)]}}return o.duration=1e3*a*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4);function oy(e){return function(t,n){var r=e((t=Xo(t)).h,(n=Xo(n)).h),i=Og(t.s,n.s),o=Og(t.l,n.l),a=Og(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=i(e),t.l=o(e),t.opacity=a(e),t+""}}}const ay=oy(Mg);var sy=oy(Og);function uy(e,t){var n=Og((e=fa(e)).l,(t=fa(t)).l),r=Og(e.a,t.a),i=Og(e.b,t.b),o=Og(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=i(t),e.opacity=o(t),e+""}}function ly(e){return function(t,n){var r=e((t=ba(t)).h,(n=ba(n)).h),i=Og(t.c,n.c),o=Og(t.l,n.l),a=Og(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=o(e),t.opacity=a(e),t+""}}}const cy=ly(Mg);var fy=ly(Og);function dy(e){return function t(n){function r(t,r){var i=e((t=Fa(t)).h,(r=Fa(r)).h),o=Og(t.s,r.s),a=Og(t.l,r.l),s=Og(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}const hy=dy(Mg);var py=dy(Og);function my(e,t){void 0===t&&(t=e,e=Vg);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}function gy(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}function yy(e){for(var t,n=-1,r=e.length,i=e[r-1],o=0;++n<r;)t=i,i=e[n],o+=t[1]*i[0]-t[0]*i[1];return o/2}function vy(e){for(var t,n,r=-1,i=e.length,o=0,a=0,s=e[i-1],u=0;++r<i;)t=s,s=e[r],u+=n=t[0]*s[1]-s[0]*t[1],o+=(t[0]+s[0])*n,a+=(t[1]+s[1])*n;return[o/(u*=3),a/u]}function by(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function wy(e,t){return e[0]-t[0]||e[1]-t[1]}function _y(e){const t=e.length,n=[0,1];let r,i=2;for(r=2;r<t;++r){for(;i>1&&by(e[n[i-2]],e[n[i-1]],e[r])<=0;)--i;n[i++]=r}return n.slice(0,i)}function xy(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),i=new Array(n);for(t=0;t<n;++t)r[t]=[+e[t][0],+e[t][1],t];for(r.sort(wy),t=0;t<n;++t)i[t]=[r[t][0],-r[t][1]];var o=_y(r),a=_y(i),s=a[0]===o[0],u=a[a.length-1]===o[o.length-1],l=[];for(t=o.length-1;t>=0;--t)l.push(e[r[o[t]][2]]);for(t=+s;t<a.length-u;++t)l.push(e[r[a[t]][2]]);return l}function Ey(e,t){for(var n,r,i=e.length,o=e[i-1],a=t[0],s=t[1],u=o[0],l=o[1],c=!1,f=0;f<i;++f)n=(o=e[f])[0],(r=o[1])>s!==l>s&&a<(u-n)*(s-r)/(l-r)+n&&(c=!c),u=n,l=r;return c}function ky(e){for(var t,n,r=-1,i=e.length,o=e[i-1],a=o[0],s=o[1],u=0;++r<i;)t=a,n=s,t-=a=(o=e[r])[0],n-=s=o[1],u+=Math.hypot(t,n);return u}const Sy=Math.random,Ay=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(Sy),Cy=function e(t){function n(e,n){return arguments.length<2&&(n=e,e=0),e=Math.floor(e),n=Math.floor(n)-e,function(){return Math.floor(t()*n+e)}}return n.source=e,n}(Sy),Dy=function e(t){function n(e,n){var r,i;return e=null==e?0:+e,n=null==n?1:+n,function(){var o;if(null!=r)o=r,r=null;else do{r=2*t()-1,o=2*t()-1,i=r*r+o*o}while(!i||i>1);return e+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=e,n}(Sy),My=function e(t){var n=Dy.source(t);function r(){var e=n.apply(this,arguments);return function(){return Math.exp(e())}}return r.source=e,r}(Sy),Fy=function e(t){function n(e){return(e=+e)<=0?()=>0:function(){for(var n=0,r=e;r>1;--r)n+=t();return n+r*t()}}return n.source=e,n}(Sy),Oy=function e(t){var n=Fy.source(t);function r(e){if(0===(e=+e))return t;var r=n(e);return function(){return r()/e}}return r.source=e,r}(Sy),Ty=function e(t){function n(e){return function(){return-Math.log1p(-t())/e}}return n.source=e,n}(Sy),Ny=function e(t){function n(e){if((e=+e)<0)throw new RangeError("invalid alpha");return e=1/-e,function(){return Math.pow(1-t(),e)}}return n.source=e,n}(Sy),Py=function e(t){function n(e){if((e=+e)<0||e>1)throw new RangeError("invalid p");return function(){return Math.floor(t()+e)}}return n.source=e,n}(Sy),Iy=function e(t){function n(e){if((e=+e)<0||e>1)throw new RangeError("invalid p");return 0===e?()=>1/0:1===e?()=>1:(e=Math.log1p(-e),function(){return 1+Math.floor(Math.log1p(-t())/e)})}return n.source=e,n}(Sy),Ry=function e(t){var n=Dy.source(t)();function r(e,r){if((e=+e)<0)throw new RangeError("invalid k");if(0===e)return()=>0;if(r=null==r?1:+r,1===e)return()=>-Math.log1p(-t())*r;var i=(e<1?e+1:e)-1/3,o=1/(3*Math.sqrt(i)),a=e<1?()=>Math.pow(t(),1/e):()=>1;return function(){do{do{var e=n(),s=1+o*e}while(s<=0);s*=s*s;var u=1-t()}while(u>=1-.0331*e*e*e*e&&Math.log(u)>=.5*e*e+i*(1-s+Math.log(s)));return i*s*a()*r}}return r.source=e,r}(Sy),jy=function e(t){var n=Ry.source(t);function r(e,t){var r=n(e),i=n(t);return function(){var e=r();return 0===e?0:e/(e+i())}}return r.source=e,r}(Sy),Ly=function e(t){var n=Iy.source(t),r=jy.source(t);function i(e,t){return e=+e,(t=+t)>=1?()=>e:t<=0?()=>0:function(){for(var i=0,o=e,a=t;o*a>16&&o*(1-a)>16;){var s=Math.floor((o+1)*a),u=r(s,o-s+1)();u<=a?(i+=s,o-=s,a=(a-u)/(1-u)):(o=s-1,a/=u)}for(var l=a<.5,c=n(l?a:1-a),f=c(),d=0;f<=o;++d)f+=c();return i+(l?d:o-d)}}return i.source=e,i}(Sy),By=function e(t){function n(e,n,r){var i;return 0===(e=+e)?i=e=>-Math.log(e):(e=1/e,i=t=>Math.pow(t,e)),n=null==n?0:+n,r=null==r?1:+r,function(){return n+r*i(-Math.log1p(-t()))}}return n.source=e,n}(Sy),zy=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,function(){return e+n*Math.tan(Math.PI*t())}}return n.source=e,n}(Sy),Uy=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,function(){var r=t();return e+n*Math.log(r/(1-r))}}return n.source=e,n}(Sy),Hy=function e(t){var n=Ry.source(t),r=Ly.source(t);function i(e){return function(){for(var i=0,o=e;o>16;){var a=Math.floor(.875*o),s=n(a)();if(s>o)return i+r(a-1,o/s)();i+=a,o-=s}for(var u=-Math.log1p(-t()),l=0;u<=o;++l)u-=Math.log1p(-t());return i+l}}return i.source=e,i}(Sy),qy=1664525,Gy=1013904223,Wy=1/4294967296;function Vy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Math.random(),t=0|(0<=e&&e<1?e/Wy:Math.abs(e));return()=>(t=qy*t+Gy|0,Wy*(t>>>0))}function Qy(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function $y(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}const Ky=Symbol("implicit");function Yy(){var e=new Map,t=[],n=[],r=Ky;function i(i){var o=i+"",a=e.get(o);if(!a){if(r!==Ky)return r;e.set(o,a=t.push(i))}return n[(a-1)%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;for(const r of n){const n=r+"";e.has(n)||e.set(n,t.push(r))}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 Yy(t,n).unknown(r)},Qy.apply(i,arguments),i}function Xy(){var e,t,n=Yy().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,u=0,l=0,c=.5;function f(){var n=r().length,f=a<o,d=f?a:o,h=f?o:a;e=(h-d)/Math.max(1,n-u+2*l),s&&(e=Math.floor(e)),d+=(h-d-e*(n-u))*c,t=e*(1-u),s&&(d=Math.round(d),t=Math.round(t));var p=function(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=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}(n).map((function(t){return d+e*t}));return i(f?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,f()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,s=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,f()):s},n.padding=function(e){return arguments.length?(u=Math.min(1,l=+e),f()):u},n.paddingInner=function(e){return arguments.length?(u=Math.min(1,e),f()):u},n.paddingOuter=function(e){return arguments.length?(l=+e,f()):l},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),f()):c},n.copy=function(){return Xy(r(),[o,a]).round(s).paddingInner(u).paddingOuter(l).align(c)},Qy.apply(f(),arguments)}function Zy(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Zy(t())},e}function Jy(){return Zy(Xy.apply(null,arguments).paddingInner(1))}var ev=Math.sqrt(50),tv=Math.sqrt(10),nv=Math.sqrt(2);function rv(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=iv(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)/a}return r&&o.reverse(),o}function iv(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=ev?10:o>=tv?5:o>=nv?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=ev?10:o>=tv?5:o>=nv?2:1)}function ov(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function av(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>ov(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}function sv(e){return null===e?NaN:+e}const uv=av(ov),lv=uv.right,cv=(uv.left,av(sv).center,lv);function fv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function dv(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function hv(){}var pv=.7,mv=1.4285714285714286,gv="\\s*([+-]?\\d+)\\s*",yv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",vv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bv=/^#([0-9a-f]{3,8})$/,wv=new RegExp("^rgb\\("+[gv,gv,gv]+"\\)$"),_v=new RegExp("^rgb\\("+[vv,vv,vv]+"\\)$"),xv=new RegExp("^rgba\\("+[gv,gv,gv,yv]+"\\)$"),Ev=new RegExp("^rgba\\("+[vv,vv,vv,yv]+"\\)$"),kv=new RegExp("^hsl\\("+[yv,vv,vv]+"\\)$"),Sv=new RegExp("^hsla\\("+[yv,vv,vv,yv]+"\\)$"),Av={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Cv(){return this.rgb().formatHex()}function Dv(){return this.rgb().formatRgb()}function Mv(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=bv.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Fv(t):3===n?new Nv(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ov(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ov(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=wv.exec(e))?new Nv(t[1],t[2],t[3],1):(t=_v.exec(e))?new Nv(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=xv.exec(e))?Ov(t[1],t[2],t[3],t[4]):(t=Ev.exec(e))?Ov(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=kv.exec(e))?jv(t[1],t[2]/100,t[3]/100,1):(t=Sv.exec(e))?jv(t[1],t[2]/100,t[3]/100,t[4]):Av.hasOwnProperty(e)?Fv(Av[e]):"transparent"===e?new Nv(NaN,NaN,NaN,0):null}function Fv(e){return new Nv(e>>16&255,e>>8&255,255&e,1)}function Ov(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nv(e,t,n,r)}function Tv(e,t,n,r){return 1===arguments.length?((i=e)instanceof hv||(i=Mv(i)),i?new Nv((i=i.rgb()).r,i.g,i.b,i.opacity):new Nv):new Nv(e,t,n,null==r?1:r);var i}function Nv(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Pv(){return"#"+Rv(this.r)+Rv(this.g)+Rv(this.b)}function Iv(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Rv(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function jv(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Bv(e,t,n,r)}function Lv(e){if(e instanceof Bv)return new Bv(e.h,e.s,e.l,e.opacity);if(e instanceof hv||(e=Mv(e)),!e)return new Bv;if(e instanceof Bv)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new Bv(a,s,u,e.opacity)}function Bv(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function zv(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Uv(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}fv(hv,Mv,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Cv,formatHex:Cv,formatHsl:function(){return Lv(this).formatHsl()},formatRgb:Dv,toString:Dv}),fv(Nv,Tv,dv(hv,{brighter:function(e){return e=null==e?mv:Math.pow(mv,e),new Nv(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?pv:Math.pow(pv,e),new Nv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Pv,formatHex:Pv,formatRgb:Iv,toString:Iv})),fv(Bv,(function(e,t,n,r){return 1===arguments.length?Lv(e):new Bv(e,t,n,null==r?1:r)}),dv(hv,{brighter:function(e){return e=null==e?mv:Math.pow(mv,e),new Bv(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?pv:Math.pow(pv,e),new Bv(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),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 Nv(zv(e>=240?e-240:e+120,i,r),zv(e,i,r),zv(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const Hv=e=>()=>e;function qv(e,t){return function(n){return e+n*t}}function Gv(e){return 1===(e=+e)?Wv:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Hv(isNaN(t)?n:t)}}function Wv(e,t){var n=t-e;return n?qv(e,n):Hv(isNaN(e)?t:e)}const Vv=function e(t){var n=Gv(t);function r(e,t){var r=n((e=Tv(e)).r,(t=Tv(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Wv(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Qv(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Tv(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}Qv((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return Uv((n-r/t)*t,a,i,o,s)}})),Qv((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return Uv((n-r/t)*t,i,o,a,s)}}));function $v(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=nb(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function Kv(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Yv(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Xv(e,t){var n,r={},i={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?r[n]=nb(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var Zv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Jv=new RegExp(Zv.source,"g");function eb(e,t){var n,r,i,o=Zv.lastIndex=Jv.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=Zv.exec(e))&&(r=Jv.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Yv(n,r)})),o=Jv.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})}function tb(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function nb(e,t){var n,r=typeof t;return null==t||"boolean"===r?Hv(t):("number"===r?Yv:"string"===r?(n=Mv(t))?(t=n,Vv):eb:t instanceof Mv?Vv:t instanceof Date?Kv:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?tb:Array.isArray(t)?$v:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?Xv:Yv)(e,t)}function rb(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function ib(e){return+e}var ob=[0,1];function ab(e){return e}function sb(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function ub(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=sb(i,r),o=n(a,o)):(r=sb(r,i),o=n(o,a)),function(e){return o(r(e))}}function lb(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=sb(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=cv(e,t,1,r)-1;return o[n](i[n](t))}}function cb(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function fb(){var e,t,n,r,i,o,a=ob,s=ob,u=nb,l=ab;function c(){var e=Math.min(a.length,s.length);return l!==ab&&(l=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?lb:ub,i=o=null,f}function f(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,u)))(e(l(t)))}return f.invert=function(n){return l(t((o||(o=r(s,a.map(e),Yv)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,ib),c()):a.slice()},f.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},f.rangeRound=function(e){return s=Array.from(e),u=rb,c()},f.clamp=function(e){return arguments.length?(l=!!e||ab,c()):l!==ab},f.interpolate=function(e){return arguments.length?(u=e,c()):u},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,c()}}function db(){return fb()(ab,ab)}function hb(e,t,n,r){var i,o=function(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=ev?i*=10:o>=tv?i*=5:o>=nv&&(i*=2),t<e?-i:i}(e,t,n);switch((r=sc(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=wc(o,a))||(r.precision=i),pc(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=_c(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=bc(o))||(r.precision=i-2*("%"===r.type))}return hc(r)}function pb(e){var t=e.domain;return e.ticks=function(e){var n=t();return rv(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return hb(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,u=o[a],l=o[s],c=10;for(l<u&&(i=u,u=l,l=i,i=a,a=s,s=i);c-- >0;){if((i=iv(u,l,n))===r)return o[a]=u,o[s]=l,t(o);if(i>0)u=Math.floor(u/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,l=Math.floor(l*i)/i}r=i}return e},e}function mb(){var e=db();return e.copy=function(){return cb(e,mb())},Qy.apply(e,arguments),pb(e)}function gb(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,ib),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return gb(e).unknown(t)},e=arguments.length?Array.from(e,ib):[0,1],pb(n)}function yb(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function vb(e){return Math.log(e)}function bb(e){return Math.exp(e)}function wb(e){return-Math.log(-e)}function _b(e){return-Math.exp(-e)}function xb(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Eb(e){return function(t){return-e(-t)}}function kb(e){var t,n,r=e(vb,bb),i=r.domain,o=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(o),n=function(e){return 10===e?xb:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(o),i()[0]<0?(t=Eb(t),n=Eb(n),e(wb,_b)):e(vb,bb),r}return r.base=function(e){return arguments.length?(o=+e,a()):o},r.domain=function(e){return arguments.length?(i(e),a()):i()},r.ticks=function(e){var r,a=i(),s=a[0],u=a[a.length-1];(r=u<s)&&(d=s,s=u,u=d);var l,c,f,d=t(s),h=t(u),p=null==e?10:+e,m=[];if(!(o%1)&&h-d<p){if(d=Math.floor(d),h=Math.ceil(h),s>0){for(;d<=h;++d)for(c=1,l=n(d);c<o;++c)if(!((f=l*c)<s)){if(f>u)break;m.push(f)}}else for(;d<=h;++d)for(c=o-1,l=n(d);c>=1;--c)if(!((f=l*c)<s)){if(f>u)break;m.push(f)}2*m.length<p&&(m=rv(s,u,p))}else m=rv(d,h,Math.min(h-d,p)).map(n);return r?m.reverse():m},r.tickFormat=function(e,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=hc(i)),e===1/0)return i;null==e&&(e=10);var a=Math.max(1,o*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*o<o-.5&&(r*=o),r<=a?i(e):""}},r.nice=function(){return i(yb(i(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function Sb(){var e=kb(fb()).domain([1,10]);return e.copy=function(){return cb(e,Sb()).base(e.base())},Qy.apply(e,arguments),e}function Ab(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Cb(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Db(e){var t=1,n=e(Ab(t),Cb(t));return n.constant=function(n){return arguments.length?e(Ab(t=+n),Cb(t)):t},pb(n)}function Mb(){var e=Db(fb());return e.copy=function(){return cb(e,Mb()).constant(e.constant())},Qy.apply(e,arguments)}function Fb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Ob(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Tb(e){return e<0?-e*e:e*e}function Nb(e){var t=e(ab,ab),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(ab,ab):.5===n?e(Ob,Tb):e(Fb(n),Fb(1/n)):n},pb(t)}function Pb(){var e=Nb(fb());return e.copy=function(){return cb(e,Pb()).exponent(e.exponent())},Qy.apply(e,arguments),e}function Ib(){return Pb.apply(null,arguments).exponent(.5)}function Rb(e){return Math.sign(e)*e*e}function jb(){var e,t=db(),n=[0,1],r=!1;function i(n){var i=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(n));return isNaN(i)?e:r?Math.round(i):i}return i.invert=function(e){return t.invert(Rb(e))},i.domain=function(e){return arguments.length?(t.domain(e),i):t.domain()},i.range=function(e){return arguments.length?(t.range((n=Array.from(e,ib)).map(Rb)),i):n.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(r=!!e,i):r},i.clamp=function(e){return arguments.length?(t.clamp(e),i):t.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return jb(t.domain(),n).round(r).clamp(t.clamp()).unknown(e)},Qy.apply(i,arguments),pb(i)}function Lb(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function Bb(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function zb(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length-1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:ov;for(;r>n;){if(r-n>600){const o=r-n+1,a=t-n+1,s=Math.log(o),u=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*u*(o-u)/o)*(a-o/2<0?-1:1);zb(e,t,Math.max(n,Math.floor(t-a*u/o+l)),Math.min(r,Math.floor(t+(o-a)*u/o+l)),i)}const o=e[t];let a=n,s=r;for(Ub(e,n,t),i(e[r],o)>0&&Ub(e,n,r);a<s;){for(Ub(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}0===i(e[n],o)?Ub(e,n,s):(++s,Ub(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Ub(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Hb(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let n of e)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),r=e.length){if((t=+t)<=0||r<2)return Bb(e);if(t>=1)return Lb(e);var r,i=(r-1)*t,o=Math.floor(i),a=Lb(zb(e,o).subarray(0,o+1));return a+(Bb(e.subarray(o+1))-a)*(i-o)}}function qb(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:sv;if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}function Gb(){var e,t=[],n=[],r=[];function i(){var e=0,i=Math.max(1,n.length);for(r=new Array(i-1);++e<i;)r[e-1]=qb(t,e/i);return o}function o(t){return null==t||isNaN(t=+t)?e:n[cv(r,t)]}return o.invertExtent=function(e){var i=n.indexOf(e);return i<0?[NaN,NaN]:[i>0?r[i-1]:t[0],i<r.length?r[i]:t[t.length-1]]},o.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(ov),i()},o.range=function(e){return arguments.length?(n=Array.from(e),i()):n.slice()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.quantiles=function(){return r.slice()},o.copy=function(){return Gb().domain(t).range(n).unknown(e)},Qy.apply(o,arguments)}function Wb(){var e,t=0,n=1,r=1,i=[.5],o=[0,1];function a(t){return null!=t&&t<=t?o[cv(i,t,0,r)]:e}function s(){var e=-1;for(i=new Array(r);++e<r;)i[e]=((e+1)*n-(e-r)*t)/(r+1);return a}return a.domain=function(e){return arguments.length?([t,n]=e,t=+t,n=+n,s()):[t,n]},a.range=function(e){return arguments.length?(r=(o=Array.from(e)).length-1,s()):o.slice()},a.invertExtent=function(e){var a=o.indexOf(e);return a<0?[NaN,NaN]:a<1?[t,i[0]]:a>=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Wb().domain([t,n]).range(o).unknown(e)},Qy.apply(pb(a),arguments)}function Vb(){var e,t=[.5],n=[0,1],r=1;function i(i){return null!=i&&i<=i?n[cv(t,i,0,r)]:e}return i.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),i):t.slice()},i.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return Vb().domain(t).range(n).unknown(e)},Qy.apply(i,arguments)}function Qb(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}var $b=Math.sqrt(50),Kb=Math.sqrt(10),Yb=Math.sqrt(2);function Xb(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=$b?i*=10:o>=Kb?i*=5:o>=Yb&&(i*=2),t<e?-i:i}const Zb=1e3,Jb=6e4,ew=36e5,tw=864e5,nw=6048e5,rw=2592e6,iw=31536e6;var ow=new Date,aw=new Date;function sw(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return sw((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(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=function(t,r){return ow.setTime(+t),aw.setTime(+r),e(ow),e(aw),Math.floor(n(ow,aw))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i:null}),i}var uw=sw((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));uw.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?sw((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):uw:null};const lw=uw;var cw=uw.range,fw=sw((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Zb)}),(function(e,t){return(t-e)/Zb}),(function(e){return e.getUTCSeconds()}));const dw=fw;var hw=fw.range,pw=sw((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zb)}),(function(e,t){e.setTime(+e+t*Jb)}),(function(e,t){return(t-e)/Jb}),(function(e){return e.getMinutes()}));const mw=pw;var gw=pw.range,yw=sw((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zb-e.getMinutes()*Jb)}),(function(e,t){e.setTime(+e+t*ew)}),(function(e,t){return(t-e)/ew}),(function(e){return e.getHours()}));const vw=yw;var bw=yw.range,ww=sw((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Jb)/tw),(e=>e.getDate()-1));const _w=ww;var xw=ww.range;function Ew(e){return sw((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Jb)/nw}))}var kw=Ew(0),Sw=Ew(1),Aw=Ew(2),Cw=Ew(3),Dw=Ew(4),Mw=Ew(5),Fw=Ew(6),Ow=kw.range,Tw=Sw.range,Nw=Aw.range,Pw=Cw.range,Iw=Dw.range,Rw=Mw.range,jw=Fw.range,Lw=sw((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));const Bw=Lw;var zw=Lw.range,Uw=sw((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));Uw.every=function(e){return isFinite(e=Math.floor(e))&&e>0?sw((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};const Hw=Uw;var qw=Uw.range,Gw=sw((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Jb)}),(function(e,t){return(t-e)/Jb}),(function(e){return e.getUTCMinutes()}));const Ww=Gw;var Vw=Gw.range,Qw=sw((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*ew)}),(function(e,t){return(t-e)/ew}),(function(e){return e.getUTCHours()}));const $w=Qw;var Kw=Qw.range,Yw=sw((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/tw}),(function(e){return e.getUTCDate()-1}));const Xw=Yw;var Zw=Yw.range;function Jw(e){return sw((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/nw}))}var e_=Jw(0),t_=Jw(1),n_=Jw(2),r_=Jw(3),i_=Jw(4),o_=Jw(5),a_=Jw(6),s_=e_.range,u_=t_.range,l_=n_.range,c_=r_.range,f_=i_.range,d_=o_.range,h_=a_.range,p_=sw((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));const m_=p_;var g_=p_.range,y_=sw((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));y_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?sw((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};const v_=y_;var b_=y_.range;function w_(e,t,n,r,i,o){const a=[[dw,1,Zb],[dw,5,5e3],[dw,15,15e3],[dw,30,3e4],[o,1,Jb],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,ew],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,tw],[r,2,1728e5],[n,1,nw],[t,1,rw],[t,3,7776e6],[e,1,iw]];function s(t,n,r){const i=Math.abs(n-t)/r,o=Qb((e=>{let[,,t]=e;return t})).right(a,i);if(o===a.length)return e.every(Xb(t/iw,n/iw,r));if(0===o)return lw.every(Math.max(Xb(t,n,r),1));const[s,u]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(u)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"===typeof n.range?n:s(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},s]}const[__,x_]=w_(v_,m_,e_,Xw,$w,Ww),[E_,k_]=w_(Hw,Bw,kw,_w,vw,mw);function S_(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 A_(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 C_(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function D_(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,l=z_(i),c=U_(i),f=z_(o),d=U_(o),h=z_(a),p=U_(a),m=z_(s),g=U_(s),y=z_(u),v=U_(u),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:ux,e:ux,f:hx,g:kx,G:Ax,H:lx,I:cx,j:fx,L:dx,m:px,M:mx,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Kx,s:Yx,S:gx,u:yx,U:vx,V:wx,w:_x,W:xx,x:null,X:null,y:Ex,Y:Sx,Z:Cx,"%":$x},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Dx,e:Dx,f:Nx,g:Gx,G:Vx,H:Mx,I:Fx,j:Ox,L:Tx,m:Px,M:Ix,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Kx,s:Yx,S:Rx,u:jx,U:Lx,V:zx,w:Ux,W:Hx,x:null,X:null,y:qx,Y:Wx,Z:Qx,"%":$x},_={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:Z_,e:Z_,f:ix,g:$_,G:Q_,H:ex,I:ex,j:J_,L:rx,m:X_,M:tx,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:Y_,Q:ax,s:sx,S:nx,u:q_,U:G_,V:W_,w:H_,W:V_,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:$_,Y:Q_,Z:K_,"%":ox};function x(e,t){return function(n){var r,i,o,a=[],s=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===e.charCodeAt(s)&&(a.push(e.slice(u,s)),null!=(i=P_[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),u=s+1);return a.push(e.slice(u,s)),a.join("")}}function E(e,t){return function(n){var r,i,o=C_(1900,void 0,1);if(k(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=A_(C_(o.y,0,1))).getUTCDay(),r=i>4||0===i?t_.ceil(r):t_(r),r=Xw.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=S_(C_(o.y,0,1))).getDay(),r=i>4||0===i?Sw.ceil(r):Sw(r),r=_w.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?A_(C_(o.y,0,1)).getUTCDay():S_(C_(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,A_(o)):S_(o)}}function k(e,t,n,r){for(var i,o,a=0,s=t.length,u=n.length;a<s;){if(r>=u)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=_[i in P_?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=x(n,b),b.X=x(r,b),b.c=x(t,b),w.x=x(n,w),w.X=x(r,w),w.c=x(t,w),{format:function(e){var t=x(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e+="",!0);return t.toString=function(){return e},t}}}var M_,F_,O_,T_,N_,P_={"-":"",_:" ",0:"0"},I_=/^\s*\d+/,R_=/^%/,j_=/[\\^$*+?|[\]().{}]/g;function L_(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function B_(e){return e.replace(j_,"\\$&")}function z_(e){return new RegExp("^(?:"+e.map(B_).join("|")+")","i")}function U_(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function H_(e,t,n){var r=I_.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function q_(e,t,n){var r=I_.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function G_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function W_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function V_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Q_(e,t,n){var r=I_.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function $_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function K_(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 Y_(e,t,n){var r=I_.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function X_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Z_(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function J_(e,t,n){var r=I_.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ex(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function tx(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function nx(e,t,n){var r=I_.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function rx(e,t,n){var r=I_.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ix(e,t,n){var r=I_.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ox(e,t,n){var r=R_.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ax(e,t,n){var r=I_.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function sx(e,t,n){var r=I_.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ux(e,t){return L_(e.getDate(),t,2)}function lx(e,t){return L_(e.getHours(),t,2)}function cx(e,t){return L_(e.getHours()%12||12,t,2)}function fx(e,t){return L_(1+_w.count(Hw(e),e),t,3)}function dx(e,t){return L_(e.getMilliseconds(),t,3)}function hx(e,t){return dx(e,t)+"000"}function px(e,t){return L_(e.getMonth()+1,t,2)}function mx(e,t){return L_(e.getMinutes(),t,2)}function gx(e,t){return L_(e.getSeconds(),t,2)}function yx(e){var t=e.getDay();return 0===t?7:t}function vx(e,t){return L_(kw.count(Hw(e)-1,e),t,2)}function bx(e){var t=e.getDay();return t>=4||0===t?Dw(e):Dw.ceil(e)}function wx(e,t){return e=bx(e),L_(Dw.count(Hw(e),e)+(4===Hw(e).getDay()),t,2)}function _x(e){return e.getDay()}function xx(e,t){return L_(Sw.count(Hw(e)-1,e),t,2)}function Ex(e,t){return L_(e.getFullYear()%100,t,2)}function kx(e,t){return L_((e=bx(e)).getFullYear()%100,t,2)}function Sx(e,t){return L_(e.getFullYear()%1e4,t,4)}function Ax(e,t){var n=e.getDay();return L_((e=n>=4||0===n?Dw(e):Dw.ceil(e)).getFullYear()%1e4,t,4)}function Cx(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+L_(t/60|0,"0",2)+L_(t%60,"0",2)}function Dx(e,t){return L_(e.getUTCDate(),t,2)}function Mx(e,t){return L_(e.getUTCHours(),t,2)}function Fx(e,t){return L_(e.getUTCHours()%12||12,t,2)}function Ox(e,t){return L_(1+Xw.count(v_(e),e),t,3)}function Tx(e,t){return L_(e.getUTCMilliseconds(),t,3)}function Nx(e,t){return Tx(e,t)+"000"}function Px(e,t){return L_(e.getUTCMonth()+1,t,2)}function Ix(e,t){return L_(e.getUTCMinutes(),t,2)}function Rx(e,t){return L_(e.getUTCSeconds(),t,2)}function jx(e){var t=e.getUTCDay();return 0===t?7:t}function Lx(e,t){return L_(e_.count(v_(e)-1,e),t,2)}function Bx(e){var t=e.getUTCDay();return t>=4||0===t?i_(e):i_.ceil(e)}function zx(e,t){return e=Bx(e),L_(i_.count(v_(e),e)+(4===v_(e).getUTCDay()),t,2)}function Ux(e){return e.getUTCDay()}function Hx(e,t){return L_(t_.count(v_(e)-1,e),t,2)}function qx(e,t){return L_(e.getUTCFullYear()%100,t,2)}function Gx(e,t){return L_((e=Bx(e)).getUTCFullYear()%100,t,2)}function Wx(e,t){return L_(e.getUTCFullYear()%1e4,t,4)}function Vx(e,t){var n=e.getUTCDay();return L_((e=n>=4||0===n?i_(e):i_.ceil(e)).getUTCFullYear()%1e4,t,4)}function Qx(){return"+0000"}function $x(){return"%"}function Kx(e){return+e}function Yx(e){return Math.floor(+e/1e3)}function Xx(e){return M_=D_(e),F_=M_.format,O_=M_.parse,T_=M_.utcFormat,N_=M_.utcParse,M_}function Zx(e){return new Date(e)}function Jx(e){return e instanceof Date?+e:+new Date(+e)}function eE(e,t,n,r,i,o,a,s,u,l){var c=db(),f=c.invert,d=c.domain,h=l(".%L"),p=l(":%S"),m=l("%I:%M"),g=l("%I %p"),y=l("%a %d"),v=l("%b %d"),b=l("%B"),w=l("%Y");function _(e){return(u(e)<e?h:s(e)<e?p:a(e)<e?m:o(e)<e?g:r(e)<e?i(e)<e?y:v:n(e)<e?b:w)(e)}return c.invert=function(e){return new Date(f(e))},c.domain=function(e){return arguments.length?d(Array.from(e,Jx)):d().map(Zx)},c.ticks=function(t){var n=d();return e(n[0],n[n.length-1],null==t?10:t)},c.tickFormat=function(e,t){return null==t?_:l(t)},c.nice=function(e){var n=d();return e&&"function"===typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?d(yb(n,e)):c},c.copy=function(){return cb(c,eE(e,t,n,r,i,o,a,s,u,l))},c}function tE(){return Qy.apply(eE(E_,k_,Hw,Bw,kw,_w,vw,mw,dw,F_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function nE(){return Qy.apply(eE(__,x_,v_,m_,e_,Xw,$w,Ww,dw,T_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function rE(){var e,t,n,r,i,o=0,a=1,s=ab,u=!1;function l(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,u?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),l):[s(0),s(1)]}}return l.domain=function(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),l):[o,a]},l.clamp=function(e){return arguments.length?(u=!!e,l):u},l.interpolator=function(e){return arguments.length?(s=e,l):s},l.range=c(nb),l.rangeRound=c(rb),l.unknown=function(e){return arguments.length?(i=e,l):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),l}}function iE(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function oE(){var e=pb(rE()(ab));return e.copy=function(){return iE(e,oE())},$y.apply(e,arguments)}function aE(){var e=kb(rE()).domain([1,10]);return e.copy=function(){return iE(e,aE()).base(e.base())},$y.apply(e,arguments)}function sE(){var e=Db(rE());return e.copy=function(){return iE(e,sE()).constant(e.constant())},$y.apply(e,arguments)}function uE(){var e=Nb(rE());return e.copy=function(){return iE(e,uE()).exponent(e.exponent())},$y.apply(e,arguments)}function lE(){return uE.apply(null,arguments).exponent(.5)}function cE(){var e=[],t=ab;function n(n){if(null!=n&&!isNaN(n=+n))return t((cv(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(ov),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map(((n,r)=>t(r/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((n,r)=>Hb(e,r/t)))},n.copy=function(){return cE(t).domain(e)},$y.apply(n,arguments)}function fE(){var e,t,n,r,i,o,a,s=0,u=.5,l=1,c=1,f=ab,d=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(c*e<c*t?r:i),f(d?Math.max(0,Math.min(1,e)):e))}function p(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,f=function(e,t){void 0===t&&(t=e,e=nb);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}(e,[n,r,i]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([s,u,l]=a,e=o(s=+s),t=o(u=+u),n=o(l=+l),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),c=t<e?-1:1,h):[s,u,l]},h.clamp=function(e){return arguments.length?(d=!!e,h):d},h.interpolator=function(e){return arguments.length?(f=e,h):f},h.range=p(nb),h.rangeRound=p(rb),h.unknown=function(e){return arguments.length?(a=e,h):a},function(a){return o=a,e=a(s),t=a(u),n=a(l),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),c=t<e?-1:1,h}}function dE(){var e=pb(fE()(ab));return e.copy=function(){return iE(e,dE())},$y.apply(e,arguments)}function hE(){var e=kb(fE()).domain([.1,1,10]);return e.copy=function(){return iE(e,hE()).base(e.base())},$y.apply(e,arguments)}function pE(){var e=Db(fE());return e.copy=function(){return iE(e,pE()).constant(e.constant())},$y.apply(e,arguments)}function mE(){var e=Nb(fE());return e.copy=function(){return iE(e,mE()).exponent(e.exponent())},$y.apply(e,arguments)}function gE(){return mE.apply(null,arguments).exponent(.5)}function yE(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}Xx({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"]});const vE=yE("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),bE=yE("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),wE=yE("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),_E=yE("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),xE=yE("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),EE=yE("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),kE=yE("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),SE=yE("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),AE=yE("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),CE=yE("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function DE(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ME(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function FE(){}var OE=.7,TE=1.4285714285714286,NE="\\s*([+-]?\\d+)\\s*",PE="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",IE="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",RE=/^#([0-9a-f]{3,8})$/,jE=new RegExp("^rgb\\("+[NE,NE,NE]+"\\)$"),LE=new RegExp("^rgb\\("+[IE,IE,IE]+"\\)$"),BE=new RegExp("^rgba\\("+[NE,NE,NE,PE]+"\\)$"),zE=new RegExp("^rgba\\("+[IE,IE,IE,PE]+"\\)$"),UE=new RegExp("^hsl\\("+[PE,IE,IE]+"\\)$"),HE=new RegExp("^hsla\\("+[PE,IE,IE,PE]+"\\)$"),qE={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function GE(){return this.rgb().formatHex()}function WE(){return this.rgb().formatRgb()}function VE(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=RE.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?QE(t):3===n?new XE(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?$E(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?$E(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=jE.exec(e))?new XE(t[1],t[2],t[3],1):(t=LE.exec(e))?new XE(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=BE.exec(e))?$E(t[1],t[2],t[3],t[4]):(t=zE.exec(e))?$E(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=UE.exec(e))?tk(t[1],t[2]/100,t[3]/100,1):(t=HE.exec(e))?tk(t[1],t[2]/100,t[3]/100,t[4]):qE.hasOwnProperty(e)?QE(qE[e]):"transparent"===e?new XE(NaN,NaN,NaN,0):null}function QE(e){return new XE(e>>16&255,e>>8&255,255&e,1)}function $E(e,t,n,r){return r<=0&&(e=t=n=NaN),new XE(e,t,n,r)}function KE(e){return e instanceof FE||(e=VE(e)),e?new XE((e=e.rgb()).r,e.g,e.b,e.opacity):new XE}function YE(e,t,n,r){return 1===arguments.length?KE(e):new XE(e,t,n,null==r?1:r)}function XE(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ZE(){return"#"+ek(this.r)+ek(this.g)+ek(this.b)}function JE(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function ek(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function tk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rk(e,t,n,r)}function nk(e){if(e instanceof rk)return new rk(e.h,e.s,e.l,e.opacity);if(e instanceof FE||(e=VE(e)),!e)return new rk;if(e instanceof rk)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new rk(a,s,u,e.opacity)}function rk(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ik(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function ok(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}DE(FE,VE,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:GE,formatHex:GE,formatHsl:function(){return nk(this).formatHsl()},formatRgb:WE,toString:WE}),DE(XE,YE,ME(FE,{brighter:function(e){return e=null==e?TE:Math.pow(TE,e),new XE(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?OE:Math.pow(OE,e),new XE(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ZE,formatHex:ZE,formatRgb:JE,toString:JE})),DE(rk,(function(e,t,n,r){return 1===arguments.length?nk(e):new rk(e,t,n,null==r?1:r)}),ME(FE,{brighter:function(e){return e=null==e?TE:Math.pow(TE,e),new rk(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?OE:Math.pow(OE,e),new rk(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),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 XE(ik(e>=240?e-240:e+120,i,r),ik(e,i,r),ik(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const ak=e=>()=>e;function sk(e,t){return function(n){return e+n*t}}function uk(e){return 1===(e=+e)?lk:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ak(isNaN(t)?n:t)}}function lk(e,t){var n=t-e;return n?sk(e,n):ak(isNaN(e)?t:e)}(function e(t){var n=uk(t);function r(e,t){var r=n((e=YE(e)).r,(t=YE(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=lk(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r})(1);function ck(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=YE(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}var fk=ck((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return ok((n-r/t)*t,a,i,o,s)}}));ck((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return ok((n-r/t)*t,i,o,a,s)}}));const dk=e=>fk(e[e.length-1]);var hk=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(yE);const pk=dk(hk);var mk=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(yE);const gk=dk(mk);var yk=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(yE);const vk=dk(yk);var bk=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(yE);const wk=dk(bk);var _k=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(yE);const xk=dk(_k);var Ek=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(yE);const kk=dk(Ek);var Sk=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(yE);const Ak=dk(Sk);var Ck=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(yE);const Dk=dk(Ck);var Mk=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(yE);const Fk=dk(Mk);var Ok=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(yE);const Tk=dk(Ok);var Nk=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(yE);const Pk=dk(Nk);var Ik=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(yE);const Rk=dk(Ik);var jk=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(yE);const Lk=dk(jk);var Bk=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(yE);const zk=dk(Bk);var Uk=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(yE);const Hk=dk(Uk);var qk=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(yE);const Gk=dk(qk);var Wk=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(yE);const Vk=dk(Wk);var Qk=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(yE);const $k=dk(Qk);var Kk=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(yE);const Yk=dk(Kk);var Xk=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(yE);const Zk=dk(Xk);var Jk=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(yE);const eS=dk(Jk);var tS=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(yE);const nS=dk(tS);var rS=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(yE);const iS=dk(rS);var oS=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(yE);const aS=dk(oS);var sS=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(yE);const uS=dk(sS);var lS=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(yE);const cS=dk(lS);var fS=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(yE);const dS=dk(fS);function hS(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"}const pS=Math.PI/180,mS=180/Math.PI;var gS=-.14861,yS=1.78277,vS=-.29227,bS=-.90649,wS=1.97294,_S=-1.7884503806,xS=3.5172982438,ES=-.6557636667999999;function kS(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof SS)return new SS(e.h,e.s,e.l,e.opacity);e instanceof XE||(e=KE(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(ES*r+_S*t-xS*n)/-5.9615122912,o=r-i,a=(wS*(n-i)-vS*o)/bS,s=Math.sqrt(a*a+o*o)/(wS*i*(1-i)),u=s?Math.atan2(a,o)*mS-120:NaN;return new SS(u<0?u+360:u,s,i,e.opacity)}(e):new SS(e,t,n,null==r?1:r)}function SS(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function AS(e){return function t(n){function r(t,r){var i=e((t=kS(t)).h,(r=kS(r)).h),o=lk(t.s,r.s),a=lk(t.l,r.l),s=lk(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}DE(SS,kS,ME(FE,{brighter:function(e){return e=null==e?TE:Math.pow(TE,e),new SS(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?OE:Math.pow(OE,e),new SS(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*pS,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new XE(255*(t+n*(gS*r+yS*i)),255*(t+n*(vS*r+bS*i)),255*(t+n*(wS*r)),this.opacity)}}));AS((function(e,t){var n=t-e;return n?sk(e,n>180||n<-180?n-360*Math.round(n/360):n):ak(isNaN(e)?t:e)}));var CS=AS(lk);const DS=CS(kS(300,.5,0),kS(-240,.5,1));var MS=CS(kS(-100,.75,.35),kS(80,1.5,.8)),FS=CS(kS(260,.75,.35),kS(80,1.5,.8)),OS=kS();function TS(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return OS.h=360*e-100,OS.s=1.5-1.5*t,OS.l=.8-.9*t,OS+""}var NS=YE(),PS=Math.PI/3,IS=2*Math.PI/3;function RS(e){var t;return e=(.5-e)*Math.PI,NS.r=255*(t=Math.sin(e))*t,NS.g=255*(t=Math.sin(e+PS))*t,NS.b=255*(t=Math.sin(e+IS))*t,NS+""}function jS(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"}function LS(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const BS=LS(yE("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var zS=LS(yE("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),US=LS(yE("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),HS=LS(yE("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),qS="http://www.w3.org/1999/xhtml";const GS={svg:"http://www.w3.org/2000/svg",xhtml:qS,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function WS(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),GS.hasOwnProperty(t)?{space:GS[t],local:e}:e}function VS(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===qS&&t.documentElement.namespaceURI===qS?t.createElement(e):t.createElementNS(n,e)}}function QS(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function $S(e){var t=WS(e);return(t.local?QS:VS)(t)}function KS(){}function YS(e){return null==e?KS:function(){return this.querySelector(e)}}function XS(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function ZS(){return[]}function JS(e){return null==e?ZS:function(){return this.querySelectorAll(e)}}function eA(e){return function(){return this.matches(e)}}function tA(e){return function(t){return t.matches(e)}}var nA=Array.prototype.find;function rA(){return this.firstElementChild}var iA=Array.prototype.filter;function oA(){return this.children}function aA(e){return new Array(e.length)}function sA(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function uA(e,t,n,r,i,o){for(var a,s=0,u=t.length,l=o.length;s<l;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new sA(e,o[s]);for(;s<u;++s)(a=t[s])&&(i[s]=a)}function lA(e,t,n,r,i,o,a){var s,u,l,c=new Map,f=t.length,d=o.length,h=new Array(f);for(s=0;s<f;++s)(u=t[s])&&(h[s]=l=a.call(u,u.__data__,s,t)+"",c.has(l)?i[s]=u:c.set(l,u));for(s=0;s<d;++s)l=a.call(e,o[s],s,o)+"",(u=c.get(l))?(r[s]=u,u.__data__=o[s],c.delete(l)):n[s]=new sA(e,o[s]);for(s=0;s<f;++s)(u=t[s])&&c.get(h[s])===u&&(i[s]=u)}function cA(e){return e.__data__}function fA(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function dA(e){return function(){this.removeAttribute(e)}}function hA(e){return function(){this.removeAttributeNS(e.space,e.local)}}function pA(e,t){return function(){this.setAttribute(e,t)}}function mA(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function gA(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function yA(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function vA(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function bA(e){return function(){this.style.removeProperty(e)}}function wA(e,t,n){return function(){this.style.setProperty(e,t,n)}}function _A(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function xA(e,t){return e.style.getPropertyValue(t)||vA(e).getComputedStyle(e,null).getPropertyValue(t)}function EA(e){return function(){delete this[e]}}function kA(e,t){return function(){this[e]=t}}function SA(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function AA(e){return e.trim().split(/^|\s+/)}function CA(e){return e.classList||new DA(e)}function DA(e){this._node=e,this._names=AA(e.getAttribute("class")||"")}function MA(e,t){for(var n=CA(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function FA(e,t){for(var n=CA(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function OA(e){return function(){MA(this,e)}}function TA(e){return function(){FA(this,e)}}function NA(e,t){return function(){(t.apply(this,arguments)?MA:FA)(this,e)}}function PA(){this.textContent=""}function IA(e){return function(){this.textContent=e}}function RA(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function jA(){this.innerHTML=""}function LA(e){return function(){this.innerHTML=e}}function BA(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function zA(){this.nextSibling&&this.parentNode.appendChild(this)}function UA(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function HA(){return null}function qA(){var e=this.parentNode;e&&e.removeChild(this)}function GA(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function WA(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function VA(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function QA(e,t,n){return function(){var r,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function $A(e,t,n){var r=vA(e),i=r.CustomEvent;"function"===typeof i?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 KA(e,t){return function(){return $A(this,e,t)}}function YA(e,t){return function(){return $A(this,e,t.apply(this,arguments))}}sA.prototype={constructor:sA,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)}},DA.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}};var XA=[null];function ZA(e,t){this._groups=e,this._parents=t}function JA(){return new ZA([[document.documentElement]],XA)}ZA.prototype=JA.prototype={constructor:ZA,select:function(e){"function"!==typeof e&&(e=YS(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],u=s.length,l=r[i]=new Array(u),c=0;c<u;++c)(o=s[c])&&(a=e.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new ZA(r,this._parents)},selectAll:function(e){e="function"===typeof e?function(e){return function(){var t=e.apply(this,arguments);return null==t?[]:XS(t)}}(e):JS(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],u=s.length,l=0;l<u;++l)(a=s[l])&&(r.push(e.call(a,a.__data__,l,s)),i.push(a));return new ZA(r,i)},selectChild:function(e){return this.select(null==e?rA:function(e){return function(){return nA.call(this.children,e)}}("function"===typeof e?e:tA(e)))},selectChildren:function(e){return this.selectAll(null==e?oA:function(e){return function(){return iA.call(this.children,e)}}("function"===typeof e?e:tA(e)))},filter:function(e){"function"!==typeof e&&(e=eA(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new ZA(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,cA);var n=t?lA:uA,r=this._parents,i=this._groups;"function"!==typeof e&&(e=function(e){return function(){return e}}(e));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),l=0;l<o;++l){var c=r[l],f=i[l],d=f.length,h=XS(e.call(c,c&&c.__data__,l,r)),p=h.length,m=s[l]=new Array(p),g=a[l]=new Array(p);n(c,f,m,g,u[l]=new Array(d),h,t);for(var y,v,b=0,w=0;b<p;++b)if(y=m[b]){for(b>=w&&(w=b+1);!(v=g[w])&&++w<p;);y._next=v||null}}return(a=new ZA(a,r))._enter=s,a._exit=u,a},enter:function(){return new ZA(this._enter||this._groups.map(aA),this._parents)},exit:function(){return new ZA(this._exit||this._groups.map(aA),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return r="function"===typeof e?e(r):r.append(e+""),null!=t&&(i=t(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){if(!(e instanceof ZA))throw new Error("invalid merge");for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],f=l.length,d=a[s]=new Array(f),h=0;h<f;++h)(u=l[h]||c[h])&&(d[h]=u);for(;s<r;++s)a[s]=t[s];return new ZA(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=fA);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,l=i[o]=new Array(u),c=0;c<u;++c)(a=s[c])&&(l[c]=a);l.sort(t)}return new ZA(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=WS(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?hA:dA:"function"===typeof t?n.local?yA:gA:n.local?mA:pA)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?bA:"function"===typeof t?_A:wA)(e,t,null==n?"":n)):xA(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?EA:"function"===typeof t?SA:kA)(e,t)):this.node()[e]},classed:function(e,t){var n=AA(e+"");if(arguments.length<2){for(var r=CA(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof t?NA:t?OA:TA)(n,t))},text:function(e){return arguments.length?this.each(null==e?PA:("function"===typeof e?RA:IA)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?jA:("function"===typeof e?BA:LA)(e)):this.node().innerHTML},raise:function(){return this.each(zA)},lower:function(){return this.each(UA)},append:function(e){var t="function"===typeof e?e:$S(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:$S(e),r=null==t?HA:"function"===typeof t?t:YS(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(qA)},clone:function(e){return this.select(e?WA:GA)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=function(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}}))}(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?QA:VA,r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var u,l=0,c=s.length;l<c;++l)for(r=0,u=s[l];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(e,t){return this.each(("function"===typeof t?YA:KA)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};const eC=JA;function tC(e){return"string"===typeof e?new ZA([[document.querySelector(e)]],[document.documentElement]):new ZA([[e]],XA)}function nC(e){return tC($S(e).call(document.documentElement))}var rC=0;function iC(){return new oC}function oC(){this._="@"+(++rC).toString(36)}function aC(e){let t;for(;t=e.sourceEvent;)e=t;return e}function sC(e,t){if(e=aC(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}function uC(e,t){return e.target&&(e=aC(e),void 0===t&&(t=e.currentTarget),e=e.touches||[e]),Array.from(e,(e=>sC(e,t)))}function lC(e){return"string"===typeof e?new ZA([document.querySelectorAll(e)],[document.documentElement]):new ZA([null==e?[]:XS(e)],XA)}function cC(e){return function(){return e}}oC.prototype=iC.prototype={constructor:oC,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var fC=Math.abs,dC=Math.atan2,hC=Math.cos,pC=Math.max,mC=Math.min,gC=Math.sin,yC=Math.sqrt,vC=1e-12,bC=Math.PI,wC=bC/2,_C=2*bC;function xC(e){return e>=1?wC:e<=-1?-wC:Math.asin(e)}function EC(e){return e.innerRadius}function kC(e){return e.outerRadius}function SC(e){return e.startAngle}function AC(e){return e.endAngle}function CC(e){return e&&e.padAngle}function DC(e,t,n,r,i,o,a){var s=e-n,u=t-r,l=(a?o:-o)/yC(s*s+u*u),c=l*u,f=-l*s,d=e+c,h=t+f,p=n+c,m=r+f,g=(d+p)/2,y=(h+m)/2,v=p-d,b=m-h,w=v*v+b*b,_=i-o,x=d*m-p*h,E=(b<0?-1:1)*yC(pC(0,_*_*w-x*x)),k=(x*b-v*E)/w,S=(-x*v-b*E)/w,A=(x*b+v*E)/w,C=(-x*v+b*E)/w,D=k-g,M=S-y,F=A-g,O=C-y;return D*D+M*M>F*F+O*O&&(k=A,S=C),{cx:k,cy:S,x01:-c,y01:-f,x11:k*(i/_-1),y11:S*(i/_-1)}}function MC(){var e=EC,t=kC,n=cC(0),r=null,i=SC,o=AC,a=CC,s=null;function u(){var u,l,c=+e.apply(this,arguments),f=+t.apply(this,arguments),d=i.apply(this,arguments)-wC,h=o.apply(this,arguments)-wC,p=fC(h-d),m=h>d;if(s||(s=u=uo()),f<c&&(l=f,f=c,c=l),f>vC)if(p>_C-vC)s.moveTo(f*hC(d),f*gC(d)),s.arc(0,0,f,d,h,!m),c>vC&&(s.moveTo(c*hC(h),c*gC(h)),s.arc(0,0,c,h,d,m));else{var g,y,v=d,b=h,w=d,_=h,x=p,E=p,k=a.apply(this,arguments)/2,S=k>vC&&(r?+r.apply(this,arguments):yC(c*c+f*f)),A=mC(fC(f-c)/2,+n.apply(this,arguments)),C=A,D=A;if(S>vC){var M=xC(S/c*gC(k)),F=xC(S/f*gC(k));(x-=2*M)>vC?(w+=M*=m?1:-1,_-=M):(x=0,w=_=(d+h)/2),(E-=2*F)>vC?(v+=F*=m?1:-1,b-=F):(E=0,v=b=(d+h)/2)}var O=f*hC(v),T=f*gC(v),N=c*hC(_),P=c*gC(_);if(A>vC){var I,R=f*hC(b),j=f*gC(b),L=c*hC(w),B=c*gC(w);if(p<bC&&(I=function(e,t,n,r,i,o,a,s){var u=n-e,l=r-t,c=a-i,f=s-o,d=f*u-c*l;if(!(d*d<vC))return[e+(d=(c*(t-o)-f*(e-i))/d)*u,t+d*l]}(O,T,L,B,R,j,N,P))){var z=O-I[0],U=T-I[1],H=R-I[0],q=j-I[1],G=1/gC(function(e){return e>1?0:e<-1?bC:Math.acos(e)}((z*H+U*q)/(yC(z*z+U*U)*yC(H*H+q*q)))/2),W=yC(I[0]*I[0]+I[1]*I[1]);C=mC(A,(c-W)/(G-1)),D=mC(A,(f-W)/(G+1))}}E>vC?D>vC?(g=DC(L,B,O,T,f,D,m),y=DC(R,j,N,P,f,D,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),D<A?s.arc(g.cx,g.cy,D,dC(g.y01,g.x01),dC(y.y01,y.x01),!m):(s.arc(g.cx,g.cy,D,dC(g.y01,g.x01),dC(g.y11,g.x11),!m),s.arc(0,0,f,dC(g.cy+g.y11,g.cx+g.x11),dC(y.cy+y.y11,y.cx+y.x11),!m),s.arc(y.cx,y.cy,D,dC(y.y11,y.x11),dC(y.y01,y.x01),!m))):(s.moveTo(O,T),s.arc(0,0,f,v,b,!m)):s.moveTo(O,T),c>vC&&x>vC?C>vC?(g=DC(N,P,R,j,c,-C,m),y=DC(O,T,L,B,c,-C,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),C<A?s.arc(g.cx,g.cy,C,dC(g.y01,g.x01),dC(y.y01,y.x01),!m):(s.arc(g.cx,g.cy,C,dC(g.y01,g.x01),dC(g.y11,g.x11),!m),s.arc(0,0,c,dC(g.cy+g.y11,g.cx+g.x11),dC(y.cy+y.y11,y.cx+y.x11),m),s.arc(y.cx,y.cy,C,dC(y.y11,y.x11),dC(y.y01,y.x01),!m))):s.arc(0,0,c,_,w,m):s.lineTo(N,P)}else s.moveTo(0,0);if(s.closePath(),u)return s=null,u+""||null}return u.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-bC/2;return[hC(r)*n,gC(r)*n]},u.innerRadius=function(t){return arguments.length?(e="function"===typeof t?t:cC(+t),u):e},u.outerRadius=function(e){return arguments.length?(t="function"===typeof e?e:cC(+e),u):t},u.cornerRadius=function(e){return arguments.length?(n="function"===typeof e?e:cC(+e),u):n},u.padRadius=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:cC(+e),u):r},u.startAngle=function(e){return arguments.length?(i="function"===typeof e?e:cC(+e),u):i},u.endAngle=function(e){return arguments.length?(o="function"===typeof e?e:cC(+e),u):o},u.padAngle=function(e){return arguments.length?(a="function"===typeof e?e:cC(+e),u):a},u.context=function(e){return arguments.length?(s=null==e?null:e,u):s},u}var FC=Array.prototype.slice;function OC(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function TC(e){this._context=e}function NC(e){return new TC(e)}function PC(e){return e[0]}function IC(e){return e[1]}function RC(e,t){var n=cC(!0),r=null,i=NC,o=null;function a(a){var s,u,l,c=(a=OC(a)).length,f=!1;for(null==r&&(o=i(l=uo())),s=0;s<=c;++s)!(s<c&&n(u=a[s],s,a))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(u,s,a),+t(u,s,a));if(l)return o=null,l+""||null}return e="function"===typeof e?e:void 0===e?PC:cC(e),t="function"===typeof t?t:void 0===t?IC:cC(t),a.x=function(t){return arguments.length?(e="function"===typeof t?t:cC(+t),a):e},a.y=function(e){return arguments.length?(t="function"===typeof e?e:cC(+e),a):t},a.defined=function(e){return arguments.length?(n="function"===typeof e?e:cC(!!e),a):n},a.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),a):i},a.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),a):r},a}function jC(e,t,n){var r=null,i=cC(!0),o=null,a=NC,s=null;function u(u){var l,c,f,d,h,p=(u=OC(u)).length,m=!1,g=new Array(p),y=new Array(p);for(null==o&&(s=a(h=uo())),l=0;l<=p;++l){if(!(l<p&&i(d=u[l],l,u))===m)if(m=!m)c=l,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=l-1;f>=c;--f)s.point(g[f],y[f]);s.lineEnd(),s.areaEnd()}m&&(g[l]=+e(d,l,u),y[l]=+t(d,l,u),s.point(r?+r(d,l,u):g[l],n?+n(d,l,u):y[l]))}if(h)return s=null,h+""||null}function l(){return RC().defined(i).curve(a).context(o)}return e="function"===typeof e?e:void 0===e?PC:cC(+e),t="function"===typeof t?t:cC(void 0===t?0:+t),n="function"===typeof n?n:void 0===n?IC:cC(+n),u.x=function(t){return arguments.length?(e="function"===typeof t?t:cC(+t),r=null,u):e},u.x0=function(t){return arguments.length?(e="function"===typeof t?t:cC(+t),u):e},u.x1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:cC(+e),u):r},u.y=function(e){return arguments.length?(t="function"===typeof e?e:cC(+e),n=null,u):t},u.y0=function(e){return arguments.length?(t="function"===typeof e?e:cC(+e),u):t},u.y1=function(e){return arguments.length?(n=null==e?null:"function"===typeof e?e:cC(+e),u):n},u.lineX0=u.lineY0=function(){return l().x(e).y(t)},u.lineY1=function(){return l().x(e).y(n)},u.lineX1=function(){return l().x(r).y(t)},u.defined=function(e){return arguments.length?(i="function"===typeof e?e:cC(!!e),u):i},u.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),u):a},u.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),u):o},u}function LC(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function BC(e){return e}function zC(){var e=BC,t=LC,n=null,r=cC(0),i=cC(_C),o=cC(0);function a(a){var s,u,l,c,f,d=(a=OC(a)).length,h=0,p=new Array(d),m=new Array(d),g=+r.apply(this,arguments),y=Math.min(_C,Math.max(-_C,i.apply(this,arguments)-g)),v=Math.min(Math.abs(y)/d,o.apply(this,arguments)),b=v*(y<0?-1:1);for(s=0;s<d;++s)(f=m[p[s]=s]=+e(a[s],s,a))>0&&(h+=f);for(null!=t?p.sort((function(e,n){return t(m[e],m[n])})):null!=n&&p.sort((function(e,t){return n(a[e],a[t])})),s=0,l=h?(y-d*b)/h:0;s<d;++s,g=c)u=p[s],c=g+((f=m[u])>0?f*l:0)+b,m[u]={data:a[u],index:s,value:f,startAngle:g,endAngle:c,padAngle:v};return m}return a.value=function(t){return arguments.length?(e="function"===typeof t?t:cC(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"===typeof e?e:cC(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"===typeof e?e:cC(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"===typeof e?e:cC(+e),a):o},a}TC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(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)}}};var UC=qC(NC);function HC(e){this._curve=e}function qC(e){function t(t){return new HC(e(t))}return t._curve=e,t}function GC(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(qC(e)):t()._curve},e}function WC(){return GC(RC().curve(UC))}function VC(){var e=jC().curve(UC),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return GC(n())},delete e.lineX0,e.lineEndAngle=function(){return GC(r())},delete e.lineX1,e.lineInnerRadius=function(){return GC(i())},delete e.lineY0,e.lineOuterRadius=function(){return GC(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(qC(e)):t()._curve},e}function QC(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}function $C(e){return e.source}function KC(e){return e.target}function YC(e){var t=$C,n=KC,r=PC,i=IC,o=null;function a(){var a,s=FC.call(arguments),u=t.apply(this,s),l=n.apply(this,s);if(o||(o=a=uo()),e(o,+r.apply(this,(s[0]=u,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.apply(this,s)),a)return o=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"===typeof e?e:cC(+e),a):r},a.y=function(e){return arguments.length?(i="function"===typeof e?e:cC(+e),a):i},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a}function XC(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function ZC(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function JC(e,t,n,r,i){var o=QC(t,n),a=QC(t,n=(n+i)/2),s=QC(r,n),u=QC(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function eD(){return YC(XC)}function tD(){return YC(ZC)}function nD(){var e=YC(JC);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}HC.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};const rD={draw:function(e,t){var n=Math.sqrt(t/bC);e.moveTo(n,0),e.arc(0,0,n,0,_C)}},iD={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};var oD=Math.sqrt(1/3),aD=2*oD;const sD={draw:function(e,t){var n=Math.sqrt(t/aD),r=n*oD;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}};var uD=Math.sin(bC/10)/Math.sin(7*bC/10),lD=Math.sin(_C/10)*uD,cD=-Math.cos(_C/10)*uD;const fD={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=lD*n,i=cD*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=_C*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},dD={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}};var hD=Math.sqrt(3);const pD={draw:function(e,t){var n=-Math.sqrt(t/(3*hD));e.moveTo(0,2*n),e.lineTo(-hD*n,-n),e.lineTo(hD*n,-n),e.closePath()}};var mD=-.5,gD=Math.sqrt(3)/2,yD=1/Math.sqrt(12),vD=3*(yD/2+1);const bD={draw:function(e,t){var n=Math.sqrt(t/vD),r=n/2,i=n*yD,o=r,a=n*yD+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(mD*r-gD*i,gD*r+mD*i),e.lineTo(mD*o-gD*a,gD*o+mD*a),e.lineTo(mD*s-gD*u,gD*s+mD*u),e.lineTo(mD*r+gD*i,mD*i-gD*r),e.lineTo(mD*o+gD*a,mD*a-gD*o),e.lineTo(mD*s+gD*u,mD*u-gD*s),e.closePath()}};var wD=[rD,iD,sD,dD,fD,pD,bD];function _D(e,t){var n=null;function r(){var r;if(n||(n=r=uo()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return e="function"===typeof e?e:cC(e||rD),t="function"===typeof t?t:cC(void 0===t?64:+t),r.type=function(t){return arguments.length?(e="function"===typeof t?t:cC(t),r):e},r.size=function(e){return arguments.length?(t="function"===typeof e?e:cC(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}function xD(){}function ED(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function kD(e){this._context=e}function SD(e){return new kD(e)}function AD(e){this._context=e}function CD(e){return new AD(e)}function DD(e){this._context=e}function MD(e){return new DD(e)}kD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ED(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ED(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},AD.prototype={areaStart:xD,areaEnd:xD,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ED(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},DD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ED(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class FD{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&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 OD(e){return new FD(e,!0)}function TD(e){return new FD(e,!1)}function ND(e,t){this._basis=new kD(e),this._beta=t}ND.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+r*a),this._beta*t[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const PD=function e(t){function n(e){return 1===t?new kD(e):new ND(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function ID(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function RD(e,t){this._context=e,this._k=(1-t)/6}RD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ID(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:ID(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const jD=function e(t){function n(e){return new RD(e,t)}return n.tension=function(t){return e(+t)},n}(0);function LD(e,t){this._context=e,this._k=(1-t)/6}LD.prototype={areaStart:xD,areaEnd:xD,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ID(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const BD=function e(t){function n(e){return new LD(e,t)}return n.tension=function(t){return e(+t)},n}(0);function zD(e,t){this._context=e,this._k=(1-t)/6}zD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ID(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const UD=function e(t){function n(e){return new zD(e,t)}return n.tension=function(t){return e(+t)},n}(0);function HD(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>vC){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>vC){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function qD(e,t){this._context=e,this._alpha=t}qD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(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;break;case 2:this._point=3;default:HD(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const GD=function e(t){function n(e){return t?new qD(e,t):new RD(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function WD(e,t){this._context=e,this._alpha=t}WD.prototype={areaStart:xD,areaEnd:xD,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:HD(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const VD=function e(t){function n(e){return t?new WD(e,t):new LD(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function QD(e,t){this._context=e,this._alpha=t}QD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:HD(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const $D=function e(t){function n(e){return t?new QD(e,t):new zD(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function KD(e){this._context=e}function YD(e){return new KD(e)}function XD(e){return e<0?-1:1}function ZD(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(XD(o)+XD(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function JD(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function eM(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function tM(e){this._context=e}function nM(e){this._context=new rM(e)}function rM(e){this._context=e}function iM(e){return new tM(e)}function oM(e){return new nM(e)}function aM(e){this._context=e}function sM(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function uM(e){return new aM(e)}function lM(e,t){this._context=e,this._t=t}function cM(e){return new lM(e,.5)}function fM(e){return new lM(e,0)}function dM(e){return new lM(e,1)}function hM(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function pM(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function mM(e,t){return e[t]}function gM(e){const t=[];return t.key=e,t}function yM(){var e=cC([]),t=pM,n=hM,r=mM;function i(i){var o,a,s=Array.from(e.apply(this,arguments),gM),u=s.length,l=-1;for(const e of i)for(o=0,++l;o<u;++o)(s[o][l]=[0,+r(e,s[o].key,l,i)]).data=e;for(o=0,a=OC(t(s));o<u;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(t){return arguments.length?(e="function"===typeof t?t:cC(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"===typeof e?e:cC(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?pM:"function"===typeof e?e:cC(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?hM:e,i):n},i}function vM(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}hM(e,t)}}function bM(e,t){if((s=e.length)>0)for(var n,r,i,o,a,s,u=0,l=e[t[0]].length;u<l;++u)for(o=a=0,n=0;n<s;++n)(i=(r=e[t[n]][u])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function wM(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}hM(e,t)}}function _M(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,u=0,l=0;s<i;++s){for(var c=e[t[s]],f=c[a][1]||0,d=(f-(c[a-1][1]||0))/2,h=0;h<s;++h){var p=e[t[h]];d+=(p[a][1]||0)-(p[a-1][1]||0)}u+=f,l+=d*f}n[a-1][1]+=n[a-1][0]=o,u&&(o-=l/u)}n[a-1][1]+=n[a-1][0]=o,hM(e,t)}}function xM(e){var t=e.map(EM);return pM(e).sort((function(e,n){return t[e]-t[n]}))}function EM(e){for(var t,n=-1,r=0,i=e.length,o=-1/0;++n<i;)(t=+e[n][1])>o&&(o=t,r=n);return r}function kM(e){var t=e.map(SM);return pM(e).sort((function(e,n){return t[e]-t[n]}))}function SM(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}function AM(e){return kM(e).reverse()}function CM(e){var t,n,r=e.length,i=e.map(SM),o=xM(e),a=0,s=0,u=[],l=[];for(t=0;t<r;++t)n=o[t],a<s?(a+=i[n],u.push(n)):(s+=i[n],l.push(n));return l.reverse().concat(u)}function DM(e){return pM(e).reverse()}KD.prototype={areaStart:xD,areaEnd:xD,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},tM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:eM(this,this._t0,JD(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(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;break;case 2:this._point=3,eM(this,JD(this,n=ZD(this,e,t)),n);break;default:eM(this,this._t0,n=ZD(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(nM.prototype=Object.create(tM.prototype)).point=function(e,t){tM.prototype.point.call(this,t,e)},rM.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},aM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=sM(e),i=sM(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},lM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(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:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var MM="%Y-%m-%dT%H:%M:%S.%LZ";var FM=Date.prototype.toISOString?function(e){return e.toISOString()}:T_(MM);const OM=FM;var TM=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:N_(MM);const NM=TM;var PM,IM,RM=0,jM=0,LM=0,BM=0,zM=0,UM=0,HM="object"===typeof performance&&performance.now?performance:Date,qM="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function GM(){return zM||(qM(WM),zM=HM.now()+UM)}function WM(){zM=0}function VM(){this._call=this._time=this._next=null}function QM(e,t,n){var r=new VM;return r.restart(e,t,n),r}function $M(){GM(),++RM;for(var e,t=PM;t;)(e=zM-t._time)>=0&&t._call.call(null,e),t=t._next;--RM}function KM(){zM=(BM=HM.now())+UM,RM=jM=0;try{$M()}finally{RM=0,function(){var e,t,n=PM,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:PM=t);IM=e,XM(r)}(),zM=0}}function YM(){var e=HM.now(),t=e-BM;t>1e3&&(UM-=t,BM=e)}function XM(e){RM||(jM&&(jM=clearTimeout(jM)),e-zM>24?(e<1/0&&(jM=setTimeout(KM,e-HM.now()-UM)),LM&&(LM=clearInterval(LM))):(LM||(BM=HM.now(),LM=setInterval(YM,1e3)),RM=1,qM(KM)))}function ZM(e,t,n){var r=new VM;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}function JM(e,t,n){var r=new VM,i=t;return null==t?(r.restart(e,t,n),r):(r._restart=r.restart,r.restart=function(e,t,n){t=+t,n=null==n?GM():+n,r._restart((function o(a){a+=i,r._restart(o,i+=t,n),e(a)}),t,n)},r.restart(e,t,n),r)}VM.prototype=QM.prototype={constructor:VM,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?GM():+n)+(null==t?0:+t),this._next||IM===this||(IM?IM._next=this:PM=this,IM=this),this._call=e,this._time=n,XM()},stop:function(){this._call&&(this._call=null,this._time=1/0,XM())}};var eF=(0,Je.A)("start","end","cancel","interrupt"),tF=[],nF=1,rF=2,iF=5,oF=6;function aF(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=nF,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var l,c,f,d;if(n.state!==nF)return u();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return ZM(a);4===d.state?(d.state=oF,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[l]):+l<t&&(d.state=oF,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[l])}if(ZM((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=rF,n.on.call("start",e,e.__data__,n.index,n.group),n.state===rF){for(n.state=3,r=new Array(f=n.tween.length),l=0,c=-1;l<f;++l)(d=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=d);r.length=c+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(u),n.state=iF,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);n.state===iF&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){for(var r in n.state=oF,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=QM(o,0,n.time)}(e,n,{name:t,index:r,group:i,on:eF,tween:tF,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function sF(e,t){var n=lF(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function uF(e,t){var n=lF(e,t);if(n.state>3)throw new Error("too late; already running");return n}function lF(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function cF(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>rF&&n.state<iF,n.state=oF,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}function fF(e,t){var n,r;return function(){var i=uF(this,e),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}function dF(e,t,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=uF(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}o.tween=i}}function hF(e,t,n){var r=e._id;return e.each((function(){var e=uF(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return lF(e,r).value[t]}}function pF(e,t){var n;return("number"===typeof t?Ug:t instanceof zo?Tg:(n=zo(t))?(t=n,Tg):Wg)(e,t)}function mF(e){return function(){this.removeAttribute(e)}}function gF(e){return function(){this.removeAttributeNS(e.space,e.local)}}function yF(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function vF(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function bF(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttribute(e))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttribute(e)}}function wF(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttributeNS(e.space,e.local))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttributeNS(e.space,e.local)}}function _F(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,i)),n}return i._value=t,i}function xF(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,i)),n}return i._value=t,i}function EF(e,t){return function(){sF(this,e).delay=+t.apply(this,arguments)}}function kF(e,t){return t=+t,function(){sF(this,e).delay=t}}function SF(e,t){return function(){uF(this,e).duration=+t.apply(this,arguments)}}function AF(e,t){return t=+t,function(){uF(this,e).duration=t}}var CF=eC.prototype.constructor;function DF(e){return function(){this.style.removeProperty(e)}}var MF=0;function FF(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function OF(e){return eC().transition(e)}function TF(){return++MF}var NF=eC.prototype;FF.prototype=OF.prototype={constructor:FF,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=YS(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,l=r[a],c=l.length,f=o[a]=new Array(c),d=0;d<c;++d)(s=l[d])&&(u=e.call(s,s.__data__,d,l))&&("__data__"in s&&(u.__data__=s.__data__),f[d]=u,aF(f[d],t,n,d,f,lF(s,n)));return new FF(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=JS(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,l=r[s],c=l.length,f=0;f<c;++f)if(u=l[f]){for(var d,h=e.call(u,u.__data__,f,l),p=lF(u,n),m=0,g=h.length;m<g;++m)(d=h[m])&&aF(d,t,n,m,h,p);o.push(h),a.push(u)}return new FF(o,a,t,n)},filter:function(e){"function"!==typeof e&&(e=eA(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new FF(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],f=l.length,d=a[s]=new Array(f),h=0;h<f;++h)(u=l[h]||c[h])&&(d[h]=u);for(;s<r;++s)a[s]=t[s];return new FF(a,this._parents,this._name,this._id)},selection:function(){return new CF(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=TF(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)if(a=s[l]){var c=lF(a,t);aF(a,e,n,l,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new FF(r,this._parents,e,n)},call:NF.call,nodes:NF.nodes,node:NF.node,size:NF.size,empty:NF.empty,each:NF.each,on:function(e,t){var n=this._id;return arguments.length<2?lF(this.node(),n).on.on(e):this.each(function(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?sF:uF;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}(n,e,t))},attr:function(e,t){var n=WS(e),r="transform"===n?ny:pF;return this.attrTween(e,"function"===typeof t?(n.local?wF:bF)(n,r,hF(this,"attr."+e,t)):null==t?(n.local?gF:mF)(n):(n.local?vF:yF)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=WS(e);return this.tween(n,(r.local?_F:xF)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?ty:pF;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=xA(this,e),a=(this.style.removeProperty(e),xA(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,DF(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=xA(this,e),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(e),u=s=xA(this,e)),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}(e,r,hF(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var u=uF(this,e),l=u.on,c=null==u.value[a]?o||(o=DF(t)):void 0;l===n&&i===c||(r=(n=l).copy()).on(s,i=c),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=xA(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,o,n)),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(hF(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=lF(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?fF:dF)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?EF:kF)(t,e)):lF(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?SF:AF)(t,e)):lF(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!==typeof t)throw new Error;return function(){uF(this,e).ease=t}}(t,e)):lF(this.node(),t).ease},easeVarying:function(e){if("function"!==typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;uF(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0===--i&&o()}};n.each((function(){var n=uF(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),n.on=t})),0===i&&o()}))},[Symbol.iterator]:NF[Symbol.iterator]};var PF={time:null,delay:0,duration:250,ease:fu};function IF(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error("transition ".concat(t," not found"));return n}eC.prototype.interrupt=function(e){return this.each((function(){cF(this,e)}))},eC.prototype.transition=function(e){var t,n;e instanceof FF?(t=e._id,e=e._name):(t=TF(),(n=PF).time=GM(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)(a=s[l])&&aF(a,e,t,l,s,n||IF(a,t));return new FF(r,this._parents,e,t)};var RF=[null];function jF(e,t){var n,r,i=e.__transition;if(i)for(r in t=null==t?null:t+"",i)if((n=i[r]).state>nF&&n.name===t)return new FF([[e]],RF,t,+r);return null}const LF=e=>()=>e;function BF(e,t){let{sourceEvent:n,target:r,transform:i,dispatch:o}=t;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function zF(e,t,n){this.k=e,this.x=t,this.y=n}zF.prototype={constructor:zF,scale:function(e){return 1===e?this:new zF(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new zF(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var UF=new zF(1,0,0);function HF(e){for(;!e.__zoom;)if(!(e=e.parentNode))return UF;return e.__zoom}function qF(e){e.stopImmediatePropagation()}function GF(e){e.preventDefault(),e.stopImmediatePropagation()}function WF(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function VF(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function QF(){return this.__zoom||UF}function $F(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function KF(){return navigator.maxTouchPoints||"ontouchstart"in this}function YF(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function XF(){var e,t,n,r=WF,i=VF,o=YF,a=$F,s=KF,u=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],c=250,f=iy,d=(0,Je.A)("start","zoom","end"),h=0,p=10;function m(e){e.property("__zoom",QF).on("wheel.zoom",x).on("mousedown.zoom",E).on("dblclick.zoom",k).filter(s).on("touchstart.zoom",S).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",C).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(e,t){return(t=Math.max(u[0],Math.min(u[1],t)))===e.k?e:new zF(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new zF(e.k,r,i)}function v(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function b(e,t,n,r){e.on("start.zoom",(function(){w(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,o=arguments,a=w(e,o).event(r),s=i.apply(e,o),u=null==n?v(s):"function"===typeof n?n.apply(e,o):n,l=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),c=e.__zoom,d="function"===typeof t?t.apply(e,o):t,h=f(c.invert(u).concat(l/c.k),d.invert(u).concat(l/d.k));return function(e){if(1===e)e=d;else{var t=h(e),n=l/t[2];e=new zF(n,u[0]-t[0]*n,u[1]-t[1]*n)}a.zoom(null,e)}}))}function w(e,t,n){return!n&&e.__zooming||new _(e,t)}function _(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function x(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(r.apply(this,arguments)){var s=w(this,n).event(e),c=this.__zoom,f=Math.max(u[0],Math.min(u[1],c.k*Math.pow(2,a.apply(this,arguments)))),d=sC(e);if(s.wheel)s.mouse[0][0]===d[0]&&s.mouse[0][1]===d[1]||(s.mouse[1]=c.invert(s.mouse[0]=d)),clearTimeout(s.wheel);else{if(c.k===f)return;s.mouse=[d,c.invert(d)],cF(this),s.start()}GF(e),s.wheel=setTimeout((function(){s.wheel=null,s.end()}),150),s.zoom("mouse",o(y(g(c,f),s.mouse[0],s.mouse[1]),s.extent,l))}}function E(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];if(!n&&r.apply(this,arguments)){var s=w(this,i,!0).event(e),u=tC(e.view).on("mousemove.zoom",(function(e){if(GF(e),!s.moved){var t=e.clientX-d,n=e.clientY-p;s.moved=t*t+n*n>h}s.event(e).zoom("mouse",o(y(s.that.__zoom,s.mouse[0]=sC(e,f),s.mouse[1]),s.extent,l))}),!0).on("mouseup.zoom",(function(e){u.on("mousemove.zoom mouseup.zoom",null),(0,et.y)(e.view,s.moved),GF(e),s.event(e).end()}),!0),c=sC(e,f),f=e.currentTarget,d=e.clientX,p=e.clientY;(0,et.A)(e.view),qF(e),s.mouse=[c,this.__zoom.invert(c)],cF(this),s.start()}}function k(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];if(r.apply(this,arguments)){var s=this.__zoom,u=sC(e.changedTouches?e.changedTouches[0]:e,this),f=s.invert(u),d=s.k*(e.shiftKey?.5:2),h=o(y(g(s,d),u,f),i.apply(this,n),l);GF(e),c>0?tC(this).transition().duration(c).call(b,h,u,e):tC(this).call(m.transform,h,u,e)}}function S(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(r.apply(this,arguments)){var s,u,l,c,f=n.touches,d=f.length,h=w(this,o,n.changedTouches.length===d).event(n);for(qF(n),u=0;u<d;++u)c=[c=sC(l=f[u],this),this.__zoom.invert(c),l.identifier],h.touch0?h.touch1||h.touch0[2]===c[2]||(h.touch1=c,h.taps=0):(h.touch0=c,s=!0,h.taps=1+!!e);e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=c[0],e=setTimeout((function(){e=null}),500)),cF(this),h.start())}}function A(e){if(this.__zooming){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,a,s,u,c=w(this,n).event(e),f=e.changedTouches,d=f.length;for(GF(e),i=0;i<d;++i)s=sC(a=f[i],this),c.touch0&&c.touch0[2]===a.identifier?c.touch0[0]=s:c.touch1&&c.touch1[2]===a.identifier&&(c.touch1[0]=s);if(a=c.that.__zoom,c.touch1){var h=c.touch0[0],p=c.touch0[1],m=c.touch1[0],v=c.touch1[1],b=(b=m[0]-h[0])*b+(b=m[1]-h[1])*b,_=(_=v[0]-p[0])*_+(_=v[1]-p[1])*_;a=g(a,Math.sqrt(b/_)),s=[(h[0]+m[0])/2,(h[1]+m[1])/2],u=[(p[0]+v[0])/2,(p[1]+v[1])/2]}else{if(!c.touch0)return;s=c.touch0[0],u=c.touch0[1]}c.zoom("touch",o(y(a,s,u),c.extent,l))}}function C(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.__zooming){var a,s,u=w(this,i).event(e),l=e.changedTouches,c=l.length;for(qF(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),500),a=0;a<c;++a)s=l[a],u.touch0&&u.touch0[2]===s.identifier?delete u.touch0:u.touch1&&u.touch1[2]===s.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(s=sC(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<p)){var f=tC(this).on("dblclick.zoom");f&&f.apply(this,arguments)}}}return m.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",QF),e!==i?b(e,t,n,r):i.interrupt().each((function(){w(this,arguments).event(r).start().zoom(null,"function"===typeof t?t.apply(this,arguments):t).end()}))},m.scaleBy=function(e,t,n,r){m.scaleTo(e,(function(){return this.__zoom.k*("function"===typeof t?t.apply(this,arguments):t)}),n,r)},m.scaleTo=function(e,t,n,r){m.transform(e,(function(){var e=i.apply(this,arguments),r=this.__zoom,a=null==n?v(e):"function"===typeof n?n.apply(this,arguments):n,s=r.invert(a),u="function"===typeof t?t.apply(this,arguments):t;return o(y(g(r,u),a,s),e,l)}),n,r)},m.translateBy=function(e,t,n,r){m.transform(e,(function(){return o(this.__zoom.translate("function"===typeof t?t.apply(this,arguments):t,"function"===typeof n?n.apply(this,arguments):n),i.apply(this,arguments),l)}),null,r)},m.translateTo=function(e,t,n,r,a){m.transform(e,(function(){var e=i.apply(this,arguments),a=this.__zoom,s=null==r?v(e):"function"===typeof r?r.apply(this,arguments):r;return o(UF.translate(s[0],s[1]).scale(a.k).translate("function"===typeof t?-t.apply(this,arguments):-t,"function"===typeof n?-n.apply(this,arguments):-n),e,l)}),r,a)},_.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=tC(this.that).datum();d.call(e,this.that,new BF(e,{sourceEvent:this.sourceEvent,target:m,type:e,transform:this.that.__zoom,dispatch:d}),t)}},m.wheelDelta=function(e){return arguments.length?(a="function"===typeof e?e:LF(+e),m):a},m.filter=function(e){return arguments.length?(r="function"===typeof e?e:LF(!!e),m):r},m.touchable=function(e){return arguments.length?(s="function"===typeof e?e:LF(!!e),m):s},m.extent=function(e){return arguments.length?(i="function"===typeof e?e:LF([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),m):i},m.scaleExtent=function(e){return arguments.length?(u[0]=+e[0],u[1]=+e[1],m):[u[0],u[1]]},m.translateExtent=function(e){return arguments.length?(l[0][0]=+e[0][0],l[1][0]=+e[1][0],l[0][1]=+e[0][1],l[1][1]=+e[1][1],m):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},m.constrain=function(e){return arguments.length?(o=e,m):o},m.duration=function(e){return arguments.length?(c=+e,m):c},m.interpolate=function(e){return arguments.length?(f=e,m):f},m.on=function(){var e=d.on.apply(d,arguments);return e===d?m:e},m.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,m):Math.sqrt(h)},m.tapDistance=function(e){return arguments.length?(p=+e,m):p},m}HF.prototype=zF.prototype},9356:e=>{function t(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("function"!==typeof e)throw new TypeError("Expected the first parameter to be a function, got `".concat(typeof e,"`."));if(t<0)throw new RangeError("`wait` must not be negative.");const{immediate:r}="boolean"===typeof n?{immediate:n}:n;let i,o,a,s,u;function l(){const t=i,n=o;return i=void 0,o=void 0,u=e.apply(t,n),u}function c(){const e=Date.now()-s;e<t&&e>=0?a=setTimeout(c,t-e):(a=void 0,r||(u=l()))}const f=function(){if(i&&this!==i&&Object.getPrototypeOf(this)===Object.getPrototypeOf(i))throw new Error("Debounced method called with different contexts of the same prototype.");i=this;for(var e=arguments.length,n=new Array(e),f=0;f<e;f++)n[f]=arguments[f];o=n,s=Date.now();const d=r&&!a;return a||(a=setTimeout(c,t)),d&&(u=l()),u};return Object.defineProperty(f,"isPending",{get:()=>void 0!==a}),f.clear=()=>{a&&(clearTimeout(a),a=void 0)},f.flush=()=>{a&&f.trigger()},f.trigger=()=>{u=l(),f.clear()},f}e.exports.debounce=t,e.exports=t},9411:(e,t,n)=>{"use strict";var r=n(6709),i=n(7430),o=n(7277),a=n(4553);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new o("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(r)r(e,t,{configurable:null===l&&f?f.configurable:!l,enumerable:null===s&&f?f.enumerable:!s,value:n,writable:null===u&&f?f.writable:!u});else{if(!c&&(s||u||l))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},8726:(e,t,n)=>{"use strict";var r=n(7839),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=n(9411),u=n(7734)(),l=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!==typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;u?s(e,t,n,!0):s(e,t,n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)l(e,o[s],t[o[s]],n[o[s]])};c.supportsDescriptors=!!u,e.exports=c},7042:(e,t,n)=>{"use strict";var r,i=n(9460),o=n(4553);try{r=[].__proto__===Array.prototype}catch(l){if(!l||"object"!==typeof l||!("code"in l)||"ERR_PROTO_ACCESS"!==l.code)throw l}var a=!!r&&o&&o(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;e.exports=a&&"function"===typeof a.get?i([a.get]):"function"===typeof u&&function(e){return u(null==e?e:s(e))}},9518:(e,t,n)=>{"use strict";var r=n(9460),i=n(4553),o=n(7277),a={};try{a.__proto__=null}catch(l){if(!l||"object"!==typeof l||!("code"in l)||"ERR_PROTO_ACCESS"!==l.code)throw l}var s=!("toString"in a),u=i&&i(Object.prototype,"__proto__");e.exports=s&&(!!u&&"function"===typeof u.set&&r([u.set])||function(e,t){if(null==e)throw new o("set Object.prototype.__proto__ called on null or undefined");return e.__proto__=t,t})},6709:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(n){t=!1}e.exports=t},3123:e=>{"use strict";e.exports=EvalError},6953:e=>{"use strict";e.exports=Error},3780:e=>{"use strict";e.exports=RangeError},8768:e=>{"use strict";e.exports=ReferenceError},7430:e=>{"use strict";e.exports=SyntaxError},7277:e=>{"use strict";e.exports=TypeError},1619:e=>{"use strict";e.exports=URIError},6790:(e,t,n)=>{"use strict";var r=n(7277);e.exports=function(e){if(null==e)throw new r(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}},8446:(e,t,n)=>{"use strict";var r=n(6954),i=n(6790);e.exports=function(e){return i(e),r(e)}},6954:e=>{"use strict";e.exports=Object},5241:(e,t,n)=>{"use strict";var r=n(2155),i="function"===typeof Symbol&&"symbol"===typeof Symbol.unscopables,o=i&&Array.prototype[Symbol.unscopables],a=TypeError;e.exports=function(e){if("string"!==typeof e||!e)throw new a("method must be a non-empty string");if(!r(Array.prototype,e))throw new a("method must be on Array.prototype");i&&(o[e]=!0)}},3151:(e,t,n)=>{"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator,i=n(6216),o=n(6806),a=n(4866),s=n(5334);e.exports=function(e){if(i(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=function(e,t){var n=e[t];if(null!==n&&"undefined"!==typeof n){if(!o(n))throw new TypeError(n+" returned for property "+String(t)+" of object "+e+" is not a function");return n}}(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),"undefined"!==typeof t){var u=t.call(e,n);if(i(u))return u;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||s(e))&&(n="string"),function(e,t){if("undefined"===typeof e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!==typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a<s.length;++a)if(n=e[s[a]],o(n)&&(r=n.call(e),i(r)))return r;throw new TypeError("No default value")}(e,"default"===n?"number":n)}},6216:e=>{"use strict";e.exports=function(e){return null===e||"function"!==typeof e&&"object"!==typeof e}},789:(e,t,n)=>{var r;!function(){"use strict";var i=!("undefined"===typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},755:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,l,c,f=arguments[0],d=1,h=arguments.length,p=!1;for("boolean"===typeof f&&(p=f,f=arguments[1]||{},d=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});d<h;++d)if(null!=(t=arguments[d]))for(n in t)r=u(f,n),f!==(i=u(t,n))&&(p&&i&&(a(i)||(l=o(i)))?(l?(l=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(f,{name:n,newValue:e(p,c,i)})):"undefined"!==typeof i&&s(f,{name:n,newValue:i}));return f}},26:function(e,t,n){var r=n(2897).default;e.exports=function(e){"use strict";function t(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var n=t(e),i="object"===typeof window&&window.d3?window.d3:n;function o(e){e.forEach((t=>{if(!t.rels.children)return;const n=t.rels.spouses||[];t.rels.children.sort(((r,i)=>{const o=e.find((e=>e.id===r)),s=e.find((e=>e.id===i)),u=a(o,t,e)||{},l=a(s,t,e)||{},c=n.indexOf(u.id),f=n.indexOf(l.id);return"M"===t.data.gender?c-f:f-c}))}))}function a(e,t,n){return n.find((n=>n.id!==t.id&&(n.id===e.rels.mother||n.id===e.rels.father)))}function s(e,t,n){if(e.exiting=n,t)0!==e.depth||e.spouse?e.spouse?(e._x=e.spouse.x,e._y=e.spouse.y):e.is_ancestry?(e._x=e.parent.x,e._y=e.parent.y):(e._x=e.psx,e._y=e.psy):(e._x=e.x,e._y=e.y);else if(n){const t=e.x>0?1:-1,n=e.y>0?1:-1;e._x=e.x+400*t,e._y=e.y+400*n}}function u(e,t){const n=t?"rels":"_rels",r=t?"_rels":"rels";function i(t){e.data[n]&&e.data[n][t]&&(e.data[r]||(e.data[r]={}),e.data[r][t]=e.data[n][t],delete e.data[n][t])}function o(){if(!e.data[n]||!e.data[n].children)return;const t=e.data[n].children.slice(0),i=e.spouse?[e.spouse]:e.spouses||[];[e,...i].forEach((e=>t.forEach((t=>{e.data[n].children.includes(t)&&(e.data[r]||(e.data[r]={}),e.data[r].children||(e.data[r].children=[]),e.data[r].children.push(t),e.data[n].children.splice(e.data[n].children.indexOf(t),1))}))))}e.is_ancestry||e.data.main?(i("father"),i("mother")):o()}function l(e,t){e.forEach((e=>{e.data.hide_rels=t,u(e,t)}))}function c(e,t){const n=e.rels,r=[n.father,n.mother,...n.spouses||[],...n.children||[]].filter((e=>!!e)),i=[];for(let s=0;s<r.length;s++)if(!o(t.find((e=>e.id===r[s])),[e])){i.push(r[s]);break}return 0===i.length;function o(e,n){let r;return a(e)&&(r=[e]),i(e,[e]),r;function i(e,o){function s(t){const r=e.rels;[r.father,r.mother,...r.spouses||[],...r.children||[]].filter((e=>e&&![...n,...o].find((t=>t.id===e)))).forEach((e=>t(e)))}function u(e){a(e)&&(r=o)}function l(e){i(t.find((t=>t.id===e)),o)}r||(o=[...o,e],s(u),r||s(l))}}function a(e){return"object"===typeof e?e.id===t[0].id:e===t[0].id}}function f(e){let{datum:t,store:n,fields:r,postSubmit:i,addRelative:o,deletePerson:a,onCancel:s,editFirst:u}=e;const l={fields:[],onSubmit:f};return t._new_rel_data||(l.onDelete=d,l.addRelative=()=>o.activate(t),l.addRelativeCancel=()=>o.onCancel(),l.addRelativeActive=o.is_active,l.editable=!1),t._new_rel_data&&(l.title=t._new_rel_data.label,l.new_rel=!0,l.editable=!0,l.onCancel=s),l.onDelete&&(l.can_delete=c(t,n.getData())),u&&(l.editable=!0),l.gender_field={id:"gender",type:"switch",label:"Gender",initial_value:t.data.gender,options:[{value:"M",label:"Male"},{value:"F",label:"Female"}]},r.forEach((e=>{const n={id:e.id,type:e.type,label:e.label,initial_value:t.data[e.id]};l.fields.push(n)})),l;function f(e){e.preventDefault(),new FormData(e.target).forEach(((e,n)=>t.data[n]=e)),t.to_add&&delete t.to_add,i()}function d(){a(),i({delete:!0})}}function d(e,t){return delete e.to_add,e}function h(e,t){return p(e,t),!1}function p(e,t){return c(e,t)?(n(),{success:!0}):{success:!1,error:"checkIfRelativesConnectedWithoutPerson"};function n(){t.forEach((t=>{for(let n in t.rels)t.rels.hasOwnProperty(n)&&(t.rels[n]===e.id?delete t.rels[n]:Array.isArray(t.rels[n])&&t.rels[n].includes(e.id)&&t.rels[n].splice(t.rels[n].findIndex((t=>t===e.id)),1))})),t.splice(t.findIndex((t=>t.id===e.id)),1),t.forEach((e=>{e.to_add&&p(e,t)})),0===t.length&&t.push(x({}).data[0])}}function m(e){let t=JSON.parse(e);return t.forEach((e=>e.to_add?h(e,t):e)),t.forEach((e=>delete e.main)),t.forEach((e=>delete e.hide_rels)),JSON.stringify(t,null,2)}function g(e){return e.forEach((t=>t.to_add?h(t,e):t)),e}function y(e){let{datum:t,data_stash:n,rel_type:r,rel_datum:i}=e;function o(e){return e.data.other_parent&&(t(e.data.other_parent),delete e.data.other_parent),e.rels["M"===i.data.gender?"father":"mother"]=i.id,i.rels.children||(i.rels.children=[]),i.rels.children.push(e.id),e;function t(t){"_new"===t&&(t=o().id);const r=n.find((e=>e.id===t));function o(){const e=w({rel_type:"spouse",rel_datum:i});return s(e),_({data_stash:n,datum:e}),e}e.rels["M"===r.data.gender?"father":"mother"]=r.id,r.rels.hasOwnProperty("children")||(r.rels.children=[]),r.rels.children.push(e.id)}}function a(e){const t="M"===e.data.gender,r=i.rels[t?"father":"mother"];function o(){return i.rels[t?"father":"mother"]=e.id,r(),e.rels.children=[i.id],e;function r(){const r=i.rels[t?"mother":"father"];if(!r)return;const o=n.find((e=>e.id===r));return e.rels.spouses=[r],o.rels.spouses||(o.rels.spouses=[]),o.rels.spouses.push(e.id),o}}r&&h(n.find((e=>e.id===r)),n),o()}function s(e){function t(){i.rels.spouses&&i.rels.spouses.forEach((e=>{const t=n.find((t=>t.id===e));t.to_add&&h(t,n)}))}t(),i.rels.spouses||(i.rels.spouses=[]),i.rels.spouses.push(e.id),e.rels.spouses=[i.id]}"daughter"===r||"son"===r?o(t):"father"===r||"mother"===r?a(t):"spouse"===r&&s(t)}function v(e){let{datum:t,new_rel_datum:n,data_stash:r}=e;const i=n._new_rel_data.rel_type;if(delete n._new_rel_data,n=JSON.parse(JSON.stringify(n)),"son"===i||"daughter"===i){let e=r.find((e=>e.id===n.rels.mother)),t=r.find((e=>e.id===n.rels.father));n.rels={},t&&(t.rels.children||(t.rels.children=[]),t.rels.children.push(n.id),n.rels.father=t.id),e&&(e.rels.children||(e.rels.children=[]),e.rels.children.push(n.id),n.rels.mother=e.id)}else if("spouse"===i)t.rels.spouses||(t.rels.spouses=[]),t.rels.spouses.includes(n.id)||t.rels.spouses.push(n.id),n.rels.children=n.rels.children.filter((e=>{const i=r.find((t=>t.id===e));return!!i&&(i.rels.mother!==t.id&&(r.find((e=>e.id===i.rels.mother))&&r.splice(r.findIndex((e=>e.id===i.rels.mother)),1),i.rels.mother=n.id),i.rels.father!==t.id&&(r.find((e=>e.id===i.rels.father))&&r.splice(r.findIndex((e=>e.id===i.rels.father)),1),i.rels.father=n.id),!0)})),n.rels={spouses:[t.id],children:n.rels.children};else if("father"===i){if(t.rels.father=n.id,n.rels={children:[t.id]},t.rels.mother){n.rels.spouses=[t.rels.mother];const e=r.find((e=>e.id===t.rels.mother));e.rels.spouses||(e.rels.spouses=[]),e.rels.spouses.push(n.id)}}else if("mother"===i&&(t.rels.mother=n.id,n.rels={children:[t.id]},t.rels.father)){n.rels.spouses=[t.rels.father];const e=r.find((e=>e.id===t.rels.father));e.rels.spouses||(e.rels.spouses=[]),e.rels.spouses.push(n.id)}r.push(n)}function b(e){let{data:t,rels:n}=e;return{id:k(),data:t||{},rels:n||{}}}function w(e){let{data:t,rel_type:n,rel_datum:r}=e;const i=o(r,n);return t=Object.assign(t||{},{gender:i}),b({data:t});function o(e,t){return["daughter","mother"].includes(t)||"spouse"===t&&"M"===e.data.gender?"F":"M"}}function _(e){let{data_stash:t,datum:n}=e;t.push(n)}function x(e){let{data:t,version:n}=e;return{data:[b({data:t})],version:n}}function E(e){let{datum:t,data_stash:n,rel_type:r,rel_datum:i}=e;_({data_stash:n,datum:t}),y({datum:t,data_stash:n,rel_type:r,rel_datum:i})}function k(){var e=(new Date).getTime(),t=performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)}))}function S(e){let{amount:t,svg:n,transition_time:r=500}=e;const o=n.__zoomObj;i.select(n).transition().duration(r||0).delay(r?100:0).call(o.scaleBy,t)}function A(e,t){const n=e.data.rels;return[n.father,n.mother,...n.spouses||[],...n.children||[]].filter((e=>e)).every((e=>t.some((t=>t.data.id===e))))}function C(e){let{data:t,main_id:n=null,node_separation:r=250,level_separation:a=150,single_parent_empty_card:s=!0,is_horizontal:u=!1}=e;if(!t||!t.length)return{data:[],data_stash:[],dim:{width:0,height:0},main_id:null};u&&([r,a]=[a,r]);const l=s?k(t):t;o(l);const c=null!==n&&l.find((e=>e.id===n))||l[0],f=m(c,"children",!1),d=m(c,"parents",!0);l.forEach((e=>e.main=e===c)),g(d,f);const h=y(d,f);x({tree:h}),w({tree:h,node_separation:r}),_({tree:h}),v({tree:h}),h.forEach((e=>e.all_rels_displayed=A(e,h)));const p=E(h,r,a);return{data:h,data_stash:l,dim:p,main_id:c.id,is_horizontal:u};function m(e,t,n){const o="children"===t?m:g,s=i.tree().nodeSize([r,a]).separation(c),u=i.hierarchy(e,o);return s(u),u.descendants();function c(e,t){let r=1;return n||(f(e,t)||(r+=.25),p(e,t)&&(r+=y(e,t)),f(e,t)&&!d(e,t)&&(r+=.125)),r}function f(e,t){return e.parent==t.parent}function d(e,t){return e.data.rels.father===t.data.rels.father&&e.data.rels.mother===t.data.rels.mother}function h(e){return e.data.rels.spouses&&e.data.rels.spouses.length>0}function p(e,t){return h(e)||h(t)}function m(e){return[...e.rels.children||[]].map((e=>l.find((t=>t.id===e))))}function g(e){return[e.rels.father,e.rels.mother].filter((e=>e)).map((e=>l.find((t=>t.id===e))))}function y(e,t){return.5*((e.data.rels.spouses||[]).length+(t.data.rels.spouses||[]).length)}}function g(e,t){const n=(e[0].x-t[0].x)/2;e.forEach((e=>e.x-=n)),t.forEach((e=>e.x+=n))}function y(e,t){return e.forEach((e=>{e.is_ancestry=!0})),e.forEach((e=>1===e.depth?e.parent=t[0]:null)),[...t,...e.slice(1)]}function v(e){let{tree:t}=e;t.forEach((e=>{if(e.y*=e.is_ancestry?-1:1,u){const t=e.x;e.x=e.y,e.y=t}}))}function w(e){let{tree:t,node_separation:n}=e;for(let r=t.length;r--;){const e=t[r];if(!e.is_ancestry&&e.data.rels.spouses&&e.data.rels.spouses.length>0){const r="M"===e.data.data.gender?-1:1;e.x+=e.data.rels.spouses.length/2*n*r,e.data.rels.spouses.forEach(((i,o)=>{const a={data:l.find((e=>e.id===i)),added:!0};a.x=e.x-n*(o+1)*r,a.y=e.y,a.sx=o>0?a.x:a.x+n/2*r,a.sy=o>0?a.y:a.y+n/2*r,a.depth=e.depth,a.spouse=e,e.spouses||(e.spouses=[]),e.spouses.push(a),t.push(a)}))}if(e.parents&&2===e.parents.length){const t=e.parents[0],r=e.parents[1],i=t.x-(t.x-r.x)/2,o=(e,t)=>i+n/2*(e.x<t.x?1:-1);r.x=o(t,r),t.x=o(r,t)}}}function _(e){let{tree:t}=e;function n(e){return e?t.find((t=>t.data.id===e)):null}t.forEach((e=>{if(e.is_ancestry)return;if(0===e.depth)return;if(e.added)return;const t=n(e.data.rels.mother),r=n(e.data.rels.father);if(t&&r)t.added||r.added||console.error("no added spouse",t,r),i(e,t.added?t:r);else if(t||r){const n=t||r;n.sx=n.x,n.sy=n.y,i(e,n)}function i(e,t){e.psx=u?t.y:t.sx,e.psy=u?t.sx:t.y}}))}function x(e){let{tree:t}=e;t.forEach((e=>{delete e.children,t.forEach((t=>{t.parent===e&&(t.is_ancestry?(e.parents||(e.parents=[]),e.parents.push(t)):(e.children||(e.children=[]),e.children.push(t)))}))}))}function E(e,t,n){u&&([t,n]=[n,t]);const r=i.extent(e,(e=>e.x)),o=i.extent(e,(e=>e.y));return{width:r[1]-r[0]+t,height:o[1]-o[0]+n,x_off:-r[0]+t/2,y_off:-o[0]+n/2}}function k(e){const t=[];for(let r=0;r<e.length;r++){const t=e[r];if(t.rels.children&&t.rels.children.length>0){t.rels.spouses||(t.rels.spouses=[]);const r="M"===t.data.gender;let i;t.rels.children.forEach((o=>{const a=e.find((e=>e.id===o));a.rels[r?"father":"mother"]===t.id&&(a.rels[r?"mother":"father"]||(i||(i=n(t),t.rels.spouses.push(i.id)),i.rels.children.push(a.id),a.rels[r?"mother":"father"]=i.id))}))}}return t.forEach((t=>e.push(t))),e;function n(e){const n=b({data:{gender:"M"===e.data.gender?"F":"M"},rels:{spouses:[e.id],children:[]}});return n.to_add=!0,t.push(n),n}}}function D(e){let t;const n=e;return n.main_id_history=[],{state:n,updateTree:e=>{n.tree=r(),n.main_id||u(n.tree.main_id),t&&t(e)},updateData:e=>n.data=e,updateMainId:u,getMainId:()=>n.main_id,getData:()=>n.data,getTree:()=>n.tree,setOnUpdate:e=>t=e,getMainDatum:i,getDatum:o,getTreeMainDatum:a,getTreeDatum:s,getLastAvailableMainDatum:l,methods:{}};function r(){return C({data:n.data,main_id:n.main_id,node_separation:n.node_separation,level_separation:n.level_separation,single_parent_empty_card:n.single_parent_empty_card,is_horizontal:n.is_horizontal})}function i(){return n.data.find((e=>e.id===n.main_id))}function o(e){return n.data.find((t=>t.id===e))}function a(){return n.tree?n.tree.data.find((e=>e.data.id===n.main_id)):null}function s(e){return n.tree?n.tree.data.find((t=>t.id===e)):null}function u(e){e!==n.main_id&&(n.main_id_history=n.main_id_history.filter((t=>t!==e)).slice(-10),n.main_id_history.push(e),n.main_id=e)}function l(){let e=n.main_id_history.slice(0).reverse().find((e=>o(e)));return e||(e=n.data[0].id),e!==n.main_id&&u(e),o(e)}}function M(e){let{t:t,svg:n,transition_time:r=2e3}=e;const o=n.__zoomObj?n:n.parentNode,a=o.__zoomObj;i.select(o).transition().duration(r||0).delay(r?100:0).call(a.transform,i.zoomIdentity.scale(t.k).translate(t.x,t.y))}function F(e){let{svg:t,svg_dim:n,tree_dim:r,with_transition:i,transition_time:o}=e;M({t:O(n,r),svg:t,with_transition:i,transition_time:o})}function O(e,t){let n=Math.min(e.width/t.width,e.height/t.height);return n>1&&(n=1),{k:n,x:t.x_off+(e.width-t.width*n)/n/2,y:t.y_off+(e.height-t.height*n)/n/2}}function T(e){let{datum:t,svg:n,svg_dim:r,scale:i,transition_time:o}=e;const a=i||1;M({t:{k:a,x:(r.width/2-t.x*a)/a,y:(r.height/2-t.y)/a},svg:n,with_transition:!0,transition_time:o})}function N(e){let{d:t,tree:n,is_horizontal:r=!1}=e;const i=[];return t.data.rels.spouses&&t.data.rels.spouses.length>0&&s({d:t}),o({d:t}),a({d:t}),i;function o(e){let{d:t}=e;if(!t.parents)return;const n=t.parents[0],r=t.parents[1]||n,o={x:u(n,r,"x"),y:u(n,r,"y")};i.push({d:c(t,o),_d:()=>c({x:t.x,y:t.y},{x:t.x,y:t.y}),curve:!0,id:h(t,n,r),depth:t.depth+1,is_ancestry:!0,source:t,target:[n,r]})}function a(e){let{d:t}=e;t.children&&0!==t.children.length&&t.children.forEach(((e,o)=>{const a=p(e,t,n)||t,s=a.sx,u=r?{x:t.x,y:s}:{x:s,y:t.y};i.push({d:c(e,u),_d:()=>c(u,{x:l(u,"x"),y:l(u,"y")}),curve:!0,id:h(e,t,a),depth:t.depth+1,is_ancestry:!1,source:[t,a],target:e})}))}function s(e){let{d:t}=e;t.data.rels.spouses.forEach((e=>{const r=m(t,n,(t=>t.data.id===e));r&&!t.spouse&&i.push({d:[[t.x,t.y],[r.x,r.y]],_d:()=>[t.is_ancestry?[l(t,"x")-1e-4,l(t,"y")]:[t.x,t.y],t.is_ancestry?[l(r,"x"),l(r,"y")]:[t.x-1e-4,t.y]],curve:!1,id:h(t,r),depth:t.depth,spouse:!0,is_ancestry:r.is_ancestry,source:t,target:r})}))}function u(e,t,n,r){return r?l(e,n)-(l(e,n)-l(t,n))/2:e[n]-(e[n]-t[n])/2}function l(e,t){return e.hasOwnProperty("_"+t)?e["_"+t]:e[t]}function c(e,t){return r?d(e,t):f(e,t)}function f(e,t){const n=e.y+(t.y-e.y)/2;return[[e.x,e.y],[e.x,n],[e.x,n],[t.x,n],[t.x,n],[t.x,t.y]]}function d(e,t){const n=e.x+(t.x-e.x)/2;return[[e.x,e.y],[n,e.y],[n,e.y],[n,t.y],[n,t.y],[t.x,t.y]]}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((e=>e.data.id)).sort().join(", ")}function p(e,t,n){return m(t,n,(n=>n.data.id!==t.data.id&&(n.data.id===e.data.rels.mother||n.data.id===e.data.rels.father)))}function m(e,t,n){const r=t.filter(n),i=(e,t)=>Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2));return r.length>1?r.sort(((t,n)=>i(t,e)-i(n,e)))[0]:r[0]}}function P(e,t,n,r){const i=n.is_ancestry,o=t.data();let a=[],s=[];if(i){const i=[];let u=n,c=0;for(;u!==r.data&&c<100;){c++;const e=o.find((e=>!0===e.spouse&&(e.source===u||e.target===u)));if(e){const t=o.find((t=>Array.isArray(t.target)&&t.target.includes(e.source)&&t.target.includes(e.target)));if(!t)break;i.push(e),i.push(t),u=t.source}else{const e=o.find((e=>Array.isArray(e.target)&&e.target.includes(u)));if(!e)break;i.push(e),u=e.source}}t.each((function(e){i.includes(e)&&a.push({link:e,node:this})}));const f=l(n,i);e.each((function(e){f.includes(e)&&s.push({card:e,node:this})}))}else if(n.spouse&&n.spouse.data===r.data){t.each((function(e){e.target===n&&a.push({link:e,node:this})}));const i=[r,n];e.each((function(e){i.includes(e)&&s.push({card:e,node:this})}))}else{let i=[],c=n,f=0;for(;c!==r.data&&f<100;){f++;const e=o.find((e=>e.target===c&&Array.isArray(e.source)));if(e){const t=o.find((t=>!0===t.spouse&&u([t.source,t.target],e.source)));i.push(e),i.push(t),c=t?t.source:e.source[0]}else{const e=o.find((e=>e.target===c&&!Array.isArray(e.source)));if(!e)break;i.push(e),c=e.source}}t.each((function(e){i.includes(e)&&a.push({link:e,node:this})}));const d=l(r,i);e.each((function(e){d.includes(e)&&s.push({card:e,node:this})}))}return[s,a];function u(e,t){return e.every((e=>t.some((t=>e===t))))}function l(e,t){const i=t.filter((e=>e)).reduce(((e,t)=>(Array.isArray(t.target)?e.push(...t.target):e.push(t.target),Array.isArray(t.source)?e.push(...t.source):e.push(t.source),e)),[]),o=[r,n];return a(e),o;function a(e){e.data.rels.children&&e.data.rels.children.forEach((e=>{const t=i.find((t=>t.data.id===e));t&&(o.push(t),a(t))}))}}}function I(e,t){const n=i.line().curve(i.curveMonotoneY),r=i.line().curve(i.curveBasis),o=t?e._d():e.d;return e.curve?!0===e.curve?r(o):void 0:n(o)}function R(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.data.reduce(((e,n)=>(N({d:n,tree:t.data,is_horizontal:t.is_horizontal}).forEach((t=>e[t.id]=t)),e)),{}),o=Object.values(r),a=i.select(e).select(".links_view").selectAll("path.link").data(o,(e=>e.id)),s=a.exit(),u=a.enter().append("path").attr("class","link"),l=u.merge(a);function c(e){i.select(this).attr("fill","none").attr("stroke","#fff").attr("stroke-width",1).style("opacity",0).attr("d",I(e,!0))}function f(e){const r=i.select(this),o=n.initial?Y(t,e,n.transition_time):0;r.transition("path").duration(n.transition_time).delay(o).attr("d",I(e)).style("opacity",1)}function d(e){const t=i.select(this);t.transition("op").duration(800).style("opacity",0),t.transition("path").duration(n.transition_time).attr("d",I(e,!0)).on("end",(()=>t.remove()))}s.each(d),u.each(c),l.each(f)}function j(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=i.select(e).select(".cards_view").selectAll("g.card_cont").data(t.data,(e=>e.data.id)),a=o.exit(),u=o.enter().append("g").attr("class","card_cont"),l=u.merge(o);function c(e){i.select(this).attr("transform","translate(".concat(e._x,", ").concat(e._y,")")).style("opacity",0),n.call(this,e)}function f(e){}function d(e){n.call(this,e);const o=r.initial?Y(t,e,r.transition_time):0;i.select(this).transition().duration(r.transition_time).delay(o).attr("transform","translate(".concat(e.x,", ").concat(e.y,")")).style("opacity",1)}function h(e){const t=i.select(this);t.transition().duration(r.transition_time).style("opacity",0).attr("transform","translate(".concat(e._x,", ").concat(e._y,")")).on("end",(()=>t.remove()))}a.each((e=>s(e,!1,!0))),u.each((e=>s(e,!0,!1))),a.each(h),o.each(f),u.each(c),l.each(d)}function L(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=i.select(e).select(".cards_view").selectAll("div.card_cont").data(t.data,(e=>e.data.id)),a=o.exit(),u=o.enter().append("div").attr("class","card_cont").style("pointer-events","none"),l=u.merge(o);function c(e){i.select(this).style("position","absolute").style("top","0").style("left","0").style("transform","translate(".concat(e._x,"px, ").concat(e._y,"px)")).style("opacity",0),n.call(this,e)}function f(e){}function d(e){n.call(this,e);const o=r.initial?Y(t,e,r.transition_time):0;i.select(this).transition().duration(r.transition_time).delay(o).style("transform","translate(".concat(e.x,"px, ").concat(e.y,"px)")).style("opacity",1)}function h(e){const t=i.select(this);t.transition().duration(r.transition_time).style("opacity",0).style("transform","translate(".concat(e._x,"px, ").concat(e._y,"px)")).on("end",(()=>t.remove()))}a.each((e=>s(e,!1,!0))),u.each((e=>s(e,!0,!1))),a.each(h),o.each(f),u.each(c),l.each(d)}function B(e,t){const n=i.select(e).selectAll("div.card_cont_2fake").data(t,(e=>e.data.id)),r=n.exit(),o=n.enter().append("div").attr("class","card_cont_2fake").style("display","none").attr("data-id",(()=>Math.random())),a=o.merge(n);function s(e){e.unique_id=i.select(this).attr("data-id")}function u(e){e.unique_id=i.select(this).attr("data-id")}function l(e){e.unique_id=i.select(this).attr("data-id"),i.select(this).remove()}r.each(l),o.each(s),a.each(u)}function z(e){i.select(e()).append("div").attr("class","cards_view_fake").style("display","none")}function U(e){return i.select(e()).select("div.cards_view_fake").node()}function H(e,t){return function(n){const r=n.transform;i.select(e()).style("transform","translate(".concat(r.x,"px, ").concat(r.y,"px) scale(").concat(r.k,") ")),i.select(t()).style("transform","translate(".concat(r.x,"px, ").concat(r.y,"px) scale(").concat(r.k,") "))}}function q(e){let t=[];return function(n){const r=W(n,t);return t=[...n,...r],B(U(e),t),t}}function G(e){const t=i.select(e).select("#f3Canvas").append("div").attr("id","htmlSvg").attr("style","position: absolute; width: 100%; height: 100%; z-index: 2; top: 0; left: 0");return t.append("div").attr("class","cards_view").style("transform-origin","0 0"),z((()=>t.node())),t.node()}function W(e,t){return t.length>0?t.filter((t=>!e.find((e=>e.data.id===t.data.id)))):[]}function V(e){return e.unique_id}var Q=Object.freeze({__proto__:null,assignUniqueIdToTreeData:B,setupHtmlSvg:z,getCardsViewFake:U,onZoomSetup:H,setupReactiveTreeData:q,createHtmlSvg:G,getUniqueId:V});function $(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=i.select(U((()=>e))).selectAll("div.card_cont_fake").data(t.data,(e=>e.data.id)),a=o.exit(),u=o.enter().append("div").attr("class","card_cont_fake").style("display","none"),l=u.merge(o);function c(e){i.select(n(e)).style("position","absolute").style("top","0").style("left","0").style("opacity",0).style("transform","translate(".concat(e._x,"px, ").concat(e._y,"px)"))}function f(e){}function d(e){const o=i.select(n(e)),a=r.initial?Y(t,e,r.transition_time):0;o.transition().duration(r.transition_time).delay(a).style("transform","translate(".concat(e.x,"px, ").concat(e.y,"px)")).style("opacity",1)}function h(e){const t=i.select(n(e)),o=i.select(this);t.transition().duration(r.transition_time).style("opacity",0).style("transform","translate(".concat(e._x,"px, ").concat(e._y,"px)")).on("end",(()=>o.remove()))}a.each((e=>s(e,!1,!0))),u.each((e=>s(e,!0,!1))),a.each(h),o.each(f),u.each(c),l.each(d)}function K(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};r.initial=r.hasOwnProperty("initial")?r.initial:!i.select(t.parentNode).select(".card_cont").node(),r.transition_time=r.hasOwnProperty("transition_time")?r.transition_time:2e3,r.cardComponent?$(r.cardComponent,e,n,r):r.cardHtml?L(r.cardHtml,e,n,r):j(t,e,n,r),R(t,e,r);const o=r.tree_position||"fit";return r.initial?F({svg:t,svg_dim:t.getBoundingClientRect(),tree_dim:e.dim,transition_time:0}):"fit"===o?F({svg:t,svg_dim:t.getBoundingClientRect(),tree_dim:e.dim,transition_time:r.transition_time}):"main_to_middle"===o&&T({datum:e.data[0],svg:t,svg_dim:t.getBoundingClientRect(),scale:r.scale,transition_time:r.transition_time}),!0}function Y(e,t,n){const r=.4*n,i=Math.max(...e.data.map((e=>e.is_ancestry?e.depth:0)));let o=t.depth*r;return 0===t.depth&&!t.spouse||t.is_ancestry||(o+=i*r,t.spouse&&(o+=r),o+=t.depth*r),o}function X(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.getBoundingClientRect(),r='\n <svg class="main_svg">\n <rect width="'.concat(n.width,'" height="').concat(n.height,'" fill="transparent" />\n <g class="view">\n <g class="links_view"></g>\n <g class="cards_view"></g>\n </g>\n <g style="transform: translate(100%, 100%)">\n <g class="fit_screen_icon cursor-pointer" style="transform: translate(-50px, -50px); display: none">\n <rect width="27" height="27" stroke-dasharray="').concat(13.5,'" stroke-dashoffset="').concat(6.75,'" \n style="stroke:#fff;stroke-width:4px;fill:transparent;"/>\n <circle r="5" cx="').concat(13.5,'" cy="').concat(13.5,'" style="fill:#fff" /> \n </g>\n </g>\n </svg>\n '),o=u(e),a=i.create("div").node();a.innerHTML=r;const s=a.querySelector("svg");return o.appendChild(s),e.appendChild(o),Z(o,t),s;function u(e){let t=e.querySelector("#f3Canvas");return t||(t=i.create("div").attr("id","f3Canvas").attr("style","position: relative; overflow: hidden; width: 100%; height: 100%;").node()),t}}function Z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.__zoom)return;const n=e.querySelector(".view"),r=i.zoom().on("zoom",t.onZoom||o);function o(e){i.select(n).attr("transform",e.transform)}function a(e){return!("wheel"===e.type&&!e.ctrlKey)&&!(e.touches&&e.touches.length<2)}i.select(e).call(r),e.__zoomObj=r,t.zoom_polite&&r.filter(a)}function J(e,t){let{d:n}=t;return l(e.getTree().data,!1),e.updateMainId(n.data.id),e.updateTree({tree_position:e.state.tree_fit_on_change}),!0}function ee(e,t){let{d:n,cardEditForm:r}=t;const i=n.data;r({datum:i,postSubmit:t=>{i.to_add&&d(i,e.getData()),t&&t.delete&&(i.main&&e.updateMainId(null),p(i,e.getData())),e.updateTree()},store:e})}function te(e,t){let{d:n}=t;n.data.hide_rels=!n.data.hide_rels,u(n,n.data.hide_rels),e.updateTree({tree_position:e.state.tree_fit_on_change})}function ne(){return'\n <g data-icon="user">\n '.concat(Ce(),'\n <path d="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z" />\n </g>\n ')}function re(){return'\n <g data-icon="user-edit">\n '.concat(Ce(),'\n <path d="M21.7,13.35L20.7,14.35L18.65,12.3L19.65,11.3C19.86,11.09 20.21,11.09 20.42,11.3L21.7,12.58C21.91,\n 12.79 21.91,13.14 21.7,13.35M12,18.94L18.06,12.88L20.11,14.93L14.06,21H12V18.94M12,14C7.58,14 4,15.79 4,\n 18V20H10V18.11L14,14.11C13.34,14.03 12.67,14 12,14M12,4A4,4 0 0,0 8,8A4,4 0 0,0 12,12A4,4 0 0,0 16,8A4,4 0 0,0 12,4Z" />\n </g>\n ')}function ie(){return'\n <g data-icon="user-plus">\n '.concat(Ce(),'\n <path d="M15,14C12.33,14 7,15.33 7,18V20H23V18C23,15.33 17.67,14 15,14M6,10V7H4V10H1V12H4V15H6V12H9V10M15,12A4,4 0 0,0 19,8A4,4 0 0,0 15,4A4,4 0 0,0 11,8A4,4 0 0,0 15,12Z" />\n </g>\n ')}function oe(){return'\n <g data-icon="user-plus-close">\n '.concat(Ce(),'\n <path d="M15,14C12.33,14 7,15.33 7,18V20H23V18C23,15.33 17.67,14 15,14M6,10V7H4V10H1V12H4V15H6V12H9V10M15,12A4,4 0 0,0 19,8A4,4 0 0,0 15,4A4,4 0 0,0 11,8A4,4 0 0,0 15,12Z" />\n <line x1="3" y1="3" x2="24" y2="24" stroke="currentColor" stroke-width="2" />\n </g>\n ')}function ae(){return'\n <g data-icon="plus">\n '.concat(Ce(),'\n <path d="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z" />\n </g>\n ')}function se(){return'\n <g data-icon="pencil">\n '.concat(Ce(),'\n <path d="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z" />\n </g>\n ')}function ue(){return'\n <g data-icon="pencil-off">\n '.concat(Ce(),'\n <path d="M18.66,2C18.4,2 18.16,2.09 17.97,2.28L16.13,4.13L19.88,7.88L21.72,6.03C22.11,5.64 22.11,5 21.72,4.63L19.38,2.28C19.18,2.09 18.91,2 18.66,2M3.28,4L2,5.28L8.5,11.75L4,16.25V20H7.75L12.25,15.5L18.72,22L20,20.72L13.5,14.25L9.75,10.5L3.28,4M15.06,5.19L11.03,9.22L14.78,12.97L18.81,8.94L15.06,5.19Z" />\n </g>\n ')}function le(){return'\n <g data-icon="trash">\n '.concat(Ce(),'\n <path d="M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z" />\n </g>\n ')}function ce(){return'\n <g data-icon="history-back">\n '.concat(Ce(),'\n <path d="M20 13.5C20 17.09 17.09 20 13.5 20H6V18H13.5C16 18 18 16 18 13.5S16 9 13.5 9H7.83L10.91 12.09L9.5 13.5L4 8L9.5 2.5L10.92 3.91L7.83 7H13.5C17.09 7 20 9.91 20 13.5Z" />\n </g>\n ')}function fe(){return'\n <g data-icon="history-forward">\n '.concat(Ce(),'\n <path d="M10.5 18H18V20H10.5C6.91 20 4 17.09 4 13.5S6.91 7 10.5 7H16.17L13.08 3.91L14.5 2.5L20 8L14.5 13.5L13.09 12.09L16.17 9H10.5C8 9 6 11 6 13.5S8 18 10.5 18Z" />\n </g>\n ')}function de(){return'\n <g data-icon="person">\n <path d="M256 288c79.5 0 144-64.5 144-144S335.5 0 256 0 112 \n 64.5 112 144s64.5 144 144 144zm128 32h-55.1c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16H128C57.3 320 0 377.3 \n 0 448v16c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-16c0-70.7-57.3-128-128-128z" />\n </g>\n '}function he(){return'\n <g transform="translate(31,25)" data-icon="mini-tree">\n <rect x="-31" y="-25" width="72" height="15" fill="rgba(0,0,0,0)"></rect>\n <g>\n <rect x="-31" y="-25" width="72" height="15" fill="rgba(0,0,0,0)"></rect>\n <line y2="-17.5" stroke="#fff" />\n <line x1="-20" x2="20" y1="-17.5" y2="-17.5" stroke="#fff" />\n <rect x="-31" y="-25" width="25" height="15" rx="5" ry="5" class="card-male" />\n <rect x="6" y="-25" width="25" height="15" rx="5" ry="5" class="card-female" />\n </g>\n </g>\n '}function pe(){return Ae(ne())}function me(){return Ae(re())}function ge(){return Ae(ie())}function ye(){return Ae(oe())}function ve(){return Ae(ae())}function be(){return Ae(se())}function we(){return Ae(ue())}function _e(){return Ae(le())}function xe(){return Ae(ce())}function Ee(){return Ae(fe())}function ke(){return Ae(de(),"0 0 512 512")}function Se(){return Ae(he(),"0 0 72 25")}function Ae(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0 0 24 24";const n=e.match(/data-icon="([^"]+)"/),r=n?'data-icon="'.concat(n[1],'"'):"";return'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="'.concat(t,'" style="fill: currentColor" ').concat(r,">\n ").concat(e,"\n </svg>\n ")}function Ce(){return'\n <circle r="12" cx="12" cy="12" style="fill: rgba(0,0,0,0)" />\n '}var De=Object.freeze({__proto__:null,userIcon:ne,userEditIcon:re,userPlusIcon:ie,userPlusCloseIcon:oe,plusIcon:ae,pencilIcon:se,pencilOffIcon:ue,trashIcon:le,historyBackIcon:ce,historyForwardIcon:fe,personIcon:de,miniTreeIcon:he,userSvgIcon:pe,userEditSvgIcon:me,userPlusSvgIcon:ge,userPlusCloseSvgIcon:ye,plusSvgIcon:ve,pencilSvgIcon:be,pencilOffSvgIcon:we,trashSvgIcon:_e,historyBackSvgIcon:xe,historyForwardSvgIcon:Ee,personSvgIcon:ke,miniTreeSvgIcon:Se});function Me(e,t){const n=document.createElement("div");return r(),n;function r(){const t=Fe(e);return n.innerHTML=t,i(),n}function i(){const i=n.querySelector("form");i.addEventListener("submit",e.onSubmit);const o=i.querySelector(".f3-cancel-btn");o.addEventListener("click",l);const a=i.querySelector(".f3-edit-btn");a&&a.addEventListener("click",c);const s=i.querySelector(".f3-delete-btn");s&&e.onDelete&&s.addEventListener("click",e.onDelete);const u=i.querySelector(".f3-add-relative-btn");function l(){e.editable=!1,e.onCancel&&e.onCancel(),r()}function c(){e.editable=!e.editable,r()}u&&e.addRelative&&u.addEventListener("click",(()=>{e.addRelativeActive?e.addRelativeCancel():e.addRelative(),e.addRelativeActive=!e.addRelativeActive,r()})),i.querySelector(".f3-close-btn").addEventListener("click",t),e.other_parent_field&&(o.style.display="none")}}function Fe(e){return' \n <form id="familyForm" class="f3-form '.concat(e.editable?"":"non-editable",'">\n ').concat(s(),"\n ").concat(e.title?'<h3 class="f3-form-title">'.concat(e.title,"</h3>"):"",'\n <div style="text-align: right; display: ').concat(e.new_rel?"none":"block",'">\n ').concat(e.addRelative&&!e.no_edit?n():"","\n ").concat(e.no_edit?u():r(),"\n </div>\n ").concat(i(),"\n\n ").concat(o(),"\n\n ").concat(e.other_parent_field?a():"","\n\n ").concat(e.onDelete?t():"",'\n \n <div class="f3-form-buttons">\n <button type="button" class="f3-cancel-btn">Cancel</button>\n <button type="submit">Submit</button>\n </div>\n </form>\n ');function t(){return'\n <div>\n <button type="button" class="f3-delete-btn" '.concat(e.can_delete?"":"disabled",">\n Delete\n </button>\n </div>\n ")}function n(){return'\n <span class="f3-add-relative-btn">\n '.concat(e.addRelativeActive?ye():ge(),"\n </span>\n ")}function r(){return'\n <span class="f3-edit-btn">\n '.concat(e.editable?we():be(),"\n </span>\n ")}function i(){return e.editable?'\n <div class="f3-radio-group">\n '.concat(e.gender_field.options.map((t=>'\n <label>\n <input type="radio" name="'.concat(e.gender_field.id,'" \n value="').concat(t.value,'" \n ').concat(t.value===e.gender_field.initial_value?"checked":"","\n >\n ").concat(t.label,"\n </label>\n "))).join(""),"\n </div>\n "):""}function o(){return e.editable?e.fields.map((e=>"\n ".concat("text"===e.type?'\n <div class="f3-form-field">\n <label>'.concat(e.label,'</label>\n <input type="').concat(e.type,'" \n name="').concat(e.id,'" \n value="').concat(e.initial_value||"",'"\n placeholder="').concat(e.label,'">\n </div>\n '):"textarea"===e.type?'\n <div class="f3-form-field">\n <label>'.concat(e.label,'</label>\n <textarea name="').concat(e.id,'" \n placeholder="').concat(e.label,'">').concat(e.initial_value||"","</textarea>\n </div>\n "):"","\n "))).join(""):t();function t(){return e.fields.map((e=>'\n <div class="f3-info-field">\n <span class="f3-info-field-label">'.concat(e.label,'</span>\n <span class="f3-info-field-value">').concat(e.initial_value||"","</span>\n </div>\n "))).join("")}}function a(){return'\n <div class="f3-form-field">\n <label>'.concat(e.other_parent_field.label,'</label>\n <select name="').concat(e.other_parent_field.id,'">\n ').concat(e.other_parent_field.options.map((t=>'\n <option value="'.concat(t.value,'" \n ').concat(t.value===e.other_parent_field.initial_value?"selected":"",">\n ").concat(t.label,"\n </option>\n "))).join(""),"\n </select>\n </div>\n ")}function s(){return'\n <span class="f3-close-btn">\n \xd7\n </span>\n '}function u(){return'<div style="height: 24px;"></div>'}}function Oe(e,t,n){let r=[],i=-1;return{changed:o,back:a,forward:s,canForward:u,canBack:l};function o(){i<r.length-1&&(r=r.slice(0,i));const n=JSON.parse(m(JSON.stringify(t())));n.main_id=e.getMainId(),r.push(n),i++}function a(){l()&&(i--,c(r[i]))}function s(){u()&&(i++,c(r[i]))}function u(){return i<r.length-1}function l(){return i>0}function c(t){e.updateMainId(t.main_id),e.updateData(t),n()}}function Te(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const r=i.select(e).append("div").attr("class","f3-history-controls"),o=r.append("button").attr("class","f3-back-button").on("click",(()=>{t.back(),s(),n()})),a=r.append("button").attr("class","f3-forward-button").on("click",(()=>{t.forward(),s(),n()}));return o.html(xe()),a.html(Ee()),{back_btn:o.node(),forward_btn:a.node(),updateButtons:s,destroy:u};function s(){o.classed("disabled",!t.canBack()),a.classed("disabled",!t.canForward()),r.style("display",t.canBack()||t.canForward()?null:"none")}function u(){t=null,i.select(e).select(".f3-history-controls").remove()}}var Ne=Object.freeze({__proto__:null,manualZoom:S,isAllRelativeDisplayed:A,cardChangeMain:J,cardEdit:ee,cardShowHideRels:te,handleRelsOfNewDatum:y,handleNewRel:v,createNewPerson:b,createNewPersonWithGenderFromRel:w,addNewPerson:_,createTreeDataWithMainNode:x,addNewPersonAndHandleRels:E,checkIfRelativesConnectedWithoutPerson:c,createForm:f,moveToAddToAdded:d,removeToAdd:h,deletePerson:p,cleanupDataJson:m,removeToAddFromData:g,formInfoSetup:Me,createHistory:Oe,createHistoryControls:Te,treeFit:F,calculateTreeFit:O,cardToMiddle:T});function Pe(e){let{d:t,card_dim:n,card_display:r}=e;return{template:'\n <g class="card-body">\n <rect width="'.concat(n.w,'" height="').concat(n.h,'" class="card-body-rect" />\n ').concat(Ie({d:t,card_dim:n,card_display:r}).template,"\n </g>\n ")}}function Ie(e){let{d:t,card_dim:n,card_display:r}=e;return{template:'\n <g>\n <g class="card-text" clip-path="url(#card_text_clip)">\n <g transform="translate('.concat(n.text_x,", ").concat(n.text_y,')">\n <text>\n ').concat(Array.isArray(r)?r.map((e=>'<tspan x="'.concat(0,'" dy="',14,'">',e(t.data),"</tspan>"))).join("\n"):r(t.data),'\n </text>\n </g>\n </g>\n <rect width="').concat(n.w-10,'" height="').concat(n.h,'" style="mask: url(#fade)" class="text-overflow-mask" /> \n </g>\n ')}}function Re(e){let{d:t,card_dim:n,card_add:r,label:i}=e;return{template:'\n <g class="card-body '.concat(r?"card_add":"card-unknown",'">\n <rect class="card-body-rect" width="').concat(n.w,'" height="').concat(n.h,'" fill="rgb(59, 85, 96)" />\n <text transform="translate(').concat(n.w/2,", ").concat(n.h/2,')" text-anchor="middle" fill="#fff">\n <tspan font-size="18" dy="',8,'">').concat(i,"</tspan>\n </text>\n </g>\n ")}}function je(e){let{d:t,card_dim:n,is_new:r}=e;return{template:'\n <rect width="'.concat(n.w,'" height="').concat(n.h,'" rx="4" ry="4" class="card-outline ').concat(t.data.main&&!r?"card-main-outline":""," ").concat(r?"card-new-outline":"",'" />\n ')}}function Le(e){let{d:t,card_dim:n,x:r,y:i}=e;return{template:'\n <g transform="translate('.concat(r||n.w-20,",").concat(i||n.h-20,')scale(.6)" style="cursor: pointer" class="card_edit pencil_icon">\n <circle fill="rgba(0,0,0,0)" r="17" cx="8.5" cy="8.5" />\n <path fill="currentColor" transform="translate(-1.5, -1.5)"\n d="M19.082,2.123L17.749,0.79c-1.052-1.052-2.766-1.054-3.819,0L1.925,12.794c-0.06,0.06-0.104,0.135-0.127,0.216\n l-1.778,6.224c-0.05,0.175-0.001,0.363,0.127,0.491c0.095,0.095,0.223,0.146,0.354,0.146c0.046,0,0.092-0.006,0.137-0.02\n l6.224-1.778c0.082-0.023,0.156-0.066,0.216-0.127L19.082,5.942C20.134,4.89,20.134,3.176,19.082,2.123z M3.076,13.057l9.428-9.428\n l3.738,3.739l-9.428,9.428L3.076,13.057z M2.566,13.961l3.345,3.344l-4.683,1.339L2.566,13.961z M18.375,5.235L16.95,6.66\n l-3.738-3.739l1.425-1.425c0.664-0.663,1.741-0.664,2.405,0l1.333,1.333C19.038,3.493,19.038,4.572,18.375,5.235z"/>\n </g>\n ')}}function Be(e){let{d:t,card_dim:n}=e;return{template:'\n <g class="card_family_tree" style="cursor: pointer">\n <rect x="-31" y="-25" width="72" height="15" fill="rgba(0,0,0,0)"></rect>\n <g transform="translate('.concat(.8*n.w,',6)scale(.9)">\n <rect x="-31" y="-25" width="72" height="15" fill="rgba(0,0,0,0)"></rect>\n <line y2="-17.5" stroke="#fff" />\n <line x1="-20" x2="20" y1="-17.5" y2="-17.5" stroke="#fff" />\n <rect x="-31" y="-25" width="25" height="15" rx="5" ry="5" class="card-male" />\n <rect x="6" y="-25" width="25" height="15" rx="5" ry="5" class="card-female" />\n </g>\n </g>\n ')}}function ze(e){let{d:t,card_dim:n,x:r,y:i}=e;return{template:'\n <g class="card_add_relative">\n <g transform="translate('.concat(r||n.w/2,",").concat(i||n.h,')scale(.13)">\n <circle r="80" cx="40" cy="40" fill="rgba(0,0,0,0)" />\n <g transform="translate(-10, -8)">\n <line\n x1="10" x2="90" y1="50" y2="50"\n stroke="currentColor" stroke-width="15" stroke-linecap="round"\n />\n <line\n x1="50" x2="50" y1="10" y2="90"\n stroke="currentColor" stroke-width="15" stroke-linecap="round"\n />\n </g>\n </g>\n </g>\n ')}}function Ue(e){let{x:t,y:n,rt:r,closed:i}=e;return{template:'\n <g style="\n transform: translate(-12.2px, -.5px);\n cursor: pointer;\n " \n fill="currentColor" class="card_break_link'.concat(i?" closed":"",'"\n >\n <g style="transform: translate(').concat(t,"px,").concat(n,"px)scale(.02)rotate(").concat(r+"deg",')">\n <rect width="1000" height="700" y="150" style="opacity: 0" />\n <g class="link_upper">\n <g>\n <path d="M616.3,426.4c19,4.5,38.1-7.4,42.6-26.4c4.4-19-7.4-38-26.5-42.5L522.5,332c-18,11.1-53.9,33.4-53.9,33.4l80.4,18.6c-7.8,4.9-19.5,12.1-31.3,19.4L616.3,426.4L616.3,426.4z"/>\n <path d="M727.4,244.2c-50.2-11.6-100.3,3.3-135.7,35.4c28.6,22.6,64.5,30.2,116.4,51.3l141,32.6c23.9,5.6,56.6,47.2,51.1,71l-4.1,17c-5.6,23.7-47.3,56.4-71.2,51l-143.4-33.2c-66.8-8.6-104.1-16.6-132.9-7.5c17.4,44.9,55.9,80.8,106.5,92.4L800.9,588c81.3,18.8,162.3-31.5,181.2-112.4l4-17c18.8-81.1-31.7-161.8-112.9-180.6L727.4,244.2z"/>\n </g>\n </g>\n <g class="link_lower">\n <path d="M421.2,384.9l-128,127.6c-13.9,13.8-13.9,36.2,0,50s36.3,13.8,50.2,0.1l136.2-135.8v-36.7l-58.4,58.1V384.9L421.2,384.9z"/>\n <path d="M204.6,742.8c-17.4,17.3-63.3,17.2-80.6,0.1l-12.3-12.3c-17.3-17.3,0.6-81.2,17.9-98.5l100.2-99.9c12.5-14.9,45.8-40.8,66.1-103.7c-47.7-9.4-98.9,4.2-135.8,40.9L54.2,575c-58.9,58.8-58.9,154,0,212.8L66.6,800c58.9,58.8,154.5,58.8,213.4,0l105.8-105.6c38.4-38.3,51.3-91.9,39.7-141c-44,22.7-89,62.3-116,84.8L204.6,742.8z"/>\n </g>\n <g class="link_particles">\n <path d="M351.9,248.4l-26.5,63.4l80.6,30.1L351.9,248.4z"/>\n <path d="M529.3,208l-43,26.6l35.4,52.3L529.3,208z"/>\n <path d="M426.6,158.8l-44-2.9l61.7,134.6L426.6,158.8z"/>\n </g>\n </g>\n </g>\n ')}}function He(e){let{d:t,card_dim:n}=e,r="",i=t.data.rels,o=t.data._rels||{},a=t.data.hide_rels,s=e=>e.father||e.mother,u=e=>e.children&&e.children.length>0;if((t.is_ancestry||t.data.main)&&(s(i)||s(o))&&(r+=Ue({x:n.w/2,y:0,rt:-45,closed:a}).template),!t.is_ancestry&&t.added){const e=t.spouse,s=e.data.rels,l=e.data._rels||{};(u(i)||u(o))&&(u(s)||u(l))&&(r+=Ue({x:t.sx-t.x+n.w/2+24.4,y:(t.x!==t.sx?n.h/2:n.h)+1,rt:135,closed:a}).template)}return{template:r}}function qe(e){let{d:t,image:n,card_dim:r,maleIcon:i,femaleIcon:o}=e;return{template:'\n <g style="transform: translate('.concat(r.img_x,"px,").concat(r.img_y,'px);" class="card_image" clip-path="url(#card_image_clip)">\n ').concat(n?'<image href="'.concat(n,'" height="').concat(r.img_h,'" width="').concat(r.img_w,'" preserveAspectRatio="xMidYMin slice" />'):"F"===t.data.data.gender&&o?o({card_dim:r}):"M"===t.data.data.gender&&i?i({card_dim:r}):a()," \n </g>\n ")};function a(){return'\n <g class="genderless-icon">\n <rect height="'.concat(r.img_h,'" width="').concat(r.img_w,'" fill="rgb(59, 85, 96)" />\n <g transform="scale(').concat(.001616*r.img_w,')">\n <path transform="translate(50,40)" fill="lightgrey" d="M256 288c79.5 0 144-64.5 144-144S335.5 0 256 0 112 \n 64.5 112 144s64.5 144 144 144zm128 32h-55.1c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16H128C57.3 320 0 377.3 \n 0 448v16c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-16c0-70.7-57.3-128-128-128z" />\n </g>\n </g>\n ')}}function Ge(e,t,n){const r=document.createElementNS("http://www.w3.org/2000/svg","g");r.innerHTML=e,n?t.insertBefore(r,t.firstChild):t.appendChild(r)}const We={miniTree:Ve,lineBreak:Qe,cardBody:$e,cardImage:Ke,cardEdit:Ye,cardAdd:Xe};function Ve(e,t){if(e.data.to_add)return;const n=t.card_dim;if(e.all_rels_displayed)return;const r=i.create("svg:g").html(Be({d:e,card_dim:n}).template);return r.on("click",(function(n){n.stopPropagation(),t.onMiniTreeClick?t.onMiniTreeClick.call(this,n,e):J(t.store,{d:e})})),r.node()}function Qe(e,t){if(e.data.to_add)return;const n=t.card_dim,r=i.create("svg:g").html(He({d:e,card_dim:n}).template);return r.on("click",(n=>{n.stopPropagation(),te(t.store,{d:e})})),r.node()}function $e(e,t){const n=t.cardEditForm?"ADD":"UNKNOWN",r=t.card_dim;let o;return e.data.to_add?(o=i.create("svg:g").html(Re({d:e,card_dim:r,card_add:t.cardEditForm,label:n}).template),o.on("click",(n=>{n.stopPropagation(),ee(t.store,{d:e,cardEditForm:t.cardEditForm})}))):(o=i.create("svg:g").html(Pe({d:e,card_dim:r,card_display:t.card_display}).template),o.on("click",(function(n){n.stopPropagation(),t.onCardClick?t.onCardClick.call(this,n,e):J(t.store,{d:e})}))),o.node()}function Ke(e,t){if(e.data.to_add)return;const n=t.card_dim;return i.create("svg:g").html(qe({d:e,image:e.data.data.avatar||null,card_dim:n,maleIcon:null,femaleIcon:null}).template).node()}function Ye(e,t){if(e.data.to_add)return;const n=t.card_dim,r=i.create("svg:g").html(Le({card_dim:n,x:n.w-46,y:n.h-20}).template);return r.on("click",(n=>{n.stopPropagation(),ee(t.store,{d:e,cardEditForm:t.cardEditForm})})),r.node()}function Xe(e,t){if(e.data.to_add)return;const n=t.card_dim,r=i.create("svg:g").html(ze({card_dim:n,x:n.w-26,y:n.h-20}).template);return r.on("click",(n=>{n.stopPropagation(),t.addRelative({d:e})})),r.node()}function Ze(e,t,n){e&&(n?t.insertBefore(e,t.firstChild):t.appendChild(e))}function Je(e,t){function n(e,t,n){const{w:r,h:i}=e,o=t,a=n||[],s=e=>a.includes(e),u=s("lx")?"M0,0":"M0,".concat(o," Q 0,0 5,0"),l=s("rx")?"H".concat(r):"H".concat(r-o," Q ").concat(r,",0 ").concat(r,",5"),c=s("ry")?"V".concat(i):"V".concat(i-o," Q ").concat(r,",").concat(i," ").concat(r-o,",").concat(i),f=s("ly")?"H0":"H".concat(o," Q 0,").concat(i," 0,").concat(i-o);return"".concat(u," ").concat(l," ").concat(c," ").concat(f," z")}e.querySelector("defs#f3CardDef")||e.insertAdjacentHTML("afterbegin",'\n <defs id="f3CardDef">\n <linearGradient id="fadeGrad">\n <stop offset="0.9" stop-color="white" stop-opacity="0"/>\n <stop offset=".91" stop-color="white" stop-opacity=".5"/>\n <stop offset="1" stop-color="white" stop-opacity="1"/>\n </linearGradient>\n <mask id="fade" maskContentUnits="objectBoundingBox"><rect width="1" height="1" fill="url(#fadeGrad)"/></mask>\n <clipPath id="card_clip"><path d="'.concat(n({w:t.w,h:t.h},5),'"></clipPath>\n <clipPath id="card_text_clip"><rect width="').concat(t.w-10,'" height="').concat(t.h,'"></rect></clipPath>\n <clipPath id="card_image_clip"><path d="M0,0 Q 0,0 0,0 H').concat(t.img_w," V").concat(t.img_h," H0 Q 0,").concat(t.img_h," 0,").concat(t.img_h,' z"></clipPath>\n <clipPath id="card_image_clip_curved"><path d="').concat(n({w:t.img_w,h:t.img_h},5,["rx","ry"]),'"></clipPath>\n </defs>\n '))}function et(e,t){e.querySelector("defs#f3CardDef")&&e.querySelector("defs#f3CardDef").remove(),Je(e,t)}function tt(e){return Je((e=t(e)).svg,e.card_dim),function(t){const n="M"===t.data.data.gender?"card-male":"F"===t.data.data.gender?"card-female":"card-genderless",r=e.card_dim,o=i.create("svg:g").attr("class","card ".concat(n)).attr("transform","translate(".concat([-r.w/2,-r.h/2],")"));o.append("g").attr("class","card-inner").attr("clip-path","url(#card_clip)"),this.innerHTML="",this.appendChild(o.node()),Ge(je({d:t,card_dim:r,is_new:t.data.to_add}).template,o.node(),!0),Ze(We.cardBody(t,e),this.querySelector(".card-inner")),e.img&&Ze(We.cardImage(t,e),this.querySelector(".card")),e.mini_tree&&Ze(We.miniTree(t,e),this.querySelector(".card"),!0),e.link_break&&Ze(We.lineBreak(t,e),this.querySelector(".card")),e.cardEditForm&&(Ze(We.cardEdit(t,e),this.querySelector(".card-inner")),Ze(We.cardAdd(t,e),this.querySelector(".card-inner"))),e.onCardUpdates&&e.onCardUpdates.map((e=>e.call(this,t))),e.onCardUpdate&&e.onCardUpdate.call(this,t)};function t(e){const t={img:!0,mini_tree:!0,link_break:!1,card_dim:{w:220,h:70,text_x:75,text_y:15,img_w:60,img_h:60,img_x:5,img_y:5}};e||(e={});for(const n in t)"undefined"===typeof e[n]&&(e[n]=t[n]);return e}}function nt(e){const t="default"===e.style?c:"imageCircleRect"===e.style?l:"imageCircle"===e.style?f:"imageRect"===e.style?d:"rect"===e.style?h:c;return function(n){this.innerHTML='\n <div class="card '.concat(p(n).join(" "),'" data-id="').concat(n.data.id,'" style="transform: translate(-50%, -50%); pointer-events: auto;">\n ').concat(e.mini_tree?u(n):"","\n ").concat(t(n),"\n </div>\n "),this.querySelector(".card").addEventListener("click",(t=>e.onCardClick(t,n))),e.onCardUpdate&&e.onCardUpdate.call(this,n),e.onCardMouseenter&&i.select(this).select(".card").on("mouseenter",(t=>e.onCardMouseenter(t,n))),e.onCardMouseleave&&i.select(this).select(".card").on("mouseleave",(t=>e.onCardMouseleave(t,n)))};function n(e){return'\n <div class="card-inner card-image-circle" '.concat(m(),">\n ").concat(e.data.data.avatar?'<img src="'.concat(e.data.data.avatar,'" ').concat(g(),">"):y(e),'\n <div class="card-label">').concat(a(e),"</div>\n </div>\n ")}function r(e){return'\n <div class="card-inner card-image-rect" '.concat(m(),">\n ").concat(e.data.data.avatar?'<img src="'.concat(e.data.data.avatar,'" ').concat(g(),">"):y(e),'\n <div class="card-label">').concat(a(e),"</div>\n </div>\n ")}function o(e){return'\n <div class="card-inner card-rect" '.concat(m(),">\n ").concat(a(e),"\n </div>\n ")}function a(t){return t.data._new_rel_data?s(t):t.data.to_add?"<div>".concat(e.empty_card_label||"ADD","</div>"):"\n ".concat(e.card_display.map((e=>"<div>".concat(e(t.data),"</div>"))).join(""),"\n ")}function s(e){const t=[];return t.push('data-rel-type="'.concat(e.data._new_rel_data.rel_type,'"')),["son","daughter"].includes(e.data._new_rel_data.rel_type)&&t.push('data-other-parent-id="'.concat(e.data._new_rel_data.other_parent_id,'"')),"<div ".concat(t.join(" "),">").concat(e.data._new_rel_data.label,"</div>")}function u(t){return e.mini_tree?t.data.to_add||t.data._new_rel_data||t.all_rels_displayed?"":'<div class="mini-tree">'.concat(Se(),"</div>"):""}function l(e){return e.data.data.avatar?f(e):h(e)}function c(e){return r(e)}function f(e){return n(e)}function d(e){return r(e)}function h(e){return o(e)}function p(e){const t=[];return"M"===e.data.data.gender?t.push("card-male"):"F"===e.data.data.gender?t.push("card-female"):t.push("card-genderless"),e.data.main&&t.push("card-main"),e.data._new_rel_data&&t.push("card-new-rel"),e.data.to_add&&t.push("card-to-add"),t}function m(){let t='style="';return e.card_dim.w||e.card_dim.h?(t+="width: ".concat(e.card_dim.w,"px; min-height: ").concat(e.card_dim.h,"px;"),e.card_dim.height_auto?t+="height: auto;":t+="height: ".concat(e.card_dim.h,"px;"),t+='"',t):""}function g(){let t='style="position: relative;';return e.card_dim.img_w||e.card_dim.img_h||e.card_dim.img_x||e.card_dim.img_y?(t+="width: ".concat(e.card_dim.img_w,"px; height: ").concat(e.card_dim.img_h,"px;"),t+="left: ".concat(e.card_dim.img_x,"px; top: ").concat(e.card_dim.img_y,"px;"),t+='"',t):""}function y(e){return e.data._new_rel_data?'<div class="person-icon" '.concat(g(),">").concat(ve(),"</div>"):'<div class="person-icon" '.concat(g(),">").concat(ke(),"</div>")}}var rt=Object.freeze({__proto__:null,appendElement:Ze,Card:tt,CardHtml:nt}),it=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new ot(...t)};function ot(e,t,n){return this.store=e,this.cancelCallback=t,this.onSubmitCallback=n,this.datum=null,this.onChange=null,this.onCancel=null,this.is_active=!1,this.store_data=null,this.addRelLabels=this.addRelLabelsDefault(),this}function at(e,t,n){const r=ut(e,t);if(!e.rels.father){const t=b({data:{gender:"M"},rels:{children:[e.id]}});t._new_rel_data={rel_type:"father",label:n.father},e.rels.father=t.id,r.push(t)}if(!e.rels.mother){const t=b({data:{gender:"F"},rels:{children:[e.id]}});t._new_rel_data={rel_type:"mother",label:n.mother},e.rels.mother=t.id,r.push(t)}const i=r.find((t=>t.id===e.rels.mother)),o=r.find((t=>t.id===e.rels.father));if(i.rels.spouses=[o.id],o.rels.spouses=[i.id],i.rels.children=[e.id],o.rels.children=[e.id],e.rels.spouses||(e.rels.spouses=[]),e.rels.children){let t;e.rels.children.forEach((i=>{const o=r.find((e=>e.id===i));o.rels.mother||(t||(t=b({data:{gender:"F"},rels:{spouses:[e.id],children:[]}})),t._new_rel_data={rel_type:"spouse",label:n.spouse},t.rels.children.push(o.id),e.rels.spouses.push(t.id),o.rels.mother=t.id,r.push(t)),o.rels.father||(t||(t=b({data:{gender:"M"},rels:{spouses:[e.id],children:[]}})),t._new_rel_data={rel_type:"spouse",label:n.spouse},t.rels.children.push(o.id),e.rels.spouses.push(t.id),o.rels.father=t.id,r.push(t))}))}const a=b({data:{gender:"F"},rels:{spouses:[e.id]}});return a._new_rel_data={rel_type:"spouse",label:n.spouse},e.rels.spouses.push(a.id),r.push(a),e.rels.children||(e.rels.children=[]),e.rels.spouses.forEach((t=>{const i=r.find((e=>e.id===t));i.rels.children||(i.rels.children=[]),i.rels.children=i.rels.children.filter((t=>e.rels.children.includes(t)));const o=b({data:{gender:"M"},rels:{father:e.id,mother:i.id}});o._new_rel_data={rel_type:"son",label:n.son,other_parent_id:i.id},i.rels.children.push(o.id),e.rels.children.push(o.id),r.push(o);const a=b({data:{gender:"F"},rels:{mother:i.id,father:e.id}});a._new_rel_data={rel_type:"daughter",label:n.daughter,other_parent_id:i.id},i.rels.children.push(a.id),e.rels.children.push(a.id),r.push(a)})),r}function st(e,t){return JSON.parse(JSON.stringify(e.find((e=>e.id===t))))}function ut(e,t){const n=[e];return Object.keys(e.rels).forEach((t=>{const n=e.rels[t];Array.isArray(n)?n.forEach((e=>{r(t,e)})):r(t,n)})),n;function r(e,r){const i=st(t,r);"father"!==e&&"mother"!==e||(delete i.rels.father,delete i.rels.mother),"children"===e&&(i.rels.children=[],i.rels.spouses=[]),n.push(i)}}function lt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new ct(...t)}function ct(e,t){return this.cont=e,this.store=t,this.fields=[{type:"text",label:"first name",id:"first name"},{type:"text",label:"last name",id:"last name"},{type:"text",label:"birthday",id:"birthday"},{type:"text",label:"avatar",id:"avatar"}],this.form_cont=null,this.is_fixed=!0,this.history=null,this.no_edit=!1,this.onChange=null,this.editFirst=!1,this.init(),this}function ft(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new dt(...t)}function dt(e,t){return this.cont=null,this.store=null,this.svg=null,this.getCard=null,this.node_separation=250,this.level_separation=150,this.is_horizontal=!1,this.single_parent_empty_card=!0,this.transition_time=2e3,this.is_card_html=!1,this.beforeUpdate=null,this.afterUpdate=null,this.init(e,t),this}function ht(e){return"string"===typeof e&&(e=document.querySelector(e)),e}function pt(e){const t=[];return Array.isArray(e)?e.forEach((e=>{"function"===typeof e?t.push(e):"string"===typeof e?t.push((t=>t.data[e])):Array.isArray(e)&&t.push((t=>e.map((e=>t.data[e])).join(" ")))})):"function"===typeof e?t.push(e):"string"===typeof e&&t.push((t=>t.data[e])),t}function mt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new gt(...t)}function gt(e,t){return this.cont=e,this.store=t,this.svg=null,this.getCard=null,this.card_dim={w:220,h:70,text_x:75,text_y:15,img_w:60,img_h:60,img_x:5,img_y:5},this.card_display=[e=>"".concat(e.data["first name"]," ").concat(e.data["last name"])],this.mini_tree=!0,this.link_break=!1,this.onCardClick=this.onCardClickDefault,this.onCardUpdate=null,this.onCardUpdates=null,this.init(),this}function yt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new vt(...t)}function vt(e,t){return this.cont=e,this.store=t,this.getCard=null,this.card_display=[e=>"".concat(e.data["first name"]," ").concat(e.data["last name"])],this.onCardClick=this.onCardClickDefault,this.style="default",this.mini_tree=!1,this.onCardUpdate=null,this.card_dim={},this.init(),this}ot.prototype.activate=function(e){this.is_active&&this.onCancel(),this.is_active=!0;const t=this.store;this.store_data=t.getData(),this.datum=e;const n=at(e=JSON.parse(JSON.stringify(this.datum)),this.getStoreData(),this.addRelLabels);function r(e){if(null!==e&&void 0!==e&&e._new_rel_data){const t=e;v({datum:this.datum,new_rel_datum:t,data_stash:this.getStoreData()}),this.onSubmitCallback(this.datum,t)}else e.id===this.datum.id?this.datum.data=e.data:console.error("Something went wrong")}function i(){this.is_active&&(this.is_active=!1,t.updateData(this.getStoreData()),this.cancelCallback(this.datum),this.store_data=null,this.datum=null,this.onChange=null,this.onCancel=null)}t.updateData(n),t.updateTree({}),this.onChange=r.bind(this),this.onCancel=i.bind(this)},ot.prototype.setAddRelLabels=function(e){if("object"===typeof e){for(let t in e)this.addRelLabels[t]=e[t];return this}console.error("add_rel_labels must be an object")},ot.prototype.addRelLabelsDefault=function(){return{father:"Add Father",mother:"Add Mother",spouse:"Add Spouse",son:"Add Son",daughter:"Add Daughter"}},ot.prototype.getStoreData=function(){return this.store_data},ct.prototype.init=function(){this.form_cont=i.select(this.cont).append("div").classed("f3-form-cont",!0).node(),this.addRelativeInstance=this.setupAddRelative(),this.createHistory()},ct.prototype.open=function(e){e.data.data&&(e=e.data),this.addRelativeInstance.is_active&&!e._new_rel_data&&(this.addRelativeInstance.onCancel(),e=this.store.getDatum(e.id)),this.cardEditForm(e)},ct.prototype.openWithoutRelCancel=function(e){e.data.data&&(e=e.data),this.cardEditForm(e)},ct.prototype.cardEditForm=function(e){const t={};(null===e||void 0===e?void 0:e._new_rel_data)?t.onCancel=()=>this.addRelativeInstance.onCancel():(t.addRelative=this.addRelativeInstance,t.deletePerson=()=>{const t=this.store.getData();p(e,t),this.store.updateData(t),this.openFormWithId(this.store.getLastAvailableMainDatum().id),this.store.updateTree({})});const n=bt.handlers.createForm(r({store:this.store,datum:e,postSubmit:o.bind(this),fields:this.fields,card_display:this.card_display,addRelative:null,onCancel:()=>{},editFirst:this.editFirst},t));n.no_edit=this.no_edit;const i=bt.handlers.formInfoSetup(n,this.closeForm.bind(this));function o(t){this.addRelativeInstance.is_active?this.addRelativeInstance.onChange(e):null!==t&&void 0!==t&&t.delete||this.openFormWithId(e.id),this.is_fixed||this.closeForm(),this.store.updateTree({}),this.updateHistory()}this.form_cont.innerHTML="",this.form_cont.appendChild(i),this.openForm()},ct.prototype.openForm=function(){i.select(this.form_cont).classed("opened",!0)},ct.prototype.closeForm=function(){i.select(this.form_cont).classed("opened",!1).html(""),this.store.updateTree({})},ct.prototype.fixed=function(){return this.is_fixed=!0,i.select(this.form_cont).style("position","relative"),this},ct.prototype.absolute=function(){return this.is_fixed=!1,i.select(this.form_cont).style("position","absolute"),this},ct.prototype.setCardClickOpen=function(e){return e.setOnCardClick(((e,t)=>{this.addRelativeInstance.is_active?this.open(t):(this.open(t),this.store.updateMainId(t.data.id),this.store.updateTree({}))})),this},ct.prototype.openFormWithId=function(e){if(e){const t=this.store.getDatum(e);this.openWithoutRelCancel({data:t})}else{const e=this.store.getMainDatum();this.openWithoutRelCancel({data:e})}},ct.prototype.createHistory=function(){return this.history=bt.handlers.createHistory(this.store,this.getStoreData.bind(this),e.bind(this)),this.history.controls=bt.handlers.createHistoryControls(this.cont,this.history),this.history.changed(),this.history.controls.updateButtons(),this;function e(){var e;this.addRelativeInstance.is_active&&this.addRelativeInstance.onCancel(),this.store.updateTree({initial:!1}),this.history.controls.updateButtons(),this.openFormWithId(null===(e=this.store.getMainDatum())||void 0===e?void 0:e.id)}},ct.prototype.setNoEdit=function(){return this.no_edit=!0,this},ct.prototype.setEdit=function(){return this.no_edit=!1,this},ct.prototype.setFields=function(e){const t=[];if(!Array.isArray(e))return console.error("fields must be an array"),this;for(const n of e)"string"===typeof n?t.push({type:"text",label:n,id:n}):"object"===typeof n?n.id?t.push(n):console.error("fields must be an array of objects with id property"):console.error("fields must be an array of strings or objects");return this.fields=t,this},ct.prototype.setOnChange=function(e){return this.onChange=e,this},ct.prototype.addRelative=function(e){return e||(e=this.store.getMainDatum()),this.addRelativeInstance.activate(e),this},ct.prototype.setupAddRelative=function(){return it(this.store,t.bind(this),e.bind(this));function e(e,t){this.store.updateMainId(e.id),this.openFormWithId(e.id)}function t(e){this.store.updateMainId(e.id),this.store.updateTree({}),this.openFormWithId(e.id)}},ct.prototype.setEditFirst=function(e){return this.editFirst=e,this},ct.prototype.isAddingRelative=function(){return this.addRelativeInstance.is_active},ct.prototype.setAddRelLabels=function(e){return this.addRelativeInstance.setAddRelLabels(e),this},ct.prototype.getStoreData=function(){return this.addRelativeInstance.is_active?this.addRelativeInstance.getStoreData():this.store.getData()},ct.prototype.getDataJson=function(e){const t=this.getStoreData();return bt.handlers.cleanupDataJson(JSON.stringify(t))},ct.prototype.updateHistory=function(){this.history&&(this.history.changed(),this.history.controls.updateButtons()),this.onChange&&this.onChange()},ct.prototype.destroy=function(){return this.history.controls.destroy(),this.history=null,i.select(this.cont).select(".f3-form-cont").remove(),this.addRelativeInstance.onCancel&&this.addRelativeInstance.onCancel(),this.store.updateTree({}),this},dt.prototype.init=function(e,t){this.cont=e=ht(e);const n=()=>e.querySelector("svg .view"),r=()=>e.querySelector("#htmlSvg"),i=()=>e.querySelector("#htmlSvg .cards_view");this.svg=bt.createSvg(e,{onZoom:bt.htmlHandlers.onZoomSetup(n,i)}),bt.htmlHandlers.createHtmlSvg(e),this.store=bt.createStore({data:t,node_separation:this.node_separation,level_separation:this.level_separation,single_parent_empty_card:this.single_parent_empty_card,is_horizontal:this.is_horizontal}),this.setCard(bt.CardSvg),this.store.setOnUpdate((e=>{this.beforeUpdate&&this.beforeUpdate(e),e=Object.assign({transition_time:this.transition_time},e||{}),this.is_card_html&&(e=Object.assign({},e||{},{cardHtml:r()})),bt.view(this.store.getTree(),this.svg,this.getCard(),e||{}),this.afterUpdate&&this.afterUpdate(e)}))},dt.prototype.updateTree=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{initial:!1};return this.store.updateTree(e),this},dt.prototype.updateData=function(e){return this.store.updateData(e),this},dt.prototype.setCardYSpacing=function(e){return"number"!==typeof e?(console.error("card_y_spacing must be a number"),this):(this.level_separation=e,this.store.state.level_separation=e,this)},dt.prototype.setCardXSpacing=function(e){return"number"!==typeof e?(console.error("card_x_spacing must be a number"),this):(this.node_separation=e,this.store.state.node_separation=e,this)},dt.prototype.setOrientationVertical=function(){return this.is_horizontal=!1,this.store.state.is_horizontal=!1,this},dt.prototype.setOrientationHorizontal=function(){return this.is_horizontal=!0,this.store.state.is_horizontal=!0,this},dt.prototype.setSingleParentEmptyCard=function(e){let{label:t="Unknown"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.single_parent_empty_card=e,this.store.state.single_parent_empty_card=e,this.store.state.single_parent_empty_card_label=t,this.editTreeInstance&&this.editTreeInstance.addRelativeInstance.is_active&&this.editTreeInstance.addRelativeInstance.onCancel(),bt.handlers.removeToAddFromData(this.store.getData()||[]),this},dt.prototype.setCard=function(e){this.is_card_html=e.is_html,this.is_card_html?(this.svg.querySelector(".cards_view").innerHTML="",this.cont.querySelector("#htmlSvg").style.display="block"):(this.cont.querySelector("#htmlSvg .cards_view").innerHTML="",this.cont.querySelector("#htmlSvg").style.display="none");const t=e(this.cont,this.store);return this.getCard=()=>t.getCard(),t},dt.prototype.setTransitionTime=function(e){return this.transition_time=e,this},dt.prototype.editTree=function(){return this.editTreeInstance=lt(this.cont,this.store)},dt.prototype.updateMain=function(e){return this.store.updateMainId(e.data.id),this.store.updateTree({}),this},dt.prototype.updateMainId=function(e){return this.store.updateMainId(e),this},dt.prototype.getMainDatum=function(){return this.store.getMainDatum()},dt.prototype.getDataJson=function(e){const t=this.store.getData();return bt.handlers.cleanupDataJson(JSON.stringify(t))},dt.prototype.updateData=function(e){this.store.updateData(e)},dt.prototype.setBeforeUpdate=function(e){return this.beforeUpdate=e,this},dt.prototype.setAfterUpdate=function(e){return this.afterUpdate=e,this},mt.is_html=!1,gt.prototype.init=function(){this.svg=this.cont.querySelector("svg.main_svg"),this.getCard=()=>bt.elements.Card({store:this.store,svg:this.svg,card_dim:this.card_dim,card_display:this.card_display,mini_tree:this.mini_tree,link_break:this.link_break,onCardClick:this.onCardClick,onCardUpdate:this.onCardUpdate,onCardUpdates:this.onCardUpdates})},gt.prototype.setCardDisplay=function(e){return this.card_display=pt(e),this},gt.prototype.setCardDim=function(e){if("object"!==typeof e)return console.error("card_dim must be an object"),this;for(let t in e){const n=e[t];if("number"!==typeof n)return console.error("card_dim.".concat(t," must be a number")),this;"width"===t&&(t="w"),"height"===t&&(t="h"),this.card_dim[t]=n}return et(this.svg,this.card_dim),this},gt.prototype.setMiniTree=function(e){return this.mini_tree=e,this},gt.prototype.setLinkBreak=function(e){return this.link_break=e,this},gt.prototype.setCardTextSvg=function(e){function t(t){i.select(this).select(".card-text text").node().parentNode.innerHTML=e(t.data)}return t.id="setCardTextSvg",this.onCardUpdates||(this.onCardUpdates=[]),this.onCardUpdates=this.onCardUpdates.filter((e=>"setCardTextSvg"!==e.id)),this.onCardUpdates.push(t),this},gt.prototype.onCardClickDefault=function(e,t){this.store.updateMainId(t.data.id),this.store.updateTree({})},gt.prototype.setOnCardClick=function(e){return this.onCardClick=e,this},yt.is_html=!0,vt.prototype.is_html=!0,vt.prototype.init=function(){this.svg=this.cont.querySelector("svg.main_svg"),this.getCard=()=>bt.elements.CardHtml({store:this.store,card_display:this.card_display,onCardClick:this.onCardClick,style:this.style,mini_tree:this.mini_tree,onCardUpdate:this.onCardUpdate,card_dim:this.card_dim,empty_card_label:this.store.state.single_parent_empty_card_label,onCardMouseenter:this.onCardMouseenter?this.onCardMouseenter.bind(this):null,onCardMouseleave:this.onCardMouseleave?this.onCardMouseleave.bind(this):null})},vt.prototype.setCardDisplay=function(e){return this.card_display=pt(e),this},vt.prototype.setOnCardClick=function(e){return this.onCardClick=e,this},vt.prototype.onCardClickDefault=function(e,t){this.store.updateMainId(t.data.id),this.store.updateTree({})},vt.prototype.setStyle=function(e){return this.style=e,this},vt.prototype.setMiniTree=function(e){return this.mini_tree=e,this},vt.prototype.setOnCardUpdate=function(e){return this.onCardUpdate=e,this},vt.prototype.setCardDim=function(e){if("object"!==typeof e)return console.error("card_dim must be an object"),this;for(let t in e){const n=e[t];if("number"!==typeof n&&"boolean"!==typeof n)return console.error("card_dim.".concat(t," must be a number or boolean")),this;"width"===t&&(t="w"),"height"===t&&(t="h"),"img_width"===t&&(t="img_w"),"img_height"===t&&(t="img_h"),"img_x"===t&&(t="img_x"),"img_y"===t&&(t="img_y"),this.card_dim[t]=n}return this},vt.prototype.resetCardDim=function(){return this.card_dim={},this},vt.prototype.setOnHoverPathToMain=function(){return this.onCardMouseenter=this.onEnterPathToMain.bind(this),this.onCardMouseleave=this.onLeavePathToMain.bind(this),this},vt.prototype.unsetOnHoverPathToMain=function(){return this.onCardMouseenter=null,this.onCardMouseleave=null,this},vt.prototype.onEnterPathToMain=function(e,t){this.to_transition=t.data.id;const n=this.store.getTreeMainDatum(),r=i.select(this.cont).select("div.cards_view").selectAll(".card_cont"),o=i.select(this.cont).select("svg.main_svg .links_view").selectAll(".link"),[a,s]=P(r,o,t,n);return a.forEach((e=>{const n=200*Math.abs(t.depth-e.card.depth);i.select(e.node.querySelector("div.card-inner")).transition().duration(0).delay(n).on("end",(()=>this.to_transition===t.data.id&&i.select(e.node.querySelector("div.card-inner")).classed("f3-path-to-main",!0)))})),s.forEach((e=>{const n=200*Math.abs(t.depth-e.link.depth);i.select(e.node).transition().duration(0).delay(n).on("end",(()=>this.to_transition===t.data.id&&i.select(e.node).classed("f3-path-to-main",!0)))})),this},vt.prototype.onLeavePathToMain=function(e,t){return this.to_transition=!1,i.select(this.cont).select("div.cards_view").selectAll("div.card-inner").classed("f3-path-to-main",!1),i.select(this.cont).select("svg.main_svg .links_view").selectAll(".link").classed("f3-path-to-main",!1),this};var bt={CalculateTree:C,createStore:D,view:K,createSvg:X,handlers:Ne,elements:rt,htmlHandlers:Q,icons:De,createChart:ft,CardSvg:mt,CardHtml:yt};return bt}(n(409))},8191:(e,t,n)=>{"use strict";n.d(t,{$:()=>ce,$1:()=>be,a8:()=>fe,he:()=>pe});var r={},i=Uint8Array,o=Uint16Array,a=Int32Array,s=new i([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),u=new i([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),l=new i([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(e,t){for(var n=new o(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new a(n[30]);for(r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)i[s]=s-n[r]<<5|r;return{b:n,r:i}},f=c(s,2),d=f.b,h=f.r;d[28]=258,h[258]=28;for(var p=c(u,0),m=p.b,g=p.r,y=new o(32768),v=0;v<32768;++v){var b=(43690&v)>>1|(21845&v)<<1;b=(61680&(b=(52428&b)>>2|(13107&b)<<2))>>4|(3855&b)<<4,y[v]=((65280&b)>>8|(255&b)<<8)>>1}var w=function(e,t,n){for(var r=e.length,i=0,a=new o(t);i<r;++i)e[i]&&++a[e[i]-1];var s,u=new o(t);for(i=1;i<t;++i)u[i]=u[i-1]+a[i-1]<<1;if(n){s=new o(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var c=i<<4|e[i],f=t-e[i],d=u[e[i]-1]++<<f,h=d|(1<<f)-1;d<=h;++d)s[y[d]>>l]=c}else for(s=new o(r),i=0;i<r;++i)e[i]&&(s[i]=y[u[e[i]-1]++]>>15-e[i]);return s},_=new i(288);for(v=0;v<144;++v)_[v]=8;for(v=144;v<256;++v)_[v]=9;for(v=256;v<280;++v)_[v]=7;for(v=280;v<288;++v)_[v]=8;var x=new i(32);for(v=0;v<32;++v)x[v]=5;var E=w(_,9,0),k=w(_,9,1),S=w(x,5,0),A=w(x,5,1),C=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},D=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},M=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},F=function(e){return(e+7)/8|0},O=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new i(e.subarray(t,n))},T=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],N=function(e,t,n){var r=new Error(t||T[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,N),!n)throw r;return r},P=function(e,t,n,r){var o=e.length,a=r?r.length:0;if(!o||t.f&&!t.l)return n||new i(0);var c=!n,f=c||2!=t.i,h=t.i;c&&(n=new i(3*o));var p=function(e){var t=n.length;if(e>t){var r=new i(Math.max(2*t,e));r.set(n),n=r}},g=t.f||0,y=t.p||0,v=t.b||0,b=t.l,_=t.d,x=t.m,E=t.n,S=8*o;do{if(!b){g=D(e,y,1);var T=D(e,y+1,3);if(y+=3,!T){var P=e[(W=F(y)+4)-4]|e[W-3]<<8,I=W+P;if(I>o){h&&N(0);break}f&&p(v+P),n.set(e.subarray(W,I),v),t.b=v+=P,t.p=y=8*I,t.f=g;continue}if(1==T)b=k,_=A,x=9,E=5;else if(2==T){var R=D(e,y,31)+257,j=D(e,y+10,15)+4,L=R+D(e,y+5,31)+1;y+=14;for(var B=new i(L),z=new i(19),U=0;U<j;++U)z[l[U]]=D(e,y+3*U,7);y+=3*j;var H=C(z),q=(1<<H)-1,G=w(z,H,1);for(U=0;U<L;){var W,V=G[D(e,y,q)];if(y+=15&V,(W=V>>4)<16)B[U++]=W;else{var Q=0,$=0;for(16==W?($=3+D(e,y,3),y+=2,Q=B[U-1]):17==W?($=3+D(e,y,7),y+=3):18==W&&($=11+D(e,y,127),y+=7);$--;)B[U++]=Q}}var K=B.subarray(0,R),Y=B.subarray(R);x=C(K),E=C(Y),b=w(K,x,1),_=w(Y,E,1)}else N(1);if(y>S){h&&N(0);break}}f&&p(v+131072);for(var X=(1<<x)-1,Z=(1<<E)-1,J=y;;J=y){var ee=(Q=b[M(e,y)&X])>>4;if((y+=15&Q)>S){h&&N(0);break}if(Q||N(2),ee<256)n[v++]=ee;else{if(256==ee){J=y,b=null;break}var te=ee-254;if(ee>264){var ne=s[U=ee-257];te=D(e,y,(1<<ne)-1)+d[U],y+=ne}var re=_[M(e,y)&Z],ie=re>>4;re||N(3),y+=15&re;Y=m[ie];if(ie>3){ne=u[ie];Y+=M(e,y)&(1<<ne)-1,y+=ne}if(y>S){h&&N(0);break}f&&p(v+131072);var oe=v+te;if(v<Y){var ae=a-Y,se=Math.min(Y,oe);for(ae+v<0&&N(3);v<se;++v)n[v]=r[ae+v]}for(;v<oe;++v)n[v]=n[v-Y]}}t.l=b,t.p=J,t.b=v,t.f=g,b&&(g=1,t.m=x,t.d=_,t.n=E)}while(!g);return v!=n.length&&c?O(n,0,v):n.subarray(0,v)},I=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},R=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},j=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var a=n.length,s=n.slice();if(!a)return{t:G,l:0};if(1==a){var u=new i(n[0].s+1);return u[n[0].s]=1,{t:u,l:1}}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var l=n[0],c=n[1],f=0,d=1,h=2;for(n[0]={s:-1,f:l.f+c.f,l:l,r:c};d!=a-1;)l=n[n[f].f<n[h].f?f++:h++],c=n[f!=d&&n[f].f<n[h].f?f++:h++],n[d++]={s:-1,f:l.f+c.f,l:l,r:c};var p=s[0].s;for(r=1;r<a;++r)s[r].s>p&&(p=s[r].s);var m=new o(p+1),g=L(n[d-1],m,0);if(g>t){r=0;var y=0,v=g-t,b=1<<v;for(s.sort((function(e,t){return m[t.s]-m[e.s]||e.f-t.f}));r<a;++r){var w=s[r].s;if(!(m[w]>t))break;y+=b-(1<<g-m[w]),m[w]=t}for(y>>=v;y>0;){var _=s[r].s;m[_]<t?y-=1<<t-m[_]++-1:++r}for(;r>=0&&y;--r){var x=s[r].s;m[x]==t&&(--m[x],++y)}g=t}return{t:new i(m),l:g}},L=function(e,t,n){return-1==e.s?Math.max(L(e.l,t,n+1),L(e.r,t,n+1)):t[e.s]=n},B=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new o(++t),r=0,i=e[0],a=1,s=function(e){n[r++]=e},u=1;u<=t;++u)if(e[u]==i&&u!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=e[u]}return{c:n.subarray(0,r),n:t}},z=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},U=function(e,t,n){var r=n.length,i=F(t+2);e[i]=255&r,e[i+1]=r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},H=function(e,t,n,r,i,a,c,f,d,h,p){I(t,p++,n),++i[256];for(var m=j(i,15),g=m.t,y=m.l,v=j(a,15),b=v.t,k=v.l,A=B(g),C=A.c,D=A.n,M=B(b),F=M.c,O=M.n,T=new o(19),N=0;N<C.length;++N)++T[31&C[N]];for(N=0;N<F.length;++N)++T[31&F[N]];for(var P=j(T,7),L=P.t,H=P.l,q=19;q>4&&!L[l[q-1]];--q);var G,W,V,Q,$=h+5<<3,K=z(i,_)+z(a,x)+c,Y=z(i,g)+z(a,b)+c+14+3*q+z(T,L)+2*T[16]+3*T[17]+7*T[18];if(d>=0&&$<=K&&$<=Y)return U(t,p,e.subarray(d,d+h));if(I(t,p,1+(Y<K)),p+=2,Y<K){G=w(g,y,0),W=g,V=w(b,k,0),Q=b;var X=w(L,H,0);I(t,p,D-257),I(t,p+5,O-1),I(t,p+10,q-4),p+=14;for(N=0;N<q;++N)I(t,p+3*N,L[l[N]]);p+=3*q;for(var Z=[C,F],J=0;J<2;++J){var ee=Z[J];for(N=0;N<ee.length;++N){var te=31&ee[N];I(t,p,X[te]),p+=L[te],te>15&&(I(t,p,ee[N]>>5&127),p+=ee[N]>>12)}}}else G=E,W=_,V=S,Q=x;for(N=0;N<f;++N){var ne=r[N];if(ne>255){R(t,p,G[(te=ne>>18&31)+257]),p+=W[te+257],te>7&&(I(t,p,ne>>23&31),p+=s[te]);var re=31≠R(t,p,V[re]),p+=Q[re],re>3&&(R(t,p,ne>>5&8191),p+=u[re])}else R(t,p,G[ne]),p+=W[ne]}return R(t,p,G[256]),p+W[256]},q=new a([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),G=new i(0),W=function(e,t,n,r,l,c){var f=c.z||e.length,d=new i(r+f+5*(1+Math.ceil(f/7e3))+l),p=d.subarray(r,d.length-l),m=c.l,y=7&(c.r||0);if(t){y&&(p[0]=c.r>>3);for(var v=q[t-1],b=v>>13,w=8191&v,_=(1<<n)-1,x=c.p||new o(32768),E=c.h||new o(_+1),k=Math.ceil(n/3),S=2*k,A=function(t){return(e[t]^e[t+1]<<k^e[t+2]<<S)&_},C=new a(25e3),D=new o(288),M=new o(32),T=0,N=0,P=c.i||0,I=0,R=c.w||0,j=0;P+2<f;++P){var L=A(P),B=32767&P,z=E[L];if(x[B]=z,E[L]=B,R<=P){var G=f-P;if((T>7e3||I>24576)&&(G>423||!m)){y=H(e,p,0,C,D,M,N,I,j,P-j,y),I=T=N=0,j=P;for(var W=0;W<286;++W)D[W]=0;for(W=0;W<30;++W)M[W]=0}var V=2,Q=0,$=w,K=B-z&32767;if(G>2&&L==A(P-K))for(var Y=Math.min(b,G)-1,X=Math.min(32767,P),Z=Math.min(258,G);K<=X&&--$&&B!=z;){if(e[P+V]==e[P+V-K]){for(var J=0;J<Z&&e[P+J]==e[P+J-K];++J);if(J>V){if(V=J,Q=K,J>Y)break;var ee=Math.min(K,J-2),te=0;for(W=0;W<ee;++W){var ne=P-K+W&32767,re=ne-x[ne]&32767;re>te&&(te=re,z=ne)}}}K+=(B=z)-(z=x[B])&32767}if(Q){C[I++]=268435456|h[V]<<18|g[Q];var ie=31&h[V],oe=31&g[Q];N+=s[ie]+u[oe],++D[257+ie],++M[oe],R=P+V,++T}else C[I++]=e[P],++D[e[P]]}}for(P=Math.max(P,R);P<f;++P)C[I++]=e[P],++D[e[P]];y=H(e,p,m,C,D,M,N,I,j,P-j,y),m||(c.r=7&y|p[y/8|0]<<3,y-=7,c.h=E,c.p=x,c.i=P,c.w=R)}else{for(P=c.w||0;P<f+m;P+=65535){var ae=P+65535;ae>=f&&(p[y/8|0]=m,ae=f),y=U(p,y+1,e.subarray(P,ae))}c.i=f}return O(d,0,r+F(y)+l)},V=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=0|n.length,a=0;a!=o;){for(var s=Math.min(a+2655,o);a<s;++a)i+=r+=n[a];r=(65535&r)+15*(r>>16),i=(65535&i)+15*(i>>16)}e=r,t=i},d:function(){return(255&(e%=65521))<<24|(65280&e)<<8|(255&(t%=65521))<<8|t>>8}}},Q=function(e,t,n,r,o){if(!o&&(o={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),s=new i(a.length+e.length);s.set(a),s.set(e,a.length),e=s,o.w=a.length}return W(e,null==t.level?6:t.level,null==t.mem?o.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,r,o)},$=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},K=function(e,t,n){for(var r=e(),i=e.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),a=0;a<r.length;++a){var s=r[a],u=o[a];if("function"==typeof s){t+=";"+u+"=";var l=s.toString();if(s.prototype)if(-1!=l.indexOf("[native code]")){var c=l.indexOf(" ",8)+1;t+=l.slice(c,l.indexOf("(",c))}else for(var f in t+=l,s.prototype)t+=";"+u+".prototype."+f+"="+s.prototype[f].toString();else t+=l}else n[u]=s}return t},Y=[],X=function(e,t,n,i){if(!Y[n]){for(var o="",a={},s=e.length-1,u=0;u<s;++u)o=K(e[u],o,a);Y[n]={c:K(e[s],o,a),e:a}}var l=$({},Y[n].e);return function(e,t,n,i,o){var a=new Worker(r[t]||(r[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(e){var t=e.data,n=t.$e$;if(n){var r=new Error(n[0]);r.code=n[1],r.stack=n[2],o(r,null)}else o(null,t)},a.postMessage(n,i),a}(Y[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,l,function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t}(l),i)},Z=function(){return[i,o,a,s,u,l,d,m,k,A,y,T,w,C,D,M,F,O,N,P,le,J,ee]},J=function(e){return postMessage(e,[e.buffer])},ee=function(e){return e&&{out:e.size&&new i(e.size),dictionary:e.dictionary}},te=function(e,t,n,r,i,o){var a=X(n,r,i,(function(e,t){a.terminate(),o(e,t)}));return a.postMessage([e,t],t.consume?[e.buffer]:[]),function(){a.terminate()}},ne=function(e,t){return e[t]|e[t+1]<<8},re=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},ie=function(e,t){return re(e,t)+4294967296*re(e,t+4)},oe=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},ae=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=V();i.p(t.dictionary),oe(e,2,i.d())}},se=function(e,t){return(8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31)&&N(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&N(6,"invalid zlib data: "+(32&e[1]?"need":"unexpected")+" dictionary"),2+(e[1]>>3&4)};function ue(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&N(7),te(e,t,[Z],(function(e){return J(le(e.data[0],ee(e.data[1])))}),1,n)}function le(e,t){return P(e,{i:2},t&&t.out,t&&t.dictionary)}function ce(e,t){t||(t={});var n=V();n.p(e);var r=Q(e,t,t.dictionary?6:2,4);return ae(r,t),oe(r,r.length-4,n.d()),r}function fe(e,t){return P(e.subarray(se(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var de="undefined"!=typeof TextDecoder&&new TextDecoder;try{de.decode(G,{stream:!0})}catch(we){}var he=function(e){for(var t="",n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:O(e,n-1)};i?3==i?(r=((15&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536,t+=String.fromCharCode(55296|r>>10,56320|1023&r)):t+=1&i?String.fromCharCode((31&r)<<6|63&e[n++]):String.fromCharCode((15&r)<<12|(63&e[n++])<<6|63&e[n++]):t+=String.fromCharCode(r)}};function pe(e,t){if(t){for(var n="",r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}if(de)return de.decode(e);var i=he(e),o=i.s;return(n=i.r).length&&N(8),o}var me=function(e,t){return t+30+ne(e,t+26)+ne(e,t+28)},ge=function(e,t,n){var r=ne(e,t+28),i=pe(e.subarray(t+46,t+46+r),!(2048&ne(e,t+8))),o=t+46+r,a=re(e,t+20),s=n&&4294967295==a?ye(e,o):[a,re(e,t+24),re(e,t+42)],u=s[0],l=s[1],c=s[2];return[ne(e,t+10),u,l,i,o+ne(e,t+30)+ne(e,t+32),c]},ye=function(e,t){for(;1!=ne(e,t);t+=4+ne(e,t+2));return[ie(e,t+12),ie(e,t+4),ie(e,t+20)]};var ve="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(e){e()};function be(e,t,n){n||(n=t,t={}),"function"!=typeof n&&N(7);var r=[],o=function(){for(var e=0;e<r.length;++e)r[e]()},a={},s=function(e,t){ve((function(){n(e,t)}))};ve((function(){s=n}));for(var u=e.length-22;101010256!=re(e,u);--u)if(!u||e.length-u>65558)return s(N(13,0,1),null),o;var l=ne(e,u+8);if(l){var c=l,f=re(e,u+16),d=4294967295==f||65535==c;if(d){var h=re(e,u-12);(d=101075792==re(e,h))&&(c=l=re(e,h+32),f=re(e,h+48))}for(var p=t&&t.filter,m=function(t){var n=ge(e,f,d),c=n[0],h=n[1],m=n[2],g=n[3],y=n[4],v=n[5],b=me(e,v);f=y;var w=function(e,t){e?(o(),s(e,null)):(t&&(a[g]=t),--l||s(null,a))};if(!p||p({name:g,size:h,originalSize:m,compression:c}))if(c)if(8==c){var _=e.subarray(b,b+h);if(m<524288||h>.8*m)try{w(null,le(_,{out:new i(m)}))}catch(u){w(u,null)}else r.push(ue(_,{size:m},w))}else w(N(14,"unknown compression type "+c,1),null);else w(null,O(e,b,b+h));else w(null,null)},g=0;g<c;++g)m()}else s(null,{});return o}},4691:function(e,t,n){var r,i,o;i=[],void 0===(o="function"===typeof(r=function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function r(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){u(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,t,n){var s=a.URL||a.webkitURL,u=document.createElement("a");t=t||e.name||"download",u.download=t,u.rel="noopener","string"==typeof e?(u.href=e,u.origin===location.origin?o(u):i(u.href)?r(e,t,n):o(u,u.target="_blank")):(u.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){o(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,a),n);else if(i(e))r(e,n,a);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){o(s)}))}}:function(e,t,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return r(e,t,n);var o="application/octet-stream"===e.type,u=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&u||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},c.readAsDataURL(e)}else{var f=a.URL||a.webkitURL,d=f.createObjectURL(e);i?i.location=d:location.href=d,i=null,setTimeout((function(){f.revokeObjectURL(d)}),4e4)}});a.saveAs=u.saveAs=u,e.exports=u})?r.apply(t,i):r)||(e.exports=o)},5520:e=>{e.exports="object"==typeof self?self.FormData:window.FormData},8307:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!==typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n}(arguments,1),s=n(0,i.length-a.length),u=[],l=0;l<s;l++)u[l]="$"+l;if(o=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var t=i.apply(this,r(a,arguments));return Object(t)===t?t:this}return i.apply(e,r(a,arguments))})),i.prototype){var c=function(){};c.prototype=i.prototype,o.prototype=new c,c.prototype=null}return o}},6989:(e,t,n)=>{"use strict";var r=n(8307);e.exports=Function.prototype.bind||r},7375:(e,t,n)=>{"use strict";var r,i=n(6954),o=n(6953),a=n(3123),s=n(3780),u=n(8768),l=n(7430),c=n(7277),f=n(1619),d=n(4960),h=n(8974),p=n(2938),m=n(6516),g=n(5158),y=n(7856),v=n(8707),b=Function,w=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(t){}},_=n(4553),x=n(6709),E=function(){throw new c},k=_?function(){try{return E}catch(e){try{return _(arguments,"callee").get}catch(t){return E}}}():E,S=n(757)(),A=n(6054),C=n(5266),D=n(6298),M=n(1264),F=n(7858),O={},T="undefined"!==typeof Uint8Array&&A?A(Uint8Array):r,N={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":S&&A?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":O,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&A?A(A([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&S&&A?A((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&S&&A?A((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&A?A(""[Symbol.iterator]()):r,"%Symbol%":S?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":k,"%TypedArray%":T,"%TypeError%":c,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet,"%Function.prototype.call%":F,"%Function.prototype.apply%":M,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":C,"%Math.abs%":d,"%Math.floor%":h,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":v,"%Reflect.getPrototypeOf%":D};if(A)try{null.error}catch(Q){var P=A(A(Q));N["%Error.prototype%"]=P}var I=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&A&&(n=A(i.prototype))}return N[t]=n,n},R={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},j=n(6989),L=n(2155),B=j.call(F,Array.prototype.concat),z=j.call(M,Array.prototype.splice),U=j.call(F,String.prototype.replace),H=j.call(F,String.prototype.slice),q=j.call(F,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,V=function(e,t){var n,r=e;if(L(R,r)&&(r="%"+(n=R[r])[0]+"%"),L(N,r)){var i=N[r];if(i===O&&(i=I(r)),"undefined"===typeof i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=H(e,0,1),n=H(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return U(e,G,(function(e,t,n,i){r[r.length]=n?U(i,W,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=V("%"+r+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(r=u[0],z(n,B([0,1],u)));for(var f=1,d=!0;f<n.length;f+=1){var h=n[f],p=H(h,0,1),m=H(h,-1);if(('"'===p||"'"===p||"`"===p||'"'===m||"'"===m||"`"===m)&&p!==m)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&d||(s=!0),L(N,o="%"+(r+="."+h)+"%"))a=N[o];else if(null!=a){if(!(h in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(_&&f+1>=n.length){var g=_(a,h);a=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[h]}else d=L(a,h),a=a[h];d&&!s&&(N[o]=a)}}return a}},5266:(e,t,n)=>{"use strict";var r=n(6954);e.exports=r.getPrototypeOf||null},6298:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect.getPrototypeOf||null},6054:(e,t,n)=>{"use strict";var r=n(6298),i=n(5266),o=n(7042);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},1555:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},4553:(e,t,n)=>{"use strict";var r=n(1555);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},7734:(e,t,n)=>{"use strict";var r=n(6709),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},757:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(3175);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},3175:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},5550:(e,t,n)=>{"use strict";var r=n(3175);e.exports=function(){return r()&&!!Symbol.toStringTag}},2155:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(6989);e.exports=o.call(r,i)},3876:(e,t,n)=>{"use strict";var r=n(630),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=u(t),m=u(n),g=0;g<a.length;++g){var y=a[g];if(!o[y]&&(!r||!r[y])&&(!m||!m[y])&&(!s||!s[y])){var v=d(n,y);try{l(t,y,v)}catch(b){}}}}return t}},2138:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case g:case m:case u:return e;default:return t}}case i:return t}}}function x(e){return _(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||_(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===f||e===s||e===a||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=_},630:(e,t,n)=>{"use strict";e.exports=n(2138)},6897:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*m}},150:(e,t,n)=>{"use strict";n.d(t,{B:()=>r,v:()=>i});class r extends Map{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(o(this,e))}has(e){return super.has(o(this,e))}set(e,t){return super.set(a(this,e),t)}delete(e){return super.delete(s(this,e))}}class i extends Set{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const n of e)this.add(n)}has(e){return super.has(o(this,e))}add(e){return super.add(a(this,e))}delete(e){return super.delete(s(this,e))}}function o(e,t){let{_intern:n,_key:r}=e;const i=r(t);return n.has(i)?n.get(i):t}function a(e,t){let{_intern:n,_key:r}=e;const i=r(t);return n.has(i)?n.get(i):(n.set(i,t),t)}function s(e,t){let{_intern:n,_key:r}=e;const i=r(t);return n.has(i)&&(t=n.get(t),n.delete(i)),t}function u(e){return null!==e&&"object"===typeof e?e.valueOf():e}},8412:e=>{function t(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},6806:e=>{"use strict";var t,n,r=Function.prototype.toString,i="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof i&&"function"===typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(h){h!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(n){return!1}},s=function(e){try{return!a(e)&&(r.call(e),!0)}catch(t){return!1}},u=Object.prototype.toString,l="function"===typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),f=function(){return!1};if("object"===typeof document){var d=document.all;u.call(d)===u.call(document.all)&&(f=function(e){if((c||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(n){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{i(e,null,t)}catch(r){if(r!==n)return!1}return!a(e)&&s(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(l)return s(e);if(a(e))return!1;var t=u.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},4866:(e,t,n)=>{"use strict";var r=n(690),i=r("Date.prototype.getDay"),o=r("Object.prototype.toString"),a=n(5550)();e.exports=function(e){return"object"===typeof e&&null!==e&&(a?function(e){try{return i(e),!0}catch(t){return!1}}(e):"[object Date]"===o(e))}},2157:(e,t,n)=>{"use strict";var r,i=n(690),o=n(5550)(),a=n(2155),s=n(4553);if(o){var u=i("RegExp.prototype.exec"),l={},c=function(){throw l},f={toString:c,valueOf:c};"symbol"===typeof Symbol.toPrimitive&&(f[Symbol.toPrimitive]=c),r=function(e){if(!e||"object"!==typeof e)return!1;var t=s(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{u(e,f)}catch(n){return n===l}}}else{var d=i("Object.prototype.toString");r=function(e){return!(!e||"object"!==typeof e&&"function"!==typeof e)&&"[object RegExp]"===d(e)}}e.exports=r},5334:(e,t,n)=>{"use strict";var r=n(690),i=r("Object.prototype.toString"),o=n(757)(),a=n(2695);if(o){var s=r("Symbol.prototype.toString"),u=a(/^Symbol\(.*\)$/);e.exports=function(e){if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||"[object Symbol]"!==i(e))return!1;try{return function(e){return"symbol"===typeof e.valueOf()&&u(s(e))}(e)}catch(t){return!1}}}else e.exports=function(e){return!1}},2576:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},3586:e=>{e.exports=function e(t,n){"use strict";var r,i,o=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,a=/(^[ ]*|[ ]*$)/g,s=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,u=/^0x[0-9a-f]+$/i,l=/^0/,c=function(t){return e.insensitive&&(""+t).toLowerCase()||""+t},f=c(t).replace(a,"")||"",d=c(n).replace(a,"")||"",h=f.replace(o,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),p=d.replace(o,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),m=parseInt(f.match(u),16)||1!==h.length&&f.match(s)&&Date.parse(f),g=parseInt(d.match(u),16)||m&&d.match(s)&&Date.parse(d)||null;if(g){if(m<g)return-1;if(m>g)return 1}for(var y=0,v=Math.max(h.length,p.length);y<v;y++){if(r=!(h[y]||"").match(l)&&parseFloat(h[y])||h[y]||0,i=!(p[y]||"").match(l)&&parseFloat(p[y])||p[y]||0,isNaN(r)!==isNaN(i))return isNaN(r)?1:-1;if(typeof r!==typeof i&&(r+="",i+=""),r<i)return-1;if(r>i)return 1}return 0}},3131:function(e){e.exports=function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function t(n,r){function i(t,i,o){if("undefined"!==typeof document){"number"===typeof(o=e({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=t+"="+n.write(i,t)+a}}function o(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],r={},i=0;i<t.length;i++){var o=t[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=n.read(a,s),e===s)break}catch(u){}}return e?r[e]:r}}return Object.create({set:i,get:o,remove:function(t,n){i(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}return t({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()},5425:e=>{"use strict";for(var t=function(e){return null!==e&&!Array.isArray(e)&&"object"===typeof e},n={3:"Cancel",6:"Help",8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",28:"Convert",29:"NonConvert",30:"Accept",31:"ModeChange",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",42:"Print",43:"Execute",44:"PrintScreen",45:"Insert",46:"Delete",48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],91:"OS",93:"ContextMenu",144:"NumLock",145:"ScrollLock",181:"VolumeMute",182:"VolumeDown",183:"VolumeUp",186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"},r=0;r<24;r+=1)n[112+r]="F"+(r+1);for(var i=0;i<26;i+=1){var o=i+65;n[o]=[String.fromCharCode(o+32),String.fromCharCode(o)]}var a={codes:n,getCode:function(e){return t(e)?e.keyCode||e.which||this[e.key]:this[e]},getKey:function(e){var r=t(e);if(r&&e.key)return e.key;var i=n[r?e.keyCode||e.which:e];return Array.isArray(i)&&(i=r?i[e.shiftKey?1:0]:i[0]),i},Cancel:3,Help:6,Backspace:8,Tab:9,Clear:12,Enter:13,Shift:16,Control:17,Alt:18,Pause:19,CapsLock:20,Escape:27,Convert:28,NonConvert:29,Accept:30,ModeChange:31," ":32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Select:41,Print:42,Execute:43,PrintScreen:44,Insert:45,Delete:46,0:48,")":48,1:49,"!":49,2:50,"@":50,3:51,"#":51,4:52,$:52,5:53,"%":53,6:54,"^":54,7:55,"&":55,8:56,"*":56,9:57,"(":57,a:65,A:65,b:66,B:66,c:67,C:67,d:68,D:68,e:69,E:69,f:70,F:70,g:71,G:71,h:72,H:72,i:73,I:73,j:74,J:74,k:75,K:75,l:76,L:76,m:77,M:77,n:78,N:78,o:79,O:79,p:80,P:80,q:81,Q:81,r:82,R:82,s:83,S:83,t:84,T:84,u:85,U:85,v:86,V:86,w:87,W:87,x:88,X:88,y:89,Y:89,z:90,Z:90,OS:91,ContextMenu:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,F20:131,F21:132,F22:133,F23:134,F24:135,NumLock:144,ScrollLock:145,VolumeMute:181,VolumeDown:182,VolumeUp:183,";":186,":":186,"=":187,"+":187,",":188,"<":188,"-":189,_:189,".":190,">":190,"/":191,"?":191,"`":192,"~":192,"[":219,"{":219,"\\":220,"|":220,"]":221,"}":221,"'":222,'"':222,Meta:224,AltGraph:225,Attn:246,CrSel:247,ExSel:248,EraseEof:249,Play:250,ZoomOut:251};a.Spacebar=a[" "],a.Digit0=a[0],a.Digit1=a[1],a.Digit2=a[2],a.Digit3=a[3],a.Digit4=a[4],a.Digit5=a[5],a.Digit6=a[6],a.Digit7=a[7],a.Digit8=a[8],a.Digit9=a[9],a.Tilde=a["~"],a.GraveAccent=a["`"],a.ExclamationPoint=a["!"],a.AtSign=a["@"],a.PoundSign=a["#"],a.PercentSign=a["%"],a.Caret=a["^"],a.Ampersand=a["&"],a.PlusSign=a["+"],a.MinusSign=a["-"],a.EqualsSign=a["="],a.DivisionSign=a["/"],a.MultiplicationSign=a["*"],a.Comma=a[","],a.Decimal=a["."],a.Colon=a[":"],a.Semicolon=a[";"],a.Pipe=a["|"],a.BackSlash=a["\\"],a.QuestionMark=a["?"],a.SingleQuote=a["'"],a.DoubleQuote=a['"'],a.LeftCurlyBrace=a["{"],a.RightCurlyBrace=a["}"],a.LeftParenthesis=a["("],a.RightParenthesis=a[")"],a.LeftAngleBracket=a["<"],a.RightAngleBracket=a[">"],a.LeftSquareBracket=a["["],a.RightSquareBracket=a["]"],e.exports=a},75:(e,t,n)=>{"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===i(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var u={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function c(e){var t=e.re=n(4370)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var u=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===i(n))return!function(e){return"[object RegExp]"===i(e)}(n.validate)?o(n.validate)?r.validate=n.validate:l(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(o(n.normalize)?r.normalize=n.normalize:n.normalize?l(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?l(t,n):u.push(t)}})),u.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var c=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+c+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+c+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function f(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function d(e,t){var n=new f(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function h(e,t){if(!(this instanceof h))return new h(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},u,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},c(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,c(this),this},h.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,u;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||u<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),c(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,c(this),this)},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},4370:(e,t,n)=>{"use strict";e.exports=function(e){var t={};t.src_Any=n(1537).source,t.src_Cc=n(5170).source,t.src_Z=n(4244).source,t.src_P=n(9170).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><\uff5c]";return t.src_pseudo_letter="(?:(?![><\uff5c]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><\uff5c]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},8106:function(e,t,n){var r,i;void 0===(i="function"===typeof(r=function(){return function(e){if("undefined"===typeof e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if("undefined"===typeof e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.de=function(){this.pipeline.reset(),this.pipeline.add(e.de.trimmer,e.de.stopWordFilter,e.de.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.de.stemmer))},e.de.wordCharacters="A-Za-z\xaa\xba\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u02e0-\u02e4\u1d00-\u1d25\u1d2c-\u1d5c\u1d62-\u1d65\u1d6b-\u1d77\u1d79-\u1dbe\u1e00-\u1eff\u2071\u207f\u2090-\u209c\u212a\u212b\u2132\u214e\u2160-\u2188\u2c60-\u2c7f\ua722-\ua787\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua7ff\uab30-\uab5a\uab5c-\uab64\ufb00-\ufb06\uff21-\uff3a\uff41-\uff5a",e.de.trimmer=e.trimmerSupport.generateTrimmer(e.de.wordCharacters),e.Pipeline.registerFunction(e.de.trimmer,"trimmer-de"),e.de.stemmer=function(){var t=e.stemmerSupport.Among,n=e.stemmerSupport.SnowballProgram,r=new function(){var e,r,i,o=[new t("",-1,6),new t("U",0,2),new t("Y",0,1),new t("\xe4",0,3),new t("\xf6",0,4),new t("\xfc",0,5)],a=[new t("e",-1,2),new t("em",-1,1),new t("en",-1,2),new t("ern",-1,1),new t("er",-1,1),new t("s",-1,3),new t("es",5,2)],s=[new t("en",-1,1),new t("er",-1,1),new t("st",-1,2),new t("est",2,1)],u=[new t("ig",-1,1),new t("lich",-1,1)],l=[new t("end",-1,1),new t("ig",-1,2),new t("ung",-1,1),new t("lich",-1,3),new t("isch",-1,2),new t("ik",-1,2),new t("heit",-1,3),new t("keit",-1,4)],c=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,8,0,32,8],f=[117,30,5],d=[117,30,4],h=new n;function p(e,t,n){return!(!h.eq_s(1,e)||(h.ket=h.cursor,!h.in_grouping(c,97,252)))&&(h.slice_from(t),h.cursor=n,!0)}function m(){for(var e,t,n,r,i=h.cursor;;)if(e=h.cursor,h.bra=e,h.eq_s(1,"\xdf"))h.ket=h.cursor,h.slice_from("ss");else{if(e>=h.limit)break;h.cursor=e+1}for(h.cursor=i;;)for(t=h.cursor;;){if(n=h.cursor,h.in_grouping(c,97,252)){if(r=h.cursor,h.bra=r,p("u","U",n))break;if(h.cursor=r,p("y","Y",n))break}if(n>=h.limit)return void(h.cursor=t);h.cursor=n+1}}function g(){for(;!h.in_grouping(c,97,252);){if(h.cursor>=h.limit)return!0;h.cursor++}for(;!h.out_grouping(c,97,252);){if(h.cursor>=h.limit)return!0;h.cursor++}return!1}function y(){i=h.limit,r=i;var t=h.cursor+3;0<=t&&t<=h.limit&&(e=t,g()||((i=h.cursor)<e&&(i=e),g()||(r=h.cursor)))}function v(){for(var e,t;;){if(t=h.cursor,h.bra=t,!(e=h.find_among(o,6)))return;switch(h.ket=h.cursor,e){case 1:h.slice_from("y");break;case 2:case 5:h.slice_from("u");break;case 3:h.slice_from("a");break;case 4:h.slice_from("o");break;case 6:if(h.cursor>=h.limit)return;h.cursor++}}}function b(){return i<=h.cursor}function w(){return r<=h.cursor}function _(){var e,t,n,r,i=h.limit-h.cursor;if(h.ket=h.cursor,(e=h.find_among_b(a,7))&&(h.bra=h.cursor,b()))switch(e){case 1:h.slice_del();break;case 2:h.slice_del(),h.ket=h.cursor,h.eq_s_b(1,"s")&&(h.bra=h.cursor,h.eq_s_b(3,"nis")&&h.slice_del());break;case 3:h.in_grouping_b(f,98,116)&&h.slice_del()}if(h.cursor=h.limit-i,h.ket=h.cursor,(e=h.find_among_b(s,4))&&(h.bra=h.cursor,b()))switch(e){case 1:h.slice_del();break;case 2:if(h.in_grouping_b(d,98,116)){var o=h.cursor-3;h.limit_backward<=o&&o<=h.limit&&(h.cursor=o,h.slice_del())}}if(h.cursor=h.limit-i,h.ket=h.cursor,(e=h.find_among_b(l,8))&&(h.bra=h.cursor,w()))switch(e){case 1:h.slice_del(),h.ket=h.cursor,h.eq_s_b(2,"ig")&&(h.bra=h.cursor,t=h.limit-h.cursor,h.eq_s_b(1,"e")||(h.cursor=h.limit-t,w()&&h.slice_del()));break;case 2:n=h.limit-h.cursor,h.eq_s_b(1,"e")||(h.cursor=h.limit-n,h.slice_del());break;case 3:if(h.slice_del(),h.ket=h.cursor,r=h.limit-h.cursor,!h.eq_s_b(2,"er")&&(h.cursor=h.limit-r,!h.eq_s_b(2,"en")))break;h.bra=h.cursor,b()&&h.slice_del();break;case 4:h.slice_del(),h.ket=h.cursor,(e=h.find_among_b(u,2))&&(h.bra=h.cursor,w()&&1==e&&h.slice_del())}}this.setCurrent=function(e){h.setCurrent(e)},this.getCurrent=function(){return h.getCurrent()},this.stem=function(){var e=h.cursor;return m(),h.cursor=e,y(),h.limit_backward=e,h.cursor=h.limit,_(),h.cursor=h.limit_backward,v(),!0}};return function(e){return"function"===typeof e.update?e.update((function(e){return r.setCurrent(e),r.stem(),r.getCurrent()})):(r.setCurrent(e),r.stem(),r.getCurrent())}}(),e.Pipeline.registerFunction(e.de.stemmer,"stemmer-de"),e.de.stopWordFilter=e.generateStopWordFilter("aber alle allem allen aller alles als also am an ander andere anderem anderen anderer anderes anderm andern anderr anders auch auf aus bei bin bis bist da damit dann das dasselbe dazu da\xdf dein deine deinem deinen deiner deines dem demselben den denn denselben der derer derselbe derselben des desselben dessen dich die dies diese dieselbe dieselben diesem diesen dieser dieses dir doch dort du durch ein eine einem einen einer eines einig einige einigem einigen einiger einiges einmal er es etwas euch euer eure eurem euren eurer eures f\xfcr gegen gewesen hab habe haben hat hatte hatten hier hin hinter ich ihm ihn ihnen ihr ihre ihrem ihren ihrer ihres im in indem ins ist jede jedem jeden jeder jedes jene jenem jenen jener jenes jetzt kann kein keine keinem keinen keiner keines k\xf6nnen k\xf6nnte machen man manche manchem manchen mancher manches mein meine meinem meinen meiner meines mich mir mit muss musste nach nicht nichts noch nun nur ob oder ohne sehr sein seine seinem seinen seiner seines selbst sich sie sind so solche solchem solchen solcher solches soll sollte sondern sonst um und uns unse unsem unsen unser unses unter viel vom von vor war waren warst was weg weil weiter welche welchem welchen welcher welches wenn werde werden wie wieder will wir wird wirst wo wollen wollte w\xe4hrend w\xfcrde w\xfcrden zu zum zur zwar zwischen \xfcber".split(" ")),e.Pipeline.registerFunction(e.de.stopWordFilter,"stopWordFilter-de")}})?r.call(t,n,t,e):r)||(e.exports=i)},2625:function(e,t,n){var r,i;void 0===(i="function"===typeof(r=function(){return function(e){if("undefined"===typeof e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if("undefined"===typeof e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.fr=function(){this.pipeline.reset(),this.pipeline.add(e.fr.trimmer,e.fr.stopWordFilter,e.fr.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.fr.stemmer))},e.fr.wordCharacters="A-Za-z\xaa\xba\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u02e0-\u02e4\u1d00-\u1d25\u1d2c-\u1d5c\u1d62-\u1d65\u1d6b-\u1d77\u1d79-\u1dbe\u1e00-\u1eff\u2071\u207f\u2090-\u209c\u212a\u212b\u2132\u214e\u2160-\u2188\u2c60-\u2c7f\ua722-\ua787\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua7ff\uab30-\uab5a\uab5c-\uab64\ufb00-\ufb06\uff21-\uff3a\uff41-\uff5a",e.fr.trimmer=e.trimmerSupport.generateTrimmer(e.fr.wordCharacters),e.Pipeline.registerFunction(e.fr.trimmer,"trimmer-fr"),e.fr.stemmer=function(){var t=e.stemmerSupport.Among,n=e.stemmerSupport.SnowballProgram,r=new function(){var e,r,i,o=[new t("col",-1,-1),new t("par",-1,-1),new t("tap",-1,-1)],a=[new t("",-1,4),new t("I",0,1),new t("U",0,2),new t("Y",0,3)],s=[new t("iqU",-1,3),new t("abl",-1,3),new t("I\xe8r",-1,4),new t("i\xe8r",-1,4),new t("eus",-1,2),new t("iv",-1,1)],u=[new t("ic",-1,2),new t("abil",-1,1),new t("iv",-1,3)],l=[new t("iqUe",-1,1),new t("atrice",-1,2),new t("ance",-1,1),new t("ence",-1,5),new t("logie",-1,3),new t("able",-1,1),new t("isme",-1,1),new t("euse",-1,11),new t("iste",-1,1),new t("ive",-1,8),new t("if",-1,8),new t("usion",-1,4),new t("ation",-1,2),new t("ution",-1,4),new t("ateur",-1,2),new t("iqUes",-1,1),new t("atrices",-1,2),new t("ances",-1,1),new t("ences",-1,5),new t("logies",-1,3),new t("ables",-1,1),new t("ismes",-1,1),new t("euses",-1,11),new t("istes",-1,1),new t("ives",-1,8),new t("ifs",-1,8),new t("usions",-1,4),new t("ations",-1,2),new t("utions",-1,4),new t("ateurs",-1,2),new t("ments",-1,15),new t("ements",30,6),new t("issements",31,12),new t("it\xe9s",-1,7),new t("ment",-1,15),new t("ement",34,6),new t("issement",35,12),new t("amment",34,13),new t("emment",34,14),new t("aux",-1,10),new t("eaux",39,9),new t("eux",-1,1),new t("it\xe9",-1,7)],c=[new t("ira",-1,1),new t("ie",-1,1),new t("isse",-1,1),new t("issante",-1,1),new t("i",-1,1),new t("irai",4,1),new t("ir",-1,1),new t("iras",-1,1),new t("ies",-1,1),new t("\xeemes",-1,1),new t("isses",-1,1),new t("issantes",-1,1),new t("\xeetes",-1,1),new t("is",-1,1),new t("irais",13,1),new t("issais",13,1),new t("irions",-1,1),new t("issions",-1,1),new t("irons",-1,1),new t("issons",-1,1),new t("issants",-1,1),new t("it",-1,1),new t("irait",21,1),new t("issait",21,1),new t("issant",-1,1),new t("iraIent",-1,1),new t("issaIent",-1,1),new t("irent",-1,1),new t("issent",-1,1),new t("iront",-1,1),new t("\xeet",-1,1),new t("iriez",-1,1),new t("issiez",-1,1),new t("irez",-1,1),new t("issez",-1,1)],f=[new t("a",-1,3),new t("era",0,2),new t("asse",-1,3),new t("ante",-1,3),new t("\xe9e",-1,2),new t("ai",-1,3),new t("erai",5,2),new t("er",-1,2),new t("as",-1,3),new t("eras",8,2),new t("\xe2mes",-1,3),new t("asses",-1,3),new t("antes",-1,3),new t("\xe2tes",-1,3),new t("\xe9es",-1,2),new t("ais",-1,3),new t("erais",15,2),new t("ions",-1,1),new t("erions",17,2),new t("assions",17,3),new t("erons",-1,2),new t("ants",-1,3),new t("\xe9s",-1,2),new t("ait",-1,3),new t("erait",23,2),new t("ant",-1,3),new t("aIent",-1,3),new t("eraIent",26,2),new t("\xe8rent",-1,2),new t("assent",-1,3),new t("eront",-1,2),new t("\xe2t",-1,3),new t("ez",-1,2),new t("iez",32,2),new t("eriez",33,2),new t("assiez",33,3),new t("erez",32,2),new t("\xe9",-1,2)],d=[new t("e",-1,3),new t("I\xe8re",0,2),new t("i\xe8re",0,2),new t("ion",-1,1),new t("Ier",-1,2),new t("ier",-1,2),new t("\xeb",-1,4)],h=[new t("ell",-1,-1),new t("eill",-1,-1),new t("enn",-1,-1),new t("onn",-1,-1),new t("ett",-1,-1)],p=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,128,130,103,8,5],m=[1,65,20,0,0,0,0,0,0,0,0,0,0,0,0,0,128],g=new n;function y(e,t,n){return!(!g.eq_s(1,e)||(g.ket=g.cursor,!g.in_grouping(p,97,251)))&&(g.slice_from(t),g.cursor=n,!0)}function v(e,t,n){return!!g.eq_s(1,e)&&(g.ket=g.cursor,g.slice_from(t),g.cursor=n,!0)}function b(){for(var e,t;;){if(e=g.cursor,g.in_grouping(p,97,251)){if(g.bra=g.cursor,t=g.cursor,y("u","U",e))continue;if(g.cursor=t,y("i","I",e))continue;if(g.cursor=t,v("y","Y",e))continue}if(g.cursor=e,g.bra=e,!y("y","Y",e)){if(g.cursor=e,g.eq_s(1,"q")&&(g.bra=g.cursor,v("u","U",e)))continue;if(g.cursor=e,e>=g.limit)return;g.cursor++}}}function w(){for(;!g.in_grouping(p,97,251);){if(g.cursor>=g.limit)return!0;g.cursor++}for(;!g.out_grouping(p,97,251);){if(g.cursor>=g.limit)return!0;g.cursor++}return!1}function _(){var t=g.cursor;if(i=g.limit,r=i,e=i,g.in_grouping(p,97,251)&&g.in_grouping(p,97,251)&&g.cursor<g.limit)g.cursor++;else if(g.cursor=t,!g.find_among(o,3)){g.cursor=t;do{if(g.cursor>=g.limit){g.cursor=i;break}g.cursor++}while(!g.in_grouping(p,97,251))}i=g.cursor,g.cursor=t,w()||(r=g.cursor,w()||(e=g.cursor))}function x(){for(var e,t;t=g.cursor,g.bra=t,e=g.find_among(a,4);)switch(g.ket=g.cursor,e){case 1:g.slice_from("i");break;case 2:g.slice_from("u");break;case 3:g.slice_from("y");break;case 4:if(g.cursor>=g.limit)return;g.cursor++}}function E(){return i<=g.cursor}function k(){return r<=g.cursor}function S(){return e<=g.cursor}function A(){var e,t;if(g.ket=g.cursor,e=g.find_among_b(l,43)){switch(g.bra=g.cursor,e){case 1:if(!S())return!1;g.slice_del();break;case 2:if(!S())return!1;g.slice_del(),g.ket=g.cursor,g.eq_s_b(2,"ic")&&(g.bra=g.cursor,S()?g.slice_del():g.slice_from("iqU"));break;case 3:if(!S())return!1;g.slice_from("log");break;case 4:if(!S())return!1;g.slice_from("u");break;case 5:if(!S())return!1;g.slice_from("ent");break;case 6:if(!E())return!1;if(g.slice_del(),g.ket=g.cursor,e=g.find_among_b(s,6))switch(g.bra=g.cursor,e){case 1:S()&&(g.slice_del(),g.ket=g.cursor,g.eq_s_b(2,"at")&&(g.bra=g.cursor,S()&&g.slice_del()));break;case 2:S()?g.slice_del():k()&&g.slice_from("eux");break;case 3:S()&&g.slice_del();break;case 4:E()&&g.slice_from("i")}break;case 7:if(!S())return!1;if(g.slice_del(),g.ket=g.cursor,e=g.find_among_b(u,3))switch(g.bra=g.cursor,e){case 1:S()?g.slice_del():g.slice_from("abl");break;case 2:S()?g.slice_del():g.slice_from("iqU");break;case 3:S()&&g.slice_del()}break;case 8:if(!S())return!1;if(g.slice_del(),g.ket=g.cursor,g.eq_s_b(2,"at")&&(g.bra=g.cursor,S()&&(g.slice_del(),g.ket=g.cursor,g.eq_s_b(2,"ic")))){g.bra=g.cursor,S()?g.slice_del():g.slice_from("iqU");break}break;case 9:g.slice_from("eau");break;case 10:if(!k())return!1;g.slice_from("al");break;case 11:if(S())g.slice_del();else{if(!k())return!1;g.slice_from("eux")}break;case 12:if(!k()||!g.out_grouping_b(p,97,251))return!1;g.slice_del();break;case 13:return E()&&g.slice_from("ant"),!1;case 14:return E()&&g.slice_from("ent"),!1;case 15:return t=g.limit-g.cursor,g.in_grouping_b(p,97,251)&&E()&&(g.cursor=g.limit-t,g.slice_del()),!1}return!0}return!1}function C(){var e,t;if(g.cursor<i)return!1;if(t=g.limit_backward,g.limit_backward=i,g.ket=g.cursor,!(e=g.find_among_b(c,35)))return g.limit_backward=t,!1;if(g.bra=g.cursor,1==e){if(!g.out_grouping_b(p,97,251))return g.limit_backward=t,!1;g.slice_del()}return g.limit_backward=t,!0}function D(){var e,t,n;if(g.cursor<i)return!1;if(t=g.limit_backward,g.limit_backward=i,g.ket=g.cursor,!(e=g.find_among_b(f,38)))return g.limit_backward=t,!1;switch(g.bra=g.cursor,e){case 1:if(!S())return g.limit_backward=t,!1;g.slice_del();break;case 2:g.slice_del();break;case 3:g.slice_del(),n=g.limit-g.cursor,g.ket=g.cursor,g.eq_s_b(1,"e")?(g.bra=g.cursor,g.slice_del()):g.cursor=g.limit-n}return g.limit_backward=t,!0}function M(){var e,t,n,r,o=g.limit-g.cursor;if(g.ket=g.cursor,g.eq_s_b(1,"s")?(g.bra=g.cursor,t=g.limit-g.cursor,g.out_grouping_b(m,97,232)?(g.cursor=g.limit-t,g.slice_del()):g.cursor=g.limit-o):g.cursor=g.limit-o,g.cursor>=i){if(n=g.limit_backward,g.limit_backward=i,g.ket=g.cursor,e=g.find_among_b(d,7))switch(g.bra=g.cursor,e){case 1:if(S()){if(r=g.limit-g.cursor,!g.eq_s_b(1,"s")&&(g.cursor=g.limit-r,!g.eq_s_b(1,"t")))break;g.slice_del()}break;case 2:g.slice_from("i");break;case 3:g.slice_del();break;case 4:g.eq_s_b(2,"gu")&&g.slice_del()}g.limit_backward=n}}function F(){var e=g.limit-g.cursor;g.find_among_b(h,5)&&(g.cursor=g.limit-e,g.ket=g.cursor,g.cursor>g.limit_backward&&(g.cursor--,g.bra=g.cursor,g.slice_del()))}function O(){for(var e,t=1;g.out_grouping_b(p,97,251);)t--;if(t<=0){if(g.ket=g.cursor,e=g.limit-g.cursor,!g.eq_s_b(1,"\xe9")&&(g.cursor=g.limit-e,!g.eq_s_b(1,"\xe8")))return;g.bra=g.cursor,g.slice_from("e")}}function T(){if(!A()&&(g.cursor=g.limit,!C()&&(g.cursor=g.limit,!D())))return g.cursor=g.limit,void M();g.cursor=g.limit,g.ket=g.cursor,g.eq_s_b(1,"Y")?(g.bra=g.cursor,g.slice_from("i")):(g.cursor=g.limit,g.eq_s_b(1,"\xe7")&&(g.bra=g.cursor,g.slice_from("c")))}this.setCurrent=function(e){g.setCurrent(e)},this.getCurrent=function(){return g.getCurrent()},this.stem=function(){var e=g.cursor;return b(),g.cursor=e,_(),g.limit_backward=e,g.cursor=g.limit,T(),g.cursor=g.limit,F(),g.cursor=g.limit,O(),g.cursor=g.limit_backward,x(),!0}};return function(e){return"function"===typeof e.update?e.update((function(e){return r.setCurrent(e),r.stem(),r.getCurrent()})):(r.setCurrent(e),r.stem(),r.getCurrent())}}(),e.Pipeline.registerFunction(e.fr.stemmer,"stemmer-fr"),e.fr.stopWordFilter=e.generateStopWordFilter("ai aie aient aies ait as au aura aurai auraient aurais aurait auras aurez auriez aurions aurons auront aux avaient avais avait avec avez aviez avions avons ayant ayez ayons c ce ceci cel\xe0 ces cet cette d dans de des du elle en es est et eu eue eues eurent eus eusse eussent eusses eussiez eussions eut eux e\xfbmes e\xfbt e\xfbtes furent fus fusse fussent fusses fussiez fussions fut f\xfbmes f\xfbt f\xfbtes ici il ils j je l la le les leur leurs lui m ma mais me mes moi mon m\xeame n ne nos notre nous on ont ou par pas pour qu que quel quelle quelles quels qui s sa sans se sera serai seraient serais serait seras serez seriez serions serons seront ses soi soient sois soit sommes son sont soyez soyons suis sur t ta te tes toi ton tu un une vos votre vous y \xe0 \xe9taient \xe9tais \xe9tait \xe9tant \xe9tiez \xe9tions \xe9t\xe9 \xe9t\xe9e \xe9t\xe9es \xe9t\xe9s \xeates".split(" ")),e.Pipeline.registerFunction(e.fr.stopWordFilter,"stopWordFilter-fr")}})?r.call(t,n,t,e):r)||(e.exports=i)},7312:function(e,t,n){var r,i;void 0===(i="function"===typeof(r=function(){return function(e){if("undefined"===typeof e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if("undefined"===typeof e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.it=function(){this.pipeline.reset(),this.pipeline.add(e.it.trimmer,e.it.stopWordFilter,e.it.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.it.stemmer))},e.it.wordCharacters="A-Za-z\xaa\xba\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u02e0-\u02e4\u1d00-\u1d25\u1d2c-\u1d5c\u1d62-\u1d65\u1d6b-\u1d77\u1d79-\u1dbe\u1e00-\u1eff\u2071\u207f\u2090-\u209c\u212a\u212b\u2132\u214e\u2160-\u2188\u2c60-\u2c7f\ua722-\ua787\ua78b-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua7ff\uab30-\uab5a\uab5c-\uab64\ufb00-\ufb06\uff21-\uff3a\uff41-\uff5a",e.it.trimmer=e.trimmerSupport.generateTrimmer(e.it.wordCharacters),e.Pipeline.registerFunction(e.it.trimmer,"trimmer-it"),e.it.stemmer=function(){var t=e.stemmerSupport.Among,n=e.stemmerSupport.SnowballProgram,r=new function(){var e,r,i,o=[new t("",-1,7),new t("qu",0,6),new t("\xe1",0,1),new t("\xe9",0,2),new t("\xed",0,3),new t("\xf3",0,4),new t("\xfa",0,5)],a=[new t("",-1,3),new t("I",0,1),new t("U",0,2)],s=[new t("la",-1,-1),new t("cela",0,-1),new t("gliela",0,-1),new t("mela",0,-1),new t("tela",0,-1),new t("vela",0,-1),new t("le",-1,-1),new t("cele",6,-1),new t("gliele",6,-1),new t("mele",6,-1),new t("tele",6,-1),new t("vele",6,-1),new t("ne",-1,-1),new t("cene",12,-1),new t("gliene",12,-1),new t("mene",12,-1),new t("sene",12,-1),new t("tene",12,-1),new t("vene",12,-1),new t("ci",-1,-1),new t("li",-1,-1),new t("celi",20,-1),new t("glieli",20,-1),new t("meli",20,-1),new t("teli",20,-1),new t("veli",20,-1),new t("gli",20,-1),new t("mi",-1,-1),new t("si",-1,-1),new t("ti",-1,-1),new t("vi",-1,-1),new t("lo",-1,-1),new t("celo",31,-1),new t("glielo",31,-1),new t("melo",31,-1),new t("telo",31,-1),new t("velo",31,-1)],u=[new t("ando",-1,1),new t("endo",-1,1),new t("ar",-1,2),new t("er",-1,2),new t("ir",-1,2)],l=[new t("ic",-1,-1),new t("abil",-1,-1),new t("os",-1,-1),new t("iv",-1,1)],c=[new t("ic",-1,1),new t("abil",-1,1),new t("iv",-1,1)],f=[new t("ica",-1,1),new t("logia",-1,3),new t("osa",-1,1),new t("ista",-1,1),new t("iva",-1,9),new t("anza",-1,1),new t("enza",-1,5),new t("ice",-1,1),new t("atrice",7,1),new t("iche",-1,1),new t("logie",-1,3),new t("abile",-1,1),new t("ibile",-1,1),new t("usione",-1,4),new t("azione",-1,2),new t("uzione",-1,4),new t("atore",-1,2),new t("ose",-1,1),new t("ante",-1,1),new t("mente",-1,1),new t("amente",19,7),new t("iste",-1,1),new t("ive",-1,9),new t("anze",-1,1),new t("enze",-1,5),new t("ici",-1,1),new t("atrici",25,1),new t("ichi",-1,1),new t("abili",-1,1),new t("ibili",-1,1),new t("ismi",-1,1),new t("usioni",-1,4),new t("azioni",-1,2),new t("uzioni",-1,4),new t("atori",-1,2),new t("osi",-1,1),new t("anti",-1,1),new t("amenti",-1,6),new t("imenti",-1,6),new t("isti",-1,1),new t("ivi",-1,9),new t("ico",-1,1),new t("ismo",-1,1),new t("oso",-1,1),new t("amento",-1,6),new t("imento",-1,6),new t("ivo",-1,9),new t("it\xe0",-1,8),new t("ist\xe0",-1,1),new t("ist\xe8",-1,1),new t("ist\xec",-1,1)],d=[new t("isca",-1,1),new t("enda",-1,1),new t("ata",-1,1),new t("ita",-1,1),new t("uta",-1,1),new t("ava",-1,1),new t("eva",-1,1),new t("iva",-1,1),new t("erebbe",-1,1),new t("irebbe",-1,1),new t("isce",-1,1),new t("ende",-1,1),new t("are",-1,1),new t("ere",-1,1),new t("ire",-1,1),new t("asse",-1,1),new t("ate",-1,1),new t("avate",16,1),new t("evate",16,1),new t("ivate",16,1),new t("ete",-1,1),new t("erete",20,1),new t("irete",20,1),new t("ite",-1,1),new t("ereste",-1,1),new t("ireste",-1,1),new t("ute",-1,1),new t("erai",-1,1),new t("irai",-1,1),new t("isci",-1,1),new t("endi",-1,1),new t("erei",-1,1),new t("irei",-1,1),new t("assi",-1,1),new t("ati",-1,1),new t("iti",-1,1),new t("eresti",-1,1),new t("iresti",-1,1),new t("uti",-1,1),new t("avi",-1,1),new t("evi",-1,1),new t("ivi",-1,1),new t("isco",-1,1),new t("ando",-1,1),new t("endo",-1,1),new t("Yamo",-1,1),new t("iamo",-1,1),new t("avamo",-1,1),new t("evamo",-1,1),new t("ivamo",-1,1),new t("eremo",-1,1),new t("iremo",-1,1),new t("assimo",-1,1),new t("ammo",-1,1),new t("emmo",-1,1),new t("eremmo",54,1),new t("iremmo",54,1),new t("immo",-1,1),new t("ano",-1,1),new t("iscano",58,1),new t("avano",58,1),new t("evano",58,1),new t("ivano",58,1),new t("eranno",-1,1),new t("iranno",-1,1),new t("ono",-1,1),new t("iscono",65,1),new t("arono",65,1),new t("erono",65,1),new t("irono",65,1),new t("erebbero",-1,1),new t("irebbero",-1,1),new t("assero",-1,1),new t("essero",-1,1),new t("issero",-1,1),new t("ato",-1,1),new t("ito",-1,1),new t("uto",-1,1),new t("avo",-1,1),new t("evo",-1,1),new t("ivo",-1,1),new t("ar",-1,1),new t("ir",-1,1),new t("er\xe0",-1,1),new t("ir\xe0",-1,1),new t("er\xf2",-1,1),new t("ir\xf2",-1,1)],h=[17,65,16,0,0,0,0,0,0,0,0,0,0,0,0,128,128,8,2,1],p=[17,65,0,0,0,0,0,0,0,0,0,0,0,0,0,128,128,8,2],m=[17],g=new n;function y(e,t,n){return!(!g.eq_s(1,e)||(g.ket=g.cursor,!g.in_grouping(h,97,249)))&&(g.slice_from(t),g.cursor=n,!0)}function v(){for(var e,t,n,r,i=g.cursor;;){if(g.bra=g.cursor,e=g.find_among(o,7))switch(g.ket=g.cursor,e){case 1:g.slice_from("\xe0");continue;case 2:g.slice_from("\xe8");continue;case 3:g.slice_from("\xec");continue;case 4:g.slice_from("\xf2");continue;case 5:g.slice_from("\xf9");continue;case 6:g.slice_from("qU");continue;case 7:if(g.cursor>=g.limit)break;g.cursor++;continue}break}for(g.cursor=i;;)for(t=g.cursor;;){if(n=g.cursor,g.in_grouping(h,97,249)){if(g.bra=g.cursor,r=g.cursor,y("u","U",n))break;if(g.cursor=r,y("i","I",n))break}if(g.cursor=n,g.cursor>=g.limit)return void(g.cursor=t);g.cursor++}}function b(e){if(g.cursor=e,!g.in_grouping(h,97,249))return!1;for(;!g.out_grouping(h,97,249);){if(g.cursor>=g.limit)return!1;g.cursor++}return!0}function w(){if(g.in_grouping(h,97,249)){var e=g.cursor;if(g.out_grouping(h,97,249)){for(;!g.in_grouping(h,97,249);){if(g.cursor>=g.limit)return b(e);g.cursor++}return!0}return b(e)}return!1}function _(){var e,t=g.cursor;if(!w()){if(g.cursor=t,!g.out_grouping(h,97,249))return;if(e=g.cursor,g.out_grouping(h,97,249)){for(;!g.in_grouping(h,97,249);){if(g.cursor>=g.limit)return g.cursor=e,void(g.in_grouping(h,97,249)&&g.cursor<g.limit&&g.cursor++);g.cursor++}return void(i=g.cursor)}if(g.cursor=e,!g.in_grouping(h,97,249)||g.cursor>=g.limit)return;g.cursor++}i=g.cursor}function x(){for(;!g.in_grouping(h,97,249);){if(g.cursor>=g.limit)return!1;g.cursor++}for(;!g.out_grouping(h,97,249);){if(g.cursor>=g.limit)return!1;g.cursor++}return!0}function E(){var t=g.cursor;i=g.limit,r=i,e=i,_(),g.cursor=t,x()&&(r=g.cursor,x()&&(e=g.cursor))}function k(){for(var e;g.bra=g.cursor,e=g.find_among(a,3);)switch(g.ket=g.cursor,e){case 1:g.slice_from("i");break;case 2:g.slice_from("u");break;case 3:if(g.cursor>=g.limit)return;g.cursor++}}function S(){return i<=g.cursor}function A(){return r<=g.cursor}function C(){return e<=g.cursor}function D(){var e;if(g.ket=g.cursor,g.find_among_b(s,37)&&(g.bra=g.cursor,(e=g.find_among_b(u,5))&&S()))switch(e){case 1:g.slice_del();break;case 2:g.slice_from("e")}}function M(){var e;if(g.ket=g.cursor,!(e=g.find_among_b(f,51)))return!1;switch(g.bra=g.cursor,e){case 1:if(!C())return!1;g.slice_del();break;case 2:if(!C())return!1;g.slice_del(),g.ket=g.cursor,g.eq_s_b(2,"ic")&&(g.bra=g.cursor,C()&&g.slice_del());break;case 3:if(!C())return!1;g.slice_from("log");break;case 4:if(!C())return!1;g.slice_from("u");break;case 5:if(!C())return!1;g.slice_from("ente");break;case 6:if(!S())return!1;g.slice_del();break;case 7:if(!A())return!1;g.slice_del(),g.ket=g.cursor,(e=g.find_among_b(l,4))&&(g.bra=g.cursor,C()&&(g.slice_del(),1==e&&(g.ket=g.cursor,g.eq_s_b(2,"at")&&(g.bra=g.cursor,C()&&g.slice_del()))));break;case 8:if(!C())return!1;g.slice_del(),g.ket=g.cursor,(e=g.find_among_b(c,3))&&(g.bra=g.cursor,1==e&&C()&&g.slice_del());break;case 9:if(!C())return!1;g.slice_del(),g.ket=g.cursor,g.eq_s_b(2,"at")&&(g.bra=g.cursor,C()&&(g.slice_del(),g.ket=g.cursor,g.eq_s_b(2,"ic")&&(g.bra=g.cursor,C()&&g.slice_del())))}return!0}function F(){var e,t;g.cursor>=i&&(t=g.limit_backward,g.limit_backward=i,g.ket=g.cursor,(e=g.find_among_b(d,87))&&(g.bra=g.cursor,1==e&&g.slice_del()),g.limit_backward=t)}function O(){var e=g.limit-g.cursor;g.ket=g.cursor,g.in_grouping_b(p,97,242)&&(g.bra=g.cursor,S()&&(g.slice_del(),g.ket=g.cursor,g.eq_s_b(1,"i")&&(g.bra=g.cursor,S())))?g.slice_del():g.cursor=g.limit-e}function T(){O(),g.ket=g.cursor,g.eq_s_b(1,"h")&&(g.bra=g.cursor,g.in_grouping_b(m,99,103)&&S()&&g.slice_del())}this.setCurrent=function(e){g.setCurrent(e)},this.getCurrent=function(){return g.getCurrent()},this.stem=function(){var e=g.cursor;return v(),g.cursor=e,E(),g.limit_backward=e,g.cursor=g.limit,D(),g.cursor=g.limit,M()||(g.cursor=g.limit,F()),g.cursor=g.limit,T(),g.cursor=g.limit_backward,k(),!0}};return function(e){return"function"===typeof e.update?e.update((function(e){return r.setCurrent(e),r.stem(),r.getCurrent()})):(r.setCurrent(e),r.stem(),r.getCurrent())}}(),e.Pipeline.registerFunction(e.it.stemmer,"stemmer-it"),e.it.stopWordFilter=e.generateStopWordFilter("a abbia abbiamo abbiano abbiate ad agl agli ai al all alla alle allo anche avemmo avendo avesse avessero avessi avessimo aveste avesti avete aveva avevamo avevano avevate avevi avevo avrai avranno avrebbe avrebbero avrei avremmo avremo avreste avresti avrete avr\xe0 avr\xf2 avuta avute avuti avuto c che chi ci coi col come con contro cui da dagl dagli dai dal dall dalla dalle dallo degl degli dei del dell della delle dello di dov dove e ebbe ebbero ebbi ed era erano eravamo eravate eri ero essendo faccia facciamo facciano facciate faccio facemmo facendo facesse facessero facessi facessimo faceste facesti faceva facevamo facevano facevate facevi facevo fai fanno farai faranno farebbe farebbero farei faremmo faremo fareste faresti farete far\xe0 far\xf2 fece fecero feci fosse fossero fossi fossimo foste fosti fu fui fummo furono gli ha hai hanno ho i il in io l la le lei li lo loro lui ma mi mia mie miei mio ne negl negli nei nel nell nella nelle nello noi non nostra nostre nostri nostro o per perch\xe9 pi\xf9 quale quanta quante quanti quanto quella quelle quelli quello questa queste questi questo sarai saranno sarebbe sarebbero sarei saremmo saremo sareste saresti sarete sar\xe0 sar\xf2 se sei si sia siamo siano siate siete sono sta stai stando stanno starai staranno starebbe starebbero starei staremmo staremo stareste staresti starete star\xe0 star\xf2 stava stavamo stavano stavate stavi stavo stemmo stesse stessero stessi stessimo steste stesti stette stettero stetti stia stiamo stiano stiate sto su sua sue sugl sugli sui sul sull sulla sulle sullo suo suoi ti tra tu tua tue tuo tuoi tutti tutto un una uno vi voi vostra vostre vostri vostro \xe8".split(" ")),e.Pipeline.registerFunction(e.it.stopWordFilter,"stopWordFilter-it")}})?r.call(t,n,t,e):r)||(e.exports=i)},6960:function(e,t,n){var r,i;void 0===(i="function"===typeof(r=function(){return function(e){if("undefined"===typeof e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if("undefined"===typeof e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.ru=function(){this.pipeline.reset(),this.pipeline.add(e.ru.trimmer,e.ru.stopWordFilter,e.ru.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.ru.stemmer))},e.ru.wordCharacters="\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f",e.ru.trimmer=e.trimmerSupport.generateTrimmer(e.ru.wordCharacters),e.Pipeline.registerFunction(e.ru.trimmer,"trimmer-ru"),e.ru.stemmer=function(){var t=e.stemmerSupport.Among,n=e.stemmerSupport.SnowballProgram,r=new function(){var e,r,i=[new t("\u0432",-1,1),new t("\u0438\u0432",0,2),new t("\u044b\u0432",0,2),new t("\u0432\u0448\u0438",-1,1),new t("\u0438\u0432\u0448\u0438",3,2),new t("\u044b\u0432\u0448\u0438",3,2),new t("\u0432\u0448\u0438\u0441\u044c",-1,1),new t("\u0438\u0432\u0448\u0438\u0441\u044c",6,2),new t("\u044b\u0432\u0448\u0438\u0441\u044c",6,2)],o=[new t("\u0435\u0435",-1,1),new t("\u0438\u0435",-1,1),new t("\u043e\u0435",-1,1),new t("\u044b\u0435",-1,1),new t("\u0438\u043c\u0438",-1,1),new t("\u044b\u043c\u0438",-1,1),new t("\u0435\u0439",-1,1),new t("\u0438\u0439",-1,1),new t("\u043e\u0439",-1,1),new t("\u044b\u0439",-1,1),new t("\u0435\u043c",-1,1),new t("\u0438\u043c",-1,1),new t("\u043e\u043c",-1,1),new t("\u044b\u043c",-1,1),new t("\u0435\u0433\u043e",-1,1),new t("\u043e\u0433\u043e",-1,1),new t("\u0435\u043c\u0443",-1,1),new t("\u043e\u043c\u0443",-1,1),new t("\u0438\u0445",-1,1),new t("\u044b\u0445",-1,1),new t("\u0435\u044e",-1,1),new t("\u043e\u044e",-1,1),new t("\u0443\u044e",-1,1),new t("\u044e\u044e",-1,1),new t("\u0430\u044f",-1,1),new t("\u044f\u044f",-1,1)],a=[new t("\u0435\u043c",-1,1),new t("\u043d\u043d",-1,1),new t("\u0432\u0448",-1,1),new t("\u0438\u0432\u0448",2,2),new t("\u044b\u0432\u0448",2,2),new t("\u0449",-1,1),new t("\u044e\u0449",5,1),new t("\u0443\u044e\u0449",6,2)],s=[new t("\u0441\u044c",-1,1),new t("\u0441\u044f",-1,1)],u=[new t("\u043b\u0430",-1,1),new t("\u0438\u043b\u0430",0,2),new t("\u044b\u043b\u0430",0,2),new t("\u043d\u0430",-1,1),new t("\u0435\u043d\u0430",3,2),new t("\u0435\u0442\u0435",-1,1),new t("\u0438\u0442\u0435",-1,2),new t("\u0439\u0442\u0435",-1,1),new t("\u0435\u0439\u0442\u0435",7,2),new t("\u0443\u0439\u0442\u0435",7,2),new t("\u043b\u0438",-1,1),new t("\u0438\u043b\u0438",10,2),new t("\u044b\u043b\u0438",10,2),new t("\u0439",-1,1),new t("\u0435\u0439",13,2),new t("\u0443\u0439",13,2),new t("\u043b",-1,1),new t("\u0438\u043b",16,2),new t("\u044b\u043b",16,2),new t("\u0435\u043c",-1,1),new t("\u0438\u043c",-1,2),new t("\u044b\u043c",-1,2),new t("\u043d",-1,1),new t("\u0435\u043d",22,2),new t("\u043b\u043e",-1,1),new t("\u0438\u043b\u043e",24,2),new t("\u044b\u043b\u043e",24,2),new t("\u043d\u043e",-1,1),new t("\u0435\u043d\u043e",27,2),new t("\u043d\u043d\u043e",27,1),new t("\u0435\u0442",-1,1),new t("\u0443\u0435\u0442",30,2),new t("\u0438\u0442",-1,2),new t("\u044b\u0442",-1,2),new t("\u044e\u0442",-1,1),new t("\u0443\u044e\u0442",34,2),new t("\u044f\u0442",-1,2),new t("\u043d\u044b",-1,1),new t("\u0435\u043d\u044b",37,2),new t("\u0442\u044c",-1,1),new t("\u0438\u0442\u044c",39,2),new t("\u044b\u0442\u044c",39,2),new t("\u0435\u0448\u044c",-1,1),new t("\u0438\u0448\u044c",-1,2),new t("\u044e",-1,2),new t("\u0443\u044e",44,2)],l=[new t("\u0430",-1,1),new t("\u0435\u0432",-1,1),new t("\u043e\u0432",-1,1),new t("\u0435",-1,1),new t("\u0438\u0435",3,1),new t("\u044c\u0435",3,1),new t("\u0438",-1,1),new t("\u0435\u0438",6,1),new t("\u0438\u0438",6,1),new t("\u0430\u043c\u0438",6,1),new t("\u044f\u043c\u0438",6,1),new t("\u0438\u044f\u043c\u0438",10,1),new t("\u0439",-1,1),new t("\u0435\u0439",12,1),new t("\u0438\u0435\u0439",13,1),new t("\u0438\u0439",12,1),new t("\u043e\u0439",12,1),new t("\u0430\u043c",-1,1),new t("\u0435\u043c",-1,1),new t("\u0438\u0435\u043c",18,1),new t("\u043e\u043c",-1,1),new t("\u044f\u043c",-1,1),new t("\u0438\u044f\u043c",21,1),new t("\u043e",-1,1),new t("\u0443",-1,1),new t("\u0430\u0445",-1,1),new t("\u044f\u0445",-1,1),new t("\u0438\u044f\u0445",26,1),new t("\u044b",-1,1),new t("\u044c",-1,1),new t("\u044e",-1,1),new t("\u0438\u044e",30,1),new t("\u044c\u044e",30,1),new t("\u044f",-1,1),new t("\u0438\u044f",33,1),new t("\u044c\u044f",33,1)],c=[new t("\u043e\u0441\u0442",-1,1),new t("\u043e\u0441\u0442\u044c",-1,1)],f=[new t("\u0435\u0439\u0448\u0435",-1,1),new t("\u043d",-1,2),new t("\u0435\u0439\u0448",-1,1),new t("\u044c",-1,3)],d=[33,65,8,232],h=new n;function p(){for(;!h.in_grouping(d,1072,1103);){if(h.cursor>=h.limit)return!1;h.cursor++}return!0}function m(){for(;!h.out_grouping(d,1072,1103);){if(h.cursor>=h.limit)return!1;h.cursor++}return!0}function g(){r=h.limit,e=r,p()&&(r=h.cursor,m()&&p()&&m()&&(e=h.cursor))}function y(){return e<=h.cursor}function v(e,t){var n,r;if(h.ket=h.cursor,n=h.find_among_b(e,t)){switch(h.bra=h.cursor,n){case 1:if(r=h.limit-h.cursor,!h.eq_s_b(1,"\u0430")&&(h.cursor=h.limit-r,!h.eq_s_b(1,"\u044f")))return!1;case 2:h.slice_del()}return!0}return!1}function b(){return v(i,9)}function w(e,t){var n;return h.ket=h.cursor,!!(n=h.find_among_b(e,t))&&(h.bra=h.cursor,1==n&&h.slice_del(),!0)}function _(){return w(o,26)}function x(){return!!_()&&(v(a,8),!0)}function E(){return w(s,2)}function k(){return v(u,46)}function S(){w(l,36)}function A(){var e;h.ket=h.cursor,(e=h.find_among_b(c,2))&&(h.bra=h.cursor,y()&&1==e&&h.slice_del())}function C(){var e;if(h.ket=h.cursor,e=h.find_among_b(f,4))switch(h.bra=h.cursor,e){case 1:if(h.slice_del(),h.ket=h.cursor,!h.eq_s_b(1,"\u043d"))break;h.bra=h.cursor;case 2:if(!h.eq_s_b(1,"\u043d"))break;case 3:h.slice_del()}}this.setCurrent=function(e){h.setCurrent(e)},this.getCurrent=function(){return h.getCurrent()},this.stem=function(){return g(),h.cursor=h.limit,!(h.cursor<r)&&(h.limit_backward=r,b()||(h.cursor=h.limit,E()||(h.cursor=h.limit),x()||(h.cursor=h.limit,k()||(h.cursor=h.limit,S()))),h.cursor=h.limit,h.ket=h.cursor,h.eq_s_b(1,"\u0438")?(h.bra=h.cursor,h.slice_del()):h.cursor=h.limit,A(),h.cursor=h.limit,C(),!0)}};return function(e){return"function"===typeof e.update?e.update((function(e){return r.setCurrent(e),r.stem(),r.getCurrent()})):(r.setCurrent(e),r.stem(),r.getCurrent())}}(),e.Pipeline.registerFunction(e.ru.stemmer,"stemmer-ru"),e.ru.stopWordFilter=e.generateStopWordFilter("\u0430\u043b\u043b\u043e \u0431\u0435\u0437 \u0431\u043b\u0438\u0437\u043a\u043e \u0431\u043e\u043b\u0435\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0431\u0443\u0434\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u0431\u0443\u0434\u0435\u0442\u0435 \u0431\u0443\u0434\u0435\u0448\u044c \u0431\u0443\u0434\u0442\u043e \u0431\u0443\u0434\u0443 \u0431\u0443\u0434\u0443\u0442 \u0431\u0443\u0434\u044c \u0431\u044b \u0431\u044b\u0432\u0430\u0435\u0442 \u0431\u044b\u0432\u044c \u0431\u044b\u043b \u0431\u044b\u043b\u0430 \u0431\u044b\u043b\u0438 \u0431\u044b\u043b\u043e \u0431\u044b\u0442\u044c \u0432 \u0432\u0430\u0436\u043d\u0430\u044f \u0432\u0430\u0436\u043d\u043e\u0435 \u0432\u0430\u0436\u043d\u044b\u0435 \u0432\u0430\u0436\u043d\u044b\u0439 \u0432\u0430\u043c \u0432\u0430\u043c\u0438 \u0432\u0430\u0441 \u0432\u0430\u0448 \u0432\u0430\u0448\u0430 \u0432\u0430\u0448\u0435 \u0432\u0430\u0448\u0438 \u0432\u0432\u0435\u0440\u0445 \u0432\u0434\u0430\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u0432\u0435\u0434\u044c \u0432\u0435\u0437\u0434\u0435 \u0432\u0435\u0441\u044c \u0432\u043d\u0438\u0437 \u0432\u043d\u0438\u0437\u0443 \u0432\u043e \u0432\u043e\u043a\u0440\u0443\u0433 \u0432\u043e\u043d \u0432\u043e\u0441\u0435\u043c\u043d\u0430\u0434\u0446\u0430\u0442\u044b\u0439 \u0432\u043e\u0441\u0435\u043c\u043d\u0430\u0434\u0446\u0430\u0442\u044c \u0432\u043e\u0441\u0435\u043c\u044c \u0432\u043e\u0441\u044c\u043c\u043e\u0439 \u0432\u043e\u0442 \u0432\u043f\u0440\u043e\u0447\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432\u0440\u0435\u043c\u044f \u0432\u0441\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u0441\u0435\u0433\u043e \u0432\u0441\u0435\u043c \u0432\u0441\u0435\u043c\u0438 \u0432\u0441\u0435\u043c\u0443 \u0432\u0441\u0435\u0445 \u0432\u0441\u0435\u044e \u0432\u0441\u044e \u0432\u0441\u044e\u0434\u0443 \u0432\u0441\u044f \u0432\u0441\u0451 \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u044b \u0433 \u0433\u0434\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0433\u043e\u0434 \u0433\u043e\u0434\u0430 \u0433\u043e\u0434\u0443 \u0434\u0430 \u0434\u0430\u0432\u043d\u043e \u0434\u0430\u0436\u0435 \u0434\u0430\u043b\u0435\u043a\u043e \u0434\u0430\u043b\u044c\u0448\u0435 \u0434\u0430\u0440\u043e\u043c \u0434\u0432\u0430 \u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044b\u0439 \u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044c \u0434\u0432\u0435 \u0434\u0432\u0435\u043d\u0430\u0434\u0446\u0430\u0442\u044b\u0439 \u0434\u0432\u0435\u043d\u0430\u0434\u0446\u0430\u0442\u044c \u0434\u0432\u0443\u0445 \u0434\u0435\u0432\u044f\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u044b\u0439 \u0434\u0435\u0432\u044f\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u044c \u0434\u0435\u0432\u044f\u0442\u044b\u0439 \u0434\u0435\u0432\u044f\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u0435\u043b \u0434\u0435\u043d\u044c \u0434\u0435\u0441\u044f\u0442\u044b\u0439 \u0434\u0435\u0441\u044f\u0442\u044c \u0434\u043b\u044f \u0434\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0433\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0434\u0440\u0443\u0433\u0430\u044f \u0434\u0440\u0443\u0433\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0434\u0440\u0443\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0439 \u0435 \u0435\u0433\u043e \u0435\u0435 \u0435\u0439 \u0435\u043c\u0443 \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u0435\u0449\u0451 \u0435\u044e \u0435\u0451 \u0436 \u0436\u0435 \u0436\u0438\u0437\u043d\u044c \u0437\u0430 \u0437\u0430\u043d\u044f\u0442 \u0437\u0430\u043d\u044f\u0442\u0430 \u0437\u0430\u043d\u044f\u0442\u043e \u0437\u0430\u043d\u044f\u0442\u044b \u0437\u0430\u0442\u0435\u043c \u0437\u0430\u0442\u043e \u0437\u0430\u0447\u0435\u043c \u0437\u0434\u0435\u0441\u044c \u0437\u043d\u0430\u0447\u0438\u0442 \u0438 \u0438\u0437 \u0438\u043b\u0438 \u0438\u043c \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u043c\u0435\u0442\u044c \u0438\u043c\u0438 \u0438\u043c\u044f \u0438\u043d\u043e\u0433\u0434\u0430 \u0438\u0445 \u043a \u043a\u0430\u0436\u0434\u0430\u044f \u043a\u0430\u0436\u0434\u043e\u0435 \u043a\u0430\u0436\u0434\u044b\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u043a\u0430\u043a\u0430\u044f \u043a\u0430\u043a\u043e\u0439 \u043a\u0435\u043c \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u0433\u043e \u043a\u043e\u043c \u043a\u043e\u043c\u0443 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u0440\u043e\u043c\u0435 \u043a\u0440\u0443\u0433\u043e\u043c \u043a\u0442\u043e \u043a\u0443\u0434\u0430 \u043b\u0435\u0442 \u043b\u0438 \u043b\u0438\u0448\u044c \u043b\u0443\u0447\u0448\u0435 \u043b\u044e\u0434\u0438 \u043c \u043c\u0430\u043b\u043e \u043c\u0435\u0436\u0434\u0443 \u043c\u0435\u043b\u044f \u043c\u0435\u043d\u0435\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 \u043c\u0435\u043d\u044f \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 \u043c\u0438\u043c\u043e \u043c\u0438\u0440\u0430 \u043c\u043d\u0435 \u043c\u043d\u043e\u0433\u043e \u043c\u043d\u043e\u0433\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u0430\u044f \u043c\u043d\u043e\u0433\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u043c\u043d\u043e\u0433\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u043c\u043d\u043e\u0433\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0439 \u043c\u043d\u043e\u0439 \u043c\u043d\u043e\u044e \u043c\u043e\u0433 \u043c\u043e\u0433\u0443\u0442 \u043c\u043e\u0436 \u043c\u043e\u0436\u0435\u0442 \u043c\u043e\u0436\u043d\u043e \u043c\u043e\u0436\u0445\u043e \u043c\u043e\u0438 \u043c\u043e\u0439 \u043c\u043e\u0440 \u043c\u043e\u0447\u044c \u043c\u043e\u044f \u043c\u043e\u0451 \u043c\u044b \u043d\u0430 \u043d\u0430\u0432\u0435\u0440\u0445\u0443 \u043d\u0430\u0434 \u043d\u0430\u0434\u043e \u043d\u0430\u0437\u0430\u0434 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u043d\u0430\u043c \u043d\u0430\u043c\u0438 \u043d\u0430\u0441 \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u0448 \u043d\u0430\u0448\u0430 \u043d\u0430\u0448\u0435 \u043d\u0430\u0448\u0438 \u043d\u0435 \u043d\u0435\u0433\u043e \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u043d\u0435\u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435\u0435 \u043d\u0435\u0439 \u043d\u0435\u043b\u044c\u0437\u044f \u043d\u0435\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0435\u043c\u0443 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u043e \u043d\u0435\u0440\u0435\u0434\u043a\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0442 \u043d\u0435\u044e \u043d\u0435\u0451 \u043d\u0438 \u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0438\u0436\u0435 \u043d\u0438\u0437\u043a\u043e \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0438\u043c\u0438 \u043d\u0438\u0445 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u043e \u043d\u0443 \u043d\u0443\u0436\u043d\u043e \u043d\u0445 \u043e \u043e\u0431 \u043e\u0431\u0430 \u043e\u0431\u044b\u0447\u043d\u043e \u043e\u0434\u0438\u043d \u043e\u0434\u0438\u043d\u043d\u0430\u0434\u0446\u0430\u0442\u044b\u0439 \u043e\u0434\u0438\u043d\u043d\u0430\u0434\u0446\u0430\u0442\u044c \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u043e\u0434\u043d\u0430\u043a\u043e \u043e\u0434\u043d\u043e\u0433\u043e \u043e\u0434\u043d\u043e\u0439 \u043e\u043a\u043e\u043b\u043e \u043e\u043d \u043e\u043d\u0430 \u043e\u043d\u0438 \u043e\u043d\u043e \u043e\u043f\u044f\u0442\u044c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043e\u0442 \u043e\u0442\u043e\u0432\u0441\u044e\u0434\u0443 \u043e\u0442\u0441\u044e\u0434\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0435\u0440\u0435\u0434 \u043f\u043e \u043f\u043e\u0434 \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u043f\u043e\u0437\u0436\u0435 \u043f\u043e\u043a\u0430 \u043f\u043e\u0440 \u043f\u043e\u0440\u0430 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0441\u0440\u0435\u0434\u0438 \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u0442\u043e\u043c\u0443 \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u043e\u0447\u0442\u0438 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u043f\u0440\u0438 \u043f\u0440\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0442\u0438\u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432 \u043f\u044f\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u044b\u0439 \u043f\u044f\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u044c \u043f\u044f\u0442\u044b\u0439 \u043f\u044f\u0442\u044c \u0440\u0430\u0437 \u0440\u0430\u0437\u0432\u0435 \u0440\u0430\u043d\u043e \u0440\u0430\u043d\u044c\u0448\u0435 \u0440\u044f\u0434\u043e\u043c \u0441 \u0441\u0430\u043c \u0441\u0430\u043c\u0430 \u0441\u0430\u043c\u0438 \u0441\u0430\u043c\u0438\u043c \u0441\u0430\u043c\u0438\u043c\u0438 \u0441\u0430\u043c\u0438\u0445 \u0441\u0430\u043c\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u0441\u0430\u043c\u043e\u0439 \u0441\u0430\u043c\u043e\u043c \u0441\u0430\u043c\u043e\u043c\u0443 \u0441\u0430\u043c\u0443 \u0441\u0432\u043e\u0435 \u0441\u0432\u043e\u0435\u0433\u043e \u0441\u0432\u043e\u0435\u0439 \u0441\u0432\u043e\u0438 \u0441\u0432\u043e\u0438\u0445 \u0441\u0432\u043e\u044e \u0441\u0435\u0430\u043e\u0439 \u0441\u0435\u0431\u0435 \u0441\u0435\u0431\u044f \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0441\u0435\u0434\u044c\u043c\u043e\u0439 \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u0435\u043c\u043d\u0430\u0434\u0446\u0430\u0442\u044b\u0439 \u0441\u0435\u043c\u043d\u0430\u0434\u0446\u0430\u0442\u044c \u0441\u0435\u043c\u044c \u0441\u0438\u0445 \u0441\u043a\u0430\u0437\u0430\u043b \u0441\u043a\u0430\u0437\u0430\u043b\u0430 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043d\u043e\u0432\u0430 \u0441\u043e \u0441\u043e\u0431\u043e\u0439 \u0441\u043e\u0431\u043e\u044e \u0441\u043e\u0432\u0441\u0435\u043c \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0441\u0442\u0430\u043b \u0441\u0443\u0442\u044c \u0442 \u0442\u0430 \u0442\u0430\u043a \u0442\u0430\u043a\u0430\u044f \u0442\u0430\u043a\u0436\u0435 \u0442\u0430\u043a\u0438\u0435 \u0442\u0430\u043a\u043e\u0435 \u0442\u0430\u043a\u043e\u0439 \u0442\u0430\u043c \u0442\u0432\u043e\u0439 \u0442\u0432\u043e\u044f \u0442\u0432\u043e\u0451 \u0442\u0435 \u0442\u0435\u0431\u0435 \u0442\u0435\u0431\u044f \u0442\u0435\u043c \u0442\u0435\u043c\u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u0442\u0435\u0445 \u0442\u043e \u0442\u043e\u0431\u043e\u0439 \u0442\u043e\u0431\u043e\u044e \u0442\u043e\u0433\u0434\u0430 \u0442\u043e\u0433\u043e \u0442\u043e\u0436\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u043c \u0442\u043e\u043c\u0443 \u0442\u043e\u0442 \u0442\u043e\u044e \u0442\u0440\u0435\u0442\u0438\u0439 \u0442\u0440\u0438 \u0442\u0440\u0438\u043d\u0430\u0434\u0446\u0430\u0442\u044b\u0439 \u0442\u0440\u0438\u043d\u0430\u0434\u0446\u0430\u0442\u044c \u0442\u0443 \u0442\u0443\u0434\u0430 \u0442\u0443\u0442 \u0442\u044b \u0442\u044b\u0441\u044f\u0447 \u0443 \u0443\u0436 \u0443\u0436\u0435 \u0443\u043c\u0435\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u043e \u0445\u043e\u0442\u0435\u0442\u044c \u0445\u043e\u0442\u044c \u0445\u043e\u0442\u044f \u0445\u043e\u0447\u0435\u0448\u044c \u0447\u0430\u0441\u0442\u043e \u0447\u0430\u0449\u0435 \u0447\u0435\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0447\u0435\u043c \u0447\u0435\u043c\u0443 \u0447\u0435\u0440\u0435\u0437 \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u044b\u0439 \u0447\u0435\u0442\u044b\u0440\u0435 \u0447\u0435\u0442\u044b\u0440\u043d\u0430\u0434\u0446\u0430\u0442\u044b\u0439 \u0447\u0435\u0442\u044b\u0440\u043d\u0430\u0434\u0446\u0430\u0442\u044c \u0447\u0442\u043e \u0447\u0442\u043e\u0431 \u0447\u0442\u043e\u0431\u044b \u0447\u0443\u0442\u044c \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u044b\u0439 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u044c \u0448\u0435\u0441\u0442\u043e\u0439 \u0448\u0435\u0441\u0442\u044c \u044d\u0442\u0430 \u044d\u0442\u0438 \u044d\u0442\u0438\u043c \u044d\u0442\u0438\u043c\u0438 \u044d\u0442\u0438\u0445 \u044d\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u044d\u0442\u043e\u0439 \u044d\u0442\u043e\u043c \u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u043e\u0442 \u044d\u0442\u0443 \u044f \ufeff\u0430".split(" ")),e.Pipeline.registerFunction(e.ru.stopWordFilter,"stopWordFilter-ru")}})?r.call(t,n,t,e):r)||(e.exports=i)},9531:function(e,t,n){var r,i;void 0===(i="function"===typeof(r=function(){return function(e){e.stemmerSupport={Among:function(e,t,n,r){if(this.toCharArray=function(e){for(var t=e.length,n=new Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n},!e&&""!=e||!t&&0!=t||!n)throw"Bad Among initialisation: s:"+e+", substring_i: "+t+", result: "+n;this.s_size=e.length,this.s=this.toCharArray(e),this.substring_i=t,this.result=n,this.method=r},SnowballProgram:function(){var e;return{bra:0,ket:0,limit:0,cursor:0,limit_backward:0,setCurrent:function(t){e=t,this.cursor=0,this.limit=t.length,this.limit_backward=0,this.bra=this.cursor,this.ket=this.limit},getCurrent:function(){var t=e;return e=null,t},in_grouping:function(t,n,r){if(this.cursor<this.limit){var i=e.charCodeAt(this.cursor);if(i<=r&&i>=n&&t[(i-=n)>>3]&1<<(7&i))return this.cursor++,!0}return!1},in_grouping_b:function(t,n,r){if(this.cursor>this.limit_backward){var i=e.charCodeAt(this.cursor-1);if(i<=r&&i>=n&&t[(i-=n)>>3]&1<<(7&i))return this.cursor--,!0}return!1},out_grouping:function(t,n,r){if(this.cursor<this.limit){var i=e.charCodeAt(this.cursor);if(i>r||i<n)return this.cursor++,!0;if(!(t[(i-=n)>>3]&1<<(7&i)))return this.cursor++,!0}return!1},out_grouping_b:function(t,n,r){if(this.cursor>this.limit_backward){var i=e.charCodeAt(this.cursor-1);if(i>r||i<n)return this.cursor--,!0;if(!(t[(i-=n)>>3]&1<<(7&i)))return this.cursor--,!0}return!1},eq_s:function(t,n){if(this.limit-this.cursor<t)return!1;for(var r=0;r<t;r++)if(e.charCodeAt(this.cursor+r)!=n.charCodeAt(r))return!1;return this.cursor+=t,!0},eq_s_b:function(t,n){if(this.cursor-this.limit_backward<t)return!1;for(var r=0;r<t;r++)if(e.charCodeAt(this.cursor-t+r)!=n.charCodeAt(r))return!1;return this.cursor-=t,!0},find_among:function(t,n){for(var r=0,i=n,o=this.cursor,a=this.limit,s=0,u=0,l=!1;;){for(var c=r+(i-r>>1),f=0,d=s<u?s:u,h=t[c],p=d;p<h.s_size;p++){if(o+d==a){f=-1;break}if(f=e.charCodeAt(o+d)-h.s[p])break;d++}if(f<0?(i=c,u=d):(r=c,s=d),i-r<=1){if(r>0||i==r||l)break;l=!0}}for(;;){if(s>=(h=t[r]).s_size){if(this.cursor=o+h.s_size,!h.method)return h.result;var m=h.method();if(this.cursor=o+h.s_size,m)return h.result}if((r=h.substring_i)<0)return 0}},find_among_b:function(t,n){for(var r=0,i=n,o=this.cursor,a=this.limit_backward,s=0,u=0,l=!1;;){for(var c=r+(i-r>>1),f=0,d=s<u?s:u,h=(p=t[c]).s_size-1-d;h>=0;h--){if(o-d==a){f=-1;break}if(f=e.charCodeAt(o-1-d)-p.s[h])break;d++}if(f<0?(i=c,u=d):(r=c,s=d),i-r<=1){if(r>0||i==r||l)break;l=!0}}for(;;){var p;if(s>=(p=t[r]).s_size){if(this.cursor=o-p.s_size,!p.method)return p.result;var m=p.method();if(this.cursor=o-p.s_size,m)return p.result}if((r=p.substring_i)<0)return 0}},replace_s:function(t,n,r){var i=r.length-(n-t),o=e.substring(0,t),a=e.substring(n);return e=o+r+a,this.limit+=i,this.cursor>=n?this.cursor+=i:this.cursor>t&&(this.cursor=t),i},slice_check:function(){if(this.bra<0||this.bra>this.ket||this.ket>this.limit||this.limit>e.length)throw"faulty slice operation"},slice_from:function(e){this.slice_check(),this.replace_s(this.bra,this.ket,e)},slice_del:function(){this.slice_from("")},insert:function(e,t,n){var r=this.replace_s(e,t,n);e<=this.bra&&(this.bra+=r),e<=this.ket&&(this.ket+=r)},slice_to:function(){return this.slice_check(),e.substring(this.bra,this.ket)},eq_v_b:function(e){return this.eq_s_b(e.length,e)}}}},e.trimmerSupport={generateTrimmer:function(e){var t=new RegExp("^[^"+e+"]+"),n=new RegExp("[^"+e+"]+$");return function(e){return"function"===typeof e.update?e.update((function(e){return e.replace(t,"").replace(n,"")})):e.replace(t,"").replace(n,"")}}}}})?r.call(t,n,t,e):r)||(e.exports=i)},8849:(e,t,n)=>{var r,i;!function(){var o=function(e){var t=new o.Builder;return t.pipeline.add(o.trimmer,o.stopWordFilter,o.stemmer),t.searchPipeline.add(o.stemmer),e.call(t,t),t.build()};o.version="2.3.9",o.utils={},o.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),o.utils.asString=function(e){return void 0===e||null===e?"":e.toString()},o.utils.clone=function(e){if(null===e||void 0===e)return e;for(var t=Object.create(null),n=Object.keys(e),r=0;r<n.length;r++){var i=n[r],o=e[i];if(Array.isArray(o))t[i]=o.slice();else{if("string"!==typeof o&&"number"!==typeof o&&"boolean"!==typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[i]=o}}return t},o.FieldRef=function(e,t,n){this.docRef=e,this.fieldName=t,this._stringValue=n},o.FieldRef.joiner="/",o.FieldRef.fromString=function(e){var t=e.indexOf(o.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var n=e.slice(0,t),r=e.slice(t+1);return new o.FieldRef(r,n,e)},o.FieldRef.prototype.toString=function(){return void 0==this._stringValue&&(this._stringValue=this.fieldName+o.FieldRef.joiner+this.docRef),this._stringValue},o.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},o.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},o.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},o.Set.prototype.contains=function(e){return!!this.elements[e]},o.Set.prototype.intersect=function(e){var t,n,r,i=[];if(e===o.Set.complete)return this;if(e===o.Set.empty)return e;this.length<e.length?(t=this,n=e):(t=e,n=this),r=Object.keys(t.elements);for(var a=0;a<r.length;a++){var s=r[a];s in n.elements&&i.push(s)}return new o.Set(i)},o.Set.prototype.union=function(e){return e===o.Set.complete?o.Set.complete:e===o.Set.empty?this:new o.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},o.idf=function(e,t){var n=0;for(var r in e)"_index"!=r&&(n+=Object.keys(e[r]).length);var i=(t-n+.5)/(n+.5);return Math.log(1+Math.abs(i))},o.Token=function(e,t){this.str=e||"",this.metadata=t||{}},o.Token.prototype.toString=function(){return this.str},o.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},o.Token.prototype.clone=function(e){return e=e||function(e){return e},new o.Token(e(this.str,this.metadata),this.metadata)},o.tokenizer=function(e,t){if(null==e||void 0==e)return[];if(Array.isArray(e))return e.map((function(e){return new o.Token(o.utils.asString(e).toLowerCase(),o.utils.clone(t))}));for(var n=e.toString().toLowerCase(),r=n.length,i=[],a=0,s=0;a<=r;a++){var u=a-s;if(n.charAt(a).match(o.tokenizer.separator)||a==r){if(u>0){var l=o.utils.clone(t)||{};l.position=[s,u],l.index=i.length,i.push(new o.Token(n.slice(s,a),l))}s=a+1}}return i},o.tokenizer.separator=/[\s\-]+/,o.Pipeline=function(){this._stack=[]},o.Pipeline.registeredFunctions=Object.create(null),o.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&o.utils.warn("Overwriting existing registered function: "+t),e.label=t,o.Pipeline.registeredFunctions[e.label]=e},o.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||o.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},o.Pipeline.load=function(e){var t=new o.Pipeline;return e.forEach((function(e){var n=o.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},o.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){o.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},o.Pipeline.prototype.after=function(e,t){o.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},o.Pipeline.prototype.before=function(e,t){o.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},o.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},o.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n<t;n++){for(var r=this._stack[n],i=[],o=0;o<e.length;o++){var a=r(e[o],o,e);if(null!==a&&void 0!==a&&""!==a)if(Array.isArray(a))for(var s=0;s<a.length;s++)i.push(a[s]);else i.push(a)}e=i}return e},o.Pipeline.prototype.runString=function(e,t){var n=new o.Token(e,t);return this.run([n]).map((function(e){return e.toString()}))},o.Pipeline.prototype.reset=function(){this._stack=[]},o.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return o.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},o.Vector=function(e){this._magnitude=0,this.elements=e||[]},o.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,n=this.elements.length/2,r=n-t,i=Math.floor(r/2),o=this.elements[2*i];r>1&&(o<e&&(t=i),o>e&&(n=i),o!=e);)r=n-t,i=t+Math.floor(r/2),o=this.elements[2*i];return o==e||o>e?2*i:o<e?2*(i+1):void 0},o.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},o.Vector.prototype.upsert=function(e,t,n){this._magnitude=0;var r=this.positionForIndex(e);this.elements[r]==e?this.elements[r+1]=n(this.elements[r+1],t):this.elements.splice(r,0,e,t)},o.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,n=1;n<t;n+=2){var r=this.elements[n];e+=r*r}return this._magnitude=Math.sqrt(e)},o.Vector.prototype.dot=function(e){for(var t=0,n=this.elements,r=e.elements,i=n.length,o=r.length,a=0,s=0,u=0,l=0;u<i&&l<o;)(a=n[u])<(s=r[l])?u+=2:a>s?l+=2:a==s&&(t+=n[u+1]*r[l+1],u+=2,l+=2);return t},o.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},o.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t<this.elements.length;t+=2,n++)e[n]=this.elements[t];return e},o.Vector.prototype.toJSON=function(){return this.elements},o.stemmer=function(){var e={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},t={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[aeiouy]",r="[^aeiou][^aeiouy]*",i=n+"[aeiou]*",o="^("+r+")?"+i+r+"("+i+")?$",a="^("+r+")?"+i+r+i+r,s="^("+r+")?"+n,u=new RegExp("^("+r+")?"+i+r),l=new RegExp(a),c=new RegExp(o),f=new RegExp(s),d=/^(.+?)(ss|i)es$/,h=/^(.+?)([^s])s$/,p=/^(.+?)eed$/,m=/^(.+?)(ed|ing)$/,g=/.$/,y=/(at|bl|iz)$/,v=new RegExp("([^aeiouylsz])\\1$"),b=new RegExp("^"+r+n+"[^aeiouwxy]$"),w=/^(.+?[^aeiou])y$/,_=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,x=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,E=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,k=/^(.+?)(s|t)(ion)$/,S=/^(.+?)e$/,A=/ll$/,C=new RegExp("^"+r+n+"[^aeiouwxy]$"),D=function(n){var r,i,o,a,s,D,M;if(n.length<3)return n;if("y"==(o=n.substr(0,1))&&(n=o.toUpperCase()+n.substr(1)),s=h,(a=d).test(n)?n=n.replace(a,"$1$2"):s.test(n)&&(n=n.replace(s,"$1$2")),s=m,(a=p).test(n)){var F=a.exec(n);(a=u).test(F[1])&&(a=g,n=n.replace(a,""))}else if(s.test(n)){r=(F=s.exec(n))[1],(s=f).test(r)&&(D=v,M=b,(s=y).test(n=r)?n+="e":D.test(n)?(a=g,n=n.replace(a,"")):M.test(n)&&(n+="e"))}(a=w).test(n)&&(n=(r=(F=a.exec(n))[1])+"i");(a=_).test(n)&&(r=(F=a.exec(n))[1],i=F[2],(a=u).test(r)&&(n=r+e[i]));(a=x).test(n)&&(r=(F=a.exec(n))[1],i=F[2],(a=u).test(r)&&(n=r+t[i]));if(s=k,(a=E).test(n))r=(F=a.exec(n))[1],(a=l).test(r)&&(n=r);else if(s.test(n)){r=(F=s.exec(n))[1]+F[2],(s=l).test(r)&&(n=r)}(a=S).test(n)&&(r=(F=a.exec(n))[1],s=c,D=C,((a=l).test(r)||s.test(r)&&!D.test(r))&&(n=r));return s=l,(a=A).test(n)&&s.test(n)&&(a=g,n=n.replace(a,"")),"y"==o&&(n=o.toLowerCase()+n.substr(1)),n};return function(e){return e.update(D)}}(),o.Pipeline.registerFunction(o.stemmer,"stemmer"),o.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},o.stopWordFilter=o.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),o.Pipeline.registerFunction(o.stopWordFilter,"stopWordFilter"),o.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},o.Pipeline.registerFunction(o.trimmer,"trimmer"),o.TokenSet=function(){this.final=!1,this.edges={},this.id=o.TokenSet._nextId,o.TokenSet._nextId+=1},o.TokenSet._nextId=1,o.TokenSet.fromArray=function(e){for(var t=new o.TokenSet.Builder,n=0,r=e.length;n<r;n++)t.insert(e[n]);return t.finish(),t.root},o.TokenSet.fromClause=function(e){return"editDistance"in e?o.TokenSet.fromFuzzyString(e.term,e.editDistance):o.TokenSet.fromString(e.term)},o.TokenSet.fromFuzzyString=function(e,t){for(var n=new o.TokenSet,r=[{node:n,editsRemaining:t,str:e}];r.length;){var i=r.pop();if(i.str.length>0){var a,s=i.str.charAt(0);s in i.node.edges?a=i.node.edges[s]:(a=new o.TokenSet,i.node.edges[s]=a),1==i.str.length&&(a.final=!0),r.push({node:a,editsRemaining:i.editsRemaining,str:i.str.slice(1)})}if(0!=i.editsRemaining){if("*"in i.node.edges)var u=i.node.edges["*"];else{u=new o.TokenSet;i.node.edges["*"]=u}if(0==i.str.length&&(u.final=!0),r.push({node:u,editsRemaining:i.editsRemaining-1,str:i.str}),i.str.length>1&&r.push({node:i.node,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)}),1==i.str.length&&(i.node.final=!0),i.str.length>=1){if("*"in i.node.edges)var l=i.node.edges["*"];else{l=new o.TokenSet;i.node.edges["*"]=l}1==i.str.length&&(l.final=!0),r.push({node:l,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)})}if(i.str.length>1){var c,f=i.str.charAt(0),d=i.str.charAt(1);d in i.node.edges?c=i.node.edges[d]:(c=new o.TokenSet,i.node.edges[d]=c),1==i.str.length&&(c.final=!0),r.push({node:c,editsRemaining:i.editsRemaining-1,str:f+i.str.slice(2)})}}}return n},o.TokenSet.fromString=function(e){for(var t=new o.TokenSet,n=t,r=0,i=e.length;r<i;r++){var a=e[r],s=r==i-1;if("*"==a)t.edges[a]=t,t.final=s;else{var u=new o.TokenSet;u.final=s,t.edges[a]=u,t=u}}return n},o.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var n=t.pop(),r=Object.keys(n.node.edges),i=r.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var o=0;o<i;o++){var a=r[o];t.push({prefix:n.prefix.concat(a),node:n.node.edges[a]})}}return e},o.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),n=t.length,r=0;r<n;r++){var i=t[r];e=e+i+this.edges[i].id}return e},o.TokenSet.prototype.intersect=function(e){for(var t=new o.TokenSet,n=void 0,r=[{qNode:e,output:t,node:this}];r.length;){n=r.pop();for(var i=Object.keys(n.qNode.edges),a=i.length,s=Object.keys(n.node.edges),u=s.length,l=0;l<a;l++)for(var c=i[l],f=0;f<u;f++){var d=s[f];if(d==c||"*"==c){var h=n.node.edges[d],p=n.qNode.edges[c],m=h.final&&p.final,g=void 0;d in n.output.edges?(g=n.output.edges[d]).final=g.final||m:((g=new o.TokenSet).final=m,n.output.edges[d]=g),r.push({qNode:p,output:g,node:h})}}}return t},o.TokenSet.Builder=function(){this.previousWord="",this.root=new o.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},o.TokenSet.Builder.prototype.insert=function(e){var t,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var r=0;r<e.length&&r<this.previousWord.length&&e[r]==this.previousWord[r];r++)n++;this.minimize(n),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(r=n;r<e.length;r++){var i=new o.TokenSet,a=e[r];t.edges[a]=i,this.uncheckedNodes.push({parent:t,char:a,child:i}),t=i}t.final=!0,this.previousWord=e},o.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},o.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var n=this.uncheckedNodes[t],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},o.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},o.Index.prototype.search=function(e){return this.query((function(t){new o.QueryParser(e,t).parse()}))},o.Index.prototype.query=function(e){for(var t=new o.Query(this.fields),n=Object.create(null),r=Object.create(null),i=Object.create(null),a=Object.create(null),s=Object.create(null),u=0;u<this.fields.length;u++)r[this.fields[u]]=new o.Vector;e.call(t,t);for(u=0;u<t.clauses.length;u++){var l=t.clauses[u],c=null,f=o.Set.empty;c=l.usePipeline?this.pipeline.runString(l.term,{fields:l.fields}):[l.term];for(var d=0;d<c.length;d++){var h=c[d];l.term=h;var p=o.TokenSet.fromClause(l),m=this.tokenSet.intersect(p).toArray();if(0===m.length&&l.presence===o.Query.presence.REQUIRED){for(var g=0;g<l.fields.length;g++){a[T=l.fields[g]]=o.Set.empty}break}for(var y=0;y<m.length;y++){var v=m[y],b=this.invertedIndex[v],w=b._index;for(g=0;g<l.fields.length;g++){var _=b[T=l.fields[g]],x=Object.keys(_),E=v+"/"+T,k=new o.Set(x);if(l.presence==o.Query.presence.REQUIRED&&(f=f.union(k),void 0===a[T]&&(a[T]=o.Set.complete)),l.presence!=o.Query.presence.PROHIBITED){if(r[T].upsert(w,l.boost,(function(e,t){return e+t})),!i[E]){for(var S=0;S<x.length;S++){var A,C=x[S],D=new o.FieldRef(C,T),M=_[C];void 0===(A=n[D])?n[D]=new o.MatchData(v,T,M):A.add(v,T,M)}i[E]=!0}}else void 0===s[T]&&(s[T]=o.Set.empty),s[T]=s[T].union(k)}}}if(l.presence===o.Query.presence.REQUIRED)for(g=0;g<l.fields.length;g++){a[T=l.fields[g]]=a[T].intersect(f)}}var F=o.Set.complete,O=o.Set.empty;for(u=0;u<this.fields.length;u++){var T;a[T=this.fields[u]]&&(F=F.intersect(a[T])),s[T]&&(O=O.union(s[T]))}var N=Object.keys(n),P=[],I=Object.create(null);if(t.isNegated()){N=Object.keys(this.fieldVectors);for(u=0;u<N.length;u++){D=N[u];var R=o.FieldRef.fromString(D);n[D]=new o.MatchData}}for(u=0;u<N.length;u++){var j=(R=o.FieldRef.fromString(N[u])).docRef;if(F.contains(j)&&!O.contains(j)){var L,B=this.fieldVectors[R],z=r[R.fieldName].similarity(B);if(void 0!==(L=I[j]))L.score+=z,L.matchData.combine(n[R]);else{var U={ref:j,score:z,matchData:n[R]};I[j]=U,P.push(U)}}}return P.sort((function(e,t){return t.score-e.score}))},o.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:o.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},o.Index.load=function(e){var t={},n={},r=e.fieldVectors,i=Object.create(null),a=e.invertedIndex,s=new o.TokenSet.Builder,u=o.Pipeline.load(e.pipeline);e.version!=o.version&&o.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+o.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<r.length;l++){var c=(d=r[l])[0],f=d[1];n[c]=new o.Vector(f)}for(l=0;l<a.length;l++){var d,h=(d=a[l])[0],p=d[1];s.insert(h),i[h]=p}return s.finish(),t.fields=e.fields,t.fieldVectors=n,t.invertedIndex=i,t.tokenSet=s.root,t.pipeline=u,new o.Index(t)},o.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=o.tokenizer,this.pipeline=new o.Pipeline,this.searchPipeline=new o.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},o.Builder.prototype.ref=function(e){this._ref=e},o.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},o.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},o.Builder.prototype.k1=function(e){this._k1=e},o.Builder.prototype.add=function(e,t){var n=e[this._ref],r=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var i=0;i<r.length;i++){var a=r[i],s=this._fields[a].extractor,u=s?s(e):e[a],l=this.tokenizer(u,{fields:[a]}),c=this.pipeline.run(l),f=new o.FieldRef(n,a),d=Object.create(null);this.fieldTermFrequencies[f]=d,this.fieldLengths[f]=0,this.fieldLengths[f]+=c.length;for(var h=0;h<c.length;h++){var p=c[h];if(void 0==d[p]&&(d[p]=0),d[p]+=1,void 0==this.invertedIndex[p]){var m=Object.create(null);m._index=this.termIndex,this.termIndex+=1;for(var g=0;g<r.length;g++)m[r[g]]=Object.create(null);this.invertedIndex[p]=m}void 0==this.invertedIndex[p][a][n]&&(this.invertedIndex[p][a][n]=Object.create(null));for(var y=0;y<this.metadataWhitelist.length;y++){var v=this.metadataWhitelist[y],b=p.metadata[v];void 0==this.invertedIndex[p][a][n][v]&&(this.invertedIndex[p][a][n][v]=[]),this.invertedIndex[p][a][n][v].push(b)}}}},o.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,n={},r={},i=0;i<t;i++){var a=o.FieldRef.fromString(e[i]),s=a.fieldName;r[s]||(r[s]=0),r[s]+=1,n[s]||(n[s]=0),n[s]+=this.fieldLengths[a]}var u=Object.keys(this._fields);for(i=0;i<u.length;i++){var l=u[i];n[l]=n[l]/r[l]}this.averageFieldLength=n},o.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),n=t.length,r=Object.create(null),i=0;i<n;i++){for(var a=o.FieldRef.fromString(t[i]),s=a.fieldName,u=this.fieldLengths[a],l=new o.Vector,c=this.fieldTermFrequencies[a],f=Object.keys(c),d=f.length,h=this._fields[s].boost||1,p=this._documents[a.docRef].boost||1,m=0;m<d;m++){var g,y,v,b=f[m],w=c[b],_=this.invertedIndex[b]._index;void 0===r[b]?(g=o.idf(this.invertedIndex[b],this.documentCount),r[b]=g):g=r[b],y=g*((this._k1+1)*w)/(this._k1*(1-this._b+this._b*(u/this.averageFieldLength[s]))+w),y*=h,y*=p,v=Math.round(1e3*y)/1e3,l.insert(_,v)}e[a]=l}this.fieldVectors=e},o.Builder.prototype.createTokenSet=function(){this.tokenSet=o.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},o.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new o.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},o.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},o.MatchData=function(e,t,n){for(var r=Object.create(null),i=Object.keys(n||{}),o=0;o<i.length;o++){var a=i[o];r[a]=n[a].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=r)},o.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),n=0;n<t.length;n++){var r=t[n],i=Object.keys(e.metadata[r]);void 0==this.metadata[r]&&(this.metadata[r]=Object.create(null));for(var o=0;o<i.length;o++){var a=i[o],s=Object.keys(e.metadata[r][a]);void 0==this.metadata[r][a]&&(this.metadata[r][a]=Object.create(null));for(var u=0;u<s.length;u++){var l=s[u];void 0==this.metadata[r][a][l]?this.metadata[r][a][l]=e.metadata[r][a][l]:this.metadata[r][a][l]=this.metadata[r][a][l].concat(e.metadata[r][a][l])}}}},o.MatchData.prototype.add=function(e,t,n){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=n);if(t in this.metadata[e])for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(n[o]):this.metadata[e][t][o]=n[o]}else this.metadata[e][t]=n},o.Query=function(e){this.clauses=[],this.allFields=e},o.Query.wildcard=new String("*"),o.Query.wildcard.NONE=0,o.Query.wildcard.LEADING=1,o.Query.wildcard.TRAILING=2,o.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},o.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=o.Query.wildcard.NONE),e.wildcard&o.Query.wildcard.LEADING&&e.term.charAt(0)!=o.Query.wildcard&&(e.term="*"+e.term),e.wildcard&o.Query.wildcard.TRAILING&&e.term.slice(-1)!=o.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=o.Query.presence.OPTIONAL),this.clauses.push(e),this},o.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=o.Query.presence.PROHIBITED)return!1;return!0},o.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,o.utils.clone(t))}),this),this;var n=t||{};return n.term=e.toString(),this.clause(n),this},o.QueryParseError=function(e,t,n){this.name="QueryParseError",this.message=e,this.start=t,this.end=n},o.QueryParseError.prototype=new Error,o.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},o.QueryLexer.prototype.run=function(){for(var e=o.QueryLexer.lexText;e;)e=e(this)},o.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,n=this.pos,r=0;r<this.escapeCharPositions.length;r++)n=this.escapeCharPositions[r],e.push(this.str.slice(t,n)),t=n+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},o.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},o.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},o.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return o.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},o.QueryLexer.prototype.width=function(){return this.pos-this.start},o.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},o.QueryLexer.prototype.backup=function(){this.pos-=1},o.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=o.QueryLexer.EOS&&this.backup()},o.QueryLexer.prototype.more=function(){return this.pos<this.length},o.QueryLexer.EOS="EOS",o.QueryLexer.FIELD="FIELD",o.QueryLexer.TERM="TERM",o.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",o.QueryLexer.BOOST="BOOST",o.QueryLexer.PRESENCE="PRESENCE",o.QueryLexer.lexField=function(e){return e.backup(),e.emit(o.QueryLexer.FIELD),e.ignore(),o.QueryLexer.lexText},o.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(o.QueryLexer.TERM)),e.ignore(),e.more())return o.QueryLexer.lexText},o.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(o.QueryLexer.EDIT_DISTANCE),o.QueryLexer.lexText},o.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(o.QueryLexer.BOOST),o.QueryLexer.lexText},o.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(o.QueryLexer.TERM)},o.QueryLexer.termSeparator=o.tokenizer.separator,o.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==o.QueryLexer.EOS)return o.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return o.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(o.QueryLexer.TERM),o.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(o.QueryLexer.TERM),o.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(o.QueryLexer.PRESENCE),o.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(o.QueryLexer.PRESENCE),o.QueryLexer.lexText;if(t.match(o.QueryLexer.termSeparator))return o.QueryLexer.lexTerm}else e.escapeCharacter()}},o.QueryParser=function(e,t){this.lexer=new o.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},o.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=o.QueryParser.parseClause;e;)e=e(this);return this.query},o.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},o.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},o.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},o.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(void 0!=t)switch(t.type){case o.QueryLexer.PRESENCE:return o.QueryParser.parsePresence;case o.QueryLexer.FIELD:return o.QueryParser.parseField;case o.QueryLexer.TERM:return o.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new o.QueryParseError(n,t.start,t.end)}},o.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(void 0!=t){switch(t.str){case"-":e.currentClause.presence=o.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=o.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new o.QueryParseError(n,t.start,t.end)}var r=e.peekLexeme();if(void 0==r){n="expecting term or field, found nothing";throw new o.QueryParseError(n,t.start,t.end)}switch(r.type){case o.QueryLexer.FIELD:return o.QueryParser.parseField;case o.QueryLexer.TERM:return o.QueryParser.parseTerm;default:n="expecting term or field, found '"+r.type+"'";throw new o.QueryParseError(n,r.start,r.end)}}},o.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(void 0!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),r="unrecognised field '"+t.str+"', possible fields: "+n;throw new o.QueryParseError(r,t.start,t.end)}e.currentClause.fields=[t.str];var i=e.peekLexeme();if(void 0==i){r="expecting term, found nothing";throw new o.QueryParseError(r,t.start,t.end)}if(i.type===o.QueryLexer.TERM)return o.QueryParser.parseTerm;r="expecting term, found '"+i.type+"'";throw new o.QueryParseError(r,i.start,i.end)}},o.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(void 0!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(void 0!=n)switch(n.type){case o.QueryLexer.TERM:return e.nextClause(),o.QueryParser.parseTerm;case o.QueryLexer.FIELD:return e.nextClause(),o.QueryParser.parseField;case o.QueryLexer.EDIT_DISTANCE:return o.QueryParser.parseEditDistance;case o.QueryLexer.BOOST:return o.QueryParser.parseBoost;case o.QueryLexer.PRESENCE:return e.nextClause(),o.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new o.QueryParseError(r,n.start,n.end)}else e.nextClause()}},o.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(void 0!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="edit distance must be numeric";throw new o.QueryParseError(r,t.start,t.end)}e.currentClause.editDistance=n;var i=e.peekLexeme();if(void 0!=i)switch(i.type){case o.QueryLexer.TERM:return e.nextClause(),o.QueryParser.parseTerm;case o.QueryLexer.FIELD:return e.nextClause(),o.QueryParser.parseField;case o.QueryLexer.EDIT_DISTANCE:return o.QueryParser.parseEditDistance;case o.QueryLexer.BOOST:return o.QueryParser.parseBoost;case o.QueryLexer.PRESENCE:return e.nextClause(),o.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+i.type+"'";throw new o.QueryParseError(r,i.start,i.end)}else e.nextClause()}},o.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(void 0!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="boost must be numeric";throw new o.QueryParseError(r,t.start,t.end)}e.currentClause.boost=n;var i=e.peekLexeme();if(void 0!=i)switch(i.type){case o.QueryLexer.TERM:return e.nextClause(),o.QueryParser.parseTerm;case o.QueryLexer.FIELD:return e.nextClause(),o.QueryParser.parseField;case o.QueryLexer.EDIT_DISTANCE:return o.QueryParser.parseEditDistance;case o.QueryLexer.BOOST:return o.QueryParser.parseBoost;case o.QueryLexer.PRESENCE:return e.nextClause(),o.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+i.type+"'";throw new o.QueryParseError(r,i.start,i.end)}else e.nextClause()}},void 0===(i="function"===typeof(r=function(){return o})?r.call(t,n,t,e):r)||(e.exports=i)}()},4960:e=>{"use strict";e.exports=Math.abs},6583:e=>{"use strict";e.exports=4294967295},5587:e=>{"use strict";e.exports=Number.MAX_SAFE_INTEGER||9007199254740991},8974:e=>{"use strict";e.exports=Math.floor},1497:(e,t,n)=>{"use strict";var r=n(1581);e.exports=function(e){return("number"===typeof e||"bigint"===typeof e)&&!r(e)&&e!==1/0&&e!==-1/0}},2190:(e,t,n)=>{"use strict";var r=n(4960),i=n(8974),o=n(1581),a=n(1497);e.exports=function(e){if("number"!==typeof e||o(e)||!a(e))return!1;var t=r(e);return i(t)===t}},1581:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!==e}},2938:e=>{"use strict";e.exports=Math.max},6516:e=>{"use strict";e.exports=Math.min},5158:e=>{"use strict";e.exports=Math.pow},7856:e=>{"use strict";e.exports=Math.round},8707:(e,t,n)=>{"use strict";var r=n(1581);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},69:(e,t,n)=>{!function(){var t=n(8729),r=n(4309).utf8,i=n(8412),o=n(4309).bin,a=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?o.stringToBytes(e):r.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var s=t.bytesToWords(e),u=8*e.length,l=1732584193,c=-271733879,f=-1732584194,d=271733878,h=0;h<s.length;h++)s[h]=16711935&(s[h]<<8|s[h]>>>24)|4278255360&(s[h]<<24|s[h]>>>8);s[u>>>5]|=128<<u%32,s[14+(u+64>>>9<<4)]=u;var p=a._ff,m=a._gg,g=a._hh,y=a._ii;for(h=0;h<s.length;h+=16){var v=l,b=c,w=f,_=d;l=p(l,c,f,d,s[h+0],7,-680876936),d=p(d,l,c,f,s[h+1],12,-389564586),f=p(f,d,l,c,s[h+2],17,606105819),c=p(c,f,d,l,s[h+3],22,-1044525330),l=p(l,c,f,d,s[h+4],7,-176418897),d=p(d,l,c,f,s[h+5],12,1200080426),f=p(f,d,l,c,s[h+6],17,-1473231341),c=p(c,f,d,l,s[h+7],22,-45705983),l=p(l,c,f,d,s[h+8],7,1770035416),d=p(d,l,c,f,s[h+9],12,-1958414417),f=p(f,d,l,c,s[h+10],17,-42063),c=p(c,f,d,l,s[h+11],22,-1990404162),l=p(l,c,f,d,s[h+12],7,1804603682),d=p(d,l,c,f,s[h+13],12,-40341101),f=p(f,d,l,c,s[h+14],17,-1502002290),l=m(l,c=p(c,f,d,l,s[h+15],22,1236535329),f,d,s[h+1],5,-165796510),d=m(d,l,c,f,s[h+6],9,-1069501632),f=m(f,d,l,c,s[h+11],14,643717713),c=m(c,f,d,l,s[h+0],20,-373897302),l=m(l,c,f,d,s[h+5],5,-701558691),d=m(d,l,c,f,s[h+10],9,38016083),f=m(f,d,l,c,s[h+15],14,-660478335),c=m(c,f,d,l,s[h+4],20,-405537848),l=m(l,c,f,d,s[h+9],5,568446438),d=m(d,l,c,f,s[h+14],9,-1019803690),f=m(f,d,l,c,s[h+3],14,-187363961),c=m(c,f,d,l,s[h+8],20,1163531501),l=m(l,c,f,d,s[h+13],5,-1444681467),d=m(d,l,c,f,s[h+2],9,-51403784),f=m(f,d,l,c,s[h+7],14,1735328473),l=g(l,c=m(c,f,d,l,s[h+12],20,-1926607734),f,d,s[h+5],4,-378558),d=g(d,l,c,f,s[h+8],11,-2022574463),f=g(f,d,l,c,s[h+11],16,1839030562),c=g(c,f,d,l,s[h+14],23,-35309556),l=g(l,c,f,d,s[h+1],4,-1530992060),d=g(d,l,c,f,s[h+4],11,1272893353),f=g(f,d,l,c,s[h+7],16,-155497632),c=g(c,f,d,l,s[h+10],23,-1094730640),l=g(l,c,f,d,s[h+13],4,681279174),d=g(d,l,c,f,s[h+0],11,-358537222),f=g(f,d,l,c,s[h+3],16,-722521979),c=g(c,f,d,l,s[h+6],23,76029189),l=g(l,c,f,d,s[h+9],4,-640364487),d=g(d,l,c,f,s[h+12],11,-421815835),f=g(f,d,l,c,s[h+15],16,530742520),l=y(l,c=g(c,f,d,l,s[h+2],23,-995338651),f,d,s[h+0],6,-198630844),d=y(d,l,c,f,s[h+7],10,1126891415),f=y(f,d,l,c,s[h+14],15,-1416354905),c=y(c,f,d,l,s[h+5],21,-57434055),l=y(l,c,f,d,s[h+12],6,1700485571),d=y(d,l,c,f,s[h+3],10,-1894986606),f=y(f,d,l,c,s[h+10],15,-1051523),c=y(c,f,d,l,s[h+1],21,-2054922799),l=y(l,c,f,d,s[h+8],6,1873313359),d=y(d,l,c,f,s[h+15],10,-30611744),f=y(f,d,l,c,s[h+6],15,-1560198380),c=y(c,f,d,l,s[h+13],21,1309151649),l=y(l,c,f,d,s[h+4],6,-145523070),d=y(d,l,c,f,s[h+11],10,-1120210379),f=y(f,d,l,c,s[h+2],15,718787259),c=y(c,f,d,l,s[h+9],21,-343485551),l=l+v>>>0,c=c+b>>>0,f=f+w>>>0,d=d+_>>>0}return t.endian([l,c,f,d])};a._ff=function(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},a._gg=function(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},a._hh=function(e,t,n,r,i,o,a){var s=e+(t^n^r)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},a._ii=function(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+(i>>>0)+a;return(s<<o|s>>>32-o)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(a(e,n));return n&&n.asBytes?r:n&&n.asString?o.bytesToString(r):t.bytesToHex(r)}}()},4141:(e,t,n)=>{var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&u&&"function"===typeof u.get?u.get:null,c=s&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,_=String.prototype.toLowerCase,x=RegExp.prototype.test,E=Array.prototype.concat,k=Array.prototype.join,S=Array.prototype.slice,A=Math.floor,C="function"===typeof BigInt?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,M="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,F="function"===typeof Symbol&&"object"===typeof Symbol.iterator,O="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===F||"symbol")?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,N=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-A(-e):A(e);if(r!==e){var i=String(r),o=v.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var I=n(2634),R=I.custom,j=G(R)?R:null,L={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function z(e,t,n){var r=n.quoteStyle||t,i=L[r];return i+e+i}function U(e){return b.call(String(e),/"/g,""")}function H(e){return"[object Array]"===Q(e)&&(!O||!("object"===typeof e&&O in e))}function q(e){return"[object RegExp]"===Q(e)&&(!O||!("object"===typeof e&&O in e))}function G(e){if(F)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!M)return!1;try{return M.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,i,s){var u=r||{};if(V(u,"quoteStyle")&&!V(L,u.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(u,"maxStringLength")&&("number"===typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!V(u,"customInspect")||u.customInspect;if("boolean"!==typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(u,"numericSeparator")&&"boolean"!==typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return K(t,u);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return w?P(t,x):x}if("bigint"===typeof t){var A=String(t)+"n";return w?P(t,A):A}var D="undefined"===typeof u.depth?5:u.depth;if("undefined"===typeof i&&(i=0),i>=D&&D>0&&"object"===typeof t)return H(t)?"[Array]":"[Object]";var R=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=k.call(Array(e.indent+1)," ")}return{base:n,prev:k.call(Array(t+1),n)}}(u,i);if("undefined"===typeof s)s=[];else if($(s,t)>=0)return"[Circular]";function B(t,n,r){if(n&&(s=S.call(s)).push(n),r){var o={depth:u.depth};return V(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,i+1,s)}return e(t,u,i+1,s)}if("function"===typeof t&&!q(t)){var W=function(e){if(e.name)return e.name;var t=y.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),Y=te(t,B);return"[Function"+(W?": "+W:" (anonymous)")+"]"+(Y.length>0?" { "+k.call(Y,", ")+" }":"")}if(G(t)){var ne=F?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):M.call(t);return"object"!==typeof t||F?ne:X(ne)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var re="<"+_.call(String(t.nodeName)),ie=t.attributes||[],oe=0;oe<ie.length;oe++)re+=" "+ie[oe].name+"="+z(U(ie[oe].value),"double",u);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+_.call(String(t.nodeName))+">"}if(H(t)){if(0===t.length)return"[]";var ae=te(t,B);return R&&!function(e){for(var t=0;t<e.length;t++)if($(e[t],"\n")>=0)return!1;return!0}(ae)?"["+ee(ae,R)+"]":"[ "+k.call(ae,", ")+" ]"}if(function(e){return"[object Error]"===Q(e)&&(!O||!("object"===typeof e&&O in e))}(t)){var se=te(t,B);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+k.call(se,", ")+" }":"{ ["+String(t)+"] "+k.call(E.call("[cause]: "+B(t.cause),se),", ")+" }"}if("object"===typeof t&&m){if(j&&"function"===typeof t[j]&&I)return I(t,{depth:D-i});if("symbol"!==m&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{l.call(e)}catch(re){return!0}return e instanceof Map}catch(t){}return!1}(t)){var ue=[];return a&&a.call(t,(function(e,n){ue.push(B(n,t,!0)+" => "+B(e,t))})),J("Map",o.call(t),ue,R)}if(function(e){if(!l||!e||"object"!==typeof e)return!1;try{l.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var le=[];return c&&c.call(t,(function(e){le.push(B(e,t))})),J("Set",l.call(t),le,R)}if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(re){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return Z("WeakMap");if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(re){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return Z("WeakSet");if(function(e){if(!h||!e||"object"!==typeof e)return!1;try{return h.call(e),!0}catch(t){}return!1}(t))return Z("WeakRef");if(function(e){return"[object Number]"===Q(e)&&(!O||!("object"===typeof e&&O in e))}(t))return X(B(Number(t)));if(function(e){if(!e||"object"!==typeof e||!C)return!1;try{return C.call(e),!0}catch(t){}return!1}(t))return X(B(C.call(t)));if(function(e){return"[object Boolean]"===Q(e)&&(!O||!("object"===typeof e&&O in e))}(t))return X(p.call(t));if(function(e){return"[object String]"===Q(e)&&(!O||!("object"===typeof e&&O in e))}(t))return X(B(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&t===globalThis||"undefined"!==typeof n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Q(e)&&(!O||!("object"===typeof e&&O in e))}(t)&&!q(t)){var ce=te(t,B),fe=N?N(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",he=!fe&&O&&Object(t)===t&&O in t?v.call(Q(t),8,-1):de?"Object":"",pe=(fe||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||de?"["+k.call(E.call([],he||[],de||[]),": ")+"] ":"");return 0===ce.length?pe+"{}":R?pe+"{"+ee(ce,R)+"}":pe+"{ "+k.call(ce,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return W.call(e,t)}function Q(e){return m.call(e)}function $(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function K(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return K(v.call(e,0,t.maxStringLength),t)+r}var i=B[t.quoteStyle||"single"];return i.lastIndex=0,z(b.call(b.call(e,i,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function X(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function J(e,t,n,r){return e+" ("+t+") {"+(r?ee(n,r):k.call(n,", "))+"}"}function ee(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+k.call(e,","+n)+"\n"+t.prev}function te(e,t){var n=H(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=V(e,i)?t(e[i],e):""}var o,a="function"===typeof D?D(e):[];if(F){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var u in e)V(e,u)&&(n&&String(Number(u))===u&&u<e.length||F&&o["$"+u]instanceof Symbol||(x.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if("function"===typeof D)for(var l=0;l<a.length;l++)T.call(e,a[l])&&r.push("["+t(a[l])+"]: "+t(e[a[l]],e));return r}},225:(e,t,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(543),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),l=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{f(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=l&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)d.push(String(g));else for(var y in e)p&&"prototype"===y||!i.call(e,y)||d.push(String(y));if(u)for(var v=function(e){if("undefined"===typeof window||!h)return f(e);try{return f(e)}catch(t){return!1}}(e),b=0;b<c.length;++b)v&&"constructor"===c[b]||!i.call(e,c[b])||d.push(c[b]);return d}}e.exports=r},7839:(e,t,n)=>{"use strict";var r=Array.prototype.slice,i=n(543),o=Object.keys,a=o?function(e){return o(e)}:n(225),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},543:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},1241:e=>{function t(e){return function(t){return t.tag===e}}function n(e){return e.id=e.pointer,e.name=function(e){if("INDI"===e.tag){var n=(e.tree.filter(t("NAME"))||[])[0];return n?n.data.replace(/\//g,""):"?"}return"Family"}(e),e}e.exports=function(e){var r=e.filter(t("INDI")).map(n),i=e.filter(t("FAM")),o=i.map(n),a=i.reduce((function(e,t){return e.concat(function(e){var t=e.tree.filter((function(e){return e.data&&"@"===e.data[0]})).map((function(t){return{source:e.pointer,target:t.data}}));return t}(t))}),[]),s=r.concat(o),u=s.reduce((function(e,t,n){return e[t.id]=n,e}),{});return a=a.map(function(e){return function(t){function n(t){return e[t]}return{source:n(t.source),target:n(t.target)}}}(u)),{nodes:s,links:a}}},8148:(e,t,n)=>{var r=n(8966),i=/\s*(0|[1-9]+[0-9]*) (@[^@]+@ |)([A-Za-z0-9_]+)( [^\n\r]*|)/;e.exports.parse=function(e){var t={root:{tree:[]},level:0};t.pointer=t.root;var n=e.split("\n").map((function(e){var t=e.match(i);return t?{level:parseInt(t[1],10),pointer:t[2].trim(),tag:t[3].trim(),data:t[4].trimLeft(),tree:[]}:null})).filter((function(e){return e})).reduce((function(e,t){if(t.level===e.level)e.pointer.tree.push(t);else if(t.level>e.level){var n=e.pointer;e.pointer=e.pointer.tree[e.pointer.tree.length-1],e.pointer.tree.push(t),e.pointer.up=n,e.level=t.level}else if(t.level<e.level){for(;t.level<=e.pointer.level&&e.pointer.up;)e.pointer=e.pointer.up;e.pointer.tree.push(t),e.level=t.level}return e}),t).root;return r(n,(function(e){delete e.up,delete e.level}),{getChildren:function(e){return e.tree}}),n.tree},e.exports.d3ize=n(1241)},7960:(e,t,n)=>{var r=n(2576);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return u(o(e,t),t)},e.exports.tokensToFunction=u,e.exports.tokensToRegExp=h;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,s=0,u="",l=t&&t.delimiter||"/";null!=(n=i.exec(e));){var f=n[0],d=n[1],h=n.index;if(u+=e.slice(s,h),s=h+f.length,d)u+=d[1];else{var p=e[s],m=n[2],g=n[3],y=n[4],v=n[5],b=n[6],w=n[7];u&&(r.push(u),u="");var _=null!=m&&null!=p&&p!==m,x="+"===b||"*"===b,E="?"===b||"*"===b,k=m||l,S=y||v,A=m||("string"===typeof r[r.length-1]?r[r.length-1]:"");r.push({name:g||o++,prefix:m||"",delimiter:k,optional:E,repeat:x,partial:_,asterisk:!!w,pattern:S?c(S):w?".*":a(k,A)})}}return s<e.length&&(u+=e.substr(s)),u&&r.push(u),r}function a(e,t){return!t||t.indexOf(e)>-1?"[^"+l(e)+"]+?":l(t)+"|(?:(?!"+l(t)+")[^"+l(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function u(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",d(t)));return function(t,i){for(var o="",a=t||{},u=(i||{}).pretty?s:encodeURIComponent,l=0;l<e.length;l++){var c=e[l];if("string"!==typeof c){var f,d=a[c.name];if(null==d){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(d)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(f=u(d[h]),!n[l].test(f))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===h?c.prefix:c.delimiter)+f}}else{if(f=c.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(d),!n[l].test(f))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+f+'"');o+=c.prefix+f}}else o+=c}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function f(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function h(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var u=e[s];if("string"===typeof u)a+=l(u);else{var c=l(u.prefix),h="(?:"+u.pattern+")";t.push(u),u.repeat&&(h+="(?:"+c+h+")*"),a+=h=u.optional?u.partial?c+"("+h+")?":"(?:"+c+"("+h+"))?":c+"("+h+")"}}var p=l(n.delimiter||"/"),m=a.slice(-p.length)===p;return i||(a=(m?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+p+"|$)",f(new RegExp("^"+a,d(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(p(e[i],t,n).source);return f(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return h(o(e,n),t,n)}(e,t,n)}},3488:(e,t,n)=>{"use strict";var r=n(3959);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},1942:(e,t,n)=>{e.exports=n(3488)()},3959:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8345:(e,t,n)=>{"use strict";var r=n(9950),i=n(5340);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function u(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!f.call(p,e)||!f.call(h,e)&&(d.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),C=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),T=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var P=Symbol.iterator;function I(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=P&&e[P]||e["@@iterator"])?e:null}var R,j=Object.assign;function L(e){if(void 0===R)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var B=!1;function z(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var i=l.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var u="\n"+i[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function U(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case x:return"Portal";case S:return"Profiler";case k:return"StrictMode";case M:return"Suspense";case F:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case D:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return H(e(t))}catch(n){}}return null}function q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function G(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function $(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){X(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&$(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function oe(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ye=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Ee=null,ke=null;function Se(e){if(e=bi(e)){if("function"!==typeof xe)throw Error(o(280));var t=e.stateNode;t&&(t=_i(t),xe(e.stateNode,e.type,t))}}function Ae(e){Ee?ke?ke.push(e):ke=[e]:Ee=e}function Ce(){if(Ee){var e=Ee,t=ke;if(ke=Ee=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function De(e,t){return e(t)}function Me(){}var Fe=!1;function Oe(e,t,n){if(Fe)return e(t,n);Fe=!0;try{return De(e,t,n)}finally{Fe=!1,(null!==Ee||null!==ke)&&(Me(),Ce())}}function Te(e,t){var n=e.stateNode;if(null===n)return null;var r=_i(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Ne=!1;if(c)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(ce){Ne=!1}function Ie(e,t,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var Re=!1,je=null,Le=!1,Be=null,ze={onError:function(e){Re=!0,je=e}};function Ue(e,t,n,r,i,o,a,s,u){Re=!1,je=null,Ie.apply(ze,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ge(e){if(He(e)!==e)throw Error(o(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ge(i),e;if(a===r)return Ge(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var Qe=i.unstable_scheduleCallback,$e=i.unstable_cancelCallback,Ke=i.unstable_shouldYield,Ye=i.unstable_requestPaint,Xe=i.unstable_now,Ze=i.unstable_getCurrentPriorityLevel,Je=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/ut|0)|0},st=Math.log,ut=Math.LN2;var lt=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=ft(s):0!==(o&=a)&&(r=ft(o))}else 0!==(a=n&~i)?r=ft(a):0!==o&&(r=ft(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=lt;return 0===(4194240&(lt<<=1))&&(lt=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var _t,xt,Et,kt,St,At=!1,Ct=[],Dt=null,Mt=null,Ft=null,Ot=new Map,Tt=new Map,Nt=[],Pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":Dt=null;break;case"dragenter":case"dragleave":Mt=null;break;case"mouseover":case"mouseout":Ft=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tt.delete(t.pointerId)}}function Rt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function jt(e){var t=vi(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=qe(n)))return e.blockedOn=t,void St(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Bt(e,t,n){Lt(e)&&n.delete(t)}function zt(){At=!1,null!==Dt&&Lt(Dt)&&(Dt=null),null!==Mt&&Lt(Mt)&&(Mt=null),null!==Ft&&Lt(Ft)&&(Ft=null),Ot.forEach(Bt),Tt.forEach(Bt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,At||(At=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,zt)))}function Ht(e){function t(t){return Ut(t,e)}if(0<Ct.length){Ut(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Dt&&Ut(Dt,e),null!==Mt&&Ut(Mt,e),null!==Ft&&Ut(Ft,e),Ot.forEach(t),Tt.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)jt(n),null===n.blockedOn&&Nt.shift()}var qt=w.ReactCurrentBatchConfig,Gt=!0;function Wt(e,t,n,r){var i=bt,o=qt.transition;qt.transition=null;try{bt=1,Qt(e,t,n,r)}finally{bt=i,qt.transition=o}}function Vt(e,t,n,r){var i=bt,o=qt.transition;qt.transition=null;try{bt=4,Qt(e,t,n,r)}finally{bt=i,qt.transition=o}}function Qt(e,t,n,r){if(Gt){var i=Kt(e,t,n,r);if(null===i)Gr(e,t,r,$t,n),It(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Dt=Rt(Dt,e,t,n,r,i),!0;case"dragenter":return Mt=Rt(Mt,e,t,n,r,i),!0;case"mouseover":return Ft=Rt(Ft,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ot.set(o,Rt(Ot.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Tt.set(o,Rt(Tt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<Pt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&_t(o),null===(o=Kt(e,t,n,r))&&Gr(e,t,r,$t,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Gr(e,t,r,null,n)}}var $t=null;function Kt(e,t,n,r){if($t=null,null!==(e=vi(e=_e(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=qe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $t=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,i="value"in Xt?Xt.value:Xt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Jt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,un,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(ln),fn=j({},ln,{view:0,detail:0}),dn=on(fn),hn=j({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(an=e.screenX-un.screenX,sn=e.screenY-un.screenY):sn=an=0,un=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(hn),mn=on(j({},hn,{dataTransfer:0})),gn=on(j({},fn,{relatedTarget:0})),yn=on(j({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=j({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(vn),wn=on(j({},ln,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Sn(){return kn}var An=j({},fn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=on(An),Dn=on(j({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Mn=on(j({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),Fn=on(j({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=j({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Tn=on(On),Nn=[9,13,27,32],Pn=c&&"CompositionEvent"in window,In=null;c&&"documentMode"in document&&(In=document.documentMode);var Rn=c&&"TextEvent"in window&&!In,jn=c&&(!Pn||In&&8<In&&11>=In),Ln=String.fromCharCode(32),Bn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var qn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function Wn(e,t,n,r){Ae(r),0<(t=Vr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Qn=null;function $n(e){Lr(e,0)}function Kn(e){if(Q(wi(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(c){var Zn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Zn=Jn}else Zn=!1;Xn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Qn=Vn=null)}function nr(e){if("value"===e.propertyName&&Kn(Qn)){var t=[];Wn(t,Qn,e,_e(e)),Oe($n,t)}}function rr(e,t,n){"focusin"===e?(tr(),Qn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Qn)}function or(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ur(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!f.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=$();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=$((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,vr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==$(r)||("selectionStart"in(r=gr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&ur(vr,r)||(vr=r,0<(r=Vr(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},Er={},kr={};function Sr(e){if(Er[e])return Er[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Er[e]=n[t];return e}c&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Ar=Sr("animationend"),Cr=Sr("animationiteration"),Dr=Sr("animationstart"),Mr=Sr("transitionend"),Fr=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tr(e,t){Fr.set(e,t),u(t,[e])}for(var Nr=0;Nr<Or.length;Nr++){var Pr=Or[Nr];Tr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Tr(Ar,"onAnimationEnd"),Tr(Cr,"onAnimationIteration"),Tr(Dr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(Mr,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function jr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,u,l){if(Ue.apply(this,arguments),Re){if(!Re)throw Error(o(198));var c=je;Re=!1,je=null,Le||(Le=!0,Be=c)}}(r,t,void 0,e),e.currentTarget=null}function Lr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;jr(i,s,l),o=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,l=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;jr(i,s,l),o=u}}}if(Le)throw e=Be,Le=!1,Be=null,e}function Br(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(qr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),qr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Rr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,zr("selectionchange",!1,t))}}function qr(e,t,n,r){switch(Yt(t)){case 1:var i=Wt;break;case 4:i=Vt;break;default:i=Qt}n=i.bind(null,t,n,e),i=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Gr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=vi(s)))return;if(5===(u=a.tag)||6===u){r=o=a;continue e}s=s.parentNode}}r=r.return}Oe((function(){var r=o,i=_e(n),a=[];e:{var s=Fr.get(e);if(void 0!==s){var u=cn,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=Cn;break;case"focusin":l="focus",u=gn;break;case"focusout":l="blur",u=gn;break;case"beforeblur":case"afterblur":u=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Mn;break;case Ar:case Cr:case Dr:u=yn;break;case Mr:u=Fn;break;case"scroll":u=dn;break;case"wheel":u=Tn;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Dn}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==d&&(null!=(m=Te(p,d))&&c.push(Wr(p,m,h)))),f)break;p=p.return}0<c.length&&(s=new u(s,l,null,n,i),a.push({event:s,listeners:c}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(l=n.relatedTarget||n.fromElement)||!vi(l)&&!l[pi])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?vi(l):null)&&(l!==(f=He(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=pn,m="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Dn,m="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==u?s:wi(u),h=null==l?s:wi(l),(s=new c(m,p+"leave",u,n,i)).target=f,s.relatedTarget=h,m=null,vi(i)===r&&((c=new c(d,p+"enter",l,n,i)).target=h,c.relatedTarget=f,m=c),f=m,u&&l)e:{for(d=l,p=0,h=c=u;h;h=Qr(h))p++;for(h=0,m=d;m;m=Qr(m))h++;for(;0<p-h;)c=Qr(c),p--;for(;0<h-p;)d=Qr(d),h--;for(;p--;){if(c===d||null!==d&&c===d.alternate)break e;c=Qr(c),d=Qr(d)}c=null}else c=null;null!==u&&$r(a,s,u,c,!1),null!==l&&null!==f&&$r(a,f,l,c,!0)}if("select"===(u=(s=r?wi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var g=Yn;else if(Gn(s))if(Xn)g=ar;else{g=ir;var y=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Wn(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=r?wi(r):window,e){case"focusin":(Gn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,vr=null);break;case"focusout":vr=yr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,i)}var v;if(Pn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(jn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(v=en()):(Zt="value"in(Xt=i)?Xt.value:Xt.textContent,Hn=!0)),0<(y=Vr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=Un(n))&&(b.data=v))),(v=Rn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Bn=!0,Ln);case"textInput":return(e=t.data)===Ln&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Pn&&zn(e,t)?(e=en(),Jt=Zt=Xt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}Lr(a,t)}))}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Te(e,n))&&r.unshift(Wr(e,o,i)),null!=(o=Te(e,t))&&r.push(Wr(e,o,i))),e=e.return}return r}function Qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function $r(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(u=Te(n,o))&&a.unshift(Wr(n,u,s)):i||null!=(u=Te(n,o))&&a.push(Wr(n,u,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Xr(e){return("string"===typeof e?e:""+e).replace(Kr,"\n").replace(Yr,"")}function Zr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(o(425))}function Jr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function ui(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ht(t)}function li(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fi=Math.random().toString(36).slice(2),di="__reactFiber$"+fi,hi="__reactProps$"+fi,pi="__reactContainer$"+fi,mi="__reactEvents$"+fi,gi="__reactListeners$"+fi,yi="__reactHandles$"+fi;function vi(e){var t=e[di];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[di]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[di])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[di]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function _i(e){return e[hi]||null}var xi=[],Ei=-1;function ki(e){return{current:e}}function Si(e){0>Ei||(e.current=xi[Ei],xi[Ei]=null,Ei--)}function Ai(e,t){Ei++,xi[Ei]=e.current,e.current=t}var Ci={},Di=ki(Ci),Mi=ki(!1),Fi=Ci;function Oi(e,t){var n=e.type.contextTypes;if(!n)return Ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ti(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ni(){Si(Mi),Si(Di)}function Pi(e,t,n){if(Di.current!==Ci)throw Error(o(168));Ai(Di,t),Ai(Mi,n)}function Ii(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,q(e)||"Unknown",i));return j({},n,r)}function Ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ci,Fi=Di.current,Ai(Di,e),Ai(Mi,Mi.current),!0}function ji(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ii(e,t,Fi),r.__reactInternalMemoizedMergedChildContext=e,Si(Mi),Si(Di),Ai(Di,e)):Si(Mi),Ai(Mi,n)}var Li=null,Bi=!1,zi=!1;function Ui(e){null===Li?Li=[e]:Li.push(e)}function Hi(){if(!zi&&null!==Li){zi=!0;var e=0,t=bt;try{var n=Li;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Li=null,Bi=!1}catch(i){throw null!==Li&&(Li=Li.slice(e+1)),Qe(Je,Hi),i}finally{bt=t,zi=!1}}return null}var qi=[],Gi=0,Wi=null,Vi=0,Qi=[],$i=0,Ki=null,Yi=1,Xi="";function Zi(e,t){qi[Gi++]=Vi,qi[Gi++]=Wi,Wi=e,Vi=t}function Ji(e,t,n){Qi[$i++]=Yi,Qi[$i++]=Xi,Qi[$i++]=Ki,Ki=e;var r=Yi;e=Xi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Yi=1<<32-at(t)+i|n<<i|r,Xi=o+e}else Yi=1<<o|n<<i|r,Xi=e}function eo(e){null!==e.return&&(Zi(e,1),Ji(e,1,0))}function to(e){for(;e===Wi;)Wi=qi[--Gi],qi[Gi]=null,Vi=qi[--Gi],qi[Gi]=null;for(;e===Ki;)Ki=Qi[--$i],Qi[$i]=null,Xi=Qi[--$i],Qi[$i]=null,Yi=Qi[--$i],Qi[$i]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Ol(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=li(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ki?{id:Yi,overflow:Xi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ol(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function uo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function lo(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(uo(e))throw Error(o(418));t=li(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(uo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(uo(e))throw ho(),Error(o(418));for(;t;)ao(e,t),t=li(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=li(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?li(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ro;e;)e=li(e.nextSibling)}function po(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=w.ReactCurrentBatchConfig;function yo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function vo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function wo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Nl(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=jl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===E?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===T&&bo(o)===t.type)?((r=i(t,n.props)).ref=yo(e,t,n),r.return=e,r):((r=Pl(n.type,n.key,n.props,null,e.mode,r)).ref=yo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ll(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Il(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=jl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Pl(t.type,t.key,t.props,null,e.mode,n)).ref=yo(e,null,t),n.return=e,n;case x:return(t=Ll(t,e.mode,n)).return=e,t;case T:return d(e,(0,t._init)(t._payload),n)}if(te(t)||I(t))return(t=Il(t,e.mode,n,null)).return=e,t;vo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case x:return n.key===i?c(e,t,n,r):null;case T:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||I(n))return null!==i?null:f(e,t,n,r,null);vo(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case _:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case T:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||I(r))return f(t,e=e.get(n)||null,r,i,null);vo(t,r)}return null}function m(i,o,s,u){for(var l=null,c=null,f=o,m=o=0,g=null;null!==f&&m<s.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var y=h(i,f,s[m],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(i,f),o=a(y,o,m),null===c?l=y:c.sibling=y,c=y,f=g}if(m===s.length)return n(i,f),io&&Zi(i,m),l;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],u))&&(o=a(f,o,m),null===c?l=f:c.sibling=f,c=f);return io&&Zi(i,m),l}for(f=r(i,f);m<s.length;m++)null!==(g=p(f,i,m,s[m],u))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),o=a(g,o,m),null===c?l=g:c.sibling=g,c=g);return e&&f.forEach((function(e){return t(i,e)})),io&&Zi(i,m),l}function g(i,s,u,l){var c=I(u);if("function"!==typeof c)throw Error(o(150));if(null==(u=c.call(u)))throw Error(o(151));for(var f=c=null,m=s,g=s=0,y=null,v=u.next();null!==m&&!v.done;g++,v=u.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=h(i,m,v.value,l);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===f?c=b:f.sibling=b,f=b,m=y}if(v.done)return n(i,m),io&&Zi(i,g),c;if(null===m){for(;!v.done;g++,v=u.next())null!==(v=d(i,v.value,l))&&(s=a(v,s,g),null===f?c=v:f.sibling=v,f=v);return io&&Zi(i,g),c}for(m=r(i,m);!v.done;g++,v=u.next())null!==(v=p(m,i,g,v.value,l))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=a(v,s,g),null===f?c=v:f.sibling=v,f=v);return e&&m.forEach((function(e){return t(i,e)})),io&&Zi(i,g),c}return function e(r,o,a,u){if("object"===typeof a&&null!==a&&a.type===E&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var l=a.key,c=o;null!==c;){if(c.key===l){if((l=a.type)===E){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===l||"object"===typeof l&&null!==l&&l.$$typeof===T&&bo(l)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=yo(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===E?((o=Il(a.props.children,r.mode,u,a.key)).return=r,r=o):((u=Pl(a.type,a.key,a.props,null,r.mode,u)).ref=yo(r,o,a),u.return=r,r=u)}return s(r);case x:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Ll(a,r.mode,u)).return=r,r=o}return s(r);case T:return e(r,o,(c=a._init)(a._payload),u)}if(te(a))return m(r,o,a,u);if(I(a))return g(r,o,a,u);vo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=jl(a,r.mode,u)).return=r,r=o),s(r)):n(r,o)}}var _o=wo(!0),xo=wo(!1),Eo=ki(null),ko=null,So=null,Ao=null;function Co(){Ao=So=ko=null}function Do(e){var t=Eo.current;Si(Eo),e._currentValue=t}function Mo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fo(e,t){ko=e,Ao=So=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Oo(e){var t=e._currentValue;if(Ao!==e)if(e={context:e,memoizedValue:t,next:null},null===So){if(null===ko)throw Error(o(308));So=e,ko.dependencies={lanes:0,firstContext:e}}else So=So.next=e;return t}var To=null;function No(e){null===To?To=[e]:To.push(e)}function Po(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,No(t)):(n.next=i.next,i.next=n),t.interleaved=n,Io(e,r)}function Io(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ro=!1;function jo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Du)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Io(e,n)}return null===(i=r.interleaved)?(t.next=t,No(r)):(t.next=i.next,i.next=t),r.interleaved=t,Io(e,n)}function Uo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Ho(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qo(e,t,n,r){var i=e.updateQueue;Ro=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,l=u.next;u.next=null,null===a?o=l:a.next=l,a=u;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(null!==o){var f=i.baseState;for(a=0,c=l=u=null,s=o;;){var d=s.lane,h=s.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(d=t,h=n,m.tag){case 1:if("function"===typeof(p=m.payload)){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(d="function"===typeof(p=m.payload)?p.call(h,f,d):p)||void 0===d)break e;f=j({},f,d);break e;case 2:Ro=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=i.effects)?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(l=c=h,u=f):c=c.next=h,a|=d;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(d=s).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===c&&(u=f),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ru|=a,e.lanes=a,e.memoizedState=f}}function Go(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var Wo={},Vo=ki(Wo),Qo=ki(Wo),$o=ki(Wo);function Ko(e){if(e===Wo)throw Error(o(174));return e}function Yo(e,t){switch(Ai($o,t),Ai(Qo,e),Ai(Vo,Wo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Si(Vo),Ai(Vo,t)}function Xo(){Si(Vo),Si(Qo),Si($o)}function Zo(e){Ko($o.current);var t=Ko(Vo.current),n=ue(t,e.type);t!==n&&(Ai(Qo,e),Ai(Vo,n))}function Jo(e){Qo.current===e&&(Si(Vo),Si(Qo))}var ea=ki(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=w.ReactCurrentDispatcher,oa=w.ReactCurrentBatchConfig,aa=0,sa=null,ua=null,la=null,ca=!1,fa=!1,da=0,ha=0;function pa(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Ja:es,e=n(r,i),fa){a=0;do{if(fa=!1,da=0,25<=a)throw Error(o(301));a+=1,la=ua=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(fa)}if(ia.current=Za,t=null!==ua&&null!==ua.next,aa=0,la=ua=sa=null,ca=!1,t)throw Error(o(300));return e}function ya(){var e=0!==da;return da=0,e}function va(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===la?sa.memoizedState=la=e:la=la.next=e,la}function ba(){if(null===ua){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=ua.next;var t=null===la?sa.memoizedState:la.next;if(null!==t)la=t,ua=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ua=e).memoizedState,baseState:ua.baseState,baseQueue:ua.baseQueue,queue:ua.queue,next:null},null===la?sa.memoizedState=la=e:la=la.next=e}return la}function wa(e,t){return"function"===typeof t?t(e):t}function _a(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ua,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var u=s=null,l=null,c=a;do{var f=c.lane;if((aa&f)===f)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(u=l=d,s=r):l=l.next=d,sa.lanes|=f,Ru|=f}c=c.next}while(null!==c&&c!==a);null===l?s=r:l.next=u,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Ru|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ea(){}function ka(e,t){var n=sa,r=ba(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Ra(Ca.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==la&&1&la.memoizedState.tag){if(n.flags|=2048,Oa(9,Aa.bind(null,n,r,i,t),void 0,null),null===Mu)throw Error(o(349));0!==(30&aa)||Sa(n,t,i)}return i}function Sa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Aa(e,t,n,r){t.value=n,t.getSnapshot=r,Da(t)&&Ma(e)}function Ca(e,t,n){return n((function(){Da(t)&&Ma(e)}))}function Da(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ma(e){var t=Io(e,1);null!==t&&nl(t,e,1,-1)}function Fa(e){var t=va();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=$a.bind(null,sa,e),[t.memoizedState,e]}function Oa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ta(){return ba().memoizedState}function Na(e,t,n,r){var i=va();sa.flags|=e,i.memoizedState=Oa(1|t,n,void 0,void 0===r?null:r)}function Pa(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==ua){var a=ua.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=Oa(t,n,o,r))}sa.flags|=e,i.memoizedState=Oa(1|t,n,o,r)}function Ia(e,t){return Na(8390656,8,e,t)}function Ra(e,t){return Pa(2048,8,e,t)}function ja(e,t){return Pa(4,2,e,t)}function La(e,t){return Pa(4,4,e,t)}function Ba(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function za(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Pa(4,4,Ba.bind(null,t,e),n)}function Ua(){}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ga(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),sa.lanes|=n,Ru|=n,e.baseState=!0),t)}function Wa(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{bt=n,oa.transition=r}}function Va(){return ba().memoizedState}function Qa(e,t,n){var r=tl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ka(e))Ya(t,n);else if(null!==(n=Po(e,t,n,r))){nl(n,e,r,el()),Xa(n,t,r)}}function $a(e,t,n){var r=tl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ka(e))Ya(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var u=t.interleaved;return null===u?(i.next=i,No(t)):(i.next=u.next,u.next=i),void(t.interleaved=i)}}catch(l){}null!==(n=Po(e,t,i,r))&&(nl(n,e,r,i=el()),Xa(n,t,r))}}function Ka(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ya(e,t){fa=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xa(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Za={readContext:Oo,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Ja={readContext:Oo,useCallback:function(e,t){return va().memoizedState=[e,void 0===t?null:t],e},useContext:Oo,useEffect:Ia,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Na(4194308,4,Ba.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Na(4194308,4,e,t)},useInsertionEffect:function(e,t){return Na(4,2,e,t)},useMemo:function(e,t){var n=va();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=va();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Qa.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},va().memoizedState=e},useState:Fa,useDebugValue:Ua,useDeferredValue:function(e){return va().memoizedState=e},useTransition:function(){var e=Fa(!1),t=e[0];return e=Wa.bind(null,e[1]),va().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=va();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Mu)throw Error(o(349));0!==(30&aa)||Sa(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ia(Ca.bind(null,r,a,e),[e]),r.flags|=2048,Oa(9,Aa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=va(),t=Mu.identifierPrefix;if(io){var n=Xi;t=":"+t+"R"+(n=(Yi&~(1<<32-at(Yi)-1)).toString(32)+n),0<(n=da++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Oo,useCallback:Ha,useContext:Oo,useEffect:Ra,useImperativeHandle:za,useInsertionEffect:ja,useLayoutEffect:La,useMemo:qa,useReducer:_a,useRef:Ta,useState:function(){return _a(wa)},useDebugValue:Ua,useDeferredValue:function(e){return Ga(ba(),ua.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:Ea,useSyncExternalStore:ka,useId:Va,unstable_isNewReconciler:!1},ts={readContext:Oo,useCallback:Ha,useContext:Oo,useEffect:Ra,useImperativeHandle:za,useInsertionEffect:ja,useLayoutEffect:La,useMemo:qa,useReducer:xa,useRef:Ta,useState:function(){return xa(wa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===ua?t.memoizedState=e:Ga(t,ua.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ba().memoizedState]},useMutableSource:Ea,useSyncExternalStore:ka,useId:Va,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:j({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=el(),i=tl(e),o=Bo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=zo(e,o,i))&&(nl(t,e,i,r),Uo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=el(),i=tl(e),o=Bo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=zo(e,o,i))&&(nl(t,e,i,r),Uo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=el(),r=tl(e),i=Bo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=zo(e,i,r))&&(nl(t,e,r,n),Uo(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(i,o))}function as(e,t,n){var r=!1,i=Ci,o=t.contextType;return"object"===typeof o&&null!==o?o=Oo(o):(i=Ti(t)?Fi:Di.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Oi(e,i):Ci),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function us(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},jo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Oo(o):(o=Ti(t)?Fi:Di.current,i.context=Oi(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),qo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function ls(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ds="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Bo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gu||(Gu=!0,Wu=r),fs(0,t)},n}function ps(e,t,n){(n=Bo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fs(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!==typeof r&&(null===Vu?Vu=new Set([this]):Vu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ds;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Sl.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Bo(-1,1)).tag=2,zo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var vs=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?xo(t,null,n,r):_o(t,e.child,n,r)}function _s(e,t,n,r,i){n=n.render;var o=t.ref;return Fo(t,i),r=ga(e,t,n,r,o,i),n=ya(),null===e||bs?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gs(e,t,i))}function xs(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Tl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pl(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Es(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return Gs(e,t,i)}return t.flags|=1,(e=Nl(o,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ur(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Gs(e,t,i);0!==(131072&e.flags)&&(bs=!0)}}return As(e,t,n,r,i)}function ks(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ai(Nu,Tu),Tu|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ai(Nu,Tu),Tu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ai(Nu,Tu),Tu|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ai(Nu,Tu),Tu|=r;return ws(e,t,i,n),t.child}function Ss(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function As(e,t,n,r,i){var o=Ti(n)?Fi:Di.current;return o=Oi(t,o),Fo(t,i),n=ga(e,t,n,r,o,i),r=ya(),null===e||bs?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gs(e,t,i))}function Cs(e,t,n,r,i){if(Ti(n)){var o=!0;Ri(t)}else o=!1;if(Fo(t,i),null===t.stateNode)qs(e,t),as(t,n,r),us(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"===typeof l&&null!==l?l=Oo(l):l=Oi(t,l=Ti(n)?Fi:Di.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==l)&&ss(t,a,r,l),Ro=!1;var d=t.memoizedState;a.state=d,qo(t,r,a,i),u=t.memoizedState,s!==r||d!==u||Mi.current||Ro?("function"===typeof c&&(rs(t,n,c,r),u=t.memoizedState),(s=Ro||os(t,n,s,r,d,u,l))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Lo(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ns(t.type,s),a.props=l,f=t.pendingProps,d=a.context,"object"===typeof(u=n.contextType)&&null!==u?u=Oo(u):u=Oi(t,u=Ti(n)?Fi:Di.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==f||d!==u)&&ss(t,a,r,u),Ro=!1,d=t.memoizedState,a.state=d,qo(t,r,a,i);var p=t.memoizedState;s!==f||d!==p||Mi.current||Ro?("function"===typeof h&&(rs(t,n,h,r),p=t.memoizedState),(l=Ro||os(t,n,l,r,d,p,u)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,u)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=u,r=l):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ds(e,t,n,r,o,i)}function Ds(e,t,n,r,i,o){Ss(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&ji(t,n,!1),Gs(e,t,o);r=t.stateNode,vs.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_o(t,e.child,null,o),t.child=_o(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,i&&ji(t,n,!0),t.child}function Ms(e){var t=e.stateNode;t.pendingContext?Pi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Pi(0,t.context,!1),Yo(e,t.containerInfo)}function Fs(e,t,n,r,i){return po(),mo(i),t.flags|=256,ws(e,t,n,r),t.child}var Os,Ts,Ns,Ps,Is={dehydrated:null,treeContext:null,retryLane:0};function Rs(e){return{baseLanes:e,cachePool:null,transitions:null}}function js(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,u=0!==(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ai(ea,1&a),null===e)return lo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=i.children,e=i.fallback,s?(i=t.mode,s=t.child,u={mode:"hidden",children:u},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=u):s=Rl(u,i,0,null),e=Il(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Rs(n),t.memoizedState=Is,e):Ls(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=cs(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Rl({mode:"visible",children:r.children},i,0,null),(a=Il(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&_o(t,e.child,null,s),t.child.memoizedState=Rs(s),t.memoizedState=Is,a);if(0===(1&t.mode))return Bs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var u=r.dgst;return r=u,Bs(e,t,s,r=cs(a=Error(o(419)),r,void 0))}if(u=0!==(s&e.childLanes),bs||u){if(null!==(r=Mu)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Io(e,i),nl(r,e,i,-1))}return ml(),Bs(e,t,s,r=cs(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Cl.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=li(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Qi[$i++]=Yi,Qi[$i++]=Xi,Qi[$i++]=Ki,Yi=e.id,Xi=e.overflow,Ki=t),t=Ls(t,r.children),t.flags|=4096,t)}(e,t,u,i,r,a,n);if(s){s=i.fallback,u=t.mode,r=(a=e.child).sibling;var l={mode:"hidden",children:i.children};return 0===(1&u)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=Nl(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Nl(r,s):(s=Il(s,u,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,u=null===(u=e.child.memoizedState)?Rs(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=Is,i}return e=(s=e.child).sibling,i=Nl(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Ls(e,t){return(t=Rl({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&mo(r),_o(t,e.child,null,n),(e=Ls(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Mo(e.return,t,n)}function Us(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Hs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zs(e,n,t);else if(19===e.tag)zs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ai(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Us(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Us(t,!0,n,null,o);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ru|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Nl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Nl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ws(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Qs(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return Ti(t.type)&&Ni(),Vs(t),null;case 3:return r=t.stateNode,Xo(),Si(Mi),Si(Di),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(al(oo),oo=null))),Ts(e,t),Vs(t),null;case 5:Jo(t);var i=Ko($o.current);if(n=t.type,null!==e&&null!=t.stateNode)Ns(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Vs(t),null}if(e=Ko(Vo.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[di]=t,r[hi]=a,e=0!==(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(i=0;i<Ir.length;i++)Br(Ir[i],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":Y(r,a),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Br("invalid",r);break;case"textarea":ie(r,a),Br("invalid",r)}for(var u in ve(n,a),i=null,a)if(a.hasOwnProperty(u)){var l=a[u];"children"===u?"string"===typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,l,e),i=["children",l]):"number"===typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,l,e),i=["children",""+l]):s.hasOwnProperty(u)&&null!=l&&"onScroll"===u&&Br("scroll",r)}switch(n){case"input":V(r),J(r,a,!0);break;case"textarea":V(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Jr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[di]=t,e[hi]=r,Os(e,t,!1,!1),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":Br("cancel",e),Br("close",e),i=r;break;case"iframe":case"object":case"embed":Br("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ir.length;i++)Br(Ir[i],e);i=r;break;case"source":Br("error",e),i=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),i=r;break;case"details":Br("toggle",e),i=r;break;case"input":Y(e,r),i=K(e,r),Br("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=j({},r,{value:void 0}),Br("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Br("invalid",e)}for(a in ve(n,i),l=i)if(l.hasOwnProperty(a)){var c=l[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===a?"string"===typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"===typeof c&&de(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Br("scroll",e):null!=c&&b(e,a,c,u))}switch(n){case"input":V(e),J(e,r,!1);break;case"textarea":V(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vs(t),null;case 6:if(e&&null!=t.stateNode)Ps(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=Ko($o.current),Ko(Vo.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[di]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Zr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[di]=t,t.stateNode=r}return Vs(t),null;case 13:if(Si(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))ho(),po(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[di]=t}else po(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),a=!1}else null!==oo&&(al(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Pu&&(Pu=3):ml())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return Xo(),Ts(e,t),null===e&&Hr(t.stateNode.containerInfo),Vs(t),null;case 10:return Do(t.type._context),Vs(t),null;case 19:if(Si(ea),null===(a=t.memoizedState))return Vs(t),null;if(r=0!==(128&t.flags),null===(u=a.rendering))if(r)Ws(a,!1);else{if(0!==Pu||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=ta(e))){for(t.flags|=128,Ws(a,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ai(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>Hu&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ws(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!io)return Vs(t),null}else 2*Xe()-a.renderingStartTime>Hu&&1073741824!==n&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=a.last)?n.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=ea.current,Ai(ea,r?1&n|2:1&n),t):(Vs(t),null);case 22:case 23:return fl(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Tu)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function $s(e,t){switch(to(t),t.tag){case 1:return Ti(t.type)&&Ni(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xo(),Si(Mi),Si(Di),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Jo(t),null;case 13:if(Si(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Si(ea),null;case 4:return Xo(),null;case 10:return Do(t.type._context),null;case 22:case 23:return fl(),null;default:return null}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ts=function(){},Ns=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ko(Vo.current);var o,a=null;switch(n){case"input":i=K(e,i),r=K(e,r),a=[];break;case"select":i=j({},i,{value:void 0}),r=j({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(c in ve(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var u=i[c];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(u=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==u&&(null!=l||null!=u))if("style"===c)if(u){for(o in u)!u.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&u[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,u=u?u.__html:void 0,null!=l&&u!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!==typeof l&&"number"!==typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&Br("scroll",e),a||u===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ps=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ks=!1,Ys=!1,Xs="function"===typeof WeakSet?WeakSet:Set,Zs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){kl(e,t,r)}else n.current=null}function eu(e,t,n){try{n()}catch(r){kl(e,t,r)}}var tu=!1;function nu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&eu(t,n,o)}i=i.next}while(i!==r)}}function ru(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function iu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ou(e){var t=e.alternate;null!==t&&(e.alternate=null,ou(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[di],delete t[hi],delete t[mi],delete t[gi],delete t[yi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function au(e){return 5===e.tag||3===e.tag||4===e.tag}function su(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||au(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function uu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(uu(e,t,n),e=e.sibling;null!==e;)uu(e,t,n),e=e.sibling}function lu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(lu(e,t,n),e=e.sibling;null!==e;)lu(e,t,n),e=e.sibling}var cu=null,fu=!1;function du(e,t,n){for(n=n.child;null!==n;)hu(e,t,n),n=n.sibling}function hu(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Ys||Js(n,t);case 6:var r=cu,i=fu;cu=null,du(e,t,n),fu=i,null!==(cu=r)&&(fu?(e=cu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cu.removeChild(n.stateNode));break;case 18:null!==cu&&(fu?(e=cu,n=n.stateNode,8===e.nodeType?ui(e.parentNode,n):1===e.nodeType&&ui(e,n),Ht(e)):ui(cu,n.stateNode));break;case 4:r=cu,i=fu,cu=n.stateNode.containerInfo,fu=!0,du(e,t,n),cu=r,fu=i;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&eu(n,t,a),i=i.next}while(i!==r)}du(e,t,n);break;case 1:if(!Ys&&(Js(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){kl(n,t,s)}du(e,t,n);break;case 21:du(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,du(e,t,n),Ys=r):du(e,t,n);break;default:du(e,t,n)}}function pu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var r=Dl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function mu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,u=s;e:for(;null!==u;){switch(u.tag){case 5:cu=u.stateNode,fu=!1;break e;case 3:case 4:cu=u.stateNode.containerInfo,fu=!0;break e}u=u.return}if(null===cu)throw Error(o(160));hu(a,s,i),cu=null,fu=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(c){kl(i,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gu(t,e),t=t.sibling}function gu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mu(t,e),yu(e),4&r){try{nu(3,e,e.return),ru(3,e)}catch(g){kl(e,e.return,g)}try{nu(5,e,e.return)}catch(g){kl(e,e.return,g)}}break;case 1:mu(t,e),yu(e),512&r&&null!==n&&Js(n,n.return);break;case 5:if(mu(t,e),yu(e),512&r&&null!==n&&Js(n,n.return),32&e.flags){var i=e.stateNode;try{de(i,"")}catch(g){kl(e,e.return,g)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,u=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===u&&"radio"===a.type&&null!=a.name&&X(i,a),be(u,s);var c=be(u,a);for(s=0;s<l.length;s+=2){var f=l[s],d=l[s+1];"style"===f?ge(i,d):"dangerouslySetInnerHTML"===f?fe(i,d):"children"===f?de(i,d):b(i,f,d,c)}switch(u){case"input":Z(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[hi]=a}catch(g){kl(e,e.return,g)}}break;case 6:if(mu(t,e),yu(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){kl(e,e.return,g)}}break;case 3:if(mu(t,e),yu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(g){kl(e,e.return,g)}break;case 4:default:mu(t,e),yu(e);break;case 13:mu(t,e),yu(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Uu=Xe())),4&r&&pu(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(c=Ys)||f,mu(t,e),Ys=c):mu(t,e),yu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!==(1&e.mode))for(Zs=e,f=e.child;null!==f;){for(d=Zs=f;null!==Zs;){switch(p=(h=Zs).child,h.tag){case 0:case 11:case 14:case 15:nu(4,h,h.return);break;case 1:Js(h,h.return);var m=h.stateNode;if("function"===typeof m.componentWillUnmount){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){kl(r,n,g)}}break;case 5:Js(h,h.return);break;case 22:if(null!==h.memoizedState){_u(d);continue}}null!==p?(p.return=h,Zs=p):_u(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{i=d.stateNode,c?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=d.stateNode,s=void 0!==(l=d.memoizedProps.style)&&null!==l&&l.hasOwnProperty("display")?l.display:null,u.style.display=me("display",s))}catch(g){kl(e,e.return,g)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(g){kl(e,e.return,g)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:mu(t,e),yu(e),4&r&&pu(e);case 21:}}function yu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(au(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(de(i,""),r.flags&=-33),lu(e,su(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;uu(e,su(e),a);break;default:throw Error(o(161))}}catch(s){kl(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vu(e,t,n){Zs=e,bu(e,t,n)}function bu(e,t,n){for(var r=0!==(1&e.mode);null!==Zs;){var i=Zs,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ks;if(!a){var s=i.alternate,u=null!==s&&null!==s.memoizedState||Ys;s=Ks;var l=Ys;if(Ks=a,(Ys=u)&&!l)for(Zs=i;null!==Zs;)u=(a=Zs).child,22===a.tag&&null!==a.memoizedState?xu(i):null!==u?(u.return=a,Zs=u):xu(i);for(;null!==o;)Zs=o,bu(o,t,n),o=o.sibling;Zs=i,Ks=s,Ys=l}wu(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Zs=o):wu(e)}}function wu(e){for(;null!==Zs;){var t=Zs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ys||ru(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Go(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Go(t,s,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Ht(d)}}}break;default:throw Error(o(163))}Ys||512&t.flags&&iu(t)}catch(h){kl(t,t.return,h)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function _u(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function xu(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ru(4,t)}catch(u){kl(t,n,u)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(u){kl(t,i,u)}}var o=t.return;try{iu(t)}catch(u){kl(t,o,u)}break;case 5:var a=t.return;try{iu(t)}catch(u){kl(t,a,u)}}}catch(u){kl(t,t.return,u)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var Eu,ku=Math.ceil,Su=w.ReactCurrentDispatcher,Au=w.ReactCurrentOwner,Cu=w.ReactCurrentBatchConfig,Du=0,Mu=null,Fu=null,Ou=0,Tu=0,Nu=ki(0),Pu=0,Iu=null,Ru=0,ju=0,Lu=0,Bu=null,zu=null,Uu=0,Hu=1/0,qu=null,Gu=!1,Wu=null,Vu=null,Qu=!1,$u=null,Ku=0,Yu=0,Xu=null,Zu=-1,Ju=0;function el(){return 0!==(6&Du)?Xe():-1!==Zu?Zu:Zu=Xe()}function tl(e){return 0===(1&e.mode)?1:0!==(2&Du)&&0!==Ou?Ou&-Ou:null!==go.transition?(0===Ju&&(Ju=mt()),Ju):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function nl(e,t,n,r){if(50<Yu)throw Yu=0,Xu=null,Error(o(185));yt(e,n,r),0!==(2&Du)&&e===Mu||(e===Mu&&(0===(2&Du)&&(ju|=n),4===Pu&&sl(e,Ou)),rl(e,r),1===n&&0===Du&&0===(1&t.mode)&&(Hu=Xe()+500,Bi&&Hi()))}function rl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,u=i[a];-1===u?0!==(s&n)&&0===(s&r)||(i[a]=ht(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=dt(e,e===Mu?Ou:0);if(0===r)null!==n&&$e(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&$e(n),1===t)0===e.tag?function(e){Bi=!0,Ui(e)}(ul.bind(null,e)):Ui(ul.bind(null,e)),ai((function(){0===(6&Du)&&Hi()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ml(n,il.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function il(e,t){if(Zu=-1,Ju=0,0!==(6&Du))throw Error(o(327));var n=e.callbackNode;if(xl()&&e.callbackNode!==n)return null;var r=dt(e,e===Mu?Ou:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gl(e,r);else{t=r;var i=Du;Du|=2;var a=pl();for(Mu===e&&Ou===t||(qu=null,Hu=Xe()+500,dl(e,t));;)try{vl();break}catch(u){hl(e,u)}Co(),Su.current=a,Du=i,null!==Fu?t=0:(Mu=null,Ou=0,t=Pu)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(r=i,t=ol(e,i))),1===t)throw n=Iu,dl(e,0),sl(e,r),rl(e,Xe()),n;if(6===t)sl(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gl(e,r))&&(0!==(a=pt(e))&&(r=a,t=ol(e,a))),1===t))throw n=Iu,dl(e,0),sl(e,r),rl(e,Xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:_l(e,zu,qu);break;case 3:if(sl(e,r),(130023424&r)===r&&10<(t=Uu+500-Xe())){if(0!==dt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){el(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(_l.bind(null,e,zu,qu),t);break}_l(e,zu,qu);break;case 4:if(sl(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ku(r/1960))-r)){e.timeoutHandle=ri(_l.bind(null,e,zu,qu),r);break}_l(e,zu,qu);break;default:throw Error(o(329))}}}return rl(e,Xe()),e.callbackNode===n?il.bind(null,e):null}function ol(e,t){var n=Bu;return e.current.memoizedState.isDehydrated&&(dl(e,t).flags|=256),2!==(e=gl(e,t))&&(t=zu,zu=n,null!==t&&al(t)),e}function al(e){null===zu?zu=e:zu.push.apply(zu,e)}function sl(e,t){for(t&=~Lu,t&=~ju,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function ul(e){if(0!==(6&Du))throw Error(o(327));xl();var t=dt(e,0);if(0===(1&t))return rl(e,Xe()),null;var n=gl(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ol(e,r))}if(1===n)throw n=Iu,dl(e,0),sl(e,t),rl(e,Xe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_l(e,zu,qu),rl(e,Xe()),null}function ll(e,t){var n=Du;Du|=1;try{return e(t)}finally{0===(Du=n)&&(Hu=Xe()+500,Bi&&Hi())}}function cl(e){null!==$u&&0===$u.tag&&0===(6&Du)&&xl();var t=Du;Du|=1;var n=Cu.transition,r=bt;try{if(Cu.transition=null,bt=1,e)return e()}finally{bt=r,Cu.transition=n,0===(6&(Du=t))&&Hi()}}function fl(){Tu=Nu.current,Si(Nu)}function dl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Fu)for(n=Fu.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ni();break;case 3:Xo(),Si(Mi),Si(Di),ra();break;case 5:Jo(r);break;case 4:Xo();break;case 13:case 19:Si(ea);break;case 10:Do(r.type._context);break;case 22:case 23:fl()}n=n.return}if(Mu=e,Fu=e=Nl(e.current,null),Ou=Tu=t,Pu=0,Iu=null,Lu=ju=Ru=0,zu=Bu=null,null!==To){for(t=0;t<To.length;t++)if(null!==(r=(n=To[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}To=null}return e}function hl(e,t){for(;;){var n=Fu;try{if(Co(),ia.current=Za,ca){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ca=!1}if(aa=0,la=ua=sa=null,fa=!1,da=0,Au.current=null,null===n||null===n.return){Pu=1,Iu=t,Fu=null;break}e:{var a=e,s=n.return,u=n,l=t;if(t=Ou,u.flags|=32768,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l,f=u,d=f.tag;if(0===(1&f.mode)&&(0===d||11===d||15===d)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=gs(s);if(null!==p){p.flags&=-257,ys(p,s,u,0,t),1&p.mode&&ms(a,c,t),l=c;var m=(t=p).updateQueue;if(null===m){var g=new Set;g.add(l),t.updateQueue=g}else m.add(l);break e}if(0===(1&t)){ms(a,c,t),ml();break e}l=Error(o(426))}else if(io&&1&u.mode){var y=gs(s);if(null!==y){0===(65536&y.flags)&&(y.flags|=256),ys(y,s,u,0,t),mo(ls(l,u));break e}}a=l=ls(l,u),4!==Pu&&(Pu=2),null===Bu?Bu=[a]:Bu.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,hs(0,l,t));break e;case 1:u=l;var v=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof v.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Vu||!Vu.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,ps(a,u,t));break e}}a=a.return}while(null!==a)}wl(n)}catch(w){t=w,Fu===n&&null!==n&&(Fu=n=n.return);continue}break}}function pl(){var e=Su.current;return Su.current=Za,null===e?Za:e}function ml(){0!==Pu&&3!==Pu&&2!==Pu||(Pu=4),null===Mu||0===(268435455&Ru)&&0===(268435455&ju)||sl(Mu,Ou)}function gl(e,t){var n=Du;Du|=2;var r=pl();for(Mu===e&&Ou===t||(qu=null,dl(e,t));;)try{yl();break}catch(i){hl(e,i)}if(Co(),Du=n,Su.current=r,null!==Fu)throw Error(o(261));return Mu=null,Ou=0,Pu}function yl(){for(;null!==Fu;)bl(Fu)}function vl(){for(;null!==Fu&&!Ke();)bl(Fu)}function bl(e){var t=Eu(e.alternate,e,Tu);e.memoizedProps=e.pendingProps,null===t?wl(e):Fu=t,Au.current=null}function wl(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Qs(n,t,Tu)))return void(Fu=n)}else{if(null!==(n=$s(n,t)))return n.flags&=32767,void(Fu=n);if(null===e)return Pu=6,void(Fu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Fu=t);Fu=t=e}while(null!==t);0===Pu&&(Pu=5)}function _l(e,t,n){var r=bt,i=Cu.transition;try{Cu.transition=null,bt=1,function(e,t,n,r){do{xl()}while(null!==$u);if(0!==(6&Du))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Mu&&(Fu=Mu=null,Ou=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Qu||(Qu=!0,Ml(tt,(function(){return xl(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Cu.transition,Cu.transition=null;var s=bt;bt=1;var u=Du;Du|=4,Au.current=null,function(e,t){if(ei=Gt,hr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(_){n=null;break e}var s=0,u=-1,l=-1,c=0,f=0,d=e,h=null;t:for(;;){for(var p;d!==n||0!==i&&3!==d.nodeType||(u=s+i),d!==a||0!==r&&3!==d.nodeType||(l=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(p=d.firstChild);)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++c===i&&(u=s),h===a&&++f===r&&(l=s),null!==(p=d.nextSibling))break;h=(d=h).parentNode}d=p}n=-1===u||-1===l?null:{start:u,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Gt=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,y=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(_){kl(t,t.return,_)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=tu,tu=!1}(e,n),gu(n,e),pr(ti),Gt=!!ei,ti=ei=null,e.current=n,vu(n,e,i),Ye(),Du=u,bt=s,Cu.transition=a}else e.current=n;if(Qu&&(Qu=!1,$u=e,Ku=i),a=e.pendingLanes,0===a&&(Vu=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rl(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Gu)throw Gu=!1,e=Wu,Wu=null,e;0!==(1&Ku)&&0!==e.tag&&xl(),a=e.pendingLanes,0!==(1&a)?e===Xu?Yu++:(Yu=0,Xu=e):Yu=0,Hi()}(e,t,n,r)}finally{Cu.transition=i,bt=r}return null}function xl(){if(null!==$u){var e=wt(Ku),t=Cu.transition,n=bt;try{if(Cu.transition=null,bt=16>e?16:e,null===$u)var r=!1;else{if(e=$u,$u=null,Ku=0,0!==(6&Du))throw Error(o(331));var i=Du;for(Du|=4,Zs=e.current;null!==Zs;){var a=Zs,s=a.child;if(0!==(16&Zs.flags)){var u=a.deletions;if(null!==u){for(var l=0;l<u.length;l++){var c=u[l];for(Zs=c;null!==Zs;){var f=Zs;switch(f.tag){case 0:case 11:case 15:nu(8,f,a)}var d=f.child;if(null!==d)d.return=f,Zs=d;else for(;null!==Zs;){var h=(f=Zs).sibling,p=f.return;if(ou(f),f===c){Zs=null;break}if(null!==h){h.return=p,Zs=h;break}Zs=p}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Zs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Zs=s;else e:for(;null!==Zs;){if(0!==(2048&(a=Zs).flags))switch(a.tag){case 0:case 11:case 15:nu(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Zs=v;break e}Zs=a.return}}var b=e.current;for(Zs=b;null!==Zs;){var w=(s=Zs).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Zs=w;else e:for(s=b;null!==Zs;){if(0!==(2048&(u=Zs).flags))try{switch(u.tag){case 0:case 11:case 15:ru(9,u)}}catch(x){kl(u,u.return,x)}if(u===s){Zs=null;break e}var _=u.sibling;if(null!==_){_.return=u.return,Zs=_;break e}Zs=u.return}}if(Du=i,Hi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(x){}r=!0}return r}finally{bt=n,Cu.transition=t}}return!1}function El(e,t,n){e=zo(e,t=hs(0,t=ls(n,t),1),1),t=el(),null!==e&&(yt(e,1,t),rl(e,t))}function kl(e,t,n){if(3===e.tag)El(e,e,n);else for(;null!==t;){if(3===t.tag){El(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Vu||!Vu.has(r))){t=zo(t,e=ps(t,e=ls(n,e),1),1),e=el(),null!==t&&(yt(t,1,e),rl(t,e));break}}t=t.return}}function Sl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=el(),e.pingedLanes|=e.suspendedLanes&n,Mu===e&&(Ou&n)===n&&(4===Pu||3===Pu&&(130023424&Ou)===Ou&&500>Xe()-Uu?dl(e,0):Lu|=n),rl(e,t)}function Al(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=el();null!==(e=Io(e,t))&&(yt(e,t,n),rl(e,n))}function Cl(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Al(e,n)}function Dl(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Al(e,n)}function Ml(e,t){return Qe(e,t)}function Fl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ol(e,t,n,r){return new Fl(e,t,n,r)}function Tl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Nl(e,t){var n=e.alternate;return null===n?((n=Ol(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pl(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Tl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case E:return Il(n.children,i,a,t);case k:s=8,i|=8;break;case S:return(e=Ol(12,n,t,2|i)).elementType=S,e.lanes=a,e;case M:return(e=Ol(13,n,t,i)).elementType=M,e.lanes=a,e;case F:return(e=Ol(19,n,t,i)).elementType=F,e.lanes=a,e;case N:return Rl(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case A:s=10;break e;case C:s=9;break e;case D:s=11;break e;case O:s=14;break e;case T:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ol(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Il(e,t,n,r){return(e=Ol(7,e,r,t)).lanes=n,e}function Rl(e,t,n,r){return(e=Ol(22,e,r,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function jl(e,t,n){return(e=Ol(6,e,null,t)).lanes=n,e}function Ll(e,t,n){return(t=Ol(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bl(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zl(e,t,n,r,i,o,a,s,u){return e=new Bl(e,t,n,s,u),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ol(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},jo(o),e}function Ul(e){if(!e)return Ci;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ti(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ti(n))return Ii(e,n,t)}return t}function Hl(e,t,n,r,i,o,a,s,u){return(e=zl(n,r,!0,e,0,o,0,s,u)).context=Ul(null),n=e.current,(o=Bo(r=el(),i=tl(n))).callback=void 0!==t&&null!==t?t:null,zo(n,o,i),e.current.lanes=i,yt(e,i,r),rl(e,r),e}function ql(e,t,n,r){var i=t.current,o=el(),a=tl(i);return n=Ul(n),null===t.context?t.context=n:t.pendingContext=n,(t=Bo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=zo(i,t,a))&&(nl(e,i,a,o),Uo(e,i,a)),a}function Gl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vl(e,t){Wl(e,t),(e=e.alternate)&&Wl(e,t)}Eu=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Mi.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ms(t),po();break;case 5:Zo(t);break;case 1:Ti(t.type)&&Ri(t);break;case 4:Yo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ai(Eo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ai(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?js(e,t,n):(Ai(ea,1&ea.current),null!==(e=Gs(e,t,n))?e.sibling:null);Ai(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ai(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,ks(e,t,n)}return Gs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,io&&0!==(1048576&t.flags)&&Ji(t,Vi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qs(e,t),e=t.pendingProps;var i=Oi(t,Di.current);Fo(t,n),i=ga(null,t,r,e,i,n);var a=ya();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ti(r)?(a=!0,Ri(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,jo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,us(t,r,e,n),t=Ds(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Tl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===D)return 11;if(e===O)return 14}return 2}(r),e=ns(r,e),i){case 0:t=As(null,t,r,e,n);break e;case 1:t=Cs(null,t,r,e,n);break e;case 11:t=_s(null,t,r,e,n);break e;case 14:t=xs(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,As(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,Cs(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(Ms(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Lo(e,t),qo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Fs(e,t,r,n,i=ls(Error(o(423)),t));break e}if(r!==i){t=Fs(e,t,r,n,i=ls(Error(o(424)),t));break e}for(ro=li(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=xo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){t=Gs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Zo(t),null===e&&lo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Ss(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&lo(t),null;case 13:return js(e,t,n);case 4:return Yo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_o(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,_s(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ai(Eo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Mi.current){t=Gs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){s=a.child;for(var l=u.firstContext;null!==l;){if(l.context===r){if(1===a.tag){(l=Bo(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Mo(a.return,n,t),u.lanes|=n;break}l=l.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Mo(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Fo(t,n),r=r(i=Oo(i)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),xs(e,t,r,i=ns(r.type,i),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),qs(e,t),t.tag=1,Ti(r)?(e=!0,Ri(t)):e=!1,Fo(t,n),as(t,r,i),us(t,r,i,n),Ds(null,t,r,!0,e,n);case 19:return Hs(e,t,n);case 22:return ks(e,t,n)}throw Error(o(156,t.tag))};var Ql="function"===typeof reportError?reportError:function(e){console.error(e)};function $l(e){this._internalRoot=e}function Kl(e){this._internalRoot=e}function Yl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zl(){}function Jl(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Gl(a);s.call(e)}}ql(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Gl(a);o.call(e)}}var a=Hl(t,r,e,0,null,!1,0,"",Zl);return e._reactRootContainer=a,e[pi]=a.current,Hr(8===e.nodeType?e.parentNode:e),cl(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Gl(u);s.call(e)}}var u=zl(e,0,!1,null,0,!1,0,"",Zl);return e._reactRootContainer=u,e[pi]=u.current,Hr(8===e.nodeType?e.parentNode:e),cl((function(){ql(t,u,n,r)})),u}(n,t,e,i,r);return Gl(a)}Kl.prototype.render=$l.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));ql(e,t,null,null)},Kl.prototype.unmount=$l.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cl((function(){ql(null,e,null,null)})),t[pi]=null}},Kl.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&jt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(vt(t,1|n),rl(t,Xe()),0===(6&Du)&&(Hu=Xe()+500,Hi()))}break;case 13:cl((function(){var t=Io(e,1);if(null!==t){var n=el();nl(t,e,1,n)}})),Vl(e,1)}},xt=function(e){if(13===e.tag){var t=Io(e,134217728);if(null!==t)nl(t,e,134217728,el());Vl(e,134217728)}},Et=function(e){if(13===e.tag){var t=tl(e),n=Io(e,t);if(null!==n)nl(n,e,t,el());Vl(e,t)}},kt=function(){return bt},St=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=_i(r);if(!i)throw Error(o(90));Q(r),Z(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},De=ll,Me=cl;var ec={usingClientEntryPoint:!1,Events:[bi,wi,_i,Ae,Ce,ll]},tc={findFiberByHostInstance:vi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{it=rc.inject(nc),ot=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yl(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yl(e))throw Error(o(299));var n=!1,r="",i=Ql;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=zl(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Hr(8===e.nodeType?e.parentNode:e),new $l(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return cl(e)},t.hydrate=function(e,t,n){if(!Xl(t))throw Error(o(200));return Jl(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yl(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Ql;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Hl(t,null,e,1,null!=n?n:null,i,0,a,s),e[pi]=t.current,Hr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Kl(t)},t.render=function(e,t,n){if(!Xl(t))throw Error(o(200));return Jl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xl(e))throw Error(o(40));return!!e._reactRootContainer&&(cl((function(){Jl(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=ll,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xl(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Jl(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},1352:(e,t,n)=>{"use strict";var r=n(7119);t.H=r.createRoot,r.hydrateRoot},7119:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(8345)},4901:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,u,l,c;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(!o(e[u],a[u]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;for(c=e.entries();!(u=c.next()).done;)if(!o(u.value[1],a.get(u.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(c=e.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(e[u]!==a[u])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(l=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(u=s;0!==u--;)if(!Object.prototype.hasOwnProperty.call(a,l[u]))return!1;if(t&&e instanceof Element)return!1;for(u=s;0!==u--;)if(("_owner"!==l[u]&&"__v"!==l[u]&&"__o"!==l[u]||!e.$$typeof)&&!o(e[l[u]],a[l[u]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},2325:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});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}}(),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(9950)),o=l(n(195)),a=l(n(9384)),s=l(n(162)),u=l(n(5922));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"parseString",value:function(e){var t=this;if(""===e)return e;var n=this.props.matchDecorator(e);if(!n)return e;var r=[],i=0;return n.forEach((function(n,o){n.index>i&&r.push(e.substring(i,n.index));var a=t.props.hrefDecorator(n.url),s=t.props.textDecorator(n.text),u=t.props.componentDecorator(a,s,o);r.push(u),i=n.lastIndex})),e.length>i&&r.push(e.substring(i)),1===r.length?r[0]:r}},{key:"parse",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"===typeof e?this.parseString(e):i.isValidElement(e)&&"a"!==e.type&&"button"!==e.type?i.cloneElement(e,{key:n},this.parse(e.props.children)):Array.isArray(e)?e.map((function(e,n){return t.parse(e,n)})):e}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),t}(i.Component);c.defaultProps={componentDecorator:o.default,hrefDecorator:a.default,matchDecorator:s.default,textDecorator:u.default},t.default=c},195:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(9950));t.default=function(e,t,n){return r.createElement("a",{href:e,key:n},t)}},9384:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e}},162:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(75)),i=o(n(9011));function o(e){return e&&e.__esModule?e:{default:e}}var a=new r.default;a.tlds(i.default),t.default=function(e){return a.match(e)}},5922:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e}},1658:(e,t,n)=>{"use strict";var r,i=n(2325),o=(r=i)&&r.__esModule?r:{default:r};t.A=o.default},330:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case g:case m:case u:return e;default:return t}}case i:return t}}}function x(e){return _(e)===f}},4390:(e,t,n)=>{"use strict";n(330)},2654:(e,t,n)=>{"use strict";var r=n(9950),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,o={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=l,t.jsxs=l},2049:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var w=b.prototype=new v;w.constructor=b,m(w,y.prototype),w.isPureReactComponent=!0;var _=Array.isArray,x=Object.prototype.hasOwnProperty,E={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,i)&&!k.hasOwnProperty(i)&&(o[i]=t[i]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===o[i]&&(o[i]=u[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:E.current}}function A(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function D(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function M(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return a=a(u=e),e=""===o?"."+D(u,0):o,_(a)?(i="",null!=e&&(i=e.replace(C,"$&/")+"/"),M(a,t,i,"",(function(e){return e}))):null!=a&&(A(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(u=0,o=""===o?".":o+":",_(e))for(var l=0;l<e.length;l++){var c=o+D(s=e[l],l);u+=M(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=M(s=s.value,t,i,c=o+D(s,l++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function F(e,t,n){if(null==e)return e;var r=[],i=0;return M(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var T={current:null},N={transition:null},P={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:N,ReactCurrentOwner:E};function I(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:F,forEach:function(e,t,n){F(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return F(e,(function(){t++})),t},toArray:function(e){return F(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.act=I,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=E.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)x.call(t,l)&&!k.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=I,t.useCallback=function(e,t){return T.current.useCallback(e,t)},t.useContext=function(e){return T.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return T.current.useDeferredValue(e)},t.useEffect=function(e,t){return T.current.useEffect(e,t)},t.useId=function(){return T.current.useId()},t.useImperativeHandle=function(e,t,n){return T.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return T.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return T.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return T.current.useMemo(e,t)},t.useReducer=function(e,t,n){return T.current.useReducer(e,t,n)},t.useRef=function(e){return T.current.useRef(e)},t.useState=function(e){return T.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return T.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return T.current.useTransition()},t.version="18.3.1"},9950:(e,t,n)=>{"use strict";e.exports=n(2049)},4414:(e,t,n)=>{"use strict";e.exports=n(2654)},2695:(e,t,n)=>{"use strict";var r=n(690),i=n(2157),o=r("RegExp.prototype.exec"),a=n(7277);e.exports=function(e){if(!i(e))throw new a("`regex` must be a RegExp");return function(t){return null!==o(e,t)}}},1761:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,u=e[s],l=s+1,c=e[l];if(0>o(u,n))l<i&&0>o(c,u)?(e[r]=c,e[l]=n,r=l):(e[r]=u,e[s]=n,r=s);else{if(!(l<i&&0>o(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var l=[],c=[],f=1,d=null,h=3,p=!1,m=!1,g=!1,y="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(l,t)}t=r(c)}}function _(e){if(g=!1,w(e),!m)if(null!==r(l))m=!0,N(x);else{var t=r(c);null!==t&&P(_,t.startTime-e)}}function x(e,n){m=!1,g&&(g=!1,v(A),A=-1),p=!0;var o=h;try{for(w(n),d=r(l);null!==d&&(!(d.expirationTime>n)||e&&!M());){var a=d.callback;if("function"===typeof a){d.callback=null,h=d.priorityLevel;var s=a(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?d.callback=s:d===r(l)&&i(l),w(n)}else i(l);d=r(l)}if(null!==d)var u=!0;else{var f=r(c);null!==f&&P(_,f.startTime-n),u=!1}return u}finally{d=null,h=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,k=!1,S=null,A=-1,C=5,D=-1;function M(){return!(t.unstable_now()-D<C)}function F(){if(null!==S){var e=t.unstable_now();D=e;var n=!0;try{n=S(!0,e)}finally{n?E():(k=!1,S=null)}}else k=!1}if("function"===typeof b)E=function(){b(F)};else if("undefined"!==typeof MessageChannel){var O=new MessageChannel,T=O.port2;O.port1.onmessage=F,E=function(){T.postMessage(null)}}else E=function(){y(F,0)};function N(e){S=e,k||(k=!0,E())}function P(e,n){A=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,N(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(l)&&e===r(c)&&(g?(v(A),A=-1):g=!0,P(_,o-a))):(e.sortIndex=s,n(l,e),m||p||(m=!0,N(x))),e},t.unstable_shouldYield=M,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5340:(e,t,n)=>{"use strict";e.exports=n(1761)},8259:(e,t,n)=>{"use strict";var r=n(7375),i=n(9411),o=n(7734)(),a=n(4553),s=n(7277),u=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(l=!1)}return(r||l||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},3946:(e,t,n)=>{"use strict";var r=n(6954);e.exports=r.setPrototypeOf||null},557:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect.setPrototypeOf||null},2178:(e,t,n)=>{"use strict";var r=n(557),i=n(3946),o=n(9518),a=n(7277);e.exports=r?function(e,t){if(r(e,t))return e;throw new a("Reflect.setPrototypeOf: failed to set [[Prototype]]")}:i||(o?function(e,t){return o(e,t),e}:null)},403:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<o.length;u++){var l=o[u];if(!s(l))return!1;var c=e[l],f=t[l];if(!1===(i=n?n.call(r,c,f,l):void 0)||void 0===i&&c!==f)return!1}return!0}},460:(e,t,n)=>{"use strict";var r=n(6790),i=n(7046),o=n(690)("String.prototype.replace"),a=/^\s$/.test("\u180e"),s=a?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,u=a?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=i(r(this));return o(o(e,s,""),u,"")}},2040:(e,t,n)=>{"use strict";var r=n(3629),i=n(8726),o=n(6790),a=n(460),s=n(1737),u=n(8951),l=r(s()),c=function(e){return o(e),l(e)};i(c,{getPolyfill:s,implementation:a,shim:u}),e.exports=c},1737:(e,t,n)=>{"use strict";var r=n(460),i="\u180e";e.exports=function(){return String.prototype.trim&&"\u200b"==="\u200b".trim()&&i.trim()===i&&"_\u180e"==="_\u180e".trim()&&"\u180e_"==="\u180e_".trim()?String.prototype.trim:r}},8951:(e,t,n)=>{"use strict";var r=n(7734)(),i=n(9411),o=n(1737);e.exports=function(){var e=o();return String.prototype.trim!==e&&(r?i(String.prototype,"trim",e,!0):i(String.prototype,"trim",e)),e}},1193:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AncestorChart=void 0,t.getAncestorsTree=function(e){var t=r({},e),n=e.startIndi?e.data.getIndi(e.startIndi).getFamiliesAsSpouse():[];if(n.length){t.startFam=n[0],t.startIndi=void 0,e.data.getFam(n[0]).getMother()===e.startIndi&&(t.swapStartSpouses=!0)}var i=new u(t).createHierarchy();n.length>1&&i.children&&i.children.length>1&&(i.children.pop(),i.data.spouseParentNodeId=void 0);return i};var i=n(8093),o=n(8778),a=n(3066),s=n(284);var u=function(){function e(e){this.options=e,this.util=new o.ChartUtil(e)}return e.prototype.createHierarchy=function(){var e,t,n=[],r=[],o=this.options.idGenerator||new s.IdGenerator;if(this.options.startIndi){var u=(p=this.options.data.getIndi(this.options.startIndi).getFamilyAsChild())?o.getId(p):void 0;p&&r.push({id:p,parentId:this.options.startIndi,family:{id:p}}),n.push({id:this.options.startIndi,indi:{id:this.options.startIndi},indiParentNodeId:u})}else r.push({id:o.getId(this.options.startFam),family:{id:this.options.startFam}});for(;r.length;){var l=r.pop(),c=this.options.data.getFam(l.family.id);if(c){var f=l.family.id===this.options.startFam&&this.options.swapStartSpouses?[c.getMother(),c.getFather()]:[c.getFather(),c.getMother()],d=f[0],h=f[1];if(d||h){var p;if(h)if(l.spouse={id:h},p=this.options.data.getIndi(h).getFamilyAsChild())if(null===(e=this.options.collapsedSpouse)||void 0===e?void 0:e.has(l.id))l.spouse.expander=i.ExpanderState.PLUS;else{u=o.getId(p);l.spouseParentNodeId=u,l.spouse.expander=i.ExpanderState.MINUS,r.push({id:u,parentId:l.id,family:{id:p}})}if(d)if(l.indi={id:d},p=this.options.data.getIndi(d).getFamilyAsChild())if(null===(t=this.options.collapsedIndi)||void 0===t?void 0:t.has(l.id))l.indi.expander=i.ExpanderState.PLUS;else{u=o.getId(p);l.indiParentNodeId=u,l.indi.expander=i.ExpanderState.MINUS,r.push({id:u,parentId:l.id,family:{id:p}})}n.push(l)}}}return(0,a.stratify)()(n)},e.prototype.render=function(){var e=this.createHierarchy(),t=this.util.layOutChart(e,{flipVertically:!0}),n=this.util.renderChart(t),r=(0,o.getChartInfo)(t);return this.util.updateSvgDimensions(r),Object.assign(r,{animationPromise:n})},e}();t.AncestorChart=u},8093:(e,t)=>{"use strict";var n,r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.ChartColors=t.ExpanderDirection=t.ExpanderState=void 0,function(e){e[e.PLUS=0]="PLUS",e[e.MINUS=1]="MINUS"}(n||(t.ExpanderState=n={})),function(e){e[e.INDI=0]="INDI",e[e.SPOUSE=1]="SPOUSE",e[e.FAMILY=2]="FAMILY"}(r||(t.ExpanderDirection=r={})),function(e){e[e.NO_COLOR=0]="NO_COLOR",e[e.COLOR_BY_GENERATION=1]="COLOR_BY_GENERATION",e[e.COLOR_BY_SEX=2]="COLOR_BY_SEX"}(i||(t.ChartColors=i={}))},8778:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChartUtil=t.V_SPACING=t.H_SPACING=void 0,t.linkId=f,t.getChartInfo=function(e){var t=(0,a.min)(e,(function(e){return e.x-e.data.width/2}))-u,n=(0,a.min)(e,(function(e){return e.y-e.data.height/2}))-u,r=(0,a.max)(e,(function(e){return e.x+e.data.width/2}))+u,i=(0,a.max)(e,(function(e){return e.y+e.data.height/2}))+u;return{size:[r-t,i-n],origin:[-t,-n]}},t.getChartInfoWithoutMargin=function(e){var t=(0,a.min)(e,(function(e){return e.x-e.data.width/2})),n=(0,a.min)(e,(function(e){return e.y-e.data.height/2})),r=(0,a.max)(e,(function(e){return e.x+e.data.width/2})),i=(0,a.max)(e,(function(e){return e.y+e.data.height/2}));return{size:[r-t,i-n],origin:[-t,-n]}};var r=n(1688),i=n(8093),o=n(412),a=n(4952);n(944);var s=n(5260);t.H_SPACING=15,t.V_SPACING=34;var u=15,l=200,c=500;function f(e){if(!e.parent)return"".concat(e.id,":A");var t=e.data.generation>e.parent.data.generation?[e.data,e.parent.data]:[e.parent.data,e.data],n=t[0],r=t[1];return n.additionalMarriage?"".concat(n.id,":A"):"".concat(r.id,":").concat(n.id)}var d=function(){function e(e){this.options=e}return e.prototype.linkHorizontal=function(e,t){var n=this.options.renderer.getFamilyAnchor(e.data),r=e.id===t.data.spouseParentNodeId?this.options.renderer.getSpouseAnchor(t.data):this.options.renderer.getIndiAnchor(t.data),i=[e.x+n[0],e.y+n[1]],o=i[0],a=i[1],s=[t.x+r[0],t.y+r[1]],u=s[0],l=s[1],c=(e.x+e.data.width/2+t.x-t.data.width/2)/2;return"M ".concat(o," ").concat(a,"\n L ").concat(c," ").concat(a,",\n ").concat(c," ").concat(l,",\n ").concat(u," ").concat(l)},e.prototype.linkVertical=function(e,n){var r=this.options.renderer.getFamilyAnchor(e.data),i=e.id===n.data.spouseParentNodeId?this.options.renderer.getSpouseAnchor(n.data):this.options.renderer.getIndiAnchor(n.data),o=[e.x+r[0],e.y+r[1]],a=o[0],s=o[1],u=[n.x+i[0],n.y+i[1]],l=u[0],c=u[1],f=e.y+e.data.height/2+t.V_SPACING/2;return"M ".concat(a," ").concat(s,"\n L ").concat(a," ").concat(f,",\n ").concat(l," ").concat(f,",\n ").concat(l," ").concat(c)},e.prototype.linkAdditionalMarriage=function(e){var t=e.parent.children.findIndex((function(t){return t.data.id===e.data.id})),n=e.parent.children[t-1],r=this.options.renderer.getIndiAnchor(e.data),i=this.options.renderer.getIndiAnchor(n.data),o=[e.x+r[0],e.y+r[1]],a=o[0],s=o[1],u=[n.x+i[0],n.y+i[1]],l=u[0],c=u[1];return"M ".concat(a,", ").concat(s,"\n L ").concat(l,", ").concat(c)},e.prototype.updateSvgDimensions=function(e){var t=(0,r.select)(this.options.svgSelector).select("g");(this.options.animate?t.transition().delay(l).duration(c):t).attr("transform","translate(".concat(e.origin[0],", ").concat(e.origin[1],")"))},e.prototype.layOutChart=function(e,n){var i=this;void 0===n&&(n={});var s=(0,r.select)(this.options.svgSelector);s.select("style").empty()&&s.append("style").text(this.options.renderer.getCss()+"\n.expander {\n fill: white;\n stroke: black;\n stroke-width: 2px;\n cursor: pointer;\n}"),e.each((function(e){e.data.generation=e.depth*(n.flipVertically?-1:1)+(i.options.baseGeneration||0)})),this.options.renderer.updateNodes(e.descendants());var u=new Map;e.each((function(e){var t=e.depth,n=(0,a.max)([i.options.horizontal?e.data.width:e.data.height,u.get(t)]);u.set(t,n)})),e.each((function(e){var t=u.get(e.depth);i.options.horizontal?e.data.width=t:e.data.height=t}));var l=void 0!==n.vSpacing?n.vSpacing:t.V_SPACING,c=void 0!==n.hSpacing?n.hSpacing:t.H_SPACING,f=(0,o.flextree)().nodeSize((function(e){if(i.options.horizontal){var t=(0,a.max)(e.children||[],(function(e){return e.data.width}))||0;return[e.data.height,(t+e.data.width)/2+l]}var n=(0,a.max)(e.children||[],(function(e){return e.data.height}))||0;return[e.data.width,(n+e.data.height)/2+l]})).spacing((function(e,t){return c}))(e).descendants();return f.forEach((function(e){var t;n.flipVertically&&(e.y=-e.y),i.options.horizontal&&(t=[e.y,e.x],e.x=t[0],e.y=t[1])})),f},e.prototype.renderChart=function(e){var t=this.getSvgForRendering(),n=this.renderNodes(e,t),r=this.renderLinks(e,t),i=this.renderControls(e,t);return Promise.all([n,r,i])},e.prototype.renderNodes=function(e,t){var n=this;return new Promise((function(r){var i=t.select("g").selectAll("g.node").data(e,(function(e){return e.id})),o=i.enter().append("g"),a=i.exit().size()+i.size()+o.size(),s=function(){0===--a&&r()};n.options.animate&&0!==a||r(),o.merge(i).attr("class",(function(e){return"node generation".concat(e.data.generation)})),o.attr("transform",(function(e){return"translate(".concat(e.x-e.data.width/2,", ").concat(e.y-e.data.height/2,")")})),n.options.animate&&o.style("opacity",0).transition().delay(700).duration(l).style("opacity",1).on("end",s),(n.options.animate?i.transition().delay(l).duration(c).on("end",s):i).attr("transform",(function(e){return"translate(".concat(e.x-e.data.width/2,", ").concat(e.y-e.data.height/2,")")})),n.options.renderer.render(o,i),n.options.animate?i.exit().transition().duration(l).style("opacity",0).remove().on("end",s):i.exit().remove()}))},e.prototype.renderLinks=function(e,t){var n=this;return new Promise((function(r){var i=function(e,t){if(t.data.additionalMarriage)return n.linkAdditionalMarriage(t);var r=e.data.generation>t.data.generation;return n.options.horizontal?r?n.linkHorizontal(t,e):n.linkHorizontal(e,t):r?n.linkVertical(t,e):n.linkVertical(e,t)},o=e.filter((function(e){return!!e.parent||e.data.additionalMarriage})),a=t.select("g").selectAll("path.link").data(o,f),s=a.enter().insert("path","g").attr("class",(function(e){return e.data.additionalMarriage?"link additional-marriage":"link"})).attr("d",(function(e){return i(e.parent,e)})),u=a.exit().size()+a.size()+s.size(),d=function(){0===--u&&r()};n.options.animate&&0!==u||r(),(n.options.animate?a.transition().delay(l).duration(c).on("end",d):a).attr("d",(function(e){return i(e.parent,e)})),n.options.animate&&s.style("opacity",0).transition().delay(900).duration(0).style("opacity",1).on("end",d),n.options.animate?a.exit().transition().duration(0).style("opacity",0).remove().on("end",d):a.exit().remove()}))},e.prototype.renderExpander=function(e,t,n){(e=e.filter((function(e){return void 0!==t(e)}))).on("click",(function(e,t){null===n||void 0===n||n(t.id)})),e.append("rect").attr("width",12).attr("height",12),e.append("line").attr("x1",3).attr("y1",6).attr("x2",9).attr("y2",6).attr("stroke","black"),e.filter((function(e){return t(e)===i.ExpanderState.PLUS})).append("line").attr("x1",6).attr("y1",3).attr("x2",6).attr("y2",9).attr("stroke","black")},e.prototype.renderFamilyControls=function(e){var t=this,n=e.selectAll("g.familyExpander").data((function(e){var t;return void 0!==(null===(t=e.data.family)||void 0===t?void 0:t.expander)?[e]:[]})),r=n.enter().append("g").attr("class","familyExpander expander").merge(n);(this.options.animate?r.transition().delay(l).duration(c):r).attr("transform",(function(e){var n=t.options.renderer.getFamilyAnchor(e.data);return"translate(".concat(n[0]-6,", ").concat(-e.data.height/2+(0,s.getVSize)(e.data,!!t.options.horizontal),")")})),this.renderExpander(r,(function(e){var t;return null===(t=e.data.family)||void 0===t?void 0:t.expander}),(function(e){var n,r;return null===(r=(n=t.options).expanderCallback)||void 0===r?void 0:r.call(n,e,i.ExpanderDirection.FAMILY)})),n.exit().remove()},e.prototype.renderIndiControls=function(e){var t=this,n=e.selectAll("g.indiExpander").data((function(e){var t;return void 0!==(null===(t=e.data.indi)||void 0===t?void 0:t.expander)?[e]:[]})),r=n.enter().append("g").attr("class","indiExpander expander").merge(n);(this.options.animate?r.transition().delay(l).duration(c):r).attr("transform",(function(e){var n=t.options.renderer.getIndiAnchor(e.data);return"translate(".concat(n[0]-6,", ").concat(-e.data.height/2-12,")")})),this.renderExpander(r,(function(e){var t;return null===(t=e.data.indi)||void 0===t?void 0:t.expander}),(function(e){var n,r;return null===(r=(n=t.options).expanderCallback)||void 0===r?void 0:r.call(n,e,i.ExpanderDirection.INDI)})),n.exit().remove()},e.prototype.renderSpouseControls=function(e){var t=this,n=e.selectAll("g.spouseExpander").data((function(e){var t;return void 0!==(null===(t=e.data.spouse)||void 0===t?void 0:t.expander)?[e]:[]})),r=n.enter().append("g").attr("class","spouseExpander expander").merge(n);(this.options.animate?r.transition().delay(l).duration(c):r).attr("transform",(function(e){var n=t.options.renderer.getSpouseAnchor(e.data);return"translate(".concat(n[0]-6,", ").concat(-e.data.height/2-12,")")})),this.renderExpander(r,(function(e){var t;return null===(t=e.data.spouse)||void 0===t?void 0:t.expander}),(function(e){var n,r;return null===(r=(n=t.options).expanderCallback)||void 0===r?void 0:r.call(n,e,i.ExpanderDirection.SPOUSE)})),n.exit().remove()},e.prototype.renderControls=function(e,t){var n=this;return this.options.expanders?new Promise((function(r){var i=t.select("g").selectAll("g.controls").data(e,(function(e){return e.id})),o=i.enter().append("g").attr("class","controls");o.attr("transform",(function(e){return"translate(".concat(e.x,", ").concat(e.y,")")}));var a=i.exit().size()+i.size()+o.size(),s=function(){0===--a&&r()};n.options.animate&&0!==a||r(),(n.options.animate?i.transition().delay(l).duration(c).on("end",s):i).attr("transform",(function(e){return"translate(".concat(e.x,", ").concat(e.y,")")})),n.options.animate&&o.style("opacity",0).transition().delay(700).duration(l).style("opacity",1).on("end",s);var u=o.merge(i);n.renderFamilyControls(u),n.renderIndiControls(u),n.renderSpouseControls(u),n.options.animate?i.exit().transition().duration(l).style("opacity",0).remove().on("end",s):i.exit().remove()})):Promise.resolve()},e.prototype.getSvgForRendering=function(){var e=(0,r.select)(this.options.svgSelector);return e.select("g").empty()&&e.append("g"),e},e}();t.ChartUtil=d},5733:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircleRenderer=void 0;var n=function(){function e(e){this.options=e}return e.prototype.getFamilyAnchor=function(e){return[0,0]},e.prototype.getIndiAnchor=function(e){return[0,0]},e.prototype.getSpouseAnchor=function(e){return[0,0]},e.prototype.updateNodes=function(e){e.forEach((function(e){var t;t=e.data.family?[120,120]:[80,80],e.data.width=t[0],e.data.height=t[1]}))},e.prototype.getName=function(e){if(!e)return"";var t=this.options.data.getIndi(e.id).getFirstName();return t?t.split(" ")[0]:""},e.prototype.render=function(e,t){var n=this;e=e.append("g").attr("class","circle"),t=t.select("g"),e.append("circle").attr("r",(function(e){return e.data.width/2})).attr("cx",(function(e){return e.data.width/2})).attr("cy",(function(e){return e.data.height/2})),e.filter((function(e){return!!e.data.family})).append("text").attr("text-anchor","middle").attr("transform",(function(e){return"translate(".concat(e.data.width/2,", ").concat(e.data.height/2-4,")")})).text((function(e){return n.getName(e.data.indi)})),e.filter((function(e){return!!e.data.family})).append("text").attr("text-anchor","middle").attr("transform",(function(e){return"translate(".concat(e.data.width/2,", ").concat(e.data.height/2+14,")")})).text((function(e){return n.getName(e.data.spouse)})),e.filter((function(e){return!e.data.family})).append("text").attr("text-anchor","middle").attr("transform",(function(e){return"translate(".concat(e.data.width/2,", ").concat(e.data.height/2+4,")")})).text((function(e){return n.getName(e.data.indi)}))},e.prototype.getCss=function(){return"\n circle {\n fill: white;\n stroke: #040;\n stroke-width: 5px;\n }\n .circle text {\n font-family: verdana, arial, sans-serif;\n font-size: 12px;\n }\n .background {\n stroke: none;\n }\n "},e}();t.CircleRenderer=n},5260:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeRenderer=void 0,t.getFamPositionVertical=o,t.getFamPositionHorizontal=a,t.getVSize=u;var r=n(4952),i=function(){function e(e){this.options=e}return e.prototype.getPreferredFamSize=function(e){return[0,0]},e.prototype.setPreferredIndiSize=function(e){var t;e&&(t=this.getPreferredIndiSize(e.id),e.width=t[0],e.height=t[1])},e.prototype.updateNodes=function(e){var t=this,n=new Map;e.forEach((function(e){var i;t.setPreferredIndiSize(e.data.indi),t.setPreferredIndiSize(e.data.spouse);var o=e.data.family;o&&(i=t.getPreferredFamSize(o.id),o.width=i[0],o.height=i[1]);var a=e.depth,u=(0,r.max)([s(e.data,!!t.options.horizontal),n.get(a)]);n.set(a,u)})),e.forEach((function(e){var i;t.options.horizontal?(e.data.indi&&(e.data.indi.width=n.get(e.depth)),e.data.spouse&&(e.data.spouse.width=n.get(e.depth))):(e.data.indi&&(e.data.indi.height=n.get(e.depth)),e.data.spouse&&(e.data.spouse.height=n.get(e.depth)));var o=u(e.data,!!t.options.horizontal),a=function(e,t){if(t)return(e.indi?e.indi.height:0)+(e.spouse?e.spouse.height:0);var n=(e.indi?e.indi.width:0)+(e.spouse?e.spouse.width:0);return(0,r.max)([n,e.family?e.family.width:0])}(e.data,!!t.options.horizontal);i=t.options.horizontal?[o,a]:[a,o],e.data.width=i[0],e.data.height=i[1]}))},e.prototype.getFamilyAnchor=function(e){if(this.options.horizontal){var t=-e.width/2+s(e,this.options.horizontal)/2,n=e.family?(0,r.max)([-a(e),0]):0;return[t,-(e.indi&&e.spouse?e.height/2-e.indi.height:0)+n]}var i=e.family?(0,r.max)([-o(e),0]):0;return[-(e.indi&&e.spouse?e.width/2-e.indi.width:0)+i,-e.height/2+s(e,this.options.horizontal)/2]},e.prototype.getSpouseAnchor=function(e){return this.options.horizontal?[-e.width/2+s(e,this.options.horizontal)/2,e.indi?e.indi.height/2:0]:[e.indi?e.indi.width/2:0,-e.height/2+s(e,!!this.options.horizontal)/2]},e.prototype.getIndiAnchor=function(e){return this.options.horizontal?[-e.width/2+s(e,this.options.horizontal)/2,e.spouse?-e.spouse.height/2:0]:[e.spouse?-e.spouse.width/2:0,-e.height/2+s(e,!!this.options.horizontal)/2]},e}();function o(e){var t=e.indi?e.indi.width:0,n=e.spouse?e.spouse.width:0,r=e.family.width;return!e.indi||!e.spouse||t+n<=r?(t+n-r)/2:r/2>=n?t+n-r:r/2>=t?0:t-r/2}function a(e){var t=e.indi?e.indi.height:0,n=e.spouse?e.spouse.height:0,r=e.family.height;return e.indi&&e.spouse?t-r/2:(t+n-r)/2}function s(e,t){return t?(0,r.max)([e.indi?e.indi.width:0,e.spouse?e.spouse.width:0]):(0,r.max)([e.indi?e.indi.height:0,e.spouse?e.spouse.height:0])}function u(e,t){return s(e,t)+function(e,t){return t?e.family?e.family.width:0:e.family?e.family.height:0}(e,t)}t.CompositeRenderer=i},1697:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JsonDataProvider=void 0;var n=function(){function e(e){this.json=e}return e.prototype.getId=function(){return this.json.id},e.prototype.getFamiliesAsSpouse=function(){return this.json.fams||[]},e.prototype.getFamilyAsChild=function(){return this.json.famc||null},e.prototype.getFirstName=function(){return this.json.firstName||null},e.prototype.getLastName=function(){return this.json.lastName||null},e.prototype.getBirthDate=function(){return this.json.birth||null},e.prototype.getMaidenName=function(){return this.json.maidenName||null},e.prototype.getNumberOfChildren=function(){return this.json.numberOfChildren||null},e.prototype.getNumberOfMarriages=function(){return this.json.numberOfMarriages||null},e.prototype.getBirthPlace=function(){return this.json.birth&&this.json.birth.place||null},e.prototype.getDeathDate=function(){return this.json.death||null},e.prototype.getDeathPlace=function(){return this.json.death&&this.json.death.place||null},e.prototype.isConfirmedDeath=function(){return!!this.json.death&&!!this.json.death.confirmed},e.prototype.getSex=function(){return this.json.sex||null},e.prototype.getImageUrl=function(){return this.json.images&&this.json.images.length>0&&this.json.images[0].url||null},e.prototype.getImages=function(){return this.json.images||null},e.prototype.getNotes=function(){return this.json.notes||null},e.prototype.getEvents=function(){return this.json.events||null},e.prototype.showId=function(){return!this.json.hideId},e.prototype.showSex=function(){return!this.json.hideSex},e}(),r=function(){function e(e){this.json=e}return e.prototype.getId=function(){return this.json.id},e.prototype.getFather=function(){return this.json.husb||null},e.prototype.getMother=function(){return this.json.wife||null},e.prototype.getChildren=function(){return this.json.children||[]},e.prototype.getMarriageDate=function(){return this.json.marriage||null},e.prototype.getMarriagePlace=function(){return this.json.marriage&&this.json.marriage.place||null},e}(),i=function(){function e(e){var t=this;this.json=e,this.indis=new Map,this.fams=new Map,e.indis.forEach((function(e){return t.indis.set(e.id,new n(e))})),e.fams.forEach((function(e){return t.fams.set(e.id,new r(e))}))}return e.prototype.getIndi=function(e){return this.indis.get(e)||null},e.prototype.getFam=function(e){return this.fams.get(e)||null},e}();t.JsonDataProvider=i},7365:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDate=u,t.formatDateOrRange=function(e,t){if(e.date)return u(e.date,t);if(!e.dateRange)return"";var n=e.dateRange.from&&u(e.dateRange.from,t),r=e.dateRange.to&&u(e.dateRange.to,t);if(n&&r)return"".concat(n," .. ").concat(r);if(n)return"".concat(a("after",t)," ").concat(n);if(r)return"".concat(a("before",t)," ").concat(r);return""};var n=new Map([[1,"Jan"],[2,"Feb"],[3,"Mar"],[4,"Apr"],[5,"May"],[6,"Jun"],[7,"Jul"],[8,"Aug"],[9,"Sep"],[10,"Oct"],[11,"Nov"],[12,"Dec"]]),r=new Map([["cs",new Map([["cal","vypo\u010dt."],["abt","okolo"],["est","odhadem"],["before","p\u0159ed"],["after","po"]])],["de",new Map([["cal","errech."],["abt","etwa"],["est","gesch\xe4t."],["before","vor"],["after","nach"]])],["fr",new Map([["cal","calc."],["abt","vers"],["est","est."],["before","avant"],["after","apr\xe8s"]])],["it",new Map([["cal","calc."],["abt","circa il"],["est","stim."],["before","prima del"],["after","dopo del"]])],["pl",new Map([["cal","wyl."],["abt","ok."],["est","szac."],["before","przed"],["after","po"]])],["ru",new Map([["cal","\u0432\u044b\u0447."],["abt","\u043e\u043a."],["est","\u043e\u0446\u0435\u043d."],["before","\u0434\u043e"],["after","\u043f\u043e\u0441\u043b\u0435"]])]]),i=new Map;function o(e,t){if(!Intl||!Intl.DateTimeFormat)return n.get(e);var r="".concat(e,"|").concat(t||"");if(i.has(r))return i.get(r);var o=new Intl.DateTimeFormat(t,{month:"short"}).format(new Date(2e3,e-1));return i.set(r,o),o}function a(e,t){var n=t&&t.split(/[-_]/)[0],i=n&&r.get(n);return i?i.get(e):e}function s(e,t,n,r){if(!e&&!t&&!n)return"";if(!Intl||!Intl.DateTimeFormat||!r||"en"===r)return[e,t&&o(t,r),n].join(" ");var i={day:e?"numeric":void 0,month:t?"short":void 0,year:n?"numeric":void 0};return new Intl.DateTimeFormat(r,i).format(new Date(null!==n&&void 0!==n?n:2e3,t?t-1:1,null!==e&&void 0!==e?e:1))}function u(e,t){return[e.qualifier&&a(e.qualifier,t),s(e.day,e.month,e.year,t),e.text].join(" ")}},359:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DescendantChart=t.DUMMY_ROOT_NODE_ID=void 0,t.layOutDescendants=function(e,t){void 0===t&&(t={});var n=new u(e).createHierarchy();return s(new o.ChartUtil(e).layOutChart(n,t))};var r=n(3066),i=n(8093),o=n(8778),a=n(284);function s(e){if(e[0].id!==t.DUMMY_ROOT_NODE_ID)return e;var n=e.slice(1),r=-n[0].x,i=-n[0].y;return n.forEach((function(e){e.parent&&e.parent.id===t.DUMMY_ROOT_NODE_ID&&!e.data.additionalMarriage&&(e.parent=null),e.x+=r,e.y+=i,e.data.generation--})),n}t.DUMMY_ROOT_NODE_ID="DUMMY_ROOT_NODE";var u=function(){function e(e){this.options=e,this.util=new o.ChartUtil(e)}return e.prototype.getNodes=function(e){var t=this,n=this.options.data.getIndi(e).getFamiliesAsSpouse();if(!n.length)return[{id:e,indi:{id:e}}];var r=n.map((function(n){var r={id:n,indi:{id:e},family:{id:n}},i=t.options.data.getFam(n),o=function(e,t){return t.getFather()===e?t.getMother():t.getFather()}(e,i);return o&&(r.spouse={id:o}),r}));return r.slice(1).forEach((function(e){e.additionalMarriage=!0})),r},e.prototype.getFamNode=function(e){var t={id:e,family:{id:e}},n=this.options.data.getFam(e),r=n.getFather();r&&(t.indi={id:r});var i=n.getMother();return i&&(t.spouse={id:i}),t},e.prototype.createHierarchy=function(){var e,n=this,o=[],s=this.options.startIndi?this.getNodes(this.options.startIndi):[this.getFamNode(this.options.startFam)],u=this.options.idGenerator||new a.IdGenerator;if(s.forEach((function(e){return e.id=u.getId(e.id)})),s.length>1){var l={id:t.DUMMY_ROOT_NODE_ID,height:1,width:1};o.push(l),s.forEach((function(e){return e.parentId=l.id}))}o.push.apply(o,s);var c=[];s.forEach((function(e){e.family&&c.push(e)}));for(var f=function(){var t=c.pop(),r=d.options.data.getFam(t.family.id).getChildren(),a=null===(e=d.options.collapsedFamily)||void 0===e?void 0:e.has(t.id);r.length&&(t.family.expander=a?i.ExpanderState.PLUS:i.ExpanderState.MINUS),a||r.forEach((function(e){var r=n.getNodes(e);r.forEach((function(e){e.parentId=t.id,e.family&&(e.id="".concat(u.getId(e.family.id)),c.push(e))})),o.push.apply(o,r)}))},d=this;c.length;)f();return(0,r.stratify)()(o)},e.prototype.render=function(){var e=this.createHierarchy(),t=s(this.util.layOutChart(e)),n=this.util.renderChart(t),r=(0,o.getChartInfo)(t);return this.util.updateSvgDimensions(r),Object.assign(r,{animationPromise:n})},e}();t.DescendantChart=u},2589:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.DetailedRenderer=void 0,t.getLength=f;var i=n(1688),o=n(3837),a=n(7365),s=n(4952);n(944);var u=n(5260),l=14,c=new Map;function f(e,t){var n="".concat(e,"|").concat(t);if(c.has(n))return c.get(n);var r=(0,i.select)("svg").append("g").attr("class","detailed node"),o=r.append("text").attr("class",t).text(e).node().getComputedTextLength();return r.remove(),c.set(n,o),o}var d=new Map([["F","\u2640"],["M","\u2642"]]),h=function(e){function t(t){var n=e.call(this,t)||this;return n.options=t,n}return r(t,e),t.prototype.getColoringClass=function(){switch(this.options.colors){case o.ChartColors.NO_COLOR:return"nocolor";case o.ChartColors.COLOR_BY_SEX:return"bysex";default:return"bygeneration"}},t.prototype.getIndiDetails=function(e){var t=[],n=e.getBirthDate()&&(0,a.formatDateOrRange)(e.getBirthDate(),this.options.locale),r=e.getBirthPlace(),i=e.getDeathDate()&&(0,a.formatDateOrRange)(e.getDeathDate(),this.options.locale),o=e.getDeathPlace();n&&t.push({symbol:"",text:n}),r&&t.push({symbol:"",text:r}),(n||r)&&(t[0].symbol="*");var s=t.length;return i&&t.push({symbol:"",text:i}),o&&t.push({symbol:"",text:o}),i||o?t[s].symbol="+":e.isConfirmedDeath()&&t.push({symbol:"+",text:""}),t},t.prototype.getFamDetails=function(e){var t=[],n=e.getMarriageDate()&&(0,a.formatDateOrRange)(e.getMarriageDate(),this.options.locale),r=e.getMarriagePlace();return n&&t.push({symbol:"",text:n}),r&&t.push({symbol:"",text:r}),(n||r)&&(t[0].symbol="\u26ad"),t},t.prototype.getPreferredIndiSize=function(e){var t=this.options.data.getIndi(e),n=this.getIndiDetails(t),r=t.showId()||t.showSex()?l:0,i=(0,s.max)([44+n.length*l+r,t.getImageUrl()?90:0]),o=(0,s.max)(n.map((function(e){return f(e.text,"details")})));return[(0,s.max)([o+22,f(t.getFirstName()||"","name")+8,f(t.getLastName()||"","name")+8,f(e,"id")+32,64])+(t.getImageUrl()?70:0),i]},t.prototype.getPreferredFamSize=function(e){var t=this.options.data.getFam(e),n=this.getFamDetails(t);if(!n.length)return[0,0];var r=10+n.length*l;return[(0,s.max)(n.map((function(e){return f(e.text,"details")})))+22,r]},t.prototype.render=function(e,t){var n=this;e=e.append("g").attr("class","detailed"),t=t.select("g");var r=e.merge(t).selectAll("g.indi").data((function(e){var t=[],r=!n.options.horizontal&&e.data.family?(0,s.max)([-(0,u.getFamPositionVertical)(e.data),0]):0,i=n.options.horizontal&&e.data.family?(0,s.max)([-(0,u.getFamPositionHorizontal)(e.data),0]):0;return e.data.indi&&t.push({indi:e.data.indi,generation:e.data.generation,xOffset:r,yOffset:0}),e.data.spouse&&t.push({indi:e.data.spouse,generation:e.data.generation,xOffset:!n.options.horizontal&&e.data.indi?e.data.indi.width+r:0,yOffset:n.options.horizontal&&e.data.indi?e.data.indi.height+i:0}),t}),(function(e){return e.indi.id})),i=r.enter().append("g").attr("class","indi");this.transition(i.merge(r)).attr("transform",(function(e){return"translate(".concat(e.xOffset,", ").concat(e.yOffset,")")})),this.renderIndi(i,r);var o=e.select((function(e){return e.data.family?this:null})).append("g").attr("class","family"),a=t.select((function(e){return e.data.family?this:null})).select("g.family");this.transition(o.merge(a)).attr("transform",(function(e){return n.getFamTransform(e.data)})),this.renderFamily(o,a)},t.prototype.getCss=function(){return"\n.detailed text {\n font-family: verdana, arial, sans-serif;\n font-size: 12px;\n}\n\n.detailed .name {\n font-weight: bold;\n}\n\n.link {\n fill: none;\n stroke: #000;\n stroke-width: 1px;\n}\n\n.additional-marriage {\n stroke-dasharray: 2;\n}\n\n.detailed rect {\n stroke: black;\n}\n\n.detailed {\n stroke-width: 2px;\n}\n\n.detailed .details {\n font-size: 10px;\n}\n\n.detailed .id {\n font-size: 10px;\n font-style: italic;\n}\n\n.detailed rect.nocolor {\n fill: #ffffff;\n}\n\n.detailed rect.bysex {\n fill: #eeeeee;\n}\n\n.detailed rect.bysex.male {\n fill: #dbffff;\n}\n\n.detailed rect.bysex.female {\n fill: #ffdbed;\n}\n\n.detailed rect.bygeneration {\n fill: #ffffdd;\n}\n\n.generation-11 .detailed rect.bygeneration, .generation1 .detailed rect.bygeneration {\n fill: #edffdb;\n}\n\n.generation-10 .detailed rect.bygeneration, .generation2 .detailed rect.bygeneration {\n fill: #dbffdb;\n}\n\n.generation-9 .detailed rect.bygeneration, .generation3 .detailed rect.bygeneration {\n fill: #dbffed;\n}\n\n.generation-8 .detailed rect.bygeneration, .generation4 .detailed rect.bygeneration {\n fill: #dbffff;\n}\n\n.generation-7 .detailed rect.bygeneration, .generation5 .detailed rect.bygeneration {\n fill: #dbedff;\n}\n\n.generation-6 .detailed rect.bygeneration, .generation6 .detailed rect.bygeneration {\n fill: #dbdbff;\n}\n\n.generation-5 .detailed rect.bygeneration, .generation7 .detailed rect.bygeneration {\n fill: #eddbff;\n}\n\n.generation-4 .detailed rect.bygeneration, .generation8 .detailed rect.bygeneration {\n fill: #ffdbff;\n}\n\n.generation-3 .detailed rect.bygeneration, .generation9 .detailed rect.bygeneration {\n fill: #ffdbed;\n}\n\n.generation-2 .detailed rect.bygeneration, .generation10 .detailed rect.bygeneration {\n fill: #ffdbdb;\n}\n\n.generation-1 .detailed rect.bygeneration, .generation11 .detailed rect.bygeneration {\n fill: #ffeddb;\n}"},t.prototype.transition=function(e){return this.options.animate?e.transition().delay(200).duration(500):e},t.prototype.getFamTransform=function(e){return this.options.horizontal?"translate(".concat(e.indi&&e.indi.width||e.spouse.width,", ").concat((0,s.max)([(0,u.getFamPositionHorizontal)(e),0]),")"):"translate(".concat((0,s.max)([(0,u.getFamPositionVertical)(e),0]),", ").concat(e.indi&&e.indi.height||e.spouse.height,")")},t.prototype.getSexClass=function(e){var t;switch(null===(t=this.options.data.getIndi(e))||void 0===t?void 0:t.getSex()){case"M":return"male";case"F":return"female";default:return""}},t.prototype.renderIndi=function(e,t){var n=this;this.options.indiHrefFunc&&(e=e.append("a").attr("href",(function(e){return n.options.indiHrefFunc(e.indi.id)})),t=t.select("a")),this.options.indiCallback&&e.on("click",(function(e,t){return n.options.indiCallback({id:t.indi.id,generation:t.generation})}));var r=e.append("rect").attr("rx",5).attr("stroke-width",0).attr("class",(function(e){return"background ".concat(n.getColoringClass()," ").concat(n.getSexClass(e.indi.id))})).merge(t.select("rect.background")),i=this.transition(r);i.attr("width",(function(e){return e.indi.width})),i.attr("height",(function(e){return e.indi.height}));var o=function(e){return"clip-".concat(e)};e.append("clipPath").attr("id",(function(e){return o(e.indi.id)})).append("rect").attr("rx",5).merge(t.select("clipPath rect")).attr("width",(function(e){return e.indi.width})).attr("height",(function(e){return e.indi.height}));var a=function(e){return n.options.data.getIndi(e.indi.id)},u=function(e){return e.indi.width-(a(e).getImageUrl()?70:0)};e.append("text").attr("text-anchor","middle").attr("class","name").attr("transform",(function(e){return"translate(".concat(u(e)/2,", 17)")})).text((function(e){return a(e).getFirstName()})),e.append("text").attr("text-anchor","middle").attr("class","name").attr("transform",(function(e){return"translate(".concat(u(e)/2,", 33)")})).text((function(e){return a(e).getLastName()}));var c=new Map;e.each((function(e){var t=a(e),r=n.getIndiDetails(t);c.set(e.indi.id,r)}));for(var f=(0,s.max)(Array.from(c.values(),(function(e){return e.length}))),h=function(t){var n=e.filter((function(e){return c.get(e.indi.id).length>t}));n.append("text").attr("text-anchor","middle").attr("class","details").attr("transform","translate(9, ".concat(49+t*l,")")).text((function(e){return c.get(e.indi.id)[t].symbol})),n.append("text").attr("class","details").attr("transform","translate(15, ".concat(49+t*l,")")).text((function(e){return c.get(e.indi.id)[t].text}))},p=0;p<f;++p)h(p);var m=e.append("text").attr("class","id").text((function(e){return a(e).showId()?e.indi.id:""})).merge(t.select("text.id"));this.transition(m).attr("transform",(function(e){return"translate(9, ".concat(e.indi.height-5,")")}));var g=e.append("text").attr("class","details sex").attr("text-anchor","end").text((function(e){var t=d.get(a(e).getSex()||"")||"";return a(e).showSex()?t:""})).merge(t.select("text.sex"));this.transition(g).attr("transform",(function(e){return"translate(".concat(u(e)-5,", ").concat(e.indi.height-5,")")})),e.filter((function(e){return!!a(e).getImageUrl()})).append("image").attr("width",70).attr("height",(function(e){return e.indi.height})).attr("preserveAspectRatio","xMidYMin").attr("transform",(function(e){return"translate(".concat(e.indi.width-70,", 0)")})).attr("clip-path",(function(e){return"url(#".concat(o(e.indi.id),")")})).attr("href",(function(e){return a(e).getImageUrl()}));var y=e.append("rect").attr("rx",5).attr("fill-opacity",0).attr("class","border").merge(t.select("rect.border")),v=this.transition(y);v.attr("width",(function(e){return e.indi.width})),v.attr("height",(function(e){return e.indi.height}))},t.prototype.renderFamily=function(e,t){var n=this;this.options.famHrefFunc&&(e=e.append("a").attr("href",(function(e){return n.options.famHrefFunc(e.data.family.id)}))),this.options.famCallback&&e.on("click",(function(e,t){return n.options.famCallback({id:t.data.family.id,generation:t.data.generation})}));var r=new Map;e.each((function(e){var t=e.data.family.id,i=n.options.data.getFam(t),o=n.getFamDetails(i);r.set(t,o)}));var i=(0,s.max)(Array.from(r.values(),(function(e){return e.length})));e.filter((function(e){return 0<r.get(e.data.family.id).length})).append("rect").attr("class",this.getColoringClass()).attr("rx",5).attr("ry",5).attr("width",(function(e){return e.data.family.width})).attr("height",(function(e){return e.data.family.height}));for(var o=function(t){var n=e.filter((function(e){return r.get(e.data.family.id).length>t}));n.append("text").attr("text-anchor","middle").attr("class","details").attr("transform","translate(9, ".concat(16+t*l,")")).text((function(e){return r.get(e.data.family.id)[t].symbol})),n.append("text").attr("text-anchor","start").attr("class","details").attr("transform","translate(15, ".concat(16+t*l,")")).text((function(e){return r.get(e.data.family.id)[t].text}))},a=0;a<i;++a)o(a)},t}(u.CompositeRenderer);t.DetailedRenderer=h},3477:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FancyChart=void 0;var r=n(4952),i=n(8778),o=n(359);var a=function(){function e(e){this.options=e,this.util=new i.ChartUtil(e)}return e.prototype.linkVertical=function(e,t){var n=this.options.renderer.getFamilyAnchor(e.data),r=e.id===t.data.spouseParentNodeId?this.options.renderer.getSpouseAnchor(t.data):this.options.renderer.getIndiAnchor(t.data),i=[e.x+n[0],e.y+n[1]],o=i[0],a=i[1],s=[t.x+r[0],t.y+r[1]];return function(e,t,n,r){var i=r+110;return n>e+100?"\n M ".concat(e+10," ").concat(t,"\n C ").concat(e+10," ").concat(i+25,"\n ").concat(e+45," ").concat(i+10,"\n ").concat((e+n)/2," ").concat(i+5,"\n ").concat(n-45," ").concat(i,"\n ").concat(n+2," ").concat(i-25,"\n ").concat(n+2," ").concat(r,"\n L ").concat(n-2," ").concat(r,"\n C ").concat(n-2," ").concat(i-25,"\n ").concat(n-45," ").concat(i-10,"\n ").concat((e+n)/2," ").concat(i-5,"\n ").concat(e+45," ").concat(i,"\n ").concat(e-10," ").concat(i+25,"\n ").concat(e-10," ").concat(t):n<e-100?"\n M ".concat(e-10," ").concat(t,"\n C ").concat(e-10," ").concat(i+25,"\n ").concat(e-45," ").concat(i+10,"\n ").concat((e+n)/2," ").concat(i+5,"\n ").concat(n+45," ").concat(i,"\n ").concat(n-2," ").concat(i-25,"\n ").concat(n-2," ").concat(r,"\n L ").concat(n+2," ").concat(r,"\n C ").concat(n+2," ").concat(i-25,"\n ").concat(n+45," ").concat(i-10,"\n ").concat((e+n)/2," ").concat(i-5,"\n ").concat(e-45," ").concat(i,"\n ").concat(e+10," ").concat(i+25,"\n ").concat(e+10," ").concat(t):"\n M ".concat(e+10," ").concat(t,"\n C ").concat(e+10," ").concat(i+25,"\n ").concat(n+2," ").concat(i-25,"\n ").concat(n+2," ").concat(r,"\n L ").concat(n-2," ").concat(r,"\n C ").concat(n-2," ").concat(i-25,"\n ").concat(e-10," ").concat(i+25,"\n ").concat(e-10," ").concat(t)}(s[0],s[1],o,a)},e.prototype.linkAdditionalMarriage=function(e){var t=e.parent.children.findIndex((function(t){return t.id===e.id})),n=e.parent.children[t-1],r=this.options.renderer.getIndiAnchor(e.data),i=this.options.renderer.getIndiAnchor(n.data),o=[e.x+r[0],e.y+r[1]],a=o[0],s=o[1],u=[n.x+i[0],n.y+i[1]],l=u[0],c=u[1];return"M ".concat(a,", ").concat(s+2,"\n L ").concat(l,", ").concat(c+10,"\n ").concat(l,", ").concat(c-10,"\n ").concat(a,", ").concat(s-2)},e.prototype.renderBackground=function(e,t){t.select("g").append("rect").attr("x",-e.origin[0]).attr("y",-e.origin[1]).attr("width",e.size[0]).attr("height",e.origin[1]).attr("fill","#cff"),t.select("g").append("rect").attr("x",-e.origin[0]).attr("y",0).attr("width",e.size[0]).attr("height",e.size[1]-e.origin[1]).attr("fill","#494")},e.prototype.renderLeaves=function(e,t){var n=t.select("g").append("radialGradient").attr("id","gradient");n.append("stop").attr("offset","0%").attr("stop-color","#8f8"),n.append("stop").attr("offset","80%").attr("stop-color","#8f8").attr("stop-opacity",.5),n.append("stop").attr("offset","100%").attr("stop-color","#8f8").attr("stop-opacity",0);var i,a,s=e.filter((function(e){return e.parent&&e.parent.id!==o.DUMMY_ROOT_NODE_ID})),u=(0,r.min)(s,(function(e){return e.data.generation}))||0,l=function(e){return 280-180/Math.sqrt(1+e.data.generation-u)};(a=(i=t.select("g").selectAll("g.background").data(s,(function(e){return e.id}))).enter().append("g")).merge(i).attr("class","background").attr("transform",(function(e){return"translate(".concat(e.x-e.data.width/2,", ").concat(e.y-e.data.height/2,")")})),a.append("g").attr("class","background").append("circle").attr("class","background").attr("r",l).attr("cx",(function(e){return e.data.width/2})).attr("cy",(function(e){return e.data.height/2})).style("fill","#493"),(a=(i=t.select("g").selectAll("g.background2").data(s,(function(e){return e.id}))).enter().append("g")).merge(i).attr("class","background2").attr("transform",(function(e){return"translate(".concat(e.x-e.data.width/2,", ").concat(e.y-e.data.height/2,")")})),a.append("g").attr("class","background2").append("circle").attr("class","background").attr("r",l).attr("cx",(function(e){return e.data.width/2})).attr("cy",(function(e){return e.data.height/2})).style("fill","url(#gradient)")},e.prototype.renderLinks=function(e,t){var n=this,r=e.filter((function(e){return!!e.parent}));t.select("g").selectAll("path.branch").data(r,i.linkId).enter().append("path").attr("class",(function(e){return e.data.additionalMarriage?"branch additional-marriage":"branch"})).attr("d",(function(e){return t=e.parent,(r=e).data.additionalMarriage?n.linkAdditionalMarriage(r):n.linkVertical(r,t);var t,r}))},e.prototype.renderTreeTrunk=function(e,t){var n=e.filter((function(e){return!e.parent||e.parent.id===o.DUMMY_ROOT_NODE_ID}));t.select("g").selectAll("g.trunk").data(n,(function(e){return e.id})).enter().append("g").attr("class","trunk").attr("transform",(function(e){return"translate(".concat(e.x,", ").concat(e.y,")")})).append("path").attr("d","\n M 10 20\n L 10 40\n C 10 60 10 90 40 90\n L -40 90\n C -10 90 -10 60 -10 40\n L -10 20")},e.prototype.render=function(){var e=(0,o.layOutDescendants)(this.options,{flipVertically:!0,vSpacing:100}),t=(0,i.getChartInfo)(e);t.origin[0]+=150,t.origin[1]+=150,t.size[0]+=300,t.size[1]+=250;var n=this.util.getSvgForRendering();return n.append("style").text("\n .branch, .trunk {\n fill: #632;\n stroke: #632;\n }"),this.renderBackground(t,n),this.renderLeaves(e,n),this.renderLinks(e,n),this.renderTreeTrunk(e,n),this.util.renderNodes(e,n),this.util.updateSvgDimensions(t),Object.assign(t,{animationPromise:Promise.resolve()})},e}();t.FancyChart=a},776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDate=c,t.gedcomToJson=function(e){return h((0,r.parse)(e))},t.gedcomEntriesToJson=h;var r=n(8148);function i(e,t){return e.find((function(e){return e.tag===t}))}function o(e,t){return e.filter((function(e){return e.tag===t}))}function a(e){return e.substring(1,e.length-1)}function s(e){var t=e.split("/");return 1===t.length?{firstName:t[0].trim()}:{firstName:t[0].trim(),lastName:t[1].trim()}}var u=new Map([["jan",1],["feb",2],["mar",3],["apr",4],["may",5],["jun",6],["jul",7],["aug",8],["sep",9],["oct",10],["nov",11],["dec",12]]);function l(e){if(e&&e.length){var t={};if(e[0].startsWith("(")&&e[e.length-1].endsWith(")")){e[0]=e[0].substring(1);var n=e[e.length-1];e[e.length-1]=n.substring(0,n.length-1)}var r=e.join(" "),i=e[0].toLowerCase();if("cal"!==i&&"abt"!==i&&"est"!==i||(t.qualifier=i,e=e.slice(1)),e.length&&e[e.length-1].match(/^\d{1,4}$/)&&(t.year=Number(e[e.length-1]),e=e.slice(0,e.length-1)),e.length){n=e[e.length-1].toLowerCase();u.has(n)&&(t.month=u.get(n),e=e.slice(0,e.length-1))}return e.length&&e[0].match(/^\d\d?$/)&&(t.day=Number(e[0]),e=e.slice(0,e.length-1)),e.length?{text:r}:t}}function c(e){var t=e.replace(/@.*@/,"").trim().split(" "),n=t[0].toLowerCase();if(n.startsWith("bet")){var r=t.findIndex((function(e){return"and"===e.toLowerCase()}));return{dateRange:{from:l(t.slice(1,r)),to:l(t.slice(r+1))}}}if(n.startsWith("bef")||n.startsWith("aft")){var i=l(t.slice(1));return n.startsWith("bef")?{dateRange:{to:i}}:{dateRange:{from:i}}}var o=l(t);if(o)return{date:o}}function f(e){if(e&&"NOTE"===e.tag)return o(e.tree,"CONT").filter((function(e){return e.data})).reduce((function(e,t){return e.concat(t.data)}),[e.data])}function d(e){if(e){var t=i(e.tree,"TYPE"),n=i(e.tree,"DATE"),r=i(e.tree,"PLAC"),o=n&&n.data&&c(n.data),a=r&&r.data;if(o||a){var s=o||{};return a&&(s.place=a),s.confirmed=!0,s.type=t?t.data:void 0,s.notes=f(i(e.tree,"NOTE")),s}return e.data&&"y"===e.data.toLowerCase()?{confirmed:!0}:void 0}}function h(e){var t,n=(t=o(e,"OBJE"),new Map(t.map((function(e){return[a(e.pointer),e]})))),r=new Set(e.map((function(e){return a(e.pointer)})).filter((function(e){return!!e}))),u=o(e,"INDI").map((function(e){return function(e,t,n){var r=a(e.pointer),u=o(e.tree,"FAMS").map((function(e){return a(e.data)})).filter((function(e){return n.has(e)})),l={id:r,fams:u},c=o(e.tree,"NAME"),h=function(e){var t=i(e.tree,"TYPE");return void 0!==t&&"maiden"===t.data},p=c.find((function(e){return!h(e)})),m=c.find(h);if(p){var g=s(p.data),y=g.firstName,v=g.lastName;y&&(l.firstName=y),v&&(l.lastName=v)}if(m){var b=s(m.data);y=b.firstName,(v=b.lastName)&&(l.maidenName=v),y&&!l.firstName&&(l.firstName=y)}var w=i(e.tree,"NCHI");w&&(l.numberOfChildren=+w.data);var _=i(e.tree,"NMR");_&&(l.numberOfMarriages=+_.data);var x=i(e.tree,"SEX");x&&(l.sex=x.data);var E=i(e.tree,"FAMC");if(E){var k=a(E.data);n.has(k)&&(l.famc=k)}var S=o(e.tree,"OBJE");S.length>0&&(l.images=S.map((function(e){var n=e.data?t.get(a(e.data)):e;if(n){var r=i(n.tree,"FILE"),o=i(n.tree,"TITL");if(r)return{url:r.data,title:o&&o.data}}})).filter((function(e){return void 0!==e})));var A=d(i(e.tree,"BIRT"));A&&(l.birth=A);var C=d(i(e.tree,"DEAT"));return C&&(l.death=C),l.notes=f(i(e.tree,"NOTE")),l.events=o(e.tree,"EVEN").map(d).filter((function(e){return null!==e})),l}(e,n,r)})),l=o(e,"FAM").map((function(e){return function(e,t){var n=a(e.pointer),r=o(e.tree,"CHIL").map((function(e){return a(e.data)})).filter((function(e){return t.has(e)})),s={id:n,children:r},u=i(e.tree,"HUSB");if(u){var l=a(u.data);t.has(l)&&(s.husb=a(u.data))}var c=i(e.tree,"WIFE");if(c){var f=a(c.data);t.has(f)&&(s.wife=a(c.data))}var h=d(i(e.tree,"MARR"));return h&&(s.marriage=h),s}(e,r)}));return{indis:u,fams:l}}},8586:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HourglassChart=void 0;var r=n(1193),i=n(8778),o=n(359),a=function(){function e(e){this.options=e,this.util=new i.ChartUtil(e)}return e.prototype.render=function(){var e,t,n,a,s=(0,r.getAncestorsTree)(this.options),u=this.util.layOutChart(s,{flipVertically:!0}),l=(0,o.layOutDescendants)(this.options);void 0!==(null===(e=u[0].data.indi)||void 0===e?void 0:e.expander)&&(l[0].data.indi.expander=null===(t=u[0].data.indi)||void 0===t?void 0:t.expander),void 0!==(null===(n=u[0].data.spouse)||void 0===n?void 0:n.expander)&&(l[0].data.spouse.expander=null===(a=u[0].data.spouse)||void 0===a?void 0:a.expander);var c=u.slice(1).concat(l),f=this.util.renderChart(c),d=(0,i.getChartInfo)(c);return this.util.updateSvgDimensions(d),Object.assign(d,{animationPromise:f})},e}();t.HourglassChart=a},284:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdGenerator=void 0;var n=function(){function e(){this.ids=new Map}return e.prototype.getId=function(e){if(this.ids.has(e)){var t=this.ids.get(e);return this.ids.set(e,t+1),"".concat(e,":").concat(t)}return this.ids.set(e,1),e},e}();t.IdGenerator=n},3837:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),n(1152),i(n(1193),t),i(n(8093),t),i(n(8778),t),i(n(5733),t),i(n(5260),t),i(n(1697),t),i(n(7365),t),i(n(3477),t),i(n(359),t),i(n(2589),t),i(n(776),t),i(n(8586),t),i(n(1684),t),i(n(7141),t),i(n(3338),t),i(n(6675),t)},1684:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KinshipChart=void 0;var r=n(483),i=n(9776),o=function(){function e(e){this.options=e,this.renderer=new r.KinshipChartRenderer(this.options)}return e.prototype.render=function(){var e=this,t=i.HierarchyCreator.createHierarchy(this.options.data,new i.EntryId(this.options.startIndi||null,this.options.startFam||null)),n=this.renderer.layOut(t.upRoot,t.downRoot),r=n[0],o=n[1];return r.concat(o).forEach((function(t){e.setChildNodesGenerationNumber(t)})),this.renderer.render(r,o,(0,i.getRootsCount)(t.upRoot,this.options.data))},e.prototype.setChildNodesGenerationNumber=function(e){var t=this.getChildNodesByType(e),n=function(t,n){return t.forEach((function(t){return t.data.generation=e.data.generation+n}))};n(t.indiParents,-1),n(t.indiSiblings,0),n(t.spouseParents,-1),n(t.spouseSiblings,0),n(t.children,1)},e.prototype.getChildNodesByType=function(e){if(!e||!e.children)return a;var t=new Map(e.children.map((function(e){return[e.data.id,e]}))),n=function(e){return t.get(e.id)},r=e.data.childNodes;return{indiParents:r.indiParents.map(n),indiSiblings:r.indiSiblings.map(n),spouseParents:r.spouseParents.map(n),spouseSiblings:r.spouseSiblings.map(n),children:r.children.map(n)}},e}();t.KinshipChart=o;var a={indiParents:[],indiSiblings:[],spouseParents:[],spouseSiblings:[],children:[]}},9354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkType=t.ChildNodes=void 0,t.otherSideLinkType=function(e){switch(e){case n.IndiParents:return n.Children;case n.IndiSiblings:return n.IndiSiblings;case n.SpouseParents:return n.Children;case n.SpouseSiblings:return n.IndiSiblings;case n.Children:return n.IndiParents}};var n,r=function(){function e(e){void 0===e&&(e={}),this.indiParents=[],this.indiSiblings=[],this.spouseParents=[],this.spouseSiblings=[],this.children=[],Object.assign(this,e)}return e.prototype.get=function(e){switch(e){case n.IndiParents:return this.indiParents;case n.IndiSiblings:return this.indiSiblings;case n.SpouseParents:return this.spouseParents;case n.SpouseSiblings:return this.spouseSiblings;case n.Children:return this.children}},e.prototype.getAll=function(){return[].concat(this.indiSiblings,this.indiParents,this.children,this.spouseParents,this.spouseSiblings)},e.EMPTY=new e,e}();t.ChildNodes=r,function(e){e[e.IndiParents=0]="IndiParents",e[e.IndiSiblings=1]="IndiSiblings",e[e.SpouseParents=2]="SpouseParents",e[e.SpouseSiblings=3]="SpouseSiblings",e[e.Children=4]="Children"}(n||(t.LinkType=n={}))},9776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EntryId=t.HierarchyCreator=void 0,t.getRootsCount=function(e,t){var n=e.data.indi&&t.getIndi(e.data.indi.id),r=e.data.spouse&&t.getIndi(e.data.spouse.id);return(n?n.getFamiliesAsSpouse().length:0)+(r?r.getFamiliesAsSpouse().length-1:0)};var r=n(9354),i=n(3066),o=n(1360),a=n(284),s=n(4488),u=function(){function e(e,t){var n;this.data=e,this.queuedNodesById=new Map,this.idGenerator=new a.IdGenerator,n=this.expandStartId(t),this.startEntryId=n[0],this.startFamIndi=n[1]}return e.createHierarchy=function(t,n){return new e(t,n).createHierarchy()},e.prototype.expandStartId=function(e){if(e.isFam)return[e,null];var t=this.data.getIndi(e.id);if(!t)throw new Error("Invalid startId");var n=t.getFamiliesAsSpouse();return n.length?[l.fam(n[0]),e.id]:[e,null]},e.prototype.createHierarchy=function(){var t=this.idToNode(this.startEntryId,null,null,!1),n=this.idToNode(this.startEntryId,null,null,!1);if(!t||!n)throw new Error("Invalid root node");this.startFamIndi&&(t.indi={id:this.startFamIndi},n.indi={id:this.startFamIndi});for(var r=[t,n];r.length;){var o=r.shift(),a=o===t?e.UP_FILTER:o===n?e.DOWN_FILTER:e.ALL_ACCEPTING_FILTER;this.fillNodeData(o,a);for(var s=0,u=o.childNodes.getAll();s<u.length;s++){var l=u[s];r.push(l)}}var c=function(e){var t=e.childNodes.getAll();return t.length?t:null};return{upRoot:(0,i.hierarchy)(t,c),downRoot:(0,i.hierarchy)(n,c)}},e.prototype.fillNodeData=function(e,t){if(this.isFamNode(e)){var n=this.data.getFam(e.id),r=e.indi&&e.indi.id===n.getMother()?[n.getMother(),n.getFather()]:[n.getFather(),n.getMother()],i=r[0],o=r[1];Object.assign(e,{id:this.idGenerator.getId(e.id),indi:i&&{id:i},spouse:o&&{id:o}}),e.duplicateOf||e.duplicated||(e.childNodes=this.childNodesForFam(n,e,t))}else{var a=this.data.getIndi(e.id);Object.assign(e,{id:this.idGenerator.getId(e.id),indi:{id:a.getId()}}),e.duplicateOf||e.duplicated||(e.childNodes=this.childNodesForIndi(a,e,t))}e.linkStubs=this.createLinkStubs(e)},e.prototype.childNodesForFam=function(e,t,n){var i=t.indi?this.data.getIndi(t.indi.id):null,o=t.spouse?this.data.getIndi(t.spouse.id):null,a=this.getParentsAndSiblings(i),s=a[0],u=a[1],l=this.getParentsAndSiblings(o),c=l[0],f=l[1],d=e.getChildren();return new r.ChildNodes({indiParents:n.indiParents?this.famAsSpouseIdsToNodes(s,t,r.LinkType.IndiParents):[],indiSiblings:n.indiSiblings?this.indiIdsToFamAsSpouseNodes(u,t,r.LinkType.IndiSiblings):[],spouseParents:n.spouseParents?this.famAsSpouseIdsToNodes(c,t,r.LinkType.SpouseParents):[],spouseSiblings:n.spouseSiblings?this.indiIdsToFamAsSpouseNodes(f,t,r.LinkType.SpouseSiblings):[],children:n.children?this.indiIdsToFamAsSpouseNodes(d,t,r.LinkType.Children):[]})},e.prototype.childNodesForIndi=function(e,t,n){var i=this.getParentsAndSiblings(e),o=i[0],a=i[1];return new r.ChildNodes({indiParents:n.indiParents?this.famAsSpouseIdsToNodes(o,t,r.LinkType.IndiParents):[],indiSiblings:n.indiSiblings?this.indiIdsToFamAsSpouseNodes(a,t,r.LinkType.IndiSiblings):[]})},e.prototype.areParentsAndSiblingsPresent=function(e){var t=e&&this.data.getIndi(e),n=t&&t.getFamilyAsChild(),r=n&&this.data.getFam(n);return r?[!(!r.getFather()&&!r.getMother()),r.getChildren().length>1]:[!1,!1]},e.prototype.getParentsAndSiblings=function(e){var t=e&&e.getFamilyAsChild(),n=this.data.getFam(t);if(!n)return[[],[]];var r=this.data.getIndi(n.getFather()),i=this.data.getIndi(n.getMother()),o=[].concat(r?r.getFamiliesAsSpouse():[],i?i.getFamiliesAsSpouse():[]).filter((function(e){return e!==t}));o.unshift(t);var a=Array.from(n.getChildren());return a.splice(a.indexOf(e.getId()),1),[o,a]},e.prototype.indiIdsToFamAsSpouseNodes=function(e,t,n){var r=this;return e.flatMap((function(e){return r.indiIdToFamAsSpouseNodes(e,t,n)}))},e.prototype.indiIdToFamAsSpouseNodes=function(e,t,n){var i=this;if(this.isChildNodeTypeForbidden(n,t))return[];var o=this.data.getIndi(e).getFamiliesAsSpouse();if(!o.length){var a=this.idToNode(l.indi(e),t,n);return a?[a]:[]}var s=o.map((function(i){return{id:i,indi:{id:e},family:{id:i},parentNode:t,linkFromParentType:n,childNodes:r.ChildNodes.EMPTY,linkStubs:[]}}));return s.forEach((function(e,t){0!==t&&(e.primaryMarriage=s[0]);var n=i.queuedNodesById.get(e.id);n?(e.duplicateOf=n,n.duplicated=!0):i.queuedNodesById.set(e.id,e)})),s},e.prototype.famAsSpouseIdsToNodes=function(e,t,n){var r=this.idsToNodes(e.map(l.fam),t,n);return r.slice(1).forEach((function(e){return e.primaryMarriage=r[0]})),r},e.prototype.idsToNodes=function(e,t,n,r){var i=this;return void 0===r&&(r=!0),e.map((function(e){return i.idToNode(e,t,n,r)})).filter((function(e){return null!=e}))},e.prototype.idToNode=function(e,t,n,i){if(void 0===i&&(i=!0),this.isChildNodeTypeForbidden(n,t))return null;var o=e.id,a=e.isFam;if(a){var s=this.data.getFam(o);if(!s||!s.getFather()&&!s.getMother())return null}var u=this.queuedNodesById.get(o),l={id:o,parentNode:t,linkFromParentType:n,childNodes:r.ChildNodes.EMPTY,linkStubs:[]};return a&&(l.family={id:o}),i&&u&&(l.duplicateOf=u,u.duplicated=!0),u||this.queuedNodesById.set(o,l),l},e.prototype.createLinkStubs=function(e){var t=this;if(!this.isFamNode(e)||!e.duplicateOf&&!e.duplicated&&!e.primaryMarriage)return[];var n=this.data.getFam(e.family.id),i=this.areParentsAndSiblingsPresent(e.indi?e.indi.id:null),o=i[0],a=i[1],u=this.areParentsAndSiblingsPresent(e.spouse?e.spouse.id:null),l=u[0],c=u[1],f=(0,s.nonEmpty)(n.getChildren());return[o?[r.LinkType.IndiParents]:[],a?[r.LinkType.IndiSiblings]:[],l?[r.LinkType.SpouseParents]:[],c?[r.LinkType.SpouseSiblings]:[],f?[r.LinkType.Children]:[]].flat().filter((function(n){return!t.isChildNodeTypeForbidden(n,e)&&!e.childNodes.get(n).length}))},e.prototype.isChildNodeTypeForbidden=function(e,t){if(null===e||!t)return!1;switch((0,r.otherSideLinkType)(t.linkFromParentType)){case r.LinkType.IndiParents:case r.LinkType.IndiSiblings:if(e===r.LinkType.IndiParents||e===r.LinkType.IndiSiblings)return!0;break;case r.LinkType.Children:if(!t.primaryMarriage&&e===r.LinkType.Children)return!0}if(t.primaryMarriage){var n=t.indi.id,i=t.spouse.id,o=t.primaryMarriage.indi.id,a=t.primaryMarriage.spouse.id;if(n===o||n===a){if(e===r.LinkType.IndiParents||e===r.LinkType.IndiSiblings)return!0}else if((i===o||i===a)&&(e===r.LinkType.SpouseParents||e===r.LinkType.SpouseSiblings))return!0}return!1},e.prototype.isFamNode=function(e){return!!e.family},e.UP_FILTER=o.HierarchyFilter.allRejecting().modify({indiParents:!0,spouseParents:!0,indiSiblings:!0,spouseSiblings:!0}),e.DOWN_FILTER=o.HierarchyFilter.allRejecting().modify({children:!0}),e.ALL_ACCEPTING_FILTER=o.HierarchyFilter.allAccepting(),e}();t.HierarchyCreator=u;var l=function(){function e(e,t){if(!e&&!t)throw new Error("Invalid EntryId");this.id=e||t,this.isFam=!!t}return e.indi=function(t){return new e(t,null)},e.fam=function(t){return new e(null,t)},e}();t.EntryId=l},1360:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HierarchyFilter=void 0;var n=function(){function e(e){void 0===e&&(e={}),this.indiParents=!0,this.indiSiblings=!0,this.spouseParents=!0,this.spouseSiblings=!0,this.children=!0,this.modify(e)}return e.allAccepting=function(){return new e},e.allRejecting=function(){return(new e).modify({indiParents:!1,indiSiblings:!1,spouseParents:!1,spouseSiblings:!1,children:!1})},e.prototype.modify=function(e){return Object.assign(this,e),this},e}();t.HierarchyFilter=n},483:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.KinshipChartRenderer=void 0;var i=n(4952),o=n(9354),a=n(8778),s=n(4488),u=function(){function e(e){this.options=e,this.util=new a.ChartUtil(this.options)}return e.prototype.layOut=function(e,t){var n=this.util.getSvgForRendering();return n.select("style").empty()&&n.append("style").text(this.options.renderer.getCss()),[this.util.layOutChart(e,{flipVertically:!0}),this.util.layOutChart(t)]},e.prototype.render=function(e,t,n){var r=this,i=e.concat(t),o=i.slice(1);e.forEach((function(e){return r.setLinkYs(e,!0)})),t.forEach((function(e){return r.setLinkYs(e,!1)}));var s=this.util.renderNodes(o,this.util.getSvgForRendering());this.renderLinks(i),n>1&&this.renderRootDummyAdditionalMarriageLinkStub(i[0]);var u=(0,a.getChartInfo)(o);return this.util.updateSvgDimensions(u),Object.assign(u,{animationPromise:s})},e.prototype.renderLinks=function(e){var t=this,n=this.util.getSvgForRendering().select("g"),r=function(e){return e.data.id},i=n.selectAll("path.internode-link").data(e.filter((function(e){return!!e.parent})),r);i.enter().insert("path","g").attr("class",(function(e){return t.cssClassForLink(e)})).merge(i).attr("d",(function(e){var n=e.data.primaryMarriage?t.additionalMarriageLinkPoints(e):t.linkPoints(e.parent,e,e.data.linkFromParentType);return(0,s.points2pathd)(n)})),i.exit().remove();var o=n.selectAll("g.link-stubs").data(e.filter((function(e){return e.data.duplicateOf||e.data.duplicated||e.data.primaryMarriage})),r),a=o.enter().insert("g","g").attr("class","link-stubs");o.exit().remove();var u=a.merge(o).selectAll("g").data((function(e){return t.nodeToLinkStubRenderInfos(e)}),(function(e){return e.linkType.toString()}));u.enter().append("g").call((function(e){return e.append("path").attr("class",(function(e){return t.cssClassForLinkStub(e.linkType)})).merge(u.select("path.link-stub")).attr("d",(function(e){return(0,s.points2pathd)(e.points)}))})).call((function(e){return e.append("circle").attr("r",3).style("stroke","black").style("fill","none").merge(u.select("circle")).attr("transform",(function(e){return"translate(".concat((0,s.last)(e.points).x,", ").concat((0,s.last)(e.points).y+3*e.treeDir,")")}))})),u.exit().remove()},e.prototype.cssClassForLink=function(e){return e.data.primaryMarriage?"link internode-link additional-marriage":"link internode-link "+this.cssClassForLinkType(e.data.linkFromParentType)},e.prototype.cssClassForLinkStub=function(e){return"link link-stub "+this.cssClassForLinkType(e)},e.prototype.cssClassForLinkType=function(e){switch(e){case o.LinkType.IndiParents:case o.LinkType.SpouseParents:return"parents-link";case o.LinkType.IndiSiblings:case o.LinkType.SpouseSiblings:return"siblings-link";case o.LinkType.Children:return"children-link"}},e.prototype.nodeToLinkStubRenderInfos=function(e){var t=this;return e.data.linkStubs.map((function(n){var i=e.y<e.parent.y,o=i?-1:1,a=t.linkAnchorPoints(e,n,i),u=e.data.linkYs.children-18*o;return{treeDir:o,linkType:n,points:r(r([],a,!0),[{x:(0,s.last)(a).x,y:u}],!1)}}))},e.prototype.getLinkY=function(e,t){switch(t){case o.LinkType.IndiParents:case o.LinkType.IndiSiblings:return e.data.linkYs.indi;case o.LinkType.SpouseParents:case o.LinkType.SpouseSiblings:return e.data.linkYs.spouse;case o.LinkType.Children:return e.data.linkYs.children}},e.prototype.setLinkYs=function(e,t){var n=t?-1:1,r=e.y+(e.data.height/2+17)*n,i=6*n,o=this.calcLinkOffsetDirs(e),a=o[0],s=o[1];e.data.linkYs={indi:r+i*a,spouse:r+i*s,children:r}},e.prototype.calcLinkOffsetDirs=function(e){var t=e.data.childNodes;if(t.children.length){var n=this.linkAnchorPoints(e,o.LinkType.IndiParents,!0)[0].x,r=this.linkAnchorPoints(e,o.LinkType.SpouseParents,!0)[0].x,i={min:this.findMinXOfChildNodesAnchors(e,t.children),max:this.findMaxXOfChildNodesAnchors(e,t.children)};if(i.min<n&&i.max>r)return[-1,-1];if(i.min<n)return[-1,1];if(i.max>r)return[1,-1]}else if((t.indiParents.length||t.indiSiblings.length)&&(t.spouseParents.length||t.spouseSiblings.length)){n=this.linkAnchorPoints(e,o.LinkType.IndiParents,!0)[0].x;if(this.findMinXOfChildNodesAnchors(e,t.spouseSiblings.concat(t.spouseParents))<n)return[-1,1]}return[1,-1]},e.prototype.findMinXOfChildNodesAnchors=function(e,t){return this.findExtremeXOfChildNodesAnchors(e,t,!0)},e.prototype.findMaxXOfChildNodesAnchors=function(e,t){return this.findExtremeXOfChildNodesAnchors(e,t,!1)},e.prototype.findExtremeXOfChildNodesAnchors=function(e,t,n){var r=n?i.min:i.max,o=n?-1:1,a=new Set(t);return r(e.children.filter((function(e){return a.has(e.data)})),(function(e){return e.x+o*e.data.width/2}))+7*o},e.prototype.linkPoints=function(e,t,n){var i=e.y>t.y,a=this.linkAnchorPoints(e,n,i),s=this.linkAnchorPoints(t,(0,o.otherSideLinkType)(n),!i).reverse(),u=this.getLinkY(e,n);return r(r(r([],a,!0),[{x:a[a.length-1].x,y:u},{x:s[0].x,y:u}],!1),s,!0)},e.prototype.additionalMarriageLinkPoints=function(e){var t=e.parent.children.findIndex((function(t){return t.data.id===e.data.id})),n=e.parent.children[t-1],r=this.indiMidY(e);return[{x:n.x,y:r},{x:e.x,y:r}]},e.prototype.linkAnchorPoints=function(e,t,n){var r=[e.x,e.y],i=r[0],a=r[1],s=[e.data.width,e.data.height],u=s[0],l=s[1],c=i-u/2,f=i+u/2,d=[e.data.indi,e.data.spouse,e.data.family].map((function(e){return e?e.width:0})),h=d[0],p=d[1],m=d[2],g=h+p,y=i-u/2+(m>g?(m-g)/2:0),v=y+g,b=this.indiMidY(e)+5*(n?-1:1);switch(t){case o.LinkType.IndiParents:return[{x:y+15,y:a-l/2}];case o.LinkType.SpouseParents:return[{x:v-15,y:a-l/2}];case o.LinkType.IndiSiblings:return[{x:y,y:b},{x:(m>g&&!n?c:y)-7,y:b}];case o.LinkType.SpouseSiblings:return[{x:v,y:b},{x:(m>g&&!n?f:v)+7,y:b}];case o.LinkType.Children:return[{x:y+(e.data.spouse?h:h/2),y:a}]}},e.prototype.indiMidY=function(e){return e.y-e.data.height/2+e.data.indi.height/2},e.prototype.renderRootDummyAdditionalMarriageLinkStub=function(e){var t=this.util.getSvgForRendering().select("g"),n=this.indiMidY(e),r=e.data.width/2+20;t.selectAll(".root-dummy-additional-marriage").remove(),t.insert("g","g").attr("class","root-dummy-additional-marriage").call((function(e){return e.append("path").attr("d","M 0 ".concat(n," L ").concat(r," ").concat(n)).attr("class","link additional-marriage")})).call((function(e){return e.append("circle").attr("transform","translate(".concat(r+3,", ").concat(n,")")).attr("r",3).style("stroke","black").style("fill","black")}))},e}();t.KinshipChartRenderer=u},7141:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.RelativesChart=void 0;var o=n(1193),a=n(284),s=n(359),u=n(4952),l=n(8778),c=function(){function e(e,t){this.fam=e,this.childId=t}return e.prototype.getId=function(){return this.fam.getId()},e.prototype.getFather=function(){return this.fam.getFather()},e.prototype.getMother=function(){return this.fam.getMother()},e.prototype.getChildren=function(){var e=i([],this.fam.getChildren(),!0),t=e.indexOf(this.childId);return-1!==t&&e.splice(t,1),e},e}(),f=function(){function e(e,t){this.data=e,this.childId=t}return e.prototype.getIndi=function(e){return this.data.getIndi(e)},e.prototype.getFam=function(e){return new c(this.data.getFam(e),this.childId)},e}(),d=function(){function e(e){this.options=r({},e),this.options.idGenerator=this.options.idGenerator||new a.IdGenerator,this.util=new l.ChartUtil(this.options)}return e.prototype.layOutAncestorDescendants=function(e,t){var n=this,i=new Map;return e.eachAfter((function(e){var t,o;if(e.parent){var a=r({},n.options);a.startFam=e.data.family.id,a.startIndi=void 0;var u=e.id===e.parent.data.spouseParentNodeId?e.parent.data.spouse.id:e.parent.data.indi.id;a.data=new f(a.data,u),a.baseGeneration=(n.options.baseGeneration||0)-e.depth;var c=(0,s.layOutDescendants)(a);e.data.id=c[0].id,void 0!==(null===(t=e.data.indi)||void 0===t?void 0:t.expander)&&(c[0].data.indi.expander=e.data.indi.expander),void 0!==(null===(o=e.data.spouse)||void 0===o?void 0:o.expander)&&(c[0].data.spouse.expander=e.data.spouse.expander);var d=(0,l.getChartInfoWithoutMargin)(c),h=(e.children||[]).map((function(e){return i.get(e.data.id)})).map((function(e){return e.height})).reduce((function(e,t){return e+t+l.V_SPACING}),0),p={descendantNodes:c,width:d.size[0],height:d.size[1]+h,x:d.origin[0],y:d.origin[1]+h};i.set(e.data.id,p)}})),e.each((function(e){if(e.parent){var t=i.get(e.data.id),n=i.get(e.parent.data.id);t.left=n&&!n.middle?n.left:e.parent.data.indiParentNodeId===e.id,t.middle=(!n||n.middle)&&1===e.parent.children.length}})),e.each((function(e){var n=i.get(e.data.id),r=n?n.descendantNodes[0]:t;(e.children||[]).forEach((function(e){i.get(e.data.id).descendantNodes[0].parent=r})),e.data.indiParentNodeId&&e.children&&(r.data.indiParentNodeId=e.children.find((function(t){return t.id===e.data.indiParentNodeId})).data.id),e.data.spouseParentNodeId&&e.children&&(r.data.spouseParentNodeId=e.children.find((function(t){return t.id===e.data.spouseParentNodeId})).data.id)})),e.each((function(e){var n=i.get(e.data.id),r=n?n.descendantNodes[0]:t,o=e.children&&e.children.find((function(t){return t.id===e.data.indiParentNodeId})),a=e.children&&e.children.find((function(t){return t.id===e.data.spouseParentNodeId})),s=r.x,c=r.y,f=r.data.width,d=r.data.height,h=r.data.indi?r.data.indi.width:0,p=r.data.spouse?r.data.spouse.width:0;if(o){var m=(_=(w=i.get(o.data.id)).descendantNodes[0]).data,g=a?i.get(a.data.id).height+l.V_SPACING:0,y=s+w.x-f/2+h/2+(w.left?-w.width-l.H_SPACING:l.H_SPACING),v=c+w.y-d/2-w.height+(w.left?-l.V_SPACING:-g-l.V_SPACING);w.descendantNodes.forEach((function(e){e.x+=y,e.y+=v}));var b=h/2-f/2+m.width/2-(m.indi?m.indi.width:m.spouse.width);w.middle?_.x=0:!n||n.middle?_.x=-f/2-m.width/2+h-l.H_SPACING/2:w.left?_.x=s+(0,u.min)([f/2-m.width/2-p/2-l.H_SPACING,b]):_.x=s+(0,u.max)([m.width/2-f/2,b])}if(a){m=(_=(w=i.get(a.data.id)).descendantNodes[0]).data;var w,_,x=o?i.get(o.data.id).height+l.V_SPACING:0,E=s+w.x+f/2-p/2+(w.left?-w.width-l.H_SPACING:l.H_SPACING),k=c+w.y-d/2-w.height+(w.left?-x-l.V_SPACING:-l.V_SPACING);w.descendantNodes.forEach((function(e){e.x+=E,e.y+=k}));b=f/2-p/2+m.width/2-(m.indi?m.indi.width:m.spouse.width);w.middle?_.x=0:!n||n.middle?_.x=f/2+m.width/2-p+l.H_SPACING/2:w.left?_.x=s+(0,u.min)([f/2-m.width/2,b]):_.x=s+(0,u.max)([m.width/2-f/2+h/2+l.H_SPACING,b])}})),Array.from(i.values()).map((function(e){return e.descendantNodes})).reduce((function(e,t){return e.concat(t)}),[])},e.prototype.render=function(){var e,t,n,r,i=(0,s.layOutDescendants)(this.options),a=Object.assign({},this.options,{idGenerator:void 0}),u=(0,o.getAncestorsTree)(a);void 0!==(null===(e=u.data.indi)||void 0===e?void 0:e.expander)&&(i[0].data.indi.expander=null===(t=u.data.indi)||void 0===t?void 0:t.expander),void 0!==(null===(n=u.data.spouse)||void 0===n?void 0:n.expander)&&(i[0].data.spouse.expander=null===(r=u.data.spouse)||void 0===r?void 0:r.expander);var c=this.layOutAncestorDescendants(u,i[0]),f=i.concat(c),d=this.util.renderChart(f),h=(0,l.getChartInfo)(f);return this.util.updateSvgDimensions(h),Object.assign(h,{animationPromise:d})},e}();t.RelativesChart=d},3338:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createChart=function(e){return new a(e)};var r=n(1688),i=n(8093),o=n(1697);var a=function(){function e(e){this.options=e,this.initialRender=!0,this.collapsedIndi=new Set,this.collapsedSpouse=new Set,this.collapsedFamily=new Set}return e.prototype.render=function(e){var t=this;void 0===e&&(e={}),this.chartOptions=function(e,t,n){var r=new o.JsonDataProvider(e.json),i=e.indiUrl?function(t){return e.indiUrl.replace("${id}",t)}:void 0,a=e.famUrl?function(t){return e.famUrl.replace("${id}",t)}:void 0;t.startIndi||t.startFam||(t.startIndi=e.json.indis[0].id);var s=!n.initialRender&&e.animate;return{data:r,renderer:new e.renderer({data:r,indiHrefFunc:i,famHrefFunc:a,indiCallback:e.indiCallback,famCallback:e.famCallback,horizontal:e.horizontal,colors:e.colors,animate:s,locale:e.locale}),startIndi:t.startIndi,startFam:t.startFam,svgSelector:e.svgSelector||"svg",horizontal:e.horizontal,baseGeneration:t.baseGeneration,animate:s,expanders:e.expanders}}(this.options,e,{initialRender:this.initialRender}),this.chartOptions.collapsedFamily=this.collapsedFamily,this.chartOptions.collapsedIndi=this.collapsedIndi,this.chartOptions.collapsedSpouse=this.collapsedSpouse,this.chartOptions.expanderCallback=function(n,r){return t.expanderCallback(n,r,e)},this.initialRender=!1;var n=new this.options.chartType(this.chartOptions).render();return!1!==this.options.updateSvgSize&&(0,r.select)(this.chartOptions.svgSelector).attr("width",n.size[0]).attr("height",n.size[1]),n},e.prototype.expanderCallback=function(e,t,n){var r=t===i.ExpanderDirection.FAMILY?this.collapsedFamily:t===i.ExpanderDirection.INDI?this.collapsedIndi:this.collapsedSpouse;r.has(e)?r.delete(e):r.add(e),this.render(n)},e.prototype.setData=function(e){this.options.json=e},e}()},6675:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleRenderer=void 0;var i=n(1688),o=n(5260);function a(e){var t=(0,i.select)("svg").append("g").attr("class","simple node"),n=t.append("text").attr("class","name").text(e).node().getComputedTextLength();return t.remove(),n}function s(e){return[e.getFirstName()||"",e.getLastName()||""].join(" ")}function u(e){var t=e.getBirthDate(),n=t&&t.date&&t.date.year,r=e.getDeathDate(),i=r&&r.date&&r.date.year;return n||i?"".concat(n||""," \u2013 ").concat(i||""):""}var l=function(e){function t(t){var n=e.call(this,t)||this;return n.options=t,n}return r(t,e),t.prototype.getPreferredIndiSize=function(e){var t=this.options.data.getIndi(e),n=u(t);return[Math.max(a(s(t))+8,a(n),50),n?41:27]},t.prototype.render=function(e,t){var n=this,r=e.merge(t).append("g").attr("class","simple");this.renderIndi(r,(function(e){return e.indi}));var i=r.filter((function(e){return!!e.data.spouse})).append("g").attr("transform",(function(e){return n.options.horizontal?"translate(0, ".concat(e.data.indi.height,")"):"translate(".concat(e.data.indi.width,", 0)")}));this.renderIndi(i,(function(e){return e.spouse}))},t.prototype.getCss=function(){return"\n.simple text {\n font: 12px sans-serif;\n}\n\n.simple .name {\n font-weight: bold;\n}\n\n.simple rect {\n fill: #fff;\n stroke: black;\n}\n\n.link {\n fill: none;\n stroke: #000;\n stroke-width: 1px;\n}\n\n.additional-marriage {\n stroke-dasharray: 2;\n}"},t.prototype.renderIndi=function(e,t){var n=this,r=this.options.indiHrefFunc?e.append("a").attr("href",(function(e){return n.options.indiHrefFunc(t(e.data).id)})):e;r.append("rect").attr("width",(function(e){return t(e.data).width})).attr("height",(function(e){return t(e.data).height})),r.append("text").attr("text-anchor","middle").attr("class","name").attr("transform",(function(e){return"translate(".concat(t(e.data).width/2,", 17)")})).text((function(e){return s(n.options.data.getIndi(t(e.data).id))})),r.append("text").attr("text-anchor","middle").attr("class","details").attr("transform",(function(e){return"translate(".concat(t(e.data).width/2,", 33)")})).text((function(e){return u(n.options.data.getIndi(t(e.data).id))}))},t}(o.CompositeRenderer);t.SimpleRenderer=l},4488:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nonEmpty=function(e){return!(!e||!e.length)},t.last=function(e){return e[e.length-1]},t.zip=function(e,t){return e.map((function(e,n){return[e,t[n]]}))},t.points2pathd=function(e){for(var t="M ".concat(e[0].x," ").concat(e[0].y," L"),n=0,r=e.slice(1);n<r.length;n++){var i=r[n];t+=" ".concat(i.x," ").concat(i.y)}return t}},8966:function(e){e.exports=function(){"use strict";function e(e,t){this.flags=e,this.cursor=t}function t(t,n){return new e(t,n)}function n(e){this.xs=[e],this.top=0}function r(e){return new n(e)}function i(){this.depth=0,this.stack=r({node:null,index:-1})}function o(){return new i}function a(){this.break=!1,this.skip=!1,this.remove=!1,this.replace=null}function s(){return new a}function u(e){return e&&0!==e.length}function l(e,n,i){for(var a=s(),l=o(),c=t(a,l),f=r(e),d=Object.assign({},e);!f.isEmpty();){var h=f.pop();if(h!==d){if(a.reset(),n(h,c),a.break)break;if(!a.remove&&(l.moveNext(),!a.skip)){a.replace&&(h=a.replace);var p=i(h);u(p)&&(f.push(d),f.pushArrayReverse(p),l.moveDown(h))}}else l.moveUp()}}function c(e,n,i){for(var a=s(),l=o(),c=t(a,l),f=r(e),d=r(null);!f.isEmpty();){var h=f.peek(),p=d.peek(),m=i(h);if(a.reset(),h!==p&&u(m))d.push(h),l.moveDown(h),f.pushArrayReverse(m);else{if(h===p&&(d.pop(),l.moveUp()),f.pop(),n(h,c),a.break)break;if(a.remove)continue;l.moveNext()}}}e.prototype={skip:function(){this.flags.skip=!0},break:function(){this.flags.break=!0},remove:function(){this.flags.remove=!0},replace:function(e){this.flags.replace=e},get parent(){return this.cursor.parent},get depth(){return this.cursor.depth},get level(){return this.cursor.depth+1},get index(){return this.cursor.index}},n.prototype={push:function(e){this.top++,this.top<this.xs.length?this.xs[this.top]=e:this.xs.push(e)},pushArrayReverse:function(e){for(var t=e.length-1;t>=0;t--)this.push(e[t])},pop:function(){var e=this.peek();return this.top--,e},peek:function(){return this.xs[this.top]},isEmpty:function(){return-1===this.top}},i.prototype={moveDown:function(e){this.depth++,this.stack.push({node:e,index:0})},moveUp:function(){this.depth--,this.stack.pop()},moveNext:function(){this.stack.peek().index++},get parent(){return this.stack.peek().node},get index(){return this.stack.peek().index}},a.prototype={reset:function(){this.break=!1,this.skip=!1,this.remove=!1,this.replace=null}};var f=32768;function d(e){this.xs=[e],this.top=0,this.maxLength=0}function h(e){return new d(e)}function p(){this.depth=0,this.index=-1,this.queue=h({node:null,arity:1}),this.levelNodes=1,this.nextLevelNodes=0}function m(){return new p}function g(e,n,r){for(var i=s(),o=m(),a=t(i,o),l=h(e);!l.isEmpty();){var c=l.dequeue();if(i.reset(),n(c,a),i.break)break;if(!i.remove&&(o.moveNext(),i.replace&&(c=i.replace),!i.skip)){var f=r(c);u(f)&&(l.enqueueMultiple(f),o.store(c,f.length))}o.moveForward()}}d.prototype={enqueue:function(e){this.xs.push(e)},enqueueMultiple:function(e){for(var t=0,n=e.length;t<n;t++)this.enqueue(e[t])},dequeue:function(){var e=this.peek();return this.top++,this.top===f&&(this.xs=this.xs.slice(this.top),this.top=0),e},peek:function(){return this.xs[this.top]},isEmpty:function(){return this.top===this.xs.length}},p.prototype={store:function(e,t){this.queue.enqueue({node:e,arity:t}),this.nextLevelNodes+=t},moveNext:function(){this.index++},moveForward:function(){this.queue.peek().arity--,this.levelNodes--,0===this.queue.peek().arity&&(this.index=0,this.queue.dequeue()),0===this.levelNodes&&(this.depth++,this.levelNodes=this.nextLevelNodes,this.nextLevelNodes=0)},get parent(){return this.queue.peek().node}};var y=function(e){return e.children};function v(e,t,n){if(null!=e){var r=(n=n||{}).order||"pre",i=n.getChildren||y;"pre"===r?l(e,t,i):"post"===r?c(e,t,i):"bfs"===r&&g(e,t,i)}}return v}()},5333:(e,t,n)=>{"use strict";var r=n(859);var i=n(7017);var o=n(7911);var a=n(1928);var s=n(8046);var u=n(5198);var l=n(8712);var c=n(9823);var f=n(6644);var d=n(6903);var h=n(9680);var p=n(7057);var m=n(7210);var g=n(2097);var y=n(7692);var v=n(1845);var b=n(9674);var w=n(1045);var _=n(3247);var x=n(4e3);var E=n(6185);Object.defineProperty(t,"$x",{enumerable:!0,get:function(){return E.StringUtils}})},859:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserManager=void 0;var r=n(6185),i=n(3247),o=n(1845),a=function(){function e(){}return e.prototype.getCurrentUrl=function(){return window.location.href},e.prototype.isDocumentLoaded=function(){return"complete"===document.readyState},e.prototype.isCookie=function(e){return void 0!==this.getCookie(e)},e.prototype.setCookie=function(e,t,n,o,a,s){if(void 0===n&&(n=""),void 0===o&&(o="/"),void 0===a&&(a=""),void 0===s&&(s=!1),!r.StringUtils.isString(e)||r.StringUtils.isEmpty(e))throw new Error("key must be defined");if(void 0!==t&&null!==t||(t=""),!r.StringUtils.isString(t))throw new Error("value must be a string");if(i.NumericUtils.isNumeric(n)){var u=n;(n=new Date).setDate(n.getDate()+u)}var l=encodeURIComponent(e)+"="+encodeURIComponent(t);return l+=n?"; expires="+n.toUTCString():"",l+=o?"; path="+o:"",l+=a?"; domain="+a:"",l+=s?"; secure":"",document.cookie=l,!0},e.prototype.getCookie=function(e){if(!r.StringUtils.isString(e)||r.StringUtils.isEmpty(e))throw new Error("key must be defined");for(var t=document.cookie.split("; "),n=/\+/g,i=0,o=t.length;i<o;i++){var a=t[i].split("="),s=a.shift()||"";if(decodeURIComponent(s.replace(n," "))===e)return decodeURIComponent(a.join("=").replace(n," "))}},e.prototype.deleteCookie=function(e,t){if(void 0===t&&(t="/"),!r.StringUtils.isString(e)||r.StringUtils.isEmpty(e))throw new Error("key must be defined");return void 0!==this.getCookie(e)&&(this.setCookie(e,"",-1,t),!0)},e.prototype.isCurrentUrlWithHashFragment=function(){return!!window.location.hash},e.prototype.getCurrentUrlHashFragment=function(){return window.location.hash?window.location.hash.substring(1):""},e.prototype.setCurrentUrlHashFragment=function(){},e.prototype.deleteCurrentUrlHashFragment=function(){},e.prototype.isCurrentUrlWithQuery=function(){},e.prototype.getCurrentUrlQueryValues=function(){},e.prototype.reload=function(){location.reload()},e.prototype.getPreferredLanguage=function(){var e="";if(o.ArrayUtils.isArray(window.navigator.languages))for(var t=0,n=window.navigator.languages;t<n.length;t++){var r=n[t];if(r.length>=2){e=r;break}}else e=(e=window.navigator.userLanguage||window.navigator.language).split(",")[0];return e.trim().substr(0,2).toLowerCase()},e.prototype.goToUrl=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=null),null==n)t?window.open(e,"_blank"):window.location.href=e;else{var r=document.createElement("form");r.action=e,r.method="POST",r.style.display="none",t&&(r.target="_blank");for(var i=0,o=Object.getOwnPropertyNames(n);i<o.length;i++){var a=o[i],s=document.createElement("input");s.type="hidden",s.name=a,s.value=n[a],r.appendChild(s)}document.body.appendChild(r),r.submit(),t&&document.body.removeChild(r)}},e.prototype.disableBackButton=function(){history.pushState(null,"",document.URL),window.addEventListener("popstate",this._onPopStatePreventBackButton)},e.prototype._onPopStatePreventBackButton=function(){history.pushState(null,"",document.URL)},e.prototype.enableBackButton=function(){window.removeEventListener("popstate",this._onPopStatePreventBackButton)},e.prototype.disableScroll=function(){},e.prototype.enableScroll=function(){},e.prototype.getScrollPosition=function(){return[window.pageXOffset,window.pageYOffset]},e.prototype.getWindowWidth=function(){return window.innerWidth||document.documentElement.clientWidth||document.getElementsByTagName("body")[0].clientWidth||-1},e.prototype.getWindowHeight=function(){return window.innerHeight||document.documentElement.clientHeight||document.getElementsByTagName("body")[0].clientHeight||-1},e.prototype.getDocumentWidth=function(){return Math.max(document.body.scrollWidth,document.body.offsetWidth,document.documentElement.clientWidth,document.documentElement.scrollWidth,document.documentElement.offsetWidth)},e.prototype.getDocumentHeight=function(){return Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)},e.prototype.scrollTo=function(e,t,n){void 0===t&&(t=600),void 0===n&&(n=null);var r=function(e){return--e*e*e+1},i=window.pageXOffset,a=window.pageYOffset,s="now"in window.performance?performance.now():(new Date).getTime(),u=this.getDocumentWidth(),l=this.getDocumentHeight(),c=this.getWindowWidth(),f=this.getWindowHeight(),d=o.ArrayUtils.isArray(e)?e[0]:e.offsetLeft,h=o.ArrayUtils.isArray(e)?e[1]:e.offsetTop,p=i,m=a;if(u>c&&(p=Math.round(u-d<c?u-c:d)),l>f&&(m=Math.round(l-h<f?l-f:h)),"requestAnimationFrame"in window==0)return window.scroll(p,m),void(n&&n());!function e(){var o="now"in window.performance?performance.now():(new Date).getTime(),u=Math.min(1,(o-s)/t),l=Math.ceil(r(u)*(p-i)+i),c=Math.ceil(r(u)*(m-a)+a);window.scroll(l,c),Math.ceil(window.pageXOffset)!==p||Math.ceil(window.pageYOffset)!==m?requestAnimationFrame(e):null!==n&&n()}()},e.prototype.copyToClipboard=function(e){return navigator.clipboard.writeText(e)},e.prototype.browseLocalFiles=function(e,t,n){!function e(r,i,o,a){if(a>=r.length)n(i,o);else if(r[a]){i.push(r[a].name);var s=new FileReader;if(s.onload=function(){"TEXT"===t?o.push(s.result):o.push(s.result.split(",",2)[1]),e(r,i,o,a+1)},s.onerror=function(){throw new Error("Error reading file")},"TEXT"===t)s.readAsText(r[a]);else{if("BASE64"!==t)throw new Error('Mode must be either "TEXT" or "BINARY"');s.readAsDataURL(r[a])}}else e(r,i,o,a+1)}(e.target.files,[],[],0)},e}();t.BrowserManager=a},7017:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTTPManager=void 0;var r=n(6185),i=n(4e3),o=n(1845),a=n(7210),s=n(1928),u=n(7911),l=function(){function e(e){if(void 0===e&&(e=!0),this.baseUrl="",this.asynchronous=!0,this.timeout=0,this.isOnlyHttps=!0,this.internetCheckLocations=["https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js","https://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.8.3.js","https://code.jquery.com/jquery-3.2.1.slim.min.js"],this._queues=[],this._globalPostParams={},"boolean"!=typeof e)throw new Error("asynchronous is not boolean");this.asynchronous=e}return e.prototype.setGlobalPostParam=function(e,t){if(r.StringUtils.isEmpty(e)||r.StringUtils.isEmpty(t))throw new Error("parameterName and value must be non empty strings");this._globalPostParams[e]=t},e.prototype.isGlobalPostParam=function(e){if(r.StringUtils.isEmpty(e))throw new Error("parameterName must be a non empty string");return Object.keys(this._globalPostParams).indexOf(e)>=0},e.prototype.getGlobalPostParam=function(e){if(!this.isGlobalPostParam(e))throw new Error("parameterName does not exist: "+e);return this._globalPostParams[e]},e.prototype.deleteGlobalPostParam=function(e){""!==this.getGlobalPostParam(e)&&delete this._globalPostParams[e]},e.prototype.createQueue=function(e){if(r.StringUtils.isEmpty(e))throw new Error("name must be a non empty string");for(var t=0,n=this._queues;t<n.length;t++)if(n[t].name===e)throw new Error("queue "+e+" already exists");this._queues.push({name:e,isRunning:!1,pendingRequests:[]})},e.prototype.countQueues=function(){return this._queues.length},e.prototype.isQueueRunning=function(e){if(r.StringUtils.isEmpty(e))throw new Error("name must be a non empty string");for(var t=0,n=this._queues;t<n.length;t++){var i=n[t];if(i.name===e)return i.isRunning}throw new Error("queue "+e+" does not exist")},e.prototype.deleteQueue=function(e){if(r.StringUtils.isEmpty(e))throw new Error("name must be a non empty string");for(var t=0;t<this._queues.length;t++)if(this._queues[t].name===e){if(this._queues[t].isRunning)throw new Error("queue "+e+" is currently running");return void this._queues.splice(t,1)}throw new Error("queue "+e+" does not exist")},e.prototype.generateUrlQueryString=function(e){var t="",n=[],o=[];if(i.ObjectUtils.isObject(e)&&i.ObjectUtils.getKeys(e).length>0){if(e instanceof a.HashMapObject)n=e.getKeys(),o=e.getValues();else{n=Object.getOwnPropertyNames(e);for(var s=0;s<n.length;s++)o.push(e[n[s]])}for(s=0;s<n.length;s++)t+="&"+encodeURIComponent(n[s])+"="+encodeURIComponent(r.StringUtils.isString(o[s])?o[s]:JSON.stringify(o[s]));return t.substring(1,t.length)}throw new Error("keyValuePairs must be a HashMapObject or a non empty Object")},e.prototype.isInternetAvailable=function(e,t){var n=this;if("function"!=typeof e||"function"!=typeof t)throw new Error("params must be functions");if(this.internetCheckLocations.length<=0)throw new Error("no check locations specified");var i=function(o){if(o.length<=0)return t();var a=o.shift();if(!r.StringUtils.isUrl(a))throw new Error("invalid check url : "+a);n.urlExists(String(a+"?r="+r.StringUtils.generateRandom(15,15)),e,(function(){return i(o)}))};!1===navigator.onLine?t():i(this.internetCheckLocations.slice(0))},e.prototype.urlExists=function(e,t,n){if(!r.StringUtils.isString(e))throw new Error("url must be a string");if("function"!=typeof t||"function"!=typeof n)throw new Error("params must be functions");var i=this._composeUrl(this.baseUrl,e);if(r.StringUtils.isUrl(i)){var o=new s.HTTPManagerGetRequest(i);o.successCallback=function(){return t()},o.errorCallback=function(){return n()},this.execute(o)}else n()},e.prototype.getUrlHeaders=function(t,n,i){var o=this,a=this._composeUrl(this.baseUrl,t);if(!r.StringUtils.isString(a))throw new Error("url must be a string");if("function"!=typeof n||"function"!=typeof i)throw new Error("params must be functions");if(!r.StringUtils.isUrl(a))throw new Error("invalid url "+a);var s=new XMLHttpRequest;this.timeout>0&&(s.timeout=this.timeout),s.open("GET",a,this.asynchronous),s.onload=function(){return n(s.getAllResponseHeaders().split("\n"))},s.onerror=function(){return i(s.statusText,s.status)},s.ontimeout=function(){return i(o.timeout+e.ERROR_TIMEOUT,408)},this._executeXmlHttprequestSend(s,a)},e.prototype.execute=function(t,n,i){var o=this;void 0===n&&(n=null),void 0===i&&(i=null);var l=this._generateValidRequestsList(t);if(null!==n&&!(n instanceof Function)||null!==i&&!(i instanceof Function))throw new Error("finishedCallback and progressCallback must be functions");for(var c=0,f=!1,d=[],h=function(e,t,r,a,s){var h=e.request,p=o._composeUrl(o.baseUrl,h.url),m=t;if(h.resultFormat===u.HTTPManagerBaseRequest.JSON)try{m=JSON.parse(t)}catch(e){r||(r=!0,a="Could not parse request result as a json string")}c++,d[e.index]={url:p,response:m,isError:r,errorMsg:a,code:s},r?(f=!0,h.errorCallback(a,s,t)):h.successCallback(m),h.finallyCallback(),null!==i&&i(p,l.length),c>=l.length&&null!==n&&n(d,f)},p=function(t){var n,i={index:t,request:l[t]};if(!r.StringUtils.isString(l[t].url)||r.StringUtils.isEmpty(l[t].url))throw new Error("url "+t+" must be a non empty string");try{n=new XMLHttpRequest}catch(e){throw new Error("Could not initialize XMLHttpRequest. If running node, it is not natively available. We recommend npm xhr2 library that emulates XMLHttpRequest on node apps (global.XMLHttpRequest = require('xhr2'))")}(l[t].timeout>0||m.timeout>0)&&(n.timeout=l[t].timeout>0?l[t].timeout:m.timeout);var u=m._composeUrl(m.baseUrl,l[t].url),c=l[t]instanceof s.HTTPManagerGetRequest?"GET":"POST";if(n.open(c,u,m.asynchronous),n.onload=function(){n.status>=200&&n.status<400?h(i,n.responseText,!1,"",n.status):h(i,n.responseText,!0,n.statusText,n.status)},n.onerror=function(){h(i,n.responseText,!0,n.statusText,n.status)},n.ontimeout=function(){h(i,n.responseText,!0,o.timeout+e.ERROR_TIMEOUT,408)},"GET"===c&&m._executeXmlHttprequestSend(n,u),"POST"===c||Object.keys(m._globalPostParams).length>0)try{var f="POST"===c?l[t].parameters:{};if(!1===l[t].ignoreGlobalPostParams)for(var d=0,p=Object.keys(m._globalPostParams);d<p.length;d++){var g=p[d];f instanceof a.HashMapObject?f.set(g,m._globalPostParams[g]):f[g]=m._globalPostParams[g]}n.setRequestHeader("Content-type","application/x-www-form-urlencoded"),n.send(m.generateUrlQueryString(f))}catch(e){m._executeXmlHttprequestSend(n,u)}},m=this,g=0;g<l.length;g++)p(g)},e.prototype._executeXmlHttprequestSend=function(e,t){try{e.send()}catch(e){throw new Error("HTTPManager could not execute request to "+t+"\n"+e.toString())}},e.prototype._generateValidRequestsList=function(e){var t=[];if(o.ArrayUtils.isArray(e)){if(e.length<=0)throw new Error("No requests to execute");for(var n=0,i=e;n<i.length;n++){var a=i[n];r.StringUtils.isString(a)?t.push(new s.HTTPManagerGetRequest(a)):t.push(a)}}else if(r.StringUtils.isString(e)&&!r.StringUtils.isEmpty(e))t=[new s.HTTPManagerGetRequest(e)];else{if(!(e instanceof u.HTTPManagerBaseRequest))throw new Error("Invalid requests value");t=[e]}return t},e.prototype.queue=function(e,t,n){void 0===n&&(n=null);var r=this._generateValidRequestsList(e);if(null!==n&&!(n instanceof Function))throw new Error("finishedCallback and progressCallback must be functions");for(var i=0,o=this._queues;i<o.length;i++){var a=o[i];if(a.name===t){for(var u=0;u<r.length;u++)a.pendingRequests.unshift(r[u]);if(null!==n){var l=new s.HTTPManagerGetRequest("FINISHED_REQUEST_CALLBACK");l.finallyCallback=n,a.pendingRequests.unshift(l)}return void(this.isQueueRunning(t)||this._startQueue(t))}}throw new Error("queue "+t+" does not exist. Create it with createQueue()")},e.prototype._startQueue=function(e){for(var t=this,n=function(e){if(e.pendingRequests.length<=0)e.isRunning=!1;else{if("FINISHED_REQUEST_CALLBACK"===e.pendingRequests[e.pendingRequests.length-1].url){var r=e.pendingRequests.pop();e.pendingRequests.length<=0&&(e.isRunning=!1),r.finallyCallback()}e.pendingRequests.length>0&&(e.isRunning=!0,t.execute(e.pendingRequests.pop(),(function(){return n(e)})))}},r=0,i=this._queues;r<i.length;r++){var o=i[r];if(o.name===e)return void n(o)}},e.prototype.loadResourcesFromList=function(e,t,n,i,o){var a=this;if(void 0===o&&(o=null),!r.StringUtils.isString(e)||r.StringUtils.isEmpty(e))throw new Error("urlToListOfResources must be a non empty string");if(!r.StringUtils.isString(t)||r.StringUtils.isEmpty(t))throw new Error("baseUrl must be a non empty string");this.execute(e,(function(s,u){if(s[0].isError)return i(e,s[0].errorMsg,s[0].code);for(var l=[],c=r.StringUtils.getLines(s[0].response),f=0,d=c;f<d.length;f++){var h=d[f];l.push(r.StringUtils.formatPath(a._composeUrl(t,h),"/"))}a.execute(l,(function(e,t){for(var r=[],o=0,a=e;o<a.length;o++){var s=a[o];if(s.isError)return i(s.url,s.errorMsg,s.code);r.push(s.response)}n(c,r)}),o)}))},e.prototype._composeUrl=function(e,t){var n="";if(n=r.StringUtils.isEmpty(e)||"http:"===t.substr(0,5)||"https:"===t.substr(0,6)?t:r.StringUtils.replace(r.StringUtils.formatPath(e+"/"+t,"/"),["http:/","https:/"],["http://","https://"],1),this.isOnlyHttps&&"http:"===n.substr(0,5).toLowerCase())throw new Error("Non secure http requests are forbidden. Set isOnlyHttps=false to allow "+n);return n},e.ERROR_TIMEOUT=" ms Timeout reached",e}();t.HTTPManager=l},5198:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalizationManager=void 0;var r=n(6185),i=n(1845),o=n(2097),a=function(){function e(){this.missingKeyFormat="$exception",this.wildCardsFormat="{N}",this.isBundleMandatory=!1,this._initialized=!1,this._locales=[],this._languages=[],this._activeBundle="",this._activeLocation="",this._definedLocations=[],this._loadedTranslations={},this._filesManager=null,this._httpManager=null}return e.prototype.isInitialized=function(){return this._initialized},e.prototype.isLocaleLoaded=function(e){return this._locales.indexOf(e)>=0},e.prototype.isLanguageLoaded=function(e){if(2!==e.length)throw new Error("language must be a valid 2 digit value");return this._languages.indexOf(e)>=0},e.prototype.initialize=function(e,t,n,o,a){var s=this;if(void 0===o&&(o=null),void 0===a&&(a=null),e?this._httpManager=e:this._filesManager=e,this._locales=[],this._languages=[],this._activeBundle="",this._activeLocation="",this._definedLocations=n,this._loadedTranslations={},!i.ArrayUtils.isArray(n)||n.length<=0)throw new Error("Locations must be an array of objects");for(var u=0,l=n;u<l.length;u++){var c=l[u];if(!c.label||r.StringUtils.isEmpty(c.label)||!c.path||r.StringUtils.isEmpty(c.path)||!c.bundles||!i.ArrayUtils.isArray(c.bundles))throw new Error("Invalid locations specified")}this._loadData(t,n.map((function(e){return{label:e.label,bundles:e.bundles}})),(function(e){s._initialized=!0,null!==o&&o(e)}),a)},e.prototype.loadLocales=function(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!this._initialized)throw new Error("LocalizationManager not initialized. Call initialize() before loading more locales");this._loadData(e,this._definedLocations.map((function(e){return{label:e.label,bundles:e.bundles}})),t,n)},e.prototype.loadBundles=function(e,t,n,r){if(void 0===t&&(t=""),void 0===n&&(n=null),void 0===r&&(r=null),!i.ArrayUtils.isArray(e)||0===e.length)throw new Error("no bundles specified to load on "+t+" location");if(!this._initialized)throw new Error("LocalizationManager not initialized. Call initialize() before loading more bundles to a location");""===t&&(t=this._activeLocation),this._loadData(this._locales,[{label:t,bundles:e}],n,r)},e.prototype._loadData=function(e,t,n,o){if(void 0===n&&(n=null),void 0===o&&(o=null),!i.ArrayUtils.isArray(e)||e.length<=0)throw new Error("no locales defined");for(var a=[],s=[],u=0,l=t;u<l.length;u++)for(var c=l[u],f=0,d=c.bundles;f<d.length;f++)for(var h=d[f],p=0,m=e;p<m.length;p++){for(var g=m[p],y=!1,v=0,b=this._definedLocations;v<b.length;v++){var w=b[v];if(w.label===c.label){y=!0,s.push({locale:g,bundle:h,location:c.label}),a.push(r.StringUtils.replace(w.path,["$locale","$bundle"],[g,h]));break}}if(!y)throw new Error("Undefined location: "+c.label)}this._locales=this._locales.concat(e),this._locales=i.ArrayUtils.removeDuplicateElements(this._locales),this._languages=this._locales.map((function(e){return e.substr(0,2)})),""===this._activeLocation&&(this._activeLocation=t[t.length-1].label),null!==this._filesManager||this._loadDataFromUrls(a,s,n,o)},e.prototype._loadDataFromUrls=function(e,t,n,i){var o=this;void 0===n&&(n=null),void 0===i&&(i=null);var a=function(e){void 0===e&&(e=[]),t.length>0&&(o._activeBundle=t[t.length-1].bundle),null!==n&&n(e)};e.length<=0?a():this._httpManager.execute(e,(function(n,i){for(var s=[],u=0;u<n.length;u++)if(n[u].isError)s.push({path:n[u].url,errorMsg:n[u].errorMsg,errorCode:n[u].code});else{var l=t[u].locale,c=t[u].bundle,f=t[u].location,d=r.StringUtils.getPathExtension(e[u]);o._loadedTranslations.hasOwnProperty(f)||(o._loadedTranslations[f]={}),o._loadedTranslations[f].hasOwnProperty(l)||(o._loadedTranslations[f][l]={}),o._loadedTranslations[f][l][c]="json"===d?o.parseJson(n[u].response):o.parseProperties(n[u].response)}a(s)}),(function(e,t){null!==i&&i(e,t)}))},e.prototype.locales=function(){return this._locales},e.prototype.languages=function(){return this._languages},e.prototype.activeBundle=function(){return this._activeBundle},e.prototype.primaryLocale=function(){if(!this._initialized)throw new Error("LocalizationManager not initialized");return this._locales[0]},e.prototype.primaryLanguage=function(){if(!this._initialized)throw new Error("LocalizationManager not initialized");return this._languages[0]},e.prototype.setActiveBundle=function(e){for(var t=0,n=Object.keys(this._loadedTranslations);t<n.length;t++)for(var r=n[t],i=0,o=Object.keys(this._loadedTranslations[r]);i<o.length;i++){var a=o[i];if(Object.keys(this._loadedTranslations[r][a]).indexOf(e)>=0)return this._activeBundle=e,void(this._activeLocation=r)}throw new Error("Bundle <"+e+"> not loaded")},e.prototype.setPrimaryLocale=function(e){if(!r.StringUtils.isString(e))throw new Error("Invalid locale value");if(!this.isLocaleLoaded(e))throw new Error(e+" not loaded");for(var t=[e],n=0,i=this._locales;n<i.length;n++){var o=i[n];o!==e&&t.push(o)}this._locales=t,this._languages=this._locales.map((function(e){return e.substr(0,2)}))},e.prototype.setPrimaryLocales=function(e){if(!i.ArrayUtils.isArray(e)||i.ArrayUtils.hasDuplicateElements(e)||e.length<=0)throw new Error("locales must be non empty string array with no duplicate elements");for(var t=e.length-1;t>=0;t--)this.setPrimaryLocale(e[t])},e.prototype.setPrimaryLanguage=function(e){for(var t=0,n=this._locales;t<n.length;t++){var r=n[t];if(r.substr(0,2)===e)return this.setPrimaryLocale(r)}throw new Error(e+" not loaded")},e.prototype.setPrimaryLanguages=function(e){if(!i.ArrayUtils.isArray(e)||i.ArrayUtils.hasDuplicateElements(e)||e.length<=0)throw new Error("languages must be non empty string array with no duplicate elements");for(var t=e.length-1;t>=0;t--)this.setPrimaryLanguage(e[t])},e.prototype.setLocalesOrder=function(e){if(!i.ArrayUtils.isArray(e))throw new Error("locales must be an array");if(e.length!==this._locales.length)throw new Error("locales must contain all the currently loaded locales");for(var t=0,n=e;t<n.length;t++){var r=n[t];if(!this.isLocaleLoaded(r))throw new Error(r+" not loaded")}this._locales=e,this._languages=this._locales.map((function(e){return e.substr(0,2)}))},e.prototype.get=function(e,t,n,i){if(void 0===t&&(t=""),void 0===n&&(n=""),void 0===i&&(i=[]),!this._initialized)throw new Error("LocalizationManager not initialized. Call initialize() before requesting translated texts");if(""===n&&(""!==t&&t!==this._activeBundle&&this.setActiveBundle(t),n=this._activeLocation),""===t){if(this.isBundleMandatory)throw new Error("bundle is mandatory for key "+e);t=this._activeBundle}if(-1===Object.keys(this._loadedTranslations).indexOf(n))throw new Error("Location <"+n+"> not loaded");for(var o=0,a=this._locales;o<a.length;o++){var s=a[o];if(Object.keys(this._loadedTranslations[n]).indexOf(s)>=0){if(-1===Object.keys(this._loadedTranslations[n][s]).indexOf(t))throw new Error("Bundle <"+t+"> not loaded");if(Object.keys(this._loadedTranslations[n][s][t]).indexOf(e)>=0){this._activeBundle=t,this._activeLocation=n;for(var u=this._loadedTranslations[n][s][t][e],l=r.StringUtils.isString(i)?[String(i)]:i,c=0;c<l.length;c++)u=r.StringUtils.replace(u,r.StringUtils.replace(this.wildCardsFormat,"N",String(c)),l[c]);return u}}}if(this.missingKeyFormat.indexOf("$exception")>=0)throw new Error("key <"+e+"> not found on "+t+" - "+n);return this.missingKeyFormat.replace("$key",e)},e.prototype.getStartCase=function(e,t,n,i){return void 0===t&&(t=""),void 0===n&&(n=""),void 0===i&&(i=[]),r.StringUtils.formatCase(this.get(e,t,n,i),r.StringUtils.FORMAT_START_CASE)},e.prototype.getAllUpperCase=function(e,t,n,i){return void 0===t&&(t=""),void 0===n&&(n=""),void 0===i&&(i=[]),r.StringUtils.formatCase(this.get(e,t,n,i),r.StringUtils.FORMAT_ALL_UPPER_CASE)},e.prototype.getAllLowerCase=function(e,t,n,i){return void 0===t&&(t=""),void 0===n&&(n=""),void 0===i&&(i=[]),r.StringUtils.formatCase(this.get(e,t,n,i),r.StringUtils.FORMAT_ALL_LOWER_CASE)},e.prototype.getFirstUpperRestLower=function(e,t,n,i){return void 0===t&&(t=""),void 0===n&&(n=""),void 0===i&&(i=[]),r.StringUtils.formatCase(this.get(e,t,n,i),r.StringUtils.FORMAT_FIRST_UPPER_REST_LOWER)},e.prototype.parseJson=function(e){return JSON.parse(e)},e.prototype.parseProperties=function(e){for(var t={},n=new o.JavaPropertiesObject(e),r=0,i=n.getKeys();r<i.length;r++){var a=i[r];t[a]=n.get(a)}return t},e}();t.LocalizationManager=a},8712:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModelHistoryManager=void 0;var r=n(4e3),i=n(1845),o=n(6185),a=function(){function e(e){this.maxSnapshots=-1,this._snapshots=[],this._currentState=e,this._initialState=r.ObjectUtils.clone(this._currentState)}return e.prototype.setInitialState=function(){this._initialState=r.ObjectUtils.clone(this._currentState),this._snapshots=[]},Object.defineProperty(e.prototype,"get",{get:function(){return this._currentState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tags",{get:function(){return this._snapshots.map((function(e){return e.tag}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshots",{get:function(){return this._snapshots.map((function(e){return e.state}))},enumerable:!1,configurable:!0}),e.prototype.getSnapshotsByTag=function(e){var t="tags must be a non empty string array. To get the full list of snapshots, use the <snapshots> property";if(!i.ArrayUtils.isArray(e))throw new Error(t);if(e.length<=0)throw new Error(t);for(var n=[],r=0;r<this._snapshots.length;r++)e.indexOf(this._snapshots[r].tag)>=0&&n.push(this._snapshots[r].state);return n},e.prototype.saveSnapshot=function(e){if(void 0===e&&(e=""),!o.StringUtils.isString(e))throw new Error("tag must be a string");if(this._snapshots.length>0&&this._snapshots[this._snapshots.length-1].tag===e&&r.ObjectUtils.isEqualTo(this._currentState,this._snapshots[this._snapshots.length-1].state))return!1;if(this._snapshots.length<=0&&r.ObjectUtils.isEqualTo(this._currentState,this._initialState))return!1;if(this.maxSnapshots>0&&this._snapshots.length>=this.maxSnapshots){var t=this._snapshots.shift();this._initialState=t.state}return this._snapshots.push({state:r.ObjectUtils.clone(this._currentState),tag:e}),!0},Object.defineProperty(e.prototype,"isUndoPossible",{get:function(){return this._snapshots.length>0||!r.ObjectUtils.isEqualTo(this._currentState,this._initialState)},enumerable:!1,configurable:!0}),e.prototype.undo=function(e){if(void 0===e&&(e=[]),0===this._snapshots.length&&!r.ObjectUtils.isEqualTo(this._currentState,this._initialState))return this._currentState=r.ObjectUtils.clone(this._initialState),!0;if(this._snapshots.length>0){var t=this._snapshots[this._snapshots.length-1];return r.ObjectUtils.isEqualTo(this._currentState,t.state)||e.length>0&&e.indexOf(t.tag)<0?(this._snapshots.pop(),this.undo(e)):(this._currentState=r.ObjectUtils.clone(t.state),!0)}return!1},e.prototype.undoAll=function(){return!!this.isUndoPossible&&(this._currentState=r.ObjectUtils.clone(this._initialState),this._snapshots=[],!0)},e.prototype.redo=function(){},e}();t.ModelHistoryManager=a},9823:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SerializationManager=void 0;var r=n(2097),i=n(1845),o=n(4e3),a=function(){function e(){this.strictMode=!0}return e.prototype.classToJson=function(e){return JSON.stringify(e)},e.prototype.classToObject=function(){},e.prototype.javaPropertiesObjectToString=function(e){return e.toString()},e.prototype.jsonToClass=function(e,t){return this.objectToClass(JSON.parse(e),t)},e.prototype.objectToClass=function(e,t){var n=o.ObjectUtils.getKeys(e),r=t.constructor.name,a=o.ObjectUtils.getKeys(t);if(this.strictMode&&n.length!==a.length)throw new Error("(strict mode): ["+n.join(",")+"] keys do not match "+r+" props: ["+a.join(",")+"]");for(var s=0,u=n;s<u.length;s++){var l=u[s];if(t.hasOwnProperty(l)){var c=e[l];if(null!==c){if(null!==t[l]&&void 0!==t[l]){var f="<"+r+"."+l+"> was "+typeof c+" but expected to be ";if(i.ArrayUtils.isArray(t[l])){if(!i.ArrayUtils.isArray(c))throw new Error(f+"array");if(t[l].length>0){if(1!==t[l].length)throw new Error("To define a typed list, <"+r+"."+l+"> must contain only 1 default typed element");var d=t[l][0],h=o.ObjectUtils.isObject(d)&&"Object"!==d.constructor.name;t[l]=[];for(var p=0,m=c;p<m.length;p++){var g=m[p];if(h)t[l].push(this.objectToClass(g,o.ObjectUtils.clone(d)));else{if(typeof g!=typeof d)throw new Error("<"+r+"."+l+"> is defined as array of "+typeof d+" but received "+typeof g);t[l].push(g)}}continue}}if(o.ObjectUtils.isObject(t[l])){if(!o.ObjectUtils.isObject(c))throw new Error(f+t[l].constructor.name);"Object"!==t[l].constructor.name&&(c=this.objectToClass(c,t[l]))}if(typeof t[l]!=typeof c)throw new Error(f+typeof t[l])}t[l]=c}}else if(this.strictMode)throw new Error("(strict mode): <"+l+"> not found in "+r)}return t},e.prototype.stringToJavaPropertiesObject=function(e){return new r.JavaPropertiesObject(e)},e}();t.SerializationManager=a},6644:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationManager=void 0;var r=n(6185),i=n(3247),o=n(1845),a=n(4e3),s=function(){function e(){this._validationStatus=[{tag:"",status:e.OK}],this._failedMessages=[]}return e.prototype.getStatus=function(e){void 0===e&&(e="");for(var t=0,n=o.ArrayUtils.isArray(e)?e:[e],r=0,i=this._validationStatus;r<i.length;r++){var a=i[r];(""===e||n.indexOf(a.tag)>=0)&&a.status>t&&(t=a.status)}return t},e.prototype.ok=function(t){return void 0===t&&(t=""),this.getStatus(t)===e.OK},e.prototype.notOk=function(t){return void 0===t&&(t=""),this.getStatus(t)!==e.OK},e.prototype.getFirstMessage=function(e){void 0===e&&(e="");for(var t=o.ArrayUtils.isArray(e)?e:[e],n=0,r=this._failedMessages;n<r.length;n++){var i=r[n];if(""===e||null===e||o.ArrayUtils.isArray(e)&&0===e.length||t.indexOf(i.tag)>=0)return i.message}return""},e.prototype.getLastMessage=function(e){void 0===e&&(e="");for(var t=o.ArrayUtils.isArray(e)?e:[e],n=this._failedMessages.length-1;n>=0;n--)if(""===e||null===e||o.ArrayUtils.isArray(e)&&0===e.length||t.indexOf(this._failedMessages[n].tag)>=0)return this._failedMessages[n].message;return""},e.prototype.isTrue=function(e,t,n,r){return void 0===t&&(t="value is not true"),void 0===n&&(n=""),void 0===r&&(r=!1),this._updateValidationStatus(!0===e,t,n,r)},e.prototype.isBoolean=function(e,t,n,r){return void 0===t&&(t="value is not a boolean"),void 0===n&&(n=""),void 0===r&&(r=!1),this._updateValidationStatus("boolean"==typeof e,t,n,r)},e.prototype.isNumeric=function(e,t,n,r){return void 0===t&&(t="value is not a number"),void 0===n&&(n=""),void 0===r&&(r=!1),this._updateValidationStatus(i.NumericUtils.isNumeric(e),t,n,r)},e.prototype.isNumericBetween=function(e,t,n,r,o,a){return void 0===r&&(r="value is not between min and max"),void 0===o&&(o=""),void 0===a&&(a=!1),this._updateValidationStatus(i.NumericUtils.isNumeric(e)&&e>=t&&e<=n,r,o,a)},e.prototype.isString=function(e,t,n,i){return void 0===t&&(t="value is not a string"),void 0===n&&(n=""),void 0===i&&(i=!1),this._updateValidationStatus(r.StringUtils.isString(e),t,n,i)},e.prototype.isUrl=function(e,t,n,i){return void 0===t&&(t="value is not an URL"),void 0===n&&(n=""),void 0===i&&(i=!1),this._updateValidationStatus(r.StringUtils.isUrl(e),t,n,i)},e.prototype.isArray=function(e,t,n,r){return void 0===t&&(t="value is not an array"),void 0===n&&(n=""),void 0===r&&(r=!1),this._updateValidationStatus(o.ArrayUtils.isArray(e),t,n,r)},e.prototype.isObject=function(e,t,n,r){return void 0===t&&(t="value is not an object"),void 0===n&&(n=""),void 0===r&&(r=!1),this._updateValidationStatus(a.ObjectUtils.isObject(e),t,n,r)},e.prototype.isFilledIn=function(e,t,n,i,o){return void 0===t&&(t=[]),void 0===n&&(n="value is required"),void 0===i&&(i=""),void 0===o&&(o=!1),this._updateValidationStatus(!r.StringUtils.isEmpty(e,t),n,i,o)},e.prototype.isObjectWithValidProperties=function(){return!1},e.prototype.isDate=function(){return!1},e.prototype.isMail=function(){return!1},e.prototype.isEqualTo=function(e,t,n,r,i){void 0===n&&(n="values are not equal"),void 0===r&&(r=""),void 0===i&&(i=!1);var s=!1;return o.ArrayUtils.isArray(e)&&o.ArrayUtils.isArray(t)?s=o.ArrayUtils.isEqualTo(e,t):a.ObjectUtils.isObject(e)&&a.ObjectUtils.isObject(t)?s=a.ObjectUtils.isEqualTo(e,t):e===t&&(s=!0),this._updateValidationStatus(s,n,r,i)},e.prototype.isMinimumWords=function(e){return""===e},e.prototype.isNIF=function(e){return""===e},e.prototype.isMinimumLength=function(e){return""===e},e.prototype.isMaximumLength=function(e){return""===e},e.prototype.isPostalCode=function(e){return""===e},e.prototype.isPhone=function(e){return""===e},e.prototype.isHtmlFormValid=function(e){return""===e},e.prototype.reset=function(){this._validationStatus=[{tag:"",status:e.OK}],this._failedMessages=[]},e.prototype._updateValidationStatus=function(t,n,r,i){if(void 0===r&&(r=""),!t){for(var a=o.ArrayUtils.isArray(r)?r:[r],s=0,u=a;s<u.length;s++){for(var l=u[s],c=!1,f=0,d=this._validationStatus;f<d.length;f++)if(d[f].tag===l){c=!0;break}c||this._validationStatus.push({tag:String(l),status:e.OK})}for(var h=0,p=a;h<p.length;h++){l=p[h];for(var m=0;m<this._validationStatus.length;m++)if(this._validationStatus[m].tag===l){this._failedMessages.push({tag:l,message:n}),this._validationStatus[m].status=i&&this._validationStatus[m].status!=e.ERROR?e.WARNING:e.ERROR;break}}}return t},e.OK=0,e.WARNING=1,e.ERROR=2,e}();t.ValidationManager=s},7911:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTTPManagerBaseRequest=void 0;var n=function(){function e(t,n,r){void 0===n&&(n="STRING"),void 0===r&&(r=0),this.resultFormat=e.STRING,this.ignoreGlobalPostParams=!1,this.successCallback=function(){},this.errorCallback=function(){},this.finallyCallback=function(){},this.url=t,this.resultFormat=n,this.timeout=r}return e.STRING="STRING",e.JSON="JSON",e}();t.HTTPManagerBaseRequest=n},1928:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.HTTPManagerGetRequest=void 0;var i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.parameters={},t}return r(t,e),t}(n(7911).HTTPManagerBaseRequest);t.HTTPManagerGetRequest=i},8046:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.HTTPManagerPostRequest=void 0;var i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.parameters={},t}return r(t,e),t}(n(7911).HTTPManagerBaseRequest);t.HTTPManagerPostRequest=i},6903:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStrictClass=void 0;var n=function(){};t.BaseStrictClass=n},9680:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.CSVObject=void 0;var i=n(7692),o=n(6185),a=n(1845),s=function(e){function t(t,n,r,i){void 0===t&&(t=""),void 0===n&&(n=!1),void 0===r&&(r=","),void 0===i&&(i='"');var a=e.call(this)||this;if(a._hasHeaders=!1,!o.StringUtils.isString(t))throw new Error("constructor expects a string value");if(o.StringUtils.isEmpty(t))return a;for(var s=0,u=0,l=!1,c="",f=t.length,d=0;d<f;d++){var h=t.charAt(d);h!==r||l?h!==i?"\r"!==h&&"\n"!==h?c+=h:(l?c+=h:u>0&&(a._insertField(s,u,c),s++,c="",u=0),"\r"===h&&"\n"===t.substr(d+1,1)&&(l&&(c+="\n"),d++)):l&&t.substr(d+1,1)===i?(c+=h,d++):(l=!l)?c="":d=a._findNextDelimiterIndex(t,d,r,f)-1:(a._insertField(s,u,c),c="",u++)}return(""!=c||u>=a._columnsCount)&&a._insertField(s,u,c),n&&a._defineHeaders(),a}return r(t,e),t.prototype.getCell=function(t,n){var r=e.prototype.getCell.call(this,t,n);return null===r?"":r},t.prototype.setCell=function(t,n,r){if(!o.StringUtils.isString(r))throw new Error("value must be a string");return e.prototype.setCell.call(this,t,n,r)},t.isCSV=function(e){try{return new t(e).countCells()>=0}catch(n){try{return null!==e&&e instanceof t}catch(e){return!1}}},t.prototype.isEqualTo=function(e){var n=null;try{n=new t(e,this._hasHeaders)}catch(r){try{e instanceof t&&(n=e)}catch(e){}}if(null==n)throw new Error("csv does not contain valid csv data");var r=this.countRows(),i=this.countColumns();if(0===this.countCells()&&0===n.countCells())return!0;if(this._hasHeaders&&!a.ArrayUtils.isEqualTo(this.getColumnNames(),n.getColumnNames()))return!1;if(r!==n.countRows()||i!==n.countColumns())return!1;for(var o=0;o<r;o++)for(var s=0;s<i;s++){var u=this.getCell(o,s);null===u&&(u="");var l=n.getCell(o,s);if(null===l&&(l=""),u!==l)return!1}return!0},t.prototype.toString=function(e,t){void 0===e&&(e=","),void 0===t&&(t='"');var n="";if(this._hasHeaders){for(var r=[],i=0,o=this.getColumnNames();i<o.length;i++){var a=o[i];r.push(this._escapeField(a,e,t))}n+=r.join(e)+"\r\n"}for(var s=this.countRows(),u=this.countColumns(),l=0;l<s;l++){r=[];for(var c=0;c<u;c++){var f="";try{f=this._escapeField(this._cells.get(l+"-"+c),e,t)}catch(e){}r.push(f)}n+=r.join(e)+"\r\n"}return s>0?n.substring(0,n.length-2):n},t.prototype._insertField=function(e,t,n){e>=this._rowsCount&&this._rowsCount++,t>=this._columnsCount&&this._columnsCount++,this._cells.set(e+"-"+t,n)},t.prototype._escapeField=function(e,t,n){return(e.indexOf("\r")>=0||e.indexOf("\n")>=0||e.indexOf(n)>=0||e.indexOf(t)>=0)&&(e=n+(e=o.StringUtils.replace(e,[n],[n+n]))+n),e},t.prototype._findNextDelimiterIndex=function(e,t,n,r){for(var i=t+1;i<r;i++){var o=e.charAt(i);if(o===n||"\r"===o||"\n"===o)return i}return r},t.prototype._defineHeaders=function(){var e=this.getRow(0);if(a.ArrayUtils.hasDuplicateElements(e)){for(var t=0,n=[],r=a.ArrayUtils.getDuplicateElements(e),i=0,o=e;i<o.length;i++){var s=o[i];if(null===s||""===s)s="("+ ++t+")";else for(var u=0,l=r;u<l.length;u++)if(s===l[u]){s=s+"("+ ++t+")";break}n.push(s)}this.setColumnNames(n)}else this.setColumnNames(e);this.removeRow(0),this._hasHeaders=!0},t}(i.TableObject);t.CSVObject=s},7057:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeObject=void 0;var r=n(6185),i=n(3247),o=function(){function e(e){void 0===e&&(e=""),this._dateTimeString="",this._dateTimeStringExploded=[],r.StringUtils.isEmpty(e)?this._dateTimeStringExploded=this._explodeISO8601String((new Date).toISOString()):this._dateTimeStringExploded=this._explodeISO8601String(this._dateTimeString)}return e.isValidDateTime=function(e){if(r.StringUtils.isString(e)&&e.substr(-1).match(/^[a-z0-9]+$/i)&&e.match(/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/)){var t=e.split("-");if(t.length>=3){var n=new Date(Number(t[0]),Number(t[1]),Number(t[2].substr(0,2)));return n.getMonth()+1===Number(t[1])&&n.getDate()===Number(t[2].substr(0,2))&&n.getFullYear()===Number(t[0])}return!0}return"function"==typeof e},e.isEqual=function(t,n){return 0===e.compare(t,n)},e.getMonthName=function(e){if(!i.NumericUtils.isNumeric(e)||e>12||e<1)throw new Error("Provided value is not a valid month number between 1 and 12");return["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"][e-1]},e.getDayName=function(e){if(!i.NumericUtils.isNumeric(e)||e>7||e<1)throw new Error("Provided value is not a valid day number between 1 and 7");return["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"][e-1]},e.getCurrentYear=function(){return(new Date).getFullYear()},e.getCurrentMonth=function(){return(new Date).getMonth()+1},e.getCurrentDay=function(){return(new Date).getDate()},e.getCurrentDayOfWeek=function(){},e.getCurrentHour=function(){return(new Date).getHours()},e.getCurrentMinute=function(){return(new Date).getMinutes()},e.getCurrentSecond=function(){return(new Date).getSeconds()},e.getCurrentMiliSecond=function(){return Math.round((new Date).getMilliseconds()/1e3)},e.getCurrentMicroSecond=function(){},e.getCurrentTimeZoneOffset=function(){return(new Date).getTimezoneOffset()},e.compare=function(t,n){if(e.isValidDateTime(t)&&e.isValidDateTime(n)){r.StringUtils.isString(t)&&(t=new e(t)),r.StringUtils.isString(n)&&(n=new e(n)),t.setUTC(),n.setUTC();var i=t.toString(),o=n.toString();if(i===o)return 0;var a=[i,o];return a.sort(),a[0]===i?2:1}throw new Error("Provided value is not a valid ISO 8601 date time format")},e.prototype.getYear=function(){return Number(this._dateTimeStringExploded[0])},e.prototype.getMonth=function(){return Number(this._dateTimeStringExploded[1])},e.prototype.getDay=function(){return Number(this._dateTimeStringExploded[2])},e.prototype.getDayOfWeek=function(){},e.prototype.getHour=function(){return Number(this._dateTimeStringExploded[3])},e.prototype.getMinute=function(){return Number(this._dateTimeStringExploded[4])},e.prototype.getSecond=function(){return Number(this._dateTimeStringExploded[5])},e.prototype.getMiliSecond=function(){return Math.round(this.getMicroSecond()/1e3)},e.prototype.getMicroSecond=function(){return Number(this._dateTimeStringExploded[6])},e.prototype.getTimeZoneOffset=function(){return new Date(this._dateTimeString).getTimezoneOffset()},e.prototype.getFirstDayOfMonth=function(){},e.prototype.getLastDayOfMonth=function(){},e.prototype.setLocalTimeZone=function(){},e.prototype.isUTC=function(){return 0===this.getTimeZoneOffset()},e.prototype.setUTC=function(){return this._dateTimeStringExploded=this._explodeISO8601String(this._dateTimeString),this},e.prototype.toString=function(e){void 0===e&&(e="Y-M-DTH:N:S.UOffset");var t=this._dateTimeStringExploded;return e=r.StringUtils.replace(e,"Offset",t[7].substr(0)),e=r.StringUtils.replace(e,"Y",t[0]),e=r.StringUtils.replace(e,"y",t[0].substr(2)),e=r.StringUtils.replace(e,"M",t[1]),e=r.StringUtils.replace(e,"m",String(Number(t[1]))),e=r.StringUtils.replace(e,"D",t[2]),e=r.StringUtils.replace(e,"d",String(Number(t[2]))),e=r.StringUtils.replace(e,"H",t[3]),e=r.StringUtils.replace(e,"h",String(Number(t[3]))),e=r.StringUtils.replace(e,"N",t[4]),e=r.StringUtils.replace(e,"n",String(Number(t[4]))),e=r.StringUtils.replace(e,"S",t[5]),e=r.StringUtils.replace(e,"s",String(Number(t[5]))),e=r.StringUtils.replace(e,"u",r.StringUtils.pad(String(Math.min(999,Math.round(Number(t[6])/1e3))),3,"0")),r.StringUtils.replace(e,"U",r.StringUtils.pad(t[6],6,"0","RIGHT"))},e.prototype.compareTo=function(t){return e.compare(this,t)},e.prototype.isEqualTo=function(t){return 0===e.compare(this,t)},e.prototype._explodeISO8601String=function(e){var t=["","01","01","00","00","00","000000",""];"z"===e.substr(e.length-1,1).toLowerCase()&&(e=e.substr(0,e.length-1)+"+00:00");for(var n=e.split(/[+-.: TZ]/),r=0;n.length>0&&r<6;)t[r]=n.shift(),r++;var i=n.length;return 1!==i&&3!==i||(t[6]=n.shift()+"000"),2!==i&&3!==i||(t[7]=e.substr(e.length-6,1)+n[0]+":"+n[1]),t},e}();t.DateTimeObject=o},7210:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HashMapObject=void 0;var r=n(6185),i=n(4e3),o=n(1845),a=n(3247),s=function(){function e(e){if(void 0===e&&(e=null),this._keys=[],this._data={},this._length=0,null!=e)if(i.ObjectUtils.isObject(e))for(var t in e)this.set(String(t),e[t]);else{if(!o.ArrayUtils.isArray(e))throw new Error("HashMapObject: invalid data");for(var n=e.length,r=0;r<n;r++)this.set(String(r),e[r])}}return e.prototype.set=function(e,t){if(r.StringUtils.isString(e)&&""!==e.replace(/ |\n|\r|\t/gi,""))return this._data.hasOwnProperty(e)||(this._keys.push(e),this._length++),this._data[e]=t;throw new Error("HashMapObject: key must be a non empty string")},e.prototype.length=function(){return this._length},e.prototype.get=function(e){if(this._data.hasOwnProperty(e))return this._data[e];throw new Error("HashMapObject->get: key does not exist or is invalid")},e.prototype.getAt=function(e){if("number"==typeof e&&a.NumericUtils.isInteger(e)&&e>=0&&e<this._length)return this._data[this._keys[e]];throw new Error("HashMapObject->getAt: index does not exist or is invalid")},e.prototype.getKeys=function(){return this._keys},e.prototype.getValues=function(){for(var e=[],t=0;t<this._keys.length;t++)e.push(this.get(this._keys[t]));return e},e.prototype.isKey=function(e){return r.StringUtils.isString(e)&&this._data.hasOwnProperty(e)},e.prototype.remove=function(e){if(this._data.hasOwnProperty(e)){var t=this._data[e];return delete this._data[e],delete this._keys[this._keys.indexOf(e)],this._length--,t}throw this._validateKeyFormat(e),new Error("HashMapObject->rename: key does not exist "+e)},e.prototype.rename=function(e,t){if(this._validateKeyFormat(e),this._validateKeyFormat(t),this.isKey(t))throw new Error("HashMapObject->rename: newKey "+t+" already exists");if(this.isKey(e)){for(var n={},r=0;r<this._keys.length;r++)this._keys[r]==e?n[t]=this._data[e]:n[this._keys[r]]=this._data[this._keys[r]];return this._data=n,this._keys[this._keys.indexOf(e)]=t,!0}throw new Error("HashMapObject->rename: key does not exist "+e)},e.prototype.swap=function(e,t){if(this._validateKeyFormat(e),this._validateKeyFormat(t),!this.isKey(e))throw new Error("HashMapObject->swap: key1 does not exist "+e);if(!this.isKey(t))throw new Error("HashMapObject->swap: key2 does not exist "+t);for(var n={},r=this.get(e),i=this.get(t),o=0;o<this._keys.length;o++)switch(this._keys[o]){case e:n[t]=i;break;case t:n[e]=r;break;default:n[this._keys[o]]=this._data[this._keys[o]]}this._data=n;var a=this._keys.indexOf(e),s=this._keys.indexOf(t);return this._keys[a]=t,this._keys[s]=e,!0},e.prototype.sortByKey=function(t,n){switch(void 0===t&&(t=e.SORT_METHOD_STRING),void 0===n&&(n=e.SORT_ORDER_ASCENDING),t+n){case e.SORT_METHOD_STRING+e.SORT_ORDER_ASCENDING:this._keys.sort();break;case e.SORT_METHOD_STRING+e.SORT_ORDER_DESCENDING:this._keys.sort(),this._keys.reverse();break;case e.SORT_METHOD_NUMERIC+e.SORT_ORDER_ASCENDING:this._keys.sort((function(e,t){return e-t}));break;case e.SORT_METHOD_NUMERIC+e.SORT_ORDER_DESCENDING:this._keys.sort((function(e,t){return t-e}));break;default:throw new Error("HashMapObject->sortByKey: Unknown sort method or order")}return!0},e.prototype.shift=function(){if(this._length<=0)throw new Error("HashMapObject->shift: No elements");this._length--;var e=this._data[this._keys[0]];return delete this._data[this._keys[0]],this._keys.shift(),e},e.prototype.pop=function(){if(this._length<=0)throw new Error("HashMapObject->pop: No elements");this._length--;var e=this._data[this._keys[this._length]];return delete this._data[this._keys[this._length]],this._keys.pop(),e},e.prototype.reverse=function(){return this._keys.reverse(),!0},e.prototype._validateKeyFormat=function(e){if(!r.StringUtils.isString(e)||""==e.replace(/ |\n|\r|\t/gi,""))throw new Error("HashMapObject: key must be a non empty string")},e.SORT_METHOD_STRING="SORT_METHOD_STRING",e.SORT_METHOD_NUMERIC="SORT_METHOD_NUMERIC",e.SORT_ORDER_ASCENDING="SORT_ORDER_ASCENDING",e.SORT_ORDER_DESCENDING="SORT_ORDER_DESCENDING",e}();t.HashMapObject=s},2097:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.JavaPropertiesObject=void 0;var i=n(7210),o=n(6185),a=n(1845),s=n(6644),u=n(1045),l=function(e){function t(t){void 0===t&&(t="");var n=e.call(this)||this;if(!o.StringUtils.isString(t))throw new Error("value must be a string");if(""===t)return n;if(t.length<2||"="===t.substr(0,1)||t.indexOf("=")<0&&t.indexOf(":")<0)throw new Error("invalid properties format");for(var r="",i="",a=!1,s=0,l=o.StringUtils.getLines(t,[/\s+/g,/ *#.*| *!.*/g]);s<l.length;s++){var c=l[s];if(c=o.StringUtils.trimLeft(c),a)i+=u.EncodingUtils.unicodeEscapedCharsToUtf8(c);else{var f=o.StringUtils.replace(c,["\\=","\\:"],"xx"),d=Math.min((f+"=").indexOf("="),(f+":").indexOf(":"));"\\"===(r=c.substring(0,d).trim()).substr(r.length-1,1)&&(r+=" "),r=o.StringUtils.replace(r,["\\\\","\\ ","\\#","\\!","\\=","\\:"],["\\"," ","#","!","=",":"]),i=o.StringUtils.trimLeft(c.substring(d+1,c.length))}"\\"==(i=o.StringUtils.replace(i,["\\\\","\\ ","\\r\\n","\\n","\\t"],["\\u005C"," ","\r\n","\n","\t"])).substr(i.length-1)?(i=i.substring(0,i.length-1),a=!0):(a=!1,i=u.EncodingUtils.unicodeEscapedCharsToUtf8(i)),n._data.hasOwnProperty(r)||n._keys.push(r),n._data[r]=i}return n._length=n._keys.length,n}return r(t,e),t.isJavaProperties=function(e){try{return new t(e).length()>=0}catch(n){try{return null!=e&&e instanceof t}catch(e){return!1}}},t.prototype.isEqualTo=function(e,n){void 0===n&&(n=!1);var r=null;try{r=new t(e)}catch(n){try{e instanceof t&&(r=e)}catch(e){}}if(null==r)throw new Error("properties does not contain valid java properties data");var i=this.getKeys(),o=r.getKeys();if(i.length!=o.length||n&&!a.ArrayUtils.isEqualTo(i,o))return!1;for(var u=new s.ValidationManager,l=0,c=i;l<c.length;l++){var f=c[l];if(!n&&!r.isKey(f))return!1;if(!u.isEqualTo(this.get(f),r.get(f)))return!1}return!0},t.prototype.toString=function(){for(var e=[],t=this.getKeys(),n=t.length,r=0;r<n;r++){var i=o.StringUtils.replace(t[r],["\\"," ","#","!","=",":"],["\\\\","\\ ","\\#","\\!","\\=","\\:"]),a=o.StringUtils.replace(this.get(t[r]),["\\"," ","\r\n","\n","\t"],["\\\\","\\ ","\\r\\n","\\n","\\t"]);e.push(i+"="+u.EncodingUtils.utf8ToUnicodeEscapedChars(a))}return e.join("\r\n")},t}(i.HashMapObject);t.JavaPropertiesObject=l},7692:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableObject=void 0;var r=n(6185),i=n(1845),o=n(3247),a=n(7210),s=function(){function e(e,t){if(void 0===e&&(e=0),void 0===t&&(t=0),this._columnsCount=0,this._rowsCount=0,!(o.NumericUtils.isInteger(e)&&e>=0))throw new Error("constructor rows must be a positive integer");if(this._rowsCount=e,o.NumericUtils.isInteger(t)&&t>=0)this._columnsCount=Number(t);else{if(!i.ArrayUtils.isArray(t))throw new Error("constructor columns must be an integer or an array of strings");this._columnsCount=t.length,this.setColumnNames(t)}if(this._columnsCount+this._rowsCount>0&&(0==this._columnsCount||0==this._rowsCount))throw new Error("constructor columns cannot be empty if rows are positive and vice versa");this._columnNames=new a.HashMapObject,this._cells=new a.HashMapObject}return e.prototype.setColumnName=function(e,t){var n=this._validateColumnIndex(e);if(!r.StringUtils.isString(t))throw new Error("name must be a string");return this._columnNames.set(String(n),t),!0},e.prototype.setColumnNames=function(e){if(this._columnsCount==e.length){if(i.ArrayUtils.hasDuplicateElements(e))throw new Error("array must not contain duplicate elements");var t=e.length;this._columnNames=new a.HashMapObject;for(var n=0;n<t;n++){if(!r.StringUtils.isString(e[n]))throw new Error("List of names must be an array of strings");this._columnNames.set(String(n),e[n])}return e}throw new Error("List of names must match number of columns")},e.prototype.getColumnNames=function(){for(var e=[],t=0;t<this._columnsCount;t++){var n=String(t);e.push(this._columnNames.isKey(n)?this._columnNames.get(n):"")}return e},e.prototype.getColumnName=function(e){var t=String(this._validateColumnIndex(e));return this._columnNames.isKey(t)?this._columnNames.get(t):""},e.prototype.getColumnIndex=function(e){if(!r.StringUtils.isString(e)||""===e)throw new Error("value must be a non empty string");for(var t=0,n=this._columnNames.getKeys();t<n.length;t++){var i=n[t];if(this._columnNames.get(i)===e)return Number(i)}throw new Error("provided column name does not exist")},e.prototype.getColumn=function(e){for(var t=[],n=this._validateColumnIndex(e),r=0;r<this._rowsCount;r++)t.push(this.getCell(r,n));return t},e.prototype.addColumns=function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=-1),!i.ArrayUtils.isArray(t))throw new Error("names must be an array");if(!o.NumericUtils.isInteger(e)||e<=0)throw new Error("number must be a positive integer");if(!o.NumericUtils.isInteger(n)||n<-1||n>=this._columnsCount)throw new Error("at must be a valid column index");if(n>=0)for(var r=this._columnsCount-1;r>=n;r--){this._columnNames.isKey(String(r))&&this._columnNames.rename(String(r),String(r+e));for(var a=0;a<this._rowsCount;a++){var s=String(a)+"-"+String(r);this._cells.isKey(s)&&this._cells.rename(s,String(a)+"-"+String(r+e))}}var u=t.length;if(u>0){if(u!=e)throw new Error("names length must be the same as number");var l=n<0?this._columnsCount:n;for(r=0;r<u;r++)this._columnNames.set(String(l+r),t[r])}return this._columnsCount+=e,!0},e.prototype.setColumn=function(e,t){var n=t.length;if(n<=0)throw new Error("data must not be empty");if(this._rowsCount!=n)throw new Error("data length and number of rows must match");for(var r=this._validateColumnIndex(e),i=0;i<this._rowsCount;i++)this.setCell(i,r,t[i])},e.prototype.removeColumn=function(e){var t=this._validateColumnIndex(e);this._columnNames.isKey(String(t))&&this._columnNames.remove(String(t));for(var n=0;n<this._rowsCount;n++){var r=String(n)+"-"+String(t);this._cells.isKey(r)&&this._cells.remove(r)}for(n=t+1;n<this._columnsCount;n++){this._columnNames.isKey(String(n))&&this._columnNames.rename(String(n),String(n-1));for(var i=0;i<this._rowsCount;i++)r=String(i)+"-"+String(n),this._cells.isKey(r)&&this._cells.rename(r,String(i)+"-"+String(n-1))}this._columnsCount--,this._columnsCount<=0&&(this._rowsCount=0)},e.prototype.getCell=function(e,t){var n=this._validateRowIndex(e)+"-"+this._validateColumnIndex(t);return this._cells.isKey(n)?this._cells.get(n):null},e.prototype.setCell=function(e,t,n){var r=this._validateRowIndex(e),i=this._validateColumnIndex(t);return this._cells.set(r+"-"+i,n)},e.prototype.getRow=function(e){for(var t=[],n=this._validateRowIndex(e),r=0;r<this._columnsCount;r++)t.push(this.getCell(n,r));return t},e.prototype.addRows=function(e,t){if(void 0===t&&(t=-1),!o.NumericUtils.isInteger(e)||e<=0)throw new Error("number must be a positive integer");if(!o.NumericUtils.isInteger(t)||t<-1||t>=this._rowsCount)throw new Error("at must be a valid row index");if(t>=0)for(var n=this._rowsCount-1;n>=t;n--)for(var r=0;r<this._columnsCount;r++){var i=String(n)+"-"+String(r);this._cells.isKey(i)&&this._cells.rename(i,n+e+"-"+String(r))}return this._rowsCount+=e,!0},e.prototype.setRow=function(e,t){var n=t.length;if(n<=0)throw new Error("data must not be empty");if(this._columnsCount!=n)throw new Error("data length and number of columns must match");for(var r=this._validateRowIndex(e),i=0;i<this._columnsCount;i++)this.setCell(r,i,t[i])},e.prototype.removeRow=function(e){for(var t=this._validateRowIndex(e),n=0;n<this._columnsCount;n++){var r=String(t)+"-"+String(n);this._cells.isKey(r)&&this._cells.remove(r)}for(n=t+1;n<this._rowsCount;n++)for(var i=0;i<this._columnsCount;i++)r=String(n)+"-"+String(i),this._cells.isKey(r)&&this._cells.rename(r,String(n-1)+"-"+String(i));this._rowsCount--,this._rowsCount<=0&&(this._columnsCount=0)},e.prototype.countRows=function(){return this._rowsCount},e.prototype.countColumns=function(){return this._columnsCount},e.prototype.countCells=function(){return this._rowsCount*this._columnsCount},e.prototype._validateColumnIndex=function(e){var t=o.NumericUtils.isInteger(e)?Number(e):-1,n=this._columnNames.getValues(),i=this._columnNames.getKeys(),a=n.length;if(r.StringUtils.isString(e))for(var s=0;s<a;s++)if(e===n[s]){t=Number(i[s]);break}if(t<0||t>=this._columnsCount)throw new Error("Invalid column value");return t},e.prototype._validateRowIndex=function(e){var t=o.NumericUtils.isInteger(e)?e:-1;if(t<0||t>=this._rowsCount)throw new Error("Invalid row value");return t},e}();t.TableObject=s},1845:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayUtils=void 0;var r=n(4e3),i=n(6185),o=n(6644),a=function(){function e(){}return e.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},e.isEqualTo=function(t,n){if(!e.isArray(t)||!e.isArray(n))throw new Error("parameters must be arrays");if(t.length!=n.length)return!1;for(var i=0,o=t.length;i<o;i++)if(e.isArray(t[i])&&e.isArray(n[i])){if(!e.isEqualTo(t[i],n[i]))return!1}else if(r.ObjectUtils.isObject(t[i])&&r.ObjectUtils.isObject(n[i])){if(!r.ObjectUtils.isEqualTo(t[i],n[i]))return!1}else if(t[i]!==n[i])return!1;return!0},e.isStringFound=function(t,n,o){if(void 0===o&&(o=!0),!e.isArray(t))throw new Error("parameter must be an array");if(!i.StringUtils.isString(n))throw new Error("str is not a string");for(var a=0;a<t.length;a++){if(i.StringUtils.isString(t[a])&&(o&&t[a].indexOf(n)>=0||!o&&t[a].toLowerCase().indexOf(n.toLowerCase())>=0))return!0;if(e.isArray(t[a])&&e.isStringFound(t[a],n,o))return!0;if(r.ObjectUtils.isObject(t[a])&&r.ObjectUtils.isStringFound(t[a],n,o))return!0}return!1},e.forceNonEmptyArray=function(e,t,n){if(void 0===t&&(t=""),void 0===n&&(n="must be a non empty array"),!this.isArray(e)||e.length<=0)throw new Error(t+" "+n)},e.removeElement=function(t,n){if(!e.isArray(t))throw new Error("parameter must be an array");var r=[];if(e.isArray(n))for(var i=0;i<t.length;i++)e.isArray(t[i])&&e.isEqualTo(n,t[i])||r.push(t[i]);else for(var o=0;o<t.length;o++)n!==t[o]&&r.push(t[o]);return r},e.removeDuplicateElements=function(t){if(!e.isArray(t))throw new Error("parameter must be an array");for(var n=[],r=t.length,i=new o.ValidationManager,a=0;a<r;a++){for(var s=!1,u=n.length,l=0;l<u;l++)if(i.isEqualTo(t[a],n[l])){s=!0;break}s||n.push(t[a])}return n},e.hasDuplicateElements=function(t){if(!e.isArray(t))throw new Error("parameter must be an array");for(var n=t.length,r=new o.ValidationManager,i=0;i<n;i++)for(var a=i+1;a<n;a++)if(r.isEqualTo(t[i],t[a]))return!0;return!1},e.getDuplicateElements=function(t){if(!e.isArray(t))throw new Error("parameter must be an array");for(var n=[],r=t.length,i=new o.ValidationManager,a=0;a<r;a++)for(var s=a+1;s<r;s++)i.isEqualTo(t[a],t[s])&&n.push(t[a]);return e.removeDuplicateElements(n)},e}();t.ArrayUtils=a},9674:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConversionUtils=void 0;var r=n(6185),i=function(){function e(){}return e.stringToBase64=function(e){if(null===e||void 0===e)return"";if(!r.StringUtils.isString(e))throw new Error("ConversionUtils.stringToBase64: value is not a string");var t,n,i,o,a,s,u,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";e=function(e){var t="";e=e.replace(/\r\n/g,"\n");for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t}(e);for(var f=0;f<e.length;)o=(t=e.charCodeAt(f++))>>2,a=(3&t)<<4|(n=e.charCodeAt(f++))>>4,s=(15&n)<<2|(i=e.charCodeAt(f++))>>6,u=63&i,isNaN(n)?s=u=64:isNaN(i)&&(u=64),c=c+l.charAt(o)+l.charAt(a)+l.charAt(s)+l.charAt(u);return c},e.base64ToString=function(e){if(null===e||void 0===e)return"";if(!r.StringUtils.isString(e))throw new Error("ConversionUtils.stringToBase64: value is not a string");var t,n,i,o,a,s,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",c=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");c<e.length;)t=u.indexOf(e.charAt(c++))<<2|(o=u.indexOf(e.charAt(c++)))>>4,n=(15&o)<<4|(a=u.indexOf(e.charAt(c++)))>>2,i=(3&a)<<6|(s=u.indexOf(e.charAt(c++))),l+=String.fromCharCode(t),64!=a&&(l+=String.fromCharCode(n)),64!=s&&(l+=String.fromCharCode(i));return function(e){for(var t="",n=0,r=0,i=0;n<e.length;)if((r=e.charCodeAt(n))<128)t+=String.fromCharCode(r),n++;else if(r>191&&r<224)i=e.charCodeAt(n+1),t+=String.fromCharCode((31&r)<<6|63&i),n+=2;else{i=e.charCodeAt(n+1);var o=e.charCodeAt(n+2);t+=String.fromCharCode((15&r)<<12|(63&i)<<6|63&o),n+=3}return t}(l)},e}();t.ConversionUtils=i},1045:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EncodingUtils=void 0;var r=n(6185),i=function(){function e(){}return e.unicodeEscapedCharsToUtf8=function(e){if(r.StringUtils.isString(e))return e.replace(/\\u([\d\w]{4})/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))}));throw new Error("Specified value must be a string")},e.utf8ToUnicodeEscapedChars=function(e){if(!r.StringUtils.isString(e))throw new Error("Specified value must be a string");return r.StringUtils.isEmpty(e)?e:e.replace(/[^\0-~]/g,(function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))},e}();t.EncodingUtils=i},3247:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumericUtils=void 0;var r=n(6185),i=function(){function e(){}return e.isNumeric=function(t,n){void 0===n&&(n="");try{e._formatNumericString(t,n)}catch(e){return!1}return!0},e.isInteger=function(t){return!!e.isNumeric(t)&&String(this._formatNumericString(t)).indexOf(".")<0},e.forceNumeric=function(e,t,n){if(void 0===t&&(t=""),void 0===n&&(n="must be numeric"),!this.isNumeric(e))throw new Error(t+" "+n)},e.forcePositiveInteger=function(e,t,n){if(void 0===t&&(t=""),void 0===n&&(n="must be a positive integer"),!this.isInteger(e)||e<=0)throw new Error(t+" "+n)},e.getNumeric=function(t,n){return void 0===n&&(n=""),Number(e._formatNumericString(t,n))},e.generateRandomInteger=function(t,n){if(!e.isInteger(n)||!e.isInteger(t))throw new Error("max and min must be integers");if(n<=t)throw new Error("max must be higher than min");return Math.floor(Math.random()*(n-t+1))+t},e._formatNumericString=function(t,n){if(void 0===n&&(n=""),""!==n&&"."!==n&&","!==n)throw new Error("Invalid decimal divider");if(r.StringUtils.isString(t)){var i=-1,o=(t=t.trim().replace(/\s/g,"")).lastIndexOf(","),a=t.lastIndexOf(".");switch(n){case".":if(r.StringUtils.countStringOccurences(t,".")>1||o>=0&&a>=0&&o>a)throw new Error(e.NON_NUMERIC_ERROR);a>0&&(i=a);break;case",":if(r.StringUtils.countStringOccurences(t,",")>1||o>=0&&a>=0&&a>o)throw new Error(e.NON_NUMERIC_ERROR);o>0&&(i=o);break;default:i=Math.max(o,a)}var s=(t=t.replace(/,/g,".")).split("."),u=s.length;if("."===t.slice(-1)&&r.StringUtils.countStringOccurences(t,".")>1)throw new Error(e.NON_NUMERIC_ERROR);if(u>2){if(s[0].split("-").join("").length>3)throw new Error(e.NON_NUMERIC_ERROR);for(var l=1;l<u-1;l++)if(3!==s[l].length)throw new Error(e.NON_NUMERIC_ERROR)}t=i<0?r.StringUtils.replace(t,".",""):r.StringUtils.replace(t,".","",r.StringUtils.countStringOccurences(t,".")-1)}if(isNaN(parseFloat(t))||!isFinite(t))throw new Error(e.NON_NUMERIC_ERROR);return String(t)},e.NON_NUMERIC_ERROR="value is not numeric",e}();t.NumericUtils=i},4e3:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUtils=void 0;var r=n(1845),i=n(6185),o=n(6644),a=function(){function e(){}return e.isObject=function(e){return!(r.ArrayUtils.isArray(e)||null===e||e instanceof RegExp||"object"!=typeof e)},e.getKeys=function(t){if(!e.isObject(t))throw new Error("parameter must be an object");return Object.keys(t)},e.isEqualTo=function(t,n){var i=new o.ValidationManager;if(!e.isObject(t)||!e.isObject(n))throw new Error("parameters must be objects");var a=e.getKeys(t).sort(),s=e.getKeys(n).sort();if(!r.ArrayUtils.isEqualTo(a,s))return!1;for(var u=0;u<a.length;u++)if(!i.isEqualTo(t[a[u]],n[s[u]]))return!1;return!0},e.isStringFound=function(t,n,o){if(void 0===o&&(o=!0),!e.isObject(t))throw new Error("parameter must be an object");if(!i.StringUtils.isString(n))throw new Error("str is not a string");for(var a=0,s=e.getKeys(t);a<s.length;a++){var u=s[a];if(i.StringUtils.isString(t[u])&&(o&&t[u].indexOf(n)>=0||!o&&t[u].toLowerCase().indexOf(n.toLowerCase())>=0))return!0;if(r.ArrayUtils.isArray(t[u])&&r.ArrayUtils.isStringFound(t[u],n,o))return!0;if(e.isObject(t[u])&&e.isStringFound(t[u],n,o))return!0}return!1},e.merge=function(t,n){if(!e.isObject(t)||!e.isObject(n))throw new Error("destination and source must objects");for(var r=0,i=e.getKeys(n);r<i.length;r++){var o=i[r];t.hasOwnProperty(o)&&e.isObject(n[o])&&e.isObject(t[o])?t[o]=e.merge(t[o],n[o]):t[o]=e.clone(n[o])}return t},e.clone=function(t){return e.apply(t,(function(n){return e.isObject(n)?new t.constructor:n}))},e.apply=function(t,n){if(r.ArrayUtils.isArray(t)){for(var i=[],o=0,a=t;o<a.length;o++){var s=a[o];i.push(e.apply(s,n))}return i}if(e.isObject(t)){for(var u in i=new t.constructor,t)i[u]=e.apply(t[u],n);return i}return n(t)},e}();t.ObjectUtils=a},6185:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtils=void 0;var r=n(3247),i=n(1845),o=n(4e3),a=function(){function e(){}return e.isString=function(e){return"string"==typeof e||e instanceof String},e.forceString=function(t,n,r){if(void 0===n&&(n=""),void 0===r&&(r="must be a string"),!e.isString(t))throw new Error(n+" "+r)},e.isUrl=function(t){var n=!1;return!e.isEmpty(t)&&e.isString(t)&&(n=!!(t.length<2083&&new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i").test(t))),n},e.isEmpty=function(t,n){if(void 0===n&&(n=[]),!e.isString(t)){if(null==t||""==t)return!0;throw new Error("value is not a string")}return""===e.replace(t,n.concat([" ","\n","\r","\t"]),"")},e.isStartingWith=function(e,t){if(void 0===t&&(t=[]),!i.ArrayUtils.isArray(t))throw new Error("startingValues is not an array");for(var n=0,r=t;n<r.length;n++){var o=r[n];if(0===e.lastIndexOf(o,0))return!0}return!1},e.isEndingWith=function(e,t){if(void 0===t&&(t=[]),!i.ArrayUtils.isArray(t))throw new Error("endingValues is not an array");for(var n=0,r=t;n<r.length;n++){var o=r[n];if(""===o||-1!==e.indexOf(o,e.length-o.length))return!0}return!1},e.forceNonEmptyString=function(t,n,r){if(void 0===n&&(n=""),void 0===r&&(r="must be a non empty string"),!e.isString(t)||e.isEmpty(t))throw new Error(n+" "+r)},e.isCamelCase=function(){},e.isSnakeCase=function(){},e.replace=function(t,n,o,a){if(void 0===a&&(a=-1),!e.isString(t))throw new Error("string is not valid");if(!e.isString(n)&&!i.ArrayUtils.isArray(n))throw new Error("search is not a string or array");if(!e.isString(o)&&!i.ArrayUtils.isArray(o))throw new Error("replacement is not a string or array");if(!r.NumericUtils.isInteger(a))throw new Error("count must be a positive integer or 0");if(0===a)return t;var s=t,u=e.isString(n)?[String(n)]:n,l=e.isString(o)?[String(o)]:o;if(l.length>1&&u.length!==l.length)throw new Error("search and replacement arrays must have the same length");for(var c=0;c<u.length;c++)if(""!==u[c]){var f=1===l.length?l[0]:l[c];void 0!==f&&null!==f||(f="");for(var d=[],h=s.split(u[c]),p=0;p<h.length;p++)d.push(h[p]),p<h.length-1&&(a<0||p<a?d.push(f):d.push(u[c]));s=d.join("")}return s},e.replaceMulti=function(t,n,r,a){if(void 0===a&&(a=-1),e.isString(t))return e.replace(t,n,r,a);var s=o.ObjectUtils.clone(t);if(i.ArrayUtils.isArray(s))for(var u=0;u<s.length;u++)s[u]=e.replaceMulti(s[u],n,r,a);else if(o.ObjectUtils.isObject(s))for(var l=0,c=o.ObjectUtils.getKeys(s);l<c.length;l++){var f=c[l];s[f]=e.replaceMulti(s[f],n,r,a)}return s},e.trim=function(t,n){return void 0===n&&(n=" \n\r"),e.trimLeft(e.trimRight(t,n),n)},e.trimLeft=function(t,n){if(void 0===n&&(n=" \n\r"),!e.isString(t))throw new Error("value is not a string");return t.replace(new RegExp("^["+n+"]+"),"")},e.trimRight=function(t,n){if(void 0===n&&(n=" \n\r"),!e.isString(t))throw new Error("value is not a string");return t.replace(new RegExp("["+n+"]+$"),"")},e.pad=function(t,n,i,o){if(void 0===i&&(i="0"),void 0===o&&(o="LEFT"),!e.isString(t)||!e.isString(i)||i.length<=0)throw new Error("string and padString must be strings");if(!r.NumericUtils.isInteger(n))throw new Error("padLength is not an int");if("LEFT"!==o&&"RIGHT"!==o)throw new Error("mode must be LEFT or RIGHT");var a=t;if("RIGHT"===o)for(;a.length<n;)a+=i.substr(0,n-a.length);else for(;a.length<n;)a=i.substr(-(n-a.length))+a;return a},e.countStringOccurences=function(t,n){if(!e.isString(t)||!e.isString(n))throw new Error("value is not a string");if(""===n)throw new Error("cannot count empty string occurences");return t.split(n).length-1},e.countByCase=function(t,n){if(void 0===n&&(n=e.FORMAT_ALL_UPPER_CASE),t=e.removeAccents(t),n===e.FORMAT_ALL_UPPER_CASE)return t.replace(/[^A-Z]+/g,"").length;if(n===e.FORMAT_ALL_LOWER_CASE)return t.replace(/[^a-z]+/g,"").length;throw new Error("invalid case value")},e.countWords=function(t,n){void 0===n&&(n=" ");for(var r=0,i=e.getLines(t),o=0;o<i.length;o++)for(var a=i[o].split(n),s=0;s<a.length;s++)e.isEmpty(a[s])||r++;return r},e.countPathElements=function(t){return""==(t=0===(t=e.formatPath(t,"/")).indexOf("/")?t.substr(1):t)?0:t.split("/").length},e.limitLen=function(t,n,i){if(void 0===n&&(n=100),void 0===i&&(i=" ..."),n<=0||!r.NumericUtils.isNumeric(n))throw new Error("limit must be a positive numeric value");return e.isString(t)?t.length<=n?t:i.length>n?i.substring(0,n):t.substring(0,n-i.length)+i:""},e.getDomainFromUrl=function(t){var n=e.getHostNameFromUrl(t);return(n=n.split(".")).length>2&&n.shift(),n.join(".")},e.getHostNameFromUrl=function(t){if(e.isEmpty(t)||!e.isUrl(t))return"";var n=document.createElement("a");n.href=t;var r=(n.host.match(/\./g)||[]).length;return r<=0||r>2?"":n.host},e.getLines=function(t,n){void 0===n&&(n=[/\s+/g]);var r=[];if(!e.isString(t))return r;for(var i=t.split(/\r?\n|\n|\r/),o=0;o<i.length;o++)if(e.isString(i[o])){for(var a=i[o],s=0;s<n.length;s++)a=a.replace(n[s],"");""!=a&&r.push(i[o])}return r},e.getKeyWords=function(){},e.getPath=function(t,n,r){if(void 0===n&&(n=1),void 0===r&&(r="/"),e.isEmpty(t))return"";if("/"===(t=e.formatPath(t,"/")))return t;var i=(0===t.indexOf("/")?t.substring(1):t).split("/");if(n>i.length||n<-1)return"";for(var o=[],a=i.length-n;a<i.length;a++)o.push(i[a]);return o.length<=0?t:e.formatPath(t.substring(0,t.length-o.join("/").length-1),r)},e.getPathElement=function(t,n){if(void 0===n&&(n=-1),e.isEmpty(t))return"";var r=(t=0===(t=e.formatPath(t,"/")).indexOf("/")?t.substring(1):t).split("/");if(n>=r.length||n<-r.length)throw new Error("Invalid position specified");return n<0?r[r.length+n]:r[n]},e.getPathElementWithoutExt=function(t,n,r){void 0===n&&(n=-1),void 0===r&&(r=".");var i=e.getPathElement(t,n);return i.indexOf(r)>=0&&(i=i.substr(0,i.lastIndexOf(r))),i},e.getPathExtension=function(t,n,r){void 0===n&&(n=-1),void 0===r&&(r=".");var i=e.getPathElement(t,n);return i.indexOf(r)<0?"":i.substr(i.lastIndexOf(r)+1)},e.getSchemeFromUrl=function(t){if(null==t||void 0==t)return"";if(!e.isString(t))throw new Error("Specified value must be a string");if(!e.isUrl(t))return"";var n=t.split("://");return 2===n.length?n[0]:""},e.formatCase=function(t,n){if(!e.isString(t))throw new Error("value is not a string");if(e.isEmpty(t))return t;if(n===e.FORMAT_START_CASE)return t.split(" ").map((function(e){return(e.length>0?e[0].toUpperCase():"")+(e.length>1?e.substr(1).toLowerCase():"")})).join(" ");if(n===e.FORMAT_ALL_UPPER_CASE)return t.toUpperCase();if(n===e.FORMAT_ALL_LOWER_CASE)return t.toLowerCase();if(n===e.FORMAT_FIRST_UPPER_REST_LOWER)return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();if(n.indexOf("CAMEL_CASE")>0){var r=e.removeAccents(t).replace(/[^a-z0-9]+/gi," ").trim().split(" ");if(r.length>1)for(var i=1;i<r.length;i++)r[i]=r[i].charAt(0).toUpperCase()+r[i].slice(1);return t=r.join(""),n==e.FORMAT_UPPER_CAMEL_CASE?t.charAt(0).toUpperCase()+t.slice(1):n==e.FORMAT_LOWER_CAMEL_CASE?t.charAt(0).toLowerCase()+t.slice(1):t}throw new Error("Unknown format specified")},e.formatPath=function(t,n){if(void 0===n&&(n="/"),!e.isString(t))throw new Error("path must be a string");if("/"!==n&&"\\"!==n)throw new Error("separator must be a slash or backslash");for(t=(t=t.replace(/\//g,n)).replace(/\\/g,n);t.indexOf(n+n)>=0;)t=t.replace(n+n,n);return t.length>1&&t.substr(t.length-1)===n&&(t=t.substr(0,t.length-1)),t},e.formatUrl=function(t){if(""==t)return"";if(!e.isString(t))throw new Error("url must be a string");if(e.isEmpty(t))return t;for(t=(t=(t=(t=t.trim()).replace(/\//g,"/")).replace(/\\/g,"/")).replace(/\:\/\//g,"@@@");t.indexOf("//")>=0;)t=t.replace("//","/");return t=t.replace(/@@@/g,"://"),""===this.getSchemeFromUrl(t)&&e.isUrl("http://"+t)?"http://"+t:t},e.formatForFullTextSearch=function(t,n){if(void 0===n&&(n=" "),!e.isString(t))throw new Error("value is not a string");var r=e.replace(t,n,"");return(r=(r=e.removeAccents(r)).replace(/(?:[\0-\/:-@\[-`\{-\xA9\xAB-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u0530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u065F\u066A-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07BF\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u088F-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0965\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09E5\u09F2\u09F3\u09FA\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A65\u0A70\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AE5\u0AF0-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B65\u0B70\u0B78-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0BE5\u0BF3-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C62-\u0C65\u0C70-\u0C77\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDC\u0CDF\u0CE2-\u0CE5\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57\u0D62-\u0D65\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DE5\u0DF0-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F1F\u0F34-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u104A-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u1368\u137D-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u17DF\u17EA-\u17EF\u17FA-\u180F\u181A-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19FF\u1A17-\u1A1F\u1A55-\u1A7F\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B4F\u1B5A-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BFF\u1C24-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C8B-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u206F\u2072\u2073\u207A-\u207E\u208A-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A-\u245F\u249C-\u24E9\u2500-\u2775\u2794-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFC\u2CFE\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u3004\u3008-\u3020\u302A-\u3030\u3036\u3037\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u3191\u3196-\u319F\u31C0-\u31EF\u3200-\u321F\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6F0-\uA716\uA720\uA721\uA789\uA78A\uA7CE\uA7CF\uA7D2\uA7D4\uA7DD-\uA7F1\uA802\uA806\uA80B\uA823-\uA82F\uA836-\uA83F\uA874-\uA881\uA8B4-\uA8CF\uA8DA-\uA8F1\uA8F8-\uA8FA\uA8FC\uA8FF\uA926-\uA92F\uA947-\uA95F\uA97D-\uA983\uA9B3-\uA9CE\uA9DA-\uA9DF\uA9E5\uA9FF\uAA29-\uAA3F\uAA43\uAA4C-\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAC3-\uAADA\uAADE\uAADF\uAAEB-\uAAF1\uAAF5-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABE3-\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB1E\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD06\uDD34-\uDD3F\uDD79-\uDD89\uDD8C-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEE0\uDEFC-\uDEFF\uDF24-\uDF2C\uDF4B-\uDF4F\uDF76-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDD6F\uDD7B\uDD8B\uDD93\uDD96\uDDA2\uDDB2\uDDBA\uDDBD-\uDDBF\uDDF4-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDF7F\uDF86\uDFB1\uDFBB-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56\uDC57\uDC77\uDC78\uDC9F-\uDCA6\uDCB0-\uDCDF\uDCF3\uDCF6-\uDCFA\uDD1C-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBB\uDDD0\uDDD1\uDE01-\uDE0F\uDE14\uDE18\uDE36-\uDE3F\uDE49-\uDE5F\uDE7F\uDEA0-\uDEBF\uDEC8\uDEE5-\uDEEA\uDEF0-\uDEFF\uDF36-\uDF3F\uDF56\uDF57\uDF73-\uDF77\uDF92-\uDFA8\uDFB0-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCF9\uDD24-\uDD2F\uDD3A-\uDD3F\uDD66-\uDD6E\uDD86-\uDE5F\uDE7F\uDEAA-\uDEAF\uDEB2-\uDEC1\uDEC5-\uDEFF\uDF28-\uDF2F\uDF46-\uDF50\uDF55-\uDF6F\uDF82-\uDFAF\uDFCC-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC00-\uDC02\uDC38-\uDC51\uDC70\uDC73\uDC74\uDC76-\uDC82\uDCB0-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDD02\uDD27-\uDD35\uDD40-\uDD43\uDD45\uDD46\uDD48-\uDD4F\uDD73-\uDD75\uDD77-\uDD82\uDDB3-\uDDC0\uDDC5-\uDDCF\uDDDB\uDDDD-\uDDE0\uDDF5-\uDDFF\uDE12\uDE2C-\uDE3E\uDE41-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEDF-\uDEEF\uDEFA-\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A-\uDF3C\uDF3E-\uDF4F\uDF51-\uDF5C\uDF62-\uDF7F\uDF8A\uDF8C\uDF8D\uDF8F\uDFB6\uDFB8-\uDFD0\uDFD2\uDFD4-\uDFFF]|\uD805[\uDC35-\uDC46\uDC4B-\uDC4F\uDC5A-\uDC5E\uDC62-\uDC7F\uDCB0-\uDCC3\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDAF-\uDDD7\uDDDC-\uDDFF\uDE30-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEAB-\uDEB7\uDEB9-\uDEBF\uDECA-\uDECF\uDEE4-\uDEFF\uDF1B-\uDF2F\uDF3C-\uDF3F\uDF47-\uDFFF]|\uD806[\uDC2C-\uDC9F\uDCF3-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD30-\uDD3E\uDD40\uDD42-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD1-\uDDE0\uDDE2\uDDE4-\uDDFF\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE4F\uDE51-\uDE5B\uDE8A-\uDE9C\uDE9E-\uDEAF\uDEF9-\uDFBF\uDFE1-\uDFEF\uDFFA-\uDFFF]|\uD807[\uDC09\uDC2F-\uDC3F\uDC41-\uDC4F\uDC6D-\uDC71\uDC90-\uDCFF\uDD07\uDD0A\uDD31-\uDD45\uDD47-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8A-\uDD97\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF3-\uDF01\uDF03\uDF11\uDF34-\uDF4F\uDF5A-\uDFAF\uDFB1-\uDFBF\uDFD5-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD812-\uD817\uD819\uD824-\uD82A\uD82D\uD82E\uD830-\uD832\uD836\uD83D\uD83F\uD87C\uD87D\uD87F\uD889-\uDBFF][\uDC00-\uDFFF]|\uD80B[\uDC00-\uDF8F\uDFF1-\uDFFF]|\uD80D[\uDC30-\uDC40\uDC47-\uDC5F]|\uD810[\uDFFB-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD818[\uDC00-\uDCFF\uDD1E-\uDD2F\uDD3A-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDE6F\uDEBF\uDECA-\uDECF\uDEEE-\uDEFF\uDF30-\uDF3F\uDF44-\uDF4F\uDF5A\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDD3F\uDD6D-\uDD6F\uDD7A-\uDE3F\uDE97-\uDEFF\uDF4B-\uDF4F\uDF51-\uDF92\uDFA0-\uDFDF\uDFE2\uDFE4-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFE\uDD09-\uDFFF]|\uD82B[\uDC00-\uDFEF\uDFF4\uDFFC\uDFFF]|\uD82C[\uDD23-\uDD31\uDD33-\uDD4F\uDD53\uDD54\uDD56-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDFFF]|\uD833[\uDC00-\uDCEF\uDCFA-\uDFFF]|\uD834[\uDC00-\uDEBF\uDED4-\uDEDF\uDEF4-\uDF5F\uDF79-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD837[\uDC00-\uDEFF\uDF1F-\uDF24\uDF2B-\uDFFF]|\uD838[\uDC00-\uDC2F\uDC6E-\uDCFF\uDD2D-\uDD36\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDE8F\uDEAE-\uDEBF\uDEEC-\uDEEF\uDEFA-\uDFFF]|\uD839[\uDC00-\uDCCF\uDCEC-\uDCEF\uDCFA-\uDDCF\uDDEE\uDDEF\uDDFB-\uDFDF\uDFE7\uDFEC\uDFEF\uDFFF]|\uD83A[\uDCC5\uDCC6\uDCD0-\uDCFF\uDD44-\uDD4A\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDC70\uDCAC\uDCB0\uDCB5-\uDD00\uDD2E\uDD3E-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEE0-\uDEFF]|\uD86D[\uDF3A-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFEF]|\uD87B[\uDE5E-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD888[\uDFB0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,"")).toLowerCase()},e.compareByLevenshtein=function(t,n){if(!e.isString(t)||!e.isString(n))throw new Error("string1 and string2 must be strings");var r=t.length,i=n.length;if(r<i)return e.compareByLevenshtein(n,t);if(0==r)return i;if(t===n)return 0;for(var o=[],a=[],s=0;s<=i;s++)a.push(s);for(s=0;s<r;s++){(o=[])[0]=s+1;for(var u=t.substr(s,1),l=0;l<i;l++){var c=n.substr(l,1),f=a[l+1]+1,d=o[l]+1,h=a[l]+(u!==c?1:0);o.push(Math.min(f,d,h))}a=o}return a[i]},e.compareSimilarityPercent=function(t,n){var r=e.compareByLevenshtein(t,n);return 0===r?100:100*(1-r/Math.max(t.length,n.length))},e.generatePath=function(t,n){if(void 0===n&&(n=""),!i.ArrayUtils.isArray(t))throw new Error("elements is not an array");return""===n&&(n="/"),e.formatPath(t.join(n),n)},e.generateRandom=function(t,n,o){if(void 0===o&&(o=["0-9","a-z","A-Z"]),t<0||!r.NumericUtils.isInteger(t)||n<0||!r.NumericUtils.isInteger(n))throw new Error("minLength and maxLength must be positive numbers");if(n<t)throw new Error("Provided maxLength must be higher or equal than minLength");if(!i.ArrayUtils.isArray(o)||o.length<=0)throw new Error("invalid charset");for(var a="",s=0,u=o;s<u.length;s++){var l=u[s];if(!e.isString(l)||e.isEmpty(l))throw new Error("invalid charset");var c=l.substr(0,1),f=l.substr(2,1);3===l.length&&1===l.indexOf("-")&&"\\"!==c?"0123456789".indexOf(c)>=0?a+="0123456789".substring("0123456789".indexOf(c),"0123456789".indexOf(f)+1):"abcdefghijkmnopqrstuvwxyz".indexOf(c)>=0?a+="abcdefghijkmnopqrstuvwxyz".substring("abcdefghijkmnopqrstuvwxyz".indexOf(c),"abcdefghijkmnopqrstuvwxyz".indexOf(f)+1):"ABCDEFGHIJKMNOPQRSTUVWXYZ".indexOf(c)>=0&&(a+="ABCDEFGHIJKMNOPQRSTUVWXYZ".substring("ABCDEFGHIJKMNOPQRSTUVWXYZ".indexOf(c),"ABCDEFGHIJKMNOPQRSTUVWXYZ".indexOf(f)+1)):a+=e.replace(l,"\\-","-")}for(var d="",h=t===n?n:r.NumericUtils.generateRandomInteger(t,n),p=0;p<h;p++)d+=a.charAt(Math.floor(Math.random()*a.length));return d},e.findMostSimilarString=function(){},e.findMostSimilarStringIndex=function(){},e.removeNewLineCharacters=function(){},e.removeAccents=function(t){if(!e.isString(t))throw new Error("value is not a string");for(var n=[{b:"A",l:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{b:"AA",l:"\ua732"},{b:"AE",l:"\xc6\u01fc\u01e2"},{b:"AO",l:"\ua734"},{b:"AU",l:"\ua736"},{b:"AV",l:"\ua738\ua73a"},{b:"AY",l:"\ua73c"},{b:"B",l:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{b:"C",l:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{b:"D",l:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{b:"DZ",l:"\u01f1\u01c4"},{b:"Dz",l:"\u01f2\u01c5"},{b:"E",l:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{b:"F",l:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{b:"G",l:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{b:"H",l:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{b:"I",l:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{b:"J",l:"J\u24bf\uff2a\u0134\u0248"},{b:"K",l:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{b:"L",l:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{b:"LJ",l:"\u01c7"},{b:"Lj",l:"\u01c8"},{b:"M",l:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{b:"N",l:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{b:"NJ",l:"\u01ca"},{b:"Nj",l:"\u01cb"},{b:"O",l:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{b:"OI",l:"\u01a2"},{b:"OO",l:"\ua74e"},{b:"OU",l:"\u0222"},{b:"OE",l:"\x8c\u0152"},{b:"oe",l:"\x9c\u0153"},{b:"P",l:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{b:"Q",l:"Q\u24c6\uff31\ua756\ua758\u024a"},{b:"R",l:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{b:"S",l:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{b:"T",l:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{b:"TZ",l:"\ua728"},{b:"U",l:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{b:"V",l:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{b:"VY",l:"\ua760"},{b:"W",l:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{b:"X",l:"X\u24cd\uff38\u1e8a\u1e8c"},{b:"Y",l:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{b:"Z",l:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{b:"a",l:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{b:"aa",l:"\ua733"},{b:"ae",l:"\xe6\u01fd\u01e3"},{b:"ao",l:"\ua735"},{b:"au",l:"\ua737"},{b:"av",l:"\ua739\ua73b"},{b:"ay",l:"\ua73d"},{b:"b",l:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{b:"c",l:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{b:"d",l:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{b:"dz",l:"\u01f3\u01c6"},{b:"e",l:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{b:"f",l:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{b:"g",l:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{b:"h",l:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{b:"hv",l:"\u0195"},{b:"i",l:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{b:"j",l:"j\u24d9\uff4a\u0135\u01f0\u0249"},{b:"k",l:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{b:"l",l:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{b:"lj",l:"\u01c9"},{b:"m",l:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{b:"n",l:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{b:"nj",l:"\u01cc"},{b:"o",l:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{b:"oi",l:"\u01a3"},{b:"ou",l:"\u0223"},{b:"oo",l:"\ua74f"},{b:"p",l:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{b:"q",l:"q\u24e0\uff51\u024b\ua757\ua759"},{b:"r",l:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{b:"s",l:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{b:"t",l:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{b:"tz",l:"\ua729"},{b:"u",l:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{b:"v",l:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{b:"vy",l:"\ua761"},{b:"w",l:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{b:"x",l:"x\u24e7\uff58\u1e8b\u1e8d"},{b:"y",l:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{b:"z",l:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],r={},i=0;i<n.length;i++)for(var o=n[i].l,a=0;a<o.length;a++)r[o[a]]=n[i].b;return t.replace(/[^\u0000-\u007E]/g,(function(e){return r[e]||e}))},e.removeWordsShorterThan=function(){},e.removeWordsLongerThan=function(){},e.removeUrls=function(){},e.removeHtmlCode=function(){},e.removeSameConsecutive=function(t,n){if(void 0===n&&(n=[]),null===t)return"";if(!e.isString(t))throw new Error("string must be a string");if(!i.ArrayUtils.isArray(n))throw new Error("set must be of the type array");return 0===n.length?t.replace(/((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|\r\n|[\n\r])\1+/g,"$1"):t.replace(new RegExp("("+n.join("|")+")\\1+","ug"),"$1")},e.FORMAT_SENTENCE_CASE="FORMAT_SENTENCE_CASE",e.FORMAT_START_CASE="FORMAT_START_CASE",e.FORMAT_ALL_UPPER_CASE="FORMAT_ALL_UPPER_CASE",e.FORMAT_ALL_LOWER_CASE="FORMAT_ALL_LOWER_CASE",e.FORMAT_FIRST_UPPER_REST_LOWER="FORMAT_FIRST_UPPER_REST_LOWER",e.FORMAT_CAMEL_CASE="FORMAT_CAMEL_CASE",e.FORMAT_UPPER_CAMEL_CASE="FORMAT_UPPER_CAMEL_CASE",e.FORMAT_LOWER_CAMEL_CASE="FORMAT_LOWER_CAMEL_CASE",e.FORMAT_SNAKE_CASE="FORMAT_SNAKE_CASE",e.FORMAT_UPPER_SNAKE_CASE="FORMAT_UPPER_SNAKE_CASE",e.FORMAT_LOWER_SNAKE_CASE="FORMAT_LOWER_SNAKE_CASE",e}();t.StringUtils=a},5170:e=>{e.exports=/[\0-\x1F\x7F-\x9F]/},9170:e=>{e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},4244:e=>{e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},1537:e=>{e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},6214:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(8455),t),i(n(3058),t)},8455:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.login=t.clientLogin=t.navigateToLoginPage=t.getLoggedInUserName=t.getRelatives=t.getDescendants=t.getAncestors=t.getPerson=t.wikiTreeGet=t.fetchWikiTree=t.WikiTreeError=void 0;const i=r(n(3131)),o=n(6487),a=r(n(5520)),s="https://api.wikitree.com/api.php",u="wikidb_wtb_UserName";class l extends Error{constructor(e){super(e),this.name="WikiTreeError"}}async function c(e,t){var n;const r=new a.default;r.append("format","json"),r.append("appId",null!==(n=null===t||void 0===t?void 0:t.appId)&&void 0!==n?n:"wikitree-js");for(const o in e)e[o]&&r.append(o,e[o]);const i=(null===t||void 0===t?void 0:t.apiUrl)||s,u={method:"POST",redirect:"manual",body:r,credentials:h(i)?"include":void 0};return null!==t&&void 0!==t&&t.auth&&(u.headers={Cookie:t.auth.cookies}),await(0,o.fetch)(i,u)}async function f(e,t){var n;const r=await c(e,t),i=await r.json();if(null!==(n=i[0])&&void 0!==n&&n.status)throw new l(i[0].status);return i}async function d(e,t){var n;const r=await c({action:"clientLogin",authcode:e},t);if("Success"!==(null===(n=(await r.json()).clientLogin)||void 0===n?void 0:n.result))throw new l("Could not authorize authcode");return r.headers.get("set-cookie")}function h(e){return e.match(/^https:\/\/[^/]*wikitree.com\/.*/)}t.WikiTreeError=l,t.fetchWikiTree=c,t.wikiTreeGet=f,t.getPerson=async function(e,t,n){const r={action:"getPerson",key:e,bioFormat:null===t||void 0===t?void 0:t.bioFormat,fields:(null===t||void 0===t?void 0:t.fields)instanceof Array?t.fields.join(","):null===t||void 0===t?void 0:t.fields,resolveRedirect:null!==t&&void 0!==t&&t.resolveRedirect?"1":void 0};return(await f(r,n))[0].person},t.getAncestors=async function(e,t,n){const r={action:"getAncestors",key:e,depth:null===t||void 0===t?void 0:t.depth,bioFormat:null===t||void 0===t?void 0:t.bioFormat,fields:(null===t||void 0===t?void 0:t.fields)instanceof Array?t.fields.join(","):null===t||void 0===t?void 0:t.fields,resolveRedirect:null!==t&&void 0!==t&&t.resolveRedirect?"1":void 0};return(await f(r,n))[0].ancestors},t.getDescendants=async function(e,t,n){const r={action:"getDescendants",key:e,depth:null===t||void 0===t?void 0:t.depth,bioFormat:null===t||void 0===t?void 0:t.bioFormat,fields:(null===t||void 0===t?void 0:t.fields)instanceof Array?t.fields.join(","):null===t||void 0===t?void 0:t.fields,resolveRedirect:null!==t&&void 0!==t&&t.resolveRedirect?"1":void 0};return(await f(r,n))[0].descendants},t.getRelatives=async function(e,t,n){var r;null===t||void 0===t||!t.bioFormat||null!==t&&void 0!==t&&null!==(r=t.fields)&&void 0!==r&&r.includes("Bio")||console.warn('Setting bioFormat has no effect if the "Bio" field is not requested explicitly');const i={action:"getRelatives",keys:e.join(","),getParents:null!==t&&void 0!==t&&t.getParents?"true":void 0,getChildren:null!==t&&void 0!==t&&t.getChildren?"true":void 0,getSpouses:null!==t&&void 0!==t&&t.getSpouses?"true":void 0,getSiblings:null!==t&&void 0!==t&&t.getSiblings?"true":void 0,bioFormat:null===t||void 0===t?void 0:t.bioFormat,fields:(null===t||void 0===t?void 0:t.fields)instanceof Array?t.fields.join(","):null===t||void 0===t?void 0:t.fields},o=await f(i,n);return null===o[0].items?[]:o[0].items.map((e=>e.person))},t.getLoggedInUserName=function(e){if(!e)return i.default.get(u);const t=new RegExp("".concat(u,"=(.*?);")),n=e.cookies.match(t);return n?n[1]:void 0},t.navigateToLoginPage=function(e){h(e)||console.warn("Return URLs outside of the wikitree.com domain will not work with the WikiTree login flow because of WikiTree API's CORS settings.");const t=document.createElement("form");t.setAttribute("action",s),t.setAttribute("method","POST"),t.setAttribute("hidden","true");const n=document.createElement("input");n.setAttribute("name","action"),n.setAttribute("type","hidden"),n.setAttribute("value","clientLogin");const r=document.createElement("input");r.setAttribute("name","returnURL"),r.setAttribute("type","hidden"),r.setAttribute("value",e),t.appendChild(n),t.appendChild(r),document.body.appendChild(t),t.submit()},t.clientLogin=async function(e,t){const n=(await f({action:"clientLogin",authcode:e},t)).clientLogin;return"Success"===n.result&&i.default.set(u,n.username),n},t.login=async function(e,t){const n=await async function(e,t,n){const r=await c({action:"clientLogin",doLogin:1,returnURL:"https://x/",wpEmail:e,wpPassword:t},n);if(302!==r.status)throw new l("Invalid login credentials");return r.headers.get("location").replace("https://x/?authcode=","")}(e,t);return{cookies:await d(n)}}},3058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2634:()=>{},3693:(e,t,n)=>{var r=n(7736);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},2897:(e,t,n)=>{var r=n(3693);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},9045:(e,t,n)=>{var r=n(3738).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7736:(e,t,n)=>{var r=n(3738).default,i=n(9045);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},3738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3469:(e,t,n)=>{"use strict";var r=n(7375)("%Array.prototype%"),i=n(3780),o=n(7430),a=n(7277),s=n(2190),u=n(6583),l=n(2178);e.exports=function(e){if(!s(e)||e<0)throw new a("Assertion failed: `length` must be an integer Number >= 0");if(e>u)throw new i("length is greater than (2**32 - 1)");var t=arguments.length>1?arguments[1]:r,n=[];if(t!==r){if(!l)throw new o("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");l(n,t)}return 0!==e&&(n.length=e),n}},4679:(e,t,n)=>{"use strict";var r=n(7375)("%Symbol.species%",!0),i=n(7277),o=n(2190),a=n(3469),s=n(9932),u=n(6817),l=n(9692),c=n(6754);e.exports=function(e,t){if(!o(t)||t<0)throw new i("Assertion failed: length must be an integer >= 0");if(!u(e))return a(t);var n=s(e,"constructor");if(r&&c(n)&&null===(n=s(n,r))&&(n=void 0),"undefined"===typeof n)return a(t);if(!l(n))throw new i("C must be a constructor");return new n(t)}},6090:(e,t,n)=>{"use strict";var r=n(7375),i=n(690),o=n(7277),a=n(6817),s=r("%Reflect.apply%",!0)||i("Function.prototype.apply");e.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!a(n))throw new o("Assertion failed: optional `argumentsList`, if provided, must be a List");return s(e,t,n)}},2199:(e,t,n)=>{"use strict";var r=n(7277),i=n(2009),o=n(186),a=n(6754);e.exports=function(e,t,n){if(!a(e))throw new r("Assertion failed: Type(O) is not Object");if(!i(t))throw new r("Assertion failed: P is not a Property Key");return o(e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":n,"[[Writable]]":!0})}},1460:(e,t,n)=>{"use strict";var r=n(7277),i=n(2199),o=n(6754),a=n(2009);e.exports=function(e,t,n){if(!o(e))throw new r("Assertion failed: Type(O) is not Object");if(!a(t))throw new r("Assertion failed: P is not a Property Key");if(!i(e,t,n))throw new r("unable to create data property")}},1033:(e,t,n)=>{"use strict";var r=n(7277),i=n(8665),o=n(9965),a=n(42),s=n(6407),u=n(2009),l=n(7095),c=n(3519),f=n(6754);e.exports=function(e,t,n){if(!f(e))throw new r("Assertion failed: Type(O) is not Object");if(!u(t))throw new r("Assertion failed: P is not a Property Key");var d=i(n)?n:c(n);if(!i(d))throw new r("Assertion failed: Desc is not a valid Property Descriptor");return o(s,l,a,e,t,d)}},451:(e,t,n)=>{"use strict";var r=n(7277),i=n(5587),o=n(6090),a=n(1460),s=n(9932),u=n(7589),l=n(6817),c=n(7225),f=n(7046);e.exports=function e(t,n,d,h,p){var m;arguments.length>5&&(m=arguments[5]);for(var g=h,y=0;y<d;){var v=f(y);if(!0===u(n,v)){var b=s(n,v);if("undefined"!==typeof m){if(arguments.length<=6)throw new r("Assertion failed: thisArg is required when mapperFunction is provided");b=o(m,arguments[6],[b,y,n])}var w=!1;if(p>0&&(w=l(b)),w){g=e(t,b,c(b),g,p-1)}else{if(g>=i)throw new r("index too large");a(t,f(g),b),g+=1}}y+=1}return g}},42:(e,t,n)=>{"use strict";var r=n(7277),i=n(8665),o=n(2017);e.exports=function(e){if("undefined"!==typeof e&&!i(e))throw new r("Assertion failed: `Desc` must be a Property Descriptor");return o(e)}},9932:(e,t,n)=>{"use strict";var r=n(7277),i=n(4141),o=n(6754),a=n(2009);e.exports=function(e,t){if(!o(e))throw new r("Assertion failed: Type(O) is not Object");if(!a(t))throw new r("Assertion failed: P is not a Property Key, got "+i(t));return e[t]}},7589:(e,t,n)=>{"use strict";var r=n(7277),i=n(6754),o=n(2009);e.exports=function(e,t){if(!i(e))throw new r("Assertion failed: `O` must be an Object");if(!o(t))throw new r("Assertion failed: `P` must be a Property Key");return t in e}},8084:(e,t,n)=>{"use strict";var r=n(7277),i=n(2155),o=n(8665);e.exports=function(e){if("undefined"===typeof e)return!1;if(!o(e))throw new r("Assertion failed: `Desc` must be a Property Descriptor");return!(!i(e,"[[Get]]")&&!i(e,"[[Set]]"))}},6817:(e,t,n)=>{"use strict";e.exports=n(3224)},9690:(e,t,n)=>{"use strict";e.exports=n(6806)},9692:(e,t,n)=>{"use strict";var r=n(4828)("%Reflect.construct%",!0),i=n(1033);try{i({},"",{"[[Get]]":function(){}})}catch(s){i=null}if(i&&r){var o={},a={};i(a,"length",{"[[Get]]":function(){throw o},"[[Enumerable]]":!0}),e.exports=function(e){try{r(e,a)}catch(t){return t===o}}}else e.exports=function(e){return"function"===typeof e&&!!e.prototype}},6407:(e,t,n)=>{"use strict";var r=n(7277),i=n(2155),o=n(8665);e.exports=function(e){if("undefined"===typeof e)return!1;if(!o(e))throw new r("Assertion failed: `Desc` must be a Property Descriptor");return!(!i(e,"[[Value]]")&&!i(e,"[[Writable]]"))}},2555:(e,t,n)=>{"use strict";var r=n(7375),i=r("%Object.preventExtensions%",!0),o=r("%Object.isExtensible%",!0),a=n(9788);e.exports=i?function(e){return!a(e)&&o(e)}:function(e){return!a(e)}},2972:(e,t,n)=>{"use strict";var r=n(7277),i=n(8084),o=n(6407),a=n(8665);e.exports=function(e){if("undefined"===typeof e)return!1;if(!a(e))throw new r("Assertion failed: `Desc` must be a Property Descriptor");return!i(e)&&!o(e)}},7225:(e,t,n)=>{"use strict";var r=n(7277),i=n(9932),o=n(2215),a=n(6754);e.exports=function(e){if(!a(e))throw new r("Assertion failed: `obj` must be an Object");return o(i(e,"length"))}},186:(e,t,n)=>{"use strict";var r=n(4553),i=n(7430),o=n(7277),a=n(8665),s=n(8084),u=n(2555),l=n(2009),c=n(3519),f=n(7095),d=n(4251),h=n(6754);e.exports=function(e,t,n){if(!h(e))throw new o("Assertion failed: O must be an Object");if(!l(t))throw new o("Assertion failed: P must be a Property Key");if(!a(n))throw new o("Assertion failed: Desc must be a Property Descriptor");if(!r){if(s(n))throw new i("This environment does not support accessor property descriptors.");var p=!(t in e)&&n["[[Writable]]"]&&n["[[Enumerable]]"]&&n["[[Configurable]]"]&&"[[Value]]"in n,m=t in e&&(!("[[Configurable]]"in n)||n["[[Configurable]]"])&&(!("[[Enumerable]]"in n)||n["[[Enumerable]]"])&&(!("[[Writable]]"in n)||n["[[Writable]]"])&&"[[Value]]"in n;if(p||m)return e[t]=n["[[Value]]"],f(e[t],n["[[Value]]"]);throw new i("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var g=r(e,t),y=g&&c(g),v=u(e);return d(e,t,v,n,y)}},7095:(e,t,n)=>{"use strict";var r=n(1581);e.exports=function(e,t){return e===t?0!==e||1/e===1/t:r(e)&&r(t)}},4627:(e,t,n)=>{"use strict";var r=n(7375),i=r("%RegExp%"),o=n(7277),a=r("%parseInt%"),s=n(690),u=n(2695),l=s("String.prototype.slice"),c=u(/^0b[01]+$/i),f=u(/^0o[0-7]+$/i),d=u(/^[-+]0x[0-9a-f]+$/i),h=u(new i("["+["\x85","\u200b","\ufffe"].join("")+"]","g")),p=n(2040);e.exports=function e(t){if("string"!==typeof t)throw new o("Assertion failed: `argument` is not a String");if(c(t))return+a(l(t,2),2);if(f(t))return+a(l(t,2),8);if(h(t)||d(t))return NaN;var n=p(t);return n!==t?e(n):+t}},2583:e=>{"use strict";e.exports=function(e){return!!e}},5336:(e,t,n)=>{"use strict";var r=n(7550),i=n(4212),o=n(1581),a=n(1497);e.exports=function(e){var t=r(e);return o(t)||0===t?0:a(t)?i(t):t}},2215:(e,t,n)=>{"use strict";var r=n(5587),i=n(5336);e.exports=function(e){var t=i(e);return t<=0?0:t>r?r:t}},7550:(e,t,n)=>{"use strict";var r=n(7375),i=n(7277),o=r("%Number%"),a=n(9788),s=n(8110),u=n(4627);e.exports=function(e){var t=a(e)?e:s(e,o);if("symbol"===typeof t)throw new i("Cannot convert a Symbol value to a number");if("bigint"===typeof t)throw new i("Conversion from 'BigInt' to 'number' is not allowed.");return"string"===typeof t?u(t):+t}},2072:(e,t,n)=>{"use strict";e.exports=n(8446)},8110:(e,t,n)=>{"use strict";var r=n(3151);e.exports=function(e){return arguments.length>1?r(e,arguments[1]):r(e)}},3519:(e,t,n)=>{"use strict";var r=n(2155),i=n(7277),o=n(9690),a=n(2583),s=n(6754);e.exports=function(e){if(!s(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(r(e,"enumerable")&&(t["[[Enumerable]]"]=a(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=a(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=a(e.writable)),r(e,"get")){var n=e.get;if("undefined"!==typeof n&&!o(n))throw new i("getter must be a function");t["[[Get]]"]=n}if(r(e,"set")){var u=e.set;if("undefined"!==typeof u&&!o(u))throw new i("setter must be a function");t["[[Set]]"]=u}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},7046:(e,t,n)=>{"use strict";var r=n(7375)("%String%"),i=n(7277);e.exports=function(e){if("symbol"===typeof e)throw new i("Cannot convert a Symbol value to a string");return r(e)}},3318:(e,t,n)=>{"use strict";var r=n(1763);e.exports=function(e){return"symbol"===typeof e?"Symbol":"bigint"===typeof e?"BigInt":r(e)}},4251:(e,t,n)=>{"use strict";var r=n(7277),i=n(9965),o=n(8835),a=n(8665),s=n(42),u=n(8084),l=n(6407),c=n(2972),f=n(2009),d=n(7095),h=n(3318),p=n(6754);e.exports=function(e,t,n,m,g){var y,v,b=h(e);if("undefined"!==typeof e&&!p(e))throw new r("Assertion failed: O must be undefined or an Object");if(!f(t))throw new r("Assertion failed: P must be a Property Key");if("boolean"!==typeof n)throw new r("Assertion failed: extensible must be a Boolean");if(!a(m))throw new r("Assertion failed: Desc must be a Property Descriptor");if("undefined"!==typeof g&&!a(g))throw new r("Assertion failed: current must be a Property Descriptor, or undefined");if("undefined"===typeof g)return!!n&&("Undefined"===b||(u(m)?i(l,d,s,e,t,m):i(l,d,s,e,t,{"[[Configurable]]":!!m["[[Configurable]]"],"[[Enumerable]]":!!m["[[Enumerable]]"],"[[Value]]":m["[[Value]]"],"[[Writable]]":!!m["[[Writable]]"]})));if(!o({IsAccessorDescriptor:u,IsDataDescriptor:l},g))throw new r("`current`, when present, must be a fully populated and valid Property Descriptor");if(!g["[[Configurable]]"]){if("[[Configurable]]"in m&&m["[[Configurable]]"])return!1;if("[[Enumerable]]"in m&&!d(m["[[Enumerable]]"],g["[[Enumerable]]"]))return!1;if(!c(m)&&!d(u(m),u(g)))return!1;if(u(g)){if("[[Get]]"in m&&!d(m["[[Get]]"],g["[[Get]]"]))return!1;if("[[Set]]"in m&&!d(m["[[Set]]"],g["[[Set]]"]))return!1}else if(!g["[[Writable]]"]){if("[[Writable]]"in m&&m["[[Writable]]"])return!1;if("[[Value]]"in m&&!d(m["[[Value]]"],g["[[Value]]"]))return!1}}return"Undefined"===b||(l(g)&&u(m)?(y=("[[Configurable]]"in m?m:g)["[[Configurable]]"],v=("[[Enumerable]]"in m?m:g)["[[Enumerable]]"],i(l,d,s,e,t,{"[[Configurable]]":!!y,"[[Enumerable]]":!!v,"[[Get]]":("[[Get]]"in m?m:g)["[[Get]]"],"[[Set]]":("[[Set]]"in m?m:g)["[[Set]]"]})):u(g)&&l(m)?(y=("[[Configurable]]"in m?m:g)["[[Configurable]]"],v=("[[Enumerable]]"in m?m:g)["[[Enumerable]]"],i(l,d,s,e,t,{"[[Configurable]]":!!y,"[[Enumerable]]":!!v,"[[Value]]":("[[Value]]"in m?m:g)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in m?m:g)["[[Writable]]"]})):i(l,d,s,e,t,m))}},4606:(e,t,n)=>{"use strict";var r=n(8974);e.exports=function(e){return"bigint"===typeof e?e:r(e)}},4212:(e,t,n)=>{"use strict";var r=n(4606),i=n(7277);e.exports=function(e){if("number"!==typeof e&&"bigint"!==typeof e)throw new i("argument must be a Number or a BigInt");var t=e<0?-r(-e):r(e);return 0===t?0:t}},1763:(e,t,n)=>{"use strict";var r=n(6754);e.exports=function(e){return null===e?"Null":"undefined"===typeof e?"Undefined":r(e)?"Object":"number"===typeof e?"Number":"boolean"===typeof e?"Boolean":"string"===typeof e?"String":void 0}},4828:(e,t,n)=>{"use strict";e.exports=n(7375)},9965:(e,t,n)=>{"use strict";var r=n(7734),i=n(6709),o=r.hasArrayLengthDefineBug(),a=o&&n(3224),s=n(690)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,n,r,u,l){if(!i){if(!e(l))return!1;if(!l["[[Configurable]]"]||!l["[[Writable]]"])return!1;if(u in r&&s(r,u)!==!!l["[[Enumerable]]"])return!1;var c=l["[[Value]]"];return r[u]=c,t(r[u],c)}return o&&"length"===u&&"[[Value]]"in l&&a(r)&&r.length!==l["[[Value]]"]?(r.length=l["[[Value]]"],r.length===l["[[Value]]"]):(i(r,u,n(l)),!0)}},3224:(e,t,n)=>{"use strict";var r=n(7375)("%Array%"),i=!r.isArray&&n(690)("Object.prototype.toString");e.exports=r.isArray||function(e){return"[object Array]"===i(e)}},2017:e=>{"use strict";e.exports=function(e){if("undefined"===typeof e)return e;var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=!!e["[[Configurable]]"]),t}},8835:(e,t,n)=>{"use strict";var r=n(8665);e.exports=function(e,t){return r(t)&&"[[Enumerable]]"in t&&"[[Configurable]]"in t&&(e.IsAccessorDescriptor(t)||e.IsDataDescriptor(t))}},6754:e=>{"use strict";e.exports=function(e){return!!e&&("function"===typeof e||"object"===typeof e)}},9788:e=>{"use strict";e.exports=function(e){return null===e||"function"!==typeof e&&"object"!==typeof e}},2009:e=>{"use strict";e.exports=function(e){return"string"===typeof e||"symbol"===typeof e}},8665:(e,t,n)=>{"use strict";var r=n(7277),i=n(2155),o={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};e.exports=function(e){if(!e||"object"!==typeof e)return!1;for(var t in e)if(i(e,t)&&!o[t])return!1;var n=i(e,"[[Value]]")||i(e,"[[Writable]]"),a=i(e,"[[Get]]")||i(e,"[[Set]]");if(n&&a)throw new r("Property Descriptors may not be both accessor and data descriptors");return!0}},4467:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(816);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},816:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2284);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},2284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},1152:(e,t,n)=>{"use strict";n.r(t),Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function e(){var t=isNaN(arguments[0])?1:Number(arguments[0]);return t?Array.prototype.reduce.call(this,(function(n,r){return Array.isArray(r)?n.push.apply(n,e.call(r,t-1)):n.push(r),n}),[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(e){return Array.prototype.map.apply(this,arguments).flat()},writable:!0})},4952:(e,t,n)=>{"use strict";function r(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function i(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function o(e){let t,n,o;function s(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=r,n=(t,n)=>r(e(t),n),o=(t,n)=>e(t)-n):(t=e===r||e===i?e:a,n=e,o=e),{left:s,center:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=s(e,t,n,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length)-1);return r>n&&o(e[r-1],t)>-o(e[r],t)?r-1:r},right:function(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}function a(){return 0}function s(e){return null===e?NaN:+e}n.r(t),n.d(t,{Adder:()=>M,InternMap:()=>T.B,InternSet:()=>T.v,ascending:()=>r,bin:()=>ue,bisect:()=>d,bisectCenter:()=>f,bisectLeft:()=>c,bisectRight:()=>l,bisector:()=>o,blur:()=>h,blur2:()=>p,blurImage:()=>m,count:()=>w,cross:()=>k,cumsum:()=>S,descending:()=>i,deviation:()=>C,difference:()=>Ve,disjoint:()=>Qe,every:()=>ze,extent:()=>D,fcumsum:()=>O,filter:()=>He,flatGroup:()=>j,flatRollup:()=>L,fsum:()=>F,greatest:()=>me,greatestIndex:()=>Te,group:()=>P,groupSort:()=>K,groups:()=>I,histogram:()=>ue,index:()=>U,indexes:()=>H,intersection:()=>$e,least:()=>Fe,leastIndex:()=>Oe,map:()=>qe,max:()=>le.A,maxIndex:()=>ce,mean:()=>_e,median:()=>xe,medianIndex:()=>Ee,merge:()=>ke,min:()=>fe.A,minIndex:()=>de,mode:()=>Se,nice:()=>ae,pairs:()=>Ae,permute:()=>W,quantile:()=>ge,quantileIndex:()=>ve,quantileSorted:()=>ye,quickselect:()=>he,range:()=>De,rank:()=>Me,reduce:()=>Ge,reverse:()=>We,rollup:()=>B,rollups:()=>z,scan:()=>Ne,shuffle:()=>Pe,shuffler:()=>Ie,some:()=>Ue,sort:()=>V,subset:()=>Ze,sum:()=>Re,superset:()=>Ye,thresholdFreedmanDiaconis:()=>be,thresholdScott:()=>we,thresholdSturges:()=>se,tickIncrement:()=>ie,tickStep:()=>oe,ticks:()=>re,transpose:()=>je,union:()=>Je,variance:()=>A,zip:()=>Be});const u=o(r),l=u.right,c=u.left,f=o(s).center,d=l;function h(e,t){if(!((t=+t)>=0))throw new RangeError("invalid r");let n=e.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!t)return e;const r=b(t),i=e.slice();return r(e,i,0,n,1),r(i,e,0,n,1),r(e,i,0,n,1),e}const p=g(b),m=g((function(e){const t=b(e);return(e,n,r,i,o)=>{t(e,n,(r<<=2)+0,(i<<=2)+0,o<<=2),t(e,n,r+1,i+1,o),t(e,n,r+2,i+2,o),t(e,n,r+3,i+3,o)}}));function g(e){return function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:i,width:o,height:a}=t;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");if(!((a=Math.floor(void 0!==a?a:i.length/o))>=0))throw new RangeError("invalid height");if(!o||!a||!n&&!r)return t;const s=n&&e(n),u=r&&e(r),l=i.slice();return s&&u?(y(s,l,i,o,a),y(s,i,l,o,a),y(s,l,i,o,a),v(u,i,l,o,a),v(u,l,i,o,a),v(u,i,l,o,a)):s?(y(s,i,l,o,a),y(s,l,i,o,a),y(s,i,l,o,a)):u&&(v(u,i,l,o,a),v(u,l,i,o,a),v(u,i,l,o,a)),t}}function y(e,t,n,r,i){for(let o=0,a=r*i;o<a;)e(t,n,o,o+=r,1)}function v(e,t,n,r,i){for(let o=0,a=r*i;o<r;++o)e(t,n,o,o+a,r)}function b(e){const t=Math.floor(e);if(t===e)return function(e){const t=2*e+1;return(n,r,i,o,a)=>{if(!((o-=a)>=i))return;let s=e*r[i];const u=a*e;for(let e=i,t=i+u;e<t;e+=a)s+=r[Math.min(o,e)];for(let e=i,l=o;e<=l;e+=a)s+=r[Math.min(o,e+u)],n[e]=s/t,s-=r[Math.max(i,e-u)]}}(e);const n=e-t,r=2*e+1;return(e,i,o,a,s)=>{if(!((a-=s)>=o))return;let u=t*i[o];const l=s*t,c=l+s;for(let t=o,n=o+l;t<n;t+=s)u+=i[Math.min(a,t)];for(let t=o,f=a;t<=f;t+=s)u+=i[Math.min(a,t+l)],e[t]=(u+n*(i[Math.max(o,t-c)]+i[Math.min(a,t+c)]))/r,u-=i[Math.max(o,t-l)]}}function w(e,t){let n=0;if(void 0===t)for(let r of e)null!=r&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(i=+i)>=i&&++n}return n}function _(e){return 0|e.length}function x(e){return!(e>0)}function E(e){return"object"!==typeof e||"length"in e?e:Array.from(e)}function k(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r="function"===typeof t[t.length-1]&&function(e){return t=>e(...t)}(t.pop()),i=(t=t.map(E)).map(_),o=t.length-1,a=new Array(o+1).fill(0),s=[];if(o<0||i.some(x))return s;for(;;){s.push(a.map(((e,n)=>t[n][e])));let e=o;for(;++a[e]===i[e];){if(0===e)return r?s.map(r):s;a[e--]=0}}}function S(e,t){var n=0,r=0;return Float64Array.from(e,void 0===t?e=>n+=+e||0:i=>n+=+t(i,r++,e)||0)}function A(e,t){let n,r=0,i=0,o=0;if(void 0===t)for(let a of e)null!=a&&(a=+a)>=a&&(n=a-i,i+=n/++r,o+=n*(a-i));else{let a=-1;for(let s of e)null!=(s=t(s,++a,e))&&(s=+s)>=s&&(n=s-i,i+=n/++r,o+=n*(s-i))}if(r>1)return o/(r-1)}function C(e,t){const n=A(e,t);return n?Math.sqrt(n):n}function D(e,t){let n,r;if(void 0===t)for(const i of e)null!=i&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let o of e)null!=(o=t(o,++i,e))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}class M{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const i=t[r],o=e+i,a=Math.abs(e)<Math.abs(i)?e-(o-i):i-(o-e);a&&(t[n++]=a),e=o}return t[n]=e,this._n=n+1,this}valueOf(){const e=this._partials;let t,n,r,i=this._n,o=0;if(i>0){for(o=e[--i];i>0&&(t=o,n=e[--i],o=t+n,r=n-(o-t),!r););i>0&&(r<0&&e[i-1]<0||r>0&&e[i-1]>0)&&(n=2*r,t=o+n,n==t-o&&(o=t))}return o}}function F(e,t){const n=new M;if(void 0===t)for(let r of e)(r=+r)&&n.add(r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&n.add(i)}return+n}function O(e,t){const n=new M;let r=-1;return Float64Array.from(e,void 0===t?e=>n.add(+e||0):i=>n.add(+t(i,++r,e)||0))}var T=n(150);function N(e){return e}function P(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return G(e,N,N,n)}function I(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return G(e,Array.from,N,n)}function R(e,t){for(let n=1,r=t.length;n<r;++n)e=e.flatMap((e=>e.pop().map((t=>{let[n,r]=t;return[...e,n,r]}))));return e}function j(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return R(I(e,...n),n)}function L(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return R(z(e,t,...r),r)}function B(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return G(e,N,t,r)}function z(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return G(e,Array.from,t,r)}function U(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return G(e,N,q,n)}function H(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return G(e,Array.from,q,n)}function q(e){if(1!==e.length)throw new Error("duplicate key");return e[0]}function G(e,t,n,r){return function e(i,o){if(o>=r.length)return n(i);const a=new T.B,s=r[o++];let u=-1;for(const t of i){const e=s(t,++u,i),n=a.get(e);n?n.push(t):a.set(e,[t])}for(const[t,n]of a)a.set(t,e(n,o));return t(a)}(e,0)}function W(e,t){return Array.from(t,(t=>e[t]))}function V(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("function"!==typeof e[Symbol.iterator])throw new TypeError("values is not iterable");e=Array.from(e);let[i]=n;if(i&&2!==i.length||n.length>1){const t=Uint32Array.from(e,((e,t)=>t));return n.length>1?(n=n.map((t=>e.map(t))),t.sort(((e,t)=>{for(const r of n){const n=$(r[e],r[t]);if(n)return n}}))):(i=e.map(i),t.sort(((e,t)=>$(i[e],i[t])))),W(e,t)}return e.sort(Q(i))}function Q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;if(e===r)return $;if("function"!==typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}function $(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function K(e,t,n){return(2!==t.length?V(B(e,t,n),((e,t)=>{let[n,i]=e,[o,a]=t;return r(i,a)||r(n,o)})):V(P(e,n),((e,n)=>{let[i,o]=e,[a,s]=n;return t(o,s)||r(i,a)}))).map((e=>{let[t]=e;return t}))}var Y=Array.prototype,X=Y.slice;Y.map;function Z(e){return()=>e}const J=Math.sqrt(50),ee=Math.sqrt(10),te=Math.sqrt(2);function ne(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=J?10:o>=ee?5:o>=te?2:1;let s,u,l;return i<0?(l=Math.pow(10,-i)/a,s=Math.round(e*l),u=Math.round(t*l),s/l<e&&++s,u/l>t&&--u,l=-l):(l=Math.pow(10,i)*a,s=Math.round(e/l),u=Math.round(t/l),s*l<e&&++s,u*l>t&&--u),u<s&&.5<=n&&n<2?ne(e,t,2*n):[s,u,l]}function re(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[i,o,a]=r?ne(t,e,n):ne(e,t,n);if(!(o>=i))return[];const s=o-i+1,u=new Array(s);if(r)if(a<0)for(let l=0;l<s;++l)u[l]=(o-l)/-a;else for(let l=0;l<s;++l)u[l]=(o-l)*a;else if(a<0)for(let l=0;l<s;++l)u[l]=(i+l)/-a;else for(let l=0;l<s;++l)u[l]=(i+l)*a;return u}function ie(e,t,n){return ne(e=+e,t=+t,n=+n)[2]}function oe(e,t,n){n=+n;const r=(t=+t)<(e=+e),i=r?ie(t,e,n):ie(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function ae(e,t,n){let r;for(;;){const i=ie(e,t,n);if(i===r||0===i||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function se(e){return Math.max(1,Math.ceil(Math.log(w(e))/Math.LN2)+1)}function ue(){var e=N,t=D,n=se;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a,s=r.length,u=new Array(s);for(i=0;i<s;++i)u[i]=e(r[i],i,r);var l=t(u),c=l[0],f=l[1],h=n(u,c,f);if(!Array.isArray(h)){const e=f,n=+h;if(t===D&&([c,f]=ae(c,f,n)),(h=re(c,f,n))[0]<=c&&(a=ie(c,f,n)),h[h.length-1]>=f)if(e>=f&&t===D){const e=ie(c,f,n);isFinite(e)&&(e>0?f=(Math.floor(f/e)+1)*e:e<0&&(f=(Math.ceil(f*-e)+1)/-e))}else h.pop()}for(var p=h.length,m=0,g=p;h[m]<=c;)++m;for(;h[g-1]>f;)--g;(m||g<p)&&(h=h.slice(m,g),p=g-m);var y,v=new Array(p+1);for(i=0;i<=p;++i)(y=v[i]=[]).x0=i>0?h[i-1]:c,y.x1=i<p?h[i]:f;if(isFinite(a)){if(a>0)for(i=0;i<s;++i)null!=(o=u[i])&&c<=o&&o<=f&&v[Math.min(p,Math.floor((o-c)/a))].push(r[i]);else if(a<0)for(i=0;i<s;++i)if(null!=(o=u[i])&&c<=o&&o<=f){const e=Math.floor((c-o)*a);v[Math.min(p,e+(h[e]<=o))].push(r[i])}}else for(i=0;i<s;++i)null!=(o=u[i])&&c<=o&&o<=f&&v[d(h,o,0,p)].push(r[i]);return v}return r.value=function(t){return arguments.length?(e="function"===typeof t?t:Z(t),r):e},r.domain=function(e){return arguments.length?(t="function"===typeof e?e:Z([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"===typeof e?e:Z(Array.isArray(e)?X.call(e):e),r):n},r}var le=n(1470);function ce(e,t){let n,r=-1,i=-1;if(void 0===t)for(const o of e)++i,null!=o&&(n<o||void 0===n&&o>=o)&&(n=o,r=i);else for(let o of e)null!=(o=t(o,++i,e))&&(n<o||void 0===n&&o>=o)&&(n=o,r=i);return r}var fe=n(5760);function de(e,t){let n,r=-1,i=-1;if(void 0===t)for(const o of e)++i,null!=o&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);else for(let o of e)null!=(o=t(o,++i,e))&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);return r}function he(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4?arguments[4]:void 0;if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=void 0===i?$:Q(i);r>n;){if(r-n>600){const o=r-n+1,a=t-n+1,s=Math.log(o),u=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*u*(o-u)/o)*(a-o/2<0?-1:1);he(e,t,Math.max(n,Math.floor(t-a*u/o+l)),Math.min(r,Math.floor(t+(o-a)*u/o+l)),i)}const o=e[t];let a=n,s=r;for(pe(e,n,t),i(e[r],o)>0&&pe(e,n,r);a<s;){for(pe(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}0===i(e[n],o)?pe(e,n,s):(++s,pe(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function pe(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function me(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,i=!1;if(1===n.length){let o;for(const a of e){const e=n(a);(i?r(e,o)>0:0===r(e,e))&&(t=a,o=e,i=!0)}}else for(const r of e)(i?n(r,t)>0:0===n(r,r))&&(t=r,i=!0);return t}function ge(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let n of e)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return(0,fe.A)(e);if(t>=1)return(0,le.A)(e);var r,i=(r-1)*t,o=Math.floor(i),a=(0,le.A)(he(e,o).subarray(0,o+1));return a+((0,fe.A)(e.subarray(o+1))-a)*(i-o)}}function ye(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}function ve(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;if(!isNaN(t=+t)){if(r=Float64Array.from(e,((t,r)=>s(n(e[r],r,e)))),t<=0)return de(r);if(t>=1)return ce(r);var r,i=Uint32Array.from(e,((e,t)=>t)),o=r.length-1,a=Math.floor(o*t);return he(i,a,0,o,((e,t)=>$(r[e],r[t]))),(a=me(i.subarray(0,a+1),(e=>r[e])))>=0?a:-1}}function be(e,t,n){const r=w(e),i=ge(e,.75)-ge(e,.25);return r&&i?Math.ceil((n-t)/(2*i*Math.pow(r,-1/3))):1}function we(e,t,n){const r=w(e),i=C(e);return r&&i?Math.ceil((n-t)*Math.cbrt(r)/(3.49*i)):1}function _e(e,t){let n=0,r=0;if(void 0===t)for(let i of e)null!=i&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let o of e)null!=(o=t(o,++i,e))&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function xe(e,t){return ge(e,.5,t)}function Ee(e,t){return ve(e,.5,t)}function ke(e){return Array.from(function*(e){for(const t of e)yield*t}(e))}function Se(e,t){const n=new T.B;if(void 0===t)for(let o of e)null!=o&&o>=o&&n.set(o,(n.get(o)||0)+1);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&i>=i&&n.set(i,(n.get(i)||0)+1)}let r,i=0;for(const[o,a]of n)a>i&&(i=a,r=o);return r}function Ae(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ce;const n=[];let r,i=!1;for(const o of e)i&&n.push(t(r,o)),r=o,i=!0;return n}function Ce(e,t){return[e,t]}function De(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=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}function Me(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if("function"!==typeof e[Symbol.iterator])throw new TypeError("values is not iterable");let n=Array.from(e);const i=new Float64Array(n.length);2!==t.length&&(n=n.map(t),t=r);const o=(e,r)=>t(n[e],n[r]);let a,s;return(e=Uint32Array.from(n,((e,t)=>t))).sort(t===r?(e,t)=>$(n[e],n[t]):Q(o)),e.forEach(((e,t)=>{const n=o(e,void 0===a?e:a);n>=0?((void 0===a||n>0)&&(a=e,s=t),i[e]=s):i[e]=NaN})),i}function Fe(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,i=!1;if(1===n.length){let o;for(const a of e){const e=n(a);(i?r(e,o)<0:0===r(e,e))&&(t=a,o=e,i=!0)}}else for(const r of e)(i?n(r,t)<0:0===n(r,r))&&(t=r,i=!0);return t}function Oe(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if(1===n.length)return de(e,n);let i=-1,o=-1;for(const r of e)++o,(i<0?0===n(r,r):n(r,t)<0)&&(t=r,i=o);return i}function Te(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if(1===n.length)return ce(e,n);let i=-1,o=-1;for(const r of e)++o,(i<0?0===n(r,r):n(r,t)>0)&&(t=r,i=o);return i}function Ne(e,t){const n=Oe(e,t);return n<0?void 0:n}const Pe=Ie(Math.random);function Ie(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length)-(n=+n);for(;r;){const i=e()*r--|0,o=t[r+n];t[r+n]=t[i+n],t[i+n]=o}return t}}function Re(e,t){let n=0;if(void 0===t)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function je(e){if(!(i=e.length))return[];for(var t=-1,n=(0,fe.A)(e,Le),r=new Array(n);++t<n;)for(var i,o=-1,a=r[t]=new Array(i);++o<i;)a[o]=e[o][t];return r}function Le(e){return e.length}function Be(){return je(arguments)}function ze(e,t){if("function"!==typeof t)throw new TypeError("test is not a function");let n=-1;for(const r of e)if(!t(r,++n,e))return!1;return!0}function Ue(e,t){if("function"!==typeof t)throw new TypeError("test is not a function");let n=-1;for(const r of e)if(t(r,++n,e))return!0;return!1}function He(e,t){if("function"!==typeof t)throw new TypeError("test is not a function");const n=[];let r=-1;for(const i of e)t(i,++r,e)&&n.push(i);return n}function qe(e,t){if("function"!==typeof e[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!==typeof t)throw new TypeError("mapper is not a function");return Array.from(e,((n,r)=>t(n,r,e)))}function Ge(e,t,n){if("function"!==typeof t)throw new TypeError("reducer is not a function");const r=e[Symbol.iterator]();let i,o,a=-1;if(arguments.length<3){if(({done:i,value:n}=r.next()),i)return;++a}for(;({done:i,value:o}=r.next()),!i;)n=t(n,o,++a,e);return n}function We(e){if("function"!==typeof e[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(e).reverse()}function Ve(e){e=new T.v(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(const i of n)for(const t of i)e.delete(t);return e}function Qe(e,t){const n=t[Symbol.iterator](),r=new T.v;for(const i of e){if(r.has(i))return!1;let e,t;for(;({value:e,done:t}=n.next())&&!t;){if(Object.is(i,e))return!1;r.add(e)}}return!0}function $e(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e=new T.v(e),n=n.map(Ke);e:for(const i of e)for(const t of n)if(!t.has(i)){e.delete(i);continue e}return e}function Ke(e){return e instanceof T.v?e:new T.v(e)}function Ye(e,t){const n=e[Symbol.iterator](),r=new Set;for(const i of t){const e=Xe(i);if(r.has(e))continue;let t,o;for(;({value:t,done:o}=n.next());){if(o)return!1;const n=Xe(t);if(r.add(n),Object.is(e,n))break}}return!0}function Xe(e){return null!==e&&"object"===typeof e?e.valueOf():e}function Ze(e,t){return Ye(t,e)}function Je(){const e=new T.v;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const i of n)for(const t of i)e.add(t);return e}},1470:(e,t,n)=>{"use strict";function r(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}n.d(t,{A:()=>r})},5760:(e,t,n)=>{"use strict";function r(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(t,{A:()=>r})},3066:(e,t,n)=>{"use strict";function r(e,t){return e.parent===t.parent?1:2}function i(e,t){return e+t.x}function o(e,t){return Math.max(e,t.y)}function a(){var e=r,t=1,n=1,a=!1;function s(r){var s,u=0;r.eachAfter((function(t){var n=t.children;n?(t.x=function(e){return e.reduce(i,0)/e.length}(n),t.y=function(e){return 1+e.reduce(o,0)}(n)):(t.x=s?u+=e(t,s):0,t.y=0,s=t)}));var l=function(e){for(var t;t=e.children;)e=t[0];return e}(r),c=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(r),f=l.x-e(l,c)/2,d=c.x+e(c,l)/2;return r.eachAfter(a?function(e){e.x=(e.x-r.x)*t,e.y=(r.y-e.y)*n}:function(e){e.x=(e.x-f)/(d-f)*t,e.y=(1-(r.y?e.y/r.y:1))*n})}return s.separation=function(t){return arguments.length?(e=t,s):e},s.size=function(e){return arguments.length?(a=!1,t=+e[0],n=+e[1],s):a?null:[t,n]},s.nodeSize=function(e){return arguments.length?(a=!0,t=+e[0],n=+e[1],s):a?[t,n]:null},s}function s(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function u(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=c)):void 0===t&&(t=l);for(var n,r,i,o,a,s=new h(e),u=[s];n=u.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)u.push(r=i[o]=new h(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(d)}function l(e){return e.children}function c(e){return Array.isArray(e)?e[1]:null}function f(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function d(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function h(e){this.data=e,this.depth=this.height=0,this.parent=null}function p(e){return null==e?null:m(e)}function m(e){if("function"!==typeof e)throw new Error;return e}function g(){return 0}function y(e){return function(){return e}}n.r(t),n.d(t,{Node:()=>h,cluster:()=>a,hierarchy:()=>u,pack:()=>L,packEnclose:()=>x,packSiblings:()=>R,partition:()=>G,stratify:()=>Y,tree:()=>oe,treemap:()=>ce,treemapBinary:()=>fe,treemapDice:()=>q,treemapResquarify:()=>he,treemapSlice:()=>ae,treemapSliceDice:()=>de,treemapSquarify:()=>le}),h.prototype=u.prototype={constructor:h,count:function(){return this.eachAfter(s)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],u=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++u,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(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}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(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},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return u(this).eachBefore(f)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}};const v=1664525,b=1013904223,w=4294967296;function _(){let e=1;return()=>(e=(v*e+b)%w)/w}function x(e){return E(e,_())}function E(e,t){for(var n,r,i=0,o=(e=function(e,t){let n,r,i=e.length;for(;i;)r=t()*i--|0,n=e[i],e[i]=e[r],e[r]=n;return e}(Array.from(e),t)).length,a=[];i<o;)n=e[i],r&&A(r,n)?++i:(r=D(a=k(a,n)),i=0);return r}function k(e,t){var n,r;if(C(t,e))return[t];for(n=0;n<e.length;++n)if(S(t,e[n])&&C(M(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(S(M(e[n],e[r]),t)&&S(M(e[n],t),e[r])&&S(M(e[r],t),e[n])&&C(F(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function S(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function A(e,t){var n=e.r-t.r+1e-9*Math.max(e.r,t.r,1),r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function C(e,t){for(var n=0;n<t.length;++n)if(!A(e,t[n]))return!1;return!0}function D(e){switch(e.length){case 1:return function(e){return{x:e.x,y:e.y,r:e.r}}(e[0]);case 2:return M(e[0],e[1]);case 3:return F(e[0],e[1],e[2])}}function M(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,a=t.y,s=t.r,u=o-n,l=a-r,c=s-i,f=Math.sqrt(u*u+l*l);return{x:(n+o+u/f*c)/2,y:(r+a+l/f*c)/2,r:(f+i+s)/2}}function F(e,t,n){var r=e.x,i=e.y,o=e.r,a=t.x,s=t.y,u=t.r,l=n.x,c=n.y,f=n.r,d=r-a,h=r-l,p=i-s,m=i-c,g=u-o,y=f-o,v=r*r+i*i-o*o,b=v-a*a-s*s+u*u,w=v-l*l-c*c+f*f,_=h*p-d*m,x=(p*w-m*b)/(2*_)-r,E=(m*g-p*y)/_,k=(h*b-d*w)/(2*_)-i,S=(d*y-h*g)/_,A=E*E+S*S-1,C=2*(o+x*E+k*S),D=x*x+k*k-o*o,M=-(Math.abs(A)>1e-6?(C+Math.sqrt(C*C-4*A*D))/(2*A):D/C);return{x:r+x+E*M,y:i+k+S*M,r:M}}function O(e,t,n){var r,i,o,a,s=e.x-t.x,u=e.y-t.y,l=s*s+u*u;l?(i=t.r+n.r,i*=i,a=e.r+n.r,i>(a*=a)?(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),n.x=e.x-r*s-o*u,n.y=e.y-r*u+o*s):(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=t.x+r*s-o*u,n.y=t.y+r*u+o*s)):(n.x=t.x+n.r,n.y=t.y)}function T(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function N(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function P(e){this._=e,this.next=null,this.previous=null}function I(e,t){if(!(a=(n=e,e="object"===typeof n&&"length"in n?n:Array.from(n)).length))return 0;var n,r,i,o,a,s,u,l,c,f,d,h;if((r=e[0]).x=0,r.y=0,!(a>1))return r.r;if(i=e[1],r.x=-i.r,i.x=r.r,i.y=0,!(a>2))return r.r+i.r;O(i,r,o=e[2]),r=new P(r),i=new P(i),o=new P(o),r.next=o.previous=i,i.next=r.previous=o,o.next=i.previous=r;e:for(l=3;l<a;++l){O(r._,i._,o=e[l]),o=new P(o),c=i.next,f=r.previous,d=i._.r,h=r._.r;do{if(d<=h){if(T(c._,o._)){i=c,r.next=i,i.previous=r,--l;continue e}d+=c._.r,c=c.next}else{if(T(f._,o._)){(r=f).next=i,i.previous=r,--l;continue e}h+=f._.r,f=f.previous}}while(c!==f.next);for(o.previous=r,o.next=i,r.next=i.previous=i=o,s=N(r);(o=o.next)!==i;)(u=N(o))<s&&(r=o,s=u);i=r.next}for(r=[i._],o=i;(o=o.next)!==i;)r.push(o._);for(o=E(r,t),l=0;l<a;++l)(r=e[l]).x-=o.x,r.y-=o.y;return o.r}function R(e){return I(e,_()),e}function j(e){return Math.sqrt(e.value)}function L(){var e=null,t=1,n=1,r=g;function i(i){const o=_();return i.x=t/2,i.y=n/2,e?i.eachBefore(B(e)).eachAfter(z(r,.5,o)).eachBefore(U(1)):i.eachBefore(B(j)).eachAfter(z(g,1,o)).eachAfter(z(r,i.r/Math.min(t,n),o)).eachBefore(U(Math.min(t,n)/(2*i.r))),i}return i.radius=function(t){return arguments.length?(e=p(t),i):e},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(e){return arguments.length?(r="function"===typeof e?e:y(+e),i):r},i}function B(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function z(e,t,n){return function(r){if(i=r.children){var i,o,a,s=i.length,u=e(r)*t||0;if(u)for(o=0;o<s;++o)i[o].r+=u;if(a=I(i,n),u)for(o=0;o<s;++o)i[o].r-=u;r.r=a+u}}}function U(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function H(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 q(e,t,n,r,i){for(var o,a=e.children,s=-1,u=a.length,l=e.value&&(r-t)/e.value;++s<u;)(o=a[s]).y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function G(){var e=1,t=1,n=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=n,i.x1=e,i.y1=t/o,i.eachBefore(function(e,t){return function(r){r.children&&q(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var i=r.x0,o=r.y0,a=r.x1-n,s=r.y1-n;a<i&&(i=a=(i+a)/2),s<o&&(o=s=(o+s)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=s}}(t,o)),r&&i.eachBefore(H),i}return i.round=function(e){return arguments.length?(r=!!e,i):r},i.size=function(n){return arguments.length?(e=+n[0],t=+n[1],i):[e,t]},i.padding=function(e){return arguments.length?(n=+e,i):n},i}var W={depth:-1},V={},Q={};function $(e){return e.id}function K(e){return e.parentId}function Y(){var e,t=$,n=K;function r(r){var i,o,a,s,u,l,c,f,p=Array.from(r),m=t,g=n,y=new Map;if(null!=e){const t=p.map(((t,n)=>function(e){e="".concat(e);let t=e.length;Z(e,t-1)&&!Z(e,t-2)&&(e=e.slice(0,-1));return"/"===e[0]?e:"/".concat(e)}(e(t,n,r)))),n=t.map(X),i=new Set(t).add("");for(const e of n)i.has(e)||(i.add(e),t.push(e),n.push(X(e)),p.push(Q));m=(e,n)=>t[n],g=(e,t)=>n[t]}for(a=0,i=p.length;a<i;++a)o=p[a],l=p[a]=new h(o),null!=(c=m(o,a,r))&&(c+="")&&(f=l.id=c,y.set(f,y.has(f)?V:l)),null!=(c=g(o,a,r))&&(c+="")&&(l.parent=c);for(a=0;a<i;++a)if(c=(l=p[a]).parent){if(!(u=y.get(c)))throw new Error("missing: "+c);if(u===V)throw new Error("ambiguous: "+c);u.children?u.children.push(l):u.children=[l],l.parent=u}else{if(s)throw new Error("multiple roots");s=l}if(!s)throw new Error("no root");if(null!=e){for(;s.data===Q&&1===s.children.length;)s=s.children[0],--i;for(let e=p.length-1;e>=0&&(l=p[e]).data===Q;--e)l.data=null}if(s.parent=W,s.eachBefore((function(e){e.depth=e.parent.depth+1,--i})).eachBefore(d),s.parent=null,i>0)throw new Error("cycle");return s}return r.id=function(e){return arguments.length?(t=p(e),r):t},r.parentId=function(e){return arguments.length?(n=p(e),r):n},r.path=function(t){return arguments.length?(e=p(t),r):e},r}function X(e){let t=e.length;if(t<2)return"";for(;--t>1&&!Z(e,t););return e.slice(0,t)}function Z(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(0===(1&n))return!0}return!1}function J(e,t){return e.parent===t.parent?1:2}function ee(e){var t=e.children;return t?t[0]:e.t}function te(e){var t=e.children;return t?t[t.length-1]:e.t}function ne(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function re(e,t,n){return e.a.parent===t.parent?e.a:n}function ie(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function oe(){var e=J,t=1,n=1,r=null;function i(i){var u=function(e){for(var t,n,r,i,o,a=new ie(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=t.children[i]=new ie(r[i],i)),n.parent=t;return(a.parent=new ie(null,0)).children=[a],a}(i);if(u.eachAfter(o),u.parent.m=-u.z,u.eachBefore(a),r)i.eachBefore(s);else{var l=i,c=i,f=i;i.eachBefore((function(e){e.x<l.x&&(l=e),e.x>c.x&&(c=e),e.depth>f.depth&&(f=e)}));var d=l===c?1:e(l,c)/2,h=d-l.x,p=t/(c.x+d+h),m=n/(f.depth||1);i.eachBefore((function(e){e.x=(e.x+h)*p,e.y=e.depth*m}))}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,s=n,u=o.parent.children[0],l=o.m,c=a.m,f=s.m,d=u.m;s=te(s),o=ee(o),s&&o;)u=ee(u),(a=te(a)).a=t,(i=s.z+f-o.z-l+e(s._,o._))>0&&(ne(re(s,t,r),t,i),l+=i,c+=i),f+=s.m,l+=o.m,d+=u.m,c+=a.m;s&&!te(a)&&(a.t=s,a.m+=f-c),o&&!ee(u)&&(u.t=o,u.m+=l-d,r=t)}return r}(t,i,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*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 ae(e,t,n,r,i){for(var o,a=e.children,s=-1,u=a.length,l=e.value&&(i-n)/e.value;++s<u;)(o=a[s]).x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}ie.prototype=Object.create(h.prototype);var se=(1+Math.sqrt(5))/2;function ue(e,t,n,r,i,o){for(var a,s,u,l,c,f,d,h,p,m,g,y=[],v=t.children,b=0,w=0,_=v.length,x=t.value;b<_;){u=i-n,l=o-r;do{c=v[w++].value}while(!c&&w<_);for(f=d=c,g=c*c*(m=Math.max(l/u,u/l)/(x*e)),p=Math.max(d/g,g/f);w<_;++w){if(c+=s=v[w].value,s<f&&(f=s),s>d&&(d=s),g=c*c*m,(h=Math.max(d/g,g/f))>p){c-=s;break}p=h}y.push(a={value:c,dice:u<l,children:v.slice(b,w)}),a.dice?q(a,n,r,i,x?r+=l*c/x:o):ae(a,n,r,x?n+=u*c/x:i,o),x-=c,b=w}return y}const le=function e(t){function n(e,n,r,i,o){ue(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(se);function ce(){var e=le,t=!1,n=1,r=1,i=[0],o=g,a=g,s=g,u=g,l=g;function c(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(f),i=[0],t&&e.eachBefore(H),e}function f(t){var n=i[t.depth],r=t.x0+n,c=t.y0+n,f=t.x1-n,d=t.y1-n;f<r&&(r=f=(r+f)/2),d<c&&(c=d=(c+d)/2),t.x0=r,t.y0=c,t.x1=f,t.y1=d,t.children&&(n=i[t.depth+1]=o(t)/2,r+=l(t)-n,c+=a(t)-n,(f-=s(t)-n)<r&&(r=f=(r+f)/2),(d-=u(t)-n)<c&&(c=d=(c+d)/2),e(t,r,c,f,d))}return c.round=function(e){return arguments.length?(t=!!e,c):t},c.size=function(e){return arguments.length?(n=+e[0],r=+e[1],c):[n,r]},c.tile=function(t){return arguments.length?(e=m(t),c):e},c.padding=function(e){return arguments.length?c.paddingInner(e).paddingOuter(e):c.paddingInner()},c.paddingInner=function(e){return arguments.length?(o="function"===typeof e?e:y(+e),c):o},c.paddingOuter=function(e){return arguments.length?c.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):c.paddingTop()},c.paddingTop=function(e){return arguments.length?(a="function"===typeof e?e:y(+e),c):a},c.paddingRight=function(e){return arguments.length?(s="function"===typeof e?e:y(+e),c):s},c.paddingBottom=function(e){return arguments.length?(u="function"===typeof e?e:y(+e),c):u},c.paddingLeft=function(e){return arguments.length?(l="function"===typeof e?e:y(+e),c):l},c}function fe(e,t,n,r,i){var o,a,s=e.children,u=s.length,l=new Array(u+1);for(l[0]=a=o=0;o<u;++o)l[o+1]=a+=s[o].value;!function e(t,n,r,i,o,a,u){if(t>=n-1){var c=s[t];return c.x0=i,c.y0=o,c.x1=a,void(c.y1=u)}var f=l[t],d=r/2+f,h=t+1,p=n-1;for(;h<p;){var m=h+p>>>1;l[m]<d?h=m+1:p=m}d-l[h-1]<l[h]-d&&t+1<h&&--h;var g=l[h]-f,y=r-g;if(a-i>u-o){var v=r?(i*y+a*g)/r:a;e(t,h,g,i,o,v,u),e(h,n,y,v,o,a,u)}else{var b=r?(o*y+u*g)/r:u;e(t,h,g,i,o,a,b),e(h,n,y,i,b,a,u)}}(0,u,e.value,t,n,r,i)}function de(e,t,n,r,i){(1&e.depth?ae:q)(e,t,n,r,i)}const he=function e(t){function n(e,n,r,i,o){if((a=e._squarify)&&a.ratio===t)for(var a,s,u,l,c,f=-1,d=a.length,h=e.value;++f<d;){for(u=(s=a[f]).children,l=s.value=0,c=u.length;l<c;++l)s.value+=u[l].value;s.dice?q(s,n,r,i,h?r+=(o-r)*s.value/h:o):ae(s,n,r,h?n+=(i-n)*s.value/h:i,o),h-=s.value}else e._squarify=a=ue(t,e,n,r,i,o),a.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(se)},9253:(e,t,n)=>{"use strict";function r(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}n.d(t,{A:()=>r})},2278:(e,t,n)=>{"use strict";function r(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}n.d(t,{A:()=>r})},6111:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(5156),i=n(5883);function o(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===i.g&&t.documentElement.namespaceURI===i.g?t.createElement(e):t.createElementNS(n,e)}}function a(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function s(e){var t=(0,r.A)(e);return(t.local?a:o)(t)}},1688:(e,t,n)=>{"use strict";n.r(t),n.d(t,{create:()=>o,creator:()=>r.A,local:()=>s,matcher:()=>l.A,namespace:()=>c.A,namespaces:()=>f.A,pointer:()=>d.A,pointers:()=>p,select:()=>i.A,selectAll:()=>y,selection:()=>g.Ay,selector:()=>v.A,selectorAll:()=>b.A,style:()=>w.j,window:()=>_.A});var r=n(6111),i=n(4935);function o(e){return(0,i.A)((0,r.A)(e).call(document.documentElement))}var a=0;function s(){return new u}function u(){this._="@"+(++a).toString(36)}u.prototype=s.prototype={constructor:u,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var l=n(6765),c=n(5156),f=n(5883),d=n(5378),h=n(3700);function p(e,t){return e.target&&(e=(0,h.A)(e),void 0===t&&(t=e.currentTarget),e=e.touches||[e]),Array.from(e,(e=>(0,d.A)(e,t)))}var m=n(2278),g=n(4235);function y(e){return"string"===typeof e?new g.LN([document.querySelectorAll(e)],[document.documentElement]):new g.LN([(0,m.A)(e)],g.zr)}var v=n(7358),b=n(1883),w=n(4563),_=n(9579)},6765:(e,t,n)=>{"use strict";function r(e){return function(){return this.matches(e)}}function i(e){return function(t){return t.matches(e)}}n.d(t,{A:()=>r,j:()=>i})},5156:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(5883);function i(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.A.hasOwnProperty(t)?{space:r.A[t],local:e}:e}},5883:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,g:()=>r});var r="http://www.w3.org/1999/xhtml";const i={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},5378:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3700);function i(e,t){if(e=(0,r.A)(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}},4935:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(4235);function i(e){return"string"===typeof e?new r.LN([[document.querySelector(e)]],[document.documentElement]):new r.LN([[e]],r.zr)}},4235:(e,t,n)=>{"use strict";n.d(t,{LN:()=>re,Ay:()=>oe,zr:()=>ne});var r=n(7358);var i=n(2278),o=n(1883);var a=n(6765),s=Array.prototype.find;function u(){return this.firstElementChild}var l=Array.prototype.filter;function c(){return Array.from(this.children)}function f(e){return new Array(e.length)}function d(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function h(e,t,n,r,i,o){for(var a,s=0,u=t.length,l=o.length;s<l;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new d(e,o[s]);for(;s<u;++s)(a=t[s])&&(i[s]=a)}function p(e,t,n,r,i,o,a){var s,u,l,c=new Map,f=t.length,h=o.length,p=new Array(f);for(s=0;s<f;++s)(u=t[s])&&(p[s]=l=a.call(u,u.__data__,s,t)+"",c.has(l)?i[s]=u:c.set(l,u));for(s=0;s<h;++s)l=a.call(e,o[s],s,o)+"",(u=c.get(l))?(r[s]=u,u.__data__=o[s],c.delete(l)):n[s]=new d(e,o[s]);for(s=0;s<f;++s)(u=t[s])&&c.get(p[s])===u&&(i[s]=u)}function m(e){return e.__data__}function g(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function y(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}d.prototype={constructor:d,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)}};var v=n(5156);function b(e){return function(){this.removeAttribute(e)}}function w(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _(e,t){return function(){this.setAttribute(e,t)}}function x(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function E(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function k(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var S=n(4563);function A(e){return function(){delete this[e]}}function C(e,t){return function(){this[e]=t}}function D(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function M(e){return e.trim().split(/^|\s+/)}function F(e){return e.classList||new O(e)}function O(e){this._node=e,this._names=M(e.getAttribute("class")||"")}function T(e,t){for(var n=F(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function N(e,t){for(var n=F(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function P(e){return function(){T(this,e)}}function I(e){return function(){N(this,e)}}function R(e,t){return function(){(t.apply(this,arguments)?T:N)(this,e)}}function j(){this.textContent=""}function L(e){return function(){this.textContent=e}}function B(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function z(){this.innerHTML=""}function U(e){return function(){this.innerHTML=e}}function H(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function q(){this.nextSibling&&this.parentNode.appendChild(this)}function G(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}O.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}};var W=n(6111);function V(){return null}function Q(){var e=this.parentNode;e&&e.removeChild(this)}function $(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function K(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Y(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function X(e,t,n){return function(){var r,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}var Z=n(9579);function J(e,t,n){var r=(0,Z.A)(e),i=r.CustomEvent;"function"===typeof i?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 ee(e,t){return function(){return J(this,e,t)}}function te(e,t){return function(){return J(this,e,t.apply(this,arguments))}}var ne=[null];function re(e,t){this._groups=e,this._parents=t}function ie(){return new re([[document.documentElement]],ne)}re.prototype=ie.prototype={constructor:re,select:function(e){"function"!==typeof e&&(e=(0,r.A)(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var a,s,u=t[o],l=u.length,c=i[o]=new Array(l),f=0;f<l;++f)(a=u[f])&&(s=e.call(a,a.__data__,f,u))&&("__data__"in a&&(s.__data__=a.__data__),c[f]=s);return new re(i,this._parents)},selectAll:function(e){e="function"===typeof e?function(e){return function(){return(0,i.A)(e.apply(this,arguments))}}(e):(0,o.A)(e);for(var t=this._groups,n=t.length,r=[],a=[],s=0;s<n;++s)for(var u,l=t[s],c=l.length,f=0;f<c;++f)(u=l[f])&&(r.push(e.call(u,u.__data__,f,l)),a.push(u));return new re(r,a)},selectChild:function(e){return this.select(null==e?u:function(e){return function(){return s.call(this.children,e)}}("function"===typeof e?e:(0,a.j)(e)))},selectChildren:function(e){return this.selectAll(null==e?c:function(e){return function(){return l.call(this.children,e)}}("function"===typeof e?e:(0,a.j)(e)))},filter:function(e){"function"!==typeof e&&(e=(0,a.A)(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,s=t[i],u=s.length,l=r[i]=[],c=0;c<u;++c)(o=s[c])&&e.call(o,o.__data__,c,s)&&l.push(o);return new re(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,m);var n,r=t?p:h,i=this._parents,o=this._groups;"function"!==typeof e&&(n=e,e=function(){return n});for(var a=o.length,s=new Array(a),u=new Array(a),l=new Array(a),c=0;c<a;++c){var f=i[c],d=o[c],y=d.length,v=g(e.call(f,f&&f.__data__,c,i)),b=v.length,w=u[c]=new Array(b),_=s[c]=new Array(b);r(f,d,w,_,l[c]=new Array(y),v,t);for(var x,E,k=0,S=0;k<b;++k)if(x=w[k]){for(k>=S&&(S=k+1);!(E=_[S])&&++S<b;);x._next=E||null}}return(s=new re(s,i))._enter=u,s._exit=l,s},enter:function(){return new re(this._enter||this._groups.map(f),this._parents)},exit:function(){return new re(this._exit||this._groups.map(f),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"===typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),u=0;u<a;++u)for(var l,c=n[u],f=r[u],d=c.length,h=s[u]=new Array(d),p=0;p<d;++p)(l=c[p]||f[p])&&(h[p]=l);for(;u<i;++u)s[u]=n[u];return new re(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=y);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,l=i[o]=new Array(u),c=0;c<u;++c)(a=s[c])&&(l[c]=a);l.sort(t)}return new re(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=(0,v.A)(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?w:b:"function"===typeof t?n.local?k:E:n.local?x:_)(n,t))},style:S.A,property:function(e,t){return arguments.length>1?this.each((null==t?A:"function"===typeof t?D:C)(e,t)):this.node()[e]},classed:function(e,t){var n=M(e+"");if(arguments.length<2){for(var r=F(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof t?R:t?P:I)(n,t))},text:function(e){return arguments.length?this.each(null==e?j:("function"===typeof e?B:L)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?z:("function"===typeof e?H:U)(e)):this.node().innerHTML},raise:function(){return this.each(q)},lower:function(){return this.each(G)},append:function(e){var t="function"===typeof e?e:(0,W.A)(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:(0,W.A)(e),i=null==t?V:"function"===typeof t?t:(0,r.A)(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(Q)},clone:function(e){return this.select(e?K:$)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=function(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}}))}(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?X:Y,r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var u,l=0,c=s.length;l<c;++l)for(r=0,u=s[l];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(e,t){return this.each(("function"===typeof t?te:ee)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};const oe=ie},4563:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,j:()=>u});var r=n(9579);function i(e){return function(){this.style.removeProperty(e)}}function o(e,t,n){return function(){this.style.setProperty(e,t,n)}}function a(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function s(e,t,n){return arguments.length>1?this.each((null==t?i:"function"===typeof t?a:o)(e,t,null==n?"":n)):u(this.node(),e)}function u(e,t){return e.style.getPropertyValue(t)||(0,r.A)(e).getComputedStyle(e,null).getPropertyValue(t)}},7358:(e,t,n)=>{"use strict";function r(){}function i(e){return null==e?r:function(){return this.querySelector(e)}}n.d(t,{A:()=>i})},1883:(e,t,n)=>{"use strict";function r(){return[]}function i(e){return null==e?r:function(){return this.querySelectorAll(e)}}n.d(t,{A:()=>i})},3700:(e,t,n)=>{"use strict";function r(e){let t;for(;t=e.sourceEvent;)e=t;return e}n.d(t,{A:()=>r})},9579:(e,t,n)=>{"use strict";function r(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}n.d(t,{A:()=>r})},944:(e,t,n)=>{"use strict";n.r(t),n.d(t,{active:()=>lt,interrupt:()=>N,transition:()=>rt});var r,i,o=n(4235),a=n(1082),s=0,u=0,l=0,c=0,f=0,d=0,h="object"===typeof performance&&performance.now?performance:Date,p="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function m(){return f||(p(g),f=h.now()+d)}function g(){f=0}function y(){this._call=this._time=this._next=null}function v(e,t,n){var r=new y;return r.restart(e,t,n),r}function b(){f=(c=h.now())+d,s=u=0;try{!function(){m(),++s;for(var e,t=r;t;)(e=f-t._time)>=0&&t._call.call(void 0,e),t=t._next;--s}()}finally{s=0,function(){var e,t,n=r,o=1/0;for(;n;)n._call?(o>n._time&&(o=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:r=t);i=e,_(o)}(),f=0}}function w(){var e=h.now(),t=e-c;t>1e3&&(d-=t,c=e)}function _(e){s||(u&&(u=clearTimeout(u)),e-f>24?(e<1/0&&(u=setTimeout(b,e-h.now()-d)),l&&(l=clearInterval(l))):(l||(c=h.now(),l=setInterval(w,1e3)),s=1,p(b)))}function x(e,t,n){var r=new y;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}y.prototype=v.prototype={constructor:y,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?m():+n)+(null==t?0:+t),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=e,this._time=n,_()},stop:function(){this._call&&(this._call=null,this._time=1/0,_())}};var E=(0,a.A)("start","end","cancel","interrupt"),k=[],S=1,A=2,C=5,D=6;function M(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=S,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var l,c,f,d;if(n.state!==S)return u();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return x(a);4===d.state?(d.state=D,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[l]):+l<t&&(d.state=D,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[l])}if(x((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=A,n.on.call("start",e,e.__data__,n.index,n.group),n.state===A){for(n.state=3,r=new Array(f=n.tween.length),l=0,c=-1;l<f;++l)(d=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=d);r.length=c+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(u),n.state=C,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);n.state===C&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){for(var r in n.state=D,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=v(o,0,n.time)}(e,n,{name:t,index:r,group:i,on:E,tween:k,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function F(e,t){var n=T(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function O(e,t){var n=T(e,t);if(n.state>3)throw new Error("too late; already running");return n}function T(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function N(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>A&&n.state<C,n.state=D,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}var P,I=n(9253),R=180/Math.PI,j={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function L(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*R,skewX:Math.atan(u)*R,scaleX:a,scaleY:s}}function B(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],u=[];return o=e(o),a=e(a),function(e,r,i,o,a,s){if(e!==i||r!==o){var u=a.push("translate(",null,t,null,n);s.push({i:u-4,x:(0,I.A)(e,i)},{i:u-2,x:(0,I.A)(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,u),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:(0,I.A)(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,u),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:(0,I.A)(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,u),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,I.A)(e,n)},{i:s-2,x:(0,I.A)(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(e){for(var t,n=-1,r=u.length;++n<r;)s[(t=u[n]).i]=t.x(e);return s.join("")}}}var z=B((function(e){const t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?j:L(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),U=B((function(e){return null==e?j:(P||(P=document.createElementNS("http://www.w3.org/2000/svg","g")),P.setAttribute("transform",e),(e=P.transform.baseVal.consolidate())?L((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):j)}),", ",")",")"),H=n(5156);function q(e,t){var n,r;return function(){var i=O(this,e),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}function G(e,t,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=O(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}o.tween=i}}function W(e,t,n){var r=e._id;return e.each((function(){var e=O(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return T(e,r).value[t]}}function V(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Q(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function $(){}var K=.7,Y=1/K,X="\\s*([+-]?\\d+)\\s*",Z="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",J="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ee=/^#([0-9a-f]{3,8})$/,te=new RegExp("^rgb\\(".concat(X,",").concat(X,",").concat(X,"\\)$")),ne=new RegExp("^rgb\\(".concat(J,",").concat(J,",").concat(J,"\\)$")),re=new RegExp("^rgba\\(".concat(X,",").concat(X,",").concat(X,",").concat(Z,"\\)$")),ie=new RegExp("^rgba\\(".concat(J,",").concat(J,",").concat(J,",").concat(Z,"\\)$")),oe=new RegExp("^hsl\\(".concat(Z,",").concat(J,",").concat(J,"\\)$")),ae=new RegExp("^hsla\\(".concat(Z,",").concat(J,",").concat(J,",").concat(Z,"\\)$")),se={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ue(){return this.rgb().formatHex()}function le(){return this.rgb().formatRgb()}function ce(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ee.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?fe(t):3===n?new pe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?de(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?de(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=te.exec(e))?new pe(t[1],t[2],t[3],1):(t=ne.exec(e))?new pe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=re.exec(e))?de(t[1],t[2],t[3],t[4]):(t=ie.exec(e))?de(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=oe.exec(e))?we(t[1],t[2]/100,t[3]/100,1):(t=ae.exec(e))?we(t[1],t[2]/100,t[3]/100,t[4]):se.hasOwnProperty(e)?fe(se[e]):"transparent"===e?new pe(NaN,NaN,NaN,0):null}function fe(e){return new pe(e>>16&255,e>>8&255,255&e,1)}function de(e,t,n,r){return r<=0&&(e=t=n=NaN),new pe(e,t,n,r)}function he(e,t,n,r){return 1===arguments.length?((i=e)instanceof $||(i=ce(i)),i?new pe((i=i.rgb()).r,i.g,i.b,i.opacity):new pe):new pe(e,t,n,null==r?1:r);var i}function pe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function me(){return"#".concat(be(this.r)).concat(be(this.g)).concat(be(this.b))}function ge(){const e=ye(this.opacity);return"".concat(1===e?"rgb(":"rgba(").concat(ve(this.r),", ").concat(ve(this.g),", ").concat(ve(this.b)).concat(1===e?")":", ".concat(e,")"))}function ye(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ve(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function be(e){return((e=ve(e))<16?"0":"")+e.toString(16)}function we(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new xe(e,t,n,r)}function _e(e){if(e instanceof xe)return new xe(e.h,e.s,e.l,e.opacity);if(e instanceof $||(e=ce(e)),!e)return new xe;if(e instanceof xe)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new xe(a,s,u,e.opacity)}function xe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ee(e){return(e=(e||0)%360)<0?e+360:e}function ke(e){return Math.max(0,Math.min(1,e||0))}function Se(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Ae(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}V($,ce,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ue,formatHex:ue,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _e(this).formatHsl()},formatRgb:le,toString:le}),V(pe,he,Q($,{brighter(e){return e=null==e?Y:Math.pow(Y,e),new pe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?K:Math.pow(K,e),new pe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new pe(ve(this.r),ve(this.g),ve(this.b),ye(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:me,formatHex:me,formatHex8:function(){return"#".concat(be(this.r)).concat(be(this.g)).concat(be(this.b)).concat(be(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:ge,toString:ge})),V(xe,(function(e,t,n,r){return 1===arguments.length?_e(e):new xe(e,t,n,null==r?1:r)}),Q($,{brighter(e){return e=null==e?Y:Math.pow(Y,e),new xe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?K:Math.pow(K,e),new xe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),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 pe(Se(e>=240?e-240:e+120,i,r),Se(e,i,r),Se(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new xe(Ee(this.h),ke(this.s),ke(this.l),ye(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(){const e=ye(this.opacity);return"".concat(1===e?"hsl(":"hsla(").concat(Ee(this.h),", ").concat(100*ke(this.s),"%, ").concat(100*ke(this.l),"%").concat(1===e?")":", ".concat(e,")"))}}));const Ce=e=>()=>e;function De(e,t){return function(n){return e+n*t}}function Me(e){return 1===(e=+e)?Fe:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ce(isNaN(t)?n:t)}}function Fe(e,t){var n=t-e;return n?De(e,n):Ce(isNaN(e)?t:e)}const Oe=function e(t){var n=Me(t);function r(e,t){var r=n((e=he(e)).r,(t=he(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Fe(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Te(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=he(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}Te((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return Ae((n-r/t)*t,a,i,o,s)}})),Te((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return Ae((n-r/t)*t,i,o,a,s)}}));var Ne=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Pe=new RegExp(Ne.source,"g");function Ie(e,t){var n,r,i,o=Ne.lastIndex=Pe.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=Ne.exec(e))&&(r=Pe.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:(0,I.A)(n,r)})),o=Pe.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})}function Re(e,t){var n;return("number"===typeof t?I.A:t instanceof ce?Oe:(n=ce(t))?(t=n,Oe):Ie)(e,t)}function je(e){return function(){this.removeAttribute(e)}}function Le(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Be(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function ze(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function Ue(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttribute(e))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttribute(e)}}function He(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttributeNS(e.space,e.local))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttributeNS(e.space,e.local)}}function qe(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,i)),n}return i._value=t,i}function Ge(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,i)),n}return i._value=t,i}function We(e,t){return function(){F(this,e).delay=+t.apply(this,arguments)}}function Ve(e,t){return t=+t,function(){F(this,e).delay=t}}function Qe(e,t){return function(){O(this,e).duration=+t.apply(this,arguments)}}function $e(e,t){return t=+t,function(){O(this,e).duration=t}}var Ke=n(6765);var Ye=n(7358);var Xe=n(1883);var Ze=o.Ay.prototype.constructor;var Je=n(4563);function et(e){return function(){this.style.removeProperty(e)}}var tt=0;function nt(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function rt(e){return(0,o.Ay)().transition(e)}function it(){return++tt}var ot=o.Ay.prototype;nt.prototype=rt.prototype={constructor:nt,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=(0,Ye.A)(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,l=r[a],c=l.length,f=o[a]=new Array(c),d=0;d<c;++d)(s=l[d])&&(u=e.call(s,s.__data__,d,l))&&("__data__"in s&&(u.__data__=s.__data__),f[d]=u,M(f[d],t,n,d,f,T(s,n)));return new nt(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=(0,Xe.A)(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,l=r[s],c=l.length,f=0;f<c;++f)if(u=l[f]){for(var d,h=e.call(u,u.__data__,f,l),p=T(u,n),m=0,g=h.length;m<g;++m)(d=h[m])&&M(d,t,n,m,h,p);o.push(h),a.push(u)}return new nt(o,a,t,n)},selectChild:ot.selectChild,selectChildren:ot.selectChildren,filter:function(e){"function"!==typeof e&&(e=(0,Ke.A)(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new nt(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],f=l.length,d=a[s]=new Array(f),h=0;h<f;++h)(u=l[h]||c[h])&&(d[h]=u);for(;s<r;++s)a[s]=t[s];return new nt(a,this._parents,this._name,this._id)},selection:function(){return new Ze(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=it(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)if(a=s[l]){var c=T(a,t);M(a,e,n,l,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new nt(r,this._parents,e,n)},call:ot.call,nodes:ot.nodes,node:ot.node,size:ot.size,empty:ot.empty,each:ot.each,on:function(e,t){var n=this._id;return arguments.length<2?T(this.node(),n).on.on(e):this.each(function(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?F:O;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}(n,e,t))},attr:function(e,t){var n=(0,H.A)(e),r="transform"===n?U:Re;return this.attrTween(e,"function"===typeof t?(n.local?He:Ue)(n,r,W(this,"attr."+e,t)):null==t?(n.local?Le:je)(n):(n.local?ze:Be)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=(0,H.A)(e);return this.tween(n,(r.local?qe:Ge)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?z:Re;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=(0,Je.j)(this,e),a=(this.style.removeProperty(e),(0,Je.j)(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,et(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=(0,Je.j)(this,e),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(e),u=s=(0,Je.j)(this,e)),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}(e,r,W(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var u=O(this,e),l=u.on,c=null==u.value[a]?o||(o=et(t)):void 0;l===n&&i===c||(r=(n=l).copy()).on(s,i=c),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=(0,Je.j)(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,o,n)),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(W(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=T(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?q:G)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?We:Ve)(t,e)):T(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Qe:$e)(t,e)):T(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!==typeof t)throw new Error;return function(){O(this,e).ease=t}}(t,e)):T(this.node(),t).ease},easeVarying:function(e){if("function"!==typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;O(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0===--i&&o()}};n.each((function(){var n=O(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),n.on=t})),0===i&&o()}))},[Symbol.iterator]:ot[Symbol.iterator]};var at={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function st(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error("transition ".concat(t," not found"));return n}o.Ay.prototype.interrupt=function(e){return this.each((function(){N(this,e)}))},o.Ay.prototype.transition=function(e){var t,n;e instanceof nt?(t=e._id,e=e._name):(t=it(),(n=at).time=m(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)(a=s[l])&&M(a,e,t,l,s,n||st(a,t));return new nt(r,this._parents,e,t)};var ut=[null];function lt(e,t){var n,r,i=e.__transition;if(i)for(r in t=null==t?null:t+"",i)if((n=i[r]).state>S&&n.name===t)return new nt([[e]],ut,t,+r);return null}},9011:e=>{"use strict";e.exports=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","lipsy","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shell","shia","shiksha","shoes","shop","shopping","shouji","show","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","verm\xf6gensberater","verm\xf6gensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","\u03b5\u03bb","\u03b5\u03c5","\u0431\u0433","\u0431\u0435\u043b","\u0434\u0435\u0442\u0438","\u0435\u044e","\u043a\u0430\u0442\u043e\u043b\u0438\u043a","\u043a\u043e\u043c","\u043c\u043a\u0434","\u043c\u043e\u043d","\u043c\u043e\u0441\u043a\u0432\u0430","\u043e\u043d\u043b\u0430\u0439\u043d","\u043e\u0440\u0433","\u0440\u0443\u0441","\u0440\u0444","\u0441\u0430\u0439\u0442","\u0441\u0440\u0431","\u0443\u043a\u0440","\u049b\u0430\u0437","\u0570\u0561\u0575","\u05d9\u05e9\u05e8\u05d0\u05dc","\u05e7\u05d5\u05dd","\u0627\u0628\u0648\u0638\u0628\u064a","\u0627\u0631\u0627\u0645\u0643\u0648","\u0627\u0644\u0627\u0631\u062f\u0646","\u0627\u0644\u0628\u062d\u0631\u064a\u0646","\u0627\u0644\u062c\u0632\u0627\u0626\u0631","\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629","\u0627\u0644\u0639\u0644\u064a\u0627\u0646","\u0627\u0644\u0645\u063a\u0631\u0628","\u0627\u0645\u0627\u0631\u0627\u062a","\u0627\u06cc\u0631\u0627\u0646","\u0628\u0627\u0631\u062a","\u0628\u0627\u0632\u0627\u0631","\u0628\u064a\u062a\u0643","\u0628\u06be\u0627\u0631\u062a","\u062a\u0648\u0646\u0633","\u0633\u0648\u062f\u0627\u0646","\u0633\u0648\u0631\u064a\u0629","\u0634\u0628\u0643\u0629","\u0639\u0631\u0627\u0642","\u0639\u0631\u0628","\u0639\u0645\u0627\u0646","\u0641\u0644\u0633\u0637\u064a\u0646","\u0642\u0637\u0631","\u0643\u0627\u062b\u0648\u0644\u064a\u0643","\u0643\u0648\u0645","\u0645\u0635\u0631","\u0645\u0644\u064a\u0633\u064a\u0627","\u0645\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u0627","\u0645\u0648\u0642\u0639","\u0647\u0645\u0631\u0627\u0647","\u067e\u0627\u06a9\u0633\u062a\u0627\u0646","\u0680\u0627\u0631\u062a","\u0915\u0949\u092e","\u0928\u0947\u091f","\u092d\u093e\u0930\u0924","\u092d\u093e\u0930\u0924\u092e\u094d","\u092d\u093e\u0930\u094b\u0924","\u0938\u0902\u0917\u0920\u0928","\u09ac\u09be\u0982\u09b2\u09be","\u09ad\u09be\u09b0\u09a4","\u09ad\u09be\u09f0\u09a4","\u0a2d\u0a3e\u0a30\u0a24","\u0aad\u0abe\u0ab0\u0aa4","\u0b2d\u0b3e\u0b30\u0b24","\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe","\u0b87\u0bb2\u0b99\u0bcd\u0b95\u0bc8","\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd","\u0c2d\u0c3e\u0c30\u0c24\u0c4d","\u0cad\u0cbe\u0cb0\u0ca4","\u0d2d\u0d3e\u0d30\u0d24\u0d02","\u0dbd\u0d82\u0d9a\u0dcf","\u0e04\u0e2d\u0e21","\u0e44\u0e17\u0e22","\u0ea5\u0eb2\u0ea7","\u10d2\u10d4","\u307f\u3093\u306a","\u30a2\u30de\u30be\u30f3","\u30af\u30e9\u30a6\u30c9","\u30b0\u30fc\u30b0\u30eb","\u30b3\u30e0","\u30b9\u30c8\u30a2","\u30bb\u30fc\u30eb","\u30d5\u30a1\u30c3\u30b7\u30e7\u30f3","\u30dd\u30a4\u30f3\u30c8","\u4e16\u754c","\u4e2d\u4fe1","\u4e2d\u56fd","\u4e2d\u570b","\u4e2d\u6587\u7f51","\u4e9a\u9a6c\u900a","\u4f01\u4e1a","\u4f5b\u5c71","\u4fe1\u606f","\u5065\u5eb7","\u516b\u5366","\u516c\u53f8","\u516c\u76ca","\u53f0\u6e7e","\u53f0\u7063","\u5546\u57ce","\u5546\u5e97","\u5546\u6807","\u5609\u91cc","\u5609\u91cc\u5927\u9152\u5e97","\u5728\u7ebf","\u5927\u62ff","\u5929\u4e3b\u6559","\u5a31\u4e50","\u5bb6\u96fb","\u5e7f\u4e1c","\u5fae\u535a","\u6148\u5584","\u6211\u7231\u4f60","\u624b\u673a","\u62db\u8058","\u653f\u52a1","\u653f\u5e9c","\u65b0\u52a0\u5761","\u65b0\u95fb","\u65f6\u5c1a","\u66f8\u7c4d","\u673a\u6784","\u6de1\u9a6c\u9521","\u6e38\u620f","\u6fb3\u9580","\u70b9\u770b","\u79fb\u52a8","\u7ec4\u7ec7\u673a\u6784","\u7f51\u5740","\u7f51\u5e97","\u7f51\u7ad9","\u7f51\u7edc","\u8054\u901a","\u8c37\u6b4c","\u8d2d\u7269","\u901a\u8ca9","\u96c6\u56e2","\u96fb\u8a0a\u76c8\u79d1","\u98de\u5229\u6d66","\u98df\u54c1","\u9910\u5385","\u9999\u683c\u91cc\u62c9","\u9999\u6e2f","\ub2f7\ub137","\ub2f7\ucef4","\uc0bc\uc131","\ud55c\uad6d"]')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(o,a),o}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+"."+{52:"7232df18",239:"18818b4f",760:"458abb63",962:"e2ec4809"}[e]+".chunk.js",n.miniCssF=e=>{},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="topola-viewer:";n.l=(r,i,o,a)=>{if(e[r])e[r].push(i);else{var s,u;if(void 0!==o)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var f=l[c];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+o){s=f;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];var d=(t,n)=>{s.onerror=s.onload=null,clearTimeout(h);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),u&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="./",(()=>{var e={792:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var o=new Promise(((n,r)=>i=e[t]=[n,r]));r.push(i[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var i,o,a=r[0],s=r[1],u=r[2],l=0;if(a.some((t=>0!==e[t]))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(u)u(n)}for(t&&t(r);l<a.length;l++)o=a[l],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunktopola_viewer=self.webpackChunktopola_viewer||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e={};n.r(e),n.d(e,{exclude:()=>L,extract:()=>T,parse:()=>N,parseUrl:()=>I,pick:()=>j,stringify:()=>P,stringifyUrl:()=>R});var t={};n.r(t),n.d(t,{boolean:()=>Q,booleanish:()=>$,commaOrSpaceSeparated:()=>J,commaSeparated:()=>Z,number:()=>Y,overloadedBoolean:()=>K,spaceSeparated:()=>X});var r={};n.r(r),n.d(r,{attentionMarkers:()=>Xn,contentInitial:()=>Wn,disable:()=>Zn,document:()=>Gn,flow:()=>Qn,flowInitial:()=>Vn,insideSpan:()=>Yn,string:()=>$n,text:()=>Kn});var i=n(9950),o=n(1352);const a=JSON.parse('{"menu.open":"Otev\u0159\xedt","menu.open_file":"Otev\u0159\xedt soubor","menu.load_from_url":"Otev\u0159\xedt z URL","menu.select_wikitree_id":"Vybrat WikiTree ID","menu.print":"Tiskni","menu.download":"St\xe1hnout","menu.pdf_file":"Soubor PDF","menu.png_file":"Soubor PNG","menu.svg_file":"Soubor SVG","menu.download_pdf":"St\xe1hnout PDF","menu.download_png":"St\xe1hnout PNG","menu.download_svg":"St\xe1hnout SVG","menu.view":"Zobrazen\xed","menu.hourglass":"P\u0159es\xfdpac\xed hodiny","menu.relatives":"V\u0161ichni p\u0159\xedbuzn\xed","menu.fancy":"Rodinn\xfd strom (experiment\xe1ln\xed)","menu.wikitree_login":"P\u0159ihl\xe1\u0161en\xed na WikiTree","menu.wikitree_logged_in":"P\u0159ihl\xe1\u0161eno","menu.wikitree_popup_username":"P\u0159ihl\xe1\u0161eno do WikiTree jako {username}","menu.wikitree_popup":"P\u0159ihl\xe1\u0161eno do WikiTree","menu.github":"GitHub projekt","menu.search.placeholder":"Hledej osobu","menu.search.no_results":"\u017d\xe1dn\xe9 v\xfdsledky","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy v\xe1m umo\u017e\u0148uje interaktivn\xed prohl\xed\u017een\xed rodokmenu.","intro.instructions":"Kliknut\xedm na OTEV\u0158\xcdT SOUBOR nebo OTEV\u0158\xcdT Z URL na\u010dt\u011bte soubor GEDCOM. V\u011bt\u0161ina genealogick\xfdch program\u016f m\xe1 funkci exportu do form\xe1tu GEDCOM.","intro.examples":"N\xed\u017ee je uvedeno n\u011bkolik p\u0159\xedklad\u016f pou\u017eit\xed z internetu:","intro.from":"zdroj:","intro.privacy":"Soukrom\xed","intro.privacy_note":"Pomoc\xed funkce \\"Otev\u0159\xedt soubor\\" nejsou va\u0161e data nikam odes\xedl\xe1na a z\u016fst\xe1vaj\xed ve va\u0161em po\u010d\xedta\u010di. P\u0159i pou\u017eit\xed funkce \\"Otev\u0159\xedt z URL\\" jsou data z dan\xe9 adresy odesl\xe1na slu\u017ebou {link}, aby bylo mo\u017en\xe9 data na\u010d\xedst (CORS).","load_from_url.title":"Otev\u0159\xedt z adresy URL","load_from_url.comment":"Data z dan\xe9 adresy URL budou na\u010dteny prost\u0159ednictv\xedm slu\u017eby {link}, aby nedoch\xe1zelo k probl\xe9m\u016fm s CORS.","load_from_url.cancel":"Zru\u0161it","load_from_url.load":"Otev\u0159\xedt","select_wikitree_id.title":"Zadejte WikiTree ID","select_wikitree_id.comment":"Zadejte ID profilu {wikiTreeLink}. P\u0159\xedklad: {example1}, {example2}","select_wikitree_id.cancel":"Zru\u0161it","select_wikitree_id.load":"Otev\u0159\xedt","gedcom.BAPM":"K\u0159est","gedcom.BIRT":"Narozen\xed","gedcom.BURI":"Poh\u0159eb","gedcom.CENS":"S\u010d\xedt\xe1n\xed lidu","gedcom.CHR":"K\u0159est","gedcom.DEAT":"\xdamrt\xed","gedcom.DSCR":"Opis","gedcom.EDUC":"Vzd\u011bl\xe1n\xed","gedcom.EMAIL":"E-mail","gedcom.EVEN":"Ud\xe1lost","gedcom.FACT":"Skute\u010dnost","gedcom.MILT":"Vojensk\xe1 slu\u017eba","gedcom.OCCU":"Povol\xe1n\xed","gedcom.RIN":"ID","gedcom.TITL":"Titul","gedcom.WWW":"Str\xe1nka WWW","gedcom.RELI":"Vyzn\xe1n\xed","gedcom._UPD":"Posledn\xed aktualizace","gedcom.birth":"Rodinn\xe9 jm\xe9no","gedcom.married":"Man\u017eelsk\xe9 jm\xe9no","gedcom.maiden":"Jm\xe9no za svobodna","gedcom.aka":"Tak\xe9 zn\xe1m(a) jako","date.abt":"kolem","date.cal":"spo\u010dteno","date.est":"asi","date.between":"mezi {from} a {to}","date.after":"po {from}","date.before":"p\u0159ed {to}","error.error":"Chyba","error.failed_pdf":"Soubor PDF nelze vytvo\u0159it. Zkuste to znovu s men\u0161\xedm diagramem nebo st\xe1hn\u011bte soubor SVG.","error.failed_png":"Soubor PNG nelze vytvo\u0159it. Zkuste to znovu s men\u0161\xedm diagramem nebo st\xe1hn\u011bte soubor SVG.","error.failed_to_load_file":"Chyba p\u0159i na\u010d\xedt\xe1n\xed souboru","error.failed_wikitree_load_more":"Chyba p\u0159i na\u010d\xedt\xe1n\xed dat z WikiTree. {chyba}","error.GEDCOM_READ_FAILED":"Chyba p\u0159i na\u010d\xedt\xe1n\xed souboru GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Chyba p\u0159i na\u010d\xedt\xe1n\xed dat. Znovu otev\u0159ete soubor.","error.WIKITREE_ID_NOT_PROVIDED":"WikiTree ID nebylo z\xedsk\xe1no","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Profil WikiTree {id} nen\xed k dispozici","error.WIKITREE_PROFILE_NOT_FOUND":"Profil WikiTree {id} neexistuje","wikitree.private":"Soukrom\xe9"}'),s=JSON.parse('{"menu.open":"\xd6ffnen","menu.open_file":"Datei \xf6ffnen","menu.load_from_url":"URL \xf6ffnen","menu.select_wikitree_id":"WikiTree ID ausw\xe4hlen","menu.print":"Print","menu.download":"Download","menu.pdf_file":"PDF-Datei","menu.png_file":"PNG-Datei","menu.svg_file":"SVG-Datei","menu.download_pdf":"PDF herunterladen","menu.download_png":"PNG herunterladen","menu.download_svg":"SVG herunterladen","menu.view":"View","menu.hourglass":"Sanduhrkarte","menu.relatives":"Alle Verwandten","menu.fancy":"Zierbaum (experimentell)","menu.wikitree_login":"Bei WikiTree anmelden","menu.wikitree_logged_in":"Eingeloggt","menu.wikitree_popup_username":"Bei WikiTree als {username} angemeldet","menu.wikitree_popup":"Bei WikiTree angemeldet","menu.github":"Projekt auf der GitHub-Website","menu.search.placeholder":"Person suchen","menu.search.no_results":"Keine Ergebnisse","intro.title":"Topola Genealogie","intro.description":"Mit der Topola Genealogie k\xf6nnen Sie den Stammbaum auf interaktive Weise durchsuchen.","intro.instructions":"Klicken Sie auf Datei \xf6ffnen oder URL \xf6ffnen, um eine GEDCOM-Datei zu laden. Die meisten Genealogie-Programme verf\xfcgen \xfcber eine GEDCOM-Exportfunktion.","intro.examples":"Nachfolgend einige Beispiele aus dem Internet:","intro.from":"source:","intro.privacy":"Datenschutz","intro.privacy_note":"Bei Verwendung der Funktion \\"Datei \xf6ffnen\\" werden Ihre Daten nirgendwo gesendet und verbleiben auf Ihrem Computer. Bei Verwendung der Funktion \\"URL \xf6ffnen\\" werden Daten von der angegebenen Adresse vom Dienst {link} an gesendet Erm\xf6glichen des Ladens von Daten aus einer anderen Dom\xe4ne (CORS).","load_from_url.title":"Von URL \xf6ffnen","load_from_url.comment":"Die Daten der angegebenen URL werden \xfcber den {link} -Dienst geladen, um CORS-Probleme zu vermeiden.","load_from_url.cancel":"Cancel","load_from_url.load":"\xd6ffnen","select_wikitree_id.title":"WikiTree ID eingeben","select_wikitree_id.comment":"Geben Sie die Profil-ID {wikiTreeLink} ein. Beispiele: {example1}, {example2}","select_wikitree_id.cancel":"Cancel","select_wikitree_id.load":"Open","gedcom.BAPM":"Taufe","gedcom.BIRT":"Geburt","gedcom.BURI":"Beerdigung","gedcom.CENS":"Volksz\xe4hlung","gedcom.CHR":"Taufe","gedcom.DEAT":"Tod","gedcom.DSCR":"Beschreibung","gedcom.EMAIL":"E-Mail","gedcom.EVEN":"Ereignis","gedcom.OCCU":"Beruf","gedcom.RIN":"ID","gedcom.TITL":"Titel","gedcom.WWW":"Website","gedcom._UPD":"Zuletzt aktualisiert","gedcom.birth":"Geburtsname","gedcom.married":"Ehenamen","gedcom.maiden":"M\xe4dchenname","gedcom.aka":"Auch bekannt als","date.abt":"about","date.cal":"berechnet","date.est":"gesch\xe4tzt","date.between":"zwischen {from} und {to}","date.after":"after {from}","date.before":"before {to}","error.error":"Error","error.failed_pdf":"PDF konnte nicht erstellt werden. Versuchen Sie es erneut mit einem kleineren Diagramm oder laden Sie die SVG-Datei herunter.","error.failed_png":"Fehler beim Erstellen der PNG-Datei. Versuchen Sie es erneut mit einem kleineren Diagramm oder laden Sie die SVG-Datei herunter.","error.failed_to_load_file":"Fehler beim Laden der Datei","error.failed_wikitree_load_more":"Fehler beim Abrufen der Daten aus WikiTree. {error}","wikitree.private":"Privat"}'),u=JSON.parse('{"menu.open":"Ouvrir","menu.open_file":"Ouvrir le fichier","menu.load_from_url":"Ouvrir l\'URL","menu.select_wikitree_id":"S\xe9lectionnez l\'ID WikiTree","menu.print":"Imprimer","menu.download":"T\xe9l\xe9charger","menu.pdf_file":"Fichier PDF","menu.png_file":"Fichier PNG","menu.svg_file":"Fichier SVG","menu.download_pdf":"T\xe9l\xe9charger le PDF","menu.download_png":"T\xe9l\xe9charger PNG","menu.download_svg":"T\xe9l\xe9charger SVG","menu.view":"Afficher","menu.hourglass":"Graphique en sablier","menu.relatives":"Tous les parents","menu.fancy":"Arbre ornemental (exp\xe9rimental)","menu.wikitree_login":"Connectez-vous \xe0 WikiTree","menu.wikitree_logged_in":"Connect\xe9","menu.wikitree_popup_username":"Connect\xe9 \xe0 WikiTree en tant que {username}","menu.wikitree_popup":"Connect\xe9 \xe0 WikiTree","menu.github":"Projet sur le site Web GitHub","menu.search.placeholder":"Rechercher une personne","menu.search.no_results":"Aucun r\xe9sultat","intro.title":"Topola G\xe9n\xe9alogie","intro.description":"La Topola G\xe9n\xe9alogie vous permet de parcourir l\'arbre g\xe9n\xe9alogique de mani\xe8re interactive.","intro.instructions":"Cliquez sur OPEN FILE ou OPEN URL pour charger un fichier GEDCOM. La plupart des logiciels de g\xe9n\xe9alogie ont une fonction d\'exportation GEDCOM.","intro.examples":"Voici quelques exemples trouv\xe9s sur Internet:","intro.from":"source:","intro.whats_new":"Quoi de neuf","intro.full_changelog":"Voir toutes les modifications","intro.privacy":"Confidentialit\xe9","intro.privacy_note":"Lorsque vous utilisez la fonction \\"Ouvrir un fichier\\", vos donn\xe9es ne sont envoy\xe9es nulle part et restent sur votre ordinateur. Lorsque vous utilisez la fonction \\"Ouvrir l\'URL\\", les donn\xe9es de l\'adresse indiqu\xe9e sont envoy\xe9es par le service {link} pour permettre le chargement des donn\xe9es depuis un autre domaine (CORS).","load_from_url.title":"Ouvrir depuis l\'URL","load_from_url.comment":"Les donn\xe9es de l\'URL donn\xe9e seront charg\xe9es via le service {link} pour \xe9viter les probl\xe8mes CORS.","load_from_url.cancel":"Annuler","load_from_url.load":"Ouvrir","select_wikitree_id.title":"Entrez l\'ID de WikiTree","select_wikitree_id.comment":"Entrez l\'ID de profil {wikiTreeLink}. Exemples: {example1}, {example2}","select_wikitree_id.cancel":"Annuler","select_wikitree_id.load":"Ouvrir","gedcom.ADOP":"Adoption","gedcom.BAPM":"Bapt\xeame","gedcom.BIRT":"Naissance","gedcom.BURI":"Fun\xe9railles","gedcom.CENS":"Recensement","gedcom.CHR":"Bapt\xeame","gedcom.CREM":"Cr\xe9mation","gedcom.DEAT":"Mort","gedcom.DSCR":"Description","gedcom.EDUC":"\xc9tudes","gedcom.EMAIL":"E-mail","gedcom.EMIG":"\xc9migration","gedcom.EVEN":"\xc9v\xe9nement","gedcom.FACT":"Fait","gedcom.IMMI":"Immigration","gedcom.MILT":"Service militaire","gedcom.NATU":"Naturalisation","gedcom.OCCU":"Profession","gedcom.RIN":"ID","gedcom.TITL":"Titre","gedcom.WWW":"Site Web","gedcom._UPD":"Derni\xe8re mise \xe0 jour","gedcom.MARR":"Mariage","gedcom.DIV":"Divorce","gedcom.birth":"Nom de naissance","gedcom.married":"Nom marital","gedcom.maiden":"Nom de jeune fille","gedcom.immigrant":"Nom d\'immigrant","gedcom.aka":"Alias","date.abt":"environ","date.cal":"calcul\xe9","date.est":"estim\xe9","date.between":"entre {from} et {to}","date.after":"apr\xe8s {from}","date.before":"avant {to}","error.error":"Erreur","age.exact":"{qualifier}{age, plural, =0 {Moins d\'1 an} one {1 an} other {# ans}}","age.less":"Moins de {age, plural, =0 {1 an} one {1 an} other {# ans}}","age.more":"Plus de {age, plural, =0 {0 an} one {1 an} other {# ans}}","age.between":"Entre {ageFrom} et {ageTo, plural, =0 {0 an} one {1 an} other {# ans}}","error.failed_pdf":"\xc9chec de la cr\xe9ation du PDF. R\xe9essayez avec un diagramme plus petit ou t\xe9l\xe9chargez le fichier SVG.","error.failed_png":"Impossible de cr\xe9er le fichier PNG. R\xe9essayez avec un diagramme plus petit ou t\xe9l\xe9chargez le fichier SVG.","error.failed_to_load_file":"Erreur lors du chargement du fichier","error.failed_wikitree_load_more":"Erreur lors de l\'obtention des donn\xe9es de WikiTree. {error}","error.GEDCOM_READ_FAILED":"Erreur de lecture du fichier GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Erreur de chargement des donn\xe9es. Renvoyez votre fichier.","error.WIKITREE_ID_NOT_PROVIDED":"L\'ID WikiTree est obligatoire","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Le profil WikiTree ${id} n\'est pas accessible. Connectez-vous.","error.WIKITREE_PROFILE_NOT_FOUND":"Le profil WikiTree ${id} n\'a pas \xe9t\xe9 trouv\xe9","error.failed_to_load_image":"Erreur de chargement de l\'image","wikitree.private":"Priv\xe9","tab.info":"Info","tab.settings":"Param\xe8tres","config.colors":"Couleurs","config.colors.NO_COLOR":"aucune","config.colors.COLOR_BY_GENERATION":"par g\xe9n\xe9ration","config.colors.COLOR_BY_SEX":"par sexe","name.unknown_name":"?","whats_new.title":"Quoi de neuf dans cette version?"}'),l=JSON.parse('{"menu.open":"Apri","menu.open_file":"Apri file","menu.load_from_url":"Apri URL","menu.select_wikitree_id":"Seleziona ID WikiTree","menu.print":"Stampa","menu.download":"Download","menu.pdf_file":"File PDF","menu.png_file":"File PNG","menu.svg_file":"File SVG","menu.download_pdf":"Scarica PDF","menu.download_png":"Scarica PNG","menu.download_svg":"Scarica SVG","menu.view":"Visualizza","menu.hourglass":"Grafico a clessidra","menu.relatives":"Tutti i parenti","menu.fancy":"Albero ornamentale (sperimentale)","menu.wikitree_login":"Accedi a WikiTree","menu.wikitree_logged_in":"Accesso effettuato","menu.wikitree_popup_username":"Accesso a WikiTree come {username}","menu.wikitree_popup":"Accesso a WikiTree","menu.github":"Progetto sul sito web GitHub","menu.search.placeholder":"Cerca persona","menu.search.no_results":"Nessun risultato","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy ti consente di esplorare l\'albero genealogico in modo interattivo.","intro.instructions":"Fai clic su OPEN FILE o OPEN URL per caricare un file GEDCOM. La maggior parte dei software di genealogia ha una funzione di esportazione GEDCOM.","intro.examples":"Di seguito sono riportati alcuni esempi trovati su Internet:","intro.from":"source:","intro.privacy":"Privacy","intro.privacy_note":"Quando si utilizza la funzione \\"Apri file\\", i dati non vengono inviati da nessuna parte e rimangono sul computer. Quando si utilizza la funzione \\"Apri URL\\", i dati dall\'indirizzo specificato vengono inviati dal servizio {link} a consentire il caricamento dei dati da un altro dominio (CORS).","load_from_url.title":"Apri da URL","load_from_url.comment":"I dati dall\'URL specificato verranno caricati tramite il servizio {link} per evitare problemi CORS.","load_from_url.cancel":"Annulla","load_from_url.load":"Apri","select_wikitree_id.title":"Inserisci ID WikiTree","select_wikitree_id.comment":"Inserisci l\'ID profilo {wikiTreeLink}. Esempi: {example1}, {example2}","select_wikitree_id.cancel":"Annulla","select_wikitree_id.load":"Apri","gedcom.BAPM":"Battesimo","gedcom.BIRT":"Nascita","gedcom.BURI":"Funerale","gedcom.CENS":"Census","gedcom.CHR":"Battesimo","gedcom.DEAT":"Morte","gedcom.MARR":"Matrimonio","gedcom.DIV":"Divorzio","gedcom.DSCR":"Descrizione","gedcom.EMAIL":"E-mail","gedcom.EVEN":"Evento","gedcom.OCCU":"Professione","gedcom.RIN":"ID","gedcom.TITL":"Titolo","gedcom.WWW":"Sito web","gedcom._UPD":"Ultimo aggiornamento","gedcom.birth":"Nome alla nascita","gedcom.married":"Nome da coniugato/a","gedcom.maiden":"Nome da nubile","gedcom.aka":"Conosciuto anche come","date.abt":"circa","date.cal":"calcolato","date.est":"stimato","date.between":"tra il {from} e il {to}","date.after":"dopo il {from}","date.before":"prima del {to}","error.error":"Errore","error.failed_pdf":"Impossibile creare PDF. Riprova con un diagramma pi\xf9 piccolo o scarica il file SVG.","error.failed_png":"Impossibile creare il file PNG. Riprova con un diagramma pi\xf9 piccolo o scarica il file SVG.","error.failed_to_load_file":"Errore durante il caricamento del file","error.failed_wikitree_load_more":"Errore durante il recupero dei dati da WikiTree. {error}","wikitree.private":"Privato"}'),c=JSON.parse('{"menu.open":"Otw\xf3rz","menu.open_file":"Otw\xf3rz plik","menu.load_from_url":"Otw\xf3rz URL","menu.select_wikitree_id":"Wybierz WikiTree ID","menu.print":"Drukuj","menu.download":"Pobierz","menu.pdf_file":"Plik PDF","menu.png_file":"Plik PNG","menu.svg_file":"Plik SVG","menu.download_pdf":"Pobierz PDF","menu.download_png":"Pobierz PNG","menu.download_svg":"Pobierz SVG","menu.view":"Widok","menu.hourglass":"Wykres klepsydrowy","menu.relatives":"Wszyscy krewni","menu.fancy":"Ozdobne drzewo (eksperymentalne)","menu.wikitree_login":"Zaloguj do WikiTree","menu.wikitree_logged_in":"Zalogowano","menu.wikitree_popup_username":"Zalogowano do WikiTree jako {username}","menu.wikitree_popup":"Zalogowano do WikiTree","menu.github":"Projekt na stronie GitHub","menu.search.placeholder":"Szukaj osoby","menu.search.no_results":"Brak wynik\xf3w","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy pozwala przegl\u0105da\u0107 drzewo genealogiczne w interaktywny spos\xf3b.","intro.instructions":"Kliknij OTW\xd3RZ PLIK lub OTW\xd3RZ URL, aby za\u0142adowa\u0107 plik GEDCOM. Wi\u0119kszo\u015b\u0107 program\xf3w genealogicznych posiada funkcj\u0119 eksportu do pliku GEDCOM.","intro.examples":"Przyk\u0142ady","intro.from":"\u017ar\xf3d\u0142o:","intro.whats_new":"Co nowego?","intro.full_changelog":"Zobacz pe\u0142n\u0105 list\u0119 zmian","intro.privacy":"Prywatno\u015b\u0107","intro.privacy_note":"U\u017cywaj\u0105c funkcji \\"Otw\xf3rz plik\\", Twoje dane nie s\u0105 nigdzie wysy\u0142ane i pozostaj\u0105 na Twoim komputerze. U\u017cywaj\u0105c funkcji \\"Otw\xf3rz URL\\", dane z podanego adresu przesy\u0142ane s\u0105 przez us\u0142ug\u0119 {link} w celu umo\u017cliwienia za\u0142adowania danych z innej domeny (CORS).","load_from_url.title":"Otw\xf3rz z adresu URL","load_from_url.comment":"Dane z podanego adresu URL zostan\u0105 za\u0142adowane poprzez us\u0142ug\u0119 {link} w celu unikni\u0119cia problem\xf3w z CORS.","load_from_url.cancel":"Anuluj","load_from_url.load":"Otw\xf3rz","select_wikitree_id.title":"Podaj WikiTree ID","select_wikitree_id.comment":"Wpisz identyfikator profilu {wikiTreeLink}. Przyk\u0142ady: {example1}, {example2}","select_wikitree_id.cancel":"Anuluj","select_wikitree_id.load":"Otw\xf3rz","gedcom.BAPM":"Chrzest","gedcom.BIRT":"Narodziny","gedcom.BURI":"Pogrzeb","gedcom.CENS":"Spis ludno\u015bci","gedcom.CHR":"Chrzest","gedcom.DEAT":"\u015amier\u0107","gedcom.DSCR":"Opis","gedcom.EDUC":"Wykszta\u0142cenie","gedcom.EMAIL":"E-mail","gedcom.EVEN":"Wydarzenie","gedcom.FACT":"Fakt","gedcom.MILT":"S\u0142u\u017cba wojskowa","gedcom.OCCU":"Zaw\xf3d","gedcom.RIN":"ID","gedcom.TITL":"Tytu\u0142","gedcom.WWW":"Strona WWW","gedcom._UPD":"Ostatnia aktualizacja","gedcom.MARR":"Ma\u0142\u017ce\u0144stwo","gedcom.DIV":"Rozw\xf3d","gedcom.birth":"Nazwisko rodowe","gedcom.married":"Nazwisko po ma\u0142\u017ce\u0144stwie","gedcom.maiden":"Nazwisko panie\u0144skie","gedcom.immigrant":"Nazwisko po imigracji","gedcom.aka":"Alias","date.abt":"oko\u0142o","date.cal":"wyliczone","date.est":"oszacowane","date.between":"mi\u0119dzy {from} a {to}","date.after":"po {from}","date.before":"przed {to}","error.error":"B\u0142\u0105d","age.exact":"{age, plural, =0 {Mniej ni\u017c 1 rok} one {{qualifier} 1 rok} many {{qualifier} # lat} other {{qualifier} # lata}}","age.less":"Mniej ni\u017c {age, plural, =0 {1 rok} one {1 rok} many {# lat} other {# lata}}","age.more":"Wi\u0119cej ni\u017c {age, plural, =0 {0 lat} one {1 rok} many {# lat} other {# lata}}","age.between":"Mi\u0119dzy {ageFrom} a {ageTo, plural, =0 {0 lat} one {1 rok} many {# lat} other {# lata}}","error.failed_pdf":"Nie uda\u0142o si\u0119 utworzy\u0107 pliku PDF. Spr\xf3buj jeszcze raz z mniejszym diagramem lub pobierz plik SVG.","error.failed_png":"Nie uda\u0142o si\u0119 utworzy\u0107 pliku PNG. Spr\xf3buj jeszcze raz z mniejszym diagramem lub pobierz plik SVG.","error.failed_to_load_file":"B\u0142\u0105d wczytywania pliku","error.failed_wikitree_load_more":"B\u0142\u0105d podczas pobierania danych z WikiTree. {error}","error.GEDCOM_READ_FAILED":"B\u0142\u0105d wczytywania pliku GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"B\u0142\u0105d wczytywania danych. Otw\xf3rz ponownie plik.","error.WIKITREE_ID_NOT_PROVIDED":"Identyfikator WikiTree nie zosta\u0142 podany","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Profil WikiTree {id} nie jest dost\u0119pny","error.WIKITREE_PROFILE_NOT_FOUND":"Profil WikiTree {id} nie istnieje","error.failed_to_load_image":"B\u0142\u0105d podczas pobierania pliku ze zdj\u0119ciem","wikitree.private":"Prywatne","tab.info":"Info","tab.settings":"Ustawienia","config.colors":"Kolory","config.colors.NO_COLOR":"brak","config.colors.COLOR_BY_GENERATION":"wed\u0142ug pokolenia","config.colors.COLOR_BY_SEX":"wed\u0142ug p\u0142ci","name.unknown_name":"N.N.","extras.images":"Zdj\u0119cia","extras.notes":"Notatki","extras.sources":"\u0179r\xf3d\u0142a"}'),f=JSON.parse('{"menu.open":"\u041e\u0442\u043a\u0440\u044b\u0442\u044c","menu.open_file":"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0444\u0430\u0439\u043b","menu.load_from_url":"\u041e\u0442\u043a\u0440\u044b\u0442\u044c URL","menu.select_wikitree_id":"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 WikiTree ID","menu.print":"\u041f\u0435\u0447\u0430\u0442\u044c","menu.download":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c","menu.pdf_file":"\u0424\u0430\u0439\u043b PDF","menu.png_file":"\u0424\u0430\u0439\u043b PNG","menu.svg_file":"\u0424\u0430\u0439\u043b SVG","menu.download_pdf":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c PDF","menu.download_png":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c PNG","menu.download_svg":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c SVG","menu.view":"\u0412\u0438\u0434","menu.hourglass":"\u0413\u0440\u0430\u0444\u0438\u043a \u041f\u0435\u0441\u043e\u0447\u043d\u044b\u0435 \u0447\u0430\u0441\u044b","menu.relatives":"\u0412\u0441\u0435 \u0440\u043e\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u0438\u043a\u0438","menu.fancy":"\u0414\u0435\u043a\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u0434\u0435\u0440\u0435\u0432\u043e (\u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435))","menu.wikitree_login":"\u0412\u043e\u0439\u0442\u0438 \u0432 WikiTree","menu.wikitree_logged_in":"\u0412\u0445\u043e\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d","menu.wikitree_popup_username":"\u0412\u044b \u0432\u043e\u0448\u043b\u0438 \u0432 WikiTree \u043a\u0430\u043a {username}","menu.wikitree_popup":"\u0412\u044b \u0432\u043e\u0448\u043b\u0438 \u0432 WikiTree","menu.github":"\u041f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 GitHub","menu.search.placeholder":"\u0418\u0441\u043a\u0430\u0442\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430","menu.search.no_results":"\u041d\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0441\u0435\u043c\u0435\u0439\u043d\u043e\u0435 \u0434\u0440\u0435\u0432\u043e \u0432 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435.","intro.instructions":"\u0429\u0435\u043b\u043a\u043d\u0438\u0442\u0435 \\"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0444\u0430\u0439\u043b\\" \u0438\u043b\u0438 \\"\u041e\u0442\u043a\u0440\u044b\u0442\u044c URL\\", \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b GEDCOM. \u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0430\u043b\u043e\u0433\u0438\u0438 \u0438\u043c\u0435\u044e\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 GEDCOM.","intro.examples":"\u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b, \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435:","intro.from":"\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a:","intro.whats_new":"\u0427\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e?","intro.full_changelog":"\u0421\u043f\u0438\u0441\u043e\u043a \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439","intro.privacy":"\u041a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c","intro.privacy_note":"\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \\"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0444\u0430\u0439\u043b\\" \u0412\u0430\u0448\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0438 \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0412\u0430\u0448\u0435\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435. \u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \\"\u041e\u0442\u043a\u0440\u044b\u0442\u044c URL\\" \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0430\u0434\u0440\u0435\u0441\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043b\u0443\u0436\u0431\u043e\u0439 {link} \u043d\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430 (CORS).","load_from_url.title":"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0441 \u0430\u0434\u0440\u0435\u0441\u0430 URL","load_from_url.comment":"\u0414\u0430\u043d\u043d\u044b\u0435 \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0430\u0434\u0440\u0435\u0441\u0430 URL \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b \u0447\u0435\u0440\u0435\u0437 \u0441\u043b\u0443\u0436\u0431\u0443 {link}, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c CORS.","load_from_url.cancel":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c","load_from_url.load":"\u041e\u0442\u043a\u0440\u044b\u0442\u044c","select_wikitree_id.title":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 WikiTree","select_wikitree_id.comment":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u0440\u043e\u0444\u0438\u043b\u044f {wikiTreeLink}. \u041f\u0440\u0438\u043c\u0435\u0440\u044b: {example1}, {example2}","select_wikitree_id.cancel":"\u041e\u0442\u043c\u0435\u043d\u0430","select_wikitree_id.load":"\u041e\u0442\u043a\u0440\u044b\u0442\u044c","gedcom.ADOP":"\u0423\u0441\u044b\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435","gedcom.BAPM":"\u041a\u0440\u0435\u0449\u0435\u043d\u0438\u0435","gedcom.BIRT":"\u0420\u043e\u0436\u0434\u0435\u043d\u0438\u0435","gedcom.BURI":"\u041f\u043e\u0445\u043e\u0440\u043e\u043d\u044b","gedcom.CENS":"\u041f\u0435\u0440\u0435\u043f\u0438\u0441\u044c \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u044f","gedcom.CHR":"\u041a\u0440\u0435\u0449\u0435\u043d\u0438\u0435","gedcom.CREM":"\u041a\u0440\u0435\u043c\u0430\u0446\u0438\u044f","gedcom.DEAT":"\u0421\u043c\u0435\u0440\u0442\u044c","gedcom.DSCR":"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435","gedcom.EDUC":"\u041e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435","gedcom.EMAIL":"E-mail","gedcom.EMIG":"\u042d\u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044f","gedcom.EVEN":"\u0421\u043e\u0431\u044b\u0442\u0438\u0435","gedcom.FACT":"\u0424\u0430\u043a\u0442","gedcom.IMMI":"\u0418\u043c\u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044f","gedcom.MILT":"\u0412\u043e\u0435\u043d\u043d\u0430\u044f \u0441\u043b\u0443\u0436\u0431\u0430","gedcom.NATU":"\u041d\u0430\u0442\u0443\u0440\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f","gedcom.OCCU":"\u0412\u0438\u0434 \u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438","gedcom.RIN":"ID","gedcom.TITL":"\u0422\u0438\u0442\u0443\u043b","gedcom.WWW":"\u0412\u0435\u0431-\u0441\u0430\u0439\u0442 WWW","gedcom._UPD":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435","gedcom.birth":"\u0418\u043c\u044f \u043f\u0440\u0438 \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u0438","gedcom.married":"\u0418\u043c\u044f \u0432 \u0431\u0440\u0430\u043a\u0435","gedcom.maiden":"\u0414\u0435\u0432\u0438\u0447\u044c\u044f \u0444\u0430\u043c\u0438\u043b\u0438\u044f","gedcom.immigrant":"\u0418\u043c\u044f \u0432 \u044d\u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438","gedcom.aka":"\u041e\u043d(\u0430) \u0436\u0435","date.abt":"\u043e\u043a\u043e\u043b\u043e","date.cal":"\u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u043e","date.est":"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e","date.between":"\u043c\u0435\u0436\u0434\u0443 {from} \u0438 {to}","date.after":"\u043f\u043e\u0441\u043b\u0435 {from}","date.before":"\u0434\u043e {to}","error.error":"\u041e\u0448\u0438\u0431\u043a\u0430","age.exact":"{age, plural, =0 {\u041c\u0435\u043d\u0435\u0435 1 \u0433\u043e\u0434\u0430} one {{qualifier} 1 \u0433\u043e\u0434} many {{qualifier} # \u043b\u0435\u0442} other {{qualifier} # \u0433\u043e\u0434\u0430}}","age.less":"\u041c\u0435\u043d\u0435\u0435 {age, plural, =0 {1 \u0433\u043e\u0434\u0430} one {1 \u0433\u043e\u0434} many {# \u043b\u0435\u0442} other {# \u0433\u043e\u0434\u0430}}","age.more":"\u0411\u043e\u043b\u0435\u0435 {age, plural, =0 {0 \u043b\u0435\u0442} one {1 \u0433\u043e\u0434} many {# \u043b\u0435\u0442} other {# \u0433\u043e\u0434\u0430}}","age.between":"\u041c\u0435\u0436\u0434\u0443 {ageFrom} {ageTo, plural, =0 {0 \u043b\u0435\u0442} one {1 \u0433\u043e\u0434} many {# \u0433\u043e\u0434} other {# \u043b\u0435\u0442}}","error.failed_pdf":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c PDF-\u0444\u0430\u0439\u043b. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u0441 \u043c\u0435\u043d\u044c\u0448\u0435\u0439 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u043e\u0439 \u0438\u043b\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0444\u0430\u0439\u043b SVG.","error.failed_png":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b PNG. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u0441 \u043c\u0435\u043d\u044c\u0448\u0435\u0439 \u0441\u0445\u0435\u043c\u043e\u0439 \u0438\u043b\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0444\u0430\u0439\u043b SVG.","error.failed_to_load_file":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u0430\u0439\u043b\u0430","error.failed_wikitree_load_more":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 WikiTree. {error}}","error.GEDCOM_READ_FAILED":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0447\u0442\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430 GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0447\u0442\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435.","error.WIKITREE_ID_NOT_PROVIDED":"\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 WikiTree","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"\u041f\u0440\u043e\u0444\u0438\u043b\u044c WikiTree {id} \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d","error.WIKITREE_PROFILE_NOT_FOUND":"\u041f\u0440\u043e\u0444\u0438\u043b\u044c WikiTree {id} \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d","error.failed_to_load_image":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438","wikitree.private":"\u0427\u0430\u0441\u0442\u043d\u044b\u0439","tab.info":"\u0418\u043d\u0444\u043e","tab.settings":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438","config.colors":"\u0426\u0432\u0435\u0442","config.colors.NO_COLOR":"\u0411\u0435\u0437 \u0446\u0432\u0435\u0442\u0430","config.colors.COLOR_BY_GENERATION":"\u043f\u043e \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u044f\u043c","config.colors.COLOR_BY_SEX":"\u043f\u043e \u043f\u043e\u043b\u0443","name.unknown_name":"\u041d.\u0418.","extras.images":"\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0438","extras.notes":"\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435","extras.sources":"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438"}');var d=n(4467);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,d.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const m="%[a-f0-9]{2}",g=new RegExp("("+m+")|([^%]+?)","gi"),y=new RegExp("("+m+")+","gi");function v(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(1===e.length)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],v(n),v(r))}function b(e){try{return decodeURIComponent(e)}catch(t){let n=e.match(g)||[];for(let r=1;r<n.length;r++)n=(e=v(n,r).join("")).match(g)||[];return e}}function w(e){if("string"!==typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch(t){return function(e){const t={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"};let n=y.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(i){const e=b(n[0]);e!==n[0]&&(t[n[0]]=e)}n=y.exec(e)}t["%C2"]="\ufffd";const r=Object.keys(t);for(const o of r)e=e.replace(new RegExp(o,"g"),t[o]);return e}(e)}}function _(e,t){const n={};if(Array.isArray(t))for(const r of t){const t=Object.getOwnPropertyDescriptor(e,r);null!==t&&void 0!==t&&t.enumerable&&Object.defineProperty(n,r,t)}else for(const r of Reflect.ownKeys(e)){const i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){t(r,e[r],e)&&Object.defineProperty(n,r,i)}}return n}function x(e,t){if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const n=e.indexOf(t);return-1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}const E=e=>null===e||void 0===e,k=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,(e=>"%".concat(e.charCodeAt(0).toString(16).toUpperCase()))),S=Symbol("encodeFragmentIdentifier");function A(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function C(e,t){return t.encode?t.strict?k(e):encodeURIComponent(e):e}function D(e,t){return t.decode?w(e):e}function M(e){return Array.isArray(e)?e.sort():"object"===typeof e?M(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function F(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function O(e,t,n){return"string"===n&&"string"===typeof e?e:"function"===typeof n&&"string"===typeof e?n(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()?"number"!==n||Number.isNaN(Number(e))||"string"!==typeof e||""===e.trim()?t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?Number(e):e:Number(e):"true"===e.toLowerCase()}function T(e){const t=(e=F(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function N(e,t){A((t=p({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null)},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"===typeof n&&n.includes(e.arrayFormatSeparator),o="string"===typeof n&&!i&&D(n,e).includes(e.arrayFormatSeparator);n=o?D(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map((t=>D(t,e))):null===n?n:D(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!i)return void(r[t]=n?D(n,e):n);const o=null===n?[]:D(n,e).split(e.arrayFormatSeparator);void 0!==r[t]?r[t]=[...r[t],...o]:r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[...[n[e]].flat(),t]:n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;const e=t.decode?i.replaceAll("+"," "):i;let[o,a]=x(e,"=");void 0===o&&(o=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:D(a,t),n(D(o,t),a,r)}for(const[i,o]of Object.entries(r))if("object"===typeof o&&null!==o&&"string"!==t.types[i])for(const[e,n]of Object.entries(o)){const r=t.types[i]?t.types[i].replace("[]",""):void 0;o[e]=O(n,t,r)}else"object"===typeof o&&null!==o&&"string"===t.types[i]?r[i]=Object.values(o).join(t.arrayFormatSeparator):r[i]=O(o,t,t.types[i]);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return e[t]=Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?M(n):n,e}),Object.create(null))}function P(e,t){if(!e)return"";A((t=p({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&E(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[C(t,e),"[",i,"]"].join("")]:[...n,[C(t,e),"[",C(i,e),"]=",C(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[C(t,e),"[]"].join("")]:[...n,[C(t,e),"[]=",C(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[C(t,e),":list="].join("")]:[...n,[C(t,e),":list=",C(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[C(n,e),t,C(i,e)].join("")]:[[r,C(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,C(t,e)]:[...n,[C(t,e),"=",C(r,e)].join("")]}}(t),i={};for(const[a,s]of Object.entries(e))n(a)||(i[a]=s);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?C(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?C(n,t)+"[]":i.reduce(r(n),[]).join("&"):C(n,t)+"="+C(i,t)})).filter((e=>e.length>0)).join("&")}function I(e,t){var n,r;t=p({decode:!0},t);let[i,o]=x(e,"#");return void 0===i&&(i=e),p({url:null!==(n=null===(r=i)||void 0===r||null===(r=r.split("?"))||void 0===r?void 0:r[0])&&void 0!==n?n:"",query:N(T(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:D(o,t)}:{})}function R(e,t){t=p({encode:!0,strict:!0,[S]:!0},t);const n=F(e.url).split("?")[0]||"";let r=P(p(p({},N(T(e.url),{sort:!1})),e.query),t);r&&(r="?".concat(r));let i=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if("string"===typeof e.fragmentIdentifier){const r=new URL(n);r.hash=e.fragmentIdentifier,i=t[S]?r.hash:"#".concat(e.fragmentIdentifier)}return"".concat(n).concat(r).concat(i)}function j(e,t,n){n=p({parseFragmentIdentifier:!0,[S]:!1},n);const{url:r,query:i,fragmentIdentifier:o}=I(e,n);return R({url:r,query:_(i,t),fragmentIdentifier:o},n)}function L(e,t,n){return j(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)}const B=e;function z(e,t){window.gtag("event",e,t)}const U=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class H{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function q(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new H(n,r,t)}function G(e){return e.toLowerCase()}H.prototype.property={},H.prototype.normal={},H.prototype.space=null;class W{constructor(e,t){this.property=e,this.attribute=t}}W.prototype.space=null,W.prototype.boolean=!1,W.prototype.booleanish=!1,W.prototype.overloadedBoolean=!1,W.prototype.number=!1,W.prototype.commaSeparated=!1,W.prototype.spaceSeparated=!1,W.prototype.commaOrSpaceSeparated=!1,W.prototype.mustUseProperty=!1,W.prototype.defined=!1;let V=0;const Q=ee(),$=ee(),K=ee(),Y=ee(),X=ee(),Z=ee(),J=ee();function ee(){return 2**++V}const te=Object.keys(t);class ne extends W{constructor(e,n,r,i){let o=-1;if(super(e,n),re(this,"space",i),"number"===typeof r)for(;++o<te.length;){const e=te[o];re(this,te[o],(r&t[e])===t[e])}}}function re(e,t,n){n&&(e[t]=n)}ne.prototype.defined=!0;const ie={}.hasOwnProperty;function oe(e){const t={},n={};let r;for(r in e.properties)if(ie.call(e.properties,r)){const i=e.properties[r],o=new ne(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[G(r)]=r,n[G(o.attribute)]=r}return new H(t,n,e.space)}const ae=oe({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),se=oe({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ue(e,t){return t in e?e[t]:t}function le(e,t){return ue(e,t.toLowerCase())}const ce=oe({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:le,properties:{xmlns:null,xmlnsXLink:null}}),fe=oe({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:$,ariaAutoComplete:null,ariaBusy:$,ariaChecked:$,ariaColCount:Y,ariaColIndex:Y,ariaColSpan:Y,ariaControls:X,ariaCurrent:null,ariaDescribedBy:X,ariaDetails:null,ariaDisabled:$,ariaDropEffect:X,ariaErrorMessage:null,ariaExpanded:$,ariaFlowTo:X,ariaGrabbed:$,ariaHasPopup:null,ariaHidden:$,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:X,ariaLevel:Y,ariaLive:null,ariaModal:$,ariaMultiLine:$,ariaMultiSelectable:$,ariaOrientation:null,ariaOwns:X,ariaPlaceholder:null,ariaPosInSet:Y,ariaPressed:$,ariaReadOnly:$,ariaRelevant:null,ariaRequired:$,ariaRoleDescription:X,ariaRowCount:Y,ariaRowIndex:Y,ariaRowSpan:Y,ariaSelected:$,ariaSetSize:Y,ariaSort:null,ariaValueMax:Y,ariaValueMin:Y,ariaValueNow:Y,ariaValueText:null,role:null}}),de=oe({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:le,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Z,acceptCharset:X,accessKey:X,action:null,allow:null,allowFullScreen:Q,allowPaymentRequest:Q,allowUserMedia:Q,alt:null,as:null,async:Q,autoCapitalize:null,autoComplete:X,autoFocus:Q,autoPlay:Q,blocking:X,capture:null,charSet:null,checked:Q,cite:null,className:X,cols:Y,colSpan:null,content:null,contentEditable:$,controls:Q,controlsList:X,coords:Y|Z,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Q,defer:Q,dir:null,dirName:null,disabled:Q,download:K,draggable:$,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Q,formTarget:null,headers:X,height:Y,hidden:Q,high:Y,href:null,hrefLang:null,htmlFor:X,httpEquiv:X,id:null,imageSizes:null,imageSrcSet:null,inert:Q,inputMode:null,integrity:null,is:null,isMap:Q,itemId:null,itemProp:X,itemRef:X,itemScope:Q,itemType:X,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Q,low:Y,manifest:null,max:null,maxLength:Y,media:null,method:null,min:null,minLength:Y,multiple:Q,muted:Q,name:null,nonce:null,noModule:Q,noValidate:Q,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Q,optimum:Y,pattern:null,ping:X,placeholder:null,playsInline:Q,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Q,referrerPolicy:null,rel:X,required:Q,reversed:Q,rows:Y,rowSpan:Y,sandbox:X,scope:null,scoped:Q,seamless:Q,selected:Q,shadowRootClonable:Q,shadowRootDelegatesFocus:Q,shadowRootMode:null,shape:null,size:Y,sizes:null,slot:null,span:Y,spellCheck:$,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Y,step:null,style:null,tabIndex:Y,target:null,title:null,translate:null,type:null,typeMustMatch:Q,useMap:null,value:$,width:Y,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:X,axis:null,background:null,bgColor:null,border:Y,borderColor:null,bottomMargin:Y,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Q,declare:Q,event:null,face:null,frame:null,frameBorder:null,hSpace:Y,leftMargin:Y,link:null,longDesc:null,lowSrc:null,marginHeight:Y,marginWidth:Y,noResize:Q,noHref:Q,noShade:Q,noWrap:Q,object:null,profile:null,prompt:null,rev:null,rightMargin:Y,rules:null,scheme:null,scrolling:$,standby:null,summary:null,text:null,topMargin:Y,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Y,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Q,disableRemotePlayback:Q,prefix:null,property:null,results:Y,security:null,unselectable:null}}),he=oe({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:ue,properties:{about:J,accentHeight:Y,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Y,amplitude:Y,arabicForm:null,ascent:Y,attributeName:null,attributeType:null,azimuth:Y,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Y,by:null,calcMode:null,capHeight:Y,className:X,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Y,diffuseConstant:Y,direction:null,display:null,dur:null,divisor:Y,dominantBaseline:null,download:Q,dx:null,dy:null,edgeMode:null,editable:null,elevation:Y,enableBackground:null,end:null,event:null,exponent:Y,externalResourcesRequired:null,fill:null,fillOpacity:Y,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Z,g2:Z,glyphName:Z,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Y,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Y,horizOriginX:Y,horizOriginY:Y,id:null,ideographic:Y,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Y,k:Y,k1:Y,k2:Y,k3:Y,k4:Y,kernelMatrix:J,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Y,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Y,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Y,overlineThickness:Y,paintOrder:null,panose1:null,path:null,pathLength:Y,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:X,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Y,pointsAtY:Y,pointsAtZ:Y,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:J,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:J,rev:J,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:J,requiredFeatures:J,requiredFonts:J,requiredFormats:J,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Y,specularExponent:Y,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Y,strikethroughThickness:Y,string:null,stroke:null,strokeDashArray:J,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Y,strokeOpacity:Y,strokeWidth:null,style:null,surfaceScale:Y,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:J,tabIndex:Y,tableValues:null,target:null,targetX:Y,targetY:Y,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:J,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Y,underlineThickness:Y,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Y,values:null,vAlphabetic:Y,vMathematical:Y,vectorEffect:null,vHanging:Y,vIdeographic:Y,version:null,vertAdvY:Y,vertOriginX:Y,vertOriginY:Y,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Y,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),pe=q([se,ae,ce,fe,de],"html"),me=q([se,ae,ce,fe,he],"svg"),ge={}.hasOwnProperty;const ye=/["&'<>`]/g,ve=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,be=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,we=/[|\\{}()[\]^$+*?.]/g,_e=new WeakMap;function xe(e,t){return e=e.replace(t.subset?function(e){let t=_e.get(e);t||(t=function(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(we,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(e),_e.set(e,t));return t}(t.subset):ye,n),t.subset||t.escapeOnly?e:e.replace(ve,(function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)})).replace(be,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}const Ee=/[\dA-Fa-f]/;const ke=/\d/;const Se=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ae={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203e",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",lang:"\u2329",rang:"\u232a",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203a",euro:"\u20ac"},Ce=["cent","copy","divide","gt","lt","not","para","times"],De={}.hasOwnProperty,Me={};let Fe;for(Fe in Ae)De.call(Ae,Fe)&&(Me[Ae[Fe]]=Fe);const Oe=/[^\dA-Za-z]/;function Te(e,t,n){let r,i=function(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Ee.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){const i=String.fromCharCode(e);if(De.call(Me,i)){const e=Me[i],o="&"+e;return n&&Se.includes(e)&&!Ce.includes(e)&&(!r||t&&61!==t&&Oe.test(String.fromCharCode(t)))?o:o+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const r=function(e,t,n){const r="&#"+String(e);return n&&t&&!ke.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<i.length&&(i=r)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function Ne(e,t){return xe(e,Object.assign({format:Te},t))}const Pe=/^>|^->|<!--|-->|--!>|<!-$/g,Ie=[">"],Re=["<",">"];function je(e,t){const n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}function Le(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}const Be=/^data[-\w.:]+$/i,ze=/-[a-z]/g,Ue=/[A-Z]/g;function He(e){return"-"+e.toLowerCase()}function qe(e){return e.charAt(1).toUpperCase()}function Ge(e){return e.join(" ").trim()}const We=/[ \t\n\f\r]/g;function Ve(e){return"object"===typeof e?"text"===e.type&&Qe(e.value):Qe(e)}function Qe(e){return""===e.replace(We,"")}const $e=Xe(1),Ke=Xe(-1),Ye=[];function Xe(e){return function(t,n,r){const i=t?t.children:Ye;let o=(n||0)+e,a=i[o];if(!r)for(;a&&Ve(a);)o+=e,a=i[o];return a}}const Ze={}.hasOwnProperty;function Je(e){return function(t,n,r){return Ze.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const et=Je({body:function(e,t,n){const r=$e(n,t);return!r||"comment"!==r.type},caption:tt,colgroup:tt,dd:function(e,t,n){const r=$e(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){const r=$e(n,t);return Boolean(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:tt,html:function(e,t,n){const r=$e(n,t);return!r||"comment"!==r.type},li:function(e,t,n){const r=$e(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){const r=$e(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){const r=$e(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){const r=$e(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:nt,rt:nt,tbody:function(e,t,n){const r=$e(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:rt,tfoot:function(e,t,n){return!$e(n,t)},th:rt,thead:function(e,t,n){const r=$e(n,t);return Boolean(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){const r=$e(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function tt(e,t,n){const r=$e(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&Ve(r.value.charAt(0)))}function nt(e,t,n){const r=$e(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function rt(e,t,n){const r=$e(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}const it=Je({body:function(e){const t=$e(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&Ve(t.value.charAt(0)))&&!("element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName))},colgroup:function(e,t,n){const r=Ke(n,t),i=$e(e,-1,!0);if(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&et(r,n.children.indexOf(r),n))return!1;return Boolean(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){const t=new Set;for(const r of e.children)if("element"===r.type&&("base"===r.tagName||"title"===r.tagName)){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||"element"===n.type},html:function(e){const t=$e(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){const r=Ke(n,t),i=$e(e,-1);if(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&et(r,n.children.indexOf(r),n))return!1;return Boolean(i&&"element"===i.type&&"tr"===i.tagName)}});const ot={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function at(e,t,n){const r=function(e,t){const n=G(t);let r=t,i=W;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Be.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(ze,qe);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!ze.test(e)){let n=e.replace(Ue,He);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=ne}return new i(r,t)}(e.schema,t),i=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=e.settings.allowDangerousCharacters?0:1;let a,s=e.quote;if(!r.overloadedBoolean||n!==r.attribute&&""!==n?!r.boolean&&!r.overloadedBoolean||"string"===typeof n&&n!==r.attribute&&""!==n||(n=Boolean(n)):n=!0,null===n||void 0===n||!1===n||"number"===typeof n&&Number.isNaN(n))return"";const u=Ne(r.attribute,Object.assign({},e.settings.characterReferences,{subset:ot.name[i][o]}));return!0===n?u:(n=Array.isArray(n)?(r.commaSeparated?Le:Ge)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n?u:(e.settings.preferUnquoted&&(a=Ne(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ot.unquoted[i][o]}))),a!==n&&(e.settings.quoteSmart&&je(n,s)>je(n,e.alternative)&&(s=e.alternative),a=s+Ne(n,Object.assign({},e.settings.characterReferences,{subset:("'"===s?ot.single:ot.double)[i][o],attribute:!0}))+s),u+(a?"="+a:a)))}const st=["<","&"];function ut(e,t,n,r){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?Ne(e.value,Object.assign({},r.settings.characterReferences,{subset:st})):e.value}const lt=function(e,t){const n=t||{};function r(t){let n=r.invalid;const i=r.handlers;if(t&&ge.call(t,e)){const o=String(t[e]);n=ge.call(i,o)?i[o]:r.unknown}if(n){for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.call(this,t,...a)}}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+Ne(e.value,Object.assign({},r.settings.characterReferences,{subset:Ie}))+">":"\x3c!--"+e.value.replace(Pe,(function(e){return Ne(e,Object.assign({},r.settings.characterReferences,{subset:Re}))}))+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){const i=r.schema,o="svg"!==i.space&&r.settings.omitOptionalTags;let a="svg"===i.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const s=[];let u;"html"===i.space&&"svg"===e.tagName&&(r.schema=me);const l=function(e,t){const n=[];let r,i=-1;if(t)for(r in t)if(null!==t[r]&&void 0!==t[r]){const i=at(e,r,t[r]);i&&n.push(i)}for(;++i<n.length;){const t=e.settings.tightAttributes?n[i].charAt(n[i].length-1):void 0;i!==n.length-1&&'"'!==t&&"'"!==t&&(n[i]+=" ")}return n.join("")}(r,e.properties),c=r.all("html"===i.space&&"template"===e.tagName?e.content:e);return r.schema=i,c&&(a=!1),!l&&o&&it(e,t,n)||(s.push("<",e.tagName,l?" "+l:""),a&&("svg"===i.space||r.settings.closeSelfClosing)&&(u=l.charAt(l.length-1),(!r.settings.tightSelfClosing||"/"===u||u&&'"'!==u&&"'"!==u)&&s.push(" "),s.push("/")),s.push(">")),s.push(c),a||o&&et(e,t,n)||s.push("</"+e.tagName+">"),s.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:ut(e,0,n,r)},root:function(e,t,n,r){return r.all(e)},text:ut}});const ct={},ft={},dt=[];function ht(e,t,n){return lt(e,t,n,this)}function pt(e){const t=[],n=e&&e.children||dt;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function mt(e){const t=p(p({},this.data("settings")),e);this.compiler=function(e){return function(e,t){const n=t||ct,r=n.quote||'"',i='"'===r?"'":'"';if('"'!==r&&"'"!==r)throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:ht,all:pt,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||U,characterReferences:n.characterReferences||ft,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?me:pe,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}(e,t)}}const gt={};function yt(e,t,n){if(function(e){return Boolean(e&&"object"===typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return vt(e.children,t,n)}return Array.isArray(e)?vt(e,t,n):""}function vt(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=yt(e[i],t,n);return r.join("")}function bt(e,t,n,r){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function wt(e,t){return e.length>0?(bt(e,e.length,0,t),e):t}class _t{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null===t||void 0===t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&xt(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),xt(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),xt(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);xt(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);xt(this.left,t.reverse())}}}function xt(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Et(e){const t={};let n,r,i,o,a,s,u,l=-1;const c=new _t(e);for(;++l<c.length;){for(;l in t;)l=t[l];if(n=c.get(l),l&&"chunkFlow"===n[1].type&&"listItemPrefix"===c.get(l-1)[1].type&&(s=n[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,kt(c,l)),l=t[l],u=!0);else if(n[1]._container){for(i=l,r=void 0;i--&&(o=c.get(i),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(r&&(c.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);r&&(n[1].end=p({},c.get(r)[1].start),a=c.slice(r,l),a.unshift(n),c.splice(r,l-r+1,a))}}return bt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function kt(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,u=[],l={};let c,f,d=-1,h=n,p=0,m=0;const g=[m];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),f&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++d<s.length;)"exit"===s[d][0]&&"enter"===s[d-1][0]&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(m=d+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),d=g.length;d--;){const t=s.slice(g[d],g[d+1]),n=o.pop();u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),d=-1;++d<u.length;)l[p+u[d][0]]=p+u[d][1],p+=u[d][1]-u[d][0]-1;return l}const St={}.hasOwnProperty;function At(e,t){let n;for(n in t){const r=(St.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){St.call(r,o)||(r[o]=[]);const e=i[o];Ct(r[o],Array.isArray(e)?e:e?[e]:[])}}}function Ct(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);bt(e,0,0,r)}const Dt=zt(/[A-Za-z]/),Mt=zt(/[\dA-Za-z]/),Ft=zt(/[#-'*+\--9=?A-Z^-~]/);function Ot(e){return null!==e&&(e<32||127===e)}const Tt=zt(/\d/),Nt=zt(/[\dA-Fa-f]/),Pt=zt(/[!-/:-@[-`{-~]/);function It(e){return null!==e&&e<-2}function Rt(e){return null!==e&&(e<0||32===e)}function jt(e){return-2===e||-1===e||32===e}const Lt=zt(/(?:[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F])|(?:[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDD00-\uDEB3\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF])/),Bt=zt(/\s/);function zt(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Ut(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(jt(r))return e.enter(n),a(r);return t(r)};function a(r){return jt(r)&&o++<i?(e.consume(r),a):(e.exit(n),t(r))}}const Ht={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Ut(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):It(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}};const qt={tokenize:function(e){const t=this,n=[];let r,i,o,a=0;return s;function s(r){if(a<n.length){const i=n[a];return t.containerState=i[1],e.attempt(i[0].continuation,u,l)(r)}return l(r)}function u(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}v(a);let s=n;for(;s<t.events.length;)t.events[s][1].end=p({},i),s++;return bt(t.events,o+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(i){if(a===n.length){if(!r)return d(i);if(r.currentConstruct&&r.currentConstruct.concrete)return m(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Gt,c,f)(i)}function c(e){return r&&b(),v(a),d(e)}function f(e){return t.parser.lazy[t.now().line]=a!==n.length,o=t.now().offset,m(e)}function d(n){return t.containerState={},e.attempt(Gt,h,m)(n)}function h(e){return a++,n.push([t.currentConstruct,t.containerState]),d(e)}function m(n){return null===n?(r&&b(),v(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:i}),g(n))}function g(n){return null===n?(y(e.exit("chunkFlow"),!0),v(0),void e.consume(n)):It(n)?(e.consume(n),y(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),g)}function y(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,s,u=n;for(;u--;)if("exit"===t.events[u][0]&&"chunkFlow"===t.events[u][1].type){if(i){s=t.events[u][1].end;break}i=!0}for(v(a),e=n;e<t.events.length;)t.events[e][1].end=p({},s),e++;bt(t.events,u+1,0,t.events.slice(n)),t.events.length=e}}function v(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Gt={tokenize:function(e,t,n){return Ut(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Wt={partial:!0,tokenize:function(e,t,n){return function(t){return jt(t)?Ut(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||It(e)?t(e):n(e)}}};const Vt={resolve:function(e){return Et(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):It(t)?e.check(Qt,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Qt={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ut(e,i,"linePrefix")};function i(i){if(null===i||It(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};const $t={tokenize:function(e){const t=this,n=e.attempt(Wt,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,Ut(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Vt,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const Kt={resolveAll:Jt()},Yt=Zt("string"),Xt=Zt("text");function Zt(e){return{resolveAll:Jt("text"===e?en:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return u(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return u(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function u(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function Jt(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function en(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,a=i.length,s=-1,u=0;for(;a--;){const e=i[a];if("string"===typeof e){for(s=e.length;32===e.charCodeAt(s-1);)u++,s--;if(s)break;s=-1}else if(-2===e)o=!0,u++;else if(-1!==e){a++;break}}if(u){const i={type:n===e.length||o||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:p({},r.end)};r.end=p({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}const tn={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),a(o)):i>=3&&(null===o||It(o))?(e.exit("thematicBreak"),t(o)):n(o)}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),jt(t)?Ut(e,o,"whitespace")(t):o(t))}}};const nn={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Wt,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ut(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!jt(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(on,t,i)(n)}));function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ut(e,e.attempt(nn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:Tt(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(tn,n,u)(t):u(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return Tt(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),u(t)):n(t)}function u(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Wt,r.interrupt?n:l,e.attempt(rn,f,c))}function l(e){return r.containerState.initialBlankLine=!0,o++,f(e)}function c(t){return jt(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},rn={partial:!0,tokenize:function(e,t,n){const r=this;return Ut(e,(function(e){const i=r.events[r.events.length-1];return!jt(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},on={partial:!0,tokenize:function(e,t,n){const r=this;return Ut(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const an={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(jt(t))return Ut(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(an,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return jt(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function sn(e,t,n,r,i,o,a,s,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f;if(null===t||32===t||41===t||Ot(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),p(t)};function f(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(s),f(t)):null===t||60===t||It(t)?n(t):(e.consume(t),92===t?h:d)}function h(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function p(i){return c||null!==i&&41!==i&&!Rt(i)?c<l&&40===i?(e.consume(i),c++,p):41===i?(e.consume(i),c--,p):null===i||32===i||40===i||Ot(i)?n(i):(e.consume(i),92===i?m:p):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function un(e,t,n,r,i,o){const a=this;let s,u=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),l};function l(f){return u>999||null===f||91===f||93===f&&!s||94===f&&!u&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):It(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||It(t)||u++>999?(e.exit("chunkString"),l(t)):(e.consume(t),s||(s=!jt(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),u++,c):c(t)}}function ln(e,t,n,r,i,o){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),u(n))}function u(t){return t===a?(e.exit(o),s(a)):null===t?n(t):It(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ut(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===a||null===t||It(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?c:l)}function c(t){return t===a||92===t?(e.consume(t),l):l(t)}}function cn(e,t){let n;return function r(i){if(It(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(jt(i))return Ut(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}function fn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const dn={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return un.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=fn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return Rt(t)?cn(e,s)(t):s(t)}function s(t){return sn(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function u(t){return e.attempt(hn,l,l)(t)}function l(t){return jt(t)?Ut(e,c,"whitespace")(t):c(t)}function c(o){return null===o||It(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},hn={partial:!0,tokenize:function(e,t,n){return function(t){return Rt(t)?cn(e,r)(t):n(t)};function r(t){return ln(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return jt(t)?Ut(e,o,"whitespace")(t):o(t)}function o(e){return null===e||It(e)?t(e):n(e)}}};const pn={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Ut(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):It(t)?e.attempt(mn,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||It(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},mn={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):It(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):Ut(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):It(e)?i(e):n(e)}}};const gn={name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},bt(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||Rt(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||It(n)?(e.exit("atxHeading"),t(n)):jt(n)?Ut(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||Rt(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}}};const yn={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:p({},e[r][1].start),end:p({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=p({},e[i][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let i;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),jt(t)?Ut(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||It(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const vn=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],bn=["pre","script","style","textarea"],wn={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let i,o,a,s,u;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),l}(t)};function l(s){return 33===s?(e.consume(s),c):47===s?(e.consume(s),o=!0,h):63===s?(e.consume(s),i=3,r.interrupt?t:P):Dt(s)?(e.consume(s),a=String.fromCharCode(s),p):n(s)}function c(o){return 45===o?(e.consume(o),i=2,f):91===o?(e.consume(o),i=5,s=0,d):Dt(o)?(e.consume(o),i=4,r.interrupt?t:P):n(o)}function f(i){return 45===i?(e.consume(i),r.interrupt?t:P):n(i)}function d(i){const o="CDATA[";return i===o.charCodeAt(s++)?(e.consume(i),6===s?r.interrupt?t:A:d):n(i)}function h(t){return Dt(t)?(e.consume(t),a=String.fromCharCode(t),p):n(t)}function p(s){if(null===s||47===s||62===s||Rt(s)){const u=47===s,l=a.toLowerCase();return u||o||!bn.includes(l)?vn.includes(a.toLowerCase())?(i=6,u?(e.consume(s),m):r.interrupt?t(s):A(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?g(s):y(s)):(i=1,r.interrupt?t(s):A(s))}return 45===s||Mt(s)?(e.consume(s),a+=String.fromCharCode(s),p):n(s)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:A):n(i)}function g(t){return jt(t)?(e.consume(t),g):k(t)}function y(t){return 47===t?(e.consume(t),k):58===t||95===t||Dt(t)?(e.consume(t),v):jt(t)?(e.consume(t),y):k(t)}function v(t){return 45===t||46===t||58===t||95===t||Mt(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),w):jt(t)?(e.consume(t),b):y(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),u=t,_):jt(t)?(e.consume(t),w):x(t)}function _(t){return t===u?(e.consume(t),u=null,E):null===t||It(t)?n(t):(e.consume(t),_)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Rt(t)?b(t):(e.consume(t),x)}function E(e){return 47===e||62===e||jt(e)?y(e):n(e)}function k(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||It(t)?A(t):jt(t)?(e.consume(t),S):n(t)}function A(t){return 45===t&&2===i?(e.consume(t),F):60===t&&1===i?(e.consume(t),O):62===t&&4===i?(e.consume(t),I):63===t&&3===i?(e.consume(t),P):93===t&&5===i?(e.consume(t),N):!It(t)||6!==i&&7!==i?null===t||It(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),A):(e.exit("htmlFlowData"),e.check(_n,R,C)(t))}function C(t){return e.check(xn,D,R)(t)}function D(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return null===t||It(t)?C(t):(e.enter("htmlFlowData"),A(t))}function F(t){return 45===t?(e.consume(t),P):A(t)}function O(t){return 47===t?(e.consume(t),a="",T):A(t)}function T(t){if(62===t){const n=a.toLowerCase();return bn.includes(n)?(e.consume(t),I):A(t)}return Dt(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),T):A(t)}function N(t){return 93===t?(e.consume(t),P):A(t)}function P(t){return 62===t?(e.consume(t),I):45===t&&2===i?(e.consume(t),P):A(t)}function I(t){return null===t||It(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),I)}function R(n){return e.exit("htmlFlow"),t(n)}}},_n={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Wt,t,n)}}},xn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(It(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const En={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},kn={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u}function u(t){return e.enter("codeFencedFence"),jt(t)?Ut(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===o?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===o?(i++,e.consume(t),c):i>=s?(e.exit("codeFencedFenceSequence"),jt(t)?Ut(e,f,"whitespace")(t):f(t)):n(t)}function f(r){return null===r||It(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(t)}(t)};function u(t){return t===o?(s++,e.consume(t),u):s<3?n(t):(e.exit("codeFencedFenceSequence"),jt(t)?Ut(e,l,"whitespace")(t):l(t))}function l(n){return null===n||It(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(En,h,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||It(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(t)):jt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ut(e,f,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),c)}function f(t){return null===t||It(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||It(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(t)):96===t&&t===o?n(t):(e.consume(t),d)}function h(t){return e.attempt(i,v,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&jt(t)?Ut(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||It(t)?e.check(En,h,v)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||It(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function v(n){return e.exit("codeFenced"),t(n)}}};const Sn=document.createElement("i");function An(e){const t="&"+e+";";Sn.innerHTML=t;const n=Sn.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const Cn={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,o=Mt,l(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Nt,l):(e.enter("characterReferenceValue"),i=7,o=Tt,l(t))}function l(s){if(59===s&&a){const i=e.exit("characterReferenceValue");return o!==Mt||An(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&a++<i?(e.consume(s),l):n(s)}}};const Dn={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Pt(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const Mn={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Ut(e,t,"linePrefix")}}};function Fn(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const On={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&bt(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,i,o,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=a);const u={type:"labelLink"===e[r][1].type?"link":"image",start:p({},e[r][1].start),end:p({},e[e.length-1][1].end)},l={type:"label",start:p({},e[r][1].start),end:p({},e[i][1].end)},c={type:"labelText",start:p({},e[r+s+2][1].end),end:p({},e[i-2][1].start)};return o=[["enter",u,t],["enter",l,t]],o=wt(o,e.slice(r+1,r+s+3)),o=wt(o,[["enter",c,t]]),o=wt(o,Fn(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=wt(o,[["exit",c,t],e[i-2],e[i-1],["exit",l,t]]),o=wt(o,e.slice(i+1)),o=wt(o,[["exit",u,t]]),bt(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let i,o,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){i=r.events[a][1];break}return function(t){if(!i)return n(t);if(i._inactive)return c(t);return o=r.parser.defined.includes(fn(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(Tn,l,o?l:c)(t):91===t?e.attempt(Nn,l,o?u:c)(t):o?l(t):c(t)}function u(t){return e.attempt(Pn,l,c)(t)}function l(e){return t(e)}function c(e){return i._balanced=!0,n(e)}}},Tn={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Rt(t)?cn(e,i)(t):i(t)}function i(t){return 41===t?l(t):sn(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return Rt(t)?cn(e,s)(t):l(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?ln(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):l(t)}function u(t){return Rt(t)?cn(e,l)(t):l(t)}function l(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Nn={tokenize:function(e,t,n){const r=this;return function(t){return un.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(fn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},Pn={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const In={name:"labelStartImage",resolveAll:On.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function Rn(e){return null===e||Rt(e)||Bt(e)?1:Lt(e)?2:void 0}const jn={name:"attention",resolveAll:function(e,t){let n,r,i,o,a,s,u,l,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close)for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const f=p({},e[n][1].end),d=p({},e[c][1].start);Ln(f,-s),Ln(d,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,end:p({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:p({},e[c][1].start),end:d},i={type:s>1?"strongText":"emphasisText",start:p({},e[n][1].end),end:p({},e[c][1].start)},r={type:s>1?"strong":"emphasis",start:p({},o.start),end:p({},a.end)},e[n][1].end=p({},o.start),e[c][1].start=p({},a.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=wt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=wt(u,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=wt(u,Fn(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),u=wt(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(l=2,u=wt(u,[["enter",e[c][1],t],["exit",e[c][1],t]])):l=0,bt(e,n-1,c-n+3,u),c=n+u.length-l-2;break}c=-1;for(;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Rn(r);let o;return function(t){return o=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===o)return e.consume(s),a;const u=e.exit("attentionSequence"),l=Rn(s),c=!l||2===l&&i||n.includes(s),f=!i||2===i&&l||n.includes(r);return u._open=Boolean(42===o?c:c&&(i||!f)),u._close=Boolean(42===o?f:f&&(l||!c)),t(s)}}};function Ln(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Bn={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return Dt(t)?(e.consume(t),o):64===t?n(t):u(t)}function o(e){return 43===e||45===e||46===e||Mt(e)?(r=1,a(e)):u(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||Mt(t))&&r++<32?(e.consume(t),a):(r=0,u(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Ot(r)?n(r):(e.consume(r),s)}function u(t){return 64===t?(e.consume(t),l):Ft(t)?(e.consume(t),u):n(t)}function l(e){return Mt(e)?c(e):n(e)}function c(n){return 46===n?(e.consume(n),r=0,l):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):f(n)}function f(t){if((45===t||Mt(t))&&r++<63){const n=45===t?f:c;return e.consume(t),n}return n(t)}}};const zn={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),u):47===t?(e.consume(t),w):63===t?(e.consume(t),v):Dt(t)?(e.consume(t),E):n(t)}function u(t){return 45===t?(e.consume(t),l):91===t?(e.consume(t),o=0,h):Dt(t)?(e.consume(t),y):n(t)}function l(t){return 45===t?(e.consume(t),d):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),f):It(t)?(a=c,T(t)):(e.consume(t),c)}function f(t){return 45===t?(e.consume(t),d):c(t)}function d(e){return 62===e?O(e):45===e?f(e):c(e)}function h(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),6===o?p:h):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),m):It(t)?(a=p,T(t)):(e.consume(t),p)}function m(t){return 93===t?(e.consume(t),g):p(t)}function g(t){return 62===t?O(t):93===t?(e.consume(t),g):p(t)}function y(t){return null===t||62===t?O(t):It(t)?(a=y,T(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):It(t)?(a=v,T(t)):(e.consume(t),v)}function b(e){return 62===e?O(e):v(e)}function w(t){return Dt(t)?(e.consume(t),_):n(t)}function _(t){return 45===t||Mt(t)?(e.consume(t),_):x(t)}function x(t){return It(t)?(a=x,T(t)):jt(t)?(e.consume(t),x):O(t)}function E(t){return 45===t||Mt(t)?(e.consume(t),E):47===t||62===t||Rt(t)?k(t):n(t)}function k(t){return 47===t?(e.consume(t),O):58===t||95===t||Dt(t)?(e.consume(t),S):It(t)?(a=k,T(t)):jt(t)?(e.consume(t),k):O(t)}function S(t){return 45===t||46===t||58===t||95===t||Mt(t)?(e.consume(t),S):A(t)}function A(t){return 61===t?(e.consume(t),C):It(t)?(a=A,T(t)):jt(t)?(e.consume(t),A):k(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,D):It(t)?(a=C,T(t)):jt(t)?(e.consume(t),C):(e.consume(t),M)}function D(t){return t===i?(e.consume(t),i=void 0,F):null===t?n(t):It(t)?(a=D,T(t)):(e.consume(t),D)}function M(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Rt(t)?k(t):(e.consume(t),M)}function F(e){return 47===e||62===e||Rt(e)?k(e):n(e)}function O(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function T(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return jt(t)?Ut(e,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),a(t)}}};const Un={name:"labelStartLink",resolveAll:On.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Hn={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return It(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const qn={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[i][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),o++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),r=0,l(t)):It(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(t))}function u(t){return null===t||32===t||96===t||It(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),u)}function l(n){return 96===n?(e.consume(n),r++,l):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",u(n))}}};const Gn={42:nn,43:nn,45:nn,48:nn,49:nn,50:nn,51:nn,52:nn,53:nn,54:nn,55:nn,56:nn,57:nn,62:an},Wn={91:dn},Vn={[-2]:pn,[-1]:pn,32:pn},Qn={35:gn,42:tn,45:[yn,tn],60:wn,61:yn,95:tn,96:kn,126:kn},$n={38:Cn,92:Dn},Kn={[-5]:Mn,[-4]:Mn,[-3]:Mn,33:In,38:Cn,42:jn,60:[Bn,zn],91:Un,92:[Hn,Dn],93:On,95:jn,96:qn},Yn={null:[jn,Kt]},Xn={null:[42,95]},Zn={null:[]};function Jn(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],s=[],u=!0;const l={attempt:v((function(e,t){b(e,t.from)})),check:v(y),consume:function(e){It(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,w()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e,u=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:v(y,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,w()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if("string"===typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,r.push(a)}return r.join("")}(h(e),t)},sliceStream:h,write:function(e){if(a=wt(a,e),m(),null!==a[a.length-1])return[];return b(t,0),c.events=Fn(o,c.events,c),c.events}};let f,d=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function h(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const e=a[0];"string"===typeof e?a[0]=e.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}(a,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function m(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"===typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){u=void 0,f=e,d=d(e)}function y(e,t){t.restore()}function v(e,t){return function(n,i,o){let a,f,d,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return a=e,f=0,0===e.length?o:g(e[f])}function g(e){return function(n){h=function(){const e=p(),t=c.previous,n=c.currentConstruct,i=c.events.length,o=Array.from(s);return{from:i,restore:a};function a(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=o,w()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return v(n);return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,y,v)(n)}}function y(t){return u=!0,e(d,h),i}function v(e){return u=!0,h.restore(),++f<a.length?g(a[f]):o}}}function b(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&bt(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function er(e){const t={constructs:function(e){const t={};let n=-1;for(;++n<e.length;)At(t,e[n]);return t}([r,...(e||{}).extensions||[]]),content:n(Ht),defined:[],document:n(qt),flow:n($t),lazy:{},string:n(Yt),text:n(Xt)};return t;function n(e){return function(n){return Jn(t,e,n)}}}const tr=/[\0\t\n\r]/g;function nr(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const rr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ir(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return nr(n.slice(t?2:1),t?16:10)}return An(n)||e}function or(e){return e&&"object"===typeof e?"position"in e||"type"in e?sr(e.position):"start"in e||"end"in e?sr(e):"line"in e||"column"in e?ar(e):"":""}function ar(e){return ur(e&&e.line)+":"+ur(e&&e.column)}function sr(e){return ar(e&&e.start)+"-"+ar(e&&e.end)}function ur(e){return e&&"number"===typeof e?e:1}const lr={}.hasOwnProperty;function cr(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(te),autolinkProtocol:S,autolinkEmail:S,atxHeading:o(X),blockQuote:o(V),characterEscape:S,characterReference:S,codeFenced:o(Q),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(Q,a),codeText:o($,a),codeTextData:S,data:S,codeFlowValue:S,definition:o(K),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(Y),hardBreakEscape:o(Z),hardBreakTrailing:o(Z),htmlFlow:o(J,a),htmlFlowData:S,htmlText:o(J,a),htmlTextData:S,image:o(ee),label:a,link:o(te),listItem:o(re),listItemValue:d,listOrdered:o(ne,f),listUnordered:o(ne),paragraph:o(ie),reference:B,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(X),strong:o(oe),thematicBreak:o(se)},exit:{atxHeading:u(),atxHeadingSequence:_,autolink:u(),autolinkEmail:W,autolinkProtocol:G,blockQuote:u(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:H,characterReference:q,codeFenced:u(g),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:p,codeFlowValue:A,codeIndented:u(y),codeText:u(O),codeTextData:A,data:A,definition:u(),definitionDestinationString:w,definitionLabelString:v,definitionTitleString:b,emphasis:u(),hardBreakEscape:u(D),hardBreakTrailing:u(D),htmlFlow:u(M),htmlFlowData:A,htmlText:u(F),htmlTextData:A,image:u(N),label:I,labelText:P,lineEnding:C,link:u(T),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:z,resourceDestinationString:R,resourceTitleString:j,resource:L,setextHeading:u(k),setextHeadingLineSequence:E,setextHeadingText:x,strong:u(),thematicBreak:u()}};dr(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:a,resume:c,data:n},u=[];let f=-1;for(;++f<e.length;)if("listOrdered"===e[f][1].type||"listUnordered"===e[f][1].type)if("enter"===e[f][0])u.push(f);else{f=i(e,u.pop(),f)}for(f=-1;++f<e.length;){const n=t[e[f][0]];lr.call(n,e[f][1].type)&&n[e[f][1].type].call(Object.assign({sliceSerialize:e[f][2].sliceSerialize},o),e[f][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||pr).call(o,void 0,e[0])}for(r.position={start:fr(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:fr(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},f=-1;++f<t.transforms.length;)r=t.transforms[f](r)||r;return r}function i(e,t,n){let r,i,o,a,s=t-1,u=-1,l=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?u++:u--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||u||o||(o=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!u&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===u&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",l=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,o=void 0,a=!0}}}return e[t][1]._spread=l,n}function o(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:fr(t.start),end:void 0}}function u(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+or({start:e.start,end:e.end})+"): it\u2019s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||pr).call(this,e,r[0])}n.position.end=fr(e.end)}function c(){return function(e,t){const n=t||gt;return yt(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function h(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function p(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=fn(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function w(){const e=this.resume();this.stack[this.stack.length-1].url=e}function _(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function E(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function S(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:fr(e.start),end:void 0},t.push(n)),this.stack.push(n)}function A(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=fr(e.end)}function C(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=fr(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(S.call(this,e),A.call(this,e))}function D(){this.data.atHardBreak=!0}function M(){const e=this.resume();this.stack[this.stack.length-1].value=e}function F(){const e=this.resume();this.stack[this.stack.length-1].value=e}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e}function T(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(rr,ir)}(t),n.identifier=fn(t).toLowerCase()}function I(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function R(){const e=this.resume();this.stack[this.stack.length-1].url=e}function j(){const e=this.resume();this.stack[this.stack.length-1].title=e}function L(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function z(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=fn(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function U(e){this.data.characterReferenceType=e.type}function H(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=nr(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=An(t)}this.stack[this.stack.length-1].value+=r}function q(e){this.stack.pop().position.end=fr(e.end)}function G(e){A.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function W(e){A.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function V(){return{type:"blockquote",children:[]}}function Q(){return{type:"code",lang:null,meta:null,value:""}}function $(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Y(){return{type:"emphasis",children:[]}}function X(){return{type:"heading",depth:0,children:[]}}function Z(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Et(e););return e}(er(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,a){const s=[];let u,l,c,f,d;for(i=n+("string"===typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),c=0,n="",r&&(65279===i.charCodeAt(0)&&c++,r=void 0);c<i.length;){if(tr.lastIndex=c,u=tr.exec(i),f=u&&void 0!==u.index?u.index:i.length,d=i.charCodeAt(f),!u){n=i.slice(c);break}if(10===d&&c===f&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),c<f&&(s.push(i.slice(c,f)),t+=f-c),d){case 0:s.push(65533),t++;break;case 9:for(l=4*Math.ceil(t/4),s.push(-2);t++<l;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}c=f+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function fr(e){return{line:e.line,column:e.column,offset:e.offset}}function dr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?dr(e,r):hr(e,r)}}function hr(e,t){let n;for(n in t)if(lr.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function pr(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+or({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+or({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+or({start:t.start,end:t.end})+") is still open")}function mr(e){const t=this;t.parser=function(n){return cr(n,p(p(p({},t.data("settings")),e),{},{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}}const gr="object"===typeof self?self:globalThis,yr=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case 0:case-1:return n(a,i);case 1:{const e=n([],i);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},i);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{const e=n(new Map,i);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,i);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new gr[e](t),i)}case 8:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new gr[o](a),i)};return r})(new Map,e)(0),vr="",{toString:br}={},{keys:wr}=Object,_r=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=br.call(e).slice(8,-1);switch(n){case"Array":return[1,vr];case"Object":return[2,vr];case"Date":return[3,vr];case"RegExp":return[4,vr];case"Map":return[5,vr];case"Set":return[6,vr]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},xr=e=>{let[t,n]=e;return 0===t&&("function"===n||"symbol"===n)},Er=function(e){let{json:t,lossy:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[a,s]=_r(r);switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([a,t],r)}case 1:{if(s)return i([s,[...r]],r);const e=[],t=i([a,e],r);for(const n of r)e.push(o(n));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],u=i([a,n],r);for(const t of wr(r))!e&&xr(_r(r[t]))||n.push([o(t),o(r[t])]);return u}case 3:return i([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([a,{source:e,flags:t}],r)}case 5:{const t=[],n=i([a,t],r);for(const[i,a]of r)(e||!xr(_r(i))&&!xr(_r(a)))&&t.push([o(i),o(a)]);return n}case 6:{const t=[],n=i([a,t],r);for(const i of r)!e&&xr(_r(i))||t.push(o(i));return n}}const{message:u}=r;return i([a,{name:s,message:u}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},kr="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?yr(Er(e,t)):structuredClone(e):(e,t)=>yr(Er(e,t));function Sr(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(37===o&&Mt(e.charCodeAt(n+1))&&Mt(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="\ufffd"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ar(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Cr(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Dr(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}const Mr=function(e){if(null===e||void 0===e)return Or;if("function"===typeof e)return Fr(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Mr(e[n]);return Fr(r);function r(){let e=-1;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(;++e<t.length;)if(t[e].apply(this,r))return!0;return!1}}(e):function(e){const t=e;return Fr(n);function n(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}}(e);if("string"===typeof e)return function(e){return Fr(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function Fr(e){return function(t,n,r){return Boolean(Tr(t)&&e.call(this,t,"number"===typeof n?n:void 0,r||void 0))}}function Or(){return!0}function Tr(e){return null!==e&&"object"===typeof e&&"type"in e}const Nr=[],Pr=!0,Ir=!1;function Rr(e,t,n,r){let i;"function"===typeof t&&"function"!==typeof n?(r=n,n=t):i=t;const o=Mr(i),a=r?-1:1;!function e(i,s,u){const l=i&&"object"===typeof i?i:{};if("string"===typeof l.type){const e="string"===typeof l.tagName?l.tagName:"string"===typeof l.name?l.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){let l,c,f,d=Nr;if((!t||o(i,s,u[u.length-1]||void 0))&&(d=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[Pr,e];return null===e||void 0===e?Nr:[e]}(n(i,u)),d[0]===Ir))return d;if("children"in i&&i.children){const t=i;if(t.children&&"skip"!==d[0])for(c=(r?t.children.length:-1)+a,f=u.concat(t);c>-1&&c<t.children.length;){const n=t.children[c];if(l=e(n,c,f)(),l[0]===Ir)return l;c="number"===typeof l[1]?l[1]:c+a}}return d}}(e,void 0,[])()}const jr=Br("end"),Lr=Br("start");function Br(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}function zr(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function Ur(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}function Hr(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(qr(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(qr(t.slice(i),i>0,!1)),o.join("")}function qr(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const Gr={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Sr(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(r,s);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return zr(e,t);const i={src:Sr(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:Sr(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return zr(e,t);const i={href:Sr(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:Sr(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ur(n[r])}return t}(n):Ur(t),o={},a=[];if("boolean"===typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}const u=r[r.length-1];u&&(i||"element"!==u.type||"p"!==u.tagName)&&a.push({type:"text",value:"\n"});const l={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,l),e.applyData(t,l)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"===typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Lr(t.children[1]),a=jr(t.children[t.children.length-1]);o&&a&&(r.position={start:o,end:a}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const u=[];for(;++s<a;){const n=t.children[s],r={},a=o?o[s]:void 0;a&&(r.align=a);let l={type:"element",tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),u.push(l)}const l={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,l),e.applyData(t,l)},text:function(e,t){const n={type:"text",value:Hr(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Wr,yaml:Wr,definition:Wr,footnoteDefinition:Wr};function Wr(){}const Vr=["children"],Qr={}.hasOwnProperty,$r={};function Kr(e,t){const n=t||$r,r=new Map,i=new Map,o=new Map,a=p(p({},Gr),n.handlers),s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const i=s.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=ei(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=ei(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:Xr,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=s.handlers[n];if(Qr.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=Dr(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Vr),r=kr(n);return r.children=s.all(e),r}return kr(e)}return(s.options.unknownHandler||Zr)(s,e,t)},options:n,patch:Yr,wrap:Jr};return function(e,t,n,r){let i,o,a;"function"===typeof t&&"function"!==typeof n?(o=void 0,a=t,i=n):(o=t,a=n,i=r),Rr(e,o,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),i)}(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),s}function Yr(e,t){e.position&&(t.position=function(e){const t=Lr(e),n=jr(e);if(t&&n)return{start:t,end:n}}(e))}function Xr(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;if("string"===typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&i&&Object.assign(n.properties,kr(i)),"children"in n&&n.children&&null!==r&&void 0!==r&&(n.children=r)}return n}function Zr(e,t){const n=t.data||{},r=!("value"in t)||Qr.call(n,"hProperties")||Qr.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function Jr(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function ei(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ti(e,t){const n=Kr(e,t),r=n.one(e,void 0),i=function(e){const t="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ar,r=e.options.footnoteBackLabel||Cr,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let u=-1;for(;++u<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[u]);if(!i)continue;const o=e.all(i),a=String(i.identifier).toUpperCase(),l=Sr(a.toLowerCase());let c=0;const f=[],d=e.footnoteCounts.get(a);for(;void 0!==d&&++c<=d;){f.length>0&&f.push({type:"text",value:" "});let e="string"===typeof n?n:n(u,c);"string"===typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+l+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof r?r:r(u,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...f)}else o.push(...f);const p={type:"element",tagName:"li",properties:{id:t+"fn-"+l},children:e.wrap(o,!0)};e.patch(i,p),s.push(p)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:p(p({},kr(a)),{},{id:"footnote-label"}),children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function ni(e,t){return e&&"run"in e?async function(n,r){const i=ti(n,p({file:r},t));await e.run(i,r)}:function(n,r){return ti(n,p({file:r},e||t))}}function ri(){return ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ri.apply(null,arguments)}function ii(e,t){return ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ii(e,t)}function oi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ii(e,t)}const ai="object"==typeof global&&global&&global.Object===Object&&global;var si="object"==typeof self&&self&&self.Object===Object&&self;const ui=ai||si||Function("return this")();const li=ui.Symbol;var ci=Object.prototype,fi=ci.hasOwnProperty,di=ci.toString,hi=li?li.toStringTag:void 0;const pi=function(e){var t=fi.call(e,hi),n=e[hi];try{e[hi]=void 0;var r=!0}catch(o){}var i=di.call(e);return r&&(t?e[hi]=n:delete e[hi]),i};var mi=Object.prototype.toString;const gi=function(e){return mi.call(e)};var yi=li?li.toStringTag:void 0;const vi=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":yi&&yi in Object(e)?pi(e):gi(e)};const bi=function(e,t){return function(n){return e(t(n))}};const wi=bi(Object.getPrototypeOf,Object);const _i=function(e){return null!=e&&"object"==typeof e};var xi=Function.prototype,Ei=Object.prototype,ki=xi.toString,Si=Ei.hasOwnProperty,Ai=ki.call(Object);const Ci=function(e){if(!_i(e)||"[object Object]"!=vi(e))return!1;var t=wi(e);if(null===t)return!0;var n=Si.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ki.call(n)==Ai};const Di=Array.isArray;const Mi=function(e){return"symbol"==typeof e||_i(e)&&"[object Symbol]"==vi(e)};var Fi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oi=/^\w*$/;const Ti=function(e,t){if(Di(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Mi(e))||(Oi.test(e)||!Fi.test(e)||null!=t&&e in Object(t))};const Ni=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const Pi=function(e){if(!Ni(e))return!1;var t=vi(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const Ii=ui["__core-js_shared__"];var Ri=function(){var e=/[^.]+$/.exec(Ii&&Ii.keys&&Ii.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();const ji=function(e){return!!Ri&&Ri in e};var Li=Function.prototype.toString;const Bi=function(e){if(null!=e){try{return Li.call(e)}catch(t){}try{return e+""}catch(t){}}return""};var zi=/^\[object .+?Constructor\]$/,Ui=Function.prototype,Hi=Object.prototype,qi=Ui.toString,Gi=Hi.hasOwnProperty,Wi=RegExp("^"+qi.call(Gi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Vi=function(e){return!(!Ni(e)||ji(e))&&(Pi(e)?Wi:zi).test(Bi(e))};const Qi=function(e,t){return null==e?void 0:e[t]};const $i=function(e,t){var n=Qi(e,t);return Vi(n)?n:void 0};const Ki=$i(Object,"create");const Yi=function(){this.__data__=Ki?Ki(null):{},this.size=0};const Xi=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Zi=Object.prototype.hasOwnProperty;const Ji=function(e){var t=this.__data__;if(Ki){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Zi.call(t,e)?t[e]:void 0};var eo=Object.prototype.hasOwnProperty;const to=function(e){var t=this.__data__;return Ki?void 0!==t[e]:eo.call(t,e)};const no=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ki&&void 0===t?"__lodash_hash_undefined__":t,this};function ro(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ro.prototype.clear=Yi,ro.prototype.delete=Xi,ro.prototype.get=Ji,ro.prototype.has=to,ro.prototype.set=no;const io=ro;const oo=function(){this.__data__=[],this.size=0};const ao=function(e,t){return e===t||e!==e&&t!==t};const so=function(e,t){for(var n=e.length;n--;)if(ao(e[n][0],t))return n;return-1};var uo=Array.prototype.splice;const lo=function(e){var t=this.__data__,n=so(t,e);return!(n<0)&&(n==t.length-1?t.pop():uo.call(t,n,1),--this.size,!0)};const co=function(e){var t=this.__data__,n=so(t,e);return n<0?void 0:t[n][1]};const fo=function(e){return so(this.__data__,e)>-1};const ho=function(e,t){var n=this.__data__,r=so(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function po(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}po.prototype.clear=oo,po.prototype.delete=lo,po.prototype.get=co,po.prototype.has=fo,po.prototype.set=ho;const mo=po;const go=$i(ui,"Map");const yo=function(){this.size=0,this.__data__={hash:new io,map:new(go||mo),string:new io}};const vo=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const bo=function(e,t){var n=e.__data__;return vo(t)?n["string"==typeof t?"string":"hash"]:n.map};const wo=function(e){var t=bo(this,e).delete(e);return this.size-=t?1:0,t};const _o=function(e){return bo(this,e).get(e)};const xo=function(e){return bo(this,e).has(e)};const Eo=function(e,t){var n=bo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function ko(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ko.prototype.clear=yo,ko.prototype.delete=wo,ko.prototype.get=_o,ko.prototype.has=xo,ko.prototype.set=Eo;const So=ko;function Ao(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ao.Cache||So),n}Ao.Cache=So;const Co=Ao;var Do=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mo=/\\(\\)?/g;const Fo=function(e){var t=Co(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Do,(function(e,n,r,i){t.push(r?i.replace(Mo,"$1"):n||e)})),t}));const Oo=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};var To=li?li.prototype:void 0,No=To?To.toString:void 0;const Po=function e(t){if("string"==typeof t)return t;if(Di(t))return Oo(t,e)+"";if(Mi(t))return No?No.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const Io=function(e){return null==e?"":Po(e)};const Ro=function(e,t){return Di(e)?e:Ti(e,t)?[e]:Fo(Io(e))};const jo=function(e){if("string"==typeof e||Mi(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};const Lo=function(e,t){for(var n=0,r=(t=Ro(t,e)).length;null!=e&&n<r;)e=e[jo(t[n++])];return n&&n==r?e:void 0};const Bo=function(){try{var e=$i(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const zo=function(e,t,n){"__proto__"==t&&Bo?Bo(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var Uo=Object.prototype.hasOwnProperty;const Ho=function(e,t,n){var r=e[t];Uo.call(e,t)&&ao(r,n)&&(void 0!==n||t in e)||zo(e,t,n)};var qo=/^(?:0|[1-9]\d*)$/;const Go=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&qo.test(e))&&e>-1&&e%1==0&&e<t};const Wo=function(e,t,n,r){if(!Ni(e))return e;for(var i=-1,o=(t=Ro(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var u=jo(t[i]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=a){var c=s[u];void 0===(l=r?r(c,u,s):void 0)&&(l=Ni(c)?c:Go(t[i+1])?[]:{})}Ho(s,u,l),s=s[u]}return e};const Vo=function(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Lo(e,a);n(s,a)&&Wo(o,Ro(a,e),s)}return o};const Qo=function(e,t){return null!=e&&t in Object(e)};const $o=function(e){return _i(e)&&"[object Arguments]"==vi(e)};var Ko=Object.prototype,Yo=Ko.hasOwnProperty,Xo=Ko.propertyIsEnumerable;const Zo=$o(function(){return arguments}())?$o:function(e){return _i(e)&&Yo.call(e,"callee")&&!Xo.call(e,"callee")};const Jo=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};const ea=function(e,t,n){for(var r=-1,i=(t=Ro(t,e)).length,o=!1;++r<i;){var a=jo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Jo(i)&&Go(a,i)&&(Di(e)||Zo(e))};const ta=function(e,t){return null!=e&&ea(e,t,Qo)};const na=function(e,t){return Vo(e,t,(function(t,n){return ta(e,n)}))};const ra=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e};var ia=li?li.isConcatSpreadable:void 0;const oa=function(e){return Di(e)||Zo(e)||!!(ia&&e&&e[ia])};const aa=function e(t,n,r,i,o){var a=-1,s=t.length;for(r||(r=oa),o||(o=[]);++a<s;){var u=t[a];n>0&&r(u)?n>1?e(u,n-1,r,i,o):ra(o,u):i||(o[o.length]=u)}return o};const sa=function(e){return(null==e?0:e.length)?aa(e,1):[]};const ua=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var la=Math.max;const ca=function(e,t,n){return t=la(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=la(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),ua(e,this,s)}};const fa=function(e){return function(){return e}};const da=function(e){return e};const ha=Bo?function(e,t){return Bo(e,"toString",{configurable:!0,enumerable:!1,value:fa(t),writable:!0})}:da;var pa=Date.now;const ma=function(e){var t=0,n=0;return function(){var r=pa(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}};const ga=ma(ha);const ya=function(e){return ga(ca(e,void 0,sa),e+"")}((function(e,t){return null==e?{}:na(e,t)}));const va=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1};const ba=function(e){return e!==e};const wa=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1};const _a=function(e,t,n){return t===t?wa(e,t,n):va(e,ba,n)};const xa=function(e){return null!=e&&Jo(e.length)&&!Pi(e)};const Ea=function(e){return"string"==typeof e||!Di(e)&&_i(e)&&"[object String]"==vi(e)};var ka=/\s/;const Sa=function(e){for(var t=e.length;t--&&ka.test(e.charAt(t)););return t};var Aa=/^\s+/;const Ca=function(e){return e?e.slice(0,Sa(e)+1).replace(Aa,""):e};var Da=/^[-+]0x[0-9a-f]+$/i,Ma=/^0b[01]+$/i,Fa=/^0o[0-7]+$/i,Oa=parseInt;const Ta=function(e){if("number"==typeof e)return e;if(Mi(e))return NaN;if(Ni(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ni(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ca(e);var n=Ma.test(e);return n||Fa.test(e)?Oa(e.slice(2),n?2:8):Da.test(e)?NaN:+e};var Na=1/0;const Pa=function(e){return e?(e=Ta(e))===Na||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0};const Ia=function(e){var t=Pa(e),n=t%1;return t===t?n?t-n:t:0};const Ra=function(e,t){return Oo(t,(function(t){return e[t]}))};const ja=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};const La=function(){return!1};var Ba="object"==typeof exports&&exports&&!exports.nodeType&&exports,za=Ba&&"object"==typeof module&&module&&!module.nodeType&&module,Ua=za&&za.exports===Ba?ui.Buffer:void 0;const Ha=(Ua?Ua.isBuffer:void 0)||La;var qa={};qa["[object Float32Array]"]=qa["[object Float64Array]"]=qa["[object Int8Array]"]=qa["[object Int16Array]"]=qa["[object Int32Array]"]=qa["[object Uint8Array]"]=qa["[object Uint8ClampedArray]"]=qa["[object Uint16Array]"]=qa["[object Uint32Array]"]=!0,qa["[object Arguments]"]=qa["[object Array]"]=qa["[object ArrayBuffer]"]=qa["[object Boolean]"]=qa["[object DataView]"]=qa["[object Date]"]=qa["[object Error]"]=qa["[object Function]"]=qa["[object Map]"]=qa["[object Number]"]=qa["[object Object]"]=qa["[object RegExp]"]=qa["[object Set]"]=qa["[object String]"]=qa["[object WeakMap]"]=!1;const Ga=function(e){return _i(e)&&Jo(e.length)&&!!qa[vi(e)]};const Wa=function(e){return function(t){return e(t)}};var Va="object"==typeof exports&&exports&&!exports.nodeType&&exports,Qa=Va&&"object"==typeof module&&module&&!module.nodeType&&module,$a=Qa&&Qa.exports===Va&&ai.process,Ka=function(){try{var e=Qa&&Qa.require&&Qa.require("util").types;return e||$a&&$a.binding&&$a.binding("util")}catch(t){}}();var Ya=Ka&&Ka.isTypedArray;const Xa=Ya?Wa(Ya):Ga;var Za=Object.prototype.hasOwnProperty;const Ja=function(e,t){var n=Di(e),r=!n&&Zo(e),i=!n&&!r&&Ha(e),o=!n&&!r&&!i&&Xa(e),a=n||r||i||o,s=a?ja(e.length,String):[],u=s.length;for(var l in e)!t&&!Za.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Go(l,u))||s.push(l);return s};var es=Object.prototype;const ts=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||es)};const ns=bi(Object.keys,Object);var rs=Object.prototype.hasOwnProperty;const is=function(e){if(!ts(e))return ns(e);var t=[];for(var n in Object(e))rs.call(e,n)&&"constructor"!=n&&t.push(n);return t};const os=function(e){return xa(e)?Ja(e):is(e)};const as=function(e){return null==e?[]:Ra(e,os(e))};var ss=Math.max;const us=function(e,t,n,r){e=xa(e)?e:as(e),n=n&&!r?Ia(n):0;var i=e.length;return n<0&&(n=ss(i+n,0)),Ea(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&_a(e,t,n)>-1};const ls=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n};const cs=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}();const fs=function(e,t){return e&&cs(e,t,os)};const ds=function(e,t){return function(n,r){if(null==n)return n;if(!xa(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}(fs);const hs=function(){this.__data__=new mo,this.size=0};const ps=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const ms=function(e){return this.__data__.get(e)};const gs=function(e){return this.__data__.has(e)};const ys=function(e,t){var n=this.__data__;if(n instanceof mo){var r=n.__data__;if(!go||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new So(r)}return n.set(e,t),this.size=n.size,this};function vs(e){var t=this.__data__=new mo(e);this.size=t.size}vs.prototype.clear=hs,vs.prototype.delete=ps,vs.prototype.get=ms,vs.prototype.has=gs,vs.prototype.set=ys;const bs=vs;const ws=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const _s=function(e){return this.__data__.has(e)};function xs(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new So;++t<n;)this.add(e[t])}xs.prototype.add=xs.prototype.push=ws,xs.prototype.has=_s;const Es=xs;const ks=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};const Ss=function(e,t){return e.has(t)};const As=function(e,t,n,r,i,o){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,h=2&n?new Es:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var p=e[f],m=t[f];if(r)var g=a?r(m,p,f,t,e,o):r(p,m,f,e,t,o);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!ks(t,(function(e,t){if(!Ss(h,t)&&(p===e||i(p,e,n,r,o)))return h.push(t)}))){d=!1;break}}else if(p!==m&&!i(p,m,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d};const Cs=ui.Uint8Array;const Ds=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};const Ms=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var Fs=li?li.prototype:void 0,Os=Fs?Fs.valueOf:void 0;const Ts=function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new Cs(e),new Cs(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ao(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Ds;case"[object Set]":var u=1&r;if(s||(s=Ms),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=As(s(e),s(t),r,i,o,a);return a.delete(e),c;case"[object Symbol]":if(Os)return Os.call(e)==Os.call(t)}return!1};const Ns=function(e,t,n){var r=t(e);return Di(e)?r:ra(r,n(e))};const Ps=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o};const Is=function(){return[]};var Rs=Object.prototype.propertyIsEnumerable,js=Object.getOwnPropertySymbols;const Ls=js?function(e){return null==e?[]:(e=Object(e),Ps(js(e),(function(t){return Rs.call(e,t)})))}:Is;const Bs=function(e){return Ns(e,os,Ls)};var zs=Object.prototype.hasOwnProperty;const Us=function(e,t,n,r,i,o){var a=1&n,s=Bs(e),u=s.length;if(u!=Bs(t).length&&!a)return!1;for(var l=u;l--;){var c=s[l];if(!(a?c in t:zs.call(t,c)))return!1}var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var h=!0;o.set(e,t),o.set(t,e);for(var p=a;++l<u;){var m=e[c=s[l]],g=t[c];if(r)var y=a?r(g,m,c,t,e,o):r(m,g,c,e,t,o);if(!(void 0===y?m===g||i(m,g,n,r,o):y)){h=!1;break}p||(p="constructor"==c)}if(h&&!p){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(h=!1)}return o.delete(e),o.delete(t),h};const Hs=$i(ui,"DataView");const qs=$i(ui,"Promise");const Gs=$i(ui,"Set");const Ws=$i(ui,"WeakMap");var Vs="[object Map]",Qs="[object Promise]",$s="[object Set]",Ks="[object WeakMap]",Ys="[object DataView]",Xs=Bi(Hs),Zs=Bi(go),Js=Bi(qs),eu=Bi(Gs),tu=Bi(Ws),nu=vi;(Hs&&nu(new Hs(new ArrayBuffer(1)))!=Ys||go&&nu(new go)!=Vs||qs&&nu(qs.resolve())!=Qs||Gs&&nu(new Gs)!=$s||Ws&&nu(new Ws)!=Ks)&&(nu=function(e){var t=vi(e),n="[object Object]"==t?e.constructor:void 0,r=n?Bi(n):"";if(r)switch(r){case Xs:return Ys;case Zs:return Vs;case Js:return Qs;case eu:return $s;case tu:return Ks}return t});const ru=nu;var iu="[object Arguments]",ou="[object Array]",au="[object Object]",su=Object.prototype.hasOwnProperty;const uu=function(e,t,n,r,i,o){var a=Di(e),s=Di(t),u=a?ou:ru(e),l=s?ou:ru(t),c=(u=u==iu?au:u)==au,f=(l=l==iu?au:l)==au,d=u==l;if(d&&Ha(e)){if(!Ha(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new bs),a||Xa(e)?As(e,t,n,r,i,o):Ts(e,t,u,n,r,i,o);if(!(1&n)){var h=c&&su.call(e,"__wrapped__"),p=f&&su.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,g=p?t.value():t;return o||(o=new bs),i(m,g,n,r,o)}}return!!d&&(o||(o=new bs),Us(e,t,n,r,i,o))};const lu=function e(t,n,r,i,o){return t===n||(null==t||null==n||!_i(t)&&!_i(n)?t!==t&&n!==n:uu(t,n,r,i,e,o))};const cu=function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var u=(s=n[i])[0],l=e[u],c=s[1];if(a&&s[2]){if(void 0===l&&!(u in e))return!1}else{var f=new bs;if(r)var d=r(l,c,u,e,t,f);if(!(void 0===d?lu(c,l,3,r,f):d))return!1}}return!0};const fu=function(e){return e===e&&!Ni(e)};const du=function(e){for(var t=os(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,fu(i)]}return t};const hu=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};const pu=function(e){var t=du(e);return 1==t.length&&t[0][2]?hu(t[0][0],t[0][1]):function(n){return n===e||cu(n,e,t)}};const mu=function(e,t,n){var r=null==e?void 0:Lo(e,t);return void 0===r?n:r};const gu=function(e,t){return Ti(e)&&fu(t)?hu(jo(e),t):function(n){var r=mu(n,e);return void 0===r&&r===t?ta(n,e):lu(t,r,3)}};const yu=function(e){return function(t){return null==t?void 0:t[e]}};const vu=function(e){return function(t){return Lo(t,e)}};const bu=function(e){return Ti(e)?yu(jo(e)):vu(e)};const wu=function(e){return"function"==typeof e?e:null==e?da:"object"==typeof e?Di(e)?gu(e[0],e[1]):pu(e):bu(e)};const _u=function(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n};const xu=function(e,t,n){var r=Di(e)?ls:_u,i=arguments.length<3;return r(e,wu(t,4),n,i,ds)};var Eu=Object.prototype.hasOwnProperty;const ku=function(e){if(null==e)return!0;if(xa(e)&&(Di(e)||"string"==typeof e||"function"==typeof e.splice||Ha(e)||Xa(e)||Zo(e)))return!e.length;var t=ru(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(ts(e))return!is(e).length;for(var n in e)if(Eu.call(e,n))return!1;return!0};const Su=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};const Au=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o};const Cu=function(e,t){return t.length<2?e:Lo(e,Au(t,0,-1))};const Du=function(e,t){return ga(ca(e,t,da),e+"")};const Mu=Du((function(e,t,n){t=Ro(t,e);var r=null==(e=Cu(e,t))?e:e[jo(Su(t))];return null==r?void 0:ua(r,e,n)}));var Fu=n(7329),Ou=n(7119),Tu=function(e,t){"function"!==typeof e?null!==e&&"object"===typeof e&&(e.current=t):e(t)},Nu=function(e){return null!==e&&"object"===typeof e&&e.hasOwnProperty("current")};var Pu=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).prevNode=void 0,t}oi(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=Ou.findDOMNode(this);this.prevNode=e,Tu(this.props.innerRef,e)},n.componentDidUpdate=function(e){var t=Ou.findDOMNode(this);this.prevNode!==t&&(this.prevNode=t,Tu(this.props.innerRef,t)),e.innerRef!==this.props.innerRef&&Tu(this.props.innerRef,t)},n.componentWillUnmount=function(){Tu(this.props.innerRef,null),delete this.prevNode},n.render=function(){return this.props.children},t}(i.Component),Iu=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).currentNode=void 0,t.handleRefOverride=function(e){var n=t.props,r=n.children,i=n.innerRef;Tu(r.ref,e),Tu(i,e),t.currentNode=e},t}oi(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){e.innerRef!==this.props.innerRef&&Tu(this.props.innerRef,this.currentNode)},n.componentWillUnmount=function(){delete this.currentNode},n.render=function(){var e=this.props.children;return i.cloneElement(e,{ref:this.handleRefOverride})},t}(i.Component),Ru=["children","innerRef"],ju=function(e){var t=e.children,n=e.innerRef,r=Dr(e,Ru),o=i.Children.only(t),a=Fu.isForwardRef(o)?Iu:Pu,s=o&&r&&Object.keys(r).length>0?i.cloneElement(o,r):o;return i.createElement(a,{innerRef:n},s)};function Lu(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Lu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const Bu=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Lu(e))&&(r&&(r+=" "),r+=t);return r};var zu=n(403),Uu=n.n(zu);const Hu=function(e){return null==e};var qu="object"===typeof document&&null!==document,Gu="object"===typeof window&&null!==window&&window.self===window;const Wu=function e(){return Hu(e.override)?qu&&Gu:e.override};var Vu=Math.max,Qu=Math.min;const $u=function(e,t,n){return e>=Qu(t,n)&&e<Vu(t,n)};const Ku=function(e,t,n){return t=Pa(t),void 0===n?(n=t,t=0):n=Pa(n),e=Ta(e),$u(e,t,n)};const Yu=function(e){return e&&e.length?e[0]:void 0};const Xu=function(e,t){var n;return ds(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n};const Zu=function(e,t,n){if(!Ni(n))return!1;var r=typeof t;return!!("number"==r?xa(n)&&Go(t,n.length):"string"==r&&t in n)&&ao(n[t],e)};const Ju=function(e,t,n){var r=Di(e)?ks:Xu;return n&&Zu(e,t,n)&&(t=void 0),r(e,wu(t,3))};const el=function(e,t){if(Ju([t,e],Hu))return!1;if(t.target&&(Mu(t.target,"setAttribute","data-suir-click-target",!0),document.querySelector("[data-suir-click-target=true]")))return Mu(t.target,"removeAttribute","data-suir-click-target"),e.contains(t.target);var n=t.clientX,r=t.clientY;if(Ju([n,r],Hu))return!1;var i=e.getClientRects();if(!e.offsetWidth||!e.offsetHeight||!i||!i.length)return!1;var o=Yu(i),a=o.top,s=o.bottom,u=o.left,l=o.right;return!Ju([a,s,u,l],Hu)&&(Ku(r,a,s+.001)&&Ku(n,u,l+.001))};var tl=n(3302),nl=n.n(tl);const rl=tl.instance;var il={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven",12:"twelve",13:"thirteen",14:"fourteen",15:"fifteen",16:"sixteen"};function ol(e){var t=typeof e;return"string"===t||"number"===t?il[e]||e:""}var al=function(e,t){return e&&t},sl=function(e,t){return e&&!0!==e&&e+" "+t},ul=function(e,t){return e&&(!0===e?t:e+" "+t)},ll=function(e,t){return e&&!0!==e?e.replace("large screen","large-screen").replace(/ vertically/g,"-vertically").split(" ").map((function(e){return e.replace("-"," ")+" "+t})).join(" "):null},cl=function(e){return"justified"===e?"justified":sl(e,"aligned")},fl=function(e){return sl(e,"aligned")},dl=function(e,t,n){if(void 0===t&&(t=""),void 0===n&&(n=!1),n&&"equal"===e)return"equal width";var r=typeof e;return"string"!==r&&"number"!==r||!t?ol(e):ol(e)+" "+t};const hl=function(e,t,n){var r=e.defaultProps,i=void 0===r?{}:r;if(t.as&&t.as!==i.as)return t.as;if(n){var o=n();if(o)return o}return t.href?"a":i.as||"div"};var pl=function(e){return null===e||void 0===e||Array.isArray(e)&&0===e.length};const ml=function(e,t){var n=e.handledProps,r=void 0===n?[]:n;return Object.keys(t).reduce((function(e,n){return"childKey"===n||-1===r.indexOf(n)&&(e[n]=t[n]),e}),{})};const gl=function(e){return void 0===e};var yl=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=(t=e.call.apply(e,[this].concat(r))||this).constructor,a=o.autoControlledProps,s=o.getAutoControlledStateFromProps,u=Mu(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),"getInitialAutoControlledState",t.props)||{},l=a.reduce((function(e,n){return e[n]=function(e,t,n,r){void 0===r&&(r=!1);var i,o=t[e];if(void 0!==o)return o;if(r){var a=t[(i=e,"default"+(i[0].toUpperCase()+i.slice(1)))];if(void 0!==a)return a;if(n){var s=n[e];if(void 0!==s)return s}}return"checked"!==e&&("value"===e?t.multiple?[]:"":void 0)}(n,t.props,u,!0),e}),{});return t.state=ri({},u,l,{autoControlledProps:a,getAutoControlledStateFromProps:s}),t}return oi(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.autoControlledProps,r=t.getAutoControlledStateFromProps,i=n.reduce((function(t,n){return!gl(e[n])&&(t[n]=e[n]),t}),{});if(r){var o=r(e,ri({},t,i),t);return ri({},i,o)}return i},t.getAutoControlledStateFromProps=function(){return null},t}(i.Component);const vl=function(e,t){return!!(null==e?0:e.length)&&_a(e,t,0)>-1};const bl=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1};const wl=function(){};const _l=Gs&&1/Ms(new Gs([,-0]))[1]==1/0?function(e){return new Gs(e)}:wl;const xl=function(e,t,n){var r=-1,i=vl,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=bl;else if(o>=200){var l=t?null:_l(e);if(l)return Ms(l);a=!1,i=Ss,u=new Es}else u=t?[]:s;e:for(;++r<o;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,a&&f===f){for(var d=u.length;d--;)if(u[d]===f)continue e;t&&u.push(f),s.push(c)}else i(u,f,n)||(u!==s&&u.push(f),s.push(c))}return s};const El=function(e){return e&&e.length?xl(e):[]};const kl=function(e){return"number"==typeof e||_i(e)&&"[object Number]"==vi(e)};const Sl=function(e){return!0===e||!1===e||_i(e)&&"[object Boolean]"==vi(e)};function Al(e,t,n,r){if(void 0===r&&(r={}),"function"!==typeof e&&"string"!==typeof e)throw new Error("createShorthand() Component must be a string or function.");if(Hu(n)||Sl(n))return null;var o=Ea(n),a=kl(n),s=Pi(n),u=i.isValidElement(n),l=Ci(n),c=o||a||Di(n);if(!s&&!u&&!l&&!c)return null;var f=r.defaultProps,d=void 0===f?{}:f,h=u&&n.props||l&&n||c&&t(n),p=r.overrideProps,m=void 0===p?{}:p;m=Pi(m)?m(ri({},d,h)):m;var g=ri({},d,h,m);if(d.className||m.className||h.className){var y=Bu(d.className,m.className,h.className);g.className=El(y.split(" ")).join(" ")}if((d.style||m.style||h.style)&&(g.style=ri({},d.style,h.style,m.style)),Hu(g.key)){var v=g.childKey,b=r.autoGenerateKey,w=void 0===b||b;Hu(v)?w&&(o||a)&&(g.key=n):(g.key="function"===typeof v?v(g):v,delete g.childKey)}return u?i.cloneElement(n,g):"function"===typeof g.children?g.children(e,ri({},g,{children:void 0})):c||l?i.createElement(e,g):s?n(e,g,g.children):void 0}function Cl(e,t){if("function"!==typeof e&&"string"!==typeof e)throw new Error("createShorthandFactory() Component must be a string or function.");return function(n,r){return Al(e,t,n,r)}}var Dl=Cl("div",(function(e){return{children:e}})),Ml=Cl("img",(function(e){return{src:e}})),Fl=Cl("input",(function(e){return{type:e}})),Ol=Cl("label",(function(e){return{children:e}})),Tl=Cl("p",(function(e){return{children:e}}));function Nl(e){var t=e.children,n=e.className,r=e.content,o=e.size,a=Bu(o,"icons",n),s=ml(Nl,e),u=hl(Nl,e);return i.createElement(u,ri({},s,{className:a}),pl(t)?r:t)}Nl.handledProps=["as","children","className","content","size"],Nl.propTypes={},Nl.defaultProps={as:"i"};const Pl=Nl;var Il=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleClick=function(e){t.props.disabled?e.preventDefault():Mu(t.props,"onClick",e,t.props)},t}oi(t,e);var n=t.prototype;return n.getIconAriaOptions=function(){var e={},t=this.props,n=t["aria-label"],r=t["aria-hidden"];return Hu(n)?e["aria-hidden"]="true":e["aria-label"]=n,Hu(r)||(e["aria-hidden"]=r),e},n.render=function(){var e=this.props,n=e.bordered,r=e.circular,o=e.className,a=e.color,s=e.corner,u=e.disabled,l=e.fitted,c=e.flipped,f=e.inverted,d=e.link,h=e.loading,p=e.name,m=e.rotated,g=e.size,y=Bu(a,p,g,al(n,"bordered"),al(r,"circular"),al(u,"disabled"),al(l,"fitted"),al(f,"inverted"),al(d,"link"),al(h,"loading"),ul(s,"corner"),sl(c,"flipped"),sl(m,"rotated"),"icon",o),v=ml(t,this.props),b=hl(t,this.props),w=this.getIconAriaOptions();return i.createElement(b,ri({},v,w,{className:y,onClick:this.handleClick}))},t}(i.PureComponent);Il.handledProps=["aria-hidden","aria-label","as","bordered","circular","className","color","corner","disabled","fitted","flipped","inverted","link","loading","name","rotated","size"],Il.propTypes={},Il.defaultProps={as:"i"},Il.Group=Pl,Il.create=Cl(Il,(function(e){return{name:e}}));const Rl=Il;var jl=n(5425),Ll=n.n(jl),Bl=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleRef=function(e){Tu(t.props.innerRef,e)},t}oi(t,e);var n=t.prototype;return n.componentDidMount=function(){Mu(this.props,"onMount",null,this.props)},n.componentWillUnmount=function(){Mu(this.props,"onUnmount",null,this.props)},n.render=function(){if(!Wu())return null;var e=this.props,t=e.children,n=e.mountNode,r=void 0===n?document.body:n;return(0,Ou.createPortal)(i.createElement(ju,{innerRef:this.handleRef},t),r)},t}(i.Component);Bl.handledProps=["children","innerRef","mountNode","onMount","onUnmount"],Bl.propTypes={};const zl=Bl;var Ul=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).contentRef=i.createRef(),t.triggerRef=i.createRef(),t.latestDocumentMouseDownEvent=null,t.handleDocumentMouseDown=function(e){t.latestDocumentMouseDownEvent=e},t.handleDocumentClick=function(e){var n=t.props.closeOnDocumentClick,r=t.latestDocumentMouseDownEvent;t.latestDocumentMouseDownEvent=null,!t.contentRef.current||el(t.triggerRef.current,e)||r&&el(t.contentRef.current,r)||el(t.contentRef.current,e)||n&&t.close(e)},t.handleEscape=function(e){t.props.closeOnEscape&&Ll().getCode(e)===Ll().Escape&&t.close(e)},t.handlePortalMouseLeave=function(e){var n=t.props,r=n.closeOnPortalMouseLeave,i=n.mouseLeaveDelay;r&&e.target===t.contentRef.current&&(t.mouseLeaveTimer=t.closeWithTimeout(e,i))},t.handlePortalMouseEnter=function(){t.props.closeOnPortalMouseLeave&&clearTimeout(t.mouseLeaveTimer)},t.handleTriggerBlur=function(e){for(var n=t.props,r=n.trigger,i=n.closeOnTriggerBlur,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];Mu.apply(void 0,[r,"props.onBlur",e].concat(a));var u=e.relatedTarget||document.activeElement,l=Mu(t.contentRef.current,"contains",u);i&&!l&&t.close(e)},t.handleTriggerClick=function(e){for(var n=t.props,r=n.trigger,i=n.closeOnTriggerClick,o=n.openOnTriggerClick,a=t.state.open,s=arguments.length,u=new Array(s>1?s-1:0),l=1;l<s;l++)u[l-1]=arguments[l];Mu.apply(void 0,[r,"props.onClick",e].concat(u)),a&&i?t.close(e):!a&&o&&t.open(e)},t.handleTriggerFocus=function(e){for(var n=t.props,r=n.trigger,i=n.openOnTriggerFocus,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];Mu.apply(void 0,[r,"props.onFocus",e].concat(a)),i&&t.open(e)},t.handleTriggerMouseLeave=function(e){clearTimeout(t.mouseEnterTimer);for(var n=t.props,r=n.trigger,i=n.closeOnTriggerMouseLeave,o=n.mouseLeaveDelay,a=arguments.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];Mu.apply(void 0,[r,"props.onMouseLeave",e].concat(s)),i&&(t.mouseLeaveTimer=t.closeWithTimeout(e,o))},t.handleTriggerMouseEnter=function(e){clearTimeout(t.mouseLeaveTimer);for(var n=t.props,r=n.trigger,i=n.mouseEnterDelay,o=n.openOnTriggerMouseEnter,a=arguments.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];Mu.apply(void 0,[r,"props.onMouseEnter",e].concat(s)),o&&(t.mouseEnterTimer=t.openWithTimeout(e,i))},t.open=function(e){Mu(t.props,"onOpen",e,ri({},t.props,{open:!0})),t.setState({open:!0})},t.openWithTimeout=function(e,n){var r=ri({},e);return setTimeout((function(){return t.open(r)}),n||0)},t.close=function(e){t.setState({open:!1}),Mu(t.props,"onClose",e,ri({},t.props,{open:!1}))},t.closeWithTimeout=function(e,n){var r=ri({},e);return setTimeout((function(){return t.close(r)}),n||0)},t.handleMount=function(){Mu(t.props,"onMount",null,t.props)},t.handleUnmount=function(){Mu(t.props,"onUnmount",null,t.props)},t.handleTriggerRef=function(e){t.triggerRef.current=e,Tu(t.props.triggerRef,e)},t}oi(t,e);var n=t.prototype;return n.componentWillUnmount=function(){clearTimeout(this.mouseEnterTimer),clearTimeout(this.mouseLeaveTimer)},n.render=function(){var e=this.props,t=e.children,n=e.eventPool,r=e.mountNode,o=e.trigger,a=this.state.open;return i.createElement(i.Fragment,null,a&&i.createElement(i.Fragment,null,i.createElement(zl,{innerRef:this.contentRef,mountNode:r,onMount:this.handleMount,onUnmount:this.handleUnmount},t),i.createElement(nl(),{name:"mouseleave",on:this.handlePortalMouseLeave,pool:n,target:this.contentRef}),i.createElement(nl(),{name:"mouseenter",on:this.handlePortalMouseEnter,pool:n,target:this.contentRef}),i.createElement(nl(),{name:"mousedown",on:this.handleDocumentMouseDown,pool:n}),i.createElement(nl(),{name:"click",on:this.handleDocumentClick,pool:n}),i.createElement(nl(),{name:"keydown",on:this.handleEscape,pool:n})),o&&i.createElement(ju,{innerRef:this.handleTriggerRef},i.cloneElement(o,{onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onFocus:this.handleTriggerFocus,onMouseLeave:this.handleTriggerMouseLeave,onMouseEnter:this.handleTriggerMouseEnter})))},t}(yl);Ul.handledProps=["children","closeOnDocumentClick","closeOnEscape","closeOnPortalMouseLeave","closeOnTriggerBlur","closeOnTriggerClick","closeOnTriggerMouseLeave","defaultOpen","eventPool","mountNode","mouseEnterDelay","mouseLeaveDelay","onClose","onMount","onOpen","onUnmount","open","openOnTriggerClick","openOnTriggerFocus","openOnTriggerMouseEnter","trigger","triggerRef"],Ul.propTypes={},Ul.defaultProps={closeOnDocumentClick:!0,closeOnEscape:!0,eventPool:"default",openOnTriggerClick:!0},Ul.autoControlledProps=["open"],Ul.Inner=zl;const Hl=Ul;const ql=function(e,t){var n=-1,r=xa(e)?Array(e.length):[];return ds(e,(function(e,i,o){r[++n]=t(e,i,o)})),r};const Gl=function(e,t){return(Di(e)?Oo:ql)(e,wu(t,3))};const Wl=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};const Vl=function(e){return"function"==typeof e?e:da};const Ql=function(e,t){return(Di(e)?Wl:ds)(e,Vl(t))};var $l=["selected","defaultValue","defaultChecked","accept","autoCapitalize","autoComplete","autoCorrect","autoFocus","checked","disabled","enterKeyHint","form","id","inputMode","lang","list","max","maxLength","min","minLength","multiple","name","pattern","placeholder","readOnly","required","step","title","type","value"],Kl=[].concat($l,["onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onClick","onContextMenu","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"]),Yl=["alt","height","src","srcSet","width","loading"],Xl=function(e,t){void 0===t&&(t={});var n=t,r=n.htmlProps,i=void 0===r?Kl:r,o=n.includeAria,a=void 0===o||o,s={},u={};return Ql(e,(function(e,t){var n=a&&(/^aria-.*$/.test(t)||"role"===t);(us(i,t)||n?s:u)[t]=e})),[s,u]};function Zl(e){var t=e.blurring,n=e.className,r=e.children,o=e.content,a=e.dimmed,s=Bu(al(t,"blurring"),al(a,"dimmed"),"dimmable",n),u=ml(Zl,e),l=hl(Zl,e);return i.createElement(l,ri({},u,{className:s}),pl(r)?o:r)}Zl.handledProps=["as","blurring","children","className","content","dimmed"],Zl.propTypes={};const Jl=Zl;var ec=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).containerRef=(0,i.createRef)(),t.contentRef=(0,i.createRef)(),t.handleClick=function(e){var n=t.contentRef.current;Mu(t.props,"onClick",e,t.props),n&&n!==e.target&&el(n,e)||Mu(t.props,"onClickOutside",e,t.props)},t}oi(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this.props.active;this.toggleStyles(e)},n.componentDidUpdate=function(e){var t=this.props.active;e.active!==t&&this.toggleStyles(t)},n.toggleStyles=function(e){var t=this.containerRef.current;t&&t.style&&(e?t.style.setProperty("display","flex","important"):t.style.removeProperty("display"))},n.render=function(){var e=this.props,n=e.active,r=e.children,o=e.className,a=e.content,s=e.disabled,u=e.inverted,l=e.page,c=e.simple,f=e.verticalAlign,d=Bu("ui",al(n,"active transition visible"),al(s,"disabled"),al(u,"inverted"),al(l,"page"),al(c,"simple"),fl(f),"dimmer",o),h=ml(t,this.props),p=hl(t,this.props),m=pl(r)?a:r;return i.createElement(ju,{innerRef:this.containerRef},i.createElement(p,ri({},h,{className:d,onClick:this.handleClick}),m&&i.createElement("div",{className:"content",ref:this.contentRef},m)))},t}(i.Component);ec.handledProps=["active","as","children","className","content","disabled","inverted","onClick","onClickOutside","page","simple","verticalAlign"],ec.propTypes={};var tc=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handlePortalMount=function(){Wu()&&(document.body.classList.add("dimmed"),document.body.classList.add("dimmable"))},t.handlePortalUnmount=function(){Wu()&&(document.body.classList.remove("dimmed"),document.body.classList.remove("dimmable"))},t}return oi(t,e),t.prototype.render=function(){var e=this.props,n=e.active,r=e.page,o=ml(t,this.props);return r?i.createElement(Hl,{closeOnEscape:!1,closeOnDocumentClick:!1,onMount:this.handlePortalMount,onUnmount:this.handlePortalUnmount,open:n,openOnTriggerClick:!1},i.createElement(ec,ri({},o,{active:n,page:r}))):i.createElement(ec,ri({},o,{active:n,page:r}))},t}(i.Component);function nc(e){var t=e.children,n=e.className,r=e.content,o=e.size,a=Bu("ui",o,n,"images"),s=ml(nc,e),u=hl(nc,e);return i.createElement(u,ri({},s,{className:a}),pl(t)?r:t)}tc.handledProps=["active","page"],tc.propTypes={},tc.Dimmable=Jl,tc.Inner=ec,tc.create=Cl(tc,(function(e){return{content:e}})),nc.handledProps=["as","children","className","content","size"],nc.propTypes={};const rc=nc;function ic(e){var t=e.avatar,n=e.bordered,r=e.centered,o=e.children,a=e.circular,s=e.className,u=e.content,l=e.dimmer,c=e.disabled,f=e.floated,d=e.fluid,h=e.hidden,p=e.href,m=e.inline,g=e.label,y=e.rounded,v=e.size,b=e.spaced,w=e.verticalAlign,_=e.wrapped,x=e.ui,E=Bu(al(x,"ui"),v,al(t,"avatar"),al(n,"bordered"),al(a,"circular"),al(r,"centered"),al(c,"disabled"),al(d,"fluid"),al(h,"hidden"),al(m,"inline"),al(y,"rounded"),ul(b,"spaced"),sl(f,"floated"),fl(w),"image",s),k=ml(ic,e),S=Xl(k,{htmlProps:Yl}),A=S[0],C=S[1],D=hl(ic,e,(function(){if(!Hu(l)||!Hu(g)||!Hu(_)||!pl(o))return"div"}));return pl(o)?pl(u)?"img"===D?i.createElement(D,ri({},C,A,{className:E})):i.createElement(D,ri({},C,{className:E,href:p}),tc.create(l,{autoGenerateKey:!1}),cc.create(g,{autoGenerateKey:!1}),i.createElement("img",A)):i.createElement(D,ri({},k,{className:E}),u):i.createElement(D,ri({},k,{className:E}),o)}ic.handledProps=["as","avatar","bordered","centered","children","circular","className","content","dimmer","disabled","floated","fluid","hidden","href","inline","label","rounded","size","spaced","ui","verticalAlign","wrapped"],ic.Group=rc,ic.propTypes={},ic.defaultProps={as:"img",ui:!0},ic.create=Cl(ic,(function(e){return{src:e}}));const oc=ic;function ac(e){var t=e.children,n=e.className,r=e.content,o=Bu("detail",n),a=ml(ac,e),s=hl(ac,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}ac.handledProps=["as","children","className","content"],ac.propTypes={},ac.create=Cl(ac,(function(e){return{content:e}}));const sc=ac;function uc(e){var t=e.children,n=e.circular,r=e.className,o=e.color,a=e.content,s=e.size,u=e.tag,l=Bu("ui",o,s,al(n,"circular"),al(u,"tag"),"labels",r),c=ml(uc,e),f=hl(uc,e);return i.createElement(f,ri({},c,{className:l}),pl(t)?a:t)}uc.handledProps=["as","children","circular","className","color","content","size","tag"],uc.propTypes={};const lc=uc;var cc=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleClick=function(e){var n=t.props.onClick;n&&n(e,t.props)},t.handleIconOverrides=function(e){return{onClick:function(n){Mu(e,"onClick",n),Mu(t.props,"onRemove",n,t.props)}}},t}return oi(t,e),t.prototype.render=function(){var e=this.props,n=e.active,r=e.attached,o=e.basic,a=e.children,s=e.circular,u=e.className,l=e.color,c=e.content,f=e.corner,d=e.detail,h=e.empty,p=e.floating,m=e.horizontal,g=e.icon,y=e.image,v=e.onRemove,b=e.pointing,w=e.prompt,_=e.removeIcon,x=e.ribbon,E=e.size,k=e.tag,S=Bu("ui",l,(!0===b?"pointing":("left"===b||"right"===b)&&b+" pointing")||("above"===b||"below"===b)&&"pointing "+b,E,al(n,"active"),al(o,"basic"),al(s,"circular"),al(h,"empty"),al(p,"floating"),al(m,"horizontal"),al(!0===y,"image"),al(w,"prompt"),al(k,"tag"),ul(f,"corner"),ul(x,"ribbon"),sl(r,"attached"),"label",u),A=ml(t,this.props),C=hl(t,this.props);if(!pl(a))return i.createElement(C,ri({},A,{className:S,onClick:this.handleClick}),a);var D=gl(_)?"delete":_;return i.createElement(C,ri({className:S,onClick:this.handleClick},A),Rl.create(g,{autoGenerateKey:!1}),"boolean"!==typeof y&&oc.create(y,{autoGenerateKey:!1}),c,sc.create(d,{autoGenerateKey:!1}),v&&Rl.create(D,{autoGenerateKey:!1,overrideProps:this.handleIconOverrides}))},t}(i.Component);function fc(e){var t=e.children,n=e.className,r=e.content,o=e.hidden,a=e.visible,s=Bu(al(a,"visible"),al(o,"hidden"),"content",n),u=ml(fc,e),l=hl(fc,e);return i.createElement(l,ri({},u,{className:s}),pl(t)?r:t)}cc.handledProps=["active","as","attached","basic","children","circular","className","color","content","corner","detail","empty","floating","horizontal","icon","image","onClick","onRemove","pointing","prompt","removeIcon","ribbon","size","tag"],cc.propTypes={},cc.Detail=sc,cc.Group=lc,cc.create=Cl(cc,(function(e){return{content:e}})),fc.handledProps=["as","children","className","content","hidden","visible"],fc.propTypes={};const dc=fc;function hc(e){var t=e.attached,n=e.basic,r=e.buttons,o=e.children,a=e.className,s=e.color,u=e.compact,l=e.content,c=e.floated,f=e.fluid,d=e.icon,h=e.inverted,p=e.labeled,m=e.negative,g=e.positive,y=e.primary,v=e.secondary,b=e.size,w=e.toggle,_=e.vertical,x=e.widths,E=Bu("ui",s,b,al(n,"basic"),al(u,"compact"),al(f,"fluid"),al(d,"icon"),al(h,"inverted"),al(p,"labeled"),al(m,"negative"),al(g,"positive"),al(y,"primary"),al(v,"secondary"),al(w,"toggle"),al(_,"vertical"),ul(t,"attached"),sl(c,"floated"),dl(x),"buttons",a),k=ml(hc,e),S=hl(hc,e);return Hu(r)?i.createElement(S,ri({},k,{className:E}),pl(o)?l:o):i.createElement(S,ri({},k,{className:E}),Gl(r,(function(e){return vc.create(e)})))}hc.handledProps=["as","attached","basic","buttons","children","className","color","compact","content","floated","fluid","icon","inverted","labeled","negative","positive","primary","secondary","size","toggle","vertical","widths"],hc.propTypes={};const pc=hc;function mc(e){var t=e.className,n=e.text,r=Bu("or",t),o=ml(mc,e),a=hl(mc,e);return i.createElement(a,ri({},o,{className:r,"data-text":n}))}mc.handledProps=["as","className","text"],mc.propTypes={};const gc=mc;var yc=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).ref=(0,i.createRef)(),t.computeElementType=function(){var e=t.props,n=e.attached,r=e.label;if(!Hu(n)||!Hu(r))return"div"},t.computeTabIndex=function(e){var n=t.props,r=n.disabled,i=n.tabIndex;return Hu(i)?r?-1:"div"===e?0:void 0:i},t.focus=function(e){return Mu(t.ref.current,"focus",e)},t.handleClick=function(e){t.props.disabled?e.preventDefault():Mu(t.props,"onClick",e,t.props)},t.hasIconClass=function(){var e=t.props,n=e.labelPosition,r=e.children,i=e.content,o=e.icon;return!0===o||o&&(n||pl(r)&&Hu(i))},t}oi(t,e);var n=t.prototype;return n.computeButtonAriaRole=function(e){var t=this.props.role;return Hu(t)?"button"!==e?"button":void 0:t},n.render=function(){var e=this.props,n=e.active,r=e.animated,o=e.attached,a=e.basic,s=e.children,u=e.circular,l=e.className,c=e.color,f=e.compact,d=e.content,h=e.disabled,p=e.floated,m=e.fluid,g=e.icon,y=e.inverted,v=e.label,b=e.labelPosition,w=e.loading,_=e.negative,x=e.positive,E=e.primary,k=e.secondary,S=e.size,A=e.toggle,C=e.type,D=Bu(c,S,al(n,"active"),al(a,"basic"),al(u,"circular"),al(f,"compact"),al(m,"fluid"),al(this.hasIconClass(),"icon"),al(y,"inverted"),al(w,"loading"),al(_,"negative"),al(x,"positive"),al(E,"primary"),al(k,"secondary"),al(A,"toggle"),ul(r,"animated"),ul(o,"attached")),M=Bu(ul(b||!!v,"labeled")),F=Bu(al(h,"disabled"),sl(p,"floated")),O=ml(t,this.props),T=hl(t,this.props,this.computeElementType),N=this.computeTabIndex(T);if(!Hu(v)){var P=Bu("ui",D,"button",l),I=Bu("ui",M,"button",l,F),R=cc.create(v,{defaultProps:{basic:!0,pointing:"left"===b?"right":"left"},autoGenerateKey:!1});return i.createElement(T,ri({},O,{className:I,onClick:this.handleClick}),"left"===b&&R,i.createElement(ju,{innerRef:this.ref},i.createElement("button",{className:P,"aria-pressed":A?!!n:void 0,disabled:h,type:C,tabIndex:N},Rl.create(g,{autoGenerateKey:!1})," ",d)),("right"===b||!b)&&R)}var j=Bu("ui",D,F,M,"button",l),L=!pl(s),B=this.computeButtonAriaRole(T);return i.createElement(ju,{innerRef:this.ref},i.createElement(T,ri({},O,{className:j,"aria-pressed":A?!!n:void 0,disabled:h&&"button"===T||void 0,onClick:this.handleClick,role:B,type:C,tabIndex:N}),L&&s,!L&&Rl.create(g,{autoGenerateKey:!1}),!L&&d))},t}(i.Component);yc.handledProps=["active","animated","as","attached","basic","children","circular","className","color","compact","content","disabled","floated","fluid","icon","inverted","label","labelPosition","loading","negative","onClick","positive","primary","role","secondary","size","tabIndex","toggle","type"],yc.propTypes={},yc.defaultProps={as:"button"},yc.Content=dc,yc.Group=pc,yc.Or=gc,yc.create=Cl(yc,(function(e){return{content:e}}));const vc=yc;var bc=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleButtonOverrides=function(e){return{onClick:function(n,r){Mu(e,"onClick",n,r),Mu(t.props,"onActionClick",n,r)}}},t}return oi(t,e),t.prototype.render=function(){var e=this,n=this.props,r=n.actions,o=n.children,a=n.className,s=n.content,u=Bu("actions",a),l=ml(t,this.props),c=hl(t,this.props);return pl(o)?pl(s)?i.createElement(c,ri({},l,{className:u}),Gl(r,(function(t){return vc.create(t,{overrideProps:e.handleButtonOverrides})}))):i.createElement(c,ri({},l,{className:u}),s):i.createElement(c,ri({},l,{className:u}),o)},t}(i.Component);function wc(e){var t=e.children,n=e.className,r=e.content,o=e.image,a=e.scrolling,s=Bu(n,al(o,"image"),al(a,"scrolling"),"content"),u=ml(wc,e),l=hl(wc,e);return i.createElement(l,ri({},u,{className:s}),pl(t)?r:t)}bc.handledProps=["actions","as","children","className","content","onActionClick"],bc.propTypes={},bc.create=Cl(bc,(function(e){return{actions:e}})),wc.handledProps=["as","children","className","content","image","scrolling"],wc.propTypes={},wc.create=Cl(wc,(function(e){return{content:e}}));const _c=wc;function xc(e){var t=e.children,n=e.className,r=e.content,o=Bu("description",n),a=ml(xc,e),s=hl(xc,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}xc.handledProps=["as","children","className","content"],xc.propTypes={};const Ec=xc;const kc=Wu()?i.useLayoutEffect:i.useEffect;var Sc=/\s+/;var Ac=new Map,Cc=function(e,t){var n=function(e){var t=[];return e?(e.forEach((function(e){"string"===typeof e.current&&e.current.split(Sc).forEach((function(e){t.push(e)}))})),t.filter((function(e,t,n){return e.length>0&&n.indexOf(e)===t}))):[]}(t),r=function(e,t){return[t.filter((function(t){return-1===e.indexOf(t)})),e.filter((function(e){return-1===t.indexOf(e)}))]}(Ac.get(e)||[],n),i=r[0],o=r[1];e&&(i.forEach((function(t){return e.classList.add(t)})),o.forEach((function(t){return e.classList.remove(t)}))),Ac.set(e,n)},Dc=new function(){var e=this;this.add=function(t,n){if(e.nodes.has(t)){e.nodes.get(t).add(n)}else{var r=new Set;r.add(n),e.nodes.set(t,r)}},this.del=function(t,n){if(e.nodes.has(t)){var r=e.nodes.get(t);1!==r.size?r.delete(n):e.nodes.delete(t)}},this.emit=function(t,n){n(t,e.nodes.get(t))},this.nodes=new Map};function Mc(e){var t=e.blurring,n=e.children,r=e.className,o=e.centered,a=e.content,s=e.inverted,u=e.mountNode,l=e.scrolling,c=i.useRef(),f=Bu("ui",al(s,"inverted"),al(!o,"top aligned"),"page modals dimmer transition visible active",r),d=Bu("dimmable dimmed",al(t,"blurring"),al(l,"scrolling")),h=ml(Mc,e),p=hl(Mc,e);return function(e,t){var n=i.useRef(),r=i.useRef(!1);kc((function(){if(n.current=t,r.current){var i=Nu(e)?e.current:e;Dc.emit(i,Cc)}r.current=!0}),[t]),kc((function(){var t=Nu(e)?e.current:e;return Dc.add(t,n),Dc.emit(t,Cc),function(){Dc.del(t,n),Dc.emit(t,Cc)}}),[e])}(u,d),i.useEffect((function(){c.current&&c.current.style&&c.current.style.setProperty("display","flex","important")}),[]),i.createElement(ju,{innerRef:c},i.createElement(p,ri({},h,{className:f}),pl(n)?a:n))}Mc.handledProps=["as","blurring","centered","children","className","content","inverted","mountNode","scrolling"],Mc.propTypes={},Mc.create=Cl(Mc,(function(e){return{content:e}}));const Fc=Mc;function Oc(e){var t=e.children,n=e.className,r=e.content,o=Bu("header",n),a=ml(Oc,e),s=hl(Oc,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}Oc.handledProps=["as","children","className","content"],Oc.propTypes={},Oc.create=Cl(Oc,(function(e){return{content:e}}));const Tc=Oc;var Nc=function(e){function t(){for(var n,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(n=e.call.apply(e,[this].concat(o))||this).legacy=Wu()&&!window.ActiveXObject&&"ActiveXObject"in window,n.ref=(0,i.createRef)(),n.dimmerRef=(0,i.createRef)(),n.latestDocumentMouseDownEvent=null,n.getMountNode=function(){return Wu()?n.props.mountNode||document.body:null},n.handleActionsOverrides=function(e){return{onActionClick:function(t,r){Mu(e,"onActionClick",t,r),Mu(n.props,"onActionClick",t,n.props),n.handleClose(t)}}},n.handleClose=function(e){n.setState({open:!1}),Mu(n.props,"onClose",e,ri({},n.props,{open:!1}))},n.handleDocumentMouseDown=function(e){n.latestDocumentMouseDownEvent=e},n.handleDocumentClick=function(e){var t=n.props.closeOnDimmerClick,r=n.latestDocumentMouseDownEvent;n.latestDocumentMouseDownEvent=null,!t||el(n.ref.current,r)||el(n.ref.current,e)||(n.setState({open:!1}),Mu(n.props,"onClose",e,ri({},n.props,{open:!1})))},n.handleIconOverrides=function(e){return{onClick:function(t){Mu(e,"onClick",t),n.handleClose(t)}}},n.handleOpen=function(e){Mu(n.props,"onOpen",e,ri({},n.props,{open:!0})),n.setState({open:!0})},n.handlePortalMount=function(e){var t=n.props.eventPool;n.setState({scrolling:!1}),n.setPositionAndClassNames(),rl.sub("mousedown",n.handleDocumentMouseDown,{pool:t,target:n.dimmerRef.current}),rl.sub("click",n.handleDocumentClick,{pool:t,target:n.dimmerRef.current}),Mu(n.props,"onMount",e,n.props)},n.handlePortalUnmount=function(e){var t=n.props.eventPool;cancelAnimationFrame(n.animationRequestId),rl.unsub("mousedown",n.handleDocumentMouseDown,{pool:t,target:n.dimmerRef.current}),rl.unsub("click",n.handleDocumentClick,{pool:t,target:n.dimmerRef.current}),Mu(n.props,"onUnmount",e,n.props)},n.setPositionAndClassNames=function(){var e,t=n.props.centered,r={};if(n.ref.current){var i=n.ref.current.getBoundingClientRect(),o=function(e){var t=e.height+0,n=e.height+0,r=window.innerHeight;return r/2+-n/2+t+50<r}(i);e=!o;var a=n.legacy?function(e,t,n){var r=t&&e?-n.height/2:0;return{marginLeft:-n.width/2,marginTop:r}}(o,t,i):{};Uu()(n.state.legacyStyles,a)||(r.legacyStyles=a),n.state.scrolling!==e&&(r.scrolling=e)}ku(r)||n.setState(r),n.animationRequestId=requestAnimationFrame(n.setPositionAndClassNames)},n.renderContent=function(e){var r=n.props,o=r.actions,a=r.basic,s=r.children,u=r.className,l=r.closeIcon,c=r.content,f=r.header,d=r.size,h=r.style,p=n.state,m=p.legacyStyles,g=p.scrolling,y=Bu("ui",d,al(a,"basic"),al(n.legacy,"legacy"),al(g,"scrolling"),"modal transition visible active",u),v=hl(t,n.props),b=!0===l?"close":l,w=Rl.create(b,{overrideProps:n.handleIconOverrides});return i.createElement(ju,{innerRef:n.ref},i.createElement(v,ri({},e,{className:y,style:ri({},m,h)}),w,pl(s)?i.createElement(i.Fragment,null,Tc.create(f,{autoGenerateKey:!1}),_c.create(c,{autoGenerateKey:!1}),bc.create(o,{overrideProps:n.handleActionsOverrides})):s))},n}oi(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.handlePortalUnmount()},n.render=function(){var e=this.props,n=e.centered,r=e.closeOnDocumentClick,o=e.dimmer,a=e.eventPool,s=e.trigger,u=this.state,l=u.open,c=u.scrolling,f=this.getMountNode();if(!Wu())return(0,i.isValidElement)(s)?s:null;var d=ml(t,this.props),h=Hl.handledProps,p=xu(d,(function(e,t,n){return us(h,n)||(e[n]=t),e}),{}),m=ya(d,h);return i.createElement(Hl,ri({closeOnDocumentClick:r},m,{trigger:s,eventPool:a,mountNode:f,open:l,onClose:this.handleClose,onMount:this.handlePortalMount,onOpen:this.handleOpen,onUnmount:this.handlePortalUnmount}),i.createElement(ju,{innerRef:this.dimmerRef},Fc.create(Ci(o)?o:{},{autoGenerateKey:!1,defaultProps:{blurring:"blurring"===o,inverted:"inverted"===o},overrideProps:{children:this.renderContent(p),centered:n,mountNode:f,scrolling:c}})))},t}(yl);Nc.handledProps=["actions","as","basic","centered","children","className","closeIcon","closeOnDimmerClick","closeOnDocumentClick","content","defaultOpen","dimmer","eventPool","header","mountNode","onActionClick","onClose","onMount","onOpen","onUnmount","open","size","style","trigger"],Nc.propTypes={},Nc.defaultProps={centered:!0,dimmer:!0,closeOnDimmerClick:!0,closeOnDocumentClick:!1,eventPool:"Modal"},Nc.autoControlledProps=["open"],Nc.Actions=bc,Nc.Content=_c,Nc.Description=Ec,Nc.Dimmer=Fc,Nc.Header=Tc;const Pc=Nc;function Ic(e){var t=e.children,n=e.className,r=e.content,o=Bu("sub header",n),a=ml(Ic,e),s=hl(Ic,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}Ic.handledProps=["as","children","className","content"],Ic.propTypes={},Ic.create=Cl(Ic,(function(e){return{content:e}}));const Rc=Ic;function jc(e){var t=e.children,n=e.className,r=e.content,o=Bu("content",n),a=ml(jc,e),s=hl(jc,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}jc.handledProps=["as","children","className","content"],jc.propTypes={};const Lc=jc;function Bc(e){var t=e.attached,n=e.block,r=e.children,o=e.className,a=e.color,s=e.content,u=e.disabled,l=e.dividing,c=e.floated,f=e.icon,d=e.image,h=e.inverted,p=e.size,m=e.sub,g=e.subheader,y=e.textAlign,v=Bu("ui",a,p,al(n,"block"),al(u,"disabled"),al(l,"dividing"),sl(c,"floated"),al(!0===f,"icon"),al(!0===d,"image"),al(h,"inverted"),al(m,"sub"),ul(t,"attached"),cl(y),"header",o),b=ml(Bc,e),w=hl(Bc,e);if(!pl(r))return i.createElement(w,ri({},b,{className:v}),r);var _=Rl.create(f,{autoGenerateKey:!1}),x=oc.create(d,{autoGenerateKey:!1}),E=Rc.create(g,{autoGenerateKey:!1});return _||x?i.createElement(w,ri({},b,{className:v}),_||x,(s||E)&&i.createElement(Lc,null,s,E)):i.createElement(w,ri({},b,{className:v}),s,E)}Bc.handledProps=["as","attached","block","children","className","color","content","disabled","dividing","floated","icon","image","inverted","size","sub","subheader","textAlign"],Bc.propTypes={},Bc.Content=Lc,Bc.Subheader=Rc;const zc=Bc;function Uc(e){if(e)throw e}var Hc=n(755);function qc(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Gc(){const e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=-1;const o=n.pop();if("function"!==typeof o)throw new TypeError("Expected function as last argument, not "+o);!function t(r){const a=e[++i];let s=-1;if(r)o(r);else{for(var u=arguments.length,l=new Array(u>1?u-1:0),c=1;c<u;c++)l[c-1]=arguments[c];for(;++s<n.length;)null!==l[s]&&void 0!==l[s]||(l[s]=n[s]);n=l,a?function(e,t){let n;return i;function i(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];const u=e.length>i.length;let l;u&&i.push(o);try{l=e.apply(this,i)}catch(r){if(u&&n)throw r;return o(r)}u||(l&&l.then&&"function"===typeof l.then?l.then(a,o):l instanceof Error?o(l):a(l))}function o(e){if(!n){n=!0;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];t(e,...i)}}function a(e){o(null,e)}}(a,t)(...l):o(null,...l)}}(null,...n)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}class Wc extends Error{constructor(e,t,n){super(),"string"===typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:p({},t)),"string"===typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"===typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=or(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"===typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Wc.prototype.file="",Wc.prototype.name="",Wc.prototype.reason="",Wc.prototype.message="",Wc.prototype.stack="",Wc.prototype.column=void 0,Wc.prototype.line=void 0,Wc.prototype.ancestors=void 0,Wc.prototype.cause=void 0,Wc.prototype.fatal=void 0,Wc.prototype.place=void 0,Wc.prototype.ruleId=void 0,Wc.prototype.source=void 0;const Vc={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');Qc(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(i=o):(s=-1,i=a));r===i?i=a:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(Qc(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){Qc(e);let t,n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===a||1===a&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(){let e,t=-1;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(;++t<r.length;)Qc(r[t]),r[t]&&(e=void 0===e?r[t]:e+"/"+r[t]);return void 0===e?".":function(e){Qc(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",o=0,a=-1,s=0,u=-1;for(;++u<=e.length;){if(u<e.length)n=e.codePointAt(u);else{if(47===n)break;n=47}if(47===n){if(a===u-1||1===s);else if(a!==u-1&&2===s){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),a=u,s=0;continue}}else if(i.length>0){i="",o=0,a=u,s=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,u):i=e.slice(a+1,u),o=u-a-1;a=u,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function Qc(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const $c={cwd:function(){return"/"}};function Kc(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function Yc(e){if("string"===typeof e)e=new URL(e);else if(!Kc(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const Xc=["history","path","basename","stem","extname","dirname"];class Zc{constructor(e){let t;t=e?Kc(e)?{path:e}:"string"===typeof e||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":$c.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Xc.length;){const e=Xc[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Xc.includes(n)||(this[n]=t[n])}get basename(){return"string"===typeof this.path?Vc.basename(this.path):void 0}set basename(e){ef(e,"basename"),Jc(e,"basename"),this.path=Vc.join(this.dirname||"",e)}get dirname(){return"string"===typeof this.path?Vc.dirname(this.path):void 0}set dirname(e){tf(this.basename,"dirname"),this.path=Vc.join(e||"",this.basename)}get extname(){return"string"===typeof this.path?Vc.extname(this.path):void 0}set extname(e){if(Jc(e,"extname"),tf(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Vc.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Kc(e)&&(e=Yc(e)),ef(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"===typeof this.path?Vc.basename(this.path,this.extname):void 0}set stem(e){ef(e,"stem"),Jc(e,"stem"),this.path=Vc.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Wc(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"===typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function Jc(e,t){if(e&&e.includes(Vc.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Vc.sep+"`")}function ef(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function tf(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const nf=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},rf={}.hasOwnProperty;class of extends nf{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Gc()}copy(){const e=new of;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Hc(!0,{},this.namespace)),e}data(e,t){return"string"===typeof e?2===arguments.length?(lf("data",this.frozen),this.namespace[e]=t,this):rf.call(this.namespace,e)&&this.namespace[e]||void 0:e?(lf("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"===typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=df(e),n=this.parser||this.Parser;return sf("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),sf("process",this.parser||this.Parser),uf("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const o=df(e),a=n.parse(o);function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(a,o,(function(e,t,r){if(e||!t||!r)return s(e);const i=t,o=n.stringify(i,r);var a;"string"===typeof(a=o)||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=o:r.result=o,s(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),sf("processSync",this.parser||this.Parser),uf("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,Uc(e),t=r})),ff("processSync","process",n),t}run(e,t,n){cf(e),this.freeze();const r=this.transformers;return n||"function"!==typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){const a=df(t);r.run(e,a,(function(t,r,a){const s=r||e;t?o(t):i?i(s):n(void 0,s,a)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){Uc(e),n=t,r=!0})),ff("runSync","run",r),n}stringify(e,t){this.freeze();const n=df(t),r=this.compiler||this.Compiler;return uf("stringify",r),cf(e),r(e,n)}use(e){const t=this.attachers,n=this.namespace;if(lf("use",this.frozen),null===e||void 0===e);else if("function"===typeof e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];l(e,i)}else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?u(e):s(e)}return this;function a(e){if("function"===typeof e)l(e,[]);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;l(t,n)}else s(e)}}function s(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(e.plugins),e.settings&&(n.settings=Hc(!0,n.settings,e.settings))}function u(e){let t=-1;if(null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){a(e[t])}}}function l(e,n){let r=-1,i=-1;for(;++r<t.length;)if(t[r][0]===e){i=r;break}if(-1===i)t.push([e,...n]);else if(n.length>0){let[r,...o]=n;const a=t[i][1];qc(a)&&qc(r)&&(r=Hc(!0,a,r)),t[i]=[e,r,...o]}}}}const af=(new of).freeze();function sf(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function uf(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function lf(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function cf(e){if(!qc(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function ff(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function df(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new Zc(e)}var hf=function(e,t){return hf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},hf(e,t)};function pf(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}hf(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var mf=function(){return mf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},mf.apply(this,arguments)};function gf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create;function yf(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;function vf(e,t){var n=t&&t.cache?t.cache:Sf,r=t&&t.serializer?t.serializer:Ef;return(t&&t.strategy?t.strategy:xf)(e,{cache:n,serializer:r})}function bf(e,t,n,r){var i,o=null==(i=r)||"number"===typeof i||"boolean"===typeof i?r:n(r),a=t.get(o);return"undefined"===typeof a&&(a=e.call(this,r),t.set(o,a)),a}function wf(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return"undefined"===typeof o&&(o=e.apply(this,r),t.set(i,o)),o}function _f(e,t,n,r,i){return n.bind(t,e,r,i)}function xf(e,t){return _f(e,this,1===e.length?bf:wf,t.cache.create(),t.serializer)}var Ef=function(){return JSON.stringify(arguments)};function kf(){this.cache=Object.create(null)}kf.prototype.get=function(e){return this.cache[e]},kf.prototype.set=function(e,t){this.cache[e]=t};var Sf={create:function(){return new kf}},Af={variadic:function(e,t){return _f(e,this,wf,t.cache.create(),t.serializer)},monadic:function(e,t){return _f(e,this,bf,t.cache.create(),t.serializer)}};function Cf(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}vf((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,yf([void 0],t,!1)))}),{strategy:Af.variadic}),vf((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,yf([void 0],t,!1)))}),{strategy:Af.variadic}),vf((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,yf([void 0],t,!1)))}),{strategy:Af.variadic}),vf((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.Locale).bind.apply(e,yf([void 0],t,!1)))}),{strategy:Af.variadic}),vf((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.ListFormat).bind.apply(e,yf([void 0],t,!1)))}),{strategy:Af.variadic});function Df(e,t){var n=t&&t.cache?t.cache:Uf,r=t&&t.serializer?t.serializer:Nf;return(t&&t.strategy?t.strategy:Tf)(e,{cache:n,serializer:r})}function Mf(e,t,n,r){var i,o=null==(i=r)||"number"===typeof i||"boolean"===typeof i?r:n(r),a=t.get(o);return"undefined"===typeof a&&(a=e.call(this,r),t.set(o,a)),a}function Ff(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return"undefined"===typeof o&&(o=e.apply(this,r),t.set(i,o)),o}function Of(e,t,n,r,i){return n.bind(t,e,r,i)}function Tf(e,t){return Of(e,this,1===e.length?Mf:Ff,t.cache.create(),t.serializer)}var Nf=function(){return JSON.stringify(arguments)};function Pf(){this.cache=Object.create(null)}Pf.prototype.get=function(e){return this.cache[e]},Pf.prototype.set=function(e,t){this.cache[e]=t};var If,Rf,jf,Lf,Bf,zf,Uf={create:function(){return new Pf}},Hf={variadic:function(e,t){return Of(e,this,Ff,t.cache.create(),t.serializer)},monadic:function(e,t){return Of(e,this,Mf,t.cache.create(),t.serializer)}};function qf(e){return e.type===jf.literal}function Gf(e){return e.type===jf.argument}function Wf(e){return e.type===jf.number}function Vf(e){return e.type===jf.date}function Qf(e){return e.type===jf.time}function $f(e){return e.type===jf.select}function Kf(e){return e.type===jf.plural}function Yf(e){return e.type===jf.pound}function Xf(e){return e.type===jf.tag}function Zf(e){return!(!e||"object"!==typeof e||e.type!==Bf.number)}function Jf(e){return!(!e||"object"!==typeof e||e.type!==Bf.dateTime)}(Rf=If||(If={}))[Rf.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Rf[Rf.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Rf[Rf.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Rf[Rf.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Rf[Rf.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Rf[Rf.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Rf[Rf.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Rf[Rf.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Rf[Rf.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Rf[Rf.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Rf[Rf.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Rf[Rf.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Rf[Rf.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Rf[Rf.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Rf[Rf.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Rf[Rf.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Rf[Rf.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Rf[Rf.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Rf[Rf.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Rf[Rf.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Rf[Rf.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Rf[Rf.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Rf[Rf.INVALID_TAG=23]="INVALID_TAG",Rf[Rf.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Rf[Rf.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Rf[Rf.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Lf=jf||(jf={}))[Lf.literal=0]="literal",Lf[Lf.argument=1]="argument",Lf[Lf.number=2]="number",Lf[Lf.date=3]="date",Lf[Lf.time=4]="time",Lf[Lf.select=5]="select",Lf[Lf.plural=6]="plural",Lf[Lf.pound=7]="pound",Lf[Lf.tag=8]="tag",(zf=Bf||(Bf={}))[zf.number=0]="number",zf[zf.dateTime=1]="dateTime";var ed=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,td=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function nd(e){var t={};return e.replace(td,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var rd=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var id=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,od=/^(@+)?(\+|#+)?[rs]?$/g,ad=/(\*)(0+)|(#+)(0+)|(0+)/g,sd=/^(0+)$/;function ud(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(od,(function(e,n,r){return"string"!==typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"===typeof r?r.length:0)),""})),t}function ld(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function cd(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!sd.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function fd(e){var t=ld(e);return t||{}}function dd(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=mf(mf(mf({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return mf(mf({},e),fd(t))}),{}));continue;case"engineering":t=mf(mf(mf({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return mf(mf({},e),fd(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(ad,(function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(sd.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(id.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(id,(function(e,n,r,i,o,a){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var o=i.options[0];"w"===o?t=mf(mf({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=mf(mf({},t),ud(o)))}else if(od.test(i.stem))t=mf(mf({},t),ud(i.stem));else{var a=ld(i.stem);a&&(t=mf(mf({},t),a));var s=cd(i.stem);s&&(t=mf(mf({},t),s))}}return t}var hd,pd={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function md(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(pd[n||""]||pd[r||""]||pd["".concat(r,"-001")]||pd["001"])[0]}var gd=new RegExp("^".concat(ed.source,"*")),yd=new RegExp("".concat(ed.source,"*$"));function vd(e,t){return{start:e,end:t}}var bd=!!String.prototype.startsWith&&"_a".startsWith("a",1),wd=!!String.fromCodePoint,_d=!!Object.fromEntries,xd=!!String.prototype.codePointAt,Ed=!!String.prototype.trimStart,kd=!!String.prototype.trimEnd,Sd=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ad=!0;try{Ad="a"===(null===(hd=Pd("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===hd?void 0:hd[0])}catch(vA){Ad=!1}var Cd,Dd=bd?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Md=wd?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;i>o;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Fd=_d?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a}return t},Od=xd?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},Td=Ed?function(e){return e.trimStart()}:function(e){return e.replace(gd,"")},Nd=kd?function(e){return e.trimEnd()}:function(e){return e.replace(yd,"")};function Pd(e,t){return new RegExp(e,t)}if(Ad){var Id=Pd("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Cd=function(e,t){var n;return Id.lastIndex=t,null!==(n=Id.exec(e)[1])&&void 0!==n?n:""}}else Cd=function(e,t){for(var n=[];;){var r=Od(e,t);if(void 0===r||Ld(r)||Bd(r))break;n.push(r),t+=r>=65536?2:1}return Md.apply(void 0,n)};var Rd=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(If.UNMATCHED_CLOSING_TAG,vd(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&jd(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:jf.pound,location:vd(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:jf.literal,value:"<".concat(r,"/>"),location:vd(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!jd(this.char()))return this.error(If.INVALID_TAG,vd(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(If.UNMATCHED_CLOSING_TAG,vd(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:jf.tag,value:r,children:o,location:vd(n,this.clonePosition())},err:null}:this.error(If.INVALID_TAG,vd(a,this.clonePosition())))}return this.error(If.UNCLOSED_TAG,vd(n,this.clonePosition()))}return this.error(If.INVALID_TAG,vd(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=vd(n,this.clonePosition());return{val:{type:jf.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(jd(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Md.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),Md(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(If.EXPECT_ARGUMENT_CLOSING_BRACE,vd(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(If.EMPTY_ARGUMENT,vd(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(If.MALFORMED_ARGUMENT,vd(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(If.EXPECT_ARGUMENT_CLOSING_BRACE,vd(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:jf.argument,value:r,location:vd(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(If.EXPECT_ARGUMENT_CLOSING_BRACE,vd(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(If.MALFORMED_ARGUMENT,vd(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Cd(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:vd(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(If.EXPECT_ARGUMENT_TYPE,vd(o,s));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(h=Nd(y.val)).length)return this.error(If.EXPECT_ARGUMENT_STYLE,vd(this.clonePosition(),this.clonePosition()));u={style:h,styleLocation:vd(l,this.clonePosition())}}if((v=this.tryParseArgumentClose(r)).err)return v;var c=vd(r,this.clonePosition());if(u&&Dd(null===u||void 0===u?void 0:u.style,"::",0)){var f=Td(u.style.slice(2));if("number"===a)return(y=this.parseNumberSkeletonFromString(f,u.styleLocation)).err?y:{val:{type:jf.number,value:n,location:c,style:y.val},err:null};if(0===f.length)return this.error(If.EXPECT_DATE_TIME_SKELETON,c);var d=f;this.locale&&(d=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var a=1+(1&o),s=o<2?1:3+(o>>1),u=md(t);for("H"!=u&&"k"!=u||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=u+n}else n+="J"===i?"H":i}return n}(f,this.locale));var h={type:Bf.dateTime,pattern:d,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?nd(d):{}};return{val:{type:"date"===a?jf.date:jf.time,value:n,location:c,style:h},err:null}}return{val:{type:"number"===a?jf.number:"date"===a?jf.date:jf.time,value:n,location:c,style:null!==(i=null===u||void 0===u?void 0:u.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(If.EXPECT_SELECT_ARGUMENT_OPTIONS,vd(p,mf({},p)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(If.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,vd(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(If.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,If.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=y.val}var v,b=this.tryParsePluralOrSelectOptions(e,a,t,m);if(b.err)return b;if((v=this.tryParseArgumentClose(r)).err)return v;var w=vd(r,this.clonePosition());return"select"===a?{val:{type:jf.select,value:n,options:Fd(b.val),location:w},err:null}:{val:{type:jf.plural,value:n,options:Fd(b.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:w},err:null};default:return this.error(If.INVALID_ARGUMENT_TYPE,vd(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(If.EXPECT_ARGUMENT_CLOSING_BRACE,vd(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(If.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,vd(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(rd).filter((function(e){return e.length>0}));n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0,u=a;s<u.length;s++)if(0===u[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(r){return this.error(If.INVALID_NUMBER_SKELETON,t)}return{val:{type:Bf.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?dd(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,o=!1,a=[],s=new Set,u=r.value,l=r.location;;){if(0===u.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(If.EXPECT_PLURAL_ARGUMENT_SELECTOR,If.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;l=vd(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}if(s.has(u))return this.error("select"===t?If.DUPLICATE_SELECT_ARGUMENT_SELECTOR:If.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===u&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?If.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:If.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,vd(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,n);if(h.err)return h;var p=this.tryParseArgumentClose(d);if(p.err)return p;a.push([u,{value:h.val,location:vd(d,this.clonePosition())}]),s.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===a.length?this.error("select"===t?If.EXPECT_SELECT_ARGUMENT_SELECTOR:If.EXPECT_PLURAL_ARGUMENT_SELECTOR,vd(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(If.MISSING_OTHER_CLAUSE,vd(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=vd(r,this.clonePosition());return i?Sd(o*=n)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Od(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Dd(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ld(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!==n&&void 0!==n?n:null},e}();function jd(e){return e>=97&&e<=122||e>=65&&e<=90}function Ld(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Bd(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function zd(e){e.forEach((function(e){if(delete e.location,$f(e)||Kf(e))for(var t in e.options)delete e.options[t].location,zd(e.options[t].value);else Wf(e)&&Zf(e.style)||(Vf(e)||Qf(e))&&Jf(e.style)?delete e.style.location:Xf(e)&&zd(e.children)}))}function Ud(e,t){void 0===t&&(t={}),t=mf({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Rd(e,t).parse();if(n.err){var r=SyntaxError(If[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null===t||void 0===t?void 0:t.captureLocation)||zd(n.val),n.val}var Hd,qd;(qd=Hd||(Hd={})).MISSING_VALUE="MISSING_VALUE",qd.INVALID_VALUE="INVALID_VALUE",qd.MISSING_INTL_API="MISSING_INTL_API";var Gd,Wd,Vd=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return pf(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Qd=function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Hd.INVALID_VALUE,i)||this}return pf(t,e),t}(Vd),$d=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),Hd.INVALID_VALUE,r)||this}return pf(t,e),t}(Vd),Kd=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),Hd.MISSING_VALUE,n)||this}return pf(t,e),t}(Vd);function Yd(e){return"function"===typeof e}function Xd(e,t,n,r,i,o,a){if(1===e.length&&qf(e[0]))return[{type:Gd.literal,value:e[0].value}];for(var s=[],u=0,l=e;u<l.length;u++){var c=l[u];if(qf(c))s.push({type:Gd.literal,value:c.value});else if(Yf(c))"number"===typeof o&&s.push({type:Gd.literal,value:n.getNumberFormat(t).format(o)});else{var f=c.value;if(!i||!(f in i))throw new Kd(f,a);var d=i[f];if(Gf(c))d&&"string"!==typeof d&&"number"!==typeof d||(d="string"===typeof d||"number"===typeof d?String(d):""),s.push({type:"string"===typeof d?Gd.literal:Gd.object,value:d});else if(Vf(c)){var h="string"===typeof c.style?r.date[c.style]:Jf(c.style)?c.style.parsedOptions:void 0;s.push({type:Gd.literal,value:n.getDateTimeFormat(t,h).format(d)})}else if(Qf(c)){h="string"===typeof c.style?r.time[c.style]:Jf(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:Gd.literal,value:n.getDateTimeFormat(t,h).format(d)})}else if(Wf(c)){(h="string"===typeof c.style?r.number[c.style]:Zf(c.style)?c.style.parsedOptions:void 0)&&h.scale&&(d*=h.scale||1),s.push({type:Gd.literal,value:n.getNumberFormat(t,h).format(d)})}else{if(Xf(c)){var p=c.children,m=c.value,g=i[m];if(!Yd(g))throw new $d(m,"function",a);var y=g(Xd(p,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),s.push.apply(s,y.map((function(e){return{type:"string"===typeof e?Gd.literal:Gd.object,value:e}})))}if($f(c)){if(!(v=c.options[d]||c.options.other))throw new Qd(c.value,d,Object.keys(c.options),a);s.push.apply(s,Xd(v.value,t,n,r,i))}else if(Kf(c)){var v;if(!(v=c.options["=".concat(d)])){if(!Intl.PluralRules)throw new Vd('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Hd.MISSING_INTL_API,a);var b=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));v=c.options[b]||c.options.other}if(!v)throw new Qd(c.value,d,Object.keys(c.options),a);s.push.apply(s,Xd(v.value,t,n,r,i,d-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===Gd.literal&&t.type===Gd.literal?n.value+=t.value:e.push(t),e}),[])}(s)}function Zd(e,t){return t?Object.keys(e).reduce((function(n,r){var i,o;return n[r]=(i=e[r],(o=t[r])?mf(mf(mf({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=mf(mf({},i[t]),o[t]||{}),e}),{})):i),n}),mf({},e)):e}function Jd(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}(Wd=Gd||(Gd={}))[Wd.literal=0]="literal",Wd[Wd.object=1]="object";var eh=function(){function e(t,n,r,i){void 0===n&&(n=e.defaultLocale);var o,a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Gd.literal&&"string"===typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Xd(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=a.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"===typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{},u=(s.formatters,gf(s,["formatters"]));this.ast=e.__parse(t,mf(mf({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Zd(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Df((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,yf([void 0],t,!1)))}),{cache:Jd(o.number),strategy:Hf.variadic}),getDateTimeFormat:Df((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,yf([void 0],t,!1)))}),{cache:Jd(o.dateTime),strategy:Hf.variadic}),getPluralRules:Df((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,yf([void 0],t,!1)))}),{cache:Jd(o.pluralRules),strategy:Hf.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if("undefined"!==typeof Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"===typeof e?e:e[0])}},e.__parse=Ud,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function th(e,t){var n=t&&t.cache?t.cache:ch,r=t&&t.serializer?t.serializer:ah;return(t&&t.strategy?t.strategy:oh)(e,{cache:n,serializer:r})}function nh(e,t,n,r){var i,o=null==(i=r)||"number"===typeof i||"boolean"===typeof i?r:n(r),a=t.get(o);return"undefined"===typeof a&&(a=e.call(this,r),t.set(o,a)),a}function rh(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return"undefined"===typeof o&&(o=e.apply(this,r),t.set(i,o)),o}function ih(e,t,n,r,i){return n.bind(t,e,r,i)}function oh(e,t){return ih(e,this,1===e.length?nh:rh,t.cache.create(),t.serializer)}var ah=function(){return JSON.stringify(arguments)};function sh(){this.cache=Object.create(null)}sh.prototype.get=function(e){return this.cache[e]},sh.prototype.set=function(e,t){this.cache[e]=t};var uh,lh,ch={create:function(){return new sh}},fh={variadic:function(e,t){return ih(e,this,rh,t.cache.create(),t.serializer)},monadic:function(e,t){return ih(e,this,nh,t.cache.create(),t.serializer)}};(lh=uh||(uh={})).FORMAT_ERROR="FORMAT_ERROR",lh.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",lh.INVALID_CONFIG="INVALID_CONFIG",lh.MISSING_DATA="MISSING_DATA",lh.MISSING_TRANSLATION="MISSING_TRANSLATION";var dh=function(e){function t(n,r,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=n,"function"===typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return pf(t,e),t}(Error),hh=function(e){function t(t,n){return e.call(this,uh.UNSUPPORTED_FORMATTER,t,n)||this}return pf(t,e),t}(dh),ph=function(e){function t(t,n){return e.call(this,uh.INVALID_CONFIG,t,n)||this}return pf(t,e),t}(dh),mh=function(e){function t(t,n){return e.call(this,uh.MISSING_DATA,t,n)||this}return pf(t,e),t}(dh),gh=function(e){function t(t,n,r){var i=e.call(this,uh.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),r)||this;return i.locale=n,i}return pf(t,e),t}(dh),yh=function(e){function t(t,n,r,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null===r||void 0===r?void 0:r.id,"\nDefault Message: ").concat(null===r||void 0===r?void 0:r.defaultMessage,"\nDescription: ").concat(null===r||void 0===r?void 0:r.description,"\n"),n,i)||this;return o.descriptor=r,o.locale=n,o}return pf(t,e),t}(gh),vh=function(e){function t(t,n){var r=e.call(this,uh.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"===typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return r.descriptor=t,r}return pf(t,e),t}(dh);function bh(e,t,n){return void 0===n&&(n={}),t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}var wh={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function _h(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function xh(e,t,n,r){var i,o=e&&e[t];if(o&&(i=o[n]),i)return i;r(new hh("No ".concat(t," format named: ").concat(n)))}function Eh(e){Cf(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var kh=mf(mf({},wh),{textComponent:i.Fragment});function Sh(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}n(3876);var Ah="undefined"===typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?i.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=i.createContext(null)),Ch=(Ah.Consumer,Ah.Provider),Dh=Ah;function Mh(){var e=i.useContext(Dh);return Eh(e),e}function Fh(e){var t=Mh(),n=t.formatMessage,r=t.textComponent,o=void 0===r?i.Fragment:r,a=e.id,s=e.description,u=e.defaultMessage,l=e.values,c=e.children,f=e.tagName,d=void 0===f?o:f,h=n({id:a,description:s,defaultMessage:u},l,{ignoreTag:e.ignoreTag});return"function"===typeof c?c(Array.isArray(h)?h:[h]):d?i.createElement(d,null,i.Children.toArray(h)):i.createElement(i.Fragment,null,h)}Fh.displayName="FormattedMessage";var Oh=i.memo(Fh,(function(e,t){var n=e.values,r=gf(e,["values"]),i=t.values,o=gf(t,["values"]);return Sh(i,n)&&Sh(r,o)}));Oh.displayName="MemoizedFormattedMessage";const Th=Oh;var Nh=n(4414);const Ph="last_seen_version";async function Ih(e,t){var n;const r=t?Date.parse(t.slice(0,10)):0,i=(null===(n='# Changelog\n\n## 2023-08-25\n\n- Added support for loading gedzip files\n\n## 2023-07-21\n\n- Display images, notes, sources for events as collapsible tabs (by czifumasa)\n\n## 2023-07-20\n\n- Fixed search for Hebrew names (by czifumasa)\n\n## 2023-02-01\n\n- Added option to hide sex indicators (by Kent Grigo)\n- Empty family boxes are now not shown (by Kent Grigo)\n\n## 2023-01-08\n\n- Added option to hide profile identifiers by Kent Grigo\n\n## 2022-12-08\n\n- French translation updated by Olivier Berten\n\n## 2022-08-30\n\n- Added displaying name types in details panel\n\n## 2022-05-13\n\n- Added displaying images in the details panel\n\n## 2022-04-06\n\n- Fixed logging in to WikiTree\n\n## 2021-10-31\n\n- Show changelog in intro page and when an upgraded version is loaded\n\n## 2021-10-27\n\n- Show events in details panel for WikiTree profiles\n\n## 2021-10-26\n\n- Added family events to details panel\n- Improved details panel layout\n\n## 2021-10-25\n\n- Added "Settings" tab in side panel\n- Added color settings (none, by generation, by sex)')?void 0:n.split("##").slice(1,e+1).map((e=>({date:Date.parse(e.split("\n")[0].trim()),notes:"####"+e}))).filter((e=>e.date>r)).map((e=>e.notes)).join("\n"))||"",o=await af().use(mr).use(ni).use(mt).process(i);return String(o)}function Rh(){localStorage.setItem(Ph,"2025-01-16 17:59:19 +0100")}function jh(){const[e,t]=(0,i.useState)(!1),[n,r]=(0,i.useState)("");return(0,i.useEffect)((()=>{(async()=>{const e=localStorage.getItem(Ph);if(!e||"2025-01-16 17:59:19 +0100"===e)return;const n=await Ih(3,e);r(n),t(!!n),Rh()})()})),(0,Nh.jsxs)(Pc,{open:e,centered:!1,children:[(0,Nh.jsx)(zc,{children:(0,Nh.jsx)(Th,{id:"whats_new.title",defaultMessage:"What's new in this version?"})}),(0,Nh.jsxs)(Pc.Content,{className:"limit-height",children:[(0,Nh.jsx)("span",{dangerouslySetInnerHTML:{__html:n}}),(0,Nh.jsx)("a",{href:"https://github.com/PeWu/topola-viewer/blob/master/CHANGELOG.md",children:(0,Nh.jsx)(Th,{id:"intro.full_changelog",defaultMessage:"See full changelog"})})]}),(0,Nh.jsx)(Pc.Actions,{children:(0,Nh.jsx)(vc,{primary:!0,onClick:()=>t(!1),children:"Close"})})]})}let Lh=function(e){return e[e.UPLOADED=0]="UPLOADED",e[e.GEDCOM_URL=1]="GEDCOM_URL",e[e.WIKITREE=2]="WIKITREE",e[e.EMBEDDED=3]="EMBEDDED",e}({});var Bh=n(6573),zh=n.n(Bh),Uh=n(8148);class Hh extends Error{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(t),this.code=e,this.args=n}}var qh=n(3837);const Gh=new Map([["abt","about"],["cal","calculated"],["est","estimated"]]);function Wh(e,t){const n=void 0!==e.day,r=void 0!==e.month,i=void 0!==e.year;if(!n&&!r&&!i)return e.text||"";const o=Zh(e),a={day:n?"numeric":void 0,month:r?"long":void 0,year:i?"numeric":void 0};return[Vh(e.qualifier,t),new Intl.DateTimeFormat(t.locale,a).format(o)].filter((e=>e)).join(" ")}function Vh(e,t){const n=e&&e.toLowerCase();return n&&t.formatMessage({id:"date.".concat(n),defaultMessage:Gh.get(n)||n})||""}function Qh(e,t){return e?e.date?Wh(e.date,t):e.dateRange?function(e,t){const n=e.from,r=e.to,i=n&&Wh(n,t),o=r&&Wh(r,t);return i&&o?t.formatMessage({id:"date.between",defaultMessage:"between {from} and {to}"},{from:i,to:o}):i?t.formatMessage({id:"date.after",defaultMessage:"after {from}"},{from:i}):o?t.formatMessage({id:"date.before",defaultMessage:"before {to}"},{to:o}):""}(e.dateRange,t):"":""}function $h(e,t){return e&&e.year&&t&&t.year?e.year!==t.year?e.year-t.year:e.month&&t.month&&(e.month!==t.month||e.day&&t.day&&e.day!==t.day)?e.month-t.month:0:0}function Kh(e,t){return $h(e&&(e.date||e.dateRange&&(e.dateRange.from||e.dateRange.to)),t&&(t.date||t.dateRange&&(t.dateRange.from||t.dateRange.to)))}function Yh(e){var t,n,r,i;return Xh(null===e||void 0===e?void 0:e.dateRange)?$h(null===e||void 0===e||null===(r=e.dateRange)||void 0===r?void 0:r.from,null===e||void 0===e||null===(i=e.dateRange)||void 0===i?void 0:i.to)<=0:!!(null!==e&&void 0!==e&&e.date||null!==e&&void 0!==e&&null!==(t=e.dateRange)&&void 0!==t&&t.from||null!==e&&void 0!==e&&null!==(n=e.dateRange)&&void 0!==n&&n.to)}function Xh(e){return!(null===e||void 0===e||!e.from||null===e||void 0===e||!e.to)}function Zh(e){return new Date(void 0!==e.year?e.year:0,void 0!==e.month?e.month-1:0,void 0!==e.day?e.day:1)}function Jh(e){return e.substring(1,e.length-1)}function ep(e){const t=new Map;return e.indis.forEach((e=>{t.set(e.id,e)})),t}function tp(e){const t=new Map;return e.fams.forEach((e=>{t.set(e.id,e)})),t}function np(e){const t=e.find((e=>"HEAD"===e.tag)),n={},r={},i={};return e.forEach((e=>{"INDI"===e.tag?n[Jh(e.pointer)]=e:"FAM"===e.tag?r[Jh(e.pointer)]=e:e.pointer&&(i[Jh(e.pointer)]=e)})),{head:t,indis:n,fams:r,other:i}}function rp(e,t){return e<t?-1:e>t?1:0}function ip(e){const t=function(e){const t=ep(e);return(e,n)=>{const r=t.get(e),i=t.get(n);return Kh(r&&r.birth,i&&i.birth)||rp(e,n)}}(e),n=e.fams.map((e=>function(e,t){if(!e.children)return e;const n=e.children.sort(t);return Object.assign({},e,{children:n})}(e,t)));return Object.assign({},e,{fams:n})}function op(e){const t=function(e){const t=tp(e);return(e,n)=>{const r=t.get(e),i=t.get(n);return Kh(r&&r.marriage,i&&i.marriage)||rp(e,n)}}(e),n=e.indis.map((e=>function(e,t){if(!e.fams)return e;const n=e.fams.sort(t);return Object.assign({},e,{fams:n})}(e,t)));return Object.assign({},e,{indis:n})}function ap(e,t,n){if(e.data){const r=n(t)[Jh(e.data)];if(r)return r}return e}function sp(e){const t=[e.data];return e.tree.forEach((e=>{if("CONC"===e.tag&&e.data){const n=t.length-1;t[n]+=e.data}else"CONT"===e.tag&&e.data&&t.push(e.data)})),t}function up(e){return op(ip(e))}const lp=[".jpg",".jpeg",".png",".gif"];function cp(e){const t=e.toLowerCase();return lp.some((e=>t.endsWith(e)))}function fp(e,t){const n=e.indis.map((e=>function(e,t){if(!e.images||0===e.images.length)return e;const n=[];return e.images.forEach((e=>{const r=e.url.replaceAll("\\","/"),i=r.match(/[^/]*$/)[0];t.has(r)?n.push({url:t.get(r),title:e.title}):t.has(i)?n.push({url:t.get(i),title:e.title}):e.url.startsWith("http")&&cp(e.url)&&n.push(e)})),Object.assign({},e,{images:n})}(e,t)));return Object.assign({},e,{indis:n})}function dp(e){const t=e&&e.tree&&e.tree.find((e=>"SOUR"===e.tag)),n=t&&t.tree&&t.tree.find((e=>"NAME"===e.tag));return n&&n.data||null}function hp(e){var t,n;const r=null===e||void 0===e||null===(t=e.tree.find((e=>"TITL"===e.tag)))||void 0===t?void 0:t.data,i=null===e||void 0===e||null===(n=e.tree.find((e=>"FORM"===e.tag)))||void 0===n?void 0:n.data;return r&&i&&r+"."+i}function pp(e){return e.tree.find((e=>"FILE"===e.tag&&e.data.startsWith("http")&&cp(e.data)))}function mp(e,t,n){const r=bp(e,t);return n.formatMessage({id:"age.more",defaultMessage:"More than {age, plural, =0 {0 years} one {1 year} other {# years}}"},{age:r})}function gp(e,t,n){const r=bp(e,t);return n.formatMessage({id:"age.less",defaultMessage:"Less than {age, plural, =0 {1 year} one {1 year} other {# years}}"},{age:r})}function yp(e,t,n,r,i){const o=bp(t,n),a=bp(e,r);return i.formatMessage({id:"age.between",defaultMessage:"Between {ageFrom} and {ageTo, plural, =0 {0 years} one {1 year} other {# years}}"},{ageFrom:o,ageTo:a})}function vp(e,t){return!(!e||!t)&&(!(!Yh(e)||!Yh(t))&&(!(Kh(e,t)>0)&&(!(e.dateRange&&t.dateRange&&Xh(null===e||void 0===e?void 0:e.dateRange)&&Xh(null===t||void 0===t?void 0:t.dateRange))||(n=e.dateRange,r=t.dateRange,!($h(n.from,r.to)<=0&&$h(n.to,r.from)>=0)))));var n,r}function bp(e,t){const n=Zh(e),r=Zh(t),i=n.getUTCFullYear();let o=r.getUTCFullYear()-i,a=r.getUTCMonth()-n.getUTCMonth();a<0&&(o--,a+=12);return r.getUTCDate()-n.getUTCDate()<0&&a<=0&&o--,Math.abs(o)}function wp(e,t,n){if(e&&t){const j=(0,qh.getDate)(e),L=(0,qh.getDate)(t);if(vp(j,L)){var r,i,o,a;if(null!==j&&void 0!==j&&j.date){var s,u,l,c,f,d,h,p;if(null!==L&&void 0!==L&&L.date)return function(e,t,n){const r=bp(e,t),i=e.qualifier||t.qualifier,o=i&&Vh(i,n)+" ";return n.formatMessage({id:"age.exact",defaultMessage:"{qualifier}{age, plural, =0 {Less than 1 year} one {1 year} other {# years}}"},{age:r,qualifier:o})}(j.date,L.date,n);if(null!==L&&void 0!==L&&null!==(s=L.dateRange)&&void 0!==s&&s.from&&null!==(u=L.dateRange)&&void 0!==u&&u.to)return yp(j.date,j.date,null===L||void 0===L||null===(f=L.dateRange)||void 0===f?void 0:f.from,null===L||void 0===L||null===(d=L.dateRange)||void 0===d?void 0:d.to,n);if(null!==L&&void 0!==L&&null!==(l=L.dateRange)&&void 0!==l&&l.from)return mp(j.date,null===(h=L.dateRange)||void 0===h?void 0:h.from,n);if(null!==L&&void 0!==L&&null!==(c=L.dateRange)&&void 0!==c&&c.to)return gp(j.date,null===(p=L.dateRange)||void 0===p?void 0:p.to,n)}if(null!==j&&void 0!==j&&null!==(r=j.dateRange)&&void 0!==r&&r.from&&null!==j&&void 0!==j&&null!==(i=j.dateRange)&&void 0!==i&&i.to){var m,g,y,v,b,w,_,x,E,k,S,A,C,D;if(null!==L&&void 0!==L&&L.date)return yp(null===j||void 0===j||null===(b=j.dateRange)||void 0===b?void 0:b.from,null===j||void 0===j||null===(w=j.dateRange)||void 0===w?void 0:w.to,null===L||void 0===L?void 0:L.date,null===L||void 0===L?void 0:L.date,n);if(null!==L&&void 0!==L&&null!==(m=L.dateRange)&&void 0!==m&&m.from&&null!==(g=L.dateRange)&&void 0!==g&&g.to)return yp(null===j||void 0===j||null===(_=j.dateRange)||void 0===_?void 0:_.from,null===j||void 0===j||null===(x=j.dateRange)||void 0===x?void 0:x.to,null===L||void 0===L||null===(E=L.dateRange)||void 0===E?void 0:E.from,null===L||void 0===L||null===(k=L.dateRange)||void 0===k?void 0:k.to,n);if(null!==L&&void 0!==L&&null!==(y=L.dateRange)&&void 0!==y&&y.from)return mp(null===(S=j.dateRange)||void 0===S?void 0:S.to,null===(A=L.dateRange)||void 0===A?void 0:A.from,n);if(null!==L&&void 0!==L&&null!==(v=L.dateRange)&&void 0!==v&&v.to)return gp(null===(C=j.dateRange)||void 0===C?void 0:C.from,null===(D=L.dateRange)||void 0===D?void 0:D.to,n)}if(null!==j&&void 0!==j&&null!==(o=j.dateRange)&&void 0!==o&&o.from){var M,F,O,T;if(null!==L&&void 0!==L&&L.date)return gp(null===(F=j.dateRange)||void 0===F?void 0:F.from,L.date,n);if(null!==L&&void 0!==L&&null!==(M=L.dateRange)&&void 0!==M&&M.to)return gp(null===(O=j.dateRange)||void 0===O?void 0:O.from,null===(T=L.dateRange)||void 0===T?void 0:T.to,n)}if(null!==j&&void 0!==j&&null!==(a=j.dateRange)&&void 0!==a&&a.to){var N,P,I,R;if(null!==L&&void 0!==L&&L.date)return mp(null===j||void 0===j||null===(P=j.dateRange)||void 0===P?void 0:P.to,L.date,n);if(null!==L&&void 0!==L&&null!==(N=L.dateRange)&&void 0!==N&&N.from)return mp(null===j||void 0===j||null===(I=j.dateRange)||void 0===I?void 0:I.to,null===(R=L.dateRange)||void 0===R?void 0:R.from,n)}}}}var _p=n(1942),xp=n.n(_p);function Ep(e){return"/"===e.charAt(0)}function kp(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}const Sp=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&Ep(e),a=t&&Ep(t),s=o||a;if(e&&Ep(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var u=i[i.length-1];n="."===u||".."===u||""===u}else n=!1;for(var l=0,c=i.length;c>=0;c--){var f=i[c];"."===f?kp(i,c):".."===f?(kp(i,c),l++):l&&(kp(i,c),l--)}if(!s)for(;l--;l)i.unshift("..");!s||""===i[0]||i[0]&&Ep(i[0])||i.unshift("");var d=i.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function Ap(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const Cp=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=Ap(t),i=Ap(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var Dp="Invariant failed";function Mp(e,t){if(!e)throw new Error(Dp)}function Fp(e){return"/"===e.charAt(0)?e:"/"+e}function Op(e){return"/"===e.charAt(0)?e.substr(1):e}function Tp(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function Np(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function Pp(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function Ip(e,t,n,r){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=ri({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=Sp(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function Rp(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var jp=!("undefined"===typeof window||!window.document||!window.document.createElement);function Lp(e,t){t(window.confirm(e))}var Bp="popstate",zp="hashchange";function Up(){try{return window.history.state||{}}catch(e){return{}}}function Hp(e){void 0===e&&{},jp||Mp(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,o=i.forceRefresh,a=void 0!==o&&o,s=i.getUserConfirmation,u=void 0===s?Lp:s,l=i.keyLength,c=void 0===l?6:l,f=e.basename?Np(Fp(e.basename)):"";function d(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return f&&Tp(o,f),Ip(o,r,n)}function h(){return Math.random().toString(36).substr(2,c)}var p=Rp();function m(e){ri(C,e),C.length=t.length,p.notifyListeners(C.location,C.action)}function g(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||b(d(e.state))}function y(){b(d(Up()))}var v=!1;function b(e){if(v)m();else{p.confirmTransitionTo(e,"POP",u,(function(t){t?m({action:"POP",location:e}):function(e){var t=C.location,n=_.indexOf(t.key);-1===n&&0;var r=_.indexOf(e.key);-1===r&&0;var i=n-r;i&&E(i)}(e)}))}}var w=d(Up()),_=[w.key];function x(e){return f+Pp(e)}function E(e){t.go(e)}var k=0;function S(e){1===(k+=e)&&1===e?(window.addEventListener(Bp,g),r&&window.addEventListener(zp,y)):0===k&&(window.removeEventListener(Bp,g),r&&window.removeEventListener(zp,y))}var A=!1;var C={length:t.length,action:"POP",location:w,createHref:x,push:function(e,r){var i="PUSH",o=Ip(e,r,h(),C.location);p.confirmTransitionTo(o,i,u,(function(e){if(e){var r=x(o),s=o.key,u=o.state;if(n)if(t.pushState({key:s,state:u},null,r),a)window.location.href=r;else{var l=_.indexOf(C.location.key),c=_.slice(0,l+1);c.push(o.key),m({action:i,location:o})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",o=Ip(e,r,h(),C.location);p.confirmTransitionTo(o,i,u,(function(e){if(e){var r=x(o),s=o.key,u=o.state;if(n)if(t.replaceState({key:s,state:u},null,r),a)window.location.replace(r);else{var l=_.indexOf(C.location.key);-1!==l&&(_[l]=o.key),m({action:i,location:o})}else window.location.replace(r)}}))},go:E,goBack:function(){E(-1)},goForward:function(){E(1)},block:function(e){void 0===e&&!1;var t=p.setPrompt(e);return A||(S(1),!0),function(){return A&&S(-1),t()}},listen:function(e){var t=p.appendListener(e);return S(1),function(){S(-1),t()}}};return C}var qp="hashchange",Gp={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Op(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:Op,decodePath:Fp},slash:{encodePath:Fp,decodePath:Fp}};function Wp(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function Vp(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function Qp(e){window.location.replace(Wp(window.location.href)+"#"+e)}function $p(e){void 0===e&&(e={}),jp||Mp(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?Lp:r,o=n.hashType,a=void 0===o?"slash":o,s=e.basename?Np(Fp(e.basename)):"",u=Gp[a],l=u.encodePath,c=u.decodePath;function f(){var e=c(Vp());return s&&(e=Tp(e,s)),Ip(e)}var d=Rp();function h(e){ri(S,e),S.length=t.length,d.notifyListeners(S.location,S.action)}var p=!1,m=null;function g(){var e,t,n=Vp(),r=l(n);if(n!==r)Qp(r);else{var o=f(),a=S.location;if(!p&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(m===Pp(o))return;m=null,function(e){if(p)p=!1,h();else{var t="POP";d.confirmTransitionTo(e,t,i,(function(n){n?h({action:t,location:e}):function(e){var t=S.location,n=w.lastIndexOf(Pp(t));-1===n&&(n=0);var r=w.lastIndexOf(Pp(e));-1===r&&(r=0);var i=n-r;i&&(p=!0,_(i))}(e)}))}}(o)}}var y=Vp(),v=l(y);y!==v&&Qp(v);var b=f(),w=[Pp(b)];function _(e){t.go(e)}var x=0;function E(e){1===(x+=e)&&1===e?window.addEventListener(qp,g):0===x&&window.removeEventListener(qp,g)}var k=!1;var S={length:t.length,action:"POP",location:b,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=Wp(window.location.href)),n+"#"+l(s+Pp(e))},push:function(e,t){var n="PUSH",r=Ip(e,void 0,void 0,S.location);d.confirmTransitionTo(r,n,i,(function(e){if(e){var t=Pp(r),i=l(s+t);if(Vp()!==i){m=t,function(e){window.location.hash=e}(i);var o=w.lastIndexOf(Pp(S.location)),a=w.slice(0,o+1);a.push(t),w=a,h({action:n,location:r})}else h()}}))},replace:function(e,t){var n="REPLACE",r=Ip(e,void 0,void 0,S.location);d.confirmTransitionTo(r,n,i,(function(e){if(e){var t=Pp(r),i=l(s+t);Vp()!==i&&(m=t,Qp(i));var o=w.indexOf(Pp(S.location));-1!==o&&(w[o]=t),h({action:n,location:r})}}))},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},block:function(e){void 0===e&&(e=!1);var t=d.setPrompt(e);return k||(E(1),k=!0),function(){return k&&(k=!1,E(-1)),t()}},listen:function(e){var t=d.appendListener(e);return E(1),function(){E(-1),t()}}};return S}function Kp(e,t,n){return Math.min(Math.max(e,t),n)}var Yp=n(7960),Xp=n.n(Yp),Zp=(n(4390),1073741823),Jp="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};var em=i.createContext||function(e,t){var n,r,o="__create-react-context-"+function(){var e="__global_unique_id__";return Jp[e]=(Jp[e]||0)+1}()+"__",a=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}oi(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[o]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?n=0:(n="function"===typeof t?t(r,i):Zp,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(i.Component);a.childContextTypes=((n={})[o]=xp().object.isRequired,n);var s=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}oi(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?Zp:t},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?Zp:e},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(i.Component);return s.contextTypes=((r={})[o]=xp().object,r),{Provider:a,Consumer:s}},tm=function(e){var t=em();return t.displayName=e,t},nm=tm("Router-History"),rm=tm("Router"),im=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}oi(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return i.createElement(rm.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.createElement(nm.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.Component);i.Component;var om=function(e){function t(){return e.apply(this,arguments)||this}oi(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.Component);var am={},sm=0;function um(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(am[e])return am[e];var t=Xp().compile(e);return sm<1e4&&(am[e]=t,sm++),t}(e)(t,{pretty:!0})}function lm(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i.createElement(rm.Consumer,null,(function(e){e||Mp(!1);var r=e.history,a=e.staticContext,s=o?r.push:r.replace,u=Ip(t?"string"===typeof n?um(n,t.params):ri({},n,{pathname:um(n.pathname,t.params)}):n);return a?(s(u),null):i.createElement(om,{onMount:function(){s(u)},onUpdate:function(e,t){var n,r,i=Ip(t.to);n=i,r=ri({},u,{key:i.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&Cp(n.state,r.state)||s(u)},to:n})}))}var cm={},fm=0;function dm(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,u=n.sensitive,l=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=cm[n]||(cm[n]={});if(r[e])return r[e];var i=[],o={regexp:Xp()(e,i,t),keys:i};return fm<1e4&&(r[e]=o,fm++),o}(n,{end:o,strict:s,sensitive:l}),i=r.regexp,a=r.keys,u=i.exec(e);if(!u)return null;var c=u[0],f=u.slice(1),d=e===c;return o&&!d?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var hm=function(e){function t(){return e.apply(this,arguments)||this}return oi(t,e),t.prototype.render=function(){var e=this;return i.createElement(rm.Consumer,null,(function(t){t||Mp(!1);var n=e.props.location||t.location,r=ri({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?dm(n.pathname,e.props):t.match}),o=e.props,a=o.children,s=o.component,u=o.render;return Array.isArray(a)&&function(e){return 0===i.Children.count(e)}(a)&&(a=null),i.createElement(rm.Provider,{value:r},r.match?a?"function"===typeof a?a(r):a:s?i.createElement(s,r):u?u(r):null:"function"===typeof a?a(r):null)}))},t}(i.Component);function pm(e){return"/"===e.charAt(0)?e:"/"+e}function mm(e,t){if(!e)return t;var n=pm(e);return 0!==t.pathname.indexOf(n)?t:ri({},t,{pathname:t.pathname.substr(n.length)})}function gm(e){return"string"===typeof e?e:Pp(e)}function ym(e){return function(){Mp(!1)}}function vm(){}i.Component;var bm=function(e){function t(){return e.apply(this,arguments)||this}return oi(t,e),t.prototype.render=function(){var e=this;return i.createElement(rm.Consumer,null,(function(t){t||Mp(!1);var n,r,o=e.props.location||t.location;return i.Children.forEach(e.props.children,(function(e){if(null==r&&i.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?dm(o.pathname,ri({},e.props,{path:a})):t.match}})),r?i.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(i.Component);var wm=i.useContext;function _m(){return wm(nm)}function xm(){return wm(rm).location}i.Component;var Em=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=$p(t.props),t}return oi(t,e),t.prototype.render=function(){return i.createElement(im,{history:this.history,children:this.props.children})},t}(i.Component);var km=function(e,t){return"function"===typeof e?e(t):e},Sm=function(e,t){return"string"===typeof e?Ip(e,null,null,t):e},Am=function(e){return e},Cm=i.forwardRef;"undefined"===typeof Cm&&(Cm=Am);var Dm=Cm((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,a=Dr(e,["innerRef","navigate","onClick"]),s=a.target,u=ri({},a,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=Am!==Cm&&t||n,i.createElement("a",u)}));var Mm=Cm((function(e,t){var n=e.component,r=void 0===n?Dm:n,o=e.replace,a=e.to,s=e.innerRef,u=Dr(e,["component","replace","to","innerRef"]);return i.createElement(rm.Consumer,null,(function(e){e||Mp(!1);var n=e.history,l=Sm(km(a,e.location),e.location),c=l?n.createHref(l):"",f=ri({},u,{href:c,navigate:function(){var t=km(a,e.location),r=Pp(e.location)===Pp(Sm(t));(o||r?n.replace:n.push)(t)}});return Am!==Cm?f.ref=t||s:f.innerRef=s,i.createElement(r,f)}))})),Fm=function(e){return e},Om=i.forwardRef;"undefined"===typeof Om&&(Om=Fm);Om((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,o=e.activeClassName,a=void 0===o?"active":o,s=e.activeStyle,u=e.className,l=e.exact,c=e.isActive,f=e.location,d=e.sensitive,h=e.strict,p=e.style,m=e.to,g=e.innerRef,y=Dr(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i.createElement(rm.Consumer,null,(function(e){e||Mp(!1);var n=f||e.location,o=Sm(km(m,n),n),v=o.pathname,b=v&&v.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),w=b?dm(n.pathname,{path:b,exact:l,sensitive:d,strict:h}):null,_=!!(c?c(w,n):w),x="function"===typeof u?u(_):u,E="function"===typeof p?p(_):p;_&&(x=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(x,a),E=ri({},E,s));var k=ri({"aria-current":_&&r||null,className:x,style:E,to:o},y);return Fm!==Om?k.ref=t||g:k.innerRef=g,i.createElement(Mm,k)}))}));const Tm=new Map([["ADOP","Adoption"],["BAPM","Baptism"],["BIRT","Birth"],["BURI","Burial"],["CENS","Census"],["CHR","Christening"],["CREM","Cremation"],["DEAT","Death"],["EDUC","Education"],["EMAIL","E-mail"],["EMIG","Emigration"],["EVEN","Event"],["FACT","Fact"],["IMMI","Immigration"],["MARR","Marriage"],["DIV","Divorce"],["MILT","Military services"],["NATU","Naturalization"],["OCCU","Occupation"],["TITL","Title"],["WWW","WWW"],["birth","Birth name"],["married","Married name"],["maiden","Maiden name"],["immigrant","Immigrant name"],["aka","Also known as"]]);function Nm(e){const t=e.tag.replace(/_/g,"");return(0,Nh.jsx)(Th,{id:"gedcom.".concat(t),defaultMessage:Tm.get(t)||t})}function Pm(e){var t=e.children,n=e.className,r=e.content,o=Bu("header",n),a=ml(Pm,e),s=hl(Pm,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}Pm.handledProps=["as","children","className","content"],Pm.propTypes={},Pm.create=Cl(Pm,(function(e){return{content:e}}));const Im=Pm;function Rm(e){var t=e.children,n=e.className,r=e.content,o=Bu("description",n),a=ml(Rm,e),s=hl(Rm,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}Rm.handledProps=["as","children","className","content"],Rm.propTypes={},Rm.create=Cl(Rm,(function(e){return{content:e}}));const jm=Rm;function Lm(e){var t=e.children,n=e.className,r=e.content,o=Bu("extra",n),a=ml(Lm,e),s=hl(Lm,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}Lm.handledProps=["as","children","className","content"],Lm.propTypes={},Lm.create=Cl(Lm,(function(e){return{content:e}}));const Bm=Lm;function zm(e){var t=e.children,n=e.className,r=e.content,o=Bu("meta",n),a=ml(zm,e),s=hl(zm,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}zm.handledProps=["as","children","className","content"],zm.propTypes={},zm.create=Cl(zm,(function(e){return{content:e}}));const Um=zm;function Hm(e){var t=e.children,n=e.className,r=e.content,o=e.description,a=e.extra,s=e.header,u=e.meta,l=e.verticalAlign,c=Bu(fl(l),"content",n),f=ml(Hm,e),d=hl(Hm,e);return pl(t)?i.createElement(d,ri({},f,{className:c}),Im.create(s,{autoGenerateKey:!1}),Um.create(u,{autoGenerateKey:!1}),jm.create(o,{autoGenerateKey:!1}),Bm.create(a,{autoGenerateKey:!1}),r):i.createElement(d,ri({},f,{className:c}),t)}Hm.handledProps=["as","children","className","content","description","extra","header","meta","verticalAlign"],Hm.propTypes={};const qm=Hm;function Gm(e){var t=e.children,n=e.className,r=e.content,o=e.divided,a=e.items,s=e.link,u=e.relaxed,l=e.unstackable,c=Bu("ui",al(o,"divided"),al(s,"link"),al(l,"unstackable"),ul(u,"relaxed"),"items",n),f=ml(Gm,e),d=hl(Gm,e);if(!pl(t))return i.createElement(d,ri({},f,{className:c}),t);if(!pl(r))return i.createElement(d,ri({},f,{className:c}),r);var h=Gl(a,(function(e){var t=e.childKey,n=Dr(e,["childKey"]),r=null!=t?t:[n.content,n.description,n.header,n.meta].join("-");return i.createElement(Km,ri({},n,{key:r}))}));return i.createElement(d,ri({},f,{className:c}),h)}Gm.handledProps=["as","children","className","content","divided","items","link","relaxed","unstackable"],Gm.propTypes={};const Wm=Gm;function Vm(e){var t=e.size,n=ml(Vm,e);return i.createElement(oc,ri({},n,{size:t,ui:!!t,wrapped:!0}))}Vm.handledProps=["size"],Vm.propTypes={},Vm.create=Cl(Vm,(function(e){return{src:e}}));const Qm=Vm;function $m(e){var t=e.children,n=e.className,r=e.content,o=e.description,a=e.extra,s=e.header,u=e.image,l=e.meta,c=Bu("item",n),f=ml($m,e),d=hl($m,e);return pl(t)?i.createElement(d,ri({},f,{className:c}),Qm.create(u,{autoGenerateKey:!1}),i.createElement(qm,{content:r,description:o,extra:a,header:s,meta:l})):i.createElement(d,ri({},f,{className:c}),t)}$m.handledProps=["as","children","className","content","description","extra","header","image","meta"],$m.Content=qm,$m.Description=jm,$m.Extra=Bm,$m.Group=Wm,$m.Header=Im,$m.Image=Qm,$m.Meta=Um,$m.propTypes={};const Km=$m;function Ym(e){var t=e.children,n=e.className,r=e.content,o=Bu(n,"description"),a=ml(Ym,e),s=hl(Ym,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}Ym.handledProps=["as","children","className","content"],Ym.propTypes={},Ym.create=Cl(Ym,(function(e){return{content:e}}));const Xm=Ym;function Zm(e){var t=e.children,n=e.className,r=e.content,o=Bu("header",n),a=ml(Zm,e),s=hl(Zm,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}Zm.handledProps=["as","children","className","content"],Zm.propTypes={},Zm.create=Cl(Zm,(function(e){return{content:e}}));const Jm=Zm;function eg(e){var t=e.children,n=e.className,r=e.content,o=e.description,a=e.floated,s=e.header,u=e.verticalAlign,l=Bu(sl(a,"floated"),fl(u),"content",n),c=ml(eg,e),f=hl(eg,e);return pl(t)?i.createElement(f,ri({},c,{className:l}),Jm.create(s),Xm.create(o),r):i.createElement(f,ri({},c,{className:l}),t)}eg.handledProps=["as","children","className","content","description","floated","header","verticalAlign"],eg.propTypes={},eg.create=Cl(eg,(function(e){return{content:e}}));const tg=eg;function ng(e){var t=e.className,n=e.verticalAlign,r=Bu(fl(n),t),o=ml(ng,e);return i.createElement(Rl,ri({},o,{className:r}))}ng.handledProps=["className","verticalAlign"],ng.propTypes={},ng.create=Cl(ng,(function(e){return{name:e}}));const rg=ng;var ig=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleClick=function(e){t.props.disabled||Mu(t.props,"onClick",e,t.props)},t}return oi(t,e),t.prototype.render=function(){var e=this.props,n=e.active,r=e.children,o=e.className,a=e.content,s=e.description,u=e.disabled,l=e.header,c=e.icon,f=e.image,d=e.value,h=hl(t,this.props),p=Bu(al(n,"active"),al(u,"disabled"),al("li"!==h,"item"),o),m=ml(t,this.props),g="li"===h?{value:d}:{"data-value":d};if(!pl(r))return i.createElement(h,ri({},g,{role:"listitem",className:p,onClick:this.handleClick},m),r);var y=rg.create(c,{autoGenerateKey:!1}),v=oc.create(f,{autoGenerateKey:!1});if(!(0,i.isValidElement)(a)&&Ci(a))return i.createElement(h,ri({},g,{role:"listitem",className:p,onClick:this.handleClick},m),y||v,tg.create(a,{autoGenerateKey:!1,defaultProps:{header:l,description:s}}));var b=Jm.create(l,{autoGenerateKey:!1}),w=Xm.create(s,{autoGenerateKey:!1});return y||v?i.createElement(h,ri({},g,{role:"listitem",className:p,onClick:this.handleClick},m),y||v,(a||b||w)&&i.createElement(tg,null,b,w,a)):i.createElement(h,ri({},g,{role:"listitem",className:p,onClick:this.handleClick},m),b,w,a)},t}(i.Component);ig.handledProps=["active","as","children","className","content","description","disabled","header","icon","image","onClick","value"],ig.propTypes={},ig.create=Cl(ig,(function(e){return{content:e}}));const og=ig;function ag(e){var t=e.children,n=e.className,r=e.content,o=ml(ag,e),a=hl(ag,e),s=Bu(al("ul"!==a&&"ol"!==a,"list"),n);return i.createElement(a,ri({},o,{className:s}),pl(t)?r:t)}ag.handledProps=["as","children","className","content"],ag.propTypes={};const sg=ag;var ug=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleItemOverrides=function(e){return{onClick:function(n,r){Mu(e,"onClick",n,r),Mu(t.props,"onItemClick",n,r)}}},t}return oi(t,e),t.prototype.render=function(){var e=this,n=this.props,r=n.animated,o=n.bulleted,a=n.celled,s=n.children,u=n.className,l=n.content,c=n.divided,f=n.floated,d=n.horizontal,h=n.inverted,p=n.items,m=n.link,g=n.ordered,y=n.relaxed,v=n.selection,b=n.size,w=n.verticalAlign,_=Bu("ui",b,al(r,"animated"),al(o,"bulleted"),al(a,"celled"),al(c,"divided"),al(d,"horizontal"),al(h,"inverted"),al(m,"link"),al(g,"ordered"),al(v,"selection"),ul(y,"relaxed"),sl(f,"floated"),fl(w),"list",u),x=ml(t,this.props),E=hl(t,this.props);return pl(s)?pl(l)?i.createElement(E,ri({role:"list",className:_},x),Gl(p,(function(t){return og.create(t,{overrideProps:e.handleItemOverrides})}))):i.createElement(E,ri({role:"list",className:_},x),l):i.createElement(E,ri({role:"list",className:_},x),s)},t}(i.Component);ug.handledProps=["animated","as","bulleted","celled","children","className","content","divided","floated","horizontal","inverted","items","link","onItemClick","ordered","relaxed","selection","size","verticalAlign"],ug.propTypes={},ug.Content=tg,ug.Description=Xm,ug.Header=Jm,ug.Icon=rg,ug.Item=og,ug.List=sg;const lg=ug;function cg(e){var t=e.children,n=e.className,r=e.content,o=Bu("header",n),a=ml(cg,e),s=hl(cg,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}cg.handledProps=["as","children","className","content"],cg.propTypes={};const fg=cg;const dg=function(e){return function(t){return null==e?void 0:e[t]}}({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"});var hg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,pg=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const mg=function(e){return(e=Io(e))&&e.replace(hg,dg).replace(pg,"")};var gg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;const yg=function(e){return e.match(gg)||[]};var vg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;const bg=function(e){return vg.test(e)};var wg="\\ud800-\\udfff",_g="\\u2700-\\u27bf",xg="a-z\\xdf-\\xf6\\xf8-\\xff",Eg="A-Z\\xc0-\\xd6\\xd8-\\xde",kg="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Sg="["+kg+"]",Ag="\\d+",Cg="["+_g+"]",Dg="["+xg+"]",Mg="[^"+wg+kg+Ag+_g+xg+Eg+"]",Fg="(?:\\ud83c[\\udde6-\\uddff]){2}",Og="[\\ud800-\\udbff][\\udc00-\\udfff]",Tg="["+Eg+"]",Ng="(?:"+Dg+"|"+Mg+")",Pg="(?:"+Tg+"|"+Mg+")",Ig="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Rg="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",jg="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Lg="[\\ufe0e\\ufe0f]?",Bg=Lg+jg+("(?:\\u200d(?:"+["[^"+wg+"]",Fg,Og].join("|")+")"+Lg+jg+")*"),zg="(?:"+[Cg,Fg,Og].join("|")+")"+Bg,Ug=RegExp([Tg+"?"+Dg+"+"+Ig+"(?="+[Sg,Tg,"$"].join("|")+")",Pg+"+"+Rg+"(?="+[Sg,Tg+Ng,"$"].join("|")+")",Tg+"?"+Ng+"+"+Ig,Tg+"+"+Rg,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ag,zg].join("|"),"g");const Hg=function(e){return e.match(Ug)||[]};const qg=function(e,t,n){return e=Io(e),void 0===(t=n?void 0:t)?bg(e)?Hg(e):yg(e):e.match(t)||[]};var Gg=RegExp("['\u2019]","g");const Wg=function(e){return function(t){return ls(qg(mg(t).replace(Gg,"")),e,"")}};const Vg=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Au(e,t,n)};var Qg=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const $g=function(e){return Qg.test(e)};const Kg=function(e){return e.split("")};var Yg="\\ud800-\\udfff",Xg="["+Yg+"]",Zg="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Jg="\\ud83c[\\udffb-\\udfff]",ey="[^"+Yg+"]",ty="(?:\\ud83c[\\udde6-\\uddff]){2}",ny="[\\ud800-\\udbff][\\udc00-\\udfff]",ry="(?:"+Zg+"|"+Jg+")"+"?",iy="[\\ufe0e\\ufe0f]?",oy=iy+ry+("(?:\\u200d(?:"+[ey,ty,ny].join("|")+")"+iy+ry+")*"),ay="(?:"+[ey+Zg+"?",Zg,ty,ny,Xg].join("|")+")",sy=RegExp(Jg+"(?="+Jg+")|"+ay+oy,"g");const uy=function(e){return e.match(sy)||[]};const ly=function(e){return $g(e)?uy(e):Kg(e)};const cy=function(e){return function(t){t=Io(t);var n=$g(t)?ly(t):void 0,r=n?n[0]:t.charAt(0),i=n?Vg(n,1).join(""):t.slice(1);return r[e]()+i}}("toUpperCase");const fy=Wg((function(e,t,n){return e+(n?" ":"")+cy(t)}));var dy=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleClick=function(e){t.props.disabled||Mu(t.props,"onClick",e,t.props)},t}return oi(t,e),t.prototype.render=function(){var e=this.props,n=e.active,r=e.children,o=e.className,a=e.color,s=e.content,u=e.disabled,l=e.fitted,c=e.header,f=e.icon,d=e.link,h=e.name,p=e.onClick,m=e.position,g=Bu(a,m,al(n,"active"),al(u,"disabled"),al(!0===f||f&&!(h||s),"icon"),al(c,"header"),al(d,"link"),ul(l,"fitted"),"item",o),y=hl(t,this.props,(function(){if(p)return"a"})),v=ml(t,this.props);return pl(r)?i.createElement(y,ri({},v,{className:g,onClick:this.handleClick}),Rl.create(f,{autoGenerateKey:!1}),pl(s)?fy(h):s):i.createElement(y,ri({},v,{className:g,onClick:this.handleClick}),r)},t}(i.Component);function hy(e){var t=e.children,n=e.className,r=e.content,o=e.position,a=Bu(o,"menu",n),s=ml(hy,e),u=hl(hy,e);return i.createElement(u,ri({},s,{className:a}),pl(t)?r:t)}dy.handledProps=["active","as","children","className","color","content","disabled","fitted","header","icon","index","link","name","onClick","position"],dy.propTypes={},dy.create=Cl(dy,(function(e){return{content:e,name:e}})),hy.handledProps=["as","children","className","content","position"],hy.propTypes={};const py=hy;var my=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleItemOverrides=function(e){return{onClick:function(n,r){var i=r.index;t.setState({activeIndex:i}),Mu(e,"onClick",n,r),Mu(t.props,"onItemClick",n,r)}}},t}oi(t,e);var n=t.prototype;return n.renderItems=function(){var e=this,t=this.props.items,n=this.state.activeIndex;return Gl(t,(function(t,r){return dy.create(t,{defaultProps:{active:parseInt(n,10)===r,index:r},overrideProps:e.handleItemOverrides})}))},n.render=function(){var e=this.props,n=e.attached,r=e.borderless,o=e.children,a=e.className,s=e.color,u=e.compact,l=e.fixed,c=e.floated,f=e.fluid,d=e.icon,h=e.inverted,p=e.pagination,m=e.pointing,g=e.secondary,y=e.size,v=e.stackable,b=e.tabular,w=e.text,_=e.vertical,x=e.widths,E=Bu("ui",s,y,al(r,"borderless"),al(u,"compact"),al(f,"fluid"),al(h,"inverted"),al(p,"pagination"),al(m,"pointing"),al(g,"secondary"),al(v,"stackable"),al(w,"text"),al(_,"vertical"),ul(n,"attached"),ul(c,"floated"),ul(d,"icon"),ul(b,"tabular"),sl(l,"fixed"),dl(x,"item"),a,"menu"),k=ml(t,this.props),S=hl(t,this.props);return i.createElement(S,ri({},k,{className:E}),pl(o)?this.renderItems():o)},t}(yl);my.handledProps=["activeIndex","as","attached","borderless","children","className","color","compact","defaultActiveIndex","fixed","floated","fluid","icon","inverted","items","onItemClick","pagination","pointing","secondary","size","stackable","tabular","text","vertical","widths"],my.propTypes={},my.autoControlledProps=["activeIndex"],my.Header=fg,my.Item=dy,my.Menu=py,my.create=Cl(my,(function(e){return{items:e}}));const gy=my;const yy=function(e){return _i(e)&&1===e.nodeType&&!Ci(e)};var vy=i.createContext();i.createContext();var by=function(e,t){if("function"===typeof e)return function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}}(e,t);null!=e&&(e.current=t)},wy=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},_y="undefined"!==typeof window&&window.document&&window.document.createElement?i.useLayoutEffect:i.useEffect;function xy(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ey(e){return e instanceof xy(e).Element||e instanceof Element}function ky(e){return e instanceof xy(e).HTMLElement||e instanceof HTMLElement}function Sy(e){return"undefined"!==typeof ShadowRoot&&(e instanceof xy(e).ShadowRoot||e instanceof ShadowRoot)}var Ay=Math.max,Cy=Math.min,Dy=Math.round;function My(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Fy(){return!/^((?!chrome|android).)*safari/i.test(My())}function Oy(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ky(e)&&(i=e.offsetWidth>0&&Dy(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Dy(r.height)/e.offsetHeight||1);var a=(Ey(e)?xy(e):window).visualViewport,s=!Fy()&&n,u=(r.left+(s&&a?a.offsetLeft:0))/i,l=(r.top+(s&&a?a.offsetTop:0))/o,c=r.width/i,f=r.height/o;return{width:c,height:f,top:l,right:u+c,bottom:l+f,left:u,x:u,y:l}}function Ty(e){var t=xy(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ny(e){return e?(e.nodeName||"").toLowerCase():null}function Py(e){return((Ey(e)?e.ownerDocument:e.document)||window.document).documentElement}function Iy(e){return Oy(Py(e)).left+Ty(e).scrollLeft}function Ry(e){return xy(e).getComputedStyle(e)}function jy(e){var t=Ry(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Ly(e,t,n){void 0===n&&(n=!1);var r=ky(t),i=ky(t)&&function(e){var t=e.getBoundingClientRect(),n=Dy(t.width)/e.offsetWidth||1,r=Dy(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=Py(t),a=Oy(e,i,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ny(t)||jy(o))&&(s=function(e){return e!==xy(e)&&ky(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Ty(e);var t}(t)),ky(t)?((u=Oy(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Iy(o))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function By(e){var t=Oy(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zy(e){return"html"===Ny(e)?e:e.assignedSlot||e.parentNode||(Sy(e)?e.host:null)||Py(e)}function Uy(e){return["html","body","#document"].indexOf(Ny(e))>=0?e.ownerDocument.body:ky(e)&&jy(e)?e:Uy(zy(e))}function Hy(e,t){var n;void 0===t&&(t=[]);var r=Uy(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=xy(r),a=i?[o].concat(o.visualViewport||[],jy(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Hy(zy(a)))}function qy(e){return["table","td","th"].indexOf(Ny(e))>=0}function Gy(e){return ky(e)&&"fixed"!==Ry(e).position?e.offsetParent:null}function Wy(e){for(var t=xy(e),n=Gy(e);n&&qy(n)&&"static"===Ry(n).position;)n=Gy(n);return n&&("html"===Ny(n)||"body"===Ny(n)&&"static"===Ry(n).position)?t:n||function(e){var t=/firefox/i.test(My());if(/Trident/i.test(My())&&ky(e)&&"fixed"===Ry(e).position)return null;var n=zy(e);for(Sy(n)&&(n=n.host);ky(n)&&["html","body"].indexOf(Ny(n))<0;){var r=Ry(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Vy="top",Qy="bottom",$y="right",Ky="left",Yy="auto",Xy=[Vy,Qy,$y,Ky],Zy="start",Jy="end",ev="viewport",tv="popper",nv=Xy.reduce((function(e,t){return e.concat([t+"-"+Zy,t+"-"+Jy])}),[]),rv=[].concat(Xy,[Yy]).reduce((function(e,t){return e.concat([t,t+"-"+Zy,t+"-"+Jy])}),[]),iv=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ov(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function av(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var sv={placement:"bottom",modifiers:[],strategy:"absolute"};function uv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function lv(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?sv:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},sv,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,u={state:i,setOptions:function(n){var s="function"===typeof n?n(i.options):n;l(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:Ey(e)?Hy(e):e.contextElement?Hy(e.contextElement):[],popper:Hy(t)};var c=function(e){var t=ov(e);return iv.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=c.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:i,name:t,instance:u,options:r}),l=function(){};a.push(s||l)}})),u.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(uv(t,n)){i.rects={reference:Ly(t,Wy(n),"fixed"===i.options.strategy),popper:By(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,l=o.options,c=void 0===l?{}:l,f=o.name;"function"===typeof a&&(i=a({state:i,options:c,name:f,instance:u})||i)}else i.reset=!1,r=-1}}},update:av((function(){return new Promise((function(e){u.forceUpdate(),e(i)}))})),destroy:function(){l(),s=!0}};if(!uv(e,t))return u;function l(){a.forEach((function(e){return e()})),a=[]}return u.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var cv={passive:!0};function fv(e){return e.split("-")[0]}function dv(e){return e.split("-")[1]}function hv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pv(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?fv(i):null,a=i?dv(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case Vy:t={x:s,y:n.y-r.height};break;case Qy:t={x:s,y:n.y+n.height};break;case $y:t={x:n.x+n.width,y:u};break;case Ky:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var l=o?hv(o):null;if(null!=l){var c="y"===l?"height":"width";switch(a){case Zy:t[l]=t[l]-(n[c]/2-r[c]/2);break;case Jy:t[l]=t[l]+(n[c]/2-r[c]/2)}}return t}var mv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gv(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=a.x,h=void 0===d?0:d,p=a.y,m=void 0===p?0:p,g="function"===typeof c?c({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=Ky,w=Vy,_=window;if(l){var x=Wy(n),E="clientHeight",k="clientWidth";if(x===xy(n)&&"static"!==Ry(x=Py(n)).position&&"absolute"===s&&(E="scrollHeight",k="scrollWidth"),i===Vy||(i===Ky||i===$y)&&o===Jy)w=Qy,m-=(f&&x===_&&_.visualViewport?_.visualViewport.height:x[E])-r.height,m*=u?1:-1;if(i===Ky||(i===Vy||i===Qy)&&o===Jy)b=$y,h-=(f&&x===_&&_.visualViewport?_.visualViewport.width:x[k])-r.width,h*=u?1:-1}var S,A=Object.assign({position:s},l&&mv),C=!0===c?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Dy(n*i)/i||0,y:Dy(r*i)/i||0}}({x:h,y:m},xy(n)):{x:h,y:m};return h=C.x,m=C.y,u?Object.assign({},A,((S={})[w]=v?"0":"",S[b]=y?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",S)):Object.assign({},A,((t={})[w]=v?m+"px":"",t[b]=y?h+"px":"",t.transform="",t))}var yv={left:"right",right:"left",bottom:"top",top:"bottom"};function vv(e){return e.replace(/left|right|bottom|top/g,(function(e){return yv[e]}))}var bv={start:"end",end:"start"};function wv(e){return e.replace(/start|end/g,(function(e){return bv[e]}))}function _v(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Sy(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function xv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ev(e,t,n){return t===ev?xv(function(e,t){var n=xy(e),r=Py(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;var l=Fy();(l||!l&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s+Iy(e),y:u}}(e,n)):Ey(t)?function(e,t){var n=Oy(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):xv(function(e){var t,n=Py(e),r=Ty(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=Ay(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Ay(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Iy(e),u=-r.scrollTop;return"rtl"===Ry(i||n).direction&&(s+=Ay(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}(Py(e)))}function kv(e,t,n,r){var i="clippingParents"===t?function(e){var t=Hy(zy(e)),n=["absolute","fixed"].indexOf(Ry(e).position)>=0&&ky(e)?Wy(e):e;return Ey(n)?t.filter((function(e){return Ey(e)&&_v(e,n)&&"body"!==Ny(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=Ev(e,n,r);return t.top=Ay(i.top,t.top),t.right=Cy(i.right,t.right),t.bottom=Cy(i.bottom,t.bottom),t.left=Ay(i.left,t.left),t}),Ev(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Sv(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Av(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Cv(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,u=void 0===s?"clippingParents":s,l=n.rootBoundary,c=void 0===l?ev:l,f=n.elementContext,d=void 0===f?tv:f,h=n.altBoundary,p=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,y=Sv("number"!==typeof g?g:Av(g,Xy)),v=d===tv?"reference":tv,b=e.rects.popper,w=e.elements[p?v:d],_=kv(Ey(w)?w:w.contextElement||Py(e.elements.popper),u,c,a),x=Oy(e.elements.reference),E=pv({reference:x,element:b,strategy:"absolute",placement:i}),k=xv(Object.assign({},b,E)),S=d===tv?k:x,A={top:_.top-S.top+y.top,bottom:S.bottom-_.bottom+y.bottom,left:_.left-S.left+y.left,right:S.right-_.right+y.right},C=e.modifiersData.offset;if(d===tv&&C){var D=C[i];Object.keys(A).forEach((function(e){var t=[$y,Qy].indexOf(e)>=0?1:-1,n=[Vy,Qy].indexOf(e)>=0?"y":"x";A[e]+=D[n]*t}))}return A}function Dv(e,t,n){return Ay(e,Cy(t,n))}function Mv(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Fv(e){return[Vy,$y,Qy,Ky].some((function(t){return e[t]>=0}))}var Ov=lv({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,u=xy(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach((function(e){e.addEventListener("scroll",n.update,cv)})),s&&u.addEventListener("resize",n.update,cv),function(){o&&l.forEach((function(e){e.removeEventListener("scroll",n.update,cv)})),s&&u.removeEventListener("resize",n.update,cv)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=pv({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,l={placement:fv(t.placement),variation:dv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,gv(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,gv(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];ky(i)&&Ny(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});ky(r)&&Ny(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=rv.reduce((function(e,n){return e[n]=function(e,t,n){var r=fv(e),i=[Ky,Vy].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Ky,$y].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],u=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,l=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,y=fv(g),v=u||(y===g||!p?[vv(g)]:function(e){if(fv(e)===Yy)return[];var t=vv(e);return[wv(e),t,wv(t)]}(g)),b=[g].concat(v).reduce((function(e,n){return e.concat(fv(n)===Yy?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,l=void 0===u?rv:u,c=dv(r),f=c?s?nv:nv.filter((function(e){return dv(e)===c})):Xy,d=f.filter((function(e){return l.indexOf(e)>=0}));0===d.length&&(d=f);var h=d.reduce((function(t,n){return t[n]=Cv(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[fv(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:c,rootBoundary:f,padding:l,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,_=t.rects.popper,x=new Map,E=!0,k=b[0],S=0;S<b.length;S++){var A=b[S],C=fv(A),D=dv(A)===Zy,M=[Vy,Qy].indexOf(C)>=0,F=M?"width":"height",O=Cv(t,{placement:A,boundary:c,rootBoundary:f,altBoundary:d,padding:l}),T=M?D?$y:Ky:D?Qy:Vy;w[F]>_[F]&&(T=vv(T));var N=vv(T),P=[];if(o&&P.push(O[C]<=0),s&&P.push(O[T]<=0,O[N]<=0),P.every((function(e){return e}))){k=A,E=!1;break}x.set(A,P)}if(E)for(var I=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},R=p?3:1;R>0;R--){if("break"===I(R))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=void 0===d||d,p=n.tetherOffset,m=void 0===p?0:p,g=Cv(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),y=fv(t.placement),v=dv(t.placement),b=!v,w=hv(y),_="x"===w?"y":"x",x=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,S="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,A="number"===typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(x){if(o){var M,F="y"===w?Vy:Ky,O="y"===w?Qy:$y,T="y"===w?"height":"width",N=x[w],P=N+g[F],I=N-g[O],R=h?-k[T]/2:0,j=v===Zy?E[T]:k[T],L=v===Zy?-k[T]:-E[T],B=t.elements.arrow,z=h&&B?By(B):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=U[F],q=U[O],G=Dv(0,E[T],z[T]),W=b?E[T]/2-R-G-H-A.mainAxis:j-G-H-A.mainAxis,V=b?-E[T]/2+R+G+q+A.mainAxis:L+G+q+A.mainAxis,Q=t.elements.arrow&&Wy(t.elements.arrow),$=Q?"y"===w?Q.clientTop||0:Q.clientLeft||0:0,K=null!=(M=null==C?void 0:C[w])?M:0,Y=N+V-K,X=Dv(h?Cy(P,N+W-K-$):P,N,h?Ay(I,Y):I);x[w]=X,D[w]=X-N}if(s){var Z,J="x"===w?Vy:Ky,ee="x"===w?Qy:$y,te=x[_],ne="y"===_?"height":"width",re=te+g[J],ie=te-g[ee],oe=-1!==[Vy,Ky].indexOf(y),ae=null!=(Z=null==C?void 0:C[_])?Z:0,se=oe?re:te-E[ne]-k[ne]-ae+A.altAxis,ue=oe?te+E[ne]+k[ne]-ae-A.altAxis:ie,le=h&&oe?function(e,t,n){var r=Dv(e,t,n);return r>n?n:r}(se,te,ue):Dv(h?se:re,te,h?ue:ie);x[_]=le,D[_]=le-te}t.modifiersData[r]=D}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=fv(n.placement),u=hv(s),l=[Ky,$y].indexOf(s)>=0?"height":"width";if(o&&a){var c=function(e,t){return Sv("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Av(e,Xy))}(i.padding,n),f=By(o),d="y"===u?Vy:Ky,h="y"===u?Qy:$y,p=n.rects.reference[l]+n.rects.reference[u]-a[u]-n.rects.popper[l],m=a[u]-n.rects.reference[u],g=Wy(o),y=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,v=p/2-m/2,b=c[d],w=y-f[l]-c[h],_=y/2-f[l]/2+v,x=Dv(b,_,w),E=u;n.modifiersData[r]=((t={})[E]=x,t.centerOffset=x-_,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&_v(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Cv(t,{elementContext:"reference"}),s=Cv(t,{altBoundary:!0}),u=Mv(a,r),l=Mv(s,i,o),c=Fv(u),f=Fv(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),Tv=n(4901),Nv=n.n(Tv),Pv=[],Iv=function(){},Rv=function(){return Promise.resolve(null)},jv=[];function Lv(e){var t=e.placement,n=void 0===t?"bottom":t,r=e.strategy,o=void 0===r?"absolute":r,a=e.modifiers,s=void 0===a?jv:a,u=e.referenceElement,l=e.onFirstUpdate,c=e.innerRef,f=e.children,d=i.useContext(vy),h=i.useState(null),p=h[0],m=h[1],g=i.useState(null),y=g[0],v=g[1];i.useEffect((function(){by(c,p)}),[c,p]);var b,w=i.useMemo((function(){return{placement:n,strategy:o,onFirstUpdate:l,modifiers:[].concat(s,[{name:"arrow",enabled:null!=y,options:{element:y}}])}}),[n,o,l,s,y]),_=function(e,t,n){void 0===n&&(n={});var r=i.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Pv},a=i.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],u=a[1],l=i.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);Ou.flushSync((function(){u({styles:wy(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:wy(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),c=i.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[l,{name:"applyStyles",enabled:!1}])};return Nv()(r.current,e)?r.current||e:(r.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,l]),f=i.useRef();return _y((function(){f.current&&f.current.setOptions(c)}),[c]),_y((function(){if(null!=e&&null!=t){var r=(n.createPopper||Ov)(e,t,c);return f.current=r,function(){r.destroy(),f.current=null}}}),[e,t,n.createPopper]),{state:f.current?f.current.state:null,styles:s.styles,attributes:s.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}}(u||d,p,w),x=_.state,E=_.styles,k=_.forceUpdate,S=_.update,A=i.useMemo((function(){return{ref:m,style:E.popper,placement:x?x.placement:n,hasPopperEscaped:x&&x.modifiersData.hide?x.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:x&&x.modifiersData.hide?x.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:E.arrow,ref:v},forceUpdate:k||Iv,update:S||Rv}}),[m,v,n,x,E,S,k]);return(b=f,Array.isArray(b)?b[0]:b)(A)}const Bv=function(e,t,n,r){return fs(e,(function(e,i,o){t(r,n(e),i,o)})),r};const zv=function(e,t){return function(n,r){return Bv(n,e,t(r),{})}};var Uv=Object.prototype.toString;const Hv=zv((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Uv.call(t)),e[t]=n}),fa(da));var qv={"top center":"top","top left":"top-start","top right":"top-end","bottom center":"bottom","bottom left":"bottom-start","bottom right":"bottom-end","right center":"right","left center":"left"},Gv=(os(qv),Hv(qv)),Wv=n(816);function Vv(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,(0,Wv.A)(r.key),r)}}var Qv=function(){function e(e){this.ref=e}var t,n,r;return e.prototype.getBoundingClientRect=function(){return Mu(this.ref.current,"getBoundingClientRect")||{}},t=e,(n=[{key:"clientWidth",get:function(){return this.getBoundingClientRect().width}},{key:"clientHeight",get:function(){return this.getBoundingClientRect().height}},{key:"parentNode",get:function(){return this.ref.current?this.ref.current.parentNode:void 0}},{key:"contextElement",get:function(){return this.ref.current}}])&&Vv(t.prototype,n),r&&Vv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();const $v=Co((function(e){return new Qv(Nu(e)?e:{current:e})}));function Kv(e){var t=e.children,n=e.className,r=e.content,o=Bu("content",n),a=ml(Kv,e),s=hl(Kv,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}function Yv(e){var t=e.children,n=e.className,r=e.content,o=Bu("header",n),a=ml(Yv,e),s=hl(Yv,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}Kv.handledProps=["as","children","className","content"],Kv.propTypes={},Kv.create=Cl(Kv,(function(e){return{children:e}})),Yv.handledProps=["as","children","className","content"],Yv.propTypes={},Yv.create=Cl(Yv,(function(e){return{children:e}}));var Xv=function(e){function t(){for(var n,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(n=e.call.apply(e,[this].concat(o))||this).state={},n.open=!1,n.zIndexWasSynced=!1,n.triggerRef=i.createRef(),n.elementRef=i.createRef(),n.getPortalProps=function(){var e={},t=n.props,r=t.on,i=t.hoverable,o=Di(r)?r:[r];return i&&(e.closeOnPortalMouseLeave=!0,e.mouseLeaveDelay=300),us(o,"hover")&&(e.openOnTriggerClick=!1,e.closeOnTriggerClick=!1,e.openOnTriggerMouseEnter=!0,e.closeOnTriggerMouseLeave=!0,e.mouseLeaveDelay=70,e.mouseEnterDelay=50),us(o,"click")&&(e.openOnTriggerClick=!0,e.closeOnTriggerClick=!0,e.closeOnDocumentClick=!0),us(o,"focus")&&(e.openOnTriggerFocus=!0,e.closeOnTriggerBlur=!0),e},n.hideOnScroll=function(e){yy(e.target)&&n.elementRef.current.contains(e.target)||(n.setState({closed:!0}),rl.unsub("scroll",n.hideOnScroll,{target:window}),n.timeoutId=setTimeout((function(){n.setState({closed:!1})}),50),n.handleClose(e))},n.handleClose=function(e){Mu(n.props,"onClose",e,ri({},n.props,{open:!1}))},n.handleOpen=function(e){Mu(n.props,"onOpen",e,ri({},n.props,{open:!0}))},n.handlePortalMount=function(e){Mu(n.props,"onMount",e,n.props)},n.handlePortalUnmount=function(e){n.positionUpdate=null,Mu(n.props,"onUnmount",e,n.props)},n.renderContent=function(e){var r=e.placement,o=e.ref,a=e.update,s=e.style,u=n.props,l=u.basic,c=u.children,f=u.className,d=u.content,h=u.hideOnScroll,p=u.flowing,m=u.header,g=u.inverted,y=u.popper,v=u.size,b=u.style,w=u.wide,_=n.state.contentRestProps;n.positionUpdate=a;var x=Bu("ui",Gv[r],v,ul(w,"wide"),al(l,"basic"),al(p,"flowing"),al(g,"inverted"),"popup transition visible",f),E=hl(t,n.props),k=ri({left:"auto",right:"auto",position:"initial"},b),S=i.createElement(E,ri({},_,{className:x,style:k,ref:n.elementRef}),pl(c)?i.createElement(i.Fragment,null,Yv.create(m,{autoGenerateKey:!1}),Kv.create(d,{autoGenerateKey:!1})):c,h&&i.createElement(nl(),{on:n.hideOnScroll,name:"scroll",target:"window"}));return Dl(y||{},{overrideProps:{children:S,ref:o,style:ri({display:"flex"},s)}})},n}oi(t,e),t.getDerivedStateFromProps=function(e,n){if(n.closed||n.disabled)return{};var r=ml(t,e);return{contentRestProps:xu(r,(function(e,t,n){return us(Hl.handledProps,n)||(e[n]=t),e}),{}),portalRestProps:ya(r,Hl.handledProps)}};var n=t.prototype;return n.componentDidUpdate=function(e){Uu()(this.props.popperDependencies,e.popperDependencies)||this.handleUpdate()},n.componentWillUnmount=function(){clearTimeout(this.timeoutId)},n.handleUpdate=function(){this.positionUpdate&&this.positionUpdate()},n.render=function(){var e=this,t=this.props,n=t.context,r=t.disabled,o=t.eventsEnabled,a=t.offset,s=t.pinned,u=t.popper,l=t.popperModifiers,c=t.position,f=t.positionFixed,d=t.trigger,h=this.state,p=h.closed,m=h.portalRestProps;if(p||r)return d;var g=[{name:"arrow",enabled:!1},{name:"eventListeners",options:{scroll:!!o,resize:!!o}},{name:"flip",enabled:!s},{name:"preventOverflow",enabled:!!a},{name:"offset",enabled:!!a,options:{offset:a}}].concat(l,[{name:"syncZIndex",enabled:!0,phase:"beforeRead",fn:function(t){var n,r=t.state;if(!e.zIndexWasSynced){var i=null==u||null==(n=u.style)?void 0:n.zIndex;gl(i)&&(r.elements.popper.style.zIndex=window.getComputedStyle(r.elements.popper.firstChild).zIndex),e.zIndexWasSynced=!0}},effect:function(){return function(){e.zIndexWasSynced=!1}}}]),y=$v(Hu(n)?this.triggerRef:n),v=ri({},this.getPortalProps(),m);return i.createElement(Hl,ri({},v,{onClose:this.handleClose,onMount:this.handlePortalMount,onOpen:this.handleOpen,onUnmount:this.handlePortalUnmount,trigger:d,triggerRef:this.triggerRef}),i.createElement(Lv,{modifiers:g,placement:qv[c],strategy:f?"fixed":null,referenceElement:y},this.renderContent))},t}(i.Component);function Zv(e){var t=e.children,n=e.className,r=e.computer,o=e.color,a=e.floated,s=e.largeScreen,u=e.mobile,l=e.only,c=e.stretched,f=e.tablet,d=e.textAlign,h=e.verticalAlign,p=e.widescreen,m=e.width,g=Bu(o,al(c,"stretched"),ll(l,"only"),cl(d),sl(a,"floated"),fl(h),dl(r,"wide computer"),dl(s,"wide large screen"),dl(u,"wide mobile"),dl(f,"wide tablet"),dl(p,"wide widescreen"),dl(m,"wide"),"column",n),y=ml(Zv,e),v=hl(Zv,e);return i.createElement(v,ri({},y,{className:g}),t)}Xv.handledProps=["as","basic","children","className","content","context","disabled","eventsEnabled","flowing","header","hideOnScroll","hoverable","inverted","offset","on","onClose","onMount","onOpen","onUnmount","pinned","popper","popperDependencies","popperModifiers","position","positionFixed","size","style","trigger","wide"],Xv.propTypes={},Xv.defaultProps={disabled:!1,eventsEnabled:!0,on:["click","hover"],pinned:!1,popperModifiers:[],position:"top left"},Xv.Content=Kv,Xv.Header=Yv,Zv.handledProps=["as","children","className","color","computer","floated","largeScreen","mobile","only","stretched","tablet","textAlign","verticalAlign","widescreen","width"],Zv.propTypes={},Zv.create=Cl(Zv,(function(e){return{children:e}}));const Jv=Zv;function eb(e){var t=e.centered,n=e.children,r=e.className,o=e.color,a=e.columns,s=e.divided,u=e.only,l=e.reversed,c=e.stretched,f=e.textAlign,d=e.verticalAlign,h=Bu(o,al(t,"centered"),al(s,"divided"),al(c,"stretched"),ll(u,"only"),ll(l,"reversed"),cl(f),fl(d),dl(a,"column",!0),"row",r),p=ml(eb,e),m=hl(eb,e);return i.createElement(m,ri({},p,{className:h}),n)}eb.handledProps=["as","centered","children","className","color","columns","divided","only","reversed","stretched","textAlign","verticalAlign"],eb.propTypes={};const tb=eb;function nb(e){var t=e.celled,n=e.centered,r=e.children,o=e.className,a=e.columns,s=e.container,u=e.divided,l=e.doubling,c=e.inverted,f=e.padded,d=e.relaxed,h=e.reversed,p=e.stackable,m=e.stretched,g=e.textAlign,y=e.verticalAlign,v=Bu("ui",al(n,"centered"),al(s,"container"),al(l,"doubling"),al(c,"inverted"),al(p,"stackable"),al(m,"stretched"),ul(t,"celled"),ul(u,"divided"),ul(f,"padded"),ul(d,"relaxed"),ll(h,"reversed"),cl(g),fl(y),dl(a,"column",!0),"grid",o),b=ml(nb,e),w=hl(nb,e);return i.createElement(w,ri({},b,{className:v}),r)}nb.handledProps=["as","celled","centered","children","className","columns","container","divided","doubling","inverted","padded","relaxed","reversed","stackable","stretched","textAlign","verticalAlign"],nb.Column=Jv,nb.Row=tb,nb.propTypes={};const rb=nb;function ib(e){var t=e.children,n=e.className,r=e.compact,o=e.content,a=e.horizontal,s=e.piled,u=e.raised,l=e.size,c=e.stacked,f=Bu("ui",l,al(r,"compact"),al(a,"horizontal"),al(s,"piled"),al(u,"raised"),al(c,"stacked"),"segments",n),d=ml(ib,e),h=hl(ib,e);return i.createElement(h,ri({},d,{className:f}),pl(t)?o:t)}ib.handledProps=["as","children","className","compact","content","horizontal","piled","raised","size","stacked"],ib.propTypes={};const ob=ib;function ab(e){var t=e.children,n=e.className,r=e.content,o=Bu("inline",n),a=ml(ab,e),s=hl(ab,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}ab.handledProps=["as","children","className","content"],ab.propTypes={};const sb=ab;function ub(e){var t=e.attached,n=e.basic,r=e.children,o=e.circular,a=e.className,s=e.clearing,u=e.color,l=e.compact,c=e.content,f=e.disabled,d=e.floated,h=e.inverted,p=e.loading,m=e.placeholder,g=e.padded,y=e.piled,v=e.raised,b=e.secondary,w=e.size,_=e.stacked,x=e.tertiary,E=e.textAlign,k=e.vertical,S=Bu("ui",u,w,al(n,"basic"),al(o,"circular"),al(s,"clearing"),al(l,"compact"),al(f,"disabled"),al(h,"inverted"),al(p,"loading"),al(m,"placeholder"),al(y,"piled"),al(v,"raised"),al(b,"secondary"),al(_,"stacked"),al(x,"tertiary"),al(k,"vertical"),ul(t,"attached"),ul(g,"padded"),cl(E),sl(d,"floated"),"segment",a),A=ml(ub,e),C=hl(ub,e);return i.createElement(C,ri({},A,{className:S}),pl(r)?c:r)}ub.handledProps=["as","attached","basic","children","circular","className","clearing","color","compact","content","disabled","floated","inverted","loading","padded","piled","placeholder","raised","secondary","size","stacked","tertiary","textAlign","vertical"],ub.Group=ob,ub.Inline=sb,ub.propTypes={};const lb=ub;function cb(e){var t=e.active,n=e.children,r=e.className,o=e.content,a=e.loading,s=Bu(al(t,"active"),al(a,"loading"),"tab",r),u=ml(cb,e),l=hl(cb,e),c={};return l===lb&&(c.attached="bottom"),i.createElement(l,ri({},c,u,{className:s}),pl(n)?o:n)}cb.handledProps=["active","as","children","className","content","loading"],cb.defaultProps={as:lb,active:!0},cb.propTypes={},cb.create=Cl(cb,(function(e){return{content:e}}));const fb=cb;var db=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleItemClick=function(e,n){var r=n.index;Mu(t.props,"onTabChange",e,ri({},t.props,{activeIndex:r})),t.setState({activeIndex:r})},t}oi(t,e);var n=t.prototype;return n.getInitialAutoControlledState=function(){return{activeIndex:0}},n.renderItems=function(){var e=this.props,t=e.panes,n=e.renderActiveOnly,r=this.state.activeIndex;return n?Mu(mu(t,"["+r+"]"),"render",this.props):Gl(t,(function(e,t){var n=e.pane;return fb.create(n,{overrideProps:{active:t===r}})}))},n.renderMenu=function(){var e=this.props,t=e.menu,n=e.panes,r=e.menuPosition,i=this.state.activeIndex;return!0===t.tabular&&"right"===r&&(t.tabular="right"),gy.create(t,{autoGenerateKey:!1,overrideProps:{items:Gl(n,"menuItem"),onItemClick:this.handleItemClick,activeIndex:i}})},n.renderVertical=function(e){var t=this.props,n=t.grid,r=t.menuPosition,o=n.paneWidth,a=n.tabWidth,s=Dr(n,["paneWidth","tabWidth"]),u=r||"right"===e.props.tabular&&"right"||"left";return i.createElement(rb,s,"left"===u&&Jv.create({width:a,children:e},{autoGenerateKey:!1}),Jv.create({width:o,children:this.renderItems(),stretched:!0},{autoGenerateKey:!1}),"right"===u&&Jv.create({width:a,children:e},{autoGenerateKey:!1}))},n.render=function(){var e=this.renderMenu(),n=ml(t,this.props),r=hl(t,this.props);return e.props.vertical?i.createElement(r,n,this.renderVertical(e)):i.createElement(r,n,"bottom"!==e.props.attached&&e,this.renderItems(),"bottom"===e.props.attached&&e)},t}(yl);db.handledProps=["activeIndex","as","defaultActiveIndex","grid","menu","menuPosition","onTabChange","panes","renderActiveOnly"],db.propTypes={},db.autoControlledProps=["activeIndex"],db.defaultProps={grid:{paneWidth:12,tabWidth:4},menu:{attached:!0,tabular:!0},renderActiveOnly:!0},db.Pane=fb;const hb=db;function pb(e){var t=e.children,n=e.className,r=e.content,o=e.image,a=Bu(al(o,"image"),"header",n),s=ml(pb,e),u=hl(pb,e);return i.createElement(u,ri({},s,{className:a}),pl(t)?r:t)}pb.handledProps=["as","children","className","content","image"],pb.propTypes={};const mb=pb;function gb(e){var t=e.className,n=e.square,r=e.rectangular,o=Bu(al(n,"square"),al(r,"rectangular"),"image",t),a=ml(gb,e),s=hl(gb,e);return i.createElement(s,ri({},a,{className:o}))}gb.handledProps=["as","className","rectangular","square"],gb.propTypes={};const yb=gb;function vb(e){var t=e.className,n=e.length,r=Bu("line",n,t),o=ml(vb,e),a=hl(vb,e);return i.createElement(a,ri({},o,{className:r}))}vb.handledProps=["as","className","length"],vb.propTypes={};const bb=vb;function wb(e){var t=e.children,n=e.className,r=e.content,o=Bu("paragraph",n),a=ml(wb,e),s=hl(wb,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}wb.handledProps=["as","children","className","content"],wb.propTypes={};const _b=wb;function xb(e){var t=e.children,n=e.className,r=e.content,o=e.fluid,a=e.inverted,s=Bu("ui",al(o,"fluid"),al(a,"inverted"),"placeholder",n),u=ml(xb,e),l=hl(xb,e);return i.createElement(l,ri({},u,{className:s}),pl(t)?r:t)}xb.handledProps=["as","children","className","content","fluid","inverted"],xb.propTypes={},xb.Header=mb,xb.Image=yb,xb.Line=bb,xb.Paragraph=_b;const Eb=xb;function kb(e){var t=e.children,n=e.className,r=e.content,o=e.fluid,a=e.text,s=e.textAlign,u=Bu("ui",al(a,"text"),al(o,"fluid"),cl(s),"container",n),l=ml(kb,e),c=hl(kb,e);return i.createElement(c,ri({},l,{className:u}),pl(t)?r:t)}kb.handledProps=["as","children","className","content","fluid","text","textAlign"],kb.propTypes={};const Sb=kb;function Ab(e){var t=e.children,n=e.className,r=e.content,o=Bu("content",n),a=ml(Ab,e),s=hl(Ab,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}Ab.handledProps=["as","children","className","content"],Ab.propTypes={};const Cb=Ab;function Db(e){var t=e.children,n=e.className,r=e.content,o=Bu("header",n),a=ml(Db,e),s=hl(Db,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}Db.handledProps=["as","children","className","content"],Db.propTypes={},Db.create=Cl(Db,(function(e){return{content:e}}));const Mb=Db;function Fb(e){var t=e.children,n=e.className,r=e.content,o=Bu("content",n),a=ml(Fb,e),s=hl(Fb,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}Fb.handledProps=["as","children","className","content"],Fb.propTypes={},Fb.defaultProps={as:"li"},Fb.create=Cl(Fb,(function(e){return{content:e}}));const Ob=Fb;function Tb(e){var t=e.children,n=e.className,r=e.items,o=Bu("list",n),a=ml(Tb,e),s=hl(Tb,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?Gl(r,Ob.create):t)}Tb.handledProps=["as","children","className","items"],Tb.propTypes={},Tb.defaultProps={as:"ul"},Tb.create=Cl(Tb,(function(e){return{items:e}}));const Nb=Tb;var Pb=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleDismiss=function(e){var n=t.props.onDismiss;n&&n(e,t.props)},t}return oi(t,e),t.prototype.render=function(){var e=this.props,n=e.attached,r=e.children,o=e.className,a=e.color,s=e.compact,u=e.content,l=e.error,c=e.floating,f=e.header,d=e.hidden,h=e.icon,p=e.info,m=e.list,g=e.negative,y=e.onDismiss,v=e.positive,b=e.size,w=e.success,_=e.visible,x=e.warning,E=Bu("ui",a,b,al(s,"compact"),al(l,"error"),al(c,"floating"),al(d,"hidden"),al(h,"icon"),al(p,"info"),al(g,"negative"),al(v,"positive"),al(w,"success"),al(_,"visible"),al(x,"warning"),ul(n,"attached"),"message",o),k=y&&i.createElement(Rl,{name:"close",onClick:this.handleDismiss}),S=ml(t,this.props),A=hl(t,this.props);return pl(r)?i.createElement(A,ri({},S,{className:E}),k,Rl.create(h,{autoGenerateKey:!1}),(!Hu(f)||!Hu(u)||!Hu(m))&&i.createElement(Cb,null,Mb.create(f,{autoGenerateKey:!1}),Nb.create(m,{autoGenerateKey:!1}),Tl(u,{autoGenerateKey:!1}))):i.createElement(A,ri({},S,{className:E}),k,r)},t}(i.Component);function Ib(e){const[t,n]=(0,i.useState)(!1),[r,o]=(0,i.useState)(!1),[a,s]=(0,i.useState)(!1),[u,l]=(0,i.useState)("");return r&&u!==e.url&&o(!1),(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsx)(oc,{className:r?"loaded-image-thumbnail":"hidden-image",onClick:()=>n(!0),onLoad:()=>{o(!0),l(e.url),s(!1)},onError:t=>{o(!0),l(e.url),s(!0),t.currentTarget.alt=""},src:e.url,alt:e.title||e.filename,centered:!0}),(0,Nh.jsx)(Eb,{className:r?"hidden-image":"image-placeholder",children:(0,Nh.jsx)(Eb.Image,{square:!0})}),a&&(0,Nh.jsx)(Sb,{fluid:!0,textAlign:"center",children:(0,Nh.jsx)(Pb,{negative:!0,compact:!0,children:(0,Nh.jsx)(Pb.Header,{children:(0,Nh.jsx)(Th,{id:"error.failed_to_load_image",defaultMessage:"Failed to load image file"})})})}),(0,Nh.jsxs)(Pc,{basic:!0,size:"large",closeIcon:(0,Nh.jsx)(Rl,{name:"close",color:"red"}),open:t,onClose:()=>n(!1),onOpen:()=>n(!0),centered:!1,children:[(0,Nh.jsx)(Pc.Header,{children:e.title}),(0,Nh.jsx)(Pc.Content,{image:!0,children:(0,Nh.jsx)(oc,{className:"modal-image",src:e.url,alt:e.title||e.filename,label:(0,Nh.jsx)(cc,{attached:"bottom",content:e.filename}),wrapped:!0})})]})]})}Pb.handledProps=["as","attached","children","className","color","compact","content","error","floating","header","hidden","icon","info","list","negative","onDismiss","positive","size","success","visible","warning"],Pb.propTypes={},Pb.Content=Cb,Pb.Header=Mb,Pb.List=Nb,Pb.Item=Ob;var Rb=n(1658);function jb(e){return(0,Nh.jsx)(Nh.Fragment,{children:e.lines.map(((e,t)=>(0,Nh.jsxs)("div",{children:[(0,Nh.jsx)(Rb.A,{properties:{target:"_blank"},children:e}),(0,Nh.jsx)("br",{})]},t)))})}function Lb(e,t){return!(null===e||void 0===e||!e.length)&&(0,Nh.jsx)(lg,{children:e.map(((e,n)=>(0,Nh.jsxs)(lg.Item,{children:[(0,Nh.jsx)(lg.Icon,{verticalAlign:"middle",name:"circle",size:"tiny"}),(0,Nh.jsxs)(lg.Content,{children:[(0,Nh.jsx)(lg.Header,{children:(0,Nh.jsx)(Rb.A,{properties:{target:"_blank"},children:[e.author,e.title,e.publicationInfo].filter((e=>e)).join(", ")})}),(0,Nh.jsxs)(lg.Description,{children:[(0,Nh.jsx)(Rb.A,{properties:{target:"_blank"},children:e.page}),e.date?" ["+Qh(e.date,t)+"]":null]})]})]},n)))})}function Bb(e){var t,n,r;const o=Mh(),[a,s]=(0,i.useState)(-1),[u,l]=(0,i.useState)("");function c(e,t){void 0!==t.index&&a!==t.index?s(t.index):s(-1)}u&&u===e.indi||(s(-1),l(e.indi));const f=[(null===(t=e.images)||void 0===t?void 0:t.length)&&{menuItem:(0,Nh.jsx)(gy.Item,{fitted:!0,onClick:c,children:(0,Nh.jsx)(Xv,{content:(0,Nh.jsx)(Th,{id:"extras.images",defaultMessage:"Images"}),size:"mini",position:"bottom center",trigger:(0,Nh.jsx)(Rl,{circular:!0,name:"camera"})})},"images"),render:()=>{return(0,Nh.jsx)(hb.Pane,{children:(t=e.images,!!t&&t.map(((e,t)=>(0,Nh.jsx)(lg,{children:(0,Nh.jsx)(lg.Item,{children:(0,Nh.jsx)(Ib,{url:e.url,filename:e.filename,title:e.title})})},t))))});var t}},(null===(n=e.notes)||void 0===n?void 0:n.length)&&{menuItem:(0,Nh.jsx)(gy.Item,{fitted:!0,onClick:c,children:(0,Nh.jsx)(Xv,{content:(0,Nh.jsx)(Th,{id:"extras.notes",defaultMessage:"Notes"}),size:"mini",position:"bottom center",trigger:(0,Nh.jsx)(Rl,{circular:!0,name:"sticky note outline"})})},"notes"),render:()=>{return(0,Nh.jsx)(hb.Pane,{children:(t=e.notes,!(null===t||void 0===t||!t.length)&&t.map(((e,t)=>(0,Nh.jsx)("div",{children:(0,Nh.jsx)(jb,{lines:e.map(((e,t)=>(0,Nh.jsx)("i",{children:e},t)))})},t))))});var t}},(null===(r=e.sources)||void 0===r?void 0:r.length)&&{menuItem:(0,Nh.jsx)(gy.Item,{fitted:!0,onClick:c,children:(0,Nh.jsx)(Xv,{content:(0,Nh.jsx)(Th,{id:"extras.sources",defaultMessage:"Sources"}),size:"mini",position:"bottom center",trigger:(0,Nh.jsx)(Rl,{circular:!0,name:"quote right"})})},"sources"),render:()=>(0,Nh.jsx)(hb.Pane,{children:Lb(e.sources,o)})}].flatMap((e=>e?[e]:[]));return f.length?(0,Nh.jsx)(Km.Description,{children:(0,Nh.jsx)(hb,{className:"event-extras",activeIndex:a,renderActiveOnly:!0,menu:{tabular:!0,attached:!0,compact:!0,borderless:!0},panes:f})}):null}function zb(e){const t=xm(),n=function(e){const t=e.tree.filter((e=>"NAME"===e.tag)),n=t.find((e=>0===e.tree.filter((e=>"TYPE"===e.tag&&"married"===e.data)).length))||t[0];return null===n||void 0===n?void 0:n.data.replace(/\//g,"")}(e.person),r=B.parse(t.search);return r.indi=Jh(e.person.pointer),(0,Nh.jsx)(Km.Meta,{children:(0,Nh.jsx)(Mm,{to:{pathname:"/view",search:B.stringify(r)},children:n||(0,Nh.jsx)(Th,{id:"name.unknown_name",defaultMessage:"N.N."})})})}const Ub=["BIRT","BAPM","CHR","FAMS","EVEN","CENS","DEAT","BURI"],Hb=["MARR","DIV"];function qb(e){const t=Mh();return(0,Nh.jsxs)("div",{className:"event-header",children:[(0,Nh.jsx)(zc,{as:"span",size:"small",children:(0,Nh.jsx)(Nm,{tag:e.event.type})}),e.event.date?(0,Nh.jsx)(zc,{as:"span",textAlign:"right",sub:!0,children:Qh(e.event.date,t)}):null]})}function Gb(e,t,n){const r=t.tree.filter((e=>["WIFE","HUSB"].includes(e.tag))).find((t=>!t.data.includes(e)));if(r)return ap(r,n,(e=>e.indis))}function Wb(e,t,n,r){if("DEAT"!==e.tag)return;const i=Xb(e),o=n.indis[t].tree.filter((e=>"BIRT"===e.tag)).map((e=>Xb(e))).find((e=>e));return o&&i?wp(null===o||void 0===o?void 0:o.data,null===i||void 0===i?void 0:i.data,r):void 0}function Vb(e){const t=e.tree.find((e=>"PLAC"===e.tag));return null!==t&&void 0!==t&&t.data?sp(t):void 0}function Qb(e,t){return e.tree.filter((e=>"OBJE"===e.tag)).map((e=>ap(e,t,(e=>e.other)))).map((e=>pp(e))).flatMap((e=>e?[{url:(null===e||void 0===e?void 0:e.data)||"",filename:hp(e)||""}]:[]))}function $b(e,t){return e.tree.filter((e=>"SOUR"===e.tag)).map((e=>{const n=ap(e,t,(e=>e.other)),r=n.tree.find((e=>"TITL"===e.tag)),i=n.tree.find((e=>"ABBR"===e.tag)),o=n.tree.find((e=>"AUTH"===e.tag)),a=n.tree.find((e=>"PUBL"===e.tag)),s=e.tree.find((e=>"PAGE"===e.tag)),u=e.tree.find((e=>"DATA"===e.tag)),l=u?Xb(u):void 0;return{title:(null===r||void 0===r?void 0:r.data)||(null===i||void 0===i?void 0:i.data),author:null===o||void 0===o?void 0:o.data,page:null===s||void 0===s?void 0:s.data,date:l?(0,qh.getDate)(l.data):void 0,publicationInfo:null===a||void 0===a?void 0:a.data}}))}function Kb(e,t){return e.tree.filter((e=>["NOTE","TYPE"].includes(e.tag))).map((e=>ap(e,t,(e=>e.other)))).map((e=>sp(e)))}function Yb(e,t,n,r){return"FAMS"===e.tag?function(e,t,n){const r=ap(e,t,(e=>e.fams));return zh()(Hb,(e=>r.tree.filter((t=>t.tag===e)))).map((e=>{const i=Xb(e)||null;return{date:i?(0,qh.getDate)(i.data):void 0,type:e.tag,personLink:Gb(n,r,t),place:Vb(e),images:Qb(e,t),notes:Kb(e,t),sources:$b(e,t),indi:n}}))}(e,t,n):function(e,t,n,r){const i=Xb(e)||null;return[{date:i?(0,qh.getDate)(i.data):void 0,type:e.tag,age:Wb(e,n,t,r),place:Vb(e),images:Qb(e,t),notes:Kb(e,t),sources:$b(e,t),indi:n}]}(e,t,n,r)}function Xb(e){return e.tree.find((e=>"DATE"===e.tag))}function Zb(e){return(0,Nh.jsx)(Km,{children:(0,Nh.jsxs)(Km.Content,{children:[(0,Nh.jsx)(qb,{event:e.event}),!!e.event.age&&(0,Nh.jsx)(Km.Meta,{children:e.event.age}),!!e.event.personLink&&(0,Nh.jsx)(zb,{person:e.event.personLink}),!!e.event.place&&(0,Nh.jsx)(Km.Description,{children:e.event.place}),(0,Nh.jsx)(Bb,{images:e.event.images,notes:e.event.notes,sources:e.event.sources,indi:e.event.indi})]})})}function Jb(e){const t=Mh(),n=zh()(Ub,(n=>e.entries.filter((e=>e.tag===n)).map((n=>Yb(n,e.gedcom,e.indi,t))).flatMap((e=>e)).sort(((e,t)=>Kh(e.date,t.date)))));return n.length?(0,Nh.jsx)(Nh.Fragment,{children:n.map(((e,t)=>(0,Nh.jsx)(Zb,{event:e},t)))}):null}const ew=["BIRT","BAPM","CHR","EVEN","CENS","DEAT","BURI","NAME","SEX","FAMC","FAMS","NOTE","SOUR"];function tw(e){const t=pp(e);return t?(0,Nh.jsx)("div",{className:"person-image",children:(0,Nh.jsx)(Ib,{url:t.data,filename:hp(t)||""})}):null}function nw(e){return(0,Nh.jsx)(jb,{lines:sp(e).map(((e,t)=>(0,Nh.jsx)("i",{children:e},t)))})}function rw(e){var t;const n=e.data.replaceAll("/",""),r=null===(t=e.tree.find((e=>"TYPE"===e.tag&&"Unknown"!==e.data)))||void 0===t?void 0:t.data;return(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsx)(zc,{as:"span",size:"large",children:n||(0,Nh.jsx)(Th,{id:"name.unknown_name",defaultMessage:"N.N."})}),n&&r&&(0,Nh.jsx)(Km.Meta,{children:(0,Nh.jsx)(Nm,{tag:r})})]})}function iw(e,t,n){return zh()(t,(t=>e.filter((e=>e.tag===t)).map((e=>n(e))))).filter((e=>null!==e)).map(((e,t)=>(0,Nh.jsx)(Km,{children:(0,Nh.jsx)(Km.Content,{children:e})},t)))}function ow(e){return e.tree.length>0||e.data&&!e.data.startsWith("@")}function aw(e){return e.filter((e=>!ew.includes(e.tag))).filter(ow).map((e=>function(e){const t=[];return e.data&&t.push(...sp(e)),e.tree.filter((e=>"NOTE"===e.tag)).forEach((e=>sp(e).forEach((e=>t.push((0,Nh.jsx)("i",{children:e})))))),t.length?(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsx)(zc,{sub:!0,children:(0,Nh.jsx)(Nm,{tag:e.tag})}),(0,Nh.jsx)("span",{children:(0,Nh.jsx)(jb,{lines:t})})]}):null}(e))).filter((e=>null!==e)).map(((e,t)=>(0,Nh.jsx)(Km,{children:(0,Nh.jsx)(Km.Content,{children:e})},t)))}function sw(e){const t=e.gedcom.indis[e.indi].tree,n=t.map((t=>ap(t,e.gedcom,(e=>e.other)))).filter(ow);return(0,Nh.jsx)("div",{className:"details",children:(0,Nh.jsxs)(Km.Group,{divided:!0,children:[iw(t,["NAME"],rw),iw(n,["OBJE"],tw),(0,Nh.jsx)(Jb,{gedcom:e.gedcom,entries:t,indi:e.indi}),aw(n),iw(n,["NOTE"],nw)]})})}var uw=n(8191),lw=n(3325);function cw(e,t){return{id:t&&e.indis.some((e=>e.id===t.id))?t.id:e.indis[0].id,generation:(null===t||void 0===t?void 0:t.generation)||0}}function fw(e,t,n){const r=function(e,t){const n=(0,Uh.parse)(e),r=(0,qh.gedcomEntriesToJson)(n);if(!r||!r.indis||!r.indis.length||!r.fams||!r.fams.length)throw new Hh("GEDCOM_READ_FAILED","Failed to read GEDCOM file");return{chartData:fp(up(r),t),gedcom:np(n)}}(e,n||new Map),i=JSON.stringify(r);try{sessionStorage.setItem(t,i)}catch(o){console.warn("Failed to store data in session storage: "+o)}return r}async function dw(e){return"PK"===await e.slice(0,2).text()?async function(e){const t=lw.hp.from(await e.arrayBuffer()),n=await new Promise(((e,n)=>{(0,uw.$1)(t,((t,r)=>{t?n(t):e(r)}))}));let r;const i=new Map;for(let o of Object.keys(n))o.endsWith(".ged")?r?console.warn("Multiple GEDCOM files found in zip archive."):r=(0,uw.he)(n[o]):i.set(o,URL.createObjectURL(new Blob([n[o]])));if(!r)throw new Error("GEDCOM file not found in zip archive.");return{gedcom:r,images:i}}(e):{gedcom:await e.text(),images:new Map}}async function hw(e,t,n){try{const t=sessionStorage.getItem(e);if(t)return JSON.parse(t)}catch(r){console.warn("Failed to load data from session storage: "+r)}if(!t)throw new Hh("ERROR_LOADING_UPLOADED_FILE","Error loading data. Please upload your file again.");return fw(t,e,n)}class pw{isNewData(e,t,n){return e.spec.hash!==t.spec.hash}async loadData(e){try{const t=await hw(e.spec.hash,e.spec.gedcom,e.spec.images);return z("upload_file_loaded",{event_label:dp(t.gedcom.head),event_value:e.spec.images&&e.spec.images.size||0}),t}catch(t){throw z("upload_file_error"),t}}}class mw{isNewData(e,t,n){return e.spec.url!==t.spec.url}async loadData(e){try{const t=await async function(e,t){try{const t=sessionStorage.getItem(e);if(t)return JSON.parse(t)}catch(u){console.warn("Failed to load data from session storage: "+u)}const n=e.match(/https:\/\/drive\.google\.com\/file\/d\/(.*)\/.*/);n&&(e="https://drive.google.com/uc?id=".concat(n[1],"&export=download"));const r=e.match(/https:\/\/drive\.google\.com\/open\?id=([^&]*)&?.*/);r&&(e="https://drive.google.com/uc?id=".concat(r[1],"&export=download"));const i=t?"https://topolaproxy.bieda.it/"+e:e,o=await window.fetch(i);if(200!==o.status)throw new Error(o.statusText);const{gedcom:a,images:s}=await dw(await o.blob());return fw(a,e,s)}(e.spec.url,e.spec.handleCors);return z("upload_file_loaded",{event_label:dp(t.gedcom.head)}),t}catch(t){throw z("url_file_error"),t}}}var gw=function(e){return e.GEDCOM="gedcom",e.READY="ready",e.PARENT_READY="parent_ready",e}(gw||{});class yw{isNewData(e,t,n){return!1}async onMessage(e,t,n){if(e.message===gw.PARENT_READY)window.parent.postMessage({message:gw.READY},"*");else if(e.message===gw.GEDCOM){const i=e.gedcom;if(!i)return;try{const e=await hw("",i);z("embedded_file_loaded",{event_label:dp(e.gedcom.head)}),t(e)}catch(r){z("embedded_file_error"),n(r)}}}async loadData(e){return new Promise(((e,t)=>{window.parent.postMessage({message:gw.READY},"*"),window.addEventListener("message",(n=>this.onMessage(n.data,e,t)))}))}}const vw=n.p+"static/media/topola.a3ffa9a5f8a73bf15147.jpg";function bw(e){var t=e.children,n=e.className,r=e.content,o=e.textAlign,a=Bu(cl(o),"description",n),s=ml(bw,e),u=hl(bw,e);return i.createElement(u,ri({},s,{className:a}),pl(t)?r:t)}bw.handledProps=["as","children","className","content","textAlign"],bw.propTypes={};const ww=bw;function _w(e){var t=e.children,n=e.className,r=e.content,o=e.textAlign,a=Bu(cl(o),"header",n),s=ml(_w,e),u=hl(_w,e);return i.createElement(u,ri({},s,{className:a}),pl(t)?r:t)}_w.handledProps=["as","children","className","content","textAlign"],_w.propTypes={};const xw=_w;function Ew(e){var t=e.children,n=e.className,r=e.content,o=e.textAlign,a=Bu(cl(o),"meta",n),s=ml(Ew,e),u=hl(Ew,e);return i.createElement(u,ri({},s,{className:a}),pl(t)?r:t)}Ew.handledProps=["as","children","className","content","textAlign"],Ew.propTypes={};const kw=Ew;function Sw(e){var t=e.children,n=e.className,r=e.content,o=e.description,a=e.extra,s=e.header,u=e.meta,l=e.textAlign,c=Bu(al(a,"extra"),cl(l),"content",n),f=ml(Sw,e),d=hl(Sw,e);return pl(t)?pl(r)?i.createElement(d,ri({},f,{className:c}),Al(xw,(function(e){return{content:e}}),s,{autoGenerateKey:!1}),Al(kw,(function(e){return{content:e}}),u,{autoGenerateKey:!1}),Al(ww,(function(e){return{content:e}}),o,{autoGenerateKey:!1})):i.createElement(d,ri({},f,{className:c}),r):i.createElement(d,ri({},f,{className:c}),t)}Sw.handledProps=["as","children","className","content","description","extra","header","meta","textAlign"],Sw.propTypes={};const Aw=Sw;function Cw(e){var t=e.centered,n=e.children,r=e.className,o=e.content,a=e.doubling,s=e.items,u=e.itemsPerRow,l=e.stackable,c=e.textAlign,f=Bu("ui",al(t,"centered"),al(a,"doubling"),al(l,"stackable"),cl(c),dl(u),"cards",r),d=ml(Cw,e),h=hl(Cw,e);if(!pl(n))return i.createElement(h,ri({},d,{className:f}),n);if(!pl(o))return i.createElement(h,ri({},d,{className:f}),o);var p=Gl(s,(function(e){var t,n=null!=(t=e.key)?t:[e.header,e.description].join("-");return i.createElement(Mw,ri({key:n},e))}));return i.createElement(h,ri({},d,{className:f}),p)}Cw.handledProps=["as","centered","children","className","content","doubling","items","itemsPerRow","stackable","textAlign"],Cw.propTypes={};const Dw=Cw;var Mw=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleClick=function(e){var n=t.props.onClick;n&&n(e,t.props)},t}return oi(t,e),t.prototype.render=function(){var e=this.props,n=e.centered,r=e.children,o=e.className,a=e.color,s=e.content,u=e.description,l=e.extra,c=e.fluid,f=e.header,d=e.href,h=e.image,p=e.link,m=e.meta,g=e.onClick,y=e.raised,v=Bu("ui",a,al(n,"centered"),al(c,"fluid"),al(p,"link"),al(y,"raised"),"card",o),b=ml(t,this.props),w=hl(t,this.props,(function(){if(g)return"a"}));return pl(r)?pl(s)?i.createElement(w,ri({},b,{className:v,href:d,onClick:this.handleClick}),oc.create(h,{autoGenerateKey:!1,defaultProps:{ui:!1,wrapped:!0}}),(u||f||m)&&i.createElement(Aw,{description:u,header:f,meta:m}),l&&i.createElement(Aw,{extra:!0},l)):i.createElement(w,ri({},b,{className:v,href:d,onClick:this.handleClick}),s):i.createElement(w,ri({},b,{className:v,href:d,onClick:this.handleClick}),r)},t}(i.Component);Mw.handledProps=["as","centered","children","className","color","content","description","extra","fluid","header","href","image","link","meta","onClick","raised"],Mw.propTypes={},Mw.Content=Aw,Mw.Description=ww,Mw.Group=Dw,Mw.Header=xw,Mw.Meta=kw;const Fw=(0,n(3187).H)({breakpoints:{small:320,large:768}}),Ow=Fw.createMediaStyle(),{Media:Tw,MediaContextProvider:Nw}=Fw;function Pw(e){return(0,Nh.jsx)(Mm,{to:{pathname:"/view",search:B.stringify(e.params)},children:e.text})}function Iw(){const[e,t]=(0,i.useState)("");return(0,i.useEffect)((()=>{(async()=>{t(await Ih(1)),Rh()})()})),(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsx)("p",{children:(0,Nh.jsx)(Th,{id:"intro.description",defaultMessage:"Topola Genealogy is a genealogy tree viewer that lets you browse the structure of the family."})}),(0,Nh.jsx)("p",{children:(0,Nh.jsx)(Th,{id:"intro.instructions",defaultMessage:"Use the OPEN FILE or LOAD FROM URL buttons above to load a GEDCOM file. You can export a GEDCOM file from most of the existing genealogy programs and web sites."})}),(0,Nh.jsx)("h3",{children:(0,Nh.jsx)(Th,{id:"intro.examples",defaultMessage:"Examples"})}),(0,Nh.jsxs)("ul",{children:[(0,Nh.jsxs)("li",{children:[(0,Nh.jsx)(Pw,{params:{url:"https://chronoplexsoftware.com/myfamilytree/samples/The%20Kennedy%20Family.gdz"},text:"J. F. Kennedy"})," ","(",(0,Nh.jsx)(Th,{id:"intro.from",defaultMessage:"from"})," ",(0,Nh.jsx)("a",{href:"https://chronoplexsoftware.com/myfamilytree/samples/",children:"chronoplexsoftware.com"}),")"]}),(0,Nh.jsxs)("li",{children:[(0,Nh.jsx)(Pw,{params:{url:"https://webtreeprint.com/tp_downloader.php?path=famous_gedcoms/shakespeare.ged&file=shakespeare.ged"},text:"Shakespeare"})," ","(",(0,Nh.jsx)(Th,{id:"intro.from",defaultMessage:"from"})," ",(0,Nh.jsx)("a",{href:"https://webtreeprint.com/tp_famous_gedcoms.php",children:"webtreeprint.com"}),")"]}),(0,Nh.jsxs)("li",{children:[(0,Nh.jsx)(Pw,{params:{indi:"Sk\u0142odowska-2",source:"wikitree"},text:"Maria Sk\u0142odowska-Curie"})," ","(",(0,Nh.jsx)(Th,{id:"intro.from",defaultMessage:"from"})," ",(0,Nh.jsx)("a",{href:"https://www.wikitree.com/wiki/Sk%C5%82odowska-2",children:"wikitree.com"}),")"]})]}),(0,Nh.jsx)("h3",{children:(0,Nh.jsx)(Th,{id:"intro.whats_new",defaultMessage:"What's new"})}),(0,Nh.jsx)("span",{dangerouslySetInnerHTML:{__html:e}}),(0,Nh.jsx)("a",{href:"https://github.com/PeWu/topola-viewer/blob/master/CHANGELOG.md",children:(0,Nh.jsx)(Th,{id:"intro.full_changelog",defaultMessage:"See full changelog"})}),(0,Nh.jsx)("h3",{children:(0,Nh.jsx)(Th,{id:"intro.privacy",defaultMessage:"Privacy"})}),(0,Nh.jsx)(Th,{id:"intro.privacy_note",defaultMessage:'When using the "load from file" option, this site does not send your data anywhere and files loaded from disk do not leave your computer. When using "load from URL", data is passed through the {link} service to deal with an issue with cross-site file loading in the browser (CORS).',values:{link:(0,Nh.jsx)("a",{href:"https://topolaproxy.bieda.it/",children:"cors-anywhere"})}}),(0,Nh.jsxs)("p",{className:"ui right aligned version",children:["version: ",(n="2025-01-16 17:59:19 +0100",(null===n||void 0===n?void 0:n.slice(0,16))||"")," (",(0,Nh.jsx)("a",{href:"https://github.com/PeWu/topola-viewer/commit/".concat("73fba97"),children:"73fba97"}),")"]})]});var n}function Rw(){return(0,Nh.jsxs)("div",{id:"content",children:[(0,Nh.jsx)("div",{className:"backgroundImage"}),(0,Nh.jsxs)(Mw,{className:"intro",children:[(0,Nh.jsx)(Mw.Content,{as:Tw,greaterThanOrEqual:"large",children:(0,Nh.jsx)(Mw.Header,{children:(0,Nh.jsx)(Th,{id:"intro.title",defaultMessage:"Topola Genealogy Viewer"})})}),(0,Nh.jsxs)(Mw.Content,{children:[(0,Nh.jsx)(rb,{as:Tw,greaterThanOrEqual:"large",children:(0,Nh.jsxs)(rb.Row,{children:[(0,Nh.jsx)(rb.Column,{width:5,children:(0,Nh.jsx)(oc,{src:vw,alt:"Topola logo"})}),(0,Nh.jsx)(rb.Column,{width:11,children:(0,Nh.jsx)(Iw,{})})]})}),(0,Nh.jsxs)(Tw,{at:"small",children:[(0,Nh.jsx)(oc,{src:vw,alt:"Topola logo",centered:!0,size:"tiny",className:"blockImage"}),(0,Nh.jsx)(Iw,{})]})]})]})]})}function jw(e){var t=e.active,n=e.children,r=e.className,o=e.content,a=e.disabled,s=e.indeterminate,u=e.inline,l=e.inverted,c=e.size,f=Bu("ui",c,al(t,"active"),al(a,"disabled"),al(s,"indeterminate"),al(l,"inverted"),al(n||o,"text"),ul(u,"inline"),"loader",r),d=ml(jw,e),h=hl(jw,e);return i.createElement(h,ri({},d,{className:f}),pl(n)?o:n)}jw.handledProps=["active","as","children","className","content","disabled","indeterminate","inline","inverted","size"],jw.propTypes={};const Lw=jw;const Bw=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i};const zw=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0};const Uw=function(e,t){var n=!0;return ds(e,(function(e,r,i){return n=!!t(e,r,i)})),n};const Hw=function(e,t,n){var r=Di(e)?zw:Uw;return n&&Zu(e,t,n)&&(t=void 0),r(e,wu(t,3))};const qw=function(e,t,n,r){var i=-1,o=vl,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=Oo(t,Wa(n))),r?(o=bl,a=!1):t.length>=200&&(o=Ss,a=!1,t=new Es(t));e:for(;++i<s;){var c=e[i],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f===f){for(var d=l;d--;)if(t[d]===f)continue e;u.push(c)}else o(t,f,r)||u.push(c)}return u};const Gw=function(e){return _i(e)&&xa(e)};const Ww=Du((function(e,t){return Gw(e)?qw(e,t):[]}));const Vw=function(e){return function(t,n,r){var i=Object(t);if(!xa(t)){var o=wu(n,3);t=os(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}};var Qw=Math.max;const $w=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ia(n);return i<0&&(i=Qw(r+i,0)),va(e,wu(t,3),i)};const Kw=Vw($w);const Yw=function(e,t,n){var r=null==e?0:e.length;return r?(t=n||void 0===t?1:Ia(t),Au(e,0,(t=r-t)<0?0:t)):[]};const Xw=yu("length");var Zw="\\ud800-\\udfff",Jw="["+Zw+"]",e_="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",t_="\\ud83c[\\udffb-\\udfff]",n_="[^"+Zw+"]",r_="(?:\\ud83c[\\udde6-\\uddff]){2}",i_="[\\ud800-\\udbff][\\udc00-\\udfff]",o_="(?:"+e_+"|"+t_+")"+"?",a_="[\\ufe0e\\ufe0f]?",s_=a_+o_+("(?:\\u200d(?:"+[n_,r_,i_].join("|")+")"+a_+o_+")*"),u_="(?:"+[n_+e_+"?",e_,r_,i_,Jw].join("|")+")",l_=RegExp(t_+"(?="+t_+")|"+u_+s_,"g");const c_=function(e){for(var t=l_.lastIndex=0;l_.test(e);)++t;return t};const f_=function(e){return $g(e)?c_(e):Xw(e)};const d_=function(e){if(null==e)return 0;if(xa(e))return Ea(e)?f_(e):e.length;var t=ru(e);return"[object Map]"==t||"[object Set]"==t?e.size:is(e).length};const h_=Du((function(e,t){return Gw(e)?qw(e,aa(t,1,Gw,!0)):[]}));const p_=Du((function(e){return xl(aa(e,1,Gw,!0))}));const m_=function(e,t){return lu(e,t)};var g_=function(e){function t(){return e.apply(this,arguments)||this}return oi(t,e),t.prototype.render=function(){var e=this.props,n=e.className,r=e.name,o=Bu(r,"flag",n),a=ml(t,this.props),s=hl(t,this.props);return i.createElement(s,ri({},a,{className:o}))},t}(i.PureComponent);g_.handledProps=["as","className","name"],g_.propTypes={},g_.defaultProps={as:"i"},g_.create=Cl(g_,(function(e){return{name:e}}));const y_=g_;function v_(e){var t=e.className,n=Bu("divider",t),r=ml(v_,e),o=hl(v_,e);return i.createElement(o,ri({},r,{className:n}))}v_.handledProps=["as","className"],v_.propTypes={};const b_=v_;var w_=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleClick=function(e){Mu(t.props,"onClick",e,t.props)},t}return oi(t,e),t.prototype.render=function(){var e=this.props,n=e.active,r=e.children,o=e.className,a=e.content,s=e.disabled,u=e.description,l=e.flag,c=e.icon,f=e.image,d=e.label,h=e.selected,p=e.text,m=Bu(al(n,"active"),al(s,"disabled"),al(h,"selected"),"item",o),g=Hu(c)?function(e,t){return Ju(i.Children.toArray(e),{type:t})}(r,"DropdownMenu")&&"dropdown":c,y=ml(t,this.props),v=hl(t,this.props),b={role:"option","aria-disabled":s,"aria-checked":n,"aria-selected":h};if(!pl(r))return i.createElement(v,ri({},y,b,{className:m,onClick:this.handleClick}),r);var w=y_.create(l,{autoGenerateKey:!1}),_=Rl.create(g,{autoGenerateKey:!1}),x=oc.create(f,{autoGenerateKey:!1}),E=cc.create(d,{autoGenerateKey:!1}),k=Al("span",(function(e){return{children:e}}),u,{defaultProps:{className:"description"},autoGenerateKey:!1}),S=Al("span",(function(e){return{children:e}}),pl(a)?p:a,{defaultProps:{className:"text"},autoGenerateKey:!1});return i.createElement(v,ri({},y,b,{className:m,onClick:this.handleClick}),x,_,w,E,k,S)},t}(i.Component);w_.handledProps=["active","as","children","className","content","description","disabled","flag","icon","image","label","onClick","selected","text","value"],w_.propTypes={},w_.create=Cl(w_,(function(e){return e}));const __=w_;function x_(e){var t=e.children,n=e.className,r=e.content,o=e.icon,a=Bu("header",n),s=ml(x_,e),u=hl(x_,e);return pl(t)?i.createElement(u,ri({},s,{className:a}),Rl.create(o,{autoGenerateKey:!1}),r):i.createElement(u,ri({},s,{className:a}),t)}x_.handledProps=["as","children","className","content","icon"],x_.propTypes={},x_.create=Cl(x_,(function(e){return{content:e}}));const E_=x_;function k_(e){var t=e.children,n=e.className,r=e.content,o=e.direction,a=e.open,s=e.scrolling,u=Bu(o,al(a,"visible"),al(s,"scrolling"),"menu transition",n),l=ml(k_,e),c=hl(k_,e);return i.createElement(c,ri({},l,{className:u}),pl(t)?r:t)}k_.handledProps=["as","children","className","content","direction","open","scrolling"],k_.propTypes={};const S_=k_;var A_=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleChange=function(e){var n=mu(e,"target.value");Mu(t.props,"onChange",e,ri({},t.props,{value:n}))},t}return oi(t,e),t.prototype.render=function(){var e=this.props,n=e.autoComplete,r=e.className,o=e.tabIndex,a=e.type,s=e.value,u=Bu("search",r),l=ml(t,this.props);return i.createElement("input",ri({},l,{"aria-autocomplete":"list",autoComplete:n,className:u,onChange:this.handleChange,tabIndex:o,type:a,value:s}))},t}(i.Component);A_.handledProps=["as","autoComplete","className","tabIndex","type","value"],A_.propTypes={},A_.defaultProps={autoComplete:"off",type:"text"},A_.create=Cl(A_,(function(e){return{type:e}}));const C_=A_;function D_(e){var t=e.children,n=e.className,r=e.content,o=Bu("divider",n),a=ml(D_,e),s=hl(D_,e);return i.createElement(s,ri({"aria-atomic":!0,"aria-live":"polite",role:"alert"},a,{className:o}),pl(t)?r:t)}D_.handledProps=["as","children","className","content"],D_.propTypes={},D_.create=Cl(D_,(function(e){return{content:e}}));const M_=D_;var F_=/[\\^$.*+?()[\]{}|]/g,O_=RegExp(F_.source);const T_=function(e){return(e=Io(e))&&O_.test(e)?e.replace(F_,"\\$&"):e};const N_=function(e,t){var n=[];return ds(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n};const P_=function(e,t){return(Di(e)?Ps:N_)(e,wu(t,3))};function I_(e){var t=e.additionLabel,n=e.additionPosition,r=e.allowAdditions,o=e.deburr,a=e.multiple,s=e.options,u=e.search,l=e.searchQuery,c=e.value,f=s;if(a&&(f=P_(f,(function(e){return!us(c,e.value)}))),u&&l)if(Pi(u))f=u(f,l);else{var d=o?mg(l):l,h=new RegExp(T_(d),"i");f=P_(f,(function(e){return h.test(o?mg(e.text):e.text)}))}if(r&&u&&l&&!Ju(f,{text:l})){var p={key:"addition",text:[i.isValidElement(t)?i.cloneElement(t,{key:"addition-label"}):t||"",i.createElement("b",{key:"addition-query"},l)],value:l,className:"addition","data-additional":!0};"top"===n?f.unshift(p):f.push(p)}return f}function R_(e){var t,n=e.additionLabel,r=e.additionPosition,i=e.allowAdditions,o=e.deburr,a=e.multiple,s=e.options,u=e.search,l=e.searchQuery,c=e.selectedIndex,f=e.value,d=I_({value:f,options:s,searchQuery:l,additionLabel:n,additionPosition:r,allowAdditions:i,deburr:o,multiple:a,search:u}),h=xu(d,(function(e,t,n){return t.disabled||e.push(n),e}),[]);if(!c||c<0){var p=h[0];t=a?p:$w(d,["value",f])||h[0]}else if(a)t=Kw(h,(function(e){return e>=c})),c>=d.length-1&&(t=h[h.length-1]);else{var m=$w(d,["value",f]);t=us(h,m)?m:void 0}return(!t||t<0)&&(t=h[0]),t}I_.handledProps=[];var j_=function(e,t){return Hu(e)?t:e},L_=function(e){return e?e.map((function(e){return ya(e,["key","value"])})):e};function B_(e){var t=e.flag,n=e.image,r=e.text;return Pi(r)?r:{content:i.createElement(i.Fragment,null,y_.create(t),oc.create(n),r)}}var z_=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).searchRef=(0,i.createRef)(),t.sizerRef=(0,i.createRef)(),t.ref=(0,i.createRef)(),t.handleChange=function(e,n){Mu(t.props,"onChange",e,ri({},t.props,{value:n}))},t.closeOnChange=function(e){var n=t.props,r=n.closeOnChange,i=n.multiple;(gl(r)?!i:r)&&t.close(e,wl)},t.closeOnEscape=function(e){t.props.closeOnEscape&&Ll().getCode(e)===Ll().Escape&&(e.preventDefault(),t.close(e))},t.moveSelectionOnKeyDown=function(e){var n,r=t.props,i=r.multiple,o=r.selectOnNavigation;if(t.state.open){var a=((n={})[Ll().ArrowDown]=1,n[Ll().ArrowUp]=-1,n)[Ll().getCode(e)];if(void 0!==a){e.preventDefault();var s=t.getSelectedIndexAfterMove(a);!i&&o&&t.makeSelectedItemActive(e,s),t.setState({selectedIndex:s})}}},t.openOnSpace=function(e){var n,r,i,o=t.state.focus&&!t.state.open&&Ll().getCode(e)===Ll().Spacebar,a="INPUT"!==(null==(n=e.target)?void 0:n.tagName)&&"TEXTAREA"!==(null==(r=e.target)?void 0:r.tagName)&&!0!==(null==(i=e.target)?void 0:i.isContentEditable);o&&(a&&e.preventDefault(),t.open(e))},t.openOnArrow=function(e){var n=t.state,r=n.focus,i=n.open;if(r&&!i){var o=Ll().getCode(e);o!==Ll().ArrowDown&&o!==Ll().ArrowUp||(e.preventDefault(),t.open(e))}},t.makeSelectedItemActive=function(e,n){var r=t.state,i=r.open,o=r.value,a=t.props.multiple,s=t.getSelectedItem(n),u=mu(s,"value"),l=mu(s,"disabled");if(Hu(u)||!i||l)return o;var c=a?p_(o,[u]):u;return(a?!!h_(c,o).length:c!==o)&&(t.setState({value:c}),t.handleChange(e,c),s["data-additional"]&&Mu(t.props,"onAddItem",e,ri({},t.props,{value:u}))),o},t.selectItemOnEnter=function(e){var n=t.props.search,r=t.state,i=r.open,o=r.selectedIndex;if(i&&(Ll().getCode(e)===Ll().Enter||!n&&Ll().getCode(e)===Ll().Spacebar)){e.preventDefault();var a=d_(I_({value:t.state.value,options:t.props.options,searchQuery:t.state.searchQuery,additionLabel:t.props.additionLabel,additionPosition:t.props.additionPosition,allowAdditions:t.props.allowAdditions,deburr:t.props.deburr,multiple:t.props.multiple,search:t.props.search}));if(!n||0!==a){var s=t.makeSelectedItemActive(e,o);t.setState({selectedIndex:R_({additionLabel:t.props.additionLabel,additionPosition:t.props.additionPosition,allowAdditions:t.props.allowAdditions,deburr:t.props.deburr,multiple:t.props.multiple,search:t.props.search,selectedIndex:o,value:s,options:t.props.options,searchQuery:""})}),t.closeOnChange(e),t.clearSearchQuery(),n&&Mu(t.searchRef.current,"focus")}}},t.removeItemOnBackspace=function(e){var n=t.props,r=n.multiple,i=n.search,o=t.state,a=o.searchQuery,s=o.value;if(Ll().getCode(e)===Ll().Backspace&&!a&&i&&r&&!ku(s)){e.preventDefault();var u=Yw(s);t.setState({value:u}),t.handleChange(e,u)}},t.closeOnDocumentClick=function(e){t.props.closeOnBlur&&(t.ref.current&&el(t.ref.current,e)||t.close())},t.handleMouseDown=function(e){t.isMouseDown=!0,Mu(t.props,"onMouseDown",e,t.props),document.addEventListener("mouseup",t.handleDocumentMouseUp)},t.handleDocumentMouseUp=function(){t.isMouseDown=!1,document.removeEventListener("mouseup",t.handleDocumentMouseUp)},t.handleClick=function(e){var n=t.props,r=n.minCharacters,i=n.search,o=t.state,a=o.open,s=o.searchQuery;if(Mu(t.props,"onClick",e,t.props),e.stopPropagation(),!i)return t.toggle(e);a?Mu(t.searchRef.current,"focus"):s.length>=r||1===r?t.open(e):Mu(t.searchRef.current,"focus")},t.handleIconClick=function(e){var n=t.props.clearable,r=t.hasValue();Mu(t.props,"onClick",e,t.props),e.stopPropagation(),n&&r?t.clearValue(e):t.toggle(e)},t.handleItemClick=function(e,n){var r=t.props,i=r.multiple,o=r.search,a=t.state.value,s=n.value;if(e.stopPropagation(),(i||n.disabled)&&e.nativeEvent.stopImmediatePropagation(),!n.disabled){var u=n["data-additional"],l=i?p_(t.state.value,[s]):s;(i?!!h_(l,a).length:l!==a)&&(t.setState({value:l}),t.handleChange(e,l)),t.clearSearchQuery(),Mu(o?t.searchRef.current:t.ref.current,"focus"),t.closeOnChange(e),u&&Mu(t.props,"onAddItem",e,ri({},t.props,{value:s}))}},t.handleFocus=function(e){t.state.focus||(Mu(t.props,"onFocus",e,t.props),t.setState({focus:!0}))},t.handleBlur=function(e){var n=mu(e,"currentTarget");if(!n||!n.contains(document.activeElement)){var r=t.props,i=r.closeOnBlur,o=r.multiple,a=r.selectOnBlur;t.isMouseDown||(Mu(t.props,"onBlur",e,t.props),a&&!o&&(t.makeSelectedItemActive(e,t.state.selectedIndex),i&&t.close()),t.setState({focus:!1}),t.clearSearchQuery())}},t.handleSearchChange=function(e,n){var r=n.value;e.stopPropagation();var i=t.props.minCharacters,o=t.state.open,a=r;Mu(t.props,"onSearchChange",e,ri({},t.props,{searchQuery:a})),t.setState({searchQuery:a,selectedIndex:0}),!o&&a.length>=i?t.open():o&&1!==i&&a.length<i&&t.close()},t.handleKeyDown=function(e){t.moveSelectionOnKeyDown(e),t.openOnArrow(e),t.openOnSpace(e),t.selectItemOnEnter(e),Mu(t.props,"onKeyDown",e)},t.getSelectedItem=function(e){var n=I_({value:t.state.value,options:t.props.options,searchQuery:t.state.searchQuery,additionLabel:t.props.additionLabel,additionPosition:t.props.additionPosition,allowAdditions:t.props.allowAdditions,deburr:t.props.deburr,multiple:t.props.multiple,search:t.props.search});return mu(n,"["+e+"]")},t.getItemByValue=function(e){var n=t.props.options;return Kw(n,{value:e})},t.getDropdownAriaOptions=function(){var e=t.props,n=e.loading,r=e.disabled,i=e.search,o=e.multiple,a={role:i?"combobox":"listbox","aria-busy":n,"aria-disabled":r,"aria-expanded":!!t.state.open};return"listbox"===a.role&&(a["aria-multiselectable"]=o),a},t.clearSearchQuery=function(){var e=t.state.searchQuery;void 0!==e&&""!==e&&t.setState({searchQuery:""})},t.handleLabelClick=function(e,n){e.stopPropagation(),t.setState({selectedLabel:n.value}),Mu(t.props,"onLabelClick",e,n)},t.handleLabelRemove=function(e,n){e.stopPropagation();var r=t.state.value,i=Ww(r,n.value);t.setState({value:i}),t.handleChange(e,i)},t.getSelectedIndexAfterMove=function(e,n){void 0===n&&(n=t.state.selectedIndex);var r=I_({value:t.state.value,options:t.props.options,searchQuery:t.state.searchQuery,additionLabel:t.props.additionLabel,additionPosition:t.props.additionPosition,allowAdditions:t.props.allowAdditions,deburr:t.props.deburr,multiple:t.props.multiple,search:t.props.search});if(void 0!==r&&!Hw(r,"disabled")){var i=r.length-1,o=n+e;return!t.props.wrapSelection&&(o>i||o<0)?o=n:o>i?o=0:o<0&&(o=i),r[o].disabled?t.getSelectedIndexAfterMove(e,o):o}},t.handleIconOverrides=function(e){var n=t.props.clearable;return{className:Bu(n&&t.hasValue()&&"clear",e.className),onClick:function(n){Mu(e,"onClick",n,e),t.handleIconClick(n)}}},t.clearValue=function(e){var n=t.props.multiple?[]:"";t.setState({value:n}),t.handleChange(e,n)},t.computeSearchInputTabIndex=function(){var e=t.props,n=e.disabled,r=e.tabIndex;return Hu(r)?n?-1:0:r},t.computeSearchInputWidth=function(){var e=t.state.searchQuery;if(t.sizerRef.current&&e){t.sizerRef.current.style.display="inline",t.sizerRef.current.textContent=e;var n=Math.ceil(t.sizerRef.current.getBoundingClientRect().width);return t.sizerRef.current.style.removeProperty("display"),n}},t.computeTabIndex=function(){var e=t.props,n=e.disabled,r=e.search,i=e.tabIndex;if(!r)return n?-1:Hu(i)?0:i},t.handleSearchInputOverrides=function(e){return{onChange:function(n,r){Mu(e,"onChange",n,r),t.handleSearchChange(n,r)}}},t.hasValue=function(){var e=t.props.multiple,n=t.state.value;return e?!ku(n):!Hu(n)&&""!==n},t.scrollSelectedItemIntoView=function(){if(t.ref.current){var e=t.ref.current.querySelector(".menu.visible");if(e){var n=e.querySelector(".item.selected");if(n){var r=n.offsetTop<e.scrollTop,i=n.offsetTop+n.clientHeight>e.scrollTop+e.clientHeight;r?e.scrollTop=n.offsetTop:i&&(e.scrollTop=n.offsetTop+n.clientHeight-e.clientHeight)}}}},t.setOpenDirection=function(){if(t.ref.current){var e=t.ref.current.querySelector(".menu.visible");if(e){var n=t.ref.current.getBoundingClientRect(),r=e.clientHeight,i=document.documentElement.clientHeight-n.top-n.height-r,o=n.top-r,a=i<0&&o>i;!a!==!t.state.upward&&t.setState({upward:a})}}},t.open=function(e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r=t.props,i=r.disabled,o=r.search;i||(o&&Mu(t.searchRef.current,"focus"),Mu(t.props,"onOpen",e,t.props),n&&t.setState({open:!0}),t.scrollSelectedItemIntoView())},t.close=function(e,n){void 0===n&&(n=t.handleClose),t.state.open&&(Mu(t.props,"onClose",e,t.props),t.setState({open:!1},n))},t.handleClose=function(){var e=document.activeElement===t.searchRef.current;!e&&t.ref.current&&t.ref.current.blur();var n=document.activeElement===t.ref.current,r=e||n;t.setState({focus:r})},t.toggle=function(e){return t.state.open?t.close(e):t.open(e)},t.renderText=function(){var e,n=t.props,r=n.multiple,i=n.placeholder,o=n.search,a=n.text,s=t.state,u=s.searchQuery,l=s.selectedIndex,c=s.value,f=s.open,d=t.hasValue(),h=Bu(i&&!d&&"default","text",o&&u&&"filtered"),p=i;return a?p=a:f&&!r?e=t.getSelectedItem(l):d&&(e=t.getItemByValue(c)),M_.create(e?B_(e):p,{defaultProps:{className:h}})},t.renderSearchInput=function(){var e=t.props,n=e.search,r=e.searchInput,o=t.state.searchQuery;return n&&i.createElement(ju,{innerRef:t.searchRef},C_.create(r,{defaultProps:{style:{width:t.computeSearchInputWidth()},tabIndex:t.computeSearchInputTabIndex(),value:o},overrideProps:t.handleSearchInputOverrides}))},t.renderSearchSizer=function(){var e=t.props,n=e.search,r=e.multiple;return n&&r&&i.createElement("span",{className:"sizer",ref:t.sizerRef})},t.renderLabels=function(){var e=t.props,n=e.multiple,r=e.renderLabel,i=t.state,o=i.selectedLabel,a=i.value;if(n&&!ku(a)){var s=Gl(a,t.getItemByValue);return Gl(Bw(s),(function(e,n){var i={active:e.value===o,as:"a",key:j_(e.key,e.value),onClick:t.handleLabelClick,onRemove:t.handleLabelRemove,value:e.value};return cc.create(r(e,n,i),{defaultProps:i})}))}},t.renderOptions=function(){var e=t.props,n=e.lazyLoad,r=e.multiple,o=e.search,a=e.noResultsMessage,s=t.state,u=s.open,l=s.selectedIndex,c=s.value;if(n&&!u)return null;var f=I_({value:t.state.value,options:t.props.options,searchQuery:t.state.searchQuery,additionLabel:t.props.additionLabel,additionPosition:t.props.additionPosition,allowAdditions:t.props.allowAdditions,deburr:t.props.deburr,multiple:t.props.multiple,search:t.props.search});if(null!==a&&o&&ku(f))return i.createElement("div",{className:"message"},a);var d=r?function(e){return us(c,e)}:function(e){return e===c};return Gl(f,(function(e,n){return __.create(ri({active:d(e.value),selected:l===n},e,{key:j_(e.key,e.value),style:ri({},e.style,{pointerEvents:"all"})}),{generateKey:!1,overrideProps:function(e){return{onClick:function(n,r){null==e.onClick||e.onClick(n,r),t.handleItemClick(n,r)}}}})}))},t.renderMenu=function(){var e=t.props,n=e.children,r=e.direction,o=e.header,a=t.state.open,s=t.getDropdownMenuAriaOptions();if(!pl(n)){var u=i.Children.only(n),l=Bu(r,al(a,"visible"),u.props.className);return(0,i.cloneElement)(u,ri({className:l},s))}return i.createElement(S_,ri({},s,{direction:r,open:a}),E_.create(o,{autoGenerateKey:!1}),t.renderOptions())},t}oi(t,e);var n=t.prototype;return n.getInitialAutoControlledState=function(){return{focus:!1,searchQuery:""}},t.getAutoControlledStateFromProps=function(e,t,n){var r={__options:e.options,__value:t.value};return(!Uu()(n.__value,t.value)||!m_(L_(e.options),L_(n.__options)))&&(r.selectedIndex=R_({additionLabel:e.additionLabel,additionPosition:e.additionPosition,allowAdditions:e.allowAdditions,deburr:e.deburr,multiple:e.multiple,search:e.search,selectedIndex:t.selectedIndex,value:t.value,options:e.options,searchQuery:t.searchQuery})),r},n.componentDidMount=function(){this.state.open&&this.open(null,!1)},n.shouldComponentUpdate=function(e,t){return!Uu()(e,this.props)||!Uu()(t,this.state)},n.componentDidUpdate=function(e,t){var n=this.props,r=n.closeOnBlur,i=n.minCharacters,o=n.openOnFocus,a=n.search;if(!t.focus&&this.state.focus){if(!this.isMouseDown){var s=!a||a&&1===i&&!this.state.open;o&&s&&this.open()}}else t.focus&&!this.state.focus&&!this.isMouseDown&&r&&this.close();!t.open&&this.state.open?(this.setOpenDirection(),this.scrollSelectedItemIntoView()):t.open&&this.state.open,t.selectedIndex!==this.state.selectedIndex&&this.scrollSelectedItemIntoView()},n.getDropdownMenuAriaOptions=function(){var e=this.props,t=e.search,n=e.multiple,r={};return t&&(r["aria-multiselectable"]=n,r.role="listbox"),r},n.render=function(){var e=this.props,n=e.basic,r=e.button,o=e.className,a=e.compact,s=e.disabled,u=e.error,l=e.fluid,c=e.floating,f=e.icon,d=e.inline,h=e.item,p=e.labeled,m=e.loading,g=e.multiple,y=e.pointing,v=e.search,b=e.selection,w=e.scrolling,_=e.simple,x=e.trigger,E=this.state,k=E.focus,S=E.open,A=E.upward,C=Bu("ui",al(S,"active visible"),al(s,"disabled"),al(u,"error"),al(m,"loading"),al(n,"basic"),al(r,"button"),al(a,"compact"),al(l,"fluid"),al(c,"floating"),al(d,"inline"),al(p,"labeled"),al(h,"item"),al(g,"multiple"),al(v,"search"),al(b,"selection"),al(_,"simple"),al(w,"scrolling"),al(A,"upward"),ul(y,"pointing"),"dropdown",o),D=ml(t,this.props),M=hl(t,this.props),F=this.getDropdownAriaOptions(M,this.props);return i.createElement(ju,{innerRef:this.ref},i.createElement(M,ri({},D,F,{className:C,onBlur:this.handleBlur,onClick:this.handleClick,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onFocus:this.handleFocus,onChange:this.handleChange,tabIndex:this.computeTabIndex()}),this.renderLabels(),this.renderSearchInput(),this.renderSearchSizer(),x||this.renderText(),Rl.create(f,{overrideProps:this.handleIconOverrides,autoGenerateKey:!1}),this.renderMenu(),S&&i.createElement(nl(),{name:"keydown",on:this.closeOnEscape}),S&&i.createElement(nl(),{name:"click",on:this.closeOnDocumentClick}),k&&i.createElement(nl(),{name:"keydown",on:this.removeItemOnBackspace})))},t}(yl);z_.handledProps=["additionLabel","additionPosition","allowAdditions","as","basic","button","children","className","clearable","closeOnBlur","closeOnChange","closeOnEscape","compact","deburr","defaultOpen","defaultSearchQuery","defaultSelectedLabel","defaultUpward","defaultValue","direction","disabled","error","floating","fluid","header","icon","inline","item","labeled","lazyLoad","loading","minCharacters","multiple","noResultsMessage","onAddItem","onBlur","onChange","onClick","onClose","onFocus","onLabelClick","onMouseDown","onOpen","onSearchChange","open","openOnFocus","options","placeholder","pointing","renderLabel","scrolling","search","searchInput","searchQuery","selectOnBlur","selectOnNavigation","selectedLabel","selection","simple","tabIndex","text","trigger","upward","value","wrapSelection"],z_.propTypes={},z_.defaultProps={additionLabel:"Add ",additionPosition:"top",closeOnBlur:!0,closeOnEscape:!0,deburr:!1,icon:"dropdown",minCharacters:1,noResultsMessage:"No results found.",openOnFocus:!0,renderLabel:B_,searchInput:"text",selectOnBlur:!0,selectOnNavigation:!0,wrapSelection:!0},z_.autoControlledProps=["open","searchQuery","selectedLabel","value","upward"],z_.Divider=b_,z_.Header=E_,z_.Item=__,z_.Menu=S_,z_.SearchInput=C_,z_.Text=M_;let U_=function(e){return e[e.Menu=0]="Menu",e[e.Dropdown=1]="Dropdown",e}({});function H_(e){const t=p({},e);return delete t.menuType,(0,Nh.jsx)(Nh.Fragment,{children:e.menuType===U_.Menu?(0,Nh.jsx)(gy.Item,p(p({},t),{},{children:e.children})):(0,Nh.jsx)(z_.Item,p(p({},t),{},{children:e.children}))})}var q_=n(9356),G_=n.n(q_),W_=n(8849),V_=n.n(W_),Q_=n(3586),$_=n.n(Q_);n(9531)(V_()),n(8106)(V_()),n(2625)(V_()),n(7312)(V_()),n(6960)(V_());function K_(e){return e.toLocaleLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\u0142/g,"l")}function Y_(e,t){return e.score!==t.score?t.score-e.score:$_()(e.ref,t.ref)}class X_{constructor(e){this.index=void 0,this.indiMap=void 0,this.famMap=void 0,this.indiMap=ep(e),this.famMap=tp(e)}initialize(){const e=this;this.index=V_()((function(){e.initMultiLingualLunrWithoutTrimmer(this,["de","en","fr","it","ru"]),this.ref("id"),this.field("id"),this.field("name",{boost:10}),this.field("normalizedName",{boost:8}),this.field("spouseLastName",{boost:2}),this.field("normalizedSpouseLastName",{boost:2}),e.indiMap.forEach((t=>{const n=[t.firstName,t.lastName].join(" "),r=function(e,t,n){return(e.fams||[]).map((e=>n.get(e))).map((e=>e&&e.husb)).map((e=>e&&t.get(e))).map((e=>e&&e.lastName)).join(" ")}(t,e.indiMap,e.famMap);this.add({id:t.id,name:n,normalizedName:K_(n),spouseLastName:r,normalizedSpouseLastName:K_(r)})}))}))}initMultiLingualLunrWithoutTrimmer(e,t){let n="";const r=[],i=[];t.forEach((e=>{const t=V_()[e];"en"===e?(n+="\\w",r.unshift(V_().stopWordFilter),r.push(V_().stemmer),i.push(V_().stemmer)):(n+=t.wordCharacters,t.stopWordFilter&&r.unshift(t.stopWordFilter),t.stemmer&&(r.push(t.stemmer),i.push(t.stemmer)))})),e.pipeline.reset(),e.pipeline.add.apply(e.pipeline,r),e.searchPipeline&&(e.searchPipeline.reset(),e.searchPipeline.add.apply(e.searchPipeline,i))}search(e){const t=e.split(" ").filter((e=>!!e)).map((e=>"".concat(e," ").concat(e,"*"))).join(" ");return this.index.search(t).sort(Y_).slice(0,8).map((e=>({id:e.ref,indi:this.indiMap.get(e.ref)})))}}const Z_=Ws&&new Ws;const J_=Z_?function(e,t){return Z_.set(e,t),e}:da;var ex=Object.create;const tx=function(){function e(){}return function(t){if(!Ni(t))return{};if(ex)return ex(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const nx=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=tx(e.prototype),r=e.apply(n,t);return Ni(r)?r:n}};const rx=function(e,t,n){var r=1&t,i=nx(e);return function t(){return(this&&this!==ui&&this instanceof t?i:e).apply(r?n:this,arguments)}};var ix=Math.max;const ox=function(e,t,n,r){for(var i=-1,o=e.length,a=n.length,s=-1,u=t.length,l=ix(o-a,0),c=Array(u+l),f=!r;++s<u;)c[s]=t[s];for(;++i<a;)(f||i<o)&&(c[n[i]]=e[i]);for(;l--;)c[s++]=e[i++];return c};var ax=Math.max;const sx=function(e,t,n,r){for(var i=-1,o=e.length,a=-1,s=n.length,u=-1,l=t.length,c=ax(o-s,0),f=Array(c+l),d=!r;++i<c;)f[i]=e[i];for(var h=i;++u<l;)f[h+u]=t[u];for(;++a<s;)(d||i<o)&&(f[h+n[a]]=e[i++]);return f};const ux=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r};const lx=function(){};function cx(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}cx.prototype=tx(lx.prototype),cx.prototype.constructor=cx;const fx=cx;const dx=Z_?function(e){return Z_.get(e)}:wl;const hx={};var px=Object.prototype.hasOwnProperty;const mx=function(e){for(var t=e.name+"",n=hx[t],r=px.call(hx,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t};function gx(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}gx.prototype=tx(lx.prototype),gx.prototype.constructor=gx;const yx=gx;const vx=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};const bx=function(e){if(e instanceof fx)return e.clone();var t=new yx(e.__wrapped__,e.__chain__);return t.__actions__=vx(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t};var wx=Object.prototype.hasOwnProperty;function _x(e){if(_i(e)&&!Di(e)&&!(e instanceof fx)){if(e instanceof yx)return e;if(wx.call(e,"__wrapped__"))return bx(e)}return new yx(e)}_x.prototype=lx.prototype,_x.prototype.constructor=_x;const xx=_x;const Ex=function(e){var t=mx(e),n=xx[t];if("function"!=typeof n||!(t in fx.prototype))return!1;if(e===n)return!0;var r=dx(n);return!!r&&e===r[0]};const kx=ma(J_);var Sx=/\{\n\/\* \[wrapped with (.+)\] \*/,Ax=/,? & /;const Cx=function(e){var t=e.match(Sx);return t?t[1].split(Ax):[]};var Dx=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;const Mx=function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Dx,"{\n/* [wrapped with "+t+"] */\n")};var Fx=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];const Ox=function(e,t){return Wl(Fx,(function(n){var r="_."+n[0];t&n[1]&&!vl(e,r)&&e.push(r)})),e.sort()};const Tx=function(e,t,n){var r=t+"";return ga(e,Mx(r,Ox(Cx(r),n)))};const Nx=function(e,t,n,r,i,o,a,s,u,l){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var f=[e,t,i,c?o:void 0,c?a:void 0,c?void 0:o,c?void 0:a,s,u,l],d=n.apply(void 0,f);return Ex(e)&&kx(d,f),d.placeholder=r,Tx(d,e,t)};const Px=function(e){return e.placeholder};var Ix=Math.min;const Rx=function(e,t){for(var n=e.length,r=Ix(t.length,n),i=vx(e);r--;){var o=t[r];e[r]=Go(o,n)?i[o]:void 0}return e};var jx="__lodash_placeholder__";const Lx=function(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==jx||(e[n]=jx,o[i++]=n)}return o};const Bx=function e(t,n,r,i,o,a,s,u,l,c){var f=128&n,d=1&n,h=2&n,p=24&n,m=512&n,g=h?void 0:nx(t);return function y(){for(var v=arguments.length,b=Array(v),w=v;w--;)b[w]=arguments[w];if(p)var _=Px(y),x=ux(b,_);if(i&&(b=ox(b,i,o,p)),a&&(b=sx(b,a,s,p)),v-=x,p&&v<c){var E=Lx(b,_);return Nx(t,n,e,y.placeholder,r,b,E,u,l,c-v)}var k=d?r:this,S=h?k[t]:t;return v=b.length,u?b=Rx(b,u):m&&v>1&&b.reverse(),f&&l<v&&(b.length=l),this&&this!==ui&&this instanceof y&&(S=g||nx(S)),S.apply(k,b)}};const zx=function(e,t,n){var r=nx(e);return function i(){for(var o=arguments.length,a=Array(o),s=o,u=Px(i);s--;)a[s]=arguments[s];var l=o<3&&a[0]!==u&&a[o-1]!==u?[]:Lx(a,u);return(o-=l.length)<n?Nx(e,t,Bx,i.placeholder,void 0,a,l,void 0,void 0,n-o):ua(this&&this!==ui&&this instanceof i?r:e,this,a)}};const Ux=function(e,t,n,r){var i=1&t,o=nx(e);return function t(){for(var a=-1,s=arguments.length,u=-1,l=r.length,c=Array(l+s),f=this&&this!==ui&&this instanceof t?o:e;++u<l;)c[u]=r[u];for(;s--;)c[u++]=arguments[++a];return ua(f,i?n:this,c)}};var Hx="__lodash_placeholder__",qx=128,Gx=Math.min;const Wx=function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==qx&&8==n||r==qx&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var s=t[3];if(s){var u=e[3];e[3]=u?ox(u,s,t[4]):s,e[4]=u?Lx(e[3],Hx):t[4]}return(s=t[5])&&(u=e[5],e[5]=u?sx(u,s,t[6]):s,e[6]=u?Lx(e[5],Hx):t[6]),(s=t[7])&&(e[7]=s),r&qx&&(e[8]=null==e[8]?t[8]:Gx(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e};var Vx=Math.max;const Qx=function(e,t,n,r,i,o,a,s){var u=2&t;if(!u&&"function"!=typeof e)throw new TypeError("Expected a function");var l=r?r.length:0;if(l||(t&=-97,r=i=void 0),a=void 0===a?a:Vx(Ia(a),0),s=void 0===s?s:Ia(s),l-=i?i.length:0,64&t){var c=r,f=i;r=i=void 0}var d=u?void 0:dx(e),h=[e,t,n,r,i,c,f,o,a,s];if(d&&Wx(h,d),e=h[0],t=h[1],n=h[2],r=h[3],i=h[4],!(s=h[9]=void 0===h[9]?u?0:e.length:Vx(h[9]-l,0))&&24&t&&(t&=-25),t&&1!=t)p=8==t||16==t?zx(e,t,s):32!=t&&33!=t||i.length?Bx.apply(void 0,h):Ux(e,t,n,r);else var p=rx(e,t,n);return Tx((d?J_:kx)(p,h),e,t)};var $x=Du((function(e,t){var n=Lx(t,Px($x));return Qx(e,64,void 0,t,n)}));$x.placeholder={};const Kx=$x;var Yx=function(e){function t(){for(var n,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(n=e.call.apply(e,[this].concat(o))||this).inputRef=(0,i.createRef)(),n.computeIcon=function(){var e=n.props,t=e.loading,r=e.icon;return Hu(r)?t?"spinner":void 0:r},n.computeTabIndex=function(){var e=n.props,t=e.disabled,r=e.tabIndex;return Hu(r)?t?-1:void 0:r},n.focus=function(e){return n.inputRef.current.focus(e)},n.select=function(){return n.inputRef.current.select()},n.handleChange=function(e){var t=mu(e,"target.value");Mu(n.props,"onChange",e,ri({},n.props,{value:t}))},n.handleChildOverrides=function(e,t){return ri({},t,e.props,{ref:function(t){Tu(e.ref,t),n.inputRef.current=t}})},n.partitionProps=function(){var e=n.props,r=e.disabled,i=e.type,o=n.computeTabIndex(),a=ml(t,n.props),s=Xl(a),u=s[0],l=s[1];return[ri({},u,{disabled:r,type:i,tabIndex:o,onChange:n.handleChange,ref:n.inputRef}),l]},n}return oi(t,e),t.prototype.render=function(){var e=this,n=this.props,r=n.action,o=n.actionPosition,a=n.children,s=n.className,u=n.disabled,l=n.error,c=n.fluid,f=n.focus,d=n.icon,h=n.iconPosition,p=n.input,m=n.inverted,g=n.label,y=n.labelPosition,v=n.loading,b=n.size,w=n.transparent,_=n.type,x=Bu("ui",b,al(u,"disabled"),al(l,"error"),al(c,"fluid"),al(f,"focus"),al(m,"inverted"),al(v,"loading"),al(w,"transparent"),sl(o,"action")||al(r,"action"),sl(h,"icon")||al(d||v,"icon"),sl(y,"labeled")||al(g,"labeled"),"input",s),E=hl(t,this.props),k=this.partitionProps(),S=k[0],A=k[1];if(!pl(a)){var C=Gl(i.Children.toArray(a),(function(t){return"input"!==t.type?t:(0,i.cloneElement)(t,e.handleChildOverrides(t,S))}));return i.createElement(E,ri({},A,{className:x}),C)}var D=vc.create(r,{autoGenerateKey:!1}),M=cc.create(g,{defaultProps:{className:Bu("label",us(y,"corner")&&y)},autoGenerateKey:!1});return i.createElement(E,ri({},A,{className:x}),"left"===o&&D,"right"!==y&&M,Fl(p||_,{defaultProps:S,autoGenerateKey:!1}),Rl.create(this.computeIcon(),{autoGenerateKey:!1}),"left"!==o&&D,"right"===y&&M)},t}(i.Component);Yx.handledProps=["action","actionPosition","as","children","className","disabled","error","fluid","focus","icon","iconPosition","input","inverted","label","labelPosition","loading","onChange","size","tabIndex","transparent","type"],Yx.propTypes={},Yx.defaultProps={type:"text"},Yx.create=Cl(Yx,(function(e){return{type:e}}));const Xx=Yx;function Zx(e){var t=e.categoryContent,n=e.resultsContent;return i.createElement(i.Fragment,null,i.createElement("div",{className:"name"},t),i.createElement("div",{className:"results"},n))}Zx.handledProps=["categoryContent","resultsContent"],Zx.propTypes={};const Jx=Zx;function eE(e){var t=e.active,n=e.children,r=e.className,o=e.content,a=e.layoutRenderer,s=e.renderer,u=Bu(al(t,"active"),"category",r),l=ml(eE,e),c=hl(eE,e),f=s(e),d=pl(n)?o:n;return i.createElement(c,ri({},l,{className:u}),a({categoryContent:f,resultsContent:d}))}eE.handledProps=["active","as","children","className","content","layoutRenderer","name","renderer","results"],eE.defaultProps={layoutRenderer:Jx,renderer:function(e){return e.name}},eE.propTypes={};const tE=eE;var nE=function(e){var t=e.image,n=e.price,r=e.title,o=e.description;return[t&&i.createElement("div",{key:"image",className:"image"},Ml(t,{autoGenerateKey:!1})),i.createElement("div",{key:"content",className:"content"},n&&i.createElement("div",{className:"price"},n),r&&i.createElement("div",{className:"title"},r),o&&i.createElement("div",{className:"description"},o))]};nE.handledProps=[];var rE=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleClick=function(e){var n=t.props.onClick;n&&n(e,t.props)},t}return oi(t,e),t.prototype.render=function(){var e=this.props,n=e.active,r=e.className,o=e.renderer,a=Bu(al(n,"active"),"result",r),s=ml(t,this.props),u=hl(t,this.props);return i.createElement(u,ri({},s,{className:a,onClick:this.handleClick}),o(this.props))},t}(i.Component);function iE(e){var t=e.children,n=e.className,r=e.content,o=Bu("results transition",n),a=ml(iE,e),s=hl(iE,e);return i.createElement(s,ri({},a,{className:o}),pl(t)?r:t)}rE.handledProps=["active","as","className","content","description","id","image","onClick","price","renderer","title"],rE.propTypes={},rE.defaultProps={renderer:nE},iE.handledProps=["as","children","className","content"],iE.propTypes={};const oE=iE;var aE=function(e){var t=e.input;return gl(t)?ri({},e,{input:{className:"prompt"}}):Ci(t)?ri({},e,{input:ri({},t,{className:Bu(t.className,"prompt")})}):e},sE=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleResultSelect=function(e,n){Mu(t.props,"onResultSelect",e,ri({},t.props,{result:n}))},t.handleSelectionChange=function(e){var n=t.getSelectedResult();Mu(t.props,"onSelectionChange",e,ri({},t.props,{result:n}))},t.closeOnEscape=function(e){Ll().getCode(e)===Ll().Escape&&(e.preventDefault(),t.close())},t.moveSelectionOnKeyDown=function(e){switch(Ll().getCode(e)){case Ll().ArrowDown:e.preventDefault(),t.moveSelectionBy(e,1);break;case Ll().ArrowUp:e.preventDefault(),t.moveSelectionBy(e,-1)}},t.selectItemOnEnter=function(e){if(Ll().getCode(e)===Ll().Enter){var n=t.getSelectedResult();n&&(e.preventDefault(),t.setValue(n.title),t.handleResultSelect(e,n),t.close())}},t.closeOnDocumentClick=function(e){t.close()},t.handleMouseDown=function(e){t.isMouseDown=!0,Mu(t.props,"onMouseDown",e,t.props),rl.sub("mouseup",t.handleDocumentMouseUp)},t.handleDocumentMouseUp=function(){t.isMouseDown=!1,rl.unsub("mouseup",t.handleDocumentMouseUp)},t.handleInputClick=function(e){e.nativeEvent.stopImmediatePropagation(),t.tryOpen()},t.handleItemClick=function(e,n){var r=n.id,i=t.getSelectedResult(r);e.nativeEvent.stopImmediatePropagation(),t.setValue(i.title),t.handleResultSelect(e,i),t.close()},t.handleItemMouseDown=function(e){e.preventDefault()},t.handleFocus=function(e){Mu(t.props,"onFocus",e,t.props),t.setState({focus:!0})},t.handleBlur=function(e){Mu(t.props,"onBlur",e,t.props),t.setState({focus:!1})},t.handleSearchChange=function(e){e.stopPropagation();var n=t.props.minCharacters,r=t.state.open,i=e.target.value;Mu(t.props,"onSearchChange",e,ri({},t.props,{value:i})),i.length<n?t.close():r||t.tryOpen(i),t.setValue(i)},t.getFlattenedResults=function(){var e=t.props,n=e.category,r=e.results;return n?xu(r,(function(e,t){return e.concat(t.results)}),[]):r},t.getSelectedResult=function(e){void 0===e&&(e=t.state.selectedIndex);var n=t.getFlattenedResults();return mu(n,e)},t.setValue=function(e){var n=t.props.selectFirstResult;t.setState({value:e,selectedIndex:n?0:-1})},t.moveSelectionBy=function(e,n){var r=t.state.selectedIndex,i=t.getFlattenedResults().length-1,o=r+n;o>i?o=0:o<0&&(o=i),t.setState({selectedIndex:o}),t.scrollSelectedItemIntoView(),t.handleSelectionChange(e)},t.scrollSelectedItemIntoView=function(){if(Wu()){var e=document.querySelector(".ui.search.active.visible .results.visible");if(e){var t=e.querySelector(".result.active");if(t){var n=t.offsetTop<e.scrollTop,r=t.offsetTop+t.clientHeight>e.scrollTop+e.clientHeight;n?e.scrollTop=t.offsetTop:r&&(e.scrollTop=t.offsetTop+t.clientHeight-e.clientHeight)}}}},t.tryOpen=function(e){void 0===e&&(e=t.state.value);var n=t.props.minCharacters;e.length<n||t.open()},t.open=function(){t.setState({open:!0})},t.close=function(){t.setState({open:!1})},t.renderSearchInput=function(e){var n=t.props,r=n.icon,i=n.input,o=n.placeholder,a=t.state.value;return Xx.create(i,{autoGenerateKey:!1,defaultProps:ri({},e,{autoComplete:"off",icon:r,onChange:t.handleSearchChange,onClick:t.handleInputClick,tabIndex:"0",value:a,placeholder:o}),overrideProps:aE})},t.renderNoResults=function(){var e=t.props,n=e.noResultsDescription,r=e.noResultsMessage;return i.createElement("div",{className:"message empty"},i.createElement("div",{className:"header"},r),n&&i.createElement("div",{className:"description"},n))},t.renderResult=function(e,n,r,o){var a=e.childKey,s=Dr(e,["childKey"]);void 0===o&&(o=0);var u=t.props.resultRenderer,l=t.state.selectedIndex,c=n+o;return i.createElement(rE,ri({key:null!=a?a:s.id||s.title,active:l===c,onClick:t.handleItemClick,onMouseDown:t.handleItemMouseDown,renderer:u},s,{id:c}))},t.renderResults=function(){var e=t.props.results;return Gl(e,t.renderResult)},t.renderCategories=function(){var e=t.props,n=e.categoryLayoutRenderer,r=e.categoryRenderer,o=e.results,a=t.state.selectedIndex,s=0;return Gl(o,(function(e){var o=e.childKey,u=Dr(e,["childKey"]),l=ri({key:null!=o?o:u.name,active:Ku(a,s,s+u.results.length),layoutRenderer:n,renderer:r},u),c=Kx(t.renderResult,s);return s+=u.results.length,i.createElement(tE,l,u.results.map(c))}))},t.renderMenuContent=function(){var e=t.props,n=e.category,r=e.showNoResults,i=e.results;return ku(i)?r?t.renderNoResults():null:n?t.renderCategories():t.renderResults()},t.renderResultsMenu=function(){var e=t.state.open?"visible":"",n=t.renderMenuContent();if(n)return i.createElement(oE,{className:e},n)},t}oi(t,e),t.getAutoControlledStateFromProps=function(e,t){if("undefined"!==typeof t.prevValue&&Uu()(t.prevValue,t.value))return{prevValue:t.value};var n=e.selectFirstResult?0:-1;return{prevValue:t.value,selectedIndex:n}};var n=t.prototype;return n.shouldComponentUpdate=function(e,t){return!Uu()(e,this.props)||!Uu()(t,this.state)},n.componentDidUpdate=function(e,t){!t.focus&&this.state.focus?(this.isMouseDown||this.tryOpen(),this.state.open&&rl.sub("keydown",[this.moveSelectionOnKeyDown,this.selectItemOnEnter])):t.focus&&!this.state.focus&&(this.isMouseDown||this.close(),rl.unsub("keydown",[this.moveSelectionOnKeyDown,this.selectItemOnEnter])),!t.open&&this.state.open?(this.open(),rl.sub("click",this.closeOnDocumentClick),rl.sub("keydown",[this.closeOnEscape,this.moveSelectionOnKeyDown,this.selectItemOnEnter])):t.open&&!this.state.open&&(this.close(),rl.unsub("click",this.closeOnDocumentClick),rl.unsub("keydown",[this.closeOnEscape,this.moveSelectionOnKeyDown,this.selectItemOnEnter]))},n.componentWillUnmount=function(){rl.unsub("click",this.closeOnDocumentClick),rl.unsub("keydown",[this.closeOnEscape,this.moveSelectionOnKeyDown,this.selectItemOnEnter])},n.render=function(){var e=this.state,n=e.searchClasses,r=e.focus,o=e.open,a=this.props,s=a.aligned,u=a.category,l=a.className,c=a.fluid,f=a.loading,d=a.size,h=Bu("ui",o&&"active visible",d,n,al(u,"category"),al(r,"focus"),al(c,"fluid"),al(f,"loading"),sl(s,"aligned"),"search",l),p=ml(t,this.props),m=hl(t,this.props),g=Xl(p,{htmlProps:$l}),y=g[0],v=g[1];return i.createElement(m,ri({},v,{className:h,onBlur:this.handleBlur,onFocus:this.handleFocus,onMouseDown:this.handleMouseDown}),this.renderSearchInput(y),this.renderResultsMenu())},t}(yl);function uE(e){const t=[e.indi.firstName,e.indi.lastName].join(" ").trim();return e.id.length>8?t:(0,Nh.jsxs)(Nh.Fragment,{children:[t," ",(0,Nh.jsxs)("i",{children:["(",e.id,")"]})]})}function lE(e){const[t,n]=(0,i.useState)([]),[r,o]=(0,i.useState)(""),a=(0,i.useRef)(void 0),s=Mh();function u(e){const t=Qh(e.birth,s),n=Qh(e.death,s);return n?"".concat(t," \u2013 ").concat(n):t}const l=(0,i.useRef)(G_()((function(e){if(!e)return;const t=a.current.search(e).map((e=>function(e){return{id:e.id,key:e.id,title:uE(e),description:u(e.indi)}}(e)));n(t)}),200));return(0,i.useEffect)((()=>{a.current=function(e){const t=new X_(e);return t.initialize(),t}(e.data)}),[e.data]),(0,Nh.jsx)(sE,{onSearchChange:(e,t)=>{return n=t.value,l.current(n),void o(n);var n},onResultSelect:(t,n)=>{return r=n.result.id,z("search_result_selected"),e.onSelection({id:r,generation:0}),void o("");var r},results:t,noResultsMessage:s.formatMessage({id:"menu.search.no_results",defaultMessage:"No results found"}),placeholder:s.formatMessage({id:"menu.search.placeholder",defaultMessage:"Search for people"}),selectFirstResult:!0,value:r,id:"search"})}sE.handledProps=["aligned","as","category","categoryLayoutRenderer","categoryRenderer","className","defaultOpen","defaultValue","fluid","icon","input","loading","minCharacters","noResultsDescription","noResultsMessage","onBlur","onFocus","onMouseDown","onResultSelect","onSearchChange","onSelectionChange","open","placeholder","resultRenderer","results","selectFirstResult","showNoResults","size","value"],sE.propTypes={},sE.defaultProps={icon:"search",input:"text",minCharacters:1,noResultsMessage:"No results found.",showNoResults:!0},sE.autoControlledProps=["open","value"],sE.Category=tE,sE.Result=rE,sE.Results=oE;var cE=n(69),fE=n.n(cE);function dE(e){const t=_m(),n=xm();const r=(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsx)(Rl,{name:"folder open"}),(0,Nh.jsx)(Th,{id:"menu.open_file",defaultMessage:"Open file"})]});return(0,Nh.jsxs)(Nh.Fragment,{children:[e.menuType===U_.Menu?(0,Nh.jsx)("label",{htmlFor:"fileInput",children:(0,Nh.jsx)(gy.Item,{as:"a",children:r})}):(0,Nh.jsx)(z_.Item,{as:"label",htmlFor:"fileInput",children:r}),(0,Nh.jsx)("input",{className:"hidden",type:"file",accept:".ged,.gdz,.gedzip,.zip,image/*",id:"fileInput",multiple:!0,onChange:async function(e){const r=e.target.files;if(!r||!r.length)return;const i=Array.from(r);e.target.value="",z("upload_files_selected",{event_value:r.length});const o=1===i.length?i[0]:i.find((e=>e.name.toLowerCase().endsWith(".ged")))||i[0],{gedcom:a,images:s}=await dw(o);i.filter((e=>e.name!==o.name&&function(e){const t=e.toLowerCase();return t.endsWith(".jpg")||t.endsWith(".png")}(e.name))).forEach((e=>s.set(e.name,URL.createObjectURL(e))));const u=Array.from(s.keys()).sort().join("|"),l=fE()(fE()(a)+u);(B.parse(n.search).file===l?t.replace:t.push)({pathname:"/view",search:B.stringify({file:l}),state:{data:a,images:s}})}})]})}const hE=function(e,t,n){return null==e?e:Wo(e,t,n)};var pE=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).inputRef=(0,i.createRef)(),t.labelRef=(0,i.createRef)(),t.canToggle=function(){var e=t.props,n=e.disabled,r=e.radio,i=e.readOnly,o=t.state.checked;return!n&&!i&&!(r&&o)},t.computeTabIndex=function(){var e=t.props,n=e.disabled,r=e.tabIndex;return Hu(r)?n?-1:0:r},t.handleClick=function(e){var n=t.props.id,r=t.state,i=r.checked,o=r.indeterminate,a=Mu(t.inputRef.current,"contains",e.target),s=Mu(t.labelRef.current,"contains",e.target),u=!s&&!a,l=!Hu(n);s&&l||Mu(t.props,"onClick",e,ri({},t.props,{checked:!i,indeterminate:!!o})),t.isClickFromMouse&&(t.isClickFromMouse=!1,s&&!l&&t.handleChange(e),u&&t.handleChange(e),s&&l&&e.stopPropagation())},t.handleChange=function(e){var n=t.state.checked;t.canToggle()&&(Mu(t.props,"onChange",e,ri({},t.props,{checked:!n,indeterminate:!1})),t.setState({checked:!n,indeterminate:!1}))},t.handleMouseDown=function(e){var n=t.state,r=n.checked,i=n.indeterminate;Mu(t.props,"onMouseDown",e,ri({},t.props,{checked:!!r,indeterminate:!!i})),e.defaultPrevented||Mu(t.inputRef.current,"focus"),e.preventDefault()},t.handleMouseUp=function(e){var n=t.state,r=n.checked,i=n.indeterminate;t.isClickFromMouse=!0,Mu(t.props,"onMouseUp",e,ri({},t.props,{checked:!!r,indeterminate:!!i}))},t.setIndeterminate=function(){var e=t.state.indeterminate;hE(t.inputRef,"current.indeterminate",!!e)},t}oi(t,e);var n=t.prototype;return n.componentDidMount=function(){this.setIndeterminate()},n.componentDidUpdate=function(){this.setIndeterminate()},n.render=function(){var e=this.props,n=e.className,r=e.disabled,o=e.label,a=e.id,s=e.name,u=e.radio,l=e.readOnly,c=e.slider,f=e.toggle,d=e.type,h=e.value,p=this.state,m=p.checked,g=p.indeterminate,y=Bu("ui",al(m,"checked"),al(r,"disabled"),al(g,"indeterminate"),al(Hu(o),"fitted"),al(u,"radio"),al(l,"read-only"),al(c,"slider"),al(f,"toggle"),"checkbox",n),v=ml(t,this.props),b=hl(t,this.props),w=Xl(v,{htmlProps:$l}),_=w[0],x=w[1],E=Ol(o,{defaultProps:{htmlFor:a},autoGenerateKey:!1})||i.createElement("label",{htmlFor:a});return i.createElement(b,ri({},x,{className:y,onClick:this.handleClick,onChange:this.handleChange,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp}),i.createElement(ju,{innerRef:this.inputRef},i.createElement("input",ri({},_,{checked:m,className:"hidden",disabled:r,id:a,name:s,readOnly:!0,tabIndex:this.computeTabIndex(),type:d,value:h}))),i.createElement(ju,{innerRef:this.labelRef},E))},t}(yl);function mE(e){var t=e.slider,n=e.toggle,r=e.type,o=ml(mE,e),a=!(t||n)||void 0;return i.createElement(pE,ri({},o,{type:r,radio:a,slider:t,toggle:n}))}pE.handledProps=["as","checked","className","defaultChecked","defaultIndeterminate","disabled","fitted","id","indeterminate","label","name","onChange","onClick","onMouseDown","onMouseUp","radio","readOnly","slider","tabIndex","toggle","type","value"],pE.propTypes={},pE.defaultProps={type:"checkbox"},pE.autoControlledProps=["checked","indeterminate"],mE.handledProps=["slider","toggle","type"],mE.propTypes={},mE.defaultProps={type:"radio"};const gE=mE;function yE(e){var t=e.children,n=e.className,r=e.content,o=e.control,a=e.disabled,s=e.error,u=e.inline,l=e.label,c=e.required,f=e.type,d=e.width,h=e.id,p=Bu(al(a,"disabled"),al(s,"error"),al(u,"inline"),al(c,"required"),dl(d,"wide"),"field",n),m=ml(yE,e),g=hl(yE,e),y=mu(s,"pointing","above"),v=cc.create(s,{autoGenerateKey:!1,defaultProps:{prompt:!0,pointing:y,id:h?h+"-error-message":void 0,role:"alert","aria-atomic":!0}}),b=("below"===y||"right"===y)&&v,w=("above"===y||"left"===y)&&v;if(Hu(o))return Hu(l)?i.createElement(g,ri({},m,{className:p,id:h}),pl(t)?r:t):i.createElement(g,ri({},m,{className:p,id:h}),b,Ol(l,{autoGenerateKey:!1}),w);var _={"aria-describedby":h&&s?h+"-error-message":null,"aria-invalid":!!s||void 0},x=ri({},m,{content:r,children:t,disabled:a,required:c,type:f,id:h});return"input"!==o||"checkbox"!==f&&"radio"!==f?o===pE||o===gE?i.createElement(g,{className:p},b,(0,i.createElement)(o,ri({},_,x,{label:l})),w):i.createElement(g,{className:p},Ol(l,{defaultProps:{htmlFor:h},autoGenerateKey:!1}),b,(0,i.createElement)(o,ri({},_,x)),w):i.createElement(g,{className:p},i.createElement("label",null,b,(0,i.createElement)(o,ri({},_,x))," ",l,w))}yE.handledProps=["as","children","className","content","control","disabled","error","id","inline","label","required","type","width"],yE.propTypes={};const vE=yE;function bE(e){var t=e.control,n=ml(bE,e),r=hl(bE,e);return i.createElement(r,ri({},n,{control:t}))}bE.handledProps=["as","control"],bE.propTypes={},bE.defaultProps={as:vE,control:vc};const wE=bE;function _E(e){var t=e.control,n=ml(_E,e),r=hl(_E,e);return i.createElement(r,ri({},n,{control:t}))}_E.handledProps=["as","control"],_E.propTypes={},_E.defaultProps={as:vE,control:pE};const xE=_E;function EE(e){var t=e.control,n=ml(EE,e),r=hl(EE,e);return i.createElement(r,ri({},n,{control:t}))}EE.handledProps=["as","control"],EE.propTypes={},EE.defaultProps={as:vE,control:z_};const kE=EE;function SE(e){var t=e.children,n=e.className,r=e.grouped,o=e.inline,a=e.unstackable,s=e.widths,u=Bu(al(r,"grouped"),al(o,"inline"),al(a,"unstackable"),dl(s,null,!0),"fields",n),l=ml(SE,e),c=hl(SE,e);return i.createElement(c,ri({},l,{className:u}),t)}SE.handledProps=["as","children","className","grouped","inline","unstackable","widths"],SE.propTypes={};const AE=SE;function CE(e){var t=e.control,n=ml(CE,e),r=hl(CE,e);return i.createElement(r,ri({},n,{control:t}))}CE.handledProps=["as","control"],CE.propTypes={},CE.defaultProps={as:vE,control:Xx};const DE=CE;function ME(e){var t=e.control,n=ml(ME,e),r=hl(ME,e);return i.createElement(r,ri({},n,{control:t}))}ME.handledProps=["as","control"],ME.propTypes={},ME.defaultProps={as:vE,control:gE};const FE=ME;function OE(e){return i.createElement(z_,ri({},e,{selection:!0}))}OE.handledProps=["options"],OE.propTypes={},OE.Divider=z_.Divider,OE.Header=z_.Header,OE.Item=z_.Item,OE.Menu=z_.Menu;const TE=OE;function NE(e){var t=e.control,n=e.options,r=ml(NE,e),o=hl(NE,e);return i.createElement(o,ri({},r,{control:t,options:n}))}NE.handledProps=["as","control","options"],NE.propTypes={},NE.defaultProps={as:vE,control:TE};const PE=NE;var IE=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).ref=(0,i.createRef)(),t.focus=function(){return t.ref.current.focus()},t.handleChange=function(e){var n=mu(e,"target.value");Mu(t.props,"onChange",e,ri({},t.props,{value:n}))},t.handleInput=function(e){var n=mu(e,"target.value");Mu(t.props,"onInput",e,ri({},t.props,{value:n}))},t}return oi(t,e),t.prototype.render=function(){var e=this.props,n=e.rows,r=e.value,o=ml(t,this.props),a=hl(t,this.props);return i.createElement(ju,{innerRef:this.ref},i.createElement(a,ri({},o,{onChange:this.handleChange,onInput:this.handleInput,rows:n,value:r})))},t}(i.Component);IE.handledProps=["as","onChange","onInput","rows","value"],IE.propTypes={},IE.defaultProps={as:"textarea",rows:3};const RE=IE;function jE(e){var t=e.control,n=ml(jE,e),r=hl(jE,e);return i.createElement(r,ri({},n,{control:t}))}jE.handledProps=["as","control"],jE.propTypes={},jE.defaultProps={as:vE,control:RE};const LE=jE;var BE=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleSubmit=function(e){"string"!==typeof t.props.action&&Mu(e,"preventDefault");for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];Mu.apply(void 0,[t.props,"onSubmit",e,t.props].concat(r))},t}return oi(t,e),t.prototype.render=function(){var e=this.props,n=e.action,r=e.children,o=e.className,a=e.error,s=e.inverted,u=e.loading,l=e.reply,c=e.size,f=e.success,d=e.unstackable,h=e.warning,p=e.widths,m=Bu("ui",c,al(a,"error"),al(s,"inverted"),al(u,"loading"),al(l,"reply"),al(f,"success"),al(d,"unstackable"),al(h,"warning"),dl(p,null,!0),"form",o),g=ml(t,this.props),y=hl(t,this.props);return i.createElement(y,ri({},g,{action:n,className:m,onSubmit:this.handleSubmit}),r)},t}(i.Component);BE.handledProps=["action","as","children","className","error","inverted","loading","onSubmit","reply","size","success","unstackable","warning","widths"],BE.propTypes={},BE.defaultProps={as:"form"},BE.Field=vE,BE.Button=wE,BE.Checkbox=xE,BE.Dropdown=kE,BE.Group=AE,BE.Input=DE,BE.Radio=FE,BE.Select=PE,BE.TextArea=LE;const zE=BE;function UE(e){const[t,n]=(0,i.useState)(!1),[r,o]=(0,i.useState)(""),a=(0,i.useRef)(null),s=_m();function u(){n(!1),r&&(z("url_selected"),s.push({pathname:"/view",search:B.stringify({url:r})}))}return(0,i.useEffect)((()=>{t&&(o(""),a.current.focus())}),[t]),(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsxs)(H_,{onClick:()=>n(!0),menuType:e.menuType,children:[(0,Nh.jsx)(Rl,{name:"cloud download"}),(0,Nh.jsx)(Th,{id:"menu.load_from_url",defaultMessage:"Load from URL"})]}),(0,Nh.jsxs)(Pc,{open:t,onClose:()=>n(!1),centered:!1,children:[(0,Nh.jsxs)(zc,{children:[(0,Nh.jsx)(Rl,{name:"cloud download"}),(0,Nh.jsx)(Th,{id:"load_from_url.title",defaultMessage:"Load from URL"})]}),(0,Nh.jsx)(Pc.Content,{children:(0,Nh.jsxs)(zE,{onSubmit:u,children:[(0,Nh.jsx)(Xx,{placeholder:"https://",fluid:!0,value:r,onChange:(e,t)=>o(t.value),ref:a}),(0,Nh.jsx)("p",{children:(0,Nh.jsx)(Th,{id:"load_from_url.comment",defaultMessage:"Data from the URL will be loaded through {link} to avoid CORS issues.",values:{link:(0,Nh.jsx)("a",{href:"https://topolaproxy.bieda.it/",children:"topolaproxy.bieda.it (cors-anywhere proxy)"})}})})]})}),(0,Nh.jsxs)(Pc.Actions,{children:[(0,Nh.jsx)(vc,{secondary:!0,onClick:()=>n(!1),children:(0,Nh.jsx)(Th,{id:"load_from_url.cancel",defaultMessage:"Cancel"})}),(0,Nh.jsx)(vc,{primary:!0,onClick:u,children:(0,Nh.jsx)(Th,{id:"load_from_url.load",defaultMessage:"Load"})})]})]})]})}const HE=n.p+"static/media/wikitree.7bffea3103bf60906fae.png";var qE=n(6214);function GE(e){const[t,n]=(0,i.useState)(!1),[r,o]=(0,i.useState)(""),a=(0,i.useRef)(null),s=_m(),u=xm();function l(){if(n(!1),!r)return;z("wikitree_id_selected");const e=B.parse(u.search),t=void 0===e.standalone||e.standalone;s.push({pathname:"/view",search:B.stringify({indi:r,source:"wikitree",standalone:t})})}function c(e,t){e.preventDefault(),o(t),a.current.focus()}return(0,i.useEffect)((()=>{t&&(o(""),a.current.focus())}),[t]),(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsxs)(H_,{menuType:e.menuType,onClick:()=>n(!0),children:[(0,Nh.jsx)("img",{src:HE,alt:"WikiTree logo",className:"menu-icon"}),(0,Nh.jsx)(Th,{id:"menu.select_wikitree_id",defaultMessage:"Select WikiTree ID"})]}),(0,Nh.jsxs)(Pc,{open:t,onClose:()=>n(!1),centered:!1,children:[(0,Nh.jsxs)(zc,{children:[(0,Nh.jsx)("img",{src:HE,alt:"WikiTree logo",style:{width:"32px",height:"32px"}}),(0,Nh.jsx)(Th,{id:"select_wikitree_id.title",defaultMessage:"Select WikiTree ID"})]}),(0,Nh.jsx)(Pc.Content,{children:(0,Nh.jsxs)(zE,{onSubmit:l,children:[(0,Nh.jsx)("p",{children:(0,Nh.jsx)(Th,{id:"select_wikitree_id.comment",defaultMessage:"Enter a {wikiTreeLink} profile ID. Examples: {example1}, {example2}.",values:{wikiTreeLink:(0,Nh.jsx)("a",{href:"https://wikitree.com/",target:"_blank",rel:"noopener noreferrer",children:"WikiTree"}),example1:(0,Nh.jsx)("span",{onClick:e=>c(e,"Wojtyla-13"),className:"link-span",children:"Wojtyla-13"}),example2:(0,Nh.jsx)("span",{onClick:e=>c(e,"Sk\u0142odowska-2"),className:"link-span",children:"Sk\u0142odowska-2"})}})}),(0,Nh.jsx)(Xx,{fluid:!0,value:r,onChange:(e,t)=>o(t.value),ref:a})]})}),(0,Nh.jsxs)(Pc.Actions,{children:[(0,Nh.jsx)(vc,{secondary:!0,onClick:()=>n(!1),children:(0,Nh.jsx)(Th,{id:"select_wikitree_id.cancel",defaultMessage:"Cancel"})}),(0,Nh.jsx)(vc,{primary:!0,onClick:l,children:(0,Nh.jsx)(Th,{id:"select_wikitree_id.load",defaultMessage:"Load"})})]})]})]})}function WE(e){const t=Mh();const n=(0,qE.getLoggedInUserName)();if(!n)return(0,Nh.jsx)(Nh.Fragment,{children:(0,Nh.jsxs)(H_,{menuType:e.menuType,onClick:function(){const e="".concat("https://apps.wikitree.com/apps/wiech13/topola-viewer").concat(window.location.hash);(0,qE.navigateToLoginPage)(e)},children:[(0,Nh.jsx)("img",{src:HE,alt:"WikiTree logo",className:"menu-icon"}),(0,Nh.jsx)(Th,{id:"menu.wikitree_login",defaultMessage:"Log in to WikiTree"})]})});const r=t.formatMessage({id:"menu.wikitree_popup_username",defaultMessage:"Logged in to WikiTree as {username}"},{username:n});return(0,Nh.jsxs)(H_,{menuType:e.menuType,title:r,children:[(0,Nh.jsx)("img",{src:HE,alt:"WikiTree logo",className:"menu-icon"}),(0,Nh.jsx)(Th,{id:"menu.wikitree_logged_in",defaultMessage:"Logged in"})]})}var VE=function(e){return e[e.LARGE=0]="LARGE",e[e.SMALL=1]="SMALL",e}(VE||{});function QE(e){const t=_m(),n=xm();function r(e){const r=B.parse(n.search);r.view!==e&&(r.view=e,n.search=B.stringify(r),t.push(n))}function i(t){if(!e.showingChart)return null;const n=(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsxs)(z_.Item,{onClick:()=>r("hourglass"),children:[(0,Nh.jsx)(Rl,{name:"hourglass"}),(0,Nh.jsx)(Th,{id:"menu.hourglass",defaultMessage:"Hourglass chart"})]}),e.allowAllRelativesChart?(0,Nh.jsxs)(z_.Item,{onClick:()=>r("relatives"),children:[(0,Nh.jsx)(Rl,{name:"users"}),(0,Nh.jsx)(Th,{id:"menu.relatives",defaultMessage:"All relatives"})]}):null,(0,Nh.jsxs)(z_.Item,{onClick:()=>r("fancy"),children:[(0,Nh.jsx)(Rl,{name:"users"}),(0,Nh.jsx)(Th,{id:"menu.fancy",defaultMessage:"Fancy tree (experimental)"})]})]});switch(t){case VE.LARGE:return(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsxs)(gy.Item,{onClick:e.eventHandlers.onPrint,children:[(0,Nh.jsx)(Rl,{name:"print"}),(0,Nh.jsx)(Th,{id:"menu.print",defaultMessage:"Print"})]}),(0,Nh.jsx)(z_,{trigger:(0,Nh.jsxs)("div",{children:[(0,Nh.jsx)(Rl,{name:"download"}),(0,Nh.jsx)(Th,{id:"menu.download",defaultMessage:"Download"})]}),className:"item",children:(0,Nh.jsxs)(z_.Menu,{children:[(0,Nh.jsx)(z_.Item,{onClick:e.eventHandlers.onDownloadPdf,children:(0,Nh.jsx)(Th,{id:"menu.pdf_file",defaultMessage:"PDF file"})}),(0,Nh.jsx)(z_.Item,{onClick:e.eventHandlers.onDownloadPng,children:(0,Nh.jsx)(Th,{id:"menu.png_file",defaultMessage:"PNG file"})}),(0,Nh.jsx)(z_.Item,{onClick:e.eventHandlers.onDownloadSvg,children:(0,Nh.jsx)(Th,{id:"menu.svg_file",defaultMessage:"SVG file"})})]})}),(0,Nh.jsx)(z_,{trigger:(0,Nh.jsxs)("div",{children:[(0,Nh.jsx)(Rl,{name:"eye"}),(0,Nh.jsx)(Th,{id:"menu.view",defaultMessage:"View"})]}),className:"item",children:(0,Nh.jsx)(z_.Menu,{children:n})}),(0,Nh.jsx)(lE,p({data:e.data,onSelection:e.eventHandlers.onSelection},e))]});case VE.SMALL:return(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsxs)(z_.Item,{onClick:e.eventHandlers.onPrint,children:[(0,Nh.jsx)(Rl,{name:"print"}),(0,Nh.jsx)(Th,{id:"menu.print",defaultMessage:"Print"})]}),(0,Nh.jsx)(z_.Divider,{}),(0,Nh.jsxs)(z_.Item,{onClick:e.eventHandlers.onDownloadPdf,children:[(0,Nh.jsx)(Rl,{name:"download"}),(0,Nh.jsx)(Th,{id:"menu.download_pdf",defaultMessage:"Download PDF"})]}),(0,Nh.jsxs)(z_.Item,{onClick:e.eventHandlers.onDownloadPng,children:[(0,Nh.jsx)(Rl,{name:"download"}),(0,Nh.jsx)(Th,{id:"menu.download_png",defaultMessage:"Download PNG"})]}),(0,Nh.jsxs)(z_.Item,{onClick:e.eventHandlers.onDownloadSvg,children:[(0,Nh.jsx)(Rl,{name:"download"}),(0,Nh.jsx)(Th,{id:"menu.download_svg",defaultMessage:"Download SVG"})]}),(0,Nh.jsx)(z_.Divider,{}),n,(0,Nh.jsx)(z_.Divider,{})]})}}function o(){return(0,Nh.jsx)(gy.Item,{children:(0,Nh.jsx)("b",{children:"Topola Genealogy"})})}function a(t){if(!e.standalone&&e.showWikiTreeMenus)switch(t){case VE.LARGE:return(0,Nh.jsx)(GE,p({menuType:U_.Menu},e));case VE.SMALL:return(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsx)(GE,p({menuType:U_.Dropdown},e)),(0,Nh.jsx)(z_.Divider,{})]})}if(!e.standalone)return null;switch(t){case VE.LARGE:return e.showingChart?(0,Nh.jsx)(z_,{trigger:(0,Nh.jsxs)("div",{children:[(0,Nh.jsx)(Rl,{name:"folder open"}),(0,Nh.jsx)(Th,{id:"menu.open",defaultMessage:"Open"})]}),className:"item",children:(0,Nh.jsxs)(z_.Menu,{children:[(0,Nh.jsx)(dE,p({menuType:U_.Dropdown},e)),(0,Nh.jsx)(UE,p({menuType:U_.Dropdown},e)),(0,Nh.jsx)(GE,p({menuType:U_.Dropdown},e))]})}):(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsx)(dE,p({menuType:U_.Menu},e)),(0,Nh.jsx)(UE,p({menuType:U_.Menu},e)),(0,Nh.jsx)(GE,p({menuType:U_.Menu},e))]});case VE.SMALL:return(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsx)(dE,p({menuType:U_.Dropdown},e)),(0,Nh.jsx)(UE,p({menuType:U_.Dropdown},e)),(0,Nh.jsx)(GE,p({menuType:U_.Dropdown},e)),(0,Nh.jsx)(z_.Divider,{})]})}}function s(t){return e.showWikiTreeMenus?(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsx)(WE,p({menuType:t===VE.SMALL?U_.Dropdown:U_.Menu},e)),t===VE.SMALL?(0,Nh.jsx)(z_.Divider,{}):null]}):null}return(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsx)(gy,{as:Tw,greaterThanOrEqual:"large",attached:"top",inverted:!0,color:"blue",size:"large",children:(0,Nh.jsxs)(Nh.Fragment,{children:[e.standalone?(0,Nh.jsx)(Mm,{to:"/",children:o()}):null,a(VE.LARGE),i(VE.LARGE),(0,Nh.jsxs)(gy.Menu,{position:"right",children:[s(VE.LARGE),(0,Nh.jsx)(gy.Item,{href:"https://github.com/PeWu/topola-viewer",target:"_blank",rel:"noopener noreferrer",children:(0,Nh.jsx)(Th,{id:"menu.github",defaultMessage:"GitHub project"})})]})]})}),(0,Nh.jsx)(gy,{as:Tw,at:"small",attached:"top",inverted:!0,color:"blue",size:"large",children:(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsx)(z_,{trigger:(0,Nh.jsx)("div",{children:(0,Nh.jsx)(Rl,{name:"sidebar"})}),className:"item",icon:null,children:(0,Nh.jsxs)(z_.Menu,{children:[a(VE.SMALL),i(VE.SMALL),s(VE.SMALL),(0,Nh.jsx)(z_.Item,{href:"https://github.com/PeWu/topola-viewer",target:"_blank",rel:"noopener noreferrer",children:(0,Nh.jsx)(Th,{id:"menu.github",defaultMessage:"GitHub project"})})]})}),e.standalone?(0,Nh.jsx)(Mm,{to:"/",children:o()}):o()]})})]})}let $E=function(e){return e[e.NO_COLOR=0]="NO_COLOR",e[e.COLOR_BY_SEX=1]="COLOR_BY_SEX",e[e.COLOR_BY_GENERATION=2]="COLOR_BY_GENERATION",e}({}),KE=function(e){return e[e.HIDE=0]="HIDE",e[e.SHOW=1]="SHOW",e}({}),YE=function(e){return e[e.HIDE=0]="HIDE",e[e.SHOW=1]="SHOW",e}({});const XE={color:$E.COLOR_BY_GENERATION,id:KE.SHOW,sex:YE.SHOW},ZE=new Map([["n",$E.NO_COLOR],["g",$E.COLOR_BY_GENERATION],["s",$E.COLOR_BY_SEX]]),JE=new Map;ZE.forEach(((e,t)=>JE.set(e,t)));const ek=new Map([["h",KE.HIDE],["s",KE.SHOW]]),tk=new Map;ek.forEach(((e,t)=>tk.set(e,t)));const nk=new Map([["h",YE.HIDE],["s",YE.SHOW]]),rk=new Map;function ik(e){var t,n,r,i,o,a;const s=t=>{const n=e[t];return"string"===typeof n?n:void 0};return{color:null!==(t=ZE.get(null!==(n=s("c"))&&void 0!==n?n:""))&&void 0!==t?t:XE.color,id:null!==(r=ek.get(null!==(i=s("i"))&&void 0!==i?i:""))&&void 0!==r?r:XE.id,sex:null!==(o=nk.get(null!==(a=s("s"))&&void 0!==a?a:""))&&void 0!==o?o:XE.sex}}function ok(e){return(0,Nh.jsx)(zE,{className:"details",children:(0,Nh.jsxs)(Km.Group,{children:[(0,Nh.jsx)(Km,{children:(0,Nh.jsxs)(Km.Content,{children:[(0,Nh.jsx)(zc,{sub:!0,children:(0,Nh.jsx)(Th,{id:"config.colors",defaultMessage:"Colors"})}),(0,Nh.jsx)(zE.Field,{className:"no-margin",children:(0,Nh.jsx)(pE,{radio:!0,label:(0,Nh.jsx)(Th,{tagName:"label",id:"config.colors.NO_COLOR",defaultMessage:"none"}),name:"checkboxRadioGroup",value:"none",checked:e.config.color===$E.NO_COLOR,onClick:()=>e.onChange(p(p({},e.config),{},{color:$E.NO_COLOR}))})}),(0,Nh.jsx)(zE.Field,{className:"no-margin",children:(0,Nh.jsx)(pE,{radio:!0,label:(0,Nh.jsx)(Th,{tagName:"label",id:"config.colors.COLOR_BY_GENERATION",defaultMessage:"by generation"}),name:"checkboxRadioGroup",value:"generation",checked:e.config.color===$E.COLOR_BY_GENERATION,onClick:()=>e.onChange(p(p({},e.config),{},{color:$E.COLOR_BY_GENERATION}))})}),(0,Nh.jsx)(zE.Field,{className:"no-margin",children:(0,Nh.jsx)(pE,{radio:!0,label:(0,Nh.jsx)(Th,{tagName:"label",id:"config.colors.COLOR_BY_SEX",defaultMessage:"by sex"}),name:"checkboxRadioGroup",value:"gender",checked:e.config.color===$E.COLOR_BY_SEX,onClick:()=>e.onChange(p(p({},e.config),{},{color:$E.COLOR_BY_SEX}))})})]})}),(0,Nh.jsx)(Km,{children:(0,Nh.jsxs)(Km.Content,{children:[(0,Nh.jsx)(zc,{sub:!0,children:(0,Nh.jsx)(Th,{id:"config.ids",defaultMessage:"IDs"})}),(0,Nh.jsx)(zE.Field,{className:"no-margin",children:(0,Nh.jsx)(pE,{radio:!0,label:(0,Nh.jsx)(Th,{tagName:"label",id:"config.ids.HIDE",defaultMessage:"hide"}),name:"checkboxRadioGroup",value:"hide",checked:e.config.id===KE.HIDE,onClick:()=>e.onChange(p(p({},e.config),{},{id:KE.HIDE}))})}),(0,Nh.jsx)(zE.Field,{className:"no-margin",children:(0,Nh.jsx)(pE,{radio:!0,label:(0,Nh.jsx)(Th,{tagName:"label",id:"config.ids.SHOW",defaultMessage:"show"}),name:"checkboxRadioGroup",value:"show",checked:e.config.id===KE.SHOW,onClick:()=>e.onChange(p(p({},e.config),{},{id:KE.SHOW}))})})]})}),(0,Nh.jsx)(Km,{children:(0,Nh.jsxs)(Km.Content,{children:[(0,Nh.jsx)(zc,{sub:!0,children:(0,Nh.jsx)(Th,{id:"config.sex",defaultMessage:"Sex"})}),(0,Nh.jsx)(zE.Field,{className:"no-margin",children:(0,Nh.jsx)(pE,{radio:!0,label:(0,Nh.jsx)(Th,{tagName:"label",id:"config.sex.HIDE",defaultMessage:"hide"}),name:"checkboxRadioGroup",value:"hide",checked:e.config.sex===YE.HIDE,onClick:()=>e.onChange(p(p({},e.config),{},{sex:YE.HIDE}))})}),(0,Nh.jsx)(zE.Field,{className:"no-margin",children:(0,Nh.jsx)(pE,{radio:!0,label:(0,Nh.jsx)(Th,{tagName:"label",id:"config.sex.SHOW",defaultMessage:"show"}),name:"checkboxRadioGroup",value:"show",checked:e.config.sex===YE.SHOW,onClick:()=>e.onChange(p(p({},e.config),{},{sex:YE.SHOW}))})})]})})]})})}nk.forEach(((e,t)=>rk.set(e,t)));var ak=n(9253),sk=n(1470),uk=n(5760),lk=n(4691),ck=n(4935),fk=n(944),dk=n(1082),hk=n(4221);function pk(e){return((e=Math.exp(e))+1/e)/2}const mk=function e(t,n,r){function i(e,i){var o,a,s=e[0],u=e[1],l=e[2],c=i[0],f=i[1],d=i[2],h=c-s,p=f-u,m=h*h+p*p;if(m<1e-12)a=Math.log(d/l)/t,o=function(e){return[s+e*h,u+e*p,l*Math.exp(t*e*a)]};else{var g=Math.sqrt(m),y=(d*d-l*l+r*m)/(2*l*n*g),v=(d*d-l*l-r*m)/(2*d*n*g),b=Math.log(Math.sqrt(y*y+1)-y),w=Math.log(Math.sqrt(v*v+1)-v);a=(w-b)/t,o=function(e){var r,i=e*a,o=pk(b),c=l/(n*g)*(o*(r=t*i+b,((r=Math.exp(2*r))-1)/(r+1))-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+c*h,u+c*p,l*o/pk(t*i+b)]}}return o.duration=1e3*a*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4);var gk=n(5378);const yk=e=>()=>e;function vk(e,t){let{sourceEvent:n,target:r,transform:i,dispatch:o}=t;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function bk(e,t,n){this.k=e,this.x=t,this.y=n}bk.prototype={constructor:bk,scale:function(e){return 1===e?this:new bk(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new bk(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var wk=new bk(1,0,0);function _k(e){for(;!e.__zoom;)if(!(e=e.parentNode))return wk;return e.__zoom}function xk(e){e.stopImmediatePropagation()}function Ek(e){e.preventDefault(),e.stopImmediatePropagation()}function kk(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function Sk(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function Ak(){return this.__zoom||wk}function Ck(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Dk(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mk(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function Fk(){var e,t,n,r=kk,i=Sk,o=Mk,a=Ck,s=Dk,u=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],c=250,f=mk,d=(0,dk.A)("start","zoom","end"),h=0,p=10;function m(e){e.property("__zoom",Ak).on("wheel.zoom",x,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",k).filter(s).on("touchstart.zoom",S).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",C).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(e,t){return(t=Math.max(u[0],Math.min(u[1],t)))===e.k?e:new bk(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new bk(e.k,r,i)}function v(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function b(e,t,n,r){e.on("start.zoom",(function(){w(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,o=arguments,a=w(e,o).event(r),s=i.apply(e,o),u=null==n?v(s):"function"===typeof n?n.apply(e,o):n,l=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),c=e.__zoom,d="function"===typeof t?t.apply(e,o):t,h=f(c.invert(u).concat(l/c.k),d.invert(u).concat(l/d.k));return function(e){if(1===e)e=d;else{var t=h(e),n=l/t[2];e=new bk(n,u[0]-t[0]*n,u[1]-t[1]*n)}a.zoom(null,e)}}))}function w(e,t,n){return!n&&e.__zooming||new _(e,t)}function _(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function x(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(r.apply(this,arguments)){var s=w(this,n).event(e),c=this.__zoom,f=Math.max(u[0],Math.min(u[1],c.k*Math.pow(2,a.apply(this,arguments)))),d=(0,gk.A)(e);if(s.wheel)s.mouse[0][0]===d[0]&&s.mouse[0][1]===d[1]||(s.mouse[1]=c.invert(s.mouse[0]=d)),clearTimeout(s.wheel);else{if(c.k===f)return;s.mouse=[d,c.invert(d)],(0,fk.interrupt)(this),s.start()}Ek(e),s.wheel=setTimeout((function(){s.wheel=null,s.end()}),150),s.zoom("mouse",o(y(g(c,f),s.mouse[0],s.mouse[1]),s.extent,l))}}function E(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];if(!n&&r.apply(this,arguments)){var s=e.currentTarget,u=w(this,i,!0).event(e),c=(0,ck.A)(e.view).on("mousemove.zoom",(function(e){if(Ek(e),!u.moved){var t=e.clientX-d,n=e.clientY-p;u.moved=t*t+n*n>h}u.event(e).zoom("mouse",o(y(u.that.__zoom,u.mouse[0]=(0,gk.A)(e,s),u.mouse[1]),u.extent,l))}),!0).on("mouseup.zoom",(function(e){c.on("mousemove.zoom mouseup.zoom",null),(0,hk.y)(e.view,u.moved),Ek(e),u.event(e).end()}),!0),f=(0,gk.A)(e,s),d=e.clientX,p=e.clientY;(0,hk.A)(e.view),xk(e),u.mouse=[f,this.__zoom.invert(f)],(0,fk.interrupt)(this),u.start()}}function k(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];if(r.apply(this,arguments)){var s=this.__zoom,u=(0,gk.A)(e.changedTouches?e.changedTouches[0]:e,this),f=s.invert(u),d=s.k*(e.shiftKey?.5:2),h=o(y(g(s,d),u,f),i.apply(this,n),l);Ek(e),c>0?(0,ck.A)(this).transition().duration(c).call(b,h,u,e):(0,ck.A)(this).call(m.transform,h,u,e)}}function S(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(r.apply(this,arguments)){var s,u,l,c,f=n.touches,d=f.length,h=w(this,o,n.changedTouches.length===d).event(n);for(xk(n),u=0;u<d;++u)l=f[u],c=[c=(0,gk.A)(l,this),this.__zoom.invert(c),l.identifier],h.touch0?h.touch1||h.touch0[2]===c[2]||(h.touch1=c,h.taps=0):(h.touch0=c,s=!0,h.taps=1+!!e);e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=c[0],e=setTimeout((function(){e=null}),500)),(0,fk.interrupt)(this),h.start())}}function A(e){if(this.__zooming){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,a,s,u,c=w(this,n).event(e),f=e.changedTouches,d=f.length;for(Ek(e),i=0;i<d;++i)a=f[i],s=(0,gk.A)(a,this),c.touch0&&c.touch0[2]===a.identifier?c.touch0[0]=s:c.touch1&&c.touch1[2]===a.identifier&&(c.touch1[0]=s);if(a=c.that.__zoom,c.touch1){var h=c.touch0[0],p=c.touch0[1],m=c.touch1[0],v=c.touch1[1],b=(b=m[0]-h[0])*b+(b=m[1]-h[1])*b,_=(_=v[0]-p[0])*_+(_=v[1]-p[1])*_;a=g(a,Math.sqrt(b/_)),s=[(h[0]+m[0])/2,(h[1]+m[1])/2],u=[(p[0]+v[0])/2,(p[1]+v[1])/2]}else{if(!c.touch0)return;s=c.touch0[0],u=c.touch0[1]}c.zoom("touch",o(y(a,s,u),c.extent,l))}}function C(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.__zooming){var a,s,u=w(this,i).event(e),l=e.changedTouches,c=l.length;for(xk(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),500),a=0;a<c;++a)s=l[a],u.touch0&&u.touch0[2]===s.identifier?delete u.touch0:u.touch1&&u.touch1[2]===s.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(s=(0,gk.A)(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<p)){var f=(0,ck.A)(this).on("dblclick.zoom");f&&f.apply(this,arguments)}}}return m.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",Ak),e!==i?b(e,t,n,r):i.interrupt().each((function(){w(this,arguments).event(r).start().zoom(null,"function"===typeof t?t.apply(this,arguments):t).end()}))},m.scaleBy=function(e,t,n,r){m.scaleTo(e,(function(){return this.__zoom.k*("function"===typeof t?t.apply(this,arguments):t)}),n,r)},m.scaleTo=function(e,t,n,r){m.transform(e,(function(){var e=i.apply(this,arguments),r=this.__zoom,a=null==n?v(e):"function"===typeof n?n.apply(this,arguments):n,s=r.invert(a),u="function"===typeof t?t.apply(this,arguments):t;return o(y(g(r,u),a,s),e,l)}),n,r)},m.translateBy=function(e,t,n,r){m.transform(e,(function(){return o(this.__zoom.translate("function"===typeof t?t.apply(this,arguments):t,"function"===typeof n?n.apply(this,arguments):n),i.apply(this,arguments),l)}),null,r)},m.translateTo=function(e,t,n,r,a){m.transform(e,(function(){var e=i.apply(this,arguments),a=this.__zoom,s=null==r?v(e):"function"===typeof r?r.apply(this,arguments):r;return o(wk.translate(s[0],s[1]).scale(a.k).translate("function"===typeof t?-t.apply(this,arguments):-t,"function"===typeof n?-n.apply(this,arguments):-n),e,l)}),r,a)},_.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=(0,ck.A)(this.that).datum();d.call(e,this.that,new vk(e,{sourceEvent:this.sourceEvent,target:m,type:e,transform:this.that.__zoom,dispatch:d}),t)}},m.wheelDelta=function(e){return arguments.length?(a="function"===typeof e?e:yk(+e),m):a},m.filter=function(e){return arguments.length?(r="function"===typeof e?e:yk(!!e),m):r},m.touchable=function(e){return arguments.length?(s="function"===typeof e?e:yk(!!e),m):s},m.extent=function(e){return arguments.length?(i="function"===typeof e?e:yk([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),m):i},m.scaleExtent=function(e){return arguments.length?(u[0]=+e[0],u[1]=+e[1],m):[u[0],u[1]]},m.translateExtent=function(e){return arguments.length?(l[0][0]=+e[0][0],l[1][0]=+e[1][0],l[0][1]=+e[0][1],l[1][1]=+e[1][1],m):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},m.constrain=function(e){return arguments.length?(o=e,m):o},m.duration=function(e){return arguments.length?(c=+e,m):c},m.interpolate=function(e){return arguments.length?(f=e,m):f},m.on=function(){var e=d.on.apply(d,arguments);return e===d?m:e},m.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,m):Math.sqrt(h)},m.tapDistance=function(e){return arguments.length?(p=+e,m):p},m}function Ok(e){const t=(0,i.useRef)(void 0);return(0,i.useEffect)((()=>{t.current=e})),t.current}_k.prototype=bk.prototype;function Tk(){const e=(0,ck.A)("#svgContainer").node(),t=e.scrollLeft+e.clientWidth/2,n=e.scrollTop+e.clientHeight/2,r=_k(e).k;(0,ck.A)(e).call(Fk().translateTo,t/r,n/r)}async function Nk(e){const t=e.href.baseVal;if(t)try{const n=await fetch(t),r=await n.blob(),i=await function(e){const t=new FileReader;return t.readAsDataURL(e),new Promise(((e,n)=>{t.onload=t=>e(t.target.result)}))}(r);e.href.baseVal=i}catch(n){console.warn("Failed to load image:",n)}}function Pk(){const e=document.getElementById("chartSvg").cloneNode(!0);e.removeAttribute("transform");const t=_k((0,ck.A)("#svgContainer").node()).k;return e.setAttribute("width",String(Number(e.getAttribute("width"))/t)),e.setAttribute("height",String(Number(e.getAttribute("height"))/t)),e.querySelector("#chart").removeAttribute("transform"),e}async function Ik(){const e=Pk();return await async function(e){const t=Array.from(e.getElementsByTagName("image"));await Promise.all(t.map(Nk))}(e),(new XMLSerializer).serializeToString(e)}function Rk(){const e=document.createElement("iframe");e.style.position="absolute",e.style.top="-1000px",e.style.left="-1000px",e.onload=()=>{e.contentDocument.open(),e.contentDocument.write((new XMLSerializer).serializeToString(Pk())),e.contentDocument.close(),setTimeout((()=>{e.contentWindow.focus(),e.contentWindow.print(),e.parentNode.removeChild(e)}),500)},document.body.appendChild(e)}async function jk(){const e=await Ik(),t=new Blob([e],{type:"image/svg+xml"});return function(e){const t=document.createElement("canvas");t.width=2*e.width,t.height=2*e.height;const n=t.getContext("2d"),r=n.fillStyle;return n.fillStyle="white",n.fillRect(0,0,t.width,t.height),n.fillStyle=r,n.drawImage(e,0,0,t.width,t.height),t}(await function(e){const t=new Image;return t.src=URL.createObjectURL(e),new Promise(((e,n)=>{t.addEventListener("load",(()=>e(t)))}))}(t))}async function Lk(){const e=await jk(),t=await function(e,t){return new Promise(((n,r)=>{e.toBlob((e=>{e?n(e):r()}),t)}))}(e,"image/png");(0,lk.saveAs)(t,"topola.png")}let Bk=function(e){return e[e.Hourglass=0]="Hourglass",e[e.Relatives=1]="Relatives",e[e.Donatso=2]="Donatso",e[e.Fancy=3]="Fancy",e}({});const zk=new Map([[$E.NO_COLOR,qh.ChartColors.NO_COLOR],[$E.COLOR_BY_GENERATION,qh.ChartColors.COLOR_BY_GENERATION],[$E.COLOR_BY_SEX,qh.ChartColors.COLOR_BY_SEX]]);function Uk(e){switch(e){case Bk.Hourglass:return qh.HourglassChart;case Bk.Relatives:return qh.RelativesChart;case Bk.Fancy:return qh.FancyChart;default:return qh.HourglassChart}}class Hk{constructor(){this.chart=void 0,this.animating=!1,this.rerenderRequired=!1,this.zoomBehavior=void 0,this.rerenderProps=void 0,this.rerenderResetPosition=void 0}zoom(e){const t=(0,ck.A)("#svgContainer");this.zoomBehavior.scaleBy(t,e)}renderChart(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{initialRender:!1,resetPosition:!1};if(!n.initialRender&&this.animating)return this.rerenderRequired=!0,this.rerenderProps=e,void(this.rerenderResetPosition=n.resetPosition);if(!n.initialRender&&e.freezeAnimation)return;var r;n.initialRender?((0,ck.A)("#chart").node().innerHTML="",this.chart=(0,qh.createChart)({json:e.data,chartType:Uk(e.chartType),renderer:(r=e.chartType,r===Bk.Fancy?qh.CircleRenderer:qh.DetailedRenderer),svgSelector:"#chart",indiCallback:t=>e.onSelection(t),colors:zk.get(e.colors),animate:!0,updateSvgSize:!1,locale:t.locale})):this.chart.setData(e.data);const i=this.chart.render({startIndi:e.selection.id,baseGeneration:e.selection.generation}),o=(0,ck.A)("#chartSvg"),a=(0,ck.A)("#svgContainer").node(),s=_k(a).k,u=(0,uk.A)([1,s,a.clientWidth/i.size[0],a.clientHeight/i.size[1]]),l=[(0,sk.A)([.1,u]),2];this.zoomBehavior=Fk().scaleExtent(l).translateExtent([[0,0],i.size]).on("zoom",(e=>function(e,t){const n=(0,ck.A)("#svgContainer").node(),r=t.transform.k,i=(0,sk.A)([0,(n.clientWidth-e[0]*r)/2]),o=(0,sk.A)([0,(n.clientHeight-e[1]*r)/2]);(0,ck.A)("#chartSvg").attr("width",e[0]*r).attr("height",e[1]*r).attr("transform","translate(".concat(i,", ").concat(o,")")),(0,ck.A)("#chart").attr("transform","scale(".concat(r,")")),n.scrollLeft=-t.transform.x,n.scrollTop=-t.transform.y}(i.size,e))),(0,ck.A)(a).on("scroll",Tk).call(this.zoomBehavior);const c=a.clientWidth/2-i.origin[0]*s,f=a.clientHeight/2-i.origin[1]*s,d=(0,sk.A)([0,(a.clientWidth-i.size[0]*s)/2]),h=(0,sk.A)([0,(a.clientHeight-i.size[1]*s)/2]),p=o.transition().delay(200).duration(500),m=n.initialRender?o:p;var g,y;m.attr("transform","translate(".concat(d,", ").concat(h,")")),m.attr("width",i.size[0]*s),m.attr("height",i.size[1]*s),n.resetPosition&&(n.initialRender?(a.scrollLeft=-c,a.scrollTop=-f):p.tween("scrollLeft",(y=-c,()=>{const e=(0,ak.A)(a.scrollLeft,y);return t=>{a.scrollLeft=e(t)}})).tween("scrollTop",(g=-f,()=>{const e=(0,ak.A)(a.scrollTop,g);return t=>{a.scrollTop=e(t)}}))),this.animating=!0,i.animationPromise.then((()=>{this.animating=!1,this.rerenderRequired&&(this.rerenderRequired=!1,this.renderChart(this.rerenderProps,t,{initialRender:!1,resetPosition:!!this.rerenderResetPosition}))}))}}function qk(e){const t=(0,i.useRef)(new Hk),n=Ok(e),r=Mh();return(0,i.useEffect)((()=>{if(n){const i=e.chartType!==(null===n||void 0===n?void 0:n.chartType)||e.colors!==(null===n||void 0===n?void 0:n.colors)||e.hideIds!==(null===n||void 0===n?void 0:n.hideIds)||e.hideSex!==(null===n||void 0===n?void 0:n.hideSex),o=e.chartType!==(null===n||void 0===n?void 0:n.chartType)||e.data!==n.data||e.selection!==n.selection;t.current.renderChart(e,r,{initialRender:i,resetPosition:o})}else t.current.renderChart(e,r,{initialRender:!0,resetPosition:!0})})),(0,Nh.jsxs)("div",{id:"svgContainer",children:[(0,Nh.jsxs)(Tw,{greaterThanOrEqual:"large",className:"zoom",children:[(0,Nh.jsx)("button",{className:"zoom-in",onClick:()=>t.current.zoom(1.3),children:"+"}),(0,Nh.jsx)("button",{className:"zoom-out",onClick:()=>t.current.zoom(1/1.3),children:"\u2212"})]}),(0,Nh.jsx)("svg",{id:"chartSvg",children:(0,Nh.jsx)("g",{id:"chart"})})]})}var Gk=n(5333);const Wk="topola-viewer",Vk="~Private";function Qk(e){try{return sessionStorage.getItem(e)}catch(t){console.warn("Failed to load data from session storage: "+t)}return null}function $k(e,t){try{sessionStorage.setItem(e,t)}catch(n){console.warn("Failed to store data in session storage: "+n)}}function Kk(e){return Object.assign({appId:Wk},e?{apiUrl:"https://topolaproxy.bieda.it/https://api.wikitree.com/api.php"}:{})}async function Yk(e,t){const n=[],r=[];if(e.forEach((e=>{const t=Qk("wikitree:relatives:".concat(e));t?n.push(JSON.parse(t)):r.push(e)})),0===r.length)return n;const i=await(0,qE.getRelatives)(r,{getChildren:!0,getSpouses:!0},Kk(t));if(!i){const e=r[0];throw new Hh("WIKITREE_PROFILE_NOT_FOUND","WikiTree profile ".concat(e," not found"),{id:e})}return i.forEach((e=>{$k("wikitree:relatives:".concat(e.Name),JSON.stringify(e))})),n.concat(i)}async function Xk(e,t){const n=await Promise.all(e.map((e=>async function(e,t){const n="wikitree:ancestors:".concat(e),r=Qk(n);if(r)return JSON.parse(r);const i=await(0,qE.getAncestors)(e,{},Kk(t));return $k(n,JSON.stringify(i)),i}(e,t)))),r=n.flat().map((e=>e.Name)).filter((e=>!!e)),i=await Yk(r,t),o=new Map,a=new Map;n.forEach(((e,t)=>{const n=1e3*t;e.forEach((e=>{e.Id<0&&(e.Id-=n,e.Name="".concat(Vk).concat(e.Id)),e.Father<0&&(e.Father-=n,o.set(e.Id,e.Father)),e.Mother<0&&(e.Mother-=n,a.set(e.Id,e.Mother))}))})),i.forEach((e=>{const t=o.get(e.Id);t&&(e.Father=t);const n=a.get(e.Id);n&&(e.Mother=n)}));const s=n.flat().filter((e=>e.Id<0));return i.concat(s)}async function Zk(e,t){const n="apps.wikitree.com"!==window.location.hostname;await async function(e,t){t||(0,qE.getLoggedInUserName)()||!e||"Success"===(await(0,qE.clientLogin)(e,{appId:Wk})).result&&sessionStorage.clear()}(t,n);const r=await async function(e,t){const n=(await Yk([e],t))[0];if(null===n||void 0===n||!n.Name){const t=e;throw new Hh("WIKITREE_PROFILE_NOT_ACCESSIBLE","WikiTree profile ".concat(t," is not accessible. Try logging in."),{id:t})}return n}(e,n),i=(o=r,Object.values(o.Spouses||{}).map((e=>e.Name)));var o;const a=Xk([e].concat(i),n),s=async function(e,t){const n=[];let r=[e],i=0;for(;r.length>0&&i<=5;){const e=await Yk(r,t);n.push(...e);const o=e.flatMap((e=>Object.values(e.Spouses||{})));n.push(...o),r=e.flatMap((e=>Object.values(e.Children||{}).map((e=>e.Name)))),i++}return n}(e,n),u=[...await a,...await s];return Array.from(new Map(u.map((e=>[e.Id,e]))).values())}function Jk(e,t){const n=function(e){const t=new Map;return e.forEach((e=>{if(e.Mother||e.Father){const n=nS(e.Mother,e.Father);dS(t,e.Mother).add(n),dS(t,e.Father).add(n)}e.Spouses&&Object.values(e.Spouses).forEach((n=>{const r=nS(e.Id,n.Id);dS(t,e.Id).add(r),dS(t,n.Id).add(r)}))})),t}(e);return e.map((e=>{const r=function(e,t){const n={id:e.Name};e.Name.startsWith(Vk)&&(n.hideId=!0,n.firstName=t.formatMessage({id:"wikitree.private",defaultMessage:"Private"}));e.FirstName&&"Unknown"!==e.FirstName?n.firstName=e.FirstName:e.RealName&&"Unknown"!==e.RealName&&(n.firstName=e.RealName);"Unknown"!==e.LastNameAtBirth&&(n.lastName=e.LastNameAtBirth);(e.Mother||e.Father)&&(n.famc=nS(e.Mother,e.Father));"Male"===e.Gender?n.sex="M":"Female"===e.Gender&&(n.sex="F");if(e.BirthDate&&"0000-00-00"!==e.BirthDate||e.BirthLocation||"unknown"!==e.BirthDateDecade){const t=oS(e.BirthDate,e.DataStatus&&e.DataStatus.BirthDate||void 0)||aS(e.BirthDateDecade);n.birth=Object.assign({},t,{place:e.BirthLocation})}if(e.DeathDate&&"0000-00-00"!==e.DeathDate||e.DeathLocation||"unknown"!==e.DeathDateDecade){const t=oS(e.DeathDate,e.DataStatus&&e.DataStatus.DeathDate||void 0)||aS(e.DeathDateDecade);n.death=Object.assign({},t,{place:e.DeathLocation})}e.PhotoData&&(n.images=[{url:"https://www.wikitree.com".concat(e.PhotoData.url),title:e.Photo}]);return n}(e,t);return r.fams=Array.from(dS(n,e.Id)),r}))}function eS(e){const t=new Map(e.map((e=>[e.Id,e.Name]))),n=function(e){const t=new Map;return e.forEach((e=>{if(e.Mother||e.Father){const n=nS(e.Mother,e.Father);dS(t,n).add(e.Id)}})),t}(e),r=function(e){const t=new Map;return e.forEach((e=>{if(e.Mother||e.Father){const n=nS(e.Mother,e.Father);t.set(n,{wife:e.Mother||void 0,husband:e.Father||void 0})}e.Spouses&&Object.values(e.Spouses).forEach((n=>{const r=nS(e.Id,n.Id),i="Male"===e.Gender?{wife:n.Id,husband:e.Id,spouse:n}:{wife:e.Id,husband:n.Id,spouse:n};t.set(r,i)}))})),t}(e);return Array.from(r.entries()).map((e=>{let[r,i]=e;const o={id:r},a=i.wife&&t.get(i.wife);a&&(o.wife=a);const s=i.husband&&t.get(i.husband);if(s&&(o.husb=s),o.children=Array.from(dS(n,r)).map((e=>t.get(e))),i.spouse&&(i.spouse.marriage_date&&"0000-00-00"!==i.spouse.marriage_date||i.spouse.marriage_location)){const e=oS(i.spouse.marriage_date);o.marriage=Object.assign({},e,{place:i.spouse.marriage_location})}return o}))}async function tS(e,t,n){const r=await Zk(e,n),i=up({indis:Jk(r,t),fams:eS(r)}),o=new Map(r.map((e=>[e.Name,iS(e)]))),a=function(e,t,n){const r={},i={};return e.indis.forEach((e=>{r[e.id]=function(e,t,n){const r=e.id.replace(/ /g,"_"),i={level:0,pointer:"@".concat(e.id,"@"),tag:"INDI",data:"",tree:[]};n.birth&&i.tree.push(lS("birth",e.firstName,n.birth));n.married&&i.tree.push(lS("married",e.firstName,n.married));n.aka&&i.tree.push(lS("aka",e.firstName,n.aka));e.birth&&i.tree.push({level:1,pointer:"",tag:"BIRT",data:"",tree:cS(e.birth)});e.death&&i.tree.push({level:1,pointer:"",tag:"DEAT",data:"",tree:cS(e.death)});e.famc&&i.tree.push({level:1,pointer:"",tag:"FAMC",data:"@".concat(e.famc,"@"),tree:[]});(e.fams||[]).forEach((e=>i.tree.push({level:1,pointer:"",tag:"FAMS",data:"@".concat(e,"@"),tree:[]}))),e.id.startsWith("~")||i.tree.push({level:1,pointer:"",tag:"WWW",data:"https://www.wikitree.com/wiki/".concat(r),tree:[]});return(e.images||[]).forEach((n=>{i.tree.push({level:1,pointer:"",tag:"OBJE",data:"",tree:fS(n,t.get(e.id))})})),i}(e,t,n.get(e.id)||{})})),e.fams.forEach((e=>{i[e.id]=function(e){const t={level:0,pointer:"@".concat(e.id,"@"),tag:"FAM",data:"",tree:[]};e.wife&&t.tree.push({level:1,pointer:"",tag:"WIFE",data:"@".concat(e.wife,"@"),tree:[]});e.husb&&t.tree.push({level:1,pointer:"",tag:"HUSB",data:"@".concat(e.husb,"@"),tree:[]});(e.children||[]).forEach((e=>t.tree.push({level:1,pointer:e,tag:"CHILD",data:"",tree:[]}))),e.marriage&&t.tree.push({level:1,pointer:"",tag:"MARR",data:"",tree:cS(e.marriage)});return t}(e)})),{head:{level:0,pointer:"",tag:"HEAD",data:"",tree:[]},indis:r,fams:i,other:{}}}(i,new Map(r.filter((e=>{var t;return null===(t=e.PhotoData)||void 0===t?void 0:t.path})).map((e=>[e.Name,"https://www.wikitree.com".concat(e.PhotoData.path)]))),o);return{chartData:i,gedcom:a}}function nS(e,t){return t>e?"".concat(e,"_").concat(t):"".concat(t,"_").concat(e)}function rS(e){if(!e.Spouses||"Unknown"===e.LastNameCurrent||e.LastNameCurrent===e.LastNameAtBirth)return;const t=e.LastNameCurrent.split(/[- ,]/);return Object.entries(e.Spouses).flatMap((e=>{let[,t]=e;return t.LastNameAtBirth.split(/[- ,]/)})).some((e=>t.some((t=>{return n=e,r=t,Gk.$x.compareSimilarityPercent(n,r)>=75;var n,r}))))?e.LastNameCurrent:void 0}function iS(e){return{birth:"Unknown"!==e.LastNameAtBirth?e.LastNameAtBirth:void 0,married:rS(e),aka:"Unknown"!==e.LastNameOther&&e.LastNameAtBirth!==e.LastNameOther&&e.LastNameCurrent!==e.LastNameOther?e.LastNameOther:void 0}}function oS(e,t){if(!e)return;const n=e.match(/(\d\d\d\d)-(\d\d)-(\d\d)/);if(!n)return{date:{text:e}};const r={};return"0000"!==n[1]&&(r.year=~~n[1]),"00"!==n[2]&&(r.month=~~n[2]),"00"!==n[3]&&(r.day=~~n[3]),"after"===t?{dateRange:{from:r}}:"before"===t?{dateRange:{to:r}}:("guess"===t&&(r.qualifier="abt"),{date:r})}function aS(e){return"unknown"!==e?{date:{text:e}}:void 0}const sS=new Map([[1,"JAN"],[2,"FEB"],[3,"MAR"],[4,"APR"],[5,"MAY"],[6,"JUN"],[7,"JUL"],[8,"AUG"],[9,"SEP"],[10,"OCT"],[11,"NOV"],[12,"DEC"]]);function uS(e){return[e.qualifier,e.day,sS.get(e.month),e.year].filter((e=>void 0!==e)).join(" ")}function lS(e,t,n){return{level:1,pointer:"",tag:"NAME",data:"".concat(t||""," /").concat(n||"","/"),tree:[{level:2,pointer:"",tag:"TYPE",data:e,tree:[]}]}}function cS(e){const t=[];var n;return Yh(e)&&t.push({level:2,pointer:"",tag:"DATE",data:(n=e,n.date?uS(n.date):n.dateRange?n.dateRange.from&&n.dateRange.to?"BET ".concat(uS(n.dateRange.from)," AND ").concat(n.dateRange.to):n.dateRange.from?"AFT ".concat(uS(n.dateRange.from)):n.dateRange.to?"BEF ".concat(uS(n.dateRange.to)):"":""),tree:[]}),e.place&&t.push({level:2,pointer:"",tag:"PLAC",data:e.place,tree:[]}),t}function fS(e,t){var n,r;return[{level:2,pointer:"",tag:"FILE",data:t||e.url,tree:[{level:3,pointer:"",tag:"FORM",data:(null===(n=e.title)||void 0===n?void 0:n.split(".").pop())||"",tree:[]},{level:3,pointer:"",tag:"TITL",data:(null===(r=e.title)||void 0===r?void 0:r.split(".")[0])||"",tree:[]}]}]}function dS(e,t){const n=e.get(t);if(n)return n;const r=new Set;return e.set(t,r),r}class hS{constructor(e){this.intl=e}isNewData(e,t,n){var r;return!!e.selection&&((null===(r=t.selection)||void 0===r?void 0:r.id)!==e.selection.id&&(!n||!n.chartData.indis.some((t=>{var n;return t.id===(null===(n=e.selection)||void 0===n?void 0:n.id)}))))}async loadData(e){if(!e.selection)throw new Hh("WIKITREE_ID_NOT_PROVIDED","WikiTree id needs to be provided");try{const t=await tS(e.selection.id,this.intl,e.spec.authcode);return z("wikitree_loaded"),t}catch(t){throw z("wikitree_error"),t}}}const pS=n(26);function mS(e,t){const n=new Map;return e.fams.forEach((e=>n.set(e.id,e))),e.indis.map((e=>{var r,i;const o=n.get(e.famc),a=(e.fams||[]).map((e=>n.get(e))).filter((e=>void 0!==e)),s=null===o||void 0===o?void 0:o.husb,u=null===o||void 0===o?void 0:o.wife,l=a.map((t=>function(e,t){return e.husb===t?e.wife:e.husb}(t,e.id))).filter((e=>void 0!==e)),c=a.flatMap((e=>e.children||[]));return{id:e.id,data:{"first name":e.firstName,"last name":e.lastName,birthday:Qh(e.birth,t),avatar:null===(r=e.images)||void 0===r||null===(i=r[0])||void 0===i?void 0:i.url,gender:e.sex},rels:{father:s,mother:u,spouses:l,children:c}}}))}class gS{constructor(){this.store=void 0}initializeChart(e,t){const n=mS(e.data,t);this.store=pS.createStore({data:n,main_id:e.selection.id});const r=pS.createSvg(document.querySelector("#dotatsoSvgContainer")),i=pS.elements.Card({store:this.store,svg:r,card_display:[e=>"".concat(e.data["first name"]||""," ").concat(e.data["last name"]||""),e=>"".concat(e.data.birthday||"")],mini_tree:!0,link_break:!1,onCardClick:(t,n)=>e.onSelection({id:n.data.id,generation:0})});this.store.setOnUpdate((e=>{pS.view(this.store.getTree(),r,i,e||{})})),this.store.updateTree({initial:!0})}updateChart(e,t){const n=mS(e.data,t);this.store.updateData(n),this.store.updateMainId(e.selection.id),this.store.updateTree()}}function yS(e){const t=(0,i.useRef)(new gS),n=Ok(e),r=Mh();return(0,i.useEffect)((()=>{n?t.current.updateChart(e,r):t.current.initializeChart(e,r)})),(0,Nh.jsx)("div",{id:"dotatsoSvgContainer"})}const vS={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_CHANGELOG:'# Changelog\n\n## 2023-08-25\n\n- Added support for loading gedzip files\n\n## 2023-07-21\n\n- Display images, notes, sources for events as collapsible tabs (by czifumasa)\n\n## 2023-07-20\n\n- Fixed search for Hebrew names (by czifumasa)\n\n## 2023-02-01\n\n- Added option to hide sex indicators (by Kent Grigo)\n- Empty family boxes are now not shown (by Kent Grigo)\n\n## 2023-01-08\n\n- Added option to hide profile identifiers by Kent Grigo\n\n## 2022-12-08\n\n- French translation updated by Olivier Berten\n\n## 2022-08-30\n\n- Added displaying name types in details panel\n\n## 2022-05-13\n\n- Added displaying images in the details panel\n\n## 2022-04-06\n\n- Fixed logging in to WikiTree\n\n## 2021-10-31\n\n- Show changelog in intro page and when an upgraded version is loaded\n\n## 2021-10-27\n\n- Show events in details panel for WikiTree profiles\n\n## 2021-10-26\n\n- Added family events to details panel\n- Improved details panel layout\n\n## 2021-10-25\n\n- Added "Settings" tab in side panel\n- Added color settings (none, by generation, by sex)',REACT_APP_GIT_SHA:"73fba97",REACT_APP_GIT_TIME:"2025-01-16 17:59:19 +0100"}.REACT_APP_STATIC_URL;function bS(e){return(0,Nh.jsxs)(Pb,{negative:!0,className:"error",children:[(0,Nh.jsx)(Pb.Header,{children:(0,Nh.jsx)(Th,{id:"error.failed_to_load_file",defaultMessage:"Failed to load file"})}),(0,Nh.jsx)("p",{children:e.message})]})}function wS(e){return(0,Nh.jsx)(Hl,{open:e.open,onClose:e.onDismiss,children:(0,Nh.jsxs)(Pb,{negative:!0,className:"errorPopup",onDismiss:e.onDismiss,children:[(0,Nh.jsx)(Pb.Header,{children:(0,Nh.jsx)(Th,{id:"error.error",defaultMessage:"Error"})}),(0,Nh.jsx)("p",{children:e.message})]})})}var _S=function(e){return e[e.INITIAL=0]="INITIAL",e[e.LOADING=1]="LOADING",e[e.ERROR=2]="ERROR",e[e.SHOWING_CHART=3]="SHOWING_CHART",e[e.LOADING_MORE=4]="LOADING_MORE",e}(_S||{});function xS(e,t){const n=t[e];return"string"===typeof n?n:void 0}var ES=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},kS=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},SS=function(e){this.version=e,this.type="node",this.name="node",this.os=process.platform},AS=function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"},CS=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},DS=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},MS=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,FS=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],OS=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function TS(e){return""!==e&&FS.reduce((function(t,n){var r=n[0],i=n[1];if(t)return t;var o=i.exec(e);return!!o&&[r,o]}),!1)}function NS(e){var t=TS(e);if(!t)return null;var n=t[0],r=t[1];if("searchbot"===n)return new CS;var i=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);i?i.length<3&&(i=ES(ES([],i,!0),function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(3-i.length),!0)):i=[];var o=i.join("."),a=function(e){for(var t=0,n=OS.length;t<n;t++){var r=OS[t],i=r[0];if(r[1].exec(e))return i}return null}(e),s=MS.exec(e);return s&&s[1]?new AS(n,o,a,s[1]):new kS(n,o,a)}function PS(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=mf({timeZone:t},e[r]),n}),{})}function IS(e,t){return Object.keys(mf(mf({},e),t)).reduce((function(n,r){return n[r]=mf(mf({},e[r]||{}),t[r]||{}),n}),{})}function RS(e,t){if(!t)return e;var n=eh.formats;return mf(mf(mf({},n),e),{date:IS(PS(n.date,t),PS(e.date||{},t)),time:IS(PS(n.time,t),PS(e.time||{},t))})}var jS=function(e,t,n,r,i){var o=e.locale,a=e.formats,s=e.messages,u=e.defaultLocale,l=e.defaultFormats,c=e.fallbackOnEmptyString,f=e.onError,d=e.timeZone,h=e.defaultRichTextElements;void 0===n&&(n={id:""});var p=n.id,m=n.defaultMessage;Cf(!!p,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var g=String(p),y=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(y)&&1===y.length&&y[0].type===jf.literal)return y[0].value;if(!r&&y&&"string"===typeof y&&!h)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=mf(mf({},h),r||{}),a=RS(a,d),l=RS(l,d),!y){if(!1===c&&""===y)return y;if((!m||o&&o.toLowerCase()!==u.toLowerCase())&&f(new vh(n,o)),m)try{return t.getMessageFormat(m,u,l,i).format(r)}catch(v){return f(new yh('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),o,n,v)),"string"===typeof m?m:g}return g}try{return t.getMessageFormat(y,o,a,mf({formatters:t},i||{})).format(r)}catch(v){f(new yh('Error formatting message: "'.concat(g,'", using ').concat(m?"default message":"id"," as fallback."),o,n,v))}if(m)try{return t.getMessageFormat(m,u,l,i).format(r)}catch(v){f(new yh('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),o,n,v))}return"string"===typeof y?y:"string"===typeof m?m:g},LS=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function BS(e,t,n){var r=e.locale,i=e.formats,o=e.onError;void 0===n&&(n={});var a=n.format,s=a&&xh(i,"number",a,o)||{};return t(r,bh(n,LS,s))}function zS(e,t,n,r){void 0===r&&(r={});try{return BS(e,t,r).format(n)}catch(i){e.onError(new gh("Error formatting number.",e.locale,i))}return String(n)}function US(e,t,n,r){void 0===r&&(r={});try{return BS(e,t,r).formatToParts(n)}catch(i){e.onError(new gh("Error formatting number.",e.locale,i))}return[]}var HS=["numeric","style"];function qS(e,t,n,r,i){void 0===i&&(i={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new Vd('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',Hd.MISSING_INTL_API));try{return function(e,t,n){var r=e.locale,i=e.formats,o=e.onError;void 0===n&&(n={});var a=n.format,s=!!a&&xh(i,"relative",a,o)||{};return t(r,bh(n,HS,s))}(e,t,i).format(n,r)}catch(o){e.onError(new gh("Error formatting relative time.",e.locale,o))}return String(n)}var GS=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function WS(e,t,n,r){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;void 0===r&&(r={});var u=r.format,l=mf(mf({},s&&{timeZone:s}),u&&xh(o,t,u,a)),c=bh(r,GS,l);return"time"!==t||c.hour||c.minute||c.second||c.timeStyle||c.dateStyle||(c=mf(mf({},c),{hour:"numeric",minute:"numeric"})),n(i,c)}function VS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=void 0===o?{}:o,s="string"===typeof i?new Date(i||0):i;try{return WS(e,"date",t,a).format(s)}catch(u){e.onError(new gh("Error formatting date.",e.locale,u))}return String(s)}function QS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=void 0===o?{}:o,s="string"===typeof i?new Date(i||0):i;try{return WS(e,"time",t,a).format(s)}catch(u){e.onError(new gh("Error formatting time.",e.locale,u))}return String(s)}function $S(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=n[2],s=void 0===a?{}:a,u=e.timeZone,l=e.locale,c=e.onError,f=bh(s,GS,u?{timeZone:u}:{});try{return t(l,f).formatRange(i,o)}catch(d){c(new gh("Error formatting date time range.",e.locale,d))}return String(i)}function KS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=void 0===o?{}:o,s="string"===typeof i?new Date(i||0):i;try{return WS(e,"date",t,a).formatToParts(s)}catch(u){e.onError(new gh("Error formatting date.",e.locale,u))}return[]}function YS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=void 0===o?{}:o,s="string"===typeof i?new Date(i||0):i;try{return WS(e,"time",t,a).formatToParts(s)}catch(u){e.onError(new gh("Error formatting time.",e.locale,u))}return[]}var XS=["type"];function ZS(e,t,n,r){var i=e.locale,o=e.onError;void 0===r&&(r={}),Intl.PluralRules||o(new Vd('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Hd.MISSING_INTL_API));var a=bh(r,XS);try{return t(i,a).select(n)}catch(s){o(new gh("Error formatting plural.",i,s))}return"other"}var JS=["type","style"],eA=Date.now();function tA(e,t,n,r){void 0===r&&(r={});var i=nA(e,t,n,r).reduce((function(e,t){var n=t.value;return"string"!==typeof n?e.push(n):"string"===typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[]);return 1===i.length?i[0]:0===i.length?"":i}function nA(e,t,n,r){var i=e.locale,o=e.onError;void 0===r&&(r={}),Intl.ListFormat||o(new Vd('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',Hd.MISSING_INTL_API));var a=bh(r,JS);try{var s={},u=n.map((function(e,t){if("object"===typeof e){var n=function(e){return"".concat(eA,"_").concat(e,"_").concat(eA)}(t);return s[n]=e,n}return String(e)}));return t(i,a).formatToParts(u).map((function(e){return"literal"===e.type?e:mf(mf({},e),{value:s[e.value]||e.value})}))}catch(l){o(new gh("Error formatting list.",i,l))}return n}var rA=["style","type","fallback","languageDisplay"];function iA(e,t,n,r){var i=e.locale,o=e.onError;Intl.DisplayNames||o(new Vd('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',Hd.MISSING_INTL_API));var a=bh(r,rA);try{return t(i,a).of(n)}catch(s){o(new gh("Error formatting display name.",i,s))}}function oA(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"===typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}function aA(e,t){var n=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=th((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,yf([void 0],t,!1)))}),{cache:_h(e.dateTime),strategy:fh.variadic}),o=th((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,yf([void 0],t,!1)))}),{cache:_h(e.number),strategy:fh.variadic}),a=th((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,yf([void 0],t,!1)))}),{cache:_h(e.pluralRules),strategy:fh.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:th((function(e,t,n,r){return new eh(e,t,n,mf({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},r||{}))}),{cache:_h(e.message),strategy:fh.variadic}),getRelativeTimeFormat:th((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,yf([void 0],e,!1)))}),{cache:_h(e.relativeTime),strategy:fh.variadic}),getPluralRules:a,getListFormat:th((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,yf([void 0],e,!1)))}),{cache:_h(e.list),strategy:fh.variadic}),getDisplayNames:th((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,yf([void 0],e,!1)))}),{cache:_h(e.displayNames),strategy:fh.variadic})}}(t),r=mf(mf({},wh),e),i=r.locale,o=r.defaultLocale,a=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new mh('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new mh('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new ph('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),oA(r),mf(mf({},r),{formatters:n,formatNumber:zS.bind(null,r,n.getNumberFormat),formatNumberToParts:US.bind(null,r,n.getNumberFormat),formatRelativeTime:qS.bind(null,r,n.getRelativeTimeFormat),formatDate:VS.bind(null,r,n.getDateTimeFormat),formatDateToParts:KS.bind(null,r,n.getDateTimeFormat),formatTime:QS.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:$S.bind(null,r,n.getDateTimeFormat),formatTimeToParts:YS.bind(null,r,n.getDateTimeFormat),formatPlural:ZS.bind(null,r,n.getPluralRules),formatMessage:jS.bind(null,r,n),$t:jS.bind(null,r,n),formatList:tA.bind(null,r,n.getListFormat),formatListToParts:nA.bind(null,r,n.getListFormat),formatDisplayName:iA.bind(null,r,n.getDisplayNames)})}function sA(e){return e?Object.keys(e).reduce((function(t,n){var r,o=e[n];return t[n]=Yd(o)?(r=o,function(e){return r(i.Children.toArray(e))}):o,t}),{}):e}var uA=function(e,t,n,r){for(var o=[],a=4;a<arguments.length;a++)o[a-4]=arguments[a];var s=sA(r),u=jS.apply(void 0,yf([e,t,n,s],o,!1));return Array.isArray(u)?i.Children.toArray(u):u},lA=function(e,t){var n=e.defaultRichTextElements,r=gf(e,["defaultRichTextElements"]),i=sA(n),o=aA(mf(mf(mf({},kh),r),{defaultRichTextElements:i}),t),a={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i};return mf(mf({},o),{formatMessage:uA.bind(null,a,o.formatters),$t:uA.bind(null,a,o.formatters)})};function cA(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}const fA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:lA(cA(t.props),t.cache),prevConfig:cA(t.props)},t}return pf(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,i=cA(e);return Sh(n,i)?null:{intl:lA(i,r),prevConfig:i}},t.prototype.render=function(){return Eh(this.state.intl),i.createElement(Ch,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=kh,t}(i.PureComponent);n(5685);const dA={cs:a,de:s,fr:u,it:l,pl:c,ru:f},hA=navigator.language&&navigator.language.split(/[-_]/)[0],pA=mA?NS(mA):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new DS:"undefined"!==typeof navigator?NS(navigator.userAgent):"undefined"!==typeof process&&process.version?new SS(process.version.slice(1)):null;var mA;const gA=document.getElementById("root"),yA=(0,o.H)(gA);pA&&"ie"===pA.name?yA.render((0,Nh.jsx)("p",{children:"Topola Genealogy Viewer does not support Internet Explorer. Please try a different (modern) browser."})):yA.render((0,Nh.jsx)(fA,{locale:hA,messages:dA[hA],children:(0,Nh.jsxs)(Nw,{children:[(0,Nh.jsx)("style",{children:Ow}),(0,Nh.jsx)(Em,{children:(0,Nh.jsx)(hm,{component:function(){const[e,t]=(0,i.useState)(_S.INITIAL),[r,o]=(0,i.useState)(),[a,s]=(0,i.useState)(),[u,l]=(0,i.useState)(),[c,f]=(0,i.useState)(!1),[d,h]=(0,i.useState)(!0),[p,m]=(0,i.useState)(!0),[g,y]=(0,i.useState)(Bk.Hourglass),[v,b]=(0,i.useState)(!1),[w,_]=(0,i.useState)(),[x,E]=(0,i.useState)(!1),[k,S]=(0,i.useState)(XE),A=Mh(),C=_m(),D=xm();function M(e,t){if(void 0===t)return;let n=e.id===KE.HIDE,r=e.sex===YE.HIDE;ep(t.chartData).forEach((e=>{e.hideId=n,e.hideSex=r}))}const F=new pw,O=new mw,T=new hS(A),N=new yw;function P(e){const t=B.parse(D.search);for(const n in e)t[n]=e[n];D.search=B.stringify(t),C.push(D)}function I(e){e.id.startsWith(Vk)||(z("selection_changed"),P({indi:e.id,gen:e.generation}))}function R(){z("print"),Rk()}function j(e){b(!0),l(e)}async function L(){z("download_pdf");try{await async function(){const{default:e}=await n.e(962).then(n.bind(n,4962)),t=await jk(),r=new e({orientation:t.width>t.height?"l":"p",unit:"pt",format:[t.width,t.height]});r.addImage(t,"PNG",0,0,t.width,t.height,"NONE"),r.save("topola.pdf")}()}catch(e){j(A.formatMessage({id:"error.failed_pdf",defaultMessage:"Failed to generate PDF file. Please try with a smaller diagram or download an SVG file."}))}}async function U(){z("download_png");try{await Lk()}catch(e){j(A.formatMessage({id:"error.failed_png",defaultMessage:"Failed to generate PNG file. Please try with a smaller diagram or download an SVG file."}))}}function H(){z("download_svg"),async function(){const e=await Ik(),t=new Blob([e],{type:"image/svg+xml"});(0,lk.saveAs)(t,"topola.svg")}()}function q(){b(!1)}function G(e){return g===Bk.Donatso?(0,Nh.jsx)(yS,{data:r.chartData,selection:e,onSelection:I}):(0,Nh.jsx)(qk,{data:r.chartData,selection:e,chartType:g,onSelection:I,freezeAnimation:x,colors:k.color,hideIds:k.id,hideSex:k.sex})}function W(){switch(e){case _S.SHOWING_CHART:case _S.LOADING_MORE:const t=cw(r.chartData,a),n=[{menuItem:A.formatMessage({id:"tab.info",defaultMessage:"Info"}),render:()=>(0,Nh.jsx)(sw,{gedcom:r.gedcom,indi:t.id})},{menuItem:A.formatMessage({id:"tab.settings",defaultMessage:"Settings"}),render:()=>(0,Nh.jsx)(ok,{config:k,onChange:e=>{S(e),M(e,r),P(function(e){return{c:JE.get(e.color),i:tk.get(e.id),s:rk.get(e.sex)}}(e))}})}];return(0,Nh.jsxs)("div",{id:"content",children:[(0,Nh.jsx)(wS,{open:v,message:u,onDismiss:q}),e===_S.LOADING_MORE?(0,Nh.jsx)(Lw,{active:!0,size:"small",className:"loading-more"}):null,G(t),c?(0,Nh.jsx)(Tw,{greaterThanOrEqual:"large",className:"sidePanel",children:(0,Nh.jsx)(hb,{panes:n})}):null,(0,Nh.jsx)(jh,{})]});case _S.ERROR:return(0,Nh.jsx)(bS,{message:u});case _S.INITIAL:case _S.LOADING:return(0,Nh.jsx)(Lw,{active:!0,size:"large"})}}return(0,i.useEffect)((()=>{(async()=>{if("/view"!==D.pathname)return void(e!==_S.INITIAL&&t(_S.INITIAL));const n=function(e){const t=B.parse(e.search),n=e=>xS(e,t),r=n("view"),i=new Map([["relatives",Bk.Relatives],["fancy",Bk.Fancy],["donatso",Bk.Donatso]]),o=n("file"),a=n("url"),s="true"===n("embedded");var u=void 0;if(vS)u={source:Lh.GEDCOM_URL,url:vS,handleCors:!1};else if("wikitree"===n("source")){const e=B.parse(window.location.search);u={source:Lh.WIKITREE,authcode:n("authcode")||xS("authcode",e)}}else o?u={source:Lh.UPLOADED,hash:o,gedcom:e.state&&e.state.data,images:e.state&&e.state.images}:a?u={source:Lh.GEDCOM_URL,url:a,handleCors:"false"!==n("handleCors")}:s&&(u={source:Lh.EMBEDDED});const l=n("indi"),c=Number(n("gen"));return{sourceSpec:u,selection:l?{id:l,generation:isNaN(c)?0:c}:void 0,chartType:i.get(r)||Bk.Hourglass,showSidePanel:"false"!==n("sidePanel"),standalone:"false"!==n("standalone")&&!s&&!vS,showWikiTreeMenus:"false"!==n("showWikiTreeMenus"),freezeAnimation:"true"===n("freeze"),config:ik(t)}}(D);var i,c;if(n.sourceSpec){if(e===_S.INITIAL||function(e,t){if(!w||w.source!==e.source)return!0;const n={spec:e,selection:t},i={spec:w,selection:a};switch(n.spec.source){case Lh.UPLOADED:return F.isNewData(n,i,r);case Lh.GEDCOM_URL:return O.isNewData(n,i,r);case Lh.WIKITREE:return T.isNewData(n,i,r);case Lh.EMBEDDED:return N.isNewData(n,i,r)}}(n.sourceSpec,n.selection)){t(_S.LOADING),_(n.sourceSpec),s(n.selection),h(n.standalone),m(n.showWikiTreeMenus),y(n.chartType),E(n.freezeAnimation),S(n.config);try{const e=await function(e,t){switch(e.source){case Lh.UPLOADED:return F.loadData({spec:e,selection:t});case Lh.GEDCOM_URL:return O.loadData({spec:e,selection:t});case Lh.WIKITREE:return T.loadData({spec:e,selection:t});case Lh.EMBEDDED:return N.loadData({spec:e,selection:t})}}(n.sourceSpec,n.selection);o(e),M(n.config,e),f(n.showSidePanel),t(_S.SHOWING_CHART)}catch(u){c=function(e,t){return e instanceof Hh?t.formatMessage({id:"error.".concat(e.code),defaultMessage:e.message},e.args):e.message}(u,A),l(c),t(_S.ERROR)}}else if(e===_S.SHOWING_CHART||e===_S.LOADING_MORE){var d;const e=n.sourceSpec.source===Lh.WIKITREE&&(!a||a.id!==(null===(d=n.selection)||void 0===d?void 0:d.id));if(y(n.chartType),t(e?_S.LOADING_MORE:_S.SHOWING_CHART),i=n.selection,a&&a.id===i.id&&a.generation===i.generation||s(i),e)try{const e=await tS(n.selection.id,A),r=cw(e.chartData,n.selection);o(e),s(r),t(_S.SHOWING_CHART)}catch(u){t(_S.SHOWING_CHART),j(A.formatMessage({id:"error.failed_wikitree_load_more",defaultMessage:"Failed to load data from WikiTree. {error}"},{error:u}))}}}else C.replace({pathname:"/"})})()})),(0,Nh.jsxs)(Nh.Fragment,{children:[(0,Nh.jsx)(hm,{render:()=>(0,Nh.jsx)(QE,{data:null===r||void 0===r?void 0:r.chartData,allowAllRelativesChart:(null===w||void 0===w?void 0:w.source)!==Lh.WIKITREE,showingChart:"/view"===C.location.pathname&&(e===_S.SHOWING_CHART||e===_S.LOADING_MORE),standalone:d,eventHandlers:{onSelection:I,onPrint:R,onDownloadPdf:L,onDownloadPng:U,onDownloadSvg:H},showWikiTreeMenus:(null===w||void 0===w?void 0:w.source)===Lh.WIKITREE&&p})}),vS?(0,Nh.jsxs)(bm,{children:[(0,Nh.jsx)(hm,{exact:!0,path:"/view",render:W}),(0,Nh.jsx)(lm,{to:"/view"})]}):(0,Nh.jsxs)(bm,{children:[(0,Nh.jsx)(hm,{exact:!0,path:"/",component:Rw}),(0,Nh.jsx)(hm,{exact:!0,path:"/view",render:W}),(0,Nh.jsx)(lm,{to:"/"})]})]})}})})]})}))})()})(); |