Files
topola-viewer/assets/index-3gOEgFfu.js
github-actions-bot 4feb7f65c3 Updates
2026-05-31 21:33:13 +00:00

877 lines
1.3 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var hi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Df(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Ov={exports:{}},ac={},Nv={exports:{}},at={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var oC;function C4(){if(oC)return at;oC=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;function p(G){return G===null||typeof G!="object"?null:(G=d&&G[d]||G["@@iterator"],typeof G=="function"?G:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,g={};function _(G,z,B){this.props=G,this.context=z,this.refs=g,this.updater=B||m}_.prototype.isReactComponent={},_.prototype.setState=function(G,z){if(typeof G!="object"&&typeof G!="function"&&G!=null)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,G,z,"setState")},_.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function E(){}E.prototype=_.prototype;function x(G,z,B){this.props=G,this.context=z,this.refs=g,this.updater=B||m}var b=x.prototype=new E;b.constructor=x,w(b,_.prototype),b.isPureReactComponent=!0;var C=Array.isArray,v=Object.prototype.hasOwnProperty,k={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function N(G,z,B){var se,de={},me=null,Ee=null;if(z!=null)for(se in z.ref!==void 0&&(Ee=z.ref),z.key!==void 0&&(me=""+z.key),z)v.call(z,se)&&!T.hasOwnProperty(se)&&(de[se]=z[se]);var Ie=arguments.length-2;if(Ie===1)de.children=B;else if(1<Ie){for(var Ne=Array(Ie),Le=0;Le<Ie;Le++)Ne[Le]=arguments[Le+2];de.children=Ne}if(G&&G.defaultProps)for(se in Ie=G.defaultProps,Ie)de[se]===void 0&&(de[se]=Ie[se]);return{$$typeof:e,type:G,key:me,ref:Ee,props:de,_owner:k.current}}function M(G,z){return{$$typeof:e,type:G.type,key:z,ref:G.ref,props:G.props,_owner:G._owner}}function j(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function D(G){var z={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(B){return z[B]})}var $=/\/+/g;function X(G,z){return typeof G=="object"&&G!==null&&G.key!=null?D(""+G.key):z.toString(36)}function W(G,z,B,se,de){var me=typeof G;(me==="undefined"||me==="boolean")&&(G=null);var Ee=!1;if(G===null)Ee=!0;else switch(me){case"string":case"number":Ee=!0;break;case"object":switch(G.$$typeof){case e:case t:Ee=!0}}if(Ee)return Ee=G,de=de(Ee),G=se===""?"."+X(Ee,0):se,C(de)?(B="",G!=null&&(B=G.replace($,"$&/")+"/"),W(de,z,B,"",function(Le){return Le})):de!=null&&(j(de)&&(de=M(de,B+(!de.key||Ee&&Ee.key===de.key?"":(""+de.key).replace($,"$&/")+"/")+G)),z.push(de)),1;if(Ee=0,se=se===""?".":se+":",C(G))for(var Ie=0;Ie<G.length;Ie++){me=G[Ie];var Ne=se+X(me,Ie);Ee+=W(me,z,B,Ne,de)}else if(Ne=p(G),typeof Ne=="function")for(G=Ne.call(G),Ie=0;!(me=G.next()).done;)me=me.value,Ne=se+X(me,Ie++),Ee+=W(me,z,B,Ne,de);else if(me==="object")throw z=String(G),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return Ee}function H(G,z,B){if(G==null)return G;var se=[],de=0;return W(G,se,"","",function(me){return z.call(B,me,de++)}),se}function V(G){if(G._status===-1){var z=G._result;z=z(),z.then(function(B){(G._status===0||G._status===-1)&&(G._status=1,G._result=B)},function(B){(G._status===0||G._status===-1)&&(G._status=2,G._result=B)}),G._status===-1&&(G._status=0,G._result=z)}if(G._status===1)return G._result.default;throw G._result}var K={current:null},Y={transition:null},q={ReactCurrentDispatcher:K,ReactCurrentBatchConfig:Y,ReactCurrentOwner:k};function F(){throw Error("act(...) is not supported in production builds of React.")}return at.Children={map:H,forEach:function(G,z,B){H(G,function(){z.apply(this,arguments)},B)},count:function(G){var z=0;return H(G,function(){z++}),z},toArray:function(G){return H(G,function(z){return z})||[]},only:function(G){if(!j(G))throw Error("React.Children.only expected to receive a single React element child.");return G}},at.Component=_,at.Fragment=r,at.Profiler=i,at.PureComponent=x,at.StrictMode=n,at.Suspense=l,at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,at.act=F,at.cloneElement=function(G,z,B){if(G==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+G+".");var se=w({},G.props),de=G.key,me=G.ref,Ee=G._owner;if(z!=null){if(z.ref!==void 0&&(me=z.ref,Ee=k.current),z.key!==void 0&&(de=""+z.key),G.type&&G.type.defaultProps)var Ie=G.type.defaultProps;for(Ne in z)v.call(z,Ne)&&!T.hasOwnProperty(Ne)&&(se[Ne]=z[Ne]===void 0&&Ie!==void 0?Ie[Ne]:z[Ne])}var Ne=arguments.length-2;if(Ne===1)se.children=B;else if(1<Ne){Ie=Array(Ne);for(var Le=0;Le<Ne;Le++)Ie[Le]=arguments[Le+2];se.children=Ie}return{$$typeof:e,type:G.type,key:de,ref:me,props:se,_owner:Ee}},at.createContext=function(G){return G={$$typeof:s,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},G.Provider={$$typeof:a,_context:G},G.Consumer=G},at.createElement=N,at.createFactory=function(G){var z=N.bind(null,G);return z.type=G,z},at.createRef=function(){return{current:null}},at.forwardRef=function(G){return{$$typeof:o,render:G}},at.isValidElement=j,at.lazy=function(G){return{$$typeof:c,_payload:{_status:-1,_result:G},_init:V}},at.memo=function(G,z){return{$$typeof:u,type:G,compare:z===void 0?null:z}},at.startTransition=function(G){var z=Y.transition;Y.transition={};try{G()}finally{Y.transition=z}},at.unstable_act=F,at.useCallback=function(G,z){return K.current.useCallback(G,z)},at.useContext=function(G){return K.current.useContext(G)},at.useDebugValue=function(){},at.useDeferredValue=function(G){return K.current.useDeferredValue(G)},at.useEffect=function(G,z){return K.current.useEffect(G,z)},at.useId=function(){return K.current.useId()},at.useImperativeHandle=function(G,z,B){return K.current.useImperativeHandle(G,z,B)},at.useInsertionEffect=function(G,z){return K.current.useInsertionEffect(G,z)},at.useLayoutEffect=function(G,z){return K.current.useLayoutEffect(G,z)},at.useMemo=function(G,z){return K.current.useMemo(G,z)},at.useReducer=function(G,z,B){return K.current.useReducer(G,z,B)},at.useRef=function(G){return K.current.useRef(G)},at.useState=function(G){return K.current.useState(G)},at.useSyncExternalStore=function(G,z,B){return K.current.useSyncExternalStore(G,z,B)},at.useTransition=function(){return K.current.useTransition()},at.version="18.3.1",at}var sC;function ho(){return sC||(sC=1,Nv.exports=C4()),Nv.exports}/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var lC;function k4(){if(lC)return ac;lC=1;var e=ho(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(o,l,u){var c,d={},p=null,m=null;u!==void 0&&(p=""+u),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(m=l.ref);for(c in l)n.call(l,c)&&!a.hasOwnProperty(c)&&(d[c]=l[c]);if(o&&o.defaultProps)for(c in l=o.defaultProps,l)d[c]===void 0&&(d[c]=l[c]);return{$$typeof:t,type:o,key:p,ref:m,props:d,_owner:i.current}}return ac.Fragment=r,ac.jsx=s,ac.jsxs=s,ac}var uC;function A4(){return uC||(uC=1,Ov.exports=k4()),Ov.exports}var O=A4(),_h={},cC;function T4(){if(cC)return _h;cC=1;/*! @source http://purl.eligrey.com/github/canvas-toBlob.js/blob/master/canvas-toBlob.js */return function(e){var t=e.Uint8Array,r=e.HTMLCanvasElement,n=r&&r.prototype,i=/\s*;\s*base64\s*(?:;|$)/i,a="toDataURL",s,o=function(l){for(var u=l.length,c=new t(u/4*3|0),d=0,p=0,m=[0,0],w=0,g=0,_,E,x;u--;)E=l.charCodeAt(d++),_=s[E-43],_!==255&&_!==x&&(m[1]=m[0],m[0]=E,g=g<<6|_,w++,w===4&&(c[p++]=g>>>16,m[1]!==61&&(c[p++]=g>>>8),m[0]!==61&&(c[p++]=g),w=0));return c};t&&(s=new t([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&&(!n.toBlob||!n.toBlobHD)&&(n.toBlob||(n.toBlob=function(l,u){if(u||(u="image/png"),this.mozGetAsFile){l(this.mozGetAsFile("canvas",u));return}if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(u)){l(this.msToBlob());return}var c=Array.prototype.slice.call(arguments,1),d=this[a].apply(this,c),p=d.indexOf(","),m=d.substring(p+1),w=i.test(d.substring(0,p)),g;Blob.fake?(g=new Blob,w?g.encoding="base64":g.encoding="URI",g.data=m,g.size=m.length):t&&(w?g=new Blob([o(m)],{type:u}):g=new Blob([decodeURIComponent(m)],{type:u})),l(g)}),!n.toBlobHD&&n.toDataURLHD?n.toBlobHD=function(){a="toDataURLHD";var l=this.toBlob();return a="toDataURL",l}:n.toBlobHD=n.toBlob)}(typeof self<"u"&&self||typeof window<"u"&&window||_h.content||_h),_h}T4();var fC=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},I4=function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e}(),P4=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return e}(),R4=function(){function e(t,r,n,i){this.name=t,this.version=r,this.os=n,this.bot=i,this.type="bot-device"}return e}(),O4=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}(),N4=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}(),M4=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,D4=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,dC=3,F4=[["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",M4]],hC=[["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 L4(e){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new N4:typeof navigator<"u"?B4(navigator.userAgent):U4()}function j4(e){return e!==""&&F4.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var a=i.exec(e);return!!a&&[n,a]},!1)}function B4(e){var t=j4(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new O4;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length<dC&&(i=fC(fC([],i,!0),$4(dC-i.length),!0)):i=[];var a=i.join("."),s=z4(e),o=D4.exec(e);return o&&o[1]?new R4(r,a,s,o[1]):new I4(r,a,s)}function z4(e){for(var t=0,r=hC.length;t<r;t++){var n=hC[t],i=n[0],a=n[1],s=a.exec(e);if(s)return i}return null}function U4(){var e=typeof process<"u"&&process.version;return e?new P4(process.version.slice(1)):null}function $4(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}var bh={},Mv={exports:{}},$n={},Dv={exports:{}},Fv={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var pC;function H4(){return pC||(pC=1,function(e){function t(Y,q){var F=Y.length;Y.push(q);e:for(;0<F;){var G=F-1>>>1,z=Y[G];if(0<i(z,q))Y[G]=q,Y[F]=z,F=G;else break e}}function r(Y){return Y.length===0?null:Y[0]}function n(Y){if(Y.length===0)return null;var q=Y[0],F=Y.pop();if(F!==q){Y[0]=F;e:for(var G=0,z=Y.length,B=z>>>1;G<B;){var se=2*(G+1)-1,de=Y[se],me=se+1,Ee=Y[me];if(0>i(de,F))me<z&&0>i(Ee,de)?(Y[G]=Ee,Y[me]=F,G=me):(Y[G]=de,Y[se]=F,G=se);else if(me<z&&0>i(Ee,F))Y[G]=Ee,Y[me]=F,G=me;else break e}}return q}function i(Y,q){var F=Y.sortIndex-q.sortIndex;return F!==0?F:Y.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],c=1,d=null,p=3,m=!1,w=!1,g=!1,_=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(Y){for(var q=r(u);q!==null;){if(q.callback===null)n(u);else if(q.startTime<=Y)n(u),q.sortIndex=q.expirationTime,t(l,q);else break;q=r(u)}}function C(Y){if(g=!1,b(Y),!w)if(r(l)!==null)w=!0,V(v);else{var q=r(u);q!==null&&K(C,q.startTime-Y)}}function v(Y,q){w=!1,g&&(g=!1,E(N),N=-1),m=!0;var F=p;try{for(b(q),d=r(l);d!==null&&(!(d.expirationTime>q)||Y&&!D());){var G=d.callback;if(typeof G=="function"){d.callback=null,p=d.priorityLevel;var z=G(d.expirationTime<=q);q=e.unstable_now(),typeof z=="function"?d.callback=z:d===r(l)&&n(l),b(q)}else n(l);d=r(l)}if(d!==null)var B=!0;else{var se=r(u);se!==null&&K(C,se.startTime-q),B=!1}return B}finally{d=null,p=F,m=!1}}var k=!1,T=null,N=-1,M=5,j=-1;function D(){return!(e.unstable_now()-j<M)}function $(){if(T!==null){var Y=e.unstable_now();j=Y;var q=!0;try{q=T(!0,Y)}finally{q?X():(k=!1,T=null)}}else k=!1}var X;if(typeof x=="function")X=function(){x($)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,H=W.port2;W.port1.onmessage=$,X=function(){H.postMessage(null)}}else X=function(){_($,0)};function V(Y){T=Y,k||(k=!0,X())}function K(Y,q){N=_(function(){Y(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Y){Y.callback=null},e.unstable_continueExecution=function(){w||m||(w=!0,V(v))},e.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<Y?Math.floor(1e3/Y):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(Y){switch(p){case 1:case 2:case 3:var q=3;break;default:q=p}var F=p;p=q;try{return Y()}finally{p=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Y,q){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var F=p;p=Y;try{return q()}finally{p=F}},e.unstable_scheduleCallback=function(Y,q,F){var G=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?G+F:G):F=G,Y){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=F+z,Y={id:c++,callback:q,priorityLevel:Y,startTime:F,expirationTime:z,sortIndex:-1},F>G?(Y.sortIndex=F,t(u,Y),r(l)===null&&Y===r(u)&&(g?(E(N),N=-1):g=!0,K(C,F-G))):(Y.sortIndex=z,t(l,Y),w||m||(w=!0,V(v))),Y},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(Y){var q=p;return function(){var F=p;p=q;try{return Y.apply(this,arguments)}finally{p=F}}}}(Fv)),Fv}var mC;function q4(){return mC||(mC=1,Dv.exports=H4()),Dv.exports}/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var gC;function G4(){if(gC)return $n;gC=1;var e=ho(),t=q4();function r(f){for(var h="https://reactjs.org/docs/error-decoder.html?invariant="+f,y=1;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y]);return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function a(f,h){s(f,h),s(f+"Capture",h)}function s(f,h){for(i[f]=h,f=0;f<h.length;f++)n.add(h[f])}var o=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,c={},d={};function p(f){return l.call(d,f)?!0:l.call(c,f)?!1:u.test(f)?d[f]=!0:(c[f]=!0,!1)}function m(f,h,y,S){if(y!==null&&y.type===0)return!1;switch(typeof h){case"function":case"symbol":return!0;case"boolean":return S?!1:y!==null?!y.acceptsBooleans:(f=f.toLowerCase().slice(0,5),f!=="data-"&&f!=="aria-");default:return!1}}function w(f,h,y,S){if(h===null||typeof h>"u"||m(f,h,y,S))return!0;if(S)return!1;if(y!==null)switch(y.type){case 3:return!h;case 4:return h===!1;case 5:return isNaN(h);case 6:return isNaN(h)||1>h}return!1}function g(f,h,y,S,A,P,U){this.acceptsBooleans=h===2||h===3||h===4,this.attributeName=S,this.attributeNamespace=A,this.mustUseProperty=y,this.propertyName=f,this.type=h,this.sanitizeURL=P,this.removeEmptyString=U}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(f){_[f]=new g(f,0,!1,f,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(f){var h=f[0];_[h]=new g(h,1,!1,f[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(f){_[f]=new g(f,2,!1,f.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(f){_[f]=new g(f,2,!1,f,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(f){_[f]=new g(f,3,!1,f.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(f){_[f]=new g(f,3,!0,f,null,!1,!1)}),["capture","download"].forEach(function(f){_[f]=new g(f,4,!1,f,null,!1,!1)}),["cols","rows","size","span"].forEach(function(f){_[f]=new g(f,6,!1,f,null,!1,!1)}),["rowSpan","start"].forEach(function(f){_[f]=new g(f,5,!1,f.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function x(f){return f[1].toUpperCase()}"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(f){var h=f.replace(E,x);_[h]=new g(h,1,!1,f,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(f){var h=f.replace(E,x);_[h]=new g(h,1,!1,f,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(f){var h=f.replace(E,x);_[h]=new g(h,1,!1,f,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(f){_[f]=new g(f,1,!1,f.toLowerCase(),null,!1,!1)}),_.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(f){_[f]=new g(f,1,!1,f.toLowerCase(),null,!0,!0)});function b(f,h,y,S){var A=_.hasOwnProperty(h)?_[h]:null;(A!==null?A.type!==0:S||!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(w(h,y,A,S)&&(y=null),S||A===null?p(h)&&(y===null?f.removeAttribute(h):f.setAttribute(h,""+y)):A.mustUseProperty?f[A.propertyName]=y===null?A.type===3?!1:"":y:(h=A.attributeName,S=A.attributeNamespace,y===null?f.removeAttribute(h):(A=A.type,y=A===3||A===4&&y===!0?"":""+y,S?f.setAttributeNS(S,h,y):f.setAttribute(h,y))))}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=Symbol.for("react.element"),k=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),D=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),Y=Symbol.iterator;function q(f){return f===null||typeof f!="object"?null:(f=Y&&f[Y]||f["@@iterator"],typeof f=="function"?f:null)}var F=Object.assign,G;function z(f){if(G===void 0)try{throw Error()}catch(y){var h=y.stack.trim().match(/\n( *(at )?)/);G=h&&h[1]||""}return`
`+G+f}var B=!1;function se(f,h){if(!f||B)return"";B=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(h)if(h=function(){throw Error()},Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(he){var S=he}Reflect.construct(f,[],h)}else{try{h.call()}catch(he){S=he}f.call(h.prototype)}else{try{throw Error()}catch(he){S=he}f()}}catch(he){if(he&&S&&typeof he.stack=="string"){for(var A=he.stack.split(`
`),P=S.stack.split(`
`),U=A.length-1,Z=P.length-1;1<=U&&0<=Z&&A[U]!==P[Z];)Z--;for(;1<=U&&0<=Z;U--,Z--)if(A[U]!==P[Z]){if(U!==1||Z!==1)do if(U--,Z--,0>Z||A[U]!==P[Z]){var ne=`
`+A[U].replace(" at new "," at ");return f.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",f.displayName)),ne}while(1<=U&&0<=Z);break}}}finally{B=!1,Error.prepareStackTrace=y}return(f=f?f.displayName||f.name:"")?z(f):""}function de(f){switch(f.tag){case 5:return z(f.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return f=se(f.type,!1),f;case 11:return f=se(f.type.render,!1),f;case 1:return f=se(f.type,!0),f;default:return""}}function me(f){if(f==null)return null;if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case T:return"Fragment";case k:return"Portal";case M:return"Profiler";case N:return"StrictMode";case X:return"Suspense";case W:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case D:return(f.displayName||"Context")+".Consumer";case j:return(f._context.displayName||"Context")+".Provider";case $:var h=f.render;return f=f.displayName,f||(f=h.displayName||h.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case H:return h=f.displayName||null,h!==null?h:me(f.type)||"Memo";case V:h=f._payload,f=f._init;try{return me(f(h))}catch{}}return null}function Ee(f){var h=f.type;switch(f.tag){case 24:return"Cache";case 9:return(h.displayName||"Context")+".Consumer";case 10:return(h._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return f=h.render,f=f.displayName||f.name||"",h.displayName||(f!==""?"ForwardRef("+f+")":"ForwardRef");case 7:return"Fragment";case 5:return h;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return me(h);case 8:return h===N?"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(typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h}return null}function Ie(f){switch(typeof f){case"boolean":case"number":case"string":case"undefined":return f;case"object":return f;default:return""}}function Ne(f){var h=f.type;return(f=f.nodeName)&&f.toLowerCase()==="input"&&(h==="checkbox"||h==="radio")}function Le(f){var h=Ne(f)?"checked":"value",y=Object.getOwnPropertyDescriptor(f.constructor.prototype,h),S=""+f[h];if(!f.hasOwnProperty(h)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var A=y.get,P=y.set;return Object.defineProperty(f,h,{configurable:!0,get:function(){return A.call(this)},set:function(U){S=""+U,P.call(this,U)}}),Object.defineProperty(f,h,{enumerable:y.enumerable}),{getValue:function(){return S},setValue:function(U){S=""+U},stopTracking:function(){f._valueTracker=null,delete f[h]}}}}function He(f){f._valueTracker||(f._valueTracker=Le(f))}function Oe(f){if(!f)return!1;var h=f._valueTracker;if(!h)return!0;var y=h.getValue(),S="";return f&&(S=Ne(f)?f.checked?"true":"false":f.value),f=S,f!==y?(h.setValue(f),!0):!1}function Fe(f){if(f=f||(typeof document<"u"?document:void 0),typeof f>"u")return null;try{return f.activeElement||f.body}catch{return f.body}}function We(f,h){var y=h.checked;return F({},h,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:y??f._wrapperState.initialChecked})}function rt(f,h){var y=h.defaultValue==null?"":h.defaultValue,S=h.checked!=null?h.checked:h.defaultChecked;y=Ie(h.value!=null?h.value:y),f._wrapperState={initialChecked:S,initialValue:y,controlled:h.type==="checkbox"||h.type==="radio"?h.checked!=null:h.value!=null}}function ot(f,h){h=h.checked,h!=null&&b(f,"checked",h,!1)}function st(f,h){ot(f,h);var y=Ie(h.value),S=h.type;if(y!=null)S==="number"?(y===0&&f.value===""||f.value!=y)&&(f.value=""+y):f.value!==""+y&&(f.value=""+y);else if(S==="submit"||S==="reset"){f.removeAttribute("value");return}h.hasOwnProperty("value")?Ht(f,h.type,y):h.hasOwnProperty("defaultValue")&&Ht(f,h.type,Ie(h.defaultValue)),h.checked==null&&h.defaultChecked!=null&&(f.defaultChecked=!!h.defaultChecked)}function At(f,h,y){if(h.hasOwnProperty("value")||h.hasOwnProperty("defaultValue")){var S=h.type;if(!(S!=="submit"&&S!=="reset"||h.value!==void 0&&h.value!==null))return;h=""+f._wrapperState.initialValue,y||h===f.value||(f.value=h),f.defaultValue=h}y=f.name,y!==""&&(f.name=""),f.defaultChecked=!!f._wrapperState.initialChecked,y!==""&&(f.name=y)}function Ht(f,h,y){(h!=="number"||Fe(f.ownerDocument)!==f)&&(y==null?f.defaultValue=""+f._wrapperState.initialValue:f.defaultValue!==""+y&&(f.defaultValue=""+y))}var gt=Array.isArray;function ct(f,h,y,S){if(f=f.options,h){h={};for(var A=0;A<y.length;A++)h["$"+y[A]]=!0;for(y=0;y<f.length;y++)A=h.hasOwnProperty("$"+f[y].value),f[y].selected!==A&&(f[y].selected=A),A&&S&&(f[y].defaultSelected=!0)}else{for(y=""+Ie(y),h=null,A=0;A<f.length;A++){if(f[A].value===y){f[A].selected=!0,S&&(f[A].defaultSelected=!0);return}h!==null||f[A].disabled||(h=f[A])}h!==null&&(h.selected=!0)}}function we(f,h){if(h.dangerouslySetInnerHTML!=null)throw Error(r(91));return F({},h,{value:void 0,defaultValue:void 0,children:""+f._wrapperState.initialValue})}function et(f,h){var y=h.value;if(y==null){if(y=h.children,h=h.defaultValue,y!=null){if(h!=null)throw Error(r(92));if(gt(y)){if(1<y.length)throw Error(r(93));y=y[0]}h=y}h==null&&(h=""),y=h}f._wrapperState={initialValue:Ie(y)}}function it(f,h){var y=Ie(h.value),S=Ie(h.defaultValue);y!=null&&(y=""+y,y!==f.value&&(f.value=y),h.defaultValue==null&&f.defaultValue!==y&&(f.defaultValue=y)),S!=null&&(f.defaultValue=""+S)}function ht(f){var h=f.textContent;h===f._wrapperState.initialValue&&h!==""&&h!==null&&(f.value=h)}function pe(f){switch(f){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 L(f,h){return f==null||f==="http://www.w3.org/1999/xhtml"?pe(h):f==="http://www.w3.org/2000/svg"&&h==="foreignObject"?"http://www.w3.org/1999/xhtml":f}var I,R=function(f){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(h,y,S,A){MSApp.execUnsafeLocalFunction(function(){return f(h,y,S,A)})}:f}(function(f,h){if(f.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in f)f.innerHTML=h;else{for(I=I||document.createElement("div"),I.innerHTML="<svg>"+h.valueOf().toString()+"</svg>",h=I.firstChild;f.firstChild;)f.removeChild(f.firstChild);for(;h.firstChild;)f.appendChild(h.firstChild)}});function Q(f,h){if(h){var y=f.firstChild;if(y&&y===f.lastChild&&y.nodeType===3){y.nodeValue=h;return}}f.textContent=h}var re={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},fe=["Webkit","ms","Moz","O"];Object.keys(re).forEach(function(f){fe.forEach(function(h){h=h+f.charAt(0).toUpperCase()+f.substring(1),re[h]=re[f]})});function ge(f,h,y){return h==null||typeof h=="boolean"||h===""?"":y||typeof h!="number"||h===0||re.hasOwnProperty(f)&&re[f]?(""+h).trim():h+"px"}function Ve(f,h){f=f.style;for(var y in h)if(h.hasOwnProperty(y)){var S=y.indexOf("--")===0,A=ge(y,h[y],S);y==="float"&&(y="cssFloat"),S?f.setProperty(y,A):f[y]=A}}var ft=F({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 ae(f,h){if(h){if(ft[f]&&(h.children!=null||h.dangerouslySetInnerHTML!=null))throw Error(r(137,f));if(h.dangerouslySetInnerHTML!=null){if(h.children!=null)throw Error(r(60));if(typeof h.dangerouslySetInnerHTML!="object"||!("__html"in h.dangerouslySetInnerHTML))throw Error(r(61))}if(h.style!=null&&typeof h.style!="object")throw Error(r(62))}}function le(f,h){if(f.indexOf("-")===-1)return typeof h.is=="string";switch(f){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 Me=null;function _t(f){return f=f.target||f.srcElement||window,f.correspondingUseElement&&(f=f.correspondingUseElement),f.nodeType===3?f.parentNode:f}var St=null,Xe=null,kn=null;function ei(f){if(f=qu(f)){if(typeof St!="function")throw Error(r(280));var h=f.stateNode;h&&(h=Dd(h),St(f.stateNode,f.type,h))}}function wn(f){Xe?kn?kn.push(f):kn=[f]:Xe=f}function Mr(){if(Xe){var f=Xe,h=kn;if(kn=Xe=null,ei(f),h)for(f=0;f<h.length;f++)ei(h[f])}}function Ts(f,h){return f(h)}function Ti(){}var An=!1;function _u(f,h,y){if(An)return f(h,y);An=!0;try{return Ts(f,h,y)}finally{An=!1,(Xe!==null||kn!==null)&&(Ti(),Mr())}}function da(f,h){var y=f.stateNode;if(y===null)return null;var S=Dd(y);if(S===null)return null;y=S[h];e:switch(h){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(S=!S.disabled)||(f=f.type,S=!(f==="button"||f==="input"||f==="select"||f==="textarea")),f=!S;break e;default:f=!1}if(f)return null;if(y&&typeof y!="function")throw Error(r(231,h,typeof y));return y}var Is=!1;if(o)try{var Dr={};Object.defineProperty(Dr,"passive",{get:function(){Is=!0}}),window.addEventListener("test",Dr,Dr),window.removeEventListener("test",Dr,Dr)}catch{Is=!1}function bu(f,h,y,S,A,P,U,Z,ne){var he=Array.prototype.slice.call(arguments,3);try{h.apply(y,he)}catch(_e){this.onError(_e)}}var ti=!1,ha=null,pa=!1,Ps=null,fd={onError:function(f){ti=!0,ha=f}};function xu(f,h,y,S,A,P,U,Z,ne){ti=!1,ha=null,bu.apply(fd,arguments)}function dd(f,h,y,S,A,P,U,Z,ne){if(xu.apply(this,arguments),ti){if(ti){var he=ha;ti=!1,ha=null}else throw Error(r(198));pa||(pa=!0,Ps=he)}}function Fr(f){var h=f,y=f;if(f.alternate)for(;h.return;)h=h.return;else{f=h;do h=f,(h.flags&4098)!==0&&(y=h.return),f=h.return;while(f)}return h.tag===3?y:null}function Eu(f){if(f.tag===13){var h=f.memoizedState;if(h===null&&(f=f.alternate,f!==null&&(h=f.memoizedState)),h!==null)return h.dehydrated}return null}function hd(f){if(Fr(f)!==f)throw Error(r(188))}function Su(f){var h=f.alternate;if(!h){if(h=Fr(f),h===null)throw Error(r(188));return h!==f?null:f}for(var y=f,S=h;;){var A=y.return;if(A===null)break;var P=A.alternate;if(P===null){if(S=A.return,S!==null){y=S;continue}break}if(A.child===P.child){for(P=A.child;P;){if(P===y)return hd(A),f;if(P===S)return hd(A),h;P=P.sibling}throw Error(r(188))}if(y.return!==S.return)y=A,S=P;else{for(var U=!1,Z=A.child;Z;){if(Z===y){U=!0,y=A,S=P;break}if(Z===S){U=!0,S=A,y=P;break}Z=Z.sibling}if(!U){for(Z=P.child;Z;){if(Z===y){U=!0,y=P,S=A;break}if(Z===S){U=!0,S=P,y=A;break}Z=Z.sibling}if(!U)throw Error(r(189))}}if(y.alternate!==S)throw Error(r(190))}if(y.tag!==3)throw Error(r(188));return y.stateNode.current===y?f:h}function Ii(f){return f=Su(f),f!==null?Eo(f):null}function Eo(f){if(f.tag===5||f.tag===6)return f;for(f=f.child;f!==null;){var h=Eo(f);if(h!==null)return h;f=f.sibling}return null}var pd=t.unstable_scheduleCallback,Cu=t.unstable_cancelCallback,F3=t.unstable_shouldYield,L3=t.unstable_requestPaint,Wt=t.unstable_now,j3=t.unstable_getCurrentPriorityLevel,Jm=t.unstable_ImmediatePriority,Dx=t.unstable_UserBlockingPriority,md=t.unstable_NormalPriority,B3=t.unstable_LowPriority,Fx=t.unstable_IdlePriority,gd=null,ni=null;function z3(f){if(ni&&typeof ni.onCommitFiberRoot=="function")try{ni.onCommitFiberRoot(gd,f,void 0,(f.current.flags&128)===128)}catch{}}var Lr=Math.clz32?Math.clz32:H3,U3=Math.log,$3=Math.LN2;function H3(f){return f>>>=0,f===0?32:31-(U3(f)/$3|0)|0}var vd=64,yd=4194304;function ku(f){switch(f&-f){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 f&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return f&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return f}}function wd(f,h){var y=f.pendingLanes;if(y===0)return 0;var S=0,A=f.suspendedLanes,P=f.pingedLanes,U=y&268435455;if(U!==0){var Z=U&~A;Z!==0?S=ku(Z):(P&=U,P!==0&&(S=ku(P)))}else U=y&~A,U!==0?S=ku(U):P!==0&&(S=ku(P));if(S===0)return 0;if(h!==0&&h!==S&&(h&A)===0&&(A=S&-S,P=h&-h,A>=P||A===16&&(P&4194240)!==0))return h;if((S&4)!==0&&(S|=y&16),h=f.entangledLanes,h!==0)for(f=f.entanglements,h&=S;0<h;)y=31-Lr(h),A=1<<y,S|=f[y],h&=~A;return S}function q3(f,h){switch(f){case 1:case 2:case 4:return h+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 h+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function G3(f,h){for(var y=f.suspendedLanes,S=f.pingedLanes,A=f.expirationTimes,P=f.pendingLanes;0<P;){var U=31-Lr(P),Z=1<<U,ne=A[U];ne===-1?((Z&y)===0||(Z&S)!==0)&&(A[U]=q3(Z,h)):ne<=h&&(f.expiredLanes|=Z),P&=~Z}}function Zm(f){return f=f.pendingLanes&-1073741825,f!==0?f:f&1073741824?1073741824:0}function Lx(){var f=vd;return vd<<=1,(vd&4194240)===0&&(vd=64),f}function eg(f){for(var h=[],y=0;31>y;y++)h.push(f);return h}function Au(f,h,y){f.pendingLanes|=h,h!==536870912&&(f.suspendedLanes=0,f.pingedLanes=0),f=f.eventTimes,h=31-Lr(h),f[h]=y}function W3(f,h){var y=f.pendingLanes&~h;f.pendingLanes=h,f.suspendedLanes=0,f.pingedLanes=0,f.expiredLanes&=h,f.mutableReadLanes&=h,f.entangledLanes&=h,h=f.entanglements;var S=f.eventTimes;for(f=f.expirationTimes;0<y;){var A=31-Lr(y),P=1<<A;h[A]=0,S[A]=-1,f[A]=-1,y&=~P}}function tg(f,h){var y=f.entangledLanes|=h;for(f=f.entanglements;y;){var S=31-Lr(y),A=1<<S;A&h|f[S]&h&&(f[S]|=h),y&=~A}}var Ct=0;function jx(f){return f&=-f,1<f?4<f?(f&268435455)!==0?16:536870912:4:1}var Bx,ng,zx,Ux,$x,rg=!1,_d=[],ma=null,ga=null,va=null,Tu=new Map,Iu=new Map,ya=[],V3="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 Hx(f,h){switch(f){case"focusin":case"focusout":ma=null;break;case"dragenter":case"dragleave":ga=null;break;case"mouseover":case"mouseout":va=null;break;case"pointerover":case"pointerout":Tu.delete(h.pointerId);break;case"gotpointercapture":case"lostpointercapture":Iu.delete(h.pointerId)}}function Pu(f,h,y,S,A,P){return f===null||f.nativeEvent!==P?(f={blockedOn:h,domEventName:y,eventSystemFlags:S,nativeEvent:P,targetContainers:[A]},h!==null&&(h=qu(h),h!==null&&ng(h)),f):(f.eventSystemFlags|=S,h=f.targetContainers,A!==null&&h.indexOf(A)===-1&&h.push(A),f)}function Q3(f,h,y,S,A){switch(h){case"focusin":return ma=Pu(ma,f,h,y,S,A),!0;case"dragenter":return ga=Pu(ga,f,h,y,S,A),!0;case"mouseover":return va=Pu(va,f,h,y,S,A),!0;case"pointerover":var P=A.pointerId;return Tu.set(P,Pu(Tu.get(P)||null,f,h,y,S,A)),!0;case"gotpointercapture":return P=A.pointerId,Iu.set(P,Pu(Iu.get(P)||null,f,h,y,S,A)),!0}return!1}function qx(f){var h=So(f.target);if(h!==null){var y=Fr(h);if(y!==null){if(h=y.tag,h===13){if(h=Eu(y),h!==null){f.blockedOn=h,$x(f.priority,function(){zx(y)});return}}else if(h===3&&y.stateNode.current.memoizedState.isDehydrated){f.blockedOn=y.tag===3?y.stateNode.containerInfo:null;return}}}f.blockedOn=null}function bd(f){if(f.blockedOn!==null)return!1;for(var h=f.targetContainers;0<h.length;){var y=ag(f.domEventName,f.eventSystemFlags,h[0],f.nativeEvent);if(y===null){y=f.nativeEvent;var S=new y.constructor(y.type,y);Me=S,y.target.dispatchEvent(S),Me=null}else return h=qu(y),h!==null&&ng(h),f.blockedOn=y,!1;h.shift()}return!0}function Gx(f,h,y){bd(f)&&y.delete(h)}function K3(){rg=!1,ma!==null&&bd(ma)&&(ma=null),ga!==null&&bd(ga)&&(ga=null),va!==null&&bd(va)&&(va=null),Tu.forEach(Gx),Iu.forEach(Gx)}function Ru(f,h){f.blockedOn===h&&(f.blockedOn=null,rg||(rg=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,K3)))}function Ou(f){function h(A){return Ru(A,f)}if(0<_d.length){Ru(_d[0],f);for(var y=1;y<_d.length;y++){var S=_d[y];S.blockedOn===f&&(S.blockedOn=null)}}for(ma!==null&&Ru(ma,f),ga!==null&&Ru(ga,f),va!==null&&Ru(va,f),Tu.forEach(h),Iu.forEach(h),y=0;y<ya.length;y++)S=ya[y],S.blockedOn===f&&(S.blockedOn=null);for(;0<ya.length&&(y=ya[0],y.blockedOn===null);)qx(y),y.blockedOn===null&&ya.shift()}var Rs=C.ReactCurrentBatchConfig,xd=!0;function Y3(f,h,y,S){var A=Ct,P=Rs.transition;Rs.transition=null;try{Ct=1,ig(f,h,y,S)}finally{Ct=A,Rs.transition=P}}function X3(f,h,y,S){var A=Ct,P=Rs.transition;Rs.transition=null;try{Ct=4,ig(f,h,y,S)}finally{Ct=A,Rs.transition=P}}function ig(f,h,y,S){if(xd){var A=ag(f,h,y,S);if(A===null)xg(f,h,S,Ed,y),Hx(f,S);else if(Q3(A,f,h,y,S))S.stopPropagation();else if(Hx(f,S),h&4&&-1<V3.indexOf(f)){for(;A!==null;){var P=qu(A);if(P!==null&&Bx(P),P=ag(f,h,y,S),P===null&&xg(f,h,S,Ed,y),P===A)break;A=P}A!==null&&S.stopPropagation()}else xg(f,h,S,null,y)}}var Ed=null;function ag(f,h,y,S){if(Ed=null,f=_t(S),f=So(f),f!==null)if(h=Fr(f),h===null)f=null;else if(y=h.tag,y===13){if(f=Eu(h),f!==null)return f;f=null}else if(y===3){if(h.stateNode.current.memoizedState.isDehydrated)return h.tag===3?h.stateNode.containerInfo:null;f=null}else h!==f&&(f=null);return Ed=f,null}function Wx(f){switch(f){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(j3()){case Jm:return 1;case Dx:return 4;case md:case B3:return 16;case Fx:return 536870912;default:return 16}default:return 16}}var wa=null,og=null,Sd=null;function Vx(){if(Sd)return Sd;var f,h=og,y=h.length,S,A="value"in wa?wa.value:wa.textContent,P=A.length;for(f=0;f<y&&h[f]===A[f];f++);var U=y-f;for(S=1;S<=U&&h[y-S]===A[P-S];S++);return Sd=A.slice(f,1<S?1-S:void 0)}function Cd(f){var h=f.keyCode;return"charCode"in f?(f=f.charCode,f===0&&h===13&&(f=13)):f=h,f===10&&(f=13),32<=f||f===13?f:0}function kd(){return!0}function Qx(){return!1}function tr(f){function h(y,S,A,P,U){this._reactName=y,this._targetInst=A,this.type=S,this.nativeEvent=P,this.target=U,this.currentTarget=null;for(var Z in f)f.hasOwnProperty(Z)&&(y=f[Z],this[Z]=y?y(P):P[Z]);return this.isDefaultPrevented=(P.defaultPrevented!=null?P.defaultPrevented:P.returnValue===!1)?kd:Qx,this.isPropagationStopped=Qx,this}return F(h.prototype,{preventDefault:function(){this.defaultPrevented=!0;var y=this.nativeEvent;y&&(y.preventDefault?y.preventDefault():typeof y.returnValue!="unknown"&&(y.returnValue=!1),this.isDefaultPrevented=kd)},stopPropagation:function(){var y=this.nativeEvent;y&&(y.stopPropagation?y.stopPropagation():typeof y.cancelBubble!="unknown"&&(y.cancelBubble=!0),this.isPropagationStopped=kd)},persist:function(){},isPersistent:kd}),h}var Os={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(f){return f.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sg=tr(Os),Nu=F({},Os,{view:0,detail:0}),J3=tr(Nu),lg,ug,Mu,Ad=F({},Nu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fg,button:0,buttons:0,relatedTarget:function(f){return f.relatedTarget===void 0?f.fromElement===f.srcElement?f.toElement:f.fromElement:f.relatedTarget},movementX:function(f){return"movementX"in f?f.movementX:(f!==Mu&&(Mu&&f.type==="mousemove"?(lg=f.screenX-Mu.screenX,ug=f.screenY-Mu.screenY):ug=lg=0,Mu=f),lg)},movementY:function(f){return"movementY"in f?f.movementY:ug}}),Kx=tr(Ad),Z3=F({},Ad,{dataTransfer:0}),ej=tr(Z3),tj=F({},Nu,{relatedTarget:0}),cg=tr(tj),nj=F({},Os,{animationName:0,elapsedTime:0,pseudoElement:0}),rj=tr(nj),ij=F({},Os,{clipboardData:function(f){return"clipboardData"in f?f.clipboardData:window.clipboardData}}),aj=tr(ij),oj=F({},Os,{data:0}),Yx=tr(oj),sj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lj={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"},uj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cj(f){var h=this.nativeEvent;return h.getModifierState?h.getModifierState(f):(f=uj[f])?!!h[f]:!1}function fg(){return cj}var fj=F({},Nu,{key:function(f){if(f.key){var h=sj[f.key]||f.key;if(h!=="Unidentified")return h}return f.type==="keypress"?(f=Cd(f),f===13?"Enter":String.fromCharCode(f)):f.type==="keydown"||f.type==="keyup"?lj[f.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fg,charCode:function(f){return f.type==="keypress"?Cd(f):0},keyCode:function(f){return f.type==="keydown"||f.type==="keyup"?f.keyCode:0},which:function(f){return f.type==="keypress"?Cd(f):f.type==="keydown"||f.type==="keyup"?f.keyCode:0}}),dj=tr(fj),hj=F({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xx=tr(hj),pj=F({},Nu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fg}),mj=tr(pj),gj=F({},Os,{propertyName:0,elapsedTime:0,pseudoElement:0}),vj=tr(gj),yj=F({},Ad,{deltaX:function(f){return"deltaX"in f?f.deltaX:"wheelDeltaX"in f?-f.wheelDeltaX:0},deltaY:function(f){return"deltaY"in f?f.deltaY:"wheelDeltaY"in f?-f.wheelDeltaY:"wheelDelta"in f?-f.wheelDelta:0},deltaZ:0,deltaMode:0}),wj=tr(yj),_j=[9,13,27,32],dg=o&&"CompositionEvent"in window,Du=null;o&&"documentMode"in document&&(Du=document.documentMode);var bj=o&&"TextEvent"in window&&!Du,Jx=o&&(!dg||Du&&8<Du&&11>=Du),Zx=" ",eE=!1;function tE(f,h){switch(f){case"keyup":return _j.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nE(f){return f=f.detail,typeof f=="object"&&"data"in f?f.data:null}var Ns=!1;function xj(f,h){switch(f){case"compositionend":return nE(h);case"keypress":return h.which!==32?null:(eE=!0,Zx);case"textInput":return f=h.data,f===Zx&&eE?null:f;default:return null}}function Ej(f,h){if(Ns)return f==="compositionend"||!dg&&tE(f,h)?(f=Vx(),Sd=og=wa=null,Ns=!1,f):null;switch(f){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1<h.char.length)return h.char;if(h.which)return String.fromCharCode(h.which)}return null;case"compositionend":return Jx&&h.locale!=="ko"?null:h.data;default:return null}}var Sj={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 rE(f){var h=f&&f.nodeName&&f.nodeName.toLowerCase();return h==="input"?!!Sj[f.type]:h==="textarea"}function iE(f,h,y,S){wn(S),h=Od(h,"onChange"),0<h.length&&(y=new sg("onChange","change",null,y,S),f.push({event:y,listeners:h}))}var Fu=null,Lu=null;function Cj(f){xE(f,0)}function Td(f){var h=js(f);if(Oe(h))return f}function kj(f,h){if(f==="change")return h}var aE=!1;if(o){var hg;if(o){var pg="oninput"in document;if(!pg){var oE=document.createElement("div");oE.setAttribute("oninput","return;"),pg=typeof oE.oninput=="function"}hg=pg}else hg=!1;aE=hg&&(!document.documentMode||9<document.documentMode)}function sE(){Fu&&(Fu.detachEvent("onpropertychange",lE),Lu=Fu=null)}function lE(f){if(f.propertyName==="value"&&Td(Lu)){var h=[];iE(h,Lu,f,_t(f)),_u(Cj,h)}}function Aj(f,h,y){f==="focusin"?(sE(),Fu=h,Lu=y,Fu.attachEvent("onpropertychange",lE)):f==="focusout"&&sE()}function Tj(f){if(f==="selectionchange"||f==="keyup"||f==="keydown")return Td(Lu)}function Ij(f,h){if(f==="click")return Td(h)}function Pj(f,h){if(f==="input"||f==="change")return Td(h)}function Rj(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var jr=typeof Object.is=="function"?Object.is:Rj;function ju(f,h){if(jr(f,h))return!0;if(typeof f!="object"||f===null||typeof h!="object"||h===null)return!1;var y=Object.keys(f),S=Object.keys(h);if(y.length!==S.length)return!1;for(S=0;S<y.length;S++){var A=y[S];if(!l.call(h,A)||!jr(f[A],h[A]))return!1}return!0}function uE(f){for(;f&&f.firstChild;)f=f.firstChild;return f}function cE(f,h){var y=uE(f);f=0;for(var S;y;){if(y.nodeType===3){if(S=f+y.textContent.length,f<=h&&S>=h)return{node:y,offset:h-f};f=S}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=uE(y)}}function fE(f,h){return f&&h?f===h?!0:f&&f.nodeType===3?!1:h&&h.nodeType===3?fE(f,h.parentNode):"contains"in f?f.contains(h):f.compareDocumentPosition?!!(f.compareDocumentPosition(h)&16):!1:!1}function dE(){for(var f=window,h=Fe();h instanceof f.HTMLIFrameElement;){try{var y=typeof h.contentWindow.location.href=="string"}catch{y=!1}if(y)f=h.contentWindow;else break;h=Fe(f.document)}return h}function mg(f){var h=f&&f.nodeName&&f.nodeName.toLowerCase();return h&&(h==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||h==="textarea"||f.contentEditable==="true")}function Oj(f){var h=dE(),y=f.focusedElem,S=f.selectionRange;if(h!==y&&y&&y.ownerDocument&&fE(y.ownerDocument.documentElement,y)){if(S!==null&&mg(y)){if(h=S.start,f=S.end,f===void 0&&(f=h),"selectionStart"in y)y.selectionStart=h,y.selectionEnd=Math.min(f,y.value.length);else if(f=(h=y.ownerDocument||document)&&h.defaultView||window,f.getSelection){f=f.getSelection();var A=y.textContent.length,P=Math.min(S.start,A);S=S.end===void 0?P:Math.min(S.end,A),!f.extend&&P>S&&(A=S,S=P,P=A),A=cE(y,P);var U=cE(y,S);A&&U&&(f.rangeCount!==1||f.anchorNode!==A.node||f.anchorOffset!==A.offset||f.focusNode!==U.node||f.focusOffset!==U.offset)&&(h=h.createRange(),h.setStart(A.node,A.offset),f.removeAllRanges(),P>S?(f.addRange(h),f.extend(U.node,U.offset)):(h.setEnd(U.node,U.offset),f.addRange(h)))}}for(h=[],f=y;f=f.parentNode;)f.nodeType===1&&h.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<h.length;y++)f=h[y],f.element.scrollLeft=f.left,f.element.scrollTop=f.top}}var Nj=o&&"documentMode"in document&&11>=document.documentMode,Ms=null,gg=null,Bu=null,vg=!1;function hE(f,h,y){var S=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;vg||Ms==null||Ms!==Fe(S)||(S=Ms,"selectionStart"in S&&mg(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),Bu&&ju(Bu,S)||(Bu=S,S=Od(gg,"onSelect"),0<S.length&&(h=new sg("onSelect","select",null,h,y),f.push({event:h,listeners:S}),h.target=Ms)))}function Id(f,h){var y={};return y[f.toLowerCase()]=h.toLowerCase(),y["Webkit"+f]="webkit"+h,y["Moz"+f]="moz"+h,y}var Ds={animationend:Id("Animation","AnimationEnd"),animationiteration:Id("Animation","AnimationIteration"),animationstart:Id("Animation","AnimationStart"),transitionend:Id("Transition","TransitionEnd")},yg={},pE={};o&&(pE=document.createElement("div").style,"AnimationEvent"in window||(delete Ds.animationend.animation,delete Ds.animationiteration.animation,delete Ds.animationstart.animation),"TransitionEvent"in window||delete Ds.transitionend.transition);function Pd(f){if(yg[f])return yg[f];if(!Ds[f])return f;var h=Ds[f],y;for(y in h)if(h.hasOwnProperty(y)&&y in pE)return yg[f]=h[y];return f}var mE=Pd("animationend"),gE=Pd("animationiteration"),vE=Pd("animationstart"),yE=Pd("transitionend"),wE=new Map,_E="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 _a(f,h){wE.set(f,h),a(h,[f])}for(var wg=0;wg<_E.length;wg++){var _g=_E[wg],Mj=_g.toLowerCase(),Dj=_g[0].toUpperCase()+_g.slice(1);_a(Mj,"on"+Dj)}_a(mE,"onAnimationEnd"),_a(gE,"onAnimationIteration"),_a(vE,"onAnimationStart"),_a("dblclick","onDoubleClick"),_a("focusin","onFocus"),_a("focusout","onBlur"),_a(yE,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zu="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(" "),Fj=new Set("cancel close invalid load scroll toggle".split(" ").concat(zu));function bE(f,h,y){var S=f.type||"unknown-event";f.currentTarget=y,dd(S,h,void 0,f),f.currentTarget=null}function xE(f,h){h=(h&4)!==0;for(var y=0;y<f.length;y++){var S=f[y],A=S.event;S=S.listeners;e:{var P=void 0;if(h)for(var U=S.length-1;0<=U;U--){var Z=S[U],ne=Z.instance,he=Z.currentTarget;if(Z=Z.listener,ne!==P&&A.isPropagationStopped())break e;bE(A,Z,he),P=ne}else for(U=0;U<S.length;U++){if(Z=S[U],ne=Z.instance,he=Z.currentTarget,Z=Z.listener,ne!==P&&A.isPropagationStopped())break e;bE(A,Z,he),P=ne}}}if(pa)throw f=Ps,pa=!1,Ps=null,f}function Ot(f,h){var y=h[Tg];y===void 0&&(y=h[Tg]=new Set);var S=f+"__bubble";y.has(S)||(EE(h,f,2,!1),y.add(S))}function bg(f,h,y){var S=0;h&&(S|=4),EE(y,f,S,h)}var Rd="_reactListening"+Math.random().toString(36).slice(2);function Uu(f){if(!f[Rd]){f[Rd]=!0,n.forEach(function(y){y!=="selectionchange"&&(Fj.has(y)||bg(y,!1,f),bg(y,!0,f))});var h=f.nodeType===9?f:f.ownerDocument;h===null||h[Rd]||(h[Rd]=!0,bg("selectionchange",!1,h))}}function EE(f,h,y,S){switch(Wx(h)){case 1:var A=Y3;break;case 4:A=X3;break;default:A=ig}y=A.bind(null,h,y,f),A=void 0,!Is||h!=="touchstart"&&h!=="touchmove"&&h!=="wheel"||(A=!0),S?A!==void 0?f.addEventListener(h,y,{capture:!0,passive:A}):f.addEventListener(h,y,!0):A!==void 0?f.addEventListener(h,y,{passive:A}):f.addEventListener(h,y,!1)}function xg(f,h,y,S,A){var P=S;if((h&1)===0&&(h&2)===0&&S!==null)e:for(;;){if(S===null)return;var U=S.tag;if(U===3||U===4){var Z=S.stateNode.containerInfo;if(Z===A||Z.nodeType===8&&Z.parentNode===A)break;if(U===4)for(U=S.return;U!==null;){var ne=U.tag;if((ne===3||ne===4)&&(ne=U.stateNode.containerInfo,ne===A||ne.nodeType===8&&ne.parentNode===A))return;U=U.return}for(;Z!==null;){if(U=So(Z),U===null)return;if(ne=U.tag,ne===5||ne===6){S=P=U;continue e}Z=Z.parentNode}}S=S.return}_u(function(){var he=P,_e=_t(y),Se=[];e:{var ye=wE.get(f);if(ye!==void 0){var De=sg,Be=f;switch(f){case"keypress":if(Cd(y)===0)break e;case"keydown":case"keyup":De=dj;break;case"focusin":Be="focus",De=cg;break;case"focusout":Be="blur",De=cg;break;case"beforeblur":case"afterblur":De=cg;break;case"click":if(y.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":De=Kx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":De=ej;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":De=mj;break;case mE:case gE:case vE:De=rj;break;case yE:De=vj;break;case"scroll":De=J3;break;case"wheel":De=wj;break;case"copy":case"cut":case"paste":De=aj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":De=Xx}var ze=(h&4)!==0,Vt=!ze&&f==="scroll",ue=ze?ye!==null?ye+"Capture":null:ye;ze=[];for(var oe=he,ce;oe!==null;){ce=oe;var Ae=ce.stateNode;if(ce.tag===5&&Ae!==null&&(ce=Ae,ue!==null&&(Ae=da(oe,ue),Ae!=null&&ze.push($u(oe,Ae,ce)))),Vt)break;oe=oe.return}0<ze.length&&(ye=new De(ye,Be,null,y,_e),Se.push({event:ye,listeners:ze}))}}if((h&7)===0){e:{if(ye=f==="mouseover"||f==="pointerover",De=f==="mouseout"||f==="pointerout",ye&&y!==Me&&(Be=y.relatedTarget||y.fromElement)&&(So(Be)||Be[Pi]))break e;if((De||ye)&&(ye=_e.window===_e?_e:(ye=_e.ownerDocument)?ye.defaultView||ye.parentWindow:window,De?(Be=y.relatedTarget||y.toElement,De=he,Be=Be?So(Be):null,Be!==null&&(Vt=Fr(Be),Be!==Vt||Be.tag!==5&&Be.tag!==6)&&(Be=null)):(De=null,Be=he),De!==Be)){if(ze=Kx,Ae="onMouseLeave",ue="onMouseEnter",oe="mouse",(f==="pointerout"||f==="pointerover")&&(ze=Xx,Ae="onPointerLeave",ue="onPointerEnter",oe="pointer"),Vt=De==null?ye:js(De),ce=Be==null?ye:js(Be),ye=new ze(Ae,oe+"leave",De,y,_e),ye.target=Vt,ye.relatedTarget=ce,Ae=null,So(_e)===he&&(ze=new ze(ue,oe+"enter",Be,y,_e),ze.target=ce,ze.relatedTarget=Vt,Ae=ze),Vt=Ae,De&&Be)t:{for(ze=De,ue=Be,oe=0,ce=ze;ce;ce=Fs(ce))oe++;for(ce=0,Ae=ue;Ae;Ae=Fs(Ae))ce++;for(;0<oe-ce;)ze=Fs(ze),oe--;for(;0<ce-oe;)ue=Fs(ue),ce--;for(;oe--;){if(ze===ue||ue!==null&&ze===ue.alternate)break t;ze=Fs(ze),ue=Fs(ue)}ze=null}else ze=null;De!==null&&SE(Se,ye,De,ze,!1),Be!==null&&Vt!==null&&SE(Se,Vt,Be,ze,!0)}}e:{if(ye=he?js(he):window,De=ye.nodeName&&ye.nodeName.toLowerCase(),De==="select"||De==="input"&&ye.type==="file")var $e=kj;else if(rE(ye))if(aE)$e=Pj;else{$e=Tj;var qe=Aj}else(De=ye.nodeName)&&De.toLowerCase()==="input"&&(ye.type==="checkbox"||ye.type==="radio")&&($e=Ij);if($e&&($e=$e(f,he))){iE(Se,$e,y,_e);break e}qe&&qe(f,ye,he),f==="focusout"&&(qe=ye._wrapperState)&&qe.controlled&&ye.type==="number"&&Ht(ye,"number",ye.value)}switch(qe=he?js(he):window,f){case"focusin":(rE(qe)||qe.contentEditable==="true")&&(Ms=qe,gg=he,Bu=null);break;case"focusout":Bu=gg=Ms=null;break;case"mousedown":vg=!0;break;case"contextmenu":case"mouseup":case"dragend":vg=!1,hE(Se,y,_e);break;case"selectionchange":if(Nj)break;case"keydown":case"keyup":hE(Se,y,_e)}var Ge;if(dg)e:{switch(f){case"compositionstart":var Qe="onCompositionStart";break e;case"compositionend":Qe="onCompositionEnd";break e;case"compositionupdate":Qe="onCompositionUpdate";break e}Qe=void 0}else Ns?tE(f,y)&&(Qe="onCompositionEnd"):f==="keydown"&&y.keyCode===229&&(Qe="onCompositionStart");Qe&&(Jx&&y.locale!=="ko"&&(Ns||Qe!=="onCompositionStart"?Qe==="onCompositionEnd"&&Ns&&(Ge=Vx()):(wa=_e,og="value"in wa?wa.value:wa.textContent,Ns=!0)),qe=Od(he,Qe),0<qe.length&&(Qe=new Yx(Qe,f,null,y,_e),Se.push({event:Qe,listeners:qe}),Ge?Qe.data=Ge:(Ge=nE(y),Ge!==null&&(Qe.data=Ge)))),(Ge=bj?xj(f,y):Ej(f,y))&&(he=Od(he,"onBeforeInput"),0<he.length&&(_e=new Yx("onBeforeInput","beforeinput",null,y,_e),Se.push({event:_e,listeners:he}),_e.data=Ge))}xE(Se,h)})}function $u(f,h,y){return{instance:f,listener:h,currentTarget:y}}function Od(f,h){for(var y=h+"Capture",S=[];f!==null;){var A=f,P=A.stateNode;A.tag===5&&P!==null&&(A=P,P=da(f,y),P!=null&&S.unshift($u(f,P,A)),P=da(f,h),P!=null&&S.push($u(f,P,A))),f=f.return}return S}function Fs(f){if(f===null)return null;do f=f.return;while(f&&f.tag!==5);return f||null}function SE(f,h,y,S,A){for(var P=h._reactName,U=[];y!==null&&y!==S;){var Z=y,ne=Z.alternate,he=Z.stateNode;if(ne!==null&&ne===S)break;Z.tag===5&&he!==null&&(Z=he,A?(ne=da(y,P),ne!=null&&U.unshift($u(y,ne,Z))):A||(ne=da(y,P),ne!=null&&U.push($u(y,ne,Z)))),y=y.return}U.length!==0&&f.push({event:h,listeners:U})}var Lj=/\r\n?/g,jj=/\u0000|\uFFFD/g;function CE(f){return(typeof f=="string"?f:""+f).replace(Lj,`
`).replace(jj,"")}function Nd(f,h,y){if(h=CE(h),CE(f)!==h&&y)throw Error(r(425))}function Md(){}var Eg=null,Sg=null;function Cg(f,h){return f==="textarea"||f==="noscript"||typeof h.children=="string"||typeof h.children=="number"||typeof h.dangerouslySetInnerHTML=="object"&&h.dangerouslySetInnerHTML!==null&&h.dangerouslySetInnerHTML.__html!=null}var kg=typeof setTimeout=="function"?setTimeout:void 0,Bj=typeof clearTimeout=="function"?clearTimeout:void 0,kE=typeof Promise=="function"?Promise:void 0,zj=typeof queueMicrotask=="function"?queueMicrotask:typeof kE<"u"?function(f){return kE.resolve(null).then(f).catch(Uj)}:kg;function Uj(f){setTimeout(function(){throw f})}function Ag(f,h){var y=h,S=0;do{var A=y.nextSibling;if(f.removeChild(y),A&&A.nodeType===8)if(y=A.data,y==="/$"){if(S===0){f.removeChild(A),Ou(h);return}S--}else y!=="$"&&y!=="$?"&&y!=="$!"||S++;y=A}while(y);Ou(h)}function ba(f){for(;f!=null;f=f.nextSibling){var h=f.nodeType;if(h===1||h===3)break;if(h===8){if(h=f.data,h==="$"||h==="$!"||h==="$?")break;if(h==="/$")return null}}return f}function AE(f){f=f.previousSibling;for(var h=0;f;){if(f.nodeType===8){var y=f.data;if(y==="$"||y==="$!"||y==="$?"){if(h===0)return f;h--}else y==="/$"&&h++}f=f.previousSibling}return null}var Ls=Math.random().toString(36).slice(2),ri="__reactFiber$"+Ls,Hu="__reactProps$"+Ls,Pi="__reactContainer$"+Ls,Tg="__reactEvents$"+Ls,$j="__reactListeners$"+Ls,Hj="__reactHandles$"+Ls;function So(f){var h=f[ri];if(h)return h;for(var y=f.parentNode;y;){if(h=y[Pi]||y[ri]){if(y=h.alternate,h.child!==null||y!==null&&y.child!==null)for(f=AE(f);f!==null;){if(y=f[ri])return y;f=AE(f)}return h}f=y,y=f.parentNode}return null}function qu(f){return f=f[ri]||f[Pi],!f||f.tag!==5&&f.tag!==6&&f.tag!==13&&f.tag!==3?null:f}function js(f){if(f.tag===5||f.tag===6)return f.stateNode;throw Error(r(33))}function Dd(f){return f[Hu]||null}var Ig=[],Bs=-1;function xa(f){return{current:f}}function Nt(f){0>Bs||(f.current=Ig[Bs],Ig[Bs]=null,Bs--)}function Tt(f,h){Bs++,Ig[Bs]=f.current,f.current=h}var Ea={},_n=xa(Ea),Ln=xa(!1),Co=Ea;function zs(f,h){var y=f.type.contextTypes;if(!y)return Ea;var S=f.stateNode;if(S&&S.__reactInternalMemoizedUnmaskedChildContext===h)return S.__reactInternalMemoizedMaskedChildContext;var A={},P;for(P in y)A[P]=h[P];return S&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=h,f.__reactInternalMemoizedMaskedChildContext=A),A}function jn(f){return f=f.childContextTypes,f!=null}function Fd(){Nt(Ln),Nt(_n)}function TE(f,h,y){if(_n.current!==Ea)throw Error(r(168));Tt(_n,h),Tt(Ln,y)}function IE(f,h,y){var S=f.stateNode;if(h=h.childContextTypes,typeof S.getChildContext!="function")return y;S=S.getChildContext();for(var A in S)if(!(A in h))throw Error(r(108,Ee(f)||"Unknown",A));return F({},y,S)}function Ld(f){return f=(f=f.stateNode)&&f.__reactInternalMemoizedMergedChildContext||Ea,Co=_n.current,Tt(_n,f),Tt(Ln,Ln.current),!0}function PE(f,h,y){var S=f.stateNode;if(!S)throw Error(r(169));y?(f=IE(f,h,Co),S.__reactInternalMemoizedMergedChildContext=f,Nt(Ln),Nt(_n),Tt(_n,f)):Nt(Ln),Tt(Ln,y)}var Ri=null,jd=!1,Pg=!1;function RE(f){Ri===null?Ri=[f]:Ri.push(f)}function qj(f){jd=!0,RE(f)}function Sa(){if(!Pg&&Ri!==null){Pg=!0;var f=0,h=Ct;try{var y=Ri;for(Ct=1;f<y.length;f++){var S=y[f];do S=S(!0);while(S!==null)}Ri=null,jd=!1}catch(A){throw Ri!==null&&(Ri=Ri.slice(f+1)),pd(Jm,Sa),A}finally{Ct=h,Pg=!1}}return null}var Us=[],$s=0,Bd=null,zd=0,gr=[],vr=0,ko=null,Oi=1,Ni="";function Ao(f,h){Us[$s++]=zd,Us[$s++]=Bd,Bd=f,zd=h}function OE(f,h,y){gr[vr++]=Oi,gr[vr++]=Ni,gr[vr++]=ko,ko=f;var S=Oi;f=Ni;var A=32-Lr(S)-1;S&=~(1<<A),y+=1;var P=32-Lr(h)+A;if(30<P){var U=A-A%5;P=(S&(1<<U)-1).toString(32),S>>=U,A-=U,Oi=1<<32-Lr(h)+A|y<<A|S,Ni=P+f}else Oi=1<<P|y<<A|S,Ni=f}function Rg(f){f.return!==null&&(Ao(f,1),OE(f,1,0))}function Og(f){for(;f===Bd;)Bd=Us[--$s],Us[$s]=null,zd=Us[--$s],Us[$s]=null;for(;f===ko;)ko=gr[--vr],gr[vr]=null,Ni=gr[--vr],gr[vr]=null,Oi=gr[--vr],gr[vr]=null}var nr=null,rr=null,jt=!1,Br=null;function NE(f,h){var y=br(5,null,null,0);y.elementType="DELETED",y.stateNode=h,y.return=f,h=f.deletions,h===null?(f.deletions=[y],f.flags|=16):h.push(y)}function ME(f,h){switch(f.tag){case 5:var y=f.type;return h=h.nodeType!==1||y.toLowerCase()!==h.nodeName.toLowerCase()?null:h,h!==null?(f.stateNode=h,nr=f,rr=ba(h.firstChild),!0):!1;case 6:return h=f.pendingProps===""||h.nodeType!==3?null:h,h!==null?(f.stateNode=h,nr=f,rr=null,!0):!1;case 13:return h=h.nodeType!==8?null:h,h!==null?(y=ko!==null?{id:Oi,overflow:Ni}:null,f.memoizedState={dehydrated:h,treeContext:y,retryLane:1073741824},y=br(18,null,null,0),y.stateNode=h,y.return=f,f.child=y,nr=f,rr=null,!0):!1;default:return!1}}function Ng(f){return(f.mode&1)!==0&&(f.flags&128)===0}function Mg(f){if(jt){var h=rr;if(h){var y=h;if(!ME(f,h)){if(Ng(f))throw Error(r(418));h=ba(y.nextSibling);var S=nr;h&&ME(f,h)?NE(S,y):(f.flags=f.flags&-4097|2,jt=!1,nr=f)}}else{if(Ng(f))throw Error(r(418));f.flags=f.flags&-4097|2,jt=!1,nr=f}}}function DE(f){for(f=f.return;f!==null&&f.tag!==5&&f.tag!==3&&f.tag!==13;)f=f.return;nr=f}function Ud(f){if(f!==nr)return!1;if(!jt)return DE(f),jt=!0,!1;var h;if((h=f.tag!==3)&&!(h=f.tag!==5)&&(h=f.type,h=h!=="head"&&h!=="body"&&!Cg(f.type,f.memoizedProps)),h&&(h=rr)){if(Ng(f))throw FE(),Error(r(418));for(;h;)NE(f,h),h=ba(h.nextSibling)}if(DE(f),f.tag===13){if(f=f.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));e:{for(f=f.nextSibling,h=0;f;){if(f.nodeType===8){var y=f.data;if(y==="/$"){if(h===0){rr=ba(f.nextSibling);break e}h--}else y!=="$"&&y!=="$!"&&y!=="$?"||h++}f=f.nextSibling}rr=null}}else rr=nr?ba(f.stateNode.nextSibling):null;return!0}function FE(){for(var f=rr;f;)f=ba(f.nextSibling)}function Hs(){rr=nr=null,jt=!1}function Dg(f){Br===null?Br=[f]:Br.push(f)}var Gj=C.ReactCurrentBatchConfig;function Gu(f,h,y){if(f=y.ref,f!==null&&typeof f!="function"&&typeof f!="object"){if(y._owner){if(y=y._owner,y){if(y.tag!==1)throw Error(r(309));var S=y.stateNode}if(!S)throw Error(r(147,f));var A=S,P=""+f;return h!==null&&h.ref!==null&&typeof h.ref=="function"&&h.ref._stringRef===P?h.ref:(h=function(U){var Z=A.refs;U===null?delete Z[P]:Z[P]=U},h._stringRef=P,h)}if(typeof f!="string")throw Error(r(284));if(!y._owner)throw Error(r(290,f))}return f}function $d(f,h){throw f=Object.prototype.toString.call(h),Error(r(31,f==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":f))}function LE(f){var h=f._init;return h(f._payload)}function jE(f){function h(ue,oe){if(f){var ce=ue.deletions;ce===null?(ue.deletions=[oe],ue.flags|=16):ce.push(oe)}}function y(ue,oe){if(!f)return null;for(;oe!==null;)h(ue,oe),oe=oe.sibling;return null}function S(ue,oe){for(ue=new Map;oe!==null;)oe.key!==null?ue.set(oe.key,oe):ue.set(oe.index,oe),oe=oe.sibling;return ue}function A(ue,oe){return ue=Oa(ue,oe),ue.index=0,ue.sibling=null,ue}function P(ue,oe,ce){return ue.index=ce,f?(ce=ue.alternate,ce!==null?(ce=ce.index,ce<oe?(ue.flags|=2,oe):ce):(ue.flags|=2,oe)):(ue.flags|=1048576,oe)}function U(ue){return f&&ue.alternate===null&&(ue.flags|=2),ue}function Z(ue,oe,ce,Ae){return oe===null||oe.tag!==6?(oe=kv(ce,ue.mode,Ae),oe.return=ue,oe):(oe=A(oe,ce),oe.return=ue,oe)}function ne(ue,oe,ce,Ae){var $e=ce.type;return $e===T?_e(ue,oe,ce.props.children,Ae,ce.key):oe!==null&&(oe.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===V&&LE($e)===oe.type)?(Ae=A(oe,ce.props),Ae.ref=Gu(ue,oe,ce),Ae.return=ue,Ae):(Ae=dh(ce.type,ce.key,ce.props,null,ue.mode,Ae),Ae.ref=Gu(ue,oe,ce),Ae.return=ue,Ae)}function he(ue,oe,ce,Ae){return oe===null||oe.tag!==4||oe.stateNode.containerInfo!==ce.containerInfo||oe.stateNode.implementation!==ce.implementation?(oe=Av(ce,ue.mode,Ae),oe.return=ue,oe):(oe=A(oe,ce.children||[]),oe.return=ue,oe)}function _e(ue,oe,ce,Ae,$e){return oe===null||oe.tag!==7?(oe=Do(ce,ue.mode,Ae,$e),oe.return=ue,oe):(oe=A(oe,ce),oe.return=ue,oe)}function Se(ue,oe,ce){if(typeof oe=="string"&&oe!==""||typeof oe=="number")return oe=kv(""+oe,ue.mode,ce),oe.return=ue,oe;if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case v:return ce=dh(oe.type,oe.key,oe.props,null,ue.mode,ce),ce.ref=Gu(ue,null,oe),ce.return=ue,ce;case k:return oe=Av(oe,ue.mode,ce),oe.return=ue,oe;case V:var Ae=oe._init;return Se(ue,Ae(oe._payload),ce)}if(gt(oe)||q(oe))return oe=Do(oe,ue.mode,ce,null),oe.return=ue,oe;$d(ue,oe)}return null}function ye(ue,oe,ce,Ae){var $e=oe!==null?oe.key:null;if(typeof ce=="string"&&ce!==""||typeof ce=="number")return $e!==null?null:Z(ue,oe,""+ce,Ae);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case v:return ce.key===$e?ne(ue,oe,ce,Ae):null;case k:return ce.key===$e?he(ue,oe,ce,Ae):null;case V:return $e=ce._init,ye(ue,oe,$e(ce._payload),Ae)}if(gt(ce)||q(ce))return $e!==null?null:_e(ue,oe,ce,Ae,null);$d(ue,ce)}return null}function De(ue,oe,ce,Ae,$e){if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number")return ue=ue.get(ce)||null,Z(oe,ue,""+Ae,$e);if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case v:return ue=ue.get(Ae.key===null?ce:Ae.key)||null,ne(oe,ue,Ae,$e);case k:return ue=ue.get(Ae.key===null?ce:Ae.key)||null,he(oe,ue,Ae,$e);case V:var qe=Ae._init;return De(ue,oe,ce,qe(Ae._payload),$e)}if(gt(Ae)||q(Ae))return ue=ue.get(ce)||null,_e(oe,ue,Ae,$e,null);$d(oe,Ae)}return null}function Be(ue,oe,ce,Ae){for(var $e=null,qe=null,Ge=oe,Qe=oe=0,fn=null;Ge!==null&&Qe<ce.length;Qe++){Ge.index>Qe?(fn=Ge,Ge=null):fn=Ge.sibling;var vt=ye(ue,Ge,ce[Qe],Ae);if(vt===null){Ge===null&&(Ge=fn);break}f&&Ge&&vt.alternate===null&&h(ue,Ge),oe=P(vt,oe,Qe),qe===null?$e=vt:qe.sibling=vt,qe=vt,Ge=fn}if(Qe===ce.length)return y(ue,Ge),jt&&Ao(ue,Qe),$e;if(Ge===null){for(;Qe<ce.length;Qe++)Ge=Se(ue,ce[Qe],Ae),Ge!==null&&(oe=P(Ge,oe,Qe),qe===null?$e=Ge:qe.sibling=Ge,qe=Ge);return jt&&Ao(ue,Qe),$e}for(Ge=S(ue,Ge);Qe<ce.length;Qe++)fn=De(Ge,ue,Qe,ce[Qe],Ae),fn!==null&&(f&&fn.alternate!==null&&Ge.delete(fn.key===null?Qe:fn.key),oe=P(fn,oe,Qe),qe===null?$e=fn:qe.sibling=fn,qe=fn);return f&&Ge.forEach(function(Na){return h(ue,Na)}),jt&&Ao(ue,Qe),$e}function ze(ue,oe,ce,Ae){var $e=q(ce);if(typeof $e!="function")throw Error(r(150));if(ce=$e.call(ce),ce==null)throw Error(r(151));for(var qe=$e=null,Ge=oe,Qe=oe=0,fn=null,vt=ce.next();Ge!==null&&!vt.done;Qe++,vt=ce.next()){Ge.index>Qe?(fn=Ge,Ge=null):fn=Ge.sibling;var Na=ye(ue,Ge,vt.value,Ae);if(Na===null){Ge===null&&(Ge=fn);break}f&&Ge&&Na.alternate===null&&h(ue,Ge),oe=P(Na,oe,Qe),qe===null?$e=Na:qe.sibling=Na,qe=Na,Ge=fn}if(vt.done)return y(ue,Ge),jt&&Ao(ue,Qe),$e;if(Ge===null){for(;!vt.done;Qe++,vt=ce.next())vt=Se(ue,vt.value,Ae),vt!==null&&(oe=P(vt,oe,Qe),qe===null?$e=vt:qe.sibling=vt,qe=vt);return jt&&Ao(ue,Qe),$e}for(Ge=S(ue,Ge);!vt.done;Qe++,vt=ce.next())vt=De(Ge,ue,Qe,vt.value,Ae),vt!==null&&(f&&vt.alternate!==null&&Ge.delete(vt.key===null?Qe:vt.key),oe=P(vt,oe,Qe),qe===null?$e=vt:qe.sibling=vt,qe=vt);return f&&Ge.forEach(function(S4){return h(ue,S4)}),jt&&Ao(ue,Qe),$e}function Vt(ue,oe,ce,Ae){if(typeof ce=="object"&&ce!==null&&ce.type===T&&ce.key===null&&(ce=ce.props.children),typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case v:e:{for(var $e=ce.key,qe=oe;qe!==null;){if(qe.key===$e){if($e=ce.type,$e===T){if(qe.tag===7){y(ue,qe.sibling),oe=A(qe,ce.props.children),oe.return=ue,ue=oe;break e}}else if(qe.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===V&&LE($e)===qe.type){y(ue,qe.sibling),oe=A(qe,ce.props),oe.ref=Gu(ue,qe,ce),oe.return=ue,ue=oe;break e}y(ue,qe);break}else h(ue,qe);qe=qe.sibling}ce.type===T?(oe=Do(ce.props.children,ue.mode,Ae,ce.key),oe.return=ue,ue=oe):(Ae=dh(ce.type,ce.key,ce.props,null,ue.mode,Ae),Ae.ref=Gu(ue,oe,ce),Ae.return=ue,ue=Ae)}return U(ue);case k:e:{for(qe=ce.key;oe!==null;){if(oe.key===qe)if(oe.tag===4&&oe.stateNode.containerInfo===ce.containerInfo&&oe.stateNode.implementation===ce.implementation){y(ue,oe.sibling),oe=A(oe,ce.children||[]),oe.return=ue,ue=oe;break e}else{y(ue,oe);break}else h(ue,oe);oe=oe.sibling}oe=Av(ce,ue.mode,Ae),oe.return=ue,ue=oe}return U(ue);case V:return qe=ce._init,Vt(ue,oe,qe(ce._payload),Ae)}if(gt(ce))return Be(ue,oe,ce,Ae);if(q(ce))return ze(ue,oe,ce,Ae);$d(ue,ce)}return typeof ce=="string"&&ce!==""||typeof ce=="number"?(ce=""+ce,oe!==null&&oe.tag===6?(y(ue,oe.sibling),oe=A(oe,ce),oe.return=ue,ue=oe):(y(ue,oe),oe=kv(ce,ue.mode,Ae),oe.return=ue,ue=oe),U(ue)):y(ue,oe)}return Vt}var qs=jE(!0),BE=jE(!1),Hd=xa(null),qd=null,Gs=null,Fg=null;function Lg(){Fg=Gs=qd=null}function jg(f){var h=Hd.current;Nt(Hd),f._currentValue=h}function Bg(f,h,y){for(;f!==null;){var S=f.alternate;if((f.childLanes&h)!==h?(f.childLanes|=h,S!==null&&(S.childLanes|=h)):S!==null&&(S.childLanes&h)!==h&&(S.childLanes|=h),f===y)break;f=f.return}}function Ws(f,h){qd=f,Fg=Gs=null,f=f.dependencies,f!==null&&f.firstContext!==null&&((f.lanes&h)!==0&&(Bn=!0),f.firstContext=null)}function yr(f){var h=f._currentValue;if(Fg!==f)if(f={context:f,memoizedValue:h,next:null},Gs===null){if(qd===null)throw Error(r(308));Gs=f,qd.dependencies={lanes:0,firstContext:f}}else Gs=Gs.next=f;return h}var To=null;function zg(f){To===null?To=[f]:To.push(f)}function zE(f,h,y,S){var A=h.interleaved;return A===null?(y.next=y,zg(h)):(y.next=A.next,A.next=y),h.interleaved=y,Mi(f,S)}function Mi(f,h){f.lanes|=h;var y=f.alternate;for(y!==null&&(y.lanes|=h),y=f,f=f.return;f!==null;)f.childLanes|=h,y=f.alternate,y!==null&&(y.childLanes|=h),y=f,f=f.return;return y.tag===3?y.stateNode:null}var Ca=!1;function Ug(f){f.updateQueue={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function UE(f,h){f=f.updateQueue,h.updateQueue===f&&(h.updateQueue={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,effects:f.effects})}function Di(f,h){return{eventTime:f,lane:h,tag:0,payload:null,callback:null,next:null}}function ka(f,h,y){var S=f.updateQueue;if(S===null)return null;if(S=S.shared,(mt&2)!==0){var A=S.pending;return A===null?h.next=h:(h.next=A.next,A.next=h),S.pending=h,Mi(f,y)}return A=S.interleaved,A===null?(h.next=h,zg(S)):(h.next=A.next,A.next=h),S.interleaved=h,Mi(f,y)}function Gd(f,h,y){if(h=h.updateQueue,h!==null&&(h=h.shared,(y&4194240)!==0)){var S=h.lanes;S&=f.pendingLanes,y|=S,h.lanes=y,tg(f,y)}}function $E(f,h){var y=f.updateQueue,S=f.alternate;if(S!==null&&(S=S.updateQueue,y===S)){var A=null,P=null;if(y=y.firstBaseUpdate,y!==null){do{var U={eventTime:y.eventTime,lane:y.lane,tag:y.tag,payload:y.payload,callback:y.callback,next:null};P===null?A=P=U:P=P.next=U,y=y.next}while(y!==null);P===null?A=P=h:P=P.next=h}else A=P=h;y={baseState:S.baseState,firstBaseUpdate:A,lastBaseUpdate:P,shared:S.shared,effects:S.effects},f.updateQueue=y;return}f=y.lastBaseUpdate,f===null?y.firstBaseUpdate=h:f.next=h,y.lastBaseUpdate=h}function Wd(f,h,y,S){var A=f.updateQueue;Ca=!1;var P=A.firstBaseUpdate,U=A.lastBaseUpdate,Z=A.shared.pending;if(Z!==null){A.shared.pending=null;var ne=Z,he=ne.next;ne.next=null,U===null?P=he:U.next=he,U=ne;var _e=f.alternate;_e!==null&&(_e=_e.updateQueue,Z=_e.lastBaseUpdate,Z!==U&&(Z===null?_e.firstBaseUpdate=he:Z.next=he,_e.lastBaseUpdate=ne))}if(P!==null){var Se=A.baseState;U=0,_e=he=ne=null,Z=P;do{var ye=Z.lane,De=Z.eventTime;if((S&ye)===ye){_e!==null&&(_e=_e.next={eventTime:De,lane:0,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null});e:{var Be=f,ze=Z;switch(ye=h,De=y,ze.tag){case 1:if(Be=ze.payload,typeof Be=="function"){Se=Be.call(De,Se,ye);break e}Se=Be;break e;case 3:Be.flags=Be.flags&-65537|128;case 0:if(Be=ze.payload,ye=typeof Be=="function"?Be.call(De,Se,ye):Be,ye==null)break e;Se=F({},Se,ye);break e;case 2:Ca=!0}}Z.callback!==null&&Z.lane!==0&&(f.flags|=64,ye=A.effects,ye===null?A.effects=[Z]:ye.push(Z))}else De={eventTime:De,lane:ye,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null},_e===null?(he=_e=De,ne=Se):_e=_e.next=De,U|=ye;if(Z=Z.next,Z===null){if(Z=A.shared.pending,Z===null)break;ye=Z,Z=ye.next,ye.next=null,A.lastBaseUpdate=ye,A.shared.pending=null}}while(!0);if(_e===null&&(ne=Se),A.baseState=ne,A.firstBaseUpdate=he,A.lastBaseUpdate=_e,h=A.shared.interleaved,h!==null){A=h;do U|=A.lane,A=A.next;while(A!==h)}else P===null&&(A.shared.lanes=0);Ro|=U,f.lanes=U,f.memoizedState=Se}}function HE(f,h,y){if(f=h.effects,h.effects=null,f!==null)for(h=0;h<f.length;h++){var S=f[h],A=S.callback;if(A!==null){if(S.callback=null,S=y,typeof A!="function")throw Error(r(191,A));A.call(S)}}}var Wu={},ii=xa(Wu),Vu=xa(Wu),Qu=xa(Wu);function Io(f){if(f===Wu)throw Error(r(174));return f}function $g(f,h){switch(Tt(Qu,h),Tt(Vu,f),Tt(ii,Wu),f=h.nodeType,f){case 9:case 11:h=(h=h.documentElement)?h.namespaceURI:L(null,"");break;default:f=f===8?h.parentNode:h,h=f.namespaceURI||null,f=f.tagName,h=L(h,f)}Nt(ii),Tt(ii,h)}function Vs(){Nt(ii),Nt(Vu),Nt(Qu)}function qE(f){Io(Qu.current);var h=Io(ii.current),y=L(h,f.type);h!==y&&(Tt(Vu,f),Tt(ii,y))}function Hg(f){Vu.current===f&&(Nt(ii),Nt(Vu))}var zt=xa(0);function Vd(f){for(var h=f;h!==null;){if(h.tag===13){var y=h.memoizedState;if(y!==null&&(y=y.dehydrated,y===null||y.data==="$?"||y.data==="$!"))return h}else if(h.tag===19&&h.memoizedProps.revealOrder!==void 0){if((h.flags&128)!==0)return h}else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===f)break;for(;h.sibling===null;){if(h.return===null||h.return===f)return null;h=h.return}h.sibling.return=h.return,h=h.sibling}return null}var qg=[];function Gg(){for(var f=0;f<qg.length;f++)qg[f]._workInProgressVersionPrimary=null;qg.length=0}var Qd=C.ReactCurrentDispatcher,Wg=C.ReactCurrentBatchConfig,Po=0,Ut=null,rn=null,un=null,Kd=!1,Ku=!1,Yu=0,Wj=0;function bn(){throw Error(r(321))}function Vg(f,h){if(h===null)return!1;for(var y=0;y<h.length&&y<f.length;y++)if(!jr(f[y],h[y]))return!1;return!0}function Qg(f,h,y,S,A,P){if(Po=P,Ut=h,h.memoizedState=null,h.updateQueue=null,h.lanes=0,Qd.current=f===null||f.memoizedState===null?Yj:Xj,f=y(S,A),Ku){P=0;do{if(Ku=!1,Yu=0,25<=P)throw Error(r(301));P+=1,un=rn=null,h.updateQueue=null,Qd.current=Jj,f=y(S,A)}while(Ku)}if(Qd.current=Jd,h=rn!==null&&rn.next!==null,Po=0,un=rn=Ut=null,Kd=!1,h)throw Error(r(300));return f}function Kg(){var f=Yu!==0;return Yu=0,f}function ai(){var f={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return un===null?Ut.memoizedState=un=f:un=un.next=f,un}function wr(){if(rn===null){var f=Ut.alternate;f=f!==null?f.memoizedState:null}else f=rn.next;var h=un===null?Ut.memoizedState:un.next;if(h!==null)un=h,rn=f;else{if(f===null)throw Error(r(310));rn=f,f={memoizedState:rn.memoizedState,baseState:rn.baseState,baseQueue:rn.baseQueue,queue:rn.queue,next:null},un===null?Ut.memoizedState=un=f:un=un.next=f}return un}function Xu(f,h){return typeof h=="function"?h(f):h}function Yg(f){var h=wr(),y=h.queue;if(y===null)throw Error(r(311));y.lastRenderedReducer=f;var S=rn,A=S.baseQueue,P=y.pending;if(P!==null){if(A!==null){var U=A.next;A.next=P.next,P.next=U}S.baseQueue=A=P,y.pending=null}if(A!==null){P=A.next,S=S.baseState;var Z=U=null,ne=null,he=P;do{var _e=he.lane;if((Po&_e)===_e)ne!==null&&(ne=ne.next={lane:0,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null}),S=he.hasEagerState?he.eagerState:f(S,he.action);else{var Se={lane:_e,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null};ne===null?(Z=ne=Se,U=S):ne=ne.next=Se,Ut.lanes|=_e,Ro|=_e}he=he.next}while(he!==null&&he!==P);ne===null?U=S:ne.next=Z,jr(S,h.memoizedState)||(Bn=!0),h.memoizedState=S,h.baseState=U,h.baseQueue=ne,y.lastRenderedState=S}if(f=y.interleaved,f!==null){A=f;do P=A.lane,Ut.lanes|=P,Ro|=P,A=A.next;while(A!==f)}else A===null&&(y.lanes=0);return[h.memoizedState,y.dispatch]}function Xg(f){var h=wr(),y=h.queue;if(y===null)throw Error(r(311));y.lastRenderedReducer=f;var S=y.dispatch,A=y.pending,P=h.memoizedState;if(A!==null){y.pending=null;var U=A=A.next;do P=f(P,U.action),U=U.next;while(U!==A);jr(P,h.memoizedState)||(Bn=!0),h.memoizedState=P,h.baseQueue===null&&(h.baseState=P),y.lastRenderedState=P}return[P,S]}function GE(){}function WE(f,h){var y=Ut,S=wr(),A=h(),P=!jr(S.memoizedState,A);if(P&&(S.memoizedState=A,Bn=!0),S=S.queue,Jg(KE.bind(null,y,S,f),[f]),S.getSnapshot!==h||P||un!==null&&un.memoizedState.tag&1){if(y.flags|=2048,Ju(9,QE.bind(null,y,S,A,h),void 0,null),cn===null)throw Error(r(349));(Po&30)!==0||VE(y,h,A)}return A}function VE(f,h,y){f.flags|=16384,f={getSnapshot:h,value:y},h=Ut.updateQueue,h===null?(h={lastEffect:null,stores:null},Ut.updateQueue=h,h.stores=[f]):(y=h.stores,y===null?h.stores=[f]:y.push(f))}function QE(f,h,y,S){h.value=y,h.getSnapshot=S,YE(h)&&XE(f)}function KE(f,h,y){return y(function(){YE(h)&&XE(f)})}function YE(f){var h=f.getSnapshot;f=f.value;try{var y=h();return!jr(f,y)}catch{return!0}}function XE(f){var h=Mi(f,1);h!==null&&Hr(h,f,1,-1)}function JE(f){var h=ai();return typeof f=="function"&&(f=f()),h.memoizedState=h.baseState=f,f={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xu,lastRenderedState:f},h.queue=f,f=f.dispatch=Kj.bind(null,Ut,f),[h.memoizedState,f]}function Ju(f,h,y,S){return f={tag:f,create:h,destroy:y,deps:S,next:null},h=Ut.updateQueue,h===null?(h={lastEffect:null,stores:null},Ut.updateQueue=h,h.lastEffect=f.next=f):(y=h.lastEffect,y===null?h.lastEffect=f.next=f:(S=y.next,y.next=f,f.next=S,h.lastEffect=f)),f}function ZE(){return wr().memoizedState}function Yd(f,h,y,S){var A=ai();Ut.flags|=f,A.memoizedState=Ju(1|h,y,void 0,S===void 0?null:S)}function Xd(f,h,y,S){var A=wr();S=S===void 0?null:S;var P=void 0;if(rn!==null){var U=rn.memoizedState;if(P=U.destroy,S!==null&&Vg(S,U.deps)){A.memoizedState=Ju(h,y,P,S);return}}Ut.flags|=f,A.memoizedState=Ju(1|h,y,P,S)}function eS(f,h){return Yd(8390656,8,f,h)}function Jg(f,h){return Xd(2048,8,f,h)}function tS(f,h){return Xd(4,2,f,h)}function nS(f,h){return Xd(4,4,f,h)}function rS(f,h){if(typeof h=="function")return f=f(),h(f),function(){h(null)};if(h!=null)return f=f(),h.current=f,function(){h.current=null}}function iS(f,h,y){return y=y!=null?y.concat([f]):null,Xd(4,4,rS.bind(null,h,f),y)}function Zg(){}function aS(f,h){var y=wr();h=h===void 0?null:h;var S=y.memoizedState;return S!==null&&h!==null&&Vg(h,S[1])?S[0]:(y.memoizedState=[f,h],f)}function oS(f,h){var y=wr();h=h===void 0?null:h;var S=y.memoizedState;return S!==null&&h!==null&&Vg(h,S[1])?S[0]:(f=f(),y.memoizedState=[f,h],f)}function sS(f,h,y){return(Po&21)===0?(f.baseState&&(f.baseState=!1,Bn=!0),f.memoizedState=y):(jr(y,h)||(y=Lx(),Ut.lanes|=y,Ro|=y,f.baseState=!0),h)}function Vj(f,h){var y=Ct;Ct=y!==0&&4>y?y:4,f(!0);var S=Wg.transition;Wg.transition={};try{f(!1),h()}finally{Ct=y,Wg.transition=S}}function lS(){return wr().memoizedState}function Qj(f,h,y){var S=Pa(f);if(y={lane:S,action:y,hasEagerState:!1,eagerState:null,next:null},uS(f))cS(h,y);else if(y=zE(f,h,y,S),y!==null){var A=In();Hr(y,f,S,A),fS(y,h,S)}}function Kj(f,h,y){var S=Pa(f),A={lane:S,action:y,hasEagerState:!1,eagerState:null,next:null};if(uS(f))cS(h,A);else{var P=f.alternate;if(f.lanes===0&&(P===null||P.lanes===0)&&(P=h.lastRenderedReducer,P!==null))try{var U=h.lastRenderedState,Z=P(U,y);if(A.hasEagerState=!0,A.eagerState=Z,jr(Z,U)){var ne=h.interleaved;ne===null?(A.next=A,zg(h)):(A.next=ne.next,ne.next=A),h.interleaved=A;return}}catch{}finally{}y=zE(f,h,A,S),y!==null&&(A=In(),Hr(y,f,S,A),fS(y,h,S))}}function uS(f){var h=f.alternate;return f===Ut||h!==null&&h===Ut}function cS(f,h){Ku=Kd=!0;var y=f.pending;y===null?h.next=h:(h.next=y.next,y.next=h),f.pending=h}function fS(f,h,y){if((y&4194240)!==0){var S=h.lanes;S&=f.pendingLanes,y|=S,h.lanes=y,tg(f,y)}}var Jd={readContext:yr,useCallback:bn,useContext:bn,useEffect:bn,useImperativeHandle:bn,useInsertionEffect:bn,useLayoutEffect:bn,useMemo:bn,useReducer:bn,useRef:bn,useState:bn,useDebugValue:bn,useDeferredValue:bn,useTransition:bn,useMutableSource:bn,useSyncExternalStore:bn,useId:bn,unstable_isNewReconciler:!1},Yj={readContext:yr,useCallback:function(f,h){return ai().memoizedState=[f,h===void 0?null:h],f},useContext:yr,useEffect:eS,useImperativeHandle:function(f,h,y){return y=y!=null?y.concat([f]):null,Yd(4194308,4,rS.bind(null,h,f),y)},useLayoutEffect:function(f,h){return Yd(4194308,4,f,h)},useInsertionEffect:function(f,h){return Yd(4,2,f,h)},useMemo:function(f,h){var y=ai();return h=h===void 0?null:h,f=f(),y.memoizedState=[f,h],f},useReducer:function(f,h,y){var S=ai();return h=y!==void 0?y(h):h,S.memoizedState=S.baseState=h,f={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:h},S.queue=f,f=f.dispatch=Qj.bind(null,Ut,f),[S.memoizedState,f]},useRef:function(f){var h=ai();return f={current:f},h.memoizedState=f},useState:JE,useDebugValue:Zg,useDeferredValue:function(f){return ai().memoizedState=f},useTransition:function(){var f=JE(!1),h=f[0];return f=Vj.bind(null,f[1]),ai().memoizedState=f,[h,f]},useMutableSource:function(){},useSyncExternalStore:function(f,h,y){var S=Ut,A=ai();if(jt){if(y===void 0)throw Error(r(407));y=y()}else{if(y=h(),cn===null)throw Error(r(349));(Po&30)!==0||VE(S,h,y)}A.memoizedState=y;var P={value:y,getSnapshot:h};return A.queue=P,eS(KE.bind(null,S,P,f),[f]),S.flags|=2048,Ju(9,QE.bind(null,S,P,y,h),void 0,null),y},useId:function(){var f=ai(),h=cn.identifierPrefix;if(jt){var y=Ni,S=Oi;y=(S&~(1<<32-Lr(S)-1)).toString(32)+y,h=":"+h+"R"+y,y=Yu++,0<y&&(h+="H"+y.toString(32)),h+=":"}else y=Wj++,h=":"+h+"r"+y.toString(32)+":";return f.memoizedState=h},unstable_isNewReconciler:!1},Xj={readContext:yr,useCallback:aS,useContext:yr,useEffect:Jg,useImperativeHandle:iS,useInsertionEffect:tS,useLayoutEffect:nS,useMemo:oS,useReducer:Yg,useRef:ZE,useState:function(){return Yg(Xu)},useDebugValue:Zg,useDeferredValue:function(f){var h=wr();return sS(h,rn.memoizedState,f)},useTransition:function(){var f=Yg(Xu)[0],h=wr().memoizedState;return[f,h]},useMutableSource:GE,useSyncExternalStore:WE,useId:lS,unstable_isNewReconciler:!1},Jj={readContext:yr,useCallback:aS,useContext:yr,useEffect:Jg,useImperativeHandle:iS,useInsertionEffect:tS,useLayoutEffect:nS,useMemo:oS,useReducer:Xg,useRef:ZE,useState:function(){return Xg(Xu)},useDebugValue:Zg,useDeferredValue:function(f){var h=wr();return rn===null?h.memoizedState=f:sS(h,rn.memoizedState,f)},useTransition:function(){var f=Xg(Xu)[0],h=wr().memoizedState;return[f,h]},useMutableSource:GE,useSyncExternalStore:WE,useId:lS,unstable_isNewReconciler:!1};function zr(f,h){if(f&&f.defaultProps){h=F({},h),f=f.defaultProps;for(var y in f)h[y]===void 0&&(h[y]=f[y]);return h}return h}function ev(f,h,y,S){h=f.memoizedState,y=y(S,h),y=y==null?h:F({},h,y),f.memoizedState=y,f.lanes===0&&(f.updateQueue.baseState=y)}var Zd={isMounted:function(f){return(f=f._reactInternals)?Fr(f)===f:!1},enqueueSetState:function(f,h,y){f=f._reactInternals;var S=In(),A=Pa(f),P=Di(S,A);P.payload=h,y!=null&&(P.callback=y),h=ka(f,P,A),h!==null&&(Hr(h,f,A,S),Gd(h,f,A))},enqueueReplaceState:function(f,h,y){f=f._reactInternals;var S=In(),A=Pa(f),P=Di(S,A);P.tag=1,P.payload=h,y!=null&&(P.callback=y),h=ka(f,P,A),h!==null&&(Hr(h,f,A,S),Gd(h,f,A))},enqueueForceUpdate:function(f,h){f=f._reactInternals;var y=In(),S=Pa(f),A=Di(y,S);A.tag=2,h!=null&&(A.callback=h),h=ka(f,A,S),h!==null&&(Hr(h,f,S,y),Gd(h,f,S))}};function dS(f,h,y,S,A,P,U){return f=f.stateNode,typeof f.shouldComponentUpdate=="function"?f.shouldComponentUpdate(S,P,U):h.prototype&&h.prototype.isPureReactComponent?!ju(y,S)||!ju(A,P):!0}function hS(f,h,y){var S=!1,A=Ea,P=h.contextType;return typeof P=="object"&&P!==null?P=yr(P):(A=jn(h)?Co:_n.current,S=h.contextTypes,P=(S=S!=null)?zs(f,A):Ea),h=new h(y,P),f.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Zd,f.stateNode=h,h._reactInternals=f,S&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=A,f.__reactInternalMemoizedMaskedChildContext=P),h}function pS(f,h,y,S){f=h.state,typeof h.componentWillReceiveProps=="function"&&h.componentWillReceiveProps(y,S),typeof h.UNSAFE_componentWillReceiveProps=="function"&&h.UNSAFE_componentWillReceiveProps(y,S),h.state!==f&&Zd.enqueueReplaceState(h,h.state,null)}function tv(f,h,y,S){var A=f.stateNode;A.props=y,A.state=f.memoizedState,A.refs={},Ug(f);var P=h.contextType;typeof P=="object"&&P!==null?A.context=yr(P):(P=jn(h)?Co:_n.current,A.context=zs(f,P)),A.state=f.memoizedState,P=h.getDerivedStateFromProps,typeof P=="function"&&(ev(f,h,P,y),A.state=f.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(h=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),h!==A.state&&Zd.enqueueReplaceState(A,A.state,null),Wd(f,y,A,S),A.state=f.memoizedState),typeof A.componentDidMount=="function"&&(f.flags|=4194308)}function Qs(f,h){try{var y="",S=h;do y+=de(S),S=S.return;while(S);var A=y}catch(P){A=`
Error generating stack: `+P.message+`
`+P.stack}return{value:f,source:h,stack:A,digest:null}}function nv(f,h,y){return{value:f,source:null,stack:y??null,digest:h??null}}function rv(f,h){try{console.error(h.value)}catch(y){setTimeout(function(){throw y})}}var Zj=typeof WeakMap=="function"?WeakMap:Map;function mS(f,h,y){y=Di(-1,y),y.tag=3,y.payload={element:null};var S=h.value;return y.callback=function(){oh||(oh=!0,yv=S),rv(f,h)},y}function gS(f,h,y){y=Di(-1,y),y.tag=3;var S=f.type.getDerivedStateFromError;if(typeof S=="function"){var A=h.value;y.payload=function(){return S(A)},y.callback=function(){rv(f,h)}}var P=f.stateNode;return P!==null&&typeof P.componentDidCatch=="function"&&(y.callback=function(){rv(f,h),typeof S!="function"&&(Ta===null?Ta=new Set([this]):Ta.add(this));var U=h.stack;this.componentDidCatch(h.value,{componentStack:U!==null?U:""})}),y}function vS(f,h,y){var S=f.pingCache;if(S===null){S=f.pingCache=new Zj;var A=new Set;S.set(h,A)}else A=S.get(h),A===void 0&&(A=new Set,S.set(h,A));A.has(y)||(A.add(y),f=h4.bind(null,f,h,y),h.then(f,f))}function yS(f){do{var h;if((h=f.tag===13)&&(h=f.memoizedState,h=h!==null?h.dehydrated!==null:!0),h)return f;f=f.return}while(f!==null);return null}function wS(f,h,y,S,A){return(f.mode&1)===0?(f===h?f.flags|=65536:(f.flags|=128,y.flags|=131072,y.flags&=-52805,y.tag===1&&(y.alternate===null?y.tag=17:(h=Di(-1,1),h.tag=2,ka(y,h,1))),y.lanes|=1),f):(f.flags|=65536,f.lanes=A,f)}var e4=C.ReactCurrentOwner,Bn=!1;function Tn(f,h,y,S){h.child=f===null?BE(h,null,y,S):qs(h,f.child,y,S)}function _S(f,h,y,S,A){y=y.render;var P=h.ref;return Ws(h,A),S=Qg(f,h,y,S,P,A),y=Kg(),f!==null&&!Bn?(h.updateQueue=f.updateQueue,h.flags&=-2053,f.lanes&=~A,Fi(f,h,A)):(jt&&y&&Rg(h),h.flags|=1,Tn(f,h,S,A),h.child)}function bS(f,h,y,S,A){if(f===null){var P=y.type;return typeof P=="function"&&!Cv(P)&&P.defaultProps===void 0&&y.compare===null&&y.defaultProps===void 0?(h.tag=15,h.type=P,xS(f,h,P,S,A)):(f=dh(y.type,null,S,h,h.mode,A),f.ref=h.ref,f.return=h,h.child=f)}if(P=f.child,(f.lanes&A)===0){var U=P.memoizedProps;if(y=y.compare,y=y!==null?y:ju,y(U,S)&&f.ref===h.ref)return Fi(f,h,A)}return h.flags|=1,f=Oa(P,S),f.ref=h.ref,f.return=h,h.child=f}function xS(f,h,y,S,A){if(f!==null){var P=f.memoizedProps;if(ju(P,S)&&f.ref===h.ref)if(Bn=!1,h.pendingProps=S=P,(f.lanes&A)!==0)(f.flags&131072)!==0&&(Bn=!0);else return h.lanes=f.lanes,Fi(f,h,A)}return iv(f,h,y,S,A)}function ES(f,h,y){var S=h.pendingProps,A=S.children,P=f!==null?f.memoizedState:null;if(S.mode==="hidden")if((h.mode&1)===0)h.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tt(Ys,ir),ir|=y;else{if((y&1073741824)===0)return f=P!==null?P.baseLanes|y:y,h.lanes=h.childLanes=1073741824,h.memoizedState={baseLanes:f,cachePool:null,transitions:null},h.updateQueue=null,Tt(Ys,ir),ir|=f,null;h.memoizedState={baseLanes:0,cachePool:null,transitions:null},S=P!==null?P.baseLanes:y,Tt(Ys,ir),ir|=S}else P!==null?(S=P.baseLanes|y,h.memoizedState=null):S=y,Tt(Ys,ir),ir|=S;return Tn(f,h,A,y),h.child}function SS(f,h){var y=h.ref;(f===null&&y!==null||f!==null&&f.ref!==y)&&(h.flags|=512,h.flags|=2097152)}function iv(f,h,y,S,A){var P=jn(y)?Co:_n.current;return P=zs(h,P),Ws(h,A),y=Qg(f,h,y,S,P,A),S=Kg(),f!==null&&!Bn?(h.updateQueue=f.updateQueue,h.flags&=-2053,f.lanes&=~A,Fi(f,h,A)):(jt&&S&&Rg(h),h.flags|=1,Tn(f,h,y,A),h.child)}function CS(f,h,y,S,A){if(jn(y)){var P=!0;Ld(h)}else P=!1;if(Ws(h,A),h.stateNode===null)th(f,h),hS(h,y,S),tv(h,y,S,A),S=!0;else if(f===null){var U=h.stateNode,Z=h.memoizedProps;U.props=Z;var ne=U.context,he=y.contextType;typeof he=="object"&&he!==null?he=yr(he):(he=jn(y)?Co:_n.current,he=zs(h,he));var _e=y.getDerivedStateFromProps,Se=typeof _e=="function"||typeof U.getSnapshotBeforeUpdate=="function";Se||typeof U.UNSAFE_componentWillReceiveProps!="function"&&typeof U.componentWillReceiveProps!="function"||(Z!==S||ne!==he)&&pS(h,U,S,he),Ca=!1;var ye=h.memoizedState;U.state=ye,Wd(h,S,U,A),ne=h.memoizedState,Z!==S||ye!==ne||Ln.current||Ca?(typeof _e=="function"&&(ev(h,y,_e,S),ne=h.memoizedState),(Z=Ca||dS(h,y,Z,S,ye,ne,he))?(Se||typeof U.UNSAFE_componentWillMount!="function"&&typeof U.componentWillMount!="function"||(typeof U.componentWillMount=="function"&&U.componentWillMount(),typeof U.UNSAFE_componentWillMount=="function"&&U.UNSAFE_componentWillMount()),typeof U.componentDidMount=="function"&&(h.flags|=4194308)):(typeof U.componentDidMount=="function"&&(h.flags|=4194308),h.memoizedProps=S,h.memoizedState=ne),U.props=S,U.state=ne,U.context=he,S=Z):(typeof U.componentDidMount=="function"&&(h.flags|=4194308),S=!1)}else{U=h.stateNode,UE(f,h),Z=h.memoizedProps,he=h.type===h.elementType?Z:zr(h.type,Z),U.props=he,Se=h.pendingProps,ye=U.context,ne=y.contextType,typeof ne=="object"&&ne!==null?ne=yr(ne):(ne=jn(y)?Co:_n.current,ne=zs(h,ne));var De=y.getDerivedStateFromProps;(_e=typeof De=="function"||typeof U.getSnapshotBeforeUpdate=="function")||typeof U.UNSAFE_componentWillReceiveProps!="function"&&typeof U.componentWillReceiveProps!="function"||(Z!==Se||ye!==ne)&&pS(h,U,S,ne),Ca=!1,ye=h.memoizedState,U.state=ye,Wd(h,S,U,A);var Be=h.memoizedState;Z!==Se||ye!==Be||Ln.current||Ca?(typeof De=="function"&&(ev(h,y,De,S),Be=h.memoizedState),(he=Ca||dS(h,y,he,S,ye,Be,ne)||!1)?(_e||typeof U.UNSAFE_componentWillUpdate!="function"&&typeof U.componentWillUpdate!="function"||(typeof U.componentWillUpdate=="function"&&U.componentWillUpdate(S,Be,ne),typeof U.UNSAFE_componentWillUpdate=="function"&&U.UNSAFE_componentWillUpdate(S,Be,ne)),typeof U.componentDidUpdate=="function"&&(h.flags|=4),typeof U.getSnapshotBeforeUpdate=="function"&&(h.flags|=1024)):(typeof U.componentDidUpdate!="function"||Z===f.memoizedProps&&ye===f.memoizedState||(h.flags|=4),typeof U.getSnapshotBeforeUpdate!="function"||Z===f.memoizedProps&&ye===f.memoizedState||(h.flags|=1024),h.memoizedProps=S,h.memoizedState=Be),U.props=S,U.state=Be,U.context=ne,S=he):(typeof U.componentDidUpdate!="function"||Z===f.memoizedProps&&ye===f.memoizedState||(h.flags|=4),typeof U.getSnapshotBeforeUpdate!="function"||Z===f.memoizedProps&&ye===f.memoizedState||(h.flags|=1024),S=!1)}return av(f,h,y,S,P,A)}function av(f,h,y,S,A,P){SS(f,h);var U=(h.flags&128)!==0;if(!S&&!U)return A&&PE(h,y,!1),Fi(f,h,P);S=h.stateNode,e4.current=h;var Z=U&&typeof y.getDerivedStateFromError!="function"?null:S.render();return h.flags|=1,f!==null&&U?(h.child=qs(h,f.child,null,P),h.child=qs(h,null,Z,P)):Tn(f,h,Z,P),h.memoizedState=S.state,A&&PE(h,y,!0),h.child}function kS(f){var h=f.stateNode;h.pendingContext?TE(f,h.pendingContext,h.pendingContext!==h.context):h.context&&TE(f,h.context,!1),$g(f,h.containerInfo)}function AS(f,h,y,S,A){return Hs(),Dg(A),h.flags|=256,Tn(f,h,y,S),h.child}var ov={dehydrated:null,treeContext:null,retryLane:0};function sv(f){return{baseLanes:f,cachePool:null,transitions:null}}function TS(f,h,y){var S=h.pendingProps,A=zt.current,P=!1,U=(h.flags&128)!==0,Z;if((Z=U)||(Z=f!==null&&f.memoizedState===null?!1:(A&2)!==0),Z?(P=!0,h.flags&=-129):(f===null||f.memoizedState!==null)&&(A|=1),Tt(zt,A&1),f===null)return Mg(h),f=h.memoizedState,f!==null&&(f=f.dehydrated,f!==null)?((h.mode&1)===0?h.lanes=1:f.data==="$!"?h.lanes=8:h.lanes=1073741824,null):(U=S.children,f=S.fallback,P?(S=h.mode,P=h.child,U={mode:"hidden",children:U},(S&1)===0&&P!==null?(P.childLanes=0,P.pendingProps=U):P=hh(U,S,0,null),f=Do(f,S,y,null),P.return=h,f.return=h,P.sibling=f,h.child=P,h.child.memoizedState=sv(y),h.memoizedState=ov,f):lv(h,U));if(A=f.memoizedState,A!==null&&(Z=A.dehydrated,Z!==null))return t4(f,h,U,S,Z,A,y);if(P){P=S.fallback,U=h.mode,A=f.child,Z=A.sibling;var ne={mode:"hidden",children:S.children};return(U&1)===0&&h.child!==A?(S=h.child,S.childLanes=0,S.pendingProps=ne,h.deletions=null):(S=Oa(A,ne),S.subtreeFlags=A.subtreeFlags&14680064),Z!==null?P=Oa(Z,P):(P=Do(P,U,y,null),P.flags|=2),P.return=h,S.return=h,S.sibling=P,h.child=S,S=P,P=h.child,U=f.child.memoizedState,U=U===null?sv(y):{baseLanes:U.baseLanes|y,cachePool:null,transitions:U.transitions},P.memoizedState=U,P.childLanes=f.childLanes&~y,h.memoizedState=ov,S}return P=f.child,f=P.sibling,S=Oa(P,{mode:"visible",children:S.children}),(h.mode&1)===0&&(S.lanes=y),S.return=h,S.sibling=null,f!==null&&(y=h.deletions,y===null?(h.deletions=[f],h.flags|=16):y.push(f)),h.child=S,h.memoizedState=null,S}function lv(f,h){return h=hh({mode:"visible",children:h},f.mode,0,null),h.return=f,f.child=h}function eh(f,h,y,S){return S!==null&&Dg(S),qs(h,f.child,null,y),f=lv(h,h.pendingProps.children),f.flags|=2,h.memoizedState=null,f}function t4(f,h,y,S,A,P,U){if(y)return h.flags&256?(h.flags&=-257,S=nv(Error(r(422))),eh(f,h,U,S)):h.memoizedState!==null?(h.child=f.child,h.flags|=128,null):(P=S.fallback,A=h.mode,S=hh({mode:"visible",children:S.children},A,0,null),P=Do(P,A,U,null),P.flags|=2,S.return=h,P.return=h,S.sibling=P,h.child=S,(h.mode&1)!==0&&qs(h,f.child,null,U),h.child.memoizedState=sv(U),h.memoizedState=ov,P);if((h.mode&1)===0)return eh(f,h,U,null);if(A.data==="$!"){if(S=A.nextSibling&&A.nextSibling.dataset,S)var Z=S.dgst;return S=Z,P=Error(r(419)),S=nv(P,S,void 0),eh(f,h,U,S)}if(Z=(U&f.childLanes)!==0,Bn||Z){if(S=cn,S!==null){switch(U&-U){case 4:A=2;break;case 16:A=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:A=32;break;case 536870912:A=268435456;break;default:A=0}A=(A&(S.suspendedLanes|U))!==0?0:A,A!==0&&A!==P.retryLane&&(P.retryLane=A,Mi(f,A),Hr(S,f,A,-1))}return Sv(),S=nv(Error(r(421))),eh(f,h,U,S)}return A.data==="$?"?(h.flags|=128,h.child=f.child,h=p4.bind(null,f),A._reactRetry=h,null):(f=P.treeContext,rr=ba(A.nextSibling),nr=h,jt=!0,Br=null,f!==null&&(gr[vr++]=Oi,gr[vr++]=Ni,gr[vr++]=ko,Oi=f.id,Ni=f.overflow,ko=h),h=lv(h,S.children),h.flags|=4096,h)}function IS(f,h,y){f.lanes|=h;var S=f.alternate;S!==null&&(S.lanes|=h),Bg(f.return,h,y)}function uv(f,h,y,S,A){var P=f.memoizedState;P===null?f.memoizedState={isBackwards:h,rendering:null,renderingStartTime:0,last:S,tail:y,tailMode:A}:(P.isBackwards=h,P.rendering=null,P.renderingStartTime=0,P.last=S,P.tail=y,P.tailMode=A)}function PS(f,h,y){var S=h.pendingProps,A=S.revealOrder,P=S.tail;if(Tn(f,h,S.children,y),S=zt.current,(S&2)!==0)S=S&1|2,h.flags|=128;else{if(f!==null&&(f.flags&128)!==0)e:for(f=h.child;f!==null;){if(f.tag===13)f.memoizedState!==null&&IS(f,y,h);else if(f.tag===19)IS(f,y,h);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===h)break e;for(;f.sibling===null;){if(f.return===null||f.return===h)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}S&=1}if(Tt(zt,S),(h.mode&1)===0)h.memoizedState=null;else switch(A){case"forwards":for(y=h.child,A=null;y!==null;)f=y.alternate,f!==null&&Vd(f)===null&&(A=y),y=y.sibling;y=A,y===null?(A=h.child,h.child=null):(A=y.sibling,y.sibling=null),uv(h,!1,A,y,P);break;case"backwards":for(y=null,A=h.child,h.child=null;A!==null;){if(f=A.alternate,f!==null&&Vd(f)===null){h.child=A;break}f=A.sibling,A.sibling=y,y=A,A=f}uv(h,!0,y,null,P);break;case"together":uv(h,!1,null,null,void 0);break;default:h.memoizedState=null}return h.child}function th(f,h){(h.mode&1)===0&&f!==null&&(f.alternate=null,h.alternate=null,h.flags|=2)}function Fi(f,h,y){if(f!==null&&(h.dependencies=f.dependencies),Ro|=h.lanes,(y&h.childLanes)===0)return null;if(f!==null&&h.child!==f.child)throw Error(r(153));if(h.child!==null){for(f=h.child,y=Oa(f,f.pendingProps),h.child=y,y.return=h;f.sibling!==null;)f=f.sibling,y=y.sibling=Oa(f,f.pendingProps),y.return=h;y.sibling=null}return h.child}function n4(f,h,y){switch(h.tag){case 3:kS(h),Hs();break;case 5:qE(h);break;case 1:jn(h.type)&&Ld(h);break;case 4:$g(h,h.stateNode.containerInfo);break;case 10:var S=h.type._context,A=h.memoizedProps.value;Tt(Hd,S._currentValue),S._currentValue=A;break;case 13:if(S=h.memoizedState,S!==null)return S.dehydrated!==null?(Tt(zt,zt.current&1),h.flags|=128,null):(y&h.child.childLanes)!==0?TS(f,h,y):(Tt(zt,zt.current&1),f=Fi(f,h,y),f!==null?f.sibling:null);Tt(zt,zt.current&1);break;case 19:if(S=(y&h.childLanes)!==0,(f.flags&128)!==0){if(S)return PS(f,h,y);h.flags|=128}if(A=h.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),Tt(zt,zt.current),S)break;return null;case 22:case 23:return h.lanes=0,ES(f,h,y)}return Fi(f,h,y)}var RS,cv,OS,NS;RS=function(f,h){for(var y=h.child;y!==null;){if(y.tag===5||y.tag===6)f.appendChild(y.stateNode);else if(y.tag!==4&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===h)break;for(;y.sibling===null;){if(y.return===null||y.return===h)return;y=y.return}y.sibling.return=y.return,y=y.sibling}},cv=function(){},OS=function(f,h,y,S){var A=f.memoizedProps;if(A!==S){f=h.stateNode,Io(ii.current);var P=null;switch(y){case"input":A=We(f,A),S=We(f,S),P=[];break;case"select":A=F({},A,{value:void 0}),S=F({},S,{value:void 0}),P=[];break;case"textarea":A=we(f,A),S=we(f,S),P=[];break;default:typeof A.onClick!="function"&&typeof S.onClick=="function"&&(f.onclick=Md)}ae(y,S);var U;y=null;for(he in A)if(!S.hasOwnProperty(he)&&A.hasOwnProperty(he)&&A[he]!=null)if(he==="style"){var Z=A[he];for(U in Z)Z.hasOwnProperty(U)&&(y||(y={}),y[U]="")}else he!=="dangerouslySetInnerHTML"&&he!=="children"&&he!=="suppressContentEditableWarning"&&he!=="suppressHydrationWarning"&&he!=="autoFocus"&&(i.hasOwnProperty(he)?P||(P=[]):(P=P||[]).push(he,null));for(he in S){var ne=S[he];if(Z=A!=null?A[he]:void 0,S.hasOwnProperty(he)&&ne!==Z&&(ne!=null||Z!=null))if(he==="style")if(Z){for(U in Z)!Z.hasOwnProperty(U)||ne&&ne.hasOwnProperty(U)||(y||(y={}),y[U]="");for(U in ne)ne.hasOwnProperty(U)&&Z[U]!==ne[U]&&(y||(y={}),y[U]=ne[U])}else y||(P||(P=[]),P.push(he,y)),y=ne;else he==="dangerouslySetInnerHTML"?(ne=ne?ne.__html:void 0,Z=Z?Z.__html:void 0,ne!=null&&Z!==ne&&(P=P||[]).push(he,ne)):he==="children"?typeof ne!="string"&&typeof ne!="number"||(P=P||[]).push(he,""+ne):he!=="suppressContentEditableWarning"&&he!=="suppressHydrationWarning"&&(i.hasOwnProperty(he)?(ne!=null&&he==="onScroll"&&Ot("scroll",f),P||Z===ne||(P=[])):(P=P||[]).push(he,ne))}y&&(P=P||[]).push("style",y);var he=P;(h.updateQueue=he)&&(h.flags|=4)}},NS=function(f,h,y,S){y!==S&&(h.flags|=4)};function Zu(f,h){if(!jt)switch(f.tailMode){case"hidden":h=f.tail;for(var y=null;h!==null;)h.alternate!==null&&(y=h),h=h.sibling;y===null?f.tail=null:y.sibling=null;break;case"collapsed":y=f.tail;for(var S=null;y!==null;)y.alternate!==null&&(S=y),y=y.sibling;S===null?h||f.tail===null?f.tail=null:f.tail.sibling=null:S.sibling=null}}function xn(f){var h=f.alternate!==null&&f.alternate.child===f.child,y=0,S=0;if(h)for(var A=f.child;A!==null;)y|=A.lanes|A.childLanes,S|=A.subtreeFlags&14680064,S|=A.flags&14680064,A.return=f,A=A.sibling;else for(A=f.child;A!==null;)y|=A.lanes|A.childLanes,S|=A.subtreeFlags,S|=A.flags,A.return=f,A=A.sibling;return f.subtreeFlags|=S,f.childLanes=y,h}function r4(f,h,y){var S=h.pendingProps;switch(Og(h),h.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xn(h),null;case 1:return jn(h.type)&&Fd(),xn(h),null;case 3:return S=h.stateNode,Vs(),Nt(Ln),Nt(_n),Gg(),S.pendingContext&&(S.context=S.pendingContext,S.pendingContext=null),(f===null||f.child===null)&&(Ud(h)?h.flags|=4:f===null||f.memoizedState.isDehydrated&&(h.flags&256)===0||(h.flags|=1024,Br!==null&&(bv(Br),Br=null))),cv(f,h),xn(h),null;case 5:Hg(h);var A=Io(Qu.current);if(y=h.type,f!==null&&h.stateNode!=null)OS(f,h,y,S,A),f.ref!==h.ref&&(h.flags|=512,h.flags|=2097152);else{if(!S){if(h.stateNode===null)throw Error(r(166));return xn(h),null}if(f=Io(ii.current),Ud(h)){S=h.stateNode,y=h.type;var P=h.memoizedProps;switch(S[ri]=h,S[Hu]=P,f=(h.mode&1)!==0,y){case"dialog":Ot("cancel",S),Ot("close",S);break;case"iframe":case"object":case"embed":Ot("load",S);break;case"video":case"audio":for(A=0;A<zu.length;A++)Ot(zu[A],S);break;case"source":Ot("error",S);break;case"img":case"image":case"link":Ot("error",S),Ot("load",S);break;case"details":Ot("toggle",S);break;case"input":rt(S,P),Ot("invalid",S);break;case"select":S._wrapperState={wasMultiple:!!P.multiple},Ot("invalid",S);break;case"textarea":et(S,P),Ot("invalid",S)}ae(y,P),A=null;for(var U in P)if(P.hasOwnProperty(U)){var Z=P[U];U==="children"?typeof Z=="string"?S.textContent!==Z&&(P.suppressHydrationWarning!==!0&&Nd(S.textContent,Z,f),A=["children",Z]):typeof Z=="number"&&S.textContent!==""+Z&&(P.suppressHydrationWarning!==!0&&Nd(S.textContent,Z,f),A=["children",""+Z]):i.hasOwnProperty(U)&&Z!=null&&U==="onScroll"&&Ot("scroll",S)}switch(y){case"input":He(S),At(S,P,!0);break;case"textarea":He(S),ht(S);break;case"select":case"option":break;default:typeof P.onClick=="function"&&(S.onclick=Md)}S=A,h.updateQueue=S,S!==null&&(h.flags|=4)}else{U=A.nodeType===9?A:A.ownerDocument,f==="http://www.w3.org/1999/xhtml"&&(f=pe(y)),f==="http://www.w3.org/1999/xhtml"?y==="script"?(f=U.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild)):typeof S.is=="string"?f=U.createElement(y,{is:S.is}):(f=U.createElement(y),y==="select"&&(U=f,S.multiple?U.multiple=!0:S.size&&(U.size=S.size))):f=U.createElementNS(f,y),f[ri]=h,f[Hu]=S,RS(f,h,!1,!1),h.stateNode=f;e:{switch(U=le(y,S),y){case"dialog":Ot("cancel",f),Ot("close",f),A=S;break;case"iframe":case"object":case"embed":Ot("load",f),A=S;break;case"video":case"audio":for(A=0;A<zu.length;A++)Ot(zu[A],f);A=S;break;case"source":Ot("error",f),A=S;break;case"img":case"image":case"link":Ot("error",f),Ot("load",f),A=S;break;case"details":Ot("toggle",f),A=S;break;case"input":rt(f,S),A=We(f,S),Ot("invalid",f);break;case"option":A=S;break;case"select":f._wrapperState={wasMultiple:!!S.multiple},A=F({},S,{value:void 0}),Ot("invalid",f);break;case"textarea":et(f,S),A=we(f,S),Ot("invalid",f);break;default:A=S}ae(y,A),Z=A;for(P in Z)if(Z.hasOwnProperty(P)){var ne=Z[P];P==="style"?Ve(f,ne):P==="dangerouslySetInnerHTML"?(ne=ne?ne.__html:void 0,ne!=null&&R(f,ne)):P==="children"?typeof ne=="string"?(y!=="textarea"||ne!=="")&&Q(f,ne):typeof ne=="number"&&Q(f,""+ne):P!=="suppressContentEditableWarning"&&P!=="suppressHydrationWarning"&&P!=="autoFocus"&&(i.hasOwnProperty(P)?ne!=null&&P==="onScroll"&&Ot("scroll",f):ne!=null&&b(f,P,ne,U))}switch(y){case"input":He(f),At(f,S,!1);break;case"textarea":He(f),ht(f);break;case"option":S.value!=null&&f.setAttribute("value",""+Ie(S.value));break;case"select":f.multiple=!!S.multiple,P=S.value,P!=null?ct(f,!!S.multiple,P,!1):S.defaultValue!=null&&ct(f,!!S.multiple,S.defaultValue,!0);break;default:typeof A.onClick=="function"&&(f.onclick=Md)}switch(y){case"button":case"input":case"select":case"textarea":S=!!S.autoFocus;break e;case"img":S=!0;break e;default:S=!1}}S&&(h.flags|=4)}h.ref!==null&&(h.flags|=512,h.flags|=2097152)}return xn(h),null;case 6:if(f&&h.stateNode!=null)NS(f,h,f.memoizedProps,S);else{if(typeof S!="string"&&h.stateNode===null)throw Error(r(166));if(y=Io(Qu.current),Io(ii.current),Ud(h)){if(S=h.stateNode,y=h.memoizedProps,S[ri]=h,(P=S.nodeValue!==y)&&(f=nr,f!==null))switch(f.tag){case 3:Nd(S.nodeValue,y,(f.mode&1)!==0);break;case 5:f.memoizedProps.suppressHydrationWarning!==!0&&Nd(S.nodeValue,y,(f.mode&1)!==0)}P&&(h.flags|=4)}else S=(y.nodeType===9?y:y.ownerDocument).createTextNode(S),S[ri]=h,h.stateNode=S}return xn(h),null;case 13:if(Nt(zt),S=h.memoizedState,f===null||f.memoizedState!==null&&f.memoizedState.dehydrated!==null){if(jt&&rr!==null&&(h.mode&1)!==0&&(h.flags&128)===0)FE(),Hs(),h.flags|=98560,P=!1;else if(P=Ud(h),S!==null&&S.dehydrated!==null){if(f===null){if(!P)throw Error(r(318));if(P=h.memoizedState,P=P!==null?P.dehydrated:null,!P)throw Error(r(317));P[ri]=h}else Hs(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;xn(h),P=!1}else Br!==null&&(bv(Br),Br=null),P=!0;if(!P)return h.flags&65536?h:null}return(h.flags&128)!==0?(h.lanes=y,h):(S=S!==null,S!==(f!==null&&f.memoizedState!==null)&&S&&(h.child.flags|=8192,(h.mode&1)!==0&&(f===null||(zt.current&1)!==0?an===0&&(an=3):Sv())),h.updateQueue!==null&&(h.flags|=4),xn(h),null);case 4:return Vs(),cv(f,h),f===null&&Uu(h.stateNode.containerInfo),xn(h),null;case 10:return jg(h.type._context),xn(h),null;case 17:return jn(h.type)&&Fd(),xn(h),null;case 19:if(Nt(zt),P=h.memoizedState,P===null)return xn(h),null;if(S=(h.flags&128)!==0,U=P.rendering,U===null)if(S)Zu(P,!1);else{if(an!==0||f!==null&&(f.flags&128)!==0)for(f=h.child;f!==null;){if(U=Vd(f),U!==null){for(h.flags|=128,Zu(P,!1),S=U.updateQueue,S!==null&&(h.updateQueue=S,h.flags|=4),h.subtreeFlags=0,S=y,y=h.child;y!==null;)P=y,f=S,P.flags&=14680066,U=P.alternate,U===null?(P.childLanes=0,P.lanes=f,P.child=null,P.subtreeFlags=0,P.memoizedProps=null,P.memoizedState=null,P.updateQueue=null,P.dependencies=null,P.stateNode=null):(P.childLanes=U.childLanes,P.lanes=U.lanes,P.child=U.child,P.subtreeFlags=0,P.deletions=null,P.memoizedProps=U.memoizedProps,P.memoizedState=U.memoizedState,P.updateQueue=U.updateQueue,P.type=U.type,f=U.dependencies,P.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),y=y.sibling;return Tt(zt,zt.current&1|2),h.child}f=f.sibling}P.tail!==null&&Wt()>Xs&&(h.flags|=128,S=!0,Zu(P,!1),h.lanes=4194304)}else{if(!S)if(f=Vd(U),f!==null){if(h.flags|=128,S=!0,y=f.updateQueue,y!==null&&(h.updateQueue=y,h.flags|=4),Zu(P,!0),P.tail===null&&P.tailMode==="hidden"&&!U.alternate&&!jt)return xn(h),null}else 2*Wt()-P.renderingStartTime>Xs&&y!==1073741824&&(h.flags|=128,S=!0,Zu(P,!1),h.lanes=4194304);P.isBackwards?(U.sibling=h.child,h.child=U):(y=P.last,y!==null?y.sibling=U:h.child=U,P.last=U)}return P.tail!==null?(h=P.tail,P.rendering=h,P.tail=h.sibling,P.renderingStartTime=Wt(),h.sibling=null,y=zt.current,Tt(zt,S?y&1|2:y&1),h):(xn(h),null);case 22:case 23:return Ev(),S=h.memoizedState!==null,f!==null&&f.memoizedState!==null!==S&&(h.flags|=8192),S&&(h.mode&1)!==0?(ir&1073741824)!==0&&(xn(h),h.subtreeFlags&6&&(h.flags|=8192)):xn(h),null;case 24:return null;case 25:return null}throw Error(r(156,h.tag))}function i4(f,h){switch(Og(h),h.tag){case 1:return jn(h.type)&&Fd(),f=h.flags,f&65536?(h.flags=f&-65537|128,h):null;case 3:return Vs(),Nt(Ln),Nt(_n),Gg(),f=h.flags,(f&65536)!==0&&(f&128)===0?(h.flags=f&-65537|128,h):null;case 5:return Hg(h),null;case 13:if(Nt(zt),f=h.memoizedState,f!==null&&f.dehydrated!==null){if(h.alternate===null)throw Error(r(340));Hs()}return f=h.flags,f&65536?(h.flags=f&-65537|128,h):null;case 19:return Nt(zt),null;case 4:return Vs(),null;case 10:return jg(h.type._context),null;case 22:case 23:return Ev(),null;case 24:return null;default:return null}}var nh=!1,En=!1,a4=typeof WeakSet=="function"?WeakSet:Set,je=null;function Ks(f,h){var y=f.ref;if(y!==null)if(typeof y=="function")try{y(null)}catch(S){qt(f,h,S)}else y.current=null}function fv(f,h,y){try{y()}catch(S){qt(f,h,S)}}var MS=!1;function o4(f,h){if(Eg=xd,f=dE(),mg(f)){if("selectionStart"in f)var y={start:f.selectionStart,end:f.selectionEnd};else e:{y=(y=f.ownerDocument)&&y.defaultView||window;var S=y.getSelection&&y.getSelection();if(S&&S.rangeCount!==0){y=S.anchorNode;var A=S.anchorOffset,P=S.focusNode;S=S.focusOffset;try{y.nodeType,P.nodeType}catch{y=null;break e}var U=0,Z=-1,ne=-1,he=0,_e=0,Se=f,ye=null;t:for(;;){for(var De;Se!==y||A!==0&&Se.nodeType!==3||(Z=U+A),Se!==P||S!==0&&Se.nodeType!==3||(ne=U+S),Se.nodeType===3&&(U+=Se.nodeValue.length),(De=Se.firstChild)!==null;)ye=Se,Se=De;for(;;){if(Se===f)break t;if(ye===y&&++he===A&&(Z=U),ye===P&&++_e===S&&(ne=U),(De=Se.nextSibling)!==null)break;Se=ye,ye=Se.parentNode}Se=De}y=Z===-1||ne===-1?null:{start:Z,end:ne}}else y=null}y=y||{start:0,end:0}}else y=null;for(Sg={focusedElem:f,selectionRange:y},xd=!1,je=h;je!==null;)if(h=je,f=h.child,(h.subtreeFlags&1028)!==0&&f!==null)f.return=h,je=f;else for(;je!==null;){h=je;try{var Be=h.alternate;if((h.flags&1024)!==0)switch(h.tag){case 0:case 11:case 15:break;case 1:if(Be!==null){var ze=Be.memoizedProps,Vt=Be.memoizedState,ue=h.stateNode,oe=ue.getSnapshotBeforeUpdate(h.elementType===h.type?ze:zr(h.type,ze),Vt);ue.__reactInternalSnapshotBeforeUpdate=oe}break;case 3:var ce=h.stateNode.containerInfo;ce.nodeType===1?ce.textContent="":ce.nodeType===9&&ce.documentElement&&ce.removeChild(ce.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Ae){qt(h,h.return,Ae)}if(f=h.sibling,f!==null){f.return=h.return,je=f;break}je=h.return}return Be=MS,MS=!1,Be}function ec(f,h,y){var S=h.updateQueue;if(S=S!==null?S.lastEffect:null,S!==null){var A=S=S.next;do{if((A.tag&f)===f){var P=A.destroy;A.destroy=void 0,P!==void 0&&fv(h,y,P)}A=A.next}while(A!==S)}}function rh(f,h){if(h=h.updateQueue,h=h!==null?h.lastEffect:null,h!==null){var y=h=h.next;do{if((y.tag&f)===f){var S=y.create;y.destroy=S()}y=y.next}while(y!==h)}}function dv(f){var h=f.ref;if(h!==null){var y=f.stateNode;switch(f.tag){case 5:f=y;break;default:f=y}typeof h=="function"?h(f):h.current=f}}function DS(f){var h=f.alternate;h!==null&&(f.alternate=null,DS(h)),f.child=null,f.deletions=null,f.sibling=null,f.tag===5&&(h=f.stateNode,h!==null&&(delete h[ri],delete h[Hu],delete h[Tg],delete h[$j],delete h[Hj])),f.stateNode=null,f.return=null,f.dependencies=null,f.memoizedProps=null,f.memoizedState=null,f.pendingProps=null,f.stateNode=null,f.updateQueue=null}function FS(f){return f.tag===5||f.tag===3||f.tag===4}function LS(f){e:for(;;){for(;f.sibling===null;){if(f.return===null||FS(f.return))return null;f=f.return}for(f.sibling.return=f.return,f=f.sibling;f.tag!==5&&f.tag!==6&&f.tag!==18;){if(f.flags&2||f.child===null||f.tag===4)continue e;f.child.return=f,f=f.child}if(!(f.flags&2))return f.stateNode}}function hv(f,h,y){var S=f.tag;if(S===5||S===6)f=f.stateNode,h?y.nodeType===8?y.parentNode.insertBefore(f,h):y.insertBefore(f,h):(y.nodeType===8?(h=y.parentNode,h.insertBefore(f,y)):(h=y,h.appendChild(f)),y=y._reactRootContainer,y!=null||h.onclick!==null||(h.onclick=Md));else if(S!==4&&(f=f.child,f!==null))for(hv(f,h,y),f=f.sibling;f!==null;)hv(f,h,y),f=f.sibling}function pv(f,h,y){var S=f.tag;if(S===5||S===6)f=f.stateNode,h?y.insertBefore(f,h):y.appendChild(f);else if(S!==4&&(f=f.child,f!==null))for(pv(f,h,y),f=f.sibling;f!==null;)pv(f,h,y),f=f.sibling}var mn=null,Ur=!1;function Aa(f,h,y){for(y=y.child;y!==null;)jS(f,h,y),y=y.sibling}function jS(f,h,y){if(ni&&typeof ni.onCommitFiberUnmount=="function")try{ni.onCommitFiberUnmount(gd,y)}catch{}switch(y.tag){case 5:En||Ks(y,h);case 6:var S=mn,A=Ur;mn=null,Aa(f,h,y),mn=S,Ur=A,mn!==null&&(Ur?(f=mn,y=y.stateNode,f.nodeType===8?f.parentNode.removeChild(y):f.removeChild(y)):mn.removeChild(y.stateNode));break;case 18:mn!==null&&(Ur?(f=mn,y=y.stateNode,f.nodeType===8?Ag(f.parentNode,y):f.nodeType===1&&Ag(f,y),Ou(f)):Ag(mn,y.stateNode));break;case 4:S=mn,A=Ur,mn=y.stateNode.containerInfo,Ur=!0,Aa(f,h,y),mn=S,Ur=A;break;case 0:case 11:case 14:case 15:if(!En&&(S=y.updateQueue,S!==null&&(S=S.lastEffect,S!==null))){A=S=S.next;do{var P=A,U=P.destroy;P=P.tag,U!==void 0&&((P&2)!==0||(P&4)!==0)&&fv(y,h,U),A=A.next}while(A!==S)}Aa(f,h,y);break;case 1:if(!En&&(Ks(y,h),S=y.stateNode,typeof S.componentWillUnmount=="function"))try{S.props=y.memoizedProps,S.state=y.memoizedState,S.componentWillUnmount()}catch(Z){qt(y,h,Z)}Aa(f,h,y);break;case 21:Aa(f,h,y);break;case 22:y.mode&1?(En=(S=En)||y.memoizedState!==null,Aa(f,h,y),En=S):Aa(f,h,y);break;default:Aa(f,h,y)}}function BS(f){var h=f.updateQueue;if(h!==null){f.updateQueue=null;var y=f.stateNode;y===null&&(y=f.stateNode=new a4),h.forEach(function(S){var A=m4.bind(null,f,S);y.has(S)||(y.add(S),S.then(A,A))})}}function $r(f,h){var y=h.deletions;if(y!==null)for(var S=0;S<y.length;S++){var A=y[S];try{var P=f,U=h,Z=U;e:for(;Z!==null;){switch(Z.tag){case 5:mn=Z.stateNode,Ur=!1;break e;case 3:mn=Z.stateNode.containerInfo,Ur=!0;break e;case 4:mn=Z.stateNode.containerInfo,Ur=!0;break e}Z=Z.return}if(mn===null)throw Error(r(160));jS(P,U,A),mn=null,Ur=!1;var ne=A.alternate;ne!==null&&(ne.return=null),A.return=null}catch(he){qt(A,h,he)}}if(h.subtreeFlags&12854)for(h=h.child;h!==null;)zS(h,f),h=h.sibling}function zS(f,h){var y=f.alternate,S=f.flags;switch(f.tag){case 0:case 11:case 14:case 15:if($r(h,f),oi(f),S&4){try{ec(3,f,f.return),rh(3,f)}catch(ze){qt(f,f.return,ze)}try{ec(5,f,f.return)}catch(ze){qt(f,f.return,ze)}}break;case 1:$r(h,f),oi(f),S&512&&y!==null&&Ks(y,y.return);break;case 5:if($r(h,f),oi(f),S&512&&y!==null&&Ks(y,y.return),f.flags&32){var A=f.stateNode;try{Q(A,"")}catch(ze){qt(f,f.return,ze)}}if(S&4&&(A=f.stateNode,A!=null)){var P=f.memoizedProps,U=y!==null?y.memoizedProps:P,Z=f.type,ne=f.updateQueue;if(f.updateQueue=null,ne!==null)try{Z==="input"&&P.type==="radio"&&P.name!=null&&ot(A,P),le(Z,U);var he=le(Z,P);for(U=0;U<ne.length;U+=2){var _e=ne[U],Se=ne[U+1];_e==="style"?Ve(A,Se):_e==="dangerouslySetInnerHTML"?R(A,Se):_e==="children"?Q(A,Se):b(A,_e,Se,he)}switch(Z){case"input":st(A,P);break;case"textarea":it(A,P);break;case"select":var ye=A._wrapperState.wasMultiple;A._wrapperState.wasMultiple=!!P.multiple;var De=P.value;De!=null?ct(A,!!P.multiple,De,!1):ye!==!!P.multiple&&(P.defaultValue!=null?ct(A,!!P.multiple,P.defaultValue,!0):ct(A,!!P.multiple,P.multiple?[]:"",!1))}A[Hu]=P}catch(ze){qt(f,f.return,ze)}}break;case 6:if($r(h,f),oi(f),S&4){if(f.stateNode===null)throw Error(r(162));A=f.stateNode,P=f.memoizedProps;try{A.nodeValue=P}catch(ze){qt(f,f.return,ze)}}break;case 3:if($r(h,f),oi(f),S&4&&y!==null&&y.memoizedState.isDehydrated)try{Ou(h.containerInfo)}catch(ze){qt(f,f.return,ze)}break;case 4:$r(h,f),oi(f);break;case 13:$r(h,f),oi(f),A=f.child,A.flags&8192&&(P=A.memoizedState!==null,A.stateNode.isHidden=P,!P||A.alternate!==null&&A.alternate.memoizedState!==null||(vv=Wt())),S&4&&BS(f);break;case 22:if(_e=y!==null&&y.memoizedState!==null,f.mode&1?(En=(he=En)||_e,$r(h,f),En=he):$r(h,f),oi(f),S&8192){if(he=f.memoizedState!==null,(f.stateNode.isHidden=he)&&!_e&&(f.mode&1)!==0)for(je=f,_e=f.child;_e!==null;){for(Se=je=_e;je!==null;){switch(ye=je,De=ye.child,ye.tag){case 0:case 11:case 14:case 15:ec(4,ye,ye.return);break;case 1:Ks(ye,ye.return);var Be=ye.stateNode;if(typeof Be.componentWillUnmount=="function"){S=ye,y=ye.return;try{h=S,Be.props=h.memoizedProps,Be.state=h.memoizedState,Be.componentWillUnmount()}catch(ze){qt(S,y,ze)}}break;case 5:Ks(ye,ye.return);break;case 22:if(ye.memoizedState!==null){HS(Se);continue}}De!==null?(De.return=ye,je=De):HS(Se)}_e=_e.sibling}e:for(_e=null,Se=f;;){if(Se.tag===5){if(_e===null){_e=Se;try{A=Se.stateNode,he?(P=A.style,typeof P.setProperty=="function"?P.setProperty("display","none","important"):P.display="none"):(Z=Se.stateNode,ne=Se.memoizedProps.style,U=ne!=null&&ne.hasOwnProperty("display")?ne.display:null,Z.style.display=ge("display",U))}catch(ze){qt(f,f.return,ze)}}}else if(Se.tag===6){if(_e===null)try{Se.stateNode.nodeValue=he?"":Se.memoizedProps}catch(ze){qt(f,f.return,ze)}}else if((Se.tag!==22&&Se.tag!==23||Se.memoizedState===null||Se===f)&&Se.child!==null){Se.child.return=Se,Se=Se.child;continue}if(Se===f)break e;for(;Se.sibling===null;){if(Se.return===null||Se.return===f)break e;_e===Se&&(_e=null),Se=Se.return}_e===Se&&(_e=null),Se.sibling.return=Se.return,Se=Se.sibling}}break;case 19:$r(h,f),oi(f),S&4&&BS(f);break;case 21:break;default:$r(h,f),oi(f)}}function oi(f){var h=f.flags;if(h&2){try{e:{for(var y=f.return;y!==null;){if(FS(y)){var S=y;break e}y=y.return}throw Error(r(160))}switch(S.tag){case 5:var A=S.stateNode;S.flags&32&&(Q(A,""),S.flags&=-33);var P=LS(f);pv(f,P,A);break;case 3:case 4:var U=S.stateNode.containerInfo,Z=LS(f);hv(f,Z,U);break;default:throw Error(r(161))}}catch(ne){qt(f,f.return,ne)}f.flags&=-3}h&4096&&(f.flags&=-4097)}function s4(f,h,y){je=f,US(f)}function US(f,h,y){for(var S=(f.mode&1)!==0;je!==null;){var A=je,P=A.child;if(A.tag===22&&S){var U=A.memoizedState!==null||nh;if(!U){var Z=A.alternate,ne=Z!==null&&Z.memoizedState!==null||En;Z=nh;var he=En;if(nh=U,(En=ne)&&!he)for(je=A;je!==null;)U=je,ne=U.child,U.tag===22&&U.memoizedState!==null?qS(A):ne!==null?(ne.return=U,je=ne):qS(A);for(;P!==null;)je=P,US(P),P=P.sibling;je=A,nh=Z,En=he}$S(f)}else(A.subtreeFlags&8772)!==0&&P!==null?(P.return=A,je=P):$S(f)}}function $S(f){for(;je!==null;){var h=je;if((h.flags&8772)!==0){var y=h.alternate;try{if((h.flags&8772)!==0)switch(h.tag){case 0:case 11:case 15:En||rh(5,h);break;case 1:var S=h.stateNode;if(h.flags&4&&!En)if(y===null)S.componentDidMount();else{var A=h.elementType===h.type?y.memoizedProps:zr(h.type,y.memoizedProps);S.componentDidUpdate(A,y.memoizedState,S.__reactInternalSnapshotBeforeUpdate)}var P=h.updateQueue;P!==null&&HE(h,P,S);break;case 3:var U=h.updateQueue;if(U!==null){if(y=null,h.child!==null)switch(h.child.tag){case 5:y=h.child.stateNode;break;case 1:y=h.child.stateNode}HE(h,U,y)}break;case 5:var Z=h.stateNode;if(y===null&&h.flags&4){y=Z;var ne=h.memoizedProps;switch(h.type){case"button":case"input":case"select":case"textarea":ne.autoFocus&&y.focus();break;case"img":ne.src&&(y.src=ne.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(h.memoizedState===null){var he=h.alternate;if(he!==null){var _e=he.memoizedState;if(_e!==null){var Se=_e.dehydrated;Se!==null&&Ou(Se)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}En||h.flags&512&&dv(h)}catch(ye){qt(h,h.return,ye)}}if(h===f){je=null;break}if(y=h.sibling,y!==null){y.return=h.return,je=y;break}je=h.return}}function HS(f){for(;je!==null;){var h=je;if(h===f){je=null;break}var y=h.sibling;if(y!==null){y.return=h.return,je=y;break}je=h.return}}function qS(f){for(;je!==null;){var h=je;try{switch(h.tag){case 0:case 11:case 15:var y=h.return;try{rh(4,h)}catch(ne){qt(h,y,ne)}break;case 1:var S=h.stateNode;if(typeof S.componentDidMount=="function"){var A=h.return;try{S.componentDidMount()}catch(ne){qt(h,A,ne)}}var P=h.return;try{dv(h)}catch(ne){qt(h,P,ne)}break;case 5:var U=h.return;try{dv(h)}catch(ne){qt(h,U,ne)}}}catch(ne){qt(h,h.return,ne)}if(h===f){je=null;break}var Z=h.sibling;if(Z!==null){Z.return=h.return,je=Z;break}je=h.return}}var l4=Math.ceil,ih=C.ReactCurrentDispatcher,mv=C.ReactCurrentOwner,_r=C.ReactCurrentBatchConfig,mt=0,cn=null,Zt=null,gn=0,ir=0,Ys=xa(0),an=0,tc=null,Ro=0,ah=0,gv=0,nc=null,zn=null,vv=0,Xs=1/0,Li=null,oh=!1,yv=null,Ta=null,sh=!1,Ia=null,lh=0,rc=0,wv=null,uh=-1,ch=0;function In(){return(mt&6)!==0?Wt():uh!==-1?uh:uh=Wt()}function Pa(f){return(f.mode&1)===0?1:(mt&2)!==0&&gn!==0?gn&-gn:Gj.transition!==null?(ch===0&&(ch=Lx()),ch):(f=Ct,f!==0||(f=window.event,f=f===void 0?16:Wx(f.type)),f)}function Hr(f,h,y,S){if(50<rc)throw rc=0,wv=null,Error(r(185));Au(f,y,S),((mt&2)===0||f!==cn)&&(f===cn&&((mt&2)===0&&(ah|=y),an===4&&Ra(f,gn)),Un(f,S),y===1&&mt===0&&(h.mode&1)===0&&(Xs=Wt()+500,jd&&Sa()))}function Un(f,h){var y=f.callbackNode;G3(f,h);var S=wd(f,f===cn?gn:0);if(S===0)y!==null&&Cu(y),f.callbackNode=null,f.callbackPriority=0;else if(h=S&-S,f.callbackPriority!==h){if(y!=null&&Cu(y),h===1)f.tag===0?qj(WS.bind(null,f)):RE(WS.bind(null,f)),zj(function(){(mt&6)===0&&Sa()}),y=null;else{switch(jx(S)){case 1:y=Jm;break;case 4:y=Dx;break;case 16:y=md;break;case 536870912:y=Fx;break;default:y=md}y=eC(y,GS.bind(null,f))}f.callbackPriority=h,f.callbackNode=y}}function GS(f,h){if(uh=-1,ch=0,(mt&6)!==0)throw Error(r(327));var y=f.callbackNode;if(Js()&&f.callbackNode!==y)return null;var S=wd(f,f===cn?gn:0);if(S===0)return null;if((S&30)!==0||(S&f.expiredLanes)!==0||h)h=fh(f,S);else{h=S;var A=mt;mt|=2;var P=QS();(cn!==f||gn!==h)&&(Li=null,Xs=Wt()+500,No(f,h));do try{f4();break}catch(Z){VS(f,Z)}while(!0);Lg(),ih.current=P,mt=A,Zt!==null?h=0:(cn=null,gn=0,h=an)}if(h!==0){if(h===2&&(A=Zm(f),A!==0&&(S=A,h=_v(f,A))),h===1)throw y=tc,No(f,0),Ra(f,S),Un(f,Wt()),y;if(h===6)Ra(f,S);else{if(A=f.current.alternate,(S&30)===0&&!u4(A)&&(h=fh(f,S),h===2&&(P=Zm(f),P!==0&&(S=P,h=_v(f,P))),h===1))throw y=tc,No(f,0),Ra(f,S),Un(f,Wt()),y;switch(f.finishedWork=A,f.finishedLanes=S,h){case 0:case 1:throw Error(r(345));case 2:Mo(f,zn,Li);break;case 3:if(Ra(f,S),(S&130023424)===S&&(h=vv+500-Wt(),10<h)){if(wd(f,0)!==0)break;if(A=f.suspendedLanes,(A&S)!==S){In(),f.pingedLanes|=f.suspendedLanes&A;break}f.timeoutHandle=kg(Mo.bind(null,f,zn,Li),h);break}Mo(f,zn,Li);break;case 4:if(Ra(f,S),(S&4194240)===S)break;for(h=f.eventTimes,A=-1;0<S;){var U=31-Lr(S);P=1<<U,U=h[U],U>A&&(A=U),S&=~P}if(S=A,S=Wt()-S,S=(120>S?120:480>S?480:1080>S?1080:1920>S?1920:3e3>S?3e3:4320>S?4320:1960*l4(S/1960))-S,10<S){f.timeoutHandle=kg(Mo.bind(null,f,zn,Li),S);break}Mo(f,zn,Li);break;case 5:Mo(f,zn,Li);break;default:throw Error(r(329))}}}return Un(f,Wt()),f.callbackNode===y?GS.bind(null,f):null}function _v(f,h){var y=nc;return f.current.memoizedState.isDehydrated&&(No(f,h).flags|=256),f=fh(f,h),f!==2&&(h=zn,zn=y,h!==null&&bv(h)),f}function bv(f){zn===null?zn=f:zn.push.apply(zn,f)}function u4(f){for(var h=f;;){if(h.flags&16384){var y=h.updateQueue;if(y!==null&&(y=y.stores,y!==null))for(var S=0;S<y.length;S++){var A=y[S],P=A.getSnapshot;A=A.value;try{if(!jr(P(),A))return!1}catch{return!1}}}if(y=h.child,h.subtreeFlags&16384&&y!==null)y.return=h,h=y;else{if(h===f)break;for(;h.sibling===null;){if(h.return===null||h.return===f)return!0;h=h.return}h.sibling.return=h.return,h=h.sibling}}return!0}function Ra(f,h){for(h&=~gv,h&=~ah,f.suspendedLanes|=h,f.pingedLanes&=~h,f=f.expirationTimes;0<h;){var y=31-Lr(h),S=1<<y;f[y]=-1,h&=~S}}function WS(f){if((mt&6)!==0)throw Error(r(327));Js();var h=wd(f,0);if((h&1)===0)return Un(f,Wt()),null;var y=fh(f,h);if(f.tag!==0&&y===2){var S=Zm(f);S!==0&&(h=S,y=_v(f,S))}if(y===1)throw y=tc,No(f,0),Ra(f,h),Un(f,Wt()),y;if(y===6)throw Error(r(345));return f.finishedWork=f.current.alternate,f.finishedLanes=h,Mo(f,zn,Li),Un(f,Wt()),null}function xv(f,h){var y=mt;mt|=1;try{return f(h)}finally{mt=y,mt===0&&(Xs=Wt()+500,jd&&Sa())}}function Oo(f){Ia!==null&&Ia.tag===0&&(mt&6)===0&&Js();var h=mt;mt|=1;var y=_r.transition,S=Ct;try{if(_r.transition=null,Ct=1,f)return f()}finally{Ct=S,_r.transition=y,mt=h,(mt&6)===0&&Sa()}}function Ev(){ir=Ys.current,Nt(Ys)}function No(f,h){f.finishedWork=null,f.finishedLanes=0;var y=f.timeoutHandle;if(y!==-1&&(f.timeoutHandle=-1,Bj(y)),Zt!==null)for(y=Zt.return;y!==null;){var S=y;switch(Og(S),S.tag){case 1:S=S.type.childContextTypes,S!=null&&Fd();break;case 3:Vs(),Nt(Ln),Nt(_n),Gg();break;case 5:Hg(S);break;case 4:Vs();break;case 13:Nt(zt);break;case 19:Nt(zt);break;case 10:jg(S.type._context);break;case 22:case 23:Ev()}y=y.return}if(cn=f,Zt=f=Oa(f.current,null),gn=ir=h,an=0,tc=null,gv=ah=Ro=0,zn=nc=null,To!==null){for(h=0;h<To.length;h++)if(y=To[h],S=y.interleaved,S!==null){y.interleaved=null;var A=S.next,P=y.pending;if(P!==null){var U=P.next;P.next=A,S.next=U}y.pending=S}To=null}return f}function VS(f,h){do{var y=Zt;try{if(Lg(),Qd.current=Jd,Kd){for(var S=Ut.memoizedState;S!==null;){var A=S.queue;A!==null&&(A.pending=null),S=S.next}Kd=!1}if(Po=0,un=rn=Ut=null,Ku=!1,Yu=0,mv.current=null,y===null||y.return===null){an=1,tc=h,Zt=null;break}e:{var P=f,U=y.return,Z=y,ne=h;if(h=gn,Z.flags|=32768,ne!==null&&typeof ne=="object"&&typeof ne.then=="function"){var he=ne,_e=Z,Se=_e.tag;if((_e.mode&1)===0&&(Se===0||Se===11||Se===15)){var ye=_e.alternate;ye?(_e.updateQueue=ye.updateQueue,_e.memoizedState=ye.memoizedState,_e.lanes=ye.lanes):(_e.updateQueue=null,_e.memoizedState=null)}var De=yS(U);if(De!==null){De.flags&=-257,wS(De,U,Z,P,h),De.mode&1&&vS(P,he,h),h=De,ne=he;var Be=h.updateQueue;if(Be===null){var ze=new Set;ze.add(ne),h.updateQueue=ze}else Be.add(ne);break e}else{if((h&1)===0){vS(P,he,h),Sv();break e}ne=Error(r(426))}}else if(jt&&Z.mode&1){var Vt=yS(U);if(Vt!==null){(Vt.flags&65536)===0&&(Vt.flags|=256),wS(Vt,U,Z,P,h),Dg(Qs(ne,Z));break e}}P=ne=Qs(ne,Z),an!==4&&(an=2),nc===null?nc=[P]:nc.push(P),P=U;do{switch(P.tag){case 3:P.flags|=65536,h&=-h,P.lanes|=h;var ue=mS(P,ne,h);$E(P,ue);break e;case 1:Z=ne;var oe=P.type,ce=P.stateNode;if((P.flags&128)===0&&(typeof oe.getDerivedStateFromError=="function"||ce!==null&&typeof ce.componentDidCatch=="function"&&(Ta===null||!Ta.has(ce)))){P.flags|=65536,h&=-h,P.lanes|=h;var Ae=gS(P,Z,h);$E(P,Ae);break e}}P=P.return}while(P!==null)}YS(y)}catch($e){h=$e,Zt===y&&y!==null&&(Zt=y=y.return);continue}break}while(!0)}function QS(){var f=ih.current;return ih.current=Jd,f===null?Jd:f}function Sv(){(an===0||an===3||an===2)&&(an=4),cn===null||(Ro&268435455)===0&&(ah&268435455)===0||Ra(cn,gn)}function fh(f,h){var y=mt;mt|=2;var S=QS();(cn!==f||gn!==h)&&(Li=null,No(f,h));do try{c4();break}catch(A){VS(f,A)}while(!0);if(Lg(),mt=y,ih.current=S,Zt!==null)throw Error(r(261));return cn=null,gn=0,an}function c4(){for(;Zt!==null;)KS(Zt)}function f4(){for(;Zt!==null&&!F3();)KS(Zt)}function KS(f){var h=ZS(f.alternate,f,ir);f.memoizedProps=f.pendingProps,h===null?YS(f):Zt=h,mv.current=null}function YS(f){var h=f;do{var y=h.alternate;if(f=h.return,(h.flags&32768)===0){if(y=r4(y,h,ir),y!==null){Zt=y;return}}else{if(y=i4(y,h),y!==null){y.flags&=32767,Zt=y;return}if(f!==null)f.flags|=32768,f.subtreeFlags=0,f.deletions=null;else{an=6,Zt=null;return}}if(h=h.sibling,h!==null){Zt=h;return}Zt=h=f}while(h!==null);an===0&&(an=5)}function Mo(f,h,y){var S=Ct,A=_r.transition;try{_r.transition=null,Ct=1,d4(f,h,y,S)}finally{_r.transition=A,Ct=S}return null}function d4(f,h,y,S){do Js();while(Ia!==null);if((mt&6)!==0)throw Error(r(327));y=f.finishedWork;var A=f.finishedLanes;if(y===null)return null;if(f.finishedWork=null,f.finishedLanes=0,y===f.current)throw Error(r(177));f.callbackNode=null,f.callbackPriority=0;var P=y.lanes|y.childLanes;if(W3(f,P),f===cn&&(Zt=cn=null,gn=0),(y.subtreeFlags&2064)===0&&(y.flags&2064)===0||sh||(sh=!0,eC(md,function(){return Js(),null})),P=(y.flags&15990)!==0,(y.subtreeFlags&15990)!==0||P){P=_r.transition,_r.transition=null;var U=Ct;Ct=1;var Z=mt;mt|=4,mv.current=null,o4(f,y),zS(y,f),Oj(Sg),xd=!!Eg,Sg=Eg=null,f.current=y,s4(y),L3(),mt=Z,Ct=U,_r.transition=P}else f.current=y;if(sh&&(sh=!1,Ia=f,lh=A),P=f.pendingLanes,P===0&&(Ta=null),z3(y.stateNode),Un(f,Wt()),h!==null)for(S=f.onRecoverableError,y=0;y<h.length;y++)A=h[y],S(A.value,{componentStack:A.stack,digest:A.digest});if(oh)throw oh=!1,f=yv,yv=null,f;return(lh&1)!==0&&f.tag!==0&&Js(),P=f.pendingLanes,(P&1)!==0?f===wv?rc++:(rc=0,wv=f):rc=0,Sa(),null}function Js(){if(Ia!==null){var f=jx(lh),h=_r.transition,y=Ct;try{if(_r.transition=null,Ct=16>f?16:f,Ia===null)var S=!1;else{if(f=Ia,Ia=null,lh=0,(mt&6)!==0)throw Error(r(331));var A=mt;for(mt|=4,je=f.current;je!==null;){var P=je,U=P.child;if((je.flags&16)!==0){var Z=P.deletions;if(Z!==null){for(var ne=0;ne<Z.length;ne++){var he=Z[ne];for(je=he;je!==null;){var _e=je;switch(_e.tag){case 0:case 11:case 15:ec(8,_e,P)}var Se=_e.child;if(Se!==null)Se.return=_e,je=Se;else for(;je!==null;){_e=je;var ye=_e.sibling,De=_e.return;if(DS(_e),_e===he){je=null;break}if(ye!==null){ye.return=De,je=ye;break}je=De}}}var Be=P.alternate;if(Be!==null){var ze=Be.child;if(ze!==null){Be.child=null;do{var Vt=ze.sibling;ze.sibling=null,ze=Vt}while(ze!==null)}}je=P}}if((P.subtreeFlags&2064)!==0&&U!==null)U.return=P,je=U;else e:for(;je!==null;){if(P=je,(P.flags&2048)!==0)switch(P.tag){case 0:case 11:case 15:ec(9,P,P.return)}var ue=P.sibling;if(ue!==null){ue.return=P.return,je=ue;break e}je=P.return}}var oe=f.current;for(je=oe;je!==null;){U=je;var ce=U.child;if((U.subtreeFlags&2064)!==0&&ce!==null)ce.return=U,je=ce;else e:for(U=oe;je!==null;){if(Z=je,(Z.flags&2048)!==0)try{switch(Z.tag){case 0:case 11:case 15:rh(9,Z)}}catch($e){qt(Z,Z.return,$e)}if(Z===U){je=null;break e}var Ae=Z.sibling;if(Ae!==null){Ae.return=Z.return,je=Ae;break e}je=Z.return}}if(mt=A,Sa(),ni&&typeof ni.onPostCommitFiberRoot=="function")try{ni.onPostCommitFiberRoot(gd,f)}catch{}S=!0}return S}finally{Ct=y,_r.transition=h}}return!1}function XS(f,h,y){h=Qs(y,h),h=mS(f,h,1),f=ka(f,h,1),h=In(),f!==null&&(Au(f,1,h),Un(f,h))}function qt(f,h,y){if(f.tag===3)XS(f,f,y);else for(;h!==null;){if(h.tag===3){XS(h,f,y);break}else if(h.tag===1){var S=h.stateNode;if(typeof h.type.getDerivedStateFromError=="function"||typeof S.componentDidCatch=="function"&&(Ta===null||!Ta.has(S))){f=Qs(y,f),f=gS(h,f,1),h=ka(h,f,1),f=In(),h!==null&&(Au(h,1,f),Un(h,f));break}}h=h.return}}function h4(f,h,y){var S=f.pingCache;S!==null&&S.delete(h),h=In(),f.pingedLanes|=f.suspendedLanes&y,cn===f&&(gn&y)===y&&(an===4||an===3&&(gn&130023424)===gn&&500>Wt()-vv?No(f,0):gv|=y),Un(f,h)}function JS(f,h){h===0&&((f.mode&1)===0?h=1:(h=yd,yd<<=1,(yd&130023424)===0&&(yd=4194304)));var y=In();f=Mi(f,h),f!==null&&(Au(f,h,y),Un(f,y))}function p4(f){var h=f.memoizedState,y=0;h!==null&&(y=h.retryLane),JS(f,y)}function m4(f,h){var y=0;switch(f.tag){case 13:var S=f.stateNode,A=f.memoizedState;A!==null&&(y=A.retryLane);break;case 19:S=f.stateNode;break;default:throw Error(r(314))}S!==null&&S.delete(h),JS(f,y)}var ZS;ZS=function(f,h,y){if(f!==null)if(f.memoizedProps!==h.pendingProps||Ln.current)Bn=!0;else{if((f.lanes&y)===0&&(h.flags&128)===0)return Bn=!1,n4(f,h,y);Bn=(f.flags&131072)!==0}else Bn=!1,jt&&(h.flags&1048576)!==0&&OE(h,zd,h.index);switch(h.lanes=0,h.tag){case 2:var S=h.type;th(f,h),f=h.pendingProps;var A=zs(h,_n.current);Ws(h,y),A=Qg(null,h,S,f,A,y);var P=Kg();return h.flags|=1,typeof A=="object"&&A!==null&&typeof A.render=="function"&&A.$$typeof===void 0?(h.tag=1,h.memoizedState=null,h.updateQueue=null,jn(S)?(P=!0,Ld(h)):P=!1,h.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,Ug(h),A.updater=Zd,h.stateNode=A,A._reactInternals=h,tv(h,S,f,y),h=av(null,h,S,!0,P,y)):(h.tag=0,jt&&P&&Rg(h),Tn(null,h,A,y),h=h.child),h;case 16:S=h.elementType;e:{switch(th(f,h),f=h.pendingProps,A=S._init,S=A(S._payload),h.type=S,A=h.tag=v4(S),f=zr(S,f),A){case 0:h=iv(null,h,S,f,y);break e;case 1:h=CS(null,h,S,f,y);break e;case 11:h=_S(null,h,S,f,y);break e;case 14:h=bS(null,h,S,zr(S.type,f),y);break e}throw Error(r(306,S,""))}return h;case 0:return S=h.type,A=h.pendingProps,A=h.elementType===S?A:zr(S,A),iv(f,h,S,A,y);case 1:return S=h.type,A=h.pendingProps,A=h.elementType===S?A:zr(S,A),CS(f,h,S,A,y);case 3:e:{if(kS(h),f===null)throw Error(r(387));S=h.pendingProps,P=h.memoizedState,A=P.element,UE(f,h),Wd(h,S,null,y);var U=h.memoizedState;if(S=U.element,P.isDehydrated)if(P={element:S,isDehydrated:!1,cache:U.cache,pendingSuspenseBoundaries:U.pendingSuspenseBoundaries,transitions:U.transitions},h.updateQueue.baseState=P,h.memoizedState=P,h.flags&256){A=Qs(Error(r(423)),h),h=AS(f,h,S,y,A);break e}else if(S!==A){A=Qs(Error(r(424)),h),h=AS(f,h,S,y,A);break e}else for(rr=ba(h.stateNode.containerInfo.firstChild),nr=h,jt=!0,Br=null,y=BE(h,null,S,y),h.child=y;y;)y.flags=y.flags&-3|4096,y=y.sibling;else{if(Hs(),S===A){h=Fi(f,h,y);break e}Tn(f,h,S,y)}h=h.child}return h;case 5:return qE(h),f===null&&Mg(h),S=h.type,A=h.pendingProps,P=f!==null?f.memoizedProps:null,U=A.children,Cg(S,A)?U=null:P!==null&&Cg(S,P)&&(h.flags|=32),SS(f,h),Tn(f,h,U,y),h.child;case 6:return f===null&&Mg(h),null;case 13:return TS(f,h,y);case 4:return $g(h,h.stateNode.containerInfo),S=h.pendingProps,f===null?h.child=qs(h,null,S,y):Tn(f,h,S,y),h.child;case 11:return S=h.type,A=h.pendingProps,A=h.elementType===S?A:zr(S,A),_S(f,h,S,A,y);case 7:return Tn(f,h,h.pendingProps,y),h.child;case 8:return Tn(f,h,h.pendingProps.children,y),h.child;case 12:return Tn(f,h,h.pendingProps.children,y),h.child;case 10:e:{if(S=h.type._context,A=h.pendingProps,P=h.memoizedProps,U=A.value,Tt(Hd,S._currentValue),S._currentValue=U,P!==null)if(jr(P.value,U)){if(P.children===A.children&&!Ln.current){h=Fi(f,h,y);break e}}else for(P=h.child,P!==null&&(P.return=h);P!==null;){var Z=P.dependencies;if(Z!==null){U=P.child;for(var ne=Z.firstContext;ne!==null;){if(ne.context===S){if(P.tag===1){ne=Di(-1,y&-y),ne.tag=2;var he=P.updateQueue;if(he!==null){he=he.shared;var _e=he.pending;_e===null?ne.next=ne:(ne.next=_e.next,_e.next=ne),he.pending=ne}}P.lanes|=y,ne=P.alternate,ne!==null&&(ne.lanes|=y),Bg(P.return,y,h),Z.lanes|=y;break}ne=ne.next}}else if(P.tag===10)U=P.type===h.type?null:P.child;else if(P.tag===18){if(U=P.return,U===null)throw Error(r(341));U.lanes|=y,Z=U.alternate,Z!==null&&(Z.lanes|=y),Bg(U,y,h),U=P.sibling}else U=P.child;if(U!==null)U.return=P;else for(U=P;U!==null;){if(U===h){U=null;break}if(P=U.sibling,P!==null){P.return=U.return,U=P;break}U=U.return}P=U}Tn(f,h,A.children,y),h=h.child}return h;case 9:return A=h.type,S=h.pendingProps.children,Ws(h,y),A=yr(A),S=S(A),h.flags|=1,Tn(f,h,S,y),h.child;case 14:return S=h.type,A=zr(S,h.pendingProps),A=zr(S.type,A),bS(f,h,S,A,y);case 15:return xS(f,h,h.type,h.pendingProps,y);case 17:return S=h.type,A=h.pendingProps,A=h.elementType===S?A:zr(S,A),th(f,h),h.tag=1,jn(S)?(f=!0,Ld(h)):f=!1,Ws(h,y),hS(h,S,A),tv(h,S,A,y),av(null,h,S,!0,f,y);case 19:return PS(f,h,y);case 22:return ES(f,h,y)}throw Error(r(156,h.tag))};function eC(f,h){return pd(f,h)}function g4(f,h,y,S){this.tag=f,this.key=y,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=h,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=S,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function br(f,h,y,S){return new g4(f,h,y,S)}function Cv(f){return f=f.prototype,!(!f||!f.isReactComponent)}function v4(f){if(typeof f=="function")return Cv(f)?1:0;if(f!=null){if(f=f.$$typeof,f===$)return 11;if(f===H)return 14}return 2}function Oa(f,h){var y=f.alternate;return y===null?(y=br(f.tag,h,f.key,f.mode),y.elementType=f.elementType,y.type=f.type,y.stateNode=f.stateNode,y.alternate=f,f.alternate=y):(y.pendingProps=h,y.type=f.type,y.flags=0,y.subtreeFlags=0,y.deletions=null),y.flags=f.flags&14680064,y.childLanes=f.childLanes,y.lanes=f.lanes,y.child=f.child,y.memoizedProps=f.memoizedProps,y.memoizedState=f.memoizedState,y.updateQueue=f.updateQueue,h=f.dependencies,y.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},y.sibling=f.sibling,y.index=f.index,y.ref=f.ref,y}function dh(f,h,y,S,A,P){var U=2;if(S=f,typeof f=="function")Cv(f)&&(U=1);else if(typeof f=="string")U=5;else e:switch(f){case T:return Do(y.children,A,P,h);case N:U=8,A|=8;break;case M:return f=br(12,y,h,A|2),f.elementType=M,f.lanes=P,f;case X:return f=br(13,y,h,A),f.elementType=X,f.lanes=P,f;case W:return f=br(19,y,h,A),f.elementType=W,f.lanes=P,f;case K:return hh(y,A,P,h);default:if(typeof f=="object"&&f!==null)switch(f.$$typeof){case j:U=10;break e;case D:U=9;break e;case $:U=11;break e;case H:U=14;break e;case V:U=16,S=null;break e}throw Error(r(130,f==null?f:typeof f,""))}return h=br(U,y,h,A),h.elementType=f,h.type=S,h.lanes=P,h}function Do(f,h,y,S){return f=br(7,f,S,h),f.lanes=y,f}function hh(f,h,y,S){return f=br(22,f,S,h),f.elementType=K,f.lanes=y,f.stateNode={isHidden:!1},f}function kv(f,h,y){return f=br(6,f,null,h),f.lanes=y,f}function Av(f,h,y){return h=br(4,f.children!==null?f.children:[],f.key,h),h.lanes=y,h.stateNode={containerInfo:f.containerInfo,pendingChildren:null,implementation:f.implementation},h}function y4(f,h,y,S,A){this.tag=h,this.containerInfo=f,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=eg(0),this.expirationTimes=eg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eg(0),this.identifierPrefix=S,this.onRecoverableError=A,this.mutableSourceEagerHydrationData=null}function Tv(f,h,y,S,A,P,U,Z,ne){return f=new y4(f,h,y,Z,ne),h===1?(h=1,P===!0&&(h|=8)):h=0,P=br(3,null,null,h),f.current=P,P.stateNode=f,P.memoizedState={element:S,isDehydrated:y,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ug(P),f}function w4(f,h,y){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:k,key:S==null?null:""+S,children:f,containerInfo:h,implementation:y}}function tC(f){if(!f)return Ea;f=f._reactInternals;e:{if(Fr(f)!==f||f.tag!==1)throw Error(r(170));var h=f;do{switch(h.tag){case 3:h=h.stateNode.context;break e;case 1:if(jn(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break e}}h=h.return}while(h!==null);throw Error(r(171))}if(f.tag===1){var y=f.type;if(jn(y))return IE(f,y,h)}return h}function nC(f,h,y,S,A,P,U,Z,ne){return f=Tv(y,S,!0,f,A,P,U,Z,ne),f.context=tC(null),y=f.current,S=In(),A=Pa(y),P=Di(S,A),P.callback=h??null,ka(y,P,A),f.current.lanes=A,Au(f,A,S),Un(f,S),f}function ph(f,h,y,S){var A=h.current,P=In(),U=Pa(A);return y=tC(y),h.context===null?h.context=y:h.pendingContext=y,h=Di(P,U),h.payload={element:f},S=S===void 0?null:S,S!==null&&(h.callback=S),f=ka(A,h,U),f!==null&&(Hr(f,A,U,P),Gd(f,A,U)),U}function mh(f){if(f=f.current,!f.child)return null;switch(f.child.tag){case 5:return f.child.stateNode;default:return f.child.stateNode}}function rC(f,h){if(f=f.memoizedState,f!==null&&f.dehydrated!==null){var y=f.retryLane;f.retryLane=y!==0&&y<h?y:h}}function Iv(f,h){rC(f,h),(f=f.alternate)&&rC(f,h)}function _4(){return null}var iC=typeof reportError=="function"?reportError:function(f){console.error(f)};function Pv(f){this._internalRoot=f}gh.prototype.render=Pv.prototype.render=function(f){var h=this._internalRoot;if(h===null)throw Error(r(409));ph(f,h,null,null)},gh.prototype.unmount=Pv.prototype.unmount=function(){var f=this._internalRoot;if(f!==null){this._internalRoot=null;var h=f.containerInfo;Oo(function(){ph(null,f,null,null)}),h[Pi]=null}};function gh(f){this._internalRoot=f}gh.prototype.unstable_scheduleHydration=function(f){if(f){var h=Ux();f={blockedOn:null,target:f,priority:h};for(var y=0;y<ya.length&&h!==0&&h<ya[y].priority;y++);ya.splice(y,0,f),y===0&&qx(f)}};function Rv(f){return!(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)}function vh(f){return!(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11&&(f.nodeType!==8||f.nodeValue!==" react-mount-point-unstable "))}function aC(){}function b4(f,h,y,S,A){if(A){if(typeof S=="function"){var P=S;S=function(){var he=mh(U);P.call(he)}}var U=nC(h,S,f,0,null,!1,!1,"",aC);return f._reactRootContainer=U,f[Pi]=U.current,Uu(f.nodeType===8?f.parentNode:f),Oo(),U}for(;A=f.lastChild;)f.removeChild(A);if(typeof S=="function"){var Z=S;S=function(){var he=mh(ne);Z.call(he)}}var ne=Tv(f,0,!1,null,null,!1,!1,"",aC);return f._reactRootContainer=ne,f[Pi]=ne.current,Uu(f.nodeType===8?f.parentNode:f),Oo(function(){ph(h,ne,y,S)}),ne}function yh(f,h,y,S,A){var P=y._reactRootContainer;if(P){var U=P;if(typeof A=="function"){var Z=A;A=function(){var ne=mh(U);Z.call(ne)}}ph(h,U,f,A)}else U=b4(y,h,f,A,S);return mh(U)}Bx=function(f){switch(f.tag){case 3:var h=f.stateNode;if(h.current.memoizedState.isDehydrated){var y=ku(h.pendingLanes);y!==0&&(tg(h,y|1),Un(h,Wt()),(mt&6)===0&&(Xs=Wt()+500,Sa()))}break;case 13:Oo(function(){var S=Mi(f,1);if(S!==null){var A=In();Hr(S,f,1,A)}}),Iv(f,1)}},ng=function(f){if(f.tag===13){var h=Mi(f,134217728);if(h!==null){var y=In();Hr(h,f,134217728,y)}Iv(f,134217728)}},zx=function(f){if(f.tag===13){var h=Pa(f),y=Mi(f,h);if(y!==null){var S=In();Hr(y,f,h,S)}Iv(f,h)}},Ux=function(){return Ct},$x=function(f,h){var y=Ct;try{return Ct=f,h()}finally{Ct=y}},St=function(f,h,y){switch(h){case"input":if(st(f,y),h=y.name,y.type==="radio"&&h!=null){for(y=f;y.parentNode;)y=y.parentNode;for(y=y.querySelectorAll("input[name="+JSON.stringify(""+h)+'][type="radio"]'),h=0;h<y.length;h++){var S=y[h];if(S!==f&&S.form===f.form){var A=Dd(S);if(!A)throw Error(r(90));Oe(S),st(S,A)}}}break;case"textarea":it(f,y);break;case"select":h=y.value,h!=null&&ct(f,!!y.multiple,h,!1)}},Ts=xv,Ti=Oo;var x4={usingClientEntryPoint:!1,Events:[qu,js,Dd,wn,Mr,xv]},ic={findFiberByHostInstance:So,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},E4={bundleType:ic.bundleType,version:ic.version,rendererPackageName:ic.rendererPackageName,rendererConfig:ic.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(f){return f=Ii(f),f===null?null:f.stateNode},findFiberByHostInstance:ic.findFiberByHostInstance||_4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wh.isDisabled&&wh.supportsFiber)try{gd=wh.inject(E4),ni=wh}catch{}}return $n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x4,$n.createPortal=function(f,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rv(h))throw Error(r(200));return w4(f,h,null,y)},$n.createRoot=function(f,h){if(!Rv(f))throw Error(r(299));var y=!1,S="",A=iC;return h!=null&&(h.unstable_strictMode===!0&&(y=!0),h.identifierPrefix!==void 0&&(S=h.identifierPrefix),h.onRecoverableError!==void 0&&(A=h.onRecoverableError)),h=Tv(f,1,!1,null,null,y,!1,S,A),f[Pi]=h.current,Uu(f.nodeType===8?f.parentNode:f),new Pv(h)},$n.findDOMNode=function(f){if(f==null)return null;if(f.nodeType===1)return f;var h=f._reactInternals;if(h===void 0)throw typeof f.render=="function"?Error(r(188)):(f=Object.keys(f).join(","),Error(r(268,f)));return f=Ii(h),f=f===null?null:f.stateNode,f},$n.flushSync=function(f){return Oo(f)},$n.hydrate=function(f,h,y){if(!vh(h))throw Error(r(200));return yh(null,f,h,!0,y)},$n.hydrateRoot=function(f,h,y){if(!Rv(f))throw Error(r(405));var S=y!=null&&y.hydratedSources||null,A=!1,P="",U=iC;if(y!=null&&(y.unstable_strictMode===!0&&(A=!0),y.identifierPrefix!==void 0&&(P=y.identifierPrefix),y.onRecoverableError!==void 0&&(U=y.onRecoverableError)),h=nC(h,null,f,1,y??null,A,!1,P,U),f[Pi]=h.current,Uu(f),S)for(f=0;f<S.length;f++)y=S[f],A=y._getVersion,A=A(y._source),h.mutableSourceEagerHydrationData==null?h.mutableSourceEagerHydrationData=[y,A]:h.mutableSourceEagerHydrationData.push(y,A);return new gh(h)},$n.render=function(f,h,y){if(!vh(h))throw Error(r(200));return yh(null,f,h,!1,y)},$n.unmountComponentAtNode=function(f){if(!vh(f))throw Error(r(40));return f._reactRootContainer?(Oo(function(){yh(null,null,f,!1,function(){f._reactRootContainer=null,f[Pi]=null})}),!0):!1},$n.unstable_batchedUpdates=xv,$n.unstable_renderSubtreeIntoContainer=function(f,h,y,S){if(!vh(y))throw Error(r(200));if(f==null||f._reactInternals===void 0)throw Error(r(38));return yh(f,h,y,!1,S)},$n.version="18.3.1-next-f1338f8080-20240426",$n}var vC;function VR(){if(vC)return Mv.exports;vC=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Mv.exports=G4(),Mv.exports}var yC;function W4(){if(yC)return bh;yC=1;var e=VR();return bh.createRoot=e.createRoot,bh.hydrateRoot=e.hydrateRoot,bh}var V4=W4(),C_=function(e,t){return C_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},C_(e,t)};function Pr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");C_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ue=function(){return Ue=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Ue.apply(this,arguments)};function gl(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Nn(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var J=ho();const te=yn(J);function Ff(e,t){var r=t&&t.cache?t.cache:Z4,n=t&&t.serializer?t.serializer:J4,i=t&&t.strategy?t.strategy:Y4;return i(e,{cache:r,serializer:n})}function Q4(e){return e==null||typeof e=="number"||typeof e=="boolean"}function K4(e,t,r,n){var i=Q4(n)?n:r(n),a=t.get(i);return typeof a>"u"&&(a=e.call(this,n),t.set(i,a)),a}function QR(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function KR(e,t,r,n,i){return r.bind(t,e,n,i)}function Y4(e,t){var r=e.length===1?K4:QR;return KR(e,this,r,t.cache.create(),t.serializer)}function X4(e,t){return KR(e,this,QR,t.cache.create(),t.serializer)}var J4=function(){return JSON.stringify(arguments)};function B1(){this.cache=Object.create(null)}B1.prototype.get=function(e){return this.cache[e]};B1.prototype.set=function(e,t){this.cache[e]=t};var Z4={create:function(){return new B1}},Lf={variadic:X4};function YR(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}Ff(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Nn([void 0],t,!1)))},{strategy:Lf.variadic});Ff(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Nn([void 0],t,!1)))},{strategy:Lf.variadic});Ff(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Nn([void 0],t,!1)))},{strategy:Lf.variadic});Ff(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.Locale).bind.apply(e,Nn([void 0],t,!1)))},{strategy:Lf.variadic});Ff(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.ListFormat).bind.apply(e,Nn([void 0],t,!1)))},{strategy:Lf.variadic});function Lv(e,t){var r=t&&t.cache?t.cache:aB,n=t&&t.serializer?t.serializer:iB,i=t&&t.strategy?t.strategy:nB;return i(e,{cache:r,serializer:n})}function eB(e){return e==null||typeof e=="number"||typeof e=="boolean"}function tB(e,t,r,n){var i=eB(n)?n:r(n),a=t.get(i);return typeof a>"u"&&(a=e.call(this,n),t.set(i,a)),a}function XR(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function JR(e,t,r,n,i){return r.bind(t,e,n,i)}function nB(e,t){var r=e.length===1?tB:XR;return JR(e,this,r,t.cache.create(),t.serializer)}function rB(e,t){return JR(e,this,XR,t.cache.create(),t.serializer)}var iB=function(){return JSON.stringify(arguments)};function z1(){this.cache=Object.create(null)}z1.prototype.get=function(e){return this.cache[e]};z1.prototype.set=function(e,t){this.cache[e]=t};var aB={create:function(){return new z1}},jv={variadic:rB},dt;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(dt||(dt={}));var Ft;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Ft||(Ft={}));var vl;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(vl||(vl={}));function wC(e){return e.type===Ft.literal}function oB(e){return e.type===Ft.argument}function ZR(e){return e.type===Ft.number}function eO(e){return e.type===Ft.date}function tO(e){return e.type===Ft.time}function nO(e){return e.type===Ft.select}function rO(e){return e.type===Ft.plural}function sB(e){return e.type===Ft.pound}function iO(e){return e.type===Ft.tag}function aO(e){return!!(e&&typeof e=="object"&&e.type===vl.number)}function k_(e){return!!(e&&typeof e=="object"&&e.type===vl.dateTime)}var oO=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,lB=/(?:[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 uB(e){var t={};return e.replace(lB,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"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=n===4?"long":n===5?"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 cB=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function fB(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(cB).filter(function(p){return p.length>0}),r=[],n=0,i=t;n<i.length;n++){var a=i[n],s=a.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var o=s[0],l=s.slice(1),u=0,c=l;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:l})}return r}function dB(e){return e.replace(/^(.*?)-/,"")}var _C=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,sO=/^(@+)?(\+|#+)?[rs]?$/g,hB=/(\*)(0+)|(#+)(0+)|(0+)/g,lO=/^(0+)$/;function bC(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(sO,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function uO(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 pB(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!lO.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function xC(e){var t={},r=uO(e);return r||t}function mB(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];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=dB(i.options[0]);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=Ue(Ue(Ue({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return Ue(Ue({},l),xC(u))},{}));continue;case"engineering":t=Ue(Ue(Ue({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return Ue(Ue({},l),xC(u))},{}));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(hB,function(l,u,c,d,p,m){if(u)t.minimumIntegerDigits=c.length;else{if(d&&p)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(lO.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(_C.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(_C,function(l,u,c,d,p,m){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:p&&m?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+m.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=i.options[0];a==="w"?t=Ue(Ue({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=Ue(Ue({},t),bC(a)));continue}if(sO.test(i.stem)){t=Ue(Ue({},t),bC(i.stem));continue}var s=uO(i.stem);s&&(t=Ue(Ue({},t),s));var o=pB(i.stem);o&&(t=Ue(Ue({},t),o))}return t}var xh={"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 gB(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var a=0;n+1<e.length&&e.charAt(n+1)===i;)a++,n++;var s=1+(a&1),o=a<2?1:3+(a>>1),l="a",u=vB(t);for((u=="H"||u=="k")&&(o=0);o-- >0;)r+=l;for(;s-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function vB(e){var t=e.hourCycle;if(t===void 0&&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 r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=xh[n||""]||xh[r||""]||xh["".concat(r,"-001")]||xh["001"];return i[0]}var Bv,yB=new RegExp("^".concat(oO.source,"*")),wB=new RegExp("".concat(oO.source,"*$"));function pt(e,t){return{start:e,end:t}}var _B=!!String.prototype.startsWith&&"_a".startsWith("a",1),bB=!!String.fromCodePoint,xB=!!Object.fromEntries,EB=!!String.prototype.codePointAt,SB=!!String.prototype.trimStart,CB=!!String.prototype.trimEnd,kB=!!Number.isSafeInteger,AB=kB?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},A_=!0;try{var TB=fO("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");A_=((Bv=TB.exec("a"))===null||Bv===void 0?void 0:Bv[0])==="a"}catch{A_=!1}var EC=_B?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},T_=bB?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,a=0,s;i>a;){if(s=t[a++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},SC=xB?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var a=i[n],s=a[0],o=a[1];r[s]=o}return r},cO=EB?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),a;return i<55296||i>56319||r+1===n||(a=t.charCodeAt(r+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},IB=SB?function(t){return t.trimStart()}:function(t){return t.replace(yB,"")},PB=CB?function(t){return t.trimEnd()}:function(t){return t.replace(wB,"")};function fO(e,t){return new RegExp(e,t)}var I_;if(A_){var CC=fO("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");I_=function(t,r){var n;CC.lastIndex=r;var i=CC.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else I_=function(t,r){for(var n=[];;){var i=cO(t,r);if(i===void 0||dO(i)||MB(i))break;n.push(i),r+=i>=65536?2:1}return T_.apply(void 0,n)};var RB=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val)}else{if(a===125&&t>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:Ft.pound,location:pt(o,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(dt.UNMATCHED_CLOSING_TAG,pt(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&P_(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ft.literal,value:"<".concat(i,"/>"),location:pt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,r,!0);if(a.err)return a;var s=a.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!P_(this.char()))return this.error(dt.INVALID_TAG,pt(o,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(dt.UNMATCHED_CLOSING_TAG,pt(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ft.tag,value:i,children:s,location:pt(n,this.clonePosition())},err:null}:this.error(dt.INVALID_TAG,pt(o,this.clonePosition())))}else return this.error(dt.UNCLOSED_TAG,pt(n,this.clonePosition()))}else return this.error(dt.INVALID_TAG,pt(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&NB(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var a=this.tryParseQuote(r);if(a){i+=a;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var l=pt(n,this.clonePosition());return{val:{type:Ft.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!OB(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return T_.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),T_(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(dt.EXPECT_ARGUMENT_CLOSING_BRACE,pt(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(dt.EMPTY_ARGUMENT,pt(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(dt.MALFORMED_ARGUMENT,pt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(dt.EXPECT_ARGUMENT_CLOSING_BRACE,pt(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ft.argument,value:i,location:pt(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(dt.EXPECT_ARGUMENT_CLOSING_BRACE,pt(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(dt.MALFORMED_ARGUMENT,pt(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=I_(this.message,r),i=r+n.length;this.bumpTo(i);var a=this.clonePosition(),s=pt(t,a);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var a,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(o){case"":return this.error(dt.EXPECT_ARGUMENT_TYPE,pt(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var p=PB(d.val);if(p.length===0)return this.error(dt.EXPECT_ARGUMENT_STYLE,pt(this.clonePosition(),this.clonePosition()));var m=pt(c,this.clonePosition());u={style:p,styleLocation:m}}var w=this.tryParseArgumentClose(i);if(w.err)return w;var g=pt(i,this.clonePosition());if(u&&EC(u==null?void 0:u.style,"::",0)){var _=IB(u.style.slice(2));if(o==="number"){var d=this.parseNumberSkeletonFromString(_,u.styleLocation);return d.err?d:{val:{type:Ft.number,value:n,location:g,style:d.val},err:null}}else{if(_.length===0)return this.error(dt.EXPECT_DATE_TIME_SKELETON,g);var E=_;this.locale&&(E=gB(_,this.locale));var p={type:vl.dateTime,pattern:E,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?uB(E):{}},x=o==="date"?Ft.date:Ft.time;return{val:{type:x,value:n,location:g,style:p},err:null}}}return{val:{type:o==="number"?Ft.number:o==="date"?Ft.date:Ft.time,value:n,location:g,style:(a=u==null?void 0:u.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(dt.EXPECT_SELECT_ARGUMENT_OPTIONS,pt(b,Ue({},b)));this.bumpSpace();var C=this.parseIdentifierIfPossible(),v=0;if(o!=="select"&&C.value==="offset"){if(!this.bumpIf(":"))return this.error(dt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pt(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(dt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,dt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),C=this.parseIdentifierIfPossible(),v=d.val}var k=this.tryParsePluralOrSelectOptions(t,o,r,C);if(k.err)return k;var w=this.tryParseArgumentClose(i);if(w.err)return w;var T=pt(i,this.clonePosition());return o==="select"?{val:{type:Ft.select,value:n,options:SC(k.val),location:T},err:null}:{val:{type:Ft.plural,value:n,options:SC(k.val),offset:v,pluralType:o==="plural"?"cardinal":"ordinal",location:T},err:null}}default:return this.error(dt.INVALID_ARGUMENT_TYPE,pt(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(dt.EXPECT_ARGUMENT_CLOSING_BRACE,pt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(dt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,pt(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=fB(t)}catch{return this.error(dt.INVALID_NUMBER_SKELETON,r)}return{val:{type:vl.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?mB(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var a,s=!1,o=[],l=new Set,u=i.value,c=i.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(dt.EXPECT_PLURAL_ARGUMENT_SELECTOR,dt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;c=pt(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?dt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:dt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?dt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:dt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,pt(this.clonePosition(),this.clonePosition()));var w=this.parseMessage(t+1,r,n);if(w.err)return w;var g=this.tryParseArgumentClose(m);if(g.err)return g;o.push([u,{value:w.val,location:pt(m,this.clonePosition())}]),l.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,c=a.location}return o.length===0?this.error(r==="select"?dt.EXPECT_SELECT_ARGUMENT_SELECTOR:dt.EXPECT_PLURAL_ARGUMENT_SELECTOR,pt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(dt.MISSING_OTHER_CLAUSE,pt(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)a=!0,s=s*10+(o-48),this.bump();else break}var l=pt(i,this.clonePosition());return a?(s*=n,AB(s)?{val:s,err:null}:this.error(r,l)):this.error(t,l)},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 t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=cO(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(EC(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&dO(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function P_(e){return e>=97&&e<=122||e>=65&&e<=90}function OB(e){return P_(e)||e===47}function NB(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||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}function dO(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function MB(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===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>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||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||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===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>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===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>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||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||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function R_(e){e.forEach(function(t){if(delete t.location,nO(t)||rO(t))for(var r in t.options)delete t.options[r].location,R_(t.options[r].value);else ZR(t)&&aO(t.style)||(eO(t)||tO(t))&&k_(t.style)?delete t.style.location:iO(t)&&R_(t.children)})}function DB(e,t){t===void 0&&(t={}),t=Ue({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new RB(e,t).parse();if(r.err){var n=SyntaxError(dt[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||R_(r.val),r.val}var wi;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(wi||(wi={}));var po=function(e){Pr(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.code=n,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),kC=function(e){Pr(t,e);function t(r,n,i,a){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),wi.INVALID_VALUE,a)||this}return t}(po),FB=function(e){Pr(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),wi.INVALID_VALUE,i)||this}return t}(po),LB=function(e){Pr(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),wi.MISSING_VALUE,n)||this}return t}(po),Pn;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Pn||(Pn={}));function jB(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Pn.literal||r.type!==Pn.literal?t.push(r):n.value+=r.value,t},[])}function hO(e){return typeof e=="function"}function sp(e,t,r,n,i,a,s){if(e.length===1&&wC(e[0]))return[{type:Pn.literal,value:e[0].value}];for(var o=[],l=0,u=e;l<u.length;l++){var c=u[l];if(wC(c)){o.push({type:Pn.literal,value:c.value});continue}if(sB(c)){typeof a=="number"&&o.push({type:Pn.literal,value:r.getNumberFormat(t).format(a)});continue}var d=c.value;if(!(i&&d in i))throw new LB(d,s);var p=i[d];if(oB(c)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),o.push({type:typeof p=="string"?Pn.literal:Pn.object,value:p});continue}if(eO(c)){var m=typeof c.style=="string"?n.date[c.style]:k_(c.style)?c.style.parsedOptions:void 0;o.push({type:Pn.literal,value:r.getDateTimeFormat(t,m).format(p)});continue}if(tO(c)){var m=typeof c.style=="string"?n.time[c.style]:k_(c.style)?c.style.parsedOptions:n.time.medium;o.push({type:Pn.literal,value:r.getDateTimeFormat(t,m).format(p)});continue}if(ZR(c)){var m=typeof c.style=="string"?n.number[c.style]:aO(c.style)?c.style.parsedOptions:void 0;m&&m.scale&&(p=p*(m.scale||1)),o.push({type:Pn.literal,value:r.getNumberFormat(t,m).format(p)});continue}if(iO(c)){var w=c.children,g=c.value,_=i[g];if(!hO(_))throw new FB(g,"function",s);var E=sp(w,t,r,n,i,a),x=_(E.map(function(v){return v.value}));Array.isArray(x)||(x=[x]),o.push.apply(o,x.map(function(v){return{type:typeof v=="string"?Pn.literal:Pn.object,value:v}}))}if(nO(c)){var b=c.options[p]||c.options.other;if(!b)throw new kC(c.value,p,Object.keys(c.options),s);o.push.apply(o,sp(b.value,t,r,n,i));continue}if(rO(c)){var b=c.options["=".concat(p)];if(!b){if(!Intl.PluralRules)throw new po(`Intl.PluralRules is not available in this environment.
Try polyfilling it using "@formatjs/intl-pluralrules"
`,wi.MISSING_INTL_API,s);var C=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));b=c.options[C]||c.options.other}if(!b)throw new kC(c.value,p,Object.keys(c.options),s);o.push.apply(o,sp(b.value,t,r,n,i,p-(c.offset||0)));continue}}return jB(o)}function BB(e,t){return t?Ue(Ue(Ue({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Ue(Ue({},e[n]),t[n]||{}),r},{})):e}function zB(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=BB(e[n],t[n]),r},Ue({},e)):e}function zv(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function UB(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Lv(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Nn([void 0],r,!1)))},{cache:zv(e.number),strategy:jv.variadic}),getDateTimeFormat:Lv(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Nn([void 0],r,!1)))},{cache:zv(e.dateTime),strategy:jv.variadic}),getPluralRules:Lv(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Nn([void 0],r,!1)))},{cache:zv(e.pluralRules),strategy:jv.variadic})}}var pO=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=a.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(d,p){return!d.length||p.type!==Pn.literal||typeof d[d.length-1]!="string"?d.push(p.value):d[d.length-1]+=p.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return sp(a.ast,a.locales,a.formatters,a.formats,l,void 0,a.message)},this.resolvedOptions=function(){var l;return{locale:((l=a.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var o=gl(s,["formatters"]);this.ast=e.__parse(t,Ue(Ue({},o),{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=zB(e.formats,n),this.formatters=i&&i.formatters||UB(this.formatterCache)}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(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=DB,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 Fo(e,t){var r=t&&t.cache?t.cache:VB,n=t&&t.serializer?t.serializer:WB,i=t&&t.strategy?t.strategy:qB;return i(e,{cache:r,serializer:n})}function $B(e){return e==null||typeof e=="number"||typeof e=="boolean"}function HB(e,t,r,n){var i=$B(n)?n:r(n),a=t.get(i);return typeof a>"u"&&(a=e.call(this,n),t.set(i,a)),a}function mO(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function gO(e,t,r,n,i){return r.bind(t,e,n,i)}function qB(e,t){var r=e.length===1?HB:mO;return gO(e,this,r,t.cache.create(),t.serializer)}function GB(e,t){return gO(e,this,mO,t.cache.create(),t.serializer)}var WB=function(){return JSON.stringify(arguments)};function U1(){this.cache=Object.create(null)}U1.prototype.get=function(e){return this.cache[e]};U1.prototype.set=function(e,t){this.cache[e]=t};var VB={create:function(){return new U1}},Lo={variadic:GB},Jo;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Jo||(Jo={}));var jf=function(e){Pr(t,e);function t(r,n,i){var a=this,s=i?i instanceof Error?i:new Error(String(i)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,`
`).concat(s?`
`.concat(s.message,`
`).concat(s.stack):""))||this,a.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t}(Error),QB=function(e){Pr(t,e);function t(r,n){return e.call(this,Jo.UNSUPPORTED_FORMATTER,r,n)||this}return t}(jf),KB=function(e){Pr(t,e);function t(r,n){return e.call(this,Jo.INVALID_CONFIG,r,n)||this}return t}(jf),AC=function(e){Pr(t,e);function t(r,n){return e.call(this,Jo.MISSING_DATA,r,n)||this}return t}(jf),Rr=function(e){Pr(t,e);function t(r,n,i){var a=e.call(this,Jo.FORMAT_ERROR,"".concat(r,`
Locale: `).concat(n,`
`),i)||this;return a.locale=n,a}return t}(jf),Uv=function(e){Pr(t,e);function t(r,n,i,a){var s=e.call(this,"".concat(r,`
MessageID: `).concat(i==null?void 0:i.id,`
Default Message: `).concat(i==null?void 0:i.defaultMessage,`
Description: `).concat(i==null?void 0:i.description,`
`),n,a)||this;return s.descriptor=i,s.locale=n,s}return t}(Rr),YB=function(e){Pr(t,e);function t(r,n){var i=e.call(this,Jo.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(n,'", using ').concat(r.defaultMessage?"default message (".concat(typeof r.defaultMessage=="string"?r.defaultMessage:r.defaultMessage.map(function(a){var s;return(s=a.value)!==null&&s!==void 0?s:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=r,i}return t}(jf);function ms(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,i){return i in e?n[i]=e[i]:i in r&&(n[i]=r[i]),n},{})}var XB=function(e){},JB=function(e){},vO={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:XB,onWarn:JB};function yO(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function jo(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function ZB(e){e===void 0&&(e=yO());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=Fo(function(){for(var o,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((o=Intl.DateTimeFormat).bind.apply(o,Nn([void 0],l,!1)))},{cache:jo(e.dateTime),strategy:Lo.variadic}),a=Fo(function(){for(var o,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((o=Intl.NumberFormat).bind.apply(o,Nn([void 0],l,!1)))},{cache:jo(e.number),strategy:Lo.variadic}),s=Fo(function(){for(var o,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((o=Intl.PluralRules).bind.apply(o,Nn([void 0],l,!1)))},{cache:jo(e.pluralRules),strategy:Lo.variadic});return{getDateTimeFormat:i,getNumberFormat:a,getMessageFormat:Fo(function(o,l,u,c){return new pO(o,l,u,Ue({formatters:{getNumberFormat:a,getDateTimeFormat:i,getPluralRules:s}},c||{}))},{cache:jo(e.message),strategy:Lo.variadic}),getRelativeTimeFormat:Fo(function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new(t.bind.apply(t,Nn([void 0],o,!1)))},{cache:jo(e.relativeTime),strategy:Lo.variadic}),getPluralRules:s,getListFormat:Fo(function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new(r.bind.apply(r,Nn([void 0],o,!1)))},{cache:jo(e.list),strategy:Lo.variadic}),getDisplayNames:Fo(function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new(n.bind.apply(n,Nn([void 0],o,!1)))},{cache:jo(e.displayNames),strategy:Lo.variadic})}}function $1(e,t,r,n){var i=e&&e[t],a;if(i&&(a=i[r]),a)return a;n(new QB("No ".concat(t," format named: ").concat(r)))}function Eh(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=Ue({timeZone:t},e[n]),r},{})}function TC(e,t){var r=Object.keys(Ue(Ue({},e),t));return r.reduce(function(n,i){return n[i]=Ue(Ue({},e[i]||{}),t[i]||{}),n},{})}function IC(e,t){if(!t)return e;var r=pO.formats;return Ue(Ue(Ue({},r),e),{date:TC(Eh(r.date,t),Eh(e.date||{},t)),time:TC(Eh(r.time,t),Eh(e.time||{},t))})}var O_=function(e,t,r,n,i){var a=e.locale,s=e.formats,o=e.messages,l=e.defaultLocale,u=e.defaultFormats,c=e.fallbackOnEmptyString,d=e.onError,p=e.timeZone,m=e.defaultRichTextElements;r===void 0&&(r={id:""});var w=r.id,g=r.defaultMessage;YR(!!w,"[@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 _=String(w),E=o&&Object.prototype.hasOwnProperty.call(o,_)&&o[_];if(Array.isArray(E)&&E.length===1&&E[0].type===Ft.literal)return E[0].value;if(!n&&E&&typeof E=="string"&&!m)return E.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=Ue(Ue({},m),n||{}),s=IC(s,p),u=IC(u,p),!E){if(c===!1&&E==="")return E;if((!g||a&&a.toLowerCase()!==l.toLowerCase())&&d(new YB(r,a)),g)try{var x=t.getMessageFormat(g,l,u,i);return x.format(n)}catch(b){return d(new Uv('Error formatting default message for: "'.concat(_,'", rendering default message verbatim'),a,r,b)),typeof g=="string"?g:_}return _}try{var x=t.getMessageFormat(E,a,s,Ue({formatters:t},i||{}));return x.format(n)}catch(b){d(new Uv('Error formatting message: "'.concat(_,'", using ').concat(g?"default message":"id"," as fallback."),a,r,b))}if(g)try{var x=t.getMessageFormat(g,l,u,i);return x.format(n)}catch(b){d(new Uv('Error formatting the default message for: "'.concat(_,'", rendering message verbatim'),a,r,b))}return typeof E=="string"?E:typeof g=="string"?g:_},wO=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function rm(e,t,r,n){var i=e.locale,a=e.formats,s=e.onError,o=e.timeZone;n===void 0&&(n={});var l=n.format,u=Ue(Ue({},o&&{timeZone:o}),l&&$1(a,t,l,s)),c=ms(n,wO,u);return t==="time"&&!c.hour&&!c.minute&&!c.second&&!c.timeStyle&&!c.dateStyle&&(c=Ue(Ue({},c),{hour:"numeric",minute:"numeric"})),r(i,c)}function ez(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s=a===void 0?{}:a,o=typeof i=="string"?new Date(i||0):i;try{return rm(e,"date",t,s).format(o)}catch(l){e.onError(new Rr("Error formatting date.",e.locale,l))}return String(o)}function tz(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s=a===void 0?{}:a,o=typeof i=="string"?new Date(i||0):i;try{return rm(e,"time",t,s).format(o)}catch(l){e.onError(new Rr("Error formatting time.",e.locale,l))}return String(o)}function nz(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s=r[2],o=s===void 0?{}:s,l=e.timeZone,u=e.locale,c=e.onError,d=ms(o,wO,l?{timeZone:l}:{});try{return t(u,d).formatRange(i,a)}catch(p){c(new Rr("Error formatting date time range.",e.locale,p))}return String(i)}function rz(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s=a===void 0?{}:a,o=typeof i=="string"?new Date(i||0):i;try{return rm(e,"date",t,s).formatToParts(o)}catch(l){e.onError(new Rr("Error formatting date.",e.locale,l))}return[]}function iz(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s=a===void 0?{}:a,o=typeof i=="string"?new Date(i||0):i;try{return rm(e,"time",t,s).formatToParts(o)}catch(l){e.onError(new Rr("Error formatting time.",e.locale,l))}return[]}var az=["style","type","fallback","languageDisplay"];function oz(e,t,r,n){var i=e.locale,a=e.onError,s=Intl.DisplayNames;s||a(new po(`Intl.DisplayNames is not available in this environment.
Try polyfilling it using "@formatjs/intl-displaynames"
`,wi.MISSING_INTL_API));var o=ms(n,az);try{return t(i,o).of(r)}catch(l){a(new Rr("Error formatting display name.",i,l))}}var sz=["type","style"],PC=Date.now();function lz(e){return"".concat(PC,"_").concat(e,"_").concat(PC)}function uz(e,t,r,n){n===void 0&&(n={});var i=_O(e,t,r,n).reduce(function(a,s){var o=s.value;return typeof o!="string"?a.push(o):typeof a[a.length-1]=="string"?a[a.length-1]+=o:a.push(o),a},[]);return i.length===1?i[0]:i.length===0?"":i}function _O(e,t,r,n){var i=e.locale,a=e.onError;n===void 0&&(n={});var s=Intl.ListFormat;s||a(new po(`Intl.ListFormat is not available in this environment.
Try polyfilling it using "@formatjs/intl-listformat"
`,wi.MISSING_INTL_API));var o=ms(n,sz);try{var l={},u=r.map(function(c,d){if(typeof c=="object"){var p=lz(d);return l[p]=c,p}return String(c)});return t(i,o).formatToParts(u).map(function(c){return c.type==="literal"?c:Ue(Ue({},c),{value:l[c.value]||c.value})})}catch(c){a(new Rr("Error formatting list.",i,c))}return r}var cz=["type"];function fz(e,t,r,n){var i=e.locale,a=e.onError;n===void 0&&(n={}),Intl.PluralRules||a(new po(`Intl.PluralRules is not available in this environment.
Try polyfilling it using "@formatjs/intl-pluralrules"
`,wi.MISSING_INTL_API));var s=ms(n,cz);try{return t(i,s).select(r)}catch(o){a(new Rr("Error formatting plural.",i,o))}return"other"}var dz=["numeric","style"];function hz(e,t,r){var n=e.locale,i=e.formats,a=e.onError;r===void 0&&(r={});var s=r.format,o=!!s&&$1(i,"relative",s,a)||{},l=ms(r,dz,o);return t(n,l)}function pz(e,t,r,n,i){i===void 0&&(i={}),n||(n="second");var a=Intl.RelativeTimeFormat;a||e.onError(new po(`Intl.RelativeTimeFormat is not available in this environment.
Try polyfilling it using "@formatjs/intl-relativetimeformat"
`,wi.MISSING_INTL_API));try{return hz(e,t,i).format(r,n)}catch(s){e.onError(new Rr("Error formatting relative time.",e.locale,s))}return String(r)}var mz=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function bO(e,t,r){var n=e.locale,i=e.formats,a=e.onError;r===void 0&&(r={});var s=r.format,o=s&&$1(i,"number",s,a)||{},l=ms(r,mz,o);return t(n,l)}function gz(e,t,r,n){n===void 0&&(n={});try{return bO(e,t,n).format(r)}catch(i){e.onError(new Rr("Error formatting number.",e.locale,i))}return String(r)}function vz(e,t,r,n){n===void 0&&(n={});try{return bO(e,t,n).formatToParts(r)}catch(i){e.onError(new Rr("Error formatting number.",e.locale,i))}return[]}function yz(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function wz(e){e.onWarn&&e.defaultRichTextElements&&yz(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function _z(e,t){var r=ZB(t),n=Ue(Ue({},vO),e),i=n.locale,a=n.defaultLocale,s=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&s?s(new AC('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&s&&s(new AC('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new KB('"locale" was not configured, using "'.concat(a,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),wz(n),Ue(Ue({},n),{formatters:r,formatNumber:gz.bind(null,n,r.getNumberFormat),formatNumberToParts:vz.bind(null,n,r.getNumberFormat),formatRelativeTime:pz.bind(null,n,r.getRelativeTimeFormat),formatDate:ez.bind(null,n,r.getDateTimeFormat),formatDateToParts:rz.bind(null,n,r.getDateTimeFormat),formatTime:tz.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:nz.bind(null,n,r.getDateTimeFormat),formatTimeToParts:iz.bind(null,n,r.getDateTimeFormat),formatPlural:fz.bind(null,n,r.getPluralRules),formatMessage:O_.bind(null,n,r),$t:O_.bind(null,n,r),formatList:uz.bind(null,n,r.getListFormat),formatListToParts:_O.bind(null,n,r.getListFormat),formatDisplayName:oz.bind(null,n,r.getDisplayNames)})}function xO(e){YR(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var EO=Ue(Ue({},vO),{textComponent:J.Fragment});function bz(e){return function(t){return e(J.Children.toArray(t))}}function N_(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var a=0;a<i;a++){var s=r[a];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var $v={exports:{}},bt={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var RC;function xz(){if(RC)return bt;RC=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(v){if(typeof v=="object"&&v!==null){var k=v.$$typeof;switch(k){case t:switch(v=v.type,v){case l:case u:case n:case a:case i:case d:return v;default:switch(v=v&&v.$$typeof,v){case o:case c:case w:case m:case s:return v;default:return k}}case r:return k}}}function C(v){return b(v)===u}return bt.AsyncMode=l,bt.ConcurrentMode=u,bt.ContextConsumer=o,bt.ContextProvider=s,bt.Element=t,bt.ForwardRef=c,bt.Fragment=n,bt.Lazy=w,bt.Memo=m,bt.Portal=r,bt.Profiler=a,bt.StrictMode=i,bt.Suspense=d,bt.isAsyncMode=function(v){return C(v)||b(v)===l},bt.isConcurrentMode=C,bt.isContextConsumer=function(v){return b(v)===o},bt.isContextProvider=function(v){return b(v)===s},bt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},bt.isForwardRef=function(v){return b(v)===c},bt.isFragment=function(v){return b(v)===n},bt.isLazy=function(v){return b(v)===w},bt.isMemo=function(v){return b(v)===m},bt.isPortal=function(v){return b(v)===r},bt.isProfiler=function(v){return b(v)===a},bt.isStrictMode=function(v){return b(v)===i},bt.isSuspense=function(v){return b(v)===d},bt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===u||v===a||v===i||v===d||v===p||typeof v=="object"&&v!==null&&(v.$$typeof===w||v.$$typeof===m||v.$$typeof===s||v.$$typeof===o||v.$$typeof===c||v.$$typeof===_||v.$$typeof===E||v.$$typeof===x||v.$$typeof===g)},bt.typeOf=b,bt}var OC;function Ez(){return OC||(OC=1,$v.exports=xz()),$v.exports}var Hv,NC;function Sz(){if(NC)return Hv;NC=1;var e=Ez(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=n,a[e.Memo]=i;function s(w){return e.isMemo(w)?i:a[w.$$typeof]||t}var o=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;function m(w,g,_){if(typeof g!="string"){if(p){var E=d(g);E&&E!==p&&m(w,E,_)}var x=l(g);u&&(x=x.concat(u(g)));for(var b=s(w),C=s(g),v=0;v<x.length;++v){var k=x[v];if(!r[k]&&!(_&&_[k])&&!(C&&C[k])&&!(b&&b[k])){var T=c(g,k);try{o(w,k,T)}catch{}}}}return w}return Hv=m,Hv}Sz();var H1=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=J.createContext(null)):J.createContext(null);H1.Consumer;var Cz=H1.Provider,kz=Cz,Az=H1;function fr(){var e=J.useContext(Az);return xO(e),e}var M_;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(M_||(M_={}));var D_;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(D_||(D_={}));function SO(e){var t=function(r){var n=fr(),i=r.value,a=r.children,s=gl(r,["value","children"]),o=typeof i=="string"?new Date(i||0):i,l=e==="formatDate"?n.formatDateToParts(o,s):n.formatTimeToParts(o,s);return a(l)};return t.displayName=D_[e],t}function Bf(e){var t=function(r){var n=fr(),i=r.value,a=r.children,s=gl(r,["value","children"]),o=n[e](i,s);if(typeof a=="function")return a(o);var l=n.textComponent||J.Fragment;return J.createElement(l,null,o)};return t.displayName=M_[e],t}function CO(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=hO(n)?bz(n):n,t},{})}var MC=function(e,t,r,n){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];var s=CO(n),o=O_.apply(void 0,Nn([e,t,r,s],i,!1));return Array.isArray(o)?J.Children.toArray(o):o},DC=function(e,t){var r=e.defaultRichTextElements,n=gl(e,["defaultRichTextElements"]),i=CO(r),a=_z(Ue(Ue(Ue({},EO),n),{defaultRichTextElements:i}),t),s={locale:a.locale,timeZone:a.timeZone,fallbackOnEmptyString:a.fallbackOnEmptyString,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:i};return Ue(Ue({},a),{formatMessage:MC.bind(null,s,a.formatters),$t:MC.bind(null,s,a.formatters)})};function qv(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}}var Tz=function(e){Pr(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.cache=yO(),r.state={cache:r.cache,intl:DC(qv(r.props),r.cache),prevConfig:qv(r.props)},r}return t.getDerivedStateFromProps=function(r,n){var i=n.prevConfig,a=n.cache,s=qv(r);return N_(i,s)?null:{intl:DC(s,a),prevConfig:s}},t.prototype.render=function(){return xO(this.state.intl),J.createElement(kz,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=EO,t}(J.PureComponent);function Iz(e,t){var r=e.values,n=gl(e,["values"]),i=t.values,a=gl(t,["values"]);return N_(i,r)&&N_(n,a)}function kO(e){var t=fr(),r=t.formatMessage,n=t.textComponent,i=n===void 0?J.Fragment:n,a=e.id,s=e.description,o=e.defaultMessage,l=e.values,u=e.children,c=e.tagName,d=c===void 0?i:c,p=e.ignoreTag,m={id:a,description:s,defaultMessage:o},w=r(m,l,{ignoreTag:p});return typeof u=="function"?u(Array.isArray(w)?w:[w]):d?J.createElement(d,null,J.Children.toArray(w)):J.createElement(J.Fragment,null,w)}kO.displayName="FormattedMessage";var Re=J.memo(kO,Iz);Re.displayName="MemoizedFormattedMessage";Bf("formatDate");Bf("formatTime");Bf("formatNumber");Bf("formatList");Bf("formatDisplayName");SO("formatDate");SO("formatTime");/**
* react-router v7.12.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var FC="popstate";function Pz(e={}){function t(i,a){let{pathname:s="/",search:o="",hash:l=""}=gs(i.location.hash.substring(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),F_("",{pathname:s,search:o,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(i,a){let s=i.document.querySelector("base"),o="";if(s&&s.getAttribute("href")){let l=i.location.href,u=l.indexOf("#");o=u===-1?l:l.slice(0,u)}return o+"#"+(typeof a=="string"?a:Gc(a))}function n(i,a){sr(i.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(a)})`)}return Oz(t,r,n,e)}function Bt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function sr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Rz(){return Math.random().toString(36).substring(2,10)}function LC(e,t){return{usr:e.state,key:e.key,idx:t}}function F_(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?gs(t):t,state:r,key:t&&t.key||n||Rz()}}function Gc({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function gs(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function Oz(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:a=!1}=n,s=i.history,o="POP",l=null,u=c();u==null&&(u=0,s.replaceState({...s.state,idx:u},""));function c(){return(s.state||{idx:null}).idx}function d(){o="POP";let _=c(),E=_==null?null:_-u;u=_,l&&l({action:o,location:g.location,delta:E})}function p(_,E){o="PUSH";let x=F_(g.location,_,E);r&&r(x,_),u=c()+1;let b=LC(x,u),C=g.createHref(x);try{s.pushState(b,"",C)}catch(v){if(v instanceof DOMException&&v.name==="DataCloneError")throw v;i.location.assign(C)}a&&l&&l({action:o,location:g.location,delta:1})}function m(_,E){o="REPLACE";let x=F_(g.location,_,E);r&&r(x,_),u=c();let b=LC(x,u),C=g.createHref(x);s.replaceState(b,"",C),a&&l&&l({action:o,location:g.location,delta:0})}function w(_){return Nz(_)}let g={get action(){return o},get location(){return e(i,s)},listen(_){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(FC,d),l=_,()=>{i.removeEventListener(FC,d),l=null}},createHref(_){return t(i,_)},createURL:w,encodeLocation(_){let E=w(_);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:p,replace:m,go(_){return s.go(_)}};return g}function Nz(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Bt(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:Gc(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function AO(e,t,r="/"){return Mz(e,t,r,!1)}function Mz(e,t,r,n){let i=typeof t=="string"?gs(t):t,a=Yi(i.pathname||"/",r);if(a==null)return null;let s=TO(e);Dz(s);let o=null;for(let l=0;o==null&&l<s.length;++l){let u=Wz(a);o=qz(s[l],u,n)}return o}function TO(e,t=[],r=[],n="",i=!1){let a=(s,o,l=i,u)=>{let c={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(n)&&l)return;Bt(c.relativePath.startsWith(n),`Absolute route path "${c.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(n.length)}let d=Qi([n,c.relativePath]),p=r.concat(c);s.children&&s.children.length>0&&(Bt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),TO(s.children,t,p,d,l)),!(s.path==null&&!s.index)&&t.push({path:d,score:$z(d,s.index),routesMeta:p})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))a(s,o);else for(let u of IO(s.path))a(s,o,!0,u)}),t}function IO(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let s=IO(n.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function Dz(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Hz(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var Fz=/^:[\w-]+$/,Lz=3,jz=2,Bz=1,zz=10,Uz=-2,jC=e=>e==="*";function $z(e,t){let r=e.split("/"),n=r.length;return r.some(jC)&&(n+=Uz),t&&(n+=jz),r.filter(i=>!jC(i)).reduce((i,a)=>i+(Fz.test(a)?Lz:a===""?Bz:zz),n)}function Hz(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function qz(e,t,r=!1){let{routesMeta:n}=e,i={},a="/",s=[];for(let o=0;o<n.length;++o){let l=n[o],u=o===n.length-1,c=a==="/"?t:t.slice(a.length)||"/",d=Rp({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),p=l.route;if(!d&&u&&r&&!n[n.length-1].route.index&&(d=Rp({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;Object.assign(i,d.params),s.push({params:i,pathname:Qi([a,d.pathname]),pathnameBase:Yz(Qi([a,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(a=Qi([a,d.pathnameBase]))}return s}function Rp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Gz(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:n.reduce((u,{paramName:c,isOptional:d},p)=>{if(c==="*"){let w=o[p]||"";s=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const m=o[p];return d&&!m?u[c]=void 0:u[c]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function Gz(e,t=!1,r=!0){sr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(n.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function Wz(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return sr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Yi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var PO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Vz=e=>PO.test(e);function Qz(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?gs(e):e,a;if(r)if(Vz(r))a=r;else{if(r.includes("//")){let s=r;r=r.replace(/\/\/+/g,"/"),sr(!1,`Pathnames cannot have embedded double slashes - normalizing ${s} -> ${r}`)}r.startsWith("/")?a=BC(r.substring(1),"/"):a=BC(r,t)}else a=t;return{pathname:a,search:Xz(n),hash:Jz(i)}}function BC(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Gv(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Kz(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function q1(e){let t=Kz(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function G1(e,t,r,n=!1){let i;typeof e=="string"?i=gs(e):(i={...e},Bt(!i.pathname||!i.pathname.includes("?"),Gv("?","pathname","search",i)),Bt(!i.pathname||!i.pathname.includes("#"),Gv("#","pathname","hash",i)),Bt(!i.search||!i.search.includes("#"),Gv("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=r;else{let d=t.length-1;if(!n&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}o=d>=0?t[d]:"/"}let l=Qz(i,o),u=s&&s!=="/"&&s.endsWith("/"),c=(a||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var Qi=e=>e.join("/").replace(/\/\/+/g,"/"),Yz=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Xz=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Jz=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Zz=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function eU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function tU(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var RO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function OO(e,t){let r=e;if(typeof r!="string"||!PO.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,i=!1;if(RO)try{let a=new URL(window.location.href),s=r.startsWith("//")?new URL(a.protocol+r):new URL(r),o=Yi(s.pathname,t);s.origin===a.origin&&o!=null?r=o+s.search+s.hash:i=!0}catch{sr(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:i,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var NO=["POST","PUT","PATCH","DELETE"];new Set(NO);var nU=["GET",...NO];new Set(nU);var ou=J.createContext(null);ou.displayName="DataRouter";var im=J.createContext(null);im.displayName="DataRouterState";var rU=J.createContext(!1),MO=J.createContext({isTransitioning:!1});MO.displayName="ViewTransition";var iU=J.createContext(new Map);iU.displayName="Fetchers";var aU=J.createContext(null);aU.displayName="Await";var dr=J.createContext(null);dr.displayName="Navigation";var zf=J.createContext(null);zf.displayName="Location";var Si=J.createContext({outlet:null,matches:[],isDataRoute:!1});Si.displayName="Route";var W1=J.createContext(null);W1.displayName="RouteError";var DO="REACT_ROUTER_ERROR",oU="REDIRECT",sU="ROUTE_ERROR_RESPONSE";function lU(e){if(e.startsWith(`${DO}:${oU}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function uU(e){if(e.startsWith(`${DO}:${sU}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Zz(t.status,t.statusText,t.data)}catch{}}function cU(e,{relative:t}={}){Bt(su(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=J.useContext(dr),{hash:i,pathname:a,search:s}=Uf(e,{relative:t}),o=a;return r!=="/"&&(o=a==="/"?r:Qi([r,a])),n.createHref({pathname:o,search:s,hash:i})}function su(){return J.useContext(zf)!=null}function hr(){return Bt(su(),"useLocation() may be used only in the context of a <Router> component."),J.useContext(zf).location}var FO="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function LO(e){J.useContext(dr).static||J.useLayoutEffect(e)}function mo(){let{isDataRoute:e}=J.useContext(Si);return e?EU():fU()}function fU(){Bt(su(),"useNavigate() may be used only in the context of a <Router> component.");let e=J.useContext(ou),{basename:t,navigator:r}=J.useContext(dr),{matches:n}=J.useContext(Si),{pathname:i}=hr(),a=JSON.stringify(q1(n)),s=J.useRef(!1);return LO(()=>{s.current=!0}),J.useCallback((l,u={})=>{if(sr(s.current,FO),!s.current)return;if(typeof l=="number"){r.go(l);return}let c=G1(l,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Qi([t,c.pathname])),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,a,i,e])}J.createContext(null);function Uf(e,{relative:t}={}){let{matches:r}=J.useContext(Si),{pathname:n}=hr(),i=JSON.stringify(q1(r));return J.useMemo(()=>G1(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function dU(e,t){return jO(e,t)}function jO(e,t,r,n,i){var x;Bt(su(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=J.useContext(dr),{matches:s}=J.useContext(Si),o=s[s.length-1],l=o?o.params:{},u=o?o.pathname:"/",c=o?o.pathnameBase:"/",d=o&&o.route;{let b=d&&d.path||"";zO(u,!d||b.endsWith("*")||b.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${b}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}/*`}">.`)}let p=hr(),m;if(t){let b=typeof t=="string"?gs(t):t;Bt(c==="/"||((x=b.pathname)==null?void 0:x.startsWith(c)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${b.pathname}" was given in the \`location\` prop.`),m=b}else m=p;let w=m.pathname||"/",g=w;if(c!=="/"){let b=c.replace(/^\//,"").split("/");g="/"+w.replace(/^\//,"").split("/").slice(b.length).join("/")}let _=AO(e,{pathname:g});sr(d||_!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),sr(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=vU(_&&_.map(b=>Object.assign({},b,{params:Object.assign({},l,b.params),pathname:Qi([c,a.encodeLocation?a.encodeLocation(b.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:Qi([c,a.encodeLocation?a.encodeLocation(b.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathnameBase])})),s,r,n,i);return t&&E?J.createElement(zf.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},E):E}function hU(){let e=xU(),t=eU(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=J.createElement(J.Fragment,null,J.createElement("p",null,"💿 Hey developer 👋"),J.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",J.createElement("code",{style:a},"ErrorBoundary")," or"," ",J.createElement("code",{style:a},"errorElement")," prop on your route.")),J.createElement(J.Fragment,null,J.createElement("h2",null,"Unexpected Application Error!"),J.createElement("h3",{style:{fontStyle:"italic"}},t),r?J.createElement("pre",{style:i},r):null,s)}var pU=J.createElement(hU,null),BO=class extends J.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=uU(e.digest);r&&(e=r)}let t=e!==void 0?J.createElement(Si.Provider,{value:this.props.routeContext},J.createElement(W1.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?J.createElement(mU,{error:e},t):t}};BO.contextType=rU;var Wv=new WeakMap;function mU({children:e,error:t}){let{basename:r}=J.useContext(dr);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=lU(t.digest);if(n){let i=Wv.get(t);if(i)throw i;let a=OO(n.location,r);if(RO&&!Wv.get(t))if(a.isExternal||n.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:n.replace}));throw Wv.set(t,s),s}return J.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function gU({routeContext:e,match:t,children:r}){let n=J.useContext(ou);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),J.createElement(Si.Provider,{value:e},r)}function vU(e,t=[],r=null,n=null,i=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,s=r==null?void 0:r.errors;if(s!=null){let c=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);Bt(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,c+1))}let o=!1,l=-1;if(r)for(let c=0;c<a.length;c++){let d=a[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(l=c),d.route.id){let{loaderData:p,errors:m}=r,w=d.route.loader&&!p.hasOwnProperty(d.route.id)&&(!m||m[d.route.id]===void 0);if(d.route.lazy||w){o=!0,l>=0?a=a.slice(0,l+1):a=[a[0]];break}}}let u=r&&n?(c,d)=>{var p,m;n(c,{location:r.location,params:((m=(p=r.matches)==null?void 0:p[0])==null?void 0:m.params)??{},unstable_pattern:tU(r.matches),errorInfo:d})}:void 0;return a.reduceRight((c,d,p)=>{let m,w=!1,g=null,_=null;r&&(m=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||pU,o&&(l<0&&p===0?(zO("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,_=null):l===p&&(w=!0,_=d.route.hydrateFallbackElement||null)));let E=t.concat(a.slice(0,p+1)),x=()=>{let b;return m?b=g:w?b=_:d.route.Component?b=J.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=c,J.createElement(gU,{match:d,routeContext:{outlet:c,matches:E,isDataRoute:r!=null},children:b})};return r&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?J.createElement(BO,{location:r.location,revalidation:r.revalidation,component:g,error:m,children:x(),routeContext:{outlet:null,matches:E,isDataRoute:!0},onError:u}):x()},null)}function V1(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yU(e){let t=J.useContext(ou);return Bt(t,V1(e)),t}function wU(e){let t=J.useContext(im);return Bt(t,V1(e)),t}function _U(e){let t=J.useContext(Si);return Bt(t,V1(e)),t}function Q1(e){let t=_U(e),r=t.matches[t.matches.length-1];return Bt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function bU(){return Q1("useRouteId")}function xU(){var n;let e=J.useContext(W1),t=wU("useRouteError"),r=Q1("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function EU(){let{router:e}=yU("useNavigate"),t=Q1("useNavigate"),r=J.useRef(!1);return LO(()=>{r.current=!0}),J.useCallback(async(i,a={})=>{sr(r.current,FO),r.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var zC={};function zO(e,t,r){!t&&!zC[e]&&(zC[e]=!0,sr(!1,r))}J.memo(SU);function SU({routes:e,future:t,state:r,onError:n}){return jO(e,void 0,r,n,t)}function UC({to:e,replace:t,state:r,relative:n}){Bt(su(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=J.useContext(dr);sr(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=J.useContext(Si),{pathname:s}=hr(),o=mo(),l=G1(e,q1(a),s,n==="path"),u=JSON.stringify(l);return J.useEffect(()=>{o(JSON.parse(u),{replace:t,state:r,relative:n})},[o,u,n,t,r]),null}function il(e){Bt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function CU({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:a=!1,unstable_useTransitions:s}){Bt(!su(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=J.useMemo(()=>({basename:o,navigator:i,static:a,unstable_useTransitions:s,future:{}}),[o,i,a,s]);typeof r=="string"&&(r=gs(r));let{pathname:u="/",search:c="",hash:d="",state:p=null,key:m="default"}=r,w=J.useMemo(()=>{let g=Yi(u,o);return g==null?null:{location:{pathname:g,search:c,hash:d,state:p,key:m},navigationType:n}},[o,u,c,d,p,m,n]);return sr(w!=null,`<Router basename="${o}"> is not able to match the URL "${u}${c}${d}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:J.createElement(dr.Provider,{value:l},J.createElement(zf.Provider,{children:t,value:w}))}function $C({children:e,location:t}){return dU(L_(e),t)}function L_(e,t=[]){let r=[];return J.Children.forEach(e,(n,i)=>{if(!J.isValidElement(n))return;let a=[...t,i];if(n.type===J.Fragment){r.push.apply(r,L_(n.props.children,a));return}Bt(n.type===il,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Bt(!n.props.index||!n.props.children,"An index route cannot have child routes.");let s={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=L_(n.props.children,a)),r.push(s)}),r}var lp="get",up="application/x-www-form-urlencoded";function am(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function kU(e){return am(e)&&e.tagName.toLowerCase()==="button"}function AU(e){return am(e)&&e.tagName.toLowerCase()==="form"}function TU(e){return am(e)&&e.tagName.toLowerCase()==="input"}function IU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function PU(e,t){return e.button===0&&(!t||t==="_self")&&!IU(e)}var Sh=null;function RU(){if(Sh===null)try{new FormData(document.createElement("form"),0),Sh=!1}catch{Sh=!0}return Sh}var OU=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vv(e){return e!=null&&!OU.has(e)?(sr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${up}"`),null):e}function NU(e,t){let r,n,i,a,s;if(AU(e)){let o=e.getAttribute("action");n=o?Yi(o,t):null,r=e.getAttribute("method")||lp,i=Vv(e.getAttribute("enctype"))||up,a=new FormData(e)}else if(kU(e)||TU(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||o.getAttribute("action");if(n=l?Yi(l,t):null,r=e.getAttribute("formmethod")||o.getAttribute("method")||lp,i=Vv(e.getAttribute("formenctype"))||Vv(o.getAttribute("enctype"))||up,a=new FormData(o,e),!RU()){let{name:u,type:c,value:d}=e;if(c==="image"){let p=u?`${u}.`:"";a.append(`${p}x`,"0"),a.append(`${p}y`,"0")}else u&&a.append(u,d)}}else{if(am(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=lp,n=null,i=up,s=e}return a&&i==="text/plain"&&(s=a,a=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:a,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function K1(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function MU(e,t,r,n){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${n}`:i.pathname=`${i.pathname}.${n}`:i.pathname==="/"?i.pathname=`_root.${n}`:t&&Yi(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${n}`,i}async function DU(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function FU(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function LU(e,t,r){let n=await Promise.all(e.map(async i=>{let a=t.routes[i.route.id];if(a){let s=await DU(a,r);return s.links?s.links():[]}return[]}));return UU(n.flat(1).filter(FU).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function HC(e,t,r,n,i,a){let s=(l,u)=>r[u]?l.route.id!==r[u].route.id:!0,o=(l,u)=>{var c;return r[u].pathname!==l.pathname||((c=r[u].route.path)==null?void 0:c.endsWith("*"))&&r[u].params["*"]!==l.params["*"]};return a==="assets"?t.filter((l,u)=>s(l,u)||o(l,u)):a==="data"?t.filter((l,u)=>{var d;let c=n.routes[l.route.id];if(!c||!c.hasLoader)return!1;if(s(l,u)||o(l,u))return!0;if(l.route.shouldRevalidate){let p=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((d=r[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function jU(e,t,{includeHydrateFallback:r}={}){return BU(e.map(n=>{let i=t.routes[n.route.id];if(!i)return[];let a=[i.module];return i.clientActionModule&&(a=a.concat(i.clientActionModule)),i.clientLoaderModule&&(a=a.concat(i.clientLoaderModule)),r&&i.hydrateFallbackModule&&(a=a.concat(i.hydrateFallbackModule)),i.imports&&(a=a.concat(i.imports)),a}).flat(1))}function BU(e){return[...new Set(e)]}function zU(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function UU(e,t){let r=new Set;return new Set(t),e.reduce((n,i)=>{let a=JSON.stringify(zU(i));return r.has(a)||(r.add(a),n.push({key:a,link:i})),n},[])}function UO(){let e=J.useContext(ou);return K1(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function $U(){let e=J.useContext(im);return K1(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Y1=J.createContext(void 0);Y1.displayName="FrameworkContext";function $O(){let e=J.useContext(Y1);return K1(e,"You must render this element inside a <HydratedRouter> element"),e}function HU(e,t){let r=J.useContext(Y1),[n,i]=J.useState(!1),[a,s]=J.useState(!1),{onFocus:o,onBlur:l,onMouseEnter:u,onMouseLeave:c,onTouchStart:d}=t,p=J.useRef(null);J.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let g=E=>{E.forEach(x=>{s(x.isIntersecting)})},_=new IntersectionObserver(g,{threshold:.5});return p.current&&_.observe(p.current),()=>{_.disconnect()}}},[e]),J.useEffect(()=>{if(n){let g=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(g)}}},[n]);let m=()=>{i(!0)},w=()=>{i(!1),s(!1)};return r?e!=="intent"?[a,p,{}]:[a,p,{onFocus:oc(o,m),onBlur:oc(l,w),onMouseEnter:oc(u,m),onMouseLeave:oc(c,w),onTouchStart:oc(d,m)}]:[!1,p,{}]}function oc(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function qU({page:e,...t}){let{router:r}=UO(),n=J.useMemo(()=>AO(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?J.createElement(WU,{page:e,matches:n,...t}):null}function GU(e){let{manifest:t,routeModules:r}=$O(),[n,i]=J.useState([]);return J.useEffect(()=>{let a=!1;return LU(e,t,r).then(s=>{a||i(s)}),()=>{a=!0}},[e,t,r]),n}function WU({page:e,matches:t,...r}){let n=hr(),{future:i,manifest:a,routeModules:s}=$O(),{basename:o}=UO(),{loaderData:l,matches:u}=$U(),c=J.useMemo(()=>HC(e,t,u,a,n,"data"),[e,t,u,a,n]),d=J.useMemo(()=>HC(e,t,u,a,n,"assets"),[e,t,u,a,n]),p=J.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let g=new Set,_=!1;if(t.forEach(x=>{var C;let b=a.routes[x.route.id];!b||!b.hasLoader||(!c.some(v=>v.route.id===x.route.id)&&x.route.id in l&&((C=s[x.route.id])!=null&&C.shouldRevalidate)||b.hasClientLoader?_=!0:g.add(x.route.id))}),g.size===0)return[];let E=MU(e,o,i.unstable_trailingSlashAwareDataRequests,"data");return _&&g.size>0&&E.searchParams.set("_routes",t.filter(x=>g.has(x.route.id)).map(x=>x.route.id).join(",")),[E.pathname+E.search]},[o,i.unstable_trailingSlashAwareDataRequests,l,n,a,c,t,e,s]),m=J.useMemo(()=>jU(d,a),[d,a]),w=GU(d);return J.createElement(J.Fragment,null,p.map(g=>J.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...r})),m.map(g=>J.createElement("link",{key:g,rel:"modulepreload",href:g,...r})),w.map(({key:g,link:_})=>J.createElement("link",{key:g,nonce:r.nonce,..._})))}function VU(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var QU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{QU&&(window.__reactRouterVersion="7.12.0")}catch{}function KU({basename:e,children:t,unstable_useTransitions:r,window:n}){let i=J.useRef();i.current==null&&(i.current=Pz({window:n,v5Compat:!0}));let a=i.current,[s,o]=J.useState({action:a.action,location:a.location}),l=J.useCallback(u=>{r===!1?o(u):J.startTransition(()=>o(u))},[r]);return J.useLayoutEffect(()=>a.listen(l),[a,l]),J.createElement(CU,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a,unstable_useTransitions:r})}var HO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yl=J.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:i,reloadDocument:a,replace:s,state:o,target:l,to:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:p,...m},w){let{basename:g,unstable_useTransitions:_}=J.useContext(dr),E=typeof u=="string"&&HO.test(u),x=OO(u,g);u=x.to;let b=cU(u,{relative:i}),[C,v,k]=HU(n,m),T=ZU(u,{replace:s,state:o,target:l,preventScrollReset:c,relative:i,viewTransition:d,unstable_defaultShouldRevalidate:p,unstable_useTransitions:_});function N(j){t&&t(j),j.defaultPrevented||T(j)}let M=J.createElement("a",{...m,...k,href:x.absoluteURL||b,onClick:x.isExternal||a?t:N,ref:VU(w,v),target:l,"data-discover":!E&&r==="render"?"true":void 0});return C&&!E?J.createElement(J.Fragment,null,M,J.createElement(qU,{page:b})):M});yl.displayName="Link";var YU=J.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:i=!1,style:a,to:s,viewTransition:o,children:l,...u},c){let d=Uf(s,{relative:u.relative}),p=hr(),m=J.useContext(im),{navigator:w,basename:g}=J.useContext(dr),_=m!=null&&i$(d)&&o===!0,E=w.encodeLocation?w.encodeLocation(d).pathname:d.pathname,x=p.pathname,b=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;r||(x=x.toLowerCase(),b=b?b.toLowerCase():null,E=E.toLowerCase()),b&&g&&(b=Yi(b,g)||b);const C=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let v=x===E||!i&&x.startsWith(E)&&x.charAt(C)==="/",k=b!=null&&(b===E||!i&&b.startsWith(E)&&b.charAt(E.length)==="/"),T={isActive:v,isPending:k,isTransitioning:_},N=v?t:void 0,M;typeof n=="function"?M=n(T):M=[n,v?"active":null,k?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let j=typeof a=="function"?a(T):a;return J.createElement(yl,{...u,"aria-current":N,className:M,ref:c,style:j,to:s,viewTransition:o},typeof l=="function"?l(T):l)});YU.displayName="NavLink";var XU=J.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:a,method:s=lp,action:o,onSubmit:l,relative:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:p,...m},w)=>{let{unstable_useTransitions:g}=J.useContext(dr),_=n$(),E=r$(o,{relative:u}),x=s.toLowerCase()==="get"?"get":"post",b=typeof o=="string"&&HO.test(o),C=v=>{if(l&&l(v),v.defaultPrevented)return;v.preventDefault();let k=v.nativeEvent.submitter,T=(k==null?void 0:k.getAttribute("formmethod"))||s,N=()=>_(k||v.currentTarget,{fetcherKey:t,method:T,navigate:r,replace:i,state:a,relative:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:p});g&&r!==!1?J.startTransition(()=>N()):N()};return J.createElement("form",{ref:w,method:x,action:E,onSubmit:n?l:C,...m,"data-discover":!b&&e==="render"?"true":void 0})});XU.displayName="Form";function JU(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qO(e){let t=J.useContext(ou);return Bt(t,JU(e)),t}function ZU(e,{target:t,replace:r,state:n,preventScrollReset:i,relative:a,viewTransition:s,unstable_defaultShouldRevalidate:o,unstable_useTransitions:l}={}){let u=mo(),c=hr(),d=Uf(e,{relative:a});return J.useCallback(p=>{if(PU(p,t)){p.preventDefault();let m=r!==void 0?r:Gc(c)===Gc(d),w=()=>u(e,{replace:m,state:n,preventScrollReset:i,relative:a,viewTransition:s,unstable_defaultShouldRevalidate:o});l?J.startTransition(()=>w()):w()}},[c,u,d,r,n,t,e,i,a,s,o,l])}var e$=0,t$=()=>`__${String(++e$)}__`;function n$(){let{router:e}=qO("useSubmit"),{basename:t}=J.useContext(dr),r=bU(),n=e.fetch,i=e.navigate;return J.useCallback(async(a,s={})=>{let{action:o,method:l,encType:u,formData:c,body:d}=NU(a,t);if(s.navigate===!1){let p=s.fetcherKey||t$();await n(p,r,s.action||o,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:c,body:d,formMethod:s.method||l,formEncType:s.encType||u,flushSync:s.flushSync})}else await i(s.action||o,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:c,body:d,formMethod:s.method||l,formEncType:s.encType||u,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,i,t,r])}function r$(e,{relative:t}={}){let{basename:r}=J.useContext(dr),n=J.useContext(Si);Bt(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),a={...Uf(e||".",{relative:t})},s=hr();if(e==null){a.search=s.search;let o=new URLSearchParams(a.search),l=o.getAll("index");if(l.some(c=>c==="")){o.delete("index"),l.filter(d=>d).forEach(d=>o.append("index",d));let c=o.toString();a.search=c?`?${c}`:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Qi([r,a.pathname])),Gc(a)}function i$(e,{relative:t}={}){let r=J.useContext(MO);Bt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=qO("useViewTransitionState"),i=Uf(e,{relative:t});if(!r.isTransitioning)return!1;let a=Yi(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=Yi(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Rp(i.pathname,s)!=null||Rp(i.pathname,a)!=null}const GO="%[a-f0-9]{2}",qC=new RegExp("("+GO+")|([^%]+?)","gi"),GC=new RegExp("("+GO+")+","gi");function j_(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;const r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],j_(r),j_(n))}function a$(e){try{return decodeURIComponent(e)}catch{let t=e.match(qC)||[];for(let r=1;r<t.length;r++)e=j_(t,r).join(""),t=e.match(qC)||[];return e}}function o$(e){const t={"%FE%FF":"<22><>","%FF%FE":"<22><>"};let r=GC.exec(e);for(;r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{const i=a$(r[0]);i!==r[0]&&(t[r[0]]=i)}r=GC.exec(e)}t["%C2"]="<22>";const n=Object.keys(t);for(const i of n)e=e.replace(new RegExp(i,"g"),t[i]);return e}function s$(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return o$(e)}}function l$(e,t){const r={};if(Array.isArray(t))for(const n of t){const i=Object.getOwnPropertyDescriptor(e,n);i!=null&&i.enumerable&&Object.defineProperty(r,n,i)}else for(const n of Reflect.ownKeys(e)){const i=Object.getOwnPropertyDescriptor(e,n);if(i.enumerable){const a=e[n];t(n,a,e)&&Object.defineProperty(r,n,i)}}return r}function WO(e,t){if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||t==="")return[];const r=e.indexOf(t);return r===-1?[]:[e.slice(0,r),e.slice(r+t.length)]}const u$=e=>e==null,c$=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),B_=Symbol("encodeFragmentIdentifier");function f$(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[en(t,e),"[",i,"]"].join("")]:[...r,[en(t,e),"[",en(i,e),"]=",en(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[en(t,e),"[]"].join("")]:[...r,[en(t,e),"[]=",en(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[en(t,e),":list="].join("")]:[...r,[en(t,e),":list=",en(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[en(r,e),t,en(i,e)].join("")]:[[n,en(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,en(t,e)]:[...r,[en(t,e),"=",en(n,e)].join("")]}}function d$(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)]$/.exec(r),r=r.replace(/\[\d*]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[])$/.exec(r),r=r.replace(/\[]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[...i[r],n]};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[...i[r],n]};case"comma":case"separator":return(r,n,i)=>{const a=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!a&&qi(n,e).includes(e.arrayFormatSeparator);n=s?qi(n,e):n;const o=a||s?n.split(e.arrayFormatSeparator).map(l=>qi(l,e)):n===null?n:qi(n,e);i[r]=o};case"bracket-separator":return(r,n,i)=>{const a=/(\[])$/.test(r);if(r=r.replace(/\[]$/,""),!a){i[r]=n&&qi(n,e);return}const s=n===null?[]:qi(n,e).split(e.arrayFormatSeparator);if(i[r]===void 0){i[r]=s;return}i[r]=[...i[r],...s]};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[...[i[r]].flat(),n]}}}function VO(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function en(e,t){return t.encode?t.strict?c$(e):encodeURIComponent(e):e}function qi(e,t){return t.decode?s$(e):e}function QO(e){return Array.isArray(e)?e.sort():typeof e=="object"?QO(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function KO(e){const t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function h$(e){let t="";const r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function WC(e,t,r){return r==="string"&&typeof e=="string"?e:typeof r=="function"&&typeof e=="string"?r(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":r==="number"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""||t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):e}function X1(e){e=KO(e);const t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function J1(e,t){t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t},VO(t.arrayFormatSeparator);const r=d$(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(const i of e.split("&")){if(i==="")continue;const a=t.decode?i.replaceAll("+"," "):i;let[s,o]=WO(a,"=");s===void 0&&(s=a),o=o===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?o:qi(o,t),r(qi(s,t),o,n)}for(const[i,a]of Object.entries(n))if(typeof a=="object"&&a!==null&&t.types[i]!=="string")for(const[s,o]of Object.entries(a)){const l=t.types[i]?t.types[i].replace("[]",""):void 0;a[s]=WC(o,t,l)}else typeof a=="object"&&a!==null&&t.types[i]==="string"?n[i]=Object.values(a).join(t.arrayFormatSeparator):n[i]=WC(a,t,t.types[i]);return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,a)=>{const s=n[a];return i[a]=s&&typeof s=="object"&&!Array.isArray(s)?QO(s):s,i},Object.create(null))}function YO(e,t){if(!e)return"";t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t},VO(t.arrayFormatSeparator);const r=s=>t.skipNull&&u$(e[s])||t.skipEmptyString&&e[s]==="",n=f$(t),i={};for(const[s,o]of Object.entries(e))r(s)||(i[s]=o);const a=Object.keys(i);return t.sort!==!1&&a.sort(t.sort),a.map(s=>{const o=e[s];return o===void 0?"":o===null?en(s,t):Array.isArray(o)?o.length===0&&t.arrayFormat==="bracket-separator"?en(s,t)+"[]":o.reduce(n(s),[]).join("&"):en(s,t)+"="+en(o,t)}).filter(s=>s.length>0).join("&")}function XO(e,t){var i;t={decode:!0,...t};let[r,n]=WO(e,"#");return r===void 0&&(r=e),{url:((i=r==null?void 0:r.split("?"))==null?void 0:i[0])??"",query:J1(X1(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:qi(n,t)}:{}}}function JO(e,t){t={encode:!0,strict:!0,[B_]:!0,...t};const r=KO(e.url).split("?")[0]||"",n=X1(e.url),i={...J1(n,{sort:!1}),...e.query};let a=YO(i,t);a&&(a=`?${a}`);let s=h$(e.url);if(typeof e.fragmentIdentifier=="string"){const o=new URL(r);o.hash=e.fragmentIdentifier,s=t[B_]?o.hash:`#${e.fragmentIdentifier}`}return`${r}${a}${s}`}function ZO(e,t,r){r={parseFragmentIdentifier:!0,[B_]:!1,...r};const{url:n,query:i,fragmentIdentifier:a}=XO(e,r);return JO({url:n,query:l$(i,t),fragmentIdentifier:a},r)}function p$(e,t,r){const n=Array.isArray(t)?i=>!t.includes(i):(i,a)=>!t(i,a);return ZO(e,n,r)}const dn=Object.freeze(Object.defineProperty({__proto__:null,exclude:p$,extract:X1,parse:J1,parseUrl:XO,pick:ZO,stringify:YO,stringifyUrl:JO},Symbol.toStringTag,{value:"Module"}));function Wc(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Qv={exports:{}},xt={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var VC;function m$(){if(VC)return xt;VC=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(v){if(typeof v=="object"&&v!==null){var k=v.$$typeof;switch(k){case t:switch(v=v.type,v){case l:case u:case n:case a:case i:case d:return v;default:switch(v=v&&v.$$typeof,v){case o:case c:case w:case m:case s:return v;default:return k}}case r:return k}}}function C(v){return b(v)===u}return xt.AsyncMode=l,xt.ConcurrentMode=u,xt.ContextConsumer=o,xt.ContextProvider=s,xt.Element=t,xt.ForwardRef=c,xt.Fragment=n,xt.Lazy=w,xt.Memo=m,xt.Portal=r,xt.Profiler=a,xt.StrictMode=i,xt.Suspense=d,xt.isAsyncMode=function(v){return C(v)||b(v)===l},xt.isConcurrentMode=C,xt.isContextConsumer=function(v){return b(v)===o},xt.isContextProvider=function(v){return b(v)===s},xt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},xt.isForwardRef=function(v){return b(v)===c},xt.isFragment=function(v){return b(v)===n},xt.isLazy=function(v){return b(v)===w},xt.isMemo=function(v){return b(v)===m},xt.isPortal=function(v){return b(v)===r},xt.isProfiler=function(v){return b(v)===a},xt.isStrictMode=function(v){return b(v)===i},xt.isSuspense=function(v){return b(v)===d},xt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===u||v===a||v===i||v===d||v===p||typeof v=="object"&&v!==null&&(v.$$typeof===w||v.$$typeof===m||v.$$typeof===s||v.$$typeof===o||v.$$typeof===c||v.$$typeof===_||v.$$typeof===E||v.$$typeof===x||v.$$typeof===g)},xt.typeOf=b,xt}var QC;function g$(){return QC||(QC=1,Qv.exports=m$()),Qv.exports}var v$=g$();function z_(e,t){return z_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},z_(e,t)}function wt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,z_(e,t)}var Op=VR(),pi=function(t,r){if(typeof t=="function"){t(r);return}t!==null&&typeof t=="object"&&(t.current=r)},Np=function(t){return t!==null&&typeof t=="object"&&t.hasOwnProperty("current")},y$=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.prevNode=void 0,n}var r=t.prototype;return r.componentDidMount=function(){var i=Op.findDOMNode(this);this.prevNode=i,pi(this.props.innerRef,i)},r.componentDidUpdate=function(i){var a=Op.findDOMNode(this);this.prevNode!==a&&(this.prevNode=a,pi(this.props.innerRef,a)),i.innerRef!==this.props.innerRef&&pi(this.props.innerRef,a)},r.componentWillUnmount=function(){pi(this.props.innerRef,null),delete this.prevNode},r.render=function(){var i=this.props.children;return i},t}(J.Component),w$=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.currentNode=void 0,n.handleRefOverride=function(o){var l=n.props,u=l.children,c=l.innerRef;pi(u.ref,o),pi(c,o),n.currentNode=o},n}var r=t.prototype;return r.componentDidUpdate=function(i){i.innerRef!==this.props.innerRef&&pi(this.props.innerRef,this.currentNode)},r.componentWillUnmount=function(){delete this.currentNode},r.render=function(){var i=this.props.children;return J.cloneElement(i,{ref:this.handleRefOverride})},t}(J.Component),_$=["children","innerRef"],Jn=function(t){var r=t.children,n=t.innerRef,i=Wc(t,_$),a=J.Children.only(r),s=v$.isForwardRef(a)?w$:y$,o=a&&i&&Object.keys(i).length>0?J.cloneElement(a,i):a;return J.createElement(s,{innerRef:n},o)};function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ie.apply(null,arguments)}var Jt=Array.isArray,eN=typeof global=="object"&&global&&global.Object===Object&&global,b$=typeof self=="object"&&self&&self.Object===Object&&self,pr=eN||b$||Function("return this")(),_i=pr.Symbol,tN=Object.prototype,x$=tN.hasOwnProperty,E$=tN.toString,sc=_i?_i.toStringTag:void 0;function S$(e){var t=x$.call(e,sc),r=e[sc];try{e[sc]=void 0;var n=!0}catch{}var i=E$.call(e);return n&&(t?e[sc]=r:delete e[sc]),i}var C$=Object.prototype,k$=C$.toString;function A$(e){return k$.call(e)}var T$="[object Null]",I$="[object Undefined]",KC=_i?_i.toStringTag:void 0;function Ci(e){return e==null?e===void 0?I$:T$:KC&&KC in Object(e)?S$(e):A$(e)}function lr(e){return e!=null&&typeof e=="object"}var P$="[object Symbol]";function om(e){return typeof e=="symbol"||lr(e)&&Ci(e)==P$}var R$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,O$=/^\w*$/;function Z1(e,t){if(Jt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||om(e)?!0:O$.test(e)||!R$.test(e)||t!=null&&e in Object(t)}function Xi(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var N$="[object AsyncFunction]",M$="[object Function]",D$="[object GeneratorFunction]",F$="[object Proxy]";function wl(e){if(!Xi(e))return!1;var t=Ci(e);return t==M$||t==D$||t==N$||t==F$}var Kv=pr["__core-js_shared__"],YC=function(){var e=/[^.]+$/.exec(Kv&&Kv.keys&&Kv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function L$(e){return!!YC&&YC in e}var j$=Function.prototype,B$=j$.toString;function vs(e){if(e!=null){try{return B$.call(e)}catch{}try{return e+""}catch{}}return""}var z$=/[\\^$.*+?()[\]{}|]/g,U$=/^\[object .+?Constructor\]$/,$$=Function.prototype,H$=Object.prototype,q$=$$.toString,G$=H$.hasOwnProperty,W$=RegExp("^"+q$.call(G$).replace(z$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function V$(e){if(!Xi(e)||L$(e))return!1;var t=wl(e)?W$:U$;return t.test(vs(e))}function Q$(e,t){return e==null?void 0:e[t]}function ys(e,t){var r=Q$(e,t);return V$(r)?r:void 0}var Vc=ys(Object,"create");function K$(){this.__data__=Vc?Vc(null):{},this.size=0}function Y$(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var X$="__lodash_hash_undefined__",J$=Object.prototype,Z$=J$.hasOwnProperty;function e5(e){var t=this.__data__;if(Vc){var r=t[e];return r===X$?void 0:r}return Z$.call(t,e)?t[e]:void 0}var t5=Object.prototype,n5=t5.hasOwnProperty;function r5(e){var t=this.__data__;return Vc?t[e]!==void 0:n5.call(t,e)}var i5="__lodash_hash_undefined__";function a5(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Vc&&t===void 0?i5:t,this}function Zo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Zo.prototype.clear=K$;Zo.prototype.delete=Y$;Zo.prototype.get=e5;Zo.prototype.has=r5;Zo.prototype.set=a5;function o5(){this.__data__=[],this.size=0}function eb(e,t){return e===t||e!==e&&t!==t}function sm(e,t){for(var r=e.length;r--;)if(eb(e[r][0],t))return r;return-1}var s5=Array.prototype,l5=s5.splice;function u5(e){var t=this.__data__,r=sm(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():l5.call(t,r,1),--this.size,!0}function c5(e){var t=this.__data__,r=sm(t,e);return r<0?void 0:t[r][1]}function f5(e){return sm(this.__data__,e)>-1}function d5(e,t){var r=this.__data__,n=sm(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function la(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}la.prototype.clear=o5;la.prototype.delete=u5;la.prototype.get=c5;la.prototype.has=f5;la.prototype.set=d5;var Qc=ys(pr,"Map");function h5(){this.size=0,this.__data__={hash:new Zo,map:new(Qc||la),string:new Zo}}function p5(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function lm(e,t){var r=e.__data__;return p5(t)?r[typeof t=="string"?"string":"hash"]:r.map}function m5(e){var t=lm(this,e).delete(e);return this.size-=t?1:0,t}function g5(e){return lm(this,e).get(e)}function v5(e){return lm(this,e).has(e)}function y5(e,t){var r=lm(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function ua(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ua.prototype.clear=h5;ua.prototype.delete=m5;ua.prototype.get=g5;ua.prototype.has=v5;ua.prototype.set=y5;var w5="Expected a function";function um(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(w5);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=e.apply(this,n);return r.cache=a.set(i,s)||a,s};return r.cache=new(um.Cache||ua),r}um.Cache=ua;var _5=500;function b5(e){var t=um(e,function(n){return r.size===_5&&r.clear(),n}),r=t.cache;return t}var x5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E5=/\\(\\)?/g,S5=b5(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(x5,function(r,n,i,a){t.push(i?a.replace(E5,"$1"):n||r)}),t});function tb(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var XC=_i?_i.prototype:void 0,JC=XC?XC.toString:void 0;function nN(e){if(typeof e=="string")return e;if(Jt(e))return tb(e,nN)+"";if(om(e))return JC?JC.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function $f(e){return e==null?"":nN(e)}function Hf(e,t){return Jt(e)?e:Z1(e,t)?[e]:S5($f(e))}var C5="[object Arguments]";function ZC(e){return lr(e)&&Ci(e)==C5}var rN=Object.prototype,k5=rN.hasOwnProperty,A5=rN.propertyIsEnumerable,cm=ZC(function(){return arguments}())?ZC:function(e){return lr(e)&&k5.call(e,"callee")&&!A5.call(e,"callee")},T5=9007199254740991,I5=/^(?:0|[1-9]\d*)$/;function fm(e,t){var r=typeof e;return t=t??T5,!!t&&(r=="number"||r!="symbol"&&I5.test(e))&&e>-1&&e%1==0&&e<t}var P5=9007199254740991;function nb(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=P5}function lu(e){if(typeof e=="string"||om(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function R5(e,t,r){t=Hf(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var s=lu(t[n]);if(!(a=e!=null&&r(e,s)))break;e=e[s]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&nb(i)&&fm(s,i)&&(Jt(e)||cm(e)))}function dm(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function O5(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function hm(e,t){t=Hf(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[lu(t[r++])];return r&&r==n?e:void 0}function rb(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}function N5(e,t){return t.length<2?e:hm(e,rb(t,0,-1))}function M5(e,t,r){t=Hf(t,e),e=N5(e,t);var n=e==null?e:e[lu(O5(t))];return n==null?void 0:dm(n,e,r)}function uu(e){return e}var ek=Math.max;function iN(e,t,r){return t=ek(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=ek(n.length-t,0),s=Array(a);++i<a;)s[i]=n[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=n[i];return o[t]=r(s),dm(e,this,o)}}function aN(e){return function(){return e}}var Mp=function(){try{var e=ys(Object,"defineProperty");return e({},"",{}),e}catch{}}(),D5=Mp?function(e,t){return Mp(e,"toString",{configurable:!0,enumerable:!1,value:aN(t),writable:!0})}:uu,F5=800,L5=16,j5=Date.now;function oN(e){var t=0,r=0;return function(){var n=j5(),i=L5-(n-r);if(r=n,i>0){if(++t>=F5)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var ib=oN(D5);function qf(e,t){return ib(iN(e,t,uu),e+"")}var Te=qf(M5);function B5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gf(e){return e===void 0}var z5=/\s/;function U5(e){for(var t=e.length;t--&&z5.test(e.charAt(t)););return t}var $5=/^\s+/;function H5(e){return e&&e.slice(0,U5(e)+1).replace($5,"")}var tk=NaN,q5=/^[-+]0x[0-9a-f]+$/i,G5=/^0b[01]+$/i,W5=/^0o[0-7]+$/i,V5=parseInt;function sN(e){if(typeof e=="number")return e;if(om(e))return tk;if(Xi(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xi(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=H5(e);var r=G5.test(e);return r||W5.test(e)?V5(e.slice(2),r?2:8):q5.test(e)?tk:+e}var nk=1/0,Q5=17976931348623157e292;function U_(e){if(!e)return e===0?e:0;if(e=sN(e),e===nk||e===-nk){var t=e<0?-1:1;return t*Q5}return e===e?e:0}function Kc(e){var t=U_(e),r=t%1;return t===t?r?t-r:t:0}function lN(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var s=e[r];t(s,r,e)&&(a[i++]=s)}return a}function K5(e){return function(t,r,n){for(var i=-1,a=Object(t),s=n(t),o=s.length;o--;){var l=s[++i];if(r(a[l],l,a)===!1)break}return t}}var Y5=K5();function X5(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function J5(){return!1}var uN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,rk=uN&&typeof module=="object"&&module&&!module.nodeType&&module,Z5=rk&&rk.exports===uN,ik=Z5?pr.Buffer:void 0,eH=ik?ik.isBuffer:void 0,Dp=eH||J5,tH="[object Arguments]",nH="[object Array]",rH="[object Boolean]",iH="[object Date]",aH="[object Error]",oH="[object Function]",sH="[object Map]",lH="[object Number]",uH="[object Object]",cH="[object RegExp]",fH="[object Set]",dH="[object String]",hH="[object WeakMap]",pH="[object ArrayBuffer]",mH="[object DataView]",gH="[object Float32Array]",vH="[object Float64Array]",yH="[object Int8Array]",wH="[object Int16Array]",_H="[object Int32Array]",bH="[object Uint8Array]",xH="[object Uint8ClampedArray]",EH="[object Uint16Array]",SH="[object Uint32Array]",Dt={};Dt[gH]=Dt[vH]=Dt[yH]=Dt[wH]=Dt[_H]=Dt[bH]=Dt[xH]=Dt[EH]=Dt[SH]=!0;Dt[tH]=Dt[nH]=Dt[pH]=Dt[rH]=Dt[mH]=Dt[iH]=Dt[aH]=Dt[oH]=Dt[sH]=Dt[lH]=Dt[uH]=Dt[cH]=Dt[fH]=Dt[dH]=Dt[hH]=!1;function CH(e){return lr(e)&&nb(e.length)&&!!Dt[Ci(e)]}function kH(e){return function(t){return e(t)}}var cN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jc=cN&&typeof module=="object"&&module&&!module.nodeType&&module,AH=jc&&jc.exports===cN,Yv=AH&&eN.process,ak=function(){try{var e=jc&&jc.require&&jc.require("util").types;return e||Yv&&Yv.binding&&Yv.binding("util")}catch{}}(),ok=ak&&ak.isTypedArray,ab=ok?kH(ok):CH,TH=Object.prototype,IH=TH.hasOwnProperty;function PH(e,t){var r=Jt(e),n=!r&&cm(e),i=!r&&!n&&Dp(e),a=!r&&!n&&!i&&ab(e),s=r||n||i||a,o=s?X5(e.length,String):[],l=o.length;for(var u in e)IH.call(e,u)&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||fm(u,l)))&&o.push(u);return o}var RH=Object.prototype;function fN(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||RH;return e===r}function dN(e,t){return function(r){return e(t(r))}}var OH=dN(Object.keys,Object),NH=Object.prototype,MH=NH.hasOwnProperty;function ob(e){if(!fN(e))return OH(e);var t=[];for(var r in Object(e))MH.call(e,r)&&r!="constructor"&&t.push(r);return t}function go(e){return e!=null&&nb(e.length)&&!wl(e)}function cu(e){return go(e)?PH(e):ob(e)}function hN(e,t){return e&&Y5(e,t,cu)}function DH(e,t){return function(r,n){if(r==null)return r;if(!go(r))return e(r,n);for(var i=r.length,a=-1,s=Object(r);++a<i&&n(s[a],a,s)!==!1;);return r}}var fu=DH(hN);function FH(e,t){var r=[];return fu(e,function(n,i,a){t(n,i,a)&&r.push(n)}),r}function LH(){this.__data__=new la,this.size=0}function jH(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function BH(e){return this.__data__.get(e)}function zH(e){return this.__data__.has(e)}var UH=200;function $H(e,t){var r=this.__data__;if(r instanceof la){var n=r.__data__;if(!Qc||n.length<UH-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ua(n)}return r.set(e,t),this.size=r.size,this}function Ki(e){var t=this.__data__=new la(e);this.size=t.size}Ki.prototype.clear=LH;Ki.prototype.delete=jH;Ki.prototype.get=BH;Ki.prototype.has=zH;Ki.prototype.set=$H;var HH="__lodash_hash_undefined__";function qH(e){return this.__data__.set(e,HH),this}function GH(e){return this.__data__.has(e)}function _l(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ua;++t<r;)this.add(e[t])}_l.prototype.add=_l.prototype.push=qH;_l.prototype.has=GH;function pN(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function sb(e,t){return e.has(t)}var WH=1,VH=2;function mN(e,t,r,n,i,a){var s=r&WH,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,m=r&VH?new _l:void 0;for(a.set(e,t),a.set(t,e);++d<o;){var w=e[d],g=t[d];if(n)var _=s?n(g,w,d,t,e,a):n(w,g,d,e,t,a);if(_!==void 0){if(_)continue;p=!1;break}if(m){if(!pN(t,function(E,x){if(!sb(m,x)&&(w===E||i(w,E,r,n,a)))return m.push(x)})){p=!1;break}}else if(!(w===g||i(w,g,r,n,a))){p=!1;break}}return a.delete(e),a.delete(t),p}var sk=pr.Uint8Array;function QH(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function lb(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var KH=1,YH=2,XH="[object Boolean]",JH="[object Date]",ZH="[object Error]",e6="[object Map]",t6="[object Number]",n6="[object RegExp]",r6="[object Set]",i6="[object String]",a6="[object Symbol]",o6="[object ArrayBuffer]",s6="[object DataView]",lk=_i?_i.prototype:void 0,Xv=lk?lk.valueOf:void 0;function l6(e,t,r,n,i,a,s){switch(r){case s6:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case o6:return!(e.byteLength!=t.byteLength||!a(new sk(e),new sk(t)));case XH:case JH:case t6:return eb(+e,+t);case ZH:return e.name==t.name&&e.message==t.message;case n6:case i6:return e==t+"";case e6:var o=QH;case r6:var l=n&KH;if(o||(o=lb),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;n|=YH,s.set(e,t);var c=mN(o(e),o(t),n,i,a,s);return s.delete(e),c;case a6:if(Xv)return Xv.call(e)==Xv.call(t)}return!1}function gN(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function u6(e,t,r){var n=t(e);return Jt(e)?n:gN(n,r(e))}function c6(){return[]}var f6=Object.prototype,d6=f6.propertyIsEnumerable,uk=Object.getOwnPropertySymbols,h6=uk?function(e){return e==null?[]:(e=Object(e),lN(uk(e),function(t){return d6.call(e,t)}))}:c6;function ck(e){return u6(e,cu,h6)}var p6=1,m6=Object.prototype,g6=m6.hasOwnProperty;function v6(e,t,r,n,i,a){var s=r&p6,o=ck(e),l=o.length,u=ck(t),c=u.length;if(l!=c&&!s)return!1;for(var d=l;d--;){var p=o[d];if(!(s?p in t:g6.call(t,p)))return!1}var m=a.get(e),w=a.get(t);if(m&&w)return m==t&&w==e;var g=!0;a.set(e,t),a.set(t,e);for(var _=s;++d<l;){p=o[d];var E=e[p],x=t[p];if(n)var b=s?n(x,E,p,t,e,a):n(E,x,p,e,t,a);if(!(b===void 0?E===x||i(E,x,r,n,a):b)){g=!1;break}_||(_=p=="constructor")}if(g&&!_){var C=e.constructor,v=t.constructor;C!=v&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof v=="function"&&v instanceof v)&&(g=!1)}return a.delete(e),a.delete(t),g}var $_=ys(pr,"DataView"),H_=ys(pr,"Promise"),ul=ys(pr,"Set"),Yc=ys(pr,"WeakMap"),fk="[object Map]",y6="[object Object]",dk="[object Promise]",hk="[object Set]",pk="[object WeakMap]",mk="[object DataView]",w6=vs($_),_6=vs(Qc),b6=vs(H_),x6=vs(ul),E6=vs(Yc),li=Ci;($_&&li(new $_(new ArrayBuffer(1)))!=mk||Qc&&li(new Qc)!=fk||H_&&li(H_.resolve())!=dk||ul&&li(new ul)!=hk||Yc&&li(new Yc)!=pk)&&(li=function(e){var t=Ci(e),r=t==y6?e.constructor:void 0,n=r?vs(r):"";if(n)switch(n){case w6:return mk;case _6:return fk;case b6:return dk;case x6:return hk;case E6:return pk}return t});var S6=1,gk="[object Arguments]",vk="[object Array]",Ch="[object Object]",C6=Object.prototype,yk=C6.hasOwnProperty;function k6(e,t,r,n,i,a){var s=Jt(e),o=Jt(t),l=s?vk:li(e),u=o?vk:li(t);l=l==gk?Ch:l,u=u==gk?Ch:u;var c=l==Ch,d=u==Ch,p=l==u;if(p&&Dp(e)){if(!Dp(t))return!1;s=!0,c=!1}if(p&&!c)return a||(a=new Ki),s||ab(e)?mN(e,t,r,n,i,a):l6(e,t,l,r,n,i,a);if(!(r&S6)){var m=c&&yk.call(e,"__wrapped__"),w=d&&yk.call(t,"__wrapped__");if(m||w){var g=m?e.value():e,_=w?t.value():t;return a||(a=new Ki),i(g,_,r,n,a)}}return p?(a||(a=new Ki),v6(e,t,r,n,i,a)):!1}function pm(e,t,r,n,i){return e===t?!0:e==null||t==null||!lr(e)&&!lr(t)?e!==e&&t!==t:k6(e,t,r,n,pm,i)}var A6=1,T6=2;function I6(e,t,r,n){var i=r.length,a=i;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var o=s[0],l=e[o],u=s[1];if(s[2]){if(l===void 0&&!(o in e))return!1}else{var c=new Ki,d;if(!(d===void 0?pm(u,l,A6|T6,n,c):d))return!1}}return!0}function vN(e){return e===e&&!Xi(e)}function P6(e){for(var t=cu(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,vN(i)]}return t}function yN(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function R6(e){var t=P6(e);return t.length==1&&t[0][2]?yN(t[0][0],t[0][1]):function(r){return r===e||I6(r,e,t)}}function Sr(e,t,r){var n=e==null?void 0:hm(e,t);return n===void 0?r:n}function O6(e,t){return e!=null&&t in Object(e)}function wN(e,t){return e!=null&&R5(e,t,O6)}var N6=1,M6=2;function D6(e,t){return Z1(e)&&vN(t)?yN(lu(e),t):function(r){var n=Sr(r,e);return n===void 0&&n===t?wN(r,e):pm(t,n,N6|M6)}}function _N(e){return function(t){return t==null?void 0:t[e]}}function F6(e){return function(t){return hm(t,e)}}function L6(e){return Z1(e)?_N(lu(e)):F6(e)}function ws(e){return typeof e=="function"?e:e==null?uu:typeof e=="object"?Jt(e)?D6(e[0],e[1]):R6(e):L6(e)}function wk(e,t){var r=Jt(e)?lN:FH;return r(e,ws(t))}var j6="[object Map]",B6="[object Set]",z6=Object.prototype,U6=z6.hasOwnProperty;function sl(e){if(e==null)return!0;if(go(e)&&(Jt(e)||typeof e=="string"||typeof e.splice=="function"||Dp(e)||ab(e)||cm(e)))return!e.length;var t=li(e);if(t==j6||t==B6)return!e.size;if(fN(e))return!ob(e).length;for(var r in e)if(U6.call(e,r))return!1;return!0}function bN(e,t,r,n){for(var i=e.length,a=r+-1;++a<i;)if(t(e[a],a,e))return a;return-1}function $6(e){return e!==e}function H6(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function xN(e,t,r){return t===t?H6(e,t,r):bN(e,$6,r)}function ub(e,t){var r=e==null?0:e.length;return!!r&&xN(e,t,0)>-1}function Fp(e){return lr(e)&&go(e)}function EN(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}function q6(e){return typeof e=="function"?e:uu}function G6(e,t){var r=Jt(e)?EN:fu;return r(e,q6(t))}var W6=function(t){return"default"+(t[0].toUpperCase()+t.slice(1))},V6=function(t,r,n,i){var a=r[t];if(a!==void 0)return a;{var s=r[W6(t)];if(s!==void 0)return s;if(n){var o=n[t];if(o!==void 0)return o}}if(t==="checked")return!1;if(t==="value")return r.multiple?[]:""},_s=function(e){wt(t,e);function t(){for(var r,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];r=e.call.apply(e,[this].concat(i))||this;var s=r.constructor,o=s.autoControlledProps,l=s.getAutoControlledStateFromProps,u=Te(B5(r),"getInitialAutoControlledState",r.props)||{},c=o.reduce(function(d,p){return d[p]=V6(p,r.props,u),d},{});return r.state=ie({},u,c,{autoControlledProps:o,getAutoControlledStateFromProps:l}),r}return t.getDerivedStateFromProps=function(n,i){var a=i.autoControlledProps,s=i.getAutoControlledStateFromProps,o=a.reduce(function(u,c){var d=!Gf(n[c]);return d&&(u[c]=n[c]),u},{});if(s){var l=s(n,ie({},i,o),i);return ie({},o,l)}return o},t.getAutoControlledStateFromProps=function(){return null},t}(te.Component);function Q6(e){return function(t,r,n){var i=Object(t);if(!go(t)){var a=ws(r);t=cu(t),r=function(o){return a(i[o],o,i)}}var s=e(t,r,n);return s>-1?i[a?t[s]:s]:void 0}}var K6=Math.max;function q_(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:Kc(r);return i<0&&(i=K6(n+i,0)),bN(e,ws(t),i)}var SN=Q6(q_);function Y6(e,t){var r;return fu(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}function Bc(e,t,r){var n=Jt(e)?pN:Y6;return n(e,ws(t))}var X6=function(t,r){return Bc(J.Children.toArray(t),{type:r})},Pe=function(t){return t==null||Array.isArray(t)&&t.length===0},J6={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 _k(e){var t=typeof e;return t==="string"||t==="number"?J6[e]||e:""}var ee=function(t,r){return t&&r},pn=function(t,r){return t&&t!==!0&&t+" "+r},Rt=function(t,r){return t&&(t===!0?r:t+" "+r)},Lp=function(t,r){return!t||t===!0?null:t.replace("large screen","large-screen").replace(/ vertically/g,"-vertically").split(" ").map(function(n){return n.replace("-"," ")+" "+r}).join(" ")},Yr=function(t){return t==="justified"?"justified":pn(t,"aligned")},ca=function(t){return pn(t,"aligned")},Gn=function(t,r,n){if(r===void 0&&(r=""),n===void 0&&(n=!1),n&&t==="equal")return"equal width";var i=typeof t;return(i==="string"||i==="number")&&r?_k(t)+" "+r:_k(t)},Z6=200;function CN(e,t,r,n){var i=-1,a=ub,s=!0,o=e.length,l=[],u=t.length;if(!o)return l;t.length>=Z6&&(a=sb,s=!1,t=new _l(t));e:for(;++i<o;){var c=e[i],d=c;if(c=c!==0?c:0,s&&d===d){for(var p=u;p--;)if(t[p]===d)continue e;l.push(c)}else a(t,d,n)||l.push(c)}return l}var bk=_i?_i.isConcatSpreadable:void 0;function e8(e){return Jt(e)||cm(e)||!!(bk&&e&&e[bk])}function cb(e,t,r,n,i){var a=-1,s=e.length;for(r||(r=e8),i||(i=[]);++a<s;){var o=e[a];r(o)?gN(i,o):n||(i[i.length]=o)}return i}var xk=qf(function(e,t){return Fp(e)?CN(e,cb(t,1,Fp,!0)):[]});function t8(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:rb(e,t,r)}function n8(e){return e.split("")}var r8="\\ud800-\\udfff",i8="\\u0300-\\u036f",a8="\\ufe20-\\ufe2f",o8="\\u20d0-\\u20ff",s8=i8+a8+o8,l8="\\ufe0e\\ufe0f",u8="\\u200d",c8=RegExp("["+u8+r8+s8+l8+"]");function fb(e){return c8.test(e)}var kN="\\ud800-\\udfff",f8="\\u0300-\\u036f",d8="\\ufe20-\\ufe2f",h8="\\u20d0-\\u20ff",p8=f8+d8+h8,m8="\\ufe0e\\ufe0f",g8="["+kN+"]",G_="["+p8+"]",W_="\\ud83c[\\udffb-\\udfff]",v8="(?:"+G_+"|"+W_+")",AN="[^"+kN+"]",TN="(?:\\ud83c[\\udde6-\\uddff]){2}",IN="[\\ud800-\\udbff][\\udc00-\\udfff]",y8="\\u200d",PN=v8+"?",RN="["+m8+"]?",w8="(?:"+y8+"(?:"+[AN,TN,IN].join("|")+")"+RN+PN+")*",_8=RN+PN+w8,b8="(?:"+[AN+G_+"?",G_,TN,IN,g8].join("|")+")",x8=RegExp(W_+"(?="+W_+")|"+b8+_8,"g");function E8(e){return e.match(x8)||[]}function S8(e){return fb(e)?E8(e):n8(e)}function C8(e,t,r){t=="__proto__"&&Mp?Mp(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var k8=Object.prototype,A8=k8.hasOwnProperty;function T8(e,t,r){var n=e[t];(!(A8.call(e,t)&&eb(n,r))||r===void 0&&!(t in e))&&C8(e,t,r)}function ON(e,t,r,n){if(!Xi(e))return e;t=Hf(t,e);for(var i=-1,a=t.length,s=a-1,o=e;o!=null&&++i<a;){var l=lu(t[i]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=s){var c=o[l];u=void 0,u===void 0&&(u=Xi(c)?c:fm(t[i+1])?[]:{})}T8(o,l,u),o=o[l]}return e}function I8(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var s=t[n],o=hm(e,s);r(o,s)&&ON(a,Hf(s,e),o)}return a}function P8(e,t){return I8(e,t,function(r,n){return wN(e,n)})}function R8(e){var t=e==null?0:e.length;return t?cb(e):[]}function O8(e){return ib(iN(e,void 0,R8),e+"")}var db=O8(function(e,t){return e==null?{}:P8(e,t)}),N8=dN(Object.getPrototypeOf,Object),M8="[object Object]",D8=Function.prototype,F8=Object.prototype,NN=D8.toString,L8=F8.hasOwnProperty,j8=NN.call(Object);function Wf(e){if(!lr(e)||Ci(e)!=M8)return!1;var t=N8(e);if(t===null)return!0;var r=L8.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&NN.call(r)==j8}function ut(e){return e==null}function B8(e,t){var r=-1,n=go(e)?Array(e.length):[];return fu(e,function(i,a,s){n[++r]=t(i,a,s)}),n}function Mn(e,t){var r=Jt(e)?tb:B8;return r(e,ws(t))}var kh={exports:{}},lc={},Jv={exports:{}};/*!
Copyright (c) 2015 Jed Watson.
Based on code that is Copyright 2013-2015, Facebook, Inc.
All rights reserved.
*/var Ek;function z8(){return Ek||(Ek=1,function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),r={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=r:window.ExecutionEnvironment=r})()}(Jv)),Jv.exports}var Sk;function U8(){if(Sk)return lc;Sk=1,Object.defineProperty(lc,"__esModule",{value:!0});var e=z8(),t=ho();function r(k){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T})(k)}function n(k,T){if(!(k instanceof T))throw new TypeError("Cannot call a class as a function")}function i(k,T){for(var N=0;N<T.length;N++){var M=T[N];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(k,M.key,M)}}function a(k,T,N){return T&&i(k.prototype,T),k}function s(k,T,N){return T in k?Object.defineProperty(k,T,{value:N,enumerable:!0,configurable:!0,writable:!0}):k[T]=N,k}function o(k,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(T&&T.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),T&&u(k,T)}function l(k){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(T){return T.__proto__||Object.getPrototypeOf(T)})(k)}function u(k,T){return(u=Object.setPrototypeOf||function(N,M){return N.__proto__=M,N})(k,T)}function c(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function d(k,T){return!T||typeof T!="object"&&typeof T!="function"?c(k):T}var p=function(){function k(T){n(this,k),s(this,"handlers",void 0),this.handlers=T.slice(0)}return a(k,[{key:"addHandlers",value:function(T){for(var N=this.handlers.slice(0),M=T.length,j=0;j<M;j+=1)N.push(T[j]);return new k(N)}},{key:"dispatchEvent",value:function(T,N){var M=this.handlers.length-1;if(N){for(var j=M;j>=0;j-=1)this.handlers[j].called||(this.handlers[j].called=!0,this.handlers[j](T));for(var D=M;D>=0;D-=1)this.handlers[D].called=!1}else(0,this.handlers[M])(T)}},{key:"hasHandlers",value:function(){return this.handlers.length>0}},{key:"removeHandlers",value:function(T){for(var N=[],M=this.handlers.length,j=0;j<M;j+=1){var D=this.handlers[j];T.indexOf(D)===-1&&N.push(D)}return new k(N)}}]),k}();function m(k){var T=new Map;return k.forEach(function(N,M){T.set(M,N)}),T}function w(k){return Array.isArray(k)?k:[k]}var g=function(k){return k!==null&&r(k)==="object"&&k.hasOwnProperty("current")};function _(k){return k==="document"?document:k==="window"?window:g(k)?k.current||document:k||document}var E=function(){function k(T,N){n(this,k),s(this,"handlerSets",void 0),s(this,"poolName",void 0),this.handlerSets=N,this.poolName=T}return a(k,[{key:"addHandlers",value:function(T,N){var M=m(this.handlerSets);if(M.has(T)){var j=M.get(T);M.set(T,j.addHandlers(N))}else M.set(T,new p(N));return new k(this.poolName,M)}},{key:"dispatchEvent",value:function(T,N){var M=this.handlerSets.get(T),j=this.poolName==="default";M&&M.dispatchEvent(N,j)}},{key:"hasHandlers",value:function(T){if(!T)return this.handlerSets.size>0;var N=this.handlerSets.get(T);return!!N&&N.hasHandlers()}},{key:"removeHandlers",value:function(T,N){var M=m(this.handlerSets);if(!M.has(T))return new k(this.poolName,M);var j=M.get(T).removeHandlers(N);return j.hasHandlers()?M.set(T,j):M.delete(T),new k(this.poolName,M)}}]),k}();s(E,"createByType",function(k,T,N){var M=new Map;return M.set(T,new p(N)),new E(k,M)});var x=function(){function k(T){var N=this;n(this,k),s(this,"handlers",new Map),s(this,"pools",new Map),s(this,"target",void 0),s(this,"createEmitter",function(M){return function(j){N.pools.forEach(function(D){D.dispatchEvent(M,j)})}}),this.target=T}return a(k,[{key:"addHandlers",value:function(T,N,M){if(this.pools.has(T)){var j=this.pools.get(T);this.pools.set(T,j.addHandlers(N,M))}else this.pools.set(T,E.createByType(T,N,M));this.handlers.has(N)||this.addTargetHandler(N)}},{key:"hasHandlers",value:function(){return this.handlers.size>0}},{key:"removeHandlers",value:function(T,N,M){if(this.pools.has(T)){var j=this.pools.get(T).removeHandlers(N,M);j.hasHandlers()?this.pools.set(T,j):this.pools.delete(T);var D=!1;this.pools.forEach(function($){return D=D||$.hasHandlers(N)}),D||this.removeTargetHandler(N)}}},{key:"addTargetHandler",value:function(T){var N=this.createEmitter(T);this.handlers.set(T,N),this.target.addEventListener(T,N,!0)}},{key:"removeTargetHandler",value:function(T){this.handlers.has(T)&&(this.target.removeEventListener(T,this.handlers.get(T),!0),this.handlers.delete(T))}}]),k}(),b=function(){function k(){var T=this;n(this,k),s(this,"targets",new Map),s(this,"getTarget",function(N){var M=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],j=_(N);if(T.targets.has(j))return T.targets.get(j);if(!M)return null;var D=new x(j);return T.targets.set(j,D),D}),s(this,"removeTarget",function(N){T.targets.delete(_(N))})}return a(k,[{key:"sub",value:function(T,N){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(e.canUseDOM){var j=M.target,D=j===void 0?document:j,$=M.pool,X=$===void 0?"default":$;this.getTarget(D).addHandlers(X,T,w(N))}}},{key:"unsub",value:function(T,N){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(e.canUseDOM){var j=M.target,D=j===void 0?document:j,$=M.pool,X=$===void 0?"default":$,W=this.getTarget(D,!1);W&&(W.removeHandlers(X,T,w(N)),W.hasHandlers()||this.removeTarget(D))}}}]),k}(),C=new b,v=function(k){function T(){return n(this,T),d(this,l(T).apply(this,arguments))}return o(T,t.PureComponent),a(T,[{key:"componentDidMount",value:function(){this.subscribe(this.props)}},{key:"componentDidUpdate",value:function(N){this.unsubscribe(N),this.subscribe(this.props)}},{key:"componentWillUnmount",value:function(){this.unsubscribe(this.props)}},{key:"subscribe",value:function(N){var M=N.name,j=N.on,D=N.pool,$=N.target;C.sub(M,j,{pool:D,target:$})}},{key:"unsubscribe",value:function(N){var M=N.name,j=N.on,D=N.pool,$=N.target;C.unsub(M,j,{pool:D,target:$})}},{key:"render",value:function(){return null}}]),T}();return s(v,"defaultProps",{pool:"default",target:"document"}),v.propTypes={},lc.instance=C,lc.default=v,lc}var Ck;function $8(){if(Ck)return kh.exports;Ck=1;var e;return e=U8(),kh.exports=e.default,kh.exports.instance=e.instance,kh.exports}var MN=$8();const Gi=yn(MN),Rn=MN.instance;function hb(){}var H8=1/0,q8=ul&&1/lb(new ul([,-0]))[1]==H8?function(e){return new ul(e)}:hb,G8=200;function DN(e,t,r){var n=-1,i=ub,a=e.length,s=!0,o=[],l=o;if(a>=G8){var u=q8(e);if(u)return lb(u);s=!1,i=sb,l=new _l}else l=o;e:for(;++n<a;){var c=e[n],d=c;if(c=c!==0?c:0,s&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;o.push(c)}else i(l,d,r)||(l!==o&&l.push(d),o.push(c))}return o}function W8(e){return e&&e.length?DN(e):[]}var V8="[object Number]";function Q8(e){return typeof e=="number"||lr(e)&&Ci(e)==V8}var K8="[object String]";function pb(e){return typeof e=="string"||!Jt(e)&&lr(e)&&Ci(e)==K8}var Y8="[object Boolean]";function X8(e){return e===!0||e===!1||lr(e)&&Ci(e)==Y8}function FN(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=FN(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function be(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=FN(e))&&(n&&(n+=" "),n+=t);return n}function cl(e,t,r,n){if(n===void 0&&(n={}),typeof e!="function"&&typeof e!="string")throw new Error("createShorthand() Component must be a string or function.");if(ut(r)||X8(r))return null;var i=pb(r),a=Q8(r),s=wl(r),o=J.isValidElement(r),l=Wf(r),u=i||a||Jt(r);if(!s&&!o&&!l&&!u)return null;var c=n,d=c.defaultProps,p=d===void 0?{}:d,m=o&&r.props||l&&r||u&&t(r),w=n,g=w.overrideProps,_=g===void 0?{}:g;_=wl(_)?_(ie({},p,m)):_;var E=ie({},p,m,_);if(p.className||_.className||m.className){var x=be(p.className,_.className,m.className);E.className=W8(x.split(" ")).join(" ")}if((p.style||_.style||m.style)&&(E.style=ie({},p.style,m.style,_.style)),ut(E.key)){var b=E.childKey,C=n,v=C.autoGenerateKey,k=v===void 0?!0:v;ut(b)?k&&(i||a)&&(E.key=r):(E.key=typeof b=="function"?b(E):b,delete E.childKey)}if(o)return J.cloneElement(r,E);if(typeof E.children=="function")return E.children(e,ie({},E,{children:void 0}));if(u||l)return J.createElement(e,E);if(s)return r(e,E,E.children)}function nt(e,t){if(typeof e!="function"&&typeof e!="string")throw new Error("createShorthandFactory() Component must be a string or function.");return function(r,n){return cl(e,t,r,n)}}var J8=nt("div",function(e){return{children:e}}),Z8=nt("img",function(e){return{src:e}}),eq=nt("input",function(e){return{type:e}}),V_=nt("label",function(e){return{children:e}}),tq=nt("p",function(e){return{children:e}}),xe=function(t,r){var n=t.handledProps,i=n===void 0?[]:n;return Object.keys(r).reduce(function(a,s){return s==="childKey"||i.indexOf(s)===-1&&(a[s]=r[s]),a},{})};function Ce(e,t,r){var n=e.defaultProps,i=n===void 0?{}:n;if(t.as&&t.as!==i.as)return t.as;if(r){var a=r();if(a)return a}return t.href?"a":i.as||"div"}function nq(e,t){return tb(t,function(r){return e[r]})}function rq(e){return e==null?[]:nq(e,cu(e))}var iq=Math.max;function mi(e,t,r,n){e=go(e)?e:rq(e),r=r?Kc(r):0;var i=e.length;return r<0&&(r=iq(i+r,0)),pb(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&xN(e,t,r)>-1}var mb=["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"],aq=["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"],oq=[].concat(mb,aq),sq=["alt","height","src","srcSet","width","loading"],mm=function(t,r){r===void 0&&(r={});var n=r,i=n.htmlProps,a=i===void 0?oq:i,s=n.includeAria,o=s===void 0?!0:s,l={},u={};return G6(t,function(c,d){var p=o&&(/^aria-.*$/.test(d)||d==="role"),m=mi(a,d)||p?l:u;m[d]=c}),[l,u]},lq=typeof document=="object"&&document!==null,uq=typeof window=="object"&&window!==null&&window.self===window,Ga=function e(){return ut(e.override)?lq&&uq:e.override},cq=Math.max,fq=Math.min;function dq(e,t,r){return e>=fq(t,r)&&e<cq(t,r)}function Q_(e,t,r){return t=U_(t),r===void 0?(r=t,t=0):r=U_(r),e=sN(e),dq(e,t,r)}function hq(e){return e&&e.length?e[0]:void 0}var Wa=function(t,r){if(Bc([r,t],ut))return!1;if(r.target&&(Te(r.target,"setAttribute","data-suir-click-target",!0),document.querySelector("[data-suir-click-target=true]")))return Te(r.target,"removeAttribute","data-suir-click-target"),t.contains(r.target);var n=r.clientX,i=r.clientY;if(Bc([n,i],ut))return!1;var a=t.getClientRects();if(!t.offsetWidth||!t.offsetHeight||!a||!a.length)return!1;var s=hq(a),o=s.top,l=s.bottom,u=s.left,c=s.right;return Bc([o,l,u,c],ut)?!1:Q_(i,o,l+.001)&&Q_(n,u,c+.001)};function pq(e,t){return pm(e,t)}var kk=Object.create,gb=function(){function e(){}return function(t){if(!Xi(t))return{};if(kk)return kk(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Ak=Ga()?te.useLayoutEffect:te.useEffect,mq=/\s+/;function gq(e){var t=[];return e?(e.forEach(function(r){if(typeof r.current=="string"){var n=r.current.split(mq);n.forEach(function(i){t.push(i)})}}),t.filter(function(r,n,i){return r.length>0&&i.indexOf(r)===n})):[]}function vq(e,t){return[t.filter(function(r){return e.indexOf(r)===-1}),e.filter(function(r){return t.indexOf(r)===-1})]}var Tk=new Map,Zv=function(t,r){var n=gq(r),i=vq(Tk.get(t)||[],n),a=i[0],s=i[1];t&&(a.forEach(function(o){return t.classList.add(o)}),s.forEach(function(o){return t.classList.remove(o)})),Tk.set(t,n)},yq=function(){var t=this;this.add=function(r,n){if(t.nodes.has(r)){var i=t.nodes.get(r);i.add(n);return}var a=new Set;a.add(n),t.nodes.set(r,a)},this.del=function(r,n){if(t.nodes.has(r)){var i=t.nodes.get(r);if(i.size===1){t.nodes.delete(r);return}i.delete(n)}},this.emit=function(r,n){n(r,t.nodes.get(r))},this.nodes=new Map},uc=new yq;function wq(e,t){var r=te.useRef(),n=te.useRef(!1);Ak(function(){if(r.current=t,n.current){var i=Np(e)?e.current:e;uc.emit(i,Zv)}n.current=!0},[t]),Ak(function(){var i=Np(e)?e.current:e;return uc.add(i,r),uc.emit(i,Zv),function(){uc.del(i,r),uc.emit(i,Zv)}},[e])}var _q=qf(function(e,t){return Fp(e)?CN(e,t):[]});function bl(e){var t=e.children,r=e.className,n=e.content,i=e.size,a=be(i,"icons",r),s=xe(bl,e),o=Ce(bl,e);return te.createElement(o,ie({},s,{className:a}),Pe(t)?n:t)}bl.handledProps=["as","children","className","content","size"];bl.propTypes={};bl.defaultProps={as:"i"};var Je=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.handleClick=function(o){var l=n.props.disabled;if(l){o.preventDefault();return}Te(n.props,"onClick",o,n.props)},n}var r=t.prototype;return r.getIconAriaOptions=function(){var i={},a=this.props,s=a["aria-label"],o=a["aria-hidden"];return ut(s)?i["aria-hidden"]="true":i["aria-label"]=s,ut(o)||(i["aria-hidden"]=o),i},r.render=function(){var i=this.props,a=i.bordered,s=i.circular,o=i.className,l=i.color,u=i.corner,c=i.disabled,d=i.fitted,p=i.flipped,m=i.inverted,w=i.link,g=i.loading,_=i.name,E=i.rotated,x=i.size,b=be(l,_,x,ee(a,"bordered"),ee(s,"circular"),ee(c,"disabled"),ee(d,"fitted"),ee(m,"inverted"),ee(w,"link"),ee(g,"loading"),Rt(u,"corner"),pn(p,"flipped"),pn(E,"rotated"),"icon",o),C=xe(t,this.props),v=Ce(t,this.props),k=this.getIconAriaOptions();return te.createElement(v,ie({},C,k,{className:b,onClick:this.handleClick}))},t}(J.PureComponent);Je.handledProps=["aria-hidden","aria-label","as","bordered","circular","className","color","corner","disabled","fitted","flipped","inverted","link","loading","name","rotated","size"];Je.propTypes={};Je.defaultProps={as:"i"};Je.Group=bl;Je.create=nt(Je,function(e){return{name:e}});var ey,Ik;function bq(){if(Ik)return ey;Ik=1;for(var e=function(o){return o!==null&&!Array.isArray(o)&&typeof o=="object"},t={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)t[112+r]="F"+(r+1);for(var n=0;n<26;n+=1){var i=n+65;t[i]=[String.fromCharCode(i+32),String.fromCharCode(i)]}var a={codes:t,getCode:function(o){return e(o)?o.keyCode||o.which||this[o.key]:this[o]},getKey:function(o){var l=e(o);if(l&&o.key)return o.key;var u=t[l?o.keyCode||o.which:o];return Array.isArray(u)&&(l?u=u[o.shiftKey?1:0]:u=u[0]),u},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};return 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["]"],ey=a,ey}var xq=bq();const Mt=yn(xq);var gm=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.handleRef=function(o){pi(n.props.innerRef,o)},n}var r=t.prototype;return r.componentDidMount=function(){Te(this.props,"onMount",null,this.props)},r.componentWillUnmount=function(){Te(this.props,"onUnmount",null,this.props)},r.render=function(){if(!Ga())return null;var i=this.props,a=i.children,s=i.mountNode,o=s===void 0?document.body:s;return Op.createPortal(te.createElement(Jn,{innerRef:this.handleRef},a),o)},t}(J.Component);gm.handledProps=["children","innerRef","mountNode","onMount","onUnmount"];gm.propTypes={};var Cr=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.contentRef=te.createRef(),n.triggerRef=te.createRef(),n.latestDocumentMouseDownEvent=null,n.handleDocumentMouseDown=function(o){n.latestDocumentMouseDownEvent=o},n.handleDocumentClick=function(o){var l=n.props.closeOnDocumentClick,u=n.latestDocumentMouseDownEvent;n.latestDocumentMouseDownEvent=null,!(!n.contentRef.current||Wa(n.triggerRef.current,o)||u&&Wa(n.contentRef.current,u)||Wa(n.contentRef.current,o))&&l&&n.close(o)},n.handleEscape=function(o){n.props.closeOnEscape&&Mt.getCode(o)===Mt.Escape&&n.close(o)},n.handlePortalMouseLeave=function(o){var l=n.props,u=l.closeOnPortalMouseLeave,c=l.mouseLeaveDelay;u&&o.target===n.contentRef.current&&(n.mouseLeaveTimer=n.closeWithTimeout(o,c))},n.handlePortalMouseEnter=function(){var o=n.props.closeOnPortalMouseLeave;o&&clearTimeout(n.mouseLeaveTimer)},n.handleTriggerBlur=function(o){for(var l=n.props,u=l.trigger,c=l.closeOnTriggerBlur,d=arguments.length,p=new Array(d>1?d-1:0),m=1;m<d;m++)p[m-1]=arguments[m];Te.apply(void 0,[u,"props.onBlur",o].concat(p));var w=o.relatedTarget||document.activeElement,g=Te(n.contentRef.current,"contains",w);!c||g||n.close(o)},n.handleTriggerClick=function(o){for(var l=n.props,u=l.trigger,c=l.closeOnTriggerClick,d=l.openOnTriggerClick,p=n.state.open,m=arguments.length,w=new Array(m>1?m-1:0),g=1;g<m;g++)w[g-1]=arguments[g];Te.apply(void 0,[u,"props.onClick",o].concat(w)),p&&c?n.close(o):!p&&d&&n.open(o)},n.handleTriggerFocus=function(o){for(var l=n.props,u=l.trigger,c=l.openOnTriggerFocus,d=arguments.length,p=new Array(d>1?d-1:0),m=1;m<d;m++)p[m-1]=arguments[m];Te.apply(void 0,[u,"props.onFocus",o].concat(p)),c&&n.open(o)},n.handleTriggerMouseLeave=function(o){clearTimeout(n.mouseEnterTimer);for(var l=n.props,u=l.trigger,c=l.closeOnTriggerMouseLeave,d=l.mouseLeaveDelay,p=arguments.length,m=new Array(p>1?p-1:0),w=1;w<p;w++)m[w-1]=arguments[w];Te.apply(void 0,[u,"props.onMouseLeave",o].concat(m)),c&&(n.mouseLeaveTimer=n.closeWithTimeout(o,d))},n.handleTriggerMouseEnter=function(o){clearTimeout(n.mouseLeaveTimer);for(var l=n.props,u=l.trigger,c=l.mouseEnterDelay,d=l.openOnTriggerMouseEnter,p=arguments.length,m=new Array(p>1?p-1:0),w=1;w<p;w++)m[w-1]=arguments[w];Te.apply(void 0,[u,"props.onMouseEnter",o].concat(m)),d&&(n.mouseEnterTimer=n.openWithTimeout(o,c))},n.open=function(o){Te(n.props,"onOpen",o,ie({},n.props,{open:!0})),n.setState({open:!0})},n.openWithTimeout=function(o,l){var u=ie({},o);return setTimeout(function(){return n.open(u)},l||0)},n.close=function(o){n.setState({open:!1}),Te(n.props,"onClose",o,ie({},n.props,{open:!1}))},n.closeWithTimeout=function(o,l){var u=ie({},o);return setTimeout(function(){return n.close(u)},l||0)},n.handleMount=function(){Te(n.props,"onMount",null,n.props)},n.handleUnmount=function(){Te(n.props,"onUnmount",null,n.props)},n.handleTriggerRef=function(o){n.triggerRef.current=o,pi(n.props.triggerRef,o)},n}var r=t.prototype;return r.componentWillUnmount=function(){clearTimeout(this.mouseEnterTimer),clearTimeout(this.mouseLeaveTimer)},r.render=function(){var i=this.props,a=i.children,s=i.eventPool,o=i.mountNode,l=i.trigger,u=this.state.open;return te.createElement(te.Fragment,null,u&&te.createElement(te.Fragment,null,te.createElement(gm,{innerRef:this.contentRef,mountNode:o,onMount:this.handleMount,onUnmount:this.handleUnmount},a),te.createElement(Gi,{name:"mouseleave",on:this.handlePortalMouseLeave,pool:s,target:this.contentRef}),te.createElement(Gi,{name:"mouseenter",on:this.handlePortalMouseEnter,pool:s,target:this.contentRef}),te.createElement(Gi,{name:"mousedown",on:this.handleDocumentMouseDown,pool:s}),te.createElement(Gi,{name:"click",on:this.handleDocumentClick,pool:s}),te.createElement(Gi,{name:"keydown",on:this.handleEscape,pool:s})),l&&te.createElement(Jn,{innerRef:this.handleTriggerRef},te.cloneElement(l,{onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onFocus:this.handleTriggerFocus,onMouseLeave:this.handleTriggerMouseLeave,onMouseEnter:this.handleTriggerMouseEnter})))},t}(_s);Cr.handledProps=["children","closeOnDocumentClick","closeOnEscape","closeOnPortalMouseLeave","closeOnTriggerBlur","closeOnTriggerClick","closeOnTriggerMouseLeave","defaultOpen","eventPool","mountNode","mouseEnterDelay","mouseLeaveDelay","onClose","onMount","onOpen","onUnmount","open","openOnTriggerClick","openOnTriggerFocus","openOnTriggerMouseEnter","trigger","triggerRef"];Cr.propTypes={};Cr.defaultProps={closeOnDocumentClick:!0,closeOnEscape:!0,eventPool:"default",openOnTriggerClick:!0};Cr.autoControlledProps=["open"];Cr.Inner=gm;function Xc(e){var t=e.blurring,r=e.className,n=e.children,i=e.content,a=e.dimmed,s=be(ee(t,"blurring"),ee(a,"dimmed"),"dimmable",r),o=xe(Xc,e),l=Ce(Xc,e);return te.createElement(l,ie({},o,{className:s}),Pe(n)?i:n)}Xc.handledProps=["as","blurring","children","className","content","dimmed"];Xc.propTypes={};var Jc=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.containerRef=J.createRef(),n.contentRef=J.createRef(),n.handleClick=function(o){var l=n.contentRef.current;Te(n.props,"onClick",o,n.props),!(l&&l!==o.target&&Wa(l,o))&&Te(n.props,"onClickOutside",o,n.props)},n}var r=t.prototype;return r.componentDidMount=function(){var i=this.props.active;this.toggleStyles(i)},r.componentDidUpdate=function(i){var a=this.props.active,s=i.active;s!==a&&this.toggleStyles(a)},r.toggleStyles=function(i){var a=this.containerRef.current;!a||!a.style||(i?a.style.setProperty("display","flex","important"):a.style.removeProperty("display"))},r.render=function(){var i=this.props,a=i.active,s=i.children,o=i.className,l=i.content,u=i.disabled,c=i.inverted,d=i.page,p=i.simple,m=i.verticalAlign,w=be("ui",ee(a,"active transition visible"),ee(u,"disabled"),ee(c,"inverted"),ee(d,"page"),ee(p,"simple"),ca(m),"dimmer",o),g=xe(t,this.props),_=Ce(t,this.props),E=Pe(s)?l:s;return te.createElement(Jn,{innerRef:this.containerRef},te.createElement(_,ie({},g,{className:w,onClick:this.handleClick}),E&&te.createElement("div",{className:"content",ref:this.contentRef},E)))},t}(J.Component);Jc.handledProps=["active","as","children","className","content","disabled","inverted","onClick","onClickOutside","page","simple","verticalAlign"];Jc.propTypes={};var es=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.handlePortalMount=function(){Ga()&&(document.body.classList.add("dimmed"),document.body.classList.add("dimmable"))},n.handlePortalUnmount=function(){Ga()&&(document.body.classList.remove("dimmed"),document.body.classList.remove("dimmable"))},n}var r=t.prototype;return r.render=function(){var i=this.props,a=i.active,s=i.page,o=xe(t,this.props);return s?te.createElement(Cr,{closeOnEscape:!1,closeOnDocumentClick:!1,onMount:this.handlePortalMount,onUnmount:this.handlePortalUnmount,open:a,openOnTriggerClick:!1},te.createElement(Jc,ie({},o,{active:a,page:s}))):te.createElement(Jc,ie({},o,{active:a,page:s}))},t}(J.Component);es.handledProps=["active","page"];es.propTypes={};es.Dimmable=Xc;es.Inner=Jc;es.create=nt(es,function(e){return{content:e}});function Zc(e){var t=e.children,r=e.className,n=e.content,i=e.size,a=be("ui",i,r,"images"),s=xe(Zc,e),o=Ce(Zc,e);return te.createElement(o,ie({},s,{className:a}),Pe(t)?n:t)}Zc.handledProps=["as","children","className","content","size"];Zc.propTypes={};function sn(e){var t=e.avatar,r=e.bordered,n=e.centered,i=e.children,a=e.circular,s=e.className,o=e.content,l=e.dimmer,u=e.disabled,c=e.floated,d=e.fluid,p=e.hidden,m=e.href,w=e.inline,g=e.label,_=e.rounded,E=e.size,x=e.spaced,b=e.verticalAlign,C=e.wrapped,v=e.ui,k=be(ee(v,"ui"),E,ee(t,"avatar"),ee(r,"bordered"),ee(a,"circular"),ee(n,"centered"),ee(u,"disabled"),ee(d,"fluid"),ee(p,"hidden"),ee(w,"inline"),ee(_,"rounded"),Rt(x,"spaced"),pn(c,"floated"),ca(b),"image",s),T=xe(sn,e),N=mm(T,{htmlProps:sq}),M=N[0],j=N[1],D=Ce(sn,e,function(){if(!ut(l)||!ut(g)||!ut(C)||!Pe(i))return"div"});return Pe(i)?Pe(o)?D==="img"?te.createElement(D,ie({},j,M,{className:k})):te.createElement(D,ie({},j,{className:k,href:m}),es.create(l,{autoGenerateKey:!1}),ur.create(g,{autoGenerateKey:!1}),te.createElement("img",M)):te.createElement(D,ie({},T,{className:k}),o):te.createElement(D,ie({},T,{className:k}),i)}sn.handledProps=["as","avatar","bordered","centered","children","circular","className","content","dimmer","disabled","floated","fluid","hidden","href","inline","label","rounded","size","spaced","ui","verticalAlign","wrapped"];sn.Group=Zc;sn.propTypes={};sn.defaultProps={as:"img",ui:!0};sn.create=nt(sn,function(e){return{src:e}});function Ka(e){var t=e.children,r=e.className,n=e.content,i=be("detail",r),a=xe(Ka,e),s=Ce(Ka,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}Ka.handledProps=["as","children","className","content"];Ka.propTypes={};Ka.create=nt(Ka,function(e){return{content:e}});function ef(e){var t=e.children,r=e.circular,n=e.className,i=e.color,a=e.content,s=e.size,o=e.tag,l=be("ui",i,s,ee(r,"circular"),ee(o,"tag"),"labels",n),u=xe(ef,e),c=Ce(ef,e);return te.createElement(c,ie({},u,{className:l}),Pe(t)?a:t)}ef.handledProps=["as","children","circular","className","color","content","size","tag"];ef.propTypes={};var ur=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.handleClick=function(o){var l=n.props.onClick;l&&l(o,n.props)},n.handleIconOverrides=function(o){return{onClick:function(u){Te(o,"onClick",u),Te(n.props,"onRemove",u,n.props)}}},n}var r=t.prototype;return r.render=function(){var i=this.props,a=i.active,s=i.attached,o=i.basic,l=i.children,u=i.circular,c=i.className,d=i.color,p=i.content,m=i.corner,w=i.detail,g=i.empty,_=i.floating,E=i.horizontal,x=i.icon,b=i.image,C=i.onRemove,v=i.pointing,k=i.prompt,T=i.removeIcon,N=i.ribbon,M=i.size,j=i.tag,D=v===!0&&"pointing"||(v==="left"||v==="right")&&v+" pointing"||(v==="above"||v==="below")&&"pointing "+v,$=be("ui",d,D,M,ee(a,"active"),ee(o,"basic"),ee(u,"circular"),ee(g,"empty"),ee(_,"floating"),ee(E,"horizontal"),ee(b===!0,"image"),ee(k,"prompt"),ee(j,"tag"),Rt(m,"corner"),Rt(N,"ribbon"),pn(s,"attached"),"label",c),X=xe(t,this.props),W=Ce(t,this.props);if(!Pe(l))return te.createElement(W,ie({},X,{className:$,onClick:this.handleClick}),l);var H=Gf(T)?"delete":T;return te.createElement(W,ie({className:$,onClick:this.handleClick},X),Je.create(x,{autoGenerateKey:!1}),typeof b!="boolean"&&sn.create(b,{autoGenerateKey:!1}),p,Ka.create(w,{autoGenerateKey:!1}),C&&Je.create(H,{autoGenerateKey:!1,overrideProps:this.handleIconOverrides}))},t}(J.Component);ur.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"];ur.propTypes={};ur.Detail=Ka;ur.Group=ef;ur.create=nt(ur,function(e){return{content:e}});function tf(e){var t=e.children,r=e.className,n=e.content,i=e.hidden,a=e.visible,s=be(ee(a,"visible"),ee(i,"hidden"),"content",r),o=xe(tf,e),l=Ce(tf,e);return te.createElement(l,ie({},o,{className:s}),Pe(t)?n:t)}tf.handledProps=["as","children","className","content","hidden","visible"];tf.propTypes={};function nf(e){var t=e.attached,r=e.basic,n=e.buttons,i=e.children,a=e.className,s=e.color,o=e.compact,l=e.content,u=e.floated,c=e.fluid,d=e.icon,p=e.inverted,m=e.labeled,w=e.negative,g=e.positive,_=e.primary,E=e.secondary,x=e.size,b=e.toggle,C=e.vertical,v=e.widths,k=be("ui",s,x,ee(r,"basic"),ee(o,"compact"),ee(c,"fluid"),ee(d,"icon"),ee(p,"inverted"),ee(m,"labeled"),ee(w,"negative"),ee(g,"positive"),ee(_,"primary"),ee(E,"secondary"),ee(b,"toggle"),ee(C,"vertical"),Rt(t,"attached"),pn(u,"floated"),Gn(v),"buttons",a),T=xe(nf,e),N=Ce(nf,e);return ut(n)?te.createElement(N,ie({},T,{className:k}),Pe(i)?l:i):te.createElement(N,ie({},T,{className:k}),Mn(n,function(M){return nn.create(M)}))}nf.handledProps=["as","attached","basic","buttons","children","className","color","compact","content","floated","fluid","icon","inverted","labeled","negative","positive","primary","secondary","size","toggle","vertical","widths"];nf.propTypes={};function rf(e){var t=e.className,r=e.text,n=be("or",t),i=xe(rf,e),a=Ce(rf,e);return te.createElement(a,ie({},i,{className:n,"data-text":r}))}rf.handledProps=["as","className","text"];rf.propTypes={};var nn=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.ref=J.createRef(),n.computeElementType=function(){var o=n.props,l=o.attached,u=o.label;if(!ut(l)||!ut(u))return"div"},n.computeTabIndex=function(o){var l=n.props,u=l.disabled,c=l.tabIndex;if(!ut(c))return c;if(u)return-1;if(o==="div")return 0},n.focus=function(o){return Te(n.ref.current,"focus",o)},n.handleClick=function(o){var l=n.props.disabled;if(l){o.preventDefault();return}Te(n.props,"onClick",o,n.props)},n.hasIconClass=function(){var o=n.props,l=o.labelPosition,u=o.children,c=o.content,d=o.icon;return d===!0?!0:d&&(l||Pe(u)&&ut(c))},n}var r=t.prototype;return r.computeButtonAriaRole=function(i){var a=this.props.role;if(!ut(a))return a;if(i!=="button")return"button"},r.render=function(){var i=this.props,a=i.active,s=i.animated,o=i.attached,l=i.basic,u=i.children,c=i.circular,d=i.className,p=i.color,m=i.compact,w=i.content,g=i.disabled,_=i.floated,E=i.fluid,x=i.icon,b=i.inverted,C=i.label,v=i.labelPosition,k=i.loading,T=i.negative,N=i.positive,M=i.primary,j=i.secondary,D=i.size,$=i.toggle,X=i.type,W=be(p,D,ee(a,"active"),ee(l,"basic"),ee(c,"circular"),ee(m,"compact"),ee(E,"fluid"),ee(this.hasIconClass(),"icon"),ee(b,"inverted"),ee(k,"loading"),ee(T,"negative"),ee(N,"positive"),ee(M,"primary"),ee(j,"secondary"),ee($,"toggle"),Rt(s,"animated"),Rt(o,"attached")),H=be(Rt(v||!!C,"labeled")),V=be(ee(g,"disabled"),pn(_,"floated")),K=xe(t,this.props),Y=Ce(t,this.props,this.computeElementType),q=this.computeTabIndex(Y);if(!ut(C)){var F=be("ui",W,"button",d),G=be("ui",H,"button",d,V),z=ur.create(C,{defaultProps:{basic:!0,pointing:v==="left"?"right":"left"},autoGenerateKey:!1});return te.createElement(Y,ie({},K,{className:G,onClick:this.handleClick}),v==="left"&&z,te.createElement(Jn,{innerRef:this.ref},te.createElement("button",{className:F,"aria-pressed":$?!!a:void 0,disabled:g,type:X,tabIndex:q},Je.create(x,{autoGenerateKey:!1})," ",w)),(v==="right"||!v)&&z)}var B=be("ui",W,V,H,"button",d),se=!Pe(u),de=this.computeButtonAriaRole(Y);return te.createElement(Jn,{innerRef:this.ref},te.createElement(Y,ie({},K,{className:B,"aria-pressed":$?!!a:void 0,disabled:g&&Y==="button"||void 0,onClick:this.handleClick,role:de,type:X,tabIndex:q}),se&&u,!se&&Je.create(x,{autoGenerateKey:!1}),!se&&w))},t}(J.Component);nn.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"];nn.propTypes={};nn.defaultProps={as:"button"};nn.Content=tf;nn.Group=nf;nn.Or=rf;nn.create=nt(nn,function(e){return{content:e}});function LN(e,t,r,n){var i=-1,a=e==null?0:e.length;for(n&&a&&(r=e[++i]);++i<a;)r=t(r,e[i],i,e);return r}function Eq(e,t,r,n,i){return i(e,function(a,s,o){r=n?(n=!1,a):t(r,a,s,o)}),r}function vm(e,t,r){var n=Jt(e)?LN:Eq,i=arguments.length<3;return n(e,ws(t),r,i,fu)}var ty,Pk;function Sq(){return Pk||(Pk=1,ty=function(t,r,n,i){var a=n?n.call(i,t,r):void 0;if(a!==void 0)return!!a;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var s=Object.keys(t),o=Object.keys(r);if(s.length!==o.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(r),u=0;u<s.length;u++){var c=s[u];if(!l(c))return!1;var d=t[c],p=r[c];if(a=n?n.call(i,d,p,c):void 0,a===!1||a===void 0&&d!==p)return!1}return!0}),ty}var Cq=Sq();const Va=yn(Cq);var xl=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.handleButtonOverrides=function(o){return{onClick:function(u,c){Te(o,"onClick",u,c),Te(n.props,"onActionClick",u,c)}}},n}var r=t.prototype;return r.render=function(){var i=this,a=this.props,s=a.actions,o=a.children,l=a.className,u=a.content,c=be("actions",l),d=xe(t,this.props),p=Ce(t,this.props);return Pe(o)?Pe(u)?te.createElement(p,ie({},d,{className:c}),Mn(s,function(m){return nn.create(m,{overrideProps:i.handleButtonOverrides})})):te.createElement(p,ie({},d,{className:c}),u):te.createElement(p,ie({},d,{className:c}),o)},t}(J.Component);xl.handledProps=["actions","as","children","className","content","onActionClick"];xl.propTypes={};xl.create=nt(xl,function(e){return{actions:e}});function Ya(e){var t=e.children,r=e.className,n=e.content,i=e.image,a=e.scrolling,s=be(r,ee(i,"image"),ee(a,"scrolling"),"content"),o=xe(Ya,e),l=Ce(Ya,e);return te.createElement(l,ie({},o,{className:s}),Pe(t)?n:t)}Ya.handledProps=["as","children","className","content","image","scrolling"];Ya.propTypes={};Ya.create=nt(Ya,function(e){return{content:e}});function af(e){var t=e.children,r=e.className,n=e.content,i=be("description",r),a=xe(af,e),s=Ce(af,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}af.handledProps=["as","children","className","content"];af.propTypes={};function Xa(e){var t=e.blurring,r=e.children,n=e.className,i=e.centered,a=e.content,s=e.inverted,o=e.mountNode,l=e.scrolling,u=te.useRef(),c=be("ui",ee(s,"inverted"),ee(!i,"top aligned"),"page modals dimmer transition visible active",n),d=be("dimmable dimmed",ee(t,"blurring"),ee(l,"scrolling")),p=xe(Xa,e),m=Ce(Xa,e);return wq(o,d),te.useEffect(function(){u.current&&u.current.style&&u.current.style.setProperty("display","flex","important")},[]),te.createElement(Jn,{innerRef:u},te.createElement(m,ie({},p,{className:c}),Pe(r)?a:r))}Xa.handledProps=["as","blurring","centered","children","className","content","inverted","mountNode","scrolling"];Xa.propTypes={};Xa.create=nt(Xa,function(e){return{content:e}});function Ja(e){var t=e.children,r=e.className,n=e.content,i=be("header",r),a=xe(Ja,e),s=Ce(Ja,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}Ja.handledProps=["as","children","className","content"];Ja.propTypes={};Ja.create=nt(Ja,function(e){return{content:e}});var Rk=0,kq=50,Aq=function(t){var r=t.height+Rk,n=t.height+Rk,i=window.innerHeight,a=i/2,s=-(n/2),o=kq,l=a+s;return l+r+o<i},Tq=function(t,r,n){var i=r&&t?-(n.height/2):0,a=-(n.width/2);return{marginLeft:a,marginTop:i}},Iq=function(){return!window.ActiveXObject&&"ActiveXObject"in window},Yt=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.legacy=Ga()&&Iq(),n.ref=J.createRef(),n.dimmerRef=J.createRef(),n.latestDocumentMouseDownEvent=null,n.getMountNode=function(){return Ga()?n.props.mountNode||document.body:null},n.handleActionsOverrides=function(o){return{onActionClick:function(u,c){Te(o,"onActionClick",u,c),Te(n.props,"onActionClick",u,n.props),n.handleClose(u)}}},n.handleClose=function(o){n.setState({open:!1}),Te(n.props,"onClose",o,ie({},n.props,{open:!1}))},n.handleDocumentMouseDown=function(o){n.latestDocumentMouseDownEvent=o},n.handleDocumentClick=function(o){var l=n.props.closeOnDimmerClick,u=n.latestDocumentMouseDownEvent;n.latestDocumentMouseDownEvent=null,!(!l||Wa(n.ref.current,u)||Wa(n.ref.current,o))&&(n.setState({open:!1}),Te(n.props,"onClose",o,ie({},n.props,{open:!1})))},n.handleIconOverrides=function(o){return{onClick:function(u){Te(o,"onClick",u),n.handleClose(u)}}},n.handleOpen=function(o){Te(n.props,"onOpen",o,ie({},n.props,{open:!0})),n.setState({open:!0})},n.handlePortalMount=function(o){var l=n.props.eventPool;n.setState({scrolling:!1}),n.setPositionAndClassNames(),Rn.sub("mousedown",n.handleDocumentMouseDown,{pool:l,target:n.dimmerRef.current}),Rn.sub("click",n.handleDocumentClick,{pool:l,target:n.dimmerRef.current}),Te(n.props,"onMount",o,n.props)},n.handlePortalUnmount=function(o){var l=n.props.eventPool;cancelAnimationFrame(n.animationRequestId),Rn.unsub("mousedown",n.handleDocumentMouseDown,{pool:l,target:n.dimmerRef.current}),Rn.unsub("click",n.handleDocumentClick,{pool:l,target:n.dimmerRef.current}),Te(n.props,"onUnmount",o,n.props)},n.setPositionAndClassNames=function(){var o=n.props.centered,l,u={};if(n.ref.current){var c=n.ref.current.getBoundingClientRect(),d=Aq(c);l=!d;var p=n.legacy?Tq(d,o,c):{};Va(n.state.legacyStyles,p)||(u.legacyStyles=p),n.state.scrolling!==l&&(u.scrolling=l)}sl(u)||n.setState(u),n.animationRequestId=requestAnimationFrame(n.setPositionAndClassNames)},n.renderContent=function(o){var l=n.props,u=l.actions,c=l.basic,d=l.children,p=l.className,m=l.closeIcon,w=l.content,g=l.header,_=l.size,E=l.style,x=n.state,b=x.legacyStyles,C=x.scrolling,v=be("ui",_,ee(c,"basic"),ee(n.legacy,"legacy"),ee(C,"scrolling"),"modal transition visible active",p),k=Ce(t,n.props),T=m===!0?"close":m,N=Je.create(T,{overrideProps:n.handleIconOverrides});return te.createElement(Jn,{innerRef:n.ref},te.createElement(k,ie({},o,{className:v,style:ie({},b,E)}),N,Pe(d)?te.createElement(te.Fragment,null,Ja.create(g,{autoGenerateKey:!1}),Ya.create(w,{autoGenerateKey:!1}),xl.create(u,{overrideProps:n.handleActionsOverrides})):d))},n}var r=t.prototype;return r.componentWillUnmount=function(){this.handlePortalUnmount()},r.render=function(){var i=this.props,a=i.centered,s=i.closeOnDocumentClick,o=i.dimmer,l=i.eventPool,u=i.trigger,c=this.state,d=c.open,p=c.scrolling,m=this.getMountNode();if(!Ga())return J.isValidElement(u)?u:null;var w=xe(t,this.props),g=Cr.handledProps,_=vm(w,function(x,b,C){return mi(g,C)||(x[C]=b),x},{}),E=db(w,g);return te.createElement(Cr,ie({closeOnDocumentClick:s},E,{trigger:u,eventPool:l,mountNode:m,open:d,onClose:this.handleClose,onMount:this.handlePortalMount,onOpen:this.handleOpen,onUnmount:this.handlePortalUnmount}),te.createElement(Jn,{innerRef:this.dimmerRef},Xa.create(Wf(o)?o:{},{autoGenerateKey:!1,defaultProps:{blurring:o==="blurring",inverted:o==="inverted"},overrideProps:{children:this.renderContent(_),centered:a,mountNode:m,scrolling:p}})))},t}(_s);Yt.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"];Yt.propTypes={};Yt.defaultProps={centered:!0,dimmer:!0,closeOnDimmerClick:!0,closeOnDocumentClick:!1,eventPool:"Modal"};Yt.autoControlledProps=["open"];Yt.Actions=xl;Yt.Content=Ya;Yt.Description=af;Yt.Dimmer=Xa;Yt.Header=Ja;function of(e){var t=e.children,r=e.className,n=e.content,i=be("header",r),a=xe(of,e),s=Ce(of,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}of.handledProps=["as","children","className","content"];of.propTypes={};function Pq(e){return function(t){return e==null?void 0:e[t]}}var Rq={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Oq=Pq(Rq),Nq=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Mq="\\u0300-\\u036f",Dq="\\ufe20-\\ufe2f",Fq="\\u20d0-\\u20ff",Lq=Mq+Dq+Fq,jq="["+Lq+"]",Bq=RegExp(jq,"g");function K_(e){return e=$f(e),e&&e.replace(Nq,Oq).replace(Bq,"")}var zq=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Uq(e){return e.match(zq)||[]}var $q=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Hq(e){return $q.test(e)}var jN="\\ud800-\\udfff",qq="\\u0300-\\u036f",Gq="\\ufe20-\\ufe2f",Wq="\\u20d0-\\u20ff",Vq=qq+Gq+Wq,BN="\\u2700-\\u27bf",zN="a-z\\xdf-\\xf6\\xf8-\\xff",Qq="\\xac\\xb1\\xd7\\xf7",Kq="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Yq="\\u2000-\\u206f",Xq=" \\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",UN="A-Z\\xc0-\\xd6\\xd8-\\xde",Jq="\\ufe0e\\ufe0f",$N=Qq+Kq+Yq+Xq,HN="[']",Ok="["+$N+"]",Zq="["+Vq+"]",qN="\\d+",eG="["+BN+"]",GN="["+zN+"]",WN="[^"+jN+$N+qN+BN+zN+UN+"]",tG="\\ud83c[\\udffb-\\udfff]",nG="(?:"+Zq+"|"+tG+")",rG="[^"+jN+"]",VN="(?:\\ud83c[\\udde6-\\uddff]){2}",QN="[\\ud800-\\udbff][\\udc00-\\udfff]",al="["+UN+"]",iG="\\u200d",Nk="(?:"+GN+"|"+WN+")",aG="(?:"+al+"|"+WN+")",Mk="(?:"+HN+"(?:d|ll|m|re|s|t|ve))?",Dk="(?:"+HN+"(?:D|LL|M|RE|S|T|VE))?",KN=nG+"?",YN="["+Jq+"]?",oG="(?:"+iG+"(?:"+[rG,VN,QN].join("|")+")"+YN+KN+")*",sG="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",lG="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",uG=YN+KN+oG,cG="(?:"+[eG,VN,QN].join("|")+")"+uG,fG=RegExp([al+"?"+GN+"+"+Mk+"(?="+[Ok,al,"$"].join("|")+")",aG+"+"+Dk+"(?="+[Ok,al+Nk,"$"].join("|")+")",al+"?"+Nk+"+"+Mk,al+"+"+Dk,lG,sG,qN,cG].join("|"),"g");function dG(e){return e.match(fG)||[]}function hG(e,t,r){return e=$f(e),t=t,t===void 0?Hq(e)?dG(e):Uq(e):e.match(t)||[]}var pG="[']",mG=RegExp(pG,"g");function gG(e){return function(t){return LN(hG(K_(t).replace(mG,"")),e,"")}}function vG(e){return function(t){t=$f(t);var r=fb(t)?S8(t):void 0,n=r?r[0]:t.charAt(0),i=r?t8(r,1).join(""):t.slice(1);return n[e]()+i}}var yG=vG("toUpperCase"),wG=gG(function(e,t,r){return e+(r?" ":"")+yG(t)}),El=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.handleClick=function(o){var l=n.props.disabled;l||Te(n.props,"onClick",o,n.props)},n}var r=t.prototype;return r.render=function(){var i=this.props,a=i.active,s=i.children,o=i.className,l=i.color,u=i.content,c=i.disabled,d=i.fitted,p=i.header,m=i.icon,w=i.link,g=i.name,_=i.onClick,E=i.position,x=be(l,E,ee(a,"active"),ee(c,"disabled"),ee(m===!0||m&&!(g||u),"icon"),ee(p,"header"),ee(w,"link"),Rt(d,"fitted"),"item",o),b=Ce(t,this.props,function(){if(_)return"a"}),C=xe(t,this.props);return Pe(s)?te.createElement(b,ie({},C,{className:x,onClick:this.handleClick}),Je.create(m,{autoGenerateKey:!1}),Pe(u)?wG(g):u):te.createElement(b,ie({},C,{className:x,onClick:this.handleClick}),s)},t}(J.Component);El.handledProps=["active","as","children","className","color","content","disabled","fitted","header","icon","index","link","name","onClick","position"];El.propTypes={};El.create=nt(El,function(e){return{content:e,name:e}});function sf(e){var t=e.children,r=e.className,n=e.content,i=e.position,a=be(i,"menu",r),s=xe(sf,e),o=Ce(sf,e);return te.createElement(o,ie({},s,{className:a}),Pe(t)?n:t)}sf.handledProps=["as","children","className","content","position"];sf.propTypes={};var Kt=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.handleItemOverrides=function(o){return{onClick:function(u,c){var d=c.index;n.setState({activeIndex:d}),Te(o,"onClick",u,c),Te(n.props,"onItemClick",u,c)}}},n}var r=t.prototype;return r.renderItems=function(){var i=this,a=this.props.items,s=this.state.activeIndex;return Mn(a,function(o,l){return El.create(o,{defaultProps:{active:parseInt(s,10)===l,index:l},overrideProps:i.handleItemOverrides})})},r.render=function(){var i=this.props,a=i.attached,s=i.borderless,o=i.children,l=i.className,u=i.color,c=i.compact,d=i.fixed,p=i.floated,m=i.fluid,w=i.icon,g=i.inverted,_=i.pagination,E=i.pointing,x=i.secondary,b=i.size,C=i.stackable,v=i.tabular,k=i.text,T=i.vertical,N=i.widths,M=be("ui",u,b,ee(s,"borderless"),ee(c,"compact"),ee(m,"fluid"),ee(g,"inverted"),ee(_,"pagination"),ee(E,"pointing"),ee(x,"secondary"),ee(C,"stackable"),ee(k,"text"),ee(T,"vertical"),Rt(a,"attached"),Rt(p,"floated"),Rt(w,"icon"),Rt(v,"tabular"),pn(d,"fixed"),Gn(N,"item"),l,"menu"),j=xe(t,this.props),D=Ce(t,this.props);return te.createElement(D,ie({},j,{className:M}),Pe(o)?this.renderItems():o)},t}(_s);Kt.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"];Kt.propTypes={};Kt.autoControlledProps=["activeIndex"];Kt.Header=of;Kt.Item=El;Kt.Menu=sf;Kt.create=nt(Kt,function(e){return{items:e}});function _G(e,t,r){return e==null?e:ON(e,t,r)}var qn=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.inputRef=J.createRef(),n.labelRef=J.createRef(),n.canToggle=function(){var o=n.props,l=o.disabled,u=o.radio,c=o.readOnly,d=n.state.checked;return!l&&!c&&!(u&&d)},n.computeTabIndex=function(){var o=n.props,l=o.disabled,u=o.tabIndex;return ut(u)?l?-1:0:u},n.handleClick=function(o){var l=n.props.id,u=n.state,c=u.checked,d=u.indeterminate,p=Te(n.inputRef.current,"contains",o.target),m=Te(n.labelRef.current,"contains",o.target),w=!m&&!p,g=!ut(l),_=m&&g;_||Te(n.props,"onClick",o,ie({},n.props,{checked:!c,indeterminate:!!d})),n.isClickFromMouse&&(n.isClickFromMouse=!1,m&&!g&&n.handleChange(o),w&&n.handleChange(o),m&&g&&o.stopPropagation())},n.handleChange=function(o){var l=n.state.checked;n.canToggle()&&(Te(n.props,"onChange",o,ie({},n.props,{checked:!l,indeterminate:!1})),n.setState({checked:!l,indeterminate:!1}))},n.handleMouseDown=function(o){var l=n.state,u=l.checked,c=l.indeterminate;Te(n.props,"onMouseDown",o,ie({},n.props,{checked:!!u,indeterminate:!!c})),o.defaultPrevented||Te(n.inputRef.current,"focus"),o.preventDefault()},n.handleMouseUp=function(o){var l=n.state,u=l.checked,c=l.indeterminate;n.isClickFromMouse=!0,Te(n.props,"onMouseUp",o,ie({},n.props,{checked:!!u,indeterminate:!!c}))},n.setIndeterminate=function(){var o=n.state.indeterminate;_G(n.inputRef,"current.indeterminate",!!o)},n}var r=t.prototype;return r.componentDidMount=function(){this.setIndeterminate()},r.componentDidUpdate=function(){this.setIndeterminate()},r.render=function(){var i=this.props,a=i.className,s=i.disabled,o=i.label,l=i.id,u=i.name,c=i.radio,d=i.readOnly,p=i.slider,m=i.toggle,w=i.type,g=i.value,_=this.state,E=_.checked,x=_.indeterminate,b=be("ui",ee(E,"checked"),ee(s,"disabled"),ee(x,"indeterminate"),ee(ut(o),"fitted"),ee(c,"radio"),ee(d,"read-only"),ee(p,"slider"),ee(m,"toggle"),"checkbox",a),C=xe(t,this.props),v=Ce(t,this.props),k=mm(C,{htmlProps:mb}),T=k[0],N=k[1],M=V_(o,{defaultProps:{htmlFor:l},autoGenerateKey:!1})||te.createElement("label",{htmlFor:l});return te.createElement(v,ie({},N,{className:b,onClick:this.handleClick,onChange:this.handleChange,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp}),te.createElement(Jn,{innerRef:this.inputRef},te.createElement("input",ie({},T,{checked:E,className:"hidden",disabled:s,id:l,name:u,readOnly:!0,tabIndex:this.computeTabIndex(),type:w,value:g}))),te.createElement(Jn,{innerRef:this.labelRef},M))},t}(_s);qn.handledProps=["as","checked","className","defaultChecked","defaultIndeterminate","disabled","fitted","id","indeterminate","label","name","onChange","onClick","onMouseDown","onMouseUp","radio","readOnly","slider","tabIndex","toggle","type","value"];qn.propTypes={};qn.defaultProps={type:"checkbox"};qn.autoControlledProps=["checked","indeterminate"];function du(e){var t=e.slider,r=e.toggle,n=e.type,i=xe(du,e),a=!(t||r)||void 0;return te.createElement(qn,ie({},i,{type:n,radio:a,slider:t,toggle:r}))}du.handledProps=["slider","toggle","type"];du.propTypes={};du.defaultProps={type:"radio"};function bG(e){for(var t=-1,r=e==null?0:e.length,n=0,i=[];++t<r;){var a=e[t];a&&(i[n++]=a)}return i}function xG(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function EG(e,t){var r=!0;return fu(e,function(n,i,a){return r=!!t(n,i,a),r}),r}function SG(e,t,r){var n=Jt(e)?xG:EG;return n(e,ws(t))}function CG(e,t,r){var n=e==null?0:e.length;return n?(t=t===void 0?1:Kc(t),t=n-t,rb(e,0,t<0?0:t)):[]}var kG=_N("length"),XN="\\ud800-\\udfff",AG="\\u0300-\\u036f",TG="\\ufe20-\\ufe2f",IG="\\u20d0-\\u20ff",PG=AG+TG+IG,RG="\\ufe0e\\ufe0f",OG="["+XN+"]",Y_="["+PG+"]",X_="\\ud83c[\\udffb-\\udfff]",NG="(?:"+Y_+"|"+X_+")",JN="[^"+XN+"]",ZN="(?:\\ud83c[\\udde6-\\uddff]){2}",eM="[\\ud800-\\udbff][\\udc00-\\udfff]",MG="\\u200d",tM=NG+"?",nM="["+RG+"]?",DG="(?:"+MG+"(?:"+[JN,ZN,eM].join("|")+")"+nM+tM+")*",FG=nM+tM+DG,LG="(?:"+[JN+Y_+"?",Y_,ZN,eM,OG].join("|")+")",Fk=RegExp(X_+"(?="+X_+")|"+LG+FG,"g");function jG(e){for(var t=Fk.lastIndex=0;Fk.test(e);)++t;return t}function BG(e){return fb(e)?jG(e):kG(e)}var zG="[object Map]",UG="[object Set]";function $G(e){if(e==null)return 0;if(go(e))return pb(e)?BG(e):e.length;var t=li(e);return t==zG||t==UG?e.size:ob(e).length}var Lk=qf(function(e){return DN(cb(e,1,Fp,!0))}),ts=function(e){wt(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){var i=this.props,a=i.className,s=i.name,o=be(s,"flag",a),l=xe(t,this.props),u=Ce(t,this.props);return te.createElement(u,ie({},l,{className:o}))},t}(J.PureComponent);ts.handledProps=["as","className","name"];ts.propTypes={};ts.defaultProps={as:"i"};ts.create=nt(ts,function(e){return{name:e}});function lf(e){var t=e.className,r=be("divider",t),n=xe(lf,e),i=Ce(lf,e);return te.createElement(i,ie({},n,{className:r}))}lf.handledProps=["as","className"];lf.propTypes={};var Sl=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.handleClick=function(o){Te(n.props,"onClick",o,n.props)},n}var r=t.prototype;return r.render=function(){var i=this.props,a=i.active,s=i.children,o=i.className,l=i.content,u=i.disabled,c=i.description,d=i.flag,p=i.icon,m=i.image,w=i.label,g=i.selected,_=i.text,E=be(ee(a,"active"),ee(u,"disabled"),ee(g,"selected"),"item",o),x=ut(p)?X6(s,"DropdownMenu")&&"dropdown":p,b=xe(t,this.props),C=Ce(t,this.props),v={role:"option","aria-disabled":u,"aria-checked":a,"aria-selected":g};if(!Pe(s))return te.createElement(C,ie({},b,v,{className:E,onClick:this.handleClick}),s);var k=ts.create(d,{autoGenerateKey:!1}),T=Je.create(x,{autoGenerateKey:!1}),N=sn.create(m,{autoGenerateKey:!1}),M=ur.create(w,{autoGenerateKey:!1}),j=cl("span",function($){return{children:$}},c,{defaultProps:{className:"description"},autoGenerateKey:!1}),D=cl("span",function($){return{children:$}},Pe(l)?_:l,{defaultProps:{className:"text"},autoGenerateKey:!1});return te.createElement(C,ie({},b,v,{className:E,onClick:this.handleClick}),N,T,k,M,j,D)},t}(J.Component);Sl.handledProps=["active","as","children","className","content","description","disabled","flag","icon","image","label","onClick","selected","text","value"];Sl.propTypes={};Sl.create=nt(Sl,function(e){return e});function Za(e){var t=e.children,r=e.className,n=e.content,i=e.icon,a=be("header",r),s=xe(Za,e),o=Ce(Za,e);return Pe(t)?te.createElement(o,ie({},s,{className:a}),Je.create(i,{autoGenerateKey:!1}),n):te.createElement(o,ie({},s,{className:a}),t)}Za.handledProps=["as","children","className","content","icon"];Za.propTypes={};Za.create=nt(Za,function(e){return{content:e}});function Cl(e){var t=e.children,r=e.className,n=e.content,i=e.direction,a=e.open,s=e.scrolling,o=be(i,ee(a,"visible"),ee(s,"scrolling"),"menu transition",r),l=xe(Cl,e),u=Ce(Cl,e);return te.createElement(u,ie({},l,{className:o}),Pe(t)?n:t)}Cl.handledProps=["as","children","className","content","direction","open","scrolling"];Cl.propTypes={};var ns=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.handleChange=function(o){var l=Sr(o,"target.value");Te(n.props,"onChange",o,ie({},n.props,{value:l}))},n}var r=t.prototype;return r.render=function(){var i=this.props,a=i.autoComplete,s=i.className,o=i.tabIndex,l=i.type,u=i.value,c=be("search",s),d=xe(t,this.props);return te.createElement("input",ie({},d,{"aria-autocomplete":"list",autoComplete:a,className:c,onChange:this.handleChange,tabIndex:o,type:l,value:u}))},t}(J.Component);ns.handledProps=["as","autoComplete","className","tabIndex","type","value"];ns.propTypes={};ns.defaultProps={autoComplete:"off",type:"text"};ns.create=nt(ns,function(e){return{type:e}});function eo(e){var t=e.children,r=e.className,n=e.content,i=be("divider",r),a=xe(eo,e),s=Ce(eo,e);return te.createElement(s,ie({"aria-atomic":!0,"aria-live":"polite",role:"alert"},a,{className:i}),Pe(t)?n:t)}eo.handledProps=["as","children","className","content"];eo.propTypes={};eo.create=nt(eo,function(e){return{content:e}});var rM=/[\\^$.*+?()[\]{}|]/g,HG=RegExp(rM.source);function qG(e){return e=$f(e),e&&HG.test(e)?e.replace(rM,"\\$&"):e}function ll(e){var t=e.additionLabel,r=e.additionPosition,n=e.allowAdditions,i=e.deburr,a=e.multiple,s=e.options,o=e.search,l=e.searchQuery,u=e.value,c=s;if(a&&(c=wk(c,function(g){return!mi(u,g.value)})),o&&l)if(wl(o))c=o(c,l);else{var d=i?K_(l):l,p=new RegExp(qG(d),"i");c=wk(c,function(g){return p.test(i?K_(g.text):g.text)})}if(n&&o&&l&&!Bc(c,{text:l})){var m=te.isValidElement(t)?te.cloneElement(t,{key:"addition-label"}):t||"",w={key:"addition",text:[m,te.createElement("b",{key:"addition-query"},l)],value:l,className:"addition","data-additional":!0};r==="top"?c.unshift(w):c.push(w)}return c}ll.handledProps=[];function jk(e){var t=e.additionLabel,r=e.additionPosition,n=e.allowAdditions,i=e.deburr,a=e.multiple,s=e.options,o=e.search,l=e.searchQuery,u=e.selectedIndex,c=e.value,d=ll({value:c,options:s,searchQuery:l,additionLabel:t,additionPosition:r,allowAdditions:n,deburr:i,multiple:a,search:o}),p=vm(d,function(_,E,x){return E.disabled||_.push(x),_},[]),m;if(!u||u<0){var w=p[0];m=a?w:q_(d,["value",c])||p[0]}else if(a)m=SN(p,function(_){return _>=u}),u>=d.length-1&&(m=p[p.length-1]);else{var g=q_(d,["value",c]);m=mi(p,g)?g:void 0}return(!m||m<0)&&(m=p[0]),m}var Bk=function(t,r){return ut(t)?r:t},zk=function(t){return t&&t.map(function(r){return db(r,["key","value"])})};function iM(e){var t=e.flag,r=e.image,n=e.text;return wl(n)?n:{content:te.createElement(te.Fragment,null,ts.create(t),sn.create(r),n)}}var Ze=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.searchRef=J.createRef(),n.sizerRef=J.createRef(),n.ref=J.createRef(),n.handleChange=function(o,l){Te(n.props,"onChange",o,ie({},n.props,{value:l}))},n.closeOnChange=function(o){var l=n.props,u=l.closeOnChange,c=l.multiple,d=Gf(u)?!c:u;d&&n.close(o,hb)},n.closeOnEscape=function(o){n.props.closeOnEscape&&Mt.getCode(o)===Mt.Escape&&(o.preventDefault(),n.close(o))},n.moveSelectionOnKeyDown=function(o){var l,u=n.props,c=u.multiple,d=u.selectOnNavigation,p=n.state.open;if(p){var m=(l={},l[Mt.ArrowDown]=1,l[Mt.ArrowUp]=-1,l),w=m[Mt.getCode(o)];if(w!==void 0){o.preventDefault();var g=n.getSelectedIndexAfterMove(w);!c&&d&&n.makeSelectedItemActive(o,g),n.setState({selectedIndex:g})}}},n.openOnSpace=function(o){var l,u,c,d=n.state.focus&&!n.state.open&&Mt.getCode(o)===Mt.Spacebar,p=((l=o.target)==null?void 0:l.tagName)!=="INPUT"&&((u=o.target)==null?void 0:u.tagName)!=="TEXTAREA"&&((c=o.target)==null?void 0:c.isContentEditable)!==!0;d&&(p&&o.preventDefault(),n.open(o))},n.openOnArrow=function(o){var l=n.state,u=l.focus,c=l.open;if(u&&!c){var d=Mt.getCode(o);(d===Mt.ArrowDown||d===Mt.ArrowUp)&&(o.preventDefault(),n.open(o))}},n.makeSelectedItemActive=function(o,l){var u=n.state,c=u.open,d=u.value,p=n.props.multiple,m=n.getSelectedItem(l),w=Sr(m,"value"),g=Sr(m,"disabled");if(ut(w)||!c||g)return d;var _=p?Lk(d,[w]):w,E=p?!!xk(_,d).length:_!==d;return E&&(n.setState({value:_}),n.handleChange(o,_),m["data-additional"]&&Te(n.props,"onAddItem",o,ie({},n.props,{value:w}))),d},n.selectItemOnEnter=function(o){var l=n.props.search,u=n.state,c=u.open,d=u.selectedIndex;if(c){var p=Mt.getCode(o)===Mt.Enter||!l&&Mt.getCode(o)===Mt.Spacebar;if(p){o.preventDefault();var m=$G(ll({value:n.state.value,options:n.props.options,searchQuery:n.state.searchQuery,additionLabel:n.props.additionLabel,additionPosition:n.props.additionPosition,allowAdditions:n.props.allowAdditions,deburr:n.props.deburr,multiple:n.props.multiple,search:n.props.search}));if(!(l&&m===0)){var w=n.makeSelectedItemActive(o,d);n.setState({selectedIndex:jk({additionLabel:n.props.additionLabel,additionPosition:n.props.additionPosition,allowAdditions:n.props.allowAdditions,deburr:n.props.deburr,multiple:n.props.multiple,search:n.props.search,selectedIndex:d,value:w,options:n.props.options,searchQuery:""})}),n.closeOnChange(o),n.clearSearchQuery(),l&&Te(n.searchRef.current,"focus")}}}},n.removeItemOnBackspace=function(o){var l=n.props,u=l.multiple,c=l.search,d=n.state,p=d.searchQuery,m=d.value;if(Mt.getCode(o)===Mt.Backspace&&!(p||!c||!u||sl(m))){o.preventDefault();var w=CG(m);n.setState({value:w}),n.handleChange(o,w)}},n.closeOnDocumentClick=function(o){n.props.closeOnBlur&&(n.ref.current&&Wa(n.ref.current,o)||n.close())},n.handleMouseDown=function(o){n.isMouseDown=!0,Te(n.props,"onMouseDown",o,n.props),document.addEventListener("mouseup",n.handleDocumentMouseUp)},n.handleDocumentMouseUp=function(){n.isMouseDown=!1,document.removeEventListener("mouseup",n.handleDocumentMouseUp)},n.handleClick=function(o){var l=n.props,u=l.minCharacters,c=l.search,d=n.state,p=d.open,m=d.searchQuery;if(Te(n.props,"onClick",o,n.props),o.stopPropagation(),!c)return n.toggle(o);if(p){Te(n.searchRef.current,"focus");return}if(m.length>=u||u===1){n.open(o);return}Te(n.searchRef.current,"focus")},n.handleIconClick=function(o){var l=n.props.clearable,u=n.hasValue();Te(n.props,"onClick",o,n.props),o.stopPropagation(),l&&u?n.clearValue(o):n.toggle(o)},n.handleItemClick=function(o,l){var u=n.props,c=u.multiple,d=u.search,p=n.state.value,m=l.value;if(o.stopPropagation(),(c||l.disabled)&&o.nativeEvent.stopImmediatePropagation(),!l.disabled){var w=l["data-additional"],g=c?Lk(n.state.value,[m]):m,_=c?!!xk(g,p).length:g!==p;_&&(n.setState({value:g}),n.handleChange(o,g)),n.clearSearchQuery(),Te(d?n.searchRef.current:n.ref.current,"focus"),n.closeOnChange(o),w&&Te(n.props,"onAddItem",o,ie({},n.props,{value:m}))}},n.handleFocus=function(o){var l=n.state.focus;l||(Te(n.props,"onFocus",o,n.props),n.setState({focus:!0}))},n.handleBlur=function(o){var l=Sr(o,"currentTarget");if(!(l&&l.contains(document.activeElement))){var u=n.props,c=u.closeOnBlur,d=u.multiple,p=u.selectOnBlur;n.isMouseDown||(Te(n.props,"onBlur",o,n.props),p&&!d&&(n.makeSelectedItemActive(o,n.state.selectedIndex),c&&n.close()),n.setState({focus:!1}),n.clearSearchQuery())}},n.handleSearchChange=function(o,l){var u=l.value;o.stopPropagation();var c=n.props.minCharacters,d=n.state.open,p=u;if(Te(n.props,"onSearchChange",o,ie({},n.props,{searchQuery:p})),n.setState({searchQuery:p,selectedIndex:0}),!d&&p.length>=c){n.open();return}d&&c!==1&&p.length<c&&n.close()},n.handleKeyDown=function(o){n.moveSelectionOnKeyDown(o),n.openOnArrow(o),n.openOnSpace(o),n.selectItemOnEnter(o),Te(n.props,"onKeyDown",o)},n.getSelectedItem=function(o){var l=ll({value:n.state.value,options:n.props.options,searchQuery:n.state.searchQuery,additionLabel:n.props.additionLabel,additionPosition:n.props.additionPosition,allowAdditions:n.props.allowAdditions,deburr:n.props.deburr,multiple:n.props.multiple,search:n.props.search});return Sr(l,"["+o+"]")},n.getItemByValue=function(o){var l=n.props.options;return SN(l,{value:o})},n.getDropdownAriaOptions=function(){var o=n.props,l=o.loading,u=o.disabled,c=o.search,d=o.multiple,p=n.state.open,m={role:c?"combobox":"listbox","aria-busy":l,"aria-disabled":u,"aria-expanded":!!p};return m.role==="listbox"&&(m["aria-multiselectable"]=d),m},n.clearSearchQuery=function(){var o=n.state.searchQuery;o===void 0||o===""||n.setState({searchQuery:""})},n.handleLabelClick=function(o,l){o.stopPropagation(),n.setState({selectedLabel:l.value}),Te(n.props,"onLabelClick",o,l)},n.handleLabelRemove=function(o,l){o.stopPropagation();var u=n.state.value,c=_q(u,l.value);n.setState({value:c}),n.handleChange(o,c)},n.getSelectedIndexAfterMove=function(o,l){l===void 0&&(l=n.state.selectedIndex);var u=ll({value:n.state.value,options:n.props.options,searchQuery:n.state.searchQuery,additionLabel:n.props.additionLabel,additionPosition:n.props.additionPosition,allowAdditions:n.props.allowAdditions,deburr:n.props.deburr,multiple:n.props.multiple,search:n.props.search});if(!(u===void 0||SG(u,"disabled"))){var c=u.length-1,d=n.props.wrapSelection,p=l+o;return!d&&(p>c||p<0)?p=l:p>c?p=0:p<0&&(p=c),u[p].disabled?n.getSelectedIndexAfterMove(o,p):p}},n.handleIconOverrides=function(o){var l=n.props.clearable,u=be(l&&n.hasValue()&&"clear",o.className);return{className:u,onClick:function(d){Te(o,"onClick",d,o),n.handleIconClick(d)}}},n.clearValue=function(o){var l=n.props.multiple,u=l?[]:"";n.setState({value:u}),n.handleChange(o,u)},n.computeSearchInputTabIndex=function(){var o=n.props,l=o.disabled,u=o.tabIndex;return ut(u)?l?-1:0:u},n.computeSearchInputWidth=function(){var o=n.state.searchQuery;if(n.sizerRef.current&&o){n.sizerRef.current.style.display="inline",n.sizerRef.current.textContent=o;var l=Math.ceil(n.sizerRef.current.getBoundingClientRect().width);return n.sizerRef.current.style.removeProperty("display"),l}},n.computeTabIndex=function(){var o=n.props,l=o.disabled,u=o.search,c=o.tabIndex;if(!u)return l?-1:ut(c)?0:c},n.handleSearchInputOverrides=function(o){return{onChange:function(u,c){Te(o,"onChange",u,c),n.handleSearchChange(u,c)}}},n.hasValue=function(){var o=n.props.multiple,l=n.state.value;return o?!sl(l):!ut(l)&&l!==""},n.scrollSelectedItemIntoView=function(){if(n.ref.current){var o=n.ref.current.querySelector(".menu.visible");if(o){var l=o.querySelector(".item.selected");if(l){var u=l.offsetTop<o.scrollTop,c=l.offsetTop+l.clientHeight>o.scrollTop+o.clientHeight;u?o.scrollTop=l.offsetTop:c&&(o.scrollTop=l.offsetTop+l.clientHeight-o.clientHeight)}}}},n.setOpenDirection=function(){if(n.ref.current){var o=n.ref.current.querySelector(".menu.visible");if(o){var l=n.ref.current.getBoundingClientRect(),u=o.clientHeight,c=document.documentElement.clientHeight-l.top-l.height-u,d=l.top-u,p=c<0&&d>c;!p!=!n.state.upward&&n.setState({upward:p})}}},n.open=function(o,l){o===void 0&&(o=null),l===void 0&&(l=!0);var u=n.props,c=u.disabled,d=u.search;c||(d&&Te(n.searchRef.current,"focus"),Te(n.props,"onOpen",o,n.props),l&&n.setState({open:!0}),n.scrollSelectedItemIntoView())},n.close=function(o,l){l===void 0&&(l=n.handleClose),n.state.open&&(Te(n.props,"onClose",o,n.props),n.setState({open:!1},l))},n.handleClose=function(){var o=document.activeElement===n.searchRef.current;!o&&n.ref.current&&n.ref.current.blur();var l=document.activeElement===n.ref.current,u=o||l;n.setState({focus:u})},n.toggle=function(o){return n.state.open?n.close(o):n.open(o)},n.renderText=function(){var o=n.props,l=o.multiple,u=o.placeholder,c=o.search,d=o.text,p=n.state,m=p.searchQuery,w=p.selectedIndex,g=p.value,_=p.open,E=n.hasValue(),x=be(u&&!E&&"default","text",c&&m&&"filtered"),b=u,C;return d?b=d:_&&!l?C=n.getSelectedItem(w):E&&(C=n.getItemByValue(g)),eo.create(C?iM(C):b,{defaultProps:{className:x}})},n.renderSearchInput=function(){var o=n.props,l=o.search,u=o.searchInput,c=n.state.searchQuery;return l&&te.createElement(Jn,{innerRef:n.searchRef},ns.create(u,{defaultProps:{style:{width:n.computeSearchInputWidth()},tabIndex:n.computeSearchInputTabIndex(),value:c},overrideProps:n.handleSearchInputOverrides}))},n.renderSearchSizer=function(){var o=n.props,l=o.search,u=o.multiple;return l&&u&&te.createElement("span",{className:"sizer",ref:n.sizerRef})},n.renderLabels=function(){var o=n.props,l=o.multiple,u=o.renderLabel,c=n.state,d=c.selectedLabel,p=c.value;if(!(!l||sl(p))){var m=Mn(p,n.getItemByValue);return Mn(bG(m),function(w,g){var _={active:w.value===d,as:"a",key:Bk(w.key,w.value),onClick:n.handleLabelClick,onRemove:n.handleLabelRemove,value:w.value};return ur.create(u(w,g,_),{defaultProps:_})})}},n.renderOptions=function(){var o=n.props,l=o.lazyLoad,u=o.multiple,c=o.search,d=o.noResultsMessage,p=n.state,m=p.open,w=p.selectedIndex,g=p.value;if(l&&!m)return null;var _=ll({value:n.state.value,options:n.props.options,searchQuery:n.state.searchQuery,additionLabel:n.props.additionLabel,additionPosition:n.props.additionPosition,allowAdditions:n.props.allowAdditions,deburr:n.props.deburr,multiple:n.props.multiple,search:n.props.search});if(d!==null&&c&&sl(_))return te.createElement("div",{className:"message"},d);var E=u?function(x){return mi(g,x)}:function(x){return x===g};return Mn(_,function(x,b){return Sl.create(ie({active:E(x.value),selected:w===b},x,{key:Bk(x.key,x.value),style:ie({},x.style,{pointerEvents:"all"})}),{generateKey:!1,overrideProps:function(v){return{onClick:function(T,N){v.onClick==null||v.onClick(T,N),n.handleItemClick(T,N)}}}})})},n.renderMenu=function(){var o=n.props,l=o.children,u=o.direction,c=o.header,d=n.state.open,p=n.getDropdownMenuAriaOptions();if(!Pe(l)){var m=J.Children.only(l),w=be(u,ee(d,"visible"),m.props.className);return J.cloneElement(m,ie({className:w},p))}return te.createElement(Cl,ie({},p,{direction:u,open:d}),Za.create(c,{autoGenerateKey:!1}),n.renderOptions())},n}var r=t.prototype;return r.getInitialAutoControlledState=function(){return{focus:!1,searchQuery:""}},t.getAutoControlledStateFromProps=function(i,a,s){var o={__options:i.options,__value:a.value},l=!Va(s.__value,a.value)||!pq(zk(i.options),zk(s.__options));return l&&(o.selectedIndex=jk({additionLabel:i.additionLabel,additionPosition:i.additionPosition,allowAdditions:i.allowAdditions,deburr:i.deburr,multiple:i.multiple,search:i.search,selectedIndex:a.selectedIndex,value:a.value,options:i.options,searchQuery:a.searchQuery})),o},r.componentDidMount=function(){var i=this.state.open;i&&this.open(null,!1)},r.shouldComponentUpdate=function(i,a){return!Va(i,this.props)||!Va(a,this.state)},r.componentDidUpdate=function(i,a){var s=this.props,o=s.closeOnBlur,l=s.minCharacters,u=s.openOnFocus,c=s.search;if(!a.focus&&this.state.focus){if(!this.isMouseDown){var d=!c||c&&l===1&&!this.state.open;u&&d&&this.open()}}else a.focus&&!this.state.focus&&!this.isMouseDown&&o&&this.close();!a.open&&this.state.open?(this.setOpenDirection(),this.scrollSelectedItemIntoView()):a.open&&this.state.open,a.selectedIndex!==this.state.selectedIndex&&this.scrollSelectedItemIntoView()},r.getDropdownMenuAriaOptions=function(){var i=this.props,a=i.search,s=i.multiple,o={};return a&&(o["aria-multiselectable"]=s,o.role="listbox"),o},r.render=function(){var i=this.props,a=i.basic,s=i.button,o=i.className,l=i.compact,u=i.disabled,c=i.error,d=i.fluid,p=i.floating,m=i.icon,w=i.inline,g=i.item,_=i.labeled,E=i.loading,x=i.multiple,b=i.pointing,C=i.search,v=i.selection,k=i.scrolling,T=i.simple,N=i.trigger,M=this.state,j=M.focus,D=M.open,$=M.upward,X=be("ui",ee(D,"active visible"),ee(u,"disabled"),ee(c,"error"),ee(E,"loading"),ee(a,"basic"),ee(s,"button"),ee(l,"compact"),ee(d,"fluid"),ee(p,"floating"),ee(w,"inline"),ee(_,"labeled"),ee(g,"item"),ee(x,"multiple"),ee(C,"search"),ee(v,"selection"),ee(T,"simple"),ee(k,"scrolling"),ee($,"upward"),Rt(b,"pointing"),"dropdown",o),W=xe(t,this.props),H=Ce(t,this.props),V=this.getDropdownAriaOptions(H,this.props);return te.createElement(Jn,{innerRef:this.ref},te.createElement(H,ie({},W,V,{className:X,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(),N||this.renderText(),Je.create(m,{overrideProps:this.handleIconOverrides,autoGenerateKey:!1}),this.renderMenu(),D&&te.createElement(Gi,{name:"keydown",on:this.closeOnEscape}),D&&te.createElement(Gi,{name:"click",on:this.closeOnDocumentClick}),j&&te.createElement(Gi,{name:"keydown",on:this.removeItemOnBackspace})))},t}(_s);Ze.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"];Ze.propTypes={};Ze.defaultProps={additionLabel:"Add ",additionPosition:"top",closeOnBlur:!0,closeOnEscape:!0,deburr:!1,icon:"dropdown",minCharacters:1,noResultsMessage:"No results found.",openOnFocus:!0,renderLabel:iM,searchInput:"text",selectOnBlur:!0,selectOnNavigation:!0,wrapSelection:!0};Ze.autoControlledProps=["open","searchQuery","selectedLabel","value","upward"];Ze.Divider=lf;Ze.Header=Za;Ze.Item=Sl;Ze.Menu=Cl;Ze.SearchInput=ns;Ze.Text=eo;function bs(e){return te.createElement(Ze,ie({},e,{selection:!0}))}bs.handledProps=["options"];bs.propTypes={};bs.Divider=Ze.Divider;bs.Header=Ze.Header;bs.Item=Ze.Item;bs.Menu=Ze.Menu;var ym=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.ref=J.createRef(),n.focus=function(){return n.ref.current.focus()},n.handleChange=function(o){var l=Sr(o,"target.value");Te(n.props,"onChange",o,ie({},n.props,{value:l}))},n.handleInput=function(o){var l=Sr(o,"target.value");Te(n.props,"onInput",o,ie({},n.props,{value:l}))},n}var r=t.prototype;return r.render=function(){var i=this.props,a=i.rows,s=i.value,o=xe(t,this.props),l=Ce(t,this.props);return te.createElement(Jn,{innerRef:this.ref},te.createElement(l,ie({},o,{onChange:this.handleChange,onInput:this.handleInput,rows:a,value:s})))},t}(J.Component);ym.handledProps=["as","onChange","onInput","rows","value"];ym.propTypes={};ym.defaultProps={as:"textarea",rows:3};function Ar(e){var t=e.children,r=e.className,n=e.content,i=e.control,a=e.disabled,s=e.error,o=e.inline,l=e.label,u=e.required,c=e.type,d=e.width,p=e.id,m=be(ee(a,"disabled"),ee(s,"error"),ee(o,"inline"),ee(u,"required"),Gn(d,"wide"),"field",r),w=xe(Ar,e),g=Ce(Ar,e),_=Sr(s,"pointing","above"),E=ur.create(s,{autoGenerateKey:!1,defaultProps:{prompt:!0,pointing:_,id:p?p+"-error-message":void 0,role:"alert","aria-atomic":!0}}),x=(_==="below"||_==="right")&&E,b=(_==="above"||_==="left")&&E;if(ut(i))return ut(l)?te.createElement(g,ie({},w,{className:m,id:p}),Pe(t)?n:t):te.createElement(g,ie({},w,{className:m,id:p}),x,V_(l,{autoGenerateKey:!1}),b);var C=p&&s?p+"-error-message":null,v={"aria-describedby":C,"aria-invalid":s?!0:void 0},k=ie({},w,{content:n,children:t,disabled:a,required:u,type:c,id:p});return i==="input"&&(c==="checkbox"||c==="radio")?te.createElement(g,{className:m},te.createElement("label",null,x,J.createElement(i,ie({},v,k))," ",l,b)):i===qn||i===du?te.createElement(g,{className:m},x,J.createElement(i,ie({},v,k,{label:l})),b):te.createElement(g,{className:m},V_(l,{defaultProps:{htmlFor:p},autoGenerateKey:!1}),x,J.createElement(i,ie({},v,k)),b)}Ar.handledProps=["as","children","className","content","control","disabled","error","id","inline","label","required","type","width"];Ar.propTypes={};function kl(e){var t=e.control,r=xe(kl,e),n=Ce(kl,e);return te.createElement(n,ie({},r,{control:t}))}kl.handledProps=["as","control"];kl.propTypes={};kl.defaultProps={as:Ar,control:nn};function Al(e){var t=e.control,r=xe(Al,e),n=Ce(Al,e);return te.createElement(n,ie({},r,{control:t}))}Al.handledProps=["as","control"];Al.propTypes={};Al.defaultProps={as:Ar,control:qn};function Tl(e){var t=e.control,r=xe(Tl,e),n=Ce(Tl,e);return te.createElement(n,ie({},r,{control:t}))}Tl.handledProps=["as","control"];Tl.propTypes={};Tl.defaultProps={as:Ar,control:Ze};function uf(e){var t=e.children,r=e.className,n=e.grouped,i=e.inline,a=e.unstackable,s=e.widths,o=be(ee(n,"grouped"),ee(i,"inline"),ee(a,"unstackable"),Gn(s,null,!0),"fields",r),l=xe(uf,e),u=Ce(uf,e);return te.createElement(u,ie({},l,{className:o}),t)}uf.handledProps=["as","children","className","grouped","inline","unstackable","widths"];uf.propTypes={};var Ji=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.inputRef=J.createRef(),n.computeIcon=function(){var o=n.props,l=o.loading,u=o.icon;if(!ut(u))return u;if(l)return"spinner"},n.computeTabIndex=function(){var o=n.props,l=o.disabled,u=o.tabIndex;if(!ut(u))return u;if(l)return-1},n.focus=function(o){return n.inputRef.current.focus(o)},n.select=function(){return n.inputRef.current.select()},n.handleChange=function(o){var l=Sr(o,"target.value");Te(n.props,"onChange",o,ie({},n.props,{value:l}))},n.handleChildOverrides=function(o,l){return ie({},l,o.props,{ref:function(c){pi(o.ref,c),n.inputRef.current=c}})},n.partitionProps=function(){var o=n.props,l=o.disabled,u=o.type,c=n.computeTabIndex(),d=xe(t,n.props),p=mm(d),m=p[0],w=p[1];return[ie({},m,{disabled:l,type:u,tabIndex:c,onChange:n.handleChange,ref:n.inputRef}),w]},n}var r=t.prototype;return r.render=function(){var i=this,a=this.props,s=a.action,o=a.actionPosition,l=a.children,u=a.className,c=a.disabled,d=a.error,p=a.fluid,m=a.focus,w=a.icon,g=a.iconPosition,_=a.input,E=a.inverted,x=a.label,b=a.labelPosition,C=a.loading,v=a.size,k=a.transparent,T=a.type,N=be("ui",v,ee(c,"disabled"),ee(d,"error"),ee(p,"fluid"),ee(m,"focus"),ee(E,"inverted"),ee(C,"loading"),ee(k,"transparent"),pn(o,"action")||ee(s,"action"),pn(g,"icon")||ee(w||C,"icon"),pn(b,"labeled")||ee(x,"labeled"),"input",u),M=Ce(t,this.props),j=this.partitionProps(),D=j[0],$=j[1];if(!Pe(l)){var X=Mn(J.Children.toArray(l),function(V){return V.type!=="input"?V:J.cloneElement(V,i.handleChildOverrides(V,D))});return te.createElement(M,ie({},$,{className:N}),X)}var W=nn.create(s,{autoGenerateKey:!1}),H=ur.create(x,{defaultProps:{className:be("label",mi(b,"corner")&&b)},autoGenerateKey:!1});return te.createElement(M,ie({},$,{className:N}),o==="left"&&W,b!=="right"&&H,eq(_||T,{defaultProps:D,autoGenerateKey:!1}),Je.create(this.computeIcon(),{autoGenerateKey:!1}),o!=="left"&&W,b==="right"&&H)},t}(J.Component);Ji.handledProps=["action","actionPosition","as","children","className","disabled","error","fluid","focus","icon","iconPosition","input","inverted","label","labelPosition","loading","onChange","size","tabIndex","transparent","type"];Ji.propTypes={};Ji.defaultProps={type:"text"};Ji.create=nt(Ji,function(e){return{type:e}});function Il(e){var t=e.control,r=xe(Il,e),n=Ce(Il,e);return te.createElement(n,ie({},r,{control:t}))}Il.handledProps=["as","control"];Il.propTypes={};Il.defaultProps={as:Ar,control:Ji};function Pl(e){var t=e.control,r=xe(Pl,e),n=Ce(Pl,e);return te.createElement(n,ie({},r,{control:t}))}Pl.handledProps=["as","control"];Pl.propTypes={};Pl.defaultProps={as:Ar,control:du};function Rl(e){var t=e.control,r=e.options,n=xe(Rl,e),i=Ce(Rl,e);return te.createElement(i,ie({},n,{control:t,options:r}))}Rl.handledProps=["as","control","options"];Rl.propTypes={};Rl.defaultProps={as:Ar,control:bs};function Ol(e){var t=e.control,r=xe(Ol,e),n=Ce(Ol,e);return te.createElement(n,ie({},r,{control:t}))}Ol.handledProps=["as","control"];Ol.propTypes={};Ol.defaultProps={as:Ar,control:ym};var Gt=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.handleSubmit=function(o){var l=n.props.action;typeof l!="string"&&Te(o,"preventDefault");for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];Te.apply(void 0,[n.props,"onSubmit",o,n.props].concat(c))},n}var r=t.prototype;return r.render=function(){var i=this.props,a=i.action,s=i.children,o=i.className,l=i.error,u=i.inverted,c=i.loading,d=i.reply,p=i.size,m=i.success,w=i.unstackable,g=i.warning,_=i.widths,E=be("ui",p,ee(l,"error"),ee(u,"inverted"),ee(c,"loading"),ee(d,"reply"),ee(m,"success"),ee(w,"unstackable"),ee(g,"warning"),Gn(_,null,!0),"form",o),x=xe(t,this.props),b=Ce(t,this.props);return te.createElement(b,ie({},x,{action:a,className:E,onSubmit:this.handleSubmit}),s)},t}(J.Component);Gt.handledProps=["action","as","children","className","error","inverted","loading","onSubmit","reply","size","success","unstackable","warning","widths"];Gt.propTypes={};Gt.defaultProps={as:"form"};Gt.Field=Ar;Gt.Button=kl;Gt.Checkbox=Al;Gt.Dropdown=Tl;Gt.Group=uf;Gt.Input=Il;Gt.Radio=Pl;Gt.Select=Rl;Gt.TextArea=Ol;function gi(e){var t=e.children,r=e.className,n=e.computer,i=e.color,a=e.floated,s=e.largeScreen,o=e.mobile,l=e.only,u=e.stretched,c=e.tablet,d=e.textAlign,p=e.verticalAlign,m=e.widescreen,w=e.width,g=be(i,ee(u,"stretched"),Lp(l,"only"),Yr(d),pn(a,"floated"),ca(p),Gn(n,"wide computer"),Gn(s,"wide large screen"),Gn(o,"wide mobile"),Gn(c,"wide tablet"),Gn(m,"wide widescreen"),Gn(w,"wide"),"column",r),_=xe(gi,e),E=Ce(gi,e);return te.createElement(E,ie({},_,{className:g}),t)}gi.handledProps=["as","children","className","color","computer","floated","largeScreen","mobile","only","stretched","tablet","textAlign","verticalAlign","widescreen","width"];gi.propTypes={};gi.create=nt(gi,function(e){return{children:e}});function cf(e){var t=e.centered,r=e.children,n=e.className,i=e.color,a=e.columns,s=e.divided,o=e.only,l=e.reversed,u=e.stretched,c=e.textAlign,d=e.verticalAlign,p=be(i,ee(t,"centered"),ee(s,"divided"),ee(u,"stretched"),Lp(o,"only"),Lp(l,"reversed"),Yr(c),ca(d),Gn(a,"column",!0),"row",n),m=xe(cf,e),w=Ce(cf,e);return te.createElement(w,ie({},m,{className:p}),r)}cf.handledProps=["as","centered","children","className","color","columns","divided","only","reversed","stretched","textAlign","verticalAlign"];cf.propTypes={};function Qr(e){var t=e.celled,r=e.centered,n=e.children,i=e.className,a=e.columns,s=e.container,o=e.divided,l=e.doubling,u=e.inverted,c=e.padded,d=e.relaxed,p=e.reversed,m=e.stackable,w=e.stretched,g=e.textAlign,_=e.verticalAlign,E=be("ui",ee(r,"centered"),ee(s,"container"),ee(l,"doubling"),ee(u,"inverted"),ee(m,"stackable"),ee(w,"stretched"),Rt(t,"celled"),Rt(o,"divided"),Rt(c,"padded"),Rt(d,"relaxed"),Lp(p,"reversed"),Yr(g),ca(_),Gn(a,"column",!0),"grid",i),x=xe(Qr,e),b=Ce(Qr,e);return te.createElement(b,ie({},x,{className:E}),n)}Qr.handledProps=["as","celled","centered","children","className","columns","container","divided","doubling","inverted","padded","relaxed","reversed","stackable","stretched","textAlign","verticalAlign"];Qr.Column=gi;Qr.Row=cf;Qr.propTypes={};function Nl(e){var t=e.children,r=e.className,n=e.content,i=be("content",r),a=xe(Nl,e),s=Ce(Nl,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}Nl.handledProps=["as","children","className","content"];Nl.propTypes={};function to(e){var t=e.children,r=e.className,n=e.content,i=be("header",r),a=xe(to,e),s=Ce(to,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}to.handledProps=["as","children","className","content"];to.propTypes={};to.create=nt(to,function(e){return{content:e}});function Zi(e){var t=e.children,r=e.className,n=e.content,i=be("content",r),a=xe(Zi,e),s=Ce(Zi,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}Zi.handledProps=["as","children","className","content"];Zi.propTypes={};Zi.defaultProps={as:"li"};Zi.create=nt(Zi,function(e){return{content:e}});function ea(e){var t=e.children,r=e.className,n=e.items,i=be("list",r),a=xe(ea,e),s=Ce(ea,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?Mn(n,Zi.create):t)}ea.handledProps=["as","children","className","items"];ea.propTypes={};ea.defaultProps={as:"ul"};ea.create=nt(ea,function(e){return{items:e}});var Dn=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.handleDismiss=function(o){var l=n.props.onDismiss;l&&l(o,n.props)},n}var r=t.prototype;return r.render=function(){var i=this.props,a=i.attached,s=i.children,o=i.className,l=i.color,u=i.compact,c=i.content,d=i.error,p=i.floating,m=i.header,w=i.hidden,g=i.icon,_=i.info,E=i.list,x=i.negative,b=i.onDismiss,C=i.positive,v=i.size,k=i.success,T=i.visible,N=i.warning,M=be("ui",l,v,ee(u,"compact"),ee(d,"error"),ee(p,"floating"),ee(w,"hidden"),ee(g,"icon"),ee(_,"info"),ee(x,"negative"),ee(C,"positive"),ee(k,"success"),ee(T,"visible"),ee(N,"warning"),Rt(a,"attached"),"message",o),j=b&&te.createElement(Je,{name:"close",onClick:this.handleDismiss}),D=xe(t,this.props),$=Ce(t,this.props);return Pe(s)?te.createElement($,ie({},D,{className:M}),j,Je.create(g,{autoGenerateKey:!1}),(!ut(m)||!ut(c)||!ut(E))&&te.createElement(Nl,null,to.create(m,{autoGenerateKey:!1}),ea.create(E,{autoGenerateKey:!1}),tq(c,{autoGenerateKey:!1}))):te.createElement($,ie({},D,{className:M}),j,s)},t}(J.Component);Dn.handledProps=["as","attached","children","className","color","compact","content","error","floating","header","hidden","icon","info","list","negative","onDismiss","positive","size","success","visible","warning"];Dn.propTypes={};Dn.Content=Nl;Dn.Header=to;Dn.List=ea;Dn.Item=Zi;function ff(e){var t=e.children,r=e.className,n=e.content,i=e.fluid,a=e.text,s=e.textAlign,o=be("ui",ee(a,"text"),ee(i,"fluid"),Yr(s),"container",r),l=xe(ff,e),u=Ce(ff,e);return te.createElement(u,ie({},l,{className:o}),Pe(t)?n:t)}ff.handledProps=["as","children","className","content","fluid","text","textAlign"];ff.propTypes={};function df(e){var t=e.children,r=e.className,n=e.clearing,i=e.content,a=e.fitted,s=e.hidden,o=e.horizontal,l=e.inverted,u=e.section,c=e.vertical,d=be("ui",ee(n,"clearing"),ee(a,"fitted"),ee(s,"hidden"),ee(o,"horizontal"),ee(l,"inverted"),ee(u,"section"),ee(c,"vertical"),"divider",r),p=xe(df,e),m=Ce(df,e);return te.createElement(m,ie({},p,{className:d}),Pe(t)?i:t)}df.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"];df.propTypes={};function no(e){var t=e.children,r=e.className,n=e.content,i=be("sub header",r),a=xe(no,e),s=Ce(no,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}no.handledProps=["as","children","className","content"];no.propTypes={};no.create=nt(no,function(e){return{content:e}});function Ml(e){var t=e.children,r=e.className,n=e.content,i=be("content",r),a=xe(Ml,e),s=Ce(Ml,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}Ml.handledProps=["as","children","className","content"];Ml.propTypes={};function $t(e){var t=e.attached,r=e.block,n=e.children,i=e.className,a=e.color,s=e.content,o=e.disabled,l=e.dividing,u=e.floated,c=e.icon,d=e.image,p=e.inverted,m=e.size,w=e.sub,g=e.subheader,_=e.textAlign,E=be("ui",a,m,ee(r,"block"),ee(o,"disabled"),ee(l,"dividing"),pn(u,"floated"),ee(c===!0,"icon"),ee(d===!0,"image"),ee(p,"inverted"),ee(w,"sub"),Rt(t,"attached"),Yr(_),"header",i),x=xe($t,e),b=Ce($t,e);if(!Pe(n))return te.createElement(b,ie({},x,{className:E}),n);var C=Je.create(c,{autoGenerateKey:!1}),v=sn.create(d,{autoGenerateKey:!1}),k=no.create(g,{autoGenerateKey:!1});return C||v?te.createElement(b,ie({},x,{className:E}),C||v,(s||k)&&te.createElement(Ml,null,s,k)):te.createElement(b,ie({},x,{className:E}),s,k)}$t.handledProps=["as","attached","block","children","className","color","content","disabled","dividing","floated","icon","image","inverted","size","sub","subheader","textAlign"];$t.propTypes={};$t.Content=Ml;$t.Subheader=no;function ta(e){var t=e.children,r=e.className,n=e.content,i=be(r,"description"),a=xe(ta,e),s=Ce(ta,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}ta.handledProps=["as","children","className","content"];ta.propTypes={};ta.create=nt(ta,function(e){return{content:e}});function na(e){var t=e.children,r=e.className,n=e.content,i=be("header",r),a=xe(na,e),s=Ce(na,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}na.handledProps=["as","children","className","content"];na.propTypes={};na.create=nt(na,function(e){return{content:e}});function ra(e){var t=e.children,r=e.className,n=e.content,i=e.description,a=e.floated,s=e.header,o=e.verticalAlign,l=be(pn(a,"floated"),ca(o),"content",r),u=xe(ra,e),c=Ce(ra,e);return Pe(t)?te.createElement(c,ie({},u,{className:l}),na.create(s),ta.create(i),n):te.createElement(c,ie({},u,{className:l}),t)}ra.handledProps=["as","children","className","content","description","floated","header","verticalAlign"];ra.propTypes={};ra.create=nt(ra,function(e){return{content:e}});function rs(e){var t=e.className,r=e.verticalAlign,n=be(ca(r),t),i=xe(rs,e);return te.createElement(Je,ie({},i,{className:n}))}rs.handledProps=["className","verticalAlign"];rs.propTypes={};rs.create=nt(rs,function(e){return{name:e}});var Dl=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.handleClick=function(o){var l=n.props.disabled;l||Te(n.props,"onClick",o,n.props)},n}var r=t.prototype;return r.render=function(){var i=this.props,a=i.active,s=i.children,o=i.className,l=i.content,u=i.description,c=i.disabled,d=i.header,p=i.icon,m=i.image,w=i.value,g=Ce(t,this.props),_=be(ee(a,"active"),ee(c,"disabled"),ee(g!=="li","item"),o),E=xe(t,this.props),x=g==="li"?{value:w}:{"data-value":w};if(!Pe(s))return te.createElement(g,ie({},x,{role:"listitem",className:_,onClick:this.handleClick},E),s);var b=rs.create(p,{autoGenerateKey:!1}),C=sn.create(m,{autoGenerateKey:!1});if(!J.isValidElement(l)&&Wf(l))return te.createElement(g,ie({},x,{role:"listitem",className:_,onClick:this.handleClick},E),b||C,ra.create(l,{autoGenerateKey:!1,defaultProps:{header:d,description:u}}));var v=na.create(d,{autoGenerateKey:!1}),k=ta.create(u,{autoGenerateKey:!1});return b||C?te.createElement(g,ie({},x,{role:"listitem",className:_,onClick:this.handleClick},E),b||C,(l||v||k)&&te.createElement(ra,null,v,k,l)):te.createElement(g,ie({},x,{role:"listitem",className:_,onClick:this.handleClick},E),v,k,l)},t}(J.Component);Dl.handledProps=["active","as","children","className","content","description","disabled","header","icon","image","onClick","value"];Dl.propTypes={};Dl.create=nt(Dl,function(e){return{content:e}});function hf(e){var t=e.children,r=e.className,n=e.content,i=xe(hf,e),a=Ce(hf,e),s=be(ee(a!=="ul"&&a!=="ol","list"),r);return te.createElement(a,ie({},i,{className:s}),Pe(t)?n:t)}hf.handledProps=["as","children","className","content"];hf.propTypes={};var Ke=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.handleItemOverrides=function(o){return{onClick:function(u,c){Te(o,"onClick",u,c),Te(n.props,"onItemClick",u,c)}}},n}var r=t.prototype;return r.render=function(){var i=this,a=this.props,s=a.animated,o=a.bulleted,l=a.celled,u=a.children,c=a.className,d=a.content,p=a.divided,m=a.floated,w=a.horizontal,g=a.inverted,_=a.items,E=a.link,x=a.ordered,b=a.relaxed,C=a.selection,v=a.size,k=a.verticalAlign,T=be("ui",v,ee(s,"animated"),ee(o,"bulleted"),ee(l,"celled"),ee(p,"divided"),ee(w,"horizontal"),ee(g,"inverted"),ee(E,"link"),ee(x,"ordered"),ee(C,"selection"),Rt(b,"relaxed"),pn(m,"floated"),ca(k),"list",c),N=xe(t,this.props),M=Ce(t,this.props);return Pe(u)?Pe(d)?te.createElement(M,ie({role:"list",className:T},N),Mn(_,function(j){return Dl.create(j,{overrideProps:i.handleItemOverrides})})):te.createElement(M,ie({role:"list",className:T},N),d):te.createElement(M,ie({role:"list",className:T},N),u)},t}(J.Component);Ke.handledProps=["animated","as","bulleted","celled","children","className","content","divided","floated","horizontal","inverted","items","link","onItemClick","ordered","relaxed","selection","size","verticalAlign"];Ke.propTypes={};Ke.Content=ra;Ke.Description=ta;Ke.Header=na;Ke.Icon=rs;Ke.Item=Dl;Ke.List=hf;function Fl(e){var t=e.active,r=e.children,n=e.className,i=e.content,a=e.disabled,s=e.indeterminate,o=e.inline,l=e.inverted,u=e.size,c=be("ui",u,ee(t,"active"),ee(a,"disabled"),ee(s,"indeterminate"),ee(l,"inverted"),ee(r||i,"text"),Rt(o,"inline"),"loader",n),d=xe(Fl,e),p=Ce(Fl,e);return te.createElement(p,ie({},d,{className:c}),Pe(r)?i:r)}Fl.handledProps=["active","as","children","className","content","disabled","indeterminate","inline","inverted","size"];Fl.propTypes={};function pf(e){var t=e.children,r=e.className,n=e.content,i=e.image,a=be(ee(i,"image"),"header",r),s=xe(pf,e),o=Ce(pf,e);return te.createElement(o,ie({},s,{className:a}),Pe(t)?n:t)}pf.handledProps=["as","children","className","content","image"];pf.propTypes={};function mf(e){var t=e.className,r=e.square,n=e.rectangular,i=be(ee(r,"square"),ee(n,"rectangular"),"image",t),a=xe(mf,e),s=Ce(mf,e);return te.createElement(s,ie({},a,{className:i}))}mf.handledProps=["as","className","rectangular","square"];mf.propTypes={};function gf(e){var t=e.className,r=e.length,n=be("line",r,t),i=xe(gf,e),a=Ce(gf,e);return te.createElement(a,ie({},i,{className:n}))}gf.handledProps=["as","className","length"];gf.propTypes={};function vf(e){var t=e.children,r=e.className,n=e.content,i=be("paragraph",r),a=xe(vf,e),s=Ce(vf,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}vf.handledProps=["as","children","className","content"];vf.propTypes={};function bi(e){var t=e.children,r=e.className,n=e.content,i=e.fluid,a=e.inverted,s=be("ui",ee(i,"fluid"),ee(a,"inverted"),"placeholder",r),o=xe(bi,e),l=Ce(bi,e);return te.createElement(l,ie({},o,{className:s}),Pe(t)?n:t)}bi.handledProps=["as","children","className","content","fluid","inverted"];bi.propTypes={};bi.Header=pf;bi.Image=mf;bi.Line=gf;bi.Paragraph=vf;function yf(e){var t=e.children,r=e.className,n=e.compact,i=e.content,a=e.horizontal,s=e.piled,o=e.raised,l=e.size,u=e.stacked,c=be("ui",l,ee(n,"compact"),ee(a,"horizontal"),ee(s,"piled"),ee(o,"raised"),ee(u,"stacked"),"segments",r),d=xe(yf,e),p=Ce(yf,e);return te.createElement(p,ie({},d,{className:c}),Pe(t)?i:t)}yf.handledProps=["as","children","className","compact","content","horizontal","piled","raised","size","stacked"];yf.propTypes={};function wf(e){var t=e.children,r=e.className,n=e.content,i=be("inline",r),a=xe(wf,e),s=Ce(wf,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}wf.handledProps=["as","children","className","content"];wf.propTypes={};function ro(e){var t=e.attached,r=e.basic,n=e.children,i=e.circular,a=e.className,s=e.clearing,o=e.color,l=e.compact,u=e.content,c=e.disabled,d=e.floated,p=e.inverted,m=e.loading,w=e.placeholder,g=e.padded,_=e.piled,E=e.raised,x=e.secondary,b=e.size,C=e.stacked,v=e.tertiary,k=e.textAlign,T=e.vertical,N=be("ui",o,b,ee(r,"basic"),ee(i,"circular"),ee(s,"clearing"),ee(l,"compact"),ee(c,"disabled"),ee(p,"inverted"),ee(m,"loading"),ee(w,"placeholder"),ee(_,"piled"),ee(E,"raised"),ee(x,"secondary"),ee(C,"stacked"),ee(v,"tertiary"),ee(T,"vertical"),Rt(t,"attached"),Rt(g,"padded"),Yr(k),pn(d,"floated"),"segment",a),M=xe(ro,e),j=Ce(ro,e);return te.createElement(j,ie({},M,{className:N}),Pe(n)?u:n)}ro.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"];ro.Group=yf;ro.Inline=wf;ro.propTypes={};function GG(e){return lr(e)&&e.nodeType===1&&!Wf(e)}var WG=J.createContext();J.createContext();var VG=function(t){return Array.isArray(t)?t[0]:t},QG=function(t){if(typeof t=="function"){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return t.apply(void 0,n)}},KG=function(t,r){if(typeof t=="function")return QG(t,r);t!=null&&(t.current=r)},Uk=function(t){return t.reduce(function(r,n){var i=n[0],a=n[1];return r[i]=a,r},{})},$k=typeof window<"u"&&window.document&&window.document.createElement?J.useLayoutEffect:J.useEffect,Kn="top",Tr="bottom",Ir="right",Yn="left",vb="auto",Vf=[Kn,Tr,Ir,Yn],Ll="start",_f="end",YG="clippingParents",aM="viewport",cc="popper",XG="reference",Hk=Vf.reduce(function(e,t){return e.concat([t+"-"+Ll,t+"-"+_f])},[]),oM=[].concat(Vf,[vb]).reduce(function(e,t){return e.concat([t,t+"-"+Ll,t+"-"+_f])},[]),JG="beforeRead",ZG="read",e7="afterRead",t7="beforeMain",n7="main",r7="afterMain",i7="beforeWrite",a7="write",o7="afterWrite",s7=[JG,ZG,e7,t7,n7,r7,i7,a7,o7];function xi(e){return e?(e.nodeName||"").toLowerCase():null}function cr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function is(e){var t=cr(e).Element;return e instanceof t||e instanceof Element}function kr(e){var t=cr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function yb(e){if(typeof ShadowRoot>"u")return!1;var t=cr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function l7(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!kr(a)||!xi(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function u7(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),o=s.reduce(function(l,u){return l[u]="",l},{});!kr(i)||!xi(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const c7={name:"applyStyles",enabled:!0,phase:"write",fn:l7,effect:u7,requires:["computeStyles"]};function vi(e){return e.split("-")[0]}var Ko=Math.max,jp=Math.min,jl=Math.round;function J_(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function sM(){return!/^((?!chrome|android).)*safari/i.test(J_())}function Bl(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&kr(e)&&(i=e.offsetWidth>0&&jl(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&jl(n.height)/e.offsetHeight||1);var s=is(e)?cr(e):window,o=s.visualViewport,l=!sM()&&r,u=(n.left+(l&&o?o.offsetLeft:0))/i,c=(n.top+(l&&o?o.offsetTop:0))/a,d=n.width/i,p=n.height/a;return{width:d,height:p,top:c,right:u+d,bottom:c+p,left:u,x:u,y:c}}function wb(e){var t=Bl(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function lM(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&yb(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ia(e){return cr(e).getComputedStyle(e)}function f7(e){return["table","td","th"].indexOf(xi(e))>=0}function vo(e){return((is(e)?e.ownerDocument:e.document)||window.document).documentElement}function wm(e){return xi(e)==="html"?e:e.assignedSlot||e.parentNode||(yb(e)?e.host:null)||vo(e)}function qk(e){return!kr(e)||ia(e).position==="fixed"?null:e.offsetParent}function d7(e){var t=/firefox/i.test(J_()),r=/Trident/i.test(J_());if(r&&kr(e)){var n=ia(e);if(n.position==="fixed")return null}var i=wm(e);for(yb(i)&&(i=i.host);kr(i)&&["html","body"].indexOf(xi(i))<0;){var a=ia(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Qf(e){for(var t=cr(e),r=qk(e);r&&f7(r)&&ia(r).position==="static";)r=qk(r);return r&&(xi(r)==="html"||xi(r)==="body"&&ia(r).position==="static")?t:r||d7(e)||t}function _b(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zc(e,t,r){return Ko(e,jp(t,r))}function h7(e,t,r){var n=zc(e,t,r);return n>r?r:n}function uM(){return{top:0,right:0,bottom:0,left:0}}function cM(e){return Object.assign({},uM(),e)}function fM(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var p7=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,cM(typeof t!="number"?t:fM(t,Vf))};function m7(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,o=vi(r.placement),l=_b(o),u=[Yn,Ir].indexOf(o)>=0,c=u?"height":"width";if(!(!a||!s)){var d=p7(i.padding,r),p=wb(a),m=l==="y"?Kn:Yn,w=l==="y"?Tr:Ir,g=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],_=s[l]-r.rects.reference[l],E=Qf(a),x=E?l==="y"?E.clientHeight||0:E.clientWidth||0:0,b=g/2-_/2,C=d[m],v=x-p[c]-d[w],k=x/2-p[c]/2+b,T=zc(C,k,v),N=l;r.modifiersData[n]=(t={},t[N]=T,t.centerOffset=T-k,t)}}function g7(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||lM(t.elements.popper,i)&&(t.elements.arrow=i))}const v7={name:"arrow",enabled:!0,phase:"main",fn:m7,effect:g7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zl(e){return e.split("-")[1]}var y7={top:"auto",right:"auto",bottom:"auto",left:"auto"};function w7(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:jl(r*i)/i||0,y:jl(n*i)/i||0}}function Gk(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=s.x,m=p===void 0?0:p,w=s.y,g=w===void 0?0:w,_=typeof c=="function"?c({x:m,y:g}):{x:m,y:g};m=_.x,g=_.y;var E=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),b=Yn,C=Kn,v=window;if(u){var k=Qf(r),T="clientHeight",N="clientWidth";if(k===cr(r)&&(k=vo(r),ia(k).position!=="static"&&o==="absolute"&&(T="scrollHeight",N="scrollWidth")),k=k,i===Kn||(i===Yn||i===Ir)&&a===_f){C=Tr;var M=d&&k===v&&v.visualViewport?v.visualViewport.height:k[T];g-=M-n.height,g*=l?1:-1}if(i===Yn||(i===Kn||i===Tr)&&a===_f){b=Ir;var j=d&&k===v&&v.visualViewport?v.visualViewport.width:k[N];m-=j-n.width,m*=l?1:-1}}var D=Object.assign({position:o},u&&y7),$=c===!0?w7({x:m,y:g},cr(r)):{x:m,y:g};if(m=$.x,g=$.y,l){var X;return Object.assign({},D,(X={},X[C]=x?"0":"",X[b]=E?"0":"",X.transform=(v.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",X))}return Object.assign({},D,(t={},t[C]=x?g+"px":"",t[b]=E?m+"px":"",t.transform="",t))}function _7(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,s=a===void 0?!0:a,o=r.roundOffsets,l=o===void 0?!0:o,u={placement:vi(t.placement),variation:zl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Gk(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Gk(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const b7={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_7,data:{}};var Ah={passive:!0};function x7(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,s=n.resize,o=s===void 0?!0:s,l=cr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(c){c.addEventListener("scroll",r.update,Ah)}),o&&l.addEventListener("resize",r.update,Ah),function(){a&&u.forEach(function(c){c.removeEventListener("scroll",r.update,Ah)}),o&&l.removeEventListener("resize",r.update,Ah)}}const E7={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:x7,data:{}};var S7={left:"right",right:"left",bottom:"top",top:"bottom"};function cp(e){return e.replace(/left|right|bottom|top/g,function(t){return S7[t]})}var C7={start:"end",end:"start"};function Wk(e){return e.replace(/start|end/g,function(t){return C7[t]})}function bb(e){var t=cr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function xb(e){return Bl(vo(e)).left+bb(e).scrollLeft}function k7(e,t){var r=cr(e),n=vo(e),i=r.visualViewport,a=n.clientWidth,s=n.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;var u=sM();(u||!u&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o+xb(e),y:l}}function A7(e){var t,r=vo(e),n=bb(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Ko(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Ko(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-n.scrollLeft+xb(e),l=-n.scrollTop;return ia(i||r).direction==="rtl"&&(o+=Ko(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:l}}function Eb(e){var t=ia(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function dM(e){return["html","body","#document"].indexOf(xi(e))>=0?e.ownerDocument.body:kr(e)&&Eb(e)?e:dM(wm(e))}function Uc(e,t){var r;t===void 0&&(t=[]);var n=dM(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=cr(n),s=i?[a].concat(a.visualViewport||[],Eb(n)?n:[]):n,o=t.concat(s);return i?o:o.concat(Uc(wm(s)))}function Z_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function T7(e,t){var r=Bl(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Vk(e,t,r){return t===aM?Z_(k7(e,r)):is(t)?T7(t,r):Z_(A7(vo(e)))}function I7(e){var t=Uc(wm(e)),r=["absolute","fixed"].indexOf(ia(e).position)>=0,n=r&&kr(e)?Qf(e):e;return is(n)?t.filter(function(i){return is(i)&&lM(i,n)&&xi(i)!=="body"}):[]}function P7(e,t,r,n){var i=t==="clippingParents"?I7(e):[].concat(t),a=[].concat(i,[r]),s=a[0],o=a.reduce(function(l,u){var c=Vk(e,u,n);return l.top=Ko(c.top,l.top),l.right=jp(c.right,l.right),l.bottom=jp(c.bottom,l.bottom),l.left=Ko(c.left,l.left),l},Vk(e,s,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function hM(e){var t=e.reference,r=e.element,n=e.placement,i=n?vi(n):null,a=n?zl(n):null,s=t.x+t.width/2-r.width/2,o=t.y+t.height/2-r.height/2,l;switch(i){case Kn:l={x:s,y:t.y-r.height};break;case Tr:l={x:s,y:t.y+t.height};break;case Ir:l={x:t.x+t.width,y:o};break;case Yn:l={x:t.x-r.width,y:o};break;default:l={x:t.x,y:t.y}}var u=i?_b(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(a){case Ll:l[u]=l[u]-(t[c]/2-r[c]/2);break;case _f:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function bf(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,s=a===void 0?e.strategy:a,o=r.boundary,l=o===void 0?YG:o,u=r.rootBoundary,c=u===void 0?aM:u,d=r.elementContext,p=d===void 0?cc:d,m=r.altBoundary,w=m===void 0?!1:m,g=r.padding,_=g===void 0?0:g,E=cM(typeof _!="number"?_:fM(_,Vf)),x=p===cc?XG:cc,b=e.rects.popper,C=e.elements[w?x:p],v=P7(is(C)?C:C.contextElement||vo(e.elements.popper),l,c,s),k=Bl(e.elements.reference),T=hM({reference:k,element:b,placement:i}),N=Z_(Object.assign({},b,T)),M=p===cc?N:k,j={top:v.top-M.top+E.top,bottom:M.bottom-v.bottom+E.bottom,left:v.left-M.left+E.left,right:M.right-v.right+E.right},D=e.modifiersData.offset;if(p===cc&&D){var $=D[i];Object.keys(j).forEach(function(X){var W=[Ir,Tr].indexOf(X)>=0?1:-1,H=[Kn,Tr].indexOf(X)>=0?"y":"x";j[X]+=$[H]*W})}return j}function R7(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,s=r.padding,o=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?oM:l,c=zl(n),d=c?o?Hk:Hk.filter(function(w){return zl(w)===c}):Vf,p=d.filter(function(w){return u.indexOf(w)>=0});p.length===0&&(p=d);var m=p.reduce(function(w,g){return w[g]=bf(e,{placement:g,boundary:i,rootBoundary:a,padding:s})[vi(g)],w},{});return Object.keys(m).sort(function(w,g){return m[w]-m[g]})}function O7(e){if(vi(e)===vb)return[];var t=cp(e);return[Wk(e),t,Wk(t)]}function N7(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,s=r.altAxis,o=s===void 0?!0:s,l=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,p=r.altBoundary,m=r.flipVariations,w=m===void 0?!0:m,g=r.allowedAutoPlacements,_=t.options.placement,E=vi(_),x=E===_,b=l||(x||!w?[cp(_)]:O7(_)),C=[_].concat(b).reduce(function(se,de){return se.concat(vi(de)===vb?R7(t,{placement:de,boundary:c,rootBoundary:d,padding:u,flipVariations:w,allowedAutoPlacements:g}):de)},[]),v=t.rects.reference,k=t.rects.popper,T=new Map,N=!0,M=C[0],j=0;j<C.length;j++){var D=C[j],$=vi(D),X=zl(D)===Ll,W=[Kn,Tr].indexOf($)>=0,H=W?"width":"height",V=bf(t,{placement:D,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),K=W?X?Ir:Yn:X?Tr:Kn;v[H]>k[H]&&(K=cp(K));var Y=cp(K),q=[];if(a&&q.push(V[$]<=0),o&&q.push(V[K]<=0,V[Y]<=0),q.every(function(se){return se})){M=D,N=!1;break}T.set(D,q)}if(N)for(var F=w?3:1,G=function(de){var me=C.find(function(Ee){var Ie=T.get(Ee);if(Ie)return Ie.slice(0,de).every(function(Ne){return Ne})});if(me)return M=me,"break"},z=F;z>0;z--){var B=G(z);if(B==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}const M7={name:"flip",enabled:!0,phase:"main",fn:N7,requiresIfExists:["offset"],data:{_skip:!1}};function Qk(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Kk(e){return[Kn,Ir,Tr,Yn].some(function(t){return e[t]>=0})}function D7(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=bf(t,{elementContext:"reference"}),o=bf(t,{altBoundary:!0}),l=Qk(s,n),u=Qk(o,i,a),c=Kk(l),d=Kk(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const F7={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:D7};function L7(e,t,r){var n=vi(e),i=[Yn,Kn].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[Yn,Ir].indexOf(n)>=0?{x:o,y:s}:{x:s,y:o}}function j7(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,s=oM.reduce(function(c,d){return c[d]=L7(d,t.rects,a),c},{}),o=s[t.placement],l=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}const B7={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:j7};function z7(e){var t=e.state,r=e.name;t.modifiersData[r]=hM({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const U7={name:"popperOffsets",enabled:!0,phase:"read",fn:z7,data:{}};function $7(e){return e==="x"?"y":"x"}function H7(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,s=r.altAxis,o=s===void 0?!1:s,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,d=r.padding,p=r.tether,m=p===void 0?!0:p,w=r.tetherOffset,g=w===void 0?0:w,_=bf(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),E=vi(t.placement),x=zl(t.placement),b=!x,C=_b(E),v=$7(C),k=t.modifiersData.popperOffsets,T=t.rects.reference,N=t.rects.popper,M=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,j=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(k){if(a){var X,W=C==="y"?Kn:Yn,H=C==="y"?Tr:Ir,V=C==="y"?"height":"width",K=k[C],Y=K+_[W],q=K-_[H],F=m?-N[V]/2:0,G=x===Ll?T[V]:N[V],z=x===Ll?-N[V]:-T[V],B=t.elements.arrow,se=m&&B?wb(B):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:uM(),me=de[W],Ee=de[H],Ie=zc(0,T[V],se[V]),Ne=b?T[V]/2-F-Ie-me-j.mainAxis:G-Ie-me-j.mainAxis,Le=b?-T[V]/2+F+Ie+Ee+j.mainAxis:z+Ie+Ee+j.mainAxis,He=t.elements.arrow&&Qf(t.elements.arrow),Oe=He?C==="y"?He.clientTop||0:He.clientLeft||0:0,Fe=(X=D==null?void 0:D[C])!=null?X:0,We=K+Ne-Fe-Oe,rt=K+Le-Fe,ot=zc(m?jp(Y,We):Y,K,m?Ko(q,rt):q);k[C]=ot,$[C]=ot-K}if(o){var st,At=C==="x"?Kn:Yn,Ht=C==="x"?Tr:Ir,gt=k[v],ct=v==="y"?"height":"width",we=gt+_[At],et=gt-_[Ht],it=[Kn,Yn].indexOf(E)!==-1,ht=(st=D==null?void 0:D[v])!=null?st:0,pe=it?we:gt-T[ct]-N[ct]-ht+j.altAxis,L=it?gt+T[ct]+N[ct]-ht-j.altAxis:et,I=m&&it?h7(pe,gt,L):zc(m?pe:we,gt,m?L:et);k[v]=I,$[v]=I-gt}t.modifiersData[n]=$}}const q7={name:"preventOverflow",enabled:!0,phase:"main",fn:H7,requiresIfExists:["offset"]};function G7(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function W7(e){return e===cr(e)||!kr(e)?bb(e):G7(e)}function V7(e){var t=e.getBoundingClientRect(),r=jl(t.width)/e.offsetWidth||1,n=jl(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Q7(e,t,r){r===void 0&&(r=!1);var n=kr(t),i=kr(t)&&V7(t),a=vo(t),s=Bl(e,i,r),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((xi(t)!=="body"||Eb(a))&&(o=W7(t)),kr(t)?(l=Bl(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=xb(a))),{x:s.left+o.scrollLeft-l.x,y:s.top+o.scrollTop-l.y,width:s.width,height:s.height}}function K7(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!r.has(o)){var l=t.get(o);l&&i(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function Y7(e){var t=K7(e);return s7.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function X7(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function J7(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Yk={placement:"bottom",modifiers:[],strategy:"absolute"};function Xk(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Z7(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?Yk:i;return function(o,l,u){u===void 0&&(u=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yk,a),modifiersData:{},elements:{reference:o,popper:l},attributes:{},styles:{}},d=[],p=!1,m={state:c,setOptions:function(E){var x=typeof E=="function"?E(c.options):E;g(),c.options=Object.assign({},a,c.options,x),c.scrollParents={reference:is(o)?Uc(o):o.contextElement?Uc(o.contextElement):[],popper:Uc(l)};var b=Y7(J7([].concat(n,c.options.modifiers)));return c.orderedModifiers=b.filter(function(C){return C.enabled}),w(),m.update()},forceUpdate:function(){if(!p){var E=c.elements,x=E.reference,b=E.popper;if(Xk(x,b)){c.rects={reference:Q7(x,Qf(b),c.options.strategy==="fixed"),popper:wb(b)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(j){return c.modifiersData[j.name]=Object.assign({},j.data)});for(var C=0;C<c.orderedModifiers.length;C++){if(c.reset===!0){c.reset=!1,C=-1;continue}var v=c.orderedModifiers[C],k=v.fn,T=v.options,N=T===void 0?{}:T,M=v.name;typeof k=="function"&&(c=k({state:c,options:N,name:M,instance:m})||c)}}}},update:X7(function(){return new Promise(function(_){m.forceUpdate(),_(c)})}),destroy:function(){g(),p=!0}};if(!Xk(o,l))return m;m.setOptions(u).then(function(_){!p&&u.onFirstUpdate&&u.onFirstUpdate(_)});function w(){c.orderedModifiers.forEach(function(_){var E=_.name,x=_.options,b=x===void 0?{}:x,C=_.effect;if(typeof C=="function"){var v=C({state:c,name:E,instance:m,options:b}),k=function(){};d.push(v||k)}})}function g(){d.forEach(function(_){return _()}),d=[]}return m}}var e9=[E7,U7,b7,c7,B7,M7,q7,v7,F7],t9=Z7({defaultModifiers:e9}),ny,Jk;function n9(){if(Jk)return ny;Jk=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(a,s){if(a===s)return!0;if(a&&s&&typeof a=="object"&&typeof s=="object"){if(a.constructor!==s.constructor)return!1;var o,l,u;if(Array.isArray(a)){if(o=a.length,o!=s.length)return!1;for(l=o;l--!==0;)if(!i(a[l],s[l]))return!1;return!0}var c;if(t&&a instanceof Map&&s instanceof Map){if(a.size!==s.size)return!1;for(c=a.entries();!(l=c.next()).done;)if(!s.has(l.value[0]))return!1;for(c=a.entries();!(l=c.next()).done;)if(!i(l.value[1],s.get(l.value[0])))return!1;return!0}if(r&&a instanceof Set&&s instanceof Set){if(a.size!==s.size)return!1;for(c=a.entries();!(l=c.next()).done;)if(!s.has(l.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(s)){if(o=a.length,o!=s.length)return!1;for(l=o;l--!==0;)if(a[l]!==s[l])return!1;return!0}if(a.constructor===RegExp)return a.source===s.source&&a.flags===s.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof s.valueOf=="function")return a.valueOf()===s.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof s.toString=="function")return a.toString()===s.toString();if(u=Object.keys(a),o=u.length,o!==Object.keys(s).length)return!1;for(l=o;l--!==0;)if(!Object.prototype.hasOwnProperty.call(s,u[l]))return!1;if(e&&a instanceof Element)return!1;for(l=o;l--!==0;)if(!((u[l]==="_owner"||u[l]==="__v"||u[l]==="__o")&&a.$$typeof)&&!i(a[u[l]],s[u[l]]))return!1;return!0}return a!==a&&s!==s}return ny=function(s,o){try{return i(s,o)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}},ny}var r9=n9();const i9=yn(r9);var a9=[],o9=function(t,r,n){n===void 0&&(n={});var i=J.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||a9},s=J.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),o=s[0],l=s[1],u=J.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var w=m.state,g=Object.keys(w.elements);Op.flushSync(function(){l({styles:Uk(g.map(function(_){return[_,w.styles[_]||{}]})),attributes:Uk(g.map(function(_){return[_,w.attributes[_]]}))})})},requires:["computeStyles"]}},[]),c=J.useMemo(function(){var p={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[u,{name:"applyStyles",enabled:!1}])};return i9(i.current,p)?i.current||p:(i.current=p,p)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,u]),d=J.useRef();return $k(function(){d.current&&d.current.setOptions(c)},[c]),$k(function(){if(!(t==null||r==null)){var p=n.createPopper||t9,m=p(t,r,c);return d.current=m,function(){m.destroy(),d.current=null}}},[t,r,n.createPopper]),{state:d.current?d.current.state:null,styles:o.styles,attributes:o.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},s9=function(){},l9=function(){return Promise.resolve(null)},u9=[];function c9(e){var t=e.placement,r=t===void 0?"bottom":t,n=e.strategy,i=n===void 0?"absolute":n,a=e.modifiers,s=a===void 0?u9:a,o=e.referenceElement,l=e.onFirstUpdate,u=e.innerRef,c=e.children,d=J.useContext(WG),p=J.useState(null),m=p[0],w=p[1],g=J.useState(null),_=g[0],E=g[1];J.useEffect(function(){KG(u,m)},[u,m]);var x=J.useMemo(function(){return{placement:r,strategy:i,onFirstUpdate:l,modifiers:[].concat(s,[{name:"arrow",enabled:_!=null,options:{element:_}}])}},[r,i,l,s,_]),b=o9(o||d,m,x),C=b.state,v=b.styles,k=b.forceUpdate,T=b.update,N=J.useMemo(function(){return{ref:w,style:v.popper,placement:C?C.placement:r,hasPopperEscaped:C&&C.modifiersData.hide?C.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:C&&C.modifiersData.hide?C.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:v.arrow,ref:E},forceUpdate:k||s9,update:T||l9}},[w,E,r,C,v,T,k]);return VG(c)(N)}function f9(e,t,r,n){return hN(e,function(i,a,s){t(n,r(i),a,s)}),n}function d9(e,t){return function(r,n){return f9(r,e,t(n),{})}}var h9=Object.prototype,p9=h9.toString,m9=d9(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=p9.call(t)),e[t]=r},aN(uu)),Sb={"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"};cu(Sb);var g9=m9(Sb);function xf(e){"@babel/helpers - typeof";return xf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xf(e)}function v9(e,t){if(xf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function y9(e){var t=v9(e,"string");return xf(t)=="symbol"?t:t+""}function w9(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y9(n.key),n)}}function _9(e,t,r){return t&&w9(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var b9=function(){function e(r){this.ref=r}var t=e.prototype;return t.getBoundingClientRect=function(){return Te(this.ref.current,"getBoundingClientRect")||{}},_9(e,[{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}}]),e}(),x9=um(function(e){return new b9(Np(e)?e:{current:e})});function io(e){var t=e.children,r=e.className,n=e.content,i=be("content",r),a=xe(io,e),s=Ce(io,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}io.handledProps=["as","children","className","content"];io.propTypes={};io.create=nt(io,function(e){return{children:e}});function ao(e){var t=e.children,r=e.className,n=e.content,i=be("header",r),a=xe(ao,e),s=Ce(ao,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}ao.handledProps=["as","children","className","content"];ao.propTypes={};ao.create=nt(ao,function(e){return{children:e}});var Wi=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.state={},n.open=!1,n.zIndexWasSynced=!1,n.triggerRef=te.createRef(),n.elementRef=te.createRef(),n.getPortalProps=function(){var o={},l=n.props,u=l.on,c=l.hoverable,d=Jt(u)?u:[u];return c&&(o.closeOnPortalMouseLeave=!0,o.mouseLeaveDelay=300),mi(d,"hover")&&(o.openOnTriggerClick=!1,o.closeOnTriggerClick=!1,o.openOnTriggerMouseEnter=!0,o.closeOnTriggerMouseLeave=!0,o.mouseLeaveDelay=70,o.mouseEnterDelay=50),mi(d,"click")&&(o.openOnTriggerClick=!0,o.closeOnTriggerClick=!0,o.closeOnDocumentClick=!0),mi(d,"focus")&&(o.openOnTriggerFocus=!0,o.closeOnTriggerBlur=!0),o},n.hideOnScroll=function(o){GG(o.target)&&n.elementRef.current.contains(o.target)||(n.setState({closed:!0}),Rn.unsub("scroll",n.hideOnScroll,{target:window}),n.timeoutId=setTimeout(function(){n.setState({closed:!1})},50),n.handleClose(o))},n.handleClose=function(o){Te(n.props,"onClose",o,ie({},n.props,{open:!1}))},n.handleOpen=function(o){Te(n.props,"onOpen",o,ie({},n.props,{open:!0}))},n.handlePortalMount=function(o){Te(n.props,"onMount",o,n.props)},n.handlePortalUnmount=function(o){n.positionUpdate=null,Te(n.props,"onUnmount",o,n.props)},n.renderContent=function(o){var l=o.placement,u=o.ref,c=o.update,d=o.style,p=n.props,m=p.basic,w=p.children,g=p.className,_=p.content,E=p.hideOnScroll,x=p.flowing,b=p.header,C=p.inverted,v=p.popper,k=p.size,T=p.style,N=p.wide,M=n.state.contentRestProps;n.positionUpdate=c;var j=be("ui",g9[l],k,Rt(N,"wide"),ee(m,"basic"),ee(x,"flowing"),ee(C,"inverted"),"popup transition visible",g),D=Ce(t,n.props),$=ie({left:"auto",right:"auto",position:"initial"},T),X=te.createElement(D,ie({},M,{className:j,style:$,ref:n.elementRef}),Pe(w)?te.createElement(te.Fragment,null,ao.create(b,{autoGenerateKey:!1}),io.create(_,{autoGenerateKey:!1})):w,E&&te.createElement(Gi,{on:n.hideOnScroll,name:"scroll",target:"window"}));return J8(v||{},{overrideProps:{children:X,ref:u,style:ie({display:"flex"},d)}})},n}t.getDerivedStateFromProps=function(i,a){if(a.closed||a.disabled)return{};var s=xe(t,i),o=vm(s,function(u,c,d){return mi(Cr.handledProps,d)||(u[d]=c),u},{}),l=db(s,Cr.handledProps);return{contentRestProps:o,portalRestProps:l}};var r=t.prototype;return r.componentDidUpdate=function(i){var a=Va(this.props.popperDependencies,i.popperDependencies);a||this.handleUpdate()},r.componentWillUnmount=function(){clearTimeout(this.timeoutId)},r.handleUpdate=function(){this.positionUpdate&&this.positionUpdate()},r.render=function(){var i=this,a=this.props,s=a.context,o=a.disabled,l=a.eventsEnabled,u=a.offset,c=a.pinned,d=a.popper,p=a.popperModifiers,m=a.position,w=a.positionFixed,g=a.trigger,_=this.state,E=_.closed,x=_.portalRestProps;if(E||o)return g;var b=[{name:"arrow",enabled:!1},{name:"eventListeners",options:{scroll:!!l,resize:!!l}},{name:"flip",enabled:!c},{name:"preventOverflow",enabled:!!u},{name:"offset",enabled:!!u,options:{offset:u}}].concat(p,[{name:"syncZIndex",enabled:!0,phase:"beforeRead",fn:function(T){var N,M=T.state;if(!i.zIndexWasSynced){var j=d==null||(N=d.style)==null?void 0:N.zIndex;Gf(j)&&(M.elements.popper.style.zIndex=window.getComputedStyle(M.elements.popper.firstChild).zIndex),i.zIndexWasSynced=!0}},effect:function(){return function(){i.zIndexWasSynced=!1}}}]),C=x9(ut(s)?this.triggerRef:s),v=ie({},this.getPortalProps(),x);return te.createElement(Cr,ie({},v,{onClose:this.handleClose,onMount:this.handlePortalMount,onOpen:this.handleOpen,onUnmount:this.handlePortalUnmount,trigger:g,triggerRef:this.triggerRef}),te.createElement(c9,{modifiers:b,placement:Sb[m],strategy:w?"fixed":null,referenceElement:C},this.renderContent))},t}(J.Component);Wi.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"];Wi.propTypes={};Wi.defaultProps={disabled:!1,eventsEnabled:!0,on:["click","hover"],pinned:!1,popperModifiers:[],position:"top left"};Wi.Content=io;Wi.Header=ao;var Bp=Yc&&new Yc,pM=Bp?function(e,t){return Bp.set(e,t),e}:uu;function Ef(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 r=gb(e.prototype),n=e.apply(r,t);return Xi(n)?n:r}}var E9=1;function S9(e,t,r){var n=t&E9,i=Ef(e);function a(){var s=this&&this!==pr&&this instanceof a?i:e;return s.apply(n?r:this,arguments)}return a}var C9=Math.max;function mM(e,t,r,n){for(var i=-1,a=e.length,s=r.length,o=-1,l=t.length,u=C9(a-s,0),c=Array(l+u),d=!n;++o<l;)c[o]=t[o];for(;++i<s;)(d||i<a)&&(c[r[i]]=e[i]);for(;u--;)c[o++]=e[i++];return c}var k9=Math.max;function gM(e,t,r,n){for(var i=-1,a=e.length,s=-1,o=r.length,l=-1,u=t.length,c=k9(a-o,0),d=Array(c+u),p=!n;++i<c;)d[i]=e[i];for(var m=i;++l<u;)d[m+l]=t[l];for(;++s<o;)(p||i<a)&&(d[m+r[s]]=e[i++]);return d}function A9(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}function Cb(){}var T9=4294967295;function Ul(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=T9,this.__views__=[]}Ul.prototype=gb(Cb.prototype);Ul.prototype.constructor=Ul;var vM=Bp?function(e){return Bp.get(e)}:hb,Zk={},I9=Object.prototype,P9=I9.hasOwnProperty;function R9(e){for(var t=e.name+"",r=Zk[t],n=P9.call(Zk,t)?r.length:0;n--;){var i=r[n],a=i.func;if(a==null||a==e)return i.name}return t}function $l(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}$l.prototype=gb(Cb.prototype);$l.prototype.constructor=$l;function yM(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function O9(e){if(e instanceof Ul)return e.clone();var t=new $l(e.__wrapped__,e.__chain__);return t.__actions__=yM(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var N9=Object.prototype,M9=N9.hasOwnProperty;function zp(e){if(lr(e)&&!Jt(e)&&!(e instanceof Ul)){if(e instanceof $l)return e;if(M9.call(e,"__wrapped__"))return O9(e)}return new $l(e)}zp.prototype=Cb.prototype;zp.prototype.constructor=zp;function D9(e){var t=R9(e),r=zp[t];if(typeof r!="function"||!(t in Ul.prototype))return!1;if(e===r)return!0;var n=vM(r);return!!n&&e===n[0]}var wM=oN(pM),F9=/\{\n\/\* \[wrapped with (.+)\] \*/,L9=/,? & /;function j9(e){var t=e.match(F9);return t?t[1].split(L9):[]}var B9=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function z9(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(B9,`{
/* [wrapped with `+t+`] */
`)}var U9=1,$9=2,H9=8,q9=16,G9=32,W9=64,V9=128,Q9=256,K9=512,Y9=[["ary",V9],["bind",U9],["bindKey",$9],["curry",H9],["curryRight",q9],["flip",K9],["partial",G9],["partialRight",W9],["rearg",Q9]];function X9(e,t){return EN(Y9,function(r){var n="_."+r[0];t&r[1]&&!ub(e,n)&&e.push(n)}),e.sort()}function _M(e,t,r){var n=t+"";return ib(e,z9(n,X9(j9(n),r)))}var J9=4,Z9=8,eA=32,tA=64;function bM(e,t,r,n,i,a,s,o,l,u){var c=t&Z9,d=c?s:void 0,p=c?void 0:s,m=c?a:void 0,w=c?void 0:a;t|=c?eA:tA,t&=~(c?tA:eA),t&J9||(t&=-4);var g=[e,t,i,m,d,w,p,o,l,u],_=r.apply(void 0,g);return D9(e)&&wM(_,g),_.placeholder=n,_M(_,e,t)}function kb(e){var t=e;return t.placeholder}var eW=Math.min;function tW(e,t){for(var r=e.length,n=eW(t.length,r),i=yM(e);n--;){var a=t[n];e[n]=fm(a,r)?i[a]:void 0}return e}var nA="__lodash_placeholder__";function Sf(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var s=e[r];(s===t||s===nA)&&(e[r]=nA,a[i++]=r)}return a}var nW=1,rW=2,iW=8,aW=16,oW=128,sW=512;function Ab(e,t,r,n,i,a,s,o,l,u){var c=t&oW,d=t&nW,p=t&rW,m=t&(iW|aW),w=t&sW,g=p?void 0:Ef(e);function _(){for(var E=arguments.length,x=Array(E),b=E;b--;)x[b]=arguments[b];if(m)var C=kb(_),v=A9(x,C);if(n&&(x=mM(x,n,i,m)),a&&(x=gM(x,a,s,m)),E-=v,m&&E<u){var k=Sf(x,C);return bM(e,t,Ab,_.placeholder,r,x,k,o,l,u-E)}var T=d?r:this,N=p?T[e]:e;return E=x.length,o?x=tW(x,o):w&&E>1&&x.reverse(),c&&l<E&&(x.length=l),this&&this!==pr&&this instanceof _&&(N=g||Ef(N)),N.apply(T,x)}return _}function lW(e,t,r){var n=Ef(e);function i(){for(var a=arguments.length,s=Array(a),o=a,l=kb(i);o--;)s[o]=arguments[o];var u=a<3&&s[0]!==l&&s[a-1]!==l?[]:Sf(s,l);if(a-=u.length,a<r)return bM(e,t,Ab,i.placeholder,void 0,s,u,void 0,void 0,r-a);var c=this&&this!==pr&&this instanceof i?n:e;return dm(c,this,s)}return i}var uW=1;function cW(e,t,r,n){var i=t&uW,a=Ef(e);function s(){for(var o=-1,l=arguments.length,u=-1,c=n.length,d=Array(c+l),p=this&&this!==pr&&this instanceof s?a:e;++u<c;)d[u]=n[u];for(;l--;)d[u++]=arguments[++o];return dm(p,i?r:this,d)}return s}var rA="__lodash_placeholder__",ry=1,fW=2,dW=4,iA=8,fc=128,aA=256,hW=Math.min;function pW(e,t){var r=e[1],n=t[1],i=r|n,a=i<(ry|fW|fc),s=n==fc&&r==iA||n==fc&&r==aA&&e[7].length<=t[8]||n==(fc|aA)&&t[7].length<=t[8]&&r==iA;if(!(a||s))return e;n&ry&&(e[2]=t[2],i|=r&ry?0:dW);var o=t[3];if(o){var l=e[3];e[3]=l?mM(l,o,t[4]):o,e[4]=l?Sf(e[3],rA):t[4]}return o=t[5],o&&(l=e[5],e[5]=l?gM(l,o,t[6]):o,e[6]=l?Sf(e[5],rA):t[6]),o=t[7],o&&(e[7]=o),n&fc&&(e[8]=e[8]==null?t[8]:hW(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}var mW="Expected a function",oA=1,gW=2,sA=8,lA=16,uA=32,vW=64,cA=Math.max;function yW(e,t,r,n,i,a,s,o){var l=t&gW;if(!l&&typeof e!="function")throw new TypeError(mW);var u=n?n.length:0;if(u||(t&=-97,n=i=void 0),s=s===void 0?s:cA(Kc(s),0),o=o===void 0?o:Kc(o),u-=i?i.length:0,t&vW){var c=n,d=i;n=i=void 0}var p=l?void 0:vM(e),m=[e,t,r,n,i,c,d,a,s,o];if(p&&pW(m,p),e=m[0],t=m[1],r=m[2],n=m[3],i=m[4],o=m[9]=m[9]===void 0?l?0:e.length:cA(m[9]-u,0),!o&&t&(sA|lA)&&(t&=-25),!t||t==oA)var w=S9(e,t,r);else t==sA||t==lA?w=lW(e,t,o):(t==uA||t==(oA|uA))&&!i.length?w=cW(e,t,r,n):w=Ab.apply(void 0,m);var g=p?pM:wM;return _M(g(w,m),e,t)}var wW=64,Tb=qf(function(e,t){var r=Sf(t,kb(Tb));return yW(e,wW,void 0,t,r)});Tb.placeholder={};function Ib(e){var t=e.categoryContent,r=e.resultsContent;return te.createElement(te.Fragment,null,te.createElement("div",{className:"name"},t),te.createElement("div",{className:"results"},r))}Ib.handledProps=["categoryContent","resultsContent"];Ib.propTypes={};function as(e){var t=e.active,r=e.children,n=e.className,i=e.content,a=e.layoutRenderer,s=e.renderer,o=be(ee(t,"active"),"category",n),l=xe(as,e),u=Ce(as,e),c=s(e),d=Pe(r)?i:r;return te.createElement(u,ie({},l,{className:o}),a({categoryContent:c,resultsContent:d}))}as.handledProps=["active","as","children","className","content","layoutRenderer","name","renderer","results"];as.defaultProps={layoutRenderer:Ib,renderer:function(t){var r=t.name;return r}};as.propTypes={};var xM=function(t){var r=t.image,n=t.price,i=t.title,a=t.description;return[r&&te.createElement("div",{key:"image",className:"image"},Z8(r,{autoGenerateKey:!1})),te.createElement("div",{key:"content",className:"content"},n&&te.createElement("div",{className:"price"},n),i&&te.createElement("div",{className:"title"},i),a&&te.createElement("div",{className:"description"},a))]};xM.handledProps=[];var Kf=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.handleClick=function(o){var l=n.props.onClick;l&&l(o,n.props)},n}var r=t.prototype;return r.render=function(){var i=this.props,a=i.active,s=i.className,o=i.renderer,l=be(ee(a,"active"),"result",s),u=xe(t,this.props),c=Ce(t,this.props);return te.createElement(c,ie({},u,{className:l,onClick:this.handleClick}),o(this.props))},t}(J.Component);Kf.handledProps=["active","as","className","content","description","id","image","onClick","price","renderer","title"];Kf.propTypes={};Kf.defaultProps={renderer:xM};function Hl(e){var t=e.children,r=e.className,n=e.content,i=be("results transition",r),a=xe(Hl,e),s=Ce(Hl,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}Hl.handledProps=["as","children","className","content"];Hl.propTypes={};var _W=function(t){var r=t.input;return Gf(r)?ie({},t,{input:{className:"prompt"}}):Wf(r)?ie({},t,{input:ie({},r,{className:be(r.className,"prompt")})}):t},yo=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.handleResultSelect=function(o,l){Te(n.props,"onResultSelect",o,ie({},n.props,{result:l}))},n.handleSelectionChange=function(o){var l=n.getSelectedResult();Te(n.props,"onSelectionChange",o,ie({},n.props,{result:l}))},n.closeOnEscape=function(o){Mt.getCode(o)===Mt.Escape&&(o.preventDefault(),n.close())},n.moveSelectionOnKeyDown=function(o){switch(Mt.getCode(o)){case Mt.ArrowDown:o.preventDefault(),n.moveSelectionBy(o,1);break;case Mt.ArrowUp:o.preventDefault(),n.moveSelectionBy(o,-1);break}},n.selectItemOnEnter=function(o){if(Mt.getCode(o)===Mt.Enter){var l=n.getSelectedResult();l&&(o.preventDefault(),n.setValue(l.title),n.handleResultSelect(o,l),n.close())}},n.closeOnDocumentClick=function(o){n.close()},n.handleMouseDown=function(o){n.isMouseDown=!0,Te(n.props,"onMouseDown",o,n.props),Rn.sub("mouseup",n.handleDocumentMouseUp)},n.handleDocumentMouseUp=function(){n.isMouseDown=!1,Rn.unsub("mouseup",n.handleDocumentMouseUp)},n.handleInputClick=function(o){o.nativeEvent.stopImmediatePropagation(),n.tryOpen()},n.handleItemClick=function(o,l){var u=l.id,c=n.getSelectedResult(u);o.nativeEvent.stopImmediatePropagation(),n.setValue(c.title),n.handleResultSelect(o,c),n.close()},n.handleItemMouseDown=function(o){o.preventDefault()},n.handleFocus=function(o){Te(n.props,"onFocus",o,n.props),n.setState({focus:!0})},n.handleBlur=function(o){Te(n.props,"onBlur",o,n.props),n.setState({focus:!1})},n.handleSearchChange=function(o){o.stopPropagation();var l=n.props.minCharacters,u=n.state.open,c=o.target.value;Te(n.props,"onSearchChange",o,ie({},n.props,{value:c})),c.length<l?n.close():u||n.tryOpen(c),n.setValue(c)},n.getFlattenedResults=function(){var o=n.props,l=o.category,u=o.results;return l?vm(u,function(c,d){return c.concat(d.results)},[]):u},n.getSelectedResult=function(o){o===void 0&&(o=n.state.selectedIndex);var l=n.getFlattenedResults();return Sr(l,o)},n.setValue=function(o){var l=n.props.selectFirstResult;n.setState({value:o,selectedIndex:l?0:-1})},n.moveSelectionBy=function(o,l){var u=n.state.selectedIndex,c=n.getFlattenedResults(),d=c.length-1,p=u+l;p>d?p=0:p<0&&(p=d),n.setState({selectedIndex:p}),n.scrollSelectedItemIntoView(),n.handleSelectionChange(o)},n.scrollSelectedItemIntoView=function(){if(Ga()){var o=document.querySelector(".ui.search.active.visible .results.visible");if(o){var l=o.querySelector(".result.active");if(l){var u=l.offsetTop<o.scrollTop,c=l.offsetTop+l.clientHeight>o.scrollTop+o.clientHeight;u?o.scrollTop=l.offsetTop:c&&(o.scrollTop=l.offsetTop+l.clientHeight-o.clientHeight)}}}},n.tryOpen=function(o){o===void 0&&(o=n.state.value);var l=n.props.minCharacters;o.length<l||n.open()},n.open=function(){n.setState({open:!0})},n.close=function(){n.setState({open:!1})},n.renderSearchInput=function(o){var l=n.props,u=l.icon,c=l.input,d=l.placeholder,p=n.state.value;return Ji.create(c,{autoGenerateKey:!1,defaultProps:ie({},o,{autoComplete:"off",icon:u,onChange:n.handleSearchChange,onClick:n.handleInputClick,tabIndex:"0",value:p,placeholder:d}),overrideProps:_W})},n.renderNoResults=function(){var o=n.props,l=o.noResultsDescription,u=o.noResultsMessage;return te.createElement("div",{className:"message empty"},te.createElement("div",{className:"header"},u),l&&te.createElement("div",{className:"description"},l))},n.renderResult=function(o,l,u,c){var d=o.childKey,p=Wc(o,["childKey"]);c===void 0&&(c=0);var m=n.props.resultRenderer,w=n.state.selectedIndex,g=l+c;return te.createElement(Kf,ie({key:d??(p.id||p.title),active:w===g,onClick:n.handleItemClick,onMouseDown:n.handleItemMouseDown,renderer:m},p,{id:g}))},n.renderResults=function(){var o=n.props.results;return Mn(o,n.renderResult)},n.renderCategories=function(){var o=n.props,l=o.categoryLayoutRenderer,u=o.categoryRenderer,c=o.results,d=n.state.selectedIndex,p=0;return Mn(c,function(m){var w=m.childKey,g=Wc(m,["childKey"]),_=ie({key:w??g.name,active:Q_(d,p,p+g.results.length),layoutRenderer:l,renderer:u},g),E=Tb(n.renderResult,p);return p+=g.results.length,te.createElement(as,_,g.results.map(E))})},n.renderMenuContent=function(){var o=n.props,l=o.category,u=o.showNoResults,c=o.results;return sl(c)?u?n.renderNoResults():null:l?n.renderCategories():n.renderResults()},n.renderResultsMenu=function(){var o=n.state.open,l=o?"visible":"",u=n.renderMenuContent();if(u)return te.createElement(Hl,{className:l},u)},n}t.getAutoControlledStateFromProps=function(i,a){if(typeof a.prevValue<"u"&&Va(a.prevValue,a.value))return{prevValue:a.value};var s=i.selectFirstResult?0:-1;return{prevValue:a.value,selectedIndex:s}};var r=t.prototype;return r.shouldComponentUpdate=function(i,a){return!Va(i,this.props)||!Va(a,this.state)},r.componentDidUpdate=function(i,a){!a.focus&&this.state.focus?(this.isMouseDown||this.tryOpen(),this.state.open&&Rn.sub("keydown",[this.moveSelectionOnKeyDown,this.selectItemOnEnter])):a.focus&&!this.state.focus&&(this.isMouseDown||this.close(),Rn.unsub("keydown",[this.moveSelectionOnKeyDown,this.selectItemOnEnter])),!a.open&&this.state.open?(this.open(),Rn.sub("click",this.closeOnDocumentClick),Rn.sub("keydown",[this.closeOnEscape,this.moveSelectionOnKeyDown,this.selectItemOnEnter])):a.open&&!this.state.open&&(this.close(),Rn.unsub("click",this.closeOnDocumentClick),Rn.unsub("keydown",[this.closeOnEscape,this.moveSelectionOnKeyDown,this.selectItemOnEnter]))},r.componentWillUnmount=function(){Rn.unsub("click",this.closeOnDocumentClick),Rn.unsub("keydown",[this.closeOnEscape,this.moveSelectionOnKeyDown,this.selectItemOnEnter])},r.render=function(){var i=this.state,a=i.searchClasses,s=i.focus,o=i.open,l=this.props,u=l.aligned,c=l.category,d=l.className,p=l.fluid,m=l.loading,w=l.size,g=be("ui",o&&"active visible",w,a,ee(c,"category"),ee(s,"focus"),ee(p,"fluid"),ee(m,"loading"),pn(u,"aligned"),"search",d),_=xe(t,this.props),E=Ce(t,this.props),x=mm(_,{htmlProps:mb}),b=x[0],C=x[1];return te.createElement(E,ie({},C,{className:g,onBlur:this.handleBlur,onFocus:this.handleFocus,onMouseDown:this.handleMouseDown}),this.renderSearchInput(b),this.renderResultsMenu())},t}(_s);yo.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"];yo.propTypes={};yo.defaultProps={icon:"search",input:"text",minCharacters:1,noResultsMessage:"No results found.",showNoResults:!0};yo.autoControlledProps=["open","value"];yo.Category=as;yo.Result=Kf;yo.Results=Hl;var bW=function(t){if(t){var r,n,i;return typeof t.window=="object"&&t.window===t?t.event:(r=(n=t.ownerDocument)==null||(i=n.defaultView)==null?void 0:i.event)!=null?r:void 0}},fA=function(t,r){return t?!!t[r]:!1},xW=function(t){var r=t.capture,n=t.listener,i=t.type,a=t.target,s=t.targetRef,o=J.useRef(n);o.current=n;var l=J.useCallback(function(c){return o.current(c)},[]),u=J.useRef(void 0);J.useEffect(function(){var c=typeof s>"u"?a:s.current,d=bW(window),p=function(w){if(w===d){d=void 0;return}l(w)};return fA(c,"addEventListener")&&c.addEventListener(i,p,r),u.current=setTimeout(function(){d=void 0},1),function(){clearTimeout(u.current),d=void 0,fA(c,"removeEventListener")&&c.removeEventListener(i,p,r)}},[r,l,a,s,i])},EW=function(){function e(t){return xW(t),null}return e.defaultProps={capture:!1},e}(),SW={current:typeof document>"u"?null:document};function ql(e){var t=e.className,r=e.children,n=e.content,i=be("pushable",t),a=xe(ql,e),s=Ce(ql,e);return te.createElement(s,ie({},a,{className:i}),Pe(r)?n:r)}ql.handledProps=["as","children","className","content"];ql.propTypes={};function Gl(e){var t=e.className,r=e.dimmed,n=e.children,i=e.content,a=be("pusher",ee(r,"dimmed"),t),s=xe(Gl,e),o=Ce(Gl,e);return te.createElement(o,ie({},s,{className:a}),Pe(n)?i:n)}Gl.handledProps=["as","children","className","content","dimmed"];Gl.propTypes={};var wo=function(e){wt(t,e);function t(n){var i;return i=e.call(this,n)||this,i.ref=J.createRef(),i.handleAnimationStart=function(){var a=i.props.visible,s=a?"onVisible":"onHide";if(clearTimeout(i.animationTimer),i.animationTimer=setTimeout(i.handleAnimationEnd,t.animationDuration),i.skipNextCallback){i.skipNextCallback=!1;return}Te(i.props,s,null,i.props)},i.handleAnimationEnd=function(){var a=i.props.visible,s=a?"onShow":"onHidden";i.setState({animationTick:0}),Te(i.props,s,null,i.props)},i.handleDocumentClick=function(a){Wa(i.ref.current,a)||(i.skipNextCallback=!0,Te(i.props,"onHide",a,ie({},i.props,{visible:!1})))},i.state={animationTick:0,visible:n.visible},i}t.getDerivedStateFromProps=function(i,a){var s=!!i.visible==!!a.visible?0:1;return{animationTick:a.animationTick+s,visible:i.visible}};var r=t.prototype;return r.componentDidUpdate=function(i,a){this.state.animationTick>a.animationTick&&this.handleAnimationStart()},r.componentWillUnmount=function(){clearTimeout(this.animationTimer)},r.render=function(){var i=this.props,a=i.animation,s=i.className,o=i.children,l=i.content,u=i.direction,c=i.target,d=i.visible,p=i.width,m=this.state.animationTick,w=be("ui",a,u,p,ee(m>0,"animating"),ee(d,"visible"),"sidebar",s),g=xe(t,this.props),_=Ce(t,this.props),E=Np(c)?{targetRef:c}:{target:c};return te.createElement(te.Fragment,null,te.createElement(Jn,{innerRef:this.ref},te.createElement(_,ie({},g,{className:w}),Pe(o)?l:o)),d&&te.createElement(EW,ie({listener:this.handleDocumentClick,type:"click"},E)))},t}(J.Component);wo.handledProps=["animation","as","children","className","content","direction","onHidden","onHide","onShow","onVisible","target","visible","width"];wo.propTypes={};wo.defaultProps={direction:"left",target:SW,visible:!1};wo.animationDuration=500;wo.autoControlledProps=["visible"];wo.Pushable=ql;wo.Pusher=Gl;function aa(e){var t=e.active,r=e.children,n=e.className,i=e.content,a=e.loading,s=be(ee(t,"active"),ee(a,"loading"),"tab",n),o=xe(aa,e),l=Ce(aa,e),u={};return l===ro&&(u.attached="bottom"),te.createElement(l,ie({},u,o,{className:s}),Pe(r)?i:r)}aa.handledProps=["active","as","children","className","content","loading"];aa.defaultProps={as:ro,active:!0};aa.propTypes={};aa.create=nt(aa,function(e){return{content:e}});var Wr=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.handleItemClick=function(o,l){var u=l.index;Te(n.props,"onTabChange",o,ie({},n.props,{activeIndex:u})),n.setState({activeIndex:u})},n}var r=t.prototype;return r.getInitialAutoControlledState=function(){return{activeIndex:0}},r.renderItems=function(){var i=this.props,a=i.panes,s=i.renderActiveOnly,o=this.state.activeIndex;return s?Te(Sr(a,"["+o+"]"),"render",this.props):Mn(a,function(l,u){var c=l.pane;return aa.create(c,{overrideProps:{active:u===o}})})},r.renderMenu=function(){var i=this.props,a=i.menu,s=i.panes,o=i.menuPosition,l=this.state.activeIndex;return a.tabular===!0&&o==="right"&&(a.tabular="right"),Kt.create(a,{autoGenerateKey:!1,overrideProps:{items:Mn(s,"menuItem"),onItemClick:this.handleItemClick,activeIndex:l}})},r.renderVertical=function(i){var a=this.props,s=a.grid,o=a.menuPosition,l=s.paneWidth,u=s.tabWidth,c=Wc(s,["paneWidth","tabWidth"]),d=o||i.props.tabular==="right"&&"right"||"left";return te.createElement(Qr,c,d==="left"&&gi.create({width:u,children:i},{autoGenerateKey:!1}),gi.create({width:l,children:this.renderItems(),stretched:!0},{autoGenerateKey:!1}),d==="right"&&gi.create({width:u,children:i},{autoGenerateKey:!1}))},r.render=function(){var i=this.renderMenu(),a=xe(t,this.props),s=Ce(t,this.props);return i.props.vertical?te.createElement(s,a,this.renderVertical(i)):te.createElement(s,a,i.props.attached!=="bottom"&&i,this.renderItems(),i.props.attached==="bottom"&&i)},t}(_s);Wr.handledProps=["activeIndex","as","defaultActiveIndex","grid","menu","menuPosition","onTabChange","panes","renderActiveOnly"];Wr.propTypes={};Wr.autoControlledProps=["activeIndex"];Wr.defaultProps={grid:{paneWidth:12,tabWidth:4},menu:{attached:!0,tabular:!0},renderActiveOnly:!0};Wr.Pane=aa;function Wl(e){var t=e.children,r=e.className,n=e.content,i=e.textAlign,a=be(Yr(i),"description",r),s=xe(Wl,e),o=Ce(Wl,e);return te.createElement(o,ie({},s,{className:a}),Pe(t)?n:t)}Wl.handledProps=["as","children","className","content","textAlign"];Wl.propTypes={};function Vl(e){var t=e.children,r=e.className,n=e.content,i=e.textAlign,a=be(Yr(i),"header",r),s=xe(Vl,e),o=Ce(Vl,e);return te.createElement(o,ie({},s,{className:a}),Pe(t)?n:t)}Vl.handledProps=["as","children","className","content","textAlign"];Vl.propTypes={};function Ql(e){var t=e.children,r=e.className,n=e.content,i=e.textAlign,a=be(Yr(i),"meta",r),s=xe(Ql,e),o=Ce(Ql,e);return te.createElement(o,ie({},s,{className:a}),Pe(t)?n:t)}Ql.handledProps=["as","children","className","content","textAlign"];Ql.propTypes={};function os(e){var t=e.children,r=e.className,n=e.content,i=e.description,a=e.extra,s=e.header,o=e.meta,l=e.textAlign,u=be(ee(a,"extra"),Yr(l),"content",r),c=xe(os,e),d=Ce(os,e);return Pe(t)?Pe(n)?te.createElement(d,ie({},c,{className:u}),cl(Vl,function(p){return{content:p}},s,{autoGenerateKey:!1}),cl(Ql,function(p){return{content:p}},o,{autoGenerateKey:!1}),cl(Wl,function(p){return{content:p}},i,{autoGenerateKey:!1})):te.createElement(d,ie({},c,{className:u}),n):te.createElement(d,ie({},c,{className:u}),t)}os.handledProps=["as","children","className","content","description","extra","header","meta","textAlign"];os.propTypes={};function Cf(e){var t=e.centered,r=e.children,n=e.className,i=e.content,a=e.doubling,s=e.items,o=e.itemsPerRow,l=e.stackable,u=e.textAlign,c=be("ui",ee(t,"centered"),ee(a,"doubling"),ee(l,"stackable"),Yr(u),Gn(o),"cards",n),d=xe(Cf,e),p=Ce(Cf,e);if(!Pe(r))return te.createElement(p,ie({},d,{className:c}),r);if(!Pe(i))return te.createElement(p,ie({},d,{className:c}),i);var m=Mn(s,function(w){var g,_=(g=w.key)!=null?g:[w.header,w.description].join("-");return te.createElement(Sn,ie({key:_},w))});return te.createElement(p,ie({},d,{className:c}),m)}Cf.handledProps=["as","centered","children","className","content","doubling","items","itemsPerRow","stackable","textAlign"];Cf.propTypes={};var Sn=function(e){wt(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=e.call.apply(e,[this].concat(a))||this,n.handleClick=function(o){var l=n.props.onClick;l&&l(o,n.props)},n}var r=t.prototype;return r.render=function(){var i=this.props,a=i.centered,s=i.children,o=i.className,l=i.color,u=i.content,c=i.description,d=i.extra,p=i.fluid,m=i.header,w=i.href,g=i.image,_=i.link,E=i.meta,x=i.onClick,b=i.raised,C=be("ui",l,ee(a,"centered"),ee(p,"fluid"),ee(_,"link"),ee(b,"raised"),"card",o),v=xe(t,this.props),k=Ce(t,this.props,function(){if(x)return"a"});return Pe(s)?Pe(u)?te.createElement(k,ie({},v,{className:C,href:w,onClick:this.handleClick}),sn.create(g,{autoGenerateKey:!1,defaultProps:{ui:!1,wrapped:!0}}),(c||m||E)&&te.createElement(os,{description:c,header:m,meta:E}),d&&te.createElement(os,{extra:!0},d)):te.createElement(k,ie({},v,{className:C,href:w,onClick:this.handleClick}),u):te.createElement(k,ie({},v,{className:C,href:w,onClick:this.handleClick}),s)},t}(J.Component);Sn.handledProps=["as","centered","children","className","color","content","description","extra","fluid","header","href","image","link","meta","onClick","raised"];Sn.propTypes={};Sn.Content=os;Sn.Description=Wl;Sn.Group=Cf;Sn.Header=Vl;Sn.Meta=Ql;function oo(e){var t=e.children,r=e.className,n=e.content,i=be("header",r),a=xe(oo,e),s=Ce(oo,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}oo.handledProps=["as","children","className","content"];oo.propTypes={};oo.create=nt(oo,function(e){return{content:e}});function so(e){var t=e.children,r=e.className,n=e.content,i=be("description",r),a=xe(so,e),s=Ce(so,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}so.handledProps=["as","children","className","content"];so.propTypes={};so.create=nt(so,function(e){return{content:e}});function lo(e){var t=e.children,r=e.className,n=e.content,i=be("extra",r),a=xe(lo,e),s=Ce(lo,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}lo.handledProps=["as","children","className","content"];lo.propTypes={};lo.create=nt(lo,function(e){return{content:e}});function uo(e){var t=e.children,r=e.className,n=e.content,i=be("meta",r),a=xe(uo,e),s=Ce(uo,e);return te.createElement(s,ie({},a,{className:i}),Pe(t)?n:t)}uo.handledProps=["as","children","className","content"];uo.propTypes={};uo.create=nt(uo,function(e){return{content:e}});function Kl(e){var t=e.children,r=e.className,n=e.content,i=e.description,a=e.extra,s=e.header,o=e.meta,l=e.verticalAlign,u=be(ca(l),"content",r),c=xe(Kl,e),d=Ce(Kl,e);return Pe(t)?te.createElement(d,ie({},c,{className:u}),oo.create(s,{autoGenerateKey:!1}),uo.create(o,{autoGenerateKey:!1}),so.create(i,{autoGenerateKey:!1}),lo.create(a,{autoGenerateKey:!1}),n):te.createElement(d,ie({},c,{className:u}),t)}Kl.handledProps=["as","children","className","content","description","extra","header","meta","verticalAlign"];Kl.propTypes={};function kf(e){var t=e.children,r=e.className,n=e.content,i=e.divided,a=e.items,s=e.link,o=e.relaxed,l=e.unstackable,u=be("ui",ee(i,"divided"),ee(s,"link"),ee(l,"unstackable"),Rt(o,"relaxed"),"items",r),c=xe(kf,e),d=Ce(kf,e);if(!Pe(t))return te.createElement(d,ie({},c,{className:u}),t);if(!Pe(n))return te.createElement(d,ie({},c,{className:u}),n);var p=Mn(a,function(m){var w=m.childKey,g=Wc(m,["childKey"]),_=w??[g.content,g.description,g.header,g.meta].join("-");return te.createElement(lt,ie({},g,{key:_}))});return te.createElement(d,ie({},c,{className:u}),p)}kf.handledProps=["as","children","className","content","divided","items","link","relaxed","unstackable"];kf.propTypes={};function ss(e){var t=e.size,r=xe(ss,e);return te.createElement(sn,ie({},r,{size:t,ui:!!t,wrapped:!0}))}ss.handledProps=["size"];ss.propTypes={};ss.create=nt(ss,function(e){return{src:e}});function lt(e){var t=e.children,r=e.className,n=e.content,i=e.description,a=e.extra,s=e.header,o=e.image,l=e.meta,u=be("item",r),c=xe(lt,e),d=Ce(lt,e);return Pe(t)?te.createElement(d,ie({},c,{className:u}),ss.create(o,{autoGenerateKey:!1}),te.createElement(Kl,{content:n,description:i,extra:a,header:s,meta:l})):te.createElement(d,ie({},c,{className:u}),t)}lt.handledProps=["as","children","className","content","description","extra","header","image","meta"];lt.Content=Kl;lt.Description=so;lt.Extra=lo;lt.Group=kf;lt.Header=oo;lt.Image=ss;lt.Meta=uo;lt.propTypes={};const CW="modulepreload",kW=function(e,t){return new URL(e,t).href},dA={},AW=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){let s=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};const o=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),u=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=s(r.map(c=>{if(c=kW(c,n),c in dA)return;dA[c]=!0;const d=c.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(!!n)for(let g=o.length-1;g>=0;g--){const _=o[g];if(_.href===c&&(!d||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${p}`))return;const w=document.createElement("link");if(w.rel=d?"stylesheet":CW,d||(w.as="script"),w.crossOrigin="",w.href=c,u&&w.setAttribute("nonce",u),document.head.appendChild(w),d)return new Promise((g,_)=>{w.addEventListener("load",g),w.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return i.then(s=>{for(const o of s||[])o.status==="rejected"&&a(o.reason);return t().catch(a)})};function Xt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function EM(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Pb(e){let t,r,n;e.length!==2?(t=Xt,r=(o,l)=>Xt(e(o),l),n=(o,l)=>e(o)-l):(t=e===Xt||e===EM?e:TW,r=e,n=e);function i(o,l,u=0,c=o.length){if(u<c){if(t(l,l)!==0)return c;do{const d=u+c>>>1;r(o[d],l)<0?u=d+1:c=d}while(u<c)}return u}function a(o,l,u=0,c=o.length){if(u<c){if(t(l,l)!==0)return c;do{const d=u+c>>>1;r(o[d],l)<=0?u=d+1:c=d}while(u<c)}return u}function s(o,l,u=0,c=o.length){const d=i(o,l,u,c-1);return d>u&&n(o[d-1],l)>-n(o[d],l)?d-1:d}return{left:i,center:s,right:a}}function TW(){return 0}function Up(e){return e===null?NaN:+e}function*IW(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const SM=Pb(Xt),e1=SM.right,PW=SM.left,RW=Pb(Up).center;function OW(e,t){if(!((t=+t)>=0))throw new RangeError("invalid r");let r=e.length;if(!((r=Math.floor(r))>=0))throw new RangeError("invalid length");if(!r||!t)return e;const n=Rb(t),i=e.slice();return n(e,i,0,r,1),n(i,e,0,r,1),n(e,i,0,r,1),e}const NW=CM(Rb),MW=CM(DW);function CM(e){return function(t,r,n=r){if(!((r=+r)>=0))throw new RangeError("invalid rx");if(!((n=+n)>=0))throw new RangeError("invalid ry");let{data:i,width:a,height:s}=t;if(!((a=Math.floor(a))>=0))throw new RangeError("invalid width");if(!((s=Math.floor(s!==void 0?s:i.length/a))>=0))throw new RangeError("invalid height");if(!a||!s||!r&&!n)return t;const o=r&&e(r),l=n&&e(n),u=i.slice();return o&&l?(Zs(o,u,i,a,s),Zs(o,i,u,a,s),Zs(o,u,i,a,s),el(l,i,u,a,s),el(l,u,i,a,s),el(l,i,u,a,s)):o?(Zs(o,i,u,a,s),Zs(o,u,i,a,s),Zs(o,i,u,a,s)):l&&(el(l,i,u,a,s),el(l,u,i,a,s),el(l,i,u,a,s)),t}}function Zs(e,t,r,n,i){for(let a=0,s=n*i;a<s;)e(t,r,a,a+=n,1)}function el(e,t,r,n,i){for(let a=0,s=n*i;a<n;++a)e(t,r,a,a+s,n)}function DW(e){const t=Rb(e);return(r,n,i,a,s)=>{i<<=2,a<<=2,s<<=2,t(r,n,i+0,a+0,s),t(r,n,i+1,a+1,s),t(r,n,i+2,a+2,s),t(r,n,i+3,a+3,s)}}function Rb(e){const t=Math.floor(e);if(t===e)return FW(e);const r=e-t,n=2*e+1;return(i,a,s,o,l)=>{if(!((o-=l)>=s))return;let u=t*a[s];const c=l*t,d=c+l;for(let p=s,m=s+c;p<m;p+=l)u+=a[Math.min(o,p)];for(let p=s,m=o;p<=m;p+=l)u+=a[Math.min(o,p+c)],i[p]=(u+r*(a[Math.max(s,p-d)]+a[Math.min(o,p+d)]))/n,u-=a[Math.max(s,p-c)]}}function FW(e){const t=2*e+1;return(r,n,i,a,s)=>{if(!((a-=s)>=i))return;let o=e*n[i];const l=s*e;for(let u=i,c=i+l;u<c;u+=s)o+=n[Math.min(a,u)];for(let u=i,c=a;u<=c;u+=s)o+=n[Math.min(a,u+l)],r[u]=o/t,o-=n[Math.max(i,u-l)]}}function _m(e,t){let r=0;if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&++r;else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(i=+i)>=i&&++r}return r}function LW(e){return e.length|0}function jW(e){return!(e>0)}function BW(e){return typeof e!="object"||"length"in e?e:Array.from(e)}function zW(e){return t=>e(...t)}function UW(...e){const t=typeof e[e.length-1]=="function"&&zW(e.pop());e=e.map(BW);const r=e.map(LW),n=e.length-1,i=new Array(n+1).fill(0),a=[];if(n<0||r.some(jW))return a;for(;;){a.push(i.map((o,l)=>e[l][o]));let s=n;for(;++i[s]===r[s];){if(s===0)return t?a.map(t):a;i[s--]=0}}}function $W(e,t){var r=0,n=0;return Float64Array.from(e,t===void 0?i=>r+=+i||0:i=>r+=+t(i,n++,e)||0)}function kM(e,t){let r=0,n,i=0,a=0;if(t===void 0)for(let s of e)s!=null&&(s=+s)>=s&&(n=s-i,i+=n/++r,a+=n*(s-i));else{let s=-1;for(let o of e)(o=t(o,++s,e))!=null&&(o=+o)>=o&&(n=o-i,i+=n/++r,a+=n*(o-i))}if(r>1)return a/(r-1)}function AM(e,t){const r=kM(e,t);return r&&Math.sqrt(r)}function Yo(e,t){let r,n;if(t===void 0)for(const i of e)i!=null&&(r===void 0?i>=i&&(r=n=i):(r>i&&(r=i),n<i&&(n=i)));else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(r===void 0?a>=a&&(r=n=a):(r>a&&(r=a),n<a&&(n=a)))}return[r,n]}class Ob{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const r=this._partials;let n=0;for(let i=0;i<this._n&&i<32;i++){const a=r[i],s=t+a,o=Math.abs(t)<Math.abs(a)?t-(s-a):a-(s-t);o&&(r[n++]=o),t=s}return r[n]=t,this._n=n+1,this}valueOf(){const t=this._partials;let r=this._n,n,i,a,s=0;if(r>0){for(s=t[--r];r>0&&(n=s,i=t[--r],s=n+i,a=i-(s-n),!a););r>0&&(a<0&&t[r-1]<0||a>0&&t[r-1]>0)&&(i=a*2,n=s+i,i==n-s&&(s=n))}return s}}function HW(e,t){const r=new Ob;if(t===void 0)for(let n of e)(n=+n)&&r.add(n);else{let n=-1;for(let i of e)(i=+t(i,++n,e))&&r.add(i)}return+r}function qW(e,t){const r=new Ob;let n=-1;return Float64Array.from(e,t===void 0?i=>r.add(+i||0):i=>r.add(+t(i,++n,e)||0))}class Nb extends Map{constructor(t,r=PM){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(t1(this,t))}has(t){return super.has(t1(this,t))}set(t,r){return super.set(TM(this,t),r)}delete(t){return super.delete(IM(this,t))}}class ls extends Set{constructor(t,r=PM){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const n of t)this.add(n)}has(t){return super.has(t1(this,t))}add(t){return super.add(TM(this,t))}delete(t){return super.delete(IM(this,t))}}function t1({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function TM({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function IM({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function PM(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Yl(e){return e}function RM(e,...t){return hu(e,Yl,Yl,t)}function OM(e,...t){return hu(e,Array.from,Yl,t)}function NM(e,t){for(let r=1,n=t.length;r<n;++r)e=e.flatMap(i=>i.pop().map(([a,s])=>[...i,a,s]));return e}function GW(e,...t){return NM(OM(e,...t),t)}function WW(e,t,...r){return NM(DM(e,t,...r),r)}function MM(e,t,...r){return hu(e,Yl,t,r)}function DM(e,t,...r){return hu(e,Array.from,t,r)}function VW(e,...t){return hu(e,Yl,FM,t)}function QW(e,...t){return hu(e,Array.from,FM,t)}function FM(e){if(e.length!==1)throw new Error("duplicate key");return e[0]}function hu(e,t,r,n){return function i(a,s){if(s>=n.length)return r(a);const o=new Nb,l=n[s++];let u=-1;for(const c of a){const d=l(c,++u,a),p=o.get(d);p?p.push(c):o.set(d,[c])}for(const[c,d]of o)o.set(c,i(d,s));return t(o)}(e,0)}function LM(e,t){return Array.from(t,r=>e[r])}function n1(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[r]=t;if(r&&r.length!==2||t.length>1){const n=Uint32Array.from(e,(i,a)=>a);return t.length>1?(t=t.map(i=>e.map(i)),n.sort((i,a)=>{for(const s of t){const o=Xl(s[i],s[a]);if(o)return o}})):(r=e.map(r),n.sort((i,a)=>Xl(r[i],r[a]))),LM(e,n)}return e.sort(Mb(r))}function Mb(e=Xt){if(e===Xt)return Xl;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Xl(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function KW(e,t,r){return(t.length!==2?n1(MM(e,t,r),([n,i],[a,s])=>Xt(i,s)||Xt(n,a)):n1(RM(e,r),([n,i],[a,s])=>t(i,s)||Xt(n,a))).map(([n])=>n)}var YW=Array.prototype,XW=YW.slice;function iy(e){return()=>e}const JW=Math.sqrt(50),ZW=Math.sqrt(10),eV=Math.sqrt(2);function $p(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),s=a>=JW?10:a>=ZW?5:a>=eV?2:1;let o,l,u;return i<0?(u=Math.pow(10,-i)/s,o=Math.round(e*u),l=Math.round(t*u),o/u<e&&++o,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*s,o=Math.round(e/u),l=Math.round(t/u),o*u<e&&++o,l*u>t&&--l),l<o&&.5<=r&&r<2?$p(e,t,r*2):[o,l,u]}function jM(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,s]=n?$p(t,e,r):$p(e,t,r);if(!(a>=i))return[];const o=a-i+1,l=new Array(o);if(n)if(s<0)for(let u=0;u<o;++u)l[u]=(a-u)/-s;else for(let u=0;u<o;++u)l[u]=(a-u)*s;else if(s<0)for(let u=0;u<o;++u)l[u]=(i+u)/-s;else for(let u=0;u<o;++u)l[u]=(i+u)*s;return l}function Jl(e,t,r){return t=+t,e=+e,r=+r,$p(e,t,r)[2]}function tV(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Jl(t,e,r):Jl(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function BM(e,t,r){let n;for(;;){const i=Jl(e,t,r);if(i===n||i===0||!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),n=i}}function zM(e){return Math.max(1,Math.ceil(Math.log(_m(e))/Math.LN2)+1)}function hA(){var e=Yl,t=Yo,r=zM;function n(i){Array.isArray(i)||(i=Array.from(i));var a,s=i.length,o,l,u=new Array(s);for(a=0;a<s;++a)u[a]=e(i[a],a,i);var c=t(u),d=c[0],p=c[1],m=r(u,d,p);if(!Array.isArray(m)){const b=p,C=+m;if(t===Yo&&([d,p]=BM(d,p,C)),m=jM(d,p,C),m[0]<=d&&(l=Jl(d,p,C)),m[m.length-1]>=p)if(b>=p&&t===Yo){const v=Jl(d,p,C);isFinite(v)&&(v>0?p=(Math.floor(p/v)+1)*v:v<0&&(p=(Math.ceil(p*-v)+1)/-v))}else m.pop()}for(var w=m.length,g=0,_=w;m[g]<=d;)++g;for(;m[_-1]>p;)--_;(g||_<w)&&(m=m.slice(g,_),w=_-g);var E=new Array(w+1),x;for(a=0;a<=w;++a)x=E[a]=[],x.x0=a>0?m[a-1]:d,x.x1=a<w?m[a]:p;if(isFinite(l)){if(l>0)for(a=0;a<s;++a)(o=u[a])!=null&&d<=o&&o<=p&&E[Math.min(w,Math.floor((o-d)/l))].push(i[a]);else if(l<0){for(a=0;a<s;++a)if((o=u[a])!=null&&d<=o&&o<=p){const b=Math.floor((d-o)*l);E[Math.min(w,b+(m[b]<=o))].push(i[a])}}}else for(a=0;a<s;++a)(o=u[a])!=null&&d<=o&&o<=p&&E[e1(m,o,0,w)].push(i[a]);return E}return n.value=function(i){return arguments.length?(e=typeof i=="function"?i:iy(i),n):e},n.domain=function(i){return arguments.length?(t=typeof i=="function"?i:iy([i[0],i[1]]),n):t},n.thresholds=function(i){return arguments.length?(r=typeof i=="function"?i:iy(Array.isArray(i)?XW.call(i):i),n):r},n}function co(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}return r}function Db(e,t){let r,n=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(r<a||r===void 0&&a>=a)&&(r=a,n=i);else for(let a of e)(a=t(a,++i,e))!=null&&(r<a||r===void 0&&a>=a)&&(r=a,n=i);return n}function Af(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function Fb(e,t){let r,n=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(r>a||r===void 0&&a>=a)&&(r=a,n=i);else for(let a of e)(a=t(a,++i,e))!=null&&(r>a||r===void 0&&a>=a)&&(r=a,n=i);return n}function bm(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Xl:Mb(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,c=Math.log(l),d=.5*Math.exp(2*c/3),p=.5*Math.sqrt(c*d*(l-d)/l)*(u-l/2<0?-1:1),m=Math.max(r,Math.floor(t-u*d/l+p)),w=Math.min(n,Math.floor(t+(l-u)*d/l+p));bm(e,t,m,w,i)}const a=e[t];let s=r,o=n;for(dc(e,r,t),i(e[n],a)>0&&dc(e,r,n);s<o;){for(dc(e,s,o),++s,--o;i(e[s],a)<0;)++s;for(;i(e[o],a)>0;)--o}i(e[r],a)===0?dc(e,r,o):(++o,dc(e,o,n)),o<=t&&(r=o+1),t<=o&&(n=o-1)}return e}function dc(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function UM(e,t=Xt){let r,n=!1;if(t.length===1){let i;for(const a of e){const s=t(a);(n?Xt(s,i)>0:Xt(s,s)===0)&&(r=a,i=s,n=!0)}}else for(const i of e)(n?t(i,r)>0:t(i,i)===0)&&(r=i,n=!0);return r}function Hp(e,t,r){if(e=Float64Array.from(IW(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Af(e);if(t>=1)return co(e);var n,i=(n-1)*t,a=Math.floor(i),s=co(bm(e,a).subarray(0,a+1)),o=Af(e.subarray(a+1));return s+(o-s)*(i-a)}}function nV(e,t,r=Up){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),s=+r(e[a],a,e),o=+r(e[a+1],a+1,e);return s+(o-s)*(i-a)}}function $M(e,t,r=Up){if(!isNaN(t=+t)){if(n=Float64Array.from(e,(o,l)=>Up(r(e[l],l,e))),t<=0)return Fb(n);if(t>=1)return Db(n);var n,i=Uint32Array.from(e,(o,l)=>l),a=n.length-1,s=Math.floor(a*t);return bm(i,s,0,a,(o,l)=>Xl(n[o],n[l])),s=UM(i.subarray(0,s+1),o=>n[o]),s>=0?s:-1}}function rV(e,t,r){const n=_m(e),i=Hp(e,.75)-Hp(e,.25);return n&&i?Math.ceil((r-t)/(2*i*Math.pow(n,-1/3))):1}function iV(e,t,r){const n=_m(e),i=AM(e);return n&&i?Math.ceil((r-t)*Math.cbrt(n)/(3.49*i)):1}function aV(e,t){let r=0,n=0;if(t===void 0)for(let i of e)i!=null&&(i=+i)>=i&&(++r,n+=i);else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(a=+a)>=a&&(++r,n+=a)}if(r)return n/r}function oV(e,t){return Hp(e,.5,t)}function sV(e,t){return $M(e,.5,t)}function*lV(e){for(const t of e)yield*t}function uV(e){return Array.from(lV(e))}function cV(e,t){const r=new Nb;if(t===void 0)for(let a of e)a!=null&&a>=a&&r.set(a,(r.get(a)||0)+1);else{let a=-1;for(let s of e)(s=t(s,++a,e))!=null&&s>=s&&r.set(s,(r.get(s)||0)+1)}let n,i=0;for(const[a,s]of r)s>i&&(i=s,n=a);return n}function fV(e,t=dV){const r=[];let n,i=!1;for(const a of e)i&&r.push(t(n,a)),n=a,i=!0;return r}function dV(e,t){return[e,t]}function hV(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function pV(e,t=Xt){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");let r=Array.from(e);const n=new Float64Array(r.length);t.length!==2&&(r=r.map(t),t=Xt);const i=(o,l)=>t(r[o],r[l]);let a,s;return e=Uint32Array.from(r,(o,l)=>l),e.sort(t===Xt?(o,l)=>Xl(r[o],r[l]):Mb(i)),e.forEach((o,l)=>{const u=i(o,a===void 0?o:a);u>=0?((a===void 0||u>0)&&(a=o,s=l),n[o]=s):n[o]=NaN}),n}function mV(e,t=Xt){let r,n=!1;if(t.length===1){let i;for(const a of e){const s=t(a);(n?Xt(s,i)<0:Xt(s,s)===0)&&(r=a,i=s,n=!0)}}else for(const i of e)(n?t(i,r)<0:t(i,i)===0)&&(r=i,n=!0);return r}function HM(e,t=Xt){if(t.length===1)return Fb(e,t);let r,n=-1,i=-1;for(const a of e)++i,(n<0?t(a,a)===0:t(a,r)<0)&&(r=a,n=i);return n}function gV(e,t=Xt){if(t.length===1)return Db(e,t);let r,n=-1,i=-1;for(const a of e)++i,(n<0?t(a,a)===0:t(a,r)>0)&&(r=a,n=i);return n}function vV(e,t){const r=HM(e,t);return r<0?void 0:r}const yV=qM(Math.random);function qM(e){return function(r,n=0,i=r.length){let a=i-(n=+n);for(;a;){const s=e()*a--|0,o=r[a+n];r[a+n]=r[s+n],r[s+n]=o}return r}}function wV(e,t){let r=0;if(t===void 0)for(let n of e)(n=+n)&&(r+=n);else{let n=-1;for(let i of e)(i=+t(i,++n,e))&&(r+=i)}return r}function GM(e){if(!(a=e.length))return[];for(var t=-1,r=Af(e,_V),n=new Array(r);++t<r;)for(var i=-1,a,s=n[t]=new Array(a);++i<a;)s[i]=e[i][t];return n}function _V(e){return e.length}function bV(){return GM(arguments)}function xV(e,t){if(typeof t!="function")throw new TypeError("test is not a function");let r=-1;for(const n of e)if(!t(n,++r,e))return!1;return!0}function EV(e,t){if(typeof t!="function")throw new TypeError("test is not a function");let r=-1;for(const n of e)if(t(n,++r,e))return!0;return!1}function SV(e,t){if(typeof t!="function")throw new TypeError("test is not a function");const r=[];let n=-1;for(const i of e)t(i,++n,e)&&r.push(i);return r}function CV(e,t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof t!="function")throw new TypeError("mapper is not a function");return Array.from(e,(r,n)=>t(r,n,e))}function kV(e,t,r){if(typeof t!="function")throw new TypeError("reducer is not a function");const n=e[Symbol.iterator]();let i,a,s=-1;if(arguments.length<3){if({done:i,value:r}=n.next(),i)return;++s}for(;{done:i,value:a}=n.next(),!i;)r=t(r,a,++s,e);return r}function AV(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(e).reverse()}function TV(e,...t){e=new ls(e);for(const r of t)for(const n of r)e.delete(n);return e}function IV(e,t){const r=t[Symbol.iterator](),n=new ls;for(const i of e){if(n.has(i))return!1;let a,s;for(;({value:a,done:s}=r.next())&&!s;){if(Object.is(i,a))return!1;n.add(a)}}return!0}function PV(e,...t){e=new ls(e),t=t.map(RV);e:for(const r of e)for(const n of t)if(!n.has(r)){e.delete(r);continue e}return e}function RV(e){return e instanceof ls?e:new ls(e)}function WM(e,t){const r=e[Symbol.iterator](),n=new Set;for(const i of t){const a=pA(i);if(n.has(a))continue;let s,o;for(;{value:s,done:o}=r.next();){if(o)return!1;const l=pA(s);if(n.add(l),Object.is(a,l))break}}return!0}function pA(e){return e!==null&&typeof e=="object"?e.valueOf():e}function OV(e,t){return WM(t,e)}function NV(...e){const t=new ls;for(const r of e)for(const n of r)t.add(n);return t}const MV=Object.freeze(Object.defineProperty({__proto__:null,Adder:Ob,InternMap:Nb,InternSet:ls,ascending:Xt,bin:hA,bisect:e1,bisectCenter:RW,bisectLeft:PW,bisectRight:e1,bisector:Pb,blur:OW,blur2:NW,blurImage:MW,count:_m,cross:UW,cumsum:$W,descending:EM,deviation:AM,difference:TV,disjoint:IV,every:xV,extent:Yo,fcumsum:qW,filter:SV,flatGroup:GW,flatRollup:WW,fsum:HW,greatest:UM,greatestIndex:gV,group:RM,groupSort:KW,groups:OM,histogram:hA,index:VW,indexes:QW,intersection:PV,least:mV,leastIndex:HM,map:CV,max:co,maxIndex:Db,mean:aV,median:oV,medianIndex:sV,merge:uV,min:Af,minIndex:Fb,mode:cV,nice:BM,pairs:fV,permute:LM,quantile:Hp,quantileIndex:$M,quantileSorted:nV,quickselect:bm,range:hV,rank:pV,reduce:kV,reverse:AV,rollup:MM,rollups:DM,scan:vV,shuffle:yV,shuffler:qM,some:EV,sort:n1,subset:OV,sum:wV,superset:WM,thresholdFreedmanDiaconis:rV,thresholdScott:iV,thresholdSturges:zM,tickIncrement:Jl,tickStep:tV,ticks:jM,transpose:GM,union:NV,variance:kM,zip:bV},Symbol.toStringTag,{value:"Module"}));function Lb(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function VM(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Yf(){}var Tf=.7,qp=1/Tf,fl="\\s*([+-]?\\d+)\\s*",If="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",yi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",DV=/^#([0-9a-f]{3,8})$/,FV=new RegExp(`^rgb\\(${fl},${fl},${fl}\\)$`),LV=new RegExp(`^rgb\\(${yi},${yi},${yi}\\)$`),jV=new RegExp(`^rgba\\(${fl},${fl},${fl},${If}\\)$`),BV=new RegExp(`^rgba\\(${yi},${yi},${yi},${If}\\)$`),zV=new RegExp(`^hsl\\(${If},${yi},${yi}\\)$`),UV=new RegExp(`^hsla\\(${If},${yi},${yi},${If}\\)$`),mA={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};Lb(Yf,Pf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:gA,formatHex:gA,formatHex8:$V,formatHsl:HV,formatRgb:vA,toString:vA});function gA(){return this.rgb().formatHex()}function $V(){return this.rgb().formatHex8()}function HV(){return QM(this).formatHsl()}function vA(){return this.rgb().formatRgb()}function Pf(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=DV.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?yA(t):r===3?new Vn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Th(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Th(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=FV.exec(e))?new Vn(t[1],t[2],t[3],1):(t=LV.exec(e))?new Vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=jV.exec(e))?Th(t[1],t[2],t[3],t[4]):(t=BV.exec(e))?Th(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zV.exec(e))?bA(t[1],t[2]/100,t[3]/100,1):(t=UV.exec(e))?bA(t[1],t[2]/100,t[3]/100,t[4]):mA.hasOwnProperty(e)?yA(mA[e]):e==="transparent"?new Vn(NaN,NaN,NaN,0):null}function yA(e){return new Vn(e>>16&255,e>>8&255,e&255,1)}function Th(e,t,r,n){return n<=0&&(e=t=r=NaN),new Vn(e,t,r,n)}function qV(e){return e instanceof Yf||(e=Pf(e)),e?(e=e.rgb(),new Vn(e.r,e.g,e.b,e.opacity)):new Vn}function r1(e,t,r,n){return arguments.length===1?qV(e):new Vn(e,t,r,n??1)}function Vn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Lb(Vn,r1,VM(Yf,{brighter(e){return e=e==null?qp:Math.pow(qp,e),new Vn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Tf:Math.pow(Tf,e),new Vn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vn(Xo(this.r),Xo(this.g),Xo(this.b),Gp(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:wA,formatHex:wA,formatHex8:GV,formatRgb:_A,toString:_A}));function wA(){return`#${Vo(this.r)}${Vo(this.g)}${Vo(this.b)}`}function GV(){return`#${Vo(this.r)}${Vo(this.g)}${Vo(this.b)}${Vo((isNaN(this.opacity)?1:this.opacity)*255)}`}function _A(){const e=Gp(this.opacity);return`${e===1?"rgb(":"rgba("}${Xo(this.r)}, ${Xo(this.g)}, ${Xo(this.b)}${e===1?")":`, ${e})`}`}function Gp(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Xo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vo(e){return e=Xo(e),(e<16?"0":"")+e.toString(16)}function bA(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Vr(e,t,r,n)}function QM(e){if(e instanceof Vr)return new Vr(e.h,e.s,e.l,e.opacity);if(e instanceof Yf||(e=Pf(e)),!e)return new Vr;if(e instanceof Vr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),s=NaN,o=a-i,l=(a+i)/2;return o?(t===a?s=(r-n)/o+(r<n)*6:r===a?s=(n-t)/o+2:s=(t-r)/o+4,o/=l<.5?a+i:2-a-i,s*=60):o=l>0&&l<1?0:s,new Vr(s,o,l,e.opacity)}function WV(e,t,r,n){return arguments.length===1?QM(e):new Vr(e,t,r,n??1)}function Vr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Lb(Vr,WV,VM(Yf,{brighter(e){return e=e==null?qp:Math.pow(qp,e),new Vr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Tf:Math.pow(Tf,e),new Vr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Vn(ay(e>=240?e-240:e+120,i,n),ay(e,i,n),ay(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Vr(xA(this.h),Ih(this.s),Ih(this.l),Gp(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=Gp(this.opacity);return`${e===1?"hsl(":"hsla("}${xA(this.h)}, ${Ih(this.s)*100}%, ${Ih(this.l)*100}%${e===1?")":`, ${e})`}`}}));function xA(e){return e=(e||0)%360,e<0?e+360:e}function Ih(e){return Math.max(0,Math.min(1,e||0))}function ay(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const KM=e=>()=>e;function VV(e,t){return function(r){return e+r*t}}function QV(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function KV(e){return(e=+e)==1?YM:function(t,r){return r-t?QV(t,r,e):KM(isNaN(t)?r:t)}}function YM(e,t){var r=t-e;return r?VV(e,r):KM(isNaN(e)?t:e)}const EA=function e(t){var r=KV(t);function n(i,a){var s=r((i=r1(i)).r,(a=r1(a)).r),o=r(i.g,a.g),l=r(i.b,a.b),u=YM(i.opacity,a.opacity);return function(c){return i.r=s(c),i.g=o(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n}(1);function ui(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var i1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oy=new RegExp(i1.source,"g");function YV(e){return function(){return e}}function XV(e){return function(t){return e(t)+""}}function JV(e,t){var r=i1.lastIndex=oy.lastIndex=0,n,i,a,s=-1,o=[],l=[];for(e=e+"",t=t+"";(n=i1.exec(e))&&(i=oy.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),o[s]?o[s]+=a:o[++s]=a),(n=n[0])===(i=i[0])?o[s]?o[s]+=i:o[++s]=i:(o[++s]=null,l.push({i:s,x:ui(n,i)})),r=oy.lastIndex;return r<t.length&&(a=t.slice(r),o[s]?o[s]+=a:o[++s]=a),o.length<2?l[0]?XV(l[0].x):YV(t):(t=l.length,function(u){for(var c=0,d;c<t;++c)o[(d=l[c]).i]=d.x(u);return o.join("")})}var SA=180/Math.PI,a1={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function XM(e,t,r,n,i,a){var s,o,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(o=Math.sqrt(r*r+n*n))&&(r/=o,n/=o,l/=o),e*n<t*r&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*SA,skewX:Math.atan(l)*SA,scaleX:s,scaleY:o}}var Ph;function ZV(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?a1:XM(t.a,t.b,t.c,t.d,t.e,t.f)}function eQ(e){return e==null||(Ph||(Ph=document.createElementNS("http://www.w3.org/2000/svg","g")),Ph.setAttribute("transform",e),!(e=Ph.transform.baseVal.consolidate()))?a1:(e=e.matrix,XM(e.a,e.b,e.c,e.d,e.e,e.f))}function JM(e,t,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,c,d,p,m,w){if(u!==d||c!==p){var g=m.push("translate(",null,t,null,r);w.push({i:g-4,x:ui(u,d)},{i:g-2,x:ui(c,p)})}else(d||p)&&m.push("translate("+d+t+p+r)}function s(u,c,d,p){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),p.push({i:d.push(i(d)+"rotate(",null,n)-2,x:ui(u,c)})):c&&d.push(i(d)+"rotate("+c+n)}function o(u,c,d,p){u!==c?p.push({i:d.push(i(d)+"skewX(",null,n)-2,x:ui(u,c)}):c&&d.push(i(d)+"skewX("+c+n)}function l(u,c,d,p,m,w){if(u!==d||c!==p){var g=m.push(i(m)+"scale(",null,",",null,")");w.push({i:g-4,x:ui(u,d)},{i:g-2,x:ui(c,p)})}else(d!==1||p!==1)&&m.push(i(m)+"scale("+d+","+p+")")}return function(u,c){var d=[],p=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,d,p),s(u.rotate,c.rotate,d,p),o(u.skewX,c.skewX,d,p),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,d,p),u=c=null,function(m){for(var w=-1,g=p.length,_;++w<g;)d[(_=p[w]).i]=_.x(m);return d.join("")}}}var tQ=JM(ZV,"px, ","px)","deg)"),nQ=JM(eQ,", ",")",")"),rQ=1e-12;function CA(e){return((e=Math.exp(e))+1/e)/2}function iQ(e){return((e=Math.exp(e))-1/e)/2}function aQ(e){return((e=Math.exp(2*e))-1)/(e+1)}const oQ=function e(t,r,n){function i(a,s){var o=a[0],l=a[1],u=a[2],c=s[0],d=s[1],p=s[2],m=c-o,w=d-l,g=m*m+w*w,_,E;if(g<rQ)E=Math.log(p/u)/t,_=function(T){return[o+T*m,l+T*w,u*Math.exp(t*T*E)]};else{var x=Math.sqrt(g),b=(p*p-u*u+n*g)/(2*u*r*x),C=(p*p-u*u-n*g)/(2*p*r*x),v=Math.log(Math.sqrt(b*b+1)-b),k=Math.log(Math.sqrt(C*C+1)-C);E=(k-v)/t,_=function(T){var N=T*E,M=CA(v),j=u/(r*x)*(M*aQ(t*N+v)-iQ(v));return[o+j*m,l+j*w,u*M/CA(t*N+v)]}}return _.duration=E*1e3*t/Math.SQRT2,_}return i.rho=function(a){var s=Math.max(.001,+a),o=s*s,l=o*o;return e(s,o,l)},i}(Math.SQRT2,2,4);var o1="http://www.w3.org/1999/xhtml";const s1={svg:"http://www.w3.org/2000/svg",xhtml:o1,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Xf(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),s1.hasOwnProperty(t)?{space:s1[t],local:e}:e}function sQ(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===o1&&t.documentElement.namespaceURI===o1?t.createElement(e):t.createElementNS(r,e)}}function lQ(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function xm(e){var t=Xf(e);return(t.local?lQ:sQ)(t)}function uQ(){}function Em(e){return e==null?uQ:function(){return this.querySelector(e)}}function cQ(e){typeof e!="function"&&(e=Em(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],s=a.length,o=n[i]=new Array(s),l,u,c=0;c<s;++c)(l=a[c])&&(u=e.call(l,l.__data__,c,a))&&("__data__"in l&&(u.__data__=l.__data__),o[c]=u);return new Fn(n,this._parents)}function ZM(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function fQ(){return[]}function jb(e){return e==null?fQ:function(){return this.querySelectorAll(e)}}function dQ(e){return function(){return ZM(e.apply(this,arguments))}}function hQ(e){typeof e=="function"?e=dQ(e):e=jb(e);for(var t=this._groups,r=t.length,n=[],i=[],a=0;a<r;++a)for(var s=t[a],o=s.length,l,u=0;u<o;++u)(l=s[u])&&(n.push(e.call(l,l.__data__,u,s)),i.push(l));return new Fn(n,i)}function Bb(e){return function(){return this.matches(e)}}function eD(e){return function(t){return t.matches(e)}}var pQ=Array.prototype.find;function mQ(e){return function(){return pQ.call(this.children,e)}}function gQ(){return this.firstElementChild}function vQ(e){return this.select(e==null?gQ:mQ(typeof e=="function"?e:eD(e)))}var yQ=Array.prototype.filter;function wQ(){return Array.from(this.children)}function _Q(e){return function(){return yQ.call(this.children,e)}}function bQ(e){return this.selectAll(e==null?wQ:_Q(typeof e=="function"?e:eD(e)))}function xQ(e){typeof e!="function"&&(e=Bb(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],s=a.length,o=n[i]=[],l,u=0;u<s;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&o.push(l);return new Fn(n,this._parents)}function tD(e){return new Array(e.length)}function EQ(){return new Fn(this._enter||this._groups.map(tD),this._parents)}function Wp(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Wp.prototype={constructor:Wp,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function SQ(e){return function(){return e}}function CQ(e,t,r,n,i,a){for(var s=0,o,l=t.length,u=a.length;s<u;++s)(o=t[s])?(o.__data__=a[s],n[s]=o):r[s]=new Wp(e,a[s]);for(;s<l;++s)(o=t[s])&&(i[s]=o)}function kQ(e,t,r,n,i,a,s){var o,l,u=new Map,c=t.length,d=a.length,p=new Array(c),m;for(o=0;o<c;++o)(l=t[o])&&(p[o]=m=s.call(l,l.__data__,o,t)+"",u.has(m)?i[o]=l:u.set(m,l));for(o=0;o<d;++o)m=s.call(e,a[o],o,a)+"",(l=u.get(m))?(n[o]=l,l.__data__=a[o],u.delete(m)):r[o]=new Wp(e,a[o]);for(o=0;o<c;++o)(l=t[o])&&u.get(p[o])===l&&(i[o]=l)}function AQ(e){return e.__data__}function TQ(e,t){if(!arguments.length)return Array.from(this,AQ);var r=t?kQ:CQ,n=this._parents,i=this._groups;typeof e!="function"&&(e=SQ(e));for(var a=i.length,s=new Array(a),o=new Array(a),l=new Array(a),u=0;u<a;++u){var c=n[u],d=i[u],p=d.length,m=IQ(e.call(c,c&&c.__data__,u,n)),w=m.length,g=o[u]=new Array(w),_=s[u]=new Array(w),E=l[u]=new Array(p);r(c,d,g,_,E,m,t);for(var x=0,b=0,C,v;x<w;++x)if(C=g[x]){for(x>=b&&(b=x+1);!(v=_[b])&&++b<w;);C._next=v||null}}return s=new Fn(s,n),s._enter=o,s._exit=l,s}function IQ(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function PQ(){return new Fn(this._exit||this._groups.map(tD),this._parents)}function RQ(e,t,r){var n=this.enter(),i=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}function OQ(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,a=n.length,s=Math.min(i,a),o=new Array(i),l=0;l<s;++l)for(var u=r[l],c=n[l],d=u.length,p=o[l]=new Array(d),m,w=0;w<d;++w)(m=u[w]||c[w])&&(p[w]=m);for(;l<i;++l)o[l]=r[l];return new Fn(o,this._parents)}function NQ(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n=e[t],i=n.length-1,a=n[i],s;--i>=0;)(s=n[i])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function MQ(e){e||(e=DQ);function t(d,p){return d&&p?e(d.__data__,p.__data__):!d-!p}for(var r=this._groups,n=r.length,i=new Array(n),a=0;a<n;++a){for(var s=r[a],o=s.length,l=i[a]=new Array(o),u,c=0;c<o;++c)(u=s[c])&&(l[c]=u);l.sort(t)}return new Fn(i,this._parents).order()}function DQ(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function FQ(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function LQ(){return Array.from(this)}function jQ(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length;i<a;++i){var s=n[i];if(s)return s}return null}function BQ(){let e=0;for(const t of this)++e;return e}function zQ(){return!this.node()}function UQ(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,s=i.length,o;a<s;++a)(o=i[a])&&e.call(o,o.__data__,a,i);return this}function $Q(e){return function(){this.removeAttribute(e)}}function HQ(e){return function(){this.removeAttributeNS(e.space,e.local)}}function qQ(e,t){return function(){this.setAttribute(e,t)}}function GQ(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function WQ(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function VQ(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function QQ(e,t){var r=Xf(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?HQ:$Q:typeof t=="function"?r.local?VQ:WQ:r.local?GQ:qQ)(r,t))}function zb(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function KQ(e){return function(){this.style.removeProperty(e)}}function YQ(e,t,r){return function(){this.style.setProperty(e,t,r)}}function XQ(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function JQ(e,t,r){return arguments.length>1?this.each((t==null?KQ:typeof t=="function"?XQ:YQ)(e,t,r??"")):us(this.node(),e)}function us(e,t){return e.style.getPropertyValue(t)||zb(e).getComputedStyle(e,null).getPropertyValue(t)}function ZQ(e){return function(){delete this[e]}}function eK(e,t){return function(){this[e]=t}}function tK(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function nK(e,t){return arguments.length>1?this.each((t==null?ZQ:typeof t=="function"?tK:eK)(e,t)):this.node()[e]}function nD(e){return e.trim().split(/^|\s+/)}function Ub(e){return e.classList||new rD(e)}function rD(e){this._node=e,this._names=nD(e.getAttribute("class")||"")}rD.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function iD(e,t){for(var r=Ub(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function aD(e,t){for(var r=Ub(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function rK(e){return function(){iD(this,e)}}function iK(e){return function(){aD(this,e)}}function aK(e,t){return function(){(t.apply(this,arguments)?iD:aD)(this,e)}}function oK(e,t){var r=nD(e+"");if(arguments.length<2){for(var n=Ub(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof t=="function"?aK:t?rK:iK)(r,t))}function sK(){this.textContent=""}function lK(e){return function(){this.textContent=e}}function uK(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function cK(e){return arguments.length?this.each(e==null?sK:(typeof e=="function"?uK:lK)(e)):this.node().textContent}function fK(){this.innerHTML=""}function dK(e){return function(){this.innerHTML=e}}function hK(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function pK(e){return arguments.length?this.each(e==null?fK:(typeof e=="function"?hK:dK)(e)):this.node().innerHTML}function mK(){this.nextSibling&&this.parentNode.appendChild(this)}function gK(){return this.each(mK)}function vK(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yK(){return this.each(vK)}function wK(e){var t=typeof e=="function"?e:xm(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function _K(){return null}function bK(e,t){var r=typeof e=="function"?e:xm(e),n=t==null?_K:typeof t=="function"?t:Em(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function xK(){var e=this.parentNode;e&&e.removeChild(this)}function EK(){return this.each(xK)}function SK(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function CK(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function kK(e){return this.select(e?CK:SK)}function AK(e){return arguments.length?this.property("__data__",e):this.node().__data__}function TK(e){return function(t){e.call(this,t,this.__data__)}}function IK(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function PK(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,a;r<i;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++n]=a;++n?t.length=n:delete this.__on}}}function RK(e,t,r){return function(){var n=this.__on,i,a=TK(t);if(n){for(var s=0,o=n.length;s<o;++s)if((i=n[s]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),i.value=t;return}}this.addEventListener(e.type,a,r),i={type:e.type,name:e.name,value:t,listener:a,options:r},n?n.push(i):this.__on=[i]}}function OK(e,t,r){var n=IK(e+""),i,a=n.length,s;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,u=o.length,c;l<u;++l)for(i=0,c=o[l];i<a;++i)if((s=n[i]).type===c.type&&s.name===c.name)return c.value}return}for(o=t?RK:PK,i=0;i<a;++i)this.each(o(n[i],t,r));return this}function oD(e,t,r){var n=zb(e),i=n.CustomEvent;typeof i=="function"?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function NK(e,t){return function(){return oD(this,e,t)}}function MK(e,t){return function(){return oD(this,e,t.apply(this,arguments))}}function DK(e,t){return this.each((typeof t=="function"?MK:NK)(e,t))}function*FK(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length,s;i<a;++i)(s=n[i])&&(yield s)}var $b=[null];function Fn(e,t){this._groups=e,this._parents=t}function pu(){return new Fn([[document.documentElement]],$b)}function LK(){return this}Fn.prototype=pu.prototype={constructor:Fn,select:cQ,selectAll:hQ,selectChild:vQ,selectChildren:bQ,filter:xQ,data:TQ,enter:EQ,exit:PQ,join:RQ,merge:OQ,selection:LK,order:NQ,sort:MQ,call:FQ,nodes:LQ,node:jQ,size:BQ,empty:zQ,each:UQ,attr:QQ,style:JQ,property:nK,classed:oK,text:cK,html:pK,raise:gK,lower:yK,append:wK,insert:bK,remove:EK,clone:kK,datum:AK,on:OK,dispatch:DK,[Symbol.iterator]:FK};function ve(e){return typeof e=="string"?new Fn([[document.querySelector(e)]],[document.documentElement]):new Fn([[e]],$b)}function oa(e){return ve(xm(e).call(document.documentElement))}var jK=0;function sD(){return new l1}function l1(){this._="@"+(++jK).toString(36)}l1.prototype=sD.prototype={constructor:l1,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._}};function lD(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Hi(e,t){if(e=lD(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var n=r.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(t.getScreenCTM().inverse()),[n.x,n.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 BK(e,t){return e.target&&(e=lD(e),t===void 0&&(t=e.currentTarget),e=e.touches||[e]),Array.from(e,r=>Hi(r,t))}function zK(e){return typeof e=="string"?new Fn([document.querySelectorAll(e)],[document.documentElement]):new Fn([ZM(e)],$b)}const UK=Object.freeze(Object.defineProperty({__proto__:null,create:oa,creator:xm,local:sD,matcher:Bb,namespace:Xf,namespaces:s1,pointer:Hi,pointers:BK,select:ve,selectAll:zK,selection:pu,selector:Em,selectorAll:jb,style:us,window:zb},Symbol.toStringTag,{value:"Module"}));var $K={value:()=>{}};function Hb(){for(var e=0,t=arguments.length,r={},n;e<t;++e){if(!(n=arguments[e]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new fp(r)}function fp(e){this._=e}function HK(e,t){return e.trim().split(/^|\s+/).map(function(r){var n="",i=r.indexOf(".");if(i>=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}fp.prototype=Hb.prototype={constructor:fp,on:function(e,t){var r=this._,n=HK(e+"",r),i,a=-1,s=n.length;if(arguments.length<2){for(;++a<s;)if((i=(e=n[a]).type)&&(i=qK(r[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<s;)if(i=(e=n[a]).type)r[i]=kA(r[i],e.name,t);else if(t==null)for(i in r)r[i]=kA(r[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new fp(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,a;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,i=a.length;n<i;++n)a[n].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],i=0,a=n.length;i<a;++i)n[i].value.apply(t,r)}};function qK(e,t){for(var r=0,n=e.length,i;r<n;++r)if((i=e[r]).name===t)return i.value}function kA(e,t,r){for(var n=0,i=e.length;n<i;++n)if(e[n].name===t){e[n]=$K,e=e.slice(0,n).concat(e.slice(n+1));break}return r!=null&&e.push({name:t,value:r}),e}var Zl=0,Mc=0,hc=0,uD=1e3,Vp,Dc,Qp=0,cs=0,Sm=0,Rf=typeof performance=="object"&&performance.now?performance:Date,cD=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function qb(){return cs||(cD(GK),cs=Rf.now()+Sm)}function GK(){cs=0}function Kp(){this._call=this._time=this._next=null}Kp.prototype=fD.prototype={constructor:Kp,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?qb():+r)+(t==null?0:+t),!this._next&&Dc!==this&&(Dc?Dc._next=this:Vp=this,Dc=this),this._call=e,this._time=r,u1()},stop:function(){this._call&&(this._call=null,this._time=1/0,u1())}};function fD(e,t,r){var n=new Kp;return n.restart(e,t,r),n}function WK(){qb(),++Zl;for(var e=Vp,t;e;)(t=cs-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Zl}function AA(){cs=(Qp=Rf.now())+Sm,Zl=Mc=0;try{WK()}finally{Zl=0,QK(),cs=0}}function VK(){var e=Rf.now(),t=e-Qp;t>uD&&(Sm-=t,Qp=e)}function QK(){for(var e,t=Vp,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Vp=r);Dc=e,u1(n)}function u1(e){if(!Zl){Mc&&(Mc=clearTimeout(Mc));var t=e-cs;t>24?(e<1/0&&(Mc=setTimeout(AA,e-Rf.now()-Sm)),hc&&(hc=clearInterval(hc))):(hc||(Qp=Rf.now(),hc=setInterval(VK,uD)),Zl=1,cD(AA))}}function TA(e,t,r){var n=new Kp;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var KK=Hb("start","end","cancel","interrupt"),YK=[],dD=0,IA=1,c1=2,dp=3,PA=4,f1=5,hp=6;function Cm(e,t,r,n,i,a){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;XK(e,r,{name:t,index:n,group:i,on:KK,tween:YK,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:dD})}function Gb(e,t){var r=Xr(e,t);if(r.state>dD)throw new Error("too late; already scheduled");return r}function ki(e,t){var r=Xr(e,t);if(r.state>dp)throw new Error("too late; already running");return r}function Xr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function XK(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=fD(a,0,r.time);function a(u){r.state=IA,r.timer.restart(s,r.delay,r.time),r.delay<=u&&s(u-r.delay)}function s(u){var c,d,p,m;if(r.state!==IA)return l();for(c in n)if(m=n[c],m.name===r.name){if(m.state===dp)return TA(s);m.state===PA?(m.state=hp,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete n[c]):+c<t&&(m.state=hp,m.timer.stop(),m.on.call("cancel",e,e.__data__,m.index,m.group),delete n[c])}if(TA(function(){r.state===dp&&(r.state=PA,r.timer.restart(o,r.delay,r.time),o(u))}),r.state=c1,r.on.call("start",e,e.__data__,r.index,r.group),r.state===c1){for(r.state=dp,i=new Array(p=r.tween.length),c=0,d=-1;c<p;++c)(m=r.tween[c].value.call(e,e.__data__,r.index,r.group))&&(i[++d]=m);i.length=d+1}}function o(u){for(var c=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(l),r.state=f1,1),d=-1,p=i.length;++d<p;)i[d].call(e,c);r.state===f1&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=hp,r.timer.stop(),delete n[t];for(var u in n)return;delete e.__transition}}function pp(e,t){var r=e.__transition,n,i,a=!0,s;if(r){t=t==null?null:t+"";for(s in r){if((n=r[s]).name!==t){a=!1;continue}i=n.state>c1&&n.state<f1,n.state=hp,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[s]}a&&delete e.__transition}}function JK(e){return this.each(function(){pp(this,e)})}function ZK(e,t){var r,n;return function(){var i=ki(this,e),a=i.tween;if(a!==r){n=r=a;for(var s=0,o=n.length;s<o;++s)if(n[s].name===t){n=n.slice(),n.splice(s,1);break}}i.tween=n}}function eY(e,t,r){var n,i;if(typeof r!="function")throw new Error;return function(){var a=ki(this,e),s=a.tween;if(s!==n){i=(n=s).slice();for(var o={name:t,value:r},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=o;break}l===u&&i.push(o)}a.tween=i}}function tY(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n=Xr(this.node(),r).tween,i=0,a=n.length,s;i<a;++i)if((s=n[i]).name===e)return s.value;return null}return this.each((t==null?ZK:eY)(r,e,t))}function Wb(e,t,r){var n=e._id;return e.each(function(){var i=ki(this,n);(i.value||(i.value={}))[t]=r.apply(this,arguments)}),function(i){return Xr(i,n).value[t]}}function hD(e,t){var r;return(typeof t=="number"?ui:t instanceof Pf?EA:(r=Pf(t))?(t=r,EA):JV)(e,t)}function nY(e){return function(){this.removeAttribute(e)}}function rY(e){return function(){this.removeAttributeNS(e.space,e.local)}}function iY(e,t,r){var n,i=r+"",a;return function(){var s=this.getAttribute(e);return s===i?null:s===n?a:a=t(n=s,r)}}function aY(e,t,r){var n,i=r+"",a;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===n?a:a=t(n=s,r)}}function oY(e,t,r){var n,i,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=o+"",s===l?null:s===n&&l===i?a:(i=l,a=t(n=s,o)))}}function sY(e,t,r){var n,i,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=o+"",s===l?null:s===n&&l===i?a:(i=l,a=t(n=s,o)))}}function lY(e,t){var r=Xf(e),n=r==="transform"?nQ:hD;return this.attrTween(e,typeof t=="function"?(r.local?sY:oY)(r,n,Wb(this,"attr."+e,t)):t==null?(r.local?rY:nY)(r):(r.local?aY:iY)(r,n,t))}function uY(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function cY(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function fY(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&cY(e,a)),r}return i._value=t,i}function dY(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&uY(e,a)),r}return i._value=t,i}function hY(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=Xf(e);return this.tween(r,(n.local?fY:dY)(n,t))}function pY(e,t){return function(){Gb(this,e).delay=+t.apply(this,arguments)}}function mY(e,t){return t=+t,function(){Gb(this,e).delay=t}}function gY(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?pY:mY)(t,e)):Xr(this.node(),t).delay}function vY(e,t){return function(){ki(this,e).duration=+t.apply(this,arguments)}}function yY(e,t){return t=+t,function(){ki(this,e).duration=t}}function wY(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?vY:yY)(t,e)):Xr(this.node(),t).duration}function _Y(e,t){if(typeof t!="function")throw new Error;return function(){ki(this,e).ease=t}}function bY(e){var t=this._id;return arguments.length?this.each(_Y(t,e)):Xr(this.node(),t).ease}function xY(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;ki(this,e).ease=r}}function EY(e){if(typeof e!="function")throw new Error;return this.each(xY(this._id,e))}function SY(e){typeof e!="function"&&(e=Bb(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],s=a.length,o=n[i]=[],l,u=0;u<s;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&o.push(l);return new sa(n,this._parents,this._name,this._id)}function CY(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,a=Math.min(n,i),s=new Array(n),o=0;o<a;++o)for(var l=t[o],u=r[o],c=l.length,d=s[o]=new Array(c),p,m=0;m<c;++m)(p=l[m]||u[m])&&(d[m]=p);for(;o<n;++o)s[o]=t[o];return new sa(s,this._parents,this._name,this._id)}function kY(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function AY(e,t,r){var n,i,a=kY(t)?Gb:ki;return function(){var s=a(this,e),o=s.on;o!==n&&(i=(n=o).copy()).on(t,r),s.on=i}}function TY(e,t){var r=this._id;return arguments.length<2?Xr(this.node(),r).on.on(e):this.each(AY(r,e,t))}function IY(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function PY(){return this.on("end.remove",IY(this._id))}function RY(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Em(e));for(var n=this._groups,i=n.length,a=new Array(i),s=0;s<i;++s)for(var o=n[s],l=o.length,u=a[s]=new Array(l),c,d,p=0;p<l;++p)(c=o[p])&&(d=e.call(c,c.__data__,p,o))&&("__data__"in c&&(d.__data__=c.__data__),u[p]=d,Cm(u[p],t,r,p,u,Xr(c,r)));return new sa(a,this._parents,t,r)}function OY(e){var t=this._name,r=this._id;typeof e!="function"&&(e=jb(e));for(var n=this._groups,i=n.length,a=[],s=[],o=0;o<i;++o)for(var l=n[o],u=l.length,c,d=0;d<u;++d)if(c=l[d]){for(var p=e.call(c,c.__data__,d,l),m,w=Xr(c,r),g=0,_=p.length;g<_;++g)(m=p[g])&&Cm(m,t,r,g,p,w);a.push(p),s.push(c)}return new sa(a,s,t,r)}var NY=pu.prototype.constructor;function MY(){return new NY(this._groups,this._parents)}function DY(e,t){var r,n,i;return function(){var a=us(this,e),s=(this.style.removeProperty(e),us(this,e));return a===s?null:a===r&&s===n?i:i=t(r=a,n=s)}}function pD(e){return function(){this.style.removeProperty(e)}}function FY(e,t,r){var n,i=r+"",a;return function(){var s=us(this,e);return s===i?null:s===n?a:a=t(n=s,r)}}function LY(e,t,r){var n,i,a;return function(){var s=us(this,e),o=r(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(e),us(this,e))),s===l?null:s===n&&l===i?a:(i=l,a=t(n=s,o))}}function jY(e,t){var r,n,i,a="style."+t,s="end."+a,o;return function(){var l=ki(this,e),u=l.on,c=l.value[a]==null?o||(o=pD(t)):void 0;(u!==r||i!==c)&&(n=(r=u).copy()).on(s,i=c),l.on=n}}function BY(e,t,r){var n=(e+="")=="transform"?tQ:hD;return t==null?this.styleTween(e,DY(e,n)).on("end.style."+e,pD(e)):typeof t=="function"?this.styleTween(e,LY(e,n,Wb(this,"style."+e,t))).each(jY(this._id,e)):this.styleTween(e,FY(e,n,t),r).on("end.style."+e,null)}function zY(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function UY(e,t,r){var n,i;function a(){var s=t.apply(this,arguments);return s!==i&&(n=(i=s)&&zY(e,s,r)),n}return a._value=t,a}function $Y(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,UY(e,t,r??""))}function HY(e){return function(){this.textContent=e}}function qY(e){return function(){var t=e(this);this.textContent=t??""}}function GY(e){return this.tween("text",typeof e=="function"?qY(Wb(this,"text",e)):HY(e==null?"":e+""))}function WY(e){return function(t){this.textContent=e.call(this,t)}}function VY(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&WY(i)),t}return n._value=e,n}function QY(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,VY(e))}function KY(){for(var e=this._name,t=this._id,r=mD(),n=this._groups,i=n.length,a=0;a<i;++a)for(var s=n[a],o=s.length,l,u=0;u<o;++u)if(l=s[u]){var c=Xr(l,t);Cm(l,e,r,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new sa(n,this._parents,e,r)}function YY(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(a,s){var o={value:s},l={value:function(){--i===0&&a()}};r.each(function(){var u=ki(this,n),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(o),t._.interrupt.push(o),t._.end.push(l)),u.on=t}),i===0&&a()})}var XY=0;function sa(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function mD(){return++XY}var ji=pu.prototype;sa.prototype={constructor:sa,select:RY,selectAll:OY,selectChild:ji.selectChild,selectChildren:ji.selectChildren,filter:SY,merge:CY,selection:MY,transition:KY,call:ji.call,nodes:ji.nodes,node:ji.node,size:ji.size,empty:ji.empty,each:ji.each,on:TY,attr:lY,attrTween:hY,style:BY,styleTween:$Y,text:GY,textTween:QY,remove:PY,tween:tY,delay:gY,duration:wY,ease:bY,easeVarying:EY,end:YY,[Symbol.iterator]:ji[Symbol.iterator]};function JY(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var ZY={time:null,delay:0,duration:250,ease:JY};function eX(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function tX(e){var t,r;e instanceof sa?(t=e._id,e=e._name):(t=mD(),(r=ZY).time=qb(),e=e==null?null:e+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var s=n[a],o=s.length,l,u=0;u<o;++u)(l=s[u])&&Cm(l,e,t,u,s,r||eX(l,t));return new sa(n,this._parents,e,t)}pu.prototype.interrupt=JK;pu.prototype.transition=tX;const d1={capture:!0,passive:!1};function h1(e){e.preventDefault(),e.stopImmediatePropagation()}function nX(e){var t=e.document.documentElement,r=ve(e).on("dragstart.drag",h1,d1);"onselectstart"in t?r.on("selectstart.drag",h1,d1):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function rX(e,t){var r=e.document.documentElement,n=ve(e).on("dragstart.drag",null);t&&(n.on("click.drag",h1,d1),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in r?n.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const Rh=e=>()=>e;function iX(e,{sourceEvent:t,target:r,transform:n,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:i}})}function Vi(e,t,r){this.k=e,this.x=t,this.y=r}Vi.prototype={constructor:Vi,scale:function(e){return e===1?this:new Vi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Vi(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 km=new Vi(1,0,0);mu.prototype=Vi.prototype;function mu(e){for(;!e.__zoom;)if(!(e=e.parentNode))return km;return e.__zoom}function sy(e){e.stopImmediatePropagation()}function pc(e){e.preventDefault(),e.stopImmediatePropagation()}function aX(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function oX(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.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 RA(){return this.__zoom||km}function sX(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function lX(){return navigator.maxTouchPoints||"ontouchstart"in this}function uX(e,t,r){var n=e.invertX(t[0][0])-r[0][0],i=e.invertX(t[1][0])-r[1][0],a=e.invertY(t[0][1])-r[0][1],s=e.invertY(t[1][1])-r[1][1];return e.translate(i>n?(n+i)/2:Math.min(0,n)||Math.max(0,i),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function Vb(){var e=aX,t=oX,r=uX,n=sX,i=lX,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],o=250,l=oQ,u=Hb("start","zoom","end"),c,d,p,m=500,w=150,g=0,_=10;function E(W){W.property("__zoom",RA).on("wheel.zoom",N,{passive:!1}).on("mousedown.zoom",M).on("dblclick.zoom",j).filter(i).on("touchstart.zoom",D).on("touchmove.zoom",$).on("touchend.zoom touchcancel.zoom",X).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(W,H,V,K){var Y=W.selection?W.selection():W;Y.property("__zoom",RA),W!==Y?v(W,H,V,K):Y.interrupt().each(function(){k(this,arguments).event(K).start().zoom(null,typeof H=="function"?H.apply(this,arguments):H).end()})},E.scaleBy=function(W,H,V,K){E.scaleTo(W,function(){var Y=this.__zoom.k,q=typeof H=="function"?H.apply(this,arguments):H;return Y*q},V,K)},E.scaleTo=function(W,H,V,K){E.transform(W,function(){var Y=t.apply(this,arguments),q=this.__zoom,F=V==null?C(Y):typeof V=="function"?V.apply(this,arguments):V,G=q.invert(F),z=typeof H=="function"?H.apply(this,arguments):H;return r(b(x(q,z),F,G),Y,s)},V,K)},E.translateBy=function(W,H,V,K){E.transform(W,function(){return r(this.__zoom.translate(typeof H=="function"?H.apply(this,arguments):H,typeof V=="function"?V.apply(this,arguments):V),t.apply(this,arguments),s)},null,K)},E.translateTo=function(W,H,V,K,Y){E.transform(W,function(){var q=t.apply(this,arguments),F=this.__zoom,G=K==null?C(q):typeof K=="function"?K.apply(this,arguments):K;return r(km.translate(G[0],G[1]).scale(F.k).translate(typeof H=="function"?-H.apply(this,arguments):-H,typeof V=="function"?-V.apply(this,arguments):-V),q,s)},K,Y)};function x(W,H){return H=Math.max(a[0],Math.min(a[1],H)),H===W.k?W:new Vi(H,W.x,W.y)}function b(W,H,V){var K=H[0]-V[0]*W.k,Y=H[1]-V[1]*W.k;return K===W.x&&Y===W.y?W:new Vi(W.k,K,Y)}function C(W){return[(+W[0][0]+ +W[1][0])/2,(+W[0][1]+ +W[1][1])/2]}function v(W,H,V,K){W.on("start.zoom",function(){k(this,arguments).event(K).start()}).on("interrupt.zoom end.zoom",function(){k(this,arguments).event(K).end()}).tween("zoom",function(){var Y=this,q=arguments,F=k(Y,q).event(K),G=t.apply(Y,q),z=V==null?C(G):typeof V=="function"?V.apply(Y,q):V,B=Math.max(G[1][0]-G[0][0],G[1][1]-G[0][1]),se=Y.__zoom,de=typeof H=="function"?H.apply(Y,q):H,me=l(se.invert(z).concat(B/se.k),de.invert(z).concat(B/de.k));return function(Ee){if(Ee===1)Ee=de;else{var Ie=me(Ee),Ne=B/Ie[2];Ee=new Vi(Ne,z[0]-Ie[0]*Ne,z[1]-Ie[1]*Ne)}F.zoom(null,Ee)}})}function k(W,H,V){return!V&&W.__zooming||new T(W,H)}function T(W,H){this.that=W,this.args=H,this.active=0,this.sourceEvent=null,this.extent=t.apply(W,H),this.taps=0}T.prototype={event:function(W){return W&&(this.sourceEvent=W),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(W,H){return this.mouse&&W!=="mouse"&&(this.mouse[1]=H.invert(this.mouse[0])),this.touch0&&W!=="touch"&&(this.touch0[1]=H.invert(this.touch0[0])),this.touch1&&W!=="touch"&&(this.touch1[1]=H.invert(this.touch1[0])),this.that.__zoom=H,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(W){var H=ve(this.that).datum();u.call(W,this.that,new iX(W,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:u}),H)}};function N(W,...H){if(!e.apply(this,arguments))return;var V=k(this,H).event(W),K=this.__zoom,Y=Math.max(a[0],Math.min(a[1],K.k*Math.pow(2,n.apply(this,arguments)))),q=Hi(W);if(V.wheel)(V.mouse[0][0]!==q[0]||V.mouse[0][1]!==q[1])&&(V.mouse[1]=K.invert(V.mouse[0]=q)),clearTimeout(V.wheel);else{if(K.k===Y)return;V.mouse=[q,K.invert(q)],pp(this),V.start()}pc(W),V.wheel=setTimeout(F,w),V.zoom("mouse",r(b(x(K,Y),V.mouse[0],V.mouse[1]),V.extent,s));function F(){V.wheel=null,V.end()}}function M(W,...H){if(p||!e.apply(this,arguments))return;var V=W.currentTarget,K=k(this,H,!0).event(W),Y=ve(W.view).on("mousemove.zoom",z,!0).on("mouseup.zoom",B,!0),q=Hi(W,V),F=W.clientX,G=W.clientY;nX(W.view),sy(W),K.mouse=[q,this.__zoom.invert(q)],pp(this),K.start();function z(se){if(pc(se),!K.moved){var de=se.clientX-F,me=se.clientY-G;K.moved=de*de+me*me>g}K.event(se).zoom("mouse",r(b(K.that.__zoom,K.mouse[0]=Hi(se,V),K.mouse[1]),K.extent,s))}function B(se){Y.on("mousemove.zoom mouseup.zoom",null),rX(se.view,K.moved),pc(se),K.event(se).end()}}function j(W,...H){if(e.apply(this,arguments)){var V=this.__zoom,K=Hi(W.changedTouches?W.changedTouches[0]:W,this),Y=V.invert(K),q=V.k*(W.shiftKey?.5:2),F=r(b(x(V,q),K,Y),t.apply(this,H),s);pc(W),o>0?ve(this).transition().duration(o).call(v,F,K,W):ve(this).call(E.transform,F,K,W)}}function D(W,...H){if(e.apply(this,arguments)){var V=W.touches,K=V.length,Y=k(this,H,W.changedTouches.length===K).event(W),q,F,G,z;for(sy(W),F=0;F<K;++F)G=V[F],z=Hi(G,this),z=[z,this.__zoom.invert(z),G.identifier],Y.touch0?!Y.touch1&&Y.touch0[2]!==z[2]&&(Y.touch1=z,Y.taps=0):(Y.touch0=z,q=!0,Y.taps=1+!!c);c&&(c=clearTimeout(c)),q&&(Y.taps<2&&(d=z[0],c=setTimeout(function(){c=null},m)),pp(this),Y.start())}}function $(W,...H){if(this.__zooming){var V=k(this,H).event(W),K=W.changedTouches,Y=K.length,q,F,G,z;for(pc(W),q=0;q<Y;++q)F=K[q],G=Hi(F,this),V.touch0&&V.touch0[2]===F.identifier?V.touch0[0]=G:V.touch1&&V.touch1[2]===F.identifier&&(V.touch1[0]=G);if(F=V.that.__zoom,V.touch1){var B=V.touch0[0],se=V.touch0[1],de=V.touch1[0],me=V.touch1[1],Ee=(Ee=de[0]-B[0])*Ee+(Ee=de[1]-B[1])*Ee,Ie=(Ie=me[0]-se[0])*Ie+(Ie=me[1]-se[1])*Ie;F=x(F,Math.sqrt(Ee/Ie)),G=[(B[0]+de[0])/2,(B[1]+de[1])/2],z=[(se[0]+me[0])/2,(se[1]+me[1])/2]}else if(V.touch0)G=V.touch0[0],z=V.touch0[1];else return;V.zoom("touch",r(b(F,G,z),V.extent,s))}}function X(W,...H){if(this.__zooming){var V=k(this,H).event(W),K=W.changedTouches,Y=K.length,q,F;for(sy(W),p&&clearTimeout(p),p=setTimeout(function(){p=null},m),q=0;q<Y;++q)F=K[q],V.touch0&&V.touch0[2]===F.identifier?delete V.touch0:V.touch1&&V.touch1[2]===F.identifier&&delete V.touch1;if(V.touch1&&!V.touch0&&(V.touch0=V.touch1,delete V.touch1),V.touch0)V.touch0[1]=this.__zoom.invert(V.touch0[0]);else if(V.end(),V.taps===2&&(F=Hi(F,this),Math.hypot(d[0]-F[0],d[1]-F[1])<_)){var G=ve(this).on("dblclick.zoom");G&&G.apply(this,arguments)}}}return E.wheelDelta=function(W){return arguments.length?(n=typeof W=="function"?W:Rh(+W),E):n},E.filter=function(W){return arguments.length?(e=typeof W=="function"?W:Rh(!!W),E):e},E.touchable=function(W){return arguments.length?(i=typeof W=="function"?W:Rh(!!W),E):i},E.extent=function(W){return arguments.length?(t=typeof W=="function"?W:Rh([[+W[0][0],+W[0][1]],[+W[1][0],+W[1][1]]]),E):t},E.scaleExtent=function(W){return arguments.length?(a[0]=+W[0],a[1]=+W[1],E):[a[0],a[1]]},E.translateExtent=function(W){return arguments.length?(s[0][0]=+W[0][0],s[1][0]=+W[1][0],s[0][1]=+W[0][1],s[1][1]=+W[1][1],E):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},E.constrain=function(W){return arguments.length?(r=W,E):r},E.duration=function(W){return arguments.length?(o=+W,E):o},E.interpolate=function(W){return arguments.length?(l=W,E):l},E.on=function(){var W=u.on.apply(u,arguments);return W===u?E:W},E.clickDistance=function(W){return arguments.length?(g=(W=+W)*W,E):Math.sqrt(g)},E.tapDistance=function(W){return arguments.length?(_=+W,E):_},E}var mp={exports:{}},cX=mp.exports,OA;function fX(){return OA||(OA=1,function(e,t){(function(r,n){n()})(cX,function(){function r(u,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}function n(u,c,d){var p=new XMLHttpRequest;p.open("GET",u),p.responseType="blob",p.onload=function(){l(p.response,c,d)},p.onerror=function(){console.error("could not download file")},p.send()}function i(u){var c=new XMLHttpRequest;c.open("HEAD",u,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function a(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(c)}}var s=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof hi=="object"&&hi.global===hi?hi:void 0,o=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=s.saveAs||(typeof window!="object"||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(u,c,d){var p=s.URL||s.webkitURL,m=document.createElement("a");c=c||u.name||"download",m.download=c,m.rel="noopener",typeof u=="string"?(m.href=u,m.origin===location.origin?a(m):i(m.href)?n(u,c,d):a(m,m.target="_blank")):(m.href=p.createObjectURL(u),setTimeout(function(){p.revokeObjectURL(m.href)},4e4),setTimeout(function(){a(m)},0))}:"msSaveOrOpenBlob"in navigator?function(u,c,d){if(c=c||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(r(u,d),c);else if(i(u))n(u,c,d);else{var p=document.createElement("a");p.href=u,p.target="_blank",setTimeout(function(){a(p)})}}:function(u,c,d,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof u=="string")return n(u,c,d);var m=u.type==="application/octet-stream",w=/constructor/i.test(s.HTMLElement)||s.safari,g=/CriOS\/[\d]+/.test(navigator.userAgent);if((g||m&&w||o)&&typeof FileReader<"u"){var _=new FileReader;_.onloadend=function(){var b=_.result;b=g?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=b:location=b,p=null},_.readAsDataURL(u)}else{var E=s.URL||s.webkitURL,x=E.createObjectURL(u);p?p.location=x:location.href=x,p=null,setTimeout(function(){E.revokeObjectURL(x)},4e4)}});s.saveAs=l.saveAs=l,e.exports=l})}(mp)),mp.exports}var gD=fX(),Bo={};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(r,n){return Array.isArray(n)?r.push.apply(r,e.call(n,t-1)):r.push(n),r},[]):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});var Ma={},Bi={},NA;function Jf(){if(NA)return Bi;NA=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.ChartColors=Bi.ExpanderDirection=Bi.ExpanderState=void 0;var e;(function(n){n[n.PLUS=0]="PLUS",n[n.MINUS=1]="MINUS"})(e||(Bi.ExpanderState=e={}));var t;(function(n){n[n.INDI=0]="INDI",n[n.SPOUSE=1]="SPOUSE",n[n.FAMILY=2]="FAMILY"})(t||(Bi.ExpanderDirection=t={}));var r;return function(n){n[n.NO_COLOR=0]="NO_COLOR",n[n.COLOR_BY_GENERATION=1]="COLOR_BY_GENERATION",n[n.COLOR_BY_SEX=2]="COLOR_BY_SEX"}(r||(Bi.ChartColors=r={})),Bi}var ly={};const Am=Df(UK);function dX(e){var t=0,r=e.children,n=r&&r.length;if(!n)t=1;else for(;--n>=0;)t+=r[n].value;e.value=t}function hX(){return this.eachAfter(dX)}function pX(e){var t=this,r,n=[t],i,a,s;do for(r=n.reverse(),n=[];t=r.pop();)if(e(t),i=t.children,i)for(a=0,s=i.length;a<s;++a)n.push(i[a]);while(n.length);return this}function mX(e){for(var t=this,r=[t],n,i;t=r.pop();)if(e(t),n=t.children,n)for(i=n.length-1;i>=0;--i)r.push(n[i]);return this}function gX(e){for(var t=this,r=[t],n=[],i,a,s;t=r.pop();)if(n.push(t),i=t.children,i)for(a=0,s=i.length;a<s;++a)r.push(i[a]);for(;t=n.pop();)e(t);return this}function vX(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r})}function yX(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function wX(e){for(var t=this,r=_X(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}function _X(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}function bX(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function xX(){var e=[];return this.each(function(t){e.push(t)}),e}function EX(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function SX(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function Qb(e,t){var r=new Yp(e),n=+e.value&&(r.value=e.value),i,a=[r],s,o,l,u;for(t==null&&(t=kX);i=a.pop();)if(n&&(i.value=+i.data.value),(o=t(i.data))&&(u=o.length))for(i.children=new Array(u),l=u-1;l>=0;--l)a.push(s=i.children[l]=new Yp(o[l])),s.parent=i,s.depth=i.depth+1;return r.eachBefore(TX)}function CX(){return Qb(this).eachBefore(AX)}function kX(e){return e.children}function AX(e){e.data=e.data.data}function TX(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Yp(e){this.data=e,this.depth=this.height=0,this.parent=null}Yp.prototype=Qb.prototype={constructor:Yp,count:hX,each:pX,eachAfter:gX,eachBefore:mX,sum:vX,sort:yX,path:wX,ancestors:bX,descendants:xX,leaves:EX,links:SX,copy:CX};const IX="2.1.2",PX={version:IX},{version:RX}=PX,OX=Object.freeze({children:e=>e.children,nodeSize:e=>e.data.size,spacing:0});function yD(e){const t=Object.assign({},OX,e);function r(o){const l=t[o];return typeof l=="function"?l:()=>l}function n(o){const l=s(a(),o,u=>u.children);return l.update(),l.data}function i(){const o=r("nodeSize"),l=r("spacing");return class vD extends Qb.prototype.constructor{constructor(c){super(c)}copy(){const c=s(this.constructor,this,d=>d.children);return c.each(d=>d.data=d.data.data),c}get size(){return o(this)}spacing(c){return l(this,c)}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 c=this.ancestors();return c[c.length-1]}get numChildren(){return this.hasChildren?this.children.length:0}get hasChildren(){return!this.noChildren}get noChildren(){return this.children===null}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((c,d)=>vD.maxExtents(c,d.extents),this.nodeExtents)}get nodeExtents(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}static maxExtents(c,d){return{top:Math.min(c.top,d.top),bottom:Math.max(c.bottom,d.bottom),left:Math.min(c.left,d.left),right:Math.max(c.right,d.right)}}}}function a(){const o=i(),l=r("nodeSize"),u=r("spacing");return class extends o{constructor(c){super(c),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 l(this.data)}spacing(c){return u(this.data,c.data)}get x(){return this.data.x}set x(c){this.data.x=c}get y(){return this.data.y}set y(c){this.data.y=c}update(){return wD(this),_D(this),this}}}function s(o,l,u){const c=(d,p)=>{const m=new o(d);Object.assign(m,{parent:p,depth:p===null?0:p.depth+1,height:0,length:1});const w=u(d)||[];return m.children=w.length===0?null:w.map(g=>c(g,m)),m.children&&Object.assign(m,m.children.reduce((g,_)=>({height:Math.max(g.height,_.height+1),length:g.length+_.length}),m)),m};return c(l,null)}return Object.assign(n,{nodeSize(o){return arguments.length?(t.nodeSize=o,n):t.nodeSize},spacing(o){return arguments.length?(t.spacing=o,n):t.spacing},children(o){return arguments.length?(t.children=o,n):t.children},hierarchy(o,l){const u=typeof l>"u"?t.children:l;return s(i(),o,u)},dump(o){const l=r("nodeSize"),u=c=>d=>{const p=c+" ",m=c+" ",{x:w,y:g}=d,_=l(d),E=d.children||[],x=E.length===0?" ":`,${p}children: [${m}${E.map(u(m)).join(m)}${p}],${c}`;return`{ size: [${_.join(", ")}],${p}x: ${w}, y: ${g}${x}},`};return u(`
`)(o)}}),n}yD.version=RX;const wD=(e,t=0)=>(e.y=t,(e.children||[]).reduce((r,n)=>{const[i,a]=r;wD(n,e.y+e.ySize);const s=(i===0?n.lExt:n.rExt).bottom;i!==0&&MX(e,i,a);const o=$X(s,i,a);return[i+1,o]},[0,null]),NX(e),UX(e),e),_D=(e,t,r)=>{typeof t>"u"&&(t=-e.relX-e.prelim,r=0);const n=t+e.relX;return e.relX=n+e.prelim-r,e.prelim=0,e.x=r+e.relX,(e.children||[]).forEach(i=>_D(i,n,e.x)),e},NX=e=>{(e.children||[]).reduce((t,r)=>{const[n,i]=t,a=n+r.shift,s=i+a+r.change;return r.relX+=s,[a,s]},[0,0])},MX=(e,t,r)=>{const n=e.children[t-1],i=e.children[t];let a=n,s=n.relX,o=i,l=i.relX,u=!0;for(;a&&o;){a.bottom>r.lowY&&(r=r.next);const c=s+a.prelim-(l+o.prelim)+a.xSize/2+o.xSize/2+a.spacing(o);(c>0||c<0&&u)&&(l+=c,DX(i,c),FX(e,t,r.index,c)),u=!1;const d=a.bottom,p=o.bottom;d<=p&&(a=jX(a),a&&(s+=a.relX)),d>=p&&(o=LX(o),o&&(l+=o.relX))}!a&&o?BX(e,t,o,l):a&&!o&&zX(e,t,a,s)},DX=(e,t)=>{e.relX+=t,e.lExtRelX+=t,e.rExtRelX+=t},FX=(e,t,r,n)=>{const i=e.children[t],a=t-r;if(a>1){const s=n/a;e.children[r+1].shift+=s,i.shift-=s,i.change-=n-s}},LX=e=>e.hasChildren?e.firstChild:e.lThr,jX=e=>e.hasChildren?e.lastChild:e.rThr,BX=(e,t,r,n)=>{const i=e.firstChild,a=i.lExt,s=e.children[t];a.lThr=r;const o=n-r.relX-i.lExtRelX;a.relX+=o,a.prelim-=o,i.lExt=s.lExt,i.lExtRelX=s.lExtRelX},zX=(e,t,r,n)=>{const i=e.children[t],a=i.rExt,s=e.children[t-1];a.rThr=r;const o=n-r.relX-i.rExtRelX;a.relX+=o,a.prelim-=o,i.rExt=s.rExt,i.rExtRelX=s.rExtRelX},UX=e=>{if(e.hasChildren){const t=e.firstChild,r=e.lastChild,n=(t.prelim+t.relX-t.xSize/2+r.relX+r.prelim+r.xSize/2)/2;Object.assign(e,{prelim:n,lExt:t.lExt,lExtRelX:t.lExtRelX,rExt:r.rExt,rExtRelX:r.rExtRelX})}},$X=(e,t,r)=>{for(;r!==null&&e>=r.lowY;)r=r.next;return{lowY:e,index:t,next:r}},HX=Object.freeze(Object.defineProperty({__proto__:null,flextree:yD},Symbol.toStringTag,{value:"Module"})),qX=Df(HX),gu=Df(MV);var Da={},MA;function Tm(){if(MA)return Da;MA=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.CompositeRenderer=void 0,Da.getFamPositionVertical=r,Da.getFamPositionHorizontal=n,Da.getVSize=o;var e=gu,t=function(){function l(u){this.options=u}return l.prototype.getPreferredFamSize=function(u){return[0,0]},l.prototype.setPreferredIndiSize=function(u){var c;u&&(c=this.getPreferredIndiSize(u.id),u.width=c[0],u.height=c[1])},l.prototype.updateNodes=function(u){var c=this,d=new Map;u.forEach(function(p){var m;c.setPreferredIndiSize(p.data.indi),c.setPreferredIndiSize(p.data.spouse);var w=p.data.family;w&&(m=c.getPreferredFamSize(w.id),w.width=m[0],w.height=m[1]);var g=p.depth,_=(0,e.max)([s(p.data,!!c.options.horizontal),d.get(g)]);d.set(g,_)}),u.forEach(function(p){var m;c.options.horizontal?(p.data.indi&&(p.data.indi.width=d.get(p.depth)),p.data.spouse&&(p.data.spouse.width=d.get(p.depth))):(p.data.indi&&(p.data.indi.height=d.get(p.depth)),p.data.spouse&&(p.data.spouse.height=d.get(p.depth)));var w=o(p.data,!!c.options.horizontal),g=i(p.data,!!c.options.horizontal);m=c.options.horizontal?[w,g]:[g,w],p.data.width=m[0],p.data.height=m[1]})},l.prototype.getFamilyAnchor=function(u){if(this.options.horizontal){var c=-u.width/2+s(u,this.options.horizontal)/2,d=u.family?(0,e.max)([-n(u),0]):0,p=-(u.indi&&u.spouse?u.height/2-u.indi.height:0)+d;return[c,p]}var m=u.family?(0,e.max)([-r(u),0]):0,w=-(u.indi&&u.spouse?u.width/2-u.indi.width:0)+m,g=-u.height/2+s(u,this.options.horizontal)/2;return[w,g]},l.prototype.getSpouseAnchor=function(u){if(this.options.horizontal){var c=-u.width/2+s(u,this.options.horizontal)/2,d=u.indi?u.indi.height/2:0;return[c,d]}var p=u.indi?u.indi.width/2:0,m=-u.height/2+s(u,!!this.options.horizontal)/2;return[p,m]},l.prototype.getIndiAnchor=function(u){if(this.options.horizontal){var c=-u.width/2+s(u,this.options.horizontal)/2,d=u.spouse?-u.spouse.height/2:0;return[c,d]}var p=u.spouse?-u.spouse.width/2:0,m=-u.height/2+s(u,!!this.options.horizontal)/2;return[p,m]},l}();Da.CompositeRenderer=t;function r(l){var u=l.indi?l.indi.width:0,c=l.spouse?l.spouse.width:0,d=l.family.width;return!l.indi||!l.spouse||u+c<=d?(u+c-d)/2:d/2>=c?u+c-d:d/2>=u?0:u-d/2}function n(l){var u=l.indi?l.indi.height:0,c=l.spouse?l.spouse.height:0,d=l.family.height;return!l.indi||!l.spouse?(u+c-d)/2:u-d/2}function i(l,u){if(u)return(l.indi?l.indi.height:0)+(l.spouse?l.spouse.height:0);var c=(l.indi?l.indi.width:0)+(l.spouse?l.spouse.width:0);return(0,e.max)([c,l.family?l.family.width:0])}function a(l,u){return u?l.family?l.family.width:0:l.family?l.family.height:0}function s(l,u){return u?(0,e.max)([l.indi?l.indi.width:0,l.spouse?l.spouse.width:0]):(0,e.max)([l.indi?l.indi.height:0,l.spouse?l.spouse.height:0])}function o(l,u){return s(l,u)+a(l,u)}return Da}var DA;function xs(){return DA||(DA=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ChartUtil=e.V_SPACING=e.H_SPACING=void 0,e.linkId=c,e.getChartInfo=d,e.getChartInfoWithoutMargin=p;var t=Am,r=Jf(),n=qX,i=gu,a=Tm();e.H_SPACING=15,e.V_SPACING=34;var s=15,o=200,l=500;function u(){return`
.expander {
fill: white;
stroke: black;
stroke-width: 2px;
cursor: pointer;
}`}function c(w){if(!w.parent)return"".concat(w.id,":A");var g=w.data.generation>w.parent.data.generation?[w.data,w.parent.data]:[w.parent.data,w.data],_=g[0],E=g[1];return _.additionalMarriage?"".concat(_.id,":A"):"".concat(E.id,":").concat(_.id)}function d(w){var g=(0,i.min)(w,function(b){return b.x-b.data.width/2})-s,_=(0,i.min)(w,function(b){return b.y-b.data.height/2})-s,E=(0,i.max)(w,function(b){return b.x+b.data.width/2})+s,x=(0,i.max)(w,function(b){return b.y+b.data.height/2})+s;return{size:[E-g,x-_],origin:[-g,-_]}}function p(w){var g=(0,i.min)(w,function(b){return b.x-b.data.width/2}),_=(0,i.min)(w,function(b){return b.y-b.data.height/2}),E=(0,i.max)(w,function(b){return b.x+b.data.width/2}),x=(0,i.max)(w,function(b){return b.y+b.data.height/2});return{size:[E-g,x-_],origin:[-g,-_]}}var m=function(){function w(g){this.options=g}return w.prototype.linkHorizontal=function(g,_){var E=this.options.renderer.getFamilyAnchor(g.data),x=g.id===_.data.spouseParentNodeId?this.options.renderer.getSpouseAnchor(_.data):this.options.renderer.getIndiAnchor(_.data),b=[g.x+E[0],g.y+E[1]],C=b[0],v=b[1],k=[_.x+x[0],_.y+x[1]],T=k[0],N=k[1],M=(g.x+g.data.width/2+_.x-_.data.width/2)/2;return"M ".concat(C," ").concat(v,`
L `).concat(M," ").concat(v,`,
`).concat(M," ").concat(N,`,
`).concat(T," ").concat(N)},w.prototype.linkVertical=function(g,_){var E=this.options.renderer.getFamilyAnchor(g.data),x=g.id===_.data.spouseParentNodeId?this.options.renderer.getSpouseAnchor(_.data):this.options.renderer.getIndiAnchor(_.data),b=[g.x+E[0],g.y+E[1]],C=b[0],v=b[1],k=[_.x+x[0],_.y+x[1]],T=k[0],N=k[1],M=g.y+g.data.height/2+e.V_SPACING/2;return"M ".concat(C," ").concat(v,`
L `).concat(C," ").concat(M,`,
`).concat(T," ").concat(M,`,
`).concat(T," ").concat(N)},w.prototype.linkAdditionalMarriage=function(g){var _=g.parent.children.findIndex(function(j){return j.data.id===g.data.id}),E=g.parent.children[_-1],x=this.options.renderer.getIndiAnchor(g.data),b=this.options.renderer.getIndiAnchor(E.data),C=[g.x+x[0],g.y+x[1]],v=C[0],k=C[1],T=[E.x+b[0],E.y+b[1]],N=T[0],M=T[1];return"M ".concat(v,", ").concat(k,`
L `).concat(N,", ").concat(M)},w.prototype.updateSvgDimensions=function(g){var _=(0,t.select)(this.options.svgSelector),E=_.select("g"),x=this.options.animate?E.transition().delay(o).duration(l):E;x.attr("transform","translate(".concat(g.origin[0],", ").concat(g.origin[1],")"))},w.prototype.layOutChart=function(g,_){var E=this;_===void 0&&(_={});var x=(0,t.select)(this.options.svgSelector);x.select("style").empty()&&x.append("style").text(this.options.renderer.getCss()+u()),g.each(function(N){N.data.generation=N.depth*(_.flipVertically?-1:1)+(E.options.baseGeneration||0)}),this.options.renderer.updateNodes(g.descendants());var b=new Map;g.each(function(N){var M=N.depth,j=(0,i.max)([E.options.horizontal?N.data.width:N.data.height,b.get(M)]);b.set(M,j)}),g.each(function(N){var M=b.get(N.depth);E.options.horizontal?N.data.width=M:N.data.height=M});var C=_.vSpacing!==void 0?_.vSpacing:e.V_SPACING,v=_.hSpacing!==void 0?_.hSpacing:e.H_SPACING,k=(0,n.flextree)().nodeSize(function(N){if(E.options.horizontal){var M=(0,i.max)(N.children||[],function(D){return D.data.width})||0;return[N.data.height,(M+N.data.width)/2+C]}var j=(0,i.max)(N.children||[],function(D){return D.data.height})||0;return[N.data.width,(j+N.data.height)/2+C]}).spacing(function(N,M){return v}),T=k(g).descendants();return T.forEach(function(N){var M;_.flipVertically&&(N.y=-N.y),E.options.horizontal&&(M=[N.y,N.x],N.x=M[0],N.y=M[1])}),T},w.prototype.renderChart=function(g){var _=this.getSvgForRendering(),E=this.renderNodes(g,_),x=this.renderLinks(g,_),b=this.renderControls(g,_);return Promise.all([E,x,b])},w.prototype.renderNodes=function(g,_){var E=this,x=new Promise(function(b){var C=_.select("g").selectAll("g.node").data(g,function(M){return M.id}),v=C.enter().append("g"),k=C.exit().size()+C.size()+v.size(),T=function(){k--,k===0&&b()};(!E.options.animate||k===0)&&b(),v.merge(C).attr("class",function(M){return"node generation".concat(M.data.generation)}),v.attr("transform",function(M){return"translate(".concat(M.x-M.data.width/2,", ").concat(M.y-M.data.height/2,")")}),E.options.animate&&v.style("opacity",0).transition().delay(o+l).duration(o).style("opacity",1).on("end",T);var N=E.options.animate?C.transition().delay(o).duration(l).on("end",T):C;N.attr("transform",function(M){return"translate(".concat(M.x-M.data.width/2,", ").concat(M.y-M.data.height/2,")")}),E.options.renderer.render(v,C),E.options.animate?C.exit().transition().duration(o).style("opacity",0).remove().on("end",T):C.exit().remove()});return x},w.prototype.renderLinks=function(g,_){var E=this,x=new Promise(function(b){var C=function(D,$){if($.data.additionalMarriage)return E.linkAdditionalMarriage($);var X=D.data.generation>$.data.generation;return E.options.horizontal?X?E.linkHorizontal($,D):E.linkHorizontal(D,$):X?E.linkVertical($,D):E.linkVertical(D,$)},v=g.filter(function(D){return!!D.parent||D.data.additionalMarriage}),k=_.select("g").selectAll("path.link").data(v,c),T=k.enter().insert("path","g").attr("class",function(D){return D.data.additionalMarriage?"link additional-marriage":"link"}).attr("d",function(D){return C(D.parent,D)}),N=k.exit().size()+k.size()+T.size(),M=function(){N--,N===0&&b()};(!E.options.animate||N===0)&&b();var j=E.options.animate?k.transition().delay(o).duration(l).on("end",M):k;j.attr("d",function(D){return C(D.parent,D)}),E.options.animate&&T.style("opacity",0).transition().delay(2*o+l).duration(0).style("opacity",1).on("end",M),E.options.animate?k.exit().transition().duration(0).style("opacity",0).remove().on("end",M):k.exit().remove()});return x},w.prototype.renderExpander=function(g,_,E){g=g.filter(function(x){return _(x)!==void 0}),g.on("click",function(x,b){E==null||E(b.id)}),g.append("rect").attr("width",12).attr("height",12),g.append("line").attr("x1",3).attr("y1",6).attr("x2",9).attr("y2",6).attr("stroke","black"),g.filter(function(x){return _(x)===r.ExpanderState.PLUS}).append("line").attr("x1",6).attr("y1",3).attr("x2",6).attr("y2",9).attr("stroke","black")},w.prototype.renderFamilyControls=function(g){var _=this,E=g.selectAll("g.familyExpander").data(function(v){var k;return((k=v.data.family)===null||k===void 0?void 0:k.expander)!==void 0?[v]:[]}),x=E.enter().append("g").attr("class","familyExpander expander"),b=x.merge(E),C=this.options.animate?b.transition().delay(o).duration(l):b;C.attr("transform",function(v){var k=_.options.renderer.getFamilyAnchor(v.data);return"translate(".concat(k[0]-6,", ").concat(-v.data.height/2+(0,a.getVSize)(v.data,!!_.options.horizontal),")")}),this.renderExpander(b,function(v){var k;return(k=v.data.family)===null||k===void 0?void 0:k.expander},function(v){var k,T;return(T=(k=_.options).expanderCallback)===null||T===void 0?void 0:T.call(k,v,r.ExpanderDirection.FAMILY)}),E.exit().remove()},w.prototype.renderIndiControls=function(g){var _=this,E=g.selectAll("g.indiExpander").data(function(v){var k;return((k=v.data.indi)===null||k===void 0?void 0:k.expander)!==void 0?[v]:[]}),x=E.enter().append("g").attr("class","indiExpander expander"),b=x.merge(E),C=this.options.animate?b.transition().delay(o).duration(l):b;C.attr("transform",function(v){var k=_.options.renderer.getIndiAnchor(v.data);return"translate(".concat(k[0]-6,", ").concat(-v.data.height/2-12,")")}),this.renderExpander(b,function(v){var k;return(k=v.data.indi)===null||k===void 0?void 0:k.expander},function(v){var k,T;return(T=(k=_.options).expanderCallback)===null||T===void 0?void 0:T.call(k,v,r.ExpanderDirection.INDI)}),E.exit().remove()},w.prototype.renderSpouseControls=function(g){var _=this,E=g.selectAll("g.spouseExpander").data(function(v){var k;return((k=v.data.spouse)===null||k===void 0?void 0:k.expander)!==void 0?[v]:[]}),x=E.enter().append("g").attr("class","spouseExpander expander"),b=x.merge(E),C=this.options.animate?b.transition().delay(o).duration(l):b;C.attr("transform",function(v){var k=_.options.renderer.getSpouseAnchor(v.data);return"translate(".concat(k[0]-6,", ").concat(-v.data.height/2-12,")")}),this.renderExpander(b,function(v){var k;return(k=v.data.spouse)===null||k===void 0?void 0:k.expander},function(v){var k,T;return(T=(k=_.options).expanderCallback)===null||T===void 0?void 0:T.call(k,v,r.ExpanderDirection.SPOUSE)}),E.exit().remove()},w.prototype.renderControls=function(g,_){var E=this;if(!this.options.expanders)return Promise.resolve();var x=new Promise(function(b){var C=_.select("g").selectAll("g.controls").data(g,function(j){return j.id}),v=C.enter().append("g").attr("class","controls");v.attr("transform",function(j){return"translate(".concat(j.x,", ").concat(j.y,")")});var k=C.exit().size()+C.size()+v.size(),T=function(){k--,k===0&&b()};(!E.options.animate||k===0)&&b();var N=E.options.animate?C.transition().delay(o).duration(l).on("end",T):C;N.attr("transform",function(j){return"translate(".concat(j.x,", ").concat(j.y,")")}),E.options.animate&&v.style("opacity",0).transition().delay(o+l).duration(o).style("opacity",1).on("end",T);var M=v.merge(C);E.renderFamilyControls(M),E.renderIndiControls(M),E.renderSpouseControls(M),E.options.animate?C.exit().transition().duration(o).style("opacity",0).remove().on("end",T):C.exit().remove()});return x},w.prototype.getSvgForRendering=function(){var g=(0,t.select)(this.options.svgSelector);return g.select("g").empty()&&g.append("g"),g},w}();e.ChartUtil=m}(ly)),ly}function GX(e,t){return e.parent===t.parent?1:2}function WX(e){return e.reduce(VX,0)/e.length}function VX(e,t){return e+t.x}function QX(e){return 1+e.reduce(KX,0)}function KX(e,t){return Math.max(e,t.y)}function YX(e){for(var t;t=e.children;)e=t[0];return e}function XX(e){for(var t;t=e.children;)e=t[t.length-1];return e}function JX(){var e=GX,t=1,r=1,n=!1;function i(a){var s,o=0;a.eachAfter(function(p){var m=p.children;m?(p.x=WX(m),p.y=QX(m)):(p.x=s?o+=e(p,s):0,p.y=0,s=p)});var l=YX(a),u=XX(a),c=l.x-e(l,u)/2,d=u.x+e(u,l)/2;return a.eachAfter(n?function(p){p.x=(p.x-a.x)*t,p.y=(a.y-p.y)*r}:function(p){p.x=(p.x-c)/(d-c)*t,p.y=(1-(a.y?p.y/a.y:1))*r})}return i.separation=function(a){return arguments.length?(e=a,i):e},i.size=function(a){return arguments.length?(n=!1,t=+a[0],r=+a[1],i):n?null:[t,r]},i.nodeSize=function(a){return arguments.length?(n=!0,t=+a[0],r=+a[1],i):n?[t,r]:null},i}function ZX(e){var t=0,r=e.children,n=r&&r.length;if(!n)t=1;else for(;--n>=0;)t+=r[n].value;e.value=t}function eJ(){return this.eachAfter(ZX)}function tJ(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this}function nJ(e,t){for(var r=this,n=[r],i,a,s=-1;r=n.pop();)if(e.call(t,r,++s,this),i=r.children)for(a=i.length-1;a>=0;--a)n.push(i[a]);return this}function rJ(e,t){for(var r=this,n=[r],i=[],a,s,o,l=-1;r=n.pop();)if(i.push(r),a=r.children)for(s=0,o=a.length;s<o;++s)n.push(a[s]);for(;r=i.pop();)e.call(t,r,++l,this);return this}function iJ(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n}function aJ(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r})}function oJ(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function sJ(e){for(var t=this,r=lJ(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}function lJ(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}function uJ(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function cJ(){return Array.from(this)}function fJ(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function dJ(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function*hJ(){var e=this,t,r=[e],n,i,a;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,n=e.children)for(i=0,a=n.length;i<a;++i)r.push(n[i]);while(r.length)}function fs(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=gJ)):t===void 0&&(t=mJ);for(var r=new ds(e),n,i=[r],a,s,o,l;n=i.pop();)if((s=t(n.data))&&(l=(s=Array.from(s)).length))for(n.children=s,o=l-1;o>=0;--o)i.push(a=s[o]=new ds(s[o])),a.parent=n,a.depth=n.depth+1;return r.eachBefore(bD)}function pJ(){return fs(this).eachBefore(vJ)}function mJ(e){return e.children}function gJ(e){return Array.isArray(e)?e[1]:null}function vJ(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function bD(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function ds(e){this.data=e,this.depth=this.height=0,this.parent=null}ds.prototype=fs.prototype={constructor:ds,count:eJ,each:tJ,eachAfter:rJ,eachBefore:nJ,find:iJ,sum:aJ,sort:oJ,path:sJ,ancestors:uJ,descendants:cJ,leaves:fJ,links:dJ,copy:pJ,[Symbol.iterator]:hJ};function gp(e){return e==null?null:xD(e)}function xD(e){if(typeof e!="function")throw new Error;return e}function Wo(){return 0}function ol(e){return function(){return e}}const yJ=1664525,wJ=1013904223,FA=4294967296;function Kb(){let e=1;return()=>(e=(yJ*e+wJ)%FA)/FA}function _J(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bJ(e,t){let r=e.length,n,i;for(;r;)i=t()*r--|0,n=e[r],e[r]=e[i],e[i]=n;return e}function xJ(e){return ED(e,Kb())}function ED(e,t){for(var r=0,n=(e=bJ(Array.from(e),t)).length,i=[],a,s;r<n;)a=e[r],s&&SD(s,a)?++r:(s=SJ(i=EJ(i,a)),r=0);return s}function EJ(e,t){var r,n;if(uy(t,e))return[t];for(r=0;r<e.length;++r)if(Oh(t,e[r])&&uy(Fc(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(Oh(Fc(e[r],e[n]),t)&&Oh(Fc(e[r],t),e[n])&&Oh(Fc(e[n],t),e[r])&&uy(CD(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function Oh(e,t){var r=e.r-t.r,n=t.x-e.x,i=t.y-e.y;return r<0||r*r<n*n+i*i}function SD(e,t){var r=e.r-t.r+Math.max(e.r,t.r,1)*1e-9,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function uy(e,t){for(var r=0;r<t.length;++r)if(!SD(e,t[r]))return!1;return!0}function SJ(e){switch(e.length){case 1:return CJ(e[0]);case 2:return Fc(e[0],e[1]);case 3:return CD(e[0],e[1],e[2])}}function CJ(e){return{x:e.x,y:e.y,r:e.r}}function Fc(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,s=t.y,o=t.r,l=a-r,u=s-n,c=o-i,d=Math.sqrt(l*l+u*u);return{x:(r+a+l/d*c)/2,y:(n+s+u/d*c)/2,r:(d+i+o)/2}}function CD(e,t,r){var n=e.x,i=e.y,a=e.r,s=t.x,o=t.y,l=t.r,u=r.x,c=r.y,d=r.r,p=n-s,m=n-u,w=i-o,g=i-c,_=l-a,E=d-a,x=n*n+i*i-a*a,b=x-s*s-o*o+l*l,C=x-u*u-c*c+d*d,v=m*w-p*g,k=(w*C-g*b)/(v*2)-n,T=(g*_-w*E)/v,N=(m*b-p*C)/(v*2)-i,M=(p*E-m*_)/v,j=T*T+M*M-1,D=2*(a+k*T+N*M),$=k*k+N*N-a*a,X=-(Math.abs(j)>1e-6?(D+Math.sqrt(D*D-4*j*$))/(2*j):$/D);return{x:n+k+T*X,y:i+N+M*X,r:X}}function LA(e,t,r){var n=e.x-t.x,i,a,s=e.y-t.y,o,l,u=n*n+s*s;u?(a=t.r+r.r,a*=a,l=e.r+r.r,l*=l,a>l?(i=(u+l-a)/(2*u),o=Math.sqrt(Math.max(0,l/u-i*i)),r.x=e.x-i*n-o*s,r.y=e.y-i*s+o*n):(i=(u+a-l)/(2*u),o=Math.sqrt(Math.max(0,a/u-i*i)),r.x=t.x+i*n-o*s,r.y=t.y+i*s+o*n)):(r.x=t.x+r.r,r.y=t.y)}function jA(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function BA(e){var t=e._,r=e.next._,n=t.r+r.r,i=(t.x*r.r+r.x*t.r)/n,a=(t.y*r.r+r.y*t.r)/n;return i*i+a*a}function Nh(e){this._=e,this.next=null,this.previous=null}function kD(e,t){if(!(a=(e=_J(e)).length))return 0;var r,n,i,a,s,o,l,u,c,d,p;if(r=e[0],r.x=0,r.y=0,!(a>1))return r.r;if(n=e[1],r.x=-n.r,n.x=r.r,n.y=0,!(a>2))return r.r+n.r;LA(n,r,i=e[2]),r=new Nh(r),n=new Nh(n),i=new Nh(i),r.next=i.previous=n,n.next=r.previous=i,i.next=n.previous=r;e:for(l=3;l<a;++l){LA(r._,n._,i=e[l]),i=new Nh(i),u=n.next,c=r.previous,d=n._.r,p=r._.r;do if(d<=p){if(jA(u._,i._)){n=u,r.next=n,n.previous=r,--l;continue e}d+=u._.r,u=u.next}else{if(jA(c._,i._)){r=c,r.next=n,n.previous=r,--l;continue e}p+=c._.r,c=c.previous}while(u!==c.next);for(i.previous=r,i.next=n,r.next=n.previous=n=i,s=BA(r);(i=i.next)!==n;)(o=BA(i))<s&&(r=i,s=o);n=r.next}for(r=[n._],i=n;(i=i.next)!==n;)r.push(i._);for(i=ED(r,t),l=0;l<a;++l)r=e[l],r.x-=i.x,r.y-=i.y;return i.r}function kJ(e){return kD(e,Kb()),e}function AJ(e){return Math.sqrt(e.value)}function TJ(){var e=null,t=1,r=1,n=Wo;function i(a){const s=Kb();return a.x=t/2,a.y=r/2,e?a.eachBefore(zA(e)).eachAfter(cy(n,.5,s)).eachBefore(UA(1)):a.eachBefore(zA(AJ)).eachAfter(cy(Wo,1,s)).eachAfter(cy(n,a.r/Math.min(t,r),s)).eachBefore(UA(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=gp(a),i):e},i.size=function(a){return arguments.length?(t=+a[0],r=+a[1],i):[t,r]},i.padding=function(a){return arguments.length?(n=typeof a=="function"?a:ol(+a),i):n},i}function zA(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function cy(e,t,r){return function(n){if(i=n.children){var i,a,s=i.length,o=e(n)*t||0,l;if(o)for(a=0;a<s;++a)i[a].r+=o;if(l=kD(i,r),o)for(a=0;a<s;++a)i[a].r-=o;n.r=l+o}}}function UA(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}function AD(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 Zf(e,t,r,n,i){for(var a=e.children,s,o=-1,l=a.length,u=e.value&&(n-t)/e.value;++o<l;)s=a[o],s.y0=r,s.y1=i,s.x0=t,s.x1=t+=s.value*u}function IJ(){var e=1,t=1,r=0,n=!1;function i(s){var o=s.height+1;return s.x0=s.y0=r,s.x1=e,s.y1=t/o,s.eachBefore(a(t,o)),n&&s.eachBefore(AD),s}function a(s,o){return function(l){l.children&&Zf(l,l.x0,s*(l.depth+1)/o,l.x1,s*(l.depth+2)/o);var u=l.x0,c=l.y0,d=l.x1-r,p=l.y1-r;d<u&&(u=d=(u+d)/2),p<c&&(c=p=(c+p)/2),l.x0=u,l.y0=c,l.x1=d,l.y1=p}}return i.round=function(s){return arguments.length?(n=!!s,i):n},i.size=function(s){return arguments.length?(e=+s[0],t=+s[1],i):[e,t]},i.padding=function(s){return arguments.length?(r=+s,i):r},i}var PJ={depth:-1},$A={},fy={};function RJ(e){return e.id}function OJ(e){return e.parentId}function NJ(){var e=RJ,t=OJ,r;function n(i){var a=Array.from(i),s=e,o=t,l,u,c,d,p,m,w,g,_=new Map;if(r!=null){const E=a.map((C,v)=>MJ(r(C,v,i))),x=E.map(HA),b=new Set(E).add("");for(const C of x)b.has(C)||(b.add(C),E.push(C),x.push(HA(C)),a.push(fy));s=(C,v)=>E[v],o=(C,v)=>x[v]}for(c=0,l=a.length;c<l;++c)u=a[c],m=a[c]=new ds(u),(w=s(u,c,i))!=null&&(w+="")&&(g=m.id=w,_.set(g,_.has(g)?$A:m)),(w=o(u,c,i))!=null&&(w+="")&&(m.parent=w);for(c=0;c<l;++c)if(m=a[c],w=m.parent){if(p=_.get(w),!p)throw new Error("missing: "+w);if(p===$A)throw new Error("ambiguous: "+w);p.children?p.children.push(m):p.children=[m],m.parent=p}else{if(d)throw new Error("multiple roots");d=m}if(!d)throw new Error("no root");if(r!=null){for(;d.data===fy&&d.children.length===1;)d=d.children[0],--l;for(let E=a.length-1;E>=0&&(m=a[E],m.data===fy);--E)m.data=null}if(d.parent=PJ,d.eachBefore(function(E){E.depth=E.parent.depth+1,--l}).eachBefore(bD),d.parent=null,l>0)throw new Error("cycle");return d}return n.id=function(i){return arguments.length?(e=gp(i),n):e},n.parentId=function(i){return arguments.length?(t=gp(i),n):t},n.path=function(i){return arguments.length?(r=gp(i),n):r},n}function MJ(e){e=`${e}`;let t=e.length;return p1(e,t-1)&&!p1(e,t-2)&&(e=e.slice(0,-1)),e[0]==="/"?e:`/${e}`}function HA(e){let t=e.length;if(t<2)return"";for(;--t>1&&!p1(e,t););return e.slice(0,t)}function p1(e,t){if(e[t]==="/"){let r=0;for(;t>0&&e[--t]==="\\";)++r;if((r&1)===0)return!0}return!1}function DJ(e,t){return e.parent===t.parent?1:2}function dy(e){var t=e.children;return t?t[0]:e.t}function hy(e){var t=e.children;return t?t[t.length-1]:e.t}function FJ(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function LJ(e){for(var t=0,r=0,n=e.children,i=n.length,a;--i>=0;)a=n[i],a.z+=t,a.m+=t,t+=a.s+(r+=a.c)}function jJ(e,t,r){return e.a.parent===t.parent?e.a:r}function vp(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}vp.prototype=Object.create(ds.prototype);function BJ(e){for(var t=new vp(e,0),r,n=[t],i,a,s,o;r=n.pop();)if(a=r._.children)for(r.children=new Array(o=a.length),s=o-1;s>=0;--s)n.push(i=r.children[s]=new vp(a[s],s)),i.parent=r;return(t.parent=new vp(null,0)).children=[t],t}function TD(){var e=DJ,t=1,r=1,n=null;function i(u){var c=BJ(u);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(s),n)u.eachBefore(l);else{var d=u,p=u,m=u;u.eachBefore(function(x){x.x<d.x&&(d=x),x.x>p.x&&(p=x),x.depth>m.depth&&(m=x)});var w=d===p?1:e(d,p)/2,g=w-d.x,_=t/(p.x+w+g),E=r/(m.depth||1);u.eachBefore(function(x){x.x=(x.x+g)*_,x.y=x.depth*E})}return u}function a(u){var c=u.children,d=u.parent.children,p=u.i?d[u.i-1]:null;if(c){LJ(u);var m=(c[0].z+c[c.length-1].z)/2;p?(u.z=p.z+e(u._,p._),u.m=u.z-m):u.z=m}else p&&(u.z=p.z+e(u._,p._));u.parent.A=o(u,p,u.parent.A||d[0])}function s(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function o(u,c,d){if(c){for(var p=u,m=u,w=c,g=p.parent.children[0],_=p.m,E=m.m,x=w.m,b=g.m,C;w=hy(w),p=dy(p),w&&p;)g=dy(g),m=hy(m),m.a=u,C=w.z+x-p.z-_+e(w._,p._),C>0&&(FJ(jJ(w,u,d),u,C),_+=C,E+=C),x+=w.m,_+=p.m,b+=g.m,E+=m.m;w&&!hy(m)&&(m.t=w,m.m+=x-E),p&&!dy(g)&&(g.t=p,g.m+=_-b,d=u)}return d}function l(u){u.x*=t,u.y=u.depth*r}return i.separation=function(u){return arguments.length?(e=u,i):e},i.size=function(u){return arguments.length?(n=!1,t=+u[0],r=+u[1],i):n?null:[t,r]},i.nodeSize=function(u){return arguments.length?(n=!0,t=+u[0],r=+u[1],i):n?[t,r]:null},i}function Im(e,t,r,n,i){for(var a=e.children,s,o=-1,l=a.length,u=e.value&&(i-r)/e.value;++o<l;)s=a[o],s.x0=t,s.x1=n,s.y0=r,s.y1=r+=s.value*u}var ID=(1+Math.sqrt(5))/2;function PD(e,t,r,n,i,a){for(var s=[],o=t.children,l,u,c=0,d=0,p=o.length,m,w,g=t.value,_,E,x,b,C,v,k;c<p;){m=i-r,w=a-n;do _=o[d++].value;while(!_&&d<p);for(E=x=_,v=Math.max(w/m,m/w)/(g*e),k=_*_*v,C=Math.max(x/k,k/E);d<p;++d){if(_+=u=o[d].value,u<E&&(E=u),u>x&&(x=u),k=_*_*v,b=Math.max(x/k,k/E),b>C){_-=u;break}C=b}s.push(l={value:_,dice:m<w,children:o.slice(c,d)}),l.dice?Zf(l,r,n,i,g?n+=w*_/g:a):Im(l,r,n,g?r+=m*_/g:i,a),g-=_,c=d}return s}const RD=function e(t){function r(n,i,a,s,o){PD(t,n,i,a,s,o)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(ID);function zJ(){var e=RD,t=!1,r=1,n=1,i=[0],a=Wo,s=Wo,o=Wo,l=Wo,u=Wo;function c(p){return p.x0=p.y0=0,p.x1=r,p.y1=n,p.eachBefore(d),i=[0],t&&p.eachBefore(AD),p}function d(p){var m=i[p.depth],w=p.x0+m,g=p.y0+m,_=p.x1-m,E=p.y1-m;_<w&&(w=_=(w+_)/2),E<g&&(g=E=(g+E)/2),p.x0=w,p.y0=g,p.x1=_,p.y1=E,p.children&&(m=i[p.depth+1]=a(p)/2,w+=u(p)-m,g+=s(p)-m,_-=o(p)-m,E-=l(p)-m,_<w&&(w=_=(w+_)/2),E<g&&(g=E=(g+E)/2),e(p,w,g,_,E))}return c.round=function(p){return arguments.length?(t=!!p,c):t},c.size=function(p){return arguments.length?(r=+p[0],n=+p[1],c):[r,n]},c.tile=function(p){return arguments.length?(e=xD(p),c):e},c.padding=function(p){return arguments.length?c.paddingInner(p).paddingOuter(p):c.paddingInner()},c.paddingInner=function(p){return arguments.length?(a=typeof p=="function"?p:ol(+p),c):a},c.paddingOuter=function(p){return arguments.length?c.paddingTop(p).paddingRight(p).paddingBottom(p).paddingLeft(p):c.paddingTop()},c.paddingTop=function(p){return arguments.length?(s=typeof p=="function"?p:ol(+p),c):s},c.paddingRight=function(p){return arguments.length?(o=typeof p=="function"?p:ol(+p),c):o},c.paddingBottom=function(p){return arguments.length?(l=typeof p=="function"?p:ol(+p),c):l},c.paddingLeft=function(p){return arguments.length?(u=typeof p=="function"?p:ol(+p),c):u},c}function UJ(e,t,r,n,i){var a=e.children,s,o=a.length,l,u=new Array(o+1);for(u[0]=l=s=0;s<o;++s)u[s+1]=l+=a[s].value;c(0,o,e.value,t,r,n,i);function c(d,p,m,w,g,_,E){if(d>=p-1){var x=a[d];x.x0=w,x.y0=g,x.x1=_,x.y1=E;return}for(var b=u[d],C=m/2+b,v=d+1,k=p-1;v<k;){var T=v+k>>>1;u[T]<C?v=T+1:k=T}C-u[v-1]<u[v]-C&&d+1<v&&--v;var N=u[v]-b,M=m-N;if(_-w>E-g){var j=m?(w*M+_*N)/m:_;c(d,v,N,w,g,j,E),c(v,p,M,j,g,_,E)}else{var D=m?(g*M+E*N)/m:E;c(d,v,N,w,g,_,D),c(v,p,M,w,D,_,E)}}}function $J(e,t,r,n,i){(e.depth&1?Im:Zf)(e,t,r,n,i)}const HJ=function e(t){function r(n,i,a,s,o){if((l=n._squarify)&&l.ratio===t)for(var l,u,c,d,p=-1,m,w=l.length,g=n.value;++p<w;){for(u=l[p],c=u.children,d=u.value=0,m=c.length;d<m;++d)u.value+=c[d].value;u.dice?Zf(u,i,a,s,g?a+=(o-a)*u.value/g:o):Im(u,i,a,g?i+=(s-i)*u.value/g:s,o),g-=u.value}else n._squarify=l=PD(t,n,i,a,s,o),l.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(ID),qJ=Object.freeze(Object.defineProperty({__proto__:null,Node:ds,cluster:JX,hierarchy:fs,pack:TJ,packEnclose:xJ,packSiblings:kJ,partition:IJ,stratify:NJ,tree:TD,treemap:zJ,treemapBinary:UJ,treemapDice:Zf,treemapResquarify:HJ,treemapSlice:Im,treemapSliceDice:$J,treemapSquarify:RD},Symbol.toStringTag,{value:"Module"})),Yb=Df(qJ);var mc={},qA;function Pm(){if(qA)return mc;qA=1,Object.defineProperty(mc,"__esModule",{value:!0}),mc.IdGenerator=void 0;var e=function(){function t(){this.ids=new Map}return t.prototype.getId=function(r){if(this.ids.has(r)){var n=this.ids.get(r);return this.ids.set(r,n+1),"".concat(r,":").concat(n)}return this.ids.set(r,1),r},t}();return mc.IdGenerator=e,mc}var GA;function Xb(){if(GA)return Ma;GA=1;var e=Ma&&Ma.__assign||function(){return e=Object.assign||function(o){for(var l,u=1,c=arguments.length;u<c;u++){l=arguments[u];for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(o[d]=l[d])}return o},e.apply(this,arguments)};Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.AncestorChart=void 0,Ma.getAncestorsTree=a;var t=Jf(),r=xs(),n=Yb,i=Pm();function a(o){var l=e({},o),u=o.startIndi?o.data.getIndi(o.startIndi).getFamiliesAsSpouse():[];if(u.length){l.startFam=u[0],delete l.startIndi;var c=o.data.getFam(u[0]);c.getMother()===o.startIndi&&(l.swapStartSpouses=!0)}var d=new s(l),p=d.createHierarchy();return u.length>1&&p.children&&p.children.length>1&&(p.children.pop(),delete p.data.spouseParentNodeId),p}var s=function(){function o(l){this.options=l,this.util=new r.ChartUtil(l)}return o.prototype.createHierarchy=function(){var l,u,c=[],d=[],p=this.options.idGenerator||new i.IdGenerator;if(this.options.startIndi){var m=this.options.data.getIndi(this.options.startIndi),w=m.getFamilyAsChild(),g=w?p.getId(w):void 0;w&&d.push({id:w,parentId:this.options.startIndi,family:{id:w}});var _={id:this.options.startIndi,indi:{id:this.options.startIndi}};g&&(_.indiParentNodeId=g),c.push(_)}else d.push({id:p.getId(this.options.startFam),family:{id:this.options.startFam}});for(;d.length;){var E=d.pop(),x=this.options.data.getFam(E.family.id);if(x){var b=E.family.id===this.options.startFam&&this.options.swapStartSpouses?[x.getMother(),x.getFather()]:[x.getFather(),x.getMother()],C=b[0],v=b[1];if(!(!C&&!v)){if(v){E.spouse={id:v};var m=this.options.data.getIndi(v),w=m.getFamilyAsChild();if(w)if(!((l=this.options.collapsedSpouse)===null||l===void 0)&&l.has(E.id))E.spouse.expander=t.ExpanderState.PLUS;else{var g=p.getId(w);E.spouseParentNodeId=g,E.spouse.expander=t.ExpanderState.MINUS,d.push({id:g,parentId:E.id,family:{id:w}})}}if(C){E.indi={id:C};var m=this.options.data.getIndi(C),w=m.getFamilyAsChild();if(w)if(!((u=this.options.collapsedIndi)===null||u===void 0)&&u.has(E.id))E.indi.expander=t.ExpanderState.PLUS;else{var g=p.getId(w);E.indiParentNodeId=g,E.indi.expander=t.ExpanderState.MINUS,d.push({id:g,parentId:E.id,family:{id:w}})}}c.push(E)}}}return(0,n.stratify)()(c)},o.prototype.render=function(){var l=this.createHierarchy(),u=this.util.layOutChart(l,{flipVertically:!0}),c=this.util.renderChart(u),d=(0,r.getChartInfo)(u);return this.util.updateSvgDimensions(d),Object.assign(d,{animationPromise:c})},o}();return Ma.AncestorChart=s,Ma}var gc={},WA;function GJ(){if(WA)return gc;WA=1,Object.defineProperty(gc,"__esModule",{value:!0}),gc.CircleRenderer=void 0;var e=function(){function t(r){this.options=r}return t.prototype.getFamilyAnchor=function(r){return[0,0]},t.prototype.getIndiAnchor=function(r){return[0,0]},t.prototype.getSpouseAnchor=function(r){return[0,0]},t.prototype.updateNodes=function(r){r.forEach(function(n){var i;i=n.data.family?[120,120]:[80,80],n.data.width=i[0],n.data.height=i[1]})},t.prototype.getName=function(r){if(!r)return"";var n=this.options.data.getIndi(r.id),i=n.getFirstName();return i?i.split(" ")[0]:""},t.prototype.render=function(r,n){var i=this;r=r.append("g").attr("class","circle"),n=n.select("g"),r.append("circle").attr("r",function(a){return a.data.width/2}).attr("cx",function(a){return a.data.width/2}).attr("cy",function(a){return a.data.height/2}),r.filter(function(a){return!!a.data.family}).append("text").attr("text-anchor","middle").attr("transform",function(a){return"translate(".concat(a.data.width/2,", ").concat(a.data.height/2-4,")")}).text(function(a){return i.getName(a.data.indi)}),r.filter(function(a){return!!a.data.family}).append("text").attr("text-anchor","middle").attr("transform",function(a){return"translate(".concat(a.data.width/2,", ").concat(a.data.height/2+14,")")}).text(function(a){return i.getName(a.data.spouse)}),r.filter(function(a){return!a.data.family}).append("text").attr("text-anchor","middle").attr("transform",function(a){return"translate(".concat(a.data.width/2,", ").concat(a.data.height/2+4,")")}).text(function(a){return i.getName(a.data.indi)})},t.prototype.getCss=function(){return`
circle {
fill: white;
stroke: #040;
stroke-width: 5px;
}
.circle text {
font-family: Montserrat, verdana, arial, sans-serif;
font-size: 12px;
}
.background {
stroke: none;
}
`},t}();return gc.CircleRenderer=e,gc}var vc={},VA;function OD(){if(VA)return vc;VA=1,Object.defineProperty(vc,"__esModule",{value:!0}),vc.JsonDataProvider=void 0;var e=function(){function n(i){this.json=i}return n.prototype.getId=function(){return this.json.id},n.prototype.getFamiliesAsSpouse=function(){return this.json.fams||[]},n.prototype.getFamilyAsChild=function(){return this.json.famc||null},n.prototype.getFirstName=function(){return this.json.firstName||null},n.prototype.getLastName=function(){return this.json.lastName||null},n.prototype.getBirthDate=function(){return this.json.birth||null},n.prototype.getMaidenName=function(){return this.json.maidenName||null},n.prototype.getNumberOfChildren=function(){return this.json.numberOfChildren||null},n.prototype.getNumberOfMarriages=function(){return this.json.numberOfMarriages||null},n.prototype.getBirthPlace=function(){return this.json.birth&&this.json.birth.place||null},n.prototype.getDeathDate=function(){return this.json.death||null},n.prototype.getDeathPlace=function(){return this.json.death&&this.json.death.place||null},n.prototype.isConfirmedDeath=function(){return!!this.json.death&&!!this.json.death.confirmed},n.prototype.getSex=function(){return this.json.sex||null},n.prototype.getImageUrl=function(){return this.json.images&&this.json.images.length>0&&this.json.images[0].url||null},n.prototype.getImages=function(){return this.json.images||null},n.prototype.getNotes=function(){return this.json.notes||null},n.prototype.getEvents=function(){return this.json.events||null},n.prototype.showId=function(){return!this.json.hideId},n.prototype.showSex=function(){return!this.json.hideSex},n}(),t=function(){function n(i){this.json=i}return n.prototype.getId=function(){return this.json.id},n.prototype.getFather=function(){return this.json.husb||null},n.prototype.getMother=function(){return this.json.wife||null},n.prototype.getChildren=function(){return this.json.children||[]},n.prototype.getMarriageDate=function(){return this.json.marriage||null},n.prototype.getMarriagePlace=function(){return this.json.marriage&&this.json.marriage.place||null},n}(),r=function(){function n(i){var a=this;this.json=i,this.indis=new Map,this.fams=new Map,i.indis.forEach(function(s){return a.indis.set(s.id,new e(s))}),i.fams.forEach(function(s){return a.fams.set(s.id,new t(s))})}return n.prototype.getIndi=function(i){return this.indis.get(i)||null},n.prototype.getFam=function(i){return this.fams.get(i)||null},n}();return vc.JsonDataProvider=r,vc}var yc={},QA;function ND(){if(QA)return yc;QA=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.formatDate=s,yc.formatDateOrRange=o;var e=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"]]),t=new Map([["bg",new Map([["cal","прибл."],["abt","ок."],["est","оц."],["before","преди"],["after","след"]])],["cs",new Map([["cal","vypočt."],["abt","okolo"],["est","odhadem"],["before","před"],["after","po"]])],["de",new Map([["cal","errech."],["abt","etwa"],["est","geschät."],["before","vor"],["after","nach"]])],["fr",new Map([["cal","calc."],["abt","vers"],["est","est."],["before","avant"],["after","après"]])],["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","выч."],["abt","ок."],["est","оцен."],["before","до"],["after","после"]])]]),r=new Map;function n(l,u){if(!Intl||!Intl.DateTimeFormat)return e.get(l);var c="".concat(l,"|").concat(u||"");if(r.has(c))return r.get(c);var d=new Intl.DateTimeFormat(u,{month:"short"}).format(new Date(2e3,l-1));return r.set(c,d),d}function i(l,u){var c=u&&u.split(/[-_]/)[0],d=c&&t.get(c);return d?d.get(l):l}function a(l,u,c,d){if(!l&&!u&&!c)return"";if(!Intl||!Intl.DateTimeFormat||!d||d==="en")return[l,u&&n(u,d),c].join(" ");var p={day:l?"numeric":void 0,month:u?"short":void 0,year:c?"numeric":void 0};return new Intl.DateTimeFormat(d,p).format(new Date(c??2e3,u?u-1:1,l??1))}function s(l,u){return[l.qualifier&&i(l.qualifier,u),a(l.day,l.month,l.year,u),l.text].join(" ")}function o(l,u){if(l.date)return s(l.date,u);if(!l.dateRange)return"";var c=l.dateRange.from&&s(l.dateRange.from,u),d=l.dateRange.to&&s(l.dateRange.to,u);return c&&d?"".concat(c," .. ").concat(d):c?"".concat(i("after",u)," ").concat(c):d?"".concat(i("before",u)," ").concat(d):""}return yc}var wc={},py={},KA;function Rm(){return KA||(KA=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DescendantChart=e.DUMMY_ROOT_NODE_ID=void 0,e.layOutDescendants=a;var t=Yb,r=Jf(),n=xs(),i=Pm();e.DUMMY_ROOT_NODE_ID="DUMMY_ROOT_NODE";function a(u,c){c===void 0&&(c={});var d=new l(u),p=d.createHierarchy();return s(new n.ChartUtil(u).layOutChart(p,c))}function s(u){if(u[0].id!==e.DUMMY_ROOT_NODE_ID)return u;var c=u.slice(1),d=-c[0].x,p=-c[0].y;return c.forEach(function(m){m.parent&&m.parent.id===e.DUMMY_ROOT_NODE_ID&&!m.data.additionalMarriage&&(m.parent=null),m.x+=d,m.y+=p,m.data.generation--}),c}function o(u,c){return c.getFather()===u?c.getMother():c.getFather()}var l=function(){function u(c){this.options=c,this.util=new n.ChartUtil(c)}return u.prototype.getNodes=function(c){var d=this,p=this.options.data.getIndi(c),m=p.getFamiliesAsSpouse();if(!m.length)return[{id:c,indi:{id:c}}];var w=m.map(function(g){var _={id:g,indi:{id:c},family:{id:g}},E=d.options.data.getFam(g),x=o(c,E);return x&&(_.spouse={id:x}),_});return w.slice(1).forEach(function(g){g.additionalMarriage=!0}),w},u.prototype.getFamNode=function(c){var d={id:c,family:{id:c}},p=this.options.data.getFam(c),m=p.getFather();m&&(d.indi={id:m});var w=p.getMother();return w&&(d.spouse={id:w}),d},u.prototype.createHierarchy=function(){var c=this,d,p=[],m=this.options.startIndi?this.getNodes(this.options.startIndi):[this.getFamNode(this.options.startFam)],w=this.options.idGenerator||new i.IdGenerator;if(m.forEach(function(b){return b.id=w.getId(b.id)}),m.length>1){var g={id:e.DUMMY_ROOT_NODE_ID,height:1,width:1};p.push(g),m.forEach(function(b){return b.parentId=g.id})}p.push.apply(p,m);var _=[];m.forEach(function(b){b.family&&_.push(b)});for(var E=function(){var b=_.pop(),C=x.options.data.getFam(b.family.id),v=C.getChildren(),k=(d=x.options.collapsedFamily)===null||d===void 0?void 0:d.has(b.id);v.length&&(b.family.expander=k?r.ExpanderState.PLUS:r.ExpanderState.MINUS),k||v.forEach(function(T){var N=c.getNodes(T);N.forEach(function(M){M.parentId=b.id,M.family&&(M.id="".concat(w.getId(M.family.id)),_.push(M))}),p.push.apply(p,N)})},x=this;_.length;)E();return(0,t.stratify)()(p)},u.prototype.render=function(){var c=this.createHierarchy(),d=s(this.util.layOutChart(c)),p=this.util.renderChart(d),m=(0,n.getChartInfo)(d);return this.util.updateSvgDimensions(m),Object.assign(m,{animationPromise:p})},u}();e.DescendantChart=l}(py)),py}var YA;function WJ(){if(YA)return wc;YA=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.FancyChart=void 0;var e=gu,t=xs(),r=Rm();function n(a,s,o,l){var u=l+110;return o>a+100?`
M `.concat(a+10," ").concat(s,`
C `).concat(a+10," ").concat(u+25,`
`).concat(a+45," ").concat(u+10,`
`).concat((a+o)/2," ").concat(u+5,`
`).concat(o-45," ").concat(u,`
`).concat(o+2," ").concat(u-25,`
`).concat(o+2," ").concat(l,`
L `).concat(o-2," ").concat(l,`
C `).concat(o-2," ").concat(u-25,`
`).concat(o-45," ").concat(u-10,`
`).concat((a+o)/2," ").concat(u-5,`
`).concat(a+45," ").concat(u,`
`).concat(a-10," ").concat(u+25,`
`).concat(a-10," ").concat(s):o<a-100?`
M `.concat(a-10," ").concat(s,`
C `).concat(a-10," ").concat(u+25,`
`).concat(a-45," ").concat(u+10,`
`).concat((a+o)/2," ").concat(u+5,`
`).concat(o+45," ").concat(u,`
`).concat(o-2," ").concat(u-25,`
`).concat(o-2," ").concat(l,`
L `).concat(o+2," ").concat(l,`
C `).concat(o+2," ").concat(u-25,`
`).concat(o+45," ").concat(u-10,`
`).concat((a+o)/2," ").concat(u-5,`
`).concat(a-45," ").concat(u,`
`).concat(a+10," ").concat(u+25,`
`).concat(a+10," ").concat(s):`
M `.concat(a+10," ").concat(s,`
C `).concat(a+10," ").concat(u+25,`
`).concat(o+2," ").concat(u-25,`
`).concat(o+2," ").concat(l,`
L `).concat(o-2," ").concat(l,`
C `).concat(o-2," ").concat(u-25,`
`).concat(a-10," ").concat(u+25,`
`).concat(a-10," ").concat(s)}var i=function(){function a(s){this.options=s,this.util=new t.ChartUtil(s)}return a.prototype.linkVertical=function(s,o){var l=this.options.renderer.getFamilyAnchor(s.data),u=s.id===o.data.spouseParentNodeId?this.options.renderer.getSpouseAnchor(o.data):this.options.renderer.getIndiAnchor(o.data),c=[s.x+l[0],s.y+l[1]],d=c[0],p=c[1],m=[o.x+u[0],o.y+u[1]],w=m[0],g=m[1];return n(w,g,d,p)},a.prototype.linkAdditionalMarriage=function(s){var o=s.parent.children.findIndex(function(E){return E.id===s.id}),l=s.parent.children[o-1],u=this.options.renderer.getIndiAnchor(s.data),c=this.options.renderer.getIndiAnchor(l.data),d=[s.x+u[0],s.y+u[1]],p=d[0],m=d[1],w=[l.x+c[0],l.y+c[1]],g=w[0],_=w[1];return"M ".concat(p,", ").concat(m+2,`
L `).concat(g,", ").concat(_+10,`
`).concat(g,", ").concat(_-10,`
`).concat(p,", ").concat(m-2)},a.prototype.renderBackground=function(s,o){var l=[{y:-s.origin[1],height:s.origin[1],fill:"#cff"},{y:0,height:s.size[1]-s.origin[1],fill:"#494"}],u=o.select("g").selectAll("rect.fancy-bg").data(l);u.enter().insert("rect",function(){return this.firstChild}).attr("class","fancy-bg").merge(u).attr("x",-s.origin[0]).attr("y",function(c){return c.y}).attr("width",s.size[0]).attr("height",function(c){return c.height}).attr("fill",function(c){return c.fill}),u.exit().remove()},a.prototype.renderLeaves=function(s,o){var l=o.select("g").select("radialGradient#gradient");l.empty()&&(l=o.select("g").append("radialGradient").attr("id","gradient"),l.append("stop").attr("offset","0%").attr("stop-color","#8f8"),l.append("stop").attr("offset","80%").attr("stop-color","#8f8").attr("stop-opacity",.5),l.append("stop").attr("offset","100%").attr("stop-color","#8f8").attr("stop-opacity",0));var u=s.filter(function(g){return g.parent&&g.parent.id!==r.DUMMY_ROOT_NODE_ID}),c=(0,e.min)(u,function(g){return g.data.generation})||0,d=function(g){return 280-180/Math.sqrt(1+g.data.generation-c)};{var p=o.select("g").selectAll("g.background-node").data(u,function(g){return g.id}),m=p.enter().append("g").attr("class","background-node");m.merge(p).attr("transform",function(g){return"translate(".concat(g.x-g.data.width/2,", ").concat(g.y-g.data.height/2,")")});var w=m.append("g").attr("class","background");w.append("circle").attr("class","background").attr("r",d).attr("cx",function(g){return g.data.width/2}).attr("cy",function(g){return g.data.height/2}).style("fill","#493"),p.exit().remove()}{var p=o.select("g").selectAll("g.background2-node").data(u,function(x){return x.id}),m=p.enter().append("g").attr("class","background2-node");m.merge(p).attr("transform",function(x){return"translate(".concat(x.x-x.data.width/2,", ").concat(x.y-x.data.height/2,")")});var w=m.append("g").attr("class","background2");w.append("circle").attr("class","background").attr("r",d).attr("cx",function(x){return x.data.width/2}).attr("cy",function(x){return x.data.height/2}).style("fill","url(#gradient)"),p.exit().remove()}},a.prototype.renderLinks=function(s,o){var l=this,u=function(m,w){return w.data.additionalMarriage?l.linkAdditionalMarriage(w):l.linkVertical(w,m)},c=s.filter(function(m){return!!m.parent}),d=o.select("g").selectAll("path.branch").data(c,t.linkId),p=d.enter().append("path").attr("class",function(m){return m.data.additionalMarriage?"branch additional-marriage":"branch"});p.merge(d).attr("d",function(m){return u(m.parent,m)}),d.exit().remove()},a.prototype.renderTreeTrunk=function(s,o){var l=s.filter(function(d){return!d.parent||d.parent.id===r.DUMMY_ROOT_NODE_ID}),u=o.select("g").selectAll("g.trunk").data(l,function(d){return d.id}),c=u.enter().append("g").attr("class","trunk");c.append("path").attr("d",`
M 10 20
L 10 40
C 10 60 10 90 40 90
L -40 90
C -10 90 -10 60 -10 40
L -10 20`),c.merge(u).attr("transform",function(d){return"translate(".concat(d.x,", ").concat(d.y,")")}),u.exit().remove()},a.prototype.render=function(){var s=(0,r.layOutDescendants)(this.options,{flipVertically:!0,vSpacing:100}),o=(0,t.getChartInfo)(s);o.origin[0]+=150,o.origin[1]+=150,o.size[0]+=300,o.size[1]+=250;var l=this.util.getSvgForRendering();return l.select("style.fancy-style").empty()&&l.append("style").attr("class","fancy-style").text(`
.branch, .trunk {
fill: #632;
stroke: #632;
}`),this.renderBackground(o,l),this.renderLeaves(s,l),this.renderLinks(s,l),this.renderTreeTrunk(s,l),this.util.renderNodes(s,l),this.util.updateSvgDimensions(o),Object.assign(o,{animationPromise:Promise.resolve()})},a}();return wc.FancyChart=i,wc}var Fa={},XA;function VJ(){if(XA)return Fa;XA=1;var e=Fa&&Fa.__extends||function(){var E=function(x,b){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,v){C.__proto__=v}||function(C,v){for(var k in v)Object.prototype.hasOwnProperty.call(v,k)&&(C[k]=v[k])},E(x,b)};return function(x,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");E(x,b);function C(){this.constructor=x}x.prototype=b===null?Object.create(b):(C.prototype=b.prototype,new C)}}();Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.DetailedRenderer=void 0,Fa.getLength=w;var t=Am,r=LD(),n=ND(),i=gu,a=Tm(),s=44,o=64,l=70,u=90,c=14,d=200,p=500,m=new Map;function w(E,x){var b="".concat(E,"|").concat(x);if(m.has(b))return m.get(b);var C=(0,t.select)("svg").append("g").attr("class","detailed node"),v=C.append("text").attr("class",x).text(E),k=v.node().getComputedTextLength();return C.remove(),m.set(b,k),k}var g=new Map([["F","♀"],["M","♂"]]),_=function(E){e(x,E);function x(b){var C=E.call(this,b)||this;return C.options=b,C}return x.prototype.getColoringClass=function(){switch(this.options.colors){case r.ChartColors.NO_COLOR:return"nocolor";case r.ChartColors.COLOR_BY_SEX:return"bysex";default:return"bygeneration"}},x.prototype.getIndiDetails=function(b){var C=[],v=b.getBirthDate()&&(0,n.formatDateOrRange)(b.getBirthDate(),this.options.locale),k=b.getBirthPlace(),T=b.getDeathDate()&&(0,n.formatDateOrRange)(b.getDeathDate(),this.options.locale),N=b.getDeathPlace();v&&C.push({symbol:"",text:v}),k&&C.push({symbol:"",text:k}),(v||k)&&(C[0].symbol="*");var M=C.length;return T&&C.push({symbol:"",text:T}),N&&C.push({symbol:"",text:N}),T||N?C[M].symbol="+":b.isConfirmedDeath()&&C.push({symbol:"+",text:""}),C},x.prototype.getFamDetails=function(b){var C=[],v=b.getMarriageDate()&&(0,n.formatDateOrRange)(b.getMarriageDate(),this.options.locale),k=b.getMarriagePlace();return v&&C.push({symbol:"",text:v}),k&&C.push({symbol:"",text:k}),(v||k)&&(C[0].symbol="⚭"),C},x.prototype.getPreferredIndiSize=function(b){var C=this.options.data.getIndi(b),v=this.getIndiDetails(C),k=C.showId()||C.showSex()?c:0,T=(0,i.max)([s+v.length*c+k,C.getImageUrl()?u:0]),N=(0,i.max)(v.map(function(j){return w(j.text,"details")})),M=(0,i.max)([N+22,w(C.getFirstName()||"","name")+8,w(C.getLastName()||"","name")+8,w(b,"id")+32,o])+(C.getImageUrl()?l:0);return[M,T]},x.prototype.getPreferredFamSize=function(b){var C=this.options.data.getFam(b),v=this.getFamDetails(C);if(!v.length)return[0,0];var k=10+v.length*c,T=(0,i.max)(v.map(function(M){return w(M.text,"details")})),N=T+22;return[N,k]},x.prototype.render=function(b,C){var v=this;b=b.append("g").attr("class","detailed"),C=C.select("g");var k=b.merge(C).selectAll("g.indi").data(function(j){var D=[],$=!v.options.horizontal&&j.data.family?(0,i.max)([-(0,a.getFamPositionVertical)(j.data),0]):0,X=v.options.horizontal&&j.data.family?(0,i.max)([-(0,a.getFamPositionHorizontal)(j.data),0]):0;return j.data.indi&&D.push({indi:j.data.indi,generation:j.data.generation,xOffset:$,yOffset:0}),j.data.spouse&&D.push({indi:j.data.spouse,generation:j.data.generation,xOffset:!v.options.horizontal&&j.data.indi?j.data.indi.width+$:0,yOffset:v.options.horizontal&&j.data.indi?j.data.indi.height+X:0}),D},function(j){return j.indi.id}),T=k.enter().append("g").attr("class","indi");this.transition(T.merge(k)).attr("transform",function(j){return"translate(".concat(j.xOffset,", ").concat(j.yOffset,")")}),this.renderIndi(T,k);var N=b.select(function(j){return j.data.family?this:null}).append("g").attr("class","family"),M=C.select(function(j){return j.data.family?this:null}).select("g.family");this.transition(N.merge(M)).attr("transform",function(j){return v.getFamTransform(j.data)}),this.renderFamily(N,M)},x.prototype.getCss=function(){return`
.detailed text {
font-family: Montserrat, verdana, arial, sans-serif;
fill: black;
}
.detailed .name {
font-size: 12px;
font-weight: bold;
}
.link {
fill: none;
stroke: #000;
stroke-width: 1px;
}
.additional-marriage {
stroke-dasharray: 2;
}
.detailed rect {
stroke: black;
}
.detailed {
stroke-width: 2px;
}
.detailed .details {
font-size: 10px;
}
.detailed .id {
font-size: 10px;
font-style: italic;
}
.detailed rect.nocolor {
fill: #ffffff;
}
.detailed rect.bysex {
fill: #eeeeee;
}
.detailed rect.bysex.male {
fill: #dbffff;
}
.detailed rect.bysex.female {
fill: #ffdbed;
}
.detailed rect.bygeneration {
fill: #ffffdd;
}
.generation-11 .detailed rect.bygeneration, .generation1 .detailed rect.bygeneration {
fill: #edffdb;
}
.generation-10 .detailed rect.bygeneration, .generation2 .detailed rect.bygeneration {
fill: #dbffdb;
}
.generation-9 .detailed rect.bygeneration, .generation3 .detailed rect.bygeneration {
fill: #dbffed;
}
.generation-8 .detailed rect.bygeneration, .generation4 .detailed rect.bygeneration {
fill: #dbffff;
}
.generation-7 .detailed rect.bygeneration, .generation5 .detailed rect.bygeneration {
fill: #dbedff;
}
.generation-6 .detailed rect.bygeneration, .generation6 .detailed rect.bygeneration {
fill: #dbdbff;
}
.generation-5 .detailed rect.bygeneration, .generation7 .detailed rect.bygeneration {
fill: #eddbff;
}
.generation-4 .detailed rect.bygeneration, .generation8 .detailed rect.bygeneration {
fill: #ffdbff;
}
.generation-3 .detailed rect.bygeneration, .generation9 .detailed rect.bygeneration {
fill: #ffdbed;
}
.generation-2 .detailed rect.bygeneration, .generation10 .detailed rect.bygeneration {
fill: #ffdbdb;
}
.generation-1 .detailed rect.bygeneration, .generation11 .detailed rect.bygeneration {
fill: #ffeddb;
}`},x.prototype.transition=function(b){return this.options.animate?b.transition().delay(d).duration(p):b},x.prototype.getFamTransform=function(b){return this.options.horizontal?"translate(".concat(b.indi&&b.indi.width||b.spouse.width,", ").concat((0,i.max)([(0,a.getFamPositionHorizontal)(b),0]),")"):"translate(".concat((0,i.max)([(0,a.getFamPositionVertical)(b),0]),", ").concat(b.indi&&b.indi.height||b.spouse.height,")")},x.prototype.getSexClass=function(b){var C,v=(C=this.options.data.getIndi(b))===null||C===void 0?void 0:C.getSex();switch(v){case"M":return"male";case"F":return"female";default:return""}},x.prototype.renderIndi=function(b,C){var v=this;this.options.indiHrefFunc&&(b=b.append("a").attr("href",function(q){return v.options.indiHrefFunc(q.indi.id)}),C=C.select("a")),this.options.indiCallback&&b.on("click",function(q,F){return v.options.indiCallback({id:F.indi.id,generation:F.generation,modifiers:{shiftKey:q.shiftKey,ctrlKey:q.ctrlKey,altKey:q.altKey,metaKey:q.metaKey}})});var k=b.append("rect").attr("rx",5).attr("stroke-width",0).attr("class",function(q){return"background ".concat(v.getColoringClass()," ").concat(v.getSexClass(q.indi.id))}).merge(C.select("rect.background")),T=this.transition(k);T.attr("width",function(q){return q.indi.width}),T.attr("height",function(q){return q.indi.height});var N=function(q){return"clip-".concat(q)};b.append("clipPath").attr("id",function(q){return N(q.indi.id)}).append("rect").attr("rx",5).merge(C.select("clipPath rect")).attr("width",function(q){return q.indi.width}).attr("height",function(q){return q.indi.height});var M=function(q){return v.options.data.getIndi(q.indi.id)},j=function(q){return q.indi.width-(M(q).getImageUrl()?l:0)};b.append("text").attr("text-anchor","middle").attr("class","name").attr("transform",function(q){return"translate(".concat(j(q)/2,", 17)")}).text(function(q){return M(q).getFirstName()}),b.append("text").attr("text-anchor","middle").attr("class","name").attr("transform",function(q){return"translate(".concat(j(q)/2,", 33)")}).text(function(q){return M(q).getLastName()});var D=new Map;b.each(function(q){var F=M(q),G=v.getIndiDetails(F);D.set(q.indi.id,G)});for(var $=(0,i.max)(Array.from(D.values(),function(q){return q.length})),X=function(q){var F=b.filter(function(G){return D.get(G.indi.id).length>q});F.append("text").attr("text-anchor","middle").attr("class","details").attr("transform","translate(9, ".concat(49+q*c,")")).text(function(G){return D.get(G.indi.id)[q].symbol}),F.append("text").attr("class","details").attr("transform","translate(15, ".concat(49+q*c,")")).text(function(G){return D.get(G.indi.id)[q].text})},W=0;W<$;++W)X(W);var H=b.append("text").attr("class","id").text(function(q){return M(q).showId()?q.indi.id:""}).merge(C.select("text.id"));this.transition(H).attr("transform",function(q){return"translate(9, ".concat(q.indi.height-5,")")});var V=b.append("text").attr("class","details sex").attr("text-anchor","end").text(function(q){var F=g.get(M(q).getSex()||"")||"";return M(q).showSex()?F:""}).merge(C.select("text.sex"));this.transition(V).attr("transform",function(q){return"translate(".concat(j(q)-5,", ").concat(q.indi.height-5,")")}),b.filter(function(q){return!!M(q).getImageUrl()}).append("image").attr("width",l).attr("height",function(q){return q.indi.height}).attr("preserveAspectRatio","xMidYMin").attr("transform",function(q){return"translate(".concat(q.indi.width-l,", 0)")}).attr("clip-path",function(q){return"url(#".concat(N(q.indi.id),")")}).attr("href",function(q){return M(q).getImageUrl()});var K=b.append("rect").attr("rx",5).attr("fill-opacity",0).attr("class","border").merge(C.select("rect.border")),Y=this.transition(K);Y.attr("width",function(q){return q.indi.width}),Y.attr("height",function(q){return q.indi.height})},x.prototype.renderFamily=function(b,C){var v=this;this.options.famHrefFunc&&(b=b.append("a").attr("href",function(j){return v.options.famHrefFunc(j.data.family.id)})),this.options.famCallback&&b.on("click",function(j,D){return v.options.famCallback({id:D.data.family.id,generation:D.data.generation,modifiers:{shiftKey:j.shiftKey,ctrlKey:j.ctrlKey,altKey:j.altKey,metaKey:j.metaKey}})});var k=new Map;b.each(function(j){var D=j.data.family.id,$=v.options.data.getFam(D),X=v.getFamDetails($);k.set(D,X)});var T=(0,i.max)(Array.from(k.values(),function(j){return j.length}));b.filter(function(j){var D=k.get(j.data.family.id);return 0<D.length}).append("rect").attr("class",this.getColoringClass()).attr("rx",5).attr("ry",5).attr("width",function(j){return j.data.family.width}).attr("height",function(j){return j.data.family.height});for(var N=function(j){var D=b.filter(function($){return k.get($.data.family.id).length>j});D.append("text").attr("text-anchor","middle").attr("class","details").attr("transform","translate(9, ".concat(16+j*c,")")).text(function($){return k.get($.data.family.id)[j].symbol}),D.append("text").attr("text-anchor","start").attr("class","details").attr("transform","translate(15, ".concat(16+j*c,")")).text(function($){return k.get($.data.family.id)[j].text})},M=0;M<T;++M)N(M)},x}(a.CompositeRenderer);return Fa.DetailedRenderer=_,Fa}var tl={},Mh={},yp={exports:{}},QJ=yp.exports,JA;function KJ(){return JA||(JA=1,function(e,t){(function(r,n){e.exports=n()})(QJ,function(){function r(v,k){this.flags=v,this.cursor=k}r.prototype={skip:function(){this.flags.skip=!0},break:function(){this.flags.break=!0},remove:function(){this.flags.remove=!0},replace:function(k){this.flags.replace=k},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}};function n(v,k){return new r(v,k)}function i(v){this.xs=[v],this.top=0}i.prototype={push:function(k){this.top++,this.top<this.xs.length?this.xs[this.top]=k:this.xs.push(k)},pushArrayReverse:function(k){for(var T=k.length-1;T>=0;T--)this.push(k[T])},pop:function(){var k=this.peek();return this.top--,k},peek:function(){return this.xs[this.top]},isEmpty:function(){return this.top===-1}};function a(v){return new i(v)}function s(){this.depth=0,this.stack=a({node:null,index:-1})}s.prototype={moveDown:function(k){this.depth++,this.stack.push({node:k,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}};function o(){return new s}function l(){this.break=!1,this.skip=!1,this.remove=!1,this.replace=null}l.prototype={reset:function(){this.break=!1,this.skip=!1,this.remove=!1,this.replace=null}};function u(){return new l}function c(v){return v&&v.length!==0}function d(v,k,T){for(var N=u(),M=o(),j=n(N,M),D=a(v),$=Object.assign({},v);!D.isEmpty();){var X=D.pop();if(X===$){M.moveUp();continue}if(N.reset(),k(X,j),N.break)break;if(!N.remove&&(M.moveNext(),!N.skip)){N.replace&&(X=N.replace);var W=T(X);c(W)&&(D.push($),D.pushArrayReverse(W),M.moveDown(X))}}}function p(v,k,T){for(var N=u(),M=o(),j=n(N,M),D=a(v),$=a(null);!D.isEmpty();){var X=D.peek(),W=$.peek(),H=T(X);if(N.reset(),X===W||!c(H)){if(X===W&&($.pop(),M.moveUp()),D.pop(),k(X,j),N.break)break;if(N.remove)continue;M.moveNext()}else $.push(X),M.moveDown(X),D.pushArrayReverse(H)}}var m=32768;function w(v){this.xs=[v],this.top=0,this.maxLength=0}w.prototype={enqueue:function(k){this.xs.push(k)},enqueueMultiple:function(k){for(var T=0,N=k.length;T<N;T++)this.enqueue(k[T])},dequeue:function(){var k=this.peek();return this.top++,this.top===m&&(this.xs=this.xs.slice(this.top),this.top=0),k},peek:function(){return this.xs[this.top]},isEmpty:function(){return this.top===this.xs.length}};function g(v){return new w(v)}function _(){this.depth=0,this.index=-1,this.queue=g({node:null,arity:1}),this.levelNodes=1,this.nextLevelNodes=0}_.prototype={store:function(k,T){this.queue.enqueue({node:k,arity:T}),this.nextLevelNodes+=T},moveNext:function(){this.index++},moveForward:function(){this.queue.peek().arity--,this.levelNodes--,this.queue.peek().arity===0&&(this.index=0,this.queue.dequeue()),this.levelNodes===0&&(this.depth++,this.levelNodes=this.nextLevelNodes,this.nextLevelNodes=0)},get parent(){return this.queue.peek().node}};function E(){return new _}function x(v,k,T){for(var N=u(),M=E(),j=n(N,M),D=g(v);!D.isEmpty();){var $=D.dequeue();if(N.reset(),k($,j),N.break)break;if(!N.remove&&(M.moveNext(),N.replace&&($=N.replace),!N.skip)){var X=T($);c(X)&&(D.enqueueMultiple(X),M.store($,X.length))}M.moveForward()}}var b=function(k){return k.children};function C(v,k,T){if(v!=null){T=T||{};var N=T.order||"pre",M=T.getChildren||b;N==="pre"?d(v,k,M):N==="post"?p(v,k,M):N==="bfs"&&x(v,k,M)}}return C})}(yp)),yp.exports}var my,ZA;function YJ(){if(ZA)return my;ZA=1;function e(s){return function(o){return o.tag===s}}function t(s){var o=s.filter(e("INDI")).map(n),l=s.filter(e("FAM")),u=l.map(n),c=l.reduce(function(m,w){return m.concat(a(w))},[]),d=o.concat(u),p=d.reduce(function(m,w,g){return m[w.id]=g,m},{});return c=c.map(i(p)),{nodes:d,links:c}}function r(s){if(s.tag==="INDI"){var o=(s.tree.filter(e("NAME"))||[])[0];return o?o.data.replace(/\//g,""):"?"}else return"Family"}function n(s){return s.id=s.pointer,s.name=r(s),s}function i(s){return function(o){function l(u){return s[u]}return{source:l(o.source),target:l(o.target)}}}function a(s){var o=s.tree.filter(function(l){return l.data&&l.data[0]==="@"}).map(function(l){return{source:s.pointer,target:l.data}});return o}return my=t,my}var eT;function MD(){if(eT)return Mh;eT=1;var e=KJ(),t=/\s*(0|[1-9]+[0-9]*) (@[^@]+@ |)([A-Za-z0-9_]+)( [^\n\r]*|)/;function r(n){var i={root:{tree:[]},level:0};i.pointer=i.root;var a=n.split(`
`).map(o).filter(function(c){return c}).reduce(s,i).root;return e(a,l,{getChildren:u}),a.tree;function s(c,d){if(d.level===c.level)c.pointer.tree.push(d);else if(d.level>c.level){var p=c.pointer;c.pointer=c.pointer.tree[c.pointer.tree.length-1],c.pointer.tree.push(d),c.pointer.up=p,c.level=d.level}else if(d.level<c.level){for(;d.level<=c.pointer.level&&c.pointer.up;)c.pointer=c.pointer.up;c.pointer.tree.push(d),c.level=d.level}return c}function o(c){var d=c.match(t);return d?{level:parseInt(d[1],10),pointer:d[2].trim(),tag:d[3].trim(),data:d[4].trimLeft(),tree:[]}:null}function l(c){delete c.up,delete c.level}function u(c){return c.tree}}return Mh.parse=r,Mh.d3ize=YJ(),Mh}var tT;function XJ(){if(tT)return tl;tT=1,Object.defineProperty(tl,"__esModule",{value:!0}),tl.getDate=o,tl.gedcomToJson=m,tl.gedcomEntriesToJson=w;var e=MD();function t(g,_){return g.find(function(E){return E.tag===_})}function r(g,_){return g.filter(function(E){return E.tag===_})}function n(g){return g.substring(1,g.length-1)}function i(g){var _=g.split("/");return _.length===1?{firstName:_[0].trim()}:{firstName:_[0].trim(),lastName:_[1].trim()}}var a=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 s(g){if(!(!g||!g.length)){var _={};if(g[0].startsWith("(")&&g[g.length-1].endsWith(")")){g[0]=g[0].substring(1);var E=g[g.length-1];g[g.length-1]=E.substring(0,E.length-1)}var x=g.join(" "),b=g[0].toLowerCase();if((b==="cal"||b==="abt"||b==="est")&&(_.qualifier=b,g=g.slice(1)),g.length&&g[g.length-1].match(/^\d{1,4}$/)&&(_.year=Number(g[g.length-1]),g=g.slice(0,g.length-1)),g.length){var E=g[g.length-1].toLowerCase();a.has(E)&&(_.month=a.get(E),g=g.slice(0,g.length-1))}return g.length&&g[0].match(/^\d\d?$/)&&(_.day=Number(g[0]),g=g.slice(0,g.length-1)),g.length?{text:x}:_}}function o(g){var _=g.replace(/@.*@/,"").trim().split(" "),E=_[0].toLowerCase();if(E.startsWith("bet")){var x=_.findIndex(function(N){return N.toLowerCase()==="and"}),b=s(_.slice(1,x)),C=s(_.slice(x+1)),v={};return b&&(v.from=b),C&&(v.to=C),{dateRange:v}}if(E.startsWith("bef")||E.startsWith("aft")){var k=s(_.slice(1));return k?E.startsWith("bef")?{dateRange:{to:k}}:{dateRange:{from:k}}:void 0}var T=s(_);if(T)return{date:T}}function l(g){if(!(!g||g.tag!=="NOTE"))return r(g.tree,"CONT").filter(function(_){return _.data}).reduce(function(_,E){return _.concat(E.data)},[g.data])}function u(g){if(g){var _=t(g.tree,"TYPE"),E=t(g.tree,"DATE"),x=t(g.tree,"PLAC"),b=E&&E.data&&o(E.data),C=x&&x.data;if(b||C){var v=b||{};C&&(v.place=C),v.confirmed=!0,_&&(v.type=_.data);var k=l(t(g.tree,"NOTE"));return k&&(v.notes=k),v}if(g.data&&g.data.toLowerCase()==="y")return{confirmed:!0}}}function c(g,_,E){var x=n(g.pointer),b=r(g.tree,"FAMS").map(function(B){return n(B.data)}).filter(function(B){return E.has(B)}),C={id:x,fams:b},v=r(g.tree,"NAME"),k=function(B){var se=t(B.tree,"TYPE");return se!==void 0&&se.data==="maiden"},T=v.find(function(B){return!k(B)}),N=v.find(k);if(T){var M=i(T.data),j=M.firstName,D=M.lastName;j&&(C.firstName=j),D&&(C.lastName=D)}if(N){var $=i(N.data),j=$.firstName,D=$.lastName;D&&(C.maidenName=D),j&&!C.firstName&&(C.firstName=j)}var X=t(g.tree,"NCHI");X&&(C.numberOfChildren=+X.data);var W=t(g.tree,"NMR");W&&(C.numberOfMarriages=+W.data);var H=t(g.tree,"SEX");H&&(C.sex=H.data);var V=t(g.tree,"FAMC");if(V){var K=n(V.data);E.has(K)&&(C.famc=K)}var Y=r(g.tree,"OBJE");if(Y.length>0){var q=function(B){var se=B.data?_.get(n(B.data)):B;if(se){var de=t(se.tree,"FILE"),me=t(se.tree,"TITL");if(de)return{url:de.data,title:me&&me.data}}};C.images=Y.map(q).filter(function(B){return B!==void 0})}var F=u(t(g.tree,"BIRT"));F&&(C.birth=F);var G=u(t(g.tree,"DEAT"));G&&(C.death=G);var z=l(t(g.tree,"NOTE"));return z&&(C.notes=z),C.events=r(g.tree,"EVEN").map(u).filter(function(B){return B!==null}),C}function d(g,_){var E=n(g.pointer),x=r(g.tree,"CHIL").map(function(M){return n(M.data)}).filter(function(M){return _.has(M)}),b={id:E,children:x},C=t(g.tree,"HUSB");if(C){var v=n(C.data);_.has(v)&&(b.husb=n(C.data))}var k=t(g.tree,"WIFE");if(k){var T=n(k.data);_.has(T)&&(b.wife=n(k.data))}var N=u(t(g.tree,"MARR"));return N&&(b.marriage=N),b}function p(g){return new Map(g.map(function(_){return[n(_.pointer),_]}))}function m(g){return w((0,e.parse)(g))}function w(g){var _=p(r(g,"OBJE")),E=new Set(g.map(function(C){return n(C.pointer)}).filter(function(C){return!!C})),x=r(g,"INDI").map(function(C){return c(C,_,E)}),b=r(g,"FAM").map(function(C){return d(C,E)});return{indis:x,fams:b}}return tl}var _c={},nT;function JJ(){if(nT)return _c;nT=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.HourglassChart=void 0;var e=Xb(),t=xs(),r=Rm(),n=function(){function i(a){this.options=a,this.util=new t.ChartUtil(a)}return i.prototype.render=function(){var a,s,o,l,u=(0,e.getAncestorsTree)(this.options),c=this.util.layOutChart(u,{flipVertically:!0}),d=(0,r.layOutDescendants)(this.options);((a=c[0].data.indi)===null||a===void 0?void 0:a.expander)!==void 0&&(d[0].data.indi.expander=(s=c[0].data.indi)===null||s===void 0?void 0:s.expander),((o=c[0].data.spouse)===null||o===void 0?void 0:o.expander)!==void 0&&(d[0].data.spouse.expander=(l=c[0].data.spouse)===null||l===void 0?void 0:l.expander);var p=c.slice(1).concat(d),m=this.util.renderChart(p),w=(0,t.getChartInfo)(p);return this.util.updateSvgDimensions(w),Object.assign(w,{animationPromise:m})},i}();return _c.HourglassChart=n,_c}var bc={},zo={},La={},rT;function DD(){if(rT)return La;rT=1,Object.defineProperty(La,"__esModule",{value:!0}),La.LinkType=La.ChildNodes=void 0,La.otherSideLinkType=r;var e=function(){function n(i){i===void 0&&(i={}),this.indiParents=[],this.indiSiblings=[],this.spouseParents=[],this.spouseSiblings=[],this.children=[],Object.assign(this,i)}return n.prototype.get=function(i){switch(i){case t.IndiParents:return this.indiParents;case t.IndiSiblings:return this.indiSiblings;case t.SpouseParents:return this.spouseParents;case t.SpouseSiblings:return this.spouseSiblings;case t.Children:return this.children}},n.prototype.getAll=function(){return[].concat(this.indiSiblings,this.indiParents,this.children,this.spouseParents,this.spouseSiblings)},n.EMPTY=new n,n}();La.ChildNodes=e;var t;(function(n){n[n.IndiParents=0]="IndiParents",n[n.IndiSiblings=1]="IndiSiblings",n[n.SpouseParents=2]="SpouseParents",n[n.SpouseSiblings=3]="SpouseSiblings",n[n.Children=4]="Children"})(t||(La.LinkType=t={}));function r(n){switch(n){case t.IndiParents:return t.Children;case t.IndiSiblings:return t.IndiSiblings;case t.SpouseParents:return t.Children;case t.SpouseSiblings:return t.IndiSiblings;case t.Children:return t.IndiParents}}return La}var Uo={},iT;function FD(){if(iT)return Uo;iT=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.nonEmpty=e,Uo.last=t,Uo.zip=r,Uo.points2pathd=n;function e(i){return!!(i&&i.length)}function t(i){return i[i.length-1]}function r(i,a){return i.map(function(s,o){return[s,a[o]]})}function n(i){for(var a="M ".concat(i[0].x," ").concat(i[0].y," L"),s=0,o=i.slice(1);s<o.length;s++){var l=o[s];a+=" ".concat(l.x," ").concat(l.y)}return a}return Uo}var aT;function ZJ(){if(aT)return zo;aT=1;var e=zo&&zo.__spreadArray||function(p,m,w){if(w||arguments.length===2)for(var g=0,_=m.length,E;g<_;g++)(E||!(g in m))&&(E||(E=Array.prototype.slice.call(m,0,g)),E[g]=m[g]);return p.concat(E||Array.prototype.slice.call(m))};Object.defineProperty(zo,"__esModule",{value:!0}),zo.KinshipChartRenderer=void 0;var t=gu,r=DD(),n=xs(),i=FD(),a=17,s=15,o=5,l=7,u=6,c=3,d=function(){function p(m){this.options=m,this.util=new n.ChartUtil(this.options)}return p.prototype.layOut=function(m,w){var g=this.util.getSvgForRendering();return g.select("style").empty()&&g.append("style").text(this.options.renderer.getCss()),[this.util.layOutChart(m,{flipVertically:!0}),this.util.layOutChart(w)]},p.prototype.render=function(m,w,g){var _=this,E=m.concat(w),x=E.slice(1);m.forEach(function(v){return _.setLinkYs(v,!0)}),w.forEach(function(v){return _.setLinkYs(v,!1)});var b=this.util.renderNodes(x,this.util.getSvgForRendering());this.renderLinks(E),g>1&&this.renderRootDummyAdditionalMarriageLinkStub(E[0]);var C=(0,n.getChartInfo)(x);return this.util.updateSvgDimensions(C),Object.assign(C,{animationPromise:b})},p.prototype.renderLinks=function(m){var w=this,g=this.util.getSvgForRendering().select("g"),_=function(v){return v.data.id},E=g.selectAll("path.internode-link").data(m.filter(function(v){return!!v.parent}),_);E.enter().insert("path","g").attr("class",function(v){return w.cssClassForLink(v)}).merge(E).attr("d",function(v){var k=v.data.primaryMarriage?w.additionalMarriageLinkPoints(v):w.linkPoints(v.parent,v,v.data.linkFromParentType);return(0,i.points2pathd)(k)}),E.exit().remove();var x=g.selectAll("g.link-stubs").data(m.filter(function(v){return v.data.duplicateOf||v.data.duplicated||v.data.primaryMarriage}),_),b=x.enter().insert("g","g").attr("class","link-stubs");x.exit().remove();var C=b.merge(x).selectAll("g").data(function(v){return w.nodeToLinkStubRenderInfos(v)},function(v){return v.linkType.toString()});C.enter().append("g").call(function(v){return v.append("path").attr("class",function(k){return w.cssClassForLinkStub(k.linkType)}).merge(C.select("path.link-stub")).attr("d",function(k){return(0,i.points2pathd)(k.points)})}).call(function(v){return v.append("circle").attr("r",c).style("stroke","black").style("fill","none").merge(C.select("circle")).attr("transform",function(k){return"translate(".concat((0,i.last)(k.points).x,", ").concat((0,i.last)(k.points).y+c*k.treeDir,")")})}),C.exit().remove()},p.prototype.cssClassForLink=function(m){return m.data.primaryMarriage?"link internode-link additional-marriage":"link internode-link "+this.cssClassForLinkType(m.data.linkFromParentType)},p.prototype.cssClassForLinkStub=function(m){return"link link-stub "+this.cssClassForLinkType(m)},p.prototype.cssClassForLinkType=function(m){switch(m){case r.LinkType.IndiParents:case r.LinkType.SpouseParents:return"parents-link";case r.LinkType.IndiSiblings:case r.LinkType.SpouseSiblings:return"siblings-link";case r.LinkType.Children:return"children-link"}},p.prototype.nodeToLinkStubRenderInfos=function(m){var w=this;return m.data.linkStubs.map(function(g){var _=m.y<m.parent.y,E=_?-1:1,x=w.linkAnchorPoints(m,g,_),b=m.data.linkYs.children-(2*u+2*c)*E;return{treeDir:E,linkType:g,points:e(e([],x,!0),[{x:(0,i.last)(x).x,y:b}],!1)}})},p.prototype.getLinkY=function(m,w){switch(w){case r.LinkType.IndiParents:return m.data.linkYs.indi;case r.LinkType.IndiSiblings:return m.data.linkYs.indi;case r.LinkType.SpouseParents:return m.data.linkYs.spouse;case r.LinkType.SpouseSiblings:return m.data.linkYs.spouse;case r.LinkType.Children:return m.data.linkYs.children}},p.prototype.setLinkYs=function(m,w){var g=w?-1:1,_=m.y+(m.data.height/2+a)*g,E=u*g,x=this.calcLinkOffsetDirs(m),b=x[0],C=x[1];m.data.linkYs={indi:_+E*b,spouse:_+E*C,children:_}},p.prototype.calcLinkOffsetDirs=function(m){var w=m.data.childNodes;if(w.children.length){var g=this.linkAnchorPoints(m,r.LinkType.IndiParents,!0)[0].x,_=this.linkAnchorPoints(m,r.LinkType.SpouseParents,!0)[0].x,E={min:this.findMinXOfChildNodesAnchors(m,w.children),max:this.findMaxXOfChildNodesAnchors(m,w.children)};if(E.min<g&&E.max>_)return[-1,-1];if(E.min<g)return[-1,1];if(E.max>_)return[1,-1]}else if((w.indiParents.length||w.indiSiblings.length)&&(w.spouseParents.length||w.spouseSiblings.length)){var g=this.linkAnchorPoints(m,r.LinkType.IndiParents,!0)[0].x,x=this.findMinXOfChildNodesAnchors(m,w.spouseSiblings.concat(w.spouseParents));if(x<g)return[-1,1]}return[1,-1]},p.prototype.findMinXOfChildNodesAnchors=function(m,w){return this.findExtremeXOfChildNodesAnchors(m,w,!0)},p.prototype.findMaxXOfChildNodesAnchors=function(m,w){return this.findExtremeXOfChildNodesAnchors(m,w,!1)},p.prototype.findExtremeXOfChildNodesAnchors=function(m,w,g){var _=g?t.min:t.max,E=g?-1:1,x=new Set(w);return _(m.children.filter(function(b){return x.has(b.data)}),function(b){return b.x+E*b.data.width/2})+E*l},p.prototype.linkPoints=function(m,w,g){var _=m.y>w.y,E=this.linkAnchorPoints(m,g,_),x=this.linkAnchorPoints(w,(0,r.otherSideLinkType)(g),!_).reverse(),b=this.getLinkY(m,g);return e(e(e([],E,!0),[{x:E[E.length-1].x,y:b},{x:x[0].x,y:b}],!1),x,!0)},p.prototype.additionalMarriageLinkPoints=function(m){var w=m.parent.children.findIndex(function(E){return E.data.id===m.data.id}),g=m.parent.children[w-1],_=this.indiMidY(m);return[{x:g.x,y:_},{x:m.x,y:_}]},p.prototype.linkAnchorPoints=function(m,w,g){var _=[m.x,m.y],E=_[0],x=_[1],b=[m.data.width,m.data.height],C=b[0],v=b[1],k=E-C/2,T=E+C/2,N=[m.data.indi,m.data.spouse,m.data.family].map(function(V){return V?V.width:0}),M=N[0],j=N[1],D=N[2],$=M+j,X=E-C/2+(D>$?(D-$)/2:0),W=X+$,H=this.indiMidY(m)+o*(g?-1:1);switch(w){case r.LinkType.IndiParents:return[{x:X+s,y:x-v/2}];case r.LinkType.SpouseParents:return[{x:W-s,y:x-v/2}];case r.LinkType.IndiSiblings:return[{x:X,y:H},{x:(D>$&&!g?k:X)-l,y:H}];case r.LinkType.SpouseSiblings:return[{x:W,y:H},{x:(D>$&&!g?T:W)+l,y:H}];case r.LinkType.Children:return[{x:X+(m.data.spouse?M:M/2),y:x}]}},p.prototype.indiMidY=function(m){return m.y-m.data.height/2+m.data.indi.height/2},p.prototype.renderRootDummyAdditionalMarriageLinkStub=function(m){var w=this.util.getSvgForRendering().select("g"),g=this.indiMidY(m),_=m.data.width/2+20,E=3;w.selectAll(".root-dummy-additional-marriage").remove(),w.insert("g","g").attr("class","root-dummy-additional-marriage").call(function(x){return x.append("path").attr("d","M 0 ".concat(g," L ").concat(_," ").concat(g)).attr("class","link additional-marriage")}).call(function(x){return x.append("circle").attr("transform","translate(".concat(_+E,", ").concat(g,")")).attr("r",E).style("stroke","black").style("fill","black")})},p}();return zo.KinshipChartRenderer=d,zo}var ja={},xc={},oT;function eZ(){if(oT)return xc;oT=1,Object.defineProperty(xc,"__esModule",{value:!0}),xc.HierarchyFilter=void 0;var e=function(){function t(r){r===void 0&&(r={}),this.indiParents=!0,this.indiSiblings=!0,this.spouseParents=!0,this.spouseSiblings=!0,this.children=!0,this.modify(r)}return t.allAccepting=function(){return new t},t.allRejecting=function(){return new t().modify({indiParents:!1,indiSiblings:!1,spouseParents:!1,spouseSiblings:!1,children:!1})},t.prototype.modify=function(r){return Object.assign(this,r),this},t}();return xc.HierarchyFilter=e,xc}var sT;function tZ(){if(sT)return ja;sT=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.EntryId=ja.HierarchyCreator=void 0,ja.getRootsCount=o;var e=DD(),t=Yb,r=eZ(),n=Pm(),i=FD(),a=function(){function l(u,c){var d;this.data=u,this.queuedNodesById=new Map,this.idGenerator=new n.IdGenerator,d=this.expandStartId(c),this.startEntryId=d[0],this.startFamIndi=d[1]}return l.createHierarchy=function(u,c){return new l(u,c).createHierarchy()},l.prototype.expandStartId=function(u){if(u.isFam)return[u,null];var c=this.data.getIndi(u.id);if(!c)throw new Error("Invalid startId");var d=c.getFamiliesAsSpouse();return d.length?[s.fam(d[0]),u.id]:[u,null]},l.prototype.createHierarchy=function(){var u=this.idToNode(this.startEntryId,null,null,!1),c=this.idToNode(this.startEntryId,null,null,!1);if(!u||!c)throw new Error("Invalid root node");this.startFamIndi&&(u.indi={id:this.startFamIndi},c.indi={id:this.startFamIndi});for(var d=[u,c];d.length;){var p=d.shift(),m=p===u?l.UP_FILTER:p===c?l.DOWN_FILTER:l.ALL_ACCEPTING_FILTER;this.fillNodeData(p,m);for(var w=0,g=p.childNodes.getAll();w<g.length;w++){var _=g[w];d.push(_)}}var E=function(x){var b=x.childNodes.getAll();return b.length?b:null};return{upRoot:(0,t.hierarchy)(u,E),downRoot:(0,t.hierarchy)(c,E)}},l.prototype.fillNodeData=function(u,c){if(this.isFamNode(u)){var d=this.data.getFam(u.id),p=u.indi&&u.indi.id===d.getMother()?[d.getMother(),d.getFather()]:[d.getFather(),d.getMother()],m=p[0],w=p[1];Object.assign(u,{id:this.idGenerator.getId(u.id),indi:m&&{id:m},spouse:w&&{id:w}}),!u.duplicateOf&&!u.duplicated&&(u.childNodes=this.childNodesForFam(d,u,c))}else{var g=this.data.getIndi(u.id);Object.assign(u,{id:this.idGenerator.getId(u.id),indi:{id:g.getId()}}),!u.duplicateOf&&!u.duplicated&&(u.childNodes=this.childNodesForIndi(g,u,c))}u.linkStubs=this.createLinkStubs(u)},l.prototype.childNodesForFam=function(u,c,d){var p=c.indi?this.data.getIndi(c.indi.id):null,m=c.spouse?this.data.getIndi(c.spouse.id):null,w=this.getParentsAndSiblings(p),g=w[0],_=w[1],E=this.getParentsAndSiblings(m),x=E[0],b=E[1],C=u.getChildren();return new e.ChildNodes({indiParents:d.indiParents?this.famAsSpouseIdsToNodes(g,c,e.LinkType.IndiParents):[],indiSiblings:d.indiSiblings?this.indiIdsToFamAsSpouseNodes(_,c,e.LinkType.IndiSiblings):[],spouseParents:d.spouseParents?this.famAsSpouseIdsToNodes(x,c,e.LinkType.SpouseParents):[],spouseSiblings:d.spouseSiblings?this.indiIdsToFamAsSpouseNodes(b,c,e.LinkType.SpouseSiblings):[],children:d.children?this.indiIdsToFamAsSpouseNodes(C,c,e.LinkType.Children):[]})},l.prototype.childNodesForIndi=function(u,c,d){var p=this.getParentsAndSiblings(u),m=p[0],w=p[1];return new e.ChildNodes({indiParents:d.indiParents?this.famAsSpouseIdsToNodes(m,c,e.LinkType.IndiParents):[],indiSiblings:d.indiSiblings?this.indiIdsToFamAsSpouseNodes(w,c,e.LinkType.IndiSiblings):[]})},l.prototype.areParentsAndSiblingsPresent=function(u){var c=u&&this.data.getIndi(u),d=c&&c.getFamilyAsChild(),p=d&&this.data.getFam(d);return p?[!!(p.getFather()||p.getMother()),p.getChildren().length>1]:[!1,!1]},l.prototype.getParentsAndSiblings=function(u){var c=u&&u.getFamilyAsChild(),d=this.data.getFam(c);if(!d)return[[],[]];var p=this.data.getIndi(d.getFather()),m=this.data.getIndi(d.getMother()),w=[].concat(p?p.getFamiliesAsSpouse():[],m?m.getFamiliesAsSpouse():[]).filter(function(_){return _!==c});w.unshift(c);var g=Array.from(d.getChildren());return g.splice(g.indexOf(u.getId()),1),[w,g]},l.prototype.indiIdsToFamAsSpouseNodes=function(u,c,d){var p=this;return u.flatMap(function(m){return p.indiIdToFamAsSpouseNodes(m,c,d)})},l.prototype.indiIdToFamAsSpouseNodes=function(u,c,d){var p=this;if(this.isChildNodeTypeForbidden(d,c))return[];var m=this.data.getIndi(u).getFamiliesAsSpouse();if(!m.length){var w=this.idToNode(s.indi(u),c,d);return w?[w]:[]}var g=m.map(function(_){return{id:_,indi:{id:u},family:{id:_},parentNode:c,linkFromParentType:d,childNodes:e.ChildNodes.EMPTY,linkStubs:[]}});return g.forEach(function(_,E){E!==0&&(_.primaryMarriage=g[0]);var x=p.queuedNodesById.get(_.id);x?(_.duplicateOf=x,x.duplicated=!0):p.queuedNodesById.set(_.id,_)}),g},l.prototype.famAsSpouseIdsToNodes=function(u,c,d){var p=this.idsToNodes(u.map(s.fam),c,d);return p.slice(1).forEach(function(m){return m.primaryMarriage=p[0]}),p},l.prototype.idsToNodes=function(u,c,d,p){var m=this;return p===void 0&&(p=!0),u.map(function(w){return m.idToNode(w,c,d,p)}).filter(function(w){return w!=null})},l.prototype.idToNode=function(u,c,d,p){if(p===void 0&&(p=!0),this.isChildNodeTypeForbidden(d,c))return null;var m=u.id,w=u.isFam;if(w){var g=this.data.getFam(m);if(!g||!g.getFather()&&!g.getMother())return null}var _=this.queuedNodesById.get(m),E={id:m,parentNode:c,linkFromParentType:d,childNodes:e.ChildNodes.EMPTY,linkStubs:[]};return w&&(E.family={id:m}),p&&_&&(E.duplicateOf=_,_.duplicated=!0),_||this.queuedNodesById.set(m,E),E},l.prototype.createLinkStubs=function(u){var c=this;if(!this.isFamNode(u)||!u.duplicateOf&&!u.duplicated&&!u.primaryMarriage)return[];var d=this.data.getFam(u.family.id),p=this.areParentsAndSiblingsPresent(u.indi?u.indi.id:null),m=p[0],w=p[1],g=this.areParentsAndSiblingsPresent(u.spouse?u.spouse.id:null),_=g[0],E=g[1],x=(0,i.nonEmpty)(d.getChildren());return[m?[e.LinkType.IndiParents]:[],w?[e.LinkType.IndiSiblings]:[],_?[e.LinkType.SpouseParents]:[],E?[e.LinkType.SpouseSiblings]:[],x?[e.LinkType.Children]:[]].flat().filter(function(b){return!c.isChildNodeTypeForbidden(b,u)&&!u.childNodes.get(b).length})},l.prototype.isChildNodeTypeForbidden=function(u,c){if(u===null||!c)return!1;switch((0,e.otherSideLinkType)(c.linkFromParentType)){case e.LinkType.IndiParents:case e.LinkType.IndiSiblings:if(u===e.LinkType.IndiParents||u===e.LinkType.IndiSiblings)return!0;break;case e.LinkType.Children:if(!c.primaryMarriage&&u===e.LinkType.Children)return!0;break}if(c.primaryMarriage){var d=c.indi.id,p=c.spouse.id,m=c.primaryMarriage.indi.id,w=c.primaryMarriage.spouse.id;if(d===m||d===w){if(u===e.LinkType.IndiParents||u===e.LinkType.IndiSiblings)return!0}else if((p===m||p===w)&&(u===e.LinkType.SpouseParents||u===e.LinkType.SpouseSiblings))return!0}return!1},l.prototype.isFamNode=function(u){return!!u.family},l.UP_FILTER=r.HierarchyFilter.allRejecting().modify({indiParents:!0,spouseParents:!0,indiSiblings:!0,spouseSiblings:!0}),l.DOWN_FILTER=r.HierarchyFilter.allRejecting().modify({children:!0}),l.ALL_ACCEPTING_FILTER=r.HierarchyFilter.allAccepting(),l}();ja.HierarchyCreator=a;var s=function(){function l(u,c){if(!u&&!c)throw new Error("Invalid EntryId");this.id=u||c,this.isFam=!!c}return l.indi=function(u){return new l(u,null)},l.fam=function(u){return new l(null,u)},l}();ja.EntryId=s;function o(l,u){var c=l.data.indi&&u.getIndi(l.data.indi.id),d=l.data.spouse&&u.getIndi(l.data.spouse.id);return(c?c.getFamiliesAsSpouse().length:0)+(d?d.getFamiliesAsSpouse().length-1:0)}return ja}var lT;function nZ(){if(lT)return bc;lT=1,Object.defineProperty(bc,"__esModule",{value:!0}),bc.KinshipChart=void 0;var e=ZJ(),t=tZ(),r=function(){function i(a){this.options=a,this.renderer=new e.KinshipChartRenderer(this.options)}return i.prototype.render=function(){var a=this,s=t.HierarchyCreator.createHierarchy(this.options.data,new t.EntryId(this.options.startIndi||null,this.options.startFam||null)),o=this.renderer.layOut(s.upRoot,s.downRoot),l=o[0],u=o[1];return l.concat(u).forEach(function(c){a.setChildNodesGenerationNumber(c)}),this.renderer.render(l,u,(0,t.getRootsCount)(s.upRoot,this.options.data))},i.prototype.setChildNodesGenerationNumber=function(a){var s=this.getChildNodesByType(a),o=function(l,u){return l.forEach(function(c){return c.data.generation=a.data.generation+u})};o(s.indiParents,-1),o(s.indiSiblings,0),o(s.spouseParents,-1),o(s.spouseSiblings,0),o(s.children,1)},i.prototype.getChildNodesByType=function(a){if(!a||!a.children)return n;var s=new Map(a.children.map(function(u){return[u.data.id,u]})),o=function(u){return s.get(u.id)},l=a.data.childNodes;return{indiParents:l.indiParents.map(o),indiSiblings:l.indiSiblings.map(o),spouseParents:l.spouseParents.map(o),spouseSiblings:l.spouseSiblings.map(o),children:l.children.map(o)}},i}();bc.KinshipChart=r;var n={indiParents:[],indiSiblings:[],spouseParents:[],spouseSiblings:[],children:[]};return bc}var zi={},uT;function rZ(){if(uT)return zi;uT=1;var e=zi&&zi.__assign||function(){return e=Object.assign||function(c){for(var d,p=1,m=arguments.length;p<m;p++){d=arguments[p];for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(c[w]=d[w])}return c},e.apply(this,arguments)},t=zi&&zi.__spreadArray||function(c,d,p){if(p||arguments.length===2)for(var m=0,w=d.length,g;m<w;m++)(g||!(m in d))&&(g||(g=Array.prototype.slice.call(d,0,m)),g[m]=d[m]);return c.concat(g||Array.prototype.slice.call(d))};Object.defineProperty(zi,"__esModule",{value:!0}),zi.RelativesChart=void 0;var r=Xb(),n=Pm(),i=Rm(),a=gu,s=xs(),o=function(){function c(d,p){this.fam=d,this.childId=p}return c.prototype.getId=function(){return this.fam.getId()},c.prototype.getFather=function(){return this.fam.getFather()},c.prototype.getMother=function(){return this.fam.getMother()},c.prototype.getChildren=function(){var d=t([],this.fam.getChildren(),!0),p=d.indexOf(this.childId);return p!==-1&&d.splice(p,1),d},c}(),l=function(){function c(d,p){this.data=d,this.childId=p}return c.prototype.getIndi=function(d){return this.data.getIndi(d)},c.prototype.getFam=function(d){return new o(this.data.getFam(d),this.childId)},c}(),u=function(){function c(d){this.options=e({},d),this.options.idGenerator=this.options.idGenerator||new n.IdGenerator,this.util=new s.ChartUtil(this.options)}return c.prototype.layOutAncestorDescendants=function(d,p){var m=this,w=new Map;return d.eachAfter(function(g){var _,E;if(g.parent){var x=e({},m.options);x.startFam=g.data.family.id,delete x.startIndi;var b=g.id===g.parent.data.spouseParentNodeId?g.parent.data.spouse.id:g.parent.data.indi.id;x.data=new l(x.data,b),x.baseGeneration=(m.options.baseGeneration||0)-g.depth;var C=(0,i.layOutDescendants)(x);g.data.id=C[0].id,((_=g.data.indi)===null||_===void 0?void 0:_.expander)!==void 0&&(C[0].data.indi.expander=g.data.indi.expander),((E=g.data.spouse)===null||E===void 0?void 0:E.expander)!==void 0&&(C[0].data.spouse.expander=g.data.spouse.expander);var v=(0,s.getChartInfoWithoutMargin)(C),k=(g.children||[]).map(function(M){return w.get(M.data.id)}),T=k.map(function(M){return M.height}).reduce(function(M,j){return M+j+s.V_SPACING},0),N={descendantNodes:C,width:v.size[0],height:v.size[1]+T,x:v.origin[0],y:v.origin[1]+T};w.set(g.data.id,N)}}),d.each(function(g){if(g.parent){var _=w.get(g.data.id),E=w.get(g.parent.data.id);_.left=E&&!E.middle?!!E.left:g.parent.data.indiParentNodeId===g.id,_.middle=(!E||!!E.middle)&&g.parent.children.length===1}}),d.each(function(g){var _=w.get(g.data.id),E=_?_.descendantNodes[0]:p;(g.children||[]).forEach(function(x){var b=w.get(x.data.id).descendantNodes[0];b.parent=E}),g.data.indiParentNodeId&&g.children&&(E.data.indiParentNodeId=g.children.find(function(x){return x.id===g.data.indiParentNodeId}).data.id),g.data.spouseParentNodeId&&g.children&&(E.data.spouseParentNodeId=g.children.find(function(x){return x.id===g.data.spouseParentNodeId}).data.id)}),d.each(function(g){var _=w.get(g.data.id),E=_?_.descendantNodes[0]:p,x=g.children&&g.children.find(function(F){return F.id===g.data.indiParentNodeId}),b=g.children&&g.children.find(function(F){return F.id===g.data.spouseParentNodeId}),C=E.x,v=E.y,k=E.data.width,T=E.data.height,N=E.data.indi?E.data.indi.width:0,M=E.data.spouse?E.data.spouse.width:0;if(x){var j=w.get(x.data.id),D=j.descendantNodes[0],$=D.data,X=b?w.get(b.data.id).height+s.V_SPACING:0,W=C+j.x-k/2+N/2+(j.left?-j.width-s.H_SPACING:s.H_SPACING),H=v+j.y-T/2-j.height+(j.left?-s.V_SPACING:-X-s.V_SPACING);j.descendantNodes.forEach(function(F){F.x+=W,F.y+=H});var V=N/2-k/2+$.width/2-($.indi?$.indi.width:$.spouse.width);j.middle?D.x=0:!_||_.middle?D.x=-k/2-$.width/2+N-s.H_SPACING/2:j.left?D.x=C+(0,a.min)([k/2-$.width/2-M/2-s.H_SPACING,V]):D.x=C+(0,a.max)([$.width/2-k/2,V])}if(b){var j=w.get(b.data.id),D=j.descendantNodes[0],$=D.data,K=x?w.get(x.data.id).height+s.V_SPACING:0,Y=C+j.x+k/2-M/2+(j.left?-j.width-s.H_SPACING:s.H_SPACING),q=v+j.y-T/2-j.height+(j.left?-K-s.V_SPACING:-s.V_SPACING);j.descendantNodes.forEach(function(se){se.x+=Y,se.y+=q});var V=k/2-M/2+$.width/2-($.indi?$.indi.width:$.spouse.width);j.middle?D.x=0:!_||_.middle?D.x=k/2+$.width/2-M+s.H_SPACING/2:j.left?D.x=C+(0,a.min)([k/2-$.width/2,V]):D.x=C+(0,a.max)([$.width/2-k/2+N/2+s.H_SPACING,V])}}),Array.from(w.values()).map(function(g){return g.descendantNodes}).reduce(function(g,_){return g.concat(_)},[])},c.prototype.render=function(){var d,p,m,w,g=(0,i.layOutDescendants)(this.options),_=Object.assign({},this.options,{idGenerator:void 0}),E=(0,r.getAncestorsTree)(_);((d=E.data.indi)===null||d===void 0?void 0:d.expander)!==void 0&&(g[0].data.indi.expander=(p=E.data.indi)===null||p===void 0?void 0:p.expander),((m=E.data.spouse)===null||m===void 0?void 0:m.expander)!==void 0&&(g[0].data.spouse.expander=(w=E.data.spouse)===null||w===void 0?void 0:w.expander);var x=this.layOutAncestorDescendants(E,g[0]),b=g.concat(x),C=this.util.renderChart(b),v=(0,s.getChartInfo)(b);return this.util.updateSvgDimensions(v),Object.assign(v,{animationPromise:C})},c}();return zi.RelativesChart=u,zi}var Dh={},cT;function iZ(){if(cT)return Dh;cT=1,Object.defineProperty(Dh,"__esModule",{value:!0}),Dh.createChart=s;var e=Am,t=Jf(),r=OD(),n="svg";function i(o,l,u){var c=new r.JsonDataProvider(o.json),d=o.indiUrl?function(E){return o.indiUrl.replace("${id}",E)}:void 0,p=o.famUrl?function(E){return o.famUrl.replace("${id}",E)}:void 0;!l.startIndi&&!l.startFam&&(l.startIndi=o.json.indis[0].id);var m=!u.initialRender&&o.animate,w={data:c};d&&(w.indiHrefFunc=d),p&&(w.famHrefFunc=p),o.indiCallback&&(w.indiCallback=o.indiCallback),o.famCallback&&(w.famCallback=o.famCallback),o.horizontal!==void 0&&(w.horizontal=o.horizontal),o.colors!==void 0&&(w.colors=o.colors),m!==void 0&&(w.animate=m),o.locale&&(w.locale=o.locale);var g=new o.renderer(w),_={data:c,renderer:g,svgSelector:o.svgSelector||n};return l.startIndi&&(_.startIndi=l.startIndi),l.startFam&&(_.startFam=l.startFam),o.horizontal!==void 0&&(_.horizontal=o.horizontal),l.baseGeneration!==void 0&&(_.baseGeneration=l.baseGeneration),m!==void 0&&(_.animate=m),o.expanders!==void 0&&(_.expanders=o.expanders),_}var a=function(){function o(l){this.options=l,this.initialRender=!0,this.collapsedIndi=new Set,this.collapsedSpouse=new Set,this.collapsedFamily=new Set}return o.prototype.render=function(l){var u=this;l===void 0&&(l={}),this.chartOptions=i(this.options,l,{initialRender:this.initialRender}),this.chartOptions.collapsedFamily=this.collapsedFamily,this.chartOptions.collapsedIndi=this.collapsedIndi,this.chartOptions.collapsedSpouse=this.collapsedSpouse,this.chartOptions.expanderCallback=function(p,m){return u.expanderCallback(p,m,l)},this.initialRender=!1;var c=new this.options.chartType(this.chartOptions),d=c.render();return this.options.updateSvgSize!==!1&&(0,e.select)(this.chartOptions.svgSelector).attr("width",d.size[0]).attr("height",d.size[1]),d},o.prototype.expanderCallback=function(l,u,c){var d=u===t.ExpanderDirection.FAMILY?this.collapsedFamily:u===t.ExpanderDirection.INDI?this.collapsedIndi:this.collapsedSpouse;d.has(l)?d.delete(l):d.add(l),this.render(c)},o.prototype.setData=function(l){this.options.json=l},o}();function s(o){return new a(o)}return Dh}var $o={},fT;function aZ(){if(fT)return $o;fT=1;var e=$o&&$o.__extends||function(){var u=function(c,d){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(p[w]=m[w])},u(c,d)};return function(c,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");u(c,d);function p(){this.constructor=c}c.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}();Object.defineProperty($o,"__esModule",{value:!0}),$o.SimpleRenderer=void 0;var t=Am,r=Tm(),n=27,i=50;function a(u){var c=(0,t.select)("svg").append("g").attr("class","simple node"),d=c.append("text").attr("class","name").text(u),p=d.node().getComputedTextLength();return c.remove(),p}function s(u){return[u.getFirstName()||"",u.getLastName()||""].join(" ")}function o(u){var c=u.getBirthDate(),d=c&&c.date&&c.date.year,p=u.getDeathDate(),m=p&&p.date&&p.date.year;return!d&&!m?"":"".concat(d||""," ").concat(m||"")}var l=function(u){e(c,u);function c(d){var p=u.call(this,d)||this;return p.options=d,p}return c.prototype.getPreferredIndiSize=function(d){var p=this.options.data.getIndi(d),m=o(p),w=Math.max(a(s(p))+8,a(m),i),g=m?n+14:n;return[w,g]},c.prototype.render=function(d,p){var m=this,w=d.merge(p).append("g").attr("class","simple");this.renderIndi(w,function(_){return _.indi});var g=w.filter(function(_){return!!_.data.spouse}).append("g").attr("transform",function(_){return m.options.horizontal?"translate(0, ".concat(_.data.indi.height,")"):"translate(".concat(_.data.indi.width,", 0)")});this.renderIndi(g,function(_){return _.spouse})},c.prototype.getCss=function(){return`
.simple text {
font-family: Montserrat, verdana, arial, sans-serif;
font-size: 12px;
}
.simple .name {
font-weight: bold;
}
.simple rect {
fill: #fff;
stroke: black;
}
.link {
fill: none;
stroke: #000;
stroke-width: 1px;
}
.additional-marriage {
stroke-dasharray: 2;
}`},c.prototype.renderIndi=function(d,p){var m=this,w=this.options.indiHrefFunc?d.append("a").attr("href",function(g){return m.options.indiHrefFunc(p(g.data).id)}):d;w.append("rect").attr("width",function(g){return p(g.data).width}).attr("height",function(g){return p(g.data).height}),w.append("text").attr("text-anchor","middle").attr("class","name").attr("transform",function(g){return"translate(".concat(p(g.data).width/2,", 17)")}).text(function(g){return s(m.options.data.getIndi(p(g.data).id))}),w.append("text").attr("text-anchor","middle").attr("class","details").attr("transform",function(g){return"translate(".concat(p(g.data).width/2,", 33)")}).text(function(g){return o(m.options.data.getIndi(p(g.data).id))})},c}(r.CompositeRenderer);return $o.SimpleRenderer=l,$o}var dT;function LD(){return dT||(dT=1,function(e){var t=Bo&&Bo.__createBinding||(Object.create?function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}:function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]}),r=Bo&&Bo.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(Xb(),e),r(Jf(),e),r(xs(),e),r(GJ(),e),r(Tm(),e),r(OD(),e),r(ND(),e),r(WJ(),e),r(Rm(),e),r(VJ(),e),r(XJ(),e),r(JJ(),e),r(nZ(),e),r(rZ(),e),r(iZ(),e),r(aZ(),e)}(Bo)),Bo}var hn=LD();const oZ=new Map([["abt","about"],["cal","calculated"],["est","estimated"]]);function m1(e,t){const r=e.day!==void 0,n=e.month!==void 0,i=e.year!==void 0;if(!r&&!n&&!i)return e.text||"";const a=y1(e),s=jD(e.qualifier,t),o={day:r?"numeric":void 0,month:n?"long":void 0,year:i?"numeric":void 0},l=new Intl.DateTimeFormat(t.locale,o).format(a);return[s,l].filter(u=>u).join(" ")}function sZ(e,t){const r=e.from,n=e.to,i=r&&m1(r,t),a=n&&m1(n,t);return i&&a?t.formatMessage({id:"date.between",defaultMessage:"between {from} and {to}"},{from:i,to:a}):i?t.formatMessage({id:"date.after",defaultMessage:"after {from}"},{from:i}):a?t.formatMessage({id:"date.before",defaultMessage:"before {to}"},{to:a}):""}function jD(e,t){const r=e&&e.toLowerCase();return r&&t.formatMessage({id:`date.${r}`,defaultMessage:oZ.get(r)||r})||""}function eu(e,t){return e?e.date?m1(e.date,t):e.dateRange?sZ(e.dateRange,t):"":""}function Xp(e,t){return!e||!e.year||!t||!t.year?0:e.year!==t.year?e.year-t.year:!e.month||!t.month?0:e.month!==t.month?e.month-t.month:e.day&&t.day&&e.day!==t.day?e.day-t.day:0}function ed(e,t){const r=e&&(e.date||e.dateRange&&(e.dateRange.from||e.dateRange.to)),n=t&&(t.date||t.dateRange&&(t.dateRange.from||t.dateRange.to));return Xp(r,n)}function lZ(e,t){return Xp(e.from,t.to)<=0&&Xp(e.to,t.from)>=0}function g1(e){var t,r,n,i;return v1(e==null?void 0:e.dateRange)?Xp((t=e==null?void 0:e.dateRange)==null?void 0:t.from,(r=e==null?void 0:e.dateRange)==null?void 0:r.to)<=0:!!(e!=null&&e.date||(n=e==null?void 0:e.dateRange)!=null&&n.from||(i=e==null?void 0:e.dateRange)!=null&&i.to)}function v1(e){return!!(e!=null&&e.from&&(e!=null&&e.to))}function y1(e){return new Date(e.year??0,(e.month??1)-1,e.day??1)}var uZ=MD();class vu extends Error{constructor(t,r,n={}){super(r),this.code=t,this.args=n}}function Wn(e){return e.substring(1,e.length-1)}function Om(e){const t=new Map;return e.indis.forEach(r=>{t.set(r.id,r)}),t}function Jb(e){const t=new Map;return e.fams.forEach(r=>{t.set(r.id,r)}),t}function cZ(e){const t=e.find(a=>a.tag==="HEAD"),r={},n={},i={};return e.forEach(a=>{a.tag==="INDI"?r[Wn(a.pointer)]=a:a.tag==="FAM"?n[Wn(a.pointer)]=a:a.pointer&&(i[Wn(a.pointer)]=a)}),{head:t,indis:r,fams:n,other:i}}function BD(e,t){return e<t?-1:e>t?1:0}function fZ(e){const t=Om(e);return(r,n)=>{const i=t.get(r),a=t.get(n);return ed(i&&i.birth,a&&a.birth)||BD(r,n)}}function dZ(e){const t=Jb(e);return(r,n)=>{const i=t.get(r),a=t.get(n);return ed(i&&i.marriage,a&&a.marriage)||BD(r,n)}}function hZ(e,t){if(!e.children)return e;const r=e.children.sort(t);return Object.assign({},e,{children:r})}function pZ(e){const t=fZ(e),r=e.fams.map(n=>hZ(n,t));return Object.assign({},e,{fams:r})}function mZ(e,t){if(!e.fams)return e;const r=e.fams.sort(t);return Object.assign({},e,{fams:r})}function gZ(e){const t=dZ(e),r=e.indis.map(n=>mZ(n,t));return Object.assign({},e,{indis:r})}function Jr(e,t,r){if(e.data){const n=r(t)[Wn(e.data)];if(n)return n}return e}function hs(e){const t=[e.data];return e.tree.forEach(r=>{if(r.tag==="CONC"&&r.data){const n=t.length-1;t[n]+=r.data}else r.tag==="CONT"&&r.data&&t.push(r.data)}),t}function zD(e){return gZ(pZ(e))}const vZ=[".jpg",".jpeg",".png",".gif",".webp"];function Nm(e){const r=e.split(/[?#]/)[0].toLowerCase();return vZ.some(n=>r.endsWith(n))}function Zb(e){return/^(https?:|blob:|data:|\/\/)/i.test(e)}function td(e,t){if(Zb(e))return e;const r=e.replace(/\\/g,"/");if(t instanceof Map){const n=r.toLowerCase(),i=t.get(n);if(i)return i}return r}function yZ(e,t){if(!e.images||e.images.length===0)return e;const r=[];return e.images.forEach(n=>{const i=td(n.url,t),a=n.url.replace(/\\/g,"/");(i!==a||Zb(i)&&Nm(i))&&r.push({url:i,title:n.title})}),Object.assign({},e,{images:r})}function wZ(e,t){const r=e.indis.map(n=>yZ(n,t));return Object.assign({},e,{indis:r})}function _Z(e,t){const r=uZ.parse(e),n=hn.gedcomEntriesToJson(r);if(!n||!n.indis||!n.indis.length||!n.fams||!n.fams.length)throw new vu("GEDCOM_READ_FAILED","Failed to read GEDCOM file");return{chartData:wZ(zD(n),t),gedcom:cZ(r),images:t}}function ex(e){const t=e&&e.tree&&e.tree.find(n=>n.tag==="SOUR"),r=t&&t.tree&&t.tree.find(n=>n.tag==="NAME");return r&&r.data||null}function bZ(e){const t=e.tree.filter(i=>i.tag==="NAME"),n=t.find(i=>i.tree.filter(a=>a.tag==="TYPE"&&a.data==="married").length===0)||t[0];return n==null?void 0:n.data.replace(/\//g,"")}function Mm(e){var n,i;const t=(n=e==null?void 0:e.tree.find(a=>a.tag==="TITL"))==null?void 0:n.data,r=(i=e==null?void 0:e.tree.find(a=>a.tag==="FORM"))==null?void 0:i.data;if(t&&r)return t+"."+r;if(e&&e.data)return e.data.replace(/\\/g,"/").split(/[?#]/)[0].split("/").pop()}function UD(e,t){return e.tree.find(r=>r.tag==="FILE"&&r.data&&t(r))}function $D(e){return UD(e,t=>!Nm(t.data))}function HD(e){return UD(e,t=>Nm(t.data))}function tu(e){return e.tree.find(t=>t.tag==="DATE")}function qD(e){var t;return(t=e.tree.find(r=>r.tag==="TYPE"))==null?void 0:t.data}function GD(e,t){const r=Jr(e,t,c=>c.other),n=r.tree.find(c=>c.tag==="TITL"),i=r.tree.find(c=>c.tag==="ABBR"),a=r.tree.find(c=>c.tag==="AUTH"),s=r.tree.find(c=>c.tag==="PUBL"),o=e.tree.find(c=>c.tag==="PAGE"),l=e.tree.find(c=>c.tag==="DATA"),u=l?tu(l):void 0;return{title:(n==null?void 0:n.data)||(i==null?void 0:i.data),author:a==null?void 0:a.data,page:o==null?void 0:o.data,date:u?hn.getDate(u.data):void 0,publicationInfo:s==null?void 0:s.data}}function xZ(e,t,r,n){const i=o=>{const l=r.get(o);if(!l)return[];const u=[];if(l.famc){const c=n.get(l.famc);c&&(c.wife&&u.push(c.wife),c.husb&&u.push(c.husb),c.children&&c.children.forEach(d=>{d!==o&&u.push(d)}))}return l.fams&&l.fams.forEach(c=>{const d=n.get(c);d&&(d.wife&&d.wife!==o&&u.push(d.wife),d.husb&&d.husb!==o&&u.push(d.husb),d.children&&d.children.forEach(p=>u.push(p)))}),u.filter(c=>!c.startsWith("private_"))},a=[e],s=new Map;for(s.set(e,null);a.length>0;){const o=a.shift();if(o===t){const u=[];let c=o;for(;c!==null;)u.push(c),c=s.get(c)||null;return u.reverse()}const l=i(o);for(const u of l)s.has(u)||(s.set(u,o),a.push(u))}return[]}function EZ(e,t,r,n){const i=[],a=[{id:e,gen:0}],s=new Set;for(s.add(e);a.length>0;){const{id:o,gen:l}=a.shift();if(o!==e&&!o.startsWith("private_")&&i.push(o),l<t){const u=r.get(o);if(u&&u.famc){const c=n.get(u.famc);c&&(c.wife&&!s.has(c.wife)&&(s.add(c.wife),a.push({id:c.wife,gen:l+1})),c.husb&&!s.has(c.husb)&&(s.add(c.husb),a.push({id:c.husb,gen:l+1})))}}}return i}function SZ(e,t,r,n){const i=[],a=[{id:e,gen:0}],s=new Set;for(s.add(e);a.length>0;){const{id:o,gen:l}=a.shift();if(o!==e&&!o.startsWith("private_")&&i.push(o),l<t){const u=r.get(o);u&&u.fams&&u.fams.forEach(c=>{const d=n.get(c);d&&d.children&&d.children.forEach(p=>{s.has(p)||(s.add(p),a.push({id:p,gen:l+1}))})})}}return i}function CZ(e){var C,v,k,T,N,M,j,D,$;const t=e.head;if(!t||!t.tree)return null;const r=t.tree.find(X=>X.tag==="SOUR"),n=r&&r.tree&&((C=r.tree.find(X=>X.tag==="NAME"))==null?void 0:C.data),i=t.tree.find(X=>X.tag==="DATE"),a=fr(),s=i?eu(hn.getDate(i.data),a):null,o=(v=t.tree.find(X=>X.tag==="FILE"))==null?void 0:v.data,l=o&&(o.split("\\").pop()||o.split("/").pop()),u=(k=t.tree.find(X=>X.tag==="COPR"))==null?void 0:k.data,c=t.tree.find(X=>X.tag==="SUBM"),d=c&&Jr(c,e,X=>X.other),p=d&&d.tree&&((T=d.tree.find(X=>X.tag==="NAME"))==null?void 0:T.data),m=d&&d.tree&&((N=d.tree.find(X=>X.tag==="PHON"))==null?void 0:N.data),w=d&&d.tree&&((M=d.tree.find(X=>X.tag==="EMAIL"))==null?void 0:M.data),g=d&&d.tree&&d.tree.find(X=>X.tag==="ADDR"),_=g&&g.tree&&((j=g.tree.find(X=>X.tag==="ADR1"))==null?void 0:j.data),E=g&&g.tree&&((D=g.tree.find(X=>X.tag==="CITY"))==null?void 0:D.data),x=g&&g.tree&&(($=g.tree.find(X=>X.tag==="POST"))==null?void 0:$.data),b=[_,x,E].filter(Boolean).join(", ");return n||s||l||u||p||m||w||b?O.jsxs(O.Fragment,{children:[O.jsx($t,{sub:!0,children:O.jsx(Re,{id:"head.source",defaultMessage:"Data source"})}),O.jsxs(Ke,{children:[n&&O.jsxs(Ke.Item,{children:[O.jsx(Ke.Icon,{name:"edit"}),O.jsx(Ke.Content,{children:n})]}),i&&O.jsxs(Ke.Item,{children:[O.jsx(Ke.Icon,{name:"calendar"}),O.jsx(Ke.Content,{children:s})]}),o&&O.jsxs(Ke.Item,{children:[O.jsx(Ke.Icon,{name:"file"}),O.jsx(Ke.Content,{children:l})]}),p&&O.jsxs(Ke.Item,{children:[O.jsx(Ke.Icon,{name:"user"}),O.jsx(Ke.Content,{children:p})]}),_&&O.jsxs(Ke.Item,{children:[O.jsx(Ke.Icon,{name:"marker"}),O.jsx(Ke.Content,{children:b})]}),m&&O.jsxs(Ke.Item,{children:[O.jsx(Ke.Icon,{name:"phone"}),O.jsx(Ke.Content,{children:m})]}),w&&O.jsxs(Ke.Item,{children:[O.jsx(Ke.Icon,{name:"mail"}),O.jsx(Ke.Content,{children:w})]}),u&&O.jsxs(Ke.Item,{children:[O.jsx(Ke.Icon,{name:"copyright"}),O.jsx(Ke.Content,{children:u})]})]}),O.jsx(df,{})]}):null}var wp=(e=>(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))(wp||{}),tx=(e=>(e[e.HIDE=0]="HIDE",e[e.SHOW=1]="SHOW",e))(tx||{}),WD=(e=>(e[e.HIDE=0]="HIDE",e[e.SHOW=1]="SHOW",e))(WD||{});const _p={color:2,id:1,sex:1},VD=new Map([["n",0],["g",2],["s",1]]),QD=new Map;VD.forEach((e,t)=>QD.set(e,t));const KD=new Map([["h",0],["s",1]]),YD=new Map;KD.forEach((e,t)=>YD.set(e,t));const XD=new Map([["h",0],["s",1]]),JD=new Map;XD.forEach((e,t)=>JD.set(e,t));function kZ(e){const t=r=>{const n=e[r];return typeof n=="string"?n:void 0};return{color:VD.get(t("c")??"")??_p.color,id:KD.get(t("i")??"")??_p.id,sex:XD.get(t("s")??"")??_p.sex}}function AZ(e){const t={},r=QD.get(e.color);r&&(t.c=r);const n=YD.get(e.id);n&&(t.i=n);const i=JD.get(e.sex);return i&&(t.s=i),t}function TZ(e){return O.jsxs(O.Fragment,{children:[CZ(e.gedcom),O.jsx(Gt,{className:"details",children:O.jsxs(lt.Group,{children:[O.jsx(lt,{children:O.jsxs(lt.Content,{children:[O.jsx($t,{sub:!0,children:O.jsx(Re,{id:"config.colors",defaultMessage:"Colors"})}),O.jsx(Gt.Field,{className:"no-margin",children:O.jsx(qn,{radio:!0,label:O.jsx(Re,{tagName:"label",id:"config.colors.NO_COLOR",defaultMessage:"none"}),name:"checkboxRadioGroup",value:"none",checked:e.config.color===0,onClick:()=>e.onChange({...e.config,color:0})})}),O.jsx(Gt.Field,{className:"no-margin",children:O.jsx(qn,{radio:!0,label:O.jsx(Re,{tagName:"label",id:"config.colors.COLOR_BY_GENERATION",defaultMessage:"by generation"}),name:"checkboxRadioGroup",value:"generation",checked:e.config.color===2,onClick:()=>e.onChange({...e.config,color:2})})}),O.jsx(Gt.Field,{className:"no-margin",children:O.jsx(qn,{radio:!0,label:O.jsx(Re,{tagName:"label",id:"config.colors.COLOR_BY_SEX",defaultMessage:"by sex"}),name:"checkboxRadioGroup",value:"gender",checked:e.config.color===1,onClick:()=>e.onChange({...e.config,color:1})})})]})}),O.jsx(lt,{children:O.jsxs(lt.Content,{children:[O.jsx($t,{sub:!0,children:O.jsx(Re,{id:"config.ids",defaultMessage:"IDs"})}),O.jsx(Gt.Field,{className:"no-margin",children:O.jsx(qn,{radio:!0,label:O.jsx(Re,{tagName:"label",id:"config.ids.HIDE",defaultMessage:"hide"}),name:"checkboxRadioGroup",value:"hide",checked:e.config.id===0,onClick:()=>e.onChange({...e.config,id:0})})}),O.jsx(Gt.Field,{className:"no-margin",children:O.jsx(qn,{radio:!0,label:O.jsx(Re,{tagName:"label",id:"config.ids.SHOW",defaultMessage:"show"}),name:"checkboxRadioGroup",value:"show",checked:e.config.id===1,onClick:()=>e.onChange({...e.config,id:1})})})]})}),O.jsx(lt,{children:O.jsxs(lt.Content,{children:[O.jsx($t,{sub:!0,children:O.jsx(Re,{id:"config.sex",defaultMessage:"Sex"})}),O.jsx(Gt.Field,{className:"no-margin",children:O.jsx(qn,{radio:!0,label:O.jsx(Re,{tagName:"label",id:"config.sex.HIDE",defaultMessage:"hide"}),name:"checkboxRadioGroup",value:"hide",checked:e.config.sex===0,onClick:()=>e.onChange({...e.config,sex:0})})}),O.jsx(Gt.Field,{className:"no-margin",children:O.jsx(qn,{radio:!0,label:O.jsx(Re,{tagName:"label",id:"config.sex.SHOW",defaultMessage:"show"}),name:"checkboxRadioGroup",value:"show",checked:e.config.sex===1,onClick:()=>e.onChange({...e.config,sex:1})})})]})})]})})]})}var gy={},Fh={},Lh={},hT;function IZ(){if(hT)return Lh;hT=1;function e(g){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(E){return typeof E}:e=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},e(g)}Object.defineProperty(Lh,"__esModule",{value:!0}),Lh.createResponsiveComponents=w;var t=r(ho());function r(g){return g&&g.__esModule?g:{default:g}}function n(g){for(var _=1;_<arguments.length;_++){var E=arguments[_]!=null?Object(arguments[_]):{},x=Object.keys(E);typeof Object.getOwnPropertySymbols=="function"&&x.push.apply(x,Object.getOwnPropertySymbols(E).filter(function(b){return Object.getOwnPropertyDescriptor(E,b).enumerable})),x.forEach(function(b){p(g,b,E[b])})}return g}function i(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")}function a(g,_){for(var E=0;E<_.length;E++){var x=_[E];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}function s(g,_,E){return _&&a(g.prototype,_),g}function o(g,_){if(_&&(e(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(g)}function l(g){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},l(g)}function u(g,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(_&&_.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),_&&c(g,_)}function c(g,_){return c=Object.setPrototypeOf||function(x,b){return x.__proto__=b,x},c(g,_)}function d(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function p(g,_,E){return _ in g?Object.defineProperty(g,_,{value:E,enumerable:!0,configurable:!0,writable:!0}):g[_]=E,g}var m=function(_,E){for(var x in _)if(_[x]!==E[x])return!1;return!0};function w(){var g=t.default.createContext({});g.displayName="Media.DynamicContext";var _=g.Consumer;return{Consumer:_,Provider:function(E){u(x,E);function x(b){var C;i(this,x),C=o(this,l(x).call(this,b)),p(d(d(C)),"isSupportedEnvironment",function(){return typeof window<"u"&&typeof window.matchMedia<"u"}),p(d(d(C)),"setupMatchers",function(T){return Object.keys(T).reduce(function(N,M){return n({},N,p({},M,window.matchMedia(T[M])))},{})}),p(d(d(C)),"checkMatchers",function(T){return Object.keys(T).reduce(function(N,M){return n({},N,p({},M,T[M].matches))},{})}),p(d(d(C)),"mediaQueryStatusChangedCallback",function(){var T=C.checkMatchers(C.state.mediaQueryMatchers);C.setState({mediaQueryMatches:T})});var v=void 0,k;return C.isSupportedEnvironment()?(v=C.setupMatchers(b.mediaQueries),k=C.checkMatchers(v)):k=Object.keys(b.mediaQueries).reduce(function(T,N){return n({},T,p({},N,!!b.initialMatchingMediaQueries&&b.initialMatchingMediaQueries.includes(N)))},{}),C.state={mediaQueryMatchers:v,mediaQueryMatches:k},C}return s(x,[{key:"componentDidMount",value:function(){if(this.state.mediaQueryMatchers){var C=this.mediaQueryStatusChangedCallback;Object.values(this.state.mediaQueryMatchers).forEach(function(v){v.addListener(C)})}}},{key:"componentWillUnmount",value:function(){if(this.state.mediaQueryMatchers){var C=this.mediaQueryStatusChangedCallback;Object.values(this.state.mediaQueryMatchers).forEach(function(v){return v.removeListener(C)})}}},{key:"shouldComponentUpdate",value:function(C,v){return this.state.mediaQueryMatchers?C.children!==this.props.children?!0:!m(this.state.mediaQueryMatches,v.mediaQueryMatches):!1}},{key:"render",value:function(){return t.default.createElement(g.Provider,{value:this.state.mediaQueryMatches},this.props.children)}}]),x}(t.default.Component)}}return Lh}var Ec={},Ba={},Ui={},pT;function Dm(){if(pT)return Ui;pT=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.propKey=l,Ui.intersection=u,Ui.createRuleSet=c,Ui.createClassName=d,Ui.castBreakpointsToIntegers=p,Ui.memoize=m;function e(w){for(var g=1;g<arguments.length;g++){var _=arguments[g]!=null?Object(arguments[g]):{},E=Object.keys(_);typeof Object.getOwnPropertySymbols=="function"&&E.push.apply(E,Object.getOwnPropertySymbols(_).filter(function(x){return Object.getOwnPropertyDescriptor(_,x).enumerable})),E.forEach(function(x){t(w,x,_[x])})}return w}function t(w,g,_){return g in w?Object.defineProperty(w,g,{value:_,enumerable:!0,configurable:!0,writable:!0}):w[g]=_,w}function r(w){return s(w)||a(w)||i(w)||n()}function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(w,g){if(w){if(typeof w=="string")return o(w,g);var _=Object.prototype.toString.call(w).slice(8,-1);if(_==="Object"&&w.constructor&&(_=w.constructor.name),_==="Map"||_==="Set")return Array.from(w);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return o(w,g)}}function a(w){if(typeof Symbol<"u"&&w[Symbol.iterator]!=null||w["@@iterator"]!=null)return Array.from(w)}function s(w){if(Array.isArray(w))return o(w)}function o(w,g){(g==null||g>w.length)&&(g=w.length);for(var _=0,E=new Array(g);_<g;_++)E[_]=w[_];return E}function l(w){return Object.keys(w)[0]}function u(w,g){return g?w.filter(function(_){return g.indexOf(_)>=0}):r(w)}function c(w,g){return"@media ".concat(g,"{.").concat(w,"{display:none!important;}}")}function d(){for(var w=arguments.length,g=new Array(w),_=0;_<w;_++)g[_]=arguments[_];return["fresnel"].concat(r(g.reduce(function(E,x){return Array.isArray(x)?r(E).concat(r(x)):r(E).concat([x])},[]))).join("-")}function p(w){var g=Object.keys(w);return g.reduce(function(_,E,x){return e({},_,t({},g[x],Math.round(Number(w[E]))))},{})}function m(w){var g={};return function(){for(var _=arguments.length,E=new Array(_),x=0;x<_;x++)E[x]=arguments[x];var b=JSON.stringify(E);return g[b]||(g[b]=w.apply(void 0,E)),g[b]}}return Ui}var mT;function ZD(){if(mT)return Ba;mT=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.Breakpoints=Ba.BreakpointConstraint=void 0;var e=Dm();function t(b){for(var C=1;C<arguments.length;C++){var v=arguments[C]!=null?Object(arguments[C]):{},k=Object.keys(v);typeof Object.getOwnPropertySymbols=="function"&&k.push.apply(k,Object.getOwnPropertySymbols(v).filter(function(T){return Object.getOwnPropertyDescriptor(v,T).enumerable})),k.forEach(function(T){g(b,T,v[T])})}return b}function r(b){return a(b)||i(b)||l(b)||n()}function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(b){if(typeof Symbol<"u"&&b[Symbol.iterator]!=null||b["@@iterator"]!=null)return Array.from(b)}function a(b){if(Array.isArray(b))return u(b)}function s(b,C){return d(b)||c(b,C)||l(b,C)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l(b,C){if(b){if(typeof b=="string")return u(b,C);var v=Object.prototype.toString.call(b).slice(8,-1);if(v==="Object"&&b.constructor&&(v=b.constructor.name),v==="Map"||v==="Set")return Array.from(b);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return u(b,C)}}function u(b,C){(C==null||C>b.length)&&(C=b.length);for(var v=0,k=new Array(C);v<C;v++)k[v]=b[v];return k}function c(b,C){var v=b==null?null:typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(v!=null){var k=[],T=!0,N=!1,M,j;try{for(v=v.call(b);!(T=(M=v.next()).done)&&(k.push(M.value),!(C&&k.length===C));T=!0);}catch(D){N=!0,j=D}finally{try{!T&&v.return!=null&&v.return()}finally{if(N)throw j}}return k}}function d(b){if(Array.isArray(b))return b}function p(b,C){if(!(b instanceof C))throw new TypeError("Cannot call a class as a function")}function m(b,C){for(var v=0;v<C.length;v++){var k=C[v];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(b,k.key,k)}}function w(b,C,v){return C&&m(b.prototype,C),v&&m(b,v),b}function g(b,C,v){return C in b?Object.defineProperty(b,C,{value:v,enumerable:!0,configurable:!0,writable:!0}):b[C]=v,b}function _(b){return Array.isArray(b)?b.join("-"):b}var E;Ba.BreakpointConstraint=E,function(b){b.at="at",b.lessThan="lessThan",b.greaterThan="greaterThan",b.greaterThanOrEqual="greaterThanOrEqual",b.between="between"}(E||(Ba.BreakpointConstraint=E={}));var x=function(){w(b,null,[{key:"validKeys",value:function(){return[E.at,E.lessThan,E.greaterThan,E.greaterThanOrEqual,E.between]}}]);function b(C){var v=this,k;p(this,b),g(this,"_sortedBreakpoints",void 0),g(this,"_breakpoints",void 0),g(this,"_mediaQueries",void 0),g(this,"findBreakpointsForWidths",function(N,M){var j=v.findBreakpointAtWidth(N);if(j){var D=v.findBreakpointAtWidth(M);return!D||j===D?[j]:v._sortedBreakpoints.slice(v._sortedBreakpoints.indexOf(j),v._sortedBreakpoints.indexOf(D)+1)}}),g(this,"findBreakpointAtWidth",function(N){return v._sortedBreakpoints.find(function(M,j){var D=v._sortedBreakpoints[j+1];return D?N>=v._breakpoints[M]&&N<v._breakpoints[D]:N>=v._breakpoints[M]})}),g(this,"valuesWithBreakpointProps",function(N){var M=N.length,j=[],D;return v._sortedBreakpoints.forEach(function($,X){var W=N[X];X<M&&(!D||D[0]!==W)?(D=[W,[$]],j.push(D)):D[1].push($)}),j.map(function($,X){var W=s($,2),H=W[0],V=W[1],K={};return X===j.length-1?K.greaterThanOrEqual=V[0]:V.length===1?K.at=V[0]:K.between=[V[0],j[X+1][1][0]],[H,K]})}),this._breakpoints=C,this._sortedBreakpoints=Object.keys(C).map(function(N){return[N,C[N]]}).sort(function(N,M){return N[1]<M[1]?-1:1}).map(function(N){return N[0]});var T=this._sortedBreakpoints.slice(0,-1).reduce(function(N,M,j){return r(N).concat(r(v._sortedBreakpoints.slice(j+1).map(function(D){return[M,D]})))},[]);this._mediaQueries=(k={},g(k,E.at,this._createBreakpointQueries(E.at,this._sortedBreakpoints)),g(k,E.lessThan,this._createBreakpointQueries(E.lessThan,this._sortedBreakpoints.slice(1))),g(k,E.greaterThan,this._createBreakpointQueries(E.greaterThan,this._sortedBreakpoints.slice(0,-1))),g(k,E.greaterThanOrEqual,this._createBreakpointQueries(E.greaterThanOrEqual,this._sortedBreakpoints)),g(k,E.between,this._createBreakpointQueries(E.between,T)),k)}return w(b,[{key:"toVisibleAtBreakpointSet",value:function(v){if(v=this._normalizeProps(v),v.lessThan){var k=this.sortedBreakpoints.findIndex(function($){return $===v.lessThan});return this.sortedBreakpoints.slice(0,k)}else if(v.greaterThan){var T=this.sortedBreakpoints.findIndex(function($){return $===v.greaterThan});return this.sortedBreakpoints.slice(T+1)}else if(v.greaterThanOrEqual){var N=this.sortedBreakpoints.findIndex(function($){return $===v.greaterThanOrEqual});return this.sortedBreakpoints.slice(N)}else if(v.between){var M=v.between,j=this.sortedBreakpoints.findIndex(function($){return $===M[0]}),D=this.sortedBreakpoints.findIndex(function($){return $===M[1]});return this.sortedBreakpoints.slice(j,D)}return[]}},{key:"toRuleSets",value:function(){var v=this,k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b.validKeys(),T=k.reduce(function(N,M){return N[M]=v._mediaQueries[M],N},{});return Object.entries(T).reduce(function(N,M){var j=s(M,2),D=j[0],$=j[1];return $.forEach(function(X,W){N.push((0,e.createRuleSet)((0,e.createClassName)(D,W),"not all and ".concat(X)))}),N},[])}},{key:"shouldRenderMediaQuery",value:function(v,k){var T=this;if(v=this._normalizeProps(v),v.lessThan){var N=this._breakpoints[v.lessThan],M=Math.min.apply(Math,r(k.map(function(K){return T._breakpoints[K]})));return M<N}else if(v.greaterThan){var j=this._breakpoints[this._findNextBreakpoint(v.greaterThan)],D=Math.max.apply(Math,r(k.map(function(K){return T._breakpoints[K]})));return D>=j}else if(v.greaterThanOrEqual){var $=this._breakpoints[v.greaterThanOrEqual],X=Math.max.apply(Math,r(k.map(function(K){return T._breakpoints[K]})));return X>=$}else if(v.between){var W=this._breakpoints[v.between[0]],H=this._breakpoints[v.between[1]],V=k.map(function(K){return T._breakpoints[K]});return!(Math.max.apply(Math,r(V))<W||Math.min.apply(Math,r(V))>=H)}return!1}},{key:"_normalizeProps",value:function(v){if(v.at){var k=this._sortedBreakpoints.indexOf(v.at),T=this._sortedBreakpoints[k+1];return T?{between:[v.at,T]}:{greaterThanOrEqual:v.at}}return v}},{key:"_createBreakpointQuery",value:function(v){if(v=this._normalizeProps(v),v.lessThan){var k=this._breakpoints[v.lessThan];return"(max-width:".concat(k-.02,"px)")}else if(v.greaterThan){var T=this._breakpoints[this._findNextBreakpoint(v.greaterThan)];return"(min-width:".concat(T,"px)")}else if(v.greaterThanOrEqual){var N=this._breakpoints[v.greaterThanOrEqual];return"(min-width:".concat(N,"px)")}else if(v.between){var M=this._breakpoints[v.between[0]],j=this._breakpoints[v.between[1]];return"(min-width:".concat(M,"px) and (max-width:").concat(j-.02,"px)")}throw new Error("Unexpected breakpoint props: ".concat(JSON.stringify(v)))}},{key:"_createBreakpointQueries",value:function(v,k){var T=this;return k.reduce(function(N,M){return N.set(_(M),T._createBreakpointQuery(g({},v,M))),N},new Map)}},{key:"_findNextBreakpoint",value:function(v){var k=this._sortedBreakpoints[this._sortedBreakpoints.indexOf(v)+1];if(!k)throw new Error("There is no breakpoint larger than ".concat(v));return k}},{key:"sortedBreakpoints",get:function(){return this._sortedBreakpoints}},{key:"dynamicResponsiveMediaQueries",get:function(){return Array.from(this._mediaQueries[E.at].entries()).reduce(function(v,k){var T=s(k,2),N=T[0],M=T[1];return t({},v,g({},N,M))},{})}},{key:"largestBreakpoint",get:function(){return this._sortedBreakpoints[this._sortedBreakpoints.length-1]}}]),b}();return Ba.Breakpoints=x,Ba}var za={},gT;function PZ(){if(gT)return za;gT=1,Object.defineProperty(za,"__esModule",{value:!0}),za.Interactions=za.InteractionKey=void 0;var e=Dm();function t(x){for(var b=1;b<arguments.length;b++){var C=arguments[b]!=null?Object(arguments[b]):{},v=Object.keys(C);typeof Object.getOwnPropertySymbols=="function"&&v.push.apply(v,Object.getOwnPropertySymbols(C).filter(function(k){return Object.getOwnPropertyDescriptor(C,k).enumerable})),v.forEach(function(k){g(x,k,C[k])})}return x}function r(x){return a(x)||i(x)||l(x)||n()}function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(x){if(typeof Symbol<"u"&&x[Symbol.iterator]!=null||x["@@iterator"]!=null)return Array.from(x)}function a(x){if(Array.isArray(x))return u(x)}function s(x,b){return d(x)||c(x,b)||l(x,b)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l(x,b){if(x){if(typeof x=="string")return u(x,b);var C=Object.prototype.toString.call(x).slice(8,-1);if(C==="Object"&&x.constructor&&(C=x.constructor.name),C==="Map"||C==="Set")return Array.from(x);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return u(x,b)}}function u(x,b){(b==null||b>x.length)&&(b=x.length);for(var C=0,v=new Array(b);C<b;C++)v[C]=x[C];return v}function c(x,b){var C=x==null?null:typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(C!=null){var v=[],k=!0,T=!1,N,M;try{for(C=C.call(x);!(k=(N=C.next()).done)&&(v.push(N.value),!(b&&v.length===b));k=!0);}catch(j){T=!0,M=j}finally{try{!k&&C.return!=null&&C.return()}finally{if(T)throw M}}return v}}function d(x){if(Array.isArray(x))return x}function p(x,b){if(!(x instanceof b))throw new TypeError("Cannot call a class as a function")}function m(x,b){for(var C=0;C<b.length;C++){var v=b[C];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(x,v.key,v)}}function w(x,b,C){return b&&m(x.prototype,b),C&&m(x,C),x}function g(x,b,C){return b in x?Object.defineProperty(x,b,{value:C,enumerable:!0,configurable:!0,writable:!0}):x[b]=C,x}var _;za.InteractionKey=_,function(x){x.interaction="interaction"}(_||(za.InteractionKey=_={}));var E=function(){w(x,null,[{key:"validKeys",value:function(){return[_.interaction]}}]);function x(b){p(this,x),g(this,"_interactions",void 0),this._interactions=b}return w(x,[{key:"toRuleSets",value:function(){return Object.entries(this._interactions).reduce(function(C,v){var k=s(v,2),T=k[0],N=k[1];return r(C).concat([(0,e.createRuleSet)((0,e.createClassName)(_.interaction,T),N)])},[])}},{key:"shouldRenderMediaQuery",value:function(C,v){return!!(v&&v.includes(C))}},{key:"interactions",get:function(){return Object.keys(this._interactions)}},{key:"dynamicResponsiveMediaQueries",get:function(){return Object.entries(this._interactions).reduce(function(C,v){var k=s(v,2),T=k[0],N=k[1];return t({},C,g({},T,N))},{})}}]),x}();return za.Interactions=E,za}var vT;function RZ(){if(vT)return Ec;vT=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.MediaQueries=void 0;var e=ZD(),t=PZ(),r=Dm();function n(E){for(var x=1;x<arguments.length;x++){var b=arguments[x]!=null?Object(arguments[x]):{},C=Object.keys(b);typeof Object.getOwnPropertySymbols=="function"&&C.push.apply(C,Object.getOwnPropertySymbols(b).filter(function(v){return Object.getOwnPropertyDescriptor(b,v).enumerable})),C.forEach(function(v){g(E,v,b[v])})}return E}function i(E,x){if(E==null)return{};var b=a(E,x),C,v;if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(E);for(v=0;v<k.length;v++)C=k[v],!(x.indexOf(C)>=0)&&Object.prototype.propertyIsEnumerable.call(E,C)&&(b[C]=E[C])}return b}function a(E,x){if(E==null)return{};var b={},C=Object.keys(E),v,k;for(k=0;k<C.length;k++)v=C[k],!(x.indexOf(v)>=0)&&(b[v]=E[v]);return b}function s(E){return c(E)||u(E)||l(E)||o()}function o(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l(E,x){if(E){if(typeof E=="string")return d(E,x);var b=Object.prototype.toString.call(E).slice(8,-1);if(b==="Object"&&E.constructor&&(b=E.constructor.name),b==="Map"||b==="Set")return Array.from(E);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return d(E,x)}}function u(E){if(typeof Symbol<"u"&&E[Symbol.iterator]!=null||E["@@iterator"]!=null)return Array.from(E)}function c(E){if(Array.isArray(E))return d(E)}function d(E,x){(x==null||x>E.length)&&(x=E.length);for(var b=0,C=new Array(x);b<x;b++)C[b]=E[b];return C}function p(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}function m(E,x){for(var b=0;b<x.length;b++){var C=x[b];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(E,C.key,C)}}function w(E,x,b){return x&&m(E.prototype,x),b&&m(E,b),E}function g(E,x,b){return x in E?Object.defineProperty(E,x,{value:b,enumerable:!0,configurable:!0,writable:!0}):E[x]=b,E}var _=function(){w(E,null,[{key:"validKeys",value:function(){return s(e.Breakpoints.validKeys()).concat(s(t.Interactions.validKeys()))}}]);function E(x,b){var C=this;p(this,E),g(this,"_breakpoints",void 0),g(this,"_interactions",void 0),g(this,"toStyle",function(v){return[".fresnel-container{margin:0;padding:0;}"].concat(s(C._breakpoints.toRuleSets(v)),s(C._interactions.toRuleSets())).join(`
`)}),this._breakpoints=new e.Breakpoints(x),this._interactions=new t.Interactions(b||{})}return w(E,[{key:"shouldRenderMediaQuery",value:function(b,C){var v=b.interaction,k=i(b,["interaction"]);if(v)return this._interactions.shouldRenderMediaQuery(v,C);var T=(0,r.intersection)(C,this._breakpoints.sortedBreakpoints);return this._breakpoints.shouldRenderMediaQuery(k,T)}},{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 n({},this._breakpoints.dynamicResponsiveMediaQueries,this._interactions.dynamicResponsiveMediaQueries)}}]),E}();return Ec.MediaQueries=_,Ec}var yT;function OZ(){if(yT)return Fh;yT=1;function e(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(X){return typeof X}:e=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},e(D)}Object.defineProperty(Fh,"__esModule",{value:!0}),Fh.createMedia=N;var t=a(ho()),r=IZ(),n=RZ(),i=Dm();function a(D){return D&&D.__esModule?D:{default:D}}function s(D){return c(D)||u(D)||l(D)||o()}function o(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l(D,$){if(D){if(typeof D=="string")return d(D,$);var X=Object.prototype.toString.call(D).slice(8,-1);if(X==="Object"&&D.constructor&&(X=D.constructor.name),X==="Map"||X==="Set")return Array.from(D);if(X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X))return d(D,$)}}function u(D){if(typeof Symbol<"u"&&D[Symbol.iterator]!=null||D["@@iterator"]!=null)return Array.from(D)}function c(D){if(Array.isArray(D))return d(D)}function d(D,$){($==null||$>D.length)&&($=D.length);for(var X=0,W=new Array($);X<$;X++)W[X]=D[X];return W}function p(D){for(var $=1;$<arguments.length;$++){var X=arguments[$]!=null?Object(arguments[$]):{},W=Object.keys(X);typeof Object.getOwnPropertySymbols=="function"&&W.push.apply(W,Object.getOwnPropertySymbols(X).filter(function(H){return Object.getOwnPropertyDescriptor(X,H).enumerable})),W.forEach(function(H){T(D,H,X[H])})}return D}function m(D,$){if(D==null)return{};var X=w(D,$),W,H;if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(D);for(H=0;H<V.length;H++)W=V[H],!($.indexOf(W)>=0)&&Object.prototype.propertyIsEnumerable.call(D,W)&&(X[W]=D[W])}return X}function w(D,$){if(D==null)return{};var X={},W=Object.keys(D),H,V;for(V=0;V<W.length;V++)H=W[V],!($.indexOf(H)>=0)&&(X[H]=D[H]);return X}function g(D,$){if(!(D instanceof $))throw new TypeError("Cannot call a class as a function")}function _(D,$){for(var X=0;X<$.length;X++){var W=$[X];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(D,W.key,W)}}function E(D,$,X){return $&&_(D.prototype,$),D}function x(D,$){if($&&(e($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k(D)}function b(D){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(X){return X.__proto__||Object.getPrototypeOf(X)},b(D)}function C(D,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create($&&$.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),$&&v(D,$)}function v(D,$){return v=Object.setPrototypeOf||function(W,H){return W.__proto__=H,W},v(D,$)}function k(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function T(D,$,X){return $ in D?Object.defineProperty(D,$,{value:X,enumerable:!0,configurable:!0,writable:!0}):D[$]=X,D}function N(D){var $,X,W=(0,i.castBreakpointsToIntegers)(D.breakpoints),H=new n.MediaQueries(W,D.interactions||{}),V=(0,r.createResponsiveComponents)(),K=t.default.createContext({});K.displayName="Media.Context";var Y=t.default.createContext({hasParentMedia:!1,breakpointProps:{}});K.displayName="MediaParent.Context";var q=(0,i.memoize)(function(z){return{onlyMatch:z}}),F=function(B){var se=B.disableDynamicMediaQueries,de=B.onlyMatch,me=B.children;if(se){var Ee=q(de);return t.default.createElement(K.Provider,{value:Ee},me)}else return t.default.createElement(V.Provider,{mediaQueries:H.dynamicResponsiveMediaQueries,initialMatchingMediaQueries:(0,i.intersection)(H.mediaQueryTypes,de)},t.default.createElement(V.Consumer,null,function(Ie){var Ne=Object.keys(Ie).filter(function(He){return Ie[He]}),Le=q((0,i.intersection)(Ne,de));return t.default.createElement(K.Provider,{value:Le},me)}))},G=(X=$=function(z){C(B,z);function B(se){var de;return g(this,B),de=x(this,b(B).call(this,se)),T(k(k(de)),"getMediaParentContextValue",(0,i.memoize)(function(me){return{hasParentMedia:!0,breakpointProps:me}})),j(se),de}return E(B,[{key:"render",value:function(){var de=this,me=this.props;me.children;var Ee=me.className,Ie=me.style,Ne=me.interaction,Le=m(me,["children","className","style","interaction"]),He=this.getMediaParentContextValue(Le);return t.default.createElement(Y.Consumer,null,function(Oe){return t.default.createElement(Y.Provider,{value:He},t.default.createElement(K.Consumer,null,function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},We=Fe.onlyMatch,rt;if(me.interaction)rt=(0,i.createClassName)("interaction",me.interaction);else{if(me.at){var ot=H.breakpoints.largestBreakpoint;if(me.at===ot){var st=null;try{var At=de._reactInternalFiber._debugOwner.type;st=At.displayName||At.name}catch{}console.warn("[@artsy/fresnel] `at` is being used with the largest breakpoint. Consider using `<Media greaterThanOrEqual="+'"'.concat(ot,'">` to account for future ')+"breakpoint definitions outside of this range.".concat(st?" It is being used in the ".concat(st," component."):""))}}var Ht=(0,i.propKey)(Le),gt=Le[Ht];rt=(0,i.createClassName)(Ht,gt)}var ct=!Oe.hasParentMedia||(0,i.intersection)(H.breakpoints.toVisibleAtBreakpointSet(Oe.breakpointProps),H.breakpoints.toVisibleAtBreakpointSet(Le)).length>0,we=ct&&(We===void 0||H.shouldRenderMediaQuery(p({},Le,{interaction:Ne}),We));return me.children instanceof Function?me.children(rt,we):t.default.createElement("div",{className:"fresnel-container ".concat(rt," ").concat(Ee),style:Ie,suppressHydrationWarning:!we},we?me.children:null)}))})}}]),B}(t.default.Component),T($,"defaultProps",{className:"",style:{}}),T($,"contextType",Y),X);return{Media:G,MediaContextProvider:F,createMediaStyle:H.toStyle,SortedBreakpoints:s(H.breakpoints.sortedBreakpoints),findBreakpointAtWidth:H.breakpoints.findBreakpointAtWidth,findBreakpointsForWidths:H.breakpoints.findBreakpointsForWidths,valuesWithBreakpointProps:H.breakpoints.valuesWithBreakpointProps}}var M=n.MediaQueries.validKeys();function j(D){var $=Object.keys(D).filter(function(X){return M.includes(X)});if($.length<1)throw new Error("1 of ".concat(M.join(", ")," is required."));if($.length>1)throw new Error("Only 1 of ".concat($.join(", ")," is allowed at a time."))}return Fh}var wT;function NZ(){return wT||(wT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createMedia",{enumerable:!0,get:function(){return t.createMedia}}),Object.defineProperty(e,"BreakpointKey",{enumerable:!0,get:function(){return r.BreakpointConstraint}});var t=OZ(),r=ZD()}(gy)),gy}var MZ=NZ();const eF=MZ.createMedia({breakpoints:{small:320,large:768}}),DZ=eF.createMediaStyle(),{Media:dl,MediaContextProvider:FZ}=eF;function tF(e){const t=J.useRef(void 0);return J.useEffect(()=>{t.current=e}),t.current}const _T=1.3;function LZ(e,t){const r=ve("#svgContainer").node(),n=t.transform.k,i=co([0,(r.clientWidth-e[0]*n)/2]),a=co([0,(r.clientHeight-e[1]*n)/2]);ve("#chartSvg").attr("width",e[0]*n).attr("height",e[1]*n).attr("transform",`translate(${i}, ${a})`),ve("#chart").attr("transform",`scale(${n})`),r.scrollLeft=-t.transform.x,r.scrollTop=-t.transform.y}function jZ(){const e=ve("#svgContainer").node(),t=e.scrollLeft+e.clientWidth/2,r=e.scrollTop+e.clientHeight/2,n=mu(e).k;ve(e).call(Vb().translateTo,t/n,r/n)}function BZ(e){const t=new FileReader;return t.readAsDataURL(e),new Promise((r,n)=>{t.onload=i=>r(i.target.result)})}async function zZ(e){const t=e.href.baseVal;if(t)try{const n=await(await fetch(t)).blob(),i=await BZ(n);e.href.baseVal=i}catch(r){console.warn("Failed to load image:",r)}}async function UZ(e){const t=Array.from(e.getElementsByTagName("image"));await Promise.all(t.map(zZ))}function $Z(e){const t=new Image;return t.src=URL.createObjectURL(e),new Promise((r,n)=>{t.addEventListener("load",()=>r(t))})}function HZ(e){const t=document.createElement("canvas");t.width=e.width*2,t.height=e.height*2;const r=t.getContext("2d"),n=r.fillStyle;return r.fillStyle="white",r.fillRect(0,0,t.width,t.height),r.fillStyle=n,r.drawImage(e,0,0,t.width,t.height),t}function qZ(e,t){return new Promise((r,n)=>{e.toBlob(i=>{i?r(i):n()},t)})}function nF(){const e=document.getElementById("chartSvg").cloneNode(!0);e.removeAttribute("transform");const t=ve("#svgContainer").node(),r=mu(t).k;return e.setAttribute("width",String(Number(e.getAttribute("width"))/r)),e.setAttribute("height",String(Number(e.getAttribute("height"))/r)),e.querySelector("#chart").removeAttribute("transform"),e}function GZ(){const e=document.getElementById("chartSvg");return{width:Number(e.getAttribute("width")),height:Number(e.getAttribute("height"))}}function WZ(){return new XMLSerializer().serializeToString(nF())}async function nx(){const e=nF(),r=document.createElementNS("http://www.w3.org/2000/svg","rect");return r.setAttribute("x","0"),r.setAttribute("y","0"),r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("fill","white"),e.prepend(r),await UZ(e),new XMLSerializer().serializeToString(e)}function VZ(){const e=document.createElement("iframe");e.style.position="absolute",e.style.top="-1000px",e.style.left="-1000px",e.onload=()=>{var t,r,n;(t=e.contentDocument)==null||t.open(),(r=e.contentDocument)==null||r.write(WZ()),(n=e.contentDocument)==null||n.close(),setTimeout(()=>{var i,a,s;(i=e.contentWindow)==null||i.focus(),(a=e.contentWindow)==null||a.print(),(s=e.parentNode)==null||s.removeChild(e)},500)},document.body.appendChild(e)}async function QZ(){const e=await nx(),t=new Blob([e],{type:"image/svg+xml"});gD.saveAs(t,"topola.svg")}async function KZ(){const e=await nx(),t=new Blob([e],{type:"image/svg+xml"});return HZ(await $Z(t))}async function YZ(){const e=await KZ(),t=await qZ(e,"image/png");gD.saveAs(t,"topola.png")}async function XZ(){const{default:e}=await AW(async()=>{const{default:a}=await import("./jspdf.es.min-BKjYMq0B.js");return{default:a}},[],import.meta.url),{width:t,height:r}=GZ(),n=new e({orientation:t>r?"l":"p",unit:"pt",format:[t,r]}),i=await nx();await n.addSvgAsImage(i,0,0,t,r),n.save("topola.pdf")}var qa=(e=>(e[e.Hourglass=0]="Hourglass",e[e.Relatives=1]="Relatives",e[e.Donatso=2]="Donatso",e[e.Fancy=3]="Fancy",e))(qa||{});const JZ=new Map([[wp.NO_COLOR,hn.ChartColors.NO_COLOR],[wp.COLOR_BY_GENERATION,hn.ChartColors.COLOR_BY_GENERATION],[wp.COLOR_BY_SEX,hn.ChartColors.COLOR_BY_SEX]]);function ZZ(e){switch(e){case 0:return hn.HourglassChart;case 1:return hn.RelativesChart;case 3:return hn.FancyChart;default:return hn.HourglassChart}}function eee(e){switch(e){case 3:return hn.CircleRenderer;default:return hn.DetailedRenderer}}function tee(e,t=20){const r=e;return[r.clientWidth-t,r.clientHeight-t]}function nee(e,t,r){const[n,i]=tee(e),a=Af([1,t,n/r.size[0],i/r.size[1]]);return[co([.1,a]),2]}let ree=class{constructor(){this.animating=!1,this.rerenderRequired=!1}zoom(t){var n;const r=ve("#svgContainer");(n=this.zoomBehavior)==null||n.scaleBy(r,t)}renderChart(t,r,n={initialRender:!1,resetPosition:!1}){if(!n.initialRender&&this.animating){this.rerenderRequired=!0,this.rerenderProps=t,this.rerenderResetPosition=n.resetPosition;return}if(!n.initialRender&&t.freezeAnimation)return;n.initialRender||!this.chart?(ve("#chart").node().innerHTML="",this.chart=hn.createChart({json:t.data,chartType:ZZ(t.chartType),renderer:eee(t.chartType),svgSelector:"#chart",indiCallback:E=>{var x;(x=E.modifiers)!=null&&x.shiftKey?t.onDetailSelection(E):t.onSelection(E)},colors:t.colors!==void 0?JZ.get(t.colors):void 0,animate:!0,updateSvgSize:!1,locale:r.locale})):this.chart.setData(t.data);const i=this.chart.render({startIndi:t.selection.id,baseGeneration:t.selection.generation}),a=ve("#chartSvg"),s=ve("#svgContainer").node(),o=mu(s).k,l=nee(s,o,i);this.zoomBehavior=Vb().scaleExtent(l).translateExtent([[0,0],i.size]).on("zoom",E=>LZ(i.size,E)),ve(s).on("scroll",jZ).call(this.zoomBehavior);const u=E=>()=>{const x=ui(s.scrollTop,E);return b=>{s.scrollTop=x(b)}},c=E=>()=>{const x=ui(s.scrollLeft,E);return b=>{s.scrollLeft=x(b)}},d=s.clientWidth/2-i.origin[0]*o,p=s.clientHeight/2-i.origin[1]*o,m=co([0,(s.clientWidth-i.size[0]*o)/2]),w=co([0,(s.clientHeight-i.size[1]*o)/2]),g=a.transition().delay(200).duration(500),_=n.initialRender?a:g;_.attr("transform",`translate(${m}, ${w})`),_.attr("width",i.size[0]*o),_.attr("height",i.size[1]*o),n.resetPosition&&(n.initialRender?(s.scrollLeft=-d,s.scrollTop=-p):g.tween("scrollLeft",c(-d)).tween("scrollTop",u(-p))),this.animating=!0,i.animationPromise.then(()=>{this.animating=!1,this.rerenderRequired&&(this.rerenderRequired=!1,this.rerenderProps?this.renderChart(this.rerenderProps,r,{initialRender:!1,resetPosition:!!this.rerenderResetPosition}):console.error("Rerender required after animation, but rerenderProps was not set."))})}};function iee(e){const t=J.useRef(new ree),r=tF(e),n=fr();return J.useEffect(()=>{if(r){const i=e.chartType!==(r==null?void 0:r.chartType)||e.colors!==(r==null?void 0:r.colors)||e.hideIds!==(r==null?void 0:r.hideIds)||e.hideSex!==(r==null?void 0:r.hideSex),a=e.chartType!==(r==null?void 0:r.chartType)||e.data!==r.data||e.selection.id!==r.selection.id||e.selection.generation!==r.selection.generation;t.current.renderChart(e,n,{initialRender:i,resetPosition:a})}else t.current.renderChart(e,n,{initialRender:!0,resetPosition:!0})}),O.jsxs("div",{id:"svgContainer",children:[O.jsxs(dl,{greaterThanOrEqual:"large",className:"zoom",children:[O.jsx("button",{className:"zoom-in",onClick:()=>t.current.zoom(_T),children:"+"}),O.jsx("button",{className:"zoom-out",onClick:()=>t.current.zoom(1/_T),children:""})]}),O.jsx("svg",{id:"chartSvg",children:O.jsx("g",{id:"chart"})})]})}var Qt=(e=>(e[e.UPLOADED=0]="UPLOADED",e[e.GEDCOM_URL=1]="GEDCOM_URL",e[e.WIKITREE=2]="WIKITREE",e[e.EMBEDDED=3]="EMBEDDED",e[e.GOOGLE_DRIVE=4]="GOOGLE_DRIVE",e))(Qt||{});function vn(e,t){window.gtag("event",e,t)}var vy={},Sc={},bT;function aee(){if(bT)return Sc;bT=1,Sc.byteLength=o,Sc.toByteArray=u,Sc.fromByteArray=p;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=n.length;i<a;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;t[45]=62,t[95]=63;function s(m){var w=m.length;if(w%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=m.indexOf("=");g===-1&&(g=w);var _=g===w?0:4-g%4;return[g,_]}function o(m){var w=s(m),g=w[0],_=w[1];return(g+_)*3/4-_}function l(m,w,g){return(w+g)*3/4-g}function u(m){var w,g=s(m),_=g[0],E=g[1],x=new r(l(m,_,E)),b=0,C=E>0?_-4:_,v;for(v=0;v<C;v+=4)w=t[m.charCodeAt(v)]<<18|t[m.charCodeAt(v+1)]<<12|t[m.charCodeAt(v+2)]<<6|t[m.charCodeAt(v+3)],x[b++]=w>>16&255,x[b++]=w>>8&255,x[b++]=w&255;return E===2&&(w=t[m.charCodeAt(v)]<<2|t[m.charCodeAt(v+1)]>>4,x[b++]=w&255),E===1&&(w=t[m.charCodeAt(v)]<<10|t[m.charCodeAt(v+1)]<<4|t[m.charCodeAt(v+2)]>>2,x[b++]=w>>8&255,x[b++]=w&255),x}function c(m){return e[m>>18&63]+e[m>>12&63]+e[m>>6&63]+e[m&63]}function d(m,w,g){for(var _,E=[],x=w;x<g;x+=3)_=(m[x]<<16&16711680)+(m[x+1]<<8&65280)+(m[x+2]&255),E.push(c(_));return E.join("")}function p(m){for(var w,g=m.length,_=g%3,E=[],x=16383,b=0,C=g-_;b<C;b+=x)E.push(d(m,b,b+x>C?C:b+x));return _===1?(w=m[g-1],E.push(e[w>>2]+e[w<<4&63]+"==")):_===2&&(w=(m[g-2]<<8)+m[g-1],E.push(e[w>>10]+e[w>>4&63]+e[w<<2&63]+"=")),E.join("")}return Sc}var jh={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var xT;function oee(){return xT||(xT=1,jh.read=function(e,t,r,n,i){var a,s,o=i*8-n-1,l=(1<<o)-1,u=l>>1,c=-7,d=r?i-1:0,p=r?-1:1,m=e[t+d];for(d+=p,a=m&(1<<-c)-1,m>>=-c,c+=o;c>0;a=a*256+e[t+d],d+=p,c-=8);for(s=a&(1<<-c)-1,a>>=-c,c+=n;c>0;s=s*256+e[t+d],d+=p,c-=8);if(a===0)a=1-u;else{if(a===l)return s?NaN:(m?-1:1)*(1/0);s=s+Math.pow(2,n),a=a-u}return(m?-1:1)*s*Math.pow(2,a-n)},jh.write=function(e,t,r,n,i,a){var s,o,l,u=a*8-i-1,c=(1<<u)-1,d=c>>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:a-1,w=n?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+d>=1?t+=p/l:t+=p*Math.pow(2,1-d),t*l>=2&&(s++,l/=2),s+d>=c?(o=0,s=c):s+d>=1?(o=(t*l-1)*Math.pow(2,i),s=s+d):(o=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[r+m]=o&255,m+=w,o/=256,i-=8);for(s=s<<i|o,u+=i;u>0;e[r+m]=s&255,m+=w,s/=256,u-=8);e[r+m-w]|=g*128}),jh}/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var ET;function see(){return ET||(ET=1,function(e){const t=aee(),r=oee(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=x,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,o.TYPED_ARRAY_SUPPORT=a(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&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.");function a(){try{const L=new Uint8Array(1),I={foo:function(){return 42}};return Object.setPrototypeOf(I,Uint8Array.prototype),Object.setPrototypeOf(L,I),L.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function s(L){if(L>i)throw new RangeError('The value "'+L+'" is invalid for option "size"');const I=new Uint8Array(L);return Object.setPrototypeOf(I,o.prototype),I}function o(L,I,R){if(typeof L=="number"){if(typeof I=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(L)}return l(L,I,R)}o.poolSize=8192;function l(L,I,R){if(typeof L=="string")return p(L,I);if(ArrayBuffer.isView(L))return w(L);if(L==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L);if(we(L,ArrayBuffer)||L&&we(L.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(we(L,SharedArrayBuffer)||L&&we(L.buffer,SharedArrayBuffer)))return g(L,I,R);if(typeof L=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Q=L.valueOf&&L.valueOf();if(Q!=null&&Q!==L)return o.from(Q,I,R);const re=_(L);if(re)return re;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof L[Symbol.toPrimitive]=="function")return o.from(L[Symbol.toPrimitive]("string"),I,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L)}o.from=function(L,I,R){return l(L,I,R)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function u(L){if(typeof L!="number")throw new TypeError('"size" argument must be of type number');if(L<0)throw new RangeError('The value "'+L+'" is invalid for option "size"')}function c(L,I,R){return u(L),L<=0?s(L):I!==void 0?typeof R=="string"?s(L).fill(I,R):s(L).fill(I):s(L)}o.alloc=function(L,I,R){return c(L,I,R)};function d(L){return u(L),s(L<0?0:E(L)|0)}o.allocUnsafe=function(L){return d(L)},o.allocUnsafeSlow=function(L){return d(L)};function p(L,I){if((typeof I!="string"||I==="")&&(I="utf8"),!o.isEncoding(I))throw new TypeError("Unknown encoding: "+I);const R=b(L,I)|0;let Q=s(R);const re=Q.write(L,I);return re!==R&&(Q=Q.slice(0,re)),Q}function m(L){const I=L.length<0?0:E(L.length)|0,R=s(I);for(let Q=0;Q<I;Q+=1)R[Q]=L[Q]&255;return R}function w(L){if(we(L,Uint8Array)){const I=new Uint8Array(L);return g(I.buffer,I.byteOffset,I.byteLength)}return m(L)}function g(L,I,R){if(I<0||L.byteLength<I)throw new RangeError('"offset" is outside of buffer bounds');if(L.byteLength<I+(R||0))throw new RangeError('"length" is outside of buffer bounds');let Q;return I===void 0&&R===void 0?Q=new Uint8Array(L):R===void 0?Q=new Uint8Array(L,I):Q=new Uint8Array(L,I,R),Object.setPrototypeOf(Q,o.prototype),Q}function _(L){if(o.isBuffer(L)){const I=E(L.length)|0,R=s(I);return R.length===0||L.copy(R,0,0,I),R}if(L.length!==void 0)return typeof L.length!="number"||et(L.length)?s(0):m(L);if(L.type==="Buffer"&&Array.isArray(L.data))return m(L.data)}function E(L){if(L>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return L|0}function x(L){return+L!=L&&(L=0),o.alloc(+L)}o.isBuffer=function(I){return I!=null&&I._isBuffer===!0&&I!==o.prototype},o.compare=function(I,R){if(we(I,Uint8Array)&&(I=o.from(I,I.offset,I.byteLength)),we(R,Uint8Array)&&(R=o.from(R,R.offset,R.byteLength)),!o.isBuffer(I)||!o.isBuffer(R))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(I===R)return 0;let Q=I.length,re=R.length;for(let fe=0,ge=Math.min(Q,re);fe<ge;++fe)if(I[fe]!==R[fe]){Q=I[fe],re=R[fe];break}return Q<re?-1:re<Q?1:0},o.isEncoding=function(I){switch(String(I).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}},o.concat=function(I,R){if(!Array.isArray(I))throw new TypeError('"list" argument must be an Array of Buffers');if(I.length===0)return o.alloc(0);let Q;if(R===void 0)for(R=0,Q=0;Q<I.length;++Q)R+=I[Q].length;const re=o.allocUnsafe(R);let fe=0;for(Q=0;Q<I.length;++Q){let ge=I[Q];if(we(ge,Uint8Array))fe+ge.length>re.length?(o.isBuffer(ge)||(ge=o.from(ge)),ge.copy(re,fe)):Uint8Array.prototype.set.call(re,ge,fe);else if(o.isBuffer(ge))ge.copy(re,fe);else throw new TypeError('"list" argument must be an Array of Buffers');fe+=ge.length}return re};function b(L,I){if(o.isBuffer(L))return L.length;if(ArrayBuffer.isView(L)||we(L,ArrayBuffer))return L.byteLength;if(typeof L!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof L);const R=L.length,Q=arguments.length>2&&arguments[2]===!0;if(!Q&&R===0)return 0;let re=!1;for(;;)switch(I){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return st(L).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R*2;case"hex":return R>>>1;case"base64":return gt(L).length;default:if(re)return Q?-1:st(L).length;I=(""+I).toLowerCase(),re=!0}}o.byteLength=b;function C(L,I,R){let Q=!1;if((I===void 0||I<0)&&(I=0),I>this.length||((R===void 0||R>this.length)&&(R=this.length),R<=0)||(R>>>=0,I>>>=0,R<=I))return"";for(L||(L="utf8");;)switch(L){case"hex":return q(this,I,R);case"utf8":case"utf-8":return W(this,I,R);case"ascii":return K(this,I,R);case"latin1":case"binary":return Y(this,I,R);case"base64":return X(this,I,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,I,R);default:if(Q)throw new TypeError("Unknown encoding: "+L);L=(L+"").toLowerCase(),Q=!0}}o.prototype._isBuffer=!0;function v(L,I,R){const Q=L[I];L[I]=L[R],L[R]=Q}o.prototype.swap16=function(){const I=this.length;if(I%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let R=0;R<I;R+=2)v(this,R,R+1);return this},o.prototype.swap32=function(){const I=this.length;if(I%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let R=0;R<I;R+=4)v(this,R,R+3),v(this,R+1,R+2);return this},o.prototype.swap64=function(){const I=this.length;if(I%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let R=0;R<I;R+=8)v(this,R,R+7),v(this,R+1,R+6),v(this,R+2,R+5),v(this,R+3,R+4);return this},o.prototype.toString=function(){const I=this.length;return I===0?"":arguments.length===0?W(this,0,I):C.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(I){if(!o.isBuffer(I))throw new TypeError("Argument must be a Buffer");return this===I?!0:o.compare(this,I)===0},o.prototype.inspect=function(){let I="";const R=e.INSPECT_MAX_BYTES;return I=this.toString("hex",0,R).replace(/(.{2})/g,"$1 ").trim(),this.length>R&&(I+=" ... "),"<Buffer "+I+">"},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(I,R,Q,re,fe){if(we(I,Uint8Array)&&(I=o.from(I,I.offset,I.byteLength)),!o.isBuffer(I))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof I);if(R===void 0&&(R=0),Q===void 0&&(Q=I?I.length:0),re===void 0&&(re=0),fe===void 0&&(fe=this.length),R<0||Q>I.length||re<0||fe>this.length)throw new RangeError("out of range index");if(re>=fe&&R>=Q)return 0;if(re>=fe)return-1;if(R>=Q)return 1;if(R>>>=0,Q>>>=0,re>>>=0,fe>>>=0,this===I)return 0;let ge=fe-re,Ve=Q-R;const ft=Math.min(ge,Ve),ae=this.slice(re,fe),le=I.slice(R,Q);for(let Me=0;Me<ft;++Me)if(ae[Me]!==le[Me]){ge=ae[Me],Ve=le[Me];break}return ge<Ve?-1:Ve<ge?1:0};function k(L,I,R,Q,re){if(L.length===0)return-1;if(typeof R=="string"?(Q=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),R=+R,et(R)&&(R=re?0:L.length-1),R<0&&(R=L.length+R),R>=L.length){if(re)return-1;R=L.length-1}else if(R<0)if(re)R=0;else return-1;if(typeof I=="string"&&(I=o.from(I,Q)),o.isBuffer(I))return I.length===0?-1:T(L,I,R,Q,re);if(typeof I=="number")return I=I&255,typeof Uint8Array.prototype.indexOf=="function"?re?Uint8Array.prototype.indexOf.call(L,I,R):Uint8Array.prototype.lastIndexOf.call(L,I,R):T(L,[I],R,Q,re);throw new TypeError("val must be string, number or Buffer")}function T(L,I,R,Q,re){let fe=1,ge=L.length,Ve=I.length;if(Q!==void 0&&(Q=String(Q).toLowerCase(),Q==="ucs2"||Q==="ucs-2"||Q==="utf16le"||Q==="utf-16le")){if(L.length<2||I.length<2)return-1;fe=2,ge/=2,Ve/=2,R/=2}function ft(le,Me){return fe===1?le[Me]:le.readUInt16BE(Me*fe)}let ae;if(re){let le=-1;for(ae=R;ae<ge;ae++)if(ft(L,ae)===ft(I,le===-1?0:ae-le)){if(le===-1&&(le=ae),ae-le+1===Ve)return le*fe}else le!==-1&&(ae-=ae-le),le=-1}else for(R+Ve>ge&&(R=ge-Ve),ae=R;ae>=0;ae--){let le=!0;for(let Me=0;Me<Ve;Me++)if(ft(L,ae+Me)!==ft(I,Me)){le=!1;break}if(le)return ae}return-1}o.prototype.includes=function(I,R,Q){return this.indexOf(I,R,Q)!==-1},o.prototype.indexOf=function(I,R,Q){return k(this,I,R,Q,!0)},o.prototype.lastIndexOf=function(I,R,Q){return k(this,I,R,Q,!1)};function N(L,I,R,Q){R=Number(R)||0;const re=L.length-R;Q?(Q=Number(Q),Q>re&&(Q=re)):Q=re;const fe=I.length;Q>fe/2&&(Q=fe/2);let ge;for(ge=0;ge<Q;++ge){const Ve=parseInt(I.substr(ge*2,2),16);if(et(Ve))return ge;L[R+ge]=Ve}return ge}function M(L,I,R,Q){return ct(st(I,L.length-R),L,R,Q)}function j(L,I,R,Q){return ct(At(I),L,R,Q)}function D(L,I,R,Q){return ct(gt(I),L,R,Q)}function $(L,I,R,Q){return ct(Ht(I,L.length-R),L,R,Q)}o.prototype.write=function(I,R,Q,re){if(R===void 0)re="utf8",Q=this.length,R=0;else if(Q===void 0&&typeof R=="string")re=R,Q=this.length,R=0;else if(isFinite(R))R=R>>>0,isFinite(Q)?(Q=Q>>>0,re===void 0&&(re="utf8")):(re=Q,Q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const fe=this.length-R;if((Q===void 0||Q>fe)&&(Q=fe),I.length>0&&(Q<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");re||(re="utf8");let ge=!1;for(;;)switch(re){case"hex":return N(this,I,R,Q);case"utf8":case"utf-8":return M(this,I,R,Q);case"ascii":case"latin1":case"binary":return j(this,I,R,Q);case"base64":return D(this,I,R,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,I,R,Q);default:if(ge)throw new TypeError("Unknown encoding: "+re);re=(""+re).toLowerCase(),ge=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function X(L,I,R){return I===0&&R===L.length?t.fromByteArray(L):t.fromByteArray(L.slice(I,R))}function W(L,I,R){R=Math.min(L.length,R);const Q=[];let re=I;for(;re<R;){const fe=L[re];let ge=null,Ve=fe>239?4:fe>223?3:fe>191?2:1;if(re+Ve<=R){let ft,ae,le,Me;switch(Ve){case 1:fe<128&&(ge=fe);break;case 2:ft=L[re+1],(ft&192)===128&&(Me=(fe&31)<<6|ft&63,Me>127&&(ge=Me));break;case 3:ft=L[re+1],ae=L[re+2],(ft&192)===128&&(ae&192)===128&&(Me=(fe&15)<<12|(ft&63)<<6|ae&63,Me>2047&&(Me<55296||Me>57343)&&(ge=Me));break;case 4:ft=L[re+1],ae=L[re+2],le=L[re+3],(ft&192)===128&&(ae&192)===128&&(le&192)===128&&(Me=(fe&15)<<18|(ft&63)<<12|(ae&63)<<6|le&63,Me>65535&&Me<1114112&&(ge=Me))}}ge===null?(ge=65533,Ve=1):ge>65535&&(ge-=65536,Q.push(ge>>>10&1023|55296),ge=56320|ge&1023),Q.push(ge),re+=Ve}return V(Q)}const H=4096;function V(L){const I=L.length;if(I<=H)return String.fromCharCode.apply(String,L);let R="",Q=0;for(;Q<I;)R+=String.fromCharCode.apply(String,L.slice(Q,Q+=H));return R}function K(L,I,R){let Q="";R=Math.min(L.length,R);for(let re=I;re<R;++re)Q+=String.fromCharCode(L[re]&127);return Q}function Y(L,I,R){let Q="";R=Math.min(L.length,R);for(let re=I;re<R;++re)Q+=String.fromCharCode(L[re]);return Q}function q(L,I,R){const Q=L.length;(!I||I<0)&&(I=0),(!R||R<0||R>Q)&&(R=Q);let re="";for(let fe=I;fe<R;++fe)re+=it[L[fe]];return re}function F(L,I,R){const Q=L.slice(I,R);let re="";for(let fe=0;fe<Q.length-1;fe+=2)re+=String.fromCharCode(Q[fe]+Q[fe+1]*256);return re}o.prototype.slice=function(I,R){const Q=this.length;I=~~I,R=R===void 0?Q:~~R,I<0?(I+=Q,I<0&&(I=0)):I>Q&&(I=Q),R<0?(R+=Q,R<0&&(R=0)):R>Q&&(R=Q),R<I&&(R=I);const re=this.subarray(I,R);return Object.setPrototypeOf(re,o.prototype),re};function G(L,I,R){if(L%1!==0||L<0)throw new RangeError("offset is not uint");if(L+I>R)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(I,R,Q){I=I>>>0,R=R>>>0,Q||G(I,R,this.length);let re=this[I],fe=1,ge=0;for(;++ge<R&&(fe*=256);)re+=this[I+ge]*fe;return re},o.prototype.readUintBE=o.prototype.readUIntBE=function(I,R,Q){I=I>>>0,R=R>>>0,Q||G(I,R,this.length);let re=this[I+--R],fe=1;for(;R>0&&(fe*=256);)re+=this[I+--R]*fe;return re},o.prototype.readUint8=o.prototype.readUInt8=function(I,R){return I=I>>>0,R||G(I,1,this.length),this[I]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(I,R){return I=I>>>0,R||G(I,2,this.length),this[I]|this[I+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(I,R){return I=I>>>0,R||G(I,2,this.length),this[I]<<8|this[I+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(I,R){return I=I>>>0,R||G(I,4,this.length),(this[I]|this[I+1]<<8|this[I+2]<<16)+this[I+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(I,R){return I=I>>>0,R||G(I,4,this.length),this[I]*16777216+(this[I+1]<<16|this[I+2]<<8|this[I+3])},o.prototype.readBigUInt64LE=ht(function(I){I=I>>>0,Fe(I,"offset");const R=this[I],Q=this[I+7];(R===void 0||Q===void 0)&&We(I,this.length-8);const re=R+this[++I]*2**8+this[++I]*2**16+this[++I]*2**24,fe=this[++I]+this[++I]*2**8+this[++I]*2**16+Q*2**24;return BigInt(re)+(BigInt(fe)<<BigInt(32))}),o.prototype.readBigUInt64BE=ht(function(I){I=I>>>0,Fe(I,"offset");const R=this[I],Q=this[I+7];(R===void 0||Q===void 0)&&We(I,this.length-8);const re=R*2**24+this[++I]*2**16+this[++I]*2**8+this[++I],fe=this[++I]*2**24+this[++I]*2**16+this[++I]*2**8+Q;return(BigInt(re)<<BigInt(32))+BigInt(fe)}),o.prototype.readIntLE=function(I,R,Q){I=I>>>0,R=R>>>0,Q||G(I,R,this.length);let re=this[I],fe=1,ge=0;for(;++ge<R&&(fe*=256);)re+=this[I+ge]*fe;return fe*=128,re>=fe&&(re-=Math.pow(2,8*R)),re},o.prototype.readIntBE=function(I,R,Q){I=I>>>0,R=R>>>0,Q||G(I,R,this.length);let re=R,fe=1,ge=this[I+--re];for(;re>0&&(fe*=256);)ge+=this[I+--re]*fe;return fe*=128,ge>=fe&&(ge-=Math.pow(2,8*R)),ge},o.prototype.readInt8=function(I,R){return I=I>>>0,R||G(I,1,this.length),this[I]&128?(255-this[I]+1)*-1:this[I]},o.prototype.readInt16LE=function(I,R){I=I>>>0,R||G(I,2,this.length);const Q=this[I]|this[I+1]<<8;return Q&32768?Q|4294901760:Q},o.prototype.readInt16BE=function(I,R){I=I>>>0,R||G(I,2,this.length);const Q=this[I+1]|this[I]<<8;return Q&32768?Q|4294901760:Q},o.prototype.readInt32LE=function(I,R){return I=I>>>0,R||G(I,4,this.length),this[I]|this[I+1]<<8|this[I+2]<<16|this[I+3]<<24},o.prototype.readInt32BE=function(I,R){return I=I>>>0,R||G(I,4,this.length),this[I]<<24|this[I+1]<<16|this[I+2]<<8|this[I+3]},o.prototype.readBigInt64LE=ht(function(I){I=I>>>0,Fe(I,"offset");const R=this[I],Q=this[I+7];(R===void 0||Q===void 0)&&We(I,this.length-8);const re=this[I+4]+this[I+5]*2**8+this[I+6]*2**16+(Q<<24);return(BigInt(re)<<BigInt(32))+BigInt(R+this[++I]*2**8+this[++I]*2**16+this[++I]*2**24)}),o.prototype.readBigInt64BE=ht(function(I){I=I>>>0,Fe(I,"offset");const R=this[I],Q=this[I+7];(R===void 0||Q===void 0)&&We(I,this.length-8);const re=(R<<24)+this[++I]*2**16+this[++I]*2**8+this[++I];return(BigInt(re)<<BigInt(32))+BigInt(this[++I]*2**24+this[++I]*2**16+this[++I]*2**8+Q)}),o.prototype.readFloatLE=function(I,R){return I=I>>>0,R||G(I,4,this.length),r.read(this,I,!0,23,4)},o.prototype.readFloatBE=function(I,R){return I=I>>>0,R||G(I,4,this.length),r.read(this,I,!1,23,4)},o.prototype.readDoubleLE=function(I,R){return I=I>>>0,R||G(I,8,this.length),r.read(this,I,!0,52,8)},o.prototype.readDoubleBE=function(I,R){return I=I>>>0,R||G(I,8,this.length),r.read(this,I,!1,52,8)};function z(L,I,R,Q,re,fe){if(!o.isBuffer(L))throw new TypeError('"buffer" argument must be a Buffer instance');if(I>re||I<fe)throw new RangeError('"value" argument is out of bounds');if(R+Q>L.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(I,R,Q,re){if(I=+I,R=R>>>0,Q=Q>>>0,!re){const Ve=Math.pow(2,8*Q)-1;z(this,I,R,Q,Ve,0)}let fe=1,ge=0;for(this[R]=I&255;++ge<Q&&(fe*=256);)this[R+ge]=I/fe&255;return R+Q},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(I,R,Q,re){if(I=+I,R=R>>>0,Q=Q>>>0,!re){const Ve=Math.pow(2,8*Q)-1;z(this,I,R,Q,Ve,0)}let fe=Q-1,ge=1;for(this[R+fe]=I&255;--fe>=0&&(ge*=256);)this[R+fe]=I/ge&255;return R+Q},o.prototype.writeUint8=o.prototype.writeUInt8=function(I,R,Q){return I=+I,R=R>>>0,Q||z(this,I,R,1,255,0),this[R]=I&255,R+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(I,R,Q){return I=+I,R=R>>>0,Q||z(this,I,R,2,65535,0),this[R]=I&255,this[R+1]=I>>>8,R+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(I,R,Q){return I=+I,R=R>>>0,Q||z(this,I,R,2,65535,0),this[R]=I>>>8,this[R+1]=I&255,R+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(I,R,Q){return I=+I,R=R>>>0,Q||z(this,I,R,4,4294967295,0),this[R+3]=I>>>24,this[R+2]=I>>>16,this[R+1]=I>>>8,this[R]=I&255,R+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(I,R,Q){return I=+I,R=R>>>0,Q||z(this,I,R,4,4294967295,0),this[R]=I>>>24,this[R+1]=I>>>16,this[R+2]=I>>>8,this[R+3]=I&255,R+4};function B(L,I,R,Q,re){Oe(I,Q,re,L,R,7);let fe=Number(I&BigInt(4294967295));L[R++]=fe,fe=fe>>8,L[R++]=fe,fe=fe>>8,L[R++]=fe,fe=fe>>8,L[R++]=fe;let ge=Number(I>>BigInt(32)&BigInt(4294967295));return L[R++]=ge,ge=ge>>8,L[R++]=ge,ge=ge>>8,L[R++]=ge,ge=ge>>8,L[R++]=ge,R}function se(L,I,R,Q,re){Oe(I,Q,re,L,R,7);let fe=Number(I&BigInt(4294967295));L[R+7]=fe,fe=fe>>8,L[R+6]=fe,fe=fe>>8,L[R+5]=fe,fe=fe>>8,L[R+4]=fe;let ge=Number(I>>BigInt(32)&BigInt(4294967295));return L[R+3]=ge,ge=ge>>8,L[R+2]=ge,ge=ge>>8,L[R+1]=ge,ge=ge>>8,L[R]=ge,R+8}o.prototype.writeBigUInt64LE=ht(function(I,R=0){return B(this,I,R,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=ht(function(I,R=0){return se(this,I,R,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(I,R,Q,re){if(I=+I,R=R>>>0,!re){const ft=Math.pow(2,8*Q-1);z(this,I,R,Q,ft-1,-ft)}let fe=0,ge=1,Ve=0;for(this[R]=I&255;++fe<Q&&(ge*=256);)I<0&&Ve===0&&this[R+fe-1]!==0&&(Ve=1),this[R+fe]=(I/ge>>0)-Ve&255;return R+Q},o.prototype.writeIntBE=function(I,R,Q,re){if(I=+I,R=R>>>0,!re){const ft=Math.pow(2,8*Q-1);z(this,I,R,Q,ft-1,-ft)}let fe=Q-1,ge=1,Ve=0;for(this[R+fe]=I&255;--fe>=0&&(ge*=256);)I<0&&Ve===0&&this[R+fe+1]!==0&&(Ve=1),this[R+fe]=(I/ge>>0)-Ve&255;return R+Q},o.prototype.writeInt8=function(I,R,Q){return I=+I,R=R>>>0,Q||z(this,I,R,1,127,-128),I<0&&(I=255+I+1),this[R]=I&255,R+1},o.prototype.writeInt16LE=function(I,R,Q){return I=+I,R=R>>>0,Q||z(this,I,R,2,32767,-32768),this[R]=I&255,this[R+1]=I>>>8,R+2},o.prototype.writeInt16BE=function(I,R,Q){return I=+I,R=R>>>0,Q||z(this,I,R,2,32767,-32768),this[R]=I>>>8,this[R+1]=I&255,R+2},o.prototype.writeInt32LE=function(I,R,Q){return I=+I,R=R>>>0,Q||z(this,I,R,4,2147483647,-2147483648),this[R]=I&255,this[R+1]=I>>>8,this[R+2]=I>>>16,this[R+3]=I>>>24,R+4},o.prototype.writeInt32BE=function(I,R,Q){return I=+I,R=R>>>0,Q||z(this,I,R,4,2147483647,-2147483648),I<0&&(I=4294967295+I+1),this[R]=I>>>24,this[R+1]=I>>>16,this[R+2]=I>>>8,this[R+3]=I&255,R+4},o.prototype.writeBigInt64LE=ht(function(I,R=0){return B(this,I,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=ht(function(I,R=0){return se(this,I,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function de(L,I,R,Q,re,fe){if(R+Q>L.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function me(L,I,R,Q,re){return I=+I,R=R>>>0,re||de(L,I,R,4),r.write(L,I,R,Q,23,4),R+4}o.prototype.writeFloatLE=function(I,R,Q){return me(this,I,R,!0,Q)},o.prototype.writeFloatBE=function(I,R,Q){return me(this,I,R,!1,Q)};function Ee(L,I,R,Q,re){return I=+I,R=R>>>0,re||de(L,I,R,8),r.write(L,I,R,Q,52,8),R+8}o.prototype.writeDoubleLE=function(I,R,Q){return Ee(this,I,R,!0,Q)},o.prototype.writeDoubleBE=function(I,R,Q){return Ee(this,I,R,!1,Q)},o.prototype.copy=function(I,R,Q,re){if(!o.isBuffer(I))throw new TypeError("argument should be a Buffer");if(Q||(Q=0),!re&&re!==0&&(re=this.length),R>=I.length&&(R=I.length),R||(R=0),re>0&&re<Q&&(re=Q),re===Q||I.length===0||this.length===0)return 0;if(R<0)throw new RangeError("targetStart out of bounds");if(Q<0||Q>=this.length)throw new RangeError("Index out of range");if(re<0)throw new RangeError("sourceEnd out of bounds");re>this.length&&(re=this.length),I.length-R<re-Q&&(re=I.length-R+Q);const fe=re-Q;return this===I&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(R,Q,re):Uint8Array.prototype.set.call(I,this.subarray(Q,re),R),fe},o.prototype.fill=function(I,R,Q,re){if(typeof I=="string"){if(typeof R=="string"?(re=R,R=0,Q=this.length):typeof Q=="string"&&(re=Q,Q=this.length),re!==void 0&&typeof re!="string")throw new TypeError("encoding must be a string");if(typeof re=="string"&&!o.isEncoding(re))throw new TypeError("Unknown encoding: "+re);if(I.length===1){const ge=I.charCodeAt(0);(re==="utf8"&&ge<128||re==="latin1")&&(I=ge)}}else typeof I=="number"?I=I&255:typeof I=="boolean"&&(I=Number(I));if(R<0||this.length<R||this.length<Q)throw new RangeError("Out of range index");if(Q<=R)return this;R=R>>>0,Q=Q===void 0?this.length:Q>>>0,I||(I=0);let fe;if(typeof I=="number")for(fe=R;fe<Q;++fe)this[fe]=I;else{const ge=o.isBuffer(I)?I:o.from(I,re),Ve=ge.length;if(Ve===0)throw new TypeError('The value "'+I+'" is invalid for argument "value"');for(fe=0;fe<Q-R;++fe)this[fe+R]=ge[fe%Ve]}return this};const Ie={};function Ne(L,I,R){Ie[L]=class extends R{constructor(){super(),Object.defineProperty(this,"message",{value:I.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${L}]`,this.stack,delete this.name}get code(){return L}set code(re){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:re,writable:!0})}toString(){return`${this.name} [${L}]: ${this.message}`}}}Ne("ERR_BUFFER_OUT_OF_BOUNDS",function(L){return L?`${L} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ne("ERR_INVALID_ARG_TYPE",function(L,I){return`The "${L}" argument must be of type number. Received type ${typeof I}`},TypeError),Ne("ERR_OUT_OF_RANGE",function(L,I,R){let Q=`The value of "${L}" is out of range.`,re=R;return Number.isInteger(R)&&Math.abs(R)>2**32?re=Le(String(R)):typeof R=="bigint"&&(re=String(R),(R>BigInt(2)**BigInt(32)||R<-(BigInt(2)**BigInt(32)))&&(re=Le(re)),re+="n"),Q+=` It must be ${I}. Received ${re}`,Q},RangeError);function Le(L){let I="",R=L.length;const Q=L[0]==="-"?1:0;for(;R>=Q+4;R-=3)I=`_${L.slice(R-3,R)}${I}`;return`${L.slice(0,R)}${I}`}function He(L,I,R){Fe(I,"offset"),(L[I]===void 0||L[I+R]===void 0)&&We(I,L.length-(R+1))}function Oe(L,I,R,Q,re,fe){if(L>R||L<I){const ge=typeof I=="bigint"?"n":"";let Ve;throw I===0||I===BigInt(0)?Ve=`>= 0${ge} and < 2${ge} ** ${(fe+1)*8}${ge}`:Ve=`>= -(2${ge} ** ${(fe+1)*8-1}${ge}) and < 2 ** ${(fe+1)*8-1}${ge}`,new Ie.ERR_OUT_OF_RANGE("value",Ve,L)}He(Q,re,fe)}function Fe(L,I){if(typeof L!="number")throw new Ie.ERR_INVALID_ARG_TYPE(I,"number",L)}function We(L,I,R){throw Math.floor(L)!==L?(Fe(L,R),new Ie.ERR_OUT_OF_RANGE("offset","an integer",L)):I<0?new Ie.ERR_BUFFER_OUT_OF_BOUNDS:new Ie.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${I}`,L)}const rt=/[^+/0-9A-Za-z-_]/g;function ot(L){if(L=L.split("=")[0],L=L.trim().replace(rt,""),L.length<2)return"";for(;L.length%4!==0;)L=L+"=";return L}function st(L,I){I=I||1/0;let R;const Q=L.length;let re=null;const fe=[];for(let ge=0;ge<Q;++ge){if(R=L.charCodeAt(ge),R>55295&&R<57344){if(!re){if(R>56319){(I-=3)>-1&&fe.push(239,191,189);continue}else if(ge+1===Q){(I-=3)>-1&&fe.push(239,191,189);continue}re=R;continue}if(R<56320){(I-=3)>-1&&fe.push(239,191,189),re=R;continue}R=(re-55296<<10|R-56320)+65536}else re&&(I-=3)>-1&&fe.push(239,191,189);if(re=null,R<128){if((I-=1)<0)break;fe.push(R)}else if(R<2048){if((I-=2)<0)break;fe.push(R>>6|192,R&63|128)}else if(R<65536){if((I-=3)<0)break;fe.push(R>>12|224,R>>6&63|128,R&63|128)}else if(R<1114112){if((I-=4)<0)break;fe.push(R>>18|240,R>>12&63|128,R>>6&63|128,R&63|128)}else throw new Error("Invalid code point")}return fe}function At(L){const I=[];for(let R=0;R<L.length;++R)I.push(L.charCodeAt(R)&255);return I}function Ht(L,I){let R,Q,re;const fe=[];for(let ge=0;ge<L.length&&!((I-=2)<0);++ge)R=L.charCodeAt(ge),Q=R>>8,re=R%256,fe.push(re),fe.push(Q);return fe}function gt(L){return t.toByteArray(ot(L))}function ct(L,I,R,Q){let re;for(re=0;re<Q&&!(re+R>=I.length||re>=L.length);++re)I[re+R]=L[re];return re}function we(L,I){return L instanceof I||L!=null&&L.constructor!=null&&L.constructor.name!=null&&L.constructor.name===I.name}function et(L){return L!==L}const it=function(){const L="0123456789abcdef",I=new Array(256);for(let R=0;R<16;++R){const Q=R*16;for(let re=0;re<16;++re)I[Q+re]=L[R]+L[re]}return I}();function ht(L){return typeof BigInt>"u"?pe:L}function pe(){throw new Error("BigInt not supported")}}(vy)),vy}var lee=see(),ST={},uee=function(e,t,r,n,i){var a=new Worker(ST[t]||(ST[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(s){var o=s.data,l=o.$e$;if(l){var u=new Error(l[0]);u.code=l[1],u.stack=l[2],i(u,null)}else i(null,o)},a.postMessage(r,n),a},on=Uint8Array,Qn=Uint16Array,Fm=Int32Array,nd=new on([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]),rd=new on([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]),Jp=new on([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),rF=function(e,t){for(var r=new Qn(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new Fm(r[30]),n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return{b:r,r:i}},iF=rF(nd,2),rx=iF.b,w1=iF.r;rx[28]=258,w1[258]=28;var aF=rF(rd,0),oF=aF.b,CT=aF.r,Zp=new Qn(32768);for(var Lt=0;Lt<32768;++Lt){var Ua=(Lt&43690)>>1|(Lt&21845)<<1;Ua=(Ua&52428)>>2|(Ua&13107)<<2,Ua=(Ua&61680)>>4|(Ua&3855)<<4,Zp[Lt]=((Ua&65280)>>8|(Ua&255)<<8)>>1}var Kr=function(e,t,r){for(var n=e.length,i=0,a=new Qn(t);i<n;++i)e[i]&&++a[e[i]-1];var s=new Qn(t);for(i=1;i<t;++i)s[i]=s[i-1]+a[i-1]<<1;var o;if(r){o=new Qn(1<<t);var l=15-t;for(i=0;i<n;++i)if(e[i])for(var u=i<<4|e[i],c=t-e[i],d=s[e[i]-1]++<<c,p=d|(1<<c)-1;d<=p;++d)o[Zp[d]>>l]=u}else for(o=new Qn(n),i=0;i<n;++i)e[i]&&(o[i]=Zp[s[e[i]-1]++]>>15-e[i]);return o},fo=new on(288);for(var Lt=0;Lt<144;++Lt)fo[Lt]=8;for(var Lt=144;Lt<256;++Lt)fo[Lt]=9;for(var Lt=256;Lt<280;++Lt)fo[Lt]=7;for(var Lt=280;Lt<288;++Lt)fo[Lt]=8;var Of=new on(32);for(var Lt=0;Lt<32;++Lt)Of[Lt]=5;var cee=Kr(fo,9,0),sF=Kr(fo,9,1),fee=Kr(Of,5,0),lF=Kr(Of,5,1),bp=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},xr=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},xp=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Lm=function(e){return(e+7)/8|0},id=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new on(e.subarray(t,r))},uF=["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"],On=function(e,t,r){var n=new Error(t||uF[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,On),!r)throw n;return n},cF=function(e,t,r,n){var i=e.length,a=n?n.length:0;if(!i||t.f&&!t.l)return r||new on(0);var s=!r,o=s||t.i!=2,l=t.i;s&&(r=new on(i*3));var u=function(He){var Oe=r.length;if(He>Oe){var Fe=new on(Math.max(Oe*2,He));Fe.set(r),r=Fe}},c=t.f||0,d=t.p||0,p=t.b||0,m=t.l,w=t.d,g=t.m,_=t.n,E=i*8;do{if(!m){c=xr(e,d,1);var x=xr(e,d+1,3);if(d+=3,x)if(x==1)m=sF,w=lF,g=9,_=5;else if(x==2){var k=xr(e,d,31)+257,T=xr(e,d+10,15)+4,N=k+xr(e,d+5,31)+1;d+=14;for(var M=new on(N),j=new on(19),D=0;D<T;++D)j[Jp[D]]=xr(e,d+D*3,7);d+=T*3;for(var $=bp(j),X=(1<<$)-1,W=Kr(j,$,1),D=0;D<N;){var H=W[xr(e,d,X)];d+=H&15;var b=H>>4;if(b<16)M[D++]=b;else{var V=0,K=0;for(b==16?(K=3+xr(e,d,3),d+=2,V=M[D-1]):b==17?(K=3+xr(e,d,7),d+=3):b==18&&(K=11+xr(e,d,127),d+=7);K--;)M[D++]=V}}var Y=M.subarray(0,k),q=M.subarray(k);g=bp(Y),_=bp(q),m=Kr(Y,g,1),w=Kr(q,_,1)}else On(1);else{var b=Lm(d)+4,C=e[b-4]|e[b-3]<<8,v=b+C;if(v>i){l&&On(0);break}o&&u(p+C),r.set(e.subarray(b,v),p),t.b=p+=C,t.p=d=v*8,t.f=c;continue}if(d>E){l&&On(0);break}}o&&u(p+131072);for(var F=(1<<g)-1,G=(1<<_)-1,z=d;;z=d){var V=m[xp(e,d)&F],B=V>>4;if(d+=V&15,d>E){l&&On(0);break}if(V||On(2),B<256)r[p++]=B;else if(B==256){z=d,m=null;break}else{var se=B-254;if(B>264){var D=B-257,de=nd[D];se=xr(e,d,(1<<de)-1)+rx[D],d+=de}var me=w[xp(e,d)&G],Ee=me>>4;me||On(3),d+=me&15;var q=oF[Ee];if(Ee>3){var de=rd[Ee];q+=xp(e,d)&(1<<de)-1,d+=de}if(d>E){l&&On(0);break}o&&u(p+131072);var Ie=p+se;if(p<q){var Ne=a-q,Le=Math.min(q,Ie);for(Ne+p<0&&On(3);p<Le;++p)r[p]=n[Ne+p]}for(;p<Ie;++p)r[p]=r[p-q]}}t.l=m,t.p=z,t.b=p,t.f=c,m&&(c=1,t.m=g,t.d=w,t.n=_)}while(!c);return p!=r.length&&s?id(r,0,p):r.subarray(0,p)},$i=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},Cc=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},yy=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,a=r.slice();if(!i)return{t:dF,l:0};if(i==1){var s=new on(r[0].s+1);return s[r[0].s]=1,{t:s,l:1}}r.sort(function(v,k){return v.f-k.f}),r.push({s:-1,f:25001});var o=r[0],l=r[1],u=0,c=1,d=2;for(r[0]={s:-1,f:o.f+l.f,l:o,r:l};c!=i-1;)o=r[r[u].f<r[d].f?u++:d++],l=r[u!=c&&r[u].f<r[d].f?u++:d++],r[c++]={s:-1,f:o.f+l.f,l:o,r:l};for(var p=a[0].s,n=1;n<i;++n)a[n].s>p&&(p=a[n].s);var m=new Qn(p+1),w=_1(r[c-1],m,0);if(w>t){var n=0,g=0,_=w-t,E=1<<_;for(a.sort(function(k,T){return m[T.s]-m[k.s]||k.f-T.f});n<i;++n){var x=a[n].s;if(m[x]>t)g+=E-(1<<w-m[x]),m[x]=t;else break}for(g>>=_;g>0;){var b=a[n].s;m[b]<t?g-=1<<t-m[b]++-1:++n}for(;n>=0&&g;--n){var C=a[n].s;m[C]==t&&(--m[C],++g)}w=t}return{t:new on(m),l:w}},_1=function(e,t,r){return e.s==-1?Math.max(_1(e.l,t,r+1),_1(e.r,t,r+1)):t[e.s]=r},kT=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Qn(++t),n=0,i=e[0],a=1,s=function(l){r[n++]=l},o=1;o<=t;++o)if(e[o]==i&&o!=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[o]}return{c:r.subarray(0,n),n:t}},kc=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},fF=function(e,t,r){var n=r.length,i=Lm(t+2);e[i]=n&255,e[i+1]=n>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<n;++a)e[i+a+4]=r[a];return(i+4+n)*8},AT=function(e,t,r,n,i,a,s,o,l,u,c){$i(t,c++,r),++i[256];for(var d=yy(i,15),p=d.t,m=d.l,w=yy(a,15),g=w.t,_=w.l,E=kT(p),x=E.c,b=E.n,C=kT(g),v=C.c,k=C.n,T=new Qn(19),N=0;N<x.length;++N)++T[x[N]&31];for(var N=0;N<v.length;++N)++T[v[N]&31];for(var M=yy(T,7),j=M.t,D=M.l,$=19;$>4&&!j[Jp[$-1]];--$);var X=u+5<<3,W=kc(i,fo)+kc(a,Of)+s,H=kc(i,p)+kc(a,g)+s+14+3*$+kc(T,j)+2*T[16]+3*T[17]+7*T[18];if(l>=0&&X<=W&&X<=H)return fF(t,c,e.subarray(l,l+u));var V,K,Y,q;if($i(t,c,1+(H<W)),c+=2,H<W){V=Kr(p,m,0),K=p,Y=Kr(g,_,0),q=g;var F=Kr(j,D,0);$i(t,c,b-257),$i(t,c+5,k-1),$i(t,c+10,$-4),c+=14;for(var N=0;N<$;++N)$i(t,c+3*N,j[Jp[N]]);c+=3*$;for(var G=[x,v],z=0;z<2;++z)for(var B=G[z],N=0;N<B.length;++N){var se=B[N]&31;$i(t,c,F[se]),c+=j[se],se>15&&($i(t,c,B[N]>>5&127),c+=B[N]>>12)}}else V=cee,K=fo,Y=fee,q=Of;for(var N=0;N<o;++N){var de=n[N];if(de>255){var se=de>>18&31;Cc(t,c,V[se+257]),c+=K[se+257],se>7&&($i(t,c,de>>23&31),c+=nd[se]);var me=de&31;Cc(t,c,Y[me]),c+=q[me],me>3&&(Cc(t,c,de>>5&8191),c+=rd[me])}else Cc(t,c,V[de]),c+=K[de]}return Cc(t,c,V[256]),c+K[256]},dee=new Fm([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),dF=new on(0),hee=function(e,t,r,n,i,a){var s=a.z||e.length,o=new on(n+s+5*(1+Math.ceil(s/7e3))+i),l=o.subarray(n,o.length-i),u=a.l,c=(a.r||0)&7;if(t){c&&(l[0]=a.r>>3);for(var d=dee[t-1],p=d>>13,m=d&8191,w=(1<<r)-1,g=a.p||new Qn(32768),_=a.h||new Qn(w+1),E=Math.ceil(r/3),x=2*E,b=function(We){return(e[We]^e[We+1]<<E^e[We+2]<<x)&w},C=new Fm(25e3),v=new Qn(288),k=new Qn(32),T=0,N=0,M=a.i||0,j=0,D=a.w||0,$=0;M+2<s;++M){var X=b(M),W=M&32767,H=_[X];if(g[W]=H,_[X]=W,D<=M){var V=s-M;if((T>7e3||j>24576)&&(V>423||!u)){c=AT(e,l,0,C,v,k,N,j,$,M-$,c),j=T=N=0,$=M;for(var K=0;K<286;++K)v[K]=0;for(var K=0;K<30;++K)k[K]=0}var Y=2,q=0,F=m,G=W-H&32767;if(V>2&&X==b(M-G))for(var z=Math.min(p,V)-1,B=Math.min(32767,M),se=Math.min(258,V);G<=B&&--F&&W!=H;){if(e[M+Y]==e[M+Y-G]){for(var de=0;de<se&&e[M+de]==e[M+de-G];++de);if(de>Y){if(Y=de,q=G,de>z)break;for(var me=Math.min(G,de-2),Ee=0,K=0;K<me;++K){var Ie=M-G+K&32767,Ne=g[Ie],Le=Ie-Ne&32767;Le>Ee&&(Ee=Le,H=Ie)}}}W=H,H=g[W],G+=W-H&32767}if(q){C[j++]=268435456|w1[Y]<<18|CT[q];var He=w1[Y]&31,Oe=CT[q]&31;N+=nd[He]+rd[Oe],++v[257+He],++k[Oe],D=M+Y,++T}else C[j++]=e[M],++v[e[M]]}}for(M=Math.max(M,D);M<s;++M)C[j++]=e[M],++v[e[M]];c=AT(e,l,u,C,v,k,N,j,$,M-$,c),u||(a.r=c&7|l[c/8|0]<<3,c-=7,a.h=_,a.p=g,a.i=M,a.w=D)}else{for(var M=a.w||0;M<s+u;M+=65535){var Fe=M+65535;Fe>=s&&(l[c/8|0]=u,Fe=s),c=fF(l,c+1,e.subarray(M,Fe))}a.i=s}return id(o,0,n+Lm(c)+i)},hF=function(){var e=1,t=0;return{p:function(r){for(var n=e,i=t,a=r.length|0,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=n+=r[s];n=(n&65535)+15*(n>>16),i=(i&65535)+15*(i>>16)}e=n,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},pee=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),s=new on(a.length+e.length);s.set(a),s.set(e,a.length),e=s,i.w=a.length}return hee(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,i)},mee=function(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r},TT=function(e,t,r){for(var n=e(),i=e.toString(),a=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<n.length;++s){var o=n[s],l=a[s];if(typeof o=="function"){t+=";"+l+"=";var u=o.toString();if(o.prototype)if(u.indexOf("[native code]")!=-1){var c=u.indexOf(" ",8)+1;t+=u.slice(c,u.indexOf("(",c))}else{t+=u;for(var d in o.prototype)t+=";"+l+".prototype."+d+"="+o.prototype[d].toString()}else t+=u}else r[l]=o}return t},Bh=[],gee=function(e){var t=[];for(var r in e)e[r].buffer&&t.push((e[r]=new e[r].constructor(e[r])).buffer);return t},vee=function(e,t,r,n){if(!Bh[r]){for(var i="",a={},s=e.length-1,o=0;o<s;++o)i=TT(e[o],i,a);Bh[r]={c:TT(e[s],i,a),e:a}}var l=mee({},Bh[r].e);return uee(Bh[r].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",r,l,gee(l),n)},yee=function(){return[on,Qn,Fm,nd,rd,Jp,rx,oF,sF,lF,Zp,uF,Kr,bp,xr,xp,Lm,id,On,cF,ix,pF,mF]},pF=function(e){return postMessage(e,[e.buffer])},mF=function(e){return e&&{out:e.size&&new on(e.size),dictionary:e.dictionary}},wee=function(e,t,r,n,i,a){var s=vee(r,n,i,function(o,l){s.terminate(),a(o,l)});return s.postMessage([e,t],t.consume?[e.buffer]:[]),function(){s.terminate()}},ci=function(e,t){return e[t]|e[t+1]<<8},Gr=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},wy=function(e,t){return Gr(e,t)+Gr(e,t+4)*4294967296},gF=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},_ee=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=hF();i.p(t.dictionary),gF(e,2,i.d())}};function bee(e,t,r){return r||(r=t,t={}),typeof r!="function"&&On(7),wee(e,t,[yee],function(n){return pF(ix(n.data[0],mF(n.data[1])))},1,r)}function ix(e,t){return cF(e,{i:2},t&&t.out,t&&t.dictionary)}function cde(e,t){t||(t={});var r=hF();r.p(e);var n=pee(e,t,t.dictionary?6:2,4);return _ee(n,t),gF(n,n.length-4,r.d()),n}var b1=typeof TextDecoder<"u"&&new TextDecoder,xee=0;try{b1.decode(dF,{stream:!0}),xee=1}catch{}var Eee=function(e){for(var t="",r=0;;){var n=e[r++],i=(n>127)+(n>223)+(n>239);if(r+i>e.length)return{s:t,r:id(e,r-1)};i?i==3?(n=((n&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|n>>10,56320|n&1023)):i&1?t+=String.fromCharCode((n&31)<<6|e[r++]&63):t+=String.fromCharCode((n&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(n)}};function vF(e,t){if(t){for(var r="",n=0;n<e.length;n+=16384)r+=String.fromCharCode.apply(null,e.subarray(n,n+16384));return r}else{if(b1)return b1.decode(e);var i=Eee(e),a=i.s,r=i.r;return r.length&&On(8),a}}var See=function(e,t){return t+30+ci(e,t+26)+ci(e,t+28)},Cee=function(e,t,r){var n=ci(e,t+28),i=vF(e.subarray(t+46,t+46+n),!(ci(e,t+8)&2048)),a=t+46+n,s=Gr(e,t+20),o=r&&s==4294967295?kee(e,a):[s,Gr(e,t+24),Gr(e,t+42)],l=o[0],u=o[1],c=o[2];return[ci(e,t+10),l,u,i,a+ci(e,t+30)+ci(e,t+32),c]},kee=function(e,t){for(;ci(e,t)!=1;t+=4+ci(e,t+2));return[wy(e,t+12),wy(e,t+4),wy(e,t+20)]},IT=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(e){e()};function Aee(e,t,r){r||(r=t,t={}),typeof r!="function"&&On(7);var n=[],i=function(){for(var _=0;_<n.length;++_)n[_]()},a={},s=function(_,E){IT(function(){r(_,E)})};IT(function(){s=r});for(var o=e.length-22;Gr(e,o)!=101010256;--o)if(!o||e.length-o>65558)return s(On(13,0,1),null),i;var l=ci(e,o+8);if(l){var u=l,c=Gr(e,o+16),d=c==4294967295||u==65535;if(d){var p=Gr(e,o-12);d=Gr(e,p)==101075792,d&&(u=l=Gr(e,p+32),c=Gr(e,p+48))}for(var m=t&&t.filter,w=function(_){var E=Cee(e,c,d),x=E[0],b=E[1],C=E[2],v=E[3],k=E[4],T=E[5],N=See(e,T);c=k;var M=function(D,$){D?(i(),s(D,null)):($&&(a[v]=$),--l||s(null,a))};if(!m||m({name:v,size:b,originalSize:C,compression:x}))if(!x)M(null,id(e,N,N+b));else if(x==8){var j=e.subarray(N,N+b);if(C<524288||b>.8*C)try{M(null,ix(j,{out:new on(C)}))}catch(D){M(D,null)}else n.push(bee(j,{size:C},M))}else M(On(14,"unknown compression type "+x,1),null);else M(null,null)},g=0;g<u;++g)w(g)}else s(null,{});return i}function _y(e,t){return{id:t&&e.indis.some(n=>n.id===t.id)?t.id:e.indis[0].id,generation:(t==null?void 0:t.generation)||0}}function yF(e,t,r){const n=_Z(e,r||new Map);if(!r||r.size===0){const i={...n};delete i.images;const a=JSON.stringify(i);try{sessionStorage.setItem(t,a)}catch(s){console.warn("Failed to store data in session storage: "+s)}}return n}function jm(e){if(!e)return;const t=e instanceof Map?e.values():e;for(const r of t)if(r.startsWith("blob:"))try{URL.revokeObjectURL(r)}catch{}}async function Tee(e){const t=lee.Buffer.from(await e.arrayBuffer()),r=await new Promise((a,s)=>{Aee(t,(o,l)=>{o?s(o):a(l)})});let n;const i=new Map;try{for(const a of Object.keys(r))if(a.endsWith(".ged"))n?console.warn("Multiple GEDCOM files found in zip archive."):n=vF(r[a]);else{const s=a.replace(/\\/g,"/").toLowerCase();i.set(s,URL.createObjectURL(new Blob([r[a]])))}if(!n)throw new Error("GEDCOM file not found in zip archive.")}catch(a){throw jm(i),a}return{gedcom:n,images:i}}async function wF(e){return await e.slice(0,2).text()==="PK"?Tee(e):{gedcom:await e.text(),images:new Map}}async function _F(e,t){const{gedcom:r,images:n}=await wF(e);try{return yF(r,t,n)}catch(i){throw jm(n),i}}async function Iee(e,t){try{const s=sessionStorage.getItem(e);if(s)return JSON.parse(s)}catch(s){console.warn("Failed to load data from session storage: "+s)}const r=e.match(/https:\/\/drive\.google\.com\/file\/d\/(.*)\/.*/);r&&(e=`https://drive.google.com/uc?id=${r[1]}&export=download`);const n=e.match(/https:\/\/drive\.google\.com\/open\?id=([^&]*)&?.*/);n&&(e=`https://drive.google.com/uc?id=${n[1]}&export=download`);const i=t?"https://topolaproxy.bieda.it/"+e:e,a=await window.fetch(i);if(a.status!==200)throw new Error(a.statusText);return _F(await a.blob(),e)}async function bF(e,t,r){try{const n=sessionStorage.getItem(e);if(n)return JSON.parse(n)}catch(n){console.warn("Failed to load data from session storage: "+n)}if(!t)throw new vu("ERROR_LOADING_UPLOADED_FILE","Error loading data. Please upload your file again.");try{return yF(t,e,r)}catch(n){throw jm(r),n}}class Pee{isNewData(t,r,n){return t.spec.hash!==r.spec.hash}async loadData(t){try{const r=await bF(t.spec.hash,t.spec.gedcom,t.spec.images),n=ex(r.gedcom.head);return vn("upload_file_loaded",{event_label:n,event_value:t.spec.images&&t.spec.images.size||0}),r}catch(r){throw vn("upload_file_error"),r}}}class Ree{isNewData(t,r,n){return t.spec.url!==r.spec.url}async loadData(t){try{const r=await Iee(t.spec.url,t.spec.handleCors),n=ex(r.gedcom.head);return vn("upload_file_loaded",{event_label:n}),r}catch(r){throw vn("url_file_error"),r}}}class Oee{isNewData(t,r,n){return!1}async onMessage(t,r,n){if(t.message==="parent_ready")window.parent.postMessage({message:"ready"},"*");else if(t.message==="gedcom"){const i=t.gedcom;if(!i)return;try{const a=await bF("",i),s=ex(a.gedcom.head);vn("embedded_file_loaded",{event_label:s}),r(a)}catch(a){vn("embedded_file_error"),n(a)}}}async loadData(t){return new Promise((r,n)=>{window.parent.postMessage({message:"ready"},"*"),window.addEventListener("message",i=>this.onMessage(i.data,r,n))})}}const xF="https://accounts.google.com/gsi/client",EF="https://apis.google.com/js/api.js",Nee={[xF]:"google",[EF]:"gapi"},by="google-drive-token",xy="google-drive-token-expires-at",SF="google-drive:",Ey=new Map;function PT(e){const t=Ey.get(e);if(t)return t;const r=document.querySelector(`script[src="${e}"]`);if(r){const i=Nee[e];if(i&&window[i])return Promise.resolve();r.remove()}const n=new Promise((i,a)=>{const s=document.createElement("script");s.src=e,s.async=!0,s.defer=!0,s.onload=()=>{i()},s.onerror=()=>{Ey.delete(e),s.remove(),a(new Error(`Failed to load script: ${e}`))},document.head.appendChild(s)});return Ey.set(e,n),n}function Mee(e){try{const t=[];for(let r=0;r<sessionStorage.length;r++){const n=sessionStorage.key(r);n&&n.startsWith(SF)&&n!==e&&t.push(n)}t.forEach(r=>sessionStorage.removeItem(r))}catch(t){console.warn("Failed to clear Google Drive cache from session storage:",t)}}const Dee=["application/x-gedcom","text/vnd.familysearch.gedcom","application/x-zip"].join(",");class Fee{constructor(){this.initPromise=null,this.tokenClient=null,this.pendingAuthResolve=null,this.pendingAuthReject=null,this.pendingAuthPromise=null}init(){return this.initPromise?this.initPromise:(this.initPromise=(async()=>{try{if(await Promise.all([PT(xF),PT(EF)]),!window.gapi||!window.google)throw new Error("Google SDK scripts loaded but global variables are missing.");await new Promise((r,n)=>{gapi.load("picker",{callback:r,onerror:()=>n(new Error("Failed to load Google Picker API"))})});const t="1084257909772-d08jua7q9j5aev7u10o94d84vhm8bb01.apps.googleusercontent.com";this.tokenClient=google.accounts.oauth2.initTokenClient({client_id:t,scope:"https://www.googleapis.com/auth/drive.file",callback:r=>{if(r.error){this.pendingAuthReject&&this.pendingAuthReject(r);return}if(r.access_token){const n=Date.now()+Number(r.expires_in)*1e3;sessionStorage.setItem(by,r.access_token),sessionStorage.setItem(xy,String(n)),this.pendingAuthResolve&&this.pendingAuthResolve(r.access_token)}else this.pendingAuthReject&&this.pendingAuthReject(new Error("No access token returned."))}})}catch(t){throw console.error("Error during Google SDK initialization:",t),this.initPromise=null,t}})(),this.initPromise)}getAccessToken(){const t=sessionStorage.getItem(by),r=sessionStorage.getItem(xy);if(t&&r){const n=Number(r);if(Date.now()<n)return t}return null}async requestToken(t=!1){if(await this.init(),!this.tokenClient)throw new Error("Google Identity Services not initialized or credentials missing.");const r=this.getAccessToken();if(r&&!t)return r;if(this.pendingAuthPromise)if(t)this.pendingAuthReject&&this.pendingAuthReject(new Error("Authentication superseded by a new request.")),this.pendingAuthPromise=null,this.pendingAuthResolve=null,this.pendingAuthReject=null;else return this.pendingAuthPromise;const n=new Promise((i,a)=>{this.pendingAuthResolve=o=>{this.pendingAuthPromise=null,this.pendingAuthResolve=null,this.pendingAuthReject=null,i(o)},this.pendingAuthReject=o=>{this.pendingAuthPromise=null,this.pendingAuthResolve=null,this.pendingAuthReject=null,a(o)};const s=this.tokenClient;s&&s.requestAccessToken({prompt:t?"select_account":""})});return t||(this.pendingAuthPromise=n),n}async showPicker(t,r){await this.init();const n=this.getAccessToken();if(!n)throw new Error("User not authenticated.");const i="AIzaSyAGR7ixxAauygq1Xs-84Drvgl3f0TUS670",s="1084257909772-d08jua7q9j5aev7u10o94d84vhm8bb01.apps.googleusercontent.com".split("-")[0],o=Math.min(800,window.innerWidth-40),l=Math.min(600,window.innerHeight-40),u=new google.picker.DocsView(google.picker.ViewId.DOCS).setMimeTypes(Dee).setMode(google.picker.DocsViewMode.LIST);new google.picker.PickerBuilder().addView(u).setOAuthToken(n).setDeveloperKey(i).setAppId(s).setSize(o,l).setOrigin(window.location.origin).setCallback(d=>{const p=d;if(p.action===google.picker.Action.PICKED){const g=p[google.picker.Response.DOCUMENTS][0][google.picker.Document.ID];t(g)}else p.action===google.picker.Action.CANCEL&&r&&r()}).build().setVisible(!0)}async signOut(){await this.init();const t=this.getAccessToken();if(t)try{google.accounts.oauth2.revoke(t,()=>{})}catch(r){console.warn("Failed to revoke Google OAuth token:",r)}sessionStorage.removeItem(by),sessionStorage.removeItem(xy)}}const Qa=new Fee;class Nf extends Error{constructor(t){super(t),this.name="GoogleDriveAuthError",Object.setPrototypeOf(this,Nf.prototype)}}class Lee{isNewData(t,r,n){return t.spec.fileId!==r.spec.fileId}async loadData(t){const r=t.spec.fileId,n=`${SF}${r}`;try{const o=sessionStorage.getItem(n);if(o)return JSON.parse(o)}catch(o){console.warn("Failed to load data from session storage: "+o)}const i=Qa.getAccessToken();if(!i)throw new Nf("No active Google Drive access token found.");const a=await window.fetch(`https://www.googleapis.com/drive/v3/files/${r}?alt=media`,{headers:{Authorization:`Bearer ${i}`}}).catch(o=>{throw new Error(`Network error fetching file from Google Drive: ${o.message}`)});if(a.status===401||a.status===403||a.status===404)throw new Nf(`Access denied or file not found (HTTP ${a.status}).`);if(a.status!==200)throw new Error(`Failed to fetch file from Google Drive (HTTP ${a.status}): ${a.statusText}`);const s=await a.blob();return _F(s,n)}}const jee=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 zh(e){const t=e.month&&jee.get(e.month)||void 0;return[e.qualifier,e.day,t,e.year].filter(r=>r!==void 0).join(" ")}function Bee(e){return e.date?zh(e.date):e.dateRange?e.dateRange.from&&e.dateRange.to?`BET ${zh(e.dateRange.from)} AND ${e.dateRange.to}`:e.dateRange.from?`AFT ${zh(e.dateRange.from)}`:e.dateRange.to?`BEF ${zh(e.dateRange.to)}`:"":""}function Sy(e,t,r){return{level:1,pointer:"",tag:"NAME",data:`${t||""} /${r||""}/`,tree:[{level:2,pointer:"",tag:"TYPE",data:e,tree:[]}]}}function x1(e){const t=[];return g1(e)&&t.push({level:2,pointer:"",tag:"DATE",data:Bee(e),tree:[]}),e.place&&t.push({level:2,pointer:"",tag:"PLAC",data:e.place,tree:[]}),t}function zee(e,t){var r,n;return[{level:2,pointer:"",tag:"FILE",data:t||e.url,tree:[{level:3,pointer:"",tag:"FORM",data:((r=e.title)==null?void 0:r.split(".").pop())||"",tree:[]},{level:3,pointer:"",tag:"TITL",data:((n=e.title)==null?void 0:n.split(".")[0])||"",tree:[]}]}]}function Uee(e,t,r){const n=e.id.replace(/ /g,"_"),i={level:0,pointer:`@${e.id}@`,tag:"INDI",data:"",tree:[]};return r.birth&&i.tree.push(Sy("birth",e.firstName,r.birth)),r.married&&i.tree.push(Sy("married",e.firstName,r.married)),r.aka&&i.tree.push(Sy("aka",e.firstName,r.aka)),e.birth&&i.tree.push({level:1,pointer:"",tag:"BIRT",data:"",tree:x1(e.birth)}),e.death&&i.tree.push({level:1,pointer:"",tag:"DEAT",data:"",tree:x1(e.death)}),e.famc&&i.tree.push({level:1,pointer:"",tag:"FAMC",data:`@${e.famc}@`,tree:[]}),(e.fams||[]).forEach(a=>i.tree.push({level:1,pointer:"",tag:"FAMS",data:`@${a}@`,tree:[]})),e.id.startsWith("~")||i.tree.push({level:1,pointer:"",tag:"WWW",data:`https://www.wikitree.com/wiki/${n}`,tree:[]}),(e.images||[]).forEach(a=>{i.tree.push({level:1,pointer:"",tag:"OBJE",data:"",tree:zee(a,t.get(e.id))})}),i}function $ee(e){const t={level:0,pointer:`@${e.id}@`,tag:"FAM",data:"",tree:[]};return e.wife&&t.tree.push({level:1,pointer:"",tag:"WIFE",data:`@${e.wife}@`,tree:[]}),e.husb&&t.tree.push({level:1,pointer:"",tag:"HUSB",data:`@${e.husb}@`,tree:[]}),(e.children||[]).forEach(r=>t.tree.push({level:1,pointer:r,tag:"CHILD",data:"",tree:[]})),e.marriage&&t.tree.push({level:1,pointer:"",tag:"MARR",data:"",tree:x1(e.marriage)}),t}function Hee(e,t,r){const n={},i={};return e.indis.forEach(a=>{n[a.id]=Uee(a,t,r.get(a.id)||{})}),e.fams.forEach(a=>{i[a.id]=$ee(a)}),{head:{level:0,pointer:"",tag:"HEAD",data:"",tree:[]},indis:n,fams:i,other:{}}}var Ho={},kt={},Ep={exports:{}};/*! js-cookie v3.0.7 | MIT */var qee=Ep.exports,RT;function Gee(){return RT||(RT=1,function(e,t){(function(r,n){e.exports=n()})(qee,function(){function r(s){for(var o=1;o<arguments.length;o++){var l=arguments[o];for(var u in l)u!=="__proto__"&&(s[u]=l[u])}return s}var n={read:function(s){return s[0]==='"'&&(s=s.slice(1,-1)),s.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(s){return encodeURIComponent(s).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function i(s,o){function l(c,d,p){if(!(typeof document>"u")){p=r({},o,p),typeof p.expires=="number"&&(p.expires=new Date(Date.now()+p.expires*864e5)),p.expires&&(p.expires=p.expires.toUTCString()),c=encodeURIComponent(c).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var m="";for(var w in p)p[w]&&(m+="; "+w,p[w]!==!0&&(m+="="+p[w].split(";")[0]));return document.cookie=c+"="+s.write(d,c)+m}}function u(c){if(!(typeof document>"u"||arguments.length&&!c)){for(var d=document.cookie?document.cookie.split("; "):[],p={},m=0;m<d.length;m++){var w=d[m].split("="),g=w.slice(1).join("=");try{var _=decodeURIComponent(w[0]);if(_ in p||(p[_]=s.read(g,_)),c===_)break}catch{}}return c?p[c]:p}}return Object.create({set:l,get:u,remove:function(c,d){l(c,"",r({},d,{expires:-1}))},withAttributes:function(c){return i(this.converter,r({},this.attributes,c))},withConverter:function(c){return i(r({},this.converter,c),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(s)}})}var a=i(n,{path:"/"});return a})}(Ep)),Ep.exports}var Uh={exports:{}},OT;function Wee(){return OT||(OT=1,function(e,t){var r=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof hi<"u"&&hi,n=function(){function a(){this.fetch=!1,this.DOMException=r.DOMException}return a.prototype=r,new a}();(function(a){(function(s){var o=typeof a<"u"&&a||typeof self<"u"&&self||typeof hi<"u"&&hi||{},l={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function u(H){return H&&DataView.prototype.isPrototypeOf(H)}if(l.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(H){return H&&c.indexOf(Object.prototype.toString.call(H))>-1};function p(H){if(typeof H!="string"&&(H=String(H)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(H)||H==="")throw new TypeError('Invalid character in header field name: "'+H+'"');return H.toLowerCase()}function m(H){return typeof H!="string"&&(H=String(H)),H}function w(H){var V={next:function(){var K=H.shift();return{done:K===void 0,value:K}}};return l.iterable&&(V[Symbol.iterator]=function(){return V}),V}function g(H){this.map={},H instanceof g?H.forEach(function(V,K){this.append(K,V)},this):Array.isArray(H)?H.forEach(function(V){if(V.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+V.length);this.append(V[0],V[1])},this):H&&Object.getOwnPropertyNames(H).forEach(function(V){this.append(V,H[V])},this)}g.prototype.append=function(H,V){H=p(H),V=m(V);var K=this.map[H];this.map[H]=K?K+", "+V:V},g.prototype.delete=function(H){delete this.map[p(H)]},g.prototype.get=function(H){return H=p(H),this.has(H)?this.map[H]:null},g.prototype.has=function(H){return this.map.hasOwnProperty(p(H))},g.prototype.set=function(H,V){this.map[p(H)]=m(V)},g.prototype.forEach=function(H,V){for(var K in this.map)this.map.hasOwnProperty(K)&&H.call(V,this.map[K],K,this)},g.prototype.keys=function(){var H=[];return this.forEach(function(V,K){H.push(K)}),w(H)},g.prototype.values=function(){var H=[];return this.forEach(function(V){H.push(V)}),w(H)},g.prototype.entries=function(){var H=[];return this.forEach(function(V,K){H.push([K,V])}),w(H)},l.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function _(H){if(!H._noBody){if(H.bodyUsed)return Promise.reject(new TypeError("Already read"));H.bodyUsed=!0}}function E(H){return new Promise(function(V,K){H.onload=function(){V(H.result)},H.onerror=function(){K(H.error)}})}function x(H){var V=new FileReader,K=E(V);return V.readAsArrayBuffer(H),K}function b(H){var V=new FileReader,K=E(V),Y=/charset=([A-Za-z0-9_-]+)/.exec(H.type),q=Y?Y[1]:"utf-8";return V.readAsText(H,q),K}function C(H){for(var V=new Uint8Array(H),K=new Array(V.length),Y=0;Y<V.length;Y++)K[Y]=String.fromCharCode(V[Y]);return K.join("")}function v(H){if(H.slice)return H.slice(0);var V=new Uint8Array(H.byteLength);return V.set(new Uint8Array(H)),V.buffer}function k(){return this.bodyUsed=!1,this._initBody=function(H){this.bodyUsed=this.bodyUsed,this._bodyInit=H,H?typeof H=="string"?this._bodyText=H:l.blob&&Blob.prototype.isPrototypeOf(H)?this._bodyBlob=H:l.formData&&FormData.prototype.isPrototypeOf(H)?this._bodyFormData=H:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(H)?this._bodyText=H.toString():l.arrayBuffer&&l.blob&&u(H)?(this._bodyArrayBuffer=v(H.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(H)||d(H))?this._bodyArrayBuffer=v(H):this._bodyText=H=Object.prototype.toString.call(H):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof H=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(H)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var H=_(this);if(H)return H;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 H=_(this);return H||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(l.blob)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var H=_(this);if(H)return H;if(this._bodyBlob)return b(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(C(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(j)}),this.json=function(){return this.text().then(JSON.parse)},this}var T=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function N(H){var V=H.toUpperCase();return T.indexOf(V)>-1?V:H}function M(H,V){if(!(this instanceof M))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');V=V||{};var K=V.body;if(H instanceof M){if(H.bodyUsed)throw new TypeError("Already read");this.url=H.url,this.credentials=H.credentials,V.headers||(this.headers=new g(H.headers)),this.method=H.method,this.mode=H.mode,this.signal=H.signal,!K&&H._bodyInit!=null&&(K=H._bodyInit,H.bodyUsed=!0)}else this.url=String(H);if(this.credentials=V.credentials||this.credentials||"same-origin",(V.headers||!this.headers)&&(this.headers=new g(V.headers)),this.method=N(V.method||this.method||"GET"),this.mode=V.mode||this.mode||null,this.signal=V.signal||this.signal||function(){if("AbortController"in o){var F=new AbortController;return F.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&K)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(K),(this.method==="GET"||this.method==="HEAD")&&(V.cache==="no-store"||V.cache==="no-cache")){var Y=/([?&])_=[^&]*/;if(Y.test(this.url))this.url=this.url.replace(Y,"$1_="+new Date().getTime());else{var q=/\?/;this.url+=(q.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}M.prototype.clone=function(){return new M(this,{body:this._bodyInit})};function j(H){var V=new FormData;return H.trim().split("&").forEach(function(K){if(K){var Y=K.split("="),q=Y.shift().replace(/\+/g," "),F=Y.join("=").replace(/\+/g," ");V.append(decodeURIComponent(q),decodeURIComponent(F))}}),V}function D(H){var V=new g,K=H.replace(/\r?\n[\t ]+/g," ");return K.split("\r").map(function(Y){return Y.indexOf(`
`)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var q=Y.split(":"),F=q.shift().trim();if(F){var G=q.join(":").trim();try{V.append(F,G)}catch(z){console.warn("Response "+z.message)}}}),V}k.call(M.prototype);function $(H,V){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(V||(V={}),this.type="default",this.status=V.status===void 0?200:V.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=V.statusText===void 0?"":""+V.statusText,this.headers=new g(V.headers),this.url=V.url||"",this._initBody(H)}k.call($.prototype),$.prototype.clone=function(){return new $(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},$.error=function(){var H=new $(null,{status:200,statusText:""});return H.ok=!1,H.status=0,H.type="error",H};var X=[301,302,303,307,308];$.redirect=function(H,V){if(X.indexOf(V)===-1)throw new RangeError("Invalid status code");return new $(null,{status:V,headers:{location:H}})},s.DOMException=o.DOMException;try{new s.DOMException}catch{s.DOMException=function(V,K){this.message=V,this.name=K;var Y=Error(V);this.stack=Y.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function W(H,V){return new Promise(function(K,Y){var q=new M(H,V);if(q.signal&&q.signal.aborted)return Y(new s.DOMException("Aborted","AbortError"));var F=new XMLHttpRequest;function G(){F.abort()}F.onload=function(){var se={statusText:F.statusText,headers:D(F.getAllResponseHeaders()||"")};q.url.indexOf("file://")===0&&(F.status<200||F.status>599)?se.status=200:se.status=F.status,se.url="responseURL"in F?F.responseURL:se.headers.get("X-Request-URL");var de="response"in F?F.response:F.responseText;setTimeout(function(){K(new $(de,se))},0)},F.onerror=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},F.ontimeout=function(){setTimeout(function(){Y(new TypeError("Network request timed out"))},0)},F.onabort=function(){setTimeout(function(){Y(new s.DOMException("Aborted","AbortError"))},0)};function z(se){try{return se===""&&o.location.href?o.location.href:se}catch{return se}}if(F.open(q.method,z(q.url),!0),q.credentials==="include"?F.withCredentials=!0:q.credentials==="omit"&&(F.withCredentials=!1),"responseType"in F&&(l.blob?F.responseType="blob":l.arrayBuffer&&(F.responseType="arraybuffer")),V&&typeof V.headers=="object"&&!(V.headers instanceof g||o.Headers&&V.headers instanceof o.Headers)){var B=[];Object.getOwnPropertyNames(V.headers).forEach(function(se){B.push(p(se)),F.setRequestHeader(se,m(V.headers[se]))}),q.headers.forEach(function(se,de){B.indexOf(de)===-1&&F.setRequestHeader(de,se)})}else q.headers.forEach(function(se,de){F.setRequestHeader(de,se)});q.signal&&(q.signal.addEventListener("abort",G),F.onreadystatechange=function(){F.readyState===4&&q.signal.removeEventListener("abort",G)}),F.send(typeof q._bodyInit>"u"?null:q._bodyInit)})}return W.polyfill=!0,o.fetch||(o.fetch=W,o.Headers=g,o.Request=M,o.Response=$),s.Headers=g,s.Request=M,s.Response=$,s.fetch=W,Object.defineProperty(s,"__esModule",{value:!0}),s})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=r.fetch?r:n;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(Uh,Uh.exports)),Uh.exports}var Cy,NT;function Vee(){return NT||(NT=1,Cy=typeof self=="object"?self.FormData:window.FormData),Cy}var MT;function Qee(){if(MT)return kt;MT=1;var e=kt&&kt.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(kt,"__esModule",{value:!0}),kt.login=kt.clientLogin=kt.navigateToLoginPage=kt.getLoggedInUserName=kt.getPeople=kt.getRelatives=kt.getDescendants=kt.getAncestors=kt.getPerson=kt.wikiTreeGet=kt.fetchWikiTree=kt.WikiTreeError=void 0;const t=e(Gee()),r=Wee(),n=e(Vee()),i="https://api.wikitree.com/api.php",a="wikitree-js",s="wikidb_wtb_UserName";class o extends Error{constructor(T){super(T),this.name="WikiTreeError"}}kt.WikiTreeError=o;async function l(k,T){const N=new n.default;N.append("format","json"),N.append("appId",(T==null?void 0:T.appId)??a);for(const D in k)k[D]&&N.append(D,k[D]);const M=(T==null?void 0:T.apiUrl)||i,j={method:"POST",redirect:"manual",body:N,credentials:v(M)?"include":void 0};return T!=null&&T.auth&&(j.headers={Cookie:T.auth.cookies}),await(0,r.fetch)(M,j)}kt.fetchWikiTree=l;async function u(k,T){var j;const M=await(await l(k,T)).json();if((j=M[0])!=null&&j.status)throw new o(M[0].status);return M}kt.wikiTreeGet=u;async function c(k,T,N){const M={action:"getPerson",key:k,bioFormat:T==null?void 0:T.bioFormat,fields:(T==null?void 0:T.fields)instanceof Array?T.fields.join(","):T==null?void 0:T.fields,resolveRedirect:T!=null&&T.resolveRedirect?"1":void 0};return(await u(M,N))[0].person}kt.getPerson=c;async function d(k,T,N){const M={action:"getAncestors",key:k,depth:T==null?void 0:T.depth,bioFormat:T==null?void 0:T.bioFormat,fields:(T==null?void 0:T.fields)instanceof Array?T.fields.join(","):T==null?void 0:T.fields,resolveRedirect:T!=null&&T.resolveRedirect?"1":void 0};return(await u(M,N))[0].ancestors}kt.getAncestors=d;async function p(k,T,N){const M={action:"getDescendants",key:k,depth:T==null?void 0:T.depth,bioFormat:T==null?void 0:T.bioFormat,fields:(T==null?void 0:T.fields)instanceof Array?T.fields.join(","):T==null?void 0:T.fields,resolveRedirect:T!=null&&T.resolveRedirect?"1":void 0};return(await u(M,N))[0].descendants}kt.getDescendants=p;async function m(k,T,N){var D;T!=null&&T.bioFormat&&!((D=T==null?void 0:T.fields)!=null&&D.includes("Bio"))&&console.warn('Setting bioFormat has no effect if the "Bio" field is not requested explicitly');const M={action:"getRelatives",keys:k.join(","),getParents:T!=null&&T.getParents?"true":void 0,getChildren:T!=null&&T.getChildren?"true":void 0,getSpouses:T!=null&&T.getSpouses?"true":void 0,getSiblings:T!=null&&T.getSiblings?"true":void 0,bioFormat:T==null?void 0:T.bioFormat,fields:(T==null?void 0:T.fields)instanceof Array?T.fields.join(","):T==null?void 0:T.fields},j=await u(M,N);return j[0].items===null?[]:j[0].items.map($=>$.person)}kt.getRelatives=m;async function w(k,T,N){var D;T!=null&&T.bioFormat&&!((D=T==null?void 0:T.fields)!=null&&D.includes("Bio"))&&console.warn('Setting bioFormat has no effect if the "Bio" field is not requested explicitly');const M={action:"getPeople",keys:k.join(","),siblings:T!=null&&T.siblings?"1":void 0,ancestors:T==null?void 0:T.ancestors,descendants:T==null?void 0:T.descendants,nuclear:T==null?void 0:T.nuclear,minGeneration:T==null?void 0:T.minGeneration,limit:T==null?void 0:T.limit,start:T==null?void 0:T.start,bioFormat:T==null?void 0:T.bioFormat,fields:(T==null?void 0:T.fields)instanceof Array?T.fields.join(","):T==null?void 0:T.fields},j=await u(M,N);return console.log(JSON.stringify(j,null,2)),j[0].people===null?[]:Object.values(j[0].people)}kt.getPeople=w;function g(k){if(!k)return t.default.get(s);const T=new RegExp(`${s}=(.*?);`),N=k.cookies.match(T);return N?N[1]:void 0}kt.getLoggedInUserName=g;function _(k){v(k)||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",i),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 M=document.createElement("input");M.setAttribute("name","returnURL"),M.setAttribute("type","hidden"),M.setAttribute("value",k),T.appendChild(N),T.appendChild(M),document.body.appendChild(T),T.submit()}kt.navigateToLoginPage=_;async function E(k,T){const M=(await u({action:"clientLogin",authcode:k},T)).clientLogin;return M.result==="Success"&&t.default.set(s,M.username),M}kt.clientLogin=E;async function x(k,T,N){const M=await b(k,T,N);return{cookies:await C(M,N)}}kt.login=x;async function b(k,T,N){const M=await l({action:"clientLogin",doLogin:1,returnURL:"https://x/",wpEmail:k,wpPassword:T},N);if(M.status!==302)throw new o("Invalid login credentials");return M.headers.get("location").replace("https://x/?authcode=","")}async function C(k,T){var j;const N=await l({action:"clientLogin",authcode:k},T);if(((j=(await N.json()).clientLogin)==null?void 0:j.result)!=="Success")throw new o("Could not authorize authcode");return N.headers.get("set-cookie")}function v(k){return k.match(/^https:\/\/[^/]*wikitree.com\/.*/)}return kt}var ky={},DT;function Kee(){return DT||(DT=1,Object.defineProperty(ky,"__esModule",{value:!0})),ky}var FT;function Yee(){return FT||(FT=1,function(e){var t=Ho&&Ho.__createBinding||(Object.create?function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}:function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]}),r=Ho&&Ho.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(Qee(),e),r(Kee(),e)}(Ho)),Ho}var nu=Yee();const CF="topola-viewer",ax="~Private",Xee=5,Jee=5;function Zee(e){try{return sessionStorage.getItem(e)}catch(t){console.warn("Failed to load data from session storage: "+t)}return null}function ete(e,t){try{return sessionStorage.setItem(e,t)}catch(r){console.warn("Failed to store data in session storage: "+r)}}function kF(e){const t=Zee(e);if(t)try{return JSON.parse(t)}catch(r){console.warn(`Failed to parse cached data for key ${e}: ${r}`)}return null}function AF(e,t){ete(e,JSON.stringify(t))}function TF(e){return Object.assign({appId:CF},e?{apiUrl:"https://topolaproxy.bieda.it/https://api.wikitree.com/api.php"}:{})}async function tte(e,t){const r=`wikitree:ancestors:${e}`,n=kF(r);if(n)return n;const i=await nu.getPeople([e],{ancestors:Xee},TF(t));return AF(r,i),i}async function ox(e,t){const r=[],n=[];if(e.forEach(a=>{const s=kF(`wikitree:relatives:${a}`);s?r.push(s):n.push(a)}),n.length===0)return r;const i=await nu.getRelatives(n,{getChildren:!0,getSpouses:!0},TF(t));if(!i){const a=n[0];throw new vu("WIKITREE_PROFILE_NOT_FOUND",`WikiTree profile ${a} not found`,{id:a})}return i.forEach(a=>{AF(`wikitree:relatives:${a.Name}`,a)}),r.concat(i)}async function nte(e,t){!t&&!nu.getLoggedInUserName()&&e&&(await nu.clientLogin(e,{appId:CF})).result==="Success"&&sessionStorage.clear()}async function rte(e,t){const r=(await ox([e],t))[0];if(!(r!=null&&r.Name)){const n=e;throw new vu("WIKITREE_PROFILE_NOT_ACCESSIBLE",`WikiTree profile ${n} is not accessible. Try logging in.`,{id:n})}return r}function ite(e){return Object.values(e.Spouses||{}).map(t=>t.Name)}async function ate(e,t){const r=await Promise.all(e.map(l=>tte(l,t))),n=r.flat().map(l=>l.Name).filter(l=>!!l),i=await ox(n,t),a=new Map,s=new Map;r.forEach((l,u)=>{const c=1e3*u;l.forEach(d=>{d.Id<0&&(d.Id-=c,d.Name=`${ax}${d.Id}`),d.Father<0&&(d.Father-=c,a.set(d.Id,d.Father)),d.Mother<0&&(d.Mother-=c,s.set(d.Id,d.Mother))})}),i.forEach(l=>{const u=a.get(l.Id);u&&(l.Father=u);const c=s.get(l.Id);c&&(l.Mother=c)});const o=r.flat().filter(l=>l.Id<0);return i.concat(o)}async function ote(e,t){const r=[];let n=[e],i=0;for(;n.length>0&&i<=Jee;){const a=await ox(n,t);r.push(...a);const s=a.flatMap(o=>Object.values(o.Spouses||{}));r.push(...s),n=a.flatMap(o=>Object.values(o.Children||{}).map(l=>l.Name)),i++}return r}async function ste(e,t){const r=window.location.hostname!=="apps.wikitree.com";await nte(t,r);const n=await rte(e,r),i=ite(n),a=ate([e].concat(i),r),s=ote(e,r),o=[...await a,...await s];return Array.from(new Map(o.map(l=>[l.Id,l])).values())}var Ay={},Ty={},Iy={},Py={},LT;function Es(){return LT||(LT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NumericUtils=void 0;var t=Cn(),r=function(){function n(){}return n.isNumeric=function(i,a){a===void 0&&(a="");try{n._formatNumericString(i,a)}catch{return!1}return!0},n.isInteger=function(i){return!!n.isNumeric(i)&&String(this._formatNumericString(i)).indexOf(".")<0},n.forceNumeric=function(i,a,s){if(a===void 0&&(a=""),s===void 0&&(s="must be numeric"),!this.isNumeric(i))throw new Error(a+" "+s)},n.forcePositiveInteger=function(i,a,s){if(a===void 0&&(a=""),s===void 0&&(s="must be a positive integer"),!this.isInteger(i)||i<=0)throw new Error(a+" "+s)},n.getNumeric=function(i,a){return a===void 0&&(a=""),Number(n._formatNumericString(i,a))},n.generateRandomInteger=function(i,a){if(!n.isInteger(a)||!n.isInteger(i))throw new Error("max and min must be integers");if(a<=i)throw new Error("max must be higher than min");return Math.floor(Math.random()*(a-i+1))+i},n._formatNumericString=function(i,a){if(a===void 0&&(a=""),a!==""&&a!=="."&&a!==",")throw new Error("Invalid decimal divider");if(t.StringUtils.isString(i)){var s=-1,o=(i=i.trim().replace(/\s/g,"")).lastIndexOf(","),l=i.lastIndexOf(".");switch(a){case".":if(t.StringUtils.countStringOccurences(i,".")>1||o>=0&&l>=0&&o>l)throw new Error(n.NON_NUMERIC_ERROR);l>0&&(s=l);break;case",":if(t.StringUtils.countStringOccurences(i,",")>1||o>=0&&l>=0&&l>o)throw new Error(n.NON_NUMERIC_ERROR);o>0&&(s=o);break;default:s=Math.max(o,l)}var u=(i=i.replace(/,/g,".")).split("."),c=u.length;if(i.slice(-1)==="."&&t.StringUtils.countStringOccurences(i,".")>1)throw new Error(n.NON_NUMERIC_ERROR);if(c>2){if(u[0].split("-").join("").length>3)throw new Error(n.NON_NUMERIC_ERROR);for(var d=1;d<c-1;d++)if(u[d].length!==3)throw new Error(n.NON_NUMERIC_ERROR)}i=s<0?t.StringUtils.replace(i,".",""):t.StringUtils.replace(i,".","",t.StringUtils.countStringOccurences(i,".")-1)}if(isNaN(parseFloat(i))||!isFinite(i))throw new Error(n.NON_NUMERIC_ERROR);return String(i)},n.NON_NUMERIC_ERROR="value is not numeric",n}();e.NumericUtils=r}(Py)),Py}var Ry={},Oy={},Ny={},jT;function Bm(){return jT||(jT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationManager=void 0;var t=Cn(),r=Es(),n=mr(),i=_o(),a=function(){function s(){this._validationStatus=[{tag:"",status:s.OK}],this._failedMessages=[]}return s.prototype.getStatus=function(o){o===void 0&&(o="");for(var l=0,u=n.ArrayUtils.isArray(o)?o:[o],c=0,d=this._validationStatus;c<d.length;c++){var p=d[c];(o===""||u.indexOf(p.tag)>=0)&&p.status>l&&(l=p.status)}return l},s.prototype.ok=function(o){return o===void 0&&(o=""),this.getStatus(o)===s.OK},s.prototype.notOk=function(o){return o===void 0&&(o=""),this.getStatus(o)!==s.OK},s.prototype.getFirstMessage=function(o){o===void 0&&(o="");for(var l=n.ArrayUtils.isArray(o)?o:[o],u=0,c=this._failedMessages;u<c.length;u++){var d=c[u];if(o===""||o===null||n.ArrayUtils.isArray(o)&&o.length===0||l.indexOf(d.tag)>=0)return d.message}return""},s.prototype.getLastMessage=function(o){o===void 0&&(o="");for(var l=n.ArrayUtils.isArray(o)?o:[o],u=this._failedMessages.length-1;u>=0;u--)if(o===""||o===null||n.ArrayUtils.isArray(o)&&o.length===0||l.indexOf(this._failedMessages[u].tag)>=0)return this._failedMessages[u].message;return""},s.prototype.isTrue=function(o,l,u,c){return l===void 0&&(l="value is not true"),u===void 0&&(u=""),c===void 0&&(c=!1),this._updateValidationStatus(o===!0,l,u,c)},s.prototype.isBoolean=function(o,l,u,c){return l===void 0&&(l="value is not a boolean"),u===void 0&&(u=""),c===void 0&&(c=!1),this._updateValidationStatus(typeof o=="boolean",l,u,c)},s.prototype.isNumeric=function(o,l,u,c){return l===void 0&&(l="value is not a number"),u===void 0&&(u=""),c===void 0&&(c=!1),this._updateValidationStatus(r.NumericUtils.isNumeric(o),l,u,c)},s.prototype.isNumericBetween=function(o,l,u,c,d,p){return c===void 0&&(c="value is not between min and max"),d===void 0&&(d=""),p===void 0&&(p=!1),this._updateValidationStatus(r.NumericUtils.isNumeric(o)&&o>=l&&o<=u,c,d,p)},s.prototype.isString=function(o,l,u,c){return l===void 0&&(l="value is not a string"),u===void 0&&(u=""),c===void 0&&(c=!1),this._updateValidationStatus(t.StringUtils.isString(o),l,u,c)},s.prototype.isUrl=function(o,l,u,c){return l===void 0&&(l="value is not an URL"),u===void 0&&(u=""),c===void 0&&(c=!1),this._updateValidationStatus(t.StringUtils.isUrl(o),l,u,c)},s.prototype.isArray=function(o,l,u,c){return l===void 0&&(l="value is not an array"),u===void 0&&(u=""),c===void 0&&(c=!1),this._updateValidationStatus(n.ArrayUtils.isArray(o),l,u,c)},s.prototype.isObject=function(o,l,u,c){return l===void 0&&(l="value is not an object"),u===void 0&&(u=""),c===void 0&&(c=!1),this._updateValidationStatus(i.ObjectUtils.isObject(o),l,u,c)},s.prototype.isFilledIn=function(o,l,u,c,d){return l===void 0&&(l=[]),u===void 0&&(u="value is required"),c===void 0&&(c=""),d===void 0&&(d=!1),this._updateValidationStatus(!t.StringUtils.isEmpty(o,l),u,c,d)},s.prototype.isObjectWithValidProperties=function(){return!1},s.prototype.isDate=function(){return!1},s.prototype.isMail=function(){return!1},s.prototype.isEqualTo=function(o,l,u,c,d){u===void 0&&(u="values are not equal"),c===void 0&&(c=""),d===void 0&&(d=!1);var p=!1;return n.ArrayUtils.isArray(o)&&n.ArrayUtils.isArray(l)?p=n.ArrayUtils.isEqualTo(o,l):i.ObjectUtils.isObject(o)&&i.ObjectUtils.isObject(l)?p=i.ObjectUtils.isEqualTo(o,l):o===l&&(p=!0),this._updateValidationStatus(p,u,c,d)},s.prototype.isMinimumWords=function(o){return o===""},s.prototype.isNIF=function(o){return o===""},s.prototype.isMinimumLength=function(o){return o===""},s.prototype.isMaximumLength=function(o){return o===""},s.prototype.isPostalCode=function(o){return o===""},s.prototype.isPhone=function(o){return o===""},s.prototype.isHtmlFormValid=function(o){return o===""},s.prototype.reset=function(){this._validationStatus=[{tag:"",status:s.OK}],this._failedMessages=[]},s.prototype._updateValidationStatus=function(o,l,u,c){if(u===void 0&&(u=""),!o){for(var d=n.ArrayUtils.isArray(u)?u:[u],p=0,m=d;p<m.length;p++){for(var w=m[p],g=!1,_=0,E=this._validationStatus;_<E.length;_++)if(E[_].tag===w){g=!0;break}g||this._validationStatus.push({tag:String(w),status:s.OK})}for(var x=0,b=d;x<b.length;x++){w=b[x];for(var C=0;C<this._validationStatus.length;C++)if(this._validationStatus[C].tag===w){this._failedMessages.push({tag:w,message:l}),this._validationStatus[C].status=c&&this._validationStatus[C].status!=s.ERROR?s.WARNING:s.ERROR;break}}}return o},s.OK=0,s.WARNING=1,s.ERROR=2,s}();e.ValidationManager=a}(Ny)),Ny}var BT;function _o(){return BT||(BT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectUtils=void 0;var t=mr(),r=Cn(),n=Bm(),i=function(){function a(){}return a.isObject=function(s){return!(t.ArrayUtils.isArray(s)||s===null||s instanceof RegExp||typeof s!="object")},a.getKeys=function(s){if(!a.isObject(s))throw new Error("parameter must be an object");return Object.keys(s)},a.isEqualTo=function(s,o){var l=new n.ValidationManager;if(!a.isObject(s)||!a.isObject(o))throw new Error("parameters must be objects");var u=a.getKeys(s).sort(),c=a.getKeys(o).sort();if(!t.ArrayUtils.isEqualTo(u,c))return!1;for(var d=0;d<u.length;d++)if(!l.isEqualTo(s[u[d]],o[c[d]]))return!1;return!0},a.isStringFound=function(s,o,l){if(l===void 0&&(l=!0),!a.isObject(s))throw new Error("parameter must be an object");if(!r.StringUtils.isString(o))throw new Error("str is not a string");for(var u=0,c=a.getKeys(s);u<c.length;u++){var d=c[u];if(r.StringUtils.isString(s[d])&&(l&&s[d].indexOf(o)>=0||!l&&s[d].toLowerCase().indexOf(o.toLowerCase())>=0)||t.ArrayUtils.isArray(s[d])&&t.ArrayUtils.isStringFound(s[d],o,l)||a.isObject(s[d])&&a.isStringFound(s[d],o,l))return!0}return!1},a.merge=function(s,o){if(!a.isObject(s)||!a.isObject(o))throw new Error("destination and source must objects");for(var l=0,u=a.getKeys(o);l<u.length;l++){var c=u[l];s.hasOwnProperty(c)&&a.isObject(o[c])&&a.isObject(s[c])?s[c]=a.merge(s[c],o[c]):s[c]=a.clone(o[c])}return s},a.clone=function(s){return a.apply(s,function(o){return a.isObject(o)?new s.constructor:o})},a.apply=function(s,o){if(t.ArrayUtils.isArray(s)){for(var l=[],u=0,c=s;u<c.length;u++){var d=c[u];l.push(a.apply(d,o))}return l}if(a.isObject(s)){l=new s.constructor;for(var p in s)l[p]=a.apply(s[p],o);return l}return o(s)},a}();e.ObjectUtils=i}(Oy)),Oy}var zT;function mr(){return zT||(zT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayUtils=void 0;var t=_o(),r=Cn(),n=Bm(),i=function(){function a(){}return a.isArray=function(s){return Object.prototype.toString.call(s)==="[object Array]"},a.isEqualTo=function(s,o){if(!a.isArray(s)||!a.isArray(o))throw new Error("parameters must be arrays");if(s.length!=o.length)return!1;for(var l=0,u=s.length;l<u;l++)if(a.isArray(s[l])&&a.isArray(o[l])){if(!a.isEqualTo(s[l],o[l]))return!1}else if(t.ObjectUtils.isObject(s[l])&&t.ObjectUtils.isObject(o[l])){if(!t.ObjectUtils.isEqualTo(s[l],o[l]))return!1}else if(s[l]!==o[l])return!1;return!0},a.isStringFound=function(s,o,l){if(l===void 0&&(l=!0),!a.isArray(s))throw new Error("parameter must be an array");if(!r.StringUtils.isString(o))throw new Error("str is not a string");for(var u=0;u<s.length;u++)if(r.StringUtils.isString(s[u])&&(l&&s[u].indexOf(o)>=0||!l&&s[u].toLowerCase().indexOf(o.toLowerCase())>=0)||a.isArray(s[u])&&a.isStringFound(s[u],o,l)||t.ObjectUtils.isObject(s[u])&&t.ObjectUtils.isStringFound(s[u],o,l))return!0;return!1},a.forceNonEmptyArray=function(s,o,l){if(o===void 0&&(o=""),l===void 0&&(l="must be a non empty array"),!this.isArray(s)||s.length<=0)throw new Error(o+" "+l)},a.removeElement=function(s,o){if(!a.isArray(s))throw new Error("parameter must be an array");var l=[];if(a.isArray(o))for(var u=0;u<s.length;u++)a.isArray(s[u])&&a.isEqualTo(o,s[u])||l.push(s[u]);else for(var c=0;c<s.length;c++)o!==s[c]&&l.push(s[c]);return l},a.removeDuplicateElements=function(s){if(!a.isArray(s))throw new Error("parameter must be an array");for(var o=[],l=s.length,u=new n.ValidationManager,c=0;c<l;c++){for(var d=!1,p=o.length,m=0;m<p;m++)if(u.isEqualTo(s[c],o[m])){d=!0;break}d||o.push(s[c])}return o},a.hasDuplicateElements=function(s){if(!a.isArray(s))throw new Error("parameter must be an array");for(var o=s.length,l=new n.ValidationManager,u=0;u<o;u++)for(var c=u+1;c<o;c++)if(l.isEqualTo(s[u],s[c]))return!0;return!1},a.getDuplicateElements=function(s){if(!a.isArray(s))throw new Error("parameter must be an array");for(var o=[],l=s.length,u=new n.ValidationManager,c=0;c<l;c++)for(var d=c+1;d<l;d++)u.isEqualTo(s[c],s[d])&&o.push(s[c]);return a.removeDuplicateElements(o)},a}();e.ArrayUtils=i}(Ry)),Ry}var UT;function Cn(){return UT||(UT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtils=void 0;var t=Es(),r=mr(),n=_o(),i=function(){function a(){}return a.isString=function(s){return typeof s=="string"||s instanceof String},a.forceString=function(s,o,l){if(o===void 0&&(o=""),l===void 0&&(l="must be a string"),!a.isString(s))throw new Error(o+" "+l)},a.isUrl=function(s){var o=!1;return!a.isEmpty(s)&&a.isString(s)&&(o=!!(s.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(s))),o},a.isEmpty=function(s,o){if(o===void 0&&(o=[]),!a.isString(s)){if(s==null||s=="")return!0;throw new Error("value is not a string")}return a.replace(s,o.concat([" ",`
`,"\r"," "]),"")===""},a.isStartingWith=function(s,o){if(o===void 0&&(o=[]),!r.ArrayUtils.isArray(o))throw new Error("startingValues is not an array");for(var l=0,u=o;l<u.length;l++){var c=u[l];if(s.lastIndexOf(c,0)===0)return!0}return!1},a.isEndingWith=function(s,o){if(o===void 0&&(o=[]),!r.ArrayUtils.isArray(o))throw new Error("endingValues is not an array");for(var l=0,u=o;l<u.length;l++){var c=u[l];if(c===""||s.indexOf(c,s.length-c.length)!==-1)return!0}return!1},a.forceNonEmptyString=function(s,o,l){if(o===void 0&&(o=""),l===void 0&&(l="must be a non empty string"),!a.isString(s)||a.isEmpty(s))throw new Error(o+" "+l)},a.isCamelCase=function(){},a.isSnakeCase=function(){},a.replace=function(s,o,l,u){if(u===void 0&&(u=-1),!a.isString(s))throw new Error("string is not valid");if(!a.isString(o)&&!r.ArrayUtils.isArray(o))throw new Error("search is not a string or array");if(!a.isString(l)&&!r.ArrayUtils.isArray(l))throw new Error("replacement is not a string or array");if(!t.NumericUtils.isInteger(u))throw new Error("count must be a positive integer or 0");if(u===0)return s;var c=s,d=a.isString(o)?[String(o)]:o,p=a.isString(l)?[String(l)]:l;if(p.length>1&&d.length!==p.length)throw new Error("search and replacement arrays must have the same length");for(var m=0;m<d.length;m++)if(d[m]!==""){var w=p.length===1?p[0]:p[m];w!=null||(w="");for(var g=[],_=c.split(d[m]),E=0;E<_.length;E++)g.push(_[E]),E<_.length-1&&(u<0||E<u?g.push(w):g.push(d[m]));c=g.join("")}return c},a.replaceMulti=function(s,o,l,u){if(u===void 0&&(u=-1),a.isString(s))return a.replace(s,o,l,u);var c=n.ObjectUtils.clone(s);if(r.ArrayUtils.isArray(c))for(var d=0;d<c.length;d++)c[d]=a.replaceMulti(c[d],o,l,u);else if(n.ObjectUtils.isObject(c))for(var p=0,m=n.ObjectUtils.getKeys(c);p<m.length;p++){var w=m[p];c[w]=a.replaceMulti(c[w],o,l,u)}return c},a.trim=function(s,o){return o===void 0&&(o=`
\r`),a.trimLeft(a.trimRight(s,o),o)},a.trimLeft=function(s,o){if(o===void 0&&(o=`
\r`),!a.isString(s))throw new Error("value is not a string");return s.replace(new RegExp("^["+o+"]+"),"")},a.trimRight=function(s,o){if(o===void 0&&(o=`
\r`),!a.isString(s))throw new Error("value is not a string");return s.replace(new RegExp("["+o+"]+$"),"")},a.pad=function(s,o,l,u){if(l===void 0&&(l="0"),u===void 0&&(u="LEFT"),!a.isString(s)||!a.isString(l)||l.length<=0)throw new Error("string and padString must be strings");if(!t.NumericUtils.isInteger(o))throw new Error("padLength is not an int");if(u!=="LEFT"&&u!=="RIGHT")throw new Error("mode must be LEFT or RIGHT");var c=s;if(u==="RIGHT")for(;c.length<o;)c+=l.substr(0,o-c.length);else for(;c.length<o;)c=l.substr(-(o-c.length))+c;return c},a.countStringOccurences=function(s,o){if(!a.isString(s)||!a.isString(o))throw new Error("value is not a string");if(o==="")throw new Error("cannot count empty string occurences");return s.split(o).length-1},a.countByCase=function(s,o){if(o===void 0&&(o=a.FORMAT_ALL_UPPER_CASE),s=a.removeAccents(s),o===a.FORMAT_ALL_UPPER_CASE)return s.replace(/[^A-Z]+/g,"").length;if(o===a.FORMAT_ALL_LOWER_CASE)return s.replace(/[^a-z]+/g,"").length;throw new Error("invalid case value")},a.countWords=function(s,o){o===void 0&&(o=" ");for(var l=0,u=a.getLines(s),c=0;c<u.length;c++)for(var d=u[c].split(o),p=0;p<d.length;p++)a.isEmpty(d[p])||l++;return l},a.countPathElements=function(s){return(s=(s=a.formatPath(s,"/")).indexOf("/")===0?s.substr(1):s)==""?0:s.split("/").length},a.limitLen=function(s,o,l){if(o===void 0&&(o=100),l===void 0&&(l=" ..."),o<=0||!t.NumericUtils.isNumeric(o))throw new Error("limit must be a positive numeric value");return a.isString(s)?s.length<=o?s:l.length>o?l.substring(0,o):s.substring(0,o-l.length)+l:""},a.getDomainFromUrl=function(s){var o=a.getHostNameFromUrl(s);return(o=o.split(".")).length>2&&o.shift(),o.join(".")},a.getHostNameFromUrl=function(s){if(a.isEmpty(s)||!a.isUrl(s))return"";var o=document.createElement("a");o.href=s;var l=(o.host.match(/\./g)||[]).length;return l<=0||l>2?"":o.host},a.getLines=function(s,o){o===void 0&&(o=[/\s+/g]);var l=[];if(!a.isString(s))return l;for(var u=s.split(/\r?\n|\n|\r/),c=0;c<u.length;c++)if(a.isString(u[c])){for(var d=u[c],p=0;p<o.length;p++)d=d.replace(o[p],"");d!=""&&l.push(u[c])}return l},a.getKeyWords=function(){},a.getPath=function(s,o,l){if(o===void 0&&(o=1),l===void 0&&(l="/"),a.isEmpty(s))return"";if((s=a.formatPath(s,"/"))==="/")return s;var u=(s.indexOf("/")===0?s.substring(1):s).split("/");if(o>u.length||o<-1)return"";for(var c=[],d=u.length-o;d<u.length;d++)c.push(u[d]);return c.length<=0?s:a.formatPath(s.substring(0,s.length-c.join("/").length-1),l)},a.getPathElement=function(s,o){if(o===void 0&&(o=-1),a.isEmpty(s))return"";var l=(s=(s=a.formatPath(s,"/")).indexOf("/")===0?s.substring(1):s).split("/");if(o>=l.length||o<-l.length)throw new Error("Invalid position specified");return o<0?l[l.length+o]:l[o]},a.getPathElementWithoutExt=function(s,o,l){o===void 0&&(o=-1),l===void 0&&(l=".");var u=a.getPathElement(s,o);return u.indexOf(l)>=0&&(u=u.substr(0,u.lastIndexOf(l))),u},a.getPathExtension=function(s,o,l){o===void 0&&(o=-1),l===void 0&&(l=".");var u=a.getPathElement(s,o);return u.indexOf(l)<0?"":u.substr(u.lastIndexOf(l)+1)},a.getSchemeFromUrl=function(s){if(s==null||s==null)return"";if(!a.isString(s))throw new Error("Specified value must be a string");if(!a.isUrl(s))return"";var o=s.split("://");return o.length===2?o[0]:""},a.formatCase=function(s,o){if(!a.isString(s))throw new Error("value is not a string");if(a.isEmpty(s))return s;if(o===a.FORMAT_START_CASE)return s.split(" ").map(function(c){return(c.length>0?c[0].toUpperCase():"")+(c.length>1?c.substr(1).toLowerCase():"")}).join(" ");if(o===a.FORMAT_ALL_UPPER_CASE)return s.toUpperCase();if(o===a.FORMAT_ALL_LOWER_CASE)return s.toLowerCase();if(o===a.FORMAT_FIRST_UPPER_REST_LOWER)return s.charAt(0).toUpperCase()+s.slice(1).toLowerCase();if(o.indexOf("CAMEL_CASE")>0){var l=a.removeAccents(s).replace(/[^a-z0-9]+/gi," ").trim().split(" ");if(l.length>1)for(var u=1;u<l.length;u++)l[u]=l[u].charAt(0).toUpperCase()+l[u].slice(1);return s=l.join(""),o==a.FORMAT_UPPER_CAMEL_CASE?s.charAt(0).toUpperCase()+s.slice(1):o==a.FORMAT_LOWER_CAMEL_CASE?s.charAt(0).toLowerCase()+s.slice(1):s}throw new Error("Unknown format specified")},a.formatPath=function(s,o){if(o===void 0&&(o="/"),!a.isString(s))throw new Error("path must be a string");if(o!=="/"&&o!=="\\")throw new Error("separator must be a slash or backslash");for(s=(s=s.replace(/\//g,o)).replace(/\\/g,o);s.indexOf(o+o)>=0;)s=s.replace(o+o,o);return s.length>1&&s.substr(s.length-1)===o&&(s=s.substr(0,s.length-1)),s},a.formatUrl=function(s){if(s=="")return"";if(!a.isString(s))throw new Error("url must be a string");if(a.isEmpty(s))return s;for(s=(s=(s=(s=s.trim()).replace(/\//g,"/")).replace(/\\/g,"/")).replace(/\:\/\//g,"@@@");s.indexOf("//")>=0;)s=s.replace("//","/");return s=s.replace(/@@@/g,"://"),this.getSchemeFromUrl(s)===""&&a.isUrl("http://"+s)?"http://"+s:s},a.formatForFullTextSearch=function(s,o){if(o===void 0&&(o=" "),!a.isString(s))throw new Error("value is not a string");var l=a.replace(s,o,"");return(l=(l=a.removeAccents(l)).replace(/[^\p{L}\p{N}]/gu,"")).toLowerCase()},a.compareByLevenshtein=function(s,o){if(!a.isString(s)||!a.isString(o))throw new Error("string1 and string2 must be strings");var l=s.length,u=o.length;if(l<u)return a.compareByLevenshtein(o,s);if(l==0)return u;if(s===o)return 0;for(var c=[],d=[],p=0;p<=u;p++)d.push(p);for(p=0;p<l;p++){(c=[])[0]=p+1;for(var m=s.substr(p,1),w=0;w<u;w++){var g=o.substr(w,1),_=d[w+1]+1,E=c[w]+1,x=d[w]+(m!==g?1:0);c.push(Math.min(_,E,x))}d=c}return d[u]},a.compareSimilarityPercent=function(s,o){var l=a.compareByLevenshtein(s,o);return l===0?100:100*(1-l/Math.max(s.length,o.length))},a.generatePath=function(s,o){if(o===void 0&&(o=""),!r.ArrayUtils.isArray(s))throw new Error("elements is not an array");return o===""&&(o="/"),a.formatPath(s.join(o),o)},a.generateRandom=function(s,o,l){if(l===void 0&&(l=["0-9","a-z","A-Z"]),s<0||!t.NumericUtils.isInteger(s)||o<0||!t.NumericUtils.isInteger(o))throw new Error("minLength and maxLength must be positive numbers");if(o<s)throw new Error("Provided maxLength must be higher or equal than minLength");if(!r.ArrayUtils.isArray(l)||l.length<=0)throw new Error("invalid charset");for(var u="",c=0,d=l;c<d.length;c++){var p=d[c];if(!a.isString(p)||a.isEmpty(p))throw new Error("invalid charset");var m=p.substr(0,1),w=p.substr(2,1);p.length===3&&p.indexOf("-")===1&&m!=="\\"?"0123456789".indexOf(m)>=0?u+="0123456789".substring("0123456789".indexOf(m),"0123456789".indexOf(w)+1):"abcdefghijkmnopqrstuvwxyz".indexOf(m)>=0?u+="abcdefghijkmnopqrstuvwxyz".substring("abcdefghijkmnopqrstuvwxyz".indexOf(m),"abcdefghijkmnopqrstuvwxyz".indexOf(w)+1):"ABCDEFGHIJKMNOPQRSTUVWXYZ".indexOf(m)>=0&&(u+="ABCDEFGHIJKMNOPQRSTUVWXYZ".substring("ABCDEFGHIJKMNOPQRSTUVWXYZ".indexOf(m),"ABCDEFGHIJKMNOPQRSTUVWXYZ".indexOf(w)+1)):u+=a.replace(p,"\\-","-")}for(var g="",_=s===o?o:t.NumericUtils.generateRandomInteger(s,o),E=0;E<_;E++)g+=u.charAt(Math.floor(Math.random()*u.length));return g},a.findMostSimilarString=function(){},a.findMostSimilarStringIndex=function(){},a.removeNewLineCharacters=function(){},a.removeAccents=function(s){if(!a.isString(s))throw new Error("value is not a string");for(var o=[{b:"A",l:"AⒶÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{b:"AA",l:"Ꜳ"},{b:"AE",l:"ÆǼǢ"},{b:"AO",l:"Ꜵ"},{b:"AU",l:"Ꜷ"},{b:"AV",l:"ꜸꜺ"},{b:"AY",l:"Ꜽ"},{b:"B",l:"BⒷḂḄḆɃƂƁ"},{b:"C",l:"CⒸĆĈĊČÇḈƇȻꜾ"},{b:"D",l:"DⒹḊĎḌḐḒḎĐƋƊƉꝹ"},{b:"DZ",l:"DZDŽ"},{b:"Dz",l:"DzDž"},{b:"E",l:"EⒺÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{b:"F",l:"FⒻḞƑꝻ"},{b:"G",l:"GⒼǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{b:"H",l:"HⒽĤḢḦȞḤḨḪĦⱧⱵꞍ"},{b:"I",l:"IⒾÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{b:"J",l:"JⒿĴɈ"},{b:"K",l:"KⓀḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{b:"L",l:"LⓁĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{b:"LJ",l:"LJ"},{b:"Lj",l:"Lj"},{b:"M",l:"MⓂḾṀṂⱮƜ"},{b:"N",l:"NⓃǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{b:"NJ",l:"NJ"},{b:"Nj",l:"Nj"},{b:"O",l:"OⓄÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{b:"OI",l:"Ƣ"},{b:"OO",l:"Ꝏ"},{b:"OU",l:"Ȣ"},{b:"OE",l:"ŒŒ"},{b:"oe",l:"œœ"},{b:"P",l:"PⓅṔṖƤⱣꝐꝒꝔ"},{b:"Q",l:"QⓆꝖꝘɊ"},{b:"R",l:"RⓇŔṘŘȐȒṚṜŖṞɌⱤꞦꞂ"},{b:"S",l:"SⓈẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{b:"T",l:"TⓉṪŤṬȚŢṰṮŦƬƮȾꞆ"},{b:"TZ",l:"Ꜩ"},{b:"U",l:"UⓊÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{b:"V",l:"VⓋṼṾƲꝞɅ"},{b:"VY",l:"Ꝡ"},{b:"W",l:"WⓌẀẂŴẆẄẈⱲ"},{b:"X",l:"XⓍẊẌ"},{b:"Y",l:"YⓎỲÝŶỸȲẎŸỶỴƳɎỾ"},{b:"Z",l:"ZⓏŹẐŻŽẒẔƵȤⱿⱫꝢ"},{b:"a",l:"aⓐẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{b:"aa",l:"ꜳ"},{b:"ae",l:"æǽǣ"},{b:"ao",l:"ꜵ"},{b:"au",l:"ꜷ"},{b:"av",l:"ꜹꜻ"},{b:"ay",l:"ꜽ"},{b:"b",l:"bⓑḃḅḇƀƃɓ"},{b:"c",l:"cⓒćĉċčçḉƈȼꜿↄ"},{b:"d",l:"dⓓḋďḍḑḓḏđƌɖɗꝺ"},{b:"dz",l:"dzdž"},{b:"e",l:"eⓔèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{b:"f",l:"fⓕḟƒꝼ"},{b:"g",l:"gⓖǵĝḡğġǧģǥɠꞡᵹꝿ"},{b:"h",l:"hⓗĥḣḧȟḥḩḫẖħⱨⱶɥ"},{b:"hv",l:"ƕ"},{b:"i",l:"iⓘìíîĩīĭïḯỉǐȉȋịįḭɨı"},{b:"j",l:"jⓙĵǰɉ"},{b:"k",l:"kⓚḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{b:"l",l:"lⓛŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{b:"lj",l:"lj"},{b:"m",l:"mⓜḿṁṃɱɯ"},{b:"n",l:"nⓝǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{b:"nj",l:"nj"},{b:"o",l:"oⓞòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{b:"oi",l:"ƣ"},{b:"ou",l:"ȣ"},{b:"oo",l:"ꝏ"},{b:"p",l:"pⓟṕṗƥᵽꝑꝓꝕ"},{b:"q",l:"qⓠɋꝗꝙ"},{b:"r",l:"rⓡŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{b:"s",l:"sⓢßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{b:"t",l:"tⓣṫẗťṭțţṱṯŧƭʈⱦꞇ"},{b:"tz",l:"ꜩ"},{b:"u",l:"uⓤùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{b:"v",l:"vⓥṽṿʋꝟʌ"},{b:"vy",l:"ꝡ"},{b:"w",l:"wⓦẁẃŵẇẅẘẉⱳ"},{b:"x",l:"xⓧẋẍ"},{b:"y",l:"yⓨỳýŷỹȳẏÿỷẙỵƴɏỿ"},{b:"z",l:"zⓩźẑżžẓẕƶȥɀⱬꝣ"}],l={},u=0;u<o.length;u++)for(var c=o[u].l,d=0;d<c.length;d++)l[c[d]]=o[u].b;return s.replace(/[^\u0000-\u007E]/g,function(p){return l[p]||p})},a.removeWordsShorterThan=function(){},a.removeWordsLongerThan=function(){},a.removeUrls=function(){},a.removeHtmlCode=function(){},a.removeSameConsecutive=function(s,o){if(o===void 0&&(o=[]),s===null)return"";if(!a.isString(s))throw new Error("string must be a string");if(!r.ArrayUtils.isArray(o))throw new Error("set must be of the type array");return o.length===0?s.replace(/(.|\r\n|[\r\n])\1+/gu,"$1"):s.replace(new RegExp("("+o.join("|")+")\\1+","ug"),"$1")},a.FORMAT_SENTENCE_CASE="FORMAT_SENTENCE_CASE",a.FORMAT_START_CASE="FORMAT_START_CASE",a.FORMAT_ALL_UPPER_CASE="FORMAT_ALL_UPPER_CASE",a.FORMAT_ALL_LOWER_CASE="FORMAT_ALL_LOWER_CASE",a.FORMAT_FIRST_UPPER_REST_LOWER="FORMAT_FIRST_UPPER_REST_LOWER",a.FORMAT_CAMEL_CASE="FORMAT_CAMEL_CASE",a.FORMAT_UPPER_CAMEL_CASE="FORMAT_UPPER_CAMEL_CASE",a.FORMAT_LOWER_CAMEL_CASE="FORMAT_LOWER_CAMEL_CASE",a.FORMAT_SNAKE_CASE="FORMAT_SNAKE_CASE",a.FORMAT_UPPER_SNAKE_CASE="FORMAT_UPPER_SNAKE_CASE",a.FORMAT_LOWER_SNAKE_CASE="FORMAT_LOWER_SNAKE_CASE",a}();e.StringUtils=i}(Iy)),Iy}var $T;function lte(){return $T||($T=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserManager=void 0;var t=Cn(),r=Es(),n=mr(),i=function(){function a(){}return a.prototype.getCurrentUrl=function(){return window.location.href},a.prototype.isDocumentLoaded=function(){return document.readyState==="complete"},a.prototype.isCookie=function(s){return this.getCookie(s)!==void 0},a.prototype.setCookie=function(s,o,l,u,c,d){if(l===void 0&&(l=""),u===void 0&&(u="/"),c===void 0&&(c=""),d===void 0&&(d=!1),!t.StringUtils.isString(s)||t.StringUtils.isEmpty(s))throw new Error("key must be defined");if(o!=null||(o=""),!t.StringUtils.isString(o))throw new Error("value must be a string");if(r.NumericUtils.isNumeric(l)){var p=l;(l=new Date).setDate(l.getDate()+p)}var m=encodeURIComponent(s)+"="+encodeURIComponent(o);return m+=l?"; expires="+l.toUTCString():"",m+=u?"; path="+u:"",m+=c?"; domain="+c:"",m+=d?"; secure":"",document.cookie=m,!0},a.prototype.getCookie=function(s){if(!t.StringUtils.isString(s)||t.StringUtils.isEmpty(s))throw new Error("key must be defined");for(var o=document.cookie.split("; "),l=/\+/g,u=0,c=o.length;u<c;u++){var d=o[u].split("="),p=d.shift()||"";if(decodeURIComponent(p.replace(l," "))===s)return decodeURIComponent(d.join("=").replace(l," "))}},a.prototype.deleteCookie=function(s,o){if(o===void 0&&(o="/"),!t.StringUtils.isString(s)||t.StringUtils.isEmpty(s))throw new Error("key must be defined");return this.getCookie(s)!==void 0&&(this.setCookie(s,"",-1,o),!0)},a.prototype.isCurrentUrlWithHashFragment=function(){return!!window.location.hash},a.prototype.getCurrentUrlHashFragment=function(){return window.location.hash?window.location.hash.substring(1):""},a.prototype.setCurrentUrlHashFragment=function(){},a.prototype.deleteCurrentUrlHashFragment=function(){},a.prototype.isCurrentUrlWithQuery=function(){},a.prototype.getCurrentUrlQueryValues=function(){},a.prototype.reload=function(){location.reload()},a.prototype.getPreferredLanguage=function(){var s="";if(n.ArrayUtils.isArray(window.navigator.languages))for(var o=0,l=window.navigator.languages;o<l.length;o++){var u=l[o];if(u.length>=2){s=u;break}}else s=(s=window.navigator.userLanguage||window.navigator.language).split(",")[0];return s.trim().substr(0,2).toLowerCase()},a.prototype.goToUrl=function(s,o,l){if(o===void 0&&(o=!1),l===void 0&&(l=null),l==null)o?window.open(s,"_blank"):window.location.href=s;else{var u=document.createElement("form");u.action=s,u.method="POST",u.style.display="none",o&&(u.target="_blank");for(var c=0,d=Object.getOwnPropertyNames(l);c<d.length;c++){var p=d[c],m=document.createElement("input");m.type="hidden",m.name=p,m.value=l[p],u.appendChild(m)}document.body.appendChild(u),u.submit(),o&&document.body.removeChild(u)}},a.prototype.disableBackButton=function(){history.pushState(null,"",document.URL),window.addEventListener("popstate",this._onPopStatePreventBackButton)},a.prototype._onPopStatePreventBackButton=function(){history.pushState(null,"",document.URL)},a.prototype.enableBackButton=function(){window.removeEventListener("popstate",this._onPopStatePreventBackButton)},a.prototype.disableScroll=function(){},a.prototype.enableScroll=function(){},a.prototype.getScrollPosition=function(){return[window.pageXOffset,window.pageYOffset]},a.prototype.getWindowWidth=function(){return window.innerWidth||document.documentElement.clientWidth||document.getElementsByTagName("body")[0].clientWidth||-1},a.prototype.getWindowHeight=function(){return window.innerHeight||document.documentElement.clientHeight||document.getElementsByTagName("body")[0].clientHeight||-1},a.prototype.getDocumentWidth=function(){return Math.max(document.body.scrollWidth,document.body.offsetWidth,document.documentElement.clientWidth,document.documentElement.scrollWidth,document.documentElement.offsetWidth)},a.prototype.getDocumentHeight=function(){return Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)},a.prototype.scrollTo=function(s,o,l){o===void 0&&(o=600),l===void 0&&(l=null);var u=function(v){return--v*v*v+1},c=window.pageXOffset,d=window.pageYOffset,p="now"in window.performance?performance.now():new Date().getTime(),m=this.getDocumentWidth(),w=this.getDocumentHeight(),g=this.getWindowWidth(),_=this.getWindowHeight(),E=n.ArrayUtils.isArray(s)?s[0]:s.offsetLeft,x=n.ArrayUtils.isArray(s)?s[1]:s.offsetTop,b=c,C=d;if(m>g&&(b=Math.round(m-E<g?m-g:E)),w>_&&(C=Math.round(w-x<_?w-_:x)),!("requestAnimationFrame"in window))return window.scroll(b,C),void(l&&l());(function v(){var k="now"in window.performance?performance.now():new Date().getTime(),T=Math.min(1,(k-p)/o),N=Math.ceil(u(T)*(b-c)+c),M=Math.ceil(u(T)*(C-d)+d);window.scroll(N,M),Math.ceil(window.pageXOffset)!==b||Math.ceil(window.pageYOffset)!==C?requestAnimationFrame(v):l!==null&&l()})()},a.prototype.copyToClipboard=function(s){return navigator.clipboard.writeText(s)},a.prototype.browseLocalFiles=function(s,o,l){(function u(c,d,p,m){if(m>=c.length)l(d,p);else if(c[m]){d.push(c[m].name);var w=new FileReader;if(w.onload=function(){o==="TEXT"?p.push(w.result):p.push(w.result.split(",",2)[1]),u(c,d,p,m+1)},w.onerror=function(){throw new Error("Error reading file")},o==="TEXT")w.readAsText(c[m]);else{if(o!=="BASE64")throw new Error('Mode must be either "TEXT" or "BINARY"');w.readAsDataURL(c[m])}}else u(c,d,p,m+1)})(s.target.files,[],[],0)},a}();e.BrowserManager=i}(Ty)),Ty}var My={},Dy={},HT;function zm(){return HT||(HT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HashMapObject=void 0;var t=Cn(),r=_o(),n=mr(),i=Es(),a=function(){function s(o){if(o===void 0&&(o=null),this._keys=[],this._data={},this._length=0,o!=null)if(r.ObjectUtils.isObject(o))for(var l in o)this.set(String(l),o[l]);else{if(!n.ArrayUtils.isArray(o))throw new Error("HashMapObject: invalid data");for(var u=o.length,c=0;c<u;c++)this.set(String(c),o[c])}}return s.prototype.set=function(o,l){if(t.StringUtils.isString(o)&&o.replace(/ |\n|\r|\t/gi,"")!=="")return this._data.hasOwnProperty(o)||(this._keys.push(o),this._length++),this._data[o]=l;throw new Error("HashMapObject: key must be a non empty string")},s.prototype.length=function(){return this._length},s.prototype.get=function(o){if(this._data.hasOwnProperty(o))return this._data[o];throw new Error("HashMapObject->get: key does not exist or is invalid")},s.prototype.getAt=function(o){if(typeof o=="number"&&i.NumericUtils.isInteger(o)&&o>=0&&o<this._length)return this._data[this._keys[o]];throw new Error("HashMapObject->getAt: index does not exist or is invalid")},s.prototype.getKeys=function(){return this._keys},s.prototype.getValues=function(){for(var o=[],l=0;l<this._keys.length;l++)o.push(this.get(this._keys[l]));return o},s.prototype.isKey=function(o){return t.StringUtils.isString(o)&&this._data.hasOwnProperty(o)},s.prototype.remove=function(o){if(this._data.hasOwnProperty(o)){var l=this._data[o];return delete this._data[o],delete this._keys[this._keys.indexOf(o)],this._length--,l}throw this._validateKeyFormat(o),new Error("HashMapObject->rename: key does not exist "+o)},s.prototype.rename=function(o,l){if(this._validateKeyFormat(o),this._validateKeyFormat(l),this.isKey(l))throw new Error("HashMapObject->rename: newKey "+l+" already exists");if(this.isKey(o)){for(var u={},c=0;c<this._keys.length;c++)this._keys[c]==o?u[l]=this._data[o]:u[this._keys[c]]=this._data[this._keys[c]];return this._data=u,this._keys[this._keys.indexOf(o)]=l,!0}throw new Error("HashMapObject->rename: key does not exist "+o)},s.prototype.swap=function(o,l){if(this._validateKeyFormat(o),this._validateKeyFormat(l),!this.isKey(o))throw new Error("HashMapObject->swap: key1 does not exist "+o);if(!this.isKey(l))throw new Error("HashMapObject->swap: key2 does not exist "+l);for(var u={},c=this.get(o),d=this.get(l),p=0;p<this._keys.length;p++)switch(this._keys[p]){case o:u[l]=d;break;case l:u[o]=c;break;default:u[this._keys[p]]=this._data[this._keys[p]]}this._data=u;var m=this._keys.indexOf(o),w=this._keys.indexOf(l);return this._keys[m]=l,this._keys[w]=o,!0},s.prototype.sortByKey=function(o,l){switch(o===void 0&&(o=s.SORT_METHOD_STRING),l===void 0&&(l=s.SORT_ORDER_ASCENDING),o+l){case s.SORT_METHOD_STRING+s.SORT_ORDER_ASCENDING:this._keys.sort();break;case s.SORT_METHOD_STRING+s.SORT_ORDER_DESCENDING:this._keys.sort(),this._keys.reverse();break;case s.SORT_METHOD_NUMERIC+s.SORT_ORDER_ASCENDING:this._keys.sort(function(u,c){return u-c});break;case s.SORT_METHOD_NUMERIC+s.SORT_ORDER_DESCENDING:this._keys.sort(function(u,c){return c-u});break;default:throw new Error("HashMapObject->sortByKey: Unknown sort method or order")}return!0},s.prototype.shift=function(){if(this._length<=0)throw new Error("HashMapObject->shift: No elements");this._length--;var o=this._data[this._keys[0]];return delete this._data[this._keys[0]],this._keys.shift(),o},s.prototype.pop=function(){if(this._length<=0)throw new Error("HashMapObject->pop: No elements");this._length--;var o=this._data[this._keys[this._length]];return delete this._data[this._keys[this._length]],this._keys.pop(),o},s.prototype.reverse=function(){return this._keys.reverse(),!0},s.prototype._validateKeyFormat=function(o){if(!t.StringUtils.isString(o)||o.replace(/ |\n|\r|\t/gi,"")=="")throw new Error("HashMapObject: key must be a non empty string")},s.SORT_METHOD_STRING="SORT_METHOD_STRING",s.SORT_METHOD_NUMERIC="SORT_METHOD_NUMERIC",s.SORT_ORDER_ASCENDING="SORT_ORDER_ASCENDING",s.SORT_ORDER_DESCENDING="SORT_ORDER_DESCENDING",s}();e.HashMapObject=a}(Dy)),Dy}var Ac={},Fy={},qT;function Um(){return qT||(qT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HTTPManagerBaseRequest=void 0;var t=function(){function r(n,i,a){i===void 0&&(i="STRING"),a===void 0&&(a=0),this.resultFormat=r.STRING,this.ignoreGlobalPostParams=!1,this.successCallback=function(){},this.errorCallback=function(){},this.finallyCallback=function(){},this.url=n,this.resultFormat=i,this.timeout=a}return r.STRING="STRING",r.JSON="JSON",r}();e.HTTPManagerBaseRequest=t}(Fy)),Fy}var GT;function IF(){return GT||(GT=1,function(e){var t=Ac&&Ac.__extends||function(){var i=function(a,s){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var u in l)l.hasOwnProperty(u)&&(o[u]=l[u])})(a,s)};return function(a,s){function o(){this.constructor=a}i(a,s),a.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.HTTPManagerGetRequest=void 0;var r=Um(),n=function(i){function a(){var s=i!==null&&i.apply(this,arguments)||this;return s.parameters={},s}return t(a,i),a}(r.HTTPManagerBaseRequest);e.HTTPManagerGetRequest=n}(Ac)),Ac}var WT;function ute(){return WT||(WT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HTTPManager=void 0;var t=Cn(),r=_o(),n=mr(),i=zm(),a=IF(),s=Um(),o=function(){function l(u){if(u===void 0&&(u=!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={},typeof u!="boolean")throw new Error("asynchronous is not boolean");this.asynchronous=u}return l.prototype.setGlobalPostParam=function(u,c){if(t.StringUtils.isEmpty(u)||t.StringUtils.isEmpty(c))throw new Error("parameterName and value must be non empty strings");this._globalPostParams[u]=c},l.prototype.isGlobalPostParam=function(u){if(t.StringUtils.isEmpty(u))throw new Error("parameterName must be a non empty string");return Object.keys(this._globalPostParams).indexOf(u)>=0},l.prototype.getGlobalPostParam=function(u){if(!this.isGlobalPostParam(u))throw new Error("parameterName does not exist: "+u);return this._globalPostParams[u]},l.prototype.deleteGlobalPostParam=function(u){this.getGlobalPostParam(u)!==""&&delete this._globalPostParams[u]},l.prototype.createQueue=function(u){if(t.StringUtils.isEmpty(u))throw new Error("name must be a non empty string");for(var c=0,d=this._queues;c<d.length;c++)if(d[c].name===u)throw new Error("queue "+u+" already exists");this._queues.push({name:u,isRunning:!1,pendingRequests:[]})},l.prototype.countQueues=function(){return this._queues.length},l.prototype.isQueueRunning=function(u){if(t.StringUtils.isEmpty(u))throw new Error("name must be a non empty string");for(var c=0,d=this._queues;c<d.length;c++){var p=d[c];if(p.name===u)return p.isRunning}throw new Error("queue "+u+" does not exist")},l.prototype.deleteQueue=function(u){if(t.StringUtils.isEmpty(u))throw new Error("name must be a non empty string");for(var c=0;c<this._queues.length;c++)if(this._queues[c].name===u){if(this._queues[c].isRunning)throw new Error("queue "+u+" is currently running");return void this._queues.splice(c,1)}throw new Error("queue "+u+" does not exist")},l.prototype.generateUrlQueryString=function(u){var c="",d=[],p=[];if(r.ObjectUtils.isObject(u)&&r.ObjectUtils.getKeys(u).length>0){if(u instanceof i.HashMapObject)d=u.getKeys(),p=u.getValues();else{d=Object.getOwnPropertyNames(u);for(var m=0;m<d.length;m++)p.push(u[d[m]])}for(m=0;m<d.length;m++)c+="&"+encodeURIComponent(d[m])+"="+encodeURIComponent(t.StringUtils.isString(p[m])?p[m]:JSON.stringify(p[m]));return c.substring(1,c.length)}throw new Error("keyValuePairs must be a HashMapObject or a non empty Object")},l.prototype.isInternetAvailable=function(u,c){var d=this;if(typeof u!="function"||typeof c!="function")throw new Error("params must be functions");if(this.internetCheckLocations.length<=0)throw new Error("no check locations specified");var p=function(m){if(m.length<=0)return c();var w=m.shift();if(!t.StringUtils.isUrl(w))throw new Error("invalid check url : "+w);d.urlExists(w+"?r="+t.StringUtils.generateRandom(15,15),u,function(){return p(m)})};navigator.onLine===!1?c():p(this.internetCheckLocations.slice(0))},l.prototype.urlExists=function(u,c,d){if(!t.StringUtils.isString(u))throw new Error("url must be a string");if(typeof c!="function"||typeof d!="function")throw new Error("params must be functions");var p=this._composeUrl(this.baseUrl,u);if(t.StringUtils.isUrl(p)){var m=new a.HTTPManagerGetRequest(p);m.successCallback=function(){return c()},m.errorCallback=function(){return d()},this.execute(m)}else d()},l.prototype.getUrlHeaders=function(u,c,d){var p=this,m=this._composeUrl(this.baseUrl,u);if(!t.StringUtils.isString(m))throw new Error("url must be a string");if(typeof c!="function"||typeof d!="function")throw new Error("params must be functions");if(!t.StringUtils.isUrl(m))throw new Error("invalid url "+m);var w=new XMLHttpRequest;this.timeout>0&&(w.timeout=this.timeout),w.open("GET",m,this.asynchronous),w.onload=function(){return c(w.getAllResponseHeaders().split(`
`))},w.onerror=function(){return d(w.statusText,w.status)},w.ontimeout=function(){return d(p.timeout+l.ERROR_TIMEOUT,408)},this._executeXmlHttprequestSend(w,m)},l.prototype.execute=function(u,c,d){var p=this;c===void 0&&(c=null),d===void 0&&(d=null);var m=this._generateValidRequestsList(u);if(c!==null&&!(c instanceof Function)||d!==null&&!(d instanceof Function))throw new Error("finishedCallback and progressCallback must be functions");for(var w=0,g=!1,_=[],E=function(v,k,T,N,M){var j=v.request,D=p._composeUrl(p.baseUrl,j.url),$=k;if(j.resultFormat===s.HTTPManagerBaseRequest.JSON)try{$=JSON.parse(k)}catch{T||(T=!0,N="Could not parse request result as a json string")}w++,_[v.index]={url:D,response:$,isError:T,errorMsg:N,code:M},T?(g=!0,j.errorCallback(N,M,k)):j.successCallback($),j.finallyCallback(),d!==null&&d(D,m.length),w>=m.length&&c!==null&&c(_,g)},x=function(v){var k,T={index:v,request:m[v]};if(!t.StringUtils.isString(m[v].url)||t.StringUtils.isEmpty(m[v].url))throw new Error("url "+v+" must be a non empty string");try{k=new XMLHttpRequest}catch{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'))")}(m[v].timeout>0||b.timeout>0)&&(k.timeout=m[v].timeout>0?m[v].timeout:b.timeout);var N=b._composeUrl(b.baseUrl,m[v].url),M=m[v]instanceof a.HTTPManagerGetRequest?"GET":"POST";if(k.open(M,N,b.asynchronous),k.onload=function(){k.status>=200&&k.status<400?E(T,k.responseText,!1,"",k.status):E(T,k.responseText,!0,k.statusText,k.status)},k.onerror=function(){E(T,k.responseText,!0,k.statusText,k.status)},k.ontimeout=function(){E(T,k.responseText,!0,p.timeout+l.ERROR_TIMEOUT,408)},M==="GET"&&b._executeXmlHttprequestSend(k,N),M==="POST"||Object.keys(b._globalPostParams).length>0)try{var j=M==="POST"?m[v].parameters:{};if(m[v].ignoreGlobalPostParams===!1)for(var D=0,$=Object.keys(b._globalPostParams);D<$.length;D++){var X=$[D];j instanceof i.HashMapObject?j.set(X,b._globalPostParams[X]):j[X]=b._globalPostParams[X]}k.setRequestHeader("Content-type","application/x-www-form-urlencoded"),k.send(b.generateUrlQueryString(j))}catch{b._executeXmlHttprequestSend(k,N)}},b=this,C=0;C<m.length;C++)x(C)},l.prototype._executeXmlHttprequestSend=function(u,c){try{u.send()}catch(d){throw new Error("HTTPManager could not execute request to "+c+`
`+d.toString())}},l.prototype._generateValidRequestsList=function(u){var c=[];if(n.ArrayUtils.isArray(u)){if(u.length<=0)throw new Error("No requests to execute");for(var d=0,p=u;d<p.length;d++){var m=p[d];t.StringUtils.isString(m)?c.push(new a.HTTPManagerGetRequest(m)):c.push(m)}}else if(t.StringUtils.isString(u)&&!t.StringUtils.isEmpty(u))c=[new a.HTTPManagerGetRequest(u)];else{if(!(u instanceof s.HTTPManagerBaseRequest))throw new Error("Invalid requests value");c=[u]}return c},l.prototype.queue=function(u,c,d){d===void 0&&(d=null);var p=this._generateValidRequestsList(u);if(d!==null&&!(d instanceof Function))throw new Error("finishedCallback and progressCallback must be functions");for(var m=0,w=this._queues;m<w.length;m++){var g=w[m];if(g.name===c){for(var _=0;_<p.length;_++)g.pendingRequests.unshift(p[_]);if(d!==null){var E=new a.HTTPManagerGetRequest("FINISHED_REQUEST_CALLBACK");E.finallyCallback=d,g.pendingRequests.unshift(E)}return void(this.isQueueRunning(c)||this._startQueue(c))}}throw new Error("queue "+c+" does not exist. Create it with createQueue()")},l.prototype._startQueue=function(u){for(var c=this,d=function(g){if(g.pendingRequests.length<=0)g.isRunning=!1;else{if(g.pendingRequests[g.pendingRequests.length-1].url==="FINISHED_REQUEST_CALLBACK"){var _=g.pendingRequests.pop();g.pendingRequests.length<=0&&(g.isRunning=!1),_.finallyCallback()}g.pendingRequests.length>0&&(g.isRunning=!0,c.execute(g.pendingRequests.pop(),function(){return d(g)}))}},p=0,m=this._queues;p<m.length;p++){var w=m[p];if(w.name===u)return void d(w)}},l.prototype.loadResourcesFromList=function(u,c,d,p,m){var w=this;if(m===void 0&&(m=null),!t.StringUtils.isString(u)||t.StringUtils.isEmpty(u))throw new Error("urlToListOfResources must be a non empty string");if(!t.StringUtils.isString(c)||t.StringUtils.isEmpty(c))throw new Error("baseUrl must be a non empty string");this.execute(u,function(g,_){if(g[0].isError)return p(u,g[0].errorMsg,g[0].code);for(var E=[],x=t.StringUtils.getLines(g[0].response),b=0,C=x;b<C.length;b++){var v=C[b];E.push(t.StringUtils.formatPath(w._composeUrl(c,v),"/"))}w.execute(E,function(k,T){for(var N=[],M=0,j=k;M<j.length;M++){var D=j[M];if(D.isError)return p(D.url,D.errorMsg,D.code);N.push(D.response)}d(x,N)},m)})},l.prototype._composeUrl=function(u,c){var d="";if(d=t.StringUtils.isEmpty(u)||c.substr(0,5)==="http:"||c.substr(0,6)==="https:"?c:t.StringUtils.replace(t.StringUtils.formatPath(u+"/"+c,"/"),["http:/","https:/"],["http://","https://"],1),this.isOnlyHttps&&d.substr(0,5).toLowerCase()==="http:")throw new Error("Non secure http requests are forbidden. Set isOnlyHttps=false to allow "+d);return d},l.ERROR_TIMEOUT=" ms Timeout reached",l}();e.HTTPManager=o}(My)),My}var Tc={},VT;function cte(){return VT||(VT=1,function(e){var t=Tc&&Tc.__extends||function(){var i=function(a,s){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var u in l)l.hasOwnProperty(u)&&(o[u]=l[u])})(a,s)};return function(a,s){function o(){this.constructor=a}i(a,s),a.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.HTTPManagerPostRequest=void 0;var r=Um(),n=function(i){function a(){var s=i!==null&&i.apply(this,arguments)||this;return s.parameters={},s}return t(a,i),a}(r.HTTPManagerBaseRequest);e.HTTPManagerPostRequest=n}(Tc)),Tc}var Ly={},Ic={},jy={},QT;function PF(){return QT||(QT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EncodingUtils=void 0;var t=Cn(),r=function(){function n(){}return n.unicodeEscapedCharsToUtf8=function(i){if(t.StringUtils.isString(i))return i.replace(/\\u([\d\w]{4})/gi,function(a,s){return String.fromCharCode(parseInt(s,16))});throw new Error("Specified value must be a string")},n.utf8ToUnicodeEscapedChars=function(i){if(!t.StringUtils.isString(i))throw new Error("Specified value must be a string");return t.StringUtils.isEmpty(i)?i:i.replace(/[^\0-~]/g,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})},n}();e.EncodingUtils=r}(jy)),jy}var KT;function sx(){return KT||(KT=1,function(e){var t=Ic&&Ic.__extends||function(){var l=function(u,c){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var m in p)p.hasOwnProperty(m)&&(d[m]=p[m])})(u,c)};return function(u,c){function d(){this.constructor=u}l(u,c),u.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.JavaPropertiesObject=void 0;var r=zm(),n=Cn(),i=mr(),a=Bm(),s=PF(),o=function(l){function u(c){c===void 0&&(c="");var d=l.call(this)||this;if(!n.StringUtils.isString(c))throw new Error("value must be a string");if(c==="")return d;if(c.length<2||c.substr(0,1)==="="||c.indexOf("=")<0&&c.indexOf(":")<0)throw new Error("invalid properties format");for(var p="",m="",w=!1,g=0,_=n.StringUtils.getLines(c,[/\s+/g,/ *#.*| *!.*/g]);g<_.length;g++){var E=_[g];if(E=n.StringUtils.trimLeft(E),w)m+=s.EncodingUtils.unicodeEscapedCharsToUtf8(E);else{var x=n.StringUtils.replace(E,["\\=","\\:"],"xx"),b=Math.min((x+"=").indexOf("="),(x+":").indexOf(":"));(p=E.substring(0,b).trim()).substr(p.length-1,1)==="\\"&&(p+=" "),p=n.StringUtils.replace(p,["\\\\","\\ ","\\#","\\!","\\=","\\:"],["\\"," ","#","!","=",":"]),m=n.StringUtils.trimLeft(E.substring(b+1,E.length))}(m=n.StringUtils.replace(m,["\\\\","\\ ","\\r\\n","\\n","\\t"],["\\u005C"," ",`\r
`,`
`," "])).substr(m.length-1)=="\\"?(m=m.substring(0,m.length-1),w=!0):(w=!1,m=s.EncodingUtils.unicodeEscapedCharsToUtf8(m)),d._data.hasOwnProperty(p)||d._keys.push(p),d._data[p]=m}return d._length=d._keys.length,d}return t(u,l),u.isJavaProperties=function(c){try{return new u(c).length()>=0}catch{try{return c!=null&&c instanceof u}catch{return!1}}},u.prototype.isEqualTo=function(c,d){d===void 0&&(d=!1);var p=null;try{p=new u(c)}catch{try{c instanceof u&&(p=c)}catch{}}if(p==null)throw new Error("properties does not contain valid java properties data");var m=this.getKeys(),w=p.getKeys();if(m.length!=w.length||d&&!i.ArrayUtils.isEqualTo(m,w))return!1;for(var g=new a.ValidationManager,_=0,E=m;_<E.length;_++){var x=E[_];if(!d&&!p.isKey(x)||!g.isEqualTo(this.get(x),p.get(x)))return!1}return!0},u.prototype.toString=function(){for(var c=[],d=this.getKeys(),p=d.length,m=0;m<p;m++){var w=n.StringUtils.replace(d[m],["\\"," ","#","!","=",":"],["\\\\","\\ ","\\#","\\!","\\=","\\:"]),g=n.StringUtils.replace(this.get(d[m]),["\\"," ",`\r
`,`
`," "],["\\\\","\\ ","\\r\\n","\\n","\\t"]);c.push(w+"="+s.EncodingUtils.utf8ToUnicodeEscapedChars(g))}return c.join(`\r
`)},u}(r.HashMapObject);e.JavaPropertiesObject=o}(Ic)),Ic}var YT;function fte(){return YT||(YT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LocalizationManager=void 0;var t=Cn(),r=mr(),n=sx(),i=function(){function a(){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 a.prototype.isInitialized=function(){return this._initialized},a.prototype.isLocaleLoaded=function(s){return this._locales.indexOf(s)>=0},a.prototype.isLanguageLoaded=function(s){if(s.length!==2)throw new Error("language must be a valid 2 digit value");return this._languages.indexOf(s)>=0},a.prototype.initialize=function(s,o,l,u,c){var d=this;if(u===void 0&&(u=null),c===void 0&&(c=null),s?this._httpManager=s:this._filesManager=s,this._locales=[],this._languages=[],this._activeBundle="",this._activeLocation="",this._definedLocations=l,this._loadedTranslations={},!r.ArrayUtils.isArray(l)||l.length<=0)throw new Error("Locations must be an array of objects");for(var p=0,m=l;p<m.length;p++){var w=m[p];if(!w.label||t.StringUtils.isEmpty(w.label)||!w.path||t.StringUtils.isEmpty(w.path)||!w.bundles||!r.ArrayUtils.isArray(w.bundles))throw new Error("Invalid locations specified")}this._loadData(o,l.map(function(g){return{label:g.label,bundles:g.bundles}}),function(g){d._initialized=!0,u!==null&&u(g)},c)},a.prototype.loadLocales=function(s,o,l){if(o===void 0&&(o=null),l===void 0&&(l=null),!this._initialized)throw new Error("LocalizationManager not initialized. Call initialize() before loading more locales");this._loadData(s,this._definedLocations.map(function(u){return{label:u.label,bundles:u.bundles}}),o,l)},a.prototype.loadBundles=function(s,o,l,u){if(o===void 0&&(o=""),l===void 0&&(l=null),u===void 0&&(u=null),!r.ArrayUtils.isArray(s)||s.length===0)throw new Error("no bundles specified to load on "+o+" location");if(!this._initialized)throw new Error("LocalizationManager not initialized. Call initialize() before loading more bundles to a location");o===""&&(o=this._activeLocation),this._loadData(this._locales,[{label:o,bundles:s}],l,u)},a.prototype._loadData=function(s,o,l,u){if(l===void 0&&(l=null),u===void 0&&(u=null),!r.ArrayUtils.isArray(s)||s.length<=0)throw new Error("no locales defined");for(var c=[],d=[],p=0,m=o;p<m.length;p++)for(var w=m[p],g=0,_=w.bundles;g<_.length;g++)for(var E=_[g],x=0,b=s;x<b.length;x++){for(var C=b[x],v=!1,k=0,T=this._definedLocations;k<T.length;k++){var N=T[k];if(N.label===w.label){v=!0,d.push({locale:C,bundle:E,location:w.label}),c.push(t.StringUtils.replace(N.path,["$locale","$bundle"],[C,E]));break}}if(!v)throw new Error("Undefined location: "+w.label)}this._locales=this._locales.concat(s),this._locales=r.ArrayUtils.removeDuplicateElements(this._locales),this._languages=this._locales.map(function(M){return M.substr(0,2)}),this._activeLocation===""&&(this._activeLocation=o[o.length-1].label),this._filesManager!==null||this._loadDataFromUrls(c,d,l,u)},a.prototype._loadDataFromUrls=function(s,o,l,u){var c=this;l===void 0&&(l=null),u===void 0&&(u=null);var d=function(p){p===void 0&&(p=[]),o.length>0&&(c._activeBundle=o[o.length-1].bundle),l!==null&&l(p)};s.length<=0?d():this._httpManager.execute(s,function(p,m){for(var w=[],g=0;g<p.length;g++)if(p[g].isError)w.push({path:p[g].url,errorMsg:p[g].errorMsg,errorCode:p[g].code});else{var _=o[g].locale,E=o[g].bundle,x=o[g].location,b=t.StringUtils.getPathExtension(s[g]);c._loadedTranslations.hasOwnProperty(x)||(c._loadedTranslations[x]={}),c._loadedTranslations[x].hasOwnProperty(_)||(c._loadedTranslations[x][_]={}),c._loadedTranslations[x][_][E]=b==="json"?c.parseJson(p[g].response):c.parseProperties(p[g].response)}d(w)},function(p,m){u!==null&&u(p,m)})},a.prototype.locales=function(){return this._locales},a.prototype.languages=function(){return this._languages},a.prototype.activeBundle=function(){return this._activeBundle},a.prototype.primaryLocale=function(){if(!this._initialized)throw new Error("LocalizationManager not initialized");return this._locales[0]},a.prototype.primaryLanguage=function(){if(!this._initialized)throw new Error("LocalizationManager not initialized");return this._languages[0]},a.prototype.setActiveBundle=function(s){for(var o=0,l=Object.keys(this._loadedTranslations);o<l.length;o++)for(var u=l[o],c=0,d=Object.keys(this._loadedTranslations[u]);c<d.length;c++){var p=d[c];if(Object.keys(this._loadedTranslations[u][p]).indexOf(s)>=0)return this._activeBundle=s,void(this._activeLocation=u)}throw new Error("Bundle <"+s+"> not loaded")},a.prototype.setPrimaryLocale=function(s){if(!t.StringUtils.isString(s))throw new Error("Invalid locale value");if(!this.isLocaleLoaded(s))throw new Error(s+" not loaded");for(var o=[s],l=0,u=this._locales;l<u.length;l++){var c=u[l];c!==s&&o.push(c)}this._locales=o,this._languages=this._locales.map(function(d){return d.substr(0,2)})},a.prototype.setPrimaryLocales=function(s){if(!r.ArrayUtils.isArray(s)||r.ArrayUtils.hasDuplicateElements(s)||s.length<=0)throw new Error("locales must be non empty string array with no duplicate elements");for(var o=s.length-1;o>=0;o--)this.setPrimaryLocale(s[o])},a.prototype.setPrimaryLanguage=function(s){for(var o=0,l=this._locales;o<l.length;o++){var u=l[o];if(u.substr(0,2)===s)return this.setPrimaryLocale(u)}throw new Error(s+" not loaded")},a.prototype.setPrimaryLanguages=function(s){if(!r.ArrayUtils.isArray(s)||r.ArrayUtils.hasDuplicateElements(s)||s.length<=0)throw new Error("languages must be non empty string array with no duplicate elements");for(var o=s.length-1;o>=0;o--)this.setPrimaryLanguage(s[o])},a.prototype.setLocalesOrder=function(s){if(!r.ArrayUtils.isArray(s))throw new Error("locales must be an array");if(s.length!==this._locales.length)throw new Error("locales must contain all the currently loaded locales");for(var o=0,l=s;o<l.length;o++){var u=l[o];if(!this.isLocaleLoaded(u))throw new Error(u+" not loaded")}this._locales=s,this._languages=this._locales.map(function(c){return c.substr(0,2)})},a.prototype.get=function(s,o,l,u){if(o===void 0&&(o=""),l===void 0&&(l=""),u===void 0&&(u=[]),!this._initialized)throw new Error("LocalizationManager not initialized. Call initialize() before requesting translated texts");if(l===""&&(o!==""&&o!==this._activeBundle&&this.setActiveBundle(o),l=this._activeLocation),o===""){if(this.isBundleMandatory)throw new Error("bundle is mandatory for key "+s);o=this._activeBundle}if(Object.keys(this._loadedTranslations).indexOf(l)===-1)throw new Error("Location <"+l+"> not loaded");for(var c=0,d=this._locales;c<d.length;c++){var p=d[c];if(Object.keys(this._loadedTranslations[l]).indexOf(p)>=0){if(Object.keys(this._loadedTranslations[l][p]).indexOf(o)===-1)throw new Error("Bundle <"+o+"> not loaded");if(Object.keys(this._loadedTranslations[l][p][o]).indexOf(s)>=0){this._activeBundle=o,this._activeLocation=l;for(var m=this._loadedTranslations[l][p][o][s],w=t.StringUtils.isString(u)?[String(u)]:u,g=0;g<w.length;g++)m=t.StringUtils.replace(m,t.StringUtils.replace(this.wildCardsFormat,"N",String(g)),w[g]);return m}}}if(this.missingKeyFormat.indexOf("$exception")>=0)throw new Error("key <"+s+"> not found on "+o+" - "+l);return this.missingKeyFormat.replace("$key",s)},a.prototype.getStartCase=function(s,o,l,u){return o===void 0&&(o=""),l===void 0&&(l=""),u===void 0&&(u=[]),t.StringUtils.formatCase(this.get(s,o,l,u),t.StringUtils.FORMAT_START_CASE)},a.prototype.getAllUpperCase=function(s,o,l,u){return o===void 0&&(o=""),l===void 0&&(l=""),u===void 0&&(u=[]),t.StringUtils.formatCase(this.get(s,o,l,u),t.StringUtils.FORMAT_ALL_UPPER_CASE)},a.prototype.getAllLowerCase=function(s,o,l,u){return o===void 0&&(o=""),l===void 0&&(l=""),u===void 0&&(u=[]),t.StringUtils.formatCase(this.get(s,o,l,u),t.StringUtils.FORMAT_ALL_LOWER_CASE)},a.prototype.getFirstUpperRestLower=function(s,o,l,u){return o===void 0&&(o=""),l===void 0&&(l=""),u===void 0&&(u=[]),t.StringUtils.formatCase(this.get(s,o,l,u),t.StringUtils.FORMAT_FIRST_UPPER_REST_LOWER)},a.prototype.parseJson=function(s){return JSON.parse(s)},a.prototype.parseProperties=function(s){for(var o={},l=new n.JavaPropertiesObject(s),u=0,c=l.getKeys();u<c.length;u++){var d=c[u];o[d]=l.get(d)}return o},a}();e.LocalizationManager=i}(Ly)),Ly}var By={},XT;function dte(){return XT||(XT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ModelHistoryManager=void 0;var t=_o(),r=mr(),n=Cn(),i=function(){function a(s){this.maxSnapshots=-1,this._snapshots=[],this._currentState=s,this._initialState=t.ObjectUtils.clone(this._currentState)}return a.prototype.setInitialState=function(){this._initialState=t.ObjectUtils.clone(this._currentState),this._snapshots=[]},Object.defineProperty(a.prototype,"get",{get:function(){return this._currentState},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"tags",{get:function(){return this._snapshots.map(function(s){return s.tag})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"snapshots",{get:function(){return this._snapshots.map(function(s){return s.state})},enumerable:!1,configurable:!0}),a.prototype.getSnapshotsByTag=function(s){var o="tags must be a non empty string array. To get the full list of snapshots, use the <snapshots> property";if(!r.ArrayUtils.isArray(s))throw new Error(o);if(s.length<=0)throw new Error(o);for(var l=[],u=0;u<this._snapshots.length;u++)s.indexOf(this._snapshots[u].tag)>=0&&l.push(this._snapshots[u].state);return l},a.prototype.saveSnapshot=function(s){if(s===void 0&&(s=""),!n.StringUtils.isString(s))throw new Error("tag must be a string");if(this._snapshots.length>0&&this._snapshots[this._snapshots.length-1].tag===s&&t.ObjectUtils.isEqualTo(this._currentState,this._snapshots[this._snapshots.length-1].state)||this._snapshots.length<=0&&t.ObjectUtils.isEqualTo(this._currentState,this._initialState))return!1;if(this.maxSnapshots>0&&this._snapshots.length>=this.maxSnapshots){var o=this._snapshots.shift();this._initialState=o.state}return this._snapshots.push({state:t.ObjectUtils.clone(this._currentState),tag:s}),!0},Object.defineProperty(a.prototype,"isUndoPossible",{get:function(){return this._snapshots.length>0||!t.ObjectUtils.isEqualTo(this._currentState,this._initialState)},enumerable:!1,configurable:!0}),a.prototype.undo=function(s){if(s===void 0&&(s=[]),this._snapshots.length===0&&!t.ObjectUtils.isEqualTo(this._currentState,this._initialState))return this._currentState=t.ObjectUtils.clone(this._initialState),!0;if(this._snapshots.length>0){var o=this._snapshots[this._snapshots.length-1];return t.ObjectUtils.isEqualTo(this._currentState,o.state)||s.length>0&&s.indexOf(o.tag)<0?(this._snapshots.pop(),this.undo(s)):(this._currentState=t.ObjectUtils.clone(o.state),!0)}return!1},a.prototype.undoAll=function(){return!!this.isUndoPossible&&(this._currentState=t.ObjectUtils.clone(this._initialState),this._snapshots=[],!0)},a.prototype.redo=function(){},a}();e.ModelHistoryManager=i}(By)),By}var zy={},JT;function hte(){return JT||(JT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SerializationManager=void 0;var t=sx(),r=mr(),n=_o(),i=function(){function a(){this.strictMode=!0}return a.prototype.classToJson=function(s){return JSON.stringify(s)},a.prototype.classToObject=function(){},a.prototype.javaPropertiesObjectToString=function(s){return s.toString()},a.prototype.jsonToClass=function(s,o){return this.objectToClass(JSON.parse(s),o)},a.prototype.objectToClass=function(s,o){var l=n.ObjectUtils.getKeys(s),u=o.constructor.name,c=n.ObjectUtils.getKeys(o);if(this.strictMode&&l.length!==c.length)throw new Error("(strict mode): ["+l.join(",")+"] keys do not match "+u+" props: ["+c.join(",")+"]");for(var d=0,p=l;d<p.length;d++){var m=p[d];if(o.hasOwnProperty(m)){var w=s[m];if(w!==null){if(o[m]!==null&&o[m]!==void 0){var g="<"+u+"."+m+"> was "+typeof w+" but expected to be ";if(r.ArrayUtils.isArray(o[m])){if(!r.ArrayUtils.isArray(w))throw new Error(g+"array");if(o[m].length>0){if(o[m].length!==1)throw new Error("To define a typed list, <"+u+"."+m+"> must contain only 1 default typed element");var _=o[m][0],E=n.ObjectUtils.isObject(_)&&_.constructor.name!=="Object";o[m]=[];for(var x=0,b=w;x<b.length;x++){var C=b[x];if(E)o[m].push(this.objectToClass(C,n.ObjectUtils.clone(_)));else{if(typeof C!=typeof _)throw new Error("<"+u+"."+m+"> is defined as array of "+typeof _+" but received "+typeof C);o[m].push(C)}}continue}}if(n.ObjectUtils.isObject(o[m])){if(!n.ObjectUtils.isObject(w))throw new Error(g+o[m].constructor.name);o[m].constructor.name!=="Object"&&(w=this.objectToClass(w,o[m]))}if(typeof o[m]!=typeof w)throw new Error(g+typeof o[m])}o[m]=w}}else if(this.strictMode)throw new Error("(strict mode): <"+m+"> not found in "+u)}return o},a.prototype.stringToJavaPropertiesObject=function(s){return new t.JavaPropertiesObject(s)},a}();e.SerializationManager=i}(zy)),zy}var Uy={},ZT;function pte(){return ZT||(ZT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BaseStrictClass=void 0;var t=function(){return function(){}}();e.BaseStrictClass=t}(Uy)),Uy}var Pc={},$y={},e2;function RF(){return e2||(e2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TableObject=void 0;var t=Cn(),r=mr(),n=Es(),i=zm(),a=function(){function s(o,l){if(o===void 0&&(o=0),l===void 0&&(l=0),this._columnsCount=0,this._rowsCount=0,!(n.NumericUtils.isInteger(o)&&o>=0))throw new Error("constructor rows must be a positive integer");if(this._rowsCount=o,n.NumericUtils.isInteger(l)&&l>=0)this._columnsCount=Number(l);else{if(!r.ArrayUtils.isArray(l))throw new Error("constructor columns must be an integer or an array of strings");this._columnsCount=l.length,this.setColumnNames(l)}if(this._columnsCount+this._rowsCount>0&&(this._columnsCount==0||this._rowsCount==0))throw new Error("constructor columns cannot be empty if rows are positive and vice versa");this._columnNames=new i.HashMapObject,this._cells=new i.HashMapObject}return s.prototype.setColumnName=function(o,l){var u=this._validateColumnIndex(o);if(!t.StringUtils.isString(l))throw new Error("name must be a string");return this._columnNames.set(String(u),l),!0},s.prototype.setColumnNames=function(o){if(this._columnsCount==o.length){if(r.ArrayUtils.hasDuplicateElements(o))throw new Error("array must not contain duplicate elements");var l=o.length;this._columnNames=new i.HashMapObject;for(var u=0;u<l;u++){if(!t.StringUtils.isString(o[u]))throw new Error("List of names must be an array of strings");this._columnNames.set(String(u),o[u])}return o}throw new Error("List of names must match number of columns")},s.prototype.getColumnNames=function(){for(var o=[],l=0;l<this._columnsCount;l++){var u=String(l);o.push(this._columnNames.isKey(u)?this._columnNames.get(u):"")}return o},s.prototype.getColumnName=function(o){var l=String(this._validateColumnIndex(o));return this._columnNames.isKey(l)?this._columnNames.get(l):""},s.prototype.getColumnIndex=function(o){if(!t.StringUtils.isString(o)||o==="")throw new Error("value must be a non empty string");for(var l=0,u=this._columnNames.getKeys();l<u.length;l++){var c=u[l];if(this._columnNames.get(c)===o)return Number(c)}throw new Error("provided column name does not exist")},s.prototype.getColumn=function(o){for(var l=[],u=this._validateColumnIndex(o),c=0;c<this._rowsCount;c++)l.push(this.getCell(c,u));return l},s.prototype.addColumns=function(o,l,u){if(l===void 0&&(l=[]),u===void 0&&(u=-1),!r.ArrayUtils.isArray(l))throw new Error("names must be an array");if(!n.NumericUtils.isInteger(o)||o<=0)throw new Error("number must be a positive integer");if(!n.NumericUtils.isInteger(u)||u<-1||u>=this._columnsCount)throw new Error("at must be a valid column index");if(u>=0)for(var c=this._columnsCount-1;c>=u;c--){this._columnNames.isKey(String(c))&&this._columnNames.rename(String(c),String(c+o));for(var d=0;d<this._rowsCount;d++){var p=String(d)+"-"+String(c);this._cells.isKey(p)&&this._cells.rename(p,String(d)+"-"+String(c+o))}}var m=l.length;if(m>0){if(m!=o)throw new Error("names length must be the same as number");var w=u<0?this._columnsCount:u;for(c=0;c<m;c++)this._columnNames.set(String(w+c),l[c])}return this._columnsCount+=o,!0},s.prototype.setColumn=function(o,l){var u=l.length;if(u<=0)throw new Error("data must not be empty");if(this._rowsCount!=u)throw new Error("data length and number of rows must match");for(var c=this._validateColumnIndex(o),d=0;d<this._rowsCount;d++)this.setCell(d,c,l[d])},s.prototype.removeColumn=function(o){var l=this._validateColumnIndex(o);this._columnNames.isKey(String(l))&&this._columnNames.remove(String(l));for(var u=0;u<this._rowsCount;u++){var c=String(u)+"-"+String(l);this._cells.isKey(c)&&this._cells.remove(c)}for(u=l+1;u<this._columnsCount;u++){this._columnNames.isKey(String(u))&&this._columnNames.rename(String(u),String(u-1));for(var d=0;d<this._rowsCount;d++)c=String(d)+"-"+String(u),this._cells.isKey(c)&&this._cells.rename(c,String(d)+"-"+String(u-1))}this._columnsCount--,this._columnsCount<=0&&(this._rowsCount=0)},s.prototype.getCell=function(o,l){var u=this._validateRowIndex(o)+"-"+this._validateColumnIndex(l);return this._cells.isKey(u)?this._cells.get(u):null},s.prototype.setCell=function(o,l,u){var c=this._validateRowIndex(o),d=this._validateColumnIndex(l);return this._cells.set(c+"-"+d,u)},s.prototype.getRow=function(o){for(var l=[],u=this._validateRowIndex(o),c=0;c<this._columnsCount;c++)l.push(this.getCell(u,c));return l},s.prototype.addRows=function(o,l){if(l===void 0&&(l=-1),!n.NumericUtils.isInteger(o)||o<=0)throw new Error("number must be a positive integer");if(!n.NumericUtils.isInteger(l)||l<-1||l>=this._rowsCount)throw new Error("at must be a valid row index");if(l>=0)for(var u=this._rowsCount-1;u>=l;u--)for(var c=0;c<this._columnsCount;c++){var d=String(u)+"-"+String(c);this._cells.isKey(d)&&this._cells.rename(d,u+o+"-"+String(c))}return this._rowsCount+=o,!0},s.prototype.setRow=function(o,l){var u=l.length;if(u<=0)throw new Error("data must not be empty");if(this._columnsCount!=u)throw new Error("data length and number of columns must match");for(var c=this._validateRowIndex(o),d=0;d<this._columnsCount;d++)this.setCell(c,d,l[d])},s.prototype.removeRow=function(o){for(var l=this._validateRowIndex(o),u=0;u<this._columnsCount;u++){var c=String(l)+"-"+String(u);this._cells.isKey(c)&&this._cells.remove(c)}for(u=l+1;u<this._rowsCount;u++)for(var d=0;d<this._columnsCount;d++)c=String(u)+"-"+String(d),this._cells.isKey(c)&&this._cells.rename(c,String(u-1)+"-"+String(d));this._rowsCount--,this._rowsCount<=0&&(this._columnsCount=0)},s.prototype.countRows=function(){return this._rowsCount},s.prototype.countColumns=function(){return this._columnsCount},s.prototype.countCells=function(){return this._rowsCount*this._columnsCount},s.prototype._validateColumnIndex=function(o){var l=n.NumericUtils.isInteger(o)?Number(o):-1,u=this._columnNames.getValues(),c=this._columnNames.getKeys(),d=u.length;if(t.StringUtils.isString(o)){for(var p=0;p<d;p++)if(o===u[p]){l=Number(c[p]);break}}if(l<0||l>=this._columnsCount)throw new Error("Invalid column value");return l},s.prototype._validateRowIndex=function(o){var l=n.NumericUtils.isInteger(o)?o:-1;if(l<0||l>=this._rowsCount)throw new Error("Invalid row value");return l},s}();e.TableObject=a}($y)),$y}var t2;function mte(){return t2||(t2=1,function(e){var t=Pc&&Pc.__extends||function(){var s=function(o,l){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var d in c)c.hasOwnProperty(d)&&(u[d]=c[d])})(o,l)};return function(o,l){function u(){this.constructor=o}s(o,l),o.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CSVObject=void 0;var r=RF(),n=Cn(),i=mr(),a=function(s){function o(l,u,c,d){l===void 0&&(l=""),u===void 0&&(u=!1),c===void 0&&(c=","),d===void 0&&(d='"');var p=s.call(this)||this;if(p._hasHeaders=!1,!n.StringUtils.isString(l))throw new Error("constructor expects a string value");if(n.StringUtils.isEmpty(l))return p;for(var m=0,w=0,g=!1,_="",E=l.length,x=0;x<E;x++){var b=l.charAt(x);b!==c||g?b!==d?b!=="\r"&&b!==`
`?_+=b:(g?_+=b:w>0&&(p._insertField(m,w,_),m++,_="",w=0),b==="\r"&&l.substr(x+1,1)===`
`&&(g&&(_+=`
`),x++)):g&&l.substr(x+1,1)===d?(_+=b,x++):(g=!g)?_="":x=p._findNextDelimiterIndex(l,x,c,E)-1:(p._insertField(m,w,_),_="",w++)}return(_!=""||w>=p._columnsCount)&&p._insertField(m,w,_),u&&p._defineHeaders(),p}return t(o,s),o.prototype.getCell=function(l,u){var c=s.prototype.getCell.call(this,l,u);return c===null?"":c},o.prototype.setCell=function(l,u,c){if(!n.StringUtils.isString(c))throw new Error("value must be a string");return s.prototype.setCell.call(this,l,u,c)},o.isCSV=function(l){try{return new o(l).countCells()>=0}catch{try{return l!==null&&l instanceof o}catch{return!1}}},o.prototype.isEqualTo=function(l){var u=null;try{u=new o(l,this._hasHeaders)}catch{try{l instanceof o&&(u=l)}catch{}}if(u==null)throw new Error("csv does not contain valid csv data");var c=this.countRows(),d=this.countColumns();if(this.countCells()===0&&u.countCells()===0)return!0;if(this._hasHeaders&&!i.ArrayUtils.isEqualTo(this.getColumnNames(),u.getColumnNames())||c!==u.countRows()||d!==u.countColumns())return!1;for(var p=0;p<c;p++)for(var m=0;m<d;m++){var w=this.getCell(p,m);w===null&&(w="");var g=u.getCell(p,m);if(g===null&&(g=""),w!==g)return!1}return!0},o.prototype.toString=function(l,u){l===void 0&&(l=","),u===void 0&&(u='"');var c="";if(this._hasHeaders){for(var d=[],p=0,m=this.getColumnNames();p<m.length;p++){var w=m[p];d.push(this._escapeField(w,l,u))}c+=d.join(l)+`\r
`}for(var g=this.countRows(),_=this.countColumns(),E=0;E<g;E++){d=[];for(var x=0;x<_;x++){var b="";try{b=this._escapeField(this._cells.get(E+"-"+x),l,u)}catch{}d.push(b)}c+=d.join(l)+`\r
`}return g>0?c.substring(0,c.length-2):c},o.prototype._insertField=function(l,u,c){l>=this._rowsCount&&this._rowsCount++,u>=this._columnsCount&&this._columnsCount++,this._cells.set(l+"-"+u,c)},o.prototype._escapeField=function(l,u,c){return(l.indexOf("\r")>=0||l.indexOf(`
`)>=0||l.indexOf(c)>=0||l.indexOf(u)>=0)&&(l=c+(l=n.StringUtils.replace(l,[c],[c+c]))+c),l},o.prototype._findNextDelimiterIndex=function(l,u,c,d){for(var p=u+1;p<d;p++){var m=l.charAt(p);if(m===c||m==="\r"||m===`
`)return p}return d},o.prototype._defineHeaders=function(){var l=this.getRow(0);if(i.ArrayUtils.hasDuplicateElements(l)){for(var u=0,c=[],d=i.ArrayUtils.getDuplicateElements(l),p=0,m=l;p<m.length;p++){var w=m[p];if(w===null||w==="")w="("+ ++u+")";else for(var g=0,_=d;g<_.length;g++)if(w===_[g]){w=w+"("+ ++u+")";break}c.push(w)}this.setColumnNames(c)}else this.setColumnNames(l);this.removeRow(0),this._hasHeaders=!0},o}(r.TableObject);e.CSVObject=a}(Pc)),Pc}var Hy={},n2;function gte(){return n2||(n2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DateTimeObject=void 0;var t=Cn(),r=Es(),n=function(){function i(a){a===void 0&&(a=""),this._dateTimeString="",this._dateTimeStringExploded=[],t.StringUtils.isEmpty(a)?this._dateTimeStringExploded=this._explodeISO8601String(new Date().toISOString()):this._dateTimeStringExploded=this._explodeISO8601String(this._dateTimeString)}return i.isValidDateTime=function(a){if(t.StringUtils.isString(a)&&a.substr(-1).match(/^[a-z0-9]+$/i)&&a.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 s=a.split("-");if(s.length>=3){var o=new Date(Number(s[0]),Number(s[1]),Number(s[2].substr(0,2)));return o.getMonth()+1===Number(s[1])&&o.getDate()===Number(s[2].substr(0,2))&&o.getFullYear()===Number(s[0])}return!0}return typeof a=="function"},i.isEqual=function(a,s){return i.compare(a,s)===0},i.getMonthName=function(a){if(!r.NumericUtils.isNumeric(a)||a>12||a<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"][a-1]},i.getDayName=function(a){if(!r.NumericUtils.isNumeric(a)||a>7||a<1)throw new Error("Provided value is not a valid day number between 1 and 7");return["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"][a-1]},i.getCurrentYear=function(){return new Date().getFullYear()},i.getCurrentMonth=function(){return new Date().getMonth()+1},i.getCurrentDay=function(){return new Date().getDate()},i.getCurrentDayOfWeek=function(){},i.getCurrentHour=function(){return new Date().getHours()},i.getCurrentMinute=function(){return new Date().getMinutes()},i.getCurrentSecond=function(){return new Date().getSeconds()},i.getCurrentMiliSecond=function(){return Math.round(new Date().getMilliseconds()/1e3)},i.getCurrentMicroSecond=function(){},i.getCurrentTimeZoneOffset=function(){return new Date().getTimezoneOffset()},i.compare=function(a,s){if(i.isValidDateTime(a)&&i.isValidDateTime(s)){t.StringUtils.isString(a)&&(a=new i(a)),t.StringUtils.isString(s)&&(s=new i(s)),a.setUTC(),s.setUTC();var o=a.toString(),l=s.toString();if(o===l)return 0;var u=[o,l];return u.sort(),u[0]===o?2:1}throw new Error("Provided value is not a valid ISO 8601 date time format")},i.prototype.getYear=function(){return Number(this._dateTimeStringExploded[0])},i.prototype.getMonth=function(){return Number(this._dateTimeStringExploded[1])},i.prototype.getDay=function(){return Number(this._dateTimeStringExploded[2])},i.prototype.getDayOfWeek=function(){},i.prototype.getHour=function(){return Number(this._dateTimeStringExploded[3])},i.prototype.getMinute=function(){return Number(this._dateTimeStringExploded[4])},i.prototype.getSecond=function(){return Number(this._dateTimeStringExploded[5])},i.prototype.getMiliSecond=function(){return Math.round(this.getMicroSecond()/1e3)},i.prototype.getMicroSecond=function(){return Number(this._dateTimeStringExploded[6])},i.prototype.getTimeZoneOffset=function(){return new Date(this._dateTimeString).getTimezoneOffset()},i.prototype.getFirstDayOfMonth=function(){},i.prototype.getLastDayOfMonth=function(){},i.prototype.setLocalTimeZone=function(){},i.prototype.isUTC=function(){return this.getTimeZoneOffset()===0},i.prototype.setUTC=function(){return this._dateTimeStringExploded=this._explodeISO8601String(this._dateTimeString),this},i.prototype.toString=function(a){a===void 0&&(a="Y-M-DTH:N:S.UOffset");var s=this._dateTimeStringExploded;return a=t.StringUtils.replace(a,"Offset",s[7].substr(0)),a=t.StringUtils.replace(a,"Y",s[0]),a=t.StringUtils.replace(a,"y",s[0].substr(2)),a=t.StringUtils.replace(a,"M",s[1]),a=t.StringUtils.replace(a,"m",String(Number(s[1]))),a=t.StringUtils.replace(a,"D",s[2]),a=t.StringUtils.replace(a,"d",String(Number(s[2]))),a=t.StringUtils.replace(a,"H",s[3]),a=t.StringUtils.replace(a,"h",String(Number(s[3]))),a=t.StringUtils.replace(a,"N",s[4]),a=t.StringUtils.replace(a,"n",String(Number(s[4]))),a=t.StringUtils.replace(a,"S",s[5]),a=t.StringUtils.replace(a,"s",String(Number(s[5]))),a=t.StringUtils.replace(a,"u",t.StringUtils.pad(String(Math.min(999,Math.round(Number(s[6])/1e3))),3,"0")),t.StringUtils.replace(a,"U",t.StringUtils.pad(s[6],6,"0","RIGHT"))},i.prototype.compareTo=function(a){return i.compare(this,a)},i.prototype.isEqualTo=function(a){return i.compare(this,a)===0},i.prototype._explodeISO8601String=function(a){var s=["","01","01","00","00","00","000000",""];a.substr(a.length-1,1).toLowerCase()==="z"&&(a=a.substr(0,a.length-1)+"+00:00");for(var o=a.split(/[+-.: TZ]/),l=0;o.length>0&&l<6;)s[l]=o.shift(),l++;var u=o.length;return u!==1&&u!==3||(s[6]=o.shift()+"000"),u!==2&&u!==3||(s[7]=a.substr(a.length-6,1)+o[0]+":"+o[1]),s},i}();e.DateTimeObject=n}(Hy)),Hy}var qy={},r2;function vte(){return r2||(r2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConversionUtils=void 0;var t=Cn(),r=function(){function n(){}return n.stringToBase64=function(i){if(i==null)return"";if(!t.StringUtils.isString(i))throw new Error("ConversionUtils.stringToBase64: value is not a string");var a,s,o,l,u,c,d,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",m="";i=function(g){var _="";g=g.replace(/\r\n/g,`
`);for(var E=0;E<g.length;E++){var x=g.charCodeAt(E);x<128?_+=String.fromCharCode(x):x>127&&x<2048?(_+=String.fromCharCode(x>>6|192),_+=String.fromCharCode(63&x|128)):(_+=String.fromCharCode(x>>12|224),_+=String.fromCharCode(x>>6&63|128),_+=String.fromCharCode(63&x|128))}return _}(i);for(var w=0;w<i.length;)l=(a=i.charCodeAt(w++))>>2,u=(3&a)<<4|(s=i.charCodeAt(w++))>>4,c=(15&s)<<2|(o=i.charCodeAt(w++))>>6,d=63&o,isNaN(s)?c=d=64:isNaN(o)&&(d=64),m=m+p.charAt(l)+p.charAt(u)+p.charAt(c)+p.charAt(d);return m},n.base64ToString=function(i){if(i==null)return"";if(!t.StringUtils.isString(i))throw new Error("ConversionUtils.stringToBase64: value is not a string");var a,s,o,l,u,c,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",p="",m=0;for(i=i.replace(/[^A-Za-z0-9\+\/\=]/g,"");m<i.length;)a=d.indexOf(i.charAt(m++))<<2|(l=d.indexOf(i.charAt(m++)))>>4,s=(15&l)<<4|(u=d.indexOf(i.charAt(m++)))>>2,o=(3&u)<<6|(c=d.indexOf(i.charAt(m++))),p+=String.fromCharCode(a),u!=64&&(p+=String.fromCharCode(s)),c!=64&&(p+=String.fromCharCode(o));return function(w){for(var g="",_=0,E=0,x=0;_<w.length;)if((E=w.charCodeAt(_))<128)g+=String.fromCharCode(E),_++;else if(E>191&&E<224)x=w.charCodeAt(_+1),g+=String.fromCharCode((31&E)<<6|63&x),_+=2;else{x=w.charCodeAt(_+1);var b=w.charCodeAt(_+2);g+=String.fromCharCode((15&E)<<12|(63&x)<<6|63&b),_+=3}return g}(p)},n}();e.ConversionUtils=r}(qy)),qy}var i2;function yte(){return i2||(i2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=lte();Object.defineProperty(e,"BrowserManager",{enumerable:!0,get:function(){return t.BrowserManager}});var r=ute();Object.defineProperty(e,"HTTPManager",{enumerable:!0,get:function(){return r.HTTPManager}});var n=Um();Object.defineProperty(e,"HTTPManagerBaseRequest",{enumerable:!0,get:function(){return n.HTTPManagerBaseRequest}});var i=IF();Object.defineProperty(e,"HTTPManagerGetRequest",{enumerable:!0,get:function(){return i.HTTPManagerGetRequest}});var a=cte();Object.defineProperty(e,"HTTPManagerPostRequest",{enumerable:!0,get:function(){return a.HTTPManagerPostRequest}});var s=fte();Object.defineProperty(e,"LocalizationManager",{enumerable:!0,get:function(){return s.LocalizationManager}});var o=dte();Object.defineProperty(e,"ModelHistoryManager",{enumerable:!0,get:function(){return o.ModelHistoryManager}});var l=hte();Object.defineProperty(e,"SerializationManager",{enumerable:!0,get:function(){return l.SerializationManager}});var u=Bm();Object.defineProperty(e,"ValidationManager",{enumerable:!0,get:function(){return u.ValidationManager}});var c=pte();Object.defineProperty(e,"BaseStrictClass",{enumerable:!0,get:function(){return c.BaseStrictClass}});var d=mte();Object.defineProperty(e,"CSVObject",{enumerable:!0,get:function(){return d.CSVObject}});var p=gte();Object.defineProperty(e,"DateTimeObject",{enumerable:!0,get:function(){return p.DateTimeObject}});var m=zm();Object.defineProperty(e,"HashMapObject",{enumerable:!0,get:function(){return m.HashMapObject}});var w=sx();Object.defineProperty(e,"JavaPropertiesObject",{enumerable:!0,get:function(){return w.JavaPropertiesObject}});var g=RF();Object.defineProperty(e,"TableObject",{enumerable:!0,get:function(){return g.TableObject}});var _=mr();Object.defineProperty(e,"ArrayUtils",{enumerable:!0,get:function(){return _.ArrayUtils}});var E=vte();Object.defineProperty(e,"ConversionUtils",{enumerable:!0,get:function(){return E.ConversionUtils}});var x=PF();Object.defineProperty(e,"EncodingUtils",{enumerable:!0,get:function(){return x.EncodingUtils}});var b=Es();Object.defineProperty(e,"NumericUtils",{enumerable:!0,get:function(){return b.NumericUtils}});var C=_o();Object.defineProperty(e,"ObjectUtils",{enumerable:!0,get:function(){return C.ObjectUtils}});var v=Cn();Object.defineProperty(e,"StringUtils",{enumerable:!0,get:function(){return v.StringUtils}})}(Ay)),Ay}var wte=yte();function ru(e,t){return t>e?`${e}_${t}`:`${t}_${e}`}function _te(e){const t=new Map;return e.forEach(r=>{if(r.Mother||r.Father){const n=ru(r.Mother,r.Father);Qo(t,r.Mother).add(n),Qo(t,r.Father).add(n)}r.Spouses&&Object.values(r.Spouses).forEach(n=>{const i=ru(r.Id,n.Id);Qo(t,r.Id).add(i),Qo(t,n.Id).add(i)})}),t}function bte(e){const t=new Map;return e.forEach(r=>{if(r.Mother||r.Father){const n=ru(r.Mother,r.Father);Qo(t,n).add(r.Id)}}),t}function xte(e){const t=new Map;return e.forEach(r=>{if(r.Mother||r.Father){const n=ru(r.Mother,r.Father);t.set(n,{wife:r.Mother||void 0,husband:r.Father||void 0})}r.Spouses&&Object.values(r.Spouses).forEach(n=>{const i=ru(r.Id,n.Id),a=r.Gender==="Male"?{wife:n.Id,husband:r.Id,spouse:n}:{wife:r.Id,husband:n.Id,spouse:n};t.set(i,a)})}),t}function Ete(e,t){const r=_te(e);return e.map(n=>{const i=Tte(n,t);return i.fams=Array.from(Qo(r,n.Id)),i})}function Ste(e){const t=new Map(e.map(i=>[i.Id,i.Name])),r=bte(e),n=xte(e);return Array.from(n.entries()).map(([i,a])=>{const s={id:i},o=a.wife&&t.get(a.wife);o&&(s.wife=o);const l=a.husband&&t.get(a.husband);if(l&&(s.husb=l),s.children=Array.from(Qo(r,i)).map(u=>t.get(u)).filter(u=>!!u),a.spouse&&(a.spouse.marriage_date&&a.spouse.marriage_date!=="0000-00-00"||a.spouse.marriage_location)){const u=E1(a.spouse.marriage_date);s.marriage=Object.assign({},u,{place:a.spouse.marriage_location})}return s})}function Cte(e,t){const r={};return e.Name.startsWith(ax)&&(r.hideId=!0,r.firstName=t.formatMessage({id:"wikitree.private",defaultMessage:"Private"})),e.FirstName&&e.FirstName!=="Unknown"?r.firstName=e.FirstName:e.RealName&&e.RealName!=="Unknown"&&(r.firstName=e.RealName),e.LastNameAtBirth!=="Unknown"&&(r.lastName=e.LastNameAtBirth),r}function kte(e){const t={};if(e.BirthDate&&e.BirthDate!=="0000-00-00"||e.BirthLocation||e.BirthDateDecade!=="unknown"){const n=E1(e.BirthDate,e.DataStatus&&e.DataStatus.BirthDate||void 0)||a2(e.BirthDateDecade);t.birth=Object.assign({},n,{place:e.BirthLocation})}if(e.DeathDate&&e.DeathDate!=="0000-00-00"||e.DeathLocation||e.DeathDateDecade!=="unknown"){const n=E1(e.DeathDate,e.DataStatus&&e.DataStatus.DeathDate||void 0)||a2(e.DeathDateDecade);t.death=Object.assign({},n,{place:e.DeathLocation})}return t}function Ate(e){if(e.PhotoData)return[{url:`https://www.wikitree.com${e.PhotoData.url}`,title:e.Photo}]}function Tte(e,t){const r=Object.assign({id:e.Name},Cte(e,t),kte(e));(e.Mother||e.Father)&&(r.famc=ru(e.Mother,e.Father)),e.Gender==="Male"?r.sex="M":e.Gender==="Female"&&(r.sex="F");const n=Ate(e);return n&&(r.images=n),r}function Ite(e,t){return wte.StringUtils.compareSimilarityPercent(e,t)>=75}function Pte(e){if(!e.Spouses||e.LastNameCurrent==="Unknown"||e.LastNameCurrent===e.LastNameAtBirth)return;const t=e.LastNameCurrent.split(/[- ,]/);return Object.entries(e.Spouses).flatMap(([,n])=>n.LastNameAtBirth.split(/[- ,]/)).some(n=>t.some(i=>Ite(n,i)))?e.LastNameCurrent:void 0}function Rte(e){const t=e.LastNameAtBirth!=="Unknown"?e.LastNameAtBirth:void 0,r=Pte(e),n=e.LastNameOther!=="Unknown"&&e.LastNameAtBirth!==e.LastNameOther&&e.LastNameCurrent!==e.LastNameOther?e.LastNameOther:void 0;return{birth:t,married:r,aka:n}}function E1(e,t){if(!e)return;const r=e.match(/(\d\d\d\d)-(\d\d)-(\d\d)/);if(!r)return{date:{text:e}};const n={};return r[1]!=="0000"&&(n.year=~~r[1]),r[2]!=="00"&&(n.month=~~r[2]),r[3]!=="00"&&(n.day=~~r[3]),t==="after"?{dateRange:{from:n}}:t==="before"?{dateRange:{to:n}}:(t==="guess"&&(n.qualifier="abt"),{date:n})}function a2(e){return e!=="unknown"?{date:{text:e}}:void 0}function Qo(e,t){const r=e.get(t);if(r)return r;const n=new Set;return e.set(t,n),n}async function OF(e,t,r){const n=await ste(e,r),i=Ete(n,t),a=Ste(n),s=zD({indis:i,fams:a}),o=new Map(n.map(c=>[c.Name,Rte(c)])),l=new Map(n.filter(c=>{var d;return(d=c.PhotoData)==null?void 0:d.path}).map(c=>[c.Name,`https://www.wikitree.com${c.PhotoData.path}`])),u=Hee(s,l,o);return{chartData:s,gedcom:u}}class Ote{constructor(t){this.intl=t}isNewData(t,r,n){var i;return!(!t.selection||((i=r.selection)==null?void 0:i.id)===t.selection.id||n&&n.chartData.indis.some(a=>{var s;return a.id===((s=t.selection)==null?void 0:s.id)}))}async loadData(t){if(!t.selection)throw new vu("WIKITREE_ID_NOT_PROVIDED","WikiTree id needs to be provided");try{const r=await OF(t.selection.id,this.intl,t.spec.authcode);return vn("wikitree_loaded"),r}catch(r){throw vn("wikitree_error"),r}}}const S1=Math.PI,C1=2*S1,Go=1e-6,Nte=C1-Go;function NF(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Mte(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return NF;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Dte{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?NF:Mte(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,s){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+s}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,o=this._y1,l=n-t,u=i-r,c=s-t,d=o-r,p=c*c+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>Go)if(!(Math.abs(d*l-u*c)>Go)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let m=n-s,w=i-o,g=l*l+u*u,_=m*m+w*w,E=Math.sqrt(g),x=Math.sqrt(p),b=a*Math.tan((S1-Math.acos((g+p-_)/(2*E*x)))/2),C=b/x,v=b/E;Math.abs(C-1)>Go&&this._append`L${t+C*c},${r+C*d}`,this._append`A${a},${a},0,0,${+(d*m>c*w)},${this._x1=t+v*l},${this._y1=r+v*u}`}}arc(t,r,n,i,a,s){if(t=+t,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(i),l=n*Math.sin(i),u=t+o,c=r+l,d=1^s,p=s?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Go||Math.abs(this._y1-c)>Go)&&this._append`L${u},${c}`,n&&(p<0&&(p=p%C1+C1),p>Nte?this._append`A${n},${n},0,1,${d},${t-o},${r-l}A${n},${n},0,1,${d},${this._x1=u},${this._y1=c}`:p>Go&&this._append`A${n},${n},0,${+(p>=S1)},${d},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function nl(e){return function(){return e}}function Fte(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Dte(t)}function Lte(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function MF(e){this._context=e}MF.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function jte(e){return new MF(e)}function Bte(e){return e[0]}function zte(e){return e[1]}function o2(e,t){var r=nl(!0),n=null,i=jte,a=null,s=Fte(o);e=typeof e=="function"?e:e===void 0?Bte:nl(e),t=typeof t=="function"?t:t===void 0?zte:nl(t);function o(l){var u,c=(l=Lte(l)).length,d,p=!1,m;for(n==null&&(a=i(m=s())),u=0;u<=c;++u)!(u<c&&r(d=l[u],u,l))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+e(d,u,l),+t(d,u,l));if(m)return a=null,m+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:nl(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:nl(+l),o):t},o.defined=function(l){return arguments.length?(r=typeof l=="function"?l:nl(!!l),o):r},o.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),o):i},o.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),o):n},o}function s2(e,t,r){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+r)/6)}function DF(e){this._context=e}DF.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:s2(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:s2(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ute(e){return new DF(e)}function l2(e){return e<0?-1:1}function u2(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),s=(r-e._y1)/(i||n<0&&-0),o=(a*i+s*n)/(n+i);return(l2(a)+l2(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(o))||0}function c2(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Gy(e,t,r){var n=e._x0,i=e._y0,a=e._x1,s=e._y1,o=(a-n)/3;e._context.bezierCurveTo(n+o,i+o*t,a-o,s-o*r,a,s)}function k1(e){this._context=e}k1.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:Gy(this,this._t0,c2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(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,Gy(this,c2(this,r=u2(this,e,t)),r);break;default:Gy(this,this._t0,r=u2(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function FF(e){this._context=new LF(e)}(FF.prototype=Object.create(k1.prototype)).point=function(e,t){k1.prototype.point.call(this,t,e)};function LF(e){this._context=e}LF.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,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function $te(e){return new FF(e)}function Hte(e,t,r){if(!t.rels.children)return;const n=t.rels.spouses||[];return e.sort((i,a)=>{const s=f2(i,t,r),o=f2(a,t,r),l=s?n.indexOf(s.id):-1,u=o?n.indexOf(o.id):-1;return t.data.gender==="M"?l-u:u-l})}function qte(e){return e.sort((t,r)=>{const n=t._new_rel_data,i=r._new_rel_data;return n&&!i?1:!n&&i?-1:0})}function f2(e,t,r){return r.find(n=>n.id!==t.id&&e.rels.parents.includes(n.id))}function iu(e,t,r){if(e.exiting=r,t)if(e.depth===0&&!e.spouse)e._x=e.x,e._y=e.y;else if(e.spouse)e._x=e.spouse.x,e._y=e.spouse.y;else if(e.is_ancestry){if(!e.parent)throw new Error("no parent");e._x=e.parent.x,e._y=e.parent.y}else e._x=e.psx,e._y=e.psy;else if(r){const n=e.x>0?1:-1,i=e.y>0?1:-1;e._x=e.x+400*n,e._y=e.y+400*i}}function Gte({tree:e,data_stash:t,node_separation:r,sortChildrenFunction:n}){const i=e.find(p=>p.data.main);if(!i)throw new Error("no main");const a=i.data.rels.parents[0],s=i.data.rels.parents[1],o=u(i);if(o.length>0&&!i.parents)throw new Error("no parents");const l=c(i);d(i);function u(p){return t.filter(m=>m.id===p.data.id?!1:!!(a&&m.rels.parents.includes(a)||s&&m.rels.parents.includes(s)))}function c(p){const m=[];for(let w=0;w<o.length;w++){const g={data:o[w],sibling:!0,x:0,y:p.y,depth:p.depth-1,parents:[]},_=p.parents.find(x=>x.data.id===g.data.rels.parents[0]),E=p.parents.find(x=>x.data.id===g.data.rels.parents[1]);_&&g.parents.push(_),E&&g.parents.push(E),e.push(g),m.push(g)}return m}function d(p){var m,w;const g=[p,...l];n&&g.sort((C,v)=>n(C.data,v.data)),g.sort((C,v)=>{const k=p.parents.find(j=>j.data.id===C.data.rels.parents[0]),T=p.parents.find(j=>j.data.id===C.data.rels.parents[1]),N=p.parents.find(j=>j.data.id===v.data.rels.parents[0]),M=p.parents.find(j=>j.data.id===v.data.rels.parents[1]);return!T&&M?-1:T&&!M||!k&&N?1:k&&!N?-1:0});const _=p.x,E=(p.spouses||[]).map(C=>C.x),x=Yo([_,...E]),b=g.findIndex(C=>C.data.id===p.data.id);for(let C=0;C<g.length;C++){if(C===b)continue;const v=g[C];C<b?v.x=((m=x[0])!==null&&m!==void 0?m:0)-r*(b-C):v.x=((w=x[1])!==null&&w!==void 0?w:0)+r*(C-b)}}}function Wte({tree:e,data_stash:t,private_cards_config:r}){const n={},i=r.condition;if(!i)return console.error("private_cards_config.condition is not set");e.forEach(s=>{if(s.data._new_rel_data)return;const o=a(s.data.id);o&&(s.is_private=o)});function a(s){const o=[];let l=!1;return u(s),n[s]=l,l;function u(c){if(l)return;if(n.hasOwnProperty(c))return l=n[c],l;const d=t.find(m=>m.id===c);if(!d)throw new Error("no d");if(d._new_rel_data)return;if(i(d))return l=!0,!0;const p=d.rels;[...p.parents,...p.spouses||[]].forEach(m=>{m&&(o.includes(m)||(o.push(m),u(m)))})}}}function Vte(e,t){const r=t.find(o=>o.id===e);if(!r)throw new Error("no datum");const n=fs(r,o=>s(o)),i=fs(r,o=>a(o));return{ancestry:n.height,progeny:i.height};function a(o){return[...o.rels.children||[]].map(l=>t.find(u=>u.id===l)).filter(l=>l&&!l._new_rel_data&&!l.to_add)}function s(o){return o.rels.parents.filter(l=>l).map(l=>t.find(u=>u.id===l)).filter(l=>l&&!l._new_rel_data&&!l.to_add)}}function Ha({data:e,rels:t}){return{id:Qte(),data:e||{},rels:Object.assign({parents:[],children:[],spouses:[]},t||{})}}function Qte(){var e=new Date().getTime(),t=performance&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var n=Math.random()*16;return e>0?(n=(e+n)%16|0,e=Math.floor(e/16)):(n=(t+n)%16|0,t=Math.floor(t/16)),(r==="x"?n:n&3|8).toString(16)})}function Kte(e,t){const r=e.data.rels;return[...r.parents,...r.spouses||[],...r.children||[]].filter(i=>i).every(i=>t.some(a=>a.data.id===i))}function ad(e,t,r){const n=r*.4,i=Math.max(...e.data.map(s=>s.is_ancestry?s.depth:0));let a=t.depth*n;return(t.depth!==0||t.spouse)&&!t.is_ancestry&&(a+=i*n,t.spouse&&(a+=n),a+=t.depth*n),a}function Yte(e){e.forEach(t=>{var n;if(!t.spouse)return;const r=t.spouse;if(t.duplicate&&r.data._tgdp_sp){const i=r.data.main?"main":r.parent.data.id;(n=r.data._tgdp_sp[i])!=null&&n.hasOwnProperty(t.data.id)&&(t._toggle=r.data._tgdp_sp[i][t.data.id])}})}function Xte(e,t,r=!0){const n=[];i(e),p(n);function i(m){if(!m.children)return;const w=m.data,g=(m.data.rels.spouses||[]).map(E=>t.find(x=>x.id===E)),_=d(m);g.forEach(E=>{if(n.some(b=>b.some(C=>c([w,E],[C.p1,C.p2]))))return;const x=u(m,w,E);if(x.length>0){const b=[{d:m,p1:w,p2:E},...x];n.push(b),a(b),s(b)}else{let b=e===m?"main":m.parent.data.id;o(m,b,E),(_[E.id]||[]).forEach(C=>{i(C)})}})}function a(m){if(m.forEach(({d:w,p1:g,p2:_},E)=>{w.data._tgdp_sp||(w.data._tgdp_sp={});let x=e===w?"main":w.parent.data.id;l(w,x,_),w.data._tgdp_sp[x]||(w.data._tgdp_sp[x]={});let b=1;w.data._tgdp_sp[x].hasOwnProperty(_.id)?b=w.data._tgdp_sp[x][_.id]:w.data._tgdp_sp[x][_.id]=b,m[E].val=b}),r){if(m.every(w=>w.val<0)){const w=m.sort((b,C)=>C.val-b.val)[0],{d:g,p1:_,p2:E}=w,x=e===g?"main":g.parent.data.id;g.data._tgdp_sp[x][E.id]=1}if(m.filter(w=>w.val>0).length>1){const w=m.sort((g,_)=>_.val-g.val)[0];m.forEach(g=>{if(g===w)return;const{d:_,p1:E,p2:x}=g,b=e===_?"main":_.parent.data.id;_.data._tgdp_sp[b][x.id]=-1})}}}function s(m){m.forEach(({d:w,p1:g,p2:_})=>{const E=e===w?"main":w.parent.data.id;if(w.data._tgdp_sp[E][_.id]<0){const x=d(w);x[_.id]&&(w.children=w.children.filter(b=>!x[_.id].includes(b)),w.children.length===0&&delete w.children)}})}function o(m,w,g){m.data._tgdp_sp&&m.data._tgdp_sp[w]&&m.data._tgdp_sp[w].hasOwnProperty(g.id)&&(m.data.__tgdp_sp||(m.data.__tgdp_sp={}),m.data.__tgdp_sp[w]||(m.data.__tgdp_sp[w]={}),m.data.__tgdp_sp[w][g.id]=m.data._tgdp_sp[w][g.id],delete m.data._tgdp_sp[w][g.id])}function l(m,w,g){m.data.__tgdp_sp&&m.data.__tgdp_sp[w]&&m.data.__tgdp_sp[w].hasOwnProperty(g.id)&&(m.data._tgdp_sp[w][g.id]=m.data.__tgdp_sp[w][g.id],delete m.data.__tgdp_sp[w][g.id])}function u(m,w,g){const _=[];return E(e),_;function E(x){if(x!==m&&x.children){const b=x.data,C=(x.data.rels.spouses||[]).map(k=>t.find(T=>T.id===k)),v=d(x);C.forEach(k=>{c([w,g],[b,k])?_.push({d:x,p1:b,p2:k}):(v[k.id]||[]).forEach(T=>{E(T)})})}}}function c(m,w){return m.every(g=>w.some(_=>g.id===_.id))}function d(m){const w={},g=m;return(m.children||[]).forEach(_=>{const E=_.data.rels,x=E.parents[0]===g.data.id?E.parents[1]:E.parents[0];w[x]||(w[x]=[]),w[x].push(_)}),w}function p(m){let w=0;m.forEach(g=>{w=w+1,g.forEach(_=>{_.d._toggle_id_sp||(_.d._toggle_id_sp={}),_.d._toggle_id_sp[_.p2.id]=w})})}}function Jte(e,t=!0){const r=[];n(e),l(r);function n(u){if(u.children){if(r.some(d=>d.includes(u)))return;const c=s(u.children);if(c.length>0){const d=[u,...c];r.push(d),i(d),a(d)}else u.children.forEach(d=>{n(d)})}}function i(u){if(u.forEach(c=>{c.data._tgdp||(c.data._tgdp={});const d=e===c?"main":c.parent.data.id;c.data._tgdp[d]||(c.data._tgdp[d]=-1),c._toggle=c.data._tgdp[d]}),t){if(u.every(c=>c._toggle<0)){const d=u.sort((m,w)=>w._toggle-m._toggle)[0],p=e===d?"main":d.parent.data.id;d.data._tgdp[p]=1}if(u.filter(c=>c._toggle>0).length>1){const c=u.sort((d,p)=>p._toggle-d._toggle)[0];u.forEach(d=>{if(d===c)return;const p=d,m=e===p?"main":p.parent.data.id;p.data._tgdp[m]=-1})}}}function a(u){u.forEach(c=>{const d=e===c?"main":c.parent.data.id;c.data._tgdp[d]<0&&delete c.children})}function s(u){const c=[];return d(e),c;function d(p){p.children&&(o(u,p.children)?c.push(p):p.children.forEach(m=>{d(m)}))}}function o(u,c){return u!==c&&u.every(d=>c.some(p=>d.data.id===p.data.id))}function l(u){let c=0;u.forEach(d=>{c=c+1,d.forEach(p=>{p._toggle_id=c})})}}function d2(e){return e.forEach(r=>{r.rels.parents||(r.rels.parents=[]),r.rels.spouses||(r.rels.spouses=[]),r.rels.children||(r.rels.children=[]),t(r)}),e;function t(r){r.rels.parents||(r.rels.parents=[]),r.rels.father&&r.rels.parents.push(r.rels.father),r.rels.mother&&r.rels.parents.push(r.rels.mother),delete r.rels.father,delete r.rels.mother}}function Zte(e,t=!1){return e.forEach(r=>{var n;if(t){let i,a;(n=r.rels.parents)===null||n===void 0||n.forEach(s=>{const o=e.find(l=>l.id===s);if(!o)throw new Error("Parent not found");o.data.gender==="M"&&(i?a=o.id:i=o.id),o.data.gender==="F"&&(a?i=o.id:a=o.id)}),i&&(r.rels.father=i),a&&(r.rels.mother=a),delete r.rels.parents}r.rels.parents&&r.rels.parents.length===0&&delete r.rels.parents,r.rels.spouses&&r.rels.spouses.length===0&&delete r.rels.spouses,r.rels.children&&r.rels.children.length===0&&delete r.rels.children}),e}function ene(e,{main_id:t=null,node_separation:r=250,level_separation:n=150,single_parent_empty_card:i=!0,is_horizontal:a=!1,one_level_rels:s=!1,sortChildrenFunction:o=void 0,sortSpousesFunction:l=void 0,ancestry_depth:u=void 0,progeny_depth:c=void 0,show_siblings_of_main:d=!1,modifyTreeHierarchy:p=void 0,private_cards_config:m=void 0,duplicate_branch_toggle:w=!1,on_toggle_one_close_others:g=!0}){if(!e||!e.length)throw new Error("No data");a&&([r,n]=[n,r]);const _=i?W(e):e;(!t||!_.find(K=>K.id===t))&&(t=_[0].id);const E=_.find(K=>K.id===t);if(!E)throw new Error("Main not found");const x=k(E,"children",!1),b=k(E,"parents",!0);_.forEach(K=>K.main=K===E),T(b,x);const C=N(b,x);$(C),j(C,r),d&&!s&&Gte({tree:C,data_stash:_,node_separation:r,sortChildrenFunction:o}),D(C),M(C),C.forEach(K=>K.all_rels_displayed=Kte(K,C)),m&&Wte({tree:C,data_stash:_,private_cards_config:m}),tne(C),w&&Yte(C);const v=X(C,r,n);return{data:C,data_stash:_,dim:v,main_id:E.id,is_horizontal:a};function k(K,Y,q){const F=Y==="children"?Ne:Le,G=TD().nodeSize([r,n]).separation(se),z=fs(K,F);H(z,q),w&&V(z,_,q),p&&p(z,q),G(z);const B=z.descendants();return B.forEach(Oe=>{Oe.x===void 0&&(Oe.x=0),Oe.y===void 0&&(Oe.y=0)}),B;function se(Oe,Fe){let We=1;return q||(de(Oe,Fe)||(We+=.25),s||Ie(Oe,Fe)&&(We+=He(Oe,Fe)),de(Oe,Fe)&&!me(Oe,Fe)&&(We+=.125)),We}function de(Oe,Fe){return Oe.parent==Fe.parent}function me(Oe,Fe){const We=[...Oe.data.rels.parents].sort(),rt=[...Fe.data.rels.parents].sort();return We.length===rt.length&&We.every((ot,st)=>ot===rt[st])}function Ee(Oe){return Oe.data.rels.spouses&&Oe.data.rels.spouses.length>0}function Ie(Oe,Fe){return Ee(Oe)||Ee(Fe)}function Ne(Oe){const Fe=[...Oe.rels.children||[]].map(We=>_.find(rt=>rt.id===We)).filter(We=>We!==void 0);return o&&Fe.sort(o),qte(Fe),l&&l(Oe,_),Hte(Fe,Oe,_),Fe}function Le(Oe){let Fe=[...Oe.rels.parents];const We=_.find(rt=>rt.id===Fe[0]);return We&&We.data.gender==="F"&&Fe.reverse(),Fe.filter(rt=>rt).map(rt=>_.find(ot=>ot.id===rt)).filter(rt=>rt!==void 0)}function He(Oe,Fe){return((Oe.data.rels.spouses||[]).length+(Fe.data.rels.spouses||[]).length)*.5}}function T(K,Y){const q=(K[0].x-Y[0].x)/2;K.forEach(F=>F.x-=q),Y.forEach(F=>F.x+=q)}function N(K,Y){return K.forEach(q=>{q.is_ancestry=!0}),K.forEach(q=>q.depth===1?q.parent=Y[0]:null),[...Y,...K.slice(1)]}function M(K){K.forEach(Y=>{if(Y.y*=Y.is_ancestry?-1:1,a){const q=Y.x;Y.x=Y.y,Y.y=q}})}function j(K,Y){for(let q=K.length;q--;){const F=K[q];if(!F.is_ancestry){let G=F.data.rels.spouses||[];if(F._ignore_spouses&&(G=G.filter(z=>!F._ignore_spouses.includes(z))),G.length>0){if(s&&F.depth>0)continue;const z=F.data.data.gender==="M"?-1:1;F.x+=G.length/2*Y*z,G.forEach((B,se)=>{const de={data:_.find(me=>me.id===B),added:!0,depth:F.depth,spouse:F,x:F.x-Y*(se+1)*z,y:F.y,tid:`${F.data.id}-spouse-${se}`};de.sx=se>0?de.x:de.x+Y/2*z,de.sy=se>0?de.y:de.y+Y/2*z,F.spouses||(F.spouses=[]),F.spouses.push(de),K.push(de)})}}if(F.parents&&F.parents.length===2){const G=F.parents[0],z=F.parents[1],B=G.x-(G.x-z.x)/2,se=(de,me)=>B+Y/2*(de.x<me.x?1:-1);z.x=se(G,z),G.x=se(z,G)}}}function D(K){K.forEach(Y=>{if(Y.is_ancestry||Y.depth===0||Y.added||Y.sibling)return;const q=Y.parent,F=((q==null?void 0:q.spouses)||[]).find(z=>Y.data.rels.parents.includes(z.data.id));if(q&&F){!q.added&&!F.added&&console.error("no added spouse",q,F);const z=q.added?q:F;G(Y,z)}else if(q||F){const z=q||F;if(!z)throw new Error("no progeny parent");z.sx=z.x,z.sy=z.y,G(Y,z)}function G(z,B){z.psx=a?B.y:B.sx,z.psy=a?B.sx:B.y}})}function $(K){K.forEach(Y=>{if(delete Y.children,K.forEach(q=>{q.parent===Y&&(q.is_ancestry?(Y.parents||(Y.parents=[]),Y.parents.push(q)):(Y.children||(Y.children=[]),Y.children.push(q)))}),Y.parents&&Y.parents.length===2){const q=Y.parents[0],F=Y.parents[1];q.coparent=F,F.coparent=q}})}function X(K,Y,q){a&&([Y,q]=[q,Y]);const F=Yo(K,z=>z.x),G=Yo(K,z=>z.y);if(F[0]===void 0||F[1]===void 0||G[0]===void 0||G[1]===void 0)throw new Error("No extent");return{width:F[1]-F[0]+Y,height:G[1]-G[0]+q,x_off:-F[0]+Y/2,y_off:-G[0]+q/2}}function W(K){const Y=[];for(let G=0;G<K.length;G++){const z=K[G];if(z.rels.children&&z.rels.children.length>0){z.rels.spouses||(z.rels.spouses=[]);let B;z.rels.children.forEach(se=>{const de=K.find(me=>me.id===se);if(de.rels.parents.length!==2){if(B||(B=q(z)),B.rels.children||(B.rels.children=[]),B.rels.children.push(de.id),de.rels.parents.length!==1)throw new Error("child has more than 1 parent");de.rels.parents.push(B.id)}})}}return Y.forEach(G=>K.push(G)),K;function q(G){return(G.rels.spouses||[]).map(B=>K.find(se=>se.id===B)).filter(B=>B!==void 0).find(B=>B.to_add)||F(G)}function F(G){const z=Ha({data:{gender:G.data.gender==="M"?"F":"M"},rels:{spouses:[G.id]}});return z.to_add=!0,Y.push(z),G.rels.spouses||(G.rels.spouses=[]),G.rels.spouses.push(z.id),z}}function H(K,Y){let q=Y?u:c;if(s&&(q=1),!q&&q!==0)return K;return F(K,0),K;function F(G,z){z===q?G.children&&delete G.children:G.children&&G.children.forEach(B=>{F(B,z+1)})}}function V(K,Y,q){q?Jte(K,g):Xte(K,Y,g)}}function tne(e){const t=[];e.forEach(r=>{if(t.includes(r.data.id)){const n=e.filter(i=>i.data.id===r.data.id);n.forEach((i,a)=>{i.tid=`${r.data.id}--x${a+1}`,i.duplicate=n.length,t.push(r.data.id)})}else r.tid=r.data.id,t.push(r.data.id)})}function jF(e){let t;const r=Object.assign({transition_time:1e3},e);return r.main_id_history=[],r.data&&(p(r.data),d2(r.data)),{state:r,updateTree:m=>{!r.data||r.data.length===0||(r.tree=i(),!r.main_id&&r.tree&&u(r.tree.main_id),t&&t(m))},updateData:m=>{p(m),d2(m),r.data=m,c()},updateMainId:u,getMainId:()=>r.main_id,getData:()=>r.data,getTree:()=>r.tree,setOnUpdate:m=>t=m,getMainDatum:a,getDatum:s,getTreeMainDatum:o,getTreeDatum:l,getLastAvailableMainDatum:d,methods:{}};function i(){const m={main_id:r.main_id};return r.node_separation!==void 0&&(m.node_separation=r.node_separation),r.level_separation!==void 0&&(m.level_separation=r.level_separation),r.single_parent_empty_card!==void 0&&(m.single_parent_empty_card=r.single_parent_empty_card),r.is_horizontal!==void 0&&(m.is_horizontal=r.is_horizontal),r.one_level_rels!==void 0&&(m.one_level_rels=r.one_level_rels),r.modifyTreeHierarchy!==void 0&&(m.modifyTreeHierarchy=r.modifyTreeHierarchy),r.sortChildrenFunction!==void 0&&(m.sortChildrenFunction=r.sortChildrenFunction),r.sortSpousesFunction!==void 0&&(m.sortSpousesFunction=r.sortSpousesFunction),r.ancestry_depth!==void 0&&(m.ancestry_depth=r.ancestry_depth),r.progeny_depth!==void 0&&(m.progeny_depth=r.progeny_depth),r.show_siblings_of_main!==void 0&&(m.show_siblings_of_main=r.show_siblings_of_main),r.private_cards_config!==void 0&&(m.private_cards_config=r.private_cards_config),r.duplicate_branch_toggle!==void 0&&(m.duplicate_branch_toggle=r.duplicate_branch_toggle),ene(r.data,m)}function a(){const m=r.data.find(w=>w.id===r.main_id);if(!m)throw new Error("Main datum not found");return m}function s(m){const w=r.data.find(g=>g.id===m);if(w)return w}function o(){if(!r.tree)throw new Error("No tree");const m=r.tree.data.find(w=>w.data.id===r.main_id);if(!m)throw new Error("No tree main datum");return m}function l(m){if(!r.tree)throw new Error("No tree");const w=r.tree.data.find(g=>g.data.id===m);if(w)return w}function u(m){m!==r.main_id&&(r.main_id_history=r.main_id_history.filter(w=>w!==m).slice(-10),r.main_id_history.push(m),r.main_id=m)}function c(){r.main_id?!r.data.find(w=>w.id===r.main_id)&&r.data.length>0&&u(r.data[0].id):r.data.length>0&&u(r.data[0].id)}function d(){let m=r.main_id_history.slice(0).reverse().find(g=>s(g));if(!m&&r.data.length>0&&(m=r.data[0].id),!m)throw new Error("No main id");m!==r.main_id&&u(m);const w=s(m);if(!w)throw new Error("Main datum not found");return w}function p(m){if(r.legacy_format===void 0){for(let w of m)if(w.rels.father||w.rels.mother){r.legacy_format=!0;return}r.legacy_format=!1}}}function BF({t:e,svg:t,transition_time:r=2e3}){const n=$m(t),i=n.__zoomObj;ve(n).transition().duration(r||0).delay(r?100:0).call(i.transform,km.scale(e.k).translate(e.x,e.y))}function h2({svg:e,svg_dim:t,tree_dim:r,transition_time:n}){const i=nne(t,r);BF({t:i,svg:e,transition_time:n})}function nne(e,t){let r=Math.min(e.width/t.width,e.height/t.height);r>1&&(r=1);const n=t.x_off+(e.width-t.width*r)/r/2,i=t.y_off+(e.height-t.height*r)/r/2;return{k:r,x:n,y:i}}function rne({datum:e,svg:t,svg_dim:r,scale:n,transition_time:i}){const a=n||1,s=r.width/2-e.x*a,o=r.height/2-e.y,l={k:a,x:s/a,y:o/a};BF({t:l,svg:t,transition_time:i})}function ine({amount:e,svg:t,transition_time:r=500}){const n=$m(t),i=n.__zoomObj;if(!i)throw new Error("Zoom object not found");ve(n).transition().duration(r||0).delay(r?100:0).call(i.scaleBy,e)}function ane(e){const t=$m(e);return mu(t)}function one(e,t){const r=$m(e),n=mu(r);ine({amount:t/n.k,svg:e})}function $m(e){const t=e.__zoomObj?e:e.parentNode;if(!t.__zoomObj)throw new Error("Zoom object not found");return t}function sne(e,t={}){if(e.__zoom){console.log("zoom already setup");return}const r=e.querySelector(".view"),n=Vb().on("zoom",t.onZoom||i);ve(e).call(n),e.__zoomObj=n,t.zoom_polite&&n.filter(a);function i(s){ve(r).attr("transform",s.transform)}function a(s){return s.type==="wheel"&&!s.ctrlKey?!1:!(s.touches&&s.touches.length<2)}}function lne(e,t=!1){const r=[];return(e.spouses||e.coparent)&&a(e),n(e),i(e),r;function n(m){if(!m.parents)return;const w=m.parents[0],g=m.parents[1]||w,_={x:s(w,g,"x"),y:s(w,g,"y")};r.push({d:l(m,_),_d:()=>{const E={x:m.x,y:m.y},x={x:m.x,y:m.y};return l(E,x)},curve:!0,id:d(m,w,g),depth:m.depth+1,is_ancestry:!0,source:m,target:[w,g]})}function i(m){!m.children||m.children.length===0||m.children.forEach((w,g)=>{const _=p(w,m)||m,E=_.sx;if(typeof E!="number")throw new Error("sx is not a number");const x=t?{x:m.x,y:E}:{x:E,y:m.y};r.push({d:l(w,x),_d:()=>l(x,{x:o(x,"x"),y:o(x,"y")}),curve:!0,id:d(w,m,_),depth:m.depth+1,is_ancestry:!1,source:[m,_],target:w})})}function a(m){m.spouses?m.spouses.forEach(g=>r.push(w(m,g))):m.coparent&&r.push(w(m,m.coparent));function w(g,_){return{d:[[g.x,g.y],[_.x,_.y]],_d:()=>[g.is_ancestry?[o(g,"x")-1e-4,o(g,"y")]:[g.x,g.y],g.is_ancestry?[o(_,"x"),o(_,"y")]:[g.x-1e-4,g.y]],curve:!1,id:d(g,_),depth:g.depth,spouse:!0,is_ancestry:_.is_ancestry,source:g,target:_}}}function s(m,w,g,_=!1){return _?o(m,g)-(o(m,g)-o(w,g))/2:m[g]-(m[g]-w[g])/2}function o(m,w){const g=m.hasOwnProperty(`_${w}`)?m[`_${w}`]:m[w];if(typeof g!="number")throw new Error(`${w} is not a number`);return g}function l(m,w){return t?c(m,w):u(m,w)}function u(m,w){const g=m.y+(w.y-m.y)/2;return[[m.x,m.y],[m.x,g],[m.x,g],[w.x,g],[w.x,g],[w.x,w.y]]}function c(m,w){const g=m.x+(w.x-m.x)/2;return[[m.x,m.y],[g,m.y],[g,m.y],[g,w.y],[g,w.y],[w.x,w.y]]}function d(...m){return m.map(w=>w.tid).sort().join(", ")}function p(m,w){return(w.spouses||[]).find(_=>m.data.rels.parents.includes(_.data.id))}}function une(e,t,r={}){const n=t.data.reduce((p,m)=>(lne(m,t.is_horizontal).forEach(w=>p[w.id]=w),p),{}),i=Object.values(n),a=ve(e).select(".links_view").selectAll("path.link").data(i,p=>p.id);if(r.transition_time===void 0)throw new Error("transition_time is undefined");const s=a.exit(),o=a.enter().append("path").attr("class","link"),l=o.merge(a);s.each(d),o.each(u),l.each(c);function u(p){ve(this).attr("fill","none").attr("stroke","#fff").attr("stroke-width",1).style("opacity",0).attr("d",Wy(p,!0))}function c(p){const m=ve(this),w=r.initial?ad(t,p,r.transition_time):0;m.transition("path").duration(r.transition_time).delay(w).attr("d",Wy(p)).style("opacity",1)}function d(p){const m=ve(this);m.transition("op").duration(800).style("opacity",0),m.transition("path").duration(r.transition_time).attr("d",Wy(p,!0)).on("end",()=>m.remove())}}function Wy(e,t=!1){const r=o2().curve($te),n=o2().curve(Ute),i=t?e._d():e.d;return e.curve?n(i):r(i)}function cne(e,t,r,n={}){const i=ve(e).select(".cards_view").selectAll("g.card_cont").data(t.data,p=>p.data.id),a=i.exit(),s=i.enter().append("g").attr("class","card_cont"),o=s.merge(i);a.each(p=>iu(p,!1,!0)),s.each(p=>iu(p,!0,!1)),a.each(d),i.each(u),s.each(l),o.each(c);function l(p){ve(this).attr("transform",`translate(${p._x}, ${p._y})`).style("opacity",0),r.call(this,p)}function u(p){}function c(p){r.call(this,p);const m=n.initial?ad(t,p,n.transition_time):0;ve(this).transition().duration(n.transition_time).delay(m).attr("transform",`translate(${p.x}, ${p.y})`).style("opacity",1)}function d(p){const m=p,w=m?[m._x,m._y]:[0,0],g=ve(this);g.transition().duration(n.transition_time).style("opacity",0).attr("transform",`translate(${w[0]}, ${w[1]})`).on("end",()=>g.remove())}}function fne(e,t,r,n={}){const i=m(e),a=ve(i).select(".cards_view").selectAll("div.card_cont").data(t.data,w=>w.tid),s=a.exit(),o=a.enter().append("div").attr("class","card_cont").style("pointer-events","none"),l=o.merge(a);s.each(w=>iu(w,!1,!0)),o.each(w=>iu(w,!0,!1)),s.each(p),a.each(c),o.each(u),l.each(d);function u(w){ve(this).style("position","absolute").style("top","0").style("left","0").style("transform",`translate(${w._x}px, ${w._y}px)`).style("opacity",0),r.call(this,w)}function c(w){}function d(w){r.call(this,w);const g=n.initial?ad(t,w,n.transition_time):0;ve(this).transition().duration(n.transition_time).delay(g).style("transform",`translate(${w.x}px, ${w.y}px)`).style("opacity",1)}function p(w){const g=w,_=g?[g._x,g._y]:[0,0],E=ve(this);E.transition().duration(n.transition_time).style("opacity",0).style("transform",`translate(${_[0]}px, ${_[1]}px)`).on("end",()=>E.remove())}function m(w){if(n.cardHtmlDiv)return n.cardHtmlDiv;const g=w.closest("#f3Canvas");if(!g)throw new Error("canvas not found");const _=g.querySelector("#htmlSvg");if(!_)throw new Error("htmlSvg not found");return _}}function zF(e,t={}){const r=e.getBoundingClientRect(),n=`
<svg class="main_svg">
<rect width="${r.width}" height="${r.height}" fill="transparent" />
<g class="view">
<g class="links_view"></g>
<g class="cards_view"></g>
</g>
<g style="transform: translate(100%, 100%)">
<g class="fit_screen_icon cursor-pointer" style="transform: translate(-50px, -50px); display: none">
<rect width="27" height="27" stroke-dasharray="${27/2}" stroke-dashoffset="${27/4}"
style="stroke:#fff;stroke-width:4px;fill:transparent;"/>
<circle r="5" cx="${27/2}" cy="${27/2}" style="fill:#fff" />
</g>
</g>
</svg>
`,i=o(e),a=oa("div").node();a.innerHTML=n;const s=a.querySelector("svg");return i.appendChild(s),e.appendChild(i),sne(i,t),s;function o(l){let u=l.querySelector("#f3Canvas");return u||(u=oa("div").attr("id","f3Canvas").attr("style","position: relative; overflow: hidden; width: 100%; height: 100%;").node()),u}}function UF(e){return zF(e,{onZoom:HF(()=>e.querySelector("svg .view"),()=>e.querySelector("#htmlSvg .cards_view"))}),$F(e),{svg:e.querySelector("svg.main_svg"),svgView:e.querySelector("svg .view"),htmlSvg:e.querySelector("#htmlSvg"),htmlView:e.querySelector("#htmlSvg .cards_view")}}function $F(e){const r=ve(e).select("#f3Canvas").append("div").attr("id","htmlSvg").attr("style","position: absolute; width: 100%; height: 100%; z-index: 2; top: 0; left: 0");return r.append("div").attr("class","cards_view").style("transform-origin","0 0"),r.node()}function HF(e,t){return function(n){const i=n.transform;ve(e()).style("transform",`translate(${i.x}px, ${i.y}px) scale(${i.k}) `),ve(t()).style("transform",`translate(${i.x}px, ${i.y}px) scale(${i.k}) `)}}var dne=Object.freeze({__proto__:null,createHtmlSvg:$F,default:UF,onZoomSetup:HF});function hne(e){let t=[];return function(a){const s=n(a,t);return t=[...a,...s],r(qF(e),t),t};function r(i,a){const s=ve(i).selectAll("div.card_cont_2fake").data(a,m=>m.data.id),o=s.exit(),l=s.enter().append("div").attr("class","card_cont_2fake").style("display","none").attr("data-id",()=>Math.random()),u=l.merge(s);o.each(p),l.each(c),u.each(d);function c(m){m.unique_id=ve(this).attr("data-id")}function d(m){m.unique_id=ve(this).attr("data-id")}function p(m){m&&(m.unique_id=ve(this).attr("data-id"),ve(this).remove())}}function n(i,a){return a.length>0?a.filter(s=>!i.find(o=>o.data.id===s.data.id)):[]}}function qF(e){return ve(e()).select("div.cards_view_fake").node()}function pne(e){ve(e()).append("div").attr("class","cards_view_fake").style("display","none")}const mne=hne;function gne(e){return e.unique_id}function vne(e,t,r,n={}){const i=n.cardHtmlDiv?n.cardHtmlDiv:e.closest("#f3Canvas").querySelector("#htmlSvg"),a=ve(qF(()=>i)).selectAll("div.card_cont_fake").data(t.data,m=>m.data.id),s=a.exit(),o=a.enter().append("div").attr("class","card_cont_fake").style("display","none"),l=o.merge(a);s.each(m=>iu(m,!1,!0)),o.each(m=>iu(m,!0,!1)),s.each(p),a.each(c),o.each(u),l.each(d);function u(m){ve(r(m)).style("position","absolute").style("top","0").style("left","0").style("opacity",0).style("transform",`translate(${m._x}px, ${m._y}px)`)}function c(m){}function d(m){const w=ve(r(m)),g=n.initial?ad(t,m,n.transition_time):0;w.transition().duration(n.transition_time).delay(g).style("transform",`translate(${m.x}px, ${m.y}px)`).style("opacity",1)}function p(m){const w=m,g=w?[w._x,w._y]:[0,0],_=ve(r(m)),E=ve(this);_.transition().duration(n.transition_time).style("opacity",0).style("transform",`translate(${g[0]}px, ${g[1]}px)`).on("end",()=>E.remove())}}function GF(e,t,r,n={}){n.initial=n.hasOwnProperty("initial")?n.initial:!ve(t.parentNode).select(".card_cont").node(),n.transition_time=n.hasOwnProperty("transition_time")?n.transition_time:1e3,n.cardComponent?vne(t,e,r,n):n.cardHtml?fne(t,e,r,n):cne(t,e,r,n),une(t,e,n);const i=n.tree_position||"fit";return n.initial?h2({svg:t,svg_dim:t.getBoundingClientRect(),tree_dim:e.dim,transition_time:0}):i==="fit"?h2({svg:t,svg_dim:t.getBoundingClientRect(),tree_dim:e.dim,transition_time:n.transition_time}):i==="main_to_middle"&&rne({datum:e.data[0],svg:t,svg_dim:t.getBoundingClientRect(),scale:n.scale,transition_time:n.transition_time}),!0}function WF(e,{d:t}){return e.updateMainId(t.data.id),e.updateTree({}),!0}function yne(e,t){const r=e.rels,n=[...r.parents,...r.spouses||[],...r.children||[]].filter(i=>!!i);for(const i of n){const a=t.find(s=>s.id===i);if(!VF(a,t,[e.id]))return!1}return!0}function VF(e,t,r=[]){const n=t[0];if(e.id===n.id)return!0;const i=[...r];let a=!1;return s(e),a;function s(o){if(a)return;const l=o.rels;[...l.parents,...l.spouses||[],...l.children||[]].filter(c=>!!c).forEach(c=>{if(i.includes(c))return;i.push(c);const d=t.find(p=>p.id===c);d.id===n.id?a=!0:s(d)})}}function wne(e,t,r){r.forEach((n,i)=>e.data[i]=n),_ne(e,t),e.to_add&&delete e.to_add,e.unknown&&delete e.unknown}function _ne(e,t){Object.keys(e.data).forEach(r=>{if(r.includes("__ref__")){const n=r.split("__ref__")[1],i=t.find(s=>s.id===n);if(!i)return;const a=r.split("__ref__")[0]+"__ref__"+e.id;i.data[a]=e.data[r]}})}function p2(e,t){Object.keys(e.data).forEach(r=>{if(r.includes("__ref__")){const n=r.split("__ref__")[1],i=t.find(s=>s.id===n);if(!i)return;const a=r.split("__ref__")[0]+"__ref__"+e.id;delete i.data[a]}})}function bne(e,t){return QF(e,t,!1),!1}function QF(e,t,r=!0){if(yne(e,t))return n(),r&&lx(t),{success:!0};return i(),{success:!0};function n(){t.forEach(a=>{for(let s in a.rels){if(!a.rels.hasOwnProperty(s))continue;const o=s;Array.isArray(a.rels[o])&&a.rels[o].includes(e.id)&&a.rels[o].splice(a.rels[o].findIndex(l=>l===e.id),1)}}),p2(e,t),t.splice(t.findIndex(a=>a.id===e.id),1),t.length===0&&t.push(Ha({data:{gender:"M"}}))}function i(){p2(e,t),e.data={gender:e.data.gender},e.unknown=!0}}function xne(e){return lx(e),e.forEach(t=>{delete t.main,delete t._tgdp,delete t._tgdp_sp,delete t.__tgdp_sp}),e.forEach(t=>{Object.keys(t).forEach(r=>{r[0]==="_"&&console.error("key starts with _",r)})}),e}function lx(e){for(let t=e.length-1;t>=0;t--)e[t].to_add&&bne(e[t],e)}function Ene(){return`
<g data-icon="user-plus">
${Or()}
<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" />
</g>
`}function Sne(){return`
<g data-icon="user-plus-close">
${Or()}
<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" />
<line x1="3" y1="3" x2="24" y2="24" stroke="currentColor" stroke-width="2" />
</g>
`}function KF(){return`
<g data-icon="plus">
${Or()}
<path d="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z" />
</g>
`}function Cne(){return`
<g data-icon="pencil">
${Or()}
<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" />
</g>
`}function kne(){return`
<g data-icon="pencil-off">
${Or()}
<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" />
</g>
`}function Ane(){return`
<g data-icon="history-back">
${Or()}
<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" />
</g>
`}function Tne(){return`
<g data-icon="history-forward">
${Or()}
<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" />
</g>
`}function Ine(){return`
<g data-icon="person">
<path d="M256 288c79.5 0 144-64.5 144-144S335.5 0 256 0 112
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
0 448v16c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-16c0-70.7-57.3-128-128-128z" />
</g>
`}function Pne(){return`
<g transform="translate(31,25)" data-icon="mini-tree">
<rect x="-31" y="-25" width="72" height="15" fill="rgba(0,0,0,0)"></rect>
<g>
<rect x="-31" y="-25" width="72" height="15" fill="rgba(0,0,0,0)"></rect>
<line y2="-17.5" stroke="#fff" />
<line x1="-20" x2="20" y1="-17.5" y2="-17.5" stroke="#fff" />
<rect x="-31" y="-25" width="25" height="15" rx="5" ry="5" class="card-male" />
<rect x="6" y="-25" width="25" height="15" rx="5" ry="5" class="card-female" />
</g>
</g>
`}function Rne(){return`
<g data-icon="toggle-on">
${Or()}
<circle class="f3-small-circle" r="4" cx="18" cy="12" />
<path d="M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M17,15A3,3 0 0,1 14,12A3,3 0 0,1 17,9A3,3 0 0,1 20,12A3,3 0 0,1 17,15Z" />
</g>
`}function One(){return`
<g data-icon="toggle-off">
${Or()}
<circle class="f3-small-circle" r="4" cx="6" cy="12" />
<path d="M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M7,15A3,3 0 0,1 4,12A3,3 0 0,1 7,9A3,3 0 0,1 10,12A3,3 0 0,1 7,15Z" />
</g>
`}function Nne(){return`
<g data-icon="chevron-down">
${Or()}
<path d="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z" />
</g>
`}function Mne(){return`
<g data-icon="link-off">
${Or()}
<path d="M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.43 19.12,14.63 17.79,15L19.25,16.44C20.88,15.61 22,13.95
22,12A5,5 0 0,0 17,7M16,11H13.81L15.81,13H16V11M2,4.27L5.11,7.38C3.29,8.12 2,9.91 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1
3.9,13.71 3.9,12C3.9,10.41 5.11,9.1 6.66,8.93L8.73,11H8V13H10.73L13,15.27V17H14.73L18.74,21L20,19.74L3.27,3L2,4.27Z" />
</g>
`}function Dne(){return`
<g data-icon="info">
${Or()}
<path d="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z" />
</g>
`}function Fne(){return Zn(Ene())}function Lne(){return Zn(Sne())}function jne(){return Zn(KF())}function Bne(){return Zn(Cne())}function zne(){return Zn(kne())}function Une(){return Zn(Ane())}function $ne(){return Zn(Tne())}function YF(){return Zn(Ine(),"0 0 512 512")}function XF(){return Zn(Pne(),"0 0 72 25")}function Hne(){return Zn(Rne())}function qne(){return Zn(One())}function Gne(){return Zn(Nne())}function Wne(){return Zn(Mne())}function Vne(){return Zn(Dne())}function Zn(e,t="0 0 24 24"){const r=e.match(/data-icon="([^"]+)"/),n=r?`data-icon="${r[1]}"`:"";return`
<svg xmlns="http://www.w3.org/2000/svg" viewBox="${t}" style="fill: currentColor" ${n}>
${e}
</svg>
`}function Or(){return`
<circle r="12" cx="12" cy="12" style="fill: rgba(0,0,0,0)" />
`}function Qne(e){return`
<form id="familyForm" class="f3-form">
${tL()}
<h3 class="f3-form-title">${e.title}</h3>
${JF(e)}
${ZF(e)}
<div class="f3-form-buttons">
<button type="button" class="f3-cancel-btn">Cancel</button>
<button type="submit">Submit</button>
</div>
${e.linkExistingRelative?eL(e):""}
</form>
`}function Kne(e){return`
<form id="familyForm" class="f3-form ${e.editable?"":"non-editable"}">
${tL()}
<div style="text-align: right; display: 'block'">
${e.no_edit?"":Jne(e)}
${e.no_edit?ere():Zne(e)}
</div>
${JF(e)}
${ZF(e)}
<div class="f3-form-buttons">
<button type="button" class="f3-cancel-btn">Cancel</button>
<button type="submit">Submit</button>
</div>
${e.linkExistingRelative?eL(e):""}
<hr>
${Yne(e)}
${Xne(e)}
</form>
`}function Yne(e){return`
<div>
<button type="button" class="f3-delete-btn" ${e.can_delete?"":"disabled"}>
Delete
</button>
</div>
`}function Xne(e){return`
<div>
<button type="button" class="f3-remove-relative-btn${e.removeRelativeActive?" active":""}">
${e.removeRelativeActive?"Cancel Remove Relation":"Remove Relation"}
</button>
</div>
`}function Jne(e){return`
<span class="f3-add-relative-btn">
${e.addRelativeActive?Lne():Fne()}
</span>
`}function Zne(e){return`
<span class="f3-edit-btn">
${e.editable?zne():Bne()}
</span>
`}function JF(e){return e.editable?`
<div class="f3-radio-group">
${e.gender_field.options.map(t=>`
<label>
<input type="radio" name="${e.gender_field.id}"
value="${t.value}"
${t.value===e.gender_field.initial_value?"checked":""}
${e.gender_field.disabled?"disabled":""}
>
${t.label}
</label>
`).join("")}
</div>
`:""}function ZF(e){if(!e.editable)return r();let t="";return e.fields.forEach(n=>{if(n.type==="text")t+=`
<div class="f3-form-field">
<label>${n.label}</label>
<input type="${n.type}"
name="${n.id}"
value="${n.initial_value||""}"
placeholder="${n.label}">
</div>`;else if(n.type==="textarea")t+=`
<div class="f3-form-field">
<label>${n.label}</label>
<textarea name="${n.id}"
placeholder="${n.label}">${n.initial_value||""}</textarea>
</div>`;else if(n.type==="select"){const i=n;t+=`
<div class="f3-form-field">
<label>${i.label}</label>
<select name="${i.id}" value="${i.initial_value||""}">
<option value="">${i.placeholder||`Select ${i.label}`}</option>
${i.options.map(a=>`<option ${a.value===i.initial_value?"selected":""} value="${a.value}">${a.label}</option>`).join("")}
</select>
</div>`}else n.type==="rel_reference"&&(t+=`
<div class="f3-form-field">
<label>${n.label} - <i>${n.rel_label}</i></label>
<input type="text"
name="${n.id}"
value="${n.initial_value||""}"
placeholder="${n.label}">
</div>`)}),t;function r(){let n="";return e.fields.forEach(i=>{var a;if(i.type==="rel_reference"){if(!i.initial_value)return;n+=`
<div class="f3-info-field">
<span class="f3-info-field-label">${i.label} - <i>${i.rel_label}</i></span>
<span class="f3-info-field-value">${i.initial_value||""}</span>
</div>`}else if(i.type==="select"){const s=i;if(!i.initial_value)return;n+=`
<div class="f3-info-field">
<span class="f3-info-field-label">${s.label}</span>
<span class="f3-info-field-value">${((a=s.options.find(o=>o.value===s.initial_value))===null||a===void 0?void 0:a.label)||""}</span>
</div>`}else n+=`
<div class="f3-info-field">
<span class="f3-info-field-label">${i.label}</span>
<span class="f3-info-field-value">${i.initial_value||""}</span>
</div>`}),n}}function eL(e){const t=e.linkExistingRelative.hasOwnProperty("title")?e.linkExistingRelative.title:"Profile already exists?",r=e.linkExistingRelative.hasOwnProperty("select_placeholder")?e.linkExistingRelative.select_placeholder:"Select profile",n=e.linkExistingRelative.options;return`
<div>
<hr>
<div class="f3-link-existing-relative">
<label>${t}</label>
<select>
<option value="">${r}</option>
${n.map(i=>`<option value="${i.value}">${i.label}</option>`).join("")}
</select>
</div>
</div>
`}function tL(){return`
<span class="f3-close-btn">
×
</span>
`}function ere(){return'<div style="height: 24px;"></div>'}function tre(e,t){return nL(e,t)}function nre(e,t){return nL(e,t)}function nL(e,t){const r=a(e),n=document.createElement("div");return i(),n;function i(){const s=r?Qne(e):Kne(e);n.innerHTML=s,rre(n,e,t,i),r?ire(n,e):are(n,e,i),e.onFormCreation&&e.onFormCreation({cont:n,form_creator:e})}function a(s){return"new_rel"in s}}function rre(e,t,r,n){const i=e.querySelector("form");i.addEventListener("submit",t.onSubmit),i.querySelector(".f3-cancel-btn").addEventListener("click",o),i.querySelector(".f3-close-btn").addEventListener("click",r);function o(){t.editable=!1,t.onCancel&&t.onCancel(),n()}}function ire(e,t){const n=e.querySelector("form").querySelector(".f3-link-existing-relative select");n&&n.addEventListener("change",t.linkExistingRelative.onSelect)}function are(e,t,r){const n=e.querySelector("form"),i=n.querySelector(".f3-edit-btn");i&&i.addEventListener("click",u);const a=n.querySelector(".f3-delete-btn");a&&t.onDelete&&a.addEventListener("click",t.onDelete);const s=n.querySelector(".f3-add-relative-btn");s&&t.addRelative&&s.addEventListener("click",()=>{t.addRelativeActive?t.addRelativeCancel():t.addRelative(),t.addRelativeActive=!t.addRelativeActive,r()});const o=n.querySelector(".f3-remove-relative-btn");o&&t.removeRelative&&o.addEventListener("click",()=>{t.removeRelativeActive?t.removeRelativeCancel():t.removeRelative(),t.removeRelativeActive=!t.removeRelativeActive,r()});const l=n.querySelector(".f3-link-existing-relative select");l&&l.addEventListener("change",t.linkExistingRelative.onSelect);function u(){t.editable=!t.editable,r()}}function ore(e,t,r){let n=[],i=-1;return{changed:a,back:s,forward:o,canForward:l,canBack:u};function a(){i<n.length-1&&(n=n.slice(0,i+1));const d=t();d.main_id=e.getMainId(),n.push(d),i++}function s(){u()&&(i--,c(n[i]))}function o(){l()&&(i++,c(n[i]))}function l(){return i<n.length-1}function u(){return i>0}function c(d){const p=e.getMainId();d=JSON.parse(JSON.stringify(d)),d.find(m=>m.id===p)||e.updateMainId(d.main_id),e.updateData(d),r()}}function sre(e,t){const r=ve(e).append("div").attr("class","f3-history-controls");e.insertBefore(r.node(),e.firstChild);const n=r.append("button").attr("class","f3-back-button").on("click",()=>{t.back(),a()}),i=r.append("button").attr("class","f3-forward-button").on("click",()=>{t.forward(),a()});return n.html(Une()),i.html($ne()),{back_btn:n.node(),forward_btn:i.node(),updateButtons:a,destroy:s};function a(){n.classed("disabled",!t.canBack()),i.classed("disabled",!t.canForward()),!t.canBack()&&!t.canForward()?r.style("opacity",0).style("pointer-events","none"):r.style("opacity",1).style("pointer-events","auto")}function s(){ve(e).select(".f3-history-controls").remove()}}function rL({d:e,card_dim:t,card_display:r}){return{template:`
<g class="card-body">
<rect width="${t.w}" height="${t.h}" class="card-body-rect" />
${ure({d:e,card_dim:t,card_display:r}).template}
</g>
`}}function lre({d:e,card_dim:t,label:r}){return{template:`
<g class="card-body">
<rect class="card-body-rect" width="${t.w}" height="${t.h}" />
<text transform="translate(${t.img_w+5}, ${t.h/2})">
<tspan font-size="18" dy="8" pointer-events="none">${r}</tspan>
</text>
</g>
`}}function ure({d:e,card_dim:t,card_display:r}){return{template:`
<g>
<g class="card-text" clip-path="url(#card_text_clip)">
<g transform="translate(${t.text_x}, ${t.text_y})">
<text>
${Array.isArray(r)?r.map(n=>`<tspan x="0" dy="14">${n(e.data)}</tspan>`).join(`
`):r(e.data)}
</text>
</g>
</g>
<rect width="${t.w-10}" height="${t.h}" style="mask: url(#fade)" class="text-overflow-mask" />
</g>
`}}function m2({d:e,card_dim:t,is_new:r}){return{template:`
<rect width="${t.w}" height="${t.h}" rx="4" ry="4" class="card-outline ${e.data.main&&!r?"card-main-outline":""} ${r?"card-new-outline":""}" />
`}}function cre({d:e,card_dim:t}){return{template:`
<g class="card_family_tree" style="cursor: pointer">
<rect x="-31" y="-25" width="72" height="15" fill="rgba(0,0,0,0)"></rect>
<g transform="translate(${t.w*.8},6)scale(.9)">
<rect x="-31" y="-25" width="72" height="15" fill="rgba(0,0,0,0)"></rect>
<line y2="-17.5" stroke="#fff" />
<line x1="-20" x2="20" y1="-17.5" y2="-17.5" stroke="#fff" />
<rect x="-31" y="-25" width="25" height="15" rx="5" ry="5" class="card-male" />
<rect x="6" y="-25" width="25" height="15" rx="5" ry="5" class="card-female" />
</g>
</g>
`}}function fre({d:e,image:t,card_dim:r,maleIcon:n,femaleIcon:i}){return{template:`
<g style="transform: translate(${r.img_x}px,${r.img_y}px);" class="card_image" clip-path="url(#card_image_clip)">
${t?`<image href="${t}" height="${r.img_h}" width="${r.img_w}" preserveAspectRatio="xMidYMin slice" />`:(e.data.data.gender,e.data.data.gender,a())}
</g>
`};function a(){return`
<g class="genderless-icon">
<rect height="${r.img_h}" width="${r.img_w}" fill="rgb(59, 85, 96)" />
<g transform="scale(${r.img_w*.001616})">
<path transform="translate(50,40)" fill="lightgrey" d="M256 288c79.5 0 144-64.5 144-144S335.5 0 256 0 112
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
0 448v16c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-16c0-70.7-57.3-128-128-128z" />
</g>
</g>
`}}function $h(e,t,r){const n=document.createElementNS("http://www.w3.org/2000/svg","g");n.innerHTML=e,r?t.insertBefore(n,t.firstChild):t.appendChild(n)}const g2={miniTree:dre,cardBody:hre,cardImage:pre};function dre(e,t){if(e.data.to_add)return;const r=t.card_dim;if(e.all_rels_displayed)return;const n=oa("svg:g").html(cre({d:e,card_dim:r}).template);return n.on("click",function(i){i.stopPropagation(),t.onMiniTreeClick?t.onMiniTreeClick.call(this,i,e):WF(t.store,{d:e})}),n.node()}function hre(e,t){const r=t.card_dim,n=oa("svg:g").html(rL({d:e,card_dim:r,card_display:t.card_display}).template);return n.on("click",function(i){i.stopPropagation(),t.onCardClick?t.onCardClick.call(this,i,e):WF(t.store,{d:e})}),n.node()}function pre(e,t){if(e.data.to_add)return;const r=t.card_dim;return oa("svg:g").html(fre({d:e,image:e.data.data.avatar||null,card_dim:r,maleIcon:void 0,femaleIcon:void 0}).template).node()}function A1(e,t,r=!1){e&&(r?t.insertBefore(e,t.firstChild):t.appendChild(e))}function mre(e,t,r,n){if(!t.hasOwnProperty("_toggle"))return;const i=e.querySelector(".card"),a=i.querySelector(".card-inner"),s=e.querySelector(".card").offsetWidth;e.querySelector(".card").offsetHeight;let o,l;const u={};if(t.spouse){const d=t.spouse,p=d.data.main?"main":d.parent.data.id;if(o=d.data._tgdp_sp[p][t.data.id]<0,u.top=60,u.left=t.sx-t.x-30+s/2,r&&(u.top=t.sy-t.x+4,u.left=s/2+4,Math.abs(t.sx-t.y)<10&&(u.left=s-4)),l=d._toggle_id_sp?d._toggle_id_sp[t.data.id]:-1,l===-1)return}else{const d=t.data.main?"main":t.parent.data.id;o=t.data._tgdp[d]<0,u.top=-65,u.left=-30+s/2,r&&(u.top=5,u.left=-55),l=t._toggle_id}if(a.style.zIndex=1,ve(i).append("div").attr("class","f3-toggle-div").attr("style","cursor: pointer; width: 60px; height: 60px;position: absolute; z-index: -1;").style("top",u.top+"px").style("left",u.left+"px").on("click",d=>{if(d.stopPropagation(),t.spouse){const p=t.spouse,m=p.data.main?"main":p.parent.data.id;p.data._tgdp_sp[m].hasOwnProperty(t.data.id)||console.error("no toggle",t,p);let w=p.data._tgdp_sp[m][t.data.id];w<0?w=new Date().getTime():w=-new Date().getTime(),p.data._tgdp_sp[m][t.data.id]=w}else{const p=t.data.main?"main":t.parent.data.id;let m=t.data._tgdp[p];m<0?m=new Date().getTime():m=-new Date().getTime(),t.data._tgdp[p]=m}n()}).append("div").html(o?qne():Hne()).select("svg").classed("f3-toggle-icon",!0).style("color",o?"#585656":"#61bf52").style("padding","0"),ve(i).select(".f3-toggle-icon .f3-small-circle").style("fill","#fff"),ve(i).select(".f3-toggle-icon").append("text").attr("transform",o?"translate(10.6, 14.5)":"translate(4.1, 14.5)").attr("fill","#fff").attr("font-size","7px").text("C"+l),o){let d;t.is_ancestry?r?d="translate(5, -30)rotate(-90)":d="translate(0, -10)":r?d="translate(11, -22)rotate(90)":d="translate(-7, -32)rotate(180)",ve(i).select(".f3-toggle-div").insert("div").html(XF()).select("svg").attr("style","position: absolute; z-index: -1;top: 0;left: 0;border-radius: 0;").style("width","66px").style("height","112px").attr("transform",d).attr("viewBox","0 0 72 125").select("line").attr("y1",t.is_ancestry?"62":"92")}}function iL(e){const t=e.style==="default"?u:e.style==="imageCircleRect"?l:e.style==="imageCircle"?c:e.style==="imageRect"?d:e.style==="rect"?p:u;return function(b){if(this.innerHTML=`
<div class="card ${m(b).join(" ")}" data-id="${b.tid}" style="transform: translate(-50%, -50%); pointer-events: auto;">
${e.mini_tree?o(b):""}
${e.cardInnerHtmlCreator&&!b.data._new_rel_data?e.cardInnerHtmlCreator(b):t(b)}
</div>
`,this.querySelector(".card").addEventListener("click",C=>e.onCardClick(C,b)),e.onCardUpdate&&e.onCardUpdate.call(this,b),e.onCardMouseenter&&ve(this).select(".card").on("mouseenter",C=>e.onCardMouseenter(C,b)),e.onCardMouseleave&&ve(this).select(".card").on("mouseleave",C=>e.onCardMouseleave(C,b)),b.duplicate&&x(this,b),e.duplicate_branch_toggle&&mre(this,b,e.store.state.is_horizontal,e.store.updateTree),location.origin.includes("localhost")&&(b.__node=this.querySelector(".card"),b.__label=b.data.data["first name"],b.data.to_add)){const C=b.spouse||b.coparent||null;C&&ve(this).select(".card").attr("data-to-add",C.data.data["first name"])}};function r(b){return`
<div class="card-inner card-image-circle" ${w()}>
${b.data.data[e.cardImageField]?`<img src="${b.data.data[e.cardImageField]}" ${g()}>`:_(b)}
<div class="card-label">${a(b)}</div>
${b.duplicate?E(b):""}
</div>
`}function n(b){return`
<div class="card-inner card-image-rect" ${w()}>
${b.data.data[e.cardImageField]?`<img src="${b.data.data[e.cardImageField]}" ${g()}>`:_(b)}
<div class="card-label">${a(b)}</div>
${b.duplicate?E(b):""}
</div>
`}function i(b){return`
<div class="card-inner card-rect" ${w()}>
${a(b)}
${b.duplicate?E(b):""}
</div>
`}function a(b){return b.data._new_rel_data?s(b):b.data.to_add?`<div>${e.empty_card_label||"ADD"}</div>`:b.data.unknown?`<div>${e.unknown_card_label||"UNKNOWN"}</div>`:`
${e.card_display.map(C=>`<div>${C(b.data)}</div>`).join("")}
`}function s(b){const C=[];return C.push(`data-rel-type="${b.data._new_rel_data.rel_type}"`),["son","daughter"].includes(b.data._new_rel_data.rel_type)&&C.push(`data-other-parent-id="${b.data._new_rel_data.other_parent_id}"`),`<div ${C.join(" ")}>${b.data._new_rel_data.label}</div>`}function o(b){return!e.mini_tree||b.data.to_add||b.data._new_rel_data||b.all_rels_displayed?"":`<div class="mini-tree">${XF()}</div>`}function l(b){return b.data.data[e.cardImageField]?c(b):p(b)}function u(b){return n(b)}function c(b){return r(b)}function d(b){return n(b)}function p(b){return i(b)}function m(b){const C=[];return b.data.data.gender==="M"?C.push("card-male"):b.data.data.gender==="F"?C.push("card-female"):C.push("card-genderless"),C.push(`card-depth-${b.is_ancestry?-b.depth:b.depth}`),b.data.main&&C.push("card-main"),b.data._new_rel_data&&C.push("card-new-rel"),b.data.to_add&&C.push("card-to-add"),b.data.unknown&&C.push("card-unknown"),C}function w(){let b='style="';if(e.card_dim.w||e.card_dim.h)b+=`width: ${e.card_dim.w}px; min-height: ${e.card_dim.h}px;`,e.card_dim.height_auto?b+="height: auto;":b+=`height: ${e.card_dim.h}px;`;else return"";return b+='"',b}function g(){let b='style="position: relative;';if(e.card_dim.img_w||e.card_dim.img_h||e.card_dim.img_x||e.card_dim.img_y)b+=`width: ${e.card_dim.img_w}px; height: ${e.card_dim.img_h}px;`,b+=`left: ${e.card_dim.img_x}px; top: ${e.card_dim.img_y}px;`;else return"";return b+='"',b}function _(b){return b.data._new_rel_data?`<div class="person-icon" ${g()}>${jne()}</div>`:`<div class="person-icon" ${g()}>${e.defaultPersonIcon?e.defaultPersonIcon(b):YF()}</div>`}function E(b){return`<div class="f3-card-duplicate-tag">x${b.duplicate}</div>`}function x(b,C){ve(b).on("mouseenter",v=>{ve(b.closest(".cards_view")).selectAll(".card_cont").select(".card").classed("f3-card-duplicate-hover",k=>k.data.id===C.data.id)}),ve(b).on("mouseleave",v=>{ve(b.closest(".cards_view")).selectAll(".card_cont").select(".card").classed("f3-card-duplicate-hover",!1)})}}function aL(e,t){if(e.querySelector("defs#f3CardDef"))return;e.insertAdjacentHTML("afterbegin",`
<defs id="f3CardDef">
<linearGradient id="fadeGrad">
<stop offset="0.9" stop-color="white" stop-opacity="0"/>
<stop offset=".91" stop-color="white" stop-opacity=".5"/>
<stop offset="1" stop-color="white" stop-opacity="1"/>
</linearGradient>
<mask id="fade" maskContentUnits="objectBoundingBox"><rect width="1" height="1" fill="url(#fadeGrad)"/></mask>
<clipPath id="card_clip"><path d="${r({w:t.w,h:t.h},5)}"></clipPath>
<clipPath id="card_text_clip"><rect width="${t.w-10}" height="${t.h}"></rect></clipPath>
<clipPath id="card_image_clip"><path d="M0,0 Q 0,0 0,0 H${t.img_w} V${t.img_h} H0 Q 0,${t.img_h} 0,${t.img_h} z"></clipPath>
<clipPath id="card_image_clip_curved"><path d="${r({w:t.img_w,h:t.img_h},5,["rx","ry"])}"></clipPath>
</defs>
`);function r(n,i,a){const{w:s,h:o}=n,l=i,u=a||[],c=g=>u.includes(g),d=c("lx")?"M0,0":`M0,${l} Q 0,0 5,0`,p=c("rx")?`H${s}`:`H${s-l} Q ${s},0 ${s},5`,m=c("ry")?`V${o}`:`V${o-l} Q ${s},${o} ${s-l},${o}`,w=c("ly")?"H0":`H${l} Q 0,${o} 0,${o-l}`;return`${d} ${p} ${m} ${w} z`}}function gre(e,t){e.querySelector("defs#f3CardDef")&&e.querySelector("defs#f3CardDef").remove(),aL(e,t)}function ux(e){return e=t(e),aL(e.svg,e.card_dim),function(r){const n=r.data.data.gender==="M"?"card-male":r.data.data.gender==="F"?"card-female":"card-genderless",i=e.card_dim,a=oa("svg:g").attr("class",`card ${n}`).attr("transform",`translate(${[-i.w/2,-i.h/2]})`);a.append("g").attr("class","card-inner").attr("clip-path","url(#card_clip)"),this.innerHTML="",this.appendChild(a.node()),a.on("click",function(s){s.stopPropagation(),e.onCardClick.call(this,s,r)}),r.data._new_rel_data?($h(m2({d:r,card_dim:i,is_new:r.data.to_add}).template,a.node(),!0),$h(lre({d:r,card_dim:i,label:r.data._new_rel_data.label}).template,this.querySelector(".card-inner"),!0),ve(this.querySelector(".card-inner")).append("g").attr("class","card-edit-icon").attr("fill","currentColor").attr("transform",`translate(-1,2)scale(${i.img_h/22})`).html(KF())):($h(m2({d:r,card_dim:i,is_new:r.data.to_add}).template,a.node(),!0),$h(rL({d:r,card_dim:i,card_display:e.card_display}).template,this.querySelector(".card-inner"),!1),e.img&&A1(g2.cardImage(r,e),this.querySelector(".card")),e.mini_tree&&A1(g2.miniTree(r,e),this.querySelector(".card"),!0)),e.onCardUpdate&&e.onCardUpdate.call(this,r)};function t(r){const n={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}};r||(r={});for(const i in n)typeof r[i]>"u"&&(r[i]=n[i]);return r}}function vre(e){return e.onCardClick===void 0&&(e.onCardClick=(t,r)=>{e.store.updateMainId(r.data.id),e.store.updateTree({})}),ux(e)}function oL(e,t){return new yre(e,t)}class yre{constructor(t,r){this.cont=t,this.active=!1,this.onClose=r,this.popup_cont=ve(this.cont).append("div").attr("class","f3-popup").node(),this.create()}create(){const t=ve(this.popup_cont);t.html(`
<div class="f3-popup-content">
<span class="f3-popup-close">&times;</span>
<div class="f3-popup-content-inner"></div>
</div>
`),t.select(".f3-popup-close").on("click",()=>{this.close()}),t.on("click",r=>{r.target==t.node()&&this.close()})}activate(t){const r=ve(this.popup_cont).select(".f3-popup-content-inner").node();t&&r.appendChild(t),this.open()}open(){this.active=!0}close(){this.popup_cont.remove(),this.active=!1,this.onClose&&this.onClose()}}function sL(e,t,r){const n=t.find(c=>c.id===e),i={};return a(n.id,"self",0),s(i),r.show_in_law&&o(i,t),l(i),i;function a(c,d,p,m=void 0){if(!c||i[c])return;d&&(i[c]=d);const g=t.find(_=>_.id===c).rels;if(d==="self")g.parents.forEach(_=>a(_,"parent",p-1,c)),(g.spouses||[]).forEach(_=>a(_,"spouse",p)),(g.children||[]).forEach(_=>a(_,"child",p+1));else if(d==="parent")g.parents.forEach(_=>a(_,"grandparent",p-1,c)),(g.children||[]).forEach(_=>{m&&m===_||a(_,"sibling",p+1)});else if(d!=="spouse")if(d==="child")(g.children||[]).forEach(_=>a(_,"grandchild",p+1));else if(d==="sibling")(g.children||[]).forEach(_=>a(_,"nephew",p+1));else if(d==="grandparent")m||console.error(`${d} should have prev_rel_id`),g.parents.forEach(_=>a(_,"great-grandparent",p-1,c)),(g.children||[]).forEach(_=>{m&&m===_||a(_,"uncle",p+1)});else if(d.includes("grandchild"))(g.children||[]).forEach(_=>a(_,Hh(d,p+1),p+1));else if(d.includes("great-grandparent"))m||console.error(`${d} should have prev_rel_id`),g.parents.forEach(_=>a(_,Hh(d,p-1),p-1,c)),(g.children||[]).forEach(_=>{if(m&&m===_)return;const E=uL(p+1);E===0?a(_,"granduncle",p+1):E>0?a(_,Hh("granduncle",p+1),p+1):console.error(`${d} should have great_count > -1`)});else if(d==="nephew")(g.children||[]).forEach(_=>a(_,"grandnephew",p+1));else if(d.includes("grandnephew"))(g.children||[]).forEach(_=>a(_,Hh(d,p+1),p+1));else if(d==="uncle")(g.children||[]).forEach(_=>a(_,"1st Cousin",p+1));else if(d==="granduncle")(g.children||[]).forEach(_=>a(_,"1st Cousin 1x removed",p+1));else if(d.includes("great-granduncle")){const _=p+1,E=Math.abs(_);(g.children||[]).forEach(x=>a(x,`1st Cousin ${E}x removed`,_))}else d.slice(4).startsWith("Cousin")?(g.children||[]).forEach(_=>{const E=p+1,x=Math.abs(E),b=+d[0];E===0?a(_,`${Vy(b+1)} Cousin`,E):E<0?a(_,`${Vy(b+1)} Cousin ${x}x removed`,E):E>0&&a(_,`${Vy(b)} Cousin ${x}x removed`,E)}):console.error(`${d} not found`)}function s(c){const d=[];Object.keys(c).forEach(p=>{const m=c[p];if(m.includes("child")||m==="spouse")return;const w=lL(n.id,p,t);if(!w)return console.error(`${t.find(g=>g.id===p).data} not found in main_ancestry`);w.is_half_kin&&d.push(p)}),d.forEach(p=>{c[p]=`Half ${c[p]}`})}function o(c,d){Object.keys(c).forEach(p=>{const m=c[p],w=d.find(g=>g.id===p);if(m==="spouse"){const g=[];w.rels.parents.forEach(_=>(u(_).rels.children||[]).forEach(E=>g.push(E))),g.forEach(_=>{c[_]||(c[_]="sibling-in-law")})}m==="sibling"&&(w.rels.spouses||[]).forEach(g=>{c[g]||(c[g]="sibling-in-law")}),m==="child"&&(w.rels.spouses||[]).forEach(g=>{c[g]||(c[g]="child-in-law")}),m==="uncle"&&(w.rels.spouses||[]).forEach(g=>{c[g]||(c[g]="uncle-in-law")}),m.includes("Cousin")&&(w.rels.spouses||[]).forEach(g=>{c[g]||(c[g]=`${m} in-law`)})})}function l(c){Object.keys(c).forEach(d=>{const p=c[d],w=t.find(g=>g.id===d).data.gender;if(p.includes("parent")){const _=w==="M"?"father":w==="F"?"mother":"parent";c[d]=c[d].replace("parent",_)}else if(p.includes("sibling")){const _=w==="M"?"brother":w==="F"?"sister":"sibling";c[d]=c[d].replace("sibling",_)}else if(p.includes("child")){const _=w==="M"?"son":w==="F"?"daughter":"child";c[d]=c[d].replace("child",_)}else if(p.includes("uncle")){const _=w==="M"?"uncle":w==="F"?"aunt":"aunt/uncle";c[d]=c[d].replace("uncle",_)}else if(p.includes("nephew")){const _=w==="M"?"nephew":w==="F"?"niece":"neice/nephew";c[d]=c[d].replace("nephew",_)}})}function u(c){return t.find(d=>d.id===c)}}function lL(e,t,r){const n=l(e);let i,a,s;if(c(t),d(t),o(t),!i)return null;return{found:i,is_ancestor:a,is_half_kin:s};function o(m){if(i)return;if(m===e){a=!0,i=m,s=!1;return}const g=r.find(x=>x.id===m).rels,_=u(g),E=n.find(x=>x[0]&&_[0]&&x[0]===_[0]||x[1]&&_[1]&&x[1]===_[1]);if(E){i=_.filter((x,b)=>x===E[b]),s=p(_,E);return}g.parents.forEach(x=>o(x))}function l(m){const w=[];return g(m),w;function g(_){const x=r.find(b=>b.id===_).rels;w.push(u(x)),x.parents.forEach(b=>g(b))}}function u(m){return m.parents}function c(m){const w=r.find(_=>_.id===m);n.find(_=>_[0]===w.id||_[1]===w.id)&&(a=!0,i=m,s=!1)}function d(m){(r.find(g=>g.id===e).rels.spouses||[]).includes(m)&&(i=[e,m])}function p(m,w){return m.some((g,_)=>g!==w[_])||w.some((g,_)=>g!==m[_])}}function Vy(e){const t=["st","nd","rd"];return t[e-1]?e+t[e-1]:e+"th"}function uL(e){return Math.abs(e)-2}function Hh(e,t){const r=uL(t);return e.includes("great-")&&(e=e.split("great-")[1]),r===1?`great-${e}`:r>1?`${r}x-great-${e}`:(console.error(`${e} should have great_count > 1`),e)}function cL(e,t,r,n){var i;let a;const s=n[t].toLowerCase();if(s.includes("in-law")){a=t;const T=r.find(N=>N.id===a);s.includes("sister")||s.includes("brother")?t=e:t=(i=T.rels.spouses)===null||i===void 0?void 0:i.find(N=>n[N]&&!n[N].includes("in-law"))}const o=lL(e,t,r);if(!o)return console.error(`${t} not found in main_ancestry`);const l=o.is_ancestor?o.found:o.found[0],u=r.find(T=>T.id===l),c=fs(u,_),d=c.descendants().map(T=>T.data.id),p=E(e,d),m=E(t,d);g(c);const w=c.descendants().map(T=>{const N={id:T.data.id,data:JSON.parse(JSON.stringify(T.data.data)),kinship:n[T.data.id],rels:{parents:[],spouses:[],children:[]}};return T.children&&T.children.length>0&&(N.rels.children=T.children.map(M=>M.data.id)),N});return w.length>0&&!o.is_ancestor&&!o.is_half_kin&&x(w),a&&b(w),w;function g(T){T.children=(T.children||[]).filter(N=>!!(p.includes(N.data.id)||m.includes(N.data.id))),T.children.forEach(N=>g(N)),T.children.length===0&&delete T.children}function _(T){return[...T.rels.children||[]].map(M=>r.find(j=>j.id===M)).filter(M=>M)}function E(T,N){const M=[T];return j(T),M;function j(D){r.find(W=>W.id===D).rels.parents.forEach(W=>{N.includes(W)&&(M.push(W),j(W))})}}function x(T){const N=T[0];if(!o)return console.error(`${t} not found in main_ancestry`);const M=l===o.found[0]?o.found[1]:o.found[0];N.rels.spouses=[M];const j=r.find($=>$.id===M),D={id:j.id,data:JSON.parse(JSON.stringify(j.data)),kinship:n[j.id],rels:{spouses:[N.id],children:N.rels.children,parents:[]}};T.push(D),(N.rels.children||[]).forEach($=>{const X=r.find(H=>H.id===$),W=T.find(H=>H.id===$);W.rels.parents=[...X.rels.parents]})}function b(T){s.includes("sister")||s.includes("brother")?v(T):C(T)}function C(T){const N=T.find($=>$.id===t),M=a;N.rels.spouses=[M];const j=r.find($=>$.id===M),D={id:j.id,data:JSON.parse(JSON.stringify(j.data)),kinship:n[j.id],rels:{spouses:[N.id],children:[],parents:[]}};T.push(D)}function v(T){var N;const M=T.find(H=>H.id===t),j=k(a);T.push({id:a,data:JSON.parse(JSON.stringify(j.data)),kinship:n[a],rels:{spouses:[],children:[],parents:[]}});const D=[];j.rels.parents.forEach(H=>(k(H).rels.children||[]).forEach(V=>D.push(V)));const $=(N=k(t).rels.spouses)===null||N===void 0?void 0:N.find(H=>D.includes(H));M.rels.spouses=[$];const X=k($),W={id:X.id,data:JSON.parse(JSON.stringify(X.data)),kinship:n[X.id],rels:{spouses:[M.id],children:[],parents:[]}};T.push(W),j.rels.parents.forEach(H=>{const V=k(H),K=V.data.gender==="M"?"Father-in-law":V.data.gender==="F"?"Mother-in-law":"Parent-in-law",Y={id:V.id,data:JSON.parse(JSON.stringify(V.data)),kinship:K,rels:{spouses:[],children:[$,a],parents:[]}},q=j.rels.parents.find(F=>F!==F);q&&Y.rels.parents.push(q),T.unshift(Y)})}function k(T){return r.find(N=>N.id===T)}}function fL(e,t,r){const n=e.id;r.forEach(s=>{s.rels.parents.includes(n)&&(s.rels.parents[s.rels.parents.indexOf(n)]=t),s.rels.spouses&&s.rels.spouses.includes(n)&&(s.rels.spouses=s.rels.spouses.filter(o=>o!==n),s.rels.spouses.includes(t)||s.rels.spouses.push(t)),s.rels.children&&s.rels.children.includes(n)&&(s.rels.children=s.rels.children.filter(o=>o!==n),s.rels.children.includes(t)||s.rels.children.push(t))});const i=r.find(s=>s.id===t),a=r.find(s=>s.id===n);if(!a)throw new Error("New rel not found");if(!i)throw new Error("Link rel not found");if((a.rels.children||[]).forEach(s=>{i.rels.children||(i.rels.children=[]),i.rels.children.includes(s)||i.rels.children.push(s)}),(a.rels.spouses||[]).forEach(s=>{i.rels.spouses||(i.rels.spouses=[]),i.rels.spouses.includes(s)||i.rels.spouses.push(s)}),i.rels.parents.length===0)i.rels.parents=[...a.rels.parents];else{const s=i.rels.parents.find(c=>{var d;return((d=r.find(p=>p.id===c))===null||d===void 0?void 0:d.data.gender)==="M"}),o=i.rels.parents.find(c=>{var d;return((d=r.find(p=>p.id===c))===null||d===void 0?void 0:d.data.gender)==="F"}),l=a.rels.parents.find(c=>{var d;return((d=r.find(p=>p.id===c))===null||d===void 0?void 0:d.data.gender)==="M"}),u=a.rels.parents.find(c=>{var d;return((d=r.find(p=>p.id===c))===null||d===void 0?void 0:d.data.gender)==="F"});l&&(s?(console.error("link rel already has father"),i.rels.parents[i.rels.parents.indexOf(s)]=l):i.rels.parents.push(l)),u&&(o?(console.error("link rel already has mother"),i.rels.parents[i.rels.parents.indexOf(o)]=u):i.rels.parents.push(u))}r.splice(r.findIndex(s=>s.id===n),1)}function wre(e,t){const r=e._new_rel_data?t.find(o=>o.id===e._new_rel_data.rel_id):null,n=a(e,t),i=s(e,t);if(e._new_rel_data&&["son","daughter"].includes(e._new_rel_data.rel_type)){if(!r)throw new Error("Rel datum not found");i.push(...s(r,t))}return t.filter(o=>o.id!==e.id&&o.id!==(r==null?void 0:r.id)&&!o._new_rel_data&&!o.to_add&&!o.unknown).filter(o=>!n.includes(o.id)).filter(o=>!i.includes(o.id)).filter(o=>!(o.rels.spouses||[]).includes(e.id));function a(o,l){const u=[];return c(o),u;function c(d){d.rels.parents.forEach(p=>{if(p){u.push(p);const m=l.find(w=>w.id===p);if(!m)throw new Error("Parent not found");c(m)}})}}function s(o,l){const u=[];return c(o),u;function c(d){(d.rels.children?[...d.rels.children]:[]).forEach(m=>{u.push(m);const w=l.find(g=>g.id===m);if(!w)throw new Error("Child not found");c(w)})}}}function _re({datum:e,store:t,fields:r,postSubmitHandler:n,addRelative:i,removeRelative:a,deletePerson:s,onCancel:o,editFirst:l,link_existing_rel_config:u,onFormCreation:c,no_edit:d,onSubmit:p,onDelete:m,canEdit:w,canDelete:g}){let _=g?g(e):!0;(w?w(e):!0)||(d=!0,_=!1);let x;const b={datum_id:e.id,fields:[],onSubmit:N,onCancel:o,onFormCreation:c,no_edit:d,gender_field:C()};if(e._new_rel_data)x=Object.assign(Object.assign({},b),{title:e._new_rel_data.label,new_rel:!0,editable:!0});else{if(!i)throw new Error("addRelative is required");if(!a)throw new Error("removeRelative is required");x=Object.assign(Object.assign({},b),{onDelete:j,addRelative:()=>i.activate(e),addRelativeCancel:()=>i.onCancel(),addRelativeActive:i.is_active,removeRelative:()=>a.activate(e),removeRelativeCancel:()=>a.onCancel(),removeRelativeActive:a.is_active,editable:!1,can_delete:_})}return(e._new_rel_data||e.to_add||e.unknown)&&u&&(x.linkExistingRelative=T(e,t.getData(),u)),d?x.editable=!1:l&&(x.editable=!0),r.forEach(D=>{D.type==="rel_reference"?v(D):D.type==="select"?k(D):x.fields.push({id:D.id,type:D.type,label:D.label,initial_value:e.data[D.id]})}),x;function C(){return{id:"gender",type:"switch",label:"Gender",initial_value:e.data.gender,disabled:!1,options:[{value:"M",label:"Male"},{value:"F",label:"Female"}]}}function v(D){D.getRelLabel||console.error("getRelLabel is not set"),D.rel_type==="spouse"&&(e.rels.spouses||[]).forEach($=>{const X=t.getDatum($);if(!X)throw new Error("Spouse not found");const W=`${D.id}__ref__${$}`,H={id:W,type:"rel_reference",label:D.label,rel_id:$,rel_label:D.getRelLabel(X),initial_value:e.data[W],rel_type:D.rel_type};x.fields.push(H)})}function k(D){if(!D.options&&!D.optionCreator)return console.error("optionCreator or options is not set for field",D);const $={id:D.id,type:D.type,label:D.label,initial_value:e.data[D.id],placeholder:D.placeholder,options:D.options||D.optionCreator(e)};x.fields.push($)}function T(D,$,X){if(!X)throw new Error("link_existing_rel_config is required");return{title:X.title,select_placeholder:X.select_placeholder,options:wre(D,$).map(H=>({value:H.id,label:X.linkRelLabel(H)})).sort((H,V)=>typeof H.label=="string"&&typeof V.label=="string"?H.label.localeCompare(V.label):H.label<V.label?-1:1),onSelect:M}}function N(D){p?p(D,e,$,()=>n({})):(D.preventDefault(),$(),n({}));function $(){const X=new FormData(D.target);wne(e,t.getData(),X)}}function M(D){const $=D.target.value;n({link_rel_id:$})}function j(){m?m(e,()=>s(),()=>n({delete:!0})):(s(),n({delete:!0}))}}function bre(e,t){t.forEach(r=>{const n=r._new_rel_data;n&&n.rel_type==="spouse"&&(r.data.gender=r.data.gender==="M"?"F":"M")})}function xre(e){for(let t=e.length-1;t>=0;t--){const r=e[t];r._new_rel_data&&(e.forEach(n=>{n.rels.parents.includes(r.id)&&n.rels.parents.splice(n.rels.parents.indexOf(r.id),1),n.rels.children&&n.rels.children.includes(r.id)&&n.rels.children.splice(n.rels.children.indexOf(r.id),1),n.rels.spouses&&n.rels.spouses.includes(r.id)&&n.rels.spouses.splice(n.rels.spouses.indexOf(r.id),1)}),e.splice(t,1))}}function Ere(e,t,r,n){let i={parent:!0,spouse:!0,child:!0};n&&(i=Object.assign(i,n(e))),e.rels.spouses||(e.rels.spouses=[]),e.rels.children||(e.rels.children=[]),i.parent&&a(),i.spouse&&(s(),o()),i.child&&l();function a(){const u=e.rels.parents,c=u.find(w=>{var g;return((g=t.find(_=>_.id===w))===null||g===void 0?void 0:g.data.gender)==="M"}),d=u.find(w=>{var g;return((g=t.find(_=>_.id===w))===null||g===void 0?void 0:g.data.gender)==="F"});if(u.length<2&&!c){const w=Ha({data:{gender:"M"},rels:{children:[e.id]}});w._new_rel_data={rel_type:"father",label:r.father,rel_id:e.id},e.rels.parents.push(w.id),t.push(w)}if(u.length<2&&!d){const w=Ha({data:{gender:"F"},rels:{children:[e.id]}});w._new_rel_data={rel_type:"mother",label:r.mother,rel_id:e.id},e.rels.parents.push(w.id),t.push(w)}const p=t.find(w=>w.id===e.rels.parents[0]),m=t.find(w=>w.id===e.rels.parents[1]);p.rels.spouses||(p.rels.spouses=[]),m.rels.spouses||(m.rels.spouses=[]),p.rels.spouses.includes(m.id)||p.rels.spouses.push(m.id),m.rels.spouses.includes(p.id)||m.rels.spouses.push(p.id),p.rels.children||(p.rels.children=[]),m.rels.children||(m.rels.children=[]),p.rels.children.includes(e.id)||p.rels.children.push(e.id),m.rels.children.includes(e.id)||m.rels.children.push(e.id)}function s(){if(e.rels.spouses||(e.rels.spouses=[]),e.rels.children){let u;e.rels.children.forEach(c=>{const d=t.find(p=>p.id===c);if(d.rels.parents.length===1){const m=t.find(w=>w.id===d.rels.parents[0]).data.gender==="M"?"F":"M";u||(u=Ha({data:{gender:m},rels:{spouses:[e.id]}})),u._new_rel_data={rel_type:"spouse",label:r.spouse,rel_id:e.id},u.rels.children.push(d.id),e.rels.spouses.push(u.id),d.rels.parents.push(u.id),t.push(u)}})}}function o(){e.rels.spouses||(e.rels.spouses=[]);const u=e.data.gender==="M"?"F":"M",c=Ha({data:{gender:u},rels:{spouses:[e.id]}});c._new_rel_data={rel_type:"spouse",label:r.spouse,rel_id:e.id},e.rels.spouses.push(c.id),t.push(c)}function l(){e.rels.children||(e.rels.children=[]),e.rels.spouses||(e.rels.spouses=[]),e.rels.spouses.forEach(u=>{const c=t.find(m=>m.id===u);c.rels.children||(c.rels.children=[]);const d=Ha({data:{gender:"M"},rels:{parents:[e.id,c.id]}});d._new_rel_data={rel_type:"son",label:r.son,other_parent_id:c.id,rel_id:e.id},c.rels.children.push(d.id),e.rels.children.push(d.id),t.push(d);const p=Ha({data:{gender:"F"},rels:{parents:[e.id,c.id]}});p._new_rel_data={rel_type:"daughter",label:r.daughter,other_parent_id:c.id,rel_id:e.id},c.rels.children.push(p.id),e.rels.children.push(p.id),t.push(p)})}return t}var Sre=(e,t,r)=>new Cre(e,t,r);class Cre{constructor(t,r,n){return this.store=t,this.onActivate=r,this.cancelCallback=n,this.datum=null,this.onChange=null,this.onCancel=null,this.is_active=!1,this.addRelLabels=this.addRelLabelsDefault(),this}activate(t){this.is_active&&this.onCancel(),this.onActivate(),this.is_active=!0,this.store.state.one_level_rels=!0;const r=this.store;this.datum=t;let n=this.datum.data.gender;Ere(t,this.getStoreData(),this.addRelLabels,this.canAdd),r.updateTree({}),this.onChange=i,this.onCancel=()=>a(this);function i(s,o){s!=null&&s._new_rel_data?o!=null&&o.link_rel_id?fL(s,o.link_rel_id,r.getData()):delete s._new_rel_data:s.id===t.id?s.data.gender!==n&&(n=s.data.gender,bre(s,r.getData())):console.error("Something went wrong")}function a(s){s.is_active&&(s.is_active=!1,s.store.state.one_level_rels=!1,s.cleanUp(),s.cancelCallback(s.datum),s.datum=null,s.onChange=null,s.onCancel=null)}}setAddRelLabels(t){if(typeof t!="object"){console.error("add_rel_labels must be an object");return}for(const r in t){const n=r;this.addRelLabels[n]=t[n]}return this}setCanAdd(t){return this.canAdd=t,this}addRelLabelsDefault(){return{father:"Add Father",mother:"Add Mother",spouse:"Add Spouse",son:"Add Son",daughter:"Add Daughter"}}getStoreData(){return this.store.getData()}cleanUp(t){return t||(t=this.store.getData()),xre(t),t}}var kre=(e,t,r,n)=>new Are(e,t,r,n);class Are{constructor(t,r,n,i){return this.store=t,this.onActivate=r,this.cancelCallback=n,this.modal=i,this.datum=null,this.onChange=null,this.onCancel=null,this.is_active=!1,this}activate(t){this.is_active&&this.onCancel(),this.onActivate(),this.is_active=!0,this.store.state.one_level_rels=!0;const r=this.store;r.updateTree({}),this.datum=t,this.onChange=n.bind(this),this.onCancel=i.bind(this);function n(a,s){const o=p(a),l=t.rels;o==="parent"?u.call(this):o==="spouse"?c.call(this):o==="children"&&d.call(this);function u(){const m=a.data.id,w=r.getDatum(m);if(!w)throw new Error("Parent not found");if(!w.rels.children)throw new Error("Parent has no children");w.rels.children=w.rels.children.filter(g=>g!==t.id),l.parents=l.parents.filter(g=>g!==m),s()}function c(){const m=a.data;w()?g.call(this):_.call(this,!0);function w(){return(m.rels.children||[]).some(x=>{const b=r.getDatum(x);if(!b)throw new Error("Child not found");return!!b.rels.parents.includes(m.id)})}function g(){const E=t.data.gender==="M"?"f3-male-bg":t.data.gender==="F"?"f3-female-bg":null,x=m.data.gender==="M"?"f3-male-bg":m.data.gender==="F"?"f3-female-bg":null,b=oa("div").html(`
<p>You are removing a spouse relationship. Since there are shared children, please choose which parent should keep them in the family tree.</p>
<div class="f3-modal-options">
<button data-option="assign-to-current" class="f3-btn ${E}">Keep children with current person</button>
<button data-option="assign-to-spouse" class="f3-btn ${x}">Keep children with spouse</button>
</div>
`);b.selectAll('[data-option="assign-to-current"]').on("click",()=>{_(!0),this.modal.close()}),b.selectAll('[data-option="assign-to-spouse"]').on("click",()=>{_(!1),this.modal.close()}),this.modal.activate(b.node())}function _(E){a.data.rels.spouses=a.data.rels.spouses.filter(C=>C!==t.id),l.spouses=l.spouses.filter(C=>C!==a.data.id);const x=E?t:a.data,b=E?a.data:t;(l.children||[]).forEach(C=>{const v=r.getDatum(C);if(!v)throw new Error("Child not found");v.rels.parents.includes(b.id)&&(v.rels.parents=v.rels.parents.filter(k=>k!==b.id))}),b.rels.children&&(b.rels.children=b.rels.children.filter(C=>!(x.rels.children||[]).includes(C))),s()}}function d(){if(!l.children)throw new Error("Children not found");l.children=l.children.filter(m=>m!==a.data.id),a.data.rels.parents=a.data.rels.parents.filter(m=>m!==t.id),s()}function p(m){if(m.is_ancestry){if(t.rels.parents.includes(m.data.id))return"parent"}else if(m.spouse){if(!t.rels.spouses)throw new Error("Spouses not found");if(t.rels.spouses.includes(m.data.id))return"spouse"}else{if(!t.rels.children)throw new Error("Children not found");if(t.rels.children.includes(m.data.id))return"children"}return null}}function i(){if(this.is_active){if(this.is_active=!1,this.store.state.one_level_rels=!1,!this.datum)throw new Error("Datum not found");this.cancelCallback(this.datum),this.datum=null,this.onChange=null,this.onCancel=null}}}}function Tre(e){return new Ire(e)}class Ire{constructor(t){this.cont=t,this.active=!1,this.onClose=null,this.modal_cont=ve(this.cont).append("div").attr("class","f3-modal").node(),ve(this.modal_cont).style("display","none"),this.create()}create(){const t=ve(this.modal_cont);t.html(`
<div class="f3-modal-content">
<span class="f3-modal-close">&times;</span>
<div class="f3-modal-content-inner"></div>
<div class="f3-modal-content-bottom"></div>
</div>
`),t.select(".f3-modal-close").on("click",()=>{this.close()}),t.on("click",r=>{r.target==t.node()&&this.close()})}activate(t,{boolean:r,onAccept:n,onCancel:i}={}){this.reset();const a=ve(this.modal_cont).select(".f3-modal-content-inner").node();if(typeof t=="string"?a.innerHTML=t:a.appendChild(t),r){if(!n)throw new Error("onAccept is required");if(!i)throw new Error("onCancel is required");ve(this.modal_cont).select(".f3-modal-content-bottom").html(`
<button class="f3-modal-accept f3-btn">Accept</button>
<button class="f3-modal-cancel f3-btn">Cancel</button>
`),ve(this.modal_cont).select(".f3-modal-accept").on("click",()=>{n(),this.reset(),this.close()}),ve(this.modal_cont).select(".f3-modal-cancel").on("click",()=>{this.close()}),this.onClose=i}this.open()}reset(){this.onClose=null,ve(this.modal_cont).select(".f3-modal-content-inner").html(""),ve(this.modal_cont).select(".f3-modal-content-bottom").html("")}open(){this.modal_cont.style.display="block",this.active=!0}close(){this.modal_cont.style.display="none",this.active=!1,this.onClose&&this.onClose()}}var Pre=(e,t)=>new Rre(e,t);class Rre{constructor(t,r){return this.cont=t,this.store=r,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.is_fixed=!0,this.no_edit=!1,this.onChange=null,this.editFirst=!1,this.postSubmit=null,this.onFormCreation=null,this.createFormEdit=null,this.createFormNew=null,this.formCont=this.getFormContDefault(),this.modal=this.setupModal(),this.addRelativeInstance=this.setupAddRelative(),this.removeRelativeInstance=this.setupRemoveRelative(),this.history=this.createHistory(),this}open(t){t.rels||(t=t.data),this.addRelativeInstance.is_active?r(this):this.removeRelativeInstance.is_active?n(this,this.store.getTreeDatum(t.id)):this.cardEditForm(t);function r(i){t._new_rel_data?i.cardEditForm(t):(i.addRelativeInstance.onCancel(),i.cardEditForm(t),i.store.updateMainId(t.id),i.store.updateTree({}))}function n(i,a){if(!a)throw new Error("Tree datum not found");if(!i.removeRelativeInstance.datum)throw new Error("Remove relative datum not found");if(!i.removeRelativeInstance.onCancel)throw new Error("Remove relative onCancel not found");if(!i.removeRelativeInstance.onChange)throw new Error("Remove relative onChange not found");if(t.id===i.removeRelativeInstance.datum.id)i.removeRelativeInstance.onCancel(),i.cardEditForm(t);else{let s=function(){i.removeRelativeInstance.onCancel(),i.updateHistory(),i.store.updateTree({})};i.removeRelativeInstance.onChange(a,s.bind(i))}}}setupAddRelative(){return Sre(this.store,()=>t(this),n=>r(this,n));function t(n){n.removeRelativeInstance.is_active&&n.removeRelativeInstance.onCancel()}function r(n,i){n.store.updateMainId(i.id),n.store.updateTree({}),n.openFormWithId(i.id)}}setupRemoveRelative(){return kre(this.store,t.bind(this),r.bind(this),this.modal);function t(){this.addRelativeInstance.is_active&&this.addRelativeInstance.onCancel(),n(this.cont,!0)}function r(i){n(this.cont,!1),this.store.updateMainId(i.id),this.store.updateTree({}),this.openFormWithId(i.id)}function n(i,a){ve(i).select("#f3Canvas").classed("f3-remove-relative-active",a)}}createHistory(){const t=ore(this.store,this._getStoreDataCopy.bind(this),i.bind(this)),r=this.cont.querySelector(".f3-nav-cont");if(!r)throw new Error("Nav cont not found");const n=sre(r,t);return t.changed(),n.updateButtons(),Object.assign(Object.assign({},t),{controls:n});function i(){var a;console.log("historyUpdateTree"),this.addRelativeInstance.is_active&&this.addRelativeInstance.onCancel(),this.removeRelativeInstance.is_active&&this.removeRelativeInstance.onCancel(),this.store.updateTree({initial:!1}),this.history.controls.updateButtons(),this.openFormWithId((a=this.store.getMainDatum())===null||a===void 0?void 0:a.id),this.onChange&&this.onChange()}}openWithoutRelCancel(t){this.cardEditForm(t)}getFormContDefault(){let t=ve(this.cont).select("div.f3-form-cont").node();return t||(t=ve(this.cont).append("div").classed("f3-form-cont",!0).node()),{el:t,populate(r){t.innerHTML="",t.appendChild(r)},open(){ve(t).classed("opened",!0)},close(){ve(t).classed("opened",!1).html("")}}}setFormCont(t){return this.formCont=t,this}cardEditForm(t){const r={},n=t==null?void 0:t._new_rel_data;n?r.onCancel=()=>this.addRelativeInstance.onCancel():(r.addRelative=this.addRelativeInstance,r.removeRelative=this.removeRelativeInstance,r.deletePerson=()=>{QF(t,this.store.getData()),this.openFormWithId(this.store.getLastAvailableMainDatum().id),this.store.updateTree({})});const i=_re(Object.assign({store:this.store,datum:t,postSubmitHandler:o=>s(this,o),fields:this.fields,onCancel:()=>{},editFirst:this.editFirst,no_edit:this.no_edit,link_existing_rel_config:this.link_existing_rel_config,onFormCreation:this.onFormCreation,onSubmit:this.onSubmit,onDelete:this.onDelete,canEdit:this.canEdit,canDelete:this.canDelete},r)),a=n?(this.createFormNew||tre)(i,this.closeForm.bind(this)):(this.createFormEdit||nre)(i,this.closeForm.bind(this));this.formCont.populate(a),this.openForm();function s(o,l){if(o.addRelativeInstance.is_active){o.addRelativeInstance.onChange(t,l),o.postSubmit&&o.postSubmit(t,o.store.getData());const u=o.addRelativeInstance.datum;if(!u)throw new Error("Active datum not found");o.store.updateMainId(u.id),o.openWithoutRelCancel(u)}else(t.to_add||t.unknown)&&(l!=null&&l.link_rel_id)?(fL(t,l.link_rel_id,o.store.getData()),o.store.updateMainId(l.link_rel_id),o.openFormWithId(l.link_rel_id)):l!=null&&l.delete||(o.postSubmit&&o.postSubmit(t,o.store.getData()),o.openFormWithId(t.id));o.is_fixed||o.closeForm(),o.store.updateTree({}),o.updateHistory()}}openForm(){this.formCont.open()}closeForm(){this.formCont.close(),this.store.updateTree({})}fixed(){return this.is_fixed=!0,this.formCont.el&&ve(this.formCont.el).style("position","relative"),this}absolute(){return this.is_fixed=!1,this.formCont.el&&ve(this.formCont.el).style("position","absolute"),this}setCardClickOpen(t){return t.setOnCardClick((r,n)=>{this.isAddingRelative()?this.open(n.data):this.isRemovingRelative()?this.open(n.data):(this.open(n.data),t.onCardClickDefault(r,n))}),this}openFormWithId(t){if(t){const r=this.store.getDatum(t);if(!r)throw new Error("Datum not found");this.openWithoutRelCancel(r)}else{const r=this.store.getMainDatum();if(!r)throw new Error("Main datum not found");this.openWithoutRelCancel(r)}}setNoEdit(){return this.no_edit=!0,this}setEdit(){return this.no_edit=!1,this}setFields(t){const r=[];if(!Array.isArray(t))return console.error("fields must be an array"),this;for(const n of t)typeof n=="string"?r.push({type:"text",label:n,id:n}):typeof n=="object"?n.id?r.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=r,this}setOnChange(t){return this.onChange=t,this}setCanEdit(t){return this.canEdit=t,this}setCanDelete(t){return this.canDelete=t,this}setCanAdd(t){return this.addRelativeInstance.setCanAdd(t),this}addRelative(t){return t||(t=this.store.getMainDatum()),this.addRelativeInstance.activate(t),this}setupModal(){return Tre(this.cont)}setEditFirst(t){return this.editFirst=t,this}isAddingRelative(){return this.addRelativeInstance.is_active}isRemovingRelative(){return this.removeRelativeInstance.is_active}setAddRelLabels(t){return this.addRelativeInstance.setAddRelLabels(t),this}setLinkExistingRelConfig(t){return this.link_existing_rel_config=t,this}setOnFormCreation(t){return this.onFormCreation=t,this}setCreateFormEdit(t){return this.createFormEdit=t,this}setCreateFormNew(t){return this.createFormNew=t,this}_getStoreDataCopy(){let t=JSON.parse(JSON.stringify(this.store.getData()));return this.addRelativeInstance.is_active&&(t=this.addRelativeInstance.cleanUp(t)),t=xne(t),t}getStoreDataCopy(){return this.exportData()}exportData(){let t=this._getStoreDataCopy();return t=Zte(t,this.store.state.legacy_format),t}getDataJson(){return JSON.stringify(this.exportData(),null,2)}updateHistory(){this.history&&(this.history.changed(),this.history.controls.updateButtons()),this.onChange&&this.onChange()}setPostSubmit(t){return this.postSubmit=t,this}setOnSubmit(t){return this.onSubmit=t,this}setOnDelete(t){return this.onDelete=t,this}destroy(){return this.history.controls.destroy(),this.history=null,this.formCont.el&&ve(this.formCont.el).remove(),this.addRelativeInstance.onCancel&&this.addRelativeInstance.onCancel(),this.store.updateTree({}),this}}function Ore(e,t,r){const n=[];t.data.forEach(p=>{p.coparent&&p.data.data.gender==="F"&&n.push({nodes:[p,p.coparent],id:`${p.data.id}--${p.coparent.data.id}`}),p.spouses&&p.spouses.forEach(m=>n.push({nodes:[m,p],id:`${m.data.id}--${p.data.id}`}))});const i=ve(e).select(".links_view").selectAll("g.link-text").data(n,p=>p.id),a=i.exit(),s=i.enter().append("g").attr("class","link-text"),o=s.merge(i),l=(p,m)=>p.spouse&&p.data.data.gender==="F"?p.x-r.node_separation/2:m.spouse&&m.data.data.gender==="M"?m.x+r.node_separation/2:Math.min(p.x,m.x)+r.node_separation/2;a.each(d),s.each(u),o.each(c);function u(p){const[m,w]=p.nodes,g=ve(this);g.attr("transform",`translate(${l(m,w)}, ${m.y-3})`).style("opacity",0),g.append("text").style("font-size","12px").style("fill","#fff").style("text-anchor","middle")}function c(p){const[m,w]=p.nodes,g=ve(this),_=r.initial?ad(t,m,r.transition_time):0;g.select("text").text(r.linkSpouseText(m,w)),g.transition("text").duration(r.transition_time).delay(_).attr("transform",`translate(${l(m,w)}, ${m.y-3})`),g.transition("text-op").duration(100).delay(_+r.transition_time).style("opacity",1)}function d(p){const m=ve(this);m.transition("text").duration(100).style("opacity",0).on("end",()=>m.remove())}}function Nre(e,t,r={}){return new Mre(e,t,r)}class Mre{constructor(t,r,n={}){this.cont=t,this.options=[],this.onSelect=r,this.config=n,this.autocomplete_cont=ve(this.cont).append("div").attr("class","f3-autocomplete-cont").node(),this.create()}create(){var t;const r=this;ve(this.autocomplete_cont).html(`
<div class="f3-autocomplete">
<div class="f3-autocomplete-input-cont">
<input type="text" placeholder="${((t=this.config)===null||t===void 0?void 0:t.placeholder)||"Search"}">
<span class="f3-autocomplete-toggle">${Gne()}</span>
</div>
<div class="f3-autocomplete-items" tabindex="0"></div>
</div>
`);const n=ve(this.autocomplete_cont).select(".f3-autocomplete"),i=n.select("input"),a=n.select(".f3-autocomplete-items");n.on("focusout",()=>{setTimeout(()=>{n.node().contains(document.activeElement)||o()},200)}),i.on("focus",()=>{u(),s()}).on("input",s).on("keydown",c),a.on("wheel",d=>d.stopPropagation()),n.select(".f3-autocomplete-toggle").on("click",d=>{d.stopPropagation();const p=n.classed("active");n.classed("active",!p),p?o():(i.node().focus(),s())});function s(){n.classed("active",!0);const d=i.property("value"),p=r.options.filter(g=>g.label.toLowerCase().includes(d.toLowerCase()));p.forEach(m),p.sort(w),l(p);function m(g){const _=g.label.toLowerCase().indexOf(d.toLowerCase());_!==-1?g.label_html=E():g.label_html=g.label;function E(){return g.label.substring(0,_)+"<strong>"+g.label.substring(_,_+d.length)+"</strong>"+g.label.substring(_+d.length)}}function w(g,_){return g.label<_.label?-1:g.label>_.label?1:0}}function o(){n.classed("active",!1),l([])}function l(d){a.selectAll("div.f3-autocomplete-item").data(d,m=>m==null?void 0:m.value).join("div").attr("class","f3-autocomplete-item").on("click",(m,w)=>{r.onSelect(w.value)}).html(m=>m.optionHtml?m.optionHtml(m):p(m));function p(m){return`<div class="${m.class?m.class:""}">${m.label_html}</div>`}}function u(){r.options=r.getOptions()}function c(d){const p=a.selectAll("div.f3-autocomplete-item").nodes(),m=p.findIndex(g=>ve(g).classed("f3-selected"));if(d.key==="ArrowDown"){d.preventDefault();const g=m<p.length-1?m+1:0;w(p,g)}else if(d.key==="ArrowUp"){d.preventDefault();const g=m>0?m-1:p.length-1;w(p,g)}else if(d.key==="Enter"&&m!==-1){d.preventDefault();const g=ve(p[m]).datum();g&&r.onSelect(g.value)}function w(g,_){g.forEach(E=>ve(E).classed("f3-selected",!1)),g[_]&&(ve(g[_]).classed("f3-selected",!0),g[_].scrollIntoView({block:"nearest"}))}}}setOptionsGetter(t){return this.getOptions=t,this}setOptionsGetterPerson(t,r){return this.getOptions=()=>{const a=[];return t().forEach(o=>{o.to_add||o.unknown||o._new_rel_data||a.find(l=>l.value===o.id)||a.push({label:r(o),value:o.id,optionHtml:n(o)})}),a},this;function n(a){const s=!VF(a,t());return o=>`
<div>
<span style="float: left; width: 10px; height: 10px; margin-right: 10px;" class="f3-${i(a)}-color">${YF()}</span>
<span>${o.label_html}</span>
${s?`<span style="float: right; width: 10px; height: 10px; margin-left: 5px;" title="This profile is not connected to the main profile">${Wne()}</span>`:""}
</div>
`}function i(a){return a.data.gender==="M"?"male":a.data.gender==="F"?"female":"genderless"}}destroy(){this.autocomplete_cont.remove()}}function dL(e){const t=[];return Array.isArray(e)?e.forEach(r=>{typeof r=="function"?t.push(r):typeof r=="string"?t.push(n=>n.data[r]):Array.isArray(r)&&t.push(n=>r.map(i=>n.data[i]).join(" "))}):typeof e=="function"?t.push(e):typeof e=="string"&&t.push(r=>r.data[e]),t}function Dre(e,t,r,n){const i=r.is_ancestry,a=t.data();let s=[],o=[];if(i){const d=[];let p=r,m=0;for(;p!==n&&m<100;){m++;const g=a.find(_=>_.spouse===!0&&(_.source===p||_.target===p));if(g){const _=a.filter(x=>Array.isArray(x.target)&&x.target.includes(g.source)&&x.target.includes(g.target)),E=c(_,n);if(!E)break;d.push(g),d.push(E),p=E.source}else{const _=a.filter(x=>Array.isArray(x.target)&&x.target.includes(p)),E=c(_,n);if(!E)break;d.push(E),p=E.source}}t.each(function(g){d.includes(g)&&s.push({link:g,node:this})});const w=u(r,d);e.each(function(g){w.includes(g)&&o.push({card:g,node:this})})}else if(r.spouse&&r.spouse.data===n.data){t.each(function(p){p.target===r&&s.push({link:p,node:this})});const d=[n,r];e.each(function(p){d.includes(p)&&o.push({card:p,node:this})})}else if(r.sibling){t.each(function(p){if(!Array.isArray(r.parents))throw new Error("datum.parents is not an array");p.source===r&&s.push({link:p,node:this}),p.source===n&&Array.isArray(p.target)&&p.target.length===2&&s.push({link:p,node:this}),r.parents.includes(p.source)&&!Array.isArray(p.target)&&r.parents.includes(p.target)&&s.push({link:p,node:this})});const d=[n,r,...r.parents||[]];e.each(function(p){d.includes(p)&&o.push({card:p,node:this})})}else{let d=[],p=r,m=0;for(;p!==n&&m<100;){m++;const g=a.find(_=>_.target===p&&Array.isArray(_.source));if(g){const _=a.find(E=>E.spouse===!0&&l([E.source,E.target],g.source));d.push(g),d.push(_),_?p=_.source:p=g.source[0]}else{const _=a.find(E=>E.target===p&&!Array.isArray(E.source));if(!_)break;d.push(_),p=_.source}}t.each(function(g){d.includes(g)&&s.push({link:g,node:this})});const w=u(n,d);e.each(function(g){w.includes(g)&&o.push({card:g,node:this})})}return{cards_node_to_main:o,links_node_to_main:s};function l(d,p){return d.every(m=>p.some(w=>m===w))}function u(d,p){const m=p.filter(_=>_).reduce((_,E)=>(Array.isArray(E.target)?_.push(...E.target):_.push(E.target),Array.isArray(E.source)?_.push(...E.source):_.push(E.source),_),[]),w=[n,r];return g(d),w;function g(_){_.data.rels.children&&_.data.rels.children.forEach(E=>{const x=m.find(b=>b.data.id===E);x&&(w.push(x),g(x))})}}function c(d,p){return d.length===0?null:d.length===1?d[0]:d.find(m=>m.source===p)}}function v2(e,t){return new Fre(e,t)}let Fre=class{constructor(t,r){return this.cont=t,this.svg=this.cont.querySelector("svg.main_svg"),this.store=r,this.card_display=[n=>`${n.data["first name"]} ${n.data["last name"]}`],this.cardImageField="avatar",this.onCardClick=this.onCardClickDefault,this.style="default",this.mini_tree=!1,this.card_dim={},this}getCard(){return iL({store:this.store,card_display:this.card_display,cardImageField:this.cardImageField,defaultPersonIcon:this.defaultPersonIcon,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||"",unknown_card_label:this.store.state.unknown_card_label||"",cardInnerHtmlCreator:this.cardInnerHtmlCreator,duplicate_branch_toggle:this.store.state.duplicate_branch_toggle,onCardMouseenter:this.onCardMouseenter?this.onCardMouseenter.bind(this):void 0,onCardMouseleave:this.onCardMouseleave?this.onCardMouseleave.bind(this):void 0})}setCardDisplay(t){return this.card_display=dL(t),this}setCardImageField(t){return this.cardImageField=t,this}setDefaultPersonIcon(t){return this.defaultPersonIcon=t,this}setOnCardClick(t){return this.onCardClick=t,this}onCardClickDefault(t,r){this.store.updateMainId(r.data.id),this.store.updateTree({})}setStyle(t){return this.style=t,this}setMiniTree(t){return this.mini_tree=t,this}setOnCardUpdate(t){return this.onCardUpdate=t,this}setCardDim(t){if(typeof t!="object")return console.error("card_dim must be an object"),this;for(let r in t){const n=t[r];if(typeof n!="number"&&typeof n!="boolean")return console.error(`card_dim.${r} must be a number or boolean`),this;r==="width"&&(r="w"),r==="height"&&(r="h"),r==="img_width"&&(r="img_w"),r==="img_height"&&(r="img_h"),r==="img_x"&&(r="img_x"),r==="img_y"&&(r="img_y"),this.card_dim[r]=n}return this}resetCardDim(){return this.card_dim={},this}setCardInnerHtmlCreator(t){return this.cardInnerHtmlCreator=t,this}setOnHoverPathToMain(){return this.onCardMouseenter=this.onEnterPathToMain.bind(this),this.onCardMouseleave=this.onLeavePathToMain.bind(this),this}unsetOnHoverPathToMain(){return this.onCardMouseenter=void 0,this.onCardMouseleave=void 0,this}onEnterPathToMain(t,r){this.to_transition=r.data.id;const n=this.store.getTreeMainDatum(),i=ve(this.cont).select("div.cards_view").selectAll(".card_cont"),a=ve(this.cont).select("svg.main_svg .links_view").selectAll(".link"),{cards_node_to_main:s,links_node_to_main:o}=Dre(i,a,r,n);return s.forEach(l=>{const u=Math.abs(r.depth-l.card.depth)*200;ve(l.node.querySelector("div.card-inner")).transition().duration(0).delay(u).on("end",()=>this.to_transition===r.data.id&&ve(l.node.querySelector("div.card-inner")).classed("f3-path-to-main",!0))}),o.forEach(l=>{const u=Math.abs(r.depth-l.link.depth)*200;ve(l.node).transition().duration(0).delay(u).on("end",()=>this.to_transition===r.data.id&&ve(l.node).classed("f3-path-to-main",!0))}),this}onLeavePathToMain(t,r){return this.to_transition=!1,ve(this.cont).select("div.cards_view").selectAll("div.card-inner").classed("f3-path-to-main",!1),ve(this.cont).select("svg.main_svg .links_view").selectAll(".link").classed("f3-path-to-main",!1),this}};function y2(e,t){return new Lre(e,t)}let Lre=class{constructor(t,r){return this.cont=t,this.store=r,this.svg=this.cont.querySelector("svg.main_svg"),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=[],this.mini_tree=!0,this.link_break=!1,this.onCardClick=this.onCardClickDefault.bind(this),this}getCard(){return ux({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})}setCardDisplay(t){return this.card_display=dL(t),this}setCardDim(t){if(typeof t!="object")return console.error("card_dim must be an object"),this;for(let r in t){const n=t[r];if(typeof n!="number"&&typeof n!="boolean")return console.error(`card_dim.${r} must be a number or boolean`),this;r==="width"&&(r="w"),r==="height"&&(r="h"),r==="img_width"&&(r="img_w"),r==="img_height"&&(r="img_h"),r==="img_x"&&(r="img_x"),r==="img_y"&&(r="img_y"),this.card_dim[r]=n}return gre(this.svg,this.card_dim),this}setOnCardUpdate(t){return this.onCardUpdate=t,this}setMiniTree(t){return this.mini_tree=t,this}setLinkBreak(t){return this.link_break=t,this}onCardClickDefault(t,r){this.store.updateMainId(r.data.id),this.store.updateTree({})}setOnCardClick(t){return this.onCardClick=t,this}};function jre(e,t){return new Bre(e,t)}class Bre{constructor(t,r){this.getCard=null,this.transition_time=2e3,this.linkSpouseText=null,this.personSearch=null,this.is_card_html=!1,this.beforeUpdate=null,this.afterUpdate=null,this.cont=zre(t);const{svg:n}=UF(this.cont);this.svg=n,Ure(this.cont);const i=r&&r.length>0?r[0].id:"";return this.store=this.createStore(r,i),this.setOnUpdate(),this.editTreeInstance=null,this}createStore(t,r){return jF({data:t,main_id:r,node_separation:250,level_separation:150,single_parent_empty_card:!0,is_horizontal:!1})}setOnUpdate(){this.store.setOnUpdate(t=>{this.beforeUpdate&&this.beforeUpdate(t),t=Object.assign({transition_time:this.store.state.transition_time},t||{}),this.is_card_html&&(t=Object.assign({},t||{},{cardHtml:!0})),GF(this.store.getTree(),this.svg,this.getCard(),t||{}),this.linkSpouseText&&Ore(this.svg,this.store.getTree(),Object.assign({},t||{},{linkSpouseText:this.linkSpouseText,node_separation:this.store.state.node_separation})),this.afterUpdate&&this.afterUpdate(t)})}updateTree(t={initial:!1}){return this.store.updateTree(t),this}updateData(t){return this.store.updateData(t),this}setCardYSpacing(t){return typeof t!="number"?(console.error("card_y_spacing must be a number"),this):(this.store.state.level_separation=t,this)}setCardXSpacing(t){return typeof t!="number"?(console.error("card_x_spacing must be a number"),this):(this.store.state.node_separation=t,this)}setOrientationVertical(){return this.store.state.is_horizontal=!1,this}setOrientationHorizontal(){return this.store.state.is_horizontal=!0,this}setShowSiblingsOfMain(t){return this.store.state.show_siblings_of_main=t,this}setModifyTreeHierarchy(t){return this.store.state.modifyTreeHierarchy=t,this}setPrivateCardsConfig(t){return this.store.state.private_cards_config=t,this}setLinkSpouseText(t){return this.linkSpouseText=t,this}setSingleParentEmptyCard(t,{label:r="Unknown"}={}){return this.store.state.single_parent_empty_card=t,this.store.state.single_parent_empty_card_label=r,this.editTreeInstance&&this.editTreeInstance.addRelativeInstance.is_active&&this.editTreeInstance.addRelativeInstance.onCancel(),lx(this.store.getData()||[]),this}setCard(t){if(t===v2)return this.setCardHtml();if(t===y2)return this.setCardSvg();throw new Error("Card must be an instance of cardHtml or cardSvg")}setCardHtml(){const t=this.cont.querySelector("#htmlSvg");if(!t)throw new Error("htmlSvg not found");this.is_card_html=!0,this.svg.querySelector(".cards_view").innerHTML="",t.style.display="block";const r=v2(this.cont,this.store);return this.getCard=()=>r.getCard(),r}setCardSvg(){const t=this.cont.querySelector("#htmlSvg");if(!t)throw new Error("htmlSvg not found");this.is_card_html=!1,this.svg.querySelector(".cards_view").innerHTML="",t.style.display="none";const r=y2(this.cont,this.store);return this.getCard=()=>r.getCard(),r}setTransitionTime(t){return this.store.state.transition_time=t,this}setSortChildrenFunction(t){return this.store.state.sortChildrenFunction=t,this}setSortSpousesFunction(t){return this.store.state.sortSpousesFunction=t,this}setAncestryDepth(t){return this.store.state.ancestry_depth=t,this}setProgenyDepth(t){return this.store.state.progeny_depth=t,this}getMaxDepth(t){return Vte(t,this.store.getData())}calculateKinships(t,r={}){return sL(t,this.store.getData(),r)}getKinshipsDataStash(t,r){return cL(t,r,this.store.getData(),this.calculateKinships(t))}setDuplicateBranchToggle(t){return this.store.state.duplicate_branch_toggle=t,this}editTree(){return this.editTreeInstance=Pre(this.cont,this.store)}updateMain(t){let r;return t.id?r=t.id:r=t.data.id,this.store.updateMainId(r),this.store.updateTree({}),this}updateMainId(t){return this.store.updateMainId(t),this}getMainDatum(){return this.store.getMainDatum()}setBeforeUpdate(t){return this.beforeUpdate=t,this}setAfterUpdate(t){return this.afterUpdate=t,this}setPersonDropdown(t,{cont:r=this.cont.querySelector(".f3-nav-cont"),onSelect:n,placeholder:i="Search"}={}){n||(n=a.bind(this)),this.personSearch=Nre(r,n,{placeholder:i}),this.personSearch.setOptionsGetterPerson(this.store.getData,t);function a(s){const o=this.store.getDatum(s);if(!o)throw new Error("Datum not found");this.editTreeInstance&&this.editTreeInstance.open(o),this.updateMainId(s),this.updateTree({initial:!1})}return this}unSetPersonSearch(){return this.personSearch.destroy(),this.personSearch=null,this}}function zre(e){if(typeof e=="string"&&(e=document.querySelector(e)),!e)throw new Error("cont not found");return e}function Ure(e){ve(e).append("div").attr("class","f3-nav-cont")}function $re(e,t,r){const{self_id:n,getLabel:i,title:a}=e,s=sL(n,r,e),o=s[t];if(!o)return;let l=o;o==="self"?l="You":l=hL(l);const u=`
<div class="f3-kinship-info">
<div class="f3-info-field">
<span class="f3-info-field-label">${a}</span>
<span class="f3-info-field-value">
<span>${l}</span>
<span class="f3-kinship-info-icon">${Vne()}</span>
</span>
</div>
</div>
`,c=oa("div").html(u).select("div").node();let d=null;return ve(c).select(".f3-kinship-info-icon").on("click",m=>p(m,c)),c;function p(m,w){let E=m.clientX-250-10,x=m.clientY-400-10;if(E+250>window.innerWidth&&(E=window.innerWidth-250-10),x<0&&(x=10),d&&d.active){d.close(),d=null;return}d=oL(w),ve(d.popup_cont).style("width","250px").style("height","400px").style("left",`${E}px`).style("top",`${x}px`);const b=d.popup_cont.querySelector(".f3-popup-content-inner");d.activate(),Hre(n,t,r,s,b,i)}}function Hre(e,t,r,n,i,a){ve(i).select("#SmallChart").node()||ve(i).append("div").attr("id","SmallChart").attr("class","f3");const s=ve("#SmallChart");s.selectAll("*").remove();const o=cL(e,t,r,n);let l=!0;const u=s.append("div");c(o);function c(d){const p=jre("#SmallChart",d).setTransitionTime(500).setCardXSpacing(170).setCardYSpacing(70).setSingleParentEmptyCard(!1),m=p.setCardHtml().setStyle("rect").setCardInnerHtmlCreator(E=>w(E)).setOnCardUpdate(function(E){ve(this).select(".card").classed("card-main",!1)});m.onCardClick=(E,x)=>{},p.updateTree({initial:!0}),setTimeout(()=>_(.65),100),g();function w(E){let x=E.data.kinship==="self"?"You":E.data.kinship;return x=hL(x),l||(x=a(E.data)),`
<div class="card-inner card-rect ${b()}">
<div class="card-label">${x}</div>
</div>
`;function b(){return E.data.kinship==="self"?"card-kinship-self"+(l?"":" f3-real-label"):E.data.id===t?"card-kinship-rel":"card-kinship-default"}}function g(){u.classed("f3-kinship-labels-toggle",!0),u.append("label").text("Kinship labels").append("input").attr("type","checkbox").attr("checked",!0).on("change",E=>{l=!l,p.updateTree({initial:!1,tree_position:"inherit"})})}function _(E){const x=p.cont.querySelector("svg.main_svg");ane(x).k>E&&one(x,E)}}}function hL(e){return e=e[0].toUpperCase()+e.slice(1),e.includes("great-")&&(e=e.replace("great-","Great-")),e}var qre=Object.freeze({__proto__:null,Card:vre,CardHtml:iL,CardSvg:ux,appendElement:A1,infoPopup:oL,kinshipInfo:$re});Object.assign({},dne,{setupHtmlSvg:pne,setupReactiveTreeData:mne,getUniqueId:gne});function Gre(e,t){return e.husb===t?e.wife:e.husb}function w2(e,t){const r=new Map;return e.fams.forEach(n=>r.set(n.id,n)),e.indis.map(n=>{var d,p;const i=n.famc&&r.get(n.famc)||void 0,a=(n.fams||[]).map(m=>r.get(m)).filter(m=>m!==void 0),s=i==null?void 0:i.husb,o=i==null?void 0:i.wife,l=[s,o].filter(m=>!!m),u=a.map(m=>Gre(m,n.id)).filter(m=>m!==void 0),c=a.flatMap(m=>m.children||[]);return{id:n.id,data:{"first name":n.firstName,"last name":n.lastName,birthday:eu(n.birth,t),avatar:(p=(d=n.images)==null?void 0:d[0])==null?void 0:p.url,gender:n.sex},rels:{parents:l,spouses:u,children:c}}})}class Wre{initializeChart(t,r){const n=w2(t.data,r);this.store=jF({data:n,main_id:t.selection.id});const i=zF(document.querySelector("#dotatsoSvgContainer")),a=qre.CardSvg({store:this.store,svg:i,card_display:[s=>`${s.data["first name"]||""} ${s.data["last name"]||""}`,s=>`${s.data.birthday||""}`],mini_tree:!0,link_break:!1,onCardClick:(s,o)=>t.onSelection({id:o.data.id,generation:0}),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.store.setOnUpdate(s=>{GF(this.store.getTree(),i,a,s||{})}),this.store.updateTree({initial:!0})}updateChart(t,r){const n=w2(t.data,r);this.store.updateData(n),this.store.updateMainId(t.selection.id),this.store.updateTree()}}function Vre(e){const t=J.useRef(new Wre),r=tF(e),n=fr();return J.useEffect(()=>{r?t.current.updateChart(e,n):t.current.initializeChart(e,n)}),O.jsx("div",{id:"dotatsoSvgContainer"})}const Qre=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class od{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}od.prototype.property={};od.prototype.normal={};od.prototype.space=null;function pL(e,t){const r={},n={};let i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new od(r,n,t)}function T1(e){return e.toLowerCase()}class Nr{constructor(t,r){this.property=t,this.attribute=r}}Nr.prototype.space=null;Nr.prototype.boolean=!1;Nr.prototype.booleanish=!1;Nr.prototype.overloadedBoolean=!1;Nr.prototype.number=!1;Nr.prototype.commaSeparated=!1;Nr.prototype.spaceSeparated=!1;Nr.prototype.commaOrSpaceSeparated=!1;Nr.prototype.mustUseProperty=!1;Nr.prototype.defined=!1;let Kre=0;const tt=Ss(),tn=Ss(),mL=Ss(),ke=Ss(),It=Ss(),hl=Ss(),ar=Ss();function Ss(){return 2**++Kre}const I1=Object.freeze(Object.defineProperty({__proto__:null,boolean:tt,booleanish:tn,commaOrSpaceSeparated:ar,commaSeparated:hl,number:ke,overloadedBoolean:mL,spaceSeparated:It},Symbol.toStringTag,{value:"Module"})),Qy=Object.keys(I1);class cx extends Nr{constructor(t,r,n,i){let a=-1;if(super(t,r),_2(this,"space",i),typeof n=="number")for(;++a<Qy.length;){const s=Qy[a];_2(this,Qy[a],(n&I1[s])===I1[s])}}}cx.prototype.defined=!0;function _2(e,t,r){r&&(e[t]=r)}const Yre={}.hasOwnProperty;function yu(e){const t={},r={};let n;for(n in e.properties)if(Yre.call(e.properties,n)){const i=e.properties[n],a=new cx(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[T1(n)]=n,r[T1(a.attribute)]=n}return new od(t,r,e.space)}const gL=yu({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),vL=yu({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function yL(e,t){return t in e?e[t]:t}function wL(e,t){return yL(e,t.toLowerCase())}const _L=yu({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:wL,properties:{xmlns:null,xmlnsXLink:null}}),bL=yu({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:tn,ariaAutoComplete:null,ariaBusy:tn,ariaChecked:tn,ariaColCount:ke,ariaColIndex:ke,ariaColSpan:ke,ariaControls:It,ariaCurrent:null,ariaDescribedBy:It,ariaDetails:null,ariaDisabled:tn,ariaDropEffect:It,ariaErrorMessage:null,ariaExpanded:tn,ariaFlowTo:It,ariaGrabbed:tn,ariaHasPopup:null,ariaHidden:tn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:It,ariaLevel:ke,ariaLive:null,ariaModal:tn,ariaMultiLine:tn,ariaMultiSelectable:tn,ariaOrientation:null,ariaOwns:It,ariaPlaceholder:null,ariaPosInSet:ke,ariaPressed:tn,ariaReadOnly:tn,ariaRelevant:null,ariaRequired:tn,ariaRoleDescription:It,ariaRowCount:ke,ariaRowIndex:ke,ariaRowSpan:ke,ariaSelected:tn,ariaSetSize:ke,ariaSort:null,ariaValueMax:ke,ariaValueMin:ke,ariaValueNow:ke,ariaValueText:null,role:null}}),Xre=yu({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:wL,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:hl,acceptCharset:It,accessKey:It,action:null,allow:null,allowFullScreen:tt,allowPaymentRequest:tt,allowUserMedia:tt,alt:null,as:null,async:tt,autoCapitalize:null,autoComplete:It,autoFocus:tt,autoPlay:tt,blocking:It,capture:null,charSet:null,checked:tt,cite:null,className:It,cols:ke,colSpan:null,content:null,contentEditable:tn,controls:tt,controlsList:It,coords:ke|hl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:tt,defer:tt,dir:null,dirName:null,disabled:tt,download:mL,draggable:tn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:tt,formTarget:null,headers:It,height:ke,hidden:tt,high:ke,href:null,hrefLang:null,htmlFor:It,httpEquiv:It,id:null,imageSizes:null,imageSrcSet:null,inert:tt,inputMode:null,integrity:null,is:null,isMap:tt,itemId:null,itemProp:It,itemRef:It,itemScope:tt,itemType:It,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:tt,low:ke,manifest:null,max:null,maxLength:ke,media:null,method:null,min:null,minLength:ke,multiple:tt,muted:tt,name:null,nonce:null,noModule:tt,noValidate:tt,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:tt,optimum:ke,pattern:null,ping:It,placeholder:null,playsInline:tt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:tt,referrerPolicy:null,rel:It,required:tt,reversed:tt,rows:ke,rowSpan:ke,sandbox:It,scope:null,scoped:tt,seamless:tt,selected:tt,shadowRootClonable:tt,shadowRootDelegatesFocus:tt,shadowRootMode:null,shape:null,size:ke,sizes:null,slot:null,span:ke,spellCheck:tn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ke,step:null,style:null,tabIndex:ke,target:null,title:null,translate:null,type:null,typeMustMatch:tt,useMap:null,value:tn,width:ke,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:It,axis:null,background:null,bgColor:null,border:ke,borderColor:null,bottomMargin:ke,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:tt,declare:tt,event:null,face:null,frame:null,frameBorder:null,hSpace:ke,leftMargin:ke,link:null,longDesc:null,lowSrc:null,marginHeight:ke,marginWidth:ke,noResize:tt,noHref:tt,noShade:tt,noWrap:tt,object:null,profile:null,prompt:null,rev:null,rightMargin:ke,rules:null,scheme:null,scrolling:tn,standby:null,summary:null,text:null,topMargin:ke,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ke,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:tt,disableRemotePlayback:tt,prefix:null,property:null,results:ke,security:null,unselectable:null}}),Jre=yu({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:yL,properties:{about:ar,accentHeight:ke,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ke,amplitude:ke,arabicForm:null,ascent:ke,attributeName:null,attributeType:null,azimuth:ke,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ke,by:null,calcMode:null,capHeight:ke,className:It,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:ke,diffuseConstant:ke,direction:null,display:null,dur:null,divisor:ke,dominantBaseline:null,download:tt,dx:null,dy:null,edgeMode:null,editable:null,elevation:ke,enableBackground:null,end:null,event:null,exponent:ke,externalResourcesRequired:null,fill:null,fillOpacity:ke,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:hl,g2:hl,glyphName:hl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ke,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ke,horizOriginX:ke,horizOriginY:ke,id:null,ideographic:ke,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ke,k:ke,k1:ke,k2:ke,k3:ke,k4:ke,kernelMatrix:ar,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ke,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:ke,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:ke,overlineThickness:ke,paintOrder:null,panose1:null,path:null,pathLength:ke,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:It,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ke,pointsAtY:ke,pointsAtZ:ke,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ar,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ar,rev:ar,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ar,requiredFeatures:ar,requiredFonts:ar,requiredFormats:ar,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:ke,specularExponent:ke,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ke,strikethroughThickness:ke,string:null,stroke:null,strokeDashArray:ar,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ke,strokeOpacity:ke,strokeWidth:null,style:null,surfaceScale:ke,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ar,tabIndex:ke,tableValues:null,target:null,targetX:ke,targetY:ke,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ar,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ke,underlineThickness:ke,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ke,values:null,vAlphabetic:ke,vMathematical:ke,vectorEffect:null,vHanging:ke,vIdeographic:ke,version:null,vertAdvY:ke,vertOriginX:ke,vertOriginY:ke,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ke,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Zre=/^data[-\w.:]+$/i,b2=/-[a-z]/g,eie=/[A-Z]/g;function tie(e,t){const r=T1(t);let n=t,i=Nr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Zre.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(b2,rie);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!b2.test(a)){let s=a.replace(eie,nie);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=cx}return new i(n,t)}function nie(e){return"-"+e.toLowerCase()}function rie(e){return e.charAt(1).toUpperCase()}const iie=pL([vL,gL,_L,bL,Xre],"html"),xL=pL([vL,gL,_L,bL,Jre],"svg"),x2={}.hasOwnProperty;function aie(e,t){const r=t||{};function n(i,...a){let s=n.invalid;const o=n.handlers;if(i&&x2.call(i,e)){const l=String(i[e]);s=x2.call(o,l)?o[l]:n.unknown}if(s)return s.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const oie=/["&'<>`]/g,sie=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lie=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,uie=/[|\\{}()[\]^$+*?.]/g,E2=new WeakMap;function cie(e,t){if(e=e.replace(t.subset?fie(t.subset):oie,n),t.subset||t.escapeOnly)return e;return e.replace(sie,r).replace(lie,n);function r(i,a,s){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(a+2),t)}function n(i,a,s){return t.format(i.charCodeAt(0),s.charCodeAt(a+1),t)}}function fie(e){let t=E2.get(e);return t||(t=die(e),E2.set(e,t)),t}function die(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(uie,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const hie=/[\dA-Fa-f]/;function pie(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!hie.test(String.fromCharCode(t))?n:n+";"}const mie=/\d/;function gie(e,t,r){const n="&#"+String(e);return r&&t&&!mie.test(String.fromCharCode(t))?n:n+";"}const vie=["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"],Ky={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"",Prime:"″",oline:"‾",frasl:"",weierp:"℘",image:"",real:"",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"",lowast:"",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"",cap:"∩",cup:"",int:"∫",there4:"∴",sim:"",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:"",emsp:"",thinsp:"",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"",mdash:"—",lsquo:"",rsquo:"",sbquo:"",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"",rsaquo:"",euro:"€"},yie=["cent","copy","divide","gt","lt","not","para","times"],EL={}.hasOwnProperty,P1={};let qh;for(qh in Ky)EL.call(Ky,qh)&&(P1[Ky[qh]]=qh);const wie=/[^\dA-Za-z]/;function _ie(e,t,r,n){const i=String.fromCharCode(e);if(EL.call(P1,i)){const a=P1[i],s="&"+a;return r&&vie.includes(a)&&!yie.includes(a)&&(!n||t&&t!==61&&wie.test(String.fromCharCode(t)))?s:s+";"}return""}function bie(e,t,r){let n=pie(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=_ie(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=gie(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function pl(e,t){return cie(e,Object.assign({format:bie},t))}const xie=/^>|^->|<!--|-->|--!>|<!-$/g,Eie=[">"],Sie=["<",">"];function Cie(e,t,r,n){return n.settings.bogusComments?"<?"+pl(e.value,Object.assign({},n.settings.characterReferences,{subset:Eie}))+">":"<!--"+e.value.replace(xie,i)+"-->";function i(a){return pl(a,Object.assign({},n.settings.characterReferences,{subset:Sie}))}}function kie(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function S2(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}function Aie(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function Tie(e){return e.join(" ").trim()}const Iie=/[ \t\n\f\r]/g;function fx(e){return typeof e=="object"?e.type==="text"?C2(e.value):!1:C2(e)}function C2(e){return e.replace(Iie,"")===""}const ln=CL(1),SL=CL(-1),Pie=[];function CL(e){return t;function t(r,n,i){const a=r?r.children:Pie;let s=(n||0)+e,o=a[s];if(!i)for(;o&&fx(o);)s+=e,o=a[s];return o}}const Rie={}.hasOwnProperty;function kL(e){return t;function t(r,n,i){return Rie.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const dx=kL({body:Nie,caption:Yy,colgroup:Yy,dd:Lie,dt:Fie,head:Yy,html:Oie,li:Die,optgroup:jie,option:Bie,p:Mie,rp:k2,rt:k2,tbody:Uie,td:A2,tfoot:$ie,th:A2,thead:zie,tr:Hie});function Yy(e,t,r){const n=ln(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&fx(n.value.charAt(0)))}function Oie(e,t,r){const n=ln(r,t);return!n||n.type!=="comment"}function Nie(e,t,r){const n=ln(r,t);return!n||n.type!=="comment"}function Mie(e,t,r){const n=ln(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function Die(e,t,r){const n=ln(r,t);return!n||n.type==="element"&&n.tagName==="li"}function Fie(e,t,r){const n=ln(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function Lie(e,t,r){const n=ln(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function k2(e,t,r){const n=ln(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function jie(e,t,r){const n=ln(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function Bie(e,t,r){const n=ln(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function zie(e,t,r){const n=ln(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function Uie(e,t,r){const n=ln(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function $ie(e,t,r){return!ln(r,t)}function Hie(e,t,r){const n=ln(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function A2(e,t,r){const n=ln(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const qie=kL({body:Vie,colgroup:Qie,head:Wie,html:Gie,tbody:Kie});function Gie(e){const t=ln(e,-1);return!t||t.type!=="comment"}function Wie(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function Vie(e){const t=ln(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&fx(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Qie(e,t,r){const n=SL(r,t),i=ln(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&dx(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function Kie(e,t,r){const n=SL(r,t),i=ln(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&dx(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Gh={name:[[`
\f\r &/=>`.split(""),`
\f\r "&'/=>\``.split("")],[`\0
\f\r "&'/<=>`.split(""),`\0
\f\r "&'/<=>\``.split("")]],unquoted:[[`
\f\r &>`.split(""),`\0
\f\r "&'<=>\``.split("")],[`\0
\f\r "&'<=>\``.split(""),`\0
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Yie(e,t,r,n){const i=n.schema,a=i.space==="svg"?!1:n.settings.omitOptionalTags;let s=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const o=[];let l;i.space==="html"&&e.tagName==="svg"&&(n.schema=xL);const u=Xie(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(s=!1),(u||!a||!qie(e,t,r))&&(o.push("<",e.tagName,u?" "+u:""),s&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(c),!s&&(!a||!dx(e,t,r))&&o.push("</"+e.tagName+">"),o.join("")}function Xie(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const a=Jie(e,i,t[i]);a&&r.push(a)}}for(;++n<r.length;){const a=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&a!=='"'&&a!=="'"&&(r[n]+=" ")}return r.join("")}function Jie(e,t,r){const n=tie(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let s=e.quote,o;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const l=pl(n.attribute,Object.assign({},e.settings.characterReferences,{subset:Gh.name[i][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?Aie:Tie)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(o=pl(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Gh.unquoted[i][a]}))),o!==r&&(e.settings.quoteSmart&&S2(r,s)>S2(r,e.alternative)&&(s=e.alternative),o=s+pl(r,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Gh.single:Gh.double)[i][a],attribute:!0}))+s),l+(o&&"="+o))}const Zie=["<","&"];function AL(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:pl(e.value,Object.assign({},n.settings.characterReferences,{subset:Zie}))}function eae(e,t,r,n){return n.settings.allowDangerousHtml?e.value:AL(e,t,r,n)}function tae(e,t,r,n){return n.all(e)}const nae=aie("type",{invalid:rae,unknown:iae,handlers:{comment:Cie,doctype:kie,element:Yie,raw:eae,root:tae,text:AL}});function rae(e){throw new Error("Expected node, not `"+e+"`")}function iae(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const aae={},oae={},sae=[];function lae(e,t){const r=t||aae,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:uae,all:cae,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||Qre,characterReferences:r.characterReferences||oae,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?xL:iie,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function uae(e,t,r){return nae(e,t,r,this)}function cae(e){const t=[],r=e&&e.children||sae;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}function fae(e){const t=this,r={...t.data("settings"),...e};t.compiler=n;function n(i){return lae(i,r)}}const dae={};function hae(e,t){const r=dae,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return TL(e,n,i)}function TL(e,t,r){if(pae(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return T2(e.children,t,r)}return Array.isArray(e)?T2(e,t,r):""}function T2(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=TL(e[i],t,r);return n.join("")}function pae(e){return!!(e&&typeof e=="object")}const I2=document.createElement("i");function hx(e){const t="&"+e+";";I2.innerHTML=t;const r=I2.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Ei(e,t,r,n){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);a<n.length;)s=n.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function Er(e,t){return e.length>0?(Ei(e,e.length,0,t),e):t}const P2={}.hasOwnProperty;function mae(e){const t={};let r=-1;for(;++r<e.length;)gae(t,e[r]);return t}function gae(e,t){let r;for(r in t){const i=(P2.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let s;if(a)for(s in a){P2.call(i,s)||(i[s]=[]);const o=a[s];vae(i[s],Array.isArray(o)?o:o?[o]:[])}}}function vae(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Ei(e,0,0,n)}function IL(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"<22>":String.fromCodePoint(r)}function ml(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fi=bo(/[A-Za-z]/),or=bo(/[\dA-Za-z]/),yae=bo(/[#-'*+\--9=?A-Z^-~]/);function R1(e){return e!==null&&(e<32||e===127)}const O1=bo(/\d/),wae=bo(/[\dA-Fa-f]/),_ae=bo(/[!-/:-@[-`{-~]/);function Ye(e){return e!==null&&e<-2}function Xn(e){return e!==null&&(e<0||e===32)}function yt(e){return e===-2||e===-1||e===32}const bae=bo(new RegExp("\\p{P}|\\p{S}","u")),xae=bo(/\s/);function bo(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function wu(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let s="";if(a===37&&or(e.charCodeAt(r+1))&&or(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(r+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="<22>"}else s=String.fromCharCode(a);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+i+1,s=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function Pt(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return yt(l)?(e.enter(r),o(l)):t(l)}function o(l){return yt(l)&&a++<i?(e.consume(l),o):(e.exit(r),t(l))}}const Eae={tokenize:Sae};function Sae(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Pt(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),a(o)}function a(o){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return Ye(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}const Cae={tokenize:kae},R2={tokenize:Aae};function kae(e){const t=this,r=[];let n=0,i,a,s;return o;function o(b){if(n<r.length){const C=r[n];return t.containerState=C[1],e.attempt(C[0].continuation,l,u)(b)}return u(b)}function l(b){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&x();const C=t.events.length;let v=C,k;for(;v--;)if(t.events[v][0]==="exit"&&t.events[v][1].type==="chunkFlow"){k=t.events[v][1].end;break}E(n);let T=C;for(;T<t.events.length;)t.events[T][1].end={...k},T++;return Ei(t.events,v+1,0,t.events.slice(C)),t.events.length=T,u(b)}return o(b)}function u(b){if(n===r.length){if(!i)return p(b);if(i.currentConstruct&&i.currentConstruct.concrete)return w(b);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(R2,c,d)(b)}function c(b){return i&&x(),E(n),p(b)}function d(b){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,w(b)}function p(b){return t.containerState={},e.attempt(R2,m,w)(b)}function m(b){return n++,r.push([t.currentConstruct,t.containerState]),p(b)}function w(b){if(b===null){i&&x(),E(0),e.consume(b);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),g(b)}function g(b){if(b===null){_(e.exit("chunkFlow"),!0),E(0),e.consume(b);return}return Ye(b)?(e.consume(b),_(e.exit("chunkFlow")),n=0,t.interrupt=void 0,o):(e.consume(b),g)}function _(b,C){const v=t.sliceStream(b);if(C&&v.push(null),b.previous=a,a&&(a.next=b),a=b,i.defineSkip(b.start),i.write(v),t.parser.lazy[b.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<s&&(!i.events[k][1].end||i.events[k][1].end.offset>s))return;const T=t.events.length;let N=T,M,j;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){if(M){j=t.events[N][1].end;break}M=!0}for(E(n),k=T;k<t.events.length;)t.events[k][1].end={...j},k++;Ei(t.events,N+1,0,t.events.slice(T)),t.events.length=k}}function E(b){let C=r.length;for(;C-- >b;){const v=r[C];t.containerState=v[1],v[0].exit.call(t,e)}r.length=b}function x(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Aae(e,t,r){return Pt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function O2(e){if(e===null||Xn(e)||xae(e))return 1;if(bae(e))return 2}function px(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const N1={name:"attention",resolveAll:Tae,tokenize:Iae};function Tae(e,t){let r=-1,n,i,a,s,o,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[r][1].start};N2(d,-l),N2(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:p},a={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[n][1].end={...s.start},e[r][1].start={...o.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=Er(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=Er(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=Er(u,px(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=Er(u,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=Er(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Ei(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Iae(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=O2(n);let a;return s;function s(l){return a=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===a)return e.consume(l),o;const u=e.exit("attentionSequence"),c=O2(l),d=!c||c===2&&i||r.includes(l),p=!i||i===2&&c||r.includes(n);return u._open=!!(a===42?d:d&&(i||!p)),u._close=!!(a===42?p:p&&(c||!d)),t(l)}}function N2(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Pae={name:"autolink",tokenize:Rae};function Rae(e,t,r){let n=0;return i;function i(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(m){return fi(m)?(e.consume(m),s):m===64?r(m):u(m)}function s(m){return m===43||m===45||m===46||or(m)?(n=1,o(m)):u(m)}function o(m){return m===58?(e.consume(m),n=0,l):(m===43||m===45||m===46||or(m))&&n++<32?(e.consume(m),o):(n=0,u(m))}function l(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||R1(m)?r(m):(e.consume(m),l)}function u(m){return m===64?(e.consume(m),c):yae(m)?(e.consume(m),u):r(m)}function c(m){return or(m)?d(m):r(m)}function d(m){return m===46?(e.consume(m),n=0,c):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):p(m)}function p(m){if((m===45||or(m))&&n++<63){const w=m===45?p:d;return e.consume(m),w}return r(m)}}const Hm={partial:!0,tokenize:Oae};function Oae(e,t,r){return n;function n(a){return yt(a)?Pt(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||Ye(a)?t(a):r(a)}}const PL={continuation:{tokenize:Mae},exit:Dae,name:"blockQuote",tokenize:Nae};function Nae(e,t,r){const n=this;return i;function i(s){if(s===62){const o=n.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return r(s)}function a(s){return yt(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function Mae(e,t,r){const n=this;return i;function i(s){return yt(s)?Pt(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(PL,t,r)(s)}}function Dae(e){e.exit("blockQuote")}const RL={name:"characterEscape",tokenize:Fae};function Fae(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return _ae(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const OL={name:"characterReference",tokenize:Lae};function Lae(e,t,r){const n=this;let i=0,a,s;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,s=or,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=wae,c):(e.enter("characterReferenceValue"),a=7,s=O1,c(d))}function c(d){if(d===59&&i){const p=e.exit("characterReferenceValue");return s===or&&!hx(n.sliceSerialize(p))?r(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<a?(e.consume(d),c):r(d)}}const M2={partial:!0,tokenize:Bae},D2={concrete:!0,name:"codeFenced",tokenize:jae};function jae(e,t,r){const n=this,i={partial:!0,tokenize:v};let a=0,s=0,o;return l;function l(k){return u(k)}function u(k){const T=n.events[n.events.length-1];return a=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,o=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(k)}function c(k){return k===o?(s++,e.consume(k),c):s<3?r(k):(e.exit("codeFencedFenceSequence"),yt(k)?Pt(e,d,"whitespace")(k):d(k))}function d(k){return k===null||Ye(k)?(e.exit("codeFencedFence"),n.interrupt?t(k):e.check(M2,g,C)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===null||Ye(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(k)):yt(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Pt(e,m,"whitespace")(k)):k===96&&k===o?r(k):(e.consume(k),p)}function m(k){return k===null||Ye(k)?d(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(k))}function w(k){return k===null||Ye(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(k)):k===96&&k===o?r(k):(e.consume(k),w)}function g(k){return e.attempt(i,C,_)(k)}function _(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),E}function E(k){return a>0&&yt(k)?Pt(e,x,"linePrefix",a+1)(k):x(k)}function x(k){return k===null||Ye(k)?e.check(M2,g,C)(k):(e.enter("codeFlowValue"),b(k))}function b(k){return k===null||Ye(k)?(e.exit("codeFlowValue"),x(k)):(e.consume(k),b)}function C(k){return e.exit("codeFenced"),t(k)}function v(k,T,N){let M=0;return j;function j(H){return k.enter("lineEnding"),k.consume(H),k.exit("lineEnding"),D}function D(H){return k.enter("codeFencedFence"),yt(H)?Pt(k,$,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):$(H)}function $(H){return H===o?(k.enter("codeFencedFenceSequence"),X(H)):N(H)}function X(H){return H===o?(M++,k.consume(H),X):M>=s?(k.exit("codeFencedFenceSequence"),yt(H)?Pt(k,W,"whitespace")(H):W(H)):N(H)}function W(H){return H===null||Ye(H)?(k.exit("codeFencedFence"),T(H)):N(H)}}}function Bae(e,t,r){const n=this;return i;function i(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}const Xy={name:"codeIndented",tokenize:Uae},zae={partial:!0,tokenize:$ae};function Uae(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),Pt(e,a,"linePrefix",5)(u)}function a(u){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):r(u)}function s(u){return u===null?l(u):Ye(u)?e.attempt(zae,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||Ye(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function $ae(e,t,r){const n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):Ye(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Pt(e,a,"linePrefix",5)(s)}function a(s){const o=n.events[n.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):Ye(s)?i(s):r(s)}}const Hae={name:"codeText",previous:Gae,resolve:qae,tokenize:Wae};function qae(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function Gae(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Wae(e,t,r){let n=0,i,a;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),n++,o):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?r(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(a=e.enter("codeTextSequence"),i=0,c(d)):Ye(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||Ye(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),i++,c):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(a.type="codeTextData",u(d))}}class Vae{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const i=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&Rc(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Rc(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Rc(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Rc(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Rc(this.left,r.reverse())}}}function Rc(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function NL(e){const t={};let r=-1,n,i,a,s,o,l,u;const c=new Vae(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(n=c.get(r),r&&n[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,Qae(c,r)),r=t[r],u=!0);else if(n[1]._container){for(a=r,i=void 0;a--;)if(s=c.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(s[1].type!=="linePrefix")break;i&&(n[1].end={...c.get(i)[1].start},o=c.slice(i,r),o.unshift(n),c.splice(i,r-i+1,o))}}return Ei(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Qae(e,t){const r=e.get(t)[1],n=e.get(t)[2];let i=t-1;const a=[],s=r._tokenizer||n.parser[r.contentType](r.start),o=s.events,l=[],u={};let c,d,p=-1,m=r,w=0,g=0;const _=[g];for(;m;){for(;e.get(++i)[1]!==m;);a.push(i),m._tokenizer||(c=n.sliceStream(m),m.next||c.push(null),d&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=m,m=m.next}for(m=r;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(g=p+1,_.push(g),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):_.pop(),p=_.length;p--;){const E=o.slice(_[p],_[p+1]),x=a.pop();l.push([x,x+E.length-1]),e.splice(x,2,E)}for(l.reverse(),p=-1;++p<l.length;)u[w+l[p][0]]=w+l[p][1],w+=l[p][1]-l[p][0]-1;return u}const Kae={resolve:Xae,tokenize:Jae},Yae={partial:!0,tokenize:Zae};function Xae(e){return NL(e),e}function Jae(e,t){let r;return n;function n(o){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):Ye(o)?e.check(Yae,s,a)(o):(e.consume(o),i)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function Zae(e,t,r){const n=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Pt(e,a,"linePrefix")}function a(s){if(s===null||Ye(s))return r(s);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function ML(e,t,r,n,i,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(E){return E===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(E),e.exit(a),p):E===null||E===32||E===41||R1(E)?r(E):(e.enter(n),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),g(E))}function p(E){return E===62?(e.enter(a),e.consume(E),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===62?(e.exit("chunkString"),e.exit(o),p(E)):E===null||E===60||Ye(E)?r(E):(e.consume(E),E===92?w:m)}function w(E){return E===60||E===62||E===92?(e.consume(E),m):m(E)}function g(E){return!c&&(E===null||E===41||Xn(E))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(n),t(E)):c<u&&E===40?(e.consume(E),c++,g):E===41?(e.consume(E),c--,g):E===null||E===32||E===40||R1(E)?r(E):(e.consume(E),E===92?_:g)}function _(E){return E===40||E===41||E===92?(e.consume(E),g):g(E)}}function DL(e,t,r,n,i,a){const s=this;let o=0,l;return u;function u(m){return e.enter(n),e.enter(i),e.consume(m),e.exit(i),e.enter(a),c}function c(m){return o>999||m===null||m===91||m===93&&!l||m===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(m):m===93?(e.exit(a),e.enter(i),e.consume(m),e.exit(i),e.exit(n),t):Ye(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||Ye(m)||o++>999?(e.exit("chunkString"),c(m)):(e.consume(m),l||(l=!yt(m)),m===92?p:d)}function p(m){return m===91||m===92||m===93?(e.consume(m),o++,d):d(m)}}function FL(e,t,r,n,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(n),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):r(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(n),t):(e.enter(a),u(p))}function u(p){return p===s?(e.exit(a),l(s)):p===null?r(p):Ye(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Pt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||Ye(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?d:c)}function d(p){return p===s||p===92?(e.consume(p),c):c(p)}}function $c(e,t){let r;return n;function n(i){return Ye(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):yt(i)?Pt(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const eoe={name:"definition",tokenize:noe},toe={partial:!0,tokenize:roe};function noe(e,t,r){const n=this;let i;return a;function a(m){return e.enter("definition"),s(m)}function s(m){return DL.call(n,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return i=ml(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):r(m)}function l(m){return Xn(m)?$c(e,u)(m):u(m)}function u(m){return ML(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function c(m){return e.attempt(toe,d,d)(m)}function d(m){return yt(m)?Pt(e,p,"whitespace")(m):p(m)}function p(m){return m===null||Ye(m)?(e.exit("definition"),n.parser.defined.push(i),t(m)):r(m)}}function roe(e,t,r){return n;function n(o){return Xn(o)?$c(e,i)(o):r(o)}function i(o){return FL(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return yt(o)?Pt(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Ye(o)?t(o):r(o)}}const ioe={name:"hardBreakEscape",tokenize:aoe};function aoe(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ye(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const ooe={name:"headingAtx",resolve:soe,tokenize:loe};function soe(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Ei(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function loe(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&n++<6?(e.consume(c),s):c===null||Xn(c)?(e.exit("atxHeadingSequence"),o(c)):r(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Ye(c)?(e.exit("atxHeading"),t(c)):yt(c)?Pt(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||Xn(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const uoe=["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"],F2=["pre","script","style","textarea"],coe={concrete:!0,name:"htmlFlow",resolveTo:hoe,tokenize:poe},foe={partial:!0,tokenize:goe},doe={partial:!0,tokenize:moe};function hoe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function poe(e,t,r){const n=this;let i,a,s,o,l;return u;function u(B){return c(B)}function c(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),d}function d(B){return B===33?(e.consume(B),p):B===47?(e.consume(B),a=!0,g):B===63?(e.consume(B),i=3,n.interrupt?t:F):fi(B)?(e.consume(B),s=String.fromCharCode(B),_):r(B)}function p(B){return B===45?(e.consume(B),i=2,m):B===91?(e.consume(B),i=5,o=0,w):fi(B)?(e.consume(B),i=4,n.interrupt?t:F):r(B)}function m(B){return B===45?(e.consume(B),n.interrupt?t:F):r(B)}function w(B){const se="CDATA[";return B===se.charCodeAt(o++)?(e.consume(B),o===se.length?n.interrupt?t:$:w):r(B)}function g(B){return fi(B)?(e.consume(B),s=String.fromCharCode(B),_):r(B)}function _(B){if(B===null||B===47||B===62||Xn(B)){const se=B===47,de=s.toLowerCase();return!se&&!a&&F2.includes(de)?(i=1,n.interrupt?t(B):$(B)):uoe.includes(s.toLowerCase())?(i=6,se?(e.consume(B),E):n.interrupt?t(B):$(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?x(B):b(B))}return B===45||or(B)?(e.consume(B),s+=String.fromCharCode(B),_):r(B)}function E(B){return B===62?(e.consume(B),n.interrupt?t:$):r(B)}function x(B){return yt(B)?(e.consume(B),x):j(B)}function b(B){return B===47?(e.consume(B),j):B===58||B===95||fi(B)?(e.consume(B),C):yt(B)?(e.consume(B),b):j(B)}function C(B){return B===45||B===46||B===58||B===95||or(B)?(e.consume(B),C):v(B)}function v(B){return B===61?(e.consume(B),k):yt(B)?(e.consume(B),v):b(B)}function k(B){return B===null||B===60||B===61||B===62||B===96?r(B):B===34||B===39?(e.consume(B),l=B,T):yt(B)?(e.consume(B),k):N(B)}function T(B){return B===l?(e.consume(B),l=null,M):B===null||Ye(B)?r(B):(e.consume(B),T)}function N(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||Xn(B)?v(B):(e.consume(B),N)}function M(B){return B===47||B===62||yt(B)?b(B):r(B)}function j(B){return B===62?(e.consume(B),D):r(B)}function D(B){return B===null||Ye(B)?$(B):yt(B)?(e.consume(B),D):r(B)}function $(B){return B===45&&i===2?(e.consume(B),V):B===60&&i===1?(e.consume(B),K):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),F):B===93&&i===5?(e.consume(B),q):Ye(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(foe,z,X)(B)):B===null||Ye(B)?(e.exit("htmlFlowData"),X(B)):(e.consume(B),$)}function X(B){return e.check(doe,W,z)(B)}function W(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),H}function H(B){return B===null||Ye(B)?X(B):(e.enter("htmlFlowData"),$(B))}function V(B){return B===45?(e.consume(B),F):$(B)}function K(B){return B===47?(e.consume(B),s="",Y):$(B)}function Y(B){if(B===62){const se=s.toLowerCase();return F2.includes(se)?(e.consume(B),G):$(B)}return fi(B)&&s.length<8?(e.consume(B),s+=String.fromCharCode(B),Y):$(B)}function q(B){return B===93?(e.consume(B),F):$(B)}function F(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),F):$(B)}function G(B){return B===null||Ye(B)?(e.exit("htmlFlowData"),z(B)):(e.consume(B),G)}function z(B){return e.exit("htmlFlow"),t(B)}}function moe(e,t,r){const n=this;return i;function i(s){return Ye(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):r(s)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function goe(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Hm,t,r)}}const voe={name:"htmlText",tokenize:yoe};function yoe(e,t,r){const n=this;let i,a,s;return o;function o(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),l}function l(F){return F===33?(e.consume(F),u):F===47?(e.consume(F),v):F===63?(e.consume(F),b):fi(F)?(e.consume(F),N):r(F)}function u(F){return F===45?(e.consume(F),c):F===91?(e.consume(F),a=0,w):fi(F)?(e.consume(F),x):r(F)}function c(F){return F===45?(e.consume(F),m):r(F)}function d(F){return F===null?r(F):F===45?(e.consume(F),p):Ye(F)?(s=d,K(F)):(e.consume(F),d)}function p(F){return F===45?(e.consume(F),m):d(F)}function m(F){return F===62?V(F):F===45?p(F):d(F)}function w(F){const G="CDATA[";return F===G.charCodeAt(a++)?(e.consume(F),a===G.length?g:w):r(F)}function g(F){return F===null?r(F):F===93?(e.consume(F),_):Ye(F)?(s=g,K(F)):(e.consume(F),g)}function _(F){return F===93?(e.consume(F),E):g(F)}function E(F){return F===62?V(F):F===93?(e.consume(F),E):g(F)}function x(F){return F===null||F===62?V(F):Ye(F)?(s=x,K(F)):(e.consume(F),x)}function b(F){return F===null?r(F):F===63?(e.consume(F),C):Ye(F)?(s=b,K(F)):(e.consume(F),b)}function C(F){return F===62?V(F):b(F)}function v(F){return fi(F)?(e.consume(F),k):r(F)}function k(F){return F===45||or(F)?(e.consume(F),k):T(F)}function T(F){return Ye(F)?(s=T,K(F)):yt(F)?(e.consume(F),T):V(F)}function N(F){return F===45||or(F)?(e.consume(F),N):F===47||F===62||Xn(F)?M(F):r(F)}function M(F){return F===47?(e.consume(F),V):F===58||F===95||fi(F)?(e.consume(F),j):Ye(F)?(s=M,K(F)):yt(F)?(e.consume(F),M):V(F)}function j(F){return F===45||F===46||F===58||F===95||or(F)?(e.consume(F),j):D(F)}function D(F){return F===61?(e.consume(F),$):Ye(F)?(s=D,K(F)):yt(F)?(e.consume(F),D):M(F)}function $(F){return F===null||F===60||F===61||F===62||F===96?r(F):F===34||F===39?(e.consume(F),i=F,X):Ye(F)?(s=$,K(F)):yt(F)?(e.consume(F),$):(e.consume(F),W)}function X(F){return F===i?(e.consume(F),i=void 0,H):F===null?r(F):Ye(F)?(s=X,K(F)):(e.consume(F),X)}function W(F){return F===null||F===34||F===39||F===60||F===61||F===96?r(F):F===47||F===62||Xn(F)?M(F):(e.consume(F),W)}function H(F){return F===47||F===62||Xn(F)?M(F):r(F)}function V(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),t):r(F)}function K(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),Y}function Y(F){return yt(F)?Pt(e,q,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):q(F)}function q(F){return e.enter("htmlTextData"),s(F)}}const mx={name:"labelEnd",resolveAll:xoe,resolveTo:Eoe,tokenize:Soe},woe={tokenize:Coe},_oe={tokenize:koe},boe={tokenize:Aoe};function xoe(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&Ei(e,0,e.length,r),e}function Eoe(e,t){let r=e.length,n=0,i,a,s,o;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(s=r);const l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[a+n+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=Er(o,e.slice(a+1,a+n+3)),o=Er(o,[["enter",c,t]]),o=Er(o,px(t.parser.constructs.insideSpan.null,e.slice(a+n+4,s-3),t)),o=Er(o,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),o=Er(o,e.slice(s+1)),o=Er(o,[["exit",l,t]]),Ei(e,a,e.length,o),e}function Soe(e,t,r){const n=this;let i=n.events.length,a,s;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return o;function o(p){return a?a._inactive?d(p):(s=n.parser.defined.includes(ml(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):r(p)}function l(p){return p===40?e.attempt(woe,c,s?c:d)(p):p===91?e.attempt(_oe,c,s?u:d)(p):s?c(p):d(p)}function u(p){return e.attempt(boe,c,d)(p)}function c(p){return t(p)}function d(p){return a._balanced=!0,r(p)}}function Coe(e,t,r){return n;function n(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return Xn(d)?$c(e,a)(d):a(d)}function a(d){return d===41?c(d):ML(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Xn(d)?$c(e,l)(d):c(d)}function o(d){return r(d)}function l(d){return d===34||d===39||d===40?FL(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return Xn(d)?$c(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):r(d)}}function koe(e,t,r){const n=this;return i;function i(o){return DL.call(n,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return n.parser.defined.includes(ml(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function Aoe(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const Toe={name:"labelStartImage",resolveAll:mx.resolveAll,tokenize:Ioe};function Ioe(e,t,r){const n=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):r(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const Poe={name:"labelStartLink",resolveAll:mx.resolveAll,tokenize:Roe};function Roe(e,t,r){const n=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const Jy={name:"lineEnding",tokenize:Ooe};function Ooe(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Pt(e,t,"linePrefix")}}const Sp={name:"thematicBreak",tokenize:Noe};function Noe(e,t,r){let n=0,i;return a;function a(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,o(u)}function o(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||Ye(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),yt(u)?Pt(e,o,"whitespace")(u):o(u))}}const Hn={continuation:{tokenize:Loe},exit:Boe,name:"list",tokenize:Foe},Moe={partial:!0,tokenize:zoe},Doe={partial:!0,tokenize:joe};function Foe(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(m){const w=n.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!n.containerState.marker||m===n.containerState.marker:O1(m)){if(n.containerState.type||(n.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Sp,r,u)(m):u(m);if(!n.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return r(m)}function l(m){return O1(m)&&++s<10?(e.consume(m),l):(!n.interrupt||s<2)&&(n.containerState.marker?m===n.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),u(m)):r(m)}function u(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||m,e.check(Hm,n.interrupt?r:c,e.attempt(Moe,p,d))}function c(m){return n.containerState.initialBlankLine=!0,a++,p(m)}function d(m){return yt(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),p):r(m)}function p(m){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function Loe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(Hm,i,a);function i(o){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Pt(e,t,"listItemIndent",n.containerState.size+1)(o)}function a(o){return n.containerState.furtherBlankLines||!yt(o)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(o)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Doe,t,s)(o))}function s(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,Pt(e,e.attempt(Hn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function joe(e,t,r){const n=this;return Pt(e,i,"listItemIndent",n.containerState.size+1);function i(a){const s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(a):r(a)}}function Boe(e){e.exit(this.containerState.type)}function zoe(e,t,r){const n=this;return Pt(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=n.events[n.events.length-1];return!yt(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const L2={name:"setextUnderline",resolveTo:Uoe,tokenize:$oe};function Uoe(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function $oe(e,t,r){const n=this;let i;return a;function a(u){let c=n.events.length,d;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){d=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||d)?(e.enter("setextHeadingLine"),i=u,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),yt(u)?Pt(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Ye(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const Hoe={tokenize:qoe};function qoe(e){const t=this,r=e.attempt(Hm,n,e.attempt(this.parser.constructs.flowInitial,i,Pt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Kae,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const Goe={resolveAll:jL()},Woe=LL("string"),Voe=LL("text");function LL(e){return{resolveAll:jL(e==="text"?Qoe:void 0),tokenize:t};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,s,o);return s;function s(c){return u(c)?a(c):o(c)}function o(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const d=i[c];let p=-1;if(d)for(;++p<d.length;){const m=d[p];if(!m.previous||m.previous.call(n,n.previous))return!0}return!1}}}function jL(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function Qoe(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let a=i.length,s=-1,o=0,l;for(;a--;){const u=i[a];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){a++;break}}if(o){const u={type:r===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:n.start._bufferIndex+s,_index:n.start._index+a,line:n.end.line,column:n.end.column-o,offset:n.end.offset-o},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}const Koe={42:Hn,43:Hn,45:Hn,48:Hn,49:Hn,50:Hn,51:Hn,52:Hn,53:Hn,54:Hn,55:Hn,56:Hn,57:Hn,62:PL},Yoe={91:eoe},Xoe={[-2]:Xy,[-1]:Xy,32:Xy},Joe={35:ooe,42:Sp,45:[L2,Sp],60:coe,61:L2,95:Sp,96:D2,126:D2},Zoe={38:OL,92:RL},ese={[-5]:Jy,[-4]:Jy,[-3]:Jy,33:Toe,38:OL,42:N1,60:[Pae,voe],91:Poe,92:[ioe,RL],93:mx,95:N1,96:Hae},tse={null:[N1,Goe]},nse={null:[42,95]},rse={null:[]},ise=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:nse,contentInitial:Yoe,disable:rse,document:Koe,flow:Joe,flowInitial:Xoe,insideSpan:tse,string:Zoe,text:ese},Symbol.toStringTag,{value:"Module"}));function ase(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},a=[];let s=[],o=[];const l={attempt:T(v),check:T(k),consume:x,enter:b,exit:C,interrupt:T(k,{interrupt:!0})},u={code:null,containerState:{},defineSkip:g,events:[],now:w,parser:e,previous:null,sliceSerialize:p,sliceStream:m,write:d};let c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function d(D){return s=Er(s,D),_(),s[s.length-1]!==null?[]:(N(t,0),u.events=px(a,u.events,u),u.events)}function p(D,$){return sse(m(D),$)}function m(D){return ose(s,D)}function w(){const{_bufferIndex:D,_index:$,line:X,column:W,offset:H}=n;return{_bufferIndex:D,_index:$,line:X,column:W,offset:H}}function g(D){i[D.line]=D.column,j()}function _(){let D;for(;n._index<s.length;){const $=s[n._index];if(typeof $=="string")for(D=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===D&&n._bufferIndex<$.length;)E($.charCodeAt(n._bufferIndex));else E($)}}function E(D){c=c(D)}function x(D){Ye(D)?(n.line++,n.column=1,n.offset+=D===-3?2:1,j()):D!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=D}function b(D,$){const X=$||{};return X.type=D,X.start=w(),u.events.push(["enter",X,u]),o.push(X),X}function C(D){const $=o.pop();return $.end=w(),u.events.push(["exit",$,u]),$}function v(D,$){N(D,$.from)}function k(D,$){$.restore()}function T(D,$){return X;function X(W,H,V){let K,Y,q,F;return Array.isArray(W)?z(W):"tokenize"in W?z([W]):G(W);function G(me){return Ee;function Ee(Ie){const Ne=Ie!==null&&me[Ie],Le=Ie!==null&&me.null,He=[...Array.isArray(Ne)?Ne:Ne?[Ne]:[],...Array.isArray(Le)?Le:Le?[Le]:[]];return z(He)(Ie)}}function z(me){return K=me,Y=0,me.length===0?V:B(me[Y])}function B(me){return Ee;function Ee(Ie){return F=M(),q=me,me.partial||(u.currentConstruct=me),me.name&&u.parser.constructs.disable.null.includes(me.name)?de():me.tokenize.call($?Object.assign(Object.create(u),$):u,l,se,de)(Ie)}}function se(me){return D(q,F),H}function de(me){return F.restore(),++Y<K.length?B(K[Y]):V}}}function N(D,$){D.resolveAll&&!a.includes(D)&&a.push(D),D.resolve&&Ei(u.events,$,u.events.length-$,D.resolve(u.events.slice($),u)),D.resolveTo&&(u.events=D.resolveTo(u.events,u))}function M(){const D=w(),$=u.previous,X=u.currentConstruct,W=u.events.length,H=Array.from(o);return{from:W,restore:V};function V(){n=D,u.previous=$,u.currentConstruct=X,u.events.length=W,o=H,j()}}function j(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function ose(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(r===i)s=[e[r].slice(n,a)];else{if(s=e.slice(r,i),n>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(n):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function sse(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
`;break}case-3:{s=`\r
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,n.push(s)}return n.join("")}function lse(e){const n={constructs:mae([ise,...(e||{}).extensions||[]]),content:i(Eae),defined:[],document:i(Cae),flow:i(Hoe),lazy:{},string:i(Woe),text:i(Voe)};return n;function i(a){return s;function s(o){return ase(n,a,o)}}}function use(e){for(;!NL(e););return e}const j2=/[\0\t\n\r]/g;function cse(){let e=1,t="",r=!0,n;return i;function i(a,s,o){const l=[];let u,c,d,p,m;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),d=0,t="",r&&(a.charCodeAt(0)===65279&&d++,r=void 0);d<a.length;){if(j2.lastIndex=d,u=j2.exec(a),p=u&&u.index!==void 0?u.index:a.length,m=a.charCodeAt(p),!u){t=a.slice(d);break}if(m===10&&d===p&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),d<p&&(l.push(a.slice(d,p)),e+=p-d),m){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}d=p+1}return o&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}const fse=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function dse(e){return e.replace(fse,hse)}function hse(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return IL(r.slice(a?2:1),a?16:10)}return hx(r)||e}function Hc(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?B2(e.position):"start"in e||"end"in e?B2(e):"line"in e||"column"in e?M1(e):""}function M1(e){return z2(e&&e.line)+":"+z2(e&&e.column)}function B2(e){return M1(e&&e.start)+"-"+M1(e&&e.end)}function z2(e){return e&&typeof e=="number"?e:1}const BL={}.hasOwnProperty;function pse(e,t,r){return typeof t!="string"&&(r=t,t=void 0),mse(r)(use(lse(r).document().write(cse()(e,t,!0))))}function mse(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Ht),autolinkProtocol:M,autolinkEmail:M,atxHeading:a(rt),blockQuote:a(Le),characterEscape:M,characterReference:M,codeFenced:a(He),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(He,s),codeText:a(Oe,s),codeTextData:M,data:M,codeFlowValue:M,definition:a(Fe),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(We),hardBreakEscape:a(ot),hardBreakTrailing:a(ot),htmlFlow:a(st,s),htmlFlowData:M,htmlText:a(st,s),htmlTextData:M,image:a(At),label:s,link:a(Ht),listItem:a(ct),listItemValue:p,listOrdered:a(gt,d),listUnordered:a(gt),paragraph:a(we),reference:B,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(rt),strong:a(et),thematicBreak:a(ht)},exit:{atxHeading:l(),atxHeadingSequence:v,autolink:l(),autolinkEmail:Ne,autolinkProtocol:Ie,blockQuote:l(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:me,characterReference:Ee,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:w,codeFlowValue:j,codeIndented:l(E),codeText:l(H),codeTextData:j,data:j,definition:l(),definitionDestinationString:C,definitionLabelString:x,definitionTitleString:b,emphasis:l(),hardBreakEscape:l($),hardBreakTrailing:l($),htmlFlow:l(X),htmlFlowData:j,htmlText:l(W),htmlTextData:j,image:l(K),label:q,labelText:Y,lineEnding:D,link:l(V),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:se,resourceDestinationString:F,resourceTitleString:G,resource:z,setextHeading:l(N),setextHeadingLineSequence:T,setextHeadingText:k,strong:l(),thematicBreak:l()}};zL(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(pe){let L={type:"root",children:[]};const I={stack:[L],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:c,data:r},R=[];let Q=-1;for(;++Q<pe.length;)if(pe[Q][1].type==="listOrdered"||pe[Q][1].type==="listUnordered")if(pe[Q][0]==="enter")R.push(Q);else{const re=R.pop();Q=i(pe,re,Q)}for(Q=-1;++Q<pe.length;){const re=t[pe[Q][0]];BL.call(re,pe[Q][1].type)&&re[pe[Q][1].type].call(Object.assign({sliceSerialize:pe[Q][2].sliceSerialize},I),pe[Q][1])}if(I.tokenStack.length>0){const re=I.tokenStack[I.tokenStack.length-1];(re[1]||U2).call(I,void 0,re[0])}for(L.position={start:$a(pe.length>0?pe[0][1].start:{line:1,column:1,offset:0}),end:$a(pe.length>0?pe[pe.length-2][1].end:{line:1,column:1,offset:0})},Q=-1;++Q<t.transforms.length;)L=t.transforms[Q](L)||L;return L}function i(pe,L,I){let R=L-1,Q=-1,re=!1,fe,ge,Ve,ft;for(;++R<=I;){const ae=pe[R];switch(ae[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ae[0]==="enter"?Q++:Q--,ft=void 0;break}case"lineEndingBlank":{ae[0]==="enter"&&(fe&&!ft&&!Q&&!Ve&&(Ve=R),ft=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ft=void 0}if(!Q&&ae[0]==="enter"&&ae[1].type==="listItemPrefix"||Q===-1&&ae[0]==="exit"&&(ae[1].type==="listUnordered"||ae[1].type==="listOrdered")){if(fe){let le=R;for(ge=void 0;le--;){const Me=pe[le];if(Me[1].type==="lineEnding"||Me[1].type==="lineEndingBlank"){if(Me[0]==="exit")continue;ge&&(pe[ge][1].type="lineEndingBlank",re=!0),Me[1].type="lineEnding",ge=le}else if(!(Me[1].type==="linePrefix"||Me[1].type==="blockQuotePrefix"||Me[1].type==="blockQuotePrefixWhitespace"||Me[1].type==="blockQuoteMarker"||Me[1].type==="listItemIndent"))break}Ve&&(!ge||Ve<ge)&&(fe._spread=!0),fe.end=Object.assign({},ge?pe[ge][1].start:ae[1].end),pe.splice(ge||R,0,["exit",fe,ae[2]]),R++,I++}if(ae[1].type==="listItemPrefix"){const le={type:"listItem",_spread:!1,start:Object.assign({},ae[1].start),end:void 0};fe=le,pe.splice(R,0,["enter",le,ae[2]]),R++,I++,Ve=void 0,ft=!0}}}return pe[L][1]._spread=re,I}function a(pe,L){return I;function I(R){o.call(this,pe(R),R),L&&L.call(this,R)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(pe,L,I){this.stack[this.stack.length-1].children.push(pe),this.stack.push(pe),this.tokenStack.push([L,I||void 0]),pe.position={start:$a(L.start),end:void 0}}function l(pe){return L;function L(I){pe&&pe.call(this,I),u.call(this,I)}}function u(pe,L){const I=this.stack.pop(),R=this.tokenStack.pop();if(R)R[0].type!==pe.type&&(L?L.call(this,pe,R[0]):(R[1]||U2).call(this,pe,R[0]));else throw new Error("Cannot close `"+pe.type+"` ("+Hc({start:pe.start,end:pe.end})+"): its not open");I.position.end=$a(pe.end)}function c(){return hae(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(pe){if(this.data.expectingFirstListItemValue){const L=this.stack[this.stack.length-2];L.start=Number.parseInt(this.sliceSerialize(pe),10),this.data.expectingFirstListItemValue=void 0}}function m(){const pe=this.resume(),L=this.stack[this.stack.length-1];L.lang=pe}function w(){const pe=this.resume(),L=this.stack[this.stack.length-1];L.meta=pe}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const pe=this.resume(),L=this.stack[this.stack.length-1];L.value=pe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const pe=this.resume(),L=this.stack[this.stack.length-1];L.value=pe.replace(/(\r?\n|\r)$/g,"")}function x(pe){const L=this.resume(),I=this.stack[this.stack.length-1];I.label=L,I.identifier=ml(this.sliceSerialize(pe)).toLowerCase()}function b(){const pe=this.resume(),L=this.stack[this.stack.length-1];L.title=pe}function C(){const pe=this.resume(),L=this.stack[this.stack.length-1];L.url=pe}function v(pe){const L=this.stack[this.stack.length-1];if(!L.depth){const I=this.sliceSerialize(pe).length;L.depth=I}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function T(pe){const L=this.stack[this.stack.length-1];L.depth=this.sliceSerialize(pe).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function M(pe){const I=this.stack[this.stack.length-1].children;let R=I[I.length-1];(!R||R.type!=="text")&&(R=it(),R.position={start:$a(pe.start),end:void 0},I.push(R)),this.stack.push(R)}function j(pe){const L=this.stack.pop();L.value+=this.sliceSerialize(pe),L.position.end=$a(pe.end)}function D(pe){const L=this.stack[this.stack.length-1];if(this.data.atHardBreak){const I=L.children[L.children.length-1];I.position.end=$a(pe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(L.type)&&(M.call(this,pe),j.call(this,pe))}function $(){this.data.atHardBreak=!0}function X(){const pe=this.resume(),L=this.stack[this.stack.length-1];L.value=pe}function W(){const pe=this.resume(),L=this.stack[this.stack.length-1];L.value=pe}function H(){const pe=this.resume(),L=this.stack[this.stack.length-1];L.value=pe}function V(){const pe=this.stack[this.stack.length-1];if(this.data.inReference){const L=this.data.referenceType||"shortcut";pe.type+="Reference",pe.referenceType=L,delete pe.url,delete pe.title}else delete pe.identifier,delete pe.label;this.data.referenceType=void 0}function K(){const pe=this.stack[this.stack.length-1];if(this.data.inReference){const L=this.data.referenceType||"shortcut";pe.type+="Reference",pe.referenceType=L,delete pe.url,delete pe.title}else delete pe.identifier,delete pe.label;this.data.referenceType=void 0}function Y(pe){const L=this.sliceSerialize(pe),I=this.stack[this.stack.length-2];I.label=dse(L),I.identifier=ml(L).toLowerCase()}function q(){const pe=this.stack[this.stack.length-1],L=this.resume(),I=this.stack[this.stack.length-1];if(this.data.inReference=!0,I.type==="link"){const R=pe.children;I.children=R}else I.alt=L}function F(){const pe=this.resume(),L=this.stack[this.stack.length-1];L.url=pe}function G(){const pe=this.resume(),L=this.stack[this.stack.length-1];L.title=pe}function z(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function se(pe){const L=this.resume(),I=this.stack[this.stack.length-1];I.label=L,I.identifier=ml(this.sliceSerialize(pe)).toLowerCase(),this.data.referenceType="full"}function de(pe){this.data.characterReferenceType=pe.type}function me(pe){const L=this.sliceSerialize(pe),I=this.data.characterReferenceType;let R;I?(R=IL(L,I==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):R=hx(L);const Q=this.stack[this.stack.length-1];Q.value+=R}function Ee(pe){const L=this.stack.pop();L.position.end=$a(pe.end)}function Ie(pe){j.call(this,pe);const L=this.stack[this.stack.length-1];L.url=this.sliceSerialize(pe)}function Ne(pe){j.call(this,pe);const L=this.stack[this.stack.length-1];L.url="mailto:"+this.sliceSerialize(pe)}function Le(){return{type:"blockquote",children:[]}}function He(){return{type:"code",lang:null,meta:null,value:""}}function Oe(){return{type:"inlineCode",value:""}}function Fe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function We(){return{type:"emphasis",children:[]}}function rt(){return{type:"heading",depth:0,children:[]}}function ot(){return{type:"break"}}function st(){return{type:"html",value:""}}function At(){return{type:"image",title:null,url:"",alt:null}}function Ht(){return{type:"link",title:null,url:"",children:[]}}function gt(pe){return{type:"list",ordered:pe.type==="listOrdered",start:null,spread:pe._spread,children:[]}}function ct(pe){return{type:"listItem",spread:pe._spread,checked:null,children:[]}}function we(){return{type:"paragraph",children:[]}}function et(){return{type:"strong",children:[]}}function it(){return{type:"text",value:""}}function ht(){return{type:"thematicBreak"}}}function $a(e){return{line:e.line,column:e.column,offset:e.offset}}function zL(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?zL(e,n):gse(e,n)}}function gse(e,t){let r;for(r in t)if(BL.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function U2(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Hc({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Hc({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Hc({start:t.start,end:t.end})+") is still open")}function vse(e){const t=this;t.parser=r;function r(n){return pse(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function yse(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function wse(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
`}]}function _se(e,t){const r=t.value?t.value+`
`:"",n={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(n.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function bse(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xse(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ese(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=wu(n.toLowerCase()),a=e.footnoteOrder.indexOf(n);let s,o=e.footnoteCounts.get(n);o===void 0?(o=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(n,o);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function Sse(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Cse(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function UL(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=n:i.push({type:"text",value:n}),i}function kse(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return UL(e,t);const i={src:wu(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Ase(e,t){const r={src:wu(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function Tse(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function Ise(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return UL(e,t);const i={href:wu(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Pse(e,t){const r={href:wu(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Rse(e,t,r){const n=e.all(t),i=r?Ose(r):$L(t),a={},s=[];if(typeof t.checked=="boolean"){const c=n[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},n.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<n.length;){const c=n[o];(i||o!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
`}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}const l=n[n.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
`});const u={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,u),e.applyData(t,u)}function Ose(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=$L(r[n])}return t}function $L(e){const t=e.spread;return t??e.children.length>1}function Nse(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<n.length;){const s=n[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,a),e.applyData(t,a)}function Mse(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Dse(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function Fse(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const HL=GL("end"),qL=GL("start");function GL(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Lse(e){const t=qL(e),r=HL(e);if(t&&r)return{start:t,end:r}}function jse(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),i.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=qL(t.children[1]),l=HL(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Bse(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<o;){const d=t.children[l],p={},m=s?s[l]:void 0;m&&(p.align=m);let w={type:"element",tagName:a,properties:p,children:[]};d&&(w.children=e.all(d),e.patch(d,w),w=e.applyData(d,w)),u.push(w)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function zse(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const $2=9,H2=32;function Use(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const a=[];for(;n;)a.push(q2(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(q2(t.slice(i),i>0,!1)),a.join("")}function q2(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===$2||a===H2;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===$2||a===H2;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function $se(e,t){const r={type:"text",value:Use(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Hse(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const qse={blockquote:yse,break:wse,code:_se,delete:bse,emphasis:xse,footnoteReference:Ese,heading:Sse,html:Cse,imageReference:kse,image:Ase,inlineCode:Tse,linkReference:Ise,link:Pse,listItem:Rse,list:Nse,paragraph:Mse,root:Dse,strong:Fse,table:jse,tableCell:zse,tableRow:Bse,text:$se,thematicBreak:Hse,toml:Wh,yaml:Wh,definition:Wh,footnoteDefinition:Wh};function Wh(){}const WL=-1,qm=0,qc=1,em=2,gx=3,vx=4,yx=5,wx=6,VL=7,QL=8,G2=typeof self=="object"?self:globalThis,Gse=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case qm:case WL:return r(s,i);case qc:{const o=r([],i);for(const l of s)o.push(n(l));return o}case em:{const o=r({},i);for(const[l,u]of s)o[n(l)]=n(u);return o}case gx:return r(new Date(s),i);case vx:{const{source:o,flags:l}=s;return r(new RegExp(o,l),i)}case yx:{const o=r(new Map,i);for(const[l,u]of s)o.set(n(l),n(u));return o}case wx:{const o=r(new Set,i);for(const l of s)o.add(n(l));return o}case VL:{const{name:o,message:l}=s;return r(new G2[o](l),i)}case QL:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return r(new DataView(o),s)}}return r(new G2[a](s),i)};return n},W2=e=>Gse(new Map,e)(0),rl="",{toString:Wse}={},{keys:Vse}=Object,Oc=e=>{const t=typeof e;if(t!=="object"||!e)return[qm,t];const r=Wse.call(e).slice(8,-1);switch(r){case"Array":return[qc,rl];case"Object":return[em,rl];case"Date":return[gx,rl];case"RegExp":return[vx,rl];case"Map":return[yx,rl];case"Set":return[wx,rl];case"DataView":return[qc,r]}return r.includes("Array")?[qc,r]:r.includes("Error")?[VL,r]:[em,r]},Vh=([e,t])=>e===qm&&(t==="function"||t==="symbol"),Qse=(e,t,r,n)=>{const i=(s,o)=>{const l=n.push(s)-1;return r.set(o,l),l},a=s=>{if(r.has(s))return r.get(s);let[o,l]=Oc(s);switch(o){case qm:{let c=s;switch(l){case"bigint":o=QL,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([WL],s)}return i([o,c],s)}case qc:{if(l){let p=s;return l==="DataView"?p=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(s)),i([l,[...p]],s)}const c=[],d=i([o,c],s);for(const p of s)c.push(a(p));return d}case em:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],d=i([o,c],s);for(const p of Vse(s))(e||!Vh(Oc(s[p])))&&c.push([a(p),a(s[p])]);return d}case gx:return i([o,s.toISOString()],s);case vx:{const{source:c,flags:d}=s;return i([o,{source:c,flags:d}],s)}case yx:{const c=[],d=i([o,c],s);for(const[p,m]of s)(e||!(Vh(Oc(p))||Vh(Oc(m))))&&c.push([a(p),a(m)]);return d}case wx:{const c=[],d=i([o,c],s);for(const p of s)(e||!Vh(Oc(p)))&&c.push(a(p));return d}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},V2=(e,{json:t,lossy:r}={})=>{const n=[];return Qse(!(t||r),!!t,new Map,n)(e),n},tm=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?W2(V2(e,t)):structuredClone(e):(e,t)=>W2(V2(e,t));function Kse(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Yse(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Xse(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Kse,n=e.options.footnoteBackLabel||Yse,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),d=String(u.identifier).toUpperCase(),p=wu(d.toLowerCase());let m=0;const w=[],g=e.footnoteCounts.get(d);for(;g!==void 0&&++m<=g;){w.length>0&&w.push({type:"text",value:" "});let x=typeof r=="string"?r:r(l,m);typeof x=="string"&&(x={type:"text",value:x}),w.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,m),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const _=c[c.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const x=_.children[_.children.length-1];x&&x.type==="text"?x.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...w)}else c.push(...w);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,E),o.push(E)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...tm(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
`}]}}const KL=function(e){if(e==null)return tle;if(typeof e=="function")return Gm(e);if(typeof e=="object")return Array.isArray(e)?Jse(e):Zse(e);if(typeof e=="string")return ele(e);throw new Error("Expected function, string, or object as test")};function Jse(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=KL(e[r]);return Gm(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Zse(e){const t=e;return Gm(r);function r(n){const i=n;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function ele(e){return Gm(t);function t(r){return r&&r.type===e}}function Gm(e){return t;function t(r,n,i){return!!(nle(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function tle(){return!0}function nle(e){return e!==null&&typeof e=="object"&&"type"in e}const YL=[],rle=!0,Q2=!1,ile="skip";function ale(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;const a=KL(i),s=n?-1:1;o(e,void 0,[])();function o(l,u,c){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const m=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(m?"<"+m+">":""))+")"})}return p;function p(){let m=YL,w,g,_;if((!t||a(l,u,c[c.length-1]||void 0))&&(m=ole(r(l,c)),m[0]===Q2))return m;if("children"in l&&l.children){const E=l;if(E.children&&m[0]!==ile)for(g=(n?E.children.length:-1)+s,_=c.concat(E);g>-1&&g<E.children.length;){const x=E.children[g];if(w=o(x,g,_)(),w[0]===Q2)return w;g=typeof w[1]=="number"?w[1]:g+s}}return m}}}function ole(e){return Array.isArray(e)?e:typeof e=="number"?[rle,e]:e==null?YL:[e]}function sle(e,t,r,n){let i,a,s;typeof t=="function"&&typeof r!="function"?(a=void 0,s=t,i=r):(a=t,s=r,i=n),ale(e,a,o,i);function o(l,u){const c=u[u.length-1],d=c?c.children.indexOf(l):void 0;return s(l,d,c)}}const D1={}.hasOwnProperty,lle={};function ule(e,t){const r=t||lle,n=new Map,i=new Map,a=new Map,s={...qse,...r.handlers},o={all:u,applyData:fle,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:l,options:r,patch:cle,wrap:hle};return sle(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?n:i,p=String(c.identifier).toUpperCase();d.has(p)||d.set(p,c)}}),o;function l(c,d){const p=c.type,m=o.handlers[p];if(D1.call(o.handlers,p)&&m)return m(o,c,d);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in c){const{children:g,..._}=c,E=tm(_);return E.children=o.all(c),E}return tm(c)}return(o.options.unknownHandler||dle)(o,c,d)}function u(c){const d=[];if("children"in c){const p=c.children;let m=-1;for(;++m<p.length;){const w=o.one(p[m],c);if(w){if(m&&p[m-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=K2(w.value)),!Array.isArray(w)&&w.type==="element")){const g=w.children[0];g&&g.type==="text"&&(g.value=K2(g.value))}Array.isArray(w)?d.push(...w):d.push(w)}}}return d}}function cle(e,t){e.position&&(t.position=Lse(e))}function fle(e,t){let r=t;if(e&&e.data){const n=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&a&&Object.assign(r.properties,tm(a)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function dle(e,t){const r=t.data||{},n="value"in t&&!(D1.call(r,"hProperties")||D1.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hle(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
`});++n<e.length;)n&&r.push({type:"text",value:`
`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
`}),r}function K2(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Y2(e,t){const r=ule(e,t),n=r.one(e,void 0),i=Xse(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
`},i),a}function ple(e,t){return e&&"run"in e?async function(r,n){const i=Y2(r,{file:n,...t});await e.run(i,n)}:function(r,n){return Y2(r,{file:n,...e||t})}}function X2(e){if(e)throw e}var Zy,J2;function mle(){if(J2)return Zy;J2=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},a=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),d=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!d)return!1;var p;for(p in u);return typeof p>"u"||e.call(u,p)},s=function(u,c){r&&c.name==="__proto__"?r(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},o=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(n)return n(u,c).value}else return;return u[c]};return Zy=function l(){var u,c,d,p,m,w,g=arguments[0],_=1,E=arguments.length,x=!1;for(typeof g=="boolean"&&(x=g,g=arguments[1]||{},_=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});_<E;++_)if(u=arguments[_],u!=null)for(c in u)d=o(g,c),p=o(u,c),g!==p&&(x&&p&&(a(p)||(m=i(p)))?(m?(m=!1,w=d&&i(d)?d:[]):w=d&&a(d)?d:{},s(g,{name:c,newValue:l(x,w,p)})):typeof p<"u"&&s(g,{name:c,newValue:p}));return g},Zy}var gle=mle();const e0=yn(gle);function F1(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function vle(){const e=[],t={run:r,use:n};return t;function r(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(l,...u){const c=e[++a];let d=-1;if(l){s(l);return}for(;++d<i.length;)(u[d]===null||u[d]===void 0)&&(u[d]=i[d]);i=u,c?yle(c,o)(...u):s(null,...u)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function yle(e,t){let r;return n;function n(...s){const o=e.length>s.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(u){const c=u;if(o&&r)throw c;return i(c)}o||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){r||(r=!0,t(s,...o))}function a(s){i(null,s)}}class er extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},s=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=Hc(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}er.prototype.file="";er.prototype.name="";er.prototype.reason="";er.prototype.message="";er.prototype.stack="";er.prototype.column=void 0;er.prototype.line=void 0;er.prototype.ancestors=void 0;er.prototype.cause=void 0;er.prototype.fatal=void 0;er.prototype.place=void 0;er.prototype.ruleId=void 0;er.prototype.source=void 0;const si={basename:wle,dirname:_le,extname:ble,join:xle,sep:"/"};function wle(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');sd(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(n=i):(o=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function _le(e){if(sd(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function ble(e){sd(e);let t=e.length,r=-1,n=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function xle(...e){let t=-1,r;for(;++t<e.length;)sd(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":Ele(r)}function Ele(e){sd(e);const t=e.codePointAt(0)===47;let r=Sle(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Sle(e,t){let r="",n=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=s,a=0;continue}}else if(r.length>0){r="",n=0,i=s,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),n=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return r}function sd(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Cle={cwd:kle};function kle(){return"/"}function L1(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ale(e){if(typeof e=="string")e=new URL(e);else if(!L1(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(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Tle(e)}function Tle(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const t0=["history","path","basename","stem","extname","dirname"];class Ile{constructor(t){let r;t?L1(t)?r={path:t}:typeof t=="string"||Ple(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Cle.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<t0.length;){const a=t0[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)t0.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?si.basename(this.path):void 0}set basename(t){r0(t,"basename"),n0(t,"basename"),this.path=si.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?si.dirname(this.path):void 0}set dirname(t){Z2(this.basename,"dirname"),this.path=si.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?si.extname(this.path):void 0}set extname(t){if(n0(t,"extname"),Z2(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=si.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){L1(t)&&(t=Ale(t)),r0(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?si.basename(this.path,this.extname):void 0}set stem(t){r0(t,"stem"),n0(t,"stem"),this.path=si.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){const i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){const i=new er(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function n0(e,t){if(e&&e.includes(si.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+si.sep+"`")}function r0(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Z2(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Ple(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Rle=function(e){const n=this.constructor.prototype,i=n[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,n),a},Ole={}.hasOwnProperty;class _x extends Rle{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=vle()}copy(){const t=new _x;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(e0(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(o0("data",this.frozen),this.namespace[t]=r,this):Ole.call(this.namespace,t)&&this.namespace[t]||void 0:t?(o0("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Qh(t),n=this.parser||this.Parser;return i0("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),i0("process",this.parser||this.Parser),a0("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,s){const o=Qh(t),l=n.parse(o);n.run(l,o,function(c,d,p){if(c||!d||!p)return u(c);const m=d,w=n.stringify(m,p);Dle(w)?p.value=w:p.result=w,u(c,p)});function u(c,d){c||!d?s(c):a?a(d):r(void 0,d)}}}processSync(t){let r=!1,n;return this.freeze(),i0("processSync",this.parser||this.Parser),a0("processSync",this.compiler||this.Compiler),this.process(t,i),tI("processSync","process",r),n;function i(a,s){r=!0,X2(a),n=s}}run(t,r,n){eI(t),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(s,o){const l=Qh(r);i.run(t,l,u);function u(c,d,p){const m=d||t;c?o(c):s?s(m):n(void 0,m,p)}}}runSync(t,r){let n=!1,i;return this.run(t,r,a),tI("runSync","run",n),i;function a(s,o){X2(s),i=o,n=!0}}stringify(t,r){this.freeze();const n=Qh(r),i=this.compiler||this.Compiler;return a0("stringify",i),eI(t),i(t,n)}use(t,...r){const n=this.attachers,i=this.namespace;if(o0("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;l(c,d)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))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");o(u.plugins),u.settings&&(i.settings=e0(!0,i.settings,u.settings))}function o(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];a(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let d=-1,p=-1;for(;++d<n.length;)if(n[d][0]===u){p=d;break}if(p===-1)n.push([u,...c]);else if(c.length>0){let[m,...w]=c;const g=n[p][1];F1(g)&&F1(m)&&(m=e0(!0,g,m)),n[p]=[u,m,...w]}}}}const Nle=new _x().freeze();function i0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function a0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function o0(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 eI(e){if(!F1(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function tI(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Qh(e){return Mle(e)?e:new Ile(e)}function Mle(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Dle(e){return typeof e=="string"||Fle(e)}function Fle(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Lle=`# Changelog
## 2026-05-31
- Add "Open from Google Drive"
## 2026-05-02
- Display search in mobile view (by marionikolov)
## 2026-04-20
- Shift-click to show a person's details without rearranging the tree (by FrankBuchholz)
## 2026-02-21
- Improved saving PDF files. Decreased file size and increased chart size that can be saved as PDF.
## 2026-02-13
- Show header information of the gedcom file on the side panel (by FrankBuchholz)
## 2026-01-19
- Changed info panel behavior on mobile (by marionikolov)
## 2025-09-09
- Sidebar improvements (Collapse/Expand, Mobile view) (by czifumasa)
## 2025-01-21
- Added new chart type based on [github.com/donatso/family-chart](https://github.com/donatso/family-chart)
## 2023-08-25
- Added support for loading gedzip files
## 2023-07-21
- Display images, notes, sources for events as collapsible tabs (by czifumasa)
## 2023-07-20
- Fixed search for Hebrew names (by czifumasa)
## 2023-02-01
- Added option to hide sex indicators (by Kent Grigo)
- Empty family boxes are now not shown (by Kent Grigo)
## 2023-01-08
- Added option to hide profile identifiers by Kent Grigo
## 2022-12-08
- French translation updated by Olivier Berten
## 2022-08-30
- Added displaying name types in details panel
## 2022-05-13
- Added displaying images in the details panel
## 2022-04-06
- Fixed logging in to WikiTree
## 2021-10-31
- Show changelog in intro page and when an upgraded version is loaded
## 2021-10-27
- Show events in details panel for WikiTree profiles
## 2021-10-26
- Added family events to details panel
- Improved details panel layout
## 2021-10-25
- Added "Settings" tab in side panel
- Added color settings (none, by generation, by sex)
`,jle="last_seen_version";async function Ble(e,t){const n=Lle.split("##").slice(1,e+1).map(a=>({date:Date.parse(a.split(`
`)[0].trim()),notes:"####"+a})).filter(a=>a.date>0).map(a=>a.notes).join(`
`)||"",i=await Nle().use(vse).use(ple).use(fae).process(n);return String(i)}function zle(){localStorage.setItem(jle,"2026-05-31 23:31:52 +0200")}const nI=""+new URL("topola-DAj3jHeV.jpg",import.meta.url).href;function s0(e){return O.jsx(yl,{to:{pathname:"/view",search:dn.stringify(e.params)},children:e.text})}function Ule(e){return(e==null?void 0:e.slice(0,16))||""}function rI(){const[e,t]=J.useState("");return J.useEffect(()=>{(async()=>(t(await Ble(1)),zle()))()}),O.jsxs(O.Fragment,{children:[O.jsx("p",{children:O.jsx(Re,{id:"intro.description",defaultMessage:"Topola Genealogy is a genealogy tree viewer that lets you browse the structure of the family."})}),O.jsx("p",{children:O.jsx(Re,{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."})}),O.jsx("h3",{children:O.jsx(Re,{id:"intro.examples",defaultMessage:"Examples"})}),O.jsxs("ul",{children:[O.jsxs("li",{children:[O.jsx(s0,{params:{url:"https://chronoplexsoftware.com/myfamilytree/samples/The%20Kennedy%20Family.gdz"},text:"J. F. Kennedy"})," ","(",O.jsx(Re,{id:"intro.from",defaultMessage:"from"})," ",O.jsx("a",{href:"https://chronoplexsoftware.com/myfamilytree/samples/",children:"chronoplexsoftware.com"}),")"]}),O.jsxs("li",{children:[O.jsx(s0,{params:{url:"https://webtreeprint.com/tp_downloader.php?path=famous_gedcoms/shakespeare.ged&file=shakespeare.ged"},text:"Shakespeare"})," ","(",O.jsx(Re,{id:"intro.from",defaultMessage:"from"})," ",O.jsx("a",{href:"https://webtreeprint.com/tp_famous_gedcoms.php",children:"webtreeprint.com"}),")"]}),O.jsxs("li",{children:[O.jsx(s0,{params:{indi:"Skłodowska-2",source:"wikitree"},text:"Maria Skłodowska-Curie"})," ","(",O.jsx(Re,{id:"intro.from",defaultMessage:"from"})," ",O.jsx("a",{href:"https://www.wikitree.com/wiki/Sk%C5%82odowska-2",children:"wikitree.com"}),")"]})]}),O.jsx("h3",{children:O.jsx(Re,{id:"intro.whats_new",defaultMessage:"What's new"})}),O.jsx("span",{dangerouslySetInnerHTML:{__html:e}}),O.jsx("a",{href:"https://github.com/PeWu/topola-viewer/blob/master/CHANGELOG.md",children:O.jsx(Re,{id:"intro.full_changelog",defaultMessage:"See full changelog"})}),O.jsx("h3",{children:O.jsx(Re,{id:"intro.privacy",defaultMessage:"Privacy"})}),O.jsx(Re,{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:O.jsx("a",{href:"https://topolaproxy.bieda.it/",children:"cors-anywhere"})}}),O.jsxs("p",{className:"ui right aligned version",children:["version: ",Ule("2026-05-31 23:31:52 +0200")," (",O.jsx("a",{href:"https://github.com/PeWu/topola-viewer/commit/024b25e",children:"024b25e"}),")"]})]})}function $le(){return O.jsxs("div",{id:"introContent",children:[O.jsx("div",{className:"backgroundImage"}),O.jsxs(Sn,{className:"intro",children:[O.jsx(Sn.Content,{as:dl,greaterThanOrEqual:"large",children:O.jsx(Sn.Header,{children:O.jsx(Re,{id:"intro.title",defaultMessage:"Topola Genealogy Viewer"})})}),O.jsxs(Sn.Content,{children:[O.jsx(Qr,{as:dl,greaterThanOrEqual:"large",children:O.jsxs(Qr.Row,{children:[O.jsx(Qr.Column,{width:5,children:O.jsx(sn,{src:nI,alt:"Topola logo"})}),O.jsx(Qr.Column,{width:11,children:O.jsx(rI,{})})]})}),O.jsxs(dl,{at:"small",children:[O.jsx(sn,{src:nI,alt:"Topola logo",centered:!0,size:"tiny",className:"blockImage"}),O.jsx(rI,{})]})]})]})]})}function Hle(e){const[t,r]=J.useState(!1),[n,i]=J.useState(!1),[a,s]=J.useState(null),o=J.useRef(null);J.useEffect(()=>()=>{o.current&&clearTimeout(o.current)},[]);async function l(d){if((await window.fetch(`https://www.googleapis.com/drive/v3/files/${e.failedFileId}?alt=media`,{headers:{Authorization:`Bearer ${d}`}})).status===200){r(!1),e.onAuthSuccess(e.failedFileId);return}i(!0),Qa.showPicker(m=>{r(!1),e.onAuthSuccess(m)},()=>{r(!1)})}async function u(){r(!0),s(null),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r(!1),o.current=null},2e4);try{const d=await Qa.requestToken(!1);o.current&&(clearTimeout(o.current),o.current=null),await l(d)}catch(d){o.current&&(clearTimeout(o.current),o.current=null),console.error("Auth error in fallback modal:",d),s(d.message||"An error occurred during authentication."),r(!1)}}async function c(){r(!0),s(null),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r(!1),o.current=null},2e4);try{const d=await Qa.requestToken(!0);o.current&&(clearTimeout(o.current),o.current=null),await l(d)}catch(d){o.current&&(clearTimeout(o.current),o.current=null),console.error("Switch account error in fallback modal:",d),s(d.message||"An error occurred during authentication."),r(!1)}}return O.jsxs(Yt,{open:!0,onClose:e.onCancel,centered:!0,size:"tiny",children:[O.jsxs($t,{children:[O.jsx(Je,{name:"google drive"}),O.jsx(Re,{id:"google_auth.title",defaultMessage:"Google Drive Access Required"})]}),O.jsxs(Yt.Content,{children:[O.jsx("p",{children:O.jsx(Re,{id:"google_auth.instructions",defaultMessage:"To view this file, you must authenticate and select the file from your Google Drive to grant permissions."})}),n&&O.jsxs(Dn,{warning:!0,children:[O.jsx(Dn.Header,{children:O.jsx(Re,{id:"google_auth.picker_instructions_header",defaultMessage:"Permissions Required"})}),O.jsx("p",{children:O.jsx(Re,{id:"google_auth.picker_instructions",defaultMessage:"The application does not have permission to read this file. Please select it in the file browser popup to grant access. If this is a shared file that doesn't show up, try adding a shortcut to your Drive first."})})]}),a&&O.jsx(Dn,{negative:!0,children:O.jsx("p",{children:a})})]}),O.jsxs(Yt.Actions,{children:[O.jsx(nn,{secondary:!0,onClick:e.onCancel,children:O.jsx(Re,{id:"google_auth.cancel",defaultMessage:"Cancel"})}),n&&O.jsx(nn,{basic:!0,onClick:c,loading:t,children:O.jsx(Re,{id:"google_auth.switch_account_button",defaultMessage:"Switch Account"})}),O.jsx(nn,{primary:!0,onClick:u,loading:t,children:O.jsx(Re,{id:"google_auth.grant_button",defaultMessage:"Grant Access & Select File"})})]})]})}var qr=(e=>(e[e.Menu=0]="Menu",e[e.Dropdown=1]="Dropdown",e))(qr||{});function au(e){const t={...e};return delete t.menuType,O.jsx(O.Fragment,{children:e.menuType===0?O.jsx(Kt.Item,{...t,children:e.children}):O.jsx(Ze.Item,{...t,children:e.children})})}function qle(e){const t=mo();async function r(){try{await Qa.requestToken(),e.onTokenAcquired&&e.onTokenAcquired(),await Qa.showPicker(n=>{t({pathname:"/view",search:dn.stringify({source:"google-drive",fileId:n})})})}catch(n){console.error("Failed Google Drive login/file picking:",n)}}return O.jsxs(au,{onClick:r,menuType:e.menuType,children:[O.jsx(Je,{name:"google drive"}),O.jsx(Re,{id:"menu.load_from_google_drive",defaultMessage:"Load from Google Drive"})]})}var Kh={exports:{}},iI;function Gle(){if(iI)return Kh.exports;iI=1;function e(t,r=100,n={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(r<0)throw new RangeError("`wait` must not be negative.");const{immediate:i}=typeof n=="boolean"?{immediate:n}:n;let a,s,o,l,u;function c(){const m=a,w=s;return a=void 0,s=void 0,u=t.apply(m,w),u}function d(){const m=Date.now()-l;m<r&&m>=0?o=setTimeout(d,r-m):(o=void 0,i||(u=c()))}const p=function(...m){if(a&&this!==a&&Object.getPrototypeOf(this)===Object.getPrototypeOf(a))throw new Error("Debounced method called with different contexts of the same prototype.");a=this,s=m,l=Date.now();const w=i&&!o;return o||(o=setTimeout(d,r)),w&&(u=c()),u};return Object.defineProperty(p,"isPending",{get(){return o!==void 0}}),p.clear=()=>{o&&(clearTimeout(o),o=void 0)},p.flush=()=>{o&&p.trigger()},p.trigger=()=>{u=c(),p.clear()},p}return Kh.exports.debounce=e,Kh.exports=e,Kh.exports}var Wle=Gle();const Vle=yn(Wle);var l0,aI;function Qle(){return aI||(aI=1,l0=function e(t,r){var n=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,i=/(^[ ]*|[ ]*$)/g,a=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,s=/^0x[0-9a-f]+$/i,o=/^0/,l=function(b){return e.insensitive&&(""+b).toLowerCase()||""+b},u=l(t).replace(i,"")||"",c=l(r).replace(i,"")||"",d=u.replace(n,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),p=c.replace(n,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),m=parseInt(u.match(s),16)||d.length!==1&&u.match(a)&&Date.parse(u),w=parseInt(c.match(s),16)||m&&c.match(a)&&Date.parse(c)||null,g,_;if(w){if(m<w)return-1;if(m>w)return 1}for(var E=0,x=Math.max(d.length,p.length);E<x;E++){if(g=!(d[E]||"").match(o)&&parseFloat(d[E])||d[E]||0,_=!(p[E]||"").match(o)&&parseFloat(p[E])||p[E]||0,isNaN(g)!==isNaN(_))return isNaN(g)?1:-1;if(typeof g!=typeof _&&(g+="",_+=""),g<_)return-1;if(g>_)return 1}return 0}),l0}var Kle=Qle();const Yle=yn(Kle);var u0={exports:{}};/**
* lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9
* Copyright (C) 2020 Oliver Nightingale
* @license MIT
*/var oI;function Xle(){return oI||(oI=1,function(e,t){(function(){var r=function(n){var i=new r.Builder;return i.pipeline.add(r.trimmer,r.stopWordFilter,r.stemmer),i.searchPipeline.add(r.stemmer),n.call(i,i),i.build()};r.version="2.3.9";/*!
* lunr.utils
* Copyright (C) 2020 Oliver Nightingale
*/r.utils={},r.utils.warn=function(n){return function(i){n.console&&console.warn&&console.warn(i)}}(this),r.utils.asString=function(n){return n==null?"":n.toString()},r.utils.clone=function(n){if(n==null)return n;for(var i=Object.create(null),a=Object.keys(n),s=0;s<a.length;s++){var o=a[s],l=n[o];if(Array.isArray(l)){i[o]=l.slice();continue}if(typeof l=="string"||typeof l=="number"||typeof l=="boolean"){i[o]=l;continue}throw new TypeError("clone is not deep and does not support nested objects")}return i},r.FieldRef=function(n,i,a){this.docRef=n,this.fieldName=i,this._stringValue=a},r.FieldRef.joiner="/",r.FieldRef.fromString=function(n){var i=n.indexOf(r.FieldRef.joiner);if(i===-1)throw"malformed field ref string";var a=n.slice(0,i),s=n.slice(i+1);return new r.FieldRef(s,a,n)},r.FieldRef.prototype.toString=function(){return this._stringValue==null&&(this._stringValue=this.fieldName+r.FieldRef.joiner+this.docRef),this._stringValue};/*!
* lunr.Set
* Copyright (C) 2020 Oliver Nightingale
*/r.Set=function(n){if(this.elements=Object.create(null),n){this.length=n.length;for(var i=0;i<this.length;i++)this.elements[n[i]]=!0}else this.length=0},r.Set.complete={intersect:function(n){return n},union:function(){return this},contains:function(){return!0}},r.Set.empty={intersect:function(){return this},union:function(n){return n},contains:function(){return!1}},r.Set.prototype.contains=function(n){return!!this.elements[n]},r.Set.prototype.intersect=function(n){var i,a,s,o=[];if(n===r.Set.complete)return this;if(n===r.Set.empty)return n;this.length<n.length?(i=this,a=n):(i=n,a=this),s=Object.keys(i.elements);for(var l=0;l<s.length;l++){var u=s[l];u in a.elements&&o.push(u)}return new r.Set(o)},r.Set.prototype.union=function(n){return n===r.Set.complete?r.Set.complete:n===r.Set.empty?this:new r.Set(Object.keys(this.elements).concat(Object.keys(n.elements)))},r.idf=function(n,i){var a=0;for(var s in n)s!="_index"&&(a+=Object.keys(n[s]).length);var o=(i-a+.5)/(a+.5);return Math.log(1+Math.abs(o))},r.Token=function(n,i){this.str=n||"",this.metadata=i||{}},r.Token.prototype.toString=function(){return this.str},r.Token.prototype.update=function(n){return this.str=n(this.str,this.metadata),this},r.Token.prototype.clone=function(n){return n=n||function(i){return i},new r.Token(n(this.str,this.metadata),this.metadata)};/*!
* lunr.tokenizer
* Copyright (C) 2020 Oliver Nightingale
*/r.tokenizer=function(n,i){if(n==null||n==null)return[];if(Array.isArray(n))return n.map(function(m){return new r.Token(r.utils.asString(m).toLowerCase(),r.utils.clone(i))});for(var a=n.toString().toLowerCase(),s=a.length,o=[],l=0,u=0;l<=s;l++){var c=a.charAt(l),d=l-u;if(c.match(r.tokenizer.separator)||l==s){if(d>0){var p=r.utils.clone(i)||{};p.position=[u,d],p.index=o.length,o.push(new r.Token(a.slice(u,l),p))}u=l+1}}return o},r.tokenizer.separator=/[\s\-]+/;/*!
* lunr.Pipeline
* Copyright (C) 2020 Oliver Nightingale
*/r.Pipeline=function(){this._stack=[]},r.Pipeline.registeredFunctions=Object.create(null),r.Pipeline.registerFunction=function(n,i){i in this.registeredFunctions&&r.utils.warn("Overwriting existing registered function: "+i),n.label=i,r.Pipeline.registeredFunctions[n.label]=n},r.Pipeline.warnIfFunctionNotRegistered=function(n){var i=n.label&&n.label in this.registeredFunctions;i||r.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index.
`,n)},r.Pipeline.load=function(n){var i=new r.Pipeline;return n.forEach(function(a){var s=r.Pipeline.registeredFunctions[a];if(s)i.add(s);else throw new Error("Cannot load unregistered function: "+a)}),i},r.Pipeline.prototype.add=function(){var n=Array.prototype.slice.call(arguments);n.forEach(function(i){r.Pipeline.warnIfFunctionNotRegistered(i),this._stack.push(i)},this)},r.Pipeline.prototype.after=function(n,i){r.Pipeline.warnIfFunctionNotRegistered(i);var a=this._stack.indexOf(n);if(a==-1)throw new Error("Cannot find existingFn");a=a+1,this._stack.splice(a,0,i)},r.Pipeline.prototype.before=function(n,i){r.Pipeline.warnIfFunctionNotRegistered(i);var a=this._stack.indexOf(n);if(a==-1)throw new Error("Cannot find existingFn");this._stack.splice(a,0,i)},r.Pipeline.prototype.remove=function(n){var i=this._stack.indexOf(n);i!=-1&&this._stack.splice(i,1)},r.Pipeline.prototype.run=function(n){for(var i=this._stack.length,a=0;a<i;a++){for(var s=this._stack[a],o=[],l=0;l<n.length;l++){var u=s(n[l],l,n);if(!(u==null||u===""))if(Array.isArray(u))for(var c=0;c<u.length;c++)o.push(u[c]);else o.push(u)}n=o}return n},r.Pipeline.prototype.runString=function(n,i){var a=new r.Token(n,i);return this.run([a]).map(function(s){return s.toString()})},r.Pipeline.prototype.reset=function(){this._stack=[]},r.Pipeline.prototype.toJSON=function(){return this._stack.map(function(n){return r.Pipeline.warnIfFunctionNotRegistered(n),n.label})};/*!
* lunr.Vector
* Copyright (C) 2020 Oliver Nightingale
*/r.Vector=function(n){this._magnitude=0,this.elements=n||[]},r.Vector.prototype.positionForIndex=function(n){if(this.elements.length==0)return 0;for(var i=0,a=this.elements.length/2,s=a-i,o=Math.floor(s/2),l=this.elements[o*2];s>1&&(l<n&&(i=o),l>n&&(a=o),l!=n);)s=a-i,o=i+Math.floor(s/2),l=this.elements[o*2];if(l==n||l>n)return o*2;if(l<n)return(o+1)*2},r.Vector.prototype.insert=function(n,i){this.upsert(n,i,function(){throw"duplicate index"})},r.Vector.prototype.upsert=function(n,i,a){this._magnitude=0;var s=this.positionForIndex(n);this.elements[s]==n?this.elements[s+1]=a(this.elements[s+1],i):this.elements.splice(s,0,n,i)},r.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var n=0,i=this.elements.length,a=1;a<i;a+=2){var s=this.elements[a];n+=s*s}return this._magnitude=Math.sqrt(n)},r.Vector.prototype.dot=function(n){for(var i=0,a=this.elements,s=n.elements,o=a.length,l=s.length,u=0,c=0,d=0,p=0;d<o&&p<l;)u=a[d],c=s[p],u<c?d+=2:u>c?p+=2:u==c&&(i+=a[d+1]*s[p+1],d+=2,p+=2);return i},r.Vector.prototype.similarity=function(n){return this.dot(n)/this.magnitude()||0},r.Vector.prototype.toArray=function(){for(var n=new Array(this.elements.length/2),i=1,a=0;i<this.elements.length;i+=2,a++)n[a]=this.elements[i];return n},r.Vector.prototype.toJSON=function(){return this.elements};/*!
* lunr.stemmer
* Copyright (C) 2020 Oliver Nightingale
* Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt
*/r.stemmer=function(){var n={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"},i={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},a="[^aeiou]",s="[aeiouy]",o=a+"[^aeiouy]*",l=s+"[aeiou]*",u="^("+o+")?"+l+o,c="^("+o+")?"+l+o+"("+l+")?$",d="^("+o+")?"+l+o+l+o,p="^("+o+")?"+s,m=new RegExp(u),w=new RegExp(d),g=new RegExp(c),_=new RegExp(p),E=/^(.+?)(ss|i)es$/,x=/^(.+?)([^s])s$/,b=/^(.+?)eed$/,C=/^(.+?)(ed|ing)$/,v=/.$/,k=/(at|bl|iz)$/,T=new RegExp("([^aeiouylsz])\\1$"),N=new RegExp("^"+o+s+"[^aeiouwxy]$"),M=/^(.+?[^aeiou])y$/,j=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,D=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,$=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,X=/^(.+?)(s|t)(ion)$/,W=/^(.+?)e$/,H=/ll$/,V=new RegExp("^"+o+s+"[^aeiouwxy]$"),K=function(q){var F,G,z,B,se,de,me;if(q.length<3)return q;if(z=q.substr(0,1),z=="y"&&(q=z.toUpperCase()+q.substr(1)),B=E,se=x,B.test(q)?q=q.replace(B,"$1$2"):se.test(q)&&(q=q.replace(se,"$1$2")),B=b,se=C,B.test(q)){var Ee=B.exec(q);B=m,B.test(Ee[1])&&(B=v,q=q.replace(B,""))}else if(se.test(q)){var Ee=se.exec(q);F=Ee[1],se=_,se.test(F)&&(q=F,se=k,de=T,me=N,se.test(q)?q=q+"e":de.test(q)?(B=v,q=q.replace(B,"")):me.test(q)&&(q=q+"e"))}if(B=M,B.test(q)){var Ee=B.exec(q);F=Ee[1],q=F+"i"}if(B=j,B.test(q)){var Ee=B.exec(q);F=Ee[1],G=Ee[2],B=m,B.test(F)&&(q=F+n[G])}if(B=D,B.test(q)){var Ee=B.exec(q);F=Ee[1],G=Ee[2],B=m,B.test(F)&&(q=F+i[G])}if(B=$,se=X,B.test(q)){var Ee=B.exec(q);F=Ee[1],B=w,B.test(F)&&(q=F)}else if(se.test(q)){var Ee=se.exec(q);F=Ee[1]+Ee[2],se=w,se.test(F)&&(q=F)}if(B=W,B.test(q)){var Ee=B.exec(q);F=Ee[1],B=w,se=g,de=V,(B.test(F)||se.test(F)&&!de.test(F))&&(q=F)}return B=H,se=w,B.test(q)&&se.test(q)&&(B=v,q=q.replace(B,"")),z=="y"&&(q=z.toLowerCase()+q.substr(1)),q};return function(Y){return Y.update(K)}}(),r.Pipeline.registerFunction(r.stemmer,"stemmer");/*!
* lunr.stopWordFilter
* Copyright (C) 2020 Oliver Nightingale
*/r.generateStopWordFilter=function(n){var i=n.reduce(function(a,s){return a[s]=s,a},{});return function(a){if(a&&i[a.toString()]!==a.toString())return a}},r.stopWordFilter=r.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"]),r.Pipeline.registerFunction(r.stopWordFilter,"stopWordFilter");/*!
* lunr.trimmer
* Copyright (C) 2020 Oliver Nightingale
*/r.trimmer=function(n){return n.update(function(i){return i.replace(/^\W+/,"").replace(/\W+$/,"")})},r.Pipeline.registerFunction(r.trimmer,"trimmer");/*!
* lunr.TokenSet
* Copyright (C) 2020 Oliver Nightingale
*/r.TokenSet=function(){this.final=!1,this.edges={},this.id=r.TokenSet._nextId,r.TokenSet._nextId+=1},r.TokenSet._nextId=1,r.TokenSet.fromArray=function(n){for(var i=new r.TokenSet.Builder,a=0,s=n.length;a<s;a++)i.insert(n[a]);return i.finish(),i.root},r.TokenSet.fromClause=function(n){return"editDistance"in n?r.TokenSet.fromFuzzyString(n.term,n.editDistance):r.TokenSet.fromString(n.term)},r.TokenSet.fromFuzzyString=function(n,i){for(var a=new r.TokenSet,s=[{node:a,editsRemaining:i,str:n}];s.length;){var o=s.pop();if(o.str.length>0){var l=o.str.charAt(0),u;l in o.node.edges?u=o.node.edges[l]:(u=new r.TokenSet,o.node.edges[l]=u),o.str.length==1&&(u.final=!0),s.push({node:u,editsRemaining:o.editsRemaining,str:o.str.slice(1)})}if(o.editsRemaining!=0){if("*"in o.node.edges)var c=o.node.edges["*"];else{var c=new r.TokenSet;o.node.edges["*"]=c}if(o.str.length==0&&(c.final=!0),s.push({node:c,editsRemaining:o.editsRemaining-1,str:o.str}),o.str.length>1&&s.push({node:o.node,editsRemaining:o.editsRemaining-1,str:o.str.slice(1)}),o.str.length==1&&(o.node.final=!0),o.str.length>=1){if("*"in o.node.edges)var d=o.node.edges["*"];else{var d=new r.TokenSet;o.node.edges["*"]=d}o.str.length==1&&(d.final=!0),s.push({node:d,editsRemaining:o.editsRemaining-1,str:o.str.slice(1)})}if(o.str.length>1){var p=o.str.charAt(0),m=o.str.charAt(1),w;m in o.node.edges?w=o.node.edges[m]:(w=new r.TokenSet,o.node.edges[m]=w),o.str.length==1&&(w.final=!0),s.push({node:w,editsRemaining:o.editsRemaining-1,str:p+o.str.slice(2)})}}}return a},r.TokenSet.fromString=function(n){for(var i=new r.TokenSet,a=i,s=0,o=n.length;s<o;s++){var l=n[s],u=s==o-1;if(l=="*")i.edges[l]=i,i.final=u;else{var c=new r.TokenSet;c.final=u,i.edges[l]=c,i=c}}return a},r.TokenSet.prototype.toArray=function(){for(var n=[],i=[{prefix:"",node:this}];i.length;){var a=i.pop(),s=Object.keys(a.node.edges),o=s.length;a.node.final&&(a.prefix.charAt(0),n.push(a.prefix));for(var l=0;l<o;l++){var u=s[l];i.push({prefix:a.prefix.concat(u),node:a.node.edges[u]})}}return n},r.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var n=this.final?"1":"0",i=Object.keys(this.edges).sort(),a=i.length,s=0;s<a;s++){var o=i[s],l=this.edges[o];n=n+o+l.id}return n},r.TokenSet.prototype.intersect=function(n){for(var i=new r.TokenSet,a=void 0,s=[{qNode:n,output:i,node:this}];s.length;){a=s.pop();for(var o=Object.keys(a.qNode.edges),l=o.length,u=Object.keys(a.node.edges),c=u.length,d=0;d<l;d++)for(var p=o[d],m=0;m<c;m++){var w=u[m];if(w==p||p=="*"){var g=a.node.edges[w],_=a.qNode.edges[p],E=g.final&&_.final,x=void 0;w in a.output.edges?(x=a.output.edges[w],x.final=x.final||E):(x=new r.TokenSet,x.final=E,a.output.edges[w]=x),s.push({qNode:_,output:x,node:g})}}}return i},r.TokenSet.Builder=function(){this.previousWord="",this.root=new r.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},r.TokenSet.Builder.prototype.insert=function(n){var i,a=0;if(n<this.previousWord)throw new Error("Out of order word insertion");for(var s=0;s<n.length&&s<this.previousWord.length&&n[s]==this.previousWord[s];s++)a++;this.minimize(a),this.uncheckedNodes.length==0?i=this.root:i=this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(var s=a;s<n.length;s++){var o=new r.TokenSet,l=n[s];i.edges[l]=o,this.uncheckedNodes.push({parent:i,char:l,child:o}),i=o}i.final=!0,this.previousWord=n},r.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},r.TokenSet.Builder.prototype.minimize=function(n){for(var i=this.uncheckedNodes.length-1;i>=n;i--){var a=this.uncheckedNodes[i],s=a.child.toString();s in this.minimizedNodes?a.parent.edges[a.char]=this.minimizedNodes[s]:(a.child._str=s,this.minimizedNodes[s]=a.child),this.uncheckedNodes.pop()}};/*!
* lunr.Index
* Copyright (C) 2020 Oliver Nightingale
*/r.Index=function(n){this.invertedIndex=n.invertedIndex,this.fieldVectors=n.fieldVectors,this.tokenSet=n.tokenSet,this.fields=n.fields,this.pipeline=n.pipeline},r.Index.prototype.search=function(n){return this.query(function(i){var a=new r.QueryParser(n,i);a.parse()})},r.Index.prototype.query=function(n){for(var i=new r.Query(this.fields),a=Object.create(null),s=Object.create(null),o=Object.create(null),l=Object.create(null),u=Object.create(null),c=0;c<this.fields.length;c++)s[this.fields[c]]=new r.Vector;n.call(i,i);for(var c=0;c<i.clauses.length;c++){var d=i.clauses[c],p=null,m=r.Set.empty;d.usePipeline?p=this.pipeline.runString(d.term,{fields:d.fields}):p=[d.term];for(var w=0;w<p.length;w++){var g=p[w];d.term=g;var _=r.TokenSet.fromClause(d),E=this.tokenSet.intersect(_).toArray();if(E.length===0&&d.presence===r.Query.presence.REQUIRED){for(var x=0;x<d.fields.length;x++){var b=d.fields[x];l[b]=r.Set.empty}break}for(var C=0;C<E.length;C++)for(var v=E[C],k=this.invertedIndex[v],T=k._index,x=0;x<d.fields.length;x++){var b=d.fields[x],N=k[b],M=Object.keys(N),j=v+"/"+b,D=new r.Set(M);if(d.presence==r.Query.presence.REQUIRED&&(m=m.union(D),l[b]===void 0&&(l[b]=r.Set.complete)),d.presence==r.Query.presence.PROHIBITED){u[b]===void 0&&(u[b]=r.Set.empty),u[b]=u[b].union(D);continue}if(s[b].upsert(T,d.boost,function(He,Oe){return He+Oe}),!o[j]){for(var $=0;$<M.length;$++){var X=M[$],W=new r.FieldRef(X,b),H=N[X],V;(V=a[W])===void 0?a[W]=new r.MatchData(v,b,H):V.add(v,b,H)}o[j]=!0}}}if(d.presence===r.Query.presence.REQUIRED)for(var x=0;x<d.fields.length;x++){var b=d.fields[x];l[b]=l[b].intersect(m)}}for(var K=r.Set.complete,Y=r.Set.empty,c=0;c<this.fields.length;c++){var b=this.fields[c];l[b]&&(K=K.intersect(l[b])),u[b]&&(Y=Y.union(u[b]))}var q=Object.keys(a),F=[],G=Object.create(null);if(i.isNegated()){q=Object.keys(this.fieldVectors);for(var c=0;c<q.length;c++){var W=q[c],z=r.FieldRef.fromString(W);a[W]=new r.MatchData}}for(var c=0;c<q.length;c++){var z=r.FieldRef.fromString(q[c]),B=z.docRef;if(K.contains(B)&&!Y.contains(B)){var se=this.fieldVectors[z],de=s[z.fieldName].similarity(se),me;if((me=G[B])!==void 0)me.score+=de,me.matchData.combine(a[z]);else{var Ee={ref:B,score:de,matchData:a[z]};G[B]=Ee,F.push(Ee)}}}return F.sort(function(Ie,Ne){return Ne.score-Ie.score})},r.Index.prototype.toJSON=function(){var n=Object.keys(this.invertedIndex).sort().map(function(a){return[a,this.invertedIndex[a]]},this),i=Object.keys(this.fieldVectors).map(function(a){return[a,this.fieldVectors[a].toJSON()]},this);return{version:r.version,fields:this.fields,fieldVectors:i,invertedIndex:n,pipeline:this.pipeline.toJSON()}},r.Index.load=function(n){var i={},a={},s=n.fieldVectors,o=Object.create(null),l=n.invertedIndex,u=new r.TokenSet.Builder,c=r.Pipeline.load(n.pipeline);n.version!=r.version&&r.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+r.version+"' does not match serialized index '"+n.version+"'");for(var d=0;d<s.length;d++){var p=s[d],m=p[0],w=p[1];a[m]=new r.Vector(w)}for(var d=0;d<l.length;d++){var p=l[d],g=p[0],_=p[1];u.insert(g),o[g]=_}return u.finish(),i.fields=n.fields,i.fieldVectors=a,i.invertedIndex=o,i.tokenSet=u.root,i.pipeline=c,new r.Index(i)};/*!
* lunr.Builder
* Copyright (C) 2020 Oliver Nightingale
*/r.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=r.tokenizer,this.pipeline=new r.Pipeline,this.searchPipeline=new r.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},r.Builder.prototype.ref=function(n){this._ref=n},r.Builder.prototype.field=function(n,i){if(/\//.test(n))throw new RangeError("Field '"+n+"' contains illegal character '/'");this._fields[n]=i||{}},r.Builder.prototype.b=function(n){n<0?this._b=0:n>1?this._b=1:this._b=n},r.Builder.prototype.k1=function(n){this._k1=n},r.Builder.prototype.add=function(n,i){var a=n[this._ref],s=Object.keys(this._fields);this._documents[a]=i||{},this.documentCount+=1;for(var o=0;o<s.length;o++){var l=s[o],u=this._fields[l].extractor,c=u?u(n):n[l],d=this.tokenizer(c,{fields:[l]}),p=this.pipeline.run(d),m=new r.FieldRef(a,l),w=Object.create(null);this.fieldTermFrequencies[m]=w,this.fieldLengths[m]=0,this.fieldLengths[m]+=p.length;for(var g=0;g<p.length;g++){var _=p[g];if(w[_]==null&&(w[_]=0),w[_]+=1,this.invertedIndex[_]==null){var E=Object.create(null);E._index=this.termIndex,this.termIndex+=1;for(var x=0;x<s.length;x++)E[s[x]]=Object.create(null);this.invertedIndex[_]=E}this.invertedIndex[_][l][a]==null&&(this.invertedIndex[_][l][a]=Object.create(null));for(var b=0;b<this.metadataWhitelist.length;b++){var C=this.metadataWhitelist[b],v=_.metadata[C];this.invertedIndex[_][l][a][C]==null&&(this.invertedIndex[_][l][a][C]=[]),this.invertedIndex[_][l][a][C].push(v)}}}},r.Builder.prototype.calculateAverageFieldLengths=function(){for(var n=Object.keys(this.fieldLengths),i=n.length,a={},s={},o=0;o<i;o++){var l=r.FieldRef.fromString(n[o]),u=l.fieldName;s[u]||(s[u]=0),s[u]+=1,a[u]||(a[u]=0),a[u]+=this.fieldLengths[l]}for(var c=Object.keys(this._fields),o=0;o<c.length;o++){var d=c[o];a[d]=a[d]/s[d]}this.averageFieldLength=a},r.Builder.prototype.createFieldVectors=function(){for(var n={},i=Object.keys(this.fieldTermFrequencies),a=i.length,s=Object.create(null),o=0;o<a;o++){for(var l=r.FieldRef.fromString(i[o]),u=l.fieldName,c=this.fieldLengths[l],d=new r.Vector,p=this.fieldTermFrequencies[l],m=Object.keys(p),w=m.length,g=this._fields[u].boost||1,_=this._documents[l.docRef].boost||1,E=0;E<w;E++){var x=m[E],b=p[x],C=this.invertedIndex[x]._index,v,k,T;s[x]===void 0?(v=r.idf(this.invertedIndex[x],this.documentCount),s[x]=v):v=s[x],k=v*((this._k1+1)*b)/(this._k1*(1-this._b+this._b*(c/this.averageFieldLength[u]))+b),k*=g,k*=_,T=Math.round(k*1e3)/1e3,d.insert(C,T)}n[l]=d}this.fieldVectors=n},r.Builder.prototype.createTokenSet=function(){this.tokenSet=r.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},r.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new r.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},r.Builder.prototype.use=function(n){var i=Array.prototype.slice.call(arguments,1);i.unshift(this),n.apply(this,i)},r.MatchData=function(n,i,a){for(var s=Object.create(null),o=Object.keys(a||{}),l=0;l<o.length;l++){var u=o[l];s[u]=a[u].slice()}this.metadata=Object.create(null),n!==void 0&&(this.metadata[n]=Object.create(null),this.metadata[n][i]=s)},r.MatchData.prototype.combine=function(n){for(var i=Object.keys(n.metadata),a=0;a<i.length;a++){var s=i[a],o=Object.keys(n.metadata[s]);this.metadata[s]==null&&(this.metadata[s]=Object.create(null));for(var l=0;l<o.length;l++){var u=o[l],c=Object.keys(n.metadata[s][u]);this.metadata[s][u]==null&&(this.metadata[s][u]=Object.create(null));for(var d=0;d<c.length;d++){var p=c[d];this.metadata[s][u][p]==null?this.metadata[s][u][p]=n.metadata[s][u][p]:this.metadata[s][u][p]=this.metadata[s][u][p].concat(n.metadata[s][u][p])}}}},r.MatchData.prototype.add=function(n,i,a){if(!(n in this.metadata)){this.metadata[n]=Object.create(null),this.metadata[n][i]=a;return}if(!(i in this.metadata[n])){this.metadata[n][i]=a;return}for(var s=Object.keys(a),o=0;o<s.length;o++){var l=s[o];l in this.metadata[n][i]?this.metadata[n][i][l]=this.metadata[n][i][l].concat(a[l]):this.metadata[n][i][l]=a[l]}},r.Query=function(n){this.clauses=[],this.allFields=n},r.Query.wildcard=new String("*"),r.Query.wildcard.NONE=0,r.Query.wildcard.LEADING=1,r.Query.wildcard.TRAILING=2,r.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},r.Query.prototype.clause=function(n){return"fields"in n||(n.fields=this.allFields),"boost"in n||(n.boost=1),"usePipeline"in n||(n.usePipeline=!0),"wildcard"in n||(n.wildcard=r.Query.wildcard.NONE),n.wildcard&r.Query.wildcard.LEADING&&n.term.charAt(0)!=r.Query.wildcard&&(n.term="*"+n.term),n.wildcard&r.Query.wildcard.TRAILING&&n.term.slice(-1)!=r.Query.wildcard&&(n.term=""+n.term+"*"),"presence"in n||(n.presence=r.Query.presence.OPTIONAL),this.clauses.push(n),this},r.Query.prototype.isNegated=function(){for(var n=0;n<this.clauses.length;n++)if(this.clauses[n].presence!=r.Query.presence.PROHIBITED)return!1;return!0},r.Query.prototype.term=function(n,i){if(Array.isArray(n))return n.forEach(function(s){this.term(s,r.utils.clone(i))},this),this;var a=i||{};return a.term=n.toString(),this.clause(a),this},r.QueryParseError=function(n,i,a){this.name="QueryParseError",this.message=n,this.start=i,this.end=a},r.QueryParseError.prototype=new Error,r.QueryLexer=function(n){this.lexemes=[],this.str=n,this.length=n.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},r.QueryLexer.prototype.run=function(){for(var n=r.QueryLexer.lexText;n;)n=n(this)},r.QueryLexer.prototype.sliceString=function(){for(var n=[],i=this.start,a=this.pos,s=0;s<this.escapeCharPositions.length;s++)a=this.escapeCharPositions[s],n.push(this.str.slice(i,a)),i=a+1;return n.push(this.str.slice(i,this.pos)),this.escapeCharPositions.length=0,n.join("")},r.QueryLexer.prototype.emit=function(n){this.lexemes.push({type:n,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},r.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},r.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return r.QueryLexer.EOS;var n=this.str.charAt(this.pos);return this.pos+=1,n},r.QueryLexer.prototype.width=function(){return this.pos-this.start},r.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},r.QueryLexer.prototype.backup=function(){this.pos-=1},r.QueryLexer.prototype.acceptDigitRun=function(){var n,i;do n=this.next(),i=n.charCodeAt(0);while(i>47&&i<58);n!=r.QueryLexer.EOS&&this.backup()},r.QueryLexer.prototype.more=function(){return this.pos<this.length},r.QueryLexer.EOS="EOS",r.QueryLexer.FIELD="FIELD",r.QueryLexer.TERM="TERM",r.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",r.QueryLexer.BOOST="BOOST",r.QueryLexer.PRESENCE="PRESENCE",r.QueryLexer.lexField=function(n){return n.backup(),n.emit(r.QueryLexer.FIELD),n.ignore(),r.QueryLexer.lexText},r.QueryLexer.lexTerm=function(n){if(n.width()>1&&(n.backup(),n.emit(r.QueryLexer.TERM)),n.ignore(),n.more())return r.QueryLexer.lexText},r.QueryLexer.lexEditDistance=function(n){return n.ignore(),n.acceptDigitRun(),n.emit(r.QueryLexer.EDIT_DISTANCE),r.QueryLexer.lexText},r.QueryLexer.lexBoost=function(n){return n.ignore(),n.acceptDigitRun(),n.emit(r.QueryLexer.BOOST),r.QueryLexer.lexText},r.QueryLexer.lexEOS=function(n){n.width()>0&&n.emit(r.QueryLexer.TERM)},r.QueryLexer.termSeparator=r.tokenizer.separator,r.QueryLexer.lexText=function(n){for(;;){var i=n.next();if(i==r.QueryLexer.EOS)return r.QueryLexer.lexEOS;if(i.charCodeAt(0)==92){n.escapeCharacter();continue}if(i==":")return r.QueryLexer.lexField;if(i=="~")return n.backup(),n.width()>0&&n.emit(r.QueryLexer.TERM),r.QueryLexer.lexEditDistance;if(i=="^")return n.backup(),n.width()>0&&n.emit(r.QueryLexer.TERM),r.QueryLexer.lexBoost;if(i=="+"&&n.width()===1||i=="-"&&n.width()===1)return n.emit(r.QueryLexer.PRESENCE),r.QueryLexer.lexText;if(i.match(r.QueryLexer.termSeparator))return r.QueryLexer.lexTerm}},r.QueryParser=function(n,i){this.lexer=new r.QueryLexer(n),this.query=i,this.currentClause={},this.lexemeIdx=0},r.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var n=r.QueryParser.parseClause;n;)n=n(this);return this.query},r.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},r.QueryParser.prototype.consumeLexeme=function(){var n=this.peekLexeme();return this.lexemeIdx+=1,n},r.QueryParser.prototype.nextClause=function(){var n=this.currentClause;this.query.clause(n),this.currentClause={}},r.QueryParser.parseClause=function(n){var i=n.peekLexeme();if(i!=null)switch(i.type){case r.QueryLexer.PRESENCE:return r.QueryParser.parsePresence;case r.QueryLexer.FIELD:return r.QueryParser.parseField;case r.QueryLexer.TERM:return r.QueryParser.parseTerm;default:var a="expected either a field or a term, found "+i.type;throw i.str.length>=1&&(a+=" with value '"+i.str+"'"),new r.QueryParseError(a,i.start,i.end)}},r.QueryParser.parsePresence=function(n){var i=n.consumeLexeme();if(i!=null){switch(i.str){case"-":n.currentClause.presence=r.Query.presence.PROHIBITED;break;case"+":n.currentClause.presence=r.Query.presence.REQUIRED;break;default:var a="unrecognised presence operator'"+i.str+"'";throw new r.QueryParseError(a,i.start,i.end)}var s=n.peekLexeme();if(s==null){var a="expecting term or field, found nothing";throw new r.QueryParseError(a,i.start,i.end)}switch(s.type){case r.QueryLexer.FIELD:return r.QueryParser.parseField;case r.QueryLexer.TERM:return r.QueryParser.parseTerm;default:var a="expecting term or field, found '"+s.type+"'";throw new r.QueryParseError(a,s.start,s.end)}}},r.QueryParser.parseField=function(n){var i=n.consumeLexeme();if(i!=null){if(n.query.allFields.indexOf(i.str)==-1){var a=n.query.allFields.map(function(l){return"'"+l+"'"}).join(", "),s="unrecognised field '"+i.str+"', possible fields: "+a;throw new r.QueryParseError(s,i.start,i.end)}n.currentClause.fields=[i.str];var o=n.peekLexeme();if(o==null){var s="expecting term, found nothing";throw new r.QueryParseError(s,i.start,i.end)}switch(o.type){case r.QueryLexer.TERM:return r.QueryParser.parseTerm;default:var s="expecting term, found '"+o.type+"'";throw new r.QueryParseError(s,o.start,o.end)}}},r.QueryParser.parseTerm=function(n){var i=n.consumeLexeme();if(i!=null){n.currentClause.term=i.str.toLowerCase(),i.str.indexOf("*")!=-1&&(n.currentClause.usePipeline=!1);var a=n.peekLexeme();if(a==null){n.nextClause();return}switch(a.type){case r.QueryLexer.TERM:return n.nextClause(),r.QueryParser.parseTerm;case r.QueryLexer.FIELD:return n.nextClause(),r.QueryParser.parseField;case r.QueryLexer.EDIT_DISTANCE:return r.QueryParser.parseEditDistance;case r.QueryLexer.BOOST:return r.QueryParser.parseBoost;case r.QueryLexer.PRESENCE:return n.nextClause(),r.QueryParser.parsePresence;default:var s="Unexpected lexeme type '"+a.type+"'";throw new r.QueryParseError(s,a.start,a.end)}}},r.QueryParser.parseEditDistance=function(n){var i=n.consumeLexeme();if(i!=null){var a=parseInt(i.str,10);if(isNaN(a)){var s="edit distance must be numeric";throw new r.QueryParseError(s,i.start,i.end)}n.currentClause.editDistance=a;var o=n.peekLexeme();if(o==null){n.nextClause();return}switch(o.type){case r.QueryLexer.TERM:return n.nextClause(),r.QueryParser.parseTerm;case r.QueryLexer.FIELD:return n.nextClause(),r.QueryParser.parseField;case r.QueryLexer.EDIT_DISTANCE:return r.QueryParser.parseEditDistance;case r.QueryLexer.BOOST:return r.QueryParser.parseBoost;case r.QueryLexer.PRESENCE:return n.nextClause(),r.QueryParser.parsePresence;default:var s="Unexpected lexeme type '"+o.type+"'";throw new r.QueryParseError(s,o.start,o.end)}}},r.QueryParser.parseBoost=function(n){var i=n.consumeLexeme();if(i!=null){var a=parseInt(i.str,10);if(isNaN(a)){var s="boost must be numeric";throw new r.QueryParseError(s,i.start,i.end)}n.currentClause.boost=a;var o=n.peekLexeme();if(o==null){n.nextClause();return}switch(o.type){case r.QueryLexer.TERM:return n.nextClause(),r.QueryParser.parseTerm;case r.QueryLexer.FIELD:return n.nextClause(),r.QueryParser.parseField;case r.QueryLexer.EDIT_DISTANCE:return r.QueryParser.parseEditDistance;case r.QueryLexer.BOOST:return r.QueryParser.parseBoost;case r.QueryLexer.PRESENCE:return n.nextClause(),r.QueryParser.parsePresence;default:var s="Unexpected lexeme type '"+o.type+"'";throw new r.QueryParseError(s,o.start,o.end)}}},function(n,i){e.exports=i()}(this,function(){return r})})()}(u0)),u0.exports}var Jle=Xle();const di=yn(Jle);var Cp={exports:{}};/*!
* Lunr languages, `German` language
* https://github.com/MihaiValentin/lunr-languages
*
* Copyright 2014, Mihai Valentin
* http://www.mozilla.org/MPL/
*/var Zle=Cp.exports,sI;function eue(){return sI||(sI=1,function(e,t){(function(r,n){e.exports=n()})(Zle,function(){return function(r){if(typeof r>"u")throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(typeof r.stemmerSupport>"u")throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");r.de=function(){this.pipeline.reset(),this.pipeline.add(r.de.trimmer,r.de.stopWordFilter,r.de.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(r.de.trimmer,r.de.stemmer))},r.de.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA--",r.de.trimmer=r.trimmerSupport.generateTrimmer(r.de.wordCharacters),r.Pipeline.registerFunction(r.de.trimmer,"trimmer-de"),r.de.stemmer=function(){var n=r.stemmerSupport.Among,i=r.stemmerSupport.SnowballProgram,a=new function(){var o=[new n("",-1,6),new n("U",0,2),new n("Y",0,1),new n("ä",0,3),new n("ö",0,4),new n("ü",0,5)],l=[new n("e",-1,2),new n("em",-1,1),new n("en",-1,2),new n("ern",-1,1),new n("er",-1,1),new n("s",-1,3),new n("es",5,2)],u=[new n("en",-1,1),new n("er",-1,1),new n("st",-1,2),new n("est",2,1)],c=[new n("ig",-1,1),new n("lich",-1,1)],d=[new n("end",-1,1),new n("ig",-1,2),new n("ung",-1,1),new n("lich",-1,3),new n("isch",-1,2),new n("ik",-1,2),new n("heit",-1,3),new n("keit",-1,4)],p=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,8,0,32,8],m=[117,30,5],w=[117,30,4],g,_,E,x=new i;this.setCurrent=function(D){x.setCurrent(D)},this.getCurrent=function(){return x.getCurrent()};function b(D,$,X){return x.eq_s(1,D)&&(x.ket=x.cursor,x.in_grouping(p,97,252))?(x.slice_from($),x.cursor=X,!0):!1}function C(){for(var D=x.cursor,$,X,W,H;;)if($=x.cursor,x.bra=$,x.eq_s(1,"ß"))x.ket=x.cursor,x.slice_from("ss");else{if($>=x.limit)break;x.cursor=$+1}for(x.cursor=D;;)for(X=x.cursor;W=x.cursor,!(x.in_grouping(p,97,252)&&(H=x.cursor,x.bra=H,b("u","U",W)||(x.cursor=H,b("y","Y",W))));){if(W>=x.limit){x.cursor=X;return}x.cursor=W+1}}function v(){for(;!x.in_grouping(p,97,252);){if(x.cursor>=x.limit)return!0;x.cursor++}for(;!x.out_grouping(p,97,252);){if(x.cursor>=x.limit)return!0;x.cursor++}return!1}function k(){E=x.limit,_=E;var D=x.cursor+3;0<=D&&D<=x.limit&&(g=D,v()||(E=x.cursor,E<g&&(E=g),v()||(_=x.cursor)))}function T(){for(var D,$;;){if($=x.cursor,x.bra=$,D=x.find_among(o,6),!D)return;switch(x.ket=x.cursor,D){case 1:x.slice_from("y");break;case 2:case 5:x.slice_from("u");break;case 3:x.slice_from("a");break;case 4:x.slice_from("o");break;case 6:if(x.cursor>=x.limit)return;x.cursor++;break}}}function N(){return E<=x.cursor}function M(){return _<=x.cursor}function j(){var D,$=x.limit-x.cursor,X,W,H;if(x.ket=x.cursor,D=x.find_among_b(l,7),D&&(x.bra=x.cursor,N()))switch(D){case 1:x.slice_del();break;case 2:x.slice_del(),x.ket=x.cursor,x.eq_s_b(1,"s")&&(x.bra=x.cursor,x.eq_s_b(3,"nis")&&x.slice_del());break;case 3:x.in_grouping_b(m,98,116)&&x.slice_del();break}if(x.cursor=x.limit-$,x.ket=x.cursor,D=x.find_among_b(u,4),D&&(x.bra=x.cursor,N()))switch(D){case 1:x.slice_del();break;case 2:if(x.in_grouping_b(w,98,116)){var V=x.cursor-3;x.limit_backward<=V&&V<=x.limit&&(x.cursor=V,x.slice_del())}break}if(x.cursor=x.limit-$,x.ket=x.cursor,D=x.find_among_b(d,8),D&&(x.bra=x.cursor,M()))switch(D){case 1:x.slice_del(),x.ket=x.cursor,x.eq_s_b(2,"ig")&&(x.bra=x.cursor,X=x.limit-x.cursor,x.eq_s_b(1,"e")||(x.cursor=x.limit-X,M()&&x.slice_del()));break;case 2:W=x.limit-x.cursor,x.eq_s_b(1,"e")||(x.cursor=x.limit-W,x.slice_del());break;case 3:if(x.slice_del(),x.ket=x.cursor,H=x.limit-x.cursor,!x.eq_s_b(2,"er")&&(x.cursor=x.limit-H,!x.eq_s_b(2,"en")))break;x.bra=x.cursor,N()&&x.slice_del();break;case 4:x.slice_del(),x.ket=x.cursor,D=x.find_among_b(c,2),D&&(x.bra=x.cursor,M()&&D==1&&x.slice_del());break}}this.stem=function(){var D=x.cursor;return C(),x.cursor=D,k(),x.limit_backward=D,x.cursor=x.limit,j(),x.cursor=x.limit_backward,T(),!0}};return function(s){return typeof s.update=="function"?s.update(function(o){return a.setCurrent(o),a.stem(),a.getCurrent()}):(a.setCurrent(s),a.stem(),a.getCurrent())}}(),r.Pipeline.registerFunction(r.de.stemmer,"stemmer-de"),r.de.wildcardNormalizer=function(n){return n.replace(/[\u00DF\u1E9E]/g,"ss").replace(/[\u00E4\u00C4]/g,"a").replace(/[\u00F6\u00D6]/g,"o").replace(/[\u00FC\u00DC]/g,"u")},r.de.wildcardNormalizer.label="wildcardNormalizer-de",r.de.wildcardNormalizer.pipelineFunctionLabel="stemmer-de",r.stemmerSupport.addQueryParserWildcardNormalizer(r,r.de.wildcardNormalizer),r.de.stopWordFilter=r.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ß 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ür 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önnen könnte 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ährend würde würden zu zum zur zwar zwischen über".split(" ")),r.Pipeline.registerFunction(r.de.stopWordFilter,"stopWordFilter-de")}})}(Cp)),Cp.exports}var tue=eue();const nue=yn(tue);var kp={exports:{}};/*!
* Lunr languages, `French` language
* https://github.com/MihaiValentin/lunr-languages
*
* Copyright 2014, Mihai Valentin
* http://www.mozilla.org/MPL/
*/var rue=kp.exports,lI;function iue(){return lI||(lI=1,function(e,t){(function(r,n){e.exports=n()})(rue,function(){return function(r){if(typeof r>"u")throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(typeof r.stemmerSupport>"u")throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");r.fr=function(){this.pipeline.reset(),this.pipeline.add(r.fr.trimmer,r.fr.stopWordFilter,r.fr.accentFold,r.fr.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(r.fr.trimmer,r.fr.accentFold,r.fr.stemmer))},r.fr.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA--",r.fr.trimmer=r.trimmerSupport.generateTrimmer(r.fr.wordCharacters),r.Pipeline.registerFunction(r.fr.trimmer,"trimmer-fr"),r.fr.stemmer=function(){var n=r.stemmerSupport.Among,i=r.stemmerSupport.SnowballProgram,a=new function(){var o=[new n("col",-1,-1),new n("par",-1,-1),new n("tap",-1,-1)],l=[new n("",-1,4),new n("I",0,1),new n("U",0,2),new n("Y",0,3)],u=[new n("iqU",-1,3),new n("abl",-1,3),new n("Ièr",-1,4),new n("ièr",-1,4),new n("eus",-1,2),new n("iv",-1,1)],c=[new n("ic",-1,2),new n("abil",-1,1),new n("iv",-1,3)],d=[new n("iqUe",-1,1),new n("atrice",-1,2),new n("ance",-1,1),new n("ence",-1,5),new n("logie",-1,3),new n("able",-1,1),new n("isme",-1,1),new n("euse",-1,11),new n("iste",-1,1),new n("ive",-1,8),new n("if",-1,8),new n("usion",-1,4),new n("ation",-1,2),new n("ution",-1,4),new n("ateur",-1,2),new n("iqUes",-1,1),new n("atrices",-1,2),new n("ances",-1,1),new n("ences",-1,5),new n("logies",-1,3),new n("ables",-1,1),new n("ismes",-1,1),new n("euses",-1,11),new n("istes",-1,1),new n("ives",-1,8),new n("ifs",-1,8),new n("usions",-1,4),new n("ations",-1,2),new n("utions",-1,4),new n("ateurs",-1,2),new n("ments",-1,15),new n("ements",30,6),new n("issements",31,12),new n("ités",-1,7),new n("ment",-1,15),new n("ement",34,6),new n("issement",35,12),new n("amment",34,13),new n("emment",34,14),new n("aux",-1,10),new n("eaux",39,9),new n("eux",-1,1),new n("ité",-1,7)],p=[new n("ira",-1,1),new n("ie",-1,1),new n("isse",-1,1),new n("issante",-1,1),new n("i",-1,1),new n("irai",4,1),new n("ir",-1,1),new n("iras",-1,1),new n("ies",-1,1),new n("îmes",-1,1),new n("isses",-1,1),new n("issantes",-1,1),new n("îtes",-1,1),new n("is",-1,1),new n("irais",13,1),new n("issais",13,1),new n("irions",-1,1),new n("issions",-1,1),new n("irons",-1,1),new n("issons",-1,1),new n("issants",-1,1),new n("it",-1,1),new n("irait",21,1),new n("issait",21,1),new n("issant",-1,1),new n("iraIent",-1,1),new n("issaIent",-1,1),new n("irent",-1,1),new n("issent",-1,1),new n("iront",-1,1),new n("ît",-1,1),new n("iriez",-1,1),new n("issiez",-1,1),new n("irez",-1,1),new n("issez",-1,1)],m=[new n("a",-1,3),new n("era",0,2),new n("asse",-1,3),new n("ante",-1,3),new n("ée",-1,2),new n("ai",-1,3),new n("erai",5,2),new n("er",-1,2),new n("as",-1,3),new n("eras",8,2),new n("âmes",-1,3),new n("asses",-1,3),new n("antes",-1,3),new n("âtes",-1,3),new n("ées",-1,2),new n("ais",-1,3),new n("erais",15,2),new n("ions",-1,1),new n("erions",17,2),new n("assions",17,3),new n("erons",-1,2),new n("ants",-1,3),new n("és",-1,2),new n("ait",-1,3),new n("erait",23,2),new n("ant",-1,3),new n("aIent",-1,3),new n("eraIent",26,2),new n("èrent",-1,2),new n("assent",-1,3),new n("eront",-1,2),new n("ât",-1,3),new n("ez",-1,2),new n("iez",32,2),new n("eriez",33,2),new n("assiez",33,3),new n("erez",32,2),new n("é",-1,2)],w=[new n("e",-1,3),new n("Ière",0,2),new n("ière",0,2),new n("ion",-1,1),new n("Ier",-1,2),new n("ier",-1,2),new n("ë",-1,4)],g=[new n("ell",-1,-1),new n("eill",-1,-1),new n("enn",-1,-1),new n("onn",-1,-1),new n("ett",-1,-1)],_=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,128,130,103,8,5],E=[1,65,20,0,0,0,0,0,0,0,0,0,0,0,0,0,128],x,b,C,v=new i;this.setCurrent=function(z){v.setCurrent(z)},this.getCurrent=function(){return v.getCurrent()};function k(z,B,se){return v.eq_s(1,z)&&(v.ket=v.cursor,v.in_grouping(_,97,251))?(v.slice_from(B),v.cursor=se,!0):!1}function T(z,B,se){return v.eq_s(1,z)?(v.ket=v.cursor,v.slice_from(B),v.cursor=se,!0):!1}function N(){for(var z,B;;)if(z=v.cursor,!(v.in_grouping(_,97,251)&&(v.bra=v.cursor,B=v.cursor,k("u","U",z)||(v.cursor=B,k("i","I",z))||(v.cursor=B,T("y","Y",z))))&&(v.cursor=z,v.bra=z,!k("y","Y",z))){if(v.cursor=z,v.eq_s(1,"q")&&(v.bra=v.cursor,T("u","U",z)))continue;if(v.cursor=z,z>=v.limit)return;v.cursor++}}function M(){for(;!v.in_grouping(_,97,251);){if(v.cursor>=v.limit)return!0;v.cursor++}for(;!v.out_grouping(_,97,251);){if(v.cursor>=v.limit)return!0;v.cursor++}return!1}function j(){var z=v.cursor;if(C=v.limit,b=C,x=C,v.in_grouping(_,97,251)&&v.in_grouping(_,97,251)&&v.cursor<v.limit)v.cursor++;else if(v.cursor=z,!v.find_among(o,3)){v.cursor=z;do{if(v.cursor>=v.limit){v.cursor=C;break}v.cursor++}while(!v.in_grouping(_,97,251))}C=v.cursor,v.cursor=z,M()||(b=v.cursor,M()||(x=v.cursor))}function D(){for(var z,B;B=v.cursor,v.bra=B,z=v.find_among(l,4),!!z;)switch(v.ket=v.cursor,z){case 1:v.slice_from("i");break;case 2:v.slice_from("u");break;case 3:v.slice_from("y");break;case 4:if(v.cursor>=v.limit)return;v.cursor++;break}}function $(){return C<=v.cursor}function X(){return b<=v.cursor}function W(){return x<=v.cursor}function H(){var z,B;if(v.ket=v.cursor,z=v.find_among_b(d,43),z){switch(v.bra=v.cursor,z){case 1:if(!W())return!1;v.slice_del();break;case 2:if(!W())return!1;v.slice_del(),v.ket=v.cursor,v.eq_s_b(2,"ic")&&(v.bra=v.cursor,W()?v.slice_del():v.slice_from("iqU"));break;case 3:if(!W())return!1;v.slice_from("log");break;case 4:if(!W())return!1;v.slice_from("u");break;case 5:if(!W())return!1;v.slice_from("ent");break;case 6:if(!$())return!1;if(v.slice_del(),v.ket=v.cursor,z=v.find_among_b(u,6),z)switch(v.bra=v.cursor,z){case 1:W()&&(v.slice_del(),v.ket=v.cursor,v.eq_s_b(2,"at")&&(v.bra=v.cursor,W()&&v.slice_del()));break;case 2:W()?v.slice_del():X()&&v.slice_from("eux");break;case 3:W()&&v.slice_del();break;case 4:$()&&v.slice_from("i");break}break;case 7:if(!W())return!1;if(v.slice_del(),v.ket=v.cursor,z=v.find_among_b(c,3),z)switch(v.bra=v.cursor,z){case 1:W()?v.slice_del():v.slice_from("abl");break;case 2:W()?v.slice_del():v.slice_from("iqU");break;case 3:W()&&v.slice_del();break}break;case 8:if(!W())return!1;if(v.slice_del(),v.ket=v.cursor,v.eq_s_b(2,"at")&&(v.bra=v.cursor,W()&&(v.slice_del(),v.ket=v.cursor,v.eq_s_b(2,"ic")))){v.bra=v.cursor,W()?v.slice_del():v.slice_from("iqU");break}break;case 9:v.slice_from("eau");break;case 10:if(!X())return!1;v.slice_from("al");break;case 11:if(W())v.slice_del();else if(X())v.slice_from("eux");else return!1;break;case 12:if(!X()||!v.out_grouping_b(_,97,251))return!1;v.slice_del();break;case 13:return $()&&v.slice_from("ant"),!1;case 14:return $()&&v.slice_from("ent"),!1;case 15:return B=v.limit-v.cursor,v.in_grouping_b(_,97,251)&&$()&&(v.cursor=v.limit-B,v.slice_del()),!1}return!0}return!1}function V(){var z,B;if(v.cursor<C)return!1;if(B=v.limit_backward,v.limit_backward=C,v.ket=v.cursor,z=v.find_among_b(p,35),!z)return v.limit_backward=B,!1;if(v.bra=v.cursor,z==1){if(!v.out_grouping_b(_,97,251))return v.limit_backward=B,!1;v.slice_del()}return v.limit_backward=B,!0}function K(){var z,B,se;if(v.cursor<C)return!1;if(B=v.limit_backward,v.limit_backward=C,v.ket=v.cursor,z=v.find_among_b(m,38),!z)return v.limit_backward=B,!1;switch(v.bra=v.cursor,z){case 1:if(!W())return v.limit_backward=B,!1;v.slice_del();break;case 2:v.slice_del();break;case 3:v.slice_del(),se=v.limit-v.cursor,v.ket=v.cursor,v.eq_s_b(1,"e")?(v.bra=v.cursor,v.slice_del()):v.cursor=v.limit-se;break}return v.limit_backward=B,!0}function Y(){var z,B=v.limit-v.cursor,se,de,me;if(v.ket=v.cursor,v.eq_s_b(1,"s")?(v.bra=v.cursor,se=v.limit-v.cursor,v.out_grouping_b(E,97,232)?(v.cursor=v.limit-se,v.slice_del()):v.cursor=v.limit-B):v.cursor=v.limit-B,v.cursor>=C){if(de=v.limit_backward,v.limit_backward=C,v.ket=v.cursor,z=v.find_among_b(w,7),z)switch(v.bra=v.cursor,z){case 1:if(W()){if(me=v.limit-v.cursor,!v.eq_s_b(1,"s")&&(v.cursor=v.limit-me,!v.eq_s_b(1,"t")))break;v.slice_del()}break;case 2:v.slice_from("i");break;case 3:v.slice_del();break;case 4:v.eq_s_b(2,"gu")&&v.slice_del();break}v.limit_backward=de}}function q(){var z=v.limit-v.cursor;v.find_among_b(g,5)&&(v.cursor=v.limit-z,v.ket=v.cursor,v.cursor>v.limit_backward&&(v.cursor--,v.bra=v.cursor,v.slice_del()))}function F(){for(var z,B=1;v.out_grouping_b(_,97,251);)B--;if(B<=0){if(v.ket=v.cursor,z=v.limit-v.cursor,!v.eq_s_b(1,"é")&&(v.cursor=v.limit-z,!v.eq_s_b(1,"è")))return;v.bra=v.cursor,v.slice_from("e")}}function G(){if(!H()&&(v.cursor=v.limit,!V()&&(v.cursor=v.limit,!K()))){v.cursor=v.limit,Y();return}v.cursor=v.limit,v.ket=v.cursor,v.eq_s_b(1,"Y")?(v.bra=v.cursor,v.slice_from("i")):(v.cursor=v.limit,v.eq_s_b(1,"ç")&&(v.bra=v.cursor,v.slice_from("c")))}this.stem=function(){var z=v.cursor;return N(),v.cursor=z,j(),v.limit_backward=z,v.cursor=v.limit,G(),v.cursor=v.limit,q(),v.cursor=v.limit,F(),v.cursor=v.limit_backward,D(),!0}};return function(s){return typeof s.update=="function"?s.update(function(o){return a.setCurrent(o),a.stem(),a.getCurrent()}):(a.setCurrent(s),a.stem(),a.getCurrent())}}(),r.Pipeline.registerFunction(r.fr.stemmer,"stemmer-fr"),r.fr.accentFoldTerm=function(n){return n.replace(/[\u00E0\u00E1\u00E2\u00E4\u00C0\u00C1\u00C2\u00C4]/g,"a").replace(/[\u00E7\u00C7]/g,"c").replace(/[\u00E9\u00E8\u00EA\u00EB\u00C9\u00C8\u00CA\u00CB]/g,"e").replace(/[\u00EE\u00EF\u00CE\u00CF]/g,"i").replace(/[\u00F4\u00F6\u00D4\u00D6]/g,"o").replace(/[\u00F9\u00FB\u00FC\u00D9\u00DB\u00DC]/g,"u").replace(/[\u0178\u00FF]/g,"y").replace(/[\u00E6\u00C6]/g,"ae").replace(/[\u0153\u0152]/g,"oe")},r.fr.accentFold=function(n){return n&&(typeof n.update=="function"?n.update(function(i){return r.fr.accentFoldTerm(i)}):typeof n=="string"?r.fr.accentFoldTerm(n):n)},r.Pipeline.registerFunction(r.fr.accentFold,"accentFold-fr"),r.fr.wildcardNormalizer=function(n){return r.fr.accentFoldTerm(n)},r.fr.wildcardNormalizer.label="wildcardNormalizer-fr",r.fr.wildcardNormalizer.pipelineFunctionLabel="stemmer-fr",r.stemmerSupport.addQueryParserWildcardNormalizer(r,r.fr.wildcardNormalizer),r.fr.stopWordFilter=r.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à 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ûmes eût eûtes furent fus fusse fussent fusses fussiez fussions fut fûmes fût fûtes ici il ils j je l la le les leur leurs lui m ma mais me mes moi mon même 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 à étaient étais était étant étiez étions été étée étées étés êtes".split(" ")),r.Pipeline.registerFunction(r.fr.stopWordFilter,"stopWordFilter-fr")}})}(kp)),kp.exports}var aue=iue();const oue=yn(aue);var Ap={exports:{}};/*!
* Lunr languages, `Italian` language
* https://github.com/MihaiValentin/lunr-languages
*
* Copyright 2014, Mihai Valentin
* http://www.mozilla.org/MPL/
*/var sue=Ap.exports,uI;function lue(){return uI||(uI=1,function(e,t){(function(r,n){e.exports=n()})(sue,function(){return function(r){if(typeof r>"u")throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(typeof r.stemmerSupport>"u")throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");r.it=function(){this.pipeline.reset(),this.pipeline.add(r.it.trimmer,r.it.stopWordFilter,r.it.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(r.it.trimmer,r.it.stemmer))},r.it.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA--",r.it.trimmer=r.trimmerSupport.generateTrimmer(r.it.wordCharacters),r.Pipeline.registerFunction(r.it.trimmer,"trimmer-it"),r.it.stemmer=function(){var n=r.stemmerSupport.Among,i=r.stemmerSupport.SnowballProgram,a=new function(){var o=[new n("",-1,7),new n("qu",0,6),new n("á",0,1),new n("é",0,2),new n("í",0,3),new n("ó",0,4),new n("ú",0,5)],l=[new n("",-1,3),new n("I",0,1),new n("U",0,2)],u=[new n("la",-1,-1),new n("cela",0,-1),new n("gliela",0,-1),new n("mela",0,-1),new n("tela",0,-1),new n("vela",0,-1),new n("le",-1,-1),new n("cele",6,-1),new n("gliele",6,-1),new n("mele",6,-1),new n("tele",6,-1),new n("vele",6,-1),new n("ne",-1,-1),new n("cene",12,-1),new n("gliene",12,-1),new n("mene",12,-1),new n("sene",12,-1),new n("tene",12,-1),new n("vene",12,-1),new n("ci",-1,-1),new n("li",-1,-1),new n("celi",20,-1),new n("glieli",20,-1),new n("meli",20,-1),new n("teli",20,-1),new n("veli",20,-1),new n("gli",20,-1),new n("mi",-1,-1),new n("si",-1,-1),new n("ti",-1,-1),new n("vi",-1,-1),new n("lo",-1,-1),new n("celo",31,-1),new n("glielo",31,-1),new n("melo",31,-1),new n("telo",31,-1),new n("velo",31,-1)],c=[new n("ando",-1,1),new n("endo",-1,1),new n("ar",-1,2),new n("er",-1,2),new n("ir",-1,2)],d=[new n("ic",-1,-1),new n("abil",-1,-1),new n("os",-1,-1),new n("iv",-1,1)],p=[new n("ic",-1,1),new n("abil",-1,1),new n("iv",-1,1)],m=[new n("ica",-1,1),new n("logia",-1,3),new n("osa",-1,1),new n("ista",-1,1),new n("iva",-1,9),new n("anza",-1,1),new n("enza",-1,5),new n("ice",-1,1),new n("atrice",7,1),new n("iche",-1,1),new n("logie",-1,3),new n("abile",-1,1),new n("ibile",-1,1),new n("usione",-1,4),new n("azione",-1,2),new n("uzione",-1,4),new n("atore",-1,2),new n("ose",-1,1),new n("ante",-1,1),new n("mente",-1,1),new n("amente",19,7),new n("iste",-1,1),new n("ive",-1,9),new n("anze",-1,1),new n("enze",-1,5),new n("ici",-1,1),new n("atrici",25,1),new n("ichi",-1,1),new n("abili",-1,1),new n("ibili",-1,1),new n("ismi",-1,1),new n("usioni",-1,4),new n("azioni",-1,2),new n("uzioni",-1,4),new n("atori",-1,2),new n("osi",-1,1),new n("anti",-1,1),new n("amenti",-1,6),new n("imenti",-1,6),new n("isti",-1,1),new n("ivi",-1,9),new n("ico",-1,1),new n("ismo",-1,1),new n("oso",-1,1),new n("amento",-1,6),new n("imento",-1,6),new n("ivo",-1,9),new n("ità",-1,8),new n("istà",-1,1),new n("istè",-1,1),new n("istì",-1,1)],w=[new n("isca",-1,1),new n("enda",-1,1),new n("ata",-1,1),new n("ita",-1,1),new n("uta",-1,1),new n("ava",-1,1),new n("eva",-1,1),new n("iva",-1,1),new n("erebbe",-1,1),new n("irebbe",-1,1),new n("isce",-1,1),new n("ende",-1,1),new n("are",-1,1),new n("ere",-1,1),new n("ire",-1,1),new n("asse",-1,1),new n("ate",-1,1),new n("avate",16,1),new n("evate",16,1),new n("ivate",16,1),new n("ete",-1,1),new n("erete",20,1),new n("irete",20,1),new n("ite",-1,1),new n("ereste",-1,1),new n("ireste",-1,1),new n("ute",-1,1),new n("erai",-1,1),new n("irai",-1,1),new n("isci",-1,1),new n("endi",-1,1),new n("erei",-1,1),new n("irei",-1,1),new n("assi",-1,1),new n("ati",-1,1),new n("iti",-1,1),new n("eresti",-1,1),new n("iresti",-1,1),new n("uti",-1,1),new n("avi",-1,1),new n("evi",-1,1),new n("ivi",-1,1),new n("isco",-1,1),new n("ando",-1,1),new n("endo",-1,1),new n("Yamo",-1,1),new n("iamo",-1,1),new n("avamo",-1,1),new n("evamo",-1,1),new n("ivamo",-1,1),new n("eremo",-1,1),new n("iremo",-1,1),new n("assimo",-1,1),new n("ammo",-1,1),new n("emmo",-1,1),new n("eremmo",54,1),new n("iremmo",54,1),new n("immo",-1,1),new n("ano",-1,1),new n("iscano",58,1),new n("avano",58,1),new n("evano",58,1),new n("ivano",58,1),new n("eranno",-1,1),new n("iranno",-1,1),new n("ono",-1,1),new n("iscono",65,1),new n("arono",65,1),new n("erono",65,1),new n("irono",65,1),new n("erebbero",-1,1),new n("irebbero",-1,1),new n("assero",-1,1),new n("essero",-1,1),new n("issero",-1,1),new n("ato",-1,1),new n("ito",-1,1),new n("uto",-1,1),new n("avo",-1,1),new n("evo",-1,1),new n("ivo",-1,1),new n("ar",-1,1),new n("ir",-1,1),new n("erà",-1,1),new n("irà",-1,1),new n("erò",-1,1),new n("irò",-1,1)],g=[17,65,16,0,0,0,0,0,0,0,0,0,0,0,0,128,128,8,2,1],_=[17,65,0,0,0,0,0,0,0,0,0,0,0,0,0,128,128,8,2],E=[17],x,b,C,v=new i;this.setCurrent=function(z){v.setCurrent(z)},this.getCurrent=function(){return v.getCurrent()};function k(z,B,se){return v.eq_s(1,z)&&(v.ket=v.cursor,v.in_grouping(g,97,249))?(v.slice_from(B),v.cursor=se,!0):!1}function T(){for(var z,B=v.cursor,se,de,me;;){if(v.bra=v.cursor,z=v.find_among(o,7),z)switch(v.ket=v.cursor,z){case 1:v.slice_from("à");continue;case 2:v.slice_from("è");continue;case 3:v.slice_from("ì");continue;case 4:v.slice_from("ò");continue;case 5:v.slice_from("ù");continue;case 6:v.slice_from("qU");continue;case 7:if(v.cursor>=v.limit)break;v.cursor++;continue}break}for(v.cursor=B;;)for(se=v.cursor;de=v.cursor,!(v.in_grouping(g,97,249)&&(v.bra=v.cursor,me=v.cursor,k("u","U",de)||(v.cursor=me,k("i","I",de))));){if(v.cursor=de,v.cursor>=v.limit){v.cursor=se;return}v.cursor++}}function N(z){if(v.cursor=z,!v.in_grouping(g,97,249))return!1;for(;!v.out_grouping(g,97,249);){if(v.cursor>=v.limit)return!1;v.cursor++}return!0}function M(){if(v.in_grouping(g,97,249)){var z=v.cursor;if(v.out_grouping(g,97,249)){for(;!v.in_grouping(g,97,249);){if(v.cursor>=v.limit)return N(z);v.cursor++}return!0}return N(z)}return!1}function j(){var z=v.cursor,B;if(!M()){if(v.cursor=z,!v.out_grouping(g,97,249))return;if(B=v.cursor,v.out_grouping(g,97,249)){for(;!v.in_grouping(g,97,249);){if(v.cursor>=v.limit){v.cursor=B,v.in_grouping(g,97,249)&&v.cursor<v.limit&&v.cursor++;return}v.cursor++}C=v.cursor;return}if(v.cursor=B,!v.in_grouping(g,97,249)||v.cursor>=v.limit)return;v.cursor++}C=v.cursor}function D(){for(;!v.in_grouping(g,97,249);){if(v.cursor>=v.limit)return!1;v.cursor++}for(;!v.out_grouping(g,97,249);){if(v.cursor>=v.limit)return!1;v.cursor++}return!0}function $(){var z=v.cursor;C=v.limit,b=C,x=C,j(),v.cursor=z,D()&&(b=v.cursor,D()&&(x=v.cursor))}function X(){for(var z;v.bra=v.cursor,z=v.find_among(l,3),!!z;)switch(v.ket=v.cursor,z){case 1:v.slice_from("i");break;case 2:v.slice_from("u");break;case 3:if(v.cursor>=v.limit)return;v.cursor++;break}}function W(){return C<=v.cursor}function H(){return b<=v.cursor}function V(){return x<=v.cursor}function K(){var z;if(v.ket=v.cursor,v.find_among_b(u,37)&&(v.bra=v.cursor,z=v.find_among_b(c,5),z&&W()))switch(z){case 1:v.slice_del();break;case 2:v.slice_from("e");break}}function Y(){var z;if(v.ket=v.cursor,z=v.find_among_b(m,51),!z)return!1;switch(v.bra=v.cursor,z){case 1:if(!V())return!1;v.slice_del();break;case 2:if(!V())return!1;v.slice_del(),v.ket=v.cursor,v.eq_s_b(2,"ic")&&(v.bra=v.cursor,V()&&v.slice_del());break;case 3:if(!V())return!1;v.slice_from("log");break;case 4:if(!V())return!1;v.slice_from("u");break;case 5:if(!V())return!1;v.slice_from("ente");break;case 6:if(!W())return!1;v.slice_del();break;case 7:if(!H())return!1;v.slice_del(),v.ket=v.cursor,z=v.find_among_b(d,4),z&&(v.bra=v.cursor,V()&&(v.slice_del(),z==1&&(v.ket=v.cursor,v.eq_s_b(2,"at")&&(v.bra=v.cursor,V()&&v.slice_del()))));break;case 8:if(!V())return!1;v.slice_del(),v.ket=v.cursor,z=v.find_among_b(p,3),z&&(v.bra=v.cursor,z==1&&V()&&v.slice_del());break;case 9:if(!V())return!1;v.slice_del(),v.ket=v.cursor,v.eq_s_b(2,"at")&&(v.bra=v.cursor,V()&&(v.slice_del(),v.ket=v.cursor,v.eq_s_b(2,"ic")&&(v.bra=v.cursor,V()&&v.slice_del())));break}return!0}function q(){var z,B;v.cursor>=C&&(B=v.limit_backward,v.limit_backward=C,v.ket=v.cursor,z=v.find_among_b(w,87),z&&(v.bra=v.cursor,z==1&&v.slice_del()),v.limit_backward=B)}function F(){var z=v.limit-v.cursor;if(v.ket=v.cursor,v.in_grouping_b(_,97,242)&&(v.bra=v.cursor,W()&&(v.slice_del(),v.ket=v.cursor,v.eq_s_b(1,"i")&&(v.bra=v.cursor,W())))){v.slice_del();return}v.cursor=v.limit-z}function G(){F(),v.ket=v.cursor,v.eq_s_b(1,"h")&&(v.bra=v.cursor,v.in_grouping_b(E,99,103)&&W()&&v.slice_del())}this.stem=function(){var z=v.cursor;return T(),v.cursor=z,$(),v.limit_backward=z,v.cursor=v.limit,K(),v.cursor=v.limit,Y()||(v.cursor=v.limit,q()),v.cursor=v.limit,G(),v.cursor=v.limit_backward,X(),!0}};return function(s){return typeof s.update=="function"?s.update(function(o){return a.setCurrent(o),a.stem(),a.getCurrent()}):(a.setCurrent(s),a.stem(),a.getCurrent())}}(),r.Pipeline.registerFunction(r.it.stemmer,"stemmer-it"),r.it.stopWordFilter=r.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à avrò 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à farò 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é più quale quanta quante quanti quanto quella quelle quelli quello questa queste questi questo sarai saranno sarebbe sarebbero sarei saremmo saremo sareste saresti sarete sarà sarò se sei si sia siamo siano siate siete sono sta stai stando stanno starai staranno starebbe starebbero starei staremmo staremo stareste staresti starete starà starò 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 è".split(" ")),r.Pipeline.registerFunction(r.it.stopWordFilter,"stopWordFilter-it")}})}(Ap)),Ap.exports}var uue=lue();const cue=yn(uue);var Tp={exports:{}};/*!
* Lunr languages, `Russian` language
* https://github.com/MihaiValentin/lunr-languages
*
* Copyright 2014, Mihai Valentin
* http://www.mozilla.org/MPL/
*/var fue=Tp.exports,cI;function due(){return cI||(cI=1,function(e,t){(function(r,n){e.exports=n()})(fue,function(){return function(r){if(typeof r>"u")throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(typeof r.stemmerSupport>"u")throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");r.ru=function(){this.pipeline.reset(),this.pipeline.add(r.ru.trimmer,r.ru.stopWordFilter,r.ru.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(r.ru.trimmer,r.ru.stemmer))},r.ru.wordCharacters="Ѐ-҄҇-ԯᴫᵸⷠ-ⷿꙀ-ꚟ︮︯",r.ru.trimmer=r.trimmerSupport.generateTrimmer(r.ru.wordCharacters),r.Pipeline.registerFunction(r.ru.trimmer,"trimmer-ru"),r.ru.stemmer=function(){var n=r.stemmerSupport.Among,i=r.stemmerSupport.SnowballProgram,a=new function(){var o=[new n("в",-1,1),new n("ив",0,2),new n("ыв",0,2),new n("вши",-1,1),new n("ивши",3,2),new n("ывши",3,2),new n("вшись",-1,1),new n("ившись",6,2),new n("ывшись",6,2)],l=[new n("ее",-1,1),new n("ие",-1,1),new n("ое",-1,1),new n("ые",-1,1),new n("ими",-1,1),new n("ыми",-1,1),new n("ей",-1,1),new n("ий",-1,1),new n("ой",-1,1),new n("ый",-1,1),new n("ем",-1,1),new n("им",-1,1),new n("ом",-1,1),new n("ым",-1,1),new n("его",-1,1),new n("ого",-1,1),new n("ему",-1,1),new n("ому",-1,1),new n("их",-1,1),new n("ых",-1,1),new n("ею",-1,1),new n("ою",-1,1),new n("ую",-1,1),new n("юю",-1,1),new n("ая",-1,1),new n("яя",-1,1)],u=[new n("ем",-1,1),new n("нн",-1,1),new n("вш",-1,1),new n("ивш",2,2),new n("ывш",2,2),new n("щ",-1,1),new n("ющ",5,1),new n("ующ",6,2)],c=[new n("сь",-1,1),new n("ся",-1,1)],d=[new n("ла",-1,1),new n("ила",0,2),new n("ыла",0,2),new n("на",-1,1),new n("ена",3,2),new n("ете",-1,1),new n("ите",-1,2),new n("йте",-1,1),new n("ейте",7,2),new n("уйте",7,2),new n("ли",-1,1),new n("или",10,2),new n("ыли",10,2),new n("й",-1,1),new n("ей",13,2),new n("уй",13,2),new n("л",-1,1),new n("ил",16,2),new n("ыл",16,2),new n("ем",-1,1),new n("им",-1,2),new n("ым",-1,2),new n("н",-1,1),new n("ен",22,2),new n("ло",-1,1),new n("ило",24,2),new n("ыло",24,2),new n("но",-1,1),new n("ено",27,2),new n("нно",27,1),new n("ет",-1,1),new n("ует",30,2),new n("ит",-1,2),new n("ыт",-1,2),new n("ют",-1,1),new n("уют",34,2),new n("ят",-1,2),new n("ны",-1,1),new n("ены",37,2),new n("ть",-1,1),new n("ить",39,2),new n("ыть",39,2),new n("ешь",-1,1),new n("ишь",-1,2),new n("ю",-1,2),new n("ую",44,2)],p=[new n("а",-1,1),new n("ев",-1,1),new n("ов",-1,1),new n("е",-1,1),new n("ие",3,1),new n("ье",3,1),new n("и",-1,1),new n("еи",6,1),new n("ии",6,1),new n("ами",6,1),new n("ями",6,1),new n("иями",10,1),new n("й",-1,1),new n("ей",12,1),new n("ией",13,1),new n("ий",12,1),new n("ой",12,1),new n("ам",-1,1),new n("ем",-1,1),new n("ием",18,1),new n("ом",-1,1),new n("ям",-1,1),new n("иям",21,1),new n("о",-1,1),new n("у",-1,1),new n("ах",-1,1),new n("ях",-1,1),new n("иях",26,1),new n("ы",-1,1),new n("ь",-1,1),new n("ю",-1,1),new n("ию",30,1),new n("ью",30,1),new n("я",-1,1),new n("ия",33,1),new n("ья",33,1)],m=[new n("ост",-1,1),new n("ость",-1,1)],w=[new n("ейше",-1,1),new n("н",-1,2),new n("ейш",-1,1),new n("ь",-1,3)],g=[33,65,8,232],_,E,x=new i;this.setCurrent=function(K){x.setCurrent(K)},this.getCurrent=function(){return x.getCurrent()};function b(){for(;!x.in_grouping(g,1072,1103);){if(x.cursor>=x.limit)return!1;x.cursor++}return!0}function C(){for(;!x.out_grouping(g,1072,1103);){if(x.cursor>=x.limit)return!1;x.cursor++}return!0}function v(){E=x.limit,_=E,b()&&(E=x.cursor,C()&&b()&&C()&&(_=x.cursor))}function k(){return _<=x.cursor}function T(K,Y){var q,F;if(x.ket=x.cursor,q=x.find_among_b(K,Y),q){switch(x.bra=x.cursor,q){case 1:if(F=x.limit-x.cursor,!x.eq_s_b(1,"а")&&(x.cursor=x.limit-F,!x.eq_s_b(1,"я")))return!1;case 2:x.slice_del();break}return!0}return!1}function N(){return T(o,9)}function M(K,Y){var q;return x.ket=x.cursor,q=x.find_among_b(K,Y),q?(x.bra=x.cursor,q==1&&x.slice_del(),!0):!1}function j(){return M(l,26)}function D(){return j()?(T(u,8),!0):!1}function $(){return M(c,2)}function X(){return T(d,46)}function W(){M(p,36)}function H(){var K;x.ket=x.cursor,K=x.find_among_b(m,2),K&&(x.bra=x.cursor,k()&&K==1&&x.slice_del())}function V(){var K;if(x.ket=x.cursor,K=x.find_among_b(w,4),K)switch(x.bra=x.cursor,K){case 1:if(x.slice_del(),x.ket=x.cursor,!x.eq_s_b(1,"н"))break;x.bra=x.cursor;case 2:if(!x.eq_s_b(1,"н"))break;case 3:x.slice_del();break}}this.stem=function(){return v(),x.cursor=x.limit,x.cursor<E?!1:(x.limit_backward=E,N()||(x.cursor=x.limit,$()||(x.cursor=x.limit),D()||(x.cursor=x.limit,X()||(x.cursor=x.limit,W()))),x.cursor=x.limit,x.ket=x.cursor,x.eq_s_b(1,"и")?(x.bra=x.cursor,x.slice_del()):x.cursor=x.limit,H(),x.cursor=x.limit,V(),!0)}};return function(s){return typeof s.update=="function"?s.update(function(o){return a.setCurrent(o),a.stem(),a.getCurrent()}):(a.setCurrent(s),a.stem(),a.getCurrent())}}(),r.Pipeline.registerFunction(r.ru.stemmer,"stemmer-ru"),r.ru.stopWordFilter=r.generateStopWordFilter("алло без близко более больше будем будет будете будешь будто буду будут будь бы бывает бывь был была были было быть в важная важное важные важный вам вами вас ваш ваша ваше ваши вверх вдали вдруг ведь везде весь вниз внизу во вокруг вон восемнадцатый восемнадцать восемь восьмой вот впрочем времени время все всегда всего всем всеми всему всех всею всю всюду вся всё второй вы г где говорил говорит год года году да давно даже далеко дальше даром два двадцатый двадцать две двенадцатый двенадцать двух девятнадцатый девятнадцать девятый девять действительно дел день десятый десять для до довольно долго должно другая другие других друго другое другой е его ее ей ему если есть еще ещё ею её ж же жизнь за занят занята занято заняты затем зато зачем здесь значит и из или им именно иметь ими имя иногда их к каждая каждое каждые каждый кажется как какая какой кем когда кого ком кому конечно которая которого которой которые который которых кроме кругом кто куда лет ли лишь лучше люди м мало между меля менее меньше меня миллионов мимо мира мне много многочисленная многочисленное многочисленные многочисленный мной мною мог могут мож может можно можхо мои мой мор мочь моя моё мы на наверху над надо назад наиболее наконец нам нами нас начала наш наша наше наши не него недавно недалеко нее ней нельзя нем немного нему непрерывно нередко несколько нет нею неё ни нибудь ниже низко никогда никуда ними них ничего но ну нужно нх о об оба обычно один одиннадцатый одиннадцать однажды однако одного одной около он она они оно опять особенно от отовсюду отсюда очень первый перед по под пожалуйста позже пока пор пора после посреди потом потому почему почти прекрасно при про просто против процентов пятнадцатый пятнадцать пятый пять раз разве рано раньше рядом с сам сама сами самим самими самих само самого самой самом самому саму свое своего своей свои своих свою сеаой себе себя сегодня седьмой сейчас семнадцатый семнадцать семь сих сказал сказала сказать сколько слишком сначала снова со собой собою совсем спасибо стал суть т та так такая также такие такое такой там твой твоя твоё те тебе тебя тем теми теперь тех то тобой тобою тогда того тоже только том тому тот тою третий три тринадцатый тринадцать ту туда тут ты тысяч у уж уже уметь хорошо хотеть хоть хотя хочешь часто чаще чего человек чем чему через четвертый четыре четырнадцатый четырнадцать что чтоб чтобы чуть шестнадцатый шестнадцать шестой шесть эта эти этим этими этих это этого этой этом этому этот эту я \uFEFFа".split(" ")),r.Pipeline.registerFunction(r.ru.stopWordFilter,"stopWordFilter-ru")}})}(Tp)),Tp.exports}var hue=due();const pue=yn(hue);var Ip={exports:{}};/*!
* Snowball JavaScript Library v0.3
* http://code.google.com/p/urim/
* http://snowball.tartarus.org/
*
* Copyright 2010, Oleg Mazko
* http://www.mozilla.org/MPL/
*/var mue=Ip.exports,fI;function gue(){return fI||(fI=1,function(e,t){(function(r,n){e.exports=n()})(mue,function(){return function(r){r.stemmerSupport={Among:function(n,i,a,s){if(this.toCharArray=function(o){for(var l=o.length,u=new Array(l),c=0;c<l;c++)u[c]=o.charCodeAt(c);return u},!n&&n!=""||!i&&i!=0||!a)throw"Bad Among initialisation: s:"+n+", substring_i: "+i+", result: "+a;this.s_size=n.length,this.s=this.toCharArray(n),this.substring_i=i,this.result=a,this.method=s},SnowballProgram:function(){var n;return{bra:0,ket:0,limit:0,cursor:0,limit_backward:0,setCurrent:function(i){n=i,this.cursor=0,this.limit=i.length,this.limit_backward=0,this.bra=this.cursor,this.ket=this.limit},getCurrent:function(){var i=n;return n=null,i},in_grouping:function(i,a,s){if(this.cursor<this.limit){var o=n.charCodeAt(this.cursor);if(o<=s&&o>=a&&(o-=a,i[o>>3]&1<<(o&7)))return this.cursor++,!0}return!1},in_grouping_b:function(i,a,s){if(this.cursor>this.limit_backward){var o=n.charCodeAt(this.cursor-1);if(o<=s&&o>=a&&(o-=a,i[o>>3]&1<<(o&7)))return this.cursor--,!0}return!1},out_grouping:function(i,a,s){if(this.cursor<this.limit){var o=n.charCodeAt(this.cursor);if(o>s||o<a)return this.cursor++,!0;if(o-=a,!(i[o>>3]&1<<(o&7)))return this.cursor++,!0}return!1},out_grouping_b:function(i,a,s){if(this.cursor>this.limit_backward){var o=n.charCodeAt(this.cursor-1);if(o>s||o<a)return this.cursor--,!0;if(o-=a,!(i[o>>3]&1<<(o&7)))return this.cursor--,!0}return!1},eq_s:function(i,a){if(this.limit-this.cursor<i)return!1;for(var s=0;s<i;s++)if(n.charCodeAt(this.cursor+s)!=a.charCodeAt(s))return!1;return this.cursor+=i,!0},eq_s_b:function(i,a){if(this.cursor-this.limit_backward<i)return!1;for(var s=0;s<i;s++)if(n.charCodeAt(this.cursor-i+s)!=a.charCodeAt(s))return!1;return this.cursor-=i,!0},find_among:function(i,a){for(var s=0,o=a,l=this.cursor,u=this.limit,c=0,d=0,p=!1;;){for(var m=s+(o-s>>1),w=0,g=c<d?c:d,_=i[m],E=g;E<_.s_size;E++){if(l+g==u){w=-1;break}if(w=n.charCodeAt(l+g)-_.s[E],w)break;g++}if(w<0?(o=m,d=g):(s=m,c=g),o-s<=1){if(s>0||o==s||p)break;p=!0}}for(;;){var _=i[s];if(c>=_.s_size){if(this.cursor=l+_.s_size,!_.method)return _.result;var x=_.method();if(this.cursor=l+_.s_size,x)return _.result}if(s=_.substring_i,s<0)return 0}},find_among_b:function(i,a){for(var s=0,o=a,l=this.cursor,u=this.limit_backward,c=0,d=0,p=!1;;){for(var m=s+(o-s>>1),w=0,g=c<d?c:d,_=i[m],E=_.s_size-1-g;E>=0;E--){if(l-g==u){w=-1;break}if(w=n.charCodeAt(l-1-g)-_.s[E],w)break;g++}if(w<0?(o=m,d=g):(s=m,c=g),o-s<=1){if(s>0||o==s||p)break;p=!0}}for(;;){var _=i[s];if(c>=_.s_size){if(this.cursor=l-_.s_size,!_.method)return _.result;var x=_.method();if(this.cursor=l-_.s_size,x)return _.result}if(s=_.substring_i,s<0)return 0}},replace_s:function(i,a,s){var o=s.length-(a-i),l=n.substring(0,i),u=n.substring(a);return n=l+s+u,this.limit+=o,this.cursor>=a?this.cursor+=o:this.cursor>i&&(this.cursor=i),o},slice_check:function(){if(this.bra<0||this.bra>this.ket||this.ket>this.limit||this.limit>n.length)throw"faulty slice operation"},slice_from:function(i){this.slice_check(),this.replace_s(this.bra,this.ket,i)},slice_del:function(){this.slice_from("")},insert:function(i,a,s){var o=this.replace_s(i,a,s);i<=this.bra&&(this.bra+=o),i<=this.ket&&(this.ket+=o)},slice_to:function(){return this.slice_check(),n.substring(this.bra,this.ket)},eq_v_b:function(i){return this.eq_s_b(i.length,i)}}},addQueryParserWildcardNormalizer:function(n,i){if(!(!n.Index||!n.Index.prototype||!n.Index.prototype.query||!n.QueryParser||!n.QueryParser.parseTerm||!n.QueryLexer)){this.queryParserWildcardNormalizers||(this.queryParserWildcardNormalizers=[]);for(var a=0;a<this.queryParserWildcardNormalizers.length;a++)if(this.queryParserWildcardNormalizers[a].label===i.label)return;if(this.queryParserWildcardNormalizers.push(i),!this.queryParserWildcardNormalizerApplied){var s=this,o=n.Index.prototype.query,l=n.QueryParser.parseTerm;n.Index.prototype.query=function(u){var c=this;return o.call(this,function(d){return d._lunrLanguagesSearchPipeline=c.pipeline,u.call(this,d)})},n.QueryParser.parseTerm=function(u){var c=u.consumeLexeme;u.consumeLexeme=function(){var d=c.call(u);return d&&d.type===n.QueryLexer.TERM&&d.str.indexOf("*")!==-1?{type:d.type,str:s.applyQueryParserWildcardNormalizers(d.str,u.query),start:d.start,end:d.end}:d};try{return l(u)}finally{u.consumeLexeme=c}},this.queryParserWildcardNormalizerApplied=!0}}},applyQueryParserWildcardNormalizers:function(n,i){for(var a=this.queryParserWildcardNormalizers||[],s=i&&i._lunrLanguagesSearchPipeline,o=0;o<a.length;o++)s&&!this.pipelineContainsFunction(s,a[o].pipelineFunctionLabel)||(n=a[o](n));return n},pipelineContainsFunction:function(n,i){if(!i)return!0;if(!n._stack)return!1;for(var a=0;a<n._stack.length;a++)if(n._stack[a].label===i)return!0;return!1}},r.trimmerSupport={generateTrimmer:function(n){var i=n+"0-9",a=new RegExp("^[^"+i+"]+"),s=new RegExp("[^"+i+"]+$");return function(o){return typeof o.update=="function"?o.update(function(l){return l.replace(a,"").replace(s,"")}):o.replace(a,"").replace(s,"")}}}}})}(Ip)),Ip.exports}var vue=gue();const yue=yn(vue);yue(di);nue(di);oue(di);cue(di);pue(di);const wue=8;function dI(e){return e.toLocaleLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\u0142/g,"l")}function _ue(e,t){return e.score!==t.score?t.score-e.score:Yle(e.ref,t.ref)}function bue(e,t,r){return(e.fams||[]).map(n=>r.get(n)).map(n=>n&&n.husb).map(n=>n&&t.get(n)).map(n=>n&&n.lastName).join(" ")}class xue{constructor(t){this.indiMap=Om(t),this.famMap=Jb(t)}initialize(){const t=this;this.index=di(function(){t.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}),t.indiMap.forEach(r=>{const n=[r.firstName,r.lastName].join(" "),i=bue(r,t.indiMap,t.famMap);this.add({id:r.id,name:n,normalizedName:dI(n),spouseLastName:i,normalizedSpouseLastName:dI(i)})})})}initMultiLingualLunrWithoutTrimmer(t,r){const n=[],i=[];r.forEach(a=>{const s=di[a];a==="en"?(n.unshift(di.stopWordFilter),n.push(di.stemmer),i.push(di.stemmer)):(s.stopWordFilter&&n.unshift(s.stopWordFilter),s.stemmer&&(n.push(s.stemmer),i.push(s.stemmer)))}),t.pipeline.reset(),t.pipeline.add(...n),t.searchPipeline&&(t.searchPipeline.reset(),t.searchPipeline.add(...i))}search(t){const r=t.split(" ").filter(i=>!!i).map(i=>`${i} ${i}*`).join(" ");return this.index.search(r).sort(_ue).slice(0,wue).map(i=>({id:i.ref,indi:this.indiMap.get(i.ref)||{id:i.ref,firstName:"INDI NOT FOUND"}}))}}function XL(e){const t=new xue(e);return t.initialize(),t}function Eue(e){const t=[e.indi.firstName,e.indi.lastName].join(" ").trim();return e.id.length>8?t:O.jsxs(O.Fragment,{children:[t," ",O.jsxs("i",{children:["(",e.id,")"]})]})}function hI(e){const[t,r]=J.useState([]),[n,i]=J.useState(""),a=J.useRef(void 0),s=fr();function o(m){const w=eu(m.birth,s),g=eu(m.death,s);return g?`${w} ${g}`:w}function l(m){return{id:m.id,key:m.id,title:Eue(m),description:o(m.indi)}}function u(m){if(!m||!a.current)return;const w=a.current.search(m).map(g=>l(g));r(w)}const c=J.useRef(Vle(u,200));function d(m){vn("search_result_selected"),e.onSelection({id:m,generation:0}),i("")}function p(m){c.current(m),i(m||"")}return J.useEffect(()=>{a.current=XL(e.data)},[e.data]),O.jsx(yo,{onSearchChange:(m,w)=>p(w.value),onResultSelect:(m,w)=>d(w.result.id),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:n,id:"search"})}var c0={exports:{}},f0={exports:{}},pI;function Sue(){return pI||(pI=1,function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(r,n){return r<<n|r>>>32-n},rotr:function(r,n){return r<<32-n|r>>>n},endian:function(r){if(r.constructor==Number)return t.rotl(r,8)&16711935|t.rotl(r,24)&4278255360;for(var n=0;n<r.length;n++)r[n]=t.endian(r[n]);return r},randomBytes:function(r){for(var n=[];r>0;r--)n.push(Math.floor(Math.random()*256));return n},bytesToWords:function(r){for(var n=[],i=0,a=0;i<r.length;i++,a+=8)n[a>>>5]|=r[i]<<24-a%32;return n},wordsToBytes:function(r){for(var n=[],i=0;i<r.length*32;i+=8)n.push(r[i>>>5]>>>24-i%32&255);return n},bytesToHex:function(r){for(var n=[],i=0;i<r.length;i++)n.push((r[i]>>>4).toString(16)),n.push((r[i]&15).toString(16));return n.join("")},hexToBytes:function(r){for(var n=[],i=0;i<r.length;i+=2)n.push(parseInt(r.substr(i,2),16));return n},bytesToBase64:function(r){for(var n=[],i=0;i<r.length;i+=3)for(var a=r[i]<<16|r[i+1]<<8|r[i+2],s=0;s<4;s++)i*8+s*6<=r.length*8?n.push(e.charAt(a>>>6*(3-s)&63)):n.push("=");return n.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/ig,"");for(var n=[],i=0,a=0;i<r.length;a=++i%4)a!=0&&n.push((e.indexOf(r.charAt(i-1))&Math.pow(2,-2*a+8)-1)<<a*2|e.indexOf(r.charAt(i))>>>6-a*2);return n}};f0.exports=t}()),f0.exports}var d0,mI;function gI(){if(mI)return d0;mI=1;var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var r=[],n=0;n<t.length;n++)r.push(t.charCodeAt(n)&255);return r},bytesToString:function(t){for(var r=[],n=0;n<t.length;n++)r.push(String.fromCharCode(t[n]));return r.join("")}}};return d0=e,d0}/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var h0,vI;function Cue(){if(vI)return h0;vI=1,h0=function(r){return r!=null&&(e(r)||t(r)||!!r._isBuffer)};function e(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function t(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&e(r.slice(0,0))}return h0}var yI;function kue(){return yI||(yI=1,function(){var e=Sue(),t=gI().utf8,r=Cue(),n=gI().bin,i=function(a,s){a.constructor==String?s&&s.encoding==="binary"?a=n.stringToBytes(a):a=t.stringToBytes(a):r(a)?a=Array.prototype.slice.call(a,0):!Array.isArray(a)&&a.constructor!==Uint8Array&&(a=a.toString());for(var o=e.bytesToWords(a),l=a.length*8,u=1732584193,c=-271733879,d=-1732584194,p=271733878,m=0;m<o.length;m++)o[m]=(o[m]<<8|o[m]>>>24)&16711935|(o[m]<<24|o[m]>>>8)&4278255360;o[l>>>5]|=128<<l%32,o[(l+64>>>9<<4)+14]=l;for(var w=i._ff,g=i._gg,_=i._hh,E=i._ii,m=0;m<o.length;m+=16){var x=u,b=c,C=d,v=p;u=w(u,c,d,p,o[m+0],7,-680876936),p=w(p,u,c,d,o[m+1],12,-389564586),d=w(d,p,u,c,o[m+2],17,606105819),c=w(c,d,p,u,o[m+3],22,-1044525330),u=w(u,c,d,p,o[m+4],7,-176418897),p=w(p,u,c,d,o[m+5],12,1200080426),d=w(d,p,u,c,o[m+6],17,-1473231341),c=w(c,d,p,u,o[m+7],22,-45705983),u=w(u,c,d,p,o[m+8],7,1770035416),p=w(p,u,c,d,o[m+9],12,-1958414417),d=w(d,p,u,c,o[m+10],17,-42063),c=w(c,d,p,u,o[m+11],22,-1990404162),u=w(u,c,d,p,o[m+12],7,1804603682),p=w(p,u,c,d,o[m+13],12,-40341101),d=w(d,p,u,c,o[m+14],17,-1502002290),c=w(c,d,p,u,o[m+15],22,1236535329),u=g(u,c,d,p,o[m+1],5,-165796510),p=g(p,u,c,d,o[m+6],9,-1069501632),d=g(d,p,u,c,o[m+11],14,643717713),c=g(c,d,p,u,o[m+0],20,-373897302),u=g(u,c,d,p,o[m+5],5,-701558691),p=g(p,u,c,d,o[m+10],9,38016083),d=g(d,p,u,c,o[m+15],14,-660478335),c=g(c,d,p,u,o[m+4],20,-405537848),u=g(u,c,d,p,o[m+9],5,568446438),p=g(p,u,c,d,o[m+14],9,-1019803690),d=g(d,p,u,c,o[m+3],14,-187363961),c=g(c,d,p,u,o[m+8],20,1163531501),u=g(u,c,d,p,o[m+13],5,-1444681467),p=g(p,u,c,d,o[m+2],9,-51403784),d=g(d,p,u,c,o[m+7],14,1735328473),c=g(c,d,p,u,o[m+12],20,-1926607734),u=_(u,c,d,p,o[m+5],4,-378558),p=_(p,u,c,d,o[m+8],11,-2022574463),d=_(d,p,u,c,o[m+11],16,1839030562),c=_(c,d,p,u,o[m+14],23,-35309556),u=_(u,c,d,p,o[m+1],4,-1530992060),p=_(p,u,c,d,o[m+4],11,1272893353),d=_(d,p,u,c,o[m+7],16,-155497632),c=_(c,d,p,u,o[m+10],23,-1094730640),u=_(u,c,d,p,o[m+13],4,681279174),p=_(p,u,c,d,o[m+0],11,-358537222),d=_(d,p,u,c,o[m+3],16,-722521979),c=_(c,d,p,u,o[m+6],23,76029189),u=_(u,c,d,p,o[m+9],4,-640364487),p=_(p,u,c,d,o[m+12],11,-421815835),d=_(d,p,u,c,o[m+15],16,530742520),c=_(c,d,p,u,o[m+2],23,-995338651),u=E(u,c,d,p,o[m+0],6,-198630844),p=E(p,u,c,d,o[m+7],10,1126891415),d=E(d,p,u,c,o[m+14],15,-1416354905),c=E(c,d,p,u,o[m+5],21,-57434055),u=E(u,c,d,p,o[m+12],6,1700485571),p=E(p,u,c,d,o[m+3],10,-1894986606),d=E(d,p,u,c,o[m+10],15,-1051523),c=E(c,d,p,u,o[m+1],21,-2054922799),u=E(u,c,d,p,o[m+8],6,1873313359),p=E(p,u,c,d,o[m+15],10,-30611744),d=E(d,p,u,c,o[m+6],15,-1560198380),c=E(c,d,p,u,o[m+13],21,1309151649),u=E(u,c,d,p,o[m+4],6,-145523070),p=E(p,u,c,d,o[m+11],10,-1120210379),d=E(d,p,u,c,o[m+2],15,718787259),c=E(c,d,p,u,o[m+9],21,-343485551),u=u+x>>>0,c=c+b>>>0,d=d+C>>>0,p=p+v>>>0}return e.endian([u,c,d,p])};i._ff=function(a,s,o,l,u,c,d){var p=a+(s&o|~s&l)+(u>>>0)+d;return(p<<c|p>>>32-c)+s},i._gg=function(a,s,o,l,u,c,d){var p=a+(s&l|o&~l)+(u>>>0)+d;return(p<<c|p>>>32-c)+s},i._hh=function(a,s,o,l,u,c,d){var p=a+(s^o^l)+(u>>>0)+d;return(p<<c|p>>>32-c)+s},i._ii=function(a,s,o,l,u,c,d){var p=a+(o^(s|~l))+(u>>>0)+d;return(p<<c|p>>>32-c)+s},i._blocksize=16,i._digestsize=16,c0.exports=function(a,s){if(a==null)throw new Error("Illegal argument "+a);var o=e.wordsToBytes(i(a,s));return s&&s.asBytes?o:s&&s.asString?n.bytesToString(o):e.bytesToHex(o)}}()),c0.exports}var Aue=kue();const wI=yn(Aue),Tue=/Android|iPhone|iPad|iPod/i.test(navigator.userAgent);function Iue(e){const t=mo(),r=hr();async function n(a){const s=a.target.files;if(!s||!s.length)return;const o=Array.from(s);a.target.value="",vn("upload_files_selected",{event_value:s.length});const l=o.length===1?o[0]:o.find(g=>g.name.toLowerCase().endsWith(".ged"))||o[0],{gedcom:u,images:c}=await wF(l);o.filter(g=>g.name!==l.name&&Nm(g.name)).forEach(g=>c.set(g.name.toLowerCase(),URL.createObjectURL(g)));const d=Array.from(c.keys()).sort().join("|"),p=wI(wI(u)+d),w=dn.parse(r.search).file===p;t({pathname:"/view",search:dn.stringify({file:p})},{replace:w,state:{data:u,images:c}})}const i=O.jsxs(O.Fragment,{children:[O.jsx(Je,{name:"folder open"}),O.jsx(Re,{id:"menu.open_file",defaultMessage:"Open file"})]});return O.jsxs(O.Fragment,{children:[e.menuType===qr.Menu?O.jsx("label",{htmlFor:"fileInput",children:O.jsx(Kt.Item,{as:"a",children:i})}):O.jsx(Ze.Item,{as:"label",htmlFor:"fileInput",children:i}),O.jsx("input",{className:"hidden",type:"file",accept:Tue?void 0:".ged,.gdz,.gedzip,.zip,.jpg,.jpeg,.png,.gif,.webp",id:"fileInput",multiple:!0,onChange:n})]})}function Pue(e){const[t,r]=J.useState(!1),[n,i]=J.useState(""),a=J.useRef(null),s=mo();J.useEffect(()=>{var u;t&&(i(""),(u=a.current)==null||u.focus())},[t]);function o(){r(!1),n&&(vn("url_selected"),s({pathname:"/view",search:dn.stringify({url:n})}))}function l(){return O.jsxs(Yt,{open:t,onClose:()=>r(!1),centered:!1,children:[O.jsxs($t,{children:[O.jsx(Je,{name:"cloud download"}),O.jsx(Re,{id:"load_from_url.title",defaultMessage:"Load from URL"})]}),O.jsx(Yt.Content,{children:O.jsxs(Gt,{onSubmit:o,children:[O.jsx(Ji,{placeholder:"https://",fluid:!0,value:n,onChange:(u,c)=>i(c.value),ref:a}),O.jsx("p",{children:O.jsx(Re,{id:"load_from_url.comment",defaultMessage:"Data from the URL will be loaded through {link} to avoid CORS issues.",values:{link:O.jsx("a",{href:"https://topolaproxy.bieda.it/",children:"topolaproxy.bieda.it (cors-anywhere proxy)"})}})})]})}),O.jsxs(Yt.Actions,{children:[O.jsx(nn,{secondary:!0,onClick:()=>r(!1),children:O.jsx(Re,{id:"load_from_url.cancel",defaultMessage:"Cancel"})}),O.jsx(nn,{primary:!0,onClick:o,children:O.jsx(Re,{id:"load_from_url.load",defaultMessage:"Load"})})]})]})}return O.jsxs(O.Fragment,{children:[O.jsxs(au,{onClick:()=>r(!0),menuType:e.menuType,children:[O.jsx(Je,{name:"cloud download"}),O.jsx(Re,{id:"menu.load_from_url",defaultMessage:"Load from URL"})]}),l()]})}const nm=""+new URL("wikitree-B3ZIaA3X.png",import.meta.url).href;function p0(e){const[t,r]=J.useState(!1),[n,i]=J.useState(""),a=J.useRef(null),s=mo(),o=hr();J.useEffect(()=>{var d;t&&(i(""),(d=a.current)==null||d.focus())},[t]);function l(){if(r(!1),!n)return;vn("wikitree_id_selected");const d=dn.parse(o.search),p=d.standalone!==void 0?d.standalone:!0;s({pathname:"/view",search:dn.stringify({indi:n,source:"wikitree",standalone:p})})}function u(d,p){var m;d.preventDefault(),i(p),(m=a.current)==null||m.focus()}function c(){return O.jsxs(Yt,{open:t,onClose:()=>r(!1),centered:!1,children:[O.jsxs($t,{children:[O.jsx("img",{src:nm,alt:"WikiTree logo",style:{width:"32px",height:"32px"}}),O.jsx(Re,{id:"select_wikitree_id.title",defaultMessage:"Select WikiTree ID"})]}),O.jsx(Yt.Content,{children:O.jsxs(Gt,{onSubmit:l,children:[O.jsx("p",{children:O.jsx(Re,{id:"select_wikitree_id.comment",defaultMessage:"Enter a {wikiTreeLink} profile ID. Examples: {example1}, {example2}.",values:{wikiTreeLink:O.jsx("a",{href:"https://wikitree.com/",target:"_blank",rel:"noopener noreferrer",children:"WikiTree"}),example1:O.jsx("span",{onClick:d=>u(d,"Wojtyla-13"),className:"link-span",children:"Wojtyla-13"}),example2:O.jsx("span",{onClick:d=>u(d,"Skłodowska-2"),className:"link-span",children:"Skłodowska-2"})}})}),O.jsx(Ji,{fluid:!0,value:n,onChange:(d,p)=>i(p.value),ref:a})]})}),O.jsxs(Yt.Actions,{children:[O.jsx(nn,{secondary:!0,onClick:()=>r(!1),children:O.jsx(Re,{id:"select_wikitree_id.cancel",defaultMessage:"Cancel"})}),O.jsx(nn,{primary:!0,onClick:l,children:O.jsx(Re,{id:"select_wikitree_id.load",defaultMessage:"Load"})})]})]})}return O.jsxs(O.Fragment,{children:[O.jsxs(au,{menuType:e.menuType,onClick:()=>r(!0),children:[O.jsx("img",{src:nm,alt:"WikiTree logo",className:"menu-icon"}),O.jsx(Re,{id:"menu.select_wikitree_id",defaultMessage:"Select WikiTree ID"})]}),c()]})}function Rue(e){const t=fr();function r(){const s=`https://apps.wikitree.com/apps/wiech13/topola-viewer${window.location.hash}`;nu.navigateToLoginPage(s)}const n=nu.getLoggedInUserName();if(!n)return O.jsx(O.Fragment,{children:O.jsxs(au,{menuType:e.menuType,onClick:r,children:[O.jsx("img",{src:nm,alt:"WikiTree logo",className:"menu-icon"}),O.jsx(Re,{id:"menu.wikitree_login",defaultMessage:"Log in to WikiTree"})]})});const i=t.formatMessage({id:"menu.wikitree_popup_username",defaultMessage:"Logged in to WikiTree as {username}"},{username:n});return O.jsxs(au,{menuType:e.menuType,title:i,children:[O.jsx("img",{src:nm,alt:"WikiTree logo",className:"menu-icon"}),O.jsx(Re,{id:"menu.wikitree_logged_in",defaultMessage:"Logged in"})]})}function Oue(e){const t=mo(),r=hr();function n(p){const m=dn.parse(r.search);m.view!==p&&(m.view=p,r.search=dn.stringify(m),t(r))}function i(p){if(!e.showingChart||!e.data)return null;const m=O.jsxs(O.Fragment,{children:[O.jsxs(Ze.Item,{onClick:()=>n("hourglass"),children:[O.jsx(Je,{name:"hourglass"}),O.jsx(Re,{id:"menu.hourglass",defaultMessage:"Hourglass chart"})]}),e.allowAllRelativesChart?O.jsxs(Ze.Item,{onClick:()=>n("relatives"),children:[O.jsx(Je,{name:"users"}),O.jsx(Re,{id:"menu.relatives",defaultMessage:"All relatives"})]}):null,O.jsxs(Ze.Item,{onClick:()=>n("donatso"),children:[O.jsx(Je,{name:"users"}),O.jsx(Re,{id:"menu.donatso",defaultMessage:"Donatso family chart"})]}),O.jsxs(Ze.Item,{onClick:()=>n("fancy"),children:[O.jsx(Je,{name:"users"}),O.jsx(Re,{id:"menu.fancy",defaultMessage:"Fancy tree (experimental)"})]})]});switch(p){case 0:return O.jsxs(O.Fragment,{children:[O.jsxs(Kt.Item,{onClick:e.eventHandlers.onPrint,disabled:!e.allowPrintAndDownload,children:[O.jsx(Je,{name:"print"}),O.jsx(Re,{id:"menu.print",defaultMessage:"Print"})]}),O.jsx(Ze,{trigger:O.jsxs("div",{children:[O.jsx(Je,{name:"download"}),O.jsx(Re,{id:"menu.download",defaultMessage:"Download"})]}),className:"item",disabled:!e.allowPrintAndDownload,children:O.jsxs(Ze.Menu,{children:[O.jsx(Ze.Item,{onClick:e.eventHandlers.onDownloadPdf,children:O.jsx(Re,{id:"menu.pdf_file",defaultMessage:"PDF file"})}),O.jsx(Ze.Item,{onClick:e.eventHandlers.onDownloadPng,children:O.jsx(Re,{id:"menu.png_file",defaultMessage:"PNG file"})}),O.jsx(Ze.Item,{onClick:e.eventHandlers.onDownloadSvg,children:O.jsx(Re,{id:"menu.svg_file",defaultMessage:"SVG file"})})]})}),O.jsx(Ze,{trigger:O.jsxs("div",{children:[O.jsx(Je,{name:"eye"}),O.jsx(Re,{id:"menu.view",defaultMessage:"View"})]}),className:"item",children:O.jsx(Ze.Menu,{children:m})}),O.jsx(hI,{data:e.data,onSelection:e.eventHandlers.onSelection,...e})]});case 1:return O.jsxs(O.Fragment,{children:[O.jsxs(Ze.Item,{onClick:e.eventHandlers.onPrint,children:[O.jsx(Je,{name:"print"}),O.jsx(Re,{id:"menu.print",defaultMessage:"Print"})]}),O.jsx(Ze.Divider,{}),O.jsxs(Ze.Item,{onClick:e.eventHandlers.onDownloadPdf,children:[O.jsx(Je,{name:"download"}),O.jsx(Re,{id:"menu.download_pdf",defaultMessage:"Download PDF"})]}),O.jsxs(Ze.Item,{onClick:e.eventHandlers.onDownloadPng,children:[O.jsx(Je,{name:"download"}),O.jsx(Re,{id:"menu.download_png",defaultMessage:"Download PNG"})]}),O.jsxs(Ze.Item,{onClick:e.eventHandlers.onDownloadSvg,children:[O.jsx(Je,{name:"download"}),O.jsx(Re,{id:"menu.download_svg",defaultMessage:"Download SVG"})]}),O.jsx(Ze.Divider,{}),m,O.jsx(Ze.Divider,{})]})}}function a(){return O.jsx(Kt.Item,{children:O.jsx("b",{children:"Topola Genealogy"})})}function s(p){return e.hasGoogleToken?O.jsxs(O.Fragment,{children:[O.jsxs(au,{menuType:p===1?qr.Dropdown:qr.Menu,onClick:e.onGoogleSignOut,children:[O.jsx(Je,{name:"sign out"}),O.jsx(Re,{id:"menu.google_sign_out",defaultMessage:"Disconnect Google Drive"})]}),p===1?O.jsx(Ze.Divider,{}):null]}):null}function o(p){return O.jsxs(O.Fragment,{children:[O.jsx(Iue,{menuType:p,...e}),O.jsx(Pue,{menuType:p,...e}),O.jsx(p0,{menuType:p,...e}),O.jsx(qle,{menuType:p,onTokenAcquired:e.onGoogleTokenAcquired})]})}function l(p){if(!e.standalone&&e.showWikiTreeMenus)switch(p){case 0:return O.jsx(p0,{menuType:qr.Menu,...e});case 1:return O.jsxs(O.Fragment,{children:[O.jsx(p0,{menuType:qr.Dropdown,...e}),O.jsx(Ze.Divider,{})]})}if(!e.standalone)return null;switch(p){case 0:return e.showingChart?O.jsx(Ze,{trigger:O.jsxs("div",{children:[O.jsx(Je,{name:"folder open"}),O.jsx(Re,{id:"menu.open",defaultMessage:"Open"})]}),className:"item",children:O.jsx(Ze.Menu,{children:o(qr.Dropdown)})}):o(qr.Menu);case 1:return O.jsxs(O.Fragment,{children:[o(qr.Dropdown),O.jsx(Ze.Divider,{})]})}}function u(p){return e.showWikiTreeMenus?O.jsxs(O.Fragment,{children:[O.jsx(Rue,{menuType:p===1?qr.Dropdown:qr.Menu,...e}),p===1?O.jsx(Ze.Divider,{}):null]}):null}function c(){return O.jsxs(O.Fragment,{children:[O.jsx(Ze,{trigger:O.jsx("div",{children:O.jsx(Je,{name:"sidebar"})}),className:"item",icon:null,children:O.jsxs(Ze.Menu,{children:[l(1),i(1),s(1),u(1),O.jsx(Ze.Item,{href:"https://github.com/PeWu/topola-viewer",target:"_blank",rel:"noopener noreferrer",children:O.jsx(Re,{id:"menu.github",defaultMessage:"GitHub project"})})]})}),O.jsx("div",{className:"topbar--title",children:e.standalone?O.jsx(yl,{to:"/",children:a()}):a()}),e.showingChart&&e.data&&O.jsx(hI,{data:e.data,onSelection:e.eventHandlers.onSelection,...e})]})}function d(){return O.jsxs(O.Fragment,{children:[e.standalone?O.jsx(yl,{to:"/",children:a()}):null,l(0),i(0),O.jsxs(Kt.Menu,{position:"right",children:[s(0),u(0),O.jsx(Kt.Item,{href:"https://github.com/PeWu/topola-viewer",target:"_blank",rel:"noopener noreferrer",children:O.jsx(Re,{id:"menu.github",defaultMessage:"GitHub project"})})]})]})}return O.jsxs(O.Fragment,{children:[O.jsx(Kt,{as:dl,greaterThanOrEqual:"large",attached:"top",inverted:!0,color:"blue",size:"large",children:d()}),O.jsx(Kt,{as:dl,at:"small",attached:"top",inverted:!0,color:"blue",size:"large",children:c()})]})}function Nue(e){const r=e.gedcom.indis[e.indi].tree.find(i=>i.tag==="NAME"),n=(r==null?void 0:r.data.replaceAll("/",""))??"";return O.jsx("div",{className:"collapsed-details",children:n?O.jsx("span",{className:"vertical-name",children:n}):O.jsx("span",{className:"vertical-name",children:O.jsx(Re,{id:"name.unknown_name",defaultMessage:"N.N."})})})}var m0,_I;function JL(){if(_I)return m0;_I=1;var e=Object.prototype.toString;return m0=function(r){var n=e.call(r),i=n==="[object Arguments]";return i||(i=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),i},m0}var g0,bI;function Mue(){if(bI)return g0;bI=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=JL(),i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),s=i.call(function(){},"prototype"),o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(p){var m=p.constructor;return m&&m.prototype===p},u={$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},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!u["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{l(window[p])}catch{return!0}}catch{return!0}return!1}(),d=function(p){if(typeof window>"u"||!c)return l(p);try{return l(p)}catch{return!1}};e=function(m){var w=m!==null&&typeof m=="object",g=r.call(m)==="[object Function]",_=n(m),E=w&&r.call(m)==="[object String]",x=[];if(!w&&!g&&!_)throw new TypeError("Object.keys called on a non-object");var b=s&&g;if(E&&m.length>0&&!t.call(m,0))for(var C=0;C<m.length;++C)x.push(String(C));if(_&&m.length>0)for(var v=0;v<m.length;++v)x.push(String(v));else for(var k in m)!(b&&k==="prototype")&&t.call(m,k)&&x.push(String(k));if(a)for(var T=d(m),N=0;N<o.length;++N)!(T&&o[N]==="constructor")&&t.call(m,o[N])&&x.push(o[N]);return x}}return g0=e,g0}var v0,xI;function Due(){if(xI)return v0;xI=1;var e=Array.prototype.slice,t=JL(),r=Object.keys,n=r?function(s){return r(s)}:Mue(),i=Object.keys;return n.shim=function(){if(Object.keys){var s=function(){var o=Object.keys(arguments);return o&&o.length===arguments.length}(1,2);s||(Object.keys=function(l){return t(l)?i(e.call(l)):i(l)})}else Object.keys=n;return Object.keys||n},v0=n,v0}var y0,EI;function ld(){if(EI)return y0;EI=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return y0=e,y0}var w0,SI;function Wm(){return SI||(SI=1,w0=SyntaxError),w0}var _0,CI;function Et(){return CI||(CI=1,_0=TypeError),_0}var b0,kI;function Fue(){return kI||(kI=1,b0=Object.getOwnPropertyDescriptor),b0}var x0,AI;function Cs(){if(AI)return x0;AI=1;var e=Fue();if(e)try{e([],"length")}catch{e=null}return x0=e,x0}var E0,TI;function bx(){if(TI)return E0;TI=1;var e=ld(),t=Wm(),r=Et(),n=Cs();return E0=function(a,s,o){if(!a||typeof a!="object"&&typeof a!="function")throw new r("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,p=!!n&&n(a,s);if(e)e(a,s,{configurable:c===null&&p?p.configurable:!c,enumerable:l===null&&p?p.enumerable:!l,value:o,writable:u===null&&p?p.writable:!u});else if(d||!l&&!u&&!c)a[s]=o;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},E0}var S0,II;function Vm(){if(II)return S0;II=1;var e=ld(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},S0=t,S0}var C0,PI;function xx(){if(PI)return C0;PI=1;var e=Due(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,i=bx(),a=function(u){return typeof u=="function"&&r.call(u)==="[object Function]"},s=Vm()(),o=function(u,c,d,p){if(c in u){if(p===!0){if(u[c]===d)return}else if(!a(p)||!p())return}s?i(u,c,d,!0):i(u,c,d)},l=function(u,c){var d=arguments.length>2?arguments[2]:{},p=e(c);t&&(p=n.call(p,Object.getOwnPropertySymbols(c)));for(var m=0;m<p.length;m+=1)o(u,p[m],c[p[m]],d[p[m]])};return l.supportsDescriptors=!!s,C0=l,C0}var k0={exports:{}},A0,RI;function Qm(){return RI||(RI=1,A0=Object),A0}var T0,OI;function Lue(){return OI||(OI=1,T0=Error),T0}var I0,NI;function jue(){return NI||(NI=1,I0=EvalError),I0}var P0,MI;function ZL(){return MI||(MI=1,P0=RangeError),P0}var R0,DI;function Bue(){return DI||(DI=1,R0=ReferenceError),R0}var O0,FI;function zue(){return FI||(FI=1,O0=URIError),O0}var N0,LI;function e3(){return LI||(LI=1,N0=Math.abs),N0}var M0,jI;function Ex(){return jI||(jI=1,M0=Math.floor),M0}var D0,BI;function Uue(){return BI||(BI=1,D0=Math.max),D0}var F0,zI;function $ue(){return zI||(zI=1,F0=Math.min),F0}var L0,UI;function Hue(){return UI||(UI=1,L0=Math.pow),L0}var j0,$I;function que(){return $I||($I=1,j0=Math.round),j0}var B0,HI;function ud(){return HI||(HI=1,B0=Number.isNaN||function(t){return t!==t}),B0}var z0,qI;function Gue(){if(qI)return z0;qI=1;var e=ud();return z0=function(r){return e(r)||r===0?r:r<0?-1:1},z0}var U0,GI;function t3(){return GI||(GI=1,U0=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==i||o.enumerable!==!0)return!1}return!0}),U0}var $0,WI;function n3(){if(WI)return $0;WI=1;var e=typeof Symbol<"u"&&Symbol,t=t3();return $0=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},$0}var H0,VI;function r3(){return VI||(VI=1,H0=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),H0}var q0,QI;function i3(){if(QI)return q0;QI=1;var e=Qm();return q0=e.getPrototypeOf||null,q0}var G0,KI;function Wue(){if(KI)return G0;KI=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(l,u){for(var c=[],d=0;d<l.length;d+=1)c[d]=l[d];for(var p=0;p<u.length;p+=1)c[p+l.length]=u[p];return c},a=function(l,u){for(var c=[],d=u,p=0;d<l.length;d+=1,p+=1)c[p]=l[d];return c},s=function(o,l){for(var u="",c=0;c<o.length;c+=1)u+=o[c],c+1<o.length&&(u+=l);return u};return G0=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==n)throw new TypeError(e+u);for(var c=a(arguments,1),d,p=function(){if(this instanceof d){var E=u.apply(this,i(c,arguments));return Object(E)===E?E:this}return u.apply(l,i(c,arguments))},m=r(0,u.length-c.length),w=[],g=0;g<m;g++)w[g]="$"+g;if(d=Function("binder","return function ("+s(w,",")+"){ return binder.apply(this,arguments); }")(p),u.prototype){var _=function(){};_.prototype=u.prototype,d.prototype=new _,_.prototype=null}return d},G0}var W0,YI;function cd(){if(YI)return W0;YI=1;var e=Wue();return W0=Function.prototype.bind||e,W0}var V0,XI;function Sx(){return XI||(XI=1,V0=Function.prototype.call),V0}var Q0,JI;function Cx(){return JI||(JI=1,Q0=Function.prototype.apply),Q0}var K0,ZI;function Vue(){return ZI||(ZI=1,K0=typeof Reflect<"u"&&Reflect&&Reflect.apply),K0}var Y0,eP;function a3(){if(eP)return Y0;eP=1;var e=cd(),t=Cx(),r=Sx(),n=Vue();return Y0=n||e.call(r,t),Y0}var X0,tP;function Km(){if(tP)return X0;tP=1;var e=cd(),t=Et(),r=Sx(),n=a3();return X0=function(a){if(a.length<1||typeof a[0]!="function")throw new t("a function is required");return n(e,r,a)},X0}var J0,nP;function Que(){if(nP)return J0;nP=1;var e=Km(),t=Cs(),r;try{r=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var n=!!r&&t&&t(Object.prototype,"__proto__"),i=Object,a=i.getPrototypeOf;return J0=n&&typeof n.get=="function"?e([n.get]):typeof a=="function"?function(o){return a(o==null?o:i(o))}:!1,J0}var Z0,rP;function Kue(){if(rP)return Z0;rP=1;var e=r3(),t=i3(),r=Que();return Z0=e?function(i){return e(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:r?function(i){return r(i)}:null,Z0}var ew,iP;function ks(){if(iP)return ew;iP=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=cd();return ew=r.call(e,t),ew}var tw,aP;function Zr(){if(aP)return tw;aP=1;var e,t=Qm(),r=Lue(),n=jue(),i=ZL(),a=Bue(),s=Wm(),o=Et(),l=zue(),u=e3(),c=Ex(),d=Uue(),p=$ue(),m=Hue(),w=que(),g=Gue(),_=Function,E=function(Ne){try{return _('"use strict"; return ('+Ne+").constructor;")()}catch{}},x=Cs(),b=ld(),C=function(){throw new o},v=x?function(){try{return arguments.callee,C}catch{try{return x(arguments,"callee").get}catch{return C}}}():C,k=n3()(),T=Kue(),N=i3(),M=r3(),j=Cx(),D=Sx(),$={},X=typeof Uint8Array>"u"||!T?e:T(Uint8Array),W={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":k&&T?T([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":$,"%AsyncGenerator%":$,"%AsyncGeneratorFunction%":$,"%AsyncIteratorPrototype%":$,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":$,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&T?T(T([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!k||!T?e:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!k||!T?e:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&T?T(""[Symbol.iterator]()):e,"%Symbol%":k?Symbol:e,"%SyntaxError%":s,"%ThrowTypeError%":v,"%TypedArray%":X,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":j,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":N,"%Math.abs%":u,"%Math.floor%":c,"%Math.max%":d,"%Math.min%":p,"%Math.pow%":m,"%Math.round%":w,"%Math.sign%":g,"%Reflect.getPrototypeOf%":M};if(T)try{null.error}catch(Ne){var H=T(T(Ne));W["%Error.prototype%"]=H}var V=function Ne(Le){var He;if(Le==="%AsyncFunction%")He=E("async function () {}");else if(Le==="%GeneratorFunction%")He=E("function* () {}");else if(Le==="%AsyncGeneratorFunction%")He=E("async function* () {}");else if(Le==="%AsyncGenerator%"){var Oe=Ne("%AsyncGeneratorFunction%");Oe&&(He=Oe.prototype)}else if(Le==="%AsyncIteratorPrototype%"){var Fe=Ne("%AsyncGenerator%");Fe&&T&&(He=T(Fe.prototype))}return W[Le]=He,He},K={__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"]},Y=cd(),q=ks(),F=Y.call(D,Array.prototype.concat),G=Y.call(j,Array.prototype.splice),z=Y.call(D,String.prototype.replace),B=Y.call(D,String.prototype.slice),se=Y.call(D,RegExp.prototype.exec),de=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,me=/\\(\\)?/g,Ee=function(Le){var He=B(Le,0,1),Oe=B(Le,-1);if(He==="%"&&Oe!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Oe==="%"&&He!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var Fe=[];return z(Le,de,function(We,rt,ot,st){Fe[Fe.length]=ot?z(st,me,"$1"):rt||We}),Fe},Ie=function(Le,He){var Oe=Le,Fe;if(q(K,Oe)&&(Fe=K[Oe],Oe="%"+Fe[0]+"%"),q(W,Oe)){var We=W[Oe];if(We===$&&(We=V(Oe)),typeof We>"u"&&!He)throw new o("intrinsic "+Le+" exists, but is not available. Please file an issue!");return{alias:Fe,name:Oe,value:We}}throw new s("intrinsic "+Le+" does not exist!")};return tw=function(Le,He){if(typeof Le!="string"||Le.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof He!="boolean")throw new o('"allowMissing" argument must be a boolean');if(se(/^%?[^%]*%?$/,Le)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Oe=Ee(Le),Fe=Oe.length>0?Oe[0]:"",We=Ie("%"+Fe+"%",He),rt=We.name,ot=We.value,st=!1,At=We.alias;At&&(Fe=At[0],G(Oe,F([0,1],At)));for(var Ht=1,gt=!0;Ht<Oe.length;Ht+=1){var ct=Oe[Ht],we=B(ct,0,1),et=B(ct,-1);if((we==='"'||we==="'"||we==="`"||et==='"'||et==="'"||et==="`")&&we!==et)throw new s("property names with quotes must have matching quotes");if((ct==="constructor"||!gt)&&(st=!0),Fe+="."+ct,rt="%"+Fe+"%",q(W,rt))ot=W[rt];else if(ot!=null){if(!(ct in ot)){if(!He)throw new o("base intrinsic for "+Le+" exists, but the property is not available.");return}if(x&&Ht+1>=Oe.length){var it=x(ot,ct);gt=!!it,gt&&"get"in it&&!("originalValue"in it.get)?ot=it.get:ot=ot[ct]}else gt=q(ot,ct),ot=ot[ct];gt&&!st&&(W[rt]=ot)}}return ot},tw}var nw,oP;function Yue(){if(oP)return nw;oP=1;var e=Zr(),t=bx(),r=Vm()(),n=Cs(),i=Et(),a=e("%Math.floor%");return nw=function(o,l){if(typeof o!="function")throw new i("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||a(l)!==l)throw new i("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],c=!0,d=!0;if("length"in o&&n){var p=n(o,"length");p&&!p.configurable&&(c=!1),p&&!p.writable&&(d=!1)}return(c||d||!u)&&(r?t(o,"length",l,!0,!0):t(o,"length",l)),o},nw}var rw,sP;function Xue(){if(sP)return rw;sP=1;var e=cd(),t=Cx(),r=a3();return rw=function(){return r(e,t,arguments)},rw}var lP;function o3(){return lP||(lP=1,function(e){var t=Yue(),r=ld(),n=Km(),i=Xue();e.exports=function(s){var o=n(arguments),l=1+s.length-(arguments.length-1);return t(o,l>0?l:0,!0)},r?r(e.exports,"apply",{value:i}):e.exports.apply=i}(k0)),k0.exports}var iw,uP;function s3(){if(uP)return iw;uP=1;var e=ud();return iw=function(r){return(typeof r=="number"||typeof r=="bigint")&&!e(r)&&r!==1/0&&r!==-1/0},iw}var aw,cP;function l3(){if(cP)return aw;cP=1;var e=e3(),t=Ex(),r=ud(),n=s3();return aw=function(a){if(typeof a!="number"||r(a)||!n(a))return!1;var s=e(a);return t(s)===s},aw}var ow,fP;function Ai(){return fP||(fP=1,ow=function(t){return!!t&&(typeof t=="function"||typeof t=="object")}),ow}var sw,dP;function Jue(){return dP||(dP=1,sw=4294967295),sw}var lw,hP;function Zue(){return hP||(hP=1,lw=typeof Reflect<"u"&&Reflect.setPrototypeOf||null),lw}var uw,pP;function ece(){if(pP)return uw;pP=1;var e=Qm();return uw=e.setPrototypeOf||null,uw}var cw,mP;function tce(){if(mP)return cw;mP=1;var e=Km(),t=Cs(),r=Et(),n={};try{n.__proto__=null}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var i=!("toString"in n),a=t&&t(Object.prototype,"__proto__");return cw=i&&(!!a&&typeof a.set=="function"&&e([a.set])||function(o,l){if(o==null)throw new r("set Object.prototype.__proto__ called on null or undefined");return o.__proto__=l,l}),cw}var fw,gP;function nce(){if(gP)return fw;gP=1;var e=Zue(),t=ece(),r=tce(),n=Et();return fw=e?function(a,s){if(e(a,s))return a;throw new n("Reflect.setPrototypeOf: failed to set [[Prototype]]")}:t||(r?function(a,s){return r(a,s),a}:null),fw}var dw,vP;function rce(){if(vP)return dw;vP=1;var e=Zr(),t=e("%Array.prototype%"),r=ZL(),n=Wm(),i=Et(),a=l3(),s=Jue(),o=nce();return dw=function(u){if(!a(u)||u<0)throw new i("Assertion failed: `length` must be an integer Number >= 0");if(u>s)throw new r("length is greater than (2**32 - 1)");var c=arguments.length>1?arguments[1]:t,d=[];if(c!==t){if(!o)throw new n("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");o(d,c)}return u!==0&&(d.length=u),d},dw}const ice={},ace=Object.freeze(Object.defineProperty({__proto__:null,default:ice},Symbol.toStringTag,{value:"Module"})),oce=Df(ace);var hw,yP;function sce(){if(yP)return hw;yP=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=i&&a&&typeof a.get=="function"?a.get:null,o=i&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,u=l?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,d=c?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,m=p?WeakRef.prototype.deref:null,w=Boolean.prototype.valueOf,g=Object.prototype.toString,_=Function.prototype.toString,E=String.prototype.match,x=String.prototype.slice,b=String.prototype.replace,C=String.prototype.toUpperCase,v=String.prototype.toLowerCase,k=RegExp.prototype.test,T=Array.prototype.concat,N=Array.prototype.join,M=Array.prototype.slice,j=Math.floor,D=typeof BigInt=="function"?BigInt.prototype.valueOf:null,$=Object.getOwnPropertySymbols,X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,W=typeof Symbol=="function"&&typeof Symbol.iterator=="object",H=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===W||!0)?Symbol.toStringTag:null,V=Object.prototype.propertyIsEnumerable,K=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ae){return ae.__proto__}:null);function Y(ae,le){if(ae===1/0||ae===-1/0||ae!==ae||ae&&ae>-1e3&&ae<1e3||k.call(/e/,le))return le;var Me=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ae=="number"){var _t=ae<0?-j(-ae):j(ae);if(_t!==ae){var St=String(_t),Xe=x.call(le,St.length+1);return b.call(St,Me,"$&_")+"."+b.call(b.call(Xe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(le,Me,"$&_")}var q=oce,F=q.custom,G=We(F)?F:null,z={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};hw=function ae(le,Me,_t,St){var Xe=Me||{};if(st(Xe,"quoteStyle")&&!st(z,Xe.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(st(Xe,"maxStringLength")&&(typeof Xe.maxStringLength=="number"?Xe.maxStringLength<0&&Xe.maxStringLength!==1/0:Xe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var kn=st(Xe,"customInspect")?Xe.customInspect:!0;if(typeof kn!="boolean"&&kn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(st(Xe,"indent")&&Xe.indent!==null&&Xe.indent!==" "&&!(parseInt(Xe.indent,10)===Xe.indent&&Xe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(st(Xe,"numericSeparator")&&typeof Xe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var ei=Xe.numericSeparator;if(typeof le>"u")return"undefined";if(le===null)return"null";if(typeof le=="boolean")return le?"true":"false";if(typeof le=="string")return L(le,Xe);if(typeof le=="number"){if(le===0)return 1/0/le>0?"0":"-0";var wn=String(le);return ei?Y(le,wn):wn}if(typeof le=="bigint"){var Mr=String(le)+"n";return ei?Y(le,Mr):Mr}var Ts=typeof Xe.depth>"u"?5:Xe.depth;if(typeof _t>"u"&&(_t=0),_t>=Ts&&Ts>0&&typeof le=="object")return Ee(le)?"[Array]":"[Object]";var Ti=ge(Xe,_t);if(typeof St>"u")St=[];else if(gt(St,le)>=0)return"[Circular]";function An(Ii,Eo,pd){if(Eo&&(St=M.call(St),St.push(Eo)),pd){var Cu={depth:Xe.depth};return st(Xe,"quoteStyle")&&(Cu.quoteStyle=Xe.quoteStyle),ae(Ii,Cu,_t+1,St)}return ae(Ii,Xe,_t+1,St)}if(typeof le=="function"&&!Ne(le)){var _u=Ht(le),da=ft(le,An);return"[Function"+(_u?": "+_u:" (anonymous)")+"]"+(da.length>0?" { "+N.call(da,", ")+" }":"")}if(We(le)){var Is=W?b.call(String(le),/^(Symbol\(.*\))_[^)]*$/,"$1"):X.call(le);return typeof le=="object"&&!W?R(Is):Is}if(pe(le)){for(var Dr="<"+v.call(String(le.nodeName)),bu=le.attributes||[],ti=0;ti<bu.length;ti++)Dr+=" "+bu[ti].name+"="+se(de(bu[ti].value),"double",Xe);return Dr+=">",le.childNodes&&le.childNodes.length&&(Dr+="..."),Dr+="</"+v.call(String(le.nodeName))+">",Dr}if(Ee(le)){if(le.length===0)return"[]";var ha=ft(le,An);return Ti&&!fe(ha)?"["+Ve(ha,Ti)+"]":"[ "+N.call(ha,", ")+" ]"}if(Le(le)){var pa=ft(le,An);return!("cause"in Error.prototype)&&"cause"in le&&!V.call(le,"cause")?"{ ["+String(le)+"] "+N.call(T.call("[cause]: "+An(le.cause),pa),", ")+" }":pa.length===0?"["+String(le)+"]":"{ ["+String(le)+"] "+N.call(pa,", ")+" }"}if(typeof le=="object"&&kn){if(G&&typeof le[G]=="function"&&q)return q(le,{depth:Ts-_t});if(kn!=="symbol"&&typeof le.inspect=="function")return le.inspect()}if(ct(le)){var Ps=[];return n&&n.call(le,function(Ii,Eo){Ps.push(An(Eo,le,!0)+" => "+An(Ii,le))}),re("Map",r.call(le),Ps,Ti)}if(it(le)){var fd=[];return o&&o.call(le,function(Ii){fd.push(An(Ii,le))}),re("Set",s.call(le),fd,Ti)}if(we(le))return Q("WeakMap");if(ht(le))return Q("WeakSet");if(et(le))return Q("WeakRef");if(Oe(le))return R(An(Number(le)));if(rt(le))return R(An(D.call(le)));if(Fe(le))return R(w.call(le));if(He(le))return R(An(String(le)));if(typeof window<"u"&&le===window)return"{ [object Window] }";if(typeof globalThis<"u"&&le===globalThis||typeof hi<"u"&&le===hi)return"{ [object globalThis] }";if(!Ie(le)&&!Ne(le)){var xu=ft(le,An),dd=K?K(le)===Object.prototype:le instanceof Object||le.constructor===Object,Fr=le instanceof Object?"":"null prototype",Eu=!dd&&H&&Object(le)===le&&H in le?x.call(At(le),8,-1):Fr?"Object":"",hd=dd||typeof le.constructor!="function"?"":le.constructor.name?le.constructor.name+" ":"",Su=hd+(Eu||Fr?"["+N.call(T.call([],Eu||[],Fr||[]),": ")+"] ":"");return xu.length===0?Su+"{}":Ti?Su+"{"+Ve(xu,Ti)+"}":Su+"{ "+N.call(xu,", ")+" }"}return String(le)};function se(ae,le,Me){var _t=Me.quoteStyle||le,St=z[_t];return St+ae+St}function de(ae){return b.call(String(ae),/"/g,"&quot;")}function me(ae){return!H||!(typeof ae=="object"&&(H in ae||typeof ae[H]<"u"))}function Ee(ae){return At(ae)==="[object Array]"&&me(ae)}function Ie(ae){return At(ae)==="[object Date]"&&me(ae)}function Ne(ae){return At(ae)==="[object RegExp]"&&me(ae)}function Le(ae){return At(ae)==="[object Error]"&&me(ae)}function He(ae){return At(ae)==="[object String]"&&me(ae)}function Oe(ae){return At(ae)==="[object Number]"&&me(ae)}function Fe(ae){return At(ae)==="[object Boolean]"&&me(ae)}function We(ae){if(W)return ae&&typeof ae=="object"&&ae instanceof Symbol;if(typeof ae=="symbol")return!0;if(!ae||typeof ae!="object"||!X)return!1;try{return X.call(ae),!0}catch{}return!1}function rt(ae){if(!ae||typeof ae!="object"||!D)return!1;try{return D.call(ae),!0}catch{}return!1}var ot=Object.prototype.hasOwnProperty||function(ae){return ae in this};function st(ae,le){return ot.call(ae,le)}function At(ae){return g.call(ae)}function Ht(ae){if(ae.name)return ae.name;var le=E.call(_.call(ae),/^function\s*([\w$]+)/);return le?le[1]:null}function gt(ae,le){if(ae.indexOf)return ae.indexOf(le);for(var Me=0,_t=ae.length;Me<_t;Me++)if(ae[Me]===le)return Me;return-1}function ct(ae){if(!r||!ae||typeof ae!="object")return!1;try{r.call(ae);try{s.call(ae)}catch{return!0}return ae instanceof Map}catch{}return!1}function we(ae){if(!u||!ae||typeof ae!="object")return!1;try{u.call(ae,u);try{d.call(ae,d)}catch{return!0}return ae instanceof WeakMap}catch{}return!1}function et(ae){if(!m||!ae||typeof ae!="object")return!1;try{return m.call(ae),!0}catch{}return!1}function it(ae){if(!s||!ae||typeof ae!="object")return!1;try{s.call(ae);try{r.call(ae)}catch{return!0}return ae instanceof Set}catch{}return!1}function ht(ae){if(!d||!ae||typeof ae!="object")return!1;try{d.call(ae,d);try{u.call(ae,u)}catch{return!0}return ae instanceof WeakSet}catch{}return!1}function pe(ae){return!ae||typeof ae!="object"?!1:typeof HTMLElement<"u"&&ae instanceof HTMLElement?!0:typeof ae.nodeName=="string"&&typeof ae.getAttribute=="function"}function L(ae,le){if(ae.length>le.maxStringLength){var Me=ae.length-le.maxStringLength,_t="... "+Me+" more character"+(Me>1?"s":"");return L(x.call(ae,0,le.maxStringLength),le)+_t}var St=B[le.quoteStyle||"single"];St.lastIndex=0;var Xe=b.call(b.call(ae,St,"\\$1"),/[\x00-\x1f]/g,I);return se(Xe,"single",le)}function I(ae){var le=ae.charCodeAt(0),Me={8:"b",9:"t",10:"n",12:"f",13:"r"}[le];return Me?"\\"+Me:"\\x"+(le<16?"0":"")+C.call(le.toString(16))}function R(ae){return"Object("+ae+")"}function Q(ae){return ae+" { ? }"}function re(ae,le,Me,_t){var St=_t?Ve(Me,_t):N.call(Me,", ");return ae+" ("+le+") {"+St+"}"}function fe(ae){for(var le=0;le<ae.length;le++)if(gt(ae[le],`
`)>=0)return!1;return!0}function ge(ae,le){var Me;if(ae.indent===" ")Me=" ";else if(typeof ae.indent=="number"&&ae.indent>0)Me=N.call(Array(ae.indent+1)," ");else return null;return{base:Me,prev:N.call(Array(le+1),Me)}}function Ve(ae,le){if(ae.length===0)return"";var Me=`
`+le.prev+le.base;return Me+N.call(ae,","+Me)+`
`+le.prev}function ft(ae,le){var Me=Ee(ae),_t=[];if(Me){_t.length=ae.length;for(var St=0;St<ae.length;St++)_t[St]=st(ae,St)?le(ae[St],ae):""}var Xe=typeof $=="function"?$(ae):[],kn;if(W){kn={};for(var ei=0;ei<Xe.length;ei++)kn["$"+Xe[ei]]=Xe[ei]}for(var wn in ae)st(ae,wn)&&(Me&&String(Number(wn))===wn&&wn<ae.length||W&&kn["$"+wn]instanceof Symbol||(k.call(/[^\w$]/,wn)?_t.push(le(wn,ae)+": "+le(ae[wn],ae)):_t.push(wn+": "+le(ae[wn],ae))));if(typeof $=="function")for(var Mr=0;Mr<Xe.length;Mr++)V.call(ae,Xe[Mr])&&_t.push("["+le(Xe[Mr])+"]: "+le(ae[Xe[Mr]],ae));return _t}return hw}var pw,wP;function As(){return wP||(wP=1,pw=function(t){return typeof t=="string"||typeof t=="symbol"}),pw}var mw,_P;function Ym(){if(_P)return mw;_P=1;var e=Et(),t=sce(),r=As(),n=Ai();return mw=function(a,s){if(!n(a))throw new e("Assertion failed: Type(O) is not Object");if(!r(s))throw new e("Assertion failed: P is not a Property Key, got "+t(s));return a[s]},mw}var gw,bP;function fa(){if(bP)return gw;bP=1;var e=Zr(),t=Km(),r=t([e("%String.prototype.indexOf%")]);return gw=function(i,a){var s=e(i,!!a);return typeof s=="function"&&r(i,".prototype.")>-1?t([s]):s},gw}var vw,xP;function u3(){if(xP)return vw;xP=1;var e=Zr(),t=e("%Array%"),r=!t.isArray&&fa()("Object.prototype.toString");return vw=t.isArray||function(i){return r(i)==="[object Array]"},vw}var yw,EP;function kx(){return EP||(EP=1,yw=u3()),yw}var Yh={exports:{}},ww,SP;function lce(){return SP||(SP=1,ww=Zr()),ww}var _w,CP;function xo(){if(CP)return _w;CP=1;var e=Et(),t=ks(),r={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};return _w=function(i){if(!i||typeof i!="object")return!1;for(var a in i)if(t(i,a)&&!r[a])return!1;var s=t(i,"[[Value]]")||t(i,"[[Writable]]"),o=t(i,"[[Get]]")||t(i,"[[Set]]");if(s&&o)throw new e("Property Descriptors may not be both accessor and data descriptors");return!0},_w}var bw,kP;function c3(){if(kP)return bw;kP=1;var e=Vm(),t=ld(),r=e.hasArrayLengthDefineBug(),n=r&&u3(),i=fa(),a=i("Object.prototype.propertyIsEnumerable");return bw=function(o,l,u,c,d,p){if(!t){if(!o(p)||!p["[[Configurable]]"]||!p["[[Writable]]"]||d in c&&a(c,d)!==!!p["[[Enumerable]]"])return!1;var m=p["[[Value]]"];return c[d]=m,l(c[d],m)}return r&&d==="length"&&"[[Value]]"in p&&n(c)&&c.length!==p["[[Value]]"]?(c.length=p["[[Value]]"],c.length===p["[[Value]]"]):(t(c,d,u(p)),!0)},bw}var xw,AP;function uce(){return AP||(AP=1,xw=function(t){if(typeof t>"u")return t;var r={};return"[[Value]]"in t&&(r.value=t["[[Value]]"]),"[[Writable]]"in t&&(r.writable=!!t["[[Writable]]"]),"[[Get]]"in t&&(r.get=t["[[Get]]"]),"[[Set]]"in t&&(r.set=t["[[Set]]"]),"[[Enumerable]]"in t&&(r.enumerable=!!t["[[Enumerable]]"]),"[[Configurable]]"in t&&(r.configurable=!!t["[[Configurable]]"]),r}),xw}var Ew,TP;function f3(){if(TP)return Ew;TP=1;var e=Et(),t=xo(),r=uce();return Ew=function(i){if(typeof i<"u"&&!t(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return r(i)},Ew}var Sw,IP;function Ax(){if(IP)return Sw;IP=1;var e=Et(),t=ks(),r=xo();return Sw=function(i){if(typeof i>"u")return!1;if(!r(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!(!t(i,"[[Value]]")&&!t(i,"[[Writable]]"))},Sw}var Cw,PP;function Tx(){if(PP)return Cw;PP=1;var e=ud();return Cw=function(r,n){return r===n?r===0?1/r===1/n:!0:e(r)&&e(n)},Cw}var kw,RP;function d3(){if(RP)return kw;RP=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(x){x!==n&&(t=null)}else t=null;var i=/^\s*class\b/,a=function(b){try{var C=e.call(b);return i.test(C)}catch{return!1}},s=function(b){try{return a(b)?!1:(e.call(b),!0)}catch{return!1}},o=Object.prototype.toString,l="[object Object]",u="[object Function]",c="[object GeneratorFunction]",d="[object HTMLAllCollection]",p="[object HTML document.all class]",m="[object HTMLCollection]",w=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),_=function(){return!1};if(typeof document=="object"){var E=document.all;o.call(E)===o.call(document.all)&&(_=function(b){if((g||!b)&&(typeof b>"u"||typeof b=="object"))try{var C=o.call(b);return(C===d||C===p||C===m||C===l)&&b("")==null}catch{}return!1})}return kw=t?function(b){if(_(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;try{t(b,null,r)}catch(C){if(C!==n)return!1}return!a(b)&&s(b)}:function(b){if(_(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;if(w)return s(b);if(a(b))return!1;var C=o.call(b);return C!==u&&C!==c&&!/^\[object HTML/.test(C)?!1:s(b)},kw}var Aw,OP;function h3(){return OP||(OP=1,Aw=d3()),Aw}var Tw,NP;function cce(){return NP||(NP=1,Tw=function(t){return!!t}),Tw}var Iw,MP;function p3(){if(MP)return Iw;MP=1;var e=ks(),t=Et(),r=Ai(),n=h3(),i=cce();return Iw=function(s){if(!r(s))throw new t("ToPropertyDescriptor requires an object");var o={};if(e(s,"enumerable")&&(o["[[Enumerable]]"]=i(s.enumerable)),e(s,"configurable")&&(o["[[Configurable]]"]=i(s.configurable)),e(s,"value")&&(o["[[Value]]"]=s.value),e(s,"writable")&&(o["[[Writable]]"]=i(s.writable)),e(s,"get")){var l=s.get;if(typeof l<"u"&&!n(l))throw new t("getter must be a function");o["[[Get]]"]=l}if(e(s,"set")){var u=s.set;if(typeof u<"u"&&!n(u))throw new t("setter must be a function");o["[[Set]]"]=u}if((e(o,"[[Get]]")||e(o,"[[Set]]"))&&(e(o,"[[Value]]")||e(o,"[[Writable]]")))throw new t("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return o},Iw}var Pw,DP;function fce(){if(DP)return Pw;DP=1;var e=Et(),t=Ai(),r=xo(),n=c3(),i=f3(),a=Ax(),s=As(),o=Tx(),l=p3();return Pw=function(c,d,p){if(!t(c))throw new e("Assertion failed: Type(O) is not Object");if(!s(d))throw new e("Assertion failed: P is not a Property Key");var m=r(p)?p:l(p);if(!r(m))throw new e("Assertion failed: Desc is not a valid Property Descriptor");return n(a,o,i,c,d,m)},Pw}var FP;function dce(){if(FP)return Yh.exports;FP=1;var e=lce(),t=e("%Reflect.construct%",!0),r=fce();try{r({},"",{"[[Get]]":function(){}})}catch{r=null}if(r&&t){var n={},i={};r(i,"length",{"[[Get]]":function(){throw n},"[[Enumerable]]":!0}),Yh.exports=function(s){try{t(s,i)}catch(o){return o===n}}}else Yh.exports=function(s){return typeof s=="function"&&!!s.prototype};return Yh.exports}var Rw,LP;function hce(){if(LP)return Rw;LP=1;var e=Zr(),t=e("%Symbol.species%",!0),r=Et(),n=l3(),i=Ai(),a=rce(),s=Ym(),o=kx(),l=dce();return Rw=function(c,d){if(!n(d)||d<0)throw new r("Assertion failed: length must be an integer >= 0");var p=o(c);if(!p)return a(d);var m=s(c,"constructor");if(t&&i(m)&&(m=s(m,t),m===null&&(m=void 0)),typeof m>"u")return a(d);if(!l(m))throw new r("C must be a constructor");return new m(d)},Rw}var Ow,jP;function m3(){return jP||(jP=1,Ow=Number.MAX_SAFE_INTEGER||9007199254740991),Ow}var Nw,BP;function pce(){if(BP)return Nw;BP=1;var e=Zr(),t=fa(),r=Et(),n=kx(),i=e("%Reflect.apply%",!0)||t("Function.prototype.apply");return Nw=function(s,o){var l=arguments.length>2?arguments[2]:[];if(!n(l))throw new r("Assertion failed: optional `argumentsList`, if provided, must be a List");return i(s,o,l)},Nw}var Mw,zP;function Ix(){if(zP)return Mw;zP=1;var e=Et(),t=ks(),r=xo();return Mw=function(i){if(typeof i>"u")return!1;if(!r(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!(!t(i,"[[Get]]")&&!t(i,"[[Set]]"))},Mw}var Dw,UP;function g3(){return UP||(UP=1,Dw=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),Dw}var Fw,$P;function mce(){if($P)return Fw;$P=1;var e=Zr(),t=e("%Object.preventExtensions%",!0),r=e("%Object.isExtensible%",!0),n=g3();return Fw=t?function(a){return!n(a)&&r(a)}:function(a){return!n(a)},Fw}var Lw,HP;function gce(){if(HP)return Lw;HP=1;var e=xo();return Lw=function(r,n){return e(n)&&"[[Enumerable]]"in n&&"[[Configurable]]"in n&&(r.IsAccessorDescriptor(n)||r.IsDataDescriptor(n))},Lw}var jw,qP;function vce(){if(qP)return jw;qP=1;var e=Et(),t=Ix(),r=Ax(),n=xo();return jw=function(a){if(typeof a>"u")return!1;if(!n(a))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!t(a)&&!r(a)},jw}var Bw,GP;function yce(){if(GP)return Bw;GP=1;var e=Et(),t=Ai(),r=c3(),n=gce(),i=xo(),a=f3(),s=Ix(),o=Ax(),l=vce(),u=As(),c=Tx();return Bw=function(p,m,w,g,_){if(typeof p<"u"&&!t(p))throw new e("Assertion failed: O must be undefined or an Object");if(!u(m))throw new e("Assertion failed: P must be a Property Key");if(typeof w!="boolean")throw new e("Assertion failed: extensible must be a Boolean");if(!i(g))throw new e("Assertion failed: Desc must be a Property Descriptor");if(typeof _<"u"&&!i(_))throw new e("Assertion failed: current must be a Property Descriptor, or undefined");if(typeof _>"u")return w?typeof p>"u"?!0:s(g)?r(o,c,a,p,m,g):r(o,c,a,p,m,{"[[Configurable]]":!!g["[[Configurable]]"],"[[Enumerable]]":!!g["[[Enumerable]]"],"[[Value]]":g["[[Value]]"],"[[Writable]]":!!g["[[Writable]]"]}):!1;if(!n({IsAccessorDescriptor:s,IsDataDescriptor:o},_))throw new e("`current`, when present, must be a fully populated and valid Property Descriptor");if(!_["[[Configurable]]"]){if("[[Configurable]]"in g&&g["[[Configurable]]"]||"[[Enumerable]]"in g&&!c(g["[[Enumerable]]"],_["[[Enumerable]]"])||!l(g)&&!c(s(g),s(_)))return!1;if(s(_)){if("[[Get]]"in g&&!c(g["[[Get]]"],_["[[Get]]"])||"[[Set]]"in g&&!c(g["[[Set]]"],_["[[Set]]"]))return!1}else if(!_["[[Writable]]"]&&("[[Writable]]"in g&&g["[[Writable]]"]||"[[Value]]"in g&&!c(g["[[Value]]"],_["[[Value]]"])))return!1}if(typeof p<"u"){var E,x;return o(_)&&s(g)?(E=("[[Configurable]]"in g?g:_)["[[Configurable]]"],x=("[[Enumerable]]"in g?g:_)["[[Enumerable]]"],r(o,c,a,p,m,{"[[Configurable]]":!!E,"[[Enumerable]]":!!x,"[[Get]]":("[[Get]]"in g?g:_)["[[Get]]"],"[[Set]]":("[[Set]]"in g?g:_)["[[Set]]"]})):s(_)&&o(g)?(E=("[[Configurable]]"in g?g:_)["[[Configurable]]"],x=("[[Enumerable]]"in g?g:_)["[[Enumerable]]"],r(o,c,a,p,m,{"[[Configurable]]":!!E,"[[Enumerable]]":!!x,"[[Value]]":("[[Value]]"in g?g:_)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in g?g:_)["[[Writable]]"]})):r(o,c,a,p,m,g)}return!0},Bw}var zw,WP;function wce(){if(WP)return zw;WP=1;var e=Cs(),t=Wm(),r=Et(),n=Ai(),i=xo(),a=Ix(),s=mce(),o=As(),l=p3(),u=Tx(),c=yce();return zw=function(p,m,w){if(!n(p))throw new r("Assertion failed: O must be an Object");if(!o(m))throw new r("Assertion failed: P must be a Property Key");if(!i(w))throw new r("Assertion failed: Desc must be a Property Descriptor");if(!e){if(a(w))throw new t("This environment does not support accessor property descriptors.");var g=!(m in p)&&w["[[Writable]]"]&&w["[[Enumerable]]"]&&w["[[Configurable]]"]&&"[[Value]]"in w,_=m in p&&(!("[[Configurable]]"in w)||w["[[Configurable]]"])&&(!("[[Enumerable]]"in w)||w["[[Enumerable]]"])&&(!("[[Writable]]"in w)||w["[[Writable]]"])&&"[[Value]]"in w;if(g||_)return p[m]=w["[[Value]]"],u(p[m],w["[[Value]]"]);throw new t("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var E=e(p,m),x=E&&l(E),b=s(p);return c(p,m,b,w,x)},zw}var Uw,VP;function _ce(){if(VP)return Uw;VP=1;var e=Et(),t=Ai(),r=As(),n=wce();return Uw=function(a,s,o){if(!t(a))throw new e("Assertion failed: Type(O) is not Object");if(!r(s))throw new e("Assertion failed: P is not a Property Key");var l={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":o,"[[Writable]]":!0};return n(a,s,l)},Uw}var $w,QP;function bce(){if(QP)return $w;QP=1;var e=Et(),t=Ai(),r=_ce(),n=As();return $w=function(a,s,o){if(!t(a))throw new e("Assertion failed: Type(O) is not Object");if(!n(s))throw new e("Assertion failed: P is not a Property Key");var l=r(a,s,o);if(!l)throw new e("unable to create data property")},$w}var Hw,KP;function xce(){if(KP)return Hw;KP=1;var e=Et(),t=Ai(),r=As();return Hw=function(i,a){if(!t(i))throw new e("Assertion failed: `O` must be an Object");if(!r(a))throw new e("Assertion failed: `P` must be a Property Key");return a in i},Hw}var qw,YP;function Ece(){return YP||(YP=1,qw=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),qw}var Gw,XP;function v3(){if(XP)return Gw;XP=1;var e=t3();return Gw=function(){return e()&&!!Symbol.toStringTag},Gw}var Ww,JP;function Sce(){if(JP)return Ww;JP=1;var e=fa(),t=e("Date.prototype.getDay"),r=function(o){try{return t(o),!0}catch{return!1}},n=e("Object.prototype.toString"),i="[object Date]",a=v3()();return Ww=function(o){return typeof o!="object"||o===null?!1:a?r(o):n(o)===i},Ww}var Xh={exports:{}},Vw,ZP;function Cce(){if(ZP)return Vw;ZP=1;var e=fa(),t=v3()(),r=ks(),n=Cs(),i;if(t){var a=e("RegExp.prototype.exec"),s={},o=function(){throw s},l={toString:o,valueOf:o};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=o),i=function(p){if(!p||typeof p!="object")return!1;var m=n(p,"lastIndex"),w=m&&r(m,"value");if(!w)return!1;try{a(p,l)}catch(g){return g===s}}}else{var u=e("Object.prototype.toString"),c="[object RegExp]";i=function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:u(p)===c}}return Vw=i,Vw}var Qw,eR;function y3(){if(eR)return Qw;eR=1;var e=fa(),t=Cce(),r=e("RegExp.prototype.exec"),n=Et();return Qw=function(a){if(!t(a))throw new n("`regex` must be a RegExp");return function(o){return r(a,o)!==null}},Qw}var tR;function kce(){if(tR)return Xh.exports;tR=1;var e=fa(),t=e("Object.prototype.toString"),r=n3()(),n=y3();if(r){var i=e("Symbol.prototype.toString"),a=n(/^Symbol\(.*\)$/),s=function(l){return typeof l.valueOf()!="symbol"?!1:a(i(l))};Xh.exports=function(l){if(typeof l=="symbol")return!0;if(!l||typeof l!="object"||t(l)!=="[object Symbol]")return!1;try{return s(l)}catch{return!1}}}else Xh.exports=function(l){return!1};return Xh.exports}var Kw,nR;function Ace(){if(nR)return Kw;nR=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=Ece(),r=d3(),n=Sce(),i=kce(),a=function(l,u){if(typeof l>"u"||l===null)throw new TypeError("Cannot call method on "+l);if(typeof u!="string"||u!=="number"&&u!=="string")throw new TypeError('hint must be "string" or "number"');var c=u==="string"?["toString","valueOf"]:["valueOf","toString"],d,p,m;for(m=0;m<c.length;++m)if(d=l[c[m]],r(d)&&(p=d.call(l),t(p)))return p;throw new TypeError("No default value")},s=function(l,u){var c=l[u];if(c!==null&&typeof c<"u"){if(!r(c))throw new TypeError(c+" returned for property "+String(u)+" of object "+l+" is not a function");return c}};return Kw=function(l){if(t(l))return l;var u="default";arguments.length>1&&(arguments[1]===String?u="string":arguments[1]===Number&&(u="number"));var c;if(e&&(Symbol.toPrimitive?c=s(l,Symbol.toPrimitive):i(l)&&(c=Symbol.prototype.valueOf)),typeof c<"u"){var d=c.call(l,u);if(t(d))return d;throw new TypeError("unable to convert exotic object to primitive")}return u==="default"&&(n(l)||i(l))&&(u="string"),a(l,u==="default"?"number":u)},Kw}var Yw,rR;function Tce(){if(rR)return Yw;rR=1;var e=Ace();return Yw=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},Yw}var Xw,iR;function Px(){if(iR)return Xw;iR=1;var e=Et();return Xw=function(r){if(r==null)throw new e(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r},Xw}var Jw,aR;function w3(){if(aR)return Jw;aR=1;var e=Zr(),t=e("%String%"),r=Et();return Jw=function(i){if(typeof i=="symbol")throw new r("Cannot convert a Symbol value to a string");return t(i)},Jw}var Zw,oR;function _3(){if(oR)return Zw;oR=1;var e=Px(),t=w3(),r=fa(),n=r("String.prototype.replace"),i=/^\s$/.test(""),a=i?/^[\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]+/,s=i?/[\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]+$/;return Zw=function(){var l=t(e(this));return n(n(l,a,""),s,"")},Zw}var e_,sR;function b3(){if(sR)return e_;sR=1;var e=_3(),t="",r="";return e_=function(){return String.prototype.trim&&t.trim()===t&&r.trim()===r&&("_"+r).trim()==="_"+r&&(r+"_").trim()===r+"_"?String.prototype.trim:e},e_}var t_,lR;function Ice(){if(lR)return t_;lR=1;var e=Vm()(),t=bx(),r=b3();return t_=function(){var i=r();return String.prototype.trim!==i&&(e?t(String.prototype,"trim",i,!0):t(String.prototype,"trim",i)),i},t_}var n_,uR;function Pce(){if(uR)return n_;uR=1;var e=o3(),t=xx(),r=Px(),n=_3(),i=b3(),a=Ice(),s=e(i()),o=function(u){return r(u),s(u)};return t(o,{getPolyfill:i,implementation:n,shim:a}),n_=o,n_}var r_,cR;function Rce(){if(cR)return r_;cR=1;var e=Zr(),t=e("%RegExp%"),r=Et(),n=e("%parseInt%"),i=fa(),a=y3(),s=i("String.prototype.slice"),o=a(/^0b[01]+$/i),l=a(/^0o[0-7]+$/i),u=a(/^[-+]0x[0-9a-f]+$/i),c=["…","","￾"].join(""),d=new t("["+c+"]","g"),p=a(d),m=Pce();return r_=function w(g){if(typeof g!="string")throw new r("Assertion failed: `argument` is not a String");if(o(g))return+n(s(g,2),2);if(l(g))return+n(s(g,2),8);if(p(g)||u(g))return NaN;var _=m(g);return _!==g?w(_):+g},r_}var i_,fR;function Oce(){if(fR)return i_;fR=1;var e=Zr(),t=Et(),r=e("%Number%"),n=g3(),i=Tce(),a=Rce();return i_=function(o){var l=n(o)?o:i(o,r);if(typeof l=="symbol")throw new t("Cannot convert a Symbol value to a number");if(typeof l=="bigint")throw new t("Conversion from 'BigInt' to 'number' is not allowed.");return typeof l=="string"?a(l):+l},i_}var a_,dR;function Nce(){if(dR)return a_;dR=1;var e=Ex();return a_=function(r){return typeof r=="bigint"?r:e(r)},a_}var o_,hR;function Mce(){if(hR)return o_;hR=1;var e=Nce(),t=Et();return o_=function(n){if(typeof n!="number"&&typeof n!="bigint")throw new t("argument must be a Number or a BigInt");var i=n<0?-e(-n):e(n);return i===0?0:i},o_}var s_,pR;function Dce(){if(pR)return s_;pR=1;var e=Oce(),t=Mce(),r=ud(),n=s3();return s_=function(a){var s=e(a);return r(s)||s===0?0:n(s)?t(s):s},s_}var l_,mR;function x3(){if(mR)return l_;mR=1;var e=m3(),t=Dce();return l_=function(n){var i=t(n);return i<=0?0:i>e?e:i},l_}var u_,gR;function Fce(){if(gR)return u_;gR=1;var e=Et(),t=Ai(),r=Ym(),n=x3();return u_=function(a){if(!t(a))throw new e("Assertion failed: `obj` must be an Object");return n(r(a,"length"))},u_}var c_,vR;function Lce(){if(vR)return c_;vR=1;var e=Et(),t=m3(),r=pce(),n=bce(),i=Ym(),a=xce(),s=kx(),o=Fce(),l=w3();return c_=function u(c,d,p,m,w){var g;arguments.length>5&&(g=arguments[5]);for(var _=m,E=0;E<p;){var x=l(E),b=a(d,x);if(b===!0){var C=i(d,x);if(typeof g<"u"){if(arguments.length<=6)throw new e("Assertion failed: thisArg is required when mapperFunction is provided");C=r(g,arguments[6],[C,E,d])}var v=!1;if(w>0&&(v=s(C)),v){var k=o(C);_=u(c,C,k,_,w-1)}else{if(_>=t)throw new e("index too large");n(c,l(_),C),_+=1}}E+=1}return _},c_}var f_,yR;function jce(){if(yR)return f_;yR=1;var e=Qm(),t=Px();return f_=function(n){return t(n),e(n)},f_}var d_,wR;function Bce(){return wR||(wR=1,d_=jce()),d_}var h_,_R;function E3(){if(_R)return h_;_R=1;var e=hce(),t=Lce(),r=Ym(),n=h3(),i=x3(),a=Bce();return h_=function(o){var l=a(this),u=i(r(l,"length"));if(!n(o))throw new TypeError("mapperFunction must be a function");var c;arguments.length>1&&(c=arguments[1]);var d=e(l,0);return t(d,l,u,0,1,o,c),d},h_}var p_,bR;function S3(){if(bR)return p_;bR=1;var e=E3();return p_=function(){return Array.prototype.flatMap||e},p_}var m_,xR;function zce(){if(xR)return m_;xR=1;var e=ks(),t=typeof Symbol=="function"&&typeof Symbol.unscopables=="symbol",r=t&&Array.prototype[Symbol.unscopables],n=TypeError;return m_=function(a){if(typeof a!="string"||!a)throw new n("method must be a non-empty string");if(!e(Array.prototype,a))throw new n("method must be on Array.prototype");t&&(r[a]=!0)},m_}var g_,ER;function Uce(){if(ER)return g_;ER=1;var e=xx(),t=zce(),r=S3();return g_=function(){var i=r();return e(Array.prototype,{flatMap:i},{flatMap:function(){return Array.prototype.flatMap!==i}}),t("flatMap"),i},g_}var v_,SR;function $ce(){if(SR)return v_;SR=1;var e=xx(),t=o3(),r=E3(),n=S3(),i=n(),a=Uce(),s=t(i);return e(s,{getPolyfill:n,implementation:r,shim:a}),v_=s,v_}var Hce=$ce();const Xm=yn(Hce);function C3({files:e}){return e!=null&&e.length?O.jsx(Ke,{children:e.map((t,r)=>O.jsxs(Ke.Item,{children:[O.jsx(Ke.Icon,{verticalAlign:"middle",name:"circle",size:"tiny"}),O.jsxs(Ke.Content,{children:[O.jsx(Ke.Header,{children:O.jsx("a",{target:"_blank",href:t.url,rel:"noopener noreferrer",children:t.filename||t.url.split("/").pop()||t.url})}),O.jsx(Ke.Description,{children:t.titl&&O.jsx("div",{children:t.titl})})]})]},r))}):null}function qce(e,t,r){const n=Mf(e,t),i=e.qualifier||t.qualifier,a=i&&jD(i,r)+" ";return r.formatMessage({id:"age.exact",defaultMessage:"{qualifier}{age, plural, =0 {Less than 1 year} one {1 year} other {# years}}"},{age:n,qualifier:a})}function Jh(e,t,r){const n=Mf(e,t);return r.formatMessage({id:"age.more",defaultMessage:"More than {age, plural, =0 {0 years} one {1 year} other {# years}}"},{age:n})}function Zh(e,t,r){const n=Mf(e,t);return r.formatMessage({id:"age.less",defaultMessage:"Less than {age, plural, =0 {1 year} one {1 year} other {# years}}"},{age:n})}function y_(e,t,r,n,i){const a=Mf(t,r),s=Mf(e,n);return i.formatMessage({id:"age.between",defaultMessage:"Between {ageFrom} and {ageTo, plural, =0 {0 years} one {1 year} other {# years}}"},{ageFrom:a,ageTo:s})}function Gce(e,t){return e&&t?!g1(e)||!g1(t)||ed(e,t)>0?!1:e.dateRange&&t.dateRange&&v1(e==null?void 0:e.dateRange)&&v1(t==null?void 0:t.dateRange)?!lZ(e.dateRange,t.dateRange):!0:!1}function Mf(e,t){const r=y1(e),n=y1(t),i=r.getUTCFullYear();let a=n.getUTCFullYear()-i,s=n.getUTCMonth()-r.getUTCMonth();return s<0&&(a--,s+=12),n.getUTCDate()-r.getUTCDate()<0&&s<=0&&a--,Math.abs(a)}function Wce(e,t,r){var n,i,a,s,o,l,u,c,d,p,m,w,g,_,E,x,b,C,v,k,T,N,M,j,D,$,X,W,H,V,K,Y,q,F;if(e&&t){const G=hn.getDate(e),z=hn.getDate(t);if(Gce(G,z)){if(G!=null&&G.date){if(z!=null&&z.date)return qce(G.date,z.date,r);if((n=z==null?void 0:z.dateRange)!=null&&n.from&&((i=z.dateRange)!=null&&i.to))return y_(G.date,G.date,(a=z==null?void 0:z.dateRange)==null?void 0:a.from,(s=z==null?void 0:z.dateRange)==null?void 0:s.to,r);if((o=z==null?void 0:z.dateRange)!=null&&o.from)return Jh(G.date,(l=z.dateRange)==null?void 0:l.from,r);if((u=z==null?void 0:z.dateRange)!=null&&u.to)return Zh(G.date,(c=z.dateRange)==null?void 0:c.to,r)}if((d=G==null?void 0:G.dateRange)!=null&&d.from&&((p=G==null?void 0:G.dateRange)!=null&&p.to)){if(z!=null&&z.date)return y_((m=G==null?void 0:G.dateRange)==null?void 0:m.from,(w=G==null?void 0:G.dateRange)==null?void 0:w.to,z==null?void 0:z.date,z==null?void 0:z.date,r);if((g=z==null?void 0:z.dateRange)!=null&&g.from&&((_=z.dateRange)!=null&&_.to))return y_((E=G==null?void 0:G.dateRange)==null?void 0:E.from,(x=G==null?void 0:G.dateRange)==null?void 0:x.to,(b=z==null?void 0:z.dateRange)==null?void 0:b.from,(C=z==null?void 0:z.dateRange)==null?void 0:C.to,r);if((v=z==null?void 0:z.dateRange)!=null&&v.from)return Jh((k=G.dateRange)==null?void 0:k.to,(T=z.dateRange)==null?void 0:T.from,r);if((N=z==null?void 0:z.dateRange)!=null&&N.to)return Zh((M=G.dateRange)==null?void 0:M.from,(j=z.dateRange)==null?void 0:j.to,r)}if((D=G==null?void 0:G.dateRange)!=null&&D.from){if(z!=null&&z.date)return Zh(($=G.dateRange)==null?void 0:$.from,z.date,r);if((X=z==null?void 0:z.dateRange)!=null&&X.to)return Zh((W=G.dateRange)==null?void 0:W.from,(H=z.dateRange)==null?void 0:H.to,r)}if((V=G==null?void 0:G.dateRange)!=null&&V.to){if(z!=null&&z.date)return Jh((K=G==null?void 0:G.dateRange)==null?void 0:K.to,z.date,r);if((Y=z==null?void 0:z.dateRange)!=null&&Y.from)return Jh((q=G==null?void 0:G.dateRange)==null?void 0:q.to,(F=z.dateRange)==null?void 0:F.from,r)}}}}var ep={},tp={},np={},CR;function Vce(){if(CR)return np;CR=1,Object.defineProperty(np,"__esModule",{value:!0});var e=ho(),t=r(e);function r(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a]);return i.default=n,i}return np.default=function(n,i,a){return t.createElement("a",{href:n,key:a},i)},np}var rp={},kR;function Qce(){return kR||(kR=1,Object.defineProperty(rp,"__esModule",{value:!0}),rp.default=function(e){return e}),rp}var ip={},w_,AR;function Kce(){return AR||(AR=1,w_=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),w_}var __,TR;function Yce(){return TR||(TR=1,__=/[\0-\x1F\x7F-\x9F]/),__}var b_,IR;function Xce(){return IR||(IR=1,b_=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),b_}var x_,PR;function Jce(){return PR||(PR=1,x_=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),x_}var E_,RR;function Zce(){return RR||(RR=1,E_=function(e){var t={};t.src_Any=Kce().source,t.src_Cc=Yce().source,t.src_Z=Xce().source,t.src_P=Jce().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="[><]";return t.src_pseudo_letter="(?:(?!"+r+"|"+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="(?=$|"+r+"|"+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="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+t.src_ZPCc+"))((?![$+<=>^`|])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+t.src_ZPCc+"))((?![$+<=>^`|])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),E_}var S_,OR;function efe(){if(OR)return S_;OR=1;function e(b){var C=Array.prototype.slice.call(arguments,1);return C.forEach(function(v){v&&Object.keys(v).forEach(function(k){b[k]=v[k]})}),b}function t(b){return Object.prototype.toString.call(b)}function r(b){return t(b)==="[object String]"}function n(b){return t(b)==="[object Object]"}function i(b){return t(b)==="[object RegExp]"}function a(b){return t(b)==="[object Function]"}function s(b){return b.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var o={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function l(b){return Object.keys(b||{}).reduce(function(C,v){return C||o.hasOwnProperty(v)},!1)}var u={"http:":{validate:function(b,C,v){var k=b.slice(C);return v.re.http||(v.re.http=new RegExp("^\\/\\/"+v.re.src_auth+v.re.src_host_port_strict+v.re.src_path,"i")),v.re.http.test(k)?k.match(v.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(b,C,v){var k=b.slice(C);return v.re.no_http||(v.re.no_http=new RegExp("^"+v.re.src_auth+"(?:localhost|(?:(?:"+v.re.src_domain+")\\.)+"+v.re.src_domain_root+")"+v.re.src_port+v.re.src_host_terminator+v.re.src_path,"i")),v.re.no_http.test(k)?C>=3&&b[C-3]===":"||C>=3&&b[C-3]==="/"?0:k.match(v.re.no_http)[0].length:0}},"mailto:":{validate:function(b,C,v){var k=b.slice(C);return v.re.mailto||(v.re.mailto=new RegExp("^"+v.re.src_email_name+"@"+v.re.src_host_strict,"i")),v.re.mailto.test(k)?k.match(v.re.mailto)[0].length:0}}},c="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]",d="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(b){b.__index__=-1,b.__text_cache__=""}function m(b){return function(C,v){var k=C.slice(v);return b.test(k)?k.match(b)[0].length:0}}function w(){return function(b,C){C.normalize(b)}}function g(b){var C=b.re=Zce()(b.__opts__),v=b.__tlds__.slice();b.onCompile(),b.__tlds_replaced__||v.push(c),v.push(C.src_xn),C.src_tlds=v.join("|");function k(j){return j.replace("%TLDS%",C.src_tlds)}C.email_fuzzy=RegExp(k(C.tpl_email_fuzzy),"i"),C.link_fuzzy=RegExp(k(C.tpl_link_fuzzy),"i"),C.link_no_ip_fuzzy=RegExp(k(C.tpl_link_no_ip_fuzzy),"i"),C.host_fuzzy_test=RegExp(k(C.tpl_host_fuzzy_test),"i");var T=[];b.__compiled__={};function N(j,D){throw new Error('(LinkifyIt) Invalid schema "'+j+'": '+D)}Object.keys(b.__schemas__).forEach(function(j){var D=b.__schemas__[j];if(D!==null){var $={validate:null,link:null};if(b.__compiled__[j]=$,n(D)){i(D.validate)?$.validate=m(D.validate):a(D.validate)?$.validate=D.validate:N(j,D),a(D.normalize)?$.normalize=D.normalize:D.normalize?N(j,D):$.normalize=w();return}if(r(D)){T.push(j);return}N(j,D)}}),T.forEach(function(j){b.__compiled__[b.__schemas__[j]]&&(b.__compiled__[j].validate=b.__compiled__[b.__schemas__[j]].validate,b.__compiled__[j].normalize=b.__compiled__[b.__schemas__[j]].normalize)}),b.__compiled__[""]={validate:null,normalize:w()};var M=Object.keys(b.__compiled__).filter(function(j){return j.length>0&&b.__compiled__[j]}).map(s).join("|");b.re.schema_test=RegExp("(^|(?!_)(?:[><]|"+C.src_ZPCc+"))("+M+")","i"),b.re.schema_search=RegExp("(^|(?!_)(?:[><]|"+C.src_ZPCc+"))("+M+")","ig"),b.re.pretest=RegExp("("+b.re.schema_test.source+")|("+b.re.host_fuzzy_test.source+")|@","i"),p(b)}function _(b,C){var v=b.__index__,k=b.__last_index__,T=b.__text_cache__.slice(v,k);this.schema=b.__schema__.toLowerCase(),this.index=v+C,this.lastIndex=k+C,this.raw=T,this.text=T,this.url=T}function E(b,C){var v=new _(b,C);return b.__compiled__[v.schema].normalize(v,b),v}function x(b,C){if(!(this instanceof x))return new x(b,C);C||l(b)&&(C=b,b={}),this.__opts__=e({},o,C),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},u,b),this.__compiled__={},this.__tlds__=d,this.__tlds_replaced__=!1,this.re={},g(this)}return x.prototype.add=function(C,v){return this.__schemas__[C]=v,g(this),this},x.prototype.set=function(C){return this.__opts__=e(this.__opts__,C),this},x.prototype.test=function(C){if(this.__text_cache__=C,this.__index__=-1,!C.length)return!1;var v,k,T,N,M,j,D,$,X;if(this.re.schema_test.test(C)){for(D=this.re.schema_search,D.lastIndex=0;(v=D.exec(C))!==null;)if(N=this.testSchemaAt(C,v[2],D.lastIndex),N){this.__schema__=v[2],this.__index__=v.index+v[1].length,this.__last_index__=v.index+v[0].length+N;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&($=C.search(this.re.host_fuzzy_test),$>=0&&(this.__index__<0||$<this.__index__)&&(k=C.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(M=k.index+k[1].length,(this.__index__<0||M<this.__index__)&&(this.__schema__="",this.__index__=M,this.__last_index__=k.index+k[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(X=C.indexOf("@"),X>=0&&(T=C.match(this.re.email_fuzzy))!==null&&(M=T.index+T[1].length,j=T.index+T[0].length,(this.__index__<0||M<this.__index__||M===this.__index__&&j>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=M,this.__last_index__=j))),this.__index__>=0},x.prototype.pretest=function(C){return this.re.pretest.test(C)},x.prototype.testSchemaAt=function(C,v,k){return this.__compiled__[v.toLowerCase()]?this.__compiled__[v.toLowerCase()].validate(C,k,this):0},x.prototype.match=function(C){var v=0,k=[];this.__index__>=0&&this.__text_cache__===C&&(k.push(E(this,v)),v=this.__last_index__);for(var T=v?C.slice(v):C;this.test(T);)k.push(E(this,v)),T=T.slice(this.__last_index__),v+=this.__last_index__;return k.length?k:null},x.prototype.tlds=function(C,v){return C=Array.isArray(C)?C:[C],v?(this.__tlds__=this.__tlds__.concat(C).sort().filter(function(k,T,N){return k!==N[T-1]}).reverse(),g(this),this):(this.__tlds__=C.slice(),this.__tlds_replaced__=!0,g(this),this)},x.prototype.normalize=function(C){C.schema||(C.url="http://"+C.url),C.schema==="mailto:"&&!/^mailto:/i.test(C.url)&&(C.url="mailto:"+C.url)},x.prototype.onCompile=function(){},S_=x,S_}const tfe=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ögensberater","vermögensberatung","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","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var NR;function nfe(){if(NR)return ip;NR=1,Object.defineProperty(ip,"__esModule",{value:!0});var e=efe(),t=i(e),r=tfe,n=i(r);function i(s){return s&&s.__esModule?s:{default:s}}var a=new t.default;return a.tlds(n.default),ip.default=function(s){return a.match(s)},ip}var ap={},MR;function rfe(){return MR||(MR=1,Object.defineProperty(ap,"__esModule",{value:!0}),ap.default=function(e){return e}),ap}var DR;function ife(){if(DR)return tp;DR=1,Object.defineProperty(tp,"__esModule",{value:!0});var e=function(){function E(x,b){for(var C=0;C<b.length;C++){var v=b[C];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(x,v.key,v)}}return function(x,b,C){return b&&E(x.prototype,b),C&&E(x,C),x}}(),t=ho(),r=p(t),n=Vce(),i=d(n),a=Qce(),s=d(a),o=nfe(),l=d(o),u=rfe(),c=d(u);function d(E){return E&&E.__esModule?E:{default:E}}function p(E){if(E&&E.__esModule)return E;var x={};if(E!=null)for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&(x[b]=E[b]);return x.default=E,x}function m(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}function w(E,x){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:E}function g(E,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);E.prototype=Object.create(x&&x.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(E,x):E.__proto__=x)}var _=function(E){g(x,E);function x(){return m(this,x),w(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return e(x,[{key:"parseString",value:function(C){var v=this;if(C==="")return C;var k=this.props.matchDecorator(C);if(!k)return C;var T=[],N=0;return k.forEach(function(M,j){M.index>N&&T.push(C.substring(N,M.index));var D=v.props.hrefDecorator(M.url),$=v.props.textDecorator(M.text),X=v.props.componentDecorator(D,$,j);T.push(X),N=M.lastIndex}),C.length>N&&T.push(C.substring(N)),T.length===1?T[0]:T}},{key:"parse",value:function(C){var v=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof C=="string"?this.parseString(C):r.isValidElement(C)&&C.type!=="a"&&C.type!=="button"?r.cloneElement(C,{key:k},this.parse(C.props.children)):Array.isArray(C)?C.map(function(T,N){return v.parse(T,N)}):C}},{key:"render",value:function(){return r.createElement(r.Fragment,null,this.parse(this.props.children))}}]),x}(r.Component);return _.defaultProps={componentDecorator:i.default,hrefDecorator:s.default,matchDecorator:l.default,textDecorator:c.default},tp.default=_,tp}var FR;function afe(){if(FR)return ep;FR=1,Object.defineProperty(ep,"__esModule",{value:!0});var e=ife(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return ep.default=t.default,ep}var ofe=afe();const sfe=yn(ofe);function j1({children:e}){return O.jsx(sfe,{componentDecorator:(t,r,n)=>O.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:r},n),children:e})}function Rx(e){return O.jsx(O.Fragment,{children:e.lines.map((t,r)=>O.jsxs("div",{children:[O.jsx(j1,{children:t}),O.jsx("br",{})]},r))})}function k3({sources:e}){const t=fr();return e!=null&&e.length?O.jsx(Ke,{children:e.map((r,n)=>O.jsxs(Ke.Item,{children:[O.jsx(Ke.Icon,{verticalAlign:"middle",name:"circle",size:"tiny"}),O.jsxs(Ke.Content,{children:[O.jsx(Ke.Header,{children:O.jsx(j1,{children:[r.author,r.title,r.publicationInfo].filter(i=>!!i).join(", ")})}),O.jsxs(Ke.Description,{children:[O.jsx(j1,{children:r.page}),r.date&&` [${eu(r.date,t)}]`]})]})]},n))}):null}function A3(e){const[t,r]=J.useState(!1),[n,i]=J.useState(!1),[a,s]=J.useState(!1),[o,l]=J.useState("");return Zb(e.url)?(n&&o!==e.url&&i(!1),O.jsxs(O.Fragment,{children:[O.jsx(sn,{className:n?"loaded-image-thumbnail":"hidden-image",onClick:()=>r(!0),onLoad:()=>{i(!0),l(e.url),s(!1)},onError:u=>{i(!0),l(e.url),s(!0),u.currentTarget.alt=""},src:e.url,alt:e.title||e.filename,centered:!0}),O.jsx(bi,{className:n?"hidden-image":"image-placeholder",children:O.jsx(bi.Image,{square:!0})}),a&&O.jsx(ff,{fluid:!0,textAlign:"center",children:O.jsx(Dn,{negative:!0,compact:!0,children:O.jsx(Dn.Header,{children:O.jsx(Re,{id:"error.failed_to_load_image",defaultMessage:"Failed to load image file"})})})}),O.jsxs(Yt,{basic:!0,size:"large",closeIcon:O.jsx(Je,{name:"close",color:"red"}),open:t,onClose:()=>r(!1),onOpen:()=>r(!0),centered:!1,children:[O.jsx(Yt.Header,{children:e.title}),O.jsx(Yt.Content,{image:!0,children:O.jsx(sn,{className:"modal-image",src:e.url,alt:e.title||e.filename,label:O.jsx(ur,{attached:"bottom",content:e.filename}),wrapped:!0})})]})]})):O.jsx(Sn,{centered:!0,style:{width:"100%",maxWidth:"290px",margin:"0 auto 14px"},children:O.jsxs(Sn.Content,{textAlign:"center",style:{backgroundColor:"#f9f9f9"},children:[O.jsx(Je,{name:"image",size:"huge",color:"grey",style:{marginBottom:"10px",opacity:.6}}),O.jsx(Sn.Header,{style:{fontSize:"14px",wordBreak:"break-all"},children:e.title||e.filename}),O.jsx(Sn.Meta,{style:{marginTop:"5px",fontStyle:"italic"},children:O.jsx(Re,{id:"media.not_uploaded",defaultMessage:"File not uploaded"})})]})})}function lfe(e){return!!e&&e.map((t,r)=>O.jsx(Ke,{children:O.jsx(Ke.Item,{children:O.jsx(A3,{url:t.url,filename:t.filename,title:t.title})})},r))}function ufe(e){return!!(e!=null&&e.length)&&e.map((t,r)=>O.jsx("div",{children:O.jsx(Rx,{lines:t.map((n,i)=>O.jsx("i",{children:n},i))})},r))}function cfe(e){var d,p,m,w;const[t,r]=J.useState(-1),[n,i]=J.useState("");(!n||n!==e.indi)&&(r(-1),i(e.indi));function a(g,_){_.index!==void 0&&t!==_.index?r(_.index):r(-1)}const s=((d=e.images)==null?void 0:d.length)&&{menuItem:O.jsx(Kt.Item,{fitted:!0,onClick:a,children:O.jsx(Wi,{content:O.jsx(Re,{id:"extras.images",defaultMessage:"Images"}),size:"mini",position:"bottom center",trigger:O.jsx(Je,{circular:!0,name:"camera"})})},"images"),render:()=>O.jsx(Wr.Pane,{children:lfe(e.images)})},o=((p=e.notes)==null?void 0:p.length)&&{menuItem:O.jsx(Kt.Item,{fitted:!0,onClick:a,children:O.jsx(Wi,{content:O.jsx(Re,{id:"extras.notes",defaultMessage:"Notes"}),size:"mini",position:"bottom center",trigger:O.jsx(Je,{circular:!0,name:"sticky note outline"})})},"notes"),render:()=>O.jsx(Wr.Pane,{children:ufe(e.notes)})},l=((m=e.sources)==null?void 0:m.length)&&{menuItem:O.jsx(Kt.Item,{fitted:!0,onClick:a,children:O.jsx(Wi,{content:O.jsx(Re,{id:"extras.sources",defaultMessage:"Sources"}),size:"mini",position:"bottom center",trigger:O.jsx(Je,{circular:!0,name:"quote right"})})},"sources"),render:()=>O.jsx(Wr.Pane,{children:O.jsx(k3,{sources:e.sources})})},u=((w=e.files)==null?void 0:w.length)&&{menuItem:O.jsx(Kt.Item,{fitted:!0,onClick:a,children:O.jsx(Wi,{content:O.jsx(Re,{id:"extras.files",defaultMessage:"Additional files"}),size:"mini",position:"bottom center",trigger:O.jsx(Je,{circular:!0,name:"file alternate outline"})})},"files"),render:()=>O.jsx(Wr.Pane,{children:O.jsx(C3,{files:e.files})})},c=[s,o,l,u].flatMap(g=>g?[g]:[]);return c.length?O.jsx(lt.Description,{children:O.jsx(Wr,{className:"event-extras",activeIndex:t,renderActiveOnly:!0,menu:{tabular:!0,attached:!0,compact:!0,borderless:!0},panes:c})}):null}function Lc(e){const t=hr(),r=bZ(e.person),n=dn.parse(t.search);return n.indi=Wn(e.person.pointer),O.jsx(yl,{to:{pathname:"/view",search:dn.stringify(n)},children:r||O.jsx(Re,{id:"name.unknown_name",defaultMessage:"N.N."})})}const ffe=new Map([["ADOP","Adoption"],["BAPM","Baptism"],["BARM","Bar Mitzvah"],["BASM","Bas Mitzvah"],["BIRT","Birth"],["BLES","Blessing"],["BURI","Burial"],["CENS","Census"],["CHR","Christening"],["CHRA","Adult christening"],["CONF","Confirmation"],["CREM","Cremation"],["DEAT","Death"],["DEG","Degree"],["DIV","Divorce"],["DIVF","Divorce filed"],["EDUC","Education"],["ELEC","Elected"],["EMAIL","E-mail"],["EMIG","Emigration"],["ENGA","Engagement"],["EVEN","Event"],["FACT","Fact"],["FCOM","First communion"],["GRAD","Graduation"],["IMMI","Immigration"],["MARB","Marriage bann"],["MARC","Marriage contract"],["MARL","Marriage license"],["MARR","Marriage"],["MARS","Marriage settlement"],["MDCL","Medical info"],["MILT","Military services"],["NATU","Naturalization"],["OBJE","Additional files"],["OCCU","Occupation"],["ORDN","Ordination"],["PROB","Probate"],["PROP","Property"],["RESI","Residence"],["RETI","Retirement"],["SOUR","Sources"],["TITL","Title"],["WILL","Will"],["WWW","WWW"],["birth","Birth name"],["married","Married name"],["maiden","Maiden name"],["immigrant","Immigrant name"],["aka","Also known as"]]);function ps(e){const t=e.tag.replace(/_/g,"");return O.jsx(Re,{id:`gedcom.${t}`,defaultMessage:ffe.get(t)||t})}const Ox=["BIRT"],dfe=["ADOP","BAPM","BARM","BASM","BLES","CENS","CHR","CHRA","CONF","EDUC","EMIG","EVEN","FAMS","FCOM","GRAD","IMMI","NATU","ORDN","OCCU","PROP","RESI","RETI","WILL","_DEG","_ELEC","_MDCL","_MILT"],T3=["ANUL","CENS","DIV","DIVF","ENGA","EVEN","MARB","MARC","MARL","MARR","MARS"],I3=[...dfe,...T3],Nx=["DEAT"],P3=["BURI","CREM","PROB"],hfe=[Ox,I3,Nx,P3],pfe=[...Ox,...I3,...Nx,...P3];function mfe(e){const t=fr();return O.jsxs("div",{className:"item-header",children:[O.jsx($t,{as:"span",size:"small",children:O.jsx(ps,{tag:gfe(e.event)})}),e.event.date?O.jsx($t,{as:"span",textAlign:"right",sub:!0,children:eu(e.event.date,t)}):null]})}function gfe(e){return e.tag==="EVEN"&&e.type?e.type:e.tag}function vfe(e,t,r){const n=t.tree.filter(i=>["WIFE","HUSB"].includes(i.tag)).find(i=>!i.data.includes(e));if(n)return Jr(n,r,i=>i.indis)}function yfe(e,t,r,n){if(!Nx.includes(e.tag))return;const i=tu(e),a=r.indis[t].tree.filter(s=>Ox.includes(s.tag)).map(s=>tu(s)).find(s=>s);if(!(!a||!i))return Wce(a==null?void 0:a.data,i==null?void 0:i.data,n)}function R3(e){const t=e.tree.find(r=>r.tag==="PLAC");return t!=null&&t.data?hs(t):void 0}function O3(e,t,r){const n=[];return e.tree.filter(i=>i.tag==="OBJE").forEach(i=>{const a=Jr(i,t,o=>o.other),s=HD(a);s&&n.push({url:td(s.data,r),filename:Mm(s)||""})}),n}function N3(e,t,r){const n=[];return e.tree.filter(i=>i.tag==="OBJE").forEach(i=>{var o;const a=Jr(i,t,l=>l.other),s=$D(a);s&&n.push({url:td(s.data,r),filename:Mm(s),titl:(o=a.tree.find(l=>l.tag==="TITL"))==null?void 0:o.data})}),n}function M3(e,t){return e.tree.filter(r=>r.tag==="SOUR").map(r=>GD(r,t))}function D3(e,t){const r=e.tree.filter(i=>i.tag==="NOTE").map(i=>Jr(i,t,a=>a.other)),n=e.tag!=="EVEN"?e.tree.filter(i=>i.tag==="TYPE"):[];return[e,...n,...r].filter(i=>!!i.data).filter(i=>i.data!=="Y").map(i=>hs(i))}function wfe(e,t,r,n,i){return e.tag==="FAMS"?bfe(e,t,r,i):_fe(e,t,r,n,i)}function _fe(e,t,r,n,i){const a=tu(e)||null;return[{tag:e.tag,date:a?hn.getDate(a.data):void 0,type:qD(e),age:yfe(e,r,t,n),place:R3(e),images:O3(e,t,i),files:N3(e,t,i),notes:D3(e,t),sources:M3(e,t),indi:r}]}function bfe(e,t,r,n){const i=Jr(e,t,a=>a.fams);return Xm(T3,a=>i.tree.filter(s=>s.tag===a)).map(a=>{const s=tu(a)||null;return{tag:a.tag,date:s?hn.getDate(s.data):void 0,type:qD(a),personLink:vfe(r,i,t),place:R3(a),images:O3(a,t,n),files:N3(a,t,n),notes:D3(a,t),sources:M3(a,t),indi:r}})}function xfe(e){return O.jsx(lt,{children:O.jsxs(lt.Content,{children:[O.jsx(mfe,{event:e.event}),!!e.event.age&&O.jsx(lt.Meta,{children:e.event.age}),!!e.event.personLink&&O.jsx(Lc,{person:e.event.personLink}),!!e.event.place&&O.jsx(lt.Description,{children:e.event.place}),O.jsx(cfe,{images:e.event.images,notes:e.event.notes,sources:e.event.sources,indi:e.event.indi,files:e.event.files})]})})}function Efe(e){const t=fr(),r=Xm(hfe,n=>e.entries.filter(i=>n.includes(i.tag)).map(i=>wfe(i,e.gedcom,e.indi,t,e.images)).flatMap(i=>i).sort((i,a)=>ed(i.date,a.date)));return r.length?O.jsx(O.Fragment,{children:r.map((n,i)=>O.jsx(xfe,{event:n},i))}):null}function Sfe(e,t,r){var c,d;const n=(c=e.tree)==null?void 0:c.find(p=>["HUSB","WIFE"].includes(p.tag)&&Wn(p.data)!==r),i=n?Wn(n.data):void 0,a=i?t.indis[i]:void 0,u=(((d=e.tree)==null?void 0:d.filter(p=>p.tag==="CHIL"))||[]).filter(p=>!!t.indis[Wn(p.data)]).map(p=>{const m=t.indis[Wn(p.data)],w=m==null?void 0:m.tree.find(E=>E.tag==="BIRT"),g=w?tu(w):void 0,_=g?hn.getDate(g.data):void 0;return{childEntry:m,parsedDate:_}}).sort((p,m)=>ed(p.parsedDate,m.parsedDate)).map(p=>p.childEntry);return{familyId:Wn(e.pointer),spouseTag:n==null?void 0:n.tag,spouseRecord:a,children:u}}function Cfe(e){const t=e.gedcom.indis[e.indi];if(!t)return null;const r=t.tree,n=r.find(b=>b.tag==="FAMC"),i=n?e.gedcom.fams[Wn(n.data)]:void 0,a=(i==null?void 0:i.tag)==="FAM",s=a?i==null?void 0:i.tree.find(b=>b.tag==="HUSB"):void 0,o=a?i==null?void 0:i.tree.find(b=>b.tag==="WIFE"):void 0,l=s?Wn(s.data):void 0,u=l?e.gedcom.indis[l]:void 0,c=o?Wn(o.data):void 0,d=c?e.gedcom.indis[c]:void 0,p=u||d,_=r.filter(b=>b.tag==="FAMS").map(b=>e.gedcom.fams[Wn(b.data)]).map(b=>Sfe(b,e.gedcom,e.indi)).filter(b=>b.spouseRecord||b.children.length>0),E=_.length,x=E>0;return!p&&!x?null:O.jsx(lt,{children:O.jsxs(lt.Content,{children:[O.jsx("div",{className:"item-header",children:O.jsx($t,{as:"span",size:"small",children:O.jsx(Re,{id:"family.immediate_family",defaultMessage:"Immediate Family"})})}),p&&O.jsxs("div",{className:"parents-block",children:[u&&O.jsxs("div",{children:[O.jsx("strong",{children:O.jsx(Re,{id:"family.father",defaultMessage:"Father"})}),": ",O.jsx(Lc,{person:u})]}),d&&O.jsxs("div",{children:[O.jsx("strong",{children:O.jsx(Re,{id:"family.mother",defaultMessage:"Mother"})}),": ",O.jsx(Lc,{person:d})]})]}),_.map(b=>{const C=!b.spouseRecord&&E>1;return O.jsxs("div",{className:"spousal-group",children:[b.spouseRecord?O.jsxs("div",{children:[O.jsx("strong",{children:b.spouseTag==="HUSB"?O.jsx(Re,{id:"family.husband",defaultMessage:"Husband"}):O.jsx(Re,{id:"family.wife",defaultMessage:"Wife"})}),": ",O.jsx(Lc,{person:b.spouseRecord})]}):C?O.jsx("div",{children:O.jsx("strong",{children:O.jsx(Re,{id:"family.unknown_spouse",defaultMessage:"Unknown Spouse"})})}):null,b.children.length>0&&O.jsxs("div",{className:"children-block",children:[O.jsxs("div",{children:[O.jsx("strong",{children:b.children.length===1?O.jsx(Re,{id:"family.child",defaultMessage:"Child"}):O.jsx(Re,{id:"family.children",defaultMessage:"Children"})}),": "]}),O.jsx("div",{children:b.children.map(v=>O.jsx("div",{children:O.jsx(Lc,{person:v})},v.pointer))})]})]},b.familyId)})]})})}const kfe=[...pfe,"NAME","SEX","FAMC","FAMS","NOTE","SOUR","FACT"];function Afe(e){const t=[];return e.data&&t.push(...hs(e)),e.tree.filter(r=>r.tag==="NOTE").forEach(r=>hs(r).forEach(n=>t.push(O.jsx("i",{children:n})))),t.length?O.jsxs(O.Fragment,{children:[O.jsx($t,{sub:!0,children:O.jsx(ps,{tag:e.tag})}),O.jsx("span",{children:O.jsx(Rx,{lines:t})})]}):null}function Tfe(e){if(!e.data)return null;const t=e.tree.filter(n=>n.tag==="TYPE").flatMap(n=>hs(n)).join().trim(),r=hs(e).join(" ").trim();return t?O.jsxs(O.Fragment,{children:[O.jsx($t,{sub:!0,children:O.jsx(ps,{tag:e.tag})}),O.jsxs("div",{children:[O.jsx("b",{children:t}),": ",r]})]}):O.jsxs(O.Fragment,{children:[O.jsx($t,{sub:!0,children:O.jsx(ps,{tag:e.tag})}),O.jsx("div",{children:r})]})}function Ife(e,t,r){const n=Jr(e,t,a=>a.other),i=HD(n);return!i||!Mx(n)?null:O.jsx("div",{className:"person-image",children:O.jsx(A3,{url:td(i.data,r),filename:Mm(i)||""})})}function Pfe(e,t){const r=e.map(n=>GD(n,t));return r.length?O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"item-header",children:O.jsx($t,{as:"span",size:"small",children:O.jsx(ps,{tag:"SOUR"})})}),O.jsx(k3,{sources:r})]}):null}function Rfe(e,t,r){const n=[];return e.map(i=>Jr(i,t,a=>a.other)).forEach(i=>{var s;const a=$D(i);a&&n.push({url:td(a.data,r),filename:Mm(a),titl:(s=i.tree.find(o=>o.tag==="TITL"))==null?void 0:s.data})}),n.length?O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"item-header",children:O.jsx($t,{as:"span",size:"small",children:O.jsx(ps,{tag:"OBJE"})})}),O.jsx(C3,{files:n})]}):null}function Ofe(e,t){const r=Jr(e,t,n=>n.other);return!r||!Mx(r)?null:O.jsx(Rx,{lines:hs(r).map((n,i)=>O.jsx("i",{children:n},i))})}function Nfe(e){var d,p,m,w,g,_,E,x;const t=(d=e.tree.find(b=>b.tag==="NPFX"))==null?void 0:d.data;let r=(p=e.tree.find(b=>b.tag==="GIVN"))==null?void 0:p.data,n=(m=e.tree.find(b=>b.tag==="_RUFNAME"))==null?void 0:m.data;const i=(w=e.tree.find(b=>b.tag==="NICK"))==null?void 0:w.data,a=(g=e.tree.find(b=>b.tag==="SPFX"))==null?void 0:g.data,s=(_=e.tree.find(b=>b.tag==="SURN"))==null?void 0:_.data,o=(E=e.tree.find(b=>b.tag==="NSFX"))==null?void 0:E.data;r&&n&&r.includes(n)&&(r=r.replace(n,`"${n}"`),n=void 0);const u=[t,r,n&&`"${n}"`,i&&`(${i})`,a,s,o].filter(Boolean).join(" ").trim()||e.data.replaceAll("/","")||"",c=(x=e.tree.find(b=>b.tag==="TYPE"&&b.data!=="Unknown"))==null?void 0:x.data;return O.jsxs(O.Fragment,{children:[O.jsx($t,{as:"span",size:"large",children:u||O.jsx(Re,{id:"name.unknown_name",defaultMessage:"N.N."})}),u&&c&&O.jsx(lt.Meta,{children:O.jsx(ps,{tag:c})})]})}function op(e,t,r,n,i){return Xm(r,a=>e.filter(s=>s.tag===a).map(s=>n(s,t,i))).filter(a=>a!==null).map((a,s)=>O.jsx(lt,{children:O.jsx(lt.Content,{children:a})},s))}function LR(e,t,r,n,i){const a=Xm(r,o=>e.filter(l=>l.tag===o)).filter(o=>o!==null),s=a.length?n(a,t,i):null;return s?O.jsx(lt,{children:O.jsx(lt.Content,{children:s})}):null}function Mx(e){return e.tree.length>0||e.data&&!e.data.startsWith("@")}function Mfe(e,t){return e.filter(r=>!kfe.includes(r.tag)).map(r=>Jr(r,t,n=>n.other)).filter(Mx).map(r=>Afe(r)).filter(r=>r!==null).map((r,n)=>O.jsx(lt,{children:O.jsx(lt.Content,{children:r})},n))}function Dfe(e){return O.jsx(lt,{children:O.jsxs(lt.Content,{children:[O.jsx($t,{sub:!0,children:O.jsx(Re,{id:"config.ids",defaultMessage:"Identification"})}),O.jsx("div",{children:O.jsx("i",{children:e})})]})})}function Ffe(e){const t=e.gedcom.indis[e.indi].tree;return O.jsx("div",{className:"details",children:O.jsxs(lt.Group,{divided:!0,children:[op(t,e.gedcom,["NAME"],Nfe),op(t,e.gedcom,["OBJE"],Ife,e.images),O.jsx(Cfe,{gedcom:e.gedcom,indi:e.indi}),O.jsx(Efe,{gedcom:e.gedcom,entries:t,indi:e.indi,images:e.images}),e.config.id===tx.SHOW?Dfe(e.indi):null,op(t,e.gedcom,["FACT"],Tfe),Mfe(t,e.gedcom),op(t,e.gedcom,["NOTE"],Ofe),LR(t,e.gedcom,["OBJE"],Rfe,e.images),LR(t,e.gedcom,["SOUR"],Pfe)]})})}function Lfe({data:e,selectedIndiId:t,config:r,onConfigChange:n,expanded:i,onToggle:a}){const s=fr(),o=[{menuItem:s.formatMessage({id:"tab.info",defaultMessage:"Info"}),render:()=>O.jsx(Ffe,{gedcom:e.gedcom,indi:t,config:r,images:e.images})},{menuItem:s.formatMessage({id:"tab.settings",defaultMessage:"Settings"}),render:()=>O.jsx(TZ,{gedcom:e.gedcom,config:r,onChange:n})}];return O.jsxs(wo,{id:"sidebar",animation:"overlay",icon:"labeled",width:i?"wide":"very thin",direction:"right",visible:!0,children:[i?O.jsx(Wr,{id:"sideTabs",panes:o}):O.jsx(Nue,{gedcom:e.gedcom,indi:t}),O.jsx(nn,{id:"sideToggle",icon:!0,size:"mini",onClick:()=>a(),children:O.jsx(Je,{size:"large",name:i?"arrow right":"arrow left"})})]})}function jfe(e,t){return e instanceof vu?t.formatMessage({id:`error.${e.code}`,defaultMessage:e.message},e.args):e.message}const Bfe={name:"get_selected_person",description:"Returns the full details (name, events, immediate relatives) of the individual currently selected in the browser viewport.",inputSchema:{type:"object",properties:{}}},zfe={name:"search_indi",description:"Searches the genealogy index for individuals by name. Returns up to 10 results starting with the ones that match the best.",inputSchema:{type:"object",properties:{query:{type:"string",description:"The name to search for."}},required:["query"]}},Ufe={name:"inspect_indi",description:"Fetches detailed information for a specific individual by ID, including their immediate relatives and life events.",inputSchema:{type:"object",properties:{id:{type:"string",description:"The ID of the individual."}},required:["id"]}},$fe={name:"focus_indi",description:"Instructs the Topola viewer camera view to center on and focus a specific person. Restructures the tree view to show ancestors and descendants of the selected person.",inputSchema:{type:"object",properties:{id:{type:"string",description:"The ID to focus."}},required:["id"]}},Hfe={name:"find_relationship_path",description:"Finds the shortest path connecting two individuals (e.g., through parents or marriages). Returns an ordered list of connecting individuals.",inputSchema:{type:"object",properties:{source:{type:"string",description:"Start individual ID"},target:{type:"string",description:"End individual ID"}},required:["source","target"]}},qfe={name:"get_ancestors",description:"Returns ancestors of a specific individual up to a maximum depth of 5 generations.",inputSchema:{type:"object",properties:{id:{type:"string",description:"Target individual ID"},generations:{type:"number",description:"Depth bound limit (1-5). Defaults to 3.",minimum:1,maximum:5,default:3}},required:["id"]}},Gfe={name:"get_descendants",description:"Returns descendants of a specific individual up to a maximum depth of 5 generations.",inputSchema:{type:"object",properties:{id:{type:"string",description:"Target individual ID"},generations:{type:"number",description:"Depth bound limit (1-5). Defaults to 3.",minimum:1,maximum:5,default:3}},required:["id"]}},jR=5,Wfe=10;function qo(e){return{content:[{type:"text",text:JSON.stringify(e)}],structuredContent:e}}function Nc(e){return{content:[{type:"text",text:e}]}}class Vfe{constructor(){this.detailIndi=null,this.searchIndex=null,this.chartData=null,this.indiMap=new Map,this.famMap=new Map,this.setSelectionCallback=null,this.toolsRegistered=!1}async handleGetSelectedPerson(){const t=this.detailIndi;return!t||t.startsWith("private_")?Nc("No person is currently selected."):qo(this.toFullIndi(t))}async handleSearchIndi(t){!this.searchIndex&&this.chartData&&(this.searchIndex=XL(this.chartData));const r=this.searchIndex;if(!r)return Nc("Data not loaded.");const i=r.search(t.query).slice(0,Wfe).map(a=>this.toBasicIndi(a.id)).filter(Boolean);return qo(i)}async handleInspectIndi(t){const r=this.toFullIndi(t.id);return r?qo(r):Nc(`No person found with id ${t.id}.`)}async handleFocusIndi(t){if(t.id.startsWith("private_"))return Nc(`No person found with id ${t.id}.`);const r=this.setSelectionCallback;return r?(r(t.id),qo({status:"success"})):Nc("Error shifting viewport.")}async handleFindRelationshipPath(t){const n=xZ(t.source,t.target,this.indiMap,this.famMap).map(i=>this.toBasicIndi(i)).filter(Boolean);return qo(n)}async handleGetAncestors(t){const r=Math.min(t.generations??3,jR),i=EZ(t.id,r,this.indiMap,this.famMap).map(a=>this.toBasicIndi(a)).filter(Boolean);return qo(i)}async handleGetDescendants(t){const r=Math.min(t.generations??3,jR),i=SZ(t.id,r,this.indiMap,this.famMap).map(a=>this.toBasicIndi(a)).filter(Boolean);return qo(i)}setDetailIndi(t){this.detailIndi=t}setData(t){t?(this.indiMap=Om(t.chartData),this.famMap=Jb(t.chartData),this.chartData=t.chartData,this.searchIndex=null):(this.indiMap.clear(),this.famMap.clear(),this.chartData=null,this.searchIndex=null)}setSetSelectionCallback(t){this.setSelectionCallback=t}getIndiName(t){const r=this.indiMap.get(t);return r&&[r.firstName,r.lastName].filter(Boolean).join(" ")||"Unknown"}getIndiReference(t){return{id:t,name:this.getIndiName(t)}}getEvent(t){if(!t)return;const r=[];if(t.date){const n=t.date;n.day||n.month||n.year?r.push([n.day,n.month,n.year].filter(Boolean).join("-")):n.text&&r.push(n.text)}return{date:r.join(" ")||void 0,place:t.place}}toBasicIndi(t){if(t.startsWith("private_"))return null;const r=this.indiMap.get(t);if(!r)return null;let n=null,i=null;if(r.famc){const a=this.famMap.get(r.famc);a&&(a.wife&&(n=this.getIndiReference(a.wife)),a.husb&&(i=this.getIndiReference(a.husb)))}return{id:r.id,name:this.getIndiName(r.id),birth:this.getEvent(r.birth),death:this.getEvent(r.death),mother:n,father:i}}toFullIndi(t){if(t.startsWith("private_"))return null;const r=this.indiMap.get(t);if(!r)return null;let n=null,i=null;if(r.famc){const o=this.famMap.get(r.famc);o&&(o.wife&&(n=this.toBasicIndi(o.wife)),o.husb&&(i=this.toBasicIndi(o.husb)))}const a=[],s=[];return r.fams&&r.fams.forEach(o=>{const l=this.famMap.get(o);if(l){const u=l.wife===t?l.husb:l.wife;u&&s.push({spouse:this.toBasicIndi(u),marriage:this.getEvent(l.marriage)}),l.children&&l.children.forEach(c=>{const d=this.toBasicIndi(c);d&&a.push(d)})}}),{id:r.id,name:this.getIndiName(r.id),birth:this.getEvent(r.birth),death:this.getEvent(r.death),mother:n,father:i,children:a,spouses:s}}getTools(){return[{...Bfe,execute:()=>this.handleGetSelectedPerson()},{...zfe,execute:t=>this.handleSearchIndi(t)},{...Ufe,execute:t=>this.handleInspectIndi(t)},{...$fe,execute:t=>this.handleFocusIndi(t)},{...Hfe,execute:t=>this.handleFindRelationshipPath(t)},{...qfe,execute:t=>this.handleGetAncestors(t)},{...Gfe,execute:t=>this.handleGetDescendants(t)}]}registerTools(){if(this.toolsRegistered||!navigator.modelContext)return;const t=navigator.modelContext;this.getTools().forEach(r=>{t.registerTool(r)}),this.toolsRegistered=!0}unregisterTools(){if(!this.toolsRegistered||!navigator.modelContext)return;const r=navigator.modelContext.unregisterTool;typeof r=="function"&&this.getTools().forEach(n=>{try{r(n.name)}catch{}}),this.toolsRegistered=!1}}function Qfe(){const e=document.querySelector('meta[name="topola-static-url"]'),t=e==null?void 0:e.getAttribute("content");if(t&&!t.startsWith("__")&&!t.includes("{{ env"))return t}const Pp=Qfe();function Kfe(e){return O.jsxs(Dn,{negative:!0,className:"error",children:[O.jsx(Dn.Header,{children:O.jsx(Re,{id:"error.failed_to_load_file",defaultMessage:"Failed to load file"})}),O.jsx("p",{children:e.message})]})}function Yfe(e){return O.jsx(Cr,{open:e.open,onClose:e.onDismiss,children:O.jsxs(Dn,{negative:!0,className:"errorPopup",onDismiss:e.onDismiss,children:[O.jsx(Dn.Header,{children:O.jsx(Re,{id:"error.error",defaultMessage:"Error"})}),O.jsx("p",{children:e.message})]})})}function BR(e,t){const r=t[e];return typeof r=="string"?r:void 0}function Xfe(e){const t=dn.parse(e.search),r=m=>BR(m,t),n=r("view"),i=new Map([["relatives",qa.Relatives],["fancy",qa.Fancy],["donatso",qa.Donatso]]),a=r("file"),s=r("url"),o=r("embedded")==="true";let l;if(Pp)l={source:Qt.GEDCOM_URL,url:Pp,handleCors:!1};else if(r("source")==="wikitree"){const m=dn.parse(window.location.search);l={source:Qt.WIKITREE,authcode:r("authcode")||BR("authcode",m)}}else if(r("source")==="google-drive"){const m=r("fileId");m&&(l={source:Qt.GOOGLE_DRIVE,fileId:m})}else a?l={source:Qt.UPLOADED,hash:a,gedcom:e.state&&e.state.data,images:e.state&&e.state.images}:s?l={source:Qt.GEDCOM_URL,url:s,handleCors:r("handleCors")!=="false"}:o&&(l={source:Qt.EMBEDDED});const u=r("indi"),c=Number(r("gen")),d=u?{id:u,generation:isNaN(c)?0:c}:void 0;function p(){return window.matchMedia("(max-width: 767px)").matches?r("sidePanel")==="true":r("sidePanel")!=="false"}return{sourceSpec:l,selection:d,chartType:i.get(n)||qa.Hourglass,showSidePanel:p(),standalone:r("standalone")!=="false"&&!o&&!Pp,showWikiTreeMenus:r("showWikiTreeMenus")!=="false",freezeAnimation:r("freeze")==="true",config:kZ(t)}}const zR=new Pee,UR=new Ree,$R=new Oee,HR=new Lee;function Jfe(){const[e,t]=J.useState(0),[r,n]=J.useState(),[i,a]=J.useState(),[s,o]=J.useState(),[l,u]=J.useState(),[c,d]=J.useState(!1),[p,m]=J.useState(!0),[w,g]=J.useState(!0),[_,E]=J.useState(qa.Hourglass),[x,b]=J.useState(!1),[C,v]=J.useState(),[k,T]=J.useState(!1),[N,M]=J.useState(_p),[j]=J.useState(()=>new Vfe),[D,$]=J.useState(!1),[X,W]=J.useState(),[H,V]=J.useState(()=>!!Qa.getAccessToken()),K=fr(),Y=mo(),q=hr(),F=J.useRef(!1),G=J.useRef(!0),z=J.useRef(0);J.useEffect(()=>(G.current=!0,()=>{G.current=!1}),[]);const B=J.useCallback(we=>{(!i||i.id!==we.id||i.generation!==we.generation)&&(a(we),o(we.id))},[i]);function se(we,et){if(et===void 0)return;const it=we.id===tx.HIDE,ht=we.sex===WD.HIDE;Om(et.chartData).forEach(L=>{L.hideId=it,L.hideSex=ht})}function de(){const we=!c;d(we),He({sidePanel:we?"true":"false"})}function me(we){u(we),t(2)}const Ee=J.useMemo(()=>new Ote(K),[K]),Ie=J.useCallback((we,et)=>{if(!C||C.source!==we.source)return!0;const it={spec:we,selection:et},ht={spec:C,selection:i};switch(it.spec.source){case Qt.UPLOADED:return zR.isNewData(it,ht,r);case Qt.GEDCOM_URL:return UR.isNewData(it,ht,r);case Qt.WIKITREE:return Ee.isNewData(it,ht,r);case Qt.EMBEDDED:return $R.isNewData(it,ht,r);case Qt.GOOGLE_DRIVE:return HR.isNewData(it,ht,r)}},[C,i,r,Ee]),Ne=J.useCallback((we,et)=>{switch(we.source){case Qt.UPLOADED:return zR.loadData({spec:we,selection:et});case Qt.GEDCOM_URL:return UR.loadData({spec:we,selection:et});case Qt.WIKITREE:return Ee.loadData({spec:we,selection:et});case Qt.EMBEDDED:return $R.loadData({spec:we,selection:et});case Qt.GOOGLE_DRIVE:return HR.loadData({spec:we,selection:et})}},[Ee]);J.useEffect(()=>{const et=dn.parse(q.search).state;if(typeof et=="string"&&!F.current)try{const it=JSON.parse(et);if(it&&it.action==="open"&&Array.isArray(it.ids)&&it.ids.length>0){F.current=!0;const ht=it.ids[0];Y({pathname:"/view",search:dn.stringify({source:"google-drive",fileId:ht})},{replace:!0})}}catch(it){console.warn("Google Drive state query parameter JSON parsing failed or action mismatch:",it)}},[Y,q.search]);async function Le(){await Qa.signOut(),V(!1),n(void 0),a(void 0),o(void 0),Mee(),Y({pathname:"/"},{replace:!0})}J.useEffect(()=>{(async()=>{var et,it;if(q.pathname!=="/view"){e!==0&&t(0),n(void 0);return}const we=Xfe(q);if(!we.sourceSpec){Y({pathname:"/"},{replace:!0});return}if(e===0||Ie(we.sourceSpec,we.selection)){t(1),v(we.sourceSpec),a(we.selection),o((et=we.selection)==null?void 0:et.id),m(we.standalone),g(we.showWikiTreeMenus),E(we.chartType),T(we.freezeAnimation),M(we.config);const ht=++z.current;try{const pe=await Ne(we.sourceSpec,we.selection);if(!G.current||z.current!==ht)return;n(pe),se(we.config,pe),d(we.showSidePanel),t(3)}catch(pe){if(!G.current||z.current!==ht)return;pe instanceof Nf?we.sourceSpec.source===Qt.GOOGLE_DRIVE&&(W(we.sourceSpec.fileId),$(!0)):me(jfe(pe,K))}}else if(e===3||e===4){const ht=we.sourceSpec.source===Qt.WIKITREE&&(!i||i.id!==((it=we.selection)==null?void 0:it.id));if(E(we.chartType),t(ht?4:3),B(_y(r.chartData,we.selection)),ht){const pe=++z.current;try{const L=await OF(we.selection.id,K);if(!G.current||z.current!==pe)return;const I=_y(L.chartData,we.selection);n(L),a(I),o(I.id),t(3)}catch(L){if(!G.current||z.current!==pe)return;t(3),rt(K.formatMessage({id:"error.failed_wikitree_load_more",defaultMessage:"Failed to load data from WikiTree. {error}"},{error:L}))}}}})()},[q,e,i,r,Y,K,Ie,Ne,B]),J.useEffect(()=>(j.registerTools(),()=>{j.unregisterTools()}),[j]),J.useEffect(()=>()=>{jm(r==null?void 0:r.images)},[r]),J.useEffect(()=>{j.setData(r||null)},[r,j]),J.useEffect(()=>{j.setDetailIndi(s||null)},[s,j]),J.useEffect(()=>{j.setSetSelectionCallback(we=>{Oe({id:we,generation:0})})},[j,q]);function He(we){const et=dn.parse(q.search);for(const it in we)et[it]=we[it];q.search=dn.stringify(et),Y(q)}function Oe(we){we.id.startsWith(ax)||(vn("selection_changed"),He({indi:we.id,gen:String(we.generation)}))}function Fe(we){o(we.id)}function We(){vn("print"),VZ()}function rt(we){b(!0),u(we)}async function ot(){vn("download_pdf");try{await XZ()}catch{rt(K.formatMessage({id:"error.failed_pdf",defaultMessage:"Failed to generate PDF file. Please try with a smaller diagram or download an SVG file."}))}}async function st(){vn("download_png");try{await YZ()}catch{rt(K.formatMessage({id:"error.failed_png",defaultMessage:"Failed to generate PNG file. Please try with a smaller diagram or download an SVG file."}))}}function At(){vn("download_svg"),QZ()}function Ht(){b(!1)}function gt(we){return r?_===qa.Donatso?O.jsx(Vre,{data:r.chartData,selection:we,onSelection:Oe}):O.jsx(iee,{data:r.chartData,selection:we,chartType:_,onSelection:Oe,onDetailSelection:Fe,freezeAnimation:k,colors:N.color,hideIds:N.id,hideSex:N.sex}):null}function ct(){switch(e){case 3:case 4:{if(!r)return null;const we=_y(r.chartData,i);return O.jsxs("div",{id:"content",children:[O.jsx(Yfe,{open:x,message:l,onDismiss:Ht}),e===4?O.jsx(Fl,{active:!0,size:"small",className:"loading-more"}):null,O.jsxs(ql,{children:[O.jsx(Lfe,{data:r,selectedIndiId:s||we.id,config:N,expanded:c,onToggle:de,onConfigChange:et=>{M(et),se(et,r),He(AZ(et))}}),O.jsx(Gl,{children:gt(we)})]})]})}case 2:return O.jsx(Kfe,{message:l||"Unknown error"});case 0:case 1:return O.jsx(Fl,{active:!0,size:"large"})}}return O.jsxs(O.Fragment,{children:[O.jsx(Oue,{data:r==null?void 0:r.chartData,allowAllRelativesChart:(C==null?void 0:C.source)!==Qt.WIKITREE,allowPrintAndDownload:_!==qa.Donatso,showingChart:q.pathname==="/view"&&(e===3||e===4),standalone:p,eventHandlers:{onSelection:Oe,onPrint:We,onDownloadPdf:ot,onDownloadPng:st,onDownloadSvg:At},showWikiTreeMenus:(C==null?void 0:C.source)===Qt.WIKITREE&&w,hasGoogleToken:H,onGoogleSignOut:Le,onGoogleTokenAcquired:()=>V(!0)}),Pp?O.jsxs($C,{children:[O.jsx(il,{path:"/view",element:ct()}),O.jsx(il,{path:"*",element:O.jsx(UC,{to:"/view",replace:!0})})]}):O.jsxs($C,{children:[O.jsx(il,{path:"/",element:O.jsx($le,{})}),O.jsx(il,{path:"/view",element:ct()}),O.jsx(il,{path:"*",element:O.jsx(UC,{to:"/",replace:!0})})]}),D&&X&&O.jsx(Hle,{failedFileId:X,onAuthSuccess:we=>{$(!1),V(!0),we===X?t(0):Y({pathname:"/view",search:dn.stringify({source:"google-drive",fileId:we})},{replace:!0})},onCancel:()=>{$(!1),Y({pathname:"/"},{replace:!0})}})]})}const Zfe={"menu.open":"Отваряне","menu.open_file":"Отваряне на файл","menu.load_from_url":"Зареждане от адрес","menu.select_wikitree_id":"Избор на WikiTree ID","menu.print":"Отпечатване","menu.download":"Изтегляне","menu.pdf_file":"PDF файл","menu.png_file":"PNG файл","menu.svg_file":"SVG файл","menu.download_pdf":"Изтегляне като PDF","menu.download_png":"Изтегляне като PNG","menu.download_svg":"Изтегляне като SVG","menu.view":"Изглед","menu.hourglass":"Пясъчен часовник","menu.relatives":"Всички роднини","menu.donatso":"Семейна диаграма на Донацо","menu.fancy":"Декоративно дърво (експериментално)","menu.wikitree_login":"Вход в WikiTree","menu.wikitree_logged_in":"Вписани","menu.wikitree_popup_username":"Вписани сте в WikiTree като {username}","menu.wikitree_popup":"Вписани в WikiTree","menu.github":"Проект в GitHub","menu.search.placeholder":"Търсене на лице","menu.search.no_results":"Няма резултати","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy е приложение за преглед на родословни дървета, която дава възможност за разглеждане структурата на семейство.","intro.instructions":"Използвайте бутоните за отваряне на файл и зареждане от адрес, за да отворите GEDCOM файл. Повечето приложения и страници за генеалогия позволяват изнасяне на GEDCOM файлове.","intro.examples":"Примерни родословни дървета","intro.from":"от","intro.whats_new":"Последни промени","intro.full_changelog":"Списък с всички промени","whats_new.title":"Новото в това издание","intro.privacy":"Поверителност","intro.privacy_note":"При отваряне на файл тази страницата не изпраща никъде вашите данни - заредените файловете не напускат вашето устройство. При зареждане на файл от адрес, данните преминават през услугата {link}, за да бъдат избегнати проблеми при заявяването на файлове между различни сайтове (CORS).","load_from_url.title":"Зареждане от адрес","load_from_url.comment":"Данните от адреса ще преминат през услугата {link}, за да бъдат избегнати проблеми при заявяването на файлове между различни сайтове (CORS).","load_from_url.cancel":"Отказ","load_from_url.load":"Зареждане","select_wikitree_id.title":"Избиране на WikiTree ID","select_wikitree_id.comment":"Въведете идентификатор на профил в {wikiTreeLink}. Пример: {example1}, {example2}","select_wikitree_id.cancel":"Отказ","select_wikitree_id.load":"Зареждане","gedcom.ADOP":"Осиновяване","gedcom.BAPM":"Кръщене","gedcom.BARM":"Бар мицва","gedcom.BASM":"Бат мицва","gedcom.BIRT":"Раждане","gedcom.BLES":"Благословия","gedcom.BURI":"Погребение","gedcom.CENS":"Преброяване на населението","gedcom.CHR":"Кръщене","gedcom.CHRA":"Кръщение за възрастни","gedcom.CONF":"Потвърждение","gedcom.CREM":"Кремиране","gedcom.DEAT":"Смърт","gedcom.DEG":"Академична степен","gedcom.DIV":"Развод","gedcom.DIVF":"Подадено е заявление за развод","gedcom.DSCR":"Описание","gedcom.EDUC":"Образование","gedcom.ELEC":"Подбор за длъжността","gedcom.EMAIL":"Електронна поща","gedcom.EMIG":"Емигриране","gedcom.ENGA":"Годеж","gedcom.EVEN":"Събитие","gedcom.FACT":"Факт","gedcom.FCOM":"Първо причастие","gedcom.GRAD":"Завършване на обучението","gedcom.IMMI":"Имигриране","gedcom.MARB":"Забрана за брак","gedcom.MARC":"Брачен договор","gedcom.MARL":"Брачно свидетелство","gedcom.MARR":"Бракосъчетание","gedcom.MARS":"Предбрачен договор","gedcom.MDCL":"Медицинска информация","gedcom.MILT":"Военна служба","gedcom.NATU":"Натурализация","gedcom.OBJE":"Допълнителни файлове","gedcom.OCCU":"Професия","gedcom.ORDN":"Ръкополагане","gedcom.PROB":"Потвърждение на завещанието","gedcom.PROP":"Имот","gedcom.RESI":"Местожителство","gedcom.RETI":"Пенсиониране","gedcom.RELI":"Религия","gedcom.RIN":"ID","gedcom.SOUR":"Източници","gedcom.TITL":"Обръщение","gedcom.WILL":"Завещание","gedcom.WWW":"Препратка","gedcom._UPD":"Последно обновяване","gedcom.birth":"Рождено име","gedcom.married":"Име след брак","gedcom.maiden":"Моминско име","gedcom.immigrant":"Имигрантско име","gedcom.aka":"Също известни като","date.abt":"около","date.cal":"изчислено","date.est":"приблизително","date.between":"между {from} и {to}","date.after":"след {from}","date.before":"преди {to}","age.exact":"{age, plural, =0 {Под 1 година} one {{qualifier} 1 година} other {{qualifier} # години}}","age.less":"Под {age, plural, =0 {1 година} one {1 година} other {# години}}","age.more":"Над {age, plural, =0 {0 години} one {1 година} other {# години}}","age.between":"Между {ageFrom} {ageTo, plural, =0 {0 години} one {1 година} other {# години}}","error.error":"Грешка","error.failed_pdf":"Неуспешно създаване на PDF файл. Опитайте с по-малка диаграма или изтеглете SVG.","error.failed_png":"Неуспешно създаване на PNG файл. Опитайте с по-малка диаграма или изтеглете SVG.","error.failed_to_load_file":"Грешка при зареждане на файл","error.failed_wikitree_load_more":"Грешка при зареждане на данни от WikiTree. {error}}","error.GEDCOM_READ_FAILED":"Грешка при отваряне на GEDCOM файл","error.ERROR_LOADING_UPLOADED_FILE":"Грешка при зареждането на данни. Качете файла отново.","error.WIKITREE_ID_NOT_PROVIDED":"Не е указан идентификатор на профил в WikiTree","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Профилът {id} в WikiTree е недостъпен. Опитайте да се впишете.","error.WIKITREE_PROFILE_NOT_FOUND":"Профилът {id} в WikiTree не е намерен","error.failed_to_load_image":"Грешка при зареждане на изображение","wikitree.private":"Скрито","tab.info":"Информация","tab.settings":"Настройки","config.colors":"Цвят","config.colors.NO_COLOR":"Без цвят","config.colors.COLOR_BY_GENERATION":"По поколения","config.colors.COLOR_BY_SEX":"По пол","config.ids":"Идентификатори","config.ids.HIDE":"Скриване","config.ids.SHOW":"Показване","config.sex":"Пол","config.sex.HIDE":"Скриване","config.sex.SHOW":"Показване","head.source":"Източник на данни","name.unknown_name":"Неизвестно име","extras.images":"Изображение","extras.notes":"Бележки","extras.sources":"Източници","extras.files":"Допълнителни файлове","family.immediate_family":"Най-близко семейство","family.parents":"Родители","family.father":"Баща","family.mother":"Майка","family.husband":"Съпруг","family.wife":"Съпруга","family.unknown_spouse":"Неизвестен съпруг/а","family.children":"Деца","family.child":"Дете","media.not_uploaded":"Файлът не е качен","menu.load_from_google_drive":"Зареждане от Google Диск","menu.google_sign_out":"Прекъсване на връзката с Google Диск","google_auth.title":"Изисква се достъп до Google Диск","google_auth.instructions":"За да прегледате този файл, трябва да се удостоверите и да изберете файла от вашия Google Диск, за да предоставите разрешения.","google_auth.picker_instructions_header":"Изискват се разрешения","google_auth.picker_instructions":"Приложението няма разрешение да чете този файл. Моля, изберете го в изскачащия прозорец на браузъра за файлове, за да предоставите достъп. Ако това е споделен файл, който не се показва, опитайте първо да добавите пряк път към вашия Диск.","google_auth.cancel":"Отказ","google_auth.grant_button":"Предоставяне на достъп и избор на файл","google_auth.switch_account_button":"Смяна на акаунт","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Интеграцията с Google Drive не е конфигурирана."},ede={"menu.open":"Otevřít","menu.open_file":"Otevřít soubor","menu.load_from_url":"Otevřít z URL","menu.select_wikitree_id":"Vybrat WikiTree ID","menu.print":"Tisknout","menu.download":"Stáhnout","menu.pdf_file":"Soubor PDF","menu.png_file":"Soubor PNG","menu.svg_file":"Soubor SVG","menu.download_pdf":"Stáhnout PDF","menu.download_png":"Stáhnout PNG","menu.download_svg":"Stáhnout SVG","menu.view":"Zobrazení","menu.hourglass":"Přesýpací hodiny","menu.relatives":"Všichni příbuzní","menu.donatso":"Donatso rodokmen","menu.fancy":"Rodinný strom (experimentální)","menu.wikitree_login":"Přihlášení na WikiTree","menu.wikitree_logged_in":"Přihlášeno","menu.wikitree_popup_username":"Přihlášeno do WikiTree jako {username}","menu.wikitree_popup":"Přihlášeno do WikiTree","menu.github":"GitHub projekt","menu.search.placeholder":"Hledej osobu","menu.search.no_results":"Žádné výsledky","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy vám umožňuje interaktivní prohlížení rodokmenu.","intro.instructions":"Kliknutím na OTEVŘÍT SOUBOR nebo OTEVŘÍT Z URL načtete soubor GEDCOM. Většina genealogických programů má funkci exportu do formátu GEDCOM.","intro.examples":"Níže je uvedeno několik příkladů použití z internetu:","intro.from":"zdroj:","intro.whats_new":"Co je nového","intro.full_changelog":"Úplný seznam změn","whats_new.title":"Co je nového v této verzi?","intro.privacy":"Soukromí","intro.privacy_note":"Pomocí funkce „Otevřít soubor“ nejsou vaše data nikam odesílána a zůstávají ve vašem počítači. Při použití funkce „Otevřít z URL“ jsou data z dané adresy odeslána službou {link}, aby bylo možné data načíst (CORS).","load_from_url.title":"Otevřít z adresy URL","load_from_url.comment":"Data z dané adresy URL budou načtena prostřednictvím služby {link}, aby nedocházelo k problémům s CORS.","load_from_url.cancel":"Storno","load_from_url.load":"Otevřít","select_wikitree_id.title":"Zadejte WikiTree ID","select_wikitree_id.comment":"Zadejte ID profilu {wikiTreeLink}. Příklad: {example1}, {example2}","select_wikitree_id.cancel":"Storno","select_wikitree_id.load":"Otevřít","gedcom.ADOP":"Adopce","gedcom.BAPM":"Křest","gedcom.BARM":"Bar micva","gedcom.BASM":"Bas micva","gedcom.BIRT":"Narození","gedcom.BLES":"Požehnání","gedcom.BURI":"Pohřeb","gedcom.CENS":"Sčítání lidu","gedcom.CHR":"Křest","gedcom.CHRA":"Křest dospělých","gedcom.CONF":"Potvrzení","gedcom.CREM":"Kremace","gedcom.DEAT":"Úmrtí","gedcom.DEG":"Academic degree","gedcom.DIV":"Rozvod","gedcom.DIVF":"Potvrzení","gedcom.DSCR":"Popis","gedcom.EDUC":"Vzdělání","gedcom.ELEC":"Výběr na pozici","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Emigrace","gedcom.ENGA":"zasnoubení","gedcom.EVEN":"Událost","gedcom.FACT":"Údaj","gedcom.FCOM":"První přijímání","gedcom.GRAD":"Dokončení školení ","gedcom.IMMI":"Imigrace","gedcom.MARB":"Družstvo","gedcom.MARC":"Manželská smlouva ","gedcom.MARL":"Oddací list","gedcom.MARR":"Svatba","gedcom.MARS":"Předmanželská smlouva","gedcom.MDCL":"Lékařské informace","gedcom.MILT":"Vojenská služba","gedcom.NATU":"Získání občanství","gedcom.OBJE":"Další soubory","gedcom.OCCU":"Povolání","gedcom.ORDN":"Vysvěcení","gedcom.PROB":"Potvrzení závěti","gedcom.PROP":"Majetek","gedcom.RESI":"Bydliště","gedcom.RETI":"Odchod do důchodu ","gedcom.RELI":"Vyznání","gedcom.RIN":"ID","gedcom.SOUR":"Zdroje","gedcom.TITL":"Titul","gedcom.WILL":"Závěť","gedcom.WWW":"Stránka WWW","gedcom._UPD":"Poslední aktualizace","gedcom.birth":"Rodné jméno","gedcom.married":"Jméno po svatbě","gedcom.maiden":"Jméno za svobodna","gedcom.immigrant":"Jméno získané imigrací","gedcom.aka":"Také znám(a) jako","date.abt":"kolem","date.cal":"vypočteno","date.est":"asi","date.between":"mezi {from} a {to}","date.after":"po {from}","date.before":"před {to}","age.exact":"{qualifier}{age, plural, =0 {Méně než rok} one {1 rok} few {# roky} other {# let}}","age.less":"Méne než {age, plural, =0 {1 rok} one {1 rok} few {# roky} other {# let}}","age.more":"Více než {age, plural, =0 {0 let} one {1 rok} few {# roky} other {# let}}","age.between":"Mezi {ageFrom} a {ageTo, plural, =0 {0 lety} one {1 rokem} few {# roky} other {# lety}}","error.error":"Chyba","error.failed_pdf":"Soubor PDF nelze vytvořit. Zkuste to znovu s menším diagramem nebo stáhněte soubor SVG.","error.failed_png":"Soubor PNG nelze vytvořit. Zkuste to znovu s menším diagramem nebo stáhněte soubor SVG.","error.failed_to_load_file":"Chyba při načítání souboru","error.failed_wikitree_load_more":"Chyba při načítání dat z WikiTree. {chyba}","error.GEDCOM_READ_FAILED":"Chyba při načítání souboru GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Chyba při načítání dat. Znovu otevřete soubor.","error.WIKITREE_ID_NOT_PROVIDED":"WikiTree ID nebylo získáno","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Profil WikiTree {id} není k dispozici","error.WIKITREE_PROFILE_NOT_FOUND":"Profil WikiTree {id} neexistuje","error.failed_to_load_image":"Nepodařilo se načíst obrázek","wikitree.private":"Soukromé","tab.info":"Informace","tab.settings":"Nastavení","config.colors":"Barvy","config.colors.NO_COLOR":"žádné","config.colors.COLOR_BY_GENERATION":"podle generace","config.colors.COLOR_BY_SEX":"podle pohlaví","config.ids":"Identifikátory","config.ids.HIDE":"skrýt","config.ids.SHOW":"zobrazit","config.sex":"Pohlaví","config.sex.HIDE":"skrýt","config.sex.SHOW":"zobrazit","head.source":"Zdroj dat","name.unknown_name":"N.N.","extras.images":"Obrázky","extras.notes":"Poznámky","extras.sources":"Zdroje","extras.files":"Další soubory","family.immediate_family":"Nejbližší rodina","family.parents":"Rodiče","family.father":"Otec","family.mother":"Matka","family.husband":"Manžel","family.wife":"Manželka","family.unknown_spouse":"Neznámý manžel/ka","family.children":"Děti","family.child":"Dítě","media.not_uploaded":"Soubor nebyl nahrán","menu.load_from_google_drive":"Načíst z Google Disku","menu.google_sign_out":"Odpojit Google Disk","google_auth.title":"Je vyžadován přístup k Disku Google","google_auth.instructions":"Chcete-li tento soubor zobrazit, musíte se ověřit a vybrat soubor z Disku Google, abyste udělili oprávnění.","google_auth.picker_instructions_header":"Vyžadována oprávnění","google_auth.picker_instructions":"Aplikace nemá oprávnění ke čtení tohoto souboru. Vyberte jej prosím v rozevíracím seznamu prohlížeče souborů pro udělení přístupu. Pokud se jedná o sdílený soubor, který se nezobrazuje, zkuste nejprve přidat zástupce na svůj Disk.","google_auth.cancel":"Zrušit","google_auth.grant_button":"Udělit přístup a vybrat soubor","google_auth.switch_account_button":"Přepnout účet","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Integrace s Diskem Google není nakonfigurována."},tde={"menu.open":"Öffnen","menu.open_file":"Datei öffnen","menu.load_from_url":"URL öffnen","menu.select_wikitree_id":"WikiTree ID auswählen","menu.print":"Drucken","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":"Ansicht","menu.hourglass":"Sanduhrkarte","menu.relatives":"Alle Verwandten","menu.donatso":"Donatso-Stammbaum","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önnen Sie den Stammbaum auf interaktive Weise durchsuchen.","intro.instructions":"Klicken Sie auf Datei öffnen oder URL öffnen, um eine GEDCOM-Datei zu laden. Die meisten Genealogie-Programme verfügen über eine GEDCOM-Exportfunktion.","intro.examples":"Nachfolgend einige Beispiele aus dem Internet:","intro.from":"Quelle:","intro.whats_new":"Was ist neu","intro.full_changelog":"Siehe komplette Änderungshistorie","whats_new.title":"Was ist in dieser Version neu!","intro.privacy":"Datenschutz","intro.privacy_note":'Bei Verwendung der Funktion "Datei öffnen" werden Ihre Daten nirgendwo gesendet und verbleiben auf Ihrem Computer. Bei Verwendung der Funktion "URL öffnen" werden Daten von der angegebenen Adresse vom Dienst {link} an gesendet Ermöglichen des Ladens von Daten aus einer anderen Domäne (CORS).',"load_from_url.title":"Von URL öffnen","load_from_url.comment":"Die Daten der angegebenen URL werden über den {link} -Dienst geladen, um CORS-Probleme zu vermeiden.","load_from_url.cancel":"Abbrechen","load_from_url.load":"Öffnen","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":"Abbrechen","select_wikitree_id.load":"Öffnen","gedcom.ADOP":"Adoption","gedcom.BAPM":"Taufe","gedcom.BARM":"Bar-Mitzwah","gedcom.BASM":"Bas-Mitzwah","gedcom.BIRT":"Geburt","gedcom.BLES":"Segnung","gedcom.BURI":"Beerdigung","gedcom.CENS":"Volkszählung","gedcom.CHR":"Taufe","gedcom.CHRA":"Erwachsenentaufe","gedcom.CONF":"Konfirmation/Firmung","gedcom.CREM":"Feuerbestattung","gedcom.DEAT":"Tod","gedcom.DEG":"Akademischer Grad","gedcom.DIV":"Scheidung","gedcom.DIVF":"Scheidung eingereicht","gedcom.DSCR":"Beschreibung","gedcom.EDUC":"Ausbildung","gedcom.ELEC":"Auswahl für die Position","gedcom.EMAIL":"E-Mail","gedcom.EMIG":"Auswanderung","gedcom.ENGA":"Verlobung","gedcom.EVEN":"Ereignis","gedcom.FACT":"Merkmal","gedcom.FCOM":"Erstkommunion","gedcom.GRAD":"Ausbildungsabschluss","gedcom.IMMI":"Einwanderung","gedcom.MARB":"Aufgebot","gedcom.MARC":"Ehevertrag","gedcom.MARL":"Eheerlaubnis","gedcom.MARR":"Heirat","gedcom.MARS":"Ehevereinbarung","gedcom.MDCL":"Medizinische Informationen","gedcom.MILT":"Mititärdienst","gedcom.NATU":"Einbürgerung","gedcom.OBJE":"Zusätzliche Dateien","gedcom.OCCU":"Beruf","gedcom.ORDN":"Ordinierung","gedcom.PROB":"Testamentsbestätigung","gedcom.PROP":"Besitz","gedcom.RESI":"Wohnort","gedcom.RETI":"Ruhestand","gedcom.RELI":"Religion","gedcom.RIN":"ID","gedcom.SOUR":"Quellen","gedcom.TITL":"Titel","gedcom.WILL":"Testament","gedcom.WWW":"Website","gedcom._UPD":"Zuletzt aktualisiert","gedcom.birth":"Geburtsname","gedcom.married":"Ehenamen","gedcom.maiden":"Mädchenname","gedcom.immigrant":"Immigrant name","gedcom.aka":"Auch bekannt als","date.abt":"Über","date.cal":"berechnet","date.est":"geschätzt","date.between":"zwischen {from} und {to}","date.after":"nach {from}","date.before":"vor {to}","age.exact":"{qualifier}{age, plural, =0 {Weniger als 1 Jahr} one {1 Jahr} other {# Jahre}}","age.less":"Weniger als {age, plural, =0 {1 Jahr} one {1 Jahr} other {# Jahre}}","age.more":"Mehr als {age, plural, =0 {0 Jahre} one {1 Jahr} other {# Jahre}}","age.between":"Zwischen {ageFrom} und {ageTo, plural, =0 {0 Jahre} one {1 Jahr} other {# Jahre}}","error.error":"Fehler","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}","error.GEDCOM_READ_FAILED":"Fehler beim Lesen der GEDCOM-Datei","error.ERROR_LOADING_UPLOADED_FILE":"Fehler beim Laden der Daten. Bitte laden Sie Ihre Datei erneut hoch.","error.WIKITREE_ID_NOT_PROVIDED":"WikiTree-ID muss angegeben werden","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Das WikiTree-Profil {id} ist nicht zugänglich. Versuchen Sie sich anzumelden.","error.WIKITREE_PROFILE_NOT_FOUND":"WikiTree-Profil {id} nicht gefunden","error.failed_to_load_image":"Bilddatei konnte nicht geladen werden","wikitree.private":"Privat","tab.info":"Informationen","tab.settings":"Einstellungen","config.colors":"Farben","config.colors.NO_COLOR":"keine","config.colors.COLOR_BY_GENERATION":"je Generation","config.colors.COLOR_BY_SEX":"nach Geschlecht","config.ids":"Identifikation","config.ids.HIDE":"verbergen","config.ids.SHOW":"anzeigen","config.sex":"Geschlecht","config.sex.HIDE":"verbergen","config.sex.SHOW":"anzeigen","head.source":"Datenquelle","name.unknown_name":"N.N.","extras.images":"Bilder","extras.notes":"Notizen","extras.sources":"Quellen","extras.files":"Weitere Dateien","family.immediate_family":"Engere Familie","family.parents":"Eltern","family.father":"Vater","family.mother":"Mutter","family.husband":"Ehemann","family.wife":"Ehefrau","family.unknown_spouse":"Unbekannter Ehepartner","family.children":"Kinder","family.child":"Kind","media.not_uploaded":"Datei nicht hochgeladen","menu.load_from_google_drive":"Von Google Drive laden","menu.google_sign_out":"Google Drive trennen","google_auth.title":"Google Drive-Zugriff erforderlich","google_auth.instructions":"Um diese Datei anzuzeigen, müssen Sie sich authentifizieren und die Datei aus Ihrem Google Drive auswählen, um Berechtigungen zu erteilen.","google_auth.picker_instructions_header":"Berechtigungen erforderlich","google_auth.picker_instructions":"Die Anwendung hat keine Berechtigung, diese Datei zu lesen. Bitte wählen Sie sie im Dateibrowser-Popup aus, um Zugriff zu gewähren. Wenn es sich um eine freigegebene Datei handelt, die nicht angezeigt wird, versuchen Sie zuerst, eine Verknüpfung zu Ihrem Drive hinzuzufügen.","google_auth.cancel":"Abbrechen","google_auth.grant_button":"Zugriff gewähren & Datei auswählen","google_auth.switch_account_button":"Konto wechseln","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Die Google Drive-Integration ist nicht konfiguriert."},nde={"menu.open":"Ouvrir","menu.open_file":"Ouvrir le fichier","menu.load_from_url":"Ouvrir l'URL","menu.select_wikitree_id":"Sélectionnez l'ID WikiTree","menu.print":"Imprimer","menu.download":"Télécharger","menu.pdf_file":"Fichier PDF","menu.png_file":"Fichier PNG","menu.svg_file":"Fichier SVG","menu.download_pdf":"Télécharger le PDF","menu.download_png":"Télécharger PNG","menu.download_svg":"Télécharger SVG","menu.view":"Afficher","menu.hourglass":"Graphique en sablier","menu.relatives":"Tous les parents","menu.donatso":"Donatso tableau généalogique","menu.fancy":"Arbre ornemental (expérimental)","menu.wikitree_login":"Connectez-vous à WikiTree","menu.wikitree_logged_in":"Connecté","menu.wikitree_popup_username":"Connecté à WikiTree en tant que {username}","menu.wikitree_popup":"Connecté à WikiTree","menu.github":"Projet sur le site Web GitHub","menu.search.placeholder":"Rechercher une personne","menu.search.no_results":"Aucun résultat","intro.title":"Topola Généalogie","intro.description":"La Topola Généalogie vous permet de parcourir l'arbre généalogique de manière interactive.","intro.instructions":"Cliquez sur OPEN FILE ou OPEN URL pour charger un fichier GEDCOM. La plupart des logiciels de généalogie ont une fonction d'exportation GEDCOM.","intro.examples":"Voici quelques exemples trouvés sur Internet:","intro.from":"source:","intro.whats_new":"Quoi de neuf","intro.full_changelog":"Voir toutes les modifications","whats_new.title":"Quoi de neuf dans cette version?","intro.privacy":"Confidentialité","intro.privacy_note":`Lorsque vous utilisez la fonction "Ouvrir un fichier", vos données ne sont envoyées nulle part et restent sur votre ordinateur. Lorsque vous utilisez la fonction "Ouvrir l'URL", les données de l'adresse indiquée sont envoyées par le service {link} pour permettre le chargement des données depuis un autre domaine (CORS).`,"load_from_url.title":"Ouvrir depuis l'URL","load_from_url.comment":"Les données de l'URL donnée seront chargées via le service {link} pour éviter les problèmes 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ême","gedcom.BARM":"Bar Mitzvah","gedcom.BASM":"Bas Mitzvah","gedcom.BIRT":"Naissance","gedcom.BLES":"Bénédiction","gedcom.BURI":"Funérailles","gedcom.CENS":"Recensement","gedcom.CHR":"Baptême","gedcom.CHRA":"Baptême des adultes","gedcom.CONF":"Confirmation","gedcom.CREM":"Crémation","gedcom.DEAT":"Mort","gedcom.DEG":"Diplôme universitaire","gedcom.DIV":"Divorce","gedcom.DIVF":"Divorce déposé","gedcom.DSCR":"Description","gedcom.EDUC":"Études","gedcom.ELEC":"Nomination au poste","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Émigration","gedcom.ENGA":"Fiançailles","gedcom.EVEN":"EVEN","gedcom.FACT":"FACT","gedcom.FCOM":"Première communion","gedcom.GRAD":"Achèvement de la formation","gedcom.IMMI":"Immigration","gedcom.MARB":"Équipe","gedcom.MARC":"Contrat de mariage ","gedcom.MARL":"Licence de mariage","gedcom.MARR":"Mariage","gedcom.MARS":"Contrat prénuptial","gedcom.MDCL":"Informations médicales","gedcom.MILT":"Service militaire","gedcom.NATU":"Naturalisation","gedcom.OBJE":"Fichiers supplémentaires","gedcom.OCCU":"Profession","gedcom.ORDN":"Ordination","gedcom.PROB":"Confirmation de volonté","gedcom.PROP":"Possession","gedcom.RESI":"Lieu de résidence","gedcom.RETI":"Retraite","gedcom.RELI":"Religion","gedcom.RIN":"ID","gedcom.SOUR":"Sources","gedcom.TITL":"Titre","gedcom.WILL":"Testament","gedcom.WWW":"Site Web","gedcom._UPD":"Dernière mise à jour","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é","date.est":"estimé","date.between":"entre {from} et {to}","date.after":"après {from}","date.before":"avant {to}","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.error":"Erreur","error.failed_pdf":"Échec de la création du PDF. Réessayez avec un diagramme plus petit ou téléchargez le fichier SVG.","error.failed_png":"Impossible de créer le fichier PNG. Réessayez avec un diagramme plus petit ou téléchargez 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ées de WikiTree. {error}","error.GEDCOM_READ_FAILED":"Erreur de lecture du fichier GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Erreur de chargement des données. 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 été trouvé","error.failed_to_load_image":"Erreur de chargement de l'image","wikitree.private":"Privé","tab.info":"Informations","tab.settings":"Paramètres","config.colors":"Couleurs","config.colors.NO_COLOR":"aucune","config.colors.COLOR_BY_GENERATION":"par génération","config.colors.COLOR_BY_SEX":"par sexe","config.ids":"Identification","config.ids.HIDE":"cacher","config.ids.SHOW":"afficher","config.sex":"Sexe","config.sex.HIDE":"cacher","config.sex.SHOW":"afficher","head.source":"Source de données","name.unknown_name":"?","extras.images":"Images","extras.notes":"Notes","extras.sources":"Sources","extras.files":"Fichiers supplémentaires","family.immediate_family":"Famille proche","family.parents":"Parents","family.father":"Père","family.mother":"Mère","family.husband":"Mari","family.wife":"Femme","family.unknown_spouse":"Conjoint inconnu","family.children":"Enfants","family.child":"Enfant","media.not_uploaded":"Fichier non téléversé","menu.load_from_google_drive":"Charger depuis Google Drive","menu.google_sign_out":"Déconnecter Google Drive","google_auth.title":"Accès à Google Drive requis","google_auth.instructions":"Pour afficher ce fichier, vous devez vous authentifier et sélectionner le fichier depuis votre Google Drive pour accorder les autorisations.","google_auth.picker_instructions_header":"Autorisations requises","google_auth.picker_instructions":"L'application n'a pas l'autorisation de lire ce fichier. Veuillez le sélectionner dans la fenêtre contextuelle du navigateur de fichiers pour accorder l'accès. S'il s'agit d'un fichier partagé qui ne s'affiche pas, essayez d'abord d'ajouter un raccourci vers votre Drive.","google_auth.cancel":"Annuler","google_auth.grant_button":"Accorder l'accès et sélectionner le fichier","google_auth.switch_account_button":"Changer de compte","error.GOOGLE_DRIVE_NOT_CONFIGURED":"L'intégration de Google Drive n'est pas configurée."},rde={"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":"Scarica","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.donatso":"Donatso albero genealogico","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":"fonte:","intro.whats_new":"Novità","intro.full_changelog":"Vedi il log delle modifiche completo","whats_new.title":"Cosa c'è di nuovo in questa versione?","intro.privacy":"Protezione dei dati","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.ADOP":"Adozione","gedcom.BAPM":"Battesimo","gedcom.BARM":"Bar Mitzvah","gedcom.BASM":"Bas Mitzvah","gedcom.BIRT":"Nascita","gedcom.BLES":"Benedizione","gedcom.BURI":"Funerale","gedcom.CENS":"Census","gedcom.CHR":"Battesimo","gedcom.CHRA":"Battesimo degli adulti","gedcom.CONF":"Conferma","gedcom.CREM":"Cremazione","gedcom.DEAT":"Morte","gedcom.DEG":"Titolo accademico","gedcom.DIV":"Divorzio","gedcom.DIVF":"Divorzio depositato","gedcom.DSCR":"Descrizione","gedcom.EDUC":"Formazione","gedcom.ELEC":"Selezione per la posizione","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Emigrazione","gedcom.ENGA":"Fidanzamento","gedcom.EVEN":"Evento","gedcom.FACT":"Caratteristica","gedcom.FCOM":"Prima Comunione","gedcom.GRAD":"Completamento della formazione","gedcom.IMMI":"Immigrazione","gedcom.MARB":"Squadra","gedcom.MARC":"Contratto di matrimonio","gedcom.MARL":"Licenza di matrimonio","gedcom.MARR":"Matrimonio","gedcom.MARS":"Contratto prematrimoniale","gedcom.MDCL":"Informazioni mediche","gedcom.MILT":"Servizio militare","gedcom.NATU":"Naturalizzazione","gedcom.OBJE":"File aggiuntivi","gedcom.OCCU":"Professione","gedcom.ORDN":"Ordinazione","gedcom.PROB":"Conferma di volontà","gedcom.PROP":"Possesso","gedcom.RESI":"Luogo di residenza","gedcom.RETI":"Pensione","gedcom.RELI":"Religione","gedcom.RIN":"ID","gedcom.SOUR":"Fonti","gedcom.TITL":"Titolo","gedcom.WILL":"Testamento","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.immigrant":"Nome dell'immigrato","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}","age.exact":"{qualifier}{age, plural, =0 {Meno di 1 anno} one {1 anno} other {# anni}}","age.less":"Meno di {age, plural, =0 {1 anno} one {1 anno} other {# anni}}","age.more":"Più di {age, plural, =0 {0 anni} one {1 anno} other {# anni}}","age.between":"Tra {ageFrom} e {ageTo, plural, =0 {0 anni} one {1 anno} other {# anni}}","error.error":"Errore","error.failed_pdf":"Impossibile creare PDF. Riprova con un diagramma più piccolo o scarica il file SVG.","error.failed_png":"Impossibile creare il file PNG. Riprova con un diagramma più 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}","error.GEDCOM_READ_FAILED":"Impossibile leggere il file GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Errore durante il caricamento dei dati. Carica nuovamente il file.","error.WIKITREE_ID_NOT_PROVIDED":"È necessario fornire l'ID WikiTree.","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Il profilo WikiTree {id} non è accessibile. Prova ad effettuare il login.","error.WIKITREE_PROFILE_NOT_FOUND":"Profilo WikiTree {id} non trovato","error.failed_to_load_image":"Impossibile caricare il file immagine","wikitree.private":"Privato","tab.info":"Informazioni","tab.settings":"Impostazioni","config.colors":"Colori","config.colors.NO_COLOR":"nessuno","config.colors.COLOR_BY_GENERATION":"per generazione","config.colors.COLOR_BY_SEX":"per sesso","config.ids":"Identificazione","config.ids.HIDE":"nascondere","config.ids.SHOW":"visualizzare","config.sex":"Sesso","config.sex.HIDE":"nascondere","config.sex.SHOW":"visualizzare","head.source":"Origine dati","name.unknown_name":"N.N.","extras.images":"Immagini","extras.notes":"Appunti","extras.sources":"Fonti","extras.files":"File aggiuntivi","family.immediate_family":"Famiglia stretta","family.parents":"Genitori","family.father":"Padre","family.mother":"Madre","family.husband":"Marito","family.wife":"Moglie","family.unknown_spouse":"Coniuge sconosciuto","family.children":"Figli","family.child":"Figlio","media.not_uploaded":"File non caricato","menu.load_from_google_drive":"Carica da Google Drive","menu.google_sign_out":"Disconnetti Google Drive","google_auth.title":"Accesso a Google Drive richiesto","google_auth.instructions":"Per visualizzare questo file, devi autenticarti e selezionare il file dal tuo Google Drive per concedere le autorisations.","google_auth.picker_instructions_header":"Autorizzazioni richieste","google_auth.picker_instructions":"L'applicazione non ha l'autorizzazione di leggere questo file. Selezionalo nel popup del browser dei file per concedere l'accesso. Se si tratta di un file condiviso che non viene visualizzato, prova prima ad aggiungere una scorciatoia al tuo Drive.","google_auth.cancel":"Annulla","google_auth.grant_button":"Concedi l'accesso e seleziona il file","google_auth.switch_account_button":"Cambia account","error.GOOGLE_DRIVE_NOT_CONFIGURED":"L'integrazione con Google Drive non è configurata."},ide={"menu.open":"Otwórz","menu.open_file":"Otwórz plik","menu.load_from_url":"Otwórz 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.donatso":"Donatso wykres rodzinny","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ów","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy pozwala przeglądać drzewo genealogiczne w interaktywny sposób.","intro.instructions":"Kliknij OTWÓRZ PLIK lub OTWÓRZ URL, aby załadować plik GEDCOM. Większość programów genealogicznych posiada funkcję eksportu do pliku GEDCOM.","intro.examples":"Przykłady","intro.from":"źródło:","intro.whats_new":"Co nowego?","intro.full_changelog":"Zobacz pełną listę zmian","whats_new.title":"Co nowego w tej wersji?","intro.privacy":"Prywatność","intro.privacy_note":'Używając funkcji "Otwórz plik", Twoje dane nie są nigdzie wysyłane i pozostają na Twoim komputerze. Używając funkcji "Otwórz URL", dane z podanego adresu przesyłane są przez usługę {link} w celu umożliwienia załadowania danych z innej domeny (CORS).',"load_from_url.title":"Otwórz z adresu URL","load_from_url.comment":"Dane z podanego adresu URL zostaną załadowane poprzez usługę {link} w celu uniknięcia problemów z CORS.","load_from_url.cancel":"Anuluj","load_from_url.load":"Otwórz","select_wikitree_id.title":"Podaj WikiTree ID","select_wikitree_id.comment":"Wpisz identyfikator profilu {wikiTreeLink}. Przykłady: {example1}, {example2}","select_wikitree_id.cancel":"Anuluj","select_wikitree_id.load":"Otwórz","gedcom.ADOP":"Adopcja","gedcom.BAPM":"Chrzest","gedcom.BARM":"Bar Micwa","gedcom.BASM":"Bat Micwa","gedcom.BIRT":"Narodziny","gedcom.BLES":"Błogosławieństwo","gedcom.BURI":"Pogrzeb","gedcom.CENS":"Spis ludności","gedcom.CHR":"Chrzest","gedcom.CHRA":"Chrzest dorosłych","gedcom.CONF":"Bierzmowanie","gedcom.CREM":"Kremacja","gedcom.DEAT":"Śmierć","gedcom.DEG":"Stopień naukowy","gedcom.DIV":"Rozwód","gedcom.DIVF":"Wniesienie pozwu o rozwód","gedcom.DSCR":"Opis","gedcom.EDUC":"Wykształcenie","gedcom.ELEC":"Wybór na stanowisko","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Emigracja","gedcom.ENGA":"Zaręczyny","gedcom.EVEN":"Wydarzenie","gedcom.FACT":"Fakt","gedcom.FCOM":"Pierwsza komunia","gedcom.GRAD":"Ukończenie szkoły","gedcom.IMMI":"Imigracja","gedcom.MARB":"Zapowiedzi małżeńskie","gedcom.MARC":"Kontrakt małżeński","gedcom.MARL":"Licencja małżeńska","gedcom.MARR":"Małżeństwo","gedcom.MARS":"Ugoda małżeńska","gedcom.MDCL":"Informacje medyczne","gedcom.MILT":"Służba wojskowa","gedcom.NATU":"Nadanie obywatelstwa","gedcom.OBJE":"Dodatkowe pliki","gedcom.OCCU":"Zawód","gedcom.ORDN":"Święcenia","gedcom.PROB":"Postępowanie spadkowe","gedcom.PROP":"Nieruchomość","gedcom.RESI":"Miejsce zamieszkania","gedcom.RETI":"Emerytura","gedcom.RELI":"Religia","gedcom.RIN":"ID","gedcom.SOUR":"Źródła","gedcom.TITL":"Tytuł","gedcom.WILL":"Testament","gedcom.WWW":"Strona WWW","gedcom._UPD":"Ostatnia aktualizacja","gedcom.birth":"Nazwisko rodowe","gedcom.married":"Nazwisko po małżeństwie","gedcom.maiden":"Nazwisko panieńskie","gedcom.immigrant":"Nazwisko po imigracji","gedcom.aka":"Alias","date.abt":"około","date.cal":"wyliczone","date.est":"oszacowane","date.between":"między {from} a {to}","date.after":"po {from}","date.before":"przed {to}","age.exact":"{age, plural, =0 {Mniej niż 1 rok} one {{qualifier} 1 rok} many {{qualifier} # lat} other {{qualifier} # lata}}","age.less":"Mniej niż {age, plural, =0 {1 rok} one {1 rok} many {# lat} other {# lata}}","age.more":"Więcej niż {age, plural, =0 {0 lat} one {1 rok} many {# lat} other {# lata}}","age.between":"Między {ageFrom} a {ageTo, plural, =0 {0 lat} one {1 rok} many {# lat} other {# lata}}","error.error":"Błąd","error.failed_pdf":"Nie udało się utworzyć pliku PDF. Spróbuj jeszcze raz z mniejszym diagramem lub pobierz plik SVG.","error.failed_png":"Nie udało się utworzyć pliku PNG. Spróbuj jeszcze raz z mniejszym diagramem lub pobierz plik SVG.","error.failed_to_load_file":"Błąd wczytywania pliku","error.failed_wikitree_load_more":"Błąd podczas pobierania danych z WikiTree. {error}","error.GEDCOM_READ_FAILED":"Błąd wczytywania pliku GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Błąd wczytywania danych. Otwórz ponownie plik.","error.WIKITREE_ID_NOT_PROVIDED":"Identyfikator WikiTree nie został podany","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Profil WikiTree {id} nie jest dostępny","error.WIKITREE_PROFILE_NOT_FOUND":"Profil WikiTree {id} nie istnieje","error.failed_to_load_image":"Błąd podczas pobierania pliku ze zdjęciem","wikitree.private":"Prywatne","tab.info":"Informacje","tab.settings":"Ustawienia","config.colors":"Kolory","config.colors.NO_COLOR":"brak","config.colors.COLOR_BY_GENERATION":"według pokolenia","config.colors.COLOR_BY_SEX":"według płci","config.ids":"Identyfikator","config.ids.HIDE":"ukryj","config.ids.SHOW":"pokaż","config.sex":"Płeć","config.sex.HIDE":"ukryj","config.sex.SHOW":"pokaż","head.source":"Źródło danych","name.unknown_name":"N.N.","extras.images":"Zdjęcia","extras.notes":"Notatki","extras.sources":"Źródła","extras.files":"Dodatkowe pliki","family.immediate_family":"Najbliższa rodzina","family.parents":"Rodzice","family.father":"Ojciec","family.mother":"Matka","family.husband":"Mąż","family.wife":"Żona","family.unknown_spouse":"Nieznany współmałżonek","family.children":"Dzieci","family.child":"Dziecko","media.not_uploaded":"Plik nieprzesłany","menu.load_from_google_drive":"Otwórz z Dysku Google","menu.google_sign_out":"Rozłącz Dysk Google","google_auth.title":"Wymagany dostęp do Dysku Google","google_auth.instructions":"Aby wyświetlić ten plik, musisz się zalogować i wybrać plik z Dysku Google, aby przyznać uprawnienia.","google_auth.picker_instructions_header":"Wymagane uprawnienia","google_auth.picker_instructions":"Aplikacja nie ma uprawnień do odczytu tego pliku. Wybierz go w oknie wyszukiwania plików, aby przyznać dostęp. Jeśli to jest plik udostępniony, który się nie wyświetla, spróbuj najpierw dodać skrót do swojego Dysku.","google_auth.cancel":"Anuluj","google_auth.grant_button":"Przejdź do autoryzacji i wyboru pliku","google_auth.switch_account_button":"Przełącz konto","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Integracja z Dyskiem Google nie jest skonfigurowana."},ade={"menu.open":"Открыть","menu.open_file":"Открыть файл","menu.load_from_url":"Открыть URL","menu.select_wikitree_id":"Выберите WikiTree ID","menu.print":"Печать","menu.download":"Скачать","menu.pdf_file":"Файл PDF","menu.png_file":"Файл PNG","menu.svg_file":"Файл SVG","menu.download_pdf":"Скачать PDF","menu.download_png":"Скачать PNG","menu.download_svg":"Скачать SVG","menu.view":"Вид","menu.hourglass":"График Песочные часы","menu.relatives":"Все родственники","menu.donatso":"Donatso семейная схема","menu.fancy":"Декоративное дерево (экспериментальное)","menu.wikitree_login":"Войти в WikiTree","menu.wikitree_logged_in":"Вход выполнен","menu.wikitree_popup_username":"Вы вошли в WikiTree как {username}","menu.wikitree_popup":"Вы вошли в WikiTree","menu.github":"Проект на сайте GitHub","menu.search.placeholder":"Искать человека","menu.search.no_results":"Нет результатов","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy позволяет просматривать семейное древо в интерактивном режиме.","intro.instructions":'Щелкните "Открыть файл" или "Открыть URL", чтобы загрузить файл GEDCOM. Большинство программ для генеалогии имеют функцию экспорта GEDCOM.',"intro.examples":"Ниже приведены некоторые примеры, найденные в Интернете:","intro.from":"источник:","intro.whats_new":"Что нового?","intro.full_changelog":"Список изменений","whats_new.title":"Что нового в этой версии?","intro.privacy":"Конфиденциальность","intro.privacy_note":'При использовании функции "Открыть файл" Ваши данные никуда не отправляются и остаются на Вашем компьютере. При использовании функции "Открыть URL" данные с указанного адреса отправляются службой {link} на включение загрузки данных из другого домена (CORS).',"load_from_url.title":"Открыть с адреса URL","load_from_url.comment":"Данные с указанного адреса URL будут загружены через службу {link}, чтобы избежать проблем CORS.","load_from_url.cancel":"Отменить","load_from_url.load":"Открыть","select_wikitree_id.title":"Введите идентификатор WikiTree","select_wikitree_id.comment":"Введите идентификатор профиля {wikiTreeLink}. Примеры: {example1}, {example2}","select_wikitree_id.cancel":"Отмена","select_wikitree_id.load":"Открыть","gedcom.ADOP":"Усыновление","gedcom.BAPM":"Крещение","gedcom.BARM":"Бар-мицва","gedcom.BASM":"Бас Мицва","gedcom.BIRT":"Рождение","gedcom.BLES":"Благословение","gedcom.BURI":"Похороны","gedcom.CENS":"Перепись населения","gedcom.CHR":"Крещение","gedcom.CHRA":"Крещение взрослых","gedcom.CONF":"Подтверждение","gedcom.CREM":"Кремация","gedcom.DEAT":"Смерть","gedcom.DEG":"Ученая степень","gedcom.DIV":"Развод","gedcom.DIVF":"Подано заявление о разводе","gedcom.DSCR":"Описание","gedcom.EDUC":"Образование","gedcom.ELEC":"Выбор на должность","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Эмиграция","gedcom.ENGA":"Помолвка","gedcom.EVEN":"Событие","gedcom.FACT":"Факт","gedcom.FCOM":"Первое Причастие","gedcom.GRAD":"Завершение обучения","gedcom.IMMI":"Иммиграция","gedcom.MARB":"Отряд","gedcom.MARC":"Брачный контракт","gedcom.MARL":"Свидетельство о браке","gedcom.MARR":"Свадьба","gedcom.MARS":"Брачный договор","gedcom.MDCL":"Медицинская информация","gedcom.MILT":"Военная служба","gedcom.NATU":"Натурализация","gedcom.OBJE":"Дополнительные файлы","gedcom.OCCU":"Вид деятельности","gedcom.ORDN":"Рукоположение","gedcom.PROB":"Подтверждение завещания","gedcom.PROP":"Владение","gedcom.RESI":"Место жительства","gedcom.RETI":"Выход на пенсию","gedcom.RELI":"Религия","gedcom.RIN":"ID","gedcom.SOUR":"Источники","gedcom.TITL":"Титул","gedcom.WILL":"Завещание","gedcom.WWW":"Веб-сайт WWW","gedcom._UPD":"Последнее обновление","gedcom.birth":"Имя при рождении","gedcom.married":"Имя в браке","gedcom.maiden":"Девичья фамилия","gedcom.immigrant":"Имя в эмиграции","gedcom.aka":"Он(а) же","date.abt":"около","date.cal":"рассчитано","date.est":"приблизительно","date.between":"между {from} и {to}","date.after":"после {from}","date.before":"до {to}","age.exact":"{age, plural, =0 {Менее 1 года} one {{qualifier} 1 год} many {{qualifier} # лет} other {{qualifier} # года}}","age.less":"Менее {age, plural, =0 {1 года} one {1 год} many {# лет} other {# года}}","age.more":"Более {age, plural, =0 {0 лет} one {1 год} many {# лет} other {# года}}","age.between":"Между {ageFrom} {ageTo, plural, =0 {0 лет} one {1 год} many {# год} other {# лет}}","error.error":"Ошибка","error.failed_pdf":"Не удалось создать PDF-файл. Повторите попытку с меньшей диаграммой или загрузите файл SVG.","error.failed_png":"Не удалось создать файл PNG. Повторите попытку с меньшей схемой или загрузите файл SVG.","error.failed_to_load_file":"Ошибка загрузки файла","error.failed_wikitree_load_more":"Ошибка при получении данных из WikiTree. {error}","error.GEDCOM_READ_FAILED":"Ошибка чтения файла GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Ошибка чтения данных. Повторите.","error.WIKITREE_ID_NOT_PROVIDED":"Не указан идентификатор WikiTree","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Профиль WikiTree {id} недоступен","error.WIKITREE_PROFILE_NOT_FOUND":"Профиль WikiTree {id} не найден","error.failed_to_load_image":"Ошибка при открытии картинки","wikitree.private":"Частный","tab.info":"Информация","tab.settings":"Настройки","config.colors":"Цвет","config.colors.NO_COLOR":"Без цвета","config.colors.COLOR_BY_GENERATION":"По поколениям","config.colors.COLOR_BY_SEX":"По полу","config.ids":"Идентификатор","config.ids.HIDE":"Скрыть","config.ids.SHOW":"Показать","config.sex":"Пол","config.sex.HIDE":"Скрыть","config.sex.SHOW":"Показать","head.source":"Источник данных","name.unknown_name":"Неизвестно","extras.images":"Картинки","extras.notes":"Примечание","extras.sources":"Источники","extras.files":"Дополнительные файлы","family.immediate_family":"Ближайшие родственники","family.parents":"Родители","family.father":"Отец","family.mother":"Мать","family.husband":"Муж","family.wife":"Жена","family.unknown_spouse":"Неизвестный супруг(а)","family.children":"Дети","family.child":"Ребёнок","media.not_uploaded":"Файл не загружен","menu.load_from_google_drive":"Загрузить с Google Диска","menu.google_sign_out":"Отключить Google Диск","google_auth.title":"Требуется доступ к Google Диску","google_auth.instructions":"Чтобы просмотреть этот файл, необходимо пройти авторизацию и выбрать файл на Google Диске для предоставления разрешений.","google_auth.picker_instructions_header":"Требуются разрешения","google_auth.picker_instructions":"У приложения нет разрешения на чтение этого файла. Пожалуйста, выберите его во всплывающем окне выбора файлов, чтобы предоставить доступ. Если это общий файл, который не отображается, попробуйте сначала добавить ярлык на свой Диск.","google_auth.cancel":"Отмена","google_auth.grant_button":"Предоставить доступ и выбрать файл","google_auth.switch_account_button":"Сменить аккаунт","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Интеграция с Google Диском не настроена."},ode={bg:Zfe,cs:ede,de:tde,fr:nde,it:rde,pl:ide,ru:ade},qR=navigator.language&&navigator.language.split(/[-_]/)[0],GR=L4(),sde=document.getElementById("root"),WR=V4.createRoot(sde);GR&&GR.name==="ie"?WR.render(O.jsx("p",{children:"Topola Genealogy Viewer does not support Internet Explorer. Please try a different (modern) browser."})):WR.render(O.jsx(Tz,{locale:qR,messages:ode[qR],children:O.jsxs(FZ,{children:[O.jsx("style",{children:DZ}),O.jsx(KU,{children:O.jsx(Jfe,{})})]})}));export{xf as _,AW as a,hi as c,yn as g,y9 as t,cde as z};